{"version":3,"sources":["utils/useAxios.ts","configurationPortal/pages/Components/AlertConfirmationContent.tsx","redux/slices/scheduleSlice.ts","constants/paths.ts","configurationPortal/pages/Variances/Utils/FunctionsHelper.tsx","components/GlobalTable/GlobalTable.tsx","service/config.service.ts","configurationPortal/pages/CountPrograms/helper.ts","components/MUIFormFields/MUICheckbox.tsx","constants/configurationPortal.ts","service/customer.service.ts","redux/slices/usersSlice.ts","configurationPortal/pages/helper.ts","redux/slices/ConfigPortal/VarianceSlice.ts","configurationPortal/pages/OutputFiles/OutputHelper.ts","pages/Component/BulkUploadButtons.tsx","redux/slices/MultiEventOutputSlice.ts","constants/fieldTypes.ts","assets/images/PortalLogo.svg","assets/images/ConfigPortalLogo.svg","components/Header/Header.tsx","layouts/MainLayout.tsx","service/uploadfile.service.ts","components/MUIFormFields/MUIText.tsx","pages/MultiEventOutputs/Utils/Constants/CreateEditMultiEventOutput.ts","service/schedule.service.ts","assets/images/CsvIcon.svg","components/Alert/Alert.tsx","components/MUIFormFields/MUIAutoCompleteText.tsx","redux/slices/liveEventsSlice.ts","service/settings.service.ts","components/DateFormat/index.tsx","redux/slices/ConfigPortal/ColumnSlice.ts","configurationPortal/pages/LookupRoutines/ReadOnlyLayout/ReadOnlyRow.tsx","configurationPortal/pages/LookupRoutines/ReadOnlyLayout/ReadOnlyLayout.tsx","config/authConfig.js","redux/slices/configSlice.ts","redux/slices/reservationsSlice.ts","redux/slices/ConfigPortal/OutputBundleSlice.ts","redux/slices/ConfigPortal/CustomerSelectionSlice.ts","configurationPortal/pages/LookupRoutines/LRConstants/inputSetupFunctions.ts","configurationPortal/pages/LookupRoutines/LRConstants/lookupFunctions.ts","configurationPortal/pages/LookupRoutines/LRConstants/stringFunctions.ts","configurationPortal/pages/LookupRoutines/LRConstants/mathFunctions.ts","configurationPortal/pages/LookupRoutines/LRConstants/index.ts","components/UserAccessMngt/PermissionAccessGate.tsx","utils/fieldConstants.tsx","components/MUIFormFields/MUIRadio.tsx","redux/slices/authSlice.ts","pages/Configuration/helper.ts","pages/Component/BulkUploadAlert.tsx","pages/Component/BulkUploadData.tsx","pages/Component/BulkFIleUpload.tsx","pages/Component/LocationAndScheduleTopHeadings.tsx","service/sqlTestEditor.service.ts","config/config.ts","assets/images/MultiCustomer.png","configurationPortal/pages/LookupRoutines/LRConstants/lookupRenderFromConfig.ts","service/lookupRoutines.service.ts","redux/slices/lookupRoutinesSlice.ts","redux/slices/ConfigPortal/FtpConnectionSlice.ts","redux/store.ts","redux/slices/configurationSlice.ts","redux/slices/reportsSlice.ts","pages/Login/Login.module.scss","assets/images/DeviceReservationBg.svg","service/user.service.ts","assets/images/ExcelIcon.svg","configurationPortal/pages/CountFields/Constants.ts","assets/images/PortalLogoLight.svg","components/MUIFormFields/MUIMultiAutoCompleteText.tsx","components/MUIFormFields/MUITimePicker.tsx","components/ConfigurationPortal/GeneralSettingsToolBar/GeneralSettingsToolBar.tsx","configurationPortal/pages/GeneralSettings.tsx","configurationPortal/pages/LookupRoutines/LRConstants/functionNames.ts","utils/helper.ts","components/MUIFormFields/MUIDatePicker.tsx","configurationPortal/pages/FunctionHelper.tsx","service/reports.service.ts","service/here.service.ts","configurationPortal/pages/Variances/Utils/Constants.ts","components/SelectCustomerDropdown/SelectCustomerDropdown.tsx","configurationPortal/pages/LookupRoutines/LRConstants/fieldOptions.ts","configurationPortal/pages/CountPrograms/Constant.ts","pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/FcsOptions.ts","hooks/configurationFileData.tsx","components/AceEditorC/AceEditorC.tsx","service/multilingual.service.ts","service/login.service.ts","service/init.service.ts","i18n/i18n.ts","configurationPortal/pages/Audits/AuditHelper.ts","components/ScheduleToolBar/ScheduleToolBar.tsx","components/ConfirmDialog/Confirm.tsx","pages/Schedule/ScheduleFilterComponent.tsx","pages/Schedule/ScheduleFilter.tsx","pages/Schedule/ScheduleDetails.tsx","configurationPortal/pages/LookupRoutines/helpers.tsx","pages/SelectCustomer/SelectCustomer.tsx","layouts/MainLayout.module.scss","pages/Schedule/ScheduleBanner.tsx","utils/reusables/reusable.tsx","utils/constants.ts","configurationPortal/pages/LookupRoutines/layout.service.ts","constants/audits.ts","components/ConfirmDialog/ConfirmDialog.tsx","components/Loading/Loading.tsx","pages/Component/BulkDataSelectField.tsx","assets/images/Edit.png","constants/breadcrumb.ts","components/BreadCrumb/BreadCrumb.tsx","guards/AuthenticatedGuard.tsx","pages/UploadFiles/UploadStatusDetails.tsx","pages/LiveEvents/LiveEvents.tsx","pages/Location/CreateLocationBulk.tsx","pages/Location/LocationHelper.ts","pages/Location/LocationBulkDataMapping.tsx","pages/Location/LocationBulkValidation.tsx","pages/Location/LocationBulkContainer.tsx","pages/Schedule/CreateScheduleBulk.tsx","pages/Schedule/ScheduleBulkDataMapping.tsx","pages/Schedule/ScheduleBulkValidation.tsx","pages/Schedule/ScheduleBulkContainer.tsx","components/ConfigurationPortal/ToolBar/BreadCrumbC.tsx","components/ConfigurationPortal/CategoriesToolBar/CategoriesToolBar.tsx","components/GlobalTable/GlobalTableDragDrop.tsx","hooks/ConfigTabNavigateWarning.tsx","configurationPortal/pages/Categories/Categories.tsx","components/ConfigurationPortal/CountFieldsToolBar/CountFieldsToolBar.tsx","configurationPortal/pages/CountFields/Helper.tsx","configurationPortal/pages/CountFields/CountFieldsLocations.tsx","configurationPortal/pages/CountFields/CountFieldsProducts.tsx","configurationPortal/pages/CountFields/CountFields.tsx","configurationPortal/pages/Components/CBreadCrumb.tsx","configurationPortal/pages/Categories/CreateEditCategory.tsx","constants/lookupRoutines.ts","configurationPortal/pages/LookupRoutines/NewLookupRoutine.tsx","configurationPortal/pages/CountFields/Instructions.tsx","configurationPortal/pages/CountFields/CountFieldsCreateEditLocation.tsx","configurationPortal/pages/CountFields/CountFieldsCreateEditProduct.tsx","components/ConfigurationPortal/LookupRoutinesToolBar/LookupRoutinesToolBar.tsx","configurationPortal/pages/LookupRoutines/LookupRoutines.tsx","components/MUIFormFields/MUISelect.tsx","components/MUIFormFields/MUIMultiSelect.tsx","configurationPortal/pages/LookupRoutines/ModalComponents.tsx","configurationPortal/pages/LookupRoutines/Validation.ts","configurationPortal/pages/LookupRoutines/RenderModal.tsx","configurationPortal/pages/LookupRoutines/SideBarItem.tsx","configurationPortal/pages/LookupRoutines/GenerateSidebarItems.tsx","configurationPortal/pages/LookupRoutines/DropZone.tsx","configurationPortal/pages/LookupRoutines/LRConstants/ifScreenRadioContent.tsx","configurationPortal/pages/LookupRoutines/LRConstants/renderRowErrorCheck.ts","configurationPortal/pages/LookupRoutines/Row.tsx","configurationPortal/pages/LookupRoutines/CreateLookup/Component/RenderLayout.tsx","configurationPortal/pages/LookupRoutines/CreateLookup/CreateLookupEditor.tsx","configurationPortal/pages/LookupRoutines/CreateLookup/index.tsx","components/ConfigurationPortal/AuditsToolBar/AuditsToolBar.tsx","configurationPortal/pages/Audits/Audits.tsx","configurationPortal/pages/Audits/NewAuditRule.tsx","components/ConfigurationPortal/OutputFilesToolBar/OutputFilesToolBar.tsx","configurationPortal/pages/Components/Destination/Utils/Constant.ts","configurationPortal/pages/OutputBundles/Utils/Constants/CreateEditOutputBundleConstant.ts","configurationPortal/pages/OutputBundles/Utils/Helpers/OutputBGridHelper.tsx","configurationPortal/pages/OutputBundles/index.tsx","configurationPortal/pages/OutputFiles/OutputFiles.tsx","configurationPortal/pages/PromptHelpers.tsx","configurationPortal/pages/OutputFiles/OutputPrompts.tsx","configurationPortal/pages/ColumnHelper.tsx","configurationPortal/pages/OutputFiles/OutputColumns.tsx","configurationPortal/pages/DeleteContentHelper.tsx","constants/outputFiles.ts","configurationPortal/pages/Components/ReportOutputConstant.tsx","configurationPortal/pages/Components/OutputFileTotals.tsx","configurationPortal/pages/Components/ReportFileDestinationHelper.ts","utils/reusables/TextFieldChips.tsx","configurationPortal/pages/Components/ReportFileDestination.tsx","configurationPortal/pages/Components/NotificationEmail.tsx","configurationPortal/pages/OutputFiles/CreateEditOutputFiles.tsx","components/ConfigurationPortal/CountProgramsToolBar/CountProgramsToolBar.tsx","configurationPortal/pages/CountPrograms/LandingPage.tsx","configurationPortal/pages/CountPrograms/Component/LocationCapture.tsx","configurationPortal/pages/CountPrograms/Component/ProductMode.tsx","configurationPortal/pages/CountPrograms/Component/CPTabs.tsx","configurationPortal/pages/CountPrograms/Component/SubmitAndCancelButton.tsx","configurationPortal/pages/CountPrograms/validation.ts","configurationPortal/pages/CountPrograms/CreateEditCountProgram.tsx","components/FormHeading/index.tsx","configurationPortal/pages/Components/CreateEditPrompts.tsx","configurationPortal/pages/OutputFiles/OutputCreateEditPrompts.tsx","components/ConfigurationPortal/InputFilesToolBar/InputFilesToolBar.tsx","constants/inputFiles.ts","configurationPortal/pages/InputFiles/InputFiles.tsx","assets/images/EditIcon.svg","configurationPortal/pages/InputFiles/InputFileTypeSelect.tsx","service/configuration.service.ts","configurationPortal/pages/InputFiles/CreateEditInputFileAuxiliary.tsx","configurationPortal/pages/InputFiles/CreateEditInputFileCustomer.tsx","configurationPortal/pages/OutputFiles/OutputFilesBreadCrumb.tsx","configurationPortal/pages/OutputFiles/CreateEditColumn.tsx","configurationPortal/pages/OutputFiles/EditColumns.tsx","configurationPortal/pages/Components/CreateEditTotals.tsx","configurationPortal/pages/OutputFiles/CreateEditOutputSubTotals.tsx","configurationPortal/pages/OutputFiles/CreateEditOutputGrandTotals.tsx","configurationPortal/pages/InputFiles/CreateInputFields.tsx","configurationPortal/pages/ConfigurationPortal.tsx","pages/Location/UploadFileHelper.tsx","pages/UploadFiles/UploadFileDetails.tsx","pages/UploadFiles/UploadStatusFilter.tsx","service/poll.service.ts","pages/UploadFiles/UploadFiles.tsx","service/upload.service.ts","pages/UploadFiles/UploadFilesData.tsx","pages/Schedule/ScheduleEventDetails.tsx","components/TimeAgo/TimeAgo.tsx","pages/UploadFiles/EditUploadFile.tsx","pages/UploadFiles/CreateEditUploadFileData.tsx","components/LiveEventsToolBar/LiveEventsToolBar.tsx","utils/reusables/FilterComponent.tsx","pages/LiveEvents/LiveEventsFilter.tsx","components/ProgressBar/ProgressBar.tsx","pages/LiveEvents/EventItem.tsx","pages/LiveEvents/LiveEventsHelper.tsx","pages/LiveEvents/EventTiles.tsx","service/liveEvents.service.ts","pages/Settings/LocationAttributes.tsx","pages/Configuration/CreateEditFtpConnection.tsx","configurationPortal/pages/Components/Columns/Utils/Constants/CreateEditColumnConstant.ts","configurationPortal/pages/Components/Columns/Utils/Helpers/CreateEditColumnHelper.tsx","configurationPortal/pages/Components/Columns/Utils/CreateEditColumnValidation.ts","configurationPortal/pages/Components/FormFieldConditionRender.tsx","configurationPortal/pages/Components/Columns/Utils/Helpers/ColumnsGridHelper.tsx","configurationPortal/pages/Components/FormSubmitCancelButtons.tsx","configurationPortal/pages/Components/Columns/Components/CreateEditColumn/FormSubmitCancel.tsx","configurationPortal/pages/Components/Columns/CreateEditColumn.tsx","configurationPortal/pages/Components/Prompts/Utils/Constants/CreateEditPromptConstant.ts","configurationPortal/pages/Components/Prompts/Utils/Helpers/PromptsGridHelper.tsx","configurationPortal/pages/Components/Prompts/Components/CreateEditPrompt/FormSubmitCancel.tsx","configurationPortal/pages/Components/Prompts/Utils/CreateEditPromptValidation.ts","configurationPortal/pages/Components/Prompts/CreateEditPrompt.tsx","configurationPortal/pages/Components/Prompts/Utils/Helpers/CreateEditPromptHelper.tsx","components/MUIFormFields/AceEditorField.tsx","configurationPortal/pages/Components/SQLEditor/Utils/Constant.ts","configurationPortal/pages/Components/SQLEditor/Utils/Helper.tsx","configurationPortal/pages/Components/SQLEditor/Components/FormSubmitCancel.tsx","configurationPortal/pages/Components/SQLEditor/EditSQLEditor.tsx","configurationPortal/pages/Components/SQLEditor/Utils/Validation.ts","components/ConfigurationPortal/ReportingsToolBar/ReportingsToolBar.tsx","configurationPortal/pages/Reports/Utils/Helpers/ReportsGridHelper.tsx","configurationPortal/pages/Reports/Components/LandingPage/ReportsGrid.tsx","configurationPortal/pages/Reports/index.tsx","configurationPortal/pages/Reports/Utils/Constants/CreateEditReportConstant.ts","configurationPortal/pages/Reports/Utils/Validations/CreateEditReportValidation.ts","configurationPortal/pages/Components/Prompts/index.tsx","configurationPortal/pages/Reports/Components/CreateEditReport/FormSubmitCancel.tsx","configurationPortal/pages/Components/SQLEditor/ReadOnlySQLEditor.tsx","configurationPortal/pages/Components/Columns/index.tsx","configurationPortal/pages/Components/Totals/Utils/Helpers/TotalsGridHelper.tsx","configurationPortal/pages/Components/Totals/index.tsx","components/MUIFormFields/MUIMultiAutoCompleteTextChips.tsx","configurationPortal/pages/Components/Destination/index.tsx","configurationPortal/pages/Components/Notification/Utils/Constant.ts","configurationPortal/pages/Components/Notification/index.tsx","configurationPortal/pages/Components/Signatures/Utils/Helpers/SignaturesGridHelper.tsx","configurationPortal/pages/Components/Signatures/index.tsx","configurationPortal/pages/Reports/CreateEditReport.tsx","configurationPortal/pages/Reports/Utils/Helpers/CreateEditReportHelper.tsx","configurationPortal/pages/OutputBundles/Utils/Helpers/CreateEditOutputBHelper.tsx","configurationPortal/pages/OutputBundles/Utils/Validations/CreateEditOutputBValidation.ts","configurationPortal/pages/OutputBundles/Components/CreateEditOutputBundle/FilesToIncludes.tsx","configurationPortal/pages/OutputBundles/Components/CreateEditOutputBundle/FormSubmitCancel.tsx","configurationPortal/pages/OutputBundles/CreateEditOutputBundle.tsx","components/ConfigurationPortal/VariancesToolBar/VariancesToolBar.tsx","configurationPortal/pages/Variances/Utils/Validations.ts","configurationPortal/pages/Variances/Components/VarianceLanding/Components/VarianceGeneralSettings.tsx","configurationPortal/pages/Variances/Components/VarianceLanding/Components/RadioButtons.tsx","configurationPortal/pages/Variances/Components/VarianceLanding/Components/ThresholdSettings.tsx","configurationPortal/pages/Variances/Components/ReportFields/ReportFieldsGrid.tsx","configurationPortal/pages/Variances/Components/VarianceLanding/VarianceForm.tsx","configurationPortal/pages/Variances/index.tsx","configurationPortal/pages/Variances/Components/ReportFields/FormSubmitCancel.tsx","configurationPortal/pages/Variances/CreateEditReportField.tsx","configurationPortal/pages/Components/Totals/Utils/Constants/CreateEditTotalConstant.ts","configurationPortal/pages/Components/Totals/Utils/CreateEditTotalValidation.ts","configurationPortal/pages/Components/Totals/Components/CreateEditTotal/Values.tsx","configurationPortal/pages/Components/Totals/Utils/Helpers/CreateEditTotalHelper.tsx","configurationPortal/pages/Components/Totals/Components/CreateEditTotal/FormSubmitCancel.tsx","configurationPortal/pages/Components/Totals/CreateEditTotal.tsx","pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/Daily.ts","pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/Weekly.ts","pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/Monthly.ts","pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/Yearly.ts","pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/SystemDefault.ts","configurationPortal/pages/Outputs/Utils/Constants/CreateEditOutputConstant.ts","pages/MultiEventOutputs/Utils/Helpers/CreateEditMultiEventOutput.tsx","pages/MultiEventOutputs/Components/CreateEditMultiEventOutput/CustomerSection.tsx","pages/MultiEventOutputs/Components/CreateEditMultiEventOutput/ConfigurationIncludes.tsx","pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/DateRange.ts","pages/MultiEventOutputs/Components/CreateEditMultiEventOutput/FileCreationSchedule/FcsOptionsFields.tsx","pages/MultiEventOutputs/Components/CreateEditMultiEventOutput/FileCreationSchedule/FcsOptions.tsx","configurationPortal/pages/Outputs/Utils/Validation.ts","pages/MultiEventOutputs/Utils/Validation.ts","service/multiEventOutputs.service.ts","pages/MultiEventOutputs/Components/CreateEditMultiEventOutput/FormSubmitCancel.tsx","pages/MultiEventOutputs/CreateEditMultiEventOutput.tsx","configurationPortal/pages/Components/Signatures/Components/CreateEditSignature/FormSubmitCancel.tsx","configurationPortal/pages/Components/Signatures/Utils/Constants/CreateEditSignatureConstant.ts","configurationPortal/pages/Components/Signatures/Utils/Validation.ts","configurationPortal/pages/Components/Signatures/CreateEditSignature.tsx","configurationPortal/pages/Components/Signatures/Utils/Helpers/CreateEditsignatureHelper.tsx","assets/images/DownloadIcon.jpg","pages/Configuration/ConfigurationHistory.tsx","routes/Constant.tsx","assets/images/LoginBg.svg","pages/Login/Login.tsx","pages/Schedule/UpdateConfiguration.tsx","pages/UploadFiles/UploadFileBulkDataMapping.tsx","pages/UploadFiles/UploadFileBulkValidation.tsx","pages/UploadFiles/UploadFileLocationBulk.tsx","assets/images/TagIcon.svg","pages/UploadFiles/UpdateDepartFile.tsx","pages/UploadFiles/UploadFileBulkContainer.tsx","routes/RouteList.tsx","routes/routes.tsx","components/ScrollToTop/ScrollToTop.tsx","components/InactivityLogout/InactivityLogout.tsx","AppInsights/AppInsights.tsx","App/App.tsx","components/Toaster/Toaster.tsx","index.tsx","constants/globalTableDragDrop.ts","redux/slices/uploadFileSlice.ts","assets/images/TrashIcon.svg","redux/slices/settingsSlice.ts","configurationPortal/pages/LookupRoutines/LRConstants/booleanFunctions.ts","components/MiniHeader/MiniHeader.tsx","components/MUIFormFields/Helper.ts","redux/slices/ConfigPortal/ReportSlice.ts","configurationPortal/pages/CountPrograms/Component/Instructions.tsx","configurationPortal/pages/CountPrograms/Component/TabFunctionsAndConstant.tsx"],"names":["tokenPromise","isTokenFetching","getErrorMsg","error","_error$response","response","data","Message","ApiService","_tedUrl","_this$service","_this$service$interce","_this$service2","_this$service2$interc","_classCallCheck","service","url","config","baseURL","this","axios","create","interceptors","request","use","requestHandleSuccess","requestHandleError","responseHandleSuccess","responseHandleError","_createClass","key","value","path","payLoad","post","options","get","put","params","formData","defaults","headers","common","endPoint","query","body","Accept","delete","_requestHandleSuccess","_asyncToGenerator","_regeneratorRuntime","mark","_callee2","_localStorage$getItem","_config$url","access_token","userName","newConfig","wrap","_context2","prev","next","Promise","resolve","checkFetching","setTimeout","_ref","_callee","_reject","msalToken","token","exp","current_time","mConfig","msalInstance","account","_context","localStorage","getItem","parseToken","Math","floor","Date","now","prepareMsalConfig","domain_hint","login_hint","msalConfig","PublicClientApplication","getAccountByUsername","sent","setActiveAccount","acquireTokenSilent","tokenRequest","then","setItem","accessToken","catch","err","console","log","clear","window","location","href","finally","abrupt","stop","_x","_x2","apply","arguments","includes","_objectSpread","Authorization","concat","Username","CUSTOM_REQUEST_HEADERS","_x3","reject","_error$response2","_error$response2$data","_error$response4","_error$response5","_error$response6","_error$response7","_error$response8","_error$response9","_error$response10","_error$response11","_error$response12","_error$response13","_error$response14","_error$response15","_error$response16","_error$response17","_error$response17$con","_error$response19","_error$response3","_error$response3$data","_error$response18","_error$response18$con","errorMsg","avoidToaster","title","StatusCode","temp","_errorString","split","join","match","exec","s1","s2","s3","translate","toast","toastId","AlertConfirmationContent","warningMsg","t","useTranslation","_jsxs","Alert","severity","icon","_jsx","Warning","className","children","AlertTitle","getTranslations","Translates","initialState","status","scheduleFilters","region1","region2","region3","region4","country","state","startDate","moment","subtract","format","endDate","add","eventStatus","defScheduleStatus","configNames","scheduleFilterForm","viewSchedule","deleteSchedule","validScheduleColumnList","csvScheduleColumnList","scheduleMappingData","scheduleFileData","mappingResponseData","mappingPayloadData","mappingProgress","bulkScheduleFilePath","scheduleSort","scheduleColumn","configurationData","scheduleService","ScheduleService","getViewSchedule","ConfigService","createAsyncThunk","customerId","payload","getviewschedule","_ref2","deleteschedule","scheduleSlice","createSlice","name","reducers","setScheduleFilters","_action","setScheduleFilterForm","setCSVScheduleColumnList","_toConsumableArray","setScheduleMappingData","setScheduleFileData","setBulkScheduleFile","setScheduleReset","setMappingResponseData","setMappingProgress","setMappingPayloadData","setScheduleSort","setScheduleColumn","setConfigurationData","extraReducers","builder","addCase","pending","fulfilled","_ref3","rejected","_ref4","_scheduleSlice$action","actions","multiEventOutputRouteReplaceVar","CreateSchedule","Configuration","configPromptPaths","TAB_CREATE_PROMPT_CREATE","TAB_EDIT_PROMPT_CREATE","TAB_CREATE_PROMPT_EDIT","TAB_EDIT_PROMPT_EDIT","configSQLEditorPaths","TAB_CREATE_SQL_EDITOR","TAB_EDIT_SQL_EDITOR","configColumnPaths","TAB_CREATE_COLUMN_CREATE","TAB_EDIT_COLUMN_CREATE","TAB_CREATE_COLUMN_EDIT","TAB_EDIT_COLUMN_EDIT","configSignaturePaths","TAB_CREATE_SIGNATURE_CREATE","TAB_EDIT_SIGNATURE_CREATE","TAB_CREATE_SIGNATURE_EDIT","TAB_EDIT_SIGNATURE_EDIT","configTotalPaths","TAB_CREATE_TOTAL_CREATE","TAB_EDIT_TOTAL_CREATE","TAB_CREATE_TOTAL_EDIT","TAB_EDIT_TOTAL_EDIT","configOutputBundlePaths","OUTPUT_BUNDLE_CREATE","OUTPUT_BUNDLE_EDIT","configPortalPaths","VARIANCES","VARIANCES_ADD","VARIANCES_EDIT","VARIANCES_REPORT_CREATE","VARIANCES_REPORT_EDIT","REPORTS","REPORT_CREATE","REPORT_EDIT","multiEventOutputs","MULTI_EVENT_OUTPUTS","MULTI_EVENT_OUTPUT_CREATE","MULTI_EVENT_OUTPUT_EDIT","PATH","HOME","LOGIN","DEVICE_RESERVATION","SETTINGS","SCHEDULE_BANNER","LOCATION_BANNER","LOCATIONS","CREATE_LOCATION","EDIT_LOCATION","LOCATION_DETAILS","LOCATION_TYPE_SELECT","SETTINGS_REGIONAL_GROUPs","CREATE_RESERVATION","SELECT_CUSTOMER","REGIONAL_GROUPS","REGIONAL_GROUPS_BANNER","COMPANY_DETAILS","CREATE_USER","EDIT_USER","CREATE_SCHEDULE","EDIT_SCHEDULE","USERS","SCHEDULE","SCHEDULE_DETAILS","SCHEDULE_EVENT_DETAILS","SCHEDULE_CREATE_TYPE","CREATE_BULK_LOCATION","CREATE_USER_TYPE","LOCATION_BULK_DATAMAPPING","LOCATION_BULK_VALIDATION","USER_TYPE_SELECT","CREATE_USER_BULK","USER_BULK_DATA_MAPPING","CREATE_BULK_SCHEDULE","SCHEDULE_BULK_DATAMAPPING","CONFIGURATION","CONFIGURATION_DETAILS","CONFIGURATION_PORTAL","CONFIGURATION_COUNT_FIELDS","CONFIGURATION_COUNT_FIELDS_LOCATION","CONFIGURATION_COUNT_FIELDS_PRODUCT","CATEGORIES","CREATE_CATEGORY","EDIT_CATEGORY","CREATE_REPORTING","EDIT_REPORTING","CREATE_REPORTING_PROMPT","EDIT_REPORTING_PROMPT","CONFIG_LOOKUP_ROUTINES","CONFIG_NEW_LOOKUP_ROUTINE","CREATE_LOOKUP","CREATE_EDIT_SQL","OUTPUT_FILES","CREATE_EDIT_OUTPUTFILES","AUDITS","CREATE_AUDIT","AUDITS_INSTRUCTIONS","COUNT_FIELDS_INSTRUCTIONS","COUNT_PROGRAMS","CREATE_COUNT_PROGRAMS","EDIT_COUNT_PROGRAMS","COUNT_PROGRAM_INSTRUCTIONS","OUTPUTPROMPTS","CREATE_EDIT_PROMPTS","INPUT_FILES","SELECT_INPUT_FILE_TYPE","CREATE_EDIT_AUXILIARY_INPUT_FILE","CREATE_EDIT_CUSTOMER_INPUT_FILE","CREATE_EDIT_COLUMN","EDIT_COLUMNS","CREATE_INPUT_FIELDS","CREATE_EDIT_OUTPUT_SUBTOTALS","CREATE_EDIT_OUTPUT_GRAND_TOTALS","CREATE_EDIT_REPORT_SUBTOTALS","CREATE_EDIT_REPORT_GRAND_TOTALS","PAGE_NOT_FOUND","UPLOADFILES_DATA","UPLOADFILES","UPLOADFILES_DETAIL_DATA","EDIT_DEPARTMENT_FILE","FINAL_REPORTS_AND_FILES","EDIT_UPLOAD_FILES","CREATE_EDIT_UPLOAD_FILES_DATA","LIVE_EVENTS","LOCATION_ATTRIBUTES","CREATE_EDIT_FTP_CONNECTION","FTP_CONNECTION","EDIT_FTP_CONNECTION","DEVICE_RESERVATION_TYPE_SELECT","DEVICE_RESERVATION_BULK_UPLOAD","DEVICE_RESERVATION_BULK_DATAMAPPING","DEVICE_RESERVATION_BULK_VALIDATION","UPLOADFILE_BULK_UPLOAD","UPLOADFILE_BULK_DATAMAPPING","UPLOADFILE_BULK_VALIDATION","UPDATE_CONFIGURATION","CONFIG_VIEW_HISTORY","a11Props","index","id","getDefaultValues","varianceRedux","_Object$keys","Object","keys","length","defaultIniValues","getReportFieldDefaultValues","storeId","CurrentTabVarianceType","ReportFields","defaultReportFieldIniValues","getVarianceFormVariable","selectedTab","varianceForm","fieldNames","GroupVariance","gridComponent","TableComponentNames","groupVariances","gridNoDataText","NoGroupVarianceFieldsText","VarianceTypes","FullVariance","fullVariances","NoFullVarianceFieldsText","setFocusWhileChange","fieldName","setFocus","getRadioArr","Threshold","IsBasedOnControlFile","ThresholdSelects","JSON","parse","stringify","RadioButtonLists","VarianceControlFile","label","formControlLabels","Thresholds","isShow","required","QtyThreshold","Ext","isConstantShow","constantName","QtyConstant","constantShowValue","Constant","constant","originalName","singleFieldNames","ExtThreshold","Qty","ExtConstant","getReportColumnData","IsNotEnableFeature","editField","deleteField","configTypeFromStore","commonColumnsData","disableFilters","disableSortBy","headerClassName","Cell","props","displaySpan","Header","accessor","setWidth","Field","Name","ACTIONS","Tooltip","arrow","Edit","IconButton","disabled","onClick","row","alt","src","editIcon","Delete","TrashIcon","getActionSpan","setModalContent","preDeletedRow","modalOpenSource","ReportRemovedFields","content","ReportGridModalSource","Are_you_sure_you_want_to_delete","blindVariance","getFormToConfigConversion","_data$FullVariance","configData","getGroupAndFullVarianceConfig","BasedOnControlFile","vErrors","Enabled","IsEnable","VarianceName","Sort","BatchSizeEnabled","IsBatchSize","BatchSize","BlindVariance","IsBlindVariance","RequiredForCloseout","IsRequiredForCloseout","RequireSoftClose","ThresholdType","QtyThresholdConstant","ExtThresholdConstant","Fields","getConfigToFormConversion","reduxData","getGroupAndFullVarianceForm","undefined","Number","getReportFieldBreadcrumbConfig","variances","custLinks","varianceType","Group_Variance","Full_Variance","addField","Add_Field","Edit_Field","currentPath","variables","Variances","showHomeIcon","mapObj","showRegions","regionalGroupLabel","region","getRegionalGroups","regionalGroup1Label","regionalGroup2Label","regionalGroup3Label","regionalGroup4Label","originalRow","_Fragment","GlobalTable","columns","_ref$noDataText","noDataText","_ref$initialStateProp","initialStateProp","sortBy","sortTypes","caseInsensitive","rowA","rowB","columnId","_a$toString","_b$toString","a","values","b","isNaN","aStr","toString","toLowerCase","bStr","_useTable","useTable","defaultColumn","sortType","disableSortRemove","autoResetSortBy","autoResetFilters","columnType","useFilters","useGlobalFilter","useSortBy","getTableProps","headerGroups","rows","prepareRow","dispatch","useAppThunkDispatch","checkSorting","column","isSorted","isSortedDesc","ArrowDropDownIcon","ArrowDropUpIcon","Table","TableHead","map","headerGroup","hIndex","_createElement","TableRow","getHeaderGroupProps","shortid","generate","colIndex","TableCell","style","minWidth","render","sortOrder","DESCENDING","Asc","Desc","setReservationColumn","setReservationSort","setUsersColumn","setUsersSort","setConfigurationColumn","setConfigurationSort","setReportColumn","setReportSort","setLocationColumn","setLocationSort","handleSortChange","getSortByToggleProps","canFilter","TableBody","colSpan","Typography","align","variant","InfoIcon","paddingLeft","_i","getRowProps","cells","cell","getCellProps","api","configString","configuration","encrypt","res","configId","findAll","hasOwnProperty","i","idConfigFtpConnection","multiEventFileDetailId","formToReduxConversion","form","productList","getProductList","locationList","getLocationList","cpErrors","_form$LocationMode","_form$ProductMode","LocationModeData","Array","isArray","LocationMode","items","BreakException","forEach","j","OjKey","_i$SetupInstructions","_i$ValidationInstruct","_i$LookupInstructions","_i$SetupInstructions2","_i$InsertRules","_i$InsertRules$SetupI","_i$InsertRules2","_i$InsertRules2$Valid","_i$InsertRules3","_i$InsertRules3$Looku","InstructionCheck","LocationsList","Location","StandardWisTag","AllowedBarcodeTypes0","AllowedBarcodeTypes1","push","AllowedBarcodeTypes","SetupInstructions","ValidationInstructions","LookupInstructions","InsertRules","_i$SetupInstructions3","_i$InsertRules4","_i$InsertRules4$Setup","IsSeparateInsertRule","allInstructions","getAllInstructionsForSingleField","_IsAlpha","IsAlpha","_Allowed","CustomLocation","locLocationData","_defineProperty","e","_form$ProductMode2","ProductModeData","AncillaryData","QtyInfo","exist","ProductMode","CountType","_i$SetupInstructions4","_i$ValidationInstruct2","_i$LookupInstructions2","_i$SetupInstructions5","_i$InsertRules5","_i$InsertRules5$Setup","_i$InsertRules6","_i$InsertRules6$Valid","_i$InsertRules7","_i$InsertRules7$Looku","ProductsList","_i$SetupInstructions6","_i$InsertRules8","_i$InsertRules8$Setup","ProductCaptured","_i$SetupInstructions7","_i$ValidationInstruct3","_i$LookupInstructions3","_i$InsertRules$SetupI2","_i$InsertRules9","_i$InsertRules10","_i$InsertRules$Valida","_i$InsertRules11","_i$InsertRules12","_i$InsertRules$Lookup","_i$InsertRules13","LookupEditorToConfig","reduxToFormConversion","_data$ProductMode","_data$ProductMode2","items1","fieldOj","StdWisTagValue","getStdWisTag","defVales","_data$ProductMode$pro","_data$ProductMode$pro2","_data$ProductMode$pro3","ParentTabIndex","ChildTabIndex","_data$InsertRules","_data$InsertRules2","_data$InsertRules3","LookupConfigToEditor","newCountProgram","getBreadcrumbPath","nextPage","componentName","Edit_count_program","Create_count_program","_getBreadcrumbConfig","getBreadcrumbConfig","landingName","Count_programs","landingPath","slice","createPath","editPath","bConfig","getToCopy","clickBoardName","instructions","isCopied","locAlertProps","navigator","clipboard","writeText","sourceFrom","copiedItem","t0","handleToPaste","previousInstructions","instructionsName","isPasted","isNonEmptyArray","isAlertShow","isValueSet","locPasteInfo","text","readText","_x4","_x5","MUICheckbox","inputAttributes","defaultValue","onChange","formGroupClassName","disableRipple","_useFormContext","useFormContext","control","errors","formState","defVal","_getFieldError","getFieldError","isError","ErrorText","Controller","_ref2$field","field","ref","_objectWithoutProperties","_excluded","FormGroup","FormControlLabel","Checkbox","updateWarnOnTabChangeToStore","checked","checkedIcon","CheckIcon","FormHelperText","Tab","GSTab","LocationCategoriesTab","LocationReportingsTab","CountFieldsTab","LookupRoutinesTab","VariancesTab","OutputFiles","AuditsTab","CountProgramsTab","InputFilesTab","ConfigurationStoreTypeKeys","GeneralSettings","Audits","CountPrograms","FullStoreVariances","GroupedVariances","InputFiles","LocationCategories","LookupRoutines","OutputFile","Reports","ConfigSkipSections","ConfigurationStoreInitiate","FilesRequired","DepartmentFileNotRequired","ProductFileNotRequired","Outputs","OutputBundles","Efficiency","Accuracy","configPayload","customerName","configName","generalSettings","CustomerID","CustomerName","ConfigurationId","ConfigurationName","ConfigurationVersion","Currencies","currencies","Notes","SupportedLanguages","locConfig","IncludeTagAudits","createdDate","lastUpdatedDate","idConfig","idCustomer","parseInt","DEFAULT_RADIX","type","supportedLanguages","version","actionType","parentConfigId","isDefault","userFilters","phone","sPhone","email","userPrevFilters","validUserColumnList","csvUserColumnList","userMappingData","userFileData","userFilePath","userAccounts","usersData","usersSort","usersColumn","customerService","CustomerService","getUserAccounts","userEmail","getAccountsByEmail","usersSlice","setUserFilters","setUserPrevFilters","setCSVUserColumnList","setUserMappingData","setUserFileData","setUserFilePath","setUsersData","setUserReset","_usersSlice$actions","_ref$nextPage","_ref$storeId","_ref$createPath","_ref$editPath","_ref$showHomeIcon","landingPage","componentNameVariable","replaceAllMultiple","replace","componentPath","firstLetterUpperCase","str","charAt","toUpperCase","handleAutoCompleteDataSourceChange","dataSource","result","setDataSource","val","override","pathname","store","updateWarnOnTabChange","promptTypeList","DECIMAL","NUMERIC","replaceWithSQLWithPromptDefault","locSql","promptsDataObj","prompt","isNumber","Type","variableName","VariableName","_prompt$DefaultValue","DefaultValue","makeClearQueryToExecute","sql","isPromptReplace","trim","ConfigTabNames","Categories","CountFields","SubTotals","GrandTotals","MultiEventOutputs","Notification","checkRequiredFieldErrorCheck","_data$FileName","_data$Columns","alertMsgFieldError","FileName","SQL","Columns","reducer","action","emptyFieldValues","varianceSlice","setVarianceRedux","getFieldDelimiterValue","FieldDelimiter","FIELD_DELIMITER","OtherFieldDelimiter","getRecordDelimiterValue","RecordDelimiter","RECORD_DELIMITER","OtherRecordDelimiter","BulkUploadButtons","previousBLabel","handlePreviousClick","cancelBLabel","handleCancelClick","nextBLabel","handleNextClick","saveDisable","Button","ArrowBackIcon","multiEventOutputSlice","multiEventOutputsRedux","multiEventOutputRedux","isSetMultiEventOutputsRedux","selectedCustomerIds","configFilesByCustomersRedux","setMultiEventOutputsRedux","setMultiEventOutputRedux","setSelectedCustomerIds","setConfigFilesByCustomersRedux","_multiEventOutputSlic","fieldTypes","string","number","boolean","radio","checkbox","array","_props","_useTranslation","i18n","useLocation","configService","queryParams","useQuery","_useState","useState","_useState2","_slicedToArray","toggleMenu","setToggleMenu","_useState3","_useState4","loading","setLoading","_useState5","_useState6","isEditConfig","setIsEditConfig","_useState7","_useState8","customersList","setCustomersList","_useState9","_useState10","selectedCustomers","setSelectedCustomers","_useState11","_useState12","setPath","_useState13","_useState14","isMultiCustomer","setIsMultiCustomer","CONFIG_PATH","categories","countFields","lookupRoutines","reportings","outputFiles","audits","countPrograms","inputFiles","_React$useState","React","_React$useState2","anchorEl","setAnchorEl","userMenuOpen","Boolean","_useState15","_useState16","configPath","setConfigPath","configSliceData","useSelector","authSliceData","auth","configType","configDataFromStore","configDetails","warnOnTabChange","configNameFromStore","_state$user","user","companyDetails","_state$settings","settings","customerSelectionModalOpen","_state$customerSelect","customerSelection","modalOpen","_state$multiEventOutp","multiEventOutput","_useState17","_useState18","setConfigName","_useState19","_useState20","userPermissions","setUserPermissions","_useState21","_useState22","setVersion","useEffect","_authSliceData$keys","isMounted","customerConfigurationsStatus","isGetConfigsDecrypt","data1","getResCDsConfigDecryption","customerConfigurations","setCustomerConfiguration","dt","getPermissionsForUser","m","Permissions","checkDisabledStatus","param","_res$Permissions","_res","find","f","Feature","PERMISSIONS","VIEW","prepareEndPoint","pathString","_location$search","search","_fullName$split","_fullName$split2","firstName","lastName","firstInitial","lastInitial","setCompanyDetails","handleClick","useCallback","event","currentTarget","handleClose","setUserDetails","selected","c","companyName","img","companyLogo","isCustomerSelected","filter","setCustomerForOperation","setCustomerNameForOperation","setCustomers","handleLoadChild","_userAccounts$filter","selectedUser","toLocaleLowerCase","getConfigDetails","configVersion","_authSliceData$keys2","_configObject$General","_configObject$General2","configObject","getConfigurationDecryptAndSetRedux","_location$pathname","pathSplit","_temp$payload","_err","clickToggleMenu","handleClickToggleMenuKeyUp","keyCode","KEY_CODES","ENTER","_useState23","_useState24","open","setOpen","handleClickOpen","setModalOpen","setIsRedirectHome","handleClickOpenKeyUp","languageMap","English","French","Spanish","checkDisableLink","isEventView","language","Grid","container","item","xs","MenuIcon","PortalLogoLight","configPortalLogo","Select","MenuProps","anchorOrigin","vertical","horizontal","transformOrigin","changeLanguage","target","labelId","availableLanguages","MenuItem","onKeyUp","multiCustomerLogo","Fetching","Avatar","Menu","onClose","MenuListProps","logoutPopup","postLogoutRedirectUri","mainWindowRedirectUri","Logout","CloseIcon","PortalLogo","NavLink","to","Home","FEATURES","Schedule","RESERVATIONS","Device_Reservation","Locations","Upload_Files","Live_Events","Final_Reports_Files","COMPANY_SETTINGS","Settings","Dialog","fullScreen","SelectCustomer","close","activeClassName","General_Settings","HEADER_CONSTANTS","InputFile","Input_Files","Category","CountField","count_fields","Count_Fields","Lookup","Lookup_Routines","Count_Programs","Variance","Audit","Report","Output","Prompt","when","message","You_have_unsaved_changes","Are_you_sure_you_want_to_leave","View","VisibilityIcon","memo","MainLayout","toggleFooter","setToggleFooter","loadChild","setLoadChild","footerToggleClick","handleFooterToggleKeyUp","styles","MainContentContainer","UploadFileService","configurationId","validationControlId","validationDepartmentId","updatedBy","varianceControlId","fileType","fileData","saveWithParams","idFileType","MUIText","placeholder","size","color","fullWidth","InputProps","multiline","maxRows","onFocus","getDefaultValue","TextField","inputRef","autoSave","autoComplete","helperText","createEditFieldNames","Customers","FileCreationSchedule","ConfigurationIncludes","IsSpecificDateRange","StartDate","EndDate","Time","Loadings","systemDefaultFieldNames","SDMinStore","SDMaxStore","dailyFieldNames","DayRadio","DayInterval","WeekDayRadio","weeklyFieldNames","WeeklyInterval","IsWeekDays","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","monthlyFieldNames","DayNumber","DayMonthInterval","WeekRadio","WeekNumber","WeekDay","WeekMonthInterval","yearlyFieldNames","YearInterval","DayMonthRadio","DayMonth","DayMonthDayNumber","WeekMonthRadio","WeekMonthWeekNumber","WeekMonthWeekDay","WeekMonth","MDWNOValues","First","Second","Third","Fourth","weekDays","YDMOValues","January","February","March","April","May","June","July","August","September","October","November","December","ConfigurationDetailsFields","configurationIncludes","fieldType","formField","multi_auto_dropdown","createEditMultiEventOutputDefaultValues","RecordId","Description","FileType","AsciiCharValue","HasHeaderRecord","RawSQL","ColumnsToSuppress","SystemDefaultMinStore","SystemDefaultMaxStore","DailyDayRadio","DailyDayInterval","DailyWeekDayRadio","WeeklyIsWeekDays","WeeklySunday","WeeklyMonday","WeeklyTuesday","WeeklyWednesday","WeeklyThursday","WeeklyFriday","WeeklySaturday","MonthlyDayRadio","MonthlyDayNumber","MonthlyDayMonthInterval","MonthlyWeekRadio","MonthlyWeekNumber","MonthlyWeekDay","MonthlyWeekMonthInterval","YearlyYearInterval","YearlyDayMonthRadio","YearlyDayMonth","YearlyDayMonthDayNumber","YearlyWeekMonthRadio","YearlyWeekMonthWeekNumber","YearlyWeekMonthWeekDay","YearlyWeekMonth","startOf","toDate","Destination","CustomerPortalCheck","FtpDirectory","Email","isGetAPICall","isConfigAPICall","getEncryptFunction","_getEncryptFunction","_yield$import","importedEncrypt","_bulkUpdateSchedule","encryptFunction","savefile","CustomerId","findAllFutureEvents","AlertC","Icon","CheckCircleIcon","HighlightOff","MUIAutoCompleteText","inputValue","setInputValue","isOptionTranslate","freeSolo","isNotSort","newOptions","sort","_a$label","localeCompare","getInputValue","targetValue","output","FormControl","Autocomplete","v","w","onInputChange","newInputValue","renderOption","option","getOptionLabel","getOptionLabelForAutoComplete","renderInput","inputProps","liveEventsSlice","liveEventsFilters","currentDate","liveEventsFilterForm","liveEventsSelectedSpans","liveEventsData","setLiveEventsFilters","setLiveEventsFilterForm","setLiveEventsSelectedSpans","setLiveEventsData","_liveEventsSlice$acti","SettingsService","customerIds","countryId","DateFormat","date","time","lang","i18next","breakDandT","isLocal","isEvent","onlyDate","locale","languageCodeMap","utc","local","toLocaleUpperCase","utcOffset","estDate","columnSlice","columnsRedux","setColumnsRedux","ReadOnlyRow","renderRowLayoutChildren","ReadOnlyLayout","component","countFieldComponent","disable","history","useHistory","useDispatch","renderIfStatement","row1","ROW","function","parameters","rowNo","pathName","CONFIG_MODULES","setNewLookupRoutine","setup","validation","AuditRule","CountFieldInstructions","lookup","margin_left","Instructions","_row","_form$Instructions","_row2","_margin_left_find_for","margin_left_find_for_row","ml","start","isRowDisplay","functionTypes","Else","Endif","_row3","_row4","_row5","locContent","replaceAll","Fragment","If","Click_here_to_add_instructions","renderLayout","b2cPolicies","process","clientId","authority","signUpSignIn","knownAuthorities","redirectUri","navigateToLoginRequestUrl","cache","cacheLocation","storeAuthStateInCookie","system","loggerOptions","loggerCallback","level","containsPii","scopes","loginHint","domainHint","isGetConfigDecrypt","accuracySettings","efficiencySettings","locationCategories","defaultCountFields","initCountFields","newLookupRoutine","newReportPrompts","newReports","newSQLQuery","newSQLQueryColumns","newReportSQLQueryColumns","currentOutputFile","newReportColumns","editColumns","outputColumns","outputSubTotals","outputGrandTotals","fixedLengthInputFields","delimitedInputFields","excelInputFields","customerFormValues","reportSubTotals","reportColumnError","reportGrandTotals","configDataHookCalled","newTargetLocationAuditRule","newTargetRecordAuditRule","newRandomAuditRule","newFollowUpAuditRule","reduxCountScreenTotals","reduxProductKey","reduxOutOfRangeCountMethod","outputDestination","getConfiguration","flat","Infinity","configSlice","setReduxCountScreenTotals","setReduxProductKey","setReduxOutOfRangeCountMethod","setConfigDetails","setGeneralSettings","setEfficiencySettings","setAccuracySettings","setLocationCategories","setReports","setNewReportPrompts","setNewReports","setNewReportColumns","setSQLQuery","setSQLQueryColumns","setReportSQLQueryColumns","setAudits","setNewTargetLocationAuditRule","setNewTargetRecordAuditRule","setNewRandomAuditRule","setNewFollowUpAuditRule","setCountFields","setCurrentOutputFile","setDefaultCountFields","_action$payload","_action$payload2","setDefaultConfigName","setDefaultConfigType","setLookupRoutines","setOutputFiles","setCountPrograms","setInputFiles","setEditColumns","setOutputColumns","setOutputSubTotals","setOutputGrandTotals","setFixedLengthInputFields","setDelimitedInputFields","setExcelInputFields","setCustomerFormValues","setReportSubTotals","setReportColumnError","setReportGrandTotals","setConfigDataHookCalled","setNewCountProgram","setOutputDestination","_configSlice$actions","csvReservationColumnList","reservationFileData","reservationFilters","sDate","eDate","bulkReservationFilePath","reservationPrevFilters","reservationMappingData","validReservationColumnList","reservationSort","reservationColumn","reservationsSlice","setReservationFilters","setReservationPrevFilters","setReservationFileData","setCSVReservationColumnList","setReservationMappingData","setReservationReset","setReservationLocationFile","_reservationsSlice$ac","outputBundleSlice","outputBundlesRedux","isSetOutputBundlesRedux","setOutputBundlesRedux","CustomerSelectionSlice","isRedirectHome","_CustomerSelectionSli","functionNames","SIDEBAR_ITEM","inputSetupFunctions","AllowScan","inputType","checkBarcodeType","arrayWithRequired","AllowKey","checkDataType","stringWithRequired","oneOf","numberWithRequired","AutoStore","SelectionOptions","conditions","sourceForCombinedCountOptions","lookupFunctions","lookupTableOptions","LookupRoutine","TrueOrFalse","stringWithNotRequired","LookupRoutineCopyOverRide","Error","stringFunctions","Trim","LTrim","max","RTrim","LPad","min","RPad","SubString","numberWithNotRequired","SubStringFromEnd","ToUpper","ToLower","Remove","Replace","RemoveFromEnd","Strip","StripControlChars","Split","Insert","ExpandUpceToUpca","AddCheckDigit","checkDigitOrAddCheckDigitInputs","RestoreOriginal","mathFunctions","Add","Subtract","Multiply","Divide","validate","isValidNumber","isValidString","Round","Floor","Ceil","COLUMN","COMPONENT","braces","Braces","isExpandMore","ifElse","sideBarItemKeys","booleanFunctions","SIDEBAR_ITEMS","inputTypes","parametersCopy","CheckDigit","unshift","CheckDigitRadioOptions","_parametersCopy","_parametersCopy2","newPramArray","inx","defval","sourceField","booleanError","booleanErrorMessage","_inputTypes$","newInx","CheckLengths","IsIn","sourceForCombinedCountOptionsArr","paramNumber","_defval$","_defval$2","CheckBarcodeType","PermissionsAccessGate","feature","permissionKey","_ref$restriction","restriction","_data","_m$Permissions","permissionGranted","_userPermissions$find","_f$Feature","hasPermission","UPDATE","CREATE","DOWNLOAD","fieldConstants","SortOrder","ASC","DESC","SortColumns","scheduledDateTime","reservation","SortColumnType","Interger","timeOut","MUIRadio","formLabel","formControl","radioGroup","default","_formControl$radioGro","_formControl$radioGro2","FormLabel","RadioGroup","ariaLabelledby","_item$disabled","_item$radio","_item$radio$size","_item$radio2","Radio","isAutheticated","loggedInEmail","templates","LOCATION","RESERVATION","USER","DEPARTMENT","VARIANCE","ADDRANGE","authSlice","logout","removeItem","login","setLoginEmail","setKeys","setTemplates","_authSlice$actions","configFileValidationCheck","errorCount","can_not_be_empty","getTabValue","URLSearchParams","getColumns","selectedCustomerList","columnsData","shift","getConfigHistoryBreadcrumbPath","History","BulkUploadAlert","templateUrl","downloadType","custom_title_Info","Csv_Template","textDecoration","download","templateFileMap","BULK_UPLOADING","LOCATION_FILE_UPLOADING","Locations_Data_Import_Template","SCHEDULE_FILE_UPLOADING","Schedule_Data_Import_Template","USER_DEATILS_FILE_UPLOADING","Users_Data_Import_Template","Device_Data_Import_Template","UPLOADFILE","DEPARTMENT_FILE_UPLOADING","VARIANCE_FILE_UPLOADING","AREA_RANGE_FILE_UPLOADING","Upload_File_Import_Templete","BulkUploadData","fileUploadType","To_upload_Locations_you_need_to_populate_a_CSV_file_with_user_data_Please_use_the_provided_CSV_template_The_columns_in_the_template_are_the_expected_fields","TO_IMPORT_LOCATIONS_PERFORM_FOLLOWING_TASKS","To_upload_data_you_need_to_populate_a_CSV_file_with_user_data_Please_use_the_provided_CSV_template_The_columns_in_the_template_are_the_expected_fields","TO_IMPORT_SCHEDULED_DATA_PERFORM_FOLLOWING_TASKS","TO_IMPORT_USERS_DATA_PERFORM_FOLLOWING_TASKS","Download_template_right_to_create_a_CSV_file","populateCSVFileWithDoNotChangeTheColumnHeader","Upload_the_CSV_file_in_the_upload_box","Upload_the_CSV_file_in_the_upload_box_provided_below","BulkUploadText","showError","progress","files","showPopup","bulkLocationFilePath","getRootProps","handleCsvFile","onDeleteClick","onClearClick","onDeleteFileClick","handleDataMapping","alertError","typeOfFile","handleOnDeleteClick","handleOnClearClickClick","handleOnDeleteFileClick","Choose_File","sm","Divider","Upload_CSV_File","csvIcon","cursor","htmlFor","Drop_your_CSV_file_here_or","browse","DeleteIcon","Are_you_sure","ClearIcon","spacing","LinearProgress","Cancel","Next_Data_Mapping","LocationAndScheduleTopHeadings","Data_Mapping","Associating_the_attributes_to_the_CSV_Data","Map_the_available_data_base_fields_to_your_file","Attributes","CSV_Data","SqlTestEditorService","API_REQUESTS","SQLEDITORTESTAPI","sqlQuery","sqlPost","supervisorURL","renderConversionFromConfig","configLookup","layout","getLayout","setLayout","setLayoutIfElseReadable","isIfReadableCheck","ifElseToReadable","lookupService","LookupRoutinesService","getTableNamesWithColumns","lookupRoutinesSlice","tableNames","tableNameOptions","setTableNameOptions","FtpConnectionSlice","ftpConnections","setFtpConnections","configureStore","settingsReducer","reservations","reservationsReducer","schedule","scheduleReducer","userReducer","configReducer","configurationReducer","uploadFiles","uploadFilesReducer","reports","reportsReducer","liveEvents","liveEventsReducer","variance","varianceReducer","outputBundle","outputBundleReducer","report","reportReducer","ftpConnection","ftpConnectionReducer","customerSelectionReducer","multiEventOutputReducer","middleware","getDefaultMiddleware","serializableCheck","configurationSlice","configurationByCustomer","configurationFilters","configurationPrevFilters","configurationSort","configurationColumn","setConfigurationFilters","setConfigurationPrevFilters","_configurationSlice$a","finalReports","reportFilters","filesData","dateRange","today","toISOString","getDefaultStartDate","getDefaultEndDate","storesData","reportPrevFilters","reportSort","reportColumn","reportService","ReportService","getFinalReports","getCustomerFinalReports","reportsSlice","setReportFilters","setReportPrevFilters","_reportsSlice$actions","module","exports","UserService","emailId","DataField","Labels","ShowOnTagDetails","ShowOnQtyEntry","IsAllowEdits","Function","Parameters","OnFail","OnFailMessage","SecondaryLocation1","SecondaryLocation2","SecondaryLocation3","ProductBarcode","ProductSku","ProductDescription","Department","DepartmentName","DepartmentParent","DepartmentParentName","Price","DecimalPlaces","CurrencySymbol","ProductUOM","ProductSize","ProductColor","Cost","ProductGenericT1","ProductGenericT2","ProductGenericT3","ProductGenericD1","ProductGenericD2","ProductGenericD3","DepartmentSort","DepartmentParentSort","VarianceGroup","Style","currencySymbolDisplay","decimalPositionDisplay","original","display","columnDataDetails","reorderRecords","extItem","pcIndex","findIndex","d","firstItem","splice","qtyIndex","lastItem","extIndex","getCurrencySymbol","cMap","Map","cFullMap","cDisplayMap","cOriginalDisplayMap","cDisplayOriginalMap","_Object$values","set","instructionDetails","MUIMultiAutoCompleteText","optionsWithAll","multiple","u","vals","disableCloseOnSelect","isOptionEqualToValue","marginRight","ListItemText","primary","MUITimePicker","views","LocalizationProvider","dateAdapter","AdapterDateFns","TimePicker","GeneralSettingsToolBar","settingsSaveClick","ConfigDataHook","_state$config","BreadCrumb","renderedPage","customPath","breadCrumbInfo","Save","SaveOutlinedIcon","selectedLanguages","liftSettingsSaveClick","_ConfigDataHook$confi","configNameError","setConfigNameError","selectedCustomerForOperation","_state$settings2","selectedCustomerNameForOperation","languages","setLanguages","LANG_OPTIONS","english_lang_dropmenu","french_lang_dropmenu","spanish_lang_dropmenu","STATUS_OBJECT","Active","InActive","NotInstalled","prepareLanguageOptions","langObject","alertProps","setAlertProps","showAlert","setShowAlert","setConfigData","currency","setCurrency","notes","setNotes","notesLength","setNotesLength","setStatus","efficiencyGoal","setEfficiencyGoal","secondayEfficiencyGoal","setSecondayEfficiencyGoal","_useState25","_useState26","downTimeGoal","setDownTimeGoal","_useState27","_useState28","secondarydownTimeGoal","setSecondarydownTimeGoal","_useState29","_useState30","accuracyGoal","setAccuracyGoal","_useState31","_useState32","secondayAccuracyGoal","setSecondayAccuracyGoal","_useState33","_useState34","includeAuditTags","setIncludeAuditTags","_useState35","_useState36","efficiencyGoalError","setEfficiencyGoalError","_useState37","_useState38","secondayEfficiencyGoalError","setSecondayEfficiencyGoalError","_useState39","_useState40","configEmptyError","setConfigEmptyError","_useState41","_useState42","configNameErrorMsg","setConfigNameErrorMsg","_useState43","_useState44","isDisabled","setIsDisabled","_configObject$General3","_configObject$General4","_configObject$Efficie","_configObject$Efficie2","_percentageValueConve","_configObject$Efficie3","_percentageValueConve2","_configObject$Efficie4","_percentageValueConve3","_configObject$Accurac","_percentageValueConve4","_configObject$Accurac2","_configObject$Accurac3","_configObject$General5","Goal","SecondaryGoal","percentageValueConversion","DownTimeGoal","DownTimeSecondaryGoal","handleChange","validateInputString","Invalid_Input","textLength","STATUS_CONSTANTS","configFileValidation","validateDecimal","substring","onPercentageChange","_event$target","_event$target$id","targetID","alertVisibleStatus","statusId","_configFileValidation","toastMsgShow","Configuration_details_not_completed","alertMsg","_formatInteger","_formatInteger2","_formatInteger3","_formatInteger4","lan","sel","statusValue","parseFloat","toFixed","Status","formatInteger","_config$name","EfficiencySettings","AccuracySettings","Configuration_Name","maxLength","Configuration_name_cannot_be_empty","configErrMsg","idx","handleLanguagesChange","SelectCurrency","InputLabel","Currency","fontWeight","ConfigurationNotes","STATUS","Inactive","NotificationsActiveIcon","Default_Configuration","There_is_already_a_default_configuration_for_this_customer","Goals","Efficiency_Goal","Secondary_Efficiency_Goal","disablePortal","generatePercentageValues","Downtime_Goal","Secondary_Downtime_Goal","Accuracy_Goal","Secondary_Accuracy_Goal","Include_Tag_Audits_in_Accuracy_Calculation","utilTypes","IfText","AND","OR","ruleEditorFunctions","booleanFn","CheckDataType","CheckEntryMethod","CheckValueRange","CheckDecimalRange","CheckLengthRange","RegEx","IsEqual","IsGreaterThan","IsGreaterThanOrEqual","IsLessThan","IsLessThanOrEqual","StartsWith","EndsWith","IsNull","IsNullOrEmpty","IsNullOrWhiteSpace","IsNotNull","IsNotNullOrEmpty","IsNotNullOrWhiteSpace","HasConsecutiveSameDigits","HasConsecutiveSameCapture","RecordsInLoop","getUniqueKey","random","getKeys","valKey","_store$getState","_store$getState$auth","getState","_key$secretKey","secretKey","secretValue","plaintext","SecretKey","IV","keyWA","crypto","Utf8","ivWA","iv","encryptBulkColumns","dataAttribute","csvAttribute","decrypt","chiper","decrypted","useMemo","getQueryParam","days","date_1","date_2","difference","getTime","ceil","filterByHelper","filters","others","filtered","func","combinedField","some","_d$f$field","_d$SECONDARY_PHONE","_d$f$field2","_f$value","_d$f$field3","SECONDARY_PHONE","USER_STATUS_CONSTANTS","In_ACtive","InACtive","STATUSES","Invited","_d$f$field4","_f$value2","isConverstionRequired","rg","regionNumber","regionValue","validateEmail","formatPhoneNumber","phoneNumberString","validatePhoneNumber","phoneNumber","test","validateInteger","fieldValue","validateOnlyInteger","validateVariable","encryptUrlParams","myString","encodedWord","Base64","decryptUrlParams","encoded","_base64Payload","_payloadBuffer","Buffer","from","getCurrentUserRole","_accessToken","parsedObj","filterRegionalUserData","regionalUserData","regionMappingData","filteredData","reportsData","region1Data","RegionNumber","RegionValue","region2Data","region3Data","region4Data","filteredRegion1Data","filteredRegion2Data","filteredRegion3Data","filteredRegion4Data","itm","indexOf","self","idEvent","_dt","sortTableData","unSortedDataOriginal","SortColumn","ColumnType","sortedData","unSortedData","sourceStr","searchStr","searchArr","replaceArr","locSourceStr","handleFocus","select","containsAll","child","parent","_step","_iterator","_createForOfIteratorHelper","s","n","done","numericSort","checkPhoneValidations","getLocationsByAccountHelper","_ref5","userService","getAllRegionalsByAccount","mapRegionValues","locationAccountData","r1","r2","r3","r4","formatRGValues","regionValues","_step2","regionValuesArray","_iterator2","_step3","splitString","_iterator3","Set","_userRole","handleSuperVisorPortalRedirect","record","userFirstName","userLastName","supervisorPortalURL","eventId","redirectURL","password","validateWisTagsValue","numericValue","Value_not_exceed_20000","Invalid_Value","Value_must_multiple_100","SORT_TYPES","sortByKey","sorted","exists","searchLiveEvents","input","searchTerm","_item$storeName","_item$siteId","_item$address","nameMatch","storeName","siteIdMatch","siteId","addressMatch","address","filterAndSort","filteredArray","el","uniqueValues","sortData","valueA","valueB","getRegionData","userData","setFilteredRegion1Values","setFilteredRegion2Values","setFilteredRegion3Values","setFilteredRegion4Values","filterAndSetValues","regionName","newArray","handleResetAll","_ref6","setRegion1","setRegion2","setRegion3","setRegion4","setCountryName","setStateName","setDate","setStatusName","isSchedulePage","SCHEDULE_STATUS_CONSTANTS","INPROGRESS","NOTSTARTED","Completed","Locked","handleScheduleResetAll","_ref7","setStartDate","setEndDate","LOCK_IN_PROGRESS","SOFT_CLOSE","dateChangeHandler","handleChangeRegion","handleChangeCountryVal","handleChangeSiteIdVal","setSiteIdSelects","handleChangeStatusVal","statusName","uniqStatus","handleChangeStateVal","handleChangeConfigVal","mapEventsData","eventsData","countryValues","stateValues","statusValues","eventStartDateValues","eventStartDate","isValidInputValue","_Translates$key","isLoggedIn","username","Populate_the_CSV_file_with_the_import_data_Do_not_change_the_column_headers","Download_the_template_from_the_right_to_create_a_CSV_file","CSV_Templates","Info","processCSV","typeOfUploading","parsedData","Papa","header","skipEmptyLines","parsedArray","_temp","meta","fields","newRow","US_STATE_MAP","setCSVLocationColumnList","setLocationFileData","setCSVUploadFileColumnListDeparment","setCSVUploadFileColumnListVariance","setCSVUploadFileColumnListAreaRange","setUploadFileData","createImageFile","svgBlob","Image","onload","canvas","document","createElement","ctx","getContext","width","height","drawImage","toBlob","blob","fileQRCode","File","SHARE_EVENTS","File_Name","URL","createObjectURL","millisecondsToDays","milliseconds","fileExtensionCheck","_ref8","fileName","setAlertError","isFileNameAllowed","getLastFileExtension","filename","pop","_ref9","_step4","allExtension","newAllExtension","getAllFileExtension","_iterator4","disallowedExtensions","extension","oldVal","Incorrect_File_Format","File_name_or_extension_can_not_be_contain_the_following_letters","specialCharsRegex","inputStr","createURLFromByteArray","byteCharacters","atob","byteNumbers","charCodeAt","byteArray","Uint8Array","Blob","setWeekFieldError","_ref10","setWeekIVFields","isValid","getJSONParse","configFileDecryption","configP","isParse","downloadJSON","jsonData","appendChild","click","removeChild","revokeObjectURL","getBulkAPIValidation","_parts$","parts","rowPart","rowNumber","firstPart","lastSpaceIndex","lastIndexOf","msg","getEventStatusList","_ref11","In_Progress","Not_Started","Closed","Cancelled","Lock_in_progress","Soft_Close","getConfigStatusList","_ref12","In_Active","Not_Installed","formatWithCurrencyLang","amount","_i18next$language","_languages$FRENCH","FRENCH","currencyFormatRegex","stripSecondsAndMilliseconds","dateStr","getFullYear","getMonth","getDate","getHours","getMinutes","customSortSiteIds","reA","reN","AInt","BInt","aA","bA","aN","bN","sortedValues","hasLeadingZeros","startsWith","hasLeadingZerosA","hasLeadingZerosB","isNumericA","isNumericB","checkNullEmpty","MUIDatePicker","maxDate","minDate","prepareDate","DesktopDatePicker","inputFormat","alertMsgShow","HighlightOffIcon","emptyAlert","GetConfigPayload","_window$location$sear","_configDetails$suppor","configVal","varianceData","reportData","outputBundleData","idString","idNum","reportsRedux","updateConfigurationData","alertMsgUC","updateConfiguration","Success","Saved_Successfully","comparingConfigAndReduxArrays","ConfigArr","ReduxArr","getCountFieldFormateForConfig","fieldsObj","fieldsObjCopy","qtyCopy","extCopy","locFieldCopy","FieldsObjCopyFinal","defaultVal","onCancelClick","goBack","conditionBasedReturnFieldComponent","formHookMethods","_i$props","_i5","_i8","_i2","_i3","_i3$disableCondition","_i4","_i4$disableCondition","_i6","_i7","_i9","_i10","_i11","_i12","_i13","OnChangeHandler","renderType","disableCondition","watch","textarea","auto_dropdown","getTabLabel","tab","locTab","Multi_Event_Outputs","getColumnsFromAPI","variableRedux","queryToBeTested","testSQLService","Prompts","postSqlTestEditorValueForVerify","API_RESPONSE","SUCCESS","setValueForVariable","newValue","handleFieldChangeRevalidation","_FieldDetail$triggerV","FieldDetail","setValue","trigger","resetFieldNames","isErrOnlyReset","shouldValidate","triggerValidationFields","HereService","qParams","countryCode","encodeURIComponent","autoCompleteTimeZone","getToken","encodeURI","secret","nonce","btoa","timestamp","normalizedUrl","signing_method","sig_string","normalised_string","signingKey","digest","CryptoJS","signature","method","grantType","resp","getVarianceConstant","VarianceType","CurrentTab","SortList","GroupAndFullVarianceCommon","QtyOrExt","QtyAndExt","OnHandsFile","phoneRegexValidation","convertPhoneNumberRegexStart","convertPhoneNumberRegexEnd","ReportFieldName","BlindVFieldOptions","NonBlindVFieldOptions","ReportFieldOptions","MAP_FILTERS","filterFn","countProgress","auditProgress","varianceProgress","isVarianceCreated","SelectCustomerDropdown","onContinue","customers","selectedCustomer","setSelectedCustomer","maxWidth","startIcon","Close","Select_Customer","DialogContent","Select_customer_from_the_below_list","DialogActions","Continue","checkBarcodeTypeForCheckDigit","checkEntryMethod","checkEntryMethodPreCount","checkEntryMethodWithPrecount","CheckDigitAddType","CheckDigitNextType","CheckDigitModType","WeightOptions","sourceProductTableFields","sourceDepartmentTableFields","sourceOtherTableFields","currentFieldOptions","lookupProductOptions","lookupDepartmentOptions","lookupRepackOptions","sourceForCountLocationOptions","sourceForCountProductOptions","sourceForCountDepartmentOptions","sourceForAuditTagLevelOptions","sourceForAuditRecordLevelOptions","errorOptions","preCountDataOptions","COUNT_PROGRAMS_TYPE","CLONE","EDIT","CountTypeList","translateKey","landingColumnDataDetails","ProductEnableMode","countType","locationSetupInstructionArrayName","locationValidationInstructionArrayName","locationLookupInstructionArrayName","locationKeyName","locationIsSeparateInsertRuleName","locationInsertRuleSetupInstructionArrayName","locationInsertRuleValidationInstructionArrayName","locationInsertRuleLookupInstructionArrayName","productIsSeparateInsertRuleName","productSetupInstructionArrayName","productValidationInstructionArrayName","productLookupInstructionArrayName","productInsertRuleSetupInstructionArrayName","productInsertRuleValidationInstructionArrayName","productInsertRuleLookupInstructionArrayName","productKeyName","conditionCommon","Condition","IfTrue","conditionCommon1","conditionCommon2","locationStaticConfigLookupInstruction","CopyStdWisTagSetupInstructions","checkBoxClass","CopyStdWisTagValidationInstructions","fileCSOptions","Default","Daily","Weekly","Monthly","Yearly","Reservation","FcsDetailsFields","fileCreationSchedule","childCols","TimeFields","setMinutes","parentCols","heading","WeekNumberOptions","WeekDayOptions","urlParams","slicedUrlParams","decryptedParams","replacedString","_useSelector","columnReduxData","ftpConnectionData","multiEventOutputData","controller","AbortController","abort","_auth$keys","_dt$LookupRoutines","locField","countScreenTotals","productKey","outOfRangeCountMethod","_dt$Fields","_dt$Fields2","_dt$Fields3","setReportsRedux","prepareDataForProductList","prepareDataForLocationList","_dt$Audits","_dt$Audits2","_dt$Audits3","_dt$Audits4","_dt$Audits5","_dt$Audits6","_dt$Audits7","_dt$Audits8","RandomSystemAudits","RecordSystemAudits","LocationSystemAudits","FollowupSystemAudits","AceEditorC","editormode","editorvalue","editorreadOnly","onFocusChangeHandler","editorBackgroundColor","onChangeHandler","focus","AceEditor","mode","theme","fontSize","maxLines","minLines","showPrintMargin","highlightActiveLine","readOnly","editorProps","$blockScrolling","setOptions","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets","showLineNumbers","showGutter","onLoad","editor","session","getSession","count","getLength","gotoLine","getLine","MultilingualService","LoginService","update","InItService","hereService","_init","_store$getState$auth$","expireIn","_res$data","_res$data2","resources","updateMoment","defineLocale","months","monthsShort","initService","setToken","multilingualService","loginService","loginAccessTokenAndKeysSet","getTokenForADLogin","flexResp","refreshToken","getLogin","init","getTemplates","getLanguageText","Languages","_Languages$i","languageCode","us_en","i1","field_Code","text_Translation","ca_fr","_Languages$i2","es_mx","_Languages$i3","selectedLanguage","fallbackLanguage","initialLanguage","initReactI18next","LanguageDetector","defaultNS","lng","fallbackLng","reduce","current","languageLocales","english","french","spanish","auditRuleTypes","DETAIL","RESCAN","aRFieldNames","reason","auditType","followupPercentageThreshold","followupRequiredUser","followupOriginalReasons","followupStartTag","followupAccuracy","followupNumberOfFollowups","randomDetailPercentageThreshold","randomDetailRequiredUser","randomDetail1stAt","randomDetail1stNext","randomDetailStopAt","targettedLocationPercentageThreshold","targettedLocationRequiredUser","targetedRecordPercentageThreshold","targetedRecordRequiredUser","reqAuditsPerCounter","randomDetailsRepeat","followupHighQty","followupRandomSalesFloor","checkDetailAudits","IsPerPerson","percentThreshold","controlledradiobuttonsgroup","reqAuditsPercent","setAuditFormData","setForm","setErrorMsg","setFollowupAccuracyPercentageErrorMsg","setOverallPercentageErrorMsg","setFollowupStopAtPercentageErrorMsg","_e$target","_e$target2","_e$target3","_e$target4","_e$target5","_e$target6","_e$target7","_e$target8","_e$target9","_e$target10","_e$target11","_e$target12","_e$target13","_e$target14","_e$target15","_e$target16","_e$target17","_e$target18","_e$target19","_e$target20","_e$target21","_e$target22","setValidPercentageValues","setValidateDecimalIntegerFormData","FieldTypes","INTEGER","checkRescanAudits","onAutoCompleteFormChange","componentname","generateRuleName","ruleObj","filteredRuleObj","rule","Reason","ruleName","percentagesArray","ScheduleToolBar","handleFilter","disableDownload","filterCount","futureEventsDataCheck","customerList","showSelectCustomer","setShowSelectCustomer","schedulesPrevFilter","_state$schedule","handleCloseKeyUp","Filter","scrollTo","top","left","behavior","FilterListOutlinedIcon","Download_File","FileDownloadOutlinedIcon","ExcelIcon","EXCEL","AddIcon","New_Schedule","Confirm","callBack","custref","_ref$confirmButtonTex","confirmButtonText","dialogCancelButtonRef","useRef","ScheduleFilterComponent","_storeData$","_sortData","_storeData$2","_sortData2","_storeData$3","_sortData3","_storeData$4","_sortData4","_sortData5","_sortData6","storeData","multipleCustomersAssigned","filteredRegion1Values","filteredRegion2Values","filteredRegion3Values","filteredRegion4Values","countryName","handleChangeCountry","uniqCountries","stateName","handleChangeState","uniqStates","onStartDateChange","onEndDateChange","handleKeyDown","handleChangeStatus","isAllSelected","sortedStatus","handleResetAllClick","applyCancelClick","applyFilterClick","_ref$uniqSiteIds","uniqSiteIds","_ref$siteIdSelects","siteIdSelects","_ref$handleChangeSite","handleChangeSiteId","_e","_ref$isSchedulePage","_ref$inValidStartDate","inValidStartDateFormat","_ref$inValidEndDateFo","inValidEndDateFormat","_ref$uniqConfigNames","uniqConfigNames","handleChangeConfig","isAllConfigSelected","Filters","renderValue","Site_ID","Country","State","All","ListItemIcon","Scheduled_Date","onKeyDown","Start_Date","Invalid_Date_Format","End_Date","RESET_TO_DEFAULT","Reset_All","Apply_Filter","PaperProps","maxHeight","ITEM_HEIGHT","anchororigin","transformorigin","getcontentanchorel","ScheduleFilter","cancelClick","applyClick","countries","states","showFilterPage","siteIds","_React$useState3","_React$useState4","_React$useState5","_React$useState6","_React$useState7","_React$useState8","_React$useState9","_React$useState10","_React$useState11","_React$useState12","_React$useState13","_React$useState14","_React$useState15","_React$useState16","_React$useState17","_React$useState18","scheduleFilter","filteredRegion1","setFilteredRegion1","filteredRegion2","setFilteredRegion2","filteredRegion3","setFilteredRegion3","filteredRegion4","setFilteredRegion4","_React$useState19","_React$useState20","_React$useState21","_React$useState22","setInValidStartDateFormat","setInValidEndDateFormat","filteredCountries","filteredStates","hasInvalidDate","InvalidDate","filtersData","applyFilter","ScheduleDetails","regionalGroupsInfo","hideFilter","sendFilterDataToParent","sendRenderedDataToParent","setScheduleInParent","_ref$futureEventsData","futureEventsData","_ref$selectedEventIds","selectedEventIds","_ref$actionIdConfig","actionIdConfig","isInstall","scheduleSortFilter","setSchedule","alertVisible","setAlertVisible","isDialog","setIsDialog","setStoreData","settingsService","regionLabels","setRegionLabels","setCountries","setSiteIds","setConfigNames","setStates","userAccount","setUserAccount","renderData","setRenderData","eventIds","setEventIds","selectAllCheckbox","setSelectAllCheckbox","isDeleteOpen","setIsDeleteOpen","alertContent","setAlertContent","deleteRow","setDeleteRow","cancelRow","setCancelRow","fetchingPassword","setFetchingPassword","searchParams","EventIds","QUERY_PARAMETERS","EVENTIDS","getLocationsByStore","GetViewSchedule","resProcess","_scheduleFilterForm$c","_scheduleFilterForm$s","_scheduleFilterForm$r","_scheduleFilterForm$r2","_scheduleFilterForm$r3","_scheduleFilterForm$r4","_scheduleFilterForm$c2","getAppliedValues","DateFunction","renderShareIcon","_props$row$original$e","shareDisable","InfoOutlinedIcon","handleShare","renderRedirectIcon","_props$row$original$e2","redirectDisable","OpenInNewOutlinedIcon","handleRedicrect","renderEditIcon","_props$row$original$e3","_props$row$original$e4","ROLE_CONSTANTS","WisUser","NotStarted","handleEdit","handleEditKeyUp","Admin","CorporateUser","_props$row$original$e5","Future","handleDelete","_props$row","_props$row2","_props$row2$original","RenderDeleteIcon","_props$row$original$e6","_props$row$original$e7","_props$row$original$e8","renderDelete","RegionalUser","renderDeleteData","CancelOutlinedIcon","_regionalGroupsInfo","_temp$data","_temp$data$i","isTime","sortedTableData","configs","payloadToAdd","_error","labels","num","encryptedId","eventDetails","handleShipping","shipURL","shipTrackingNo","SHIPPING_URL","UPS_URL","FEDEX_URL","removeFromFetching","fetching","getEventPasswords","decyptedResp","SupervisorPassword","scheduleActionsResponse","callbackDeleteConfirmation","confirmationResp","Schedule_Cancelled_Successfully","setContent","scheduledDate","differenceInMilliseconds","daysBetween","Devices_may_have_already_shipped_Confirm_cancellation_with","This_action_will_cancel_this_event_Do_you_wish_to_proceed","getIcon","InProgress","RotateLeftIcon","LockIcon","getFullAddress","address1","address2","address3","city","postalCode","getAriaLabel","addressTool","getAddress","handleSelectAllHeader","enabledEventIds","showCheckbox","_props$row3","_props$row3$original","_props$row3$original$","_props$row4","customSort","_f$eventStatus","_props$row5","_props$row5$original","marginLeft","onSelectChange","customer","renderCompanyCell","DATE","Time_Zone","ADDRESS","placement","NO_OF_DEVICES","_props$value","REGION","_props$row7","customerDetail","_props$row6","_props$row6$original","CONFIG_NAME","displayConfigName","EVENT_STATUS","_props$row$original$e9","ShippingIcon","View_Files","RemoveRedEyeOutlinedIcon","_moment","_moment2","handleUpdateConfig","_m$eventStatus","futureEventCount","checkUpdateConfigBtn","Loader","No_Events_Found","desc","ConfirmDialog","CANCEL_SCHEDULE","CONFIRM","cancelButtonText","CANCELLED","CLOSE","ScheduleBanner","handleMoveSidebarComponentIntoParent","splitDropZonePath","dropZoneIndex","arr","newItem","block","finalStr","ArrayConditionCheck","IfCondition","BraceCondition","withinBraceCondition","condition","LocCon","locCondition","functionSource","element","inxE","all_functions","item1","inx1","pre","cur","isConditionOnly","parentArray","FunctionConditionCheck","forEachArray","id_gen","IfConditionFunction","IfTrueFunction","ElseFunction","NotIfFunction","configItem","nestedArray","BraceFunctionStartToCall","functionType","BraceFunction","funcType","_configItem$Function","_configItem$Function2","_configItem$Function3","lastIndex","functionName","functionStore","DataArray","isEmptyCheck","r_c_type_object","r_c__if_array","r_c_close_brace","if_start","if_end","brace_start","brace_end","overAllArray","IfTrueCount","IfTrueCountMax","obj","locFucObject","ifElseObj","ifElseInstructions","updatedArr","generateIfElseObj","finalConfigObj","ifElseCond","ConfigConditions","innerObj","recurObj","maxCount","getCount","generateConfigObj","overAllRecurObj","initCount","conditionWhileLoop","startIndex","endIndex","sliceArr","newArr","_loop","conditionStartIndex","conditionEndIndex","IfTrueStartIndex","IfTrueEndIndex","ElseStartIndex","ElseEndIndex","getAllIndexes","arrayOfObject","indexes","functionNamesInUpperCase","_data$parameters","_data$parameters$filt","_data$OnFailMessage$","fn","isRedColorText","_j$","_j$2","_j$3","fNames","uNames","contentSplit","prepareIfTextJsx","makeLayoutAllVariableEmpty","setIfElseLayout","Edit_lookup_routines","Create_lookup_routines","Lookup_routines","getSideBarItems","isIfElseState","productMode","sideBarItems","IfElse","booleanFns","i2","booleanFunctionFieldAdding","isRecordLevelAudit","itemCopy","_item$inputType","_itemCopy$inputType","isPrecountComponent","_itemCopy","_itemCopy2","sourceChangeInput","ruleEditorTitle","Lookup_Routines_Instructions","Setup_Instructions","Validation_Instructions","Lookup_Instructions","Audit_Conditions","Count_Field_Instructions","saving","setSaving","recentCustomers","setRecentCustomers","disableContinue","setDisableContinue","customersToPayload","setCustomersToPayload","customersRefList","setCustomersRefList","recent","dateComparison","resetFilterOnCustomerChange","handleContinue","refObj","rf","isSelected","saveCustomerSelection","handleTileClick","cust","recentCust","ctpList","findPayloadIndex","ctp","rcfindIndex","MiniHeader","headerTitle","showCustName","notSelected","ns","Select_All","selectedList","Clear_All","Recent_Customers","rc","ImageIcon","minHeight","All_Customers","No_customers_Found","Add_your_Schedule","Schedule_an_Event_for_your_Store_Locations","Add_new_Schedule","DeviceBg","Box","sx","alignItems","justifyContent","marginTop","CircularProgress","getAuditBreadcrumbConfig","General_Audits_Settings","toolBarHearder","handleAuditSaveClick","getDataSourceAutoComplete","handleDataSourceChange","limitTags","Data_Group","requiredErr","oneOfErr","numberTypeErr","atLeastOneFieldIsRequired","pastTimingErr","MAX_PHONE_NUMBER_LENGTH","EXPECTED_PHONE_NUMBER_LENGTH","RESERVATIONS_STATUS_CONSTANTS","Confirmed","Pending","cancelled","completed","confirmed","ROLE_ID","RED_COLOR_VALUE","YELLOW_COLOR_VALUE","MAX_DEVICES","dropdown","multi_dropdown","chip","PromptTypes","Decimal","CustomList","Text","Alpha","Numeric","LocationCategory","LocationRange","ParentDepartment","Other","NONE","LEFT","RIGHT","ZIP","PromptFieldNames","Integer","NumberOfDecimals","Label","Product","CopyPastInstructions","FILE_TYPE","Excel","Ebcdic","ASCIICharValue","ACEEDITOR_BACKGROUND_COLORS","NormalMode","DisabledMode","EDIT_TYPE","FILE_TYPE_VALUES","UPLOAD_STATUS","received","successful","processing","failed","finished","US_EN","CA_FR","ES_MX","CONFIGURATION_STATUS_CONSTANTS","CONFIGURATION_CONSTANTS","Deactivated","Installed","LIVE_EVENTS_STATUS_CONSTANTS","LIVE_EVENTS_STATUS_CONSTANTS_ORDERS","DEFAULT_DATE_FORMAT","FTP_CONNECTIONS","SFTP","FTP","Image_Type","Content_Type","Content_data","RESERVATION_FIELDS","RESERVEDDEVICES","TRAININGDAYS","EVENTDAYS","STARTDATE","RESERVATION_NAME","TRAINING_DAYS","EVENT_DAYS","NOFUTUREEVENTS","IDCONFIG","setIsDisableButton","x","y","BULK_ACTIONS","IGNORE","KEY_CODE","TAB","COMMA","BACKSPACE","N1","N2","N3","N4","N5","N6","N7","N8","N9","N10","N11","N12","N13","N14","N15","N16","N200","PAGE_REFRESH_TIME","PAGE_REFRESH_TIME_10MINS","THIRTYDAYS","ONEYEAR","SEVENDAYS","DATEFORMATE","INPUTFORMAT","ROLE_USER","WISLABEL","WISVALUE","WISEMAIL","FLEXMAIL","WISPROD","WISSTAGE","WISDEV","WISQA","WISPERF","_templateFileMap","scheduleEDSecureFields","eventPassword","authorizationNumber","countPIN","auditPIN","ENFLISH","SPANISH","al","alabama","ak","alaska","az","arizona","ar","arkansas","ca","california","co","colorado","ct","connecticut","de","delaware","fl","florida","ga","georgia","hi","hawaii","idaho","il","illinois","in","indiana","ia","iowa","ks","kansas","ky","kentucky","la","louisiana","me","maine","md","maryland","ma","massachusetts","mi","michigan","mn","minnesota","ms","mississippi","mo","missouri","mt","montana","ne","nebraska","nv","nevada","nh","nj","nm","ny","nc","nd","oh","ohio","ok","oklahoma","or","oregon","pa","pennsylvania","ri","sc","sd","tn","tennessee","tx","texas","ut","utah","vt","vermont","va","virginia","wa","washington","wv","wi","wisconsin","wy","wyoming","ifElseLayout","isIfElseScreen","getIfElseLayout","newLayout","getIsIfElseScreen","setIsIfElseScreen","Audit_Types","Audit_TypesObj","Random","FollowUp","TargetedLocation","TargetedRecord","BreadCrumb_Fields","AUDITS_COMPONENT","AUDITRULE_TITLE","AUDIT_TITLE","_ref$isConfirmButtonS","isConfirmButtonShow","_ref$cancelButtonText","Loading","_ref$isMarginTop","isMarginTop","_ref$isJustifyContent","isJustifyContent","_ref$customClass","customClass","BulkDataSelectField","bulkData","handleOnChange","FormControlClass","fieldIndex","breadcrumbNameMap","LinkRouter","Link","RouterLink","Page","page","pathnames","IS_HOME_PAGE","getBreadCrumbList","breadCrumbList","skipItems","bc","linkVal","link","showText","endsWith","itemIndex","Welcome","Breadcrumbs","underline","HomeIcon","last","toLink","isNotSearchParams","_page","_customPath","renderWithTagNumber","_value","RouterBreadcrumbs","Switch","Route","multiCustRestricted","AuthenticatedGuard","pollId","_props$isRedirect","_props$redirectTo","isNotallowed","allowed","p","_props$path","Component","rest","isRedirect","redirectTo","PATH_NAME","_props$feature","permissions","Redirect","CreateLocationBulk","setPage","setProgress","setShowPopup","locationCsvData","locationFileData","template","_state$auth","setFiles","autoHideDuration","snackBar","setSnackBar","No_data_found","Please_ensure_the_file_you_are_uploading_contains_data","_useDropzone","useDropzone","accept","onError","onDrop","acceptedFiles","rejectedFiles","File_type_must_be_csv","errorFind","setBulkLocationFile","reader","FileReader","addEventListener","loaded","total","percent","workbook","worksheet","csvData","read","Sheets","SheetNames","utils","sheet_to_csv","FS","readAsBinaryString","UPLOAD_LOCATIONS","multiCustomer","BulkFIleUpload","_files$","file_uploaded","stopPropagation","WarningIcon","Snackbar","LOCATION_FIELD_MAP","LocationBulkDataMapping","locationData","setLocationData","setBulkData","locationMappingData","csvLocationColumnList","_state$settings3","fileDataString","setFileDataString","getColumnHeader","getIndividualLocationDetail","banner","locationAttribute1","locationAttribute2","locationAttribute3","locationAttribute4","locationAttribute5","locationAttribute6","locationAttribute7","locationAttribute8","locationAttribute9","locationAttribute10","getLocationDetails","locationDetails","setLocationDetails","_state$settings4","getFileData","_JSON$parse","_fileData","handleChangeLocation","locDetails","sendPayload","COLUMNS","IsConfirmed","continueStatus","bulkDataWithNone","ForwardIcon","CSV_Column_Header","Banner","Phone","Region1","Region2","Region3","Region4","locationAttribute1Label","locationAttribute2Label","locationAttribute3Label","locationAttribute4Label","locationAttribute5Label","locationAttribute6Label","locationAttribute7Label","locationAttribute8Label","locationAttribute9Label","locationAttribute10Label","Address1","Address2","Address3","City","Postal_Code","Previous","setLocationMappingData","setLocationReset","NextValidation","LocationBulkValidation","_responseData$duplica3","_responseData$duplica4","_responseData$duplica5","_responseData$duplica6","_responseData$locatio2","_responseData$locatio3","_responseData$locatio4","_responseData$regiona","_responseData$locatio5","_responseData$regiona2","responseData","setResponseData","ignoreState","setIgnoreState","setDisable","LocationValidationPost","onUploadProgress","progressEvent","percentCompleted","isConfirmed","confirmationAction","_payload","bulkUpdateLocation","Validation","Validation_Outcome","File_Statistics","recordsToInsert","Accordion","AccordionSummary","Records_will_be_inserted","Record_will_be_inserted","No_Records_will_be_inserted","duplicateRowsSiteId","expandIcon","ExpandMoreIcon","Sites","Site","already_exist_in_FlexCount","Update","Ignore","AccordionDetails","locationDuplicates","locationErrors","errorRecordsCount","Records_have_errors","Record_has_error","locationErr","locationWarnings","regionalGroupLevelWarnings","warningRecordsCount","Records_have_warnings","Record_has_warning","locationWarns","locationRegWarns","Next_Begin_Import","_responseData$duplica2","UPDATE_STRING","_responseData$duplica","_responseData$locatio","LocationBulkContainer","currentPage","setCurrentPage","renderPages","CreateScheduleBulk","setProgressData","scheduleCsvData","_state$schedule2","readAsText","UPLOAD_SCHEDULES","ScheduleBulkFIleUpload","ScheduleBulkDataMapping","getIndividualScheduleDetail","scheduledTime","configurationName","numberofDevices","numberofWisTag","scheduleDetails","setScheduleDetails","handleChangeSchedule","Scheduled_Time","Number_of_Devices","Number_of_WIS_Tags","ScheduleBulkValidation","_scheduleresponseData2","_scheduleresponseData3","_scheduleresponseData4","_scheduleresponseData5","_scheduleresponseData6","_scheduleresponseData7","scheduleresponseData","setScheduleResponseData","ScheduleValidationPost","bulkUpdateSchedule","recordsInsertedCount","Records","Record","will_be_inserted","duplicateRecords","scheduleDuplicates","errorColumns","scheduleErrors","warningColumns","scheduleWarns","_scheduleresponseData","ScheduleBulkContainer","BreadCrumbC","CategoriesToolBar","catSaveClick","setIsTabChangeCheck","New_Category","GlobalTableDragDrop","onRowDrop","records","setRecords","_ConfigDataHook","reportRedux","getRowId","moveRow","dragIndex","hoverIndex","dragRecord","updatedRecords","$splice","locArr","reportColumns","setReportRedux","reportSignatures","Signatures","reportPrompts","tempData","countFieldObj","finalObj","prod","fieldKey","_countFieldObj","countFieldVal","assign","newauditrule","followup","AuditType","targetedLocation","targetedRecord","Row","dropRef","dragRef","_useDrop","useDrop","drop","_monitor","collect","monitor","isOver","canDrop","_useDrop2","_useDrag","useDrag","isDragging","_useDrag2","drag","preview","opacity","rowHoverClass","onTouchMove","clientY","documentElement","scrollTop","innerHeight","removeEventListener","DragIndicatorIcon","DndProvider","backend","HTML5Backend","_colIndex","ConfigTabNavigateWarning","isTabChangeCheck","_locConfigField","_locConfigField2","locConfigField","preDeleteRow","liftCategorySaveClick","isConfirmOpen","setIsConfirmOpen","updateCategory","deleteCategory","displayDisableCheckbox","icons","clickFn","isNotDisabled","trashIcon","callbackConfirmation","No_Categories_data_available","DELETE","CountFieldsToolBar","fieldsSaveClick","callbackConfirmationHelper","deleteFieldFromCountProgram","fieldsCopy","countFieldsCopy","CountFieldsLocations","locations","Display_Name","Show_on_tag_details","Show_on_Qty_Entry","editFieldsLocation","deleteFieldsLocation","handleDeleteKeyUp","isEdit","locCountPrograms","copyOfI","in_count_fields_and_count_programs","New_Location","No_Reservations_Found","CountFieldsProducts","products","displayCurrency","displayCheckbox","editFieldsProduct","handleEditFieldsKeyUp","deleteFieldsProduct","handleDeleteFieldsKeyUp","displayAction","_i$ProductMode$Produc","Products","New_Product","No_Products_Data_Available","liftCountFieldsSaveClick","setLocations","setProducts","setCountScreenTotals","setProductKey","setOutOfRangeCountMethod","GENERAL","Count_screen_totals","onFormChange","Product_key","onFormChangeProductKey","SKU","SKU_Barcode","Out_Of_Range_Count_Method","onOutOfRangeCountMethodChange","AQ_Only","MQ_Only","TOGGLE","CBreadCrumb","formFieldNames","IsAQOnly","CreateEditCategory","useParams","categoriesList","setCategoriesList","weekIVFields","saveClicked","setSaveClicked","_objectSpread3","handleSave","otherLabels","category","maxSortOrder","getMaxSortOrder","updatedCategories","categoriesLoc","updateCategories","onSaveClickUseCallBack","onCancelClickUseCallBack","Edit_Category","DETAILS","Select_Category","Enter_Category_Name","LOOKUP_ROUTINES_TYPE","pasteInfo","NewLookupRoutine","_locationState$index","_locationState$index2","_locationState$type","lookupNameError","setLookupNameError","_useReducer","useReducer","setReload","locationState","foundIndex","_lookupRoutines$found","locData","lookupNameValidationCheck","_lookup$Name","_lookup$Name2","textToCopy","configPrepared","getTextToCopy","_getBreadcrumbPath","getTextPrepareToCopy","_yield$getToCopy","handleTextPrepareToPaste","_yield$handleToPaste","setDeleteContent","LookupBreadCrumb","onHandleNameChange","Lookup_name_already_exists","Paste","ContentPasteGoIcon","Copy","ContentCopyIcon","disableCheckFunction","_item","CONFIRMATION","handleMoveValuesKeyUp","moveValuesToRedux","Allow_Edits","_instructions","CountFieldData","CountFieldsCreateEditLocation","_form$Labels$","isLabelErrorMessage","setIsLabelErrorMessage","setIsEdit","displayName","locationsMap","locationsArray","_locationState$data","_locationState$data2","_locationState$data3","addEditFieldsLocation","_form$Labels$0$enUs","_payload2","_payload3","_dt$Audits$AuditTypeR","AuditTypeRule","loc","Add_New_Count_Field","Selected_Count_Field","errorMessage","labelErrorDisplay","Tag_Detail_Screen","Qty_Entry_Screen","_form$ValidationInstr","errorCheck","Rescan_select_warning","Ok","CountFieldsCreateEditProduct","_form$Labels$2","productsMap","productsArray","setFieldName","fieldErrorMsg","setFieldErrorMsg","_locationState$data4","_locationState$data5","_locationState$data6","_locationState$data7","_ValidationInstructio","_initCountFields$Qty","addEditFieldsProduct","_form$field","_cDisplayMap$get","_getCurrencySymbol","_form$LookupInstructi","instructionFieldsCheck","product","Please_select_valid_Count_Field","Please_enter_valid_Display_Name","Number_of_decimal_places","Please_enter_valid_Decimal_Place","Show_Currency_Symbol","LookupRoutinesToolBar","lookupRoutinesSaveClick","New_Lookup_Routine","liftLookupRoutinesSaveClick","isConfirmDeleteOpen","setIsConfirmDeleteOpen","handleDeleteLRKeyUp","deleteLookupRoutine","handleEditLRKeyUp","editLookupRoutine","configInstructions","Clone","cloneLookupRoutine","No_Lookup_Routines_data_available","MUISelect","_i$translateKey","MUIMultiSelect","renderSelectedValue","ModalComponents","types","locInx","barcodeInx","handleSelectField","handleMultiSelectField","handleTextField","handleRadioField","handleAutoCompleteTextField","generateFields","Schema","fnName","requiredError","_validation$required$","_validation$required","locYup","yup","nullable","arrayVal","_validation$required$2","_validation$required2","_validation$typeError","_validation$typeError2","maxOfFirstField","typeError","_validation$typeError3","_validation$required$3","_validation$required3","_validation$required$4","_validation$required4","shape","RenderModal","_item2","setParameters","setModalFormSubmitCall","submitButton","closeButton","setInputTypes","getInputFields","locInputTypesCopy","locItemCopy","useForm","defaultValues","resolver","yupResolver","criteriaMode","handleSubmit","reset","params1","params2","formErrorCheckFunction","timer1","_item3","inputTypeCopy","_item4","_item5","_item6","_item7","_item7$OnFailMessage","_item7$OnFailMessage$","inputInx","Options","LookupRoutineNameOptions","clearTimeout","oldVals","FormProvider","newParameterArray","_inputTypes$2","_inputType$validation","_inputType$validation2","_item8","isPush","fieldVal","locSourceVal","SideBarItem","setDragDropzoneShow","canDrag","GenerateSideBar","forwardRef","_ref$isIfElseState","setSearchTerm","expanded","setExpanded","sidebarTitle","titleName","useImperativeHandle","makeSideBarExpandCloseFromParent","FilledInput","handleSearch","startAdornment","InputAdornment","position","SearchIcon","panel","_event","isExpanded","sideBarItem","ACCEPTS","DropZone","isLast","_useDrop2$","isActive","classNames","active","getRadioButtonsJSX","curRow","checkValue","rowsData","handleCondition","getIfOrIfElseRadioButtonJSX","isShowEmptyElseBlock","setIsShowEmptyElseBlock","Show_Empty_Else_Block","lookupEmptyEditorError","lookupFormatError","components","setParametersForEditModal","make_if_screen_enable_for_edit","dragDropzoneShow","expandMoreAndLessClick","isTopRow","setIsTopRow","DND_ITEM_TYPE","handlerId","getHandlerId","_data$layout","_data$layout2","dropPosition","hover","_data$layout3","_data$layout4","hoverBoundingRect","getBoundingClientRect","hoverMiddleY","bottom","clientOffset","getClientOffset","locIsTopRow","isIfScreen","hoverClientY","handleEditModalKeyUp","openEditModal","isIfLayoutArray","edit","StyledBadge","styled","Badge","right","border","palette","background","paper","padding","badgeContent","ExpandLessIcon","_data$inputType","displayTooltip","CancelIcon","RenderLayout","setPageHeading","make_if_screen_enable","setIsIfElseStateEdit","setIsIfElseStartIndex","removeRow","modalFormSubmitCall","isConditionObject","productFieldName","reload","dropZone","setDropZone","handleDrop","childrenCount","updateData","uItem","uDropZone","isIf","tempLayout","_tempLayout$","_tempLayout$2","_tempLayout$3","_tempLayout$4","generateItem","gItem","renderRowComponent","templateLayout","hDropZone","hItem","oldValue","sItem","paras","currentLayout","dropZoneFirstChild","expandMoreOrLessId","_row9","_row10","_row11","_row12","_currentLayout","ifScreenErrorCheck","_layout","_layout2","_layout3","_layout4","mainScreenErrorCheck","start_tab","_row6","_row7","_row8","locLayout","CreateLookupEditor","_locationState$lookup","_locationState$lookup2","_locationState$lookup3","_locationVariable$sta","_locationVariable$sta2","updateIfElse","locationVariable","setIsIfElseState","isIfElseStateEdit","pageHeading","isIfElseStartIndex","sideBarRef","_lookup$Instructions","_lookup$Instructions2","_lookup$Instructions$","_lookup$Instructions$2","isIfElseStateEditCheckFunction","handleIfElseSubmit","_getIfElseLayout","convertedString","lookup1","makeRedirection","cancelButtonClick","loup","Available_Functions","rowToRemove","CreateLookup","_location$state3","componentRef","isIfElse","setIsIfElse","newLookup","setBConfig","_location$state","_location$state2","bConfigloc","AuditsToolBar","AuditsSave","isInitialDataFromLocationState","liftAuditSaveClick","isCFConfirmOpen","setIsCFConfirmOpen","auditData","exclueAccuracychecked","setExcludeAccuracyChecked","targetLocationauditRuleData","targetRecordauditRuleData","followUpauditRuleData","randomauditRuleData","setPreDeleteRow","blindCountVerifications","percentageOfTags","setAuditData","setGridData","overallArr","j1","_auditData$AuditTypeR","_editAuditItem","generateExcludeAuditRules","rulesObj","AccuracyCalculations","Impact_Accuracy","rowValue","locallArr","objIndex","handleExcludeAuuracyCheckChange","Audit_Type","copyAuditRule","ContentCopyOutlinedIcon","ruledata","EditAuditRule","setModalCFContent","Secondary_location_added_warning","callbackCFConfirmation","_data$Instructions","excludedAuditRules","_AuditItem","PercentThreshold","RequiredAuditPercentage","RequiredAuditsPerCounter","BlindCountVerifications","PercentageOfTags","EnableCondition","ExcludedAuditRules","Default_Audit","Percentage_Threshold","Required_Audit_Percentage","Required_Audits_Per_Counter","Blind_Count_Verifications","Percentage_of_tags","percentageVal","AUDIT_TYPE","Detail_Audit","Rescan_Audit","Conditions","Audit_rules","_data$Instructions2","TargetLocationAudits","TargetRecordAudits","FollowUpAudits","New_Audit_Rules","No_Audit_data_available","Are_you_sure_you_want_to_delete_the","NewAuditRule","targetRecordAuditRuleData","targetLocationAuditRuleData","randomAuditRuleData","followUpAuditRuleData","setFollowupOriginalReasons","origianlReasons","overallpercentageErrorMsg","followupAuditTypeFlag","setFollowupAuditTypeFlag","randomAuditTypeFlag","setRandomAuditTypeFlag","targetedLocationAuditTypeFlag","setTargetedLocationAuditTypeFlag","targetedRecordAuditTypeFlag","setTargetedRecordAuditTypeFlag","editIndex","emptyAuditRuleObj","tag","thresholdValue","setRuleData","isPerPerson","_ruleItem","AuditUserType","OneOfFirst","OneOfNext","StopAt","Repeat","NumberOfFollowups","AccuracyThreshold","OriginalReasons","setRuleTypeControls","prepeareObjForSave","newRuleObj","ruleType","_inputRef$current","checkDuplicate","newRuleName","newAuditType","auditTypeRuleObj","duplicateObj","checkIfRuleExisting","existingRuleName","onSaveClick","ruleAuditType","ruleReason","accuracyCalculations","duplicateStatus","checkDuplicateItem","_targetLocationAuditR","_targetLocationAuditR2","_localRuleItem","_targetRecordAuditRul","_targetRecordAuditRul2","_randomAuditRuleData","_randomAuditRuleData2","_followUpAuditRuleDat","_followUpAuditRuleDat2","_inputRef$current2","_auditFollowupRuleItem","_followUpAuditRuleItems","_randomDefaultRuleItem","_randomAuditRuleItems","_auditTargetedRecordRuleItem","_targetedRecordRuleItems","_auditTargettedLocationRuleItem","_targetedLocationRuleItems","_inputRef$current3","New_Audit_Rule","Rule_Reason","is_already_in_use_in","getErrorMessage","Audit_type","Select_Type","Per_Person","Follow_Up_System_Audit","User_Type","Customer","WIS","Audit_Types_that_trigger_Follow_Up","Audit_Reasons","Tags","tags_if_less_than","accurate","stop_at","Random_System_Audit","Intervals","_1_of_first","_1_of_next","Location_System_Audit","Record_System_Audit","OutputFilesToolBar","outputFilesSaveClick","New_Output","DestinationFields","IsCustomerPortal","Emails","IsFinalReport","DestinationFields1","DestinationFieldsRender","isCustomerPortal","emails","isFinalReport","ftpDirectory","createEditOutputBundleDefaultIniValues","fileTypes","FilesDetailsFields","description","fileTypeZipped","isChecked","Output_Bundle","showWarningModal","copyOutputBundle","updateOutputBundle","deleteOutputBundle","Output_Name","Zipped","CustomerPortal","Final_Reports_In_Store","getColumnsData","New_Output_Bundle","outputBundles","No_Output_Bundles_Available","CANCEL","liftOutputFilesSaveClick","File_Type","_renderData$length","copyOutputFile","record_in_output_and_output_bundles","_preDeleteRow","No_Output_Files_Available","commonValues","columnHeadersList","PromptRender","colnsData","handlePromptClick","reportPromptData","alertParams","PROMPTS","New_Prompt","No_Prompts_data_available","OutputPrompts","isParentEdit","_state$config2","newOutputFile","_state$config3","_state$config4","_state$config5","handleEditPromptClick","deletePrompt","EditIcon","columnData","_form4","_form5","_form6","destination","customerPortalCheck","selectedOption","chips","preEditRow","editPromtObj","editPromptObj","_form","_form2","_form3","promptsData","getCurrencySymbolField","DataType","OutputColumns","sortID","editColumn","sqlQueryColumns","handleNewColumnClick","notification","notificationChip","deleteTextData","getSetContent","_preDeleteRow2","ColumnName","Column","updatedOuputColumns","Suppress","handleSupressColumns","Source","displaySource","Data_Type","Padding","displayPadding","Surround_Character","SUPPRESS","_form7","EditOutputColumn","New_Column","No_Columns_Data_available","SubTotalFunctionTypeList","PlacementTypeList","Subtotal_Fields","OUTPUT_FILE_COMPONENT_TYPE","OUTPUT_FILE_TYPE","OUTPUT_FILE_TITLES","columnDataPrepare","handleEditTotalClick","deleteTotal","cellFunc","_props$Values","_props$Values2","Values","displayValues","_props$column","every","OutputFileTotals","outputGrandTotalValues","setOutputGrandTotalValues","outputSubTotalValues","setOutputSubTotalValues","isGrandTotalEdit","grandTotalData","isSubTotalEdit","subTotalData","Placement","columnHeadersGrandTotalList","columnsGrandTotalData","getRowItems","sub","_sub$AggregateConfigs","AggregateConfigs","DataSource","GRAND_TOTALS","SUB_TOTALS","New_Grand_Total","New_Sub_Total","No_Grand_totals_data_available","No_Sub_totals_data_available","_rows","grandTotalConfig","grandTotalConfigVal","_rows2","DataGroup","subTotalConfig","subTotalConfigVal","Grand","Sub","getDestinationText","getCustomerPortalText","Customer_Portal","getNotificationText","getFtpDirectoryText","Ftp_Directory","getEmailText","getInvalidEmailText","Invalid_Email","TextFieldChips","getChips","setIsValid","setChips","validateChips","chipsArray","hasInvalidChip","preventDefault","removeLastChip","addChip","updatedChips","removedChip","_inputValue$trim","trimmedValue","renderTags","getTagProps","Chip","onDelete","handleChipDelete","deleteIcon","onBlur","ReportFileDestination","setSelectedOption","setCustomerPortalCheck","connections","setConnections","emailTooltipText","Email_Text","getEmailTooltipText","GetConnectionData","getConnectionData","ftp","line","NotificationEmail","Email_Address","CreateEditOutputFiles","_form$FileType2","setSqlQuery","queryfromCreateEditForm","showLatestQueryValue","notificationChips","setnotificationChips","outputColumn","isNotificationValid","setIsNotificationValid","locationStateDestination","notificationlocationStateDestination","setFieldDelimiterValue","setRecordDelimiterValue","formAndReduxVariableSet","_locationState$data8","_locationState$data9","_locationState$data10","_locationState$data11","_locationState$data12","_locationState$data13","locSQL","getSQLQueryColumns","_locationState$data14","_configData$newReport","_objectSpread5","_locationState$data15","_locationState$data16","_locationState$data17","_locationState$data18","_locationState$data19","_locationState$data20","_locationState$data21","_locationState$data22","_locationState$data23","_locationState$data24","_locationState$data25","_locationState$data26","_location$state4","_location$state5","_location$pathname2","_filteredReportsArray","_filteredReportsArray2","_OutputName","filteredReportsArray","_configData$Outputs","_configData$Outputs2","_configData$newReport2","_configData$newSQLQue","_configData$newSQLQue2","_configData$outputCol","_location$state3$data","_configData$outputSub","_configData$outputGra","suppressedColumns","_sortOrder","o","payloadPreparation","checkRestForm","Select_File_Type","Field_Delimiter","OTHER","Record_Delimiter","defaultChecked","Has_Header_Record","_location$pathname3","_location$state6","promptsObj","_location$state7","_form$FileType","reqFields","checkValidation","CountProgramsToolBar","programsSaveClick","New_Count_Program","deleteRowIndex","LandingPage","liftCountProgramsSaveClick","countProgramsSaveClick","handleDeleteRowKeyUp","handleEditRowKeyUp","editRow","cloneRow","No_Count_Programs_data_available","LocationCapture","tabValue","confirmMsg","setConfirmMsg","copyWisTagClick","Would_you_like_to_continue_with_standard_logic","getTabValueLabel","setUpInstructions","validationInstructions","setUpValues","validationValues","setConfirmContent","radioChange","resetInstructions","checkForRadioOptions","Copy_Standard_WIS_Logic","borderBottom","borderColor","Tabs","keyName","scrollButtons","_i$label","_i$originalValue","LocationOnOutlinedIcon","originalValue","a11yProps","_locationList$watch","_locationList$watch2","isSeparateInsertRuleName","instructionDisabled","TabPanel","fetchInstructionLayout","YES","NO","CPTabs","Location_Capture","Product_Count_Mode","Financial_Count_Mode","Financial_Count_Mode_Content","newVal","SubmitAndCancelButton","triggerSetReload","formSubmitHandler","_formToReduxConversio","newAlertProps","validationSchema","matches","CreateEditCountProgram","InstructionName","CountProgramBreadCrumb","COUNT_DETAILS","FormHeading","isDivider","CreateEditPrompts","_promptTypeList","invalidMsg","setInvalidMsg","PromptData","editPromptData","customTypeList","newRedirection","editRedirection","setEditPromptData","editObj","_objectSpread8","_objectSpread9","_objectSpread10","_objectSpread11","_objectSpread12","_objectSpread13","_objectSpread14","_objectSpread15","_objectSpread16","Variable_Name","Custom_List","Enter_Decimal_Places","Default_Value","_PromptData$length","_CustomList","_promptItem","localPrompt","duplicateField","_location$state8","OutputCreateEditPrompts","InputFilesToolBar","inputFilesSaveClick","New_Input_File","INPUT_FILE_ACTION_TYPE","INPUT_FILE_TYPE","FileTypeList","FILE_TYPE_LIST","Auxiliary_Fields","Customer_Fields","Customer_Input_Fields","FileTypeRadioValueList","FieldDelimiterList","RecordDelimiterList","ErrorLevelList","DataTypeList","tables","liftInputFilesSaveClick","setCheckedProductFile","setCheckedDepartMentFile","checkedProductFile","checkedDepartMentFile","handleChangeProductFile","handleChangeDepartMentFile","Product_File_Not_Required","DepartMent_File_Not_Required","No_Input_Files_data_available","InputFileTypeSelect","handleAFCKeyUp","handleAuxiliaryFileClick","handleCFCKeyUp","handleCustomerFileClick","ADD_NEW_INPUT_FILE","Select_Option","Auxiliary_File_Maint","CloudUploadIcon","Customer_File_Tape","ConfigurationService","CreateEditInputFileAuxiliary","legacyLocationRef","setData","formIniVal","LegacyProcessingCheck","LegacyLocation","CustomerMaintenanceCheck","RestrictRangesCheck","CustomRangeCheck","AuxiliaryFile","department","varianceControl","areaRangeFile","custom","fileOptionFormValues","setFileOptionFormValues","duplicateNameError","setDuplicateNameError","nameError","setNameError","emptyError","setEmptyError","legacyError","setLegacyError","tableData","setTableData","getColumnNamesAndDataTypes","setFormValueBySelectFileType","oVal","_formV","formV","fileTypePreVal","tableName","columnsName","_objectSpread7","Allowed_Lengths","newAuxiliaryFile","New_Auxiliary_File","FILE","Name_cannot_be_empty","Name_already_exists","Used_by_Legacy_Processing","Legacy_Location","Please_enter_legacy_location","Allow_Customer_Maintenance","Restrict_Ranges_to_File_Values","CUSTOM_FILE_FORMAT","Range_File","AUXILIARY_FILE","No_Departments_data_available","No_Variance_Control_data_available","CreateEditInputFileCustomer","_form$Description","InStoreCheck","Position","HeaderRow","SurroundCharacter","setHelperText","fileTypeError","setFileTypeError","recordDelimiterError","setRecordDelimiterError","inputFieldValue","setInputFieldValue","inputRecordValue","setInputRecordValue","surroundCharacterValue","setSurroundCharacterValue","_locationState$data2$","_locationState$data3$","_locationState$data4$","onFormDelimitedChange","onFormRecordChange","onFormSurroundCharacterChange","LENGTH","DATA_TYPE","ALLOWED_LENGTHS","Reg_Ex","ERROR_LEVEL","radioValue","getInputFieldsData","getTableNoDataText","newCustomerFile","New_Customer_File","getLookupBreadcrumb","Customer_Friendly_Name","In_Store","q","STORE_NUMBER_WHEN_PROCESSED_IN_STORE","FORMAT_VALIDATION","Header_Row","changeFieldText","changeRecordText","ASCIIChar_Value","Please_enter_ASCIIChar_value","changeSurroundCharacterText","ADD_FIELD","delimitedPayload","Please_select_at_least_one_of_the_file_type","Please_select_at_least_one_of_the_upload_locations","preparedItem","OutputFilesBreadCrumb","CreateEditColumn","reportColumnsData","editReportingColumnData","editColumnObj","reportId","dataTypeValues","filterTypeValues","setEditColumnData","cSymbol","OriginalCurrencySymbol","has","FilterType","SortType","Weight","Edit_Column","Data_Source","Sort_Type","Filter_Type","showLatestColumnValue","currencySymbol","EditColumns","columnErr","setColumnErr","lengthErrorMsg","setLengthErrorMsg","characterErrorMsg","setCharacterErrorMsg","paddingValues","Length","Character","getThePadding","paddingObj","constructPaddingObj","Format","Basic_Details","disableClearable","_location$state9","_location$state10","_location$state2$data","duplicateColumn","CreateEditTotals","_configData$outputSub2","_configData$outputGra2","valuesList","setValuesList","columnNames","_location$state$subTo","_locationState$subTot","_locationState$subTot2","_locationState$grandT","_locationState$grandT2","handleValueChange","list","handleAddValueCLick","refreshForm","getValuesList","subTotalsSortOrder","grandTotalsSortOrder","_locationState$form","subTotalEdit","_locationState$form2","grandTotalEdit","getDisabledInfo","Column_Name","handleRemoveValueCLick","subTot","grandTot","handleSaveNewClick","Save_New","_configData$outputSub3","_configData$outputGra3","subTotalsFoundIndex","_locationState$subTot3","grandTotalsFoundIndex","_locationState$grandT3","CreateEditOutputSubTotals","CreateEditOutputGrandTotals","CreateInputFields","setFileType","setList","fieldsOptionsList","AllowedLengths","Regex","ErrorLevel","_val$split","locError","Error_Level","_form$AllowedLengths","_form$AllowedLengths$","saveButtonDisableCheck","fixedLengthSortOrder","delimitedSortOrder","excelSortOrder","delimitedField","excelField","fixedLengthIndex","delimitedIndex","excelIndex","ConfigurationPortal","_state$config6","_state$config7","_state$config8","_state$config9","AuditsData","_state$config10","setAlertMsg","gSObject","setGSObject","editType","getConfigurationData","onbeforeunload","setConfigState","generatePayload","tabVal","prod_required","department_required","locDefaultCountFields","AuditReasonsToExclude","allOutputsNames","locOutputBundles","configObj","handleConfigSaveClick","finalValues","productValid","departmentValid","_args","UPLOAD_KEYS","UPLOADFILE_FIELD_MAP","_UPLOADFILE_FIELD_MAP","UPLOADFILE_MAP","PAGES","UploadFileDetails","_objectDestructuringEmpty","uploadFilesData","_state$uploadFiles","_state$uploadFiles$up","getUploadFiles","Data","DESCRIPTION","Last_uploaded_Updated","propsToDate","isRangeFile","selectedFileType","isMaintenanceFile","Upload","FileUploadOutlinedIcon","rowQueryParam","handleLoadFile","PermissionAccessGate","handleClickButton","uploadFileData","newExpanded","No_Files_Found","UploadStatusFilter","uploadStatusFilter","uploadStatusFilters","droppedOffAt","info","Select_Date","dateObj","onDateChange","Uploaded_At","setUploadStatusFilters","intervalVarNames","pageWiseRunStatus","uploadStatus","IntervalsList","intervalIdVars","setRunPollStatus","clearPoll","pollList","intervalIdVar","isAPIInProgress","UploadStatusDetails","renderFilterData","setRenderFilterData","uploadAlert","setUploadAlert","uploadStatusFilterDatas","timer","uploadFileService","initialResp","setInitialResp","HistoryIcon","pollApi","getUploadStatus","clearPagePoll","clearInterval","formatData","recordId","isPoll","_args2","getUploadFilesViewStatus","newformatedData","newState","uploadFilesStatusRecordsRender","exisistFormatingData","newMatched","formatted","setUploadFilesStatusRecordsInitialResp","setUploadFilesStatusRecordsRender","FILE_NAME","Uploaded_By","_props$row4$original","_props$row4$original$","_props$row$original","errorsFilePath","handleViewErrors","View_Errors","totalsFilePath","handleViewTotal","View_Total","File_Path_Not_Available","No_Upload_Status_Found","setUploadStatusFilterDatas","UploadFiles","showFilter","setShowFilter","filterNum","setFilterNum","setTabValue","tabParam","other","role","hidden","Upload_Status","UploadService","failedChunkAPICalls","successChunkAPICalls","overallChunkAPICalls","UploadFilesData","fileSelected","uploadService","class","idConfigEnc","idConfigNameEnc","idConfigName","chunkAPICall","uploadFile","percentage","overallChunkAPICall","chunkAPICalls","file","_totalCount","locUUID","all","checkSuccessAPIWithOverallAPI","OriginalFileName","InputFileName","IdConfig","UploadedBy","UpdatedBy","NumberOfChunks","FileIdentifier","finalMergeAPICall","compareFunction","leftValue","rightValue","locChunkAPICalls","finalFileMergePost","Uploaded","File_uploaded_successfully","Please_try_again","Upload_file_failed","_rejectedFiles$0$erro","chunkSize","beginningOfTheChunk","endOfTheChunk","uuidv4","chunk","FormData","append","uploadOnHandsFile","UPLOAD_Files","Upload_your_excel_zip_or_text_file_in_the_box_provided_below","Upload_File","Drop_your_Excel_or_Delimited_file_here_or","Processing","File_uploaded_Please_wait_while_we_prepare_it_for_processing","ScheduleEventDetails","_eventDetails$numbero2","qrValue","setQrValue","eventDate","setEventDate","eventTime","setEventTime","setEventTimeZone","eventTimeZoneLabel","setEventTimeZoneLabel","storeNumber","setStoreNumber","customerPIN","setCustomerPIN","setReservation","supervisorPassword","setSupervisorPassword","setNoOfDevices","eventIdentifier","setEventIdentifier","auditorPIN","setAuditorPIN","eventTrackingNum","setEventTrackingNum","returnTrackingNum","setReturnTrackingNum","setConfigVersion","logo","setLogo","setEventId","isShare","setIsShare","secureFieldsIcons","setSecureFieldsIcons","_useState45","qrSVG","_useState46","_useState47","_useState48","_useState49","_useState50","_useState51","isChkChecked","setIsChkChecked","_useState52","_useState53","_useState54","_useState55","eventLockedFlag","setEventLockedFlag","_useState56","_useState57","prevForm","decryptedId","eventGuid","_eventDetails$numbero","eventdate","eventTimeZone","timeZone","stdTimeZone","reservationName","returnTrackingNo","getEventDetails","CounterPassword","AuditorPassword","AuthorizationNumber","handlePrintClick","useReactToPrint","createFormData","emailList","eventDateTime","getSvgBlob","svgElement","svgString","XMLSerializer","serializeToString","sendEmailWithQRCode","_eventDateTime","_eventTimeZone","qrCodeSvg","_fileQRCode","sendEmail","finish","t1","LABELS_COL1","class_name","sortPrint","Count_PIN","secureName","LABEL_COL2","Audit_PIN","LABEL_COL3","Config_Name","Authorization_Number","LABEL_COL4","textAlign","Event_Password","EVENT_DETAILS_COL","midpoint","EVENT_DETAILS_COL1","EVENT_DETAILS_COL2","renderMultipleItems","isFieldMasked","renderSingleSpanItem","secureFieldIconClickUpdate","showPassword","repeat","BsEyeFill","BsEyeSlashFill","Share_Schedule_Details","Unlock","LockOpenIcon","unlockEvent","Share","ReplyIcon","transform","Print","LocalPrintshopOutlinedIcon","QRCode","Event_Tracking_Number","Return_Tracking_Number","_localStorage","SHARE_EVENT","onCheckboxChange","Send_me_a_Copy","SEND","Event_unlocked_successfully","TimeAgo","relativeTime","fromNow","translatedTimeAgo","timePhrase","units","singularUnit","unit","sUnit","numericPart","translated","translateTimeAgo","EditUploadFile","_getColumnHeaders$map","_getColumnHeaders","setFile","fileId","setFileId","setFileData","uploadData","setUploadData","deletedItem","setDeletedItem","alertType","setAlertType","deptFile","setDeptFile","downloadingFile","setDownloadingFile","dataFromLocationState","setDataFromLocationState","isdownloadProcess","setIsdownloadProcess","setSelectedFileType","_location$state$Data","_location$state3$Data","fileIdVal","getFileDetails","_res$data$uploadFileD","_res$data2$uploadFile","_res$data5","_res$data5$uploadFile","_res$data6","_res$data6$uploadFile","_res$data9","_res$data9$uploadFile","_res$data10","_res$data10$uploadFil","_res$data10$uploadFil2","_res$data3","_res$data3$uploadFile","_res$data4","_res$data4$uploadFile","_res$data7","_res$data7$uploadFile","_res$data8","_res$data8$uploadFile","_res$data11","_res$data11$uploadFil","_res$data12","_res$data12$uploadFil","getUploadSingleFileDetails","setVarianceData","AreaRangeFile","setAreaRangeData","DepartmentFile","setDepartmentData","downloadFile","actualUrl","downloadBulkFile","downloadAuxFile","AiFillWarning","Are_sure_you_want_to_delete_file_data","DeleteData","_callee3","_deletedItem$IdValida","_deletedItem$IdValida2","_context3","deleteDepartmentData","File_data_deleted_successfully","deleteAreaRangeData","IdValidationControl","idValidationControl","IdValidationAreaRange","idValidationAreaRange","deleteVarianceControlData","columnHeaders","Department_Name","Department_Sort","Department_Parent_Name","Department_Parent_Sort","Department_Parent","VARIANCE_GROUP","VARIANCE_GROUP_NAME","SORT_ORDER","QTY_TOLERANCE","FULL_STORE_QTY_TOLERANCE","EXT_TOLERANCE","FULL_STORE_EXT_TOLERANCE","Range_Name","sortTye","Category_Name","Area_Range_Sort","_location$state5$Data","_location$state6$Data","encryptedIdFileType","dataFromState","handleEditClick","_location$state4$Data","LAST_UPDATED","lastUpdated","_languageLocales$i18n","getUpdatedDateTime","renderLastUpdated","BY","tabIndex","_location$state7$Data","_location$state8$Data","handleAddData","New_Record","CreateEditUploadFileData","departmentData","_state$uploadFiles2","areaRangeData","_state$uploadFiles3","categoriesData","_state$uploadFiles4","getCategories","setEdit","departmentError","setDepartmentError","varianceError","setVarianceError","departmentName","departmentSort","departmentParentName","departmentParentSort","departmentParent","deptForm","setDeptForm","rangeNameError","setRangeNameError","initialAreaRange","rangeName","areaRangeSort","categoryName","areaRangeForm","setAreaRangeForm","varianceGroup","varianceGroupName","qtyTolerance","fullStoreQtyTolerance","extTolerance","fullStoreExtTolerance","setVarianceForm","isDeptFile","setIsDeptFile","dataId","_data$RangeName","_data$AreaRangeSort","_data$CategoryName","RangeName","AreaRangeSort","CategoryName","saveData","operation","duplicateDept","dept","areaRangeDataFiltered","areaRange","_dataFromLocationStat","duplicateRange","duplicateVariance","_dataFromLocationStat2","_dataFromLocationStat3","_dataFromLocationStat4","_dataFromLocationStat5","_dataFromLocationStat6","_dataFromLocationStat7","_dataFromLocationStat8","_dataFromLocationStat9","_dataFromLocationStat10","_dataFromLocationStat11","_dataFromLocationStat12","_dataFromLocationStat13","_dataFromLocationStat14","genericPayload","deptPayload","variancePayload","areaRangePayload","validationAreaRangeId","validationDepartmentRequest","varianceControlRequest","validationAreaRange","ValidationAreaRangeRequest","resetForm","getDisabledState","exceptThisSymbols","handleSmallIntKeyDown","Data_updated_successfully","Data_added_successfully","Edit_Data","Create_Data","Range_Name_already_exists","Variance_Group","Variance_Group_Name","Sort_Order","Qty_Tolerance","Full_Store_Qty_Tolerance","Ext_Tolerance","Full_Store_Ext_Tolerance","LiveEventsToolBar","pollingCount","setSearch","liveEventsPrevFilter","_state$liveEvents","Name_StoreNo_Address","handleSearchClick","FilterComponent","inValidDateFormat","LiveEventsFilter","liveEventsFilter","ProgressBar","roundedPercentage","round","getType","EventItem","_event$eventLastUpdat","_event$accuracy","cellValue","pGoal","sGoal","handleRedirect","getEventDateTime","isLastUpdated","_moment$utc","_moment$utc$local","Last_Updated","eventLastUpdatedtime","Count_Progress","Current_Team_Members","Team_Members","teamCount","Pieces_Counted","piecesCounted","_finalAphValue","aph","goal","getColor","Est_Completion_Time","estimatedCompletionTime","Audit_Progress","accuracy","aGoal","aSecondaryGoal","SentimentDissatisfiedIcon","SentimentSatisfiedAltIcon","SentimentNeutralIcon","varianceConfiguredFlag","Variance_Progress","EventTiles","_data$filter","searched","_state$liveEvents2","selectedSpans","setSelectedSpans","setEventStartDate","prevData","setPrevData","mainFilterApplied","setMainFilterApplied","hasFilterValues","handleOutsideClick","_liveEventsFilterForm","_liveEventsFilterForm2","_liveEventsFilterForm3","_liveEventsFilterForm4","_liveEventsFilterForm5","_liveEventsFilterForm6","_liveEventsFilterForm7","_filteredData$country","_filteredData$state","_filteredData$eventSt","_filteredData$field","regionalEventsData","isSpanSelected","spanId","ctrlKey","metaKey","displayDefaultMessage","prevSelectedFilters","filterDataOnSpanClick","selectedFilter","newSelectedFilters","handleKeyUp","sp","newData","dataToSort","_a$status","_b$status","_b$status$trim","_a$customerName","_b$customerName","getData","countStatusCounts","eventsDetails","counts","getCountStatusCounts","auditStatusCounts","getAuditStatusCounts","varianceStatusCounts","getVarianceStatusCounts","getWidth","yesterdayEventsCount","todayEventsCount","tomorrowEventsCount","getDaysCount","hasTrueFlag","evt","_ref2$LIVE_EVENTS_STA","notStartedCount","_ref2$LIVE_EVENTS_STA2","inProgressCount","_ref2$LIVE_EVENTS_STA3","showVarianceProgress","filterFns","span","_MAP_FILTERS$find","LiveEventsService","getLiveEvents","LiveEvents","_eventsData$eventsDet2","setEventsData","setPollingCount","eventsDataList","setEventsDataList","liveEventsService","setSearched","getSelectedDate","getDaysEvents","isLoadingTrigger","_args3","LoggedInUserTimeZone","tz","panelClassName","getEventsTiles","_eventsData$eventsDet","_filters$region","_filters$region2","_filters$region3","_filters$region4","_filters$country","_filters$state","_filters$eventStatus","_filters$eventStatus2","_Object$keys2","getFilteredEventCount","dateKey","CurrenteventDate","yesterday","tomorrow","isSameOrBefore","tabLabels","searchVal","searchedEvents","LocationAttributes","locationAttributes","setLocationAttributes","locationAttributeErrors","setLocationAttributeErrors","locationAttributeChecks","setLocationAttributeChecks","locationAttributeErrorMsg","setLocationAttributeErrorMsg","temp1","LAValue1","LAValue2","LAValue3","LAValue4","LAValue5","LAValue6","LAValue7","LAValue8","LAValue9","LAValue10","LACheck1","LACheck2","LACheck3","LACheck4","LACheck5","LACheck6","LACheck7","LACheck8","LACheck9","LACheck10","addLocationAttributeDetails","Add_Location_Attribute","Location_Attribute_Details","lg","_","check_key","val_key","err_key","LAError1","LAError2","LAError3","LAError4","LAError5","LAError6","LAError7","LAError8","LAError9","LAError10","Enter_Attribute_Name","Organize_your_locations_better_by_adding_Location_Attributes_We_can_add_various_levels_of_Location_Attribute_here_which_would_be_required_while_adding_Users_and_Locations","l","Value_required","l1","isAllowed","alertMsgInitialize","CreateEditFtpConnection","userRole","setName","protocolType","setProtocolType","host","setHost","port","setPort","logonTypeOptions","defaultRemoteDirectory","setDefaultRemoteDirectory","logonType","setLogonType","securityType","setSecurityType","setUserName","setPassword","idConfigFtp","setIdConfigFtp","setShowPassword","toastVisible","setToastVisible","isConnectionTested","setIsConnectionTested","encryptPassword","prefixToRemove","sanitizedHost","getPayload","len","mainRoute","subRoute","isEditVal","getFtpDetailsById","_resp$data","_resp$data2","_resp$data3","_resp$data4","_resp$data5","_resp$data6","_resp$data7","_resp$data8","_resp$data9","decryptedPassword","idLogOnType","submitSuccessAction","handleCancel","Connection_updated_successfully","Connection_added_successfully","Configuration_Edit_Ftp_Connection","Configuration_New_Ftp_Connection","Edit_Ftp_Connection","New_Ftp_Connection","Host","Port","Default_Remote_Directory","UserName","Password","Input","endAdornment","show","VisibilityOff","Visibility","Drop_your_txt_file_here_or_To_override","Drop_your_file_here_or","updatedPayload","testAndSaveConnection","testConnection","Test_Connection","editFtpDetails","updateConnection","saveConnection","createEditColumnFieldNames","PaddingOptions","SurroundOptions","commonDefaultValues","createEditReportColumnDefaultIniValues","createEditOutputColumnDefaultIniValues","ColumnDataTypeOptions","ColumnFilterTypeOptions","ColumnCurrencyOptions","getReportColumnFieldDetails","locColumnsRedux","_locColumnsRedux$colu","dataSourceOptions","columnName","dataType","numberOfDecimals","weight","filterType","suppress","getOutputColumnFieldDetails","exportFromReportColumn","character","surroundCharacter","conditionCheckOnLoading","locVariableRedux","variableSetRedux","storeTabId","locGetDefaultValues","isSetColumnsRedux","_objectSpread2","is","FormFieldConditionRender","FieldDetails","checkFieldRenderCondition","RenderCondition","_FieldDetails$key","_FieldDetails$key$par","_FieldDetails$key2","_FieldDetails$key2$ch","_FieldDetails$key3","_FieldDetails$key3$pr","_FieldDetails$key4","_FieldDetails$key5","_FieldDetails$key5$pa","sm1","isNewRow","updateColumn","deleteColumn","handleSuppressChange","source","_columnsRedux$columns","displayDataSourceSpan","datatype","WEIGHT","getVariableBasedOnComponent","tabId","tableComponent","getFieldFn","_store$getState$repor","_store$getState$multi","variablesRedux","redirectUrl","multiEventOutputColumns","findHighestSuppressIndex","FormSubmitCancelButtons","handleSaveClick","handleTestClick","handleNewSaveClick","saveEnableCheck","isSaveBtnDisabled","onCancelClickHelper","Test","Save_SQL","FormSubmitCancel","_useParams","_getVariableBasedOnCo","stateVariableRedux","_Columns","stateColumnRedux","columnRedux","ColumnFieldDetails","createOrEdit","createEditPromptFieldNames","PromptTypeOptions","PromptCustomListOptions","createEditPromptDefaultIniValues","PromptFieldDetails","customList","promptId","outputPrompts","_Prompts","_yup$object$shape","of","CreateEditPrompt","prompts","Edit_Prompt","AceEditorField","_className$AceEditor","_ref3$field","highlightGutterLine","renderer","setScrollMargin","sqlEditorFieldNames","sqlEditorDefaultIniValues","IsValidSQL","innerHeading","SQLPromptsPrepare","Query","_Query$split","IsUsed","createEditPath","queryToBeTested1","hideAlert","EditSQLEditor","handleQueryChange","locSqlQuery","SQLQueryPrepare","setSQLPromptsValue","Variables","Edit_SQL","ReportingsToolBar","reportSaveClick","New_Report","record_in_report_and_output_bundles","ReportsGrid","setReportsData","getIndex","copyReport","updateReport","deleteReport","Report_Name","Interim","Final","Signature","sortedReportsData","No_Reports_Available","_GetConfigPayload","allReportsNames","_yield$updateConfigur","createEditReportFieldNames","IsInterim","IsHasCheckMark","IsFinal","IsSignature","createEditReportDefaultIniValues","GeneralFieldDetails","isInterim","isHasCheckMark","isFinal","isSignature","destinationValidation","emailName","getValues","updatePrompt","_locReportsRedux","locReportsRedux","ReadOnlySQLEditor","_e$target$checked","updateSubtotal","deleteSubtotal","totalType","resultArr","_props$value2","displayValuesSpan","_props$value3","Total","totalId","totalLabel","isPlacementField","multiEventOutputSubTotals","multiEventOutputGrandTotals","Totals","setShowWarningModal","isSubtotal","_getValues","MUIMultiAutoCompleteTextChips","isBlur","isFTPMultiple","locFtpConnections","FTPInputAttr","_i$props2","NotificationFields","NotificationFieldsRender","notificationEmailName","Designation","_storeId","signaturesFrom","handleCreateSignatureClick","CallbackConfirmation","_f","updateSignature","deleteSignature","New_Signature","No_Signatures_available","CreateEditReport","_ConfigDataHook$repor","reduxV","fName","Edit_Report","ReportBreadCrumb","FilesToIncludes","Files_To_Include","recordsNamesSelects","checkboxOnChange","locOutputBundlesRedux","CreateEditOutputBundle","_ConfigDataHook$outpu","defValues","Edit_Output_Bundle","OutputBBreadCrumb","Files_Details","VariancesToolBar","variancesSaveClick","variancesErrorSubmit","ThresholdOptions","ThresholdTypeOptions","SortListOptions","GroupVarianceValidation","getVarianceValidation","FullVarianceValidation","getSingleFieldValidation","getQtyExtThresholdValidation","getQtyExtThresholdConstantValidation","isOneOf","ThresholdNotEqualText","ThresholdTypeName","reportFieldValidationSchema","fieldOptions","_yup$object$shape2","VarianceGeneralSettings","_errors$watch","handleIsBatchSizeOnChange","RadioButtons","_getVarianceFormVaria","ThresholdSettings","RadioArr","Threshold_Settings","ReportFieldGrid","handleEditReportFieldClick","createEditCommonAction","handleDeleteReportFieldClick","Report_Fields","VarianceForm","_getFormToConfigConve","errs","locVarianceRedux","CreateEditReportField","stateVarianceRedux","setFieldOptions","locFieldOptions","AggregateConfigsField","createEditTotalFieldNames","AConfigsDataSource","AConfigsColumn","AConfigsFunction","AggregateConfigsIniValues","createEditReportGTDifIniValues","createEditReportSTDifIniValues","createEditOutputGTDifIniValues","createEditOutputSTDifIniValues","functionOptions","placementField","apiColumns","configColumns","fns","isPlacement","valueFields","_locColumnsRedux$colu2","_locVariableRedux$Col","dataColumnNameOptions","getTotalValuesFields","getRemoveValueBtn","getAddValueBtn","_totals","isSave","totals","CreateEditTotal","isDataGroupField","basicFields","dataGroupOptions","dataGroup","getTotalBasicFields","Edit_Sub_Total","Edit_Grand_Total","dailyRadioOptions","everyDay","everyWeekDay","dailyFields","weeklyFields","weeklyFields1","sunday","monday","tuesday","wednesday","thursday","friday","saturday","monthlyRadioOptions","day","week","monthlyFields","yearlyRadioOptions","DayMonthOptions","yearlyFields","systemDefaultFields","createEditOutputFieldNames","fileTypeOptions","fieldDelimiterOptions","recordDelimiterOptions","ReportGeneralFieldDetails","fieldDelimiter","otherFieldDelimiter","recordDelimiter","otherRecordDelimiter","asciiCharValue","hasHeaderRecord","getSystemDefaultPayload","multiEventDefaultSchedule","minStores","maxStores","getDailyPayload","multiEventDailySchedule","repeatInterval","repeatWeekdayFlag","getWeeklyPayload","multiEventWeeklySchedule","isSundayChecked","isMondayChecked","isTuesdayChecked","isWednesdayChecked","isThursdayChecked","isFridayChecked","isSaturdayChecked","getMonthlyPayload","multiEventMonthlySchedule","optionType","dayNumber","weekNumber","weekdayValue","getYearlyPayload","multiEventYearlySchedule","yearlyMonthName","monthName","getColumnsPayload","_i$DataBaseId","_i$NumberOfDecimals","idMultiEventSqlColumnDetails","DataBaseId","dataTypeDetails","decimalPlaces","originalCurrencySymbol","paddingDetails","columnOrder","getDateAndTimeMerge","timeMoment","dateMoment","hours","minutes","seconds","formattedDate","getDayNumber","dayName","getMonthNumber","getWeekNumberInMonth","daysOffset","getDay","dayOfMonth","getUpcomingDateByDay","currentDay","targetDayIndex","daysUntilNextDay","nextDay","year","month","String","padStart","day1","getDateFromYearMonthWeekDay","dayOfWeek","targetDate","getNextScheduleDateForMonthly","isTodayConsider","inputNumber","targetYear","targetMonth","isGoForNextMonth","getDateFromDateNumber","currentWeek","currentWeekDay","getDateFromWeekDay","getNextScheduleDateForYearly","monthNumber","dateNumber","currentYear","currentMonth","getDateFromDateNumberAndMonth","getDateFromMonthWeekDay","getDateForNextSchedule","todayORTomorrow","startDateCondition","NextScheduleRunEventDateTime","LastScheduleRunEventDateTime","getNextScheduleDateForDaily","daysOfWeekSelected","startIndexDate","indexOfTrue","getNextScheduleDateForWeekly","getNextScheduleDate","nextScheduledRunEventDateTime","givenDatetime","convertUTCToLocalDate","diff","todayConsiderConditionCheck","getSubTotalsPayload","aggregateConfigs","getGrandTotalsPayload","getUTCHours","getUTCMinutes","getUTCSeconds","subTotals","grandTotals","isDelimiter","t2","t3","t4","t5","t6","t7","t8","t9","recordDelimiterASCIIChar","t10","t11","t12","t13","t14","t15","t16","t17","t18","t19","t20","t21","t22","t23","t24","t25","t26","t27","t28","t29","t30","idMultiEventFileDetails","fieldDelimiterOthers","recordDelimiterOthers","recordDelimiterASCIICharDetails","columnsToSuppress","sqlText","eventSubTotalValue","eventGrandTotalValue","isFileDestinationCustomerPortal","fileDestinationEmailId","fileDestinationFtpDirectory","fileCreationScheduleType","scheduleStartDate","scheduleEndDate","fileCreationScheduleTime","fileNotificationEmailId","generalFormConversion","apiResObj","parsedRecordDelimiter","isRecordDelimiterString","isDelimiterInList","delimiter","delimiterOptions","isFieldDelimiterNotOther","recordDelimiterTextValue","isRecordDelimiterNotOther","RecordDelimiterASCIIChar","dateString","defaultFormConversion","defaultScheduleStartDate","defaultScheduleEndDate","dailyFormConversion","dailyRepeatWeekdayFlag","dailyRepeatInterval","dailyScheduleStartDate","dailyScheduleEndDate","weeklyFormConversion","weeklyRepeatInterval","weeklyRepeatWeekdayFlag","weeklyScheduleStartDate","weeklyScheduleEndDate","monthlyFormConversion","monthlyOptionType","monthlyDayNumber","monthlyRepeatInterval","monthlyWeekNumber","monthlyWeekdayValue","monthlyScheduleStartDate","monthlyScheduleEndDate","isMonthly","isDayOption","isWeekOption","yearlyFormConversion","yearlyRepeatInterval","yearlyOptionType","yearlyDayNumber","yearlyWeekNumber","yearlyWeekdayValue","yearlyScheduleStartDate","yearlyScheduleEndDate","isYearly","subtotalsFormConversion","eventSubTotal","grandTotalsFormConversion","eventGrandTotal","formDataPreparation","_apiResObj$configDeta","_apiResObj$columsDeta","_apiResObj$fileDestin","_apiResObj$fileNotifi","idMultiEventFileDetail","columsDetails","isPaddingString","isDataTypeString","nextScheduleRunEventDateTime","fileDestinationEmailID","lastScheduleRunEventDateTime","selectedCustomerSortByName","sCustomer","CustomerSection","loadings","Customer_Selected","Selected","configOptions","setConfigOptions","firstArrayConfigIds","ConfigurationDetailsFields1","Configurations_Include","DateRangeFields","isSpecificDateRange","FcsOptionsFields","handleFieldChange","FcsOptions","_getScheduleFieldDeta","optionSelect","scheduleDetailFields","scheduleDetailFields1","scheduleDetailFields1Heading","getScheduleFieldDetails","_j","Time_current_time_zone","fieldDelimiterOptionsValues","fieldDelimiterOptions1","recordDelimiterOptionsValues","recordDelimiterOptions1","generalSettingValidation","getSystemDefaultValidation","field1","field2","getDailyValidation","_yup$object$shape4","getMonthlyValidation","_yup$object$shape5","maxDay","createError","getYearlyValidation","_yup$object$shape6","validationChain","getDateValidation","outputGeneralSettingValidation","multiEventId","mergedUSTTime","MultiEventOutputsService","multiEventOutputsService","_yield$getPayload","addMultiEventDetails","updateMultiEventDetails","CreateEditMultiEventOutput","_ConfigDataHook$multi","formObject","getRecordById","GetMultiEventFileDetailsByEventId","_yield$formDataPrepar","getAllRecord","getMultiEventsOutputs","View_multi_event_output","Edit_multi_event_output","New_multi_event_output","OutputGeneralFieldDetails1","OutputGeneralFieldDetails","MultiEventOutputBreadCrumb","createEditSignatureFieldNames","createEditSignatureDefaultIniValues","SignatureFieldDetails","designation","object","CreateEditSignature","signatures","isStoreTabIdInvalid","isStoreIdInvalid","Edit_Signature","ConfigurationHistory","configHistories","setConfigHistories","isAPIFetched","loadingItems","setLoadingItems","_getConfigHistoryBrea","getConfigHistory","getConfigHistoryDetails","Version","User","Timestamp","Reference","Historic_JSON","Download","DownloadIcon","HistoryBreadCrumb","configPortal","variancesRoutes","renderComponent","isInsideCP","reportsRoutes","promptsRoutes","sqlEditorRoutes","columnsRoutes","isInsideML","signaturesRoutes","outputBundlesRoutes","totalsRoutes","configRoutes","customerPortal","multiEventOutputsRoutes","configHistoryRoutes","customerRoutes","configurationPortalFileConditionRoutes","overAllRoutes","Login","disableADBtn","setDisableADBtn","setUsername","setFetching","toastMsg","uName","redirectPath","instance","lrequest","loginPopup","datadogRum","setUser","errorFromAD","wholeMsg","splitMsg","getErrMsgFromAzureErr","handleADLogin","loginPage","loginBg","LoginBg","loginFormSec","loginForm","OpenInNewIcon","UpdateConfiguration","_eventIds$split","setEventDetails","noFutureEvents","setNoFutureEvents","futureEventData","setFutureEventData","stateData","setStateData","showConfigurationFilter","setShowConfigurationFilter","hideConfigurationFilter","sendFilterConfigurationDataToParent","_filteredData$eventSt2","ConfigStatusLength","handleConfigurationFilter","prevState","_locationState","currentDateTime","futureEvents","getEventDetailsForConfig","_pState","groupedData","groups","groupedItems","Events_Selected","listStyleType","CHOOSE_CONFIGURATION","noOptionsText","Choose_Configuration_Version","getOptions","onHandleChange","autoHighlight","_customers$","_customers$2","_config","idUser","UpdateEventsConfigDetails","NoFutureEvents","handleUpdateConfigAPI","CONTINUE","future_events_will_be_updated_to_this_new_configuration","No_Future_events_have_been_updated","UploadFileBulkDataMapping","rowData","uploadFilesFullData","uploadFileMappingData","csvUploadFileColumnListDeparment","csvUploadFileColumnListDepartment","csvUploadFileColumnListVariance","csvUploadFileColumnListAreaRange","_state$uploadFiles5","_csvColumnList","getIndividualRecordDetail","departmentGroup","getUploadFileDetails","uploadFileDetails","setUploadFileDetails","setUploadFileMappingData","handleChangeField","setUploadFileMappingPayloadData","UPLOAD_FILES","Department_Group","setUploadFileReset","UploadFileBulkValidation","_uploadFileBulkRespon2","_uploadFileBulkRespon3","_uploadFileBulkRespon4","_uploadFileBulkRespon5","_uploadFileBulkRespon6","_uploadFileBulkRespon7","_uploadFileBulkRespon8","_uploadFileBulkRespon9","_uploadFileBulkRespon10","_uploadFileBulkRespon11","uploadFileBulkResponseData","setUploadFileBulkResponseData","uploadFileMappingPayloadData","setNewFileData","uploadFilePost","IdFileType","AddBulkUploadFile","Reservation_Validation","Reservation_bulk_valiadtion_completed","Reservation_bulk_valiadtion_In_Progress","Reservation_Validation_Outcome","Reservation_File_Statistics","validRecordsCount","Reservation_Records_will_be_inserted","Reservation_Record_will_be_inserted","duplicateColumns","Records_Dublicate_In_File","Record_Dublicate_In_File","Preview","setContinueStatus","_uploadFileBulkRespon","UploadFileLocationBulk","bulkUploadFilePath","uploadFileFilePath","uploadCsvData","varianceTemplate","_state$auth$templates","deptTemplate","_state$auth2","_state$auth2$template","areaRangeTemplate","_state$auth3","_state$auth3$template","setUploadFilePath","UpdateDepartFile","_getNewColumnHeaders$","_getNewColumnHeaders","_getOldColumnHeaders$","_getOldColumnHeaders","deptFileType","setDeptFileType","setLastUpdatedDate","continuesStatus","newFileData","oldColumnHeaders","newColumnHeaders","newColumnsData","Update_File","TagIcon","Original_File","Total_Records","Received_Time","lastUpdateDate","timeDifference","abs","daysDifference","Days_Ago","DateDifference","New_File","Now","UploadFileBulkContainer","lazy","DeviceReservation","FinalReportsAndFiles","CreateEditSchedule","LocationBanner","CreateLocation","UserBulkContainer","CreateEditUser","LocationTypeSelect","SettingsRegionalGroups","CreateReservation","RegionalGroups","RegionalGroupsBanner","CompanyDetails","UserList","ScheduleTypeSelect","UserTypeSelect","ConfigurationDetails","CreateEditSql","DeviceReservationTypeSelect","DeviceReservationBulkContainer","PageNotFound","RouteList","Suspense","fallback","exact","_i$isInsideCP","_i$isInsideML","locComp","renderConfigPortalComponent","Routes","ScrollToTop","InactivityLogout","inactivityTimer","isInactive","setIsInactive","broadcastChannel","BroadcastChannel","resetTimer","handleActivity","postMessage","handleInactivity","handleChannelMessage","browserHistory","createBrowserHistory","basename","reactPlugin","ReactPlugin","appInsights","ApplicationInsights","connectionString","isCookieUseDisabled","extensions","enableAutoRouteTracking","extensionConfig","identifier","loadAppInsights","addTelemetryInitializer","envelope","tags","trackPageView","uri","AppWithRouter","withRouter","rumConfig","applicationId","clientToken","site","env","sessionSampleRate","sessionReplaySampleRate","trackResources","trackLongTasks","trackUserInteractions","allowedTracingUrls","traceSampleRate","datadogLogs","forwardErrorsToLogs","context","rumContext","getInternalContext","combinedContext","session_id","application_id","logger","logWithRumContext","custom_attribute","withAITracking","defaultProps","limit","autoClose","hideProgressBar","newestOnTop","closeOnClick","rtl","pauseOnFocusLoss","draggable","pauseOnHover","Toaster","finalProps","ToastContainer","createRoot","getElementById","Provider","StyledEngineProvider","injectFirst","BrowserRouter","MsalProvider","App","outputSignatures","uploadFilesStatusRecordsInitialResp","validationDepartmentData","getValidationDepartmentDetails","_callee4","_context4","deleteValidationDepartment","_callee5","_context5","uploadFilesSlice","uploadedDateTime","updatedUserName","_uploadFilesSlice$act","locationFilters","locationFilterForm","validLocationColumnList","locationSort","locationColumn","settingsSlice","setLocationFilters","setLocationFilterForm","_settingsSlice$action","titleStr","setTitle","pathStr","_selected$","_selected$2","_selected$2$companyNa","_selected$3","_selected$3$companyNa","prepareTitle","_titleStr","selectedCust","_selectedCust$company","_selectedCust$company2","locErrors","processErrorsWithNames","processArrayErrors","_locErrors","processErrors","_options$find","option1","reportSlice","issetReportsRedux","_reportSlice$actions","setupInstructionsName","validationInstructionsName","lookupInstructionsName","Are_you_sure_you_want_to_override_the_instructions","_watch","setProductList","newProductList","setLocationList","newLocationList","countField","isRefetch","_fieldsOptionsList","_fieldsOptionsList$fi","_fieldsOptionsList2","_fieldsOptionsList2$f"],"mappings":"iPAgBIA,EAAoB,KACpBC,GAAkB,EA8DtB,IAAMC,EAAc,SAACC,GACwD,IAADC,EAA1E,OAAID,EAAME,UAAYF,EAAME,SAASC,MAAQH,EAAME,SAASC,KAAKC,QAC1C,QAArBH,EAAOD,EAAME,gBAAQ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ADA,EAAG5qB,OAAO,GAAG,SAASxgC,QAAQ,kBAAmB,SACxDr2B,MAAQ,QAAHkhF,EAAE37D,SAAC,IAAA27D,OAAA,EAADA,EAAGrqB,OAAO,GAAG,SACpBg/F,cAAgB,QAAHn0E,EAAEn8D,SAAC,IAAAm8D,OAAA,EAADA,EAAGhyD,MAClB/I,MAAQ,QAAHg7D,EAAEp8D,SAAC,IAAAo8D,OAAA,EAADA,EAAGh7D,MAEd,IACF4vM,EAAevqN,YAAKo7J,GACtB,CAEF,OAAO,CACT,EAEa5sG,GAAqB,CAChC,CACEvzD,MAAO,qBACP6R,UAAU,EACV0/B,UAAWa,IAAejoB,cAAcmoB,OAE1C,CACEtyC,MAAO,0BACP6R,UAAU,EACV0/B,UAAWa,IAAejoB,cAAcooB,YAE1C,CACEvyC,MAAO,sBACP6R,UAAU,EACV0/B,UAAWa,IAAejoB,cAAc2Y,SAI/BqsH,GAAyB,SACpC4/D,EACAC,EACAC,EACAxvM,EACAC,EACAqG,GAEI,IADJ0rB,EAAgB1zC,UAAAyR,OAAA,QAAAmH,IAAA5Y,UAAA,IAAAA,UAAA,GAEhB,OACEuD,cAACsxC,EAAY,CACXm8K,sBAAuBA,EAAsB3/L,QAC3C,QACA3P,EAAEjG,YAEJw1M,2BAA4BA,EAA2B5/L,QACrD,QACA3P,EAAEjG,YAEJy1M,uBAAwBA,EAAuB7/L,QAC7C,QACA3P,EAAEjG,YAEJuM,QAASA,EACTk7G,QAASvhH,EACT+xB,QAASA,GAGf,C","file":"static/js/main.35401240.chunk.js","sourcesContent":["/* istanbul ignore file */\r\n/* eslint-disable no-console */\r\nimport type {\r\n AxiosError,\r\n AxiosInstance,\r\n AxiosRequestConfig,\r\n AxiosResponse\r\n} from \"axios\"\r\nimport axios from \"axios\"\r\nimport { config } from \"../config/config\"\r\nimport { toast } from \"react-toastify\"\r\nimport { CUSTOM_REQUEST_HEADERS } from \"../utils/constants\"\r\nimport { msalConfig, tokenRequest } from \"src/config/authConfig\"\r\nimport { parseToken, prepareMsalConfig, translate } from \"./helper\"\r\nimport { PublicClientApplication } from \"@azure/msal-browser\"\r\n\r\nlet tokenPromise: any = null\r\nlet isTokenFetching = false\r\n// istanbul ignore next\r\nfunction fetchAccessToken() {\r\n if (tokenPromise) {\r\n return tokenPromise\r\n }\r\n if (isTokenFetching) {\r\n // If another part of the code is already fetching a token, wait for it\r\n return new Promise(resolve => {\r\n const checkFetching = () => {\r\n if (!isTokenFetching) {\r\n resolve(tokenPromise)\r\n } else {\r\n setTimeout(checkFetching, 100)\r\n }\r\n }\r\n checkFetching()\r\n })\r\n }\r\n\r\n // Set the flag to indicate that token fetching is in progress\r\n isTokenFetching = true\r\n // istanbul ignore next\r\n return new Promise(async (resolve, _reject) => {\r\n let msalToken: any = localStorage.getItem(\"msalAccessToken\")\r\n let token = parseToken(msalToken)\r\n let exp = token?.exp\r\n let current_time = Math.floor(Date.now() / 1000)\r\n if (!msalToken || current_time > exp) {\r\n let mConfig: any = prepareMsalConfig(\r\n { domain_hint: \"\", login_hint: \"\" },\r\n msalConfig,\r\n true\r\n )\r\n const userName: any = localStorage.getItem(\"username\")\r\n const msalInstance = new PublicClientApplication(mConfig)\r\n const account = await msalInstance.getAccountByUsername(userName)\r\n msalInstance.setActiveAccount(account)\r\n tokenPromise = msalInstance\r\n .acquireTokenSilent(tokenRequest)\r\n .then(response => {\r\n localStorage.setItem(\"msalAccessToken\", response.accessToken)\r\n return response.accessToken\r\n })\r\n .catch(err => {\r\n console.log(\"got error \", err)\r\n localStorage.clear()\r\n window.location.href = \"/login\"\r\n // reject(err)\r\n throw err\r\n })\r\n .finally(() => {\r\n // Clear the token fetching promise once it's done\r\n tokenPromise = null\r\n })\r\n return tokenPromise\r\n }\r\n isTokenFetching = false\r\n resolve(msalToken)\r\n })\r\n}\r\n// istanbul ignore next\r\nconst getErrorMsg = (error: any) => {\r\n if (error.response && error.response.data && error.response.data.Message) {\r\n return error.response?.data.Message\r\n } else {\r\n return \"\"\r\n }\r\n}\r\n// istanbul ignore next\r\nclass ApiService {\r\n service: AxiosInstance\r\n constructor(_tedUrl?: boolean) {\r\n const url: string = config.baseURL\r\n this.service = axios.create({\r\n baseURL: url\r\n })\r\n // request interceptor\r\n this.service?.interceptors?.request.use(\r\n this.requestHandleSuccess,\r\n this.requestHandleError\r\n )\r\n // response interceptor\r\n this.service?.interceptors?.response.use(\r\n this.responseHandleSuccess,\r\n this.responseHandleError\r\n )\r\n }\r\n // istanbul ignore next\r\n post(path: string, payLoad: T): Promise {\r\n return this.service.post>(path, payLoad)\r\n }\r\n // istanbul ignore next\r\n get(path: string, options: any): Promise {\r\n return this.service.get(path, options)\r\n }\r\n // istanbul ignore next\r\n put(path: string, payLoad: T): Promise {\r\n return this.service.put>(path, payLoad)\r\n }\r\n // istanbul ignore next\r\n saveWithParams(\r\n path: string,\r\n payLoad: object,\r\n params: object\r\n ): Promise {\r\n return this.service.post(path, payLoad, params)\r\n }\r\n // istanbul ignore next\r\n savefile(path: string, formData: object, config): Promise {\r\n this.service.defaults.headers.common[\"Content-Type\"] = \"multipart/form-data\"\r\n return this.service.post(path, formData, config)\r\n }\r\n // istanbul ignore next\r\n sqlPost(endPoint: string, query: object): Promise {\r\n this.service.defaults.headers.common[\"Content-Type\"] = \"application/json\"\r\n return this.service.post(endPoint, query)\r\n }\r\n // istanbul ignore next\r\n herePOST(path: string, body): Promise {\r\n return this.service.post(path, body)\r\n }\r\n // istanbul ignore next\r\n update(path: string, payLoad: object): Promise {\r\n return this.service.put(path, payLoad)\r\n }\r\n // istanbul ignore next\r\n findByParams(path: string, params: object): Promise {\r\n return this.service.get(path, params)\r\n }\r\n // istanbul ignore next\r\n findAll(path: string): Promise {\r\n return this.service.get(path)\r\n }\r\n // istanbul ignore next\r\n findAllFutureEvents(path: string): Promise {\r\n return this.service.get(path, {\r\n headers: {\r\n \"content-type\": \"application/json\",\r\n Accept: \"application/json\"\r\n }\r\n })\r\n }\r\n // istanbul ignore next\r\n delete(path: string, params: object): Promise {\r\n return this.service.delete(path, params)\r\n }\r\n // istanbul ignore next\r\n setCustomHeaders(key: string, value: any) {\r\n this.service.defaults.headers.common[key] = value\r\n }\r\n // istanbul ignore next\r\n async requestHandleSuccess(\r\n config: AxiosRequestConfig\r\n ): Promise {\r\n let access_token: any = await fetchAccessToken()\r\n const userName = localStorage.getItem(\"name\") ?? \"\"\r\n if (access_token && !config.url?.includes(\"hereapi\")) {\r\n config.headers = {\r\n Authorization: `Bearer ${access_token}`,\r\n Username: userName,\r\n ...CUSTOM_REQUEST_HEADERS\r\n }\r\n }\r\n const newConfig: AxiosRequestConfig = {\r\n ...config,\r\n ...{ headers: { ...config.headers } }\r\n }\r\n\r\n return Promise.resolve(newConfig)\r\n }\r\n // istanbul ignore next\r\n requestHandleError(error: AxiosError) {\r\n console.log(\"errror ------->> \", error)\r\n return Promise.reject(error)\r\n }\r\n // istanbul ignore next\r\n responseHandleSuccess(response: AxiosResponse) {\r\n return response\r\n }\r\n // istanbul ignore next\r\n responseHandleError(error: AxiosError) {\r\n console.log(\"===> \", error)\r\n let errorMsg: string = \"\"\r\n let avoidToaster: boolean = false\r\n if (error?.response?.data?.title) {\r\n errorMsg = error.response?.data?.title\r\n }\r\n\r\n switch (error?.response?.data.StatusCode) {\r\n case 400:\r\n errorMsg = getErrorMsg(error)\r\n if (\r\n errorMsg ===\r\n \"Devices are already reserved for the selected time period\"\r\n ) {\r\n avoidToaster = true\r\n }\r\n break\r\n case 500:\r\n errorMsg = getErrorMsg(error)\r\n break\r\n\r\n case 404:\r\n errorMsg = getErrorMsg(error)\r\n if (errorMsg === \"Reservation Name Already Exists\") {\r\n avoidToaster = true\r\n }\r\n break\r\n case 401:\r\n errorMsg = error.response?.data.Message\r\n // localStorage.clear()\r\n // window.location.href = \"/login\"\r\n break\r\n case 403:\r\n if (error.response?.data.Message)\r\n errorMsg = error.response?.data.Message\r\n console.log(\"requested resource not found\")\r\n break\r\n case 409:\r\n errorMsg = error.response?.data.Message\r\n if (\r\n error.response?.data.Message === \"Changed Location not found\" ||\r\n error.response?.data.Message === \"Location not found\" ||\r\n error.response?.data.Message === \"Device Reservation Not Found\" ||\r\n error.response?.data.Message === \"Schedule Not Found\" ||\r\n error.response?.data.Message ===\r\n \"Unable to find the user. Please contact your account Admin\" ||\r\n error.response?.data.Message ===\r\n \"Devices are already reserved for the selected time period\" ||\r\n error.response?.data.Message.includes(\r\n \"This action will make changes to the reservation\"\r\n ) ||\r\n error.response?.data.Message.includes(\r\n \"This action will cancel the reservation\"\r\n )\r\n ) {\r\n // avoidToaster = true\r\n\r\n avoidToaster = true\r\n // setOverlapMsg(`${translate(s1)} ${s2}. ${translate(s3)}`)\r\n }\r\n console.log(\"requested resource not found\")\r\n break\r\n\r\n default:\r\n console.log(\"default requested intercept\")\r\n break\r\n }\r\n if (error?.response?.config?.url) {\r\n if (\r\n [\"/api/UploadFiles/UploadChunks\"].includes(error?.response?.config?.url)\r\n ) {\r\n avoidToaster = true\r\n }\r\n }\r\n\r\n if (\r\n !avoidToaster &&\r\n errorMsg &&\r\n errorMsg !== \"undefined\" &&\r\n errorMsg !== \"null\"\r\n ) {\r\n let _errorString = errorMsg.split(\" \").join(\"_\")\r\n let temp\r\n if (errorMsg.includes(\"does not belong to table\")) {\r\n const pattern = /^(\\w+)\\s+(\\{(\\d+)\\})\\s+(.*)$/\r\n\r\n // Use the exec() method to extract parts using the pattern\r\n const match = pattern.exec(errorMsg)\r\n\r\n // Extract the desired substrings from the match result\r\n let s1 = \"\"\r\n let s2 = \"\"\r\n let s3 = \"\"\r\n if (match) {\r\n s1 = match[1]\r\n s2 = match[3]\r\n s3 = match[4]\r\n }\r\n temp = translate(s1)\r\n ? `${translate(s1)} ${s2} ${translate(s3.split(\" \").join(\"_\"))}`\r\n : errorMsg\r\n toast.error(`${temp}`, {\r\n toastId: errorMsg.split(\"\").join(\"-\")\r\n })\r\n } else {\r\n temp = translate(_errorString) ? translate(_errorString) : errorMsg\r\n toast.error(`${temp}`, {\r\n toastId: errorMsg.split(\"\").join(\"-\")\r\n })\r\n }\r\n }\r\n return Promise.reject(error?.response?.data)\r\n }\r\n}\r\nexport default ApiService\r\n","import { Alert, AlertTitle } from \"@mui/material\"\r\nimport { Warning } from \"@mui/icons-material\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nconst AlertConfirmationContent = ({ warningMsg }: { warningMsg: string }) => {\r\n const { t } = useTranslation()\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

{getTranslations(t, Translates.Warning)}

\r\n
\r\n

\r\n {warningMsg}\r\n

\r\n
\r\n )\r\n}\r\n\r\nexport default AlertConfirmationContent\r\n","import { createAsyncThunk, createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport { ScheduleService } from \"../../../src/service/schedule.service\"\r\nimport { ConfigService } from \"../../../src/service/config.service\"\r\nimport moment from \"moment\"\r\nimport { defScheduleStatus } from \"src/utils/constants\"\r\n\r\nexport interface ScheduleState {\r\n status: string\r\n scheduleFilters: any\r\n scheduleFilterForm: any\r\n viewSchedule: any\r\n deleteSchedule: any\r\n validScheduleColumnList: string[]\r\n csvScheduleColumnList: string[]\r\n scheduleMappingData: any\r\n scheduleFileData: any\r\n mappingResponseData: any\r\n mappingPayloadData: any\r\n mappingProgress: any\r\n bulkScheduleFilePath: string\r\n scheduleSort: any\r\n scheduleColumn: any\r\n configurationData: any\r\n}\r\n\r\n\r\nconst initialState: ScheduleState = {\r\n status: \"\",\r\n scheduleFilters: {\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: [],\r\n country: [],\r\n state: [],\r\n startDate: moment().subtract(1, 'days').format('YYYY-MM-DD'),\r\n endDate: moment().add(30, 'days').format('YYYY-MM-DD'),\r\n eventStatus: defScheduleStatus,\r\n configNames: []\r\n },\r\n scheduleFilterForm: {\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: [],\r\n country: [],\r\n state: [],\r\n startDate: moment().subtract(1, 'days').format('YYYY-MM-DD'),\r\n endDate: moment().add(30, 'days').format('YYYY-MM-DD'),\r\n eventStatus: defScheduleStatus,\r\n configNames: []\r\n },\r\n viewSchedule: {},\r\n deleteSchedule: {},\r\n validScheduleColumnList: [\r\n \"Site ID\",\r\n \"Scheduled Date\",\r\n \"Scheduled Time\",\r\n \"Configuration Name\",\r\n \"Number Of Devices\",\r\n \"Notes\"\r\n ],\r\n csvScheduleColumnList: [],\r\n scheduleMappingData: {},\r\n scheduleFileData: [\"\"],\r\n mappingResponseData: {},\r\n mappingPayloadData: {},\r\n mappingProgress: 0,\r\n bulkScheduleFilePath: \"\",\r\n scheduleSort: \"\",\r\n scheduleColumn: \"\",\r\n configurationData: []\r\n\r\n}\r\nconst scheduleService = new ScheduleService()\r\nconst configService = new ConfigService()\r\nexport const getViewSchedule = createAsyncThunk(\r\n \"scheduleList/getViewSchedule\",\r\n async (params: any) => {\r\n let customerId = params.payload\r\n return scheduleService.getviewschedule(customerId)\r\n }\r\n)\r\n\r\nexport const deleteSchedule = createAsyncThunk(\r\n \"scheduleList/deleteSchedule\",\r\n async (params: any) => {\r\n let customerId = params.payload\r\n return scheduleService.deleteschedule(customerId)\r\n }\r\n)\r\n\r\nexport const scheduleSlice = createSlice({\r\n name: \"scheduleList\",\r\n initialState,\r\n reducers: {\r\n setScheduleFilters: (state, _action: PayloadAction) => {\r\n state.scheduleFilters = { ...state.scheduleFilters, ..._action.payload }\r\n },\r\n setScheduleFilterForm: (state, _action: PayloadAction) => {\r\n state.scheduleFilterForm = { ..._action.payload }\r\n },\r\n setCSVScheduleColumnList: (state, _action: PayloadAction) => {\r\n state.csvScheduleColumnList = [..._action.payload]\r\n },\r\n setScheduleMappingData: (state, _action: PayloadAction) => {\r\n state.scheduleMappingData = { ..._action.payload }\r\n },\r\n setScheduleFileData: (state, _action: PayloadAction) => {\r\n state.scheduleFileData = _action.payload\r\n },\r\n setBulkScheduleFile: (state, _action: PayloadAction) => {\r\n state.bulkScheduleFilePath = _action.payload\r\n },\r\n setScheduleReset: () => initialState,\r\n setMappingResponseData: (state, _action: PayloadAction) => {\r\n state.mappingResponseData = _action.payload\r\n },\r\n setMappingProgress: (state, _action: PayloadAction) => {\r\n state.mappingProgress = _action.payload\r\n },\r\n setMappingPayloadData: (state, _action: PayloadAction) => {\r\n state.mappingPayloadData = _action.payload\r\n },\r\n setScheduleSort: (state, _action: PayloadAction) => {\r\n state.scheduleSort = _action.payload\r\n },\r\n setScheduleColumn: (state, _action: PayloadAction) => {\r\n state.scheduleColumn = _action.payload\r\n },\r\n setConfigurationData: (state, _action: PayloadAction) => {\r\n state.configurationData = _action.payload\r\n }\r\n },\r\n extraReducers: builder => {\r\n builder.addCase(getViewSchedule.pending, state => {\r\n state.status = \"loading\"\r\n })\r\n //istanbul ignore next\r\n builder.addCase(getViewSchedule.fulfilled, (state, { payload }) => {\r\n state.status = \"success\"\r\n state.viewSchedule = payload.data\r\n })\r\n builder.addCase(getViewSchedule.rejected, state => {\r\n state.status = \"failed\"\r\n })\r\n\r\n builder.addCase(deleteSchedule.pending, state => {\r\n state.status = \"loading\"\r\n })\r\n //istanbul ignore next\r\n builder.addCase(deleteSchedule.fulfilled, (state, { payload }) => {\r\n state.status = \"success\"\r\n state.deleteSchedule = payload.data\r\n })\r\n builder.addCase(deleteSchedule.rejected, state => {\r\n state.status = \"failed\"\r\n })\r\n }\r\n})\r\nexport const {\r\n setScheduleFilters,\r\n setScheduleFilterForm,\r\n setCSVScheduleColumnList,\r\n setScheduleMappingData,\r\n setScheduleFileData,\r\n setBulkScheduleFile,\r\n setScheduleReset,\r\n setMappingResponseData,\r\n setMappingPayloadData,\r\n setMappingProgress,\r\n setScheduleSort,\r\n setScheduleColumn,\r\n setConfigurationData\r\n} = scheduleSlice.actions\r\n\r\nexport default scheduleSlice.reducer\r\n","export const multiEventOutputRouteReplaceVar = {\r\n CreateSchedule: \"/file-creation-schedule\",\r\n Configuration: \"/configuration\"\r\n}\r\nconst configVariancePaths = {\r\n VARIANCES: \"/configuration/variances\",\r\n VARIANCES_ADD: \"/configuration/variances/report-field/create\",\r\n VARIANCES_EDIT: \"/configuration/variances/report-field/:id/edit\",\r\n VARIANCES_REPORT_CREATE: \"/configuration/variances/report-field/create\",\r\n VARIANCES_REPORT_EDIT: \"/configuration/variances/report-field/:id/edit\"\r\n}\r\n\r\nconst configReportPaths = {\r\n REPORTS: \"/configuration/reports\",\r\n REPORT_CREATE: \"/configuration/reports/create\",\r\n REPORT_EDIT: \"/configuration/reports/:id/edit\"\r\n}\r\n\r\nexport const configPromptPaths = {\r\n TAB_CREATE_PROMPT_CREATE: \"/configuration/:tab/create/prompt/create\",\r\n TAB_EDIT_PROMPT_CREATE: \"/configuration/:tab/:tabId/edit/prompt/create\",\r\n TAB_CREATE_PROMPT_EDIT: \"/configuration/:tab/create/prompt/:id/edit\",\r\n TAB_EDIT_PROMPT_EDIT: \"/configuration/:tab/:tabId/edit/prompt/:id/edit\"\r\n}\r\n\r\nexport const configSQLEditorPaths = {\r\n TAB_CREATE_SQL_EDITOR: \"/configuration/:tab/create/sql-editor\",\r\n TAB_EDIT_SQL_EDITOR: \"/configuration/:tab/:tabId/edit/sql-editor\"\r\n}\r\n\r\nexport const configColumnPaths = {\r\n TAB_CREATE_COLUMN_CREATE: \"/configuration/:tab/create/column/create\",\r\n TAB_EDIT_COLUMN_CREATE: \"/configuration/:tab/:tabId/edit/column/create\",\r\n TAB_CREATE_COLUMN_EDIT: \"/configuration/:tab/create/column/:id/edit\",\r\n TAB_EDIT_COLUMN_EDIT: \"/configuration/:tab/:tabId/edit/column/:id/edit\"\r\n}\r\n\r\nexport const configSignaturePaths = {\r\n TAB_CREATE_SIGNATURE_CREATE: \"/configuration/:tab/create/signature/create\",\r\n TAB_EDIT_SIGNATURE_CREATE: \"/configuration/:tab/:tabId/edit/signature/create\",\r\n TAB_CREATE_SIGNATURE_EDIT: \"/configuration/:tab/create/signature/:id/edit\",\r\n TAB_EDIT_SIGNATURE_EDIT: \"/configuration/:tab/:tabId/edit/signature/:id/edit\"\r\n}\r\n\r\nexport const configTotalPaths = {\r\n TAB_CREATE_TOTAL_CREATE: \"/configuration/:tab/create/:type/create\",\r\n TAB_EDIT_TOTAL_CREATE: \"/configuration/:tab/:tabId/edit/:type/create\",\r\n TAB_CREATE_TOTAL_EDIT: \"/configuration/:tab/create/:type/:id/edit\",\r\n TAB_EDIT_TOTAL_EDIT: \"/configuration/:tab/:tabId/edit/:type/:id/edit\"\r\n}\r\n\r\nconst configOutputBundlePaths = {\r\n OUTPUT_BUNDLE_CREATE: \"/configuration/outputFiles/output-bundles/create\",\r\n OUTPUT_BUNDLE_EDIT: \"/configuration/outputFiles/output-bundles/:id/edit\"\r\n}\r\n\r\nconst configPortalPaths = {\r\n ...configVariancePaths,\r\n ...configReportPaths,\r\n ...configPromptPaths,\r\n ...configOutputBundlePaths,\r\n ...configSQLEditorPaths,\r\n ...configColumnPaths,\r\n ...configSignaturePaths,\r\n ...configTotalPaths,\r\n ...configOutputBundlePaths\r\n}\r\n\r\nconst multiEventOutputs = {\r\n MULTI_EVENT_OUTPUTS: `${multiEventOutputRouteReplaceVar.CreateSchedule}/:tab`,\r\n MULTI_EVENT_OUTPUT_CREATE: `${multiEventOutputRouteReplaceVar.CreateSchedule}/:tab/create`,\r\n MULTI_EVENT_OUTPUT_EDIT: `${multiEventOutputRouteReplaceVar.CreateSchedule}/:tab/:id/edit`\r\n}\r\n\r\nexport const PATH = {\r\n ...configPortalPaths,\r\n ...multiEventOutputs,\r\n ...{\r\n HOME: \"/\",\r\n LOGIN: \"/login\",\r\n DEVICE_RESERVATION: \"/devicereservation\",\r\n SETTINGS: \"/settings\",\r\n SCHEDULE_BANNER: \"/scheduleBanner\",\r\n LOCATION_BANNER: \"/locationBanner\",\r\n LOCATIONS: \"/locations\",\r\n CREATE_LOCATION: \"/locations/create\",\r\n EDIT_LOCATION: \"/locations/edit/:storeId\",\r\n LOCATION_DETAILS: \"/locationDetails\",\r\n LOCATION_TYPE_SELECT: \"/locationTypeSelect\",\r\n SETTINGS_REGIONAL_GROUPs: \"/settingsRegionalGroups\",\r\n CREATE_RESERVATION: \"/createreservation\",\r\n SELECT_CUSTOMER: \"/selectCustomer\",\r\n REGIONAL_GROUPS: \"/settings/regionalGroups/regionalGroupsDetails\",\r\n REGIONAL_GROUPS_BANNER: \"/settings/regionalGroups\",\r\n COMPANY_DETAILS: \"/settings/companyDetails\",\r\n CREATE_USER: \"/user/create\",\r\n EDIT_USER: \"/user/edit/:email\",\r\n CREATE_SCHEDULE: \"/schedule/create\",\r\n EDIT_SCHEDULE: \"/schedule/edit/:scheduleId\",\r\n USERS: \"/users\",\r\n SCHEDULE: \"/schedule\",\r\n SCHEDULE_DETAILS: \"/schedule/Details\",\r\n SCHEDULE_EVENT_DETAILS: \"/schedule/EventDetails/:scheduleId\",\r\n SCHEDULE_CREATE_TYPE: \"/schedule/createType\",\r\n CREATE_BULK_LOCATION: \"/locations/createBulk\",\r\n CREATE_USER_TYPE: \"/user/create/type\",\r\n LOCATION_BULK_DATAMAPPING: \"/locations/createBulk/dataMapping\",\r\n LOCATION_BULK_VALIDATION: \"/locations/createBulk/dataMapping/validation\",\r\n USER_TYPE_SELECT: \"/userTypeSelect\",\r\n CREATE_USER_BULK: \"/user/create/bulk\",\r\n USER_BULK_DATA_MAPPING: \"/UserBulkDataMapping\",\r\n CREATE_BULK_SCHEDULE: \"/schedule/createBulk\",\r\n SCHEDULE_BULK_DATAMAPPING: \"/schedule/createBulk/dataMapping\",\r\n CONFIGURATION: \"/configuration\",\r\n CONFIGURATION_DETAILS: \"/configuration/Details\",\r\n CONFIGURATION_PORTAL: \"/configuration/generalSettings\",\r\n CONFIGURATION_COUNT_FIELDS: \"/configuration/countFields\",\r\n CONFIGURATION_COUNT_FIELDS_LOCATION:\r\n \"/configuration/createEditLocationCountField\",\r\n CONFIGURATION_COUNT_FIELDS_PRODUCT:\r\n \"/configuration/createEditProductCountField\",\r\n CATEGORIES: \"/configuration/categories\",\r\n CREATE_CATEGORY: \"/configuration/category/create\",\r\n EDIT_CATEGORY: \"/configuration/category/:id/edit\",\r\n CREATE_REPORTING: \"/configuration/createReport\",\r\n EDIT_REPORTING: \"/configuration/editReport/:storeId\",\r\n CREATE_REPORTING_PROMPT: \"/configuration/CreatePromptReport\",\r\n EDIT_REPORTING_PROMPT: \"/configuration/createReport/EditPrompt/:reportID\",\r\n CONFIG_LOOKUP_ROUTINES: \"/configuration/lookupRoutines\",\r\n CONFIG_NEW_LOOKUP_ROUTINE: \"/configuration/createNewLookupRoutine\",\r\n CREATE_LOOKUP: \"/configuration/newLookup\",\r\n CREATE_EDIT_SQL: \"/configuration/createSql\",\r\n OUTPUT_FILES: \"/configuration/outputFiles\",\r\n CREATE_EDIT_OUTPUTFILES: \"/configuration/createEditOutputFiles\",\r\n AUDITS: \"/configuration/audits\",\r\n CREATE_AUDIT: \"/configuration/auditsCreateAudit\",\r\n AUDITS_INSTRUCTIONS: \"/configuration/audits/instructions\",\r\n COUNT_FIELDS_INSTRUCTIONS: \"/configuration/count-fields/instructions\",\r\n COUNT_PROGRAMS: \"/configuration/count-programs\",\r\n CREATE_COUNT_PROGRAMS: \"/configuration/count-programs/create\",\r\n EDIT_COUNT_PROGRAMS: \"/configuration/count-programs/:id/edit\",\r\n COUNT_PROGRAM_INSTRUCTIONS: \"/configuration/count-programs/instructions\",\r\n OUTPUTPROMPTS: \"/configuration/outputPrompts\",\r\n CREATE_EDIT_PROMPTS: \"/configuration/createEditPromptsOutput\",\r\n INPUT_FILES: \"/configuration/inputFiles\",\r\n SELECT_INPUT_FILE_TYPE: \"/configuration/inputFileType\",\r\n CREATE_EDIT_AUXILIARY_INPUT_FILE: \"/configuration/createAuxiliaryInputFile\",\r\n CREATE_EDIT_CUSTOMER_INPUT_FILE: \"/configuration/createCustomerInputFile\",\r\n CREATE_EDIT_COLUMN: \"/configuration/createEditColumnReport\",\r\n EDIT_COLUMNS: \"/configuration/editColumnsOutput\",\r\n CREATE_INPUT_FIELDS: \"/configuration/createInputField\",\r\n CREATE_EDIT_OUTPUT_SUBTOTALS: \"/configuration/createEditOutputSubTotals\",\r\n CREATE_EDIT_OUTPUT_GRAND_TOTALS:\r\n \"/configuration/createEditOutputGrandTotals\",\r\n CREATE_EDIT_REPORT_SUBTOTALS: \"/configuration/createEditReportSubTotals\",\r\n CREATE_EDIT_REPORT_GRAND_TOTALS:\r\n \"/configuration/createEditReportGrandTotals\",\r\n PAGE_NOT_FOUND: \"/PageNotFound\",\r\n UPLOADFILES_DATA: \"/uploadFilesData\",\r\n UPLOADFILES: \"/uploadFiles\",\r\n UPLOADFILES_DETAIL_DATA: \"/uploadFiles/editDepartment\",\r\n EDIT_DEPARTMENT_FILE: \"/uploadFiles/department/edit\",\r\n FINAL_REPORTS_AND_FILES: \"/finalReportsAndFiles\",\r\n EDIT_UPLOAD_FILES: \"/uploadFiles/editFile/:id\",\r\n CREATE_EDIT_UPLOAD_FILES_DATA: \"/uploadFiles/editFile/:id/createEditData/:idFileType\",\r\n LIVE_EVENTS: \"/liveEvents\",\r\n LOCATION_ATTRIBUTES: \"/settings/locationAttributes\",\r\n CREATE_EDIT_FTP_CONNECTION: \"/createEditFtpConnection\",\r\n FTP_CONNECTION: \"/ftpConnection\",\r\n EDIT_FTP_CONNECTION: \"/ftpConnection/edit/:name\",\r\n DEVICE_RESERVATION_TYPE_SELECT:\r\n \"/devicereservation/deviceReservationTypeSelect\",\r\n DEVICE_RESERVATION_BULK_UPLOAD: \"/devicereservation/createBulk\",\r\n DEVICE_RESERVATION_BULK_DATAMAPPING:\r\n \"/devicereservation/createBulk/dataMapping\",\r\n DEVICE_RESERVATION_BULK_VALIDATION:\r\n \"/devicereservation/createBulk/dataMapping/validation\",\r\n UPLOADFILE_BULK_UPLOAD: \"/uploadfile/createBulk\",\r\n UPLOADFILE_BULK_DATAMAPPING: \"/uploadfile/createBulk/dataMapping\",\r\n UPLOADFILE_BULK_VALIDATION: \"/uploadfile/createBulk/dataMapping/validation\",\r\n UPDATE_CONFIGURATION: \"/updateConfiguration/:eventIds\",\r\n CONFIG_VIEW_HISTORY: \"/configuration-view-history\"\r\n }\r\n}\r\n","import { Translates } from \"src/i18n/i18n\"\r\nimport {\r\n NoFullVarianceFieldsText,\r\n NoGroupVarianceFieldsText,\r\n RadioButtonLists,\r\n ReportGridModalSource,\r\n VarianceTypes,\r\n defaultIniValues,\r\n defaultReportFieldIniValues,\r\n fieldNames,\r\n singleFieldNames\r\n} from \"./Constants\"\r\nimport {\r\n ConfigVarianceCommonType,\r\n ConfigVarianceType,\r\n VarianceCommonType,\r\n VarianceType\r\n} from \"./Type\"\r\nimport { IconButton, Tooltip } from \"@mui/material\"\r\nimport editIcon from \"src/assets/images/Edit.png\"\r\nimport TrashIcon from \"src/assets/images/TrashIcon.svg\"\r\nimport { TableComponentNames } from \"src/constants/globalTableDragDrop\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { displaySpan } from \"../../FunctionHelper\"\r\nimport AlertConfirmationContent from \"../../Components/AlertConfirmationContent\"\r\n\r\nexport const a11Props = (index: number) => {\r\n return {\r\n id: `simple-tab-${index}`,\r\n \"aria-controls\": `simple-tabpanel-${index}`\r\n }\r\n}\r\n\r\nexport const getDefaultValues = (varianceRedux: VarianceType) => {\r\n if (varianceRedux && Object.keys(varianceRedux)?.length) return varianceRedux\r\n return defaultIniValues\r\n}\r\n\r\nexport const getReportFieldDefaultValues = (\r\n varianceRedux: VarianceType,\r\n storeId: number\r\n) => {\r\n if (varianceRedux && Object.keys(varianceRedux).length) {\r\n if (storeId > -1)\r\n return (\r\n varianceRedux[varianceRedux.CurrentTabVarianceType].ReportFields[\r\n storeId - 1\r\n ] || defaultReportFieldIniValues\r\n )\r\n }\r\n return defaultReportFieldIniValues\r\n}\r\n\r\nexport const getVarianceFormVariable = (selectedTab: string) => {\r\n let varianceForm = fieldNames.GroupVariance\r\n let gridComponent = TableComponentNames.groupVariances\r\n let gridNoDataText = NoGroupVarianceFieldsText\r\n if (selectedTab === VarianceTypes.FullVariance.name) {\r\n varianceForm = fieldNames.FullVariance\r\n gridComponent = TableComponentNames.fullVariances\r\n gridNoDataText = NoFullVarianceFieldsText\r\n }\r\n return { varianceForm, gridComponent, gridNoDataText }\r\n}\r\n\r\nexport const setFocusWhileChange = async (\r\n fieldName: string,\r\n setFocus: Function\r\n) => {\r\n await new Promise(resolve => setTimeout(resolve, 100))\r\n setFocus(fieldName)\r\n}\r\n\r\nexport const getRadioArr = (\r\n varianceForm,\r\n Threshold,\r\n CurrentTabVarianceType,\r\n IsBasedOnControlFile\r\n) => {\r\n let ThresholdSelects = JSON.parse(\r\n JSON.stringify(RadioButtonLists.ThresholdSelects)\r\n )\r\n if (\r\n CurrentTabVarianceType === VarianceTypes.FullVariance.name &&\r\n !IsBasedOnControlFile\r\n ) {\r\n delete ThresholdSelects?.VarianceControlFile\r\n }\r\n return [\r\n {\r\n key: \"Threshold\",\r\n name: varianceForm.Threshold.name,\r\n label: \"Threshold_Settings\",\r\n formControlLabels: RadioButtonLists.Thresholds,\r\n isShow: true,\r\n required: true\r\n },\r\n {\r\n key: \"QtyThreshold\",\r\n name: varianceForm.QtyThreshold.name,\r\n label: \"Qty_Threshold\",\r\n formControlLabels: ThresholdSelects,\r\n isShow: ![\"\", RadioButtonLists.Thresholds.Ext.value].includes(Threshold),\r\n isConstantShow: true,\r\n constantName: varianceForm.QtyConstant.name,\r\n constantShowValue: ThresholdSelects.Constant.value,\r\n constant: {\r\n name: varianceForm.QtyConstant.name,\r\n label: \"Field\",\r\n originalName: singleFieldNames.QtyConstant\r\n },\r\n required: true\r\n },\r\n {\r\n key: \"ExtThreshold\",\r\n name: varianceForm.ExtThreshold.name,\r\n label: \"Ext_Threshold\",\r\n formControlLabels: ThresholdSelects,\r\n isShow: ![\"\", RadioButtonLists.Thresholds.Qty.value].includes(Threshold),\r\n constantShowValue: ThresholdSelects.Constant.value,\r\n constant: {\r\n name: varianceForm.ExtConstant.name,\r\n label: \"Field\",\r\n originalName: singleFieldNames.ExtConstant\r\n },\r\n required: true\r\n }\r\n ]\r\n}\r\n\r\nconst getActionSpan = (\r\n props,\r\n t,\r\n IsNotEnableFeature,\r\n editField,\r\n deleteField,\r\n configTypeFromStore\r\n) => {\r\n return (\r\n \r\n \r\n editField(props.row)}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n deleteField(props.row)}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\nexport const getReportColumnData = (\r\n t,\r\n IsNotEnableFeature,\r\n editField,\r\n deleteField,\r\n configTypeFromStore\r\n) => {\r\n const commonColumnsData = {\r\n disableFilters: true,\r\n disableSortBy: true,\r\n headerClassName: \"temp_class\",\r\n Cell: props => {\r\n return displaySpan(props, \"-\")\r\n }\r\n }\r\n\r\n return [\r\n {\r\n ...commonColumnsData,\r\n Header: \"\",\r\n accessor: \"SortOrder\",\r\n setWidth: 2\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.Field),\r\n accessor: \"Field\", // accessor is the \"key\" in the data\r\n setWidth: 300\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.Name),\r\n accessor: \"Name\", // accessor is the \"key\" in the data\r\n setWidth: 600\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\", // accessor is the \"key\" in the data\r\n setWidth: 150,\r\n Cell: props => {\r\n return getActionSpan(\r\n props,\r\n t,\r\n IsNotEnableFeature,\r\n editField,\r\n deleteField,\r\n configTypeFromStore\r\n )\r\n }\r\n }\r\n ]\r\n}\r\n\r\nexport const setModalContent = ({\r\n preDeletedRow,\r\n modalOpenSource,\r\n ReportRemovedFields,\r\n t\r\n}) => {\r\n let content = \"\"\r\n if (modalOpenSource === ReportGridModalSource.delete) {\r\n content = `${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} ${preDeletedRow.Field}?`\r\n } else if (modalOpenSource === ReportGridModalSource.blindVariance) {\r\n content = `${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} \"${ReportRemovedFields.join(\", \")}\"?`\r\n }\r\n return \r\n}\r\n\r\nexport const getFormToConfigConversion = (\r\n data: VarianceType\r\n): { configData: ConfigVarianceType; vErrors: string[] } => {\r\n let vErrors: string[] = []\r\n const configData = {\r\n GroupVariance: getGroupAndFullVarianceConfig(data.GroupVariance),\r\n FullVariance: {\r\n ...getGroupAndFullVarianceConfig(data.FullVariance),\r\n ...{\r\n BasedOnControlFile: data.FullVariance?.IsBasedOnControlFile\r\n }\r\n }\r\n }\r\n return { configData, vErrors }\r\n}\r\n\r\nconst getGroupAndFullVarianceConfig = (\r\n data: VarianceCommonType\r\n): ConfigVarianceCommonType => {\r\n if (!data) {\r\n return {} as ConfigVarianceCommonType\r\n }\r\n return {\r\n Enabled: data.IsEnable,\r\n Name: data.VarianceName,\r\n Sort: data.Sort,\r\n BatchSizeEnabled: data.IsBatchSize,\r\n BatchSize: `${data.BatchSize}` || \"0\",\r\n BlindVariance: data.IsBlindVariance,\r\n RequiredForCloseout: data.IsRequiredForCloseout,\r\n RequireSoftClose: data.RequireSoftClose,\r\n ThresholdType: data.Threshold,\r\n ...(![\"\", RadioButtonLists.Thresholds.Ext.value].includes(\r\n data.Threshold\r\n ) && {\r\n QtyThreshold: data.QtyThreshold\r\n }),\r\n ...(![\"\", RadioButtonLists.Thresholds.Ext.value].includes(data.Threshold) &&\r\n RadioButtonLists.ThresholdSelects.Constant.value ===\r\n data.QtyThreshold && {\r\n QtyThresholdConstant: data.QtyConstant || 0\r\n }),\r\n ...(![\"\", RadioButtonLists.Thresholds.Qty.value].includes(\r\n data.Threshold\r\n ) && {\r\n ExtThreshold: data.ExtThreshold\r\n }),\r\n ...(![\"\", RadioButtonLists.Thresholds.Qty.value].includes(data.Threshold) &&\r\n RadioButtonLists.ThresholdSelects.Constant.value ===\r\n data.ExtThreshold && {\r\n ExtThresholdConstant: data.ExtConstant || 0\r\n }),\r\n Fields: data.ReportFields\r\n }\r\n}\r\n\r\nexport const getConfigToFormConversion = (\r\n data: ConfigVarianceType\r\n): { reduxData: VarianceType } => {\r\n let reduxData = {\r\n ...defaultIniValues,\r\n GroupVariance: {\r\n ...defaultIniValues.GroupVariance,\r\n ...getGroupAndFullVarianceForm(data.GroupVariance)\r\n },\r\n FullVariance: {\r\n ...defaultIniValues.FullVariance,\r\n ...getGroupAndFullVarianceForm(data.FullVariance),\r\n ...{\r\n ...(data.FullVariance.BasedOnControlFile !== undefined && {\r\n IsBasedOnControlFile: data.FullVariance.BasedOnControlFile\r\n })\r\n }\r\n }\r\n }\r\n return {\r\n reduxData\r\n }\r\n}\r\n\r\nconst getGroupAndFullVarianceForm = (\r\n data: ConfigVarianceCommonType\r\n): VarianceCommonType => {\r\n return {\r\n ...(data.Enabled !== undefined && {\r\n IsEnable: data.Enabled\r\n }),\r\n ...(data.Name !== undefined && {\r\n VarianceName: data.Name\r\n }),\r\n ...(data.Sort !== undefined && {\r\n Sort: data.Sort\r\n }),\r\n ...(data.BatchSizeEnabled !== undefined && {\r\n IsBatchSize: data.BatchSizeEnabled\r\n }),\r\n ...(data.BatchSize !== undefined && {\r\n BatchSize: Number(data.BatchSize || 0)\r\n }),\r\n ...(data.BlindVariance !== undefined && {\r\n IsBlindVariance: data.BlindVariance\r\n }),\r\n ...(data.RequiredForCloseout !== undefined && {\r\n IsRequiredForCloseout: data.RequiredForCloseout\r\n }),\r\n ...(data.RequireSoftClose !== undefined && {\r\n RequireSoftClose: data.RequireSoftClose\r\n }),\r\n ...(data.ThresholdType !== undefined && {\r\n Threshold: data.ThresholdType\r\n }),\r\n ...(data.QtyThreshold !== undefined && {\r\n QtyThreshold: data.QtyThreshold\r\n }),\r\n ...(data.QtyThresholdConstant !== undefined && {\r\n QtyConstant: data.QtyThresholdConstant\r\n }),\r\n ...(data.ExtThreshold !== undefined && {\r\n ExtThreshold: data.ExtThreshold\r\n }),\r\n ...(data.ExtThresholdConstant !== undefined && {\r\n ExtConstant: data.ExtThresholdConstant\r\n }),\r\n ...(data.Fields !== undefined && {\r\n ReportFields: data.Fields\r\n })\r\n } as VarianceCommonType\r\n}\r\n\r\nexport const getReportFieldBreadcrumbConfig = (varianceRedux, t, storeId) => {\r\n let variances = getTranslations(t, Translates.variances)\r\n let custLinks: any = {}\r\n custLinks[\"@variances\"] = \"configuration/variances\"\r\n let varianceType =\r\n varianceRedux.CurrentTabVarianceType === VarianceTypes.GroupVariance.name\r\n ? getTranslations(t, Translates.Group_Variance)\r\n : getTranslations(t, Translates.Full_Variance)\r\n let addField =\r\n storeId <= -1\r\n ? getTranslations(t, Translates.Add_Field)\r\n : getTranslations(t, Translates.Edit_Field)\r\n let currentPath: string = `##configuration##/@${variances}/${varianceType}/${addField}`\r\n let variables: any = {}\r\n variables[`@${variances}`] = getTranslations(t, Translates.Variances)\r\n variables[`${varianceType}`] =\r\n varianceRedux.CurrentTabVarianceType === VarianceTypes.GroupVariance.name\r\n ? getTranslations(t, Translates.Group_Variance)\r\n : getTranslations(t, Translates.Full_Variance)\r\n variables[`${addField}`] =\r\n storeId <= -1\r\n ? getTranslations(t, Translates.Add_Field)\r\n : getTranslations(t, Translates.Edit_Field)\r\n let bConfig: any = {\r\n custLinks,\r\n showHomeIcon: false,\r\n currentPath,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n}\r\n// To show Regions in location and schedule grid\r\nconst showRegions = (regionalGroupLabel, region) => {\r\n return (\r\n

\r\n {regionalGroupLabel}:\r\n {region ? region : \"-\"}\r\n

\r\n )\r\n}\r\n// To get the regional groups for location and schedule grid\r\nexport const getRegionalGroups = (\r\n regionalGroup1Label,\r\n regionalGroup2Label,\r\n regionalGroup3Label,\r\n regionalGroup4Label,\r\n originalRow\r\n) => {\r\n return (\r\n <>\r\n {regionalGroup1Label\r\n ? showRegions(regionalGroup1Label, originalRow?.region1)\r\n : null}\r\n {regionalGroup2Label\r\n ? showRegions(regionalGroup2Label, originalRow?.region2)\r\n : null}\r\n {regionalGroup3Label\r\n ? showRegions(regionalGroup3Label, originalRow?.region3)\r\n : null}\r\n {regionalGroup4Label\r\n ? showRegions(regionalGroup4Label, originalRow?.region4)\r\n : null}\r\n \r\n )\r\n}\r\n","import {\r\n Table,\r\n TableBody,\r\n TableCell,\r\n TableHead,\r\n TableRow,\r\n Tooltip,\r\n Typography\r\n} from \"@mui/material\"\r\nimport React from \"react\"\r\nimport ArrowDropUpIcon from \"@mui/icons-material/ArrowDropUp\"\r\nimport ArrowDropDownIcon from \"@mui/icons-material/ArrowDropDown\"\r\nimport InfoIcon from \"@mui/icons-material/Info\"\r\nimport shortid from \"shortid\"\r\n\r\nimport { useFilters, useGlobalFilter, useSortBy, useTable } from \"react-table\"\r\nimport { useAppThunkDispatch } from \"src/redux/store\"\r\nimport {\r\n setScheduleColumn,\r\n setScheduleSort\r\n} from \"src/redux/slices/scheduleSlice\"\r\nimport {\r\n setReservationColumn,\r\n setReservationSort\r\n} from \"src/redux/slices/reservationsSlice\"\r\nimport { setUsersColumn, setUsersSort } from \"src/redux/slices/usersSlice\"\r\nimport {\r\n setConfigurationColumn,\r\n setConfigurationSort\r\n} from \"src/redux/slices/configurationSlice\"\r\nimport { setReportColumn, setReportSort } from \"src/redux/slices/reportsSlice\"\r\nimport {\r\n setLocationColumn,\r\n setLocationSort\r\n} from \"src/redux/slices/settingsSlice\"\r\nimport { DESCENDING } from \"src/utils/constants\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { useTranslation } from \"react-i18next\"\r\n\r\nconst GlobalTable: React.FC = ({\r\n columns,\r\n data,\r\n noDataText = \"No Data Found\",\r\n initialStateProp = {\r\n sortBy: []\r\n }\r\n}) => {\r\n const sortTypes = {\r\n caseInsensitive: (rowA, rowB, columnId) => {\r\n const a = rowA.values[columnId]\r\n const b = rowB.values[columnId]\r\n\r\n // Check if both values are numbers\r\n if (!isNaN(a) && !isNaN(b)) {\r\n return a > b ? 1 : a < b ? -1 : 0\r\n }\r\n\r\n // If not numbers, convert to lowercase strings for case-insensitive sorting\r\n const aStr = a?.toString()?.toLowerCase()\r\n const bStr = b?.toString()?.toLowerCase()\r\n\r\n return aStr > bStr ? 1 : aStr < bStr ? -1 : 0\r\n }\r\n }\r\n // Use the state and functions returned from useTable to build your UI\r\n const {\r\n getTableProps,\r\n headerGroups,\r\n rows,\r\n prepareRow\r\n // setGlobalFilter\r\n } = useTable(\r\n {\r\n columns,\r\n data,\r\n defaultColumn: { sortType: \"caseInsensitive\" }, // Set the default sort type\r\n sortTypes,\r\n disableSortRemove: true,\r\n autoResetSortBy: false,\r\n autoResetFilters: false,\r\n initialState: {\r\n ...initialStateProp\r\n },\r\n columnType: \"\"\r\n },\r\n useFilters, // useFilters!\r\n useGlobalFilter, // useGlobalFilter!,\r\n useSortBy\r\n )\r\n const { t } = useTranslation()\r\n const dispatch = useAppThunkDispatch()\r\n // istanbul ignore next\r\n const checkSorting = (column: any) => {\r\n if (column.isSorted) {\r\n return column.isSortedDesc ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n )\r\n } else {\r\n return \"\"\r\n }\r\n }\r\n // istanbul ignore next\r\n const handleSortChange = column => {\r\n let sortOrder\r\n if (column.isSorted) {\r\n if (column.isSortedDesc) {\r\n sortOrder = DESCENDING.Asc\r\n } else {\r\n sortOrder = DESCENDING.Desc\r\n }\r\n } else {\r\n sortOrder = DESCENDING.Asc\r\n }\r\n if (column.columnType === \"schedule\") {\r\n dispatch(setScheduleColumn(column.id))\r\n dispatch(setScheduleSort(sortOrder))\r\n } else if (column.columnType === \"reservation\") {\r\n dispatch(setReservationColumn(column.id))\r\n dispatch(setReservationSort(sortOrder))\r\n } else if (column.columnType === \"users\") {\r\n dispatch(setUsersColumn(column.id))\r\n dispatch(setUsersSort(sortOrder))\r\n } else if (column.columnType === \"ftpConnection\") {\r\n dispatch(setConfigurationColumn(column.id))\r\n dispatch(setConfigurationSort(sortOrder))\r\n } else if (column.columnType === \"finalReports\") {\r\n dispatch(setReportColumn(column.id))\r\n dispatch(setReportSort(sortOrder))\r\n } else {\r\n dispatch(setLocationColumn(column.id))\r\n dispatch(setLocationSort(sortOrder))\r\n }\r\n }\r\n return (\r\n \r\n \r\n {headerGroups.map((headerGroup, hIndex) => (\r\n \r\n {headerGroup.headers.map((column: any, colIndex) => (\r\n handleSortChange(column)\r\n }\r\n >\r\n \r\n {column.render(\"Header\")}\r\n\r\n \r\n {checkSorting(column)}\r\n \r\n \r\n \r\n {column.canFilter ? column.render(\"Filter\") : null}\r\n \r\n \r\n ))}\r\n \r\n ))}\r\n \r\n \r\n {(!rows || rows.length == 0) && (\r\n // istanbul ignore next\r\n \r\n \r\n \r\n
\r\n {typeof noDataText === \"string\" ? (\r\n \r\n ) : null}\r\n \r\n {noDataText}\r\n
\r\n
\r\n
\r\n
\r\n )}\r\n\r\n {rows.map((row, _i) => {\r\n prepareRow(row)\r\n return (\r\n \r\n {row.cells.map(cell => {\r\n return (\r\n \r\n {cell.render(\"Cell\")}\r\n \r\n )\r\n })}\r\n \r\n )\r\n })}\r\n
\r\n
\r\n )\r\n}\r\nexport default GlobalTable\r\n","//BEGIN-NOSCAN\r\nimport { encrypt } from \"src/utils/helper\"\r\nimport ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\n\r\nexport class ConfigService {\r\n postConfiguration(payload) {\r\n const endPoint = \"api/ConfigControl/AddConfigurationDetails\"\r\n let configString = payload.configuration\r\n configString = encrypt(configString)\r\n payload.configuration = configString\r\n return api\r\n .post(endPoint, payload)\r\n .then(res => res)\r\n .catch(err => err)\r\n }\r\n\r\n updateConfiguration(params) {\r\n let payload = { ...params }\r\n const endPoint = \"api/ConfigControl/UpdateConfigurationData\"\r\n let configString = payload.configuration\r\n configString = encrypt(configString)\r\n payload.configuration = configString\r\n return api\r\n .put(endPoint, payload)\r\n .then(res => res)\r\n .catch(err => err)\r\n }\r\n\r\n getConfiguration(configId) {\r\n const endPoint = `api/ConfigControl/GetConfigurationDetailsById?configurationId=${configId}`\r\n return api.findAll(endPoint)\r\n }\r\n\r\n deleteConfiguration(configId, customerId) {\r\n const endPoint = `api/ConfigControl/DeleteConfigurationData?configurationId=${configId}&customerId=${customerId}`\r\n return api.post(endPoint, {})\r\n }\r\n\r\n configurationActions(params) {\r\n let payload = { ...params }\r\n const endPoint = `api/ConfigControl/ConfigurationActions`\r\n if (payload && payload.hasOwnProperty(\"configuration\")) {\r\n let configString = payload.configuration\r\n configString = encrypt(configString)\r\n payload.configuration = configString\r\n }\r\n return api\r\n .post(endPoint, payload)\r\n .then(res => {\r\n return res\r\n })\r\n .catch(err => {\r\n return err\r\n })\r\n }\r\n\r\n getConfigDetails(payload) {\r\n payload = [...(payload || [])].map(i => Number(i))\r\n const endPoint = `api/ConfigControl/GetConfigurationDetailsByCustomerId`\r\n return api.post(endPoint, payload)\r\n }\r\n\r\n getConnectionData(payload) {\r\n const endPoint = `api/Ftp/GetConnectionData`\r\n return api.post(endPoint, payload)\r\n }\r\n\r\n testAndSaveConnection(payload) {\r\n const endPoint = `api/Ftp/TestAndSaveConnection`\r\n return api\r\n .post(endPoint, payload)\r\n .then(res => res)\r\n .catch(err => err)\r\n }\r\n\r\n uploadProcedure(configId, payload) {\r\n const endPoint = `/api/ConfigControl/UploadProcedurePdf?configurationId=${configId}`\r\n return api.post(endPoint, payload)\r\n }\r\n\r\n viewProcedures(configId) {\r\n const endPoint = `/api/ConfigControl/ViewProcedurePdf?configurationId=${configId}`\r\n return api.findAll(endPoint)\r\n }\r\n deleteFtpConnection(idConfigFtpConnection) {\r\n const endPoint = `/api/Ftp/DeleteFtpDetailsById?idConfigFTPConnection=${idConfigFtpConnection}`\r\n return api.delete(endPoint, {})\r\n }\r\n getFtpDetailsById(idConfigFtpConnection) {\r\n const endPoint = `/api/Ftp/GetFtpDetailsById?idConfigFTPConnection=${idConfigFtpConnection}`\r\n return api.findAll(endPoint)\r\n }\r\n editFtpDetails(payload: any) {\r\n const endPoint = `/api/Ftp/UpdateFtpDetailsById`\r\n return api.put(endPoint, payload)\r\n }\r\n copyFtpConnection(idConfigFtpConnection, name) {\r\n const endPoint = `/api/Ftp/CopyFtpDetailsByIdAndName?idConfigFTPConnection=${idConfigFtpConnection}&name=${name}`\r\n return api.post(endPoint, {})\r\n }\r\n getCustomerDetails() {\r\n const endPoint = `/api/Customer/GetCustomerDetails`\r\n return api.findAll(endPoint)\r\n }\r\n getMultiEventsOutputs(payload: any) {\r\n const endPoint = `api/MultiStoreFileProcessing/GetListOfMultiEventOutputFiles`\r\n return api.post(endPoint, payload)\r\n }\r\n deleteMultiEventFileData(multiEventFileDetailId) {\r\n const endPoint = `api/MultiStoreFileProcessing/DeleteMultiEventFileDetailsData?multiEventFileDetailId=${multiEventFileDetailId}`\r\n return api.delete(endPoint, {})\r\n }\r\n copyMultiEventFileData(payload) {\r\n const endPoint = `/api/MultiStoreFileProcessing/CopyMultiEventDetails`\r\n return api.post(endPoint, payload)\r\n }\r\n getConfigHistoryDetails(configId) {\r\n const endPoint = `/api/ConfigHistory/GetConfigHistoryDetailsById?configId=${configId}`\r\n return api.findAll(endPoint)\r\n }\r\n}\r\n//END-NOSCAN\r\n","import {\r\n IConfigCountProgram,\r\n IFormCountProgram,\r\n Instruction\r\n} from \"src/utils/types/types\"\r\nimport {\r\n LookupConfigToEditor,\r\n LookupEditorToConfig\r\n} from \"../LookupRoutines/helpers\"\r\nimport { AllowedBarcodeTypes, defaultIniValues } from \"./Constant\"\r\nimport { fieldNames } from \"src/configurationPortal/pages/CountPrograms/Constant\"\r\nimport { getBreadcrumbConfig } from \"../helper\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport {\r\n getLocationList,\r\n getProductList\r\n} from \"./Component/TabFunctionsAndConstant\"\r\nimport { LocationsList, ProductsList } from \"../CountFields/Constants\"\r\nimport { AlertColor } from \"@mui/material\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\n//istanbul ignore next\r\nexport const formToReduxConversion = (\r\n form\r\n): { reduxData: IConfigCountProgram; cpErrors: string[] } => {\r\n const productList = getProductList()\r\n const locationList = getLocationList()\r\n let cpErrors: string[] = []\r\n let reduxData: IConfigCountProgram = {} as IConfigCountProgram\r\n if (cpErrors.length <= 0) {\r\n let LocationModeData = {}\r\n\r\n if (\r\n Array.isArray(form.LocationMode?.items) &&\r\n form.LocationMode.items.length\r\n ) {\r\n const BreakException = {}\r\n try {\r\n form.LocationMode.items.forEach((i, j) => {\r\n if (\r\n locationList[i.key] &&\r\n [...locationList.map(i => i.OjKey)].includes(\r\n locationList[i.key].OjKey\r\n )\r\n ) {\r\n let InstructionCheck = true\r\n if (\r\n [LocationsList.Location.OjKey].includes(\r\n locationList[i.key].OjKey\r\n ) &&\r\n i.StandardWisTag === fieldNames.StandardWisTag.value\r\n ) {\r\n InstructionCheck = false\r\n }\r\n if (\r\n [LocationsList.Location.OjKey].includes(\r\n locationList[i.key].OjKey\r\n ) &&\r\n i.StandardWisTag === fieldNames.StandardWisTag.value &&\r\n !i.AllowedBarcodeTypes0 &&\r\n !i.AllowedBarcodeTypes1\r\n ) {\r\n cpErrors.push(\r\n `Location Standard WIS Tag is enabled so either \"${AllowedBarcodeTypes[0]}\" or \"${AllowedBarcodeTypes[1]}\" should be selected!`\r\n )\r\n throw BreakException\r\n } else if (\r\n InstructionCheck &&\r\n !i.SetupInstructions?.length &&\r\n [LocationsList.Location.OjKey].includes(locationList[i.key].OjKey)\r\n ) {\r\n cpErrors.push(\r\n `Location Capture \"${\r\n locationList[i.key].OjKey\r\n }\" setup instruction required!`\r\n )\r\n throw BreakException\r\n } else if (\r\n i.ValidationInstructions?.length ||\r\n i.LookupInstructions?.length ||\r\n i.SetupInstructions?.length ||\r\n i?.InsertRules?.SetupInstructions?.length ||\r\n i?.InsertRules?.ValidationInstructions?.length ||\r\n i?.InsertRules?.LookupInstructions?.length ||\r\n !InstructionCheck\r\n ) {\r\n if (InstructionCheck && !i.SetupInstructions?.length) {\r\n cpErrors.push(\r\n `Location Capture \"${\r\n locationList[i.key].OjKey\r\n }\" setup instruction required!`\r\n )\r\n throw BreakException\r\n } else if (\r\n InstructionCheck &&\r\n i.IsSeparateInsertRule &&\r\n !i?.InsertRules?.SetupInstructions?.length\r\n ) {\r\n cpErrors.push(\r\n `Location Capture \"${\r\n locationList[i.key].OjKey\r\n }\" insert rule setup instruction required!`\r\n )\r\n throw BreakException\r\n } else {\r\n let allInstructions = getAllInstructionsForSingleField(i)\r\n\r\n let _IsAlpha = i.IsAlpha\r\n let _Allowed = [\r\n i.AllowedBarcodeTypes0 && AllowedBarcodeTypes[0],\r\n i.AllowedBarcodeTypes1 && AllowedBarcodeTypes[1]\r\n ]\r\n if (i.StandardWisTag === fieldNames.StandardWisTag.value) {\r\n _IsAlpha = false\r\n } else if (\r\n i.StandardWisTag === fieldNames.CustomLocation.value\r\n ) {\r\n _Allowed = []\r\n } else {\r\n _IsAlpha = i.IsAlpha\r\n }\r\n let locLocationData = {\r\n [locationList[i.key].OjKey]: {\r\n ...allInstructions,\r\n ...([LocationsList.Location.OjKey].includes(\r\n locationList[i.key].OjKey\r\n ) && {\r\n StandardWisTag:\r\n i.StandardWisTag === fieldNames.StandardWisTag.value,\r\n CustomLocation:\r\n i.StandardWisTag === fieldNames.CustomLocation.value,\r\n IsAlpha: _IsAlpha,\r\n AllowedBarcodeTypes: _Allowed\r\n })\r\n }\r\n }\r\n LocationModeData = {\r\n ...LocationModeData,\r\n ...locLocationData\r\n }\r\n }\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (e !== BreakException) throw e\r\n }\r\n }\r\n\r\n let ProductModeData = {}\r\n let AncillaryData = {}\r\n let QtyInfo = {\r\n index: -1,\r\n label: \"\",\r\n exist: false\r\n }\r\n if (form.ProductMode?.Enabled) {\r\n ProductModeData = {\r\n ...ProductModeData,\r\n ...{ CountType: form.ProductMode.CountType }\r\n }\r\n if (form.ProductMode.items && form.ProductMode.items.length) {\r\n const BreakException = {}\r\n try {\r\n form.ProductMode.items.forEach((i, j) => {\r\n if ([ProductsList.Qty.OjKey].includes(productList[i.key].OjKey)) {\r\n QtyInfo = {\r\n ...QtyInfo,\r\n ...{ index: j, label: productList[i.key].OjKey }\r\n }\r\n }\r\n if (j === 0 && !i.SetupInstructions?.length) {\r\n cpErrors.push(\r\n `Product count mode \"${\r\n productList[i.key].OjKey\r\n }\" setup instruction required!`\r\n )\r\n throw BreakException\r\n } else if (\r\n i.ValidationInstructions?.length ||\r\n i.LookupInstructions?.length ||\r\n i.SetupInstructions?.length ||\r\n i?.InsertRules?.SetupInstructions?.length ||\r\n i?.InsertRules?.ValidationInstructions?.length ||\r\n i?.InsertRules?.LookupInstructions?.length\r\n ) {\r\n if (!i.SetupInstructions?.length) {\r\n cpErrors.push(\r\n `Product count mode \"${\r\n productList[i.key].OjKey\r\n }\" setup instruction required!`\r\n )\r\n throw BreakException\r\n } else if (\r\n i.IsSeparateInsertRule &&\r\n !i?.InsertRules?.SetupInstructions?.length\r\n ) {\r\n cpErrors.push(\r\n `Product count mode \"${\r\n productList[i.key].OjKey\r\n }\" insert rule setup instruction required!`\r\n )\r\n throw BreakException\r\n } else {\r\n let allInstructions = getAllInstructionsForSingleField(i)\r\n if (\r\n [\r\n ProductsList.ProductCaptured.OjKey,\r\n ProductsList.Qty.OjKey\r\n ].includes(productList[i.key].OjKey)\r\n ) {\r\n if (\r\n [ProductsList.Qty.OjKey].includes(productList[i.key].OjKey)\r\n ) {\r\n QtyInfo = {\r\n ...QtyInfo,\r\n ...{ exist: true }\r\n }\r\n }\r\n ProductModeData = {\r\n ...ProductModeData,\r\n ...{\r\n [productList[i.key].OjKey]: allInstructions\r\n }\r\n }\r\n } else {\r\n AncillaryData = {\r\n ...AncillaryData,\r\n ...{\r\n [productList[i.key].OjKey]: allInstructions\r\n }\r\n }\r\n }\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (e !== BreakException) throw e\r\n }\r\n }\r\n }\r\n\r\n if (Object.keys(AncillaryData).length) {\r\n ProductModeData[productList[0].OjKey] = {\r\n ...ProductModeData[productList[0].OjKey],\r\n ...{ AncillaryData }\r\n }\r\n }\r\n\r\n if (cpErrors.length <= 0) {\r\n reduxData = {\r\n ...LocationModeData,\r\n ...{\r\n Name: [{ \"en-us\": form.Name }],\r\n ProductMode: {\r\n ...ProductModeData,\r\n ...{ Enabled: form.ProductMode?.Enabled }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return { reduxData, cpErrors }\r\n}\r\n//istanbul ignore next\r\nconst getAllInstructionsForSingleField = i => {\r\n let allInstructions = {\r\n ...(i.SetupInstructions &&\r\n i.SetupInstructions.length && {\r\n SetupInstructions: LookupEditorToConfig(i.SetupInstructions ?? [])\r\n }),\r\n ...(i.ValidationInstructions &&\r\n i.ValidationInstructions.length && {\r\n ValidationInstructions: LookupEditorToConfig(\r\n i.ValidationInstructions ?? []\r\n )\r\n }),\r\n ...(i.LookupInstructions &&\r\n i.LookupInstructions.length && {\r\n LookupInstructions: LookupEditorToConfig(i.LookupInstructions ?? [])\r\n }),\r\n IsSeparateInsertRule: i.IsSeparateInsertRule\r\n }\r\n\r\n if (i.IsSeparateInsertRule) {\r\n allInstructions = {\r\n ...allInstructions,\r\n ...{\r\n InsertRules: {\r\n SetupInstructions: LookupEditorToConfig(\r\n i?.InsertRules?.SetupInstructions ?? []\r\n ),\r\n ...(i?.InsertRules?.ValidationInstructions &&\r\n i.InsertRules.ValidationInstructions.length && {\r\n ValidationInstructions: LookupEditorToConfig(\r\n i?.InsertRules?.ValidationInstructions ?? []\r\n )\r\n }),\r\n ...(i?.InsertRules?.LookupInstructions &&\r\n i.InsertRules.LookupInstructions.length && {\r\n LookupInstructions: LookupEditorToConfig(\r\n i?.InsertRules?.LookupInstructions ?? []\r\n )\r\n })\r\n }\r\n }\r\n }\r\n }\r\n\r\n return allInstructions\r\n}\r\n//istanbul ignore next\r\nconst getStdWisTag = (data: any) => {\r\n let StdWisTagValue = \"\"\r\n if (data.StandardWisTag) {\r\n StdWisTagValue = fieldNames.StandardWisTag.value\r\n } else if (data.CustomLocation) {\r\n StdWisTagValue = fieldNames.CustomLocation.value\r\n } else {\r\n return StdWisTagValue\r\n }\r\n return StdWisTagValue\r\n}\r\n//istanbul ignore next\r\nexport const reduxToFormConversion = (\r\n data: IConfigCountProgram\r\n): IFormCountProgram => {\r\n let productList = getProductList()\r\n let locationList = getLocationList()\r\n\r\n let items1: IFormCountProgram[\"LocationMode\"][\"items\"] = []\r\n\r\n if (Object.keys(data).length) {\r\n locationList.forEach((i, j) => {\r\n if (data[i.OjKey]) {\r\n let locLocationData = fieldOj(j, data[i.OjKey])\r\n\r\n if ([LocationsList.Location.OjKey].includes(i.OjKey)) {\r\n const StdWisTagValue = getStdWisTag(data[i.OjKey])\r\n\r\n locLocationData = {\r\n ...locLocationData,\r\n ...{\r\n StandardWisTag: StdWisTagValue,\r\n IsAlpha: data[i.OjKey].IsAlpha,\r\n AllowedBarcodeTypes0: data[i.OjKey].AllowedBarcodeTypes.includes(\r\n AllowedBarcodeTypes[0]\r\n ),\r\n AllowedBarcodeTypes1: data[i.OjKey].AllowedBarcodeTypes.includes(\r\n AllowedBarcodeTypes[1]\r\n )\r\n }\r\n }\r\n }\r\n items1 = [...items1, locLocationData]\r\n }\r\n })\r\n }\r\n\r\n let items: IFormCountProgram[\"ProductMode\"][\"items\"] = []\r\n let ProductModeData: IFormCountProgram[\"ProductMode\"] = {\r\n Enabled: data.ProductMode?.Enabled,\r\n items: items\r\n }\r\n let defVales = defaultIniValues.ProductMode.items[0]\r\n if (data.ProductMode?.Enabled && Object.keys(data.ProductMode).length > 1) {\r\n productList.forEach((i, j) => {\r\n if (\r\n data.ProductMode[i.OjKey] &&\r\n data.ProductMode[i.OjKey] !== undefined &&\r\n typeof data.ProductMode[i.OjKey] === \"object\"\r\n ) {\r\n items = [...items, fieldOj(j, data.ProductMode[i.OjKey])]\r\n } else if (\r\n data.ProductMode[productList[0].OjKey]?.AncillaryData &&\r\n data.ProductMode[productList[0].OjKey].AncillaryData[i.OjKey] &&\r\n data.ProductMode[productList[0].OjKey].AncillaryData[i.OjKey] !==\r\n undefined &&\r\n typeof data.ProductMode[productList[0].OjKey]?.AncillaryData[\r\n i.OjKey\r\n ] === \"object\"\r\n ) {\r\n items = [\r\n ...items,\r\n fieldOj(\r\n j,\r\n data.ProductMode[productList[0].OjKey]?.AncillaryData[i.OjKey]\r\n )\r\n ]\r\n } else {\r\n items = [\r\n ...items,\r\n {\r\n ...defVales,\r\n key: j\r\n }\r\n ]\r\n }\r\n })\r\n\r\n ProductModeData = {\r\n ...ProductModeData,\r\n ...{\r\n CountType: data.ProductMode.CountType\r\n }\r\n }\r\n } else {\r\n items = [\r\n ...items,\r\n {\r\n ...defVales,\r\n key: 0\r\n }\r\n ]\r\n }\r\n\r\n ProductModeData = {\r\n ...ProductModeData,\r\n ...{\r\n items: items\r\n }\r\n }\r\n\r\n const formData: IFormCountProgram = {\r\n LocationMode: { items: items1 },\r\n Name: data.Name[0][\"en-us\"],\r\n ProductMode: ProductModeData,\r\n ParentTabIndex: 0,\r\n ChildTabIndex: 0\r\n }\r\n return formData\r\n}\r\n//istanbul ignore next\r\nconst fieldOj = (\r\n j: number,\r\n data: {\r\n IsSeparateInsertRule: boolean\r\n InsertRules: Instruction\r\n } & Instruction\r\n) => {\r\n return {\r\n key: j,\r\n IsSeparateInsertRule: data.IsSeparateInsertRule,\r\n IsAlpha: false,\r\n SetupInstructions: LookupConfigToEditor(data.SetupInstructions),\r\n ValidationInstructions: LookupConfigToEditor(data.ValidationInstructions),\r\n LookupInstructions: LookupConfigToEditor(data.LookupInstructions),\r\n InsertRules: {\r\n SetupInstructions: LookupConfigToEditor(\r\n data?.InsertRules?.SetupInstructions\r\n ),\r\n ValidationInstructions: LookupConfigToEditor(\r\n data?.InsertRules?.ValidationInstructions\r\n ),\r\n LookupInstructions: LookupConfigToEditor(\r\n data?.InsertRules?.LookupInstructions\r\n )\r\n }\r\n }\r\n}\r\n//istanbul ignore next\r\nexport const getDefaultValues = newCountProgram => {\r\n if (Object.keys(newCountProgram)?.length) return newCountProgram\r\n return defaultIniValues\r\n}\r\n//istanbul ignore next\r\nexport const getBreadcrumbPath = (storeId: number, t, nextPage = false) => {\r\n let componentName =\r\n storeId !== -1\r\n ? getTranslations(t, Translates.Edit_count_program)\r\n : getTranslations(t, Translates.Create_count_program)\r\n const { bConfig } = getBreadcrumbConfig({\r\n landingName: getTranslations(t, Translates.Count_programs),\r\n landingPath: PATH.COUNT_PROGRAMS.slice(1),\r\n componentName: componentName,\r\n nextPage: nextPage,\r\n storeId: storeId,\r\n createPath: PATH.CREATE_COUNT_PROGRAMS,\r\n editPath: PATH.EDIT_COUNT_PROGRAMS\r\n })\r\n return { componentName, bConfig }\r\n}\r\n//istanbul ignore next\r\nexport const getToCopy = async (clickBoardName, instructions) => {\r\n let isCopied: boolean = false\r\n let locAlertProps = {\r\n title: \"Success\",\r\n severity: \"success\" as AlertColor,\r\n content: \"Copied instructions successfully!\"\r\n }\r\n if (instructions?.length) {\r\n try {\r\n await navigator.clipboard\r\n .writeText(\r\n JSON.stringify({\r\n sourceFrom: clickBoardName,\r\n copiedItem: LookupEditorToConfig(instructions)\r\n })\r\n )\r\n .then(\r\n () => {\r\n /* clipboard successfully set */\r\n isCopied = true\r\n },\r\n () => {\r\n /* clipboard write failed */\r\n }\r\n )\r\n } catch (err) {\r\n console.error(\"Failed to copy: \", err)\r\n }\r\n }\r\n\r\n return { isCopied, locAlertProps }\r\n}\r\n//istanbul ignore next\r\nexport const handleToPaste = async (\r\n clickBoardName,\r\n previousInstructions,\r\n instructionsName\r\n) => {\r\n let isPasted: boolean = false\r\n let isNonEmptyArray: boolean = false\r\n let isAlertShow: boolean = false\r\n let isValueSet: boolean = false\r\n let instructions: any = []\r\n let locAlertProps = {\r\n title: \"Error\",\r\n severity: \"error\" as AlertColor,\r\n content: \"Please copy the instruction before trying to paste!\"\r\n }\r\n let locPasteInfo = {\r\n name: \"\",\r\n instructions: []\r\n }\r\n const text = await navigator.clipboard.readText()\r\n if (\r\n typeof text === \"string\" &&\r\n text.includes(\"sourceFrom\") &&\r\n text.includes(\"copiedItem\")\r\n ) {\r\n const copiedItem = JSON.parse(text)\r\n\r\n if (copiedItem?.sourceFrom === clickBoardName) {\r\n isPasted = true\r\n instructions = LookupConfigToEditor(copiedItem.copiedItem)\r\n if (!previousInstructions?.length) {\r\n locAlertProps = {\r\n title: \"Success\",\r\n severity: \"success\" as AlertColor,\r\n content: \"Pasted instructions successfully!\"\r\n }\r\n isAlertShow = true\r\n isValueSet = true\r\n } else {\r\n locPasteInfo = {\r\n name: instructionsName,\r\n instructions: instructions\r\n }\r\n isNonEmptyArray = true\r\n }\r\n } else {\r\n locAlertProps = {\r\n title: \"Error\",\r\n severity: \"error\" as AlertColor,\r\n content: \"Invalid instructions!\"\r\n }\r\n isAlertShow = true\r\n }\r\n } else {\r\n isAlertShow = true\r\n }\r\n\r\n return {\r\n isPasted,\r\n locAlertProps,\r\n instructions,\r\n isNonEmptyArray,\r\n locPasteInfo,\r\n isAlertShow,\r\n isValueSet\r\n }\r\n}\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport {\r\n Checkbox,\r\n FormGroup,\r\n FormControlLabel,\r\n FormHelperText\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getFieldError } from \"./Helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nexport interface Props {\r\n inputAttributes: {\r\n name: string\r\n label: string\r\n id?: string\r\n required?: boolean\r\n value?: string | number | boolean\r\n defaultValue?: string | number | boolean\r\n className?: string\r\n onChange?: Function\r\n formGroupClassName?: string\r\n disabled?: boolean\r\n disableRipple?: boolean\r\n }\r\n}\r\n\r\nconst MUICheckbox = ({ inputAttributes }: Props) => {\r\n const { t } = useTranslation()\r\n const {\r\n name,\r\n label,\r\n className,\r\n id,\r\n required,\r\n value,\r\n defaultValue,\r\n onChange,\r\n formGroupClassName,\r\n disabled,\r\n disableRipple\r\n } = inputAttributes\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n const defVal = defaultValue ? true : false\r\n\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n return (\r\n <>\r\n (\r\n \r\n
\r\n {\r\n field.onChange(e)\r\n updateWarnOnTabChangeToStore(true)\r\n if (onChange) onChange()\r\n }}\r\n disableRipple={disableRipple ? true : false}\r\n disabled={disabled}\r\n value={value}\r\n checked={field.value ? true : false}\r\n id={id ?? name}\r\n required={required ?? false}\r\n className={`custom-check ${className}`}\r\n checkedIcon={}\r\n />\r\n }\r\n label={`${getTranslations(t, label)} ${required ? \"*\" : \"\"}`}\r\n />\r\n
\r\n \r\n {ErrorText}\r\n \r\n \r\n )}\r\n />\r\n \r\n )\r\n}\r\n\r\nexport default MUICheckbox\r\n","import { currencies } from \"src/configurationPortal/pages/GeneralSettings\"\r\nimport { DEFAULT_RADIX } from \"src/utils/constants\"\r\nimport { ConfigurationStoreType } from \"src/utils/types/types\"\r\n\r\nexport const Tab = {\r\n GSTab: \"GSTab\",\r\n LocationCategoriesTab: \"LocationCategoriesTab\",\r\n LocationReportingsTab: \"LocationReportingsTab\",\r\n CountFieldsTab: \"CountFieldsTab\",\r\n LookupRoutinesTab: \"LookupRoutinesTab\",\r\n VariancesTab: \"VariancesTab\",\r\n OutputFiles: \"OutputFilesTab\",\r\n AuditsTab: \"AuditsTab\",\r\n CountProgramsTab: \"CountProgramsTab\",\r\n InputFilesTab: \"InputFilesTab\"\r\n}\r\n\r\nexport const ConfigurationStoreTypeKeys = {\r\n GeneralSettings: \"GeneralSettings\",\r\n Audits: \"Audits\",\r\n CountPrograms: \"CountPrograms\",\r\n Fields: \"Fields\",\r\n FullStoreVariances: \"FullStoreVariances\",\r\n GroupedVariances: \"GroupedVariances\",\r\n InputFiles: \"InputFiles\",\r\n LocationCategories: \"LocationCategories\",\r\n LookupRoutines: \"LookupRoutines\",\r\n OutputFile: \"OutputFile\",\r\n Reports: \"Reports\",\r\n configuration: \"configuration\"\r\n}\r\n\r\nexport const ConfigSkipSections = [\r\n ConfigurationStoreTypeKeys.InputFiles,\r\n ConfigurationStoreTypeKeys.LookupRoutines,\r\n ConfigurationStoreTypeKeys.Audits,\r\n ConfigurationStoreTypeKeys.Reports,\r\n ConfigurationStoreTypeKeys.OutputFile,\r\n ConfigurationStoreTypeKeys.Fields,\r\n \"Outputs\",\r\n \"OutputBundles\",\r\n \"FilesRequired\",\r\n]\r\n\r\nexport const ConfigurationStoreInitiate: ConfigurationStoreType = {\r\n GeneralSettings: {},\r\n Audits: [],\r\n CountPrograms: [],\r\n Fields: {},\r\n FullStoreVariances: { Enabled: false },\r\n GroupedVariances: { Enabled: false },\r\n InputFiles: [],\r\n FilesRequired: {\r\n DepartmentFileNotRequired: false,\r\n ProductFileNotRequired: false\r\n },\r\n LocationCategories: [],\r\n LookupRoutines: [],\r\n Outputs: [],\r\n OutputBundles: [],\r\n Reports: [],\r\n Efficiency: [],\r\n Accuracy: []\r\n}\r\n\r\nexport const configPayload = (customerId, customerName, configName) => {\r\n let generalSettings: any = {\r\n CustomerID: customerId,\r\n CustomerName: customerName,\r\n ConfigurationId: 0,\r\n ConfigurationName: configName,\r\n ConfigurationVersion: \"1.0\",\r\n Currencies: currencies[0].label,\r\n Notes: \"\",\r\n SupportedLanguages: []\r\n }\r\n let Accuracy = {\r\n IncludeTagAudits: false\r\n }\r\n let InputFiles = {\r\n DepartmentFileNotRequired: false,\r\n ProductFileNotRequired: false\r\n }\r\n\r\n const locConfig: ConfigurationStoreType = {\r\n ...ConfigurationStoreInitiate,\r\n ...{ GeneralSettings: generalSettings },\r\n ...{ Accuracy },\r\n ...{ FilesRequired: InputFiles }\r\n }\r\n\r\n const payload: any = {\r\n createdDate: new Date(),\r\n lastUpdatedDate: new Date(),\r\n idConfig: 0,\r\n idCustomer: parseInt(customerId, DEFAULT_RADIX),\r\n type: \"\",\r\n name: configName,\r\n status: 3,\r\n supportedLanguages: \"\",\r\n version: \"1.0\",\r\n configuration: JSON.stringify(locConfig),\r\n actionType: \"\",\r\n parentConfigId: 0,\r\n isDefault: false\r\n }\r\n\r\n return payload\r\n}\r\n","import ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\n\r\nexport class CustomerService {\r\n getCustomers() {\r\n const endPoint = `/api/customer`\r\n return api.findAll(endPoint)\r\n }\r\n getAccountsByEmail(email: string) {\r\n const endPoint: string = `api/User/GetSelectedAccountsByEmail?userEmail=${email}`\r\n return api.findAll(endPoint)\r\n }\r\n}\r\n","import { createAsyncThunk, createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport { CustomerService } from \"src/service/customer.service\"\r\n\r\nexport interface UsersState {\r\n status: string\r\n userFilters: any\r\n userPrevFilters: any\r\n validUserColumnList: string[]\r\n csvUserColumnList: string[]\r\n userMappingData: any\r\n userFileData: any\r\n userFilePath: string\r\n userAccounts: any[]\r\n usersData: any\r\n usersSort: any\r\n usersColumn: any\r\n}\r\n\r\nconst initialState: UsersState = {\r\n status: \"\",\r\n userFilters: {\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: [],\r\n phone: \"\",\r\n sPhone: \"\",\r\n email: \"\",\r\n status: false\r\n },\r\n userPrevFilters: {\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: [],\r\n phone: \"\",\r\n sPhone: \"\",\r\n email: \"\",\r\n status: false\r\n },\r\n validUserColumnList: [\r\n \"First Name\",\r\n \"Last Name\",\r\n \"Region 1\",\r\n \"Region 2\",\r\n \"Region 3\",\r\n \"Region 4\",\r\n \"User Type\",\r\n \"Primary Phone\",\r\n \"Secondary Phone\",\r\n \"Email\"\r\n ],\r\n csvUserColumnList: [],\r\n userMappingData: {},\r\n userFileData: \"\",\r\n userFilePath: \"\",\r\n userAccounts: [],\r\n usersData: [],\r\n usersSort: \"\",\r\n usersColumn: \"\"\r\n}\r\nconst customerService = new CustomerService()\r\nexport const getUserAccounts = createAsyncThunk(\r\n \"users/accounts\",\r\n async (userEmail: any) => {\r\n return customerService.getAccountsByEmail(userEmail)\r\n }\r\n)\r\nexport const usersSlice = createSlice({\r\n name: \"usersList\",\r\n initialState,\r\n reducers: {\r\n setUserFilters: (state, _action: PayloadAction) => {\r\n state.userFilters = { ...state.userFilters, ..._action.payload }\r\n },\r\n setUserPrevFilters: (state, _action: PayloadAction) => {\r\n state.userPrevFilters = { ...state.userPrevFilters, ..._action.payload }\r\n },\r\n setCSVUserColumnList: (state, _action: PayloadAction) => {\r\n state.csvUserColumnList = [..._action.payload]\r\n },\r\n setUserMappingData: (state, _action: PayloadAction) => {\r\n state.userMappingData = { ..._action.payload }\r\n },\r\n setUserFileData: (state, _action: PayloadAction) => {\r\n state.userFileData = _action.payload\r\n },\r\n setUserFilePath: (state, _action: PayloadAction) => {\r\n state.userFilePath = _action.payload\r\n },\r\n setUsersData: (state, _action: PayloadAction) => {\r\n state.usersData = [..._action.payload]\r\n },\r\n setUsersColumn: (state, _action: PayloadAction) => {\r\n state.usersColumn = _action.payload\r\n },\r\n setUsersSort: (state, _action: PayloadAction) => {\r\n state.usersSort = _action.payload\r\n },\r\n setUserReset: () => initialState\r\n },\r\n extraReducers: builder => {\r\n builder.addCase(getUserAccounts.pending, state => {\r\n state.status = \"loading\"\r\n })\r\n //istanbul ignore next\r\n builder.addCase(getUserAccounts.fulfilled, (state, { payload }) => {\r\n state.status = \"success\"\r\n state.userAccounts = payload.data\r\n })\r\n builder.addCase(getUserAccounts.rejected, state => {\r\n state.status = \"failed\"\r\n })\r\n }\r\n})\r\nexport const {\r\n setUserFilters,\r\n setUserPrevFilters,\r\n setCSVUserColumnList,\r\n setUserMappingData,\r\n setUserFileData,\r\n setUserFilePath,\r\n setUsersData,\r\n setUserReset,\r\n setUsersColumn,\r\n setUsersSort\r\n} = usersSlice.actions\r\nexport default usersSlice.reducer\r\n","import { updateWarnOnTabChange } from \"src/redux/slices/configSlice\"\r\nimport { store } from \"src/redux/store\"\r\nimport { replaceAllMultiple } from \"src/utils/helper\"\r\n\r\nexport const getBreadcrumbConfig = ({\r\n landingName,\r\n landingPath,\r\n componentName,\r\n nextPage = false,\r\n storeId = -1,\r\n createPath = \"\",\r\n editPath = \"\",\r\n showHomeIcon = false\r\n}: {\r\n landingName: string\r\n landingPath: string\r\n componentName: string\r\n nextPage?: boolean\r\n storeId?: number\r\n createPath?: string\r\n editPath?: string\r\n showHomeIcon?: boolean\r\n}) => {\r\n let landingPage = \"landingPage\"\r\n let custLinks: any = {}\r\n custLinks[`@${landingPage}`] = landingPath\r\n let currentPath: string = `##configuration##/@${landingPage}/${componentName}`\r\n let variables: any = {}\r\n variables[`@${landingPage}`] = landingName\r\n variables[`${componentName}`] = componentName\r\n\r\n let bConfig = {\r\n custLinks,\r\n showHomeIcon: showHomeIcon,\r\n currentPath,\r\n mapObj: variables\r\n }\r\n\r\n if (nextPage) {\r\n const componentNameVariable = `@${replaceAllMultiple(\r\n componentName,\r\n [\" \"],\r\n [\"\"]\r\n )}`\r\n bConfig.currentPath = bConfig.currentPath.replace(\r\n `${componentName}`,\r\n `${componentNameVariable}`\r\n )\r\n let componentPath =\r\n storeId !== -1 ? editPath.replace(\":id\", `${storeId}`) : createPath\r\n bConfig.custLinks = {\r\n ...bConfig.custLinks,\r\n ...{ [componentNameVariable]: componentPath.slice(1) }\r\n }\r\n delete bConfig.mapObj[`${componentName}`]\r\n bConfig.mapObj = {\r\n ...bConfig.mapObj,\r\n ...{ [componentNameVariable]: componentName }\r\n }\r\n bConfig.showHomeIcon = false\r\n }\r\n\r\n return {\r\n componentName,\r\n bConfig\r\n }\r\n}\r\n\r\nexport const firstLetterUpperCase = (str: string) => {\r\n return str.charAt(0).toUpperCase() + str.slice(1)\r\n}\r\n\r\nexport const handleAutoCompleteDataSourceChange = (\r\n values,\r\n dataSource,\r\n result,\r\n setDataSource\r\n) => {\r\n updateWarnOnTabChangeToStore(true)\r\n const value = values\r\n if (value[value.length - 1] === \"All\") {\r\n setDataSource(dataSource.length === result.length ? [] : result)\r\n return\r\n }\r\n setDataSource(value)\r\n}\r\n\r\nexport const updateWarnOnTabChangeToStore = (\r\n val: boolean,\r\n override = false\r\n) => {\r\n const location = window.location\r\n if (override || location.pathname.includes(\"/configuration\"))\r\n store.dispatch(updateWarnOnTabChange(val))\r\n}\r\n\r\nconst promptTypeList = { DECIMAL: \"DECIMAL\", NUMERIC: \"NUMERIC\" }\r\n\r\nconst replaceWithSQLWithPromptDefault = (locSql, promptsDataObj) => {\r\n const isPromptTypeMatch = type =>\r\n [\r\n promptTypeList.DECIMAL.toLowerCase(),\r\n promptTypeList.NUMERIC.toLowerCase()\r\n ].includes(type?.toLowerCase())\r\n\r\n const processPrompt = prompt => {\r\n const isNumber = isPromptTypeMatch(prompt?.Type)\r\n const variableName = `@${prompt?.VariableName}`\r\n\r\n while (locSql.split(\" \").includes(variableName)) {\r\n locSql = locSql.replace(\r\n variableName,\r\n isNumber\r\n ? prompt?.DefaultValue\r\n : `'${prompt?.DefaultValue?.toString()}'`\r\n )\r\n }\r\n }\r\n\r\n if (Array.isArray(promptsDataObj) && promptsDataObj.length) {\r\n promptsDataObj.forEach(processPrompt)\r\n }\r\n\r\n return locSql\r\n}\r\nexport const makeClearQueryToExecute = (\r\n sql: string,\r\n promptsDataObj,\r\n isPromptReplace = true\r\n) => {\r\n let locSql = sql\r\n locSql = replaceAllMultiple(\r\n locSql,\r\n [\r\n \"\\n\",\r\n \"\\r\",\r\n \"\\t\",\r\n \"\\\\n\",\r\n \"\\\\r\",\r\n \"\\\\t\",\r\n \"\\n \\r\",\r\n \"\\\\n \\\\r\",\r\n \">\",\r\n \"<\",\r\n \"=\",\r\n \"> =\",\r\n \"< =\"\r\n ],\r\n [\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \", \" > \", \" < \", \" = \", \">=\", \"<=\"]\r\n )\r\n locSql = locSql.replace(/(?:\\r\\n|\\r|\\n)/g, \" \")\r\n locSql = locSql.replace(/[\\r\\n\\t]/g, \" \")\r\n locSql = locSql.replace(/@(\\w+)/g, \" @$1 \")\r\n if (isPromptReplace) {\r\n locSql = replaceWithSQLWithPromptDefault(locSql, promptsDataObj)\r\n }\r\n\r\n locSql = locSql.trim()\r\n return locSql\r\n}\r\n\r\nexport const ConfigTabNames = {\r\n GeneralSettings: \"GeneralSettings\",\r\n InputFiles: \"InputFiles\",\r\n Categories: \"Categories\",\r\n CountFields: \"CountFields\",\r\n LookupRoutines: \"LookupRoutines\",\r\n CountPrograms: \"CountPrograms\",\r\n Variances: \"Variances\",\r\n Audits: \"Audits\",\r\n Reports: \"Reports\",\r\n Outputs: \"Outputs\",\r\n SubTotals: \"Sub-totals\",\r\n GrandTotals: \"Grand-totals\",\r\n OutputBundles: \"OutputBundles\",\r\n MultiEventOutputs: \"Multi-Event-Outputs\",\r\n Notification:\"Notification\"\r\n}\r\n\r\nexport const checkRequiredFieldErrorCheck = data => {\r\n let content: string = \"\"\r\n let alertMsgFieldError = {}\r\n const fileNameLen = 260\r\n if (data?.FileName?.length > fileNameLen) {\r\n content = `File name length can not be more than ${fileNameLen}!`\r\n } else if (!data?.SQL) {\r\n content = \"SQL query is required can not be empty!\"\r\n } else if (!data.Columns?.length) {\r\n content = \"Columns section is required can not be empty!\"\r\n }\r\n if (content) {\r\n alertMsgFieldError = {\r\n severity: \"error\",\r\n title: \"Validation Error!\",\r\n content: content\r\n }\r\n }\r\n return { alertMsgFieldError }\r\n}\r\n\r\nexport const reducer = (state, action) => {\r\n // If action is a function, call it with the current state and return the result\r\n if (typeof action === \"function\") {\r\n return action(state)\r\n }\r\n\r\n // Otherwise, toggle the state\r\n return !state\r\n}\r\n\r\nexport const emptyFieldValues = [\"\", null, undefined]\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport { VarianceType } from \"src/configurationPortal/pages/Variances/Utils/Type\"\r\n\r\nexport interface VarianceSliceType {\r\n varianceRedux: VarianceType\r\n}\r\n\r\nconst initialState: VarianceSliceType = {\r\n varianceRedux: {} as VarianceType\r\n}\r\nexport const varianceSlice = createSlice({\r\n name: \"variance\",\r\n initialState,\r\n reducers: {\r\n setVarianceRedux: (state, _action: PayloadAction) => {\r\n state.varianceRedux = { ..._action.payload }\r\n }\r\n },\r\n extraReducers: builder => {}\r\n})\r\nexport const { setVarianceRedux } = varianceSlice.actions\r\nexport default varianceSlice.reducer\r\n","import { \r\n FIELD_DELIMITER,\r\n RECORD_DELIMITER,\r\n } from \"src/utils/constants\"\r\n\r\nexport const getFieldDelimiterValue = (form) => {\r\n if (form.FieldDelimiter == FIELD_DELIMITER[1]) {\r\n return \"\\t\"\r\n } else if (form.FieldDelimiter == FIELD_DELIMITER[2]) {\r\n return \",\"\r\n } else if (form.FieldDelimiter == FIELD_DELIMITER[3]) {\r\n return \"|\"\r\n } else if (form.FieldDelimiter == FIELD_DELIMITER[4]) {\r\n return \":\"\r\n } else if (form.FieldDelimiter == FIELD_DELIMITER[5]) {\r\n return \";\"\r\n } else if(form.FieldDelimiter) {\r\n return form.OtherFieldDelimiter\r\n }\r\n }\r\n\r\n export const getRecordDelimiterValue = (form) => {\r\n if (form.RecordDelimiter == RECORD_DELIMITER[0]) {\r\n return \"\\r\\n\"\r\n } else if (form.RecordDelimiter == RECORD_DELIMITER[1]) {\r\n return \"\\n\"\r\n } else if (form.RecordDelimiter == RECORD_DELIMITER[2]) {\r\n return \"\\r\"\r\n } else if (form.RecordDelimiter === \"OTHER\") {\r\n return form.OtherRecordDelimiter\r\n } else {\r\n return form.RecordDelimiter\r\n }\r\n }","import { Button } from \"@mui/material\"\r\nimport ArrowBackIcon from \"@mui/icons-material/ArrowBack\"\r\nconst BulkUploadButtons = ({\r\n previousBLabel,\r\n handlePreviousClick,\r\n cancelBLabel,\r\n handleCancelClick,\r\n nextBLabel,\r\n handleNextClick,\r\n saveDisable\r\n}: {\r\n previousBLabel?: string\r\n handlePreviousClick?: React.MouseEventHandler\r\n cancelBLabel: string\r\n handleCancelClick: React.MouseEventHandler\r\n nextBLabel: string\r\n handleNextClick: React.MouseEventHandler\r\n saveDisable?: Function\r\n}) => {\r\n return (\r\n <>\r\n
\r\n \r\n {previousBLabel &&\r\n }\r\n {previousBLabel}\r\n \r\n \r\n {cancelBLabel}\r\n \r\n \r\n {nextBLabel}\r\n \r\n
\r\n \r\n )\r\n}\r\n\r\nexport default BulkUploadButtons\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport { MultiEventOutputFormType } from \"src/pages/MultiEventOutputs/Utils/Types\"\r\n\r\nexport interface MultiEventOutputSliceType {\r\n multiEventOutputsRedux: any[]\r\n multiEventOutputRedux: MultiEventOutputFormType\r\n isSetMultiEventOutputsRedux: boolean\r\n selectedCustomerIds: number[]\r\n configFilesByCustomersRedux: {\r\n configId: number\r\n customerId: number\r\n configName: string\r\n configVersion: string\r\n }[]\r\n}\r\n\r\nconst initialState: MultiEventOutputSliceType = {\r\n multiEventOutputsRedux: [],\r\n multiEventOutputRedux: {} as MultiEventOutputFormType,\r\n isSetMultiEventOutputsRedux: false,\r\n selectedCustomerIds: [],\r\n configFilesByCustomersRedux: []\r\n}\r\nexport const multiEventOutputSlice = createSlice({\r\n name: \"multiEventOutput\",\r\n initialState,\r\n reducers: {\r\n setMultiEventOutputsRedux: (state, _action: PayloadAction) => {\r\n state.multiEventOutputsRedux = [..._action.payload]\r\n state.isSetMultiEventOutputsRedux = true\r\n },\r\n setMultiEventOutputRedux: (state, _action: PayloadAction) => {\r\n state.multiEventOutputRedux = { ..._action.payload }\r\n },\r\n setSelectedCustomerIds: (state, _action: PayloadAction) => {\r\n state.selectedCustomerIds = [..._action.payload]\r\n },\r\n setConfigFilesByCustomersRedux: (state, _action: PayloadAction) => {\r\n state.configFilesByCustomersRedux = [..._action.payload]\r\n }\r\n },\r\n extraReducers: builder => {}\r\n})\r\nexport const {\r\n setMultiEventOutputsRedux,\r\n setMultiEventOutputRedux,\r\n setConfigFilesByCustomersRedux,\r\n setSelectedCustomerIds\r\n} = multiEventOutputSlice.actions\r\nexport default multiEventOutputSlice.reducer\r\n","const fieldTypes = {\r\n string: \"string\",\r\n number: \"number\",\r\n boolean: \"boolean\",\r\n radio: \"radio\",\r\n checkbox: \"checkbox\",\r\n email: \"email\",\r\n array: \"array\"\r\n}\r\n\r\nexport default fieldTypes\r\n","export default __webpack_public_path__ + \"static/media/PortalLogo.7d4cba8d.svg\";","export default __webpack_public_path__ + \"static/media/ConfigPortalLogo.5c4339f9.svg\";","import React, { useState, useEffect, useCallback } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport PortalLogoLight from \"../../../src/assets/images/PortalLogoLight.svg\"\r\nimport PortalLogo from \"../../../src/assets/images/PortalLogo.svg\"\r\nimport configPortalLogo from \"../../../src/assets/images/ConfigPortalLogo.svg\"\r\nimport {\r\n Grid,\r\n Dialog,\r\n IconButton,\r\n Button,\r\n MenuItem,\r\n Select,\r\n Avatar,\r\n Menu,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport MenuIcon from \"@mui/icons-material/Menu\"\r\nimport { NavLink, Prompt, useLocation } from \"react-router-dom\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { PATH } from \"../../../src/constants/paths\"\r\nimport SelectCustomer from \"../../../src/pages/SelectCustomer/SelectCustomer\"\r\nimport {\r\n setCompanyDetails,\r\n setCustomerForOperation,\r\n setCustomerNameForOperation,\r\n setCustomers\r\n} from \"../../../src/redux/slices/settingsSlice\"\r\nimport multiCustomerLogo from \"../../../src/assets/images/MultiCustomer.png\"\r\nimport {\r\n getConfigurationDecryptAndSetRedux,\r\n getPermissionsForUser,\r\n getResCDsConfigDecryption,\r\n getTranslations,\r\n prepareMsalConfig,\r\n useQuery\r\n} from \"../../../src/utils/helper\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../src/redux/store\"\r\nimport {\r\n FEATURES,\r\n HEADER_CONSTANTS,\r\n KEY_CODES,\r\n PERMISSIONS,\r\n View\r\n} from \"../../../src/utils/constants\"\r\nimport { getUserAccounts } from \"../../../src/redux/slices/usersSlice\"\r\nimport { msalConfig } from \"../../../src/config/authConfig\"\r\nimport { PublicClientApplication } from \"@azure/msal-browser\"\r\nimport { availableLanguages, Translates } from \"../../../src/i18n/i18n\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport VisibilityIcon from \"@mui/icons-material/Visibility\"\r\nimport {\r\n setIsRedirectHome,\r\n setModalOpen\r\n} from \"src/redux/slices/ConfigPortal/CustomerSelectionSlice\"\r\nimport {\r\n setConfigFilesByCustomersRedux,\r\n setSelectedCustomerIds\r\n} from \"src/redux/slices/MultiEventOutputSlice\"\r\nimport { ConfigService } from \"src/service/config.service\"\r\nimport { setCustomerConfiguration } from \"src/redux/slices/configSlice\"\r\nimport { ConfigTabNames } from \"src/configurationPortal/pages/helper\"\r\nconst Header = (_props: any) => {\r\n const { t, i18n } = useTranslation()\r\n const dispatch = useAppThunkDispatch()\r\n let location = useLocation() as any\r\n const configService = new ConfigService()\r\n\r\n let queryParams: any = useQuery()\r\n const [toggleMenu, setToggleMenu] = useState(true)\r\n const [loading, setLoading] = useState(false)\r\n const [isEditConfig, setIsEditConfig] = useState(null)\r\n const [customersList, setCustomersList] = useState([])\r\n const [selectedCustomers, setSelectedCustomers] = useState([] as any)\r\n const [path, setPath] = useState(\"\")\r\n const userEmail = localStorage.getItem(\"username\") || \"\"\r\n const [isMultiCustomer, setIsMultiCustomer] = useState(true)\r\n const CONFIG_PATH = {\r\n generalSettings: { path: PATH.CONFIGURATION_PORTAL },\r\n categories: { path: PATH.CATEGORIES },\r\n countFields: { path: PATH.CONFIGURATION_COUNT_FIELDS },\r\n lookupRoutines: { path: PATH.CONFIG_LOOKUP_ROUTINES },\r\n reportings: { path: PATH.REPORTS },\r\n variances: { path: PATH.VARIANCES },\r\n outputFiles: { path: PATH.OUTPUT_FILES },\r\n audits: { path: PATH.AUDITS },\r\n countPrograms: { path: PATH.COUNT_PROGRAMS },\r\n inputFiles: { path: PATH.INPUT_FILES }\r\n }\r\n const [anchorEl, setAnchorEl] = React.useState(null)\r\n const userMenuOpen = Boolean(anchorEl)\r\n\r\n const [configPath, setConfigPath] = useState(CONFIG_PATH)\r\n const configSliceData = useSelector((state: RootState) => state.config)\r\n const authSliceData = useSelector((state: RootState) => state.auth)\r\n const configTypeFromStore = configSliceData?.configType\r\n const configDataFromStore = configSliceData?.configDetails\r\n const warnOnTabChange = configSliceData?.warnOnTabChange\r\n const configNameFromStore = configSliceData?.configName\r\n const userAccounts = useSelector(\r\n (state: RootState) => state.user?.userAccounts\r\n )\r\n const companyDetails = useSelector(\r\n (state: RootState) => state.settings?.companyDetails\r\n )\r\n const customerSelectionModalOpen = useSelector(\r\n (state: RootState) => state.customerSelection?.modalOpen\r\n )\r\n\r\n const selectedCustomerIds = useSelector(\r\n (state: RootState) => state.multiEventOutput?.selectedCustomerIds\r\n )\r\n const [configName, setConfigName] = useState(\"\")\r\n const [userPermissions, setUserPermissions] = useState([] as any)\r\n const [version, setVersion] = useState(\"\")\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n //istanbul ignore next\r\n if (\r\n isMounted &&\r\n configSliceData?.customerConfigurationsStatus === \"success\" &&\r\n authSliceData?.keys?.length &&\r\n !configSliceData?.isGetConfigsDecrypt\r\n ) {\r\n const data1 = getResCDsConfigDecryption(\r\n configSliceData.customerConfigurations\r\n )\r\n dispatch(setCustomerConfiguration(data1))\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n }, [\r\n configSliceData?.customerConfigurationsStatus,\r\n authSliceData?.keys,\r\n configSliceData?.isGetConfigsDecrypt\r\n ])\r\n\r\n useEffect(() => {\r\n const dt = getPermissionsForUser()\r\n setUserPermissions(\r\n (dt || []).map((m: { Permissions: any[] }) => {\r\n return { ...m, Permissions: m.Permissions.map(e => e.toLowerCase()) }\r\n })\r\n )\r\n }, [])\r\n const checkDisabledStatus = (param: any) => {\r\n if (param === \"\") {\r\n return false\r\n }\r\n const _res = userPermissions.find(\r\n (f: { Feature: any }) => f.Feature.toLowerCase() === param\r\n )\r\n if (_res && _res.Permissions?.includes(PERMISSIONS.VIEW)) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n }\r\n const prepareEndPoint = pathString => {\r\n //istanbul ignore next\r\n if (location.search?.length) {\r\n return `${pathString}${location.search}`\r\n }\r\n return pathString\r\n }\r\n const setConfigPaths = () => {\r\n setConfigPath({\r\n generalSettings: { path: prepareEndPoint(PATH.CONFIGURATION_PORTAL) },\r\n categories: { path: prepareEndPoint(PATH.CATEGORIES) },\r\n countFields: { path: prepareEndPoint(PATH.CONFIGURATION_COUNT_FIELDS) },\r\n lookupRoutines: { path: prepareEndPoint(PATH.CONFIG_LOOKUP_ROUTINES) },\r\n reportings: { path: prepareEndPoint(PATH.REPORTS) },\r\n variances: { path: prepareEndPoint(PATH.VARIANCES) },\r\n outputFiles: { path: prepareEndPoint(PATH.OUTPUT_FILES) },\r\n audits: { path: prepareEndPoint(PATH.AUDITS) },\r\n countPrograms: { path: prepareEndPoint(PATH.COUNT_PROGRAMS) },\r\n inputFiles: { path: prepareEndPoint(PATH.INPUT_FILES) }\r\n })\r\n }\r\n const fullName = localStorage.getItem(\"name\") ?? \"\"\r\n const [firstName, lastName] = fullName.split(\" \")\r\n const firstInitial = firstName ? firstName.charAt(0) : \"\"\r\n const lastInitial = lastName ? lastName.charAt(0) : \"\"\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n setIsMultiCustomer(selectedCustomers.length > 1)\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n }, [selectedCustomers])\r\n\r\n useEffect(() => {\r\n dispatch(setCompanyDetails(companyDetails))\r\n }, [companyDetails])\r\n\r\n const getCustomerList = () => {\r\n if (!userAccounts?.length) {\r\n setLoading(true)\r\n dispatch(getUserAccounts(userEmail))\r\n .then((temp: any) => {\r\n setUserDetails(temp.payload?.data)\r\n })\r\n .catch(\r\n //istanbul ignore next\r\n _err => {\r\n setLoading(false)\r\n _props.handleLoadChild()\r\n }\r\n )\r\n } else {\r\n setUserDetails(userAccounts)\r\n }\r\n }\r\n const handleClick = useCallback((event: any) => {\r\n setAnchorEl(event.currentTarget)\r\n }, [])\r\n //istanbul ignore next\r\n const handleClose = useCallback(() => {\r\n setAnchorEl(null)\r\n }, [])\r\n\r\n const setUserDetails = data => {\r\n let res = data || []\r\n res = res.map((c: any) => {\r\n return {\r\n name: c.companyName,\r\n img: companyDetails?.companyLogo || c.companyLogo,\r\n selected: c.isCustomerSelected,\r\n idCustomer: c.idCustomer,\r\n ...c\r\n }\r\n })\r\n let selected = res.filter(c => c.isCustomerSelected)\r\n setSelectedCustomers(selected)\r\n if (selected.length == 1) {\r\n dispatch(setCustomerForOperation(selected[0].idCustomer))\r\n dispatch(setCustomerNameForOperation(selected[0].name))\r\n }\r\n setCustomersList(res)\r\n dispatch(setCustomers(res))\r\n setLoading(false)\r\n setTimeout(() => {\r\n _props.handleLoadChild()\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n const pathname = window.location.pathname\r\n if (isMounted) {\r\n const selectedUser = userAccounts\r\n ?.filter(c => c.isCustomerSelected)\r\n ?.map(i => i.idCustomer)\r\n if (selectedUser?.length) {\r\n if (\r\n JSON.stringify(selectedCustomerIds) !==\r\n JSON.stringify(selectedUser) &&\r\n pathname.includes(\r\n ConfigTabNames.MultiEventOutputs.toLocaleLowerCase()\r\n )\r\n ) {\r\n configService.getConfigDetails(selectedUser).then(\r\n //istanbul ignore next\r\n (temp: any) => {\r\n if (Array.isArray(temp.data)) {\r\n const data = temp.data\r\n // .filter(i => i.status === \"Active\")\r\n .map(i => ({\r\n configId: i.idConfig,\r\n customerId: i.idCustomer,\r\n configName: i.name,\r\n configVersion: i.version\r\n }))\r\n dispatch(setConfigFilesByCustomersRedux(data))\r\n dispatch(setSelectedCustomerIds(selectedUser))\r\n }\r\n }\r\n )\r\n }\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n }, [userAccounts])\r\n useEffect(() => {\r\n if (configDataFromStore?.configuration && authSliceData?.keys?.length) {\r\n const configObject = getConfigurationDecryptAndSetRedux(configSliceData)\r\n setConfigName(configObject.GeneralSettings?.ConfigurationName)\r\n setVersion(configObject.GeneralSettings?.ConfigurationVersion)\r\n }\r\n }, [configDataFromStore, authSliceData?.keys])\r\n\r\n useEffect(() => {\r\n let pathSplit = location?.pathname?.split(\"/\")\r\n if (pathSplit?.length > 2) {\r\n setPath(pathSplit[1])\r\n }\r\n setIsEditConfig(queryParams?.get(\"edit\"))\r\n setConfigPaths()\r\n }, [])\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n getCustomerList()\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n }, [userAccounts])\r\n\r\n useEffect(() => {\r\n setConfigName(configNameFromStore)\r\n }, [configNameFromStore])\r\n\r\n //istanbul ignore next\r\n const clickToggleMenu = () => {\r\n let toggledOption = !toggleMenu\r\n setToggleMenu(toggledOption)\r\n }\r\n\r\n //istanbul ignore next\r\n const handleClickToggleMenuKeyUp = useCallback((e: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n clickToggleMenu()\r\n }\r\n }, [])\r\n const [open, setOpen] = useState(false)\r\n\r\n //istanbul ignore next\r\n const handleClickOpen = () => {\r\n if (customersList.length === 1) return\r\n dispatch(setModalOpen(true))\r\n dispatch(setIsRedirectHome(true))\r\n }\r\n\r\n //istanbul ignore next\r\n const handleClickOpenKeyUp = useCallback((e: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n handleClickOpen()\r\n }\r\n }, [])\r\n\r\n //istanbul ignore next\r\n const close = () => {\r\n dispatch(setModalOpen(false))\r\n }\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n setOpen(customerSelectionModalOpen)\r\n if (!customerSelectionModalOpen) {\r\n dispatch(setIsRedirectHome(customerSelectionModalOpen))\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [customerSelectionModalOpen])\r\n\r\n const handleLogout = () => {\r\n let mConfig: any = prepareMsalConfig(\r\n { domain_hint: \"\", login_hint: \"\" },\r\n msalConfig,\r\n true\r\n )\r\n const instance = new PublicClientApplication(mConfig)\r\n // localStorage.clear()\r\n // instance.logoutRedirect()\r\n //TO be removed later once tested\r\n instance\r\n .logoutPopup({\r\n postLogoutRedirectUri: \"/\",\r\n mainWindowRedirectUri: \"/\" // redirects the top level app after logout\r\n })\r\n .then(() => {\r\n localStorage.clear()\r\n i18n.changeLanguage(\"English\")\r\n })\r\n }\r\n const renderLogo = () => {\r\n if (\r\n selectedCustomers &&\r\n selectedCustomers.length === 1 &&\r\n selectedCustomers[0].companyLogo\r\n ) {\r\n return \"customer\r\n }\r\n return \"customer\r\n }\r\n const languageMap = {\r\n English: \"English (USA)\",\r\n French: \"Français (Canadian)\",\r\n Spanish: \"Spanish (Mexico)\"\r\n }\r\n const renderName = () => {\r\n if (selectedCustomers && selectedCustomers.length == 1) {\r\n return (\r\n \r\n {selectedCustomers[0].companyName}{\" \"}\r\n {path === PATH.CONFIGURATION.replace(\"/\", \"\") &&\r\n isEditConfig != \"false\"\r\n ? \"- \" +\r\n (configDataFromStore.name || configName) +\r\n \" V\" +\r\n (configDataFromStore.version || version)\r\n : null}\r\n \r\n )\r\n }\r\n return {`${selectedCustomers.length} Selected`}\r\n }\r\n const checkDisableLink = () => {\r\n return selectedCustomers.length ? isMultiCustomer : true\r\n }\r\n\r\n //istanbul ignore next\r\n const isConfigViewMode = () => {\r\n const MIN_ROUTE_LEN = 2\r\n const PATHS = location.pathname.split(\"/\")\r\n\r\n if (\r\n PATHS.length > MIN_ROUTE_LEN &&\r\n location.pathname.includes(PATH.CONFIGURATION)\r\n ) {\r\n return configTypeFromStore === View\r\n } else {\r\n return false\r\n }\r\n }\r\n //check if event view\r\n const isEventView = () => {\r\n return location.search.includes(\"view=true\")\r\n }\r\n return (\r\n \r\n
\r\n {\" \"}\r\n
\r\n \r\n \r\n {path !== PATH.CONFIGURATION.replace(\"/\", \"\") ? (\r\n \r\n \r\n \r\n ) : null}\r\n {path !== PATH.CONFIGURATION.replace(\"/\", \"\") ? (\r\n \r\n ) : (\r\n {\"Config\r\n )}\r\n \r\n \r\n
\r\n \r\n i18n.changeLanguage(e.target.value)}\r\n labelId=\"language-dropdown\"\r\n id=\"language-dropdown\"\r\n className=\"lang-dropdown\"\r\n value={i18n.language}\r\n defaultValue={i18n.language}\r\n >\r\n {availableLanguages.map(language => (\r\n \r\n \r\n {languageMap[language]}\r\n \r\n \r\n ))}\r\n \r\n \r\n
\r\n 1\r\n ? \"header__actions--logo pointer\"\r\n : \"header__actions--logo\"\r\n }\r\n onClick={handleClickOpen}\r\n onKeyUp={handleClickOpenKeyUp}\r\n >\r\n {!loading && renderLogo()}\r\n {!loading && renderName()}\r\n {loading && (\r\n {getTranslations(t, Translates.Fetching)}\r\n )}\r\n
\r\n
\r\n \r\n \r\n \r\n {firstInitial.toUpperCase()}\r\n {lastInitial && `${lastInitial.toUpperCase()}`}\r\n \r\n \r\n \r\n \r\n
  • \r\n {localStorage.getItem(\"name\")}\r\n
  • \r\n
  • {userEmail}
  • \r\n
  • \r\n \r\n {getTranslations(t, Translates.Logout)}\r\n \r\n
  • \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n {\"Portal\r\n
    \r\n
      \r\n
    • \r\n \r\n {getTranslations(t, Translates.Home)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Schedule)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Device_Reservation)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Locations)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Upload_Files)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Configuration)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Live_Events)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Final_Reports_Files)}\r\n \r\n
    • \r\n
    • \r\n \r\n {getTranslations(t, Translates.Settings)}\r\n \r\n
    • \r\n
    \r\n {/* \r\n {getTranslations(t, Translates.WIS_Contacts)}\r\n */}\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n {path === PATH.CONFIGURATION.replace(\"/\", \"\") ? (\r\n \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.General_Settings)}\r\n \r\n \r\n {getTranslations(t, Translates.Input_Files)}\r\n \r\n \r\n {getTranslations(t, Translates.Categories)}\r\n \r\n \r\n {getTranslations(t, Translates.Count_Fields)}\r\n \r\n \r\n {getTranslations(t, Translates.Lookup_Routines)}\r\n \r\n \r\n {getTranslations(t, Translates.Count_Programs)}\r\n \r\n \r\n {getTranslations(t, Translates.Variances)}\r\n \r\n \r\n {getTranslations(t, Translates.Audits)}\r\n \r\n \r\n {getTranslations(t, Translates.Reports)}\r\n \r\n \r\n {getTranslations(t, Translates.Outputs)}\r\n \r\n
    \r\n {configTypeFromStore === \"view\" ? (\r\n \"\"\r\n ) : (\r\n \r\n )}\r\n
    \r\n
    \r\n ) : null}\r\n\r\n {isConfigViewMode() || isEventView() ? (\r\n
    \r\n \r\n View Only Mode\r\n
    \r\n ) : null}\r\n \r\n )\r\n}\r\n\r\nexport default React.memo(Header)\r\n","import React, { ReactNode, useState, useEffect, useCallback } from \"react\"\r\nimport Header from \"../../src/components/Header/Header\"\r\nimport styles from \"./MainLayout.module.scss\"\r\nimport { KEY_CODES } from \"src/utils/constants\"\r\n\r\ninterface Props {\r\n children: ReactNode\r\n}\r\n\r\nexport default function MainLayout(props: Props) {\r\n const { children } = props\r\n const [toggleFooter, setToggleFooter] = useState(true)\r\n const [loadChild, setLoadChild] = useState(false)\r\n const footerToggleClick = () => {\r\n let toggledOption = !toggleFooter\r\n setToggleFooter(toggledOption)\r\n }\r\n const handleFooterToggleKeyUp = useCallback((e: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n footerToggleClick()\r\n }\r\n }, [])\r\n\r\n useEffect(() => {}, [])\r\n const handleLoadChild = () => {\r\n setLoadChild(true)\r\n }\r\n return (\r\n \r\n {/*
    */}\r\n
    \r\n
    \r\n {loadChild &&
    {children}
    }\r\n \r\n
    \r\n\r\n {/*
    */}\r\n\r\n {/*
    */}\r\n \r\n )\r\n}\r\n","//BEGIN-NOSCAN\r\nimport { encrypt } from \"src/utils/helper\"\r\nimport ApiService from \"src/utils/useAxios\"\r\nconst api = new ApiService()\r\n// istanbul ignore next\r\nexport class UploadFileService {\r\n getUploadFilesViewStatus(customerId) {\r\n const endPoint = `/api/UploadFiles/GetUploadFilesViewStatus?customerId=${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n\r\n getCategories(configurationId) {\r\n const endPoint = `/api/ConfigControl/GetCategories?configurationId=${configurationId}`\r\n return api.findAll(endPoint)\r\n }\r\n\r\n getUploadFiles(customerId: string) {\r\n const endPoint = `/api/UploadFiles/GetUploadFiles?customerId=${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n\r\n getValidationDepartmentDetails(\r\n customerId: string,\r\n validationControlId: string\r\n ) {\r\n const endPoint = `/api/UploadFiles/getValidationDepartmentDetails?customerId=${customerId}&validationControlId=${validationControlId}`\r\n return api.findAll(endPoint)\r\n }\r\n\r\n deleteValidationDepartment(\r\n customerId: string,\r\n validationControlId: string,\r\n validationDepartmentId: string,\r\n updatedBy: string\r\n ) {\r\n const endPoint = `/api/UploadFiles/deleteValidationDepartment?customerId=${customerId}&validationControlId=${validationControlId}&validationDepartmentId=${validationDepartmentId}&updatedBy=${updatedBy}`\r\n return api.delete(endPoint, {})\r\n }\r\n deleteDepartmentData(\r\n customerId: string,\r\n validationControlId: string,\r\n validationDepartmentId: string\r\n ) {\r\n const endPoint = `api/UploadFiles/deleteValidationDepartment?customerId=${customerId}&validationControlId=${validationControlId}&validationDepartmentId=${validationDepartmentId}`\r\n return api.delete(endPoint, {})\r\n }\r\n deleteAreaRangeData(\r\n customerId: string,\r\n validationControlId: string,\r\n validationDepartmentId: string\r\n ) {\r\n const endPoint = `api/UploadFiles/deleteValidationAreaRange?customerId=${customerId}&validationControlId=${validationControlId}&validationAreaRangeId=${validationDepartmentId}`\r\n return api.delete(endPoint, {})\r\n }\r\n deleteVarianceControlData(\r\n customerId: string,\r\n validationControlId: string,\r\n varianceControlId: string\r\n ) {\r\n const endPoint = `api/UploadFiles/deleteVarianceControl?validationControlId=${validationControlId}&varianceControlId=${varianceControlId}&customerId=${customerId}`\r\n return api.delete(endPoint, {})\r\n }\r\n\r\n getUploadSingleFileDetails(idConfig, fileType) {\r\n const endPoint = `/api/UploadFiles/GetUploadFileDetailsByFileType?configId=${idConfig}&idFileType=${fileType}`\r\n return api.findAll(endPoint)\r\n }\r\n updateData(payload: any) {\r\n const endPoint = \"api/UploadFiles/UpsertUploadFileDetails\"\r\n return api\r\n .post(endPoint, payload)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n AddBulkUploadFile(payload: any, config: any) {\r\n let params = { ...payload }\r\n let fileData = params.fileData ? encrypt(params.fileData) : \"\"\r\n params.fileData = fileData\r\n const endPoint = \"/api/UploadFiles/AddAuxFileDataBulk\"\r\n return api.saveWithParams(endPoint, params, config)\r\n }\r\n downloadAuxFile(idConfig: any, idFileType: any) {\r\n const endPoint = `/api/UploadFiles/DownloadAuxFile?configId=${idConfig}&idFileType=${idFileType}`\r\n return api.post(endPoint, \"\")\r\n }\r\n}\r\n//END-NOSCAN\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport { TextField } from \"@mui/material\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getDefaultValue, getFieldError } from \"./Helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nexport interface Props {\r\n inputAttributes: {\r\n name: string\r\n type?: \"text\" | \"email\" | \"tel\"\r\n label: string\r\n placeholder?: string\r\n className?: string\r\n id?: string\r\n required?: boolean\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n variant?: \"standard\" | \"filled\" | \"outlined\"\r\n fullWidth?: boolean\r\n InputProps?: any\r\n value?: string | number | null\r\n defaultValue?: string | number | null\r\n multiline?: boolean\r\n rows?: number\r\n maxRows?: number\r\n onChange?: Function\r\n onFocus?: Function\r\n disabled?: boolean\r\n }\r\n}\r\n\r\nconst MUIText = ({ inputAttributes }: Props) => {\r\n const { t } = useTranslation()\r\n const {\r\n name,\r\n type,\r\n label,\r\n placeholder,\r\n className,\r\n id,\r\n size,\r\n color,\r\n variant,\r\n fullWidth,\r\n InputProps,\r\n required,\r\n value,\r\n defaultValue,\r\n multiline,\r\n rows,\r\n maxRows,\r\n onChange,\r\n onFocus,\r\n disabled\r\n } = inputAttributes\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n let defVal: any = getDefaultValue(value, defaultValue, [])\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n return (\r\n (\r\n {\r\n field.onChange(e)\r\n updateWarnOnTabChangeToStore(true)\r\n if (onChange) onChange()\r\n }}\r\n onFocus={e => {\r\n if (onFocus) onFocus(e)\r\n }}\r\n className={`${className} custom-form-control`}\r\n disabled={disabled ?? false}\r\n InputProps={InputProps}\r\n fullWidth={fullWidth ?? true}\r\n id={id ?? name}\r\n required={required ?? false}\r\n size={size ?? \"small\"}\r\n placeholder={placeholder}\r\n type={type ?? \"text\"}\r\n variant={variant ?? \"filled\"}\r\n color={color ?? \"primary\"}\r\n {...(rows && {\r\n rows: rows\r\n })}\r\n {...(maxRows && {\r\n maxRows: maxRows\r\n })}\r\n multiline={multiline ?? false}\r\n autoSave=\"false\"\r\n autoComplete=\"off\"\r\n error={isError}\r\n helperText={ErrorText}\r\n />\r\n )}\r\n />\r\n )\r\n}\r\n\r\nexport default MUIText\r\n","import { formField } from \"src/utils/constants\"\r\nimport {\r\n ConfigurationDetailsFieldsType,\r\n MultiEventOutputFormType\r\n} from \"../Types\"\r\nimport moment from \"moment\"\r\n\r\nexport const createEditFieldNames = {\r\n Customers: {\r\n name: \"Customers\",\r\n label: \"Customers\"\r\n },\r\n FileCreationSchedule: {\r\n name: \"FileCreationSchedule\",\r\n label: \"FileCreationSchedule\"\r\n },\r\n ConfigurationIncludes: {\r\n name: \"ConfigurationIncludes\",\r\n label: \"Configurations_To_Include\"\r\n },\r\n IsSpecificDateRange: {\r\n name: \"IsSpecificDateRange\",\r\n label: \"Specific_Date_Range\"\r\n },\r\n StartDate: {\r\n name: \"StartDate\",\r\n label: \"Start_Date\"\r\n },\r\n EndDate: {\r\n name: \"EndDate\",\r\n label: \"End_Date\"\r\n },\r\n Time: {\r\n name: \"Time\",\r\n label: \"Time\"\r\n },\r\n Loadings: {\r\n name: \"Loadings\",\r\n label: \"Loadings\"\r\n }\r\n}\r\n\r\nexport const systemDefaultFieldNames = {\r\n SDMinStore: { name: \"SystemDefaultMinStore\", label: \"\" },\r\n SDMaxStore: { name: \"SystemDefaultMaxStore\", label: \"\" }\r\n}\r\n\r\nexport const dailyFieldNames = {\r\n DayRadio: { name: \"DailyDayRadio\", label: \"\" },\r\n DayInterval: { name: \"DailyDayInterval\", label: \"\" },\r\n WeekDayRadio: { name: \"DailyWeekDayRadio\", label: \"Every_Weekday\" }\r\n}\r\n\r\nexport const weeklyFieldNames = {\r\n WeeklyInterval: { name: \"WeeklyInterval\", label: \"\" },\r\n IsWeekDays: { name: \"WeeklyIsWeekDays\", label: \"Weekday\" },\r\n Sunday: { name: \"WeeklySunday\", label: \"Sunday\" },\r\n Monday: { name: \"WeeklyMonday\", label: \"Monday\" },\r\n Tuesday: { name: \"WeeklyTuesday\", label: \"Tuesday\" },\r\n Wednesday: { name: \"WeeklyWednesday\", label: \"Wednesday\" },\r\n Thursday: { name: \"WeeklyThursday\", label: \"Thursday\" },\r\n Friday: { name: \"WeeklyFriday\", label: \"Friday\" },\r\n Saturday: { name: \"WeeklySaturday\", label: \"Saturday\" }\r\n}\r\n\r\nexport const monthlyFieldNames = {\r\n DayRadio: { name: \"MonthlyDayRadio\", label: \"\" },\r\n DayNumber: { name: \"MonthlyDayNumber\", label: \"\" },\r\n DayMonthInterval: { name: \"MonthlyDayMonthInterval\", label: \"\" },\r\n WeekRadio: { name: \"MonthlyWeekRadio\", label: \"\" },\r\n WeekNumber: { name: \"MonthlyWeekNumber\", label: \"\" },\r\n WeekDay: { name: \"MonthlyWeekDay\", label: \"\" },\r\n WeekMonthInterval: { name: \"MonthlyWeekMonthInterval\", label: \"\" }\r\n}\r\n\r\nexport const yearlyFieldNames = {\r\n YearInterval: { name: \"YearlyYearInterval\", label: \"\" },\r\n DayMonthRadio: { name: \"YearlyDayMonthRadio\", label: \"\" },\r\n DayMonth: { name: \"YearlyDayMonth\", label: \"\" },\r\n DayMonthDayNumber: { name: \"YearlyDayMonthDayNumber\", label: \"\" },\r\n WeekMonthRadio: { name: \"YearlyWeekMonthRadio\", label: \"\" },\r\n WeekMonthWeekNumber: { name: \"YearlyWeekMonthWeekNumber\", label: \"\" },\r\n WeekMonthWeekDay: { name: \"YearlyWeekMonthWeekDay\", label: \"\" },\r\n WeekMonth: { name: \"YearlyWeekMonth\", label: \"\" }\r\n}\r\n\r\nexport const MDWNOValues = {\r\n First: \"1\",\r\n Second: \"2\",\r\n Third: \"3\",\r\n Fourth: \"4\"\r\n}\r\nexport const weekDays = {\r\n Sunday: \"Sunday\",\r\n Monday: \"Monday\",\r\n Tuesday: \"Tuesday\",\r\n Wednesday: \"Wednesday\",\r\n Thursday: \"Thursday\",\r\n Friday: \"Friday\",\r\n Saturday: \"Saturday\"\r\n}\r\n\r\nexport const YDMOValues = {\r\n January: \"January\",\r\n February: \"February\",\r\n March: \"March\",\r\n April: \"April\",\r\n May: \"May\",\r\n June: \"June\",\r\n July: \"July\",\r\n August: \"August\",\r\n September: \"September\",\r\n October: \"October\",\r\n November: \"November\",\r\n December: \"December\"\r\n}\r\n\r\nexport const ConfigurationDetailsFields: ConfigurationDetailsFieldsType = {\r\n configurationIncludes: {\r\n fieldType: formField.multi_auto_dropdown,\r\n props: {\r\n name: createEditFieldNames.ConfigurationIncludes.name,\r\n label: createEditFieldNames.ConfigurationIncludes.label,\r\n options: [],\r\n required: true\r\n }\r\n }\r\n}\r\n\r\nexport const createEditMultiEventOutputDefaultValues: MultiEventOutputFormType =\r\n {\r\n RecordId: -1,\r\n Customers: [],\r\n ConfigurationIncludes: [],\r\n //General settings start\r\n Name: \"\",\r\n Description: \"\",\r\n FileName: \"\",\r\n FileType: \"\",\r\n FieldDelimiter: \"\",\r\n OtherFieldDelimiter: \"\",\r\n RecordDelimiter: \"\",\r\n OtherRecordDelimiter: \"\",\r\n AsciiCharValue: \"\",\r\n HasHeaderRecord: false,\r\n //General settings end\r\n RawSQL: \"\",\r\n SQL: \"\",\r\n Columns: [],\r\n ColumnsToSuppress: 0,\r\n SubTotals: [],\r\n GrandTotals: [],\r\n //File creation schedule fields start\r\n FileCreationSchedule: \"\",\r\n\r\n //System Default radio option fields start\r\n SystemDefaultMinStore: \"\",\r\n SystemDefaultMaxStore: \"\",\r\n //System Default fields end\r\n\r\n //Daily radio option fields start\r\n DailyDayRadio: \"\",\r\n DailyDayInterval: \"\",\r\n DailyWeekDayRadio: \"\",\r\n //Daily radio option fields end\r\n\r\n //Weekly radio option fields start\r\n WeeklyInterval: \"\",\r\n WeeklyIsWeekDays: false,\r\n WeeklySunday: false,\r\n WeeklyMonday: false,\r\n WeeklyTuesday: false,\r\n WeeklyWednesday: false,\r\n WeeklyThursday: false,\r\n WeeklyFriday: false,\r\n WeeklySaturday: false,\r\n //Weekly radio option fields end\r\n\r\n //Monthly radio option fields start\r\n MonthlyDayRadio: \"\",\r\n MonthlyDayNumber: \"\",\r\n MonthlyDayMonthInterval: \"\",\r\n MonthlyWeekRadio: \"\",\r\n MonthlyWeekNumber: MDWNOValues.First,\r\n MonthlyWeekDay: weekDays.Wednesday,\r\n MonthlyWeekMonthInterval: \"\",\r\n //Monthly radio option fields end\r\n\r\n //Yearly radio option fields start\r\n YearlyYearInterval: \"\",\r\n YearlyDayMonthRadio: \"\",\r\n YearlyDayMonth: YDMOValues.April,\r\n YearlyDayMonthDayNumber: \"\",\r\n YearlyWeekMonthRadio: \"\",\r\n YearlyWeekMonthWeekNumber: MDWNOValues.First,\r\n YearlyWeekMonthWeekDay: weekDays.Wednesday,\r\n YearlyWeekMonth: YDMOValues.April,\r\n //Yearly radio option fields end\r\n\r\n Time: moment(new Date()).add(1, \"hours\").startOf(\"hour\").toDate(),\r\n IsSpecificDateRange: false,\r\n StartDate: new Date(),\r\n EndDate: new Date(),\r\n //File creation schedule radio option fields end\r\n Destination: {\r\n CustomerPortalCheck: true,\r\n FtpDirectory: [],\r\n Email: []\r\n },\r\n Notification:{\r\n Email:[]\r\n },\r\n Loadings: { isGetAPICall: true, isConfigAPICall: true }\r\n }\r\n","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\nlet encrypt: any\r\n\r\nasync function getEncryptFunction() {\r\n if (!encrypt) {\r\n // Import encrypt only when needed\r\n const { encrypt: importedEncrypt } = await import(\"src/utils/helper\")\r\n encrypt = importedEncrypt\r\n }\r\n return encrypt\r\n}\r\n\r\nconst api = new ApiService()\r\nexport class ScheduleService {\r\n saveSchedule(payload) {\r\n const endPoint: string = `api/schedule`\r\n return api.post(endPoint, payload)\r\n }\r\n updateSchedule(payload) {\r\n const endPoint: string = `api/schedule`\r\n return api.put(endPoint, payload)\r\n }\r\n getCountryDevices() {\r\n const endPoint: string = `api/Schedule/GetCountryDevices`\r\n return api.findAll(endPoint)\r\n }\r\n getviewschedule(payload: any) {\r\n const endPoint = \"api/Schedule/ViewScheduleDetails\"\r\n return api.post(endPoint, payload)\r\n }\r\n\r\n deleteschedule(customerId) {\r\n const endPoint = `api/Schedule/CancelSchedule?eventId=${customerId}`\r\n return api.put(endPoint, {})\r\n }\r\n\r\n editschedule(customerId) {\r\n const endPoint: string = `api/Schedule/GetScheduleById?eventid=${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n getScheduleById(id) {\r\n const endPoint = `/api/Schedule/GetScheduleById?eventid=${id}`\r\n return api.findAll(endPoint)\r\n }\r\n getEventPasswords(id) {\r\n const endPoint = `/api/Schedule/GetEventPasswords?eventid=${id}`\r\n return api.findAll(endPoint)\r\n }\r\n async bulkUpdateSchedule(payload: any, config: any) {\r\n let params = { ...payload }\r\n const encryptFunction = await getEncryptFunction()\r\n const fileData = params.fileData ? encryptFunction(params.fileData) : \"\"\r\n params.fileData = fileData\r\n const endPoint = \"/api/Schedule/AddSchedulesBulk\"\r\n return api.saveWithParams(endPoint, params, config)\r\n }\r\n sendEmail(payload: any, config: any) {\r\n const endPoint: string = `/api/Schedule/SendEmailWithQRCode`\r\n return api.savefile(endPoint, payload, config)\r\n }\r\n getEventDetailsForConfig(payload: any[]) {\r\n const endPoint = `/api/Schedule/GetEventsDetails`\r\n return api.post(endPoint, payload)\r\n }\r\n UpdateEventsConfigDetails(payload: any) {\r\n const endPoint = `/api/Schedule/UpadateEventsConfigDetails`\r\n return api.put(endPoint, payload)\r\n }\r\n getFutureEventsDetails(CustomerId, configId) {\r\n const endPoint = `api/Schedule/GetFutureEventsDetails?CustomerId=${CustomerId}&configId=${configId}`\r\n return api.findAllFutureEvents(endPoint)\r\n }\r\n getFutureEventsForDeactivate(CustomerId, configId) {\r\n const endPoint = `api/Schedule/GetFutureEventsData?CustomerId=${CustomerId}&configId=${configId}`\r\n return api.findAllFutureEvents(endPoint)\r\n }\r\n getSiteIdList(customerId) {\r\n const endPoint = `api/Location/GetAllSiteIdByAccount/${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n unlockEvent(payload) {\r\n const endPoint: string = `api/schedule/UnlockEvent`\r\n return api.put(endPoint, payload)\r\n }\r\n}\r\n//END-NOSCAN\r\n","export default __webpack_public_path__ + \"static/media/CsvIcon.5aa46c16.svg\";","import { Alert, AlertColor, AlertTitle } from \"@mui/material\"\r\nimport CheckCircleIcon from \"@mui/icons-material/CheckCircle\"\r\nimport { HighlightOff } from \"@mui/icons-material\"\r\n\r\ninterface AlertProps {\r\n severity: AlertColor\r\n title: string\r\n content: string\r\n}\r\nconst AlertC = (props: AlertProps) => {\r\n let Icon = \r\n if (props.severity === \"error\") {\r\n Icon = \r\n }\r\n return (\r\n \r\n \r\n {`${props.title}`}\r\n \r\n

    {`${props.content}`}

    \r\n \r\n )\r\n}\r\nexport default AlertC\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport { Autocomplete, FormControl, TextField } from \"@mui/material\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport {\r\n getDefaultValue,\r\n getFieldError,\r\n getOptionLabelForAutoComplete\r\n} from \"./Helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { useState } from \"react\"\r\n\r\ninterface Option {\r\n label: string\r\n value: any\r\n default?: boolean\r\n}\r\n\r\nexport interface Props {\r\n inputAttributes: {\r\n name: string\r\n type?: \"text\" | \"email\" | \"tel\"\r\n label: string\r\n placeholder?: string\r\n className?: string\r\n id?: string\r\n required?: boolean\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n variant?: \"standard\" | \"filled\" | \"outlined\"\r\n fullWidth?: boolean\r\n InputProps?: any\r\n value?: string | number\r\n defaultValue?: string | number\r\n multiline?: boolean\r\n rows?: number\r\n maxRows?: number\r\n onChange?: Function\r\n disabled?: boolean\r\n options: Option[]\r\n isOptionTranslate?: boolean\r\n freeSolo?: boolean\r\n isNotSort?: boolean\r\n }\r\n}\r\n\r\nconst MUIAutoCompleteText = ({ inputAttributes }: Props) => {\r\n const { t } = useTranslation()\r\n const [inputValue, setInputValue] = useState(\"\")\r\n let {\r\n name,\r\n type,\r\n label,\r\n placeholder,\r\n className,\r\n id,\r\n size,\r\n color,\r\n variant,\r\n fullWidth,\r\n required,\r\n value,\r\n defaultValue,\r\n onChange,\r\n options,\r\n isOptionTranslate,\r\n disabled,\r\n freeSolo,\r\n isNotSort\r\n } = inputAttributes\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n\r\n let newOptions = !isNotSort\r\n ? [...options].sort((a, b) => a.label?.localeCompare(b.label))\r\n : options\r\n if (isOptionTranslate) {\r\n newOptions = newOptions.map(i => ({\r\n ...i,\r\n label: getTranslations(t, i.label)\r\n }))\r\n }\r\n\r\n let defVal: any = getDefaultValue(value, defaultValue, newOptions)\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n\r\n const getInputValue = targetValue => {\r\n const result = newOptions.find(item => item.value === targetValue)\r\n const output = result && targetValue ? result.label : targetValue\r\n return `${output}`\r\n }\r\n return (\r\n (\r\n \r\n {\r\n updateWarnOnTabChangeToStore(true)\r\n //istanbul ignore next\r\n const val = v ? v.value : \"\"\r\n field.onChange(val)\r\n if (freeSolo) {\r\n setInputValue(getInputValue(val))\r\n }\r\n if (onChange) onChange()\r\n }}\r\n onInputChange={(event, newInputValue, i) => {\r\n if (freeSolo && i === \"input\") {\r\n updateWarnOnTabChangeToStore(true)\r\n field.onChange(newInputValue)\r\n setInputValue(newInputValue)\r\n }\r\n }}\r\n disabled={disabled ?? false}\r\n renderOption={(props, option) =>
  • {option.label}
  • }\r\n getOptionLabel={option => {\r\n return getOptionLabelForAutoComplete(option, newOptions)\r\n }}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n )}\r\n />\r\n )\r\n}\r\n\r\nexport default MUIAutoCompleteText\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\n\r\nexport interface LiveEventsState {\r\n status: string\r\n liveEventsFilters: any\r\n liveEventsFilterForm: any\r\n liveEventsSelectedSpans: any\r\n liveEventsData: any\r\n}\r\n\r\nconst initialState: LiveEventsState = {\r\n status: \"\",\r\n liveEventsFilters: {\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: [],\r\n country: [],\r\n state: [],\r\n currentDate: \"\",\r\n eventStatus: []\r\n },\r\n liveEventsFilterForm: {\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: [],\r\n country: [],\r\n state: [],\r\n currentDate: \"\",\r\n eventStatus: []\r\n },\r\n liveEventsSelectedSpans: [],\r\n liveEventsData: []\r\n}\r\nexport const liveEventsSlice = createSlice({\r\n name: \"liveEventsList\",\r\n initialState,\r\n reducers: {\r\n setLiveEventsFilters: (state, _action: PayloadAction) => {\r\n state.liveEventsFilters = {\r\n ...state.liveEventsFilters,\r\n ..._action.payload\r\n }\r\n },\r\n setLiveEventsFilterForm: (state, _action: PayloadAction) => {\r\n state.liveEventsFilterForm = { ..._action.payload }\r\n },\r\n setLiveEventsSelectedSpans: (state, _action: PayloadAction) => {\r\n state.liveEventsSelectedSpans = [..._action.payload]\r\n },\r\n setLiveEventsData: (state, _action: PayloadAction) => {\r\n state.liveEventsData = [..._action.payload]\r\n }\r\n }\r\n})\r\nexport const {\r\n setLiveEventsFilters,\r\n setLiveEventsFilterForm,\r\n setLiveEventsSelectedSpans,\r\n setLiveEventsData\r\n} = liveEventsSlice.actions\r\n\r\nexport default liveEventsSlice.reducer\r\n","//BEGIN-NOSCAN\r\nimport { encrypt } from \"src/utils/helper\"\r\nimport ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\n// istanbul ignore next\r\nexport class SettingsService {\r\n addregionalgroupdetails(payload: any) {\r\n const endPoint = \"/api/Customer/AddRegionalGroupDetails\"\r\n return api\r\n .post(endPoint, payload)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n getLocationsByStore(customerIds) {\r\n const endPoint = `/api/Company/GetCustomerDetailByCustomerId`\r\n return api.post(endPoint, customerIds)\r\n }\r\n addlocationdetails(payload: any) {\r\n const endPoint = \"/api/Location/AddLocationDetails\"\r\n return api\r\n .post(endPoint, payload)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n updatelocationdetails(payload: any) {\r\n const endPoint = \"/api/Location/UpdateLocationDetails\"\r\n return api\r\n .put(endPoint, payload)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n getalllocationsbyaccount(customerId) {\r\n const endPoint = `/api/Location/GetAllLocationsByAccount/${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n getCompanyDetails(customerId) {\r\n const endPoint = `/api/Company/GetCompanyDetails?customerId=${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n addCompanyDetails(payload: any, config: any) {\r\n const endPoint = \"/api/Company/AddCompanyDetails\"\r\n return api.savefile(endPoint, payload, config)\r\n }\r\n deleteCompanyLogo(customerId) {\r\n const endPoint = `api/Company/DeleteCompanyLogo?accountId=${customerId}`\r\n return api.delete(endPoint, {})\r\n }\r\n\r\n downloadlocationsbyaccount(customerId) {\r\n const endPoint = `/api/Location/DownloadLocationsByAccount/${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n getlocationbystore(storeId) {\r\n const endPoint = `/api/Location/GetLocationByStore/${storeId}`\r\n return api.findAll(endPoint)\r\n }\r\n bulkUpdateLocation(payload: any, config: any) {\r\n let params = { ...payload }\r\n let fileData = params.fileData ? encrypt(params.fileData) : \"\"\r\n params.fileData = fileData\r\n const endPoint = \"/api/Location/AddLocationBulk\"\r\n return api.saveWithParams(endPoint, params, config)\r\n }\r\n getCountryDetails() {\r\n const endPoint = `/api/Location/GetCountryDetails`\r\n return api.findAll(endPoint)\r\n }\r\n getStateDetails(countryId) {\r\n const endPoint = `/api/Location/GetStateDetailsByCountryId/${countryId}`\r\n return api.findAll(endPoint)\r\n }\r\n getTimeZoneDetails() {\r\n //const endPoint = `api/Lookup/GetLookUpDataByType?lookupType=US_Standard_TimeZones`\r\n const endPoint = `api/Lookup/GetTimeZones`\r\n return api.findAll(endPoint)\r\n }\r\n addLocationAttributeDetails(payload: any) {\r\n const endPoint = \"api/Customer/AddLocationAttributeDetails\"\r\n return api\r\n .post(endPoint, payload)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n editCompanySettings(payload: any) {\r\n const endPoint = `/api/Company/UpdateCompanyInfo`\r\n return api.put(endPoint, payload)\r\n }\r\n updateSurveyOption(payload: any) {\r\n const endPoint = `/api/Company/UpdateCustomerSatisfactionSurvey`\r\n return api.put(endPoint, payload)\r\n }\r\n}\r\n//END-NOSCAN\r\n","import i18next from \"i18next\"\r\nimport moment from \"moment\"\r\nimport { languageCodeMap } from \"src/utils/constants\"\r\nconst DateFormat = props => {\r\n const lang = i18next.language\r\n let breakDandT = true\r\n let localTimeString = \"-\"\r\n let date\r\n let time\r\n let isLocal: boolean = props.isLocal || false\r\n let isEvent: boolean = props.isEvent || false\r\n let onlyDate: boolean = props.onlyDate || false\r\n moment.locale(languageCodeMap[lang])\r\n if (!isEvent) {\r\n const estDate = moment.utc(props.value).subtract(5, \"hours\")\r\n date = estDate.format(\"DD-MMM-YYYY\").toLocaleUpperCase()\r\n time = `${estDate.format(\"hh:mm A\").toLocaleUpperCase()} (EST)`\r\n } else if (isLocal) {\r\n date = moment\r\n .utc(props.value)\r\n .local()\r\n .format(\"DD-MMM-YYYY\")\r\n .toLocaleUpperCase()\r\n time = moment.utc(props.value).local().format(\"hh:mm A\").toLocaleUpperCase()\r\n } else if (onlyDate) {\r\n date = moment\r\n .utc(props.value)\r\n .utcOffset(0)\r\n .format(\"DD-MMM-YYYY\")\r\n .toLocaleUpperCase()\r\n time = \"\"\r\n } else {\r\n date = moment\r\n .utc(props.value)\r\n .utcOffset(0)\r\n .format(\"DD-MMM-YYYY\")\r\n .toLocaleUpperCase()\r\n time = moment\r\n .utc(props.value)\r\n .utcOffset(0)\r\n .format(\"hh:mm A\")\r\n .toLocaleUpperCase()\r\n }\r\n if (props.breakDandT === false) breakDandT = false\r\n if (props.value) {\r\n return (\r\n <>\r\n {date}\r\n {breakDandT &&
    }\r\n {\" \"} {time}\r\n \r\n )\r\n } else {\r\n return {localTimeString}\r\n }\r\n}\r\n\r\nexport default DateFormat\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\n\r\nexport interface SQLTestColumnSliceType {\r\n columnsRedux: {\r\n SQL: string\r\n columns: {\r\n CharacterLength: null | string\r\n ColumnName: string\r\n Datatype: string\r\n NumericLength: number\r\n }[]\r\n }\r\n}\r\n\r\nconst initialState: SQLTestColumnSliceType = {\r\n columnsRedux: {} as SQLTestColumnSliceType[\"columnsRedux\"]\r\n}\r\nexport const columnSlice = createSlice({\r\n name: \"column\",\r\n initialState,\r\n reducers: {\r\n setColumnsRedux: (state, _action: PayloadAction) => {\r\n state.columnsRedux = { ..._action.payload }\r\n }\r\n },\r\n extraReducers: builder => {}\r\n})\r\nexport const { setColumnsRedux } = columnSlice.actions\r\nexport default columnSlice.reducer\r\n","import { renderRowLayoutChildren } from \"../helpers\"\r\nconst ReadOnlyRow = _props => {\r\n let { data } = _props\r\n\r\n return (\r\n
    \r\n {renderRowLayoutChildren(data)}\r\n
    \r\n )\r\n}\r\n\r\nexport default ReadOnlyRow\r\n","import { Grid } from \"@mui/material\"\r\nimport React from \"react\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport shortid from \"shortid\"\r\nimport { margin_left_find_for_row } from \"../helpers\"\r\nimport { functionTypes, ROW } from \"../LRConstants\"\r\nimport ReadOnlyRow from \"./ReadOnlyRow\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport { setNewLookupRoutine } from \"src/redux/slices/configSlice\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { getTranslations, replaceAll } from \"./../../../../utils/helper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nconst ReadOnlyLayout = _props => {\r\n const { t } = useTranslation()\r\n let { form, index, type, component, countFieldComponent, bConfig, disable } =\r\n _props\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n let search = window.location.search\r\n\r\n const handleRedirectToNewLookup = () => {\r\n if (!disable) {\r\n if (form && form.Name) {\r\n let pathName = PATH.CREATE_LOOKUP\r\n if (component === CONFIG_MODULES.LookupRoutines) {\r\n pathName = PATH.CREATE_LOOKUP\r\n dispatch(setNewLookupRoutine(form))\r\n } else if (\r\n [\r\n CONFIG_MODULES.CountPrograms.setup,\r\n CONFIG_MODULES.CountPrograms.validation,\r\n CONFIG_MODULES.CountPrograms.Lookup\r\n ].includes(component)\r\n ) {\r\n pathName = PATH.COUNT_PROGRAM_INSTRUCTIONS\r\n } else if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n pathName = PATH.AUDITS_INSTRUCTIONS\r\n } else if (\r\n [\r\n CONFIG_MODULES.CountFieldInstructions.validation,\r\n CONFIG_MODULES.CountFieldInstructions.Lookup\r\n ].includes(component)\r\n ) {\r\n pathName = PATH.COUNT_FIELDS_INSTRUCTIONS\r\n }\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(pathName + search, {\r\n lookup: JSON.stringify(form),\r\n index: index,\r\n type: type,\r\n component: component,\r\n bConfig: bConfig,\r\n countFieldComponent: countFieldComponent\r\n })\r\n })\r\n }\r\n }\r\n }\r\n const renderIfStatement = (row, index) => {\r\n const row1 = {\r\n ...row,\r\n ...{\r\n type: ROW,\r\n label: row.function.toUpperCase(),\r\n parameters: []\r\n }\r\n }\r\n return (\r\n <>\r\n \r\n \r\n )\r\n }\r\n const renderLayout = () => {\r\n let margin_left = 0\r\n return (\r\n <>\r\n {form.Instructions && form.Instructions.length ? (\r\n form.Instructions.map((row: any, index: number) => {\r\n const { ml, start } = margin_left_find_for_row(row, margin_left)\r\n margin_left = ml\r\n\r\n row = {\r\n ...row,\r\n ...{ ml: start ? margin_left - 1 : margin_left }\r\n }\r\n let isRowDisplay = true\r\n if (\r\n row?.function === functionTypes.Else &&\r\n form.Instructions[index + 1]?.function === functionTypes.Endif\r\n ) {\r\n isRowDisplay = false\r\n }\r\n let locContent = row?.content\r\n\r\n if (\r\n [CONFIG_MODULES.AuditRule, CONFIG_MODULES.Audits].includes(\r\n component\r\n )\r\n ) {\r\n locContent = replaceAll(row?.content, \"IF\", \"\")\r\n if (\r\n [functionTypes.Else, functionTypes.Endif].includes(\r\n row?.function\r\n )\r\n ) {\r\n isRowDisplay = false\r\n }\r\n }\r\n\r\n if (isRowDisplay) {\r\n row = {\r\n ...row,\r\n ...{ content: locContent }\r\n }\r\n return (\r\n \r\n {row.function === functionTypes.If ? (\r\n renderIfStatement(row, index)\r\n ) : (\r\n \r\n )}\r\n \r\n )\r\n } else {\r\n return \r\n }\r\n })\r\n ) : (\r\n <>{getTranslations(t, Translates.Click_here_to_add_instructions)}\r\n )}\r\n \r\n )\r\n }\r\n return (\r\n \r\n \r\n {renderLayout()}\r\n \r\n \r\n )\r\n}\r\nexport default ReadOnlyLayout\r\n","export const b2cPolicies = {\r\n authorities: {\r\n signUpSignIn: {\r\n authority: process.env.REACT_APP_AD_AUTHORITY_URL\r\n }\r\n },\r\n authorityDomain: process.env.REACT_APP_AUTHORITY_DOMAIN\r\n}\r\n\r\nexport const msalConfig = {\r\n auth: {\r\n clientId: process.env.REACT_APP_AD_CLIENT_ID,\r\n authority: b2cPolicies.authorities.signUpSignIn.authority,\r\n knownAuthorities: [\r\n b2cPolicies.authorityDomain,\r\n process.env.REACT_APP_KNOWN_AUTH\r\n ],\r\n redirectUri: process.env.REACT_APP_REDIRECT_URL,\r\n postLogoutRedirectUri: \"/\",\r\n navigateToLoginRequestUrl: false\r\n },\r\n cache: {\r\n cacheLocation: \"sessionStorage\",\r\n storeAuthStateInCookie: false\r\n },\r\n system: {\r\n loggerOptions: {\r\n loggerCallback: (level, message, containsPii) => {\r\n if (containsPii) {\r\n return\r\n }\r\n }\r\n }\r\n }\r\n}\r\nexport const tokenRequest = {\r\n scopes: [`${process.env.REACT_APP_REQUEST_SCOPE}`]\r\n}\r\nexport const request = {\r\n loginHint: \"\",\r\n domainHint: \"\",\r\n scopes: [`${process.env.REACT_APP_REQUEST_SCOPE}`]\r\n}\r\n\r\n// Add the endpoints here for Microsoft Graph API services you'd like to use.\r\nexport const graphConfig = {\r\n graphMeEndpoint: \"https://graph.microsoft.com/v1.0/me\"\r\n}\r\nexport const loginRequest = {\r\n scopes: []\r\n}\r\n","import { createAsyncThunk, createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport { ConfigService } from \"src/service/config.service\"\r\nimport { initCountFields } from \"src/configurationPortal/pages/CountFields/Constants\"\r\nimport { IConfigCountProgram, IFormCountProgram } from \"src/utils/types/types\"\r\n\r\nexport interface ConfigState {\r\n status: string\r\n configDetails: any\r\n isGetConfigDecrypt: boolean\r\n generalSettings: any\r\n accuracySettings: any\r\n efficiencySettings: any\r\n locationCategories: any[]\r\n Reports: any[]\r\n countFields: any\r\n defaultCountFields: any\r\n configName: any\r\n configType: any\r\n lookupRoutines: any[]\r\n newLookupRoutine: any\r\n newReportPrompts: any\r\n newReports: any\r\n newSQLQuery: string\r\n newSQLQueryColumns: any[]\r\n newReportSQLQueryColumns: any[]\r\n Outputs: any[]\r\n currentOutputFile: any\r\n Audits: any[]\r\n newReportColumns: any\r\n countPrograms: any[]\r\n inputFiles: any[]\r\n editColumns: any[]\r\n outputColumns: any[]\r\n outputSubTotals: any[]\r\n outputGrandTotals: any[]\r\n fixedLengthInputFields: any[]\r\n delimitedInputFields: any[]\r\n excelInputFields: any[]\r\n customerFormValues: any\r\n reportSubTotals: any\r\n reportColumnError: boolean\r\n reportGrandTotals: any\r\n configDataHookCalled: boolean\r\n newCountProgram: IFormCountProgram\r\n newTargetLocationAuditRule: any[]\r\n newTargetRecordAuditRule: any[]\r\n newRandomAuditRule: any[]\r\n newFollowUpAuditRule: any[]\r\n warnOnTabChange: boolean\r\n customerConfigurations: any[]\r\n isGetConfigsDecrypt: boolean\r\n customerConfigurationsStatus: string\r\n reduxCountScreenTotals: string\r\n reduxProductKey: any\r\n reduxOutOfRangeCountMethod: string\r\n outputDestination: any\r\n}\r\nexport const initialState: ConfigState = {\r\n status: \"\",\r\n configDetails: {},\r\n isGetConfigDecrypt: false,\r\n generalSettings: {},\r\n accuracySettings: {},\r\n efficiencySettings: {},\r\n locationCategories: [],\r\n Reports: [],\r\n countFields: {},\r\n defaultCountFields: { ...initCountFields },\r\n configName: \"\",\r\n configType: \"\",\r\n lookupRoutines: [],\r\n newLookupRoutine: {},\r\n newReportPrompts: [],\r\n newReports: {},\r\n newSQLQuery: \"\",\r\n newSQLQueryColumns: [],\r\n newReportSQLQueryColumns: [],\r\n Outputs: [],\r\n Audits: [],\r\n currentOutputFile: [],\r\n newReportColumns: [],\r\n countPrograms: [] as IConfigCountProgram[],\r\n inputFiles: [],\r\n editColumns: [],\r\n outputColumns: [],\r\n outputSubTotals: [],\r\n outputGrandTotals: [],\r\n fixedLengthInputFields: [],\r\n delimitedInputFields: [],\r\n excelInputFields: [],\r\n customerFormValues: {},\r\n reportSubTotals: [],\r\n reportColumnError: false,\r\n reportGrandTotals: [],\r\n configDataHookCalled: false,\r\n newTargetLocationAuditRule: [],\r\n newTargetRecordAuditRule: [],\r\n newRandomAuditRule: [],\r\n newFollowUpAuditRule: [],\r\n newCountProgram: {} as IFormCountProgram,\r\n warnOnTabChange: false,\r\n customerConfigurations: [],\r\n isGetConfigsDecrypt: false,\r\n customerConfigurationsStatus: \"\",\r\n reduxCountScreenTotals: \"\",\r\n reduxProductKey: \"\",\r\n reduxOutOfRangeCountMethod: \"\",\r\n outputDestination: {}\r\n}\r\nconst configService = new ConfigService()\r\nexport const getConfiguration = createAsyncThunk(\r\n \"configList/getConfiguration\",\r\n async (configId: any) => {\r\n return configService.getConfiguration(configId)\r\n }\r\n)\r\nexport const getConfigDetails = createAsyncThunk(\r\n \"configList/getConfigDetails\",\r\n async (customerId: any) => {\r\n return configService.getConfigDetails([...customerId].flat(Infinity))\r\n }\r\n)\r\nexport const configSlice = createSlice({\r\n name: \"configList\",\r\n initialState,\r\n reducers: {\r\n setReduxCountScreenTotals: (state, _action: PayloadAction) => {\r\n state.reduxCountScreenTotals = _action.payload\r\n },\r\n setReduxProductKey: (state, _action: PayloadAction) => {\r\n state.reduxProductKey = _action.payload\r\n },\r\n setReduxOutOfRangeCountMethod: (state, _action: PayloadAction) => {\r\n state.reduxOutOfRangeCountMethod = _action.payload\r\n },\r\n setConfigDetails: (state, _action: PayloadAction) => {\r\n state.isGetConfigDecrypt = true\r\n state.configDetails = { ..._action.payload }\r\n },\r\n setGeneralSettings: (state, _action: PayloadAction) => {\r\n state.generalSettings = { ..._action.payload }\r\n },\r\n setEfficiencySettings: (state, _action: PayloadAction) => {\r\n state.efficiencySettings = { ..._action.payload }\r\n },\r\n setAccuracySettings: (state, _action: PayloadAction) => {\r\n state.accuracySettings = { ..._action.payload }\r\n },\r\n setLocationCategories: (state, _action: PayloadAction) => {\r\n state.locationCategories = [..._action.payload]\r\n },\r\n setReports: (state, _action: PayloadAction) => {\r\n state.Reports = [..._action.payload]\r\n },\r\n setNewReportPrompts: (state, _action: PayloadAction) => {\r\n state.newReportPrompts = [..._action.payload]\r\n },\r\n setNewReports: (state, _action: PayloadAction) => {\r\n state.newReports = { ..._action.payload }\r\n },\r\n setNewReportColumns: (state, _action: PayloadAction) => {\r\n state.newReportColumns = [..._action.payload]\r\n },\r\n setSQLQuery: (state, _action: PayloadAction) => {\r\n state.newSQLQuery = _action.payload\r\n },\r\n setSQLQueryColumns: (state, _action: PayloadAction) => {\r\n state.newSQLQueryColumns = _action.payload\r\n },\r\n setReportSQLQueryColumns: (state, _action: PayloadAction) => {\r\n state.newReportSQLQueryColumns = _action.payload\r\n },\r\n setAudits: (state, _action: PayloadAction) => {\r\n state.Audits = _action.payload\r\n },\r\n setNewTargetLocationAuditRule: (state, _action: PayloadAction) => {\r\n state.newTargetLocationAuditRule = [..._action.payload]\r\n },\r\n setNewTargetRecordAuditRule: (state, _action: PayloadAction) => {\r\n state.newTargetRecordAuditRule = [..._action.payload]\r\n },\r\n setNewRandomAuditRule: (state, _action: PayloadAction) => {\r\n state.newRandomAuditRule = [..._action.payload]\r\n },\r\n setNewFollowUpAuditRule: (state, _action: PayloadAction) => {\r\n state.newFollowUpAuditRule = [..._action.payload]\r\n },\r\n setCountFields: (state, _action: PayloadAction) => {\r\n state.countFields = { ..._action.payload }\r\n },\r\n setCurrentOutputFile: (state, _action: PayloadAction) => {\r\n state.currentOutputFile = { ..._action.payload }\r\n },\r\n setDefaultCountFields: (state, _action: PayloadAction) => {\r\n let defaultCountFields = {\r\n ...state.countFields,\r\n ...state.defaultCountFields,\r\n ..._action.payload?.data\r\n }\r\n if (_action.payload?.type === \"DELETE\") {\r\n state.defaultCountFields = {\r\n ..._action.payload.data\r\n }\r\n } else {\r\n state.defaultCountFields = defaultCountFields\r\n }\r\n },\r\n setDefaultConfigName: (state, _action: PayloadAction) => {\r\n state.configName = _action.payload\r\n },\r\n setDefaultConfigType: (state, _action: PayloadAction) => {\r\n state.configType = _action.payload\r\n },\r\n setLookupRoutines: (state, _action: PayloadAction) => {\r\n state.lookupRoutines = [..._action.payload]\r\n },\r\n setNewLookupRoutine: (state, _action: PayloadAction) => {\r\n state.newLookupRoutine = { ..._action.payload }\r\n },\r\n\r\n setOutputFiles: (state, _action: PayloadAction) => {\r\n state.Outputs = [..._action.payload]\r\n },\r\n setCountPrograms: (state, _action: PayloadAction) => {\r\n state.countPrograms = [..._action.payload]\r\n },\r\n setInputFiles: (state, _action: PayloadAction) => {\r\n state.inputFiles = [..._action.payload]\r\n },\r\n setEditColumns: (state, _action: PayloadAction) => {\r\n state.editColumns = [..._action.payload]\r\n },\r\n setOutputColumns: (state, _action: PayloadAction) => {\r\n state.outputColumns = [..._action.payload]\r\n },\r\n setOutputSubTotals: (state, _action: PayloadAction) => {\r\n state.outputSubTotals = [..._action.payload]\r\n },\r\n setOutputGrandTotals: (state, _action: PayloadAction) => {\r\n state.outputGrandTotals = [..._action.payload]\r\n },\r\n setFixedLengthInputFields: (state, _action: PayloadAction) => {\r\n state.fixedLengthInputFields = [..._action.payload]\r\n },\r\n setDelimitedInputFields: (state, _action: PayloadAction) => {\r\n state.delimitedInputFields = [..._action.payload]\r\n },\r\n setExcelInputFields: (state, _action: PayloadAction) => {\r\n state.excelInputFields = [..._action.payload]\r\n },\r\n setCustomerFormValues: (state, _action: PayloadAction) => {\r\n state.customerFormValues = { ..._action.payload }\r\n },\r\n setReportSubTotals: (state, _action: PayloadAction) => {\r\n state.reportSubTotals = [..._action.payload]\r\n },\r\n setReportColumnError: (state, _action: PayloadAction) => {\r\n state.reportColumnError = _action.payload\r\n },\r\n setReportGrandTotals: (state, _action: PayloadAction) => {\r\n state.reportGrandTotals = [..._action.payload]\r\n },\r\n setConfigDataHookCalled: (state, _action: PayloadAction) => {\r\n state.configDataHookCalled = _action.payload\r\n },\r\n setNewCountProgram: (state, _action: PayloadAction) => {\r\n state.newCountProgram = { ..._action.payload }\r\n },\r\n updateWarnOnTabChange: (state, _action: PayloadAction) => {\r\n state.warnOnTabChange = _action.payload\r\n return state\r\n },\r\n setCustomerConfiguration: (state, _action: PayloadAction) => {\r\n state.customerConfigurations = _action.payload\r\n state.isGetConfigsDecrypt = true\r\n return state\r\n },\r\n setOutputDestination: (state, _action: PayloadAction) => {\r\n state.outputDestination = { ..._action.payload }\r\n }\r\n },\r\n extraReducers: builder => {\r\n builder.addCase(getConfiguration.pending, state => {\r\n state.status = \"loading\"\r\n })\r\n //istanbul ignore next\r\n builder.addCase(getConfiguration.fulfilled, (state, { payload }) => {\r\n state.status = \"success\"\r\n state.isGetConfigDecrypt = false\r\n state.configDetails = payload.data\r\n })\r\n builder.addCase(getConfiguration.rejected, state => {\r\n state.status = \"failed\"\r\n })\r\n builder.addCase(getConfigDetails.pending, state => {\r\n state.customerConfigurationsStatus = \"loading\"\r\n })\r\n //istanbul ignore next\r\n builder.addCase(getConfigDetails.fulfilled, (state, { payload }) => {\r\n state.customerConfigurationsStatus = \"success\"\r\n state.isGetConfigsDecrypt = false\r\n state.customerConfigurations = payload.data || []\r\n })\r\n builder.addCase(getConfigDetails.rejected, state => {\r\n state.customerConfigurationsStatus = \"failed\"\r\n })\r\n }\r\n})\r\n\r\nexport const {\r\n setConfigDetails,\r\n setGeneralSettings,\r\n setEfficiencySettings,\r\n setAccuracySettings,\r\n setLocationCategories,\r\n setReports,\r\n setCountFields,\r\n setDefaultCountFields,\r\n setDefaultConfigName,\r\n setDefaultConfigType,\r\n setLookupRoutines,\r\n setNewReportPrompts,\r\n setNewReports,\r\n setSQLQuery,\r\n setSQLQueryColumns,\r\n setReportSQLQueryColumns,\r\n setOutputFiles,\r\n setAudits,\r\n setNewReportColumns,\r\n setCountPrograms,\r\n setCurrentOutputFile,\r\n setInputFiles,\r\n setEditColumns,\r\n setOutputColumns,\r\n setOutputSubTotals,\r\n setOutputGrandTotals,\r\n setFixedLengthInputFields,\r\n setDelimitedInputFields,\r\n setExcelInputFields,\r\n setCustomerFormValues,\r\n setReportSubTotals,\r\n setReportColumnError,\r\n setReportGrandTotals,\r\n setConfigDataHookCalled,\r\n setNewCountProgram,\r\n setNewLookupRoutine,\r\n setNewTargetRecordAuditRule,\r\n setNewTargetLocationAuditRule,\r\n setNewRandomAuditRule,\r\n setNewFollowUpAuditRule,\r\n updateWarnOnTabChange,\r\n setCustomerConfiguration,\r\n setReduxCountScreenTotals,\r\n setReduxProductKey,\r\n setReduxOutOfRangeCountMethod,\r\n setOutputDestination\r\n} = configSlice.actions\r\n\r\nexport default configSlice.reducer\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\n\r\nexport interface ReservationsState {\r\n status: string\r\n reservationFilters: any\r\n reservationPrevFilters: any\r\n validReservationColumnList: string[]\r\n csvReservationColumnList: string[]\r\n reservationFileData: any\r\n reservationMappingData: any\r\n mappingPayloadData: any\r\n bulkReservationFilePath: string\r\n reservationSort: any\r\n reservationColumn: any\r\n}\r\n\r\nconst initialState = {\r\n status: \"\",\r\n csvReservationColumnList: [],\r\n mappingPayloadData: {},\r\n reservationFileData: [\"\"],\r\n reservationFilters: {\r\n status: [\"Pending\", \"Confirmed\"],\r\n country: [],\r\n sDate: \"\",\r\n eDate: \"\"\r\n },\r\n bulkReservationFilePath: \"\",\r\n\r\n reservationPrevFilters: {\r\n status: [\"Pending\", \"Confirmed\"],\r\n country: [],\r\n sDate: \"\",\r\n eDate: \"\"\r\n },\r\n reservationMappingData: {},\r\n validReservationColumnList: [\r\n \"Reservation\",\r\n \"Country\",\r\n \"StartDate\",\r\n \"EndDate\",\r\n \"ReservedDevices\",\r\n \"AverageWisTagsRequired\",\r\n \"TrainingDays\",\r\n \"EventDays\",\r\n \"Notes\",\r\n \"IsConfirmed\",\r\n \"Confirmation\"\r\n ],\r\n reservationSort: \"\",\r\n reservationColumn: \"\"\r\n}\r\n\r\nexport const reservationsSlice = createSlice({\r\n name: \"reservationsList\",\r\n initialState,\r\n reducers: {\r\n setReservationFilters: (state, _action: PayloadAction) => {\r\n state.reservationFilters = {\r\n ...state.reservationFilters,\r\n ..._action.payload\r\n }\r\n },\r\n setReservationPrevFilters: (state, _action: PayloadAction) => {\r\n state.reservationPrevFilters = {\r\n ...state.reservationPrevFilters,\r\n ..._action.payload\r\n }\r\n },\r\n setReservationFileData: (state, _action: PayloadAction) => {\r\n state.reservationFileData = _action.payload\r\n },\r\n setCSVReservationColumnList: (state: any, _action: PayloadAction) => {\r\n state.csvReservationColumnList = [..._action.payload]\r\n },\r\n setReservationMappingData: (state, _action: PayloadAction) => {\r\n state.reservationMappingData = { ..._action.payload }\r\n },\r\n setMappingPayloadData: (state, _action: PayloadAction) => {\r\n state.mappingPayloadData = _action.payload\r\n },\r\n setReservationReset: () => initialState,\r\n\r\n setReservationLocationFile: (state, _action: PayloadAction) => {\r\n state.bulkReservationFilePath = _action.payload\r\n },\r\n setReservationSort: (state, _action: PayloadAction) => {\r\n state.reservationSort = _action.payload\r\n },\r\n setReservationColumn: (state, _action: PayloadAction) => {\r\n state.reservationColumn = _action.payload\r\n }\r\n }\r\n})\r\nexport const {\r\n setReservationFilters,\r\n setCSVReservationColumnList,\r\n setReservationFileData,\r\n setReservationMappingData,\r\n setMappingPayloadData,\r\n setReservationReset,\r\n setReservationPrevFilters,\r\n setReservationLocationFile,\r\n setReservationSort,\r\n setReservationColumn\r\n} = reservationsSlice.actions\r\nexport default reservationsSlice.reducer\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport { ConfigOutputBundleType } from \"src/configurationPortal/pages/OutputBundles/Utils/Types\"\r\n\r\nexport interface OutputBundleSliceType {\r\n outputBundlesRedux: ConfigOutputBundleType[]\r\n isSetOutputBundlesRedux: boolean\r\n}\r\n\r\nconst initialState: OutputBundleSliceType = {\r\n outputBundlesRedux: [],\r\n isSetOutputBundlesRedux: false\r\n}\r\nexport const outputBundleSlice = createSlice({\r\n name: \"outputBundle\",\r\n initialState,\r\n reducers: {\r\n setOutputBundlesRedux: (state, _action: PayloadAction) => {\r\n state.outputBundlesRedux = [...(_action.payload || [])]\r\n state.isSetOutputBundlesRedux = true\r\n }\r\n },\r\n extraReducers: builder => {}\r\n})\r\nexport const { setOutputBundlesRedux } = outputBundleSlice.actions\r\nexport default outputBundleSlice.reducer\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\n\r\nexport interface CustomerSelectionSliceType {\r\n modalOpen: boolean\r\n isRedirectHome: boolean\r\n}\r\n\r\nconst initialState: CustomerSelectionSliceType = {\r\n modalOpen: false,\r\n isRedirectHome: false\r\n}\r\nexport const CustomerSelectionSlice = createSlice({\r\n name: \"CustomerSelection\",\r\n initialState,\r\n reducers: {\r\n setModalOpen: (state, _action: PayloadAction) => {\r\n state.modalOpen = _action.payload\r\n },\r\n setIsRedirectHome: (state, _action: PayloadAction) => {\r\n state.isRedirectHome = _action.payload\r\n }\r\n },\r\n extraReducers: builder => {}\r\n})\r\nexport const { setModalOpen, setIsRedirectHome } =\r\n CustomerSelectionSlice.actions\r\nexport default CustomerSelectionSlice.reducer\r\n","import {\r\n SelectionOptions,\r\n checkBarcodeType,\r\n checkDataType,\r\n sourceForCombinedCountOptions\r\n} from \"./fieldOptions\"\r\nimport functionNames, {\r\n arrayWithRequired,\r\n numberWithRequired,\r\n stringWithRequired\r\n} from \"./functionNames\"\r\n\r\nconst functionTypes = functionNames\r\nconst SIDEBAR_ITEM = \"sidebarItem\"\r\n\r\nconst inputSetupFunctions = [\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.AllowScan,\r\n content: \"Allow Scan\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"multiDropdown\",\r\n name: \"parameter1\",\r\n label: \"Allow Scan*\",\r\n options: checkBarcodeType,\r\n validation: { ...arrayWithRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.AllowKey,\r\n content: \"Allow Key\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"dropdown\",\r\n name: \"parameter1\",\r\n label: \"Allow Key\",\r\n options: checkDataType,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{ oneOf: checkDataType.map(i => i.value) }\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Number of Decimals*\",\r\n name: \"parameter2\",\r\n defaultValue: 0,\r\n validation: { ...numberWithRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.AutoStore,\r\n content: \"Auto Store\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"radio\",\r\n name: \"parameter1\",\r\n options: SelectionOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{ oneOf: SelectionOptions.map(i => i.value) }\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Constant*\",\r\n name: \"parameter2\",\r\n validation: { ...stringWithRequired },\r\n conditions: { name: \"parameter1\" }\r\n },\r\n {\r\n type: \"autoComplete\",\r\n name: \"parameter3\",\r\n label: \"Another Source*\",\r\n options: sourceForCombinedCountOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{\r\n oneOf: [...[\"\"], ...sourceForCombinedCountOptions.map(i => i.value)]\r\n }\r\n },\r\n conditions: { name: \"parameter1\" }\r\n }\r\n ]\r\n }\r\n].sort((a, b) => {\r\n if (a.function > b.function) {\r\n return 1\r\n } else if (b.function > a.function) {\r\n return -1\r\n } else {\r\n return 0\r\n }\r\n})\r\n\r\nexport default inputSetupFunctions\r\n","import {\r\n LookupRoutineCopyOverRide,\r\n lookupTableOptions,\r\n TrueOrFalse\r\n} from \"./fieldOptions\"\r\nimport functionNames, {\r\n stringWithNotRequired,\r\n stringWithRequired\r\n} from \"./functionNames\"\r\n\r\nconst functionTypes = functionNames\r\nconst SIDEBAR_ITEM = \"sidebarItem\"\r\n\r\nconst lookupFunctions = [\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Lookup,\r\n content: \"Lookup\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"dropdown\",\r\n label: \"Table Name*\",\r\n name: \"parameter1\",\r\n options: lookupTableOptions, //come from api so load option data while load fields\r\n validation: {\r\n ...stringWithRequired\r\n }\r\n },\r\n {\r\n type: \"dropdown\",\r\n label: \"Field Name*\",\r\n name: \"parameter2\",\r\n options: [], //come from api so load option data while load fields\r\n validation: {\r\n ...stringWithRequired\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.LookupRoutine,\r\n content: \"Lookup Routine\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"dropdown\",\r\n label: \"Name Of Lookup Routine*\",\r\n name: \"parameter1\",\r\n options: [],\r\n validation: {\r\n ...stringWithRequired\r\n }\r\n },\r\n {\r\n type: \"dropdown\",\r\n label: \"Error If Not Found*\",\r\n name: \"parameter2\",\r\n options: TrueOrFalse,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{ oneOf: TrueOrFalse.map(i => i.value) }\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Error Message*\",\r\n name: \"parameter3\",\r\n conditions: { name: \"parameter2\" },\r\n validation: { ...stringWithNotRequired }\r\n },\r\n {\r\n type: \"dropdown\",\r\n label: \"Allow Override*\",\r\n name: \"parameter4\",\r\n options: TrueOrFalse,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{ oneOf: TrueOrFalse.map(i => i.value) }\r\n }\r\n },\r\n {\r\n type: \"dropdown\",\r\n label: \"Copy Override Value To\",\r\n name: \"parameter5\",\r\n options: LookupRoutineCopyOverRide,\r\n validation: {\r\n ...stringWithNotRequired,\r\n ...{\r\n oneOf: [...[\"\"], ...LookupRoutineCopyOverRide.map(i => i.value)]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Error,\r\n content: \"Error\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Message\",\r\n name: \"parameter1\",\r\n validation: { ...stringWithRequired }\r\n },\r\n {\r\n type: \"dropdown\",\r\n label: \"Allow Override*\",\r\n name: \"parameter2\",\r\n options: TrueOrFalse,\r\n validation: {\r\n ...stringWithNotRequired,\r\n ...{ oneOf: [...[\"\"], ...TrueOrFalse.map(i => i.value)] }\r\n }\r\n },\r\n {\r\n type: \"dropdown\",\r\n label: \"Copy Override Value To\",\r\n name: \"parameter3\",\r\n options: LookupRoutineCopyOverRide,\r\n validation: {\r\n ...stringWithNotRequired,\r\n ...{\r\n oneOf: [...[\"\"], ...LookupRoutineCopyOverRide.map(i => i.value)]\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n].sort((a, b) => {\r\n if (a.function > b.function) {\r\n return 1\r\n } else if (b.function > a.function) {\r\n return -1\r\n } else {\r\n return 0\r\n }\r\n})\r\nexport default lookupFunctions\r\n","import { checkDigitOrAddCheckDigitInputs } from \"./booleanFunctions\"\r\n\r\nimport functionNames, {\r\n numberWithNotRequired,\r\n numberWithRequired,\r\n stringWithNotRequired,\r\n stringWithRequired\r\n} from \"./functionNames\"\r\n\r\nconst functionTypes = functionNames\r\nconst SIDEBAR_ITEM = \"sidebarItem\"\r\n\r\nconst stringFunctions = [\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Trim,\r\n content: \"Trim\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Enter Text\",\r\n name: \"parameter1\",\r\n validation: { ...stringWithNotRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.LTrim,\r\n content: \"Left Trim\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Enter Text\",\r\n name: \"parameter1\",\r\n validation: {\r\n ...stringWithNotRequired,\r\n ...{\r\n max: {\r\n max: 1,\r\n error: \"Left Trim character cannot be more than 1\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.RTrim,\r\n content: \"Right Trim\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Enter Text\",\r\n name: \"parameter1\",\r\n validation: {\r\n ...stringWithNotRequired,\r\n ...{\r\n max: {\r\n max: 1,\r\n error: \"Right Trim character cannot be more than 1\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.LPad,\r\n content: \"Left Pad\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Length*\",\r\n name: \"parameter1\",\r\n validation: {\r\n ...numberWithRequired,\r\n ...{\r\n min: {\r\n min: 1,\r\n error: \"Length should be more than 1\"\r\n }\r\n }\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Enter Text\",\r\n name: \"parameter2\",\r\n validation: {\r\n ...stringWithNotRequired,\r\n ...{\r\n min: {\r\n min: 1,\r\n error: \"Length should be 1(Single character)\"\r\n },\r\n max: {\r\n max: 1,\r\n error: \"Length should be 1(Single character)\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.RPad,\r\n content: \"Right Pad\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Length*\",\r\n name: \"parameter1\",\r\n validation: { ...numberWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Enter Text\",\r\n name: \"parameter2\",\r\n validation: { ...stringWithNotRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.SubString,\r\n content: \"Sub String\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Start Position*\",\r\n name: \"parameter1\",\r\n defaultValue: 0,\r\n validation: { ...numberWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Length \",\r\n name: \"parameter2\",\r\n validation: { ...numberWithNotRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.SubStringFromEnd,\r\n content: \"Substring From End\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Start Position*\",\r\n name: \"parameter1\",\r\n defaultValue: 0,\r\n validation: { ...numberWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Length\",\r\n name: \"parameter2\",\r\n validation: { ...numberWithNotRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.ToUpper,\r\n content: \"To Upper\",\r\n parameters: []\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.ToLower,\r\n content: \"To Lower\",\r\n parameters: []\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Remove,\r\n content: \"Remove\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Start Position*\",\r\n name: \"parameter1\",\r\n defaultValue: 0,\r\n validation: { ...numberWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Length\",\r\n name: \"parameter2\",\r\n validation: { ...numberWithNotRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Replace,\r\n content: \"Replace\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"String To Replace*\",\r\n name: \"parameter1\",\r\n validation: { ...stringWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"String To Replace With*\",\r\n name: \"parameter2\",\r\n validation: { ...stringWithRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.RemoveFromEnd,\r\n content: \"Remove From End\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Start Position*\",\r\n name: \"parameter1\",\r\n defaultValue: 0,\r\n validation: { ...numberWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Length\",\r\n name: \"parameter2\",\r\n validation: { ...numberWithNotRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Strip,\r\n content: \"Strip\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Enter Text*\",\r\n name: \"parameter1\",\r\n validation: { ...stringWithRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.StripControlChars,\r\n content: \"Strip Control Chars\",\r\n parameters: []\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Split,\r\n content: \"Split\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Delimiter*\",\r\n name: \"parameter1\",\r\n validation: { ...stringWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Index To Keep*\",\r\n name: \"parameter2\",\r\n defaultValue: 0,\r\n validation: { ...numberWithRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Insert,\r\n content: \"Insert\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Start Position*\",\r\n name: \"parameter1\",\r\n validation: { ...numberWithRequired }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"String To Insert*\",\r\n name: \"parameter2\",\r\n validation: { ...stringWithRequired }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.ExpandUpceToUpca,\r\n content: \"Expand UPCE To UPCA\",\r\n parameters: []\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.AddCheckDigit,\r\n content: \"Add Check Digit\",\r\n parameters: [],\r\n inputType: checkDigitOrAddCheckDigitInputs\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.RestoreOriginal,\r\n content: \"Restore Original\",\r\n parameters: []\r\n }\r\n].sort((a, b) => {\r\n if (a.function > b.function) {\r\n return 1\r\n } else if (b.function > a.function) {\r\n return -1\r\n } else {\r\n return 0\r\n }\r\n})\r\n\r\nexport default stringFunctions\r\n","import { SelectionOptions, sourceForCombinedCountOptions } from \"./fieldOptions\"\r\nimport functionNames, {\r\n numberWithRequired,\r\n stringWithRequired\r\n} from \"./functionNames\"\r\n\r\nconst functionTypes = functionNames\r\nconst SIDEBAR_ITEM = \"sidebarItem\"\r\n\r\n\r\nconst mathFunctions = [\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Add,\r\n content: \"Add\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"radio\",\r\n name: \"parameter1\",\r\n options: SelectionOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{ oneOf: SelectionOptions.map(i => i.value) }\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Constant*\",\r\n name: \"parameter2\",\r\n validation: {\r\n ...numberWithRequired\r\n },\r\n conditions: { name: \"parameter1\" }\r\n },\r\n {\r\n type: \"autoComplete\",\r\n name: \"parameter3\",\r\n label: \"Another Source*\",\r\n options: sourceForCombinedCountOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{\r\n oneOf: [...[\"\"], ...sourceForCombinedCountOptions.map(i => i.value)]\r\n }\r\n },\r\n conditions: { name: \"parameter1\" }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Subtract,\r\n content: \"Subtract\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"radio\",\r\n name: \"parameter1\",\r\n options: SelectionOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{ oneOf: SelectionOptions.map(i => i.value) }\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Constant*\",\r\n name: \"parameter2\",\r\n validation: { ...numberWithRequired },\r\n conditions: { name: \"parameter1\" }\r\n },\r\n {\r\n type: \"autoComplete\",\r\n name: \"parameter3\",\r\n label: \"Another Source*\",\r\n options: sourceForCombinedCountOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{\r\n oneOf: [...[\"\"], ...sourceForCombinedCountOptions.map(i => i.value)]\r\n }\r\n },\r\n conditions: { name: \"parameter1\" }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Multiply,\r\n content: \"Multiply\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"radio\",\r\n name: \"parameter1\",\r\n options: SelectionOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{ oneOf: SelectionOptions.map(i => i.value) }\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Constant*\",\r\n name: \"parameter2\",\r\n validation: { ...numberWithRequired },\r\n conditions: { name: \"parameter1\" }\r\n },\r\n {\r\n type: \"autoComplete\",\r\n name: \"parameter3\",\r\n label: \"Another Source*\",\r\n options: sourceForCombinedCountOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{\r\n oneOf: [...[\"\"], ...sourceForCombinedCountOptions.map(i => i.value)]\r\n }\r\n },\r\n conditions: { name: \"parameter1\" }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Divide,\r\n content: \"Divide\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"radio\",\r\n name: \"parameter1\",\r\n options: SelectionOptions,\r\n validation: {\r\n oneOf: SelectionOptions.map(i => i.value),\r\n validate: value => {\r\n const isValidNumber =\r\n typeof value === \"number\" && (value > 0 || value < 0)\r\n const isValidString =\r\n typeof value === \"string\" && value.trim().length > 0\r\n return isValidNumber || isValidString\r\n },\r\n error: \"Value must be either a valid number or a non-empty string.\"\r\n }\r\n },\r\n {\r\n type: \"inputText\",\r\n label: \"Constant*\",\r\n name: \"parameter2\",\r\n validation: {\r\n ...numberWithRequired,\r\n ...{\r\n min: {\r\n min: 0.0000001,\r\n error: \"Value should be more than 0\"\r\n }\r\n }\r\n },\r\n conditions: { name: \"parameter1\" }\r\n },\r\n {\r\n type: \"autoComplete\",\r\n name: \"parameter3\",\r\n label: \"Another Source*\",\r\n options: sourceForCombinedCountOptions,\r\n validation: {\r\n ...stringWithRequired,\r\n ...{\r\n oneOf: [...[\"\"], ...sourceForCombinedCountOptions.map(i => i.value)]\r\n }\r\n },\r\n conditions: { name: \"parameter1\" }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Round,\r\n content: \"Round\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Decimal Places*\",\r\n name: \"parameter1\",\r\n validation: {\r\n ...numberWithRequired,\r\n ...{\r\n min: {\r\n min: 0,\r\n error: \"Value should be more than 0\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Floor,\r\n content: \"Floor\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Decimal Places*\",\r\n name: \"parameter1\",\r\n validation: {\r\n ...numberWithRequired,\r\n ...{\r\n min: {\r\n min: 0,\r\n error: \"Value should be more than 0\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Ceil,\r\n content: \"Ceil\",\r\n parameters: [],\r\n inputType: [\r\n {\r\n type: \"inputText\",\r\n label: \"Decimal Places*\",\r\n name: \"parameter1\",\r\n validation: {\r\n ...numberWithRequired,\r\n ...{\r\n min: {\r\n min: 0,\r\n error: \"Value should be more than 0\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n].sort((a, b) => {\r\n if (a.function > b.function) {\r\n return 1\r\n } else if (b.function > a.function) {\r\n return -1\r\n } else {\r\n return 0\r\n }\r\n})\r\n\r\nexport default mathFunctions\r\n","import booleanFunctions, {\r\n booleanError,\r\n booleanErrorMessage,\r\n sourceField\r\n} from \"./booleanFunctions\"\r\nimport inputSetupFunctions from \"./inputSetupFunctions\"\r\nimport lookupFunctions from \"./lookupFunctions\"\r\nimport stringFunctions from \"./stringFunctions\"\r\nimport functionNames from \"./functionNames\"\r\nimport {\r\n SelectionOptions,\r\n CheckDigitRadioOptions,\r\n LookupRoutineCopyOverRide,\r\n sourceForCombinedCountOptions,\r\n TrueOrFalse\r\n} from \"./fieldOptions\"\r\nimport { AlertColor } from \"@mui/material\"\r\nimport mathFunctions from \"./mathFunctions\"\r\n\r\nexport const functionTypes = functionNames\r\nexport { utilTypes } from \"./functionNames\"\r\nexport const SIDEBAR_ITEM = \"sidebarItem\"\r\nexport const ROW = \"row\"\r\nexport const COLUMN = \"column\"\r\nexport const COMPONENT = \"component\"\r\n\r\nexport const initialData = {\r\n layout: [],\r\n components: {}\r\n}\r\nexport const ifElseInitialData = {\r\n layout: [],\r\n components: {}\r\n}\r\n\r\nexport const braces = {\r\n type: SIDEBAR_ITEM,\r\n function: functionTypes.Braces,\r\n content: \"()\",\r\n parameters: [],\r\n isExpandMore: true\r\n}\r\nexport class DefaultIfElseSnippet {\r\n \"Function\": \"If\"\r\n \"Condition\": []\r\n \"IfTrue\": []\r\n \"Else\": []\r\n \"ifId\": \"\"\r\n}\r\n\r\nexport const ifElse = [\r\n {\r\n type: SIDEBAR_ITEM,\r\n label: \"IF\",\r\n function: functionTypes.If,\r\n content: \"If\",\r\n parameters: [],\r\n isExpandMore: true\r\n }\r\n]\r\nexport const sideBarItemKeys = {\r\n booleanFunctions: \"booleanFunctions\",\r\n inputSetupFunctions: \"inputSetupFunctions\",\r\n lookupFunctions: \"lookupFunctions\",\r\n mathFunctions: \"mathFunctions\",\r\n stringFunctions: \"stringFunctions\",\r\n ifElse: \"ifElse\"\r\n}\r\n\r\nexport const SIDEBAR_ITEMS = [\r\n { [sideBarItemKeys.ifElse]: ifElse },\r\n { [sideBarItemKeys.mathFunctions]: mathFunctions },\r\n { [sideBarItemKeys.stringFunctions]: stringFunctions },\r\n { [sideBarItemKeys.booleanFunctions]: booleanFunctions },\r\n { [sideBarItemKeys.inputSetupFunctions]: inputSetupFunctions },\r\n { [sideBarItemKeys.lookupFunctions]: lookupFunctions }\r\n]\r\n\r\nexport const getDefaultValues = (item, inputTypes, parameters) => {\r\n let a = {}\r\n let parametersCopy = JSON.parse(JSON.stringify(parameters))\r\n if (\r\n [functionTypes.CheckDigit, functionTypes.AddCheckDigit].includes(\r\n item.function\r\n )\r\n ) {\r\n if (\r\n Array.isArray(parametersCopy) &&\r\n parametersCopy.length > 1 &&\r\n parametersCopy.length !== 5\r\n ) {\r\n parametersCopy.unshift(CheckDigitRadioOptions[2].value)\r\n }\r\n } else if ([functionTypes.LookupRoutine].includes(item.function)) {\r\n if (\r\n inputTypes?.length !== parametersCopy?.length &&\r\n parametersCopy?.length !== 1\r\n ) {\r\n let newPramArray: any = []\r\n const overrides = LookupRoutineCopyOverRide.map(i => i.value)\r\n if (\r\n overrides.includes(parametersCopy[2]) ||\r\n (parametersCopy[1] === true && !parametersCopy[2])\r\n ) {\r\n newPramArray.push(parametersCopy[0], false, \"\", true, parametersCopy[2])\r\n parametersCopy = newPramArray\r\n }\r\n }\r\n }\r\n\r\n inputTypes?.forEach((i, inx) => {\r\n let defval: any = \"\"\r\n\r\n if (\r\n ![sourceField.name, booleanError.name, booleanErrorMessage.name].includes(\r\n i.name\r\n )\r\n ) {\r\n if (Array.isArray(parametersCopy) && parametersCopy.length) {\r\n const newInx: number = [sourceField.name].includes(inputTypes[0]?.name)\r\n ? inx - 1\r\n : inx\r\n if (\r\n parametersCopy[newInx] ||\r\n ([\r\n functionTypes.AutoStore,\r\n functionTypes.Add,\r\n functionTypes.Multiply,\r\n functionTypes.Subtract,\r\n functionTypes.Divide\r\n ].includes(item.function) &&\r\n [1, 2].includes(inx))\r\n ) {\r\n defval = parametersCopy[newInx]\r\n\r\n if (\r\n [functionTypes.CheckDigit, functionTypes.AddCheckDigit].includes(\r\n item.function\r\n )\r\n ) {\r\n if (newInx === 4 && Array.isArray(defval)) {\r\n defval = defval.join(\",\")\r\n }\r\n } else if (\r\n [functionTypes.CheckLengths, functionTypes.IsIn].includes(\r\n item.function\r\n )\r\n ) {\r\n if (newInx === 0) {\r\n defval = parametersCopy.join(\",\")\r\n }\r\n } else if (\r\n [\r\n functionTypes.AutoStore,\r\n functionTypes.Add,\r\n functionTypes.Multiply,\r\n functionTypes.Subtract,\r\n functionTypes.Divide\r\n ].includes(item.function)\r\n ) {\r\n const sourceForCombinedCountOptionsArr =\r\n sourceForCombinedCountOptions.map(i => i.value)\r\n const paramNumber: boolean =\r\n !sourceForCombinedCountOptionsArr.includes(parametersCopy[0])\r\n\r\n defval = parametersCopy[0]\r\n if (newInx === 0) {\r\n defval = paramNumber\r\n ? SelectionOptions[0].value\r\n : SelectionOptions[1].value\r\n } else if (\r\n (newInx === 1 && !paramNumber) ||\r\n (newInx === 2 && paramNumber)\r\n ) {\r\n defval = \"\"\r\n }\r\n } else if (item.function === functionTypes.LookupRoutine) {\r\n if (newInx === 2) {\r\n defval =\r\n defval && Array.isArray(defval) && defval.length\r\n ? defval[0]?.[\"en-us\"]\r\n : \"\"\r\n }\r\n } else if (item.function === functionTypes.Error) {\r\n if (newInx === 0) {\r\n defval =\r\n defval && Array.isArray(defval) ? defval[0]?.[\"en-us\"] : \"\"\r\n }\r\n } else if (\r\n [functionTypes.CheckBarcodeType, functionTypes.AllowScan].includes(\r\n item.function\r\n )\r\n ) {\r\n defval = parametersCopy\r\n }\r\n\r\n if (defval === true) {\r\n defval = TrueOrFalse[0].value\r\n } else if (defval === false) {\r\n defval = TrueOrFalse[1].value\r\n }\r\n\r\n a = { ...a, ...{ [i.name]: defval } }\r\n }\r\n }\r\n }\r\n })\r\n\r\n return a\r\n}\r\n\r\nexport const lookupEmptyEditorError = {\r\n title: \"Empty instruction\",\r\n severity: \"error\" as AlertColor,\r\n content: \"Please do drag and drop before continue with this!!!\"\r\n}\r\n\r\nexport const lookupFormatError = {\r\n title: \"Format mismatched\",\r\n severity: \"error\" as AlertColor,\r\n content: \"Something wrong with the instruction!!!\"\r\n}\r\n","import { PERMISSIONS } from \"src/utils/constants\"\r\nimport { getPermissionsForUser } from \"../../utils/helper\"\r\nimport React, { useEffect, useState } from \"react\"\r\n\r\nfunction PermissionsAccessGate({\r\n children,\r\n feature,\r\n permissionKey,\r\n restriction = null as any\r\n}) {\r\n const [userPermissions, setUserPermissions] = useState([] as any)\r\n useEffect(() => {\r\n const _dt = getPermissionsForUser()\r\n let _data = (_dt || []).map((m: { Permissions: any[] }) => {\r\n return {\r\n ...m,\r\n Permissions: m?.Permissions?.map(e => e.toString().toLowerCase())\r\n }\r\n })\r\n\r\n setUserPermissions([..._data])\r\n }, [])\r\n\r\n const hasPermission = (feature, permissionKey) => {\r\n if (\r\n feature &&\r\n userPermissions.length > 0 &&\r\n !userPermissions\r\n .find(\r\n (f: { Feature: string }) =>\r\n f.Feature?.toLowerCase() === feature.toString().toLowerCase()\r\n )\r\n ?.Permissions.includes(permissionKey || \"\")\r\n ) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n }\r\n\r\n const checkRestriction = () => {\r\n if (restriction) {\r\n const _children = {\r\n ...children,\r\n props: { ...children.props, ...restriction }\r\n }\r\n return _children\r\n } else {\r\n return <>\r\n }\r\n }\r\n\r\n const permissionGranted = hasPermission(feature, permissionKey)\r\n\r\n if (\r\n !permissionGranted &&\r\n permissionKey &&\r\n [\r\n PERMISSIONS.UPDATE,\r\n PERMISSIONS.CREATE,\r\n PERMISSIONS.DOWNLOAD,\r\n PERMISSIONS.VIEW\r\n ].includes(permissionKey.toString().toLowerCase())\r\n ) {\r\n return checkRestriction()\r\n }\r\n\r\n return <>{children}\r\n}\r\n\r\nexport default React.memo(PermissionsAccessGate)\r\n","import React from \"react\"\r\nexport const fieldConstants = {\r\n SortOrder: {\r\n ASC: \"ASC\",\r\n DESC: \"DESC\"\r\n },\r\n SortColumns: {\r\n startDate: \"startDate\",\r\n lastUpdatedDate: \"lastUpdatedDate\",\r\n scheduledDateTime: \"scheduledDateTime\",\r\n createdDate: \"createdDate\",\r\n reservation: \"reservation\"\r\n },\r\n SortColumnType: {\r\n Date: \"Date\",\r\n Interger: \"Interger\"\r\n }\r\n}\r\nexport const timeOut = 1000\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport shortid from \"shortid\"\r\nimport {\r\n FormControl,\r\n FormControlLabel,\r\n FormHelperText,\r\n FormLabel,\r\n Radio,\r\n RadioGroup\r\n} from \"@mui/material\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { getFieldError } from \"./Helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\n\r\nexport type formControlLabel = {\r\n value: string | boolean\r\n className?: string\r\n label: string\r\n radio?: {\r\n className?: string\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n }\r\n default?: boolean\r\n disabled?: boolean\r\n}\r\n\r\nexport type Props = {\r\n className?: string\r\n name: string\r\n formLabel?: string\r\n formControl: {\r\n className?: string\r\n disabled?: boolean\r\n radioGroup: {\r\n row?: boolean\r\n formControlLabels: formControlLabel[]\r\n ariaLabelledby?: string\r\n name?: string\r\n onChange?: Function\r\n }\r\n defaultValue?: any\r\n value?: any\r\n }\r\n onChange?: Function\r\n disabled?: Function\r\n}\r\n\r\nconst MUIRadio = ({\r\n formLabel,\r\n name,\r\n className,\r\n formControl,\r\n onChange\r\n}: Props) => {\r\n const { t } = useTranslation()\r\n\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n let defVal: any = \"\"\r\n if (formControl.value !== undefined) {\r\n defVal = formControl.value\r\n } else if (formControl.defaultValue !== undefined) {\r\n defVal = formControl.defaultValue\r\n } else {\r\n formControl.radioGroup.formControlLabels.forEach(item => {\r\n if (item.default) {\r\n defVal = item.value\r\n }\r\n })\r\n }\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n return (\r\n (\r\n \r\n \r\n {formLabel}\r\n \r\n {\r\n field.onChange(e)\r\n updateWarnOnTabChangeToStore(true)\r\n if (formControl.radioGroup.onChange)\r\n formControl.radioGroup.onChange()\r\n if (onChange) onChange(e)\r\n }}\r\n >\r\n {formControl.radioGroup.formControlLabels.map((item, inx) => (\r\n \r\n }\r\n />\r\n ))}\r\n \r\n \r\n {ErrorText}\r\n \r\n \r\n )}\r\n />\r\n )\r\n}\r\n\r\nexport default MUIRadio\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\n\r\ninterface Templates {\r\n LOCATION: string\r\n RESERVATION: string\r\n SCHEDULE: string\r\n USER: string\r\n DEPARTMENT: string\r\n VARIANCE: string\r\n ADDRANGE: string\r\n}\r\nexport interface AuthState {\r\n isAutheticated: boolean\r\n loggedInEmail: string | null\r\n keys: Array\r\n templates: Templates\r\n}\r\n\r\nconst initialState: AuthState = {\r\n isAutheticated: false,\r\n loggedInEmail: localStorage.getItem(\"username\"),\r\n keys: [],\r\n templates: {\r\n LOCATION: \"\",\r\n RESERVATION: \"\",\r\n SCHEDULE: \"\",\r\n USER: \"\",\r\n DEPARTMENT: \"\",\r\n VARIANCE: \"\",\r\n ADDRANGE: \"\"\r\n }\r\n}\r\n\r\nexport const authSlice = createSlice({\r\n name: \"auth\",\r\n initialState,\r\n reducers: {\r\n logout: state => {\r\n // Redux Toolkit allows us to write \"mutating\" logic in reducers. It\r\n // doesn't actually mutate the state because it uses the Immer library,\r\n // which detects changes to a \"draft state\" and produces a brand new\r\n // immutable state based off those changes\r\n localStorage.removeItem(\"token\")\r\n state.isAutheticated = false\r\n },\r\n login: state => {\r\n state.isAutheticated = true\r\n },\r\n setLoginEmail: (state, _action: PayloadAction) => {\r\n state.loggedInEmail = _action.payload\r\n return state\r\n },\r\n setKeys: (state, _action: PayloadAction) => {\r\n state.keys = [..._action.payload]\r\n },\r\n setTemplates: (state, _action: PayloadAction) => {\r\n state.templates = {..._action.payload}\r\n }\r\n }\r\n})\r\n\r\n// Action creators are generated for each case reducer function\r\nexport const { logout, login, setLoginEmail, setKeys, setTemplates } = authSlice.actions\r\n\r\nexport default authSlice.reducer\r\n","import { getBreadcrumbConfig } from \"src/configurationPortal/pages/helper\"\r\nimport {\r\n ConfigSkipSections,\r\n ConfigurationStoreTypeKeys\r\n} from \"src/constants/configurationPortal\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nexport const configFileValidationCheck = (\r\n dt: any,\r\n t: any,\r\n Translates: any\r\n): { errorCount: number; error: string } => {\r\n let errorCount: number = 0\r\n let error: string = \"\"\r\n const BreakException = {}\r\n try {\r\n Object.keys(dt).forEach(i => {\r\n if (!ConfigSkipSections.includes(i) && typeof dt[i] === \"object\") {\r\n if (Array.isArray(dt[i])) {\r\n if (!dt[i].length) {\r\n errorCount++\r\n }\r\n } else if (!Array.isArray(dt[i])) {\r\n if (\r\n i === ConfigurationStoreTypeKeys.FullStoreVariances ||\r\n i === ConfigurationStoreTypeKeys.GroupedVariances\r\n ) {\r\n if (\r\n !Object.keys(dt.FullStoreVariances).length &&\r\n !Object.keys(dt.GroupedVariances).length\r\n ) {\r\n errorCount++\r\n }\r\n } else {\r\n if (!Object.keys(dt[i]).length) {\r\n errorCount++\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (errorCount > 0) {\r\n error = `${t(Translates.Configuration)} \"${t(i)}\" ${t(\r\n Translates.can_not_be_empty\r\n )}`\r\n throw BreakException\r\n }\r\n })\r\n } catch (e) {\r\n //istanbul ignore next\r\n if (e !== BreakException) throw e\r\n }\r\n\r\n return { errorCount, error }\r\n}\r\nexport const getTabValue = () => {\r\n const searchParams = new URLSearchParams(window.location.search)\r\n return searchParams.get(\"tab\")\r\n}\r\n\r\nexport const getColumns = (selectedCustomerList, columnsData) => {\r\n if (selectedCustomerList && selectedCustomerList.length > 1) {\r\n return columnsData\r\n }\r\n if (columnsData[0].Header === \"CUSTOMER\") columnsData.shift()\r\n return columnsData\r\n}\r\n\r\nexport const getConfigHistoryBreadcrumbPath = (t, Translates) => {\r\n let componentName = getTranslations(t, Translates.History)\r\n const { bConfig } = getBreadcrumbConfig({\r\n landingName: getTranslations(t, Translates.Configuration),\r\n landingPath: `${PATH.CONFIGURATION}`.slice(1),\r\n componentName: componentName,\r\n showHomeIcon: true\r\n })\r\n return { componentName, bConfig }\r\n}\r\n","import { Alert, AlertTitle } from \"@mui/material\"\r\nimport React from \"react\"\r\nimport InfoIcon from \"@mui/icons-material/Info\"\r\nimport {\r\n Csv_Template,\r\n custom_title_Info,\r\n getTranslations\r\n} from \"src/utils/helper\"\r\nimport { t } from \"i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { BULK_UPLOADING, templateFileMap } from \"src/utils/constants\"\r\n\r\nconst BulkUploadAlert = ({ templateUrl, downloadType }) => {\r\n const DEF_FILE_NAME = \"upload_file_template.csv\"\r\n const getFileName = () => {\r\n let fName = templateFileMap[downloadType]\r\n return fName || DEF_FILE_NAME\r\n }\r\n\r\n return (\r\n <>\r\n {\" \"}\r\n } className=\"custom-alert grey\">\r\n \r\n {getTranslations(t, custom_title_Info())}\r\n \r\n

    {getTranslations(t, Csv_Template())}

    \r\n \r\n {downloadType === BULK_UPLOADING.LOCATION_FILE_UPLOADING\r\n ? getTranslations(t, Translates.Locations_Data_Import_Template)\r\n : \"\"}\r\n\r\n {downloadType === BULK_UPLOADING.SCHEDULE_FILE_UPLOADING\r\n ? getTranslations(t, Translates.Schedule_Data_Import_Template)\r\n : \"\"}\r\n {downloadType === BULK_UPLOADING.USER_DEATILS_FILE_UPLOADING\r\n ? getTranslations(t, Translates.Users_Data_Import_Template)\r\n : \"\"}\r\n {downloadType === BULK_UPLOADING.DEVICE_RESERVATION\r\n ? getTranslations(t, Translates.Device_Data_Import_Template)\r\n : \"\"}\r\n {[\r\n BULK_UPLOADING.UPLOADFILE,\r\n BULK_UPLOADING.DEPARTMENT_FILE_UPLOADING,\r\n BULK_UPLOADING.VARIANCE_FILE_UPLOADING,\r\n BULK_UPLOADING.AREA_RANGE_FILE_UPLOADING\r\n ].includes(downloadType)\r\n ? getTranslations(t, Translates.Upload_File_Import_Templete)\r\n : \"\"}\r\n \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default BulkUploadAlert\r\n","import {\r\n Download_template_right_to_create_a_CSV_file,\r\n populateCSVFileWithDoNotChangeTheColumnHeader,\r\n Upload_the_CSV_file_in_the_upload_box,\r\n getTranslations\r\n} from \"src/utils/helper\"\r\nimport { t } from \"i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { BULK_UPLOADING } from \"src/utils/constants\"\r\n\r\nconst BulkUploadData = ({ fileUploadType }) => {\r\n return (\r\n <>\r\n {\" \"}\r\n {fileUploadType === BULK_UPLOADING.LOCATION_FILE_UPLOADING ? (\r\n <>\r\n

    \r\n {getTranslations(\r\n t,\r\n Translates.To_upload_Locations_you_need_to_populate_a_CSV_file_with_user_data_Please_use_the_provided_CSV_template_The_columns_in_the_template_are_the_expected_fields\r\n )}\r\n

    \r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {fileUploadType === BULK_UPLOADING.SCHEDULE_FILE_UPLOADING ? (\r\n <>\r\n

    \r\n {getTranslations(\r\n t,\r\n Translates.To_upload_data_you_need_to_populate_a_CSV_file_with_user_data_Please_use_the_provided_CSV_template_The_columns_in_the_template_are_the_expected_fields\r\n )}\r\n

    \r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n {fileUploadType === BULK_UPLOADING.USER_DEATILS_FILE_UPLOADING ? (\r\n <>\r\n {\" \"}\r\n

    \r\n {getTranslations(\r\n t,\r\n Translates.To_upload_data_you_need_to_populate_a_CSV_file_with_user_data_Please_use_the_provided_CSV_template_The_columns_in_the_template_are_the_expected_fields\r\n )}\r\n

    \r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n

    \r\n {getTranslations(t, Download_template_right_to_create_a_CSV_file())}\r\n

    \r\n

    \r\n {getTranslations(t, populateCSVFileWithDoNotChangeTheColumnHeader())}\r\n

    \r\n {[\r\n BULK_UPLOADING.USER_DEATILS_FILE_UPLOADING,\r\n BULK_UPLOADING.LOCATION_FILE_UPLOADING\r\n ].includes(fileUploadType) ? (\r\n

    \r\n {getTranslations(t, Upload_the_CSV_file_in_the_upload_box())}\r\n

    \r\n ) : (\r\n \"\"\r\n )}\r\n {fileUploadType === BULK_UPLOADING.SCHEDULE_FILE_UPLOADING ? (\r\n

    \r\n {getTranslations(\r\n t,\r\n Translates.Upload_the_CSV_file_in_the_upload_box_provided_below\r\n )}\r\n

    \r\n ) : (\r\n \"\"\r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default BulkUploadData\r\n","import React, { useCallback } from \"react\"\r\nimport { Grid, Divider, Button, LinearProgress } from \"@mui/material\"\r\nimport csvIcon from \"../../assets/images/CsvIcon.svg\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport DeleteIcon from \"@mui/icons-material/Delete\"\r\nimport ClearIcon from \"@mui/icons-material/Clear\"\r\n\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { t } from \"i18next\"\r\nimport BulkUploadAlert from \"./BulkUploadAlert\"\r\nimport BulkUploadData from \"./BulkUploadData\"\r\n\r\nconst BulkUploadText = ({\r\n showError,\r\n saveDisable,\r\n progress,\r\n files,\r\n showPopup,\r\n bulkLocationFilePath,\r\n getRootProps,\r\n handleCsvFile,\r\n onDeleteClick,\r\n onClearClick,\r\n onDeleteFileClick,\r\n handleCancelClick,\r\n handleDataMapping,\r\n alertError,\r\n typeOfFile,\r\n url\r\n}) => {\r\n const handleOnDeleteClick = useCallback((e: any) => {\r\n onDeleteClick(e)\r\n }, [])\r\n\r\n const handleOnClearClickClick = useCallback((e: any) => {\r\n onClearClick(e)\r\n }, [])\r\n\r\n const handleOnDeleteFileClick = useCallback((e: any) => {\r\n onDeleteFileClick(e)\r\n }, [])\r\n return (\r\n
    \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Choose_File)}\r\n

    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n
    {getTranslations(t, Translates.Upload_CSV_File)}
    \r\n
    \r\n \r\n {bulkLocationFilePath !== \"\" ? (\r\n <> {handleCsvFile()}\r\n ) : (\r\n <>\r\n \r\n

    \r\n \r\n

    \r\n \r\n )}\r\n\r\n {bulkLocationFilePath !== \"\" ? (\r\n
    \r\n {showPopup === false ? (\r\n handleOnDeleteClick(e)}\r\n />\r\n ) : (\r\n \r\n {getTranslations(t, Translates.Are_you_sure)}\r\n handleOnClearClickClick(e)}\r\n />\r\n handleOnDeleteFileClick(e)}\r\n />\r\n
    \r\n )}\r\n
    \r\n ) : null}\r\n
    \r\n \r\n {files.length ? (\r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n {progress}%\r\n \r\n
    \r\n ) : null}\r\n \r\n \r\n \r\n \r\n {alertError?.title !== \"\" ? <>{showError()} : null}\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {getTranslations(t, Translates.Next_Data_Mapping)}\r\n \r\n
    \r\n
    \r\n \r\n )\r\n}\r\nexport default React.memo(BulkUploadText)\r\n","import { Grid } from \"@mui/material\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nconst LocationAndScheduleTopHeadings = () => {\r\n const { t } = useTranslation()\r\n return (\r\n <>\r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Data_Mapping)}\r\n

    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n

    \r\n {getTranslations(\r\n t,\r\n Translates.Map_the_available_data_base_fields_to_your_file\r\n )}\r\n

    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Attributes)}\r\n

    \r\n
    \r\n
    \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Attributes)}\r\n

    \r\n
    \r\n \r\n

    \r\n {getTranslations(t, Translates.CSV_Data)}\r\n

    \r\n
    \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default LocationAndScheduleTopHeadings\r\n","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\nimport { API_REQUESTS } from \"../utils/constants\"\r\n import { encrypt } from \"src/utils/helper\"\r\n\r\nconst api = new ApiService()\r\n\r\nexport class SqlTestEditorService {\r\n postSqlTestEditorValueForVerify(query) {\r\n const endPoint = API_REQUESTS.SQLEDITORTESTAPI\r\n const payLoad = {\r\n sqlQuery: encrypt(query)\r\n }\r\n\r\n return api\r\n .sqlPost(endPoint, payLoad)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n}\r\n//END-NOSCAN","import { ConfigTypes } from \"../utils/types/types\"\r\n\r\nexport interface ProcessEnv {\r\n [key: string]: string | undefined\r\n}\r\nexport let config: ConfigTypes = {\r\n baseURL: process.env.REACT_APP_BASEURL as string,\r\n supervisorURL: process.env.REACT_APP_SUPERVISORBASEURL as string\r\n}\r\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGySURBVHgB7VjLioMwFL0OrvsLLfT9B123tJ/cUmj7C9324XPtyp2g2JkTUBwnxhgzRaEHgiEczeGe3JuLxusH1B28vqhj0CIIQdYVaJNaIk1TulwubL7ZbMgwDGqDVoIg5nA45IJ0iFK2DBadTicmJrMM4jDa2KcUIWy43+9zMcX18/lMpmnSdrtVipSSoOv1mouZz+c0mUzYumVZdL/f6Xg80mAwoNVqRU2hJCgIgjwyEINzA2ANgvAMw5BU0Lk69CdCjuOQ67rCl2zbrp1rE/R8PtkZkMXtdmNDF7pvWRGz2YxGoxGbw0pkkQpHm6DpdJpnEOoLb7MiB4WyraB+WYbDGkURm3ue14iD5EiShERADUNhlRaENK5L5SoOzhOGCLhiyoL6Zdl4PKbhcMjmvu9zI6GLIyVosVj8yjLeh4ocZBmPs1wuab1eCzkZ+mXZ4/HIM6XqgMpw0AHEcSzkSAlC6mK8g5OhX5bxusH/4kgJKnaDAO9DvI6xDNx3WZZVcTL0y7LizV1VO2Q5WQ9edxUJBSG0ovDKcpp0ld23DPfObrejdwB7lWF8/g/V4COoDt9U/U5ooSKGWgAAAABJRU5ErkJggg==\"","import { ifElseToReadable, LookupConfigToEditor } from \"../helpers\"\r\nimport { getLayout, setLayout } from \"../layout.service\"\r\nimport { functionTypes } from \".\"\r\nexport const renderConversionFromConfig = (configLookup, index) => {\r\n if (configLookup.length) {\r\n let layout = getLayout()\r\n if (layout.length <= 0 && (index || index === 0) && index !== -1) {\r\n layout = LookupConfigToEditor(configLookup[index].Instructions)\r\n setLayout(layout)\r\n }\r\n if (layout.length) {\r\n setLayoutIfElseReadable(layout)\r\n }\r\n }\r\n return true\r\n}\r\n\r\nexport const setLayoutIfElseReadable = (layout, isIfReadableCheck = false) => {\r\n if (layout && layout.length && isIfReadableCheck) {\r\n layout.forEach((i, inx) => {\r\n if ([functionTypes.If].includes(i.function)) {\r\n layout[inx] = {\r\n ...layout[inx],\r\n ...{ content: ifElseToReadable(i.array) }\r\n }\r\n }\r\n })\r\n }\r\n layout = Array.isArray(layout) ? layout : []\r\n setLayout(layout)\r\n return layout\r\n}\r\n","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\nexport class LookupRoutinesService {\r\n getTableNamesWithColumns() {\r\n const endpoint = `/api/ConfigurationPortal/GetTableNamesAndColumnNames`\r\n return api.findAll(endpoint)\r\n }\r\n}\r\n//END-NOSCAN","import { createAsyncThunk, createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport { LookupRoutinesService } from \"../../../src/service/lookupRoutines.service\"\r\n\r\nexport interface LookupRoutinesState {\r\n tableNames: {\r\n status: string\r\n data: any\r\n }\r\n\r\n tableNameOptions: any[]\r\n}\r\nconst initialState: LookupRoutinesState = {\r\n tableNames: { status: \"loading1\", data: [] },\r\n tableNameOptions: []\r\n}\r\nconst lookupService = new LookupRoutinesService()\r\nexport const getTableNamesWithColumns = createAsyncThunk(\r\n \"lookup/getTableNamesWithColumns\",\r\n async () => {\r\n return lookupService.getTableNamesWithColumns()\r\n }\r\n)\r\n\r\nexport const lookupRoutinesSlice = createSlice({\r\n name: \"lookup\",\r\n initialState,\r\n reducers: {\r\n setTableNameOptions: (state, _action: PayloadAction) => {\r\n state.tableNameOptions = [..._action.payload]\r\n }\r\n },\r\n extraReducers: builder => {\r\n builder.addCase(getTableNamesWithColumns.pending, state => {\r\n state.tableNames.status = \"loading\"\r\n state.tableNames.data = []\r\n })\r\n //istanbul ignore next\r\n builder.addCase(\r\n getTableNamesWithColumns.fulfilled,\r\n (state, { payload }) => {\r\n state.tableNames.status = \"success\"\r\n state.tableNames.data = payload.data\r\n }\r\n )\r\n builder.addCase(getTableNamesWithColumns.rejected, state => {\r\n state.tableNames.status = \"failed\"\r\n state.tableNames.data = []\r\n })\r\n }\r\n})\r\nexport const { setTableNameOptions } = lookupRoutinesSlice.actions\r\nexport default lookupRoutinesSlice.reducer\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\n\r\nexport interface FtpConnectionSliceType {\r\n ftpConnections: any[]\r\n}\r\n\r\nconst initialState: FtpConnectionSliceType = {\r\n ftpConnections: []\r\n}\r\nexport const FtpConnectionSlice = createSlice({\r\n name: \"ftpConnections\",\r\n initialState,\r\n reducers: {\r\n setFtpConnections: (state, _action: PayloadAction) => {\r\n state.ftpConnections = [..._action.payload]\r\n }\r\n },\r\n extraReducers: builder => {}\r\n})\r\nexport const { setFtpConnections } = FtpConnectionSlice.actions\r\nexport default FtpConnectionSlice.reducer\r\n","import { configureStore, ThunkDispatch, Action } from \"@reduxjs/toolkit\"\r\nimport authSlice from \"./slices/authSlice\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { ThunkAction } from \"redux-thunk\"\r\nimport settingsReducer from \"./slices/settingsSlice\"\r\nimport reservationsReducer from \"./slices/reservationsSlice\"\r\nimport scheduleReducer from \"./slices/scheduleSlice\"\r\nimport userReducer from \"./slices/usersSlice\"\r\nimport configReducer from \"./slices/configSlice\"\r\nimport configurationReducer from \"./slices/configurationSlice\"\r\nimport lookupRoutinesSlice from \"./slices/lookupRoutinesSlice\"\r\nimport uploadFilesReducer from \"./slices/uploadFileSlice\"\r\nimport reportsReducer from \"./slices/reportsSlice\"\r\nimport liveEventsReducer from \"./slices/liveEventsSlice\"\r\nimport varianceReducer from \"./slices/ConfigPortal/VarianceSlice\"\r\nimport outputBundleReducer from \"./slices/ConfigPortal/OutputBundleSlice\"\r\nimport reportReducer from \"./slices/ConfigPortal/ReportSlice\"\r\nimport columnSlice from \"./slices/ConfigPortal/ColumnSlice\"\r\nimport ftpConnectionReducer from \"./slices/ConfigPortal/FtpConnectionSlice\"\r\nimport customerSelectionReducer from \"./slices/ConfigPortal/CustomerSelectionSlice\"\r\nimport multiEventOutputReducer from \"./slices/MultiEventOutputSlice\"\r\nexport const store = configureStore({\r\n reducer: {\r\n auth: authSlice,\r\n settings: settingsReducer,\r\n reservations: reservationsReducer,\r\n schedule: scheduleReducer,\r\n user: userReducer,\r\n config: configReducer,\r\n configuration: configurationReducer,\r\n lookup: lookupRoutinesSlice,\r\n uploadFiles: uploadFilesReducer,\r\n reports: reportsReducer,\r\n liveEvents: liveEventsReducer,\r\n variance: varianceReducer,\r\n outputBundle: outputBundleReducer,\r\n report: reportReducer,\r\n column: columnSlice,\r\n ftpConnection: ftpConnectionReducer,\r\n customerSelection: customerSelectionReducer,\r\n multiEventOutput: multiEventOutputReducer\r\n },\r\n middleware: getDefaultMiddleware =>\r\n getDefaultMiddleware({\r\n serializableCheck: false\r\n })\r\n})\r\n\r\n// Infer the `RootState` and `AppDispatch` types from the store itself\r\nexport type RootState = ReturnType\r\n// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}\r\n// export type AppDispatch = typeof store.dispatch\r\nexport type AppDispatch = ThunkDispatch\r\nexport const useAppThunkDispatch = () => useDispatch()\r\nexport type AppThunk = ThunkAction\r\nexport default store;\r\n","import { createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\n\r\nexport interface ConfigurationState {\r\n status: string\r\n configurationByCustomer: any\r\n configurationFilters: any\r\n configurationPrevFilters: any\r\n configurationSort: any\r\n configurationColumn: any\r\n}\r\nconst initialState: ConfigurationState = {\r\n status: \"\",\r\n configurationByCustomer: [],\r\n configurationFilters: { status: [\"Active\", \"Not Installed\"] },\r\n configurationPrevFilters: {\r\n status: [\"Active\", \"In Active\", \"Not Installed\"]\r\n },\r\n configurationSort: \"\",\r\n configurationColumn: \"\"\r\n}\r\n\r\nexport const configurationSlice = createSlice({\r\n name: \"configurationList\",\r\n initialState,\r\n reducers: {\r\n setConfigurationFilters: (state, _action: PayloadAction) => {\r\n state.configurationFilters = {\r\n ...state.configurationFilters,\r\n ..._action.payload\r\n }\r\n },\r\n setConfigurationPrevFilters: (state, _action: PayloadAction) => {\r\n state.configurationPrevFilters = {\r\n ...state.configurationPrevFilters,\r\n ..._action.payload\r\n }\r\n },\r\n setConfigurationSort: (state, _action: PayloadAction) => {\r\n state.configurationSort = _action.payload\r\n },\r\n setConfigurationColumn: (state, _action: PayloadAction) => {\r\n state.configurationColumn = _action.payload\r\n }\r\n }\r\n})\r\nexport const {\r\n setConfigurationFilters,\r\n setConfigurationPrevFilters,\r\n setConfigurationSort,\r\n setConfigurationColumn\r\n} = configurationSlice.actions\r\nexport default configurationSlice.reducer\r\n","import { createAsyncThunk, createSlice, PayloadAction } from \"@reduxjs/toolkit\"\r\nimport moment from \"moment\"\r\nimport { ReportService } from \"src/service/reports.service\"\r\n\r\nexport interface ReportsState {\r\n status: string\r\n finalReports: any\r\n reportFilters: any\r\n reportPrevFilters: any\r\n reportSort: any\r\n reportColumn: any\r\n}\r\n\r\nconst getDefaultStartDate = () => {\r\n const today = new Date()\r\n const thirtyDaysAgo = moment(today).subtract(30, \"days\").toDate()\r\n return thirtyDaysAgo.toISOString().split(\"T\")[0]\r\n}\r\nconst getDefaultEndDate = () => {\r\n const today = new Date()\r\n const thirtyDaysLater = moment(today).toDate()\r\n return thirtyDaysLater.toISOString().split(\"T\")[0]\r\n}\r\nconst initialState: ReportsState = {\r\n status: \"\",\r\n finalReports: [],\r\n reportFilters: {\r\n filesData: [],\r\n dateRange: { sDate: getDefaultStartDate(), eDate: getDefaultEndDate() },\r\n storesData: [],\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: []\r\n },\r\n reportPrevFilters: {\r\n filesData: [],\r\n sDate: \"\",\r\n storesData: [],\r\n region1: [],\r\n region2: [],\r\n region3: [],\r\n region4: []\r\n },\r\n reportSort: \"\",\r\n reportColumn: \"\"\r\n}\r\nconst reportService = new ReportService()\r\n\r\nexport const getFinalReports = createAsyncThunk(\r\n \"reportsList/getFinalReports\",\r\n async (params: any) => {\r\n let customerId = [params.customerId]\r\n return reportService.getCustomerFinalReports(customerId)\r\n }\r\n)\r\nexport const reportsSlice = createSlice({\r\n name: \"reportsList\",\r\n initialState,\r\n reducers: {\r\n setReportFilters: (state, _action: PayloadAction) => {\r\n // console.log(_action.payload)\r\n state.reportFilters = { ...state.reportFilters, ..._action.payload }\r\n },\r\n setReportPrevFilters: (state, _action: PayloadAction) => {\r\n state.reportPrevFilters = {\r\n ...state.reportPrevFilters,\r\n ..._action.payload\r\n }\r\n },\r\n setReportSort: (state, _action: PayloadAction) => {\r\n state.reportSort = _action.payload\r\n },\r\n setReportColumn: (state, _action: PayloadAction) => {\r\n state.reportColumn = _action.payload\r\n }\r\n },\r\n\r\n extraReducers: builder => {\r\n //istanbul ignore next\r\n builder.addCase(getFinalReports.fulfilled, (state, { payload }) => {\r\n state.status = \"success\"\r\n state.finalReports = payload.data\r\n })\r\n builder.addCase(getFinalReports.rejected, state => {\r\n state.status = \"failed\"\r\n })\r\n }\r\n})\r\nexport const {\r\n setReportFilters,\r\n setReportPrevFilters,\r\n setReportSort,\r\n setReportColumn\r\n} = reportsSlice.actions\r\nexport default reportsSlice.reducer\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main-container\":\"Login_main-container__38xa4\",\"loginPage\":\"Login_loginPage__XPZe5\",\"loginBg\":\"Login_loginBg__1BCAc\",\"loginForm\":\"Login_loginForm__2YDrP\",\"loginFormSec\":\"Login_loginFormSec__yqpzY\"};","export default __webpack_public_path__ + \"static/media/DeviceReservationBg.a0910b36.svg\";","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\n\r\nexport class UserService {\r\n getUserRoles(customerId) {\r\n const endPoint = `/api/Roles?accountId=${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n checkUserExistByEmail(emailId) {\r\n const endPoint = `/api/User/CheckUserExistByEmail`\r\n return api.post(endPoint, { emailId: emailId })\r\n }\r\n getAllRegionalsByAccount(customerId) {\r\n const endPoint = `/api/Company/GetAllRegionalsByAccountId/${customerId}`\r\n return api.findAll(endPoint)\r\n }\r\n saveUser(payload) {\r\n const endPoint = `/api/User`\r\n return api.post(endPoint, payload)\r\n }\r\n updateUser(payload) {\r\n const endPoint = `/api/User`\r\n return api.put(endPoint, payload)\r\n }\r\n userAccount(payload: any) {\r\n const endPoint = `api/User/GetAllUsersByAccount`\r\n return api\r\n .post(endPoint, payload)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n downloadAccountUser(payload: any) {\r\n const endPoint = `api/User/DownloadUsersByAccount`\r\n return api.post(endPoint, payload)\r\n }\r\n saveCustomerSelection(payload) {\r\n const endPoint: string = `/api/User/UpdateSelectedAccountDetails`\r\n return api.put(endPoint, payload)\r\n }\r\n postUserValidationData(payload: any, config: any) {\r\n const endPoint = `api/User/AddUsersBulk`\r\n return api.saveWithParams(endPoint, payload, config)\r\n }\r\n\r\n resendUserInvite(email: string) {\r\n const endPoint = `api/User/ResendUserInvitation?email=${email}`\r\n return api.findAll(endPoint)\r\n }\r\n}\r\n//END-NOSCAN\r\n","export default __webpack_public_path__ + \"static/media/ExcelIcon.e65fe0e5.svg\";","import { CONFIG_MODULES } from \"src/utils/constants\"\r\n\r\nexport const LocationsList: any = {\r\n Location: {\r\n Enabled: true,\r\n OjKey: \"Location\",\r\n DataField: \"LocationValue\",\r\n Labels: [{ \"en-us\": \"Tag\" }],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: false,\r\n IsAllowEdits: true,\r\n ValidationInstructions: [\r\n {\r\n Function: \"CheckDataType\",\r\n Parameters: [\"NUMERIC\"],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [\r\n {\r\n \"en-us\": \"Invalid Data Type\"\r\n }\r\n ]\r\n },\r\n {\r\n Function: \"CheckLengthRange\",\r\n Parameters: [1, 5],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [\r\n {\r\n \"en-us\": \"Lengths must be between 1 and 5\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n SecondaryLocation1: {\r\n Enabled: true,\r\n OjKey: \"SecondaryLocation1\",\r\n DataField: \"SecondaryLocation1\",\r\n Labels: [\r\n {\r\n \"en-us\": \"SecondaryLocation1\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: false\r\n },\r\n SecondaryLocation2: {\r\n Enabled: true,\r\n OjKey: \"SecondaryLocation2\",\r\n DataField: \"SecondaryLocation2\",\r\n Labels: [\r\n {\r\n \"en-us\": \"SecondaryLocation2\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: false\r\n },\r\n SecondaryLocation3: {\r\n Enabled: true,\r\n OjKey: \"SecondaryLocation3\",\r\n DataField: \"SecondaryLocation3\",\r\n Labels: [\r\n {\r\n \"en-us\": \"SecondaryLocation3\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: false\r\n }\r\n}\r\n\r\nexport const ProductsList: any = {\r\n ProductCaptured: {\r\n Enabled: true,\r\n DataField: \"CapturedProduct\",\r\n OjKey: \"Product\",\r\n Labels: [{ \"en-us\": \"Product\" }],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n ProductBarcode: {\r\n Enabled: true,\r\n DataField: \"Barcode\",\r\n OjKey: \"Barcode\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Barcode\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n ProductSku: {\r\n Enabled: true,\r\n DataField: \"Sku\",\r\n OjKey: \"SKU\",\r\n Labels: [\r\n {\r\n \"en-us\": \"SKU\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n ProductDescription: {\r\n Enabled: true,\r\n DataField: \"Description\",\r\n OjKey: \"Description\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Description\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n Department: {\r\n Enabled: true,\r\n DataField: \"Department\",\r\n OjKey: \"Department\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Dept Code\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n DepartmentName: {\r\n Enabled: true,\r\n DataField: \"DepartmentName\",\r\n OjKey: \"DepartmentName\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Department\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n DepartmentParent: {\r\n Enabled: true,\r\n DataField: \"DepartmentParent\",\r\n OjKey: \"DepartmentParent\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Division Code\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n DepartmentParentName: {\r\n Enabled: true,\r\n DataField: \"DepartmentParentName\",\r\n OjKey: \"DepartmentParentName\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Division\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n Price: {\r\n Enabled: true,\r\n DataField: \"Price\",\r\n OjKey: \"Price\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Price\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DecimalPlaces: 2,\r\n CurrencySymbol: true\r\n },\r\n ProductUOM: {\r\n Enabled: true,\r\n DataField: \"Uom\",\r\n OjKey: \"ProductUOM\",\r\n Labels: [\r\n {\r\n \"en-us\": \"UOM\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n ProductSize: {\r\n Enabled: true,\r\n DataField: \"Size\",\r\n OjKey: \"ProductSize\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Size\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n ProductColor: {\r\n Enabled: true,\r\n DataField: \"Color\",\r\n OjKey: \"ProductColor\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Color\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n Cost: {\r\n Enabled: true,\r\n DataField: \"Cost\",\r\n OjKey: \"Cost\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Cost\"\r\n }\r\n ],\r\n DecimalPlaces: 2,\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n CurrencySymbol: true\r\n },\r\n ProductGenericT1: {\r\n Enabled: true,\r\n OjKey: \"ProductGenericT1\",\r\n Labels: [\r\n {\r\n \"en-us\": \"ProductGenericT1\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"ProductGenericT1\"\r\n },\r\n ProductGenericT2: {\r\n Enabled: true,\r\n OjKey: \"ProductGenericT2\",\r\n Labels: [\r\n {\r\n \"en-us\": \"ProductGenericT2\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"ProductGenericT2\"\r\n },\r\n ProductGenericT3: {\r\n Enabled: true,\r\n OjKey: \"ProductGenericT3\",\r\n Labels: [\r\n {\r\n \"en-us\": \"ProductGenericT3\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"ProductGenericT3\"\r\n },\r\n ProductGenericD1: {\r\n Enabled: true,\r\n OjKey: \"ProductGenericD1\",\r\n Labels: [\r\n {\r\n \"en-us\": \"ProductGenericD1\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"ProductGenericD1\"\r\n },\r\n ProductGenericD2: {\r\n Enabled: true,\r\n OjKey: \"ProductGenericD2\",\r\n Labels: [\r\n {\r\n \"en-us\": \"ProductGenericD2\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"ProductGenericD2\"\r\n },\r\n ProductGenericD3: {\r\n Enabled: true,\r\n OjKey: \"ProductGenericD3\",\r\n Labels: [\r\n {\r\n \"en-us\": \"ProductGenericD3\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"ProductGenericD3\"\r\n },\r\n DepartmentSort: {\r\n Enabled: true,\r\n OjKey: \"DepartmentSort\",\r\n Labels: [\r\n {\r\n \"en-us\": \"DepartmentSort\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"DepartmentSort\"\r\n },\r\n DepartmentParentSort: {\r\n Enabled: true,\r\n OjKey: \"DepartmentParentSort\",\r\n Labels: [\r\n {\r\n \"en-us\": \"DepartmentParentSort\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"DepartmentParentSort\"\r\n },\r\n VarianceGroup: {\r\n Enabled: true,\r\n OjKey: \"VarianceGroup\",\r\n DataField: \"VarianceGroup\",\r\n Labels: [\r\n {\r\n \"en-us\": \"VarianceGroup\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true\r\n },\r\n Style: {\r\n Enabled: true,\r\n OjKey: \"Style\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Style\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: true,\r\n DataField: \"Style\"\r\n },\r\n Ext: {\r\n Enabled: true,\r\n OjKey: \"Ext\",\r\n Labels: [\r\n {\r\n \"en-us\": \"Ext\"\r\n }\r\n ],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: false,\r\n DecimalPlaces: 2,\r\n CurrencySymbol: true\r\n },\r\n Qty: {\r\n Enabled: true,\r\n DataField: \"Quantity\",\r\n OjKey: \"Qty\",\r\n Labels: [{ \"en-us\": \"Qty\" }],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: false,\r\n DecimalPlaces: 0\r\n }\r\n}\r\n\r\nexport const initCountFields: any = {\r\n Location: LocationsList.Location,\r\n ProductCaptured: { ...ProductsList?.ProductCaptured, IsAllowEdits: false },\r\n Qty: {\r\n ...ProductsList?.Qty,\r\n ...{\r\n IsAllowEdits: true,\r\n ValidationInstructions: [\r\n {\r\n Function: \"CheckDataType\",\r\n Parameters: [\"DECIMAL\"],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [\r\n {\r\n \"en-us\": \"Invalid Data Type\"\r\n }\r\n ]\r\n },\r\n {\r\n Function: \"CheckDecimalRange\",\r\n Parameters: [1, 999],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [\r\n {\r\n \"en-us\": \"Must be between 1 and 999\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n}\r\n\r\nexport const currencySymbolDisplay = [\r\n \"Price\",\r\n \"Cost\",\r\n \"Ext\",\r\n \"ProductDecimal1\",\r\n \"ProductDecimal2\",\r\n \"ProductDecimal3\",\r\n \"ProductDecimal4\",\r\n \"ProductDecimal5\"\r\n]\r\n\r\nexport const decimalPositionDisplay = [\r\n \"Price\",\r\n \"Cost\",\r\n \"Ext\",\r\n \"ProductDecimal1\",\r\n \"ProductDecimal2\",\r\n \"ProductDecimal3\",\r\n \"ProductDecimal4\",\r\n \"ProductDecimal5\",\r\n \"Qty\",\r\n \"ProductGenericD1\",\r\n \"ProductGenericD2\",\r\n \"ProductGenericD3\"\r\n]\r\n\r\nexport const currencies = [\r\n { \"$ - USD - US Dollar\": { original: \"$\", display: \"$\" } },\r\n { \"$ - MXN - MEXICAN PESO\": { original: \"Mex$\", display: \"$\" } },\r\n { \"$ - CAD - Canadian Dollar\": { original: \"C$\", display: \"$\" } },\r\n { \"Â¥ - CNY - Chinese Yuan\": { original: \"Â¥\", display: \"Â¥\" } }\r\n]\r\nexport const columnDataDetails = [\r\n {\r\n Header: \"\",\r\n accessor: \"SortOrder\",\r\n setWidth: 2\r\n },\r\n {\r\n Header: \"Field\",\r\n accessor: \"field\",\r\n setWidth: 220\r\n },\r\n {\r\n Header: \"Display Name\",\r\n accessor: \"Labels[0][en-us]\",\r\n setWidth: 200\r\n },\r\n {\r\n Header: \"Currency Symbol\",\r\n accessor: \"CurrencySymbol\",\r\n setWidth: 150\r\n },\r\n {\r\n Header: \"Decimal Places\",\r\n accessor: \"DecimalPlaces\",\r\n setWidth: 130\r\n },\r\n {\r\n Header: \"Show on tag details\",\r\n accessor: \"ShowOnTagDetails\",\r\n setWidth: 100\r\n },\r\n {\r\n Header: \"Show on Qty Entry\",\r\n accessor: \"ShowOnQtyEntry\",\r\n setWidth: 100\r\n },\r\n {\r\n Header: \"Actions\",\r\n accessor: \"actions\",\r\n setWidth: 150\r\n }\r\n]\r\n\r\nexport const reorderRecords = data => {\r\n if (data.length > 2) {\r\n let extItem = {}\r\n let pcIndex = data.findIndex(d => d.field === \"ProductCaptured\")\r\n let firstItem = data[pcIndex]\r\n data.splice(pcIndex, 1)\r\n let qtyIndex = data.findIndex(d => d.field === \"Qty\")\r\n let lastItem = data[qtyIndex]\r\n data.splice(qtyIndex, 1)\r\n let extIndex = data.findIndex(d => d.field === \"Ext\")\r\n if (extIndex !== -1) {\r\n extItem = data[extIndex]\r\n data.splice(extIndex, 1)\r\n }\r\n data = data.sort((a, b) => a.SortOrder - b.SortOrder)\r\n data.unshift(firstItem)\r\n data.push(lastItem)\r\n if (Object.keys(extItem).length) data.push(extItem)\r\n }\r\n\r\n return data\r\n}\r\n\r\nexport const getCurrencySymbol = () => {\r\n let cMap = new Map()\r\n let cFullMap = new Map()\r\n let cDisplayMap = new Map()\r\n let cOriginalDisplayMap = new Map()\r\n let cDisplayOriginalMap = new Map()\r\n for (let m of Object.values(currencies)) {\r\n cMap.set(Object.keys(m)[0], Object.values(m)[0].original)\r\n cFullMap.set(Object.values(m)[0].original, Object.keys(m)[0])\r\n cDisplayMap.set(Object.keys(m)[0], Object.values(m)[0].display)\r\n cOriginalDisplayMap.set(\r\n Object.values(m)[0].original,\r\n Object.values(m)[0].display\r\n )\r\n cDisplayOriginalMap.set(\r\n Object.values(m)[0].display,\r\n Object.values(m)[0].original\r\n )\r\n }\r\n return {\r\n cMap,\r\n cFullMap,\r\n cDisplayMap,\r\n cOriginalDisplayMap,\r\n cDisplayOriginalMap\r\n }\r\n}\r\n\r\nexport const instructionDetails = {\r\n ValidationInstructions: {\r\n title: \"Validation_Instructions\",\r\n required: true,\r\n component: CONFIG_MODULES.CountFieldInstructions.validation\r\n },\r\n LookupInstructions: {\r\n title: \"Lookup Instructions\",\r\n required: false,\r\n component: CONFIG_MODULES.CountFieldInstructions.Lookup\r\n }\r\n}\r\n","export default __webpack_public_path__ + \"static/media/PortalLogoLight.e6cbde30.svg\";","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport {\r\n Autocomplete,\r\n Checkbox,\r\n FormControl,\r\n FormControlLabel,\r\n ListItemText,\r\n TextField\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport {\r\n getFieldError,\r\n getDefaultValue,\r\n getOptionLabelForAutoComplete\r\n} from \"./Helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\n\r\ninterface Option {\r\n label: string\r\n value: any\r\n default?: boolean\r\n}\r\n\r\nexport interface Props {\r\n inputAttributes: {\r\n name: string\r\n type?: \"text\" | \"email\" | \"tel\"\r\n label: string\r\n placeholder?: string\r\n className?: string\r\n id?: string\r\n required?: boolean\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n variant?: \"standard\" | \"filled\" | \"outlined\"\r\n fullWidth?: boolean\r\n InputProps?: any\r\n value?: any[]\r\n defaultValue?: any[]\r\n multiline?: boolean\r\n rows?: number\r\n maxRows?: number\r\n onChange?: Function\r\n disabled?: boolean\r\n options: Option[]\r\n freeSolo?: boolean\r\n isAll?: boolean\r\n isNotSort?: boolean\r\n }\r\n}\r\n\r\nconst MUIMultiAutoCompleteText = ({ inputAttributes }: Props) => {\r\n const { t } = useTranslation()\r\n\r\n let {\r\n name,\r\n type,\r\n label,\r\n placeholder,\r\n className,\r\n id,\r\n size,\r\n color,\r\n variant,\r\n fullWidth,\r\n required,\r\n value,\r\n defaultValue,\r\n onChange,\r\n options,\r\n disabled,\r\n freeSolo,\r\n isNotSort\r\n } = inputAttributes\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n\r\n let newOptions = !isNotSort\r\n ? [...options].sort((a, b) => a.label?.localeCompare(b.label))\r\n : options\r\n\r\n let defVal: any = getDefaultValue(value, defaultValue, newOptions, true)\r\n\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n\r\n const optionsWithAll: Option[] = [\r\n ...(newOptions.length > 0\r\n ? [\r\n {\r\n value: \"All\",\r\n label: \"All\"\r\n }\r\n ]\r\n : []),\r\n ...newOptions\r\n ]\r\n\r\n return (\r\n {\r\n return (\r\n \r\n {\r\n let vals: any[] = v\r\n if (i?.option.value === \"All\") {\r\n if (u === \"selectOption\") {\r\n vals = newOptions\r\n } else if (u === \"removeOption\") {\r\n vals = []\r\n }\r\n }\r\n field.onChange(\r\n vals.map(i => (typeof i === \"object\" ? i.value : i))\r\n )\r\n updateWarnOnTabChangeToStore(true)\r\n if (onChange) onChange()\r\n }}\r\n disabled={disabled ?? false}\r\n disableCloseOnSelect\r\n isOptionEqualToValue={(option, value) => {\r\n if (option.value === \"All\") {\r\n return newOptions.length === field.value.length\r\n }\r\n return option.value === value\r\n }}\r\n getOptionLabel={option => {\r\n return getOptionLabelForAutoComplete(option, newOptions)\r\n }}\r\n renderOption={(props, { label }, { selected }) => {\r\n return (\r\n
  • \r\n }\r\n style={{ marginRight: 8 }}\r\n checked={selected}\r\n />\r\n }\r\n label={}\r\n />\r\n
  • \r\n )\r\n }}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n )\r\n }}\r\n />\r\n )\r\n}\r\n\r\nexport default MUIMultiAutoCompleteText\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport { LocalizationProvider, TimePicker } from \"@mui/x-date-pickers\"\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\"\r\nimport { TextField } from \"@mui/material\"\r\nimport { getDefaultValue, getFieldError } from \"./Helper\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nexport type Props = {\r\n inputAttributes: {\r\n name: string\r\n type?: \"text\" | \"email\" | \"tel\"\r\n label: string\r\n placeholder?: string\r\n className?: string\r\n id?: string\r\n required?: boolean\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n variant?: \"standard\" | \"filled\" | \"outlined\"\r\n fullWidth?: boolean\r\n disabled?: boolean\r\n value?: any\r\n defaultValue?: any\r\n onChange?: Function\r\n views?: any\r\n }\r\n}\r\n\r\nconst MUITimePicker = ({ inputAttributes }: Props) => {\r\n const { t } = useTranslation()\r\n\r\n const {\r\n name,\r\n type,\r\n label,\r\n placeholder,\r\n className,\r\n id,\r\n size,\r\n color,\r\n variant,\r\n fullWidth,\r\n required,\r\n disabled,\r\n value,\r\n defaultValue,\r\n onChange\r\n } = inputAttributes\r\n\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n\r\n let defVal: any = getDefaultValue(value, defaultValue, [])\r\n\r\n const prepareDate = time => {\r\n return time\r\n }\r\n const views = inputAttributes.views || [\"hours\", \"minutes\"]\r\n return (\r\n <>\r\n \r\n (\r\n {\r\n field.onChange(prepareDate(e))\r\n updateWarnOnTabChangeToStore(true)\r\n if (onChange) {\r\n field.onChange(onChange(e))\r\n }\r\n }}\r\n renderInput={(params: any) => (\r\n \r\n )}\r\n />\r\n )}\r\n />\r\n \r\n \r\n )\r\n}\r\n\r\nexport default MUITimePicker\r\n","import { Button, Grid, Tooltip } from \"@mui/material\"\r\nimport BreadCrumb from \"../../BreadCrumb/BreadCrumb\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nconst GeneralSettingsToolBar = ({ settingsSaveClick, disabled }) => {\r\n const { t } = useTranslation()\r\n const {\r\n config: { customerConfigurations }\r\n } = ConfigDataHook()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `generalSettings`\r\n let variables: any = {\r\n generalSettings: getTranslations(t, Translates.General_Settings)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n showHomeIcon: false,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n const generalSettingsSaveClick = () => {\r\n settingsSaveClick()\r\n }\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default GeneralSettingsToolBar\r\n","import { useEffect, useState } from \"react\"\r\nimport {\r\n Grid,\r\n TextField,\r\n Alert,\r\n AlertTitle,\r\n Divider,\r\n FormControl,\r\n RadioGroup,\r\n FormControlLabel,\r\n Radio,\r\n FormGroup,\r\n Checkbox,\r\n InputLabel,\r\n Select,\r\n MenuItem,\r\n ListItemText,\r\n AlertColor,\r\n Autocomplete\r\n} from \"@mui/material\"\r\nimport NotificationsActiveIcon from \"@mui/icons-material/NotificationsActive\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport GeneralSettingsToolBar from \"../../../src/components/ConfigurationPortal/GeneralSettingsToolBar/GeneralSettingsToolBar\"\r\nimport { useDispatch, useSelector } from \"react-redux\"\r\nimport { RootState } from \"../../../src/redux/store\"\r\nimport {\r\n setGeneralSettings,\r\n setDefaultConfigName,\r\n setEfficiencySettings,\r\n setAccuracySettings\r\n} from \"../../../src/redux/slices/configSlice\"\r\nimport { DEFAULT_RADIX, STATUS_CONSTANTS } from \"../../../src/utils/constants\"\r\nimport { ConfigurationStoreType } from \"src/utils/types/types\"\r\nimport { ConfigurationStoreInitiate } from \"src/constants/configurationPortal\"\r\nimport AlertC from \"src/components/Alert/Alert\"\r\nimport { configFileValidationCheck } from \"src/pages/Configuration/helper\"\r\nimport shortid from \"shortid\"\r\nimport {\r\n getConfigurationDecryptAndSetRedux,\r\n getTranslations,\r\n validateDecimal,\r\n validateInputString\r\n} from \"src/utils/helper\"\r\nimport { updateWarnOnTabChangeToStore } from \"./helper\"\r\n\r\nimport {\r\n formatInteger,\r\n generatePercentageValues,\r\n percentageValueConversion\r\n} from \"./Audits/AuditHelper\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nexport const currencies = [\r\n {\r\n key: \"usd_currency\",\r\n label: `$ - USD - US Dollar`,\r\n value: \"$ - USD - US Dollar\"\r\n },\r\n {\r\n key: \"mxn_currency\",\r\n label: `$ - MXN - MEXICAN PESO`,\r\n value: \"$ - MXN - MEXICAN PESO\"\r\n },\r\n {\r\n key: \"cad_currency\",\r\n label: `$ - CAD - Canadian Dollar`,\r\n value: \"$ - CAD - Canadian Dollar\"\r\n }\r\n // \"Â¥ - CNY - Chinese Yuan\" commenting as it is not yet integrated\r\n]\r\n\r\nconst GeneralSettings = ({ liftSettingsSaveClick }) => {\r\n const {\r\n config: { customerConfigurations, isGetConfigDecrypt, configDetails }\r\n } = ConfigDataHook()\r\n const { t } = useTranslation()\r\n const [configNameError, setConfigNameError] = useState(false)\r\n const handleLanguagesChange = index => {\r\n updateWarnOnTabChangeToStore(true)\r\n let options = [...languages]\r\n options[index].selected = !options[index].selected\r\n setLanguages(options)\r\n }\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const customerName = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerNameForOperation\r\n )\r\n const configSliceData = useSelector((state: RootState) => state.config)\r\n const configNameFromStore = configSliceData?.configName\r\n const configTypeFromStore = configSliceData?.configType\r\n\r\n const dispatch = useDispatch()\r\n const [languages, setLanguages] = useState([] as any)\r\n const LANG_OPTIONS = [\r\n {\r\n label: getTranslations(t, Translates.english_lang_dropmenu),\r\n value: \"en-US\",\r\n selected: false\r\n },\r\n {\r\n label: getTranslations(t, Translates.french_lang_dropmenu),\r\n value: \"fr-CA\",\r\n selected: false\r\n },\r\n {\r\n label: getTranslations(t, Translates.spanish_lang_dropmenu),\r\n value: \"es-MX\",\r\n selected: false\r\n }\r\n // { label: \"Simplified Chinese\", value: \"zh-CN\", selected: false } // commenting as it is not yet integrated\r\n ]\r\n const STATUS_OBJECT = {\r\n Active: 1,\r\n InActive: 2,\r\n NotInstalled: 3\r\n }\r\n\r\n const prepareLanguageOptions = (selectedLanguages: string[] = []) => {\r\n if (!languages.length && !selectedLanguages.length) {\r\n setLanguages(LANG_OPTIONS)\r\n return\r\n }\r\n let options = LANG_OPTIONS.map(lang => {\r\n let langObject = { ...lang }\r\n langObject.selected = selectedLanguages?.includes(lang.value)\r\n return langObject\r\n })\r\n setLanguages(options)\r\n }\r\n\r\n const [alertProps, setAlertProps] = useState({\r\n title: \"\",\r\n severity: \"success\" as AlertColor,\r\n content: \"\"\r\n })\r\n const [showAlert, setShowAlert] = useState(false)\r\n\r\n const [configData, setConfigData] = useState({})\r\n const [currency, setCurrency] = useState(\"\")\r\n const [notes, setNotes] = useState(\"\")\r\n const [notesLength, setNotesLength] = useState(0)\r\n const [configName, setConfigName] = useState(\"\")\r\n const [status, setStatus] = useState(\"\")\r\n\r\n // efficiency and accuracy setting fields\r\n const [efficiencyGoal, setEfficiencyGoal] = useState(\"\")\r\n const [secondayEfficiencyGoal, setSecondayEfficiencyGoal] = useState(\"\")\r\n const [downTimeGoal, setDownTimeGoal] = useState(\"\")\r\n const [secondarydownTimeGoal, setSecondarydownTimeGoal] = useState(\"\")\r\n const [accuracyGoal, setAccuracyGoal] = useState(\"\")\r\n const [secondayAccuracyGoal, setSecondayAccuracyGoal] = useState(\"\")\r\n const [includeAuditTags, setIncludeAuditTags] = useState(false)\r\n\r\n const [efficiencyGoalError, setEfficiencyGoalError] = useState(\"\")\r\n const [secondayEfficiencyGoalError, setSecondayEfficiencyGoalError] =\r\n useState(\"\")\r\n\r\n let selectedLanguages: any\r\n const [configEmptyError, setConfigEmptyError] = useState(false)\r\n const [configNameErrorMsg, setConfigNameErrorMsg] = useState(\"\")\r\n const [isDisabled, setIsDisabled] = useState(false)\r\n useEffect(() => {\r\n prepareLanguageOptions()\r\n }, [])\r\n\r\n useEffect(() => {\r\n setConfigData(configDetails)\r\n setConfigName(configDetails?.name || configNameFromStore)\r\n if (configDetails?.configuration && isGetConfigDecrypt) {\r\n const configObject = getConfigurationDecryptAndSetRedux(configSliceData)\r\n setNotes(configObject?.GeneralSettings?.Notes)\r\n setNotesLength(configObject?.GeneralSettings?.Notes?.length)\r\n setCurrency(configObject?.GeneralSettings?.Currencies)\r\n // Efficiency\r\n setEfficiencyGoal(configObject?.Efficiency?.Goal)\r\n setSecondayEfficiencyGoal(configObject?.Efficiency?.SecondaryGoal)\r\n setDownTimeGoal(\r\n percentageValueConversion(\r\n configObject?.Efficiency?.DownTimeGoal\r\n )?.toString()\r\n )\r\n setSecondarydownTimeGoal(\r\n percentageValueConversion(\r\n configObject?.Efficiency?.DownTimeSecondaryGoal\r\n )?.toString()\r\n )\r\n\r\n //Accuracy\r\n setAccuracyGoal(\r\n percentageValueConversion(configObject?.Accuracy?.Goal)?.toString()\r\n )\r\n setSecondayAccuracyGoal(\r\n percentageValueConversion(\r\n configObject?.Accuracy?.SecondaryGoal\r\n )?.toString()\r\n )\r\n setIncludeAuditTags(configObject?.Accuracy?.IncludeTagAudits)\r\n\r\n prepareLanguageOptions(configObject?.GeneralSettings?.SupportedLanguages)\r\n dispatch(setGeneralSettings(configObject?.GeneralSettings))\r\n }\r\n }, [configDetails, isGetConfigDecrypt, t])\r\n\r\n const handleChange = (event, id) => {\r\n updateWarnOnTabChangeToStore(true)\r\n let val = event.target.value\r\n if (id === 1) {\r\n setConfigEmptyError(false)\r\n setIsDisabled(false)\r\n setConfigNameErrorMsg(\"\")\r\n setConfigName(event.target.value)\r\n if (event.target.value) {\r\n const isValid = validateInputString(val)\r\n if (!isValid) {\r\n setIsDisabled(true)\r\n setConfigNameErrorMsg(getTranslations(t, Translates.Invalid_Input))\r\n }\r\n } else {\r\n setConfigEmptyError(true)\r\n setIsDisabled(true)\r\n }\r\n } else if (id === 2) {\r\n setNotesLength(event.target.textLength || event.target.value.length)\r\n setNotes(event.target.value)\r\n } else if (id === 3) {\r\n setCurrency(event.target.value)\r\n } else if (id === 4) {\r\n if (event.target.value === STATUS_CONSTANTS.Active) {\r\n if (!configFileValidation()) return false\r\n }\r\n\r\n setStatus(event.target.value)\r\n } else if (id === 5) {\r\n if (event.target.name === \"EfficiencyGoal\") {\r\n setEfficiencyGoal(val)\r\n setEfficiencyGoalError(\"\")\r\n if (!validateDecimal(val)) {\r\n setEfficiencyGoal(val.substring(0, val - 1))\r\n } else {\r\n if (Number(val || 0) <= Number(secondayEfficiencyGoal || 0)) {\r\n setEfficiencyGoalError(\r\n \"Efficiency goal should greater than secondary efficiency goal\"\r\n )\r\n } else {\r\n setSecondayEfficiencyGoalError(\"\")\r\n }\r\n }\r\n }\r\n } else if (id === 6) {\r\n if (event.target.name === \"SecondaryEfficiencyGoal\") {\r\n setSecondayEfficiencyGoal(val)\r\n setSecondayEfficiencyGoalError(\"\")\r\n if (!validateDecimal(val)) {\r\n setSecondayEfficiencyGoal(val.substring(0, val - 1))\r\n } else {\r\n if (efficiencyGoal !== \"\") {\r\n if (Number(efficiencyGoal) < Number(val)) {\r\n setSecondayEfficiencyGoalError(\r\n \"Secondary efficiency goal should less than efficiency goal\"\r\n )\r\n } else {\r\n setEfficiencyGoalError(\"\")\r\n }\r\n }\r\n }\r\n }\r\n } else if (id === 7) {\r\n if (event.target.name === \"DowntimeGoal\") {\r\n setDownTimeGoal(val)\r\n if (!validateDecimal(val)) {\r\n setDownTimeGoal(val.substring(0, val - 1))\r\n }\r\n }\r\n } else if (id === 8) {\r\n if (event.target.name === \"SecondaryDowntimeGoal\") {\r\n setSecondarydownTimeGoal(val)\r\n if (!validateDecimal(val)) {\r\n setSecondarydownTimeGoal(val.substring(0, val - 1))\r\n }\r\n }\r\n } else if (id === 9) {\r\n if (event.target.name === \"AccuracyGoal\") {\r\n setAccuracyGoal(val)\r\n if (!validateDecimal(val)) {\r\n setAccuracyGoal(val.substring(0, val - 1))\r\n }\r\n }\r\n } else if (id === 10) {\r\n if (event.target.name === \"SecondaryAccuracyGoal\") {\r\n setSecondayAccuracyGoal(val)\r\n if (!validateDecimal(val)) {\r\n setSecondayAccuracyGoal(val.substring(0, val - 1))\r\n }\r\n }\r\n } else if (id === 11) {\r\n if (event.target.name === \"includeAuditTags\") {\r\n setIncludeAuditTags(event.target.checked)\r\n }\r\n }\r\n }\r\n\r\n const onPercentageChange = (event, val) => {\r\n updateWarnOnTabChangeToStore(true)\r\n let targetID = event?.target?.id?.split(\"-\")[0]\r\n\r\n if (targetID === \"DowntimeGoal\") {\r\n setDownTimeGoal(val)\r\n } else if (targetID === \"SecondaryDowntimeGoal\") {\r\n setSecondarydownTimeGoal(val)\r\n } else if (targetID === \"AccuracyGoal\") {\r\n setAccuracyGoal(val)\r\n } else if (targetID === \"SecondaryAccuracyGoal\") {\r\n setSecondayAccuracyGoal(val)\r\n }\r\n }\r\n\r\n const setStatusValue = statusValue => {\r\n if (\r\n statusValue === STATUS_CONSTANTS.Active ||\r\n statusValue === STATUS_CONSTANTS.InActive\r\n ) {\r\n return STATUS_OBJECT[statusValue]\r\n } else {\r\n return STATUS_OBJECT.NotInstalled\r\n }\r\n }\r\n const settingsSaveClick = () => {\r\n let error: any = false\r\n selectedLanguages = languages.filter((lan: any) => lan.selected)\r\n selectedLanguages = selectedLanguages.map((sel: any) => {\r\n return sel.value\r\n })\r\n\r\n let generalSettings = {\r\n CustomerID: customerId,\r\n CustomerName: customerName,\r\n ConfigurationId: configData?.idConfig,\r\n ConfigurationName: configName,\r\n ConfigurationVersion: parseFloat(configData?.version).toFixed(1),\r\n Currencies: currency,\r\n Notes: notes,\r\n SupportedLanguages: selectedLanguages,\r\n Status: setStatusValue(status)\r\n }\r\n let efficiencySettings = {\r\n Goal: efficiencyGoal ? parseInt(efficiencyGoal, DEFAULT_RADIX) : 0,\r\n SecondaryGoal: secondayEfficiencyGoal\r\n ? parseInt(secondayEfficiencyGoal, DEFAULT_RADIX)\r\n : 0,\r\n DownTimeGoal: downTimeGoal\r\n ? parseFloat(formatInteger(downTimeGoal)?.toString())\r\n : 0,\r\n DownTimeSecondaryGoal: secondarydownTimeGoal\r\n ? parseFloat(formatInteger(secondarydownTimeGoal)?.toString())\r\n : 0\r\n }\r\n\r\n let accuracySettings = {\r\n IncludeTagAudits: includeAuditTags,\r\n Goal: accuracyGoal\r\n ? parseFloat(formatInteger(accuracyGoal)?.toString())\r\n : 0,\r\n SecondaryGoal: secondayAccuracyGoal\r\n ? parseFloat(formatInteger(secondayAccuracyGoal)?.toString())\r\n : 0\r\n }\r\n let configObject: any = customerConfigurations?.find((config: any) => {\r\n if (configName)\r\n return (\r\n config?.name?.toLowerCase() === configName?.toLowerCase() &&\r\n config.idConfig !== configData?.idConfig\r\n )\r\n })\r\n if (\r\n configObject &&\r\n configDetails.version <= 1.0 &&\r\n !configTypeFromStore?.includes(\"newVersion\") &&\r\n !configTypeFromStore?.includes(\"reopen\")\r\n ) {\r\n error = true\r\n setConfigNameError(true)\r\n } else {\r\n setConfigNameError(false)\r\n }\r\n if (!error) {\r\n dispatch(setDefaultConfigName(generalSettings.ConfigurationName))\r\n dispatch(setGeneralSettings(generalSettings))\r\n dispatch(setEfficiencySettings(efficiencySettings))\r\n dispatch(setAccuracySettings(accuracySettings))\r\n if (!efficiencyGoalError && !secondayEfficiencyGoalError) {\r\n liftSettingsSaveClick(\r\n {\r\n ...generalSettings,\r\n SupportedLanguages: selectedLanguages,\r\n EfficiencySettings: efficiencySettings,\r\n AccuracySettings: accuracySettings\r\n },\r\n \"GSTab\"\r\n )\r\n }\r\n }\r\n }\r\n\r\n let alertVisibleStatus: any = customerConfigurations?.map(id => {\r\n return id.statusId === STATUS_OBJECT.Active\r\n })\r\n const setDisabledStatus = () => {\r\n if (\r\n configTypeFromStore &&\r\n (configTypeFromStore?.includes(\"newVersion\") ||\r\n configTypeFromStore?.includes(\"reopen\"))\r\n ) {\r\n return true\r\n } else if (configDetails?.version !== \"1.0\") {\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n\r\n const configFileValidation = (): boolean => {\r\n let dt: ConfigurationStoreType = {\r\n ...ConfigurationStoreInitiate,\r\n ...getConfigurationDecryptAndSetRedux(configSliceData)\r\n }\r\n const { errorCount, error } = configFileValidationCheck(dt, t, Translates)\r\n\r\n if (errorCount > 0) {\r\n toastMsgShow({\r\n title: getTranslations(\r\n t,\r\n Translates.Configuration_details_not_completed\r\n ),\r\n severity: \"error\" as AlertColor,\r\n content: error\r\n })\r\n }\r\n\r\n return errorCount === 0\r\n }\r\n const configErrMsg = (configNameError, configEmptyError) => {\r\n if ((configNameError || configEmptyError) && !configNameErrorMsg) {\r\n return getTranslations(t, Translates.Configuration_name_cannot_be_empty)\r\n } else if (configNameErrorMsg) {\r\n return configNameErrorMsg\r\n }\r\n\r\n return \"\"\r\n }\r\n const toastMsgShow = alertMsg => {\r\n setAlertProps({\r\n ...alertMsg\r\n })\r\n setShowAlert(true)\r\n setTimeout(() => {\r\n setShowAlert(false)\r\n }, 3000)\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChange(e, 1)}\r\n name=\"settingsConfigName\"\r\n autoComplete=\"off\"\r\n className=\"custom-form-control\"\r\n error={\r\n configNameError || configEmptyError || !!configNameErrorMsg\r\n }\r\n disabled={setDisabledStatus()}\r\n helperText={configErrMsg(configNameError, configEmptyError)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {languages.map((lan: any, idx) => {\r\n return (\r\n \r\n
    \r\n handleLanguagesChange(idx)}\r\n checkedIcon={}\r\n />\r\n }\r\n label={lan.label}\r\n />\r\n
    \r\n \r\n )\r\n })}\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Currency)}\r\n \r\n handleChange(e, 3)}\r\n data-testid={\"menu-item\"}\r\n >\r\n {currencies?.map((c: any, index) => (\r\n \r\n \r\n \r\n \r\n {c.label.split(\"-\")[0]}\r\n {\" \"}\r\n -{\" \"}\r\n \r\n {c.label.split(\"-\")[1]}\r\n {\" \"}\r\n - {getTranslations(t, c.key)}\r\n \r\n }\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.ConfigurationNotes)}\r\n \r\n
    \r\n handleChange(e, 2)}\r\n inputProps={{ maxLength: 255 }}\r\n rows={3}\r\n className=\"custom-form-control\"\r\n />\r\n {notesLength}/255\r\n
    \r\n
    \r\n
    \r\n {configData?.statusId === STATUS_OBJECT.NotInstalled ? (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n handleChange(e, 4)}\r\n value={status}\r\n >\r\n }\r\n label={getTranslations(t, STATUS_CONSTANTS.Active)}\r\n />\r\n }\r\n label={getTranslations(t, STATUS_CONSTANTS.Inactive)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n ) : null}\r\n
    \r\n\r\n \r\n \r\n {alertVisibleStatus?.includes(true) ? (\r\n \r\n }\r\n className=\"custom-alert\"\r\n >\r\n \r\n {getTranslations(t, \"Alert\")}\r\n \r\n

    \r\n \r\n {getTranslations(t, Translates.Default_Configuration)}\r\n \r\n {getTranslations(\r\n t,\r\n Translates.There_is_already_a_default_configuration_for_this_customer\r\n )}\r\n

    \r\n \r\n
    \r\n ) : null}\r\n \r\n \r\n \r\n \r\n handleChange(e, 5)}\r\n error={!!efficiencyGoalError}\r\n helperText={efficiencyGoalError}\r\n />\r\n handleChange(e, 6)}\r\n error={!!secondayEfficiencyGoalError}\r\n helperText={secondayEfficiencyGoalError}\r\n />\r\n \r\n option}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n \r\n option}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n \r\n option}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n \r\n option}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n handleChange(e, 11)}\r\n className=\"custom-check light\"\r\n checkedIcon={}\r\n checked={includeAuditTags}\r\n />\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Include_Tag_Audits_in_Accuracy_Calculation\r\n )}\r\n />\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n {showAlert ? : null}\r\n \r\n )\r\n}\r\n\r\nexport default GeneralSettings\r\n","import fieldTypes from \"src/constants/fieldTypes\"\r\n\r\nexport const numberWithRequired = {\r\n type: fieldTypes.number,\r\n required: {}\r\n}\r\nexport const numberWithNotRequired = {\r\n type: fieldTypes.number\r\n}\r\nexport const stringWithRequired = {\r\n type: fieldTypes.string,\r\n required: {}\r\n}\r\nexport const stringWithNotRequired = {\r\n type: fieldTypes.string\r\n}\r\n\r\nexport const arrayWithRequired = {\r\n type: fieldTypes.array,\r\n required: {}\r\n}\r\nexport const arrayWithNotRequired = {\r\n type: fieldTypes.array\r\n}\r\n\r\nexport const utilTypes = {\r\n IfText: \"IfText\",\r\n AND: \"AND\",\r\n OR: \"OR\"\r\n}\r\n\r\nconst functionNames = {\r\n CheckBarcodeType: \"CheckBarcodeType\",\r\n CheckDigit: \"CheckCheckDigit\",\r\n Braces: \"Braces\",\r\n If: \"If\",\r\n CheckDataType: \"CheckDataType\",\r\n CheckEntryMethod: \"CheckEntryMethod\",\r\n CheckLengths: \"CheckLength\",\r\n CheckValueRange: \"CheckValueRange\",\r\n CheckDecimalRange: \"CheckDecimalRange\",\r\n CheckLengthRange: \"CheckLengthRange\",\r\n RegEx: \"RegEx\",\r\n IsEqual: \"IsEqual\",\r\n IsGreaterThan: \"IsGreaterThan\",\r\n IsGreaterThanOrEqual: \"IsGreaterThanOrEqual\",\r\n IsLessThan: \"IsLessThan\",\r\n IsLessThanOrEqual: \"IsLessThanOrEqual\",\r\n IsIn: \"IsIn\",\r\n StartsWith: \"StartsWith\",\r\n EndsWith: \"EndsWith\",\r\n IsNull: \"IsNull\",\r\n IsNullOrEmpty: \"IsNullOrEmpty\",\r\n IsNullOrWhiteSpace: \"IsNullOrWhiteSpace\",\r\n IsNotNull: \"IsNotNull\",\r\n IsNotNullOrEmpty: \"IsNotNullOrEmpty\",\r\n IsNotNullOrWhiteSpace: \"IsNotNullOrWhiteSpace\",\r\n HasConsecutiveSameDigits: \"HasConsecutiveSameDigits\",\r\n AllowScan: \"AllowScan\",\r\n AllowKey: \"AllowKey\",\r\n AutoStore: \"AutoStore\",\r\n Lookup: \"Lookup\",\r\n LookupRoutine: \"LookupRoutine\",\r\n Error: \"ERROR\",\r\n Trim: \"Trim\",\r\n LTrim: \"LTrim\",\r\n RTrim: \"RTrim\",\r\n LPad: \"LPad\",\r\n RPad: \"RPad\",\r\n SubString: \"SubString\",\r\n SubStringFromEnd: \"SubStringFromEnd\",\r\n ToUpper: \"ToUpper\",\r\n ToLower: \"ToLower\",\r\n Remove: \"Remove\",\r\n Replace: \"Replace\",\r\n RemoveFromEnd: \"RemoveFromEnd\",\r\n Strip: \"Strip\",\r\n StripControlChars: \"StripControlChars\",\r\n Split: \"Split\",\r\n Insert: \"Insert\",\r\n ExpandUpceToUpca: \"ExpandUpceToUpca\",\r\n AddCheckDigit: \"AddCheckDigit\",\r\n RestoreOriginal: \"RestoreOriginal\",\r\n Else: \"Else\",\r\n Endif: \"Endif\",\r\n HasConsecutiveSameCapture: \"HasConsecutiveSameCapture\",\r\n RecordsInLoop: \"RecordsInLoop\",\r\n Add: \"Add\",\r\n Subtract: \"Subtract\",\r\n Multiply: \"Multiply\",\r\n Divide: \"Divide\",\r\n Round: \"Round\",\r\n Floor: \"Floor\",\r\n Ceil: \"Ceil\"\r\n}\r\n\r\nexport const ruleEditorFunctions = {\r\n booleanFn: \"booleanFunction\"\r\n}\r\n\r\nexport default functionNames\r\n","import * as crypto from \"crypto-js\"\r\nimport React from \"react\"\r\nimport moment from \"moment\"\r\nimport { store } from \"src/redux/store\"\r\nimport { UserService } from \"src/service/user.service\"\r\nimport { HereService } from \"src/service/here.service\"\r\nimport { SettingsService } from \"src/service/settings.service\"\r\nimport { config } from \"src/config/config\"\r\nimport i18next from \"i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { PrepareMsalConfigParams } from \"./types/types\"\r\nimport {\r\n BULK_UPLOADING,\r\n SCHEDULE_STATUS_CONSTANTS,\r\n SECONDARY_PHONE,\r\n SHARE_EVENTS,\r\n STATUS_CONSTANTS,\r\n USER_STATUS_CONSTANTS,\r\n US_STATE_MAP,\r\n currencyFormatRegex,\r\n disallowedExtensions,\r\n languages\r\n} from \"src/utils/constants\"\r\nimport Papa from \"papaparse\"\r\nimport {\r\n setCSVUserColumnList,\r\n setUserFileData,\r\n setUserMappingData\r\n} from \"src/redux/slices/usersSlice\"\r\nimport {\r\n setCSVScheduleColumnList,\r\n setScheduleFileData\r\n} from \"src/redux/slices/scheduleSlice\"\r\nimport {\r\n setCSVLocationColumnList,\r\n setLocationFileData\r\n} from \"src/redux/slices/settingsSlice\"\r\nimport {\r\n setCSVReservationColumnList,\r\n setReservationFileData\r\n} from \"src/redux/slices/reservationsSlice\"\r\nimport {\r\n setCSVUploadFileColumnListAreaRange,\r\n setCSVUploadFileColumnListDeparment,\r\n setCSVUploadFileColumnListVariance,\r\n setUploadFileData\r\n} from \"src/redux/slices/uploadFileSlice\"\r\nimport { setConfigDetails } from \"src/redux/slices/configSlice\"\r\nexport const getUniqueKey = () => {\r\n return (Math.random() + 1).toString(36).substring(7)\r\n}\r\n//istanbul ignore next\r\nexport const getKeys = (valKey: string) => {\r\n let keys = store.getState()?.auth?.keys\r\n let result = keys.find(key => {\r\n return key?.secretKey?.includes(valKey)\r\n })\r\n if (result) {\r\n return result.secretValue\r\n }\r\n return \"\"\r\n}\r\n//istanbul ignore next\r\nexport const encrypt = plaintext => {\r\n let SecretKey: string = getKeys(\"UrlEncryptionSecretKey\")\r\n let IV: string = getKeys(\"UrlEncryptionIVKey\")\r\n if (SecretKey && IV) {\r\n let keyWA = crypto.enc.Utf8.parse(SecretKey)\r\n let ivWA = crypto.enc.Utf8.parse(IV)\r\n let encrypted = crypto.AES.encrypt(plaintext, keyWA, { iv: ivWA })\r\n return encrypted.toString()\r\n }\r\n return \"\"\r\n}\r\nexport const encryptBulkColumns = columns => {\r\n let result = columns.map(column => {\r\n return {\r\n dataAttribute: encrypt(column.dataAttribute),\r\n csvAttribute: encrypt(column.csvAttribute)\r\n }\r\n })\r\n return result\r\n}\r\n//istanbul ignore next\r\nexport const decrypt = chiper => {\r\n let SecretKey: string = getKeys(\"UrlEncryptionSecretKey\")\r\n let IV: string = getKeys(\"UrlEncryptionIVKey\")\r\n if (SecretKey && IV) {\r\n let keyWA = crypto.enc.Utf8.parse(SecretKey)\r\n let ivWA = crypto.enc.Utf8.parse(IV)\r\n let decrypted = crypto.AES.decrypt(chiper, keyWA, { iv: ivWA })\r\n decrypted = decrypted.toString(crypto.enc.Utf8)\r\n\r\n return decrypted\r\n }\r\n return \"\"\r\n}\r\nexport const useQuery = () => {\r\n const { search } = window.location\r\n return React.useMemo(() => new URLSearchParams(search), [search])\r\n}\r\nexport const getQueryParam = key => {\r\n let search = window.location.search\r\n let params = new URLSearchParams(search)\r\n return params.get(key)\r\n}\r\nexport const days = (date_1, date_2) => {\r\n let difference = date_1.getTime() - date_2.getTime()\r\n let TotalDays = Math.ceil(difference / (1000 * 3600 * 24))\r\n return TotalDays\r\n}\r\n\r\n//istanbul ignore next\r\nexport const filterByHelper = (filters: any, data, others: any = {}) => {\r\n let filtered = [...(data || [])]\r\n\r\n filters.forEach((f: any) => {\r\n if (f.func === \"equalString\" || f.func === \"equals\") {\r\n filtered = filtered.filter((d: any) => {\r\n // --------------- multi select ---------------\r\n if (Array.isArray(f.value)) {\r\n if (d[f.field]) {\r\n return f.value.includes(\r\n d[f.field].replace(/\\s*\\([^)]*\\)/g, \"\").trim()\r\n )\r\n }\r\n return false\r\n }\r\n // ---------------- single string ----------------\r\n else if (d[f.field] && f.value) {\r\n return (\r\n d[f.field]\r\n .replace(/\\s*\\([^)]*\\)/g, \"\")\r\n .trim()\r\n .toLowerCase() ===\r\n f.value\r\n .replace(/\\s*\\([^)]*\\)/g, \"\")\r\n .trim()\r\n .toLowerCase()\r\n )\r\n }\r\n return false\r\n })\r\n }\r\n if (f.func === \"configEqualString\") {\r\n filtered = filtered.filter((d: any) => {\r\n // --------------- multi select ---------------\r\n if (Array.isArray(f.value)) {\r\n if (d.configName && d.configVersion) {\r\n const combinedField = `${d.configName} - ${d.configVersion}`\r\n return f.value.some(\r\n (val: string) =>\r\n val\r\n .replace(/\\s*\\([^)]*\\)/g, \"\")\r\n .trim()\r\n .toLowerCase() === combinedField.toLowerCase()\r\n )\r\n }\r\n return false\r\n }\r\n // ---------------- single string ----------------\r\n else if (d.configName && d.configVersion && f.value) {\r\n const combinedField = `${d.configName} - ${d.configVersion}`\r\n return (\r\n combinedField.toLowerCase() ===\r\n f.value\r\n .replace(/\\s*\\([^)]*\\)/g, \"\")\r\n .trim()\r\n .toLowerCase()\r\n )\r\n }\r\n return false\r\n })\r\n }\r\n if (f.func === \"includes\") {\r\n filtered = filtered.filter((d: any) => {\r\n if (d[f.field] && f.value) {\r\n if (\r\n (f.value && d[f.field]?.includes(f.value)) ||\r\n d[SECONDARY_PHONE]?.includes(f.value) ||\r\n d[f.field]?.toString() === f.value?.toString() ||\r\n d[f.field]?.toString() === SECONDARY_PHONE\r\n ) {\r\n return true\r\n }\r\n }\r\n return false\r\n })\r\n }\r\n\r\n if (f.func === \"toHave\") {\r\n filtered = filtered.filter((d: any) => {\r\n if (d[f.field] && f.value) {\r\n if (f.value && d[f.field].toLowerCase() === \"active\") {\r\n return true\r\n }\r\n }\r\n return false\r\n })\r\n }\r\n if (f.func === \"toNotHave\") {\r\n filtered = filtered.filter((d: any) => {\r\n if (d[f.field] && f.value) {\r\n if (\r\n f.value &&\r\n ![\r\n USER_STATUS_CONSTANTS.In_ACtive,\r\n USER_STATUS_CONSTANTS.InACtive\r\n ].includes(d[f.field].toLowerCase())\r\n ) {\r\n return true\r\n }\r\n }\r\n return false\r\n })\r\n }\r\n if (f.func === \"showAll\") {\r\n const STATUSES = [\r\n USER_STATUS_CONSTANTS.Active,\r\n USER_STATUS_CONSTANTS.InACtive,\r\n USER_STATUS_CONSTANTS.Invited,\r\n USER_STATUS_CONSTANTS.In_ACtive\r\n ]\r\n filtered = filtered.filter((d: any) => {\r\n if (d[f.field] && f.value) {\r\n if (STATUSES.includes(d[f.field].toLowerCase())) {\r\n return true\r\n }\r\n }\r\n return false\r\n })\r\n }\r\n if (f.func === \"phone\") {\r\n filtered = filtered.filter((d: any) => {\r\n if (d[f.field] && f.value) {\r\n return (\r\n d[f.field]\r\n ?.replace(\"(\", \"\")\r\n .replace(\")\", \"\")\r\n .replace(\"+\", \"\")\r\n .replace(/\\s/g, \"\")\r\n .replace(\"-\", \"\") ===\r\n f.value\r\n ?.replace(\"(\", \"\")\r\n .replace(\")\", \"\")\r\n .replace(\"+\", \"\")\r\n .replace(/\\s/g, \"\")\r\n .replace(\"-\", \"\")\r\n )\r\n }\r\n return false\r\n })\r\n }\r\n if (f.func === \"greater\") {\r\n filtered = filtered.filter((d: any) => {\r\n return new Date(d[f.field]).toISOString().split(\"T\")[0] > f.value\r\n })\r\n }\r\n if (f.func === \"equalDate\") {\r\n filtered = filtered.filter((d: any) => {\r\n let value = d[f.field]\r\n if (f.isConverstionRequired) {\r\n let date = moment.utc(value).local().format(\"DD-MM-YYYY\")\r\n value = `${date}`\r\n } else {\r\n value = moment(d[f.field]).format(\"DD-MM-YYYY\")\r\n }\r\n return value === moment(f.value).format(\"DD-MM-YYYY\")\r\n })\r\n }\r\n if (f.func === \"lesser\") {\r\n filtered = filtered.filter((d: any) => {\r\n return new Date(d[f.field]).toISOString().split(\"T\")[0] < f.value\r\n })\r\n }\r\n if (f.func === \"lesserAndEqual\") {\r\n filtered = filtered.filter((d: any) => {\r\n return d[f.field].split(\"T\")[0] <= f.value\r\n })\r\n }\r\n if (f.func === \"greaterAndEqual\") {\r\n filtered = filtered.filter((d: any) => {\r\n return d[f.field].split(\"T\")[0] >= f.value\r\n })\r\n }\r\n if (f.func === \"lesserAndEqualDate\") {\r\n filtered = filtered.filter((d: any) => {\r\n return new Date(d[f.field]).toISOString().split(\"T\")[0] <= f.value\r\n })\r\n }\r\n if (f.func === \"greaterAndEqualDate\") {\r\n filtered = filtered.filter((d: any) => {\r\n return new Date(d[f.field]).toISOString().split(\"T\")[0] >= f.value\r\n })\r\n }\r\n if (f.func === \"custom\") {\r\n let { path } = others\r\n filtered = filtered.filter((d: any) => {\r\n if (d[path[0]] && d[path[0]][path[1]]) {\r\n let regions = d[path[0]][path[1]]\r\n let rData = regions.filter(rg => {\r\n return (\r\n rg.regionNumber === f.field && f.value.includes(rg.regionValue)\r\n )\r\n })\r\n return rData.length ? true : false\r\n }\r\n return false\r\n })\r\n }\r\n })\r\n return filtered\r\n}\r\nexport const validateEmail = email => {\r\n if (!email) return false\r\n let regex =\r\n /^(([^<>()[\\]\\.,:\\s@\\\"]+(\\.[^<>()[\\]\\.,:\\s@\\\"]+)*)|(\\\".+\\\"))@(([^<>()[\\]\\.,:\\s@\\\"]+\\.)+[^<>()[\\]\\.,:\\s@\\\"]{2,})$/i\r\n let check = email.match(regex)\r\n return check ? true : false\r\n}\r\nexport const formatPhoneNumber = phoneNumberString => {\r\n const cleaned = phoneNumberString.replace(/^\\+\\d+|[\\s()+-]/g, \"\")\r\n let match = cleaned.match(/^(1)?(\\d{3})(\\d{3})(\\d{4})$/)\r\n\r\n if (match) {\r\n let intlCode = \"+1\"\r\n return [intlCode, \"(\", match[2], \") \", match[3], \"-\", match[4]].join(\"\")\r\n }\r\n return null\r\n}\r\nexport const validatePhoneNumber = phoneNumber => {\r\n if (!phoneNumber) return false\r\n let regex = /^(\\+\\d{1,2}\\s?)?1?\\-?\\.?\\s?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$/\r\n return regex.test(phoneNumber)\r\n}\r\n\r\nexport const validateInteger = fieldValue => {\r\n if (!fieldValue) return false\r\n const regex = /^[0-9\\b]+$/\r\n return regex.test(fieldValue)\r\n}\r\n\r\nexport const validateDecimal = fieldValue => {\r\n const regex = /^(\\d+)?(\\.\\d+)?$/\r\n if (!fieldValue) {\r\n return false\r\n } else {\r\n return regex.test(fieldValue)\r\n }\r\n}\r\nexport const validateOnlyInteger = fieldValue => {\r\n const regex = /^\\d+$/\r\n if (!fieldValue) {\r\n return false\r\n } else {\r\n return regex.test(fieldValue)\r\n }\r\n}\r\nexport const validateVariable = fieldValue => {\r\n if (!fieldValue) return false\r\n const regex = /^[a-zA-Z][a-zA-Z0-9]*$/\r\n return regex.test(fieldValue)\r\n}\r\nexport const encryptUrlParams = myString => {\r\n const encodedWord = crypto.enc.Utf8.parse(myString) // encodedWord Array object\r\n const encoded = crypto.enc.Base64.stringify(encodedWord) // string: 'NzUzMjI1NDE='\r\n return encoded\r\n}\r\n\r\n//istanbul ignore next\r\nexport const decryptUrlParams = encoded => {\r\n try {\r\n const encodedWord = crypto.enc.Base64.parse(encoded) // encodedWord via Base64.parse()\r\n const decoded = crypto.enc.Utf8.stringify(encodedWord) // decode encodedWord via Utf8.stringify() '75322541'\r\n return decoded\r\n } catch (err) {\r\n return \"\"\r\n }\r\n}\r\n\r\nconst _logOut = () => {\r\n localStorage.clear()\r\n window.location.href = \"/login\"\r\n}\r\n\r\nexport const parseToken = token => {\r\n if (!token) return \"\"\r\n try {\r\n const _base64Payload = token.split(\".\")[1]\r\n const _payloadBuffer = Buffer.from(_base64Payload || \"\", \"base64\")\r\n const parsedObj = JSON.parse(_payloadBuffer.toString())\r\n return parsedObj\r\n } catch (_err) {\r\n _logOut()\r\n return \"\"\r\n }\r\n}\r\n\r\nexport const getCurrentUserRole = (type = \"Permissions\") => {\r\n const _accessToken = localStorage.getItem(\"accessToken\")\r\n let parsedObj = parseToken(_accessToken)\r\n if (type === \"USER_ID\") {\r\n return parsedObj[\"UserId\"]\r\n } else if (type === \"ROLES_PERMISSIONS\") {\r\n return parsedObj[\"RolesAndPermissions\"]\r\n } else if (type === \"USER_REGIONS\") {\r\n return parsedObj[\"UserRegions\"]\r\n }\r\n return parsedObj[\r\n \"http://schemas.microsoft.com/ws/2008/06/identity/claims/role\"\r\n ]\r\n}\r\n\r\nexport const filterRegionalUserData = (regionalUserData, regionMappingData,reportsData=1) => {\r\n const region1Data = regionMappingData\r\n .filter(item => {\r\n return item.RegionNumber === 1\r\n })\r\n .map(({ RegionValue }) => RegionValue)\r\n\r\n const region2Data = regionMappingData\r\n .filter(item => {\r\n return item.RegionNumber === 2\r\n })\r\n .map(({ RegionValue }) => RegionValue)\r\n\r\n const region3Data = regionMappingData\r\n .filter(item => {\r\n return item.RegionNumber === 3\r\n })\r\n .map(({ RegionValue }) => RegionValue)\r\n\r\n const region4Data = regionMappingData\r\n .filter(item => {\r\n return item.RegionNumber === 4\r\n })\r\n .map(({ RegionValue }) => RegionValue)\r\n\r\n let filteredData: any\r\n let filteredRegion1Data = []\r\n let filteredRegion2Data = []\r\n let filteredRegion3Data = []\r\n let filteredRegion4Data = []\r\n // filter by region 1\r\n if (region1Data.length > 0) {\r\n filteredRegion1Data = regionalUserData.filter(function (itm) {\r\n return region1Data.indexOf(itm.region1) > -1\r\n })\r\n }\r\n // filter by region 2\r\n if (region2Data.length > 0) {\r\n filteredRegion2Data = regionalUserData.filter(function (itm) {\r\n return region2Data.indexOf(itm.region2) > -1\r\n })\r\n }\r\n // filter by region 3\r\n if (region3Data.length > 0) {\r\n filteredRegion3Data = regionalUserData.filter(function (itm) {\r\n return region3Data.indexOf(itm.region3) > -1\r\n })\r\n }\r\n // filter by region 4\r\n if (region4Data.length > 0) {\r\n filteredRegion4Data = regionalUserData.filter(function (itm) {\r\n return region4Data.indexOf(itm.region4) > -1\r\n })\r\n }\r\n filteredData = [\r\n ...filteredRegion1Data,\r\n ...filteredRegion2Data,\r\n ...filteredRegion3Data,\r\n ...filteredRegion4Data\r\n ]\r\nif(reportsData!=0)\r\n{\r\n // remove duplicates added by filter conditions using unique idevent\r\n filteredData = filteredData.filter(\r\n (value, index, self) =>\r\n index === self.findIndex(t => t.idEvent === value.idEvent)\r\n )\r\n}\r\n if (\r\n region1Data.length > 0 ||\r\n region2Data.length > 0 ||\r\n region3Data.length > 0 ||\r\n region4Data.length > 0\r\n ) {\r\n return filteredData\r\n } else {\r\n return regionalUserData\r\n }\r\n}\r\n\r\nexport const getPermissionsForUser = () => {\r\n const _accessToken = localStorage.getItem(\"accessToken\")\r\n if (_accessToken) {\r\n const _base64Payload = _accessToken.split(\".\")[1]\r\n const _payloadBuffer = Buffer.from(_base64Payload || \"\", \"base64\")\r\n const _dt = JSON.parse(_payloadBuffer.toString())\r\n return _dt?.Permissions ? JSON.parse(_dt?.Permissions) : []\r\n } else {\r\n return []\r\n }\r\n}\r\nexport const sortTableData = (\r\n unSortedDataOriginal,\r\n sortType,\r\n SortColumn,\r\n ColumnType\r\n) => {\r\n let sortedData\r\n let unSortedData = JSON.parse(JSON.stringify(unSortedDataOriginal))\r\n switch (ColumnType) {\r\n case \"Date\":\r\n if (sortType === \"DESC\") {\r\n sortedData = unSortedData.sort((a, b) => {\r\n return (\r\n new Date(b[SortColumn]).getTime() -\r\n new Date(a[SortColumn]).getTime()\r\n )\r\n })\r\n } else if (sortType === \"ASC\") {\r\n sortedData = unSortedData.sort((a, b) => {\r\n return (\r\n new Date(a[SortColumn]).getTime() -\r\n new Date(b[SortColumn]).getTime()\r\n )\r\n })\r\n }\r\n break\r\n case \"Interger\":\r\n if (sortType === \"DESC\") {\r\n sortedData = unSortedData.sort((a, b) => {\r\n if (a[SortColumn] > b[SortColumn]) {\r\n return -1\r\n }\r\n })\r\n } else if (sortType === \"ASC\") {\r\n sortedData = unSortedData.sort((a, b) => {\r\n if (a[SortColumn] < b[SortColumn]) {\r\n return -1\r\n }\r\n })\r\n }\r\n\r\n break\r\n }\r\n return sortedData\r\n}\r\n\r\nexport const replaceAll = (sourceStr, searchStr, replace) => {\r\n if (sourceStr) {\r\n return sourceStr.split(searchStr).join(replace)\r\n }\r\n return \"\"\r\n}\r\n\r\nexport const replaceAllMultiple = (sourceStr, searchArr, replaceArr) => {\r\n let locSourceStr = sourceStr\r\n if (locSourceStr) {\r\n if (\r\n Array.isArray(searchArr) &&\r\n Array.isArray(replaceArr) &&\r\n searchArr.length === replaceArr.length\r\n ) {\r\n searchArr.forEach((item, inx) => {\r\n locSourceStr = locSourceStr.replace(item, replaceArr[inx])\r\n })\r\n }\r\n }\r\n return locSourceStr\r\n}\r\nexport const handleFocus = event => event.target.select()\r\n\r\nexport const containsAll = (child, parent) => {\r\n for (let i of child) {\r\n if (!parent.includes(i)) return false\r\n }\r\n return true\r\n}\r\nexport const numericSort = (a, b) => {\r\n const numA = parseInt(a, 10)\r\n const numB = parseInt(b, 10)\r\n return numA - numB\r\n}\r\n\r\nexport const checkPhoneValidations = phone => {\r\n const regexNumbers = /^[0-9\\b]+$/\r\n const regexNumberschar = /^(?=.*?[1-9])[0-9\\s()+-]+$/\r\n\r\n if (phone?.length < 16) {\r\n return true\r\n } else if (phone?.length && regexNumbers.test(phone)) {\r\n return true\r\n } else if (phone?.length && !regexNumberschar.test(phone)) {\r\n return true\r\n } else if (\r\n phone?.length > 14 &&\r\n (phone[0] !== \"+\" ||\r\n phone[1] !== \"1\" ||\r\n phone[2] !== \"(\" ||\r\n phone[3] === \" \" ||\r\n phone[4] === \" \" ||\r\n phone[5] === \" \" ||\r\n phone[6] !== \")\" ||\r\n phone[7] !== \" \" ||\r\n phone[8] === \" \" ||\r\n phone[9] === \" \" ||\r\n phone[10] === \" \" ||\r\n phone[11] !== \"-\" ||\r\n phone[12] === \" \" ||\r\n phone[13] === \" \" ||\r\n phone[14] === \" \" ||\r\n phone[15] === \" \")\r\n ) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n}\r\n\r\nexport const getLocationsByAccountHelper = async customerId => {\r\n const userService = new UserService()\r\n return userService.getAllRegionalsByAccount(customerId)\r\n}\r\nexport const mapRegionValues = locationAccountData => {\r\n let r1: any = []\r\n let r2: any = []\r\n let r3: any = []\r\n let r4: any = []\r\n locationAccountData.map((m: any) => {\r\n if (m.region1) r1.push(m.region1)\r\n if (m.region2) r2.push(m.region2)\r\n if (m.region3) r3.push(m.region3)\r\n if (m.region4) r4.push(m.region4)\r\n })\r\n r1 = formatRGValues(r1)\r\n r2 = formatRGValues(r2)\r\n r3 = formatRGValues(r3)\r\n r4 = formatRGValues(r4)\r\n return { r1, r2, r3, r4 }\r\n}\r\n\r\nexport const formatRGValues = regionValues => {\r\n let regionValuesArray: any = []\r\n for (let value of regionValues) {\r\n if (value) {\r\n let splitString = value.split(\",\")\r\n for (let item of splitString) {\r\n if (item) regionValuesArray.push(item)\r\n }\r\n }\r\n }\r\n return Array.from(new Set(regionValuesArray))\r\n}\r\nexport const _userRole: string = getCurrentUserRole()\r\nexport const handleSuperVisorPortalRedirect = (record, component) => {\r\n let _userRole = getCurrentUserRole()\r\n\r\n let name = localStorage.getItem(\"name\")\r\n const email = localStorage.getItem(\"username\")\r\n let userFirstName = name?.split(\" \")[0] ? name?.split(\" \")[0] : \"\"\r\n let userLastName = name?.split(\" \")[1]\r\n ? name.substring(userFirstName.length + 1)\r\n : \"NOLNAME\"\r\n let fromCustomer = \"Y\"\r\n let supervisorPortalURL = config.supervisorURL\r\n let eventId: any\r\n if (component === \"schedule\") {\r\n eventId = record.idEvent\r\n } else {\r\n eventId = record.eventId\r\n }\r\n let queryString = `?FromCustomer=${fromCustomer}&Email=${encryptUrlParams(\r\n email\r\n )}&UserFirstName=${encryptUrlParams(\r\n userFirstName\r\n )}&UserLastName=${encryptUrlParams(userLastName)}&userType=${encryptUrlParams(\r\n _userRole\r\n )}&_proof=${encryptUrlParams(record.password)}`\r\n let redirectURL = supervisorPortalURL + queryString\r\n window.open(redirectURL, \"_blank\")\r\n}\r\n\r\nexport const validateWisTagsValue = value => {\r\n if (!value) {\r\n return \"\"\r\n } else {\r\n const numericValue = parseInt(value, 10)\r\n if (numericValue > 20000) {\r\n return Translates.Value_not_exceed_20000\r\n } else if (numericValue < 0) {\r\n return Translates.Invalid_Value\r\n } else if (numericValue % 100 !== 0) {\r\n return Translates.Value_must_multiple_100\r\n } else {\r\n return \"\"\r\n }\r\n }\r\n}\r\nexport const SORT_TYPES = {\r\n ASC: \"ASC\",\r\n DESC: \"DESC\"\r\n}\r\nexport const sortByKey = (data, sortBy, sortType) => {\r\n if (!data || !data.length) return []\r\n let sorted = []\r\n if (sortType === SORT_TYPES.ASC)\r\n sorted = data.sort((a, b) => (a[sortBy] > b[sortBy] ? 1 : -1))\r\n if (sortType === SORT_TYPES.DESC)\r\n sorted = data.sort((a, b) => (a[sortBy] < b[sortBy] ? 1 : -1))\r\n return sorted\r\n}\r\nexport function translate(key) {\r\n if (i18next.exists(key)) {\r\n return i18next.t(key)\r\n } else {\r\n return \"\"\r\n }\r\n}\r\nexport const searchLiveEvents = (input, data) => {\r\n const searchTerm = input.trim().toLowerCase()\r\n return data?.filter(item => {\r\n // Modify the conditions based on your search requirements\r\n const nameMatch = item?.storeName?.toLowerCase().includes(searchTerm)\r\n const siteIdMatch = item?.siteId?.toLowerCase().includes(searchTerm)\r\n const addressMatch = item?.address\r\n ?.toString()\r\n .toLowerCase()\r\n .includes(searchTerm)\r\n return nameMatch || siteIdMatch || addressMatch\r\n })\r\n}\r\nexport const filterAndSort = array => {\r\n const filteredArray = array?.filter(el => el !== null && el !== \"\")\r\n const uniqueValues = Array.from(new Set(filteredArray))\r\n const sortedArray = [...uniqueValues].sort((a: any, b: any) =>\r\n a.localeCompare(b)\r\n )\r\n return sortedArray\r\n}\r\nexport const sortData = array => {\r\n if (!Array.isArray(array)) {\r\n return []\r\n }\r\n const sortedArray = array.slice().sort((a, b) => {\r\n const valueA = a.toLowerCase()\r\n const valueB = b.toLowerCase()\r\n return valueA.localeCompare(valueB)\r\n })\r\n\r\n return sortedArray\r\n}\r\n\r\nexport const getRegionData = (\r\n userData,\r\n setFilteredRegion1Values,\r\n setFilteredRegion2Values,\r\n setFilteredRegion3Values,\r\n setFilteredRegion4Values\r\n) => {\r\n const filterAndSetValues = regionName => {\r\n const newArray = userData?.map(a => a[regionName])\r\n const filteredArray = newArray?.filter(el => el !== null && el !== \"\")\r\n const uniqueValues = Array.from(new Set(filteredArray))\r\n switch (regionName) {\r\n case \"region1\":\r\n setFilteredRegion1Values(uniqueValues)\r\n break\r\n case \"region2\":\r\n setFilteredRegion2Values(uniqueValues)\r\n break\r\n case \"region3\":\r\n setFilteredRegion3Values(uniqueValues)\r\n break\r\n case \"region4\":\r\n setFilteredRegion4Values(uniqueValues)\r\n break\r\n default:\r\n break\r\n }\r\n }\r\n\r\n filterAndSetValues(\"region1\")\r\n filterAndSetValues(\"region2\")\r\n filterAndSetValues(\"region3\")\r\n filterAndSetValues(\"region4\")\r\n}\r\nexport const handleResetAll = ({\r\n setRegion1,\r\n setRegion2,\r\n setRegion3,\r\n setRegion4,\r\n setCountryName,\r\n setStateName,\r\n setDate,\r\n setStatusName,\r\n isSchedulePage\r\n}) => {\r\n setRegion1([])\r\n setRegion2([])\r\n setRegion3([])\r\n setRegion4([])\r\n setStateName([])\r\n setCountryName([])\r\n setStatusName(\r\n isSchedulePage\r\n ? [\r\n SCHEDULE_STATUS_CONSTANTS.INPROGRESS,\r\n SCHEDULE_STATUS_CONSTANTS.NOTSTARTED,\r\n SCHEDULE_STATUS_CONSTANTS.Completed,\r\n SCHEDULE_STATUS_CONSTANTS.Locked\r\n ]\r\n : []\r\n )\r\n setDate({\r\n scheduledDateTime: \"\"\r\n })\r\n}\r\nexport const handleScheduleResetAll = ({\r\n setRegion1,\r\n setRegion2,\r\n setRegion3,\r\n setRegion4,\r\n setCountryName,\r\n setStateName,\r\n setStartDate,\r\n setEndDate,\r\n setStatusName,\r\n isSchedulePage,\r\n setConfigName\r\n}) => {\r\n setRegion1([])\r\n setRegion2([])\r\n setRegion3([])\r\n setRegion4([])\r\n setStateName([])\r\n setCountryName([])\r\n setStatusName(\r\n isSchedulePage\r\n ? [\r\n SCHEDULE_STATUS_CONSTANTS.INPROGRESS,\r\n SCHEDULE_STATUS_CONSTANTS.NOTSTARTED,\r\n SCHEDULE_STATUS_CONSTANTS.Completed,\r\n SCHEDULE_STATUS_CONSTANTS.Locked,\r\n SCHEDULE_STATUS_CONSTANTS.LOCK_IN_PROGRESS,\r\n SCHEDULE_STATUS_CONSTANTS.SOFT_CLOSE\r\n ]\r\n : []\r\n )\r\n setStartDate(moment().subtract(1, \"days\").format(\"YYYY-MM-DD\"))\r\n setEndDate(moment().add(30, \"days\").format(\"YYYY-MM-DD\"))\r\n setConfigName([])\r\n}\r\nexport const dateChangeHandler = (e, setDate, date) => {\r\n const val = e.target.value || \"\"\r\n if (e.target.name === \"scheduledDateTime\") {\r\n setDate({\r\n scheduledDateTime: val\r\n })\r\n } else if (e.target.name) {\r\n setDate({\r\n ...date,\r\n [e.target.name]: val\r\n })\r\n }\r\n}\r\nexport const handleChangeRegion = (\r\n event,\r\n id,\r\n setRegion1,\r\n setRegion2,\r\n setRegion3,\r\n setRegion4\r\n) => {\r\n const {\r\n target: { value }\r\n } = event\r\n if (id == 1) {\r\n setRegion1(typeof value === \"string\" ? value.split(\",\") : value)\r\n } else if (id == 2) {\r\n setRegion2(typeof value === \"string\" ? value.split(\",\") : value)\r\n } else if (id == 3) {\r\n setRegion3(typeof value === \"string\" ? value.split(\",\") : value)\r\n } else if (id == 4) {\r\n setRegion4(typeof value === \"string\" ? value.split(\",\") : value)\r\n }\r\n}\r\nexport const handleChangeCountryVal = (event, setCountryName) => {\r\n const {\r\n target: { value }\r\n } = event\r\n setCountryName(typeof value === \"string\" ? value.split(\",\") : value)\r\n}\r\nexport const handleChangeSiteIdVal = (event, setSiteIdSelects) => {\r\n const {\r\n target: { value }\r\n } = event\r\n setSiteIdSelects(typeof value === \"string\" ? value.split(\",\") : value)\r\n}\r\nexport const handleChangeStatusVal = (\r\n event,\r\n setStatusName,\r\n statusName,\r\n uniqStatus\r\n) => {\r\n const value = event.target.value\r\n if (value[value.length - 1] === \"All\") {\r\n setStatusName(\r\n statusName.length === uniqStatus.length\r\n ? []\r\n : uniqStatus.map(i => i.value)\r\n )\r\n return\r\n }\r\n setStatusName(value)\r\n}\r\n\r\nexport const handleChangeStateVal = (event, setStateName) => {\r\n const {\r\n target: { value }\r\n } = event\r\n setStateName(typeof value === \"string\" ? value.split(\",\") : value)\r\n}\r\nexport const handleChangeConfigVal = (event, setConfigName) => {\r\n const {\r\n target: { value }\r\n } = event\r\n setConfigName(typeof value === \"string\" ? value.split(\",\") : value)\r\n}\r\nexport const mapEventsData = eventsData => {\r\n let countryValues: any = []\r\n let stateValues: any = []\r\n let statusValues: any = []\r\n let eventStartDateValues: any = []\r\n eventsData.map((m: any) => {\r\n countryValues.push(m.country)\r\n stateValues.push(m.state)\r\n statusValues.push(m.status)\r\n eventStartDateValues.push(m.eventStartDate)\r\n })\r\n return { countryValues, stateValues, statusValues, eventStartDateValues }\r\n}\r\nexport const isValidInputValue = e => {\r\n const inputValue = e.target.value\r\n const maxLength = 6\r\n return /^-?\\d*$/.test(inputValue) && inputValue.length <= maxLength\r\n}\r\nexport const getTranslations = (t, key) => {\r\n return t(Translates[key] ?? key)\r\n}\r\nconst WIS_DOMAIN: string = \"wisintl.com\"\r\nexport const prepareMsalConfig = (\r\n params: PrepareMsalConfigParams,\r\n msalConfig,\r\n isLoggedIn\r\n) => {\r\n if (isLoggedIn) {\r\n let username = localStorage.getItem(\"username\")\r\n if (username) {\r\n let splitStr = username.split(\"@\")\r\n let domain = splitStr[1]\r\n params = { domain_hint: domain, login_hint: username }\r\n }\r\n }\r\n let mConfig: any = { ...msalConfig }\r\n let domain = params.domain_hint\r\n let auth: any = process.env.REACT_APP_AD_AUTHORITY_URL || \"\"\r\n if (domain !== WIS_DOMAIN) {\r\n auth = auth + process.env.REACT_APP_AD_EXT_AUTH\r\n } else {\r\n auth = auth + process.env.REACT_APP_AD_INT_AUTH\r\n }\r\n mConfig.auth.authority = auth\r\n return mConfig\r\n}\r\n\r\nexport const populateCSVFileWithDoNotChangeTheColumnHeader = () =>\r\n Translates.Populate_the_CSV_file_with_the_import_data_Do_not_change_the_column_headers\r\nexport const Download_template_right_to_create_a_CSV_file = () => {\r\n return Translates.Download_the_template_from_the_right_to_create_a_CSV_file\r\n}\r\nexport const Upload_the_CSV_file_in_the_upload_box = () => {\r\n return Translates.Upload_the_CSV_file_in_the_upload_box_provided_below\r\n}\r\nexport const Csv_Template = () => {\r\n return Translates.CSV_Templates\r\n}\r\nexport const custom_title_Info = () => {\r\n return Translates.Info\r\n}\r\n\r\n//istanbul ignore next\r\nexport const processCSV = (str: any, dispatch, typeOfUploading: any) => {\r\n const parsedData = Papa.parse(str, {\r\n header: true,\r\n skipEmptyLines: true\r\n })\r\n const parsedArray = parsedData.data\r\n const _temp = parsedData.meta.fields\r\n let newArray = parsedArray.map(row => {\r\n const newRow = {}\r\n _temp.forEach(key => {\r\n let val = row[key] || \"\"\r\n if (typeof val === \"string\") {\r\n val = val.replace(/[\"\\\\]/g, \"\")\r\n val = val.replace(/,/g, \"\")\r\n\r\n // Handle values wrapped in double quotes\r\n if (val.charAt(0) === '\"' && val.charAt(val.length - 1) === '\"') {\r\n val = val.slice(1, -1) // Remove the double quotes\r\n val = val.replace(/\"\"/g, '\"') // Replace double double quotes with a single quote\r\n }\r\n // Remove escaping backslashes\r\n val = val.replace(/\\\\\"/g, '\"')\r\n if (\r\n typeOfUploading === BULK_UPLOADING.LOCATION_FILE_UPLOADING &&\r\n key.toLowerCase() === \"state\"\r\n ) {\r\n val = US_STATE_MAP[val.toLowerCase()] || val\r\n }\r\n newRow[key] = val\r\n }\r\n })\r\n return newRow\r\n })\r\n if (newArray.length) {\r\n if (typeOfUploading === BULK_UPLOADING.USER_DEATILS_FILE_UPLOADING) {\r\n dispatch(setCSVUserColumnList(_temp))\r\n dispatch(setUserMappingData({}))\r\n dispatch(setUserFileData(JSON.stringify(newArray)))\r\n } else if (typeOfUploading === BULK_UPLOADING.SCHEDULE_FILE_UPLOADING) {\r\n dispatch(setCSVScheduleColumnList(_temp))\r\n dispatch(setScheduleFileData(JSON.stringify(newArray)))\r\n } else if (typeOfUploading === BULK_UPLOADING.LOCATION_FILE_UPLOADING) {\r\n dispatch(setCSVLocationColumnList(_temp))\r\n dispatch(setLocationFileData(JSON.stringify(newArray)))\r\n } else if (typeOfUploading === BULK_UPLOADING.DEVICE_RESERVATION) {\r\n dispatch(setCSVReservationColumnList(_temp))\r\n dispatch(setReservationFileData(JSON.stringify(newArray)))\r\n } else if (typeOfUploading === BULK_UPLOADING.UPLOADFILE) {\r\n dispatch(setCSVUploadFileColumnListDeparment(_temp))\r\n dispatch(setCSVUploadFileColumnListVariance(_temp))\r\n dispatch(setCSVUploadFileColumnListAreaRange(_temp))\r\n dispatch(setUploadFileData(JSON.stringify(newArray)))\r\n }\r\n } else if (newArray.length < 1) {\r\n if (typeOfUploading === BULK_UPLOADING.USER_DEATILS_FILE_UPLOADING) {\r\n dispatch(setUserFileData([]))\r\n } else if (typeOfUploading === BULK_UPLOADING.SCHEDULE_FILE_UPLOADING) {\r\n dispatch(setScheduleFileData([]))\r\n } else if (typeOfUploading === BULK_UPLOADING.LOCATION_FILE_UPLOADING) {\r\n dispatch(setLocationFileData([]))\r\n } else if (typeOfUploading === BULK_UPLOADING.DEVICE_RESERVATION) {\r\n dispatch(setReservationFileData([]))\r\n } else if (typeOfUploading === BULK_UPLOADING.UPLOADFILE) {\r\n dispatch(setUploadFileData([]))\r\n }\r\n }\r\n}\r\n\r\n//istanbul ignore next\r\nexport const createImageFile = (svgBlob: Blob): Promise => {\r\n return new Promise((resolve, reject) => {\r\n const img = new Image()\r\n img.onload = () => {\r\n const canvas = document.createElement(\"canvas\")\r\n const ctx = canvas.getContext(\"2d\")\r\n if (ctx) {\r\n canvas.width = img.width\r\n canvas.height = img.height\r\n ctx.drawImage(img, 0, 0)\r\n canvas.toBlob(blob => {\r\n if (blob) {\r\n const fileQRCode = new File([blob], SHARE_EVENTS.File_Name, {\r\n type: \"image/png\"\r\n })\r\n resolve(fileQRCode)\r\n } else {\r\n reject(new Error(\"Error creating image file.\"))\r\n }\r\n }, \"image/png\")\r\n } else {\r\n reject(new Error(\"Error creating canvas context.\"))\r\n }\r\n }\r\n img.src = URL.createObjectURL(svgBlob)\r\n })\r\n}\r\n\r\nconst MILLISECONDS_PER_SECOND = 1000\r\nconst SECONDS_PER_HOUR = 3600\r\nconst HOURS_PER_DAY = 24\r\nexport const millisecondsToDays = milliseconds =>\r\n milliseconds / (MILLISECONDS_PER_SECOND * SECONDS_PER_HOUR * HOURS_PER_DAY)\r\n\r\nexport const fileExtensionCheck = ({ fileName, setAlertError, t }) => {\r\n if (!isFileNameAllowed({ fileName, setAlertError, t })) {\r\n return false\r\n }\r\n return true\r\n}\r\n\r\nexport const getLastFileExtension = filename => filename.split(\".\").pop()\r\n\r\nconst getAllFileExtension = filename => {\r\n if (filename.split(\".\").length > 1) {\r\n const allExtension = filename.match(/\\.[^.]+/g)\r\n let newAllExtension: any = []\r\n allExtension.forEach(str => {\r\n if (!/^[a-zA-Z]+$/.test(str.substring(1))) {\r\n newAllExtension = []\r\n } else {\r\n newAllExtension.push(str.toLowerCase())\r\n }\r\n })\r\n return newAllExtension\r\n }\r\n\r\n return filename\r\n}\r\n\r\nconst isFileNameAllowed = ({ fileName, setAlertError, t }) => {\r\n const allExtension = getAllFileExtension(fileName)\r\n for (const extension of disallowedExtensions) {\r\n if (allExtension.includes(extension.toLowerCase())) {\r\n setAlertError(oldVal => ({\r\n ...oldVal,\r\n severity: \"error\",\r\n title: getTranslations(t, Translates.Incorrect_File_Format),\r\n content: `${getTranslations(\r\n t,\r\n Translates.File_name_or_extension_can_not_be_contain_the_following_letters\r\n )} ${disallowedExtensions.join(\",\")}`\r\n }))\r\n return false\r\n }\r\n }\r\n return true\r\n}\r\n\r\nconst specialCharsRegex = /[@$*%\\/\\\\]/\r\n\r\nexport const validateInputString = (inputStr: string) => {\r\n if (!inputStr) return false\r\n if (specialCharsRegex.test(inputStr)) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n}\r\n\r\nexport const createURLFromByteArray = encoded => {\r\n if (encoded) {\r\n try {\r\n const byteCharacters = atob(encoded)\r\n let byteNumbers = new Array(byteCharacters.length)\r\n for (let i = 0; i < byteCharacters.length; i++) {\r\n byteNumbers[i] = byteCharacters.charCodeAt(i)\r\n }\r\n const byteArray = new Uint8Array(byteNumbers)\r\n\r\n // Convert the byte array to a Blob\r\n const blob = new Blob([byteArray], { type: \"application/octet-stream\" })\r\n\r\n // Create a URL for the Blob\r\n return URL.createObjectURL(blob)\r\n } catch (err) {\r\n throw err\r\n }\r\n } else {\r\n console.error(\"No file info found\")\r\n }\r\n}\r\n\r\nexport const setWeekFieldError = ({ setWeekIVFields, field, val, t }) => {\r\n setWeekIVFields(oldVal => ({\r\n ...oldVal,\r\n [field]: \"\"\r\n }))\r\n\r\n const isValid = validateInputString(val)\r\n if (val && !isValid) {\r\n setWeekIVFields(oldVal => ({\r\n ...oldVal,\r\n [field]: getTranslations(t, Translates.Invalid_Input)\r\n }))\r\n }\r\n}\r\n\r\nexport const getJSONParse = str => {\r\n try {\r\n return JSON.parse(str)\r\n } catch (e) {\r\n return str\r\n }\r\n}\r\n\r\nexport const configFileDecryption = (configP, isParse = false) => {\r\n let result = configP ? decrypt(configP) : \"\"\r\n\r\n if (isParse) {\r\n result = getJSONParse(result)\r\n }\r\n return result\r\n}\r\n\r\nexport const getResCDsConfigDecryption = data => {\r\n return data.map(i => ({\r\n ...i,\r\n configuration: configFileDecryption(i.configuration)\r\n }))\r\n}\r\n\r\nexport const getConfigurationDecryptAndSetRedux = configData => {\r\n if (configData.isGetConfigDecrypt) {\r\n return JSON.parse(configData.configDetails.configuration)\r\n } else if (configData.configDetails.configuration) {\r\n const data1 = {\r\n ...configData.configDetails,\r\n configuration: configFileDecryption(\r\n configData.configDetails.configuration\r\n )\r\n }\r\n store.dispatch(setConfigDetails(data1))\r\n return data1.configuration ? JSON.parse(data1.configuration) : \"\"\r\n }\r\n return \"\"\r\n}\r\n\r\nexport const downloadJSON = (jsonData, fileName) => {\r\n const blob = new Blob([JSON.stringify(jsonData, null, 2)], {\r\n type: \"application/json\"\r\n })\r\n const url = URL.createObjectURL(blob)\r\n\r\n const a = document.createElement(\"a\")\r\n a.href = url\r\n a.download = `${fileName}.json`\r\n document.body.appendChild(a)\r\n a.click()\r\n document.body.removeChild(a)\r\n URL.revokeObjectURL(url)\r\n}\r\n// Getting all API Validation Errors for bulk upload\r\nexport const getBulkAPIValidation = errorMsg => {\r\n // Split the string by \":\"\r\n const parts = errorMsg.split(\":\")\r\n\r\n let rowPart = \"\"\r\n let rowNumber = \"\"\r\n let msg = \"\"\r\n\r\n // Extract the first part as the row part and row number\r\n if (parts?.length > 1) {\r\n const firstPart = parts[0].trim() // Row RowNumber\r\n const lastSpaceIndex = firstPart.lastIndexOf(\" \")\r\n rowPart = firstPart.substring(0, lastSpaceIndex).trim() // Extract \"Row\"\r\n rowNumber = firstPart.substring(lastSpaceIndex + 1).trim() // Extract \"rowNo\"\r\n }\r\n\r\n // Extract \"ErrorMsg\" from the second part\r\n msg = parts[1]?.trim().split(\" \").join(\"_\") || \"\"\r\n\r\n return { rowPart, rowNumber, msg }\r\n}\r\n\r\nexport const getEventStatusList = ({ t }) => {\r\n return [\r\n {\r\n label: getTranslations(t, Translates.In_Progress),\r\n value: \"In Progress\"\r\n },\r\n {\r\n label: getTranslations(t, Translates.Not_Started),\r\n value: \"Not Started\"\r\n },\r\n { label: getTranslations(t, Translates.Closed), value: \"Closed\" },\r\n { label: getTranslations(t, Translates.Locked), value: \"Locked\" },\r\n { label: getTranslations(t, Translates.Cancelled), value: \"Cancelled\" },\r\n {\r\n label: getTranslations(t, Translates.Lock_in_progress),\r\n value: \"Lock In Progress\"\r\n },\r\n {\r\n label: getTranslations(t, Translates.Soft_Close),\r\n value: \"Soft Close\"\r\n }\r\n ]\r\n}\r\n\r\nexport const getConfigStatusList = ({ t }) => {\r\n return [\r\n {\r\n label: getTranslations(t, Translates.Active),\r\n value: STATUS_CONSTANTS.Active\r\n },\r\n {\r\n label: getTranslations(t, Translates.InActive),\r\n value: STATUS_CONSTANTS.In_Active\r\n },\r\n {\r\n label: getTranslations(t, Translates.Not_Installed),\r\n value: STATUS_CONSTANTS.Not_Installed\r\n }\r\n ]\r\n}\r\n\r\nexport const formatWithCurrencyLang = amount => {\r\n if (\r\n (amount || amount === 0) &&\r\n i18next?.language?.toLowerCase() === languages?.FRENCH?.toLowerCase()\r\n ) {\r\n return `${amount}`.replace(currencyFormatRegex, \".\")\r\n } else {\r\n return amount || amount === 0\r\n ? `${amount}`.replace(currencyFormatRegex, \",\")\r\n : \"-\"\r\n }\r\n}\r\n\r\n// Ignoring seconds and milliseconds\r\nexport const stripSecondsAndMilliseconds = dateStr => {\r\n let date = new Date(dateStr)\r\n return new Date(\r\n date.getFullYear(),\r\n date.getMonth(),\r\n date.getDate(),\r\n date.getHours(),\r\n date.getMinutes(),\r\n 0, // Set seconds to 0\r\n 0 // Set milliseconds to 0\r\n ).getTime()\r\n}\r\n\r\nexport const customSortSiteIds = (rowA, rowB) => {\r\n const a = rowA.values[\"siteId\"]\r\n const b = rowB.values[\"siteId\"]\r\n\r\n var reA = /[^a-zA-Z]/g\r\n var reN = /[^0-9]/g\r\n\r\n var AInt = parseInt(a, 10)\r\n var BInt = parseInt(b, 10)\r\n\r\n if (isNaN(+AInt) && isNaN(+BInt)) {\r\n var aA = a.replace(reA, \"\")\r\n var bA = b.replace(reA, \"\")\r\n\r\n if (aA === bA) {\r\n var aN = parseInt(a.replace(reN, \"\"), 10)\r\n var bN = parseInt(b.replace(reN, \"\"), 10)\r\n return aN === bN ? 0 : aN > bN ? 1 : -1\r\n } else {\r\n return aA > bA ? 1 : -1\r\n }\r\n } else if (isNaN(+AInt)) {\r\n //A is not an Int\r\n return 1 //to make alphanumeric sort first return -1 here\r\n } else if (isNaN(+BInt)) {\r\n //B is not an Int\r\n return -1 //to make alphanumeric sort first return 1 here\r\n } else {\r\n return AInt > BInt ? 1 : -1\r\n }\r\n}\r\n\r\nexport const sortedValues = (options: any) =>\r\n options.sort((a, b) => {\r\n const valueA = a.value\r\n const valueB = b.value\r\n\r\n // Helper function to determine if a value has leading zeros\r\n const hasLeadingZeros = value =>\r\n /^\\d+$/.test(value) && value.startsWith(\"0\")\r\n\r\n const hasLeadingZerosA = hasLeadingZeros(valueA)\r\n const hasLeadingZerosB = hasLeadingZeros(valueB)\r\n\r\n if (hasLeadingZerosA && !hasLeadingZerosB) {\r\n return -1 // A should come before B\r\n } else if (!hasLeadingZerosA && hasLeadingZerosB) {\r\n return 1 // B should come before A\r\n } else if (hasLeadingZerosA && hasLeadingZerosB) {\r\n return valueA.localeCompare(valueB) // Both have leading zeros, compare as strings\r\n }\r\n\r\n // Both are numeric values\r\n const isNumericA = /^\\d+$/.test(valueA)\r\n const isNumericB = /^\\d+$/.test(valueB)\r\n\r\n if (isNumericA && isNumericB) {\r\n return Number(valueA) - Number(valueB) // Compare numeric values\r\n } else if (isNumericA) {\r\n return -1 // Numeric values should come before alphanumeric values\r\n } else if (isNumericB) {\r\n return 1 // Alphanumeric values should come after numeric values\r\n }\r\n\r\n // Compare alphanumeric values as strings\r\n return valueA.localeCompare(valueB)\r\n })\r\nfunction reject(arg0: string): any {\r\n throw new Error(\"Function not implemented.\")\r\n}\r\nexport const checkNullEmpty = (str: string) => {\r\n return str == null || str == \"\" || str == undefined ? false : true\r\n}\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport { DesktopDatePicker, LocalizationProvider } from \"@mui/x-date-pickers\"\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\"\r\nimport { TextField } from \"@mui/material\"\r\nimport { getDefaultValue, getFieldError } from \"./Helper\"\r\nimport moment from \"moment\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nexport type Props = {\r\n inputAttributes: {\r\n name: string\r\n type?: \"text\" | \"email\" | \"tel\"\r\n label: string\r\n placeholder?: string\r\n className?: string\r\n id?: string\r\n required?: boolean\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n variant?: \"standard\" | \"filled\" | \"outlined\"\r\n fullWidth?: boolean\r\n maxDate?: Date\r\n minDate?: Date\r\n disabled?: boolean\r\n value?: any\r\n defaultValue?: any\r\n onChange?: Function\r\n }\r\n}\r\n\r\nconst MUIDatePicker = ({ inputAttributes }: Props) => {\r\n const { t } = useTranslation()\r\n\r\n const {\r\n name,\r\n type,\r\n label,\r\n placeholder,\r\n className,\r\n id,\r\n size,\r\n color,\r\n variant,\r\n fullWidth,\r\n required,\r\n maxDate,\r\n minDate,\r\n disabled,\r\n value,\r\n defaultValue,\r\n onChange\r\n } = inputAttributes\r\n\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n\r\n let defVal: any = getDefaultValue(value, defaultValue, [])\r\n\r\n const prepareDate = date => {\r\n return date ? moment(date).format(\"DD-MMM-YYYY\") : null\r\n }\r\n\r\n return (\r\n \r\n (\r\n {\r\n field.onChange(prepareDate(e))\r\n updateWarnOnTabChangeToStore(true)\r\n if (onChange) onChange()\r\n }}\r\n renderInput={(params: any) => (\r\n \r\n )}\r\n />\r\n )}\r\n />\r\n \r\n )\r\n}\r\n\r\nexport default MUIDatePicker\r\n","import { Alert, AlertColor, AlertTitle } from \"@mui/material\"\r\nimport CheckCircleIcon from \"@mui/icons-material/CheckCircle\"\r\nimport HighlightOffIcon from \"@mui/icons-material/HighlightOff\"\r\nimport { store } from \"src/redux/store\"\r\nimport { ConfigurationStoreType } from \"src/utils/types/types\"\r\nimport { decryptUrlParams, getTranslations } from \"src/utils/helper\"\r\nimport { ConfigService } from \"src/service/config.service\"\r\nimport {\r\n ConfigTabNames,\r\n makeClearQueryToExecute,\r\n updateWarnOnTabChangeToStore\r\n} from \"./helper\"\r\nimport { setConfigDetails } from \"src/redux/slices/configSlice\"\r\nimport { getFormToConfigConversion } from \"./Variances/Utils/FunctionsHelper\"\r\nimport { API_RESPONSE, DEFAULT_RADIX, formField } from \"src/utils/constants\"\r\nimport MUIText from \"src/components/MUIFormFields/MUIText\"\r\nimport MUIAutoCompleteText from \"src/components/MUIFormFields/MUIAutoCompleteText\"\r\nimport MUIMultiAutoCompleteText from \"src/components/MUIFormFields/MUIMultiAutoCompleteText\"\r\nimport MUICheckbox from \"src/components/MUIFormFields/MUICheckbox\"\r\nimport MUIRadio from \"src/components/MUIFormFields/MUIRadio\"\r\nimport MUIDatePicker from \"src/components/MUIFormFields/MUIDatePicker\"\r\nimport MUITimePicker from \"src/components/MUIFormFields/MUITimePicker\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { SqlTestEditorService } from \"src/service/sqlTestEditor.service\"\r\nimport { setColumnsRedux } from \"src/redux/slices/ConfigPortal/ColumnSlice\"\r\nimport { getFieldError } from \"src/components/MUIFormFields/Helper\"\r\nimport { renderType } from \"src/pages/MultiEventOutputs/Utils/Constants/FileCreationSchedule/FcsOptions\"\r\nimport { LocationsList } from \"./CountFields/Constants\"\r\n\r\nlet configService = new ConfigService()\r\n\r\nexport const alertMsgShow = alertMsg => {\r\n return (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n className=\"custom-alert top\"\r\n >\r\n \r\n {`${alertMsg.title}`}\r\n \r\n

    {`${alertMsg.content}`}

    \r\n \r\n )\r\n}\r\n\r\nexport const emptyAlert = {\r\n severity: \"\" as AlertColor,\r\n title: \"\",\r\n content: \"\"\r\n}\r\n\r\nexport const GetConfigPayload = () => {\r\n const config: any = store.getState().config\r\n const settings = store.getState().settings\r\n const varianceData = store.getState().variance\r\n const reportData = store.getState().report\r\n const outputBundleData = store.getState().outputBundle\r\n const { selectedCustomerForOperation } = settings\r\n\r\n let params = new URLSearchParams(\r\n decryptUrlParams(window.location.search?.slice(1))\r\n )\r\n let idString = params.get(\"id\")\r\n let idNum = idString ? parseInt(idString, DEFAULT_RADIX) : undefined\r\n const {\r\n configDetails,\r\n generalSettings,\r\n locationCategories,\r\n lookupRoutines,\r\n countFields,\r\n Outputs,\r\n Audits,\r\n countPrograms,\r\n inputFiles,\r\n efficiencySettings,\r\n accuracySettings\r\n } = config\r\n\r\n let payload: any = {\r\n createdDate: configDetails?.createdDate || new Date(),\r\n lastUpdatedDate: new Date(),\r\n idConfig: idNum,\r\n idCustomer: parseInt(selectedCustomerForOperation, DEFAULT_RADIX),\r\n name: configDetails?.name,\r\n status: generalSettings.Status || 3,\r\n supportedLanguages: configDetails?.supportedLanguages?.toString() || \"\",\r\n version: configDetails?.version || \"1.0\",\r\n configuration: \"\"\r\n }\r\n let configVal: ConfigurationStoreType\r\n if (configDetails?.configuration) {\r\n configVal = JSON.parse(configDetails?.configuration)\r\n } else {\r\n const { varianceRedux } = varianceData\r\n const { outputBundlesRedux } = outputBundleData\r\n const { reportsRedux } = reportData\r\n\r\n const { configData } = getFormToConfigConversion(varianceRedux)\r\n configVal = {\r\n GeneralSettings: generalSettings,\r\n LocationCategories: locationCategories,\r\n LookupRoutines: lookupRoutines,\r\n Reports: reportsRedux,\r\n Fields: countFields,\r\n GroupedVariances: configData.GroupVariance,\r\n FullStoreVariances: configData.FullVariance,\r\n Outputs: Outputs,\r\n OutputBundles: outputBundlesRedux,\r\n Audits: Audits,\r\n CountPrograms: countPrograms,\r\n InputFiles: inputFiles,\r\n FilesRequired: {\r\n DepartmentFileNotRequired: false,\r\n ProductFileNotRequired: false\r\n },\r\n Efficiency: efficiencySettings,\r\n Accuracy: accuracySettings\r\n }\r\n }\r\n return {\r\n payload: { ...payload, ...{ configuration: configVal } }\r\n }\r\n}\r\n\r\nexport const updateConfigurationData = async ({ payload, t }) => {\r\n let alertMsgUC = {}\r\n try {\r\n let _res: any = {}\r\n if (Object.keys(payload).length) {\r\n _res = await configService.updateConfiguration(payload)\r\n }\r\n if (_res && _res.status === 200) {\r\n console.log(\"Generated Configuration \", JSON.parse(payload.configuration)) // intentionally added this comment to show the configuration object in demo\r\n store.dispatch(setConfigDetails(payload))\r\n updateWarnOnTabChangeToStore(false)\r\n alertMsgUC = {\r\n severity: \"success\",\r\n title: getTranslations(t, Translates.Success),\r\n content: `${getTranslations(t, Translates.Saved_Successfully)!}`\r\n }\r\n }\r\n } catch (err: any) {\r\n alertMsgUC = {\r\n severity: \"error\",\r\n title: \"Error\",\r\n content: err?.Message || \"Something went wrong, Please try again later!\"\r\n }\r\n }\r\n\r\n return { alertMsgUC }\r\n}\r\n\r\nexport const comparingConfigAndReduxArrays = (ConfigArr, ReduxArr) => {\r\n if (\r\n ![undefined].includes(ConfigArr) &&\r\n JSON.stringify(ConfigArr) !== JSON.stringify(ReduxArr)\r\n ) {\r\n updateWarnOnTabChangeToStore(true)\r\n return true\r\n } else {\r\n updateWarnOnTabChangeToStore(false)\r\n }\r\n return false\r\n}\r\n\r\nexport const getCountFieldFormateForConfig = fieldsObj => {\r\n let fieldsObjCopy = {}\r\n let qtyCopy = {}\r\n let extCopy = {}\r\n for (let key in fieldsObj) {\r\n if (fieldsObj.hasOwnProperty(key)) {\r\n let locFieldCopy = JSON.parse(JSON.stringify(fieldsObj[key]))\r\n if (locFieldCopy?.OjKey) {\r\n delete locFieldCopy?.OjKey\r\n }\r\n if (\r\n [\r\n LocationsList.Location.OjKey,\r\n LocationsList.SecondaryLocation1.OjKey,\r\n LocationsList.SecondaryLocation2.OjKey,\r\n LocationsList.SecondaryLocation3.OjKey\r\n ].includes(key)\r\n ) {\r\n delete locFieldCopy?.SortOrder\r\n }\r\n if (key !== \"Qty\" && key !== \"Ext\") {\r\n fieldsObjCopy = { ...fieldsObjCopy, [key]: locFieldCopy }\r\n } else if (key === \"Qty\") {\r\n qtyCopy = { ...locFieldCopy }\r\n } else if (key === \"Ext\") {\r\n extCopy = { ...locFieldCopy }\r\n }\r\n }\r\n }\r\n fieldsObjCopy = { ...fieldsObjCopy, Qty: qtyCopy, Ext: extCopy }\r\n let SortOrder = 1\r\n let FieldsObjCopyFinal = JSON.parse(JSON.stringify(fieldsObjCopy))\r\n\r\n for (let key in fieldsObjCopy) {\r\n if (\r\n fieldsObjCopy.hasOwnProperty(key) &&\r\n ![\r\n LocationsList.Location.OjKey,\r\n LocationsList.SecondaryLocation1.OjKey,\r\n LocationsList.SecondaryLocation2.OjKey,\r\n LocationsList.SecondaryLocation3.OjKey\r\n ].includes(key)\r\n ) {\r\n let locFieldCopy = JSON.parse(JSON.stringify(fieldsObjCopy[key]))\r\n FieldsObjCopyFinal = {\r\n ...FieldsObjCopyFinal,\r\n [key]: {\r\n ...locFieldCopy,\r\n SortOrder: SortOrder\r\n }\r\n }\r\n SortOrder = SortOrder + 1\r\n }\r\n }\r\n\r\n return FieldsObjCopyFinal\r\n}\r\n\r\nexport const displaySpan = (props: any, defaultVal = \"\") => {\r\n return (\r\n \r\n {props.value ? props.value : defaultVal}\r\n \r\n )\r\n}\r\n\r\nexport const onCancelClick = (history, path = \"\") => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n if (path) {\r\n history.push(path)\r\n } else {\r\n history.goBack()\r\n }\r\n })\r\n}\r\n\r\nexport const conditionBasedReturnFieldComponent = (\r\n i,\r\n formHookMethods,\r\n OnChangeHandler: Function | undefined = undefined\r\n) => {\r\n let disabled = i.props?.disabled ? true : false\r\n\r\n if ([renderType.field, undefined].includes(i?.type)) {\r\n if (i?.disableCondition) {\r\n if (\r\n formHookMethods?.watch(i?.disableCondition?.name) !==\r\n i?.disableCondition?.value\r\n ) {\r\n disabled = true\r\n }\r\n }\r\n }\r\n\r\n i = {\r\n ...i,\r\n props: {\r\n ...i.props,\r\n ...(OnChangeHandler && {\r\n onChange: () => {\r\n OnChangeHandler(i)\r\n }\r\n }),\r\n ...(disabled && { disabled: disabled })\r\n }\r\n }\r\n if ([formField.text, formField.textarea].includes(i?.fieldType)) {\r\n return \r\n } else if ([formField.auto_dropdown].includes(i.fieldType)) {\r\n return \r\n } else if ([formField.multi_auto_dropdown].includes(i?.fieldType)) {\r\n return \r\n } else if ([formField.checkbox].includes(i.fieldType)) {\r\n return \r\n } else if ([formField.radio].includes(i.fieldType)) {\r\n return \r\n } else if ([formField.date].includes(i.fieldType)) {\r\n return \r\n } else if ([formField.time].includes(i.fieldType)) {\r\n return \r\n }\r\n\r\n return null\r\n}\r\n\r\nexport const getTabLabel = tab => {\r\n let locTab = Translates.Report\r\n\r\n if (tab.toLocaleLowerCase() === ConfigTabNames.Outputs.toLocaleLowerCase()) {\r\n locTab = Translates.Output\r\n } else if (\r\n tab.toLocaleLowerCase() ===\r\n ConfigTabNames.MultiEventOutputs.toLocaleLowerCase()\r\n ) {\r\n locTab = Translates.Multi_Event_Outputs\r\n }\r\n return { locTab }\r\n}\r\n\r\nexport const getColumnsFromAPI = async (variableRedux: any) => {\r\n let query = variableRedux?.SQL\r\n const { columnsRedux } = store.getState().column\r\n if (query && query !== columnsRedux.SQL) {\r\n try {\r\n const queryToBeTested = makeClearQueryToExecute(\r\n query,\r\n variableRedux?.Prompts\r\n )\r\n const testSQLService = new SqlTestEditorService()\r\n\r\n await new Promise(resolve => setTimeout(resolve, 2000))\r\n const res = await testSQLService.postSqlTestEditorValueForVerify(\r\n queryToBeTested\r\n )\r\n if (Number(res.status) === Number(API_RESPONSE.SUCCESS)) {\r\n store.dispatch(\r\n setColumnsRedux({\r\n SQL: query,\r\n columns: res?.data || []\r\n })\r\n )\r\n }\r\n } catch (err: any) {\r\n console.log(err.Message || err)\r\n }\r\n }\r\n}\r\n\r\nexport const setValueForVariable = ({ values, defaultValue }) => {\r\n let newValue: any = defaultValue\r\n const BreakException = {}\r\n try {\r\n values.forEach(el => {\r\n if (el) {\r\n if (\r\n typeof el !== \"object\" ||\r\n (typeof el === \"object\" &&\r\n ((Array.isArray(el) && el.length) ||\r\n (!Array.isArray(el) && Object.keys(el).length)))\r\n ) {\r\n newValue = el\r\n throw BreakException\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (e !== BreakException) throw e\r\n }\r\n\r\n return newValue\r\n}\r\n\r\nexport const handleFieldChangeRevalidation = ({\r\n FieldDetail,\r\n formHookMethods\r\n}) => {\r\n const { setValue, formState, trigger, watch } = formHookMethods\r\n if (FieldDetail?.resetFieldNames) {\r\n FieldDetail?.resetFieldNames.forEach(e => {\r\n const { isError } = getFieldError(e.name, formState?.errors)\r\n if ((e?.isErrOnlyReset && isError) || !e?.isErrOnlyReset) {\r\n setValue(e.name, e.value, { shouldValidate: true })\r\n }\r\n })\r\n }\r\n\r\n if (FieldDetail?.triggerValidationFields) {\r\n FieldDetail?.triggerValidationFields?.forEach(i => {\r\n const { isError } = getFieldError(i.name, formState?.errors)\r\n if (![\"\", null, undefined, false].includes(watch(i.name)) || isError) {\r\n trigger(i.name)\r\n }\r\n })\r\n }\r\n}\r\n","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\n\r\nexport class ReportService {\r\n getCustomerFinalReports(customerIds) {\r\n const endPoint = `/api/Reports/GetCustomerFinalReports`\r\n return api.post(endPoint, customerIds)\r\n }\r\n downloadReports(payload: any) {\r\n const endPoint = \"/api/Reports/DownloadReports\"\r\n return api\r\n .post(endPoint, payload)\r\n .then((res: any) => {\r\n return res\r\n })\r\n .catch((err: any) => {\r\n return err\r\n })\r\n }\r\n}\r\n//END-NOSCAN","//BEGIN-NOSCAN\r\nimport * as CryptoJS from \"crypto-js\"\r\nimport axios from \"axios\"\r\nimport { getKeys } from \"src/utils/helper\"\r\n\r\nexport class HereService {\r\n // istanbul ignore next\r\n autoComplete = (qParams, countryCode) => {\r\n let token = localStorage.getItem(\"hereToken\")\r\n const baseURL: string = getKeys(\"HereAutoCompleteUrl\")\r\n let url: any = baseURL + `?${qParams}`\r\n if (countryCode)\r\n url = url + `&in=countryCode:${encodeURIComponent(countryCode)}`\r\n const headers = { Authorization: `Bearer ${token}` }\r\n return axios.get(url, { headers })\r\n }\r\n autoCompleteTimeZone = (qParams) => {\r\n let token = localStorage.getItem(\"hereToken\")\r\n const baseURL: string = 'https://geocode.search.hereapi.com/v1/geocode'\r\n let url: any = baseURL + `?${qParams}`+`&show=tz`\r\n // if (countryCode)\r\n // url = url + `&in=countryCode:${encodeURIComponent(countryCode)}`\r\n const headers = { Authorization: `Bearer ${token}` }\r\n return axios.get(url, { headers })\r\n }\r\n // istanbul ignore next\r\n getToken = () => {\r\n localStorage.setItem(\"hereToken\", \"**\")\r\n let url = getKeys(\"HereTokenEndPointUrl\")\r\n let key = encodeURI(getKeys(\"HereAccessKeyId\"))\r\n let secret = encodeURI(getKeys(\"HereAccessKeySecret\"))\r\n let nonce = btoa(Math.random().toString(36)).substring(2, 13)\r\n let timestamp: any = Math.floor(Date.now() / 1000)\r\n let normalizedUrl = encodeURIComponent(url)\r\n let signing_method = encodeURI(\"HMAC-SHA256\")\r\n let sig_string = \"oauth_consumer_key=\"\r\n .concat(key)\r\n .concat(\"&oauth_nonce=\")\r\n .concat(nonce)\r\n .concat(\"&oauth_signature_method=\")\r\n .concat(signing_method)\r\n .concat(\"&oauth_timestamp=\")\r\n .concat(timestamp)\r\n .concat(\"&\")\r\n .concat(\"oauth_version=1.0\")\r\n\r\n let normalised_string = \"POST&\"\r\n .concat(normalizedUrl)\r\n .concat(\"&\")\r\n .concat(encodeURIComponent(sig_string))\r\n let signingKey = secret.concat(\"&\")\r\n\r\n let digest = CryptoJS.HmacSHA256(normalised_string, signingKey)\r\n let signature = CryptoJS.enc.Base64.stringify(digest)\r\n\r\n let auth = 'OAuth oauth_consumer_key=\"'\r\n .concat(key)\r\n .concat('\",oauth_signature_method=\"')\r\n .concat(signing_method)\r\n .concat('\",oauth_signature=\"')\r\n .concat(encodeURIComponent(signature))\r\n .concat('\",oauth_timestamp=\"')\r\n .concat(timestamp)\r\n .concat('\",oauth_nonce=\"')\r\n .concat(nonce)\r\n .concat('\",oauth_version=\"1.0\"')\r\n\r\n axios({\r\n method: \"post\",\r\n url: url,\r\n data: JSON.stringify({ grantType: \"client_credentials\" }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: auth\r\n }\r\n })\r\n .then(resp => {\r\n localStorage.setItem(\"hereToken\", resp.data.accessToken)\r\n localStorage.setItem(\r\n \"hereTokenFetchedAt\",\r\n new Date().getTime().toString()\r\n )\r\n })\r\n .catch(err => {\r\n console.log(\"error while fetching here API token \", err)\r\n })\r\n }\r\n}\r\n//END-NOSCAN\r\n","import { ReportFieldType, VarianceType } from \"./Type\"\r\n\r\nexport const NoGroupVarianceFieldsText = \"No Group Variance Fields Found\"\r\nexport const NoFullVarianceFieldsText = \"No Full Store Variance Fields Found\"\r\nexport const EmptyNameError = \"Variance name cannot be empty\"\r\n\r\nexport const VarianceTypes = {\r\n GroupVariance: {\r\n name: \"GroupVariance\",\r\n label: \"Group_Variance\"\r\n },\r\n FullVariance: {\r\n name: \"FullVariance\",\r\n label: \"Full_variance\"\r\n }\r\n}\r\n\r\nexport const singleFieldNames = {\r\n IsEnable: \"IsEnable\",\r\n VarianceName: \"VarianceName\",\r\n Sort: \"Sort\",\r\n IsBatchSize: \"IsBatchSize\",\r\n BatchSize: \"BatchSize\",\r\n IsBlindVariance: \"IsBlindVariance\",\r\n RequireSoftClose: \"RequireSoftClose\",\r\n IsRequiredForCloseout: \"IsRequiredForCloseout\",\r\n IsBasedOnControlFile: \"IsBasedOnControlFile\",\r\n Threshold: \"Threshold\",\r\n QtyThreshold: \"QtyThreshold\",\r\n ExtThreshold: \"ExtThreshold\",\r\n QtyConstant: \"QtyConstant\",\r\n ExtConstant: \"ExtConstant\",\r\n ReportFields: \"ReportFields\"\r\n}\r\n\r\nexport const getVarianceConstant = ({\r\n VarianceType\r\n}: {\r\n VarianceType: string\r\n}) => {\r\n return {\r\n IsEnable: {\r\n name: `{VarianceType}.${singleFieldNames.IsEnable}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Enable_Feature\"\r\n },\r\n VarianceName: {\r\n name: `{VarianceType}.${singleFieldNames.VarianceName}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Variance_Name\"\r\n },\r\n Sort: {\r\n name: `{VarianceType}.${singleFieldNames.Sort}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Sort\"\r\n },\r\n IsBatchSize: {\r\n name: `{VarianceType}.${singleFieldNames.IsBatchSize}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Batch_Size\"\r\n },\r\n BatchSize: {\r\n name: `{VarianceType}.${singleFieldNames.BatchSize}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Size\"\r\n },\r\n IsBlindVariance: {\r\n name: `{VarianceType}.${singleFieldNames.IsBlindVariance}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Blind_Variance\"\r\n },\r\n RequireSoftClose: {\r\n name: `{VarianceType}.${singleFieldNames.RequireSoftClose}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Require_Soft_Close\"\r\n },\r\n IsRequiredForCloseout: {\r\n name: `{VarianceType}.${singleFieldNames.IsRequiredForCloseout}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Required_for_Closeout\"\r\n },\r\n IsBasedOnControlFile: {\r\n name: `{VarianceType}.${singleFieldNames.IsBasedOnControlFile}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Based_on_control_file\"\r\n },\r\n Threshold: {\r\n name: `{VarianceType}.${singleFieldNames.Threshold}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Threshold\"\r\n },\r\n QtyThreshold: {\r\n name: `{VarianceType}.${singleFieldNames.QtyThreshold}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Threshold\"\r\n },\r\n ExtThreshold: {\r\n name: `{VarianceType}.${singleFieldNames.ExtThreshold}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Threshold\"\r\n },\r\n QtyConstant: {\r\n name: `{VarianceType}.${singleFieldNames.QtyConstant}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Threshold\"\r\n },\r\n ExtConstant: {\r\n name: `{VarianceType}.${singleFieldNames.ExtConstant}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n ),\r\n label: \"Threshold\"\r\n },\r\n ReportFields: {\r\n name: `{VarianceType}.${singleFieldNames.ReportFields}`.replace(\r\n \"{VarianceType}\",\r\n VarianceType\r\n )\r\n }\r\n }\r\n}\r\n//All label values Translate variable from en.json file\r\nexport const fieldNames = {\r\n CurrentTab: \"CurrentTab\",\r\n CurrentTabVarianceType: \"CurrentTabVarianceType\",\r\n GroupVariance: getVarianceConstant({\r\n VarianceType: VarianceTypes.GroupVariance.name\r\n }),\r\n FullVariance: getVarianceConstant({\r\n VarianceType: VarianceTypes.FullVariance.name\r\n })\r\n}\r\n\r\nexport const SortList = [\r\n { label: \"Location\", value: \"Location\", default: true },\r\n { label: \"SKU\", value: \"SKU\" },\r\n { label: \"Qty Variance (ABS)\", value: \"Qty Variance (ABS)\" },\r\n { label: \"Ext Variance (ABS)\", value: \"Ext Variance (ABS)\" }\r\n]\r\n\r\nexport const GroupAndFullVarianceCommon = {\r\n IsEnable: false,\r\n VarianceName: \"\",\r\n Sort: SortList[0].value, //Location\r\n IsBatchSize: false,\r\n BatchSize: 0,\r\n IsBlindVariance: false,\r\n IsRequiredForCloseout: false,\r\n RequireSoftClose: false,\r\n Threshold: \"\",\r\n QtyThreshold: \"\",\r\n QtyConstant: 0,\r\n ExtThreshold: \"\",\r\n ExtConstant: 0,\r\n ReportFields: []\r\n}\r\n\r\nexport const defaultIniValues: VarianceType = {\r\n CurrentTab: 0,\r\n CurrentTabVarianceType: VarianceTypes.GroupVariance.name,\r\n GroupVariance: GroupAndFullVarianceCommon,\r\n FullVariance: {\r\n ...GroupAndFullVarianceCommon,\r\n ...{ IsBasedOnControlFile: false }\r\n }\r\n}\r\n\r\nexport const defaultReportFieldIniValues: ReportFieldType = {\r\n Field: \"\",\r\n Name: \"\"\r\n}\r\n\r\nexport const RadioButtonLists = {\r\n Thresholds: {\r\n Qty: {\r\n value: \"Qty\",\r\n label: \"Qty\"\r\n },\r\n Ext: {\r\n value: \"Ext\",\r\n label: \"Ext\"\r\n },\r\n QtyOrExt: {\r\n value: \"QtyOrExt\",\r\n label: \"Qty OR Ext\"\r\n },\r\n QtyAndExt: {\r\n value: \"QtyAndExt\",\r\n label: \"Qty AND Ext\"\r\n }\r\n },\r\n ThresholdSelects: {\r\n VarianceControlFile: {\r\n value: \"Variance Control File\",\r\n label: \"Variance Control File\"\r\n },\r\n OnHandsFile: {\r\n value: \"On Hands File\",\r\n label: \"On Hands File\"\r\n },\r\n Constant: {\r\n value: \"Constant\",\r\n label: \"Constant\"\r\n }\r\n }\r\n}\r\n/*usa and canada phone numbers validation*/\r\nexport const phoneRegexValidation = /^\\+1\\(\\d{3}\\)\\d{3}-\\d{4}$/\r\n\r\n/* converting phone number to +# (###) ###-#### */\r\nexport const convertPhoneNumberRegexStart = /^1?(\\d{3})(\\d{3})(\\d{4})$/\r\nexport const convertPhoneNumberRegexEnd = \"+1($1) $2-$3\"\r\n\r\nexport const ReportFieldName = {\r\n Field: {\r\n name: \"Field\",\r\n label: \"Field\"\r\n },\r\n Name: {\r\n name: \"Name\",\r\n label: \"Name\"\r\n }\r\n}\r\n\r\nexport const BlindVFieldOptions = [\r\n { value: \"SKU\", label: \"SKU\" },\r\n { value: \"Barcode\", label: \"Barcode\" },\r\n { value: \"Location\", label: \"Location\" },\r\n { value: \"Price\", label: \"Price\" },\r\n { value: \"Qty\", label: \"Qty\" },\r\n { value: \"Ext\", label: \"Ext\" }\r\n]\r\nexport const NonBlindVFieldOptions = [\r\n { value: \"On Hands Ext\", label: \"On Hands Ext\" },\r\n { value: \"On Hands Qty\", label: \"On Hands Qty\" },\r\n { value: \"Qty Variance\", label: \"Qty Variance\" },\r\n { value: \"Ext Variance\", label: \"Ext Variance\" }\r\n]\r\n\r\nexport const ReportFieldOptions = [\r\n ...BlindVFieldOptions,\r\n ...NonBlindVFieldOptions\r\n].flat(Infinity)\r\n\r\nexport const ReportGridModalSource = {\r\n delete: \"delete\",\r\n blindVariance: \"blindVariance\"\r\n}\r\nexport const MAP_FILTERS = [\r\n {\r\n index: 1,\r\n filterFn: item => item.countProgress === 0\r\n },\r\n {\r\n index: 2,\r\n filterFn: item => item.countProgress > 0 && item.countProgress < 100\r\n },\r\n {\r\n index: 3,\r\n filterFn: item => item.countProgress === 100\r\n },\r\n {\r\n index: 4,\r\n filterFn: item => item.auditProgress === 0\r\n },\r\n {\r\n index: 5,\r\n filterFn: item => item.auditProgress > 0 && item.auditProgress < 100\r\n },\r\n {\r\n index: 6,\r\n filterFn: item => item.auditProgress === 100\r\n },\r\n {\r\n index: 7,\r\n filterFn: item => item.varianceProgress === 0\r\n },\r\n {\r\n index: 8,\r\n filterFn: item =>\r\n item.varianceProgress >= 0 &&\r\n item.varianceProgress < 100 &&\r\n item.isVarianceCreated\r\n },\r\n {\r\n index: 9,\r\n filterFn: item => item.varianceProgress === 100\r\n }\r\n]\r\n","import React, { useState } from \"react\"\r\nimport {\r\n FormControl,\r\n Button,\r\n Grid,\r\n Dialog,\r\n DialogContent,\r\n DialogActions,\r\n InputLabel,\r\n Select,\r\n MenuItem\r\n} from \"@mui/material\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { RootState } from \"../../redux/store\"\r\nimport { useSelector, useDispatch } from \"react-redux\"\r\nimport { setCustomerForOperation } from \"../../redux/slices/settingsSlice\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nconst SelectCustomerDropdown = ({ open, close, onContinue }) => {\r\n const dispatch = useDispatch()\r\n const { t } = useTranslation()\r\n const customers = useSelector((state: RootState) => state.settings.customers)\r\n const selectedCustomers: any = customers.filter((c: any) => c.selected)\r\n const [selectedCustomer, setSelectedCustomer] = useState(\"\")\r\n const handleChangeOption = e => {\r\n setSelectedCustomer(e.target.value)\r\n }\r\n const handleContinue = () => {\r\n dispatch(setCustomerForOperation(parseInt(selectedCustomer)))\r\n onContinue()\r\n }\r\n return (\r\n \r\n
    \r\n \r\n \r\n }\r\n >\r\n {getTranslations(t, Translates.Close)}\r\n \r\n \r\n

    {getTranslations(t, Translates.Select_Customer)}

    \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Select_customer_from_the_below_list)}\r\n

    \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Select_Customer)}\r\n \r\n \r\n {selectedCustomers.map((c: any) => {\r\n return (\r\n \r\n \"customer\r\n {c.companyName}\r\n \r\n )\r\n })}\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Continue)}\r\n \r\n \r\n
    \r\n \r\n )\r\n}\r\nexport default SelectCustomerDropdown\r\n","export const CheckDigitRadioOptions = [\r\n {\r\n value: \"UPCA\",\r\n label: \"UPCA\",\r\n default: true\r\n },\r\n {\r\n value: \"WIS Tag\",\r\n label: \"WIS Tag\"\r\n },\r\n {\r\n value: \"CUSTOM\",\r\n label: \"CUSTOM\"\r\n }\r\n]\r\n\r\nexport const checkBarcodeTypePart1 = [\r\n //old\r\n {\r\n value: \"CODE128\",\r\n label: \"CODE128\"\r\n },\r\n {\r\n value: \"QRCODE\",\r\n label: \"QRCODE\"\r\n },\r\n {\r\n value: \"CODE39\",\r\n label: \"CODE39\"\r\n },\r\n {\r\n value: \"CODE93\",\r\n label: \"CODE93\"\r\n },\r\n {\r\n value: \"UPCA\",\r\n label: \"UPCA\"\r\n }\r\n]\r\n\r\nexport const checkBarcodeTypePart2 = [\r\n //old\r\n {\r\n value: \"UPCE\",\r\n label: \"UPCE\"\r\n },\r\n {\r\n value: \"UPCE0\",\r\n label: \"UPCE0\"\r\n },\r\n {\r\n value: \"UPCE1\",\r\n label: \"UPCE1\"\r\n },\r\n {\r\n value: \"EAN13\",\r\n label: \"EAN13\"\r\n },\r\n {\r\n value: \"EAN8\",\r\n label: \"EAN8\"\r\n }\r\n]\r\n\r\nconst checkBarcodeTypePart3 = [\r\n //old\r\n {\r\n value: \"GS1_DATABAR\",\r\n label: \"GS1_DATABAR\"\r\n },\r\n {\r\n value: \"GS1_DATABAR_LIM\",\r\n label: \"GS1_DATABAR_LIM\"\r\n },\r\n {\r\n value: \"GS1_DATABAR_EXP\",\r\n label: \"GS1_DATABAR_EXP\"\r\n },\r\n {\r\n value: \"I2OF5\",\r\n label: \"I2OF5\"\r\n },\r\n {\r\n value: \"D2OF5\",\r\n label: \"D2OF5\"\r\n }\r\n]\r\n\r\nconst checkBarcodeTypePart4 = [\r\n //old\r\n {\r\n value: \"CODE39_FULL_ASCII\",\r\n label: \"CODE39_FULL_ASCII\"\r\n },\r\n {\r\n value: \"MICROPDF\",\r\n label: \"MICROPDF\"\r\n },\r\n {\r\n value: \"MICROQR\",\r\n label: \"MICROQR\"\r\n },\r\n {\r\n value: \"MAXICODE\",\r\n label: \"MAXICODE\"\r\n }\r\n]\r\n\r\nconst checkBarcodeTypePart5 = [\r\n //new\r\n {\r\n value: \"CodABar\",\r\n label: \"CodABar\"\r\n },\r\n {\r\n value: \"ISBT128\",\r\n label: \"ISBT128\"\r\n },\r\n {\r\n value: \"EAN128\",\r\n label: \"EAN128\"\r\n },\r\n {\r\n value: \"UPCEAN_SUPPLEMENTAL2\",\r\n label: \"UPCEAN_SUPPLEMENTAL2\"\r\n },\r\n {\r\n value: \"UPCEAN_SUPPLEMENTAL5\",\r\n label: \"UPCEAN_SUPPLEMENTAL5\"\r\n }\r\n]\r\n\r\nconst checkBarcodeTypePart6 = [\r\n {\r\n value: \"MSI\",\r\n label: \"MSI\"\r\n },\r\n {\r\n value: \"Plessey Mod10\",\r\n label: \"Plessey Mod10\"\r\n },\r\n {\r\n value: \"Bookland_EAN\",\r\n label: \"Bookland_EAN\"\r\n },\r\n {\r\n value: \"Coupon_Code\",\r\n label: \"Coupon_Code\"\r\n },\r\n {\r\n value: \"Code32\",\r\n label: \"Code32\"\r\n }\r\n]\r\n\r\nconst checkBarcodeTypePart7 = [\r\n {\r\n value: \"Aztec\",\r\n label: \"Aztec\"\r\n },\r\n {\r\n value: \"DataMatrix\",\r\n label: \"DataMatrix\"\r\n },\r\n {\r\n value: \"PDF417\",\r\n label: \"PDF417\"\r\n }\r\n]\r\n\r\nexport const checkBarcodeType = [\r\n ...checkBarcodeTypePart1,\r\n ...checkBarcodeTypePart2,\r\n ...checkBarcodeTypePart3,\r\n ...checkBarcodeTypePart4,\r\n ...checkBarcodeTypePart5,\r\n ...checkBarcodeTypePart6,\r\n ...checkBarcodeTypePart7\r\n]\r\n\r\nexport const checkBarcodeTypeForCheckDigit = [\r\n ...checkBarcodeType,\r\n {\r\n value: CheckDigitRadioOptions[2].value,\r\n label: CheckDigitRadioOptions[2].label\r\n }\r\n]\r\n\r\nexport const checkDataType = [\r\n { value: \"NUMERIC\", label: \"NUMERIC\" },\r\n { value: \"DECIMAL\", label: \"DECIMAL\" },\r\n { value: \"ALPHANUMERIC\", label: \"ALPHANUMERIC\" },\r\n { value: \"TEXT\", label: \"TEXT\" }\r\n]\r\nexport const checkEntryMethod = [\r\n { value: \"SCANNED\", label: \"SCANNED\" },\r\n { value: \"KEYED\", label: \"KEYED\" },\r\n { value: \"AUTO\", label: \"AUTO\" }\r\n]\r\n\r\nexport const checkEntryMethodPreCount = [\r\n { value: \"PRECOUNT\", label: \"PRECOUNT\" }\r\n]\r\n\r\nexport const checkEntryMethodWithPrecount = [\r\n ...checkEntryMethod,\r\n ...checkEntryMethodPreCount\r\n]\r\n\r\nexport const TrueOrFalse = [\r\n { value: \"True\", label: \"True\" },\r\n { value: \"False\", label: \"False\", default: true }\r\n]\r\n\r\nexport const TrueOrFalseWithNoDefault = TrueOrFalse.map(i => {\r\n return { value: i.value, label: i.label }\r\n})\r\nexport const LookupRoutineCopyOverRide = [\r\n { value: \"NONE\", label: \"NONE\", default: true },\r\n { value: \"BARCODE\", label: \"BARCODE\" },\r\n { value: \"SKU\", label: \"SKU\" },\r\n { value: \"BOTH\", label: \"BOTH\" }\r\n]\r\nexport const CheckDigitAddType = [\r\n { value: \"AddProduct\", label: \"AddProduct\", default: true },\r\n { value: \"AddDigit\", label: \"AddDigit\" }\r\n]\r\nexport const CheckDigitNextType = [\r\n { value: \"NextHigh\", label: \"NextHigh\", default: true },\r\n { value: \"NextLow\", label: \"NextLow\" }\r\n]\r\nexport const CheckDigitModType = [\r\n { value: \"Mod10\", label: \"Mod10\", default: true },\r\n { value: \"CDVType80\", label: \"CDVType80\" },\r\n { value: \"CDVType81\", label: \"CDVType81\" },\r\n { value: \"CDVType82\", label: \"CDVType82\" },\r\n { value: \"CDVType83\", label: \"CDVType83\" },\r\n { value: \"CDVType84\", label: \"CDVType84\" },\r\n { value: \"Mod85\", label: \"Mod85\" }\r\n]\r\n\r\nexport const WeightOptions = [\r\n {\r\n value: \"1,3,1,3,1,3,1,3,1,3,1,3,0\",\r\n label: \"1,3,1,3,1,3,1,3,1,3,1,3,0\",\r\n default: true\r\n },\r\n {\r\n value: \"3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,0\",\r\n label: \"3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,0\"\r\n },\r\n {\r\n value: \"4,2,6,8,4,2,0\",\r\n label: \"4,2,6,8,4,2,0\"\r\n },\r\n {\r\n value: \"1,3,3,1,3,0\",\r\n label: \"1,3,3,1,3,0\"\r\n },\r\n {\r\n value: \"10,9,8,7,6,5,4,3,2,0\",\r\n label: \"10,9,8,7,6,5,4,3,2,0\"\r\n },\r\n {\r\n value: \"2,3,9,1,9,1,2,0\",\r\n label: \"2,3,9,1,9,1,2,0\"\r\n }\r\n]\r\nexport const SelectionOptions = [\r\n {\r\n value: \"constant\",\r\n label: \"Constant\"\r\n },\r\n {\r\n value: \"Another Source\",\r\n label: \"Another Source\"\r\n }\r\n]\r\nexport const lookupTableOptions = [\r\n {\r\n value: \"Product\",\r\n label: \"Product\"\r\n },\r\n {\r\n value: \"Department\",\r\n label: \"Department\"\r\n },\r\n {\r\n value: \"Repack\",\r\n label: \"Repack\"\r\n }\r\n]\r\n\r\nconst sourceRepackTableFields = [\r\n {\r\n value: \"RepackBarcode\",\r\n label: \"Repack Barcode\"\r\n }\r\n]\r\n\r\nconst sourceProductTableFields = [\r\n ...[\r\n {\r\n value: \"Barcode\",\r\n label: \"Barcode\"\r\n },\r\n {\r\n value: \"Sku\",\r\n label: \"Sku\"\r\n },\r\n {\r\n value: \"Description\",\r\n label: \"Description\"\r\n },\r\n {\r\n value: \"Price\",\r\n label: \"Price\"\r\n },\r\n {\r\n value: \"Cost\",\r\n label: \"Cost\"\r\n },\r\n {\r\n value: \"Color\",\r\n label: \"Color\"\r\n },\r\n {\r\n value: \"Uom\",\r\n label: \"Uom\"\r\n },\r\n {\r\n value: \"Size\",\r\n label: \"Size\"\r\n },\r\n {\r\n value: \"Style\",\r\n label: \"Style\"\r\n }\r\n ],\r\n ...[1, 2, 3].map(i => {\r\n return { value: `ProductGenericT${i}`, label: `ProductGenericT${i}` }\r\n }),\r\n\r\n ...[1, 2, 3].map(i => {\r\n return { value: `ProductGenericD${i}`, label: `ProductGenericD${i}` }\r\n })\r\n]\r\nconst sourceDepartmentTableFields = [\r\n ...[\r\n {\r\n value: \"Department\",\r\n label: \"Department\"\r\n },\r\n {\r\n value: \"DepartmentName\",\r\n label: \"DepartmentName\"\r\n },\r\n {\r\n value: \"DepartmentSort\",\r\n label: \"DepartmentSort\"\r\n },\r\n {\r\n value: \"DepartmentParent\",\r\n label: \"DepartmentParent\"\r\n },\r\n {\r\n value: \"DepartmentParentName\",\r\n label: \"DepartmentParentName\"\r\n },\r\n {\r\n value: \"DepartmentParentSort\",\r\n label: \"DepartmentParentSort\"\r\n }\r\n ]\r\n]\r\nconst sourceOtherTableFields = [\r\n {\r\n value: \"ProductCaptured\",\r\n label: \"ProductCaptured\"\r\n },\r\n {\r\n value: \"Quantity\",\r\n label: \"Quantity\"\r\n },\r\n {\r\n value: \"Ext\",\r\n label: \"Ext\"\r\n }\r\n]\r\nconst repackOtherSourceFields = [\r\n {\r\n value: \"{RepackLookup}\",\r\n label: \"{RepackLookup}\"\r\n },\r\n {\r\n value: \"{RepackLookup.RepackBarcode}\",\r\n label: \"{RepackLookup.RepackBarcode}\"\r\n }\r\n]\r\nexport const currentFieldOptions = [\r\n { value: \"Current Field\", label: \"Current Field\", default: true }\r\n]\r\n\r\nexport const lookupProductOptions = [\r\n ...sourceProductTableFields,\r\n ...[sourceDepartmentTableFields[0]]\r\n]\r\n\r\nexport const lookupDepartmentOptions = [...sourceDepartmentTableFields]\r\nexport const lookupRepackOptions = [...sourceRepackTableFields]\r\n\r\nexport const sourceForCountLocationOptions = [\r\n ...[\r\n {\r\n value: \"{Location}\",\r\n label: \"{Location}\"\r\n }\r\n ],\r\n ...[...sourceProductTableFields, ...sourceDepartmentTableFields].map(i => {\r\n return {\r\n value: `{${i.value}}`,\r\n label: `{${i.label}}`\r\n }\r\n }),\r\n ...[\r\n {\r\n value: \"{LocationRange}\",\r\n label: \"{LocationRange}\"\r\n },\r\n {\r\n value: \"{LocationCategory}\",\r\n label: \"{LocationCategory}\"\r\n }\r\n ],\r\n ...sourceOtherTableFields.map(i => {\r\n return {\r\n value: `{${i.value}}`,\r\n label: `{${i.value}}`\r\n }\r\n }),\r\n ...repackOtherSourceFields\r\n]\r\n\r\nexport const sourceForCountProductOptions = [\r\n ...[\r\n {\r\n value: \"{ProductLookup}\",\r\n label: \"{ProductLookup}\"\r\n }\r\n ],\r\n ...sourceProductTableFields.map(i => {\r\n return {\r\n value: `{ProductLookup.${i.value}}`,\r\n label: `{ProductLookup.${i.label}}`\r\n }\r\n }),\r\n ...[\r\n {\r\n value: `{ProductLookup.${sourceDepartmentTableFields[0].value}}`,\r\n label: `{ProductLookup.${sourceDepartmentTableFields[0].value}}`\r\n }\r\n ]\r\n]\r\n\r\nexport const sourceForCountDepartmentOptions = [\r\n ...[\r\n {\r\n value: \"{DepartmentLookup}\",\r\n label: \"{DepartmentLookup}\"\r\n }\r\n ],\r\n ...sourceDepartmentTableFields.map(i => {\r\n return {\r\n value: `{DepartmentLookup.${i.value}}`,\r\n label: `{DepartmentLookup.${i.label}}`\r\n }\r\n })\r\n]\r\n\r\nexport const sourceForCombinedCountOptions = [\r\n ...sourceForCountLocationOptions,\r\n ...sourceForCountProductOptions,\r\n ...sourceForCountDepartmentOptions\r\n]\r\n\r\nconst sourceForAuditTagLevelOptionsPart1 = [\r\n {\r\n value: \"{Location.Value}\",\r\n label: \"{Location.Value}\"\r\n },\r\n {\r\n value: \"{Location.AuditReason}\",\r\n label: \"{Location.AuditReason}\"\r\n },\r\n {\r\n value: \"{Location.AuditRequired}\",\r\n label: \"{Location.AuditRequired}\"\r\n },\r\n {\r\n value: \"{Location.TotalQty}\",\r\n label: \"{Location.TotalQty}\"\r\n },\r\n {\r\n value: \"{Location.TotalExt}\",\r\n label: \"{Location.TotalExt}\"\r\n }\r\n]\r\n\r\nconst sourceForAuditTagLevelOptionsPart2 = [\r\n {\r\n value: \"{Location.MajorityDepartment}\",\r\n label: \"{Location.MajorityDepartment}\"\r\n },\r\n {\r\n value: \"{Location.MajorityDepartmentPercent}\",\r\n label: \"{Location.MajorityDepartmentPercent}\"\r\n },\r\n {\r\n value: \"{Range.Name}\",\r\n label: \"{Range.Name}\"\r\n },\r\n {\r\n value: \"{Category.Field}\",\r\n label: \"{Category.Field}\"\r\n },\r\n {\r\n value: \"{Category.Name}\",\r\n label: \"{Category.Name}\"\r\n }\r\n]\r\n\r\nexport const sourceForAuditTagLevelOptions = [\r\n ...sourceForAuditTagLevelOptionsPart1,\r\n ...sourceForAuditTagLevelOptionsPart2,\r\n ...[\r\n {\r\n value: \"{CountRole}\",\r\n label: \"{CountRole}\"\r\n },\r\n {\r\n value: \"{CountedAQ}\",\r\n label: \"{CountedAQ}\"\r\n }\r\n ]\r\n]\r\n\r\nexport const sourceForAuditRecordLevelOptions = [\r\n ...sourceForAuditTagLevelOptions,\r\n ...[\r\n ...sourceProductTableFields,\r\n ...sourceDepartmentTableFields,\r\n ...sourceOtherTableFields\r\n ].map(i => {\r\n return {\r\n value: `{Item.${i.value}}`,\r\n label: `{Item.${i.label}}`\r\n }\r\n })\r\n]\r\n\r\nexport const sourceForCombinedAuditOptions = [\r\n ...sourceForAuditTagLevelOptions,\r\n ...sourceForAuditRecordLevelOptions\r\n]\r\n\r\nexport const errorOptions = [\r\n {\r\n value: \"ERROR\",\r\n label: \"ERROR\"\r\n },\r\n {\r\n value: \"WARN\",\r\n label: \"WARN\"\r\n }\r\n]\r\n\r\nexport const preCountDataOptions = [\r\n {\r\n value: \"{product_captured_input_method}\",\r\n label: \"{product_captured_input_method}\"\r\n },\r\n {\r\n value: \"{Location.IsPreCount}\",\r\n label: \"{Location.IsPreCount}\"\r\n }\r\n]\r\n","import { IFormCountProgram } from \"src/utils/types/types\"\r\nimport { LookupConfigToEditor } from \"../LookupRoutines/helpers\"\r\nexport const COUNT_PROGRAMS_TYPE = {\r\n CLONE: \"CLONE\",\r\n EDIT: \"EDIT\"\r\n}\r\nexport const CountTypeList = [\r\n { label: \"AQ Only\", value: \"AQ Only\", translateKey: \"AQ_Only\" },\r\n { label: \"MQ Only\", value: \"MQ Only\", translateKey: \"MQ_Only\" },\r\n { label: \"TOGGLE\", value: \"TOGGLE\", translateKey: \"TOGGLE\" }\r\n]\r\nexport const COUNT_PROGRAMS_FIELDS = {\r\n Name: \"Name\",\r\n CountType: \"CountType\"\r\n}\r\nexport const LOCATION_RADIO_LIST = [\r\n { label: \"Standard Wis Tag\", value: \"StandardWisTag\" },\r\n { label: \"Custom Location\", value: \"CustomLocation\" },\r\n { label: \"CODE128\", value: \"CODE128\" },\r\n { label: \"QRCODE\", value: \"QRCODE\" },\r\n { label: \"Enable Mode\", value: \"Enabled\" }\r\n]\r\nexport const landingColumnDataDetails = [\r\n {\r\n Header: \"Name\",\r\n accessor: \"Name[0][en-us]\",\r\n setWidth: 250\r\n },\r\n {\r\n Header: \"ACTIONS\",\r\n accessor: \"action\",\r\n setWidth: 200\r\n }\r\n]\r\n\r\nexport const fieldNames = {\r\n name: { name: \"Name\", label: \"Name\" },\r\n StandardWisTag: {\r\n name: \"LocationMode.items[{inx}].StandardWisTag\",\r\n label: \"Standard WIS Tag\",\r\n value: \"Standard WIS Tag\"\r\n },\r\n CustomLocation: {\r\n name: \"LocationMode.items[{inx}].StandardWisTag\",\r\n label: \"Custom Location\",\r\n value: \"Custom Location\"\r\n },\r\n\r\n IsAlpha: {\r\n name: \"LocationMode.items[{inx}].IsAlpha\"\r\n },\r\n AllowedBarcodeTypes0: {\r\n name: \"LocationMode.items[{inx}].AllowedBarcodeTypes0\",\r\n label: \"QRCODE\"\r\n },\r\n AllowedBarcodeTypes1: {\r\n name: \"LocationMode.items[{inx}].AllowedBarcodeTypes1\",\r\n label: \"CODE128\"\r\n },\r\n ParentTabIndex: { name: \"ParentTabIndex\" },\r\n ChildTabIndex: { name: \"ChildTabIndex\" },\r\n ProductEnableMode: { name: \"ProductMode.Enabled\", label: \"Enable_Mode\" },\r\n countType: { name: \"ProductMode.CountType\", label: \"Count Type\" },\r\n locationSetupInstructionArrayName: {\r\n name: \"LocationMode.items[{inx}].SetupInstructions\"\r\n },\r\n locationValidationInstructionArrayName: {\r\n name: \"LocationMode.items[{inx}].ValidationInstructions\"\r\n },\r\n locationLookupInstructionArrayName: {\r\n name: \"LocationMode.items[{inx}].LookupInstructions\"\r\n },\r\n locationKeyName: {\r\n name: \"LocationMode.items[{inx}].key\"\r\n },\r\n locationIsSeparateInsertRuleName: {\r\n name: \"LocationMode.items[{inx}].IsSeparateInsertRule\",\r\n label: \"Separate Insert Rules\"\r\n },\r\n\r\n locationInsertRuleSetupInstructionArrayName: {\r\n name: \"LocationMode.items[{inx}].InsertRules.SetupInstructions\"\r\n },\r\n locationInsertRuleValidationInstructionArrayName: {\r\n name: \"LocationMode.items[{inx}].InsertRules.ValidationInstructions\"\r\n },\r\n locationInsertRuleLookupInstructionArrayName: {\r\n name: \"LocationMode.items[{inx}].InsertRules.LookupInstructions\"\r\n },\r\n productIsSeparateInsertRuleName: {\r\n name: \"ProductMode.items[{inx}].IsSeparateInsertRule\",\r\n label: \"Separate Insert Rules\"\r\n },\r\n productSetupInstructionArrayName: {\r\n name: \"ProductMode.items[{inx}].SetupInstructions\"\r\n },\r\n productValidationInstructionArrayName: {\r\n name: \"ProductMode.items[{inx}].ValidationInstructions\"\r\n },\r\n productLookupInstructionArrayName: {\r\n name: \"ProductMode.items[{inx}].LookupInstructions\"\r\n },\r\n productInsertRuleSetupInstructionArrayName: {\r\n name: \"ProductMode.items[{inx}].InsertRules.SetupInstructions\"\r\n },\r\n productInsertRuleValidationInstructionArrayName: {\r\n name: \"ProductMode.items[{inx}].InsertRules.ValidationInstructions\"\r\n },\r\n productInsertRuleLookupInstructionArrayName: {\r\n name: \"ProductMode.items[{inx}].InsertRules.LookupInstructions\"\r\n },\r\n\r\n productKeyName: {\r\n name: \"ProductMode.items[{inx}].key\"\r\n }\r\n}\r\n\r\nexport const AllowedBarcodeTypes = [\"QRCODE\", \"CODE128\"]\r\n\r\nexport const locationStaticConfigSetupInstruction: any = [\r\n {\r\n Function: \"AllowScan\",\r\n Parameters: [\"UPCA,CODE128\"]\r\n },\r\n {\r\n Function: \"AllowKey\",\r\n Parameters: [\"NUMERIC\"]\r\n }\r\n]\r\nexport const locationStaticConfigValidationInstruction: any = [\r\n {\r\n Function: \"Trim\",\r\n Parameters: [\" \"]\r\n },\r\n {\r\n Function: \"CheckDataType\",\r\n Parameters: [\"Numeric\"],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [\r\n {\r\n \"en-us\": \"Invalid Data Type\"\r\n }\r\n ]\r\n },\r\n {\r\n Function: \"CheckLength\",\r\n Parameters: [7, 12],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [\r\n {\r\n \"en-us\": \"Invalid Length\"\r\n }\r\n ]\r\n }\r\n]\r\n\r\nconst conditionCommon = {\r\n Function: \"If\",\r\n Condition: [\r\n \"AND\",\r\n [\r\n {\r\n Function: \"CheckEntryMethod\",\r\n Parameters: [\"SCANNED\"]\r\n },\r\n {\r\n Function: \"CheckLength\",\r\n Parameters: [12]\r\n },\r\n {\r\n Function: \"CheckBarcodeType\",\r\n Parameters: [\"UPCA\"]\r\n }\r\n ]\r\n ],\r\n IfTrue: [\r\n {\r\n Function: \"LookupRoutine\",\r\n Parameters: [\r\n \"UPCA_LOOKUP\",\r\n true,\r\n [\r\n {\r\n \"en-us\": \"Barcode Not Found\"\r\n }\r\n ],\r\n true,\r\n \"BARCODE\"\r\n ]\r\n }\r\n ]\r\n}\r\n\r\nlet conditionCommon1 = JSON.parse(JSON.stringify(conditionCommon))\r\nconditionCommon1.Condition[1][1][\"Parameters\"] = [7]\r\nconditionCommon1.Condition[1][2][\"Parameters\"] = [\"CODE128\"]\r\nconditionCommon1.IfTrue[0].Parameters[0] = \"SKU_LOOKUP\"\r\nconditionCommon1.IfTrue[0].Parameters[2][0][\"en-us\"] = \"SKU Not Found\"\r\nconditionCommon1.IfTrue[0].Parameters[4] = \"SKU\"\r\n\r\nlet conditionCommon2 = JSON.parse(JSON.stringify(conditionCommon))\r\nconditionCommon2.Condition[1][0][\"Parameters\"] = [\"KEYED\"]\r\n\r\nexport const locationStaticConfigLookupInstruction: any = [\r\n conditionCommon,\r\n conditionCommon1,\r\n conditionCommon2,\r\n {\r\n Function: \"If\",\r\n Condition: [\r\n \"AND\",\r\n [\r\n {\r\n Function: \"CheckEntryMethod\",\r\n Parameters: [\"KEYED\"]\r\n },\r\n {\r\n Function: \"CheckLength\",\r\n Parameters: [7]\r\n }\r\n ]\r\n ],\r\n IfTrue: [\r\n {\r\n Function: \"LookupRoutine\",\r\n Parameters: [\"SKU_LOOKUP\"]\r\n }\r\n ]\r\n },\r\n {\r\n Function: \"ERROR\",\r\n Parameters: [\r\n [\r\n {\r\n \"en-us\": \"Item Not Found and Rescan\"\r\n }\r\n ],\r\n false\r\n ]\r\n }\r\n]\r\n\r\nexport const locationStaticEditorSetupInstruction: any = LookupConfigToEditor(\r\n locationStaticConfigSetupInstruction\r\n)\r\nexport const locationStaticEditorValidationInstruction: any =\r\n LookupConfigToEditor(locationStaticConfigValidationInstruction)\r\nexport const locationStaticEditorLookupInstruction: any = LookupConfigToEditor(\r\n locationStaticConfigLookupInstruction\r\n)\r\n\r\nexport const defaultIniValues: IFormCountProgram = {\r\n Name: \"\",\r\n LocationMode: {\r\n items: [\r\n {\r\n key: 0,\r\n StandardWisTag: fieldNames.StandardWisTag.value,\r\n IsAlpha: false,\r\n AllowedBarcodeTypes0: true,\r\n AllowedBarcodeTypes1: true,\r\n SetupInstructions: [],\r\n ValidationInstructions: [],\r\n LookupInstructions: [],\r\n IsSeparateInsertRule: false,\r\n InsertRules: {\r\n SetupInstructions: [],\r\n ValidationInstructions: [],\r\n LookupInstructions: []\r\n }\r\n }\r\n ]\r\n },\r\n ProductMode: {\r\n Enabled: true,\r\n CountType: \"\",\r\n items: [\r\n {\r\n key: 0,\r\n SetupInstructions: [],\r\n ValidationInstructions: [],\r\n LookupInstructions: [],\r\n IsSeparateInsertRule: false,\r\n InsertRules: {\r\n SetupInstructions: [],\r\n ValidationInstructions: [],\r\n LookupInstructions: []\r\n }\r\n }\r\n ]\r\n },\r\n ParentTabIndex: 0,\r\n ChildTabIndex: 0\r\n}\r\nexport const CopyStdWisTagSetupInstructions: any = [\r\n {\r\n Function: \"AllowScan\",\r\n Parameters: [\"CODE128\", \"QRCODE\"]\r\n },\r\n {\r\n Function: \"AllowKey\",\r\n Parameters: [\"ALPHANUMERIC\"]\r\n }\r\n]\r\nconst MIN_VALUE = 5\r\nconst MAX_VALUE = 7\r\nexport const checkBoxClass = \"custom-check small\"\r\nexport const CopyStdWisTagValidationInstructions: any = [\r\n {\r\n Function: \"CheckDataType\",\r\n Parameters: [\"NUMERIC\"],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [{ \"en-us\": \"Invalid Data Type\" }]\r\n },\r\n {\r\n Function: \"CheckLengthRange\",\r\n Parameters: [MIN_VALUE, MAX_VALUE],\r\n OnFail: \"ERROR\",\r\n OnFailMessage: [{ \"en-us\": \"Must be between 5-7\" }]\r\n }\r\n]\r\n","import { formField } from \"src/utils/constants\"\r\nimport {\r\n MDWNOValues,\r\n createEditFieldNames,\r\n dailyFieldNames,\r\n monthlyFieldNames,\r\n systemDefaultFieldNames,\r\n weekDays,\r\n weeklyFieldNames,\r\n yearlyFieldNames\r\n} from \"../CreateEditMultiEventOutput\"\r\nimport { TimeFieldType } from \"../../Types\"\r\n\r\nexport const fileCSOptions = {\r\n Default: \"System Default\",\r\n Daily: \"Daily\",\r\n Weekly: \"Weekly\",\r\n Monthly: \"Monthly\",\r\n Yearly: \"Yearly\",\r\n Reservation: \"Reservation End\"\r\n}\r\n\r\nexport const FcsDetailsFields = {\r\n fileCreationSchedule: {\r\n fieldType: formField.radio,\r\n props: {\r\n name: createEditFieldNames.FileCreationSchedule.name,\r\n formControl: {\r\n radioGroup: {\r\n row: true,\r\n formControlLabels: [\r\n {\r\n value: fileCSOptions.Weekly,\r\n label: \"Weekly\"\r\n },\r\n {\r\n value: fileCSOptions.Monthly,\r\n label: \"Monthly\"\r\n },\r\n {\r\n value: fileCSOptions.Yearly,\r\n label: \"Yearly\"\r\n }\r\n ].map(i => ({ ...i, radio: { size: \"medium\" }, className: \"mr-5\" }))\r\n }\r\n }\r\n },\r\n childCols: { sm: 12 },\r\n triggerValidationFields: [\r\n { name: systemDefaultFieldNames.SDMinStore.name },\r\n { name: systemDefaultFieldNames.SDMaxStore.name },\r\n { name: createEditFieldNames.Time.name },\r\n { name: createEditFieldNames.StartDate.name },\r\n { name: createEditFieldNames.EndDate.name },\r\n { name: dailyFieldNames.DayRadio.name },\r\n { name: dailyFieldNames.DayInterval.name },\r\n { name: dailyFieldNames.WeekDayRadio.name },\r\n { name: weeklyFieldNames.WeeklyInterval.name },\r\n { name: weeklyFieldNames.Sunday.name },\r\n { name: weeklyFieldNames.Monday.name },\r\n { name: weeklyFieldNames.Tuesday.name },\r\n { name: weeklyFieldNames.Wednesday.name },\r\n { name: weeklyFieldNames.Thursday.name },\r\n { name: weeklyFieldNames.Friday.name },\r\n { name: weeklyFieldNames.Saturday.name },\r\n { name: monthlyFieldNames.DayRadio.name },\r\n { name: monthlyFieldNames.DayNumber.name },\r\n { name: monthlyFieldNames.DayMonthInterval.name },\r\n { name: monthlyFieldNames.WeekRadio.name },\r\n { name: monthlyFieldNames.WeekNumber.name },\r\n { name: monthlyFieldNames.WeekDay.name },\r\n { name: monthlyFieldNames.WeekMonthInterval.name },\r\n { name: yearlyFieldNames.YearInterval.name },\r\n { name: yearlyFieldNames.DayMonthRadio.name },\r\n { name: yearlyFieldNames.DayMonth.name },\r\n { name: yearlyFieldNames.DayMonthDayNumber.name },\r\n { name: yearlyFieldNames.WeekMonthRadio.name },\r\n { name: yearlyFieldNames.WeekMonthWeekNumber.name },\r\n { name: yearlyFieldNames.WeekMonthWeekDay.name },\r\n { name: yearlyFieldNames.WeekMonth.name }\r\n ]\r\n }\r\n}\r\nconst handleChange = (newValue: Date | null) => {\r\n if (newValue) {\r\n // Reset minutes to zero when hours change\r\n const hours = newValue.getHours()\r\n return new Date(newValue.setMinutes(0))\r\n } else {\r\n return null\r\n }\r\n}\r\nexport const TimeFields: TimeFieldType = {\r\n time: {\r\n fieldType: formField.time,\r\n props: {\r\n name: createEditFieldNames.Time.name,\r\n label: createEditFieldNames.Time.label,\r\n required: true,\r\n views: [\"hours\"],\r\n onChange: handleChange\r\n },\r\n parentCols: { className: \"mt-1\" },\r\n childCols: { sm: 2 }\r\n }\r\n}\r\n\r\nexport const renderType = {\r\n heading: \"heading\",\r\n field: \"field\"\r\n}\r\n\r\nexport const WeekNumberOptions = [\r\n { value: MDWNOValues.First, label: \"First\", default: true },\r\n { value: MDWNOValues.Second, label: \"Second\" },\r\n { value: MDWNOValues.Third, label: \"Third\" },\r\n { value: MDWNOValues.Fourth, label: \"Fourth\" }\r\n]\r\n\r\nexport const WeekDayOptions = [\r\n { value: weekDays.Sunday, label: weekDays.Sunday },\r\n { value: weekDays.Monday, label: weekDays.Monday },\r\n { value: weekDays.Tuesday, label: weekDays.Tuesday },\r\n { value: weekDays.Wednesday, label: weekDays.Wednesday, default: true },\r\n { value: weekDays.Thursday, label: weekDays.Thursday },\r\n { value: weekDays.Friday, label: weekDays.Friday },\r\n { value: weekDays.Saturday, label: weekDays.Saturday }\r\n]\r\n","import { useEffect } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport {\r\n prepareDataForLocationList,\r\n prepareDataForProductList\r\n} from \"src/configurationPortal/pages/CountPrograms/Component/TabFunctionsAndConstant\"\r\nimport { getConfigToFormConversion } from \"src/configurationPortal/pages/Variances/Utils/FunctionsHelper\"\r\nimport { multiEventOutputRouteReplaceVar } from \"src/constants/paths\"\r\nimport { setOutputBundlesRedux } from \"src/redux/slices/ConfigPortal/OutputBundleSlice\"\r\nimport { setReportsRedux } from \"src/redux/slices/ConfigPortal/ReportSlice\"\r\nimport { setVarianceRedux } from \"src/redux/slices/ConfigPortal/VarianceSlice\"\r\nimport {\r\n setConfigDataHookCalled,\r\n setCountFields,\r\n setCountPrograms,\r\n setDefaultCountFields,\r\n setGeneralSettings,\r\n setLookupRoutines,\r\n setAudits,\r\n setNewTargetLocationAuditRule,\r\n setNewTargetRecordAuditRule,\r\n setNewRandomAuditRule,\r\n setNewFollowUpAuditRule,\r\n getConfiguration,\r\n setLocationCategories,\r\n setInputFiles,\r\n setOutputFiles,\r\n getConfigDetails,\r\n setReduxCountScreenTotals,\r\n setReduxProductKey,\r\n setReduxOutOfRangeCountMethod\r\n} from \"src/redux/slices/configSlice\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport {\r\n decryptUrlParams,\r\n getConfigurationDecryptAndSetRedux\r\n} from \"src/utils/helper\"\r\n\r\nexport const ConfigDataHook = () => {\r\n const location = window.location\r\n const urlParams: any = location.search\r\n let slicedUrlParams = urlParams?.slice(1)\r\n let decryptedParams: any = decryptUrlParams(slicedUrlParams)\r\n let replacedString: any = decryptedParams?.replace(/\"./g, \" \")\r\n let idString: any = replacedString?.split(\"&\")[1]\r\n let idNum: any = idString?.split(\"=\")[1]\r\n const customers = useSelector((state: RootState) => state.settings?.customers)\r\n\r\n const dispatch = useAppThunkDispatch()\r\n const {\r\n config,\r\n varianceData,\r\n outputBundleData,\r\n reportData,\r\n columnReduxData,\r\n ftpConnectionData,\r\n multiEventOutputData,\r\n settings,\r\n auth\r\n } = useSelector((state: RootState) => {\r\n return {\r\n config: state.config || {},\r\n customerId: state.settings?.selectedCustomerForOperation,\r\n varianceData: state.variance || {},\r\n outputBundleData: state.outputBundle || {},\r\n reportData: state.report || {},\r\n columnReduxData: state.column || {},\r\n ftpConnectionData: state.ftpConnection || {},\r\n multiEventOutputData: state.multiEventOutput || {},\r\n settings: state.settings || {},\r\n auth: state.auth || {}\r\n }\r\n })\r\n\r\n const {\r\n lookupRoutines,\r\n generalSettings,\r\n countFields,\r\n configDataHookCalled,\r\n countPrograms,\r\n Audits,\r\n defaultCountFields,\r\n newTargetLocationAuditRule,\r\n newTargetRecordAuditRule,\r\n newFollowUpAuditRule,\r\n newRandomAuditRule,\r\n locationCategories,\r\n configDetails,\r\n inputFiles,\r\n Outputs,\r\n customerConfigurationsStatus,\r\n reduxCountScreenTotals,\r\n reduxProductKey,\r\n reduxOutOfRangeCountMethod\r\n } = config || {}\r\n\r\n const { varianceRedux } = varianceData\r\n const { outputBundlesRedux } = outputBundleData\r\n const { reportsRedux } = reportData\r\n\r\n const selectedCustomerList = customers?.filter((c: any) => c.selected)\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n const controller = new AbortController()\r\n if (\r\n isMounted &&\r\n customers?.length &&\r\n ![\"success\", \"loading\", \"failed\"].includes(customerConfigurationsStatus)\r\n ) {\r\n const payload = selectedCustomerList?.map(i => i.idCustomer)\r\n dispatch(getConfigDetails(payload))\r\n }\r\n return () => {\r\n isMounted = false\r\n controller.abort()\r\n }\r\n //eslint-disable-next-line\r\n }, [customers])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n const controller = new AbortController()\r\n if (isMounted) {\r\n if (configDetails && !Object.keys(configDetails).length && idNum) {\r\n dispatch(getConfiguration(idNum))\r\n }\r\n if (\r\n location?.pathname?.includes(\r\n multiEventOutputRouteReplaceVar.CreateSchedule\r\n )\r\n ) {\r\n dispatch(setConfigDataHookCalled(true))\r\n } else {\r\n dispatch(setConfigDataHookCalled(false))\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n controller.abort()\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n useEffect(() => {\r\n let isMounted = true\r\n const controller = new AbortController()\r\n if (isMounted) {\r\n //istanbul ignore next\r\n if (\r\n configDetails?.configuration &&\r\n auth?.keys?.length &&\r\n !configDataHookCalled\r\n ) {\r\n const dt = getConfigurationDecryptAndSetRedux(config)\r\n\r\n if (varianceRedux && !Object.keys(varianceRedux).length) {\r\n const { reduxData } = getConfigToFormConversion({\r\n GroupVariance: dt?.GroupedVariances,\r\n FullVariance: dt?.FullStoreVariances\r\n })\r\n dispatch(setVarianceRedux(reduxData))\r\n }\r\n if (\r\n !lookupRoutines ||\r\n (!lookupRoutines?.length && dt?.LookupRoutines?.length)\r\n ) {\r\n dispatch(setLookupRoutines(dt?.LookupRoutines))\r\n }\r\n if (\r\n generalSettings &&\r\n !Object.keys(generalSettings).length &&\r\n Object.keys(dt?.GeneralSettings).length\r\n ) {\r\n dispatch(setGeneralSettings(dt?.GeneralSettings))\r\n }\r\n if (countFields && !Object.keys(countFields).length) {\r\n let locField = JSON.parse(JSON.stringify(dt?.Fields || {}))\r\n delete locField?.countScreenTotals\r\n delete locField?.productKey\r\n delete locField?.outOfRangeCountMethod\r\n dispatch(setCountFields(locField))\r\n dispatch(\r\n setDefaultCountFields({ data: { ...locField }, type: \"UPDATE\" })\r\n )\r\n }\r\n if (!reduxCountScreenTotals) {\r\n const countScreenTotals = dt?.Fields?.countScreenTotals || \"\"\r\n dispatch(setReduxCountScreenTotals(countScreenTotals))\r\n }\r\n if (!reduxProductKey) {\r\n const productKey = dt?.Fields?.productKey || \"\"\r\n dispatch(setReduxProductKey(productKey))\r\n }\r\n if (!reduxOutOfRangeCountMethod) {\r\n const outOfRangeCountMethod = dt?.Fields?.outOfRangeCountMethod || \"\"\r\n dispatch(setReduxOutOfRangeCountMethod(outOfRangeCountMethod))\r\n }\r\n if (!locationCategories?.length) {\r\n dispatch(setLocationCategories(dt?.LocationCategories))\r\n }\r\n if (!inputFiles?.length) {\r\n dispatch(setInputFiles(dt?.InputFiles))\r\n }\r\n if (!reportsRedux?.length) {\r\n dispatch(setReportsRedux(dt?.Reports))\r\n }\r\n if (!Outputs?.length) {\r\n dispatch(setOutputFiles(dt?.Outputs))\r\n }\r\n if (!outputBundlesRedux?.length) {\r\n dispatch(setOutputBundlesRedux(dt?.OutputBundles))\r\n }\r\n if (!countPrograms?.length) {\r\n dt?.CountPrograms && dispatch(setCountPrograms(dt?.CountPrograms))\r\n if (dt?.Fields && Object?.keys(dt.Fields).length) {\r\n prepareDataForProductList(dt?.Fields)\r\n prepareDataForLocationList(dt?.Fields)\r\n } else {\r\n prepareDataForProductList(defaultCountFields)\r\n prepareDataForLocationList(defaultCountFields)\r\n }\r\n }\r\n\r\n if (Audits && !Object.keys(Audits)?.length) {\r\n dt?.Audits && dispatch(setAudits(dt?.Audits))\r\n\r\n if (!newRandomAuditRule?.length) {\r\n dt?.Audits?.RandomSystemAudits &&\r\n dispatch(setNewRandomAuditRule(dt?.Audits?.RandomSystemAudits))\r\n }\r\n if (!newTargetRecordAuditRule?.length) {\r\n dt?.Audits?.RecordSystemAudits &&\r\n dispatch(\r\n setNewTargetRecordAuditRule(dt?.Audits?.RecordSystemAudits)\r\n )\r\n }\r\n if (!newTargetLocationAuditRule?.length) {\r\n dt?.Audits?.LocationSystemAudits &&\r\n dispatch(\r\n setNewTargetLocationAuditRule(dt?.Audits?.LocationSystemAudits)\r\n )\r\n }\r\n if (!newFollowUpAuditRule?.length) {\r\n dt?.Audits?.FollowupSystemAudits &&\r\n dispatch(\r\n setNewFollowUpAuditRule(dt?.Audits?.FollowupSystemAudits)\r\n )\r\n }\r\n }\r\n dispatch(setConfigDataHookCalled(true))\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n controller.abort()\r\n }\r\n //eslint-disable-next-line\r\n }, [configDetails, configDataHookCalled, auth?.keys])\r\n return {\r\n config,\r\n varianceData,\r\n reportData,\r\n columnReduxData,\r\n outputBundleData,\r\n ftpConnectionData,\r\n multiEventOutputData,\r\n settings\r\n }\r\n}\r\n","import AceEditor from \"react-ace\"\r\nimport \"ace-builds/src-min-noconflict/ext-language_tools\"\r\nimport \"ace-builds/src-min-noconflict/mode-mysql\"\r\nimport \"ace-builds/src-min-noconflict/theme-tomorrow\"\r\nimport \"ace-builds/src-min-noconflict/theme-xcode\"\r\nconst AceEditorC = ({\r\n editormode,\r\n editorvalue,\r\n editorreadOnly,\r\n editorBackgroundColor,\r\n onFocusChangeHandler,\r\n onChangeHandler,\r\n focus\r\n}) => {\r\n return (\r\n {\r\n // istanbul ignore next\r\n if (focus) {\r\n setTimeout(() => {\r\n editor.focus()\r\n const session = editor.getSession()\r\n const count = session.getLength()\r\n editor.gotoLine(count, session.getLine(count - 1).length, true)\r\n }, 100)\r\n }\r\n }}\r\n value={editorvalue !== \"\" ? editorvalue : \"\"}\r\n />\r\n )\r\n}\r\n\r\nexport default AceEditorC\r\n","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\nexport class MultilingualService {\r\n getLanguageText() {\r\n const endPoint = \"api/LanguageContent\"\r\n return api.findAll(endPoint)\r\n }\r\n}\r\n//END-NOSCAN\r\n","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\n\r\nconst api = new ApiService()\r\nexport class LoginService {\r\n ValidateEmail(email) {\r\n const endPoint = `/api/Login/ValidateEmail/${email}`\r\n return api.findAll(endPoint)\r\n }\r\n UpdatePassword(payLoad) {\r\n const endPoint = \"/api/Login/UpdatePassword\"\r\n return api.update(endPoint, payLoad)\r\n }\r\n logout() {\r\n const endPoint: string = `api/LogOut`\r\n return api.post(endPoint, {})\r\n }\r\n getTokenForADLogin() {\r\n const endPoint: string = `/api/Login/GetAzureAdAccessToken`\r\n return api.findAll(endPoint)\r\n }\r\n getLogin(){\r\n const endPoint: string = `/api/Login`\r\n return api.findAll(endPoint)\r\n }\r\n}\r\n//END-NOSCAN","import { HereService } from \"./here.service\"\r\nimport ApiService from \"src/utils/useAxios\"\r\nimport { setKeys } from \"src/redux/slices/authSlice\"\r\nimport { store } from \"src/redux/store\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { decryptUrlParams } from \"src/utils/helper\"\r\nexport class InItService {\r\n hereService = new HereService()\r\n api = new ApiService()\r\n //istanbul ignore next\r\n async init() {\r\n let token = localStorage.getItem(\"hereToken\")\r\n let expireIn: any = localStorage.getItem(\"hereTokenExpireIn\")\r\n expireIn = parseInt(expireIn)\r\n if (\r\n !token ||\r\n token === \"**\" ||\r\n (token.length > 5 && Math.floor(expireIn / 3600) < 1)\r\n ) {\r\n this.hereService.getToken()\r\n }\r\n\r\n if (!store.getState()?.auth.keys?.length) {\r\n this.api\r\n .findAll(\"/api/Login\")\r\n .then(res => {\r\n if (res?.data && res?.data?.length) {\r\n const _temp = res?.data?.map(a => ({\r\n secretKey: a.secretKey,\r\n secretValue: decryptUrlParams(a.secretValue)\r\n }))\r\n store.dispatch(setKeys(_temp))\r\n }\r\n })\r\n .catch(function (err) {\r\n throw err\r\n })\r\n }\r\n updateWarnOnTabChangeToStore(false, true)\r\n }\r\n getTemplates(){\r\n const endPoint = \"/api/Customer/GetBulkUploadTemplates\"\r\n return this.api.findAll(endPoint)\r\n }\r\n}\r\n","/* istanbul ignore file */\r\n//BEGIN-NOSCAN\r\nimport i18n from \"i18next\"\r\nimport { initReactI18next } from \"react-i18next\"\r\nimport LanguageDetector from \"i18next-browser-languagedetector\"\r\nimport English from \"src/i18n/translations/en.json\"\r\nimport French from \"src/i18n/translations/de.json\"\r\nimport Spanish from \"./translations/me.json\"\r\nimport { MultilingualService } from \"src/service/multilingual.service\"\r\nimport { languageCode, languageCodeMap } from \"src/utils/constants\"\r\nimport { LoginService } from \"src/service/login.service\"\r\nimport { setKeys, setTemplates } from \"src/redux/slices/authSlice\"\r\nimport { store } from \"src/redux/store\"\r\nimport { decryptUrlParams } from \"src/utils/helper\"\r\nimport { InItService } from \"src/service/init.service\"\r\nimport moment from \"moment\"\r\n//clearing to avoid retaining old event cache\r\nif (window.location.pathname === \"/login\") {\r\n localStorage.removeItem(\"i18nextLng\")\r\n}\r\nexport const resources = {\r\n English,\r\n French,\r\n Spanish\r\n}\r\n\r\nexport const updateMoment = () => {\r\n Object.keys(languageCodeMap).forEach(lang => {\r\n moment.defineLocale(languageCodeMap[lang], {\r\n months: resources[lang].months,\r\n monthsShort: resources[lang].monthsShort\r\n })\r\n })\r\n}\r\nconst initService = new InItService()\r\n// istanbul ignore next\r\nconst setToken = (key, value) => {\r\n localStorage.setItem(key, value)\r\n}\r\n// istanbul ignore next\r\nconst getHereToken = () => {\r\n setTimeout(() => {\r\n initService.init()\r\n })\r\n}\r\n// istanbul ignore next\r\nconst getTemplateURLs = () => {\r\n initService\r\n .getTemplates()\r\n .then(resp => {\r\n store.dispatch(setTemplates(resp.data))\r\n })\r\n .catch(err => {\r\n throw err\r\n })\r\n}\r\nconst multilingualService = new MultilingualService()\r\nconst loginService = new LoginService()\r\n\r\n// istanbul ignore next\r\nexport const loginAccessTokenAndKeysSet = async () => {\r\n await loginService\r\n .getTokenForADLogin()\r\n .then(async (flexResp: any) => {\r\n setToken(\"accessToken\", flexResp.data.accessToken)\r\n setToken(\"refreshToken\", flexResp.data.refreshToken)\r\n updateMoment()\r\n await loginService\r\n .getLogin()\r\n .then(res => {\r\n if (res?.data?.length) {\r\n const _temp = res?.data?.map(a => ({\r\n secretKey: a.secretKey,\r\n secretValue: decryptUrlParams(a.secretValue)\r\n }))\r\n store.dispatch(setKeys(_temp))\r\n getHereToken()\r\n getTemplateURLs()\r\n }\r\n })\r\n .catch(function (err) {\r\n throw err\r\n })\r\n })\r\n .catch(err => {\r\n console.error(err)\r\n })\r\n}\r\nconst route = window.location.pathname\r\n// istanbul ignore next\r\nif (!route.includes(\"login\") && localStorage.getItem(\"accessToken\")) {\r\n loginAccessTokenAndKeysSet()\r\n multilingualService.getLanguageText().then((res: any) => {\r\n const Languages = res?.data || []\r\n Object.keys(Languages)?.forEach(i => {\r\n if (i?.toLowerCase() === languageCode.us_en) {\r\n Languages[i]?.forEach(i1 => {\r\n English.common = {\r\n ...English.common,\r\n ...{ [i1?.field_Code]: i1?.text_Translation }\r\n }\r\n })\r\n } else if (i?.toLowerCase() === languageCode.ca_fr) {\r\n Languages[i]?.forEach(i1 => {\r\n French.common = {\r\n ...French.common,\r\n ...{ [i1?.field_Code]: i1?.text_Translation }\r\n }\r\n })\r\n } else if (i?.toLowerCase() === languageCode.es_mx) {\r\n Languages[i]?.forEach(i1 => {\r\n Spanish.common = {\r\n ...Spanish.common,\r\n ...{ [i1?.field_Code]: i1?.text_Translation }\r\n }\r\n })\r\n }\r\n })\r\n })\r\n}\r\n\r\nexport const defaultNS = \"common\"\r\n\r\nexport const availableLanguages = Object.keys(resources)\r\n\r\nconst selectedLanguage = localStorage.getItem(\"i18nextLng\")\r\nconst fallbackLanguage = \"English\" // Fallback language if stored language is not available\r\nconst initialLanguage = selectedLanguage ?? fallbackLanguage // Use stored language or fallback language\r\ni18n.use(initReactI18next).use(LanguageDetector).init({\r\n resources,\r\n defaultNS,\r\n lng: initialLanguage,\r\n fallbackLng: fallbackLanguage\r\n})\r\n\r\nexport const Translates = Object.keys(English.common).reduce(\r\n (current: { [key: string]: string }, key: string) => ({\r\n ...current,\r\n [key]: key\r\n }),\r\n {}\r\n)\r\n\r\nexport const languageLocales = {\r\n english: \"en\",\r\n french: \"fr-ca\",\r\n spanish: \"es\"\r\n}\r\n//END-NOSCAN\r\n","import { validateInteger } from \"src/utils/helper\"\r\nimport { FieldTypes } from \"src/constants/audits\"\r\nimport { DEFAULT_RADIX } from \"src/utils/constants\"\r\n\r\nexport const auditRuleTypes = {\r\n DETAIL: \"DETAIL\",\r\n RESCAN: \"RESCAN\"\r\n}\r\n\r\nexport const aRFieldNames = {\r\n reason: \"reason\",\r\n auditType: \"auditType\",\r\n followupPercentageThreshold: \"followupPercentageThreshold\",\r\n followupRequiredUser: \"followupRequiredUser\",\r\n followupOriginalReasons: \"followupOriginalReasons\",\r\n followupStartTag: \"followupStartTag\",\r\n followupAccuracy: \"followupAccuracy\",\r\n followupNumberOfFollowups: \"followupNumberOfFollowups\",\r\n randomDetailPercentageThreshold: \"randomDetailPercentageThreshold\",\r\n randomDetailRequiredUser: \"randomDetailRequiredUser\",\r\n randomDetail1stAt: \"randomDetail1stAt\",\r\n randomDetail1stNext: \"randomDetail1stNext\",\r\n randomDetailStopAt: \"randomDetailStopAt\",\r\n targettedLocationPercentageThreshold: \"targettedLocationPercentageThreshold\",\r\n targettedLocationRequiredUser: \"targettedLocationRequiredUser\",\r\n targetedRecordPercentageThreshold: \"targetedRecordPercentageThreshold\",\r\n targetedRecordRequiredUser: \"targetedRecordRequiredUser\",\r\n reqAuditsPerCounter: \"reqAuditsPerCounter\",\r\n randomDetailsRepeat: \"randomDetailsRepeat\",\r\n followupHighQty: \"followupHighQty\",\r\n followupRandomSalesFloor: \"followupRandomSalesFloor\",\r\n checkDetailAudits: \"checkDetailAudits\",\r\n IsPerPerson: \"IsPerPerson\",\r\n percentThreshold: \"percentThreshold\",\r\n controlledradiobuttonsgroup: \"controlledradiobuttonsgroup\",\r\n reqAuditsPercent: \"reqAuditsPercent\"\r\n}\r\n\r\nexport const setAuditFormData = (\r\n e,\r\n setForm,\r\n form,\r\n setErrorMsg,\r\n setFollowupAccuracyPercentageErrorMsg,\r\n setOverallPercentageErrorMsg,\r\n setFollowupStopAtPercentageErrorMsg\r\n) => {\r\n let val = e.target.value\r\n\r\n if (e.target?.name) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name == aRFieldNames.reason) {\r\n setForm({ ...form, reason: e.target.value })\r\n setErrorMsg(false)\r\n }\r\n if (e.target?.name == aRFieldNames.targettedLocationPercentageThreshold) {\r\n setValidPercentageValues(\r\n setForm,\r\n form,\r\n aRFieldNames.targettedLocationPercentageThreshold,\r\n val\r\n )\r\n }\r\n // targeted record\r\n if (e.target?.name == aRFieldNames.targetedRecordPercentageThreshold) {\r\n setValidPercentageValues(\r\n setForm,\r\n form,\r\n \"targetedRecordPercentageThreshold\",\r\n val\r\n )\r\n }\r\n // random audit\r\n if (e.target?.name == aRFieldNames.randomDetailPercentageThreshold) {\r\n setValidPercentageValues(\r\n setForm,\r\n form,\r\n \"randomDetailPercentageThreshold\",\r\n val\r\n )\r\n }\r\n if (e.target?.name == aRFieldNames.randomDetail1stAt) {\r\n if (!validateInteger(val)) {\r\n setValidateDecimalIntegerFormData(setForm, form, e, FieldTypes.INTEGER)\r\n }\r\n }\r\n if (e.target?.name == aRFieldNames.randomDetail1stNext) {\r\n if (!validateInteger(val)) {\r\n setValidateDecimalIntegerFormData(setForm, form, e, FieldTypes.INTEGER)\r\n }\r\n }\r\n if (e.target?.name == aRFieldNames.randomDetailStopAt) {\r\n setValidPercentageValues(setForm, form, \"randomDetailStopAt\", val)\r\n }\r\n if (e.target?.name == aRFieldNames.randomDetailsRepeat) {\r\n setForm({ ...form, randomDetailsRepeat: e.target.checked })\r\n }\r\n //followup\r\n if (e.target?.name == aRFieldNames.followupPercentageThreshold) {\r\n setValidPercentageValues(setForm, form, \"followupPercentageThreshold\", val)\r\n }\r\n\r\n if (e.target?.name == aRFieldNames.followupHighQty) {\r\n setForm({ ...form, followupHighQty: e.target.checked })\r\n }\r\n if (e.target?.name == aRFieldNames.followupRandomSalesFloor) {\r\n setForm({ ...form, followupRandomSalesFloor: e.target.checked })\r\n }\r\n if (e.target?.name == aRFieldNames.followupStartTag) {\r\n if (!validateInteger(val)) {\r\n setValidateDecimalIntegerFormData(setForm, form, e, FieldTypes.INTEGER)\r\n }\r\n }\r\n if (e.target?.name == aRFieldNames.followupAccuracy) {\r\n setValidPercentageValues(setForm, form, aRFieldNames.followupAccuracy, val)\r\n }\r\n if (e.target?.name == aRFieldNames.followupNumberOfFollowups) {\r\n setValidPercentageValues(\r\n setForm,\r\n form,\r\n aRFieldNames.followupNumberOfFollowups,\r\n val\r\n )\r\n }\r\n // main audit data\r\n if (e.target?.name === aRFieldNames.checkDetailAudits) {\r\n setForm({ ...form, checkDetailAudits: e.target.checked })\r\n }\r\n if (e.target?.name === \"checkRescanAudits\") {\r\n setForm({ ...form, checkRescanAudits: e.target.checked })\r\n }\r\n if (e.target?.name === aRFieldNames.IsPerPerson) {\r\n setForm({ ...form, IsPerPerson: e.target.checked })\r\n }\r\n\r\n if (e.target?.name == aRFieldNames.controlledradiobuttonsgroup) {\r\n setForm({ ...form, controlledradiobuttonsgroup: val })\r\n }\r\n\r\n if (e.target?.name == aRFieldNames.percentThreshold) {\r\n setValidPercentageValues(setForm, form, aRFieldNames.percentThreshold, val)\r\n }\r\n if (e.target?.name == aRFieldNames.reqAuditsPercent) {\r\n setValidPercentageValues(setForm, form, aRFieldNames.reqAuditsPercent, val)\r\n }\r\n if (e.target?.name == aRFieldNames.reqAuditsPerCounter) {\r\n setForm({ ...form, reqAuditsPerCounter: val })\r\n }\r\n}\r\n\r\nexport const onAutoCompleteFormChange = (setForm, form, targetID, values) => {\r\n setForm({ ...form, [targetID]: values })\r\n}\r\n\r\nconst setValidPercentageValues = (setForm, form, name, val) => {\r\n if (val <= 100) setForm({ ...form, [name]: val })\r\n else {\r\n setForm({ ...form, [name]: \"\" })\r\n }\r\n}\r\n\r\nconst getBreadcrumbConfig = (\r\n landingName: string,\r\n landingPath: string,\r\n componentName: string\r\n) => {\r\n let landingPage = \"landingPage\"\r\n let custLinks: any = {}\r\n custLinks[`@${landingPage}`] = landingPath\r\n let currentPath: string = `##configuration##/@${landingPage}`\r\n let variables: any = {}\r\n variables[`@${landingPage}`] = landingName\r\n return {\r\n componentName,\r\n bConfig: {\r\n custLinks,\r\n showHomeIcon: false,\r\n currentPath,\r\n mapObj: variables\r\n }\r\n }\r\n}\r\n\r\nexport const getBreadcrumbPath = (componentname, title, path) => {\r\n let componentName = componentname\r\n const { bConfig } = getBreadcrumbConfig(title, path, componentName)\r\n return { bConfig }\r\n}\r\n\r\nconst setValidateDecimalIntegerFormData = (setForm, form, e, type) => {\r\n if (type == FieldTypes.INTEGER) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: e.target.value.substring(0, e.target.value.indexOf(\".\"))\r\n })\r\n } else {\r\n setForm({\r\n ...form,\r\n [e.target.name]: e.target.value.substring(0, e.target.value.length - 1)\r\n })\r\n }\r\n}\r\n\r\nexport const checkPercentageError = (\r\n val,\r\n setPercentageErrorMsg,\r\n setOverallPercentageErrorMsg\r\n) => {\r\n if (val > 100) {\r\n setPercentageErrorMsg(true)\r\n if (setOverallPercentageErrorMsg) setOverallPercentageErrorMsg(true)\r\n } else {\r\n setPercentageErrorMsg(false)\r\n if (setOverallPercentageErrorMsg) setOverallPercentageErrorMsg(false)\r\n }\r\n}\r\n\r\nexport const generateRuleName = (ruleObj, row) => {\r\n let filteredRuleObj = ruleObj.filter(rule => {\r\n return rule.Reason.includes(row.Reason)\r\n })\r\n let ruleName =\r\n `copy of ${row.Reason}` + \"(\" + `${filteredRuleObj.length}` + \")\"\r\n\r\n // check if the copied rule name is existing\r\n let checkDupliateRuleName = ruleObj.filter(ruleObj => {\r\n return ruleObj.Reason == ruleName\r\n })\r\n\r\n if (checkDupliateRuleName.length > 0) {\r\n ruleName =\r\n `copy of ${row.Reason}` + \"(\" + `${filteredRuleObj.length + 1}` + \")\"\r\n }\r\n\r\n return ruleName\r\n}\r\n\r\nexport const getPercentageErrorMessage = percentageErrorMsg => {\r\n if (percentageErrorMsg) {\r\n return `Percentage fields cannot be more than 100`\r\n }\r\n}\r\n\r\nexport const generatePercentageValues = () => {\r\n let percentagesArray: any[] = []\r\n for (let i = 0; i <= 100; i++) {\r\n percentagesArray.push(i + \"%\")\r\n }\r\n return percentagesArray\r\n}\r\n\r\nexport const formatInteger = value => {\r\n return value || value === 0\r\n ? parseFloat(\r\n parseFloat((parseInt(value, DEFAULT_RADIX) / 100).toString()).toFixed(2)\r\n )\r\n : 0\r\n}\r\n\r\nexport const percentageValueConversion = value => {\r\n return value || value === 0\r\n ? (parseFloat(value) * 100).toFixed(0) + \"%\"\r\n : value\r\n}\r\n","import { Button, Grid, Menu, MenuItem, Tooltip } from \"@mui/material\"\r\nimport FilterListOutlinedIcon from \"@mui/icons-material/FilterListOutlined\"\r\nimport FileDownloadOutlinedIcon from \"@mui/icons-material/FileDownloadOutlined\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport React, { useCallback, useState } from \"react\"\r\nimport BreadCrumb from \"../BreadCrumb/BreadCrumb\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"../../../src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\nimport ExcelIcon from \"../../assets/images/ExcelIcon.svg\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../src/redux/store\"\r\nimport SelectCustomerDropdown from \"../SelectCustomerDropdown/SelectCustomerDropdown\"\r\nimport { setScheduleFilters } from \"../../../src/redux/slices/scheduleSlice\"\r\nimport PermissionsAccessGate from \"../UserAccessMngt/PermissionAccessGate\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { FEATURES, KEY_CODES, PERMISSIONS } from \"src/utils/constants\"\r\n\r\nconst ScheduleToolBar: React.FC = ({\r\n handleFilter,\r\n download,\r\n disableDownload,\r\n filterCount,\r\n futureEventsDataCheck,\r\n schedule\r\n}) => {\r\n const customerList = useSelector(\r\n (state: RootState) => state.settings.customers\r\n )\r\n const { t } = useTranslation()\r\n const selectedCustomerList = customerList.filter((c: any) => c.selected)\r\n const [showSelectCustomer, setShowSelectCustomer] = useState(false)\r\n const schedulesPrevFilter = useSelector(\r\n (state: RootState) => state.schedule?.scheduleFilterForm\r\n )\r\n const [anchorEl, setAnchorEl] = React.useState(null)\r\n const open = Boolean(anchorEl)\r\n const handleClick = (event: React.MouseEvent) => {\r\n // downloadLocationsByAccount()\r\n setAnchorEl(event.currentTarget)\r\n }\r\n const handleClose = () => {\r\n setAnchorEl(null)\r\n }\r\n\r\n const handleCloseKeyUp = useCallback((e: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n handleClose()\r\n }\r\n }, [])\r\n\r\n const dispatch = useAppThunkDispatch()\r\n const history = useHistory()\r\n const getBreadcrumbConfig = () => {\r\n let currentPath = \"\"\r\n let variables: any = {}\r\n currentPath = `schedule`\r\n variables = {\r\n schedule: getTranslations(t, Translates.Schedule)\r\n }\r\n const bConfig: any = {\r\n currentPath,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n const handleFilterClick = () => {\r\n window.scrollTo({ top: 0, left: 0, behavior: \"smooth\" })\r\n dispatch(setScheduleFilters(schedulesPrevFilter))\r\n handleFilter()\r\n }\r\n\r\n const downloadClick = () => {\r\n download()\r\n }\r\n const handleAddSchedule = () => {\r\n if (selectedCustomerList.length > 1) {\r\n setShowSelectCustomer(true)\r\n } else {\r\n history.push(PATH.SCHEDULE_CREATE_TYPE)\r\n }\r\n }\r\n const handleContinue = () => {\r\n setShowSelectCustomer(false)\r\n history.push(PATH.SCHEDULE_CREATE_TYPE)\r\n }\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n {schedule && schedule.length > 0 ? (\r\n \r\n
    \r\n \r\n \r\n \r\n {filterCount !== 0 ? (\r\n \r\n {filterCount}\r\n \r\n ) : null}\r\n \r\n \r\n {/* \r\n \r\n \r\n \r\n */}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.EXCEL)}\r\n \r\n
    \r\n \r\n\r\n {!futureEventsDataCheck && (\r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Schedule)}\r\n \r\n \r\n )}\r\n
    \r\n \r\n ) : null}\r\n {showSelectCustomer ? (\r\n setShowSelectCustomer(false)}\r\n open={showSelectCustomer}\r\n onContinue={handleContinue}\r\n />\r\n ) : null}\r\n \r\n
    \r\n \r\n \r\n )\r\n}\r\nexport default ScheduleToolBar\r\n\r\n","import React, { useRef } from \"react\"\r\nimport { Dialog, DialogActions, DialogContent, Grid, Button } from \"@mui/material\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\ninterface InputConfirm {\r\n open: boolean\r\n callBack: any\r\n title: any\r\n content: any\r\n custref: any\r\n confirmButtonText?: string\r\n}\r\n\r\nconst Confirm: React.FC = ({\r\n open,\r\n callBack,\r\n title,\r\n content,\r\n custref,\r\n confirmButtonText = \"CLOSE\",\r\n}) => {\r\n const handleConfirm = () => {\r\n callBack(true)\r\n }\r\n\r\n const { t } = useTranslation()\r\n const dialogCancelButtonRef = useRef(custref)\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n onClick={() => callBack(false)}\r\n ref={dialogCancelButtonRef}\r\n >\r\n {getTranslations(t, Translates.Close)}\r\n \r\n \r\n

    {title}

    \r\n
    \r\n
    \r\n \r\n {content()}\r\n \r\n \r\n handleConfirm()}\r\n data-testid=\"dialog-confirmation-btn\"\r\n >\r\n {\" \"}\r\n {confirmButtonText}\r\n \r\n \r\n \r\n
    \r\n )\r\n}\r\n\r\nexport default Confirm\r\n","import {\r\n Grid,\r\n FormControl,\r\n InputLabel,\r\n Select,\r\n MenuItem,\r\n Checkbox,\r\n ListItemText,\r\n Button,\r\n TextField,\r\n ListItemIcon\r\n} from \"@mui/material\"\r\nimport { DesktopDatePicker, LocalizationProvider } from \"@mui/x-date-pickers\"\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\"\r\nimport moment from \"moment\"\r\nimport { useEffect } from \"react\"\r\nimport { getTranslations, sortData } from \"src/utils/helper\"\r\n\r\nconst ScheduleFilterComponent = ({\r\n t,\r\n Translates,\r\n storeData,\r\n multipleCustomersAssigned,\r\n handleChange,\r\n filteredRegion1Values,\r\n filteredRegion2Values,\r\n filteredRegion3Values,\r\n filteredRegion4Values,\r\n region1,\r\n region2,\r\n region3,\r\n region4,\r\n MenuProps,\r\n countryName,\r\n handleChangeCountry,\r\n uniqCountries,\r\n stateName,\r\n handleChangeState,\r\n uniqStates,\r\n startDate,\r\n endDate,\r\n onStartDateChange,\r\n onEndDateChange,\r\n handleKeyDown,\r\n statusName,\r\n handleChangeStatus,\r\n isAllSelected,\r\n sortedStatus,\r\n handleResetAllClick,\r\n applyCancelClick,\r\n applyFilterClick,\r\n uniqSiteIds = undefined as any,\r\n siteIdSelects = [] as any,\r\n handleChangeSiteId = _e => {},\r\n isSchedulePage = false,\r\n inValidStartDateFormat = false,\r\n inValidEndDateFormat = false,\r\n uniqConfigNames = undefined as any,\r\n configName,\r\n handleChangeConfig,\r\n isAllConfigSelected\r\n}) => {\r\n useEffect(() => {\r\n if (isAllConfigSelected) {\r\n handleChangeConfig({ target: { value: uniqConfigNames } })\r\n }\r\n }, [\r\n isAllConfigSelected,\r\n uniqConfigNames,\r\n configName.length,\r\n handleChangeConfig\r\n ])\r\n const getStartDateError = () => {\r\n if (inValidStartDateFormat) {\r\n return getTranslations(t, Translates.Invalid_Date_Format)\r\n }\r\n return \"\"\r\n }\r\n const getEndDateError = () => {\r\n if (inValidEndDateFormat) {\r\n return getTranslations(t, Translates.Invalid_Date_Format)\r\n }\r\n return \"\"\r\n }\r\n const handleConfigChange = event => {\r\n const {\r\n target: { value }\r\n } = event\r\n if (value.includes(\"All\")) {\r\n if (configName.length === uniqConfigNames.length) {\r\n handleChangeConfig({\r\n target: {\r\n value: []\r\n }\r\n })\r\n } else {\r\n handleChangeConfig({\r\n target: {\r\n value: uniqConfigNames\r\n }\r\n })\r\n }\r\n } else {\r\n handleChangeConfig(event)\r\n }\r\n }\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Filters)}\r\n

    \r\n
    \r\n \r\n \r\n {storeData?.[0]?.regionalGroup1Label &&\r\n !multipleCustomersAssigned ? (\r\n \r\n \r\n
    \r\n \r\n \r\n {storeData[0].regionalGroup1Label}\r\n \r\n handleChange(e, 1)}\r\n disabled={multipleCustomersAssigned}\r\n renderValue={selected => selected.join(\", \")}\r\n MenuProps={MenuProps}\r\n >\r\n {sortData(filteredRegion1Values)?.map(name => (\r\n \r\n -1}\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n ) : null}\r\n {storeData?.[0]?.regionalGroup2Label &&\r\n !multipleCustomersAssigned ? (\r\n \r\n \r\n
    \r\n \r\n \r\n {storeData[0].regionalGroup2Label}\r\n \r\n handleChange(e, 2)}\r\n disabled={multipleCustomersAssigned}\r\n renderValue={selected => selected.join(\", \")}\r\n MenuProps={MenuProps}\r\n >\r\n {sortData(filteredRegion2Values)?.map(name => (\r\n \r\n -1}\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n ) : null}\r\n {storeData?.[0]?.regionalGroup3Label &&\r\n !multipleCustomersAssigned ? (\r\n \r\n \r\n
    \r\n \r\n \r\n {storeData[0].regionalGroup3Label}\r\n \r\n handleChange(e, 3)}\r\n disabled={multipleCustomersAssigned}\r\n renderValue={selected => selected.join(\", \")}\r\n MenuProps={MenuProps}\r\n >\r\n {sortData(filteredRegion3Values)?.map(name => (\r\n \r\n -1}\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n ) : null}\r\n {storeData?.[0]?.regionalGroup4Label &&\r\n !multipleCustomersAssigned ? (\r\n \r\n \r\n
    \r\n \r\n \r\n {storeData[0].regionalGroup4Label}\r\n \r\n handleChange(e, 4)}\r\n disabled={multipleCustomersAssigned}\r\n renderValue={selected => selected.join(\", \")}\r\n MenuProps={MenuProps}\r\n >\r\n {sortData(filteredRegion4Values)?.map(name => (\r\n \r\n -1}\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n ) : null}\r\n
    \r\n
    \r\n {uniqSiteIds ? (\r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Site_ID)}\r\n \r\n selected.join(\", \")}\r\n MenuProps={MenuProps}\r\n >\r\n {uniqSiteIds?.map(name => (\r\n \r\n -1}\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n ) : null}\r\n\r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Country)}\r\n \r\n selected.join(\", \")}\r\n MenuProps={MenuProps}\r\n >\r\n {sortData(uniqCountries)?.map(name => (\r\n \r\n -1} />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.State)}\r\n \r\n selected.join(\", \")}\r\n MenuProps={MenuProps}\r\n >\r\n {sortData(uniqStates)?.map(name => (\r\n \r\n -1} />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n {uniqConfigNames ? (\r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Configuration)}\r\n \r\n {\r\n return isAllConfigSelected\r\n ? getTranslations(t, Translates.All)\r\n : uniqConfigNames\r\n .filter(item => selected.includes(item))\r\n .map(item => item)\r\n .join(\", \")\r\n }}\r\n MenuProps={MenuProps}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n {uniqConfigNames?.map(name => (\r\n \r\n -1}\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n ) : null}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {\r\n onStartDateChange({\r\n target: {\r\n name: \"startDate\",\r\n value: value\r\n }\r\n })\r\n }}\r\n maxDate={endDate ? new Date(endDate) : null}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n {\r\n onEndDateChange({\r\n target: {\r\n name: \"endDate\",\r\n value: value\r\n }\r\n })\r\n }}\r\n minDate={startDate ? new Date(startDate) : null}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Status)}\r\n \r\n {\r\n return isAllSelected\r\n ? getTranslations(t, Translates.All)\r\n : sortedStatus\r\n .filter(item => selected.includes(item.value))\r\n .map(item => item.label)\r\n .join(\", \")\r\n }}\r\n MenuProps={MenuProps}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {sortedStatus.map(i => (\r\n \r\n -1}\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n {isSchedulePage\r\n ? getTranslations(t, Translates.RESET_TO_DEFAULT)\r\n : getTranslations(t, Translates.Reset_All)}\r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {getTranslations(t, Translates.Apply_Filter)}\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default ScheduleFilterComponent\r\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../src/redux/store\"\r\nimport {\r\n setScheduleFilterForm,\r\n setScheduleFilters\r\n} from \"../../../src/redux/slices/scheduleSlice\"\r\nimport moment from \"moment\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport FilterComponent from \"src/utils/reusables/FilterComponent\"\r\nimport {\r\n dateChangeHandler,\r\n filterAndSort,\r\n getEventStatusList,\r\n getRegionData,\r\n handleChangeCountryVal,\r\n handleChangeRegion,\r\n handleChangeSiteIdVal,\r\n handleChangeStateVal,\r\n handleChangeStatusVal,\r\n handleScheduleResetAll,\r\n sortData,\r\n handleChangeConfigVal\r\n} from \"src/utils/helper\"\r\nimport { InvalidDate } from \"src/utils/constants\"\r\nimport ScheduleFilterComponent from \"./ScheduleFilterComponent\"\r\n\r\nconst ITEM_HEIGHT = 48\r\nconst ITEM_PADDING_TOP = 8\r\nconst MenuProps = {\r\n PaperProps: {\r\n style: {\r\n maxHeight: ITEM_HEIGHT * 4.5 + ITEM_PADDING_TOP\r\n },\r\n anchororigin: {\r\n vertical: \"bottom\",\r\n horizontal: \"left\"\r\n },\r\n transformorigin: {\r\n vertical: \"top\",\r\n horizontal: \"left\"\r\n },\r\n getcontentanchorel: null\r\n }\r\n}\r\n\r\ninterface SReservation {\r\n scheduledDateTime: string\r\n}\r\n\r\nconst ScheduleFilter = ({\r\n storeData,\r\n userData,\r\n cancelClick,\r\n applyClick,\r\n countries,\r\n states,\r\n status,\r\n showFilterPage,\r\n multipleCustomersAssigned,\r\n siteIds,\r\n configNames\r\n}) => {\r\n const [stateName, setStateName] = React.useState([] as any)\r\n const [configName, setConfigName] = React.useState([\"All\"] as any)\r\n const dispatch = useAppThunkDispatch()\r\n const { t } = useTranslation()\r\n const [statusName, setStatusName] = React.useState([] as any)\r\n const [startDate, setStartDate] = React.useState(null)\r\n const [endDate, setEndDate] = React.useState(null)\r\n const [region1, setRegion1] = React.useState([] as any)\r\n const [region2, setRegion2] = React.useState([] as any)\r\n const [region3, setRegion3] = React.useState([] as any)\r\n const [region4, setRegion4] = React.useState([] as any)\r\n const scheduleFilter = useSelector(\r\n (state: RootState) => state.schedule.scheduleFilters\r\n )\r\n const [filteredRegion1, setFilteredRegion1] = useState([] as any)\r\n const [filteredRegion2, setFilteredRegion2] = useState([] as any)\r\n const [filteredRegion3, setFilteredRegion3] = useState([] as any)\r\n const [filteredRegion4, setFilteredRegion4] = useState([] as any)\r\n const [countryName, setCountryName] = React.useState([] as any)\r\n const [siteIdSelects, setSiteIdSelects] = React.useState([] as any)\r\n const [inValidStartDateFormat, setInValidStartDateFormat] = useState(false)\r\n const [inValidEndDateFormat, setInValidEndDateFormat] = useState(false)\r\n\r\n const handleChange = (event, id) => {\r\n handleChangeRegion(\r\n event,\r\n id,\r\n setRegion1,\r\n setRegion2,\r\n setRegion3,\r\n setRegion4\r\n )\r\n }\r\n const handleChangeCountry = event => {\r\n handleChangeCountryVal(event, setCountryName)\r\n }\r\n const handleChangeSiteId = event => {\r\n handleChangeSiteIdVal(event, setSiteIdSelects)\r\n }\r\n const handleChangeStatus = event => {\r\n handleChangeStatusVal(event, setStatusName, statusName, uniqStatus)\r\n }\r\n\r\n const handleChangeState = event => {\r\n handleChangeStateVal(event, setStateName)\r\n }\r\n const handleChangeConfig = event => {\r\n handleChangeConfigVal(event, setConfigName)\r\n }\r\n useEffect(() => {\r\n getRegionData(\r\n userData,\r\n setFilteredRegion1,\r\n setFilteredRegion2,\r\n setFilteredRegion3,\r\n setFilteredRegion4\r\n )\r\n setRegion1(scheduleFilter?.region1 || [])\r\n setRegion2(scheduleFilter?.region2 || [])\r\n setRegion3(scheduleFilter?.region3 || [])\r\n setRegion4(scheduleFilter?.region4 || [])\r\n setStateName(scheduleFilter?.state || [])\r\n setCountryName(scheduleFilter?.country || [])\r\n setStatusName(scheduleFilter?.eventStatus || [])\r\n setStartDate(scheduleFilter?.startDate || \"\")\r\n setEndDate(scheduleFilter?.endDate || \"\")\r\n setConfigName(\r\n scheduleFilter?.configNames.length > 0\r\n ? scheduleFilter?.configNames\r\n : [\"All\"]\r\n )\r\n }, [scheduleFilter])\r\n\r\n let filteredCountries = countries.filter(function (el) {\r\n return el != null || \"\"\r\n })\r\n let uniqCountries: any = Array.from(new Set(filteredCountries))\r\n uniqCountries = sortData(uniqCountries)\r\n let filteredStates = states.filter(function (el) {\r\n return el != null || \"\"\r\n })\r\n let uniqStates: any = Array.from(new Set(filteredStates))\r\n uniqStates = filterAndSort(uniqStates)\r\n\r\n let uniqSiteIds: any = Array.from(new Set(siteIds))\r\n let uniqConfigNames = filterAndSort(configNames)\r\n\r\n const uniqStatus = React.useMemo(() => getEventStatusList({ t }), [t])\r\n\r\n const sortedStatus = uniqStatus\r\n .slice()\r\n .sort((a, b) => a.label.localeCompare(b.label))\r\n const isAllSelected = useMemo(\r\n () => \r\n uniqStatus.length > 0 && statusName.length === uniqStatus.length,\r\n [statusName, uniqStatus]\r\n )\r\n const isAllConfigSelected = useMemo(\r\n () =>\r\n (uniqConfigNames?.length > 0 && configName?.length === uniqConfigNames?.length) || configName.includes(\"All\"),\r\n [configName, uniqConfigNames]\r\n )\r\n const applyFilter = () => {\r\n let filtersData = {\r\n region1: region1,\r\n region2: region2,\r\n region3: region3,\r\n region4: region4,\r\n country: countryName,\r\n siteIds: siteIdSelects,\r\n state: stateName,\r\n startDate: startDate ? moment(startDate).format(\"YYYY-MM-DD\") : \"\",\r\n endDate: endDate ? moment(endDate).format(\"YYYY-MM-DD\") : \"\",\r\n eventStatus: statusName,\r\n configNames: configName\r\n }\r\n dispatch(setScheduleFilterForm({ ...filtersData }))\r\n applyClick({\r\n ...filtersData\r\n })\r\n dispatch(setScheduleFilters({ ...filtersData }))\r\n }\r\n const applyFilterClick = () => {\r\n let hasInvalidDate = false\r\n if (startDate == InvalidDate) {\r\n setInValidStartDateFormat(true)\r\n hasInvalidDate = true\r\n } else {\r\n setInValidStartDateFormat(false)\r\n }\r\n if (endDate == InvalidDate) {\r\n setInValidEndDateFormat(true)\r\n hasInvalidDate = true\r\n } else {\r\n setInValidEndDateFormat(false)\r\n }\r\n\r\n if (!hasInvalidDate) {\r\n applyFilter()\r\n }\r\n }\r\n\r\n const onStartDateChange = e => {\r\n moment.locale(\"us_en\")\r\n setStartDate(e.target.value)\r\n setInValidStartDateFormat(false)\r\n }\r\n const onEndDateChange = e => {\r\n moment.locale(\"us_en\")\r\n setEndDate(e.target.value)\r\n setInValidEndDateFormat(false)\r\n }\r\n const applyCancelClick = () => {\r\n cancelClick()\r\n }\r\n\r\n const handleResetAllClick = () => {\r\n handleScheduleResetAll({\r\n setRegion1,\r\n setRegion2,\r\n setRegion3,\r\n setRegion4,\r\n setCountryName,\r\n setStateName,\r\n setStartDate,\r\n setEndDate,\r\n setStatusName,\r\n setConfigName: () => setConfigName([\"All\"]),\r\n isSchedulePage: true\r\n })\r\n setSiteIdSelects([])\r\n }\r\n const handleKeyDown = useCallback(\r\n event => {\r\n if (event.keyCode === 8 || event.keyCode === 46) {\r\n setStartDate(\"\")\r\n setEndDate(\"\")\r\n }\r\n },\r\n [setStartDate, setEndDate]\r\n )\r\n return (\r\n <>\r\n {showFilterPage ? (\r\n \r\n ) : null}\r\n \r\n )\r\n}\r\n\r\nexport default ScheduleFilter\r\n","import {\r\n Alert,\r\n AlertTitle,\r\n Button,\r\n Checkbox,\r\n FormControlLabel,\r\n Grid,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport React, { useCallback, useEffect, useState } from \"react\"\r\nimport { Loader } from \"../../../src/utils/reusables/reusable\"\r\nimport GlobalTable from \"../../../src/components/GlobalTable/GlobalTable\"\r\nimport { ScheduleService } from \"../../../src/service/schedule.service\"\r\nimport editIcon from \"../../assets/images/Edit.png\"\r\nimport ConfirmDialog from \"../../../src/components/ConfirmDialog/ConfirmDialog\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport RotateLeftIcon from \"@mui/icons-material/RotateLeft\"\r\nimport { useSelector } from \"react-redux\"\r\nimport CheckCircleIcon from \"@mui/icons-material/CheckCircle\"\r\nimport CancelOutlinedIcon from \"@mui/icons-material/CancelOutlined\"\r\nimport LockIcon from \"@mui/icons-material/Lock\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../src/redux/store\"\r\nimport multiCustomerLogo from \"../../../src/assets/images/MultiCustomer.png\"\r\nimport {checkNullEmpty} from \"../../../src/utils/helper\";\r\nimport {\r\n encryptUrlParams,\r\n filterByHelper,\r\n getCurrentUserRole,\r\n filterRegionalUserData,\r\n handleSuperVisorPortalRedirect,\r\n getTranslations,\r\n decryptUrlParams,\r\n millisecondsToDays,\r\n encrypt,\r\n decrypt,\r\n stripSecondsAndMilliseconds,\r\n filterAndSort,\r\n customSortSiteIds\r\n} from \"../../../src/utils/helper\"\r\nimport Confirm from \"../../../src/components/ConfirmDialog/Confirm\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { setCustomerForOperation } from \"../../../src/redux/slices/settingsSlice\"\r\nimport { SettingsService } from \"../../../src/service/settings.service\"\r\nimport ScheduleFilter from \"./ScheduleFilter\"\r\nimport { sortTableData } from \"../../utils/helper\"\r\nimport { fieldConstants, timeOut } from \"../../utils/fieldConstants\"\r\nimport { Warning } from \"@mui/icons-material\"\r\nimport PermissionsAccessGate from \"../../../src/components/UserAccessMngt/PermissionAccessGate\"\r\nimport {\r\n DESCENDING,\r\n FEATURES,\r\n KEY_CODES,\r\n PERMISSIONS,\r\n QUERY_PARAMETERS,\r\n ROLE_CONSTANTS,\r\n SCHEDULE_STATUS_CONSTANTS,\r\n SHIPPING_URL\r\n} from \"../../../src/utils/constants\"\r\nimport InfoOutlinedIcon from \"@mui/icons-material/InfoOutlined\"\r\nimport ShippingIcon from \"@mui/icons-material/LocalShippingOutlined\"\r\nimport RemoveRedEyeOutlinedIcon from \"@mui/icons-material/RemoveRedEyeOutlined\"\r\nimport DateFormat from \"src/components/DateFormat\"\r\nimport ScheduleBanner from \"./ScheduleBanner\"\r\nimport OpenInNewOutlinedIcon from \"@mui/icons-material/OpenInNewOutlined\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getRegionalGroups } from \"src/configurationPortal/pages/Variances/Utils/FunctionsHelper\"\r\nimport moment from \"moment\"\r\nimport { setConfigurationData } from \"src/redux/slices/scheduleSlice\"\r\n\r\nconst ScheduleDetails: React.FC = ({\r\n showFilterPage,\r\n hideFilter,\r\n sendFilterDataToParent,\r\n sendRenderedDataToParent,\r\n setScheduleInParent,\r\n futureEventsData = [],\r\n selectedEventIds = [],\r\n actionIdConfig = 0,\r\n isInstall\r\n}) => {\r\n const customerList = useSelector(\r\n (state: RootState) => state.settings.customers\r\n )\r\n const selectedCustomerList = customerList.filter((c: any) => c.selected)\r\n const multipleCustomersAssigned = selectedCustomerList.length > 1\r\n let filters: any = []\r\n let filtered: any = []\r\n const scheduleSortFilter = useSelector(\r\n (state: RootState) => state.schedule.scheduleSort\r\n )\r\n const scheduleColumnFilter = useSelector(\r\n (state: RootState) => state.schedule.scheduleColumn\r\n )\r\n const scheduleService = new ScheduleService()\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const [loading, setLoading] = useState(true)\r\n const [schedule, setSchedule] = useState(null)\r\n const [alertVisible, setAlertVisible] = useState(false)\r\n const [isDialog, setIsDialog] = useState(false)\r\n const [storeData, setStoreData] = useState({} as any)\r\n const settingsService = new SettingsService()\r\n const [regionLabels, setRegionLabels] = useState([])\r\n const [countries, setCountries] = useState([] as any)\r\n const [siteIds, setSiteIds] = useState([] as any)\r\n const [configNames, setConfigNames] = useState([\"All\"] as any)\r\n const [states, setStates] = useState([] as any)\r\n const [status, setStatus] = useState([] as any)\r\n const [userAccount, setUserAccount] = useState([] as any)\r\n // const [currentDate, setCurrentDate] = useState(\"\" as any)\r\n // const [startDate, setStartDate] = useState(\"\" as any)\r\n // const [endDate, setEndDate] = useState(\"\" as any)\r\n const [renderData, setRenderData] = useState([] as any)\r\n const [eventIds, setEventIds] = useState([] as any)\r\n const [selectAllCheckbox, setSelectAllCheckbox] = useState(false)\r\n const [isDeleteOpen, setIsDeleteOpen] = useState(false)\r\n const [alertContent, setAlertContent] = useState(\"\")\r\n const [deleteRow, setDeleteRow] = useState({} as any)\r\n const [cancelRow, setCancelRow] = useState({} as any)\r\n const [fetchingPassword, setFetchingPassword] = useState([])\r\n const dispatch = useAppThunkDispatch()\r\n const _userRole: string = getCurrentUserRole()\r\n let regionalGroupsInfo\r\n const scheduleFilterForm = useSelector(\r\n (state: RootState) => state.schedule.scheduleFilterForm\r\n )\r\n\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings.selectedCustomerForOperation\r\n )\r\n const resStatus = 200\r\n const resDate = 7\r\n useEffect(() => {\r\n // get the regional user mapping\r\n regionalGroupsInfo =\r\n getCurrentUserRole(\"USER_REGIONS\") &&\r\n JSON.parse(getCurrentUserRole(\"USER_REGIONS\"))\r\n if (futureEventsData.length === 0 && actionIdConfig === 0) {\r\n let search = window.location.search\r\n const searchParams = new URLSearchParams(search)\r\n const EventIds = decryptUrlParams(\r\n searchParams.get(QUERY_PARAMETERS.EVENTIDS)\r\n )\r\n if (EventIds) {\r\n setEventIds(EventIds.split(\",\").map(str => parseInt(str, 10)))\r\n }\r\n }\r\n }, [])\r\n useEffect(() => {\r\n if (futureEventsData.length > 0) {\r\n getLocationsByStore()\r\n }\r\n }, [customerList, customerId, futureEventsData])\r\n\r\n const init = () => {\r\n if (futureEventsData.length === 0 && actionIdConfig === 0) {\r\n GetViewSchedule()\r\n } else {\r\n // from futureevent\r\n setEventIds(selectedEventIds)\r\n resProcess({ data: futureEventsData })\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (customerList?.length) {\r\n init()\r\n } else {\r\n setTimeout(() => {\r\n init()\r\n })\r\n }\r\n }, [customerList, customerId])\r\n\r\n useEffect(() => {\r\n if (\r\n scheduleFilterForm?.country?.length ||\r\n scheduleFilterForm?.state?.length ||\r\n scheduleFilterForm?.startDate !== \"\" ||\r\n scheduleFilterForm?.endDate !== \"\" ||\r\n scheduleFilterForm?.region1?.length ||\r\n scheduleFilterForm?.region2?.length ||\r\n scheduleFilterForm?.region3?.length ||\r\n scheduleFilterForm?.region4?.length ||\r\n scheduleFilterForm?.eventStatus ||\r\n scheduleFilterForm?.configNames?.length\r\n ) {\r\n getAppliedValues(scheduleFilterForm)\r\n }\r\n }, [scheduleFilterForm, schedule, storeData])\r\n\r\n const DateFunction = (days: any) => {\r\n const result = new Date()\r\n result.setDate(result.getDate() + days)\r\n return result\r\n }\r\n\r\n const renderShareIcon = props => {\r\n const shareDisable =\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Cancelled.toLowerCase()\r\n return (\r\n \r\n handleShare(props.row.original)}\r\n />\r\n \r\n )\r\n }\r\n\r\n const renderRedirectIcon = props => {\r\n const redirectDisable =\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Cancelled.toLowerCase() ||\r\n fetchingPassword.includes(props.row.original.idEvent)\r\n return (\r\n \r\n handleRedicrect(props.row.original)}\r\n />\r\n \r\n )\r\n }\r\n\r\n const handleConciseView = record => {\r\n history.push(`/finalReportsAndFiles`, {\r\n eventDetails: record\r\n })\r\n }\r\n\r\n const renderEditIcon = props => {\r\n if (_userRole?.toLowerCase() === ROLE_CONSTANTS.WisUser.toLowerCase()) {\r\n return props.row.original.scheduledDateTime &&\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.NotStarted.toLowerCase() ? (\r\n \r\n \r\n handleEdit(props.row.original)}\r\n onKeyUp={e => {\r\n handleEditKeyUp(e, props.row.original)\r\n }}\r\n />\r\n \r\n \r\n ) : null\r\n } else if (\r\n [\r\n ROLE_CONSTANTS.Admin.toLowerCase(),\r\n ROLE_CONSTANTS.CorporateUser.toLowerCase()\r\n ].includes(_userRole?.toLowerCase())\r\n ) {\r\n if (\r\n new Date(props.row.original.scheduledDateTime) > DateFunction(30) &&\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.NotStarted.toLowerCase()\r\n ) {\r\n return (\r\n \r\n \r\n handleEdit(props.row.original)}\r\n onKeyUp={e => {\r\n handleEditKeyUp(e, props.row.original)\r\n }}\r\n />\r\n \r\n \r\n )\r\n }\r\n } else if (\r\n _userRole?.toLowerCase() !== ROLE_CONSTANTS.WisUser.toLowerCase()\r\n ) {\r\n if (\r\n new Date(props.row.original.scheduledDateTime) > DateFunction(7) &&\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Future.toLowerCase()\r\n ) {\r\n return (\r\n \r\n \r\n handleEdit(props.row.original)}\r\n onKeyUp={e => {\r\n handleEditKeyUp(e, props.row.original)\r\n }}\r\n />\r\n \r\n \r\n )\r\n }\r\n }\r\n return null\r\n }\r\n\r\n const handleDelete = useCallback((idEvent: any) => {\r\n deleteSchedule(idEvent)\r\n }, [])\r\n const handleClick = useCallback((props: any) => {\r\n setCancelRow(props?.row?.original)\r\n handleDelete(props?.row?.original?.idEvent)\r\n }, [])\r\n\r\n const RenderDeleteIcon = (props: any) => {\r\n const renderDelete =\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Completed.toLowerCase() ||\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Cancelled.toLowerCase() ||\r\n (_userRole?.toLowerCase() === ROLE_CONSTANTS.WisUser.toLowerCase() &&\r\n new Date() >= new Date(props.row.original.scheduledDateTime)) || \r\n _userRole?.toLowerCase() === ROLE_CONSTANTS.RegionalUser.toLowerCase()\r\n const renderDeleteData =\r\n (_userRole?.toLowerCase() !== ROLE_CONSTANTS.WisUser.toLowerCase() &&\r\n new Date(props.row.original.scheduledDateTime) <=\r\n DateFunction(resDate)) ||\r\n props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Cancelled.toLowerCase() ||\r\n _userRole?.toLowerCase() === ROLE_CONSTANTS.RegionalUser.toLowerCase()\r\n return (\r\n \r\n handleClick(props)}\r\n />\r\n \r\n )\r\n }\r\n const resProcess = (temp: any) => {\r\n for (let i = 0; i < temp.data.length; i++) {\r\n temp.data[i].isTime = temp?.data[i]?.scheduledDateTime\r\n }\r\n // filter the data if region is assigned\r\n if (\r\n regionalGroupsInfo?.length > 0 &&\r\n _userRole?.toLowerCase() === ROLE_CONSTANTS.RegionalUser.toLowerCase()\r\n ) {\r\n temp.data = filterRegionalUserData(temp.data, regionalGroupsInfo)\r\n }\r\n setSchedule(temp.data)\r\n setScheduleInParent(temp.data)\r\n setUserAccount(temp.data)\r\n\r\n const sortedTableData = sortTableData(\r\n temp.data?.filter(f =>\r\n (scheduleFilterForm?.eventStatus || []).includes(f.eventStatus)\r\n ),\r\n fieldConstants.SortOrder.ASC,\r\n fieldConstants.SortColumns.scheduledDateTime,\r\n fieldConstants.SortColumnType.Date\r\n )\r\n sendRenderedDataToParent(sortedTableData)\r\n\r\n setRenderData(sortedTableData)\r\n setSiteIds(temp.data.filter(i => !!i.siteId).map((c: any) => c.siteId))\r\n let configs: any = temp.data\r\n .filter(i => !!i.configName && !!i.configVersion)\r\n .map((c: any) => `${c.configName} - ${c.configVersion}`)\r\n setConfigNames(configs)\r\n let uniqConfigNames = filterAndSort(configs)\r\n dispatch(setConfigurationData(uniqConfigNames))\r\n setCountries(temp.data.map((c: any) => c.country))\r\n setStates(temp.data.map((c: any) => c.state))\r\n setStatus(temp.data.map((c: any) => c.eventStatus))\r\n // setCurrentDate(temp.data.map((c: any) => c.scheduledDateTime))\r\n // setStartDate(temp.data.map((c: any) => c.startDate))\r\n // setEndDate(temp.data.map((c: any) => c.endDate))\r\n setTimeout(() => {\r\n setLoading(false)\r\n }, timeOut)\r\n }\r\n\r\n const GetViewSchedule = () => {\r\n const payloadToAdd = selectedCustomerList.map((c: any) => c.idCustomer)\r\n setLoading(true)\r\n getLocationsByStore()\r\n .then(() => {\r\n scheduleService\r\n .getviewschedule(payloadToAdd)\r\n .then((temp: any) => {\r\n resProcess(temp)\r\n })\r\n\r\n .catch(_error => {\r\n setLoading(false)\r\n console.error(\"Schedule page error\", _error)\r\n })\r\n })\r\n .catch(err => {\r\n setLoading(false)\r\n console.error(\"Schedule page error\", err)\r\n })\r\n }\r\n\r\n const getLocationsByStore = () => {\r\n const customerIds = selectedCustomerList?.map(i => i.idCustomer)\r\n return new Promise((resolve, reject) => {\r\n settingsService\r\n .getLocationsByStore(customerIds)\r\n .then((temp: any) => {\r\n setStoreData(temp.data)\r\n let labels: any = []\r\n\r\n temp.data.forEach(i => {\r\n if (i.regionalGroup1Label)\r\n labels.push({ label: i.regionalGroup1Label, num: 1 })\r\n if (i.regionalGroup2Label)\r\n labels.push({ label: i.regionalGroup2Label, num: 2 })\r\n if (i.regionalGroup3Label)\r\n labels.push({ label: i.regionalGroup3Label, num: 3 })\r\n if (i.regionalGroup4Label)\r\n labels.push({ label: i.regionalGroup4Label, num: 4 })\r\n })\r\n setRegionLabels(labels)\r\n return resolve(true)\r\n })\r\n .catch(_error => {\r\n setLoading(false)\r\n console.error(\"Schedule page error\", _error)\r\n return reject(_error)\r\n })\r\n })\r\n }\r\n\r\n const handleEdit = record => {\r\n let encryptedId: any = encryptUrlParams(record.idEvent)\r\n dispatch(setCustomerForOperation(record.idCustomer))\r\n history.push(`/schedule/edit/${encryptedId}`)\r\n }\r\n const handleEditKeyUp = useCallback((e: any, record: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n handleEdit(record)\r\n }\r\n }, [])\r\n\r\n const handleShare = record => {\r\n let encryptedId: any = encryptUrlParams(record.idEvent)\r\n dispatch(setCustomerForOperation(record.idCustomer))\r\n history.push(`/schedule/eventdetails/${encryptedId}`, {\r\n eventDetails: record\r\n })\r\n }\r\n\r\n const openInNewTab = url => {\r\n window.open(url, \"_blank\", \"noreferrer\")\r\n }\r\n\r\n const handleShipping = record => {\r\n let shipURL: any =\r\n record.shipTrackingNo.length > 12\r\n ? SHIPPING_URL.UPS_URL\r\n : SHIPPING_URL.FEDEX_URL\r\n openInNewTab(shipURL + record.shipTrackingNo)\r\n }\r\n\r\n const removeFromFetching = id => {\r\n setFetchingPassword(fetchingPassword.filter(f => !id))\r\n }\r\n\r\n const handleRedicrect = record => {\r\n const fetching = [...fetchingPassword, record.idEvent]\r\n setFetchingPassword(fetching)\r\n dispatch(setCustomerForOperation(record.idCustomer))\r\n scheduleService\r\n .getEventPasswords(record.idEvent)\r\n .then(res => {\r\n const decyptedResp = JSON.parse(decrypt(res.data))\r\n\r\n record[\"password\"] = encrypt(decyptedResp?.SupervisorPassword)\r\n removeFromFetching(record.idEvent)\r\n handleSuperVisorPortalRedirect(record, \"schedule\")\r\n })\r\n .catch(err => {\r\n removeFromFetching(record.idEvent)\r\n })\r\n }\r\n\r\n const renderCompanyCell = idCustomer => {\r\n let customer: any = selectedCustomerList.find(\r\n (c: any) => c.idCustomer == idCustomer\r\n )\r\n if (customer) {\r\n return (\r\n
    \r\n \r\n {customer.companyName}\r\n
    \r\n )\r\n }\r\n return \"NA\"\r\n }\r\n const refreshSchedule = () => {\r\n GetViewSchedule()\r\n }\r\n const deleteSchedule = (row: any) => {\r\n setIsDeleteOpen(true)\r\n setDeleteRow(row)\r\n }\r\n\r\n const scheduleActionsResponse = (res: any, msg: string) => {\r\n if (res && res.status === resStatus) {\r\n setAlertVisible(true)\r\n setAlertContent(msg)\r\n refreshSchedule()\r\n setTimeout(() => {\r\n setAlertVisible(false)\r\n }, 1000)\r\n }\r\n }\r\n\r\n const callbackDeleteConfirmation = useCallback(\r\n (confirmationResp: boolean) => {\r\n if (confirmationResp) {\r\n scheduleService\r\n .deleteschedule(deleteRow)\r\n .then(resp => {\r\n setIsDeleteOpen(false)\r\n scheduleActionsResponse(\r\n resp,\r\n getTranslations(t, Translates.Schedule_Cancelled_Successfully)\r\n )\r\n })\r\n .catch(err => err)\r\n } else {\r\n setIsDeleteOpen(confirmationResp)\r\n }\r\n },\r\n [deleteRow]\r\n )\r\n\r\n const setContent = () => {\r\n const today: any = new Date()\r\n const scheduledDate: any = new Date(cancelRow?.scheduledDateTime)\r\n const differenceInMilliseconds: any = scheduledDate - today\r\n const daysBetween = millisecondsToDays(differenceInMilliseconds)\r\n if (\r\n _userRole?.toLowerCase() === ROLE_CONSTANTS.WisUser.toLowerCase() &&\r\n daysBetween <= resDate\r\n ) {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {`${getTranslations(\r\n t,\r\n Translates.Devices_may_have_already_shipped_Confirm_cancellation_with\r\n )} ${moment(scheduledDate).format(\"MM/DD/YYYY\")}?`}\r\n

    \r\n
    \r\n )\r\n } else {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n \r\n {getTranslations(\r\n t,\r\n Translates.This_action_will_cancel_this_event_Do_you_wish_to_proceed\r\n )}{\" \"}\r\n \r\n

    \r\n
    \r\n )\r\n }\r\n }\r\n\r\n const getStatusColor = eventStatus => {\r\n if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Completed.toLowerCase()\r\n ) {\r\n return \"success\"\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.InProgress.toLowerCase()\r\n ) {\r\n return \"warning\"\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.NotStarted.toLowerCase()\r\n ) {\r\n return \"not-started\"\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Cancelled.toLowerCase() ||\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Locked.toLowerCase() ||\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.LOCK_IN_PROGRESS.toLowerCase()\r\n ) {\r\n return \"error\"\r\n } else {\r\n return \"warning\"\r\n }\r\n }\r\n const getIcon = eventStatus => {\r\n if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Completed.toLowerCase()\r\n ) {\r\n return (\r\n <>\r\n {\" \"}\r\n {getTranslations(t, Translates.Closed)}\r\n \r\n )\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.InProgress.toLowerCase()\r\n ) {\r\n return (\r\n <>\r\n {\" \"}\r\n \r\n {getTranslations(t, Translates.In_Progress)}{\" \"}\r\n \r\n )\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Cancelled.toLowerCase()\r\n ) {\r\n return (\r\n <>\r\n \r\n {getTranslations(t, Translates.Cancelled)}{\" \"}\r\n \r\n )\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Locked.toLowerCase()\r\n ) {\r\n return (\r\n <>\r\n \r\n {getTranslations(t, Translates.Locked)}{\" \"}\r\n \r\n )\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.LOCK_IN_PROGRESS.toLowerCase()\r\n ) {\r\n return (\r\n <>\r\n \r\n {getTranslations(t, Translates.Lock_in_progress)}{\" \"}\r\n \r\n )\r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.NotStarted.toLowerCase()\r\n ) {\r\n return <>{getTranslations(t, Translates.Not_Started)} \r\n } else if (\r\n eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.SOFT_CLOSE.toLowerCase()\r\n ) {\r\n return <>{getTranslations(t, Translates.Soft_Close)} \r\n }\r\n }\r\n const displayConfigName = (props: any) => {\r\n return (\r\n \r\n {props.value ? props.value : \"-\"}{\" \"}\r\n {props.row.original.configVersion\r\n ? `(${props.row.original.configVersion})`\r\n : \"\"}\r\n \r\n )\r\n }\r\n const getFullAddress = (props: any) => {\r\n return (\r\n

    \r\n {props.row.original.address1 ? props.row.original.address1 : \"-\"},\r\n
    \r\n {props.row.original.address2 ? props.row.original.address2 + \",\" : null}\r\n {props.row.original.address2 ?
    : null}\r\n {props.row.original.address3 ? props.row.original.address3 + \",\" : null}\r\n {props.row.original.address3 ?
    : null}\r\n {props.row.original.city ? props.row.original.city : \"-\"}, \r\n {props.row.original.state ? props.row.original.state : \"-\"},
    \r\n {props.row.original.postalCode ? props.row.original.postalCode : \"-\"}\r\n , \r\n {props.row.original.country ? props.row.original.country : \"-\"}\r\n

    \r\n )\r\n }\r\n const getAriaLabel = props => {\r\n let addressTool: any = []\r\n addressTool.push(\r\n props.row.original.address1 ? props.row.original.address1 : \"-\"\r\n )\r\n addressTool.push(\r\n props.row.original.address2 ? props.row.original.address2 : \"-\"\r\n )\r\n addressTool.push(\r\n props.row.original.address3 ? props.row.original.address3 : \"-\"\r\n )\r\n addressTool.push(props.row.original.city ? props.row.original.city : \"-\")\r\n addressTool.push(props.row.original.state ? props.row.original.state : \"-\")\r\n addressTool.push(\r\n props.row.original.country ? props.row.original.country : \"-\"\r\n )\r\n addressTool.push(\r\n props.row.original.postalCode ? props.row.original.postalCode : \"-\"\r\n )\r\n addressTool.join(\" , \")\r\n return addressTool.toString()\r\n }\r\n const getAddress = (props: any) => {\r\n return (\r\n

    \r\n {props.row.original.city ? props.row.original.city : \"-\"}, \r\n {props.row.original.state ? props.row.original.state : \"-\"}\r\n

    \r\n )\r\n }\r\n const onSelectChange = (event, props: any) => {\r\n if (!event.currentTarget.checked) {\r\n setSelectAllCheckbox(false)\r\n setEventIds(eventIds?.filter(id => id !== props.row.original.idEvent))\r\n } else {\r\n const temp = [\r\n ...eventIds.filter(f => f !== \"-1\"),\r\n props.row.original.idEvent\r\n ]\r\n\r\n setEventIds(temp)\r\n if (temp.length === renderData.length) {\r\n setSelectAllCheckbox(true)\r\n }\r\n }\r\n }\r\n\r\n const handleSelectAllHeader = e => {\r\n if (e.target.checked) {\r\n const enabledEventIds = renderData\r\n .filter(item => showCheckbox({ row: { original: item } }))\r\n .map(item => item.idEvent)\r\n setSelectAllCheckbox(true)\r\n setEventIds(enabledEventIds)\r\n } else {\r\n setSelectAllCheckbox(false)\r\n setEventIds([])\r\n }\r\n }\r\n // For not started and future events only we need to enable checkbox\r\n const showCheckbox = (props: any) => {\r\n return (\r\n props?.row?.original?.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.NotStarted.toLowerCase() &&\r\n new Date(props?.row?.original.scheduledDateTime) >= DateFunction(0)\r\n )\r\n }\r\n const showAllCheckbox = () => {\r\n const isEnable = renderData?.some(\r\n f =>\r\n f?.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.NotStarted.toLowerCase() &&\r\n new Date(f?.scheduledDateTime) >= DateFunction(0)\r\n )\r\n return isEnable\r\n }\r\n\r\n let customSort = (rowA, rowB) => {\r\n const valueA: any = stripSecondsAndMilliseconds(\r\n rowA.original.scheduledDateTime\r\n )\r\n const valueB: any = stripSecondsAndMilliseconds(\r\n rowB.original.scheduledDateTime\r\n )\r\n\r\n // Sort by date\r\n const result = valueA - valueB\r\n\r\n // If dates are equal, sort by siteId in ascending order\r\n if (result === 0) {\r\n const a = parseInt(rowA.values[\"siteId\"])\r\n const b = parseInt(rowB.values[\"siteId\"])\r\n return a - b\r\n } else {\r\n return result\r\n }\r\n }\r\n\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n // For Schedule page we dont require select all checkbox in grid header\r\n // Header: actionIDConfig !== 0 && (\r\n Header: (\r\n }\r\n title=\"\"\r\n />\r\n ),\r\n accessor: \"s\", // accessor is the \"key\" in the data\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 10,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n return (\r\n \r\n onSelectChange(e, props)}\r\n checkedIcon={}\r\n />\r\n }\r\n />\r\n \r\n )\r\n }\r\n },\r\n {\r\n Header: \"CUSTOMER\",\r\n accessor: \"idCustomer\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 150,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n return renderCompanyCell(props.value)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.DATE),\r\n accessor: \"scheduledDateTime\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n \"data-testid\": \"customerHeader\",\r\n setWidth: 150,\r\n columnType: \"schedule\",\r\n sortType: customSort,\r\n Cell: props => {\r\n return // event date should not convert to local time\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Time_Zone),\r\n accessor: \"stdTimeZone\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 150,\r\n columnType: \"schedule\",\r\n sortType: customSort,\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Site_ID),\r\n accessor: \"siteId\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 200,\r\n columnType: \"schedule\",\r\n sortType: customSortSiteIds,\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ADDRESS),\r\n accessor: \"address1\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 300,\r\n columnType: \"schedule\",\r\n Cell: props => (\r\n \r\n {getAddress(props)}\r\n \r\n )\r\n },\r\n {\r\n Header: getTranslations(t, Translates.NO_OF_DEVICES),\r\n accessor: \"numberofDevices\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 120,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n return props.value ?? \"-\"\r\n }\r\n },\r\n\r\n {\r\n Header: getTranslations(t, Translates.REGION),\r\n accessor: \"region1\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 250,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n if (Array.isArray(storeData)) {\r\n const customerDetail = storeData.find(\r\n i => i.idCustomer === props?.row?.original?.idCustomer\r\n )\r\n return customerDetail\r\n ? getRegionalGroups(\r\n customerDetail.regionalGroup1Label,\r\n customerDetail.regionalGroup2Label,\r\n customerDetail.regionalGroup3Label,\r\n customerDetail.regionalGroup4Label,\r\n props?.row?.original\r\n )\r\n : null\r\n } else {\r\n return null\r\n }\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.CONFIG_NAME),\r\n accessor: \"configName\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 220,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n return displayConfigName(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.RESERVATION),\r\n accessor: \"reservationName\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 220,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.EVENT_STATUS),\r\n accessor: \"eventStatus\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 230,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n return (\r\n
    \r\n {getIcon(props.value)}\r\n
    \r\n )\r\n }\r\n },\r\n\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 200,\r\n columnType: \"schedule\",\r\n Cell: props => {\r\n return (\r\n \r\n {renderRedirectIcon(props)}\r\n {renderShareIcon(props)}\r\n {renderEditIcon(props)}\r\n {checkNullEmpty(props.row.original.shipTrackingNo) ? (\r\n \r\n handleShipping(props.row.original)}\r\n />\r\n \r\n ) : null}\r\n {props.row.original.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.Completed.toLowerCase() ? (\r\n \r\n handleConciseView(props.row.original)}\r\n />\r\n \r\n ) : null}\r\n {RenderDeleteIcon(props)}\r\n \r\n )\r\n }\r\n }\r\n ],\r\n [\r\n setSchedule,\r\n deleteRow,\r\n renderData,\r\n t,\r\n eventIds.length,\r\n selectAllCheckbox,\r\n eventIds\r\n ]\r\n )\r\n\r\n const getColumns = () => {\r\n if (selectedCustomerList && selectedCustomerList.length > 1) {\r\n return columnsData\r\n }\r\n if (columnsData[1].Header === \"CUSTOMER\") {\r\n columnsData.splice(1, 1)\r\n }\r\n return columnsData\r\n }\r\n\r\n const cancelClick = () => {\r\n hideFilter()\r\n }\r\n\r\n const getAppliedValues = filteredData => {\r\n sendFilterDataToParent(filteredData)\r\n if (filteredData.siteIds && filteredData.siteIds.length > 0) {\r\n filters.push({\r\n field: \"siteId\",\r\n value: filteredData.siteIds,\r\n func: \"equalString\"\r\n })\r\n }\r\n if (filteredData.configNames && filteredData.configNames.length > 0) {\r\n filters.push({\r\n field: \"configName\",\r\n value: filteredData.configNames,\r\n func: \"configEqualString\"\r\n })\r\n }\r\n if (filteredData.country && filteredData.country.length > 0) {\r\n filters.push({\r\n field: \"country\",\r\n value: filteredData?.country,\r\n func: \"equalString\"\r\n })\r\n }\r\n if (filteredData.state && filteredData.state.length > 0) {\r\n filters.push({\r\n field: \"state\",\r\n value: filteredData?.state,\r\n func: \"equalString\"\r\n })\r\n }\r\n // if (filteredData.currentDate !== \"\") {\r\n // filters.push({\r\n // field: \"scheduledDateTime\",\r\n // value: moment(filteredData?.currentDate)?.format(\"YYYY-MM-DD\"),\r\n // func: \"equalDate\"\r\n // })\r\n // }\r\n if (filteredData.startDate !== \"\") {\r\n filters.push({\r\n field: \"scheduledDateTime\",\r\n value: moment(filteredData?.startDate)?.format(\"YYYY-MM-DD\"),\r\n func: \"greaterAndEqual\"\r\n })\r\n if (filteredData.endDate !== \"\") {\r\n filters.push({\r\n field: \"scheduledDateTime\",\r\n value: moment(filteredData?.endDate)?.format(\"YYYY-MM-DD\"),\r\n func: \"lesserAndEqual\"\r\n })\r\n }\r\n }\r\n if (filteredData.eventStatus && filteredData.eventStatus.length > 0) {\r\n filters.push({\r\n field: \"eventStatus\",\r\n value: filteredData?.eventStatus,\r\n func: \"equals\"\r\n })\r\n }\r\n if (filteredData.region1 && filteredData.region1.length > 0) {\r\n filters.push({\r\n field: \"region1\",\r\n value: filteredData?.region1,\r\n func: \"equalString\"\r\n })\r\n }\r\n if (filteredData.region2 && filteredData.region2.length > 0) {\r\n filters.push({\r\n field: \"region2\",\r\n value: filteredData?.region2,\r\n func: \"equalString\"\r\n })\r\n }\r\n if (filteredData.region3 && filteredData.region3.length > 0) {\r\n filters.push({\r\n field: \"region3\",\r\n value: filteredData?.region3,\r\n func: \"equalString\"\r\n })\r\n }\r\n if (filteredData.region4 && filteredData.region4.length > 0) {\r\n filters.push({\r\n field: \"region4\",\r\n value: filteredData?.region4,\r\n func: \"equalString\"\r\n })\r\n }\r\n\r\n filtered = filterByHelper(filters, schedule, {\r\n labels: [...regionLabels],\r\n path: [\"userRoles\", \"userRegions\"]\r\n })\r\n\r\n const sortedTableData = sortTableData(\r\n filtered,\r\n fieldConstants.SortOrder.ASC,\r\n fieldConstants.SortColumns.scheduledDateTime,\r\n fieldConstants.SortColumnType.Date\r\n )\r\n\r\n sendRenderedDataToParent(sortedTableData)\r\n\r\n setRenderData(sortedTableData)\r\n\r\n hideFilter()\r\n }\r\n\r\n const handleUpdateConfig = () => {\r\n const _temp = renderData?.filter(\r\n (m: any) =>\r\n m?.eventStatus?.toLowerCase() ===\r\n SCHEDULE_STATUS_CONSTANTS.NotStarted.toLowerCase() &&\r\n new Date(m.scheduledDateTime) >= DateFunction(0)\r\n )\r\n let encryptedId: any = encryptUrlParams(eventIds)\r\n history.push(`/updateConfiguration/${encryptedId}`, {\r\n futureEventCount: _temp?.length,\r\n actionIdConfig: actionIdConfig ? actionIdConfig : 0,\r\n isInstall: isInstall ? isInstall : false\r\n })\r\n }\r\n const checkUpdateConfigBtn = useCallback(() => {\r\n if (actionIdConfig === 0 && !eventIds?.length) {\r\n return true\r\n }\r\n if (actionIdConfig !== 0 && eventIds?.includes(\"-1\")) {\r\n return true\r\n }\r\n if (\r\n actionIdConfig !== 0 &&\r\n ((eventIds?.length === 1 && eventIds?.includes(\"-1\")) ||\r\n eventIds?.length === 0)\r\n ) {\r\n return true\r\n } \r\n if (_userRole?.toLowerCase() === ROLE_CONSTANTS.RegionalUser.toLowerCase()){\r\n return true\r\n }\r\n else {\r\n return false\r\n }\r\n }, [actionIdConfig, eventIds])\r\n const displayGrid = () => {\r\n if (schedule && schedule.length > 0) {\r\n return (\r\n <>\r\n
    \r\n \r\n {getTranslations(t, Translates.UPDATE_CONFIGURATION)}\r\n \r\n
    \r\n \r\n \r\n \r\n\r\n {isDeleteOpen && (\r\n \r\n )}\r\n {isDialog && (\r\n {\r\n setIsDialog(false)\r\n }}\r\n title={`${getTranslations(t, Translates.CANCELLED)}`}\r\n content={setContent}\r\n custref={{}}\r\n confirmButtonText={getTranslations(t, Translates.CLOSE)}\r\n >\r\n )}\r\n \r\n \r\n \r\n )\r\n } else if (schedule && schedule.length === 0) {\r\n return \r\n } else {\r\n return <>\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {loading ? : displayGrid()}\r\n {alertVisible ? (\r\n }\r\n className=\"custom-alert top\"\r\n >\r\n \r\n {getTranslations(t, Translates.Success)}\r\n \r\n {alertContent}\r\n \r\n ) : null}\r\n {\r\n \r\n }\r\n \r\n )\r\n}\r\nexport default ScheduleDetails\r\n","import shortid from \"shortid\"\r\nimport { getBreadcrumbConfig } from \"../helper\"\r\nimport { setIfElseLayout, setLayout } from \"./layout.service\"\r\nimport {\r\n braces,\r\n functionTypes,\r\n sideBarItemKeys,\r\n SIDEBAR_ITEMS,\r\n utilTypes\r\n} from \"./LRConstants\"\r\nimport { decimalPositionDisplay } from \"../CountFields/Constants\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport { ruleEditorFunctions } from \"./LRConstants/functionNames\"\r\nimport {\r\n booleanError,\r\n booleanErrorMessage,\r\n sourceField\r\n} from \"./LRConstants/booleanFunctions\"\r\nimport {\r\n checkEntryMethodPreCount,\r\n currentFieldOptions,\r\n preCountDataOptions,\r\n sourceForAuditRecordLevelOptions,\r\n sourceForAuditTagLevelOptions\r\n} from \"./LRConstants/fieldOptions\"\r\n\r\nimport { Translates } from \"src/i18n/i18n\"\r\n// a little function to help us with reordering the result\r\nexport const reorder = (list, startIndex, endIndex) => {\r\n const result = Array.from(list)\r\n const [removed] = result.splice(startIndex, 1)\r\n result.splice(endIndex, 0, removed) // inserting task in new index\r\n\r\n return result\r\n}\r\n\r\nexport const remove = (arr, index) => [\r\n ...arr.slice(0, index),\r\n ...arr.slice(index + 1)\r\n]\r\n\r\nexport const insert = (arr, index, newItem) => {\r\n return [\r\n ...arr.slice(0, index),\r\n newItem,\r\n ...([functionTypes.If, functionTypes.Braces].includes(newItem?.function)\r\n ? [\r\n {\r\n id: newItem.id,\r\n type: \"row\",\r\n content: \")\",\r\n function: newItem?.function,\r\n block: \"ends\"\r\n }\r\n ]\r\n : []),\r\n ...arr.slice(index)\r\n ]\r\n}\r\n\r\nexport const handleMoveSidebarComponentIntoParent = (\r\n layout,\r\n splitDropZonePath,\r\n item\r\n) => {\r\n if (splitDropZonePath.length === 1) {\r\n const dropZoneIndex = Number(splitDropZonePath[0])\r\n return insert(layout, dropZoneIndex, item)\r\n }\r\n return layout\r\n}\r\n\r\nexport const ifElseToReadable = (layout: any, finalStr: string = \"\") => {\r\n if (ArrayConditionCheck(layout)) {\r\n let IfCondition: string = \"\"\r\n let BraceCondition: string = \"\"\r\n let withinBraceCondition: boolean = false\r\n layout.forEach((item, inx) => {\r\n if (\r\n [functionTypes.If, functionTypes.Braces].includes(item.function) &&\r\n typeof item.content === \"object\"\r\n ) {\r\n if ([functionTypes.If].includes(item.function)) {\r\n finalStr += item.function.toUpperCase() + \" \"\r\n\r\n IfCondition = item.condition\r\n } else {\r\n finalStr +=\r\n ([functionTypes.If].includes(layout[inx - 1].function)\r\n ? \"\"\r\n : IfCondition) + \" ( \"\r\n BraceCondition = item.condition\r\n withinBraceCondition = true\r\n }\r\n } else if (\r\n [functionTypes.Braces].includes(item.function) &&\r\n item.content === \")\"\r\n ) {\r\n finalStr += item.content + \" \"\r\n\r\n withinBraceCondition = false\r\n } else if (\r\n [functionTypes.If].includes(item.function) &&\r\n item.content === \")\"\r\n ) {\r\n finalStr = finalStr + \"\"\r\n } else if (\r\n item.function &&\r\n ![functionTypes.If, functionTypes.Braces].includes(item.function)\r\n ) {\r\n const LocCon = withinBraceCondition ? BraceCondition : IfCondition\r\n const locCondition =\r\n [functionTypes.If, functionTypes.Braces].includes(\r\n layout[inx - 1].function\r\n ) && typeof layout[inx - 1].content === \"object\"\r\n ? \"\"\r\n : LocCon\r\n finalStr += `${locCondition} ${\r\n item?.functionSource ? item.functionSource + \".\" : \"\"\r\n }${item.content} `\r\n\r\n if (ArrayConditionCheck(item.parameters)) {\r\n let params = item.parameters.filter(i => i || i === 0)\r\n params.forEach((element, inxE) => {\r\n //istanbul ignore next\r\n if (ArrayConditionCheck(element, false)) {\r\n finalStr += element.join(\",\") + \" \"\r\n } else {\r\n finalStr += element + \" \"\r\n }\r\n if (inxE !== params?.length - 1) {\r\n finalStr += \", \"\r\n }\r\n })\r\n }\r\n }\r\n })\r\n }\r\n return finalStr\r\n}\r\n\r\nconst all_functions = SIDEBAR_ITEMS.map((item, inx) =>\r\n item[Object.keys(item)[0]].map((item1, inx1) => item1)\r\n).reduce(function (pre, cur) {\r\n return pre.concat(cur)\r\n})\r\nexport const LookupConfigToEditor = (Instructions, isConditionOnly = false) => {\r\n let parentArray: any = []\r\n\r\n if (ArrayConditionCheck(Instructions)) {\r\n parentArray = FunctionConditionCheck(\r\n parentArray,\r\n Instructions,\r\n isConditionOnly\r\n )\r\n\r\n return parentArray\r\n }\r\n return []\r\n}\r\nconst FunctionConditionCheck = (\r\n parentArray,\r\n forEachArray,\r\n isConditionOnly = false\r\n) => {\r\n if (ArrayConditionCheck(forEachArray)) {\r\n if (!isConditionOnly) {\r\n forEachArray.forEach(item1 => {\r\n if ([functionTypes.If].includes(item1.Function)) {\r\n const id_gen = shortid.generate()\r\n parentArray = IfConditionFunction(parentArray, item1, id_gen)\r\n parentArray = IfTrueFunction(parentArray, item1)\r\n parentArray = [\r\n ...parentArray,\r\n {\r\n function: functionTypes.Else,\r\n id: id_gen,\r\n isExpandMore: true,\r\n content: functionTypes.Else\r\n }\r\n ]\r\n parentArray = ElseFunction(parentArray, item1)\r\n parentArray = [\r\n ...parentArray,\r\n {\r\n function: functionTypes.Endif,\r\n id: id_gen,\r\n content: functionTypes.Endif\r\n }\r\n ]\r\n } else {\r\n parentArray = NotIfFunction(parentArray, item1)\r\n }\r\n })\r\n } else {\r\n const id_gen = shortid.generate()\r\n parentArray = IfConditionFunction(\r\n parentArray,\r\n { Function: functionTypes.If, Condition: forEachArray },\r\n id_gen\r\n )\r\n parentArray = [\r\n ...parentArray,\r\n {\r\n function: functionTypes.Else,\r\n id: id_gen,\r\n isExpandMore: true,\r\n content: functionTypes.Else\r\n },\r\n {\r\n function: functionTypes.Endif,\r\n id: id_gen,\r\n content: functionTypes.Endif\r\n }\r\n ]\r\n }\r\n }\r\n return parentArray\r\n}\r\nconst IfConditionFunction = (parentArray, configItem, id_gen) => {\r\n let nestedArray: any = []\r\n all_functions.forEach(item1 => {\r\n if (configItem.Function === item1.function) {\r\n nestedArray = BraceFunctionStartToCall(\r\n nestedArray,\r\n item1,\r\n configItem.Condition,\r\n item1.function\r\n )\r\n return true\r\n }\r\n })\r\n parentArray.push({\r\n function: configItem.Function,\r\n array: nestedArray,\r\n id: id_gen,\r\n isExpandMore: true,\r\n content: ifElseToReadable(nestedArray)\r\n })\r\n return parentArray\r\n}\r\nconst IfTrueFunction = (parentArray, configItem) => {\r\n if (ArrayConditionCheck(configItem.IfTrue)) {\r\n parentArray = FunctionConditionCheck(parentArray, configItem.IfTrue)\r\n }\r\n return parentArray\r\n}\r\nconst ElseFunction = (parentArray, configItem) => {\r\n if (ArrayConditionCheck(configItem.Else)) {\r\n parentArray = FunctionConditionCheck(parentArray, configItem.Else)\r\n }\r\n return parentArray\r\n}\r\nconst BraceFunctionStartToCall = (\r\n nestedArray,\r\n item,\r\n forEachArray,\r\n functionType\r\n) => {\r\n if (ArrayConditionCheck(forEachArray)) {\r\n const id_gen = shortid.generate()\r\n forEachArray.forEach((item1, inx1) => {\r\n nestedArray = BraceFunction(\r\n nestedArray,\r\n item1,\r\n item,\r\n functionType,\r\n id_gen\r\n )\r\n if ([\"OR\", \"AND\"].includes(forEachArray[inx1 - 1])) {\r\n nestedArray.push({\r\n ...item,\r\n ...{\r\n function: functionType,\r\n label: functionType,\r\n isExpandMore: true,\r\n content: \")\",\r\n type: \"row\",\r\n id: id_gen\r\n }\r\n })\r\n }\r\n })\r\n }\r\n return nestedArray\r\n}\r\nconst BraceFunction = (nestedArray, configItem, item, type, id_gen) => {\r\n const funcType =\r\n type === functionTypes.If ? functionTypes.If : functionTypes.Braces\r\n if ([\"OR\", \"AND\"].includes(configItem)) {\r\n nestedArray.push({\r\n ...item,\r\n ...{\r\n function: funcType,\r\n label: funcType,\r\n condition: configItem,\r\n content: {},\r\n type: \"row\",\r\n id: id_gen\r\n }\r\n })\r\n } else if (ArrayConditionCheck(configItem)) {\r\n nestedArray = BraceFunctionStartToCall(\r\n nestedArray,\r\n item,\r\n configItem,\r\n functionTypes.Braces\r\n )\r\n } else if (\r\n typeof configItem === \"object\" &&\r\n !ArrayConditionCheck(configItem)\r\n ) {\r\n nestedArray = NotIfFunction(nestedArray, configItem)\r\n }\r\n\r\n return nestedArray\r\n}\r\nconst NotIfFunction = (parentArray, configItem) => {\r\n const lastIndex = configItem?.Function?.lastIndexOf(\".\")\r\n const functionSource = configItem?.Function?.substring(0, lastIndex)\r\n const functionName = configItem?.Function?.substring(lastIndex + 1)\r\n\r\n all_functions.forEach(item => {\r\n if (item?.function === functionName) {\r\n parentArray.push({\r\n ...item,\r\n ...{\r\n id: shortid.generate(),\r\n parameters: configItem.Parameters,\r\n type: \"row\",\r\n ...(configItem?.OnFail && {\r\n OnFail: configItem?.OnFail,\r\n OnFailMessage: configItem?.OnFailMessage\r\n }),\r\n ...(functionSource && {\r\n functionSource: functionSource,\r\n functionStore: configItem?.Function\r\n })\r\n }\r\n })\r\n return true\r\n }\r\n })\r\n\r\n return parentArray\r\n}\r\nconst ArrayConditionCheck = (DataArray, isEmptyCheck = true) => {\r\n if (isEmptyCheck) {\r\n return DataArray && Array.isArray(DataArray) && DataArray.length\r\n }\r\n return DataArray && Array.isArray(DataArray)\r\n}\r\nexport const margin_left_find_for_row = (row, margin_left) => {\r\n const r_c_type_object = typeof row?.content === \"object\"\r\n const r_c__if_array = row?.array ? true : false\r\n const r_c_close_brace = row?.content === \")\"\r\n\r\n const if_start =\r\n row?.function === functionTypes.If && (r_c_type_object || r_c__if_array)\r\n const if_end =\r\n (row?.function === functionTypes.If && r_c_close_brace) ||\r\n row?.function === functionTypes.Endif\r\n const brace_start = row?.function === functionTypes.Braces && r_c_type_object\r\n const brace_end = row?.function === functionTypes.Braces && r_c_close_brace\r\n\r\n if (if_start || brace_start) {\r\n margin_left += 1\r\n }\r\n if (if_end || brace_end) {\r\n margin_left -= 1\r\n }\r\n return {\r\n ml: margin_left,\r\n start: if_start || brace_start || row?.function === functionTypes.Else\r\n }\r\n}\r\n\r\n//editor to config conversion\r\n\r\nexport function LookupEditorToConfig(lookup) {\r\n if (ArrayConditionCheck(lookup)) {\r\n let overAllArray: any = []\r\n let IfTrueCount: number = 0\r\n let IfTrueCountMax: number = 0\r\n lookup.forEach(obj => {\r\n if (\r\n obj.function !== functionTypes.If &&\r\n obj.function !== functionTypes.Else &&\r\n obj.function !== functionTypes.Endif\r\n ) {\r\n let func = obj.function\r\n let params = obj.parameters\r\n const locFucObject: any = {\r\n Function:\r\n obj?.functionType === ruleEditorFunctions.booleanFn &&\r\n obj.functionStore\r\n ? obj.functionStore\r\n : func,\r\n ...(params?.length > 0 && { Parameters: params }),\r\n ...(obj?.functionType === ruleEditorFunctions.booleanFn &&\r\n obj?.OnFail && {\r\n OnFail: obj?.OnFail,\r\n OnFailMessage: obj?.OnFailMessage\r\n })\r\n }\r\n overAllArray.push(locFucObject)\r\n } else if (\r\n obj.function === functionTypes.If &&\r\n obj.array &&\r\n Array.isArray(obj.array)\r\n ) {\r\n IfTrueCount++\r\n if (IfTrueCount > IfTrueCountMax) {\r\n IfTrueCountMax = IfTrueCount\r\n }\r\n overAllArray.push(`IfCondition-${IfTrueCount}`)\r\n let ifElseAr = obj.array\r\n let ifElseFunc = obj.function\r\n let ifElseObj: any = {}\r\n ifElseObj = generateIfElseObj(ifElseAr, ifElseFunc)\r\n const { Condition } = ifElseObj\r\n let finalConfigObj = generateConfigObj(Condition)\r\n ifElseObj = { ...ifElseObj, ...{ Condition: finalConfigObj } }\r\n overAllArray.push(ifElseObj)\r\n overAllArray.push(`IfTrue-${IfTrueCount}`)\r\n } else if (obj.function === functionTypes.Else) {\r\n overAllArray.push(`-IfTrue-${IfTrueCount}`)\r\n overAllArray.push(`Else-${IfTrueCount}`)\r\n } else if (obj.function === functionTypes.Endif) {\r\n overAllArray.push(`-Else-${IfTrueCount}`)\r\n overAllArray.push(`-IfCondition-${IfTrueCount}`)\r\n IfTrueCount--\r\n }\r\n })\r\n return overAllRecurObj(overAllArray, IfTrueCountMax)\r\n }\r\n return []\r\n}\r\n\r\nfunction generateIfElseObj(arr, func) {\r\n let ifElseInstructions = { Function: func, Condition: [] }\r\n const { Condition }: { Condition: any } = ifElseInstructions\r\n let updatedArr: any = []\r\n let count = 0\r\n\r\n for (let row of arr) {\r\n if (row.function === functionTypes.If && row.content !== \")\") {\r\n Condition.push(row.condition)\r\n } else if (row.function === functionTypes.Braces && row.content !== \")\") {\r\n updatedArr.push(row.condition)\r\n count++\r\n updatedArr.push(count)\r\n } else if (row.content === \")\" && count >= 1) {\r\n updatedArr.push(count * -1)\r\n count--\r\n } else if (row.function !== functionTypes.Braces && row.content !== \")\") {\r\n updatedArr.push({\r\n Function:\r\n row?.functionType === ruleEditorFunctions.booleanFn &&\r\n row?.functionStore\r\n ? row.functionStore\r\n : row?.function,\r\n Parameters: row.parameters\r\n })\r\n }\r\n }\r\n Condition.push(updatedArr)\r\n return ifElseInstructions\r\n}\r\n\r\nfunction generateConfigObj(ifElseCond) {\r\n let ConfigConditions: any = []\r\n ifElseCond.forEach(data => {\r\n if (Array.isArray(data)) {\r\n let count = getCount(data)\r\n let innerObj = recurObj(data, count)\r\n ConfigConditions.push(innerObj)\r\n } else {\r\n ConfigConditions.push(data)\r\n }\r\n })\r\n return ConfigConditions\r\n}\r\n\r\nfunction getCount(arr) {\r\n let maxCount = 0\r\n for (let val of arr) {\r\n if (typeof val === \"number\") {\r\n maxCount = Math.max(maxCount, val)\r\n }\r\n }\r\n return maxCount\r\n}\r\n\r\nfunction recurObj(arr, initCount) {\r\n if (initCount === 0) return arr\r\n\r\n let conditionWhileLoop: boolean = true\r\n while (conditionWhileLoop) {\r\n let startIndex = arr.indexOf(initCount)\r\n if (startIndex !== -1) {\r\n let endIndex = arr.indexOf(initCount * -1)\r\n let sliceArr = arr.slice(startIndex + 1, endIndex)\r\n arr.splice(startIndex, endIndex - startIndex + 1, sliceArr)\r\n } else {\r\n conditionWhileLoop = false\r\n }\r\n }\r\n\r\n return recurObj(arr, --initCount)\r\n}\r\n\r\nfunction overAllRecurObj(arr, initCount) {\r\n if (initCount === 0) return arr\r\n\r\n let conditionWhileLoop: boolean = true\r\n let newArr: any = arr\r\n while (conditionWhileLoop) {\r\n let conditionStartIndex = newArr.indexOf(`IfCondition-${initCount}`)\r\n if (conditionStartIndex !== -1) {\r\n let conditionEndIndex = newArr.indexOf(`-IfCondition-${initCount}`)\r\n let IfTrueStartIndex = newArr.indexOf(`IfTrue-${initCount}`)\r\n let IfTrueEndIndex = newArr.indexOf(`-IfTrue-${initCount}`)\r\n let sliceArr = newArr.slice(IfTrueStartIndex + 1, IfTrueEndIndex)\r\n if (sliceArr.length) {\r\n newArr[conditionStartIndex + 1].IfTrue = sliceArr\r\n }\r\n\r\n let ElseStartIndex = newArr.indexOf(`Else-${initCount}`)\r\n let ElseEndIndex = newArr.indexOf(`-Else-${initCount}`)\r\n sliceArr = newArr.slice(ElseStartIndex + 1, ElseEndIndex)\r\n if (sliceArr.length) {\r\n newArr[conditionStartIndex + 1].Else = sliceArr\r\n }\r\n\r\n newArr = newArr.filter(\r\n (j, i) =>\r\n !(\r\n (IfTrueStartIndex <= i && i <= IfTrueEndIndex) ||\r\n (ElseStartIndex <= i && i <= ElseEndIndex) ||\r\n [conditionStartIndex, conditionEndIndex].includes(i)\r\n )\r\n )\r\n } else {\r\n conditionWhileLoop = false\r\n }\r\n }\r\n\r\n return overAllRecurObj(newArr, --initCount)\r\n}\r\n\r\nexport function getAllIndexes(arr, val, arrayOfObject, key) {\r\n let indexes: number[] = []\r\n for (let i = 0; i < arr.length; i++) {\r\n if (arrayOfObject) {\r\n if (arr[i][key] === val) {\r\n indexes.push(i)\r\n }\r\n } else {\r\n if (arr[i] === val) {\r\n indexes.push(i)\r\n }\r\n }\r\n }\r\n return indexes\r\n}\r\nconst functionNamesInUpperCase = [\"IF\", \"ELSE\"]\r\nexport const prepareIfTextJsx = (content: string) => {\r\n let fNames = Object.keys(functionTypes)\r\n let uNames = Object.keys(utilTypes)\r\n let contentSplit: any = content.split(\" \")\r\n contentSplit = contentSplit.map(c => {\r\n if (fNames.includes(c) || functionNamesInUpperCase.includes(c))\r\n return {c} \r\n else if (uNames.includes(c))\r\n return {c} \r\n else return {c} \r\n })\r\n return <>{contentSplit}\r\n}\r\nconst tabSpaces: number = 30\r\nexport const renderRowLayoutChildren = data => {\r\n let fn = data?.content\r\n\r\n let isRedColorText = [\r\n functionTypes.If,\r\n functionTypes.Else,\r\n functionTypes.Endif,\r\n functionTypes.Braces\r\n ].includes(data?.function)\r\n let content = isRedColorText\r\n ? data.content\r\n : data?.parameters\r\n ?.filter(i => i || i === 0 || i === false)\r\n ?.map(j => {\r\n let param = j\r\n if (Array.isArray(j) && (j[0]?.[\"en-us\"] || j[0]?.[\"en-us\"] === \"\")) {\r\n param = j[0]?.[\"en-us\"]\r\n }\r\n return param\r\n })\r\n .join(\",\")\r\n\r\n if (data?.functionType === ruleEditorFunctions.booleanFn) {\r\n if (data?.OnFail) {\r\n content = `${content}${content ? \",\" : \"\"}${data?.OnFail},${\r\n data?.OnFailMessage[0]?.[\"en-us\"]\r\n }`\r\n } else if (data?.functionSource) {\r\n fn = `${data?.functionSource ? data?.functionSource + \".\" : \"\"}${fn}`\r\n }\r\n }\r\n if (data?.function === functionTypes.If && data?.array && content) {\r\n content = prepareIfTextJsx(content)\r\n }\r\n let ml = data.ml ? Math.floor(data.ml * tabSpaces) : 0\r\n return (\r\n \r\n {!isRedColorText && (\r\n <>\r\n {fn} \r\n \r\n )}\r\n {content}\r\n \r\n )\r\n}\r\n\r\nexport const makeLayoutAllVariableEmpty = () => {\r\n setIfElseLayout([])\r\n setLayout([])\r\n}\r\n\r\nexport const getBreadcrumbPath = (storeId: number, t, nextPage = false) => {\r\n let componentName =\r\n storeId !== -1\r\n ? getTranslations(t, Translates.Edit_lookup_routines)\r\n : getTranslations(t, Translates.Create_lookup_routines)\r\n\r\n const { bConfig } = getBreadcrumbConfig({\r\n landingName: getTranslations(t, Translates.Lookup_routines),\r\n landingPath: PATH.CONFIG_LOOKUP_ROUTINES.slice(1),\r\n componentName: componentName,\r\n nextPage: nextPage,\r\n storeId: storeId,\r\n createPath: PATH.CONFIG_NEW_LOOKUP_ROUTINE,\r\n editPath: PATH.CONFIG_NEW_LOOKUP_ROUTINE\r\n })\r\n return { componentName, bConfig }\r\n}\r\n\r\nexport const getSideBarItems = (\r\n isIfElseState: boolean,\r\n component: string,\r\n productMode: string\r\n) => {\r\n let sideBarItems: any = []\r\n if (isIfElseState) {\r\n SIDEBAR_ITEMS.forEach(item => {\r\n if (Object.keys(item)[0] === sideBarItemKeys.booleanFunctions) {\r\n let key = Object.keys(item)[0]\r\n sideBarItems = sideBarItems.concat(item[key])\r\n }\r\n })\r\n sideBarItems = [{ IfElse: [...[braces], ...sideBarItems] }]\r\n } else {\r\n if (component === CONFIG_MODULES.LookupRoutines) {\r\n sideBarItems = SIDEBAR_ITEMS.filter(i =>\r\n [\r\n sideBarItemKeys.lookupFunctions,\r\n sideBarItemKeys.ifElse,\r\n sideBarItemKeys.stringFunctions\r\n ].includes(Object.keys(i)[0])\r\n ).map(i1 => {\r\n if ([sideBarItemKeys.lookupFunctions].includes(Object.keys(i1)[0])) {\r\n const booleanFns: any = i1[Object.keys(i1)[0]]\r\n const filterFn: any = booleanFns?.filter(\r\n i2 => i2.function !== functionTypes.LookupRoutine\r\n )\r\n return { [Object.keys(i1)[0]]: filterFn }\r\n }\r\n return i1\r\n })\r\n } else if (component === CONFIG_MODULES.CountPrograms.setup) {\r\n sideBarItems = SIDEBAR_ITEMS.filter(i =>\r\n [sideBarItemKeys.inputSetupFunctions, sideBarItemKeys.ifElse].includes(\r\n Object.keys(i)[0]\r\n )\r\n )\r\n } else if (\r\n [\r\n CONFIG_MODULES.CountPrograms.validation,\r\n CONFIG_MODULES.CountFieldInstructions.validation\r\n ].includes(component)\r\n ) {\r\n sideBarItems = SIDEBAR_ITEMS.filter(i =>\r\n [\r\n sideBarItemKeys.stringFunctions,\r\n decimalPositionDisplay.includes(productMode) &&\r\n sideBarItemKeys.mathFunctions,\r\n sideBarItemKeys.booleanFunctions,\r\n sideBarItemKeys.ifElse\r\n ].includes(Object.keys(i)[0])\r\n )\r\n } else if (\r\n [\r\n CONFIG_MODULES.CountPrograms.Lookup,\r\n CONFIG_MODULES.CountFieldInstructions.Lookup\r\n ].includes(component)\r\n ) {\r\n sideBarItems = SIDEBAR_ITEMS.filter(i =>\r\n [\r\n sideBarItemKeys.lookupFunctions,\r\n sideBarItemKeys.ifElse,\r\n sideBarItemKeys.stringFunctions\r\n ].includes(Object.keys(i)[0])\r\n ).map(i1 => {\r\n if ([sideBarItemKeys.lookupFunctions].includes(Object.keys(i1)[0])) {\r\n const booleanFns: any = i1[Object.keys(i1)[0]]\r\n const filterFn: any = booleanFns?.filter(i2 =>\r\n [functionTypes.LookupRoutine, functionTypes.Error].includes(\r\n i2.function\r\n )\r\n )\r\n return { [Object.keys(i1)[0]]: filterFn }\r\n }\r\n return i1\r\n })\r\n } else if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n sideBarItems = SIDEBAR_ITEMS.filter(i =>\r\n [sideBarItemKeys.ifElse].includes(Object.keys(i)[0])\r\n )\r\n }\r\n }\r\n return { sideBarItems }\r\n}\r\n\r\nexport const booleanFunctionFieldAdding = (\r\n item: any,\r\n isIfElseState: boolean,\r\n component: string,\r\n isRecordLevelAudit\r\n) => {\r\n let itemCopy: any = {}\r\n if (\r\n [\r\n CONFIG_MODULES.CountPrograms.setup,\r\n CONFIG_MODULES.CountPrograms.validation,\r\n CONFIG_MODULES.CountPrograms.Lookup,\r\n CONFIG_MODULES.Audits,\r\n CONFIG_MODULES.AuditRule,\r\n CONFIG_MODULES.CountFieldInstructions.validation,\r\n CONFIG_MODULES.CountFieldInstructions.Lookup\r\n ].includes(component)\r\n ) {\r\n if (item?.functionType === ruleEditorFunctions.booleanFn) {\r\n itemCopy = JSON.parse(JSON.stringify(item))\r\n itemCopy.inputType = item.inputType?.filter(\r\n i =>\r\n ![\r\n sourceField.name,\r\n booleanError.name,\r\n booleanErrorMessage.name\r\n ].includes(i.name)\r\n )\r\n const isPrecountComponent = [\r\n CONFIG_MODULES.Audits,\r\n CONFIG_MODULES.AuditRule,\r\n CONFIG_MODULES.CountFieldInstructions.validation,\r\n CONFIG_MODULES.CountFieldInstructions.Lookup\r\n ].includes(component)\r\n if (isPrecountComponent) {\r\n if (itemCopy.function === functionTypes.CheckEntryMethod) {\r\n itemCopy.inputType = itemCopy.inputType?.map(i => {\r\n if (i.fieldName === \"entryMethod\") {\r\n return {\r\n ...i,\r\n options: [...i.options, ...checkEntryMethodPreCount]\r\n }\r\n } else {\r\n return i\r\n }\r\n })\r\n }\r\n }\r\n if (isIfElseState) {\r\n let newOptions = sourceField.options\r\n if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n newOptions = sourceForAuditTagLevelOptions\r\n if (isRecordLevelAudit) {\r\n newOptions = sourceForAuditRecordLevelOptions\r\n }\r\n }\r\n\r\n if (isPrecountComponent) {\r\n newOptions = [...newOptions, ...preCountDataOptions]\r\n }\r\n\r\n const sourceChangeInput = {\r\n ...sourceField,\r\n ...{\r\n options: [...currentFieldOptions, ...newOptions],\r\n validation: {\r\n ...sourceField.validation,\r\n ...{\r\n oneOf: [\r\n ...[currentFieldOptions[0].value],\r\n ...[...newOptions].map(i => i.value)\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n if (itemCopy?.inputType) {\r\n itemCopy?.inputType.unshift(sourceChangeInput)\r\n } else {\r\n itemCopy.inputType = [sourceChangeInput]\r\n }\r\n } else {\r\n if (itemCopy.inputType) {\r\n itemCopy.inputType.push(booleanError, booleanErrorMessage)\r\n } else {\r\n itemCopy.inputType = [booleanError, booleanErrorMessage]\r\n itemCopy.parameters = []\r\n }\r\n }\r\n }\r\n }\r\n\r\n return Object.keys(itemCopy).length ? { itemCopy } : { itemCopy: item }\r\n}\r\n\r\nexport const ruleEditorTitle = (component: string, t) => {\r\n let title = getTranslations(t, Translates.Lookup_Routines_Instructions)\r\n if (component === CONFIG_MODULES.CountPrograms.setup) {\r\n title = getTranslations(t, Translates.Setup_Instructions)\r\n } else if (component === CONFIG_MODULES.CountPrograms.validation) {\r\n title = getTranslations(t, Translates.Validation_Instructions)\r\n } else if (component === CONFIG_MODULES.CountPrograms.Lookup) {\r\n title = getTranslations(t, Translates.Lookup_Instructions)\r\n } else if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n title = getTranslations(t, Translates.Audit_Conditions)\r\n } else if (\r\n [\r\n CONFIG_MODULES.CountFieldInstructions.validation,\r\n CONFIG_MODULES.CountFieldInstructions.Lookup\r\n ].includes(component)\r\n ) {\r\n title = getTranslations(t, Translates.Count_Field_Instructions)\r\n }\r\n\r\n return { title }\r\n}\r\n","import { useEffect, useState } from \"react\"\r\nimport {\r\n Grid,\r\n FormControlLabel,\r\n Checkbox,\r\n Divider,\r\n Button\r\n} from \"@mui/material\"\r\nimport CheckCircleIcon from \"@mui/icons-material/CheckCircle\"\r\nimport InfoOutlinedIcon from \"@mui/icons-material/InfoOutlined\"\r\nimport MiniHeader from \"../../../src/components/MiniHeader/MiniHeader\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { Loader } from \"../../../src/utils/reusables/reusable\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { UserService } from \"../../../src/service/user.service\"\r\nimport { setCustomers } from \"../../../src/redux/slices/settingsSlice\"\r\nimport ImageIcon from \"@mui/icons-material/Image\"\r\nimport { getUserAccounts } from \"src/redux/slices/usersSlice\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { setCustomerConfiguration } from \"src/redux/slices/configSlice\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useSelector } from \"react-redux\"\r\nimport {\r\n setScheduleFilterForm,\r\n setScheduleFilters\r\n} from \"src/redux/slices/scheduleSlice\"\r\n\r\nconst SelectCustomer = (props: any) => {\r\n const history = useHistory()\r\n const { t } = useTranslation()\r\n const dispatch = useAppThunkDispatch()\r\n const userService = new UserService()\r\n const isRedirectHome = useSelector(\r\n (state: RootState) => state.customerSelection.isRedirectHome\r\n )\r\n const [customersList, setCustomersList] = useState([] as any)\r\n const [saving, setSaving] = useState(false)\r\n const [recentCustomers, setRecentCustomers] = useState([] as any)\r\n const [disableContinue, setDisableContinue] = useState(false)\r\n const [customersToPayload, setCustomersToPayload] = useState([] as any)\r\n const [customersRefList, setCustomersRefList] = useState([] as any)\r\n const [loading, setLoading] = useState(false)\r\n const userEmail = localStorage.getItem(\"username\") ?? \"\"\r\n const schedulesPrevFilter = useSelector(\r\n (state: RootState) => state.schedule?.scheduleFilterForm\r\n )\r\n\r\n const getCustomerList = () => {\r\n setLoading(true)\r\n dispatch(getUserAccounts(userEmail))\r\n .then((temp: any) => {\r\n setUserDetails(temp.payload?.data)\r\n })\r\n .catch(err => {\r\n setLoading(false)\r\n })\r\n }\r\n const setUserDetails = data => {\r\n let res = data || []\r\n res = res\r\n .filter(d => d.companyName)\r\n .map((c: any) => {\r\n return {\r\n name: c.companyName,\r\n img: c.companyLogo,\r\n selected: c.isCustomerSelected,\r\n idCustomer: c.idCustomer,\r\n lastUpdatedDate: c.lastUpdatedDate\r\n }\r\n })\r\n\r\n let recent: any = [...res]\r\n res = res.sort((a: any, b: any) => {\r\n if (a.name.toLowerCase() > b.name.toLowerCase()) return 1\r\n if (b.name.toLowerCase() > a.name.toLowerCase()) return -1\r\n return 0\r\n })\r\n recent = recent.sort((a: any, b: any) => {\r\n const dateComparison: any =\r\n new Date(b.lastUpdatedDate).getTime() -\r\n new Date(a.lastUpdatedDate).getTime()\r\n if (dateComparison !== 0) return dateComparison\r\n return a.selected ? -1 : 1\r\n })\r\n recent = recent.slice(0, 7)\r\n setCustomersRefList(res)\r\n setCustomersList(res)\r\n setRecentCustomers(recent)\r\n dispatch(setCustomers(res))\r\n dispatch(setScheduleFilters(schedulesPrevFilter))\r\n setLoading(false)\r\n }\r\n\r\n useEffect(() => {\r\n getCustomerList()\r\n }, [])\r\n\r\n const resetFilterOnCustomerChange = () => {\r\n const filters = {\r\n ...schedulesPrevFilter,\r\n configNames: []\r\n }\r\n dispatch(setScheduleFilterForm(filters))\r\n dispatch(setScheduleFilters(filters))\r\n }\r\n\r\n const handleCancel = () => {\r\n if (props.close) {\r\n props.close()\r\n }\r\n }\r\n const handleContinue = async () => {\r\n setSaving(true)\r\n let customerList: any = []\r\n customersToPayload.forEach((c: any) => {\r\n let refObj = customersRefList.find(\r\n (rf: any) => rf.idCustomer === c.idCustomer\r\n )\r\n if (refObj && refObj.isCustomerSelected !== c.selected) {\r\n customerList.push({\r\n idCustomer: c.idCustomer,\r\n isSelected: !!c.selected\r\n })\r\n }\r\n })\r\n customerList = customerList.sort((a, b) => a.isSelected - b.isSelected)\r\n let payload = {\r\n email: userEmail,\r\n customers: customerList\r\n }\r\n try {\r\n await userService.saveCustomerSelection([payload])\r\n dispatch(setCustomers(customersList))\r\n dispatch(setCustomerConfiguration([]))\r\n dispatch(getUserAccounts(userEmail))\r\n .then(() => {\r\n setSaving(false)\r\n if (props.close) {\r\n props.close()\r\n }\r\n isRedirectHome && history.push(\"/\")\r\n })\r\n\r\n .catch(\r\n //istanbul ignore next\r\n () => setLoading(false)\r\n )\r\n resetFilterOnCustomerChange()\r\n } catch {\r\n //istanbul ignore next\r\n setSaving(false)\r\n }\r\n }\r\n\r\n const handleTileClick = (event, cust) => {\r\n let customerList: any = [...customersList]\r\n let recentCust: any = [...recentCustomers]\r\n let ctpList: any = [...customersToPayload]\r\n let findIndex = customerList.findIndex(\r\n (c: any) => c.name.toLowerCase() == cust.name.toLowerCase()\r\n )\r\n if (findIndex != -1) {\r\n customerList[findIndex] = {\r\n ...customerList[findIndex],\r\n selected: event.target.checked\r\n }\r\n let findPayloadIndex = ctpList.findIndex(\r\n (ctp: any) => ctp.idCustomer == customerList[findIndex].idCustomer\r\n )\r\n if (findPayloadIndex != -1)\r\n ctpList[findPayloadIndex] = customerList[findIndex]\r\n else ctpList.push(customerList[findIndex])\r\n setCustomersToPayload(ctpList)\r\n }\r\n let rcfindIndex = recentCust.findIndex(\r\n (c: any) => c.name.toLowerCase() == cust.name.toLowerCase()\r\n )\r\n if (rcfindIndex != -1) {\r\n recentCust[rcfindIndex] = {\r\n ...recentCust[rcfindIndex],\r\n selected: event.target.checked\r\n }\r\n setRecentCustomers(recentCust)\r\n }\r\n setCustomersList(customerList)\r\n let selected = customerList.filter(c => c.selected)\r\n setDisableContinue(selected.length ? false : true)\r\n }\r\n\r\n const handleSelectAll = () => {\r\n let customerList: any = [...customersList]\r\n let notSelected: any = customerList.filter((ns: any) => !ns.selected)\r\n notSelected = notSelected.map((n: any) => {\r\n return { ...n, selected: true }\r\n })\r\n customerList = customerList.map((c: any) => {\r\n return { ...c, selected: true }\r\n })\r\n let recentCust = [...recentCustomers]\r\n recentCust = recentCust.map((c: any) => {\r\n return { ...c, selected: true }\r\n })\r\n setCustomersToPayload(notSelected)\r\n setRecentCustomers(recentCust)\r\n setCustomersList(customerList)\r\n setDisableContinue(false)\r\n }\r\n const handleClearAll = () => {\r\n let customerList: any = [...customersList]\r\n let selectedList: any = customerList.filter((c: any) => c.selected)\r\n selectedList = selectedList.map((s: any) => {\r\n return { ...s, selected: false }\r\n })\r\n customerList = customerList.map((c: any) => {\r\n return { ...c, selected: false }\r\n })\r\n let recentCust = [...recentCustomers]\r\n recentCust = recentCust.map((c: any) => {\r\n return { ...c, selected: false }\r\n })\r\n setCustomersToPayload(selectedList)\r\n setRecentCustomers(recentCust)\r\n setCustomersList(customerList)\r\n setDisableContinue(true)\r\n }\r\n\r\n const renderRecentCustomers = () => {\r\n //istanbul ignore next\r\n if (!recentCustomers.length) return null\r\n return recentCustomers.map((rc: any, i) => {\r\n return (\r\n }\r\n checked={rc.selected}\r\n onChange={e => handleTileClick(e, rc)}\r\n />\r\n }\r\n label={\r\n

    \r\n {rc.img ? (\r\n \"logo\"\r\n ) : (\r\n \r\n )}\r\n {rc.name}\r\n

    \r\n }\r\n />\r\n )\r\n })\r\n }\r\n const renderAllCustomers = () => {\r\n if (loading) return Loader()\r\n else {\r\n if (!customersList.length)\r\n return {getTranslations(t, Translates.No_customers_Found)}\r\n return customersList.map((c: any) => {\r\n return (\r\n }\r\n onChange={e => handleTileClick(e, c)}\r\n />\r\n }\r\n label={\r\n

    \r\n {c.img ? (\r\n {`${c.name}_logo`}\r\n ) : (\r\n \r\n )}\r\n {c.name}\r\n

    \r\n }\r\n />\r\n )\r\n })\r\n }\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Select_Customer)}{\" \"}\r\n

    \r\n
    \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Select_All)}\r\n \r\n \r\n \r\n {getTranslations(t, Translates.Clear_All)}\r\n \r\n \r\n \r\n
    \r\n {customersList && customersList.length >= 14 ? (\r\n <>\r\n {recentCustomers.length ? (\r\n
    \r\n {getTranslations(t, Translates.Recent_Customers)}\r\n
    \r\n ) : //istanbul ignore next\r\n null}\r\n {renderRecentCustomers()}\r\n \r\n \r\n ) : null}\r\n
    \r\n {getTranslations(t, Translates.All_Customers)}\r\n
    \r\n {renderAllCustomers()}\r\n
    \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {getTranslations(t, Translates.Continue)}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default SelectCustomer\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"MainContentContainer\":\"MainLayout_MainContentContainer__3jHvz\"};","import DeviceBg from \"../../../src/assets/images/DeviceReservationBg.svg\"\r\nimport { Grid, Button } from \"@mui/material\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"../../../src/constants/paths\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nconst ScheduleBanner = () => {\r\n const {t}=useTranslation()\r\n const history = useHistory()\r\n const handleClickOpen = () => {\r\n history.push(PATH.SCHEDULE_CREATE_TYPE)\r\n }\r\n return ( \r\n \r\n \r\n

    {getTranslations(t, Translates.Add_your_Schedule)}

    \r\n

    {getTranslations(t, Translates.Schedule_an_Event_for_your_Store_Locations)}.

    \r\n \r\n {getTranslations(t, Translates.Add_new_Schedule)}\r\n \r\n
    \r\n \r\n \"device\r\n \r\n
    \r\n )\r\n}\r\n\r\nexport default ScheduleBanner\r\n","import {\r\n Box,\r\n CircularProgress,\r\n Grid,\r\n Button,\r\n Tooltip,\r\n FormControl,\r\n Autocomplete,\r\n TextField,\r\n Checkbox\r\n} from \"@mui/material\"\r\nimport BreadCrumb from \"../../components/BreadCrumb/BreadCrumb\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport ImageIcon from \"@mui/icons-material/Image\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"../helper\"\r\nexport const Loader = () => {\r\n return (\r\n \r\n \r\n \r\n )\r\n}\r\n\r\nconst getAuditBreadcrumbConfig = t => {\r\n let currentPath: string = `audits`\r\n let variables: any = {\r\n audits: getTranslations(t, Translates.General_Audits_Settings)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n}\r\n\r\nexport const toolBarHearder = (\r\n handleAuditSaveClick,\r\n configTypeFromStore,\r\n t\r\n) => {\r\n return (\r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport const getDataSourceAutoComplete = (\r\n result,\r\n dataSource,\r\n handleDataSourceChange,\r\n t\r\n) => {\r\n return (\r\n
    \r\n \r\n option}\r\n renderInput={params => (\r\n \r\n )}\r\n // istanbul ignore next\r\n renderOption={(props, option, { selected }) => (\r\n
  • \r\n }\r\n style={{ marginRight: 8 }}\r\n checked={selected}\r\n />\r\n {option}\r\n
  • \r\n )}\r\n />\r\n \r\n
    \r\n )\r\n}\r\nexport const renderCompanyCell = (idCustomer, selectedCustomerList) => {\r\n let customer = selectedCustomerList.find(c => c.idCustomer === idCustomer)\r\n if (customer) {\r\n return (\r\n
    \r\n {customer.companyLogo ? (\r\n \r\n ) : (\r\n \r\n )}\r\n\r\n \r\n {customer.companyName} \r\n \r\n
    \r\n )\r\n }\r\n return \"NA\"\r\n}\r\n","export const requiredErr = \"This field is required.\"\r\nexport const oneOfErr = \"This field value should be one of the options.\"\r\nexport const numberTypeErr = \"This field should be number.\"\r\nexport const atLeastOneFieldIsRequired = \"At least one field is required\"\r\nexport const pastTimingErr = \"Start Date and time should be in future\"\r\nexport const View = \"view\"\r\nexport const MAX_PHONE_NUMBER_LENGTH = 11\r\nexport const EXPECTED_PHONE_NUMBER_LENGTH = 10\r\n\r\nexport const STATUS_CONSTANTS = {\r\n Active: \"Active\",\r\n InActive: \"InActive\",\r\n Inactive: \"Inactive\",\r\n Invited: \"Invited\",\r\n Not_Installed: \"Not Installed\",\r\n In_Active: \"In Active\"\r\n}\r\nexport const ROLE_CONSTANTS = {\r\n WisUser: \"WisUser\",\r\n Admin: \"Admin\",\r\n CorporateUser: \"CorporateUser\",\r\n RegionalUser: \"RegionalUser\"\r\n}\r\nexport const RESERVATIONS_STATUS_CONSTANTS = {\r\n Cancelled: \"Cancelled\",\r\n Completed: \"Completed\",\r\n Confirmed: \"Confirmed\",\r\n Pending: \"Pending\",\r\n pending: \"pending\",\r\n cancelled: \"cancelled\",\r\n completed: \"completed\",\r\n confirmed: \"confirmed\"\r\n}\r\nexport const ROLE_ID = {\r\n Admin: \"1\",\r\n CorporateUser: \"2\",\r\n RegionalUser: \"3\",\r\n WisUser: \"4\"\r\n}\r\nexport const RED_COLOR_VALUE = 25\r\nexport const YELLOW_COLOR_VALUE = 75\r\n\r\nexport const MAX_DEVICES = 1000000000\r\nexport const CUSTOM_REQUEST_HEADERS = {\r\n \"Strict-Transport-Security\": \"Max-age=31536000; includeSubDomains\",\r\n \"Content-Security-Policy\": `script-src'self'; obje ct-src 'self'`,\r\n \"X-Frame-Options\": \"Sameorigin,deny\",\r\n \"Referrer-Policy\": \"no-referrer\",\r\n \"X-Content-Type-Options\": \"No sniff\"\r\n}\r\n\r\nexport const formField = {\r\n text: \"text\",\r\n date: \"date\",\r\n time: \"time\",\r\n dropdown: \"dropdown\",\r\n auto_dropdown: \"auto_dropdown\",\r\n multi_dropdown: \"multi_dropdown\",\r\n multi_auto_dropdown: \"multi_auto_dropdown\",\r\n checkbox: \"checkbox\",\r\n radio: \"radio\",\r\n textarea: \"textarea\",\r\n chip: \"chip\"\r\n}\r\n\r\nexport const PromptTypes = {\r\n Decimal: \"DECIMAL\",\r\n CustomList: \"CUSTOM_LIST\",\r\n Text: \"TEXT\",\r\n Alpha: \"ALPHA\",\r\n Numeric: \"NUMERIC\",\r\n LocationCategory: \"LOCATION_CATEGORY\",\r\n LocationRange: \"LOCATION_RANGE\",\r\n Department: \"DEPARTMENT\",\r\n ParentDepartment: \"PARENT_DEPARTMENT\",\r\n Other: \"OTHER\",\r\n NONE: \"NONE\",\r\n LEFT: \"LEFT\",\r\n RIGHT: \"RIGHT\",\r\n ZIP: \"ZIP\"\r\n}\r\n\r\nexport const PromptFieldNames = {\r\n VariableName: \"VariableName\",\r\n CustomList: \"CustomList\",\r\n Integer: \"Integer\",\r\n DefaultValue: \"DefaultValue\",\r\n NumberOfDecimals: \"NumberOfDecimals\",\r\n Label: \"Label\"\r\n}\r\n\r\nexport const CONFIG_MODULES = {\r\n Reports: \"Reports\",\r\n OutputFiles: \"Outputs\",\r\n LookupRoutines: \"Lookup Routines\",\r\n CountPrograms: {\r\n setup: \"CP Setup Instructions\",\r\n validation: \"CP Validation Instructions\",\r\n Lookup: \"CP Lookup Instructions\"\r\n },\r\n CountFieldInstructions: {\r\n setup: \"CF Setup Instructions\",\r\n validation: \"CF Validation Instructions\",\r\n Lookup: \"CF Lookup Instructions\",\r\n Location: \"CF Location\",\r\n Product: \"CF Product\"\r\n },\r\n countFields: \"countFields\",\r\n Audits: \"Audits\",\r\n AuditRule: \"Audit Rules\",\r\n CopyPastInstructions: {\r\n setup: \"Setup Instructions\",\r\n validation: \"Validation Instructions\",\r\n Lookup: \"Lookup Instructions\",\r\n LookupRoutines: \"Lookup Routines Instructions\"\r\n }\r\n}\r\n\r\nexport const FILE_TYPE = {\r\n Text: \"Text\",\r\n Excel: \"Excel\",\r\n Ebcdic: \"Ebcdic\",\r\n Other: \"OTHER\",\r\n ASCIICharValue: \"{ASCIIChar(x)}\"\r\n}\r\nexport const Padding_TYPE = {\r\n Left: \"Left\",\r\n Right: \"Right\"\r\n}\r\nexport const ACEEDITOR_BACKGROUND_COLORS = {\r\n NormalMode: \"#e6ede8\",\r\n DisabledMode: \"#f7f3f2\"\r\n}\r\n\r\nexport const EDIT_TYPE = {\r\n Edit: \"Edit\",\r\n Add: \"Add\"\r\n}\r\nexport const API_RESPONSE = {\r\n SUCCESS: \"200\"\r\n}\r\n\r\nexport const API_REQUESTS = {\r\n SQLEDITORTESTAPI: \"api/ConfigurationPortal/testSql\"\r\n}\r\n\r\nexport const Accordion_Type = {\r\n panel1: \"panel1\"\r\n}\r\n\r\nexport const CONFIRM_MODAL = {\r\n CONFIRM: \"CONFIRM\",\r\n CANCEL: \"CANCEL\",\r\n REMOVE: \"REMOVE\"\r\n}\r\nexport const FIELD_DELIMITER = [\r\n \"NONE\",\r\n \"TAB\",\r\n \"COMMA\",\r\n \"PIPE\",\r\n \"COLON\",\r\n \"SEMI COLON\",\r\n \"OTHER\"\r\n]\r\nexport const RECORD_DELIMITER = [\r\n \"{CR}{LF}\",\r\n \"{LF}\",\r\n \"{CR}\",\r\n \"NONE\",\r\n FILE_TYPE.ASCIICharValue,\r\n \"OTHER\"\r\n]\r\n\r\nexport const Record_Delimiter_Obj = [\r\n {\r\n Name: \"{CR}{LF}\",\r\n Value: \"\\r\\n\"\r\n },\r\n {\r\n Name: \"{LF}\",\r\n Value: \"\\n\"\r\n },\r\n {\r\n Name: \"{CR}\",\r\n Value: \"\\r\"\r\n },\r\n {\r\n Name: \"NONE\",\r\n Value: \"NONE\"\r\n },\r\n {\r\n Name: FILE_TYPE.ASCIICharValue,\r\n Value: FILE_TYPE.ASCIICharValue\r\n },\r\n {\r\n Name: \"OTHER\",\r\n Value: \"OTHER\"\r\n }\r\n]\r\nexport const FILE_TYPE_VALUES = [\"TEXT\", \"EXCEL\", \"EBCDIC\"]\r\n\r\nexport const UPLOAD_STATUS = {\r\n received: \"received\",\r\n successful: \"successful\",\r\n processing: \"processing\",\r\n failed: \"failed\",\r\n finished: \"finished\"\r\n}\r\n\r\nexport const HEADER_CONSTANTS = {\r\n InputFile: \"InputFile\",\r\n Category: \"category\",\r\n CountField: \"CountField\",\r\n Lookup: \"Lookup\",\r\n Audit: \"Audit\",\r\n Report: \"Report\",\r\n Output: \"Output\",\r\n Variance: \"variance\",\r\n count_fields: \"count-fields\"\r\n}\r\nexport const SCHEDULE_STATUS_CONSTANTS = {\r\n Completed: \"Closed\",\r\n InProgress: \"in progress\",\r\n Future: \"Future\",\r\n Pending: \"pending\",\r\n Confirmed: \"Confirmed\",\r\n NotStarted: \"not started\",\r\n Cancelled: \"Cancelled\",\r\n Locked: \"Locked\",\r\n NOTSTARTED: \"Not Started\",\r\n INPROGRESS: \"In Progress\",\r\n LOCK_IN_PROGRESS: \"Lock In Progress\",\r\n SOFT_CLOSE: \"Soft Close\"\r\n}\r\n\r\nexport const languageCode = {\r\n US_EN: \"US_EN\",\r\n CA_FR: \"CA_FR\",\r\n us_en: \"us_en\",\r\n ca_fr: \"ca_fr\",\r\n es_mx: \"es_mx\",\r\n ES_MX: \"ES_MX\"\r\n}\r\nexport const languageCodeMap = {\r\n English: \"us_en\",\r\n French: \"ca_fr\",\r\n Spanish: \"es_mx\"\r\n}\r\n\r\nexport const CONFIGURATION_STATUS_CONSTANTS = {\r\n Active: \"active\",\r\n InACtive: \"in active\",\r\n NotInstalled: \"not installed\"\r\n}\r\nexport const CONFIGURATION_CONSTANTS = {\r\n Deactivated: \"deactivated\",\r\n Installed: \"installed\"\r\n}\r\nexport const USER_STATUS_CONSTANTS = {\r\n Active: \"active\",\r\n InACtive: \"inactive\",\r\n In_ACtive: \"in active\",\r\n Invited: \"invited\"\r\n}\r\nexport const SECONDARY_PHONE = \"secondaryPhone\"\r\nexport const LIVE_EVENTS_STATUS_CONSTANTS = {\r\n Closed: \"Closed\",\r\n InProgress: \"In Progress\",\r\n NotStarted: \"Not Started\",\r\n Cancelled: \"Cancelled\"\r\n}\r\nexport const LIVE_EVENTS_STATUS_CONSTANTS_ORDERS = [\r\n \"not started\",\r\n \"in progress\",\r\n \"closed\"\r\n]\r\nexport const DEFAULT_DATE_FORMAT = \"0001-01-01\"\r\nexport const FTP_CONNECTIONS = {\r\n SFTP: \"SFTP\",\r\n FTP: \"FTP\"\r\n}\r\n\r\nexport const SHARE_EVENTS = {\r\n Image_Type: \"image/svg+xml\",\r\n File_Name: \"filename.svg\",\r\n Content_Type: \"content-type\",\r\n Content_data: \"multipart/form-data\"\r\n}\r\nexport const RESERVATION_FIELDS = {\r\n RESERVEDDEVICES: \"reservedDevices\",\r\n TRAININGDAYS: \"trainingDays\",\r\n EVENTDAYS: \"eventDays\",\r\n STARTDATE: \"startDate\",\r\n RESERVATION_NAME: \"reservation\"\r\n}\r\nexport const TRAINING_DAYS: any = [1, 2, 3, 4, 5, 6, 7]\r\nexport const EVENT_DAYS: any = [0, 1, 2, 3, 4, 5, 6, 7]\r\nexport const QUERY_PARAMETERS = {\r\n NOFUTUREEVENTS: \"NoFutureEvents\",\r\n IDCONFIG: \"IdConfig\",\r\n EVENTIDS: \"EventIds\"\r\n}\r\nexport const setIsDisableButton = (\r\n configTypeFromStore: any,\r\n x: any,\r\n y: any\r\n) => {\r\n if (configTypeFromStore === \"view\") return true\r\n return x?.length === Object.keys(y).length\r\n}\r\nexport const BULK_UPLOADING = {\r\n LOCATION_FILE_UPLOADING: \"locationFileUploading\",\r\n SCHEDULE_FILE_UPLOADING: \"scheduleFIleUploading\",\r\n USER_DEATILS_FILE_UPLOADING: \"userDetailsFileUploading\",\r\n DEVICE_RESERVATION: \"deviceReservationFileUploading\",\r\n UPLOADFILE: \"uploadfile\",\r\n DEPARTMENT_FILE_UPLOADING: \"departmentFileUploading\",\r\n VARIANCE_FILE_UPLOADING: \"varianceFileUploading\",\r\n AREA_RANGE_FILE_UPLOADING: \"areaRangeFileUploading\"\r\n}\r\nexport const FEATURES = {\r\n COMPANY_SETTINGS: \"company settings\",\r\n USERS: \"users\",\r\n LOCATIONS: \"locations\",\r\n CONFIGURATION: \"configuration\",\r\n SCHEDULE: \"schedule\",\r\n RESERVATIONS: \"reservations\",\r\n UPLOADFILES: \"upload files\"\r\n}\r\nexport const PERMISSIONS = {\r\n CREATE: \"create\",\r\n UPDATE: \"update\",\r\n VIEW: \"view\",\r\n DOWNLOAD: \"download\"\r\n}\r\nexport const BULK_ACTIONS = {\r\n UPDATE: \"Update\",\r\n IGNORE: \"Ignore\"\r\n}\r\nexport const KEY_CODE = {\r\n ENTER: \"Enter\",\r\n TAB: \"Tab\",\r\n COMMA: \",\",\r\n BACKSPACE: \"Backspace\"\r\n}\r\nexport const DESCENDING = {\r\n Desc: \"Desc\",\r\n Asc: \"Asc\"\r\n}\r\n\r\nexport const KEY_CODES = {\r\n ENTER: 13,\r\n N1: 1,\r\n N2: 2,\r\n N3: 3,\r\n N4: 4,\r\n N5: 5,\r\n N6: 6,\r\n N7: 7,\r\n N8: 8,\r\n N9: 9,\r\n N10: 10,\r\n N11: 11,\r\n N12: 12,\r\n N13: 13,\r\n N14: 14,\r\n N15: 15,\r\n N16: 16,\r\n N200: 200\r\n}\r\nexport const DEFAULT_RADIX = 10\r\nexport const PAGE_REFRESH_TIME = 30000\r\nexport const PAGE_REFRESH_TIME_10MINS= 600000\r\nexport const PAGE_REFRESH_TIME_5MINS = 300000\r\nexport const PAGE_REFRESH_TIME_1MINS = 60000\r\nexport const DATE_MILLI_SECONDS = 1000\r\n\r\nexport const THIRTYDAYS = 30\r\nexport const ONEYEAR = 1\r\nexport const SEVENDAYS = 7\r\nexport const DATEFORMATE = \"DD-MM-YYYY\"\r\nexport const INPUTFORMAT = \"YYYY-MM-DDTHH:mm:ss.SSSZ\"\r\n\r\nexport const ROLE_USER = {\r\n WISLABEL: \"WIS User\",\r\n WISVALUE: 4,\r\n WISEMAIL: \"@wisintl.com\",\r\n FLEXMAIL: \"@flexcount.onmicrosoft.com\",\r\n WISPROD: \"@flexcountprod.onmicrosoft.com\",\r\n WISSTAGE: \"@flexcountstage.onmicrosoft.com\",\r\n WISDEV: \"@flexcountdev.onmicrosoft.com\",\r\n WISQA: \"@flexcountqa.onmicrosoft.com\",\r\n WISPERF: \"@flexcountperf.onmicrosoft.com\"\r\n}\r\n\r\nexport const SHIPPING_URL = {\r\n FEDEX_URL: \"https://www.fedex.com/fedextrack/?trknbr=\",\r\n UPS_URL: \"https://www.ups.com/track?tracknum=\"\r\n}\r\n\r\nexport const templateFileMap = {\r\n [BULK_UPLOADING.DEPARTMENT_FILE_UPLOADING]:\r\n \"FlexCount_BulkImport_Department.csv\",\r\n [BULK_UPLOADING.VARIANCE_FILE_UPLOADING]: \"FlexCount_BulkImport_Variance.csv\",\r\n [BULK_UPLOADING.LOCATION_FILE_UPLOADING]:\r\n \"FlexCount_BulkImport_Locations.csv\",\r\n [BULK_UPLOADING.USER_DEATILS_FILE_UPLOADING]:\r\n \"FlexCount_BulkImport_Users.csv\",\r\n [BULK_UPLOADING.SCHEDULE_FILE_UPLOADING]: \"FlexCount_BulkImport_Schedule.csv\",\r\n [BULK_UPLOADING.DEVICE_RESERVATION]: \"FlexCount_BulkImport_Reservation.csv\",\r\n [BULK_UPLOADING.AREA_RANGE_FILE_UPLOADING]: \"FlexCount_Area_Range_Upload_File.csv\",\r\n}\r\n\r\nexport const disallowedExtensions = [\".php\", \".exe\", \".java\", \".ps1\", \".cs\"]\r\n\r\nexport const scheduleEDSecureFields = {\r\n eventPassword: \"eventPassword\",\r\n authorizationNumber: \"authorizationNumber\",\r\n countPIN: \"countPIN\",\r\n auditPIN: \"auditPIN\"\r\n}\r\nexport const InvalidDate = \"Invalid Date\"\r\n\r\nexport const languages = {\r\n ENFLISH: \"ENGLISH\",\r\n FRENCH: \"FRENCH\",\r\n SPANISH: \"SPANISH\"\r\n}\r\nexport const currencyFormatRegex = /\\B(? {\r\n return layout\r\n}\r\n\r\nexport const getIfElseLayout = () => {\r\n return ifElseLayout\r\n}\r\nexport const setLayout = newLayout => {\r\n layout = newLayout\r\n}\r\n\r\nexport const setIfElseLayout = newLayout => {\r\n ifElseLayout = newLayout\r\n}\r\nexport const getIsIfElseScreen = () => {\r\n return isIfElseScreen\r\n}\r\nexport const setIsIfElseScreen = (value: boolean) => {\r\n isIfElseScreen = value\r\n}\r\n","export const Audit_Types = [\r\n \"Follow Up System Audits\",\r\n \"Random System Audits\", \r\n \"Record System Audits\",\r\n \"Location System Audits\",\r\n \r\n]\r\nexport const Audit_TypesObj = {\r\n Random: \"Random System Audits\",\r\n FollowUp: \"Follow Up System Audits\",\r\n TargetedLocation: \"Location System Audits\",\r\n TargetedRecord: \"Record System Audits\"\r\n}\r\n\r\nexport const BreadCrumb_Fields = {\r\n AUDITS_COMPONENT:\"audits\",\r\n AUDITRULE_TITLE:\"Audit New Rule Conditions\",\r\n AUDIT_TITLE:\"General Audit Settings\"\r\n}\r\n\r\nexport const FieldTypes = {\r\n INTEGER:\"Integer\",\r\n DECIMAL:\"Decimal\"\r\n}\r\n","import React, { useRef } from \"react\"\r\nimport {\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n Grid,\r\n Button,\r\n} from \"@mui/material\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\ninterface InputConfirm {\r\n open: boolean\r\n callBack: any\r\n title: any\r\n content: any\r\n custref: any\r\n isConfirmButtonShow?: boolean\r\n confirmButtonText?: string\r\n cancelButtonText?: string\r\n}\r\n\r\nconst ConfirmDialog: React.FC = ({\r\n open,\r\n callBack,\r\n title,\r\n content,\r\n custref,\r\n isConfirmButtonShow = true,\r\n confirmButtonText = \"CONFIRM\",\r\n cancelButtonText = \"CANCEL\",\r\n}) => {\r\n const { t } = useTranslation()\r\n\r\n const dialogCancelButtonRef = useRef(custref)\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n \r\n \r\n }\r\n onClick={() => callBack(false)}\r\n ref={dialogCancelButtonRef}\r\n data-testid=\"dialog-cancel-click\"\r\n >\r\n {getTranslations(t, Translates.Close)}\r\n \r\n \r\n

    {title}

    \r\n
    \r\n
    \r\n \r\n {typeof content === \"function\" ? content() : content}\r\n \r\n \r\n callBack(false)}\r\n ref={dialogCancelButtonRef}\r\n data-testid=\"dialog-cancel-btn\"\r\n >\r\n {cancelButtonText}\r\n \r\n callBack(true)}\r\n data-testid=\"dialog-confirmation-btn\"\r\n >\r\n {confirmButtonText}\r\n \r\n \r\n \r\n
    \r\n )\r\n}\r\n\r\nexport default ConfirmDialog\r\n","import React from \"react\"\r\nimport { Box } from \"@mui/system\"\r\nimport CircularProgress from \"@mui/material/CircularProgress\"\r\n\r\nexport default function Loading({\r\n isMarginTop = true,\r\n isJustifyContent = true,\r\n customClass = \"\"\r\n}) {\r\n return (\r\n \r\n \r\n \r\n )\r\n}\r\n","import { FormControl, InputLabel, MenuItem, Select } from \"@mui/material\"\r\n\r\nconst BulkDataSelectField = ({\r\n bulkData,\r\n label,\r\n defaultValue,\r\n value,\r\n handleOnChange,\r\n FormControlClass,\r\n fieldIndex\r\n}: {\r\n bulkData: any[]\r\n label: string\r\n defaultValue: any\r\n value: any\r\n handleOnChange: Function\r\n FormControlClass?: string\r\n fieldIndex: number\r\n}) => {\r\n return (\r\n \r\n {label}\r\n handleOnChange(e, fieldIndex)}\r\n >\r\n {bulkData.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n )\r\n}\r\n\r\nexport default BulkDataSelectField\r\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFGSURBVHgBzZXBTcMwFIafTQ8cwwTEN24wAmzQERiBKyc4coMNyghlAsQEdAOXDbxB+H/LrqyqTV7iqOovRc9+cb7fdqxnkRnVtm3Dp8wZmUGAtggrY8w9+13XrdF+8t7/LaRShAP2zSaewBz6S5hwJQ+mGPhCVzSbYzB8tIXcITjfcQWICOaXHLSvbBr4juRrH7xv5hnOLdkft0hLeszfHRqkhRf5BnGNXMj/IM58JnjMI3K7xcoIaeHldqkNpsDVBlPhKoMauMqgBj5oAM7dGLhzzuO1LxlDpeI2xY1y5nyvX4G1dpmarJKrVAIGt0W9AoC4RZKrZMqp4YMGSYHlF3GD54vVTkao1wCzdFKpUaXirA3iTYRzfC0Tla7NHSsr/gP8xI904WxhIjUC67PsX0TLEH4aCCY36F7KNPG0veGQPcsp9Q825weS43RKIQAAAABJRU5ErkJggg==\"","\r\nexport const breadcrumbNameMap: { [key: string]: string } = {\r\n\r\n \"/devicereservation\": \"Device Reservation\",\r\n \"/settings\":\"Settings\",\r\n \"/schedule\": \"Schedule\"\r\n}\r\n\r\nexport const ReportingBreadcrumbTooltip = {\r\n infoHeader: \"INFORMATION\",\r\n infoMessage: `Amet minim mollit non deserunt ullamco est sit aliqua\r\n dolor do amet sint. Velit officia consequat duis enim\r\n velit mollit.`\r\n}\r\n","import React from \"react\"\r\nimport Link, { LinkProps } from \"@mui/material/Link\"\r\nimport Typography from \"@mui/material/Typography\"\r\nimport Breadcrumbs from \"@mui/material/Breadcrumbs\"\r\nimport { Link as RouterLink, Route, Switch } from \"react-router-dom\"\r\nimport { breadcrumbNameMap } from \"src/constants/breadcrumb\"\r\nimport HomeIcon from \"@mui/icons-material/Home\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\n\r\ninterface LinkRouterProps extends LinkProps {\r\n to: string\r\n replace?: boolean\r\n}\r\n\r\nconst LinkRouter = (props: LinkRouterProps) => (\r\n \r\n)\r\n\r\nconst Page: React.FC = ({ customPath, page, breadCrumbInfo }) => {\r\n if (breadCrumbInfo) {\r\n breadCrumbInfo[\"showHomeIcon\"] =\r\n breadCrumbInfo.showHomeIcon !== undefined\r\n ? breadCrumbInfo.showHomeIcon\r\n : true\r\n } else {\r\n breadCrumbInfo = { showHomeIcon: true }\r\n }\r\n const location = window.location\r\n const pathnames = location.pathname.split(\"/\").filter(x => x)\r\n const IS_HOME_PAGE: boolean = pathnames.length === 0\r\n const { t } = useTranslation()\r\n const getBreadCrumbList = () => {\r\n if (breadCrumbInfo.currentPath && breadCrumbInfo.mapObj) {\r\n let breadCrumbList: any[] = []\r\n let skipItems: any[] = []\r\n breadCrumbInfo.currentPath.split(\"/\").map((bc: string, idx: number) => {\r\n let linkVal: string | null = !bc.includes(\"@\")\r\n ? bc\r\n : breadCrumbInfo.custLinks[bc]\r\n breadCrumbList.push({\r\n link: linkVal,\r\n showText: breadCrumbInfo.mapObj[bc]\r\n })\r\n if (bc.startsWith(\"##\") && bc.endsWith(\"##\")) {\r\n skipItems.push(idx)\r\n }\r\n })\r\n if (skipItems.length) {\r\n skipItems.forEach(itemIndex => {\r\n if (breadCrumbList[itemIndex - 1] && breadCrumbList[itemIndex]) {\r\n breadCrumbList[itemIndex - 1].link += `/${breadCrumbList[\r\n itemIndex\r\n ].link.replaceAll(\"##\", \"\")}`\r\n }\r\n })\r\n skipItems.forEach(itemIndex => {\r\n breadCrumbList.splice(itemIndex, 1)\r\n })\r\n }\r\n return breadCrumbList\r\n }\r\n return []\r\n }\r\n\r\n const renderWithTagNumber = (_page, to, _customPath, value) => {\r\n return (\r\n \r\n {value.showText}\r\n \r\n )\r\n }\r\n const renderBreadCrumbs = () => {\r\n if (IS_HOME_PAGE) {\r\n return (\r\n \r\n {getTranslations(t, Translates.Welcome)}\r\n \r\n )\r\n } else if (!customPath) {\r\n return (\r\n \r\n {breadCrumbInfo.showHomeIcon ? (\r\n \r\n \r\n \r\n ) : null}\r\n {pathnames.map((_value, index) => {\r\n const last = index === pathnames.length - 1\r\n const to = `/${pathnames.slice(0, index + 1).join(\"/\")}`\r\n if (last) {\r\n return (\r\n \r\n {getTranslations(t, Translates.Settings)}\r\n \r\n )\r\n } else {\r\n return (\r\n \r\n {breadcrumbNameMap[to]}\r\n \r\n )\r\n }\r\n })}\r\n \r\n )\r\n } else {\r\n return (\r\n \r\n {breadCrumbInfo.showHomeIcon ? (\r\n \r\n \r\n \r\n ) : null}\r\n {getBreadCrumbList().map((value, index) => {\r\n let search = location.search\r\n const last = index === getBreadCrumbList().length - 1\r\n const to = `/${value.link}`\r\n let toLink = `/${value.link}`\r\n toLink =\r\n search?.length && !breadCrumbInfo.isNotSearchParams\r\n ? toLink + search\r\n : toLink\r\n if (last) {\r\n return renderWithTagNumber(page, to, customPath, value)\r\n } else {\r\n return (\r\n \r\n {value.showText || \"\"}\r\n \r\n )\r\n }\r\n })}\r\n \r\n )\r\n }\r\n }\r\n return <>{renderBreadCrumbs()}\r\n}\r\n\r\ntype breadcrumbType = {\r\n customPath: string\r\n renderedPage: string\r\n breadCrumbInfo: any\r\n}\r\n\r\nconst RouterBreadcrumbs: React.FC = ({\r\n customPath,\r\n renderedPage,\r\n breadCrumbInfo\r\n}) => {\r\n return (\r\n \r\n (\r\n \r\n )}\r\n />\r\n \r\n )\r\n}\r\n\r\nexport default RouterBreadcrumbs\r\n","import React, { useState, useEffect } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport {\r\n Route,\r\n RouteProps,\r\n Redirect,\r\n RouteComponentProps\r\n} from \"react-router-dom\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { getPermissionsForUser } from \"src/utils/helper\"\r\n\r\ninterface Props extends RouteProps {\r\n component: React.ComponentType\r\n isRedirect?: boolean\r\n redirectTo?: string\r\n feature?: string\r\n permissions?: string\r\n}\r\nconst multiCustRestricted = [\r\n \"/locations\",\r\n \"/deviceReservations\",\r\n \"/locations/create\",\r\n \"/locations/edit\",\r\n \"/locationDetails\",\r\n \"/settings\",\r\n \"/settings/companyDetails\",\r\n \"/locationTypeSelect\",\r\n \"/settingsRegionalGroups\",\r\n \"/settings/regionalGroups/regionalGroupsDetails\",\r\n \"/settings/regionalGroups\",\r\n \"/settings/companyDetails\",\r\n \"/user/create\",\r\n \"/user/edit\",\r\n \"/users\"\r\n]\r\n\r\nfunction AuthenticatedGuard(props: Props) {\r\n let isNotallowed: any\r\n let allowed = true\r\n const customerList = useSelector(\r\n (state: RootState) => state.settings.customers\r\n )\r\n const [userPermissions, setUserPermissions] = useState([] as any)\r\n useEffect(() => {\r\n const dt = getPermissionsForUser()\r\n let data = [\r\n ...dt.map((m: { Permissions: any[] }) => {\r\n return {\r\n ...m,\r\n Permissions: m.Permissions.filter(e => e).map(e => e.toLowerCase())\r\n }\r\n })\r\n ]\r\n setUserPermissions([...data])\r\n }, [])\r\n\r\n const selectedCustomerList = customerList.filter((c: any) => c.selected)\r\n if (selectedCustomerList.length > 1) {\r\n isNotallowed = multiCustRestricted.find(p => props.path?.includes(p))\r\n isNotallowed = isNotallowed ? true : false\r\n }\r\n // const isAuthenticated = true\r\n const { component: Component, ...rest } = props\r\n let isRedirect = props.isRedirect ?? false\r\n let redirectTo = props.redirectTo ?? \"/\"\r\n const PATH_NAME = window.location.pathname\r\n //Checking permissions\r\n let item = userPermissions.find(\r\n f => f.Feature.toLowerCase() === (props.feature ?? \"\").toLowerCase()\r\n )\r\n if (\r\n props.feature &&\r\n userPermissions.length > 0 &&\r\n !item?.Permissions.includes(props.permissions || \"\")\r\n ) {\r\n allowed = false\r\n }\r\n\r\n return (\r\n \r\n {\r\n if (\r\n !localStorage.getItem(\"username\") ||\r\n !localStorage.getItem(\"accessToken\")\r\n ) {\r\n localStorage.setItem(\"redirectPath\", PATH_NAME)\r\n return \r\n }\r\n if (isRedirect) {\r\n return \r\n }\r\n //istanbul ignore next\r\n if (isNotallowed) {\r\n return \r\n }\r\n //istanbul ignore next\r\n if (allowed) {\r\n return \r\n } else {\r\n return \r\n }\r\n }}\r\n />\r\n \r\n )\r\n}\r\nexport default AuthenticatedGuard\r\n","import { Grid, Button, Alert, AlertTitle } from \"@mui/material\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport GlobalTable from \"src/components/GlobalTable/GlobalTable\"\r\nimport RemoveRedEyeOutlinedIcon from \"@mui/icons-material/RemoveRedEyeOutlined\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport CancelOutlinedIcon from \"@mui/icons-material/CancelOutlined\"\r\nimport HistoryIcon from \"@mui/icons-material/History\"\r\nimport { filterByHelper, getTranslations } from \"src/utils/helper\"\r\nimport UploadStatusFilter from \"./UploadStatusFilter\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport store from \"../../redux/store\"\r\nimport { PAGE_REFRESH_TIME, UPLOAD_STATUS } from \"src/utils/constants\"\r\nimport DateFormat from \"src/components/DateFormat\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { clearPoll, intervalVarNames } from \"src/service/poll.service\"\r\nimport { UploadFileService } from \"src/service/uploadfile.service\"\r\nimport {\r\n setUploadFilesStatusRecordsInitialResp,\r\n setUploadFilesStatusRecordsRender,\r\n setUploadStatusFilterDatas\r\n} from \"src/redux/slices/uploadFileSlice\"\r\nimport { Warning } from \"@mui/icons-material\"\r\n\r\nlet isAPIInProgress = false\r\nlet pollId\r\n\r\nconst UploadStatusDetails = ({\r\n hideFilter,\r\n showFilterPage,\r\n sendFilterDataToParent\r\n}) => {\r\n const [loading, setLoading] = useState(false)\r\n const [renderFilterData, setRenderFilterData] = useState([] as any)\r\n const dispatch = useAppThunkDispatch()\r\n const { t } = useTranslation()\r\n const [uploadAlert, setUploadAlert] = useState(false)\r\n const uploadFiles = useSelector((state: RootState) => state.uploadFiles)\r\n const { uploadStatusFilters, uploadStatusFilterDatas } = uploadFiles || {}\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n useEffect(() => {\r\n if (uploadStatusFilters?.sDate) {\r\n setRenderFilterData(uploadStatusFilterDatas)\r\n }\r\n }, [renderFilterData])\r\n\r\n useEffect(() => {\r\n let timer\r\n if (uploadAlert) {\r\n timer = setTimeout(() => setUploadAlert(false), 3000)\r\n }\r\n return () => clearTimeout(timer)\r\n }, [uploadAlert])\r\n\r\n const uploadFileService = new UploadFileService()\r\n const [initialResp, setInitialResp] = useState([] as any)\r\n\r\n const getIcon = statusValue => {\r\n if (\r\n statusValue.toLowerCase() === UPLOAD_STATUS.received ||\r\n statusValue.toLowerCase() === UPLOAD_STATUS.successful ||\r\n statusValue.toLowerCase() === UPLOAD_STATUS.finished\r\n ) {\r\n return \r\n } else if (statusValue.toLowerCase() === UPLOAD_STATUS.processing) {\r\n return \r\n } else if (statusValue.toLowerCase() === UPLOAD_STATUS.failed) {\r\n return \r\n }\r\n }\r\n //istanbul ignore next\r\n const pollApi = async () => {\r\n if (customerId) {\r\n pollId = setTimeout(() => {\r\n getUploadStatus(customerId, true)\r\n pollApi()\r\n }, PAGE_REFRESH_TIME)\r\n }\r\n }\r\n\r\n const clearPagePoll = () => {\r\n clearPoll([intervalVarNames.UPLOADSTATUS], \"uploadStatus\")\r\n if (pollId) clearInterval(pollId)\r\n }\r\n\r\n const init = () => {\r\n if (customerId && !isAPIInProgress) {\r\n clearPagePoll()\r\n getUploadStatus(customerId)\r\n pollApi()\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (customerId) {\r\n init()\r\n }\r\n return () => {\r\n clearPagePoll()\r\n }\r\n }, [customerId])\r\n\r\n const formatData = (data: any) => {\r\n if (!data || !data.length) {\r\n return []\r\n }\r\n\r\n let formated = data.map(item => {\r\n let recordId: any = new Date(item.droppedOffAt).getTime()\r\n recordId = `${item.fileName}-${recordId}`\r\n return { ...item, recordId }\r\n })\r\n return formated\r\n }\r\n\r\n const getUploadStatus = async (customerId, isPoll: boolean = false) => {\r\n try {\r\n isAPIInProgress = true\r\n if (!isPoll) {\r\n setLoading(true)\r\n }\r\n await uploadFileService\r\n .getUploadFilesViewStatus(customerId)\r\n .then((temp: any) => {\r\n //istanbul ignore if\r\n if (isPoll) {\r\n let newformatedData = formatData(temp.data)\r\n let newState =\r\n store.getState().uploadFiles.uploadFilesStatusRecordsRender\r\n let exisistFormatingData = [...newState]\r\n exisistFormatingData = exisistFormatingData.map(item => {\r\n let newMatched = newformatedData.find(\r\n record => record.recordId === item.recordId\r\n )\r\n if (newMatched) {\r\n if (item.status !== newMatched.status) {\r\n return { ...item, status: newMatched.status }\r\n }\r\n }\r\n return item\r\n })\r\n\r\n setRenderFilterData(exisistFormatingData)\r\n } else {\r\n const formatted = formatData(temp.data)\r\n setInitialResp(formatted)\r\n setRenderFilterData(formatted)\r\n dispatch(setUploadFilesStatusRecordsInitialResp(formatted))\r\n dispatch(setUploadFilesStatusRecordsRender(formatted))\r\n }\r\n })\r\n .finally(() => {\r\n isAPIInProgress = false\r\n setLoading(false)\r\n })\r\n } catch (_error) {\r\n setLoading(false)\r\n }\r\n }\r\n\r\n const getStatusColor = statusValue => {\r\n if (statusValue.toLowerCase() === UPLOAD_STATUS.received) {\r\n return \"info\"\r\n } else if (\r\n statusValue.toLowerCase() === UPLOAD_STATUS.successful ||\r\n statusValue.toLowerCase() === UPLOAD_STATUS.finished\r\n ) {\r\n return \"success\"\r\n } else if (statusValue.toLowerCase() === UPLOAD_STATUS.processing) {\r\n return \"info-light\"\r\n } else if (statusValue.toLowerCase() === UPLOAD_STATUS.failed) {\r\n return \"error\"\r\n }\r\n }\r\n\r\n const getAppliedValues = sDate => {\r\n sendFilterDataToParent(sDate)\r\n let filters: any = []\r\n let filtered: any[] = []\r\n if (sDate) {\r\n filters.push({\r\n field: \"droppedOffAt\",\r\n value: sDate,\r\n func: \"equalDate\",\r\n isConverstionRequired: true\r\n })\r\n }\r\n filtered = filterByHelper(filters, initialResp)\r\n dispatch(setUploadStatusFilterDatas([...filtered]))\r\n hideFilter()\r\n }\r\n\r\n const cancelClick = () => {\r\n hideFilter()\r\n }\r\n const displaySpan = (props: any) => {\r\n return (\r\n \r\n {props.value ? props.value : \"-\"}\r\n \r\n )\r\n }\r\n const handleViewErrors = props => {\r\n const errorsFilePath = props?.row?.original?.errorsFilePath\r\n if (errorsFilePath) {\r\n window.open(errorsFilePath, \"_blank\")\r\n } else {\r\n setUploadAlert(true)\r\n }\r\n }\r\n\r\n const handleViewTotal = props => {\r\n const totalsFilePath = props?.row?.original?.totalsFilePath\r\n if (totalsFilePath) {\r\n window.open(totalsFilePath, \"_blank\")\r\n } else {\r\n setUploadAlert(true)\r\n }\r\n }\r\n const renderUploadAlert = () => (\r\n }\r\n className=\"custom-alert top\"\r\n >\r\n \r\n {getTranslations(t, Translates.Error)}\r\n \r\n {getTranslations(t, Translates.File_Path_Not_Available)}\r\n \r\n )\r\n\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.FILE_NAME),\r\n accessor: \"fileName\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 250,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Uploaded_By),\r\n accessor: \"droppedOffBy\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Uploaded_At),\r\n accessor: \"droppedOffAt\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n let propsToDate: any = { ...props, isLocal: true }\r\n return \r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Status),\r\n accessor: \"status\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n return props.value ? (\r\n \r\n {getIcon(props?.value)}\r\n {getTranslations(t, props?.value?.toLowerCase())}\r\n \r\n ) : (\r\n \"-\"\r\n )\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\", // accessor is the \"key\" in the dat\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n return (\r\n \r\n {props?.row?.original?.status?.toLowerCase() ===\r\n UPLOAD_STATUS.failed ? (\r\n handleViewErrors(props)}\r\n >\r\n \r\n \r\n {getTranslations(t, Translates.View_Errors)}\r\n \r\n \r\n ) : props?.row?.original?.status?.toLowerCase() ===\r\n UPLOAD_STATUS.finished ? (\r\n handleViewTotal(props)}\r\n >\r\n \r\n \r\n {getTranslations(t, Translates.View_Total)}\r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n \r\n )\r\n }\r\n }\r\n ],\r\n [initialResp, t]\r\n )\r\n\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n\r\n return (\r\n
    \r\n {uploadAlert && renderUploadAlert()}\r\n {loading ? Loader() : displayGrid()}\r\n {showFilterPage ? (\r\n \r\n ) : null}\r\n
    \r\n )\r\n}\r\nexport default UploadStatusDetails\r\n","import MainLayout from \"src/layouts/MainLayout\"\r\nimport LiveEventsToolBar from \"src/components/LiveEventsToolBar/LiveEventsToolBar\"\r\nimport { Box, Tab, Tabs, Typography } from \"@mui/material\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport EventTiles from \"./EventTiles\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport { LiveEventsService } from \"src/service/liveEvents.service\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { useTranslation } from \"react-i18next\"\r\n// import moment from \"moment\"\r\nimport moment from \"moment-timezone\"\r\nimport {\r\n filterByHelper,\r\n getTranslations,\r\n searchLiveEvents\r\n} from \"src/utils/helper\"\r\nimport InfoIcon from \"@mui/icons-material/Info\"\r\nimport { PAGE_REFRESH_TIME_1MINS, PAGE_REFRESH_TIME_10MINS } from \"src/utils/constants\"\r\n\r\ninterface TabPanelProps {\r\n children?: React.ReactNode\r\n index: number\r\n value: number\r\n}\r\nlet pollId\r\nconst LiveEvents = () => {\r\n const [value, setValue] = React.useState(1)\r\n const [eventsData, setEventsData] = useState({} as any)\r\n const [pollingCount, setPollingCount] = useState(0)\r\n const [eventsDataList, setEventsDataList] = useState([] as any)\r\n const [loading, setLoading] = useState(false)\r\n const liveEventsService = new LiveEventsService()\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const customerList = useSelector(\r\n (state: RootState) => state.settings?.customers\r\n )\r\n const selectedCustomerList = (customerList || []).filter(\r\n (c: any) => c.selected\r\n )\r\n let date = new Date()\r\n const { t } = useTranslation()\r\n const [filterNum, setFilterNum] = useState(0)\r\n const [showFilter, setShowFilter] = useState(false)\r\n const [searched, setSearched] = useState(false)\r\n const liveEventsFilterForm = useSelector(\r\n (state: RootState) => state.liveEvents?.liveEventsFilterForm || {}\r\n )\r\n // const timeStampSample = \"YYYY-MM-DD[T]00:31:33.685[Z]\"\r\n const hideFilter = () => {\r\n setShowFilter(false)\r\n }\r\n\r\n const pollApi = async () => {\r\n if (customerId) {\r\n pollId = setTimeout(async () => {\r\n const currentDate = getSelectedDate(value)\r\n await getDaysEvents(currentDate, false)\r\n setPollingCount(oldVal => oldVal + 1)\r\n pollApi()\r\n }, PAGE_REFRESH_TIME_10MINS)\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted && (customerId || customerList?.length)) {\r\n const currentDate = getSelectedDate(value)\r\n getDaysEvents(currentDate)\r\n pollApi()\r\n }\r\n return () => {\r\n if (pollId) {\r\n clearInterval(pollId)\r\n }\r\n isMounted = false\r\n }\r\n }, [customerId, customerList?.length, value])\r\n\r\n const getTimeZoneName = () => {\r\n // const now = new Date();\r\n // const formatter = new Intl.DateTimeFormat(\"en-US\", { timeZoneName: \"long\" });\r\n // const parts = formatter.formatToParts(now);\r\n // return parts.find(part => part.type === \"timeZoneName\")?.value || \"Eastern Standard Time \";\r\n\r\n return \"Eastern Standard Time \"\r\n };\r\n \r\n const getDaysEvents = async (eventDate, isLoadingTrigger = true) => {\r\n const payloadToAdd = selectedCustomerList.map((c: any) => c.idCustomer)\r\n isLoadingTrigger && setLoading(true)\r\n await liveEventsService\r\n .getLiveEvents({ customerIds: payloadToAdd, date: eventDate, LoggedInUserTimeZone: getTimeZoneName() })\r\n .then((temp: any) => {\r\n if (temp.data) {\r\n setEventsData(temp.data)\r\n setEventsDataList(temp.data.eventsDetails || [])\r\n }\r\n })\r\n .catch(_error => {})\r\n .finally(() => {\r\n setLoading(false)\r\n })\r\n }\r\n\r\n const handleChange = (_event: React.SyntheticEvent, newValue: number) => {\r\n setValue(newValue)\r\n }\r\n\r\n \r\n\r\n const getSelectedDate = tabValue => {\r\n let selectedDate = \"\"\r\n if (tabValue === 0) {\r\n // selectedDate = moment(date).subtract(1, \"day\").format()\r\n // we want to send EST time always\r\n selectedDate = moment().tz(\"America/New_York\").subtract(1, \"day\").format()\r\n } else if (tabValue === 1) {\r\n // selectedDate = moment(date).format()\r\n selectedDate = moment().tz(\"America/New_York\").format()\r\n } else {\r\n // selectedDate = moment(date).add(1, \"day\").format()\r\n selectedDate = moment().tz(\"America/New_York\").add(1, \"day\").format()\r\n }\r\n return selectedDate\r\n }\r\n\r\n function a11yProps(index: number) {\r\n return {\r\n id: `simple-tab-${index}`,\r\n \"aria-controls\": `simple-tabpanel-${index}`\r\n }\r\n }\r\n\r\n function TabPanel({ children, value, index, ...other }: TabPanelProps) {\r\n const panelClassName = value === index ? \"tabpanel show\" : \"tabpanel\"\r\n return (\r\n \r\n {value === index && (\r\n \r\n {children}\r\n \r\n )}\r\n \r\n )\r\n }\r\n\r\n const handleSearch = searchVal => {\r\n let searchedEvents = searchLiveEvents(searchVal, eventsData?.eventsDetails)\r\n if (searchVal) {\r\n setSearched(true)\r\n } else {\r\n setSearched(false)\r\n }\r\n setLoading(true)\r\n setEventsDataList(searchedEvents || [])\r\n setLoading(false)\r\n }\r\n let eventsLength = Object.keys(eventsData)?.length\r\n let content = eventsLength ? (\r\n
    \r\n \r\n {getTranslations(t, Translates.No_Events_Found)}\r\n
    \r\n ) : (\r\n Loader()\r\n )\r\n const getEventsTiles = () => {\r\n return eventsData?.eventsDetails?.length ? (\r\n \r\n ) : (\r\n content\r\n )\r\n }\r\n const sendFilterDataToParent = filters => {\r\n const region1Length = filters.region1?.length || 0\r\n const region2Length = filters.region2?.length || 0\r\n const region3Length = filters.region3?.length || 0\r\n const region4Length = filters.region4?.length || 0\r\n const countryLength = filters.country?.length || 0\r\n const stateLength = filters.state?.length || 0\r\n const statusLength =\r\n filters.eventStatus?.length === 4 ? 0 : filters.eventStatus?.length || 0\r\n const eventStartDateLength = filters.currentDate ? 1 : 0\r\n const num =\r\n region1Length +\r\n region2Length +\r\n region3Length +\r\n region4Length +\r\n countryLength +\r\n stateLength +\r\n statusLength +\r\n eventStartDateLength\r\n setFilterNum(num)\r\n return num\r\n }\r\n\r\n const handleFilter = () => {\r\n if (!showFilter) {\r\n setShowFilter(true)\r\n } else {\r\n setShowFilter(false)\r\n }\r\n }\r\n // Checking if any filter applied\r\n const hasFilterValues = () => {\r\n const hasFilters =\r\n Object.keys(liveEventsFilterForm)?.length &&\r\n (liveEventsFilterForm.country?.length > 0 ||\r\n liveEventsFilterForm.state?.length > 0 ||\r\n liveEventsFilterForm.currentDate !== \"\" ||\r\n liveEventsFilterForm.region1?.length > 0 ||\r\n liveEventsFilterForm.region2?.length > 0 ||\r\n liveEventsFilterForm.region3?.length > 0 ||\r\n liveEventsFilterForm.region4?.length > 0 ||\r\n liveEventsFilterForm.eventStatus?.length > 0)\r\n return hasFilters\r\n }\r\n\r\n // Function to get the filtered event count based on dateKey\r\n const getFilteredEventCount = dateKey => {\r\n const filteredEvents = getAppliedValues(liveEventsFilterForm)\r\n\r\n // Add date filtering based on the dateKey\r\n const dateFilteredEvents = filteredEvents.filter(event => {\r\n const CurrenteventDate = moment(event.eventStartDate).format(\"YYYY-MM-DD\")\r\n const today = moment(new Date()).format(\"YYYY-MM-DD\")\r\n const yesterday = moment().subtract(1, \"day\").format(\"YYYY-MM-DD\")\r\n const tomorrow = moment().add(1, \"day\").format(\"YYYY-MM-DD\")\r\n\r\n switch (dateKey) {\r\n case \"yesterday\":\r\n return CurrenteventDate === yesterday\r\n case \"today\":\r\n return moment(CurrenteventDate).isSameOrBefore(today)\r\n\r\n case \"tomorrow\":\r\n return CurrenteventDate === tomorrow\r\n\r\n default:\r\n return false\r\n }\r\n })\r\n\r\n return dateFilteredEvents.length\r\n }\r\n // Getting the filtered data\r\n const getAppliedValues = filteredData => {\r\n const filters: any = []\r\n\r\n if (filteredData.country?.length > 0) {\r\n filters.push({\r\n field: \"country\",\r\n value: filteredData.country,\r\n func: \"equalString\"\r\n })\r\n }\r\n\r\n if (filteredData.state?.length > 0) {\r\n filters.push({\r\n field: \"state\",\r\n value: filteredData.state,\r\n func: \"equalString\"\r\n })\r\n }\r\n\r\n if (filteredData.currentDate) {\r\n filters.push({\r\n field: \"eventStartDate\",\r\n value: moment(filteredData?.currentDate)?.format(\"YYYY-MM-DD\"),\r\n func: \"equalDate\"\r\n })\r\n }\r\n\r\n if (filteredData.eventStatus?.length > 0) {\r\n filters.push({\r\n field: \"status\",\r\n value: filteredData.eventStatus,\r\n func: \"equals\"\r\n })\r\n }\r\n\r\n const regionFields = [\"region1\", \"region2\", \"region3\", \"region4\"]\r\n regionFields.forEach(field => {\r\n if (filteredData[field]?.length > 0) {\r\n filters.push({\r\n field: field,\r\n value: filteredData[field],\r\n func: \"equals\"\r\n })\r\n }\r\n })\r\n const filtered = filterByHelper(filters, eventsData?.eventsDetails)\r\n return filtered\r\n }\r\n\r\n // Calculate tab labels with filtered event counts\r\n const tabLabels = [\r\n {\r\n // label: `${getTranslations(t, Translates.Yesterday)}`,\r\n label: moment()\r\n .locale(\"en\")\r\n .tz(\"America/New_York\")\r\n .subtract(1, \"day\")\r\n .format(\"MMMM D YYYY\"),\r\n count: hasFilterValues()\r\n ? getFilteredEventCount(\"yesterday\")\r\n : eventsData?.yesterdayEventsCount || 0\r\n },\r\n {\r\n // label: `${getTranslations(t, Translates.Today)}`,\r\n label: moment().locale(\"en\").tz(\"America/New_York\").format(\"MMMM D YYYY\"),\r\n count: hasFilterValues()\r\n ? getFilteredEventCount(\"today\")\r\n : eventsData?.todayEventsCount || 0\r\n },\r\n {\r\n // label: `${getTranslations(t, Translates.Tomorrow)}`,\r\n label: moment()\r\n .locale(\"en\")\r\n .tz(\"America/New_York\")\r\n .add(1, \"day\")\r\n .format(\"MMMM D YYYY\"),\r\n count: hasFilterValues()\r\n ? getFilteredEventCount(\"tomorrow\")\r\n : eventsData?.tomorrowEventsCount || 0\r\n }\r\n ]\r\n\r\n return (\r\n \r\n 0 ? filterNum : 0}\r\n tabValue={value}\r\n pollingCount={pollingCount}\r\n />\r\n
    \r\n \r\n \r\n \r\n {tabLabels.map((tab, index) => (\r\n \r\n ))}\r\n \r\n \r\n {tabLabels.map((tab, index) => (\r\n \r\n {loading ? Loader() : getEventsTiles()}\r\n \r\n ))}\r\n \r\n
    \r\n
    \r\n )\r\n}\r\nexport default LiveEvents\r\n","import { Grid, Alert, AlertTitle, Snackbar, Typography } from \"@mui/material\"\r\nimport csvIcon from \"../../assets/images/CsvIcon.svg\"\r\nimport WarningIcon from \"@mui/icons-material/Warning\"\r\nimport React, { useState, useEffect } from \"react\"\r\nimport MiniHeader from \"src/components/MiniHeader/MiniHeader\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { useDropzone } from \"react-dropzone\"\r\nimport { setBulkLocationFile } from \"src/redux/slices/settingsSlice\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { read, utils } from \"xlsx\"\r\nimport {\r\n createURLFromByteArray,\r\n fileExtensionCheck,\r\n getTranslations,\r\n processCSV\r\n} from \"src/utils/helper\"\r\nimport BulkFIleUpload from \"../Component/BulkFIleUpload\"\r\nimport { BULK_UPLOADING } from \"src/utils/constants\"\r\n\r\n\r\nconst CreateLocationBulk = ({ setPage }) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const [progress, setProgress] = useState(0)\r\n const dispatch = useAppThunkDispatch()\r\n const [showPopup, setShowPopup] = useState(false)\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const bulkLocationFilePath = useSelector(\r\n (state: RootState) => state.settings?.bulkLocationFilePath\r\n )\r\n const locationCsvData = useSelector(\r\n (state: RootState) => state.settings.locationFileData\r\n )\r\n const template = useSelector(\r\n (state: RootState) => state.auth?.templates.LOCATION\r\n )\r\n const [alertError, setAlertError] = React.useState({ title: \"\", content: \"\" })\r\n const [files, setFiles] = useState([] as any)\r\n const [snackBar, setSnackBar] = useState({\r\n open: false,\r\n message: \"\",\r\n autoHideDuration: 3000\r\n })\r\n // istanbul ignore next\r\n const onSnackClose = () => {\r\n setSnackBar({ ...snackBar, open: false })\r\n }\r\n useEffect(() => {\r\n if (Array.isArray(locationCsvData) && locationCsvData.length === 0) {\r\n setAlertError({\r\n title: getTranslations(t, Translates.No_data_found),\r\n content: getTranslations(\r\n t,\r\n Translates.Please_ensure_the_file_you_are_uploading_contains_data\r\n )\r\n })\r\n }\r\n }, [locationCsvData])\r\n const { getRootProps } = useDropzone({\r\n multiple: false,\r\n accept: {\r\n \"text/csv\": [\".csv\"]\r\n },\r\n onError: error => {},\r\n onDrop: (acceptedFiles, rejectedFiles) => {\r\n // istanbul ignore next\r\n if (rejectedFiles.length) {\r\n setAlertError(oldVal => ({\r\n ...oldVal,\r\n severity: \"error\",\r\n title: getTranslations(t, Translates.Error),\r\n content: getTranslations(t, Translates.File_type_must_be_csv)\r\n }))\r\n }\r\n // istanbul ignore next\r\n else if (acceptedFiles.length) {\r\n const fileName: string = acceptedFiles[0].name\r\n\r\n let errorFind = 0\r\n if (!fileExtensionCheck({ fileName, setAlertError, t })) {\r\n errorFind++\r\n }\r\n\r\n if (errorFind <= 0) {\r\n setAlertError({ title: \"\", content: \"\" })\r\n setFiles(acceptedFiles)\r\n dispatch(setBulkLocationFile(fileName))\r\n const reader = new FileReader()\r\n reader.addEventListener(\"progress\", event => {\r\n if (event.loaded && event.total) {\r\n const percent = (event.loaded / event.total) * 100\r\n setProgress(percent)\r\n }\r\n })\r\n reader.onload = async ({ target }) => {\r\n // istanbul ignore next\r\n\r\n if (target?.result) {\r\n const workbook = read(target.result, { type: \"binary\" })\r\n const worksheet = workbook.Sheets[workbook.SheetNames[0]]\r\n const csvData = utils.sheet_to_csv(worksheet, { FS: \",\" })\r\n processCSV(\r\n csvData,\r\n dispatch,\r\n BULK_UPLOADING.LOCATION_FILE_UPLOADING\r\n )\r\n }\r\n }\r\n reader.readAsBinaryString(acceptedFiles[0])\r\n }\r\n }\r\n }\r\n })\r\n const handleCsvFile = () => {\r\n return (\r\n
    \r\n \r\n \r\n {files[0]?.path || bulkLocationFilePath}{\" \"}\r\n {getTranslations(t, Translates.file_uploaded)}\r\n \r\n
    \r\n )\r\n }\r\n const handleDataMapping = () => {\r\n setPage(\"page2\")\r\n }\r\n const handleNoCustomerId = () => {\r\n if (!customerId) {\r\n setTimeout(() => {\r\n history.push(PATH.LOCATIONS)\r\n }, 3000)\r\n }\r\n }\r\n const onDeleteClick = e => {\r\n e.stopPropagation()\r\n setShowPopup(true)\r\n }\r\n const onClearClick = e => {\r\n e.stopPropagation()\r\n setShowPopup(false)\r\n }\r\n const onDeleteFileClick = e => {\r\n e.stopPropagation()\r\n setShowPopup(false)\r\n setFiles([])\r\n setAlertError({ title: \"\", content: \"\" })\r\n dispatch(setBulkLocationFile(\"\"))\r\n }\r\n const handleCancelClick = () => {\r\n history.push(PATH.LOCATION_TYPE_SELECT)\r\n }\r\n const saveDisable = () => {\r\n if (bulkLocationFilePath && alertError?.title === \"\") {\r\n return false\r\n } else {\r\n return true\r\n }\r\n }\r\n const showError = () => {\r\n return (\r\n }\r\n data-testid=\"error-alert\"\r\n className=\"custom-alert grey\"\r\n >\r\n \r\n {alertError?.title}\r\n \r\n

    {alertError?.content}

    \r\n \r\n )\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\nexport default React.memo(CreateLocationBulk)\r\n","\r\nexport const LOCATION_FIELD_MAP = {\r\n NAME: \"name\",\r\n SITE_ID: \"siteId\",\r\n BANNER: \"banner\",\r\n PHONE: \"phone\",\r\n EMAIL: \"email\",\r\n REGION_1: \"region1\",\r\n REGION_2: \"region2\",\r\n REGION_3: \"region3\",\r\n REGION_4: \"region4\",\r\n LOCATION_ATTRIBUTE_1: \"locationAttribute1\",\r\n LOCATION_ATTRIBUTE_2: \"locationAttribute2\",\r\n LOCATION_ATTRIBUTE_3: \"locationAttribute3\",\r\n LOCATION_ATTRIBUTE_4: \"locationAttribute4\",\r\n LOCATION_ATTRIBUTE_5: \"locationAttribute5\",\r\n LOCATION_ATTRIBUTE_6: \"locationAttribute6\",\r\n LOCATION_ATTRIBUTE_7: \"locationAttribute7\",\r\n LOCATION_ATTRIBUTE_8: \"locationAttribute8\",\r\n LOCATION_ATTRIBUTE_9: \"locationAttribute9\",\r\n LOCATION_ATTRIBUTE_10: \"locationAttribute10\",\r\n ADDRESS_1: \"address1\",\r\n ADDRESS_2: \"address2\",\r\n ADDRESS_3: \"address3\",\r\n CITY: \"city\",\r\n STATE: \"state\",\r\n POSTAL_CODE: \"postalCode\",\r\n COUNTRY: \"country\"\r\n};\r\n","import { Grid, Divider } from \"@mui/material\"\r\nimport ForwardIcon from \"@mui/icons-material/Forward\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport MiniHeader from \"src/components/MiniHeader/MiniHeader\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport {\r\n setLocationMappingData,\r\n setLocationReset,\r\n setMappingPayloadData\r\n} from \"src/redux/slices/settingsSlice\"\r\nimport { SettingsService } from \"src/service/settings.service\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { encryptBulkColumns, getTranslations } from \"src/utils/helper\"\r\nimport BulkDataSelectField from \"../Component/BulkDataSelectField\"\r\nimport BulkUploadButtons from \"../Component/BulkUploadButtons\"\r\nimport LocationAndScheduleTopHeadings from \"../Component/LocationAndScheduleTopHeadings\"\r\nimport { LOCATION_FIELD_MAP } from \"./LocationHelper\"\r\nimport { PromptTypes } from \"src/utils/constants\"\r\n\r\nconst LocationBulkDataMapping = ({ setPage }) => {\r\n const [locationData, setLocationData] = useState({} as any)\r\n const { t } = useTranslation()\r\n const dispatch = useAppThunkDispatch()\r\n const history = useHistory()\r\n const [bulkData, setBulkData] = useState([] as any)\r\n const settingsService = new SettingsService()\r\n const locationFileData: any = useSelector(\r\n (state: RootState) => state.settings?.locationFileData\r\n )\r\n const locationMappingData = useSelector(\r\n (state: RootState) => state.settings?.locationMappingData\r\n )\r\n const csvLocationColumnList = useSelector(\r\n (state: RootState) => state.settings?.csvLocationColumnList\r\n )\r\n const [fileDataString, setFileDataString] = useState(\"\" as any)\r\n const getColumnHeader = value => {\r\n if (csvLocationColumnList?.includes(value)) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n const getIndividualLocationDetail = val => {\r\n if (val === \"name\") {\r\n if (locationMappingData.name) {\r\n return locationMappingData.name\r\n } else return getColumnHeader(\"Name\") ? \"Name\" : \"\"\r\n } else if (val === \"siteId\") {\r\n if (locationMappingData.siteId) {\r\n return locationMappingData.siteId\r\n } else return getColumnHeader(\"Site ID\") ? \"Site ID\" : \"\"\r\n } else if (val === \"banner\") {\r\n if (locationMappingData.banner) {\r\n return locationMappingData.banner\r\n } else return getColumnHeader(\"Banner\") ? \"Banner\" : \"\"\r\n } else if (val === \"phone\") {\r\n if (locationMappingData.phone) {\r\n return locationMappingData.phone\r\n } else return getColumnHeader(\"Phone\") ? \"Phone\" : \"\"\r\n } else if (val === \"email\") {\r\n if (locationMappingData.email) {\r\n return locationMappingData.email\r\n } else return getColumnHeader(\"Email\") ? \"Email\" : \"\"\r\n } else if (val === \"region1\") {\r\n if (locationMappingData.region1) {\r\n return locationMappingData.region1\r\n } else return getColumnHeader(\"Region 1\") ? \"Region 1\" : \"\"\r\n } else if (val === \"region2\") {\r\n if (locationMappingData.region2) {\r\n return locationMappingData.region2\r\n } else return getColumnHeader(\"Region 2\") ? \"Region 2\" : \"\"\r\n } else if (val === \"region3\") {\r\n if (locationMappingData.region3) {\r\n return locationMappingData.region3\r\n } else return getColumnHeader(\"Region 3\") ? \"Region 3\" : \"\"\r\n } else if (val === \"region4\") {\r\n if (locationMappingData.region4) {\r\n return locationMappingData.region4\r\n } else return getColumnHeader(\"Region 4\") ? \"Region 4\" : \"\"\r\n } else if (val === \"locationAttribute1\") {\r\n if (locationMappingData.locationAttribute1) {\r\n return locationMappingData.locationAttribute1\r\n } else return getColumnHeader(\"Attribute 1\") ? \"Attribute 1\" : \"\"\r\n } else if (val === \"locationAttribute2\") {\r\n if (locationMappingData.locationAttribute2) {\r\n return locationMappingData.locationAttribute2\r\n } else return getColumnHeader(\"Attribute 2\") ? \"Attribute 2\" : \"\"\r\n } else if (val === \"locationAttribute3\") {\r\n if (locationMappingData.locationAttribute3) {\r\n return locationMappingData.locationAttribute3\r\n } else return getColumnHeader(\"Attribute 3\") ? \"Attribute 3\" : \"\"\r\n } else if (val === \"locationAttribute4\") {\r\n if (locationMappingData.locationAttribute4) {\r\n return locationMappingData.locationAttribute4\r\n } else return getColumnHeader(\"Attribute 4\") ? \"Attribute 4\" : \"\"\r\n } else if (val === \"locationAttribute5\") {\r\n if (locationMappingData.locationAttribute5) {\r\n return locationMappingData.locationAttribute5\r\n } else return getColumnHeader(\"Attribute 5\") ? \"Attribute 5\" : \"\"\r\n } else if (val === \"locationAttribute6\") {\r\n if (locationMappingData.locationAttribute6) {\r\n return locationMappingData.locationAttribute6\r\n } else return getColumnHeader(\"Attribute 6\") ? \"Attribute 6\" : \"\"\r\n } else if (val === \"locationAttribute7\") {\r\n if (locationMappingData.locationAttribute7) {\r\n return locationMappingData.locationAttribute7\r\n } else return getColumnHeader(\"Attribute 7\") ? \"Attribute 7\" : \"\"\r\n } else if (val === \"locationAttribute8\") {\r\n if (locationMappingData.locationAttribute8) {\r\n return locationMappingData.locationAttribute8\r\n } else return getColumnHeader(\"Attribute 8\") ? \"Attribute 8\" : \"\"\r\n } else if (val === \"locationAttribute9\") {\r\n if (locationMappingData.locationAttribute9) {\r\n return locationMappingData.locationAttribute9\r\n } else return getColumnHeader(\"Attribute 9\") ? \"Attribute 9\" : \"\"\r\n } else if (val === \"locationAttribute10\") {\r\n if (locationMappingData.locationAttribute10) {\r\n return locationMappingData.locationAttribute10\r\n } else return getColumnHeader(\"Attribute 10\") ? \"Attribute 10\" : \"\"\r\n } else if (val === \"address1\") {\r\n if (locationMappingData.address1) {\r\n return locationMappingData.address1\r\n } else return getColumnHeader(\"Address 1\") ? \"Address 1\" : \"\"\r\n } else if (val === \"address2\") {\r\n if (locationMappingData.address2) {\r\n return locationMappingData.address2\r\n } else return getColumnHeader(\"Address 2\") ? \"Address 2\" : \"\"\r\n } else if (val === \"address3\") {\r\n if (locationMappingData.address3) {\r\n return locationMappingData.address3\r\n } else return getColumnHeader(\"Address 3\") ? \"Address 3\" : \"\"\r\n } else if (val === \"city\") {\r\n if (locationMappingData.city) {\r\n return locationMappingData.city\r\n } else return getColumnHeader(\"City\") ? \"City\" : \"\"\r\n } else if (val === \"state\") {\r\n if (locationMappingData.state) {\r\n return locationMappingData.state\r\n } else return getColumnHeader(\"State\") ? \"State\" : \"\"\r\n } else if (val === \"country\") {\r\n if (locationMappingData.country) {\r\n return locationMappingData.country\r\n } else return getColumnHeader(\"Country\") ? \"Country\" : \"\"\r\n } else {\r\n if (locationMappingData.postalCode) {\r\n return locationMappingData.postalCode\r\n } else return getColumnHeader(\"Postal Code\") ? \"Postal Code\" : \"\"\r\n }\r\n }\r\n const getLocationDetails = () => {\r\n return {\r\n name: getIndividualLocationDetail(\"name\"),\r\n siteId: getIndividualLocationDetail(\"siteId\"),\r\n banner: getIndividualLocationDetail(\"banner\"),\r\n phone: getIndividualLocationDetail(\"phone\"),\r\n email: getIndividualLocationDetail(\"email\"),\r\n region1: getIndividualLocationDetail(\"region1\"),\r\n region2: getIndividualLocationDetail(\"region2\"),\r\n region3: getIndividualLocationDetail(\"region3\"),\r\n region4: getIndividualLocationDetail(\"region4\"),\r\n locationAttribute1: getIndividualLocationDetail(\"locationAttribute1\"),\r\n locationAttribute2: getIndividualLocationDetail(\"locationAttribute2\"),\r\n locationAttribute3: getIndividualLocationDetail(\"locationAttribute3\"),\r\n locationAttribute4: getIndividualLocationDetail(\"locationAttribute4\"),\r\n locationAttribute5: getIndividualLocationDetail(\"locationAttribute5\"),\r\n locationAttribute6: getIndividualLocationDetail(\"locationAttribute6\"),\r\n locationAttribute7: getIndividualLocationDetail(\"locationAttribute7\"),\r\n locationAttribute8: getIndividualLocationDetail(\"locationAttribute8\"),\r\n locationAttribute9: getIndividualLocationDetail(\"locationAttribute9\"),\r\n locationAttribute10: getIndividualLocationDetail(\"locationAttribute10\"),\r\n address1: getIndividualLocationDetail(\"address1\"),\r\n address2: getIndividualLocationDetail(\"address2\"),\r\n address3: getIndividualLocationDetail(\"address3\"),\r\n city: getIndividualLocationDetail(\"city\"),\r\n state: getIndividualLocationDetail(\"state\"),\r\n postalCode: getIndividualLocationDetail(\"postalCode\"),\r\n country: getIndividualLocationDetail(\"country\")\r\n }\r\n }\r\n const [locationDetails, setLocationDetails] = useState(getLocationDetails())\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n useEffect(() => {\r\n getFileData()\r\n getLocationsByStore()\r\n }, [customerId])\r\n useEffect(() => {\r\n getLocationsByStore()\r\n }, [])\r\n const getLocationsByStore = async () => {\r\n try {\r\n await settingsService\r\n .getLocationsByStore([customerId])\r\n .then((temp: any) => {\r\n setLocationData(temp.data[0])\r\n })\r\n } catch (_error) {\r\n console.error(_error)\r\n }\r\n }\r\n\r\n const getFileData = () => {\r\n const _fileData = JSON.parse(locationFileData)?.map(item => {\r\n return {\r\n ...item,\r\n \"Address 2\": item[\"Address 2\"] === \"-\" ? \"\" : item[\"Address 2\"],\r\n \"Address 3\": item[\"Address 3\"] === \"-\" ? \"\" : item[\"Address 3\"]\r\n }\r\n })\r\n setFileDataString(JSON.stringify(_fileData))\r\n let keys: any = csvLocationColumnList\r\n setBulkData(keys)\r\n setLocationDetails(getLocationDetails())\r\n }\r\n\r\n const handleNoCustomerId = () => {\r\n if (!customerId) {\r\n setTimeout(() => {\r\n history.push(PATH.LOCATIONS)\r\n }, 3000)\r\n }\r\n }\r\n\r\n const handleChangeLocation = (e, field: any) => {\r\n let locDetails = { ...locationDetails }\r\n locDetails[field] = e.target.value\r\n setLocationDetails({\r\n ...locDetails\r\n })\r\n }\r\n const handleValidation = () => {\r\n dispatch(setLocationMappingData(locationDetails))\r\n sendPayload()\r\n }\r\n const sendPayload = () => {\r\n const COLUMNS = [\r\n {\r\n dataAttribute: \"Name\",\r\n csvAttribute: locationDetails.name\r\n },\r\n {\r\n dataAttribute: \"Site ID\",\r\n csvAttribute: locationDetails.siteId\r\n },\r\n {\r\n dataAttribute: \"Banner\",\r\n csvAttribute: locationDetails.banner\r\n },\r\n {\r\n dataAttribute: \"Phone\",\r\n csvAttribute: locationDetails.phone\r\n },\r\n {\r\n dataAttribute: \"Email\",\r\n csvAttribute: locationDetails.email\r\n },\r\n {\r\n dataAttribute: \"Region 1\",\r\n csvAttribute: locationDetails.region1\r\n },\r\n {\r\n dataAttribute: \"Region 2\",\r\n csvAttribute: locationDetails.region2\r\n },\r\n {\r\n dataAttribute: \"Region 3\",\r\n csvAttribute: locationDetails.region3\r\n },\r\n {\r\n dataAttribute: \"Region 4\",\r\n csvAttribute: locationDetails.region4\r\n },\r\n {\r\n dataAttribute: \"Attribute 1\",\r\n csvAttribute: locationDetails.locationAttribute1\r\n },\r\n {\r\n dataAttribute: \"Attribute 2\",\r\n csvAttribute: locationDetails.locationAttribute2\r\n },\r\n {\r\n dataAttribute: \"Attribute 3\",\r\n csvAttribute: locationDetails.locationAttribute3\r\n },\r\n {\r\n dataAttribute: \"Attribute 4\",\r\n csvAttribute: locationDetails.locationAttribute4\r\n },\r\n {\r\n dataAttribute: \"Attribute 5\",\r\n csvAttribute: locationDetails.locationAttribute5\r\n },\r\n {\r\n dataAttribute: \"Attribute 6\",\r\n csvAttribute: locationDetails.locationAttribute6\r\n },\r\n {\r\n dataAttribute: \"Attribute 7\",\r\n csvAttribute: locationDetails.locationAttribute7\r\n },\r\n {\r\n dataAttribute: \"Attribute 8\",\r\n csvAttribute: locationDetails.locationAttribute8\r\n },\r\n {\r\n dataAttribute: \"Attribute 9\",\r\n csvAttribute: locationDetails.locationAttribute9\r\n },\r\n {\r\n dataAttribute: \"Attribute 10\",\r\n csvAttribute: locationDetails.locationAttribute10\r\n },\r\n {\r\n dataAttribute: \"Address 1\",\r\n csvAttribute: locationDetails.address1\r\n },\r\n {\r\n dataAttribute: \"Address 2\",\r\n csvAttribute: locationDetails.address2\r\n },\r\n {\r\n dataAttribute: \"Address 3\",\r\n csvAttribute: locationDetails.address3\r\n },\r\n {\r\n dataAttribute: \"City\",\r\n csvAttribute: locationDetails.city\r\n },\r\n {\r\n dataAttribute: \"State\",\r\n csvAttribute: locationDetails.state\r\n },\r\n {\r\n dataAttribute: \"Postal Code\",\r\n csvAttribute: locationDetails.postalCode\r\n },\r\n {\r\n dataAttribute: \"Country\",\r\n csvAttribute: locationDetails.country\r\n }\r\n ].map(i =>\r\n i.csvAttribute === PromptTypes.NONE ? { ...i, csvAttribute: \"\" } : i\r\n )\r\n const payloadToAdd = {\r\n idCustomer: customerId,\r\n IsConfirmed: false,\r\n continueStatus: null,\r\n columns: encryptBulkColumns(COLUMNS),\r\n fileData: fileDataString\r\n }\r\n dispatch(setMappingPayloadData(payloadToAdd))\r\n setPage(\"page3\")\r\n }\r\n const handlePreviousClick = () => {\r\n dispatch(setLocationMappingData(locationDetails))\r\n setPage(\"page1\")\r\n }\r\n const handleCancelClick = () => {\r\n dispatch(setLocationReset())\r\n history.push(PATH.LOCATIONS)\r\n }\r\n const saveDisable = () => {\r\n if (\r\n locationDetails.siteId == \"\" ||\r\n locationDetails.address1 == \"\" ||\r\n locationDetails.city == \"\" ||\r\n locationDetails.state == \"\" ||\r\n locationDetails.postalCode == \"\" ||\r\n locationDetails.country == \"\"\r\n ) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n const bulkDataWithNone = [PromptTypes.NONE, ...bulkData]\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.NAME)\r\n }\r\n fieldIndex={1}\r\n bulkData={bulkDataWithNone}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.SITE_ID)\r\n }\r\n fieldIndex={2}\r\n bulkData={bulkData}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.BANNER)\r\n }\r\n fieldIndex={3}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass={\"mb-0\"}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.PHONE)\r\n }\r\n fieldIndex={4}\r\n bulkData={bulkDataWithNone}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.EMAIL)\r\n }\r\n fieldIndex={5}\r\n bulkData={bulkDataWithNone}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {locationData?.regionalGroup1Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.REGION_1)\r\n }\r\n fieldIndex={6}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.regionalGroup2Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.REGION_2)\r\n }\r\n fieldIndex={7}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.regionalGroup3Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.REGION_3)\r\n }\r\n fieldIndex={8}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.regionalGroup4Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.REGION_4)\r\n }\r\n fieldIndex={9}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n \r\n \r\n \r\n {locationData?.locationAttribute1Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_1\r\n )\r\n }\r\n fieldIndex={10}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute2Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_2\r\n )\r\n }\r\n fieldIndex={11}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute3Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_3\r\n )\r\n }\r\n fieldIndex={12}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute4Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_4\r\n )\r\n }\r\n fieldIndex={13}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute5Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_5\r\n )\r\n }\r\n fieldIndex={14}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute6Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_6\r\n )\r\n }\r\n fieldIndex={15}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute7Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_7\r\n )\r\n }\r\n fieldIndex={16}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute8Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_8\r\n )\r\n }\r\n fieldIndex={17}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute9Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_9\r\n )\r\n }\r\n fieldIndex={18}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n {locationData?.locationAttribute10Label ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(\r\n e,\r\n LOCATION_FIELD_MAP.LOCATION_ATTRIBUTE_10\r\n )\r\n }\r\n fieldIndex={19}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n ) : null}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.ADDRESS_1)\r\n }\r\n fieldIndex={20}\r\n bulkData={bulkData}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.ADDRESS_2)\r\n }\r\n fieldIndex={21}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.ADDRESS_3)\r\n }\r\n fieldIndex={22}\r\n bulkData={bulkDataWithNone}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.CITY)\r\n }\r\n fieldIndex={23}\r\n bulkData={bulkData}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.STATE)\r\n }\r\n fieldIndex={24}\r\n bulkData={bulkData}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.POSTAL_CODE)\r\n }\r\n fieldIndex={25}\r\n bulkData={bulkData}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleChangeLocation(e, LOCATION_FIELD_MAP.COUNTRY)\r\n }\r\n fieldIndex={26}\r\n bulkData={bulkData}\r\n FormControlClass=\"mb-0\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\nexport default React.memo(LocationBulkDataMapping)\r\n","import {\r\n Accordion,\r\n AccordionDetails,\r\n AccordionSummary,\r\n Divider,\r\n FormControl,\r\n FormControlLabel,\r\n Grid,\r\n Radio,\r\n RadioGroup\r\n} from \"@mui/material\"\r\nimport MiniHeader from \"src/components/MiniHeader/MiniHeader\"\r\nimport LinearProgress from \"@mui/material/LinearProgress\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useEffect, useState } from \"react\"\r\nimport { SettingsService } from \"src/service/settings.service\"\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\"\r\nimport shortid from \"shortid\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport BulkUploadButtons from \"../Component/BulkUploadButtons\"\r\nimport { getBulkAPIValidation, getTranslations } from \"src/utils/helper\"\r\nimport { BULK_ACTIONS } from \"src/utils/constants\"\r\n\r\nconst LocationBulkValidation = ({ setPage }) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const settingsService = new SettingsService()\r\n const [loading, setLoading] = useState(false)\r\n const [progress, setProgress] = useState(0)\r\n const [responseData, setResponseData] = useState({} as any)\r\n const [ignoreState, setIgnoreState] = useState(\"\")\r\n const [disable, setDisable] = useState(true)\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const mappingPayloadData = useSelector(\r\n (state: RootState) => state.settings?.mappingPayloadData\r\n )\r\n\r\n useEffect(() => {\r\n LocationValidationPost(false, null)\r\n }, [])\r\n\r\n let config = {\r\n onUploadProgress: progressEvent => {\r\n let percentCompleted = Math.floor(\r\n (progressEvent.loaded * 100) / progressEvent.total\r\n )\r\n setProgress(percentCompleted)\r\n }\r\n }\r\n const LocationValidationPost = async (\r\n isConfirmed: boolean,\r\n confirmationAction: any\r\n ) => {\r\n const _payload = {\r\n idCustomer: mappingPayloadData.idCustomer,\r\n isConfirmed: isConfirmed,\r\n confirmationAction: confirmationAction,\r\n columns: mappingPayloadData.columns,\r\n fileData: mappingPayloadData.fileData\r\n }\r\n if (!isConfirmed) {\r\n setLoading(true)\r\n }\r\n settingsService\r\n .bulkUpdateLocation(_payload, isConfirmed ? {} : config)\r\n .then(res => {\r\n setResponseData(res.data)\r\n setDisable(false)\r\n setLoading(false)\r\n if (isConfirmed) {\r\n history.push(PATH.LOCATIONS)\r\n }\r\n })\r\n .catch(err => {\r\n console.error(err)\r\n })\r\n }\r\n const handleStatusChange = e => {\r\n setIgnoreState(e.target.value)\r\n }\r\n const handleNoCustomerId = () => {\r\n if (!customerId) {\r\n setTimeout(() => {\r\n history.push(PATH.LOCATIONS)\r\n }, 3000)\r\n }\r\n }\r\n const handlePreviousClick = () => {\r\n setPage(\"page2\")\r\n }\r\n const handleCancelClick = () => {\r\n history.push(PATH.LOCATIONS)\r\n }\r\n const saveDisable = () => {\r\n if (disable) {\r\n return true\r\n }\r\n else if(responseData?.recordsToInsert > 0)\r\n {\r\n return false\r\n }\r\n else if (\r\n responseData?.duplicateRowsSiteId?.length > 0 &&\r\n ignoreState === \"\"\r\n ) {\r\n return true\r\n } else if (responseData && responseData.locationErrors?.length > 0) {\r\n return true\r\n } else {\r\n return progress < 100\r\n }\r\n }\r\n const handleImportClick = () => {\r\n let continueStatus: string | null = null\r\n const UPDATE_STRING: string = BULK_ACTIONS?.UPDATE\r\n if (responseData.duplicateRowsSiteId?.length > 0) \r\n {\r\n if (ignoreState === UPDATE_STRING) {\r\n continueStatus = UPDATE_STRING\r\n } else {\r\n continueStatus = BULK_ACTIONS?.IGNORE\r\n }\r\n }\r\n LocationValidationPost(true, continueStatus)\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Validation)}\r\n

    \r\n
    \r\n
    \r\n \r\n

    \r\n {getTranslations(t, Translates.Validation)}{\" \"}\r\n {progress == 100\r\n ? getTranslations(t, Translates.Completed)\r\n : getTranslations(t, Translates.In_Progress)}\r\n

    \r\n \r\n \r\n {progress}% {getTranslations(t, Translates.Completed)}\r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n {!loading ? (\r\n \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Validation_Outcome)}\r\n

    \r\n \r\n

    \r\n {getTranslations(t, Translates.File_Statistics)}\r\n

    \r\n {responseData?.recordsToInsert > 0 ? (\r\n \r\n \r\n
    {`${responseData?.recordsToInsert} ${\r\n responseData?.recordsToInsert > 1\r\n ? getTranslations(\r\n t,\r\n Translates.Records_will_be_inserted\r\n )\r\n : getTranslations(\r\n t,\r\n Translates.Record_will_be_inserted\r\n )\r\n }\r\n `}
    \r\n \r\n
    \r\n ) : (\r\n \r\n \r\n
    \r\n {\" \"}\r\n {getTranslations(\r\n t,\r\n Translates.No_Records_will_be_inserted\r\n )}{\" \"}\r\n
    \r\n \r\n
    \r\n )}\r\n \r\n {responseData?.duplicateRowsSiteId?.length ? (\r\n \r\n }\r\n aria-controls=\"panel1a-content\"\r\n id=\"panel1a-header\"\r\n >\r\n
    \r\n {`${responseData?.duplicateRowsSiteId?.length} ${\r\n responseData?.duplicateRowsSiteId?.length > 1\r\n ? ` ${getTranslations(t, Translates.Sites)}`\r\n : ` ${getTranslations(t, Translates.Site)}`\r\n }`}\r\n {` ${getTranslations(\r\n t,\r\n Translates.already_exist_in_FlexCount\r\n )}`}\r\n
    \r\n\r\n \r\n \r\n \r\n }\r\n label={`${getTranslations(\r\n t,\r\n Translates.Update\r\n )}`}\r\n value={BULK_ACTIONS?.UPDATE}\r\n />\r\n }\r\n label={`${getTranslations(\r\n t,\r\n Translates.Ignore\r\n )}`}\r\n value={BULK_ACTIONS?.IGNORE}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
      \r\n {responseData?.duplicateRowsSiteId?.map(w => {\r\n const locationDuplicates =\r\n getBulkAPIValidation(w)\r\n return (\r\n
    • \r\n {`${getTranslations(\r\n t,\r\n locationDuplicates?.rowPart\r\n )} ${\r\n locationDuplicates?.rowNumber\r\n } : ${getTranslations(\r\n t,\r\n locationDuplicates?.msg\r\n )}`}\r\n
    • \r\n )\r\n })}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n {responseData?.locationErrors?.length ? (\r\n \r\n }\r\n aria-controls=\"panel1a-content\"\r\n id=\"panel1a-header\"\r\n >\r\n
    {`${responseData?.errorRecordsCount} ${\r\n responseData?.errorRecordsCount > 1\r\n ? getTranslations(\r\n t,\r\n Translates.Records_have_errors\r\n )\r\n : getTranslations(\r\n t,\r\n Translates.Record_has_error\r\n )\r\n }`}
    \r\n \r\n \r\n
      \r\n {responseData?.locationErrors?.map((w: any) => {\r\n const locationErr = getBulkAPIValidation(w)\r\n return (\r\n
    • \r\n {`${getTranslations(\r\n t,\r\n locationErr?.rowPart\r\n )} ${\r\n locationErr?.rowNumber\r\n } : ${getTranslations(\r\n t,\r\n locationErr?.msg\r\n )}`}\r\n
    • \r\n )\r\n })}\r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n {responseData?.locationWarnings?.length ||\r\n responseData?.regionalGroupLevelWarnings?.length ? (\r\n \r\n }\r\n aria-controls=\"panel1a-content\"\r\n id=\"panel1a-header\"\r\n >\r\n
    {`${responseData?.warningRecordsCount} ${\r\n responseData?.warningRecordsCount > 1\r\n ? getTranslations(\r\n t,\r\n Translates.Records_have_warnings\r\n )\r\n : getTranslations(\r\n t,\r\n Translates.Record_has_warning\r\n )\r\n }`}
    \r\n \r\n \r\n
      \r\n {responseData?.locationWarnings?.map(w => {\r\n const locationWarns = getBulkAPIValidation(w)\r\n return (\r\n
    • \r\n {`${getTranslations(\r\n t,\r\n locationWarns?.rowPart\r\n )} ${\r\n locationWarns?.rowNumber\r\n } : ${getTranslations(\r\n t,\r\n locationWarns?.msg\r\n )}`}\r\n
    • \r\n )\r\n })}\r\n {responseData?.regionalGroupLevelWarnings?.map(\r\n w => {\r\n const locationRegWarns =\r\n getBulkAPIValidation(w)\r\n return (\r\n
    • \r\n {`${getTranslations(\r\n t,\r\n locationRegWarns?.rowPart\r\n )} ${\r\n locationRegWarns?.rowNumber\r\n } : ${getTranslations(\r\n t,\r\n locationRegWarns?.msg\r\n )}`}\r\n
    • \r\n )\r\n }\r\n )}\r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n )\r\n}\r\nexport default LocationBulkValidation\r\n","\r\n\r\nimport React, { useEffect, useMemo, useState } from \"react\"\r\nimport { Grid } from \"@mui/material\"\r\nimport CreateLocationBulk from \"./CreateLocationBulk\"\r\nimport LocationBulkDataMapping from \"./LocationBulkDataMapping\"\r\nimport LocationBulkValidation from \"./LocationBulkValidation\"\r\nimport { useAppThunkDispatch } from \"src/redux/store\"\r\nimport { setLocationReset } from \"src/redux/slices/settingsSlice\"\r\nconst LocationBulkContainer: React.FC = () => {\r\n const [currentPage, setCurrentPage] = useState(\"page1\")\r\n const dispatch = useAppThunkDispatch()\r\n useEffect(() => {\r\n setCurrentPage(\"page1\")\r\n return () => {\r\n dispatch(setLocationReset())\r\n }\r\n }, [])\r\n const setPage = _page => {\r\n setCurrentPage(_page)\r\n }\r\n const renderPages = useMemo(() => {\r\n if (currentPage === \"page1\") {\r\n return \r\n } else if (currentPage === \"page2\") {\r\n return \r\n } else if (currentPage === \"page3\") {\r\n return \r\n } else {\r\n return <>\r\n }\r\n }, [currentPage])\r\n return (\r\n <>\r\n {renderPages}\r\n \r\n )\r\n}\r\nexport default React.memo(LocationBulkContainer)","import { Grid, Alert, AlertTitle, Snackbar, Typography } from \"@mui/material\"\r\nimport csvIcon from \"../../assets/images/CsvIcon.svg\"\r\nimport WarningIcon from \"@mui/icons-material/Warning\"\r\n\r\nimport React, { useState, useEffect } from \"react\"\r\nimport MiniHeader from \"src/components/MiniHeader/MiniHeader\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { useDropzone } from \"react-dropzone\"\r\nimport { setBulkScheduleFile } from \"src/redux/slices/scheduleSlice\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport ScheduleBulkFIleUpload from \"../Component/BulkFIleUpload\"\r\nimport { BULK_UPLOADING } from \"src/utils/constants\"\r\n\r\nimport {\r\n createURLFromByteArray,\r\n fileExtensionCheck,\r\n getTranslations,\r\n processCSV\r\n} from \"src/utils/helper\"\r\nconst CreateScheduleBulk = ({ setPage }) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const [progress, setProgressData] = useState(0)\r\n const dispatch = useAppThunkDispatch()\r\n const [showPopup, setShowPopup] = useState(false)\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const scheduleCsvData = useSelector(\r\n (state: RootState) => state.schedule?.scheduleFileData\r\n )\r\n const template = useSelector(\r\n (state: RootState) => state.auth?.templates.SCHEDULE\r\n )\r\n useEffect(() => {\r\n if (Array.isArray(scheduleCsvData) && scheduleCsvData.length === 0) {\r\n setAlertError({\r\n title: getTranslations(t, Translates.No_data_found),\r\n content: getTranslations(\r\n t,\r\n Translates.Please_ensure_the_file_you_are_uploading_contains_data\r\n )\r\n })\r\n }\r\n }, [scheduleCsvData])\r\n\r\n const [snackBar, setSnackBar] = useState({\r\n open: false,\r\n message: \"\",\r\n autoHideDuration: 3000\r\n })\r\n const bulkScheduleFilePath = useSelector(\r\n (state: RootState) => state.schedule?.bulkScheduleFilePath\r\n )\r\n const [alertError, setAlertError] = React.useState({ title: \"\", content: \"\" })\r\n const [files, setFiles] = useState([] as any)\r\n\r\n const onSnackClose = () => {\r\n setSnackBar({ ...snackBar, open: false })\r\n }\r\n const { getRootProps } = useDropzone({\r\n multiple: false,\r\n accept: {\r\n \"text/csv\": [\".csv\"]\r\n },\r\n onError: error => {},\r\n onDrop: (acceptedFiles, rejectedFiles) => {\r\n if (rejectedFiles.length) {\r\n setAlertError(oldVal => ({\r\n ...oldVal,\r\n severity: \"error\",\r\n title: getTranslations(t, Translates.Error),\r\n content: getTranslations(t, Translates.File_type_must_be_csv)\r\n }))\r\n }\r\n // istanbul ignore next\r\n else if (acceptedFiles.length) {\r\n const fileName: string = acceptedFiles[0].name\r\n let errorFind = 0\r\n if (!fileExtensionCheck({ fileName, setAlertError, t })) {\r\n errorFind++\r\n }\r\n if (errorFind <= 0) {\r\n setAlertError({ title: \"\", content: \"\" })\r\n setFiles(acceptedFiles)\r\n const reader = new FileReader()\r\n dispatch(setBulkScheduleFile(fileName))\r\n reader.addEventListener(\"progress\", event => {\r\n if (event.loaded && event.total) {\r\n const percent = (event.loaded / event.total) * 100\r\n setProgressData(percent)\r\n }\r\n })\r\n reader.onload = async ({ target }) => {\r\n // istanbul ignore next\r\n\r\n if (target?.result) {\r\n processCSV(\r\n target?.result,\r\n dispatch,\r\n BULK_UPLOADING.SCHEDULE_FILE_UPLOADING\r\n )\r\n }\r\n }\r\n reader.readAsText(acceptedFiles[0])\r\n }\r\n }\r\n }\r\n })\r\n\r\n const handleDataMapping = () => {\r\n setPage(\"page2\")\r\n }\r\n\r\n const handleCsvFile = () => {\r\n return (\r\n
    \r\n \r\n \r\n {files[0]?.path || bulkScheduleFilePath}{\" \"}\r\n {getTranslations(t, Translates.file_uploaded)}\r\n \r\n
    \r\n )\r\n }\r\n\r\n const handleNoCustomerId = () => {\r\n if (!customerId) {\r\n setTimeout(() => {\r\n history.push(PATH.SCHEDULE)\r\n }, 3000)\r\n }\r\n }\r\n const onDeleteClick = e => {\r\n e.stopPropagation()\r\n setShowPopup(true)\r\n }\r\n const onClearClick = e => {\r\n e.stopPropagation()\r\n setShowPopup(false)\r\n }\r\n const onDeleteFileClick = e => {\r\n e.stopPropagation()\r\n setShowPopup(false)\r\n setFiles([])\r\n setAlertError({ title: \"\", content: \"\" })\r\n dispatch(setBulkScheduleFile(\"\"))\r\n }\r\n const handleCancelClick = () => {\r\n history.push(PATH.SCHEDULE_CREATE_TYPE)\r\n }\r\n const saveDisable = () => {\r\n if (bulkScheduleFilePath && alertError?.title === \"\") {\r\n return false\r\n } else {\r\n return true\r\n }\r\n }\r\n const showError = () => {\r\n return (\r\n }\r\n data-testid=\"error-alert\"\r\n className=\"grey custom-alert\"\r\n >\r\n \r\n {alertError?.title}\r\n \r\n

    {alertError?.content}

    \r\n \r\n )\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\nexport default React.memo(CreateScheduleBulk)\r\n","import { Grid, Divider, Alert, AlertTitle } from \"@mui/material\"\r\nimport WarningIcon from \"@mui/icons-material/Warning\"\r\nimport ForwardIcon from \"@mui/icons-material/Forward\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport MiniHeader from \"src/components/MiniHeader/MiniHeader\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport {\r\n setScheduleMappingData,\r\n setScheduleReset,\r\n setMappingPayloadData\r\n} from \"src/redux/slices/scheduleSlice\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { encryptBulkColumns, getTranslations } from \"src/utils/helper\"\r\nimport BulkDataSelectField from \"../Component/BulkDataSelectField\"\r\nimport BulkUploadButtons from \"../Component/BulkUploadButtons\"\r\nimport LocationAndScheduleTopHeadings from \"../Component/LocationAndScheduleTopHeadings\"\r\nimport { PromptTypes } from \"src/utils/constants\"\r\n\r\nconst ScheduleBulkDataMapping = ({ setPage }) => {\r\n const dispatch = useAppThunkDispatch()\r\n const history = useHistory()\r\n const [alertError, setAlertError] = React.useState({ title: \"\", content: \"\" })\r\n const [bulkData, setBulkData] = useState([] as any)\r\n const scheduleFileData: any = useSelector(\r\n (state: RootState) => state.schedule.scheduleFileData\r\n )\r\n const scheduleMappingData = useSelector(\r\n (state: RootState) => state.schedule.scheduleMappingData\r\n )\r\n\r\n const csvScheduleColumnList = useSelector(\r\n (state: RootState) => state.schedule.csvScheduleColumnList\r\n )\r\n const { t } = useTranslation()\r\n const [fileDataString, setFileDataString] = useState(\"\" as any)\r\n const getColumnHeader = value => {\r\n if (csvScheduleColumnList.includes(value)) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n const getIndividualScheduleDetail = val => {\r\n if (val === \"siteId\") {\r\n if (scheduleMappingData.siteId) {\r\n return scheduleMappingData.siteId\r\n } else return getColumnHeader(\"Site ID\") ? \"Site ID\" : \"\"\r\n } else if (val === \"scheduledDate\") {\r\n if (scheduleMappingData.scheduledDate) {\r\n return scheduleMappingData.scheduledDate\r\n } else return getColumnHeader(\"Scheduled Date\") ? \"Scheduled Date\" : \"\"\r\n } else if (val === \"scheduledTime\") {\r\n if (scheduleMappingData.scheduledTime) {\r\n return scheduleMappingData.scheduledTime\r\n } else return getColumnHeader(\"Scheduled Time\") ? \"Scheduled Time\" : \"\"\r\n } else if (val === \"configurationName\") {\r\n if (scheduleMappingData.configurationName) {\r\n return scheduleMappingData.configurationName\r\n } else\r\n return getColumnHeader(\"Configuration Name\") ? \"Configuration Name\" : \"\"\r\n } else if (val === \"numberofDevices\") {\r\n if (scheduleMappingData.numberofDevices) {\r\n return scheduleMappingData.numberofDevices\r\n } else\r\n return getColumnHeader(\"Number Of Devices\") ? \"Number Of Devices\" : \"\"\r\n } else if (val === \"numberofWisTag\") {\r\n if (scheduleMappingData.numberofWisTag) {\r\n return scheduleMappingData.numberofWisTag\r\n } else {\r\n return getColumnHeader(\"Requested WIS Tags\") ? \"Requested WIS Tags\" : \"\"\r\n }\r\n } else {\r\n if (scheduleMappingData.notes) {\r\n return scheduleMappingData.notes\r\n } else return getColumnHeader(\"Notes\") ? \"Notes\" : \"\"\r\n }\r\n }\r\n const [scheduleDetails, setScheduleDetails] = useState({\r\n siteId: getIndividualScheduleDetail(\"siteId\"),\r\n scheduledDate: getIndividualScheduleDetail(\"scheduledDate\"),\r\n scheduledTime: getIndividualScheduleDetail(\"scheduledTime\"),\r\n configurationName: getIndividualScheduleDetail(\"configurationName\"),\r\n numberofDevices: getIndividualScheduleDetail(\"numberofDevices\"),\r\n numberofWisTag: getIndividualScheduleDetail(\"numberofWisTag\"),\r\n notes: getIndividualScheduleDetail(\"notes\")\r\n } as any)\r\n\r\n useEffect(() => {\r\n getFileData()\r\n }, [])\r\n\r\n const getFileData = () => {\r\n setFileDataString(scheduleFileData)\r\n let keys: any = csvScheduleColumnList\r\n setBulkData(keys)\r\n setScheduleDetails({\r\n siteId: getIndividualScheduleDetail(\"siteId\"),\r\n scheduledDate: getIndividualScheduleDetail(\"scheduledDate\"),\r\n scheduledTime: getIndividualScheduleDetail(\"scheduledTime\"),\r\n configurationName: getIndividualScheduleDetail(\"configurationName\"),\r\n numberofDevices: getIndividualScheduleDetail(\"numberofDevices\"),\r\n numberofWisTag: getIndividualScheduleDetail(\"numberofWisTag\"),\r\n notes: getIndividualScheduleDetail(\"notes\")\r\n })\r\n }\r\n\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n\r\n const handleNoCustomerId = () => {\r\n if (!customerId) {\r\n setTimeout(() => {\r\n history.push(PATH.SCHEDULE)\r\n }, 3000)\r\n }\r\n }\r\n\r\n const handleChangeSchedule = (e, id) => {\r\n setAlertError({\r\n title: \"\",\r\n content: \"\"\r\n })\r\n if (id === 1) {\r\n setScheduleDetails({\r\n ...scheduleDetails,\r\n siteId: e.target.value\r\n })\r\n } else if (id === 2) {\r\n setScheduleDetails({\r\n ...scheduleDetails,\r\n scheduledDate: e.target.value\r\n })\r\n } else if (id === 3) {\r\n setScheduleDetails({\r\n ...scheduleDetails,\r\n scheduledTime: e.target.value\r\n })\r\n } else if (id === 4) {\r\n setScheduleDetails({\r\n ...scheduleDetails,\r\n configurationName: e.target.value\r\n })\r\n } else if (id === 5) {\r\n setScheduleDetails({\r\n ...scheduleDetails,\r\n numberofDevices: e.target.value\r\n })\r\n } else if (id === 6) {\r\n setScheduleDetails({\r\n ...scheduleDetails,\r\n numberofWisTag: e.target.value\r\n })\r\n } else {\r\n setScheduleDetails({\r\n ...scheduleDetails,\r\n notes: e.target.value\r\n })\r\n }\r\n }\r\n const handleValidation = () => {\r\n setAlertError({\r\n title: \"\",\r\n content: \"\"\r\n })\r\n dispatch(setScheduleMappingData(scheduleDetails))\r\n sendPayload()\r\n }\r\n const sendPayload = () => {\r\n const COLUMNS = [\r\n {\r\n dataAttribute: \"Site ID\",\r\n csvAttribute: scheduleDetails.siteId\r\n },\r\n {\r\n dataAttribute: \"Scheduled Date\",\r\n csvAttribute: scheduleDetails.scheduledDate\r\n },\r\n {\r\n dataAttribute: \"Scheduled Time\",\r\n csvAttribute: scheduleDetails.scheduledTime\r\n },\r\n {\r\n dataAttribute: \"Configuration Name\",\r\n csvAttribute: scheduleDetails.configurationName\r\n },\r\n {\r\n dataAttribute: \"Number Of Devices\",\r\n csvAttribute: scheduleDetails.numberofDevices\r\n },\r\n {\r\n dataAttribute: \"Requested WIS Tags\",\r\n csvAttribute: scheduleDetails.numberofWisTag\r\n },\r\n {\r\n dataAttribute: \"Notes\",\r\n csvAttribute: scheduleDetails.notes\r\n }\r\n ].map(i =>\r\n i.csvAttribute === PromptTypes.NONE ? { ...i, csvAttribute: \"\" } : i\r\n )\r\n const payloadToAdd = {\r\n idCustomer: customerId,\r\n IsConfirmed: false,\r\n continueStatus: null,\r\n columns: encryptBulkColumns(COLUMNS),\r\n fileData: fileDataString\r\n }\r\n dispatch(setMappingPayloadData(payloadToAdd))\r\n setPage(\"page3\")\r\n }\r\n const handlePreviousClick = () => {\r\n setPage(\"page1\")\r\n }\r\n const handleCancelClick = () => {\r\n dispatch(setScheduleReset())\r\n history.push(PATH.SCHEDULE)\r\n }\r\n const saveDisable = () => {\r\n if (\r\n scheduleDetails.siteId === \"\" ||\r\n scheduleDetails.scheduledDate === \"\" ||\r\n scheduleDetails.configurationName === \"\"\r\n ) {\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n // istanbul ignore next\r\n const showError = () => {\r\n return (\r\n }\r\n className=\"custom-alert grey\"\r\n >\r\n \r\n {alertError?.title}\r\n \r\n

    {alertError?.content}

    \r\n \r\n )\r\n }\r\n\r\n const bulkDataWithNone = [PromptTypes.NONE, ...bulkData]\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {alertError?.title !== \"\" ? <>{showError()} : null}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\nexport default React.memo(ScheduleBulkDataMapping)\r\n","import {\r\n Accordion,\r\n AccordionDetails,\r\n AccordionSummary,\r\n Divider,\r\n FormControl,\r\n FormControlLabel,\r\n Grid,\r\n Radio,\r\n RadioGroup\r\n} from \"@mui/material\"\r\nimport MiniHeader from \"src/components/MiniHeader/MiniHeader\"\r\nimport LinearProgress from \"@mui/material/LinearProgress\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useEffect, useState } from \"react\"\r\nimport { ScheduleService } from \"src/service/schedule.service\"\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\"\r\nimport shortid from \"shortid\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport BulkUploadButtons from \"../Component/BulkUploadButtons\"\r\nimport { getBulkAPIValidation, getTranslations } from \"src/utils/helper\"\r\nimport { BULK_ACTIONS } from \"src/utils/constants\"\r\nconst ScheduleBulkValidation = ({ setPage }) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const scheduleService = new ScheduleService()\r\n const [loading, setLoading] = useState(false)\r\n const [progress, setProgress] = useState(0)\r\n const [scheduleresponseData, setScheduleResponseData] = useState({} as any)\r\n const [ignoreState, setIgnoreState] = useState(\"\")\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const mappingPayloadData = useSelector(\r\n (state: RootState) => state.schedule.mappingPayloadData\r\n )\r\n\r\n useEffect(() => {\r\n ScheduleValidationPost(false, null)\r\n }, [])\r\n\r\n let config = {\r\n onUploadProgress: progressEvent => {\r\n let percentCompleted = Math.floor(\r\n (progressEvent.loaded * 100) / progressEvent.total\r\n )\r\n setProgress(percentCompleted)\r\n }\r\n }\r\n\r\n const ScheduleValidationPost = async (\r\n isConfirmed: boolean,\r\n confirmationAction: any\r\n ) => {\r\n const _payload = {\r\n idCustomer: mappingPayloadData.idCustomer,\r\n isConfirmed: isConfirmed,\r\n confirmationAction: confirmationAction,\r\n columns: mappingPayloadData.columns,\r\n fileData: mappingPayloadData.fileData\r\n }\r\n if (!isConfirmed) {\r\n setLoading(true)\r\n }\r\n\r\n try {\r\n await scheduleService\r\n .bulkUpdateSchedule(_payload, isConfirmed ? {} : config)\r\n .then(res => {\r\n setScheduleResponseData(res.data)\r\n setLoading(false)\r\n if (isConfirmed) {\r\n history.push(PATH.SCHEDULE)\r\n }\r\n })\r\n } catch (_error) {\r\n console.error(_error)\r\n }\r\n }\r\n\r\n const handleNoCustomerId = () => {\r\n if (!customerId) {\r\n setTimeout(() => {\r\n history.push(PATH.SCHEDULE)\r\n }, 3000)\r\n }\r\n }\r\n const handlePreviousClick = () => {\r\n setPage(\"page2\")\r\n }\r\n const handleCancelClick = () => {\r\n history.push(PATH.SCHEDULE)\r\n }\r\n const handleStatusChange = e => {\r\n setIgnoreState(e.target.value)\r\n }\r\n const saveDisable = () => {\r\n const { errorRecordsCount, recordsInsertedCount } = scheduleresponseData\r\nif(recordsInsertedCount>0) return false\r\n const allInsertedRecordsHaveErrors =\r\n recordsInsertedCount == 0 || errorRecordsCount === recordsInsertedCount\r\n\r\n return loading || allInsertedRecordsHaveErrors\r\n // return loading || scheduleresponseData?.errorRecordsCount > 0\r\n // if (scheduleresponseData?.errorRecordsCount > 0) {\r\n // return true\r\n // } else {\r\n // return progress < 100\r\n // }\r\n }\r\n\r\n const handleImportClick = () => {\r\n let continueStatus: string | null = null\r\n const UPDATE_STRING: string = BULK_ACTIONS?.UPDATE\r\n if (scheduleresponseData.duplicateRecords?.length > 0) {\r\n if (ignoreState === UPDATE_STRING) {\r\n continueStatus = UPDATE_STRING\r\n } else {\r\n continueStatus = BULK_ACTIONS?.IGNORE\r\n }\r\n }\r\n ScheduleValidationPost(true, continueStatus)\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Validation)}\r\n

    \r\n
    \r\n
    \r\n \r\n

    \r\n {getTranslations(t, \"Validation\")}{\" \"}\r\n {progress == 100\r\n ? getTranslations(t, Translates.Completed)\r\n : getTranslations(t, Translates.In_Progress)}\r\n

    \r\n \r\n \r\n {progress}% {getTranslations(t, Translates.Completed)}\r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n {!loading ? (\r\n \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Validation_Outcome)}\r\n

    \r\n \r\n

    \r\n {getTranslations(t, Translates.File_Statistics)}\r\n

    \r\n {scheduleresponseData?.recordsInsertedCount > 0 ? (\r\n \r\n \r\n
    \r\n {scheduleresponseData?.recordsInsertedCount}\r\n {scheduleresponseData?.recordsInsertedCount > 1\r\n ? ` ${getTranslations(t, Translates.Records)}`\r\n : ` ${getTranslations(t, Translates.Record)}`}\r\n {` ${getTranslations(\r\n t,\r\n Translates.will_be_inserted\r\n )}`}\r\n
    \r\n \r\n
    \r\n ) : (\r\n \r\n \r\n
    \r\n {\" \"}\r\n {getTranslations(\r\n t,\r\n Translates.No_Records_will_be_inserted\r\n )}{\" \"}\r\n
    \r\n \r\n
    \r\n )}\r\n \r\n {scheduleresponseData?.duplicateRecords?.length ? (\r\n \r\n }\r\n id=\"panel1a-header\"\r\n aria-controls=\"panel1a-content\"\r\n >\r\n
    \r\n {scheduleresponseData?.duplicateRecords?.length}\r\n {scheduleresponseData?.duplicateRecords?.length >\r\n 1\r\n ? ` ${getTranslations(t, Translates.Sites)}`\r\n : ` ${getTranslations(t, Translates.Site)}`}\r\n {` ${getTranslations(\r\n t,\r\n Translates.already_exist_in_FlexCount\r\n )}`}\r\n
    \r\n\r\n \r\n \r\n \r\n \r\n }\r\n value={BULK_ACTIONS?.UPDATE}\r\n label={getTranslations(\r\n t,\r\n Translates.Update\r\n )}\r\n />\r\n \r\n }\r\n value={BULK_ACTIONS?.IGNORE}\r\n label={getTranslations(\r\n t,\r\n Translates.Ignore\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
      \r\n {scheduleresponseData?.duplicateRecords?.map(\r\n (m: any) => {\r\n const scheduleDuplicates =\r\n getBulkAPIValidation(m)\r\n return (\r\n
    • \r\n {`${getTranslations(\r\n t,\r\n scheduleDuplicates?.rowPart\r\n )} ${\r\n scheduleDuplicates?.rowNumber\r\n }: ${getTranslations(\r\n t,\r\n scheduleDuplicates?.msg\r\n )}`}\r\n
    • \r\n )\r\n }\r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n {scheduleresponseData?.errorRecordsCount ? (\r\n \r\n }\r\n aria-controls=\"panel1a-content\"\r\n id=\"panel1a-header\"\r\n >\r\n
    {`${scheduleresponseData?.errorRecordsCount} ${\r\n scheduleresponseData?.errorRecordsCount > 1\r\n ? getTranslations(\r\n t,\r\n Translates.Records_have_errors\r\n )\r\n : getTranslations(\r\n t,\r\n Translates.Record_has_error\r\n )\r\n }`}
    \r\n \r\n \r\n
      \r\n {scheduleresponseData?.errorColumns?.map(\r\n (m: any) => {\r\n const scheduleErrors = getBulkAPIValidation(m)\r\n return (\r\n
    • \r\n {`${getTranslations(\r\n t,\r\n scheduleErrors?.rowPart\r\n )} ${\r\n scheduleErrors?.rowNumber\r\n }: ${getTranslations(\r\n t,\r\n scheduleErrors?.msg\r\n )}`}\r\n
    • \r\n )\r\n }\r\n )}\r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n {scheduleresponseData?.warningRecordsCount ? (\r\n \r\n }\r\n aria-controls=\"panel1a-content\"\r\n id=\"panel1a-header\"\r\n >\r\n
    {`${\r\n scheduleresponseData?.warningRecordsCount\r\n } ${\r\n scheduleresponseData?.warningRecordsCount > 1\r\n ? getTranslations(\r\n t,\r\n Translates.Records_have_warnings\r\n )\r\n : getTranslations(\r\n t,\r\n Translates.Record_has_warning\r\n )\r\n }`}
    \r\n \r\n \r\n
      \r\n {scheduleresponseData?.warningColumns?.map(\r\n (m: any) => {\r\n const scheduleWarns = getBulkAPIValidation(m)\r\n return (\r\n
    • \r\n {`${getTranslations(\r\n t,\r\n scheduleWarns?.rowPart\r\n )} ${\r\n scheduleWarns?.rowNumber\r\n }: ${getTranslations(\r\n t,\r\n scheduleWarns?.msg\r\n )}`}\r\n
    • \r\n )\r\n }\r\n )}\r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n )\r\n}\r\nexport default ScheduleBulkValidation\r\n","\r\n\r\nimport React, { useEffect, useMemo, useState } from \"react\"\r\nimport { Grid } from \"@mui/material\"\r\nimport { useAppThunkDispatch } from \"src/redux/store\"\r\nimport CreateScheduleBulk from \"./CreateScheduleBulk\"\r\nimport ScheduleBulkDataMapping from \"./ScheduleBulkDataMapping\"\r\nimport ScheduleBulkValidation from \"./ScheduleBulkValidation\"\r\nimport { setScheduleReset } from \"src/redux/slices/scheduleSlice\"\r\nconst ScheduleBulkContainer: React.FC = () => {\r\n const [currentPage, setCurrentPage] = useState(\"page1\")\r\n const dispatch = useAppThunkDispatch()\r\n useEffect(() => {\r\n setCurrentPage(\"page1\")\r\n return () => {\r\n dispatch(setScheduleReset())\r\n }\r\n }, [])\r\n const setPage = _page => {\r\n setCurrentPage(_page)\r\n }\r\n const renderPages = useMemo(() => {\r\n if (currentPage === \"page1\") {\r\n return \r\n } else if (currentPage === \"page2\") {\r\n return \r\n } else if (currentPage === \"page3\") {\r\n return \r\n } else {\r\n return <>\r\n }\r\n }, [currentPage])\r\n return (\r\n <>\r\n {renderPages}\r\n \r\n )\r\n}\r\nexport default React.memo(ScheduleBulkContainer)","import { Grid } from \"@mui/material\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\n\r\nconst BreadCrumbC = ({\r\n customPath,\r\n getBreadcrumbConfig\r\n}: {\r\n customPath: string\r\n getBreadcrumbConfig: Function\r\n}) => {\r\n return (\r\n <>\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default BreadCrumbC\r\n","import { Button, Grid, Tooltip } from \"@mui/material\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport BreadCrumbC from \"../ToolBar/BreadCrumbC\"\r\n\r\nconst CategoriesToolBar = ({ catSaveClick, setIsTabChangeCheck }) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config.configType\r\n )\r\n\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `categories`\r\n let variables: any = {\r\n categories: getTranslations(t, Translates.Categories)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n let search = window.location.search || \"\"\r\n const handleNewCategoryClick = () => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_CATEGORY + search)\r\n })\r\n }\r\n const categoriesSaveClick = () => {\r\n catSaveClick()\r\n }\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Category)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default CategoriesToolBar\r\n","import { Table, TableBody, TableCell, TableHead, TableRow } from \"@mui/material\"\r\nimport React, { useEffect } from \"react\"\r\nimport ArrowDropUpIcon from \"@mui/icons-material/ArrowDropUp\"\r\nimport InfoIcon from \"@mui/icons-material/Info\"\r\nimport ArrowDropDownIcon from \"@mui/icons-material/ArrowDropDown\"\r\nimport DragIndicatorIcon from \"@mui/icons-material/DragIndicator\"\r\nimport { DndProvider, useDrag, useDrop } from \"react-dnd\"\r\nimport { HTML5Backend } from \"react-dnd-html5-backend\"\r\nimport update from \"immutability-helper\"\r\n\r\nimport { useFilters, useSortBy, useTable } from \"react-table\"\r\nimport { useAppThunkDispatch } from \"../../../src/redux/store\"\r\nimport {\r\n setLocationCategories,\r\n setDefaultCountFields,\r\n setReports,\r\n setOutputFiles,\r\n setOutputColumns,\r\n setOutputSubTotals,\r\n setOutputGrandTotals,\r\n setReportSubTotals,\r\n setReportGrandTotals,\r\n setCountFields,\r\n setNewFollowUpAuditRule,\r\n setNewRandomAuditRule,\r\n setNewTargetLocationAuditRule,\r\n setNewTargetRecordAuditRule\r\n} from \"../../../src/redux/slices/configSlice\"\r\nimport { TableComponentNames } from \"src/constants/globalTableDragDrop\"\r\nimport shortid from \"shortid\"\r\nimport { setVarianceRedux } from \"src/redux/slices/ConfigPortal/VarianceSlice\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { Audit_TypesObj } from \"src/constants/audits\"\r\nimport { setReportRedux } from \"src/redux/slices/ConfigPortal/ReportSlice\"\r\n\r\nconst GlobalTableDragDrop: React.FC = ({\r\n component,\r\n columns,\r\n data,\r\n onRowDrop,\r\n noDataText = \"No Data Found\",\r\n initialStateProp = {\r\n sortBy: []\r\n }\r\n}) => {\r\n const [records, setRecords] = React.useState(data)\r\n const {\r\n varianceData: { varianceRedux },\r\n reportData: { reportRedux }\r\n } = ConfigDataHook()\r\n const getRowId = React.useCallback(row => {\r\n return row.id\r\n }, [])\r\n const dispatch = useAppThunkDispatch()\r\n useEffect(() => {\r\n setRecords([...data])\r\n }, [data])\r\n\r\n // Use the state and functions returned from useTable to build your UI\r\n const { getTableProps, headerGroups, rows, prepareRow } = useTable(\r\n {\r\n columns,\r\n data: records,\r\n disableSortRemove: true,\r\n autoResetSortBy: false,\r\n autoResetFilters: false,\r\n initialState: {\r\n ...initialStateProp\r\n }\r\n },\r\n useFilters, // useFilters!\r\n useSortBy,\r\n getRowId\r\n )\r\n\r\n const moveRow = (dragIndex, hoverIndex) => {\r\n const dragRecord = records[dragIndex]\r\n const updatedRecords = update(records, {\r\n $splice: [\r\n [dragIndex, 1],\r\n [hoverIndex, 0, dragRecord]\r\n ]\r\n })\r\n let dt = [\r\n ...updatedRecords.map((m, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n ]\r\n setRecords([...dt])\r\n onRowDrop?.([...dt])\r\n if (component === TableComponentNames.categories) {\r\n dispatch(setLocationCategories([...dt]))\r\n } else if (component === TableComponentNames.groupVariances) {\r\n const locArr = JSON.parse(JSON.stringify(varianceRedux))\r\n locArr.GroupVariance.ReportFields = [...dt]\r\n dispatch(setVarianceRedux(locArr))\r\n } else if (component === TableComponentNames.reportColumns) {\r\n const locArr = JSON.parse(JSON.stringify(reportRedux))\r\n locArr.Columns = [...dt]\r\n dispatch(setReportRedux(locArr))\r\n } else if (component === TableComponentNames.reportSignatures) {\r\n const locArr = JSON.parse(JSON.stringify(reportRedux))\r\n locArr.Signatures = [...dt]\r\n dispatch(setReportRedux(locArr))\r\n } else if (component === TableComponentNames.reportPrompts) {\r\n const locArr = JSON.parse(JSON.stringify(reportRedux))\r\n locArr.Prompts = [...dt]\r\n dispatch(setReportRedux(locArr))\r\n } else if (component === TableComponentNames.reportSubTotals) {\r\n const locArr = JSON.parse(JSON.stringify(reportRedux))\r\n locArr.SubTotals = [...dt]\r\n dispatch(setReportRedux(locArr))\r\n dispatch(setReportSubTotals([...dt]))\r\n } else if (component === TableComponentNames.reportGrandTotals) {\r\n const locArr = JSON.parse(JSON.stringify(reportRedux))\r\n locArr.GrandTotals = [...dt]\r\n dispatch(setReportRedux(locArr))\r\n dispatch(setReportGrandTotals([...dt]))\r\n } else if (component === TableComponentNames.fullVariances) {\r\n const locArr = { ...varianceRedux }\r\n locArr.FullVariance.ReportFields = [...dt]\r\n dispatch(setVarianceRedux(locArr))\r\n } else if (component === TableComponentNames.outputFiles) {\r\n dispatch(setOutputFiles([...dt]))\r\n } else if (component === TableComponentNames.reportings) {\r\n dispatch(setReports([...dt]))\r\n } else if (component === TableComponentNames.outputColumns) {\r\n dispatch(setOutputColumns([...dt]))\r\n } else if (component === TableComponentNames.outputSubTotals) {\r\n dispatch(setOutputSubTotals([...dt]))\r\n } else if (component === TableComponentNames.outputGrandTotals) {\r\n dispatch(setOutputGrandTotals([...dt]))\r\n } else if (component === TableComponentNames.countFields) {\r\n let tempData: any = [...dt]\r\n let countFieldObj: any = []\r\n let finalObj = {}\r\n for (let prod of tempData) {\r\n const fieldKey: any = prod.field\r\n countFieldObj.push({ [fieldKey]: prod })\r\n }\r\n for (let countFieldVal of countFieldObj) {\r\n Object.assign(finalObj, countFieldVal)\r\n }\r\n dispatch(setCountFields({ ...finalObj }))\r\n dispatch(\r\n setDefaultCountFields({ data: { ...finalObj }, type: \"REORDER\" })\r\n )\r\n } else if (component === TableComponentNames.newauditrule) {\r\n dt = dt.map((i, j) => ({ ...i, SortOrder: j + 1 }))\r\n const followup = dt.filter(i => i.AuditType === Audit_TypesObj.FollowUp)\r\n\r\n const random = dt.filter(i => i.AuditType === Audit_TypesObj.Random)\r\n\r\n const targetedLocation = dt.filter(\r\n i => i.AuditType === Audit_TypesObj.TargetedLocation\r\n )\r\n\r\n const targetedRecord = dt.filter(\r\n i => i.AuditType === Audit_TypesObj.TargetedRecord\r\n )\r\n\r\n dispatch(setNewFollowUpAuditRule([...followup]))\r\n dispatch(setNewRandomAuditRule([...random]))\r\n dispatch(setNewTargetLocationAuditRule([...targetedLocation]))\r\n dispatch(setNewTargetRecordAuditRule([...targetedRecord]))\r\n }\r\n }\r\n\r\n const checkSorting = (column: any) => {\r\n //istanbul ignore next\r\n if (column.isSorted) {\r\n return column.isSortedDesc ? : \r\n } else {\r\n return \"\"\r\n }\r\n }\r\n\r\n const DND_ITEM_TYPE = \"row\"\r\n\r\n const Row = ({ row, index, moveRow }) => {\r\n const dropRef = React.useRef(null as any)\r\n const dragRef = React.useRef(null as any)\r\n\r\n const [{ isOver }, drop] = useDrop({\r\n accept: DND_ITEM_TYPE,\r\n drop(item: any, _monitor) {\r\n // istanbul ignore next\r\n if (!dropRef.current) {\r\n return\r\n }\r\n const dragIndex = item.index\r\n const hoverIndex = index\r\n // Don't replace items with themselves\r\n if (dragIndex === hoverIndex) {\r\n return\r\n }\r\n if (dragIndex === 0 && component === \"countFields\") return\r\n if (hoverIndex === 0 && component === \"countFields\") return\r\n if (dragIndex === data.length - 1 && component === \"countFields\") return\r\n if (hoverIndex === data.length - 1 && component === \"countFields\")\r\n return\r\n if (row.original.field === \"Ext\") {\r\n if (dragIndex === data.length - 2 && component === \"countFields\")\r\n return\r\n if (hoverIndex === data.length - 2 && component === \"countFields\")\r\n return\r\n } else if (row.original.field === \"Qty\") {\r\n if (dragIndex === data.length - 3 && component === \"countFields\")\r\n return\r\n if (hoverIndex === data.length - 3 && component === \"countFields\")\r\n return\r\n }\r\n // Time to actually perform the action\r\n moveRow(dragIndex, hoverIndex)\r\n // Note: we're mutating the monitor item here!\r\n // Generally it's better to avoid mutations,\r\n // but it's good here for the sake of performance\r\n // to avoid expensive index searches.\r\n item.index = hoverIndex\r\n },\r\n collect: monitor => ({\r\n isOver: monitor.isOver(),\r\n canDrop: monitor.canDrop()\r\n })\r\n })\r\n\r\n const [{ isDragging }, drag, preview]: any = useDrag({\r\n type: DND_ITEM_TYPE,\r\n item: () => {\r\n return { index }\r\n },\r\n collect: (monitor: any) => ({\r\n isDragging: monitor.isDragging()\r\n })\r\n } as any)\r\n\r\n //istanbul ignore next\r\n const opacity = isDragging ? 0 : 1\r\n\r\n preview(drop(dropRef))\r\n drag(dragRef)\r\n\r\n let defaultCountFields = [\"ProductCaptured\", \"Qty\", \"Ext\"]\r\n\r\n let rowHoverClass = \"\"\r\n if (isOver) {\r\n rowHoverClass = `row-hover`\r\n }\r\n\r\n const onTouchMove = e => {\r\n // number of pixels near the top or bottom edge when auto scroll will begin\r\n const DISTANCE_FROM_TOP = 300\r\n const DISTANCE_FROM_BOTTOM = 100\r\n\r\n // number of pixels that are scrolled on each touchmove event\r\n // this could be replaced with an easing function\r\n const SCROLL_RATE = 5\r\n // global isDragging state that must be set to true on beginDrag and false on endDrag\r\n //istanbul ignore next\r\n if (isDragging) {\r\n // distance of touch from top of screen\r\n const y = e.clientY\r\n // scroll down\r\n if (y < DISTANCE_FROM_TOP) {\r\n window.scrollTo(0, document.documentElement.scrollTop - SCROLL_RATE)\r\n }\r\n // scroll up\r\n else if (y > window.innerHeight - DISTANCE_FROM_BOTTOM) {\r\n window.scrollTo(0, document.documentElement.scrollTop + SCROLL_RATE)\r\n }\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n // Add event listener when the component mounts\r\n /** Handles auto scroll on drag near the edge of the screen on mobile. */\r\n document.addEventListener(\"dragover\", onTouchMove)\r\n // Cleanup function to remove the event listener when the component unmounts\r\n return () => {\r\n document.removeEventListener(\"dragover\", onTouchMove)\r\n }\r\n //eslint-disable-next-line\r\n }, [isDragging]) // Empty dependency array ensures the effect runs only once\r\n\r\n return (\r\n \r\n {/* move */}\r\n {row.cells.map((cell: any, j) => {\r\n return (\r\n \r\n {j === 0 ? (\r\n \r\n \r\n \r\n ) : (\r\n <>{cell.render(\"Cell\")}\r\n )}\r\n \r\n )\r\n })}\r\n \r\n )\r\n }\r\n // Render the UI for your table\r\n return (\r\n \r\n \r\n \r\n {headerGroups.map((headerGroup, hIndex) => (\r\n \r\n {headerGroup.headers.map((column: any, _colIndex) => (\r\n \r\n \r\n {column.render(\"Header\")}\r\n \r\n {checkSorting(column)}\r\n \r\n \r\n \r\n {column.canFilter ? column.render(\"Filter\") : null}\r\n \r\n \r\n ))}\r\n \r\n ))}\r\n \r\n \r\n {(!rows || rows.length === 0) && (\r\n \r\n \r\n
    \r\n {typeof noDataText === \"string\" ? (\r\n \r\n ) : null}\r\n \r\n {noDataText}\r\n
    \r\n
    \r\n
    \r\n )}\r\n\r\n {rows.map((row, _i) => {\r\n prepareRow(row)\r\n return (\r\n \r\n )\r\n })}\r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default GlobalTableDragDrop\r\n","import { useEffect } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport {\r\n comparingConfigAndReduxArrays,\r\n getCountFieldFormateForConfig\r\n} from \"src/configurationPortal/pages/FunctionHelper\"\r\nimport { ConfigTabNames } from \"src/configurationPortal/pages/helper\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { getConfigurationDecryptAndSetRedux } from \"src/utils/helper\"\r\n\r\nexport const ConfigTabNavigateWarning = ({\r\n componentName,\r\n isTabChangeCheck\r\n}: {\r\n componentName: string\r\n isTabChangeCheck?: boolean\r\n}) => {\r\n const { config, reportData, auth } = useSelector((state: RootState) => {\r\n return {\r\n config: state.config || {},\r\n reportData: state.report || {},\r\n auth: state.auth || {}\r\n }\r\n })\r\n\r\n const {\r\n configDetails,\r\n inputFiles,\r\n locationCategories,\r\n defaultCountFields,\r\n lookupRoutines,\r\n countPrograms,\r\n Outputs\r\n } = config\r\n const { reportsRedux } = reportData\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n const controller = new AbortController()\r\n if (\r\n isMounted &&\r\n configDetails?.configuration &&\r\n auth?.keys?.length &&\r\n (isTabChangeCheck || isTabChangeCheck === undefined)\r\n ) {\r\n const dt = getConfigurationDecryptAndSetRedux(config)\r\n if (componentName === ConfigTabNames.InputFiles) {\r\n comparingConfigAndReduxArrays(dt?.InputFiles, inputFiles)\r\n } else if (componentName === ConfigTabNames.Categories) {\r\n comparingConfigAndReduxArrays(\r\n dt?.LocationCategories,\r\n locationCategories\r\n )\r\n } else if (componentName === ConfigTabNames.CountFields) {\r\n let locConfigField = JSON.parse(JSON.stringify(dt?.Fields))\r\n let locField = JSON.parse(JSON.stringify(defaultCountFields))\r\n delete locConfigField?.countScreenTotals\r\n delete locConfigField?.productKey\r\n locConfigField = getCountFieldFormateForConfig(locConfigField)\r\n let fieldsObjCopy = getCountFieldFormateForConfig(locField)\r\n comparingConfigAndReduxArrays(locConfigField, fieldsObjCopy)\r\n } else if (componentName === ConfigTabNames.LookupRoutines) {\r\n comparingConfigAndReduxArrays(dt?.LookupRoutines, lookupRoutines)\r\n } else if (componentName === ConfigTabNames.CountPrograms) {\r\n comparingConfigAndReduxArrays(dt?.CountPrograms, countPrograms)\r\n } else if (componentName === ConfigTabNames.Reports) {\r\n comparingConfigAndReduxArrays(dt?.Reports, reportsRedux)\r\n } else if (componentName === ConfigTabNames.Outputs) {\r\n comparingConfigAndReduxArrays(dt?.Outputs, Outputs)\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n controller.abort()\r\n }\r\n //eslint-disable-next-line\r\n }, [config, auth?.keys])\r\n\r\n return {\r\n config\r\n }\r\n}\r\n","import CategoriesToolBar from \"../../../../src/components/ConfigurationPortal/CategoriesToolBar/CategoriesToolBar\"\r\nimport {\r\n Alert,\r\n AlertTitle,\r\n Checkbox,\r\n Grid,\r\n IconButton,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { Loader } from \"../../../../src/utils/reusables/reusable\"\r\nimport React, { useCallback, useEffect, useState } from \"react\"\r\nimport GlobalTableDragDrop from \"../../../../src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport { useAppThunkDispatch } from \"../../../../src/redux/store\"\r\nimport { setLocationCategories } from \"../../../../src/redux/slices/configSlice\"\r\nimport ConfirmDialog from \"../../../../src/components/ConfirmDialog/ConfirmDialog\"\r\nimport Warning from \"@mui/icons-material/Warning\"\r\nimport { TableComponentNames } from \"src/constants/globalTableDragDrop\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport trashIcon from \"../../../../src/assets/images/TrashIcon.svg\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { ConfigTabNames, updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { ConfigTabNavigateWarning } from \"src/hooks/ConfigTabNavigateWarning\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport editIcon from \"src/assets/images/Edit.png\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useHistory } from \"react-router-dom\"\r\n\r\nlet preDeleteRow = {} as any\r\nconst Categories = ({ liftCategorySaveClick }) => {\r\n const history = useHistory()\r\n const {\r\n config: { locationCategories, configType: configTypeFromStore }\r\n } = ConfigDataHook()\r\n\r\n const [isTabChangeCheck, setIsTabChangeCheck] = useState(true)\r\n ConfigTabNavigateWarning({\r\n componentName: ConfigTabNames.Categories,\r\n isTabChangeCheck: isTabChangeCheck\r\n })\r\n const [renderData, setRenderData] = useState([] as any)\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n const { t } = useTranslation()\r\n const dispatch = useAppThunkDispatch()\r\n const search = window.location.search || \"\"\r\n\r\n useEffect(() => {\r\n setRenderData([...locationCategories])\r\n }, [locationCategories])\r\n\r\n const displaySpan = (props: any) => {\r\n return (\r\n {props.value ? props.value : 0}\r\n )\r\n }\r\n\r\n const displayDisableCheckbox = (props: any) => {\r\n return (\r\n }\r\n disabled={true}\r\n />\r\n )\r\n }\r\n const updateCategory = useCallback(\r\n (row1: { original: any; index: number }) => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(\r\n PATH.EDIT_CATEGORY.replace(\":id\", `${row1.index + 1}`) + search\r\n )\r\n })\r\n },\r\n []\r\n )\r\n const deleteCategory = useCallback((row: any) => {\r\n setIsConfirmOpen(true)\r\n preDeleteRow = { ...row.original }\r\n }, [])\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.Sort),\r\n accessor: \"SortOrder\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 50\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Category),\r\n accessor: \"Name\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 300,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Label),\r\n accessor: \"Label\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: \"AQ Only\",\r\n accessor: \"IsAQOnly\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return displayDisableCheckbox(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 150,\r\n\r\n Cell: props => {\r\n const handleEditClick = () => {\r\n updateCategory(props.row)\r\n }\r\n\r\n const handleDeleteClick = () => {\r\n deleteCategory(props.row)\r\n }\r\n const icons = [\r\n {\r\n title: getTranslations(t, Translates.Edit),\r\n clickFn: handleEditClick,\r\n isNotDisabled: true,\r\n icon: (\r\n \r\n )\r\n },\r\n {\r\n title: getTranslations(t, Translates.Delete),\r\n clickFn: handleDeleteClick,\r\n icon: (\r\n \r\n )\r\n }\r\n ]\r\n return (\r\n <>\r\n {icons.map(f => {\r\n return (\r\n \r\n \r\n {f.icon}\r\n \r\n \r\n )\r\n })}\r\n \r\n )\r\n }\r\n }\r\n ],\r\n [t]\r\n )\r\n\r\n const setContent = () => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {`${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} ${preDeleteRow.Name} ${getTranslations(\r\n t,\r\n Translates.Category\r\n )}?`}\r\n

    \r\n
    \r\n )\r\n }\r\n const callbackConfirmation = (res: boolean) => {\r\n if (res) {\r\n let dt\r\n if (preDeleteRow.Name !== \"Other\") {\r\n dt = renderData.filter(f => f.Name !== preDeleteRow.Name)\r\n } else {\r\n dt = renderData.filter(f => f.Label !== preDeleteRow.Label)\r\n }\r\n dt = dt.map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n dispatch(setLocationCategories(dt))\r\n }\r\n setIsConfirmOpen(false)\r\n }\r\n const catSaveClick = () => {\r\n liftCategorySaveClick(\r\n [\r\n ...locationCategories.map((m, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n ],\r\n \"LocationCategoriesTab\"\r\n )\r\n }\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n }\r\n return (\r\n <>\r\n \r\n\r\n
    {displayGrid()}
    \r\n \r\n )\r\n}\r\n\r\nexport default Categories\r\n","import BreadCrumb from \"../../BreadCrumb/BreadCrumb\"\r\nimport { Button, Grid, Tooltip } from \"@mui/material\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nconst CountFieldsToolBar = ({ fieldsSaveClick }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config.configType\r\n )\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `countFields`\r\n let variables: any = {\r\n countFields: getTranslations(t, Translates.Count_Fields)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n\r\n const countFieldsSaveClick = () => {\r\n fieldsSaveClick()\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default CountFieldsToolBar\r\n","import {\r\n setCountFields,\r\n setDefaultCountFields\r\n} from \"src/redux/slices/configSlice\"\r\n\r\nexport const callbackConfirmationHelper = ({\r\n res,\r\n setIsConfirmOpen,\r\n dispatch,\r\n deleteField,\r\n deleteFieldFromCountProgram,\r\n defaultCountFields,\r\n countFields\r\n}: {\r\n res: boolean\r\n setIsConfirmOpen: Function\r\n dispatch: Function\r\n deleteField: Function\r\n deleteFieldFromCountProgram: Function\r\n defaultCountFields\r\n countFields\r\n}) => {\r\n let fieldsCopy = { ...defaultCountFields }\r\n let countFieldsCopy = { ...countFields }\r\n if (res) {\r\n if (Object.keys(countFields).length) {\r\n let finalObj = deleteField(countFieldsCopy)\r\n dispatch(setCountFields({ ...finalObj }))\r\n }\r\n let finalObj = deleteField(fieldsCopy)\r\n dispatch(setDefaultCountFields({ data: { ...finalObj }, type: \"DELETE\" }))\r\n deleteFieldFromCountProgram()\r\n }\r\n setIsConfirmOpen(false)\r\n}\r\n","import React, { useCallback, useState } from \"react\"\r\nimport { Grid, Button, Checkbox, Divider, Tooltip } from \"@mui/material\"\r\nimport GlobalTable from \"../../../../src/components/GlobalTable/GlobalTable\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport editIcon from \"../../../../src/assets/images/Edit.png\"\r\nimport trashIcon from \"../../../../src/assets/images/TrashIcon.svg\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"../../../../src/constants/paths\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { LocationsList } from \"./Constants\"\r\nimport { setCountPrograms } from \"src/redux/slices/configSlice\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport AlertConfirmationContent from \"../Components/AlertConfirmationContent\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { callbackConfirmationHelper } from \"./Helper\"\r\nimport { KEY_CODES, setIsDisableButton } from \"src/utils/constants\"\r\n\r\nlet preDeleteRow = {} as any\r\n\r\nconst CountFieldsLocations = ({ locations, setIsTabChangeCheck }) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n let search = window.location.search || \"\"\r\n\r\n const {\r\n config: {\r\n countFields,\r\n defaultCountFields,\r\n countPrograms,\r\n configType: configTypeFromStore\r\n }\r\n } = ConfigDataHook()\r\n const dispatch = useDispatch()\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n\r\n const displaySpan = (props: any) => {\r\n return (\r\n {props.value ? props.value : 0}\r\n )\r\n }\r\n\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.Field),\r\n accessor: \"field\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 220,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Display_Name),\r\n accessor: \"Labels[0][en-us]\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Show_on_tag_details),\r\n accessor: \"ShowOnTagDetails\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n return (\r\n \r\n }\r\n disabled={true}\r\n />\r\n \r\n )\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Show_on_Qty_Entry),\r\n accessor: \"ShowOnQtyEntry\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n return (\r\n \r\n }\r\n disabled={true}\r\n />\r\n \r\n )\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"actions\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 100,\r\n Cell: props => {\r\n return (\r\n \r\n \r\n editFieldsLocation(props.row)}\r\n onKeyUp={e => handleEditKeyUp(e, props.row)}\r\n />\r\n \r\n \r\n \r\n deleteFieldsLocation(props.row.original)}\r\n onKeyUp={e => handleDeleteKeyUp(e, props.row.original)}\r\n className={`${\r\n configTypeFromStore === \"view\" ? \"disable-img\" : \"pointer\"\r\n }`}\r\n />\r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n ],\r\n [t, locations]\r\n )\r\n\r\n const handleNewLocationClick = () => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIGURATION_COUNT_FIELDS_LOCATION + search)\r\n })\r\n //eslint-disable-next-line\r\n }\r\n const handleEditKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n editFieldsLocation(row)\r\n }\r\n }, [])\r\n\r\n const editFieldsLocation = (row: any) => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIGURATION_COUNT_FIELDS_LOCATION + search, {\r\n isEdit: true,\r\n index: row.index,\r\n data: { ...row.original }\r\n })\r\n })\r\n }\r\n\r\n const handleDeleteKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n deleteFieldsLocation(row)\r\n }\r\n }, [])\r\n\r\n const deleteFieldsLocation = (row: any) => {\r\n setIsConfirmOpen(true)\r\n preDeleteRow = { ...row }\r\n }\r\n const deleteField = data => {\r\n if ([LocationsList.SecondaryLocation1.OjKey].includes(preDeleteRow.field)) {\r\n delete data.SecondaryLocation1\r\n delete data.SecondaryLocation2\r\n delete data.SecondaryLocation3\r\n } else if (\r\n [LocationsList.SecondaryLocation2.OjKey].includes(preDeleteRow.field)\r\n ) {\r\n delete data.SecondaryLocation2\r\n delete data.SecondaryLocation3\r\n } else {\r\n delete data[preDeleteRow.field]\r\n }\r\n return data\r\n }\r\n\r\n const deleteFieldFromCountProgram = () => {\r\n let locCountPrograms = countPrograms.map(i => {\r\n let copyOfI = JSON.parse(JSON.stringify(i))\r\n if (\r\n [LocationsList.SecondaryLocation1.OjKey].includes(preDeleteRow.field)\r\n ) {\r\n delete copyOfI?.SecondaryLocation1\r\n delete copyOfI?.SecondaryLocation2\r\n delete copyOfI?.SecondaryLocation3\r\n } else if (\r\n [LocationsList.SecondaryLocation2.OjKey].includes(preDeleteRow.field)\r\n ) {\r\n delete copyOfI?.SecondaryLocation2\r\n delete copyOfI?.SecondaryLocation3\r\n } else {\r\n delete copyOfI?.[preDeleteRow.field]\r\n }\r\n return copyOfI\r\n })\r\n\r\n dispatch(setCountPrograms(locCountPrograms))\r\n }\r\n\r\n const callbackConfirmation = useCallback(\r\n (res: boolean) => {\r\n callbackConfirmationHelper({\r\n res,\r\n setIsConfirmOpen,\r\n dispatch,\r\n deleteField,\r\n deleteFieldFromCountProgram,\r\n defaultCountFields,\r\n countFields\r\n })\r\n },\r\n //eslint-disable-next-line\r\n [countFields]\r\n )\r\n const setContent = useCallback(\r\n () => {\r\n let fields = \"\"\r\n if (\r\n [LocationsList.SecondaryLocation1.OjKey].includes(preDeleteRow.field) &&\r\n locations.length > 2\r\n ) {\r\n fields = `${LocationsList.SecondaryLocation1.OjKey}, ${LocationsList.SecondaryLocation2.OjKey}`\r\n if (locations.length > 3) {\r\n fields = `${fields}, ${LocationsList.SecondaryLocation3.OjKey}`\r\n }\r\n } else if (\r\n [LocationsList.SecondaryLocation2.OjKey].includes(preDeleteRow.field) &&\r\n locations.length > 3\r\n ) {\r\n fields = `${LocationsList.SecondaryLocation2.OjKey}, ${LocationsList.SecondaryLocation3.OjKey}`\r\n } else {\r\n fields = preDeleteRow.field\r\n }\r\n return (\r\n \r\n )\r\n },\r\n //eslint-disable-next-line\r\n [preDeleteRow.field, locations]\r\n )\r\n\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n }\r\n return (\r\n \r\n \r\n
    {getTranslations(t, Translates.Locations)}
    \r\n
    \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Location)}\r\n \r\n \r\n \r\n {displayGrid()}\r\n \r\n \r\n
    \r\n )\r\n}\r\n\r\nexport default CountFieldsLocations\r\n","import React, { useCallback, useEffect, useState } from \"react\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { Grid, Button, Checkbox, Tooltip } from \"@mui/material\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { Loader } from \"../../../../src/utils/reusables/reusable\"\r\nimport GlobalTableDragDrop from \"../../../../src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport editIcon from \"../../../../src/assets/images/Edit.png\"\r\nimport trashIcon from \"../../../../src/assets/images/TrashIcon.svg\"\r\nimport { PATH } from \"../../../constants/paths\"\r\nimport {\r\n columnDataDetails,\r\n currencySymbolDisplay,\r\n ProductsList,\r\n reorderRecords\r\n} from \"./Constants\"\r\nimport { setCountPrograms } from \"../../../../src/redux/slices/configSlice\"\r\nimport ConfirmDialog from \"../../../../src/components/ConfirmDialog/ConfirmDialog\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport {\r\n CONFIG_MODULES,\r\n KEY_CODES,\r\n setIsDisableButton\r\n} from \"src/utils/constants\"\r\nimport AlertConfirmationContent from \"../Components/AlertConfirmationContent\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { callbackConfirmationHelper } from \"./Helper\"\r\nlet preDeleteRow = {} as any\r\n\r\nconst CountFieldsProducts = ({ products, setIsTabChangeCheck }) => {\r\n const { t } = useTranslation()\r\n const {\r\n config: {\r\n generalSettings,\r\n countFields,\r\n defaultCountFields,\r\n countPrograms,\r\n configType: configTypeFromStore\r\n }\r\n } = ConfigDataHook()\r\n\r\n const [renderData, setRenderData] = useState(reorderRecords(products))\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n let search = window.location.search || \"\"\r\n const displaySpan = (props: any) => {\r\n return (\r\n \r\n {props.value ? props.value : \"-\"}\r\n \r\n )\r\n }\r\n const displayCurrency = (props: any) => {\r\n return (\r\n \r\n {currencySymbolDisplay.includes(props.row.original.field) && props.value\r\n ? props.value\r\n : \"-\"}\r\n \r\n )\r\n }\r\n const displayCheckbox = (props: any) => {\r\n return (\r\n \r\n }\r\n disabled={true}\r\n />\r\n \r\n )\r\n }\r\n const displayAction = (props: any) => {\r\n return (\r\n \r\n \r\n editFieldsProduct(props.row)}\r\n onKeyUp={e => handleEditFieldsKeyUp(e, props.row)}\r\n />\r\n \r\n \r\n \r\n deleteFieldsProduct(props.row.original)}\r\n onKeyUp={e => handleDeleteFieldsKeyUp(e, props.row.original)}\r\n />\r\n \r\n \r\n \r\n )\r\n }\r\n useEffect(() => {\r\n setRenderData(reorderRecords(products))\r\n }, [products])\r\n const columnsData = React.useMemo(() => {\r\n return columnDataDetails.map((i, j) => {\r\n return {\r\n ...i,\r\n ...{\r\n Header: getTranslations(t, i.Header),\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: [0].includes(j),\r\n Cell: props => {\r\n if ([3].includes(j)) return displayCurrency(props)\r\n else if ([5, 6].includes(j)) return displayCheckbox(props)\r\n else if ([7].includes(j)) return displayAction(props)\r\n return displaySpan(props)\r\n }\r\n }\r\n }\r\n })\r\n //eslint-disable-next-line\r\n }, [Object.keys(generalSettings).length, t])\r\n const handleNewProductClick = () => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIGURATION_COUNT_FIELDS_PRODUCT + search)\r\n })\r\n\r\n //eslint-disable-next-line\r\n }\r\n\r\n const handleEditFieldsKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n editFieldsProduct(row)\r\n }\r\n }, [])\r\n\r\n const editFieldsProduct = (row: any) => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIGURATION_COUNT_FIELDS_PRODUCT + search, {\r\n isEdit: true,\r\n index: row.index,\r\n data: { ...row.original }\r\n })\r\n })\r\n }\r\n const handleDeleteFieldsKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n deleteFieldsProduct(row)\r\n }\r\n }, [])\r\n const deleteFieldsProduct = (row: any) => {\r\n setIsConfirmOpen(true)\r\n preDeleteRow = { ...row }\r\n }\r\n const deleteField = data => {\r\n for (let key in data) {\r\n if (key === preDeleteRow.field) delete data[key]\r\n if (key === \"Ext\" && preDeleteRow.field === \"Price\") {\r\n delete data[key]\r\n }\r\n }\r\n return data\r\n }\r\n\r\n const deleteFieldFromCountProgram = () => {\r\n let locCountPrograms = countPrograms.map(i => {\r\n let copyOfI = JSON.parse(JSON.stringify(i))\r\n if (i?.ProductMode) {\r\n delete copyOfI[preDeleteRow.OjKey]\r\n if (i.ProductMode.Product?.AncillaryData) {\r\n delete copyOfI.ProductMode.Product.AncillaryData[preDeleteRow.OjKey]\r\n if (!Object.keys(copyOfI.ProductMode.Product.AncillaryData).length) {\r\n delete copyOfI.ProductMode.Product.AncillaryData\r\n }\r\n }\r\n }\r\n return copyOfI\r\n })\r\n dispatch(setCountPrograms(locCountPrograms))\r\n }\r\n const callbackConfirmation = useCallback(\r\n (res: boolean) => {\r\n callbackConfirmationHelper({\r\n res,\r\n setIsConfirmOpen,\r\n dispatch,\r\n deleteField,\r\n deleteFieldFromCountProgram,\r\n defaultCountFields,\r\n countFields\r\n })\r\n },\r\n //eslint-disable-next-line\r\n [countFields]\r\n )\r\n const setContent = useCallback(\r\n () => {\r\n return (\r\n \r\n )\r\n },\r\n //eslint-disable-next-line\r\n [preDeleteRow.field]\r\n )\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n }\r\n\r\n return (\r\n \r\n \r\n
    {getTranslations(t, Translates.Products)}
    \r\n
    \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Product)}\r\n \r\n \r\n \r\n {displayGrid()}\r\n \r\n
    \r\n )\r\n}\r\nexport default CountFieldsProducts\r\n","import { useEffect, useState } from \"react\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { FormControl, Grid, InputLabel, MenuItem, Select } from \"@mui/material\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport CountFieldsToolBar from \"../../../../src/components/ConfigurationPortal/CountFieldsToolBar/CountFieldsToolBar\"\r\nimport CountFieldsLocations from \"./CountFieldsLocations\"\r\nimport CountFieldsProducts from \"./CountFieldsProducts\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { LocationsList, ProductsList, initCountFields } from \"./Constants\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { ConfigTabNames, updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { setReduxCountScreenTotals } from \"src/redux/slices/configSlice\"\r\nimport {\r\n setReduxProductKey,\r\n setReduxOutOfRangeCountMethod\r\n} from \"src/redux/slices/configSlice\"\r\nimport { ConfigTabNavigateWarning } from \"src/hooks/ConfigTabNavigateWarning\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nconst CountFields = ({ liftCountFieldsSaveClick }) => {\r\n const { t } = useTranslation()\r\n const dispatch = useDispatch()\r\n const {\r\n config: {\r\n countFields,\r\n defaultCountFields,\r\n reduxCountScreenTotals,\r\n reduxProductKey,\r\n reduxOutOfRangeCountMethod,\r\n configDetails,\r\n isGetConfigDecrypt\r\n }\r\n } = ConfigDataHook()\r\n const [isTabChangeCheck, setIsTabChangeCheck] = useState(true)\r\n\r\n ConfigTabNavigateWarning({\r\n componentName: ConfigTabNames.CountFields,\r\n isTabChangeCheck: isTabChangeCheck\r\n })\r\n\r\n let fieldsObj =\r\n Object.keys(countFields).length === 0 ? defaultCountFields : countFields\r\n\r\n const [locations, setLocations] = useState([])\r\n const [products, setProducts] = useState([])\r\n const [countScreenTotals, setCountScreenTotals] = useState(\r\n reduxCountScreenTotals\r\n )\r\n const [productKey, setProductKey] = useState(\r\n reduxProductKey\r\n )\r\n\r\n const [outOfRangeCountMethod, setOutOfRangeCountMethod] = useState(\r\n reduxOutOfRangeCountMethod\r\n )\r\n\r\n useEffect(() => {\r\n if (configDetails?.configuration && isGetConfigDecrypt) {\r\n const configObject = JSON.parse(configDetails.configuration)\r\n if (configObject.Fields && !Object.keys(configObject.Fields).length) {\r\n if (\r\n JSON.stringify(defaultCountFields) !== JSON.stringify(initCountFields)\r\n ) {\r\n setIsTabChangeCheck(true)\r\n } else {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n }\r\n }\r\n }\r\n }, [configDetails, isGetConfigDecrypt])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n setCountScreenTotals(reduxCountScreenTotals)\r\n setProductKey(reduxProductKey)\r\n setOutOfRangeCountMethod(reduxOutOfRangeCountMethod)\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n }, [reduxCountScreenTotals, reduxProductKey, reduxOutOfRangeCountMethod])\r\n\r\n useEffect(() => {\r\n setProductKey(reduxProductKey)\r\n }, [reduxProductKey])\r\n\r\n useEffect(() => {\r\n let locations: any = []\r\n let products: any = []\r\n for (let key in defaultCountFields) {\r\n if (\r\n [\r\n LocationsList.Location.OjKey,\r\n LocationsList.SecondaryLocation1.OjKey,\r\n LocationsList.SecondaryLocation2.OjKey,\r\n LocationsList.SecondaryLocation3.OjKey\r\n ].includes(key)\r\n ) {\r\n const obj: any = {\r\n ...LocationsList[key],\r\n ...defaultCountFields[key],\r\n field: key\r\n }\r\n\r\n locations.push(obj)\r\n } else {\r\n const obj: any = {\r\n ...ProductsList[key],\r\n ...defaultCountFields[key],\r\n field: key\r\n }\r\n\r\n products.push(obj)\r\n }\r\n }\r\n\r\n setLocations(locations)\r\n setProducts(products)\r\n \r\n }, [defaultCountFields, fieldsObj])\r\n\r\n const fieldsSaveClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n liftCountFieldsSaveClick(\r\n {\r\n defaultCountFields,\r\n countScreenTotals,\r\n productKey,\r\n outOfRangeCountMethod\r\n },\r\n \"CountFieldsTab\"\r\n )\r\n }\r\n\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n setCountScreenTotals(e.target.value)\r\n dispatch(setReduxCountScreenTotals(e.target.value))\r\n \r\n }\r\n\r\n const onFormChangeProductKey = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n setProductKey(e.target.value)\r\n dispatch(setReduxProductKey(e.target.value))\r\n }\r\n\r\n const onOutOfRangeCountMethodChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n setOutOfRangeCountMethod(e.target.value)\r\n dispatch(setReduxOutOfRangeCountMethod(e.target.value))\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n
    {getTranslations(t, Translates.GENERAL)}
    \r\n
    \r\n\r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Count_screen_totals)}\r\n \r\n onFormChange(e)}\r\n inputProps={{ \"data-testid\": \"selecct-count-field\" }}\r\n >\r\n {locations.map((i: any) => (\r\n \r\n {i.Labels[0][\"en-us\"]}\r\n \r\n ))}\r\n \r\n \r\n
    \r\n
    \r\n\r\n \r\n\r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Product_key)}\r\n \r\n onFormChangeProductKey(e)}\r\n defaultValue={productKey} \r\n >\r\n \r\n {getTranslations(t, Translates.SKU)}\r\n \r\n \r\n {getTranslations(t, Translates.SKU_Barcode)}\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Out_Of_Range_Count_Method)}\r\n \r\n onOutOfRangeCountMethodChange(e)}\r\n defaultValue={outOfRangeCountMethod}\r\n >\r\n \r\n {getTranslations(t, Translates.AQ_Only)}\r\n \r\n \r\n {getTranslations(t, Translates.MQ_Only)}\r\n \r\n \r\n {getTranslations(t, Translates.TOGGLE)}\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default CountFields\r\n","import { Grid } from \"@mui/material\"\r\nimport BreadCrumb from \"../../../components/BreadCrumb/BreadCrumb\"\r\n\r\ninterface Props {\r\n customPath: string\r\n bConfig: {\r\n currentPath: string\r\n mapObj: { reportings: string }\r\n showHomeIcon: boolean\r\n }\r\n}\r\n\r\nconst CBreadCrumb = ({ customPath, bConfig }: Props) => {\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default CBreadCrumb\r\n","import {\r\n Grid,\r\n FormControl,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n Button,\r\n TextField,\r\n FormControlLabel,\r\n Checkbox\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { setLocationCategories } from \"../../../redux/slices/configSlice\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../redux/store\"\r\nimport { useHistory, useParams } from \"react-router-dom\"\r\nimport { useSelector } from \"react-redux\"\r\nimport React, { useState, useEffect, useCallback } from \"react\"\r\nimport { PATH } from \"../../../constants/paths\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations, setWeekFieldError } from \"src/utils/helper\"\r\nimport CBreadCrumb from \"../Components/CBreadCrumb\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\ninterface INewCategory {\r\n Category: string\r\n Label: string\r\n IsAQOnly: boolean\r\n}\r\n\r\nconst formFieldNames = {\r\n Category: \"Category\",\r\n Label: \"Label\",\r\n IsAQOnly: \"IsAQOnly\"\r\n}\r\nconst CreateEditCategory = () => {\r\n const { id }: { id: string } = useParams()\r\n const { t } = useTranslation()\r\n const {\r\n config: { configType: configTypeFromStore }\r\n } = ConfigDataHook()\r\n const [categoriesList, setCategoriesList] = useState([\r\n \"Salesfloor\",\r\n \"Stockroom\",\r\n \"Pharmacy\",\r\n \"Overstock\",\r\n \"Understock\",\r\n \"Offsite\",\r\n \"Trailer\",\r\n \"Precount\",\r\n \"Other\"\r\n ])\r\n const [form, setForm] = React.useState({\r\n Category: \"\",\r\n Label: \"\",\r\n IsAQOnly: false\r\n } as INewCategory)\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n Label: \"\"\r\n })\r\n const [errorMsg, setErrorMsg] = useState(false)\r\n const [saveClicked, setSaveClicked] = useState(false)\r\n const dispatch = useAppThunkDispatch()\r\n const history = useHistory()\r\n const configData = useSelector((state: RootState) => state.config)\r\n const storeId: number = id !== undefined ? Number(id) : -1 //want to get index of array means subtract 1\r\n\r\n const search = window.location.search || \"\"\r\n\r\n useEffect(() => {\r\n if (configData) {\r\n const categories = configData.locationCategories || []\r\n let formData = {} as INewCategory\r\n if (storeId !== -1 && categories[storeId - 1]) {\r\n formData = {\r\n ...formData,\r\n ...{\r\n Category: categories[storeId - 1].Name,\r\n Label: categories[storeId - 1].Label,\r\n IsAQOnly: categories[storeId - 1].IsAQOnly || false\r\n }\r\n }\r\n setForm(formData)\r\n }\r\n const _temp = categories.filter(f => f.Name !== \"Other\").map(d => d.Name)\r\n setCategoriesList([\r\n ...categoriesList.filter(\r\n f => !_temp.includes(f) || (storeId !== -1 && f === formData.Category)\r\n )\r\n ])\r\n }\r\n }, [configData])\r\n\r\n const getBreadcrumbConfig = () => {\r\n const currentPath = \"categories\"\r\n const variables: any = {\r\n categories: getTranslations(\r\n t,\r\n storeId === -1 ? Translates.New_Category : Translates.Edit_Category\r\n )\r\n }\r\n const bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n\r\n const onFormChange = useCallback(\r\n e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value\r\n if (e.target.name) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: [formFieldNames.IsAQOnly].includes(e.target.name)\r\n ? e.target.checked\r\n : val\r\n })\r\n }\r\n if (e.target.name === formFieldNames.Category) {\r\n setForm({ ...form, [e.target.name]: val, Label: val })\r\n }\r\n if (e.target.name === formFieldNames.Label) {\r\n setErrorMsg(false)\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n }\r\n },\r\n [setForm, form]\r\n )\r\n\r\n const checkValidation = () =>\r\n Object.values(form).some(s => s === \"\" || s === null) ||\r\n Object.values(weekIVFields).some(s => s || s !== \"\") ||\r\n configTypeFromStore === \"view\"\r\n\r\n const getMaxSortOrder = categories => {\r\n return categories?.length > 0\r\n ? categories.reduce(\r\n (maxSortOrder, category) =>\r\n Math.max(category.SortOrder, maxSortOrder),\r\n 0\r\n )\r\n : 0\r\n }\r\n\r\n const updateCategories = (categories, newItem) => {\r\n const categoriesLoc = categories || []\r\n if (storeId <= -1) {\r\n return [...categoriesLoc, { ...newItem }]\r\n } else {\r\n return categoriesLoc.map((category, index) =>\r\n index === storeId - 1\r\n ? { ...newItem, SortOrder: category.SortOrder }\r\n : category\r\n )\r\n }\r\n }\r\n\r\n const handleSave = () => {\r\n const categories = configData?.locationCategories\r\n const otherLabels = categories\r\n ?.filter(\r\n (category, index) => category.Name === \"Other\" && storeId - 1 !== index\r\n )\r\n .map(category => category.Label)\r\n\r\n if (form.Category === \"Other\" && otherLabels?.includes(form.Label)) {\r\n setErrorMsg(true)\r\n } else {\r\n setErrorMsg(false)\r\n const sortOrder = getMaxSortOrder(categories)\r\n const newItem = {\r\n Name: form.Category,\r\n Label: form.Label,\r\n SortOrder: sortOrder + 1,\r\n IsAQOnly: form.IsAQOnly\r\n }\r\n\r\n const updatedCategories = updateCategories(categories, newItem)\r\n\r\n dispatch(setLocationCategories(updatedCategories))\r\n history.goBack()\r\n }\r\n }\r\n\r\n const onSaveClickUseCallBack = useCallback(() => {\r\n const handleUpdate = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setSaveClicked(true)\r\n handleSave()\r\n }\r\n\r\n handleUpdate()\r\n }, [configData, setSaveClicked, form, storeId, history, dispatch])\r\n\r\n const onCancelClickUseCallBack = useCallback(() => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CATEGORIES + search)\r\n })\r\n }, [])\r\n\r\n const getLabelError = () => {\r\n if (saveClicked && errorMsg) {\r\n return `Can not have two \"Other\" categories with same Label`\r\n } else if (weekIVFields.Label) {\r\n return weekIVFields.Label\r\n }\r\n return \"\"\r\n }\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Select_Category)}*\r\n \r\n \r\n {categoriesList.map((name: any, i) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n }\r\n data-testid=\"IsAQOnlyCheckbox\"\r\n />\r\n }\r\n label={\"AQ Only\"}\r\n />\r\n \r\n \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default CreateEditCategory\r\n","export const LOOKUP_ROUTINES_TYPE = {\r\n CLONE: \"CLONE\",\r\n EDIT: \"EDIT\"\r\n}\r\n","import {\r\n AlertColor,\r\n Button,\r\n Divider,\r\n Grid,\r\n TextField,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport React, { useCallback, useEffect, useReducer, useState } from \"react\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport { PATH } from \"../../../constants/paths\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport {\r\n setLookupRoutines,\r\n setNewLookupRoutine\r\n} from \"../../../redux/slices/configSlice\"\r\nimport { Loader } from \"../../../utils/reusables/reusable\"\r\nimport { LOOKUP_ROUTINES_TYPE } from \"../../../constants/lookupRoutines\"\r\nimport ReadOnlyLayout from \"./ReadOnlyLayout/ReadOnlyLayout\"\r\nimport AlertC from \"src/components/Alert/Alert\"\r\nimport { getBreadcrumbPath, LookupEditorToConfig } from \"./helpers\"\r\nimport { getLayout } from \"./layout.service\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport { renderConversionFromConfig } from \"./LRConstants/lookupRenderFromConfig\"\r\nimport LookupBreadCrumb from \"../Components/CBreadCrumb\"\r\nimport ContentCopyIcon from \"@mui/icons-material/ContentCopy\"\r\nimport ContentPasteGoIcon from \"@mui/icons-material/ContentPasteGo\"\r\nimport { getToCopy, handleToPaste } from \"../CountPrograms/helper\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport AlertConfirmationContent from \"../Components/AlertConfirmationContent\"\r\nimport { reducer, updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations, setWeekFieldError } from \"src/utils/helper\"\r\ninterface ICreateNewLookupRoutine {\r\n Name: string\r\n Instructions: any\r\n}\r\n\r\nlet isConfirmOpen: boolean = false\r\nlet pasteInfo = {\r\n name: \"\",\r\n instructions: []\r\n}\r\nconst NewLookupRoutine = () => {\r\n const { t } = useTranslation()\r\n const {\r\n config: {\r\n lookupRoutines,\r\n newLookupRoutine,\r\n configType: configTypeFromStore\r\n }\r\n } = ConfigDataHook()\r\n const [lookupNameError, setLookupNameError] = useState(false)\r\n const [showAlert, setShowAlert] = useState(false)\r\n const [, setReload] = useReducer(reducer, false)\r\n const [alertProps, setAlertProps] = useState({\r\n title: \"\",\r\n severity: \"success\" as AlertColor,\r\n content: \"\"\r\n })\r\n const history = useHistory()\r\n const [loading, setLoading] = useState(true)\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n Name: \"\"\r\n })\r\n const location: any = useLocation()\r\n\r\n const dispatch = useDispatch()\r\n let search = window.location.search\r\n let locationState: any = { ...(location.state || {}) }\r\n const [form, setForm] = React.useState({\r\n Name: \"\",\r\n Instructions: []\r\n } as ICreateNewLookupRoutine)\r\n\r\n const data = locationState.data\r\n ? JSON.parse(locationState.data)\r\n : locationState.data\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (\r\n locationState.type === LOOKUP_ROUTINES_TYPE.EDIT &&\r\n !Object.keys(newLookupRoutine).length\r\n ) {\r\n let foundIndex: number = Number(locationState.index)\r\n if (!lookupRoutines[foundIndex]) {\r\n history.push(PATH.CONFIG_LOOKUP_ROUTINES + search)\r\n } else {\r\n let layout: any = []\r\n renderConversionFromConfig(lookupRoutines, foundIndex)\r\n layout = [...getLayout()]\r\n const locData = {\r\n Name: lookupRoutines[foundIndex]?.Name,\r\n Instructions: layout\r\n }\r\n dispatch(setNewLookupRoutine(locData))\r\n setForm(locData)\r\n lookupNameValidationCheck(data?.Name)\r\n }\r\n } else if (Object.keys(newLookupRoutine).length) {\r\n updateWarnOnTabChangeToStore(true)\r\n setForm(newLookupRoutine)\r\n }\r\n\r\n setLoading(false)\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n const lookupNameValidationCheck = name => {\r\n let foundIndex: number = Number(locationState.index)\r\n let lookupObject: any = lookupRoutines?.find((lookup: any, idx) => {\r\n if (name) {\r\n if (locationState.type === LOOKUP_ROUTINES_TYPE.EDIT) {\r\n return (\r\n lookup?.Name?.toLowerCase() === name?.toLowerCase() &&\r\n foundIndex !== idx\r\n )\r\n } else {\r\n return lookup?.Name?.toLowerCase() === name?.toLowerCase()\r\n }\r\n }\r\n })\r\n if (lookupObject) {\r\n setLookupNameError(true)\r\n window.scrollTo({ top: 0, left: 0, behavior: \"smooth\" })\r\n return true\r\n } else {\r\n setLookupNameError(false)\r\n }\r\n\r\n return false\r\n }\r\n\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIG_LOOKUP_ROUTINES + search)\r\n })\r\n }\r\n const onHandleNameChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n setLookupNameError(false)\r\n setForm({ ...form, Name: e.target.value })\r\n lookupNameValidationCheck(e.target.value)\r\n const val = e.target.value\r\n setWeekFieldError({ setWeekIVFields, val, t, field: \"Name\" })\r\n }\r\n\r\n const getTextToCopy = () => {\r\n if (form.Instructions?.length) {\r\n let configPrepared = LookupEditorToConfig(form.Instructions)\r\n return JSON.stringify(configPrepared)\r\n }\r\n return null\r\n }\r\n let textToCopy = getTextToCopy()\r\n\r\n const onSaveClick = () => {\r\n let foundIndex: number = Number(locationState.index)\r\n const _item = {\r\n Name: form.Name,\r\n Instructions: textToCopy ? JSON.parse(textToCopy) : []\r\n }\r\n let error: boolean = false\r\n\r\n error = lookupNameValidationCheck(form.Name)\r\n if (!error) {\r\n if (locationState.type === LOOKUP_ROUTINES_TYPE.EDIT) {\r\n let newArr = [...lookupRoutines]\r\n if (foundIndex !== -1) {\r\n newArr[foundIndex] = _item\r\n dispatch(setLookupRoutines([...newArr]))\r\n } else {\r\n dispatch(setLookupRoutines([...lookupRoutines, _item]))\r\n }\r\n } else {\r\n dispatch(setLookupRoutines([...lookupRoutines, _item]))\r\n }\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIG_LOOKUP_ROUTINES + search)\r\n })\r\n }\r\n }\r\n\r\n const disableCheckFunction = () => {\r\n let disable: boolean = false\r\n\r\n if (\r\n form.Name === \"\" ||\r\n lookupNameError ||\r\n configTypeFromStore === \"view\" ||\r\n Object.values(weekIVFields).some(s => s || s !== \"\")\r\n ) {\r\n disable = true\r\n }\r\n\r\n return disable\r\n }\r\n\r\n const { componentName, bConfig } = getBreadcrumbPath(\r\n locationState.index ?? -1,\r\n t\r\n )\r\n\r\n const getTextPrepareToCopy = async (clickBoardName, instructions) => {\r\n const { isCopied, locAlertProps } = await getToCopy(\r\n clickBoardName,\r\n instructions\r\n )\r\n if (isCopied) {\r\n setAlertProps(locAlertProps)\r\n setShowAlert(true)\r\n setTimeout(() => {\r\n setShowAlert(false)\r\n }, 1000)\r\n }\r\n }\r\n\r\n const handleTextPrepareToPaste = async (\r\n clickBoardName,\r\n previousInstructions\r\n ) => {\r\n const {\r\n locAlertProps,\r\n instructions,\r\n isNonEmptyArray,\r\n locPasteInfo,\r\n isAlertShow,\r\n isValueSet\r\n } = await handleToPaste(\r\n clickBoardName,\r\n previousInstructions,\r\n \"Instructions\"\r\n )\r\n\r\n if (isAlertShow) {\r\n setAlertProps(locAlertProps)\r\n setShowAlert(true)\r\n setTimeout(() => {\r\n setShowAlert(false)\r\n if (isValueSet) setForm({ ...form, ...{ Instructions: instructions } })\r\n }, 1000)\r\n return false\r\n } else if (isNonEmptyArray) {\r\n pasteInfo = locPasteInfo\r\n isConfirmOpen = true\r\n setReload(oldVal => !oldVal)\r\n }\r\n }\r\n\r\n const setDeleteContent = useCallback(\r\n () => {\r\n return (\r\n \r\n )\r\n },\r\n //eslint-disable-next-line\r\n []\r\n )\r\n\r\n const callbackConfirmation = useCallback(\r\n (res: boolean) => {\r\n if (res) {\r\n setForm({ ...form, ...{ Instructions: pasteInfo.instructions } })\r\n pasteInfo = { name: \"\", instructions: [] }\r\n }\r\n isConfirmOpen = false\r\n setReload(oldVal => !oldVal)\r\n },\r\n //eslint-disable-next-line\r\n [pasteInfo]\r\n )\r\n\r\n const getNameError = () => {\r\n if (lookupNameError) {\r\n return getTranslations(t, Translates.Lookup_name_already_exists)\r\n } else if (weekIVFields.Name) {\r\n return weekIVFields.Name\r\n }\r\n return \"\"\r\n }\r\n\r\n return (\r\n <>\r\n {loading ? (\r\n Loader()\r\n ) : (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n onHandleNameChange(e)}\r\n name=\"Label\"\r\n value={form.Name}\r\n error={lookupNameError || !!weekIVFields.Name}\r\n helperText={getNameError()}\r\n />\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleTextPrepareToPaste(\r\n CONFIG_MODULES.CopyPastInstructions\r\n .LookupRoutines,\r\n form.Instructions\r\n )\r\n }\r\n />\r\n \r\n \r\n\r\n \r\n \r\n \r\n getTextPrepareToCopy(\r\n CONFIG_MODULES.CopyPastInstructions\r\n .LookupRoutines,\r\n form.Instructions\r\n )\r\n }\r\n />\r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {locationState.type === LOOKUP_ROUTINES_TYPE.EDIT\r\n ? getTranslations(t, Translates.Update)\r\n : getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n {isConfirmOpen ? (\r\n \r\n ) : null}\r\n
    \r\n {showAlert ? : null}\r\n
    \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default NewLookupRoutine\r\n","import {\r\n AlertColor,\r\n Checkbox,\r\n FormControlLabel,\r\n Grid,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport ReadOnlyLayout from \"../LookupRoutines/ReadOnlyLayout/ReadOnlyLayout\"\r\nimport shortid from \"shortid\"\r\nimport { COUNT_PROGRAMS_TYPE } from \"../CountPrograms/Constant\"\r\nimport { CONFIG_MODULES, KEY_CODES } from \"src/utils/constants\"\r\nimport { makeLayoutAllVariableEmpty } from \"../LookupRoutines/helpers\"\r\nimport { setLayoutIfElseReadable } from \"../LookupRoutines/LRConstants/lookupRenderFromConfig\"\r\nimport ContentCopyIcon from \"@mui/icons-material/ContentCopy\"\r\nimport ContentPasteGoIcon from \"@mui/icons-material/ContentPasteGo\"\r\nimport { getToCopy, handleToPaste } from \"../CountPrograms/helper\"\r\nimport AlertC from \"src/components/Alert/Alert\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport AlertConfirmationContent from \"../Components/AlertConfirmationContent\"\r\nimport { useCallback, useReducer } from \"react\"\r\nimport { ProductsList } from \"./Constants\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { reducer } from \"../helper\"\r\ninterface Props {\r\n instructionDetails: { ValidationInstructions: any; LookupInstructions?: any }\r\n setForm: Function\r\n form: any\r\n locationState: any\r\n componentName: string\r\n onFormChange: Function\r\n}\r\n\r\nlet isConfirmOpen: boolean = false\r\nlet showAlert: boolean = false\r\nlet alertProps = {\r\n title: \"\",\r\n severity: \"success\" as AlertColor,\r\n content: \"\"\r\n}\r\n\r\nlet pasteInfo = {\r\n name: \"\",\r\n instructions: []\r\n}\r\n\r\nconst Instructions = ({\r\n instructionDetails,\r\n setForm,\r\n form,\r\n locationState,\r\n componentName,\r\n onFormChange\r\n}: Props) => {\r\n const { t } = useTranslation()\r\n const [, setReload] = useReducer(reducer, false)\r\n\r\n const handleMoveValuesKeyUp = useCallback((e: any, layout: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n moveValuesToRedux(layout)\r\n }\r\n }, [])\r\n const moveValuesToRedux = layout => {\r\n makeLayoutAllVariableEmpty()\r\n setLayoutIfElseReadable(layout)\r\n }\r\n\r\n let storeId = -1\r\n if (locationState?.isEdit || locationState?.index >= 0) {\r\n storeId = locationState?.index\r\n }\r\n\r\n const getTextPrepareToCopy = async (clickBoardName, instructions) => {\r\n const { isCopied, locAlertProps } = await getToCopy(\r\n clickBoardName,\r\n instructions\r\n )\r\n if (isCopied) {\r\n alertProps = locAlertProps\r\n showAlert = true\r\n setReload(oldVal => !oldVal)\r\n setTimeout(() => {\r\n showAlert = false\r\n setReload(oldVal => !oldVal)\r\n }, 1000)\r\n }\r\n }\r\n\r\n const setDeleteContent = useCallback(\r\n () => {\r\n return (\r\n \r\n )\r\n },\r\n //eslint-disable-next-line\r\n []\r\n )\r\n\r\n const callbackConfirmation = useCallback(\r\n (res: boolean) => {\r\n if (res) {\r\n setForm({ ...form, ...{ [pasteInfo.name]: pasteInfo.instructions } })\r\n pasteInfo = { name: \"\", instructions: [] }\r\n }\r\n isConfirmOpen = false\r\n setReload(oldVal => !oldVal)\r\n },\r\n //eslint-disable-next-line\r\n [pasteInfo]\r\n )\r\n\r\n const handleTextPrepareToPaste = async (\r\n clickBoardName,\r\n previousInstructions,\r\n instructionsName\r\n ) => {\r\n const {\r\n locAlertProps,\r\n instructions,\r\n isNonEmptyArray,\r\n locPasteInfo,\r\n isAlertShow,\r\n isValueSet\r\n } = await handleToPaste(\r\n clickBoardName,\r\n previousInstructions,\r\n instructionsName\r\n )\r\n\r\n if (isAlertShow) {\r\n alertProps = locAlertProps\r\n showAlert = true\r\n setReload(oldVal => !oldVal)\r\n setTimeout(() => {\r\n showAlert = false\r\n setReload(oldVal => !oldVal)\r\n if (isValueSet)\r\n setForm({ ...form, ...{ [instructionsName]: instructions } })\r\n }, 1000)\r\n return false\r\n } else if (isNonEmptyArray) {\r\n pasteInfo = locPasteInfo\r\n isConfirmOpen = true\r\n setReload(oldVal => !oldVal)\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n }\r\n name=\"IsAllowEdits\"\r\n onChange={e => onFormChange(e)}\r\n disabled={form?.field === ProductsList.Qty.OjKey}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Allow_Edits)}\r\n />\r\n \r\n \r\n {form?.IsAllowEdits ? (\r\n \r\n {Object.keys(instructionDetails).map((i, j) => {\r\n let instructions = []\r\n let clickBoardName = CONFIG_MODULES.CopyPastInstructions.validation\r\n let instructionsName = \"ValidationInstructions\"\r\n if (\r\n instructionDetails[i].component ===\r\n CONFIG_MODULES.CountFieldInstructions.validation\r\n ) {\r\n instructions = form?.ValidationInstructions\r\n } else if (\r\n instructionDetails[i].component ===\r\n CONFIG_MODULES.CountFieldInstructions.Lookup\r\n ) {\r\n instructions = form?.LookupInstructions\r\n clickBoardName = CONFIG_MODULES.CopyPastInstructions.Lookup\r\n instructionsName = \"LookupInstructions\"\r\n }\r\n return (\r\n \r\n

    {getTranslations(t, instructionDetails[i].title)}*

    \r\n \r\n \r\n \r\n \r\n \r\n handleTextPrepareToPaste(\r\n clickBoardName,\r\n instructions,\r\n instructionsName\r\n )\r\n }\r\n />\r\n \r\n \r\n\r\n \r\n \r\n \r\n getTextPrepareToCopy(clickBoardName, instructions)\r\n }\r\n />\r\n \r\n \r\n moveValuesToRedux(instructions)}\r\n onKeyUp={e => handleMoveValuesKeyUp(e, instructions)}\r\n data-testid=\"readonly-layout-div\"\r\n >\r\n \r\n \r\n \r\n \r\n {isConfirmOpen ? (\r\n \r\n ) : null}\r\n
    \r\n )\r\n })}\r\n
    \r\n ) : null}\r\n {showAlert ? : null}\r\n \r\n )\r\n}\r\n\r\nexport default Instructions\r\n","import React, { useCallback, useEffect, useState } from \"react\"\r\nimport {\r\n FormControl,\r\n Grid,\r\n InputLabel,\r\n Select,\r\n MenuItem,\r\n TextField,\r\n FormControlLabel,\r\n Checkbox,\r\n Button\r\n} from \"@mui/material\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { Loader } from \"../../../../src/utils/reusables/reusable\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport BreadCrumb from \"../../../../src/components/BreadCrumb/BreadCrumb\"\r\nimport { setDefaultCountFields } from \"../../../../src/redux/slices/configSlice\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport Instructions from \"./Instructions\"\r\nimport { LocationsList, instructionDetails } from \"./Constants\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport {\r\n LookupConfigToEditor,\r\n LookupEditorToConfig\r\n} from \"../LookupRoutines/helpers\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { getTranslations, setWeekFieldError } from \"src/utils/helper\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport { auditRuleTypes } from \"../Audits/AuditHelper\"\r\nimport AlertConfirmationContent from \"../Components/AlertConfirmationContent\"\r\ninterface ICreateFieldsLocation {\r\n field?: string\r\n Enabled: boolean\r\n Labels: any\r\n ShowOnTagDetails: boolean\r\n ShowOnQtyEntry: boolean\r\n IsAllowEdits: boolean\r\n ValidationInstructions: any[]\r\n}\r\n\r\nconst CountFieldsCreateEditLocation = () => {\r\n const { t } = useTranslation()\r\n const location = useLocation() as any\r\n let search = window.location.search || \"\"\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n\r\n const {\r\n config: {\r\n defaultCountFields,\r\n configType: configTypeFromStore,\r\n configDetails\r\n }\r\n } = ConfigDataHook()\r\n\r\n const [form, setForm] = React.useState({\r\n field: \"\",\r\n Enabled: true,\r\n Labels: [],\r\n ShowOnTagDetails: true,\r\n ShowOnQtyEntry: false,\r\n IsAllowEdits: false,\r\n ValidationInstructions: []\r\n } as ICreateFieldsLocation)\r\n const [errorMsg, setErrorMsg] = useState(false)\r\n const [isLabelErrorMessage, setIsLabelErrorMessage] = useState(false)\r\n\r\n const [loading, setLoading] = useState(false)\r\n const [isEdit, setIsEdit] = useState(false)\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n displayName: \"\"\r\n })\r\n\r\n let locationsMap = new Map()\r\n let locationsArray: any = []\r\n\r\n for (let key in LocationsList) {\r\n if (LocationsList.hasOwnProperty(key)) {\r\n locationsMap.set(key, LocationsList[key])\r\n const obj: any = { ...LocationsList[key], field: key }\r\n locationsArray.push(obj)\r\n }\r\n }\r\n\r\n let filtered = Object.keys(LocationsList).filter(key => {\r\n return !Object.keys(defaultCountFields).includes(key)\r\n })\r\n\r\n const locationState = { ...location.state }\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (locationState.isEdit === true) {\r\n setIsEdit(true)\r\n setForm({\r\n ...form,\r\n ...locationState.data,\r\n ...(locationState.data?.ValidationInstructions &&\r\n locationState.data.ValidationInstructions.length && {\r\n ValidationInstructions: LookupConfigToEditor(\r\n locationState.data.ValidationInstructions\r\n )\r\n }),\r\n ...(locationState.data?.IsAllowEdits === undefined &&\r\n [LocationsList.Location.OjKey].includes(\r\n locationState.data?.field\r\n ) && {\r\n IsAllowEdits: true\r\n })\r\n })\r\n } else if (locationState.data) {\r\n const data = JSON.parse(locationState.data)\r\n if (data.isEdit) {\r\n setIsEdit(true)\r\n }\r\n setForm({\r\n ...form,\r\n ...data.CountFieldData,\r\n ...{ ValidationInstructions: data.Instructions }\r\n })\r\n } else {\r\n setForm({\r\n ...form,\r\n ...{\r\n field: filtered.length ? filtered[0] : \"\",\r\n Labels: [\r\n {\r\n \"en-us\": LocationsList[filtered[0]].Labels[0][\"en-us\"] || \"\"\r\n }\r\n ]\r\n }\r\n })\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n const getBreadcrumbConfig = () => {\r\n let countFields = \"countFields\"\r\n let custLinks: any = {}\r\n custLinks[\"@countFields\"] = \"configuration/countFields\"\r\n let loc = \"Location\"\r\n let currentPath: string = `##configuration##/@${countFields}/${loc}`\r\n let variables: any = {}\r\n variables[`@${countFields}`] = getTranslations(t, Translates.Count_Fields)\r\n variables[`${loc}`] =\r\n locationState.isEdit === true\r\n ? `${getTranslations(t, Translates.Edit)} ${form.field}`\r\n : `${getTranslations(t, Translates.Add_New_Count_Field)}`\r\n let bConfig: any = {\r\n custLinks,\r\n showHomeIcon: false,\r\n currentPath,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value || \"\"\r\n if (e.target.name === \"field\" && !isEdit) {\r\n let obj = locationsMap.get(val)\r\n setForm({\r\n ...form,\r\n field: val,\r\n ...obj,\r\n Labels: [\r\n {\r\n \"en-us\": obj.Labels[0][\"en-us\"]\r\n }\r\n ]\r\n })\r\n } else if (e.target.name === \"displayName\") {\r\n if (val.length < 1) setErrorMsg(true)\r\n else {\r\n setErrorMsg(false)\r\n val.length > 10\r\n ? setIsLabelErrorMessage(true)\r\n : setIsLabelErrorMessage(false)\r\n }\r\n setForm({ ...form, Labels: [{ \"en-us\": val }] })\r\n\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n } else if ([\"ShowOnTagDetails\", \"IsAllowEdits\"].includes(e.target.name)) {\r\n setForm({ ...form, [e.target.name]: e.target.checked })\r\n }\r\n }\r\n\r\n const addEditFieldsLocation = async () => {\r\n if (\r\n [\r\n LocationsList.SecondaryLocation1.OjKey,\r\n LocationsList.SecondaryLocation2.OjKey,\r\n LocationsList.SecondaryLocation3.OjKey\r\n ].includes(form.field) &&\r\n configDetails.configuration\r\n ) {\r\n const dt = JSON.parse(configDetails.configuration)\r\n if (dt.Audits?.AuditTypeRule?.Type === auditRuleTypes.RESCAN) {\r\n setIsConfirmOpen(true)\r\n return false\r\n }\r\n }\r\n if (form.Labels[0][\"en-us\"]?.length > 10) {\r\n setIsLabelErrorMessage(true)\r\n return false\r\n }\r\n updateWarnOnTabChangeToStore(false)\r\n\r\n let DataField = \"\"\r\n let Enabled = true\r\n const BreakException = {}\r\n try {\r\n locationsArray.forEach(i => {\r\n if (i.field === form.field) {\r\n DataField = i.DataField\r\n Enabled = i.Enabled\r\n throw BreakException\r\n }\r\n })\r\n } catch (e) {\r\n if (e !== BreakException) throw e\r\n }\r\n\r\n let _payload: any = {\r\n field: form.field,\r\n ...(DataField && { DataField: DataField }),\r\n Enabled: Enabled,\r\n Labels: form.Labels,\r\n IsAllowEdits: form.IsAllowEdits,\r\n ShowOnTagDetails: form.ShowOnTagDetails,\r\n ShowOnQtyEntry: form.ShowOnQtyEntry\r\n }\r\n\r\n if (form.IsAllowEdits) {\r\n _payload = {\r\n ..._payload,\r\n ...{\r\n IsAllowEdits: form.IsAllowEdits,\r\n ValidationInstructions: LookupEditorToConfig(\r\n form.ValidationInstructions\r\n )\r\n }\r\n }\r\n }\r\n\r\n if (_payload.Labels.length === \"\") {\r\n setErrorMsg(true)\r\n return null\r\n } else {\r\n setErrorMsg(false)\r\n }\r\n\r\n let fieldKey: any = _payload?.field\r\n\r\n delete _payload?.field\r\n let finalObj: any = { data: { [fieldKey]: _payload }, type: \"UPDATE\" }\r\n\r\n setLoading(true)\r\n dispatch(setDefaultCountFields(finalObj))\r\n setTimeout(() => {\r\n setLoading(false)\r\n cancelClick()\r\n }, 100)\r\n }\r\n\r\n const cancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n history.push(PATH.CONFIGURATION_COUNT_FIELDS + search)\r\n }\r\n\r\n const errorCheck = () => {\r\n if (\r\n errorMsg ||\r\n isLabelErrorMessage ||\r\n (form.IsAllowEdits && !form.ValidationInstructions?.length) ||\r\n configTypeFromStore === \"view\" ||\r\n Object.values(weekIVFields).some(s => s || s !== \"\")\r\n ) {\r\n return true\r\n }\r\n return false\r\n }\r\n\r\n const labelErrorDisplay = () => {\r\n let errorMessage = \"\"\r\n if (errorMsg) {\r\n errorMessage = \"Please enter valid Display Name\"\r\n } else if (isLabelErrorMessage) {\r\n errorMessage = \"Length can not be more than 10\"\r\n } else if (weekIVFields.displayName) {\r\n errorMessage = weekIVFields.displayName\r\n }\r\n return errorMessage\r\n }\r\n\r\n const setModalContent = () => {\r\n const content = `${getTranslations(t, Translates.Rescan_select_warning)}.`\r\n return \r\n }\r\n\r\n const callbackConfirmation = useCallback(() => {\r\n setIsConfirmOpen(false)\r\n }, [])\r\n\r\n return (\r\n <>\r\n {loading === true ? (\r\n Loader()\r\n ) : (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Selected_Count_Field)}\r\n \r\n onFormChange(e)}\r\n inputProps={{ \"data-testid\": \"selecct-count-field\" }}\r\n >\r\n {isEdit\r\n ? locationsArray?.map((name: any) => (\r\n \r\n {name.field}\r\n \r\n ))\r\n : filtered?.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n error={\r\n errorMsg || isLabelErrorMessage || !!weekIVFields.displayName\r\n }\r\n helperText={labelErrorDisplay()}\r\n className=\"custom-form-control\"\r\n />\r\n
    \r\n \r\n \r\n onFormChange(e)}\r\n disabled={form.field === LocationsList.Location.OjKey}\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Tag_Detail_Screen)}\r\n />\r\n \r\n \r\n\r\n {[LocationsList.Location.OjKey].includes(form.field) ? (\r\n <>\r\n \r\n \r\n }\r\n />\r\n }\r\n label={getTranslations(t, Translates.Qty_Entry_Screen)}\r\n />\r\n \r\n \r\n \r\n \r\n ) : null}\r\n\r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n addEditFieldsLocation()}\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default CountFieldsCreateEditLocation\r\n","import React, { useEffect, useState } from \"react\"\r\nimport {\r\n FormControl,\r\n Grid,\r\n InputLabel,\r\n Select,\r\n MenuItem,\r\n TextField,\r\n FormControlLabel,\r\n Checkbox,\r\n Button,\r\n FormHelperText\r\n} from \"@mui/material\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport {\r\n ProductsList,\r\n currencySymbolDisplay,\r\n decimalPositionDisplay,\r\n getCurrencySymbol,\r\n initCountFields,\r\n instructionDetails\r\n} from \"./Constants\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport BreadCrumb from \"../../../../src/components/BreadCrumb/BreadCrumb\"\r\nimport { setDefaultCountFields } from \"../../../../src/redux/slices/configSlice\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport Instructions from \"./Instructions\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport {\r\n LookupConfigToEditor,\r\n LookupEditorToConfig\r\n} from \"../LookupRoutines/helpers\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations, setWeekFieldError } from \"src/utils/helper\"\r\ninterface ICreateFieldsProduct {\r\n field: any\r\n Enabled: boolean\r\n Labels: any\r\n ShowOnTagDetails: boolean\r\n ShowOnQtyEntry: boolean\r\n CurrencySymbol: boolean\r\n DecimalPlaces: any\r\n IsAllowEdits: boolean\r\n ValidationInstructions: any[]\r\n LookupInstructions: any[]\r\n}\r\n\r\nconst CountFieldsCreateEditProduct = () => {\r\n const { t } = useTranslation()\r\n const location = useLocation() as any\r\n let search = window.location.search || \"\"\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n\r\n const {\r\n config: {\r\n defaultCountFields,\r\n generalSettings,\r\n configType: configTypeFromStore\r\n }\r\n } = ConfigDataHook()\r\n\r\n const [form, setForm] = React.useState({\r\n field: \"\",\r\n Enabled: true,\r\n Labels: [],\r\n ShowOnTagDetails: false,\r\n ShowOnQtyEntry: false,\r\n CurrencySymbol: false,\r\n DecimalPlaces: null,\r\n IsAllowEdits: false,\r\n ValidationInstructions: [],\r\n LookupInstructions: []\r\n } as ICreateFieldsProduct)\r\n\r\n const [isEdit, setIsEdit] = useState(false)\r\n\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n displayName: \"\"\r\n })\r\n\r\n let productsMap = new Map()\r\n let productsArray: any = []\r\n\r\n for (let key in ProductsList) {\r\n if (ProductsList.hasOwnProperty(key)) {\r\n productsMap.set(key, ProductsList[key])\r\n let obj: any = Object.assign({}, { field: key, ...ProductsList[key] })\r\n productsArray.push(obj)\r\n }\r\n }\r\n\r\n let filtered = Object.keys(ProductsList).filter(key => {\r\n if (key === ProductsList.Ext.OjKey) {\r\n return (\r\n Object.keys(defaultCountFields).includes(ProductsList.Price.OjKey) &&\r\n !Object.keys(defaultCountFields).includes(key)\r\n )\r\n }\r\n return !Object.keys(defaultCountFields).includes(key)\r\n })\r\n const [fieldName, setFieldName] = useState(\"\")\r\n const [errorMsg, setErrorMsg] = useState({\r\n field: false,\r\n displayName: false,\r\n DecimalPlaces: false\r\n })\r\n const [fieldErrorMsg, setFieldErrorMsg] = useState(false)\r\n const locationState = { ...location.state }\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (locationState.isEdit === true) {\r\n setIsEdit(true)\r\n setFieldName(locationState.data.field)\r\n\r\n let ValidationInstructions: any[] =\r\n locationState?.data?.ValidationInstructions || []\r\n if (locationState?.data?.field === ProductsList.Qty.OjKey) {\r\n if (!ValidationInstructions?.length) {\r\n ValidationInstructions =\r\n initCountFields?.Qty?.ValidationInstructions\r\n }\r\n }\r\n setForm({\r\n ...form,\r\n ...locationState.data,\r\n ...{\r\n IsAllowEdits: locationState?.data?.IsAllowEdits ? true : false,\r\n ValidationInstructions: LookupConfigToEditor(ValidationInstructions)\r\n },\r\n ...{\r\n LookupInstructions: locationState?.data?.LookupInstructions\r\n ? LookupConfigToEditor(locationState?.data?.LookupInstructions)\r\n : []\r\n },\r\n ...([ProductsList.Qty.OjKey].includes(locationState?.data?.field) &&\r\n locationState?.data?.IsAllowEdits === undefined && {\r\n IsAllowEdits: true\r\n })\r\n })\r\n } else if (locationState.data) {\r\n const data = JSON.parse(locationState.data)\r\n setFieldName(data?.field)\r\n if (data?.isEdit) {\r\n setIsEdit(true)\r\n }\r\n\r\n setForm({\r\n ...form,\r\n ...data?.CountFieldData,\r\n ...(data?.component ===\r\n CONFIG_MODULES.CountFieldInstructions.validation && {\r\n ValidationInstructions: data?.Instructions\r\n }),\r\n ...(data?.component ===\r\n CONFIG_MODULES.CountFieldInstructions.Lookup && {\r\n LookupInstructions: data?.Instructions\r\n })\r\n })\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n const getBreadcrumbConfig = () => {\r\n let countFields = \"countFields\"\r\n let custLinks: any = {}\r\n custLinks[\"@countFields\"] = \"configuration/countFields\"\r\n let product = \"Product\"\r\n let currentPath: string = `##configuration##/@${countFields}/${product}`\r\n let variables: any = {}\r\n variables[`@${countFields}`] = getTranslations(t, Translates.Count_Fields)\r\n variables[`${product}`] = getTranslations(t, Translates.Product)\r\n let bConfig: any = {\r\n custLinks,\r\n showHomeIcon: false,\r\n currentPath,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value || \"\"\r\n if (e.target?.name === \"field\" && !decimalPositionDisplay.includes(val)) {\r\n setErrorMsg({ ...errorMsg, DecimalPlaces: false })\r\n }\r\n if (e.target?.name === \"field\" && !isEdit) {\r\n let obj = productsMap.get(val)\r\n val.length < 1 ? setFieldErrorMsg(true) : setFieldErrorMsg(false)\r\n setFieldName(val)\r\n setForm({\r\n ...form,\r\n field: val,\r\n ...obj,\r\n Labels: [\r\n {\r\n \"en-us\": obj.Labels[0][\"en-us\"]\r\n }\r\n ]\r\n })\r\n } else if (e.target?.name === \"displayName\") {\r\n if (val.length < 1) setErrorMsg({ ...errorMsg, displayName: true })\r\n else setErrorMsg({ ...errorMsg, displayName: false })\r\n setForm({ ...form, Labels: [{ \"en-us\": val }] })\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n } else if (e.target?.name === \"DecimalPlaces\") {\r\n let val = e.target.value\r\n if (val.length !== 1 || !/\\d/.test(val))\r\n setErrorMsg({ ...errorMsg, DecimalPlaces: true })\r\n else setErrorMsg({ ...errorMsg, DecimalPlaces: false })\r\n setForm({ ...form, DecimalPlaces: e.target.value })\r\n } else if (\r\n [\r\n \"IsAllowEdits\",\r\n \"ShowOnQtyEntry\",\r\n \"CurrencySymbol\",\r\n \"ShowOnTagDetails\"\r\n ].includes(e.target?.name)\r\n ) {\r\n setForm({ ...form, [e.target.name]: e.target.checked })\r\n } else if (e.target?.name) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n }\r\n\r\n const addEditFieldsProduct = async () => {\r\n updateWarnOnTabChangeToStore(false)\r\n let DataField = \"\"\r\n let Enabled = true\r\n const BreakException = {}\r\n try {\r\n productsArray.forEach(i => {\r\n if (i?.field === form?.field) {\r\n DataField = i?.DataField\r\n Enabled = i?.Enabled\r\n throw BreakException\r\n }\r\n })\r\n } catch (e) {\r\n if (e !== BreakException) throw e\r\n }\r\n\r\n let _payload: any = {\r\n field: form?.field,\r\n Enabled: Enabled,\r\n ...(DataField && { DataField: DataField }),\r\n Labels: form?.Labels,\r\n IsAllowEdits: form?.IsAllowEdits,\r\n ShowOnTagDetails: form?.ShowOnTagDetails,\r\n ShowOnQtyEntry: form?.ShowOnQtyEntry\r\n }\r\n if (currencySymbolDisplay.includes(form?.field)) {\r\n const { cDisplayMap } = getCurrencySymbol()\r\n _payload = {\r\n ..._payload,\r\n CurrencySymbol: form?.CurrencySymbol\r\n ? cDisplayMap.get(generalSettings.Currencies) ?? \"\"\r\n : \"\"\r\n }\r\n }\r\n if (\r\n decimalPositionDisplay.includes(form?.field) &&\r\n form?.DecimalPlaces !== \"\"\r\n ) {\r\n _payload = { ..._payload, DecimalPlaces: form?.DecimalPlaces }\r\n }\r\n\r\n if (instructionFieldsCheck()) {\r\n if (form?.IsAllowEdits) {\r\n _payload = {\r\n ..._payload,\r\n ...{\r\n IsAllowEdits: form?.IsAllowEdits,\r\n ValidationInstructions: LookupEditorToConfig(\r\n form?.ValidationInstructions\r\n ),\r\n ...(form?.field === ProductsList.Department.OjKey &&\r\n form?.LookupInstructions?.length && {\r\n LookupInstructions: LookupEditorToConfig(\r\n form?.LookupInstructions\r\n )\r\n })\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (_payload.Labels.length === \"\") {\r\n setErrorMsg({ ...errorMsg, field: true })\r\n return null\r\n } else {\r\n setErrorMsg({ ...errorMsg, field: false })\r\n }\r\n if (form?.field?.length < 1) {\r\n setFieldErrorMsg(true)\r\n return null\r\n } else {\r\n setFieldErrorMsg(false)\r\n }\r\n let fieldKey: any = _payload?.field\r\n\r\n delete _payload?.field\r\n\r\n let finalObj: any = {\r\n data: { [fieldKey]: { ...defaultCountFields[fieldKey], ..._payload } },\r\n type: \"UPDATE\"\r\n }\r\n\r\n dispatch(setDefaultCountFields(finalObj))\r\n\r\n setTimeout(() => {\r\n cancelClick()\r\n }, 100)\r\n }\r\n\r\n const cancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n history.push(PATH.CONFIGURATION_COUNT_FIELDS + search)\r\n }\r\n\r\n const errorCheck = () => {\r\n if (\r\n !form?.Labels[0]?.[\"en-us\"] ||\r\n !form?.field ||\r\n errorMsg.DecimalPlaces ||\r\n errorMsg.displayName ||\r\n errorMsg.field ||\r\n (form?.IsAllowEdits && !form?.ValidationInstructions?.length) ||\r\n configTypeFromStore === \"view\" ||\r\n Object.values(weekIVFields).some(s => s || s !== \"\")\r\n ) {\r\n return true\r\n }\r\n return false\r\n }\r\n\r\n const instructionFieldsCheck = () => {\r\n return [\r\n ProductsList.Price.OjKey,\r\n ProductsList.Department.OjKey,\r\n ProductsList.Qty.OjKey\r\n ].includes(form?.field)\r\n }\r\n\r\n const labelErrorDisplay = () => {\r\n if (errorMsg.displayName) {\r\n return getTranslations(t, Translates.Please_enter_valid_Display_Name)\r\n } else if (weekIVFields.displayName) {\r\n return weekIVFields.displayName\r\n }\r\n return \"\"\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Selected_Count_Field)}\r\n \r\n onFormChange(e)}\r\n disabled={isEdit}\r\n error={fieldErrorMsg}\r\n inputProps={{ \"data-testid\": \"selecct-count-field\" }}\r\n >\r\n {isEdit\r\n ? productsArray?.map((product: any) => (\r\n \r\n {product.field}\r\n \r\n ))\r\n : filtered?.map((product: any) => (\r\n \r\n {product}\r\n \r\n ))}\r\n \r\n {fieldErrorMsg ? (\r\n \r\n {getTranslations(\r\n t,\r\n Translates.Please_select_valid_Count_Field\r\n )}\r\n \r\n ) : null}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n onFormChange(e)}\r\n />\r\n \r\n \r\n \r\n {decimalPositionDisplay.includes(fieldName) && (\r\n \r\n onFormChange(e)}\r\n />\r\n \r\n )}\r\n \r\n \r\n {currencySymbolDisplay.includes(fieldName) && (\r\n \r\n onFormChange(e)}\r\n checkedIcon={}\r\n data-testid=\"CurrencySymbol\"\r\n />\r\n }\r\n label={getTranslations(t, Translates.Show_Currency_Symbol)}\r\n />\r\n \r\n )}\r\n \r\n \r\n \r\n onFormChange(e)}\r\n checkedIcon={}\r\n data-testid=\"Tag Detail Screen\"\r\n />\r\n }\r\n label={getTranslations(t, Translates.Tag_Detail_Screen)}\r\n />\r\n \r\n \r\n \r\n \r\n onFormChange(e)}\r\n disabled={\r\n form?.field === ProductsList.Qty.OjKey ||\r\n form?.field === ProductsList.Ext.OjKey\r\n }\r\n checkedIcon={}\r\n data-testid=\"Qty Entry Screen\"\r\n />\r\n }\r\n label={getTranslations(t, Translates.Qty_Entry_Screen)}\r\n />\r\n \r\n \r\n
    \r\n\r\n {instructionFieldsCheck() ? (\r\n \r\n ) : null}\r\n\r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n addEditFieldsProduct()}\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default CountFieldsCreateEditProduct\r\n","import { Button, Grid, Tooltip } from \"@mui/material\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport { PATH } from \"../../../../src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport BreadCrumbC from \"../ToolBar/BreadCrumbC\"\r\nconst LookupRoutinesToolBar = ({\r\n lookupRoutinesSaveClick,\r\n setIsTabChangeCheck\r\n}: {\r\n lookupRoutinesSaveClick: Function\r\n setIsTabChangeCheck: Function\r\n}) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config.configType\r\n )\r\n const history = useHistory()\r\n let search = window.location.search || \"\"\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `lookupRoutines`\r\n let variables: any = {\r\n lookupRoutines: getTranslations(t, Translates.Lookup_Routines)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n const lookupRoutinesToolbarSaveClick = () => {\r\n lookupRoutinesSaveClick()\r\n }\r\n const handleNewLookupRoutineClick = () => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIG_NEW_LOOKUP_ROUTINE + search)\r\n })\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Lookup_Routine)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default LookupRoutinesToolBar\r\n","import React, { useCallback, useEffect, useState } from \"react\"\r\nimport { Grid, Tooltip, Alert, AlertTitle } from \"@mui/material\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"../../../constants/paths\"\r\nimport LookupRoutinesToolBar from \"../../../components/ConfigurationPortal/LookupRoutinesToolBar/LookupRoutinesToolBar\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport {\r\n setLookupRoutines,\r\n setNewLookupRoutine\r\n} from \"../../../redux/slices/configSlice\"\r\nimport GlobalTable from \"../../../components/GlobalTable/GlobalTable\"\r\nimport trashIcon from \"../../../../src/assets/images/TrashIcon.svg\"\r\nimport ContentCopyIcon from \"@mui/icons-material/ContentCopy\"\r\nimport editIcon from \"../../../../src/assets/images/Edit.png\"\r\nimport ConfirmDialog from \"../../../components/ConfirmDialog/ConfirmDialog\"\r\nimport Warning from \"@mui/icons-material/Warning\"\r\nimport { Loader } from \"../../../utils/reusables/reusable\"\r\nimport { LOOKUP_ROUTINES_TYPE } from \"../../../constants/lookupRoutines\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { makeLayoutAllVariableEmpty } from \"./helpers\"\r\nimport \"../../../../src/assets/scss/lookup-routines.scss\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { ConfigTabNavigateWarning } from \"src/hooks/ConfigTabNavigateWarning\"\r\nimport { ConfigTabNames, updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { KEY_CODES } from \"src/utils/constants\"\r\nconst LookupRoutines = ({ liftLookupRoutinesSaveClick }) => {\r\n const [isTabChangeCheck, setIsTabChangeCheck] = useState(true)\r\n\r\n ConfigTabNavigateWarning({\r\n componentName: ConfigTabNames.LookupRoutines,\r\n isTabChangeCheck: isTabChangeCheck\r\n })\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n let search = window.location.search || \"\"\r\n const {\r\n config: { lookupRoutines, configType: configTypeFromStore }\r\n } = ConfigDataHook()\r\n const [renderData, setRenderData] = useState([] as any)\r\n const [deleteRow, setDeleteRow] = useState({} as any)\r\n const [loading, setLoading] = React.useState(true)\r\n const [isConfirmDeleteOpen, setIsConfirmDeleteOpen] = useState(false)\r\n\r\n useEffect(() => {\r\n setLoading(true)\r\n setRenderData([...(lookupRoutines || [])])\r\n setTimeout(() => {\r\n setLoading(false)\r\n }, 100)\r\n }, [lookupRoutines])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n dispatch(setNewLookupRoutine({}))\r\n makeLayoutAllVariableEmpty()\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n const handleDeleteLRKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n deleteLookupRoutine(row)\r\n }\r\n }, [])\r\n\r\n const deleteLookupRoutine = (row: any) => {\r\n setIsConfirmDeleteOpen(true)\r\n setDeleteRow(row)\r\n }\r\n const setDeleteContent = () => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {`${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} ${deleteRow.Name}?`}\r\n

    \r\n
    \r\n )\r\n }\r\n const callbackDeleteConfirmation = (res: boolean) => {\r\n if (res) {\r\n let dt: any\r\n dt = renderData.filter((f, i) => i !== Number(deleteRow.id))\r\n dispatch(setLookupRoutines(dt))\r\n }\r\n setIsConfirmDeleteOpen(false)\r\n }\r\n\r\n const cloneLookupRoutine = (row: any) => {\r\n const _item = {\r\n ...row,\r\n ...{\r\n Name: `Copy of ${row.Name}`\r\n }\r\n }\r\n\r\n dispatch(setLookupRoutines([...lookupRoutines, _item]))\r\n }\r\n\r\n const handleEditLRKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n editLookupRoutine(row)\r\n }\r\n }, [])\r\n\r\n const editLookupRoutine = (row: any) => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CONFIG_NEW_LOOKUP_ROUTINE + search, {\r\n type: LOOKUP_ROUTINES_TYPE.EDIT,\r\n data: JSON.stringify({ ...row }),\r\n index: Number(row.id),\r\n configInstructions: true\r\n })\r\n })\r\n }\r\n const lookupRoutinesSaveClick = () => {\r\n liftLookupRoutinesSaveClick([...lookupRoutines], \"LookupRoutinesTab\")\r\n }\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.Name),\r\n accessor: \"Name\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 180,\r\n Cell: props => {\r\n return (\r\n \r\n \r\n cloneLookupRoutine(props.row.original)}\r\n />\r\n \r\n \r\n {\r\n editLookupRoutine({\r\n ...props.row.original,\r\n ...{ id: props.row.id }\r\n })\r\n }}\r\n onKeyUp={e =>\r\n handleEditLRKeyUp(e, {\r\n ...props.row.original,\r\n ...{ id: props.row.id }\r\n })\r\n }\r\n />\r\n \r\n \r\n \r\n deleteLookupRoutine({\r\n ...props.row.original,\r\n ...{ id: props.row.id }\r\n })\r\n }\r\n onKeyUp={e =>\r\n handleDeleteLRKeyUp(e, {\r\n ...props.row.original,\r\n ...{ id: props.row.id }\r\n })\r\n }\r\n />\r\n \r\n \r\n )\r\n }\r\n }\r\n ],\r\n [lookupRoutines, t]\r\n )\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n {isConfirmDeleteOpen && (\r\n \r\n )}\r\n \r\n )\r\n }\r\n return (\r\n <>\r\n \r\n
    {loading ? Loader() : displayGrid()}
    \r\n \r\n )\r\n}\r\n\r\nexport default LookupRoutines\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport {\r\n FormControl,\r\n FormHelperText,\r\n InputLabel,\r\n MenuItem,\r\n Select\r\n} from \"@mui/material\"\r\nimport shortid from \"shortid\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getDefaultValue, getFieldError } from \"./Helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\ninterface Option {\r\n label: string\r\n value: any\r\n default?: boolean\r\n translateKey?: string\r\n}\r\nexport interface Props {\r\n inputAttributes: {\r\n name: string\r\n label: string\r\n placeholder?: string\r\n className?: string\r\n id?: string\r\n required?: boolean\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n variant?: \"standard\" | \"filled\" | \"outlined\"\r\n fullWidth?: boolean\r\n InputProps?: any\r\n value?: any\r\n defaultValue?: any\r\n onChange?: Function\r\n options: Option[]\r\n disabled?: boolean\r\n isNotSort?: boolean\r\n isOptionTranslate?: boolean\r\n }\r\n}\r\n\r\nconst MUISelect = ({ inputAttributes }: Props) => {\r\n let {\r\n name,\r\n label,\r\n placeholder,\r\n className,\r\n id,\r\n size,\r\n color,\r\n variant,\r\n required,\r\n value,\r\n defaultValue,\r\n onChange,\r\n options,\r\n disabled,\r\n isNotSort,\r\n isOptionTranslate\r\n } = inputAttributes\r\n const { t } = useTranslation()\r\n\r\n let newOptions = !isNotSort\r\n ? [...options].sort((a, b) => a.label?.localeCompare(b.label))\r\n : options\r\n\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n let defVal: any = getDefaultValue(value, defaultValue, newOptions)\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n if (isOptionTranslate) {\r\n newOptions = newOptions.map(i => ({\r\n ...i,\r\n label: getTranslations(t, i.translateKey ?? i.label )\r\n }))\r\n }\r\n return (\r\n (\r\n \r\n {getTranslations(t, label)}\r\n {\r\n field.onChange(e)\r\n updateWarnOnTabChangeToStore(true)\r\n if (onChange) onChange()\r\n }}\r\n id={id ?? name}\r\n required={required ?? false}\r\n size={size ?? \"small\"}\r\n placeholder={placeholder}\r\n inputRef={ref}\r\n variant={variant ?? \"filled\"}\r\n color={color ?? \"primary\"}\r\n fullWidth\r\n disabled={disabled ?? false}\r\n className={`${className}`}\r\n error={isError}\r\n >\r\n {newOptions.map((type, inx) => (\r\n \r\n {type.label}\r\n \r\n ))}\r\n \r\n \r\n {ErrorText}\r\n \r\n \r\n )}\r\n />\r\n )\r\n}\r\n\r\nexport default MUISelect\r\n","import { Controller, useFormContext } from \"react-hook-form\"\r\nimport {\r\n Checkbox,\r\n FormControl,\r\n FormHelperText,\r\n InputLabel,\r\n ListItemIcon,\r\n ListItemText,\r\n MenuItem,\r\n Select\r\n} from \"@mui/material\"\r\n\r\nimport shortid from \"shortid\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport { getDefaultValue, getFieldError } from \"./Helper\"\r\nimport { useCallback } from \"react\"\r\n\r\ninterface Option {\r\n label: string\r\n value: any\r\n default?: boolean\r\n}\r\nexport interface Props {\r\n inputAttributes: {\r\n name: string\r\n label: string\r\n placeholder?: string\r\n className?: string\r\n id?: string\r\n required?: boolean\r\n size?: \"medium\" | \"small\"\r\n color?: \"error\" | \"primary\" | \"secondary\" | \"info\" | \"success\" | \"warning\"\r\n variant?: \"standard\" | \"filled\" | \"outlined\"\r\n fullWidth?: boolean\r\n InputProps?: any\r\n value?: any\r\n defaultValue?: any\r\n onChange?: Function\r\n options: Option[]\r\n }\r\n}\r\n\r\nconst MUIMultiSelect = ({ inputAttributes }: Props) => {\r\n const {\r\n name,\r\n label,\r\n placeholder,\r\n className,\r\n id,\r\n size,\r\n color,\r\n variant,\r\n required,\r\n value,\r\n defaultValue,\r\n onChange,\r\n options\r\n } = inputAttributes\r\n const {\r\n control,\r\n formState: { errors }\r\n } = useFormContext() // retrieve all hook methods\r\n\r\n let defVal: any = getDefaultValue(value, defaultValue, options, true)\r\n const { isError, ErrorText } = getFieldError(name, errors)\r\n const renderSelectedValue = useCallback(\r\n //istanbul ignore next\r\n selected => selected?.join(\", \") || \"\",\r\n []\r\n )\r\n\r\n return (\r\n (\r\n \r\n {label}\r\n {\r\n field.onChange(e)\r\n updateWarnOnTabChangeToStore(true)\r\n if (onChange) onChange()\r\n }}\r\n multiple\r\n id={id ?? name}\r\n required={required ?? false}\r\n size={size ?? \"small\"}\r\n placeholder={placeholder}\r\n inputRef={ref}\r\n variant={variant ?? \"filled\"}\r\n color={color ?? \"primary\"}\r\n fullWidth\r\n className={`${className}`}\r\n error={isError}\r\n renderValue={renderSelectedValue}\r\n >\r\n {options.map((type, inx) => (\r\n \r\n \r\n -1\r\n }\r\n />\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n {ErrorText}\r\n \r\n \r\n )}\r\n />\r\n )\r\n}\r\n\r\nexport default MUIMultiSelect\r\n","import MUISelect from \"src/components/MUIFormFields/MUISelect\"\r\nimport MUIMultiSelect from \"src/components/MUIFormFields/MUIMultiSelect\"\r\nimport MUIText from \"src/components/MUIFormFields/MUIText\"\r\nimport MUIRadio from \"./../../../components/MUIFormFields/MUIRadio\"\r\nimport { useFormContext } from \"react-hook-form\"\r\nimport { functionTypes } from \"./LRConstants\"\r\nimport MUIAutoCompleteText from \"src/components/MUIFormFields/MUIAutoCompleteText\"\r\nimport {\r\n SelectionOptions,\r\n checkDataType,\r\n CheckDigitRadioOptions,\r\n TrueOrFalse\r\n} from \"./LRConstants/fieldOptions\"\r\nimport React from \"react\"\r\nimport {\r\n booleanError,\r\n booleanErrorMessage,\r\n sourceField\r\n} from \"./LRConstants/booleanFunctions\"\r\n\r\nconst ModalComponents = ({ item, inputTypes, isIfElseState }) => {\r\n const { watch } = useFormContext() // retrieve all hook methods\r\n\r\n const handleMultiSelectField = (types: any, inx: number) => {\r\n return (\r\n \r\n )\r\n }\r\n\r\n const handleSelectField = (types: any, inx: number) => {\r\n return (\r\n \r\n )\r\n }\r\n\r\n const handleTextField = (types, inx) => {\r\n return (\r\n \r\n )\r\n }\r\n\r\n const handleAutoCompleteTextField = (types, inx) => {\r\n return (\r\n \r\n )\r\n }\r\n\r\n const handleRadioField = (types, inx) => {\r\n return (\r\n \r\n )\r\n }\r\n\r\n const generateFields = () => {\r\n if (!inputTypes) return []\r\n let fields: any[] = []\r\n inputTypes.map((types, inx) => {\r\n let display: boolean = true\r\n\r\n if (\r\n [functionTypes.CheckDigit, functionTypes.AddCheckDigit].includes(\r\n item.function\r\n )\r\n ) {\r\n let locInx = inx\r\n let barcodeInx = 0\r\n if ([sourceField.name].includes(inputTypes[0]?.name)) {\r\n locInx = inx > 0 ? inx - 1 : inx\r\n barcodeInx = 1\r\n }\r\n if (locInx !== 0) {\r\n display = false\r\n if (\r\n watch(inputTypes[barcodeInx].name) ===\r\n CheckDigitRadioOptions[2].value\r\n ) {\r\n display = true\r\n }\r\n }\r\n } else if (\r\n [\r\n functionTypes.AutoStore,\r\n functionTypes.Add,\r\n functionTypes.Multiply,\r\n functionTypes.Subtract,\r\n functionTypes.Divide\r\n ].includes(item.function)\r\n ) {\r\n if (\r\n (inx === 1 &&\r\n (watch(inputTypes[0].name) === SelectionOptions[1].value ||\r\n !watch(inputTypes[0].name))) ||\r\n (inx === 2 &&\r\n (watch(inputTypes[0].name) === SelectionOptions[0].value ||\r\n !watch(inputTypes[0].name)))\r\n ) {\r\n display = false\r\n }\r\n } else if ([functionTypes.Error].includes(item.function)) {\r\n if (inx === 2 && watch(inputTypes[1].name) === TrueOrFalse[1].value) {\r\n display = false\r\n }\r\n } else if ([functionTypes.LookupRoutine].includes(item.function)) {\r\n if (\r\n (inx === 2 && watch(inputTypes[1].name) === TrueOrFalse[1].value) ||\r\n (inx === 4 && watch(inputTypes[3].name) === TrueOrFalse[1].value)\r\n ) {\r\n display = false\r\n }\r\n } else if ([functionTypes.AllowKey].includes(item.function)) {\r\n if (inx === 1 && watch(inputTypes[0].name) !== checkDataType[1].value) {\r\n display = false\r\n }\r\n }\r\n\r\n if (\r\n [\r\n sourceField.name,\r\n booleanError.name,\r\n booleanErrorMessage.name\r\n ].includes(inputTypes[inx].name)\r\n ) {\r\n display = true\r\n }\r\n\r\n if (display) {\r\n if (types.type === \"dropdown\") {\r\n let field: any = handleSelectField(types, inx)\r\n fields.push(\r\n {field}\r\n )\r\n } else if (types.type === \"multiDropdown\") {\r\n let field: any = handleMultiSelectField(types, inx)\r\n fields.push(\r\n {field}\r\n )\r\n } else if (types.type === \"inputText\") {\r\n let field: any = handleTextField(types, inx)\r\n fields.push(\r\n {field}\r\n )\r\n } else if (types.type === \"radio\") {\r\n let field: any = handleRadioField(types, inx)\r\n fields.push(\r\n {field}\r\n )\r\n } else if (types.type === \"autoComplete\") {\r\n let field: any = handleAutoCompleteTextField(types, inx)\r\n fields.push(\r\n {field}\r\n )\r\n }\r\n }\r\n\r\n return true\r\n })\r\n return fields\r\n }\r\n\r\n return <>{generateFields()}\r\n}\r\n\r\nexport default ModalComponents\r\n","import * as yup from \"yup\"\r\nimport fieldTypes from \"src/constants/fieldTypes\"\r\nimport { functionTypes } from \"./LRConstants/index\"\r\nimport {\r\n booleanError,\r\n booleanErrorMessage,\r\n sourceField\r\n} from \"./LRConstants/booleanFunctions\"\r\nimport { DEFAULT_RADIX } from \"src/utils/constants\"\r\n//istanbul ignore next\r\nexport const Schema = (inputTypes, fnName) => {\r\n let a = {}\r\n let requiredError = \"This field is required\"\r\n inputTypes?.forEach((item, inx) => {\r\n if (item.validation) {\r\n const validation = item.validation\r\n\r\n if (validation.type === fieldTypes.string) {\r\n let locYup = yup.string().nullable()\r\n if (validation.required) {\r\n locYup = locYup.required(validation.required?.label ?? requiredError)\r\n }\r\n if (validation.min) {\r\n locYup = locYup.min(validation.min.min, validation.min.error)\r\n }\r\n if (validation.max) {\r\n locYup = locYup.max(validation.max.max, validation.max.error)\r\n }\r\n if (validation.oneOf && validation.oneOf.length > 0) {\r\n locYup = locYup.oneOf(\r\n validation.oneOf,\r\n `This field value should be one of the options`\r\n )\r\n }\r\n if (\r\n fnName === functionTypes.CheckLengths &&\r\n ![\r\n sourceField.name,\r\n booleanError.name,\r\n booleanErrorMessage.name\r\n ].includes(item.name)\r\n ) {\r\n locYup = locYup.test(\r\n item.name,\r\n \"Only comma-separated (no spaces) number values are allowed!\",\r\n (value: string | undefined | null) => {\r\n let error: boolean = false\r\n if (value) {\r\n if (value.split(\" \").length > 1) {\r\n error = true\r\n } else {\r\n const arrayVal = value.split(\",\")\r\n if (Array.isArray(arrayVal)) {\r\n arrayVal.forEach(element => {\r\n if (\r\n typeof parseInt(element, DEFAULT_RADIX) !== \"number\" ||\r\n isNaN(parseInt(element, DEFAULT_RADIX))\r\n ) {\r\n error = true\r\n }\r\n if (!error) {\r\n for (let i = 0; i < element.toString().length; i++) {\r\n if (\r\n typeof parseInt(element[i], DEFAULT_RADIX) !==\r\n \"number\" ||\r\n isNaN(parseInt(element[i], DEFAULT_RADIX))\r\n ) {\r\n error = true\r\n }\r\n }\r\n }\r\n })\r\n }\r\n }\r\n }\r\n return !error\r\n }\r\n )\r\n }\r\n a = { ...a, ...{ [item.name]: locYup } }\r\n }\r\n\r\n if (validation.type === fieldTypes.number) {\r\n let locYup\r\n if (validation.required) {\r\n locYup = yup\r\n .number()\r\n .nullable()\r\n .required(validation.required?.label ?? requiredError)\r\n if (validation.min) {\r\n locYup = locYup.min(validation.min.min, validation.min.error)\r\n }\r\n if (validation.maxOfFirstField) {\r\n locYup = locYup.when(inputTypes[inx - 1].name, (val, locYup) => {\r\n return val && typeof val === \"number\"\r\n ? locYup.min(\r\n val + 0.0001,\r\n `Should be greater than to ${inputTypes[inx - 1].label}`\r\n )\r\n : locYup\r\n })\r\n }\r\n locYup = locYup.typeError(\r\n validation.typeError ?? \"This field should be number\"\r\n )\r\n } else {\r\n locYup = yup\r\n .string()\r\n .test(\r\n item.name,\r\n validation.typeError ?? \"This field should be number\",\r\n (value: any) => {\r\n return value || value === 0 ? /^\\d+$/.test(value) : true\r\n }\r\n )\r\n }\r\n\r\n a = { ...a, ...{ [item.name]: locYup } }\r\n }\r\n\r\n if (validation.type === fieldTypes.array) {\r\n let locYup = yup.array().nullable()\r\n if (validation.required) {\r\n locYup = locYup\r\n .required(validation.required?.label ?? requiredError)\r\n .min(1, validation.required?.label ?? requiredError)\r\n }\r\n locYup = locYup.typeError(\r\n validation.typeError ?? \"This field should be array\"\r\n )\r\n a = { ...a, ...{ [item.name]: locYup } }\r\n }\r\n }\r\n })\r\n\r\n return yup.object().shape(a)\r\n}\r\n","import {\r\n Button,\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n Grid\r\n} from \"@mui/material\"\r\nimport ModalComponents from \"./ModalComponents\"\r\n\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { FormProvider, useForm } from \"react-hook-form\"\r\nimport { Schema } from \"./Validation\"\r\nimport { yupResolver } from \"@hookform/resolvers/yup\"\r\nimport { functionTypes, getDefaultValues } from \"./LRConstants\"\r\nimport { useEffect, useRef, useState } from \"react\"\r\nimport {\r\n SelectionOptions,\r\n checkDataType,\r\n CheckDigitRadioOptions,\r\n currentFieldOptions,\r\n lookupDepartmentOptions,\r\n lookupProductOptions,\r\n lookupRepackOptions,\r\n LookupRoutineCopyOverRide,\r\n lookupTableOptions,\r\n TrueOrFalse\r\n} from \"./LRConstants/fieldOptions\"\r\nimport fieldTypes from \"src/constants/fieldTypes\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { firstLetterUpperCase } from \"../helper\"\r\nimport { ruleEditorFunctions } from \"./LRConstants/functionNames\"\r\nimport {\r\n booleanError,\r\n booleanErrorMessage,\r\n sourceField\r\n} from \"./LRConstants/booleanFunctions\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { useTranslation } from \"react-i18next\"\r\n\r\nconst RenderModal = ({\r\n item,\r\n setOpen,\r\n open,\r\n setParameters,\r\n parameters,\r\n setModalFormSubmitCall,\r\n setItem,\r\n isIfElseState\r\n}) => {\r\n let content = item?.content\r\n const submitButton = useRef(null)\r\n const closeButton = useRef(null)\r\n const {\r\n config: { lookupRoutines }\r\n } = ConfigDataHook()\r\n\r\n const [inputTypes, setInputTypes] = useState(item?.inputType)\r\n const { t } = useTranslation()\r\n\r\n const getInputFields = async (options, inx) => {\r\n if (\r\n item.function === functionTypes.Lookup ||\r\n [\r\n functionTypes.AutoStore,\r\n functionTypes.Add,\r\n functionTypes.Multiply,\r\n functionTypes.Subtract,\r\n functionTypes.Divide\r\n ].includes(item.function) ||\r\n item.function === functionTypes.LookupRoutine\r\n ) {\r\n if (options.length) {\r\n const locInputTypesCopy = [...inputTypes]\r\n const locItemCopy = JSON.parse(JSON.stringify(item))\r\n locInputTypesCopy[inx] = {\r\n ...locInputTypesCopy[inx],\r\n ...{ options: options }\r\n }\r\n locInputTypesCopy[inx].validation = {\r\n ...locInputTypesCopy[inx].validation,\r\n ...{ oneOf: options.map(i => i.value) }\r\n }\r\n locItemCopy.inputType[inx] = {\r\n ...locItemCopy.inputType[inx],\r\n ...locInputTypesCopy[inx]\r\n }\r\n setInputTypes([...locInputTypesCopy])\r\n item = locItemCopy\r\n }\r\n }\r\n return item\r\n }\r\n\r\n const LookupRoutineNameOptions = inputInx => {\r\n const Options = lookupRoutines?.map(i => {\r\n return { label: firstLetterUpperCase(i?.Name), value: i?.Name }\r\n })\r\n getInputFields(Options, inputInx)\r\n }\r\n\r\n const formHookMethods = useForm({\r\n defaultValues: getDefaultValues(item, inputTypes, parameters),\r\n resolver: yupResolver(Schema(inputTypes, item.function)),\r\n criteriaMode: \"all\",\r\n mode: \"onChange\"\r\n })\r\n const {\r\n handleSubmit,\r\n watch,\r\n setValue,\r\n trigger,\r\n formState: { errors },\r\n setFocus,\r\n reset\r\n } = formHookMethods\r\n const params1 = watch(\"parameter1\")\r\n const params2 = watch(\"parameter2\")\r\n\r\n const handleKeyDown = e => {\r\n if (open && !formErrorCheckFunction() && e.key === \"Enter\") {\r\n submitButton.current && submitButton.current.click()\r\n } else if (e.key === \"Escape\") {\r\n closeButton.current && closeButton.current.click()\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n let isMounted: boolean = true\r\n let timer1: any\r\n if (isMounted) {\r\n reset()\r\n document.addEventListener(\"keyup\", handleKeyDown, false)\r\n let inputTypeCopy: any = [...inputTypes]\r\n if (item?.functionType === ruleEditorFunctions.booleanFn) {\r\n if (isIfElseState) {\r\n setValue(\r\n sourceField.name,\r\n item?.functionSource\r\n ? item?.functionSource\r\n : currentFieldOptions[0].value\r\n )\r\n } else {\r\n setValue(booleanError.name, item?.OnFail)\r\n setValue(\r\n booleanErrorMessage.name,\r\n item?.OnFailMessage?.[0]?.[\"en-us\"]\r\n )\r\n }\r\n setInputTypes([...inputTypeCopy])\r\n }\r\n\r\n if (item.function === functionTypes.LookupRoutine) {\r\n LookupRoutineNameOptions(0)\r\n }\r\n\r\n timer1 = setTimeout(() => {\r\n setFocus(`${inputTypes[0].name}`)\r\n }, 500)\r\n }\r\n return () => {\r\n document.removeEventListener(\"keyup\", handleKeyDown, false)\r\n clearTimeout(timer1)\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n useEffect(() => {\r\n let isMounted: boolean = true\r\n if (isMounted) {\r\n if (params1) {\r\n let inputTypeCopy: any = [...inputTypes]\r\n if (item.function === functionTypes.Lookup) {\r\n if (watch(inputTypes[0].name) === lookupTableOptions[0].value) {\r\n getInputFields(lookupProductOptions, 1)\r\n } else if (\r\n watch(inputTypes[0].name) === lookupTableOptions[1].value\r\n ) {\r\n getInputFields(lookupDepartmentOptions, 1)\r\n } else if (\r\n watch(inputTypes[0].name) === lookupTableOptions[2].value\r\n ) {\r\n getInputFields(lookupRepackOptions, 1)\r\n }\r\n } else if (\r\n [\r\n functionTypes.AutoStore,\r\n functionTypes.Add,\r\n functionTypes.Multiply,\r\n functionTypes.Subtract,\r\n functionTypes.Divide\r\n ].includes(item.function)\r\n ) {\r\n inputTypes.forEach((i, j) => {\r\n if (j !== 0) {\r\n let required: boolean = true\r\n if (\r\n (j === 1 && `${params1}` === SelectionOptions[1].value) ||\r\n (j === 2 && `${params1}` === SelectionOptions[0].value)\r\n ) {\r\n required = false\r\n }\r\n inputTypeCopy[j] = {\r\n ...inputTypes[j],\r\n ...{\r\n validation: {\r\n ...i.validation,\r\n ...{\r\n required: required\r\n }\r\n }\r\n }\r\n }\r\n }\r\n })\r\n setInputTypes([...inputTypeCopy])\r\n } else if (\r\n [\r\n functionTypes.CheckLengthRange,\r\n functionTypes.CheckValueRange\r\n ].includes(item.function)\r\n ) {\r\n if (watch(inputTypes[1].name)) {\r\n trigger(inputTypes[1].name)\r\n }\r\n } else if (\r\n [functionTypes.CheckDigit, functionTypes.AddCheckDigit].includes(\r\n item.function\r\n )\r\n ) {\r\n inputTypes.forEach((i, j) => {\r\n let locInx = j\r\n let barcodeInx = 0\r\n if ([sourceField.name].includes(inputTypes[0]?.name)) {\r\n locInx = j > 0 ? j - 1 : j\r\n barcodeInx = 1\r\n }\r\n if (locInx !== 0) {\r\n inputTypeCopy[j] = {\r\n ...inputTypes[j],\r\n ...{\r\n validation: {\r\n ...i.validation,\r\n ...{\r\n required:\r\n watch(inputTypes[barcodeInx].name) ===\r\n CheckDigitRadioOptions[2].value\r\n }\r\n }\r\n }\r\n }\r\n }\r\n })\r\n setInputTypes([...inputTypeCopy])\r\n } else if ([functionTypes.AllowKey].includes(item.function)) {\r\n inputTypes.forEach((i, j) => {\r\n if (j !== 0) {\r\n inputTypeCopy[j] = {\r\n ...inputTypes[j],\r\n ...{\r\n validation: {\r\n ...i.validation,\r\n ...{\r\n required:\r\n watch(inputTypes[0].name) === checkDataType[1].value\r\n }\r\n }\r\n }\r\n }\r\n }\r\n })\r\n setInputTypes([...inputTypeCopy])\r\n }\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [params1])\r\n\r\n useEffect(() => {\r\n let isMounted: boolean = true\r\n if (isMounted) {\r\n if (item.function === functionTypes.LookupRoutine) {\r\n setInputTypes(oldVals =>\r\n oldVals.map((i, j) => {\r\n return j === 2\r\n ? {\r\n ...i,\r\n validation: {\r\n ...i.validation,\r\n required: params2 === TrueOrFalse[0].value\r\n }\r\n }\r\n : i\r\n })\r\n )\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [params2])\r\n\r\n const formSubmitHandler = (data: any) => {\r\n let newParameterArray: any = []\r\n inputTypes.forEach((inputType, inx) => {\r\n let isPush: boolean = true\r\n let fieldVal: any = data[inputType.name]\r\n\r\n let locInx = inx\r\n let barcodeInx = 0\r\n if ([sourceField.name].includes(inputTypes[0]?.name)) {\r\n locInx = inx > 0 ? inx - 1 : inx\r\n barcodeInx = 1\r\n }\r\n\r\n if (\r\n inputType?.validation?.type === fieldTypes.number &&\r\n !inputType?.validation?.required\r\n ) {\r\n if (!fieldVal && fieldVal !== 0) {\r\n isPush = false\r\n }\r\n fieldVal = fieldVal ? Number(fieldVal) : fieldVal\r\n }\r\n if (\r\n [functionTypes.CheckDigit, functionTypes.AddCheckDigit].includes(\r\n item.function\r\n )\r\n ) {\r\n if (\r\n barcodeInx === inx &&\r\n data[inputTypes[barcodeInx].name] === CheckDigitRadioOptions[2].value\r\n ) {\r\n isPush = false\r\n }\r\n\r\n if (locInx !== 0) {\r\n isPush = false\r\n if (\r\n data[inputTypes[barcodeInx].name] ===\r\n CheckDigitRadioOptions[2].value\r\n ) {\r\n isPush = true\r\n if (locInx === 4) {\r\n fieldVal = fieldVal.split(\",\").map(i => Number(i))\r\n }\r\n }\r\n }\r\n } else if (item.function === functionTypes.CheckLengths) {\r\n if (locInx === 0) {\r\n fieldVal = fieldVal.split(\",\").map(i => Number(i))\r\n }\r\n } else if (item.function === functionTypes.IsIn) {\r\n if (locInx === 0) {\r\n fieldVal = fieldVal.split(\",\")\r\n }\r\n } else if (item.function === functionTypes.LookupRoutine) {\r\n if (inx !== 0) {\r\n if (inx === 2) {\r\n fieldVal = [\r\n {\r\n \"en-us\":\r\n data[inputTypes[inx - 1].name] === TrueOrFalse[0].value\r\n ? fieldVal\r\n : \"\"\r\n }\r\n ]\r\n } else if (inx === 4) {\r\n fieldVal =\r\n data[inputTypes[inx - 1].name] === TrueOrFalse[0].value\r\n ? fieldVal\r\n : LookupRoutineCopyOverRide[0].value\r\n }\r\n }\r\n } else if (item.function === functionTypes.Error) {\r\n if (inx === 0) {\r\n fieldVal = [{ \"en-us\": fieldVal }]\r\n } else if (inx === 2) {\r\n if (data[inputTypes[1].name] === TrueOrFalse[1].value) {\r\n isPush = false\r\n }\r\n }\r\n } else if (\r\n [\r\n functionTypes.AutoStore,\r\n functionTypes.Add,\r\n functionTypes.Multiply,\r\n functionTypes.Subtract,\r\n functionTypes.Divide\r\n ].includes(item.function)\r\n ) {\r\n if (\r\n inx === 0 ||\r\n (inx === 1 &&\r\n data[inputTypes[0].name] === SelectionOptions[1].value) ||\r\n (inx === 2 && data[inputTypes[0].name] === SelectionOptions[0].value)\r\n ) {\r\n isPush = false\r\n }\r\n } else if (item.function === functionTypes.AllowKey) {\r\n if (inx === 1 && data[inputTypes[0].name] !== checkDataType[1].value) {\r\n isPush = false\r\n }\r\n }\r\n\r\n if (item?.functionType === ruleEditorFunctions.booleanFn) {\r\n if (isIfElseState) {\r\n if (inputType.name === sourceField.name) {\r\n let locSourceVal = data[inputTypes[inx].name]\r\n if (\r\n [currentFieldOptions[0].value].includes(\r\n data[inputTypes[inx].name]\r\n )\r\n ) {\r\n locSourceVal = \"\"\r\n }\r\n isPush = false\r\n item.functionSource = locSourceVal\r\n item.functionStore = `${locSourceVal ? locSourceVal + \".\" : \"\"}${\r\n item.function\r\n }`\r\n }\r\n } else {\r\n if (inputType.name === booleanError.name) {\r\n isPush = false\r\n item.OnFail = data[inputTypes[inx].name]\r\n } else if (inputType.name === booleanErrorMessage.name) {\r\n isPush = false\r\n item.OnFailMessage = [{ \"en-us\": data[inputTypes[inx].name] }]\r\n }\r\n }\r\n }\r\n\r\n if (\r\n [\r\n TrueOrFalse[0].value,\r\n TrueOrFalse[0].value.toUpperCase(),\r\n TrueOrFalse[0].value.toLowerCase()\r\n ].includes(data[inputTypes[inx].name])\r\n ) {\r\n fieldVal = true\r\n } else if (\r\n [\r\n TrueOrFalse[1].value,\r\n TrueOrFalse[1].value.toUpperCase(),\r\n TrueOrFalse[1].value.toLowerCase()\r\n ].includes(data[inputTypes[inx].name])\r\n ) {\r\n fieldVal = false\r\n }\r\n\r\n if (isPush) {\r\n newParameterArray.push(fieldVal)\r\n if (\r\n [\r\n functionTypes.CheckLengths,\r\n functionTypes.CheckBarcodeType,\r\n functionTypes.AllowScan,\r\n functionTypes.IsIn\r\n ].includes(item.function)\r\n ) {\r\n newParameterArray = newParameterArray.flat(Infinity)\r\n }\r\n\r\n if (inx === 1 && data[inputTypes[0].name] === checkDataType[1].value) {\r\n newParameterArray.push(true)\r\n }\r\n }\r\n })\r\n\r\n setItem({ ...item })\r\n setParameters(newParameterArray)\r\n setModalFormSubmitCall(true)\r\n }\r\n\r\n const formErrorCheckFunction = () => {\r\n let error: boolean = false\r\n if (inputTypes && inputTypes.length > 0) {\r\n inputTypes.forEach((i, inx) => {\r\n if (!!errors[i.name]) {\r\n error = true\r\n return true\r\n } else if (i.validation) {\r\n if (\r\n i.validation.required &&\r\n !watch(i.name) &&\r\n ![0, \"0\"].includes(watch(i.name))\r\n ) {\r\n if (\r\n [\r\n functionTypes.AutoStore,\r\n functionTypes.Add,\r\n functionTypes.Multiply,\r\n functionTypes.Subtract,\r\n functionTypes.Divide\r\n ].includes(item.function) &&\r\n inx !== 0\r\n ) {\r\n if (inx === 1) {\r\n if (watch(inputTypes[0].name) === SelectionOptions[0].value) {\r\n error = true\r\n return true\r\n }\r\n } else if (inx === 2) {\r\n if (watch(inputTypes[0].name) === SelectionOptions[1].value) {\r\n error = true\r\n return true\r\n }\r\n }\r\n } else if (\r\n [functionTypes.CheckDigit, functionTypes.AddCheckDigit].includes(\r\n item.function\r\n ) &&\r\n inx !== 0\r\n ) {\r\n if (\r\n watch(inputTypes[0].name) === CheckDigitRadioOptions[2].value\r\n ) {\r\n error = true\r\n return true\r\n }\r\n } else {\r\n error = true\r\n return true\r\n }\r\n } else if (i.validation.type === fieldTypes.array) {\r\n if (watch(inputTypes[inx].name).length <= 0) {\r\n error = true\r\n return true\r\n }\r\n }\r\n }\r\n })\r\n }\r\n return error\r\n }\r\n\r\n return (\r\n \r\n \r\n
    \r\n \r\n {\r\n setOpen(false)\r\n setParameters([])\r\n }}\r\n >\r\n }\r\n data-testid=\"lookup-modal-close\"\r\n ref={closeButton}\r\n >\r\n {getTranslations(t, Translates.Close)}\r\n \r\n \r\n

    {content}

    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Continue)}\r\n \r\n \r\n
    \r\n \r\n
    \r\n )\r\n}\r\n\r\nexport default RenderModal\r\n","import { useDrag } from \"react-dnd\"\r\nimport { functionTypes, SIDEBAR_ITEM } from \"./LRConstants\"\r\n\r\nconst SideBarItem = ({ data, setDragDropzoneShow }) => {\r\n const [{ opacity }, drag]: any = useDrag({\r\n item: data,\r\n type: SIDEBAR_ITEM,\r\n\r\n collect: (monitor: any) => {\r\n //istanbul ignore next\r\n if (monitor.isDragging()) {\r\n setDragDropzoneShow(true)\r\n }\r\n\r\n if (monitor.canDrag()) {\r\n setDragDropzoneShow(false)\r\n }\r\n return {\r\n //istanbul ignore next\r\n opacity: monitor.isDragging() ? 0.4 : 1\r\n }\r\n }\r\n } as any)\r\n const content = data?.content\r\n return (\r\n \r\n {content}\r\n \r\n )\r\n}\r\nexport default SideBarItem\r\n","import React, { forwardRef, useImperativeHandle, useState } from \"react\"\r\nimport SideBarItem from \"./SideBarItem\"\r\nimport Accordion from \"@mui/material/Accordion\"\r\nimport AccordionSummary from \"@mui/material/AccordionSummary\"\r\nimport AccordionDetails from \"@mui/material/AccordionDetails\"\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\"\r\nimport {\r\n FormControl,\r\n FilledInput,\r\n InputAdornment,\r\n IconButton\r\n} from \"@mui/material\"\r\nimport SearchIcon from \"@mui/icons-material/Search\"\r\nimport { getSideBarItems } from \"./helpers\"\r\nimport shortid from \"shortid\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\n\r\nconst GenerateSideBar = forwardRef(\r\n (\r\n { isIfElseState = false, setDragDropzoneShow, component, productMode }: any,\r\n ref\r\n ) => {\r\n const [searchTerm, setSearchTerm] = useState(\"\")\r\n const [expanded, setExpanded] = useState(false)\r\n\r\n const handleChange =\r\n (panel: string) =>\r\n //istanbul ignore next\r\n (_event: React.SyntheticEvent, isExpanded: boolean) => {\r\n setExpanded(isExpanded ? panel : false)\r\n }\r\n const handleSearch = e => {\r\n setSearchTerm(e.target.value)\r\n setExpanded(\"panel0\")\r\n }\r\n\r\n const sidebarTitle = title => {\r\n let titleName = \"\"\r\n if (title === \"booleanFunctions\") titleName = \"Boolean\"\r\n else if (title === \"stringFunctions\") titleName = \"String\"\r\n else if (title === \"mathFunctions\") titleName = \"Math\"\r\n else if (title === \"inputSetupFunctions\") titleName = \"Input Setup\"\r\n else if (title === \"lookupFunctions\") titleName = \"Lookup\"\r\n else if (title.toLowerCase() === \"ifelse\") {\r\n titleName = \"If\"\r\n if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n titleName = \"Conditions\"\r\n }\r\n }\r\n //istanbul ignore next\r\n else titleName = title\r\n\r\n return titleName.toUpperCase()\r\n }\r\n\r\n const filterItems = items => {\r\n return searchTerm\r\n ? items.filter(val =>\r\n val.content.toLowerCase().includes(searchTerm.toLowerCase())\r\n )\r\n : items\r\n }\r\n const renderSideBarItems = () => {\r\n const { sideBarItems } = getSideBarItems(\r\n isIfElseState,\r\n component,\r\n productMode\r\n )\r\n\r\n return sideBarItems.map((item, idx) => {\r\n return (\r\n \r\n }\r\n aria-controls=\"panel1a-content\"\r\n id=\"panel1a-header\"\r\n >\r\n {sidebarTitle(Object.keys(item)[0])}\r\n \r\n \r\n {filterItems(Object.values(item)[0]).map((sideBarItem: any) => (\r\n \r\n ))}\r\n \r\n \r\n )\r\n })\r\n }\r\n\r\n useImperativeHandle(\r\n ref,\r\n () => ({\r\n makeSideBarExpandCloseFromParent: () => {\r\n setSearchTerm(\"\")\r\n setExpanded(false)\r\n return { expanded, searchTerm }\r\n }\r\n }),\r\n //eslint-disable-next-line\r\n []\r\n )\r\n\r\n return (\r\n <>\r\n \r\n {\r\n handleSearch(e)\r\n }}\r\n value={searchTerm}\r\n startAdornment={\r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n {renderSideBarItems()}\r\n \r\n )\r\n }\r\n)\r\n\r\nexport default GenerateSideBar\r\n","import classNames from \"classnames\"\r\nimport { useDrop } from \"react-dnd\"\r\nimport { COMPONENT, SIDEBAR_ITEM, ROW, COLUMN } from \"./LRConstants\"\r\n\r\nconst ACCEPTS = [SIDEBAR_ITEM, COMPONENT, ROW, COLUMN]\r\n\r\nconst DropZone = ({ data, onDrop, isLast, className }) => {\r\n const [{ isOver, canDrop }, drop] = useDrop({\r\n accept: ACCEPTS,\r\n drop: (item, monitor) => {\r\n onDrop(data, item)\r\n },\r\n collect: monitor => ({\r\n isOver: monitor.isOver(),\r\n canDrop: monitor.canDrop()\r\n })\r\n })\r\n\r\n const isActive = isOver && canDrop\r\n return (\r\n \r\n )\r\n}\r\nexport default DropZone\r\n","import { FormControlLabel, Radio, RadioGroup, Switch } from \"@mui/material\"\r\nimport { functionTypes } from \".\"\r\nimport { getIfElseLayout, setIfElseLayout } from \"../layout.service\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nexport const handleCondition = (curRow, value, setReload) => {\r\n let val = value\r\n let rowsData = [...getIfElseLayout()]\r\n curRow = {\r\n ...curRow,\r\n ...{ condition: val }\r\n }\r\n rowsData.splice(curRow.index, 1, curRow)\r\n setIfElseLayout([...rowsData])\r\n setReload(oldVal => !oldVal) // updating to rerender the comp for now, need to be updated\r\n return true\r\n}\r\n\r\nexport const getRadioButtonsJSX = (setReload, curRow) => {\r\n let checkValue = curRow?.condition || \"OR\"\r\n return (\r\n
    \r\n \r\n {curRow.function === functionTypes.If && curRow.content !== \")\"\r\n ? functionTypes.If\r\n : null}{\" \"}\r\n (\r\n \r\n\r\n handleCondition(curRow, e.target.value, setReload)}\r\n value={checkValue}\r\n className={\"ml-1\"}\r\n data-testid=\"if-screen-radio\"\r\n >\r\n }\r\n label=\"Any\"\r\n data-testid=\"if-screen-radio-or\"\r\n />\r\n }\r\n label=\"All\"\r\n data-testid=\"if-screen-radio-and\"\r\n />\r\n \r\n
    \r\n )\r\n}\r\n\r\nexport const getIfOrIfElseRadioButtonJSX = (\r\n isShowEmptyElseBlock,\r\n setIsShowEmptyElseBlock,\r\n t\r\n) => {\r\n const handleIfOrIfElseRadioCondition = e => {\r\n const ifElseLayout = getIfElseLayout()\r\n setIfElseLayout([...ifElseLayout])\r\n setIsShowEmptyElseBlock(e.target.checked)\r\n }\r\n\r\n return (\r\n \r\n }\r\n label={getTranslations(t, Translates.Show_Empty_Else_Block)}\r\n />\r\n )\r\n}\r\n","import { AlertColor } from \"@mui/material\"\r\nimport { functionTypes } from \"./index\"\r\n\r\nconst lookupEmptyEditorError = {\r\n title: \"Empty instruction\",\r\n severity: \"error\" as AlertColor,\r\n content: \"If statement cannot be empty\"\r\n}\r\n\r\nconst lookupFormatError = {\r\n title: \"Format mismatched\",\r\n severity: \"error\" as AlertColor,\r\n content: \"Something wrong with your instructions\"\r\n}\r\nexport const ifScreenErrorCheck = (\r\n layout,\r\n row,\r\n index,\r\n margin_left,\r\n isConditionObject\r\n) => {\r\n let alertMsg = {}\r\n if (index === 0 && layout.length <= 2) {\r\n alertMsg = lookupEmptyEditorError\r\n } else if (index === 0 && row.function !== functionTypes.If) {\r\n alertMsg = {\r\n title: lookupFormatError.title,\r\n content: \"If block should be in first row\"\r\n }\r\n } else if (\r\n index === layout.length - 1 &&\r\n layout[layout.length - 1].function !== functionTypes.If\r\n ) {\r\n alertMsg = {\r\n title: lookupFormatError.title,\r\n content: \"If block close brocket should be in last row\"\r\n }\r\n } else if (margin_left < 0) {\r\n alertMsg = lookupFormatError\r\n } else if (\r\n (row.function === functionTypes.Braces &&\r\n row.content !== \")\" &&\r\n margin_left === 1) ||\r\n (row.function !== functionTypes.If &&\r\n row.function !== functionTypes.Braces &&\r\n margin_left === 0)\r\n ) {\r\n alertMsg = {\r\n title: lookupFormatError.title,\r\n content: \"If condition block should have only one main black\"\r\n }\r\n } else if (row.function === functionTypes.Braces && row.content !== \")\") {\r\n if (\r\n layout[index + 1].function === functionTypes.Braces &&\r\n layout[index + 1].content === \")\"\r\n ) {\r\n alertMsg = {\r\n title: \"Empty block\",\r\n content: \"Brace statement cannot be empty\"\r\n }\r\n }\r\n }\r\n alertMsg = { ...alertMsg, ...{ severity: \"error\" as AlertColor } }\r\n return { alertMsg }\r\n}\r\nexport const mainScreenErrorCheck = (\r\n layout,\r\n row,\r\n index,\r\n margin_left,\r\n productFieldName,\r\n component\r\n) => {\r\n let alertMsg = {}\r\n if (index === 0 && layout.length <= 0) {\r\n alertMsg = lookupEmptyEditorError\r\n } else if (margin_left < 0) {\r\n alertMsg = lookupFormatError\r\n } else if (row?.function === functionTypes.If) {\r\n if (index + 1 > layout.length - 1) {\r\n alertMsg = lookupFormatError\r\n } else if (\r\n layout[index + 1] &&\r\n layout[index + 2] &&\r\n layout[index + 1]?.function === functionTypes.Else &&\r\n layout[index + 2]?.function === functionTypes.Endif\r\n ) {\r\n alertMsg = {\r\n title: \"Empty block\",\r\n content: \"If/else statement cannot be empty\"\r\n }\r\n }\r\n } else if (row?.function === functionTypes.Else) {\r\n if (index + 1 > layout.length - 1) {\r\n alertMsg = lookupFormatError\r\n } else if (\r\n layout[index - 1] &&\r\n layout[index + 1] &&\r\n layout[index - 1]?.function === functionTypes.If &&\r\n layout[index + 1]?.function === functionTypes.Endif\r\n ) {\r\n alertMsg = {\r\n title: \"Empty block\",\r\n content: \"If/else statement cannot be empty\"\r\n }\r\n }\r\n }\r\n\r\n alertMsg = { ...alertMsg, ...{ severity: \"error\" as AlertColor } }\r\n return { alertMsg }\r\n}\r\n","import { useCallback, useRef, useState } from \"react\"\r\nimport { useDrag, useDrop } from \"react-dnd\"\r\nimport { ROW, SIDEBAR_ITEM, functionTypes } from \"./LRConstants\"\r\nimport editIcon from \"../../../assets/images/Edit.png\"\r\nimport { IconButton, styled, Tooltip } from \"@mui/material\"\r\nimport CancelIcon from \"@mui/icons-material/Cancel\"\r\nimport update from \"immutability-helper\"\r\nimport { setIfElseLayout, setLayout } from \"./layout.service\"\r\nimport Badge, { BadgeProps } from \"@mui/material/Badge\"\r\nimport { getAllIndexes, renderRowLayoutChildren } from \"./helpers\"\r\nimport classNames from \"classnames\"\r\nimport ExpandLessIcon from \"@mui/icons-material/ExpandLess\"\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\"\r\nimport { KEY_CODES } from \"src/utils/constants\"\r\n\r\nconst style = {}\r\n\r\nconst Row = ({\r\n data,\r\n rowNo,\r\n components,\r\n path,\r\n setParametersForEditModal,\r\n make_if_screen_enable_for_edit,\r\n deleteRow,\r\n dragDropzoneShow,\r\n setReload,\r\n onDrop,\r\n expandMoreAndLessClick\r\n}) => {\r\n const ref = useRef(null)\r\n const [isTopRow, setIsTopRow] = useState(false)\r\n\r\n const DND_ITEM_TYPE = [SIDEBAR_ITEM, ROW]\r\n const [{ handlerId, isOver, canDrop }, drop] = useDrop({\r\n accept: DND_ITEM_TYPE,\r\n collect: monitor => ({\r\n isOver: monitor.isOver(),\r\n canDrop: monitor.canDrop(),\r\n handlerId: monitor.getHandlerId()\r\n }),\r\n drop: (item, monitor) => {\r\n let dropPosition = data.data\r\n if (!isTopRow) {\r\n dropPosition = {\r\n ...dropPosition,\r\n ...{ path: `${Number(dropPosition.path) + 1}` }\r\n }\r\n } else {\r\n if (\r\n data?.function === functionTypes.Endif &&\r\n data.layout[data?.index - 1]?.function === functionTypes.Else &&\r\n !data.layout[data?.index - 1]?.isRowDisplay\r\n ) {\r\n dropPosition = {\r\n ...dropPosition,\r\n ...{ path: `${Number(dropPosition.path) - 1}` }\r\n }\r\n }\r\n }\r\n dragDropzoneShow && onDrop(dropPosition, item)\r\n },\r\n hover: (item: any, monitor) => {\r\n if (ref.current) {\r\n let hoverIndex = path\r\n const dragIndex = item.index\r\n\r\n if (\r\n data?.function === functionTypes.Endif &&\r\n data.layout[data?.index - 1]?.function === functionTypes.Else &&\r\n !data.layout[data?.index - 1]?.isRowDisplay\r\n ) {\r\n hoverIndex = dragIndex < hoverIndex ? path + 1 : path - 1\r\n }\r\n const layout = [...data.layout]\r\n const hoverBoundingRect = ref.current.getBoundingClientRect()\r\n const hoverMiddleY =\r\n (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2\r\n const clientOffset = monitor.getClientOffset()\r\n if (clientOffset) {\r\n const hoverClientY = clientOffset.y - hoverBoundingRect.top\r\n let locIsTopRow = hoverMiddleY > hoverClientY\r\n\r\n if (data?.isIfScreen) {\r\n if ([path].includes(0)) {\r\n locIsTopRow = false\r\n } else if ([path].includes(layout.length - 1)) {\r\n locIsTopRow = true\r\n }\r\n }\r\n setIsTopRow(locIsTopRow)\r\n }\r\n\r\n if (!dragDropzoneShow) {\r\n if (!ref.current) {\r\n return\r\n }\r\n let indexes: number[] = []\r\n const dragRecord = layout[dragIndex]\r\n\r\n if (dragIndex === hoverIndex) {\r\n return\r\n }\r\n if (\r\n data?.isIfScreen &&\r\n ([dragIndex, hoverIndex].includes(0) ||\r\n [dragIndex, hoverIndex].includes(layout.length - 1))\r\n ) {\r\n return\r\n }\r\n if (\r\n [functionTypes.Braces].includes(dragRecord?.function) &&\r\n dragRecord.content === \")\"\r\n ) {\r\n return\r\n }\r\n if (\r\n [functionTypes.Else, functionTypes.Endif].includes(\r\n dragRecord?.function\r\n )\r\n ) {\r\n return\r\n }\r\n if (\r\n [functionTypes.If, functionTypes.Braces].includes(\r\n dragRecord?.function\r\n )\r\n ) {\r\n indexes = getAllIndexes(layout, dragRecord.id, true, \"id\")\r\n if (\r\n hoverIndex >= indexes[0] &&\r\n hoverIndex <= indexes[indexes.length - 1]\r\n ) {\r\n return\r\n }\r\n }\r\n\r\n if (clientOffset) {\r\n const hoverClientY = clientOffset.y - hoverBoundingRect.top\r\n if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {\r\n return\r\n }\r\n if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {\r\n return\r\n }\r\n }\r\n if (moveRow(dragIndex, hoverIndex, indexes, layout, dragRecord)) {\r\n if (\r\n [functionTypes.If, functionTypes.Braces].includes(\r\n dragRecord?.function\r\n )\r\n ) {\r\n item.index =\r\n dragIndex < hoverIndex && hoverIndex - dragIndex !== 1\r\n ? dragIndex + 1\r\n : hoverIndex\r\n } else {\r\n item.index = hoverIndex\r\n }\r\n }\r\n }\r\n }\r\n }\r\n })\r\n\r\n const moveRow = (dragIndex, hoverIndex, indexes, layout, dragRecord) => {\r\n let updatedRecords: any\r\n if (\r\n [functionTypes.If, functionTypes.Braces].includes(dragRecord?.function)\r\n ) {\r\n updatedRecords = update(layout, {\r\n $splice: [\r\n [dragIndex, indexes[indexes.length - 1] - indexes[0] + 1],\r\n [\r\n dragIndex < hoverIndex && hoverIndex - dragIndex !== 1\r\n ? dragIndex + 1\r\n : hoverIndex,\r\n 0,\r\n layout.slice(indexes[0], indexes[indexes.length - 1] + 1)\r\n ]\r\n ]\r\n })\r\n updatedRecords = updatedRecords.flat(Infinity)\r\n } else {\r\n updatedRecords = update(layout, {\r\n $splice: [\r\n [dragIndex, 1],\r\n [hoverIndex, 0, dragRecord]\r\n ]\r\n })\r\n }\r\n\r\n data.isIfScreen\r\n ? setIfElseLayout(updatedRecords)\r\n : setLayout(updatedRecords)\r\n\r\n setReload(oldVal => !oldVal)\r\n return true\r\n }\r\n\r\n const [{ isDragging }, drag]: any = useDrag({\r\n type: ROW,\r\n item: data,\r\n collect: monitor => {\r\n return {\r\n isDragging: monitor.isDragging()\r\n }\r\n }\r\n } as any)\r\n const opacity = isDragging ? 0 : 1\r\n\r\n dragDropzoneShow ? drop(ref) : drag(drop(ref))\r\n const displayTooltip = () => {\r\n return (\r\n data?.inputType?.length ||\r\n (data?.isIfLayoutArray && data.function === functionTypes.If)\r\n )\r\n }\r\n const displayDeleteTooltip = () => {\r\n return (\r\n ![\r\n functionTypes.If,\r\n functionTypes.Braces,\r\n functionTypes.Else,\r\n functionTypes.Endif\r\n ].includes(data.function) ||\r\n (data?.isIfLayoutArray && data.function === functionTypes.If) ||\r\n (data.function === functionTypes.Braces && data.content !== \")\")\r\n )\r\n }\r\n\r\n const handleEditModalKeyUp = useCallback((e: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n openEditModal()\r\n }\r\n }, [])\r\n const openEditModal = () => {\r\n if (!data?.isIfLayoutArray) {\r\n setParametersForEditModal(\r\n { ...components[path], ...{ edit: true, index: path } },\r\n data.parameters\r\n )\r\n } else {\r\n make_if_screen_enable_for_edit(path)\r\n }\r\n }\r\n const openDeleteModal = () => {\r\n deleteRow(data, path)\r\n }\r\n\r\n const StyledBadge = styled(Badge)(({ theme }) => ({\r\n \"& .MuiBadge-badge\": {\r\n right: -2,\r\n border: `2px solid ${theme.palette.background.paper}`,\r\n padding: \"0 2px\",\r\n minWidth: \"12px\",\r\n height: \"12px\"\r\n }\r\n }))\r\n const isActive = isOver && canDrop\r\n\r\n let rowHoverClass = \"\"\r\n if (dragDropzoneShow && isOver) {\r\n rowHoverClass = `${isTopRow ? \"hover-top\" : \"hover-bottom\"}`\r\n }\r\n\r\n const usefulTipsIcons = () => {\r\n if (data.error && Object.keys(data.error).length && data.error.content) {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n } else {\r\n if (\r\n [functionTypes.If, functionTypes.Else, functionTypes.Braces].includes(\r\n data?.function\r\n ) &&\r\n data.content !== \")\"\r\n ) {\r\n if (data?.isExpandMore) {\r\n return (\r\n \r\n expandMoreAndLessClick(path, false)}\r\n data-testid=\"Expand Less\"\r\n >\r\n \r\n \r\n \r\n )\r\n } else {\r\n return (\r\n \r\n expandMoreAndLessClick(path, true)}\r\n data-testid=\"Expand More\"\r\n >\r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n }\r\n return null\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n {rowNo + 1} {usefulTipsIcons()}\r\n {\" \"}\r\n {renderRowLayoutChildren(data)}\r\n {displayTooltip() ? (\r\n \r\n \r\n \r\n ) : null}\r\n {displayDeleteTooltip() ? (\r\n \r\n \r\n \r\n ) : null}\r\n \r\n \r\n )\r\n}\r\nexport default Row\r\n","import React, { useEffect, useState } from \"react\"\r\nimport DropZone from \"../../DropZone\"\r\nimport {\r\n getIfElseLayout,\r\n getLayout,\r\n setIfElseLayout,\r\n setLayout\r\n} from \"../../layout.service\"\r\nimport { functionTypes, ifElse, ROW, SIDEBAR_ITEM } from \"../../LRConstants\"\r\nimport { getRadioButtonsJSX } from \"../../LRConstants/ifScreenRadioContent\"\r\nimport {\r\n ifScreenErrorCheck,\r\n mainScreenErrorCheck\r\n} from \"../../LRConstants/renderRowErrorCheck\"\r\nimport Row from \"../../Row\"\r\nimport shortid from \"shortid\"\r\nimport {\r\n booleanFunctionFieldAdding,\r\n handleMoveSidebarComponentIntoParent,\r\n margin_left_find_for_row\r\n} from \"../../helpers\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\n\r\ninterface Props {\r\n isIfElseState: boolean\r\n setItem: any\r\n setPageHeading: any\r\n make_if_screen_enable: (a: boolean) => void\r\n setIsIfElseStateEdit: any\r\n setIsIfElseStartIndex: any\r\n removeRow: any\r\n setParameters: any\r\n parameters: any\r\n setOpen: any\r\n dragDropzoneShow: boolean\r\n open: boolean\r\n item: any\r\n setModalFormSubmitCall: any\r\n modalFormSubmitCall: boolean\r\n component: string\r\n isRecordLevelAudit: boolean\r\n isShowEmptyElseBlock: boolean\r\n isConditionObject: boolean\r\n productFieldName: string\r\n}\r\nconst RenderLayout = ({\r\n isIfElseState,\r\n setItem,\r\n setPageHeading,\r\n make_if_screen_enable,\r\n setIsIfElseStateEdit,\r\n setIsIfElseStartIndex,\r\n removeRow,\r\n setParameters,\r\n parameters,\r\n setOpen,\r\n dragDropzoneShow,\r\n open,\r\n item,\r\n setModalFormSubmitCall,\r\n modalFormSubmitCall,\r\n component,\r\n isRecordLevelAudit,\r\n isShowEmptyElseBlock,\r\n isConditionObject,\r\n productFieldName\r\n}: Props) => {\r\n const [reload, setReload] = useState(true)\r\n const [dropZone, setDropZone] = useState()\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n if (!getIfElseLayout().length) {\r\n handleDrop(\r\n {\r\n path: \"0\",\r\n childrenCount: 0\r\n },\r\n ifElse[0]\r\n )\r\n } else {\r\n make_if_screen_enable(true)\r\n setIsIfElseStartIndex(0)\r\n setIsIfElseStateEdit(true)\r\n }\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (open && modalFormSubmitCall) {\r\n updateData(item, dropZone)\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [parameters])\r\n\r\n const updateData = (uItem: any, uDropZone: any) => {\r\n let isIf = uItem?.function === functionTypes.If\r\n let tempLayout = isIfElseState || isIf ? getIfElseLayout() : getLayout()\r\n if (uItem?.edit) {\r\n tempLayout[uItem.index] = {\r\n ...tempLayout[uItem.index],\r\n ...uItem,\r\n ...{ parameters: parameters }\r\n }\r\n if (isIfElseState || isIf) {\r\n setIfElseLayout(tempLayout)\r\n } else {\r\n setLayout(tempLayout)\r\n }\r\n setOpen(false)\r\n setParameters([])\r\n setModalFormSubmitCall(false)\r\n return true\r\n }\r\n let splitDropZonePath = uDropZone?.path.split(\"-\")\r\n let newItem = {}\r\n let isBraces = uItem?.function === functionTypes.Braces\r\n\r\n if (isBraces || isIf) {\r\n let id = shortid.generate()\r\n newItem = generateItem(uItem, newItem, id)\r\n } else {\r\n newItem = {\r\n ...uItem,\r\n id: shortid.generate(),\r\n type: ROW,\r\n parameters: parameters\r\n }\r\n }\r\n\r\n tempLayout = handleMoveSidebarComponentIntoParent(\r\n tempLayout,\r\n splitDropZonePath,\r\n newItem\r\n )\r\n if (isIfElseState || isIf) {\r\n if (\r\n tempLayout[0]?.function === functionTypes.If &&\r\n typeof tempLayout[0]?.content === \"object\" &&\r\n tempLayout[1]?.function === functionTypes.If &&\r\n tempLayout[1]?.content === \")\"\r\n ) {\r\n setIsIfElseStartIndex(Number(uDropZone?.path.split(\"-\")[0]))\r\n }\r\n setIfElseLayout(tempLayout)\r\n } else {\r\n setLayout(tempLayout)\r\n }\r\n setOpen(false)\r\n setParameters([])\r\n setModalFormSubmitCall(false)\r\n }\r\n const generateItem = (gItem, content, id = null) => {\r\n return {\r\n ...gItem,\r\n id: !id ? shortid.generate() : id,\r\n type: ROW,\r\n content: content\r\n }\r\n }\r\n const renderIfStatement = (layout, row, index) => {\r\n const row1 = {\r\n ...row,\r\n ...{\r\n type: ROW,\r\n label: row.function.toUpperCase(),\r\n parameters: [],\r\n isIfLayoutArray: true\r\n }\r\n }\r\n return renderRowComponent(layout, row1, index)\r\n }\r\n\r\n const expandMoreAndLessClick = (inx: number, isExpandMore: boolean) => {\r\n let templateLayout = isIfElseState\r\n ? [...getIfElseLayout()]\r\n : [...getLayout()]\r\n templateLayout[inx] = {\r\n ...templateLayout[inx],\r\n ...{ isExpandMore }\r\n }\r\n isIfElseState ? setIfElseLayout(templateLayout) : setLayout(templateLayout)\r\n setReload(oldVal => !oldVal)\r\n }\r\n\r\n const renderRowComponent = (layout, data, index) => {\r\n return (\r\n <>\r\n {data?.isRowDisplay ? (\r\n \r\n ) : null}\r\n \r\n )\r\n }\r\n const handleDrop = (hDropZone: any, hItem: any) => {\r\n updateWarnOnTabChangeToStore(true)\r\n if (hItem?.type === SIDEBAR_ITEM) {\r\n const { itemCopy } = booleanFunctionFieldAdding(\r\n hItem,\r\n isIfElseState,\r\n component,\r\n isRecordLevelAudit\r\n )\r\n setDropZone(hDropZone)\r\n setItem(itemCopy)\r\n if (itemCopy?.function === functionTypes.If) {\r\n if (\r\n ![CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n setPageHeading(oldVal => `${oldVal} - ${itemCopy?.label}`)\r\n }\r\n make_if_screen_enable(true)\r\n } else if (itemCopy?.inputType) {\r\n setOpen(true)\r\n return\r\n }\r\n updateData(itemCopy, hDropZone)\r\n }\r\n }\r\n const make_if_screen_enable_for_edit = (inx: number) => {\r\n const layout = getLayout()\r\n setIsIfElseStateEdit(true)\r\n setTimeout(() => {\r\n setIsIfElseStartIndex(inx)\r\n setIfElseLayout([...layout[inx].array])\r\n make_if_screen_enable(true)\r\n }, 50)\r\n }\r\n const deleteRow = (row, path) => {\r\n removeRow({ ...row, path: path })\r\n setReload(oldValue => !oldValue)\r\n }\r\n const setParametersForEditModal = (sItem, paras) => {\r\n setItem(sItem)\r\n setParameters(paras)\r\n setOpen(true)\r\n }\r\n let currentLayout = isIfElseState ? [...getIfElseLayout()] : [...getLayout()]\r\n let margin_left = 0\r\n\r\n const dropZoneFirstChild = (index: number, row: any) => {\r\n if (row?.isRowDisplay) {\r\n return (\r\n
    \r\n \r\n
    \r\n )\r\n }\r\n\r\n return null\r\n }\r\n let isRowDisplay = true\r\n let expandMoreOrLessId = \"\"\r\n return (\r\n <>\r\n {currentLayout.map((row, index) => {\r\n const { ml, start } = margin_left_find_for_row(row, margin_left)\r\n margin_left = ml\r\n const { alertMsg } = isIfElseState\r\n ? ifScreenErrorCheck(\r\n currentLayout,\r\n row,\r\n index,\r\n margin_left,\r\n isConditionObject\r\n )\r\n : mainScreenErrorCheck(\r\n currentLayout,\r\n row,\r\n index,\r\n margin_left,\r\n productFieldName,\r\n component\r\n )\r\n const start_tab = start ? margin_left - 1 : margin_left\r\n\r\n const { itemCopy } = booleanFunctionFieldAdding(\r\n row,\r\n isIfElseState,\r\n component,\r\n isRecordLevelAudit\r\n )\r\n row = { ...row, ...itemCopy }\r\n row = {\r\n ...row,\r\n ...{\r\n ml: margin_left > 0 ? start_tab : 0,\r\n error: alertMsg,\r\n index: index,\r\n isIfScreen: isIfElseState,\r\n data: {\r\n path: `${index}`,\r\n childrenCount: currentLayout.length\r\n }\r\n }\r\n }\r\n if (\r\n isIfElseState &&\r\n [functionTypes.If, functionTypes.Braces].includes(row.function) &&\r\n row.content !== \")\"\r\n ) {\r\n row = { ...row, ...(!row.condition && { condition: \"OR\" }) }\r\n row = {\r\n ...row,\r\n ...{ content: getRadioButtonsJSX(setReload, row) }\r\n }\r\n }\r\n\r\n if (\r\n [functionTypes.If, functionTypes.Else, functionTypes.Braces].includes(\r\n row?.function\r\n ) &&\r\n row?.content !== \")\" &&\r\n isRowDisplay\r\n ) {\r\n expandMoreOrLessId = row?.id\r\n if (!row?.isExpandMore) {\r\n isRowDisplay = false\r\n }\r\n } else if (expandMoreOrLessId === row?.id) {\r\n expandMoreOrLessId = \"\"\r\n isRowDisplay = true\r\n if ([functionTypes.Else].includes(row?.function)) {\r\n expandMoreOrLessId = row?.id\r\n if (!row?.isExpandMore) {\r\n isRowDisplay = false\r\n }\r\n }\r\n }\r\n row = { ...row, ...{ isRowDisplay } }\r\n\r\n if (\r\n [functionTypes.If, functionTypes.Else, functionTypes.Braces].includes(\r\n row?.function\r\n ) &&\r\n row?.content !== \")\" &&\r\n expandMoreOrLessId === row?.id\r\n ) {\r\n row = { ...row, ...{ isRowDisplay: true } }\r\n }\r\n if (!isShowEmptyElseBlock) {\r\n if (\r\n row?.function === functionTypes.Else &&\r\n currentLayout[index + 1]?.function === functionTypes.Endif\r\n ) {\r\n row = { ...row, ...{ isRowDisplay: false } }\r\n }\r\n }\r\n\r\n let locLayout = isIfElseState\r\n ? [...getIfElseLayout()]\r\n : [...getLayout()]\r\n locLayout[index] = row\r\n isIfElseState ? setIfElseLayout(locLayout) : setLayout(locLayout)\r\n\r\n return (\r\n \r\n {dropZoneFirstChild(index, row)}\r\n {!isIfElseState && row.function === functionTypes.If\r\n ? renderIfStatement(currentLayout, row, index)\r\n : renderRowComponent(currentLayout, row, index)}\r\n \r\n )\r\n })}\r\n\r\n \r\n \r\n )\r\n}\r\nexport default RenderLayout\r\n","import {\r\n forwardRef,\r\n useEffect,\r\n useImperativeHandle,\r\n useRef,\r\n useState\r\n} from \"react\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport RenderModal from \"../RenderModal\"\r\nimport GenerateSideBar from \"../GenerateSidebarItems\"\r\nimport { getAllIndexes, ifElseToReadable, ruleEditorTitle } from \"../helpers\"\r\nimport { functionTypes } from \"../LRConstants\"\r\nimport shortid from \"shortid\"\r\nimport { AlertColor, Grid } from \"@mui/material\"\r\nimport {\r\n getLayout,\r\n getIfElseLayout,\r\n setIfElseLayout,\r\n setLayout,\r\n setIsIfElseScreen,\r\n getIsIfElseScreen\r\n} from \"../layout.service\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport AlertC from \"src/components/Alert/Alert\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport RenderLayout from \"./Component/RenderLayout\"\r\nimport { COUNT_PROGRAMS_TYPE } from \"../../CountPrograms/Constant\"\r\nimport { setNewLookupRoutine } from \"src/redux/slices/configSlice\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { getIfOrIfElseRadioButtonJSX } from \"../LRConstants/ifScreenRadioContent\"\r\nimport { updateWarnOnTabChangeToStore } from \"../../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nconst CreateLookupEditor = forwardRef(\r\n ({ initialState, updateIfElse, locationVariable }: any, ref) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n let search = window.location.search || \"\"\r\n const [isShowEmptyElseBlock, setIsShowEmptyElseBlock] =\r\n useState(false)\r\n const [isIfElseState, setIsIfElseState] = useState(initialState)\r\n const [dragDropzoneShow, setDragDropzoneShow] = useState(true)\r\n const [isIfElseStateEdit, setIsIfElseStateEdit] = useState(false)\r\n const [loading, setLoading] = useState(true)\r\n const [open, setOpen] = useState(false)\r\n const [modalFormSubmitCall, setModalFormSubmitCall] =\r\n useState(false)\r\n const [item, setItem] = useState({})\r\n\r\n const [pageHeading, setPageHeading] = useState(\"\")\r\n const [parameters, setParameters] = useState([])\r\n\r\n const [isIfElseStartIndex, setIsIfElseStartIndex] = useState(\r\n null\r\n )\r\n const sideBarRef = useRef(null)\r\n\r\n const [alertProps, setAlertProps] = useState({\r\n title: \"\",\r\n severity: \"success\" as AlertColor,\r\n content: \"\"\r\n })\r\n const [showAlert, setShowAlert] = useState(false)\r\n\r\n const locationState = { ...locationVariable?.state }\r\n let lookup = JSON.parse(locationState?.lookup)\r\n let index = locationState?.index\r\n let type = locationState?.type\r\n let component = locationState?.component\r\n let countFieldComponent = locationState?.countFieldComponent\r\n let isRecordLevelAudit = locationState?.lookup?.isRecordLevelAudit\r\n let isConditionObject = locationState?.lookup?.isConditionObject\r\n let productFieldName = locationState?.lookup?.productMode\r\n\r\n let pathName = PATH.CONFIG_NEW_LOOKUP_ROUTINE\r\n if (\r\n [\r\n CONFIG_MODULES.CountPrograms.setup,\r\n CONFIG_MODULES.CountPrograms.validation,\r\n CONFIG_MODULES.CountPrograms.Lookup\r\n ].includes(component)\r\n ) {\r\n pathName = PATH.CREATE_COUNT_PROGRAMS\r\n if (index >= 0 && type === COUNT_PROGRAMS_TYPE.EDIT) {\r\n pathName = PATH.EDIT_COUNT_PROGRAMS.replace(\":id\", index)\r\n }\r\n } else if (CONFIG_MODULES.Audits === component) {\r\n pathName = PATH.AUDITS\r\n } else if (CONFIG_MODULES.AuditRule === component) {\r\n pathName = PATH.CREATE_AUDIT\r\n } else if (\r\n [\r\n CONFIG_MODULES.CountFieldInstructions.validation,\r\n CONFIG_MODULES.CountFieldInstructions.Lookup\r\n ].includes(component)\r\n ) {\r\n if (\r\n CONFIG_MODULES.CountFieldInstructions.Location === countFieldComponent\r\n ) {\r\n pathName = PATH.CONFIGURATION_COUNT_FIELDS_LOCATION\r\n } else if (\r\n CONFIG_MODULES.CountFieldInstructions.Product === countFieldComponent\r\n ) {\r\n pathName = PATH.CONFIGURATION_COUNT_FIELDS_PRODUCT\r\n }\r\n }\r\n const { title } = ruleEditorTitle(component, t)\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n setPageHeading(title)\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [t])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n let layout = getLayout()\r\n if (index !== -1 && layout.length <= 0) {\r\n setLayout(lookup?.Instructions ?? [])\r\n }\r\n if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(component)\r\n ) {\r\n if (lookup?.Instructions && lookup?.Instructions?.length) {\r\n setIfElseLayout(lookup?.Instructions[0]?.array ?? [])\r\n }\r\n }\r\n setPageHeading(title)\r\n setLoading(false)\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n const toastMsgShow = alertMsg => {\r\n setAlertProps({\r\n ...alertMsg\r\n })\r\n setShowAlert(true)\r\n setTimeout(() => {\r\n setShowAlert(false)\r\n }, 3000)\r\n }\r\n useImperativeHandle(\r\n ref,\r\n () => ({\r\n isIfElseStateEditCheckFunction: () => {\r\n return isIfElseStateEdit\r\n },\r\n handleIfElseSubmit: () => {\r\n let layout = [...getLayout()]\r\n let ifElseLayout = [...getIfElseLayout()]\r\n\r\n if (isConditionObject && getIfElseLayout()?.length > 3) {\r\n toastMsgShow({\r\n title: \"Condition Error\",\r\n severity: \"error\" as AlertColor,\r\n content: \"Condition will take only one\"\r\n })\r\n return false\r\n }\r\n const BreakException = {}\r\n try {\r\n getIfElseLayout().forEach((el, j) => {\r\n if (\r\n el.error &&\r\n Object.keys(el.error).length &&\r\n el.error.content\r\n ) {\r\n toastMsgShow(el.error)\r\n throw BreakException\r\n }\r\n\r\n if (\r\n typeof el.content === \"object\" &&\r\n Object.keys(el.content).length\r\n ) {\r\n ifElseLayout[j] = {\r\n ...ifElseLayout[j],\r\n ...{ content: {} }\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (e !== BreakException) throw e\r\n return\r\n }\r\n\r\n if (typeof isIfElseStartIndex === \"number\") {\r\n let convertedString = ifElseToReadable(ifElseLayout)\r\n let newArray: any = []\r\n\r\n if (isIfElseStateEdit && layout[isIfElseStartIndex]) {\r\n newArray = layout\r\n newArray[isIfElseStartIndex] = {\r\n ...newArray[isIfElseStartIndex],\r\n ...{ array: ifElseLayout, content: convertedString }\r\n }\r\n setIsIfElseStateEdit(false)\r\n } else {\r\n const id_gen = shortid.generate()\r\n\r\n newArray = [\r\n ...layout.slice(0, isIfElseStartIndex),\r\n {\r\n function: functionTypes.If,\r\n array: ifElseLayout,\r\n id: id_gen,\r\n content: convertedString,\r\n isExpandMore: true\r\n },\r\n {\r\n function: functionTypes.Else,\r\n id: id_gen,\r\n content: functionTypes.Else,\r\n isExpandMore: true\r\n },\r\n {\r\n function: functionTypes.Endif,\r\n id: id_gen,\r\n content: functionTypes.Endif\r\n },\r\n ...layout.slice(isIfElseStartIndex)\r\n ]\r\n }\r\n\r\n setLayout([...newArray])\r\n setPageHeading(title)\r\n setIfElseLayout([])\r\n setIsIfElseStartIndex(null)\r\n\r\n if (\r\n [CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(\r\n component\r\n )\r\n ) {\r\n let lookup1 = {\r\n ...lookup,\r\n ...{ Instructions: newArray }\r\n }\r\n makeRedirection(lookup1)\r\n } else {\r\n make_if_screen_enable(false)\r\n sideBarRef.current.makeSideBarExpandCloseFromParent()\r\n }\r\n }\r\n },\r\n handleSubmit: () => {\r\n let layout = [...getLayout()]\r\n const BreakException = {}\r\n try {\r\n getLayout().forEach((el, j) => {\r\n if (\r\n el.error &&\r\n Object.keys(el.error).length &&\r\n el.error.content\r\n ) {\r\n toastMsgShow(el.error)\r\n throw BreakException\r\n }\r\n })\r\n } catch (e) {\r\n if (e !== BreakException) throw e\r\n return\r\n }\r\n let lookup1 = {\r\n ...lookup,\r\n ...{ Instructions: layout }\r\n }\r\n if (component === CONFIG_MODULES.LookupRoutines) {\r\n dispatch(setNewLookupRoutine(lookup1))\r\n }\r\n makeRedirection(lookup1)\r\n },\r\n cancelButtonClick: () => {\r\n if (\r\n getIsIfElseScreen() &&\r\n ![CONFIG_MODULES.Audits, CONFIG_MODULES.AuditRule].includes(\r\n component\r\n )\r\n ) {\r\n setPageHeading(title)\r\n make_if_screen_enable(false)\r\n setIfElseLayout([])\r\n setIsIfElseStartIndex(null)\r\n sideBarRef.current.makeSideBarExpandCloseFromParent()\r\n } else {\r\n setLayout(lookup.Instructions)\r\n makeRedirection(lookup)\r\n }\r\n }\r\n }),\r\n //eslint-disable-next-line\r\n [isIfElseStateEdit, isIfElseStartIndex]\r\n )\r\n\r\n const makeRedirection = loup => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(pathName + search, {\r\n data: JSON.stringify({ ...loup }),\r\n index: index,\r\n type: type\r\n })\r\n })\r\n }\r\n const make_if_screen_enable = (val: boolean) => {\r\n setIsIfElseState(val)\r\n updateIfElse(val)\r\n setIsIfElseScreen(val)\r\n return val\r\n }\r\n const removeConfirmation = rowToRemove => {\r\n let layout = isIfElseState ? [...getIfElseLayout()] : [...getLayout()]\r\n let item = layout[rowToRemove.path]\r\n if (\r\n item &&\r\n [functionTypes.If, functionTypes.Braces].includes(item.function)\r\n ) {\r\n let indexes: number[] = getAllIndexes(\r\n layout,\r\n layout[rowToRemove.path].id,\r\n true,\r\n \"id\"\r\n )\r\n layout = layout.filter((row, idx) => {\r\n return idx < indexes[0] || idx > indexes[indexes.length - 1]\r\n })\r\n } else {\r\n layout.splice(rowToRemove.path, 1)\r\n }\r\n\r\n isIfElseState ? setIfElseLayout(layout) : setLayout(layout)\r\n }\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n
    \r\n {getTranslations(t, Translates.Available_Functions)}\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    {pageHeading}
    \r\n {!isIfElseState ? (\r\n
    \r\n {getIfOrIfElseRadioButtonJSX(\r\n isShowEmptyElseBlock,\r\n setIsShowEmptyElseBlock,\r\n t\r\n )}\r\n
    \r\n ) : null}\r\n
    \r\n\r\n {open ? (\r\n \r\n ) : null}\r\n
    \r\n {loading ? (\r\n \r\n ) : (\r\n <>\r\n \r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n {showAlert ? : null}\r\n \r\n )\r\n }\r\n)\r\nexport default CreateLookupEditor\r\n","import { Button, Grid } from \"@mui/material\"\r\nimport { useEffect, useRef, useState } from \"react\"\r\nimport { DndProvider } from \"react-dnd\"\r\nimport { HTML5Backend } from \"react-dnd-html5-backend\"\r\nimport { useLocation } from \"react-router-dom\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport CreateLookupEditor from \"./CreateLookupEditor\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\nimport { ruleEditorTitle } from \"../helpers\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nconst CreateLookup = () => {\r\n const { t } = useTranslation()\r\n const location = useLocation() as any\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const locationState = { ...location.state }\r\n let component = locationState?.component\r\n\r\n const { title } = ruleEditorTitle(component, t)\r\n\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `newLookup`\r\n let variables: any = {\r\n newLookup: title\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n showHomeIcon: false,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n\r\n const componentRef = useRef(null)\r\n const [isIfElse, setIsIfElse] = useState(false) // temp state to re render createLookup, update it later accordingly\r\n const [bConfig, setBConfig] = useState(getBreadcrumbConfig())\r\n\r\n const updateIfElse = (val: boolean) => {\r\n setIsIfElse(val)\r\n return val\r\n }\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (location.state?.bConfig) {\r\n let bConfigloc = location.state?.bConfig\r\n bConfigloc.currentPath = `${bConfigloc.currentPath}/${title}`\r\n bConfigloc.mapObj = {\r\n ...bConfigloc.mapObj,\r\n ...{ [title]: title }\r\n }\r\n setBConfig(bConfigloc)\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n }, [])\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n {\r\n componentRef.current.cancelButtonClick()\r\n }}\r\n >\r\n {\" \"}\r\n {getTranslations(t, Translates.Close)}\r\n \r\n {isIfElse ? (\r\n {\r\n componentRef.current.handleIfElseSubmit()\r\n }}\r\n data-testid=\"screen2-submit-btn\"\r\n disabled={configTypeFromStore === \"view\" ? true : false}\r\n >\r\n {componentRef.current.isIfElseStateEditCheckFunction()\r\n ? getTranslations(t, Translates.Update)\r\n : getTranslations(t, Translates.Save)}\r\n \r\n ) : (\r\n {\r\n componentRef.current.handleSubmit()\r\n }}\r\n data-testid=\"screen1-submit-btn\"\r\n disabled={configTypeFromStore === \"view\" ? true : false}\r\n >\r\n {[undefined, -1].includes(location.state?.index)\r\n ? getTranslations(t, Translates.Save)\r\n : getTranslations(t, Translates.Update)}\r\n \r\n )}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n )\r\n}\r\nexport default CreateLookup\r\n","import { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { toolBarHearder } from \"src/utils/reusables/reusable\"\r\nimport { useTranslation } from \"react-i18next\"\r\n\r\nconst AuditsToolBar = ({ AuditsSave }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config.configType\r\n )\r\n\r\n const handleAuditSaveClick = () => {\r\n AuditsSave()\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n {toolBarHearder(handleAuditSaveClick, configTypeFromStore, t)}\r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default AuditsToolBar\r\n","import {\r\n Grid,\r\n Button,\r\n Divider,\r\n FormControl,\r\n RadioGroup,\r\n Radio,\r\n FormControlLabel,\r\n Checkbox,\r\n Tooltip,\r\n IconButton,\r\n Alert,\r\n AlertTitle,\r\n TextField,\r\n Autocomplete\r\n} from \"@mui/material\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport React, { useCallback, useEffect, useState } from \"react\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport GlobalTableDragDrop from \"src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport editIcon from \"src/assets/images/Edit.png\"\r\nimport ContentCopyOutlinedIcon from \"@mui/icons-material/ContentCopyOutlined\"\r\nimport trashIcon from \"src/assets/images/TrashIcon.svg\"\r\nimport AuditsToolBar from \"src/components/ConfigurationPortal/AuditsToolBar/AuditsToolBar\"\r\nimport ReadOnlyLayout from \"../../pages/LookupRoutines/ReadOnlyLayout/ReadOnlyLayout\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport {\r\n LookupEditorToConfig,\r\n LookupConfigToEditor,\r\n makeLayoutAllVariableEmpty\r\n} from \"../LookupRoutines/helpers\"\r\nimport { Audit_TypesObj, BreadCrumb_Fields } from \"src/constants/audits\"\r\nimport Warning from \"@mui/icons-material/Warning\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport ConfirmDialog from \"../../../components/ConfirmDialog/ConfirmDialog\"\r\nimport {\r\n setNewRandomAuditRule,\r\n setNewTargetLocationAuditRule,\r\n setNewTargetRecordAuditRule,\r\n setNewFollowUpAuditRule,\r\n setAudits\r\n} from \"src/redux/slices/configSlice\"\r\nimport {\r\n getBreadcrumbPath,\r\n setAuditFormData,\r\n generateRuleName,\r\n generatePercentageValues,\r\n formatInteger,\r\n percentageValueConversion,\r\n onAutoCompleteFormChange,\r\n auditRuleTypes\r\n} from \"./AuditHelper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport {\r\n getConfigurationDecryptAndSetRedux,\r\n getTranslations\r\n} from \"src/utils/helper\"\r\nimport { TableComponentNames } from \"src/constants/globalTableDragDrop\"\r\nimport AlertConfirmationContent from \"../Components/AlertConfirmationContent\"\r\nimport { LocationsList } from \"../CountFields/Constants\"\r\ninterface IAudits {\r\n percentThreshold: any\r\n reqAuditsPercent: any\r\n reqAuditsPerCounter: any\r\n controlledradiobuttonsgroup: string\r\n Instructions: any\r\n blindCountVerifications: boolean\r\n percentageOfTags: any\r\n}\r\nlet isInitialDataFromLocationState = true\r\nconst Audits = ({ liftAuditSaveClick }) => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const dispatch = useAppThunkDispatch()\r\n const [renderData, setRenderData] = useState([] as any)\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n const [isCFConfirmOpen, setIsCFConfirmOpen] = useState(false)\r\n const [loading, setLoading] = useState(false)\r\n\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n\r\n const auditData = useSelector((state: RootState) => state.config.Audits)\r\n const [exclueAccuracychecked, setExcludeAccuracyChecked] = useState(false)\r\n const configSliceData = useSelector((state: RootState) => state.config)\r\n let targetLocationauditRuleData = useSelector(\r\n (state: RootState) => state.config.newTargetLocationAuditRule\r\n )\r\n let targetRecordauditRuleData = useSelector(\r\n (state: RootState) => state.config.newTargetRecordAuditRule\r\n )\r\n let followUpauditRuleData = useSelector(\r\n (state: RootState) => state.config.newFollowUpAuditRule\r\n )\r\n let randomauditRuleData = useSelector(\r\n (state: RootState) => state.config.newRandomAuditRule\r\n )\r\n\r\n const configDetails = useSelector(\r\n (state: RootState) => state.config.configDetails\r\n )\r\n\r\n const [preDeleteRow, setPreDeleteRow] = useState()\r\n const location: any = useLocation()\r\n const { bConfig } = getBreadcrumbPath(\r\n getTranslations(t, BreadCrumb_Fields.AUDITS_COMPONENT),\r\n getTranslations(t, BreadCrumb_Fields.AUDIT_TITLE),\r\n PATH.AUDITS.slice(1)\r\n )\r\n let locationState: any = { ...location.state }\r\n let data = locationState?.data\r\n ? JSON.parse(locationState?.data)\r\n : locationState?.data\r\n const [form, setForm] = React.useState({\r\n percentThreshold: \"\",\r\n reqAuditsPercent: \"\",\r\n reqAuditsPerCounter: \"\",\r\n controlledradiobuttonsgroup: \"DETAIL\",\r\n Instructions: [],\r\n blindCountVerifications: false,\r\n percentageOfTags: \"\"\r\n } as IAudits)\r\n let search = window.location.search || \"\"\r\n\r\n // render the cell data\r\n const displaySpan = (props: any) => {\r\n return (\r\n \r\n {props.value ? props.value : \"-\"}\r\n \r\n )\r\n }\r\n useEffect(() => {\r\n if (auditData && Object.keys(auditData).length) {\r\n setLoading(true)\r\n setAuditData()\r\n setLoading(false)\r\n isInitialDataFromLocationState = false\r\n }\r\n }, [auditData])\r\n useEffect(() => {\r\n makeLayoutAllVariableEmpty()\r\n isInitialDataFromLocationState = true\r\n if (data) {\r\n setAuditData()\r\n isInitialDataFromLocationState = false\r\n }\r\n }, [])\r\n\r\n useEffect(() => {\r\n setGridData()\r\n }, [\r\n targetLocationauditRuleData,\r\n targetRecordauditRuleData,\r\n randomauditRuleData,\r\n followUpauditRuleData\r\n ])\r\n\r\n const setGridData = () => {\r\n const overallArr = [\r\n ...targetLocationauditRuleData,\r\n ...targetRecordauditRuleData,\r\n ...randomauditRuleData,\r\n ...followUpauditRuleData\r\n ]\r\n let dt = overallArr\r\n .map(i => ({\r\n ...i,\r\n ...(!i.SortOrder && { SortOrder: overallArr.length + 1 })\r\n }))\r\n .sort((a, b) => a.SortOrder - b.SortOrder)\r\n .map((i1, j1) => ({\r\n ...i1,\r\n SortOrder: j1 + 1\r\n }))\r\n\r\n if (JSON.stringify(dt) !== JSON.stringify(renderData)) {\r\n const random = dt.filter(i => i.AuditType === Audit_TypesObj.Random)\r\n const followup = dt.filter(i => i.AuditType === Audit_TypesObj.FollowUp)\r\n\r\n const targetedRecord = dt.filter(\r\n i => i.AuditType === Audit_TypesObj.TargetedRecord\r\n )\r\n const targetedLocation = dt.filter(\r\n i => i.AuditType === Audit_TypesObj.TargetedLocation\r\n )\r\n\r\n dispatch(setNewRandomAuditRule([...random]))\r\n dispatch(setNewFollowUpAuditRule([...followup]))\r\n dispatch(setNewTargetRecordAuditRule([...targetedRecord]))\r\n dispatch(setNewTargetLocationAuditRule([...targetedLocation]))\r\n\r\n setRenderData(dt)\r\n }\r\n }\r\n\r\n // copy the Audit Rule row\r\n const copyAuditRule = (row: any) => {\r\n if (row.AuditType === Audit_TypesObj.FollowUp) {\r\n const _item = {\r\n ...row,\r\n ...{\r\n Reason: generateRuleName(followUpauditRuleData, row),\r\n SortOrder: undefined\r\n }\r\n }\r\n dispatch(setNewFollowUpAuditRule([...followUpauditRuleData, _item]))\r\n } else if (row.AuditType === Audit_TypesObj.Random) {\r\n const _item = {\r\n ...row,\r\n ...{\r\n Reason: generateRuleName(randomauditRuleData, row),\r\n SortOrder: undefined\r\n }\r\n }\r\n dispatch(setNewRandomAuditRule([...randomauditRuleData, _item]))\r\n } else if (row.AuditType === Audit_TypesObj.TargetedLocation) {\r\n const _item = {\r\n ...row,\r\n ...{\r\n Reason: generateRuleName(targetLocationauditRuleData, row),\r\n SortOrder: undefined\r\n }\r\n }\r\n dispatch(\r\n setNewTargetLocationAuditRule([...targetLocationauditRuleData, _item])\r\n )\r\n } else if (row.AuditType === Audit_TypesObj.TargetedRecord) {\r\n const _item = {\r\n ...row,\r\n ...{\r\n Reason: generateRuleName(targetRecordauditRuleData, row),\r\n SortOrder: undefined\r\n }\r\n }\r\n dispatch(\r\n setNewTargetRecordAuditRule([...targetRecordauditRuleData, _item])\r\n )\r\n }\r\n }\r\n\r\n // Edit the Audit Rule\r\n const EditAuditRule = (data: any) => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_AUDIT + search, {\r\n isEdit: true,\r\n ruledata: { ...data }\r\n })\r\n })\r\n }\r\n\r\n // Delete the Audit Rule\r\n const deleteAuditRule = (row: any) => {\r\n setIsConfirmOpen(true)\r\n setPreDeleteRow(row)\r\n }\r\n // set the data for the confirmation dialouge\r\n const setContent = () => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {`${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete_the\r\n )} ${preDeleteRow?.Reason} ${getTranslations(\r\n t,\r\n Translates.Audits\r\n )}?`}\r\n

    \r\n
    \r\n )\r\n }\r\n\r\n // return the row which needs to be deleted\r\n const callbackConfirmation = (res: boolean) => {\r\n if (res) {\r\n let auditType = preDeleteRow?.AuditType\r\n\r\n if (auditType == Audit_TypesObj.FollowUp) {\r\n followUpauditRuleData = followUpauditRuleData.filter(\r\n f => f.Reason !== preDeleteRow?.Reason\r\n )\r\n dispatch(setNewFollowUpAuditRule([...followUpauditRuleData]))\r\n } else if (auditType == Audit_TypesObj.Random) {\r\n randomauditRuleData = randomauditRuleData.filter(\r\n f => f.Reason !== preDeleteRow?.Reason\r\n )\r\n dispatch(setNewRandomAuditRule([...randomauditRuleData]))\r\n } else if (auditType == Audit_TypesObj.TargetedLocation) {\r\n targetLocationauditRuleData = targetLocationauditRuleData.filter(\r\n f => f.Reason !== preDeleteRow?.Reason\r\n )\r\n dispatch(\r\n setNewTargetLocationAuditRule([...targetLocationauditRuleData])\r\n )\r\n } else if (auditType == Audit_TypesObj.TargetedRecord) {\r\n targetRecordauditRuleData = targetRecordauditRuleData.filter(\r\n f => f.Reason !== preDeleteRow?.Reason\r\n )\r\n dispatch(setNewTargetRecordAuditRule([...targetRecordauditRuleData]))\r\n }\r\n }\r\n setIsConfirmOpen(false)\r\n }\r\n\r\n // set the Audit data on page load\r\n const setAuditData = () => {\r\n if (Object.keys(auditData).length || data != undefined) {\r\n const Instructions =\r\n data?.Instructions && isInitialDataFromLocationState\r\n ? data?.Instructions\r\n : LookupConfigToEditor(auditData[\"AuditTypeRule\"]?.Condition, true)\r\n\r\n const _editAuditItem = {\r\n percentThreshold:\r\n data?.percentThreshold && isInitialDataFromLocationState\r\n ? data?.percentThreshold\r\n : percentageValueConversion(auditData[\"PercentThreshold\"]),\r\n reqAuditsPercent:\r\n data?.reqAuditsPercent && isInitialDataFromLocationState\r\n ? data?.reqAuditsPercent\r\n : percentageValueConversion(auditData[\"RequiredAuditPercentage\"]),\r\n reqAuditsPerCounter:\r\n data?.reqAuditsPerCounter && isInitialDataFromLocationState\r\n ? data?.reqAuditsPerCounter\r\n : auditData[\"RequiredAuditsPerCounter\"],\r\n blindCountVerifications:\r\n data?.blindCountVerifications && isInitialDataFromLocationState\r\n ? data?.blindCountVerifications\r\n : auditData[\"BlindCountVerifications\"],\r\n percentageOfTags:\r\n data?.percentageOfTags && isInitialDataFromLocationState\r\n ? data?.percentageOfTags\r\n : auditData[\"PercentageOfTags\"],\r\n checkDetailAudits:\r\n data?.checkDetailAudits && isInitialDataFromLocationState\r\n ? data?.checkDetailAudits\r\n : auditData[\"CheckDefaultAuditTypes\"],\r\n checkRescanAudits:\r\n data?.checkRescanAudits && isInitialDataFromLocationState\r\n ? data?.checkRescanAudits\r\n : auditData[\"CheckRescanAuditTypes\"],\r\n controlledradiobuttonsgroup:\r\n data?.controlledradiobuttonsgroup && isInitialDataFromLocationState\r\n ? data?.controlledradiobuttonsgroup\r\n : auditData[\"AuditTypeRule\"][\"Type\"],\r\n Instructions: Instructions\r\n }\r\n\r\n setForm(_editAuditItem)\r\n }\r\n }\r\n\r\n // Save the Audit data\r\n // istanbul ignore next\r\n const AuditsSave = () => {\r\n if (\r\n form.controlledradiobuttonsgroup === auditRuleTypes.RESCAN &&\r\n configDetails.configuration\r\n ) {\r\n const dt = getConfigurationDecryptAndSetRedux(configSliceData)\r\n if (\r\n Object.keys(dt.Fields).some(key =>\r\n [\r\n LocationsList.SecondaryLocation1.OjKey,\r\n LocationsList.SecondaryLocation2.OjKey,\r\n LocationsList.SecondaryLocation3.OjKey\r\n ].includes(key)\r\n )\r\n ) {\r\n setIsCFConfirmOpen(true)\r\n return false\r\n }\r\n }\r\n // collect the form data\r\n const locCondition = data?.Instructions?.length\r\n ? LookupEditorToConfig(data?.Instructions)\r\n : LookupEditorToConfig(form.Instructions)\r\n\r\n // // generate the Accuracy object update\r\n let excludedAuditRules = [\r\n ...generateExcludeAuditRules(targetLocationauditRuleData),\r\n ...generateExcludeAuditRules(targetRecordauditRuleData),\r\n ...generateExcludeAuditRules(followUpauditRuleData),\r\n ...generateExcludeAuditRules(randomauditRuleData)\r\n ]\r\n\r\n const _AuditItem = {\r\n PercentThreshold: form?.percentThreshold\r\n ? parseFloat(formatInteger(form?.percentThreshold).toString())\r\n : 0,\r\n RequiredAuditPercentage: form?.reqAuditsPercent\r\n ? parseFloat(formatInteger(form?.reqAuditsPercent).toString())\r\n : 0,\r\n RequiredAuditsPerCounter: form?.reqAuditsPerCounter\r\n ? form?.reqAuditsPerCounter\r\n : 0,\r\n BlindCountVerifications: form?.blindCountVerifications,\r\n PercentageOfTags: form?.percentageOfTags,\r\n EnableCondition: form.controlledradiobuttonsgroup,\r\n AuditTypeRule: {\r\n Type: form.controlledradiobuttonsgroup,\r\n Condition: locCondition.length ? locCondition[0].Condition : []\r\n },\r\n ExcludedAuditRules: excludedAuditRules,\r\n LocationSystemAudits: targetLocationauditRuleData,\r\n RecordSystemAudits: targetRecordauditRuleData,\r\n FollowupSystemAudits: followUpauditRuleData,\r\n RandomSystemAudits: randomauditRuleData\r\n }\r\n // dispatch the object to Redux\r\n dispatch(setAudits(_AuditItem))\r\n liftAuditSaveClick(_AuditItem, \"AuditsTab\")\r\n return true\r\n }\r\n\r\n const handleExcludeAuuracyCheckChange = (rowValue: any) => {\r\n // toggle the check\r\n setExcludeAccuracyChecked(!exclueAccuracychecked)\r\n\r\n if (rowValue.AuditType == Audit_TypesObj.FollowUp) {\r\n let locallArr = [...followUpauditRuleData]\r\n const objIndex = followUpauditRuleData.findIndex(\r\n f =>\r\n f.SortOrder === rowValue.SortOrder &&\r\n f.Reason === rowValue.Reason &&\r\n f.AuditType === rowValue.AuditType\r\n )\r\n const _item = {\r\n ...rowValue,\r\n ...{\r\n AccuracyCalculations: !rowValue.AccuracyCalculations\r\n }\r\n }\r\n locallArr[objIndex] = _item\r\n\r\n dispatch(setNewFollowUpAuditRule([...locallArr]))\r\n } else if (rowValue.AuditType == Audit_TypesObj.Random) {\r\n let locallArr = [...randomauditRuleData]\r\n const objIndex = randomauditRuleData.findIndex(\r\n f =>\r\n f.SortOrder === rowValue.SortOrder &&\r\n f.Reason === rowValue.Reason &&\r\n f.AuditType === rowValue.AuditType\r\n )\r\n const _item = {\r\n ...rowValue,\r\n ...{\r\n AccuracyCalculations: !rowValue.AccuracyCalculations\r\n }\r\n }\r\n locallArr[objIndex] = _item\r\n\r\n dispatch(setNewRandomAuditRule([...locallArr]))\r\n } else if (rowValue.AuditType == Audit_TypesObj.TargetedLocation) {\r\n let locallArr = [...targetLocationauditRuleData]\r\n const objIndex = targetLocationauditRuleData.findIndex(\r\n f =>\r\n f.SortOrder === rowValue.SortOrder &&\r\n f.Reason === rowValue.Reason &&\r\n f.AuditType === rowValue.AuditType\r\n )\r\n const _item = {\r\n ...rowValue,\r\n ...{\r\n AccuracyCalculations: !rowValue.AccuracyCalculations\r\n }\r\n }\r\n locallArr[objIndex] = _item\r\n dispatch(setNewTargetLocationAuditRule([...locallArr]))\r\n } else if (rowValue.AuditType == Audit_TypesObj.TargetedRecord) {\r\n let locallArr = [...targetRecordauditRuleData]\r\n const objIndex = targetRecordauditRuleData.findIndex(\r\n f =>\r\n f.SortOrder === rowValue.SortOrder &&\r\n f.Reason === rowValue.Reason &&\r\n f.AuditType === rowValue.AuditType\r\n )\r\n const _item = {\r\n ...rowValue,\r\n ...{\r\n AccuracyCalculations: !rowValue.AccuracyCalculations\r\n }\r\n }\r\n locallArr[objIndex] = _item\r\n\r\n dispatch(setNewTargetRecordAuditRule([...locallArr]))\r\n }\r\n }\r\n\r\n const generateExcludeAuditRules = rulesObj => {\r\n let filteredRulesObj = rulesObj\r\n .filter(f => !f.AccuracyCalculations)\r\n .map(({ Reason }) => Reason)\r\n\r\n return filteredRulesObj\r\n }\r\n\r\n // prepare the column data\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.Sort),\r\n accessor: \"id\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 60,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Reason),\r\n accessor: \"Reason\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 560,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Impact_Accuracy),\r\n accessor: \"AccuracyCalculations\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 180,\r\n Cell: props => {\r\n return (\r\n \r\n handleExcludeAuuracyCheckChange(props.row.original)\r\n }\r\n checkedIcon={}\r\n />\r\n )\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Audit_Type),\r\n accessor: \"AuditType\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 220,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 150,\r\n Cell: props => {\r\n return (\r\n <>\r\n \r\n copyAuditRule(props.row.original)}\r\n disabled={configTypeFromStore === \"view\" ? true : false}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n EditAuditRule(props.row.original)}\r\n >\r\n \r\n {\"edit\r\n \r\n \r\n \r\n \r\n \r\n deleteAuditRule(props.row.original)}\r\n className={`${\r\n configTypeFromStore === \"view\" ? \"disable-img\" : \"pointer\"\r\n }`}\r\n disabled={configTypeFromStore === \"view\" ? true : false}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n ],\r\n [renderData, t]\r\n )\r\n\r\n // form change event\r\n // istanbul ignore next\r\n const onFormChange = e => {\r\n /**\r\n e --> Event\r\n setForm --> Set Form Method\r\n form --> Form object\r\n setErrorMessage --> Error message for duplicate rule name, applicable only to new audit rule. \"\" for Audit \r\n setThresholdPercentageErrorMsg --> set the error message of Audit thershold percentage, applicable to Audit\r\n setAuditPercentageErrorMsg --> set the error message of Required Audit percentage, applicable to Audit\r\n setTargetLocationPercentageErrorMsg ---> set the error message of Target Tag percentage, applicable to Audit New Rule\r\n targetpRecordercentageErrorMsg ---> set the error message of Target Item percentage, applicable to Audit New Rule\r\n randomAuditpercentageErrorMsg ---> set the error message of Random Audit percentage, applicable to Audit New Rule\r\n followuppercentageErrorMsg ---> set the error message of followup Audit percentage, applicable to Audit New Rule\r\n followupAccuracypercentageErrorMsg ---> set the error message of followup Audit accuracy percentage, applicable to Audit New Rule\r\n */\r\n updateWarnOnTabChangeToStore(true)\r\n setAuditFormData(e, setForm, form, \"\", \"\", \"\", \"\")\r\n }\r\n\r\n // Redirect users to Audit Rule page\r\n const handleNewAuditRuleClick = () => {\r\n // collect the form data\r\n const locCondition = data?.Instructions?.length\r\n ? LookupEditorToConfig(data?.Instructions)\r\n : LookupEditorToConfig(form.Instructions)\r\n // // generate the Accuracy object update\r\n let excludedAuditRules = [\r\n ...generateExcludeAuditRules(targetLocationauditRuleData),\r\n ...generateExcludeAuditRules(targetRecordauditRuleData),\r\n ...generateExcludeAuditRules(followUpauditRuleData),\r\n ...generateExcludeAuditRules(randomauditRuleData)\r\n ]\r\n\r\n const _AuditItem = {\r\n PercentThreshold: form?.percentThreshold\r\n ? parseFloat(formatInteger(form?.percentThreshold).toString())\r\n : 0,\r\n RequiredAuditPercentage: form?.reqAuditsPercent\r\n ? parseFloat(formatInteger(form?.reqAuditsPercent).toString())\r\n : 0,\r\n RequiredAuditsPerCounter: form?.reqAuditsPerCounter\r\n ? form?.reqAuditsPerCounter\r\n : 0,\r\n BlindCountVerifications: form?.blindCountVerifications,\r\n PercentageOfTags: form?.percentageOfTags,\r\n EnableCondition: form.controlledradiobuttonsgroup,\r\n AuditTypeRule: {\r\n Type: form.controlledradiobuttonsgroup,\r\n Condition: locCondition.length ? locCondition[0].Condition : []\r\n },\r\n ExcludedAuditRules: excludedAuditRules,\r\n TargetLocationAudits: targetLocationauditRuleData,\r\n TargetRecordAudits: targetRecordauditRuleData,\r\n FollowUpAudits: followUpauditRuleData,\r\n RandomSystemAudits: randomauditRuleData\r\n }\r\n\r\n // dispatch the object to Redux\r\n dispatch(setAudits(_AuditItem))\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_AUDIT + search)\r\n })\r\n }\r\n\r\n const onPercentageChange = (event, values) => {\r\n let targetID = event?.target?.id?.split(\"-\")[0]\r\n updateWarnOnTabChangeToStore(true)\r\n onAutoCompleteFormChange(setForm, form, targetID, values)\r\n }\r\n // Display the grid with the required columns\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n\r\n const setModalCFContent = useCallback(() => {\r\n const content = `${getTranslations(\r\n t,\r\n Translates.Secondary_location_added_warning\r\n )}.`\r\n return \r\n }, [])\r\n\r\n const callbackCFConfirmation = useCallback(() => {\r\n setIsCFConfirmOpen(false)\r\n }, [])\r\n const blindCountChange = (e) => {\r\n setForm({ ...form, blindCountVerifications: e.target.checked })\r\n }\r\n const percentageTagsChange = (e) => {\r\n let percentageVal = e.target.value;\r\n percentageVal = percentageVal.replace(/[^0-9]/g, '');\r\n if (percentageVal === \"\" || (percentageVal >= 1 && percentageVal <= 100)) {\r\n setForm({ ...form, percentageOfTags: percentageVal });\r\n } \r\n };\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n option}\r\n renderInput={params => (\r\n onFormChange(e)}\r\n name=\"percentThreshold\"\r\n label={getTranslations(\r\n t,\r\n Translates.Percentage_Threshold\r\n )}\r\n />\r\n )}\r\n />\r\n \r\n\r\n \r\n (\r\n onFormChange(e)}\r\n name=\"reqAuditsPercent\"\r\n label={getTranslations(\r\n t,\r\n Translates.Required_Audit_Percentage\r\n )}\r\n />\r\n )}\r\n />\r\n \r\n onFormChange(e)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Blind_Count_Verifications\r\n )}\r\n />\r\n {form?.blindCountVerifications &&\r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n onFormChange(e)}\r\n value={form?.controlledradiobuttonsgroup}\r\n >\r\n }\r\n label={getTranslations(t, Translates.Detail_Audit)}\r\n className=\"mr-5\"\r\n\r\n //onChange={e => onFormChange(e)}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Rescan_Audit)}\r\n className=\"mr-5\"\r\n //onChange={e => onFormChange(e)}\r\n />\r\n \r\n {\" \"}\r\n \r\n

    \r\n {getTranslations(t, Translates.Conditions)}\r\n

    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Audit_Rules)}\r\n \r\n \r\n \r\n {loading ? Loader() : displayGrid()}\r\n \r\n
    \r\n {isConfirmOpen && (\r\n \r\n )}\r\n {isCFConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default Audits\r\n","import {\r\n Grid,\r\n Button,\r\n TextField,\r\n Divider,\r\n FormControl,\r\n RadioGroup,\r\n FormControlLabel,\r\n Radio,\r\n InputLabel,\r\n Select,\r\n MenuItem,\r\n Checkbox,\r\n Autocomplete\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport React, { useState, useEffect, useRef } from \"react\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport {\r\n setNewRandomAuditRule,\r\n setNewTargetLocationAuditRule,\r\n setNewTargetRecordAuditRule,\r\n setNewFollowUpAuditRule\r\n} from \"src/redux/slices/configSlice\"\r\nimport {\r\n Audit_Types,\r\n Audit_TypesObj,\r\n BreadCrumb_Fields\r\n} from \"src/constants/audits\"\r\nimport ReadOnlyLayout from \"../../pages/LookupRoutines/ReadOnlyLayout/ReadOnlyLayout\"\r\nimport { CONFIG_MODULES, DEFAULT_RADIX } from \"src/utils/constants\"\r\nimport {\r\n LookupEditorToConfig,\r\n LookupConfigToEditor,\r\n makeLayoutAllVariableEmpty\r\n} from \"../LookupRoutines/helpers\"\r\nimport { setLayout } from \"../LookupRoutines/layout.service\"\r\nimport {\r\n getBreadcrumbPath,\r\n setAuditFormData,\r\n generatePercentageValues,\r\n formatInteger,\r\n percentageValueConversion,\r\n onAutoCompleteFormChange,\r\n aRFieldNames\r\n} from \"./AuditHelper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\ninterface INewAuditsRule {\r\n reason: string\r\n auditType: string\r\n tag: number\r\n thresholdValue: number\r\n targettedLocationPercentageThreshold: any\r\n targettedLocationRequiredUser: any\r\n targetedRecordPercentageThreshold: any\r\n targetedRecordRequiredUser: any\r\n randomDetailPercentageThreshold: any\r\n randomDetailRequiredUser: any\r\n randomDetail1stAt: any\r\n randomDetail1stNext: any\r\n randomDetailStopAt: any\r\n randomDetailsRepeat: any\r\n IsPerPerson: boolean\r\n followupPercentageThreshold: any\r\n followupRequiredUser: any\r\n followupStartTag: any\r\n followupAccuracy: any\r\n followupNumberOfFollowups: any\r\n followupOriginalReasons: any[]\r\n Instructions: any\r\n AccuracyCalculations: any\r\n}\r\nconst NewAuditRule = () => {\r\n const { t } = useTranslation()\r\n const inputRef = useRef(null)\r\n const configData = useSelector((state: RootState) => state.config)\r\n let targetRecordAuditRuleData = useSelector(\r\n (state: RootState) => state.config.newTargetRecordAuditRule\r\n )\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n let targetLocationAuditRuleData = useSelector(\r\n (state: RootState) => state.config.newTargetLocationAuditRule\r\n )\r\n let randomAuditRuleData = useSelector(\r\n (state: RootState) => state.config.newRandomAuditRule\r\n )\r\n let followUpAuditRuleData = useSelector(\r\n (state: RootState) => state.config.newFollowUpAuditRule\r\n )\r\n const [errorMsg, setErrorMsg] = useState(false)\r\n const [followupOriginalReasons, setFollowupOriginalReasons] = React.useState(\r\n [] as any\r\n )\r\n // read the Reason from all the Audit Types to bind to Original Reasons Field in FollowUp Audits\r\n let origianlReasons = [\r\n ...targetRecordAuditRuleData.map(({ Reason }) => Reason),\r\n ...targetLocationAuditRuleData.map(({ Reason }) => Reason),\r\n ...randomAuditRuleData.map(({ Reason }) => Reason)\r\n ]\r\n const [overallpercentageErrorMsg, setOverallPercentageErrorMsg] =\r\n useState(false)\r\n const dispatch = useAppThunkDispatch()\r\n const history = useHistory()\r\n const [followupAuditTypeFlag, setFollowupAuditTypeFlag] = useState(false)\r\n const [randomAuditTypeFlag, setRandomAuditTypeFlag] = useState(false)\r\n const [targetedLocationAuditTypeFlag, setTargetedLocationAuditTypeFlag] =\r\n useState(false)\r\n const [targetedRecordAuditTypeFlag, setTargetedRecordAuditTypeFlag] =\r\n useState(false)\r\n let search = window.location.search || \"\"\r\n const location: any = useLocation()\r\n let locationState: any = { ...location.state }\r\n let ruledata = locationState?.ruledata\r\n let isEdit = locationState?.isEdit\r\n let editIndex = locationState?.index\r\n let data = locationState?.data\r\n ? JSON.parse(locationState?.data)\r\n : locationState?.data\r\n\r\n const { bConfig } = getBreadcrumbPath(\r\n getTranslations(t, BreadCrumb_Fields.AUDITS_COMPONENT),\r\n getTranslations(t, BreadCrumb_Fields.AUDITRULE_TITLE),\r\n PATH.CREATE_AUDIT.slice(1)\r\n )\r\n const emptyAuditRuleObj = {\r\n reason: \"\",\r\n auditType: \"\",\r\n tag: 0,\r\n thresholdValue: 0,\r\n targettedLocationPercentageThreshold: \"\",\r\n targettedLocationRequiredUser: \"\",\r\n targetedRecordPercentageThreshold: \"\",\r\n targetedRecordRequiredUser: \"\",\r\n randomDetailPercentageThreshold: \"\",\r\n randomDetailRequiredUser: \"\",\r\n randomDetail1stAt: \"\",\r\n randomDetail1stNext: \"\",\r\n randomDetailStopAt: \"\",\r\n randomDetailsRepeat: false,\r\n IsPerPerson: true,\r\n followupPercentageThreshold: \"\",\r\n followupRequiredUser: \"\",\r\n followupStartTag: \"\",\r\n followupAccuracy: \"\",\r\n followupNumberOfFollowups: \"\",\r\n Instructions: [],\r\n followupOriginalReasons: [],\r\n AccuracyCalculations: \"\"\r\n }\r\n\r\n const [form, setForm] = React.useState(\r\n emptyAuditRuleObj as INewAuditsRule\r\n )\r\n\r\n const getBreadcrumbToolBar = () => {\r\n let currentPath: string = getTranslations(t, Translates.Audits)\r\n let variables: any = {\r\n Audits: getTranslations(t, Translates.New_Audit_Rule)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n\r\n useEffect(() => {\r\n if (isEdit || data?.Instructions || editIndex) {\r\n setRuleData()\r\n makeLayoutAllVariableEmpty()\r\n setLayout(\r\n data?.Instructions\r\n ? data?.Instructions\r\n : LookupConfigToEditor(ruledata?.Instructions, true)\r\n )\r\n } else {\r\n setForm(emptyAuditRuleObj)\r\n makeLayoutAllVariableEmpty()\r\n setLayout([])\r\n }\r\n }, [])\r\n\r\n const setRuleData = () => {\r\n let isPerPerson = true\r\n if (\r\n (data && data?.IsPerPerson === false) ||\r\n (ruledata && ruledata?.IsPerPerson === false)\r\n ) {\r\n isPerPerson = false\r\n }\r\n const _ruleItem = {\r\n reason: data?.reason ? data.reason : ruledata?.Reason,\r\n targettedLocationRequiredUser: data?.targettedLocationRequiredUser\r\n ? data.targettedLocationRequiredUser\r\n : ruledata?.AuditUserType,\r\n targettedLocationPercentageThreshold:\r\n data?.targettedLocationPercentageThreshold ||\r\n data?.targettedLocationPercentageThreshold === \"\"\r\n ? data.targettedLocationPercentageThreshold\r\n : percentageValueConversion(ruledata?.PercentThreshold),\r\n auditType: data?.auditType ? data.auditType : ruledata?.AuditType,\r\n tag: 0,\r\n thresholdValue: 0,\r\n targetedRecordPercentageThreshold:\r\n data?.targetedRecordPercentageThreshold ||\r\n data?.targettedLocationPercentageThreshold === \"\"\r\n ? data.targetedRecordPercentageThreshold\r\n : percentageValueConversion(ruledata?.PercentThreshold),\r\n targetedRecordRequiredUser: data?.targetedRecordRequiredUser\r\n ? data.targetedRecordRequiredUser\r\n : ruledata?.AuditUserType,\r\n randomDetailPercentageThreshold:\r\n data?.randomDetailPercentageThreshold ||\r\n data?.randomDetailPercentageThreshold === \"\"\r\n ? data.randomDetailPercentageThreshold\r\n : percentageValueConversion(ruledata?.PercentThreshold),\r\n randomDetailRequiredUser: data?.randomDetailRequiredUser\r\n ? data.randomDetailRequiredUser\r\n : ruledata?.AuditUserType,\r\n randomDetail1stAt: data?.randomDetail1stAt\r\n ? data.randomDetail1stAt\r\n : ruledata?.OneOfFirst,\r\n randomDetail1stNext: data?.randomDetail1stNext\r\n ? data.randomDetail1stNext\r\n : ruledata?.OneOfNext,\r\n randomDetailStopAt: data?.randomDetailStopAt\r\n ? data.randomDetailStopAt || data?.randomDetailStopAt === \"\"\r\n : percentageValueConversion(ruledata?.StopAt),\r\n randomDetailsRepeat: data?.randomDetailsRepeat\r\n ? data?.randomDetailsRepeat\r\n : ruledata?.Repeat,\r\n IsPerPerson: isPerPerson,\r\n followupPercentageThreshold:\r\n data?.followupPercentageThreshold ||\r\n data?.followupPercentageThreshold === \"\"\r\n ? data.followupPercentageThreshold\r\n : percentageValueConversion(ruledata?.PercentThreshold),\r\n followupRequiredUser: data?.followupRequiredUser\r\n ? data.followupRequiredUser\r\n : ruledata?.AuditUserType,\r\n\r\n followupStartTag: data?.followupStartTag\r\n ? data.followupStartTag\r\n : ruledata?.NumberOfFollowups,\r\n followupAccuracy: data?.followupAccuracy\r\n ? data.followupAccuracy\r\n : percentageValueConversion(ruledata?.AccuracyThreshold),\r\n followupNumberOfFollowups: data?.followupNumberOfFollowups\r\n ? data.followupNumberOfFollowups\r\n : percentageValueConversion(ruledata?.StopAt),\r\n Instructions: data?.Instructions\r\n ? data?.Instructions\r\n : LookupConfigToEditor(ruledata?.Condition, true),\r\n AccuracyCalculations: data?.AccuracyCalculations\r\n ? data.AccuracyCalculations\r\n : ruledata?.AccuracyCalculations,\r\n followupOriginalReasons: data?.followupOriginalReasons\r\n ? data.followupOriginalReasons\r\n : ruledata?.OriginalReasons\r\n }\r\n\r\n setForm(_ruleItem)\r\n setRuleTypeControls(data?.auditType ? data.auditType : ruledata?.AuditType)\r\n setFollowupOriginalReasons(\r\n data?.followupOriginalReasons\r\n ? data.followupOriginalReasons\r\n : ruledata?.OriginalReasons\r\n )\r\n }\r\n\r\n const prepeareObjForSave = (newRuleObj, ruleObj, ruleType) => {\r\n if (!overallpercentageErrorMsg && !errorMsg) {\r\n if (ruleObj.length === 0) {\r\n ruleObj = [newRuleObj]\r\n } else {\r\n ruleObj = [...ruleObj, newRuleObj]\r\n }\r\n if (ruleType === Audit_TypesObj.TargetedLocation) {\r\n dispatch(setNewTargetLocationAuditRule(ruleObj))\r\n } else if (form.auditType === Audit_TypesObj.TargetedRecord) {\r\n dispatch(setNewTargetRecordAuditRule(ruleObj))\r\n } else if (form.auditType === Audit_TypesObj.Random) {\r\n dispatch(setNewRandomAuditRule(ruleObj))\r\n } else if (form.auditType === Audit_TypesObj.FollowUp) {\r\n dispatch(setNewFollowUpAuditRule(ruleObj))\r\n }\r\n\r\n setTimeout(() => {\r\n history.push(PATH.AUDITS + search)\r\n })\r\n } else {\r\n // show the error message\r\n inputRef?.current?.focus()\r\n window.scrollTo(0, 0)\r\n }\r\n }\r\n\r\n const checkDuplicate = (newRuleName, newAuditType) => {\r\n let auditTypeRuleObj\r\n switch (newAuditType) {\r\n case Audit_TypesObj.TargetedLocation: {\r\n auditTypeRuleObj = targetLocationAuditRuleData\r\n break\r\n }\r\n case Audit_TypesObj.TargetedRecord: {\r\n auditTypeRuleObj = targetRecordAuditRuleData\r\n break\r\n }\r\n case Audit_TypesObj.FollowUp: {\r\n auditTypeRuleObj = followUpAuditRuleData\r\n break\r\n }\r\n case Audit_TypesObj.Random: {\r\n auditTypeRuleObj = randomAuditRuleData\r\n break\r\n }\r\n }\r\n\r\n let duplicateObj = auditTypeRuleObj.filter(function (itm) {\r\n return newRuleName === itm.Reason && newAuditType === itm.AuditType\r\n })\r\n if (Object.keys(duplicateObj).length) {\r\n setErrorMsg(true)\r\n return true\r\n } else {\r\n return false\r\n }\r\n }\r\n\r\n const deleteDuplicateRultItem = (ruleName, ruleAuditType) => {\r\n if (ruleAuditType === Audit_TypesObj.FollowUp) {\r\n followUpAuditRuleData = followUpAuditRuleData.filter(\r\n f => f.Reason !== ruleName\r\n )\r\n dispatch(setNewFollowUpAuditRule([...followUpAuditRuleData]))\r\n } else if (ruleAuditType === Audit_TypesObj.Random) {\r\n randomAuditRuleData = randomAuditRuleData.filter(\r\n f => f.Reason !== ruleName\r\n )\r\n dispatch(setNewRandomAuditRule([...randomAuditRuleData]))\r\n } else if (ruleAuditType === Audit_TypesObj.TargetedLocation) {\r\n targetLocationAuditRuleData = targetLocationAuditRuleData.filter(\r\n f => f.Reason !== ruleName\r\n )\r\n dispatch(setNewTargetLocationAuditRule([...targetLocationAuditRuleData]))\r\n } else if (ruleAuditType === Audit_TypesObj.TargetedRecord) {\r\n targetRecordAuditRuleData = targetRecordAuditRuleData.filter(\r\n f => f.Reason !== ruleName\r\n )\r\n dispatch(setNewTargetRecordAuditRule([...targetRecordAuditRuleData]))\r\n }\r\n }\r\n const checkIfRuleExisting = (ruleObj, existingRuleName) => {\r\n let idx = ruleObj.findIndex(itm => itm.Reason === existingRuleName)\r\n return idx\r\n }\r\n\r\n const onSaveClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n const Instructions = data?.Instructions?.length\r\n ? LookupEditorToConfig(data?.Instructions)\r\n : LookupEditorToConfig(form.Instructions)\r\n const auditType = data?.auditType ? data.auditType : ruledata?.AuditType\r\n const ruleReason = data?.reason ? data.reason : ruledata?.Reason\r\n const accuracyCalculations = data?.AccuracyCalculations\r\n ? data.AccuracyCalculations\r\n : ruledata?.AccuracyCalculations\r\n let duplicateStatus = false\r\n let checkDuplicateItem = false\r\n if (editIndex || isEdit) {\r\n // check if there is change in the audit type. If yes, delete the old audit type object\r\n if (auditType != form.auditType || ruleReason != form.reason) {\r\n deleteDuplicateRultItem(ruleReason, auditType)\r\n // set the flag to check if the new rule name is exists in new rule\r\n checkDuplicateItem = true\r\n }\r\n\r\n // replace the object\r\n if (form.auditType === Audit_TypesObj.TargetedLocation) {\r\n if (checkDuplicateItem)\r\n duplicateStatus = checkDuplicate(form.reason, form.auditType)\r\n if (!duplicateStatus) {\r\n let newArr = [...targetLocationAuditRuleData]\r\n const _localRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.targettedLocationRequiredUser,\r\n PercentThreshold: formatInteger(\r\n form?.targettedLocationPercentageThreshold\r\n ),\r\n AuditType: form.auditType,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: accuracyCalculations\r\n }\r\n // find if the existing rule is present in the array and return the index\r\n let foundIndex = checkIfRuleExisting(newArr, form.reason)\r\n if (foundIndex != -1)\r\n newArr[foundIndex] = { ...newArr[foundIndex], ..._localRuleItem }\r\n else {\r\n // check the length of the object and replace\r\n if (newArr.length === 0) {\r\n newArr[0] = _localRuleItem\r\n } else {\r\n newArr[targetLocationAuditRuleData?.length] = {\r\n ...newArr[targetLocationAuditRuleData?.length],\r\n ..._localRuleItem\r\n }\r\n }\r\n }\r\n dispatch(setNewTargetLocationAuditRule([...newArr]))\r\n }\r\n } else if (form.auditType === Audit_TypesObj.TargetedRecord) {\r\n if (checkDuplicateItem)\r\n duplicateStatus = checkDuplicate(form.reason, form.auditType)\r\n\r\n if (!duplicateStatus) {\r\n let newArr = [...targetRecordAuditRuleData]\r\n const _localRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.targetedRecordRequiredUser,\r\n PercentThreshold: formatInteger(\r\n form?.targetedRecordPercentageThreshold\r\n ),\r\n AuditType: form.auditType,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: accuracyCalculations\r\n }\r\n // find if the existing rule is present in the array and return the index\r\n let foundIndex = checkIfRuleExisting(newArr, form.reason)\r\n if (foundIndex !== -1)\r\n newArr[foundIndex] = { ...newArr[foundIndex], ..._localRuleItem }\r\n else {\r\n // check the length of the object and replace\r\n if (newArr.length === 0) {\r\n newArr[0] = _localRuleItem\r\n } else {\r\n newArr[targetRecordAuditRuleData?.length] = {\r\n ...newArr[targetRecordAuditRuleData?.length],\r\n ..._localRuleItem\r\n }\r\n }\r\n }\r\n dispatch(setNewTargetRecordAuditRule([...newArr]))\r\n }\r\n } else if (form.auditType === Audit_TypesObj.Random) {\r\n if (checkDuplicateItem)\r\n duplicateStatus = checkDuplicate(form.reason, form.auditType)\r\n if (!duplicateStatus) {\r\n let newArr = [...randomAuditRuleData]\r\n const _localRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.randomDetailRequiredUser,\r\n PercentThreshold: formatInteger(\r\n form?.randomDetailPercentageThreshold\r\n ),\r\n OneOfFirst: form?.randomDetail1stAt\r\n ? parseInt(form?.randomDetail1stAt, DEFAULT_RADIX)\r\n : 0,\r\n OneOfNext: form?.randomDetail1stNext\r\n ? parseInt(form?.randomDetail1stNext, DEFAULT_RADIX)\r\n : 0,\r\n Repeat: form?.randomDetailsRepeat,\r\n StopAt: form?.randomDetailsRepeat\r\n ? formatInteger(form?.randomDetailStopAt)\r\n : null,\r\n AuditType: form.auditType,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: accuracyCalculations,\r\n IsPerPerson: form.IsPerPerson\r\n }\r\n // find if the existing rule is present in the array and return the index\r\n let foundIndex = checkIfRuleExisting(newArr, form.reason)\r\n if (foundIndex !== -1)\r\n newArr[foundIndex] = { ...newArr[foundIndex], ..._localRuleItem }\r\n else {\r\n // check the length of the object and replace\r\n if (newArr.length === 0) {\r\n newArr[0] = _localRuleItem\r\n } else {\r\n newArr[randomAuditRuleData?.length] = {\r\n ...newArr[randomAuditRuleData?.length],\r\n ..._localRuleItem\r\n }\r\n }\r\n }\r\n dispatch(setNewRandomAuditRule([...newArr]))\r\n }\r\n } else if (form.auditType === Audit_TypesObj.FollowUp) {\r\n if (checkDuplicateItem)\r\n duplicateStatus = checkDuplicate(form.reason, form.auditType)\r\n\r\n if (!duplicateStatus) {\r\n let newArr = [...followUpAuditRuleData]\r\n const _localRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.followupRequiredUser,\r\n PercentThreshold: formatInteger(form?.followupPercentageThreshold),\r\n NumberOfFollowups: form?.followupStartTag\r\n ? parseInt(form?.followupStartTag, DEFAULT_RADIX)\r\n : 0,\r\n AccuracyThreshold: formatInteger(form?.followupAccuracy),\r\n StopAt: formatInteger(form?.followupNumberOfFollowups),\r\n AuditType: form.auditType,\r\n OriginalReasons: followupOriginalReasons,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: accuracyCalculations\r\n }\r\n\r\n // find if the existing rule is present in the array and return the index\r\n let foundIndex = checkIfRuleExisting(newArr, form.reason)\r\n if (foundIndex !== -1)\r\n newArr[foundIndex] = { ...newArr[foundIndex], ..._localRuleItem }\r\n else {\r\n // check the length of the object and replace\r\n if (newArr.length === 0) {\r\n newArr[0] = _localRuleItem\r\n } else {\r\n newArr[followUpAuditRuleData?.length] = {\r\n ...newArr[followUpAuditRuleData?.length],\r\n ..._localRuleItem\r\n }\r\n }\r\n }\r\n dispatch(setNewFollowUpAuditRule([...newArr]))\r\n }\r\n }\r\n // redirect to audits page when there is no error\r\n if (!errorMsg && !overallpercentageErrorMsg && !duplicateStatus) {\r\n setTimeout(() => {\r\n history.push(PATH.AUDITS + search)\r\n })\r\n } else {\r\n inputRef?.current?.focus()\r\n window.scrollTo(0, 0)\r\n }\r\n } else {\r\n if (\r\n form.auditType === Audit_TypesObj.TargetedLocation &&\r\n !checkDuplicate(form.reason, form.auditType)\r\n ) {\r\n const _auditTargettedLocationRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.targettedLocationRequiredUser,\r\n PercentThreshold: formatInteger(\r\n form?.targettedLocationPercentageThreshold\r\n ),\r\n AuditType: form.auditType,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: false\r\n }\r\n // targeted loation rule items from config\r\n let _targetedLocationRuleItems = configData.newTargetLocationAuditRule\r\n prepeareObjForSave(\r\n _auditTargettedLocationRuleItem,\r\n _targetedLocationRuleItems,\r\n form.auditType\r\n )\r\n } else if (\r\n form.auditType === Audit_TypesObj.TargetedRecord &&\r\n !checkDuplicate(form.reason, form.auditType)\r\n ) {\r\n const _auditTargetedRecordRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.targetedRecordRequiredUser,\r\n PercentThreshold: formatInteger(\r\n form?.targetedRecordPercentageThreshold\r\n ),\r\n AuditType: form.auditType,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: false\r\n }\r\n // targeted record rule items from config\r\n let _targetedRecordRuleItems = configData.newTargetRecordAuditRule\r\n prepeareObjForSave(\r\n _auditTargetedRecordRuleItem,\r\n _targetedRecordRuleItems,\r\n form.auditType\r\n )\r\n } else if (\r\n form.auditType === Audit_TypesObj.Random &&\r\n !checkDuplicate(form.reason, form.auditType)\r\n ) {\r\n const _randomDefaultRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.randomDetailRequiredUser,\r\n PercentThreshold: formatInteger(\r\n form?.randomDetailPercentageThreshold\r\n ),\r\n OneOfFirst: form?.randomDetail1stAt\r\n ? parseInt(form?.randomDetail1stAt, DEFAULT_RADIX)\r\n : 0,\r\n OneOfNext: form?.randomDetail1stNext\r\n ? parseInt(form?.randomDetail1stNext, DEFAULT_RADIX)\r\n : 0,\r\n Repeat: form?.randomDetailsRepeat,\r\n StopAt: form?.randomDetailsRepeat\r\n ? formatInteger(form?.randomDetailStopAt)\r\n : null,\r\n AuditType: form.auditType,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: false,\r\n IsPerPerson: form.IsPerPerson\r\n }\r\n // random audit rule items from config\r\n let _randomAuditRuleItems = configData.newRandomAuditRule\r\n prepeareObjForSave(\r\n _randomDefaultRuleItem,\r\n _randomAuditRuleItems,\r\n form.auditType\r\n )\r\n } else if (\r\n form.auditType === Audit_TypesObj.FollowUp &&\r\n !checkDuplicate(form.reason, form.auditType)\r\n ) {\r\n const _auditFollowupRuleItem = {\r\n Reason: form.reason,\r\n AuditUserType: form.followupRequiredUser,\r\n PercentThreshold: formatInteger(form?.followupPercentageThreshold),\r\n NumberOfFollowups: form?.followupStartTag\r\n ? parseInt(form?.followupStartTag, DEFAULT_RADIX)\r\n : 0,\r\n AccuracyThreshold: formatInteger(form?.followupAccuracy),\r\n StopAt: formatInteger(form?.followupNumberOfFollowups),\r\n AuditType: form.auditType,\r\n OriginalReasons: followupOriginalReasons,\r\n Condition: Instructions.length ? Instructions[0].Condition : [],\r\n AccuracyCalculations: false\r\n }\r\n // followup audit rule items from config\r\n let _followUpAuditRuleItems = configData.newFollowUpAuditRule\r\n prepeareObjForSave(\r\n _auditFollowupRuleItem,\r\n _followUpAuditRuleItems,\r\n form.auditType\r\n )\r\n }\r\n if (!errorMsg) {\r\n inputRef?.current?.focus()\r\n window.scrollTo(0, 0)\r\n }\r\n }\r\n }\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.AUDITS + search)\r\n })\r\n }\r\n\r\n const setRuleTypeControls = val => {\r\n if (val === Audit_TypesObj.Random) {\r\n setRandomAuditTypeFlag(true)\r\n setFollowupAuditTypeFlag(false)\r\n setTargetedLocationAuditTypeFlag(false)\r\n setTargetedRecordAuditTypeFlag(false)\r\n } else if (val === Audit_TypesObj.FollowUp) {\r\n setRandomAuditTypeFlag(false)\r\n setFollowupAuditTypeFlag(true)\r\n setTargetedLocationAuditTypeFlag(false)\r\n setTargetedRecordAuditTypeFlag(false)\r\n } else if (val === Audit_TypesObj.TargetedLocation) {\r\n setRandomAuditTypeFlag(false)\r\n setFollowupAuditTypeFlag(false)\r\n setTargetedLocationAuditTypeFlag(true)\r\n setTargetedRecordAuditTypeFlag(false)\r\n } else if (val === Audit_TypesObj.TargetedRecord) {\r\n setRandomAuditTypeFlag(false)\r\n setFollowupAuditTypeFlag(false)\r\n setTargetedLocationAuditTypeFlag(false)\r\n setTargetedRecordAuditTypeFlag(true)\r\n }\r\n }\r\n\r\n const getErrorMessage = () => {\r\n if (errorMsg) {\r\n return `${getTranslations(t, Translates.Rule_Reason)} ${\r\n form.reason\r\n } ${getTranslations(t, Translates.is_already_in_use_in)} ${\r\n form.auditType\r\n }`\r\n }\r\n }\r\n\r\n const onFormChange = e => {\r\n const val = e.target.value || \"\"\r\n updateWarnOnTabChangeToStore(true)\r\n setAuditFormData(\r\n e,\r\n setForm,\r\n form,\r\n setErrorMsg,\r\n \"\",\r\n setOverallPercentageErrorMsg,\r\n \"\"\r\n )\r\n // show hide different audit rule sections\r\n if (e.target?.name === \"auditType\") {\r\n setRuleTypeControls(val)\r\n setErrorMsg(false)\r\n }\r\n }\r\n\r\n const handleFollowUpOriginalReasonsChange = (event, values) => {\r\n updateWarnOnTabChangeToStore(true)\r\n const value = values\r\n if (value[value.length - 1] === \"All\") {\r\n setFollowupOriginalReasons(\r\n followupOriginalReasons?.length === origianlReasons?.length\r\n ? []\r\n : origianlReasons\r\n )\r\n return\r\n }\r\n setFollowupOriginalReasons(value)\r\n setForm({\r\n ...form,\r\n [\"followupOriginalReasons\"]: value\r\n })\r\n }\r\n const onPercentageChange = (event, values) => {\r\n updateWarnOnTabChangeToStore(true)\r\n let targetID = event?.target?.id?.split(\"-\")[0]\r\n onAutoCompleteFormChange(setForm, form, targetID, values)\r\n }\r\n return (\r\n <>\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n onFormChange(e)}\r\n error={errorMsg ? true : false}\r\n helperText={getErrorMessage()}\r\n ref={inputRef}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Select_Type)}*\r\n \r\n onFormChange(e)}\r\n value={form?.auditType}\r\n >\r\n {Audit_Types?.map((name: any) => (\r\n \r\n {getTranslations(t, name)}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n {form.auditType === Audit_TypesObj.Random ? (\r\n \r\n \r\n }\r\n onChange={e => onFormChange(e)}\r\n name={aRFieldNames.IsPerPerson}\r\n checked={form?.IsPerPerson}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Per_Person)}\r\n />\r\n {\" \"}\r\n \r\n ) : null}\r\n\r\n \r\n {followupAuditTypeFlag && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n onFormChange(e)}\r\n label={getTranslations(\r\n t,\r\n Translates.Percentage_Threshold\r\n )}\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.User_Type)}\r\n \r\n
    \r\n \r\n onFormChange(e)}\r\n defaultValue={form?.followupRequiredUser}\r\n >\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Customer\r\n )}\r\n />\r\n }\r\n label={getTranslations(t, Translates.WIS)}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n {getTranslations(\r\n t,\r\n Translates.Audit_Types_that_trigger_Follow_Up\r\n )}\r\n \r\n\r\n
    \r\n \r\n option}\r\n renderInput={params => (\r\n \r\n )}\r\n renderOption={(\r\n props,\r\n option,\r\n { selected }\r\n ) => (\r\n
  • \r\n }\r\n style={{ marginRight: 8 }}\r\n checked={selected}\r\n />\r\n {option}\r\n
  • \r\n )}\r\n />\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n onFormChange(e)}\r\n className=\"custom-form-control mr-1\"\r\n />\r\n \r\n \r\n (\r\n onFormChange(e)}\r\n />\r\n )}\r\n />\r\n \r\n {getTranslations(t, Translates.accurate)}\r\n \r\n \r\n \r\n \r\n (\r\n onFormChange(e)}\r\n />\r\n )}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n {randomAuditTypeFlag && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n onFormChange(e)}\r\n label=\"Percentage Threshold\"\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.User_Type)}\r\n \r\n
    \r\n \r\n onFormChange(e)}\r\n defaultValue={\r\n form?.randomDetailRequiredUser\r\n }\r\n >\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Customer\r\n )}\r\n />\r\n }\r\n label={getTranslations(t, Translates.WIS)}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n\r\n \r\n \r\n \r\n \r\n\r\n onFormChange(e)}\r\n />\r\n \r\n \r\n \r\n\r\n onFormChange(e)}\r\n className=\"custom-form-control mr-2\"\r\n />\r\n }\r\n onChange={e => onFormChange(e)}\r\n name={aRFieldNames.randomDetailsRepeat}\r\n checked={form?.randomDetailsRepeat}\r\n />\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Repeat\r\n )}\r\n />\r\n {form?.randomDetailsRepeat ? (\r\n <>\r\n {\" \"}\r\n \r\n \r\n (\r\n onFormChange(e)}\r\n />\r\n )}\r\n />\r\n \r\n \r\n ) : null}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n {targetedLocationAuditTypeFlag && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n onFormChange(e)}\r\n label={getTranslations(\r\n t,\r\n Translates.Percentage_Threshold\r\n )}\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.User_Type)}\r\n \r\n
    \r\n \r\n onFormChange(e)}\r\n defaultValue={\r\n form?.targettedLocationRequiredUser\r\n }\r\n >\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Customer\r\n )}\r\n />\r\n }\r\n label={getTranslations(t, Translates.WIS)}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n {targetedRecordAuditTypeFlag && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n onFormChange(e)}\r\n label={getTranslations(\r\n t,\r\n Translates.Percentage_Threshold\r\n )}\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.User_Type)}\r\n \r\n
    \r\n \r\n onFormChange(e)}\r\n defaultValue={\r\n form?.targetedRecordRequiredUser\r\n }\r\n >\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Customer\r\n )}\r\n />\r\n }\r\n label={getTranslations(t, Translates.WIS)}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n
    \r\n \r\n {(randomAuditTypeFlag ||\r\n targetedLocationAuditTypeFlag ||\r\n targetedRecordAuditTypeFlag ||\r\n followupAuditTypeFlag) && (\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n )}\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n onSaveClick()}\r\n disabled={\r\n (!(form.auditType && form.reason) ? true : false) ||\r\n configTypeFromStore === \"view\"\r\n }\r\n data-testid=\"save\"\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default NewAuditRule\r\n","import BreadCrumb from \"../../BreadCrumb/BreadCrumb\"\r\nimport { Button, Grid, Tooltip } from \"@mui/material\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"../../../../src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nconst OutputFilesToolBar = ({ outputFilesSaveClick, setIsTabChangeCheck }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config.configType\r\n )\r\n let search = window.location.search || \"\"\r\n const history = useHistory()\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `outputFiles`\r\n let variables: any = {\r\n outputFiles: getTranslations(t, Translates.Outputs)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n const handleNewOutputFileClick = () => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n isEdit: false\r\n })\r\n })\r\n }\r\n const outputSaveClick = () => {\r\n outputFilesSaveClick()\r\n }\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Output)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default OutputFilesToolBar\r\n","import { formField } from \"src/utils/constants\"\r\n\r\nexport const DestinationFields = {\r\n IsCustomerPortal: {\r\n name: \"Destination.IsCustomerPortal\",\r\n label: \"CustomerPortal\"\r\n },\r\n Emails: { name: \"Destination.Emails\", label: \"Email\" },\r\n IsFinalReport: {\r\n name: \"Destination.IsFinalReport\",\r\n label: \"Final_Reports_In_Store\"\r\n },\r\n FtpDirectory: { name: \"Destination.FtpDirectory\", label: \"Ftp_Directory\" }\r\n}\r\n\r\nexport const DestinationFields1 = {\r\n IsCustomerPortal: {\r\n name: \"Destination.CustomerPortalCheck\"\r\n },\r\n Emails: { name: \"Destination.Email\" }\r\n}\r\n\r\nexport const DestinationFieldsRender = {\r\n isCustomerPortal: {\r\n fieldType: formField.checkbox,\r\n props: {\r\n name: DestinationFields.IsCustomerPortal.name,\r\n label: DestinationFields.IsCustomerPortal.label,\r\n className: \"light\"\r\n }\r\n },\r\n emails: {\r\n fieldType: formField.multi_auto_dropdown,\r\n props: {\r\n name: DestinationFields.Emails.name,\r\n label: DestinationFields.Emails.label,\r\n options: [],\r\n freeSolo: true\r\n }\r\n },\r\n isFinalReport: {\r\n fieldType: formField.checkbox,\r\n props: {\r\n name: DestinationFields.IsFinalReport.name,\r\n label: DestinationFields.IsFinalReport.label,\r\n className: \"light\"\r\n }\r\n },\r\n ftpDirectory: {\r\n fieldType: formField.auto_dropdown,\r\n props: {\r\n name: DestinationFields.FtpDirectory.name,\r\n label: DestinationFields.FtpDirectory.label,\r\n options: []\r\n }\r\n }\r\n}\r\n","import { formField } from \"src/utils/constants\"\r\nimport { FilesDetailsType } from \"../Types\"\r\nimport { DestinationFields } from \"src/configurationPortal/pages/Components/Destination/Utils/Constant\"\r\n\r\nexport const createEditFieldNames = {\r\n Name: { name: \"Name\", label: \"Name\" },\r\n Description: { name: \"Description\", label: \"Description\" },\r\n FileType: { name: \"FileType\", label: \"File Type\" },\r\n FileName: { name: \"FileName\", label: \"File Name\" },\r\n Reports: { name: \"Reports\", label: \"Reports\" },\r\n Outputs: { name: \"Outputs\", label: \"Outputs\" },\r\n Destination: DestinationFields\r\n}\r\n\r\nexport const createEditOutputBundleDefaultIniValues = {\r\n Name: \"\",\r\n Description: \"\",\r\n FileType: \"\",\r\n Reports: [],\r\n Outputs: [],\r\n Destination: {\r\n IsCustomerPortal: false,\r\n IsFinalReport: false,\r\n Emails: [],\r\n FtpDirectory: []\r\n }\r\n}\r\n\r\nexport const fileTypes = {\r\n Zipped: \"Zipped\",\r\n Individual: \"Individual\"\r\n}\r\nexport const FilesDetailsFields: FilesDetailsType = {\r\n name: {\r\n fieldType: formField.text,\r\n props: {\r\n name: createEditFieldNames.Name.name,\r\n label: createEditFieldNames.Name.label,\r\n required: true\r\n }\r\n },\r\n description: {\r\n fieldType: formField.textarea,\r\n props: {\r\n name: createEditFieldNames.Description.name,\r\n label: createEditFieldNames.Description.label,\r\n multiline: true,\r\n rows: 3,\r\n maxRows: 5\r\n },\r\n childCols: { sm: 5 }\r\n },\r\n fileType: {\r\n fieldType: formField.radio,\r\n props: {\r\n name: createEditFieldNames.FileType.name,\r\n formControl: {\r\n radioGroup: {\r\n row: true,\r\n formControlLabels: [\r\n {\r\n value: fileTypes.Zipped,\r\n label: \"Zipped_File\",\r\n radio: { size: \"medium\" },\r\n className: \"mr-7\"\r\n },\r\n {\r\n value: fileTypes.Individual,\r\n label: \"Individual_File\",\r\n radio: { size: \"medium\" },\r\n className: \"mr-7\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n resetFieldNames: [\r\n {\r\n name: createEditFieldNames.FileName.name,\r\n value: \"\",\r\n isErrOnlyReset: true\r\n }\r\n ]\r\n },\r\n fileTypeZipped: {\r\n fieldType: formField.text,\r\n condition: { name: createEditFieldNames.FileType.name, value: \"Zipped\" },\r\n props: {\r\n name: createEditFieldNames.FileName.name,\r\n label: createEditFieldNames.FileName.label,\r\n required: true\r\n }\r\n }\r\n}\r\n","import { Checkbox, IconButton, Tooltip } from \"@mui/material\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport editIcon from \"src/assets/images/Edit.png\"\r\nimport trashIcon from \"src/assets/images/TrashIcon.svg\"\r\nimport ContentCopyOutlinedIcon from \"@mui/icons-material/ContentCopyOutlined\"\r\nimport { displaySpan } from \"src/configurationPortal/pages/FunctionHelper\"\r\nimport { GetOutputBundlesColumnsDataType } from \"../Types\"\r\nimport AlertConfirmationContent from \"src/configurationPortal/pages/Components/AlertConfirmationContent\"\r\nimport { FilesDetailsFields } from \"../Constants/CreateEditOutputBundleConstant\"\r\n\r\nconst displayDisableCheckbox = (props: any, isChecked: boolean) => {\r\n return (\r\n }\r\n disabled={true}\r\n />\r\n )\r\n}\r\nexport const getColumnsData = ({\r\n copyOutputBundle,\r\n updateOutputBundle,\r\n deleteOutputBundle,\r\n t,\r\n configTypeFromStore\r\n}: GetOutputBundlesColumnsDataType) => {\r\n const commonColumnsData = {\r\n disableFilters: true,\r\n disableSortBy: true,\r\n headerClassName: \"temp_class\",\r\n setWidth: 150,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n }\r\n\r\n return [\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.Output_Name),\r\n accessor: \"Name\"\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.Description),\r\n accessor: \"Description\"\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.Zipped),\r\n accessor: \"FileType\",\r\n Cell: props => {\r\n return displayDisableCheckbox(\r\n props,\r\n props.value ===\r\n FilesDetailsFields.fileType.props.formControl.radioGroup\r\n .formControlLabels[0].value\r\n )\r\n }\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.CustomerPortal),\r\n accessor: \"Destination.IsCustomerPortal\",\r\n Cell: props => {\r\n return displayDisableCheckbox(props, props.value)\r\n }\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.Final_Reports_In_Store),\r\n accessor: \"Destination.IsFinalReport\",\r\n Cell: props => {\r\n return displayDisableCheckbox(props, props.value)\r\n }\r\n },\r\n {\r\n ...commonColumnsData,\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\",\r\n setWidth: 200,\r\n Cell: props => {\r\n const icons = [\r\n {\r\n title: getTranslations(t, Translates.Copy),\r\n clickFn: copyOutputBundle,\r\n icon: (\r\n \r\n ),\r\n disabled: configTypeFromStore === \"view\"\r\n\r\n },\r\n {\r\n title: getTranslations(t, Translates.Edit),\r\n clickFn: updateOutputBundle,\r\n icon: (\r\n \r\n )\r\n },\r\n {\r\n title: getTranslations(t, Translates.Delete),\r\n clickFn: deleteOutputBundle,\r\n icon: (\r\n \r\n ),\r\n disabled: configTypeFromStore === \"view\"\r\n\r\n }\r\n ]\r\n return (\r\n <>\r\n {icons.map((f, i) => {\r\n return (\r\n <>\r\n \r\n f.clickFn(props.row)} disabled={f.disabled}>\r\n {f.icon}\r\n \r\n \r\n \r\n )\r\n })}\r\n \r\n )\r\n }\r\n }\r\n ]\r\n}\r\n\r\nexport const setModalContent = ({ preDeletedRow, t }) => {\r\n let content = `${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} \"${preDeletedRow.Name}\" ${getTranslations(t, Translates.Output_Bundle)}?`\r\n return \r\n}\r\n","import { useEffect, useReducer } from \"react\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { Button, Grid } from \"@mui/material\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport { TableComponentNames } from \"src/constants/globalTableDragDrop\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport {\r\n reducer,\r\n updateWarnOnTabChangeToStore\r\n} from \"src/configurationPortal/pages/helper\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\n\r\nimport GlobalTable from \"src/components/GlobalTable/GlobalTable\"\r\nimport {\r\n getColumnsData,\r\n setModalContent\r\n} from \"./Utils/Helpers/OutputBGridHelper\"\r\nimport { setOutputBundlesRedux } from \"src/redux/slices/ConfigPortal/OutputBundleSlice\"\r\nimport {\r\n ConfigOutputBundlePreDeletedRowType,\r\n ConfigOutputBundleType\r\n} from \"./Utils/Types\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nlet preDeletedRow: ConfigOutputBundlePreDeletedRowType =\r\n {} as ConfigOutputBundlePreDeletedRowType\r\nlet showWarningModal: boolean = false\r\n\r\nconst OutputBundles = () => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n const [, setReload] = useReducer(reducer, false)\r\n const dispatch = useAppThunkDispatch()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const {\r\n outputBundleData: { outputBundlesRedux }\r\n } = ConfigDataHook()\r\n\r\n let search = window.location.search || \"\"\r\n\r\n const createOutputBundle = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.OUTPUT_BUNDLE_CREATE + search)\r\n })\r\n }\r\n\r\n const copyOutputBundle = (row1: { original: ConfigOutputBundleType }) => {\r\n let row = row1.original\r\n const _item: ConfigOutputBundleType = {\r\n ...row,\r\n ...{\r\n Name: `Copy of ${row.Name}`\r\n }\r\n }\r\n\r\n dispatch(setOutputBundlesRedux([...outputBundlesRedux, _item]))\r\n }\r\n const updateOutputBundle = (row1: {\r\n original: ConfigOutputBundleType\r\n index: number\r\n }) => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(\r\n PATH.OUTPUT_BUNDLE_EDIT.replace(\":id\", `${row1.index + 1}`) + search\r\n )\r\n })\r\n }\r\n const deleteOutputBundle = (row1: {\r\n original: ConfigOutputBundleType\r\n index: number\r\n }) => {\r\n showWarningModal = true\r\n preDeletedRow = { ...row1.original, index: row1.index }\r\n setReload(oldVal => !oldVal)\r\n }\r\n\r\n const CallbackConfirmation = (res: boolean) => {\r\n if (res) {\r\n let dt: ConfigOutputBundleType[] = outputBundlesRedux.filter(\r\n (f: ConfigOutputBundleType, inx) => inx !== preDeletedRow.index\r\n )\r\n dispatch(setOutputBundlesRedux([...dt]))\r\n }\r\n showWarningModal = false\r\n preDeletedRow = {} as ConfigOutputBundlePreDeletedRowType\r\n setReload(oldVal => !oldVal)\r\n }\r\n\r\n const columnsData = getColumnsData({\r\n copyOutputBundle: copyOutputBundle,\r\n updateOutputBundle: updateOutputBundle,\r\n deleteOutputBundle: deleteOutputBundle,\r\n t,\r\n configTypeFromStore\r\n })\r\n return (\r\n \r\n \r\n
    {getTranslations(t, Translates.Output_Bundle)}
    \r\n
    \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Output_Bundle)}\r\n \r\n \r\n \r\n \r\n \r\n {showWarningModal && (\r\n \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default OutputBundles\r\n","import OutputFilesToolBar from \"../../../../src/components/ConfigurationPortal/OutputFilesToolBar/OutputFilesToolBar\"\r\nimport {\r\n Alert,\r\n AlertTitle,\r\n Divider,\r\n Grid,\r\n IconButton,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport { Loader } from \"../../../../src/utils/reusables/reusable\"\r\nimport React, { useEffect, useState } from \"react\"\r\n\r\nimport GlobalTableDragDrop from \"../../../../src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport { useAppThunkDispatch } from \"../../../../src/redux/store\"\r\nimport {\r\n setNewReportPrompts,\r\n setOutputFiles,\r\n setSQLQuery,\r\n setOutputSubTotals,\r\n setCurrentOutputFile,\r\n setOutputGrandTotals,\r\n setOutputColumns,\r\n setSQLQueryColumns\r\n} from \"../../../../src/redux/slices/configSlice\"\r\nimport ConfirmDialog from \"../../../../src/components/ConfirmDialog/ConfirmDialog\"\r\nimport Warning from \"@mui/icons-material/Warning\"\r\nimport editIcon from \"src/assets/images/Edit.png\"\r\nimport ContentCopyOutlinedIcon from \"@mui/icons-material/ContentCopyOutlined\"\r\nimport { useHistory, useParams } from \"react-router-dom\"\r\nimport { PATH } from \"../../../../src/constants/paths\"\r\nimport trashIcon from \"src/assets/images/TrashIcon.svg\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { ConfigTabNavigateWarning } from \"src/hooks/ConfigTabNavigateWarning\"\r\nimport { ConfigTabNames, updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport OutputBundles from \"../OutputBundles\"\r\nlet preDeleteRow = {} as any\r\nconst OutputFiles = ({ liftOutputFilesSaveClick }) => {\r\n const { t } = useTranslation()\r\n const {\r\n config: { Outputs, configType: configTypeFromStore }\r\n } = ConfigDataHook()\r\n\r\n const [isTabChangeCheck, setIsTabChangeCheck] = useState(true)\r\n\r\n ConfigTabNavigateWarning({\r\n componentName: ConfigTabNames.Outputs,\r\n isTabChangeCheck: isTabChangeCheck\r\n })\r\n\r\n let search = window.location.search || \"\"\r\n\r\n let { storeId }: { storeId: string } = useParams()\r\n const [renderData, setRenderData] = useState([] as any)\r\n const [loading, setLoading] = useState(false)\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n const history = useHistory()\r\n const dispatch = useAppThunkDispatch()\r\n\r\n useEffect(() => {\r\n dispatch(setCurrentOutputFile({}))\r\n dispatch(setNewReportPrompts([]))\r\n dispatch(setOutputColumns([]))\r\n dispatch(setSQLQuery(\"\"))\r\n dispatch(setOutputSubTotals([]))\r\n dispatch(setOutputGrandTotals([]))\r\n dispatch(setSQLQueryColumns([]))\r\n }, [])\r\n useEffect(() => {\r\n setLoading(true)\r\n setRenderData([...Outputs])\r\n setLoading(false)\r\n }, [Outputs])\r\n\r\n const displaySpan = (props: any) => {\r\n return (\r\n {props.value ? props.value : 0}\r\n )\r\n }\r\n\r\n const copyOutputFile = (row: any) => {\r\n const _item = {\r\n ...row,\r\n ...{\r\n Name: `Copy of ${row.Name}`,\r\n SortOrder: (renderData?.length ?? 0) + 1\r\n }\r\n }\r\n dispatch(setOutputFiles([...renderData, _item]))\r\n }\r\n const EditOutputFile = (data: any) => {\r\n setIsTabChangeCheck(false)\r\n dispatch(setCurrentOutputFile(data))\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n isEdit: true,\r\n data: { ...data },\r\n storeId: storeId\r\n })\r\n })\r\n }\r\n const deleteOutputFile = (row: any) => {\r\n setIsConfirmOpen(true)\r\n preDeleteRow = { ...row }\r\n }\r\n\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.Sort),\r\n accessor: \"SortOrder\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 50,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Output_Name),\r\n accessor: \"Name\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 150,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Description),\r\n accessor: \"Description\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 300,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.File_Name),\r\n accessor: \"FileName\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 200,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n\r\n {\r\n Header: getTranslations(t, Translates.File_Type),\r\n accessor: \"FileType\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 200,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 180,\r\n Cell: props => {\r\n return (\r\n <>\r\n \r\n copyOutputFile(props.row.original)}\r\n data-testid=\"copy-btn\"\r\n disabled={configTypeFromStore === \"view\" ? true : false}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n EditOutputFile(props.row.original)}\r\n data-testid=\"edit-btn\"\r\n >\r\n \r\n {\"edit\r\n \r\n \r\n \r\n \r\n deleteOutputFile(props.row.original)}\r\n data-testid=\"delete-btn\"\r\n disabled={configTypeFromStore === \"view\" ? true : false}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n ],\r\n [renderData, t]\r\n )\r\n\r\n const setContent = () => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {`${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete_the\r\n )} \"${preDeleteRow.Name}\" ${getTranslations(\r\n t,\r\n Translates.record_in_output_and_output_bundles\r\n )}?`}\r\n

    \r\n
    \r\n )\r\n }\r\n const callbackConfirmation = (res: boolean) => {\r\n if (res) {\r\n let dt = renderData.filter(f => f.Name !== preDeleteRow?.Name)\r\n\r\n dt = dt.map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n dispatch(setOutputFiles(dt))\r\n }\r\n setIsConfirmOpen(false)\r\n }\r\n const outputFilesSaveClick = () => {\r\n liftOutputFilesSaveClick(\r\n [\r\n ...Outputs.map((m, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n ],\r\n \"OutputFilesTab\"\r\n )\r\n }\r\n\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n }\r\n return (\r\n <>\r\n \r\n\r\n
    {loading ? Loader() : displayGrid()}
    \r\n \r\n )\r\n}\r\n\r\nexport default OutputFiles\r\n","import {\r\n Alert,\r\n AlertTitle,\r\n Box,\r\n Button,\r\n CircularProgress,\r\n Divider,\r\n Grid,\r\n IconButton,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport GlobalTableDragDrop from \"src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport { TableComponentNames } from \"src/constants/globalTableDragDrop\"\r\nimport EditIcon from \"src/assets/images/Edit.png\"\r\nimport TrashIcon from \"src/assets/images/TrashIcon.svg\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport { Warning } from \"@mui/icons-material\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nconst displaySpan = (props: any) => {\r\n return (\r\n {props.value ? props.value : \"\"}\r\n )\r\n}\r\n\r\nconst commonValues = {\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n}\r\n\r\nconst columnHeadersList: any = [\r\n {\r\n ...{\r\n Header: \"Sort\",\r\n accessor: \"SortOrder\"\r\n },\r\n ...commonValues,\r\n ...{ setWidth: 50 }\r\n },\r\n {\r\n ...{ Header: \"Prompt\", accessor: \"Label[0][en-us]\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: \"Variable Name\", accessor: \"VariableName\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: \"Type\", accessor: \"Type\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: \"Default Value\", accessor: \"DefaultValue\" },\r\n ...commonValues\r\n }\r\n]\r\nexport const columnData = (\r\n handleEditPromptClick,\r\n deletePrompt,\r\n t,\r\n configTypeFromStore\r\n) => {\r\n return [\r\n columnHeadersList?.map(id => {\r\n return {\r\n Header: getTranslations(t, id.Header),\r\n accessor: id.accessor,\r\n headerClassName: id.headerClassName,\r\n disableFilters: id.disableFilters,\r\n disableSortBy: id.disableSortBy,\r\n setWidth: id.setWidth,\r\n Cell: id.Cell\r\n }\r\n }),\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 150,\r\n Cell: props => {\r\n return (\r\n \r\n \r\n \r\n handleEditPromptClick({\r\n ...props.row.original,\r\n ...{ id: props.row.id }\r\n })\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n deletePrompt(props.row.original)}\r\n disabled={configTypeFromStore === \"view\"}\r\n className={`mr-1 ${\r\n configTypeFromStore === \"view\" ? \"disable-img\" : \"pointer\"\r\n }`}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n ].flat(Infinity)\r\n}\r\n\r\nexport const Loader = () => {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nconst setContent = (preDeleteRow, t) => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {`${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} ${preDeleteRow?.Label[0][\"en-us\"]} ${getTranslations(\r\n t,\r\n Translates.Prompt\r\n )}?`}\r\n

    \r\n
    \r\n )\r\n}\r\n\r\nexport const PromptRender = (\r\n loading,\r\n colnsData,\r\n handlePromptClick,\r\n reportPromptData,\r\n newReportPrompts,\r\n alertParams,\r\n configTypeFromStore\r\n) => {\r\n const { isConfirmOpen, callbackConfirmation, preDeleteRow } = alertParams\r\n const { t } = useTranslation()\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n

    {getTranslations(t, Translates.PROMPTS)}

    \r\n
    \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Prompt)}\r\n \r\n \r\n \r\n {loading ? (\r\n \r\n ) : (\r\n \r\n \r\n ) : (\r\n `${getTranslations(\r\n t,\r\n Translates.No_Prompts_data_available\r\n )}`\r\n )\r\n }\r\n >\r\n \r\n )}\r\n \r\n
    \r\n
    \r\n \r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n}\r\n","import { useState } from \"react\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useHistory, useParams } from \"react-router-dom\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport {\r\n setNewReports,\r\n setNewReportPrompts,\r\n setCurrentOutputFile\r\n} from \"src/redux/slices/configSlice\"\r\nimport {\r\n getFieldDelimiterValue,\r\n getRecordDelimiterValue\r\n} from \"../OutputFiles/OutputHelper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { columnData, PromptRender } from \"../PromptHelpers\"\r\nimport { useTranslation } from \"react-i18next\"\r\nlet preDeleteRow = {} as any\r\n\r\nconst OutputPrompts = ({ form, isParentEdit }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n let search = window.location.search || \"\"\r\n const history = useHistory()\r\n const dispatch = useAppThunkDispatch()\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n let { storeId }: { storeId: string } = useParams()\r\n const reportPromptData = useSelector(\r\n (state: RootState) => state.config?.newReportPrompts\r\n )\r\n const newOutputFile = useSelector(\r\n (state: RootState) => state.config?.currentOutputFile\r\n )\r\n const { newReportPrompts } = useSelector((state: RootState) => {\r\n return {\r\n configData: state.config?.configDetails,\r\n newReportPrompts: state.config?.newReportPrompts\r\n }\r\n })\r\n\r\n const deletePrompt = (row: any) => {\r\n setIsConfirmOpen(true)\r\n preDeleteRow = { ...row }\r\n }\r\n const callbackConfirmation = (res: boolean) => {\r\n if (res) {\r\n let dt = reportPromptData\r\n .filter(f => f.Label !== preDeleteRow?.Label)\r\n .map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n\r\n dispatch(setNewReportPrompts(dt))\r\n }\r\n setIsConfirmOpen(false)\r\n }\r\n\r\n const handleNewPromptClick = () => {\r\n dispatch(\r\n setNewReports({\r\n promptsData: reportPromptData\r\n })\r\n )\r\n form = {\r\n ...form,\r\n FieldDelimiter: getFieldDelimiterValue(form),\r\n RecordDelimiter: getRecordDelimiterValue(form)\r\n }\r\n\r\n const destination = {\r\n CustomerPortalCheck: form?.customerPortalCheck,\r\n FtpDirectory: form?.selectedOption,\r\n Email: form?.chips\r\n }\r\n\r\n dispatch(\r\n setCurrentOutputFile({ ...newOutputFile, form, Destination: destination })\r\n )\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_PROMPTS + search, {\r\n isEdit: false,\r\n storeId: storeId,\r\n isParentEdit: isParentEdit,\r\n form: form\r\n })\r\n })\r\n }\r\n\r\n const handleEditPromptClick = (row: any) => {\r\n updateWarnOnTabChangeToStore(false)\r\n dispatch(setCurrentOutputFile(form))\r\n form = {\r\n ...form,\r\n FieldDelimiter: getFieldDelimiterValue(form),\r\n RecordDelimiter: getRecordDelimiterValue(form)\r\n }\r\n const destination = {\r\n CustomerPortalCheck: form?.customerPortalCheck,\r\n FtpDirectory: form?.selectedOption,\r\n Email: form?.chips\r\n }\r\n\r\n dispatch(\r\n setCurrentOutputFile({ ...newOutputFile, form, Destination: destination })\r\n )\r\n let preEditRow = { ...row }\r\n let editPromtObj = {\r\n SortOrder: preEditRow.SortOrder,\r\n Label: preEditRow.Label,\r\n VariableName: preEditRow.VariableName,\r\n Type: preEditRow.Type,\r\n DefaultValue: preEditRow.DefaultValue,\r\n NumberOfDecimals: preEditRow.NumberOfDecimals,\r\n CustomList: preEditRow.CustomList\r\n }\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_PROMPTS + search, {\r\n isEdit: true,\r\n editPromptObj: editPromtObj,\r\n storeId: storeId,\r\n isParentEdit: isParentEdit,\r\n form: form,\r\n index: Number(row?.id)\r\n })\r\n })\r\n }\r\n const columnsData = columnData(\r\n handleEditPromptClick,\r\n deletePrompt,\r\n t,\r\n configTypeFromStore\r\n )\r\n\r\n return (\r\n <>\r\n {PromptRender(\r\n false,\r\n columnsData,\r\n handleNewPromptClick,\r\n reportPromptData,\r\n newReportPrompts,\r\n { isConfirmOpen, callbackConfirmation, preDeleteRow },\r\n configTypeFromStore\r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default OutputPrompts\r\n","import {\r\n FormControl,\r\n InputLabel,\r\n ListItemText,\r\n MenuItem,\r\n Select\r\n} from \"@mui/material\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\n// check the column is available in the SQL Query Columns\r\nexport const displaySource = (props: any, sqlQueryColumns) => {\r\n // check the column is available in the SQL Query Columns\r\n let result = sqlQueryColumns.map(({ ColumnName }) => ColumnName)\r\n\r\n if (result.includes(props.value)) {\r\n return (\r\n \r\n {props.value ? props.value.toString() : \"\"}\r\n \r\n )\r\n } else {\r\n return (\r\n \r\n {props.value ? props.value.toString() : \"\"}\r\n \r\n )\r\n }\r\n}\r\n\r\nexport const getCurrencySymbolField = (form, t, onFormChange, currencies) => {\r\n return (\r\n <>\r\n {\" \"}\r\n {form.DataType === \"DECIMAL\" ? (\r\n \r\n \r\n {getTranslations(t, Translates.Currency)}\r\n \r\n onFormChange(e)}\r\n >\r\n {currencies?.map((name: any, index) => (\r\n \r\n \r\n \r\n \r\n {name.split(\"-\")[0]}\r\n {\" \"}\r\n {name.split(\"-\")[1] ? (\r\n <>\r\n -{\" \"}\r\n \r\n {name.split(\"-\")[1]}\r\n \r\n \r\n ) : null}{\" \"}\r\n {name.split(\"-\")[2] ? (\r\n - {name.split(\"-\")[2]}\r\n ) : null}\r\n \r\n }\r\n />\r\n \r\n \r\n ))}\r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n \r\n )\r\n}\r\n","import {\r\n Button,\r\n Grid,\r\n IconButton,\r\n Tooltip,\r\n Divider,\r\n Checkbox\r\n} from \"@mui/material\"\r\nimport { Loader } from \"../../../../src/utils/reusables/reusable\"\r\nimport React, { useEffect, useState } from \"react\"\r\n\r\nimport GlobalTableDragDrop from \"../../../../src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../../src/redux/store\"\r\nimport { useSelector } from \"react-redux\"\r\nimport editIcon from \"src/assets/images/Edit.png\"\r\nimport TrashIcon from \"src/assets/images/TrashIcon.svg\"\r\nimport { useHistory, useParams } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport {\r\n setCurrentOutputFile,\r\n setOutputColumns\r\n} from \"src/redux/slices/configSlice\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport {\r\n getFieldDelimiterValue,\r\n getRecordDelimiterValue\r\n} from \"../OutputFiles/OutputHelper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { displaySource } from \"../ColumnHelper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getSetContent } from \"../DeleteContentHelper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nlet preDeleteRow = {} as any\r\nconst OutputColumns = ({ form, sortID, isParentEdit }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) =>state.config?.configType\r\n )\r\n const history = useHistory()\r\n const [renderData, setRenderData] = useState([] as any)\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n const [loading, setLoading] = useState(false)\r\n let search = window.location.search || \"\"\r\n const editColumn = useSelector(\r\n (state: RootState) => state.config?.outputColumns\r\n )\r\n\r\n const sqlQueryColumns = useSelector(\r\n (state: RootState) => state.config?.newSQLQueryColumns\r\n )\r\n const dispatch = useAppThunkDispatch()\r\n\r\n let { storeId }: { storeId: string } = useParams()\r\n useEffect(() => {\r\n setLoading(true)\r\n setRenderData(editColumn && [...editColumn])\r\n setLoading(false)\r\n }, [editColumn])\r\n useEffect(() => {\r\n setLoading(true)\r\n setRenderData(editColumn && [...editColumn])\r\n setLoading(false)\r\n }, [sqlQueryColumns])\r\n\r\n const displaySpan = (props: any) => {\r\n return (\r\n \r\n {props.value ? props.value : \"\"}\r\n \r\n )\r\n }\r\n const displayPadding = (props: any) => {\r\n return (\r\n \r\n {\" \"}\r\n {Array.isArray(props.value) ? props.value[0][\"Format\"] : props.value}\r\n \r\n )\r\n }\r\n\r\n const handleNewColumnClick = () => {\r\n form = {\r\n ...form,\r\n FieldDelimiter: getFieldDelimiterValue(form),\r\n RecordDelimiter: getRecordDelimiterValue(form)\r\n }\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.EDIT_COLUMNS + search, {\r\n isEdit: false,\r\n storeId: storeId,\r\n isParentEdit: isParentEdit,\r\n\r\n form: form\r\n })\r\n })\r\n const destination = {\r\n CustomerPortalCheck: form?.customerPortalCheck,\r\n FtpDirectory: form?.selectedOption,\r\n Email: form?.chips\r\n }\r\n const notification = {\r\n Email: form?.notificationChip\r\n }\r\n dispatch(setCurrentOutputFile({ form, Destination: destination,Notification:notification }))\r\n }\r\n\r\n const EditOutputColumn = (data: any) => {\r\n form = {\r\n ...form,\r\n FieldDelimiter: getFieldDelimiterValue(form),\r\n RecordDelimiter: getRecordDelimiterValue(form)\r\n }\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.EDIT_COLUMNS + search, {\r\n isEdit: true,\r\n data: { ...data },\r\n storeId: storeId,\r\n isParentEdit: isParentEdit,\r\n form: form\r\n })\r\n })\r\n const destination = {\r\n CustomerPortalCheck: form?.customerPortalCheck,\r\n FtpDirectory: form?.selectedOption,\r\n Email: form?.chips\r\n }\r\n\r\n dispatch(setCurrentOutputFile({ form, Destination: destination }))\r\n }\r\n\r\n const handleDeleteColumnClick = (row: any) => {\r\n setIsConfirmOpen(true)\r\n preDeleteRow = { ...row }\r\n }\r\n const callbackConfirmation = (res: boolean) => {\r\n if (res) {\r\n let dt = editColumn?.filter(\r\n f => f.ColumnName !== preDeleteRow?.ColumnName\r\n )\r\n dt = dt?.map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n dispatch(setOutputColumns(dt))\r\n setRenderData(dt)\r\n //setReportGrandTotalValues(dt)\r\n }\r\n\r\n setIsConfirmOpen(false)\r\n }\r\n const deleteTextData = () => {\r\n return `${getTranslations(t, Translates.Are_you_sure_you_want_to_delete)} ${\r\n preDeleteRow?.ColumnName\r\n } ${getTranslations(t, Translates.Column)}?`\r\n }\r\n\r\n const setContent = getSetContent(t, deleteTextData())\r\n const handleSupressColumns = rowValue => {\r\n const updatedOuputColumns = editColumn.map(function (column) {\r\n if (column[\"SortOrder\"] <= rowValue[\"SortOrder\"]) {\r\n return { ...column, Suppress: !rowValue[\"Suppress\"] }\r\n }\r\n return column\r\n })\r\n dispatch(setOutputColumns(updatedOuputColumns))\r\n }\r\n const displayCheckbox = (props: any) => {\r\n return (\r\n }\r\n onChange={e => handleSupressColumns(props.row.original)}\r\n />\r\n )\r\n }\r\n\r\n const commonValues = {\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 200,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n }\r\n\r\n const columnHeadersList: any = [\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Sort),\r\n accessor: \"SortOrder\"\r\n },\r\n ...commonValues,\r\n ...{ setWidth: 50 }\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Source),\r\n accessor: \"DataSource\"\r\n },\r\n ...commonValues,\r\n ...{\r\n setWidth: 150,\r\n Cell: props => {\r\n return displaySource(props, sqlQueryColumns)\r\n }\r\n }\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Name),\r\n accessor: \"ColumnName\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Data_Type),\r\n accessor: \"DataType\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Padding),\r\n accessor: \"Padding\"\r\n },\r\n ...commonValues,\r\n ...{\r\n Cell: props => {\r\n return displayPadding(props)\r\n }\r\n }\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Surround_Character),\r\n accessor: \"SurroundCharacter\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.SUPPRESS),\r\n accessor: \"Suppress\"\r\n },\r\n ...commonValues,\r\n ...{\r\n setWidth: 150,\r\n Cell: props => {\r\n return displayCheckbox(props)\r\n }\r\n }\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.ACTIONS), accessor: \"action\" },\r\n ...commonValues,\r\n ...{\r\n setWidth: 180,\r\n Cell: props => {\r\n return (\r\n <>\r\n \r\n {\r\n EditOutputColumn(props.row.original)\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleDeleteColumnClick(props.row.original)}\r\n className={`${\r\n configTypeFromStore === \"view\" ? \"disable-img\" : \"pointer\"\r\n }`}\r\n disabled={configTypeFromStore === \"view\"}\r\n >\r\n \r\n \"delete\"\r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n }\r\n ]\r\n const columnData = [\r\n columnHeadersList?.map(id => {\r\n return {\r\n Header: getTranslations(t, id.Header),\r\n accessor: id.accessor,\r\n headerClassName: id.headerClassName,\r\n disableFilters: id.disableFilters,\r\n disableSortBy: id.disableSortBy,\r\n setWidth: id.setWidth,\r\n Cell: id.Cell\r\n }\r\n })\r\n ].flat(Infinity)\r\n\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n

    {getTranslations(t, Translates.Columns)}

    \r\n
    \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Column)}\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n
    \r\n
    \r\n )\r\n }\r\n return (\r\n <>\r\n {loading ? Loader() : displayGrid()}\r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default OutputColumns\r\n","import { Warning } from \"@mui/icons-material\"\r\nimport { Alert, AlertTitle } from \"@mui/material\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nexport const getSetContent = (t, deleteTextData: string) => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {deleteTextData}\r\n

    \r\n
    \r\n )\r\n}\r\n","export const SubTotalFunctionTypeList = [\r\n \"SUM\",\r\n \"MIN\",\r\n \"MAX\",\r\n \"MEAN\",\r\n \"MEDIAN\",\r\n \"DISTINCTCOUNT\",\r\n \"COUNT\"\r\n]\r\nexport const PlacementTypeList = [\r\n \"AFTER\",\r\n \"BEFORE\"\r\n]\r\nexport const Subtotal_Fields = {\r\n DataGroup: \"DataGroup\",\r\n Label: \"Label\",\r\n Values: \"Values\",\r\n Placement: \"Placement\"\r\n}\r\nexport const OUTPUT_FILE_ACTION_TYPE = {\r\n EDIT: \"EDIT\"\r\n}\r\n\r\nexport const OUTPUT_FILE_COMPONENT_TYPE = {\r\n GRAND_TOTAL: \"GRAND_TOTAL\",\r\n SUB_TOTAL: \"SUB_TOTAL\"\r\n}\r\nexport const REPORT_FILE_COMPONENT_TYPE = {\r\n GRAND_TOTAL: \"GRAND_TOTAL\",\r\n SUB_TOTAL: \"SUB_TOTAL\"\r\n}\r\nexport const OUTPUT_FILE_TYPE = {\r\n SUB_TOTAL: \"createEditOutputSubTotals\"\r\n}\r\nexport const REPORT_FILE_TYPE = {\r\n SUB_TOTAL: \"createEditReportSubTotals\"\r\n}\r\nexport const OUTPUT_FILE_TITLES = {\r\n EditSubTotal: \"Edit Sub Total\",\r\n NewSubTotal: \"New Sub Total\",\r\n EditGrandTotal: \"Edit Grand Total\",\r\n NewGrandTotal: \"New Grand Total\",\r\n EditOutputFile: \"Edit Output\",\r\n NewOutputFile: \"New Output\"\r\n}\r\nexport const REPORT_FILE_TITLES = {\r\n EditSubTotal: \"Edit Sub Total\",\r\n NewSubTotal: \"New Sub Total\",\r\n EditGrandTotal: \"Edit Grand Total\",\r\n NewGrandTotal: \"New Grand Total\"\r\n}\r\n\r\nexport const REPORT_HEADER={\r\n GRAND_TOTALS:\"GRAND TOTALS\",\r\n SUB_TOTALS:\"SUB TOTALS\"\r\n}\r\n\r\nexport const REPORT_ADD_BUTTON={\r\n New_Grand_Total:\"New Grand Total\",\r\n New_Sub_Total:\"New Sub Total\"\r\n}","import { IconButton, Tooltip } from \"@mui/material\"\r\nimport { Subtotal_Fields } from \"src/constants/outputFiles\"\r\nimport TrashIcon from \"../../../../src/assets/images/TrashIcon.svg\"\r\nimport EditIcon from \"../../../../src/assets/images/Edit.png\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nexport const displaySpan = (props: any, sqlQueryColumns) => {\r\n if (props?.column?.Header === \"Data Group\") {\r\n // check the column is available in the SQL Query Columns\r\n let result = sqlQueryColumns?.map(({ ColumnName }) => ColumnName)\r\n\r\n let foundVal = props?.value?.every(function (val) {\r\n return result.indexOf(val) >= 0\r\n })\r\n\r\n if (foundVal) {\r\n return (\r\n \r\n {props.value ? props.value.toString() : \"-\"}\r\n \r\n )\r\n } else {\r\n return (\r\n \r\n {props.value ? props.value.toString() : \"-\"}\r\n \r\n )\r\n }\r\n } else {\r\n return (\r\n \r\n {props.value ? props.value : \"-\"}\r\n \r\n )\r\n }\r\n}\r\n\r\nexport const displayValues = (props: any) => {\r\n return (\r\n <>\r\n {props?.Values?.length > 0\r\n ? props?.Values?.map(p => {\r\n return (\r\n \r\n {p}\r\n \r\n )\r\n })\r\n : \"-\"}\r\n \r\n )\r\n}\r\n\r\nexport const columnDataPrepare = (\r\n columnHeadersList,\r\n sqlQueryColumns,\r\n handleEditTotalClick,\r\n deleteTotal,\r\n t,\r\n configTypeFromStore\r\n) => {\r\n return [\r\n columnHeadersList?.map(id => {\r\n return {\r\n Header: getTranslations(t, id.Header),\r\n accessor: id.accessor,\r\n headerClassName: id.headerClassName,\r\n disableFilters: id.disableFilters,\r\n disableSortBy: id.disableSortBy,\r\n setWidth: id.setWidth,\r\n Cell: props => {\r\n const cellFunc =\r\n id.Header === Subtotal_Fields.Values\r\n ? displayValues(props.row.original)\r\n : displaySpan(props, sqlQueryColumns)\r\n return cellFunc\r\n }\r\n }\r\n }),\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 150,\r\n Cell: props => {\r\n return (\r\n \r\n \r\n handleEditTotalClick(props.row.original)}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n deleteTotal(props.row.original)}\r\n disabled={configTypeFromStore === \"view\" ? true : false}\r\n className={`mx-1 ${\r\n configTypeFromStore === \"view\" ? \"disable-img\" : \"pointer\"\r\n }`}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n ].flat(Infinity)\r\n}\r\n","import { Alert, AlertTitle, Button, Divider, Grid } from \"@mui/material\"\r\n\r\nimport { useEffect, useState } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport GlobalTableDragDrop from \"src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport {\r\n setCurrentOutputFile,\r\n setOutputGrandTotals,\r\n setOutputSubTotals\r\n} from \"src/redux/slices/configSlice\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport Warning from \"@mui/icons-material/Warning\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport { OUTPUT_FILE_COMPONENT_TYPE } from \"src/constants/outputFiles\"\r\nimport { TableComponentNames } from \"src/constants/globalTableDragDrop\"\r\nimport {\r\n getFieldDelimiterValue,\r\n getRecordDelimiterValue\r\n} from \"../OutputFiles/OutputHelper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { columnDataPrepare } from \"./ReportOutputConstant\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nlet preDeleteRow = {} as any\r\nconst OutputFileTotals = ({ form, isParentEdit, component, setForm }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const outputGrandTotals = useSelector(\r\n (state: RootState) => state.config?.outputGrandTotals\r\n )\r\n const outputSubTotals = useSelector(\r\n (state: RootState) => state.config?.outputSubTotals\r\n )\r\n\r\n const newOutputFile = useSelector(\r\n (state: RootState) => state.config?.currentOutputFile\r\n )\r\n const sqlQueryColumns = useSelector(\r\n (state: RootState) => state.config?.newSQLQueryColumns\r\n )\r\n let search = window.location.search || \"\"\r\n const history = useHistory()\r\n const dispatch = useAppThunkDispatch()\r\n const location: any = useLocation()\r\n let locationState: any = { ...location.state }\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n const [outputGrandTotalValues, setOutputGrandTotalValues] = useState(\r\n [] as any\r\n )\r\n const [outputSubTotalValues, setOutputSubTotalValues] = useState([] as any)\r\n let rows: any\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL) {\r\n setOutputGrandTotalValues(outputGrandTotals && [...outputGrandTotals])\r\n } else {\r\n setOutputSubTotalValues(outputSubTotals && [...outputSubTotals])\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [outputGrandTotals, outputSubTotals])\r\n\r\n const deleteTotal = (row: any) => {\r\n setIsConfirmOpen(true)\r\n preDeleteRow = { ...row }\r\n }\r\n const callbackConfirmation = (res: boolean) => {\r\n const destination = {\r\n CustomerPortalCheck: form.customerPortalCheck,\r\n FtpDirectory: form.selectedOption,\r\n Email: form.chips\r\n }\r\n const notification={\r\n Email:[]\r\n }\r\n if (res) {\r\n if (component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL) {\r\n let dt = rows\r\n ?.filter(f => f.Label !== preDeleteRow.Label)\r\n .map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n let grandTotalConfig = {\r\n ...newOutputFile,\r\n form,\r\n Destination: destination,\r\n GrandTotals: dt\r\n }\r\n let grandTotalConfigVal = {\r\n ...form,\r\n GrandTotals: dt\r\n }\r\n setForm(grandTotalConfigVal)\r\n dispatch(setCurrentOutputFile(grandTotalConfig))\r\n dispatch(setOutputGrandTotals(dt))\r\n setOutputGrandTotalValues(dt)\r\n } else {\r\n let dt = rows\r\n ?.filter(f => f.DataGroup !== preDeleteRow.DataGroup)\r\n .map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n let subTotalConfig = {\r\n ...newOutputFile,\r\n form,\r\n Destination: destination,\r\n SubTotals: dt\r\n }\r\n let subTotalConfigVal = {\r\n ...form,\r\n SubTotals: dt\r\n }\r\n setForm(subTotalConfigVal)\r\n dispatch(setCurrentOutputFile(subTotalConfig))\r\n dispatch(setOutputSubTotals(dt))\r\n setOutputSubTotalValues(dt)\r\n }\r\n }\r\n setIsConfirmOpen(false)\r\n }\r\n const deleteText = () => {\r\n return `${getTranslations(t, Translates.Are_you_sure_you_want_to_delete)} ${\r\n preDeleteRow.Label\r\n } ${\r\n component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL\r\n ? getTranslations(t, Translates.Grand)\r\n : getTranslations(t, Translates.Sub)\r\n } Total?`\r\n }\r\n const setContent = () => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {deleteText()}\r\n

    \r\n
    \r\n )\r\n }\r\n const handleNewTotalClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n form = {\r\n ...form,\r\n FieldDelimiter: getFieldDelimiterValue(form),\r\n RecordDelimiter: getRecordDelimiterValue(form)\r\n }\r\n const destination = {\r\n CustomerPortalCheck: form.customerPortalCheck,\r\n FtpDirectory: form.selectedOption,\r\n Email: form.chips\r\n }\r\n\r\n dispatch(\r\n setCurrentOutputFile({ ...newOutputFile, form, Destination: destination })\r\n )\r\n setTimeout(() => {\r\n if (component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL) {\r\n dispatch(setOutputGrandTotals(outputGrandTotals))\r\n\r\n history.push(PATH.CREATE_EDIT_OUTPUT_GRAND_TOTALS + search, {\r\n isParentEdit: isParentEdit,\r\n isGrandTotalEdit: false,\r\n form: form,\r\n data: locationState.data\r\n })\r\n } else {\r\n dispatch(setOutputSubTotals(outputSubTotals))\r\n history.push(PATH.CREATE_EDIT_OUTPUT_SUBTOTALS + search, {\r\n isParentEdit: isParentEdit,\r\n isSubTotalEdit: false,\r\n form: form,\r\n data: locationState.data\r\n })\r\n }\r\n })\r\n }\r\n\r\n const handleEditTotalClick = (row: any) => {\r\n const destination = {\r\n CustomerPortalCheck: form.customerPortalCheck,\r\n FtpDirectory: form.selectedOption,\r\n Email: form.chips\r\n }\r\n dispatch(setCurrentOutputFile(form))\r\n form = {\r\n ...form,\r\n FieldDelimiter: getFieldDelimiterValue(form),\r\n RecordDelimiter: getRecordDelimiterValue(form)\r\n }\r\n updateWarnOnTabChangeToStore(false)\r\n if (component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL) {\r\n dispatch(setOutputGrandTotals(outputGrandTotals))\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_OUTPUT_GRAND_TOTALS + search, {\r\n isParentEdit: isParentEdit,\r\n isGrandTotalEdit: true,\r\n grandTotalData: { ...row },\r\n form: form,\r\n data: locationState.data\r\n })\r\n })\r\n dispatch(\r\n setCurrentOutputFile({\r\n ...newOutputFile,\r\n Destination: destination,\r\n SubTotals: outputSubTotals,\r\n GrandTotals: outputGrandTotals\r\n })\r\n )\r\n } else {\r\n dispatch(setOutputSubTotals(outputSubTotals))\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_OUTPUT_SUBTOTALS + search, {\r\n isParentEdit: isParentEdit,\r\n isSubTotalEdit: true,\r\n subTotalData: { ...row },\r\n form: form,\r\n data: locationState.data\r\n })\r\n })\r\n dispatch(\r\n setCurrentOutputFile({\r\n ...newOutputFile,\r\n Destination: destination,\r\n SubTotals: outputSubTotals,\r\n GrandTotals: outputGrandTotals\r\n })\r\n )\r\n }\r\n }\r\n const commonValues = {\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250\r\n }\r\n\r\n const columnHeadersList: any = [\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Sort),\r\n accessor: \"SortOrder\"\r\n },\r\n ...commonValues,\r\n ...{ setWidth: 2 }\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Data_Group),\r\n accessor: \"DataGroup\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.Label), accessor: \"Label\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.Values), accessor: \"Values\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Placement),\r\n accessor: \"Placement\"\r\n },\r\n ...commonValues\r\n }\r\n ]\r\n const columnHeadersGrandTotalList: any = [\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Sort),\r\n accessor: \"SortOrder\"\r\n },\r\n ...commonValues,\r\n ...{ setWidth: 2 }\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.Label), accessor: \"Label\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.Values), accessor: \"Values\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Placement),\r\n accessor: \"Placement\"\r\n },\r\n ...commonValues\r\n }\r\n ]\r\n let columnsData = columnDataPrepare(\r\n columnHeadersList,\r\n sqlQueryColumns,\r\n handleEditTotalClick,\r\n deleteTotal,\r\n t,\r\n configTypeFromStore\r\n )\r\n let columnsGrandTotalData = columnDataPrepare(\r\n columnHeadersGrandTotalList,\r\n sqlQueryColumns,\r\n handleEditTotalClick,\r\n deleteTotal,\r\n t,\r\n configTypeFromStore\r\n )\r\n\r\n const getRowItems = sub => {\r\n let row = {\r\n ...sub,\r\n Values: sub.AggregateConfigs?.map(v => {\r\n if (v.Function && v.DataSource) {\r\n return `${v.Function} (${v.DataSource})`\r\n } else {\r\n return \"-\"\r\n }\r\n })\r\n }\r\n return row\r\n }\r\n if (component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL) {\r\n rows = outputGrandTotalValues?.map(sub => {\r\n return getRowItems(sub)\r\n })\r\n } else {\r\n rows = outputSubTotalValues?.map(sub => {\r\n return getRowItems(sub)\r\n })\r\n }\r\n\r\n const displayGrid = () => {\r\n if (component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL) {\r\n return (\r\n \r\n \r\n \r\n )\r\n } else {\r\n return (\r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n

    \r\n {component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL\r\n ? getTranslations(t, Translates.GRAND_TOTALS)\r\n : getTranslations(t, Translates.SUB_TOTALS)}\r\n

    \r\n
    \r\n \r\n \r\n {\" \"}\r\n {component === OUTPUT_FILE_COMPONENT_TYPE.GRAND_TOTAL\r\n ? getTranslations(t, Translates.New_Grand_Total)\r\n : getTranslations(t, Translates.New_Sub_Total)}\r\n \r\n \r\n \r\n {displayGrid()}\r\n \r\n
    \r\n
    \r\n \r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default OutputFileTotals\r\n","import { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nexport const getEmailTooltipText = t => {\r\n return getTranslations(t, Translates.Email_Text)\r\n}\r\nexport const getDestinationText = t => {\r\n return getTranslations(t, Translates.Destination)\r\n}\r\nexport const getCustomerPortalText = t => {\r\n return getTranslations(t, Translates.Customer_Portal)\r\n}\r\nexport const getNotificationText = t => {\r\n return getTranslations(t, Translates.Notification)\r\n}\r\nexport const getFtpDirectoryText = t => {\r\n return getTranslations(t, Translates.Ftp_Directory)\r\n}\r\nexport const getEmailText = t => {\r\n return getTranslations(t, Translates.Email)\r\n}\r\nexport const getInvalidEmailText = t => {\r\n return getTranslations(t, Translates.Invalid_Email)\r\n}\r\nexport const generateReportData = (FieldDetails, watch, form) => {\r\n let reportData = {}\r\n\r\n for (const fieldDetail of FieldDetails) {\r\n const fieldName = fieldDetail.name;\r\n reportData[fieldName] = watch(fieldName);\r\n }\r\n let Destination = {\r\n CustomerPortalCheck: form?.customerPortalCheck,\r\n FtpDirectory: form?.selectedOption,\r\n Email: form?.chips\r\n }\r\n let Notification= { Email: [] }\r\n reportData = { ...reportData, Destination,Notification }\r\n\r\n return reportData\r\n}\r\n","import React, { useEffect, useState } from \"react\"\r\nimport TextField from \"@mui/material/TextField\"\r\nimport Chip from \"@mui/material/Chip\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { Autocomplete } from \"@mui/material\"\r\nimport { validateEmail } from \"../helper\"\r\nimport { getInvalidEmailText } from \"src/configurationPortal/pages/Components/ReportFileDestinationHelper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { KEY_CODE } from \"../constants\"\r\nconst TextFieldChips = ({ getChips, form, isValid, setIsValid }) => {\r\n const [inputValue, setInputValue] = useState(\"\")\r\n const [chips, setChips] = useState([]) as any\r\n const { t } = useTranslation()\r\n\r\n const validateChips = chipsArray => {\r\n let hasInvalidChip = false\r\n for (let chip of chipsArray) {\r\n if (!validateEmail(chip)) {\r\n hasInvalidChip = true\r\n break\r\n }\r\n }\r\n setIsValid(!hasInvalidChip)\r\n }\r\n useEffect(() => {\r\n setChips(form?.chips || [])\r\n validateChips(form?.chips || [])\r\n }, [form])\r\n\r\n const handleKeyDown = event => {\r\n if (\r\n (event.key === KEY_CODE?.ENTER ||\r\n event.key === KEY_CODE?.TAB ||\r\n event.key === KEY_CODE?.COMMA) &&\r\n inputValue !== \"\"\r\n ) {\r\n event.preventDefault()\r\n addChip()\r\n } else if (event.key === KEY_CODE?.BACKSPACE && inputValue === \"\") {\r\n event.preventDefault()\r\n removeLastChip()\r\n }\r\n }\r\n\r\n const removeLastChip = () => {\r\n const updatedChips = [...chips]\r\n const removedChip = updatedChips.pop()\r\n setChips(updatedChips)\r\n getChips(updatedChips)\r\n if (!validateEmail(removedChip)) {\r\n setIsValid(true)\r\n }\r\n validateChips(updatedChips)\r\n }\r\n\r\n const addChip = () => {\r\n const _temp = inputValue?.trim()?.split(KEY_CODE?.COMMA)\r\n const trimmedValue = inputValue.trim()\r\n if (trimmedValue !== \"\") {\r\n const updatedChips: any =\r\n _temp?.length > 1 ? [...chips, ..._temp] : [...chips, trimmedValue]\r\n setChips(updatedChips)\r\n getChips(updatedChips)\r\n setInputValue(\"\")\r\n validateChips(updatedChips)\r\n }\r\n }\r\n\r\n const handleChipDelete = index => {\r\n const updatedChips = [...chips]\r\n const removedChip = updatedChips.splice(index, 1)[0]\r\n setChips(updatedChips)\r\n getChips(updatedChips)\r\n if (!validateEmail(removedChip)) {\r\n setIsValid(true)\r\n }\r\n validateChips(updatedChips)\r\n }\r\n\r\n return (\r\n
    \r\n {\r\n setChips(newValue || [])\r\n validateChips(newValue || [])\r\n }}\r\n inputValue={inputValue}\r\n onInputChange={(event, newInputValue) => {\r\n setIsValid(true)\r\n setInputValue(newInputValue)\r\n }}\r\n renderTags={(value, getTagProps) =>\r\n value.map((option, index) => (\r\n handleChipDelete(index)}\r\n deleteIcon={}\r\n />\r\n ))\r\n }\r\n renderInput={params => (\r\n
    \r\n \r\n
    \r\n )}\r\n />\r\n {!isValid &&
    {getInvalidEmailText(t)}
    }\r\n
    \r\n )\r\n}\r\n\r\nexport default TextFieldChips\r\n","import {\r\n Autocomplete,\r\n Checkbox,\r\n Divider,\r\n FormControl,\r\n FormControlLabel,\r\n Grid,\r\n TextField,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport { useEffect, useState } from \"react\"\r\nimport { ConfigService } from \"../../../../src/service/config.service\"\r\nimport TextFieldChips from \"../../../../src/utils/reusables/TextFieldChips\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport InfoOutlinedIcon from \"@mui/icons-material/InfoOutlined\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport {\r\n getCustomerPortalText,\r\n getDestinationText,\r\n getEmailText,\r\n getEmailTooltipText,\r\n getFtpDirectoryText\r\n} from \"./ReportFileDestinationHelper\"\r\nimport InfoIcon from \"@mui/icons-material/Info\"\r\nimport shortid from \"shortid\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nconst ReportFileDestination = ({\r\n form,\r\n setSelectedOption,\r\n setChips,\r\n setCustomerPortalCheck,\r\n isValid,\r\n setIsValid\r\n}) => {\r\n const customerList = useSelector(\r\n (state: RootState) => state.settings?.customers\r\n )\r\n const selectedCustomerList = customerList?.filter((c: any) => c.selected)\r\n const configService = new ConfigService()\r\n const { t } = useTranslation()\r\n const [connections, setConnections] = useState([] as any)\r\n const emailTooltipText = getEmailTooltipText(t)\r\n\r\n const handleCheckboxChange = event => {\r\n setCustomerPortalCheck(event.target.checked)\r\n }\r\n const handleChange = (_event, value) => {\r\n setSelectedOption(value)\r\n }\r\n useEffect(() => {\r\n setSelectedOption(form.selectedOption)\r\n }, [])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted && customerList) {\r\n GetConnectionData()\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [customerList])\r\n const GetConnectionData = async () => {\r\n try {\r\n const payload = selectedCustomerList.map(i => i.idCustomer)\r\n await configService.getConnectionData(payload).then((temp: any) => {\r\n let ftpConnections = temp.data || []\r\n ftpConnections = ftpConnections.map(ftp => ftp.name)\r\n ftpConnections.unshift(\"None\")\r\n setConnections(ftpConnections)\r\n })\r\n } catch (_error) {\r\n return _error\r\n }\r\n return true\r\n }\r\n return (\r\n \r\n \r\n \r\n

    {getDestinationText(t)}

    \r\n \r\n \r\n }\r\n />\r\n }\r\n label={getCustomerPortalText(t)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {getEmailText(t)}\r\n
    \r\n\r\n {emailTooltipText.split(\"\\n\").map((line, index) => (\r\n
    \r\n {line}\r\n
    \r\n ))}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n item}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default ReportFileDestination\r\n","import {\r\n Divider,\r\n Grid,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport TextFieldChips from \"../../../../src/utils/reusables/TextFieldChips\"\r\nimport InfoOutlinedIcon from \"@mui/icons-material/InfoOutlined\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport {\r\n getEmailText,\r\n getNotificationText\r\n} from \"./ReportFileDestinationHelper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport InfoIcon from \"@mui/icons-material/Info\"\r\nimport shortid from \"shortid\"\r\nconst NotificationEmail = ({\r\n form,\r\n setChips,\r\n isValid,\r\n setIsValid\r\n}) => {\r\n const { t } = useTranslation()\r\n return (\r\n \r\n \r\n \r\n

    {getNotificationText(t)}

    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Email_Address)}\r\n
    \r\n\r\n {getTranslations(t, Translates.Email_Address).split(\"\\n\").map((line, index) => (\r\n
    \r\n {line}\r\n
    \r\n ))}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default NotificationEmail\r\n","import {\r\n Grid,\r\n FormControl,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n Button,\r\n TextField,\r\n FormControlLabel,\r\n Checkbox,\r\n Divider\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport BreadCrumb from \"../../../components/BreadCrumb/BreadCrumb\"\r\nimport {\r\n setOutputColumns,\r\n setCurrentOutputFile,\r\n setNewReportPrompts,\r\n setOutputFiles,\r\n setSQLQuery,\r\n setOutputSubTotals,\r\n setOutputGrandTotals,\r\n setOutputDestination\r\n} from \"../../../redux/slices/configSlice\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../redux/store\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport { useSelector } from \"react-redux\"\r\nimport React, { useState, useEffect, useReducer } from \"react\"\r\nimport { PATH } from \"../../../constants/paths\"\r\nimport { getTranslations, setWeekFieldError } from \"src/utils/helper\"\r\nimport {\r\n CONFIG_MODULES,\r\n EDIT_TYPE,\r\n FILE_TYPE,\r\n ACEEDITOR_BACKGROUND_COLORS,\r\n FILE_TYPE_VALUES,\r\n FIELD_DELIMITER,\r\n RECORD_DELIMITER\r\n} from \"src/utils/constants\"\r\n\r\nimport OutputPrompts from \"./OutputPrompts\"\r\nimport AceEditorC from \"src/components/AceEditorC/AceEditorC\"\r\nimport OutputColumns from \"./OutputColumns\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport {\r\n OUTPUT_FILE_COMPONENT_TYPE,\r\n OUTPUT_FILE_TITLES\r\n} from \"src/constants/outputFiles\"\r\nimport OutputFileTotals from \"../Components/OutputFileTotals\"\r\nimport { API_RESPONSE } from \"../../../utils/constants\"\r\nimport { SqlTestEditorService } from \"../../../service/sqlTestEditor.service\"\r\nimport { setSQLQueryColumns } from \"src/redux/slices/configSlice\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport {\r\n checkRequiredFieldErrorCheck,\r\n ConfigTabNames,\r\n makeClearQueryToExecute,\r\n reducer,\r\n updateWarnOnTabChangeToStore\r\n} from \"../helper\"\r\nimport ReportFileDestination from \"../Components/ReportFileDestination\"\r\nimport { alertMsgShow, emptyAlert } from \"../FunctionHelper\"\r\nimport NotificationEmail from \"../Components/NotificationEmail\"\r\ninterface INewOutputFile {\r\n Name: string\r\n Description: string\r\n FileName: string\r\n ColumnsToSuppress: string\r\n FileType: string\r\n FieldDelimiter: string\r\n RecordDelimiter: string\r\n HasHeaderRecord: boolean\r\n Prompts?: any\r\n SQL?: any\r\n SubTotals: any\r\n GrandTotals: any\r\n OtherFieldDelimiter: string\r\n OtherRecordDelimiter: string\r\n AsciiCharValue: any\r\n Destination: any\r\n Notification:any\r\n}\r\n\r\nlet alertVisible: boolean = false\r\nlet alertMsg = emptyAlert\r\nconst CreateEditOutputFiles = () => {\r\n const { t } = useTranslation()\r\n const location = useLocation() as any\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const [sqlQuery, setSqlQuery] = useState(\"\")\r\n const [, setReload] = useReducer(reducer, false)\r\n const queryfromCreateEditForm = location.state?.showLatestQueryValue\r\n let search = window.location.search || \"\"\r\n const locationState = { ...location.state }\r\n const [customerPortalCheck, setCustomerPortalCheck] = useState(true)\r\n const [selectedOption, setSelectedOption] = useState(\"None\" as any)\r\n const [chips, setChips] = useState([] as any)\r\n const [notificationChips, setnotificationChips] = useState([] as any)\r\n let isEdit = locationState.isEdit\r\n const [form, setForm] = React.useState({\r\n Name: \"\",\r\n Description: \"\",\r\n FileName: \"\",\r\n ColumnsToSuppress: \"\",\r\n FileType: \"\",\r\n RecordDelimiter: \"{CR}{LF}\",\r\n FieldDelimiter: \"\",\r\n HasHeaderRecord: false,\r\n SubTotals: [],\r\n GrandTotals: [],\r\n OtherFieldDelimiter: \"\",\r\n OtherRecordDelimiter: \"\",\r\n AsciiCharValue: \"\",\r\n Destination: {},\r\n Notification:{}\r\n } as INewOutputFile)\r\n const [errorMsg, setErrorMsg] = useState(false)\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n Name: \"\",\r\n FileName: \"\"\r\n })\r\n let sortID = location.pathname?.split(\"/\")[3]\r\n const dispatch = useAppThunkDispatch()\r\n const history = useHistory()\r\n const configData = useSelector((state: RootState) => state.config)\r\n const newOutputFile = useSelector(\r\n (state: RootState) => state.config?.currentOutputFile\r\n )\r\n\r\n const outputColumn = useSelector(\r\n (state: RootState) => state.config?.outputColumns\r\n )\r\n const sqlQueryColumns = useSelector(\r\n (state: RootState) => state.config?.newSQLQueryColumns\r\n )\r\n const [isValid, setIsValid] = useState(true)\r\n const [isNotificationValid, setIsNotificationValid] = useState(true)\r\n const [loading, setLoading] = useState(false)\r\n const testSQLService = new SqlTestEditorService()\r\n useEffect(() => {\r\n const destination = newOutputFile?.Destination\r\n const locationStateDestination = locationState.data?.Destination\r\n const notification= newOutputFile?.Notification\r\n const notificationlocationStateDestination = locationState.data?.Notification\r\n if (destination && Object.keys(destination).length) {\r\n setCustomerPortalCheck(destination.CustomerPortalCheck)\r\n setSelectedOption(destination.FtpDirectory)\r\n setChips(destination.Email)\r\n } else if (locationState.data) {\r\n setCustomerPortalCheck(locationStateDestination?.CustomerPortalCheck)\r\n setSelectedOption(locationStateDestination?.FtpDirectory)\r\n setChips(locationStateDestination?.Email)\r\n }\r\n if (notification && Object.keys(notification).length) {\r\n setnotificationChips(notification.Email)\r\n } else if (locationState.data) {\r\n setnotificationChips(notificationlocationStateDestination?.Email)\r\n }\r\n //eslint-disable-next-line\r\n }, [newOutputFile])\r\n useEffect(() => {\r\n setForm({\r\n ...locationState.data,\r\n FieldDelimiter: setFieldDelimiterValue(),\r\n RecordDelimiter: setRecordDelimiterValue(),\r\n HasHeaderRecord: locationState.data?.HasHeaderRecord,\r\n OtherFieldDelimiter: locationState.data?.FieldDelimiter,\r\n OtherRecordDelimiter: locationState.data?.RecordDelimiter\r\n })\r\n\r\n //eslint-disable-next-line\r\n }, [locationState.data])\r\n\r\n const formAndReduxVariableSet = () => {\r\n setForm({\r\n ...locationState.data,\r\n FieldDelimiter: setFieldDelimiterValue(),\r\n RecordDelimiter: setRecordDelimiterValue(),\r\n HasHeaderRecord: locationState.data?.HasHeaderRecord,\r\n OtherFieldDelimiter: locationState.data?.FieldDelimiter,\r\n OtherRecordDelimiter: locationState.data?.RecordDelimiter\r\n })\r\n dispatch(setNewReportPrompts(locationState.data?.Prompts || []))\r\n dispatch(setOutputColumns(locationState.data?.Columns || []))\r\n dispatch(setOutputSubTotals(locationState.data?.SubTotals || []))\r\n dispatch(setOutputGrandTotals(locationState.data?.GrandTotals || []))\r\n dispatch(setOutputDestination(locationState.data?.Destination || {}))\r\n\r\n let locSQL = \"\"\r\n\r\n if (locationState.data) {\r\n if (locationState.data.RawSQL) {\r\n locSQL = locationState.data.RawSQL\r\n } else if (locationState.data.SQL) {\r\n locSQL = locationState.data.SQL\r\n }\r\n }\r\n dispatch(setSQLQuery(locSQL))\r\n }\r\n useEffect(() => {\r\n const locationState = { ...location.state }\r\n setLoading(true)\r\n\r\n if (locationState.data && configData?.newSQLQuery) {\r\n updateWarnOnTabChangeToStore(true)\r\n }\r\n\r\n if (locationState.isEdit === true) {\r\n formAndReduxVariableSet()\r\n }\r\n\r\n if (newOutputFile && Object.keys(newOutputFile).length > 0) {\r\n dispatch(setOutputSubTotals(newOutputFile.SubTotals || []))\r\n dispatch(setOutputGrandTotals(newOutputFile.GrandTotals || []))\r\n dispatch(setOutputDestination(newOutputFile.Destination || {}))\r\n }\r\n\r\n getSQLQueryColumns()\r\n setLoading(false)\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n useEffect(() => {\r\n setSqlQuery(configData?.newSQLQuery)\r\n }, [configData?.newSQLQuery])\r\n\r\n const getSQLQueryColumns = () => {\r\n if (locationState.data?.SQL && !sqlQueryColumns?.length) {\r\n const Prompts = configData?.newReportPrompts?.length\r\n ? configData.newReportPrompts\r\n : locationState.data.Prompts || []\r\n\r\n const queryToBeTested = makeClearQueryToExecute(\r\n locationState.data.SQL,\r\n Prompts\r\n )\r\n testSQLService\r\n .postSqlTestEditorValueForVerify(queryToBeTested)\r\n .then(res => {\r\n if (Number(res.status) === Number(API_RESPONSE.SUCCESS)) {\r\n dispatch(setSQLQueryColumns(res.data))\r\n }\r\n })\r\n .catch(err => err)\r\n }\r\n }\r\n\r\n const getLookupBreadcrumb = () => {\r\n if (locationState.isEdit) {\r\n return OUTPUT_FILE_TITLES.EditOutputFile\r\n } else {\r\n return OUTPUT_FILE_TITLES.NewOutputFile\r\n }\r\n }\r\n\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `outputFiles`\r\n let variables: any = {\r\n outputFiles: getTranslations(t, getLookupBreadcrumb())\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value || \"\"\r\n\r\n if (e.target.name === \"Name\") {\r\n const _OutputName = configData.Outputs.map(m => m.Name)\r\n if (_OutputName.includes(val)) {\r\n setErrorMsg(true)\r\n setForm({ ...form, [e.target.name]: val })\r\n } else {\r\n setErrorMsg(false)\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n } else if (e.target.name === \"FileName\") {\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n setForm({ ...form, [e.target.name]: val })\r\n } else if (\r\n e.target.name === \"FileType\" &&\r\n e.target.value !== FILE_TYPE.Text\r\n ) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val,\r\n FieldDelimiter: \"\",\r\n RecordDelimiter: \"{CR}{LF}\",\r\n OtherFieldDelimiter: \"\",\r\n OtherRecordDelimiter: \"\",\r\n AsciiCharValue: \"\"\r\n })\r\n } else if (e.target.name === \"hasHeader\") {\r\n setForm({ ...form, HasHeaderRecord: e.target.checked })\r\n } else if (e.target.name) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n }\r\n\r\n const getFieldDelimiterValue = () => {\r\n if (form.FieldDelimiter === FIELD_DELIMITER[0]) {\r\n return FIELD_DELIMITER[0]\r\n } else if (form.FieldDelimiter === FIELD_DELIMITER[1]) {\r\n return \"\\t\"\r\n } else if (form.FieldDelimiter === FIELD_DELIMITER[2]) {\r\n return \",\"\r\n } else if (form.FieldDelimiter === FIELD_DELIMITER[3]) {\r\n return \"|\"\r\n } else if (form.FieldDelimiter === FIELD_DELIMITER[4]) {\r\n return \":\"\r\n } else if (form.FieldDelimiter === FIELD_DELIMITER[5]) {\r\n return \";\"\r\n } else if (form.FieldDelimiter === \"OTHER\") {\r\n return form.OtherFieldDelimiter\r\n }\r\n }\r\n const setFieldDelimiterValue = () => {\r\n if (locationState.data?.FieldDelimiter === FIELD_DELIMITER[0]) {\r\n return FIELD_DELIMITER[0]\r\n } else if (locationState.data?.FieldDelimiter === \"\\t\") {\r\n return \"TAB\"\r\n } else if (locationState.data?.FieldDelimiter === \",\") {\r\n return \"COMMA\"\r\n } else if (locationState.data?.FieldDelimiter === \"|\") {\r\n return \"PIPE\"\r\n } else if (locationState.data?.FieldDelimiter === \":\") {\r\n return \"COLON\"\r\n } else if (locationState.data?.FieldDelimiter === \";\") {\r\n return \"SEMI COLON\"\r\n } else if (locationState.data?.FieldDelimiter) {\r\n return \"OTHER\"\r\n }\r\n }\r\n\r\n const setRecordDelimiterValue = () => {\r\n if (locationState.data?.RecordDelimiter === RECORD_DELIMITER[3]) {\r\n return RECORD_DELIMITER[3]\r\n } else if (locationState.data?.RecordDelimiter === \"\\r\\n\") {\r\n return \"{CR}{LF}\"\r\n } else if (locationState.data?.RecordDelimiter === \"\\n\") {\r\n return \"{LF}\"\r\n } else if (locationState.data?.RecordDelimiter === \"\\r\") {\r\n return \"{CR}\"\r\n } else if (\r\n locationState.data?.RecordDelimiter !== FILE_TYPE.ASCIICharValue\r\n ) {\r\n return \"OTHER\"\r\n }\r\n }\r\n const getRecordDelimiterValue = () => {\r\n if (form.RecordDelimiter === RECORD_DELIMITER[3]) {\r\n return RECORD_DELIMITER[3]\r\n } else if (form.RecordDelimiter === RECORD_DELIMITER[0]) {\r\n return \"\\r\\n\"\r\n } else if (form.RecordDelimiter === RECORD_DELIMITER[1]) {\r\n return \"\\n\"\r\n } else if (form.RecordDelimiter === RECORD_DELIMITER[2]) {\r\n return \"\\r\"\r\n } else if (form.RecordDelimiter === \"OTHER\") {\r\n return form.OtherRecordDelimiter\r\n } else {\r\n return form.RecordDelimiter\r\n }\r\n }\r\n\r\n const hideAlert = () => {\r\n setTimeout(() => {\r\n alertVisible = false\r\n alertMsg = emptyAlert\r\n setReload(oldVal => !oldVal)\r\n }, 3000)\r\n }\r\n\r\n const payloadPreparation = () => {\r\n const suppressedColumns = outputColumn.filter(column => {\r\n return column.Suppress\r\n })\r\n\r\n const _sortOrder =\r\n configData?.Outputs?.length > 0\r\n ? configData?.Outputs?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n\r\n return {\r\n Name: form.Name,\r\n Description: form.Description,\r\n FileName: form.FileName,\r\n FileType: form.FileType,\r\n Prompts:\r\n configData?.newReportPrompts?.length > 0\r\n ? configData.newReportPrompts\r\n : [],\r\n\r\n SQL: makeClearQueryToExecute(\r\n configData?.newSQLQuery?.length > 0\r\n ? configData?.newSQLQuery\r\n : sqlQuery,\r\n [],\r\n false\r\n ),\r\n RawSQL:\r\n configData?.newSQLQuery?.length > 0\r\n ? configData?.newSQLQuery\r\n : sqlQuery,\r\n Columns:\r\n configData?.outputColumns?.length > 0 ? configData?.outputColumns : [],\r\n SortOrder: location.state?.isEdit\r\n ? location.state?.data?.SortOrder\r\n : _sortOrder + 1,\r\n SubTotals:\r\n configData?.outputSubTotals?.length > 0\r\n ? configData?.outputSubTotals\r\n : [],\r\n GrandTotals:\r\n configData?.outputGrandTotals?.length > 0\r\n ? configData?.outputGrandTotals\r\n : [],\r\n Destination: {\r\n CustomerPortalCheck: customerPortalCheck,\r\n FtpDirectory: selectedOption,\r\n Email: chips\r\n },\r\n Notification:{\r\n Email: notificationChips\r\n },\r\n ColumnsToSuppress: suppressedColumns?.length\r\n ? Math.max(...suppressedColumns.map(o => o.SortOrder))\r\n : 0,\r\n HasHeaderRecord: form.HasHeaderRecord,\r\n FieldDelimiter: getFieldDelimiterValue(),\r\n RecordDelimiter: getRecordDelimiterValue(),\r\n AsciiCharValue: form.AsciiCharValue\r\n }\r\n }\r\n const onSaveClick = () => {\r\n let sortID\r\n // get the columns suppressed from the columns object\r\n\r\n if (location.state?.isEdit !== true) {\r\n sortID = location.pathname?.split(\"/\")[3]\r\n const _OutputName = configData?.Outputs.map(m => m.Name)\r\n const filteredReportsArray = configData?.Outputs.filter(function (itm) {\r\n return itm.SortOrder === sortID\r\n })\r\n if (_OutputName.includes(form.Name)) {\r\n setErrorMsg(true)\r\n queryfromCreateEditForm === true\r\n ? setSqlQuery(configData?.newSQLQuery)\r\n : setSqlQuery(\r\n filteredReportsArray[0]?.RawSQL || filteredReportsArray[0]?.SQL\r\n )\r\n\r\n return null\r\n }\r\n } else {\r\n setSqlQuery(configData?.newSQLQuery)\r\n }\r\n setErrorMsg(false)\r\n const _item = payloadPreparation()\r\n const { alertMsgFieldError } = checkRequiredFieldErrorCheck(_item)\r\n if (Object.keys(alertMsgFieldError).length) {\r\n alertVisible = true\r\n alertMsg = { ...alertMsg, ...alertMsgFieldError }\r\n setReload(oldVal => !oldVal)\r\n hideAlert()\r\n return false\r\n }\r\n\r\n let _dt = [] as any\r\n if (location.state?.isEdit) {\r\n _dt = configData?.Outputs.map(m =>\r\n m.SortOrder === _item.SortOrder ? { ...m, ..._item } : { ...m }\r\n )\r\n } else {\r\n _dt = [...(configData?.Outputs || []), _item]\r\n }\r\n dispatch(setOutputFiles(_dt))\r\n onCancelClick()\r\n }\r\n\r\n const opneNewSQLEditor = () => {\r\n const currentPath = location.pathname.includes(\"edit\") ? \"edit\" : \"new\"\r\n updateWarnOnTabChangeToStore(false)\r\n let sortID\r\n if (currentPath === EDIT_TYPE.Edit) {\r\n sortID = location.pathname?.split(\"/\")[3] /*parameters\r\n       query: query to be binded to the editor if there is already saved query\r\n       promptsObj: Vairables Object\r\n       SortID: The Sort ID of the object\r\n       IsEdit: Flag to route the screen to new/edit screen after creating the query\r\n       Component:Component name from which the SQL Editor is being called\r\n       */\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_SQL + search, {\r\n query: sqlQuery || \"\",\r\n promptsObj: configData?.newReportPrompts,\r\n sortID: sortID,\r\n isEdit: true,\r\n componentName: CONFIG_MODULES.OutputFiles,\r\n isParentEdit: location.state?.isEdit,\r\n data: form\r\n })\r\n })\r\n } else {\r\n sortID = 0 /*parameters\r\n       query: query to be binded to the editor if there is already saved query\r\n       promptsObj: Vairables Object\r\n       SortID: The Sort ID of the object\r\n       IsEdit: Flag to route the screen to new/edit screen after creating the query\r\n       Component:Component name from which the SQL Editor is being called\r\n     */\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_SQL + search, {\r\n query: sqlQuery || \"\",\r\n promptsObj: configData?.newReportPrompts,\r\n sortID: sortID,\r\n isEdit: false,\r\n componentName: CONFIG_MODULES.OutputFiles,\r\n isParentEdit: location.state?.isEdit,\r\n data: form\r\n })\r\n })\r\n }\r\n const destination = {\r\n CustomerPortalCheck: customerPortalCheck,\r\n FtpDirectory: selectedOption,\r\n Email: chips\r\n }\r\n const notification = {\r\n Email: notificationChips\r\n }\r\n dispatch(setCurrentOutputFile({ form, Destination: destination,Notification:notification }))\r\n }\r\n\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.OUTPUT_FILES + search)\r\n })\r\n }\r\n\r\n const checkValidation = () => {\r\n let reqFields = {}\r\n if (form.FileType?.toLowerCase() === FILE_TYPE.Text.toLowerCase()) {\r\n if (form.FieldDelimiter === FILE_TYPE.Other) {\r\n if (\r\n form.RecordDelimiter !== FILE_TYPE.Other &&\r\n form.RecordDelimiter !== FILE_TYPE.ASCIICharValue\r\n ) {\r\n const {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n OtherFieldDelimiter\r\n } = form\r\n Object.assign(reqFields, {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n OtherFieldDelimiter\r\n })\r\n\r\n return checkRestForm(reqFields)\r\n } else if (form.RecordDelimiter === FILE_TYPE.Other) {\r\n const {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n RecordDelimiter,\r\n OtherFieldDelimiter,\r\n OtherRecordDelimiter\r\n } = form\r\n Object.assign(reqFields, {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n OtherFieldDelimiter,\r\n OtherRecordDelimiter\r\n })\r\n\r\n return checkRestForm(reqFields)\r\n } else if (form.RecordDelimiter === FILE_TYPE.ASCIICharValue) {\r\n const {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n OtherFieldDelimiter,\r\n AsciiCharValue\r\n } = form\r\n Object.assign(reqFields, {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n RecordDelimiter,\r\n OtherFieldDelimiter,\r\n AsciiCharValue\r\n })\r\n\r\n return checkRestForm(reqFields)\r\n }\r\n } else if (form.RecordDelimiter === FILE_TYPE.Other) {\r\n const {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n OtherRecordDelimiter\r\n } = form\r\n Object.assign(reqFields, {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n OtherRecordDelimiter\r\n })\r\n return checkRestForm(reqFields)\r\n } else if (form.RecordDelimiter === FILE_TYPE.ASCIICharValue) {\r\n const {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n AsciiCharValue\r\n } = form\r\n\r\n Object.assign(reqFields, {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter,\r\n AsciiCharValue\r\n })\r\n return checkRestForm(reqFields)\r\n } else {\r\n const {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n\r\n RecordDelimiter\r\n } = form\r\n\r\n Object.assign(reqFields, {\r\n Name,\r\n Description,\r\n FileName,\r\n FileType,\r\n RecordDelimiter\r\n })\r\n return checkRestForm(reqFields)\r\n }\r\n } else {\r\n const { Name, Description, FileName, FileType } = form\r\n\r\n Object.assign(reqFields, { Name, Description, FileName, FileType })\r\n return checkRestForm(reqFields)\r\n }\r\n }\r\n\r\n const checkRestForm = rest =>\r\n Object.values(rest).some(s => s === \"\" || s === null || errorMsg === true)\r\n\r\n const getNameError = () => {\r\n if (errorMsg) {\r\n return `Output Name already exists`\r\n } else if (weekIVFields.Name) {\r\n return weekIVFields.Name\r\n }\r\n return \"\"\r\n }\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {loading ? (\r\n Loader()\r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {\" \"}\r\n onFormChange(e)}\r\n name=\"Name\"\r\n value={form.Name || \"\"}\r\n error={!!errorMsg || !!weekIVFields.Name}\r\n helperText={getNameError()}\r\n />\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n onFormChange(e)}\r\n name=\"Description\"\r\n value={form.Description || \"\"}\r\n inputProps={{ maxLength: 255 }}\r\n />\r\n \r\n \r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n name=\"FileName\"\r\n value={form.FileName || \"\"}\r\n error={!!weekIVFields.FileName}\r\n helperText={weekIVFields.FileName}\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Select_File_Type)}*\r\n \r\n\r\n onFormChange(e)}\r\n >\r\n {FILE_TYPE_VALUES.map((name: any) => (\r\n \r\n {getTranslations(t, name)}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n {form.FileType?.toLowerCase() ===\r\n FILE_TYPE.Text.toLowerCase() ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Field_Delimiter)}\r\n \r\n onFormChange(e)}\r\n >\r\n {FIELD_DELIMITER.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n {form.FieldDelimiter === FILE_TYPE.Other ? (\r\n onFormChange(e)}\r\n name={\"OtherFieldDelimiter\"}\r\n value={form.OtherFieldDelimiter}\r\n />\r\n ) : (\r\n \"\"\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Record_Delimiter)}*\r\n \r\n onFormChange(e)}\r\n >\r\n {RECORD_DELIMITER.map((item: any) => (\r\n \r\n {item}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n {form.RecordDelimiter === FILE_TYPE.Other ? (\r\n onFormChange(e)}\r\n name={\"OtherRecordDelimiter\"}\r\n value={form.OtherRecordDelimiter}\r\n />\r\n ) : (\r\n \"\"\r\n )}\r\n {form.RecordDelimiter === FILE_TYPE.ASCIICharValue ? (\r\n onFormChange(e)}\r\n name={\"AsciiCharValue\"}\r\n value={form.AsciiCharValue}\r\n />\r\n ) : (\r\n \"\"\r\n )}\r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n \r\n \r\n \r\n \r\n onFormChange(e)}\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Has_Header_Record)}\r\n />\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n

    {getTranslations(t, Translates.SQL)}

    \r\n
    \r\n {}}\r\n >\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n onCancelClick()}\r\n >\r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n s || s !== \"\")\r\n }\r\n onClick={() => onSaveClick()}\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n )}\r\n
    \r\n \r\n {alertVisible ? <>{alertMsgShow(alertMsg)} : null}\r\n \r\n \r\n )\r\n}\r\n\r\nexport default CreateEditOutputFiles\r\n","import { Button, Grid, Tooltip } from \"@mui/material\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nimport BreadCrumbC from \"../ToolBar/BreadCrumbC\"\r\nconst CountProgramsToolBar = ({ programsSaveClick, setIsTabChangeCheck }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config.configType\r\n )\r\n const history = useHistory()\r\n let search = window.location.search || \"\"\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `countPrograms`\r\n let variables: any = {\r\n countPrograms: getTranslations(t, Translates.Count_Programs)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n const countProgramsSaveClick = () => {\r\n programsSaveClick()\r\n }\r\n const handleNewCountProgramClick = () => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_COUNT_PROGRAMS + search)\r\n })\r\n }\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Count_Program)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default CountProgramsToolBar\r\n","import React, { useCallback, useEffect, useState } from \"react\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { Grid, Tooltip } from \"@mui/material\"\r\nimport ContentCopyIcon from \"@mui/icons-material/ContentCopy\"\r\nimport CountProgramsToolBar from \"../../../components/ConfigurationPortal/CountProgramsToolBar/CountProgramsToolBar\"\r\nimport GlobalTable from \"../../../components/GlobalTable/GlobalTable\"\r\nimport trashIcon from \"../../../../src/assets/images/TrashIcon.svg\"\r\nimport editIcon from \"../../../../src/assets/images/Edit.png\"\r\nimport { setCountPrograms } from \"../../../redux/slices/configSlice\"\r\nimport { PATH } from \"../../../constants/paths\"\r\nimport ConfirmDialog from \"../../../components/ConfirmDialog/ConfirmDialog\"\r\nimport { landingColumnDataDetails } from \"src/configurationPortal/pages/CountPrograms/Constant\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport AlertConfirmationContent from \"../Components/AlertConfirmationContent\"\r\nimport { Tab } from \"src/constants/configurationPortal\"\r\nimport { makeLayoutAllVariableEmpty } from \"../LookupRoutines/helpers\"\r\nimport { setNewCountProgram } from \"src/redux/slices/configSlice\"\r\nimport {\r\n prepareDataForProductList,\r\n prepareDataForLocationList\r\n} from \"./Component/TabFunctionsAndConstant\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { ConfigTabNavigateWarning } from \"src/hooks/ConfigTabNavigateWarning\"\r\nimport { ConfigTabNames, updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { KEY_CODES } from \"src/utils/constants\"\r\nlet deleteRowIndex: number = -1\r\nlet isConfirmDeleteOpen: boolean = false\r\nconst LandingPage = ({ liftCountProgramsSaveClick }) => {\r\n const { t } = useTranslation()\r\n const {\r\n config: {\r\n countPrograms,\r\n defaultCountFields,\r\n configDetails,\r\n configType: configTypeFromStore\r\n }\r\n } = ConfigDataHook()\r\n\r\n const [isTabChangeCheck, setIsTabChangeCheck] = useState(true)\r\n\r\n ConfigTabNavigateWarning({\r\n componentName: ConfigTabNames.CountPrograms,\r\n isTabChangeCheck: isTabChangeCheck\r\n })\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n let search = window.location.search || \"\"\r\n const [reload, setReload] = useState(false)\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n makeLayoutAllVariableEmpty()\r\n dispatch(setNewCountProgram({}))\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (configDetails?.configuration) {\r\n prepareDataForProductList(defaultCountFields, true)\r\n prepareDataForLocationList(defaultCountFields, true)\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [defaultCountFields])\r\n\r\n const setIsConfirmDeleteOpen = (val: boolean) => {\r\n isConfirmDeleteOpen = val\r\n setReload(oldVal => !oldVal)\r\n return reload\r\n }\r\n const countProgramsSaveClick = useCallback(\r\n () => {\r\n liftCountProgramsSaveClick([...countPrograms], Tab.CountProgramsTab)\r\n },\r\n //eslint-disable-next-line\r\n [countPrograms]\r\n )\r\n const handleDeleteRowKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n deleteRow(row)\r\n }\r\n }, [])\r\n const deleteRow = (row: any) => {\r\n deleteRowIndex = Number(row.id)\r\n setIsConfirmDeleteOpen(true)\r\n }\r\n const setDeleteContent = useCallback(\r\n () => {\r\n return (\r\n \r\n )\r\n },\r\n //eslint-disable-next-line\r\n [deleteRowIndex]\r\n )\r\n const callbackDeleteConfirmation = useCallback(\r\n (res: boolean) => {\r\n if (res && deleteRowIndex >= 0) {\r\n let dt: any\r\n dt = countPrograms.filter((i, j) => j !== deleteRowIndex)\r\n dispatch(setCountPrograms(dt))\r\n }\r\n deleteRowIndex = -1\r\n setIsConfirmDeleteOpen(false)\r\n },\r\n //eslint-disable-next-line\r\n [deleteRowIndex]\r\n )\r\n\r\n const cloneRow = (row: any) => {\r\n const _item = {\r\n ...row,\r\n ...{\r\n Name: [{ \"en-us\": `Copy of ${row.Name[0][\"en-us\"]}` }]\r\n }\r\n }\r\n dispatch(setCountPrograms([...countPrograms, _item]))\r\n }\r\n const handleEditRowKeyUp = useCallback((e: any, row: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n editRow(row)\r\n }\r\n }, [])\r\n const editRow = (row: any) => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(\r\n PATH.EDIT_COUNT_PROGRAMS.replace(\":id\", `${Number(row.id) + 1}`) +\r\n search\r\n )\r\n })\r\n }\r\n const displaySpan = (props: any) => {\r\n return (\r\n \r\n {props.value ? props.value : \"-\"}\r\n \r\n )\r\n }\r\n const displayAction = (props: any) => {\r\n return (\r\n \r\n \r\n cloneRow(props.row.original)}\r\n />\r\n \r\n \r\n editRow(props.row)}\r\n onKeyUp={e => handleEditRowKeyUp(e, props.row)}\r\n />\r\n \r\n \r\n \r\n deleteRow(props.row)}\r\n onKeyUp={e => handleDeleteRowKeyUp(e, props.row)}\r\n />\r\n \r\n \r\n \r\n )\r\n }\r\n const columnsData = React.useMemo(() => {\r\n return landingColumnDataDetails.map((i, j) => {\r\n return {\r\n ...i,\r\n ...{\r\n Header: getTranslations(t, i.Header),\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: [1].includes(j) ? false : true,\r\n Cell: props => {\r\n if ([1].includes(j)) return displayAction(props)\r\n return displaySpan(props)\r\n }\r\n }\r\n }\r\n })\r\n //eslint-disable-next-line\r\n }, [countPrograms, t])\r\n return (\r\n <>\r\n \r\n
    \r\n \r\n \r\n \r\n \r\n {isConfirmDeleteOpen ? (\r\n \r\n ) : null}\r\n \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default LandingPage\r\n","import React, { useCallback, useState } from \"react\"\r\nimport { useFormContext } from \"react-hook-form\"\r\nimport { useParams } from \"react-router\"\r\nimport {\r\n Grid,\r\n Box,\r\n Tab,\r\n Tabs,\r\n FormGroup,\r\n Button,\r\n Alert,\r\n AlertTitle\r\n} from \"@mui/material\"\r\nimport LocationOnOutlinedIcon from \"@mui/icons-material/LocationOnOutlined\"\r\nimport shortid from \"shortid\"\r\nimport {\r\n CopyStdWisTagSetupInstructions,\r\n CopyStdWisTagValidationInstructions,\r\n checkBoxClass,\r\n fieldNames\r\n} from \"src/configurationPortal/pages/CountPrograms/Constant\"\r\nimport MUIRadio from \"src/components/MUIFormFields/MUIRadio\"\r\nimport MUICheckbox from \"src/components/MUIFormFields/MUICheckbox\"\r\nimport {\r\n a11yProps,\r\n fetchInstructionLayout,\r\n getLocationList,\r\n TabPanel\r\n} from \"./TabFunctionsAndConstant\"\r\nimport { getBreadcrumbPath } from \"../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { LocationsList } from \"../../CountFields/Constants\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport InfoIcon from \"@mui/icons-material/Info\"\r\nimport { LookupConfigToEditor } from \"../../LookupRoutines/helpers\"\r\n\r\nconst LocationCapture = () => {\r\n const { t } = useTranslation()\r\n const { watch, setValue } = useFormContext()\r\n const { id }: { id: string } = useParams()\r\n const storeId: number = id !== undefined ? Number(id) : -1 //want to get index of array means subtract 1\r\n const locationList = getLocationList()\r\n const tabValue: number = watch(fieldNames.ChildTabIndex.name)\r\n const [isConfirmOpen, setIsConfirmOpen] = useState(false)\r\n const [confirmMsg, setConfirmMsg] = useState(\"\")\r\n\r\n const handleChange = (event: React.SyntheticEvent, newValue: number) => {\r\n setValue(fieldNames.ChildTabIndex.name, newValue)\r\n const keyName = fieldNames.locationKeyName.name.replace(\r\n \"{inx}\",\r\n newValue.toString()\r\n )\r\n setValue(keyName, newValue)\r\n }\r\n const { bConfig } = getBreadcrumbPath(storeId, t, true)\r\n const copyWisTagClick = useCallback(() => {\r\n setIsConfirmOpen(true)\r\n setConfirmMsg(\r\n `${getTranslations(\r\n t,\r\n Translates.Would_you_like_to_continue_with_standard_logic\r\n )} ?`\r\n )\r\n }, [])\r\n\r\n const getTabValueLabel = () =>\r\n //istanbul ignore next\r\n tabValue?.toString()\r\n\r\n const callbackConfirmation = useCallback((res: boolean) => {\r\n const setUpInstructions =\r\n fieldNames.locationSetupInstructionArrayName.name.replace(\r\n \"{inx}\",\r\n getTabValueLabel()\r\n )\r\n const validationInstructions =\r\n fieldNames.locationValidationInstructionArrayName.name.replace(\r\n \"{inx}\",\r\n getTabValueLabel()\r\n )\r\n if (res) {\r\n const setUpValues = LookupConfigToEditor(CopyStdWisTagSetupInstructions)\r\n const validationValues = LookupConfigToEditor(\r\n CopyStdWisTagValidationInstructions\r\n )\r\n setValue(setUpInstructions, setUpValues)\r\n setValue(validationInstructions, validationValues)\r\n setIsConfirmOpen(false)\r\n } else {\r\n setValue(setUpInstructions, [])\r\n setValue(validationInstructions, [])\r\n setIsConfirmOpen(res)\r\n }\r\n }, [])\r\n const setConfirmContent = useCallback(() => {\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Info)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {confirmMsg}\r\n

    \r\n
    \r\n )\r\n }, [confirmMsg])\r\n const resetInstructions = () => {\r\n const setUpInstructions =\r\n fieldNames.locationSetupInstructionArrayName.name.replace(\r\n \"{inx}\",\r\n getTabValueLabel()\r\n )\r\n const validationInstructions =\r\n fieldNames.locationValidationInstructionArrayName.name.replace(\r\n \"{inx}\",\r\n getTabValueLabel()\r\n )\r\n setValue(setUpInstructions, [])\r\n setValue(validationInstructions, [])\r\n }\r\n\r\n const radioChange = useCallback((e: any) => {\r\n if (e.target.value === fieldNames.StandardWisTag.value) {\r\n resetInstructions()\r\n }\r\n }, [])\r\n\r\n const checkForRadioOptions = (StandardWisTag: any, j: any) => {\r\n if (watch(StandardWisTag) === fieldNames.StandardWisTag.value) {\r\n return (\r\n
    \r\n \r\n {[0, 1].map(i => {\r\n const AllowedBarcodeTypes = fieldNames[\r\n `AllowedBarcodeTypes${i}`\r\n ].name.replace(\"{inx}\", j.toString())\r\n return (\r\n \r\n \r\n \r\n )\r\n })}\r\n \r\n
    \r\n )\r\n } else if (watch(StandardWisTag) === fieldNames.CustomLocation.value) {\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Copy_Standard_WIS_Logic)}\r\n \r\n \r\n
    \r\n \r\n )\r\n } else {\r\n return null\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {locationList.map((i, j) => {\r\n return (\r\n }\r\n label={`${\r\n i.label?.toLowerCase() === i.originalValue?.toLowerCase()\r\n ? i.label\r\n : i.label + \" (\" + i.originalValue + \")\"\r\n }`}\r\n {...a11yProps(j, \"child\")}\r\n className=\"cp-child-tabs\"\r\n />\r\n )\r\n })}\r\n \r\n \r\n {locationList.map((i, j) => {\r\n const isSeparateInsertRuleName =\r\n fieldNames.locationIsSeparateInsertRuleName.name.replace(\r\n \"{inx}\",\r\n j.toString()\r\n )\r\n\r\n const StandardWisTag = fieldNames.StandardWisTag.name.replace(\r\n \"{inx}\",\r\n j.toString()\r\n )\r\n const instructionDisabled =\r\n locationList[watch(fieldNames.ChildTabIndex.name)]?.OjKey ===\r\n LocationsList.Location.OjKey &&\r\n watch(StandardWisTag) === fieldNames.StandardWisTag.value\r\n\r\n return (\r\n \r\n
    \r\n \r\n {locationList[watch(fieldNames.ChildTabIndex.name)]?.OjKey ===\r\n LocationsList.Location.OjKey ? (\r\n \r\n \r\n\r\n {checkForRadioOptions(StandardWisTag, j)}\r\n \r\n ) : null}\r\n \r\n \r\n {fetchInstructionLayout(\r\n fieldNames.locationSetupInstructionArrayName.name,\r\n fieldNames.locationValidationInstructionArrayName.name,\r\n fieldNames.locationLookupInstructionArrayName.name,\r\n j,\r\n i.OjKey,\r\n bConfig,\r\n instructionDisabled\r\n )}\r\n \r\n\r\n
    \r\n \r\n
    \r\n {watch(isSeparateInsertRuleName) ? (\r\n <>\r\n

    Insert Rules

    \r\n \r\n {fetchInstructionLayout(\r\n fieldNames.locationInsertRuleSetupInstructionArrayName\r\n .name,\r\n fieldNames\r\n .locationInsertRuleValidationInstructionArrayName\r\n .name,\r\n fieldNames.locationInsertRuleLookupInstructionArrayName\r\n .name,\r\n j,\r\n i.OjKey,\r\n bConfig\r\n )}\r\n \r\n \r\n ) : null}\r\n
    \r\n \r\n )\r\n })}\r\n \r\n \r\n {isConfirmOpen && (\r\n \r\n )}\r\n \r\n \r\n )\r\n}\r\n\r\nexport default LocationCapture\r\n","import React from \"react\"\r\nimport { useFormContext } from \"react-hook-form\"\r\nimport { useParams } from \"react-router\"\r\nimport { Grid, Tab, Tabs } from \"@mui/material\"\r\nimport { Box } from \"@mui/system\"\r\nimport LocationOnOutlinedIcon from \"@mui/icons-material/LocationOnOutlined\"\r\nimport shortid from \"shortid\"\r\nimport {\r\n CountTypeList,\r\n fieldNames\r\n} from \"src/configurationPortal/pages/CountPrograms/Constant\"\r\nimport {\r\n a11yProps,\r\n fetchInstructionLayout,\r\n getProductList,\r\n TabPanel\r\n} from \"./TabFunctionsAndConstant\"\r\nimport MUICheckbox from \"src/components/MUIFormFields/MUICheckbox\"\r\nimport { getBreadcrumbPath } from \"../helper\"\r\nimport MUISelect from \"src/components/MUIFormFields/MUISelect\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nconst ProductMode = () => {\r\n const { t } = useTranslation()\r\n const { watch, setValue } = useFormContext()\r\n const { id }: { id: string } = useParams()\r\n const storeId: number = id !== undefined ? Number(id) : -1 //want to get index of array means subtract 1\r\n const productList = getProductList()\r\n const tabValue: number = watch(fieldNames.ChildTabIndex.name)\r\n\r\n const handleChange = (event: React.SyntheticEvent, newValue: number) => {\r\n setValue(fieldNames.ChildTabIndex.name, newValue)\r\n const keyName = fieldNames.productKeyName.name.replace(\r\n \"{inx}\",\r\n newValue.toString()\r\n )\r\n setValue(keyName, newValue)\r\n }\r\n const { bConfig } = getBreadcrumbPath(storeId, t, true)\r\n\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n {watch(fieldNames.ProductEnableMode.name) ? (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {productList.map((i, j) => {\r\n return (\r\n }\r\n label={`${\r\n i.label?.toLowerCase() === i.originalValue?.toLowerCase()\r\n ? i.label\r\n : i.label + \" (\" + i.originalValue + \")\"\r\n }`}\r\n {...a11yProps(j, \"child\")}\r\n className=\"cp-child-tabs product-mode\"\r\n />\r\n )\r\n })}\r\n \r\n
    \r\n {productList.map((i, j) => {\r\n const isSeparateInsertRuleName =\r\n fieldNames.productIsSeparateInsertRuleName.name.replace(\r\n \"{inx}\",\r\n j.toString()\r\n )\r\n return (\r\n \r\n
    \r\n \r\n {fetchInstructionLayout(\r\n fieldNames.productSetupInstructionArrayName.name,\r\n fieldNames.productValidationInstructionArrayName.name,\r\n fieldNames.productLookupInstructionArrayName.name,\r\n j,\r\n i.OjKey,\r\n bConfig\r\n )}\r\n \r\n
    \r\n \r\n
    \r\n {watch(isSeparateInsertRuleName) ? (\r\n <>\r\n

    Insert Rules

    \r\n \r\n {fetchInstructionLayout(\r\n fieldNames.productInsertRuleSetupInstructionArrayName\r\n .name,\r\n fieldNames\r\n .productInsertRuleValidationInstructionArrayName\r\n .name,\r\n fieldNames.productInsertRuleLookupInstructionArrayName\r\n .name,\r\n j,\r\n i.OjKey,\r\n bConfig\r\n )}\r\n \r\n \r\n ) : null}\r\n
    \r\n \r\n )\r\n })}\r\n \r\n ) : null}\r\n \r\n )\r\n}\r\n\r\nexport default ProductMode\r\n","import { useFormContext } from \"react-hook-form\"\r\nimport { Grid, Divider, Box, Tab, Tabs } from \"@mui/material\"\r\nimport React from \"react\"\r\nimport LocationCapture from \"./LocationCapture\"\r\nimport ProductMode from \"./ProductMode\"\r\nimport { a11yProps, TabPanel } from \"./TabFunctionsAndConstant\"\r\nimport { fieldNames } from \"src/configurationPortal/pages/CountPrograms/Constant\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nconst CPTabs = () => {\r\n const { t } = useTranslation()\r\n const { watch, setValue } = useFormContext()\r\n\r\n const handleChange = (event: React.SyntheticEvent, newValue: number) => {\r\n setValue(fieldNames.ParentTabIndex.name, newValue)\r\n setValue(fieldNames.ChildTabIndex.name, 0)\r\n }\r\n const tabValue: number = watch(fieldNames.ParentTabIndex.name)\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Financial_Count_Mode_Content)} ...\r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default CPTabs\r\n","import { useReducer } from \"react\"\r\nimport { SubmitHandler, useFormContext } from \"react-hook-form\"\r\nimport { useHistory, useParams } from \"react-router-dom\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { AlertColor, Button, Grid } from \"@mui/material\"\r\nimport AlertC from \"src/components/Alert/Alert\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { setCountPrograms } from \"src/redux/slices/configSlice\"\r\nimport { PATH } from \"../../../../constants/paths\"\r\nimport { formToReduxConversion } from \"../helper\"\r\nimport { IFormCountProgram } from \"./../../../../utils/types/types\"\r\nimport { fieldNames } from \"src/configurationPortal/pages/CountPrograms/Constant\"\r\nimport { reducer, updateWarnOnTabChangeToStore } from \"../../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nlet alertProps = {\r\n title: \"Validation Error!\",\r\n severity: \"error\" as AlertColor,\r\n content: \"\"\r\n}\r\nlet showAlert: boolean = false\r\n\r\nconst setAlertProps = newAlertProps =>\r\n (alertProps = { ...alertProps, ...newAlertProps })\r\nconst setShowAlert = newVal => (showAlert = newVal)\r\n\r\nconst SubmitAndCancelButton = () => {\r\n const { t } = useTranslation()\r\n const {\r\n config: { countPrograms, configType: configTypeFromStore }\r\n } = ConfigDataHook()\r\n const {\r\n watch,\r\n handleSubmit,\r\n formState: { errors }\r\n } = useFormContext()\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n const { id }: { id: string } = useParams()\r\n const storeId: number = id !== undefined ? Number(id) : -1 //want to get index of array means subtract 1\r\n const [, setReload] = useReducer(reducer, false)\r\n let search = window.location.search\r\n\r\n const triggerSetReload = () => {\r\n setReload(oldVal => !oldVal)\r\n }\r\n\r\n const formSubmitHandler: SubmitHandler = async (\r\n data: IFormCountProgram\r\n ) => {\r\n const { reduxData, cpErrors } = formToReduxConversion(data)\r\n if (cpErrors.length) {\r\n toastMsgShow({\r\n content: cpErrors[0]\r\n })\r\n return false\r\n }\r\n let newArr = [...countPrograms]\r\n if (storeId !== -1) {\r\n newArr[storeId - 1] = reduxData\r\n }\r\n //istanbul ignore next\r\n else {\r\n newArr = [...newArr, reduxData]\r\n }\r\n dispatch(setCountPrograms([...newArr]))\r\n //istanbul ignore next\r\n onCancelClick()\r\n }\r\n\r\n const toastMsgShow = alertMsg => {\r\n setAlertProps({\r\n ...alertMsg\r\n })\r\n setShowAlert(true)\r\n triggerSetReload()\r\n setTimeout(() => {\r\n setShowAlert(false)\r\n triggerSetReload()\r\n }, 3000)\r\n }\r\n\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.COUNT_PROGRAMS + search)\r\n })\r\n }\r\n\r\n const formErrorCheckFunction = () => {\r\n let error: boolean = false\r\n if (\r\n !watch(fieldNames.name.name) ||\r\n (watch(fieldNames.ProductEnableMode.name) &&\r\n !watch(fieldNames.countType.name)) ||\r\n Object.keys(errors).length ||\r\n configTypeFromStore === \"view\"\r\n ) {\r\n error = true\r\n }\r\n return error\r\n }\r\n\r\n return (\r\n <>\r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {storeId !== -1\r\n ? getTranslations(t, Translates.Update)\r\n : getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n {showAlert ? : null}\r\n \r\n )\r\n}\r\n\r\nexport default SubmitAndCancelButton\r\n","import { IConfigCountProgram } from \"src/utils/types/types\"\r\nimport * as yup from \"yup\"\r\nimport { fieldNames } from \"./Constant\"\r\n\r\nexport const validationSchema = (\r\n countPrograms: IConfigCountProgram[],\r\n storeId: number\r\n) => {\r\n return yup.object().shape({\r\n [fieldNames.name.name]: yup\r\n .string()\r\n .required(`${fieldNames.name.label} is required`)\r\n .matches(\r\n /^[a-zA-Z0-9\\s]+$/,\r\n \"Only alphabets and numerics are allowed for this field\"\r\n )\r\n .max(90, `${fieldNames.name.label} must be at most 90 characters`)\r\n .test(\r\n fieldNames.name.name,\r\n \"Count program name already exist!\",\r\n (value: string | undefined) => {\r\n let exist: boolean = false\r\n if (value) {\r\n countPrograms.forEach((item, inx) => {\r\n if (storeId === -1) {\r\n if (\r\n value.toLowerCase().toString() ===\r\n item.Name[0][\"en-us\"].toLowerCase().toString()\r\n ) {\r\n exist = true\r\n }\r\n }\r\n })\r\n }\r\n return !exist\r\n }\r\n )\r\n .trim()\r\n })\r\n}\r\n","import { useEffect } from \"react\"\r\nimport { FormProvider, useForm } from \"react-hook-form\"\r\nimport { yupResolver } from \"@hookform/resolvers/yup\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { useHistory, useLocation, useParams } from \"react-router-dom\"\r\nimport { Grid } from \"@mui/material\"\r\nimport { fieldNames } from \"src/configurationPortal/pages/CountPrograms/Constant\"\r\nimport CountProgramBreadCrumb from \"../Components/CBreadCrumb\"\r\nimport { IFormCountProgram } from \"./../../../utils/types/types\"\r\nimport MUIText from \"src/components/MUIFormFields/MUIText\"\r\nimport CPTabs from \"./Component/CPTabs\"\r\nimport SubmitAndCancelButton from \"./Component/SubmitAndCancelButton\"\r\nimport { setNewCountProgram } from \"src/redux/slices/configSlice\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport {\r\n getBreadcrumbPath,\r\n getDefaultValues,\r\n reduxToFormConversion\r\n} from \"./helper\"\r\nimport { validationSchema } from \"./validation\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nconst CreateEditCountProgram = () => {\r\n const { t } = useTranslation()\r\n const {\r\n config: { newCountProgram, countPrograms }\r\n } = ConfigDataHook()\r\n\r\n const dispatch = useDispatch()\r\n const location = useLocation() as any\r\n const { id }: { id: string } = useParams()\r\n const storeId: number = id !== undefined ? Number(id) : -1 //want to get index of array means subtract 1\r\n const history = useHistory()\r\n let search = window.location.search\r\n const formHookMethods = useForm({\r\n defaultValues: getDefaultValues(newCountProgram),\r\n resolver: yupResolver(validationSchema(countPrograms, storeId)),\r\n criteriaMode: \"all\",\r\n mode: \"onChange\"\r\n })\r\n const { setValue, reset } = formHookMethods\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n if (isMounted) {\r\n if (!Object.keys(newCountProgram).length) {\r\n if (storeId !== -1) {\r\n if (countPrograms[storeId - 1]) {\r\n const formData: IFormCountProgram = reduxToFormConversion(\r\n countPrograms[storeId - 1]\r\n )\r\n dispatch(setNewCountProgram(formData))\r\n reset(formData)\r\n } else {\r\n history.push(PATH.COUNT_PROGRAMS + search)\r\n }\r\n }\r\n } else if (location.state?.data) {\r\n updateWarnOnTabChangeToStore(true)\r\n const data = JSON.parse(location.state.data)\r\n setValue(data.InstructionName, data.Instructions)\r\n }\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n const { componentName, bConfig } = getBreadcrumbPath(storeId, t)\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default CreateEditCountProgram\r\n","import { Divider, Grid } from \"@mui/material\"\r\n\r\nconst FormHeading = ({\r\n heading,\r\n isDivider\r\n}: {\r\n heading: string\r\n isDivider?: boolean\r\n}) => {\r\n return (\r\n <>\r\n \r\n {isDivider ? : null}\r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default FormHeading\r\n","import {\r\n Autocomplete,\r\n Button,\r\n Checkbox,\r\n FormControl,\r\n Grid,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n TextField\r\n} from \"@mui/material\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { setNewReportPrompts } from \"src/redux/slices/configSlice\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport {\r\n CONFIG_MODULES,\r\n DEFAULT_RADIX,\r\n PromptFieldNames,\r\n PromptTypes\r\n} from \"src/utils/constants\"\r\nimport {\r\n getTranslations,\r\n setWeekFieldError,\r\n validateDecimal,\r\n validateInteger,\r\n validateOnlyInteger\r\n} from \"src/utils/helper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport FormHeading from \"src/components/FormHeading\"\r\ninterface INewPrompt {\r\n Label: string\r\n VariableName: string\r\n DefaultValue: string\r\n Type: string\r\n NumberOfDecimals: string\r\n CustomList: string[]\r\n}\r\ninterface Props {\r\n component: string\r\n location: any\r\n}\r\nconst CreateEditPrompts = ({ component, location }: Props) => {\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const { t } = useTranslation()\r\n const [errorMsg, setErrorMsg] = useState(false)\r\n const [invalidMsg, setInvalidMsg] = useState(false)\r\n const history = useHistory()\r\n let search = window.location.search || \"\"\r\n let locationState: any = { ...location.state }\r\n const dispatch = useAppThunkDispatch()\r\n const configData = useSelector((state: RootState) => state.config)\r\n const PromptData = useSelector(\r\n (state: RootState) => state.config.newReportPrompts\r\n )\r\n const isEdit = location.state?.isEdit\r\n const editPromptData = location.state?.editPromptObj\r\n const storeId = location.state?.storeId\r\n const customTypeList = [\"SCANNED\", \"KEYED\"]\r\n let newRedirection = PATH.CREATE_EDIT_OUTPUTFILES\r\n if (component === CONFIG_MODULES.Reports) {\r\n newRedirection = PATH.CREATE_REPORTING\r\n }\r\n\r\n let editRedirection = PATH.CREATE_EDIT_OUTPUTFILES\r\n if (component === CONFIG_MODULES.Reports) {\r\n editRedirection = PATH.EDIT_REPORTING\r\n }\r\n\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n if (storeId) {\r\n history.push(\r\n editRedirection.replace(\":storeId\", `${storeId}`) + search,\r\n {\r\n data: { ...location.state?.form }\r\n }\r\n )\r\n } else {\r\n history.push(newRedirection + search, {\r\n data: { ...location.state?.form }\r\n })\r\n }\r\n })\r\n }\r\n\r\n const onSaveClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n let NumberOfDecimals = \"\"\r\n let CustomList: string[] = []\r\n if (form.Type === PromptTypes.Decimal) {\r\n NumberOfDecimals = form.NumberOfDecimals\r\n } else if (form.Type === PromptTypes.CustomList) {\r\n CustomList = form.CustomList\r\n }\r\n const promptLabel = form.Label\r\n let _promptItem: any = {\r\n Label: [{ \"en-us\": promptLabel }],\r\n VariableName: form.VariableName,\r\n SortOrder: editPromptData\r\n ? editPromptData.SortOrder\r\n : (PromptData?.length ?? 0) + 1\r\n }\r\n if (form.DefaultValue !== \"\") {\r\n _promptItem = { ..._promptItem, DefaultValue: form.DefaultValue }\r\n }\r\n if (form.Type !== \"\") {\r\n _promptItem = { ..._promptItem, Type: form.Type }\r\n }\r\n if (NumberOfDecimals !== \"\" && form.Type === PromptTypes.Decimal) {\r\n _promptItem = {\r\n ..._promptItem,\r\n NumberOfDecimals: parseInt(NumberOfDecimals, DEFAULT_RADIX)\r\n }\r\n }\r\n if (CustomList?.length && form.Type === PromptTypes.CustomList) {\r\n _promptItem = { ..._promptItem, CustomList: CustomList }\r\n }\r\n\r\n let localPrompt = [...PromptData]\r\n let foundIndex: number = Number(locationState?.index)\r\n let duplicateField: any = configData?.newReportPrompts?.find(\r\n (duplicateField: any, idx) => {\r\n return (\r\n duplicateField?.VariableName === form?.VariableName &&\r\n foundIndex !== idx\r\n )\r\n }\r\n )\r\n if (duplicateField) {\r\n setErrorMsg(true)\r\n setInvalidMsg(false)\r\n }\r\n if (!invalidMsg && !errorMsg && !duplicateField) {\r\n if (isEdit) {\r\n let newArr = [...PromptData]\r\n newArr[editPromptData.SortOrder - 1] = _promptItem\r\n localPrompt = newArr\r\n dispatch(setNewReportPrompts([...localPrompt]))\r\n } else {\r\n localPrompt = [...configData?.newReportPrompts, _promptItem]\r\n dispatch(setNewReportPrompts([...localPrompt]))\r\n }\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n if (component === CONFIG_MODULES.Reports) {\r\n if (storeId) {\r\n history.push(\r\n PATH.EDIT_REPORTING.replace(\":storeId\", `${storeId}`) + search\r\n )\r\n } else {\r\n history.push(PATH.CREATE_REPORTING + search)\r\n }\r\n } else if (component === CONFIG_MODULES.OutputFiles) {\r\n if (location.state.isParentEdit) {\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n isEdit: location.state?.isParentEdit,\r\n data: { ...location.state?.form, ...{ Prompts: localPrompt } }\r\n })\r\n } else {\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n data: { ...location.state?.form, ...{ Prompts: localPrompt } }\r\n })\r\n }\r\n }\r\n })\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n setEditPromptData()\r\n }, [])\r\n\r\n const setEditPromptData = () => {\r\n if (isEdit) {\r\n let editObj = {\r\n Label: editPromptData.Label[0][\"en-us\"],\r\n VariableName: editPromptData.VariableName,\r\n DefaultValue: editPromptData.DefaultValue,\r\n Type: editPromptData.Type,\r\n NumberOfDecimals: editPromptData.NumberOfDecimals,\r\n CustomList: editPromptData.CustomList\r\n }\r\n\r\n setForm(editObj)\r\n }\r\n }\r\n const [form, setForm] = React.useState({\r\n Label: \"\",\r\n VariableName: \"\",\r\n DefaultValue: \"\",\r\n Type: \"\",\r\n NumberOfDecimals: \"\",\r\n CustomList: []\r\n } as INewPrompt)\r\n\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n Label: \"\",\r\n VariableName: \"\"\r\n })\r\n\r\n let promptTypeList = [\r\n PromptTypes.Decimal,\r\n PromptTypes.Text,\r\n PromptTypes.Numeric,\r\n PromptTypes.LocationCategory,\r\n PromptTypes.LocationRange,\r\n PromptTypes.Department,\r\n PromptTypes.ParentDepartment,\r\n PromptTypes.CustomList\r\n ]\r\n\r\n if (component === CONFIG_MODULES.Reports) {\r\n promptTypeList = [\r\n PromptTypes.Numeric,\r\n PromptTypes.Decimal,\r\n PromptTypes.Alpha,\r\n PromptTypes.LocationRange,\r\n PromptTypes.LocationCategory,\r\n PromptTypes.Department,\r\n PromptTypes.ParentDepartment,\r\n PromptTypes.CustomList\r\n ]\r\n }\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n let val = e.target.value || \"\"\r\n if (e.target?.name) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n // validate only integers for no of decimals\r\n if (e.target?.name === PromptFieldNames.NumberOfDecimals) {\r\n if (!validateOnlyInteger(val)) {\r\n setForm({ ...form, [e.target.name]: val.substring(0, val.length - 1) })\r\n }\r\n }\r\n if (e.target?.name === PromptFieldNames.VariableName) {\r\n {\r\n let regex = /-|\\s/g\r\n if (val.match(regex)) {\r\n setInvalidMsg(true)\r\n setErrorMsg(false)\r\n setForm({ ...form, [e.target.name]: val })\r\n } else {\r\n setErrorMsg(false)\r\n setInvalidMsg(false)\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n }\r\n }\r\n\r\n // validate decimals when decimals is selected and integer when integer is selected in type\r\n if (e.target?.name === PromptFieldNames.DefaultValue) {\r\n if (form.Type === PromptTypes.Numeric) {\r\n if (!validateInteger(val)) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val.substring(0, val.length - 1)\r\n })\r\n }\r\n }\r\n\r\n if (form.Type === PromptTypes.Decimal) {\r\n if (!validateDecimal(val)) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val.substring(0, val.length - 1)\r\n })\r\n }\r\n }\r\n }\r\n\r\n // show/hide based on type selection\r\n if (e.target?.name === \"Type\") {\r\n if (val === PromptTypes.Decimal) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.Decimal\r\n })\r\n } else if (val === PromptTypes.CustomList) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: customTypeList[0],\r\n Type: PromptTypes.CustomList\r\n })\r\n } else if (val === PromptTypes.Numeric) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.Numeric\r\n })\r\n } else if (val === PromptTypes.Text) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.Text\r\n })\r\n } else if (val === PromptTypes.LocationCategory) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.LocationCategory\r\n })\r\n } else if (val === PromptTypes.LocationRange) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.LocationRange\r\n })\r\n } else if (val === PromptTypes.Department) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.Department\r\n })\r\n } else if (val === PromptTypes.ParentDepartment) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.ParentDepartment\r\n })\r\n } else if (val === PromptTypes.Alpha) {\r\n setForm({\r\n ...form,\r\n [\"DefaultValue\"]: \"\",\r\n Type: PromptTypes.Alpha\r\n })\r\n }\r\n }\r\n\r\n if (\r\n e.target?.name === PromptFieldNames.Label ||\r\n e.target?.name === PromptFieldNames.VariableName\r\n ) {\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n }\r\n }\r\n const getErrorMessage = () => {\r\n if (errorMsg) {\r\n return `Variable ${form.VariableName} is already in use`\r\n } else if (invalidMsg) {\r\n return \"Variable name cannot contain hyphen and space\"\r\n } else if (weekIVFields.VariableName) {\r\n return weekIVFields.VariableName\r\n } else {\r\n return \"\"\r\n }\r\n }\r\n\r\n const handleCustomListChange = (event, values) => {\r\n setForm({ ...form, CustomList: values })\r\n }\r\n\r\n const validationCheck = () => {\r\n if (\r\n errorMsg ||\r\n !form.Label ||\r\n !form.VariableName ||\r\n configTypeFromStore === \"view\" ||\r\n Object.values(weekIVFields).some(s => s || s !== \"\")\r\n ) {\r\n return true\r\n }\r\n return false\r\n }\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n error={!!weekIVFields.Label}\r\n helperText={weekIVFields.Label}\r\n />\r\n onFormChange(e)}\r\n error={\r\n errorMsg || invalidMsg || !!weekIVFields.VariableName\r\n ? true\r\n : false\r\n }\r\n helperText={getErrorMessage()}\r\n />\r\n\r\n \r\n \r\n {getTranslations(t, Translates.Type)}\r\n \r\n onFormChange(e)}\r\n >\r\n {promptTypeList?.map((name: any) => (\r\n \r\n {getTranslations(t, name)}\r\n \r\n ))}\r\n \r\n \r\n {form.Type === PromptTypes.CustomList ? (\r\n
    \r\n \r\n option}\r\n renderInput={params => (\r\n \r\n )}\r\n renderOption={(props, option, { selected }) => (\r\n
  • \r\n }\r\n style={{ marginRight: 8 }}\r\n checked={selected}\r\n />\r\n {option}\r\n
  • \r\n )}\r\n />\r\n \r\n
    \r\n ) : null}\r\n {form.Type === PromptTypes.Decimal ? (\r\n onFormChange(e)}\r\n />\r\n ) : null}\r\n onFormChange(e)}\r\n />\r\n
    \r\n
    \r\n \r\n
    \r\n onCancelClick()}\r\n data-testid=\"cancel\"\r\n >\r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n onSaveClick()}\r\n disabled={validationCheck()}\r\n data-testid=\"save\"\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\nexport default CreateEditPrompts\r\n","import { useLocation } from \"react-router-dom\"\r\nimport { CONFIG_MODULES } from \"src/utils/constants\"\r\nimport CreateEditPrompts from \"../Components/CreateEditPrompts\"\r\nimport { Grid } from \"@mui/material\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\nconst OutputCreateEditPrompts = () => {\r\n const location = useLocation() as any\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `audits`\r\n let variables: any = {\r\n audits: \"Output Prompt Details\"\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n\r\n return (\r\n <>\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n )\r\n}\r\nexport default OutputCreateEditPrompts\r\n","import { Button, Grid, Tooltip } from \"@mui/material\"\r\nimport BreadCrumb from \"../../BreadCrumb/BreadCrumb\"\r\nimport SaveOutlinedIcon from \"@mui/icons-material/SaveOutlined\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { setCustomerFormValues } from \"src/redux/slices/configSlice\"\r\nimport { useDispatch, useSelector } from \"react-redux\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { updateWarnOnTabChangeToStore } from \"src/configurationPortal/pages/helper\"\r\nconst InputFilesToolBar = ({ inputFilesSaveClick, setIsTabChangeCheck }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore: any = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n let search = window.location.search || \"\"\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `inputFiles`\r\n let variables: any = {\r\n inputFiles: getTranslations(t, Translates.Input_Files)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n const inputFilesToolbarSaveClick = () => {\r\n inputFilesSaveClick()\r\n }\r\n\r\n const handleNewInputFileClick = () => {\r\n setIsTabChangeCheck(false)\r\n dispatch(setCustomerFormValues({}))\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.SELECT_INPUT_FILE_TYPE + search)\r\n })\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.New_Input_File)}\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default InputFilesToolBar\r\n","export const INPUT_FILE_ACTION_TYPE = {\r\n EDIT: \"EDIT\",\r\n ADD: \"ADD\"\r\n}\r\nexport const INPUT_FILE_TYPE = {\r\n Auxiliary: \"Auxiliary\",\r\n CustomerFile: \"Customer File\",\r\n Delimited: \"Delimited\",\r\n Excel: \"Excel\",\r\n FixedLength: \"FixedLength\"\r\n}\r\nexport const FileTypeList = [\r\n { label: \"Department\", value: \"Department\" },\r\n { label: \"Variance Control\", value: \"VarianceControl\" },\r\n { label: \"Area Range File\", value: \"AreaRangeFile\" },\r\n { label: \"Custom\", value: \"Custom\" }\r\n]\r\nexport const FILE_TYPE_LIST = {\r\n AreaRangeFile: \"AreaRangeFile\"\r\n}\r\nexport const Auxiliary_Fields = {\r\n FileType: \"FileType\",\r\n Name: \"Name\",\r\n Description: \"Description\",\r\n LegacyProcessingCheck: \"LegacyProcessingCheck\",\r\n LegacyLocation: \"LegacyLocation\",\r\n CustomerMaintenanceCheck: \"CustomerMaintenanceCheck\",\r\n CustomRangeCheck: \"CustomRangeCheck\",\r\n RestrictRangesCheck: \"RestrictRangesCheck\"\r\n}\r\nexport const Customer_Fields = {\r\n Name: \"Name\",\r\n Description: \"Description\",\r\n LegacyLocation: \"LegacyLocation\",\r\n CustomerPortalCheck: \"CustomerPortalCheck\",\r\n InStoreCheck: \"InStoreCheck\",\r\n FileName: \"FileName\",\r\n Field: \"Field\",\r\n FileType: \"FileType\",\r\n HeaderRow: \"HeaderRow\",\r\n FieldDelimiter: \"FieldDelimiter\",\r\n RecordDelimiter: \"RecordDelimiter\",\r\n SurroundCharacter: \"SurroundCharacter\",\r\n ASCIICharValue: \"ASCIICharValue\"\r\n}\r\nexport const Customer_Input_Fields = {\r\n Name: \"Name\",\r\n DataType: \"DataType\",\r\n AllowedLengths: \"AllowedLengths\",\r\n Regex: \"Regex\",\r\n ErrorLevel: \"ErrorLevel\",\r\n Length: \"Length\"\r\n}\r\nexport const FileTypeRadioValueList = [\r\n {\r\n label: \"Fixed Length\",\r\n value: \"FixedLength\",\r\n noDataText: \"NO FIXED LENGTH DATA AVAILABLE\"\r\n },\r\n {\r\n label: \"Delimited\",\r\n value: \"Delimited\",\r\n noDataText: \"NO DELIMITED DATA AVAILABLE\"\r\n },\r\n { label: \"Excel\", value: \"Excel\", noDataText: \"NO EXCEL DATA AVAILABLE\" }\r\n]\r\nexport const FieldDelimiterList = [\"None\", \"Tab\", \"Comma\", \"Pipe\", \"Colon\"]\r\nexport const RecordDelimiterList = [\"CRLF\", \"LF\", \"CR\", \"None\", \"ASCIIChar(x)\"]\r\nexport const ErrorLevelList = [\"ERROR\", \"WARN\"]\r\nexport const DataTypeList = [\"NUMERIC\", \"DECIMAL\", \"TEXT\"]\r\nexport const nameErrorText = \"Name already exists\"\r\nexport const helperTextSelect =\r\n \"Please select at least one of the upload locations\"\r\nexport const fileTypeSelectText = \"Please select at least one of the file type\"\r\nexport const newCustomerFileText = \"New Customer File\"\r\nexport const newAuxiliaryFileText = \"New Auxiliary File\"\r\nexport const editField = \"Edit Field\"\r\nexport const addField = \"Add Field\"\r\nexport const tables = {\r\n Validation_Department: \"Validation_Department\",\r\n VarianceControl: \"VarianceControl\",\r\n Area_Range_File: \"Validation_AreaRange\"\r\n}\r\n","import trashIcon from \"../../../../src/assets/images/TrashIcon.svg\"\r\nimport editIcon from \"../../../../src/assets/images/Edit.png\"\r\nimport Warning from \"@mui/icons-material/Warning\"\r\nimport {\r\n Alert,\r\n AlertTitle,\r\n Checkbox,\r\n Grid,\r\n IconButton,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport { useDispatch } from \"react-redux\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport InputFilesToolBar from \"src/components/ConfigurationPortal/InputFilesToolBar/InputFilesToolBar\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport GlobalTable from \"src/components/GlobalTable/GlobalTable\"\r\nimport {\r\n INPUT_FILE_ACTION_TYPE,\r\n INPUT_FILE_TYPE\r\n} from \"src/constants/inputFiles\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport {\r\n setCustomerFormValues,\r\n setExcelInputFields,\r\n setDelimitedInputFields,\r\n setFixedLengthInputFields,\r\n setInputFiles,\r\n updateWarnOnTabChange\r\n} from \"src/redux/slices/configSlice\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { ConfigTabNames, updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { ConfigTabNavigateWarning } from \"src/hooks/ConfigTabNavigateWarning\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\nconst InputFiles = ({ liftInputFilesSaveClick }) => {\r\n const { t } = useTranslation()\r\n const {\r\n config: {\r\n inputFiles,\r\n configDetails,\r\n isGetConfigDecrypt,\r\n configType: configTypeFromStore\r\n }\r\n } = ConfigDataHook()\r\n const [isTabChangeCheck, setIsTabChangeCheck] = useState(true)\r\n ConfigTabNavigateWarning({\r\n componentName: ConfigTabNames.InputFiles,\r\n isTabChangeCheck: isTabChangeCheck\r\n })\r\n\r\n useEffect(() => {\r\n if (configDetails?.configuration && isGetConfigDecrypt) {\r\n const configObject = JSON.parse(configDetails.configuration)\r\n if (!configObject.hasOwnProperty(\"FilesRequired\")) {\r\n setCheckedProductFile(false)\r\n setCheckedDepartMentFile(false)\r\n } else {\r\n setCheckedProductFile(configObject.FilesRequired.ProductFileNotRequired)\r\n setCheckedDepartMentFile(\r\n configObject.FilesRequired.DepartmentFileNotRequired\r\n )\r\n }\r\n }\r\n }, [configDetails, isGetConfigDecrypt])\r\n const [checkedProductFile, setCheckedProductFile] = React.useState(false)\r\n const [checkedDepartMentFile, setCheckedDepartMentFile] =\r\n React.useState(false)\r\n const [isConfirmDeleteOpen, setIsConfirmDeleteOpen] = useState(false)\r\n const [renderData, setRenderData] = useState([] as any)\r\n const [deleteRow, setDeleteRow] = useState({} as any)\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n\r\n let search = window.location.search || \"\"\r\n useEffect(() => {\r\n dispatch(setCustomerFormValues({}))\r\n dispatch(setFixedLengthInputFields([]))\r\n dispatch(setDelimitedInputFields([]))\r\n dispatch(setExcelInputFields([]))\r\n }, [])\r\n\r\n useEffect(() => {\r\n setRenderData([...(inputFiles || [])])\r\n }, [inputFiles])\r\n\r\n const deleteInputFile = (row: any) => {\r\n setIsConfirmDeleteOpen(true)\r\n setDeleteRow(row)\r\n }\r\n const setDeleteContent = () => {\r\n let content = `${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} ${deleteRow.Name}?`\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {content}\r\n

    \r\n
    \r\n )\r\n }\r\n const callbackDeleteConfirmation = (res: boolean) => {\r\n if (res) {\r\n let dt: any\r\n if (deleteRow.Type === INPUT_FILE_TYPE.Auxiliary) {\r\n dt = renderData.filter(f => f.SortOrder !== deleteRow.SortOrder)\r\n } else {\r\n dt = renderData.filter(f => f.Name !== deleteRow.Name)\r\n }\r\n\r\n dt = dt.map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n dispatch(setInputFiles(dt))\r\n }\r\n setIsConfirmDeleteOpen(false)\r\n }\r\n const inputFilesSaveClick = () => {\r\n liftInputFilesSaveClick(\r\n [...inputFiles],\r\n \"InputFilesTab\",\r\n checkedProductFile,\r\n checkedDepartMentFile\r\n )\r\n }\r\n const handleChangeProductFile = (\r\n event: React.ChangeEvent\r\n ) => {\r\n setCheckedProductFile(event.target.checked)\r\n dispatch(updateWarnOnTabChange(true))\r\n setIsTabChangeCheck(false)\r\n }\r\n const handleChangeDepartMentFile = (\r\n event: React.ChangeEvent\r\n ) => {\r\n setCheckedDepartMentFile(event.target.checked)\r\n dispatch(updateWarnOnTabChange(true))\r\n setIsTabChangeCheck(false)\r\n }\r\n\r\n const editInputFile = (row: any) => {\r\n setIsTabChangeCheck(false)\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n if (row.original.Type === INPUT_FILE_TYPE.Auxiliary) {\r\n history.push(PATH.CREATE_EDIT_AUXILIARY_INPUT_FILE + search, {\r\n type: INPUT_FILE_ACTION_TYPE.EDIT,\r\n data: { ...row.original },\r\n index: row.index\r\n })\r\n } else if (row.original.Type === INPUT_FILE_TYPE.CustomerFile) {\r\n history.push(PATH.CREATE_EDIT_CUSTOMER_INPUT_FILE + search, {\r\n type: INPUT_FILE_ACTION_TYPE.EDIT,\r\n data: { ...row.original },\r\n index: row.index\r\n })\r\n }\r\n })\r\n }\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.Name),\r\n accessor: \"Name\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Description),\r\n accessor: \"Description\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Type),\r\n accessor: \"Type\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\",\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 150,\r\n Cell: props => {\r\n return (\r\n \r\n \r\n editInputFile(props.row)}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n deleteInputFile(props.row.original)}\r\n className={`${\r\n configTypeFromStore === \"view\" ? \"disable-img\" : \"pointer\"\r\n }`}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n ],\r\n [renderData, t]\r\n )\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.Product_File_Not_Required)}\r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.DepartMent_File_Not_Required)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {isConfirmDeleteOpen && (\r\n \r\n )}\r\n \r\n )\r\n }\r\n\r\n return (\r\n <>\r\n \r\n
    {displayGrid()}
    \r\n \r\n )\r\n}\r\n\r\nexport default InputFiles\r\n","export default __webpack_public_path__ + \"static/media/EditIcon.2a83718a.svg\";","import DeviceBg from \"src/assets/images/DeviceReservationBg.svg\"\r\nimport CloudUploadIcon from \"@mui/icons-material/CloudUpload\"\r\nimport { Grid, Button, Dialog } from \"@mui/material\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport MiniHeader from \"src/components/MiniHeader/MiniHeader\"\r\nimport editIcon from \"../../../../src/assets/images/EditIcon.svg\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { KEY_CODES } from \"src/utils/constants\"\r\nimport { useCallback } from \"react\"\r\nconst InputFileTypeSelect = () => {\r\n const history = useHistory()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config.configType\r\n )\r\n const { t } = useTranslation()\r\n let search = window.location.search || \"\"\r\n const handleClose = () => {\r\n history.push(PATH.INPUT_FILES + search)\r\n }\r\n const handleAFCKeyUp = useCallback((e: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n handleAuxiliaryFileClick()\r\n }\r\n }, [])\r\n \r\n const handleAuxiliaryFileClick = () => {\r\n history.push(PATH.CREATE_EDIT_AUXILIARY_INPUT_FILE + search)\r\n }\r\n const handleCFCKeyUp = useCallback((e: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n handleCustomerFileClick()\r\n }\r\n }, [])\r\n const handleCustomerFileClick = () => {\r\n history.push(PATH.CREATE_EDIT_CUSTOMER_INPUT_FILE + search)\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.ADD_NEW_INPUT_FILE)}\r\n

    \r\n
    \r\n \r\n

    \r\n {`${getTranslations(t, Translates.Select_Option)}:`}\r\n

    \r\n \r\n \r\n \r\n \r\n

    {`${getTranslations(t, Translates.Auxiliary_File_Maint)}`}

    \r\n \r\n
    \r\n \r\n \r\n \r\n

    {getTranslations(t, Translates.Customer_File_Tape)}

    \r\n \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \"device\r\n \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default InputFileTypeSelect\r\n","//BEGIN-NOSCAN\r\nimport ApiService from \"src/utils/useAxios\"\r\nconst api = new ApiService()\r\nexport class ConfigurationService {\r\n getColumnNamesAndDataTypes() {\r\n const endPoint = `api/ConfigurationPortal/GetColumnNamesAndDataTypes`\r\n return api.findAll(endPoint)\r\n }\r\n}\r\n//END-NOSCAN\r\n","import {\r\n Button,\r\n FormControlLabel,\r\n Grid,\r\n Radio,\r\n RadioGroup,\r\n TextField,\r\n FormControl,\r\n Divider,\r\n Checkbox\r\n} from \"@mui/material\"\r\nimport React, { useEffect, useRef, useState } from \"react\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\nimport {\r\n Auxiliary_Fields,\r\n FileTypeList,\r\n INPUT_FILE_ACTION_TYPE,\r\n INPUT_FILE_TYPE,\r\n tables\r\n} from \"src/constants/inputFiles\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport { useDispatch, useSelector } from \"react-redux\"\r\nimport {\r\n getTranslations,\r\n handleFocus,\r\n setWeekFieldError\r\n} from \"src/utils/helper\"\r\nimport GlobalTable from \"src/components/GlobalTable/GlobalTable\"\r\nimport { setInputFiles } from \"src/redux/slices/configSlice\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { ConfigurationService } from \"src/service/configuration.service\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { onCancelClick } from \"../FunctionHelper\"\r\nimport { FILE_TYPE_LIST } from \"src/constants/inputFiles\"\r\nimport NotificationEmail from '../Components/NotificationEmail'\r\n\r\ninterface IForm {\r\n FileType: string\r\n Name: string\r\n CustomName: string\r\n Description: string\r\n LegacyProcessingCheck: boolean\r\n LegacyLocation: string\r\n CustomerMaintenanceCheck: boolean\r\n CustomRangeCheck: boolean\r\n RestrictRangesCheck: boolean\r\n AuxiliaryFile: any\r\n Type: string\r\n Notification: {\r\n Email: string[]\r\n }\r\n}\r\n\r\nconst CreateEditInputFileAuxiliary = () => {\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const { t } = useTranslation()\r\n const configData = useSelector((state: RootState) => state.config)\r\n const [loading, setLoading] = useState(false)\r\n const dispatch = useDispatch()\r\n const history = useHistory()\r\n let search = window.location.search\r\n const legacyLocationRef = useRef(null)\r\n const [data, setData] = useState([] as any)\r\n const formIniVal = {\r\n FileType: \"\",\r\n Name: \"\",\r\n Description: \"\",\r\n LegacyProcessingCheck: false,\r\n LegacyLocation: \"\",\r\n CustomerMaintenanceCheck: false,\r\n RestrictRangesCheck: true,\r\n CustomRangeCheck: false,\r\n AuxiliaryFile: [],\r\n Type: INPUT_FILE_TYPE.Auxiliary\r\n }\r\n const [fileOptionFormValues, setFileOptionFormValues] = React.useState({\r\n department: formIniVal,\r\n varianceControl: formIniVal,\r\n areaRangeFile: formIniVal,\r\n custom: formIniVal\r\n })\r\n const [form, setForm] = React.useState(formIniVal as IForm)\r\n const [duplicateNameError, setDuplicateNameError] = useState(false)\r\n const [nameError, setNameError] = useState(false)\r\n const [emptyError, setEmptyError] = useState(false)\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n Name: \"\"\r\n })\r\n const [legacyError, setLegacyError] = useState(false)\r\n const [notificationChips, setnotificationChips] = useState([] as any)\r\n const [isNotificationValid, setIsNotificationValid] = useState(true)\r\n\r\n const location: any = useLocation()\r\n let locationState: any = { ...location.state }\r\n const [tableData, setTableData] = useState([] as any)\r\n const configService = new ConfigurationService()\r\n useEffect(() => {\r\n getColumnNamesAndDataTypes()\r\n const notification= configTypeFromStore?.Notification\r\n const notificationlocationStateDestination = locationState.data?.Notification\r\n if (notification && Object.keys(notification).length) {\r\n setnotificationChips(notification.Email)\r\n } else if (locationState.data) {\r\n setnotificationChips(notificationlocationStateDestination?.Email)\r\n }\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n if (\r\n locationState.data.FileType === FileTypeList[0].value ||\r\n locationState.data.FileType === FileTypeList[1].value ||\r\n locationState.data.FileType === FileTypeList[2].value\r\n ) {\r\n setData(locationState.data.AuxiliaryFile)\r\n }\r\n setForm({\r\n ...locationState.data\r\n })\r\n }\r\n }, [])\r\n const getColumnNamesAndDataTypes = async () => {\r\n setLoading(true)\r\n await configService\r\n .getColumnNamesAndDataTypes()\r\n .then((temp: any) => {\r\n setTableData(temp.data)\r\n })\r\n .catch(err => {\r\n console.log(err.Message || err)\r\n })\r\n .finally(() => setLoading(false))\r\n }\r\n\r\n const setFormValueBySelectFileType = (oldVal, newVal) => {\r\n if (\r\n oldVal === FileTypeList[0].value ||\r\n (!oldVal && newVal === FileTypeList[0].value)\r\n ) {\r\n setFileOptionFormValues(oVal => ({ ...oVal, department: form }))\r\n } else if (\r\n oldVal === FileTypeList[1].value ||\r\n (!oldVal && newVal === FileTypeList[1].value)\r\n ) {\r\n setFileOptionFormValues(oVal => ({ ...oVal, varianceControl: form }))\r\n } else if (\r\n oldVal === FileTypeList[2].value ||\r\n (!oldVal && newVal === FileTypeList[2].value)\r\n ) {\r\n setFileOptionFormValues(oVal => ({ ...oVal, areaRangeFile: form }))\r\n } else if (\r\n oldVal === FileTypeList[3].value ||\r\n (!oldVal && newVal === FileTypeList[3].value)\r\n ) {\r\n setFileOptionFormValues(oVal => ({ ...oVal, custom: form }))\r\n }\r\n\r\n if (oldVal) {\r\n let formV: any = {}\r\n if (newVal === FileTypeList[0].value) {\r\n formV = fileOptionFormValues.department\r\n } else if (newVal === FileTypeList[1].value) {\r\n formV = fileOptionFormValues.varianceControl\r\n } else if (newVal === FileTypeList[2].value) {\r\n formV = fileOptionFormValues.areaRangeFile\r\n } else if (newVal === FileTypeList[3].value) {\r\n formV = fileOptionFormValues.custom\r\n }\r\n setForm(oVal => ({ ...oVal, ...formV }))\r\n if (formV?.Name) {\r\n onFormChange({\r\n target: { name: Auxiliary_Fields.Name, value: formV.Name }\r\n })\r\n }\r\n }\r\n }\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value\r\n const checked = e.target.checked || false\r\n const fileTypePreVal = form.FileType\r\n if (e.target.name === Auxiliary_Fields.FileType) {\r\n // dont change this condition place to bottom\r\n setFormValueBySelectFileType(fileTypePreVal, val)\r\n }\r\n if (e.target.name) {\r\n setForm(oldVal => ({ ...oldVal, [e.target.name]: val }))\r\n }\r\n if (e.target.name === Auxiliary_Fields.LegacyProcessingCheck) {\r\n setLegacyError(false)\r\n if (checked) {\r\n setTimeout(() => {\r\n legacyLocationRef.current.focus()\r\n }, 50)\r\n }\r\n setForm(oldVal => ({ ...oldVal, [e.target.name]: checked }))\r\n }\r\n if (e.target.name === Auxiliary_Fields.CustomerMaintenanceCheck) {\r\n setForm(oldVal => ({ ...oldVal, [e.target.name]: checked }))\r\n }\r\n if (e.target.name === Auxiliary_Fields.CustomRangeCheck) {\r\n setForm(oldVal => ({ ...oldVal, [e.target.name]: checked }))\r\n }\r\n if (e.target.name === Auxiliary_Fields.RestrictRangesCheck) {\r\n setForm({ ...form, [e.target.name]: checked })\r\n }\r\n if (e.target.name === Auxiliary_Fields.FileType) {\r\n if (val === FileTypeList[0].value) {\r\n tableData.forEach(t => {\r\n if (t.tableName === tables.Validation_Department) {\r\n setData(t.columnsName)\r\n }\r\n })\r\n setForm(oldVal => ({\r\n ...oldVal,\r\n [e.target.name]: val,\r\n AuxiliaryFile: []\r\n }))\r\n } else if (val === FileTypeList[1].value) {\r\n tableData.forEach(t => {\r\n if (t.tableName === tables.VarianceControl) {\r\n setData(t.columnsName)\r\n }\r\n })\r\n setForm(oldVal => ({\r\n ...oldVal,\r\n [e.target.name]: val,\r\n AuxiliaryFile: []\r\n }))\r\n } else if (val === FileTypeList[2].value) {\r\n tableData.forEach(t => {\r\n if (t.tableName === tables.Area_Range_File) {\r\n setData(t.columnsName)\r\n }\r\n })\r\n setForm(oldVal => ({\r\n ...oldVal,\r\n [e.target.name]: val,\r\n AuxiliaryFile: []\r\n }))\r\n } else {\r\n setForm(oldVal => ({\r\n ...oldVal,\r\n [e.target.name]: val,\r\n AuxiliaryFile: []\r\n }))\r\n }\r\n }\r\n if (e.target.name === Auxiliary_Fields.Name) {\r\n setDuplicateNameError(false)\r\n\r\n setEmptyError(false)\r\n setNameError(false)\r\n if (!val) {\r\n setNameError(true)\r\n setEmptyError(true)\r\n }\r\n setForm(oldVal => ({\r\n ...oldVal,\r\n [e.target.name]: val\r\n }))\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n }\r\n if (e.target.name === Auxiliary_Fields.Description) {\r\n setForm(oldVal => ({\r\n ...oldVal,\r\n [e.target.name]: val\r\n }))\r\n }\r\n if (e.target.name === Auxiliary_Fields.LegacyLocation) {\r\n setLegacyError(false)\r\n setForm(oldVal => ({\r\n ...oldVal,\r\n [e.target.name]: val\r\n }))\r\n }\r\n \r\n\r\n }\r\n const getLookupBreadcrumb = () => {\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n return `${locationState.data.Name}`\r\n } else {\r\n return getTranslations(t, Translates.New_Auxiliary_File)\r\n }\r\n }\r\n const getBreadcrumbConfig = () => {\r\n let inputFiles = \"inputFiles\"\r\n let custLinks: any = {}\r\n custLinks[\"@inputFiles\"] = \"configuration/inputFiles\"\r\n let newAuxiliaryFile = getTranslations(t, Translates.New_Auxiliary_File)\r\n let currentPath: string = `##configuration##/@${inputFiles}/${newAuxiliaryFile}`\r\n let variables: any = {}\r\n variables[`@${inputFiles}`] = getTranslations(t, Translates.Input_Files)\r\n variables[`${newAuxiliaryFile}`] = getLookupBreadcrumb()\r\n let bConfig: any = {\r\n custLinks,\r\n showHomeIcon: false,\r\n currentPath,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n\r\n const onSaveClick = () => {\r\n const inputFiles = configData?.inputFiles || []\r\n const _sortOrder =\r\n inputFiles.length > 0\r\n ? inputFiles.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n const _item = {\r\n FileType: form.FileType,\r\n Name: form.Name,\r\n Description: form.Description,\r\n LegacyProcessingCheck: form.LegacyProcessingCheck,\r\n LegacyLocation: form.LegacyLocation,\r\n RestrictRangesCheck: form.RestrictRangesCheck,\r\n CustomerMaintenanceCheck: form.CustomerMaintenanceCheck,\r\n CustomRangeCheck:\r\n form.FileType === FileTypeList[2].value ? form.CustomRangeCheck : false,\r\n AuxiliaryFile: data,\r\n Type: INPUT_FILE_TYPE.Auxiliary,\r\n SortOrder: _sortOrder + 1,\r\n Notification:{\r\n Email: notificationChips\r\n },\r\n }\r\n let error: any = false\r\n const customerObject: any = inputFiles.find(\r\n (i: any) => i.Name === form.Name && form.Name !== locationState.data?.Name\r\n )\r\n if (customerObject) {\r\n setDuplicateNameError(true)\r\n window.scrollTo({ top: 0, left: 0, behavior: \"smooth\" })\r\n error = true\r\n } else if (form.LegacyProcessingCheck && !form.LegacyLocation) {\r\n setLegacyError(true)\r\n error = true\r\n }\r\n if (!error) {\r\n setNameError(false)\r\n\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n let foundIndex: number = Number(locationState.index)\r\n if (foundIndex !== -1) {\r\n let newArr = [...inputFiles]\r\n newArr[foundIndex] = _item\r\n dispatch(setInputFiles([...newArr]))\r\n } else {\r\n dispatch(setInputFiles([...inputFiles, _item]))\r\n }\r\n } else {\r\n dispatch(setInputFiles([...inputFiles, _item]))\r\n }\r\n\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.INPUT_FILES + search)\r\n })\r\n }\r\n }\r\n\r\n const commonValues = {\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 250,\r\n Cell: props => {\r\n return props.value ? props.value : \"-\"\r\n }\r\n }\r\n\r\n const columnHeadersList: any = [\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Name),\r\n accessor: \"columnName\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Data_Type),\r\n accessor: \"dataType\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Allowed_Lengths),\r\n accessor: \"characterLength\"\r\n },\r\n ...commonValues\r\n }\r\n ]\r\n\r\n const columnsData = React.useMemo(\r\n () =>\r\n [\r\n columnHeadersList.map(id => {\r\n return {\r\n Header: id.Header,\r\n accessor: id.accessor,\r\n headerClassName: id.headerClassName,\r\n disableFilters: id.disableFilters,\r\n disableSortBy: id.disableSortBy,\r\n setWidth: id.setWidth,\r\n Cell: id.Cell\r\n }\r\n })\r\n ].flat(Infinity),\r\n [data, t]\r\n )\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n\r\n const getNameError = () => {\r\n if (nameError || emptyError) {\r\n return getTranslations(t, Translates.Name_cannot_be_empty)\r\n } else if (duplicateNameError) {\r\n return getTranslations(t, Translates.Name_already_exists)\r\n } else if (weekIVFields.Name) {\r\n return weekIVFields.Name\r\n }\r\n return \"\"\r\n }\r\n return (\r\n <>\r\n {loading ? (\r\n Loader()\r\n ) : (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.FILE)}\r\n \r\n \r\n onFormChange(e)}\r\n >\r\n {FileTypeList.map(m => {\r\n return (\r\n }\r\n label={getTranslations(t, m.label)}\r\n />\r\n )\r\n })}\r\n \r\n \r\n \r\n \r\n onFormChange(e)}\r\n onFocus={handleFocus}\r\n value={form.Name}\r\n variant=\"filled\"\r\n className=\"custom-form-control mt-3\"\r\n error={\r\n nameError ||\r\n emptyError ||\r\n duplicateNameError ||\r\n !!weekIVFields.Name\r\n }\r\n helperText={getNameError()}\r\n />\r\n \r\n \r\n onFormChange(e)}\r\n onFocus={handleFocus}\r\n value={form.Description}\r\n variant=\"filled\"\r\n className=\"custom-form-control mt-3\"\r\n />\r\n \r\n
    \r\n \r\n \r\n \r\n {form.FileType !== FILE_TYPE_LIST.AreaRangeFile ? (\r\n <>\r\n onFormChange(e)}\r\n checked={form.LegacyProcessingCheck}\r\n className=\"custom-check light\"\r\n name=\"LegacyProcessingCheck\"\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Used_by_Legacy_Processing\r\n )}\r\n />\r\n {form.LegacyProcessingCheck ? (\r\n onFormChange(e)}\r\n onFocus={handleFocus}\r\n value={form.LegacyLocation}\r\n variant=\"filled\"\r\n className=\"custom-form-control\"\r\n error={legacyError}\r\n helperText={\r\n legacyError\r\n ? getTranslations(\r\n t,\r\n Translates.Please_enter_legacy_location\r\n )\r\n : \"\"\r\n }\r\n />\r\n ) : null}\r\n \r\n ) : null}\r\n\r\n onFormChange(e)}\r\n checked={form.CustomerMaintenanceCheck}\r\n className=\"custom-check light\"\r\n name=\"CustomerMaintenanceCheck\"\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Allow_Customer_Maintenance\r\n )}\r\n />\r\n {form.FileType === FILE_TYPE_LIST.AreaRangeFile && (\r\n onFormChange(e)}\r\n checked={form.RestrictRangesCheck}\r\n className=\"custom-check light\"\r\n name=\"RestrictRangesCheck\"\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(\r\n t,\r\n Translates.Restrict_Ranges_to_File_Values\r\n )}\r\n />\r\n )}\r\n \r\n \r\n\r\n {form.FileType === \"Custom\" ? (\r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.CUSTOM_FILE_FORMAT)}\r\n \r\n onFormChange(e)}\r\n checked={form.CustomRangeCheck}\r\n className=\"custom-check light\"\r\n name=\"CustomRangeCheck\"\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Range_File)}\r\n />\r\n
    \r\n ) : null}\r\n
    \r\n {form.FileType === \"Department\" ||\r\n form.FileType === FILE_TYPE_LIST.AreaRangeFile ||\r\n form.FileType === \"VarianceControl\" ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.AUXILIARY_FILE)}\r\n \r\n {displayGrid()}\r\n \r\n \r\n ) : null}\r\n \r\n \r\n
    \r\n {\r\n onCancelClick(history)\r\n }}\r\n >\r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n s || s !== \"\")\r\n }\r\n onClick={onSaveClick}\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default CreateEditInputFileAuxiliary\r\n","import {\r\n Alert,\r\n AlertTitle,\r\n Autocomplete,\r\n Button,\r\n Checkbox,\r\n Divider,\r\n FormControl,\r\n FormControlLabel,\r\n FormGroup,\r\n FormHelperText,\r\n Grid,\r\n IconButton,\r\n Radio,\r\n RadioGroup,\r\n TextField,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\nimport {\r\n Customer_Fields,\r\n Customer_Input_Fields,\r\n FieldDelimiterList,\r\n FileTypeRadioValueList,\r\n INPUT_FILE_ACTION_TYPE,\r\n INPUT_FILE_TYPE,\r\n RecordDelimiterList\r\n} from \"src/constants/inputFiles\"\r\nimport { useDispatch, useSelector } from \"react-redux\"\r\nimport {\r\n setCustomerFormValues,\r\n setDelimitedInputFields,\r\n setExcelInputFields,\r\n setFixedLengthInputFields,\r\n setInputFiles\r\n} from \"src/redux/slices/configSlice\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport {\r\n getTranslations,\r\n handleFocus,\r\n setWeekFieldError\r\n} from \"src/utils/helper\"\r\nimport GlobalTableDragDrop from \"src/components/GlobalTable/GlobalTableDragDrop\"\r\nimport ConfirmDialog from \"src/components/ConfirmDialog/ConfirmDialog\"\r\nimport editIcon from \"src/assets/images/Edit.png\"\r\nimport TrashIcon from \"src/assets/images/TrashIcon.svg\"\r\nimport Warning from \"@mui/icons-material/Warning\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport NotificationEmail from \"../Components/NotificationEmail\"\r\ninterface IForm {\r\n Name: string\r\n Description: string\r\n LegacyLocation: string\r\n CustomerPortalCheck: boolean\r\n InStoreCheck: boolean\r\n FileName: string\r\n Position: string\r\n FileType: string\r\n HeaderRow: boolean\r\n FieldDelimiter: string\r\n RecordDelimiter: string\r\n SurroundCharacter: string\r\n Fields: any\r\n ASCIICharValue: any\r\n Notification: {\r\n Email: string[]\r\n }\r\n}\r\nconst CreateEditInputFileCustomer = () => {\r\n const { t } = useTranslation()\r\n const configData = useSelector((state: RootState) => state.config)\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const [loading, setLoading] = useState(false)\r\n const [duplicateNameError, setDuplicateNameError] = useState(false)\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n let search = window.location.search\r\n const [form, setForm] = React.useState({\r\n Name: \"\",\r\n Description: \"\",\r\n LegacyLocation: \"\",\r\n CustomerPortalCheck: false,\r\n InStoreCheck: false,\r\n FileName: \"\",\r\n Position: \"\",\r\n FileType: \"\",\r\n HeaderRow: false,\r\n FieldDelimiter: \"\",\r\n RecordDelimiter: \"\",\r\n SurroundCharacter: \"\",\r\n Fields: [],\r\n ASCIICharValue: \"\",\r\n Notification: {\r\n Email: []\r\n }\r\n } as IForm)\r\n const location: any = useLocation()\r\n let locationState: any = { ...location.state }\r\n const [helperText, setHelperText] = React.useState(\"\")\r\n const [fileTypeError, setFileTypeError] = React.useState(\"\")\r\n const [nameError, setNameError] = useState(false)\r\n const [recordDelimiterError, setRecordDelimiterError] = useState(false)\r\n const [emptyError, setEmptyError] = useState(false)\r\n const [deleteRow, setDeleteRow] = useState({} as any)\r\n const [isConfirmDeleteOpen, setIsConfirmDeleteOpen] = useState(false)\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n Name: \"\"\r\n })\r\n const [notificationChips, setnotificationChips] = useState([] as any)\r\n const [isNotificationValid, setIsNotificationValid] = useState(true)\r\n const fixedLengthInputFields = useSelector(\r\n (state: RootState) => state.config?.fixedLengthInputFields\r\n )\r\n const delimitedInputFields = useSelector(\r\n (state: RootState) => state.config?.delimitedInputFields\r\n )\r\n const excelInputFields = useSelector(\r\n (state: RootState) => state.config?.excelInputFields\r\n )\r\n const customerFormValues = useSelector(\r\n (state: RootState) => state.config?.customerFormValues\r\n )\r\n let columnHeadersList: any\r\n const [inputFieldValue, setInputFieldValue] = React.useState(\"\")\r\n const [inputRecordValue, setInputRecordValue] = React.useState(\"\")\r\n const [surroundCharacterValue, setSurroundCharacterValue] = React.useState(\"\")\r\n const surroundCharacterValues = ['\"\"', \"''\"]\r\n useEffect(() => {\r\n setLoading(true)\r\n const notification= configTypeFromStore?.Notification\r\n const notificationlocationStateDestination = locationState.data?.Notification\r\n if (\r\n !fixedLengthInputFields?.length &&\r\n locationState.data?.Fields?.length &&\r\n locationState.data.FileType === FileTypeRadioValueList[0].value\r\n ) {\r\n dispatch(setFixedLengthInputFields(locationState.data.Fields))\r\n }\r\n if (\r\n !delimitedInputFields?.length &&\r\n locationState.data?.Fields?.length &&\r\n locationState.data.FileType === FileTypeRadioValueList[1].value\r\n ) {\r\n dispatch(setDelimitedInputFields(locationState.data.Fields))\r\n }\r\n if (\r\n !excelInputFields?.length &&\r\n locationState.data?.Fields?.length &&\r\n locationState.data.FileType === FileTypeRadioValueList[2].value\r\n ) {\r\n dispatch(setExcelInputFields(locationState.data.Fields))\r\n }\r\n if (customerFormValues && Object.keys(customerFormValues).length) {\r\n setForm({\r\n ...customerFormValues\r\n })\r\n } else {\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n setForm({\r\n ...locationState.data\r\n })\r\n }\r\n }\r\n if (notification && Object.keys(notification).length) {\r\n setnotificationChips(notification.Email)\r\n } else if (locationState.data) {\r\n setnotificationChips(notificationlocationStateDestination?.Email)\r\n }\r\n\r\n setLoading(false)\r\n }, [customerFormValues])\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value\r\n const checked = e.target.checked\r\n if (e.target.name) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target.name === Customer_Fields.CustomerPortalCheck) {\r\n setHelperText(\"\")\r\n setForm({ ...form, [e.target.name]: checked })\r\n }\r\n if (e.target.name === Customer_Fields.InStoreCheck) {\r\n setHelperText(\"\")\r\n setForm({ ...form, [e.target.name]: checked })\r\n }\r\n if (e.target.name === Customer_Fields.Name) {\r\n setDuplicateNameError(false)\r\n if (val) {\r\n setEmptyError(false)\r\n setNameError(false)\r\n } else {\r\n setNameError(true)\r\n setEmptyError(true)\r\n }\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n }\r\n\r\n if (e.target.name === Customer_Fields.FileType) {\r\n setFileTypeError(\"\")\r\n if (val === FileTypeRadioValueList[0].value) {\r\n columnHeadersList = columnHeadersList.splice(2, 2)\r\n }\r\n }\r\n if (e.target.name === Customer_Fields.HeaderRow) {\r\n setForm({ ...form, [e.target.name]: checked })\r\n }\r\n if (e.target.name === Customer_Fields.ASCIICharValue) {\r\n setRecordDelimiterError(false)\r\n }\r\n }\r\n const onFormDelimitedChange = e => {\r\n setForm({ ...form, FieldDelimiter: e })\r\n }\r\n const onFormRecordChange = e => {\r\n setRecordDelimiterError(false)\r\n setForm({ ...form, RecordDelimiter: e })\r\n }\r\n const onFormSurroundCharacterChange = e => {\r\n setForm({ ...form, SurroundCharacter: e })\r\n }\r\n const getLookupBreadcrumb = () => {\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n return `${locationState.data?.Name}`\r\n } else {\r\n return getTranslations(t, Translates.New_Customer_File)\r\n }\r\n }\r\n const getBreadcrumbConfig = () => {\r\n let inputFiles = \"inputFiles\"\r\n let custLinks: any = {}\r\n custLinks[\"@inputFiles\"] = \"configuration/inputFiles\"\r\n let newCustomerFile = getTranslations(t, Translates.New_Customer_File)\r\n let currentPath: string = `##configuration##/@${inputFiles}/${newCustomerFile}`\r\n let variables: any = {}\r\n variables[`@${inputFiles}`] = getTranslations(t, Translates.Input_Files)\r\n variables[`${newCustomerFile}`] = getLookupBreadcrumb()\r\n let bConfig: any = {\r\n custLinks,\r\n showHomeIcon: false,\r\n currentPath,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n dispatch(setFixedLengthInputFields([]))\r\n dispatch(setDelimitedInputFields([]))\r\n dispatch(setExcelInputFields([]))\r\n dispatch(setCustomerFormValues({}))\r\n history.goBack()\r\n }\r\n const onSaveClick = () => {\r\n const inputFiles = configData?.inputFiles || []\r\n let _item = {\r\n Name: form.Name,\r\n Description: form.Description,\r\n LegacyLocation: form.LegacyLocation,\r\n CustomerPortalCheck: form.CustomerPortalCheck,\r\n InStoreCheck: form.InStoreCheck,\r\n Type: INPUT_FILE_TYPE.CustomerFile,\r\n FileType: form.FileType,\r\n HeaderRow: form.HeaderRow,\r\n Fields: getInputFieldsData(),\r\n Notification:{\r\n Email: notificationChips\r\n },\r\n }\r\n const getItem = () => {\r\n if (form.FileType === FileTypeRadioValueList[1].value) {\r\n let delimitedPayload: any = {\r\n ..._item,\r\n FieldDelimiter: form.FieldDelimiter,\r\n RecordDelimiter: form.RecordDelimiter,\r\n SurroundCharacter: form.SurroundCharacter\r\n }\r\n if (form.RecordDelimiter === RecordDelimiterList[4]) {\r\n delimitedPayload = {\r\n ...delimitedPayload,\r\n ASCIICharValue: form.ASCIICharValue\r\n }\r\n }\r\n return delimitedPayload\r\n } else {\r\n return _item\r\n }\r\n }\r\n\r\n let error: any = false\r\n const customerObject: any = inputFiles.find(\r\n (i: any, idx) => i.Name === form.Name && idx !== locationState.index\r\n )\r\n if (customerObject) {\r\n setDuplicateNameError(true)\r\n window.scrollTo({ top: 0, left: 0, behavior: \"smooth\" })\r\n error = true\r\n } else if (!form.CustomerPortalCheck && !form.InStoreCheck) {\r\n error = true\r\n setHelperText(\r\n getTranslations(\r\n t,\r\n Translates.Please_select_at_least_one_of_the_upload_locations\r\n )\r\n )\r\n } else if (!form.FileType) {\r\n error = true\r\n setFileTypeError(\r\n getTranslations(\r\n t,\r\n Translates.Please_select_at_least_one_of_the_file_type\r\n )\r\n )\r\n }\r\n //istanbul ignore next\r\n else if (form.Name === \"\") {\r\n error = true\r\n setNameError(true)\r\n }\r\n //istanbul ignore next\r\n else if (\r\n form.RecordDelimiter === RecordDelimiterList[4] &&\r\n (form.ASCIICharValue === \"\" || form.ASCIICharValue === undefined)\r\n ) {\r\n error = true\r\n setRecordDelimiterError(true)\r\n } else {\r\n setDuplicateNameError(false)\r\n }\r\n if (!error) {\r\n setNameError(false)\r\n let preparedItem: any = form.InStoreCheck\r\n ? {\r\n ...getItem(),\r\n FileName: form.FileName,\r\n Position: form.Position\r\n }\r\n : getItem()\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n let foundIndex: any = inputFiles.findIndex(x => {\r\n return x.Name === locationState.data.Name\r\n })\r\n let newArr = [...inputFiles]\r\n newArr[foundIndex] = preparedItem\r\n dispatch(setInputFiles([...newArr]))\r\n } else {\r\n dispatch(setInputFiles([...inputFiles, preparedItem]))\r\n }\r\n\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.INPUT_FILES + search)\r\n })\r\n }\r\n }\r\n\r\n const displaySpan = (props: any) => {\r\n return {props.value ? props.value : \"-\"}\r\n }\r\n const deleteField = (row: any) => {\r\n setIsConfirmDeleteOpen(true)\r\n setDeleteRow(row)\r\n }\r\n const setDeleteContent = () => {\r\n const title = `${getTranslations(\r\n t,\r\n Translates.Are_you_sure_you_want_to_delete\r\n )} ${deleteRow.Name}?`\r\n return (\r\n } className=\"custom-alert\">\r\n \r\n

    {getTranslations(t, Translates.Warning)}

    \r\n
    \r\n

    \r\n {\" \"}\r\n {title}\r\n

    \r\n
    \r\n )\r\n }\r\n const callbackDeleteConfirmation = (res: boolean) => {\r\n if (form.FileType === FileTypeRadioValueList[0].value) {\r\n if (res) {\r\n let dt: any\r\n dt = fixedLengthInputFields.filter(f => f.Name !== deleteRow.Name)\r\n dt = dt.map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n dispatch(setFixedLengthInputFields(dt))\r\n }\r\n } else if (form.FileType === FileTypeRadioValueList[1].value) {\r\n if (res) {\r\n let dt: any\r\n dt = delimitedInputFields.filter(f => f.Name !== deleteRow.Name)\r\n dt = dt.map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n dispatch(setDelimitedInputFields(dt))\r\n }\r\n } else {\r\n if (res) {\r\n let dt: any\r\n dt = excelInputFields.filter(f => f.Name !== deleteRow.Name)\r\n dt = dt.map((m: any, i) => {\r\n return { ...m, SortOrder: i + 1 }\r\n })\r\n dispatch(setExcelInputFields(dt))\r\n }\r\n }\r\n setIsConfirmDeleteOpen(false)\r\n }\r\n const editField = (row: any) => {\r\n dispatch(setCustomerFormValues(form))\r\n history.push(PATH.CREATE_INPUT_FIELDS + search, {\r\n type: INPUT_FILE_ACTION_TYPE.EDIT,\r\n radioValue: form.FileType,\r\n data: row,\r\n index: Number(row.id)\r\n })\r\n }\r\n const commonValues = {\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 150\r\n }\r\n columnHeadersList = [\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.Sort),\r\n accessor: \"SortOrder\"\r\n },\r\n ...commonValues,\r\n ...{ setWidth: 2 }\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.Name), accessor: \"Name\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.LENGTH), accessor: \"Length\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.DATA_TYPE),\r\n accessor: \"DataType\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.ALLOWED_LENGTHS),\r\n accessor: \"AllowedLengths\"\r\n },\r\n ...commonValues\r\n },\r\n {\r\n ...{ Header: getTranslations(t, Translates.Reg_Ex), accessor: \"Regex\" },\r\n ...commonValues\r\n },\r\n {\r\n ...{\r\n Header: getTranslations(t, Translates.ERROR_LEVEL),\r\n accessor: \"ErrorLevel\"\r\n },\r\n ...commonValues\r\n }\r\n ]\r\n const getColumnHeaders = () => {\r\n if (form.FileType === FileTypeRadioValueList[0].value) {\r\n return columnHeadersList.splice(0, 6)\r\n } else {\r\n return columnHeadersList.filter(\r\n f => f.accessor !== Customer_Input_Fields.Length\r\n )\r\n }\r\n }\r\n let columnsData = React.useMemo(\r\n () => [\r\n getColumnHeaders().map(id => {\r\n return {\r\n Header: id.Header,\r\n accessor: id.accessor,\r\n headerClassName: id.headerClassName,\r\n disableFilters: id.disableFilters,\r\n disableSortBy: id.disableSortBy,\r\n setWidth: id.setWidth,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n }\r\n }),\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 150,\r\n Cell: props => {\r\n return (\r\n \r\n \r\n \r\n editField({\r\n ...props.row.original,\r\n ...{ id: props.row.id }\r\n })\r\n }\r\n >\r\n \"EditIcon\"\r\n \r\n \r\n \r\n \r\n \r\n deleteField({\r\n ...props.row.original,\r\n ...{ id: props.row.id }\r\n })\r\n }\r\n className={`${\r\n configTypeFromStore === \"view\" ? \"disable-img\" : \"pointer\"\r\n }`}\r\n >\r\n \"TrashIcon\"\r\n \r\n \r\n \r\n \r\n )\r\n }\r\n }\r\n ],\r\n [form, t]\r\n )\r\n columnsData = columnsData.flat(Infinity)\r\n const getInputFieldsData = () => {\r\n let returnArr: any = []\r\n if (form.FileType === FileTypeRadioValueList[0].value) {\r\n returnArr = fixedLengthInputFields\r\n } else if (form.FileType === FileTypeRadioValueList[1].value) {\r\n returnArr = delimitedInputFields\r\n } else {\r\n returnArr = excelInputFields\r\n }\r\n return returnArr || []\r\n }\r\n const displayGrid = () => {\r\n return (\r\n \r\n \r\n \r\n \r\n {isConfirmDeleteOpen && (\r\n \r\n )}\r\n \r\n )\r\n }\r\n const getTableTitle = () => {\r\n if (form.FileType === INPUT_FILE_TYPE.Excel) {\r\n return getTranslations(t, FileTypeRadioValueList[2].value.toUpperCase())\r\n } else if (form.FileType === INPUT_FILE_TYPE.Delimited) {\r\n return getTranslations(t, FileTypeRadioValueList[1].value.toUpperCase())\r\n } else {\r\n return getTranslations(t, FileTypeRadioValueList[0].label.toUpperCase())\r\n }\r\n }\r\n const getTableNoDataText = () => {\r\n if (form.FileType === INPUT_FILE_TYPE.Excel) {\r\n return getTranslations(t, FileTypeRadioValueList[2].noDataText)\r\n } else if (form.FileType === INPUT_FILE_TYPE.Delimited) {\r\n return getTranslations(t, FileTypeRadioValueList[1].noDataText)\r\n } else {\r\n return getTranslations(t, FileTypeRadioValueList[0].noDataText)\r\n }\r\n }\r\n const handleNewFieldClick = () => {\r\n dispatch(setCustomerFormValues(form))\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_INPUT_FIELDS + search, {\r\n type: INPUT_FILE_ACTION_TYPE.ADD,\r\n radioValue: form.FileType\r\n })\r\n })\r\n }\r\n const changeFieldText = e => {\r\n setInputFieldValue(e.target.value)\r\n setForm({ ...form, FieldDelimiter: e.target.value })\r\n }\r\n const changeRecordText = e => {\r\n setInputRecordValue(e.target.value)\r\n setForm({ ...form, RecordDelimiter: e.target.value })\r\n }\r\n const changeSurroundCharacterText = e => {\r\n setSurroundCharacterValue(e.target.value)\r\n setForm({ ...form, SurroundCharacter: e.target.value })\r\n }\r\n\r\n const getNameError = () => {\r\n if (nameError || emptyError) {\r\n return getTranslations(t, Translates.Name_cannot_be_empty)\r\n } else if (duplicateNameError) {\r\n return getTranslations(t, Translates.Name_already_exists)\r\n } else if (weekIVFields.Name) {\r\n return weekIVFields.Name\r\n }\r\n return \"\"\r\n }\r\n return (\r\n <>\r\n {loading ? (\r\n //istanbul ignore next\r\n Loader()\r\n ) : (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n className=\"custom-form-control\"\r\n error={\r\n nameError ||\r\n emptyError ||\r\n duplicateNameError ||\r\n !!weekIVFields.Name\r\n }\r\n helperText={getNameError()}\r\n />\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n inputProps={{ maxLength: 50 }}\r\n rows={3}\r\n className=\"custom-form-control\"\r\n />\r\n \r\n {form.Description?.length}/50\r\n \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n className=\"custom-form-control\"\r\n />\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.UPLOAD_LOCATIONS)}\r\n \r\n \r\n onFormChange(e)}\r\n checked={form.CustomerPortalCheck}\r\n className=\"custom-check light\"\r\n name=\"CustomerPortalCheck\"\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Customer_Portal)}\r\n />\r\n onFormChange(e)}\r\n checked={form.InStoreCheck}\r\n className=\"custom-check light\"\r\n name=\"InStoreCheck\"\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(t, Translates.In_Store)}\r\n />\r\n \r\n \r\n {helperText}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.FILE_TYPE)}\r\n \r\n \r\n onFormChange(e)}\r\n >\r\n {FileTypeRadioValueList.map(q => {\r\n return (\r\n }\r\n label={getTranslations(t, q.label)}\r\n />\r\n )\r\n })}\r\n \r\n \r\n \r\n {fileTypeError}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {form.InStoreCheck ? (\r\n <>\r\n \r\n \r\n \r\n {getTranslations(\r\n t,\r\n Translates.STORE_NUMBER_WHEN_PROCESSED_IN_STORE\r\n )}\r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n className=\"custom-form-control\"\r\n />\r\n
    \r\n
    \r\n onFormChange(e)}\r\n className=\"custom-form-control\"\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) : null}\r\n \r\n \r\n \r\n {getTranslations(t, Translates.FORMAT_VALIDATION)}\r\n \r\n \r\n onFormChange(e)}\r\n checked={form.HeaderRow}\r\n className=\"custom-check light\"\r\n name=\"HeaderRow\"\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Header_Row)}\r\n />\r\n \r\n {form.FileType === INPUT_FILE_TYPE.Delimited ? (\r\n \r\n \r\n {\r\n onFormDelimitedChange(newValue)\r\n }}\r\n inputValue={inputFieldValue}\r\n onInputChange={(event, newInputValue) => {\r\n onFormDelimitedChange(newInputValue)\r\n setInputFieldValue(newInputValue)\r\n }}\r\n freeSolo\r\n className=\"custom-form-control select no-border mt-1\"\r\n options={FieldDelimiterList.map(option => option)}\r\n renderInput={params => (\r\n {\r\n if (e.key === \"Enter\") {\r\n changeFieldText(e)\r\n }\r\n }}\r\n />\r\n )}\r\n />\r\n {\r\n onFormRecordChange(newValue)\r\n }}\r\n inputValue={inputRecordValue}\r\n onInputChange={(event, newInputValue) => {\r\n onFormRecordChange(newInputValue)\r\n setInputRecordValue(newInputValue)\r\n }}\r\n freeSolo\r\n className=\"custom-form-control select no-border mt-1\"\r\n options={RecordDelimiterList.map(\r\n option => option\r\n )}\r\n renderInput={params => (\r\n {\r\n if (e.key === \"Enter\") {\r\n changeRecordText(e)\r\n }\r\n }}\r\n />\r\n )}\r\n />\r\n {form.RecordDelimiter === RecordDelimiterList[4] ? (\r\n
    \r\n onFormChange(e)}\r\n className=\"custom-form-control\"\r\n error={recordDelimiterError}\r\n helperText={\r\n recordDelimiterError\r\n ? getTranslations(\r\n t,\r\n Translates.Please_enter_ASCIIChar_value\r\n )\r\n : \"\"\r\n }\r\n />\r\n
    \r\n ) : null}\r\n
    \r\n {\r\n onFormSurroundCharacterChange(newValue)\r\n }}\r\n inputValue={surroundCharacterValue}\r\n onInputChange={(event, newInputValue) => {\r\n onFormSurroundCharacterChange(newInputValue)\r\n setSurroundCharacterValue(newInputValue)\r\n }}\r\n freeSolo\r\n className=\"custom-form-control select no-border mt-1\"\r\n options={surroundCharacterValues.map(\r\n option => option\r\n )}\r\n renderInput={params => (\r\n {\r\n if (e.key === \"Enter\") {\r\n changeSurroundCharacterText(e)\r\n }\r\n }}\r\n />\r\n )}\r\n />\r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n {form.FileType ? (\r\n \r\n \r\n \r\n \r\n \r\n {getTableTitle()}\r\n \r\n \r\n \r\n {\" \"}\r\n {getTranslations(t, Translates.ADD_FIELD)}\r\n \r\n \r\n \r\n {displayGrid()}\r\n \r\n \r\n ) : null}\r\n\r\n \r\n\r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n s || s !== \"\")\r\n }\r\n onClick={onSaveClick}\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default CreateEditInputFileCustomer\r\n","import { Grid } from \"@mui/material\"\r\nimport BreadCrumb from \"../../../components/BreadCrumb/BreadCrumb\"\r\ninterface Props {\r\n customPath: string\r\n bConfig: { currentPath: string; mapObj: { outputFiles: string } }\r\n}\r\n\r\nconst OutputFilesBreadCrumb = ({ customPath, bConfig }: Props) => {\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default OutputFilesBreadCrumb\r\n","import {\r\n Button,\r\n Checkbox,\r\n FormControl,\r\n FormControlLabel,\r\n Grid,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n TextField\r\n} from \"@mui/material\"\r\nimport CheckIcon from \"@mui/icons-material/Check\"\r\n\r\nimport React, { useEffect, useState } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { setNewReportColumns } from \"src/redux/slices/configSlice\"\r\nimport {\r\n getTranslations,\r\n setWeekFieldError,\r\n validateDecimal\r\n} from \"src/utils/helper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { getCurrencySymbol } from \"../CountFields/Constants\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport OutputFilesBreadCrumb from \"./OutputFilesBreadCrumb\"\r\nimport { getCurrencySymbolField } from \"../ColumnHelper\"\r\nimport { DEFAULT_RADIX } from \"src/utils/constants\"\r\ninterface INewColumn {\r\n DataType: string\r\n FilterType: string\r\n ColumnName: string\r\n SortOrder: string\r\n SortType: string\r\n DataSource: string\r\n Suppress: boolean\r\n Weight: string\r\n NumberOfDecimals: string\r\n CurrencySymbol: string\r\n}\r\nconst CreateEditColumn = () => {\r\n const { t } = useTranslation()\r\n const history = useHistory()\r\n let search = window.location.search || \"\"\r\n const location = useLocation() as any\r\n const { cMap, cFullMap, cDisplayMap } = getCurrencySymbol()\r\n\r\n const dispatch = useAppThunkDispatch()\r\n const configData = useSelector((state: RootState) => state.config)\r\n const reportColumnsData = useSelector(\r\n (state: RootState) => state.config.newReportColumns\r\n )\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const isEdit = location.state.isEdit\r\n const editReportingColumnData = location.state.editColumnObj\r\n const storeId = location.state.storeId\r\n const reportId = location.state.storeId\r\n\r\n const dataTypeValues = [\"\", \"DECIMAL\", \"ALPHA\", \"NUMERIC\"]\r\n const currencies = [\r\n \"No Currency Symbol\",\r\n \"$ - USD - US Dollar\",\r\n \"$ - MXN - MEXICAN PESO\",\r\n \"$ - CAD - Canadian Dollar\",\r\n \"Â¥ - CNY - Chinese Yuan\"\r\n ]\r\n const filterTypeValues = [\r\n \"\",\r\n \"CHOOSE1\",\r\n \"CONTAINS\",\r\n \"GREATER_OR_LESS_THAN\",\r\n \"EXACT_MATCH\"\r\n ]\r\n const sqlQueryColumns = useSelector(\r\n (state: RootState) => state.config.newReportSQLQueryColumns\r\n )\r\n\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n ColumnName: \"\"\r\n })\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `audits`\r\n let variables: any = {\r\n audits: location.state.isEdit\r\n ? getTranslations(t, Translates.Edit_Column)\r\n : getTranslations(t, Translates.New_Column)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n if (reportId) {\r\n history.push(\r\n PATH.EDIT_REPORTING.replace(\":storeId\", `${reportId}`) + search,\r\n {\r\n showLatestColumnValue: true\r\n }\r\n )\r\n } else {\r\n history.push(PATH.CREATE_REPORTING + search, {\r\n showLatestColumnValue: true\r\n })\r\n }\r\n })\r\n }\r\n const onSaveClick = () => {\r\n let _item\r\n\r\n const _sortOrder =\r\n reportColumnsData?.length > 0\r\n ? reportColumnsData?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n\r\n // build the currency value\r\n let currencySymbol = \"\"\r\n let OriginalCurrencySymbol = \"\"\r\n if (form.CurrencySymbol !== \"\" && form.CurrencySymbol !== currencies[0]) {\r\n currencySymbol = cDisplayMap.get(form.CurrencySymbol)\r\n OriginalCurrencySymbol = cMap.get(form.CurrencySymbol)\r\n }\r\n // Sort Order\r\n let SortOrder = location.state?.isEdit\r\n ? editReportingColumnData.SortOrder\r\n : _sortOrder + 1\r\n\r\n // add the sort order\r\n _item = {\r\n ...form,\r\n SortOrder: location.state?.isEdit\r\n ? editReportingColumnData.SortOrder\r\n : _sortOrder + 1\r\n }\r\n\r\n // format the decimal & weight\r\n _item = {\r\n ...form,\r\n Weight: form.Weight !== \"\" ? parseInt(form.Weight, DEFAULT_RADIX) : 0,\r\n SortOrder: SortOrder,\r\n CurrencySymbol: currencySymbol,\r\n OriginalCurrencySymbol: OriginalCurrencySymbol,\r\n NumberOfDecimals: form.NumberOfDecimals\r\n ? parseInt(form.NumberOfDecimals, DEFAULT_RADIX)\r\n : 0\r\n }\r\n\r\n if (form.DataType !== dataTypeValues[1]) {\r\n delete _item?.CurrencySymbol\r\n delete _item?.OriginalCurrencySymbol\r\n delete _item?.NumberOfDecimals\r\n }\r\n const _promptItem = { ..._item }\r\n\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n if (isEdit) {\r\n let newArr = [...reportColumnsData]\r\n newArr[editReportingColumnData.SortOrder - 1] = _promptItem\r\n dispatch(setNewReportColumns([...newArr]))\r\n if (reportId) {\r\n history.push(\r\n PATH.EDIT_REPORTING.replace(\":storeId\", `${reportId}`) + search,\r\n {\r\n showLatestColumnValue: true\r\n }\r\n )\r\n } else {\r\n history.push(\r\n PATH.CREATE_REPORTING + search.replace(\":storeId\", `${storeId}`),\r\n {\r\n showLatestColumnValue: true\r\n }\r\n )\r\n }\r\n } else {\r\n dispatch(\r\n setNewReportColumns([...configData?.newReportColumns, _promptItem])\r\n )\r\n if (reportId) {\r\n history.push(\r\n PATH.EDIT_REPORTING.replace(\":storeId\", `${reportId}`) + search,\r\n {\r\n showLatestColumnValue: true\r\n }\r\n )\r\n } else {\r\n history.push(\r\n PATH.CREATE_REPORTING + search.replace(\":storeId\", `${storeId}`),\r\n {\r\n showLatestColumnValue: true\r\n }\r\n )\r\n }\r\n }\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n setEditColumnData()\r\n }, [])\r\n\r\n const setEditColumnData = () => {\r\n if (isEdit) {\r\n let cSymbol = currencies[0]\r\n\r\n if (editReportingColumnData?.CurrencySymbol) {\r\n if (\r\n editReportingColumnData.OriginalCurrencySymbol &&\r\n cFullMap.has(editReportingColumnData.OriginalCurrencySymbol)\r\n ) {\r\n cSymbol = cFullMap.get(editReportingColumnData.OriginalCurrencySymbol)\r\n } else if (cFullMap.has(editReportingColumnData.CurrencySymbol)) {\r\n cSymbol = cFullMap.get(editReportingColumnData.CurrencySymbol)\r\n }\r\n }\r\n\r\n const editObj = {\r\n Label: editReportingColumnData?.Label,\r\n VariableName: editReportingColumnData?.VariableName,\r\n Type: editReportingColumnData?.Type,\r\n DefaultValue: editReportingColumnData?.DefaultValue,\r\n DataType: editReportingColumnData?.DataType,\r\n FilterType: editReportingColumnData?.FilterType,\r\n ColumnName: editReportingColumnData?.ColumnName,\r\n SortOrder: editReportingColumnData?.SortOrder,\r\n SortType: editReportingColumnData?.SortType,\r\n DataSource: editReportingColumnData?.DataSource,\r\n Suppress: editReportingColumnData?.Suppress,\r\n Weight: editReportingColumnData?.Weight,\r\n NumberOfDecimals: editReportingColumnData?.NumberOfDecimals,\r\n CurrencySymbol: cSymbol\r\n }\r\n setForm(editObj)\r\n }\r\n }\r\n\r\n const [form, setForm] = React.useState({\r\n DataType: \"\",\r\n FilterType: \"\",\r\n ColumnName: \"\",\r\n SortOrder: \"\",\r\n SortType: \"\",\r\n DataSource: \"\",\r\n Suppress: false,\r\n Weight: \"100\",\r\n NumberOfDecimals: \"\",\r\n CurrencySymbol: \"\"\r\n } as INewColumn)\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value || \"\"\r\n if (e.target?.name) {\r\n if (e.target.name === \"Suppress\") {\r\n setForm({ ...form, [e.target.name]: e.target.checked })\r\n } else {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name === \"DataSource\") {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name === \"DataType\") {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val,\r\n NumberOfDecimals: \"\",\r\n CurrencySymbol: \"\"\r\n })\r\n }\r\n if (e.target?.name === \"NumberOfDecimals\") {\r\n if (!validateDecimal(val)) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val.substring(0, val?.length - 1)\r\n })\r\n }\r\n }\r\n\r\n if (e.target?.name === \"ColumnName\") {\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n }\r\n }\r\n }\r\n\r\n const validationCheck = () => {\r\n if (\r\n !form.DataSource ||\r\n !form.ColumnName ||\r\n configTypeFromStore === \"view\"\r\n ) {\r\n return true\r\n }\r\n return false\r\n }\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Data_Source)}*\r\n \r\n\r\n onFormChange(e)}\r\n >\r\n {sqlQueryColumns?.map((item: any) => (\r\n \r\n {item.ColumnName}\r\n \r\n ))}\r\n \r\n \r\n onFormChange(e)}\r\n error={!!weekIVFields.ColumnName}\r\n helperText={weekIVFields.ColumnName}\r\n />\r\n\r\n \r\n \r\n {getTranslations(t, Translates.Data_Type)}\r\n \r\n onFormChange(e)}\r\n >\r\n {dataTypeValues?.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n\r\n {form.DataType === \"DECIMAL\" ? (\r\n onFormChange(e)}\r\n />\r\n ) : null}\r\n {getCurrencySymbolField(form, t, onFormChange, currencies)}\r\n\r\n onFormChange(e)}\r\n />\r\n\r\n \r\n \r\n {getTranslations(t, Translates.Sort_Type)}\r\n \r\n onFormChange(e)}\r\n >\r\n {dataTypeValues?.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n\r\n \r\n \r\n {getTranslations(t, Translates.Filter_Type)}\r\n \r\n onFormChange(e)}\r\n >\r\n {filterTypeValues?.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n\r\n onFormChange(e)}\r\n checkedIcon={}\r\n />\r\n }\r\n label={getTranslations(t, Translates.Suppress)}\r\n />\r\n
    \r\n
    \r\n \r\n
    \r\n onCancelClick()}\r\n data-testid=\"cancel\"\r\n >\r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n onSaveClick()}\r\n disabled={validationCheck()}\r\n data-testid=\"save\"\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\nexport default CreateEditColumn\r\n","import {\r\n Grid,\r\n Button,\r\n TextField,\r\n FormControl,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n Autocomplete,\r\n FormHelperText\r\n} from \"@mui/material\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../redux/store\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport { useSelector } from \"react-redux\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport { PATH } from \"../../../constants/paths\"\r\nimport { setOutputColumns } from \"src/redux/slices/configSlice\"\r\nimport {\r\n getTranslations,\r\n setWeekFieldError,\r\n validateDecimal\r\n} from \"src/utils/helper\"\r\nimport { updateWarnOnTabChangeToStore } from \"../helper\"\r\nimport { getCurrencySymbol } from \"../CountFields/Constants\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport OutputFilesBreadCrumb from \"./OutputFilesBreadCrumb\"\r\nimport { getCurrencySymbolField } from \"../ColumnHelper\"\r\nimport { DEFAULT_RADIX } from \"src/utils/constants\"\r\ninterface INewColumnFile {\r\n DataSource: string\r\n ColumnName: string\r\n DataType: string\r\n Padding: string\r\n SurroundCharacter: string\r\n NumberOfDecimals: string\r\n Length: string\r\n Character: string\r\n CurrencySymbol: string\r\n Suppress: boolean\r\n}\r\nconst EditColumns = () => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const { cMap, cFullMap, cDisplayMap } = getCurrencySymbol()\r\n const [surroundCharacterValue, setSurroundCharacterValue] = React.useState(\"\")\r\n const [errorMsg, setErrorMsg] = useState(false)\r\n const [columnErr, setColumnErr] = useState(\"\")\r\n const [lengthErrorMsg, setLengthErrorMsg] = useState(false)\r\n const [characterErrorMsg, setCharacterErrorMsg] = useState(false)\r\n const location = useLocation() as any\r\n let search = window.location.search || \"\"\r\n const dataTypeValues = [\"DECIMAL\", \"ALPHA\", \"NUMERIC\"]\r\n const paddingValues = [\"NONE\", \"LEFT\", \"RIGHT\"]\r\n const surroundCharacterValues = ['\"', \"'\"]\r\n const history = useHistory()\r\n const dispatch = useAppThunkDispatch()\r\n const configData = useSelector((state: RootState) => state.config)\r\n const sqlQueryColumns = useSelector(\r\n (state: RootState) => state.config.newSQLQueryColumns\r\n )\r\n\r\n const outputColumn = useSelector(\r\n (state: RootState) => state.config.outputColumns\r\n )\r\n const currencies = [\r\n \"No Currency Symbol\",\r\n \"$ - USD - US Dollar\",\r\n \"$ - MXN - MEXICAN PESO\",\r\n \"$ - CAD - Canadian Dollar\",\r\n \"Â¥ - CNY - Chinese Yuan\"\r\n ]\r\n const [form, setForm] = React.useState({\r\n DataSource: \"\",\r\n ColumnName: \"\",\r\n DataType: \"\",\r\n Padding: \"\",\r\n SurroundCharacter: \"\",\r\n NumberOfDecimals: \"\",\r\n Length: \"\",\r\n Character: \"\",\r\n CurrencySymbol: \"\",\r\n Suppress: false\r\n })\r\n\r\n const [weekIVFields, setWeekIVFields] = useState({\r\n ColumnName: \"\"\r\n })\r\n\r\n useEffect(() => {\r\n const locationState = { ...location?.state }\r\n\r\n if (locationState.isEdit === true) {\r\n // return the full form of the currency\r\n\r\n let cSymbol = currencies[0]\r\n\r\n if (locationState?.data?.CurrencySymbol) {\r\n if (\r\n locationState?.data?.OriginalCurrencySymbol &&\r\n cFullMap.has(locationState?.data?.OriginalCurrencySymbol)\r\n ) {\r\n cSymbol = cFullMap.get(locationState?.data?.OriginalCurrencySymbol)\r\n } else if (cFullMap.has(locationState?.data?.CurrencySymbol)) {\r\n cSymbol = cFullMap.get(locationState?.data?.CurrencySymbol)\r\n }\r\n }\r\n\r\n setForm({\r\n ...locationState.data,\r\n Padding: getThePadding(locationState?.data?.Padding, \"Format\"),\r\n Length: getThePadding(locationState?.data?.Padding, \"Length\"),\r\n Character: getThePadding(locationState?.data?.Padding, \"Character\"),\r\n CurrencySymbol: cSymbol\r\n })\r\n }\r\n }, [])\r\n\r\n const getThePadding = (paddingObj, Type) => {\r\n if (Array.isArray(paddingObj)) {\r\n return paddingObj[0][Type]\r\n } else {\r\n return paddingObj\r\n }\r\n }\r\n\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value || \"\"\r\n setErrorMsg(false)\r\n setLengthErrorMsg(false)\r\n setCharacterErrorMsg(false)\r\n if (e.target?.name === \"DataSource\") {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name === \"CurrencySymbol\") {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name !== \"DataSource\") {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name === \"Padding\") {\r\n setForm({ ...form, [e.target.name]: val, Length: \"\", Character: \"\" })\r\n setLengthErrorMsg(false)\r\n setCharacterErrorMsg(false)\r\n }\r\n if (e.target?.name === \"Length\") {\r\n setForm({ ...form, [e.target.name]: val })\r\n setLengthErrorMsg(false)\r\n }\r\n if (e.target?.name === \"Character\") {\r\n setForm({ ...form, [e.target.name]: val })\r\n setCharacterErrorMsg(false)\r\n }\r\n\r\n if (e.target?.name === \"ColumnName\") {\r\n setColumnErr(\"\")\r\n if (val.length > 30) {\r\n setColumnErr(\"Column name length can not be more than 30\")\r\n }\r\n setForm({ ...form, [e.target.name]: val })\r\n\r\n setWeekFieldError({ setWeekIVFields, val, t, field: e.target.name })\r\n }\r\n\r\n if (e.target?.name === \"NumberOfDecimals\") {\r\n if (!validateDecimal(val)) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val.substring(0, val.length - 1)\r\n })\r\n }\r\n }\r\n }\r\n\r\n const constructPaddingObj = form => {\r\n if (form.Padding == \"LEFT\" || form.Padding == \"RIGHT\") {\r\n return [\r\n {\r\n Format: form.Padding,\r\n Length: form.Length !== \"\" ? parseInt(form.Length, DEFAULT_RADIX) : 0,\r\n Character: form.Character\r\n }\r\n ]\r\n } else if (form.Padding == \"\") {\r\n return null\r\n } else {\r\n return form.Padding\r\n }\r\n }\r\n\r\n const onFormSurroundCharacterChange = e => {\r\n setForm({ ...form, SurroundCharacter: e })\r\n }\r\n\r\n const onSaveClick = () => {\r\n const duplicateColumn = outputColumn.filter(function (itm) {\r\n return form.DataSource == itm.DataSource\r\n })\r\n\r\n const _sortOrder =\r\n configData?.outputColumns.length > 0\r\n ? configData?.outputColumns?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n\r\n let _item: any = {\r\n DataSource: form.DataSource,\r\n ColumnName: form.ColumnName,\r\n Suppress: form.Suppress,\r\n SortOrder: location.state?.isEdit\r\n ? location.state?.data?.SortOrder\r\n : _sortOrder + 1\r\n }\r\n if (form.DataType !== \"\") {\r\n _item = { ..._item, DataType: form.DataType }\r\n }\r\n\r\n // build the currency value\r\n let currencySymbol = \"\"\r\n let OriginalCurrencySymbol = \"\"\r\n if (form.CurrencySymbol !== \"\" && form.CurrencySymbol !== currencies[0]) {\r\n currencySymbol = cDisplayMap.get(form.CurrencySymbol)\r\n OriginalCurrencySymbol = cMap.get(form.CurrencySymbol)\r\n }\r\n\r\n _item = {\r\n ..._item,\r\n Padding: constructPaddingObj(form),\r\n SurroundCharacter: form.SurroundCharacter,\r\n CurrencySymbol: currencySymbol,\r\n OriginalCurrencySymbol: OriginalCurrencySymbol,\r\n NumberOfDecimals: form.NumberOfDecimals\r\n ? parseInt(form.NumberOfDecimals, DEFAULT_RADIX)\r\n : 0\r\n }\r\n\r\n if (form.DataType !== dataTypeValues[0]) {\r\n delete _item?.CurrencySymbol\r\n delete _item?.OriginalCurrencySymbol\r\n delete _item?.NumberOfDecimals\r\n }\r\n\r\n let _dt = [] as any\r\n if (location.state?.isEdit) {\r\n _dt = [\r\n ...configData?.outputColumns.map(m =>\r\n m.SortOrder === _item.SortOrder ? { ..._item } : { ...m }\r\n )\r\n ]\r\n } else {\r\n _dt = [...configData?.outputColumns, _item]\r\n }\r\n\r\n // check length and character if padding is set to left or right;\r\n\r\n if (form.Padding == \"LEFT\" || form.Padding == \"RIGHT\") {\r\n if (form.Length == \"\") {\r\n setLengthErrorMsg(val => true)\r\n window.scrollTo(0, 0)\r\n }\r\n if (form.Character == \"\") {\r\n setCharacterErrorMsg(val => true)\r\n window.scrollTo(0, 0)\r\n }\r\n }\r\n\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n if (!lengthErrorMsg && !characterErrorMsg) {\r\n if (location.state?.isEdit) {\r\n dispatch(setOutputColumns(_dt))\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n isEdit: location.state?.isParentEdit,\r\n data: { ...location.state?.form, ...{ Columns: _dt } }\r\n })\r\n } else {\r\n if (Object.keys(duplicateColumn).length == 0) {\r\n dispatch(setOutputColumns(_dt))\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n isEdit: location.state?.isParentEdit,\r\n\r\n data: { ...location.state?.form, ...{ Columns: _dt } }\r\n })\r\n } else {\r\n setErrorMsg(true)\r\n window.scrollTo(0, 0)\r\n }\r\n }\r\n }\r\n })\r\n }\r\n const onCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n isEdit: location.state?.isParentEdit,\r\n\r\n data: { ...location.state?.form }\r\n })\r\n })\r\n }\r\n\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `outputFiles`\r\n let variables: any = {\r\n outputFiles: location?.state.isEdit\r\n ? getTranslations(t, Translates.Edit_Column)\r\n : getTranslations(t, Translates.New_Column)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n const getErrorMessage = field => {\r\n if (field == \"DataSource\" && errorMsg) {\r\n return ` ${form.DataSource} is already added`\r\n }\r\n if (field == \"Length\" && lengthErrorMsg) {\r\n return ` Length is mandatory when padding is selected`\r\n }\r\n if (field == \"Character\" && characterErrorMsg) {\r\n return ` Character is mandatory when padding is selected`\r\n }\r\n }\r\n const validationCheck = () => {\r\n if (\r\n !form.ColumnName ||\r\n !form.DataSource ||\r\n columnErr ||\r\n configTypeFromStore === \"view\"\r\n ) {\r\n return true\r\n }\r\n return false\r\n }\r\n return (\r\n
    \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Data_Source)}*\r\n \r\n\r\n onFormChange(e)}\r\n error={errorMsg ? true : false}\r\n >\r\n {sqlQueryColumns?.map((item: any) => (\r\n \r\n {item.ColumnName}\r\n \r\n ))}\r\n \r\n \r\n \r\n {errorMsg ? getErrorMessage(\"DataSource\") : \"\"}\r\n \r\n \r\n \r\n \r\n \r\n onFormChange(e)}\r\n name=\"ColumnName\"\r\n value={form.ColumnName || \"\"}\r\n error={columnErr || !!weekIVFields.ColumnName ? true : false}\r\n helperText={columnErr || weekIVFields.ColumnName}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Data_Type)}\r\n \r\n\r\n onFormChange(e)}\r\n >\r\n {dataTypeValues?.map((item: any) => (\r\n \r\n {item}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {form.DataType === \"DECIMAL\" ? (\r\n onFormChange(e)}\r\n />\r\n ) : null}\r\n {getCurrencySymbolField(form, t, onFormChange, currencies)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Padding)}\r\n \r\n onFormChange(e)}\r\n >\r\n {paddingValues?.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n {(form?.Padding == \"LEFT\" || form?.Padding == \"RIGHT\") && (\r\n \r\n \r\n onFormChange(e)}\r\n name=\"Length\"\r\n value={form.Length || \"\"}\r\n error={lengthErrorMsg ? true : false}\r\n helperText={getErrorMessage(\"Length\")}\r\n />\r\n \r\n \r\n )}\r\n {(form?.Padding == \"LEFT\" || form?.Padding == \"RIGHT\") && (\r\n \r\n \r\n onFormChange(e)}\r\n name=\"Character\"\r\n value={form.Character || \"\"}\r\n error={characterErrorMsg ? true : false}\r\n helperText={getErrorMessage(\"Character\")}\r\n />\r\n \r\n \r\n )}\r\n \r\n \r\n
    \r\n o)}\r\n onChange={(e: any, newValue: string | null) => {\r\n onFormSurroundCharacterChange(newValue)\r\n }}\r\n onInputChange={(event, newInputValue) => {\r\n onFormSurroundCharacterChange(newInputValue)\r\n setSurroundCharacterValue(newInputValue)\r\n }}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n \r\n
    \r\n onCancelClick()}\r\n >\r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n onSaveClick()}\r\n disabled={validationCheck()}\r\n className=\"primary-btn\"\r\n >\r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default EditColumns\r\n","import {\r\n Button,\r\n Divider,\r\n FormControl,\r\n Grid,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n TextField\r\n} from \"@mui/material\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\nimport { Loader, getDataSourceAutoComplete } from \"src/utils/reusables/reusable\"\r\nimport AddIcon from \"@mui/icons-material/Add\"\r\nimport CloseIcon from \"@mui/icons-material/Close\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport {\r\n OUTPUT_FILE_TITLES,\r\n OUTPUT_FILE_TYPE,\r\n PlacementTypeList,\r\n SubTotalFunctionTypeList,\r\n Subtotal_Fields\r\n} from \"src/constants/outputFiles\"\r\nimport {\r\n setCurrentOutputFile,\r\n setOutputGrandTotals,\r\n setOutputSubTotals\r\n} from \"src/redux/slices/configSlice\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport { useDispatch, useSelector } from \"react-redux\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport {\r\n handleAutoCompleteDataSourceChange,\r\n updateWarnOnTabChangeToStore\r\n} from \"src/configurationPortal/pages/helper\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\ninterface IForm {\r\n DataGroup: string\r\n Label: string\r\n Placement: string\r\n}\r\nconst CreateEditTotals = ({ location }) => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) =>state.config?.configType\r\n )\r\n let search = window.location.search || \"\"\r\n const configData = useSelector((state: RootState) =>state.config)\r\n const [dataSource, setDataSource] = React.useState([] as any)\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n const [loading, setLoading] = useState(false)\r\n let locationState: any = { ...location?.state }\r\n const [form, setForm] = React.useState({\r\n DataGroup: \"\",\r\n Label: \"\",\r\n Placement: \"\"\r\n } as IForm)\r\n const [valuesList, setValuesList] = useState([\r\n { DataSource: \"\", Column: \"\", Function: \"\" }\r\n ] as any)\r\n const [path, setPath] = useState(\"\")\r\n const newOutputFile = useSelector(\r\n (state: RootState) => state.config?.currentOutputFile\r\n )\r\n const sqlQueryColumns = useSelector(\r\n (state: RootState) => state.config?.newSQLQueryColumns\r\n )\r\n const outputColumns = useSelector(\r\n (state: RootState) => state.config?.outputColumns\r\n )\r\n\r\n let result = sqlQueryColumns?.map(({ ColumnName }) => ColumnName)\r\n\r\n let columnNames = outputColumns?.map(({ ColumnName }) => ColumnName)\r\n\r\n useEffect(() => {\r\n setLoading(true)\r\n setPath(location?.pathname && location?.pathname?.split(\"/\")[2])\r\n\r\n // setDataSource(location?.subTotalData?.DataGroup)\r\n if (locationState?.isSubTotalEdit === true) {\r\n setDataSource(location.state?.subTotalData?.DataGroup)\r\n setForm({\r\n ...locationState?.subTotalData\r\n })\r\n if (!locationState?.subTotalData?.AggregateConfigs.length) {\r\n setValuesList([{ DataSource: \"\", Column: \"\", Function: \"\" }])\r\n } else {\r\n setValuesList(locationState?.subTotalData?.AggregateConfigs)\r\n }\r\n } else if (locationState?.isGrandTotalEdit === true) {\r\n setForm({\r\n ...locationState?.grandTotalData\r\n })\r\n if (!locationState?.grandTotalData?.AggregateConfigs.length) {\r\n setValuesList([{ DataSource: \"\", Column: \"\", Function: \"\" }])\r\n } else {\r\n setValuesList(locationState?.grandTotalData?.AggregateConfigs)\r\n }\r\n } else {\r\n setForm({\r\n DataGroup: \"\",\r\n Label: \"\",\r\n Placement: \"\"\r\n })\r\n setValuesList([{ DataSource: \"\", Column: \"\", Function: \"\" }])\r\n }\r\n setLoading(false)\r\n }, [])\r\n const getSubTotalBreadcrumb = () => {\r\n if (path == OUTPUT_FILE_TYPE.SUB_TOTAL) {\r\n if (locationState?.isSubTotalEdit === true) {\r\n return OUTPUT_FILE_TITLES.EditSubTotal\r\n } else {\r\n return OUTPUT_FILE_TITLES.NewSubTotal\r\n }\r\n } else {\r\n if (locationState?.isGrandTotalEdit === true) {\r\n return OUTPUT_FILE_TITLES.EditGrandTotal\r\n } else {\r\n return OUTPUT_FILE_TITLES.NewGrandTotal\r\n }\r\n }\r\n }\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `outputFiles`\r\n let variables: any = {\r\n outputFiles: getTranslations(t, getSubTotalBreadcrumb())\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n const onFormChange = e => {\r\n updateWarnOnTabChangeToStore(true)\r\n const val = e.target.value || \"\"\r\n if (e.target?.name == Subtotal_Fields.DataGroup) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name == Subtotal_Fields.Label) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target?.name == Subtotal_Fields.Placement) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n }\r\n const handleValueChange = (e, idx) => {\r\n const { name, value } = e.target\r\n const list = [...valuesList]\r\n let item = { ...list[idx] }\r\n item[name] = value\r\n list[idx] = { ...item }\r\n setValuesList(list)\r\n }\r\n const handleAddValueCLick = () => {\r\n setValuesList([...valuesList, { DataSource: \"\", Column: \"\", Function: \"\" }])\r\n }\r\n const handleRemoveValueCLick = idx => {\r\n const list = [...valuesList]\r\n list.splice(idx, 1)\r\n setValuesList(list)\r\n }\r\n const refreshForm = () => {\r\n setForm({\r\n DataGroup: \"\",\r\n Label: \"\",\r\n Placement: \"\"\r\n })\r\n setValuesList([{ DataSource: \"\", Column: \"\", Function: \"\" }])\r\n }\r\n const getValuesList = () => {\r\n if (\r\n valuesList.length === 1 &&\r\n valuesList[0].DataSource == \"\" &&\r\n valuesList[0].Column == \"\" &&\r\n valuesList[0].Function == \"\"\r\n ) {\r\n return []\r\n } else {\r\n return valuesList\r\n }\r\n }\r\n const subTotalsSortOrder =\r\n configData?.outputSubTotals?.length > 0\r\n ? configData?.outputSubTotals?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n const grandTotalsSortOrder =\r\n configData?.outputGrandTotals?.length > 0\r\n ? configData?.outputGrandTotals?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n const goBack = data => {\r\n updateWarnOnTabChangeToStore(false)\r\n if (path == OUTPUT_FILE_TYPE.SUB_TOTAL) {\r\n let subTotalConfig = {\r\n ...newOutputFile,\r\n SubTotals: data\r\n }\r\n dispatch(setCurrentOutputFile(subTotalConfig))\r\n dispatch(setOutputSubTotals(data))\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n data: { ...locationState.data, SubTotals: data },\r\n subTotalEdit: true,\r\n isSubTotalEdit: locationState.isSubTotalEdit,\r\n isEdit: locationState.isParentEdit,\r\n name: locationState?.form?.Name,\r\n form: locationState?.form\r\n })\r\n })\r\n } else {\r\n let grandTotalConfig = {\r\n ...newOutputFile,\r\n GrandTotals: data\r\n }\r\n dispatch(setCurrentOutputFile(grandTotalConfig))\r\n dispatch(setOutputGrandTotals(data))\r\n setTimeout(() => {\r\n history.push(PATH.CREATE_EDIT_OUTPUTFILES + search, {\r\n data: { ...locationState.data, GrandTotals: data },\r\n grandTotalEdit: true,\r\n isGrandTotalEdit: locationState.isGrandTotalEdit,\r\n isEdit: locationState.isParentEdit,\r\n name: locationState?.form?.Name,\r\n form: locationState?.form\r\n })\r\n })\r\n }\r\n }\r\n const handleSaveClick = () => {\r\n let _item: any = {\r\n Label: form?.Label,\r\n AggregateConfigs: getValuesList(),\r\n SortOrder:\r\n path == OUTPUT_FILE_TYPE.SUB_TOTAL\r\n ? subTotalsSortOrder\r\n : grandTotalsSortOrder + 1\r\n }\r\n if (path == OUTPUT_FILE_TYPE.SUB_TOTAL) {\r\n _item = { ..._item, DataGroup: dataSource }\r\n }\r\n if (form?.Placement) {\r\n _item = { ..._item, Placement: form?.Placement }\r\n }\r\n let subTotalsFoundIndex: any = configData?.outputSubTotals?.findIndex(\r\n x => x?.DataGroup == locationState?.subTotalData?.DataGroup\r\n )\r\n let grandTotalsFoundIndex: any = configData?.outputGrandTotals?.findIndex(\r\n x => x?.DataGroup == locationState?.grandTotalData?.DataGroup\r\n )\r\n if (path == OUTPUT_FILE_TYPE.SUB_TOTAL) {\r\n if (locationState?.isSubTotalEdit) {\r\n let newArr = [...configData?.outputSubTotals]\r\n newArr[subTotalsFoundIndex] = _item\r\n goBack([...newArr])\r\n } else {\r\n let subTot = configData?.outputSubTotals || []\r\n goBack([...subTot, _item])\r\n }\r\n } else {\r\n if (locationState?.isGrandTotalEdit) {\r\n let newArr = [...configData?.outputGrandTotals]\r\n newArr[grandTotalsFoundIndex] = _item\r\n goBack([...newArr])\r\n } else {\r\n let grandTot = configData?.outputGrandTotals || []\r\n goBack([...grandTot, _item])\r\n }\r\n }\r\n }\r\n const handleSaveNewClick = e => {\r\n let _item: any = {\r\n Label: form?.Label,\r\n AggregateConfigs: getValuesList(),\r\n SortOrder:\r\n path == OUTPUT_FILE_TYPE.SUB_TOTAL\r\n ? subTotalsSortOrder\r\n : grandTotalsSortOrder + 1\r\n }\r\n if (path == OUTPUT_FILE_TYPE.SUB_TOTAL) {\r\n _item = { ..._item, DataGroup: form?.DataGroup }\r\n }\r\n if (form?.Placement) {\r\n _item = { ..._item, Placement: form?.Placement }\r\n }\r\n let subTot = configData?.outputSubTotals || []\r\n let grandTot = configData?.outputGrandTotals || []\r\n\r\n let subTotalConfig = {\r\n ...newOutputFile,\r\n SubTotals: [...subTot, _item]\r\n }\r\n let grandTotalConfig = {\r\n ...newOutputFile,\r\n GrandTotals: [...grandTot, _item]\r\n }\r\n if (path == OUTPUT_FILE_TYPE.SUB_TOTAL) {\r\n dispatch(setCurrentOutputFile(subTotalConfig))\r\n dispatch(setOutputSubTotals([...subTot, _item]))\r\n refreshForm()\r\n } else {\r\n dispatch(setCurrentOutputFile(grandTotalConfig))\r\n dispatch(setOutputGrandTotals([...grandTot, _item]))\r\n refreshForm()\r\n }\r\n }\r\n const handleCancelClick = () => {\r\n updateWarnOnTabChangeToStore(false)\r\n history.goBack()\r\n }\r\n const handleDataSourceChange = (event, values) => {\r\n handleAutoCompleteDataSourceChange(\r\n values,\r\n dataSource,\r\n result,\r\n setDataSource\r\n )\r\n }\r\n const getDisabledInfo = () => {\r\n if (path == OUTPUT_FILE_TYPE.SUB_TOTAL) {\r\n if (dataSource.length > 0) {\r\n return false\r\n } else return true\r\n } else {\r\n if (form?.Label) {\r\n return false\r\n } else return true\r\n }\r\n }\r\n return (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n {loading ? (\r\n Loader()\r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n {path == OUTPUT_FILE_TYPE.SUB_TOTAL ? (\r\n \r\n \r\n {getDataSourceAutoComplete(\r\n result,\r\n dataSource,\r\n handleDataSourceChange,\r\n t\r\n )}\r\n \r\n \r\n \r\n ) : null}\r\n\r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n {valuesList?.map((value, index) => (\r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Data_Source)}\r\n \r\n\r\n handleValueChange(e, index)}\r\n >\r\n {result?.map((item: any) => (\r\n \r\n {item}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Column_Name)}\r\n \r\n\r\n handleValueChange(e, index)}\r\n >\r\n {columnNames?.map((item: any) => (\r\n \r\n {item}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Function)}\r\n \r\n handleValueChange(e, index)}\r\n name=\"Function\"\r\n >\r\n {SubTotalFunctionTypeList?.map((name: any) => (\r\n \r\n {getTranslations(t, name)}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n {valuesList.length - 1 === index ? (\r\n \r\n \r\n \r\n ) : null}\r\n {valuesList.length > 1 ? (\r\n handleRemoveValueCLick(index)}\r\n >\r\n \r\n \r\n ) : null}\r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Placement)}\r\n \r\n onFormChange(e)}\r\n name=\"Placement\"\r\n >\r\n {PlacementTypeList?.map((name: any) => (\r\n \r\n {getTranslations(t, name)}\r\n \r\n ))}\r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n\r\n {!locationState?.isSubTotalEdit &&\r\n !locationState?.isGrandTotalEdit ? (\r\n handleSaveNewClick(e)}\r\n >\r\n {getTranslations(t, Translates.Save_New)}\r\n \r\n ) : null}\r\n \r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n )}\r\n
    \r\n )\r\n}\r\n\r\nexport default CreateEditTotals\r\n","import { useLocation } from \"react-router-dom\"\r\nimport CreateEditTotals from \"../Components/CreateEditTotals\"\r\n\r\nconst CreateEditOutputSubTotals = () => {\r\n const location = useLocation()\r\n return \r\n}\r\nexport default CreateEditOutputSubTotals\r\n","import { useLocation } from \"react-router-dom\"\r\nimport CreateEditTotals from \"../Components/CreateEditTotals\"\r\n\r\nconst CreateEditOutputGrandTotals = () => {\r\n const location = useLocation()\r\n return \r\n}\r\nexport default CreateEditOutputGrandTotals\r\n","import {\r\n Button,\r\n FormControl,\r\n FormHelperText,\r\n Grid,\r\n InputLabel,\r\n MenuItem,\r\n Select,\r\n TextField\r\n} from \"@mui/material\"\r\nimport React, { useEffect, useState } from \"react\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { useDispatch, useSelector } from \"react-redux\"\r\nimport { useHistory, useLocation } from \"react-router-dom\"\r\nimport BreadCrumb from \"src/components/BreadCrumb/BreadCrumb\"\r\nimport {\r\n Customer_Input_Fields,\r\n DataTypeList,\r\n ErrorLevelList,\r\n FileTypeRadioValueList,\r\n INPUT_FILE_ACTION_TYPE,\r\n nameErrorText\r\n} from \"src/constants/inputFiles\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport {\r\n setDelimitedInputFields,\r\n setExcelInputFields,\r\n setFixedLengthInputFields\r\n} from \"src/redux/slices/configSlice\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport { getTranslations, validateDecimal } from \"src/utils/helper\"\r\nimport { RootState } from \"src/redux/store\"\r\nimport { onCancelClick } from \"../FunctionHelper\"\r\ninterface ICreateField {\r\n Name: string\r\n DataType: string\r\n AllowedLengths: string\r\n Regex: string\r\n ErrorLevel: string\r\n Length: string\r\n}\r\nconst CreateInputFields = () => {\r\n const { t } = useTranslation()\r\n const configTypeFromStore = useSelector(\r\n (state: RootState) => state.config?.configType\r\n )\r\n const location: any = useLocation()\r\n const {\r\n config: {\r\n configDetails,\r\n isGetConfigDecrypt,\r\n delimitedInputFields,\r\n excelInputFields,\r\n defaultCountFields,\r\n fixedLengthInputFields\r\n }\r\n } = ConfigDataHook()\r\n\r\n let locationState: any = { ...location.state }\r\n const [loading, setLoading] = useState(false)\r\n const history = useHistory()\r\n const dispatch = useDispatch()\r\n const [fileType, setFileType] = useState(\"\")\r\n const [list, setList] = useState([])\r\n const [duplicateNameError, setDuplicateNameError] = useState(false)\r\n const [helperText, setHelperText] = React.useState(\"\")\r\n useEffect(() => {\r\n setLoading(true)\r\n if (configDetails?.configuration && isGetConfigDecrypt) {\r\n const dt = JSON.parse(configDetails.configuration)\r\n let fieldsOptionsList\r\n if (!dt.Fields || Object.keys(dt.Fields).length === 0) {\r\n fieldsOptionsList = [\r\n defaultCountFields.ProductCaptured.Labels[0][\"en-us\"],\r\n defaultCountFields.Qty.Labels[0][\"en-us\"]\r\n ]\r\n } else {\r\n fieldsOptionsList = Object.keys(dt.Fields)\r\n .filter(\r\n i =>\r\n dt.Fields[i].CurrencySymbol !== undefined &&\r\n dt.Fields[i].DecimalPlaces !== undefined\r\n )\r\n .map(i => {\r\n return dt.Fields[i].Labels[0][\"en-us\"]\r\n })\r\n }\r\n setList(fieldsOptionsList)\r\n }\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n setForm({\r\n ...locationState.data\r\n })\r\n }\r\n\r\n setFileType(locationState.radioValue)\r\n setLoading(false)\r\n }, [configDetails, isGetConfigDecrypt])\r\n\r\n const [form, setForm] = React.useState({\r\n Name: \"\",\r\n DataType: \"\",\r\n AllowedLengths: \"\",\r\n Regex: \"\",\r\n ErrorLevel: \"\",\r\n Length: \"\"\r\n } as ICreateField)\r\n\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `fields`\r\n let variables: any = {\r\n fields:\r\n locationState.type === INPUT_FILE_ACTION_TYPE.EDIT\r\n ? getTranslations(t, Translates.Edit_Field)\r\n : getTranslations(t, Translates.Add_Field)\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables,\r\n showHomeIcon: false\r\n }\r\n return bConfig\r\n }\r\n const onFormChange = e => {\r\n const val = e.target.value\r\n if (e.target.name) {\r\n setForm({ ...form, [e.target.name]: val })\r\n }\r\n if (e.target.name === Customer_Input_Fields.Name) {\r\n setHelperText(\"\")\r\n setDuplicateNameError(false)\r\n }\r\n\r\n if (e.target.name === Customer_Input_Fields.AllowedLengths) {\r\n let locError = false\r\n val.split(\",\")?.forEach(element => {\r\n if (!validateDecimal(element) && element !== \"\") {\r\n locError = true\r\n }\r\n })\r\n\r\n if (locError) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val.substring(0, val.length - 1)\r\n })\r\n }\r\n }\r\n\r\n if (e.target.name === Customer_Input_Fields.Length) {\r\n if (!validateDecimal(val)) {\r\n setForm({\r\n ...form,\r\n [e.target.name]: val.substring(0, val.length - 1)\r\n })\r\n }\r\n }\r\n }\r\n\r\n const onSaveClick = () => {\r\n const fixedLengthSortOrder =\r\n fixedLengthInputFields.length > 0\r\n ? fixedLengthInputFields?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n const delimitedSortOrder =\r\n delimitedInputFields?.length > 0\r\n ? delimitedInputFields?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n const excelSortOrder =\r\n excelInputFields?.length > 0\r\n ? excelInputFields?.reduce(\r\n (a: any, b: { SortOrder: number }) => Math.max(b.SortOrder) || a,\r\n 0\r\n )\r\n : 0\r\n const getSortOrder = () => {\r\n if (locationState.radioValue === FileTypeRadioValueList[0].value) {\r\n return fixedLengthSortOrder + 1\r\n } else if (locationState.radioValue === FileTypeRadioValueList[1].value) {\r\n return delimitedSortOrder + 1\r\n } else {\r\n return excelSortOrder + 1\r\n }\r\n }\r\n const _item = {\r\n Name: form.Name,\r\n DataType: form.DataType,\r\n AllowedLengths: form.AllowedLengths,\r\n Regex: form.Regex,\r\n SortOrder: getSortOrder()\r\n }\r\n const getItem = () => {\r\n if (fileType === FileTypeRadioValueList[0].value) {\r\n let fixedPayload = {\r\n ..._item,\r\n Length: form.Length\r\n }\r\n return fixedPayload\r\n } else {\r\n let fixedPayload = {\r\n ..._item,\r\n ErrorLevel: form.ErrorLevel\r\n }\r\n return fixedPayload\r\n }\r\n }\r\n let error: any = false\r\n let foundIndex: number = Number(locationState.index)\r\n let duplicateField: any = fixedLengthInputFields?.find(\r\n (duplicateField: any, idx) => {\r\n return duplicateField?.Name === form.Name && foundIndex !== idx\r\n }\r\n )\r\n let delimitedField: any = delimitedInputFields?.find(\r\n (delimitedField: any, idx) => {\r\n return delimitedField?.Name === form.Name && foundIndex !== idx\r\n }\r\n )\r\n let excelField: any = excelInputFields?.find((excelField: any, idx) => {\r\n return excelField?.Name === form.Name && foundIndex !== idx\r\n })\r\n if (\r\n (fileType === FileTypeRadioValueList[0].value && duplicateField) ||\r\n (fileType === FileTypeRadioValueList[1].value && delimitedField) ||\r\n (fileType === FileTypeRadioValueList[2].value && excelField)\r\n ) {\r\n setDuplicateNameError(true)\r\n window.scrollTo({ top: 0, left: 0, behavior: \"smooth\" })\r\n error = true\r\n setHelperText(nameErrorText)\r\n }\r\n if (!error) {\r\n if (locationState.radioValue === FileTypeRadioValueList[0].value) {\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n let fixedLengthIndex: any = fixedLengthInputFields?.findIndex(\r\n x => x?.Name === locationState.data?.Name\r\n )\r\n let newArr = [...fixedLengthInputFields]\r\n newArr[fixedLengthIndex] = getItem()\r\n dispatch(setFixedLengthInputFields([...newArr]))\r\n } else {\r\n dispatch(\r\n setFixedLengthInputFields([...fixedLengthInputFields, getItem()])\r\n )\r\n }\r\n } else if (locationState.radioValue === FileTypeRadioValueList[1].value) {\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n let delimitedIndex: any = delimitedInputFields?.findIndex(\r\n x => x?.Name === locationState.data?.Name\r\n )\r\n let newArr = [...delimitedInputFields]\r\n newArr[delimitedIndex] = getItem()\r\n dispatch(setDelimitedInputFields([...newArr]))\r\n } else {\r\n dispatch(\r\n setDelimitedInputFields([...delimitedInputFields, getItem()])\r\n )\r\n }\r\n } else {\r\n if (locationState.type === INPUT_FILE_ACTION_TYPE.EDIT) {\r\n let excelIndex: any = excelInputFields?.findIndex(\r\n x => x?.Name === locationState.data?.Name\r\n )\r\n let newArr = [...excelInputFields]\r\n newArr[excelIndex] = getItem()\r\n dispatch(setExcelInputFields([...newArr]))\r\n } else {\r\n dispatch(setExcelInputFields([...excelInputFields, getItem()]))\r\n }\r\n }\r\n history.goBack()\r\n }\r\n }\r\n\r\n const saveButtonDisableCheck = () => {\r\n let locError = false\r\n\r\n if (!form.Name || configTypeFromStore === \"view\") {\r\n locError = true\r\n }\r\n form.AllowedLengths?.split(\",\")?.forEach(element => {\r\n if (!validateDecimal(element)) {\r\n locError = true\r\n }\r\n })\r\n return locError\r\n }\r\n return (\r\n <>\r\n {loading ? (\r\n Loader()\r\n ) : (\r\n
    \r\n
    \r\n
    \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Name)}\r\n \r\n onFormChange(e)}\r\n aria-labelledby=\"demo-multiple-checkbox-label\"\r\n >\r\n {list.map((name: any) => (\r\n \r\n {name}\r\n \r\n ))}\r\n \r\n \r\n \r\n {helperText}\r\n \r\n
    \r\n {fileType === FileTypeRadioValueList[0].value ? (\r\n
    \r\n onFormChange(e)}\r\n name=\"Length\"\r\n value={form.Length}\r\n />\r\n
    \r\n ) : null}\r\n \r\n \r\n {getTranslations(t, Translates.Data_Type)}\r\n \r\n onFormChange(e)}\r\n aria-labelledby=\"demo-multiple-checkbox-label\"\r\n >\r\n {DataTypeList.map((name: any) => (\r\n \r\n {getTranslations(t, name)}\r\n \r\n ))}\r\n \r\n \r\n
    \r\n onFormChange(e)}\r\n name=\"AllowedLengths\"\r\n value={form.AllowedLengths}\r\n />\r\n
    \r\n
    \r\n onFormChange(e)}\r\n name=\"Regex\"\r\n value={form.Regex}\r\n />\r\n
    \r\n {fileType !== FileTypeRadioValueList[0].value ? (\r\n \r\n \r\n {getTranslations(t, Translates.Error_Level)}\r\n \r\n onFormChange(e)}\r\n aria-labelledby=\"demo-multiple-checkbox-label\"\r\n >\r\n {ErrorLevelList.map((name: any) => (\r\n \r\n {getTranslations(t, name)}\r\n \r\n ))}\r\n \r\n \r\n ) : null}\r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n onCancelClick(history)}\r\n >\r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {getTranslations(t, Translates.Save)}\r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n \r\n )\r\n}\r\n\r\nexport default CreateInputFields\r\n","import { Grid } from \"@mui/material\"\r\nimport React, { useEffect, useState, ReactNode } from \"react\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { useLocation } from \"react-router-dom\"\r\nimport {\r\n containsAll,\r\n decryptUrlParams,\r\n getTranslations\r\n} from \"../../../src/utils/helper\"\r\nimport MainLayout from \"../../../src/layouts/MainLayout\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../src/redux/store\"\r\nimport { ConfigService } from \"../../../src/service/config.service\"\r\nimport {\r\n getConfigDetails,\r\n getConfiguration,\r\n setConfigDetails,\r\n setDefaultConfigType,\r\n setDefaultCountFields\r\n} from \"../../../src/redux/slices/configSlice\"\r\nimport Categories from \"./Categories/Categories\"\r\nimport CountFields from \"./CountFields/CountFields\"\r\nimport CreateEditCategory from \"./Categories/CreateEditCategory\"\r\nimport NewLookupRoutine from \"./LookupRoutines/NewLookupRoutine\"\r\nimport GeneralSettings from \"./GeneralSettings\"\r\nimport CountFieldsCreateEditLocation from \"./CountFields/CountFieldsCreateEditLocation\"\r\nimport CountFieldsCreateEditProduct from \"./CountFields/CountFieldsCreateEditProduct\"\r\nimport LookupRoutines from \"./LookupRoutines/LookupRoutines\"\r\nimport { PATH } from \"../../../src/constants/paths\"\r\nimport { Tab } from \"../../../src/constants/configurationPortal\"\r\nimport CreateLookup from \"./LookupRoutines/CreateLookup/index\"\r\nimport Audits from \"./Audits/Audits\"\r\nimport NewAuditRule from \"./Audits/NewAuditRule\"\r\nimport OutputFiles from \"./OutputFiles/OutputFiles\"\r\nimport CreateEditOutputFiles from \"./OutputFiles/CreateEditOutputFiles\"\r\nimport CountPrograms from \"./CountPrograms/LandingPage\"\r\nimport CreateEditCountProgram from \"./CountPrograms/CreateEditCountProgram\"\r\nimport OutputCreateEditPrompts from \"./OutputFiles/OutputCreateEditPrompts\"\r\nimport OutputPrompts from \"./OutputFiles/OutputPrompts\"\r\nimport InputFiles from \"./InputFiles/InputFiles\"\r\nimport InputFileTypeSelect from \"./InputFiles/InputFileTypeSelect\"\r\nimport CreateEditInputFileAuxiliary from \"./InputFiles/CreateEditInputFileAuxiliary\"\r\nimport CreateEditInputFileCustomer from \"./InputFiles/CreateEditInputFileCustomer\"\r\nimport CreateEditColumn from \"./OutputFiles/CreateEditColumn\"\r\nimport EditColumns from \"./OutputFiles/EditColumns\"\r\nimport CreateEditOutputSubTotals from \"./OutputFiles/CreateEditOutputSubTotals\"\r\nimport CreateEditOutputGrandTotals from \"./OutputFiles/CreateEditOutputGrandTotals\"\r\nimport CreateInputFields from \"./InputFiles/CreateInputFields\"\r\nimport { ConfigDataHook } from \"src/hooks/configurationFileData\"\r\nimport { ConfigurationStoreType } from \"src/utils/types/types\"\r\nimport { updateWarnOnTabChangeToStore } from \"./helper\"\r\nimport {\r\n currencySymbolDisplay,\r\n getCurrencySymbol\r\n} from \"./CountFields/Constants\"\r\nimport {\r\n alertMsgShow,\r\n emptyAlert,\r\n getCountFieldFormateForConfig\r\n} from \"./FunctionHelper\"\r\nimport { DEFAULT_RADIX } from \"src/utils/constants\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { useTranslation } from \"react-i18next\"\r\n\r\nconst ConfigurationPortal = ({ children }: { children?: ReactNode }) => {\r\n const { t } = useTranslation()\r\n const {\r\n config: { configDetails, Outputs, customerConfigurationsStatus },\r\n varianceData: { varianceRedux },\r\n outputBundleData: { outputBundlesRedux },\r\n reportData: { reportsRedux }\r\n } = ConfigDataHook()\r\n let location = useLocation() as any\r\n let configService = new ConfigService()\r\n const dispatch = useAppThunkDispatch()\r\n\r\n const generalSettings = useSelector(\r\n (state: RootState) => state.config?.generalSettings\r\n )\r\n\r\n const LocationCategories = useSelector(\r\n (state: RootState) => state.config?.locationCategories\r\n )\r\n\r\n const lookupRoutines = useSelector(\r\n (state: RootState) => state.config?.lookupRoutines\r\n )\r\n const customers = useSelector((state: RootState) => state.settings?.customers)\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const countFields = useSelector(\r\n (state: RootState) => state.config?.defaultCountFields\r\n )\r\n const countPrograms = useSelector(\r\n (state: RootState) => state.config?.countPrograms\r\n )\r\n\r\n const efficiencySettings = useSelector(\r\n (state: RootState) => state.config?.efficiencySettings\r\n )\r\n const accuracySettings = useSelector(\r\n (state: RootState) => state.config?.accuracySettings\r\n )\r\n\r\n const defaultCountFields = useSelector(\r\n (state: RootState) => state.config?.defaultCountFields\r\n )\r\n\r\n const inputFiles = useSelector((state: RootState) => state.config?.inputFiles)\r\n const AuditsData = useSelector((state: RootState) => state.config?.Audits)\r\n const warnOnTabChange = useSelector(\r\n (state: RootState) => state.config.warnOnTabChange\r\n )\r\n\r\n const [alertVisible, setAlertVisible] = useState(false)\r\n const [alertMsg, setAlertMsg] = useState(emptyAlert)\r\n const [configData, setConfigData] = useState({} as any)\r\n const [gSObject, setGSObject] = useState({\r\n CustomerID: 0,\r\n CustomerName: \"\",\r\n ConfigurationId: 0,\r\n ConfigurationName: \"\",\r\n ConfigurationVersion: \"\",\r\n Currencies: \"\",\r\n Notes: \"\",\r\n SupportedLanguages: [],\r\n Status: 3\r\n })\r\n\r\n let path = location.pathname.split(\"/\")\r\n let params = new URLSearchParams(decryptUrlParams(location.search?.slice(1)))\r\n let idString = params.get(\"id\")\r\n const idNum = idString ? parseInt(idString, DEFAULT_RADIX) : undefined\r\n let editType = params.get(\"type\")\r\n\r\n const selectedCustomerList = customers?.filter((c: any) => c.selected)\r\n const customerIds = selectedCustomerList?.map(i => i.idCustomer)\r\n useEffect(() => {\r\n if (alertVisible === true) {\r\n setTimeout(() => {\r\n setAlertVisible(false)\r\n }, 3000)\r\n }\r\n }, [alertVisible])\r\n\r\n useEffect(() => {\r\n const controller = new AbortController()\r\n if (\r\n customers?.length &&\r\n ![\"success\", \"loading\", \"failed\"].includes(customerConfigurationsStatus)\r\n ) {\r\n dispatch(getConfigDetails(customerIds))\r\n }\r\n return () => {\r\n controller.abort()\r\n }\r\n //eslint-disable-next-line\r\n }, [customers])\r\n\r\n useEffect(() => {\r\n const controller = new AbortController()\r\n dispatch(setDefaultConfigType(editType))\r\n getConfigurationData()\r\n updateWarnOnTabChangeToStore(false)\r\n return () => {\r\n controller.abort()\r\n }\r\n //eslint-disable-next-line\r\n }, [])\r\n\r\n useEffect(() => {\r\n let isMounted = true\r\n //istanbul ignore next\r\n if (isMounted) {\r\n window.onbeforeunload = () => (warnOnTabChange ? true : null)\r\n }\r\n return () => {\r\n isMounted = false\r\n }\r\n }, [warnOnTabChange])\r\n\r\n const getConfigurationData = () => {\r\n if (configDetails && Object.keys(configDetails).length) {\r\n setConfigState(configDetails)\r\n } else {\r\n dispatch(getConfiguration(idString)).then((temp: any) => {\r\n if (temp.payload.data) {\r\n setConfigState(temp.payload.data)\r\n }\r\n })\r\n }\r\n }\r\n\r\n const setConfigState = data => {\r\n setConfigData(data)\r\n setGSObject({\r\n CustomerID: data.idCustomer,\r\n CustomerName: \"\",\r\n ConfigurationId: data.idConfig,\r\n ConfigurationName: data.name,\r\n ConfigurationVersion: data.version,\r\n Currencies: \"\",\r\n Notes: \"\",\r\n SupportedLanguages: data.supportedLanguages,\r\n Status: 3\r\n })\r\n }\r\n\r\n const generatePayload = (\r\n tab: any,\r\n tabVal: any,\r\n prod_required = false,\r\n department_required = false\r\n ) => {\r\n let payload: any = {\r\n createdDate: new Date(),\r\n lastUpdatedDate: new Date(),\r\n idConfig: idNum,\r\n idCustomer: parseInt(customerId, DEFAULT_RADIX),\r\n name: configDetails?.name || configData?.name,\r\n status: generalSettings.Status || 3,\r\n supportedLanguages: configDetails?.supportedLanguages?.toString() || \"\",\r\n version: configDetails?.version || \"1.0\",\r\n configuration: \"\"\r\n }\r\n\r\n let configVal: ConfigurationStoreType = configDetails?.configuration\r\n ? JSON.parse(configDetails?.configuration)\r\n : {\r\n GeneralSettings:\r\n Object.keys(generalSettings).length === 0\r\n ? gSObject\r\n : generalSettings,\r\n LocationCategories: LocationCategories,\r\n LookupRoutines: lookupRoutines,\r\n Reports: reportsRedux,\r\n Fields: countFields,\r\n GroupedVariances: varianceRedux.GroupVariance,\r\n FullStoreVariances: varianceRedux.FullVariance,\r\n Outputs: Outputs,\r\n Audits: AuditsData,\r\n CountPrograms: countPrograms,\r\n InputFiles: inputFiles,\r\n FilesRequired: {\r\n DepartmentFileNotRequired: false,\r\n ProductFileNotRequired: false\r\n },\r\n Efficiency: efficiencySettings,\r\n Accuracy: accuracySettings\r\n }\r\n\r\n if (tab === Tab.GSTab) {\r\n payload.name = tabVal?.ConfigurationName\r\n payload.status = tabVal?.Status\r\n const Fields = configVal.Fields\r\n const locDefaultCountFields = JSON.parse(\r\n JSON.stringify(defaultCountFields)\r\n )\r\n if (generalSettings?.Currencies !== tabVal.Currencies) {\r\n const { cDisplayMap } = getCurrencySymbol()\r\n Object.keys(configVal.Fields).forEach(i => {\r\n if (\r\n currencySymbolDisplay.includes(i) &&\r\n Fields[i].CurrencySymbol &&\r\n ![undefined, \"\", null, false].includes(Fields[i].CurrencySymbol)\r\n ) {\r\n Fields[i].CurrencySymbol = cDisplayMap.get(tabVal.Currencies)\r\n locDefaultCountFields[i].CurrencySymbol = cDisplayMap.get(\r\n tabVal.Currencies\r\n )\r\n }\r\n })\r\n let finalObj: any = { data: locDefaultCountFields, type: \"UPDATE\" }\r\n dispatch(setDefaultCountFields(finalObj))\r\n }\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n GeneralSettings: {\r\n CustomerID: tabVal.CustomerID,\r\n CustomerName: tabVal.CustomerName,\r\n ConfigurationId: configDetails?.idConfig,\r\n ConfigurationName: tabVal.ConfigurationName,\r\n ConfigurationVersion: configDetails?.version,\r\n Currencies: tabVal.Currencies,\r\n Notes: tabVal.Notes,\r\n SupportedLanguages: tabVal.SupportedLanguages,\r\n Status: tabVal.Status\r\n },\r\n\r\n Accuracy: {\r\n ...configVal[\"Accuracy\"],\r\n AuditReasonsToExclude: configVal[\"Audits\"][\"ExcludedAuditRules\"],\r\n IncludeTagAudits: tabVal.AccuracySettings[\"IncludeTagAudits\"],\r\n Goal: tabVal.AccuracySettings[\"Goal\"],\r\n SecondaryGoal: tabVal.AccuracySettings[\"SecondaryGoal\"]\r\n },\r\n Efficiency: tabVal.EfficiencySettings,\r\n Fields: Fields\r\n })\r\n } else if (tab === Tab.LocationCategoriesTab) {\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n LocationCategories: [...tabVal]\r\n })\r\n } else if (tab === Tab.LookupRoutinesTab) {\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n LookupRoutines: [...tabVal]\r\n })\r\n } else if (tab === Tab.CountFieldsTab) {\r\n let fieldsObj: any = Object.values(tabVal)[0]\r\n let fieldsObjCopy = getCountFieldFormateForConfig(fieldsObj)\r\n\r\n if (Object.keys(fieldsObjCopy).length)\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n Fields: {\r\n ...fieldsObjCopy,\r\n ...{ countScreenTotals: tabVal?.countScreenTotals || \"\" },\r\n ...{ productKey: tabVal?.productKey || \"\" },\r\n ...{ outOfRangeCountMethod: tabVal?.outOfRangeCountMethod || \"\" }\r\n },\r\n CountPrograms: countPrograms\r\n })\r\n } else if (tab === Tab.OutputFiles) {\r\n const allOutputsNames = Outputs.map(i => i.Name)\r\n let locOutputBundles = outputBundlesRedux.map(i1 => {\r\n return {\r\n ...i1,\r\n Outputs: i1.Outputs.filter(i => allOutputsNames.includes(i))\r\n }\r\n })\r\n\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n Outputs: [...tabVal],\r\n OutputBundles: [...locOutputBundles]\r\n })\r\n } else if (tab === Tab.AuditsTab) {\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n Audits: tabVal,\r\n Accuracy: {\r\n ...configVal[\"Accuracy\"],\r\n AuditReasonsToExclude: tabVal[\"ExcludedAuditRules\"]\r\n }\r\n })\r\n } else if (tab === Tab.CountProgramsTab) {\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n CountPrograms: [...tabVal]\r\n })\r\n } else if (tab === Tab.InputFilesTab) {\r\n payload.configuration = JSON.stringify({\r\n ...configVal,\r\n InputFiles: [...tabVal],\r\n FilesRequired: {\r\n DepartmentFileNotRequired: department_required,\r\n ProductFileNotRequired: prod_required\r\n }\r\n })\r\n }\r\n\r\n const configObj = JSON.parse(payload.configuration)\r\n if (!configObj.hasOwnProperty(\"FilesRequired\")) {\r\n configObj.FilesRequired = {\r\n DepartmentFileNotRequired: false,\r\n ProductFileNotRequired: false\r\n }\r\n payload.configuration = JSON.stringify(configObj)\r\n }\r\n\r\n return payload\r\n }\r\n\r\n const handleConfigSaveClick = async (\r\n finalValues,\r\n tab,\r\n productValid = false,\r\n departmentValid = false\r\n ) => {\r\n const payload = generatePayload(\r\n tab,\r\n finalValues,\r\n productValid,\r\n departmentValid\r\n )\r\n if (!payload?.configuration) {\r\n setAlertVisible(true)\r\n setAlertMsg({\r\n severity: \"error\",\r\n title: \"Error\",\r\n content: \"Please add some details before continue with this!\"\r\n })\r\n\r\n return false\r\n }\r\n\r\n try {\r\n let _res: any = {}\r\n if (Object.keys(payload).length) {\r\n _res = await configService.updateConfiguration(payload)\r\n }\r\n if (_res && _res.status === 200) {\r\n if (tab === Tab.GSTab) {\r\n if (finalValues?.Status !== generalSettings?.Status) {\r\n dispatch(getConfigDetails(customerIds))\r\n }\r\n }\r\n dispatch(setConfigDetails(payload))\r\n updateWarnOnTabChangeToStore(false)\r\n setAlertVisible(true)\r\n setAlertMsg({\r\n severity: \"success\",\r\n title: getTranslations(t, Translates.Success),\r\n content: `${getTranslations(t, Translates.Saved_Successfully)!}`\r\n })\r\n }\r\n } catch (err: any) {\r\n setAlertVisible(true)\r\n setAlertMsg({\r\n severity: \"error\",\r\n title: \"Error\",\r\n content: err?.Message || \"Something went wrong, Please try again later!\"\r\n })\r\n }\r\n }\r\n\r\n if (children) {\r\n return {children}\r\n }\r\n\r\n return (\r\n \r\n {path.includes(PATH.CONFIGURATION_PORTAL.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n\r\n {path.includes(PATH.CONFIGURATION_COUNT_FIELDS.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CONFIG_LOOKUP_ROUTINES.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n\r\n {containsAll(\r\n [\r\n PATH.CREATE_CATEGORY.split(\"/\")[2],\r\n PATH.CREATE_CATEGORY.split(\"/\")[3]\r\n ],\r\n path\r\n ) ||\r\n containsAll(\r\n [PATH.EDIT_CATEGORY.split(\"/\")[2], PATH.EDIT_CATEGORY.split(\"/\")[4]],\r\n path\r\n ) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CATEGORIES.split(\"/\")[2]) && path.length === 3 ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CONFIG_NEW_LOOKUP_ROUTINE.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_LOOKUP.split(\"/\")[2]) ||\r\n containsAll(\r\n [\r\n PATH.COUNT_PROGRAM_INSTRUCTIONS.split(\"/\")[2],\r\n PATH.COUNT_PROGRAM_INSTRUCTIONS.split(\"/\")[3]\r\n ],\r\n path\r\n ) ||\r\n containsAll(\r\n [\r\n PATH.AUDITS_INSTRUCTIONS.split(\"/\")[2],\r\n PATH.AUDITS_INSTRUCTIONS.split(\"/\")[3]\r\n ],\r\n path\r\n ) ||\r\n containsAll(\r\n [\r\n PATH.COUNT_FIELDS_INSTRUCTIONS.split(\"/\")[2],\r\n PATH.COUNT_FIELDS_INSTRUCTIONS.split(\"/\")[3]\r\n ],\r\n path\r\n ) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CONFIGURATION_COUNT_FIELDS_LOCATION.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CONFIGURATION_COUNT_FIELDS_PRODUCT.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.OUTPUT_FILES.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_EDIT_OUTPUTFILES.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.OUTPUTPROMPTS.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_EDIT_PROMPTS.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_EDIT_COLUMN.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.AUDITS.split(\"/\")[2]) && path.length === 3 ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_AUDIT.split(\"/\")[2]) ? : null}\r\n {path.includes(PATH.INPUT_FILES.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.SELECT_INPUT_FILE_TYPE.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_EDIT_AUXILIARY_INPUT_FILE.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_EDIT_CUSTOMER_INPUT_FILE.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {containsAll(\r\n [\r\n PATH.CREATE_COUNT_PROGRAMS.split(\"/\")[2],\r\n PATH.CREATE_COUNT_PROGRAMS.split(\"/\")[3]\r\n ],\r\n path\r\n ) ||\r\n containsAll(\r\n [\r\n PATH.EDIT_COUNT_PROGRAMS.split(\"/\")[2],\r\n PATH.EDIT_COUNT_PROGRAMS.split(\"/\")[4]\r\n ],\r\n path\r\n ) ? (\r\n \r\n ) : null}\r\n\r\n {path.includes(PATH.COUNT_PROGRAMS.split(\"/\")[2]) && path.length === 3 ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.EDIT_COLUMNS.split(\"/\")[2]) ? : null}\r\n {path.includes(PATH.CREATE_EDIT_OUTPUT_SUBTOTALS.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_EDIT_OUTPUT_GRAND_TOTALS.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n {path.includes(PATH.CREATE_INPUT_FIELDS.split(\"/\")[2]) ? (\r\n \r\n ) : null}\r\n \r\n {alertVisible ? <>{alertMsgShow(alertMsg)} : null}\r\n \r\n \r\n )\r\n}\r\n\r\nexport default React.memo(ConfigurationPortal)\r\n","export const UPLOAD_KEYS = {\r\n departmentGroup: \"departmentGroup\",\r\n departmentName: \"departmentName\",\r\n departmentSort: \"departmentSort\",\r\n departmentParentName: \"departmentParentName\",\r\n departmentParentSort: \"departmentParentSort\",\r\n departmentParent: \"departmentParent\",\r\n varianceGroup: \"varianceGroup\",\r\n varianceGroupName: \"varianceGroupName\",\r\n sortOrder: \"sortOrder\",\r\n qtyTolerance: \"qtyTolerance\",\r\n fullStoreQtyTolerance: \"fullStoreQtyTolerance\",\r\n extTolerance: \"extTolerance\",\r\n fullStoreExtTolerance: \"fullStoreExtTolerance\",\r\n categoryName: \"categoryName\",\r\n rangeName: \"rangeName\",\r\n areaRangeSort: \"areaRangeSort\"\r\n}\r\n\r\nexport const UPLOADFILE_FIELD_MAP = {\r\n [UPLOAD_KEYS.departmentGroup]: \"Department Group\",\r\n [UPLOAD_KEYS.departmentName]: \"Department Name\",\r\n [UPLOAD_KEYS.departmentSort]: \"Department Sort\",\r\n [UPLOAD_KEYS.departmentParentName]: \"Department Parent Name\",\r\n [UPLOAD_KEYS.departmentParentSort]: \"Department Parent Sort\",\r\n [UPLOAD_KEYS.departmentParent]: \"Department Parent\",\r\n [UPLOAD_KEYS.varianceGroup]: \"Variance Group\",\r\n [UPLOAD_KEYS.varianceGroupName]: \"Group Name\",\r\n [UPLOAD_KEYS.sortOrder]: \"Sort Order\",\r\n [UPLOAD_KEYS.qtyTolerance]: \"Qty Tolerance\",\r\n [UPLOAD_KEYS.fullStoreQtyTolerance]: \"Full Store Qty Tolerance\",\r\n [UPLOAD_KEYS.extTolerance]: \"Ext Tolerance\",\r\n [UPLOAD_KEYS.fullStoreExtTolerance]: \"Full Store Ext Tolerance\",\r\n [UPLOAD_KEYS.categoryName]: \"Category Name\",\r\n [UPLOAD_KEYS.rangeName]: \"Range Name\",\r\n [UPLOAD_KEYS.areaRangeSort]: \"Area Range Sort\",\r\n}\r\nexport const UPLOADFILE_MAP = {\r\n department: \"department\",\r\n departmentName: \"departmentName\",\r\n departmentSort: \"departmentSort\",\r\n departmentParentName: \"departmentParentName\",\r\n departmentParentSort: \"departmentParentSort\",\r\n departmentParent: \"departmentParent\",\r\n varianceGroup: \"varianceGroup\",\r\n varianceGroupName: \"varianceGroupName\",\r\n sortOrder: \"sortOrder\",\r\n qtyTolerance: \"qtyTolerance\",\r\n fullStoreQtyTolerance: \"fullStoreQtyTolerance\",\r\n extTolerance: \"extTolerance\",\r\n fullStoreExtTolerance: \"fullStoreExtTolerance\"\r\n}\r\nexport const PAGES = {\r\n page1: \"page1\",\r\n page2: \"page2\",\r\n page3: \"page3\",\r\n page4: \"page4\"\r\n}\r\nexport const FILE_TYPE = {\r\n Department: \"Department\",\r\n VarianceControl: \"VarianceControl\",\r\n AreaRangeFile: \"AreaRangeFile\"\r\n}\r\n","import {\r\n Grid,\r\n Accordion,\r\n AccordionSummary,\r\n AccordionDetails,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\"\r\nimport React, { useCallback, useEffect, useState } from \"react\"\r\nimport GlobalTable from \"src/components/GlobalTable/GlobalTable\"\r\nimport FileUploadOutlinedIcon from \"@mui/icons-material/FileUploadOutlined\"\r\nimport { Loader } from \"src/utils/reusables/reusable\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"src/redux/store\"\r\nimport { useHistory } from \"react-router-dom\"\r\nimport { PATH } from \"src/constants/paths\"\r\nimport shortid from \"shortid\"\r\nimport { encryptUrlParams, getTranslations } from \"src/utils/helper\"\r\nimport editIcon from \"../../assets/images/Edit.png\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport DateFormat from \"src/components/DateFormat\"\r\nimport { KEY_CODES, FEATURES, PERMISSIONS } from \"src/utils/constants\"\r\nimport PermissionAccessGate from \"src/components/UserAccessMngt/PermissionAccessGate\"\r\nimport { getUploadFiles } from \"src/redux/slices/uploadFileSlice\"\r\nimport { FILE_TYPE } from \"../Location/UploadFileHelper\"\r\n\r\nconst UploadFileDetails = ({}) => {\r\n const { t } = useTranslation()\r\n const [loading, setLoading] = useState(false)\r\n const [expanded, setExpanded] = React.useState([] as string[])\r\n const uploadFilesData = useSelector(\r\n (state: RootState) => state.uploadFiles?.uploadFilesData?.data\r\n )\r\n const customerId = useSelector(\r\n (state: RootState) => state.settings?.selectedCustomerForOperation\r\n )\r\n const dispatch = useAppThunkDispatch()\r\n\r\n useEffect(() => {\r\n if (customerId) {\r\n setLoading(true)\r\n dispatch(getUploadFiles(customerId)).then(() => setLoading(false))\r\n }\r\n }, [customerId])\r\n\r\n const history = useHistory()\r\n // istanbul ignore next\r\n const handleChange =\r\n (panel: string) =>\r\n (_event: React.ChangeEvent<{}>, newExpanded: boolean) => {\r\n if (newExpanded) {\r\n setExpanded([...expanded, panel])\r\n } else {\r\n setExpanded(expanded.filter(f => f !== panel))\r\n }\r\n }\r\n\r\n const displaySpan = (props: any) => {\r\n return (\r\n \r\n {props.value ? props.value : \"-\"}\r\n \r\n )\r\n }\r\n\r\n const handleEdit = (row: any) => {\r\n let encryptedId: any = encryptUrlParams(row.idConfig)\r\n history.push(`/uploadFiles/editFile/${encryptedId}`, {\r\n Data: row\r\n })\r\n }\r\n const handleEditKeyUp = useCallback((e: any, record: any) => {\r\n if (e.keyCode === KEY_CODES.ENTER) {\r\n handleEdit(record)\r\n }\r\n }, [])\r\n const handleLoadFile = (row: any) => {\r\n const rowQueryParam = encodeURIComponent(JSON.stringify(row))\r\n history.push(\r\n `${PATH.UPLOADFILE_BULK_UPLOAD}?Type=${row.selectedFileType}&row=${rowQueryParam}`\r\n )\r\n }\r\n\r\n const columnsData = React.useMemo(\r\n () => [\r\n {\r\n Header: getTranslations(t, Translates.Name),\r\n accessor: \"name\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 250,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.DESCRIPTION),\r\n accessor: \"description\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 250,\r\n Cell: props => {\r\n return displaySpan(props)\r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.Last_uploaded_Updated),\r\n accessor: \"lastUpdatedDate\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: false,\r\n setWidth: 250,\r\n Cell: props => {\r\n let propsToDate: any = { ...props, isLocal: true }\r\n return \r\n }\r\n },\r\n {\r\n Header: getTranslations(t, Translates.ACTIONS),\r\n accessor: \"action\", // accessor is the \"key\" in the data\r\n headerClassName: \"temp_class\",\r\n disableFilters: true,\r\n disableSortBy: true,\r\n setWidth: 100,\r\n Cell: props => {\r\n const isRangeFile = props.row.original.selectedFileType === FILE_TYPE.AreaRangeFile\r\n return (\r\n \r\n {props.row.original.isMaintenanceFile && !isRangeFile ? (\r\n \r\n handleLoadFile(props.row.original)}\r\n />\r\n \r\n ) : null}\r\n {props.row.original.isMaintenanceFile ? (\r\n \r\n \r\n handleEdit(props.row.original)}\r\n onKeyUp={e => handleEditKeyUp(e, props.row.original)}\r\n />\r\n \r\n \r\n ) : null}\r\n {!props.row.original.isMaintenanceFile && !isRangeFile ? (\r\n \r\n handleClickButton(props.row.original)}\r\n />\r\n \r\n ) : null}\r\n \r\n )\r\n }\r\n }\r\n ],\r\n [t]\r\n )\r\n const handleClickButton = record => {\r\n history.push(\r\n PATH.UPLOADFILES_DATA +\r\n `?idConfig=${encryptUrlParams(record.idConfig)}&name=${encryptUrlParams(\r\n record.name\r\n )}&description=${encryptUrlParams(record.description)}`\r\n )\r\n }\r\n\r\n const displayGrid = data => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n\r\n function renderNoFilesFound() {\r\n if (loading) {\r\n return Loader()\r\n } else if (!loading && uploadFilesData?.length === 0) {\r\n return
    No Files Found
    \r\n }\r\n return null\r\n }\r\n\r\n return (\r\n
    \r\n {uploadFilesData?.length\r\n ? uploadFilesData.map((fileData: any, index) => {\r\n return fileData.configName ? (\r\n
    \r\n {fileData.uploadFileData.length ? (\r\n \r\n }\r\n aria-controls=\"panel1a-content\"\r\n id=\"panel1a-header\"\r\n >\r\n
    {fileData.configName}
    \r\n \r\n\r\n \r\n {loading ? Loader() : displayGrid(fileData)}\r\n \r\n \r\n ) : null}\r\n
    \r\n ) : null\r\n })\r\n : renderNoFilesFound()}\r\n
    \r\n )\r\n}\r\n\r\nexport default UploadFileDetails\r\n","import React, { useCallback, useEffect } from \"react\"\r\nimport { LocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\"\r\nimport { DesktopDatePicker } from \"@mui/x-date-pickers/DesktopDatePicker\"\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\"\r\nimport { TextField, Grid, Button } from \"@mui/material\"\r\nimport { useSelector } from \"react-redux\"\r\nimport { RootState, useAppThunkDispatch } from \"../../../src/redux/store\"\r\nimport { setUploadStatusFilters } from \"src/redux/slices/uploadFileSlice\"\r\nimport moment from \"moment\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\n\r\ninterface IUploadStatus {\r\n droppedOffAt: string\r\n}\r\nconst UploadStatusFilter = ({ applyClick, cancelClick, showFilterPage }) => {\r\n const { t } = useTranslation()\r\n const [date, setDate] = React.useState({} as IUploadStatus)\r\n const uploadStatusFilter = useSelector(\r\n (state: RootState) => state.uploadFiles?.uploadStatusFilters\r\n )\r\n const dispatch = useAppThunkDispatch()\r\n const minDate = \"2000-01-01\"\r\n const maxDate = \"3000-12-31\"\r\n\r\n useEffect(() => {\r\n setDate({\r\n droppedOffAt: uploadStatusFilter.sDate || \"\"\r\n })\r\n }, [uploadStatusFilter])\r\n\r\n const onDateChange = e => {\r\n moment.locale(\"us_en\")\r\n const val = e.target.value || \"\"\r\n let dateObj = {\r\n ...date,\r\n [e.target.name]: val\r\n }\r\n if (val && e.target?.name === \"droppedOffAt\") {\r\n dateObj = {\r\n droppedOffAt: e.target.value\r\n }\r\n }\r\n setDate(dateObj)\r\n }\r\n const applyFilterClick = () => {\r\n let filtersData = {\r\n sDate: date.droppedOffAt\r\n }\r\n applyClick(date.droppedOffAt)\r\n dispatch(setUploadStatusFilters(filtersData))\r\n }\r\n\r\n const applyCancelClick = () => {\r\n cancelClick()\r\n }\r\n\r\n const handleResetAllClick = () => {\r\n setDate({\r\n droppedOffAt: \"\"\r\n })\r\n }\r\n\r\n const handleKeyDown = useCallback(\r\n event => {\r\n event.preventDefault() // This does the trick\r\n if (event.keyCode === 8 || event.keyCode === 46) {\r\n const info = { ...date, droppedOffAt: \"\" }\r\n setDate(info)\r\n }\r\n },\r\n [setDate, date]\r\n )\r\n\r\n return (\r\n <>\r\n {showFilterPage ? (\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n

    \r\n {getTranslations(t, Translates.Filters)}\r\n

    \r\n
    \r\n \r\n \r\n {getTranslations(t, Translates.Select_Date)}\r\n \r\n
    \r\n \r\n
    \r\n \r\n onDateChange({\r\n target: {\r\n name: \"droppedOffAt\",\r\n value: moment(value).format(\"MM-DD-YYYY\")\r\n }\r\n })\r\n }\r\n minDate={minDate}\r\n maxDate={maxDate}\r\n renderInput={params => (\r\n \r\n )}\r\n />\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Reset_All)}\r\n \r\n \r\n \r\n \r\n {getTranslations(t, Translates.Cancel)}\r\n \r\n \r\n {getTranslations(t, Translates.Apply_Filter)}\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n
    \r\n ) : null}\r\n \r\n )\r\n}\r\n\r\nexport default UploadStatusFilter\r\n","import { getUploadStatus } from \"src/redux/slices/uploadFileSlice\"\r\n\r\nconst interval: number = 60000 // 1minute\r\nexport const intervalVarNames = {\r\n UPLOADSTATUS: \"uploadStatus\"\r\n}\r\nconst pageWiseRunStatus = {\r\n uploadStatus: false\r\n}\r\nexport class IntervalsList {\r\n uploadStatus: any = null\r\n}\r\nlet intervalIdVars = new IntervalsList()\r\nconst isUserLoggedIn = () => {\r\n return localStorage.getItem(\"accessToken\")\r\n}\r\nexport const setRunPollStatus = (status: boolean, page: string) => {\r\n if (page == \"uploadStatus\") pageWiseRunStatus.uploadStatus = status\r\n}\r\nlet currentCustomerId: number | string\r\nlet dispatchFunc: any\r\nexport const uploadFilePoll = (dispatch, customerId) => {\r\n try {\r\n dispatchFunc = dispatch || dispatchFunc\r\n //istanbul ignore next\r\n currentCustomerId = customerId || currentCustomerId\r\n if (dispatch) setRunPollStatus(true, \"uploadStatus\")\r\n if (!dispatch) {\r\n dispatchFunc(getUploadStatus({ customerId: currentCustomerId }))\r\n }\r\n if (pageWiseRunStatus.uploadStatus && isUserLoggedIn()) {\r\n console.log(\"---------------setting timeout again-------------\")\r\n intervalIdVars.uploadStatus = setTimeout(() => {\r\n uploadFilePoll(null, customerId)\r\n }, interval)\r\n }\r\n } catch (error) {\r\n //istanbul ignore next\r\n console.error(\"error in polling api\")\r\n }\r\n}\r\n\r\nexport const clearPoll = async (pollList: string[], page: string) => {\r\n setRunPollStatus(false, page)\r\n\r\n pollList.forEach((intervalIdVar: string) => {\r\n if (\r\n intervalIdVars &&\r\n intervalIdVars.hasOwnProperty(intervalIdVar) &&\r\n intervalIdVars[intervalIdVar]\r\n ) {\r\n clearTimeout(intervalIdVars[intervalIdVar])\r\n }\r\n })\r\n}\r\n","/* eslint-disable react-hooks/exhaustive-deps */\r\nimport {\r\n Grid,\r\n Button,\r\n Box,\r\n Tabs,\r\n Tab,\r\n Typography,\r\n Tooltip\r\n} from \"@mui/material\"\r\nimport MainLayout from \"../../../src/layouts/MainLayout\"\r\nimport BreadCrumb from \"../../components/BreadCrumb/BreadCrumb\"\r\nimport React, { useEffect, useState } from \"react\"\r\n\r\nimport FilterListOutlinedIcon from \"@mui/icons-material/FilterListOutlined\"\r\nimport UploadFileDetails from \"./UploadFileDetails\"\r\nimport UploadStatusDetails from \"./UploadStatusDetails\"\r\nimport { useTranslation } from \"react-i18next\"\r\nimport { Translates } from \"src/i18n/i18n\"\r\nimport { getTranslations } from \"src/utils/helper\"\r\nimport { getTabValue } from \"../Configuration/helper\"\r\nimport { useHistory } from \"react-router-dom\"\r\ninterface TabPanelProps {\r\n children?: React.ReactNode\r\n index: number\r\n value: number\r\n}\r\nconst UploadFiles: React.FC = () => {\r\n // @ts-ignore\r\n const { t } = useTranslation()\r\n const [showFilter, setShowFilter] = useState(false)\r\n const [filterNum, setFilterNum] = useState(0)\r\n const [tabValue, setTabValue] = React.useState(0)\r\n const history = useHistory()\r\n\r\n useEffect(() => {\r\n const tabParam = getTabValue()\r\n if (tabParam && Number(tabParam) !== tabValue) {\r\n setTabValue(Number(tabParam))\r\n }\r\n }, [])\r\n\r\n const getBreadcrumbConfig = () => {\r\n let currentPath: string = `uploadFiles`\r\n let variables: any = {\r\n uploadFiles:\r\n tabValue === 0\r\n ? `${getTranslations(t, Translates.Upload_Files)}`\r\n : `${getTranslations(t, Translates.Upload_Status)}`\r\n }\r\n let bConfig: any = {\r\n currentPath,\r\n mapObj: variables\r\n }\r\n return bConfig\r\n }\r\n\r\n \r\n\r\n const handleFilter = () => {\r\n setShowFilter(true)\r\n }\r\n const handleFilterClick = () => {\r\n window.scrollTo({ top: 0, left: 0, behavior: \"smooth\" })\r\n handleFilter()\r\n }\r\n const hideFilter = () => {\r\n setShowFilter(false)\r\n }\r\n const sendFilterDataToParent = droppedOffAt => {\r\n setFilterNum(droppedOffAt ? 1 : 0)\r\n return droppedOffAt ? 1 : 0\r\n }\r\n\r\n const handleChange = (event: React.SyntheticEvent, newValue: number) => {\r\n setTabValue(newValue)\r\n history.push(`?tab=${newValue}`)\r\n }\r\n\r\n function a11yProps(index: number) {\r\n return {\r\n id: `simple-tab-${index}`,\r\n \"aria-controls\": `simple-tabpanel-${index}`\r\n }\r\n }\r\n function TabPanel(props: TabPanelProps) {\r\n const { children, value, index, ...other } = props\r\n\r\n return (\r\n