{"version":3,"sources":["assets/images/product/crossWhite.png","assets/images/white-magnifying-glass.png","assets/images/ph_eye-closed-fill@2x.png","assets/images/index/addCircleIconBlue.png","assets/images/product/lightBlueCancelIcon.png","assets/images/loginBgImg.svg","assets/images/loginMainImg.svg","assets/images/product/template/PlusBlue.png","assets/images/index/closeDarkblue.png","assets/images/index/threeDotsIconWhite.png","assets/images/sample-submission/searchIcon.svg","assets/fonts/roboto/Roboto-Medium.ttf","assets/fonts/roboto/Roboto-Regular.ttf","assets/images/index/addCircleIconMidnight.png","assets/images/product/infoCircleBlue.png","assets/images/product/template/CloseIconBlue.png","assets/images/product/template/DragClose.png","assets/images/index/editPencilMidnight.png","assets/images/index/checkIconMidnight.png","assets/images/ph_eye-opened-fill@2x.png","assets/images/index/closeMidnight.png","assets/images/index/editPencilBlue.png","assets/images/index/checkIconWhite.png","assets/images/index/addSquareBlue.png","assets/images/Arrow 7.png","assets/images/analytics/graphPillTest_blue.png","assets/images/analytics/graphPillTest_green.png","assets/images/analytics/graphPillTest_orange.png","assets/images/analytics/graphPillTest_purple.png","assets/images/product/backIconDarkBlue.png","assets/images/product/plusMidnight.png","assets/images/product/template/BackArrowLightBlue.png","assets/images/index/deleteIconMidnight.png","assets/images/index/searchIcon.png","assets/images/index/cardViewIcon.png","assets/images/index/listViewIcon.png","assets/images/index/cardViewIconInactive.png","assets/images/index/listViewIconInactive.png","assets/images/analytics/magnifyingGlass_midnight.png","assets/images/product/template/PlusWhite.png","assets/images/product/template/SearchGreyLarge.png","assets/images/product/template/closeGrey.png","assets/images/product/template/CloseLightBlue.png","assets/images/index/crossSquareHighlight.png","assets/images/common/spec-flag-icons/OutOfSpecIcon.svg","assets/images/DocDownloadIcon.png","assets/images/DocSearchIcon.png","assets/images/DocSearchIconActive.png","assets/images/DocTrashIcon.png","assets/images/environment/infoIconRed.png","assets/images/index/checkIconLightBlue.png","assets/images/index/exclamation.png","assets/images/index/threeDotsIconMidnight.png","assets/images/index/deleteIconLightBlue.png","assets/images/index/downloadIconLightBlue.png","assets/images/index/addSquareMidnight.png","assets/images/common/spec-flag-icons/InProcessIcon.svg","assets/images/common/spec-flag-icons/InSpecIcon.svg","assets/images/common/spec-flag-icons/IncompleteIcon.svg","assets/images/product/grayArrowLeft.png","assets/images/product/disabledGrayArrowLeft.png","assets/images/analytics/graphPillTest_pink.png","assets/images/PDF_FileIcon.png","assets/images/Image_FileIcon.png","assets/images/XlSX_FileIcon.png","assets/images/index/closeCircleBlue.png","assets/images/DocOptionRenameIcon.png","assets/images/DocOptionDeleteIcon.png","assets/images/DocOptionDownloadIcon.png","assets/images/DocFileOptionIcon.png","assets/images/AddFileIcon_2x.png","assets/images/CardViewIcon.png","assets/images/CardViewIconInactive.png","assets/images/DocDownloadHoverIcon.png","assets/images/DocSearchIconClose.png","assets/images/DocTrashHoverIcon.png","assets/images/ListViewIcon.png","assets/images/ListViewIconInactive.png","assets/images/UploadFileModalCloseIcon.png","assets/images/environment/whiteMap.svg","assets/images/environment/pinIconDefault.svg","assets/images/environment/pinIconHover.svg","assets/images/environment/WhiteCloseBlueBackground.svg","assets/images/environment/messageBlock.png","assets/images/environment/docSearchIconBlue.png","assets/images/environment/closeDarkblue.png","assets/images/product/crossDarkBlue.png","assets/images/sample-submission/SampleCalendarIcon.svg","assets/images/environment/addIconLightBlue.svg","assets/images/environment/uploadIcon.svg","assets/images/environment/zoomInIcon.png","assets/images/environment/zoomOutIcon.png","assets/images/environment/zoomDisplayIconDarkBlue.svg","assets/images/environment/deleteIconMidnight.png","assets/images/environment/fullScreenIcon.svg","assets/images/environment/exitFullScreenIcon.svg","assets/images/environment/whiteTrashCan.svg","assets/images/environment/binDeleteIcon.svg","assets/images/environment/addIconBlue.png","assets/images/product/dark-pending.png","assets/images/product/addFilterMidnight.png","assets/images/product/downloadBlue.png","assets/images/index/threeDotsIconLightBlue.png","assets/images/index/plusIconBlue.png","assets/images/crossButton2x.png","assets/images/index/crossCircleWhite.png","assets/images/index/closeHighlighed.png","assets/images/index/addCircleIconWhite.png","assets/images/index/backArrowIconMidnight.png","assets/images/index/deleteIconBlue.png","assets/images/index/downloadIconBlue.png","assets/images/backIcon.png","assets/images/documents_2x.png","assets/images/enviroment_2x.png","assets/images/indexIcon_2x.png","assets/images/product_2x.png","assets/images/myAccountHelpPlaceholder.svg","assets/images/moreLightblue.svg","assets/images/myProfileIconActive.svg","assets/images/myProfileIconInactive.svg","assets/images/teamMemberIconActive.svg","assets/images/teamMemberIconInactive.svg","assets/images/savedLocationIconActive.svg","assets/images/savedLocationIconInactive.svg","assets/images/faqIconActive.svg","assets/images/faqIconInactive.svg","assets/images/helpIconActive.svg","assets/images/helpIconInactive.svg","assets/images/plus-lightblue.svg","assets/images/minus-lightblue.svg","assets/images/product/circleArrow.png","assets/images/addSpecIcon.png","assets/images/specAddedIcon.png","assets/images/product/refreshCircleBlack.png","assets/images/backArrowIcon.png","assets/images/AddIconBlue.png","assets/images/product/editPencilLightBlue.png","assets/images/analytics/graphPillProduct_blue.png","assets/images/analytics/graphPillProduct_green.png","assets/images/analytics/graphPillProduct_orange.png","assets/images/analytics/graphPillProduct_purple.png","assets/images/analytics/datePickerIcon.png","assets/images/analytics/closeIconSmall.png","assets/images/product/template/Calendar.png","assets/images/product/template/Download.png","assets/images/product/template/Product.png","assets/images/product/template/Close.png","assets/images/product/template/PlayWhite.png","assets/images/product/template/DataFieldsIcon.svg","assets/images/product/template/threeDotsIconGrey.png","assets/images/product/template/EditPencilWhite.png","assets/images/product/template/DeleteDataFieldsWhite.png","assets/images/product/template/AddBlue.png","assets/images/product/template/Remove.png","assets/images/product/template/RemoveDark.png","assets/images/product/template/DragIndicator.png","assets/images/product/template/LockIconGrey.png","assets/images/product/template/EditPencilLightBlue.png","assets/images/product/template/userProfileLightBlue.png","assets/images/product/template/SortIconBlue.png","assets/images/product/template/SortIcon.png","assets/images/product/template/BackArrow.png","assets/images/product/template/BackArrowWhite.png","assets/images/OnboardingClose.svg","assets/images/sample-submission/Person.svg","assets/images/sample-submission/add.svg","assets/images/share/Download.svg","assets/images/share/esvLogo.svg","assets/images/signup-invite/addFieldIcon.svg","AppContext.js","assets/images/common/LoadingDots.svg","Containers/Common/UIComponents/StyledButton.js","utils/Constant.js","utils/Permissions.js","utils/common.js","utils/helpers.js","actions/switchCompany.js","assets/images/onboarding/Onboarding_Art_Product.png","Containers/AddCompany/AddCompanySuccessLandingPage.js","Containers/Common/NoResultsGIF.js","Containers/Onboarding/FormLayout.js","assets/images/logo/GBLogo.svg","assets/images/logo/ESVLogo.svg","Containers/Onboarding/FormPageLayout.js","assets/images/onboarding/ContactInfo.svg","assets/images/onboarding/Group.png","assets/images/onboarding/customer.svg","assets/images/onboarding/AccountCreation.svg","assets/images/onboarding/ESVLogo.svg","assets/images/onboarding/account.svg","Containers/Onboarding/OnboardingWelcomePageCard.js","Containers/Onboarding/OnboardingWelcomePage.js","assets/images/onboarding/ESV.svg","assets/images/onboarding/Contact Info.svg","assets/images/onboarding/CustomerInfo.svg","Containers/Onboarding/OnboardingForm/RenderStepsIcon.js","actions/onboarding.js","Containers/Onboarding/OnboardingForm/SubForms/CompanyContactForm/Components/AddressSection.js","assets/images/onboarding/clearfield_2.svg","Containers/Onboarding/OnboardingForm/SubForms/CompanyContactForm/Components/BillingAddressSection.js","Containers/Onboarding/MyForm.js","Containers/Onboarding/OnboardingForm/SubForms/CompanyContactForm/Components/ContactInfoSection.js","Containers/Onboarding/OnboardingForm/SubForms/ReusableComponents/FormButtons.js","Containers/Onboarding/OnboardingForm/useHandleStepChange.js","Containers/Onboarding/OnboardingForm/SubForms/CompanyContactForm/CompanyContactForm.js","Containers/Common/utils/validationUtils.js","Containers/Onboarding/OnboardingForm/SubForms/CompanyInfoForm.js","Containers/Common/UIComponents/StyledRadioGroup.js","Containers/Common/UIComponents/StyledTooltip.js","assets/images/onboarding/clearField.svg","Containers/Onboarding/OnboardingForm/SubForms/FieldsForm/Components/EditableFields.js","Containers/Env/helper.js","actions/envAnalytics.js","actions/reports.js","assets/images/onboarding/Info.svg","Containers/Onboarding/OnboardingForm/SubForms/FieldsForm/FieldsForm.js","Containers/Onboarding/OnboardingForm/SubForms/LinkReportForm.js","assets/images/ph_eye_opened_black_fill@2x.png","Containers/Onboarding/OnboardingForm/SubForms/SignupForm.js","assets/images/environment/pumpkin.gif","assets/images/onboarding/main.svg","Containers/Onboarding/OnboardingForm/OnboardingForm.js","Containers/AddCompany/AddCompanyLandingPage.js","assets/images/under_maintenance.gif","Containers/AuthFailedPage.js","Containers/Documents/Components/DocumentsMenuOption.js","Containers/Documents/Components/DocumentsCard.js","Containers/Documents/Components/DocumentsCardView.js","Containers/Documents/Components/DocumentsConfirmDelete.js","Containers/Documents/Components/DocumentsListView.js","actions/documents.js","Containers/Documents/Documents.js","Containers/Common/UIComponents/NavTabs.js","Containers/Env/Analytics/Components/EnvConfirmModal.js","assets/images/environment/checkMark.svg","assets/images/environment/stepCircle.svg","assets/images/environment/stepCircleNoFillLightBlue.svg","assets/images/environment/redWhiteCircle.svg","assets/images/environment/exclamationMarkRedBg.svg","Containers/Env/Analytics/Components/CreateEnvModal/StepCircle.js","assets/images/environment/upload.svg","Containers/Env/Analytics/Components/CreateEnvModal/DragDrop.js","assets/images/environment/xls-file-ring.svg","Containers/Env/Analytics/Components/CreateEnvModal/LoadingConfirmBtn.js","assets/images/environment/delete.svg","Containers/Env/Analytics/Components/CreateEnvModal/SwabFileItem.js","assets/images/environment/garbageBin.svg","Containers/Env/Analytics/Components/CreateEnvModal/SwabFileExample.js","Containers/Env/Analytics/Components/CreateEnvModal/UploadSwabFiles.js","assets/images/sample-submission/edit.svg","assets/images/environment/redCircleWhiteExclamation.svg","assets/images/environment/addIconCircleBlue.svg","Containers/Env/Analytics/Components/CreateEnvModal/UploadMapPreview.js","Containers/Env/Analytics/Components/CreateEnvModal/UploadMap.js","Containers/Env/Analytics/Components/CreateEnvModal/CreateEnvModal.js","Containers/Env/Analytics/Components/EmptyPage.js","Containers/Env/Analytics/Components/ListView/CreateNewPin.js","Containers/Env/Analytics/Components/ListView/helper.js","Containers/Env/Analytics/Components/pinHelper.js","Containers/Env/Analytics/Components/ListView/PinDetailBlock.js","Containers/Env/Analytics/Components/ListView/PinList.js","assets/images/environment/calendarIcon.svg","assets/images/product/CalendarDownArrow.svg","Containers/Common/DatePicker/utils.js","Containers/Common/DatePicker/MonthYearSelect.js","Containers/Common/utils/dateUtils.js","assets/images/common/CloseIconFilled.svg","Containers/Common/DatePicker/Calendar.js","Containers/Common/DatePicker/DatePickerDisplay.js","Containers/Common/DatePicker/DatePicker.js","Containers/Env/Analytics/Components/ListView/Search/EnvCalendar.js","Containers/Env/Analytics/Components/Constant.js","assets/images/environment/statusPingDot.svg","Containers/Env/Analytics/Components/ListView/Search/FilterButtons.js","Containers/Env/Analytics/Components/ListView/Search/EnvSearch.js","Containers/Env/Analytics/Components/ListView/Loader/ListViewContentLoader.js","Containers/Env/Analytics/Components/ListView/AnalyticsListView.js","Containers/Env/Analytics/Components/MapView/MapTools.js","Containers/Env/Analytics/Components/MapView/ZoomDisplay.js","assets/images/environment/pinIconSVG.svg","Containers/Env/Analytics/Components/MapView/PinSimpleToolTip.js","Containers/Env/Analytics/Components/MapView/Pin.js","Containers/Env/Analytics/Components/MapView/PinsVisibleArea.js","Containers/Env/Analytics/Components/MapView/mapHelper.js","Containers/Env/Analytics/Components/MapView/FullMapSwitch.js","Containers/Env/Analytics/Components/MapView/MapBlurb.js","Containers/Env/Analytics/Components/MapView/RemoveSwabBtn.js","Containers/Env/Analytics/Components/MapView/Map.js","Containers/Env/Analytics/Components/MapView/MapTabs/MapTitleTab.js","assets/images/environment/addMapIconMidnight.svg","Containers/Env/Analytics/Components/MapView/MapTabs/MapTabs.js","assets/images/environment/pumpkin.png","Containers/Env/Analytics/Components/MapView/AnalyticsMapView.js","assets/images/EmptyState_V2.png","Containers/Common/PdfPreview.js","Containers/Common/NoResults.js","Containers/Env/Analytics/Components/Preview/PreviewDateBlock.js","Containers/Env/Analytics/Components/Preview/PreviewDatePicker.js","Containers/Env/Analytics/Components/Preview/ReportPreviewModal.js","Containers/Env/Analytics/Components/ReportView/ReportViewMap/ReportViewPin.js","Containers/Env/Analytics/Components/ReportView/ReportViewHeader.js","Containers/Env/Analytics/Components/ReportView/ReportViewMap/SinglePinMapView.js","assets/images/sample-submission/rotateIcon.svg","Containers/Common/ImageEditModal/DragDrop.js","assets/images/sample-submission/plusSliderIcon.svg","assets/images/sample-submission/minusSliderIcon.svg","Containers/Common/ImageEditModal/SliderWithButtons.js","Containers/Common/ImageEditModal/ImageEditToggles.js","Containers/Common/ImageEditModal/ImageEditHelper.js","Containers/Common/ImageEditModal/UploadImageEditor.js","assets/images/sample-submission/circularCloseIcon.svg","Containers/Common/ImageEditModal/LoadingConfirmBtn.js","Containers/Common/ImageEditModal/UploadImage.js","assets/images/sample-submission/uploadImageIcon.svg","Containers/Common/ImageEditModal/UploadImageModal.js","Containers/Env/Analytics/Components/ReportView/ReportViewTitle/ReportViewImage.js","Containers/Env/Analytics/Components/ReportView/ReportViewTitle/ReportViewTitle.js","Containers/Env/components/ModalPageTitle.js","assets/images/sample-submission/hoveredGarbageCan.svg","Containers/Env/components/SelectionListItem.js","actions/sampleSubmission.js","assets/images/sample-submission/blueCloseIcon.svg","assets/images/environment/NextArrowIcon.svg","Containers/Env/components/AddEditTestsForm.js","Containers/Env/components/CreateSamplingEventModalFooter.js","Containers/Env/components/CreateSamplingEventModalTabs.js","Containers/Env/components/CustomCalendar.js","Containers/Env/utils.js","Containers/Env/components/CustomDateFrequencyForm.js","Containers/Env/components/WeekMonthCheckbox.js","Containers/Env/components/MonthFrequencyForm.js","assets/images/environment/CheckCircleIcon.svg","Containers/Env/components/WeekFrequencyForm.js","Containers/Env/components/FrequencyForm.js","assets/images/DropDownChevron.svg","Containers/Env/components/CustomCheckbox.js","Containers/Env/components/ExtraFieldAutoComplete.js","Containers/Env/components/SelectLocationFormSearch.js","actions/envCalendar.js","Containers/Env/components/SelectLocationForm.js","Containers/Env/components/TypeToggle.js","Containers/Env/components/SetFrequenceForm.js","webpack:///./src/assets/images/OnboardingClose.svg?d185","Containers/Env/components/SummaryForm.js","Containers/Env/components/CreateSamplingEventModal.js","assets/images/environment/whiteArrow.svg","Containers/Env/Analytics/Components/ReportView/ReportViewResult/DatesSlider/DateCard.js","Containers/Env/Analytics/Components/ReportView/ReportViewResult/DatesSlider/DatesSlider.js","webpack:///./src/assets/images/environment/WhiteCloseBlueBackground.svg?4e2f","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ReportActionButton.js","assets/images/environment/3-dots-scale.svg","assets/images/environment/pdfIcon.svg","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ReportHistory/FileCard.js","assets/images/environment/downloadIcon.svg","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ReportHistory/ReportHistory.js","assets/images/environment/historyIcon.svg","assets/images/environment/previewIcon.svg","assets/images/environment/arrowIcon.svg","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ResultActions.js","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ResultHeader.js","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ResultTableActions.js","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ResultTable.js","assets/images/environment/AddSamplingIcon.svg","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ResultTableCarousel.js","assets/images/environment/CalendarEnv.svg","assets/images/environment/EditSpecIcon.svg","assets/images/environment/TrashIcon.svg","Containers/Env/Analytics/Components/ReportView/ReportViewResult/ReportResult.js","Containers/Common/ButtonWithLoading.js","Containers/Env/Analytics/Components/EditSpecs/ConfirmModal.js","Containers/Env/Analytics/Components/EditSpecs/SpecManagerInput.js","Containers/Env/Analytics/Components/EditSpecs/Helper.js","assets/images/common/ChevronDown.svg","Containers/Env/Analytics/Components/EditSpecs/SpecManagerSelect.js","Containers/Env/Analytics/Components/EditSpecs/SpecsRange.js","Containers/Env/Analytics/Components/EditSpecs/SpecsQuantitative.js","Containers/Env/Analytics/Components/EditSpecs/SpecsQualitative.js","assets/images/product/RangeIcon.svg","assets/images/product/QualitativeIcon.svg","assets/images/product/QuantitativeIcon.svg","Containers/Env/Analytics/Components/EditSpecs/EditSpecTable.js","Containers/Env/Analytics/Components/EditSpecs/SpecTable.js","Containers/Env/Analytics/Components/EditSpecs/EditSpec.js","actions/envReports.js","assets/images/environment/foldedMap.svg","Containers/Env/Analytics/Components/ReportView/ReportView.js","Containers/Env/Analytics/Components/SpecManager/SpecManagerSearch.js","Containers/Env/Analytics/Components/SpecManager/ConfirmModal.js","Containers/Env/Analytics/Components/SpecManager/SpecManagerInput.js","Containers/Product/Report/Components/SpecManager/SpecManagerSelect.js","Containers/Env/Analytics/Components/SpecManager/SpecsRange.js","Containers/Env/Analytics/Components/SpecManager/SpecsQuantitative.js","Containers/Env/Analytics/Components/SpecManager/SpecManagerSelect.js","Containers/Env/Analytics/Components/SpecManager/SpecsQualitative.js","Containers/Env/Analytics/Components/SpecManager/EditSpecTable.js","Containers/Env/Analytics/Components/SpecManager/Helper.js","Containers/Env/Analytics/Components/SpecManager/SpecTable.js","Containers/Env/Analytics/Components/SpecManager/EditSpec.js","Containers/Env/Analytics/Components/SpecManager/FilterButton.js","Containers/Env/Analytics/Components/SpecManager/Loading.js","Containers/Env/Analytics/Components/SpecManager/SpecStatusItemList/SpecStatusItem.js","Containers/Env/Analytics/Components/SpecManager/SpecStatusItemList/SpecStatusItemList.js","Containers/Env/Analytics/Components/SpecManager/SpecManager.js","Containers/Env/Analytics/Components/SpecManager/SpecManagerDrawer.js","Containers/Env/Analytics/Analytics.js","Containers/Env/constants.js","Containers/Env/components/EventsFilter.js","assets/images/environment/PrinterIcon.svg","Containers/Env/components/reportmodals/ReportModal.js","assets/images/environment/Genista_Header.png","Containers/Env/components/reportmodals/ExportModal.js","Containers/Env/components/reportmodals/LabelsPDF.js","assets/images/close.svg","assets/images/product/template/delete.svg","webpack:///./src/assets/images/sample-submission/add.svg?0e1e","Containers/Env/components/reportmodals/ZebraPrintEdit.js","actions/print.js","Containers/Env/components/reportmodals/ZebraPrinterSettings.js","Containers/Env/components/reportmodals/ZebraPrintModal.js","Containers/Env/components/reportmodals/PrintLabelModal.js","Containers/Common/AutoHideScrollbarStyles.js","Containers/Common/hooks/useAutoHideScrollbar.js","Containers/Env/components/PopoverMenu.js","Containers/Env/Calendar/LocationDetails.js","assets/images/environment/ContextMenuIcon.svg","assets/images/environment/EditPencilIcon.svg","Containers/Env/Calendar/EventCard.js","assets/images/environment/EventExportIcon.svg","Containers/Env/Calendar/EventGrid.js","assets/images/environment/PrintLabelsIcon.svg","assets/images/onboarding/Plus.svg","Containers/Env/Calendar/Calendar.js","assets/images/environment/closeBlue.svg","Containers/Env/EnvAnalyticsTab/Components/Graph/GraphTestPill.js","Containers/Env/EnvAnalyticsTab/Components/Graph/GraphTooltipRender.js","assets/images/analytics/graphPillTest_svg.svg","Containers/Env/EnvAnalyticsTab/Components/Graph/Scatterpoint.js","Containers/Env/EnvAnalyticsTab/Components/Graph/ComposedGraphComponent.js","Containers/Env/EnvAnalyticsTab/Components/Header/EnvAnalyticsHeader.js","Containers/Env/EnvAnalyticsTab/Components/Table/EnvAnalyticsTableRow.js","Containers/Env/EnvAnalyticsTab/Components/Table/EnvAnalyticsTable.js","Containers/Env/EnvAnalyticsTab/EnvAnalyticsTab.js","assets/images/environment/Analytics.svg","assets/images/feature-icons/ReportOutlined.svg","Containers/Env/Env.js","Containers/Modals/DeleteProductConfirmation.js","actions/index.js","Containers/Modals/DeleteIndexConfirmation.js","Containers/Index/Components/IndexCategories.js","Containers/Index/Components/Search.js","Containers/Index/Components/TagInput.js","Containers/Index/Components/Tag.js","Containers/Index/Components/ProductCard.js","Containers/Index/Components/ProductEditCard.js","Containers/Index/Components/ProductNewCard.js","Containers/Index/Components/SortBySelect.js","Containers/Index/Components/DocumentAddModal.js","Containers/Index/Components/ProductDocuments.js","Containers/Index/Index.js","Containers/Modals/SignoutConfirmation.js","Containers/Common/Loading.js","assets/images/logout.svg","Containers/Layout/CompanyList.js","assets/images/myAccountIcon.svg","Containers/Layout/DrawerNav.js","Containers/Layout/NavBar.js","Containers/MyAccount/MyAccountIcon.js","Containers/MyAccount/MyAccountSideMenu.js","Containers/MyAccount/MyAccountHelp.js","actions/myAccount.js","Containers/MyAccount/MyProfile/NameAndPhone.js","Containers/MyAccount/MyProfile/Password.js","utils/firebase.js","actions/login.js","Containers/MyAccount/MyProfile/MyProfile.js","Containers/MyAccount/TeamMember/AddMemberModalInput.js","Containers/MyAccount/TeamMember/AddMemberModal.js","Containers/MyAccount/TeamMember/DeleteMemberModal.js","assets/images/my-account/RepeatIcon.svg","Containers/MyAccount/TeamMember/ResendInviteButton.js","actions/signup.js","assets/images/trashIconLightblue.svg","Containers/MyAccount/TeamMember/TeamMember.js","Containers/Product/Report/ReportSearch.js","Containers/Product/Report/Components/SpecButton.js","Containers/Common/UIComponents/StyledSwitch.js","Containers/Product/Report/Components/SpecsBlock.js","Containers/Product/Report/Components/SpecManager/SpecManagerSearch.js","Containers/Product/Report/Components/SpecManager/ConfirmModal.js","Containers/Product/Report/Components/SpecManager/SpecManagerInput.js","Containers/Product/Report/Components/SpecManager/Helper.js","Containers/Product/Report/Components/SpecManager/SpecsRange.js","Containers/Product/Report/Components/SpecManager/SpecsQuantitative.js","Containers/Product/Report/Components/SpecManager/SpecsQualitative.js","assets/images/product/MRLIcon.svg","Containers/Common/UIComponents/StyledCheckbox.js","Containers/Common/UIComponents/CountriesCheckboxList.js","Containers/Product/Report/Components/SpecManager/MRLCountryList.js","Containers/Product/Report/Components/SpecManager/EditSpecTable.js","Containers/Product/Report/Components/SpecManager/SpecTable.js","Containers/Product/Report/Components/SpecManager/TestList.js","Containers/Product/Report/Components/SpecManager/TestSuggestionList.js","Containers/Product/Report/Components/SpecManager/UpdateTestList.js","Containers/Product/Report/Components/SpecManager/EditSpec.js","Containers/Product/Report/Components/SpecManager/FilterButton.js","Containers/Product/Report/Components/SpecManager/SpecDisplayTable.js","actions/specManager.js","Containers/Product/Report/utils.js","Containers/Product/Report/Components/SpecManager/SpecManager.js","Containers/Product/Report/ReportsTable/ReportsTableRow.js","Containers/Product/Report/ReportsTable/ReportsTableFieldCell.js","Containers/Common/constants/SpecFlagConstants.js","Containers/Product/Report/Components/ReportSpecs/helper.js","Containers/Product/Report/ReportsTable/ReportsTableSpecCell.js","assets/images/arrowTagButton2x.svg","Containers/Common/HorizontalScroll/HorizontalScroll.js","Containers/Product/Report/Components/Preview/PreviewDateBlock.js","Containers/Product/Report/Components/Preview/PreviewDatePicker.js","assets/images/DownloadIcon.svg","Containers/Product/Report/Components/Preview/ReportPreviewModal.js","assets/images/PreviewIconDefault.svg","Containers/Product/Report/Components/ReportButtons/ReportButtons.js","Containers/Product/Report/ReportsTable/ReportsTableActionsCell.js","Containers/Product/Report/Components/ReportSpecs/DateBlock.js","Containers/Product/Report/Components/ReportSpecs/DatePicker.js","Containers/Product/Report/Components/ReportSpecs/RequestRetestModal.js","Containers/Product/Report/Components/ReportSpecs/CheckboxInput.js","Containers/Product/Report/Components/ReportSpecs/DetailedPesticideReport.js","Containers/Product/Report/Components/ReportSpecs/SampleTestResultTable.js","Containers/Product/Report/Components/ReportSpecs/SampleResultsModal.js","Containers/Product/Report/OutsideClick.js","Containers/Product/Report/ReportsTable/ReportsTableHeaderCell.js","Containers/Product/Report/ReportsTable/ReportsTableDraggableHeaderCell.js","Containers/Product/Report/ReportsTable/ReportsTableHeader.js","Containers/Product/Report/ReportsTable/ReportsTable.js","Containers/Product/Report/Report.js","Containers/Product/Analytics/Containers/CommonComponents/TitleBlock.js","actions/productAnalytics.js","Containers/Product/Analytics/Containers/CommonComponents/Search.js","Containers/Product/Analytics/Containers/CommonComponents/SelectionTitleSkeleton.js","Containers/Product/Analytics/Containers/CommonComponents/SelectionCard.js","Containers/Product/Analytics/Containers/ProductContainer/Components/ProductCard.js","Containers/Product/Analytics/Containers/ProductContainer/Components/ProductList.js","Containers/Product/Analytics/Containers/ProductContainer/ProductContainer.js","Containers/Product/Analytics/Helper.js","Containers/Product/Analytics/Containers/GraphContainer/Components/GraphTooltip.js","Containers/Product/Analytics/Containers/GraphContainer/Components/ScatterPoint.js","Containers/Product/Analytics/Containers/GraphContainer/Components/ComposedGraph.js","Containers/Product/Analytics/Containers/GraphContainer/Components/GraphTooltipCursor.js","Containers/Product/Analytics/Containers/GraphContainer/Components/Graph.js","Containers/Product/Analytics/Containers/CommonComponents/AnalyticsDatePicker.js","Containers/Product/Analytics/Containers/GraphContainer/Components/GraphPill.js","Containers/Product/Analytics/Containers/GraphContainer/Components/GraphHeader.js","Containers/Product/Analytics/Containers/GraphContainer/GraphContainer.js","Containers/Product/Analytics/Containers/TestContainer/Components/TestList.js","Containers/Product/Analytics/Containers/CommonComponents/SearchTests.js","Containers/Product/Analytics/Containers/TestContainer/TestContainer.js","Containers/Product/Analytics/Analytics.js","assets/images/product/template/AddWhite.svg","Containers/Product/Template/Components/Common/CreateReportButton.js","assets/images/common/LeftArrowRounded.svg","Containers/Product/Template/Components/Common/TemplateSearch.js","Containers/Product/Template/Components/Common/Header.js","Containers/Product/Template/helper.js","Containers/Product/Template/Components/COA/COAListItem.js","Containers/Product/Template/Components/COA/COADeleteModal.js","Containers/Product/Template/Components/Templates/TemplatePreview.js","actions/productTemplate.js","assets/images/product/template/pumpkin.png","Containers/Product/Template/Components/Common/NoResultFound.js","Containers/Product/Template/Components/COA/COAList.js","Containers/Product/Template/Components/Common/COALoadingPage.js","Containers/Common/LoadingOverlay.js","Containers/Product/Template/Components/Common/CreateTemplate.js","assets/images/product/template/edit.svg","Containers/Product/Template/Components/Templates/TemplateDeleteModal.js","assets/images/product/template/options.svg","Containers/Product/Template/Components/Templates/TemplateCard.js","Containers/Product/Template/Components/Templates.js","Containers/Product/Template/Components/COA/COAReport.js","Containers/Product/Template/Components/DataFieldsButton.js","Containers/Product/Template/Components/DataFields/DataFieldsSearch.js","Containers/Product/Template/Components/DataFields/DataFieldsDeleteModal.js","Containers/Product/Template/Components/DataFields/DataFieldsEditModal.js","Containers/Product/Template/Components/DataFields/DataFieldsAdd.js","assets/images/product/template/SearchBlueIcon.png","Containers/Product/Template/Components/DataFields/DataFieldsModal.js","Containers/Product/Template/Components/COA.js","Containers/Product/Template/Components/Builder/BuilderTests/Components/TestViewToggle.js","Containers/Product/Template/Components/Builder/BuilderTests/BuilderTests.js","assets/images/product/template/ProductIconFilled.svg","assets/images/product/template/CalendarIcon.svg","assets/images/product/template/saveCheckmarkIcon.svg","Containers/Product/Template/Components/Builder/ConfirmSave/BuilderSaveSuccess.js","Containers/Product/Template/Components/Builder/ConfirmSave/SubmitButton.js","Containers/Product/Template/Components/Builder/ConfirmSave/Constant.js","Containers/Product/Template/Components/Builder/ConfirmSave/COASave.js","Containers/Product/Template/Components/Builder/ConfirmSave/TemplateSave.js","Containers/Product/Template/Components/Builder/ConfirmSave/BuilderConfirmSave.js","Containers/Product/Template/Components/Builder/Contents/ContentItem.js","Containers/Product/Template/Components/Builder/Contents/ContentAddItem.js","Containers/Product/Template/Components/Builder/Contents/BuilderContent.js","Containers/Product/Template/Components/PDF/pdfUtils.js","Containers/Product/Template/Components/PDF/PDFImageWithText.js","Containers/Product/Template/Components/PDF/PDFHeader.js","Containers/Product/Template/Components/PDF/TableHeader.js","Containers/Product/Template/Components/PDF/TableRow.js","Containers/Product/Template/Components/PDF/PDFTable.js","Containers/Product/Template/Components/PDF/TableHeaderSamples.js","Containers/Product/Template/Components/PDF/TableRowSamples.js","Containers/Product/Template/Components/PDF/PDFTableSamples.js","Containers/Product/Template/Components/PDF/PDFBody.js","Containers/Product/Template/Components/PDF/PDFSignature.js","Containers/Product/Template/Components/PDF/PDFFooter.js","Containers/Product/Template/Components/PDF/PDF.js","assets/images/sample-submission/addTestIcon.svg","Containers/Product/Template/Components/Builder/Preview/BuilderPreview.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderAddSection.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderImage.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderImageWithText.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderHeader.js","Containers/Product/Template/Components/Builder/DragAndDrop/BuilderDragDropContext.js","Containers/Product/Template/Components/Builder/DragAndDrop/TemplateBuilderDroppable.js","assets/images/product/template/inputCheckmark.svg","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/Inputs/COABuilderInput.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/Inputs/COABuilderSelect.js","Containers/Product/Template/Components/Builder/DragAndDrop/COABuilderDraggable.js","assets/images/product/template/deleteSectionIcon.svg","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderDroppableSection.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderSection.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderSignature.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderTestReportSection.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderSampleReportSection.js","Containers/Product/Template/Components/Builder/Center/CustomCOABuilderCenter/COABuilderCenterContent.js","assets/images/product/template/TemplatePreviewIcon.svg","Containers/Product/Template/Components/Builder/Center/EditPreviewButton.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/Inputs/TemplateBuilderInput.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/Inputs/NumberInput.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/UploadImage.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/DetailsContent.js","Containers/Product/Template/Components/Builder/DragAndDrop/DragHandle.js","Containers/Product/Template/Components/Builder/DragAndDrop/SectionInputDraggable.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/DroppableSection.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/SectionContent.js","Containers/Product/Template/Components/Builder/DragAndDrop/StatementSignatureDraggable.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/StatementCardContent.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/BuilderSection.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/COAPlaceholderSection.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter/TemplateBuilderCenterContent.js","Containers/Product/Template/Components/Builder/Center/TemplateBuilderCenter.js","Containers/Product/Template/Components/Common/TemplateSectionSearch.js","Containers/Product/Template/Components/CreateFieldModal/CreateFieldModalHeader.js","Containers/Product/Template/Components/CreateFieldModal/DataFieldEditCard.js","Containers/Product/Template/Components/CreateFieldModal/CreateFieldModalRight.js","Containers/Product/Template/Components/CreateFieldModal/CreateFieldModalLeft.js","Containers/Product/Template/Components/CreateFieldModal/CreateFieldModal.js","Containers/Product/Template/Components/Builder/BuilderComponents/DataFieldSort.js","Containers/Product/Template/Components/Builder/BuilderComponents/BuilderElement.js","Containers/Product/Template/Components/Builder/DragAndDrop/BuilderElementDraggable.js","Containers/Product/Template/Components/Builder/BuilderComponents/DataFields.js","Containers/Product/Template/Components/Builder/BuilderComponents/DataFieldsSection.js","Containers/Product/Template/Components/Builder/BuilderComponents/TextBoxSection.js","Containers/Product/Template/Components/Builder/BuilderComponents/BuilderComponents.js","Containers/Product/Template/Components/Builder/DragAndDrop/BuilderDragDropWrapper.js","Containers/Product/Template/Components/Builder/Header/BuilderBackButton.js","Containers/Product/Template/Components/Builder/Header/BuilderHeader.js","Containers/Product/Template/Components/TemplateBuilder.js","assets/images/feature-icons/TemplateOutlined.svg","Containers/Product/Template/Template.js","assets/images/feature-icons/AnalyticsOutlined.svg","Containers/Product/Product.js","Containers/SampleSubmission/Onboarding/CommonComponent/LandingPage.js","Containers/SampleSubmission/Onboarding/CommonComponent/OnboardingFormLayout.js","Containers/SampleSubmission/Onboarding/CommonComponent/OnboardingForm/OnboardingProductForm.js","Containers/SampleSubmission/Onboarding/CommonComponent/OnboardingForm/OnboardingFormBtn.js","Containers/SampleSubmission/Onboarding/CommonComponent/OnboardingForm/OnboardingEnvironmentForm.js","Containers/SampleSubmission/Onboarding/CommonComponent/OnboardingForm/OnboardingForm.js","Containers/SampleSubmission/Onboarding/CommonComponent/OnboardingForm/InitialValues.js","Containers/SampleSubmission/Onboarding/CommonComponent/SuccessLandingPage.js","Containers/SampleSubmission/Onboarding/EnvironmentOnboarding/EnvironmentLandingPage.js","Containers/SampleSubmission/Onboarding/ProductOnboarding/ProductLandingPage.js","Containers/Common/hooks/useAbortController.js","Containers/Common/UIComponents/SuccessAnimation.js","Containers/SampleSubmission/SampleFunctionContext.js","Containers/SampleSubmission/SampleSubmissionContext.js","Containers/SampleSubmission/SampleSubmissionModal/SampleSubmissionModalEditsInfo.js","Containers/SampleSubmission/SubmissionForm/Constant.js","assets/images/sample-submission/close.svg","assets/images/sample-submission/SubmitBlue.svg","Containers/SampleSubmission/SampleSubmissionModal/Comment.js","Containers/SampleSubmission/SampleSubmissionModal/SampleSubmissionConfirmModal.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptModalHeader.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/SamplesInfo.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/SenderInfo.js","assets/images/common/DownloadIcon.svg","assets/images/common/PrintIcon.svg","assets/images/sample-submission/InfoIconSuccess.svg","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptModalActionsBar.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptPDF/ReceiptPDFFooter.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptPDF/pdfUtils.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptPDF/ReceiptPDFHeader.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptPDF/ReceiptPDFSamplesInfo.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptPDF/ReceiptPDFSenderInfo.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptPDF/ReceiptPDFSamplesList.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/SamplesList.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/SubmissionReceiptModal.js","Containers/SampleSubmission/SampleSubmissionModal/SubmissionReceiptModal/ReceiptPDF/ReceiptPDF.js","Containers/SampleSubmission/SampleSubmissionModal/AddTestModal.js","assets/images/sample-submission/exclamationIcon.svg","Containers/SampleSubmission/SubmissionForm/ReusableComponents/MaxCharacterCount.js","Containers/SampleSubmission/SubmissionForm/ReusableComponents/ErrorCheckingAutocomplete.js","assets/images/sample-submission/pesticideAutocompleteIcon.svg","Containers/SampleSubmission/SubmissionForm/ReusableComponents/PesticideSampleAutocomplete.js","assets/images/sample-submission/addSamplePlusIcon.svg","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/AnalysisRequest/AnalysisRequest.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/Buttons/AddUpdateSampleButton.js","Containers/SampleSubmission/SubmissionForm/helpers.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SampleDetails/SampleDetailsAutocompleteInput.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SampleDetails/UploadImageInput.js","Containers/SampleSubmission/utils.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SampleDetails/SampleDetails.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SampleID.js","Containers/Common/TimeFromNow.js","assets/images/sample-submission/blueRightArrow.svg","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SubmissionCol/AddedSampleCard.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SubmissionCol/AddedSamplesList.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SubmissionCol/SubmissionCol.js","Containers/SampleSubmission/SubmissionForm/SampleDetailsPage/SampleDetailsPage.js","Containers/SampleSubmission/SubmissionForm/SubmissionDetailsAddressPage/SubmissionDetailsAddressPage.js","Containers/SampleSubmission/SubmissionForm/SubmissionForm.js","assets/images/sample-submission/moreIcon.svg","assets/images/feature-icons/ProductIconFilled.svg","Containers/SampleSubmission/MainPage/Submissions/ActionsMenu.js","assets/images/feature-icons/EnvironmentIconFilled.svg","assets/images/sample-submission/Share.svg","Containers/SampleSubmission/MainPage/Submissions/SubmittedSubmissionRow.js","assets/images/sample-submission/Tube.svg","Containers/SampleSubmission/MainPage/Common/FloatingButton.js","Containers/SampleSubmission/MainPage/helper.js","Containers/SampleSubmission/MainPage/Submissions/SampleCard.js","Containers/SampleSubmission/MainPage/Submissions/SubmissionDetailsModalFooterComment.js","assets/images/common/QRIcon.svg","Containers/SampleSubmission/MainPage/Submissions/SubmissionDetailsModal.js","Containers/SampleSubmission/MainPage/Common/SubmissionFilterButton.js","Containers/SampleSubmission/MainPage/Submissions/SubmissionsSearch.js","assets/images/sample-submission/Info.svg","Containers/SampleSubmission/MainPage/Common/Invite/Components/InviteHeader.js","assets/images/product/close.svg","Containers/SampleSubmission/MainPage/Common/Invite/Components/InvitedUsers.js","Containers/SampleSubmission/MainPage/Common/Invite/Components/EmailTag.js","Containers/SampleSubmission/MainPage/Common/Invite/Components/FailedEmailModal.js","Containers/SampleSubmission/MainPage/Common/Invite/Components/AddUser.js","Containers/SampleSubmission/MainPage/Common/Invite/Components/DeleteInvite.js","Containers/SampleSubmission/MainPage/Common/Invite/InviteModal.js","Containers/SampleSubmission/SampleSubmissionModal/SampleShareModal.js","Containers/SampleSubmission/MainPage/Submissions/Submissions.js","Containers/SampleSubmission/MainPage/Drafts/DraftSubmissionCard.js","Containers/SampleSubmission/MainPage/Drafts/Drafts.js","Containers/SampleSubmission/MainPage/Common/CreateNewSubmissionButton.js","Containers/SampleSubmission/CreateSampleModal/CreateSampleModal.js","Containers/SampleSubmission/MainPage/MainPage.js","Containers/SampleSubmission/SampleSubmissionModal/SampleExitModal.js","Containers/SampleSubmission/SampleSubmission.js","assets/images/feature-icons/ProductOutlined.svg","assets/images/feature-icons/EnvironmentOutlined.svg","Containers/SampleSubmission/SampleSubmissionNav.js","Containers/UnderMaintenance.js","Containers/LoggedIn.js","Containers/Login/Common/PasswordInput.js","Containers/Login/Common/LoginInput.js","assets/images/logo/esv_logo_2x.png","Containers/Login/Login.js","Containers/Login/SupportLogin.js","Containers/Login/LoginController.js","Containers/SignUp/StatusPage.js","Containers/Login/ResetPassword.js","Containers/Login/ResetPasswordController.js","Containers/Onboarding/InviteForm/InviteCustomerForm.js","Containers/Onboarding/helpers.js","Containers/Onboarding/InviteForm/InviteForm.js","Containers/Onboarding/StatusPage.js","Containers/Onboarding/InviteForm/InviteFormController.js","Containers/Onboarding/OnboardingForm/OnboardingFormController.js","Containers/Product/Report/Components/Share/PdfThumbnail.js","Containers/Product/Report/Components/Share/pageThumbnailPlugin.js","Containers/Share/ReportThumbnail.js","actions/share.js","Containers/Share/Share.js","assets/images/cross_health___copy.png","Containers/SignUp/SignUp/SignUpInput.js","Containers/SignUp/SignUp/SignUpPasswordInput.js","Containers/SignUp/SignUp/SignUpSinglePage.js","Containers/SignUp/SignUp/SignUp.js","assets/images/signup-invite/exclamationIcon.svg","Containers/SignUp/SignUpInvite/Components/FieldInput.js","Containers/SignUp/SignUpInvite/Components/CustomerInfoSection.js","Containers/Common/CustomMuiSelect/CustomMuiSelect.js","assets/images/signup-invite/close.svg","Containers/SignUp/SignUpInvite/Components/DropdownFieldInput.js","Containers/SignUp/SignUpInvite/Components/CustomFieldInput.js","Containers/SignUp/SignUpInvite/Components/InfoInputSection.js","Containers/SignUp/SignUpInvite/Components/InviteButton.js","Containers/SignUp/SignUpInvite/SignUpInvite.js","Containers/SignUp/SignUpSuccessController.js","Containers/SignUp/SignUpController.js","Containers/LoggedOut.js","actions/interceptor.js","App.js","Containers/Common/AppUpdate/AppUpdate.js","serviceWorker.js","index.js"],"names":["module","exports","AppContext","createContext","_style","_circle","_circle2","_circle3","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","SvgLoadingDots","_ref","svgRef","title","props","createElement","width","height","viewBox","ref","className","cx","cy","r","ForwardRef","forwardRef","StyledButton","block","danger","disabled","ghost","href","htmlType","icon","loading","loadingDots","shape","size","type","onClick","children","restProps","React","Button","concat","LoadingDots","API_URL","process","AES_128_BIT_KEY","hardcodedPermissions","profile","description","codename","authorized_roles","sample_submission","onboarding","spec_manager","product","checkIfRememberMe","sessionStorage","getItem","getUserCredentials","userInfoAsString","localStorage","JSON","parse","setUserCredentials","_storageType","data","appContext","storageType","storage","window","x","setItem","removeItem","e","storageAvailable","setUserTitle","user_title","stringify","isUser","user_details","uid","getMandatoryUserData","user","user_payload","company_name","company_domain","signOut","history","_getUserCredentials","userType","clear","replace","handleLocalStorageChange","oldValue","newValue","location","reload","checkUser","async","email","companyName","params","disableInterceptor","resp","axios","get","status","user_name","user_contact","firebase_exist_status","result","success","message","phone_number","_e$response","_e$response$data","response","userNotFound","handlePageLoad","userInfo","user_email","getTabsList","_JSON$parse","config","tabsList","hasFeature","feature","getFeatures","_JSON$parse2","featuresList","indexOf","hasPermission","_JSON$parse3","isString","permissions","filter","itemCodeName","getViewAsPerStatusCode","error","request","pathname","formatDateForDisplay","date","moment","Date","format","getValueOfObj","objName","objValue","undefined","_len","fields","Array","_key","isNonEmptyField","arr","field","getFileNameAndExtensionFromPath","path","basename","split","pop","pos","lastIndexOf","name","ext","slice","getFileNameWithTimestampRemoved","nameArr","join","getPresignedURL","action","aws_s3_urls","post","pause","timeout","Promise","resolve","setTimeout","getFiles","filePath","fileUrl","attempts","responseType","headers","blob","Blob","getFileFromS3WithPresigned","filePaths","aws_bucket","bucket","urls","map","region","presignedUrls","getFilePromise","keys","fileResults","all","merge","downloadFileFromS3WithPresigned","fileNames","fileBlobObjs","forEach","index","url","URL","createObjectURL","downloadFilename","a","document","download","click","remove","getFilePath","fileInfo","folderPath","fileName","sanitizedFileName","postFile","presignedData","file","formData","FormData","toPairs","fieldKey","fieldValue","append","_e$response2","uploadFileToS3WithPresigned","fileInfoList","pathObj","fileObj","reduce","acc","push","content_type","postFilesResults","deleteFileFromS3WithPresigned","switchCompany","selectedCompany","userTitle","user_data","getTabsForCompany","companyData","find","item","tabsObj","tabs","featuresObj","features","tab","_e$response2$data","AddCompanySuccessLandingPage","newCompanyName","user_Title","currCompanyName","count","setCount","useState","useContext","setIsSwitching","setSelectedCompany","useHistory","handleSwitchCompany","prevCompany","toast","useEffect","timer","setInterval","prevCount","clearInterval","Row","justify","span","Flex","src","arrow","alt","Onboarding_Art_Product","NoResults","Component","render","image","FormLayout","_g","_defs","SvgGbLogo","fill","clipPath","fillRule","clipRule","d","stroke","strokeWidth","id","gradientUnits","gradientTransform","stopColor","stopOpacity","offset","_path","_path2","_path3","SvgEsvLogo","FormPageLayout","addCompany","Col","flex","GBLogo","ESVLogo","SvgContactInfo","SvgCustomer","SvgAccountCreation","_mask","_mask2","maskUnits","y","mask","OnboardingWelcomePageCard","Icon","OnboardingWelcomePage","setDisplay","customerName","CustomerExist","Fragment","Customer","ContactInfo","AccountCreation","GroupPNG","SvgAccount","_rect","SvgEsv","patternContentUnits","xlinkHref","transform","SvgCustomerInfo","RenderIconOnNextClick","Inx","CustomerInfo","Contact","ESV","Account","RenderIconOnNextClickForCustomerExist","_ref2","RenderIconOnPreviousClick","_ref3","RenderIconOnPreviousClickForCustomerExist","_ref4","getCustomerInfo","customer_id","customerID","AddressSection","label","namePath","setLoading","form","useFormInstance","Form","Item","Spin","indicator","LoadingOutlined","spin","valuePropName","Checkbox","onChange","checked","_parsedStreet","_parsedStreet2","_parsedAddress","_parsedAddress2","_parsedAddress3","_parsedAddress4","parsedAddress","city","state","country","zipCode","parsedStreet","street","line_2","address_2","_CityState$","CityState","CountryZip","address_1","Street","setFieldValue","zipcode","validateFields","recursive","dirty","rules","required","Input","placeholder","SvgClearfield2","BillingAddressSection","initialValues","emailValidator","phoneValidator","addressData","sameAsAddress","setSameAsAddress","same_as_address","addressValues","allowClear","clearIcon","CloseIcon","validator","max","MyForm","ContactInfoSection","FormButtons","nextButtonText","handleBack","showBack","useHandleStepChange","FORM_NAME","stepChangeInProgress","handleFormStepChange","formatValues","diff","getFieldValue","CompanyContactForm","onNextButton","onBackButton","onFinishFailed","useForm","labelCol","wrapperCol","layout","requiredMark","validateTrigger","onFinish","values","address","validateEmail","string","test","validatePhoneNumber","validatePassword","password","CompanyInfoForm","isExistingCustomer","isSupport","userCredential","emailValidationCache","useRef","Map","cachedValidateEmail","current","has","isValid","set","debouncedUpdatingDistributions","debounce","updatedDistributions","setFieldsValue","distribution_list","nextStepHandler","_","userExists","customer_name","reject","Error","value","emails","every","trim","Select","mode","open","suffixIcon","tokenSeparators","tagRender","onClose","isAdminEmail","validEmail","Tag","color","ExclamationCircleOutlined","onMouseDown","preventDefault","stopPropagation","closable","closeIcon","iconSize","onDeselect","StyledRadioGroup","buttonStyle","defaultValue","options","optionType","Radio","Group","StyledTooltip","placement","showArrow","Tooltip","overlayClassName","SvgClearField","INVALID_CHARS","INVALID_CHARS_ESCAPED","EditableFields","getJsonFieldName","onGetData","removableFieldIndex","fieldLimit","fieldsList","useWatch","validating","setValidating","then","catch","handleValidateOnListChange","onKeyDown","includes","escapeRegExp","str","List","add","errors","rule","_fields","currJsonField","escapedInvalidChars","regex","RegExp","firstMatch","match","_field","noStyle","MinusCircleOutlined","PlusOutlined","ErrorList","colorsForBar","colorsAndIconsArray","testIcon","testGraphPillPurple","borderColor","accentColor","hoverColor","testGraphPillOrange","testGraphPillBlue","testGraphPillPink","testGraphPillGreen","parsePinQuadrant","mapTitle","quadrant","Number","isNaN","parseFloat","getEnvironmentFields","skipMaintenanceRedirect","_resp$data","index0","link_pattern_fields","sampleid_fields","delimeter","link_pattern","delimiter","getSwabs","payload","signal","_payload$specFlag","search","searchValue","spec_flag","specFlag","date_from","dateStart","date_to","dateEnd","pinMap","points","pin","x_coordinate","y_coordinate","location_id","dates","addSwab","convertSwab","swab","swab_list","pointsList","successSwabs","success_swabs","failedSwabs","partition","getAllFilePaths","page","parseInt","next_page_link","total_page","paths","getEnvSpec","received_date","sample_id","sample_type","res","spec","updateEnvSampleImage","image_path","patch","envAnalyticsDataFetch","getProductFields","link_report","fieldsMap","fieldObj","json_field","getReports","reqUrl","substr","fromm","to","specs_flag","retest","prev_page_link","prevPageLink","nextPageLink","last_page_link","lastPageLink","totalPage","files","report","report_date","canceled","isCancel","getSpec","methodReference","index_id","report_id","method_reference","_e$response4","_e$response4$data","SvgInfo","FieldsForm","existingUser","handleSubmit","submitting","formStep","setFormStep","productSampling","setProductSampling","environmentSampling","setEnvironmentSampling","productDropdownOptions","setProductDropdownOptions","envDropdownOptions","setEnvDropdownOptions","stepValues","setStepValues","nextButtonValid","setNextButtonValid","showEnvQuestion","setShowEnvQuestion","showProdQuestion","setShowProdQuestion","showProdQuesForm","setShowProdQuesForm","showEnvQuesForm","setShowEnvQuesForm","hasSelectedNoProd","setHasSelectedNoProd","hasSelectedNoEnv","setHasSelectedNoEnv","filterJsonField","excludeFields","title_field","jsonFieldName","toLowerCase","createFieldArray","exceptionFields","getFieldArrayItem","isArray","titleField","fieldArray","entries","flat","resetFieldsForProdForm","_initialValues$produc","_initialValues$produc2","_ref5","resetFields","sample_supply","add_company","product_info","product_link","editable_fields","resetFieldsForEnvForm","_initialValues$enviro","_initialValues$enviro2","_initialValues$enviro3","_initialValues$enviro4","_initialValues$enviro5","_ref6","env_sample_supply","env_add_company","environment_info","section","swab_number","zone","environment_link","handleEditableFields","fieldList","currentStep","newFields","fieldsToAdd","newField","some","oldField","fieldsToRemove","fieldsToChange","fieldCheck","updatedFieldsValues","dropdownOptions","newOptionsToAdd","option","existingOption","filteredProductDropdownOptions","fieldsReports","prevState","_values$product_info","_values$environment_i","_valuesCopy$product_i","_valuesCopy$product_i2","_valuesCopy$environme","_valuesCopy$environme2","valuesCopy","editableFieldsProduct","displayName","_displayName$json_fie","_displayName$title_fi","_displayName$title_fi2","editableFieldsEnv","_displayName$json_fie2","_displayName$title_fi3","_displayName$title_fi4","getFieldsValue","_formData$add_company","_formData$product_lin","_formData$env_add_com","_formData$environment","_formData$environment2","environment_supplies_needed","getFieldsValues","_formData$add_company2","_formData$product_lin2","_formData$env_add_com2","_formData$environment3","_formData$environment4","handleNextButton","handleInitialValues","formName","_ref9","_stepValues$product_i","_formData$product_inf","_formData$product_inf2","_stepValues$product_i2","_formData$environment9","_formData$environment10","_formData$environment11","_formData$environment12","_formData$environment13","_stepValues$environme3","_stepValues$environme4","_formData$environment14","_formData$environment15","_formData$env_add_com4","_stepValues$product_i3","linkReport","_editableFields$map","_linkReport$filter","elem","nonEditables","editableFields","_ref7","getFieldsForProdForm","Info","editableFieldsValue","_result$fields$filter","_editableFields$map2","_result$link_pattern_","dynamicFields","_ref8","getFieldsForEnvForm","editablefielsdValue","fieldsData","_stepValues$environme2","_formData$environment7","_formData$environment8","_formData$env_add_com3","_formData$add_company4","getFieldsError","_stepValues$environme","_formData$product_lin3","_formData$add_company3","fieldData","_formData$editable_fi","_ref10","_formData$environment5","_formData$environment6","LinkReportForm","setDropdownOptions","uneditableFields","editableFieldsEntries","json","editableFieldsList","filteredProductLink","SignupForm","setExistingUser","checkUserLoading","setCheckUserLoading","mail","checkUserExists","autoComplete","Password","iconRender","visible","eyeOpenedIcon","eyeClosedIcon","dependencies","disable","SvgMain","OnboardingForm","_formData$company_inf","_formData$company_inf2","_formData$company_inf3","_formData$company_inf4","_formData$company_inf5","_formData$company_inf6","statusMessage","setStatusMessage","useLocation","stepItems","setStepItems","Main","setStepChangeInProgress","loaded","setLoaded","invalidMessage","setInvalidMessage","showForm","setShowForm","setFormData","company_info_form","customer_email","same_address","company_contact_form","fields_form","link_report_form","signup_form","currentFormIdx","setCurrentFormIdx","setSubmitting","submitSuccess","setSubmitSuccess","userMail","setUserMail","display","isCustomerExist","setIsCustomerExist","setIsSupport","defaultPayloadValues","sales_email","csm_email","displaySuccessScreen","setDisplaySuccessScreen","formValues","prevStepItems","stepItem","stepIdx","encrypted","decrypted","AES","decrypt","toString","enc","Utf8","searchParams","URLSearchParams","salesEmail","csmEmail","customerEmail","expirationDate","momentExpirationDate","utc","endOf","currentUTCDate","isAfter","initialFormValues","default_payload_values","company_info","userCredentials","handleParseLink","trimValues","dataObj","mapValues","fieldVal","constructor","val","contact","contact_name","position","billing","bill_to","ap_contact","_product_info$editabl","_environment_info$edi","field_env","signup","base_url","origin","existing_user","current_company_name","_e$response3","_e$response3$data","submitOnboardingForm","newMessage","handleSubmitForm","pumpkinIcon","Steps","items","direction","labelPlacement","AddCompanyLandingPage","AuthFailedPage","timeRemaining","setTimeRemaining","intervalID","maintenanceImg","DocumentsMenuOption","handleRenameFile","handleDownloadFile","handleConfirmDelete","handleFileOptionClick","onOpenChange","DocOptionRenameIcon","DocOptionDownloadIcon","DocOptionDeleteIcon","Dropdown","menu","trigger","OptionIcon","DocumentsCard","super","handleCardEnter","setState","cardHover","handleCardLeave","renderFileIcon","extension","PDFileICon","XlSXFileIcon","ImageFileICon","isOpen","menuOpen","readOnly","handleCheckbox","handleNameChange","handleNameSubmit","handleCancelRename","onMouseEnter","onMouseLeave","style","top","renameDisable","renameValue","DocumentsCardView","Scrollbar","disableTrackYWidthCompensation","disableTracksWidthCompensation","DocumentsConfirmDelete","toggleConfirmDelete","numOfSelectedFiles","handleDeleteFile","batch","deleteItem","Modal","centered","footer","wrapClassName","onCancel","DocumentsListView","handleCheckboxAll","selectAll","selectedFile","toUpperCase","fileSize","uploadDate","optionFile","pId","product_id","postFiles","category","searchFiles","Documents","apiGetFiles","results","uploaded","file_path","nubOfSelectedFile","handleUploadedFiles","event","filesUploaded","from","filesArr","expXLSX","expXLS","expDocX","expDoc","dotIndex","filesSet","duplicateKeys","supportedExtensions","substring","now","Math","ceil","uploadedFile","currentFile","keyItem","apiPostFiles","payloadObj","payloadArray","old_name","new_name","addFilesToAWS","successFilePaths","fileSelected","addAssetToAWS","uploadObj","handleAddFile","docUploadInput","addEventListener","preventCheckbox","confirmDelete","awsFiles","tempArray","deleteFileAWS","fileItem","handleChangeView","cardView","selected","counter","handleClearAll","handleFileOptionClose","char","handleSearchChange","showSearchIcon","createRef","componentDidMount","numFiles","currentTarget","DownloadHoverIcon","DownloadIcon","TrashHoverIcon","TrashIcon","SearchIcon","SearchIconActive","autoFocus","DocSearchIconClose","CardViewIcon","CardViewIconInactive","ListViewIconInactive","ListViewIcon","multiple","hidden","AddFileIcon","NavTabs","activeKey","addIcon","animated","defaultActiveKey","hideAdd","indicatorSize","moreIcon","popupClassName","renderTabBar","tabBarExtraContent","tabBarGutter","tabBarStyle","tabPosition","destroyInactiveTabPane","onEdit","onTabClick","onTabScroll","Tabs","EnvConfirmModal","headerText","bodyText","buttonText","buttonFunctions","renderExtraContent","maskClosable","destroyOnClose","SvgCheckMark","xmlSpace","SvgStepCircle","SvgStepCircleNoFillLightBlue","SvgRedWhiteCircle","SvgExclamationMarkRedBg","StepCircle","number","openCreateEnvModalFromTab","ErrorCicle","ErrorExclamation","StepCircleIcon","StepCircleNoFillLightBlue","CheckMarkIcon","SvgUpload","strokeLinecap","strokeLinejoin","DragDrop","uploadTarget","getRootProps","getInputProps","UploadIcon","LoadingConfimBtn","SvgXlsFileRing","SvgDelete","SwabFileItem","_fileData$apiStatus","_fileData$errorMessag","_fileData$errorMessag2","fileData","toggleDeleteConfirmation","returnFileSize","linkPatternFields","errorMessages","FileStatusIcon","apiStatus","body","DeleteIcon","numSwabs","idx","idx_td","SwabFileExample","UploadSwabFiles","handleClickCancel","handleDeleteIconClick","proceedToUploadMap","ifOnlyUploadSwabFile","toggleShowCreateEnvModal","updatePinsList","emptyFilesOrMap","openFromEmptyPage","clearFilterCalendarAndSelected","selectedFilesMap","setSelectedFilesMap","fileNameToFreq","setFileNameToFreq","filesData","setFilesData","nextfileId","setNextFileId","dragging","setDragging","showSubmit","setShowSubmit","ifAnySwabUploaded","setIfAnySwabUploaded","checkFrontEndFileError","fileNameToFreqObj","onDrop","useCallback","acceptedFiles","fileRejections","fileId","fileIdToData","fileMetaData","reader","FileReader","onload","workbook","XLSX","sheetName","SheetNames","worksheet","Sheets","sheet_to_json","defval","err","readAsArrayBuffer","onDragEnter","onDragLeave","useDropzone","accept","maxSize","modalType","showConfirmation","fileToDelete","delete","showSubmitButton","handleClickDelete","handleClickSkip","LoadingConfirmBtn","ifDisableSubmit","ifDisabledNext","filesDataToUpload","ifAnySwabUploadedUpdate","formattedSwab","handleClickNext","SvgGarbageBin","SvgEdit","SvgRedCircleWhiteExclamation","UploadMapPreview","imgErrorMessage","imageTitle","imgSize","handleDeleteImage","handleChangeTitle","editingFileName","setEditingFileName","handleOutsideClick","ErrorIcon","hanldleEnterKeyPress","onBlur","EditIcon","handleEditFileName","GarbageBinIcon","UploadMap","handleUploadImage","uploadMapStatusControl","setSrc","imageFile","setImageFile","setImageTitle","setImgSize","imgWidthHeight","setImgWidthHeight","setImgErrorMessage","disableSubmitImg","setDisableSubmitImg","errorMsg","returnValidFileErr","Image","readAsDataURL","apiAddMap","addMapImage","trimTitle","fileBlob","image_height","image_width","CreateEnvModal","addListOfPoints","step","setStep","stepOneStatus","setStepOneStatus","stepTwoStatus","setStepTwoStatus","showCancelConfirmModal","setShowCancelConfirmModal","popupType","setPopupType","setCurrentFile","setFileToDelete","emtpyFilesOrMapStatus","setEmptyFileOrMapStatus","setFilesOrMapStatus","hasData","numberInKB","round","numberInMB","handleDeleteFileClick","SvgAddIconCircleBlue","EmptyPage","AddIconCircleBlue","handleClick","CreateNewPin","inputValues","swabDesc","chosenQuadrant","duplicate","area_lists","createNewSwabCardRef","apiGetAreaLists","toggleAddingSwab","getAreaLists","setFieldError","handleCancelClick","handleConfirmClick","_swabDesc$trim","sampleIDFields","inputErrors","inputs","_inputValues$json_fie","_inputValues$json_fie2","invalidMatches","togglePinningNewSwab","handleAddNewSwab","setSelectedLocationID","handleSelectQuadrant","newPin","handleAutocompleteOptionClick","handleAutocompleteInputChange","chooseQuadrant","quad","handleHoverQuadrant","scrollIntoView","motion","div","initial","opacity","animate","transition","duration","exit","errorIcon","_area_lists$json","AutoComplete","filterOption","inputValue","_option$value","onSelect","onSearch","notFoundContent","indexOfQuadrant","rows","checkMapClicked","clickX","clickY","mapWrapper","getElementsByClassName","bounds","getBoundingClientRect","mapWidth","mapHeight","mapX","mapY","checkPinIsPinned","memo","locationID","quadrantSelected","indexOfQuadrantHoverOver","isAddingNewSwab","isSearching","isLocatingSwab","updatePinInfo","isDragging","selectedLocationID","endPinningSwab","toggleTooltip","setDisplayTooltipLocationID","clickQuadrant","isClickingQuadrant","transformWrapperRef","displayFields","isPinningNewSwab","isPinningSwab","imageSrc","searchResultSelected","toggleReportView","showReportView","forceReportViewRerender","hoveringPinIcon","setHoveringPinIcon","pinDetailBlockRef","quadrantChoicesRef","unpinnedIconRef","quadrantClassName","behavior","inline","selectQuadrant","resetTheZoom","handleMouseLeaveQuadrant","indexHoverOver","quadrantIdx","classList","handlePinIconClickAway","deleteIconClicked","clientX","clientY","handlePinIconClick","getColorTagClassName","flag","ClickAwayListener","onClickAway","deleteIcon","el","fixedField","infoFields","handlePinDetailBlockClick","Highlighter","highlightClassName","searchWords","autoEscape","textToHighlight","_pin$field$json_field","onMouseOut","whiteMap","pinIconHover","pinIcon","added_on","shouldNotUpdate","prevProps","nextProps","PinList","displayTooltip","tooltipStyle","left","tooltip","LayoutGroup","AnimatePresence","PinDetailBlock","SvgCalendarIcon","SvgCalendarDownArrow","MONTHS","getSelectedDates","dateSelected","rangeSelectionComplete","dateOne","dateTwo","getFormattedDaysAgoString","dateFrom","dateTo","month","day","year","toLocaleDateString","MonthYearSelect","currentSelectedMonth","setCurrentSelectedMonth","currentSelectedYear","setCurrentSelectedYear","startYear","endYear","flatpickrRef","years","range","instance","flatpickr","changeMonth","listItemHeight","listHeight","CalendarDownArrow","changeYear","convertUtcToLocal","utcTime","local","SvgCloseIconFilled","currDate","currYear","start","subtract","end","Calendar","setShowCalendarInternal","handleSearchDate","handleCancel","setPrevDateSelected","getReportDates","setDateSelected","searchOnClear","calendarClassName","disableSingleDaySelection","useLocalTime","startDate","setStartDate","endDate","setEndDate","flatpickrSelectedDates","setFlatpickrSelectedDates","reportDates","setReportDates","Set","datesReceived","setDatesReceived","plugins","allowInput","dateFormat","minDate","startOf","maxDate","datesSet","_date","dateTemp","apiGetReportDates","disableApplyButton","Flatpickr","selectedDates","valueOf","newDateSelected","getTime","dateSelectedFrom","dateSelectedTo","onEndDateChange","fpCurrEndDate","fpCurrMonth","fpCurrYear","onDayCreate","dObj","dStr","fp","dayElem","getAttribute","innerHTML","onMonthChange","dateStr","currentMonth","onYearChange","currentYear","handleApplySearchFilter","formatedDateStart","formatedDateEnd","DatePickerDisplay","showCalendarInternal","displayTextPosition","displayClassName","showText","iconTooltipTitle","customCalendarIcon","displayElemId","defaultCalendarIcon","cancelIcon","DatePicker","showCalendar","setShowCalendar","prevValue","setPrevValue","popoverPlacement","popoverClassName","disableClickAway","getPopupContainer","autoAdjustOverflow","datePickerDisplayProps","prevDateSelected","Popover","destroyTooltipOnHide","content","EnvCalendar","clearCalendar","displayDateSelected","handleFilterByDate","getCalendarDates","hideFilterButton","CalendarIcon","QUADRANT_STYLE_MAP","0","display_name","rgb_values","hover_color","1","2","3","PINS_SPEC_STYLE_MAP","invalid","box_shadow_color","border_color","4","5","6","_ellipse","_ellipse2","_ellipse3","SvgStatusPingDot","rx","ry","fillOpacity","FilterButtons","handleSelectFilter","filterSelected","greyout","StatusDotIcon","EnvSearch","clearSearch","handleStylesWhenSearching","prevSearchValue","handleSearch","handleClearSearch","handleInputClick","handleClickAway","envCalendarRef","OutsideClickHandler","onOutsideClick","searchIconBlue","ListViewContentLoader","amount","ContentLoader","speed","backgroundColor","foregroundColor","AnalyticsListView","parseExcelFile","exitSearch","currentIsSearching","handleClickSearchResult","handleClickCreateNewSwab","displayNoResultFound","duplicateSwab","searchRef","uploadSwabFileIcon","pumpkin","addFileIcon","MapTools","handleZoomIn","handleZoomOut","onZoom","refOfWrapper","minScale","maxScale","setup","scale","disableZoom","zoomInIcon","zoomOutIcon","ZoomDisplay","currentZoom","searchIcon","PinSimpleToolTip","_PINS_SPEC_STYLE_MAP$","border","boxShadow","bottom","SvgPinIconSvg","Pin","listViewDisplay","hideSwabNumber","animationWhenMount","displayTooltipLocationID","endRelocatingSwab","pinRelocatingLocationID","setPinRelocatingLocationID","clearTimeout","handleClickOnPin","isRelocating","pinSpecsFlag","getRGBAColor","rgbVals","pinColor","isSelected","animationClassName","pinAnimation","ease","repeat","PinIcon","borderTop","imageRef","visibleArea","isHightLighted","calcStyle","calcPosition","calculateStyle","imageInfo","visibleAreaInfo","imageX","imageY","imageWidth","imageHeight","visibleAreaX","visibleAreaY","visibleAreaWidth","visibleAreaHeight","pinLeft","pinTop","innerHeight","zIndex","mapState","newState","positionX","positionY","mapStateHasChanged","PinsVisibleArea","containerRef","imageDisplay","setTransform","updateMinScale","visibleAreaFlag","setVisibleAreaFlag","isRelocatingSwab","setIsRelocatingSwab","visibleAreaDims","setVisibleAreaDims","visibleAreaRef","handleResize","imgInfo","adjustRight","right","adjustLeft","adjustTop","adjustBottom","min","removeEventListener","handleScroll","getElementById","displayQuadrantColor","pinnedLocations","inset","cursor","mixBlendMode","borderRadius","UndraggablePin","animation","zoomToQuadrant","wrapperRef","mapComponentRef","contentComponent","firstChild","clientHeight","clientWidth","initialScale","initialPositionX","initialPositionY","newPos","newScale","updateZoom","resetZoom","resetTransform","FullMapSwitch","toggleListViewDisplay","editMapTitleToggle","editingMapTitle","handleFullScreen","fullScreen","exitFullScreen","MapBlurb","deletedLocationID","setDeletedLocationID","text","RemoveSwabBtn","trashIcon","newRatio","trunc","wrapperWidth","wrapperHeight","initialX","initialY","whenImageLoad","currentImageWidth","currentImageHeight","transformInfo","calculateTransformOnImageLoad","scale1","scale2","_imageWidth","_imageHeight","transformRef","getInitialScale","currentScale","getInitialPos","currentX","currentY","initialPos","onInit","handleRemoveSwab","showDeletePinModal","_pinMap$get","draggingOverMap","mapKey","TransformWrapper","animationTime","panning","velocityDisabled","zoomAnimation","doubleClick","limitToBounds","zoomIn","zoomOut","TransformComponent","wrapperStyle","onLoad","handleReset","MapTitleTab","handleEditMapTitle","toggleDeleteTitleConfirm","onDoubleClick","SvgAddMapIconMidnight","MapTabs","tabsInMapView","activeTabIndex","handleTabSelect","tabItems","isEditing","PlusIcon","AnalyticsMapView","background","textAlign","fontSize","fontFamily","marginTop","PdfPreview","scaleType","scaleNumber","scrollBarId","scrollBarBorderRadius","showLoading","showError","handleLoadingDone","Worker","workerUrl","Viewer","defaultScale","SpecialZoomLevel","onDocumentLoad","renderLoader","renderError","messageStyle","PreviewDateBlock","active","updateActiveDate","PreviewDatePicker","activeDate","ReportPreviewModal","handleDateChanged","currentSlide","handleShowRetest","showRetest","previewUrlList","sortedUrlList","sort","b","modalIsAnimating","handleCloseForPreview","afterOpenChange","cancelBtn","Carousel","showIndicators","showThumbs","showArrows","showStatus","selectedItem","margin","emptyStateIcon","ReportViewPin","pinElementRef","zoomToElement","handleZoomToPin","ReportViewHeader","subTitle","subTitleColor","blockColor","SinglePinMapView","NoResultsGIF","pumpkinGIF","SvgRotateIcon","SvgPlusSliderIcon","SvgMinusSliderIcon","SliderWithButtons","setScale","setValue","MinusIcon","Slider","ImageEditToggles","handleRotateImage","RotateIcon","drawRotatedImage","img","canvas","ctx","numRotations","w","naturalWidth","h","naturalHeight","xAxisX","cos","PI","xAxisY","sin","tw","abs","th","drawImage","toBlob","fileType","quality","generateRotatedImageUrl","rotate","getContext","canvasWidth","canvasHeight","maxCanvasSize","scaleFactor","floor","degToUnit","90","180","fillStyle","fillRect","canvasPreviewRotateOnly","UploadImageEditor","previewEditedImage","cropPreviewSrc","canvasRef","rotatingInProcess","setRotatingInProcess","initialCrop","cropObjectRef","imageDims","setImageDims","crop","setCrop","completedCrop","setCompletedCrop","uploadImageContainerRef","handleImageFitToContainer","_imgWidth","_imgHeight","adjustedWidth","adjustedHeight","imgWidth","imgHeight","imgWidthFromRef","imgHeightFromRef","containerWidth","containerHeight","widthScale","heightScale","scaleToUse","updateCanvas","pixelCrop","scaleX","scaleY","pixelRatio","devicePixelRatio","imageSmoothingQuality","cropX","cropY","centerX","centerY","save","translate","restore","canvasPreviewCrop","imageStyle","ReactCrop","percentCrop","onComplete","keepSelection","unit","UploadImage","_imageInfoRef$current","_imageInfoRef$current2","_imageInfoRef$current3","_imageInfoRef$current4","_imageInfoRef$current5","_imageInfoRef$current6","_imageInfoRef$current7","_imageInfoRef$current8","_imageInfoRef$current9","_imageInfoRef$current10","_imageInfoRef$current11","setShowUploadImageModal","setDisplayImageSrc","displayImageSrc","imageInfoRef","setImageInfoRef","setModalHeader","editMode","updateNewSampleImage","fileError","setFileError","originalSrc","setOriginalSrc","originalUrl","setCropPreviewSrc","savingImageLoadingState","setSavingImageLoadingState","imageEditorKey","setImageEditorKey","setPreviewEditedImage","setRotate","setInitialCrop","cropImageRef","ACCEPTED_FILE_TYPES","FILE_SIZE_MAX_LIMIT_MB","prev","rotatedUrl","handleSetRotatedUrl","editedImageBlob","editedSrc","editedFile","File","editedUrl","imageWasEdited","SvgCircularCloseIcon","_g2","UploadImageModal","showUploadImageModal","imageFileType","modalHeader","SvgUploadImageIcon","ReportViewImage","imagePath","curReportInfo","loadingImage","setLoadingImage","info","addSampleImageToAWS","imageUrl","_imageUrl","_imageUrl2","fileBlobObj","imageBlob","loadImageFromAWS","hideUploadImage","showUploadImage","UploadImageIcon","obj","deleteImage","ReportViewTitle","setImagePath","ModalPageTitle","SvgHoveredGarbageCan","SelectionListItem","onDelete","extraFields","useMemo","sample_id_fields","test_list","getSubmittedSubmissionsInfo","submission_id","submission_search","sample_search","user_selected_date_from","user_selected_date_to","submitted_by","sample_category","submitted_by_lst","getDraftSubmissionsInfo","getCustomerAddress","side","_user$user_email","_user$user_name","getSampleFields","delimiterRegex","getDropdownSuggestionsAndTests","sample","getTestList","sampleCategory","displayNameOnly","display_name_only","testList","saveDraft","submission_name","submissionName","po","poNumber","submissionID","adding_sample","_e$response5","_e$response5$data","deleteSubmission","submission_status","SvgBlueCloseIcon","AddEditTestsForm","_testsSelected$select2","markedLocations","setMarkedLocations","setSelected","setSearch","searched","setSearched","testSuggestions","setTestSuggestions","isLoading","setIsLoading","clearTestSearch","setClearTestSearch","testsSelected","setTestsSelected","isSuggestionListVisible","setIsSuggestionListVisible","isDeletingConfirm","setIsDeletingConfirm","isDeleting","testSuggestionsScrollbar","apiGetTestSuggestions","searchInput","test_map","testObj","scrollerElement","scrollTo","testByLocationIds","k","v","debouncedSearch","cancel","toolTipText","replicated","textLines","toggleTestChoice","_test","_testsSelectedCopy$se","testsSelectedCopy","_testsSelectedCopy$se2","t","selectedTests","updated","tests","updatedMarkedLocations","analysisClassName","disableSelection","_testsSelected$select","onPressDeleteSample","onKeyUp","maxLength","addIconBlue","ul","layoutScroll","handleDelete","SvgNextArrowIcon","CreateSamplingEventModalFooter","selectedTab","onSubmit","onTabChange","disableNext","disableAddToCalendar","isSubmitLoading","currentTabIndex","isFirstTab","isLastTab","previousTabIndex","handlePreviousTabChange","reason","nextTabIndex","handleNextTabChange","NextArrowIcon","CreateSamplingEventModalTabs","disableSwitchFromTab","enabledTabsIndex","containerClassName","pickerClassName","rest","isMounted","hasError","isBefore","flatpickrOptions","DaysOfWeekOrder","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","ExtraFieldValueType","getWeekDays","startOfWeek","clone","datesInWeek","getRecurringEventReadableText","frequency","wordsToMark","at","endDateStr","days","weekdays","weekdaystr","ds","daystr","mY","datelist","datestr","populateObjectValues","updatedObject","valueToFill","zipObject","CustomDateFrequencyForm","updateSamplingData","selectedDatesList","setSelectedDatesList","onDateChange","_sorted","fromDatePicker","sorted","dateArr","asc","sortDates","dateObj","isSelectedDateEmpty","CustomCalendar","splice","removeInvalidDate","INITIAL_WEEKDAYS","sunday","monday","tuesday","wednesday","thursday","friday","saturday","INITIAL_MONTH_NUMBERS","WeekMonthCheckbox","allowMultiple","containerStyle","selectedDay","setSelectedDay","setValues","copy","displayValue","handleSelectDay","selectedValues","htmlFor","MonthFrequencyForm","dayOfMonth","setDayOfMonth","recurrences","setRecurrences","flatPickerOptions","getRecurrences","recur","WeekFrequencyForm","weekDays","setWeekDays","recurr","momentDate","formattedDate","SvgCheckCircleIcon","FrequencyForm","selectedRecurringType","setSelectedRecurringType","selectedCustomDatesList","setSelectedCustomDatesList","TABSDATA","weekly","monthly","custom","tabdata","CheckCircleIcon","CustomCheckbox","locationCheckboxLoading","handleCheck","SvgDropDownChevron","ExtraFieldsAutoComplete","suggestions","onFocus","charLimit","letInputExceedCharLimit","customArrowClassName","setInputValue","filteredSuggestions","setFilteredSuggestions","showDropdown","setShowDropdown","inputRef","suggestion","persist","handleFocus","handleBlur","handleClear","DropdownArrow","handleSelect","SelectLocationFormSearch","searchValueRef","fetchLocationEnvData","triggerSearch","whiteMagnifyIcon","getEnvSchedule","specs_flag_filter","_response$data","code","patchEnvSchedule","_response$data4","deleteEnvSchedule","event_id","delete_recurring","_response$data7","_e$response8","_e$response8$data","sendFileToPrinter","ApiKey","Tenant","_e$response11","_e$response11$data","_e$response11$data$er","errorResponse","SelectLocationForm","locationData","showSearchbar","selectLocationFormLoader","locationId","getExtraFieldData","updateExtraField","setLocationCheckboxLoading","isEditExtraFieldDataFetched","tableRef","controller","cache","CellMeasurerCache","defaultHeight","fixedHeight","scrollTop","scrollLeft","handleScrollEvent","apiSSAutofill","sampleData","_controller$current","_controller$current$s","abortController","AbortController","abort","_e$response6","_e$response6$data","getSamplingLocationData","aborted","fieldOptions","setExtraFieldsDropdown","linkFieldsToPick","f","linkFieldsValues","pick","extraFieldKeys","extraFieldValues","extras","fieldTestList","promiseArr","fetchAndUpdateExtraFields","linkFields","updateSelectedLocations","linkFieldsFromLocation","handleExtraFieldSelect","rowGetter","AutoSizer","onScroll","native","Table","headerHeight","rowHeight","rowCount","overscanRowCount","Column","dataKey","headerClassName","cellRenderer","rowIndex","parent","rowData","columnIndex","CellMeasurer","defaultWidth","cellData","minWidth","_extraFieldOptions$fi","AutocompleteExtraField","testListFromSSAutoFill","total","num_tests","handle","placeholderText","TypeToggle","types","selectedType","FREQUENCY_TYPES","SetFrequenceForm","oneTimeDate","setOneTimeDate","setSelectedType","today","selectedDate","SummaryForm","newSamplingEventData","setNewSamplingEventData","hideSubmissionInput","readableEventText","setReadableEventText","setName","event_name","isEmpty","schedule","SvgOnboardingClose","CreateSamplingEventModal","modalTitle","editingData","setEditSchedulingPayload","onConfirmEdit","allowEmptySubmissionName","setHasEditEventFrequencyChanged","environmentFields","setEnvironmentFields","setLocationData","setExtraFields","setLinkPatternFields","setSampleIDFields","linkPatternDelimiter","setLinkPatternDelimiter","setExtraFieldValues","extraFieldOptions","setExtraFieldOptions","setTestListFromSSAutoFill","currentEventFreq","setCurrentEventFreq","event_dates","event_frequency","selectedDayCheckbox","setSelectedDayCheckbox","setIsSubmitLoading","getPointsAbortController","setSelectLocationFormLoader","apiGetEnvSwabs","newController","_response$data6","_e$response7","_e$response7$data","getEnvSwabs","cancelled","locations","getFieldData","samplefields","sampleidvalues","extravalues","extraoptions","fieldname","_extraFieldValues$get","_extraFieldOptions$ge","_testListFromSSAutoFi","updatedValue","envFields","envSwabs","extrafieldnames","allFields","fieldMap","field_name","sampleIDCols","updatedExtraValues","updatedExtraOptions","apiGetEnvFields","markSampleLocations","samples","samples_list","Test","dateList","weeks","setEventDatesForEdit","scheduled_from","date_edit","updateSamplingSchedule","renderTabbedContent","newEventData","changed","hasFrequencyChanged","currentFreq","newFreq","isEqual","sortBy","_response$data3","postEnvSchedule","_newSamplingEventData","hasOlder","hasOlderDate","isEmptyName","hasCrossedMaxLength","DateCard","activeReportIdx","setActiveReportIdx","test_total_counts","SvgWhiteArrow","DatesSlider","reportList","defaultIndex","swiperRef","disablePrevBtn","setDisablePrevBtn","disableNextBtn","setDisableNextBtn","handleButtonDisable","swiper","isBeginning","isEnd","handleClickPrev","allowSlidePrev","slidePrev","Arrow","Swiper","slidesPerView","modules","Navigation","navigation","spaceBetween","initialSlide","centeredSlides","centeredSlidesBounds","slideToClickedSlide","slidesOffsetAfter","slidesOffsetBefore","onReachBeginning","onReachEnd","onToEdge","onSliderMove","onResize","onNavigationHide","SwiperSlide","allowSlideNext","slideNext","ReportActionButton","isActionComplete","showHoverStyles","SvgWhiteCloseBlueBackground","Svg3DotsScale","SvgPdfIcon","FileCard","PDFIcon","ReportHistory","setShowReportHistory","setFilePaths","loadingNewContent","setLoadingNewContent","loadingHistory","setLoadingHistory","paginationInfo","setPaginationInfo","currentPage","totalPages","apiGetAllFilePaths","handleScrollToBottom","contentScrollHeight","nextPage","handlePageChangeScroll","CloseButton","onScrollStop","SvgDownloadIcon","SvgHistoryIcon","SvgPreviewIcon","ResultActions","handlePreviewFile","PreviewIcon","totalFiles","filesDownloaded","fileTempSet","fileTempArr","fileTemp","warning","HistoryIcon","ResultHeader","SvgArrowIcon","ResultTableActions","totalSlides","handleSlideChange","ResultTable","notemptyspec","test_spec","renderTableRow","test_result","test_spec_flag","outOfSpec","ResultTableCarousel","specsData","setCurrentSlide","sortedSpecData","change","swipeable","SvgAddSamplingIcon","SvgCalendarEnv","SvgEditSpecIcon","SvgTrashIcon","tabList","ReportResult","_pin$location_id","_report$received_date","handleAddSpecsButton","setCurReportInfo","editSpecs","loadingSpecs","setFilePath","identifier","setIdentifier","setReportList","setDefaultIndex","setSpecsData","resultTableCarouselKey","setResultTableCarouselKey","loadingReportList","setLoadingReportList","loadingSpecData","setLoadingSpecData","showReportHistory","openScheduleSampleModal","setOpenScheduleSampleModal","isSampleScheduled","setIsSampleScheduled","isEditingSamplingFrequency","setIsEditingSamplingFrequency","isDeletingSamplingFrequency","setIsDeletingSamplingFrequency","isConfirmLoading","setIsConfirmLoading","tabSequence","setTabSequence","setSelectedTab","deleteEventData","setDeleteEventData","setIsEditing","setEditingData","editRecurring","setEditRecurring","editSchedulingPayload","hasEditEventFrequencyChanged","scheduledDate","setScheduledDate","scheduleFrequency","setScheduleFrequency","loadingEnvSchedule","setLoadingEnvSchedule","envControllerRef","apiReportEnvSchedule","_response$data2","getReportEnvSchedule","reports","default_index","report_history_list","default_sample_index","specs_status","getSwabReports","apiGetSwabReports","_result$spec$image","_result$spec$identifi","report_result","apiGetSpecs","handleDeleteEvent","apiDeleteEnvSchedule","refetch","renderActionButtons","canAddSpec","renderScheduleSampleFrequencyButton","statusText","AddSamplingIcon","button","rootClassName","EditSpecIcon","renderSamplingEventModal","onConfirmEditOpen","edit_recurring","handleEditSchedule","ButtonWithLoading","defaultText","loadingText","loadingDotsWidth","loadingDotsColor","typeIsSubmit","ConfirmExitModal","saveLoading","SpecManagerInput","altKey","ctrlKey","metaKey","validChar","blur","valid","getInputError","updateErrorMessage","errorMessage","focused","validObj","focus","placeHolder","additionalClassName","onKeyPress","invalidChar","UNIT_OPTIONS","parseNumber","isNumber","formatSpec","dataOfSpecEditing","element","test_type","specs","numFrom","numTo","checkIfSpecsInvalid","specList","SvgChevronDown","SpecManagerSelect","optionSelected","selectOptions","_item$label","bordered","ChevronDown","parentElement","SpecsRange","onRangeFromChange","handleDataChange","onRangeToChange","onOptionClick","rangeFrom","rangeTo","percentage","SpecsQuantitative","onRangeOptionClick","onUnitOptionClick","onInputChange","SpecsQualitative","qualNumber","handlePositiveChange","onDropdownChange","newQualitative","SvgRangeIcon","SvgQualitativeIcon","SvgQuantitativeIcon","EditSpecTable","indexOfRowClicked","fieldName","newFieldValue","RangeIcon","QuantitativeIcon","QualitativeIcon","newSpec","SpecTable","testType","units","formattedTestType","charAt","renderTests","getFormattedTestType","getFormattedSpec","EditSpec","handleSaveSpec","saveConfirmation","callProperUpdateDataFunction","disableButton","componentDidUpdate","handleConfirmationPopup","ConfirmModal","renderButtons","renderHeader","renderTable","addingSpec","watermelon","contextType","getEnvSpecsData","isUpdating","pattern","pages","SvgFoldedMap","ReportView","showSpecManger","setShowSpecManger","setDataOfSpecEditing","setLoadingSpecs","show","getEnvSpecsEditData","specDetail","specString","startsWith","numberString","maxString","endsWith","parseSpecDetail","handleCheckUnit","postEnvSpecsEditData","MapIcon","SpecManagerSearch","buttonClicked","searchFailed","searchSucceeded","previousSearch","formControlId","allowedChars","currPeriods","selectionPositionStart","selectionStart","selectionPositionEnd","selectionEnd","singleSelected","cursorPosition","paddingLeft","paddingRight","variant","minHeight","paddingTop","num","rangeIsMissingValue","isMissing","checkIfSpecsComplete","formatted","complete","handleClearSpec","handleSpecChanged","fromModal","handleClosingEditSpec","editing","addingSpecState","specsComplete","editingSpec","handleExitModal","handleEditButtonClicked","confirmExitModalDisplayToggle","handleExitEdit","specChanged","valueHasBeenEdited","backIcon","FilterButton","parseFilter","handleFilterToggle","filterText","parsedText","isActive","disableBlock","closeFilterIcon","Loading","SpecStatusItem","handleEditSpecClick","Skeleton","paragraph","SkeletonButton","pendingIcon","SpecStatusItemList","tableData","specManagerScrollbar","SpecManager","_this","changeSpecManagerMode","specFilter","getInitialData","scrollToTop","apiGetSpecsData","currentFiles","scrollToBottom","identifierFields","succeeded","handleCloseFilterClick","specFilterFromState","apiEditSpecsData","loadingEditSpecData","refreshEditSpecDataAfterEdit","handleExitEditSpec","exitSpecManager","refreshSpecManagerData","handleSpecManagerToggle","setExitingSpecManager","setSpecDataChanged","setConfirmExitModalDisplay","isSpecCleared","toggleSpecsUpdated","setValueHasBeenEdited","getHeader","excludedField","fieldsCopy","isEditingSpec","originalSpecData","exitingSpecManager","specDataChanged","confirmExitModalDisplay","addedIcon","SpecManagerDrawer","showSpecManager","handleDataRefreshAfterExitingSpecManager","toggleEditSpec","Drawer","handleCloseSpecManager","fromSaveSpec","Analytics","apiGetFields","apiGetMapTitles","allMapTitles","allMaps","mapTitles","getMapTitles","handleTabSelectInMapView","newActiveTabIndex","activeTabIndexInMapView","loadingSwabs","loadingMap","image_link","updatedActiveTabIndexInMapView","reportViewKey","filterByDateFrom","filterByDateTo","currentFilterSelected","_filter","newPosition","calculateQuadrantGivenXYCoord","editedPin","apiEditSwab","mapCopy","givenPin","draggable","apiAddSwab","newPinMap","shouldUpdatePin","noFiltersApplied","loadSwabSuccess","apiGetSwabs","loadMapImage","showEmptyPage","dataArrvied","_resp","_resp$failedSwabs","_resp$failedSwabs$0$m","sub_section","editSwab","oldTitle","newTitle","new_title","old_title","editMapTitle","handleDeleteMapTitle","deleteMapTitle","ifDeleteTitleClicked","titleToDelete","showCreateEnvModal","showPreview","getFileFromAWS","successfullyFetched","allPreviewFiles","mergePDFs","mergedPreviewFiles","privateS3Bucket","fileBlobs","merger","PDFMerger","mergedPdf","saveAsBlob","FileTemp","privateS3","showSpecManagerEdit","specManagerEditIdentifier","handleAddMapTitle","EVENT_SPEC_STYLE_MAP","text_color","sample_border_color","sample_bg_color","FILTERS","spec_flags","EventsFilter","specFilterValue","setSpecFilterValue","toggleFilter","specValue","SvgPrinterIcon","ReportModal","onPrint","onDownload","onDatePickerChange","disablePrintButton","disableDownloadButton","markedDates","defaultDateRange","showDatePicker","showPrint","showDownloadButton","PrinterIcon","ExportModal","groupedSubmissiondData","setGroupedSubmissiondData","setMarkedDates","groupData","_data$scheduled_submi","groupedData","scheduled_submission","submission","s","sampleidfields","testListStr","apiGetEnvSchedule","schedulingData","_schedulingData$sched","dateFromString","dateToString","scheduled_submission_dates","fetchInitial","finally","exportToExcel","json_to_sheet","book_new","book_append_sheet","filename","getFileName","timeStamp","unix","handlePrint","printJS","printable","targetStyles","css","handleDownload","sampleFields","event_date","Tests","Status","_schedulingData$sched2","dateFromObj","dateToObj","genistaDocumentHeaderImage","LabelsPDF","scheduleData","Font","register","family","Roboto","RobotoMedium","styles","StyleSheet","create","flexDirection","justifyContent","alignItems","padding","labelContainer","marginBottom","aspectRatio","qrContainer","flexShrink","marginRight","textContainer","alignSelf","dataText","fontWeight","Document","Page","View","sub","wrap","qrCodeSrc","querySelector","toDataURL","renderQR","Text","SvgClose","SvgAdd","INITIAL_ADD_PRINTER_STATE","label_type","serial_number","INITIAL_FIELD_ERRORS_STATE","ZebraPrintEdit","onToggleEditPrinters","printerList","addData","setAddData","fieldErrors","setFieldErrors","editType","setEditType","deleteId","setDeleteId","deleteConfirmationVisible","setDeleteConfirmationVisible","scrollbarRef","onSetAddData","onResetState","onUpdate","validateData","printer","postPrinters","patchPrinters","onPressEnter","getErrorStyles","renderEditRow","renderRow","printerData","editPrinter","showDeleteConfirmation","backArrowIcon","onAddNewPrinter","AddIcon","cancelDeleteConfirmation","deletePrinters","ZebraPrinterSettings","printerDropdownOptions","onCopiesChange","totalItems","disableCancelAllPrints","cancelPrintClicked","setCancelPrintClicked","cancellingPrint","setCancellingPrint","printing","setPrinting","removeDeferBackCmd","template","parts","duplicateTemplateByCopies","currTemplate","copies","sendLabelToPrinterApi","exceededLimitMsg","createCopies","successMessage","showSearch","InputNumber","onCancelClick","outputTemplate","zplTemplateString","barcodeData","sampleID","eventDate","labelData","updateTemplate","console","log","appendLabelValuesToTemplate","ZebraPrintModal","setConfig","setPrinterList","isEditingPrinters","setIsEditingPrinters","onSetConfig","apiGetPrinters","getPrinters","openPrinterDocs","blobURL","PrintLabelModal","eventData","generatingPDF","setGeneratingPDF","setScheduleData","isPrintLabelOpen","setIsPrintLabelOpen","sampleWiseData","sample_data","generatePDFBlob","pdfBlob","pdf","QRCode","showScrollbarStyle","visibility","hideScrollbarStyle","useAutoHideScrollbar","scrollbarInUse","setScrollbarInUse","scrollbarElem","PopoverMenu","menuItems","setOpen","isVisible","newOpen","isMarkingAllowed","isBetween","LocationDetails","sampleId","specsFlag","submissionId","sampleType","sampled","afterMarkingSample","draggableId","setCardLoading","submissionStatus","confirmMarkAsScheduled","setConfirmMarkAsScheduled","confirmUnmarkAsScheduled","setConfirmUnmarkAsScheduled","markSample","_response$data8","_e$response9","_e$response9$data","marksampled","statusUpdateConfirm","isMarkAsScheduled","confirmAction","cancelAction","li","updateSampledStatusButton","specMapKey","isUnmarked","isMarked","SvgContextMenuIcon","SvgEditPencilIcon","DefaultSubmitModalObj","EventCard","cardLoading","onPrintLabel","openPopover","setOpenPopover","scrollbarStyle","submitModalObj","setSubmitModalObj","submitLoading","setSubmitLoading","popoverMenuItems","EditPencilIcon","statusCodeToName","atLeastOneSampled","showSubmitConfirmation","handleSubmitSamples","_response$data9","_e$response10","_e$response10$data","submitSamples","Draggable","isDragDisabled","provided","innerRef","draggableProps","dragHandleProps","ContextMenuIcon","elementRef","trackYProps","EventGrid","calendarLoading","columnData","setColumnData","dataGroupedByDate","submissionData","allDates","allMomentDates","moveItem","destination","columnDataCopy","restorePoint","sourceList","droppableId","destinationList","draggedItem","new_schedule_date","_response$data5","patchDragUpdateSchedule","DragDropContext","onDragEnd","isSame","renderColumnHeader","Droppable","droppableProps","SvgEventExportIcon","SvgPrintLabelsIcon","SvgPlus","editTabList","calendar","openCreateSamplingEventModal","setOpenCreateSamplingEventModal","setSelectedDates","isEditingConfirm","setIsEditingConfirm","isPrintLabelModalVisible","setIsPrintLabelModalVisible","isExportModalVisible","setIsExportModalVisible","setDate","getDate","eventDataToPrintLabel","setEventDataToPrintLabel","setCalendarLoading","spec_filters","startString","endString","marked_dates","fetchEnvScheduleData","handleCreateSamplingEventModal","resetCreateSamplingData","isRecurring","elemDate","EventExportIcon","PrintLabelsIcon","targetTabList","defaultChecked","update","SvgCloseBlue","testName","GraphTooltipRender","graphType","hoveredItem","Env_analyticsGraphTooltipFooter_Table","Env_analyticsGraphTooltipTest","entry","maxWidth","sortedPayload","uniqBy","_hoveredItem$data","orderBy","_colorsAndIconsArray$","Env_analyticsGraphTooltipContainer","whiteSpace","overflow","textOverflow","Env_analyticsGraphTooltipBar_Footer","test_name","ScatterPoint","updateHoveredItem","node","hovered","setHovered","handleDotHover","hoverState","customPayload","Dot","SvgGraphPillTestSvg","ComposedGraphComponent","graphData","setHoveredItem","lineGraphModData","setLineGraphModData","brushSelection","setBrushSelection","setSelectedTests","visibleTests","setVisibleTests","debouncedFilteredData","setDebouncedFilteredData","transformDataForBar","uniqueTests","uniq","transformedBarData","dateMap","details","groupDataByDate","handleTestSelection","allTestNames","updateFilteredData","startIdx","endIdx","partiallyFilteredData","filteredEntry","filteredBarData","renderPills","testsToShow","colorIndex","pillColor","pillBorderColor","pillIcon","TestGraphPillSvg","GraphTestPill","ResponsiveContainer","ComposedChart","animationDuration","XAxis","tickFormatter","tickItem","_debouncedFilteredDat","tickLine","tick","tickClassName","axisLine","domain","interval","YAxis","CustomTooltip","Bar","radius","barSize","minPointSize","onMouseMove","Cell","_colorsAndIconsArray$2","strokeColor","Line","connectNulls","dot","activeDot","isHovered","animationBegin","isAnimationActive","fillColor","Scatter","Brush","travellerWidth","NoResultsGif","pumpkinGif","role","aria-live","EnvAnalyticsHeader","specDetailsNum","specDetailsRetest","mainHeading","sampleHeading","retestHeading","textColor","EnvAnalyticsTableRow","row","progressWidth","ratio","inSpec","in_spec_num","out_of_spec_num","noSpec","no_spec_num","header","cellContent","toFixed","last_submitted","day_till_now","EnvAnalyticsTable","tableType","headers_2","EnvAnalyticsTab","_analyticsData$spec_d","_analyticsData$spec_d2","_analyticsData$spec_d3","_analyticsData$spec_d4","analyticsData","setAnalyticsData","spec_details","test_details","submission_details","ratio_details","prevDateValue","setPrevDateValue","isInitial","setIsInitial","abortControllerRef","fetchAnalyticsData","sampleValues","fetchData","handleDateChange","formattedStartDate","formattedEndDate","graphDataMemo","handleDateSearch","_response$dates","num_out_of_spec","num_out_of_spec_retest","num_in_spec","num_in_spec_retest","GraphComponent","AnalyticsTable","SvgAnalytics","SvgReportOutlined","Env","_isMounted","activeTab","onChangeReport","subUrl","componentWillUnmount","ReportIcon","AnalyticsIcon","DeleteProductConfirmation","cardName","onDeleteProduct","onToggleModal","isInquiry","onDeleteButtonClick","onConfirm","createProduct","product_name","product_image","_message2","card_name","outerList","index_list","list","addTag","_data$0$message2","tag","_data$0$message","index_card_id","getIndex","_message4","indices","DeleteIndexConfirmation","onDeleteIndex","indexName","IndexCategories","newIndex","newIndexName","editIndexId","prevEditIndexName","newEditIndexName","dltIndex","isDeleteIndexModalVisible","showOptions","showEditIcon","closeEditTagIcon","initComponent","activeTabName","hash","changewindowHash","String","updateProductList","resetIndexRelatedState","onChangeTab","onMenuIconClick","onAddIndexInputChange","getPrevTabAfterDelete","getElementsByName","handleIndexEditClick","handleIndexEditSubmit","newIndexNameFormatted","apiEditIndex","handleIndexEditExitSubmit","handleEnterIndexName","charCode","apiAddIndex","handleAddNewIndex","handleAddNewIndexExit","apiGetIndex","onToggleDeleteIndexModal","new_index","editIndex","addIndex","handleIndexTitleOutsideClick","updateIndices","getAllProducts","apiDeleteIndex","_e$response12","_e$response12$data","deleteIndex","indexNameTooLong","indicesEle","Tab","eventKey","closeIconHighlighed","checkIcon","checkHightlightIcon","exclamationIcon","onMouseOver","dotsIcon","editIcon","ProdAddNewCategoryIcon","Search","updateStateForShowingClearButton","showClearSearch","handleSearchSubmit","crossIconInput","TagInput","handleInputChange","setTagInput","enableOutsideClick","select","tagInput","handleKeyPressAddTag","handleDoubleClick","handleDoubleClickTag","handleTagInputOutsideClick","isNotAsync","outsideClickable","handleDeleteTag","isProcessingDelete","ProductCard","editTag","editTagIndex","tagsSet","addTagIcon","lightBlueAddIcon","menuIcon","dotsOptionIcon","editPencilIcon","editPencilLight","saveIcon","checkIconWhite","saveReminder","scrollBarHeight","addTagInputRef","isEditingTags","editingTagsProductId","handleProductNameClick","editingTags","onEditTagsButtonClick","itemIndex","onEditTagsClick","productId","tags","onAddIconClick","handleAddTag","handleCancelEditTag","handleOptionsMenu","newTag","currentEditTagIndex","handleEditTag","handleTextTagChange","onSaveClick","onCancelEditTagsClick","isMostRight","tagsEditing","linkReportFields","isProduct","productName","checkIconMidnight","editPencilDark","dotsOptionIconDark","created_on","darkBlueAddIcon","itemTag","tagIndex","ProductEditCard","itemOrCreateByVal","created_by","saveReminderDisplay","setSaveReminderDisplay","inputItemName","setInputItemName","setAddTagIcon","setEditTag","setEditTagIndex","setTagsSet","itemNameRef","fieldInputsRef","itemTagRef","curEditTagIndex","handleAddTagParent","onCancelEdit","link_item","link_idx","handleKeyPressInputItemNumberChange","input","setFieldInputsRef","tagIndx","handleDeleteTagParent","linkReportFieldsObj","onSaveEdit","ProductNewCard","handleAdd","handleAddTagKeyPressed","cancelButton","new0","handleCancelButtonClick","onCancelAddProductClick","onSaveAdd","SortBySelect","selectedOptionIdx","DocumentAddModal","handleCloseAddFileModal","handleAddFileConfirm","sortByOpSelected","setSortByOpSelected","documentsList","setDocumentsList","sortMenuVisible","setSortMenuVisible","numberOfFilesSelected","setNumberOfFilesSelected","setSelectAll","setCloseIcon","closeIconDarkBlue","setCardView","sortByDateCreated","des","sortedFiles","reverse","deselectAll","circleCloseIcon","filteredFiles","sortByName","nameA","nameB","closeHighlightedIcon","handleAddButtonClick","documentsToAdd","documents","ProductDocuments","apiGetProductFiles","productFiles","switchAddFileModal","addingFile","downloadFile","toastMessage","numOfSelectedFile","filesToStore","fileEl","productListIndex","createTime","handleBackArrowClick","Index","productList","hasProduct","indexOfProdDelete","indexOfCardInEdit","editProduct","editingProduct","addingProduct","addItemButtonIcon","lightPlusIcon","displayProductDetails","productDetails","grid","fixedWidth","searchAbortController","apiGetLinkedFields","link_report_fields","handleAddCardClick","tagText","apiDeleteTag","_data$0$message4","_data$0$message3","deleteTag","otag","indexEditing","apiAddTag","tag1","apiUpdateTag","_data$0$message5","updateTag","resetSearch","resetSortBy","apiSearchProducts","_message3","m","n","sku_list","searchProducts","_message","listFromResponse","_response$data$","_response$data$2","newItem","getProducts","indexOfProdShowMenuOp","newProduct","card_image","apiToUpdateProduct","onSaveAddIndex","onSaveAddProduct","addTagsToNewItem","asyncForEach","array","callback","updateProduct","dltProduct","deleteProduct","onToggleDeleteProductModal","handleSortByOptionClick","sortByMostTags","sortedList","dateA","dateB","darkPlusIcon","columnCount","innerWidth","nCard","Grid","columnWidth","deferredMeasurementCache","overflowX","overflowY","colIdx","paddingBottom","ReactCardFlip","isFlipped","flipDirection","SignOutConfirmation","CompanyList","closeNavbar","navDrawer","companyList","setCompanyList","isSwitching","setShowError","company_list","getCompanyList","apiFetchCompanies","SvgLogout","SvgMyAccountIcon","DrawerNav","handleNavDrawer","canAddCompany","signOutConfirm","setSignOutConfirm","logoutHovered","steLogoutHovered","accountTitle","onSignOutConfirm","onSignOutCancel","MyAccountIcon","Close","LogoutIcon","handleAddCompany","Plus","version","NavBar","currentRoute","navBarItem","link","productIcon","enviromentIcon","indexIcon","documentsIcon","navs","handleActiveRoute","navName","activeNav","_navs$find","onBack","goBack","onNavigation","dataLink","reRender","onNavigationMyAccount","sample_sub_link","nav","handleMenuMouseEnter","accountHovered","handleMenuMouseLeave","isSideBarStyled","currRoute","Layout","Header","breakpoint","collapsedwidth","xs","sm","md","lg","Avatar","Logo","xl","xxl","Menu","theme","selectedKeys","MyAccountMoreLightblueIcon","moreLightblue","MyProfileIconActive","myProfileIconActive","MyProfileIconInactive","myProfileIconInactive","TeamMemberIconActive","teamMemberIconActive","TeamMemberIconInactive","teamMemberIconInactive","HelpIconActive","helpIconActive","HelpIconInactive","helpIconInactive","Sider","MyAccountSideMenu","handleMenuClick","selectedMenuItem","defaultSelectedKeys","MyAccountHelp","handleInputDescChange","inputDesc","handleSenderClick","apiSendHelp","query","sendHelp","Slide","triggerOnce","gutter","myAccountHelpPlaceholder","NameAndPhone","showEdit","phone","handleTextChange","handleSaveCancelClick","handleSaveEditClick","handleEditClick","passType","newPassType","confirmedPassType","showHidePassword","firebaseAuth","initializeApp","apiKey","auth","signIn","rememberMe","signInWithEmailAndPassword","idToken","_lat","token","_e$response$data$mess","getUserDetailsByToken","phoneNumber","photoURL","esvSupportLogin","username","companyDomain","MyProfile","passwordElm","newpasswordElm","confirmedPasswordElm","newpassword","confirmedPassword","context","currentUser","updatePassword","changePwd","apiUpdateMyProfile","updateProfileInfo","myEmail","myName","myPhone","AddMemberModalInput","handleOnBlur","suffix","useDropdown","tooltipTitle","handleOnChange","input_value","infoIcon","addonAfter","AddMemberModal","inputRefs","handleUserCheck","userCheckInProgress","emailVal","emailWithDomain","nameRef","phoneRef","emailRef","companyname","isSendingInvite","requiredInputsFilledOut","DeleteMemberModal","SvgRepeatIcon","ResendInviteButton","handleResendInvite","RepeatIcon","getCompanyName","company","inviteMember","encodeURIComponent","useremail","queryStrings","encryptedQueryStrings","encrypt","SvgTrashIconLightblue","TeamMember","apiGetMembersInfo","_data$result","_data$result$user_lis","members","user_list","temp","getMembersInfo","handleShowAddMemberModal","showAddMemberModal","handleCloseAddMemberModal","handleShowDeleteMemberModal","showDeleteMemberModal","deletedMember","handleCloseDeleteMemberModal","handleConfirmDeleteMember","member_user_payload","action_category","deleteTeamMember","handleConfirmAddMember","setLoadingState","resendingInviteKey","handleChangeRole","editingRoleKey","editMemberRole","refreshed_members_list","showCellContent","cellText","memberIsAdmin","isPending","disableInteraction","TrashCan","authorizedColumns","permission","align","statusMap","ReportSearch","handleClearSearchByDate","saveDateHistory","SpecButton","specText","specColor","specSelected","disableFilterButton","handleToggleFilter","toolTipTitle","StyledSwitch","checkedChildren","unCheckedChildren","Switch","SpecsBlock","currSelection","handleFilterBySpec","currentSelectedFilter","handleFilterByRetest","cycleIcon","searchField","updateShowFilters","disableConfirmButton","loadingConfirm","skipCountryList","formattedValue","countries_lst","c","parsedValues","removable","SvgMrlIcon","StyledCheckbox","CountriesCheckboxList","countries","disabledItems","defaultCheckedCountries","getIsOpen","onClickSave","selectedCountries","setSelectedCountries","countriesDisabledStatus","disabledCountries","getNonDisabledCountriesList","CountryList","nonDisabledCountries","Divider","updatedCountries","handleSave","MRLCountryList","isDropdownVisible","setIsDropdownVisible","dropdownRef","handleListClick","pesticideCountryData","getCountriesDataForPesticideTest","countriesSpecData","countriesList","countryData","MRLIcon","isPesticideTest","TestList","removableTests","nonRemovableTests","handleRemoveAddedTest","TestSuggestionList","addedTestSet","handleAddNewTest","disabledClassName","test_display_name","disableTest","UpdateTestList","setShowUpdateTestList","handleSaveTestList","setRemovableTests","setNonRemovableTests","isSaveLoading","setIsSaveLoading","specEditingData","testData","disableSave","findIndex","updatedItems","updatedSpecData","getSpecEditingData","existingTests","newTests","updateConfirmationLoading","handleBackButtonClick","showUpdateTestList","renderProductTitle","productIdentifierArr","SpecDisplayTable","linkReportJsonFields","tr","getSpecsData","search_value","search_field","sortAndFilterProductReportFields","preprocessedFields","originalIdx","priority","linkFieldIdx","multipleLinkReportFieldsObjToObj","currObj","jsonKey","filterFlag","abortPrevApiCall","apiController","filterFlagFromState","updateSpecDataChanged","showFilters","closeFilters","ReportsTableRowContext","ReportsTableRow","enableRowSelection","handleRowSelection","checkboxLoading","setCheckboxLoading","onRowSelect","disableRow","original","Provider","getIsSelected","getVisibleCells","cell","getValue","column","columnDef","flexRender","ReportsTableFieldCell","jsonField","searchValToHighlight","showCheckbox","enableRowCheckBox","SPEC_FLAGS_MAP","incompleteIcon","outOfSpecIcon","inProcessIcon","inSpecIcon","altLabel","VALID_SPECS_SET","getColorForTestResult","parsedList","parsedElement","test_detail","detail","ReportsTableSpecCell","isValidSpec","_SPEC_FLAGS_MAP$specs","SvgArrowTagButton2X","HorizontalScroll","canScroll","setCanScroll","canScrollLeft","setCanScrollLeft","canScrollRight","setCanScrollRight","checkScroll","scrollWidth","scroll","scrollAmount","scrollBy","ArrowButton","setCategories","fileEntries","handleFetchAndMergeFiles","loadingFiles","getSortedFileEntries","filepaths","dateCategoryList","categories","slideIndex","selectedCategory","handleCategoryChange","recentEntries","SvgPreviewIconDefault","ReportButtons","setShowPreview","loadingIcon","enableButtons","s3Bucket","ReportsTableActionsCell","DateBlock","containerClasses","dataSorted","disabledArrow","RequestRetestModal","hideRequestRetestModal","confirmRetest","currNumOfRetests","maxNumOfRetests","testToRetest","awaitingRetestRequest","testSet","openAnim","CheckboxInput","handleCheckClicked","DetailedPesticideReport","enableTestSelection","reportData","loadingData","setLoadingData","setCountries","selectCountryTab","setSelectCountryTab","reportDetail","setReportDetail","countryColor","setCountryColor","hasCountryListChanged","apiGetReportDetail","receivedDate","fReportData","fActiveDate","retest_date","getReportSpecDetail","fetchReportDetails","pesticides_specs_details","specData","compoundSpecs","compound_spec","getColorForPesticideResults","pesticides_compound_specs","countriesSpecsFlags","getCountriesSpecsFlagColors","countries_specs_flag","countryList","BackArrowIcon","updatePesticideCountrySpecDetails","AddIconBlue","selectMRLWithCountry","compound_name","compound_mrl","compound_result","SampleTestResultTable","clearCheckboxes","testCheckboxVals","checkBoxOnChange","handleDetailToggle","pesticideDetailsToggle","handlePesticideDetailClose","reportDataRefresh","hasSpecs","isPickingRetests","renderSpecColumn","disabledTests","showDetailedPesticideReport","testDate","headerStyle","resultColor","SampleResultsModal","testResultTableRefs","envGetSampleResults","sampleResultsData","isInProcess","getSampleResults","product_type","coloredData","setTestsToDisable","testResults","handleRetestRequest","received_at","requestRetest","showRetestModal","getDateString","monthFirst","newDate","addTestToRetest","isChecked","idxToRemove","existingTest","updateRequestRetestMode","updatedTests","loadingUpdatedData","keyOfTestResultTable","sortedDates","activeDateIndex","newSlide","newActiveDate","table","showRequestRetestModal","handleCloseModal","handleExitSampleResultsModal","sampleSubmission","handlePesticideDetailsToggle","checkPesticideTestByDate","testHasPesticide","handleRenderingRequestRetestButton","atMaxRetests","renderAddSpecsButton","_sampleResultsData$sp","renderReportDetails","sampleFieldsData","filteredFieldsObj","specFlagInfo","OutsideClick","setWrapperRef","handleClickOutside","onCancelEditTemplate","contains","ReportsTableHeaderCell","_draggableProps$style","isEditable","handleSaveTableTitle","editTableTitleIdx","setEditTableTitleIdx","getDraggableStyle","isHovering","setIsHovering","headerCellRef","tappedTwice","editingWidth","handleEdit","handleCancelEdit","isLinkedField","onTouchStart","handleDoubleTap","handleKeyDown","center","ReportsTableDraggableHeaderCell","isDraggable","reorderLoading","droppableSnapshot","currentDraggableInfo","draggableSnapshot","draggableStyle","_currentDraggableInfo","isDraggingOver","originIdx","_draggableStyle$trans","translateX","exec","userSelect","ReportsTableHeader","headerId","setFields","setReorderLoading","oldTableTitle","new_field","editTableTitle","canEditReportHeader","onBeforeDragStart","draggedElem","startIndex","endIndex","newIndexInOriginalArray","changedFields","removed","updatedFields","changePosition","droppableProvided","ReportsTable","_reports$showModalRow","wrapperClassName","scrollbarId","handleUpdateRowSpecFlag","handleFetchNextPage","onRowSelection","disableSampleResultsModalInteraction","disableTableHeaderInteraction","disableActions","setTableInstance","showSampleResultsModal","setShowSampleResultsModal","showModalRowIdx","setShowModalRowIdx","setShowSpecManager","specManagerProduct","setSpecManagerProduct","specsUpdated","setSpecsUpdated","handleShowSampleResultsModal","toggleSelected","columnHelper","createColumnHelper","defaultColumn","columns","accessor","enableHiding","useReactTable","initialState","columnVisibility","columnsDef","col","objSoFar","currColumn","_currColumn$accessorK","accessorKey","getCoreRowModel","showNoResults","updatedSpecFlag","getTotalSize","getHeaderGroups","headerGroup","getRowModel","Reports","filterBySpecFlag","searchVal","fetchReports","_params$search","_params$specs_flag","_params$retest","_params$fromm","_params$to","productScrollbar","fetchNextReports","currentPageNum","nextLink","newFiles","specFlagParam","rowID","filesArray","specFlagArr","sortedFieldsToDisplay","fieldsError","TitleBlock","subtext","productSearch","search_by","testSearch","products","product_id_list","getDates","updateSearch","searchByField","setSearchByField","searchInternal","setSearchInternal","searchBarActive","setSearchBarActive","searchForProducts","toggleSelectSearchBar","bool","magnifyingGlassWhite","magnifyingGlassBlue","transformOrigin","handleSearchByChange","SelectionTitleSkeleton","SelectionCard","animationKey","updateSelectedOptions","statusClassName","selectionTileClicked","layoutId","ProductList","selectedProducts","ProductContainer","disabledColumns","selectedData","parentLoading","colorFromSpecFlag","productGraphPillPurple","productGraphPillOrange","productGraphPillBlue","productGraphPillGreen","formatData","fixedColumn","valuesArr","specArr","valuesObj","specsObj","singleDataPointObj","_data$i","report_list","reportListKeys","j","reportAverage","average","productIdentifier","allReports","unique","max_value","min_value","objectKeys","scatterObj","finalObj","test_result_number","rawResultNumber","rawResult","getFormattedPointsForScatter","getStartEndDate","dateSplit","compareAverageValueToSpec","GraphToolTip","_payload$4","_payload$4$payload","selectedGraph","selectedSpecData","groupedScatterPoints","renderAverage","_payload$2","_payload$2$payload","_selectedGraph$produc2","renderColoredAverageSpec","specValueRaw","toolTipValueTextColor","renderAllValues","_payload$","_payload$$payload","_selectedGraph$produc","time","renderNumberOfSamples","_payload$3","_payload$3$payload","_selectedGraph$produc3","ComposedGraph","showGraphData","formattedData","graphKey","yGraphBound","updateSelectedGraph","getProperDataKey","renderReferenceArea","renderToolTip","showBarGraph","graphRef","indexes","setIndexes","valuesArrSelected","setValuesArrSelected","valuesArrSelectedAndDisplayed","setValuesArrSelectedAndDisplayed","valuesArrSelectedCalculation","resultsOnTheDate","selectedResultsOnTheDate","hasDataOnTheDate","_valuesArrSelected$st","_valuesArrSelected$en","valuesArrDisplayedCalculation","getNewSelectedGraphData","p","CartesianGrid","strokeDasharray","vertical","dx","dy","stdDeviation","floodColor","x1","y1","x2","y2","_valuesArrSelected$in","formatXAxisTicks","allowDuplicatedCategory","tickCount","allowDataOverflow","renderLines","selectedTestType","specBounds","renderDot","dotObj","countOnThePage","renderScatter","_valuesArrSelected$st2","_valuesArrSelected$en2","uniqueIdentifier","renderBars","maxBarSize","formatBrushDate","GraphTooltipCursor","xAxisTicks","xVal","yVal","widthOfXAxisTicks","Rectangle","lineWidth","Graph","yReferenceBound","setYReferenceBound","setYGraphBound","selectedSpecTestType","setSelectedSpecTestType","selectedGraphHasData","setSelectedGraphHasData","setGraphKey","uuidv4","setGroupedScatterPoints","setShowGraphData","toolTipRef","parseSpecValue","valueToParse","parsedSpec","checkIfDataExists","yBounds","specFound","yReferenceBoundStart","yReferenceBoundEnd","yGraphBoundStart","yGraphBoundEnd","yBoundMax","getYBounds","groupScatterDataInRange","difference","graphHeight","prevHeight","groupedScatterObj","next","currDateCounter","currSpecObj","nextSpecObj","itemToPush","dataOne","colors","ReferenceArea","isFront","ReferenceLine","GraphTooltip","outline","AnalyticsDatePicker","setDatePicker","searchByDate","datePickerIcon","GraphPill","dataIsUndefined","selectedGraphHasSpec","colorObj","boxShadowStyle","nonEmptyFields","setSelectedGraph","selectedGraphObj","GraphHeader","setShowBarGraph","numOfGraphs","Pagination","renderGraphPills","getFormattedDates","GraphContainer","setFormattedData","setSelectedGraphHasSpec","datesList","lastDate","getDefaultDateSelected","apiGetEndDate","fetchTestData","range_from","range_to","getTestData","loopAllTests","combinedData","getData","_selectedGraphObj$pro","handleTestClicked","searchTest","testUnit","testNames","searchresultsavailable","SearchTests","updateTestList","searchForTests","getTests","TestContainer","renderSelectedTiles","renderTestList","setLinkReportFields","setFieldsMap","setSelectedProducts","setDisabledColumns","setProductList","setTestList","setSearchTest","loadingFields","setLoadingFields","productLoading","setProductLoading","testLoading","setTestLoading","detectDisabledColumns","disabledColumnsCloned","getLinkReportFields","getAllTests","getProductsAndTests","clonedArr","pointerEvents","SvgAddWhite","CreateReportButton","handleAddCoa","showAddIcon","TemplateSearch","setSearchValue","SvgLeftArrowRounded","isCreatingCoa","showCreateReportButton","handleNavigation","apiSearchCoas","coaView","BackIcon","TEMPLATE_TAGS_COLOR","red","blue","yellow","orange","green","getDistinctIdentifiersForSampleList","sampleList","linkReportKeys","identifiersList","productsSeenSoFar","identifierArr","identifierStr","getProductIdentifier","createAndAppendIdentifierList","all_identifiers","sample_list","COAListItem","toggleShowDeleteModal","setPdfObjForPreview","searchedValue","pdf_path","previewObj","coa_name","Product","sampleIdx","valIdx","template_name","Download","COADeleteModal","apiDeleteCoa","TemplatePreview","closePreviewTemplate","pdfObj","setModalIsAnimating","closeIconWhite","getTemplates","template_id","getDataField","manageDataFields","method","old_field_name","field_name_pre","field_details","sortAndSearchDataFields","sort_by","getCoas","paramsObj","manageCoa","coa_id","NoResultFound","COAList","coaList","setCoaList","pdfObjForPreview","setPdfObjForPreivew","showDeleteModal","setShowDeleteModal","elemToBeDeleted","setElemToBeDeleted","setSearchedValue","createButtonEnabled","fetchCoas","toggleShowCoaPreview","revokeObjectURL","COALoadingPage","LoadingOverlay","CreateTemplate","setIcon","PlusBlue","handleAddTemplateClick","PlusWhite","TemplateDeleteModal","handleDeleteTemplate","SvgOptions","TemplateCard","saveTemplateIdForAddingCoa","handleEditTemplate","templatePreview","setTemplatePreview","handleClickPreview","parentNode","handlePreviewTemplate","preview_pdf_url","handleSelectTemplate","domEvent","Templates","indexOfTemplateSelected","templateList","reportIsSelected","handleCustomizeReport","isReportAndTemplateSelected","templateLoading","COAReport","backToChooseCoaReport","handleCustomizeReportTemplate","setLinkReportKeys","setTemplateLoading","reportSpecsLoading","setReportSpecsLoading","fileList","setFileList","setNextPageLink","setTotalPage","setCurrentPage","setTemplateList","selectedReports","setSelectedReports","coaReportScrollbar","setIndexOfTemplateSelected","setTemplateApiController","clearTemplateSelect","sortedFilteredFields","newNextPageLink","newTotalPage","fetchReportsData","fetchTemplates","handleReportSelect","fileIndex","newObj","test_results","seen","latestTestResults","linkReportValuesObj","_fileList$fileIndex$j","report_index","saveReportForAddingCoa","templateIndex","prevController","abortPrevTemplateApiCall","data_fileds","reportInfo","link_report_keys","selectedTemplate","DataFieldsButton","toggleDataFieldsModal","showDataFieldsModal","tranform","DataFieldsIcon","DataFieldsSearch","toggleShowSearch","handleSubmitSearch","SearchIconSmall","DataFieldsDeleteModal","refVal","DataFieldsEditModal","toggleShowEditModal","setNewField","handleHitEnter","DataFieldsAdd","showEditModal","apiAddDataField","inputVal","setInputVal","handleAddOnClick","DataFieldsModal","dataFieldCategory","showSearchBar","setShowSearchBar","setFieldsList","dataField","setDataField","setShowEditModal","elemToBeEdited","setElemToBeEdited","showMenu","setShowMenu","selectedField","setSelectedField","searching","setSearching","editRef","deleteRef","assignIds","fieldsArray","fieldsObj","group","apiGetDataFields","withIds","ele","toggleShowSearchBar","issearching","apiSearchDataFields","child","DataFieldsMenu","DataFieldsEdit","DataFieldsDelete","prevName","newName","field_in_use","COA","handleIsCreatingCoa","setShowDataFieldsModal","hasCoa","setHasCoa","hasTemplate","setHasTempalte","showLoadingPage","setShowLoadingPage","fetchTemplatesAndCoa","templateResponse","coaResponse","commonFieldResp","curLinkReportKeys","TestViewToggle","handleTestToggle","enableTests","BuilderTests","previewTemplate","setUniqueTests","numOfSelectedTests","handleSelectTest","selectedTestsCount","SvgProductIconFilled","SvgSaveCheckmarkIcon","BuilderSaveSuccess","textWidth","Success","SubmitButton","handleSaveTemplate","tagColorMap","COASave","toggleSaveModal","saveStatus","setSaveStatus","sampleIDArr","CloseLightBlue","handleCheckAndSaveTemplate","TemplateSave","setInput","activeTag","setActiveTag","disableSubmit","setDisableSubmit","checkInputs","handleTag","BuilderConfirmSave","isCustomizingCoa","handleSaveSuccess","ContentItem","handleSectionSelect","handleSectionDelete","keyValue","edit","ContentAddItem","handleCreateSection","Add","BuilderContent","sections","sectionsFixed","softHyphenate","calculateWidths","sampleWidth","resultWidth","PDFImageWithText","subtitle","alignLeft","hyphenateTitle","imageSection","gap","imageContainer","objectFit","flexGrow","wordWrap","overflowWrap","previewURL","PDFHeader","logo_preview_file","borderBottom","headerLeftSection","noImage","companyAddress","companyNumbers","companyNumbersRow","wordBreak","faxNumber","coaSection","coa","fax","fixed","TableHeader","tableHeader","tableHeaderRow","borderLeft","borderRight","rowItem","TableRow","rowGap","rowMarginTop","rowText","isLast","minPresence","minPresenceAhead","test_method","presenceAheadView","tableBottomBorder","borderTopLeftRadius","borderTopRightRadius","tableTopBorder","borderBottomLeftRadius","borderBottomRightRadius","minPresText","PDFTable","getNumRowsAndHeight","font","words","lineHeight","line","numLines","testLine","measureText","calculateMinPresenceAhead","NumOfLines","sampleIDNumLines","tableRowNumLines","getSampleIDandRowTextLines","TableHeaderSamples","rowItemSampleID","TableRowSamples","rowTextSampleID","matchingTestResult","isLastItem","PDFTableSamples","samplesList","PDFBody","sectionPart","sectionInput","sectionInputFieldName","sectionInputValue","alignItem","coaPlaceholder","marginLeft","renderInputs","isTemplatePdf","textHeights","PDFSignature","signImg","objectPosition","signedBy","designation","signature_preview_file","statement_inputs","PDFFooter","pageFooter","pageFooterText","textTransform","pageNumber","PDF","company_logo","company_address","fax_number","signed_by","logo","BuilderPreview","handleAlign","setLoadingPreview","updatePDF","usePDF","pdfUrl","setPdfUrl","pdfjs","GlobalWorkerOptions","workerSrc","SvgAddTestIcon","COABuilderAddSection","handleAddSection","COABuilderImage","handleBuilderFile","setImageSrc","loadImage","COABuilderImageWithText","titleText","subtitleText","COABuilderHeader","logo_image_url","BuilderDragDropContext","TemplateBuilderDroppable","showPlaceholder","getDroppableStyle","disabledDroppablesSet","isDropDisabled","snapshot","SvgInputCheckmark","COABuilderInput","_inputRef$current","setRef","isTextArea","inputClassName","toggleEdit","setIsHovered","onChangeInternal","handleToggleEdit","Checkmark","COABuilderSelect","optionFilterProp","COABuilderDraggable","deleteInput","dataFieldOptions","isDataField","inputElem","COABuilderDroppableSection","dataFieldToValuesMap","_dataFieldToValuesMap","SvgDeleteSectionIcon","COABuilderSection","_selectedReports$data","_selectedReports$data2","sectionIndex","setSectionInputs","handleTemplateDataFieldsChange","showDelete","setShowDelete","inputsObject","removedDataField","COABuilderSignature","signature_image_url","COABuilderTestReportSection","COABuilderSampleReportSection","COABuilderCenterContent","SvgTemplatePreviewIcon","EditPreviewButton","loadingPreview","handlePreviewTemplateClick","TemplateBuilderInput","showLabel","setShowLabel","focusLabel","setFocusLabel","NumberInput","setValid","setImage","hover","setHover","companyLogoInput","wasEdited","RemoveDark","Remove","removeImage","DetailsContent","DragHandle","DragIndicator","SectionInputDraggable","setTextBoxRef","showCloseIcon","setShowCloseIcon","DragClose","DroppableSection","classNameSection","renderDraggable","SectionContent","dataFields","StatementSignatureDraggable","StatementCardContent","isSignature","BuilderSection","sectionRefs","sectionCardClassName","lockIcon","addRef","COAPlaceholderSection","TemplateBuilderCenterContent","TemplateBuilderCenter","inputsPayload","TemplateSectionSearch","disableClose","isCustomizeCoa","searchValuePrent","CreateFieldModalHeader","toggleShowCreateFieldModal","DataFieldEditCard","isCommonDataField","prevTitleValue","prevDetailsValue","onDeleteClick","titleValue","setTitleValue","detailsValue","setDetailsValue","CreateFieldModalRight","productsList","setProductsList","fieldsTitlesAndDetailsList","setFieldsTitlesAndDetailsList","productInEdit","setProductInEdit","fieldTitleInEdit","setFieldTitleInEdit","fieldDetailsInEdit","setFieldDetailsInEdit","commonDataFieldInEdit","setProductDataFieldInEdit","apiGetProducts","apiGetDataFieldDetails","resetAfterEdit","handleViewFieldsForProduct","handleGoBack","apiEditDataFieldDetails","apiDeleteDataField","handleEditFieldDetail","CreateFieldModalLeft","isAdding","setIsAdding","hasFields","setHasFields","fieldsTitlesList","setFieldsTitlesList","productDataFieldInEdit","setCommonDataFieldInEdit","fieldsNames","handleAddNewDataField","ProfileIcon","handleEditDataField","titleName","apiEditDataFieldTitle","apiAddDataFieldTitle","apiDeleteDataFieldTitle","CreateFieldModal","DataFieldSort","activeSort","showSorting","toggleShowSorting","handleApplySort","sortValue","setSortValue","sortByArray","handleCloseSort","SortIconBlue","handleChangeSort","sortSelected","SortIcon","BuilderElement","isClone","getStyle","disableDropAnimation","transitionDuration","isDropAnimating","draggingOver","BuilderElementDraggable","DataFields","commonDataFieldsInUse","customizedDataFieldsInUse","fieldAlreadyInUse","defaultFields","customFields","DataFieldsSection","setAllCustomizedDataFields","setAllDataFields","allDataFields","showCreateFieldModal","setShowCreateFieldModal","setShowSorting","setShowSearch","setActiveSort","sortParam","apiSortAndSearchDataFields","TextBoxSection","BuilderComponents","BuilderDragDropWrapper","allCustomizedDataFields","ALWAYS_DISABLED_DROPPABLES","setDisabledDroppablesSet","getSectionInputs","sectionIdx","getFixedSectionInputs","adjustDimsOfDraggable","parsed","conditionallyDisableDroppables","sourceDroppableId","sectionType","fixedSectionName","droppablesToDisable","fixedDroppables","onBeforeCapture","onDragStart","actionInfo","parseActionInfo","sourceIndex","destDroppableId","destIndex","sourceParsed","destParsed","sourceSectionIdx","destSectionIdx","destIsFixed","isFixed","destIdx","sortedByType","uuid","sourceInfo","destInfo","inputID","newInput","addInputToInputs","resultObject","_removed$ref","_removed$ref2","reorder","move","_removed$ref3","sourceClone","destClone","_removed$ref4","sourceSection","destSection","BuilderBackButton","handleBackButton","BackArrowWhite","BackArrow","BuilderHeader","showSaveModal","TemplateBuilder","isEditingTemplate","productFieldMap","setPreviewTemplate","setSections","setInputsPayload","setShowSaveModal","setLogo","signature","setSignature","setAlignLeft","setCommonDataFieldsInUse","setCustomizedDataFieldsInUse","setEnableTests","flatMap","setSectionsFixed","expanded","parseTemplateSections","_sections","section_name","_fieldName","_jsonField","_value","_type","_sectionsFixed","_section","sectionsArray","fixedArray","scrolled","op","setFieldsFunc","pre","sectionsFixedArray","itemArray","itemArrayFixed","itemArrayFilter","sectionDataFields","itemsArray","handleSectionClick","closing","splitByDot","fileEnding","addTemplateAPI","sections_list","alignment","addTemplate","editTemplateAPI","filesToDelete","editTemplate","deleteFilesFromAWS","addCustomCoaAPI","pdfPath","getInputsData","sectionsList","signedByVal","designationVal","_ref11","inputLeft","inputRight","objList","_ref12","_ref$value$trim","sectionPartArr","handleGeneratePDFAndUploadFiles","pdfDocument","filesToUpload","_ref13","_ref14","checkTemplateValidation","dataFieldChange","fieldsSet","prevActiveIdx","prevActiveIdxFixed","templateInfo","Template","isAddingTemplate","setIsAddingTemplate","setIsCreatingCoa","activeTabKey","setActiveTabKey","randomKey","setRandomKey","customizeReportData","setCustomizeReportData","templateEditing","setTemplateEditing","setProductFieldMap","fetchFields","route","activeHeaderIcon","deleteTemplate","SvgTemplateOutlined","SvgAnalyticsOutlined","Report","TemplateIcon","LandingPage","heading","setDisplayForm","canOnboardNewFeature","OnboardingFormLayout","OnboardingProductForm","setSubmitBtnValidation","OnboardingFormBtn","handleFormValidation","submitBtnValidation","OnboardingEnvironmentForm","setSuccess","setFormValues","onboardingType","submitOnboardingFields","handleUpdateSessionStorage","_formValues$product_i","_formValues$environme","SuccessLandingPage","handleReloadScreen","EnvironmentLandingPage","displayForm","ProductLandingPage","useAbortController","setNewAbortController","newAbortController","clearAbortController","SuccessAnimation","Lottie","animationData","SuccessAnimationData","SampleFunctionContext","SampleSubmissionContext","SampleSubmissionModalEditsInfo","editedSamplePayload","sampleFieldsInfo","sampleIdFields","new_sample_id","new_sample_type","oldSample","newSample","deleted_tests","added_tests","fieldsTableDataSource","fieldsTableColumns","dataIndex","rowScope","oldVal","newVal","testsTableDataSource","dataSource","pagination","inx","PRODUCT_NAME_FIELDS_SET","CHAR_LIMITS","analysis_request_search","comment","replicateTagRegexGlobal","replicateTagRegexFirstMatch","SvgSubmitBlue","Comment","commentRef","showButtons","handleSubmitClick","SubmitIcon","TextArea","showCount","SampleSubmissionConfirmModal","submissionComment","commentDefaultValue","handleEditSample","submissionEditingSample","ReceiptModalHeader","submit_date","submit_name","SamplesInfo","customerInfo","qrCodeData","setQRCodeData","numTests","setNumTests","numTestsSoFar","tests_list","submit_id","num_samples","SenderInfo","CUSTOMER_INFO_FIELDS","SvgPrintIcon","SvgInfoIconSuccess","ReceiptModalActionsBar","headerTitleText","InfoIcon","PrintIcon","ReceiptPDFFooter","FOOTER_TEXT","ReceiptPDFHeader","tableHeaderCell","verticalAlign","tableRow","tableRowCell","commentTitle","commentBody","ReceiptPDFSamplesInfo","samplesInfoSection","first","qrCode","ReceiptPDFSenderInfo","CUSTOMER_INFO_FIELDS_BY_ROW","senderInfoSection","maxHeight","ReceiptPDFSamplesList","samplesListSection","sampleCounter","SamplesList","SubmissionReceiptModal","showReceipt","handleReceipt","submissionFromParent","customerId","isLoggedOut","thirdParty","setOnAddBackButton","loadingCustomerInfo","setLoadingCustomerInfo","setCustomerInfo","setSubmission","loadingSubmission","setLoadingSubmission","addressArr","address_concat","getSubmission","timestamp","ReceiptPDF","handleOnCancel","AddTestModal","setInvalid","OnboardingClose","addTest","trimmed","hasPesticideTest","hasPesticideText","hasPesticide","MaxCharacterCount","charCount","customMaxCharClassName","SvgExclamationIcon","ErrorCheckingAutocompleteInput","labelDivClassName","invalidChars","invalidKeys","onErrorChange","handleSanitizeInputOnAutoFill","handleSelectOption","customClassName","customPopupClassName","alwaysShowDropdownIcon","inputErrorSet","setInputErrorSet","internalValue","setInternalValue","autocompleteRef","handleFiltering","newSuggestions","charArray","ExclamationIcon","_autocompleteRef$curr","activeElement","onFocusInternal","onBlurInternal","component","onInputClick","_autocompleteRef$curr2","onDropdownArrowClick","SvgPesticideAutocompleteIcon","PesticideSampleAutocomplete","disableTestListMod","sampleIDHasReplicate","pesticideSample","setPesticideSample","setInputValuesRefs","dropdownsAbortController","setOptions","handleLoadOptions","optionList","PesticideAutocompleteIcon","selectedOption","SvgAddSamplePlusIcon","AnalysisRequest","saveTestsForNext","setSaveTestsForNext","customerDetails","disableAddSample","setInvalidTest","testInfoMap","inputValuesRefs","setInvalidInputFound","AddUpdateSampleButton","setShowExitModal","isAddTest","setIsAddTest","isAddTestTip","setIsAddTestTip","invalidTests","_testInfoMap$get","autofilled","hideSaveForNext","tooltipDisable","addedPesticideTestName","disableNonSelectedPesticideTests","aria-hidden","waitingForAddEditAPI","sampleEditingIdx","handleSaveEditedSample","handleAddSample","handleCancelEditSample","invalidInputFound","invalidTest","sampleIDGenerationError","generatedSampleID","isPesticideSampleEmpty","invalidSampleIDLength","submitEdit","removeReplicateTag","initializeObjectWithDefaultValue","SampleDetailsAutocompleteInput","_inputValuesSavedForN","handleDeselectField","inputValuesSavedForNext","toggleSaveForNext","setFieldInputInvalid","dropdownSuggestionsObj","sanitizeDropdown","invalidRegexArr","tabIndex","UploadImageInput","getSortedFields","fieldsArr","linkedFields","SampleDetails","clearSampleDetailsForm","setClearSampleDetailsForm","draftEditing","loadDraftState","setLoadDraftState","loadSampleEditing","setLoadSampleEditing","sampleEditing","handleClickBackButton","savedState","loadSavedState","setLoadSavedState","generateSampleID","setInputValueAutofilled","submissionAddingSamples","sampleFromSubmission","submissionDetails","setIsLoadingTest","setInputValues","inputInvalid","setInputInvalid","selectedFields","setSelectedFields","setFieldOptions","setDropdownSuggestionsObj","poHasChanged","setPoHasChanged","horizontalScrollbarRef","sampleFieldsSet","inputValuesInitialization","enableSuggestions","image_src","apiGetDropdownSuggestions","currInputValues","notSelected","field_autofill","updatedInputValues","_fields$json_field","tests_selected","_sampleEditing$image_","_sampleEditing$image_2","_sampleEditing$image_3","_sampleEditing$image_4","_sampleEditing$image_5","_sampleEditing$image_6","_sampleEditing$json_f","image_file","savedFields","_testInfoMap$get2","debouncedHandleSetDropdownsAndTests","setLoadStatesToFalse","useImperativeHandle","backFunction","preArray","returnArrayofObjs","sanitizedArray","tagRemoved","considerSavedForNext","disableAutofill","newDropdownObj","_newDropdownObj$test_","newTestsObj","_testInfoMap$get3","handleSetDropdownsAndTests","Boolean","trackXProps","onWheel","deltaX","deltaY","handleSelectField","_CHAR_LIMITS$json_fie","SampleID","TimeFromNow","timeFromNow","setTimeFromNow","calculateTimeFromNow","momentTime","_timeFromNow","fromNow","AddedSampleCard","_sample$image_src","handleDeleteSample","updateSample","showTestView","setShowTestView","sampleCardRef","sampleIDCharLimitExceeded","sampleTypeCharLimitExceeded","sampleTestsMissing","testIdx","GarbageCan","handleClickEdit","AddedSamplesList","sampleListScrollbar","SvgBlueRightArrow","SubmissionCol","draftLastSavedTime","handleSubmitButtonClick","checkForSampleErrors","getSubmitButtonClass","isDisabled","SampleDetailsPage","handleGoBackToAddressPage","handleGoBackToMainPage","handleDeleteClick","isLoadingSampleId","setIsLoadingSampleId","sampleIDLoaded","setSampleIDLoaded","addLoading","setAddLoading","isLoadingTest","backRef","closeFunction","addSampleButton","SubmissionDetailsAddressPage","_customerAddress$user","_customerAddress$user2","_customerAddress$comp","_customerAddress$addr","_customerAddress$tele","setSubmissionDetails","setShowAddressPage","setCustomerDetails","setSubmissionNameNav","customerAddress","setCustomerAddress","setSubmissionName","setPONumber","customerIDInternal","setCustomerIDInternal","submittedBy","setSubmittedBy","userEmail","setUserEmail","submissionNameRef","customerIDRef","poRef","poOptions","setPoOptions","setDisableButton","invalidCharsSet","setInvalidCharsSet","apiGetCustomerAddress","apiGetPoOptions","nameTrimmed","poTrimmed","trimmedCustomerIDInternal","invalidRegex","matches","defaultRef","telephone","customerIDTrimmed","inputsWithError","submissionNameCharLimitExceeded","poCharLimitExceeded","_submissionDetails$po","SubmissionForm","setShowSubmissionForm","setSampleFieldLoaded","setDraftEditing","setSubmissionEditingSample","setSubmissionAddingSamples","setAddressPage","closeRef","showAddressPage","showConfirmationModal","setShowConfirmationModal","setTestInfoMap","setInputValuesSavedForNext","loadSampleDeleting","setLoadSampleDeleting","setSampleList","setSavedState","setSampleEditing","setSampleEditingIdx","sampleToDeleteIdx","setSampleToDeleteIdx","setWaitingForAddEditAPI","submitLoadingState","setSubmitLoadingState","setDraftLastSavedTime","setGeneratedSampleID","setSampleIDGenerationError","showReceiptModal","setShowReceiptModal","showSuccessAnimation","setShowSuccessAnimation","submissionForReceiptModal","submissionEditingSamplePayload","apiGetTestList","_Boolean","submission_date","generateUUIDs","formattedSample","emptyState","savedForNext","saveTests","_sample$field","draftSampleList","editingSampleID","_inputValuesRefs$curr","editing_sample_id","sample_id_list","getSampleID","debouncedGenerateSampleID","inputVals","sampleEditingID","addImageToAWS","apiAddSampleDraft","addSampleToDraft","apiEditSampleDraft","oldSampleID","editedSample","editSampleInDraft","apiDeleteSampleDraft","deleteSampleFromDraft","apiSubmitForm","_commentRef$current$r","resizableTextArea","textArea","_payload","firstEmail","submitForm","apiSubmitAddedSamples","_payload$submissionID","_payload$poNumber","_payload$status","_payload$sampleList","addSamplesToSubmission","apiSubmitEditedSample","old_image_path","deleteImagePath","new_image_src","editSampleInSubmission","saveCurrentState","currState","_inputValuesRefs$curr2","_inputValuesRefs$curr3","generateSubmissionEditingSamplePayload","_oldSample$sample_typ","_oldSample$sample_typ2","_newSample$sample_typ","_oldSample$image_src","_newSample$image_src","newSampleCopy","_newSample$sample_typ2","deletedTests","addedTests","confirmSubmitText","showLoadingDiv","handleSubmissionDone","_commentRef$current$r2","_commentRef$current","_sample$sample_type","handleConfirmDeleteSample","overrideValue","emptyStringAutofilledValue","atLeastOneSampleIdField","_inputValuesRefs$curr5","_oldSample$image_path","_oldSample$image_file","_newSample$image_path3","_newSample$image_file2","_newSample$image_path4","_inputValuesRefs$curr4","_newSample$image_path","_newSample$image_path2","_newSample$image_file","scrollHeight","updatedSample","SvgMoreIcon","ActionsMenu","disableAdd","disableDelete","disabledTooltipText","MoreIcon","SvgEnvironmentIconFilled","SubmittedSubmissionRow","_submission$submit_na","_submission$submit_na2","handleClickSubmission","handleDeleteSubmission","handleAddSamples","hideActionsWhenDisabled","hideActions","showType","statusToColorClassName","showActionMenu","ProductIcon","EnvironmentIcon","Added","Pending","spec_status","SvgShare","SvgTube","FloatingButton","setCreateSubmission","setShareSubmission","setIsOpen","hoveredOption","setHoveredOption","canShare","showShare","handleMouseOver","handleMouseLeave","handleOptionHover","ShareIcon","TubeIcon","renderOption","hoverClassName","handleOptionClick","checkStatusEditable","sampleSpecFlag","submissionEventId","submissionEditable","sampleEditable","SampleCard","_sample$tests_list","handleViewReportData","disableActionsForSubmission","disableActionsForSample","SubmissionDetailsModalFooterComment","handleEditComment","allowEdit","SvgQrIcon","SubmissionDetailsModal","setShowSubmissionDetailsModal","submissionClicked","showSubmissionDetailsModal","handleConfirmDeleteSubmission","refreshSubmissionsList","sampleLinkFields","sampleToDelete","setSampleToDelete","submissionModified","setSubmissionModified","setShowReceipt","loadCommentUpdating","setLoadCommentUpdating","editComment","setEditComment","showReport","setShowReport","sampleCardViewData","setSampleCardViewData","setSampleFieldsData","apiGetSubmittedSubmission","submittedSuccess","submittedMessage","submitted_submissions","deleteSampleFromSubmission","refreshDataAndCheckStatus","handleReportView","closeSubmissionDetailsModal","handleEditSampleWithCheck","clickedSampleCard","clickedSample","_payload$submission_i","_payload$submission_s","editCommentToSubmission","QRIcon","SubmissionFilterButton","onToggleFilter","SubmissionsSearch","getSubmissions","dateFilter","setDateFilter","submittedByLst","setSubmittedByLst","setSearchField","loadingState","setSubmitBy","setSampleFilterCategory","submittedBySearch","setSubmittedBySearch","showFilter","setShowFilter","showProduct","setShowProduct","showEnvironment","setShowEnvironment","filterCategory","setFilterCategory","tabsFilter","setTabsFilter","handleSubmittedBySearch","handleSearchByCategory","_searchRef$current$in","onClear","handleDateFilter","dateFromUTC","dateToUTC","convertLocalDateRangetoUTC","localStart","utcStart","localEnd","dateFromLocal","dateToLocal","searchValues","handleProductFilterToggle","handleEnvironmentFilterToggle","InviteHeader","handleShowInvite","InvitedUsers","invitedUsers","handleDeleteModal","Person","EmailTag","removeEmail","tooltipMsg","setTooltipMsg","FailedEmailModal","handleCloseFailedEmailModal","failedEmails","AddUser","getEmails","emailList","setEmailList","setMessage","setErrorMessage","setFailedEmails","disableSendBtn","setDisableSendBtn","handleEmailInput","currKeyPressed","inputText","newEmailToAdd","newEmailList","isValidEmail","userPayload","invitedEmail","tabType","createLink","sendInviteEmails","fail","DeleteInvite","handleDeleteInvite","InviteModal","setInvitedUsers","deleteEmail","setDeleteEmail","getInviteEmails","_e$response13","_e$response13$data","deleteInviteEmail","SampleShareModal","handleShareSubmissionInfo","ModalClose","Submissions","loadingSubmissions","setLoadingSubmissions","submittedSubmissions","setSubmittedSubmissions","isInitialData","setSampleCategory","submittedSubmissionsScrollbarRef","setSubmissionClicked","submissionToDelete","setSubmissionToDelete","deleteLoading","setDeleteLoading","sampleFilterCategory","submitBy","shareSubmission","setSampleLinkFields","setSampleFields","setSampleFieldsInfo","shareSampleInfo","setShareSampleInfo","shareSampleType","setShareSampleType","datesObj","sampleSubmissionFields","sampleSubmissionFieldsSorted","apiGetSampleFields","fromDeleteSample","handleShareSubmissionModal","SampleType","handleShareSubmission","DraftSubmissionCard","handleDeleteDraft","Drafts","loadingDrafts","setLoadingDrafts","draftSubmissions","setDraftSubmissions","draftToDelete","setDraftToDelete","draftSuccess","draftMessage","draft_submissions","apiGetDraftSubmissionsInfo","handleConfirmDeleteDraft","deleteDraft","handleDeleteDraftClick","CreateNewSubmissionButton","CreateSampleModal","setTabsList","environment","setEnvironment","setProduct","loadingButton","setLoadingButton","handleProductClick","handleEnvironmentClick","MainPage","createSubmission","noSubmissionAndDraftData","handleCreateSubmission","SampleExitModal","setExitModal","SampleSubmission","_thirdPartyPayload$th","thirdPartyPayload","exitModal","setCategory","showSubmissionForm","setFieldsError","setDelimiterRegex","setLinkedFields","setSampleIdFields","sampleFieldLoaded","_result$sampleid_fiel","linked_fields","SvgProductOutlined","SvgEnvironmentOutlined","SampleSubmissionNav","loggedOut","authorize","setAuthorize","setThirdPartyPayload","addressPage","showExitModal","onAddBackButton","submissionNameNav","handleCheckValidLink","invited_email","_e$response14","_e$response14$data","checkValidLink","triggerBackFunction","triggerCloseFunction","UnderMaintenance","Content","LoggedIn","routeProps","reports_link","setReports","setProductLink","setSampleSubLink","optionalTabRoutes","exact","routes","setRoutes","FALLBACK_ROUTES","filteredRoutes","finalRoutes","getCodeNamesForRole","codeNames","no_permission","rolesToCheck","roleString","apiGetTabs","Redirect","LoadingImg","Route","PasswordInput","LoginInput","isPassword","clearError","onEnter","Login","forgotEmail","isForgotPwd","isLinkSent","emailError","passwordError","slideOut","loginLoading","forgotPwdLoading","emailTrimmed","sendResetPwdLink","forgotEmailTrimmed","sendPasswordResetEmail","sendForgotPasswordEmail","_result","toggleForgotPwd","toggleLinkSent","renderForgotPwdModal","renderLinkSentModal","toggleRememberMe","onSignUp","esv_logo","passwordInput","loginMainIcon","loginBgIcon","SupportLogin","usernameError","selectError","dropDownOptions","companies","atLeastOneError","userDetails","getUserPayloadFromDomain","onInvite","LoginController","StatusPage","onGotoLogin","showLoginButton","Result","extra","ResetPassword","setEmail","firebaseCode","setFirebaseCode","setPassword","setConfirmedPassword","setPasswordError","confirmPasswordError","setConfirmPasswordError","oobCode","verifyPasswordResetCode","atLeastOneMissing","confirmPasswordReset","ResetPasswordController","InviteCustomerForm","customerStatus","setCustomerStatus","customerCheckInProgress","setCustomerCheckInProgress","customerInfoLoading","setCustomerInfoLoading","setUserCheckInProgress","validateEmailHandler","validateEmailLengthHandler","validateEmailUsernameHandler","validateEmailDomainHandler","handleCheckUser","_form$getFieldValue","_customerEmail$userna","_customerEmail$userna2","customerEmailDomain","handleAutofillCustomerInfo","customerIDVal","emailListStr","emailsArr","parseDistributionList","firstEmailSplit","parseCompanyDomain","help","getFieldError","Space","Compact","_value$trim","_getFieldValue$trim","_getFieldValue","_getFieldValue$trim2","_getFieldValue2","_value$trim2","prefix","userNameErrors","domainErrors","errorsToShow","maxLengthError","getExistingCustomerEmailErrors","errorFields","InviteForm","_resp$message","webBaseURL","url_params","encrypted_params","decodeURIComponent","sales","csm","expires_after","sendCustomerInvite","onGoToSalesInvite","showExtraButton","showInviteButton","onClickFn","btnText","showExtra","InviteFormController","setPath","OnboardingFormController","PdfThumbnail","blobData","pageIndex","thumbnailPluginInstance","thumbnailPlugin","Cover","pageThumbnailPluginInstance","PageThumbnail","renderViewer","renderProps","slot","subSlot","attrs","pageThumbnailPlugin","getPageIndex","ReportThumbnail","getAvailableFiles","Share","setData","pdfPaths","blobUrls","blobObj","ESVBanner","dataItem","SignUpInput","valueInParent","setError","updateRequiredInputsFilledOut","SignUpPasswordInput","showHide","SignUpSinglePage","showPassError","showHideConfirmedPassword","submitSignupForm","userName","userPhone","handleAutofillCompanyName","loadingSubmit","setErrors","setAutofillApiInProgress","autofillApiInProgress","SignUp","isRegisteredCompany","isExistingUser","_inputForm$elements$c","inputForm","forms","elements","signupAdminOrMember","handleGotoLogin","showInvalidPage","loadingPage","queryVals","FieldInput","readOnlyVal","errorIconInnerPlacement","converToDBColumnName","ifReadOnly","errorsFromParent","nonFormatError","setNonFormatError","badFormat","setBadFormat","CustomerInfoSection","setCustomerFieldRef","showInfoInputSection","setShowInfoInputSection","resetInfoInputSectionErrors","setCompanyName","setCustomerID","handleInfoInputSectionButtonClick","currentVal","getCustomerFieldError","prod","env","CustomMuiSelect","multiselect","handleOptionSelect","useOptionAsValue","selectedItems","setSelectedItems","selectedIdx","setSelectedIdx","disableAutoFocusItem","anchorOrigin","horizontal","getContentAnchorEl","PaperProps","autoClearSearchValue","DropdownFieldInput","selectContainerClassName","disableCheckboxes","CustomFieldInput","setCustomFieldRef","removeCustomField","DBColumnName","setDBColumnName","setCustomFieldError","getCustomFieldError","convertedDBColName","centerLabel","InfoInputSection","setFixedFieldRef","deleteCustomFieldRef","requiredFields","customFieldKeys","setCustomFieldKeys","addingField","setAddingField","getFixedFieldError","addCustomField","InviteButton","SignUpInvite","customerInfoRefs","email_address","setIsSendingInvite","infoInputRefs","sample_id_format","default_sample_id","default_sample_type","location_link","setErrorsFromParent","customer","deepCopy","addFieldValsToPayload","refs","missingField","invalidInput","atLeastOneDisplayed","inputIsNotAField","fieldInputSet","customFieldSet","customFieldMissing","customFieldInvalidInput","customFieldDuplicate","atLeastOne","fieldSet","customFieldsValsArr","getCustomFieldVals","customFieldsRefsArr","customFieldRefObj","customFieldObj","selectedVals","o","_customFieldSet","_customFieldSet2","anyMissing","anyInvalid","anyDuplicate","inputNotAField","refsToLoopThrough","encodedUrl","encryptedUrl","autoClose","inviteAdmin","SignUpSuccessController","SignUpController","LoggedOut","interceptors","use","urlArr","queryParams","newQueryParamsString","_error$response","statusCode","App","ToastContainer","newestOnTop","hideProgressBar","closeButton","closeOnClick","pauseOnFocusLoss","AppUpdate","initialIntervalRef","reminderTimeoutRef","pollVersion","newVersion","showNotification","ts","fetchVersionData","CURRENT_VERSION","shouldShowNotification","setReminder","AppUpdateNotification","displayUpdateNotification","destroy","hostname","Router","navigator","serviceWorker","ready","registration","unregister"],"mappings":"2FAAAA,EAAOC,QAAU,kgB,gCCAjBD,EAAOC,QAAU,0e,iDCAjBD,EAAOC,QAAU,slC,oDCAjBD,EAAOC,QAAU,kmD,uCCAjBD,EAAOC,QAAU,sjB,oBCAjBD,EAAOC,QAAU,IAA0B,wC,gBCA3CD,EAAOC,QAAU,IAA0B,0C,mBCA3CD,EAAOC,QAAU,kuC,kBCAjBD,EAAOC,QAAU,0gB,wCCAjBD,EAAOC,QAAU,8V,0CCAjBD,EAAOC,QAAU,IAA0B,wC,iBCA3CD,EAAOC,QAAU,IAA0B,2C,gBCA3CD,EAAOC,QAAU,IAA0B,4C,eCA3CD,EAAOC,QAAU,sq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AU,sBACbsB,IAAA3B,cAACW,EAAY,CACXI,OAAK,EACLS,QAASkvM,GACV,2BAGD/uM,IAAA3B,cAACW,EAAY,CAACY,KAAK,UAAUC,QAASA,IAAMiC,OAAO0B,SAASC,UAAU,cC7HxDk5K,QACW,cAA7B76K,OAAO0B,SAAS2rM,UAEe,UAA7BrtM,OAAO0B,SAAS2rM,UAEhBrtM,OAAO0B,SAAS2rM,SAASvwL,MACvB,2DCLNzP,iBACEnP,IAAA3B,cAAA2B,IAAA8R,SAAA,KACE9R,IAAA3B,cAAC+wM,IAAM,KACLpvM,IAAA3B,cAACo1H,SAAM,KACLzzH,IAAA3B,cAAC49L,QAAK,CAAC10L,KAAK,IAAI8sK,UAAWy5B,OAG/B9tM,IAAA3B,cAACgwM,GAAS,OAEZ1jM,SAASq8C,eAAe,SD6GpB,kBAAmBqoJ,WACrBA,UAAUC,cAAcC,MACrB5xL,KAAK6xL,IACJA,EAAaC,eAEd7xL,MAAMzX,IACL83F,QAAQ93F,MAAMA,EAAM1B,c","file":"static/js/main.c53e7ef7.chunk.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEDSURBVHgB7dffDcIgEAbwi+0AbuAqjuAG6iR1lI7mCj73D3IPJA0BAqfNXZPvl/ACtN5HK6REAAAAAACHNc/zw7cbNZqm6eqcu5MmX8CwLIvj1lIMz91cN5AGXvlQREuIbfGS8LETCfkffcd967qOpWJ4jOfE/T7EhzSknkJuRVMrz43vQZpqQpgtPiiFMF98kAtxiOKDmhBmiw9KIfYoXryN5nRd5yRjJuT+sP86tHZVU7zZEKWtsuWwU1Gzz5sN0XJImQvB3wCtW2UuBH8bkNAv2+g57vCr+ez7fsxdwGM8J9F/IQ1+5V6SQ2r7JPgepImLkbwC/AqaPRMAAAAAAKp8AXHs3OaRQvntAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADvSURBVHgBlVHbDYMwDEwi8c8IjMAGZQRG6AhsACN0A7pB1QnoBh2hbED+kHild1JSBWiKaslSYvt8l4sUXhhj4nmecynlyZb0siz3KIoeIhTjOGYAdcxpmhrkDecn0gDc9H2f7EAYyjkA8IWsGxUJei/mtidsow6p8cC1z3Ym21cpXgzDUHDuw0p5fJM4CGuc4bN4V3AwRrZHQMxo/66wSaOYHgEhNbXM2knNrKPZLyCNoUGrIv+JxZBBbjmNXDX8v2LTOcdFOJcEWUfL3VaCAbq6IS87fgVYqyDYLogpjczOEE9yZZcVUvwZZFdKtW/W1xwNfj2ipQAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALBSURBVHgB7ZZBbtpAFIbfGxMiVUih61YNXpBWXdFeIKEXKEgFqSvIDXKDwgnanACyqgSVgBOEGyTZtVDJJlL3LMii2J7pPGODbWyoUJJFNJ9kmZl5M++fN+95AFAoFAqFQqFQPCAY7ch3by/pbc2csnmqT+ERyPWM7J6t9VDAdH7nnAb9sqBhvmcUEMQJPXsZrQePRNrRWuQTUJRSGSgEx0ICx2X9GhD79Jsm5H/ctuCBOepIH0KU3Ib0/buiD4Pja0e8CDe7lAPuTgTAtZXiZbOsm3CPvOkZOcdmvZCfGS9G04pFJ0ohUymoSBO8HRTSUvDr7p+PcF/iusYJjwYhRpznP563HaNgI7sK9gnEtqU5zV2jSWtaqH118y0kIlX6VXkxiJuTKPCoOzHkK+c1aWfZpVDAISJrzzVrQBGHDbgpY0EJUKtFhPnzsrTeuPKqCP8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w0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEoSURBVHgBzVGxTgJBEJ1ZzkYSPVtNjCRcY+UfeMbOzkQKK7/AHNZ+hFz0HywwxspSz58wIZBACFAfBVSww84Cy96FAxIaXnK793b2vX2zC7AlML1QfG/6IpcLAMlX1FVfDISRHI/Dxn0hWmngVdsvCFSGzNOwUiudPi01WCfOMkET2xG/sCEkyKtGadqO0MMeBvaGn5tjeDw/1P88M7chCExSR4+Evr3hszXQwtuzPJzsO/D6309GQHFpzGaza9fflKA7HGlxdzDSPAU3bRDbVT6dxR02yTumHQtx0gApsqscnWNff/f0zDwBkn+mGx6KVfUKsMUrMCGU4SZiIhnOxSbBHN5Hs4Ikgizxg3cAzxdHCY2wSf2uUOZ46k6+YHFRMXNeT4t3AxOET2u6QqdrrwAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/loginBgImg.ce5380a4.svg\";","module.exports = __webpack_public_path__ + \"static/media/loginMainImg.4d45e216.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMpSURBVHgB7ZlNbhMxFMf/dtKuWHTPZpBaPsTHtCcglXoA2CNCTtD2BKQnoD1BWsSeHgCpwwmaFCGgqcSw6D6LrhLGj+e0UaqxJ/F8kAwiPynKyONM/H9+fn7zDCxY8H8jUBAPW6c1klWfBNVAWOemlZuPpkcQoRAUIqKOhAy+N54GKIBcArzW6cpytboNRTsYD9aVkASCQRTthY2NEBnJJEAPfKlSeSsIOygAFnKYVUhqAQ+OOtvsDk2kt/g0QkA2z+tPjtL8KJWAtfdn74qyehI8G/vd1892Xfs7CRi6jKx85M41zACe4fZA/d5kl+pN6yvhwJKsnsxq8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zKZzWQ2mcLKi6nQtQPJPiezJgNFCbyBETPeLcFt9qADHhK65g5IDMCS5NNIklc6IW5D7izga0Jto4iiugI2ijOQ5vcYW1D+hXRQIaA3DegU7CNRhLdBQDumyXzwLtE4MM9JUa2icGGbDV+RATVgNok/E14XYZAaXW6ROjXUZgnX/sBHAZQXzzhyQQCPycJ0fY0cgkUOR+AAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACGSURBVHgB7dZBCoAgEIXhKS9QJ64bVEfohLUXNV0EEQkuErH+D0SZ1SgjPBEA+CTn3GCM2cLy50lqEhr2jbvr0lqPkkEjGYRX91t3K+9KqV5e1krlslzAWrs81FapiZ/5+fzEueYfAADEEKcTEadLI07HEKcBACiJOJ2IOF0acTqGOA3gHw6kPMG3pncOeAAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/searchIcon.23e8e59e.svg\";","module.exports = __webpack_public_path__ + \"static/media/Roboto-Medium.d0884059.ttf\";","module.exports = __webpack_public_path__ + \"static/media/Roboto-Regular.3e1af3ef.ttf\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL8SURBVHgBzZm/T9tAFMe/ZxA/UpDMZjYzl4LVia0pU8e0U0sX/oPA2qWwtVOhf0Gm0qFS6dZOhK1bHbU7YSJDpboSIhSpPr4vsaMQnMROTOKP5NjxneOv3nv37t5FYUAs53leYXIV+J8HlKOgTA1tShuvPV5XwUNDVQC/XHM/ljEAKkln0ymYOeSKfGwrFJOAKl9W9uHvUmw17kOxBIqwWdx7TYtsIQX40lJcoRP9Oiw6G8UpTB1SXB7pISFRmLNWvPPa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ElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGzSURBVHgB7dlBToNAFMbxx9gDuFcXTSPn6aKs9SbSk6hLbZPqcWxiWOgBvIAgr2w0KQMzvPfGJt9vUyPNRP4BnBmIAAAAAAAAAAAAAOBfyLfVMn+qliTkMN7284YUOVKSbz7uqHE7cm53+FlqvOb7QWK8Phkp6P7guvz7W1fui6s1RZAez0c8yPVzdZtl7v740fCTOB6jk9Fs+VZcvJIg8VumdvTlOVqGXO6+GFrEg7yv5i/tSXiugnFRhmPUa+mrg6k8Q1i+qcq2t+fE+2+fMTH2xdxzPJ5aEBYTJWUMphqEhURJHYOpB2FjonSfaWMwkyBsOIqPTQxmFoTFRbGLwUyDsLAotjGYeRA2Lop9DKa2uPObNTLfkZfglgmZjuss4HyMH6oxaxPbKIb/dqcs1OyiGE3Mhmeg3Wfc2keSwdR9/HR8yoJQivLiLnxtkjqK4vI/fqGWMorhnupvw5OuVFHEgyzaVwVnvDvea/wMdCjKSeyp+oVNx7vv9m9HNllzTsIM91Tj1ib9UdrxVpePJMxoT3X6Qk16vCT4Hc1C8FUmP58kxwMAAAAAAAAAAACAaX4ADJoMrMFcWLEAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG8SURBVHgB7ZfNTgIxEIBnC+JV3wQP/iSe0OC9eIeEF9A32PIGPoE/3HXjxYPG7EUTjAd9E44mLmxtQRIj3W5pZw8k851Im5J+O+3MFIAgCIIgCIIgiDUjAgSS9KUJspFAFF3z1u7Add3DaATZFzvLJfRgAn1+svcJngSLzCTyRqp+bs0GWCRcZJL0AxhMRJ7L+HdoDFM48pVhEMp08woWEppciiR9j21LDBKabajBHXgSLhJNb5bGLDIFEvNluRyCJ8Ei/PjgQm18+SgZZEokBqftfQGehEdEwfUGHGSqktCgZK0FydObUJd9+UipBKC/mNqw+D+FIaFBFdEUyhjAktCgi2hcZDAlNJWIaGwy2BIalMtu/OM6kwVT0jLnTSURuVeZynSx/yBVtAartDNl4GYtS50wgCqDdrTKip2hzkRqLC5rZ1xB6n7dKnZBAkCJTHBEVmo76g1RVWSCRZRE7Np28NaOVeb2eXQO3vsIRG24ZxgrrBM2GSZZFzxBeI9kHdCPojnSpdgVyIyhlvXBE5zL/vjaBLZxqTSGvK3aetd16n7B5FsngC6wrMNbh95PXYIgCIIgCIIg1o4fZfUaTm55yx4AAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEUSURBVHgBtZKrDsIwFIZPuQhIIMMtQeFZUokEBw4sBonmDeBl0FgU4JBN4BUgSAgEHON067Zk6W60/ZOZnZPvS/+WgIa06ZS6QHYufNkHPpM729yDGQHFRHDXEr9Q8h4EEiWBBA5xSQkU8gUyk8B5aA3qO4uOrTIo5HU7bRt2t4NFUMnYrkKlV1jAa2nYzvx5Ox18yXmTIoFCgqhzGDZtB9IkeLnYPxnlFkgutJ8k4XD8Bhe2ZrkEKa9FInFa+HIWHC5O8jc8DEKWV7ZeyWZlVbhIH+t54AmO8UFFAxz8zsk+YaYD7l9owtwcXOyYg4s9c/BQYAru7ZuE85RMwoXAHNwTZC2owDMFqvBUgQ54okAXnOcHJKHPiHlY4coAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv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SXmLjcPbGzhy3oGmQ8r0sLPllIDpCbvJJKxLKPsGUPfF8bpWWX1iJ8c05xEWrNso1fD2z7H6Ps/X8udindqHJZe3USqLvqItHPB/00OqWE50MFzQw3yF38JlwZ+HaIlLsO7bQQghhBBCiL/vCz9e45gRleY3AAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEFSURBVHgBtZLBDYIwFIb7ilcjTKBswAqejSZMgCs4gboBI+AEJhLPMAIbECcA4lWpLVgVCwpp+5+gP/m+9D0AKcg5zZwSjIg+Jjdyd13bynkHSDIfcLM+IVRSzrlESiDCed4SjCRCsOGJcBZwRoCjY5qZ0iM6pUUAAF5HHQ++ARtLeLlu+fvKnqwJIYf2r8ls0A0aMwfYLafjPe/Em5Ac0z30FrQutFNSwxe2lfQSdP8toiRMCx+jMmDwqpaCd0gaFZKFP0MXvaEL97/PsQo4m7mByritARVwvtBeApVwQaAa3hDogL8EuuCVQCecBeuEVwKdcC7QBu8hkIP/EcjDfwjUwFkelSfTYaMThUEAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARcAAAEWCAYAAABMj9NxAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABF4SURBVHgB7d37dRvXEcfxgQDw31BuwKAbEK0CIkoNmHEDotWAbBcQUSkgklJARDVg0Q1EdAMR3YAJpwHS/5KgkRlqVwd6EMRj72Pu/X7OweHDD4nE4oeZuXd3RQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQC16gmpNp9PRxcXF5q1bt0b65aZ9bd/Xr79s/51erzea87840//mzD75888/f2/+/XH7/cFgMG6+RoUIl4LpC3xTw2OkYbFtwWGhoS92+3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FgOCQDLIQFgOcYEEGBnqZ2VRY/zMPZdgEfxbswvX2zyDm//BWMCTMPmXN/sloF8ACyHBIDl3EkBGqdzpxevyRLgRqaVd+h7KAnfxoE3U6RN7NQKoLKu0/sVl++h4KiRf3R0zpLIbafLs6bptHGAg/hEwGlc7cvZ3s7W8fn4wo0OTGVzKGqDr9qpMzXyMeNv1LWmyxlz+7o22pOpNQL3QuejrOGhzAj4o531h7rDWhNQ2ZYCSRMZ9lMCvss+vMiqkPkUUHn2Kt9eqhigXAg18vLan/7Xgok0k/R5xlsGlsws/kybLJkRQ4fxk18/pK8qaFo/QRAEURR+A30e3pm4gu81AAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAuCAYAAABzoKT3AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADYSURBVHgB7drBDcIwDEBRBzEAIzBamajdgHQCRmAWNmAD46gWLUaoIHEB/yfl0GO+kuZiEfwuVd21JZlZgL2ts856yco2f9JnR8nGr8YruYKsxEgZZCDIgm24EmSBIAFBAoIEBAkIEhAkIEhAkIAgAUECggQECT4JUtqXoJZSDltB09mZuHAyZteN4I4Ys5FrMhntB9rJv2tP58rTWiUDQjhCOEI4QjhCOEI4QjhCOEI4QjhCOEI4QjjbaE8IeWvArUoWKzGqZKOP08F5QzQ6jUsvp4QH+bIbcH0M7LQ2TnwAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJUSURBVHgB7VY9b9RAEJ2xz0FBEF0REF+BdUXKgESHxMEPgCtoCJFyRwUVlFQQUVHQ8AfABUSRoKGkwtQUUCYNNhdoUIpIkSJxvvOw69wdtrF3x+gklI/XeD1+u377xjNrgP0O5BJFKxDQtRss8oTjh97JkEOtARfy5Yj4kkOlbtSWF4/DteA/gy8g7vtE1B7eyvFHdT+I+al4G2LH5y7L/gaGcG+vUzKR0Pu6fCYRJG5989CyFtU4eD1Tac1dlIK9KoBfhjkQkhDznZYay/I8B/+ISh+MmP8+h0ifdRzq19xwhdeEFCqmIJ4zUrDbhAqoJEBavWjkWNYNqIBKZwFGtSAduzQ7AVvbBKudKMMl6l0Il90vnHXZDmBkL6Xvz5914MXDY/DmyXEp5FB2UXTuAxMsAclJCFn7pw7/mbq1HWf4BNSUc+rAAKsM87tX+LT6C24++pkIyadAog5d64G8LhnXNhEGuf+ghmWc09M7+/ix0UuHN8npuaHnboIG5hTs/IQIHeVu8whcvzyZDw9d0MLogDz9ApMADYwuaB0YtFpR9EzZfq85BQbUIXK0fUErQDaex2XP5JcOp6btTEz1hVlZnpk1gLRpKE2B2j33H1BB9YW3sico3Hm6kVTJSGwfroYrM37RvFIH8m332sVJeP/sRBld2xfQhlInCx0QC0EDKSm9EY7KFyjL1/6u+RGUC0pIevdDlLlQ2IiQ7FY+pna11olBB524gQt+Pl6SArwC40dhay4UQIDPYcwggndF8fIqWFhvQEwCxgELw/BVcRUc4Df32Lt9DMUJ8wAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJdSURBVHgB7VbBbtMwGP7srGm7AquQUA4g6CQ0NGmI5YigYn0C9gBI67QjB3ob7MJOSBUXeABED7wAT9AA40q4ICQktGm33QaMsRU5xs6S0mSx40yTELBPamP/+WL//n//nw387yCmxOW+3yAW5ky4nMHrttwNE+4YDGHJyS08N2OzRfHXM2FS/GEYO8BK8AKGxbjPOX8l+/LHObzYLvusZHmm4xrvgRgrb30eNXuPbrihQw/W3vUIIQuyLWyFxvx7UvDPOmBchmmIjdC4/9pvR91LOCIKbZ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CWg1QshWf8BCToX5vWZQHx8eRB2SYwv8fZS62w36z2zA6lj9/x1B+48N7e27VyQaHEyK/j+0XZdSbGRjJ3RE4xNS9j/teePIRdISHL1MSYXMh1QEhvpGK3KNjlBz7MmDycyuGAogZqHESMQqmwBAfivYMQg4IesuLELaB9IIWowAgLE3tK77C445SdaE7zwgZP6OwAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAcCAYAAABoMT8aAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD1SURBVHgBpZVLCsIwEEBnonu9lXgKW2+gYMVVuxNUxI1bW08hrrxSF4IgNjHVUvpLM0lmFQbeYyDzQTCM4HCfcYEnFCJFARGawoJDUkmlzAEGEJCSKuiEZWTAfa2gDz4G0wRd4PyNLrBSQIU7BSZwS2AK1wQ2cCmwhX8CFzgPJuHIFv4LEEfN5FAwCM8PoATDT7aEfCwqIRDi1/PtUSRsv5GlZnyukugE5TeutjcPBuwCjd6QS8PbrSdXrcBW0mplU0nnMJlIlONMlfQulEISN/NViXal6SSkpdonId8FhYR+F4qO9WtJ6l1oVcJYKIdwzCFbfAEoRMqg33OJUgAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALASURBVHgBtVa9btNQFP7sWGoUNSIZkIK6WEwIKtUbbESMXRIhIVqWph2ZKC9Q6AOgigeAZIAWCYnwBOQRXImhG+5EBpS4ArVpEPfy3ThOk8a/afpJTq7t6/Odc+7505ACJWvN5B8v3dQhXcGrh57t2k03qQwtbsOS9cyi4Bq3VjyyQDgU1BIQr9v2gYNZCJU1GrRX3LKBFKDAehRxJoSsrCPzjcsHSA+LilbypeXjP+3vR7GES9Y6LdKbXGYxO4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tgR/hhsmuq83LcgWUpcPLYrpfBEkVqQFIgZFjBMUuCtKu+7HRAphZNEbFJLBlzitu58/zYn87jEP1iUGPGQ2ZIYWUrYkZhQzNmQmFhO60swNDS6EkwtpZ4EY1OvI8E62NKQYJ0LNVVZ95QdiyzLnyEE+2SuXyI8YG7QcVqu3+P2WM2U4gjjdcdxHOe0+QbTs/IVKLaEdwAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADySURBVHgB7ZY7DoJAEIb/wUfstMTGxw32CB7BWKmNj4uoF1ErtfQI3EA8gcRGSlvUsA4mJmrCuiRILPargJnhY5chDOELtugPoQlBnk/ueqvOUcsmnDBFAiQw891VbI0FdXkTyampgnlowk8+UoSJd2IODbSFvE3LuFhDDCnARUtoIWPIFt2GhdxOQlbwWw43XDu8QquVgSyCF1ao50sobgMEQoLK/OJbUQCpIj2+txMdEcL923doi96SQAOkCHf3ghtu/DzPvGmM0AiN0AiN0Aj/UPgxtZGHxz9TC9JLC4/KoqrotXkkSGnGCT3f3TivV+5i6DmawYdTkQAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAANNSURBVHgBtVbNThRBEK7qWVhcTMA3WF5AwBdgIVHkBk8AnE3MriwgF2aWxCC/AokHLwIevYAHJcTExRsxRjDxzsaDMeGyEHZ2gJkuqxdm9m8W9yd8h01P91Z99VV3dTVClYjO7oS1AIQFQVgipARp6YWJR4dQI/CmxbGFnYhwcJA0MYxE7RUcbIOA7fl4/ybUSxg1ttqbW0M6EUShehxpjux7OTWQgloIJzl1UhNJHobdOQJMo7Q3QaCXQg4mjA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sIFugGcosUKhfLyVP1xyAVqae9K+TQtMmqSUZVlIJ5l7JfS8yPU1hogO4V4hvSk+Aq1jrr3HdAr54FW5Maj5+eJ53hmC4rRvTQA+RlYAQani2iGf7pizeLGNEQWg7vgW8pZAC0IcmwaILQHDVqjuooNtXGcABkX0Td/LQ9QJ4BPOxw15Nf9AcKpjVLfuCRa1rgEtvAiNFMSa4S/Vtqb39AySRWgIhwmCThVAa1mXoCG8DNGrJvyB4YMhfIHwQRB1AMuO4b0h6gD2PcJ7Qbg6jFpDuDwNW0G4Po6tEP+4DzTuJunjuAkiMnWMdSN6wgBwhfxF1KSUfmDSJKU3uMLf7s4dxZsAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA9SURBVHgB7dIxCgAgDEPR1iX3P24mxU1cBQkhbyl0+Uua5KwDgN73/r8a9YlfyE9ndfIhP1mdfshPVqcfWpKrH8WxyxuVAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEYSURBVHgB7ZXBCcIwFIb/vkZBvDhCvXgSbDfoCI7gCI6kG7iBbiCCUPDS4gJ6EUSxMRHjoURsbdIi9juU5DX0/wrhPaDh33HUIopiDy4txdKDXZLzKQ2CoH+UG1JVTvArCJd4rS7GasPUInXQc19nnJV4JDCLJ34zzBaZ7uQNt/lw0J/BINtdPHFBYbZOqJlG4PcExGXyo91+uV7HPRigkIAMJ8hmxcNOl4xI5BZQ4aJ1PkI54JuQyCWQDVeYkPgo8C7clASVCTchQWXDy0poBRjcUZHwMhKk/xCfFg3HlxJWOmERCWutOK+E1VmQR8L6MFISlOrvFEMFSAmHyNe9q2Ucs7R9QFbg2sJCqCawjcjg/LJBQ8OTOzmVeWT89Je8AAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABDSURBVHgB7dKxCQAgEEPRi4vYCe4/jGDnJIqd2AoSQl5zcM1vgtbHjEMtGfve/1cpPtEL6YFXRx/S49Xxh/R4dfyhBTXOHmGHrEjAAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBlVJLTgJBEK1qUEdj4kBCAuiicSYuWOEJHG6gexKMB1C8AIIH0XAC8QKAN2AvCbPww8o0iZIJQpfVI+CEwMLXm/7Uq371qhAisG1pw/ZGGVAXzFkQDDVhUw16HVgCLkhp10MBD2ZPBF1+UbyVHFAAgjbR5EINfH8eL0JSxjllUhuJGjSa5NR7r6jeemeFo4Nj0pNDTpVDEWuFiqJIZJ2+nXXuYQU8z2M1MpfIOP1k1rn7q2vfOU9kXeJHCWuQdF1W5VY47mP+q5FqauhE9S/jslQC2Jo0zD+wFT/5JWqwCWktyaBWq4EFloreCV4KAQtSemuJ+Xwegu9p2KKZ20ybYtPIVcFL0RixCoPhGIXWFe6Tzz19Wjxw4a3QWXYvxdmNNAOTKCXzyD0usjHaTjvlOSccAOMoYqzFJySEOoymj9aepYIgkELEywRQnQXX9eZuXfnd6ORwOzB2g4jlJaWKJ+mWI20Orhoy7EAdl+sJ+2TF2QiSEBNd9frcDe8lX40/a4bMia4R/gEzCPoLrjip/wM5dIrXc6FaFQAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAA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KFT3CIgsEjl7fQQfgQWqZgmDgb7+1xREVgEfKPVVg6va4p8rRVCYBGo7fx0UB4P5lD0Rd7ajcAiMHjq+bqv2Sli3kaxyu/+zXcGCQx5NvSy//7SWs7W+fm2eBsu+J72BBaB2iahh91Yv+fywk5Zfcuiir4BDoFFIrTOLy+zibZtt0/e1ku2G4FFInSgLuXkocaFpXLd12qvPyoyAouEHainPadbtsFMp2cUQw+D8k4xAovK2IX6VwbZKeKVxZLrlOo2bWXv92bYSpvAYjI+OuKd7FhLJjs6tf+Fxe0bvexFE7zaiMCiYis6QqPCQqnsfaxFybbvXlv3b2XA6FVFYJGxkcF3bWOnirZtdbuux7L2xreNeBi9qggsQrPvXgxuW22vM1KPZFlx2T8AvGFlH4FFKGvbaovssy/nJDvr2ij5RRJw1ps0Q6tOiorXF0XMpuizZhCP8zVGpeXVNKxmbmzznrB9BBY5m9xoNFrZKhA74Ft9l7LFtLJ6M90Pv9VrOyKrIrAu0Ggkq6mtrLCPgf6+unc12+r8jc0HbntnN50drLTwQnQfIiOwrmExtHMW0dhK+TfODWfGXfTICKyLNPvC8qOyUc+2yp4aH00/t983N381+PNFjozAupCF9k1ywB/3ttW1F6tbWIdvExCZH4F1MXucxSYpjjqiZYV1EJHVI7ACsIkKi82egLZrtY0GN6ItIlu5b5Mg9phMK6viiexJBFZQtRnC6sfjJKqeNCybaTzqHhpEto/AINEossvJDfAiPC/GUilI2JpEWzMZYteGRUBgkMmKrChrFgkMUr7I7Ppr8r97aN2OazC0hc1illdvucH+XjczOe6KgsAAIU4RASECA4QIDBAiMECIwAAhAgOECAwQIjBAiMAAIQIDhAgMECIwQIjAACECA4QIDBAiMECIwAAhAgOECAwQIjBAiMAAIQIDhAgMECIwQIjAACECA4QIDBAiMECIwAAhAgOECAwQIjBAiMAAIQIDhAgMECIwQIjAACECA4QIDBAiMECIwAAhAgOE/gXnPaK8Z3dA5AAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSU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sRPiXnaeDlcD1j+ERomYaS5Dtrx1vCmuM/Bvkf87KUinb3956n+8AaxZlciKpxPTV1YEXwBa2NwmbAjR4nMykZ9QJ45A60NT5QxwbUP6z+uT6WFdFbryvf/o+cukdP7MqhXLIrCsP4L3xKxXUUfR4TRZpkSspwCdJh+WqaBJgi89of45KNcoO3NCjBlo44FduoaeE89rEasbumWbUIMaBXT5JRQcGBN5gQA1Key43vlTjF7W1/IDL0qjTwLtzU1by2s4fByQl2TLgBehMtu40CapIL493nhTAay3WDfHPpoHnu5D/u3huv2RZtnyw0mJfqDaFrl5+/r4pgFmyApxS8TXsgPJDfXmFfDst5UfOsfHbzyoku6PlckOZXvC6U3X65sxJ4UQhjE1OTc51R9rVUxY6hsgNC7xCNlVG5VaEtK1R17U2dZ2xvPu+EGqUpEQgr6qCMbNJUXazQ3HGAZtA907DZt7SzHZgl+pfhlDoE3SWDupCbpjl0ZhdqtOnus07TQ4uO55v++AKeUfI4MgjMpu/qDDSe1QuX17uGtPw6drDZy0wG980zw9E7BXzNzca/lNie5HM4GTV12T7T1Mt7854u0/TvdkfhLg11NsniiQAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADySURBVHgB7ZdBCsJADEUz4hk8giuxF/EK9hSew0PoFVx7B8WVFxAE9+7qBCwMUic/actQyN+0lEn+azqZ0PB4vRsqqBkVlgM4wDQALvcnaYXGiACH0412+zMd4xWVJiYLwG/RJuGkSMJ0Hd9fhUpkAarlgrabVWdyyZxVx9h1zGEGaJMgEF3maZwZAIGwmrPmBKr+Jky/L6tJnmnNWUE7DXP7QGvOUh9E/0ws5iaAoaUGQLtgFABpt1sg4C6QzH+7A90PUAUk8z6VgIYR0udWCHgY5cxzEIMNI7TP03XIMIJOQq5EJSSyxgT/MaHCcgAH+ACTqrhAIg8InQAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/OutOfSpecIcon.ce986610.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAATCAYAAACdkl3yAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADkSURBVHgB1dQtDsIwFMDx9wYH4ChoFIKEEAweATdgYh8CwSYQ+xA7AgaN4mMDgUJzk3ECHm2TJaTpti6ZgL/a0tdf0ooC1GRFWW6HaV43160bQKIeaGRAS/0oZIfZyglOM2iYE6QLJ7puBGRuj30ASgg7B77QBCGEHdHbs5lhJOvpk/34fJEv6GAFIvYQ+BEzxNFid+LpYjISu2NPHK0Y0MHKEB7Kw1Zw9hANcYFIsCw2fn/LiBKSMTkVwuuohh+3/X0wmiNrqIOUQiqsCtGKH9MKLib8XcgfLt03p6KXAQQthPAB3ymDjG/kd3UAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALdSURBVHgB5VdBctowFP2ScZrSDUfwDUJPUGfRdpgukp4g9AQlUyBhugAWHWpgBnKCwAlKFw1Nuyg3KL2BewO6IWmx9Ss5tjHEFrbDtIu8leSR9N//X/r/GeC+g0BClFpjLQOgEQU0tMEkjM06b19MISViESi3xjql9IBRUiSIuYiDRgjsY6daGEACSAmUGh9yO4+ydUQoQXyYC5vt92sFM87iSAIi1KpCv/GhFlg+A2YNgRI/5JycxudPCBJ95WBCG+3K0yakIeDkOaN898JNEEzG2KturTCJOuiU77EoNLjhoyQkSJjxoOfcw6F1NS/1Gy9nEANl46JEiNLz5sjTISN+i0Cl/eWcbyt6xrsnz4uQEJXWuAgKPXen5mI+fxzlAA1OhPeecRF24TmkQKdWGDDAM3eqZR5mI89ZIaAqSt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OUFAXzhde1Rp3qfmYDrWMys8L58SK91H8k2edj4PoFrEsrVtY6cCbZF68XqbfKz4ERoCzye8mriGbmxLWD25VuZYTwAf6cx1R7JiFJYhiOQzbNHv1BHCKkjp7KT5jCVrFKp/B2UYC6OfG6OXCsYsrcGumFLJqKZC8UhT8tsMbgutYgoJ5EeosAaxgzUYwjUkbWIKmqERAFyJRwhTf32FSZsa95OgWEq2/aF3/wqWVAMqTwDRKtGWUe7iGNH27jWiZwUwnES+1UUqyq9ojw+/IalWtPqZnH1FQfgFgh9QMlpq7Rd9JAKPkHbdSZn1Nb+2ggP6uNuhmFeNS2PCtrI8J9sxDgjXvaA2saQ/P0qNMi0pTk+roW8mNWWJ9d04+pPtmVPztTjzoJJvuLRcu1ccJlzGRZaeCSq2MFYPctiknGzKUVYjZvBHTpSfjiUISBzJbxQechpayfkYuPF3X6sfUfUzJoEZX9QqK3O+8U8Ba53xgyvq3rjUYiyoQDBma0L1XbhNDBdtFPZ6IaSBjuama4Mcwq36mQxNamgu4qNJQuc8p4T8q6V5h06MD3IRkSIK/CvgDocEgXqKL+cQAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB2SURBVHgB7ZPRCYAwDEQvxQEcoU7jQuoQdiJdxm6gG8T8qCBtlVLoT95PIOSO5CCEAOO8bFIs0ng39d27aSLDFt8EZ5qUQjagUF8u4JgmtmE2NLh1J+YWZTgMGAUh3BmlcvnDlXfxDNVQDdWwrqF8tkcmxI/2BG8hFtBoTxINAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKLSURBVHgB7ZdPbtN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SR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC4SURBVHgB7dYxCsJAEIXht9pYaGEXPYFNIKVn0cYbqF06ayvxBlqI1/AIAQ9hDmBh5boBG8k2AUcR/w+GXbZYGJiBJwHANzkZGWaTVfh+Ud29tLsUh6UMtGVgkE034chDdZ417iapu5bnk96sJQNOflZ/01wGTBr4JJMG7tK2/ur3MmCyA9Ws95K0H8ZmFOoWlnhdFsdcAADgFXE6hjjdAHE6hjgNAMC/IE7HEKcbIE7HEKcB4Gc8ANzbTjoMzXcZAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADNSURBVHgB7djBDYJAEIXhN8YCLIFuKMMaPIhXvKIHWrAMqpEOtABhhCtwWHibAMn7Em4b8rNZ5rCGQNmzOrdupbmfwKnNkRe39BWy+IBA3iKPENdL3FCGLg4O7F+MeII/dE7gKo5Y6JGlNmf9tagcC2x+BxXIsu5svBH3D42p7ncwwXYlOziDjhpb1bWNZtnSeRXLcL5qzLAUyFIgS4EsBbIUyFIgS4EsBbIUyFIgS4Gs/QW62RdrmbiGGQXar7lEuq/xOY/DPo219+FL/jFBOct3y+g8AAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAmCAYAAACsyDmTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFsSURBVHgB7dixToQwGMDxr70XuEfAN9DR7UxMyG3uDvoIJidlhJsMxXsHHZzdRNQEN8d7BHmEewGpVO9IQCi0pR4D/wVKCv0lLAUEmjk0/swP1naYhsQ+AI0w6Gc1nCvVB6jXRlBbI6itEdTWsEGLMJq5N5EF/5RDXw5J8HQGdSBCYw8znGQTvOYTwXB8DYYgYWjySOirVwI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IlyoHb2J3ksUOd+kQH7aytjvQsci4pQf9KD5LUEqa+8Ovdfug62gqE+mdHa+P+iKl5QifI3Xkcc+plEt9a6GvAY2MoVLmcDsZymOxkhhJDI3QEXSI+kJoWyjAAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/InProcessIcon.37221249.svg\";","module.exports = __webpack_public_path__ + \"static/media/InSpecIcon.53d52b96.svg\";","module.exports = __webpack_public_path__ + \"static/media/IncompleteIcon.104a85e6.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAYAAADaxo44AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgBbY6xDYAgEEU5ZCBXYQNt7dQFTLSygUL30AmYxQ1MLA18wRgDCb+6vJf7d8SiNIMquXVKXFzyBDoYBjq0bk9KoGP7MnVVYJSDIb7qfgcQEN/7qma/JQyAbR37+hc5Sem7XtpCiYLLByOQN9s/2Ff7AAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAYAAADaxo44AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABqSURBVHgBhY6xDYAgEEUPI50FNNa6gSs4qW7CCm5ALMXiYwKWnlQEtfAll0ve5fI/UYEDBudPYwFVlVIIaZivtdfaZ7n7gA1hfrx/ZKImksQkSFRpvXEIKTTCHXH6PeZWrW4WYh7TdBasbj5dRQflfcfLAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAErSURBVHgBrVIxTsNAEJzdsyMXEXJKROMU6fOD5An8AKeEJvwAfkCFItEEfuIn0FO4CYLOUYQilOR8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2WT77KxMmuGZTVTSRM371fIq6Kq4SxvgJrV/zrZhw/yEDpZ2xsYsBMpD7jEk2KxjUpD4R54BF9HpivgmmWNq3TLYQ5i7MajdjbSfcdrzFdRgndlYwTCSgNppVoxZWNWphVSOXck9+a498EooizO+lEaY69HmLTxs45JO6KIgwE5s4Fen08hoVIMUZtLs2s5gacuqJham9Pt/slRISde+Kd6mqourd+ETo1K2eYvrOFY9Uh/viy/2d2FUNdOqq+GvafXdRUuoFumrUwqpGZPEgJ25EnnUVSNwDf08Y7SmMFo4wlpxfFUwsYV4qkrBLbBieMLWxIpk4xgbxUDystt7fJHH/AbYN9Y5xqHYTAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAAxCAYAAACRQFplAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHASURBVHgB7dlPTsJAFMfx3xtw56InMLBAt3qDHsGFupUbGG+AN/AG4MpouAN6A9eyKNELcADTsSU8o6ZDO+38YZp+F3RCA8kn0DbtI2w7mX/eSJlOsmWEsFsD4p7y1eg5GROJKVqUyF9IIkbLEmhprYX1VTtIpq8pMEMACepdS8j493tKWCp6yfLiaIYAOn5KYoi/f77uGAutDhZaHSy0OlhodTCdBtMkGs0/Ftnt0Ck8ZRyWow4OxYKkjLN7PG84o7AfFMCYyBfOGKwAxXnBGYHtQHHOcY1hFVCcU1wjmAaKc4arDStHyTfFR53gasHKUenD++XgLNveKb7COk4bVg01HOerbDvxhdOC6aA4X7jKsDoozgeuEqwJinONK4WZQHEucTthJlGcK5wSRimMozgXOPUvRvLcBoqzjatxgW6O4mziNGHmUJwtnAbMPIqzgasIs4fiTOMqwOyjOJO4Epg7FGcKp76OZRNN1yjOBE4Jyyea8FhT3F4/CW6CU86ghcRg9JiM4Tn5hRX1kT9mKAJscCCs/u9QwvIpPPVFjP0vQgG6G0qE1gYmCS9oWRvY8mo425591gi/NSG9R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R0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEJSURBVHgBtZK5EcIwEEV3NZAQUQIl0AIBR0oFUAIMV4gJMQQuASog5QjsElwKCU4IFmRsg235QtLPrK95b7RrBAVZmNc2IdhI4D69x9AyhvewQ5DMF07N4Ogt8TqhREoggENSwkAihDQSwHna9UbDnhinpvSI5tvLARFG4hadyi/gY1nubuvwe7/qj4ngKMQTtSq94HfmiMwwF91N2KVfgnzJndIC0UKzJR/4btlzSwly/paUZGaeLQbswOF+LwPPksQ6kIRHIKKpuRpYyfOaCjifOSE6wkYFHIKFlhKohKcEquExgQ54JNAF92/rhPMwnXBfoBPuC4qv/A8vIZCDFwjk4TkCNXCeFxmByTEN5J5JAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADsSURBVHgB7ZY/DgFBFMa/Nzub6LiBPYIj6PypOAFuIMEqUckud7BH0G10bsAR1g10IpiHRkJiDFkSyfyqmXxv8mu+SR7hBb0wbsIQYt6G/epcO6ML/SAeMokB3oAZo2m/NHyWC91jBXh4EyLO63IJY1RLn4sZDDAWTvxKpMt74cJIKPBjqD2OPSmd1aVhOXyXBIdjXboOivi+7IpHUnry4Gbm7n5XUEJkHVCRP2imDmIkJ+Ll9ewqXt/9w24QR0SigVThaOKXbw3/eWms0Aqt0Aqt0Ar/QJggZejEm7v740AnWNQEqdR2nMf18gxIXD63MYW2CQAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAaCAYAAACtv5zzAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAE/SURBVHgB7ZZPToNAFMa/N62brnoDewSOIBsTd/UE2hNIohJdlV2DuPAGHqE7a3WhR+gNrCfQA9h5PiaRSOXPTJFV+yXAQHi/HxngAeCQi8nsIIwfhi41ZHvieTwfKsI0HfNK+7fXR682dQqWUaT7P2PdwcC6Di1nJ7AXBJPZAP+UIJr2c4IwmY/3OuotTJ7HaBjD6vU+wvgxyARgnJoN66iJJIUzIzI7pE4yAYOOZflsIsnBhcXAKBMk4eFCXml/U8k6XFZ+yswETSRV8JxgE0kd3BwtKry8efJkDl8IbB43IhUxf73L9dyn+yvoUZfUfh28VFAkkaTF3t9xObxSUCJZL6+E1wqqJfVwK0GxxA5uLchLTKzgzrmShvi7kW1HSOb2TD7jHlqIglp0pSHcOdxrp2jp0/KrgyVaCjGW36wctr4cHQmQAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACiSURBVHgB7dY9CsJAEIbhb/duIp5Cb2BETEpjmwTUG+gtFM9mxqTzZ5uAo4jvU81ON8XCKwHANwU5yevLupVl/RwVDtVqtJADlwPy+rw1U3a/696bphiXerMoB62F2fMuBM3lwOWAT/I5wK77l11rRzlw+8TL6rSLitN+tu6gppiUAgAAj8jpFHJ6AHI6iZwGAOBPkNMp5PQA5HQSOQ0Av+IGfGlgCtLeGkAAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJ7SURBVHgBrVbtUfMwDHbS9OtfRvAGZQM6Qt8JyDsBxwSUCWCDhgkoG8AGZQKyAeGud/1ueWRkTnUTJ831uUvt2rIe2bIlBeoMLBYLjcZ8YRjm+/0+7/V6syAI8ro6giqB+Xx+1el0bg6Hw4jJipCB9G232z30+/1MNSGk3WAX9+gm6gyAOPURByVkQ5C9oBuL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OetbQn10ku/od6a9yc0Bo+RKFW+mM8FPZ7o/vRgcslt294gwDWRwN0TuPbFAJWstIAAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEASURBVHgB7dW9rcIwAATg89kUTzSMEJpXIZFswAiMwAhsBGzABmEDKJCQaJIRaJCQIDEGyYg0EDtOKq6z8/MlSnwWh0MWQTIFEKHd5JdzmVATcQfYI1Gvj6kqBQbyNSc2gM4RNCIy95zYkXo/VKBYjf6HSwTM/pjNJDixY6Lj/MDgUXVPNB/fLB8ZX8/FOkmGJ3im1hs+MCWYSujFX5/pdpsN4JmvoMW0xhPRQNwEpQtm0wSlK9YUpQ/WBKUv5otWQAU5dsF8UFYv1HNXDI5o0Kapgwavtm9oK136CW2tvC3KsvpP1C5vX1SQ8ftcp9sTbzjx2sPaPEqOtmMMIbC7A4Ang7m5I5HvAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAmCAYAAACsyDmTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFZSURBVHgB7dhNUsIwFMDxl8i49gTajlK3egO9gQtlzRG8AeUm7BipMx6BI7CHRVAv4Ala86gwhoY0Hw1kkf+qfe3M+81005aAY9n7J4MKks0JgfXy+SoFhyi4tsXsH1vmDuq4CGorgtqKoLbCBt1M2UMyZQkcqf6M3V2/sSeQgbLie0R7dH7eowu8ETyHOwih8zNKP3C3AOIXhwBl/je7wBt9orYY3FVPyrw/+xruQJK8oZoYsQ1oNUgnXDkGz6jDmHK8GlxOdiBs+ZLmPlEqTL27TnhkvlC6mAbIB8oEIwV1iTLFHAR1gbLBKEEuKFsMRkCjrGA5t4/2xj9VVT7yxYv/Qz67t8Vog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ot/XOhiXgGGduyCJEWq3kaDGETDP/5JXPov6G+gSmBrZ7d7+KaWTRp+S9/o7yqy/Bl0K+zByEtToHRWr88Pomy18uYRI8HNtPF0rcYbjocx3uE1netJ3EPweZXvi+V1gZAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADYSURBVHgB7djPDYIwFMfxV3AABzDRExPp2RncADdwBc8yERclcQAWgGebeAITX/tr0jZ5n5MxBL78eyQ1JNR07zPxdLM/t4Qw9CKq2/64u0s2r0hsagmNc5gO3xMVkQe6HccjPlGPK5jGhgL1p73x2b55DEwBsr+CGogyTTc8I7+h8diZWWUb59i2Ap5Bdp+eTNm21Sxbzivfeefr3/F0zKA0EKWBKA1EaSBKA1EaiNJAlAaiNBClgajy1wdD1/ViKfIWj5TKj2WYVSDzfEm0XjNyPV+Xf34AOz0zhHZOCQAAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAA9SURBVHgB7dIxCgAgDEPR1iX3P24mxU1cBQkhbyl0+Uua5KwDgN73/r8a9YlfyE9ndfIhP1mdfshPVqcfWpKrH8WxyxuVAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAWCAYAAADeiIy1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABDSURBVHgB7dKxCQAgEEPRi4vYCe4/jGDnJIqd2AoSQl5zcM1vgtbHjEMtGfve/1cpPtEL6YFXRx/S49Xxh/R4dfyhBTXOHmGHrEjAAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGZSURBVHgB7dc9TsMwFAfwv9u1QowGFnaolCOUG3Rsu1BOgrhBb0CYKBMcAW4QVA6QbhmR6IgS/GgjlZAP59lVVen9liqOrLxnvzw3gBBCCCGEEAdLB5PpSTAeoiUdjAY0F466cHAaTG7NzwxQo56+jFfJx7vNvLNgfA10XhQwPNJ9fCWLNzCxE9is3iy/VlBDmyQo+BQq3Boa9HR/uUoWERg6YEvj4ohJItS/q1uuJPjNvO9PMLF3wKx03NMXS1p5/AmmfCeqgs+Q3iTR0xxMTu+ACTKySaI++HkIBwoemI4yVejcF8czZFNaoV0FT7wkQKqSKOMreOJUQtuqyqnIZ/DEWwKkKQnfwROHNlquC5VV3627x32eR1XdJmd72LXhLYGm4HO+k/DSher6/Poh5S02iR4f4Mh5B5oOKdvDjsspAdsTdpdJsEto/Q2gnovjda2y+sROr8ycVzCw26ip4eP/Y/V9nu7l70XBOZhc/o2asugrs4UDurY9pIrlZA6GO/Myz7AvVBb0eYiWqARpLoQQQgghhDhYPxw/45aJbjdfAAAAAElFTkSuQmCC\"","module.exports = __webpack_public_path__ + \"static/media/whiteMap.f8658efe.svg\";","module.exports = __webpack_public_path__ + \"static/media/pinIconDefault.53f4f2a7.svg\";","module.exports = __webpack_public_path__ + \"static/media/pinIconHover.db796a5a.svg\";","module.exports = __webpack_public_path__ + \"static/media/WhiteCloseBlueBackground.b39909aa.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUwAAAAxCAYAAACxpZD0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAK4SURBVHgB7d09bhNBGMbxZ2YFIUAk022oHERHkFZQUGJOQFKRQMFHQQviAkQ5QU5AqAgSDVwghA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u+u7A/m/DWcHygb22Akavf16Px1Cm2GghDtwxUFgqAWkW4y98ekM7MxwGKusr58yDMYe8X55pzD2tEo+nln5uSCljnAO1CG31xFrg9n1L5A8RG+Bm80MFOfHbFtO6yhR0MrXIsrMCghaDkancPmF2NVsFWi86UAeIQ1FpzfSOaRzObnJmVXhkQlF1cr7TWNd5FVOpkgU+yx6Oj0A8J+GmUWnQUaBHhtYAjyrGlOb+RzkHP2tKBXbsc84IZ6VgIf+ZqwBawxdlisimjt64r8+EOA1zt9V0Ie0lMHoUDT0LjxBnGBH0Th+2/vZX6/wCR93jtkblFHQAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/SampleCalendarIcon.2b633e0a.svg\";","module.exports = __webpack_public_path__ + \"static/media/addIconLightBlue.6d327a68.svg\";","module.exports = __webpack_public_path__ + \"static/media/uploadIcon.93d7d3e7.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAM3SURBVHgB7Zm/b9NAFMe/NlV/hFZyJQZHYjAzpTUTHZBIN8Z0gzJQ/oKEgYGJdAMx0PwFdKIMSIQNJozEAJsj2HElpGToYKSqKZXw8a52pBKf4/OPJkbNR4pyOt+d37t77935HTBhwvlGQU7o5p2KgqkV4E+FhjUVKBoD0/yXKC6VHdCPQWkDntW1X1vIgUwKaGZVK6FUo2HqfWET4NDLLQ/eFinjICWpFOCCz+HiE5rROnKAhNhJq8gFJKRsbtSmMd0i4SvID25y1Xl92T3ofmsn6ZhIgbJ57wX9Neg3i/zRaCWqC/qyRkp8kO0kZUK+ycy9peYVjAa7h8M11265cQ1VSDCH0scRCs8x/QmLJ9aEArOpYuQohow5DVVANzc2ycaeYnysLuhLvw66379ENYj0AdqYDAUqmQ4MjBeX/OFKlD9MRfWisNZABuE/t57jcvnSSflnZx83q4+QkpM9h6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JqJVtXetkiJD7IvSblQ5DKbb6l7E8XgT3B2P/CPgqyOJiTYRPljgcJz3Mhg2WS6UOw2LRSO4ci400wFbLf9hHzsOZbHbtXe+nk6/vo5rUPqGqDE5BgwyXXgYLkEtB4aaeshdQ1QWOth+cJz4pwjRjgDsfW/QSNoFmqiWRDOQGx9rdhAWZj1U1zIuAfNIFfpiNoTCvBdJfTw/WmsWLb/EMyA2YSmkGu7021mshPbgbYkN5ACBUwH2mImjLuW7MQcSMAQNhY5iPyLQthOHJrMpGCQOlnlJbziWNkKXDUEawCZe3AOn3bkhMJYCdkSa4BFnTLdiPssHS9RMKPpBoELMR/aEh5Pt4jWwCdoCoOZMK4gCmk9A950i3A7fctt/5ANp8XBRif+YWO6VRhGQ6APzaCSpCdqFyqwgdIBtCPcF7UKFRj5Ax5KtZkFcudBWrZOzcTrKPVkk9rlwqvaYutzUssqwdg/r9hbv2idP8ASIet3yfqpoX1mXYjXY6r2nRo97mIpsP7YP3wxq4dUbbTuPiq6tMjxT/xXd7M6Se1G17G+R5oWluAomXq8uCvTV+mCgzZvPLx2cKmwPiUs6YsTpfsBKrS+r9i3j+PDda6ZOop47CkJ31N5T/mGhha2T0q8o8eaqEowH6w/wWTvu//GgyILXfJFBxGD8sXfQpij8i63ON+ynOPsQOYiY8Y4+RAVnUy6agWvHNAhHc7FhjAWNogDgUcFgWFe16wrVlx3/gD5le0zfeRABwAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/zoomDisplayIconDarkBlue.372cfc56.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAhCAYAAAC4JqlRAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAK8SURBVHgB7Ve9ctNAEP5OITiYmFE6eShQaggRb2B3dJiCmRAa5wkSniD2Exg/QZLGZobGLVX8BrkM9IgC4hkaFRmcyWAfu0hK9G/5ryLfjEanvdvd73y7e2vgDv87xDSLdaumr2HNEhA1+nzCIm/Koec7Pf0L2e1hCuQiwI6LKO7T8gMFpWcbFERG9cYYNwfyo415CZSt3X0y2pjkOMV446fsNCesSYa365YC6pgLqjfEcM+RPSdp9l6a2gMUT8m5hbkhamTLJO8vkmZXkoRl612LXjUsDkbJeK5fDr58jk7EjsCwduskPMISoDCuUmD2gzINcUaHWBIEtNjGQgR49/Qy0wxQJpzQ60C4eR8xDodiZo+GWXXANKydSioBAfUqXVfZA9mtX8hOm5xVgyR4zLKB7BzT/GtKW5lmheYOMwiIClIhdGJv8uiH7EifhO+cZTzHa7JrhrDCPj08tt5YY6yeIRu2F0i27+wKV46f4/xN53yKjGNkkI1N38bNLzDCSp5K98+B/0uwkWmduwS0bX8cOALNRD6QI3yICun4Wnmcu2uxESNAAejkVHY0aI2oXINoJmVHMsb2rd7N4I89SS0acHxf8MPjYGBOsjPCyIkRWMVDe5JyNNqpxp/xk5QdWXZ+yU8yRsCWx1RIlMzQk0HngYALBSavybJDc/3gd+gyKhlbFBziZYqu8cjYwrrxbIMcdhEOOJ27pHXj6XnJ2KbGBTtIR+Ny8PXc/whdRqZV169x/U3dtloLhrKpZdsMSkKV0DuGJpYE2lgjKkvsiMrWWzrfrLI8E3p8T0SFWtLKAgq80MbCoLiEv0+aSSTgHsW4uiASnBXVtA5ZS9NihQLucx/XxsxQ7SF+V7Pa81z/C9wcF0ciZ1y4ua6a0fZrZgJhIqhQHeDGxfTT1euGuApK2vFJWgt+hyT8BfqgDmPF9OPeAAAAAElFTkSuQmCC\"","module.exports = __webpack_public_path__ + \"static/media/fullScreenIcon.00b89e23.svg\";","module.exports = __webpack_public_path__ + \"static/media/exitFullScreenIcon.77fc6296.svg\";","module.exports = __webpack_public_path__ + \"static/media/whiteTrashCan.a912fa36.svg\";","module.exports = __webpack_public_path__ + \"static/media/binDeleteIcon.6356e4eb.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAdCAYAAAC5UQwxAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADBSURBVHgB7ZRBCsIwEEV/QhGXHqEVlB5DvIOIK72CJ/EILgV14Q30CK5FSBYeoO6KxhnbrsQWNQrdOA8GJhOSB4EfQBDqoLM0k+76NMYXKHgSL0xIgTZZyxdHbTuKrM95jZoRoQi9qYxFvDK9GyOs2tMKLYaeZS0rpadE7lx5MSM5DKPNW2EuI+gtfocJ1D8Oot3jsPSkaYA9GEWwX9QHOljnYJ/H8tOIUIQlAniSNpE0rkVOswUS1EE4N628IPwldzZkSLQqtFtOAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEkSURBVHgBjVLBUcNADJQUZkjyss0X5q6DpANcQjrAVAKpBHcAdOAOYiqIoQHuBzy4Y3WJE2OY2PpYkrXyatdMvZgml3kQWU6IFlp7olfyUn66punOcZskiU2+ODygs0LpfKBK+0K0RM8yhdJ7WfcXROA8NZtpYvO/LGwxS812lpmtzh1fXFwVNBAA2whOzeOxkZmgt40A5+2skPgiHsuTuyEg7qvwcAzxcDvZ2GXKx1AmiAZFF2e7Ijx/vL+t6DTNggWq76KU4KUGz2saplmCVaW5eiv4bI08GSNO+OZ1TPBDxKdKrB6pwkNgpXwo1NTW4P8EUjbzzGy65nNnk4U190x8g7KBevV+ItfdqJ/OA98617hfwN6CAqmJd3l5UR32Hh7iB9MiYZHD99uHAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAaCAYAAACtv5zzAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACUSURBVHgB7ZSxDYAwDATfiCGAihG8AmOQhjAZqZiDEdgCtjABCQkogCJGFLkmjuREyuffgDJUsOmgSCqAhSIJIpHfQxkbC0VSAlSTrB60dVS0iNxACEDGtSNQs9bT2J/uVP9kfRchMCXbk0SUs5E3B32Tm8d+s/RR8yc+CZp71yrDsRbQ/nLxmlR+LbfNZfREmz6yAN5wIDooW/LEAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAaCAYAAACtv5zzAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFASURBVHgB7ZZPSsNQEIfnDUFcxhMYUdMscwS9Qd241Z5Ab2CO4A269E8LAS/gFeraxSjFtR4gvHEe2mBr+jLps+CiPwgzCW++jyTkEYAOyUZ0lN5Rv8sMahfuj6lvAR8BsTwQkXZOLUAL8aw3DIl6DtacjUAvyEpK4I+SlBTPCdLR9MpWSK5CYBxjq8L33i1d1gIAe/5dixDJ16wtXM+IZ7WA2Z5I+QiR/IQ7FoMd1ILn072JSI5XlfyCC8sxa0GIxAefE6wiaYO7mKbBw3vKjZGNDWb7DxbM1atcG7ozAQ2MiXbb4EsFTRIGmMjifLH3wb2CJklDvPBWQYukFa4SLJGo4GrBggS08M7JbihJhhTDf4r6ETUlfXjzzu9E22x64+mFBc5hDUFrniJ5YddBt+EJy+8Hymf5At3C6oOBPgFS2taHxRXiUQAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAYCAYAAADd5VyeAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABLSURBVHgB5Y4xFYAwFMQufQioQzSwMJedoXZwg4QKoP+AhweWZkq2sO7HHKZiN6wyOVSQs6RsVJPhjQ+rJa6+PHJatE5s+gWGOr0BmfpODT2yr+gAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgC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FyhPZW8zDGBCWOaaxLHDV2gkI47Clj4ni+No2N8azLzGh2WCsEDhWbaHNFhXQNb5PQfQMOgr37DemyqYuGBeEK45uJmuMDBAwL68hFMgFswxENo4M8yAzESF/wQLZYJaFmKyV1C52EMnYT/hXYuwluEAwmn1YIFtgpio62nNLyaxcSEAI1febbMKSEGo7XKepyBbRyswEZEyyywXl+Zgtl4FQMVF0tG22VJYHyHkEi5iBPqhGoWWbXHREi462zRaPzbsrAVFGVKGbPaX7tskYP6c2iPSZ9TTRbI4uPcGqemcWrIJwfYLvyhFSinbREdVhJBXtu/eYV3JSSQ+0u4uQSteoRzYuHgKtpBthBVX/m4LIprkKUCXY3bW6cXw5FXr94ekV1KokODPbkmmCNUDud+pXeqyorLh++XgGK9LGBdrS6lbVXqTlRiU/WFVQtZh+T7eISNlCA15U5Yeu9mGR0v4I9FIDtyQe8+P069zNqoKNckzdWuGCNI0a7qstgBdJBSbODUgOIsI19CzvbrBUC8AwqCwNkmofIxZfOxusJCArCC1aYGnQ8hCFIBkMdDAHuDyRtJxE4l+KtYUEv6jlVF1B9Ju3bSexVBPu6NbKC73ApThUbYNryFI/SyQXERbZ5X+WkAMh5GkRQKo/oZdCUJkzf8YAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAg5SURBVHgB7V3rcdNKFD4W7xl++FaAUsFNKrhOBYQKgAoIFZBbQaCCOBUQKoipIFABooL4BzM84sT3+5SjjGJb+5ZkZ+43oxGxdle7n87Zx9mzh4H0iPl8Pvzz588I92dZlm3jpxz/zvVxvpB8OhgMCt5xFZeXl99xnzx+/PgLfp9KTxhIh6gRNkKjn8sySaEoUN4E5X56+PDhpEtCOyHw58+fo3v37r1DAyllQ2kZIHBMMh89enQiLaM1Ailts9nszdXV1b50QFoDKJkHUPfPT548Ka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K8mbG08TuPZIAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAKoSURBVHgBrVbtkdMwEF07379wCaaCOyq4XAVkKIDz0ADMFQCGAoAKLqECch2EDkwDnCu48/3Kt83bsMqsjaU4meyMRhpptW+lXT2tR0dIURTBYrG4xDD0fT/L8zzr9/uJ53lZUxveIYX5fB7C4Ae01wxkUUuxPttut58Hg0FKpwDKab7jJDd0hAB44gKuBcSphgD6iWGgpjMYm+IaEzjzLMZfYPwKuldUPv0D2m2v15vSIdlsNjfL5bJQ7YEdcO0BKDsZsa7al7MtJxiURhqMr5SOEAGONajVWU4O7SFvpBOkBvSR86EOcNIEjB1brVZjPn2toX+gHq8be9C/+8+Ijhk5RF87x43sJ/XUjfHVhjzvy3psFJF5sQOPkKUBNZMCuu+MWbRoDyhpzZJ2u90fdAaB4wQWmmGYCcbbXS9xCEVpRmcWnPJehiFjtZkbgW4Wf2tlYZtRxcbQDFqt1hVis18Qfk0Uy8BEsbfJWG0oBQqgRMIIdoz192QR6EdYj/QcnBijM7GjCrGHvisJbGnvEth7tq0B/KmNPlUTVYAYbVpxamgIXYj6l96ARJnanGYOLgHC0IVWllikek5itgNkMOhMyC7wybtQziS+NgoPRkxN5xT95DievgCZ1OWsvKYzCDsOWxFVnpx5+BPl0R3TUhOjnASuZdj6aPBx/V9Kq4jNWJHtN9vVmkqACdzwY40Ordfr2EreAsgE/miUeMMp8ayCof2xObYrLZjZK6BeU2DW5dvRHzD/Ls5NUirk+ruCkUiAa8Hl072ulhh131dtcohXX9FequldKch8ayiQiygkxiU/JyoXXE/Qe4MnN2sEKCcN0X0SVmmUteLEuNPp3NqK40aFsADrUrC0DydM0d3z88J/mrjsNfZcDAfynQXCrym3Q9W2lr9KoJHlgkp0ygAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFFSURBVHgBxZcxasMwFIZ/2Sm0UEpG0aljl4CPkByhW8iUm8Q9Qk/QLUuXrp3abh0NKZ2zFARdAg1ZElDkIEziKIn9HOl9m4x4/4ck8HtAA2TSv0NDYhC5TQYjQLzeyA7+1eQTREgCebgGUrvsNpGIUJNS+AYNPQSRVp3NrnABzATEA4iIqhsPh6P3m40zEKkk4Cvc1uELt7X4wm09vnBbky/c1uULt7X5wncEOMILAVd4IKZCJoOhsXgGE5GAboOReK6+v65lR5hT6CI4elo8QnMVqVmMSjtmKyx7f9mLt0dYNCRzNflwnMRlhLh/Je/fFupHwQM7HRGHxF5LFlrC2ROGlDjYlIaSONoVh5A42Zb7lqg0F/iUqDyY+JKoNZiobJyav+Zj6XO7hYt3EKk9GbkkzPoJREiz4fZ15DK5FDg4x3i+BvAhzq96nZQtAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADqSURBVHgB7dhBCoJAFMbxN9kBOkCQK+lAte4M3cBu0BVaF3QfNxkELWsd6WsGWmnpzHwDjvB+ILgQ/SvjiKPIUna6bYirvd6dEaYkleTFan6wOXhCtrjKCY8z0u+NWrEPNCcOx/pGXQIHMSVPxXqhXI7PjlcmD9E/QQlEKT02LhT2DQ2pNE8wpXilIxiDrD89sdJtrbmsOV+5zneu+q4n0wxKAlESiJJAlASiJBAlgSgJREkgSgJREojyXn5zsTzf//661u8XdekN9F3Xc4noMsox+KSh/FiGaQUy19sA6zXssT04qXfNE30Ay2ZEIRb0aCoAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBOR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UVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG6SURBVHgB3VZBUsJAEOwEqLI8cUQv5gnxBeQHwk1SVgVewBfkJeREUeVFX2D4wf4AL1pWedA7knGGEAjIJkHXHOzLZqcz25PZmc0CFcPKI5tup3mC0w5+iSUW6k3dqVzBM7fHQvYYoCYMgIVuX9RklCPoz3lwYBCfWFzaObwDw6ih4dqoGJUL1luu3+eNHMuEgMGrmoT4Q9SLXpAgsnMO7oqHDoFmPAu39lU1D/nJYR+xzzJeAfNeKcEDXxxyBb/zIvN9ruVeKwvWo4hluZbb89IOLL2H564/5gU9eeave9guduMJlwQ3jXYD8PvCcRDt1FZaMNYzksK+zivxo42lMKUpOEWbvZSIeYmo2Gca8hBySkNr3delBSU9iRgFKHkoJFtgOxzgRfqVpQXT1vl+/MYRwR5ovKTlgh+lVAdO2xOSNpDzd1j0fqFgWoG0Z+fIN9WZ8OTw4CUcBczJPrePFtRXIPaqM5tqyyON0/8/vCsVjEEfOYJWBLNgMVJaQcJSeuseZqAIcVdaSFul6/7qwjCq/+NjV73NZyZMQHdzqNf4khqjsZpII1v6Rj8W4SGj/cw3YhYaoSJ8AWLFjSrXZLPqAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABqSURBVHgB7dXBCcAgDIVhUzpFh+hEHa8TdYiu0Z70IOLzYDCH/zuJEEii8Ow4ry91vM9trXuvui0Fs+dDPZGaxKsu3IZoSCl/aPTta7Prwm0IgDcj7QXSXqEhhbQHsBppr5D2Cg0ppL3yAyO9T95wfR/QAAAAAElFTkSuQmCC\"","module.exports = \"data:image/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KJ8q8ug8dha0iTa/Y0PMHrSO7nUCVdVVXZIu1nEbYgM4jNZC6o8ZbzXAOBcYg4+hPlD7YfhEVhsfvkv+zhv/XgCVaWtAkc2D1kcEktAEc2H2rTWpi7OovdOa1uN1yMzCSVsm1NPt8yMq/ngSZYAVHN5Wg6IYIgUole2KA1epx4ElQicVWnf0eXklDhCDr2W8JRb6kvzRk05OgW27oNWsQEWRwSGmx+ryGi1ab+W08KTcYmR+6g8OpGL4Epdw4uomBsWkNzhlewWHBl2A75MYrOBpdCEDUcuMVHBYCCUYpN37B0TgfAhCl3PgFh4VAgk3VjcDbcA4ICg4LcQgBU240s60NJae24awlGVZPBpwrOBrLIARkEfuHV94joArRIPeluJRtNRGKoISszZDH1s+bZNCHWWiCFgYo8tg5ZBX67vkhOFttR535Hx1DNpsNXHN6H0xNa1iDDMlNiroJqZGMUtTn4vKi5x7SPKZUMqRRUlpkJtLpWTti8fnHk+q+H9FTETSv6rIe01mSipx7cHg0nRLx6rpJzAVhHDHl+r6e9/wOD8wkjYPqedOTXJ2guxyTlhPxyoqLnOO6D9WeWnXBz4KhCTrzJuGATpkVxxefdjmG9qeqREwpa85igNbPcYEPKO9u2xxhcm7V8CxAQqU683DNPkjkdorL87I9mJyiKXxqrkk593BEzfIh6as7W0tPZJsy06rzeqW7xqWursFZCMKxpYJKLd/5wRsPse9KXOyVfvexLgiF0ATJArplRbJYZtC8OiYLZRxrCq5tMlrrrlHfWz5c2Dtgb1kXf+SMT4yVN73ODe2DdLgzQhP083PyAYfVKH3lnXu6mSL7doQiphkXC9SwXaFFFf1PBM2cmfNZkiu5tFDWkljlt06QdEAGC8ea329CDE6Bn1+Lhd7+sU/0byfkHTbIaBbwjp4ZCoB8yz27W6XewdFXZF6yOl6joUt0H26Q9Z8dscOZ7/rrkt+ZfwHNy4jrSkpW+wAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/myAccountHelpPlaceholder.ba7d2b5c.svg\";","module.exports = __webpack_public_path__ + \"static/media/moreLightblue.2a63f682.svg\";","module.exports = __webpack_public_path__ + \"static/media/myProfileIconActive.1bc05979.svg\";","module.exports = __webpack_public_path__ + \"static/media/myProfileIconInactive.6c7c3d9e.svg\";","module.exports = __webpack_public_path__ + \"static/media/teamMemberIconActive.437654ee.svg\";","module.exports = __webpack_public_path__ + \"static/media/teamMemberIconInactive.0bf7de22.svg\";","module.exports = __webpack_public_path__ + \"static/media/savedLocationIconActive.d62b3cd8.svg\";","module.exports = __webpack_public_path__ + \"static/media/savedLocationIconInactive.1820faaa.svg\";","module.exports = __webpack_public_path__ + \"static/media/faqIconActive.6d1c063f.svg\";","module.exports = __webpack_public_path__ + \"static/media/faqIconInactive.11c022a7.svg\";","module.exports = __webpack_public_path__ + \"static/media/helpIconActive.bdc1ce3a.svg\";","module.exports = __webpack_public_path__ + \"static/media/helpIconInactive.db54a385.svg\";","module.exports = __webpack_public_path__ + \"static/media/plus-lightblue.294ef7d5.svg\";","module.exports = __webpack_public_path__ + \"static/media/minus-lightblue.6f5de14a.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAVCAYAAABCIB6VAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAE9SURBVHgB7ZXdbYMwEMdtEyGQeMgG9QgZIYzQCaJO0GzQblB1g26SblA2KBuQN74E7v+oLTmOTRKkvOWkE8fd+efjkM+MeaSua9l13aFt2wqqjDZNs5/J/SXb+Fe+RCHEQSkl3Rh867lcsuHL0zQtuQf8hYQdzHIcxxd6mhgtcKEwpYOgdflZxVEUPaECqu4ToG8WEAt6hJovIXvaUIQWAnwMxdDTjYH2fZ8bPyp9Zv9fKFdsgcRxXFAvCZJlWYkfZ0JTGxaDSUJt0v+hFOxO8gA/wAvA7uC5CUwjzx17JDiubzi+FXTHbhT75JkROM0IDKNXHM/NJQANLGzsD1KlumrlKmLvM1AO6F7nVlfDXajO+TGts/PnCjiB+xLh22rQaCuurA8313eDyGEY1hiHRWDzrf2eJEnBOT+b3X/AtTPgPtHJiwAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFBSURBVHgBrVIxTsQwEBwnp5OCEApdypRICGF+ACXdlXTAC/gC95IECQkKiuMF5AkWH8BXkYIiBSJUMevYOWxiTjrBSHHssb0z3l3gj2AhMuNnxwyMK7BDSy2BrqzFvVwbIOWzNMFWQdNZKLACSgo0dwMxRzUn1SeicqyFki3ao0YsGr2KHDPXgcuCPulTLE+QFJ4Dox69jLSAS3uoGO91J/SUyjqILrAhKMFc/yd2mTvpkKQ8N9OuMoej3gmpXdEeN65MhaJA8Aa/qqr0Jzcx0fpknVuOD28elL9z4FV9uXKgEAtsjK7UY6yH9/pZ7mQH+m177hEGpd0QzzKfR/kq7m5WDjSmmGq70ldhOWy2HciOunFYxMOkqcXndrb/SNF3A5cG5UWLj9M38VA73Bi6sXRvsL68vVFBdRe1uK3w3/gCiXtcAGrFw48AAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFMSURBVHgBrVLLTcNAEJ2djTinBB+iiAs47gA6SAUBd0AHsTuACmygAKCCpAMbuCASCdMBZ5vdYXb9iRVsgwRzWe1o3md2H8AfS3Q1J1FyIgFnWgjXDhG956DjzPeyQQInSsYHUkZAMO8iJoK4IBW2iRqCwyhxNOKKWw4MFmW51h6TfJgb1m0NGPwMtpqOddl2UKrLtyEYaboSCKwqllZQq9Ot762xUj8fAoNW4cZ3L3hF2jVx1l7BaY1nI608c9bgV98LJrfPS9QUNNarHxrti7HEuOBTssVPiXO2ebkPbpd1wA+RNsxMAChXis/twu0Fm2w0DhRgirBbz5AQk0yjxwfQdNalbIJVzZY1vXm66wvQtzUFxJvFsd+sYBmVMo3sF/isUCqsLw2BSRbywzH/dS9UwH3OP9QZ5XbZYJXZcKqhVPA7vfhHa/jv+gLz247bTKReXAAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADuSURBVHgBdZAxbsJQDIbtF1CSpw5+YW2bdwSOkLFjbtDehPYkLSfoEcjaia6dCoKBBRExPaSAsYFICAVP9vPv9382wiUSeiwQoxEgDKUkYKjYHMZhvfhqNUDkybp8mpAvNNc3S75MXf5vs+fRSWQHT6UIPHSEDqlY3SAd5BMpvuFOqIv0J0ZYCuEqT1NdQoBf5TaS1/EBXaiXVddvO8MbpYj6ll4a3v81YTu7FTahnvUTGjLAKurFbo4GPx9iNw6hDrfiXuJ+DOD8bJH59zSTU8gF2m2V2Wb5tD0XXvG8QcSvqMsJN7Mswfgh7pX2j4WZRiI/eOXGAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC8SURBVHgBpZPBDQIhEEU/cN0C0JMFaEIJluDRcForsATXDrQDPWkXWsIaLcAjR032LIIxZtcoC7M/AYaB/5LJZICAekrPpZoOQn/4v4e+0gt3rBj4AakAb7ZA4WOLxzIEYC3mmSn3m2hAqrkBoJg/AKr5BaibCbpxC3sHUey9IJUuXOD77kqwuSl321iI8FtlzsdMjpiDjBnYJJPDa2Uup2hAF4ioXygQ8Z1IhYhfySYEygHWoMiNct42zk+JkGRNmg5QXgAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAl5JREFUWAnNWd1xwjAMzgiMkAdsGKObtBuUDcoGZQP6Rol9l27ACIygOvQ9I9CTSUJ+bMeORQ7uuARblj5/siVbJMnEz1rAy0pe3nlW5DxTwIUquVDX6lsyoc667whblJ1oJmxYmsOCi8tHD0wNyv2UCpgs9mkOaZhVD2kExkTx2WLIDebOpFGOFKh2Y9d9RqPB4KUCLv9ePfixi1CyZpsA2rAjsPRULj3ZlFK344ZK97CwwBk26x04so7oQRanIRJDyxxutU1u1N0sgzfb4LnaV9+wMfCWJOscUo47a2bXGuyVxvXIhfoyCHuHlPRwD8DrA6Qxugau1uxFMtd3SwxAHNthMZY9VEgNkB9h2+ikWHuNsuollkHM91oVnjQIlNEzKNR1iacgpPJZAeqQw2WRPytAnsFPQpXWHrAGr7g3Et/DZzvO9cGE/g6IkyUC9ArGoSDG5L3teguOWQzs97br7WLCu0RA5ioTiiCNbPQJ9GXIKZepc/L0YWYlYOOcxcRNRKFT52NMJxTKHuFinepQse9GcU2EHGCmoNFJkY8bZdWLazI+fXi5b3TeShp+AdumvFFGBHCQuZiEnc24T3u75hIQ54xZrMNePfOKxXaFyjjYB2yUTKZgwF4NckkUcqIAjtVrYl0dA45lsKvJcj6ZKGary9QTwnOpE1S781Y8Uud68KOfTPyeOtfMNhjX+xzu9narDaiu19xq0NS7usRzgM1uUPvtiA5RpZH2MkHWJrl0DHUDdBqjJRewfQgwE3B9CsI7tSxyJn5xQ7WDfKn/mpBFjjXu5lRiUjTS9g/3LRguAzjV8AAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAElSURBVHgBtZQxbsIwFIb/51SdOzKyFKkbPYK3ShVScwOO0Bs0PUJvUoSYwxGYYSA3gIER8vALJgpgEsDOv9h+ir7PeZZNCJRJOu/noNRMZ1ts4li/r6VOCJAK/MWWRKJF4i1wwFGVRPDIJZz/GOgQSNYdhecPhQfj2PnvQPe+d9hpBme21n9I4GoLKVrKGOu3TCH6L+u4MzU9F8mQc+6aaWJL9x2yqy12/HF8vlZg/QQP+EC/JjIZp4tzSQH/1L3ZTWdQB7dhF1wWjS1qgpvdy84TF7xR4AuvFYSAXxWEgjsFIeEXgtDwE0Eb8FLQFlxSXLS24KXgCGfORyHhVcFhQdEqJFxCFmbfEspMYcrFH/GXL1xy9ppy18CHlYIXXFL3mnrDJXvJffbVEOgPEQAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGESURBVHgB7ZY/T8JAGMafu57RxKWriSQHn6DuJuo3YAYTMXE3fgADxC+guwMOOKOfgMFNExmdpBHdTGRigNLzDi2Bg+pRSjCxv6Tt5e1zfZ+896/Af4foAV5o2uhaWcSN6LexutZwKxvuaJjpOtJjj9IWR9wQmarnubKVHg3TKVKOxcH1AMWSSQwYGRBCHDarKaKu37SBTvWBAckQRDHQDn0j4GIxBoQzbBH/IlQF3ARtQrCLuAwQQg8GW7SC+efy3piSvI6OV1LtLy3ZgQEMZti0ZxXl88StpNUQbPHcSwGEBknqbnXzKhBTjx0Lwx11Ylml8y0RKhYoPV+nyviBzH6rKKQu7L2+lE0rMEAQlDL5V+6vWGX9VOO5pkMoU8lnOklnqoBGYzjrCdQk5Sad5qqAhvOdeC6WvhFFqsDZkY3s9vpYrHbXwenlB2YlkoFbmezhqTsWe3v3EIVIBu4HybuIg+Q0TAz8QQMRfiqMmfLtiWUofG8PzHLgw0bcdPo1JGh8Av6mdamhtOo8AAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw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qi4/71NFydsGrhMnHKY9TW88N1SEG/iwx0b5eFUjjvv32UXSvwOzxkgYLbrv2qcUV4n2hTpVwvac4KJDD7QMZ9s0mFy6AFK5CgFdtCLP0iKlSBz50zfG3tJyd6ucPG4wXyUkiA/3qPxvtzwkcfbyhCIQGNIe+/IUqhfg1rASspQKI6pO1IOYa0h/EV20T53KDG4huKRFc/G9RtygAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGbSURBVHgB7Za/TsJQFMa/UxQ0LCWymtQ3KJub+gauaoxlEEf1CYA30M3ggMYoq76BoxvMujS6GRAGQYHS670oBlqLbVOCif0lN/fm3HPP+XL/A/8dshqKB3U52uytI2CI0GhLkUr6JKEP22esjrGWUebeCiZAzDR0Xi0N2yS722SSO8WWMGVCAa4EMIb0ZiFJovzmO/ATY+CCcAm8C2BojOnUMRkBTP1uETt29GK4GbSJzFUEJYCIdopaXRbtTmfmiFeVH5LfduKvOdEW1zkfteIitP0qdkCej5pZXh+mzxJiCVKXu88aJKmfhHjyrdPk+cB5rmXuM5DiJrDtWF1lqszZmXIbhYU8xlDK1LIMLOfUbz3Kbmegjwhc2qsq7xTJW181PiMqkSSSe3pJPQnoi2DQYqyn8ZkS+0D/tBLfpEyBDzwLGEL9KkIW/DL1i8jXDKS241hcjo3Ynu7aKF804RVfAh55suq9MWJ7e+nBD74E1B4M1GAgCMLXMBTwFwV4/1S4xx7bdgxJMta63Vk1IkFGwPD/wjVCLHwAjsF+xuu46iwAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGFSURBVHgB7ZjRTsIwFIb/U/DeN5BH2Sv4BMCdQRODRO9AkOidYKIs3tlHgSfQN3Bv4LWG9dipI0WZthkLw/RLlnWnPdu/tmenK1ByyKXxQX9cEzGC9DoctqWNX6s7bqRlVcH0vt+OYEkVDohYBYLowTBJKz/ihU8l5qat34cvSk7pBS7NwWSOVRU/6uIuNgADEc/n++HV2VNqW+rBiuI+NiQuQfdWjXZ2jk1b6Yf4tyieKWZpGnQEB/pUT691fRMWmJHPRJKVmi3VQ9RBHMBFoL7Rc3hxIk1bq3udPGwhMBx2JCw46o0WAoUWd/vN77A3CrI+yFs9xD/Qbx9xVUg4wmRMFaEiOOAk8O7ydKpPUzgyGXSs5uoqfCbJS+YQE3NDR18DG8YPcV6cMklRrC2TFMVWZxIvMC9eYF68wLx4gXn5X0v+ddM6n3wW+DWzTfZ6UKmauStVAAT19lXgPdDqbJzdg/ofWGD1CmP9ZO8CbleQsJjfJBs4KA7+43iJCQN4PB573gHTnnw1Lc/+agAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAChSURBVHgBVU+7DcJADH2+LEA2gO7qUJ1Y4jbglCwQJD4lPUJiAVDCBscStIiOEkqWiONEyuXi6tnPz++ZbL4/QmHmr6cNorL5oQL4q0DNAsylLXbVhKTGgTilflBsa4DWAmuwQk+C7/52dhRU4xIGskMqmHLCYwIKOJl4ilLatyw4na3mn9fzQfLFRQRlfDbOlOilMQJ+A9mVKL3OTArCvwX57D9p7qyftAAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAElSURBVHgB7Zc9DsIgGIY/SONujHs9goOz9SR6CdPROhov4U3EyU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fGGWZ4E7/Fg7m87/L4pd/MDSTZ3H67d3v7heivw6IMWK1WDn5Ow7Zt93g8uo1GY2FZlkuG0CawXC471Wr1Hk560nkUBJ7PDofDqNlsCtJAKgEZ7RCR9skAIDLWIWKlOO/C8QR/W5QNAmNQr9ff4wzsuAf7/b4P59MczhkOxoTnijOIzMBms7nlF6lAYKPeYDlmlEaA11xG7lCxcGu1WjtYKVFLMCzBOaO12+2egzd9GZDRf1KJwFK01coIZmBIepOMeFAGYAme1GsfAUR/TXoQiGLI0dBvqZkQ6EUS8DyPy80hA3AqUeNtw2w40pefwHq97lBGmGZD9XUhgPTnOXBMs+GECODFXATOQMPy0mwQ7NfFXrkvKAe4hCuVyisC6abZwub7QqYIAtvt9hFRzbG5ujr2rB1CBOThIMgAHDWcT+H4hfSbllCPY985gIk+SANI9ZVp1GewYPFdqxeYtIMJ51QiEo9idKsFDN6oJLBKCiqkUDvmUwqZ4IZUSFkqEFITCPVmqB3zBoHhHRWPQZQ+jJRkrFxA4oEKAs8VpwsTRamUZiwiHMqGUzajpNgZdtLbzJrXLcvG5A3HEizJ+cmONKF8H7BmcKJssIEFBpMdF/ZhEuOoxS2VO6hsYiLrp9k/fgAG9fi8wiaj3QAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/DataFieldsIcon.a68a24e0.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAARCAYAAAAYNhYvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB1SURBVHgBjY5BEYNQEEOT3wqog9ZSFQAOvgNwADgACXgAAQwCGISwYfknuJHLzmQnbx5wCcd5rUFEClUQ9D9bEXkg2HgxQ2jxLJyWrZQsd1oXzPbCy1+i+bOTtGm3/inN3aLfDGb921UiyS9e4ZNoSVQ23DYHx+UvYcu21tQAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACBSURBVHgB7dLRCYAgEIDhs0kcwRFqE0dog9rEldygEWyD646UQos8fe2HgzjwI0EAYYhoaByNhZYiEPBqAWl0aMYyW3uY/0DH7zVDXC3AV9geoJB2NUAqh4wUKKBWIF3B/MA3oLuAiNgugBpe9jvNpJTy0IiIAE7h+frG285LAO4Ap+uYMUmMiuQAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABRSURBVHgB7ZNLCkAhCEWvbyUt7e28dlA7MO8kogj6QKMOKCIecKBAhao6C6897Ll6VtjFBh9uI0yr64qxveoTn3gmpnkFoVR24//ggVsiZ+lk4qRWLbkPrZEAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAVCAYAAABCIB6VAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABHSURBVHgB7ZShDQAgDAT7LIJjI6ZkIxyTQBAkyBdAQvqnKtoTTfswglRaX3XNEcxMsEtILPFDMfbjP8V8og9XwTQpKyT2Kh45VAwoWqPZLwAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJOSURBVHgB7ZftcdpAEIbfXeRfIQKNG1AqMB3YJdABuIJABSEVgCswdOBU4LgDu4JQQDwI2T/FXfaI5QHrThKMJI9n/M4wnLT38WjvbvcO+NQHE+EIrVarrvz1FHt9Bs6ll1Ceuy/mSH73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iABlhKKIS60hcEjd5eeoTJOG4v9tFtoGqNxhRlB/qEXGI0j66T/sIK4DIbXWqXTcpVJ1XxLlEVRQtKqXeLCq4NRrT/rQvGm92HSibh1sMYt43/clfCvwQB63UAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEBSURBVHgB7ZM/D8FAGIff0tQiJgamdpH4AAwmfANL5xslfBqJuelgsYhPYGeVSBg0Zgsb0Tt3TUldW/13tv6Sy/WuvedJ37sDyBMRCTKmuTgbIJHeQ8Z9a6hZQgUuHLlDK0hSgJSZ7q5eOIuqPAtrdXlSvd/JkCK2bRu0QwQwzPY34CW0194Tif+AlYVCEXuetCowps0bQvDKOy5CQjgry+ZydzavUys5jWVL54Bg86hro1QCbkPBJ8HYnA8aiF8XS8DDeUm7qpjdehkFrY08pmHwT2hZDroW+l76J/ynQAQ8VCAKHigQCfcJRMNZvm+yYLhfIBgeT5ABHi3ICM8TKy+Ze5E7dJ2GfAAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOhSURBVHgB7ZxNUhNBFMffm4nsKEMJrnMDQwluDScQbiAnALcgOhToVjiB8QTgCYhbQQk3iFtBkwMw3b4XopWiSpmZzrzuOO9XRWUohnz8qqc//q8nAIqiKIqi+AEhJ9unly2L2ICAmYnjTrI41wMBMgtMzvuN1Nr3YG0LwmeQpunK2ycPu1AyUdYTr9M0mRJ5TD2O45Otz9+bUDKZBSLiM5guRCRmFkjUYfooXWIegdNKqRKrIJApTWJVBDKlSKySQGbiEqsmkJmoxCoKZCYmsaoCmYlIrLJAxlli1QUyThJV4A2FJQYr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Ars4c6QAAAARnQU1BAACxjwv8YQUAAAEESURBVHgB7dY9DoIwFMDx16rMHgEGnb2B8RTGTY/gCcSbuOrCEfAGrsYFjuABbLE1hsFYXtukD036HyCBDr8E+gHw701O1Wx6rPK0qFLTmK53WBwcY4wXwPkuefCLaYx6V/qinEGq9H0fd43xRfmAbPNChQTpnFGhQTonFAVIZ42iAumsUJQgHYoaQuik3H8+SsRorm419AG6LbPcZTz1J0OLIKwIwoogrAjC+jmQcetQh/k1a9rjKllG0EDAWQ54CYwWZfxk11VWcyEX0HzflUPV+Q/1gUJ/amqU1SyjRFlPeyqU0zpEgXJeGC1R99fVA+61UrcoQ4LJTcPYQTRyC7EYcU9VgHCmH5r2JgAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEESURBVHgB7dbBDYIwFIDh18oAjsAIbmDcRG+GeCGeiTWeCRcPHt3AEXADV2AEF7BPmmiMh9K+Jn1o0v8AJLzDlwClAP9eoZrZpqrVWjW5bWbonisJxITGCwixyzTebDMTjW0oig4CyF+X06GZUBQZ5FsoKhrIFIKKCjJRUdFBJgqKBWTyRbGBTD6oDGKHuIdvVL9Owbw/dTAG6HjYKso86yPzKYFcJZCrBHKVQK5+DmT9dRRVvZSf7SpbVpCeyGu/oW8FM8r6yE6q7B5SLNDyV47V4Ds0Bsr5UnOjvL4yTpT3Z8+FIq1DHCjywuiJuptDCDxopX6jrANar1DgWWhdQirF3BNHCnK76hDTAgAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEWSURBVHgBvdYvT8NAGAbw53nbD4AkqFkchgTJJA6DB132IfgEywS+aNiQSCoXIGEOWwwaSUJ2ty5Zmv25rXfLe31ETd/Lr7lc33uBlsKQ4tOr/olMk2cL5m+j3l3I2sS3cI7QpK8kD0mcHx1ffP98vUx814tPUY0AB/UXCksEJG0qcCG0cjMeZgUCwr2QUZYjMGwD2QppI04oBrIBxUJWoJhIDbmQ6lVZPQooxAgHPLvsd0ySfq4i2mEuf8AvWshi6+6rrTNrW2fLqkMVUIiR/8HSYdjECF6Ph7cPUMja8Y6HOX7YONiWFqSP7WiquljDNaGHNc4MWpjXcOLCpkT346lXwDNeM8P7YzaxIl271EVSYzsIyAwlkpqccf38ngAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACDSURBVHgBxdK7DYAgEAbgOyZwFEZxBDdwBHUD3cQNdAMdxYKEd/A0FBY+sOJvgJAPjhwANwkhFFrrElJzAGPMQigIIfgvIKVs8wM8gLV2opEzxkbn3PAGvPcbKqV6RKwhPSvG0iZacMIzndR93XROYl/ON1GpDaQmL0z6EVdI/aqe9ndCdKKbgVDWKAAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/OnboardingClose.3aba7009.svg\";","module.exports = __webpack_public_path__ + \"static/media/Person.cfa391da.svg\";","module.exports = __webpack_public_path__ + \"static/media/add.59569533.svg\";","module.exports = __webpack_public_path__ + \"static/media/Download.d6249546.svg\";","module.exports = __webpack_public_path__ + \"static/media/esvLogo.8f95dde3.svg\";","module.exports = __webpack_public_path__ + \"static/media/addFieldIcon.c224dda2.svg\";","import { createContext } from \"react\";\n\nexport const AppContext = createContext(); // eslint-disable-line import/prefer-default-export\n","var _style, _circle, _circle2, _circle3;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgLoadingDots = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _style || (_style = /*#__PURE__*/React.createElement(\"style\", null, \".spinner_S1WN{animation:spinner_MGfb .8s linear infinite;animation-delay:-.8s}.spinner_Km9P{animation-delay:-.65s}.spinner_JApP{animation-delay:-.5s}@keyframes spinner_MGfb{93.75%,100%{opacity:.2}}\")), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n className: \"spinner_S1WN\",\n cx: 4,\n cy: 12,\n r: 3\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n className: \"spinner_S1WN spinner_Km9P\",\n cx: 12,\n cy: 12,\n r: 3\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n className: \"spinner_S1WN spinner_JApP\",\n cx: 20,\n cy: 12,\n r: 3\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgLoadingDots, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/LoadingDots.549c07de.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport \"./StyledButton.css\";\nimport { Button } from \"antd\";\nimport { ReactComponent as LoadingDots } from \"../../../assets/images/common/LoadingDots.svg\";\n\nexport default function StyledButton({ // same props as AntD Button\n block,\n className = \"\",\n danger,\n disabled,\n ghost, // use ghost = true and type = \"primary\" for ESV's secondary button styling\n href,\n htmlType,\n icon,\n loading,\n loadingDots,\n shape,\n size,\n target,\n type = \"primary\", // primary, default, dashed, text, link\n onClick,\n children,\n ...restProps\n}) {\n return (\n \n {children}\n {loadingDots && }\n \n );\n}\n","export const API_URL = process.env.REACT_APP_API_URL;\nexport const API_URL_AUTH = process.env.REACT_APP_API_URL_AUTH;\nexport const AES_128_BIT_KEY = process.env.REACT_APP_AES_128_BIT_KEY;\nexport const ESV_DETAILS = process.env.REACT_APP_ESV_DETAILS;\n\nexport const ESV_PUB_BUCKET = process.env.REACT_APP_S3_ESV_PUB_BUCKET;\nexport const ESV_PRIV_BUCKET = process.env.REACT_APP_S3_ESV_PRIV_BUCKET;\nexport const AWS_BASE_PATH = process.env.REACT_APP_S3_BASE_PATH;\nexport const AWS_REGION = process.env.REACT_APP_S3_REGION;\n\nexport const ZebraPinterApiKey = process.env.REACT_APP_ZEBRA_PRINTER_API_KEY;\nexport const ZebraPinterTenant = process.env.REACT_APP_ZEBRA_PRINTER_TENANT;\n","/* eslint-disable import/prefer-default-export */\nexport const hardcodedPermissions = {\n profile: [\n {\n title: \"Add Member\",\n description: \"Grants ability to add members.\",\n codename: \"add_member\",\n authorized_roles: [\"admin\"],\n },\n {\n title: \"Delete Member\",\n description: \"Grants ability to delete members.\",\n codename: \"delete_member\",\n authorized_roles: [\"admin\"],\n },\n {\n title: \"Change Role\",\n description: \"Grants ability to modify member roles.\",\n codename: \"change_member_role\",\n authorized_roles: [\"admin\"],\n },\n {\n title: \"View Member Status\",\n description: \"Grants access to view member status.\",\n codename: \"view_member_status\",\n authorized_roles: [\"admin\"],\n },\n ],\n sample_submission: [\n {\n title: \"Share Submission\",\n description: \"Grants ability to share sample submissions with third parties.\",\n codename: \"share\",\n authorized_roles: [\"admin\", \"editor\"],\n },\n {\n title: \"Add Test\",\n description: \"Grants ability to add tests.\",\n codename: \"add_test\",\n authorized_roles: [\"admin\", \"support\", \"editor\"],\n },\n ],\n onboarding: [\n {\n title: \"Add Company\",\n description: \"Grants ability to add companies.\",\n codename: \"add_company\",\n authorized_roles: [\"admin\", \"support\"],\n },\n {\n title: \"Onboard Product\",\n description: \"Grants access to onboard product information for companies.\",\n codename: \"onboard_product\",\n authorized_roles: [\"admin\"],\n },\n {\n title: \"Onboard Environment\",\n description: \"Grants access to onboard environment information for companies.\",\n codename: \"onboard_environment\",\n authorized_roles: [\"admin\"],\n },\n ],\n spec_manager: [\n {\n title: \"Add Spec\",\n description: \"Grants ability to add specifications.\",\n codename: \"add_spec\",\n authorized_roles: [\"admin\", \"editor\"],\n },\n ],\n product: [\n {\n title: \"Edit Report Table Titles\",\n description: \"Grants ability to edit report table headers.\",\n codename: \"report_table_header_edit\",\n authorized_roles: [\"admin\", \"editor\"],\n },\n {\n title: \"Request Retest\",\n description: \"Grants ability to request a product retest.\",\n codename: \"request_product_retest\",\n authorized_roles: [\"support\"],\n },\n ],\n};\n","import axios from \"axios\";\n\nimport { version } from \"../../package.json\";\nimport { API_URL, ESV_DETAILS } from \"./Constant\";\nimport { hardcodedPermissions } from \"./Permissions\";\n\nconst ESV_STORAGE_KEY = \"user_details\";\n\nconst checkIfRememberMe = () => !sessionStorage.getItem(ESV_STORAGE_KEY);\n\n// Check if session or local storage is available (https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API)\n// Safari's strict privacy settings, which can block access to localStorage in certain contexts\nfunction storageAvailable(type) {\n let storage;\n try {\n storage = window[type]; // Access the actual storage object\n const x = \"__storage_test__\";\n storage.setItem(x, x);\n storage.removeItem(x);\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Get user info stored in local or session storage.\n * Checks session storage first.\n * @returns {Object} user info object if found, null otherwise\n */\nexport const getUserCredentials = () => {\n let userInfoAsString = sessionStorage.getItem(ESV_STORAGE_KEY);\n if (!userInfoAsString) {\n userInfoAsString = localStorage.getItem(ESV_STORAGE_KEY);\n }\n const userInfo = JSON.parse(userInfoAsString) || null;\n\n return userInfo;\n};\n\n/**\n * Store user info in session or local storage.\n * If neither one is specified, store in session storage if user_details exist there, otherwise store in local storage.\n * @param {String} _storageType \"local\" or \"session\"\n * @param {Object} data user info\n * @param {Object} appContext app-level state\n */\nexport const setUserCredentials = (_storageType, data, appContext) => {\n let storageType = _storageType;\n if (!storageType) {\n storageType = checkIfRememberMe() ? \"local\" : \"session\";\n }\n\n const storage = (storageType === \"local\" && storageAvailable(localStorage)) ? localStorage : sessionStorage;\n\n /** Update user info in app-level state */\n const { setUserTitle } = appContext;\n setUserTitle(data.user_title);\n storage.setItem(ESV_STORAGE_KEY, JSON.stringify(data));\n};\n\n/**\n * Check if user is logged in (checks local and session storage)\n * @returns {Boolean} true if user is logged in, false if not\n */\nexport const isUser = () => {\n const user_details = getUserCredentials();\n return !!(user_details && user_details.uid);\n};\n\n/**\n * Returns fields to be added to every api payload\n * @returns {Object} returns { user_payload, company_name, company_domain } if user is not null\n */\nexport const getMandatoryUserData = () => {\n const user = getUserCredentials();\n return user === null ? {} : { user_payload: user.user_payload, company_name: user.company_name, company_domain: user.company_domain };\n};\n\n/**\n * Sign out user by clearing storage\n * @param {Object} history react-router history object\n * @param {Object} appContext app-level state\n */\nexport const signOut = (history, appContext) => {\n const userType = getUserCredentials()?.uid;\n if (checkIfRememberMe()) {\n localStorage.removeItem(ESV_STORAGE_KEY); // needed to detect signOut in handleLocalStorageChange\n sessionStorage.removeItem(ESV_DETAILS); // needed to clear esv_details\n localStorage.clear();\n } else {\n sessionStorage.clear();\n }\n /** Clear user title in state */\n const { setUserTitle } = appContext;\n setUserTitle(\"\");\n\n if (userType === \"support\") {\n history.replace(\"/login/support\");\n } else {\n history.replace(\"/login\");\n }\n};\n\n/**\n * When local storage is updated, sync changes across browsing contexts\n * @param {StorageEvent} event = {key, oldValue, newValue} key in local storage (only concerned w/ user_details), oldValue of key, newValue of key\n * @param {Object} history react-router history object\n * @param {Object} appContext app-level state\n */\nexport const handleLocalStorageChange = ({ key, oldValue, newValue }, history, appContext) => {\n if (key === ESV_STORAGE_KEY && checkIfRememberMe()) {\n if (!newValue) { // other tab was signed out, sign out here\n signOut(history, appContext);\n } else if (!oldValue // other tab was signed in, reload page to sign in here\n || JSON.parse(oldValue).company_name !== JSON.parse(newValue).company_name // other tab switched companies, refresh to switch here\n || JSON.parse(oldValue).user_title !== JSON.parse(newValue).user_title) { // user role updated in other tab, refresh to update here\n /** Reload the window */\n window.location.reload(false);\n }\n }\n};\n\n/**\n * Check if user exists, return user info if yes\n * @param {String} email\n * @return {Object} { success, user_name, phone_number }\n */\nexport const checkUser = async (email, companyName) => {\n try {\n const params = { email, company_name: companyName };\n if (isUser()) {\n params.disableInterceptor = true;\n }\n const resp = await axios.get(`${API_URL}/checkuser/`, {\n params,\n });\n const {\n status, user_name, user_contact, user_title, firebase_exist_status,\n } = resp.data.result;\n const result = {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n status,\n user_name,\n phone_number: user_contact,\n user_title,\n firebase_exist_status,\n };\n\n return result;\n } catch (e) {\n const message = e.response?.data?.message || \"Something went wrong.\";\n return { success: false, message, userNotFound: message === \"User not found\" };\n }\n};\n\n/**\n * When page is loaded, call the check user api and update user_title\n * @param {Object} appContext app-level state\n */\nexport const handlePageLoad = async (appContext) => {\n if (isUser()) {\n const userInfo = getUserCredentials();\n if (userInfo.uid !== \"support\") { // user_title will always be admin if logged in through support login\n const { success, user_title } = await checkUser(userInfo.user_email, userInfo.company_name);\n if (success && user_title !== userInfo.user_title) {\n setUserCredentials(null, { ...userInfo, user_title }, appContext);\n }\n }\n }\n};\n\n/**\n * Get list of tabs\n * @returns Array of tabs\n */\nexport const getTabsList = () => {\n const config = sessionStorage.getItem(ESV_DETAILS);\n if (!config) return [];\n const features = JSON.parse(config)?.tabsList;\n return features;\n};\n\n/**\n * Get list of features\n * @returns Array of features\n */\nexport const getFeatures = () => {\n const config = sessionStorage.getItem(ESV_DETAILS);\n if (!config) return [];\n const features = JSON.parse(config)?.featuresList;\n return features;\n};\n\n/**\n * Checks if company has a specific feature.\n * @param {string} feature name of the feature\n * @returns {boolean} if feature exists returns true otherwise false\n */\nexport const hasFeature = (feature) => {\n const features = getFeatures();\n return features.indexOf(feature) !== -1;\n};\n\n/**\n * Checks if the user has the specified permission(s).\n * @param {string|string[]} codename - A single permission codename as a string or an array of code-names\n * @returns {boolean} - Returns true if the user has the specified permission(s), false otherwise.\n */\nexport const hasPermission = (codename) => {\n const isString = typeof codename === \"string\";\n const permissions = JSON.parse(sessionStorage.getItem(\"esv_details\"))?.permissions;\n if (isString) {\n return permissions?.[codename];\n }\n return codename.filter((itemCodeName) => permissions?.[itemCodeName]).length > 0;\n};\n\n/**\n * Given a role and a user id, returns an object with all the permission code-names the role/uid has access to.\n * The object will have a property with the key \"no_permission\" if the role/uid has no permission.\n * @param {string} role - The role to check permissions for. (e.g. \"admin\")\n * @param {string} uid - The user id to check permissions for. (e.g. \"support\")\n * @returns {Object} An object with the permission code-names as keys.\n */\nexport const getCodeNamesForRole = (role, uid) => {\n const permissions = hardcodedPermissions;\n const codeNames = { no_permission: true };\n const rolesToCheck = [role.toLowerCase(), uid?.toLowerCase()];\n Object.values(permissions).forEach((section) => {\n section.forEach((permission) => {\n if (rolesToCheck.filter((roleString) => permission.authorized_roles.includes(roleString)).length > 0) {\n codeNames[permission.codename] = true;\n }\n });\n });\n return codeNames;\n};\n\n/**\n * Get app version\n * @returns {string} app version\n */\nexport const getAppVersion = () => version;\n","import axios from \"axios\";\nimport { keys, merge, toPairs } from \"lodash\";\nimport moment from \"moment\";\n\nimport { getUserCredentials } from \"./common\";\nimport {\n API_URL, AWS_BASE_PATH, AWS_REGION, ESV_PRIV_BUCKET, ESV_PUB_BUCKET,\n} from \"./Constant\";\n\nexport const getViewAsPerStatusCode = (error) => {\n try {\n if (\n error.request.status === 404\n || (error.request.status >= 500 && error.request.status <= 599)\n ) {\n window.location.pathname = \"/maintenance\";\n }\n } catch (e) {\n window.location.pathname = \"/maintenance\";\n }\n};\n\nexport const formatDateForDisplay = (date) => moment(new Date(date)).format(\"YYYY/MM/DD\");\n\nexport const getValueOfObj = (objName, ...fields) => {\n let objValue = { ...objName };\n if (objValue !== undefined) {\n for (let i = 0; i < fields.length; i++) {\n if (objValue[fields[i]] !== undefined) {\n objValue = objValue[fields[i]];\n } else {\n return undefined;\n }\n }\n return objValue;\n }\n return undefined;\n};\n\nexport const isNonEmptyField = (arr, field) => (arr !== undefined) && (arr[field] !== undefined);\n\n/**\n * Gets filename from path and returns the name and extension.\n * @param {String} path file path/filename\n * @returns {object} { name, ext }\n */\nexport const getFileNameAndExtensionFromPath = (path) => {\n const basename = path.split(\"/\").pop(); // extract file name from full path\n const pos = basename.lastIndexOf(\".\"); // get last position of \".\"\n\n if (basename === \"\" || pos < 1) { // if file name is empty or \".\" not found (-1) or comes first (0)\n return { name: basename, ext: \"\" };\n }\n\n return { name: basename.slice(0, pos), ext: basename.slice(pos) }; // extract filename and extension (with \".\")\n};\n\n/**\n * Remove timestamp from filename (preserves extension). Filename must in the form of \"something_TIMESTAMP.ext\" (.ext is optional).\n * @param {String} path file path/filename\n * @returns {String} filename with timestamp removed\n */\nexport const getFileNameWithTimestampRemoved = (path) => {\n const { name, ext } = getFileNameAndExtensionFromPath(path);\n const nameArr = name.split(\"_\");\n nameArr.pop();\n return `${nameArr.join(\"_\")}${ext}`;\n};\n\n/**\n * Fetch a presigned S3 URL for GET and POST\n * @param {\"get\" | \"post\" | \"delete\"} action get/post/delete actions\n * @param {object} aws_s3_urls Array of objects with keys bucket, filepath, region, content_type\n * */\nexport const getPresignedURL = async (action = \"get\", aws_s3_urls) => {\n try {\n const response = await axios.post(\n `${API_URL}/s3_presigned_url/`,\n {\n action,\n aws_s3_urls,\n },\n );\n const data = await response.data;\n return { success: true, ...data };\n } catch (error) {\n return { success: false, error };\n }\n};\n\nconst MAX_S3_RETRIES = 3;\nconst S3_RETRY_DELAY = 1000;\n\n/**\n * Pause execution for given time\n * @param {number} timeout timeout\n */\nconst pause = (timeout) => new Promise((resolve) => {\n setTimeout(resolve, timeout);\n});\n\n/**\n * Get file from AWS S3 using file url\n * @param {string} filePath file path\n * @param {string} fileUrl file url\n * @returns key-value pair of file path as key and presigned file url as value\n */\nexport const getFiles = async (filePath, fileUrl) => {\n let attempts = 0;\n while (attempts < MAX_S3_RETRIES) {\n try {\n // eslint-disable-next-line no-await-in-loop\n const response = await axios.get(fileUrl, {\n responseType: \"blob\",\n headers: {\n \"Cache-Control\": \"no-cache\",\n },\n });\n // eslint-disable-next-line no-await-in-loop\n const blob = await response.data;\n const fileBlob = new Blob([blob], { type: blob.type });\n return { [filePath]: fileBlob };\n } catch (e) {\n attempts++;\n if (attempts >= MAX_S3_RETRIES || e?.response?.status !== 503) {\n // if no more attempts or the current error is not 503 (SlowDown), then return the error\n // const errorCode = e?.response?.status === 404 ? \"NoSuchKey\" : \"\";\n return {};\n }\n // eslint-disable-next-line no-await-in-loop\n await pause(S3_RETRY_DELAY);\n }\n }\n return {};\n};\n\n/**\n * Fetch file from s3 using presigned url\n * @param {Array} filePaths file paths as array\n * @param {\"private\" | \"public\"} aws_bucket private bucket/public bucket\n * @returns Key-value pair of path and respective presigned url\n */\nexport const getFileFromS3WithPresigned = async (filePaths, aws_bucket = \"private\") => {\n const bucket = aws_bucket === \"private\" ? ESV_PRIV_BUCKET : ESV_PUB_BUCKET;\n const urls = filePaths.map((path) => ({\n bucket,\n path,\n region: AWS_REGION,\n }));\n const presignedUrls = await getPresignedURL(\"get\", urls);\n if (presignedUrls.success) {\n const getFilePromise = keys(presignedUrls.result).map((key) => getFiles(key, presignedUrls.result[key]));\n const fileResults = await Promise.all(getFilePromise);\n return merge(...fileResults);\n }\n return null;\n};\n\n/**\n * Download fetched file from s3 using presigned url\n * @param {Array} filePaths file paths as array\n * @param {\"private\" | \"public\"} aws_bucket private bucket/public bucket\n * @param {string} fileNames file names array for each file to download\n */\nexport const downloadFileFromS3WithPresigned = async (filePaths, bucket = \"private\", fileNames = []) => {\n const fileBlobObjs = await getFileFromS3WithPresigned(filePaths, bucket);\n if (fileBlobObjs) {\n keys(fileBlobObjs).forEach((filePath, index) => {\n const blob = fileBlobObjs[filePath];\n const url = window.URL.createObjectURL(blob);\n const downloadFilename = fileNames.length > 0 && fileNames[index] ? fileNames[index] : filePath;\n if (url) {\n const a = document.createElement(\"a\");\n a.href = url;\n a.download = downloadFilename;\n a.click();\n a.remove();\n }\n });\n return true;\n }\n return false;\n};\n\n/**\n * Takes file information and generates aws s3 file path\n * @param {*} fileInfo file information\n * @returns file path\n */\nexport const getFilePath = (fileInfo) => {\n const {\n folderPath, fileName, // folderPath ex: \"ProductTemplate/Template/\"\n } = fileInfo;\n const user = getUserCredentials();\n const sanitizedFileName = fileName.replace(/\\s|\\//g, \"_\");\n const path = `${AWS_BASE_PATH}media/${user.company_domain}/${user.company_name}/${folderPath}${sanitizedFileName}`;\n return path;\n};\n\n/**\n * Calls api to upload file using presigned url\n * @param {*} presignedData presigned url with file data\n * @param {*} file file\n * @returns Object having success status, file path, file type\n */\nexport const postFile = async (presignedData, file) => {\n let attempts = 0;\n while (attempts < MAX_S3_RETRIES) {\n try {\n // eslint-disable-next-line no-await-in-loop\n const { url, fields } = presignedData;\n // Create FormData\n const formData = new FormData();\n toPairs(fields).forEach(([fieldKey, fieldValue]) => {\n if (fieldKey !== \"Content-Type\") {\n formData.append(fieldKey, fieldValue);\n }\n });\n // Add the file\n formData.append(\"file\", file);\n // POST to S3\n // eslint-disable-next-line no-await-in-loop\n await axios.post(url, formData, {\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n });\n return {\n [fields.key]: { success: true, path: fields.key, type: file.type ? file.type : \"\" },\n };\n } catch (e) {\n attempts++;\n if (attempts >= MAX_S3_RETRIES || e?.response?.status !== 503) {\n // if no more attempts or the current error is not 503 (SlowDown), then return the error\n // const errorCode = e?.response?.status === 404 ? \"NoSuchKey\" : \"\";\n return {\n [presignedData.fields.key]: { path: \"\", type: file.type },\n };\n }\n // eslint-disable-next-line no-await-in-loop\n await pause(S3_RETRY_DELAY);\n }\n }\n return {\n [presignedData.fields.key]: { path: \"\", type: file.type },\n };\n};\n\n/**\n * Calls presigned api to generate presigned url for uploading files\n * @param {*} fileInfoList Array having each file information\n * @param {\"private\" | \"public\"} aws_bucket public bucket/private bucket\n * @returns Object with key value pairs of file path as key and uploaded file information as value\n */\nexport const uploadFileToS3WithPresigned = async (fileInfoList, aws_bucket = \"private\") => {\n const bucket = aws_bucket === \"private\" ? ESV_PRIV_BUCKET : ESV_PUB_BUCKET;\n\n const pathObj = {};\n const fileObj = {};\n const urls = fileInfoList.reduce((acc, fileInfo) => {\n const {\n file, type,\n } = fileInfo;\n const key = getFilePath(fileInfo);\n if (!file) {\n pathObj[key] = { path: \"\", type };\n } else {\n fileObj[key] = file;\n acc.push({\n bucket,\n path: key,\n region: AWS_REGION,\n content_type: file.type,\n });\n }\n return acc;\n }, []);\n const presignedUrls = await getPresignedURL(\"post\", urls);\n if (presignedUrls.success) {\n const postFilesResults = await Promise.all(urls.map((url) => postFile(presignedUrls.result[url.path], fileObj[url.path])));\n return merge(...postFilesResults, pathObj);\n }\n return null;\n};\n\n/**\n * Delete file from s3 using presigned url\n * @param {Array} filePaths file paths as array\n * @param {\"private\" | \"public\"} aws_bucket private bucket/public bucket\n */\nexport const deleteFileFromS3WithPresigned = async (filePaths, aws_bucket = \"private\") => {\n const bucket = aws_bucket === \"private\" ? ESV_PRIV_BUCKET : ESV_PUB_BUCKET;\n const urls = filePaths.map((path) => ({\n bucket,\n path,\n region: AWS_REGION,\n }));\n const presignedUrls = await getPresignedURL(\"delete\", urls);\n return presignedUrls.success;\n};\n\n/**\n * Fetch file from given S3 bucket\n * @param {String} filePath path of file in aws\n * @param {S3} s3 one of the s3 objects initialized in aws.js\n * @returns {Promise} resolves to a Blob if success, else \"\" if there's an error\n */\nexport const getFileFromS3 = (filePath, s3) => new Promise((resolve) => {\n s3.getObject(\n {\n Bucket: s3.config.bucket,\n Key: filePath,\n ResponseCacheControl: \"no-store\",\n },\n (error, data) => {\n if (error != null) {\n return resolve(\"\");\n }\n const fileBlob = new Blob([data.Body], { type: data.ContentType ? data.ContentType : \"\" });\n if (fileBlob) {\n return resolve(fileBlob);\n }\n return resolve(\"\");\n },\n );\n});\n\n/**\n * Fetch file from given S3 bucket, then downloads file.\n * @param {String} filePath path of file in aws\n * @param {S3} s3 one of the s3 objects initialized in aws.js\n * @param {String} fileName name of the downloaded file (what the user sees). If not provided, filePath is used.\n * @returns {Boolean} true if successful, else false\n */\nexport const downloadFileFromS3 = async (filePath, s3, fileName = \"\") => {\n const fileBlob = await getFileFromS3(filePath, s3);\n if (fileBlob) {\n const url = window.URL.createObjectURL(fileBlob);\n if (url) {\n const a = document.createElement(\"a\");\n a.href = url;\n a.download = fileName || filePath;\n a.click();\n return true;\n }\n return false;\n }\n return false;\n};\n\n/**\n * Upload file to given S3 bucket. Sanitizes file name, constructs file key, and determines part size before uploading.\n * @param {Object} fileInfo { file: File, folderPath: String, fileName: String, type: String }\n * @param {S3} s3\n * @returns {Promise} resolves { path, type } if successful else \"\"\n */\nexport const uploadFileToS3 = (fileInfo, s3) => new Promise((resolve) => {\n const {\n file, folderPath, fileName, type, // folderPath ex: \"ProductTemplate/Template/\"\n } = fileInfo;\n if (!file) {\n return resolve({ path: \"\", type });\n }\n\n const sizeInMB = file.size / (1024 * 1024);\n const partSizeInMB = Math.max(5, Math.ceil(sizeInMB));\n\n const user = getUserCredentials();\n const sanitizedFileName = fileName.replace(/\\s|\\//g, \"_\");\n const key = `${AWS_BASE_PATH}media/${user.company_domain}/${user.company_name}/${folderPath}${sanitizedFileName}`;\n\n s3.upload(\n {\n Bucket: s3.config.bucket,\n Key: key,\n Body: file,\n ContentType: file.type,\n // ACL: s3.config.ACL, // ACL (access control list) defaults to that of the bucket\n },\n { partSize: partSizeInMB * 1024 * 1024 },\n (err, success) => {\n if (err) return resolve(\"\");\n const location = success.Key;\n return resolve({ path: location, type: file.type ? file.type : \"\" });\n },\n );\n return \"\";\n});\n\nexport const deleteFileFromS3 = async (file, s3) => {\n s3.deleteObject(\n { Bucket: s3.config.bucket, Key: file },\n (err) => {\n if (err) {\n return false;\n } return true;\n },\n );\n};\n","import axios from \"axios\";\nimport { getUserCredentials, setUserCredentials } from \"../utils/common\";\nimport { API_URL } from \"../utils/Constant\";\nimport { getViewAsPerStatusCode } from \"../utils/helpers\";\n\n/**\n * Switch the current company, set local or session storage, and reload the page\n * @param {String} selectedCompany one of the companies under the current domain\n * @param {String} userTitle user's role for selectedCompany\n * @param {Object} appContext app-level state\n */\nexport const switchCompany = async (selectedCompany, userTitle, appContext) => {\n let user_data;\n try {\n user_data = getUserCredentials();\n setUserCredentials(null, {\n ...user_data,\n company_name: selectedCompany,\n user_title: user_data.uid === \"support\" ? \"Admin\" : userTitle,\n }, appContext);\n } catch (error) {\n return false;\n }\n\n /* Update last logged in company if not support */\n if (user_data.uid !== \"support\") {\n try {\n await axios.post(`${API_URL}/switchcompany/`);\n } catch (e) {\n return true;\n }\n }\n\n return true;\n};\n\n/**\n * Get company list\n * @returns {Object} { success, message, company_list }\n */\nexport const getCompanyList = async () => {\n try {\n const resp = await axios.get(`${API_URL}/useraccounts/`);\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n company_list: resp.data.result,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Retrieves the tabs list for a specific company (current logged in users company).\n * @returns {Object} Object containing the tabs list.\n */\nexport const getTabsForCompany = async () => {\n try {\n const { company_name } = getUserCredentials();\n const resp = await axios.get(`${API_URL}/useraccounts/`);\n const { result } = resp.data;\n const companyData = result.find((item) => item.company_name === company_name);\n const tabsObj = companyData.tabs;\n const featuresObj = companyData.features;\n const tabsList = Object.keys(tabsObj).filter((tab) => tabsObj[tab]);\n const featuresList = Object.keys(featuresObj).filter((key) => featuresObj[key]);\n return { tabsList, featuresList };\n } catch (e) {\n getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n","export default __webpack_public_path__ + \"static/media/Onboarding_Art_Product.1646a036.png\";","import React, { useContext, useEffect, useState } from \"react\";\n\nimport { Flex, Row } from \"antd\";\nimport { useHistory } from \"react-router-dom/cjs/react-router-dom.min\";\nimport { toast } from \"react-toastify\";\n\nimport { AppContext } from \"../../AppContext\";\nimport StyledButton from \"../Common/UIComponents/StyledButton\";\n\nimport { switchCompany } from \"../../actions/switchCompany\";\n\nimport arrow from \"../../assets/images/Arrow 7.png\";\n// import { getUserCredentials } from \"../../utils/common\";\nimport Onboarding_Art_Product from \"../../assets/images/onboarding/Onboarding_Art_Product.png\";\n\nexport default function AddCompanySuccessLandingPage({ newCompanyName, user_Title, currCompanyName }) {\n const [count, setCount] = useState(5);\n const appContext = useContext(AppContext);\n const [, setIsSwitching] = useState(false);\n // const { newCompanyName } = getUserCredentials();\n const [selectedCompany, setSelectedCompany] = useState(currCompanyName);\n const history = useHistory();\n\n const handleSwitchCompany = async (companyName, userTitle) => {\n setIsSwitching(true);\n const prevCompany = selectedCompany;\n setSelectedCompany(companyName);\n const success = await switchCompany(companyName, userTitle, appContext);\n if (success) {\n /** Reload the window */\n history.push(\"/sample-submission\");\n window.location.reload(false);\n } else {\n setSelectedCompany(prevCompany);\n toast.error(\"Unable to switch accounts\");\n }\n setIsSwitching(false);\n };\n\n useEffect(() => {\n // If count is 0, Redirect to sample submission page and make reload.\n if (count === 0) { handleSwitchCompany(newCompanyName, user_Title); }\n\n // Set up a timer to update the count every second\n const timer = setInterval(() => {\n setCount((prevCount) => prevCount - 1);\n }, 1000);\n\n // Clear timer when component unmounts or when count changes\n return () => clearInterval(timer);\n }, [count, history]); // eslint-disable-line\n\n return (\n \n \n
\n

\n Successfully added company.\n

\n

\n {`Redirecting you to ${newCompanyName} in ${count}s.`}\n

\n\n handleSwitchCompany(newCompanyName, user_Title)}>\n New company\n \"\"\n \n
\n
\n \"\"\n
\n
\n
\n );\n}\n","import React, { Component } from \"react\";\nimport \"./NoResultsGIF.css\";\n\nclass NoResults extends Component {\n render() {\n const { image, message, className } = this.props;\n return (\n \n \n \n {message}\n \n \n );\n }\n}\n\nexport default NoResults;\n","import React from \"react\";\nimport \"./FormLayout.css\";\n\nexport default function FormLayout({ title, className, children }) {\n return (\n
\n {/*
\n {title}\n
*/}\n
\n {children}\n
\n
\n\n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgGbLogo = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 208,\n height: 53,\n viewBox: \"0 0 208 53\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_12_288)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M26.5 50C39.4787 50 50 39.4787 50 26.5C50 13.5213 39.4787 3 26.5 3C13.5213 3 3 13.5213 3 26.5C3 39.4787 13.5213 50 26.5 50ZM26.5 53C41.1355 53 53 41.1355 53 26.5C53 11.8645 41.1355 0 26.5 0C11.8645 0 0 11.8645 0 26.5C0 41.1355 11.8645 53 26.5 53ZM24.3076 20.8667H19.4565V24.1055H24.1133V28.5044C23.9307 28.6978 23.6729 28.8965 23.3398 29.1006C23.0068 29.3047 22.561 29.4819 22.0024 29.6323C21.4546 29.772 20.7617 29.8418 19.9238 29.8418C19 29.8418 18.1729 29.6753 17.4424 29.3423C16.7227 28.9985 16.1157 28.499 15.6216 27.8438C15.1382 27.1777 14.7676 26.3613 14.5098 25.3945C14.252 24.417 14.123 23.2998 14.123 22.043V20.4639C14.123 19.2178 14.2358 18.1113 14.4614 17.1445C14.6978 16.1777 15.0415 15.3667 15.4927 14.7114C15.9438 14.0562 16.5024 13.5566 17.1685 13.2129C17.8345 12.8691 18.6025 12.6973 19.4727 12.6973C20.5039 12.6973 21.3418 12.8745 21.9863 13.229C22.6416 13.5728 23.1465 14.0562 23.501 14.6792C23.8555 15.2915 24.0918 16.0059 24.21 16.8223H28.5283C28.3564 15.3398 27.9268 14.0293 27.2393 12.8906C26.5518 11.7412 25.5635 10.8389 24.2744 10.1836C22.9961 9.52832 21.3633 9.20068 19.376 9.20068C17.8936 9.20068 16.5508 9.45312 15.3477 9.95801C14.1553 10.4629 13.1294 11.1987 12.27 12.1655C11.4214 13.1323 10.7661 14.314 10.3042 15.7104C9.85303 17.1069 9.62744 18.7021 9.62744 20.4961V22.043C9.62744 23.8369 9.86914 25.4321 10.3525 26.8286C10.8359 28.2251 11.5234 29.4067 12.415 30.3735C13.3066 31.3403 14.3701 32.0762 15.6055 32.5811C16.8408 33.0752 18.2051 33.3223 19.6982 33.3223C21.417 33.3223 22.8672 33.1396 24.0488 32.7744C24.1363 32.7466 24.2226 32.7183 24.3076 32.6897V45H26.0508H28.873H33.3721C35.1872 45 36.7311 44.7344 38.0039 44.2031C39.2878 43.6719 40.2617 42.8805 40.9258 41.8291C41.6009 40.7777 41.9385 39.4772 41.9385 37.9277C41.9385 36.9427 41.7282 36.0241 41.3076 35.1719C40.887 34.3197 40.2341 33.6224 39.3486 33.0801C38.9246 32.8171 38.4394 32.6166 37.8931 32.4785C38.125 32.3854 38.3446 32.2816 38.5518 32.167C39.5036 31.6468 40.2064 30.9717 40.6602 30.1416C41.125 29.3005 41.3574 28.3818 41.3574 27.3857C41.3574 26.2568 41.1582 25.2829 40.7598 24.4639C40.3724 23.6449 39.8024 22.9642 39.0498 22.4219C38.2972 21.8796 37.3786 21.4811 36.2939 21.2266C35.2204 20.9609 33.9974 20.8281 32.625 20.8281H24.3076V20.8667ZM33.5713 34.2256H28.873V41.4141H33.3721C34.2796 41.4141 35.0267 41.2646 35.6133 40.9658C36.2109 40.667 36.6536 40.2575 36.9414 39.7373C37.2402 39.2061 37.3896 38.5973 37.3896 37.9111C37.3896 37.1585 37.2568 36.5055 36.9912 35.9521C36.7367 35.3988 36.3271 34.9727 35.7627 34.6738C35.2093 34.375 34.4788 34.2256 33.5713 34.2256ZM28.873 31.0049H32.6582C33.5658 31.0049 34.3239 30.8776 34.9326 30.623C35.5413 30.3685 36.0007 29.9977 36.3105 29.5107C36.6315 29.0238 36.792 28.4316 36.792 27.7344C36.792 26.9596 36.6426 26.3288 36.3438 25.8418C36.056 25.3548 35.6022 25.0007 34.9824 24.7793C34.3626 24.5469 33.5768 24.4307 32.625 24.4307H28.873V31.0049ZM73.6768 29.2754V20.9697H65.415V23.9141H69.6484V27.9131C69.4824 28.0889 69.248 28.2695 68.9453 28.4551C68.6426 28.6406 68.2373 28.8018 67.7295 28.9385C67.2314 29.0654 66.6016 29.1289 65.8398 29.1289C65 29.1289 64.248 28.9775 63.584 28.6748C62.9297 28.3623 62.3779 27.9082 61.9287 27.3125C61.4893 26.707 61.1523 25.9648 60.918 25.0859C60.6836 24.1973 60.5664 23.1816 60.5664 22.0391V20.6035C60.5664 19.4707 60.6689 18.4648 60.874 17.5859C61.0889 16.707 61.4014 15.9697 61.8115 15.374C62.2217 14.7783 62.7295 14.3242 63.335 14.0117C63.9404 13.6992 64.6387 13.543 65.4297 13.543C66.3672 13.543 67.1289 13.7041 67.7148 14.0264C68.3105 14.3389 68.7695 14.7783 69.0918 15.3447C69.4141 15.9014 69.6289 16.5508 69.7363 17.293H73.6621C73.5059 15.9453 73.1152 14.7539 72.4902 13.7188C71.8652 12.6738 70.9668 11.8535 69.7949 11.2578C68.6328 10.6621 67.1484 10.3643 65.3418 10.3643C63.9941 10.3643 62.7734 10.5938 61.6797 11.0527C60.5957 11.5117 59.6631 12.1807 58.8818 13.0596C58.1104 13.9385 57.5146 15.0127 57.0947 16.2822C56.6846 17.5518 56.4795 19.002 56.4795 20.6328V22.0391C56.4795 23.6699 56.6992 25.1201 57.1387 26.3896C57.5781 27.6592 58.2031 28.7334 59.0137 29.6123C59.8242 30.4912 60.791 31.1602 61.9141 31.6191C63.0371 32.0684 64.2773 32.293 65.6348 32.293C67.1973 32.293 68.5156 32.127 69.5898 31.7949C70.6641 31.4531 71.5332 31.0479 72.1973 30.5791C72.8711 30.1104 73.3643 29.6758 73.6768 29.2754ZM91.1719 28.8359V32H81.0645H79.834H77.0361V10.6719H79.834H81.0645H91.1279V13.8506H81.0645V19.4756H89.6924V22.5664H81.0645V28.8359H91.1719ZM110.175 32V10.6719H106.161V25.4814L97.0645 10.6719H93.0361V32H97.0645V17.2051L106.132 32H110.175ZM117.328 10.6719V32H113.3V10.6719H117.328ZM131.008 25.3643C131.135 25.6865 131.198 26.0527 131.198 26.4629C131.198 26.9902 131.062 27.459 130.788 27.8691C130.524 28.2793 130.124 28.6016 129.587 28.8359C129.06 29.0605 128.386 29.1729 127.565 29.1729C126.931 29.1729 126.34 29.1045 125.793 28.9678C125.246 28.8311 124.768 28.6162 124.357 28.3232C123.957 28.0205 123.645 27.6348 123.42 27.166C123.205 26.6875 123.098 26.1113 123.098 25.4375H119.055C119.055 26.5996 119.299 27.6152 119.787 28.4844C120.275 29.3438 120.93 30.0566 121.75 30.623C122.57 31.1797 123.483 31.5996 124.489 31.8828C125.505 32.1562 126.53 32.293 127.565 32.293C128.728 32.293 129.777 32.1611 130.715 31.8975C131.662 31.6338 132.473 31.248 133.146 30.7402C133.82 30.2324 134.338 29.6172 134.699 28.8945C135.061 28.1719 135.241 27.3516 135.241 26.4336C135.241 25.5645 135.09 24.7881 134.787 24.1045C134.494 23.4209 134.05 22.8057 133.454 22.2588C132.868 21.7119 132.131 21.2236 131.242 20.7939C130.363 20.3643 129.338 19.9736 128.166 19.6221C127.434 19.3975 126.789 19.1729 126.232 18.9482C125.686 18.7139 125.227 18.4648 124.855 18.2012C124.484 17.9277 124.206 17.6396 124.021 17.3369C123.835 17.0244 123.742 16.6729 123.742 16.2822C123.742 15.7646 123.874 15.2959 124.138 14.876C124.411 14.4561 124.816 14.124 125.354 13.8799C125.9 13.6357 126.584 13.5137 127.404 13.5137C128.254 13.5137 128.957 13.6602 129.514 13.9531C130.08 14.2461 130.5 14.6465 130.773 15.1543C131.057 15.6621 131.198 16.248 131.198 16.9121H135.212C135.212 15.6816 134.895 14.5732 134.26 13.5869C133.625 12.6006 132.727 11.8193 131.564 11.2432C130.412 10.667 129.045 10.3789 127.463 10.3789C126.32 10.3789 125.275 10.5205 124.328 10.8037C123.391 11.0869 122.575 11.4922 121.882 12.0195C121.188 12.5371 120.651 13.1572 120.271 13.8799C119.899 14.6025 119.714 15.4033 119.714 16.2822C119.714 17.1807 119.895 17.9717 120.256 18.6553C120.617 19.3291 121.12 19.9248 121.765 20.4424C122.419 20.96 123.176 21.4141 124.035 21.8047C124.895 22.1953 125.822 22.5469 126.818 22.8594C127.717 23.1426 128.449 23.416 129.016 23.6797C129.592 23.9336 130.036 24.1973 130.349 24.4707C130.671 24.7344 130.891 25.0322 131.008 25.3643ZM104.63 44.0146H104.182V48.6201H106.968C107.507 48.6201 107.964 48.5264 108.339 48.3389C108.72 48.1514 109.01 47.8877 109.209 47.5479C109.408 47.2021 109.508 46.7949 109.508 46.3262C109.508 45.8516 109.423 45.4414 109.253 45.0957C109.083 44.75 108.816 44.4834 108.453 44.2959C108.09 44.1084 107.621 44.0146 107.047 44.0146H104.63ZM104.182 38.5918V42.6523H104.647H106.73C107.217 42.6523 107.642 42.5703 108.005 42.4062C108.368 42.2422 108.649 42.0078 108.849 41.7031C109.054 41.3926 109.156 41.0234 109.156 40.5957C109.156 40.127 109.065 39.7461 108.884 39.4531C108.708 39.1543 108.436 38.9375 108.066 38.8027C107.703 38.6621 107.24 38.5918 106.678 38.5918H104.182ZM109.323 43.083C109.211 43.1467 109.094 43.205 108.973 43.2579C109.31 43.3486 109.612 43.4866 109.877 43.6719C110.305 43.9648 110.63 44.3398 110.853 44.7969C111.081 45.2539 111.195 45.7578 111.195 46.3086C111.195 47.1055 111.02 47.7793 110.668 48.3301C110.322 48.875 109.833 49.291 109.2 49.5781C108.567 49.8594 107.823 50 106.968 50H104.182H103.136H102.485V37.2031H106.678C107.334 37.2031 107.92 37.2705 108.436 37.4053C108.951 37.5342 109.388 37.7393 109.745 38.0205C110.108 38.2959 110.384 38.6475 110.571 39.0752C110.759 39.5029 110.853 40.0156 110.853 40.6133C110.853 41.1406 110.718 41.6182 110.448 42.0459C110.179 42.4678 109.804 42.8135 109.323 43.083ZM114.98 50H113.283V37.2031H114.98V50ZM127.377 44.0059C127.377 44.9668 127.257 45.8281 127.017 46.5898C126.776 47.3516 126.431 47.999 125.98 48.5322C125.528 49.0654 124.986 49.4727 124.354 49.7539C123.727 50.0352 123.024 50.1758 122.244 50.1758C121.488 50.1758 120.794 50.0352 120.161 49.7539C119.534 49.4727 118.989 49.0654 118.526 48.5322C118.069 47.999 117.715 47.3516 117.463 46.5898C117.211 45.8281 117.085 44.9668 117.085 44.0059V43.1973C117.085 42.2363 117.208 41.3779 117.454 40.6221C117.706 39.8604 118.061 39.2129 118.518 38.6797C118.975 38.1406 119.517 37.7305 120.144 37.4492C120.776 37.168 121.471 37.0273 122.227 37.0273C123.006 37.0273 123.709 37.168 124.336 37.4492C124.969 37.7305 125.511 38.1406 125.962 38.6797C126.419 39.2129 126.768 39.8604 127.008 40.6221C127.254 41.3779 127.377 42.2363 127.377 43.1973V44.0059ZM125.698 44.0059V43.1797C125.698 42.418 125.619 41.7441 125.461 41.1582C125.309 40.5723 125.083 40.0801 124.784 39.6816C124.485 39.2832 124.119 38.9814 123.686 38.7764C123.258 38.5713 122.772 38.4688 122.227 38.4688C121.699 38.4688 121.222 38.5713 120.794 38.7764C120.372 38.9814 120.009 39.2832 119.704 39.6816C119.405 40.0801 119.174 40.5723 119.01 41.1582C118.846 41.7441 118.764 42.418 118.764 43.1797V44.0059C118.764 44.7734 118.846 45.4531 119.01 46.0449C119.174 46.6309 119.408 47.126 119.713 47.5303C120.024 47.9287 120.39 48.2305 120.812 48.4355C121.239 48.6406 121.717 48.7432 122.244 48.7432C122.795 48.7432 123.284 48.6406 123.712 48.4355C124.14 48.2305 124.5 47.9287 124.793 47.5303C125.092 47.126 125.317 46.6309 125.47 46.0449C125.622 45.4531 125.698 44.7734 125.698 44.0059ZM136.197 46.7656C136.197 46.4668 136.151 46.2031 136.057 45.9746C135.969 45.7402 135.811 45.5293 135.582 45.3418C135.359 45.1543 135.049 44.9756 134.651 44.8057C134.258 44.6357 133.76 44.4629 133.156 44.2871C132.524 44.0996 131.952 43.8916 131.443 43.6631C130.933 43.4287 130.496 43.1621 130.133 42.8633C129.77 42.5645 129.491 42.2217 129.298 41.835C129.105 41.4482 129.008 41.0059 129.008 40.5078C129.008 40.0098 129.11 39.5498 129.316 39.1279C129.521 38.7061 129.814 38.3398 130.194 38.0293C130.581 37.7129 131.041 37.4668 131.574 37.291C132.108 37.1152 132.702 37.0273 133.359 37.0273C134.319 37.0273 135.134 37.2119 135.802 37.5811C136.476 37.9443 136.988 38.4219 137.34 39.0137C137.692 39.5996 137.867 40.2266 137.867 40.8945H136.18C136.18 40.4141 136.077 39.9893 135.872 39.6201C135.667 39.2451 135.357 38.9521 134.941 38.7412C134.525 38.5244 133.997 38.416 133.359 38.416C132.755 38.416 132.257 38.5068 131.864 38.6885C131.472 38.8701 131.179 39.1162 130.985 39.4268C130.798 39.7373 130.704 40.0918 130.704 40.4902C130.704 40.7598 130.76 41.0059 130.871 41.2285C130.988 41.4453 131.167 41.6475 131.407 41.835C131.653 42.0225 131.964 42.1953 132.339 42.3535C132.72 42.5117 133.174 42.6641 133.701 42.8105C134.428 43.0156 135.055 43.2441 135.582 43.4961C136.109 43.748 136.543 44.0322 136.883 44.3486C137.229 44.6592 137.484 45.0137 137.648 45.4121C137.818 45.8047 137.902 46.25 137.902 46.748C137.902 47.2695 137.797 47.7412 137.586 48.1631C137.375 48.585 137.073 48.9453 136.681 49.2441C136.288 49.543 135.817 49.7744 135.266 49.9385C134.721 50.0967 134.111 50.1758 133.438 50.1758C132.846 50.1758 132.263 50.0938 131.689 49.9297C131.12 49.7656 130.602 49.5195 130.133 49.1914C129.67 48.8633 129.298 48.459 129.017 47.9785C128.741 47.4922 128.604 46.9297 128.604 46.291H130.291C130.291 46.7305 130.376 47.1084 130.546 47.4248C130.716 47.7354 130.947 47.9932 131.24 48.1982C131.539 48.4033 131.876 48.5557 132.251 48.6553C132.632 48.749 133.027 48.7959 133.438 48.7959C134.029 48.7959 134.53 48.7139 134.941 48.5498C135.351 48.3857 135.661 48.1514 135.872 47.8467C136.089 47.542 136.197 47.1816 136.197 46.7656ZM147.25 45.9307H148.938C148.85 46.7393 148.618 47.4629 148.243 48.1016C147.868 48.7402 147.338 49.2471 146.652 49.6221C145.967 49.9912 145.111 50.1758 144.086 50.1758C143.336 50.1758 142.653 50.0352 142.038 49.7539C141.429 49.4727 140.904 49.0742 140.465 48.5586C140.026 48.0371 139.686 47.4131 139.445 46.6865C139.211 45.9541 139.094 45.1396 139.094 44.2432V42.9688C139.094 42.0723 139.211 41.2607 139.445 40.5342C139.686 39.8018 140.028 39.1748 140.474 38.6533C140.925 38.1318 141.467 37.7305 142.1 37.4492C142.733 37.168 143.444 37.0273 144.236 37.0273C145.202 37.0273 146.02 37.209 146.688 37.5723C147.356 37.9355 147.874 38.4395 148.243 39.084C148.618 39.7227 148.85 40.4639 148.938 41.3076H147.25C147.168 40.71 147.016 40.1973 146.793 39.7695C146.57 39.3359 146.254 39.002 145.844 38.7676C145.434 38.5332 144.898 38.416 144.236 38.416C143.667 38.416 143.166 38.5244 142.733 38.7412C142.305 38.958 141.944 39.2656 141.652 39.6641C141.364 40.0625 141.148 40.54 141.001 41.0967C140.855 41.6533 140.781 42.2715 140.781 42.9512V44.2432C140.781 44.8701 140.846 45.459 140.975 46.0098C141.11 46.5605 141.312 47.0439 141.581 47.46C141.851 47.876 142.194 48.2041 142.61 48.4443C143.026 48.6787 143.518 48.7959 144.086 48.7959C144.807 48.7959 145.381 48.6816 145.809 48.4531C146.236 48.2246 146.559 47.8965 146.776 47.4688C146.998 47.041 147.156 46.5283 147.25 45.9307ZM152.529 50H150.832V37.2031H152.529V50ZM163.203 48.6201V50H156.77H156.427H155.073V37.2031H156.427H156.77H163.115V38.5918H156.77V42.7051H162.307V44.085H156.77V48.6201H163.203ZM174.608 50H172.903L166.46 40.1299V50H164.764V37.2031H166.46L172.929 47.0996V37.2031H174.608V50ZM184.799 45.9307H186.487C186.399 46.7393 186.167 47.4629 185.792 48.1016C185.417 48.7402 184.887 49.2471 184.201 49.6221C183.516 49.9912 182.66 50.1758 181.635 50.1758C180.885 50.1758 180.202 50.0352 179.587 49.7539C178.978 49.4727 178.453 49.0742 178.014 48.5586C177.575 48.0371 177.235 47.4131 176.994 46.6865C176.76 45.9541 176.643 45.1396 176.643 44.2432V42.9688C176.643 42.0723 176.76 41.2607 176.994 40.5342C177.235 39.8018 177.577 39.1748 178.023 38.6533C178.474 38.1318 179.016 37.7305 179.649 37.4492C180.282 37.168 180.993 37.0273 181.784 37.0273C182.751 37.0273 183.569 37.209 184.237 37.5723C184.905 37.9355 185.423 38.4395 185.792 39.084C186.167 39.7227 186.399 40.4639 186.487 41.3076H184.799C184.717 40.71 184.565 40.1973 184.342 39.7695C184.119 39.3359 183.803 39.002 183.393 38.7676C182.983 38.5332 182.447 38.416 181.784 38.416C181.216 38.416 180.715 38.5244 180.282 38.7412C179.854 38.958 179.493 39.2656 179.201 39.6641C178.913 40.0625 178.697 40.54 178.55 41.0967C178.404 41.6533 178.33 42.2715 178.33 42.9512V44.2432C178.33 44.8701 178.395 45.459 178.524 46.0098C178.659 46.5605 178.861 47.0439 179.13 47.46C179.4 47.876 179.742 48.2041 180.159 48.4443C180.575 48.6787 181.067 48.7959 181.635 48.7959C182.356 48.7959 182.93 48.6816 183.358 48.4531C183.785 48.2246 184.108 47.8965 184.325 47.4688C184.547 47.041 184.705 46.5283 184.799 45.9307ZM196.388 48.6201V50H189.954H189.612H188.258V37.2031H189.612H189.954H196.3V38.5918H189.954V42.7051H195.492V44.085H189.954V48.6201H196.388ZM204.769 46.7656C204.769 46.4668 204.722 46.2031 204.628 45.9746C204.54 45.7402 204.382 45.5293 204.154 45.3418C203.931 45.1543 203.621 44.9756 203.222 44.8057C202.829 44.6357 202.331 44.4629 201.728 44.2871C201.095 44.0996 200.524 43.8916 200.014 43.6631C199.504 43.4287 199.068 43.1621 198.704 42.8633C198.341 42.5645 198.063 42.2217 197.87 41.835C197.676 41.4482 197.579 41.0059 197.579 40.5078C197.579 40.0098 197.682 39.5498 197.887 39.1279C198.092 38.7061 198.385 38.3398 198.766 38.0293C199.153 37.7129 199.613 37.4668 200.146 37.291C200.679 37.1152 201.274 37.0273 201.93 37.0273C202.891 37.0273 203.705 37.2119 204.373 37.5811C205.047 37.9443 205.56 38.4219 205.912 39.0137C206.263 39.5996 206.439 40.2266 206.439 40.8945H204.751C204.751 40.4141 204.649 39.9893 204.444 39.6201C204.239 39.2451 203.928 38.9521 203.512 38.7412C203.096 38.5244 202.569 38.416 201.93 38.416C201.327 38.416 200.829 38.5068 200.436 38.6885C200.043 38.8701 199.75 39.1162 199.557 39.4268C199.37 39.7373 199.276 40.0918 199.276 40.4902C199.276 40.7598 199.331 41.0059 199.443 41.2285C199.56 41.4453 199.739 41.6475 199.979 41.835C200.225 42.0225 200.536 42.1953 200.911 42.3535C201.291 42.5117 201.746 42.6641 202.273 42.8105C202.999 43.0156 203.626 43.2441 204.154 43.4961C204.681 43.748 205.115 44.0322 205.454 44.3486C205.8 44.6592 206.055 45.0137 206.219 45.4121C206.389 45.8047 206.474 46.25 206.474 46.748C206.474 47.2695 206.369 47.7412 206.158 48.1631C205.947 48.585 205.645 48.9453 205.252 49.2441C204.86 49.543 204.388 49.7744 203.837 49.9385C203.292 50.0967 202.683 50.1758 202.009 50.1758C201.417 50.1758 200.834 50.0938 200.26 49.9297C199.692 49.7656 199.173 49.5195 198.704 49.1914C198.242 48.8633 197.87 48.459 197.588 47.9785C197.313 47.4922 197.175 46.9297 197.175 46.291H198.863C198.863 46.7305 198.948 47.1084 199.118 47.4248C199.288 47.7354 199.519 47.9932 199.812 48.1982C200.111 48.4033 200.448 48.5557 200.823 48.6553C201.204 48.749 201.599 48.7959 202.009 48.7959C202.601 48.7959 203.102 48.7139 203.512 48.5498C203.922 48.3857 204.233 48.1514 204.444 47.8467C204.661 47.542 204.769 47.1816 204.769 46.7656ZM146.191 32V13.8506H152.812V10.6719H146.191H142.178H135.63V13.8506H142.178V32H146.191ZM162.865 10.6719H161.869H160.126H159.145L151.176 32H155.438L157.033 27.2539H164.998L166.601 32H170.878L162.865 10.6719ZM163.925 24.0752H158.101L161.006 15.4312L163.925 24.0752Z\",\n fill: \"url(#paint0_radial_12_288)\"\n }), /*#__PURE__*/React.createElement(\"circle\", {\n cx: 26.5,\n cy: 26.5,\n r: 25,\n stroke: \"#3D4A5E\",\n strokeWidth: 3\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M107.047 44.0146H103.804L103.786 42.6523H106.73C107.217 42.6523 107.642 42.5703 108.005 42.4062C108.368 42.2422 108.649 42.0078 108.849 41.7031C109.054 41.3926 109.156 41.0234 109.156 40.5957C109.156 40.127 109.065 39.7461 108.884 39.4531C108.708 39.1543 108.436 38.9375 108.066 38.8027C107.703 38.6621 107.24 38.5918 106.678 38.5918H104.182V50H102.485V37.2031H106.678C107.334 37.2031 107.92 37.2705 108.436 37.4053C108.951 37.5342 109.388 37.7393 109.745 38.0205C110.108 38.2959 110.384 38.6475 110.571 39.0752C110.759 39.5029 110.853 40.0156 110.853 40.6133C110.853 41.1406 110.718 41.6182 110.448 42.0459C110.179 42.4678 109.804 42.8135 109.323 43.083C108.849 43.3525 108.292 43.5254 107.653 43.6016L107.047 44.0146ZM106.968 50H103.136L104.094 48.6201H106.968C107.507 48.6201 107.964 48.5264 108.339 48.3389C108.72 48.1514 109.01 47.8877 109.209 47.5479C109.408 47.2021 109.508 46.7949 109.508 46.3262C109.508 45.8516 109.423 45.4414 109.253 45.0957C109.083 44.75 108.816 44.4834 108.453 44.2959C108.09 44.1084 107.621 44.0146 107.047 44.0146H104.63L104.647 42.6523H107.952L108.312 43.1445C108.928 43.1973 109.449 43.373 109.877 43.6719C110.305 43.9648 110.63 44.3398 110.853 44.7969C111.081 45.2539 111.195 45.7578 111.195 46.3086C111.195 47.1055 111.02 47.7793 110.668 48.3301C110.322 48.875 109.833 49.291 109.2 49.5781C108.567 49.8594 107.823 50 106.968 50ZM114.98 37.2031V50H113.283V37.2031H114.98ZM127.377 43.1973V44.0059C127.377 44.9668 127.257 45.8281 127.017 46.5898C126.776 47.3516 126.431 47.999 125.98 48.5322C125.528 49.0654 124.986 49.4727 124.354 49.7539C123.727 50.0352 123.024 50.1758 122.244 50.1758C121.488 50.1758 120.794 50.0352 120.161 49.7539C119.534 49.4727 118.989 49.0654 118.526 48.5322C118.069 47.999 117.715 47.3516 117.463 46.5898C117.211 45.8281 117.085 44.9668 117.085 44.0059V43.1973C117.085 42.2363 117.208 41.3779 117.454 40.6221C117.706 39.8604 118.061 39.2129 118.518 38.6797C118.975 38.1406 119.517 37.7305 120.144 37.4492C120.776 37.168 121.471 37.0273 122.227 37.0273C123.006 37.0273 123.709 37.168 124.336 37.4492C124.969 37.7305 125.511 38.1406 125.962 38.6797C126.419 39.2129 126.768 39.8604 127.008 40.6221C127.254 41.3779 127.377 42.2363 127.377 43.1973ZM125.698 44.0059V43.1797C125.698 42.418 125.619 41.7441 125.461 41.1582C125.309 40.5723 125.083 40.0801 124.784 39.6816C124.485 39.2832 124.119 38.9814 123.686 38.7764C123.258 38.5713 122.772 38.4688 122.227 38.4688C121.699 38.4688 121.222 38.5713 120.794 38.7764C120.372 38.9814 120.009 39.2832 119.704 39.6816C119.405 40.0801 119.174 40.5723 119.01 41.1582C118.846 41.7441 118.764 42.418 118.764 43.1797V44.0059C118.764 44.7734 118.846 45.4531 119.01 46.0449C119.174 46.6309 119.408 47.126 119.713 47.5303C120.024 47.9287 120.39 48.2305 120.812 48.4355C121.239 48.6406 121.717 48.7432 122.244 48.7432C122.795 48.7432 123.284 48.6406 123.712 48.4355C124.14 48.2305 124.5 47.9287 124.793 47.5303C125.092 47.126 125.317 46.6309 125.47 46.0449C125.622 45.4531 125.698 44.7734 125.698 44.0059ZM136.197 46.7656C136.197 46.4668 136.151 46.2031 136.057 45.9746C135.969 45.7402 135.811 45.5293 135.582 45.3418C135.359 45.1543 135.049 44.9756 134.651 44.8057C134.258 44.6357 133.76 44.4629 133.156 44.2871C132.524 44.0996 131.952 43.8916 131.442 43.6631C130.933 43.4287 130.496 43.1621 130.133 42.8633C129.77 42.5645 129.491 42.2217 129.298 41.835C129.105 41.4482 129.008 41.0059 129.008 40.5078C129.008 40.0098 129.11 39.5498 129.316 39.1279C129.521 38.7061 129.814 38.3398 130.194 38.0293C130.581 37.7129 131.041 37.4668 131.574 37.291C132.108 37.1152 132.702 37.0273 133.359 37.0273C134.319 37.0273 135.134 37.2119 135.802 37.5811C136.476 37.9443 136.988 38.4219 137.34 39.0137C137.692 39.5996 137.867 40.2266 137.867 40.8945H136.18C136.18 40.4141 136.077 39.9893 135.872 39.6201C135.667 39.2451 135.357 38.9521 134.941 38.7412C134.525 38.5244 133.997 38.416 133.359 38.416C132.755 38.416 132.257 38.5068 131.864 38.6885C131.472 38.8701 131.179 39.1162 130.985 39.4268C130.798 39.7373 130.704 40.0918 130.704 40.4902C130.704 40.7598 130.76 41.0059 130.871 41.2285C130.988 41.4453 131.167 41.6475 131.407 41.835C131.653 42.0225 131.964 42.1953 132.339 42.3535C132.72 42.5117 133.174 42.6641 133.701 42.8105C134.428 43.0156 135.055 43.2441 135.582 43.4961C136.109 43.748 136.543 44.0322 136.883 44.3486C137.229 44.6592 137.484 45.0137 137.648 45.4121C137.817 45.8047 137.902 46.25 137.902 46.748C137.902 47.2695 137.797 47.7412 137.586 48.1631C137.375 48.585 137.073 48.9453 136.681 49.2441C136.288 49.543 135.817 49.7744 135.266 49.9385C134.721 50.0967 134.111 50.1758 133.438 50.1758C132.846 50.1758 132.263 50.0938 131.689 49.9297C131.12 49.7656 130.602 49.5195 130.133 49.1914C129.67 48.8633 129.298 48.459 129.017 47.9785C128.741 47.4922 128.604 46.9297 128.604 46.291H130.291C130.291 46.7305 130.376 47.1084 130.546 47.4248C130.716 47.7354 130.947 47.9932 131.24 48.1982C131.539 48.4033 131.876 48.5557 132.251 48.6553C132.632 48.749 133.027 48.7959 133.438 48.7959C134.029 48.7959 134.53 48.7139 134.941 48.5498C135.351 48.3857 135.661 48.1514 135.872 47.8467C136.089 47.542 136.197 47.1816 136.197 46.7656ZM147.25 45.9307H148.938C148.85 46.7393 148.618 47.4629 148.243 48.1016C147.868 48.7402 147.338 49.2471 146.653 49.6221C145.967 49.9912 145.111 50.1758 144.086 50.1758C143.336 50.1758 142.653 50.0352 142.038 49.7539C141.429 49.4727 140.904 49.0742 140.465 48.5586C140.026 48.0371 139.686 47.4131 139.445 46.6865C139.211 45.9541 139.094 45.1396 139.094 44.2432V42.9688C139.094 42.0723 139.211 41.2607 139.445 40.5342C139.686 39.8018 140.028 39.1748 140.474 38.6533C140.925 38.1318 141.467 37.7305 142.1 37.4492C142.733 37.168 143.444 37.0273 144.236 37.0273C145.202 37.0273 146.02 37.209 146.688 37.5723C147.356 37.9355 147.874 38.4395 148.243 39.084C148.618 39.7227 148.85 40.4639 148.938 41.3076H147.25C147.168 40.71 147.016 40.1973 146.793 39.7695C146.57 39.3359 146.254 39.002 145.844 38.7676C145.434 38.5332 144.898 38.416 144.236 38.416C143.667 38.416 143.166 38.5244 142.733 38.7412C142.305 38.958 141.944 39.2656 141.652 39.6641C141.364 40.0625 141.148 40.54 141.001 41.0967C140.855 41.6533 140.781 42.2715 140.781 42.9512V44.2432C140.781 44.8701 140.846 45.459 140.975 46.0098C141.11 46.5605 141.312 47.0439 141.581 47.46C141.851 47.876 142.194 48.2041 142.61 48.4443C143.026 48.6787 143.518 48.7959 144.086 48.7959C144.807 48.7959 145.381 48.6816 145.809 48.4531C146.236 48.2246 146.559 47.8965 146.776 47.4688C146.998 47.041 147.156 46.5283 147.25 45.9307ZM152.529 37.2031V50H150.832V37.2031H152.529ZM163.203 48.6201V50H156.427V48.6201H163.203ZM156.77 37.2031V50H155.073V37.2031H156.77ZM162.307 42.7051V44.085H156.427V42.7051H162.307ZM163.115 37.2031V38.5918H156.427V37.2031H163.115ZM174.608 37.2031V50H172.903L166.46 40.1299V50H164.764V37.2031H166.46L172.929 47.0996V37.2031H174.608ZM184.799 45.9307H186.487C186.399 46.7393 186.167 47.4629 185.792 48.1016C185.417 48.7402 184.887 49.2471 184.201 49.6221C183.516 49.9912 182.66 50.1758 181.635 50.1758C180.885 50.1758 180.202 50.0352 179.587 49.7539C178.978 49.4727 178.453 49.0742 178.014 48.5586C177.575 48.0371 177.235 47.4131 176.994 46.6865C176.76 45.9541 176.643 45.1396 176.643 44.2432V42.9688C176.643 42.0723 176.76 41.2607 176.994 40.5342C177.235 39.8018 177.577 39.1748 178.023 38.6533C178.474 38.1318 179.016 37.7305 179.649 37.4492C180.282 37.168 180.993 37.0273 181.784 37.0273C182.751 37.0273 183.569 37.209 184.237 37.5723C184.905 37.9355 185.423 38.4395 185.792 39.084C186.167 39.7227 186.399 40.4639 186.487 41.3076H184.799C184.717 40.71 184.565 40.1973 184.342 39.7695C184.119 39.3359 183.803 39.002 183.393 38.7676C182.983 38.5332 182.447 38.416 181.784 38.416C181.216 38.416 180.715 38.5244 180.282 38.7412C179.854 38.958 179.493 39.2656 179.201 39.6641C178.913 40.0625 178.697 40.54 178.55 41.0967C178.404 41.6533 178.33 42.2715 178.33 42.9512V44.2432C178.33 44.8701 178.395 45.459 178.524 46.0098C178.659 46.5605 178.861 47.0439 179.13 47.46C179.4 47.876 179.743 48.2041 180.159 48.4443C180.575 48.6787 181.067 48.7959 181.635 48.7959C182.356 48.7959 182.93 48.6816 183.358 48.4531C183.785 48.2246 184.108 47.8965 184.325 47.4688C184.547 47.041 184.705 46.5283 184.799 45.9307ZM196.388 48.6201V50H189.612V48.6201H196.388ZM189.954 37.2031V50H188.258V37.2031H189.954ZM195.492 42.7051V44.085H189.612V42.7051H195.492ZM196.3 37.2031V38.5918H189.612V37.2031H196.3ZM204.769 46.7656C204.769 46.4668 204.722 46.2031 204.628 45.9746C204.54 45.7402 204.382 45.5293 204.154 45.3418C203.931 45.1543 203.621 44.9756 203.222 44.8057C202.829 44.6357 202.331 44.4629 201.728 44.2871C201.095 44.0996 200.524 43.8916 200.014 43.6631C199.504 43.4287 199.068 43.1621 198.704 42.8633C198.341 42.5645 198.063 42.2217 197.87 41.835C197.676 41.4482 197.579 41.0059 197.579 40.5078C197.579 40.0098 197.682 39.5498 197.887 39.1279C198.092 38.7061 198.385 38.3398 198.766 38.0293C199.153 37.7129 199.613 37.4668 200.146 37.291C200.679 37.1152 201.274 37.0273 201.93 37.0273C202.891 37.0273 203.705 37.2119 204.373 37.5811C205.047 37.9443 205.56 38.4219 205.912 39.0137C206.263 39.5996 206.439 40.2266 206.439 40.8945H204.751C204.751 40.4141 204.649 39.9893 204.444 39.6201C204.239 39.2451 203.928 38.9521 203.512 38.7412C203.096 38.5244 202.569 38.416 201.93 38.416C201.327 38.416 200.829 38.5068 200.436 38.6885C200.043 38.8701 199.75 39.1162 199.557 39.4268C199.37 39.7373 199.276 40.0918 199.276 40.4902C199.276 40.7598 199.331 41.0059 199.443 41.2285C199.56 41.4453 199.739 41.6475 199.979 41.835C200.225 42.0225 200.536 42.1953 200.911 42.3535C201.291 42.5117 201.746 42.6641 202.273 42.8105C202.999 43.0156 203.626 43.2441 204.154 43.4961C204.681 43.748 205.115 44.0322 205.454 44.3486C205.8 44.6592 206.055 45.0137 206.219 45.4121C206.389 45.8047 206.474 46.25 206.474 46.748C206.474 47.2695 206.369 47.7412 206.158 48.1631C205.947 48.585 205.645 48.9453 205.252 49.2441C204.86 49.543 204.388 49.7744 203.837 49.9385C203.292 50.0967 202.683 50.1758 202.009 50.1758C201.417 50.1758 200.834 50.0938 200.26 49.9297C199.692 49.7656 199.173 49.5195 198.704 49.1914C198.242 48.8633 197.87 48.459 197.588 47.9785C197.313 47.4922 197.175 46.9297 197.175 46.291H198.863C198.863 46.7305 198.948 47.1084 199.118 47.4248C199.287 47.7354 199.519 47.9932 199.812 48.1982C200.111 48.4033 200.448 48.5557 200.823 48.6553C201.204 48.749 201.599 48.7959 202.009 48.7959C202.601 48.7959 203.102 48.7139 203.512 48.5498C203.922 48.3857 204.233 48.1514 204.444 47.8467C204.661 47.542 204.769 47.1816 204.769 46.7656Z\",\n fill: \"#3D4A5E\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"radialGradient\", {\n id: \"paint0_radial_12_288\",\n cx: 0,\n cy: 0,\n r: 1,\n gradientUnits: \"userSpaceOnUse\",\n gradientTransform: \"translate(103.565 -10.7683) rotate(90) scale(65.6355 205.294)\"\n }, /*#__PURE__*/React.createElement(\"stop\", {\n stopColor: \"#D0D0D0\",\n stopOpacity: 0\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 0.453125,\n stopColor: \"#029E9C\"\n }), /*#__PURE__*/React.createElement(\"stop\", {\n offset: 1,\n stopColor: \"#652986\",\n stopOpacity: 0.79\n })), /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_12_288\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 208,\n height: 53,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgGbLogo, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/GBLogo.56213719.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2, _path3;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEsvLogo = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 64,\n height: 64,\n viewBox: \"0 10 64 48\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20.746 27.497C20.869 27.005 21.033 25.898 21.033 24.709C21.033 19.174 18.245 14.377 11.726 14.377C4.305 14.377 1.271 20.445 1.271 25.119C1.271 31.515 5.289 35.451 12.382 35.451C14.883 35.451 17.507 35.123 19.926 34.18L18.983 29.219C17.179 29.793 15.375 29.998 13.489 29.998C10.865 29.998 8.569 29.096 8.323 27.497H20.746ZM8.241 22.495C8.364 21.224 9.184 19.215 11.357 19.215C13.694 19.215 14.227 21.347 14.227 22.495H8.241ZM20.8306 34.016C22.4296 34.836 24.9306 35.451 27.7596 35.451C33.9916 35.451 36.9846 32.54 36.9846 28.686C36.9436 25.775 35.4266 23.725 31.4496 22.413C29.0716 21.634 28.4156 21.224 28.4156 20.568C28.4156 19.748 29.1536 19.42 30.4246 19.42C32.0646 19.42 33.9506 20.076 34.8936 20.527L36.0826 15.525C34.7706 14.951 32.5566 14.377 30.0966 14.377C24.7666 14.377 21.3226 17.288 21.3226 21.306C21.2816 23.643 22.7986 26.062 27.2676 27.497C29.4406 28.153 29.8916 28.481 29.8916 29.219C29.8916 29.998 29.2766 30.326 27.6776 30.326C25.8736 30.326 23.2496 29.506 22.1016 28.809L20.8306 34.016Z\",\n fill: \"#19305A\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M36.0076 14.828L43.1826 35H50.6036L57.9426 14.828H50.1936L48.1846 23.397C47.7746 25.078 47.5286 26.513 47.2826 28.153H47.1596C46.9136 26.595 46.6266 25.037 46.2166 23.397L44.0436 14.828H36.0076Z\",\n fill: \"#26ABE1\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0.464 50.616C1.088 50.936 2.064 51.176 3.168 51.176C5.6 51.176 6.768 50.04 6.768 48.536C6.752 47.4 6.16 46.6 4.608 46.088C3.68 45.784 3.424 45.624 3.424 45.368C3.424 45.048 3.712 44.92 4.208 44.92C4.848 44.92 5.584 45.176 5.952 45.352L6.416 43.4C5.904 43.176 5.04 42.952 4.08 42.952C2 42.952 0.656 44.088 0.656 45.656C0.64 46.568 1.232 47.512 2.976 48.072C3.824 48.328 4 48.456 4 48.744C4 49.048 3.76 49.176 3.136 49.176C2.432 49.176 1.408 48.856 0.96 48.584L0.464 50.616ZM16.2748 43.128H13.3788V47.768C13.3788 47.928 13.3628 48.072 13.3148 48.184C13.2028 48.488 12.9148 48.856 12.3868 48.856C11.6988 48.856 11.3788 48.312 11.3788 47.304V43.128H8.48275V47.768C8.48275 50.04 9.52275 51.176 11.2828 51.176C12.6908 51.176 13.3788 50.392 13.6668 49.96H13.7148L13.8428 51H16.3388C16.3068 50.328 16.2748 49.432 16.2748 48.312V43.128ZM18.4772 54.168H21.3572V50.424H21.3892C21.6772 50.824 22.3652 51.176 23.2612 51.176C24.9732 51.176 26.8453 49.848 26.8453 46.968C26.8453 44.408 25.2452 42.952 23.6132 42.952C22.5252 42.952 21.6452 43.352 21.0532 44.136H21.0212L20.8932 43.128H18.4132C18.4452 43.864 18.4772 44.76 18.4772 45.816V54.168ZM21.3572 46.584C21.3572 46.456 21.3572 46.328 21.3892 46.216C21.4852 45.656 21.9812 45.208 22.5572 45.208C23.4692 45.208 23.9172 45.992 23.9172 47.112C23.9172 48.248 23.3892 48.984 22.5252 48.984C21.9492 48.984 21.5172 48.552 21.4052 48.04C21.3732 47.896 21.3572 47.736 21.3572 47.56V46.584ZM28.6429 54.168H31.5229V50.424H31.5549C31.8429 50.824 32.5309 51.176 33.4269 51.176C35.1389 51.176 37.0109 49.848 37.0109 46.968C37.0109 44.408 35.4109 42.952 33.7789 42.952C32.6909 42.952 31.8109 43.352 31.2189 44.136H31.1869L31.0589 43.128H28.5789C28.6109 43.864 28.6429 44.76 28.6429 45.816V54.168ZM31.5229 46.584C31.5229 46.456 31.5229 46.328 31.5549 46.216C31.6509 45.656 32.1469 45.208 32.7229 45.208C33.6349 45.208 34.0829 45.992 34.0829 47.112C34.0829 48.248 33.5549 48.984 32.6909 48.984C32.1149 48.984 31.6829 48.552 31.5709 48.04C31.5389 47.896 31.5229 47.736 31.5229 47.56V46.584ZM38.7925 51H41.6885V39.64H38.7925V51ZM46.7604 51V43.128H43.8644V51H46.7604ZM45.3204 39.592C44.4244 39.592 43.8484 40.168 43.8484 40.968C43.8484 41.72 44.4084 42.328 45.3044 42.328C46.2164 42.328 46.7924 41.72 46.7924 40.968C46.7764 40.168 46.2164 39.592 45.3204 39.592ZM56.1523 48.072C56.2003 47.88 56.2643 47.448 56.2643 46.984C56.2643 44.824 55.1763 42.952 52.6323 42.952C49.7363 42.952 48.5523 45.32 48.5523 47.144C48.5523 49.64 50.1203 51.176 52.8883 51.176C53.8643 51.176 54.8883 51.048 55.8323 50.68L55.4643 48.744C54.7603 48.968 54.0563 49.048 53.3203 49.048C52.2963 49.048 51.4003 48.696 51.3043 48.072H56.1523ZM51.2723 46.12C51.3203 45.624 51.6403 44.84 52.4883 44.84C53.4003 44.84 53.6083 45.672 53.6083 46.12H51.2723ZM57.9612 51H60.8572V47.112C60.8572 46.92 60.8732 46.744 60.8892 46.616C61.0492 45.976 61.6252 45.624 62.4732 45.624C62.7772 45.624 63.0012 45.656 63.2092 45.704V43C63.0012 42.952 62.8892 42.952 62.6332 42.952C61.9452 42.952 60.9532 43.352 60.5372 44.552H60.4732L60.3612 43.128H57.8972C57.9452 43.784 57.9612 44.536 57.9612 45.784V51Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEsvLogo, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ESVLogo.248fd599.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { Col, Flex, Row } from \"antd\";\nimport \"./FormPageLayout.css\";\nimport { ReactComponent as GBLogo } from \"../../assets/images/logo/GBLogo.svg\";\nimport { ReactComponent as ESVLogo } from \"../../assets/images/logo/ESVLogo.svg\";\n\nexport default function FormPageLayout({ className, children, addCompany = false }) {\n return (\n
\n {!addCompany && (\n \n \n \n
\n {/* Powered by\n
*/}\n \n
\n \n \n )}\n \n
\n \n {children}\n \n
\n
\n
\n\n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgContactInfo = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19 7H24V9H19V7ZM17 12H24V14H17V12ZM20 17H24V19H20V17ZM2 22C2 17.5817 5.58172 14 10 14C14.4183 14 18 17.5817 18 22H16C16 18.6863 13.3137 16 10 16C6.68629 16 4 18.6863 4 22H2ZM10 13C6.685 13 4 10.315 4 7C4 3.685 6.685 1 10 1C13.315 1 16 3.685 16 7C16 10.315 13.315 13 10 13ZM10 11C12.21 11 14 9.21 14 7C14 4.79 12.21 3 10 3C7.79 3 6 4.79 6 7C6 9.21 7.79 11 10 11Z\",\n fill: \"current\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgContactInfo, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ContactInfo.d316b11b.svg\";\nexport { ForwardRef as ReactComponent };","export default __webpack_public_path__ + \"static/media/Group.52e15b51.png\";","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCustomer = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 22,\n height: 20,\n viewBox: \"0 0 22 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 18H22V20H0V18H2V1C2 0.44772 2.44772 0 3 0H19C19.5523 0 20 0.44772 20 1V18ZM18 18V2H4V18H18ZM7 9H10V11H7V9ZM7 5H10V7H7V5ZM7 13H10V15H7V13ZM12 13H15V15H12V13ZM12 9H15V11H12V9ZM12 5H15V7H12V5Z\",\n fill: \"#375393\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCustomer, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/customer.024c7254.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAccountCreation = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 21,\n viewBox: \"0 0 16 21\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16 21H14V19C14 17.3431 12.6569 16 11 16H5C3.34315 16 2 17.3431 2 19V21H0V19C0 16.2386 2.23858 14 5 14H11C13.7614 14 16 16.2386 16 19V21ZM8 12C4.68629 12 2 9.3137 2 6C2 2.68629 4.68629 0 8 0C11.3137 0 14 2.68629 14 6C14 9.3137 11.3137 12 8 12ZM8 10C10.2091 10 12 8.20914 12 6C12 3.79086 10.2091 2 8 2C5.79086 2 4 3.79086 4 6C4 8.20914 5.79086 10 8 10Z\",\n fill: \"current\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAccountCreation, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/AccountCreation.e5588218.svg\";\nexport { ForwardRef as ReactComponent };","var _mask, _path, _mask2, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEsvLogo = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 33,\n height: 28,\n viewBox: \"0 0 33 28\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _mask || (_mask = /*#__PURE__*/React.createElement(\"mask\", {\n id: \"path-1-outside-1_4416_401\",\n maskUnits: \"userSpaceOnUse\",\n x: -1,\n y: 5,\n width: 30,\n height: 13,\n fill: \"black\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n fill: \"white\",\n x: -1,\n y: 5,\n width: 30,\n height: 13\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.66235 12.5055C9.71964 12.2764 9.79602 11.7608 9.79602 11.207C9.79602 8.62912 8.49752 6.39494 5.46133 6.39494C2.00503 6.39494 0.591962 9.22108 0.591962 11.398C0.591962 14.3769 2.46333 16.2101 5.76686 16.2101C6.93169 16.2101 8.1538 16.0573 9.28044 15.6181L8.84124 13.3075C8.00104 13.5749 7.16083 13.6703 6.28244 13.6703C5.06032 13.6703 3.99097 13.2502 3.8764 12.5055H9.66235ZM3.83821 10.1759C3.89549 9.58389 4.2774 8.64821 5.28947 8.64821C6.37792 8.64821 6.62616 9.64118 6.62616 10.1759H3.83821ZM9.70173 15.5417C10.4465 15.9236 11.6113 16.2101 12.9289 16.2101C15.8314 16.2101 17.2254 14.8543 17.2254 13.0593C17.2063 11.7035 16.4998 10.7487 14.6475 10.1377C13.5399 9.77485 13.2344 9.58389 13.2344 9.27836C13.2344 8.89645 13.5781 8.74369 14.1701 8.74369C14.9339 8.74369 15.8123 9.04922 16.2515 9.25927L16.8053 6.92961C16.1942 6.66227 15.1631 6.39494 14.0173 6.39494C11.5349 6.39494 9.93088 7.75072 9.93088 9.62208C9.91178 10.7105 10.6183 11.8372 12.6997 12.5055C13.7118 12.811 13.9219 12.9638 13.9219 13.3075C13.9219 13.6703 13.6354 13.8231 12.8907 13.8231C12.0505 13.8231 10.8284 13.4412 10.2937 13.1166L9.70173 15.5417Z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.7704 6.60499L20.1121 16H23.5684L26.9865 6.60499H23.3774L22.4418 10.596C22.2508 11.3789 22.1362 12.0472 22.0216 12.811H21.9644C21.8498 12.0854 21.7161 11.3598 21.5252 10.596L20.5131 6.60499H16.7704Z\"\n }))), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.66235 12.5055V13.5055H10.4431L10.6325 12.748L9.66235 12.5055ZM9.28044 15.6181L9.64365 16.5498L10.4181 16.2479L10.2628 15.4313L9.28044 15.6181ZM8.84124 13.3075L9.82365 13.1208L9.613 12.0126L8.53804 12.3546L8.84124 13.3075ZM3.8764 12.5055V11.5055H2.71079L2.88803 12.6576L3.8764 12.5055ZM3.83821 10.1759L2.84286 10.0795L2.73676 11.1759H3.83821V10.1759ZM6.62616 10.1759V11.1759H7.62616V10.1759H6.62616ZM10.6325 12.748C10.7119 12.4305 10.796 11.8326 10.796 11.207H8.79602C8.79602 11.689 8.72738 12.1223 8.69221 12.263L10.6325 12.748ZM10.796 11.207C10.796 9.76616 10.4349 8.31875 9.54832 7.20983C8.63537 6.06786 7.25147 5.39494 5.46133 5.39494V7.39494C6.70738 7.39494 7.49083 7.8391 7.98617 8.4587C8.50793 9.11134 8.79602 10.07 8.79602 11.207H10.796ZM5.46133 5.39494C3.42555 5.39494 1.92295 6.24252 0.950595 7.45426C0.0036034 8.63441 -0.408038 10.1147 -0.408038 11.398H1.59196C1.59196 10.5043 1.88686 9.48313 2.51047 8.70597C3.10873 7.96043 4.04081 7.39494 5.46133 7.39494V5.39494ZM-0.408038 11.398C-0.408038 13.1014 0.132689 14.5907 1.25448 15.6486C2.36898 16.6997 3.93492 17.2101 5.76686 17.2101V15.2101C4.29526 15.2101 3.27375 14.8038 2.62669 14.1936C1.98692 13.5902 1.59196 12.6734 1.59196 11.398H-0.408038ZM5.76686 17.2101C7.0122 17.2101 8.36648 17.0477 9.64365 16.5498L8.91723 14.6864C7.94113 15.0669 6.85117 15.2101 5.76686 15.2101V17.2101ZM10.2628 15.4313L9.82365 13.1208L7.85883 13.4943L8.29803 15.8048L10.2628 15.4313ZM8.53804 12.3546C7.81994 12.5831 7.08667 12.6703 6.28244 12.6703V14.6703C7.23499 14.6703 8.18214 14.5666 9.14445 14.2605L8.53804 12.3546ZM6.28244 12.6703C5.77115 12.6703 5.34876 12.5804 5.07902 12.4573C4.78992 12.3255 4.84871 12.249 4.86477 12.3535L2.88803 12.6576C3.01866 13.5067 3.66941 14.0127 4.24916 14.2771C4.84826 14.5503 5.57161 14.6703 6.28244 14.6703V12.6703ZM3.8764 13.5055H9.66235V11.5055H3.8764V13.5055ZM4.83356 10.2722C4.8492 10.1105 4.91281 9.91501 5.00803 9.78706C5.05006 9.73058 5.08844 9.7001 5.12008 9.68295C5.1478 9.66794 5.19694 9.64821 5.28947 9.64821V7.64821C4.42267 7.64821 3.79303 8.06969 3.40356 8.59304C3.04049 9.08092 2.8845 9.64925 2.84286 10.0795L4.83356 10.2722ZM5.28947 9.64821C5.40376 9.64821 5.44845 9.67253 5.45885 9.67851C5.47211 9.68614 5.49301 9.70183 5.51943 9.74383C5.5482 9.7896 5.57696 9.85719 5.59783 9.94438C5.61859 10.0311 5.62616 10.1149 5.62616 10.1759H7.62616C7.62616 9.78862 7.54199 9.20318 7.21253 8.67923C6.84566 8.09577 6.20348 7.64821 5.28947 7.64821V9.64821ZM6.62616 9.17586H3.83821V11.1759H6.62616V9.17586ZM9.70173 15.5417L8.73026 15.3046L8.54309 16.0714L9.24542 16.4315L9.70173 15.5417ZM17.2254 13.0593H18.2255L18.2253 13.0452L17.2254 13.0593ZM14.6475 10.1377L14.9608 9.188L14.9588 9.18736L14.6475 10.1377ZM16.2515 9.25927L15.8201 10.1614L16.9379 10.696L17.2244 9.49053L16.2515 9.25927ZM16.8053 6.92961L17.7782 7.16087L17.9713 6.34825L17.2061 6.01345L16.8053 6.92961ZM9.93088 9.62208L10.9307 9.63963L10.9309 9.63086V9.62208H9.93088ZM12.6997 12.5055L12.394 13.4576L12.4023 13.4603L12.4107 13.4628L12.6997 12.5055ZM10.2937 13.1166L10.8127 12.2618L9.6459 11.5534L9.32222 12.8794L10.2937 13.1166ZM9.24542 16.4315C10.1579 16.8995 11.4854 17.2101 12.9289 17.2101V15.2101C11.7371 15.2101 10.735 14.9478 10.1581 14.6519L9.24542 16.4315ZM12.9289 17.2101C14.5225 17.2101 15.8428 16.839 16.7864 16.0917C17.7557 15.3241 18.2254 14.2379 18.2254 13.0593H16.2254C16.2254 13.6756 15.9981 14.1648 15.5447 14.5238C15.0657 14.9032 14.2378 15.2101 12.9289 15.2101V17.2101ZM18.2253 13.0452C18.2132 12.1839 17.9759 11.368 17.3868 10.6728C16.815 9.99786 15.9873 9.52666 14.9608 9.18801L14.3342 11.0873C15.1599 11.3597 15.6116 11.6714 15.8609 11.9656C16.0929 12.2395 16.2185 12.5789 16.2255 13.0734L18.2253 13.0452ZM14.9588 9.18736C14.6911 9.09968 14.4869 9.02719 14.3306 8.96472C14.1705 8.90076 14.0865 8.85732 14.0471 8.83325C14.0054 8.80778 14.0596 8.83141 14.1223 8.92225C14.2008 9.03585 14.2344 9.16825 14.2344 9.27836H12.2344C12.2344 9.54124 12.3063 9.81208 12.4766 10.0588C12.6312 10.2827 12.831 10.434 13.0042 10.5398C13.3315 10.7399 13.7906 10.9092 14.3362 11.088L14.9588 9.18736ZM14.2344 9.27836C14.2344 9.3376 14.2193 9.44248 14.1512 9.55424C14.084 9.66445 14.0005 9.72348 13.9536 9.7487C13.9129 9.77057 13.9019 9.7664 13.9472 9.75844C13.9902 9.75089 14.0621 9.74369 14.1701 9.74369V7.74369C13.823 7.74369 13.3876 7.78241 13.007 7.98692C12.8001 8.09807 12.5937 8.2669 12.4435 8.51316C12.2925 8.76098 12.2344 9.02817 12.2344 9.27836H14.2344ZM14.1701 9.74369C14.7264 9.74369 15.4508 9.98479 15.8201 10.1614L16.683 8.35713C16.1738 8.11364 15.1414 7.74369 14.1701 7.74369V9.74369ZM17.2244 9.49053L17.7782 7.16087L15.8324 6.69835L15.2786 9.02801L17.2244 9.49053ZM17.2061 6.01345C16.4696 5.69125 15.3021 5.39494 14.0173 5.39494V7.39494C15.024 7.39494 15.9188 7.6333 16.4045 7.84577L17.2061 6.01345ZM14.0173 5.39494C12.6009 5.39494 11.3422 5.78192 10.416 6.52792C9.47467 7.28601 8.93088 8.37649 8.93088 9.62208H10.9309C10.9309 8.99631 11.1891 8.47322 11.6704 8.08557C12.1668 7.68584 12.9514 7.39494 14.0173 7.39494V5.39494ZM8.93103 9.60454C8.9173 10.3876 9.17097 11.1829 9.77193 11.8763C10.3602 12.5551 11.2359 13.0858 12.394 13.4576L13.0055 11.5534C12.0821 11.2569 11.5638 10.8901 11.2833 10.5664C11.0154 10.2573 10.9254 9.945 10.9307 9.63963L8.93103 9.60454ZM12.4107 13.4628C12.6545 13.5364 12.8296 13.5948 12.957 13.6441C13.0195 13.6683 13.064 13.6878 13.0951 13.7028C13.1264 13.718 13.1375 13.7255 13.1356 13.7242C13.1294 13.7201 13.0516 13.6662 12.9884 13.5461C12.9246 13.425 12.9219 13.3243 12.9219 13.3075H14.9219C14.9219 13.1189 14.8928 12.8702 14.7581 12.6143C14.6238 12.3592 14.4303 12.1837 14.245 12.0601C13.9232 11.8456 13.4745 11.6948 12.9887 11.5482L12.4107 13.4628ZM12.9219 13.3075C12.9219 13.2663 12.9307 13.1577 13.0038 13.0336C13.0793 12.9055 13.1778 12.8376 13.2332 12.8095C13.2778 12.7869 13.2848 12.7944 13.2158 12.8049C13.1504 12.8148 13.0466 12.8231 12.8907 12.8231V14.8231C13.2851 14.8231 13.7485 14.7907 14.1379 14.5932C14.358 14.4816 14.5747 14.3075 14.7271 14.0487C14.8772 13.7939 14.9219 13.5302 14.9219 13.3075H12.9219ZM12.8907 12.8231C12.5984 12.8231 12.1816 12.7524 11.7517 12.6299C11.3174 12.5061 10.973 12.3591 10.8127 12.2618L9.77472 13.9714C10.1491 14.1987 10.683 14.4049 11.2035 14.5533C11.7284 14.7029 12.3428 14.8231 12.8907 14.8231V12.8231ZM9.32222 12.8794L8.73026 15.3046L10.6732 15.7788L11.2652 13.3537L9.32222 12.8794ZM16.7704 6.60499V5.60499H15.3533L15.8282 6.94011L16.7704 6.60499ZM20.1121 16L19.1699 16.3351L19.4064 17H20.1121V16ZM23.5684 16V17H24.2687L24.5081 16.3419L23.5684 16ZM26.9865 6.60499L27.9262 6.94688L28.4144 5.60499H26.9865V6.60499ZM23.3774 6.60499V5.60499H22.5848L22.4038 6.37673L23.3774 6.60499ZM22.4418 10.596L23.4133 10.8329L23.4154 10.8242L22.4418 10.596ZM22.0217 12.811V13.811H22.8828L23.0106 12.9594L22.0217 12.811ZM21.9644 12.811L20.9766 12.967L21.1099 13.811H21.9644V12.811ZM21.5252 10.596L22.4953 10.3534L22.4945 10.3502L21.5252 10.596ZM20.5131 6.60499L21.4824 6.35918L21.2912 5.60499H20.5131V6.60499ZM15.8282 6.94011L19.1699 16.3351L21.0543 15.6649L17.7125 6.26986L15.8282 6.94011ZM20.1121 17H23.5684V15H20.1121V17ZM24.5081 16.3419L27.9262 6.94688L26.0468 6.26309L22.6287 15.6581L24.5081 16.3419ZM26.9865 5.60499H23.3774V7.60499H26.9865V5.60499ZM22.4038 6.37673L21.4682 10.3677L23.4154 10.8242L24.351 6.83325L22.4038 6.37673ZM21.4702 10.359C21.2692 11.1834 21.1494 11.8849 21.0327 12.6627L23.0106 12.9594C23.1231 12.2095 23.2324 11.5743 23.4133 10.8329L21.4702 10.359ZM22.0217 11.811H21.9644V13.811H22.0217V11.811ZM22.9521 12.6551C22.8349 11.9125 22.6959 11.1557 22.4953 10.3534L20.555 10.8385C20.7364 11.5639 20.8647 12.2584 20.9766 12.967L22.9521 12.6551ZM22.4945 10.3502L21.4824 6.35918L19.5438 6.85079L20.5558 10.8418L22.4945 10.3502ZM20.5131 5.60499H16.7704V7.60499H20.5131V5.60499Z\",\n fill: \"#506375\",\n mask: \"url(#path-1-outside-1_4416_401)\"\n })), _mask2 || (_mask2 = /*#__PURE__*/React.createElement(\"mask\", {\n id: \"path-3-outside-2_4416_401\",\n maskUnits: \"userSpaceOnUse\",\n x: 0.192383,\n y: 17.4248,\n width: 32,\n height: 10,\n fill: \"black\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n fill: \"white\",\n x: 0.192383,\n y: 17.4248,\n width: 32,\n height: 10\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1.40849 24.246C1.69911 24.395 2.15368 24.5068 2.66786 24.5068C3.80056 24.5068 4.34455 23.9777 4.34455 23.2772C4.33709 22.7481 4.06137 22.3755 3.33854 22.1371C2.90633 21.9955 2.78709 21.921 2.78709 21.8017C2.78709 21.6527 2.92123 21.5931 3.15224 21.5931C3.45032 21.5931 3.7931 21.7123 3.9645 21.7943L4.1806 20.8851C3.94214 20.7808 3.53974 20.6765 3.09262 20.6765C2.12387 20.6765 1.49791 21.2056 1.49791 21.9359C1.49046 22.3606 1.76618 22.8003 2.57844 23.0611C2.97339 23.1803 3.05536 23.2399 3.05536 23.3741C3.05536 23.5157 2.94358 23.5753 2.65296 23.5753C2.32508 23.5753 1.84815 23.4262 1.6395 23.2996L1.40849 24.246ZM8.77227 20.7585H7.42347V22.9195C7.42347 22.994 7.41602 23.0611 7.39366 23.1133C7.3415 23.2549 7.20737 23.4262 6.96145 23.4262C6.64102 23.4262 6.49198 23.1729 6.49198 22.7034V20.7585H5.14318V22.9195C5.14318 23.9777 5.62756 24.5068 6.44727 24.5068C7.10304 24.5068 7.42347 24.1416 7.55761 23.9404H7.57996L7.63958 24.4248H8.80208C8.78717 24.1118 8.77227 23.6945 8.77227 23.1729V20.7585ZM9.79807 25.9003H11.1394V24.1565H11.1543C11.2885 24.3428 11.6089 24.5068 12.0262 24.5068C12.8236 24.5068 13.6954 23.8883 13.6954 22.5469C13.6954 21.3546 12.9502 20.6765 12.1901 20.6765C11.6834 20.6765 11.2736 20.8628 10.9978 21.2279H10.9829L10.9233 20.7585H9.76826C9.78317 21.1012 9.79807 21.5186 9.79807 22.0104V25.9003ZM11.1394 22.3681C11.1394 22.3085 11.1394 22.2488 11.1543 22.1967C11.199 21.9359 11.43 21.7272 11.6983 21.7272C12.1231 21.7272 12.3317 22.0924 12.3317 22.614C12.3317 23.1431 12.0858 23.4859 11.6834 23.4859C11.4151 23.4859 11.2139 23.2847 11.1618 23.0462C11.1469 22.9791 11.1394 22.9046 11.1394 22.8226V22.3681ZM14.5327 25.9003H15.874V24.1565H15.8889C16.023 24.3428 16.3435 24.5068 16.7608 24.5068C17.5581 24.5068 18.43 23.8883 18.43 22.5469C18.43 21.3546 17.6848 20.6765 16.9247 20.6765C16.418 20.6765 16.0081 20.8628 15.7324 21.2279H15.7175L15.6579 20.7585H14.5029C14.5178 21.1012 14.5327 21.5186 14.5327 22.0104V25.9003ZM15.874 22.3681C15.874 22.3085 15.874 22.2488 15.8889 22.1967C15.9336 21.9359 16.1646 21.7272 16.4329 21.7272C16.8577 21.7272 17.0663 22.0924 17.0663 22.614C17.0663 23.1431 16.8204 23.4859 16.418 23.4859C16.1497 23.4859 15.9485 23.2847 15.8964 23.0462C15.8815 22.9791 15.874 22.9046 15.874 22.8226V22.3681ZM19.2598 24.4248H20.6086V19.1339H19.2598V24.4248ZM22.9708 24.4248V20.7585H21.622V24.4248H22.9708ZM22.3001 19.1116C21.8828 19.1116 21.6146 19.3799 21.6146 19.7524C21.6146 20.1027 21.8754 20.3859 22.2927 20.3859C22.7174 20.3859 22.9857 20.1027 22.9857 19.7524C22.9783 19.3799 22.7174 19.1116 22.3001 19.1116ZM27.345 23.0611C27.3674 22.9717 27.3972 22.7705 27.3972 22.5544C27.3972 21.5484 26.8905 20.6765 25.7056 20.6765C24.3568 20.6765 23.8054 21.7794 23.8054 22.6289C23.8054 23.7914 24.5356 24.5068 25.8248 24.5068C26.2794 24.5068 26.7563 24.4472 27.196 24.2758L27.0246 23.3741C26.6967 23.4784 26.3688 23.5157 26.026 23.5157C25.5491 23.5157 25.1318 23.3517 25.0871 23.0611H27.345ZM25.0722 22.152C25.0945 21.921 25.2436 21.5558 25.6385 21.5558C26.0633 21.5558 26.1602 21.9433 26.1602 22.152H25.0722ZM28.1876 24.4248H29.5364V22.614C29.5364 22.5246 29.5438 22.4426 29.5513 22.383C29.6258 22.0849 29.894 21.921 30.289 21.921C30.4306 21.921 30.5349 21.9359 30.6318 21.9582V20.6988C30.5349 20.6765 30.4827 20.6765 30.3635 20.6765C30.0431 20.6765 29.5811 20.8628 29.3873 21.4217H29.3575L29.3053 20.7585H28.1577C28.1801 21.064 28.1876 21.4142 28.1876 21.9955V24.4248Z\"\n }))), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1.40849 24.246L0.437011 24.0088L0.249844 24.7756L0.952172 25.1358L1.40849 24.246ZM4.34455 23.2772H5.34465L5.34445 23.2631L4.34455 23.2772ZM3.33854 22.1371L3.65183 21.1874L3.64984 21.1868L3.33854 22.1371ZM3.9645 21.7943L3.53304 22.6964L4.65084 23.231L4.93739 22.0255L3.9645 21.7943ZM4.1806 20.8851L5.1535 21.1164L5.34666 20.3038L4.58142 19.969L4.1806 20.8851ZM1.49791 21.9359L2.49776 21.9534L2.49791 21.9446V21.9359H1.49791ZM2.57844 23.0611L2.27271 24.0132L2.28105 24.0159L2.28944 24.0184L2.57844 23.0611ZM1.6395 23.2996L2.15848 22.4448L0.991703 21.7364L0.668021 23.0624L1.6395 23.2996ZM0.952172 25.1358C1.41059 25.3709 2.02783 25.5068 2.66786 25.5068V23.5068C2.27953 23.5068 1.98764 23.4191 1.86481 23.3561L0.952172 25.1358ZM2.66786 25.5068C3.37657 25.5068 4.04191 25.3424 4.5518 24.9386C5.08738 24.5145 5.34455 23.9086 5.34455 23.2772H3.34455C3.34455 23.3217 3.33634 23.3405 3.33468 23.3441C3.33377 23.346 3.33025 23.3548 3.31013 23.3707C3.26485 23.4066 3.09185 23.5068 2.66786 23.5068V25.5068ZM5.34445 23.2631C5.33814 22.8152 5.21151 22.3515 4.87277 21.9517C4.55128 21.5723 4.11366 21.3398 3.65183 21.1874L3.02525 23.0867C3.15211 23.1286 3.2339 23.1681 3.28432 23.1984C3.30895 23.2132 3.32478 23.225 3.33419 23.2329C3.33888 23.2367 3.34205 23.2397 3.344 23.2416C3.34593 23.2435 3.34679 23.2445 3.34685 23.2446C3.34691 23.2447 3.34637 23.244 3.34546 23.2427C3.34454 23.2414 3.34347 23.2397 3.34238 23.2378C3.34 23.2336 3.33877 23.2304 3.33846 23.2294C3.33774 23.2273 3.34398 23.2441 3.34465 23.2913L5.34445 23.2631ZM3.64984 21.1868C3.55103 21.1544 3.48504 21.1307 3.44117 21.1131C3.39356 21.0941 3.39608 21.0918 3.42219 21.1077C3.44601 21.1223 3.54458 21.1848 3.63533 21.3163C3.7418 21.4704 3.78709 21.645 3.78709 21.8017H1.78709C1.78709 22.018 1.84729 22.2467 1.98962 22.4528C2.11624 22.6361 2.27163 22.7485 2.37929 22.8143C2.57563 22.9343 2.81927 23.0192 3.02723 23.0874L3.64984 21.1868ZM3.78709 21.8017C3.78709 21.9192 3.75892 22.0736 3.6655 22.2268C3.57302 22.3785 3.45205 22.471 3.35635 22.5224C3.19809 22.6074 3.08782 22.5931 3.15224 22.5931V20.5931C2.98565 20.5931 2.69281 20.6085 2.40972 20.7606C2.25162 20.8456 2.08267 20.9809 1.95783 21.1857C1.83203 21.392 1.78709 21.6097 1.78709 21.8017H3.78709ZM3.15224 22.5931C3.17967 22.5931 3.24483 22.6005 3.33855 22.6265C3.42845 22.6515 3.50192 22.6815 3.53304 22.6964L4.39595 20.8921C4.15464 20.7767 3.65782 20.5931 3.15224 20.5931V22.5931ZM4.93739 22.0255L5.1535 21.1164L3.20771 20.6539L2.99161 21.563L4.93739 22.0255ZM4.58142 19.969C4.21755 19.8098 3.67877 19.6765 3.09262 19.6765V21.6765C3.40071 21.6765 3.66673 21.7518 3.77979 21.8013L4.58142 19.969ZM3.09262 19.6765C2.43298 19.6765 1.7973 19.8568 1.30474 20.2535C0.797181 20.6623 0.497912 21.2608 0.497912 21.9359H2.49791C2.49791 21.8806 2.51162 21.8495 2.55923 21.8111C2.62184 21.7607 2.78351 21.6765 3.09262 21.6765V19.6765ZM0.498066 21.9183C0.490149 22.3695 0.63903 22.8271 0.975095 23.2149C1.29852 23.5881 1.74923 23.8451 2.27271 24.0132L2.88417 22.109C2.59539 22.0163 2.50211 21.9231 2.48647 21.905C2.47983 21.8974 2.48535 21.9017 2.49117 21.918C2.49677 21.9337 2.49787 21.9471 2.49776 21.9534L0.498066 21.9183ZM2.28944 24.0184C2.37897 24.0455 2.43034 24.0631 2.45888 24.0741C2.49229 24.087 2.46283 24.0791 2.41031 24.0441C2.34946 24.0035 2.23647 23.9125 2.15155 23.7513C2.06615 23.5891 2.05536 23.4432 2.05536 23.3741H4.05536C4.05536 23.2379 4.03433 23.0343 3.92122 22.8195C3.80859 22.6056 3.65042 22.4671 3.51971 22.38C3.30707 22.2382 3.04464 22.1573 2.86745 22.1038L2.28944 24.0184ZM2.05536 23.3741C2.05536 23.2775 2.07515 23.1217 2.17173 22.9577C2.27064 22.7898 2.40518 22.6895 2.51077 22.636C2.60563 22.5878 2.67703 22.5768 2.68824 22.5751C2.70307 22.5728 2.69532 22.5753 2.65296 22.5753V24.5753C2.82035 24.5753 3.12655 24.5662 3.41552 24.4196C3.58538 24.3334 3.76603 24.1917 3.89499 23.9728C4.02161 23.7578 4.05536 23.5415 4.05536 23.3741H2.05536ZM2.65296 22.5753C2.61684 22.5753 2.51441 22.5628 2.3756 22.5232C2.3131 22.5054 2.25674 22.4859 2.21234 22.4681C2.16348 22.4485 2.14828 22.4386 2.15848 22.4448L1.12052 24.1544C1.33187 24.2827 1.59802 24.3813 1.82743 24.4466C2.06122 24.5133 2.36119 24.5753 2.65296 24.5753V22.5753ZM0.668021 23.0624L0.437011 24.0088L2.37997 24.4831L2.61098 23.5367L0.668021 23.0624ZM8.77227 20.7585H9.77227V19.7585H8.77227V20.7585ZM7.42347 20.7585V19.7585H6.42347V20.7585H7.42347ZM7.39366 23.1133L6.47452 22.7193L6.46429 22.7432L6.45532 22.7676L7.39366 23.1133ZM6.49198 20.7585H7.49198V19.7585H6.49198V20.7585ZM5.14318 20.7585V19.7585H4.14318V20.7585H5.14318ZM7.55761 23.9404V22.9404H7.02242L6.72556 23.3857L7.55761 23.9404ZM7.57996 23.9404L8.57247 23.8183L8.46443 22.9404H7.57996V23.9404ZM7.63958 24.4248L6.64707 24.547L6.75511 25.4248H7.63958V24.4248ZM8.80208 24.4248V25.4248H9.85083L9.80095 24.3772L8.80208 24.4248ZM8.77227 19.7585H7.42347V21.7585H8.77227V19.7585ZM6.42347 20.7585V22.9195H8.42347V20.7585H6.42347ZM6.42347 22.9195C6.42347 22.9259 6.42298 22.9115 6.427 22.8834C6.43085 22.8564 6.44169 22.7959 6.47452 22.7193L8.31281 23.5072C8.41617 23.266 8.42347 23.0349 8.42347 22.9195H6.42347ZM6.45532 22.7676C6.47608 22.7112 6.51652 22.6345 6.60025 22.5629C6.69929 22.4782 6.83162 22.4262 6.96145 22.4262V24.4262C7.77507 24.4262 8.19426 23.8328 8.33201 23.459L6.45532 22.7676ZM6.96145 22.4262C7.01472 22.4262 7.11061 22.4375 7.21888 22.4945C7.33001 22.553 7.40627 22.6346 7.45128 22.7057C7.49204 22.77 7.49988 22.8134 7.49865 22.8076C7.49761 22.8027 7.49198 22.7709 7.49198 22.7034H5.49198C5.49198 23.0119 5.53515 23.4183 5.76183 23.7761C6.03717 24.2106 6.48694 24.4262 6.96145 24.4262V22.4262ZM7.49198 22.7034V20.7585H5.49198V22.7034H7.49198ZM6.49198 19.7585H5.14318V21.7585H6.49198V19.7585ZM4.14318 20.7585V22.9195H6.14318V20.7585H4.14318ZM4.14318 22.9195C4.14318 23.5838 4.29342 24.2459 4.72404 24.7554C5.17746 25.292 5.81097 25.5068 6.44727 25.5068V23.5068C6.34906 23.5068 6.29799 23.4909 6.2783 23.4828C6.26278 23.4764 6.25777 23.4718 6.25163 23.4645C6.23513 23.445 6.14318 23.3134 6.14318 22.9195H4.14318ZM6.44727 25.5068C7.55648 25.5068 8.14762 24.8582 8.38966 24.4951L6.72556 23.3857C6.70668 23.414 6.68277 23.4413 6.65245 23.461C6.63818 23.4703 6.61873 23.4805 6.59071 23.4889C6.56282 23.4973 6.51699 23.5068 6.44727 23.5068V25.5068ZM7.55761 24.9404H7.57996V22.9404H7.55761V24.9404ZM6.58745 24.0626L6.64707 24.547L8.63209 24.3026L8.57247 23.8183L6.58745 24.0626ZM7.63958 25.4248H8.80208V23.4248H7.63958V25.4248ZM9.80095 24.3772C9.78659 24.0759 9.77227 23.6749 9.77227 23.1729H7.77227C7.77227 23.7141 7.78775 24.1478 7.80321 24.4724L9.80095 24.3772ZM9.77227 23.1729V20.7585H7.77227V23.1729H9.77227ZM9.79807 25.9003H8.79807V26.9003H9.79807V25.9003ZM11.1394 25.9003V26.9003H12.1394V25.9003H11.1394ZM11.1394 24.1565V23.1565H10.1394V24.1565H11.1394ZM11.1543 24.1565L11.9659 23.5722L11.6666 23.1565H11.1543V24.1565ZM10.9978 21.2279V22.2279H11.4958L11.7959 21.8305L10.9978 21.2279ZM10.9829 21.2279L9.99089 21.3539L10.1019 22.2279H10.9829V21.2279ZM10.9233 20.7585L11.9153 20.6325L11.8044 19.7585H10.9233V20.7585ZM9.76826 20.7585V19.7585H8.72384L8.76921 20.8019L9.76826 20.7585ZM11.1543 22.1967L12.1158 22.4714L12.1308 22.4192L12.1399 22.3656L11.1543 22.1967ZM11.1618 23.0462L12.1387 22.8325L12.138 22.8293L11.1618 23.0462ZM9.79807 26.9003H11.1394V24.9003H9.79807V26.9003ZM12.1394 25.9003V24.1565H10.1394V25.9003H12.1394ZM11.1394 25.1565H11.1543V23.1565H11.1394V25.1565ZM10.3428 24.7408C10.719 25.2634 11.3928 25.5068 12.0262 25.5068V23.5068C11.9469 23.5068 11.8979 23.491 11.8801 23.4833C11.8713 23.4795 11.8752 23.4799 11.8885 23.4899C11.9006 23.499 11.9311 23.524 11.9659 23.5722L10.3428 24.7408ZM12.0262 25.5068C12.6785 25.5068 13.3568 25.2546 13.8721 24.7318C14.3978 24.1983 14.6954 23.4444 14.6954 22.5469H12.6954C12.6954 22.9908 12.5571 23.2168 12.4476 23.3279C12.3275 23.4497 12.1712 23.5068 12.0262 23.5068V25.5068ZM14.6954 22.5469C14.6954 20.9228 13.6158 19.6765 12.1901 19.6765V21.6765C12.2666 21.6765 12.3754 21.71 12.4782 21.8265C12.5781 21.9396 12.6954 22.1624 12.6954 22.5469H14.6954ZM12.1901 19.6765C11.4166 19.6765 10.691 19.9748 10.1998 20.6253L11.7959 21.8305C11.8561 21.7508 11.9502 21.6765 12.1901 21.6765V19.6765ZM10.9978 20.2279H10.9829V22.2279H10.9978V20.2279ZM11.975 21.102L11.9153 20.6325L9.93128 20.8844L9.99089 21.3539L11.975 21.102ZM10.9233 19.7585H9.76826V21.7585H10.9233V19.7585ZM8.76921 20.8019C8.78381 21.1377 8.79807 21.539 8.79807 22.0104H10.7981C10.7981 21.4981 10.7825 21.0648 10.7673 20.715L8.76921 20.8019ZM8.79807 22.0104V25.9003H10.7981V22.0104H8.79807ZM12.1394 22.3681C12.1394 22.3518 12.1394 22.3448 12.1395 22.3392C12.1396 22.3344 12.1397 22.337 12.1392 22.344C12.1385 22.3551 12.135 22.4042 12.1158 22.4714L10.1928 21.922C10.1321 22.1343 10.1394 22.3429 10.1394 22.3681H12.1394ZM12.1399 22.3656C12.1215 22.473 12.068 22.5581 12.001 22.6167C11.9324 22.6767 11.8279 22.7272 11.6983 22.7272V20.7272C10.9114 20.7272 10.2903 21.3186 10.1687 22.0277L12.1399 22.3656ZM11.6983 22.7272C11.6575 22.7272 11.5855 22.7173 11.5051 22.6743C11.4251 22.6316 11.373 22.5754 11.3445 22.5331C11.3186 22.4945 11.3167 22.4746 11.3209 22.492C11.3249 22.5087 11.3317 22.5482 11.3317 22.614H13.3317C13.3317 22.2415 13.2606 21.7983 13.0041 21.4169C12.7143 20.9861 12.2459 20.7272 11.6983 20.7272V22.7272ZM11.3317 22.614C11.3317 22.7384 11.3011 22.7262 11.3532 22.6555C11.3824 22.6157 11.4315 22.568 11.5021 22.5322C11.573 22.4963 11.6388 22.4859 11.6834 22.4859V24.4859C12.2046 24.4859 12.6648 24.2474 12.9638 23.8412C13.2394 23.4668 13.3317 23.0187 13.3317 22.614H11.3317ZM11.6834 22.4859C11.8109 22.4859 11.9256 22.5369 12.005 22.6072C12.0781 22.672 12.121 22.7515 12.1387 22.8325L10.1849 23.2599C10.3195 23.8755 10.8661 24.4859 11.6834 24.4859V22.4859ZM12.138 22.8293C12.1398 22.8377 12.1402 22.8418 12.14 22.8405C12.1399 22.8392 12.1394 22.8335 12.1394 22.8226H10.1394C10.1394 22.964 10.1522 23.1127 10.1856 23.2631L12.138 22.8293ZM12.1394 22.8226V22.3681H10.1394V22.8226H12.1394ZM14.5327 25.9003H13.5327V26.9003H14.5327V25.9003ZM15.874 25.9003V26.9003H16.874V25.9003H15.874ZM15.874 24.1565V23.1565H14.874V24.1565H15.874ZM15.8889 24.1565L16.7004 23.5722L16.4011 23.1565H15.8889V24.1565ZM15.7324 21.2279V22.2279H16.2304L16.5305 21.8305L15.7324 21.2279ZM15.7175 21.2279L14.7255 21.3539L14.8365 22.2279H15.7175V21.2279ZM15.6579 20.7585L16.6499 20.6325L16.5389 19.7585H15.6579V20.7585ZM14.5029 20.7585V19.7585H13.4584L13.5038 20.8019L14.5029 20.7585ZM15.8889 22.1967L16.8504 22.4714L16.8654 22.4192L16.8745 22.3656L15.8889 22.1967ZM15.8964 23.0462L16.8733 22.8325L16.8726 22.8293L15.8964 23.0462ZM14.5327 26.9003H15.874V24.9003H14.5327V26.9003ZM16.874 25.9003V24.1565H14.874V25.9003H16.874ZM15.874 25.1565H15.8889V23.1565H15.874V25.1565ZM15.0774 24.7408C15.4536 25.2634 16.1274 25.5068 16.7608 25.5068V23.5068C16.6815 23.5068 16.6325 23.491 16.6147 23.4833C16.6059 23.4795 16.6098 23.4799 16.623 23.4899C16.6352 23.499 16.6657 23.524 16.7004 23.5722L15.0774 24.7408ZM16.7608 25.5068C17.4131 25.5068 18.0914 25.2546 18.6066 24.7318C19.1324 24.1983 19.43 23.4444 19.43 22.5469H17.43C17.43 22.9908 17.2917 23.2168 17.1822 23.3279C17.0621 23.4497 16.9058 23.5068 16.7608 23.5068V25.5068ZM19.43 22.5469C19.43 20.9228 18.3504 19.6765 16.9247 19.6765V21.6765C17.0012 21.6765 17.11 21.71 17.2128 21.8265C17.3127 21.9396 17.43 22.1624 17.43 22.5469H19.43ZM16.9247 19.6765C16.1512 19.6765 15.4256 19.9748 14.9344 20.6253L16.5305 21.8305C16.5907 21.7508 16.6848 21.6765 16.9247 21.6765V19.6765ZM15.7324 20.2279H15.7175V22.2279H15.7324V20.2279ZM16.7096 21.102L16.6499 20.6325L14.6659 20.8844L14.7255 21.3539L16.7096 21.102ZM15.6579 19.7585H14.5029V21.7585H15.6579V19.7585ZM13.5038 20.8019C13.5184 21.1377 13.5327 21.539 13.5327 22.0104H15.5327C15.5327 21.4981 15.5171 21.0648 15.5019 20.715L13.5038 20.8019ZM13.5327 22.0104V25.9003H15.5327V22.0104H13.5327ZM16.874 22.3681C16.874 22.3518 16.874 22.3448 16.8741 22.3392C16.8742 22.3344 16.8742 22.337 16.8738 22.344C16.8731 22.3551 16.8696 22.4042 16.8504 22.4714L14.9274 21.922C14.8667 22.1343 14.874 22.3429 14.874 22.3681H16.874ZM16.8745 22.3656C16.8561 22.473 16.8026 22.5581 16.7356 22.6167C16.667 22.6767 16.5625 22.7272 16.4329 22.7272V20.7272C15.6459 20.7272 15.0248 21.3186 14.9033 22.0277L16.8745 22.3656ZM16.4329 22.7272C16.3921 22.7272 16.3201 22.7173 16.2397 22.6743C16.1597 22.6316 16.1076 22.5754 16.0791 22.5331C16.0532 22.4945 16.0513 22.4746 16.0555 22.492C16.0595 22.5087 16.0663 22.5482 16.0663 22.614H18.0663C18.0663 22.2415 17.9952 21.7983 17.7387 21.4169C17.4489 20.9861 16.9805 20.7272 16.4329 20.7272V22.7272ZM16.0663 22.614C16.0663 22.7384 16.0357 22.7262 16.0878 22.6555C16.117 22.6157 16.1661 22.568 16.2366 22.5322C16.3076 22.4963 16.3734 22.4859 16.418 22.4859V24.4859C16.9392 24.4859 17.3993 24.2474 17.6984 23.8412C17.974 23.4668 18.0663 23.0187 18.0663 22.614H16.0663ZM16.418 22.4859C16.5455 22.4859 16.6602 22.5369 16.7395 22.6072C16.8127 22.672 16.8555 22.7515 16.8733 22.8325L14.9195 23.2599C15.0541 23.8755 15.6007 24.4859 16.418 24.4859V22.4859ZM16.8726 22.8293C16.8744 22.8377 16.8748 22.8418 16.8746 22.8405C16.8745 22.8392 16.874 22.8335 16.874 22.8226H14.874C14.874 22.964 14.8868 23.1127 14.9202 23.2631L16.8726 22.8293ZM16.874 22.8226V22.3681H14.874V22.8226H16.874ZM19.2598 24.4248H18.2598V25.4248H19.2598V24.4248ZM20.6086 24.4248V25.4248H21.6086V24.4248H20.6086ZM20.6086 19.1339H21.6086V18.1339H20.6086V19.1339ZM19.2598 19.1339V18.1339H18.2598V19.1339H19.2598ZM19.2598 25.4248H20.6086V23.4248H19.2598V25.4248ZM21.6086 24.4248V19.1339H19.6086V24.4248H21.6086ZM20.6086 18.1339H19.2598V20.1339H20.6086V18.1339ZM18.2598 19.1339V24.4248H20.2598V19.1339H18.2598ZM22.9708 24.4248V25.4248H23.9708V24.4248H22.9708ZM22.9708 20.7585H23.9708V19.7585H22.9708V20.7585ZM21.622 20.7585V19.7585H20.622V20.7585H21.622ZM21.622 24.4248H20.622V25.4248H21.622V24.4248ZM22.9857 19.7524H23.9857V19.7424L23.9855 19.7325L22.9857 19.7524ZM23.9708 24.4248V20.7585H21.9708V24.4248H23.9708ZM22.9708 19.7585H21.622V21.7585H22.9708V19.7585ZM20.622 20.7585V24.4248H22.622V20.7585H20.622ZM21.622 25.4248H22.9708V23.4248H21.622V25.4248ZM22.3001 18.1116C21.8744 18.1116 21.443 18.2519 21.1109 18.5684C20.7762 18.8874 20.6146 19.3177 20.6146 19.7524H22.6146C22.6146 19.8146 22.587 19.9244 22.4908 20.0162C22.3971 20.1054 22.3086 20.1116 22.3001 20.1116V18.1116ZM20.6146 19.7524C20.6146 20.6776 21.3459 21.3859 22.2927 21.3859V19.3859C22.317 19.3859 22.4071 19.3985 22.4957 19.4849C22.5821 19.5693 22.6146 19.674 22.6146 19.7524H20.6146ZM22.2927 21.3859C23.2243 21.3859 23.9857 20.6993 23.9857 19.7524H21.9857C21.9857 19.6651 22.0228 19.5584 22.1084 19.4768C22.1946 19.3946 22.2776 19.3859 22.2927 19.3859V21.3859ZM23.9855 19.7325C23.9771 19.3123 23.8204 18.8891 23.4894 18.5711C23.1583 18.2531 22.7277 18.1116 22.3001 18.1116V20.1116C22.2899 20.1116 22.1984 20.1042 22.1038 20.0135C22.0094 19.9227 21.9869 19.82 21.9859 19.7724L23.9855 19.7325ZM27.345 23.0611V24.0611H28.1258L28.3152 23.3036L27.345 23.0611ZM27.196 24.2758L27.5592 25.2075L28.3336 24.9056L28.1784 24.089L27.196 24.2758ZM27.0246 23.3741L28.007 23.1873L27.7963 22.0791L26.7214 22.4212L27.0246 23.3741ZM25.0871 23.0611V22.0611H23.9215L24.0987 23.2132L25.0871 23.0611ZM25.0722 22.152L24.0768 22.0556L23.9707 23.152H25.0722V22.152ZM26.1602 22.152V23.152H27.1602V22.152H26.1602ZM28.3152 23.3036C28.3596 23.1258 28.3972 22.8423 28.3972 22.5544H26.3972C26.3972 22.6184 26.3926 22.6839 26.3861 22.7402C26.379 22.8019 26.3723 22.8291 26.3749 22.8186L28.3152 23.3036ZM28.3972 22.5544C28.3972 21.8995 28.234 21.1856 27.7768 20.6137C27.2932 20.0088 26.5701 19.6765 25.7056 19.6765V21.6765C26.026 21.6765 26.1487 21.7801 26.2146 21.8626C26.307 21.9782 26.3972 22.2033 26.3972 22.5544H28.3972ZM25.7056 19.6765C24.7236 19.6765 23.9633 20.0933 23.4697 20.7083C23.0016 21.2917 22.8054 22.0093 22.8054 22.6289H24.8054C24.8054 22.3989 24.8848 22.1404 25.0296 21.96C25.149 21.8112 25.3388 21.6765 25.7056 21.6765V19.6765ZM22.8054 22.6289C22.8054 23.4241 23.0608 24.1798 23.6455 24.7313C24.223 25.2759 25.0001 25.5068 25.8248 25.5068V23.5068C25.3604 23.5068 25.1278 23.38 25.0178 23.2763C24.915 23.1794 24.8054 22.9962 24.8054 22.6289H22.8054ZM25.8248 25.5068C26.3599 25.5068 26.969 25.4376 27.5592 25.2075L26.8328 23.3441C26.5436 23.4568 26.1989 23.5068 25.8248 23.5068V25.5068ZM28.1784 24.089L28.007 23.1873L26.0422 23.5608L26.2136 24.4625L28.1784 24.089ZM26.7214 22.4212C26.5156 22.4866 26.2947 22.5157 26.026 22.5157V24.5157C26.443 24.5157 26.8778 24.4702 27.3278 24.327L26.7214 22.4212ZM26.026 22.5157C25.9629 22.5157 25.909 22.5101 25.8675 22.5024C25.8246 22.4944 25.8067 22.4863 25.8094 22.4875C25.8096 22.4876 25.8562 22.5081 25.9142 22.5698C25.9783 22.638 26.0515 22.753 26.0755 22.909L24.0987 23.2132C24.1944 23.8353 24.6647 24.1636 24.9795 24.3072C25.3138 24.4596 25.6878 24.5157 26.026 24.5157V22.5157ZM25.0871 24.0611H27.345V22.0611H25.0871V24.0611ZM26.0675 22.2483C26.0657 22.2676 26.0625 22.2799 26.0587 22.2909C26.0549 22.3018 26.0443 22.3288 26.0179 22.3643C25.99 22.4017 25.9404 22.4538 25.8628 22.4958C25.7814 22.5399 25.7003 22.5558 25.6385 22.5558V20.5558C25.0803 20.5558 24.6631 20.8347 24.4134 21.1703C24.1901 21.4704 24.101 21.8058 24.0768 22.0556L26.0675 22.2483ZM25.6385 22.5558C25.5869 22.5558 25.4977 22.5423 25.4006 22.4864C25.3063 22.4322 25.2461 22.362 25.2121 22.3079C25.1805 22.2577 25.1696 22.219 25.1659 22.2036C25.1621 22.1877 25.1602 22.1725 25.1602 22.152H27.1602C27.1602 21.9277 27.1138 21.5752 26.9052 21.2433C26.6591 20.852 26.2207 20.5558 25.6385 20.5558V22.5558ZM26.1602 21.152H25.0722V23.152H26.1602V21.152ZM28.1876 24.4248H27.1876V25.4248H28.1876V24.4248ZM29.5364 24.4248V25.4248H30.5364V24.4248H29.5364ZM29.5513 22.383L28.5811 22.1404L28.5665 22.199L28.559 22.2589L29.5513 22.383ZM30.6318 21.9582L30.4069 22.9326L31.6318 23.2153V21.9582H30.6318ZM30.6318 20.6988H31.6318V19.9033L30.8566 19.7245L30.6318 20.6988ZM29.3873 21.4217V22.4217H30.099L30.3322 21.7492L29.3873 21.4217ZM29.3575 21.4217L28.3606 21.5001L28.4331 22.4217H29.3575V21.4217ZM29.3053 20.7585L30.3023 20.68L30.2298 19.7585H29.3053V20.7585ZM28.1577 20.7585V19.7585H27.0819L27.1604 20.8314L28.1577 20.7585ZM28.1876 25.4248H29.5364V23.4248H28.1876V25.4248ZM30.5364 24.4248V22.614H28.5364V24.4248H30.5364ZM30.5364 22.614C30.5364 22.5773 30.5396 22.5385 30.5435 22.507L28.559 22.2589C28.548 22.3467 28.5364 22.4718 28.5364 22.614H30.5364ZM30.5214 22.6255C30.5105 22.6691 30.4885 22.7221 30.4502 22.7745C30.4121 22.8268 30.3679 22.8646 30.3283 22.8892C30.2534 22.9359 30.2215 22.921 30.289 22.921V20.921C29.9615 20.921 29.5981 20.988 29.2717 21.1911C28.9264 21.4059 28.6816 21.7385 28.5811 22.1404L30.5214 22.6255ZM30.289 22.921C30.324 22.921 30.3467 22.9228 30.3613 22.9245C30.3754 22.9261 30.3891 22.9285 30.4069 22.9326L30.8566 20.9838C30.6897 20.9453 30.5099 20.921 30.289 20.921V22.921ZM31.6318 21.9582V20.6988H29.6318V21.9582H31.6318ZM30.8566 19.7245C30.6398 19.6744 30.4885 19.6765 30.3635 19.6765V21.6765C30.3788 21.6765 30.3909 21.6765 30.402 21.6765C30.4128 21.6766 30.4208 21.6766 30.427 21.6767C30.4397 21.6769 30.4409 21.6772 30.4364 21.6769C30.4306 21.6764 30.4222 21.6756 30.4133 21.6742C30.4051 21.673 30.4021 21.6721 30.4069 21.6732L30.8566 19.7245ZM30.3635 19.6765C29.6909 19.6765 28.7985 20.0671 28.4425 21.0941L30.3322 21.7492C30.3454 21.711 30.358 21.6935 30.3625 21.6877C30.3672 21.6817 30.3702 21.6797 30.3715 21.6788C30.3737 21.6774 30.3763 21.6763 30.3786 21.6756C30.3818 21.6747 30.3781 21.6765 30.3635 21.6765V19.6765ZM29.3873 20.4217H29.3575V22.4217H29.3873V20.4217ZM30.3544 21.3433L30.3023 20.68L28.3084 20.8369L28.3606 21.5001L30.3544 21.3433ZM29.3053 19.7585H28.1577V21.7585H29.3053V19.7585ZM27.1604 20.8314C27.18 21.0984 27.1876 21.4181 27.1876 21.9955H29.1876C29.1876 21.4104 29.1803 21.0296 29.1551 20.6855L27.1604 20.8314ZM27.1876 21.9955V24.4248H29.1876V21.9955H27.1876Z\",\n fill: \"current\",\n mask: \"url(#path-3-outside-2_4416_401)\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEsvLogo, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ESVLogo.49dea5e2.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAccount = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAccount, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/account.1e82003d.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\n\nexport default function OnboardingWelcomePageCard({\n className = \"\", Icon, title, description,\n}) {\n return (\n
\n {Icon}\n

{title}

\n

\n { description }\n

\n
\n );\n}\n","import React from \"react\";\nimport \"./OnboardingWelcomePage.css\";\nimport GroupPNG from \"../../assets/images/onboarding/Group.png\";\nimport { ReactComponent as ContactInfo } from \"../../assets/images/onboarding/ContactInfo.svg\";\nimport { ReactComponent as Customer } from \"../../assets/images/onboarding/customer.svg\";\nimport { ReactComponent as AccountCreation } from \"../../assets/images/onboarding/AccountCreation.svg\";\nimport { ReactComponent as ESVLogo } from \"../../assets/images/onboarding/ESVLogo.svg\";\nimport StyledButton from \"../Common/UIComponents/StyledButton\";\nimport OnboardingWelcomePageCard from \"./OnboardingWelcomePageCard\";\n\nexport default function OnboardingWelcomePage({\n setDisplay, customerName, CustomerExist, addCompany = false,\n}) {\n return (\n
\n
\n

\n {\n addCompany && !customerName ? \"Welcome\" : `Welcome, ${customerName}`\n }\n

\n

\n {addCompany ? \"You are 3-steps away from creating a new company\" : (\n <>\n {`You are \n ${CustomerExist ? 3 : 4}-steps away from setting up Your`}\n ES\n V \n account\n \n )}\n

\n
\n }\n title=\"Customer Info\"\n description={(\n <>\n Fill up the basic\n
\n information of company\n \n )}\n />\n {(!CustomerExist || addCompany) && (\n }\n title=\"Contact Info\"\n description=\"Information about contact person\"\n />\n )}\n\n
\n
\n }\n title=\"ESV\"\n description={(\n <>\n Product details and\n
\n Environment details\n \n )}\n />\n {!addCompany && (\n }\n title=\"Account Creation\"\n description=\"Creating your credentials\"\n />\n )}\n
\n setDisplay(false)}>\n Lets get started\n \n
\n
\n \"\"\n
\n
\n );\n}\n","var _rect, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEsv = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 35,\n height: 28,\n viewBox: \"0 0 35 28\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n x: -3,\n y: 1.63696,\n width: 38,\n height: 24,\n fill: \"url(#pattern0_5118_588)\"\n })), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"pattern\", {\n id: \"pattern0_5118_588\",\n patternContentUnits: \"objectBoundingBox\",\n width: 1,\n height: 1\n }, /*#__PURE__*/React.createElement(\"use\", {\n xlinkHref: \"#image0_5118_588\",\n transform: \"matrix(0.00675676 0 0 0.0108696 0 -0.0317726)\"\n })), /*#__PURE__*/React.createElement(\"image\", {\n id: \"image0_5118_588\",\n width: 148,\n height: 188,\n xlinkHref: \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJQAAAC8CAYAAACew4ePAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABWiSURBVHgB7Z1Bc9vGkoB7AEnWbr3dMDc72VpDhziuSiWifoGpXxD58FLrOHmWao97sHzfKtuXvcr+BaKSZ2dr86os/QIxv8CwU6l17IOQbGLrtspz8sqiiJnXDYAyBQ5ADIQh4bC/KkYxORiCQKO7p7tnBoBhGIZhGIZhGIZhGIZhGIZhGIZhmDoioGZ4zdUGwKvGETgNgS8F8mAWX4H/3wGMGa/5bx797cFM9HcGegHAPJ5L+wAYLRMXKBKgQzhaFaAWFUCL3spp7gsQ+FLfzMLcdpU31vA8onPBV4CX8BsXz+kn/8+dqJ8He435I3cFyiDC4MkfFzpFm1/4y48rjoQGGOJC6H/3yYIPFpiYQP1L87NWCOomgGpBCVCwSJi2Jcze3vfbAZTktOcxQIDn1HHPvbvzD//+H5ugzG80cvD0j+ffLtKQBHeu5/w/lMABuWwiuCaMXaDONlc9AUebFdzAPihY6vYL/6s7JgdZOI8E0fnDf/7XI6HgOpTAmZlbeHL5XDCq3cWv/68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UT1bM4/s0/oKo6bEO45YrmMyOE2twwanWneAiJ/qEwJFfsuFzUe3MfVxM/s7RYtWWgHHHfgg/+nD1MzdZ2sftqEEUQWCZjLoQIvgyecfdeANYCoDm0/XFm8ZVxfks/Xs2ofrUJKcNRCO+4c3hKmNlMczgOUyaGJBBhxEM46vfbQKpyBJxXSyPndklPt7I5jq1AulMCj568hwIa7eVIUcarr5JEhdPI5mEUMVZIxA655qSVMLp7xORCkamGmCqzyp4tSHkKiJXHHghqH/WzTLeKnWwUWGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRiGYRjGGn8HzcbBqic4gZUAAAAASUVORK5CYII=\"\n }))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEsv, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ESV.e92de311.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgContactInfo = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 22C2 17.5817 5.58172 14 10 14C14.4183 14 18 17.5817 18 22H2ZM10 13C6.685 13 4 10.315 4 7C4 3.685 6.685 1 10 1C13.315 1 16 3.685 16 7C16 10.315 13.315 13 10 13ZM20 17H24V19H20V17ZM17 12H24V14H17V12ZM19 7H24V9H19V7Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgContactInfo, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/Contact Info.183647b8.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCustomerInfo = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_4857_390)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M21 20H23V22H1V20H3V3C3 2.73478 3.10536 2.48043 3.29289 2.29289C3.48043 2.10536 3.73478 2 4 2H20C20.2652 2 20.5196 2.10536 20.7071 2.29289C20.8946 2.48043 21 2.73478 21 3V20ZM8 11V13H11V11H8ZM8 7V9H11V7H8ZM8 15V17H11V15H8ZM13 15V17H16V15H13ZM13 11V13H16V11H13ZM13 7V9H16V7H13Z\",\n fill: \"#26ABE1\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_4857_390\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCustomerInfo, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/CustomerInfo.0fd8a5e9.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { ReactComponent as Account } from \"../../../assets/images/onboarding/account.svg\";\nimport { ReactComponent as ESV } from \"../../../assets/images/onboarding/ESV.svg\";\nimport { ReactComponent as Contact } from \"../../../assets/images/onboarding/Contact Info.svg\";\nimport { ReactComponent as CustomerInfo } from \"../../../assets/images/onboarding/CustomerInfo.svg\";\nimport { ReactComponent as ESVLogo } from \"../../../assets/images/onboarding/ESVLogo.svg\";\nimport { ReactComponent as AccountCreation } from \"../../../assets/images/onboarding/AccountCreation.svg\";\nimport { ReactComponent as ContactInfo } from \"../../../assets/images/onboarding/ContactInfo.svg\";\n\nexport const RenderIconOnNextClick = function renderStepsIcon({ Inx }) {\n switch (Inx) {\n case 0:\n return ;\n case 1:\n return ;\n case 2:\n return ;\n case 3:\n return ;\n default:\n return ;\n }\n};\n\nexport const RenderIconOnNextClickForCustomerExist = function renderStepsIcon({ Inx }) {\n switch (Inx) {\n case 0:\n return ;\n case 1:\n return ;\n case 2:\n return ;\n default:\n return ;\n }\n};\n\nexport const RenderIconOnPreviousClick = function renderStepsIcon({ Inx }) {\n switch (Inx) {\n case 0:\n return ;\n case 1:\n return ;\n case 2:\n return ;\n case 3:\n return ;\n default:\n return ;\n }\n};\n\nexport const RenderIconOnPreviousClickForCustomerExist = function renderStepsIcon({ Inx }) {\n switch (Inx) {\n case 0:\n return ;\n case 1:\n return ;\n case 2:\n return ;\n default:\n return ;\n }\n};\n","/* eslint-disable import/prefer-default-export */\nimport axios from \"axios\";\nimport { AES } from \"crypto-js\";\nimport { AES_128_BIT_KEY, API_URL } from \"../utils/Constant\";\n\n/**\n * Get company name\n * @param {String} customerID\n * @return {Object} {success, contact_name, email, company, address, city, zip, state, telephone}\n */\nexport const getCustomerInfo = async (customerID) => {\n try {\n const resp = await axios.get(`${API_URL}/customerinfo/`, {\n params: { customer_id: customerID },\n });\n\n const result = {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n ...resp.data.result,\n };\n\n return result;\n } catch (e) {\n // console.log(\"error from getCompanyName\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Submit the invite form and send the invitation email to the customer's email address\n * @param {Object} payload\n * @returns {Object} { success, message}\n */\nexport const sendCustomerInvite = async (payload) => {\n try {\n const {\n sales_email,\n csm_email,\n company_name,\n customer_name,\n customer_email,\n customer_id,\n momentExpirationDate,\n webBaseURL,\n } = payload;\n const url_params = `sales_email=${sales_email}&csm_email=${csm_email}&customer_id=${customer_id ?? \"\"}&company_name=${company_name}&customer_name=${customer_name}&customer_email=${customer_email}&expiration=${momentExpirationDate.format()}`;\n const encrypted_params = AES.encrypt(url_params, AES_128_BIT_KEY).toString();\n const url = `${webBaseURL}/onboarding?${encrypted_params}`;\n const params = {\n customer_id: customer_id ? decodeURIComponent(customer_id) : undefined,\n customer_name: decodeURIComponent(customer_name),\n customer_email: decodeURIComponent(customer_email),\n company: decodeURIComponent(company_name),\n sales: decodeURIComponent(sales_email),\n csm: decodeURIComponent(csm_email),\n url,\n expires_after: `${momentExpirationDate.format(\"MM/DD/YYYY\")} UTC`,\n };\n const response = await axios.post(`${API_URL}/inviteadmin/`, params);\n const data = await response.data;\n return { success: data.message === \"Success\", ...data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Submit onboarding form\n * @param {Object} payload\n * @returns {Object} { success, message}\n */\nexport const submitOnboardingForm = async (payload) => {\n try {\n const resp = await axios.post(`${API_URL}/usersignuponboard/`, {\n ...payload,\n });\n\n return { success: true, message: resp.data.message };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Submit request form for environment and product\n * @param {Object} payload\n * @returns {Object} { success, message}\n */\n\nexport const submitOnboardingFields = async (payload) => {\n try {\n const resp = await axios.post(`${API_URL}/onboardingfields/`, {\n ...payload,\n });\n\n return { success: true, message: resp.data.message };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n","import React, { useState } from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport {\n Checkbox,\n Form,\n Input,\n Spin,\n} from \"antd\";\nimport \"../CompanyContactForm.css\";\nimport \"./AddressSection.css\";\nimport useFormInstance from \"antd/es/form/hooks/useFormInstance\";\nimport { toast } from \"react-toastify\";\n\nimport { getCustomerInfo } from \"../../../../../../actions/onboarding\";\n\nexport default function AddressSection({\n label, namePath = [\"address\"], disabled = false, addCompany, companyName,\n}) {\n const [loading, setLoading] = useState(false);\n const form = useFormInstance();\n\n const handleCheckAdd = async (e) => {\n // const values = form.getFieldValue([\"address\"]);\n const checked = e.target.checked;\n\n if (checked) {\n try {\n setLoading(true);\n const CustomerInfo = await getCustomerInfo();\n\n if (CustomerInfo.message === \"Success\") {\n let parsedAddress = {\n city: \"\", state: \"\", country: \"\", zipCode: \"\",\n };\n let parsedStreet = { street: \"\", line_2: \"\" };\n\n // Parsing for the same address\n if (CustomerInfo?.address_2) {\n const CityState = CustomerInfo.address_2.split(\", \") || [];\n const CountryZip = CityState[2]?.split(\" \") || [];\n\n // if country name has more than 1 word.\n if (CountryZip?.length > 2 && typeof CountryZip[1] === \"string\") {\n for (let i = 0; i <= CountryZip.length - 2; i++) {\n parsedAddress = {\n country: `${parsedAddress.country} ${CountryZip[i]}`,\n };\n }\n } else {\n parsedAddress = {\n country: CountryZip[0],\n };\n }\n parsedAddress = {\n ...parsedAddress,\n city: CityState[0] || \"\",\n state: CityState[1] || \"\",\n // country: CountryZip[0] || \"\",\n zipCode: CountryZip[CountryZip.length - 1] || \"\",\n };\n }\n\n if (CustomerInfo?.address_1) {\n const Street = CustomerInfo.address_1.split(\", \") || [];\n parsedStreet = {\n street: Street[0] || \"\",\n line_2: Street[1] || \"\",\n };\n }\n\n // Auto fill the address value same as current company address\n form.setFieldValue([\"address\"], {\n street: parsedStreet?.street || \"\",\n line_2: parsedStreet?.line_2 || \"\",\n zipcode: parsedAddress?.zipCode || \"\",\n city: parsedAddress?.city || \"\",\n state: parsedAddress?.state || \"\",\n country: parsedAddress?.country || \"\",\n });\n form.validateFields([[\"address\"]], { recursive: true, dirty: true });\n } else {\n form.setFieldValue(\"same_address\", false);\n toast.error(\"Failed to fetch Address!\");\n }\n setLoading(false);\n } catch (error) {\n form.setFieldValue(\"same_address\", false);\n toast.error(\"Failed to fetch Address!\");\n setLoading(false);\n }\n } else {\n form.setFieldValue(\"same_address\", false);\n }\n };\n\n return (\n {label} : undefined}\n >\n\n {addCompany && (\n <>\n {loading ? (\n
\n } />\n \n Do you want to use the same Company Address as\n {\" \"}\n {companyName}\n ?\n \n
\n )\n : (\n \n \n Do you want to use the same Company Address as\n {\" \"}\n {companyName}\n ?\n \n \n )}\n \n )}\n Street Address}\n rules={[\n {\n required: !disabled, message: \"\",\n },\n ]}\n className=\"AddressSection__FieldRow\"\n >\n \n \n Street Address 2 (optional)}\n className=\"AddressSection__FieldRow\"\n >\n \n \n
\n Zip Code}\n rules={[\n {\n required: !disabled, message: \"\",\n },\n ]}\n className=\"AddressSection__ShortInput\"\n >\n \n \n City}\n rules={[\n {\n required: !disabled, message: \"\",\n },\n ]}\n className=\"AddressSection__ShortInput\"\n >\n \n \n\n State/Province}\n rules={[\n {\n required: !disabled, message: \"\",\n },\n ]}\n className=\"AddressSection__ShortInput\"\n >\n \n \n\n Country}\n rules={[\n {\n required: !disabled, message: \"\",\n },\n ]}\n className=\"AddressSection__ShortInput\"\n >\n \n \n
\n\n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgClearfield2 = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 10,\n height: 10,\n viewBox: \"0 0 10 10\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8.18513 0.4L5.00113 3.585L1.81513 0.399C1.71987 0.30584 1.59176 0.253926 1.45851 0.254487C1.32527 0.255048 1.19761 0.30804 1.10313 0.402L0.40313 1.103C0.355211 1.14897 0.317009 1.20409 0.29079 1.2651C0.264571 1.3261 0.250869 1.39175 0.250496 1.45815C0.250123 1.52455 0.263087 1.59035 0.288619 1.65165C0.314151 1.71295 0.351731 1.7685 0.399131 1.815L3.58413 4.999L0.40013 8.185C0.307103 8.2804 0.255368 8.40858 0.256116 8.54182C0.256865 8.67506 0.310036 8.80266 0.40413 8.897L1.10413 9.597C1.31013 9.804 1.62013 9.797 1.81613 9.601L5.00213 6.416L8.18613 9.601C8.28152 9.69403 8.40971 9.74576 8.54295 9.74501C8.67619 9.74427 8.80379 9.69109 8.89813 9.597L9.59913 8.897C9.64699 8.85097 9.68511 8.79579 9.71124 8.73475C9.73737 8.67371 9.75098 8.60804 9.75126 8.54163C9.75154 8.47523 9.73849 8.40945 9.71287 8.34819C9.68725 8.28693 9.64959 8.23144 9.60213 8.185L6.41613 4.999L9.60213 1.815C9.69529 1.71974 9.74721 1.59163 9.74664 1.45838C9.74608 1.32514 9.69309 1.19748 9.59913 1.103L8.89913 0.403C8.85221 0.354972 8.79624 0.316722 8.73445 0.290461C8.67266 0.264199 8.60627 0.250447 8.53913 0.25C8.47331 0.250538 8.40825 0.264065 8.34768 0.289806C8.2871 0.315547 8.2322 0.352994 8.18613 0.4H8.18513Z\",\n fill: \"#182534\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgClearfield2, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/clearfield_2.6f2c8be3.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState } from \"react\";\n\nimport {\n Checkbox,\n Form,\n Input,\n} from \"antd\";\nimport \"../CompanyContactForm.css\";\nimport \"./BillingAddressSection.css\";\n// import { useWatch } from \"antd/es/form/Form\";\nimport useFormInstance from \"antd/es/form/hooks/useFormInstance\";\n\nimport AddressSection from \"./AddressSection\";\n\nimport { ReactComponent as CloseIcon } from \"../../../../../../assets/images/onboarding/clearfield_2.svg\";\n\nexport default function BillingAddressSection({\n initialValues,\n emailValidator,\n phoneValidator,\n addressData,\n}) {\n const form = useFormInstance();\n const [sameAsAddress, setSameAsAddress] = useState(initialValues?.same_as_address);\n // const addressValues = useWatch([\"address\"]);\n const [addressValues] = useState(addressData);\n\n /**\n * On address values change, update billing address if it's the same as address\n */\n useEffect(() => {\n if (form && sameAsAddress) {\n form.setFieldValue([\"billing\", \"address\"], addressValues);\n if (addressValues) {\n Object.keys(addressValues).forEach((key) => {\n if (addressValues[key] !== undefined) {\n form.validateFields([[\"billing\", \"address\", key]]);\n }\n });\n }\n }\n }, [form, addressValues]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const handleCheckboxOnChange = (e) => {\n const checked = e.target.checked;\n if (checked) {\n form.setFieldValue([\"billing\", \"address\"], addressValues); // autofill address values\n form.validateFields([[\"billing\", \"address\"]], { recursive: true, dirty: true });\n } else {\n form.setFieldValue([\"billing\", \"address\"], { // clear autofill\n street: \"\",\n city: \"\",\n state: \"\",\n zipcode: \"\",\n country: \"\",\n });\n }\n setSameAsAddress(checked);\n };\n\n return (\n
\n \n
\n \n

Setup your billing information

\n
\n\n Bill To}\n rules={[\n {\n required: true, message: \"\",\n },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n
\n A/P Contact}\n rules={[\n {\n required: true, message: \"\",\n },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n \n Email Address}\n rules={[\n {\n required: true, message: \"\",\n },\n {\n validator: emailValidator,\n },\n { max: 500, message: \"Email cannot be longer than 500 characters\" },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n \n Phone Number}\n rules={[\n {\n validator: phoneValidator,\n },\n { max: 100, message: \"Phone number cannot be longer than 100 characters\" },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n \n \n\n
\n \n

Billing Information

\n
\n\n {/*

Is your billing address same as address

*/}\n\n \n Billing address same as company address\n \n \n
\n );\n}\n","import React from \"react\";\nimport { Form } from \"antd\";\nimport \"./MyForm.css\";\n\nexport default function MyForm(props) {\n const { children, className, ...restProps } = props;\n return (\n \n {children}\n \n );\n}\n","import React from \"react\";\n\nimport {\n Form,\n Input,\n} from \"antd\";\n\nimport \"../CompanyContactForm.css\";\nimport \"../../CompanyInfoForm.css\";\nimport { ReactComponent as CloseIcon } from \"../../../../../../assets/images/onboarding/clearfield_2.svg\";\n\nexport default function ContactInfoSection({\n emailValidator,\n phoneValidator,\n}) {\n return (\n \n
\n
Contact Info
\n Contact Name}\n rules={[\n {\n required: true, message: \"\",\n },\n { max: 50, message: \"Contact name cannot be longer than 50 characters\" },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n \n Position}\n rules={[\n {\n required: true, message: \"\",\n },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n \n Email Address}\n rules={[\n {\n required: true, message: \"\",\n },\n {\n validator: emailValidator,\n },\n { max: 500, message: \"Email cannot be longer than 500 characters\" },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n \n Phone Number}\n rules={[\n {\n validator: phoneValidator,\n },\n { max: 100, message: \"Phone number cannot be longer than 100 characters\" },\n ]}\n className=\"CompanyContactForm__ContactInfoSection_Fields\"\n >\n }} />\n \n
\n
\n );\n}\n","import React from \"react\";\nimport {\n Form,\n} from \"antd\";\nimport \"./FormButtons.css\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\n\nexport default function FormButtons({\n nextButtonText = \"Next\", handleBack, showBack = true, loading = false,\n}) {\n return (\n \n {showBack && (\n \n Previous\n \n )}\n \n {nextButtonText}\n \n \n );\n}\n","import { useEffect } from \"react\";\n\n/**\n * Custom hook to handle click on step. Save current form values.\n * @param {String} FORM_NAME current form name\n * @param {import(\"antd\").FormInstance} form ant design form instance\n * @param {Object} stepChangeInProgress { diff: Number }\n * @param {Function} handleFormStepChange updates state with current form data, changes step\n * @param {Function} formatValues function to format values before saving\n */\nconst useHandleStepChange = (FORM_NAME, form, stepChangeInProgress, handleFormStepChange, formatValues) => {\n useEffect(() => {\n if (stepChangeInProgress && form) {\n const { diff } = stepChangeInProgress;\n const formData = form.getFieldValue();\n handleFormStepChange(FORM_NAME, formatValues ? formatValues(formData) : formData, diff);\n }\n }, [stepChangeInProgress, form]); // eslint-disable-line react-hooks/exhaustive-deps\n};\n\nexport default useHandleStepChange;\n","import React from \"react\";\nimport { Form } from \"antd\";\nimport { useForm } from \"antd/es/form/Form\";\n// import AddressSection from \"./Components/AddressSection\";\nimport BillingAddressSection from \"./Components/BillingAddressSection\";\nimport MyForm from \"../../../MyForm\";\nimport ContactInfoSection from \"./Components/ContactInfoSection\";\nimport FormButtons from \"../ReusableComponents/FormButtons\";\nimport useHandleStepChange from \"../../useHandleStepChange\";\n\nexport default function CompanyContactForm({\n initialValues,\n companyName,\n emailValidator,\n phoneValidator,\n onNextButton,\n onBackButton,\n onFinishFailed,\n stepChangeInProgress,\n handleFormStepChange,\n addressData,\n}) {\n const FORM_NAME = \"company_contact_form\";\n const [form] = useForm();\n\n /** Hook that handles form saving + step change when step is clicked */\n useHandleStepChange(FORM_NAME, form, stepChangeInProgress, handleFormStepChange);\n\n const layout = {\n labelCol: {\n span: 5,\n },\n wrapperCol: {\n span: 24,\n },\n layout: \"vertical\",\n };\n\n return (\n onNextButton(FORM_NAME, values)}\n onFinishFailed={onFinishFailed}\n className=\"OnboardingForm\"\n >\n
\n \n \n
\n \n onBackButton(FORM_NAME, form.getFieldValue())}\n />\n \n \n );\n}\n","/**\n * Returns if string is a valid email or not\n * @param {String} string string to validate\n * @return {Boolean} true if valid email, false if not\n */\nexport const validateEmail = (string) => {\n const emailRegex = /^[A-Za-z0-9_!#$%&'*+/=?`{|}~^-]+(?:\\.[A-Za-z0-9_!#$%&'*+/=?`{|}~^-]+)*@[A-Za-z0-9-]+(?:\\.[A-Za-z0-9-]+)+$/;\n return emailRegex.test(string);\n};\n\n/**\n * Returns if string is a valid email username or not\n * @param {String} string string to validate\n * @return {Boolean} true if valid email username, false if not\n */\nexport const validateEmailUsername = (string) => {\n const emailUsernameRegex = /^[A-Za-z0-9_!#$%&'*+/=?`{|}~^-]+(?:\\.[A-Za-z0-9_!#$%&'*+/=?`{|}~^-]+)*$/;\n return emailUsernameRegex.test(string);\n};\n\n/**\n * Returns if string is a valid email domain or not\n * @param {String} string string to validate\n * @return {Boolean} true if valid email domain, false if not\n */\nexport const validateEmailDomain = (string) => {\n const emailDomainRegex = /^[A-Za-z0-9-]+(?:\\.[A-Za-z0-9-]+)+$/;\n return emailDomainRegex.test(string);\n};\n\n/**\n * Returns if string is a valid phone number or not\n * @param {String} string string to validate\n * @return {Boolean} true if valid phone number, false if not\n */\nexport const validatePhoneNumber = (string) => {\n const phoneRegex = /^(?:[+(])*(?=[0-9])(?:[.0-9 +()-])+$/;\n return phoneRegex.test(string);\n};\n\n/**\n * Returns if password meets requirements\n * @param {String} password string to check\n * @return {Boolean} true if meets requirements, false if not\n */\nexport const validatePassword = (password) => {\n const passwordRegex = /^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\\s).{6,}$/;\n return passwordRegex.test(password);\n};\n","import React, { useRef, useState } from \"react\";\n\nimport { ExclamationCircleOutlined } from \"@ant-design/icons\";\nimport {\n Form,\n Input,\n Select,\n Tag,\n // Tooltip,\n} from \"antd\";\nimport { useForm } from \"antd/es/form/Form\";\nimport { debounce } from \"lodash\";\n\nimport MyForm from \"../../MyForm\";\nimport AddressSection from \"./CompanyContactForm/Components/AddressSection\";\nimport FormButtons from \"./ReusableComponents/FormButtons\";\n\nimport { checkUser } from \"../../../../utils/common\";\nimport { validateEmail } from \"../../../Common/utils/validationUtils\";\n\nimport { ReactComponent as CloseIcon } from \"../../../../assets/images/onboarding/clearfield_2.svg\";\n\nimport \"./CompanyInfoForm.css\";\n\nexport default function CompanyInfoForm({\n initialValues, onNextButton, onFinishFailed, isExistingCustomer, addCompany, isSupport, userCredential,\n // stepChangeInProgress,\n // handleFormStepChange,\n}) {\n const FORM_NAME = \"company_info_form\";\n const [form] = useForm();\n const emailValidationCache = useRef(new Map()); // store strings that we've validated before to cut down on computation time\n const [loading, setLoading] = useState(false);\n // /** Hook that handles form saving + step change when step is clicked */\n // useHandleStepChange(FORM_NAME, form, stepChangeInProgress, handleFormStepChange);\n\n const layout = {\n labelCol: {\n span: 24,\n },\n wrapperCol: {\n span: 24,\n },\n layout: \"vertical\",\n };\n\n /**\n * First check if string is in emailValidationCache. If it is, return the cached value. Else, run validateEmail and store the result in cache.\n * @param {String} string email input\n * @returns {Boolean} true if valid else false\n */\n const cachedValidateEmail = (string) => {\n if (emailValidationCache.current.has(string)) { // check if string is in cache already\n return emailValidationCache.current.get(string);\n }\n const isValid = validateEmail(string); // if not in cache, call validateEmail and save email in cache\n emailValidationCache.current.set(string, isValid);\n return isValid;\n };\n\n /**\n * If removed value is the admin's email, add it back and revalidate (to get rid of empty error)\n * @param {String} value removed value\n */\n const onDeselect = (value) => {\n const isAdminEmail = value === initialValues.distribution_list[0];\n if (isAdminEmail) {\n form.setFieldValue(\"distribution_list\", [value]);\n form.validateFields([\"distribution_list\"]);\n }\n };\n\n const tagRender = ({ label, onClose }) => {\n const onPreventMouseDown = (e) => {\n e.preventDefault();\n e.stopPropagation();\n };\n\n const isAdminEmail = (addCompany && isSupport) ? (label === form.getFieldValue(\"customer_email\")) : (label === initialValues.distribution_list[0]);\n const validEmail = cachedValidateEmail(label);\n return (\n // \n }\n onMouseDown={onPreventMouseDown}\n onClose={onClose}\n closable={!isAdminEmail}\n className={isAdminEmail ? \"CompanyInfoForm__Tag_Admin\" : \"CompanyInfoForm__Tag\"}\n closeIcon={}\n iconSize=\"small\"\n >\n {label}\n \n // \n );\n };\n\n const distributionListValidator = async (_, emails) => {\n if (!emails?.length || emails.every((email) => cachedValidateEmail(email))) {\n return Promise.resolve();\n }\n return Promise.reject(new Error(\"Please remove invalid email(s).\"));\n };\n\n const maxLengthValidator = async (_, emails) => {\n if (emails?.length) {\n const emailsString = emails.map((email) => (email ? email.trim() : \"\")).join(\",\");\n if (emailsString.length > 500) {\n return Promise.reject(new Error(\"Distribution list character limit exceeded. Please remove email(s).\"));\n }\n }\n return Promise.resolve();\n };\n\n const updatingDistributions = async (email) => {\n const currentDistributions = form.getFieldValue(\"distribution_list\");\n const updatedDistributions = [...currentDistributions];\n if (addCompany && isSupport) {\n updatedDistributions[0] = email; // update the first email with the new admin email\n form.setFieldsValue({ distribution_list: updatedDistributions });\n }\n return Promise.resolve();\n };\n\n const debouncedUpdatingDistributions = debounce(updatingDistributions, 500);\n\n const userExistsValidation = async (_, email) => {\n setLoading(true);\n try {\n const userExists = await checkUser(email);\n if (userExists.success) {\n form.setFieldsValue({ customer_name: userExists.user_name });\n setLoading(false);\n return Promise.resolve();\n }\n form.setFieldsValue({ customer_name: \"\" });\n setLoading(false);\n if (userExists.message === \"Something went wrong.\") {\n return Promise.reject(new Error(\"Failed to check user existence.\"));\n }\n return Promise.reject(new Error(\"User does not exist. Please use a existing email.\"));\n } catch (error) {\n setLoading(false);\n return Promise.reject(new Error(\"Failed to check user existence.\"));\n }\n };\n\n const nextStepHandler = (values) => {\n onNextButton(FORM_NAME, values);\n };\n\n return (\n nextStepHandler(values)}\n onFinishFailed={onFinishFailed}\n className=\"OnboardingForm\"\n >\n
\n
Customer Info
\n\n Company name}\n rules={[\n {\n required: true,\n message: \"\",\n },\n ]}\n >\n }} disabled={addCompany ? false : isExistingCustomer} />\n \n {(isExistingCustomer || addCompany) && (\n {addCompany ? \"Admin Email\" : \"Email\"}}\n rules={[\n {\n required: true,\n message: \"\",\n },\n {\n validator: isExistingCustomer ? undefined : userExistsValidation,\n // validateTrigger: \"onBlur\",\n },\n ]}\n >\n }} onChange={(e) => debouncedUpdatingDistributions(e.target.value)} placeholder=\"Enter Admin Email\" />\n \n )}\n Admin Name}\n rules={[\n {\n required: true,\n message: \"\",\n },\n ]}\n >\n \n \n\n {(!isExistingCustomer || addCompany) && (\n Distribution List}\n rules={[\n {\n required: true,\n message: \"\",\n },\n {\n validator: distributionListValidator,\n },\n {\n validator: maxLengthValidator,\n },\n ]}\n >\n {\n if (form.getFieldValue(\"distribution_list\").length === 0 && value.length === 0) {\n form.setFieldsValue({ distribution_list: [form.getFieldValue(\"customer_email\")] });\n }\n }}\n className=\"CompanyInfoForm__TagSelect\"\n />\n \n )}\n { (!isExistingCustomer || addCompany) && (\n <>\n
\n \n

Company address

\n
\n \n \n )}\n\n
\n \n \n \n \n );\n}\n","import React from \"react\";\nimport \"./StyledRadioGroup.css\";\nimport { Radio } from \"antd\";\n\nexport default function StyledRadioGroup({ // same props as AntD Radio.Group\n buttonStyle,\n defaultValue,\n disabled,\n name,\n options,\n optionType,\n size,\n value,\n onChange,\n className = \"\",\n children,\n}) {\n return (\n \n {children}\n \n );\n}\n","import React from \"react\";\nimport { Tooltip } from \"antd\";\nimport \"./StyledTooltip.css\";\n\nexport default function StyledTooltip(\n {\n title = \"\",\n placement = \"top\",\n showArrow = true,\n children,\n className = \"\",\n open = null,\n },\n) {\n return (\n \n {children}\n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgClearField = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 11,\n height: 10,\n viewBox: \"0 0 11 10\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8.86824 0.4L5.68424 3.585L2.49824 0.399C2.40297 0.30584 2.27486 0.253926 2.14162 0.254487C2.00838 0.255048 1.88071 0.30804 1.78624 0.402L1.08624 1.103C1.03832 1.14897 1.00011 1.20409 0.973896 1.2651C0.947677 1.3261 0.933975 1.39175 0.933602 1.45815C0.933229 1.52455 0.946192 1.59035 0.971724 1.65165C0.997256 1.71295 1.03484 1.7685 1.08224 1.815L4.26724 4.999L1.08324 8.185C0.990208 8.2804 0.938473 8.40858 0.939222 8.54182C0.93997 8.67506 0.993142 8.80266 1.08724 8.897L1.78724 9.597C1.99324 9.804 2.30324 9.797 2.49924 9.601L5.68524 6.416L8.86924 9.601C8.96463 9.69403 9.09281 9.74576 9.22606 9.74501C9.3593 9.74427 9.48689 9.69109 9.58124 9.597L10.2822 8.897C10.3301 8.85097 10.3682 8.79579 10.3943 8.73475C10.4205 8.67371 10.4341 8.60804 10.4344 8.54163C10.4346 8.47523 10.4216 8.40945 10.396 8.34819C10.3704 8.28693 10.3327 8.23144 10.2852 8.185L7.09924 4.999L10.2852 1.815C10.3784 1.71974 10.4303 1.59163 10.4297 1.45838C10.4292 1.32514 10.3762 1.19748 10.2822 1.103L9.58224 0.403C9.53532 0.354972 9.47935 0.316722 9.41755 0.290461C9.35576 0.264199 9.28938 0.250447 9.22224 0.25C9.15642 0.250538 9.09136 0.264065 9.03078 0.289806C8.9702 0.315547 8.91531 0.352994 8.86924 0.4H8.86824Z\",\n fill: \"#182534\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgClearField, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/clearField.932e6485.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState } from \"react\";\n\nimport { MinusCircleOutlined, PlusOutlined } from \"@ant-design/icons\";\nimport {\n // Button,\n Form,\n Input,\n} from \"antd\";\nimport { useWatch } from \"antd/es/form/Form\";\nimport useFormInstance from \"antd/es/form/hooks/useFormInstance\";\n\nimport \"./EditableFields.css\";\nimport StyledButton from \"../../../../../Common/UIComponents/StyledButton\";\n\nimport { ReactComponent as CloseIcon } from \"../../../../../../assets/images/onboarding/clearField.svg\";\n\nconst INVALID_CHARS = [\"\\u2022\", \"\\u007C\"];\nconst INVALID_CHARS_ESCAPED = [\"\\u{2022}\", \"\\u{007C}\"];\n\nexport default function EditableFields({\n getJsonFieldName,\n onGetData = () => {},\n removableFieldIndex = undefined,\n fieldLimit = 6,\n disabled,\n\n}) {\n const form = useFormInstance();\n const fieldsList = useWatch([\"editable_fields\"]);\n const [validating, setValidating] = useState(false);\n\n const handleValidateOnListChange = async () => {\n setValidating(true);\n form.validateFields([\"editable_fields\"], { recursive: true }).then(() => { // run validation on all items in array (need to recheck for duplicates when a field is removed)\n setValidating(false);\n })\n .catch(() => {\n /*\n errorInfo:\n {\n values: {\n username: 'username',\n password: 'password',\n },\n errorFields: [\n { name: ['password'], errors: ['Please input your Password!'] },\n ],\n outOfDate: false,\n }\n */\n setValidating(false);\n });\n };\n\n /** Validate on change, needed for duplicate checking */\n useEffect(() => {\n if (form && fieldsList) {\n handleValidateOnListChange();\n }\n // eslint-disable-next-line no-unused-expressions\n onGetData?.(fieldsList);\n }, [form, fieldsList]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** on key down in input, check if key is an invalid char, if yes, don't let user input key\n * call onKeyDown from props\n * @param {Event} e KeyDown event\n */\n const onKeyDown = (e) => {\n if (INVALID_CHARS.includes(e.key)) {\n e.preventDefault();\n }\n };\n\n const escapeRegExp = (str) => str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\"); // $& means the whole matched string\n\n return (\n \n {(fields, { add, remove }, { errors }) => (\n <>\n {fields.map((field, index) => (\n \n ({\n validator(rule, value) {\n // console.log(\"duplicate validator\", rule, value);\n if (value) {\n const _fields = getFieldValue(\"editable_fields\");\n const currJsonField = getJsonFieldName(value);\n /** Check if duplicate of an uneditable field */\n if ([\"sample_type\", \"received_date\"].includes(currJsonField)) {\n return Promise.reject(new Error(\"Duplicate field\"));\n }\n\n /** Check for invalid characters */\n const escapedInvalidChars = INVALID_CHARS_ESCAPED.map(escapeRegExp);\n const regex = new RegExp(escapedInvalidChars.join(\"|\"));\n const firstMatch = value.match(regex);\n\n if (firstMatch) {\n return Promise.reject(new Error(`Remove invalid character: ${firstMatch}`));\n }\n\n /** Check if duplicate of earlier (editable) field */\n for (let i = 0; i < index; i++) {\n const _field = _fields[i];\n if (_field) {\n const json_field = getJsonFieldName(_field);\n if (currJsonField === json_field) {\n return Promise.reject(new Error(\"Duplicate field\"));\n }\n }\n }\n return Promise.resolve();\n }\n\n /** Return empty error only if validating is true */\n if (validating) {\n return Promise.resolve();\n }\n return Promise.reject(new Error(`Please input field name${index > 2 ? \" or remove this field.\" : \"\"}`));\n },\n validateTrigger: \"onBlur\",\n }),\n ]}\n noStyle\n >\n }}\n onKeyDown={onKeyDown}\n disabled={disabled}\n />\n \n {removableFieldIndex || removableFieldIndex === 0 ? (\n (index > removableFieldIndex) && (\n remove(field.name)}\n />\n )\n ) : (\n remove(field.name)}\n />\n )}\n \n ))}\n {fields.length < fieldLimit && (\n \n add()}\n icon={}\n ghost\n >\n Add field\n \n \n \n )}\n \n )}\n \n );\n}\n","import testGraphPillBlue from \"../../assets/images/analytics/graphPillTest_blue.png\";\nimport testGraphPillGreen from \"../../assets/images/analytics/graphPillTest_green.png\";\nimport testGraphPillOrange from \"../../assets/images/analytics/graphPillTest_orange.png\";\nimport testGraphPillPink from \"../../assets/images/analytics/graphPillTest_pink.png\";\nimport testGraphPillPurple from \"../../assets/images/analytics/graphPillTest_purple.png\";\n\n// Colors used to highlight scatter plots and color for the tooltip text\nexport const colorsForBar = [\"#8A1CFF\", \"#FF9F3F\", \"#215BE3\", \"#E597F2\", \"#0093A7\"];\n\n// Colors and icons array used to color the graphs with their respective colors\nexport const colorsAndIconsArray = [\n {\n testIcon: testGraphPillPurple,\n borderColor: \"#8A1CFF\",\n accentColor: \"#D0A3FF42\",\n hoverColor: \"#f6ecfe\",\n },\n {\n testIcon: testGraphPillOrange,\n borderColor: \"#FF9F3F\",\n accentColor: \"#FF9F3F33\",\n hoverColor: \"#FFEED2\",\n },\n {\n testIcon: testGraphPillBlue,\n borderColor: \"#215BE3\",\n accentColor: \"#215BE333\",\n hoverColor: \"#dde4fb\",\n },\n {\n testIcon: testGraphPillPink,\n borderColor: \"#E597F2\",\n accentColor: \"#E597F230\",\n hoverColor: \"#fcf0fe\",\n },\n {\n testIcon: testGraphPillGreen,\n borderColor: \"#0093A7\",\n accentColor: \"#5BBAC854\",\n hoverColor: \"#d5eef1\",\n },\n];\n\nconst parsePinQuadrant = (x, y, mapTitle) => {\n let quadrant;\n if (!Number.isNaN(parseFloat(x)) && !Number.isNaN(parseFloat(y)) && (mapTitle !== undefined) && (mapTitle !== \"\")) {\n if (x <= 0.5) {\n if (y <= 0.5) {\n quadrant = 0;\n } else {\n quadrant = 3;\n }\n } else if (y <= 0.5) {\n quadrant = 1;\n } else {\n quadrant = 2;\n }\n return { x, y, quadrant };\n }\n return { x: null, y: null };\n};\n\nexport default parsePinQuadrant;\n","import axios from \"axios\";\n// eslint-disable-next-line\nimport { partition } from \"lodash\";\nimport parsePinQuadrant from \"../Containers/Env/helper\";\n\nimport { API_URL } from \"../utils/Constant\";\nimport { getValueOfObj, getViewAsPerStatusCode } from \"../utils/helpers\";\n\n/**\n * Get fields for environment\n * @param {Boolean} type environment or product\n * @return {Object} {success, sampleFields: {} }\n */\nexport const getEnvironmentFields = async (skipMaintenanceRedirect = false) => {\n try {\n const resp = await axios.get(`${API_URL}/environmentfields/`);\n const {\n fields,\n index0,\n link_pattern_fields,\n sampleid_fields,\n delimeter,\n link_pattern,\n } = resp?.data?.result;\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n fields,\n sampleid_fields,\n link_pattern_fields,\n index0,\n delimiter: delimeter,\n link_pattern,\n };\n } catch (e) {\n if (!skipMaintenanceRedirect) {\n getViewAsPerStatusCode(e);\n }\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Gets map titles and link pattern (defines company's dynamic fields) for given company\n * @return {Object} { success, mapTitles: [{ title, image_height, image_width, image_link }, ...]}\n */\nexport const getMapTitles = async () => {\n try {\n const resp = await axios.get(`${API_URL}/envmaps/`);\n const message = getValueOfObj(resp, \"data\", \"message\");\n\n let allMapTitles = [];\n if (message === \"Success\") {\n const allMaps = getValueOfObj(resp, \"data\", \"result\", \"map_info\");\n if (allMaps && allMaps.length > 0) {\n allMapTitles = allMaps;\n }\n }\n return { success: true, mapTitles: allMapTitles };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\", mapTitles: [] };\n }\n};\n\n/**\n * Edit map title\n * @param {Object} payload { oldTitle, newTitle }\n * @returns {Object} { success, message }\n */\nexport const editMapTitle = async ({\n oldTitle, newTitle,\n}) => {\n try {\n const resp = await axios.patch(`${API_URL}/envmaps/`, {\n new_title: newTitle,\n old_title: oldTitle,\n });\n return { success: resp.data.message === \"Success\", message: resp.data.message };\n } catch (e) {\n return { success: false, message: e.response?.data?.message };\n }\n};\n\n/**\n * Delete map title\n * @param {Object} payload { title }\n * @returns {Object} { success, message }\n */\nexport const deleteMapTitle = async ({ title }) => {\n try {\n const resp = await axios.delete(`${API_URL}/envmaps/`, {\n data: {\n title,\n },\n });\n\n if (resp.data.message !== \"Success\") {\n return { success: false, message: resp.data.message };\n }\n\n return { success: true, message: resp.data.message };\n } catch (e) {\n return { success: false, message: e.response?.data?.message };\n }\n};\n\n/**\n * Initial upload of map image\n * @param {Object} payload { image, title, height, width }\n * @returns {Object} { success, message }\n */\nexport const addMapImage = async ({\n image, title, height, width,\n}) => {\n try {\n const resp = await axios.post(`${API_URL}/envmaps/`, {\n title,\n image,\n height,\n width,\n });\n if (resp.data.message !== \"Success\") {\n return { success: false, message: resp.data.message };\n }\n return { success: true, message: resp.data.message };\n } catch (e) {\n // getViewAsPerStatusCode(e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Gets zone/section lists for company\n * @return {Object} {success, message?, area_lists?}\n */\nexport const getAreaLists = async () => {\n try {\n const resp = await axios.get(`${API_URL}/getareainfo/`);\n const message = getValueOfObj(resp, \"data\", \"message\");\n if (message === \"Success\") {\n return { success: true, area_lists: resp.data.result };\n }\n return { success: false, message: resp.data.message };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Get swabs for map, handles search and filter as well\n * @param {Object} payload { mapTitle, searchValue, specFlag, dateStart, dateEnd }\n * @param {AbortSignal} signal AbortController signal for current api call\n * @returns {Object} { success, message?, data?: { pinMap, dates } }\n */\nexport const getSwabs = async (payload, signal = null) => {\n try {\n const resp = await axios.get(`${API_URL}/getpoints/`, {\n params: {\n title: payload.mapTitle,\n search: payload.searchValue || \"\",\n spec_flag: payload.specFlag ?? -1,\n date_from: payload.dateStart || \"\",\n date_to: payload.dateEnd || \"\",\n },\n signal,\n });\n const message = getValueOfObj(resp, \"data\", \"message\");\n if (message === \"Success\") {\n const pinMap = new Map(); // a hashmap that preserves insertion order\n const points = resp.data.result; // list of sorted pins\n\n if (points) {\n for (let i = 0; i < points.length; i++) {\n const pin = points[i];\n const { x, y, quadrant } = parsePinQuadrant(pin.x_coordinate, pin.y_coordinate, pin.title);\n pin.x_coordinate = x;\n pin.y_coordinate = y;\n pin.quadrant = quadrant;\n pinMap.set(pin.location_id, pin);\n }\n }\n return {\n success: true,\n data: {\n pinMap,\n dates: resp.data.dates,\n },\n };\n }\n return { success: true, message };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Add swab to map. Unpinned swabs will have null coordinates.\n * @param {Object} payload { pointsList }\n * @returns {Object} { success, message?, successSwabs?, failedSwabs? }\n */\nexport const addSwab = async (payload) => {\n const convertSwab = (swab) => {\n const { x, y, quadrant } = parsePinQuadrant(swab.x_coordinate, swab.y_coordinate);\n\n swab.x_coordinate = x;\n swab.y_coordinate = y;\n swab.quadrant = quadrant;\n };\n\n try {\n const resp = await axios.post(`${API_URL}/envpoints/`,\n {\n swab_list: payload.pointsList,\n });\n const message = resp.data.message;\n if (message === \"Success\") {\n const successSwabs = [];\n const [success_swabs, failedSwabs] = partition(resp.data.result, (swab) => swab.message === \"Success\");\n\n for (let i = 0; i < success_swabs.length; i++) {\n const swab = success_swabs[i];\n convertSwab(swab);\n successSwabs.push({ swab });\n }\n\n return {\n success: true, message, successSwabs, failedSwabs,\n };\n }\n\n return { success: false, message };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Edits swab when user pins an unpinned swab, relocates a pinned swab, or removes swab\n * @param {Object} payload { category: \"Edit\" or \"Delete\", title, location_id, section, zone, swab_number, description, x_coordinate, y_coordinate }\n * @returns {Object} { success, message }\n */\nexport const editSwab = async (payload) => {\n try {\n const resp = await axios.patch(`${API_URL}/envpoints/`, {\n category: payload.category || \"Edit\",\n title: payload.title,\n location_id: payload.location_id,\n section: payload.section,\n sub_section: payload.sub_section,\n zone: payload.zone,\n swab_number: payload.swab_number,\n frequency: payload.frequency,\n description: payload.description,\n x_coordinate: payload.x_coordinate.toString(),\n y_coordinate: payload.y_coordinate.toString(),\n });\n\n const message = getValueOfObj(resp, \"data\", \"message\");\n const success = message === \"Success\";\n return { success, message };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Get list of samples/reports per swab\n * @param {Object} payload { location_id }\n * @returns {Object} { success, message?, reports?, default_index? } list of samples/reports, index for default sample\n */\nexport const getSwabReports = async (payload = {}) => {\n try {\n const response = await axios.get(`${API_URL}/envreports/`, {\n params: {\n // page: parseInt(payload.page) || 1,\n location_id: payload.location_id,\n action: \"history_reports\",\n },\n });\n\n const {\n message, result,\n } = response.data;\n const {\n report_history_list, default_sample_index, specs_status,\n } = result;\n\n return {\n success: message === \"Success\",\n reports: report_history_list,\n default_index: default_sample_index ?? 0,\n specs_status,\n // next_page_link: report_history_list.next_page_link,\n // total_page: report_history_list.total_page,\n };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Get all file paths for a swab\n * @param {Object} payload { location_id, page }\n * @returns {Object} { success, message, paths?, next_page_link?, total_page? }\n */\nexport const getAllFilePaths = async (payload = {}) => {\n try {\n const response = await axios.get(`${API_URL}/envreports/`, {\n params: {\n page: parseInt(payload.page) || 1,\n location_id: payload.location_id,\n action: \"none\",\n },\n });\n\n const {\n message, result,\n } = response.data;\n const {\n next_page_link, total_page, result: paths,\n } = result;\n return {\n success: message === \"Success\",\n message,\n paths,\n next_page_link,\n total_page,\n };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Get result for specified swab and received_date\n * @param {Object} payload { received_date, sample_id, sample_type, location_id }\n * @returns {Object} { success, message?, spec?: { identifier, index0, path, report_result, specs_flag } }\n */\nexport const getEnvSpec = async (payload) => {\n try {\n const params = {\n received_date: payload.received_date,\n sample_id: payload.sample_id,\n sample_type: payload.sample_type,\n location_id: payload.location_id,\n };\n\n const response = await axios.get(`${API_URL}/envreportspecs/`, { params });\n const data = response.data;\n const res = { spec: {} };\n\n if (data && data.result && data.result.length > 0) {\n res.spec = data.result[0];\n }\n return { success: true, ...res };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Get result for specified swab and received_date\n * @param {Object} payload { received_date, sample_id, sample_type, location_id }\n * @returns {Object} { success, message?, spec?: { identifier, index0, path, report_result, specs_flag } }\n */\nexport const updateEnvSampleImage = async (payload) => {\n try {\n const params = {\n received_date: payload.received_date,\n sample_id: payload.sample_id,\n sample_type: payload.sample_type,\n location_id: payload.location_id,\n image_path: payload.image_path,\n };\n\n const response = await axios.patch(`${API_URL}/envreportspecs/`, params);\n const data = response.data;\n const res = { spec: {} };\n\n if (data && data.result && data.result.length > 0) {\n res.spec = data.result[0];\n }\n return { success: true, ...res };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Get all the data for the environment analytics\n * @param {dates}\n * @param {string} category\n */\nexport const envAnalyticsDataFetch = async (payload) => {\n try {\n const params = {\n date_to: payload.date_to,\n date_from: payload.date_from,\n };\n if (!payload.date_to && !payload.date_from) {\n delete params.date_to;\n delete params.date_from;\n }\n\n const response = await axios.get(`${API_URL}/envanalyticsdata/`, { params });\n const data = response.data;\n\n return { success: true, ...data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n","import axios from \"axios\";\n\nimport { getUserCredentials } from \"../utils/common\";\nimport { API_URL } from \"../utils/Constant\";\nimport { getViewAsPerStatusCode, formatDateForDisplay, isNonEmptyField } from \"../utils/helpers\";\n\n/**\n * get all the fields for product reports\n * @returns {Object} {success, message, data[0].Fields[0]}\n */\nexport const getProductFields = async (skipMaintenanceRedirect = false) => {\n try {\n const resp = await axios.get(`${API_URL}/productfields/`);\n const {\n fields,\n link_report,\n } = resp?.data?.result;\n\n if (fields && fields.length > 0) {\n const fieldsMap = {};\n fields.forEach((fieldObj) => {\n fieldsMap[fieldObj.json_field] = fieldObj;\n });\n return {\n success: true, fields, fieldsMap, link_report,\n };\n }\n const message = \"No data from API.\";\n return { success: false, message };\n } catch (e) {\n if (!skipMaintenanceRedirect) {\n getViewAsPerStatusCode(e);\n }\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * gets all the product reports for the reqUrl or the first page, that are a result of the applied search filters\n * @param {string} reqUrl pagelink for which all the product reports are to be fetched\n * @param {*} params {fromm, to, specs_flag, search, retest}\n * @returns {Object} {files, prevPageLink, nextPageLink, lastPageLink, totalPage, dates}\n */\n\nexport const getReports = async (reqUrl, params, signal = null) => {\n try {\n let response;\n if (!reqUrl) {\n response = await axios.get(`${API_URL}/reports/`, {\n params: {\n page: \"1\",\n fromm: \"\",\n to: \"\",\n specs_flag: \"\",\n search: \"\",\n retest: \"\",\n ...params,\n },\n signal,\n });\n } else {\n response = await axios.get(`${API_URL}${reqUrl.substr(4)}`, { signal }); // take substring to remove '/api' at the beginning of the url (it's already incuded in API_URL)\n }\n const data = await response.data;\n const {\n prev_page_link: prevPageLink, next_page_link: nextPageLink, last_page_link: lastPageLink, total_page: totalPage, dates,\n } = data;\n const res = {\n files: [], prevPageLink, nextPageLink, lastPageLink, totalPage, dates,\n };\n if (isNonEmptyField(data, \"result\") && isNonEmptyField(data.result, 0)) {\n data.result.forEach((report) => {\n if (report.received_date) {\n report.received_date = formatDateForDisplay(report.received_date);\n }\n if (report.report_date) {\n report.report_date = formatDateForDisplay(report.report_date);\n }\n });\n res.files = data.result;\n }\n return { success: true, ...res };\n } catch (e) {\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\", canceled: axios.isCancel(e) };\n }\n};\n\n/**\n * used to rearrange or change the positions of the dynamic table fields\n * @param {*} payload {field, position} the name of the table column to be re-arranged and the new position of the table column.\n * @returns {Object} {success, res} object returning table fields in the new order\n */\nexport const changePosition = async (payload) => {\n try {\n const params = {\n field: payload.field || \"\",\n position: payload.position || \"\",\n };\n const response = await axios.get(`${API_URL}/productfieldindexing/`, { params });\n const data = await response.data;\n\n return { success: true, fields: data.result };\n } catch (e) {\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Used to change the field names of the product report table\n * @param {} payload {field, new_field} takes the old and new names of the table field\n * @returns {Object} {success, res} returns the edited values of the product table fields\n */\nexport const editTableTitle = async (payload) => {\n try {\n const params = {\n field: payload.field,\n new_field: payload.new_field,\n };\n const response = await axios.get(`${API_URL}/editproductfields/`, { params });\n const data = await response.data;\n\n return { success: true, fields: data.result };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * gets the spec card (triggered when clicked on the the status of the results in specification column)\n * @param {*} payload {index, index_id, report_id, sample_id, received_date, sample_type, method_reference}\n * @returns {Object} {success, res={index0, specs_flag, title, report_result, card_id}}\n */\nexport const getSpec = async (payload, methodReference = false) => {\n try {\n const params = {\n index: payload.index,\n index_id: payload.index_id,\n report_id: payload.report_id,\n sample_id: payload.sample_id,\n received_date: payload.received_date,\n sample_type: payload.sample_type,\n method_reference: methodReference,\n };\n\n const response = await axios.get(`${API_URL}/reportspecs/`, { params });\n const data = await response.data;\n const res = { spec: {} };\n if (data && data.length > 0) {\n const result = data[0].result;\n if (result && result.length > 0) {\n const spec = result[0];\n res.spec = spec;\n }\n }\n\n return { success: true, ...res };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * used to send the retest request\n * @param {*} payload {sample_id, received_at, tests, sample_type}\n * @returns {} message\n */\nexport const requestRetest = async (payload) => {\n try {\n const user = getUserCredentials();\n const params = {\n user_email: user.user_email || \"\",\n sample_id: payload.sample_id,\n received_at: payload.received_at,\n tests: payload.tests,\n sample_type: payload.sample_type,\n };\n const response = await axios.post(`${API_URL}/requestretest/`, params);\n if (response && response.data && response.data.message === \"Success\") {\n return { success: true };\n }\n return { success: false, message: response.data.message || \"Retest request has failed.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Retest request has failed.\" };\n }\n};\n\n/**\n * Used to share product report via email\n * @param {*} payload {recipients_email_address_lst, email_user_input, sample_id, received_date, reports, index_id}\n * @returns\n * // page not found error\n */\nexport const sendShareEmails = async (payload) => {\n try {\n const user = getUserCredentials();\n const response = await axios.post(`${API_URL}/sharetestresults/`, {\n recipients_email_address_lst: payload.email_list,\n email_user_input: payload.message,\n user_name: user.user_name || \"dev\",\n sample_id: payload.sample_id,\n received_date: payload.received_date,\n reports: payload.reports,\n index_id: payload.index_id,\n });\n\n return { success: true, ...response.data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Fetches pesticide report detail.\n * @param {object} params Object of sample_id, sample_type, received_date and retest_date\n * @returns {object} pesticide detailed data\n */\nexport const getReportSpecDetail = async ({\n sample_id, sample_type, received_date, retest_date,\n}) => {\n try {\n const params = {\n sample_id,\n sample_type,\n received_date,\n retest_date,\n };\n const response = await axios.get(`${API_URL}/reportspecsdetail/`, { params });\n return { success: true, ...response.data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Calls api to update countries of specified company\n * @param {string} customer_id Customer id\n * @param {string[]} countries_lst List of country codes\n */\nexport const updatePesticideCountrySpecDetails = async (countries_lst) => {\n try {\n const payload = { countries_lst };\n const response = await axios.patch(`${API_URL}/reportspecsdetailupdatecountries/`, payload);\n return { success: true, ...response.data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgInfo = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7.00016 13.6667C3.31816 13.6667 0.333496 10.682 0.333496 7.00004C0.333496 3.31804 3.31816 0.333374 7.00016 0.333374C10.6822 0.333374 13.6668 3.31804 13.6668 7.00004C13.6668 10.682 10.6822 13.6667 7.00016 13.6667ZM6.3335 9.00004V10.3334H7.66683V9.00004H6.3335ZM7.66683 7.90337C8.20261 7.74189 8.66257 7.39334 8.96293 6.9212C9.2633 6.44906 9.3841 5.88474 9.30332 5.33102C9.22254 4.77729 8.94557 4.271 8.52284 3.90435C8.10011 3.53769 7.55975 3.33507 7.00016 3.33337C6.46073 3.33333 5.93794 3.52014 5.52069 3.86204C5.10344 4.20393 4.8175 4.67979 4.7115 5.20871L6.0195 5.47071C6.05662 5.285 6.14571 5.11364 6.27641 4.97658C6.40711 4.83953 6.57404 4.7424 6.75778 4.69651C6.94152 4.65062 7.13452 4.65785 7.31431 4.71735C7.4941 4.77686 7.6533 4.8862 7.77339 5.03265C7.89347 5.1791 7.96949 5.35663 7.99262 5.5446C8.01574 5.73257 7.98501 5.92324 7.90401 6.09443C7.82301 6.26562 7.69506 6.41028 7.53505 6.51159C7.37504 6.6129 7.18955 6.6667 7.00016 6.66671C6.82335 6.66671 6.65378 6.73695 6.52876 6.86197C6.40373 6.98699 6.3335 7.15656 6.3335 7.33337V8.33337H7.66683V7.90337Z\",\n fill: \"#6C7E8E\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgInfo, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/Info.d3d48060.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState } from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport {\n Form,\n Input,\n Radio,\n Select,\n Spin,\n // ConfigProvider,\n} from \"antd\";\nimport { useForm } from \"antd/es/form/Form\";\nimport { toast } from \"react-toastify\";\n\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport StyledRadioGroup from \"../../../../Common/UIComponents/StyledRadioGroup\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\nimport MyForm from \"../../../MyForm\";\nimport useHandleStepChange from \"../../useHandleStepChange\";\nimport EditableFields from \"./Components/EditableFields\";\n\nimport { getTabsList } from \"../../../../../utils/common\";\n\nimport { getEnvironmentFields } from \"../../../../../actions/envAnalytics\";\nimport { getProductFields } from \"../../../../../actions/reports\";\n\nimport { ReactComponent as Info } from \"../../../../../assets/images/onboarding/Info.svg\";\n\nimport \"../LinkReportForm.css\";\n\nexport default function FieldsForm({\n initialValues, onNextButton, onBackButton, onFinishFailed, stepChangeInProgress,\n handleFormStepChange, existingUser, addCompany, companyName, handleSubmit, submitting = false,\n}) {\n const [formStep, setFormStep] = useState(1);\n const [productSampling, setProductSampling] = useState(null);\n const [environmentSampling, setEnvironmentSampling] = useState(null);\n const [productDropdownOptions, setProductDropdownOptions] = useState([]);\n const [envDropdownOptions, setEnvDropdownOptions] = useState([]);\n const [stepValues, setStepValues] = useState({ ...initialValues });\n const [nextButtonValid, setNextButtonValid] = useState(false);\n const [showEnvQuestion, setShowEnvQuestion] = useState(false);\n const [showProdQuestion, setShowProdQuestion] = useState(false);\n const [showProdQuesForm, setShowProdQuesForm] = useState(false);\n const [showEnvQuesForm, setShowEnvQuesForm] = useState(false);\n const [hasSelectedNoProd, setHasSelectedNoProd] = useState(false);\n const [hasSelectedNoEnv, setHasSelectedNoEnv] = useState(false);\n const [loading, setLoading] = useState(false);\n const FORM_NAME = \"fields_form\";\n const [form] = useForm();\n const tabs = getTabsList();\n\n const layout = {\n labelCol: {\n span: 24,\n },\n wrapperCol: {\n span: 24,\n },\n layout: \"vertical\",\n };\n\n /**\n * Filters the array of objects based on the \"json_field\" key and returns a new array with only the \"json_field\" and \"title_field\" keys, excluding the provided fields.\n *\n * @param {Array<{json_field, title_field}>} fields - The input array of objects of all the fields.\n * @param {Array} excludeFields - The values to exclude in the \"json_field\" key, fields which are non editable.\n * @returns {Array<{json_field, title_field}>} A new array with only the \"json_field\" and \"title_field\" keys, excluding the provided fields, only editable fields are returned here.\n */\n function filterJsonField(fields, excludeFields) {\n return fields.filter((item) => !excludeFields.includes(item.json_field)).map(({ json_field, title_field }) => ({ json_field, title_field }));\n }\n\n /** Convert display name to DB Column value. Replace special characters, spaces with an underscore, convert to lower case */\n const getJsonFieldName = (str) => {\n if (!str) {\n return \"\";\n }\n let jsonFieldName = str.trim().replace(/[^\\w\\s]/gi, \" \").replace(/\\s+/g, \"_\").toLowerCase();\n jsonFieldName = jsonFieldName.replace(/(?:__+)/g, \"_\"); // condense multiple underscores to one\n jsonFieldName = jsonFieldName.replace(/^_+|_+$/g, \"\"); // trim leading + trailing underscores\n return jsonFieldName;\n };\n\n /**\n * @param {Object} fieldObj\n * @param {Array} exceptionFields*\n * Creating option array for associated fields\n */\n const createFieldArray = (fieldObj, exceptionFields = []) => {\n if (!fieldObj) {\n return [];\n }\n\n const getFieldArrayItem = (key, value) => {\n if (Array.isArray(value) && key === \"editable_fields\") {\n return value.map((item) => {\n const jsonFieldName = getJsonFieldName(item.json_field);\n const titleField = item.title_field;\n return { value: jsonFieldName, label: titleField ? titleField.trim() : \"\" };\n });\n }\n return { value: getJsonFieldName(key), label: value ? value.trim() : \"\" };\n };\n\n const fieldArray = Object.entries(fieldObj)\n .filter(([key]) => !exceptionFields.includes(key))\n .map(([key, value]) => getFieldArrayItem(key, value));\n\n return fieldArray.flat().filter((item) => item.label !== \"\");\n };\n /**\n * Reset the form to its initial state or default values\n */\n const resetFieldsForProdForm = async () => {\n setLoading(false);\n form.resetFields();\n form.setFieldValue(\"product_link\", []);\n form.setFieldsValue({\n sample_supply: \"Yes\",\n add_company: \"No\",\n sample_type: initialValues?.product_info?.sample_type,\n date: initialValues?.product_info?.date,\n product_link: [],\n editable_fields: [\n \"Item\",\n \"Lot\",\n \"Description\",\n ] ?? undefined,\n });\n setNextButtonValid(false);\n setShowProdQuesForm(true);\n setHasSelectedNoProd(true);\n };\n /**\n * Reset the form to its initial state or default values\n */\n const resetFieldsForEnvForm = async () => {\n setLoading(false);\n form.resetFields();\n form.setFieldValue(\"environment_link\", []);\n form.setFieldsValue({\n env_sample_supply: \"Yes\",\n env_add_company: \"No\",\n sample_type: initialValues?.environment_info?.sample_type,\n section: initialValues?.environment_info?.section,\n swab_number: initialValues?.environment_info?.swab_number,\n zone: initialValues?.environment_info?.zone,\n date: initialValues?.environment_info?.date,\n environment_link: [],\n editable_fields: [] ?? undefined,\n });\n setShowEnvQuesForm(true);\n setNextButtonValid(false);\n setHasSelectedNoEnv(true);\n };\n /**\n * if user wants to get field details from previous company for product\n * Set fields and other form data with received results\n */\n const getFieldsForProdForm = async () => {\n try {\n setLoading(true);\n const result = await getProductFields(true);\n const formData = form.getFieldsValue();\n const { fieldsMap, link_report: linkReport } = result;\n if (result && result.success) {\n if (formData.add_company === \"Yes\") {\n if (!linkReport || linkReport.length === 0) {\n toast.error(\"Link report field(s) missing\");\n }\n const link_report_fields = linkReport.map((json_field) => fieldsMap[json_field]).filter((field) => field !== \"\");\n if (link_report_fields.some((elem) => !elem)) {\n toast.error(\"Link report field(s) missing from fields\");\n }\n const nonEditables = [\"sample_type\", \"received_date\"];\n const editableFields = filterJsonField(result.fields, nonEditables);\n form.setFieldsValue({ product_link: linkReport.filter((elem) => elem !== \"\") });\n form.setFieldValue(\"editable_fields\", editableFields.map(({ title_field }) => title_field) ?? []);\n setStepValues({\n ...stepValues,\n product_info: {\n ...stepValues.product_info,\n product_link: linkReport.filter((elem) => elem !== \"\") ?? [],\n },\n environment_info: {\n ...stepValues.environment_info,\n },\n });\n setNextButtonValid(true);\n setShowProdQuesForm(true);\n }\n setLoading(false);\n return null;\n }\n if (hasSelectedNoProd) {\n form.setFieldValue(\"add_company\", \"No\");\n resetFieldsForProdForm();\n } else {\n form.setFieldValue(\"add_company\", \"\");\n setShowProdQuesForm(false);\n }\n toast.error(\"Could not fetch product fields!\");\n setLoading(false);\n return null;\n } catch (error) {\n toast.error(\"Failed to fetch product fields\");\n setLoading(false);\n return null;\n }\n };\n\n /**\n * if user wants to get field details from previous company for environments\n * Set fields and other form data with received results\n */\n const getFieldsForEnvForm = async () => {\n try {\n setLoading(true);\n const result = await getEnvironmentFields(true);\n const formData = form.getFieldsValue();\n if (result && result.success) {\n if (formData.env_add_company === \"Yes\") {\n const { fields, link_pattern_fields } = result;\n if (!link_pattern_fields || link_pattern_fields.length === 0) {\n toast.error(\"Link report field(s) missing\");\n }\n const link_report_fields = link_pattern_fields.map((json_field) => fields.filter((field) => json_field === field.json_field));\n if (link_report_fields.some((elem) => !elem)) {\n toast.error(\"Link report field(s) missing from fields\");\n }\n const nonEditables = [\"sample_type\", \"received_date\", \"swab_number\", \"zone\", \"section\", \"env_add_company\"];\n const dynamicFields = result?.fields.filter((item) => nonEditables.includes(item.json_field)) ?? [];\n const editableFields = filterJsonField(result.fields, nonEditables);\n dynamicFields.forEach((field) => {\n form.setFieldsValue({ [field.json_field]: field.title_field });\n });\n form.setFieldsValue({ editable_fields: editableFields.map(({ title_field }) => title_field) ?? [], environment_link: result.link_pattern_fields.filter((item) => item !== \"\") ?? [] });\n setNextButtonValid(true);\n setShowEnvQuesForm(true);\n }\n setLoading(false);\n return;\n }\n if (hasSelectedNoEnv) {\n form.setFieldValue(\"env_add_company\", \"No\");\n resetFieldsForEnvForm();\n } else {\n form.setFieldValue(\"env_add_company\", \"\");\n setShowEnvQuesForm(false);\n }\n toast.error(\"Could not fetch environment fields!\");\n setLoading(false);\n } catch (error) {\n toast.error(error);\n setLoading(false);\n }\n };\n /**\n * @param {Array} fieldList\n * On change of fieldList in editableFields component\n * update the fields for product details and environment details.\n */\n const handleEditableFields = (fieldList) => {\n if (fieldList) {\n const currentStep = formStep === 1 ? \"product_info\" : \"environment_info\";\n const newFields = fieldList.filter((field) => field !== undefined);\n\n // Check if any fields have been added or removed\n const fieldsToAdd = newFields.filter((newField) => !stepValues[currentStep].editable_fields.some((oldField) => oldField.json_field === newField));\n const fieldsToRemove = stepValues[currentStep].editable_fields.filter((oldField) => !newFields.includes(oldField.json_field));\n\n // Check if any fields have been changed\n const fieldsToChange = newFields.filter((newField, index) => {\n const oldField = stepValues[currentStep].editable_fields[index];\n return oldField && newField !== oldField.json_field;\n });\n\n const fieldCheck = fieldList.map((field) => ({ json_field: getJsonFieldName(field), title_field: field }));\n // Update editable_fields and productDropdownOptions\n setStepValues({\n ...stepValues,\n [currentStep]: {\n ...stepValues[currentStep],\n editable_fields: fieldCheck,\n },\n });\n\n if (fieldsToAdd.length > 0 || fieldsToRemove.length > 0 || fieldsToChange.length > 0) {\n const newFieldsValues = newFields.map((field) => ({ value: field, label: field }));\n const updatedFieldsValues = newFieldsValues.filter((field) => !fieldsToRemove.includes(field.value));\n\n const dropdownOptions = currentStep === \"product_info\" ? productDropdownOptions : envDropdownOptions;\n const newOptionsToAdd = updatedFieldsValues.filter((option) => !dropdownOptions.some((existingOption) => existingOption.label === option.value));\n if (currentStep === \"product_info\") {\n const filteredProductDropdownOptions = productDropdownOptions.filter((option) => {\n const fieldToRemove = fieldsToRemove.find((field) => field.json_field === option.value);\n return !fieldToRemove;\n });\n setProductDropdownOptions([...filteredProductDropdownOptions, ...newOptionsToAdd]);\n if (fieldsToRemove.length > 0) {\n const options = [...filteredProductDropdownOptions, ...newOptionsToAdd];\n const fieldsReports = form.getFieldValue(\"product_link\");\n const allFieldsMatch = options.every((option) => fieldsReports.includes(option.value));\n if (!allFieldsMatch) {\n form.setFieldValue(\"product_link\", []);\n setStepValues((prevState) => ({\n ...prevState,\n product_info: {\n ...prevState.product_info,\n product_link: [],\n },\n }));\n }\n // form.setFieldValue(\"product_link\", []);\n }\n }\n }\n }\n };\n\n /** Format values before saving */\n const formatValues = () => {\n const values = Object.keys(stepValues).length ? stepValues : initialValues;\n if (values.product_info?.editable_fields && values.environment_info?.editable_fields) {\n const valuesCopy = { ...values };\n const editableFieldsProduct = valuesCopy.product_info?.editable_fields ?? [];\n valuesCopy.product_info.editable_fields = editableFieldsProduct.map((displayName) => ({\n json_field: getJsonFieldName(displayName?.json_field ?? \"\"),\n title_field: displayName?.title_field?.trim() ?? \"\",\n }));\n const editableFieldsEnv = valuesCopy.environment_info?.editable_fields ?? [];\n valuesCopy.environment_info.editable_fields = editableFieldsEnv.map((displayName) => ({\n json_field: getJsonFieldName(displayName?.json_field ?? \"\"),\n title_field: displayName?.title_field?.trim() ?? \"\",\n }));\n if (addCompany) {\n const formData = form.getFieldsValue();\n if (formStep === 1) {\n valuesCopy.product_info.add_company = formData.add_company ?? \"\";\n valuesCopy.product_info.product_link = formData.product_link ?? [];\n } else {\n valuesCopy.environment_info.env_add_company = formData.env_add_company ?? \"\";\n valuesCopy.environment_info.environment_link = formData.environment_link ?? [];\n valuesCopy.environment_info.environment_supplies_needed = formData.environment_supplies_needed ?? \"\";\n }\n }\n return valuesCopy;\n }\n if (addCompany) {\n const formData = form.getFieldsValues();\n if (formStep === 1) {\n values.product_info.add_company = formData.add_company ?? \"\";\n values.product_info.product_link = formData.product_link ?? [];\n } else {\n values.environment_info.env_add_company = formData.env_add_company ?? \"\";\n values.environment_info.environment_link = formData.environment_link ?? [];\n values.environment_info.environment_supplies_needed = formData.environment_supplies_needed ?? \"\";\n }\n }\n return values;\n };\n\n const handleNextButton = () => {\n if (addCompany) {\n handleSubmit(FORM_NAME, formatValues());\n } else {\n onNextButton(FORM_NAME, formatValues());\n }\n };\n\n const handleBackButton = () => {\n onBackButton(FORM_NAME, formatValues());\n };\n\n /**\n * @param {String} formName\n * Handling the initialValues for form\n */\n const handleInitialValues = (formName) => {\n if (formName && Object.keys(stepValues).length) {\n const editable_fields = stepValues[formName].editable_fields ? stepValues[formName].editable_fields.map(({ title_field }) => title_field) : undefined;\n return { ...stepValues[formName], editable_fields };\n }\n return {};\n };\n\n /**\n * @param {*} e\n * Handling the product form data for next button from\n * product details to environment details page\n */\n const handleFormStepNext = (e) => {\n e.preventDefault();\n const formData = form.getFieldsValue();\n const fieldsErrors = form.getFieldsError();\n const hasErrors = fieldsErrors.some((field) => field.errors.length > 0);\n if (hasErrors) {\n form.validateFields();\n toast.error(\"Invalid inputs!\");\n return;\n }\n if (formStep === 1) {\n const fieldData = stepValues.product_info.editable_fields.filter((field) => field.json_field === \"\");\n if (addCompany && formData?.add_company === \"\") {\n form.validateFields();\n toast.error(\"Invalid inputs!\");\n return;\n }\n if (formData?.product_link && formData?.sample_supply === \"Yes\") {\n if (!formData.product_link.length) {\n form.validateFields([\"product_link\"]);\n toast.error(\"At least one field required!\");\n return;\n }\n if (fieldData?.length > 0) {\n form.validateFields();\n toast.error(\"Invalid inputs!\");\n return;\n }\n }\n if (formData?.sample_supply === \"Yes\") {\n if (formData?.editable_fields?.length < 1) {\n form.validateFields();\n toast.error(\"At least one field required!\");\n return;\n }\n }\n\n form.setFieldValue(\"editable_fields\", stepValues.environment_info.editable_fields.map(({ title_field }) => title_field) ?? []);\n setStepValues({\n ...stepValues,\n product_info: {\n ...stepValues.product_info,\n sample_supply: formData.sample_supply,\n product_link: formData.product_link ?? [],\n add_company: formData.add_company ?? \"\",\n // editable_fields: formData.editable_fields ?? [],\n },\n environment_info: {\n ...stepValues.environment_info,\n },\n });\n setFormStep(2);\n } else {\n const fieldData = stepValues.environment_info.editable_fields.filter((field) => field?.json_field === \"\");\n if (addCompany && formData?.env_add_company === \"\") {\n form.validateFields();\n toast.error(\"Invalid inputs!\");\n return;\n }\n if (fieldData.length > 0) {\n form.validateFields();\n toast.error(\"Invalid inputs!\");\n return;\n }\n if (formData?.environment_link && formData?.env_sample_supply === \"Yes\") {\n if (!formData.environment_link.length) {\n form.validateFields([\"environment_link\"]);\n toast.error(\"At least one field required!\");\n return;\n }\n if (fieldData?.length > 0) {\n form.validateFields();\n toast.error(\"Invalid inputs!\");\n return;\n }\n }\n if (formData.environment_supplies_needed === \"\" && formData.env_sample_supply === \"Yes\") {\n form.validateFields([\"environment_supplies_needed\"]);\n toast.error(\"Invalid input\");\n return;\n }\n if (!productSampling && !environmentSampling) {\n form.validateFields();\n toast.error(\"Please provide Product or Environment details\");\n return;\n }\n stepValues.product_info.sample_supply = productSampling ? \"Yes\" : \"No\";\n stepValues.environment_info.env_sample_supply = environmentSampling ? \"Yes\" : \"No\";\n stepValues.environment_info.environment_link = formData.environment_link ?? [];\n stepValues.environment_info.environment_supplies_needed = formData.environment_supplies_needed ?? \"No\";\n handleNextButton();\n }\n };\n\n /**\n * @param {*} e\n * Handling the product form data for back button from\n * environment details to product details page\n */\n const handleFormStepBack = (e) => {\n e.preventDefault();\n const fieldsData = stepValues;\n const formData = form.getFieldsValue();\n if (formStep === 2) {\n form.setFieldValue(\"editable_fields\", stepValues.product_info.editable_fields);\n form.setFieldValue(\"sample_supply\", stepValues.product_info.sample_supply);\n setStepValues({\n ...stepValues,\n product_info: { ...stepValues.product_info },\n environment_info: {\n ...stepValues.environment_info,\n editable_fields: stepValues.environment_info.editable_fields ?? [],\n environment_link: formData.environment_link ?? [],\n environment_supplies_needed: formData.environment_supplies_needed ?? \"\",\n env_sample_supply: formData.env_sample_supply,\n env_add_company: formData.env_add_company ?? \"\",\n },\n });\n setFormStep(1);\n } else {\n fieldsData.product_info.sample_supply = productSampling ? \"Yes\" : \"No\";\n fieldsData.environment_info.env_sample_supply = environmentSampling ? \"Yes\" : \"No\";\n fieldsData.product_info.product_link = formData.product_link;\n fieldsData.product_info.add_company = formData.add_company ?? \"\";\n handleBackButton();\n }\n };\n\n /**\n * Handling the product form data onload\n */\n useEffect(() => {\n if (initialValues.product_info.sample_supply) {\n setProductSampling(initialValues.product_info.sample_supply === \"Yes\");\n if (addCompany) {\n setShowProdQuestion(initialValues.product_info.sample_supply === \"Yes\");\n setShowProdQuesForm(initialValues.product_info.add_company !== \"\");\n }\n }\n if (initialValues.environment_info.env_sample_supply) {\n setEnvironmentSampling(initialValues.environment_info.env_sample_supply === \"Yes\");\n if (addCompany) {\n setShowEnvQuestion(initialValues.environment_info.env_sample_supply === \"Yes\");\n setShowEnvQuesForm(initialValues.environment_info.env_add_company !== \"\");\n }\n }\n }, []);// eslint-disable-line react-hooks/exhaustive-deps\n\n /**\n * @dependency [stepValues, formStep]\n * Handling the form data on page change\n */\n useEffect(() => {\n const formData = form.getFieldsValue();\n if (formStep === 1) {\n if (productSampling && stepValues?.product_info.product_link?.length === 0) {\n setNextButtonValid(false);\n } else if (formData.sample_supply === \"\" || formData.sample_supply === null) {\n setNextButtonValid(false);\n } else {\n setNextButtonValid(true);\n }\n if (productSampling && formData?.product_info?.product_link?.length !== 0) {\n setNextButtonValid(true);\n }\n if (Object.keys(stepValues).length) {\n const options = createFieldArray(\n stepValues.product_info,\n [\n \"sample_type\",\n \"date\",\n \"product_link\",\n \"sample_supply\",\n \"add_company\",\n ],\n );\n setProductDropdownOptions(options);\n form.setFieldsValue({\n editable_fields: stepValues.product_info.editable_fields\n ? stepValues.product_info.editable_fields.map((data) => (data.title_field)) : [],\n });\n if (stepValues.product_info.sample_supply) {\n form.setFieldsValue({\n sample_supply: stepValues.product_info.sample_supply,\n product_link: stepValues.product_info.product_link ?? [],\n });\n }\n }\n } else if (formStep === 2) {\n if ((environmentSampling && formData?.environment_link?.length === 0) || (environmentSampling && formData?.environment_link === undefined)) {\n setNextButtonValid(false);\n } else if (formData.env_sample_supply === \"\" || formData.env_sample_supply === null) {\n setNextButtonValid(false);\n } else {\n setNextButtonValid(true);\n }\n if (addCompany && formData?.environment_info?.environment_link?.length !== 0) {\n setNextButtonValid(true);\n }\n if (environmentSampling && formData?.environment_info?.environment_link?.length !== 0) {\n setNextButtonValid(true);\n }\n if (Object.keys(stepValues).length) {\n form.setFieldsValue({\n editable_fields: stepValues.environment_info.editable_fields.map((data) => (data.title_field)) ?? [],\n });\n /**\n * Adding Non-editable and pre-defined fields\n */\n if (envDropdownOptions.length === 0) {\n const options = createFieldArray(\n initialValues.environment_info,\n [\n \"sample_type\",\n \"date\",\n \"environment_link\",\n \"env_sample_supply\",\n \"environment_supplies_needed\",\n \"editable_fields\",\n \"env_add_company\",\n ],\n );\n setEnvDropdownOptions(options);\n }\n }\n }\n }, [stepValues, formStep, form]);// eslint-disable-line react-hooks/exhaustive-deps\n\n useEffect(() => () => {\n // const fieldsData = stepValues;\n const formData = form.getFieldsValue();\n if (formStep === 2) {\n setStepValues({\n ...stepValues,\n product_info: { ...stepValues.product_info },\n environment_info: {\n ...stepValues.environment_info,\n editable_fields: stepValues.environment_info.editable_fields ?? [],\n environment_link: formData.environment_link ?? [],\n environment_supplies_needed: formData.environment_supplies_needed ?? \"\",\n env_sample_supply: formData.env_sample_supply,\n env_add_company: formData.env_add_company ?? \"\",\n },\n });\n } else {\n setStepValues({\n ...stepValues,\n product_info: {\n ...stepValues.product_info,\n sample_supply: formData.sample_supply,\n product_link: formData.product_link,\n add_company: formData.add_company,\n editable_fields: stepValues.product_info.editable_fields ?? [],\n },\n environment_info: { ...stepValues.environment_info },\n });\n }\n }, []);// eslint-disable-line react-hooks/exhaustive-deps\n\n /** Hook that handles form saving + step change when step is clicked */\n useHandleStepChange(FORM_NAME, form, stepChangeInProgress, handleFormStepChange, formatValues);\n\n return (\n
\n {formStep === 1 && (\n \n {/* Product Details Form */}\n
\n
Product Details
\n Are you planning to send us product samples for testing?}\n rules={[\n {\n required: true, message: \"\",\n },\n ]}\n >\n {\n form.setFieldValue(\"sample_supply\", e.target.value);\n setProductSampling(e.target.value === \"Yes\");\n setStepValues({ product_info: { ...stepValues.product_info, sample_supply: e.target.value }, environment_info: { ...stepValues.environment_info } });\n if (e.target.value === \"Yes\") {\n setShowProdQuestion(true);\n } else {\n setShowProdQuestion(false);\n setShowProdQuesForm(false);\n setHasSelectedNoProd(false);\n setLoading(false);\n form.setFieldValue(\"add_company\", \"\");\n }\n }}\n >\n \n Yes\n \n \n No\n \n \n \n\n { addCompany && showProdQuestion\n && (\n {`Do you want to use the same product details as ${companyName} (Makes things faster!)?`}}\n rules={[\n {\n required: true, message: \"Please provide details for the product\",\n },\n ]}\n >\n {\n form.setFieldValue(\"add_company\", e.target.value);\n if (e.target.value === \"Yes\") {\n getFieldsForProdForm();\n } else {\n resetFieldsForProdForm();\n }\n }}\n >\n {\n loading ? (\n <>\n
\n } />\n Yes\n \n No\n \n
\n \n )\n : (\n <>\n \n \n Yes\n \n \n \n No\n \n \n )\n }\n \n \n )}\n\n {(addCompany ? showProdQuesForm : productSampling)\n && (\n
\n Please enter the details you would like to include while submitting product samples}>\n \n Product Sample Submission Form Fields\n \n \n \n \n )}\n >\n \n \n \n \n \n \n \n
\n Please select the field(s) associated with the specification for your products:}\n rules={[\n {\n required: true, message: \"\",\n },\n ]}\n className=\"LinkReportForm__ProductSpec\"\n >\n {\n const fieldValue = form.getFieldValue(\"product_link\");\n const editableFieldsValue = form.getFieldValue(\"editable_fields\");\n if (fieldValue.length === 0 || editableFieldsValue.includes(\"\")) {\n setNextButtonValid(false);\n } else {\n setNextButtonValid(true);\n }\n }}\n />\n \n \n \n
\n )}\n
\n // eslint-disable-next-line func-call-spacing\n )}\n {formStep === 2\n && (\n \n {/* Environment Details Form */}\n
\n
Environment Details
\n \n Are you planning to send us environment samples for testing?}\n rules={[\n {\n required: true, message: \"\",\n },\n ]}\n className=\"custom-radio\"\n >\n {\n form.setFieldValue(\"env_sample_supply\", e.target.value);\n setEnvironmentSampling(e.target.value === \"Yes\");\n setStepValues({ product_info: { ...stepValues.product_info }, environment_info: { ...stepValues.environment_info, env_sample_supply: e.target.value } });\n if (e.target.value === \"Yes\") {\n setShowEnvQuestion(true);\n } else {\n form.setFieldValue(\"env_add_company\", \"\");\n setHasSelectedNoEnv(false);\n setShowEnvQuestion(false);\n setLoading(false);\n setShowEnvQuesForm(false);\n }\n }}\n >\n \n Yes\n \n \n No\n \n \n {/* */}\n \n { addCompany && showEnvQuestion\n && (\n {`Do you want to use the same environment details as ${companyName} (Makes things faster!)?`}}\n rules={[\n {\n required: true, message: \"Please provide the details for the environment\",\n },\n ]}\n className=\"custom-radio\"\n >\n {\n form.setFieldValue(\"env_add_company\", e.target.value);\n if (e.target.value === \"Yes\") {\n getFieldsForEnvForm();\n } else {\n resetFieldsForEnvForm();\n }\n }}\n >\n {\n loading ? (\n <>\n
\n } />\n Yes\n \n No\n \n
\n \n )\n : (\n <>\n \n \n Yes\n \n \n \n No\n \n \n )\n }\n \n {/* */}\n \n )}\n {(addCompany ? showEnvQuesForm : environmentSampling)\n && (\n
\n
\n Please enter the details you would like to include while submitting Environment samples}>\n \n Environment Sample Submission Form Fields\n \n \n \n \n )}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n Please select the field(s) associated with the specification for your environment:}\n >\n {\n const fieldValue = form.getFieldValue(\"environment_link\");\n const editablefielsdValue = form.getFieldValue(\"editable_fields\").filter((field) => field?.json_field === \"\");\n if (fieldValue.length === 0 || editablefielsdValue.length > 0) {\n setNextButtonValid(false);\n } else {\n setNextButtonValid(true);\n }\n }}\n />\n \n {!existingUser &&
}\n {!existingUser && (\n Do you need supplies for environment testing?}\n rules={[\n {\n required: true, message: \"Please provide an answer\",\n },\n ]}\n >\n \n Yes \n No \n \n \n )}\n \n \n
\n )}\n \n
\n \n )}\n
\n \n Previous\n \n \n {(addCompany && formStep === 2) ? \"Create Company\" : `Next ${formStep}/2`}\n \n
\n
\n\n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport {\n Form,\n Radio,\n Select,\n} from \"antd\";\nimport { useForm } from \"antd/es/form/Form\";\nimport { partition } from \"lodash\";\nimport MyForm from \"../../MyForm\";\nimport FormButtons from \"./ReusableComponents/FormButtons\";\nimport useHandleStepChange from \"../useHandleStepChange\";\nimport \"./LinkReportForm.css\";\n\nexport default function LinkReportForm({\n initialValues, fieldsData, onNextButton, onBackButton, onFinishFailed, stepChangeInProgress,\n handleFormStepChange, isExistingCustomer,\n}) {\n const FORM_NAME = \"link_report_form\";\n const [form] = useForm();\n\n /** Hook that handles form saving + step change when step is clicked */\n useHandleStepChange(FORM_NAME, form, stepChangeInProgress, handleFormStepChange);\n\n const [dropdownOptions, setDropdownOptions] = useState([]);\n const layout = {\n labelCol: {\n span: 24,\n },\n wrapperCol: {\n span: 24,\n },\n layout: \"vertical\",\n };\n\n /** Populate dropdown with fields from previous step */\n useEffect(() => {\n const [uneditableFields, editableFieldsEntries] = partition(Object.entries(fieldsData ?? {}), ([key]) => key !== \"editable_fields\");\n const options = uneditableFields.filter(([json]) => json !== \"sample_type\" && json !== \"date\").map(([json, title]) => ({ value: json, label: title }));\n if (editableFieldsEntries?.length && editableFieldsEntries[0][1]) {\n const editableFieldsList = editableFieldsEntries[0][1];\n options.push(...editableFieldsList.map(({ json_field, title_field }) => ({ value: json_field, label: title_field })));\n }\n\n /** Check if product_link fields are valid fields (user may have removed field in previous step) */\n if (initialValues.product_link) {\n const filteredProductLink = initialValues.product_link.filter((json_field) => options.filter(({ value }) => value === json_field).length); // filter out fields in product_link that are not in options\n form.setFieldValue(\"product_link\", filteredProductLink.length > 0 ? filteredProductLink : undefined); // set field to undefined if filteredProductLink is empty\n }\n\n setDropdownOptions(options);\n }, [fieldsData]); // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n onNextButton(FORM_NAME, values)}\n onFinishFailed={onFinishFailed}\n className=\"OnboardingForm\"\n >\n
\n\n \n \n \n {!isExistingCustomer && (\n \n \n Yes \n No \n \n \n )}\n
\n onBackButton(FORM_NAME, form.getFieldValue())}\n />\n \n\n );\n}\n","export default __webpack_public_path__ + \"static/media/ph_eye_opened_black_fill@2x.551b9b48.png\";","import React, { useEffect, useState } from \"react\";\nimport {\n Form,\n Input,\n} from \"antd\";\nimport { useForm } from \"antd/es/form/Form\";\nimport MyForm from \"../../MyForm\";\nimport { validatePassword } from \"../../../Common/utils/validationUtils\";\nimport \"./SignupForm.css\";\nimport FormButtons from \"./ReusableComponents/FormButtons\";\nimport useHandleStepChange from \"../useHandleStepChange\";\nimport { checkUser } from \"../../../../utils/common\";\n\nimport { ReactComponent as CloseIcon } from \"../../../../assets/images/onboarding/clearField.svg\";\nimport eyeClosedIcon from \"../../../../assets/images/ph_eye-closed-fill@2x.png\";\nimport eyeOpenedIcon from \"../../../../assets/images/ph_eye_opened_black_fill@2x.png\";\n\nexport default function SignupForm({\n initialValues,\n email,\n company_name,\n customer_name,\n phoneValidator,\n existingUser,\n setExistingUser,\n handleSubmit,\n onBackButton,\n onFinishFailed,\n submitting,\n stepChangeInProgress,\n handleFormStepChange,\n}) {\n const FORM_NAME = \"signup_form\";\n const [form] = useForm();\n const [checkUserLoading, setCheckUserLoading] = useState(false);\n\n useEffect(() => {\n async function checkUserExists(mail) {\n setCheckUserLoading(true);\n const { success, firebase_exist_status, phone_number } = await checkUser(mail);\n if (success) {\n setExistingUser(firebase_exist_status);\n if (phone_number) {\n form.setFieldValue(\"phone_number\", phone_number);\n }\n } else {\n setExistingUser(false);\n }\n setCheckUserLoading(false);\n }\n checkUserExists(email);\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n /** Hook that handles form saving + step change when step is clicked */\n useHandleStepChange(FORM_NAME, form, stepChangeInProgress, handleFormStepChange);\n\n const layout = {\n labelCol: {\n span: 24,\n },\n wrapperCol: {\n span: 24,\n },\n layout: \"vertical\",\n };\n\n const passwordRequirementValidator = async (_, value) => {\n if (!value || validatePassword(value)) {\n return Promise.resolve();\n }\n return Promise.reject(new Error(\"Password does not meet the requirements\"));\n };\n\n return (\n handleSubmit(FORM_NAME, values)}\n onFinishFailed={onFinishFailed}\n disabled={submitting}\n className=\"OnboardingForm\"\n >\n
\n {/* Final Step!} /> */}\n
Final Step!
\n {existingUser && (\n \n \n It appears that you already have login credentials with ESV. Please click on the Set up ESV button below to proceed and login using your existing credentials.\n {/* If you have forgotten your password, you can utilize the Forgot Password button on the login page to reset your password after signing up. */}\n \n \n )}\n Admin Name}\n rules={[\n {\n required: true,\n message: \"\",\n },\n ]}\n >\n \n
\n Company Name}\n rules={[\n {\n required: true,\n message: \"\",\n },\n ]}\n >\n \n \n\n Email}\n rules={[\n {\n required: true, message: \"\",\n },\n ]}\n >\n \n \n\n Phone Number}\n rules={[\n {\n validator: phoneValidator,\n },\n { max: 100, message: \"Phone number cannot be longer than 100 characters\" },\n ]}\n >\n }} autoComplete=\"off\" disabled={existingUser} />\n \n\n Password}\n >\n \n Must contain at least one number and one uppercase and lowercase letter, and at least 6 or more characters\n \n \n (visible ? (\n \n ) : (\n \n ))}\n />\n \n \n\n Confirm Password}\n dependencies={[\"password\"]}\n rules={[\n {\n required: !existingUser,\n message: \"\",\n },\n ({ getFieldValue }) => ({\n validator(_, value) {\n if (!value || getFieldValue(\"password\") === value) {\n return Promise.resolve();\n }\n return Promise.reject(new Error(\"Does not match inputted password\"));\n },\n }),\n ]}\n className=\"SignupForm_PasswordConfirm\"\n >\n (visible ? (\n \n ) : (\n \n ))}\n />\n \n
\n onBackButton(FORM_NAME, form.getFieldValue())}\n nextButtonText=\"Set up ESV\"\n loading={submitting}\n disable={checkUserLoading}\n />\n \n\n );\n}\n","export default __webpack_public_path__ + \"static/media/pumpkin.ec5dab54.gif\";","var _circle, _circle2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgMain = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 8,\n cy: 8,\n r: 7.25,\n fill: \"#F2F6FA\",\n stroke: \"#C4D2DF\",\n strokeWidth: 1.5,\n id: \"innerCircle\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 8.00056,\n cy: 8.00056,\n r: 3.03571,\n fill: \"#26ABE1\",\n stroke: \"#26ABE1\",\n strokeWidth: 1.5,\n id: \"outerCircle\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgMain, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/main.d61d3978.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useRef, useState } from \"react\";\n\nimport \"./OnboardingForm.css\";\nimport { Steps } from \"antd\";\nimport { AES, enc } from \"crypto-js\";\nimport { mapValues } from \"lodash\";\nimport moment from \"moment\";\nimport { useLocation } from \"react-router\";\nimport { toast } from \"react-toastify\";\n\nimport AddCompanySuccessLandingPage from \"../../AddCompany/AddCompanySuccessLandingPage\";\nimport NoResults from \"../../Common/NoResultsGIF\";\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport FormLayout from \"../FormLayout\";\nimport FormPageLayout from \"../FormPageLayout\";\nimport OnboardingWelcomePage from \"../OnboardingWelcomePage\";\nimport {\n RenderIconOnPreviousClick, RenderIconOnNextClick, RenderIconOnPreviousClickForCustomerExist, RenderIconOnNextClickForCustomerExist,\n} from \"./RenderStepsIcon\";\nimport CompanyContactForm from \"./SubForms/CompanyContactForm/CompanyContactForm\";\nimport CompanyInfoForm from \"./SubForms/CompanyInfoForm\";\nimport FieldsForm from \"./SubForms/FieldsForm/FieldsForm\";\nimport LinkReportForm from \"./SubForms/LinkReportForm\";\nimport SignupForm from \"./SubForms/SignupForm\";\n\nimport { getUserCredentials } from \"../../../utils/common\";\nimport { AES_128_BIT_KEY } from \"../../../utils/Constant\";\nimport { validateEmail, validatePhoneNumber } from \"../../Common/utils/validationUtils\";\n\nimport { submitOnboardingForm } from \"../../../actions/onboarding\";\n\nimport pumpkinIcon from \"../../../assets/images/environment/pumpkin.gif\";\nimport { ReactComponent as AccountCreation } from \"../../../assets/images/onboarding/AccountCreation.svg\";\nimport { ReactComponent as ContactInfo } from \"../../../assets/images/onboarding/ContactInfo.svg\";\nimport { ReactComponent as CustomerInfo } from \"../../../assets/images/onboarding/CustomerInfo.svg\";\nimport { ReactComponent as ESVLogo } from \"../../../assets/images/onboarding/ESVLogo.svg\";\nimport { ReactComponent as Main } from \"../../../assets/images/onboarding/main.svg\";\n\nexport default function OnboardingForm({\n history, statusMessage, setStatusMessage, addCompany = false,\n}) {\n const { search } = useLocation();\n const [stepItems, setStepItems] = useState([{\n title: ,\n description: \"Customer Info\",\n disabled: false,\n formName: \"company_info_form\",\n icon:
,\n },\n\n {\n description: \"Contact Info\",\n title: ,\n disabled: true,\n formName: \"company_contact_form\",\n icon:
,\n },\n {\n title: ,\n description: \"ESV\",\n disabled: true,\n formName: \"fields_form\",\n icon:
,\n },\n {\n title: ,\n description: \"Account Creation\",\n disabled: true,\n formName: \"signup_form\",\n icon:
,\n },\n ]);\n const [stepChangeInProgress, setStepChangeInProgress] = useState(null); // { diff: Number } if step change in progress set diff (ex: -2, -1, 1, 2 etc.) else null\n const [loading, setLoading] = useState(true);\n const [loaded, setLoaded] = useState(false);\n const [invalidMessage, setInvalidMessage] = useState(\"\");\n const [showForm, setShowForm] = useState(false);\n const [formData, setFormData] = useState({\n company_info_form: {\n // company_name: \"\",\n customer_name: \"\",\n customer_email: \"\",\n distribution_list: null,\n same_address: false,\n },\n company_contact_form: {\n same_as_address: false,\n },\n fields_form: {\n product_info: {\n sample_type: \"Sample Type\",\n date: \"Received Date\",\n editable_fields: [\n { json_field: \"item\", title_field: \"Item\" },\n { json_field: \"lot\", title_field: \"Lot\" },\n { json_field: \"description\", title_field: \"Description\" },\n ],\n sample_supply: \"\",\n product_link: [],\n add_company: \"\",\n },\n environment_info: {\n sample_type: \"Sample Type\",\n date: \"Received Date\",\n swab_number: \"Swab Number\",\n zone: \"Zone\",\n section: \"Section\",\n editable_fields: [],\n env_sample_supply: \"\",\n environment_link: [],\n environment_supplies_needed: \"\",\n env_add_company: \"\",\n },\n },\n link_report_form: {},\n signup_form: {},\n });\n const [currentFormIdx, setCurrentFormIdx] = useState(0);\n const [submitting, setSubmitting] = useState(false);\n const [submitSuccess, setSubmitSuccess] = useState(false);\n const [existingUser, setExistingUser] = useState(false);\n const [userMail, setUserMail] = useState(\"\");\n const [display, setDisplay] = useState(true);\n const [isCustomerExist, setIsCustomerExist] = useState(false);\n const [isSupport, setIsSupport] = useState(false);\n const defaultPayloadValues = useRef({ sales_email: \"\", csm_email: \"\" });\n const [displaySuccessScreen, setDisplaySuccessScreen] = useState(false);\n const [userCredential, setUserCredentials] = useState(\"\");\n const onStepChange = (value) => {\n if (value >= currentFormIdx) {\n return;\n }\n for (let i = value + 1; i <= 3; i++) {\n setStepItems((prevStepItems) => prevStepItems.map((stepItem, stepIdx) => {\n if (i === stepIdx) {\n return { ...stepItem, title: isCustomerExist && !addCompany ? : };\n }\n return stepItem;\n }));\n }\n setStepChangeInProgress({ diff: value - currentFormIdx });\n };\n\n /**\n * Save current form data and go to new step\n * @param {String} formName name of form\n * @param {Object} formValues values of form\n * @param {Number} _newIdx index of new step\n */\n const handleFormStepChange = (formName, formValues, diff) => {\n setFormData({ ...formData, [formName]: formValues });\n if (stepChangeInProgress) {\n setStepChangeInProgress(null);\n }\n setCurrentFormIdx(currentFormIdx + diff);\n };\n\n const onBackButton = (formName, formValues) => {\n setStepItems(\n (prevStepItems) => prevStepItems.map((stepItem, stepIdx) => {\n if (currentFormIdx === stepIdx) {\n return { ...stepItem, title: };\n }\n return stepItem;\n }),\n );\n handleFormStepChange(formName, formValues, -1); // save form, go to prev step\n };\n\n const onNextButton = (formName, formValues) => {\n handleFormStepChange(formName, formValues, 1); // save form, go to next step\n };\n\n const handleSubmit = (formName, formValues) => {\n handleFormStepChange(formName, formValues, 0); // save form, stay on current step\n setSubmitting(true);\n };\n\n /* Update which steps are disabled when currentFormIdx changes */\n useEffect(() => {\n setStepItems((prevStepItems) => prevStepItems.map((stepItem, stepIdx) => {\n if (currentFormIdx === stepIdx) {\n return { ...stepItem, title: isCustomerExist && !addCompany ? : };\n }\n return stepItem;\n }));\n setStepItems((prevStepItems) => prevStepItems.map((stepItem, stepIdx) => ({ ...stepItem, disabled: submitting || stepIdx > currentFormIdx })));\n }, [currentFormIdx, submitting, isCustomerExist]); // eslint-disable-line\n\n /** Verify link and load form */\n useEffect(() => {\n async function handleParseLink() {\n try {\n const encrypted = search.slice(1); // removes \"?\" at the beginning of string\n if (search) {\n const decrypted = AES.decrypt(encrypted, AES_128_BIT_KEY).toString(enc.Utf8);\n const searchParams = new URLSearchParams(decrypted);\n const salesEmail = searchParams.get(\"sales_email\");\n const csmEmail = searchParams.get(\"csm_email\");\n const companyName = searchParams.get(\"company_name\");\n const customerName = searchParams.get(\"customer_name\");\n const customerEmail = searchParams.get(\"customer_email\");\n const customerID = searchParams.get(\"customer_id\");\n const expirationDate = searchParams.get(\"expiration\"); // format: 2023-09-30T23:38:13Z (Z means UTC time)\n\n if (!salesEmail || !csmEmail || !companyName || !customerName || !customerEmail || !expirationDate) {\n if (!addCompany) {\n setLoading(false);\n setInvalidMessage(\"Invalid link\");\n return;\n }\n }\n\n /** Make sure the current day is not after expiration date */\n const momentExpirationDate = moment.utc(expirationDate).endOf(\"day\");\n if (!momentExpirationDate.isValid()) {\n setLoading(false);\n setInvalidMessage(\"Invalid link\");\n return;\n }\n\n const currentUTCDate = moment.utc();\n const isExpired = currentUTCDate.isAfter(momentExpirationDate);\n\n if (isExpired) {\n setLoading(false);\n setInvalidMessage(\"Link has expired\");\n return;\n }\n\n const initialFormValues = {\n ...formData,\n company_info_form: {\n company_name: companyName,\n customer_name: customerName,\n customer_email: customerEmail,\n distribution_list: [customerEmail],\n },\n };\n\n setUserMail(customerEmail);\n\n const default_payload_values = { sales_email: salesEmail, csm_email: csmEmail };\n if (customerID) {\n setIsCustomerExist(true);\n default_payload_values.company_info = { distribution_list: [] };\n default_payload_values.customer_id = customerID;\n setStepItems(stepItems.filter(({ formName }) => formName !== \"company_contact_form\"));\n delete initialFormValues.company_contact_form;\n }\n setFormData(initialFormValues);\n defaultPayloadValues.current = default_payload_values;\n setLoaded(true);\n\n /* In case of the add Company we set data for the company from the session storage. */\n } else if (addCompany) {\n const userCredentials = await getUserCredentials();\n setUserCredentials(userCredentials);\n setIsSupport(userCredentials?.uid === \"support\");\n const emails = userCredentials.user_email || \"\";\n const initialFormValues = {\n ...formData,\n company_info_form: {\n company_name: \"\",\n customer_name: userCredentials.user_name,\n customer_email: emails,\n distribution_list: [emails] ?? [],\n },\n };\n setUserMail(emails);\n /* In case of the support */\n const default_payload_values = {\n company_info: { distribution_list: emails || \"\" },\n // customer_id: customerData.customer_id,\n company_name: userCredentials.company_name,\n };\n\n setStepItems(stepItems.filter(({ formName }) => formName !== \"signup_form\"));\n\n defaultPayloadValues.current = default_payload_values;\n setIsCustomerExist(true);\n setFormData(initialFormValues);\n setLoaded(true);\n } else {\n setLoading(false);\n setInvalidMessage(\"Invalid link\");\n }\n } catch (e) {\n setLoading(false);\n setInvalidMessage(\"Invalid link\");\n }\n }\n\n handleParseLink();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** Temp Fix for UI issues on mount, setTimeout() fixes the issue */\n useEffect(() => {\n if (loaded) {\n setTimeout(() => {\n setLoading(false);\n setShowForm(true);\n }, 200);\n }\n }, [loaded]);\n\n /** Submit form */\n useEffect(() => {\n function trimValues(dataObj) {\n return mapValues(dataObj, (fieldVal) => { // trim all vals\n if (typeof fieldVal === \"string\") {\n return fieldVal.trim();\n }\n if (typeof fieldVal === \"object\" && fieldVal.constructor === Array) {\n return fieldVal.map((val) => val.trim()); // trim all vals in array\n }\n if (typeof fieldVal === \"object\") {\n return trimValues(fieldVal); // recursively trim\n }\n return \"\";\n });\n }\n\n async function handleSubmitForm() {\n const payload = {};\n Object.keys(formData).forEach((formName) => {\n const data = formData[formName];\n if (formName === \"company_info_form\") {\n const {\n customer_name,\n company_name,\n distribution_list,\n address,\n customer_email,\n } = data;\n const company_info = trimValues({\n customer_name,\n company_name,\n distribution_list,\n });\n if (address) {\n const contact = trimValues({\n address: {\n city: address.city,\n country: address.country,\n line_2: address.line_2,\n state: address.state,\n street: address.street,\n zipcode: address.zipcode,\n },\n });\n payload.contact = contact;\n }\n payload.company_info = company_info;\n if (customer_email || addCompany) payload.company_info.customer_email = customer_email;\n } else if (formName === \"company_contact_form\") {\n const {\n contact_name, position, email, phone_number, billing, same_as_address,\n } = data;\n const contact = trimValues({\n ...payload.contact,\n contact_name,\n position,\n email,\n phone_number,\n billing: {\n bill_to: billing.bill_to,\n ap_contact: billing.ap_contact,\n email: billing.email,\n phone_number: billing.phone_number,\n address: billing.address,\n },\n });\n if (same_as_address) {\n contact.billing.address = contact.address;\n }\n payload.contact = contact;\n if (!addCompany) payload.company_info.customer_email = contact.email;\n } else if (formName === \"fields_form\") {\n const {\n product_info,\n environment_info,\n } = data;\n if (product_info.sample_supply === \"Yes\") {\n const nonEditableFields = [{ json_field: \"sample_type\", title_field: \"Sample Type\" }, { json_field: \"received_date\", title_field: \"Received Date\" }];\n const fields = [...nonEditableFields, ...(product_info.editable_fields ?? [])];\n payload.product_info = {\n fields,\n product_link: product_info.product_link,\n };\n }\n if (environment_info.env_sample_supply === \"Yes\") {\n const nonEditableFields_env = [\n { json_field: \"sample_type\", title_field: \"Sample Type\" },\n { json_field: \"received_date\", title_field: \"Received Date\" },\n { json_field: \"swab_number\", title_field: \"Swab Number\" },\n { json_field: \"zone\", title_field: \"Zone\" },\n { json_field: \"section\", title_field: \"Section\" },\n ];\n const field_env = [...nonEditableFields_env, ...(environment_info.editable_fields ?? [])];\n payload.environment_info = {\n fields: field_env,\n environment_link: environment_info.environment_link,\n environment_supplies_needed: environment_info.environment_supplies_needed,\n };\n }\n } else if (formName === \"signup_form\") {\n const {\n company_name, email, phone_number, password, customer_name,\n } = data;\n const signup = trimValues({\n company_name, email, phone_number, customer_name,\n });\n payload.signup = { ...signup, password }; // don't trim password\n if (addCompany) {\n payload.signup.company_name = formData.company_info_form.company_name;\n }\n }\n });\n\n /** Send base url */\n payload.base_url = window.location.origin;\n\n /** Send sales and csm emails. If existing customer, send customer id and empty list for distribution_list. */\n const {\n sales_email, csm_email, customer_id, company_info,\n } = defaultPayloadValues.current;\n payload.sales_email = sales_email;\n payload.csm_email = csm_email;\n if (customer_id && !addCompany) {\n payload.customer_id = customer_id;\n payload.company_info.distribution_list = company_info.distribution_list;\n }\n\n /** send a boolian value indictaing if the user already exists */\n payload.existing_user = addCompany ? \"true\" : existingUser;\n\n /**\n * Remove existing customer details from payload\n * @param {string} customer_id\n * @param {string} company_domain\n * @param {string} sales_email\n * @param {string} cms_email\n * set values for the form SignUp from the existing values and session storage\n * disabling the interceptor to remove unnecessary values from the payload\n */\n if (addCompany) {\n // Delete extra fields\n Object.keys(payload).forEach((key) => {\n if ([\"company_domain\", \"customer_id\", \"company_name\", \"sales_email\", \"csm_email\"].includes(key)) {\n delete payload[key];\n }\n });\n payload.signup.customer_name = payload.company_info.customer_name;\n payload.signup.email = payload.company_info.customer_email;\n payload.current_company_name = await getUserCredentials()?.company_name;\n payload.disableInterceptor = true;\n }\n\n const { success, message } = await submitOnboardingForm(payload);\n setSubmitting(false);\n if (success) {\n const newMessage = message === \"Success\" ? \"Signup successful\" : `Warning: ${message}`;\n if (addCompany) {\n setDisplaySuccessScreen(true);\n } else if (statusMessage !== newMessage) {\n setStatusMessage(newMessage);\n setSubmitSuccess(true);\n toast.success(newMessage);\n history.push(\"/login\");\n } else {\n history.push(\"/login\");\n }\n } else if (addCompany) {\n toast.error(message);\n } else {\n setStatusMessage(\"Something went wrong!\");\n setSubmitSuccess(false);\n toast.error(message);\n }\n }\n\n if (submitting) {\n handleSubmitForm();\n }\n }, [formData, submitting]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** After status message is updated, go to success page */\n useEffect(() => {\n if (submitSuccess) {\n history.push(\"/login\");\n }\n }, [statusMessage, submitSuccess]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** Show toast error when validation fails on next/submit */\n const onFinishFailed = () => {\n toast.error(\"Invalid input\");\n };\n\n const emailValidator = async (_, value) => {\n if (!value || validateEmail(value)) {\n return Promise.resolve();\n }\n return Promise.reject(new Error(\"Invalid email\"));\n };\n\n const phoneValidator = async (_, value) => {\n if (!value || validatePhoneNumber(value)) {\n return Promise.resolve();\n }\n return Promise.reject(new Error(\"Invalid phone number\"));\n };\n\n if (loading) {\n return (\n \n {/*
\n \n
*/}\n
\n );\n }\n\n if (!showForm) {\n return (\n \n
\n \n
\n
\n );\n }\n\n if (displaySuccessScreen) {\n const companyName = formData.company_info_form.company_name;\n return (\n \n );\n }\n return (\n \n {display ? (\n \n )\n : (\n <>\n
\n ({\n title, disabled, description, icon,\n }))}\n current={currentFormIdx}\n className=\"OnboardingForm__Steps\"\n direction=\"vertical\"\n labelPlacement=\"vertical\"\n onChange={onStepChange}\n />\n {\n addCompany && ( history.push(\"/sample-submission\")}>Exit)\n }\n
\n \n {stepItems[currentFormIdx].formName === \"company_info_form\" && (\n \n )}\n {stepItems[currentFormIdx].formName === \"company_contact_form\" && (\n \n )}\n {stepItems[currentFormIdx].formName === \"fields_form\" && (\n \n )}\n {stepItems[currentFormIdx].formName === \"link_report_form\" && (\n \n )}\n {stepItems[currentFormIdx].formName === \"signup_form\" && (\n \n )}\n \n \n )}\n
\n );\n}\n","import React from \"react\";\nimport \"./addCompany.css\";\nimport OnboardingForm from \"../Onboarding/OnboardingForm/OnboardingForm\";\n\nexport default function AddCompanyLandingPage({ history }) {\n return ;\n}\n","export default __webpack_public_path__ + \"static/media/under_maintenance.beef664e.gif\";","import React, { useContext, useEffect, useState } from \"react\";\nimport maintenanceImg from \"../assets/images/under_maintenance.gif\";\nimport { signOut } from \"../utils/common\";\nimport \"./AuthFailedPage.css\";\nimport { AppContext } from \"../AppContext\";\n\nconst AuthFailedPage = ({ history }) => {\n const [timeRemaining, setTimeRemaining] = useState(10);\n const appContext = useContext(AppContext);\n\n /**\n * Set countdown timer.\n */\n useEffect(() => {\n if (!timeRemaining) {\n signOut(history, appContext);\n return;\n }\n const intervalID = setInterval(() => setTimeRemaining(timeRemaining - 1), 1000);\n\n return () => clearInterval(intervalID); // eslint-disable-line\n }, [timeRemaining]); // eslint-disable-line\n\n return (\n
\n \"under_maintenance\"\n {`Signing out in ${timeRemaining}s`}\n Authentication failed.\n \n
\n );\n};\n\nexport default AuthFailedPage;\n","import React from \"react\";\nimport { Dropdown } from \"antd\";\nimport DocOptionRenameIcon from \"../../../assets/images/DocOptionRenameIcon.png\";\nimport DocOptionDeleteIcon from \"../../../assets/images/DocOptionDeleteIcon.png\";\nimport DocOptionDownloadIcon from \"../../../assets/images/DocOptionDownloadIcon.png\";\nimport OptionIcon from \"../../../assets/images/DocFileOptionIcon.png\";\nimport \"./DocumentsMenuOption.css\";\n\nexport default function DocumentsMenuOption(props) {\n const {\n handleRenameFile,\n handleDownloadFile,\n handleConfirmDelete,\n handleFileOptionClick,\n onOpenChange,\n } = props;\n\n const items = [\n {\n label:\n
\n \"\"\n \n Rename\n
\n
,\n key: \"0\",\n },\n {\n label:\n
\n \"\"\n \n Download\n\n
\n
,\n key: \"1\",\n },\n {\n label:\n
\n \"\"\n \n Delete\n\n
\n
,\n key: \"2\",\n },\n ];\n\n return (\n \n handleFileOptionClick(e)}\n src={OptionIcon}\n alt=\"\"\n />\n \n );\n}\n","import React, { Component } from \"react\";\nimport PDFileICon from \"../../../assets/images/PDF_FileIcon.png\";\nimport ImageFileICon from \"../../../assets/images/Image_FileIcon.png\";\nimport XlSXFileIcon from \"../../../assets/images/XlSX_FileIcon.png\";\nimport closeIcon from \"../../../assets/images/index/closeCircleBlue.png\";\nimport \"./DocumentsCard.css\";\nimport DocumentsMenuOption from \"./DocumentsMenuOption\";\n\nexport default class DocumentsCard extends Component {\n constructor(props) {\n super(props);\n this.state = {\n cardHover: false,\n menuOpen: false,\n };\n }\n\n handleCardEnter = () => {\n this.setState({\n cardHover: true,\n });\n };\n\n handleCardLeave = () => {\n this.setState({\n cardHover: false,\n });\n };\n\n renderFileIcon = (extension) => {\n switch (extension) {\n case \"pdf\":\n return PDFileICon;\n case \"xlsx\":\n return XlSXFileIcon;\n default:\n return ImageFileICon;\n }\n }\n\n onOpenChange = (isOpen) => {\n this.setState({ menuOpen: isOpen, cardHover: isOpen });\n }\n\n render() {\n const { cardHover, menuOpen } = this.state;\n const {\n file,\n readOnly,\n index,\n handleFileOptionClick,\n handleCheckbox,\n handleNameChange,\n handleNameSubmit,\n handleCancelRename,\n handleRenameFile,\n handleConfirmDelete,\n handleDownloadFile,\n } = this.props;\n\n return (\n
\n \n {cardHover && (\n
\n \n {!readOnly && (\n handleFileOptionClick(e, file)}\n className=\"docDotIconWrapper\"\n >\n handleRenameFile(null, file)}\n handleConfirmDelete={() => handleConfirmDelete(null, file, false)}\n handleDownloadFile={() => handleDownloadFile(null, file, false)}\n handleFileOptionClick={(e) => handleFileOptionClick(e)}\n onOpenChange={this.onOpenChange}\n />\n
\n )}\n
\n )}\n\n
\n \n
\n
\n handleRenameFile(e, file)}\n className=\"docCardFileName\"\n >\n {file.renameDisable ? (\n file.name\n ) : (\n
\n handleNameChange(e, file.key)}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={(e) => handleNameSubmit(e, file.key)}\n // onDoubleClick={(e) => handleRenameFile(e, file)}\n type=\"text\"\n value={file.renameValue}\n />\n handleCancelRename(e, file.key)}\n />\n
\n )}\n
\n \n );\n }\n}\n","import React, { Component } from \"react\";\n// import PDFileICon from \"../../../assets/images/PDF_FileIcon.png\";\n// import DocCardDots from \"../../../assets/images/DocCardDots.png\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport DocumentsCard from \"./DocumentsCard\";\nimport \"./DocumentsCardView.css\";\n\nexport default class DocumentsCardView extends Component {\n render() {\n const {\n files,\n readOnly,\n handleFileOptionClick,\n handleCheckbox,\n handleNameChange,\n handleNameSubmit,\n handleRenameFile,\n handleCancelRename,\n handleConfirmDelete,\n handleDownloadFile,\n } = this.props;\n return (\n \n
\n {files.map((file, index) => (\n \n ))}\n
\n \n );\n }\n}\n","import React, { Component } from \"react\";\nimport { Modal } from \"antd\";\nimport \"./DocumentsConfirmDelete.css\";\n\nexport default class DocumentsConfirmDelete extends Component {\n render() {\n const {\n toggleConfirmDelete, numOfSelectedFiles, handleDeleteFile, batch, deleteItem,\n } = this.props;\n return (\n\n \n
\n
\n Delete\n {\" \"}\n {batch ? numOfSelectedFiles : 1}\n {\" \"}\n {batch && numOfSelectedFiles > 1 ? \"files\" : \"file\"}\n
\n
These files will no longer be available for use.
\n
\n \n \n
\n
\n \n );\n }\n}\n","import moment from \"moment\";\nimport React, { Component } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport DocumentsMenuOption from \"./DocumentsMenuOption\";\nimport \"./DocumentsListView.css\";\n\nexport default class DocumentsListView extends Component {\n render() {\n const {\n files,\n readOnly,\n handleCheckbox,\n handleCheckboxAll,\n selectAll,\n handleFileOptionClick,\n handleNameChange,\n handleNameSubmit,\n handleRenameFile,\n handleDownloadFile,\n handleConfirmDelete,\n selectedFile,\n } = this.props;\n\n return (\n \n \n \n \n \n \n \n \n \n {/* \n */}\n \n \n\n \n {files.map((file) => (\n handleCheckbox(e, file.key)}\n key={file.key}\n className={file.checked ? \"docSelectedFile DocFileTableBody__tr\" : \"DocFileTableBody__tr\"}\n >\n \n \n \n \n \n \n ))}\n \n
\n \n NameTypeSizeDate Uploaded\n Sort by\n \n \n this.handleChangeView()}\n >\n Card View\n \n
\n \n \n {file.renameDisable ? (\n file.renameValue\n ) : (\n handleNameChange(e, file.key)}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={(e) => handleNameSubmit(e, file.key)}\n type=\"text\"\n value={file.renameValue}\n />\n )}\n {file.extension.toUpperCase()}{file.fileSize}\n
\n
{moment(new Date(file.uploadDate)).format(\"lll\")}
\n {!readOnly && (\n handleRenameFile(null, file)}\n handleConfirmDelete={() => handleConfirmDelete(null, file, false)}\n handleDownloadFile={() => handleDownloadFile(null, file, false)}\n handleFileOptionClick={(e) => handleFileOptionClick(e)}\n />\n )}\n
\n
\n \n );\n }\n}\n","import axios from \"axios\";\nimport { API_URL } from \"../utils/Constant\";\n\n/**\n * Get list of files for company.\n * If pId is empty, get all files for the company (Documents).\n * If not empty, get list of files for specified product (Product Documents).\n * @param {String} pId If coming from Index, this is the product_id of selected product, otherwise empty.\n * @returns {Object} { success, message, result: [{ files: [{name, type, size, uploaded, file_path},...] }] }\n */\nexport const getFiles = async (pId = \"\") => {\n try {\n const params = {\n product_id: pId,\n };\n const response = await axios.get(`${API_URL}/getdocuments/`, { params });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Upload a document for company or product\n * @param {Array} payload [{ file, name, size, type, uploaded }, ...]\n * @param {String} category \"Add\", \"Edit\", or \"Delete\"\n * @param {String} pId product_id of product for which user is uploading a document\n * @returns {Object} { success, message, result: [{ files: [{name, type, size, uploaded, file_path},...] }] }\n */\nexport const postFiles = async (payload, category, pId = \"\") => {\n try {\n const response = await axios.post(`${API_URL}/adddocument/`, {\n category,\n product_id: pId,\n files: payload,\n });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Search documents for a company\n * @param {String} payload search value\n * @returns {Object} { success, message, result: [{ company_doamin, files: [{name, type, size, uploaded, file_path},...] }] }\n */\nexport const searchFiles = async (payload) => {\n try {\n const params = {\n name: payload || \"\",\n };\n const response = await axios.get(`${API_URL}/documentsearch/`, { params });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n","import React, { Component } from \"react\";\n\nimport moment from \"moment\";\nimport { toast } from \"react-toastify\";\n// import async from \"async\";\n\nimport DocumentsCardView from \"./Components/DocumentsCardView\";\nimport DocumentsConfirmDelete from \"./Components/DocumentsConfirmDelete\";\nimport DocumentsListView from \"./Components/DocumentsListView\";\n\nimport {\n downloadFileFromS3WithPresigned, uploadFileToS3WithPresigned, deleteFileFromS3WithPresigned,\n getFilePath,\n} from \"../../utils/helpers\";\n\n// import successIcon from \"../../assets/images/index/checkIconTrans.png\";\nimport { postFiles, getFiles, searchFiles } from \"../../actions/documents\";\n\nimport AddFileIcon from \"../../assets/images/AddFileIcon_2x.png\";\nimport CardViewIcon from \"../../assets/images/CardViewIcon.png\";\nimport CardViewIconInactive from \"../../assets/images/CardViewIconInactive.png\";\nimport DownloadHoverIcon from \"../../assets/images/DocDownloadHoverIcon.png\";\nimport DownloadIcon from \"../../assets/images/DocDownloadIcon.png\";\nimport SearchIcon from \"../../assets/images/DocSearchIcon.png\";\nimport SearchIconActive from \"../../assets/images/DocSearchIconActive.png\";\nimport DocSearchIconClose from \"../../assets/images/DocSearchIconClose.png\";\nimport TrashHoverIcon from \"../../assets/images/DocTrashHoverIcon.png\";\nimport TrashIcon from \"../../assets/images/DocTrashIcon.png\";\nimport ListViewIcon from \"../../assets/images/ListViewIcon.png\";\nimport ListViewIconInactive from \"../../assets/images/ListViewIconInactive.png\";\nimport CloseIcon from \"../../assets/images/UploadFileModalCloseIcon.png\";\n\nimport \"./Documents.css\";\n\nexport default class Documents extends Component {\n constructor(props) {\n super(props);\n this.state = {\n cardView: false,\n files: [],\n selectAll: false,\n fileSelected: false,\n numOfSelectedFiles: 0,\n showSearchIcon: true,\n searchValue: \"\",\n confirmDelete: false,\n batch: false,\n deleteItem: null,\n };\n this.docUploadInput = React.createRef();\n this.preventCheckbox = false;\n }\n\n componentDidMount() {\n this.apiGetFiles();\n }\n\n apiGetFiles = async () => {\n const response = await getFiles();\n if (response && response.success) {\n let results = response.result;\n const data = [];\n if (results.length < 1) {\n this.setState({ files: data });\n } else {\n results = results[0];\n results.files.forEach((file, index) => {\n data.push({\n key: index,\n name: file.name,\n extension: file.type,\n uploadDate: moment(file.uploaded).format(\"lll\"),\n fileSize: file.size,\n file: file.file_path,\n checked: false,\n renameDisable: true,\n nubOfSelectedFile: 0,\n renameValue: file.name,\n });\n });\n this.setState({ files: data });\n }\n } else {\n toast.error(response.message);\n }\n };\n\n handleUploadedFiles = (event) => {\n const filesUploaded = Array.from(event.target.files);\n let { files } = this.state;\n let key = files.length;\n let name = \"\";\n let extension = \"\";\n let uploadDate = \"\";\n let fileSize = \"\";\n let filesArr = [];\n const expXLSX = new RegExp(\"sheet|spreadsheet/g\");\n const expXLS = new RegExp(\"excel\");\n const expDocX = new RegExp(\"officedocument\");\n const expDoc = new RegExp(\"msword\");\n let filesSet = [];\n let duplicateKeys = [];\n let dotIndex;\n const supportedExtensions = [\"xlsx\", \"xls\", \"docx\", \"doc\", \"jpg\", \"jpeg\", \"pdf\", \"png\"];\n\n filesUploaded.forEach((file) => {\n name = file.name;\n for (let i = name.length - 1; i >= 0; i--) {\n if (name[i] === \".\") {\n dotIndex = i;\n break;\n }\n }\n name = name.substring(0, dotIndex);\n extension = file.type.split(\"/\").pop();\n uploadDate = moment(Date.now()).format(\"YYYY-MM-DD hh:mm:ss a\");\n fileSize = `${Math.ceil(file.size / 1024)}kb`;\n\n if (extension.match(expXLSX)) extension = \"xlsx\";\n if (extension.match(expXLS)) extension = \"xls\";\n if (extension.match(expDocX)) extension = \"docx\";\n if (extension.match(expDoc)) extension = \"doc\";\n\n if (supportedExtensions.includes(extension)) {\n filesArr.push({\n key,\n name,\n extension,\n uploadDate,\n fileSize,\n file,\n checked: false,\n renameDisable: true,\n nubOfSelectedFile: 0,\n renameValue: name,\n });\n } else {\n toast.error(`File type not supported: ${extension}`);\n }\n key++;\n });\n\n if (files.length < 1) {\n files = [...filesArr, ...files];\n } else {\n filesArr.forEach((uploadedFile, i) => {\n files.forEach((currentFile) => {\n if (uploadedFile.name === currentFile.name) {\n duplicateKeys.push(i);\n }\n });\n });\n\n if (duplicateKeys.length < 1) {\n // files = [...filesArr, ...files];\n files = [...filesArr];\n } else {\n duplicateKeys.forEach((keyItem) => {\n filesArr.forEach((file, index) => {\n if (index === keyItem) {\n toast.error(\"Duplicate file\");\n } else {\n filesSet.push(file);\n }\n });\n });\n // files = [...filesSet, ...files];\n files = [...filesSet];\n }\n }\n filesArr = [];\n duplicateKeys = [];\n filesSet = [];\n if (files.length > 0) {\n this.apiPostFiles(files, \"Add\");\n }\n };\n\n apiPostFiles = async (files, category, key) => {\n let file;\n let payloadObj = {};\n const payloadArray = [];\n if (category === \"Edit\") {\n file = files[key];\n payloadObj = {\n old_name: file.name,\n new_name: file.renameValue,\n };\n\n if (payloadObj.old_name === payloadObj.new_name) {\n this.setState({ files });\n return;\n } if (payloadObj.new_name.trim() === \"\") {\n toast.error(\"File name cannot be empty\");\n file.renameValue = file.name;\n files[key] = file;\n this.setState({ files });\n return;\n }\n payloadArray.push(payloadObj);\n // this.addFilesToAWS([file], async (error, response) => {\n const res = await postFiles(payloadArray, category);\n if (res && res.success) {\n if (res.message === \"success\") {\n toast.success(\"File renamed successfully\");\n file.name = file.renameValue;\n files[key] = file;\n this.setState({ files });\n } else {\n toast.error(res.message);\n file.renameValue = file.name;\n files[key] = file;\n this.setState({ files });\n }\n } else {\n toast.error(\"Fail to rename\");\n file.renameValue = file.name;\n files[key] = file;\n this.setState({ files });\n }\n // });\n } else {\n this.addFilesToAWS(files).then(async (filePaths) => {\n const successFilePaths = filePaths.filter((path) => path !== null);\n const res = await postFiles(successFilePaths, category);\n if (res && res.success) {\n if (res.message !== \"duplicate value\") {\n let results = res.result;\n const data = [];\n if (results.length < 1) {\n this.setState({ files: data, fileSelected: false });\n } else {\n results = results[0];\n results.files.map((file, index) => { // eslint-disable-line\n data.push({\n key: index,\n name: file.name,\n extension: file.type,\n uploadDate: moment(file.uploaded).format(\"LLL\"),\n fileSize: file.size,\n file: file.file_path,\n checked: false,\n renameDisable: true,\n nubOfSelectedFile: 0,\n renameValue: file.name,\n });\n });\n this.setState({ files: data, fileSelected: false });\n toast.success(\"Files uploaded successfully\");\n }\n }\n } else {\n toast.error(\"Files upload failed\");\n }\n });\n }\n };\n\n addFilesToAWS = (files) => Promise.all(files.map(\n (file) => this.addAssetToAWS(file.file).then((response) => {\n if (response) {\n return {\n name: file.name,\n type: file.extension,\n size: file.fileSize,\n uploaded: file.uploadDate,\n file: response.path,\n };\n }\n return null;\n }),\n ))\n ;\n\n addAssetToAWS = async (file) => {\n if (file) {\n const fileInfo = {\n file, folderPath: \"Documents/\", fileName: file.name, type: file.type,\n };\n const key = getFilePath(fileInfo);\n const uploadObj = await uploadFileToS3WithPresigned([fileInfo], \"private\");\n if (!uploadObj) return null;\n return uploadObj[key] ? uploadObj[key] : null;\n } return null;\n };\n\n handleAddFile = () => {\n this.docUploadInput.current.click();\n this.docUploadInput.current.addEventListener(\n \"change\",\n this.handleUploadedFiles,\n );\n };\n\n handleRenameFile = (event, item) => {\n /** The event.stopPropagation() does not close the menu,\n * so we need hte preventCheckbox here to prevent calling the handleCheckbox().\n */\n if (event) {\n event.stopPropagation();\n }\n this.preventCheckbox = true;\n const { files } = this.state;\n files.forEach((file) => {\n if (file.key === item.key) {\n file.renameDisable = !file.renameDisable;\n } else {\n file.renameDisable = true;\n }\n });\n\n this.setState({ files });\n };\n\n handleCancelRename = (e, key) => {\n e.stopPropagation();\n const { files } = this.state;\n files.forEach((file) => {\n if (file.key === key) {\n file.renameDisable = true;\n file.renameValue = file.name;\n }\n });\n this.setState({ files });\n }\n\n handleDeleteFile = async (event, item, batch) => {\n const { confirmDelete } = this.state;\n event.stopPropagation();\n let { files } = this.state;\n const awsFiles = [];\n if (batch) {\n const tempArray = files.filter((file) => file.checked === true);\n files = tempArray.map((file) => {\n awsFiles.push(file.file);\n return { name: file.name };\n });\n } else {\n awsFiles.push(item.file);\n files = [{ name: item.name }];\n }\n const response = await postFiles(files, \"Delete\");\n if (response && response.success) {\n this.apiGetFiles();\n // this.deleteFileAWS(awsFiles);\n toast.success(\"Files Deleted successfully\");\n } else {\n toast.error(\"Files Delete failed\");\n }\n\n this.setState({\n fileSelected: false,\n selectAll: false,\n confirmDelete: !confirmDelete,\n });\n };\n\n deleteFileAWS = (files) => {\n files.forEach((file) => {\n deleteFileFromS3WithPresigned([file], \"private\");\n });\n };\n\n handleConfirmDelete = (event, item, batch) => {\n const { confirmDelete } = this.state;\n /** The event.stopPropagation() does not close the menu,\n * so we need hte preventCheckbox here to prevent calling the handleCheckbox().\n */\n if (event) {\n event.stopPropagation();\n }\n this.preventCheckbox = true;\n this.setState({\n confirmDelete: !confirmDelete,\n batch,\n deleteItem: item,\n });\n };\n\n toggleConfirmDelete = () => {\n const { confirmDelete } = this.state;\n this.setState({ confirmDelete: !confirmDelete });\n };\n\n handleDownloadFile = (event, file, batch) => {\n /** The event.stopPropagation() does not close the menu,\n * so we need hte preventCheckbox here to prevent calling the handleCheckbox().\n */\n if (event) {\n event.stopPropagation();\n }\n this.preventCheckbox = true;\n const { files } = this.state;\n if (batch) {\n files.forEach((fileItem) => {\n if (fileItem.checked === true) {\n const fileName = fileItem.file.split(\"/\").pop();\n downloadFileFromS3WithPresigned([fileItem.file], \"private\", [fileName]);\n fileItem.checked = false;\n }\n });\n toast.success(\"Files Download successfully\");\n } else {\n const fileName = file.file.split(\"/\").pop();\n downloadFileFromS3WithPresigned([file.file], \"private\", [fileName]);\n toast.success(\"Files Download successfully\");\n // this.downloadFileAWSPreSignedUrl(file)\n }\n\n this.setState({\n fileSelected: false, selectAll: false,\n });\n };\n\n // downloadFileAWSPreSignedUrl = async (file) => {\n // const params = { Bucket: s3EsvPriv.config.bucket, Key: file.file, Expires: 60 };\n // s3EsvPriv.getSignedUrl(\"getObject\", params, (err, url) => {\n // console.log(\"PreSigned URL:\", url);\n // });\n // }\n\n handleChangeView = () => {\n const { cardView } = this.state;\n this.setState({\n cardView: !cardView,\n });\n };\n\n handleCheckbox = (event, key) => {\n // preventCheckbox = true when Rename/Download/Delete is click\n if (this.preventCheckbox) {\n this.preventCheckbox = false;\n return;\n }\n event.stopPropagation();\n const { files } = this.state;\n let selected = false;\n let counter = 0;\n files.forEach((file) => {\n if (file.key === key) {\n file.checked = !file.checked;\n }\n });\n\n files.forEach((file) => {\n if (file.checked === true) {\n selected = true;\n counter++;\n }\n });\n\n this.setState({\n files,\n fileSelected: selected,\n numOfSelectedFiles: counter,\n });\n\n if (counter === 0) {\n this.setState({ selectAll: false });\n } else if (counter === files.length) {\n this.setState({ selectAll: true });\n }\n };\n\n handleCheckboxAll = () => {\n let selected = false;\n const { files, selectAll } = this.state;\n let counter = 0;\n\n if (!selectAll) {\n files.forEach((file) => {\n file.checked = true;\n });\n } else {\n files.forEach((file) => {\n file.checked = false;\n });\n }\n\n files.forEach((file) => {\n if (file.checked === true) {\n selected = true;\n counter++;\n }\n });\n\n this.setState({\n files,\n selectAll: !selectAll,\n fileSelected: selected,\n numOfSelectedFiles: counter,\n });\n };\n\n handleClearAll = () => {\n const { files } = this.state;\n files.forEach((file) => {\n file.checked = false;\n });\n this.setState({\n files,\n selectAll: false,\n numOfSelectedFiles: 0,\n fileSelected: false,\n });\n };\n\n handleFileOptionClick = (event) => {\n event.stopPropagation();\n };\n\n handleFileOptionClose = (event) => {\n event.stopPropagation();\n };\n\n handleNameChange = (event, key) => {\n const { files } = this.state;\n const { value } = event.target;\n\n const invalidChars = [\"/\", \"\\\\\", \";\", \",\"];\n const invalidString = invalidChars.some((char) => value.includes(char));\n\n if (!invalidString) {\n files.forEach((file) => {\n if (file.key === key) {\n file.renameValue = value;\n }\n });\n this.setState({ files });\n } else {\n toast.error(\"Invalid character entered.\");\n }\n };\n\n handleNameSubmit = (event, key) => {\n const { files } = this.state;\n if (event.key === \"Enter\") {\n files.forEach((file) => {\n if (file.key === key) {\n file.renameDisable = true;\n }\n });\n // this.setState({ files: files });\n this.apiPostFiles(files, \"Edit\", key);\n }\n };\n\n handleSearchChange = async (value) => {\n this.setState({\n searchValue: value,\n });\n const response = await searchFiles(value);\n if (response && response.success) {\n let results = response.result;\n const data = [];\n if (results.length < 1) {\n this.setState({ files: data });\n } else {\n results = results[0];\n results.files.forEach((file, index) => {\n data.push({\n key: index,\n name: file.name,\n extension: file.type,\n uploadDate: moment(file.uploaded).format(\"lll\"),\n fileSize: file.size,\n file: file.file_path,\n checked: false,\n renameDisable: true,\n nubOfSelectedFile: 0,\n renameValue: file.name,\n });\n });\n this.setState({ files: data });\n }\n } else {\n this.setState({ files: [] });\n toast.error(response.message);\n }\n };\n\n render() {\n const {\n cardView,\n // showAddFileModal,\n files,\n selectAll,\n fileSelected,\n numOfSelectedFiles,\n showSearchIcon,\n searchValue,\n confirmDelete,\n batch,\n deleteItem,\n } = this.state;\n const numFiles = files.length;\n\n return (\n <>\n
\n
My Documents
\n
\n
\n
Total Files:
\n
\n {numFiles}\n
\n
\n
\n
Last upload on:
\n
\n {numFiles > 0 ? files[numFiles - 1].uploadDate : \"-\"}\n
\n
\n
\n
\n
\n
\n
\n {cardView ? (\n
\n this.handleCheckboxAll()}\n checked={selectAll}\n className=\"\"\n type=\"checkbox\"\n name=\"\"\n id=\"\"\n />\n
\n ) : (\n
\n )}\n\n
\n {fileSelected ? (\n
\n
\n {numOfSelectedFiles}\n {\" \"}\n file selected\n this.handleClearAll()}\n src={CloseIcon}\n alt=\"\"\n />\n
\n\n this.handleDownloadFile(e, null, true)}\n onMouseEnter={(e) => {\n e.currentTarget.src = DownloadHoverIcon;\n }}\n onMouseLeave={(e) => {\n e.currentTarget.src = DownloadIcon;\n }}\n src={DownloadIcon}\n alt=\"\"\n />\n this.handleConfirmDelete(e, null, true)}\n onMouseEnter={(e) => {\n e.currentTarget.src = TrashHoverIcon;\n }}\n onMouseLeave={(e) => {\n e.currentTarget.src = TrashIcon;\n }}\n src={TrashIcon}\n alt=\"\"\n />\n
\n ) : (\n <>\n
\n {showSearchIcon ? (\n this.setState({ showSearchIcon: !showSearchIcon })}\n className=\"docSearchIcon\"\n src={SearchIcon}\n onMouseEnter={(e) => {\n e.currentTarget.src = SearchIconActive;\n }}\n onMouseLeave={(e) => {\n e.currentTarget.src = SearchIcon;\n }}\n alt=\"\"\n />\n ) : (\n
\n this.handleSearchChange(e.target.value)}\n className=\"docSearchInput\"\n type=\"text\"\n placeholder=\"Search\"\n value={searchValue}\n name=\"\"\n id=\"\"\n />\n \n {\n this.handleSearchChange(\"\");\n this.setState({ showSearchIcon: !showSearchIcon });\n }}\n className=\"docSearchIconClear\"\n src={DocSearchIconClose}\n alt=\"\"\n />\n
\n )}\n
\n {/*
\n Sort By\n \n
*/}\n this.handleChangeView()}\n >\n
\n \n \n {/* */}\n
\n {/* {cardView ? \"List View\" : \"Card View\"} */}\n
\n \n )}\n
\n
\n {cardView && (\n \n )}\n {!cardView\n && (\n \n )}\n
\n \n this.handleAddFile()}\n className=\"docAddFileButton\"\n type=\"button\"\n >\n \n \"add\n \n Add File\n \n {confirmDelete && (\n \n )}\n
\n \n );\n }\n}\n","import React from \"react\";\nimport { Tabs } from \"antd\";\nimport \"./NavTabs.css\";\n\nexport default function NavTabs({\n activeKey,\n addIcon,\n animated,\n centered,\n className,\n defaultActiveKey,\n hideAdd,\n indicatorSize = 0,\n items,\n moreIcon,\n popupClassName,\n renderTabBar,\n size,\n tabBarExtraContent,\n tabBarGutter = 20,\n tabBarStyle,\n tabPosition,\n destroyInactiveTabPane = true,\n type = \"list\",\n onChange,\n onEdit,\n onTabClick,\n onTabScroll,\n}) {\n return (\n \n );\n}\n","import React from \"react\";\n\nimport { Modal } from \"antd\";\n\nimport StyledButton from \"../../../Common/UIComponents/StyledButton\";\n\nimport \"./EnvConfirmModal.css\";\n\nexport default function EnvConfirmModal({\n headerText,\n bodyText,\n buttonText, // [0: cancel, 1: submit, 2: submit-loading]\n buttonFunctions, // [0: cancel, 1: submit, 2: submit-loading]\n loading,\n width,\n renderExtraContent,\n}) {\n return (\n \n
\n
{headerText}
\n
{bodyText}
\n {renderExtraContent && (\n
\n {renderExtraContent}\n
\n )}\n
\n \n {buttonText[0]}\n \n {loading\n ? (\n { }} disabled loading={loading}>\n {buttonText[2]}\n \n )\n : (\n \n {buttonText[1]}\n \n )}\n\n
\n
\n \n );\n}\n","var _g;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCheckMark = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n fill: \"#000000\",\n id: \"Capa_1\",\n width: \"800px\",\n height: \"800px\",\n viewBox: \"0 0 78.369 78.369\",\n xmlSpace: \"preserve\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", null, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M78.049,19.015L29.458,67.606c-0.428,0.428-1.121,0.428-1.548,0L0.32,40.015c-0.427-0.426-0.427-1.119,0-1.547l6.704-6.704 c0.428-0.427,1.121-0.427,1.548,0l20.113,20.112l41.113-41.113c0.429-0.427,1.12-0.427,1.548,0l6.703,6.704 C78.477,17.894,78.477,18.586,78.049,19.015z\"\n }))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCheckMark, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/checkMark.bdc8ad4a.svg\";\nexport { ForwardRef as ReactComponent };","var _circle;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgStepCircle = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 40,\n height: 40,\n viewBox: \"0 0 40 40\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 20,\n cy: 20,\n r: 18,\n fill: \"#EFF2F3\",\n stroke: \"#26ABE1\",\n strokeWidth: 4\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgStepCircle, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/stepCircle.716d95a0.svg\";\nexport { ForwardRef as ReactComponent };","var _circle;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgStepCircleNoFillLightBlue = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 40,\n height: 40,\n viewBox: \"0 0 40 40\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 20,\n cy: 20,\n r: 16,\n fill: \"#26ABE1\",\n stroke: \"#26ABE1\",\n strokeWidth: 8\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgStepCircleNoFillLightBlue, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/stepCircleNoFillLightBlue.f768fb04.svg\";\nexport { ForwardRef as ReactComponent };","var _circle;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgRedWhiteCircle = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 40,\n height: 40,\n viewBox: \"0 0 40 40\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 20,\n cy: 20,\n r: 18.5,\n fill: \"#FDFDFD\",\n stroke: \"#E63559\",\n strokeWidth: 3\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgRedWhiteCircle, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/redWhiteCircle.dea0ae60.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgExclamationMarkRedBg = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 20C4.477 20 0 15.523 0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20ZM9.5 13C9.22386 13 9 13.2239 9 13.5V14.5C9 14.7761 9.22386 15 9.5 15H10.5C10.7761 15 11 14.7761 11 14.5V13.5C11 13.2239 10.7761 13 10.5 13H9.5ZM9.5 5C9.22386 5 9 5.22386 9 5.5V10.5C9 10.7761 9.22386 11 9.5 11H10.5C10.7761 11 11 10.7761 11 10.5V5.5C11 5.22386 10.7761 5 10.5 5H9.5Z\",\n fill: \"#E63559\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgExclamationMarkRedBg, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/exclamationMarkRedBg.6a9c41f0.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { ReactComponent as CheckMarkIcon } from \"../../../../../assets/images/environment/checkMark.svg\";\nimport { ReactComponent as StepCircleIcon } from \"../../../../../assets/images/environment/stepCircle.svg\";\nimport { ReactComponent as StepCircleNoFillLightBlue } from \"../../../../../assets/images/environment/stepCircleNoFillLightBlue.svg\";\nimport { ReactComponent as ErrorCicle } from \"../../../../../assets/images/environment/redWhiteCircle.svg\";\nimport { ReactComponent as ErrorExclamation } from \"../../../../../assets/images/environment/exclamationMarkRedBg.svg\";\nimport \"./StepCircle.css\";\n\nexport default function StepCircle(props) {\n const { number, status, openCreateEnvModalFromTab } = props;\n\n return (\n
\n {\n status === 3 ? (\n <>\n \n \n \n ) : (\n <>\n { status !== 2 ? step circle : }\n { status !== 2 ?

{number}

: check mark icon}\n \n )\n }\n
{`Upload ${number === 1 ? \"Files\" : \"Map\"}`}
\n {openCreateEnvModalFromTab && number === 1 && (
Optional
)}\n
\n\n );\n}\n","var _path, _path2, _path3;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgUpload = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 49,\n height: 49,\n viewBox: \"0 0 49 49\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M42.875 30.625V38.7917C42.875 39.8746 42.4448 40.9132 41.679 41.679C40.9132 42.4448 39.8746 42.875 38.7917 42.875H10.2083C9.12537 42.875 8.08675 42.4448 7.32098 41.679C6.55521 40.9132 6.125 39.8746 6.125 38.7917V30.625\",\n stroke: \"#758AB9\",\n strokeWidth: 4.08333,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M34.7082 16.3333L24.4998 6.125L14.2915 16.3333\",\n stroke: \"#758AB9\",\n strokeWidth: 4.08333,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M24.5 6.125V30.625\",\n stroke: \"#758AB9\",\n strokeWidth: 4.08333,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgUpload, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/upload.fc66db91.svg\";\nexport { ForwardRef as ReactComponent };","/* eslint-disable react/jsx-props-no-spreading */\nimport React from \"react\";\nimport { ReactComponent as UploadIcon } from \"../../../../../assets/images/environment/upload.svg\";\nimport \"./DragDrop.css\";\n\nexport default function DragDrop(props) {\n const {\n uploadTarget, getRootProps, getInputProps,\n } = props;\n\n return (\n
\n \n \n
\n Drag and drop to upload\n {\" \"}\n {uploadTarget}\n
\n \n
\n );\n}\n","var _mask, _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgXlsFileRing = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 40,\n height: 40,\n viewBox: \"0 0 40 40\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _mask || (_mask = /*#__PURE__*/React.createElement(\"mask\", {\n id: \"path-1-inside-1_5054_27495\",\n fill: \"white\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20ZM4 20C4 28.8366 11.1634 36 20 36C28.8366 36 36 28.8366 36 20C36 11.1634 28.8366 4 20 4C11.1634 4 4 11.1634 4 20Z\"\n }))), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M40 20C40 31.0457 31.0457 40 20 40C8.9543 40 0 31.0457 0 20C0 8.9543 8.9543 0 20 0C31.0457 0 40 8.9543 40 20ZM4 20C4 28.8366 11.1634 36 20 36C28.8366 36 36 28.8366 36 20C36 11.1634 28.8366 4 20 4C11.1634 4 4 11.1634 4 20Z\",\n fill: \"current\",\n stroke: \"current\",\n strokeWidth: 8,\n mask: \"url(#path-1-inside-1_5054_27495)\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.0781 15.5469L13.9297 18.625L15.8047 15.5469H17.5L14.7344 19.7188L17.5859 24H15.9141L13.9609 20.8281L12.0078 24H10.3281L13.1719 19.7188L10.4141 15.5469H12.0781ZM20.6094 12V24H19.1562V12H20.6094ZM27.8516 21.7578C27.8516 21.5495 27.8047 21.3568 27.7109 21.1797C27.6224 20.9974 27.4375 20.8333 27.1562 20.6875C26.8802 20.5365 26.4635 20.4062 25.9062 20.2969C25.4375 20.1979 25.013 20.0807 24.6328 19.9453C24.2578 19.8099 23.9375 19.6458 23.6719 19.4531C23.4115 19.2604 23.2109 19.0339 23.0703 18.7734C22.9297 18.513 22.8594 18.2083 22.8594 17.8594C22.8594 17.526 22.9323 17.2109 23.0781 16.9141C23.2292 16.6172 23.4401 16.3542 23.7109 16.125C23.987 15.8958 24.3177 15.7161 24.7031 15.5859C25.0885 15.4557 25.5182 15.3906 25.9922 15.3906C26.6693 15.3906 27.2474 15.5104 27.7266 15.75C28.2057 15.9896 28.5729 16.3099 28.8281 16.7109C29.0833 17.1068 29.2109 17.5469 29.2109 18.0312H27.7656C27.7656 17.7969 27.6953 17.5703 27.5547 17.3516C27.4193 17.1276 27.2188 16.9427 26.9531 16.7969C26.6927 16.651 26.3724 16.5781 25.9922 16.5781C25.5911 16.5781 25.2656 16.6406 25.0156 16.7656C24.7708 16.8854 24.5911 17.0391 24.4766 17.2266C24.3672 17.4141 24.3125 17.612 24.3125 17.8203C24.3125 17.9766 24.3385 18.1172 24.3906 18.2422C24.4479 18.362 24.5469 18.474 24.6875 18.5781C24.8281 18.6771 25.026 18.7708 25.2812 18.8594C25.5365 18.9479 25.862 19.0365 26.2578 19.125C26.9505 19.2812 27.5208 19.4688 27.9688 19.6875C28.4167 19.9062 28.75 20.1745 28.9688 20.4922C29.1875 20.8099 29.2969 21.1953 29.2969 21.6484C29.2969 22.0182 29.2188 22.3568 29.0625 22.6641C28.9115 22.9714 28.6901 23.237 28.3984 23.4609C28.112 23.6797 27.7682 23.8516 27.3672 23.9766C26.9714 24.0964 26.526 24.1562 26.0312 24.1562C25.2865 24.1562 24.6562 24.0234 24.1406 23.7578C23.625 23.4922 23.2344 23.1484 22.9688 22.7266C22.7031 22.3047 22.5703 21.8594 22.5703 21.3906H24.0234C24.0443 21.7865 24.1589 22.1016 24.3672 22.3359C24.5755 22.5651 24.8307 22.7292 25.1328 22.8281C25.4349 22.9219 25.7344 22.9688 26.0312 22.9688C26.4271 22.9688 26.7578 22.9167 27.0234 22.8125C27.2943 22.7083 27.5 22.5651 27.6406 22.3828C27.7812 22.2005 27.8516 21.9922 27.8516 21.7578Z\",\n fill: \"current\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgXlsFileRing, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/xls-file-ring.104dfb83.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { ReactComponent as LoadingDots } from \"../../../../../assets/images/common/LoadingDots.svg\";\nimport \"./LoadingConfirmBtn.css\";\n\nexport default function LoadingConfimBtn() {\n return (\n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgDelete = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 10,\n height: 10,\n viewBox: \"0 0 10 10\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8.18464 0.4L5.00064 3.585L1.81464 0.399C1.71938 0.30584 1.59127 0.253926 1.45803 0.254487C1.32478 0.255048 1.19712 0.30804 1.10264 0.402L0.402642 1.103C0.354723 1.14897 0.316521 1.20409 0.290302 1.2651C0.264083 1.3261 0.250381 1.39175 0.250008 1.45815C0.249635 1.52455 0.262599 1.59035 0.28813 1.65165C0.313662 1.71295 0.351242 1.7685 0.398642 1.815L3.58364 4.999L0.399642 8.185C0.306614 8.2804 0.254879 8.40858 0.255628 8.54182C0.256376 8.67506 0.309548 8.80266 0.403642 8.897L1.10364 9.597C1.30964 9.804 1.61964 9.797 1.81564 9.601L5.00164 6.416L8.18564 9.601C8.28104 9.69403 8.40922 9.74576 8.54246 9.74501C8.67571 9.74427 8.8033 9.69109 8.89764 9.597L9.59864 8.897C9.6465 8.85097 9.68462 8.79579 9.71075 8.73475C9.73689 8.67371 9.7505 8.60804 9.75078 8.54163C9.75105 8.47523 9.738 8.40945 9.71238 8.34819C9.68676 8.28693 9.64911 8.23144 9.60164 8.185L6.41564 4.999L9.60164 1.815C9.6948 1.71974 9.74672 1.59163 9.74616 1.45838C9.74559 1.32514 9.6926 1.19748 9.59864 1.103L8.89864 0.403C8.85172 0.354972 8.79575 0.316722 8.73396 0.290461C8.67217 0.264199 8.60578 0.250447 8.53864 0.25C8.47283 0.250538 8.40776 0.264065 8.34719 0.289806C8.28661 0.315547 8.23171 0.352994 8.18564 0.4H8.18464Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgDelete, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/delete.9127eb12.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { ReactComponent as FileStatusIcon } from \"../../../../../assets/images/environment/xls-file-ring.svg\";\nimport { ReactComponent as DeleteIcon } from \"../../../../../assets/images/environment/delete.svg\";\nimport \"./UploadSwabFiles.css\";\nimport \"./SwabFileItem.css\";\n\nexport default function SwabFileItem(props) {\n const {\n fileData, toggleDeleteConfirmation, returnFileSize, linkPatternFields,\n } = props;\n\n return (\n
  • \n
    \n
    \n \n
    \n

    {fileData.path}

    \n
    \n {returnFileSize(fileData.size)}\n
    \n
    \n
    \n\n
    \n {fileData.errorMessages && (\n
    \n
    \n {fileData.errorMessages.title}\n
    \n
    {fileData.errorMessages.body}
    \n
    \n )}\n\n {fileData.apiStatus && fileData.apiStatus === \"success\" && (\n
    \n
    \n Success\n
    \n
    \n )}\n {(fileData.apiStatus === undefined || fileData.apiStatus === \"failed\") && (\n
    toggleDeleteConfirmation(\"file-modal\", true, fileData)}>\n \n
    \n )}\n
    \n
    \n\n {fileData?.errorMessages && (\n \n \n \n \n \n {linkPatternFields.map(({ title_field }, idx) => )}\n \n \n \n \n {fileData.errorMessages.failedSwabs?.map((swab, idx) => (\n \n {linkPatternFields.map(({ json_field }, idx_td) => (\n \n {swab[json_field]}\n \n ))}\n \n {swab.message}\n \n \n ))}\n {fileData.errorMessages.successSwabs?.map(({ swab }, idx) => (\n \n {linkPatternFields.map(({ json_field }, idx_td) => (\n \n {swab[json_field]}\n \n ))}\n \n \n ))}\n \n
    {title_field}Status
    \n {swab.message}\n
    \n
    \n \n )}\n
  • \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgGarbageBin = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 4V1C5 0.734784 5.10536 0.48043 5.29289 0.292893C5.48043 0.105357 5.73478 0 6 0H14C14.2652 0 14.5196 0.105357 14.7071 0.292893C14.8946 0.48043 15 0.734784 15 1V4H19.5C19.7761 4 20 4.22386 20 4.5V5.5C20 5.77614 19.7761 6 19.5 6H18V19C18 19.2652 17.8946 19.5196 17.7071 19.7071C17.5196 19.8946 17.2652 20 17 20H3C2.73478 20 2.48043 19.8946 2.29289 19.7071C2.10536 19.5196 2 19.2652 2 19V6H0.5C0.223858 6 0 5.77614 0 5.5V4.5C0 4.22386 0.223858 4 0.5 4H5ZM7 2V4H13V2H7Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgGarbageBin, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/garbageBin.0548a89c.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport \"./UploadSwabFiles.css\";\nimport \"./SwabFileExample.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\n\nexport default function SwabFileExample(props) {\n const {\n linkPatternFields,\n } = props;\n\n return (\n
    \n
    \n Example\n
    \n \n \n \n \n \n {linkPatternFields.map(({ title_field }, idx) => )}\n \n \n \n {Array(2).fill().map((item, index) => (\n \n {linkPatternFields.map(({ json_field }) => \n ))}\n \n {linkPatternFields.map(({ title_field }) => \n \n
    {title_field}
    )}\n
    )}\n
    \n
    \n
    \n \n );\n}\n","import React, {\n useEffect, useCallback, useState,\n} from \"react\";\nimport { useDropzone } from \"react-dropzone\";\nimport * as XLSX from \"xlsx\";\nimport { toast } from \"react-toastify\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport DragDrop from \"./DragDrop\";\nimport \"./UploadSwabFiles.css\";\nimport LoadingConfirmBtn from \"./LoadingConfirmBtn\";\nimport { addSwab } from \"../../../../../actions/envAnalytics\";\nimport SwabFileItem from \"./SwabFileItem\";\nimport SwabFileExample from \"./SwabFileExample\";\n\nexport default function UploadSwabFiles(props) {\n const {\n handleClickCancel,\n handleDeleteIconClick,\n currentFile,\n proceedToUploadMap,\n returnFileSize,\n ifOnlyUploadSwabFile,\n toggleShowCreateEnvModal,\n updatePinsList,\n emptyFilesOrMap,\n openFromEmptyPage,\n openCreateEnvModalFromTab,\n clearFilterCalendarAndSelected,\n linkPatternFields,\n } = props;\n\n const [selectedFilesMap, setSelectedFilesMap] = useState(new Map()); // all the selected files, including the files uploaded to backend successfully, and unsuccessfully, contains file id and its info\n const [fileNameToFreq, setFileNameToFreq] = useState({});// stores file name and its frequency of selected files, including the files uploaded to backend successfully, and unsuccessfully, used to judge if a file is duplicate\n const [filesData, setFilesData] = useState({}); // stores all the parsed data from uploaded files, if it is a valid excel file. {fileID: {id, name, data}}\n const [loading, setLoading] = useState(false);\n const FILE_SIZE_MAX_LIMIT = 50 * 1048576; // convert 50MB to bytes\n const [nextfileId, setNextFileId] = useState(0); // to give each selected file a unique ID\n const [dragging, setDragging] = useState(false); // Used to change style when dragging files\n const [showSubmit, setShowSubmit] = useState(!openCreateEnvModalFromTab); // used to know either show \"submit\" or \"next\" button\n const [ifAnySwabUploaded, setIfAnySwabUploaded] = useState(false); // If any swab has been uploaded to backend successfully, we allow user to click \"Next\" button.\n\n /**\n * Return error text if the selected files do not meet requirement. Return null if meet requirements.\n * @param {File} file A selected file\n * @returns {(Object | Null)} Return error text object if there is error, otherwise return null.\n */\n const checkFrontEndFileError = (file, fileNameToFreqObj) => {\n let errorMessages = null;\n if (file.size > FILE_SIZE_MAX_LIMIT) {\n errorMessages = { title: \"File size is too big\", body: \"Max 50 MB\", type: \"size\" };\n } else if (file.type !== \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\" && file.type !== \"application/vnd.ms-excel\") {\n errorMessages = { title: \"File format is not supported\", body: \"*.xlsx and *.xls only\", type: \"format\" };\n } else if (fileNameToFreqObj[file.path] !== undefined && fileNameToFreqObj[file.path] > 1) {\n errorMessages = { title: \"Upload error\", body: \"This file is duplicate\" };\n }\n\n return errorMessages;\n };\n\n /**\n * Called when files are selected or dropped. Parse the excel files, store metadata and content data in states.\n */\n const onDrop = useCallback((acceptedFiles, fileRejections) => {\n setDragging(false);\n setShowSubmit(true);\n\n const selected = []; // store all selected files\n selected.push(...acceptedFiles); // acceptedFiles are the files accepted by the drop-zone library based on parameters we give: accept(format) and maxSize.\n fileRejections.forEach(({ file }) => { // fileRejections are the files rejected. fileRejections: [{errors, file}]\n selected.push(file);\n });\n\n const fileNameToFreqObj = { ...fileNameToFreq };\n selected.forEach((file) => {\n if (fileNameToFreqObj[file.path] !== undefined) {\n fileNameToFreqObj[file.path]++;\n } else {\n fileNameToFreqObj[file.path] = 1;\n }\n });\n setFileNameToFreq(fileNameToFreqObj);\n\n // Update error messages of previously added files\n selectedFilesMap.forEach((fileData, fileId) => {\n // Case 1: if a file was uploaded to backend, don't need to check error again.\n // Case 2: if a file has a valid errorMesages, and was failed to upload to backend, i.e. with \"backend\" type,\n // it already passed size, and format check, we will only show its previous backend error, and don't check front end error again.\n // Otherwise, should check error.\n if ((fileData.errorMessages === null && fileData.apiStatus !== \"success\")\n || (fileData.errorMessages !== null && fileData.errorMessages.type !== \"backend\")) {\n const errorMessages = checkFrontEndFileError(fileData, fileNameToFreqObj);\n selectedFilesMap.get(fileId).errorMessages = errorMessages;\n }\n });\n\n let id = nextfileId;\n const fileIdToData = { ...filesData };\n for (let i = 0; i < selected.length; i++) {\n const file = selected[i];\n const errorMessages = checkFrontEndFileError(file, fileNameToFreqObj);\n\n const fileMetaData = {\n id, name: file.name, path: file.path, type: file.type, size: file.size, errorMessages,\n };\n\n selectedFilesMap.set(id, fileMetaData);\n id++;\n\n // Only need to record the content of the files that have valid size and format in state\n if (errorMessages === null || (errorMessages.type !== \"size\" && errorMessages.type !== \"format\")) {\n const reader = new FileReader();\n reader.onload = (event) => {\n const result = event.target.result;\n try {\n const workbook = XLSX.read(result, { type: \"array\" });\n const sheetName = workbook.SheetNames[0];\n const worksheet = workbook.Sheets[sheetName];\n const data = XLSX.utils.sheet_to_json(worksheet, { defval: \"\" });\n fileIdToData[fileMetaData.id] = { id: fileMetaData.id, name: file.path, data };\n } catch (err) {\n toast.error(\n \"Fail to upload. Please make sure the file is a spreadsheet\",\n );\n }\n };\n\n reader.readAsArrayBuffer(file);\n }\n }\n setNextFileId(id);\n setSelectedFilesMap(new Map(selectedFilesMap));\n setFilesData(fileIdToData);\n emptyFilesOrMap(selected.length === 0);\n }, [nextfileId, selectedFilesMap, fileNameToFreq, filesData]);// eslint-disable-line\n\n /** Called when dragged file enters the DragDrop area, to change UI style of the area */\n const onDragEnter = useCallback(() => {\n setDragging(true);\n }, []);\n\n /** Called when dragged file leaves the DragDrop area, to change UI style of the area */\n const onDragLeave = useCallback(() => {\n setDragging(false);\n }, []);\n\n /** Use the drop zone library, passing acceptable file formats, and max size */\n const {\n getRootProps, getInputProps,\n } = useDropzone({\n onDrop,\n onDragEnter,\n onDragLeave,\n accept: {\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\": [\".xlsx\"],\n \"application/vnd.ms-excel\": [\".xls\"],\n },\n maxSize: FILE_SIZE_MAX_LIMIT,\n });\n\n /**\n * When the delete icon is clicked, toggle the delete confirmation modal\n * @param {*} modalType the tyep of confirmation modal, either \"main-modal\" or \"file-modal\"\n * @param {*} showConfirmation boolean value to set the confirmation to be displayed\n * @param {*} file the current selected file\n */\n const toggleDeleteConfirmation = (modalType, showConfirmation, file) => {\n handleDeleteIconClick(modalType, showConfirmation, file);\n };\n\n /** Called when click to submit files to call backend API to save the newly added valid files */\n const handleClickSubmit = async () => {\n setLoading(true);\n // Only upload the files that were not uploaded to backend in previous rounds.\n const filesDataToUpload = Object.values(filesData).filter((fileObj) => {\n const fileId = fileObj.id;\n const status = selectedFilesMap.get(fileId).status;\n return status === undefined;\n });\n\n let ifAnySwabUploadedUpdate = false;\n\n Promise.all(\n filesDataToUpload.map(async (fileObj) => {\n const fileId = fileObj.id;\n const fileName = fileObj.name;\n const fileData = fileObj.data;\n /** Convert keys that are title fields into their corresponding json field */\n const pointsList = fileData.map((swab) => {\n const formattedSwab = { ...swab };\n linkPatternFields.forEach(({ json_field, title_field }) => {\n const val = formattedSwab[title_field];\n if (val !== undefined) {\n delete formattedSwab[title_field];\n formattedSwab[json_field] = val;\n }\n });\n return formattedSwab;\n });\n const resp = await addSwab({ pointsList });\n if (resp.message === \"Success\") {\n const successSwabs = resp.successSwabs;\n const failedSwabs = resp.failedSwabs;\n\n if (successSwabs.length === pointsList.length) {\n // if the whole file is uploaded successfully, we will remove delete feature for this file.\n selectedFilesMap.get(fileId).apiStatus = \"success\";\n ifAnySwabUploadedUpdate = true;\n } else if (failedSwabs.length === pointsList.length) {\n // if whole file failed to upload, we will show swab errors later\n selectedFilesMap.get(fileId).apiStatus = \"failed\";\n selectedFilesMap.get(fileId).errorMessages = {\n title: \"Upload error\", body: \"All swabs failed to upload\", failedSwabs, numSwabs: pointsList.length, type: \"backend\",\n };\n } else {\n // if part of the file is failed to upload, we will show swab warnings later, remove delete feature for this file.\n // Do not show duplicate error for the edited file if users edit the partially failed file, and reupload the edited version.\n selectedFilesMap.get(fileId).apiStatus = \"partial-success\";\n ifAnySwabUploadedUpdate = true;\n selectedFilesMap.get(fileId).errorMessages = {\n title: \"Upload error\", body: \"Some swabs failed to upload\", successSwabs, failedSwabs, numSwabs: pointsList.length, type: \"backend\",\n };\n const frequency = fileNameToFreq[fileName];\n if (frequency === 1) {\n delete fileNameToFreq[fileName];\n } else {\n fileNameToFreq[fileName]--;\n }\n }\n\n // already uploaded to backend, delete it from filesJson,\n // so the file won't be uploaded to backend again in next round if user adds more files to select.\n delete filesData[fileId];\n } else {\n selectedFilesMap.get(fileId).errorMessages = {\n title: \"Upload error\", body: \"Failed to upload the file\", type: \"backend\", apiStatus: \"failed\",\n };\n }\n setFilesData({ ...filesData });\n if (!ifAnySwabUploaded && ifAnySwabUploadedUpdate) setIfAnySwabUploaded(ifAnySwabUploadedUpdate);\n return Promise.resolve(\"envpoints/ called\");\n }),\n ).then(() => {\n setSelectedFilesMap(new Map(selectedFilesMap)); // update with backend error messages\n setLoading(false);\n updatePinsList();\n clearFilterCalendarAndSelected(); // will clear filter, calendar dates, selected swab if there were any\n if (ifAnySwabUploaded || ifAnySwabUploadedUpdate) {\n setShowSubmit(false);\n }\n });\n };\n\n /** Called when delete a selected file */\n const handleClickDelete = (fileToDelete) => {\n // Update file name and its frequency\n if (fileNameToFreq[fileToDelete.path] === 1) {\n delete fileNameToFreq[fileToDelete.path];\n } else {\n fileNameToFreq[fileToDelete.path]--;\n }\n setFileNameToFreq({ ...fileNameToFreq });\n\n // Update shown selected files\n selectedFilesMap.delete(fileToDelete.id);\n\n let showSubmitButton = false;\n selectedFilesMap.forEach((fileData, fileId) => {\n // If there is new file selected, should show submit button\n if (fileData.apiStatus === undefined) {\n showSubmitButton = true;\n }\n // Update front end error messages of other added files:\n // Case 1: if a file was uploaded to backend, don't need to check error again.\n // Case 2: if a file has a valid errorMesages, and was failed to upload to backend, i.e. with \"backend\" type,\n // it already passed size, and format check, we will only show its previous backend error, and don't check front end error again.\n // Otherwise, should check error.\n if ((fileData.errorMessages === null && fileData.apiStatus !== \"success\")\n || (fileData.errorMessages !== null && fileData.errorMessages.type !== \"backend\")) {\n const errorMessages = checkFrontEndFileError(fileData, fileNameToFreq);\n selectedFilesMap.get(fileId).errorMessages = errorMessages;\n }\n });\n setSelectedFilesMap(new Map(selectedFilesMap));\n\n if (selectedFilesMap.size === 0 && (openFromEmptyPage || ifOnlyUploadSwabFile)) {\n showSubmitButton = true; // should not show Next, or Done, becasue uploading swab files is a must.\n }\n setShowSubmit(showSubmitButton);\n\n // Remove the read file content data from state record\n if (fileToDelete.errorMessages === null\n || (fileToDelete.errorMessages.type !== \"size\" && fileToDelete.errorMessages.type !== \"format\")) {\n delete filesData[fileToDelete.id];\n setFilesData({ ...filesData });\n }\n\n // When no file is in the shown files list, users can cancel the modal without confirmation popup.\n emptyFilesOrMap(selectedFilesMap.size === 0);\n };\n\n /**\n * Keep tracks of the delete file action from the CreateEnvModal component.\n * When users confirmation the delete action from the CreateEnvModal component,\n * the currentFile variable will be changed, then it will call then handleClickDelete() to delete the file\n */\n useEffect(() => {\n if (currentFile) {\n handleClickDelete(currentFile);\n } // eslint-disable-next-line\n }, [currentFile]);\n\n /** Disable the next button if meet these conditions\n * @returns {(boolean)}\n */\n const ifDisableSubmit = () => {\n // if no file is selected yet, disable submit\n if (selectedFilesMap.size === 0) return true;\n\n let ifDisabledNext = false;\n selectedFilesMap.forEach((fileData) => {\n // if any file has frontend error, disable submit button\n if (fileData.errorMessages !== null && fileData.errorMessages.type !== \"backend\") {\n ifDisabledNext = true;\n }\n // if any being selected file was fully failed to upload to backend\n if (fileData.apiStatus && fileData.apiStatus === \"failed\") {\n ifDisabledNext = true;\n }\n });\n\n return ifDisabledNext;\n };\n\n /**\n * Handle the Next button onclick.\n * 1. If it is from Upload Swab File, then back to the Analytics view.\n * 2. If it is from the + icon or from the landing empty page, then proceed to the step of upload map.\n */\n const handleClickNext = () => {\n if (ifOnlyUploadSwabFile) {\n toggleShowCreateEnvModal();\n } else {\n proceedToUploadMap();\n }\n };\n\n /**\n * A function to handle the Skip button onclick: proceed to the upload map step.\n */\n const handleClickSkip = () => {\n proceedToUploadMap();\n };\n\n /** To get a list of selected files to display */\n const getFileItems = () => [...selectedFilesMap.values()].map((fileData) => (\n \n ));\n\n return (\n <>\n
    \n
    \n
    \n \n
    \n \n
    \n
    \n\n
    \n {openCreateEnvModalFromTab && showSubmit\n && }\n
    \n \n {showSubmit && (loading\n ? (\n \n )\n : (\n \n Submit\n \n ))}\n {!showSubmit && (\n \n )}\n
    \n
    \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEdit = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 12,\n viewBox: \"0 0 12 12\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.6 2.57206L9.428 5.40072L2.828 12.0001H0V9.17139L6.6 2.57206ZM7.54267 1.62939L8.95667 0.214722C9.08169 0.0897416 9.25122 0.0195312 9.428 0.0195312C9.60478 0.0195312 9.77432 0.0897416 9.89933 0.214722L11.7853 2.10072C11.9103 2.22574 11.9805 2.39528 11.9805 2.57206C11.9805 2.74883 11.9103 2.91837 11.7853 3.04339L10.3707 4.45739L7.54267 1.62939Z\",\n fill: \"#AFBDCA\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEdit, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/edit.699ffbe3.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgRedCircleWhiteExclamation = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 40,\n height: 40,\n viewBox: \"0 0 40 40\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20 40C8.954 40 0 31.046 0 20C0 8.954 8.954 0 20 0C31.046 0 40 8.954 40 20C40 31.046 31.046 40 20 40ZM18.5 26C18.2239 26 18 26.2239 18 26.5V29.5C18 29.7761 18.2239 30 18.5 30H21.5C21.7761 30 22 29.7761 22 29.5V26.5C22 26.2239 21.7761 26 21.5 26H18.5ZM18.5 10C18.2239 10 18 10.2239 18 10.5V21.5C18 21.7761 18.2239 22 18.5 22H21.5C21.7761 22 22 21.7761 22 21.5V10.5C22 10.2239 21.7761 10 21.5 10H18.5Z\",\n fill: \"#E63559\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgRedCircleWhiteExclamation, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/redCircleWhiteExclamation.aec79ab1.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAddIconCircleBlue = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 35,\n height: 34,\n viewBox: \"0 0 35 34\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M17.5007 33.6654C8.29565 33.6654 0.833984 26.2037 0.833984 16.9987C0.833984 7.7937 8.29565 0.332031 17.5007 0.332031C26.7057 0.332031 34.1673 7.7937 34.1673 16.9987C34.1673 26.2037 26.7057 33.6654 17.5007 33.6654ZM15.834 15.332H9.66732C9.39118 15.332 9.16732 15.5559 9.16732 15.832V18.1654C9.16732 18.4415 9.39118 18.6654 9.66732 18.6654H15.834V24.832C15.834 25.1082 16.0578 25.332 16.334 25.332H18.6673C18.9435 25.332 19.1673 25.1082 19.1673 24.832V18.6654H25.334C25.6101 18.6654 25.834 18.4415 25.834 18.1654V15.832C25.834 15.5559 25.6101 15.332 25.334 15.332H19.1673V9.16536C19.1673 8.88922 18.9435 8.66537 18.6673 8.66537H16.334C16.0578 8.66537 15.834 8.88922 15.834 9.16537V15.332Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAddIconCircleBlue, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/addIconCircleBlue.5e8b397e.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\nimport { ReactComponent as GarbageBinIcon } from \"../../../../../assets/images/environment/garbageBin.svg\";\nimport { ReactComponent as EditIcon } from \"../../../../../assets/images/sample-submission/edit.svg\";\nimport { ReactComponent as ErrorIcon } from \"../../../../../assets/images/environment/redCircleWhiteExclamation.svg\";\nimport \"./UploadMap.css\";\nimport \"./UploadMapPreview.css\";\n\nexport default function UploadMapPreview(props) {\n const {\n imgErrorMessage, src, imageTitle, imgSize, handleDeleteImage, handleChangeTitle,\n } = props;\n\n const [editingFileName, setEditingFileName] = useState(false);\n\n /**\n * Toggle the image title input\n */\n const handleEditFileName = () => {\n const curVal = editingFileName;\n setEditingFileName(!curVal);\n };\n\n /**\n * Disable the editing image title for all outside click events\n */\n const handleOutsideClick = () => {\n handleChangeTitle(null, true);\n setEditingFileName(false);\n };\n\n /**\n * When Enter is onclicked and user is editing the image title, disable the edit mode\n * @param {*} e\n */\n const hanldleEnterKeyPress = (e) => {\n if (e.key === \"Enter\") {\n handleOutsideClick();\n }\n };\n\n return (\n <>\n { imgErrorMessage.length === 0\n ? (\n \n )\n : (\n
    \n

    Error Uploading

    \n \n

    {imgErrorMessage[0]}

    \n

    {imgErrorMessage[1]}

    \n
    \n )}\n\n
    \n
    \n
    \n {editingFileName\n ? (\n hanldleEnterKeyPress(e)}\n onBlur={handleOutsideClick}\n value={imageTitle}\n onChange={handleChangeTitle}\n />\n )\n : (\n <>\n

    {imageTitle}

    \n \n \n )}\n
    \n { imgErrorMessage.length === 0\n ? ({imgSize})\n : (\n
    \n

    \n {imgErrorMessage[0]}\n

    \n

    \n {imgErrorMessage[1]}\n

    \n
    \n )}\n
    \n \n
    \n \n );\n}\n","import React, {\n useCallback, useState,\n} from \"react\";\n\nimport { useDropzone } from \"react-dropzone\";\nimport { toast } from \"react-toastify\";\n\nimport DragDrop from \"./DragDrop\";\nimport LoadingConfirmBtn from \"./LoadingConfirmBtn\";\nimport UploadMapPreview from \"./UploadMapPreview\";\n\nimport { getFilePath, uploadFileToS3WithPresigned } from \"../../../../../utils/helpers\";\n\nimport { addMapImage } from \"../../../../../actions/envAnalytics\";\n\nimport \"./UploadMap.css\";\n\nexport default function UploadMap(props) {\n const {\n handleClickCancel, toggleShowCreateEnvModal, handleUploadImage, returnFileSize,\n uploadMapStatusControl, emptyFilesOrMap,\n } = props;\n const [src, setSrc] = useState(null);\n const [imageFile, setImageFile] = useState(null);\n const [imageTitle, setImageTitle] = useState(\"\");\n const [imgSize, setImgSize] = useState(\"\");\n const [imgWidthHeight, setImgWidthHeight] = useState({ width: 0, height: 0 }); // Original size of the uploaded image\n const [imgErrorMessage, setImgErrorMessage] = useState([]);\n const [disableSubmitImg, setDisableSubmitImg] = useState(false);\n const [dragging, setDragging] = useState(false); // Used to change style when dragging files\n const [loading, setLoading] = useState(false);\n const FILE_SIZE_MAX_LIMIT = 50 * 1048576; // convert 50MB to bytes\n\n /**\n * Return error text if the selected files do not meet requirement.\n * @param {File} file A selected file\n * @returns {Array} Return error text array\n */\n const returnValidFileErr = (file) => {\n if (file.size > FILE_SIZE_MAX_LIMIT) {\n return [\"File size is too big\", \"Max 50 MB\"];\n }\n if (file.type !== \"image/png\" && file.type !== \"image/jpg\" && file.type !== \"image/jpeg\") {\n return [\"File format is not supported\", \"png, jpg, and jpeg only\"];\n }\n return [];\n };\n\n /** Called when dragged file enters the DragDrop area, to change UI style of the area */\n const onDragEnter = useCallback(() => {\n setDragging(true);\n }, []);\n\n /** Called when dragged file leaves the DragDrop area, to change UI style of the area */\n const onDragLeave = useCallback(() => {\n setDragging(false);\n }, []);\n\n /**\n * A callback function to handle upload image file.\n * 1. Accpect only one image at a time, otherwise, display an error toast message and exit the function\n * 2. On loading file, set the error message status and image meta data.\n */\n const onDrop = useCallback((acceptedFiles, fileRejections) => {\n setDragging(false);\n if (acceptedFiles.length + fileRejections.length > 1) {\n toast.error(\"Only one image is allowed\");\n return;\n }\n let file;\n if (acceptedFiles.length === 0) {\n file = fileRejections[0].file;\n } else {\n file = acceptedFiles[0];\n }\n const errorMsg = returnValidFileErr(file);\n const reader = new FileReader();\n reader.addEventListener(\"load\", () => {\n /* Get image dims */\n const image = new Image();\n image.src = reader.result;\n image.onload = () => {\n setImgWidthHeight({ width: image.width, height: image.height });\n };\n setSrc(reader.result);\n setImgErrorMessage(errorMsg);\n setImageFile(file);\n setImageTitle(file.name.replace(/\\.[^/.]+$/, \"\"));\n setImgSize(returnFileSize(file.size));\n if (errorMsg.length !== 0) { // if there is upload error, disable the done btn and set error status\n setDisableSubmitImg(true);\n uploadMapStatusControl(3);\n } else {\n setDisableSubmitImg(false);\n uploadMapStatusControl(1);\n }\n });\n reader.readAsDataURL(file);\n emptyFilesOrMap(false);\n }, []); // eslint-disable-line\n\n /**\n * Set the dropzone properties: file type, maximum file size, maximum file number.\n */\n const {\n getRootProps, getInputProps,\n } = useDropzone({\n onDrop,\n onDragEnter,\n onDragLeave,\n accept: {\n \"image/png\": [\".png\"],\n \"image/jpg\": [\".jpg\"],\n \"image/jpeg\": [\".jpeg\"],\n },\n maxSize: FILE_SIZE_MAX_LIMIT,\n multiple: false,\n });\n\n /**\n * make an api call to upload the aws image path to database\n * @param {*} path the aws image path\n * @returns response from the api\n */\n const apiAddMap = async (path) => {\n const { success, message } = await addMapImage({\n image: path, title: imageTitle.trim(), width: imgWidthHeight.width, height: imgWidthHeight.height,\n });\n return { success, message };\n };\n\n /**\n * Upload the image to the target s3 bucket\n * @param {*} file the current image uploaded from local\n * @returns the aws api response and the file path\n */\n const addAssetToAWS = async (file) => {\n if (file) {\n const fileInfo = {\n file, folderPath: \"Analytics/Maps/\", fileName: `${imageTitle}_${file.name}`, type: file.type,\n };\n const key = getFilePath(fileInfo);\n const fileBlob = await uploadFileToS3WithPresigned([fileInfo], \"private\");\n if (fileBlob && fileBlob[key]) {\n return { success: true, path: fileBlob[key].path };\n }\n } return { success: false };\n };\n\n /**\n * Handle the Done button onlick, and make api calss to uplaod the image to aws and store the path to database\n * Close the modal if success, otherwise, show the error message and remain the same page\n * @returns\n */\n const handleClickDone = async () => {\n setLoading(true);\n const resp = await addAssetToAWS(imageFile);\n if (resp.success) {\n const { success, message } = await apiAddMap(resp.path);\n setLoading(false);\n if (success) {\n handleUploadImage({\n title: imageTitle.trim(), image_height: imgWidthHeight.height, image_width: imgWidthHeight.width, path: resp.path,\n });\n toggleShowCreateEnvModal();\n return;\n }\n toast.error(message || \"Failed to add map title\");\n return;\n }\n setLoading(false);\n toast.error(\"Failed to upload image\");\n };\n\n /**\n * handle the image title input on change\n * @param {*} e\n */\n const handleChangeTitle = (e, trimTitle = false) => {\n if (trimTitle) {\n setImageTitle(imageTitle.trim());\n } else {\n setImageTitle(e.target.value);\n }\n };\n\n /**\n * reset all image related states, disable the done button, and reset the progress bar status\n */\n const handleDeleteImage = () => {\n setSrc(null);\n setImageFile(null);\n setImageTitle(null);\n uploadMapStatusControl(1);\n setDisableSubmitImg(false);\n emptyFilesOrMap(true);\n };\n\n return (\n <>\n
    \n
    \n {src\n ? (\n \n )\n : (\n \n )}\n
    \n
    \n\n
    \n \n {loading\n ? (\n \n )\n : (\n \n Done\n \n )}\n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport { Modal } from \"antd\";\nimport EnvConfirmModal from \"../EnvConfirmModal\";\nimport \"./CreateEnvModal.css\";\nimport StepCircle from \"./StepCircle\";\nimport UploadSwabFiles from \"./UploadSwabFiles\";\nimport UploadMap from \"./UploadMap\";\n\nexport default function CreateEnvModal(props) {\n const {\n toggleShowCreateEnvModal,\n addListOfPoints,\n handleUploadImage,\n ifOnlyUploadSwabFile,\n updatePinsList,\n openCreateEnvModalFromTab,\n openFromEmptyPage,\n clearFilterCalendarAndSelected,\n linkPatternFields,\n } = props;\n const [step, setStep] = useState(1);\n const [stepOneStatus, setStepOneStatus] = useState(1); // 0: waiting, 1: processing, 2: finsihed, 3: error\n const [stepTwoStatus, setStepTwoStatus] = useState(0); // 0: waiting, 1: processing, 2: finsihed, 3: error\n const [showCancelConfirmModal, setShowCancelConfirmModal] = useState(false);\n const [popupType, setPopupType] = useState(\"main-modal\"); // used to determine whether the cancel confirmation is clicked from the delete file button or the cancel modal btn\n const [currentFile, setCurrentFile] = useState(); // current selected swab file from the UploadSwabFiles component\n const [fileToDelete, setFileToDelete] = useState(); // selected swab file which need to be deleted\n const [emtpyFilesOrMapStatus, setEmptyFileOrMapStatus] = useState(true); // is true if no file is selected or have been saved, users can close the modal without confirmation, vice versa.\n\n /**\n * A function to handle the Cancel button on the main screen\n * 1. Set the popup type to \"main-modal\"\n * 2. If there is no files uploaded currently, then close the entire upload modal\n * else, show the cancel confirmation popup.\n */\n const handleClickCancel = () => {\n setPopupType(\"main-modal\");\n if (emtpyFilesOrMapStatus) {\n toggleShowCreateEnvModal();\n } else {\n setShowCancelConfirmModal(true);\n }\n };\n\n /**\n * Change the popup wording and set the current selected file\n * @param {*} type the confirmation popup type, either main-modal or file-modal\n * @param {*} status toggle the confirmation popup\n * @param {*} file the current selected file\n */\n const handleDeleteIconClick = (type, showConfirmation, file) => {\n setPopupType(type);\n setShowCancelConfirmModal(showConfirmation);\n setCurrentFile(file);\n };\n\n /**\n * When the delete file button is confirmed, then\n * 1. Set the fileToDelete variable so that the UploadSwabFiles component will call the handleDeleteFile function.\n * 2. Close the confirmation modal.\n */\n const handleDeleteFileClick = () => {\n setFileToDelete(currentFile);\n setShowCancelConfirmModal(false);\n };\n\n /**\n * Proceed to the step of upload map\n * 1. Update step one status to \"finished\"\n * 2. Update step two status to \"processing\"\n * 3. Set Step to 2 to display the upload map view\n * 4. Set back the confirmation popup type to \"main-modal\"\n */\n const proceedToUploadMap = () => {\n setStepOneStatus(2);\n setStepTwoStatus(1);\n setStep(2);\n setPopupType(\"main-modal\");\n };\n\n /**\n * A function to set the status of current upload list: either true (there is some files uploaded) or false (no file uploaded)\n * @param {*} hasData boolean value to detemine if there is any uploaded files or map on the current upload list.\n */\n const setFilesOrMapStatus = (hasData) => {\n setEmptyFileOrMapStatus(hasData);\n };\n\n /** Convert the size of a file from bytes to proper unit\n * @param {Number} number size of a file\n * @return {String} file size to show on modal\n */\n const returnFileSize = (number) => {\n if (number < 1024) {\n return `${number} bytes`;\n } if (number >= 1024 && number < 1048576) {\n const numberInKB = number / 1024;\n return `${Math.round(numberInKB * 10) / 10} KB`; // round to 1 decimal place.\n } if (number >= 1048576) {\n const numberInMB = number / 1048576;\n return `${Math.round(numberInMB * 10) / 10} MB`; // round to 1 decimal place.\n }\n return \"\";\n };\n\n return (\n <>\n \n {ifOnlyUploadSwabFile\n ? (\n <>\n {/* Only allow users to see \"Upload Swab Files\" page */}\n
    \n

    Upload Swab Files

    \n
    \n handleDeleteIconClick(type, status, file)}\n proceedToUploadMap={proceedToUploadMap}\n returnFileSize={returnFileSize}\n ifOnlyUploadSwabFile={ifOnlyUploadSwabFile}\n toggleShowCreateEnvModal={toggleShowCreateEnvModal}\n updatePinsList={updatePinsList}\n emptyFilesOrMap={(val) => setFilesOrMapStatus(val)}\n openCreateEnvModalFromTab={openCreateEnvModalFromTab}\n clearFilterCalendarAndSelected={clearFilterCalendarAndSelected}\n linkPatternFields={linkPatternFields}\n />\n \n )\n : (\n <>\n {/* Allow user to upload swab files, then upload a map */}\n
    \n

    Create an Environment

    \n
    \n \n
    \n \n
    \n
    \n {\n step === 1\n ? (\n handleDeleteIconClick(type, status, file)}\n proceedToUploadMap={proceedToUploadMap}\n setStep={setStep}\n returnFileSize={returnFileSize}\n ifOnlyUploadSwabFile={ifOnlyUploadSwabFile}\n updatePinsList={updatePinsList}\n emptyFilesOrMap={(val) => setFilesOrMapStatus(val)}\n linkPatternFields={linkPatternFields}\n openFromEmptyPage={openFromEmptyPage}\n openCreateEnvModalFromTab={openCreateEnvModalFromTab}\n clearFilterCalendarAndSelected={clearFilterCalendarAndSelected}\n />\n ) : (\n setStepTwoStatus(val)}\n emptyFilesOrMap={(val) => setFilesOrMapStatus(val)}\n />\n )\n }\n \n )}\n \n\n {showCancelConfirmModal && (\n setShowCancelConfirmModal(false), popupType === \"main-modal\" ? () => toggleShowCreateEnvModal() : handleDeleteFileClick]}\n />\n )}\n \n );\n}\n","import React from \"react\";\nimport { ReactComponent as AddIconCircleBlue } from \"../../../../assets/images/environment/addIconCircleBlue.svg\";\nimport \"./EmptyPage.css\";\n\nexport default function EmptyPage(props) {\n const { toggleShowCreateEnvModal } = props;\n\n const handleClick = () => {\n toggleShowCreateEnvModal();\n };\n\n return (\n <>\n
    \n
    \n add icon\n
    Upload Files to create an Environment
    \n Max. File Size 50 MB\n
    \n
    \n \n );\n}\n","import React, { Component } from \"react\";\nimport { toast } from \"react-toastify\";\nimport { every, some } from \"lodash\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport { AutoComplete, Input } from \"antd\";\nimport errorIcon from \"../../../../../assets/images/environment/infoIconRed.png\";\nimport { getAreaLists } from \"../../../../../actions/envAnalytics\";\nimport \"./CreateNewPin.css\";\n\nexport default class CreateNewPin extends Component {\n state = {\n inputValues: {},\n swabDesc: \"\",\n chosenQuadrant: -1,\n duplicate: false,\n area_lists: {},\n errors: {},\n };\n\n createNewSwabCardRef = React.createRef();\n\n componentDidMount() {\n this.createNewSwabCardRef.current.scrollIntoView({ block: \"nearest\" });\n this.apiGetAreaLists();\n }\n\n /**\n * Get options for dropdowns\n */\n apiGetAreaLists = async () => {\n const { toggleAddingSwab } = this.props;\n const { success, area_lists, message } = await getAreaLists();\n if (success) {\n this.setState({ area_lists });\n } else {\n toast.error(message);\n toggleAddingSwab(); // close create new swab card\n }\n }\n\n /**\n * Set input value for given field\n * @param {String} json_field\n * @param {String} val\n */\n setFieldValue = (json_field, val) => {\n const { inputValues } = this.state;\n this.setState({ inputValues: { ...inputValues, [json_field]: val } });\n }\n\n /**\n * Set error status for given field\n * @param {String} json_field\n * @param {String} error\n */\n setFieldError = (json_field, error) => {\n const { errors } = this.state;\n this.setState({ errors: { ...errors, [json_field]: error } });\n }\n\n handleCancelClick = () => {\n const { toggleAddingSwab } = this.props;\n toggleAddingSwab();\n }\n\n handleConfirmClick = async (e) => {\n e.preventDefault();\n e.stopPropagation();\n const {\n index0, linkPatternFields, delimiter, sampleIDFields,\n } = this.props;\n const { swabDesc, inputValues } = this.state;\n const inputErrors = {};\n const inputs = { swabDesc: swabDesc?.trim() ?? \"\" };\n\n /** Check for errors (missing swab_number or delimiter in value) */\n linkPatternFields.forEach(({ json_field }) => {\n const value = inputValues[json_field]?.trim() ?? \"\";\n if (sampleIDFields.includes(json_field)) {\n const regex = new RegExp(delimiter, \"g\"); // global flag to find all matches and not just the first\n const invalidMatches = value.match(regex);\n if (invalidMatches) {\n inputErrors[json_field] = \"invalid\";\n } else {\n inputErrors[json_field] = \"\";\n }\n }\n if (json_field === \"swab_number\" && !value) {\n inputErrors.swab_number = \"required\";\n }\n inputs[json_field] = value;\n });\n this.setState({ errors: inputErrors });\n const { chosenQuadrant } = this.state;\n if (inputs[index0] && chosenQuadrant !== -1 && every(inputErrors, (val) => !val)) { // eslint-disable-line\n const {\n toggleAddingSwab, togglePinningNewSwab, handleAddNewSwab, setSelectedLocationID, handleSelectQuadrant,\n } = this.props;\n const { success, duplicate, newPin } = await handleAddNewSwab(inputs.swab_number, inputs.zone, inputs.section, inputs.swabDesc);\n if (success) {\n this.setState({ duplicate });\n setSelectedLocationID(newPin.location_id); // new pin's id, simulate clicking on pin icon to pin swab\n handleSelectQuadrant(chosenQuadrant); // simulate selecting quadrant when pinning swab\n toggleAddingSwab(); // close create new swab card\n togglePinningNewSwab();\n } else if (duplicate) {\n this.setState({ duplicate });\n }\n } else if (!inputs[index0] || chosenQuadrant === -1) {\n toast.error(`${linkPatternFields.filter(({ json_field }) => json_field === index0)[0].title_field} and/or quadrant is required.`);\n }\n }\n\n handleAutocompleteOptionClick = (json, value) => {\n const { errors } = this.state;\n this.setFieldValue(json, value);\n if ((errors[json] === \"required\" && value) || errors[json] === \"invalid\") {\n this.setFieldError(json, \"\");\n }\n }\n\n handleAutocompleteInputChange = (json, value) => {\n const { errors } = this.state;\n this.setFieldValue(json, value);\n if ((errors[json] === \"required\" && value) || errors[json] === \"invalid\") {\n this.setFieldError(json, \"\");\n }\n }\n\n chooseQuadrant = (quad) => {\n const { chosenQuadrant } = this.state;\n const { handleHoverQuadrant } = this.props;\n if (quad === chosenQuadrant) {\n this.setState({ chosenQuadrant: -1 });\n handleHoverQuadrant(-1);\n } else {\n this.setState({ chosenQuadrant: quad });\n handleHoverQuadrant(quad);\n }\n }\n\n render() {\n const {\n chosenQuadrant,\n duplicate,\n area_lists,\n errors,\n } = this.state;\n const {\n linkPatternFields,\n handleHoverQuadrant,\n } = this.props;\n\n const quadrantClassName = [\"TopLeft\", \"TopRight\", \"BottomRight\", \"BottomLeft\"];\n\n return (\n \n
    \n
    \n Swab Details\n
    \n
    \n
    \n {duplicate && (\n
    \n \n
    Swab already exists.
    \n
    \n )}\n {some(errors, (val) => val === \"invalid\") && (\n
    \n \n
    Invalid character.
    \n
    \n )}\n {linkPatternFields.map((field) => {\n const json = field.json_field;\n const title = field.title_field;\n return (\n
    \n
    \n option.value?.toLowerCase().indexOf(inputValue?.toLowerCase()) !== -1}\n options={area_lists[json]?.map((val) => ({ value: val, title: val }))}\n onSelect={(value) => this.handleAutocompleteOptionClick(json, value)}\n onSearch={(value) => this.handleAutocompleteInputChange(json, value)}\n notFoundContent={area_lists[json] > 0 ? \"Not Found\" : undefined}\n popupClassName=\"CreateNewPin__Autocomplete__Dropdown\"\n >\n \n \n
    \n
    \n );\n })}\n
    \n
    \n Choose a quadrant\n
    \n
    \n {quadrantClassName.map((className, indexOfQuadrant) => (\n this.chooseQuadrant(indexOfQuadrant)}\n onMouseEnter={(chosenQuadrant === -1) ? () => handleHoverQuadrant(indexOfQuadrant) : () => {}}\n onMouseLeave={(chosenQuadrant === -1) ? () => handleHoverQuadrant(-1) : () => {}}\n />\n ))}\n
    \n
    \n this.setState({ swabDesc: e.target.value })}\n />\n
    \n \n Cancel\n \n \n Confirm\n \n
    \n
    \n \n );\n }\n}\n","/* eslint-disable */\nexport const checkMapClicked = (clickX, clickY) => {\n const mapWrapper = document.getElementsByClassName(\"react-transform-wrapper transform-component-module_wrapper__1_Fgj \")[0];\n if (mapWrapper) {\n const bounds = mapWrapper.getBoundingClientRect();\n // console.log(\"map bounds\", bounds);\n // console.log(\"click\", clickX, clickY);\n const {\n x, y, width: mapWidth, height: mapHeight,\n } = bounds;\n const mapX = x;\n const mapY = y;\n const result = (clickX < (mapX + mapWidth)) && (clickX > mapX) && (clickY < (mapY + mapHeight)) && (clickY > mapY);\n // console.log(result);\n return result;\n }\n return false;\n};\n","// Helper functions related to pin info\nexport const checkPinIsPinned = (pin) => ((pin.title !== undefined) && (pin.title !== \"\")) && (pin.x_coordinate !== null && pin.y_coordinate !== null);\nexport const calculateQuadrantGivenPin = (pin) => {\n let quadrant = -1;\n if (pin.x_coordinate <= 0.5) {\n if (pin.y_coordinate <= 0.5) {\n quadrant = 0;\n } else {\n quadrant = 3;\n }\n } else if (pin.y_coordinate <= 0.5) {\n quadrant = 1;\n } else {\n quadrant = 2;\n }\n return quadrant;\n};\nexport const calculateQuadrantGivenXYCoord = ({ x_coordinate, y_coordinate }) => {\n let quadrant = -1;\n if (x_coordinate <= 0.5) {\n if (y_coordinate <= 0.5) {\n quadrant = 0;\n } else {\n quadrant = 3;\n }\n } else if (y_coordinate <= 0.5) {\n quadrant = 1;\n } else {\n quadrant = 2;\n }\n return quadrant;\n};\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { toast } from \"react-toastify\";\nimport { partition } from \"lodash\";\nimport Highlighter from \"react-highlight-words\";\nimport moment from \"moment\";\nimport ClickAwayListener from \"@material-ui/core/ClickAwayListener\";\nimport { checkMapClicked } from \"./helper\";\n\nimport whiteMap from \"../../../../../assets/images/environment/whiteMap.svg\";\nimport pinIcon from \"../../../../../assets/images/environment/pinIconDefault.svg\";\nimport pinIconHover from \"../../../../../assets/images/environment/pinIconHover.svg\";\nimport deleteIcon from \"../../../../../assets/images/environment/WhiteCloseBlueBackground.svg\";\nimport { checkPinIsPinned } from \"../pinHelper\";\nimport \"./PinDetailBlock.css\";\n\nconst PinDetailBlock = ({\n pin,\n locationID,\n quadrantSelected,\n indexOfQuadrantHoverOver,\n isAddingNewSwab,\n isSearching,\n isLocatingSwab,\n updatePinInfo,\n handleCheckbox,\n isDragging,\n selectedLocationID,\n setSelectedLocationID,\n endPinningSwab,\n toggleTooltip,\n setDisplayTooltipLocationID,\n clickQuadrant,\n isClickingQuadrant,\n transformWrapperRef,\n displayFields,\n isPinningNewSwab,\n isPinningSwab,\n imageSrc,\n loading,\n searchResultSelected,\n toggleReportView,\n showReportView,\n index0,\n forceReportViewRerender,\n ...props\n}) => {\n const [hoveringPinIcon, setHoveringPinIcon] = useState(false);\n // const [showQuadrantsSelection, setShowQuadrantsSelection] = useState(false); // It is true when clicking the pin icon to show quadrants choices.\n // const [isPinningSwab, setIsPinningSwab] = useState(false); // When we are pining swab on a quadrant, other deatil blocks should be grayed out.\n const pinDetailBlockRef = useRef(null);\n const quadrantChoicesRef = useRef([]);\n const unpinnedIconRef = useRef(null);\n const quadrantClassName = [\"TopLeft\", \"TopRight\", \"BottomRight\", \"BottomLeft\"];\n\n useEffect(() => {\n if (selectedLocationID === locationID && pinDetailBlockRef.current) { // When we switch to the selecting quadrants UI, selectedLocationID = locationID and pinDetailBlockRef node is gone\n pinDetailBlockRef.current.scrollIntoView({ behavior: \"smooth\", block: \"nearest\", inline: \"start\" });\n }\n\n if (selectedLocationID === \"\" && isClickingQuadrant) { // After a swab is pinned on the map, the grayed out effect will be removed.\n clickQuadrant();\n setHoveringPinIcon(false);\n }\n }, [selectedLocationID]); //eslint-disable-line\n\n const selectQuadrant = (quadrant, resetTheZoom = true) => {\n props.handleHoverQuadrant(-1);\n props.handleSelectQuadrant(quadrant, resetTheZoom);\n // setIsPinningSwab(true);\n\n // props.handleSelectQuadrant(quadrant, keepCurrentTransform);\n };\n\n const handleHoverQuadrant = (indexHoverOver) => {\n if (quadrantSelected === -1) {\n props.handleHoverQuadrant(indexHoverOver);\n // Gray out all quadrant choices except the one being hovered\n for (let quadrantIdx = 0; quadrantIdx < 4; quadrantIdx++) {\n if (quadrantIdx !== indexHoverOver) {\n quadrantChoicesRef.current[quadrantIdx].classList.add(\"quadrant-grayed-out-filter\");\n }\n }\n }\n };\n\n const handleMouseLeaveQuadrant = (indexHoverOver) => {\n if (quadrantSelected === -1) {\n props.handleHoverQuadrant(-1);\n }\n for (let quadrantIdx = 0; quadrantIdx < 4; quadrantIdx++) {\n if (quadrantIdx !== indexHoverOver) {\n quadrantChoicesRef.current[quadrantIdx].classList.remove(\"quadrant-grayed-out-filter\");\n }\n }\n };\n\n const handlePinIconClickAway = (e, deleteIconClicked = false) => {\n if (deleteIconClicked) {\n setSelectedLocationID(\"\");\n setHoveringPinIcon(false);\n selectQuadrant(-1);\n }\n\n // if ((isClickingQuadrant && !deleteIconClicked) || isPinningNewSwab) { // disable click away function while selecting a quadrant to pin\n // return;\n // }\n\n // setDisplayTooltipLocationID(\"\");\n if (quadrantSelected > -1 && !isPinningNewSwab && !isPinningSwab) {\n if (checkPinIsPinned(pin) || checkMapClicked(e.clientX, e.clientY)) {\n // keep quadrant zoomed in unless cancelling pinning a swab\n // if (!isPinningSwab) {\n // setSelectedLocationID(\"\");\n // }\n selectQuadrant(-1, false);\n } else {\n if (deleteIconClicked) {\n setSelectedLocationID(\"\");\n setHoveringPinIcon(false);\n }\n selectQuadrant(-1);\n }\n }\n };\n\n const handlePinIconClick = (e, quadrant) => {\n // console.log(transformWrapperRef.current);\n // console.log(pin, isPinningNewSwab);\n e.stopPropagation();\n if (isSearching || isPinningNewSwab) {\n return;\n }\n if (!imageSrc) {\n toast.error(\"Must upload map image first\");\n return;\n }\n if (!loading && imageSrc === \"Not Found\") {\n toast.error(\"Map image must be loaded\");\n return;\n }\n\n if (locationID === selectedLocationID) { // if already selected\n setSelectedLocationID(\"\");\n setDisplayTooltipLocationID(\"\");\n selectQuadrant(-1);\n } else {\n // console.log(\"piniconclick\");\n // setShowQuadrantsSelection(true);\n toggleTooltip();\n setDisplayTooltipLocationID(locationID);\n setSelectedLocationID(locationID);\n setHoveringPinIcon(true);\n if (checkPinIsPinned(pin)) {\n selectQuadrant(quadrant, false);\n } else selectQuadrant(-1);\n // endPinningSwab();\n }\n };\n\n /**\n * Handles toggling report view\n */\n const handlePinDetailBlockClick = () => {\n if (locationID !== selectedLocationID) {\n forceReportViewRerender();\n setSelectedLocationID(locationID);\n } else if (showReportView) {\n setSelectedLocationID(\"\");\n setDisplayTooltipLocationID(\"\");\n toggleReportView();\n }\n if (quadrantSelected > -1) {\n selectQuadrant(-1);\n }\n if (!showReportView) {\n toggleReportView();\n }\n };\n\n const getColorTagClassName = () => {\n const flag = pin.specs_flag.toString();\n if (flag === \"1\" || flag === \"5\") {\n return \"in-spec-color-tag\";\n }\n return (flag === \"2\" || flag === \"6\") ? \"out-of-spec-color-tag\" : \"transparent-color-tag\";\n };\n\n if (locationID === selectedLocationID && !checkPinIsPinned(pin) && !isPinningNewSwab && !showReportView) { // if currently pinning swab\n return (\n \n
    \n
    \n
    \n
    \n
    \n {\"Select a quadrant to pin Swab \"}\n {pin.swab_number}\n {\" to the map\"}\n
    \n {\n handlePinIconClickAway(e, true);\n if (isClickingQuadrant) {\n clickQuadrant();\n }\n }}\n />\n
    \n
    \n {quadrantClassName.map((className, indexOfQuadrant) => (\n {\n selectQuadrant(indexOfQuadrant);\n if (!isClickingQuadrant) {\n clickQuadrant();\n }\n }}\n onMouseEnter={() => handleHoverQuadrant(indexOfQuadrant)}\n onMouseLeave={handleMouseLeaveQuadrant}\n ref={(el) => {\n quadrantChoicesRef.current[indexOfQuadrant] = el;\n }}\n />\n ))}\n
    \n
    \n
    \n \n );\n }\n const [fixedField, infoFields] = partition(displayFields, (field) => field.json_field === index0);\n\n return (\n { setHoveringPinIcon(false); }}>\n
    \n
    \n \n
    \n
    \n \n {`${fixedField[0].title_field}: `}\n \n {/* \n {pin.swab_number}\n */}\n
    \n
    \n {infoFields && infoFields.map((field, idx) => (\n \n {`${field.title_field}: `}\n \n {/* {pin[field.json_field]} */}\n \n ))}\n
    \n {/*
    \n Area Description: \n {pin.description}\n
    */}\n
    \n
    \n {(pin.quadrant !== undefined && pin.quadrant !== null && pin.quadrant >= 0)\n ? (\n handlePinIconClick(e, pin.quadrant)}\n onMouseEnter={showReportView ? null : () => setHoveringPinIcon(true)}\n onMouseOut={showReportView ? null : () => setHoveringPinIcon(false)}\n onBlur={() => {}}\n >\n setHoveringPinIcon(true)}\n onMouseOut={showReportView ? null : () => setHoveringPinIcon(false)}\n onBlur={() => {}}\n />\n
    \n )\n : (\n handlePinIconClick(e, pin.quadrant)}\n onMouseEnter={showReportView ? null : (e) => {\n toggleTooltip(e.target.getBoundingClientRect());\n setHoveringPinIcon(true);\n }}\n onMouseOut={showReportView ? null : () => {\n toggleTooltip();\n setHoveringPinIcon(false);\n }}\n onBlur={showReportView ? null : () => toggleTooltip(false)}\n >\n {\n toggleTooltip(unpinnedIconRef.current.getBoundingClientRect());\n setHoveringPinIcon(true);\n }}\n onMouseOut={showReportView ? null : () => {\n toggleTooltip();\n setHoveringPinIcon(false);\n }}\n onBlur={showReportView ? null : () => toggleTooltip(false)}\n />\n
    \n )}\n
    \n {moment(pin.added_on).format(\"DD MMM YYYY\")}\n
    \n
    \n
    \n \n {(isAddingNewSwab || (locationID !== selectedLocationID && isClickingQuadrant)) && (\n
    \n )}\n
    \n
    \n );\n};\n\nconst shouldNotUpdate = (prevProps, nextProps) => {\n if ((prevProps.selectedLocationID !== prevProps.locationID && nextProps.selectedLocationID === nextProps.locationID) // if pin is selected\n || (prevProps.selectedLocationID === prevProps.locationID && nextProps.selectedLocationID !== nextProps.locationID) // if pin is deselected\n || (prevProps.isPinningNewSwab !== nextProps.isPinningNewSwab) // if pinning state has changed\n || (prevProps.isPinningSwab !== nextProps.isPinningSwab) // if pinning state has changed\n || (prevProps.isClickingQuadrant !== nextProps.isClickingQuadrant) // grey out/not grey out when pinning\n || (prevProps.isAddingNewSwab !== nextProps.isAddingNewSwab) // grey out/not grey out when toggling create new swab\n || (prevProps.imageSrc !== nextProps.imageSrc) // image has been uploaded\n || (prevProps.showReportView !== nextProps.showReportView) // if report view has changed\n || (prevProps.quadrantSelected !== nextProps.quadrantSelected) // if selected quadrant has changed\n || (prevProps.searchResultSelected !== nextProps.searchResultSelected) // update highlighting\n ) {\n return false;\n }\n return true;\n};\n\nexport default React.memo(PinDetailBlock, shouldNotUpdate);\n","import React, { Component } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { motion, AnimatePresence, LayoutGroup } from \"framer-motion/dist/framer-motion\";\nimport CreateNewPin from \"./CreateNewPin\";\nimport PinDetailBlock from \"./PinDetailBlock\";\n\nimport tooltip from \"../../../../../assets/images/environment/messageBlock.png\";\nimport \"./PinList.css\";\n\nexport default class PinList extends Component {\n state = {\n displayTooltip: false,\n tooltipStyle: { display: \"none\" },\n };\n\n toggleTooltip = (position) => {\n if (position) {\n this.setState({\n displayTooltip: true,\n tooltipStyle: {\n display: \"inline-block\",\n left: position.x + 30,\n top: position.y,\n },\n });\n } else {\n this.setState({\n displayTooltip: false,\n tooltipStyle: { display: \"none\" },\n });\n }\n };\n\n render() {\n const { displayTooltip, tooltipStyle } = this.state;\n\n const {\n pinMap,\n quadrantSelected,\n selectedLocationID,\n indexOfQuadrantHoverOver,\n handleAddNewSwab,\n toggleAddingSwab,\n handleHoverQuadrant,\n handleSelectQuadrant,\n endPinningSwab,\n isAddingNewSwab,\n isSearching,\n setSelectedLocationID,\n updatePinInfo,\n setDisplayTooltipLocationID,\n transformWrapperRef,\n displayFields,\n index0,\n delimiter,\n linkPatternFields,\n sampleIDFields,\n isPinningNewSwab,\n togglePinningNewSwab,\n isPinningSwab,\n imageSrc,\n loading,\n clickQuadrant,\n isClickingQuadrant,\n searchResultSelected,\n toggleReportView,\n showReportView,\n forceReportViewRerender,\n } = this.props;\n\n return (\n
    \n {displayTooltip && (\n
    \n \n \n Click here to pin swab on map\n \n
    \n )}\n \n \n \n {isAddingNewSwab && (\n \n )}\n \n {Array.from(pinMap.values()).map((pin) => (\n \n \n \n ))}\n \n \n
    \n );\n }\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCalendarIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_4656_142047)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M7 3H3C2.73478 3 2.48043 3.10536 2.29289 3.29289C2.10536 3.48043 2 3.73478 2 4V20C2 20.2652 2.10536 20.5196 2.29289 20.7071C2.48043 20.8946 2.73478 21 3 21H21C21.2652 21 21.5196 20.8946 21.7071 20.7071C21.8946 20.5196 22 20.2652 22 20V4C22 3.73478 21.8946 3.48043 21.7071 3.29289C21.5196 3.10536 21.2652 3 21 3H17V1H15V3H9V1H7V3ZM20 9V19H4V9H20ZM18 11H16V13H18V11ZM13 11H11V13H13V11Z\",\n fill: \"#758AB9\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 11,\n y: 11,\n width: 2,\n height: 2,\n fill: \"#758AB9\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 16,\n y: 11,\n width: 2,\n height: 2,\n fill: \"#758AB9\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_4656_142047\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCalendarIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/calendarIcon.e1aa473b.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCalendarDownArrow = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 10,\n height: 6,\n viewBox: \"0 0 10 6\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9 1L5 5L1 0.999999\",\n stroke: \"#AFBDCA\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCalendarDownArrow, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/CalendarDownArrow.8e239b76.svg\";\nexport { ForwardRef as ReactComponent };","import moment from \"moment\";\n\nexport const MONTHS = [\n { value: 0, label: \"January\" },\n { value: 1, label: \"February\" },\n { value: 2, label: \"March\" },\n { value: 3, label: \"April\" },\n { value: 4, label: \"May\" },\n { value: 5, label: \"June\" },\n { value: 6, label: \"July\" },\n { value: 7, label: \"August\" },\n { value: 8, label: \"September\" },\n { value: 9, label: \"October\" },\n { value: 10, label: \"November\" },\n { value: 11, label: \"December\" },\n];\n\n/**\n * Get full year from date\n * @param {Date} value date object (prints date in this format: Fri Sep 08 2023 11:44:06 GMT-0700 (Pacific Daylight Time))\n * @returns {Number} 4-digit year\n */\nexport const getYear = (value) => {\n const date = moment(value).format(\"DD/MM/YYYY\").split(\"/\");\n return parseInt(date[2], 10);\n};\n\n/**\n * Get 0-indexed month number from date\n * @param {Date} value date object (prints date in this format: Fri Sep 08 2023 11:44:06 GMT-0700 (Pacific Daylight Time))\n * @returns {Number} 0-indexed month number (i.e. 0 = January, 1 = February, etc.)\n */\nexport const getMonth = (value) => {\n const date = moment(value).format(\"DD/MM/YYYY\").split(\"/\");\n return parseInt(date[1], 10) - 1; // get zero-indexed month number\n};\n\n/**\n * Gets Date object or array of Date objects from dateSelected string\n * @param {String} dateSelected date in \"Sep 3, 2023\" format or range of dates in \"Sep 3, 2023 - Sep 29, 2023\" format\n * @param {String} rangeSelectionComplete if start and end date both are selected (important for single day selection)\n * @returns {Array} array with one or two Date obj represented by dateSelected string\n */\nexport const getSelectedDates = (dateSelected, rangeSelectionComplete = false) => {\n let date = [];\n if (dateSelected !== \"\") {\n // two dates exist\n if (dateSelected.includes(\"-\")) { // start and end date are different\n const dates = dateSelected.split(\"-\");\n\n const dateOne = new Date(dates[0].trim());\n const dateTwo = new Date(dates[1].trim());\n\n date.push(dateOne);\n date.push(dateTwo);\n } else if (rangeSelectionComplete) { // single day selection\n date = [new Date(dateSelected), new Date(dateSelected)]; // return array with start and end date as the same day to end the single day selection\n } else if (!rangeSelectionComplete) {\n date = [new Date(dateSelected)]; // this date is the start of the range (range selection has not been completed)\n }\n } else {\n date = undefined;\n }\n\n return date;\n};\n\n/**\n * Compute a date range string from today to x days ago\n * @param {*} dateFrom a Date() object\n * @param {*} dateTo a Date() object\n * @returns a string 'Sep 1, 2023 - Sep 7, 2023'\n */\nexport const getFormattedDaysAgoString = (dateFrom, dateTo) => {\n const options = { month: \"short\", day: \"numeric\", year: \"numeric\" };\n const formattedDateRange = `${dateFrom.toLocaleDateString(\"en-US\", options)} - ${dateTo.toLocaleDateString(\"en-US\", options)}`;\n\n return formattedDateRange;\n};\n","import React from \"react\";\nimport { range } from \"lodash\";\nimport \"./MonthYearSelect.css\";\nimport { Select } from \"antd\";\nimport { ReactComponent as CalendarDownArrow } from \"../../../assets/images/product/CalendarDownArrow.svg\";\nimport { MONTHS } from \"./utils\";\n\nexport default function MonthYearSelect({\n currentSelectedMonth,\n setCurrentSelectedMonth,\n currentSelectedYear,\n setCurrentSelectedYear,\n startYear,\n endYear,\n flatpickrRef,\n}) {\n /**\n * Update the flatpickr instance when month is selected.\n * @param {Number} value zero-indexed month number\n */\n const handleMonthSelect = (value) => {\n // const monthsArr = [\n // \"January\", \"February\", \"March\", \"April\", \"May\", \"June\",\n // \"July\", \"August\", \"September\", \"October\", \"November\", \"December\",\n // ];\n // console.log(\"handleMonthChange\", monthsArr[value]);\n const instance = flatpickrRef.current.flatpickr;\n setCurrentSelectedMonth(value);\n instance.changeMonth(value, false);\n };\n\n /**\n * Update the flatpickr instance when year is selected.\n * @param {Number} value year (YYYY format)\n */\n const handleYearSelect = (value) => {\n // console.log(\"handleYearChange\", value);\n const instance = flatpickrRef.current.flatpickr;\n setCurrentSelectedYear(value);\n instance.changeYear(value);\n };\n\n const years = range(endYear, startYear - 1, -1); // get list of years from endYear (most recent) to startYear (least recent) inclusive in desc order\n\n return (\n
    \n }\n />\n ({ value: year, label: year }))}\n onSelect={handleYearSelect}\n listItemHeight={32}\n listHeight={190}\n suffixIcon={}\n />\n
    \n );\n}\n","import moment from \"moment\";\n/* eslint-disable import/prefer-default-export */\n/**\n * @param {String} utcTime date in utc time zone\n * @return {String} date in local time zone\n */\nexport const convertUtcToLocal = (utcTime) => moment.utc(utcTime).local().format();\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCloseIconFilled = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_9_752)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12.3536 10.2323C12.1583 10.4276 11.8417 10.4276 11.6464 10.2323L9.52555 8.11068C9.3303 7.91536 9.01367 7.91533 8.81838 8.11062L8.11062 8.81838C7.91533 9.01367 7.91536 9.3303 8.11068 9.52555L10.2323 11.6464C10.4276 11.8417 10.4276 12.1583 10.2323 12.3536L8.11068 14.4744C7.91536 14.6697 7.91533 14.9863 8.11062 15.1816L8.81838 15.8894C9.01367 16.0847 9.3303 16.0846 9.52555 15.8893L11.6464 13.7677C11.8417 13.5724 12.1583 13.5724 12.3536 13.7677L14.4744 15.8893C14.6697 16.0846 14.9863 16.0847 15.1816 15.8894L15.8894 15.1816C16.0847 14.9863 16.0846 14.6697 15.8893 14.4744L13.7677 12.3536C13.5724 12.1583 13.5724 11.8417 13.7677 11.6464L15.8893 9.52555C16.0846 9.3303 16.0847 9.01367 15.8894 8.81838L15.1816 8.11062C14.9863 7.91533 14.6697 7.91536 14.4744 8.11068L12.3536 10.2323Z\",\n fill: \"#758AB9\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_9_752\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCloseIconFilled, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/CloseIconFilled.1a966659.svg\";\nexport { ForwardRef as ReactComponent };","/* Built on react-flatpickr v3.10.6 (uses flatpickr v4.6.2) */\nimport React, { useEffect, useRef, useState } from \"react\";\n\nimport moment from \"moment\";\nimport Flatpickr from \"react-flatpickr\";\n\nimport StyledButton from \"../UIComponents/StyledButton\";\nimport MonthYearSelect from \"./MonthYearSelect\";\n\nimport { convertUtcToLocal } from \"../utils/dateUtils\";\nimport { getSelectedDates } from \"./utils\";\n\nimport { ReactComponent as CloseIcon } from \"../../../assets/images/common/CloseIconFilled.svg\";\n\nimport \"flatpickr/dist/themes/material_green.css\";\nimport \"../../Product/Product.css\";\nimport \"./Calendar.css\";\n// Calculate the start and end years to be shown in the dropdown menu\n// Also used to limit the min/max values a user can navigate to\n\nconst yearStart = 11;\nconst yearEnd = 0;\nconst currDate = moment(); // new Date();\n\nconst currYear = moment().year(); // new Date().getFullYear();\n\n// const start = new Date().getFullYear() - yearStart;\nconst start = moment().subtract(yearStart, \"years\").year();\nconst end = currYear + yearEnd;\n\nexport default function Calendar({\n setShowCalendarInternal,\n handleSearchDate,\n handleCancel,\n setPrevDateSelected,\n getReportDates,\n dateSelected,\n setDateSelected,\n searchOnClear,\n calendarClassName,\n disableSingleDaySelection,\n useLocalTime,\n allowClear = true,\n}) {\n const [startDate, setStartDate] = useState(\"\");\n const [endDate, setEndDate] = useState(\"\");\n const [flatpickrSelectedDates, setFlatpickrSelectedDates] = useState();\n const [currentSelectedMonth, setCurrentSelectedMonth] = useState(moment(currDate).month());\n const [currentSelectedYear, setCurrentSelectedYear] = useState(moment(currDate).year());\n const [reportDates, setReportDates] = useState(new Set());\n const [datesReceived, setDatesReceived] = useState(false);\n\n const options = {\n plugins: [],\n inline: true,\n allowInput: true,\n dateFormat: \"m.d.Y\",\n mode: \"range\",\n minDate: moment().year(start).startOf(\"year\").format(\"MM/DD/YYYY\"),\n maxDate: moment().year(end).endOf(\"year\").format(\"MM/DD/YYYY\"),\n };\n\n const flatpickrRef = useRef();\n\n const apiGetReportDates = async () => {\n const dates = await getReportDates();\n const datesSet = new Set();\n if (dates.length > 0) {\n dates.forEach((_date) => {\n let date = _date;\n if (useLocalTime) {\n date = convertUtcToLocal(_date);\n }\n const dateTemp = moment(date).format(\"LL\");\n datesSet.add(dateTemp);\n });\n }\n setReportDates(datesSet);\n setDatesReceived(true);\n };\n\n useEffect(() => {\n apiGetReportDates();\n const dates = getSelectedDates(dateSelected, false); // rangeSelectionComplete is false so we know that an array of length one means a single day was picked and we don't have to do a start/end date comparison\n if (dates !== undefined) {\n if (dates.length === 2) {\n // Two dates\n const month = moment(dates[1]).month();\n const year = moment(dates[1]).year();\n setCurrentSelectedMonth(month);\n setCurrentSelectedYear(year);\n\n setStartDate(moment(dates[0]));\n setEndDate(moment(dates[1]));\n } else {\n const month = moment(dates[0]).month();\n const year = moment(dates[0]).year();\n setCurrentSelectedMonth(month);\n setCurrentSelectedYear(year);\n\n setStartDate(moment(dates[0]));\n }\n }\n setFlatpickrSelectedDates(getSelectedDates(dateSelected, true)); // rangeSelectionComplete is true so selection is complete on mount\n }, []); // eslint-disable-line\n\n const handleCancelInternal = (e) => {\n e.stopPropagation();\n\n setStartDate(\"\");\n setEndDate(\"\");\n\n handleCancel();\n setShowCalendarInternal(false);\n };\n\n const onEndDateChange = async (date) => {\n if (date.length < 1) {\n return;\n }\n\n if (date[1] === undefined || moment(date[0]).valueOf() === moment(date[1]).valueOf()) {\n setStartDate(moment(date[0]));\n setEndDate(\"\");\n const newDateSelected = moment(date[0].getTime()).format(\"MMM D, YYYY\");\n setDateSelected(newDateSelected);\n const rangeSelectionComplete = disableSingleDaySelection ? false : date.length === 2;\n setFlatpickrSelectedDates(getSelectedDates(newDateSelected, rangeSelectionComplete));\n } else {\n setStartDate(moment(date[0]));\n setEndDate(moment(date[1]));\n const dateSelectedFrom = moment(date[0].getTime()).format(\"MMM D, YYYY\");\n const dateSelectedTo = moment(date[1].getTime()).format(\"MMM D, YYYY\");\n const newDateSelected = `${dateSelectedFrom} - ${dateSelectedTo}`;\n setDateSelected(newDateSelected);\n setFlatpickrSelectedDates(getSelectedDates(newDateSelected, true));\n }\n };\n\n const handleClearDateClick = () => {\n setStartDate(\"\");\n setEndDate(\"\");\n setDateSelected(\"\");\n setFlatpickrSelectedDates(getSelectedDates(\"\"));\n if (searchOnClear) {\n setPrevDateSelected(\"\");\n handleSearchDate(\"\", \"\");\n }\n flatpickrRef.current.flatpickr.clear();\n setCurrentSelectedYear(currYear);\n };\n\n const handleApplySearchFilter = () => {\n if (startDate) {\n const formatedDateStart = moment(startDate)\n .format(\"YYYY/MM/DD\")\n .split(\"/\")\n .join(\"-\");\n const formatedDateEnd = endDate === \"\"\n ? endDate\n : moment(endDate).format(\"YYYY/MM/DD\").split(\"/\").join(\"-\");\n\n handleSearchDate(formatedDateStart, formatedDateEnd);\n setStartDate(\"\");\n setEndDate(\"\");\n setPrevDateSelected(dateSelected);\n setShowCalendarInternal(false);\n }\n };\n\n /**\n * Update selected month in MonthYearSelect onMonthChange\n * @param {Array} selectedDates array of Date objects sorted from least to most recent\n * @param {String} dateStr date (06.04.2023 format) or date range (06.04.2023 to 07.03.2023 format)\n * @param {Flatpickr} instance flatpickr instance\n */\n const onMonthChange = (selectedDates, dateStr, instance) => {\n const month = instance.currentMonth;\n // const months = [\n // \"January\", \"February\", \"March\", \"April\", \"May\", \"June\",\n // \"July\", \"August\", \"September\", \"October\", \"November\", \"December\",\n // ];\n // console.log(\"onMonthChange\", months[month]);\n setCurrentSelectedMonth(parseInt(month));\n };\n\n /**\n * Update selected year in MonthYearSelect onYearChange\n * @param {Array} selectedDates array of Date objects sorted from least to most recent\n * @param {String} dateStr date (06.04.2023 format) or date range (06.04.2023 to 07.03.2023 format)\n * @param {Flatpickr} instance flatpickr instance\n */\n const onYearChange = (selectedDates, dateStr, instance) => {\n const year = instance.currentYear;\n // console.log(\"onYearChange\", year);\n setCurrentSelectedYear(parseInt(year));\n };\n\n /**\n * Update selectedDate, startDate, endDate onChange. If the current month or year shown in flatpickr\n * differs from what is shown in the MonthYearSelect, update MonthYearSelect.\n * @param {Array} selectedDates array of Date objects sorted from least to most recent\n */\n const onChange = (selectedDates) => {\n // console.log(\"onChange\", selectedDates);\n onEndDateChange(selectedDates);\n /* There is a bug where onMonthChange, onYearChange aren't triggered when user clicks\n on a date from previous or next month and month/year changes.\n So if currentSelectedMonth and currentSelectedYear don't match the flatpickr end date month/year,\n update their values (on change, flatpickr always goes to the month of the most recent date) */\n const fpCurrEndDate = selectedDates[selectedDates.length - 1]; // get most recent date in selection\n const fpCurrMonth = moment(fpCurrEndDate).month();\n const fpCurrYear = moment(fpCurrEndDate).year();\n if (fpCurrMonth !== currentSelectedMonth) {\n setCurrentSelectedMonth(fpCurrMonth);\n }\n if (fpCurrYear !== currentSelectedYear) {\n setCurrentSelectedYear(fpCurrYear);\n }\n };\n\n const disableApplyButton = startDate === \"\" || (disableSingleDaySelection && endDate === \"\");\n\n return (\n
    \n
    \n
    Select Date
    \n \n
    \n
    \n \n {\n if (datesReceived) {\n if (\n reportDates.has(dayElem.getAttribute(\"aria-label\"))\n ) {\n dayElem.innerHTML += \"\";\n }\n }\n }}\n onMonthChange={onMonthChange}\n onYearChange={onYearChange}\n />\n
    \n { } : (e) => handleClearDateClick(e)}\n >\n Clear\n \n handleApplySearchFilter(e)}\n disabled={disableApplyButton}\n type=\"primary\"\n >\n Apply\n \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\nimport { Tooltip } from \"antd\";\nimport cancelIcon from \"../../../assets/images/product/crossDarkBlue.png\";\n// import defaultCalendarIcon from \"../../../assets/images/product/calendarDarkBlue.png\";\nimport defaultCalendarIcon from \"../../../assets/images/sample-submission/SampleCalendarIcon.svg\";\nimport \"./DatePickerDisplay.css\";\n\nexport default function DatePickerDisplay({\n dateSelected,\n showCalendarInternal,\n setDateSelected,\n setPrevDateSelected,\n handleSearchDate,\n displayTextPosition = \"right\", // \"right\" | \"left\" - whether the text grows to the right or the left of the calendar\n displayClassName = \"\",\n showText = true, // whether to show dates or not\n iconTooltipTitle = \"\", // tooltip content (leave empty for no tooltip)\n customCalendarIcon = null, // custom calendar icon\n displayElemId, // id of display container\n allowClear = true,\n}) {\n const handleResetDateFilter = (e) => {\n e.stopPropagation();\n setDateSelected(\"\");\n setPrevDateSelected(\"\");\n handleSearchDate(\"\", \"\");\n };\n\n return (\n \n \n {customCalendarIcon ?? (\n \n )}\n \n {showText && dateSelected && (\n <>\n {dateSelected}\n {!showCalendarInternal && allowClear && (\n \n )}\n \n )}\n \n );\n}\n","import React, { useEffect, useState } from \"react\";\n\nimport { Popover } from \"antd\";\n\nimport Calendar from \"./Calendar\";\nimport DatePickerDisplay from \"./DatePickerDisplay\";\n\nimport \"./DatePicker.css\";\n\nexport default function DatePicker({\n showCalendar,\n setShowCalendar = () => { },\n prevValue,\n setPrevValue = () => { },\n value,\n onChange = () => { },\n handleSearchDate = () => { },\n getReportDates,\n searchOnClear = false,\n useLocalTime = false,\n popoverPlacement = \"bottomLeft\",\n popoverClassName = \"\",\n calendarClassName = \"\",\n disableSingleDaySelection = false, // only allow ranges of at least 2 days\n disableClickAway = false,\n getPopupContainer,\n autoAdjustOverflow = true,\n allowClear = true,\n datePickerDisplayProps = {\n displayClassName: \"\",\n showText: true,\n displayTextPosition: \"right\",\n iconTooltipTitle: \"\",\n displayElemId: undefined,\n },\n children,\n}) {\n const [showCalendarInternal, setShowCalendarInternal] = useState(false);\n const [dateSelected, setDateSelected] = useState(value ?? \"\");\n const [prevDateSelected, setPrevDateSelected] = useState(prevValue ?? \"\");\n\n /** Set showCalendarInternal when value from parent change. */\n useEffect(() => {\n if (showCalendar !== undefined) { // control from parent\n if (showCalendar !== showCalendarInternal) {\n setShowCalendarInternal(showCalendar);\n }\n }\n }, [showCalendar]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** Set dateSelected when value from parent change. */\n useEffect(() => {\n if (value !== undefined) { // control from parent\n if (value !== dateSelected) {\n setDateSelected(value);\n }\n }\n }, [value]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** Set prevDateSelected when value from parent change. */\n useEffect(() => {\n if (prevValue !== undefined) { // control from parent\n if (prevValue !== prevDateSelected) {\n setPrevDateSelected(prevValue);\n }\n }\n }, [prevValue]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** Update showCalendar value in parent */\n useEffect(() => {\n setShowCalendar(showCalendarInternal);\n }, [showCalendarInternal]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** Call onDateChange when dateSelectedInternal changes */\n useEffect(() => {\n onChange(dateSelected);\n }, [dateSelected]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /** Update prevValue in parent */\n useEffect(() => {\n setPrevValue(prevDateSelected);\n }, [prevDateSelected]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const handleCancel = () => {\n setDateSelected(prevDateSelected);\n };\n\n /** Handle open/closing calendar popover w/ and w/out clickaway. */\n const onOpenChange = (isOpen) => {\n if (!isOpen && !disableClickAway) {\n handleCancel();\n setShowCalendarInternal(isOpen);\n } else if (isOpen) {\n setShowCalendarInternal(isOpen);\n }\n };\n\n return (\n \n )}\n >\n {children ?? (\n <>\n \n \n )}\n \n );\n}\n","import React from \"react\";\nimport \"flatpickr/dist/themes/material_green.css\";\nimport { ReactComponent as CalendarIcon } from \"../../../../../../assets/images/environment/calendarIcon.svg\";\nimport \"./EnvCalendar.css\";\nimport DatePicker from \"../../../../../Common/DatePicker/DatePicker\";\n\nclass EnvCalendar extends React.Component {\n state = {\n dateSelected: \"\",\n prevDateSelected: \"\",\n };\n\n clearCalendar = () => {\n this.setState({\n dateSelected: \"\",\n prevDateSelected: \"\",\n });\n }\n\n displayDateSelected = (dateSelected) => {\n this.setState({ dateSelected: dateSelected === \"\" ? \"\" : dateSelected });\n }\n\n render() {\n const {\n dateSelected,\n prevDateSelected,\n } = this.state;\n\n const {\n handleFilterByDate,\n getCalendarDates,\n hideFilterButton,\n } = this.props;\n\n return (\n this.setState({ prevDateSelected: val })}\n searchOnClear\n popoverPlacement=\"bottomRight\"\n popoverClassName=\"EnvCalendarPopover\"\n datePickerDisplayProps={{\n displayClassName: `ListViewCalendar${hideFilterButton ? \"--hidden\" : \"\"}`,\n iconTooltipTitle: \"Sort by date\",\n customCalendarIcon: ,\n displayTextPosition: \"left\",\n }}\n />\n );\n }\n}\n\nexport default EnvCalendar;\n","export const CENTERFROMTOP = 34;\nexport const CENTERFROMLEFT = 20;\nexport const PINWIDTH = 40;\nexport const PINHEIGHT = 52;\n\nexport const QUADRANT_STYLE_MAP = {\n 0: {\n display_name: \"Pink Quadrant\",\n color: \"#f878ff\",\n rgb_values: \"248, 120, 255\",\n hover_color: \"rgba(248, 120, 255, 0.2)\",\n },\n 1: {\n display_name: \"Teal Quadrant\",\n color: \"#0093A7\",\n rgb_values: \"0, 147, 167\",\n hover_color: \"rgba(0, 147, 167, 0.2)\",\n },\n 2: {\n display_name: \"Purple Quadrant\",\n color: \"#8A1CFF\",\n rgb_values: \"138, 28, 255\",\n hover_color: \"rgba(138, 28, 255, 0.2)\",\n },\n 3: {\n display_name: \"Olive Quadrant\",\n color: \"#A7BB2A\",\n rgb_values: \"167, 187, 42\",\n hover_color: \"rgba(167, 187, 42, 0.2)\",\n },\n};\n\nexport const PINS_SPEC_STYLE_MAP = {\n invalid: {\n display_name: \"-\",\n color: \"#aeb3b8\", // light gray\n rgb_values: \"rgb(174, 179, 184)\",\n box_shadow_color: \"rgba(174, 179, 184, 0.15)\",\n border_color: \"#ebf0f5\",\n },\n \"\": {\n display_name: \"No Result\",\n color: \"#26ABE1\", // light blue\n rgb_values: \"38, 171, 225\",\n box_shadow_color: \"rgba(38, 171, 225, 0.21)\",\n border_color: \"#A7E3fA\",\n },\n 0: {\n display_name: \"In Process\",\n color: \"#E1B226\", // yellow\n rgb_values: \"225, 178, 38\",\n box_shadow_color: \"rgba(225, 178, 38, 0.2)\",\n border_color: \"#F5DA8C\",\n },\n 1: {\n display_name: \"In Spec\",\n color: \"#1EC04A\", // green\n rgb_values: \"30, 192, 74\",\n box_shadow_color: \"rgba(30, 192, 74, 0.15)\",\n border_color: \"#B2E8B4\",\n },\n 2: {\n display_name: \"Out of Spec\",\n color: \"#E63559\", // red\n rgb_values: \"230, 53, 89\",\n box_shadow_color: \"rgba(230, 53, 89, 0.3)\",\n border_color: \"#F3BFBF\",\n },\n 3: {\n display_name: \"Spec Incomplete\",\n color: \"#505050\", // gray\n rgb_values: \"80, 80, 80\",\n box_shadow_color: \"rgba(0, 0, 0, 0.15)\",\n border_color: \"#C5C5C5\",\n },\n 4: {\n display_name: \"In Process - Retest\", // retest\n color: \"#F98006\", // orange\n rgb_values: \"249, 128, 6\",\n box_shadow_color: \"rgba(254, 128, 1, 0.2)\",\n border_color: \"#FFBF80\",\n },\n 5: {\n display_name: \"In Spec - Retest\", // retest\n color: \"#1EC04A\", // green\n rgb_values: \"30, 192, 74\",\n box_shadow_color: \"rgba(30, 192, 74, 0.15)\",\n border_color: \"#B2E8B4\",\n },\n 6: {\n display_name: \"Out of Spec - Retest\", // retest\n color: \"#E63559\", // red\n rgb_values: \"230, 53, 89\",\n box_shadow_color: \"rgba(230, 53, 89, 0.3)\",\n border_color: \"#F3BFBF\",\n },\n \"-1\": {\n display_name: \"Sampled\",\n color: \"#FF9F3F\", // orange\n rgb_values: \"255, 159, 63\",\n box_shadow_color: \"rgba(255, 159, 63, 0.3)\",\n border_color: \"#FF9F3F\",\n },\n \"-2\": {\n display_name: \"Scheduled\",\n color: \"#C4D2DF\", // grey\n rgb_values: \"196, 210, 223\",\n box_shadow_color: \"rgba(196, 210, 223, 0.3)\",\n border_color: \"#C4D2DF\",\n },\n};\n","var _ellipse, _ellipse2, _ellipse3;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgStatusPingDot = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 45,\n height: 42,\n viewBox: \"0 0 45 42\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _ellipse || (_ellipse = /*#__PURE__*/React.createElement(\"ellipse\", {\n cx: 22.4334,\n cy: 21,\n rx: 21.6834,\n ry: 21,\n fill: \"current\",\n fillOpacity: 0.21\n })), _ellipse2 || (_ellipse2 = /*#__PURE__*/React.createElement(\"ellipse\", {\n cx: 22.4341,\n cy: 20.9998,\n rx: 16.0269,\n ry: 15.5217,\n fill: \"current\",\n fillOpacity: 0.21\n })), _ellipse3 || (_ellipse3 = /*#__PURE__*/React.createElement(\"ellipse\", {\n cx: 22.434,\n cy: 21.0006,\n rx: 8.48481,\n ry: 8.21739,\n fill: \"current\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgStatusPingDot, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/statusPingDot.7ede9f60.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { PINS_SPEC_STYLE_MAP } from \"../../Constant\";\nimport { ReactComponent as StatusDotIcon } from \"../../../../../../assets/images/environment/statusPingDot.svg\";\nimport \"./FilterButtons.css\";\n\nconst FilterButtons = ({\n handleSelectFilter,\n filterSelected,\n greyout,\n}) => (\n
    \n { !greyout && [2, 1, 0].map((spec) => (\n handleSelectFilter(spec)}\n >\n \n
    {PINS_SPEC_STYLE_MAP[spec].display_name}
    \n
    \n ))}\n { greyout && [2, 1, 0].map((spec) => (\n handleSelectFilter(spec)}\n >\n \n
    {PINS_SPEC_STYLE_MAP[spec].display_name}
    \n \n ))}\n \n);\n\nexport default FilterButtons;\n","import React, { Component } from \"react\";\n// import moment from \"moment\";\n// import Scrollbar from \"react-scrollbars-custom\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport searchIconBlue from \"../../../../../../assets/images/environment/docSearchIconBlue.png\";\nimport closeIcon from \"../../../../../../assets/images/environment/closeDarkblue.png\";\nimport \"./EnvSearch.css\";\nimport EnvCalendar from \"./EnvCalendar\";\nimport FilterButtons from \"./FilterButtons\";\n\nexport default class EnvSearch extends Component {\n constructor(props) {\n super(props);\n const { searchResultSelected } = this.props;\n // console.log(\"searchresultselected\", searchResultSelected);\n this.state = {\n searchValue: searchResultSelected || \"\",\n hideFilterButton: false,\n };\n }\n\n componentDidMount() {\n // console.log(\"mount\");\n const { searchResultSelected } = this.props;\n this.setState({\n searchValue: searchResultSelected || \"\",\n hideFilterButton: !!searchResultSelected,\n });\n }\n\n clearSearch = () => {\n // console.log(\"clearing search\");\n this.setState({\n searchValue: \"\",\n hideFilterButton: false,\n });\n }\n\n onChange = (e) => {\n const { handleStylesWhenSearching } = this.props;\n const { searchValue: prevSearchValue } = this.state;\n const searchValue = e.target.value;\n if (prevSearchValue && !searchValue) {\n this.setState({\n hideFilterButton: false,\n });\n handleStylesWhenSearching(false, true);\n }\n this.setState({ searchValue });\n }\n\n onKeyDown = async (e) => {\n // console.log(\"key down\", e.key);\n const { searchValue } = this.state;\n const { handleSearch, handleStylesWhenSearching } = this.props;\n const value = searchValue.trim();\n if (e.key === \"Enter\" && value) {\n e.preventDefault();\n // this.props.handleSearchChange(e);\n await handleSearch(value);\n this.setState({\n hideFilterButton: false,\n });\n handleStylesWhenSearching(false);\n } else if (e.key === \"Enter\" && !value) {\n this.setState({\n searchValue: \"\",\n hideFilterButton: false,\n });\n handleStylesWhenSearching(false, true);\n } else {\n this.setState({ hideFilterButton: true });\n handleStylesWhenSearching(true, false);\n }\n }\n\n handleSearch = async (e) => {\n // console.log(\"handle search\");\n e.preventDefault();\n e.stopPropagation();\n const { searchValue } = this.state;\n const { handleSearch, handleStylesWhenSearching } = this.props;\n const value = searchValue.trim();\n await handleSearch(value);\n this.setState({\n hideFilterButton: false,\n });\n handleStylesWhenSearching(false);\n }\n\n handleClearSearch = (e) => {\n // console.log(\"handle clear search\");\n const { handleStylesWhenSearching } = this.props;\n e.preventDefault();\n e.stopPropagation();\n this.setState({\n searchValue: \"\",\n hideFilterButton: false,\n });\n handleStylesWhenSearching(false, true);\n }\n\n handleInputClick = () => {\n const { handleStylesWhenSearching } = this.props;\n this.setState({ hideFilterButton: true });\n handleStylesWhenSearching(true, false);\n }\n\n handleClickAway = () => {\n const { handleStylesWhenSearching } = this.props;\n this.setState({ hideFilterButton: false });\n handleStylesWhenSearching(false, false);\n }\n\n // handleOptionClick = (option) => {\n // const { optionClicked } = this.state;\n // if (optionClicked !== option) {\n // this.setState({ optionClicked: option });\n // } else {\n // this.setState({ optionClicked: \"\" });\n // }\n // }\n\n // handleClickSearchResult = (pin) => {\n // const { handleClickSearchResult } = this.props;\n // const { swab_number, zone, section } = pin;\n // this.setState({ searchRes: [], searchValue: `Swab ID: ${swab_number} zone: ${zone} section: ${section}` });\n // handleClickSearchResult(pin);\n // }\n\n render() {\n const {\n searchValue,\n hideFilterButton,\n } = this.state;\n\n const {\n filterSelected,\n handleSelectFilter,\n isAddingNewSwab,\n isClickingQuadrant,\n showReportView,\n handleFilterByDate,\n getCalendarDates,\n envCalendarRef,\n } = this.props;\n\n return (\n
    \n
    \n {}}>\n
    \n this.handleInputClick(true, false)}\n />\n {hideFilterButton && (\n \n )}\n
    \n
    \n \n
    \n
    \n
    \n
    \n \n {/* {displayOption && (\n
    \n \n \n \n
    \n )} */}\n {/* {searchRes && searchRes.length > 3 && (\n
    \n \n {searchRes.map((pin, index) => (\n this.handleClickSearchResult(pin)}\n >\n \n Swab ID:\n {pin.swab_number}\n \n \n {\" \"}\n Area ID:\n {pin.zone}\n \n \n {\" \"}\n Swab Area:\n {pin.section}\n \n \n
    \n ))}\n \n
    \n )} */}\n {/* {displayOption && searchRes && searchRes.length <= 3 && searchRes.length > 0 && (\n
    \n {searchRes.map((pin, index) => (\n this.handleClickSearchResult(pin)}\n >\n \n Swab ID:\n {pin.swab_number}\n \n \n {\" \"}\n Area ID:\n {pin.zone}\n \n \n {\" \"}\n Swab Area:\n {pin.section}\n \n \n
    \n ))}\n
    \n )} */}\n \n null : handleSelectFilter}\n greyout={hideFilterButton}\n filterSelected={filterSelected}\n />\n \n\n );\n }\n}\n","import React from \"react\";\nimport ContentLoader from \"react-content-loader\";\n\nconst ListViewContentLoader = ({ amount }) => {\n const loaderArray = new Array(amount).fill(0);\n return loaderArray.map((item, i) => (\n \n {/* */}\n {/* \n \n \n \n */}\n \n \n \n \n \n \n ));\n};\n\nexport default ListViewContentLoader;\n","import React, { Component } from \"react\";\nimport * as XLSX from \"xlsx\";\n\n// import moment from \"moment\";\nimport { toast } from \"react-toastify\";\nimport PinList from \"./PinList\";\nimport EnvSearch from \"./Search/EnvSearch\";\nimport ListViewContentLoader from \"./Loader/ListViewContentLoader\";\n\nimport addFileIcon from \"../../../../../assets/images/environment/addIconLightBlue.svg\";\nimport uploadSwabFileIcon from \"../../../../../assets/images/environment/uploadIcon.svg\";\nimport pumpkin from \"../../../../../assets/images/environment/pumpkin.gif\";\n\nimport \"./AnalyticsListView.css\";\n\nexport default class AnalyticsListView extends Component {\n state = {\n isSearching: false,\n };\n\n docUploadInput = React.createRef();\n\n // clearCalendar = () => {\n // this.setState({\n // dateSelected: \"\",\n // prevDateSelected: \"\",\n // showCalendar: false,\n // });\n // }\n\n handleAddFile = () => {\n // console.log(\"add excel click\", this.docUploadInput.current);\n // this.docUploadInput.current.value = \"\"; // need to clear previous file input\n // this.docUploadInput.current.click();\n const { toggleShowCreateEnvModal } = this.props;\n toggleShowCreateEnvModal(true);\n };\n\n parseExcelFile = (e) => {\n // console.log(\"parse excel files\", e.target.files);\n e.preventDefault();\n if (e.target.files) {\n const reader = new FileReader();\n reader.onload = (event) => {\n const data = event.target.result;\n try {\n const workbook = XLSX.read(data, { type: \"array\" });\n const sheetName = workbook.SheetNames[0];\n const worksheet = workbook.Sheets[sheetName];\n const json = XLSX.utils.sheet_to_json(worksheet, { defval: \"\" });\n const { addListOfPoints } = this.props;\n addListOfPoints(json);\n } catch (err) {\n toast.error(\n \"Fail to upload. Please make sure the file is a spreadsheet\",\n );\n }\n };\n reader.readAsArrayBuffer(e.target.files[0]);\n }\n };\n\n handleStylesWhenSearching = (isSearching, exitSearch) => {\n const { isSearching: currentIsSearching } = this.state;\n if (currentIsSearching !== isSearching) {\n this.setState({ isSearching });\n }\n if (exitSearch) {\n const { handleSearch } = this.props;\n handleSearch();\n }\n };\n\n handleClickSearchResult = (pin) => {\n const { handleClickSearchResult } = this.props;\n this.setState({ isSearching: false });\n handleClickSearchResult(pin);\n };\n\n handleClickCreateNewSwab = () => {\n const {\n isSearching, imageSrc, toggleAddingSwab, loading,\n } = this.props;\n if (!imageSrc) {\n toast.error(\"Must upload map image first\");\n return;\n }\n if (!loading && imageSrc === \"Not Found\") {\n toast.error(\"Map image must be loaded\");\n return;\n }\n if (!isSearching) {\n toggleAddingSwab();\n }\n }\n\n render() {\n const {\n isSearching,\n } = this.state;\n\n const {\n pinMap,\n quadrantSelected,\n indexOfQuadrantHoverOver,\n selectedLocationID,\n filterSelected,\n isAddingNewSwab,\n searchResultSelected,\n loading,\n displayNoResultFound,\n toggleAddingSwab,\n setSelectedLocationID,\n updatePinInfo,\n handleAddNewSwab,\n handleHoverQuadrant,\n endPinningSwab,\n handleSelectQuadrant,\n handleSelectFilter,\n handleFilterByDate,\n handleSearch,\n setDisplayTooltipLocationID,\n transformWrapperRef,\n duplicateSwab,\n displayFields,\n isPinningNewSwab,\n togglePinningNewSwab,\n isPinningSwab,\n imageSrc,\n searchRef,\n isClickingQuadrant,\n clickQuadrant,\n toggleReportView,\n showReportView,\n index0,\n delimiter,\n linkPatternFields,\n sampleIDFields,\n getCalendarDates,\n forceReportViewRerender,\n envCalendarRef,\n } = this.props;\n\n return (\n <>\n {(pinMap.size > 0 // all cases that show EnvSearch (disabled or not)\n || (pinMap.size === 0 && displayNoResultFound)\n || (pinMap.size === 0 && loading)\n ? (\n
    \n
    \n <>\n {/* {\" \"}\n {showCalendar && (\n \n )} */}\n
    \n \n
    \n \n {(loading || isAddingNewSwab || isClickingQuadrant || showReportView) && (
    )}\n
    \n
    \n
    \n \n \n Create New Swab\n
    \n \n
    \n \n
    \n Upload Swab File\n {/* */}\n
    \n {(isAddingNewSwab || isClickingQuadrant || showReportView) && (\n
    \n )}\n
    \n
    \n {!loading && pinMap.size > 0 && (\n \n )}\n {loading && (\n
    \n \n
    \n )}\n
    \n {!loading && displayNoResultFound && (\n
    \n \n
    \n No Result Found\n
    \n
    \n )}\n
    \n
    \n ) : ( // The case when EnvSearch is not shown (pinmap is empty, loading is false, displayNoResults is false)\n
    \n
    \n \n Upload Swab Files\n \n \n \n
    \n
    \n ))}\n \n );\n }\n}\n","import React from \"react\";\n\nimport zoomInIcon from \"../../../../../assets/images/environment/zoomInIcon.png\";\nimport zoomOutIcon from \"../../../../../assets/images/environment/zoomOutIcon.png\";\nimport { checkPinIsPinned } from \"../pinHelper\";\n\nexport default function MapTools({\n handleZoomIn,\n handleZoomOut,\n onZoom,\n refOfWrapper,\n selectedLocationID,\n isAddingNewSwab,\n pinMap,\n}) {\n const { minScale, maxScale } = refOfWrapper.current ? refOfWrapper.current.instance.setup : { minScale: null, maxScale: null };\n const { scale } = refOfWrapper.current ? refOfWrapper.current.state : { scale: null };\n // console.log(minScale, maxScale, scale);\n\n const zoomIn = async () => {\n // console.log(refOfWrapper.current);\n handleZoomIn();\n setTimeout(() => onZoom(refOfWrapper.current), 300);\n // onZoom(refOfWrapper.current);\n };\n\n const zoomOut = async () => {\n handleZoomOut();\n setTimeout(() => onZoom(refOfWrapper.current), 300);\n // onZoom(refOfWrapper.current);\n };\n\n /** Disable zoom when user is selecting a quadrant to pin swab in (fixes bug where quadrant overlay overflows the container) */\n const disableZoom = isAddingNewSwab || (selectedLocationID && !checkPinIsPinned(pinMap.get(selectedLocationID)));\n\n return (\n
    \n \n \n
    \n );\n}\n","import React from \"react\";\nimport searchIcon from \"../../../../../assets/images/environment/zoomDisplayIconDarkBlue.svg\";\n\nconst ZoomDisplay = ({ currentZoom }) => (\n
    \n \n
    \n {`${currentZoom}%`}\n
    \n
    \n);\n\nexport default ZoomDisplay;\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPinIconSvg = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 26,\n height: 26,\n viewBox: \"0 0 26 26\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_4679_130475)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19.2112 18.8692L12.6306 25.4353L6.04994 18.8692C4.74844 17.5706 3.86211 15.916 3.50303 14.1148C3.14396 12.3136 3.32826 10.4465 4.03264 8.74978C4.73701 7.05304 5.92983 5.60282 7.46024 4.5825C8.99066 3.56217 10.7899 3.01758 12.6306 3.01758C14.4712 3.01758 16.2704 3.56217 17.8009 4.5825C19.3313 5.60282 20.5241 7.05304 21.2285 8.74978C21.9328 10.4465 22.1171 12.3136 21.7581 14.1148C21.399 15.916 20.5127 17.5706 19.2112 18.8692ZM12.6306 14.3667C13.179 14.3667 13.7051 14.1493 14.0929 13.7623C14.4807 13.3753 14.6986 12.8505 14.6986 12.3032C14.6986 11.7559 14.4807 11.2311 14.0929 10.8441C13.7051 10.4571 13.179 10.2397 12.6306 10.2397C12.0821 10.2397 11.556 10.4571 11.1682 10.8441C10.7804 11.2311 10.5625 11.7559 10.5625 12.3032C10.5625 12.8505 10.7804 13.3753 11.1682 13.7623C11.556 14.1493 12.0821 14.3667 12.6306 14.3667Z\",\n fill: \"current\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_4679_130475\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24.8169,\n height: 24.7619,\n fill: \"white\",\n transform: \"translate(0.222656 0.953125)\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPinIconSvg, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/pinIconSVG.2961f4fe.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\n\nimport {\n PINS_SPEC_STYLE_MAP,\n} from \"../Constant\";\n\nexport default function PinSimpleToolTip(props) {\n const {\n pin,\n index0,\n position,\n } = props;\n\n const {\n color, box_shadow_color, border_color,\n } = PINS_SPEC_STYLE_MAP[pin.specs_flag] ?? PINS_SPEC_STYLE_MAP.invalid;\n\n return (\n \n {pin[index0]}\n \n );\n}\n","import React, { useEffect } from \"react\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport \"./Pin.css\";\nimport PinSimpleToolTip from \"./PinSimpleToolTip\";\n\nimport {\n PINS_SPEC_STYLE_MAP,\n} from \"../Constant\";\n\nimport { ReactComponent as PinIcon } from \"../../../../../assets/images/environment/pinIconSVG.svg\";\nimport closeIcon from \"../../../../../assets/images/environment/deleteIconMidnight.png\";\n\nconst calculateStyle = (imageInfo, visibleAreaInfo, pin, hideSwabNumber) => {\n const style = {};\n const {\n x: imageX, y: imageY, width: imageWidth, height: imageHeight,\n } = imageInfo;\n const {\n x: visibleAreaX, y: visibleAreaY, width: visibleAreaWidth, height: visibleAreaHeight,\n } = visibleAreaInfo;\n let pinLeft; let\n pinTop;\n if (pin.x_coordinate !== null) {\n [pinLeft, pinTop] = [pin.x_coordinate, pin.y_coordinate];\n } else {\n pinLeft = pin.quadrant === 0 || pin.quadrant === 3 ? 0.25 : 0.75;\n pinTop = pin.quadrant === 0 || pin.quadrant === 1 ? 0.25 : 0.75;\n }\n // console.log(\"hideSwabNumber\", hideSwabNumber);\n const transform = hideSwabNumber\n ? \"translate(-50%, 50%)\" // want the center of pin to be at position\n : \"translate(-50%, -6px)\"; // want the bottom center of pin to be at position, -6px to account for the arrow\n\n const left = imageX + imageWidth * pinLeft;\n const top = imageY + imageHeight * pinTop;\n const bottom = window.innerHeight - top;\n\n if (left > (visibleAreaX + visibleAreaWidth)\n || left < visibleAreaX\n || top > (visibleAreaY + visibleAreaHeight)\n || top < visibleAreaY) {\n style.display = \"none\";\n } else {\n style.left = `${left}px`;\n style.bottom = `${bottom}px`;\n style.display = \"flex\";\n style.transform = transform;\n }\n return { style, position: { left, top, bottom } };\n};\n\nconst UndraggablePin = (props) => {\n const {\n listViewDisplay,\n locationID,\n pin,\n index0,\n displayTooltipLocationID,\n imageRef,\n visibleArea,\n animationWhenMount,\n updatePinInfo,\n endPinningSwab,\n endRelocatingSwab,\n isHightLighted,\n hideSwabNumber,\n handleSelectQuadrant,\n setSelectedLocationID,\n setDisplayTooltipLocationID,\n pinRelocatingLocationID,\n setPinRelocatingLocationID,\n isClickingQuadrant,\n clickQuadrant,\n } = props;\n\n // console.log(endPinningSwab);\n\n let style = {};\n let position = {};\n if (imageRef && visibleArea) {\n const { style: calcStyle, position: calcPosition } = calculateStyle(imageRef.getBoundingClientRect(), visibleArea.getBoundingClientRect(), pin, hideSwabNumber);\n style = { ...calcStyle };\n position = calcPosition;\n } else {\n style.display = \"none\";\n }\n return (\n <>\n {hideSwabNumber && displayTooltipLocationID === locationID && style.display !== \"none\" && (\n \n )}\n \n \n \n \n );\n};\n\nfunction Pin({\n listViewDisplay,\n pin,\n index0,\n locationID,\n // isHightLighted,\n hideSwabNumber,\n animationWhenMount,\n displayTooltipLocationID,\n handleSelectQuadrant,\n setSelectedLocationID,\n endPinningSwab,\n endRelocatingSwab,\n setDisplayTooltipLocationID,\n updatePinInfo,\n pinRelocatingLocationID,\n setPinRelocatingLocationID,\n isClickingQuadrant,\n clickQuadrant,\n}) {\n // console.log(endPinningSwab);\n useEffect(() => {\n // console.log(\"timer\");\n let timer;\n if (animationWhenMount) {\n // console.log(locationID, animationWhenMount);\n if (timer) {\n clearTimeout(timer);\n }\n timer = setTimeout(() => {\n endPinningSwab();\n endRelocatingSwab();\n },\n 0);\n }\n return () => clearTimeout(timer);\n });\n\n const handleClickOnPin = (e) => {\n // console.log(\"click on pin\");\n // console.log(locationID, pinRelocatingLocationID === locationID);\n e.stopPropagation();\n if (!listViewDisplay) {\n updatePinInfo(\"toggleDraggable\", locationID);\n setPinRelocatingLocationID(pinRelocatingLocationID === locationID ? \"\" : locationID);\n } else if (locationID) {\n // console.log(\"select swab number\", locationID);\n setDisplayTooltipLocationID(locationID);\n setSelectedLocationID(locationID);\n } else if (!locationID) {\n endPinningSwab();\n handleSelectQuadrant(-1);\n }\n };\n\n const isRelocating = () => (locationID === pinRelocatingLocationID);\n const pinSpecsFlag = pin.specs_flag.toString();\n\n const getRGBAColor = (rgbVals, opacity) => `rgba(${rgbVals}, ${opacity})`;\n\n const {\n rgb_values, color, box_shadow_color, border_color,\n } = PINS_SPEC_STYLE_MAP[pin.specs_flag] ?? PINS_SPEC_STYLE_MAP.invalid;\n\n const pinColor = !pin.x_coordinate || isRelocating() ? \"#26ABE1\" : color;\n const boxShadow = !pin.x_coordinate || isRelocating() ? \"0px 3px 13px rgb(9 30 66 / 20%)\" : `0px 16px 8px ${box_shadow_color}`;\n const isSelected = !pin.x_coordinate || isRelocating() || locationID === displayTooltipLocationID;\n let animationClassName = \"animationWhenMount\"; // eslint-disable-line\n\n if (pinSpecsFlag === \"1\") {\n animationClassName = \"animationWhenMount inSpec\";\n } else if (pinSpecsFlag === \"2\") {\n animationClassName = \"animationWhenMount outOfSpec\";\n }\n\n /** apply pulse animation if pin is out of spec */\n const pinAnimation = pinSpecsFlag === \"2\" ? { scale: [1, 1.8, 1] } : {};\n\n if (hideSwabNumber) {\n // small pin icon when display the complete image\n return (\n <>\n {\n // e.preventDefault();\n // e.stopPropagation();\n // setSelectedLocationID(locationID); // ?\n // handleSelectQuadrant(pin.quadrant);\n // } : null}\n onClick={(e) => {\n handleClickOnPin(e);\n }}\n >\n \n \n \n \n \n \n );\n }\n return (\n { endPinningSwab(); } : () => {}}>\n
    \n \n {\n handleClickOnPin(e);\n if (isClickingQuadrant) { // toggle isClickingQuadrant\n clickQuadrant();\n }\n }}\n >\n \n \n
    \n \n {pin[index0]}\n\n \n {!pin.x_coordinate && (\n <>\n {}}\n />\n {\n e.preventDefault();\n e.stopPropagation();\n endPinningSwab();\n handleSelectQuadrant(-1);\n }}\n />\n \n )}\n \n \n {/* {(locationID === undefined || pin.draggable) && } */}\n \n \n
    \n );\n}\n\nconst mapStateHasChanged = (prevState, newState) => prevState.scale !== newState.scale\n|| prevState.positionX !== newState.positionX\n|| prevState.positionY !== newState.positionY\n|| prevState.height !== newState.height\n|| prevState.width !== newState.width\n|| prevState.left !== newState.left\n|| prevState.top !== newState.top;\n\nconst shouldNotUpdate = (prevProps, nextProps) => {\n if ((prevProps.displayTooltipLocationID !== prevProps.locationID && nextProps.displayTooltipLocationID === nextProps.locationID) // if pin is selected\n || (prevProps.displayTooltipLocationID === prevProps.locationID && nextProps.displayTooltipLocationID !== nextProps.locationID) // if pin is deselected\n || (prevProps.pinRelocatingLocationID !== prevProps.locationID && nextProps.pinRelocatingLocationID === nextProps.locationID) // if pin is selected (full map mode)\n || (prevProps.pinRelocatingLocationID === prevProps.locationID && nextProps.pinRelocatingLocationID !== nextProps.locationID) // if pin is deselected (full map mode)\n || (prevProps.pin.x_coordinate !== nextProps.pin.x_coordinate || prevProps.pin.y_coordinate !== nextProps.pin.y_coordinate) // if pin coordinates change (full map mode)\n || (mapStateHasChanged(prevProps.mapState, nextProps.mapState)) // if pin location changes because of zoom/panning\n || (prevProps.hideSwabNumber !== nextProps.hideSwabNumber) // if pin type changes\n || (prevProps.listViewDisplay !== nextProps.listViewDisplay) // if listviewdisplay changes\n ) {\n return false;\n }\n return true;\n};\n\nexport default React.memo(UndraggablePin, shouldNotUpdate);\n","import React, { useState, useRef, useEffect } from \"react\";\nimport { checkPinIsPinned } from \"../pinHelper\";\nimport { QUADRANT_STYLE_MAP } from \"../Constant\";\nimport UndraggablePin from \"./Pin\";\n\nexport default function PinsVisibleArea({\n updatePinInfo,\n imageRef,\n imageWidth,\n imageHeight,\n containerRef: visibleArea,\n indexOfQuadrantHoverOver,\n selectedLocationID,\n quadrantSelected,\n isPinningSwab,\n pinMap,\n imageDisplay,\n listViewDisplay,\n state,\n displayTooltipLocationID,\n endPinningSwab,\n setDisplayTooltipLocationID,\n setTransform,\n handleSelectQuadrant,\n updateMinScale,\n setSelectedLocationID,\n isAddingNewSwab,\n isPinningNewSwab,\n currentZoom,\n isClickingQuadrant,\n clickQuadrant,\n index0,\n}) {\n const [visibleAreaFlag, setVisibleAreaFlag] = useState(false);\n const [pinRelocatingLocationID, setPinRelocatingLocationID] = useState(\"\");\n const [isRelocatingSwab, setIsRelocatingSwab] = useState(false);//eslint-disable-line\n const [visibleAreaDims, setVisibleAreaDims] = useState({\n height: 0, width: 0, left: 0, top: 0,\n });\n const visibleAreaRef = useRef();\n\n // console.log(\"map state\", state);\n\n /**\n * When window resizes, update state of PinsVisibleArea\n * Readjust map and update in scale.\n */\n useEffect(() => {\n function handleResize() {\n let { x, y } = state;\n const { scale } = state;\n if (imageRef.current && visibleArea.current) {\n const imgInfo = imageRef.current.getBoundingClientRect();\n const visibleAreaInfo = visibleArea.current.getBoundingClientRect();\n const {\n height, width, left, top,\n } = visibleAreaInfo;\n setVisibleAreaDims({\n height, width, left, top,\n });\n const adjustRight = visibleAreaInfo.right > imgInfo.right;\n const adjustLeft = visibleAreaInfo.left < imgInfo.left;\n const adjustTop = visibleAreaInfo.top < imgInfo.top;\n const adjustBottom = visibleAreaInfo.bottom > imgInfo.bottom;\n updateMinScale(Math.min(visibleAreaInfo.width / imageWidth, visibleAreaInfo.height / imageHeight));\n // console.log(state);\n // console.log(Math.min(visibleAreaInfo.width / imgInfo.width, visibleAreaInfo.height / imgInfo.height));\n if (!adjustLeft && !adjustRight && !adjustTop && !adjustBottom) {\n setVisibleAreaFlag(!visibleAreaFlag);\n } else {\n let diff = visibleAreaInfo.width - imgInfo.width;\n if (adjustLeft) {\n x = Math.max(diff / 2, 0);\n } else if (adjustRight) {\n x = diff >= 0 ? diff / 2 : diff;\n }\n diff = visibleAreaInfo.height - imgInfo.height;\n if (adjustTop) {\n y = Math.max(diff / 2, 0);\n } else if (adjustBottom) {\n y = diff >= 0 ? diff / 2 : diff;\n }\n setTransform(x, y, scale, 0);\n }\n }\n }\n\n window.addEventListener(\"resize\", handleResize);\n\n return () => {\n window.removeEventListener(\"resize\", handleResize);\n };\n });\n\n /**\n * When content overflows env-main-container, scrollbar will show.\n * When user scrolls this container, update state of PinsVisibleArea.\n */\n useEffect(() => {\n function handleScroll() {\n const visibleAreaInfo = visibleArea.current.getBoundingClientRect();\n const {\n height, width, left, top,\n } = visibleAreaInfo;\n setVisibleAreaDims({\n height, width, left, top,\n });\n }\n\n document.getElementById(\"env-main-container\").addEventListener(\"scroll\", handleScroll);\n\n return () => {\n document.getElementById(\"env-main-container\").removeEventListener(\"scroll\", handleScroll);\n };\n });\n\n const imageInfo = imageRef.current ? imageRef.current.getBoundingClientRect() : \"\";\n const visibleAreaInfo = visibleArea.current ? visibleArea.current.getBoundingClientRect() : \"\";\n\n let hideSwabNumber = true;\n if (!listViewDisplay) {\n hideSwabNumber = false;\n } else if (imageInfo && visibleAreaInfo) {\n // if (imageInfo.width > visibleAreaInfo.width || imageInfo.height > visibleAreaInfo.height) {\n if (currentZoom > 100) {\n hideSwabNumber = false;\n }\n }\n\n const displayQuadrantColor = indexOfQuadrantHoverOver !== -1;\n\n const handleClick = (e) => {\n // console.log(\"click on pinsvisiblearea\");\n if ((selectedLocationID && !checkPinIsPinned(pinMap.get(selectedLocationID)) && quadrantSelected !== -1)) {\n const x_coordinate = (e.clientX - imageInfo.left) / imageInfo.width;\n const y_coordinate = (e.clientY - imageInfo.top) / imageInfo.height;\n if (x_coordinate >= 0 && x_coordinate <= 1 && y_coordinate >= 0 && y_coordinate <= 1) {\n updatePinInfo(\"pinTheLocation\", selectedLocationID, { x_coordinate, y_coordinate });\n // if (isPinningNewSwab) {\n // togglePinningNewSwab();\n // }\n }\n }\n if (pinRelocatingLocationID) {\n setIsRelocatingSwab(true);\n // console.log(pinRelocatingLocationID);\n const x_coordinate = (e.clientX - imageInfo.left) / imageInfo.width;\n const y_coordinate = (e.clientY - imageInfo.top) / imageInfo.height;\n if (x_coordinate >= 0 && x_coordinate <= 1 && y_coordinate >= 0 && y_coordinate <= 1) {\n updatePinInfo(\"pinTheLocation\", pinRelocatingLocationID, { x_coordinate, y_coordinate });\n setPinRelocatingLocationID(\"\");\n }\n }\n };\n\n const endRelocatingSwab = () => {\n // console.log(\"end relocating\");\n setIsRelocatingSwab(false);\n setPinRelocatingLocationID(\"\");\n };\n\n // console.log(pinMap, selectedLocationID);\n const pinnedLocations = Array.from(pinMap.values()).filter((pin) => checkPinIsPinned(pin));\n\n const animationWhenMount = (pin) => (isPinningSwab || isPinningNewSwab) && (selectedLocationID === pin.location_id);\n // const animationWhenMount = (pin) => ((isPinningSwab || isPinningNewSwab) && (selectedLocationID === pin.location_id)) || (!listViewDisplay && isRelocatingSwab && (pinRelocatingLocationID === pin.location_id));\n\n return (\n \n {displayQuadrantColor && (\n \n )}\n {(pinnedLocations && pinnedLocations.length > 0)\n && pinnedLocations.map((pin) =>\n // if (!pin.draggable) {\n // console.log(pin.swab_number, \"draggable pinned\");\n ( //eslint-disable-line\n\n \n )\n ,\n // return null;\n // }\n // eslint-disable-next-line\n )}\n {(selectedLocationID && !checkPinIsPinned(pinMap.get(selectedLocationID)) && quadrantSelected !== -1)\n /* while pinning swab: when user selects quadrant for new pin, create pin on PinsVisibleArea.\n pinMap not updated yet (updated when updatePinInfo called).\n {x, y} for this new pin is null until handleClick calls updatePinInfo with coords from user click */\n && (\n \n )}\n \n );\n}\n","// Map calculations\nexport const calculateTransformOnImageLoad = (containerRef, imageRef, imageWidth, imageHeight, selectedLocationID) => {\n let imageInfo = null;\n let transformInfo = null;\n if (!imageWidth) {\n // console.log(\"loading\");\n const { width: wrapperWidth, height: wrapperHeight } = containerRef.current.getBoundingClientRect();\n const { width: _imageWidth, height: _imageHeight } = imageRef.current.getBoundingClientRect();\n // console.log(imageWidth, imageHeight);\n imageInfo = { imageWidth: _imageWidth, imageHeight: _imageHeight };\n const scale1 = wrapperWidth / _imageWidth;\n const scale2 = wrapperHeight / _imageHeight;\n\n if (scale1 > scale2) {\n transformInfo = {\n initialX: (wrapperWidth - _imageWidth * scale2) / 2, initialY: 0, minScale: scale2, scale: scale2,\n };\n } else {\n transformInfo = {\n initialX: 0, initialY: (wrapperHeight - _imageHeight * scale1) / 2, minScale: scale1, scale: scale1,\n };\n }\n } else if (!selectedLocationID) {\n // console.log(\"transforming\");\n const { width: wrapperWidth, height: wrapperHeight } = containerRef.current.getBoundingClientRect();\n const scale1 = wrapperWidth / imageWidth;\n const scale2 = wrapperHeight / imageHeight;\n\n if (scale1 > scale2) {\n transformInfo = {\n initialX: (wrapperWidth - imageWidth * scale2) / 2, initialY: 0, minScale: scale2, scale: scale2,\n };\n } else {\n transformInfo = {\n initialX: 0, initialY: (wrapperHeight - imageHeight * scale1) / 2, minScale: scale1, scale: scale1,\n };\n }\n }\n return { imageInfo, transformInfo };\n};\n\nconst getComponentsSizes = (wrapperRef, containerRef, scale) => {\n const wrapperComponent = wrapperRef.current;\n const contentComponent = containerRef.current;\n const wrapperWidth = wrapperComponent.offsetWidth;\n const wrapperHeight = wrapperComponent.offsetHeight;\n const contentWidth = contentComponent.offsetWidth;\n const contentHeight = contentComponent.offsetHeight;\n const newContentWidth = contentWidth * scale;\n const newContentHeight = contentHeight * scale;\n const newDiffWidth = wrapperWidth - newContentWidth;\n const newDiffHeight = wrapperHeight - newContentHeight;\n return {\n wrapperWidth,\n wrapperHeight,\n newContentWidth,\n newDiffWidth,\n newContentHeight,\n newDiffHeight,\n };\n};\nconst getBounds = (wrapperRef, imageRef, scale) => {\n const {\n wrapperWidth,\n wrapperHeight,\n newContentWidth,\n newDiffWidth,\n newContentHeight,\n newDiffHeight,\n } = getComponentsSizes(wrapperRef, imageRef, scale);\n const scaleWidthFactor = wrapperWidth > newContentWidth\n ? newDiffWidth * (0.5)\n : 0;\n const scaleHeightFactor = wrapperHeight > newContentHeight\n ? newDiffHeight * (0.5)\n : 0;\n const minPositionX = wrapperWidth - newContentWidth - scaleWidthFactor;\n const maxPositionX = scaleWidthFactor;\n const minPositionY = wrapperHeight - newContentHeight - scaleHeightFactor;\n const maxPositionY = scaleHeightFactor;\n return {\n minPositionX, maxPositionX, minPositionY, maxPositionY,\n };\n};\nconst clamp = (num, min, max) => Math.min(Math.max(num, min), max);\n\nexport const boundLimiter = (wrapperRef, imageRef, scale, minScale, positionX, positionY, maxScale = 8) => {\n const boundedScale = clamp(scale, minScale, maxScale);\n const {\n minPositionX, maxPositionX, minPositionY, maxPositionY,\n } = getBounds(wrapperRef, imageRef, boundedScale);\n // console.log(\"X info\", minPositionX, maxPositionX, positionX);\n // console.log(\"Y info\", minPositionY, maxPositionY, positionY);\n const boundedX = clamp(positionX, minPositionX, maxPositionX);\n const boundedY = clamp(positionY, minPositionY, maxPositionY);\n return { boundedX, boundedY, boundedScale };\n};\n\nexport const zoomToQuadrant = (wrapperRef, quadrantSelected, mapComponentRef) => {\n // console.log(\"zoom to quad\");\n const image = wrapperRef.current.instance.contentComponent.firstChild;\n const { imageHeight, imageWidth } = { imageHeight: image.clientHeight, imageWidth: image.clientWidth };\n // console.log(wrapperRef.current, wrapperRef.current.instance.contentComponent, image);\n\n const { initialScale, initialPositionX, initialPositionY } = wrapperRef.current.instance.props;\n\n const newPos = { x: null, y: null };\n const newScale = initialScale * 2; // zoom for quadrant\n\n if (quadrantSelected === 0) {\n // console.log(\"quad 0\");\n newPos.x = initialPositionX; // set to initial position\n newPos.y = initialPositionY;\n } else if (quadrantSelected === 3) {\n // console.log(\"quad 3\");\n newPos.x = initialPositionX; // pan to correct quadrant\n newPos.y = initialPositionY - imageHeight * initialScale;\n } else if (quadrantSelected === 1) {\n // console.log(\"quad 1\");\n newPos.x = initialPositionX - imageWidth * initialScale; // pan to correct quadrant\n newPos.y = initialPositionY;\n } else {\n // console.log(\"quad 2\");\n newPos.x = initialPositionX - imageWidth * initialScale;\n newPos.y = initialPositionY - imageHeight * initialScale;\n }\n const setTransform = wrapperRef.current.setTransform;\n setTransform(newPos.x, newPos.y, newScale);\n mapComponentRef.current.updateZoom(newScale / initialScale);\n};\n\nexport const resetZoom = (wrapperRef, mapComponentRef) => {\n // zoom out to 100%\n // console.log(\"reset zoom\");\n if (wrapperRef.current) {\n const resetTransform = wrapperRef.current.resetTransform;\n resetTransform();\n mapComponentRef.current.updateZoom(1);\n }\n};\n","import React from \"react\";\nimport fullScreen from \"../../../../../assets/images/environment/fullScreenIcon.svg\";\nimport exitFullScreen from \"../../../../../assets/images/environment/exitFullScreenIcon.svg\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\n\nconst FullMapSwitch = ({\n toggleListViewDisplay, listViewDisplay, editMapTitleToggle, editingMapTitle,\n}) => {\n const handleFullScreen = () => {\n if (editingMapTitle) editMapTitleToggle();\n toggleListViewDisplay();\n };\n return (\n\n \n \n \n \n \n );\n};\n\nexport default FullMapSwitch;\n","import React, { useEffect } from \"react\";\nimport { AnimatePresence, motion } from \"framer-motion/dist/framer-motion\";\nimport { checkPinIsPinned } from \"../pinHelper\";\n// import { QUADRANT_NAME } from \"../Constant\";\n\nconst MapBlurb = ({\n listViewDisplay,\n quadrantSelected,\n selectedLocationID,\n deletedLocationID,\n setDeletedLocationID,\n pinMap,\n}) => {\n let text = \"\";\n if (!listViewDisplay) {\n text = \"Select a pin and click anywhere on the map to relocate it\";\n } else if (deletedLocationID) {\n text = `Swab ${pinMap.get(deletedLocationID).swab_number} has been removed from the map`;\n } else if (quadrantSelected !== -1 && selectedLocationID) {\n // text = (checkPinIsPinned(pinMap.get(selectedLocationID))) ? QUADRANT_NAME[quadrantSelected] : \"Click anywhere on the map to pin it\";\n text = (checkPinIsPinned(pinMap.get(selectedLocationID))) ? \"\" : \"Click anywhere on the map to pin it\";\n }\n\n // On componentDidMount set the timer\n useEffect(() => {\n let timer = null;\n if (deletedLocationID) {\n timer = setTimeout(() => {\n setDeletedLocationID(\"\");\n }, 3000);\n }\n return () => {\n if (timer !== null) {\n clearTimeout(timer);\n }\n };\n }, [deletedLocationID]); // eslint-disable-line\n\n return (\n \n {text ? (\n \n {text}\n \n ) : null}\n \n );\n};\n\nexport default MapBlurb;\n","import React from \"react\";\nimport trashIcon from \"../../../../../assets/images/environment/whiteTrashCan.svg\";\n\nconst RemoveSwabBtn = ({ onClick }) => (\n \n \n
    \n Remove Swab Pin from Map\n
    \n \n);\n\nexport default RemoveSwabBtn;\n","import React, { Component } from \"react\";\nimport { TransformWrapper, TransformComponent } from \"react-zoom-pan-pinch\";\nimport { checkPinIsPinned } from \"../pinHelper\";\nimport { QUADRANT_STYLE_MAP } from \"../Constant\";\nimport MapTools from \"./MapTools\";\nimport ZoomDisplay from \"./ZoomDisplay\";\n// import PinsDroppableArea from \"./PinsDroppableArea\";\nimport PinsVisibleArea from \"./PinsVisibleArea\";\nimport { calculateTransformOnImageLoad } from \"./mapHelper\";\nimport FullMapSwitch from \"./FullMapSwitch\";\nimport MapBlurb from \"./MapBlurb\";\nimport RemoveSwabBtn from \"./RemoveSwabBtn\";\nimport EnvConfirmModal from \"../EnvConfirmModal\";\n\nexport default class Map extends Component {\n constructor(props) {\n super(props);\n this.state = {\n imageWidth: null,\n imageHeight: null,\n initialScale: null,\n initialX: null,\n initialY: null,\n minScale: null,\n currentZoom: 100,\n showDeletePinModal: false,\n deletedLocationID: \"\",\n };\n this.containerRef = React.createRef();\n this.imageRef = React.createRef();\n }\n\n setDeletedLocationID = (locationID) => {\n this.setState({ deletedLocationID: locationID });\n }\n\n updateZoom = (newRatio) => {\n this.setState({ currentZoom: Math.trunc((newRatio) * 100) });\n // console.log(\"zoom\", Math.trunc(newRatio * 100));\n }\n\n updateMinScale =(minScale) => {\n const { imageWidth, imageHeight } = this.state;\n const { width: wrapperWidth, height: wrapperHeight } = this.containerRef.current.getBoundingClientRect();\n this.setState({\n minScale, initialScale: minScale, initialX: (wrapperWidth - imageWidth * minScale) / 2, initialY: (wrapperHeight - imageHeight * minScale) / 2,\n });\n }\n\n whenImageLoad = (setTransform) => {\n const { imageWidth: currentImageWidth, imageHeight: currentImageHeight } = this.state;\n const { selectedLocationID } = this.props;\n const { imageInfo, transformInfo } = calculateTransformOnImageLoad(this.containerRef, this.imageRef, currentImageWidth, currentImageHeight, selectedLocationID);\n if (imageInfo) {\n this.setState({ imageWidth: imageInfo.imageWidth, imageHeight: imageInfo.imageHeight });\n }\n if (transformInfo) {\n const {\n initialX, initialY, minScale, scale,\n } = transformInfo;\n setTransform(initialX, initialY, scale);\n this.setState({\n initialX, initialY, minScale, initialScale: scale,\n });\n }\n }\n\n onZoom = (transformRef) => {\n // console.log(\"zoom\");\n const { initialScale } = this.state;\n // console.log(stats);\n const { scale } = transformRef.state;\n this.setState({ currentZoom: Math.trunc((scale / initialScale) * 100) });\n // console.log(\"zoom\");\n }\n\n getInitialScale = () => {\n const {\n initialScale, currentScale,\n } = this.state;\n const {\n quadrantSelected,\n } = this.props;\n let result = 1;\n if (initialScale) {\n if (quadrantSelected === -1) {\n // console.log(\"reset scale\");\n result = initialScale; // zoom out to full map\n } else if (quadrantSelected === -1) {\n // console.log(\"keep scale\");\n result = currentScale; // keep user at zoom they are at\n } else {\n // console.log(\"quad scale\");\n result = initialScale * 2; // zoom to quadrant\n }\n // console.log(\"initialscale\", result);\n }\n return result;\n }\n\n getInitialPos = (initialScale) => {\n const {\n currentX, currentY, initialX, initialY, imageWidth, imageHeight,\n } = this.state;\n const {\n quadrantSelected,\n } = this.props;\n const initialPos = { x: null, y: null };\n if (quadrantSelected === -1) {\n // console.log(\"keep pos\");\n initialPos.x = currentX; // keep user where they are at\n initialPos.y = currentY;\n } else if (quadrantSelected === -1 || quadrantSelected === 0) {\n // console.log(\"dont keep or quad 0\");\n initialPos.x = initialX; // reset to initial position\n initialPos.y = initialY;\n } else if (quadrantSelected === 3) {\n // console.log(\"quad 3\");\n initialPos.x = initialX; // pan to correct quadrant\n initialPos.y = initialY - imageHeight * initialScale;\n } else if (quadrantSelected === 1) {\n // console.log(\"quad 1\");\n initialPos.x = initialX - imageWidth * initialScale; // pan to correct quadrant\n initialPos.y = initialY;\n } else {\n // console.log(\"quad 2\");\n initialPos.x = initialX - imageWidth * initialScale;\n initialPos.y = initialY - imageHeight * initialScale;\n }\n return initialPos;\n }\n\n onInit = (transformRef) => {\n // console.log(\"init\");\n const { scale } = transformRef.state;\n const { initialScale } = this.state;\n if (initialScale) {\n this.setState({ currentZoom: Math.trunc((scale / initialScale) * 100) });\n }\n }\n\n handleRemoveSwab = async () => {\n const { selectedLocationID, updatePinInfo } = this.props;\n const locationID = selectedLocationID;\n const success = await updatePinInfo(\"removePin\", selectedLocationID);\n if (success) {\n this.setDeletedLocationID(locationID);\n }\n this.setState({ showDeletePinModal: false });\n }\n\n render() {\n const {\n imageWidth,\n imageHeight,\n initialScale,\n initialX,\n initialY,\n minScale,\n currentZoom,\n showDeletePinModal,\n deletedLocationID,\n } = this.state;\n\n const {\n imageSrc,\n selectedLocationID,\n transformWrapperRef,\n indexOfQuadrantHoverOver,\n pinMap,\n listViewDisplay,\n displayTooltipLocationID,\n isAddingNewSwab,\n isPinningSwab,\n updatePinInfo,\n endPinningSwab,\n quadrantSelected,\n draggingOverMap,\n handleSelectQuadrant,\n setSelectedLocationID,\n setDisplayTooltipLocationID,\n toggleListViewDisplay,\n isPinningNewSwab,\n togglePinningNewSwab,\n mapKey,\n isClickingQuadrant,\n clickQuadrant,\n displayNoResultFound,\n editMapTitleToggle,\n editingMapTitle,\n index0,\n } = this.props;\n\n // const borderColorArr = [\"transparent\", \"rgba(229, 151, 242, 0.4)\", \"rgba(0, 147, 167, 0.4)\", \"rgba(138, 28, 255, 0.4)\", \"rgba(167, 187, 42, 0.4)\"];\n\n const border = quadrantSelected > -1 ? `3px solid rgba(${QUADRANT_STYLE_MAP[quadrantSelected].rgb_values}, 0.4)` : \"3px solid transparent\";\n\n return (\n <>\n \n \n \n \n {showDeletePinModal && (\n this.setState({ showDeletePinModal: false }),\n this.handleRemoveSwab]}\n />\n )}\n \n {({\n zoomIn, zoomOut, resetTransform, state, setTransform,\n }) => (\n <>\n {!displayNoResultFound && (\n \n )}\n {/* {!listViewDisplay && (\n \n )} */}\n \n this.whenImageLoad(setTransform, state)}\n src={imageSrc}\n style={{\n opacity: draggingOverMap ? 0.5 : 1,\n boxShadow: \"0px 3px 5px rgba(9, 30, 66, 0.2), 0px 0px 1px rgba(9, 30, 66, 0.31)\",\n }}\n />\n \n \n\n \n )}\n \n \n \n {listViewDisplay && selectedLocationID && checkPinIsPinned(pinMap.get(selectedLocationID)) ? (\n this.setState({ showDeletePinModal: true })} />\n ) : (\n )}\n\n \n );\n }\n}\n","import React from \"react\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport deleteIcon from \"../../../../../../assets/images/environment/binDeleteIcon.svg\";\n\nconst MapTitleTab = ({\n mapTitle, editMapTitleToggle, editingMapTitle, isSelected, listViewDisplay, handleEditMapTitle, toggleDeleteTitleConfirm,\n}) => (\n <>\n {listViewDisplay && editingMapTitle && isSelected ? (\n \n
    e.stopPropagation()}>\n {\n if (event.key === \"Enter\") {\n event.preventDefault();\n if (event.target.value) {\n handleEditMapTitle(event.target.value);\n }\n editMapTitleToggle();\n }\n }}\n />\n \"delete\" toggleDeleteTitleConfirm(mapTitle)} />\n
    \n
    \n ) : (\n { e.stopPropagation(); editMapTitleToggle(); } : () => {}}\n >\n {mapTitle}\n \n )}\n \n);\nexport default MapTitleTab;\n","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAddMapIconMidnight = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n stroke: \"current\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 3.33398V12.6673\",\n stroke: \"current\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.33325 8H12.6666\",\n stroke: \"current\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAddMapIconMidnight, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/addMapIconMidnight.9b56ee3b.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { Tabs } from \"antd\";\nimport MapTitleTab from \"./MapTitleTab\";\nimport \"./MapTabs.css\";\nimport { ReactComponent as PlusIcon } from \"../../../../../../assets/images/environment/addMapIconMidnight.svg\";\n\nconst MapTabs = ({\n tabsInMapView,\n loading,\n // addingMapTitle,\n editingMapTitle,\n activeTabIndex,\n listViewDisplay,\n editMapTitleToggle,\n handleTabSelect,\n handleEditMapTitle,\n toggleDeleteTitleConfirm,\n toggleShowCreateEnvModal,\n}) => {\n const tabItems = tabsInMapView.map((tab, index) => {\n const isSelected = activeTabIndex === (index + 1).toString();\n const isEditing = editingMapTitle && isSelected;\n return ({\n label: ,\n children: \"\",\n key: index,\n closable: isEditing,\n disabled: loading || !listViewDisplay,\n });\n });\n\n const onChange = (key) => {\n if (!editingMapTitle) {\n handleTabSelect((parseInt(key) + 1).toString());\n }\n };\n\n const onEdit = (key, action) => {\n if (action === \"add\") {\n toggleShowCreateEnvModal(false, true);\n } else {\n const mapTitle = tabsInMapView[key].title;\n toggleDeleteTitleConfirm(mapTitle);\n }\n };\n\n return (\n 11 || loading} // max 12 maps\n addIcon={}\n onChange={!loading ? onChange : null}\n activeKey={tabsInMapView.length ? parseInt(activeTabIndex) - 1 : null}\n onEdit={onEdit}\n tabBarGutter={8}\n items={tabItems}\n popupClassName=\"MapTabs__Dropdown\"\n />\n );\n};\nexport default MapTabs;\n","export default __webpack_public_path__ + \"static/media/pumpkin.21c70beb.png\";","import React, { Component } from \"react\";\n// import SpecManagerToggleButton from \"../SpecManager/SpecManagerToggleButton\";\n// import QuadrantList from './QuadrantList';\nimport Map from \"./Map\";\nimport MapTabs from \"./MapTabs/MapTabs\";\n// import MapTitleTab from \"./MapTabs/MapTitleTab\";\n// import AddMapTitleTab from \"./MapTabs/AddMapTitleTab\";\n// import UploadImage from \"./UploadImage\";\nimport \"./Map.css\";\nimport pumpkin from \"../../../../../assets/images/environment/pumpkin.png\";\nimport \"./AnalyticsMapView.css\";\n\nimport { checkPinIsPinned } from \"../pinHelper\";\n\nexport default class AnalyticsMapView extends Component {\n state = {\n // addingMapTitle: false,\n editingMapTitle: false,\n };\n\n editMapTitleToggle = () => {\n // console.log(\"editmaptitletoggle\");\n const { editingMapTitle } = this.state;\n this.setState({ editingMapTitle: !editingMapTitle });\n }\n\n // addMapTitleToggle = () => {\n // // console.log(\"addmaptitletoggle\");\n // const { addingMapTitle } = this.state;\n // this.setState({ addingMapTitle: !addingMapTitle });\n // }\n\n render() {\n const {\n tabsInMapView,\n activeTabIndex,\n listViewDisplay,\n pinMap,\n mapKey,\n selectedLocationID,\n indexOfQuadrantHoverOver,\n quadrantSelected,\n displayTooltipLocationID,\n imageSrc,\n imageDisplay,\n draggingOverMap,\n setDisplayTooltipLocationID,\n isPinningSwab,\n updatePinInfo,\n endPinningSwab,\n handleSelectQuadrant,\n toggleListViewDisplay,\n // handleUploadImage,\n setSelectedLocationID,\n handleTabSelect,\n loading,\n // keepCurrentTransform,\n isAddingNewSwab,\n transformWrapperRef,\n togglePinningNewSwab,\n isPinningNewSwab,\n mapComponentRef,\n isClickingQuadrant,\n clickQuadrant,\n displayNoResultFound,\n // handleAddMapTitle,\n handleEditMapTitle,\n toggleDeleteTitleConfirm,\n toggleShowCreateEnvModal,\n index0,\n // handleSpecManagerToggle,\n } = this.props;\n\n const {\n // addingMapTitle,\n editingMapTitle,\n } = this.state;\n // console.log(\"addingmaptitle\", addingMapTitle);\n const pinnedLocations = Array.from(pinMap.values()).filter((pin) => checkPinIsPinned(pin));\n return (\n <>\n
    \n \n {/* */}\n
    \n updateTemplate(e, 2, \"enter\") : null}\n // onDragLeave={isDragging ? e => updateTemplate(e, 2, \"leave\") : null}\n >\n {!loading && imageSrc && imageSrc !== \"Not Found\" && (\n <>\n \n \n {!displayNoResultFound && pinnedLocations.length === 0 && !selectedLocationID && (\n \n
    \n Select a swab ID to drop a pin on map\n
    \n \n )}\n \n \n )}\n {(!imageSrc || imageSrc === \"Not Found\") && (\n
    \n {(!loading && !imageSrc && tabsInMapView.length > 0) && (\n
    \n Map is missing.\n Please delete the current tab and reupload the map by clicking on the plus (+) icon.\n
    \n // \n )}\n {(!loading && !imageSrc && !tabsInMapView.length) && (\n
    \n Click on the plus (+) icon above to add a map\n
    \n )}\n {!loading && imageSrc\n && (\n \n \n
    Failed to load the image
    \n
    \n )}\n \n )}\n \n \n );\n }\n}\n","export default __webpack_public_path__ + \"static/media/EmptyState_V2.0cd0ba70.png\";","import React from \"react\";\nimport { Viewer, Worker, SpecialZoomLevel } from \"@react-pdf-viewer/core\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport ErrorIcon from \"../../assets/images/EmptyState_V2.png\";\n\nimport \"@react-pdf-viewer/core/lib/styles/index.css\";\nimport \"@react-pdf-viewer/default-layout/lib/styles/index.css\";\nimport \"./PdfPreview.css\";\nimport NoResults from \"./NoResultsGIF\";\n\nexport default function PdfPreview({\n blob,\n height,\n scaleType, // scaleType can be ActualSize, PageFit, PageWidth\n scaleNumber = 1,\n scrollBarId,\n scrollBarBorderRadius,\n showLoading = false,\n showError = false,\n handleLoadingDone = () => {},\n}) {\n if (showError || (!showLoading && !blob)) {\n return (\n
    \n \n
    \n );\n }\n\n if (showLoading) {\n return (\n
    \n \n
    \n );\n }\n\n return (\n \n \n (\n
    \n \n
    \n )}\n renderError={() => {\n handleLoadingDone();\n return (\n
    \n \n
    \n );\n }}\n />\n
    \n \n );\n}\n","import React, { Component } from \"react\";\nimport \"./NoResults.css\";\n\nclass NoResults extends Component {\n render() {\n const {\n image, message, messageStyle, className,\n } = this.props;\n return (\n
    \n
    \n \n
    \n \n {message}\n
    \n \n );\n }\n}\n\nexport default NoResults;\n","import React from \"react\";\nimport moment from \"moment\";\n\nexport default function PreviewDateBlock(props) {\n const {\n date, active, index, updateActiveDate,\n } = props;\n\n const year = moment(new Date(date)).format(\"YY\");\n const month = moment(new Date(date)).format(\"MMM\");\n const day = moment(new Date(date)).format(\"DD\");\n\n return (\n
    updateActiveDate(date, index)}>\n
    \n {day}\n
    \n\n
    \n {month}\n {\" \"}\n {year}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport PreviewDateBlock from \"./PreviewDateBlock\";\n\nimport \"./PreviewDatePicker.css\";\n\nexport default function PreviewDatePicker(props) {\n const { data, updateActiveDate, activeDate } = props;\n\n return (\n
    \n
    \n {data.map((item, index) => {\n if (item === null) return null;\n const date = item.date;\n let active = false;\n if (date === activeDate) active = true;\n\n return ;\n })}\n
    \n\n
    \n
    \n );\n}\n","import React, { Component } from \"react\";\nimport { Modal } from \"antd\";\n\nimport { Carousel } from \"react-responsive-carousel\";\nimport \"react-responsive-carousel/lib/styles/carousel.min.css\";\n\nimport emptyStateIcon from \"../../../../../assets/images/EmptyState_V2.png\";\nimport cancelBtn from \"../../../../../assets/images/product/crossWhite.png\";\nimport PdfPreview from \"../../../../Common/PdfPreview\";\nimport NoResults from \"../../../../Common/NoResults\";\nimport PreviewDatePicker from \"./PreviewDatePicker\";\nimport \"./ReportPreviewModal.css\";\n\nexport default class ReportPreviewModal extends Component {\n constructor(props) {\n super(props);\n\n const { previewUrlList } = this.props;\n const sortedUrlList = [...previewUrlList].sort((a, b) => Date.parse(b.date) - Date.parse(a.date));\n\n this.state = {\n currentSlide: 0,\n sortedUrlList,\n activeDate: sortedUrlList ? sortedUrlList[0].date : \"\",\n modalIsAnimating: true,\n };\n }\n\n handleDateChanged = (date, index) => {\n this.setState({\n activeDate: date,\n currentSlide: index,\n });\n }\n\n handleShowRetest = () => {\n const { showRetest, currentSlide } = this.state;\n this.setState({\n showRetest: !showRetest,\n currentSlide: currentSlide === 0 ? 1 : 0,\n });\n };\n\n render() {\n const { handleCloseForPreview } = this.props;\n const {\n currentSlide, activeDate, modalIsAnimating, sortedUrlList,\n } = this.state;\n return (\n handleCloseForPreview()}\n closable={false}\n centered\n destroyOnClose\n footer={null}\n width=\"40vw\"\n wrapClassName=\"ReportPreviewModal\"\n afterOpenChange={() => this.setState({ modalIsAnimating: false })}\n >\n \n COA\n handleCloseForPreview()}\n />\n
    \n
    \n {sortedUrlList.length > 1 && }\n\n \n {sortedUrlList.map((item, index) => (\n \n {item.url ? (\n \n ) : (\n
    \n \n
    \n )}\n
    \n ))}\n {/* {!previewUrlList[currentSlide] && !previewUrlList[currentSlide].url ? (\n \n ) : (\n\n )} */}\n \n \n \n );\n }\n}\n","import React, { useEffect } from \"react\";\nimport {\n PINS_SPEC_STYLE_MAP,\n} from \"../../Constant\";\n\nimport { ReactComponent as StatusDotIcon } from \"../../../../../../assets/images/environment/statusPingDot.svg\";\n\nconst ReportViewPin = (props) => {\n const {\n pin,\n pinElementRef,\n zoomToElement,\n } = props;\n\n /** Zoom to pin */\n const handleZoomToPin = () => {\n if (pinElementRef.current !== null) {\n zoomToElement(pinElementRef.current, 2);\n }\n };\n\n /** When pin changes, re-zoom to pin */\n useEffect(() => {\n handleZoomToPin();\n }, [pin]); // eslint-disable-line\n\n /** When window size changes, re-zoom to pin */\n useEffect(() => {\n window.addEventListener(\"resize\", handleZoomToPin);\n\n return () => {\n window.removeEventListener(\"resize\", handleZoomToPin);\n };\n });\n\n const { color } = PINS_SPEC_STYLE_MAP[pin.specs_flag] ?? PINS_SPEC_STYLE_MAP.invalid;\n\n return (\n \n \n \n \n \n );\n};\n\nexport default ReportViewPin;\n","import React from \"react\";\nimport \"./ReportViewHeader.css\";\n\nexport default function ReportViewHeader(props) {\n const {\n title, subTitle, subTitleColor, blockColor,\n } = props;\n return (\n
    \n
    \n
    \n {title}\n {subTitle}\n
    \n
    \n );\n}\n","import React, { useRef } from \"react\";\nimport { TransformWrapper, TransformComponent } from \"react-zoom-pan-pinch\";\nimport NoResultsGIF from \"../../../../../Common/NoResultsGIF\";\nimport { checkPinIsPinned } from \"../../pinHelper\";\nimport ReportViewPin from \"./ReportViewPin\";\nimport ReportViewHeader from \"../ReportViewHeader\";\nimport pumpkinGIF from \"../../../../../../assets/images/environment/pumpkin.gif\";\nimport { QUADRANT_STYLE_MAP } from \"../../Constant\";\nimport \"./SinglePinMapView.css\";\n\nexport default function SinglePinMapView({\n imageSrc,\n pin,\n}) {\n const imageRef = useRef();\n const pinElementRef = useRef();\n\n if (pin === undefined) {\n return (
    );\n }\n\n const { color, display_name } = checkPinIsPinned(pin)\n ? QUADRANT_STYLE_MAP[pin.quadrant]\n : { color: \"#E63559\", display_name: \"No location found\" }; // red\n\n return (\n
    \n \n {checkPinIsPinned(pin) ? (\n \n {({\n zoomToElement,\n }) => (\n \n
    \n \n {\n if (pinElementRef.current !== null) {\n zoomToElement(pinElementRef.current, 2);\n }\n }}\n />\n
    \n
    \n )}\n \n ) : ()}\n\n
    \n );\n}\n","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgRotateIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 22,\n viewBox: \"0 0 20 22\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M19.3909 8.0586L15.716 7.16094C15.6817 7.15258 15.6504 7.13471 15.6258 7.10939C15.6013 7.08407 15.5843 7.05232 15.577 7.0178C15.5696 6.98327 15.5722 6.94738 15.5843 6.91424C15.5965 6.8811 15.6177 6.85207 15.6456 6.83047L19.3394 3.94532C19.4613 3.84688 19.6417 3.93594 19.6417 4.09297L19.623 7.87813C19.623 7.99766 19.5081 8.08672 19.3909 8.0586Z\",\n fill: \"#19305A\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.3175 13.7609L19.6464 14.218C19.7449 14.2531 19.7964 14.3633 19.7613 14.4617C18.3503 18.3219 14.6472 21.0781 10.2995 21.0781C4.77064 21.0781 0.282357 16.6227 0.226107 11.1031C0.169857 5.48516 4.67923 0.924221 10.2949 0.921878C13.5199 0.919534 16.3909 2.43594 18.2355 4.79375L16.8339 5.89063C16.6277 5.62578 16.4027 5.375 16.1636 5.1336C15.408 4.37567 14.5126 3.77154 13.5269 3.35469C12.505 2.9211 11.4199 2.70313 10.2995 2.70313C9.17923 2.70313 8.09173 2.9211 7.07454 3.35469C6.08886 3.77154 5.1934 4.37567 4.43783 5.1336C3.67376 5.89532 3.07611 6.7836 2.65892 7.77032C2.22533 8.79219 2.00736 9.87969 2.00736 11C2.00493 12.1082 2.2249 13.2057 2.65423 14.2273C3.07376 15.2141 3.67142 16.1023 4.43314 16.8641C5.18872 17.622 6.08417 18.2261 7.06986 18.643C8.09173 19.0766 9.17689 19.2945 10.2972 19.2945C11.4058 19.2963 12.5034 19.0747 13.5245 18.643C14.5102 18.2261 15.4057 17.622 16.1613 16.8641C16.9253 16.1023 17.523 15.2141 17.9402 14.2273C17.9894 14.1102 18.0363 13.993 18.0808 13.8734C18.0977 13.8275 18.132 13.79 18.1762 13.769C18.2205 13.7479 18.2712 13.7451 18.3175 13.7609Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgRotateIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/rotateIcon.f44cafaa.svg\";\nexport { ForwardRef as ReactComponent };","/* eslint-disable react/jsx-props-no-spreading */\nimport React from \"react\";\nimport { ReactComponent as UploadIcon } from \"../../../assets/images/environment/upload.svg\";\nimport \"./DragDrop.css\";\n\nexport default function DragDrop(props) {\n const {\n uploadTarget, getRootProps, getInputProps,\n } = props;\n\n return (\n
    \n \n \n
    \n Drag and drop to upload\n {\" \"}\n {uploadTarget}\n
    \n \n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPlusSliderIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 20C4.477 20 0 15.523 0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20ZM9 9H5.5C5.22386 9 5 9.22386 5 9.5V10.5C5 10.7761 5.22386 11 5.5 11H9V14.5C9 14.7761 9.22386 15 9.5 15H10.5C10.7761 15 11 14.7761 11 14.5V11H14.5C14.7761 11 15 10.7761 15 10.5V9.5C15 9.22386 14.7761 9 14.5 9H11V5.5C11 5.22386 10.7761 5 10.5 5H9.5C9.22386 5 9 5.22386 9 5.5V9Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPlusSliderIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/plusSliderIcon.e5b0f09c.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgMinusSliderIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 20C4.477 20 0 15.523 0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20ZM5.5 9C5.22386 9 5 9.22386 5 9.5V10.5C5 10.7761 5.22386 11 5.5 11H14.5C14.7761 11 15 10.7761 15 10.5V9.5C15 9.22386 14.7761 9 14.5 9H5.5Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgMinusSliderIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/minusSliderIcon.b6e6fe3d.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState } from \"react\";\nimport { Slider } from \"antd\";\nimport { ReactComponent as PlusIcon } from \"../../../assets/images/sample-submission/plusSliderIcon.svg\";\nimport { ReactComponent as MinusIcon } from \"../../../assets/images/sample-submission/minusSliderIcon.svg\";\nimport \"./SliderWithButtons.css\";\n\nexport default function SliderWithButtons(props) {\n const {\n setScale,\n scale,\n } = props;\n const MIN_SLIDER = 0;\n const MAX_SLIDER = 100;\n const MIN_SCALE = 1;\n const MAX_SCALE = 10;\n const STEP = 5;\n\n const convertSliderValToScale = (val) => MIN_SCALE + (val / MAX_SLIDER) * (MAX_SCALE - MIN_SCALE);\n const convertScaleToSliderVal = (_scale) => ((_scale - MIN_SCALE) * MAX_SLIDER) / (MAX_SCALE - MIN_SCALE);\n\n const [value, setValue] = useState(convertScaleToSliderVal(scale));\n\n useEffect(() => {\n setScale(convertSliderValToScale(value));\n }, [value]); // eslint-disable-line\n\n return (\n
    \n setValue(Math.min(100, Math.max(0, value - STEP)))}\n width={20}\n height={20}\n />\n \n setValue(Math.min(100, Math.max(0, value + STEP)))}\n width={20}\n height={20}\n />\n
    \n );\n}\n","import React from \"react\";\nimport { ReactComponent as RotateIcon } from \"../../../assets/images/sample-submission/rotateIcon.svg\";\nimport SliderWithButtons from \"./SliderWithButtons\";\nimport \"./ImageEditToggles.css\";\n\nexport default function ImageEditToggles(props) {\n const {\n scale,\n setScale,\n handleRotateImage,\n disable,\n } = props;\n return (\n
    \n \n \n
    \n );\n}\n","/**\n * Generate the cropped and scaled canvas preview for the image\n * @param {HTMLImageElement} image image elem\n * @param {HTMLCanvasElement} canvas canvas element\n * @param {Object} crop { unit: %, x, y, width, height }\n * @param {Number} scale user-specified scale for the image\n */\nexport async function canvasPreviewCrop(\n image,\n canvas,\n crop,\n scale = 1,\n) {\n const ctx = canvas.getContext(\"2d\");\n\n if (!ctx) {\n throw new Error(\"No 2d context\");\n }\n\n /** Convert crop parameters from percent to pixel */\n const pixelCrop = {};\n pixelCrop.x = (crop.x / 100) * image.width;\n pixelCrop.y = (crop.y / 100) * image.height;\n pixelCrop.width = (crop.width / 100) * image.width;\n pixelCrop.height = (crop.height / 100) * image.height;\n\n const scaleX = image.naturalWidth / image.width;\n const scaleY = image.naturalHeight / image.height;\n const pixelRatio = window.devicePixelRatio; // devicePixelRatio slightly increases sharpness on retina devices\n\n /** Maximum canvas size supported by most browsers */\n const maxCanvasSize = 4096;\n /**\n * Calculates the maximum scale factor based on the height/width of the cropped image.\n * This ensures that the canvas height does not exceed the maximum canvas size.\n */\n const scaleFactor = Math.min(1, maxCanvasSize / (pixelCrop.width * scaleX * pixelRatio), maxCanvasSize / (pixelCrop.height * scaleY * pixelRatio));\n canvas.width = Math.floor(pixelCrop.width * scaleX * pixelRatio * scaleFactor);\n canvas.height = Math.floor(pixelCrop.height * scaleY * pixelRatio * scaleFactor);\n\n /** Draw in a white background before drawing the image so when PNG is converted to JPEG, transparency will appear white instead of black. */\n ctx.fillStyle = \"#fff\";\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n\n /** Scale the image to fit the canvas */\n ctx.scale(pixelRatio * scaleFactor, pixelRatio * scaleFactor);\n ctx.imageSmoothingQuality = \"high\";\n\n const cropX = pixelCrop.x * scaleX;\n const cropY = pixelCrop.y * scaleY;\n\n const centerX = image.naturalWidth / 2;\n const centerY = image.naturalHeight / 2;\n\n ctx.save();\n\n /** Move the crop origin to the canvas origin (0,0) */\n ctx.translate(-cropX, -cropY);\n /** Move the origin to the center of the original position */\n ctx.translate(centerX, centerY);\n /** Scale the image by the user-specified scale */\n ctx.scale(scale, scale);\n /** Move the center of the image to the origin (0,0) */\n ctx.translate(-centerX, -centerY);\n ctx.drawImage(\n image,\n 0,\n 0,\n image.naturalWidth,\n image.naturalHeight,\n 0,\n 0,\n image.naturalWidth,\n image.naturalHeight,\n );\n\n ctx.restore();\n}\n\n/**\n * Helper function for generating the rotated canvas preview for the image\n * @param {HTMLImageElement} img image elem\n * @param {HTMLCanvasElement} canvas canvas elem\n * @param {CanvasRenderingContext2D} ctx 2D context of the canvas elem\n * @param {Number} numRotations number of 90deg rotations [0, 3]\n */\nfunction drawRotatedImage(img, canvas, ctx, numRotations = 1) {\n const w = img.naturalWidth;\n const h = img.naturalHeight;\n\n /** Determine the direction of the x-axis */\n let xAxisX = Math.cos(numRotations * (Math.PI / 2));\n let xAxisY = Math.sin(numRotations * (Math.PI / 2));\n\n /** Find width and height of rotated image */\n const tw = Math.abs(w * xAxisX - h * xAxisY);\n const th = Math.abs(w * xAxisY + h * xAxisX);\n\n /** Scale the image to fit the canvas */\n const scale = Math.min(canvas.width / tw, canvas.height / th);\n xAxisX *= scale;\n xAxisY *= scale;\n\n /** Set transform */\n ctx.setTransform(xAxisX, xAxisY, -xAxisY, xAxisX, canvas.width / 2, canvas.height / 2);\n\n /** Draw image so it's centered at the canvas center */\n ctx.drawImage(img, -w / 2, -h / 2, w, h);\n}\n\n/**\n * Generate the rotated canvas preview for the image\n * @param {HTMLImageElement} image image elem\n * @param {HTMLCanvasElement} canvas canvas elem\n * @param {Number} rotate degrees of rotation (-90, 0, 90, 180)\n */\nexport async function canvasPreviewRotateOnly(\n image,\n canvas,\n rotate = 90,\n) {\n const ctx = canvas.getContext(\"2d\");\n\n if (!ctx) {\n throw new Error(\"No 2d context\");\n }\n\n let canvasWidth = image.naturalWidth;\n let canvasHeight = image.naturalHeight;\n\n /** Set the canvas dimensions based on the rotation */\n switch (rotate) {\n case 90:\n canvasWidth = image.naturalHeight;\n canvasHeight = image.naturalWidth;\n break;\n case -90:\n canvasWidth = image.naturalHeight;\n canvasHeight = image.naturalWidth;\n break;\n default:\n break;\n }\n\n /** Maximum canvas size supported by most browsers */\n const maxCanvasSize = 4096;\n\n /**\n * Calculates the maximum scale factor based on the height/width of the cropped image.\n * This ensures that the canvas height does not exceed the maximum canvas size.\n */\n const scaleFactor = Math.min(1, maxCanvasSize / canvasWidth, maxCanvasSize / canvasHeight);\n canvas.width = Math.floor(canvasWidth * scaleFactor);\n canvas.height = Math.floor(canvasHeight * scaleFactor);\n\n /** Rotate the image */\n const degToUnit = {\n 0: 0, 90: 1, 180: 2, \"-90\": 3,\n };\n\n /** Draw in a white background before drawing the image so when PNG is converted to JPEG, transparency will appear white instead of black. */\n ctx.fillStyle = \"#fff\";\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n\n drawRotatedImage(image, canvas, ctx, degToUnit[rotate]);\n}\n\n/**\n * Canvas to Blob object\n * @param {HTMLCanvasElement} canvas canvas elem\n * @param {String} fileType file type (\"image/png\", \"image/jpg\", or \"image/jpeg\")\n * @param {Number} quality image quality, between 0 and 1 inclusive\n * @returns {Blob} blob object with the canvas contents\n */\nexport function toBlob(canvas, fileType, quality) {\n return new Promise((resolve) => {\n if (canvas) {\n if (quality) {\n canvas.toBlob(resolve, fileType ?? \"\", quality);\n } else {\n canvas.toBlob(resolve, fileType ?? \"\");\n }\n } else {\n resolve(\"\");\n }\n });\n}\n\n/**\n * Rotate the image in a canvas, generate Blob from canvas, return the url generated for the blob\n * @param {HTMLImageElement} image image elem\n * @param {Number} rotate degrees of rotation (-90, 0, 90, 180)\n * @returns {String} url for the image file blob\n */\nexport async function generateRotatedImageUrl(\n image,\n rotate,\n type,\n quality,\n) {\n const canvas = document.createElement(\"canvas\");\n canvasPreviewRotateOnly(image, canvas, rotate);\n\n const blob = await toBlob(canvas, type, quality);\n // console.log(\"rotated\", \"quality\", quality, \"size\", `${blob.size}B`, `${(blob.size / 1048576).toFixed(2)}MB`);\n\n if (!blob) {\n // console.error(\"Failed to create blob\");\n return \"\";\n }\n\n return URL.createObjectURL(blob);\n}\n","import React, { useRef, useState, useEffect } from \"react\";\nimport ReactCrop from \"react-image-crop\";\nimport {\n canvasPreviewCrop,\n} from \"./ImageEditHelper\";\nimport { ReactComponent as GarbageBinIcon } from \"../../../assets/images/environment/garbageBin.svg\";\nimport \"./UploadImage.css\";\nimport \"./UploadImageEditor.css\";\nimport \"react-image-crop/dist/ReactCrop.css\";\n\nexport default function UploadImageEditor(props) {\n const {\n previewEditedImage,\n cropPreviewSrc,\n handleDeleteImage,\n scale,\n imageRef,\n canvasRef,\n rotatingInProcess,\n setRotatingInProcess,\n initialCrop,\n cropObjectRef,\n } = props;\n\n const [imageDims, setImageDims] = useState(null);\n const [crop, setCrop] = useState();\n const [completedCrop, setCompletedCrop] = useState();\n const uploadImageContainerRef = useRef();\n\n /**\n * Scale the image to fit inside the UploadImageContainer div while maintaining aspect ratio\n * @param {Number} _imgWidth width of image in pixels\n * @param {Number} _imgHeight height of image in pixels\n * @returns {Object} { adjustedHeight, adjustedWidth }\n */\n const handleImageFitToContainer = (_imgWidth, _imgHeight) => {\n let imgWidth = _imgWidth;\n let imgHeight = _imgHeight;\n if (!_imgHeight || !_imgWidth) {\n if (imageRef.current) {\n const {\n width: imgWidthFromRef, height: imgHeightFromRef,\n } = imageRef.current.getBoundingClientRect();\n imgWidth = imgWidthFromRef;\n imgHeight = imgHeightFromRef;\n }\n }\n let adjustedWidth;\n let adjustedHeight;\n if (uploadImageContainerRef.current) {\n const {\n width: containerWidth,\n height: containerHeight,\n } = uploadImageContainerRef.current.getBoundingClientRect();\n const widthScale = containerWidth / imgWidth;\n const heightScale = containerHeight / imgHeight;\n const scaleToUse = Math.min(widthScale, heightScale);\n adjustedWidth = imgWidth * scaleToUse;\n adjustedHeight = imgHeight * scaleToUse;\n }\n setImageDims({ width: adjustedWidth, height: adjustedHeight });\n return { adjustedWidth, adjustedHeight };\n };\n\n /** Use the current crop parameters, imageRef, and canvasRef to update the canvas preview */\n const updateCanvas = () => {\n if (\n completedCrop?.width\n && completedCrop?.height\n && imageRef.current\n && canvasRef.current\n ) {\n canvasPreviewCrop(\n imageRef.current,\n canvasRef.current,\n completedCrop,\n scale,\n );\n }\n };\n\n /**\n * On image load, resize the image to fit the container.\n * Set crop to the width and height of the image.\n * @param {Image Load Event} e\n */\n const onImageLoad = (e) => {\n const { width: imgWidth, height: imgHeight } = e.currentTarget;\n handleImageFitToContainer(imgWidth, imgHeight);\n if (initialCrop) {\n setCrop({ ...initialCrop });\n cropObjectRef.current = { ...initialCrop };\n } else {\n setCrop({\n unit: \"%\",\n x: 0,\n y: 0,\n width: 100,\n height: 100,\n });\n cropObjectRef.current = {\n unit: \"%\",\n x: 0,\n y: 0,\n width: 100,\n height: 100,\n };\n }\n\n if (rotatingInProcess) {\n setRotatingInProcess(false);\n }\n };\n\n /**\n * When window resizes, update image dimensions and crop box.\n */\n useEffect(() => {\n const handleResize = () => {\n handleImageFitToContainer();\n updateCanvas();\n };\n window.addEventListener(\"resize\", handleResize);\n\n return () => {\n window.removeEventListener(\"resize\", handleResize);\n };\n });\n\n /** When crop parameters and/or scale change, update the canvas */\n useEffect(\n () => {\n updateCanvas();\n cropObjectRef.current = { ...completedCrop };\n },\n [completedCrop, scale], // eslint-disable-line\n );\n\n /** Set image style, if imageDims null let image take up its natural size so resize can be calculated */\n const imageStyle = { transform: `scale(${scale})` };\n if (imageDims !== null) {\n const { width, height } = imageDims;\n imageStyle.width = `${width}px`;\n imageStyle.height = `${height}px`;\n }\n\n return (\n <>\n \n {cropPreviewSrc && (\n setCrop(percentCrop)}\n onComplete={(_, percentCrop) => setCompletedCrop(percentCrop)}\n className={previewEditedImage ? \"hideReactCrop\" : \"\"}\n keepSelection\n >\n \n \n )}\n {completedCrop && (\n
    \n {!!completedCrop && (\n \n )}\n
    \n )}\n
    \n {\n setCrop(undefined);\n handleDeleteImage();\n }}\n className=\"SampleSubmission__UploadImageDelete\"\n >\n \n
    \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCircularCloseIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 20C4.477 20 0 15.523 0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20ZM10.3536 8.23226C10.1583 8.4276 9.84166 8.4276 9.64638 8.23226L7.52555 6.11068C7.3303 5.91536 7.01367 5.91533 6.81838 6.11062L6.11062 6.81838C5.91533 7.01367 5.91536 7.3303 6.11068 7.52555L8.23226 9.64638C8.4276 9.84166 8.4276 10.1583 8.23226 10.3536L6.11068 12.4744C5.91536 12.6697 5.91533 12.9863 6.11062 13.1816L6.81838 13.8894C7.01367 14.0847 7.3303 14.0846 7.52555 13.8893L9.64638 11.7677C9.84166 11.5724 10.1583 11.5724 10.3536 11.7677L12.4744 13.8893C12.6697 14.0846 12.9863 14.0847 13.1816 13.8894L13.8894 13.1816C14.0847 12.9863 14.0846 12.6697 13.8893 12.4744L11.7677 10.3536C11.5724 10.1583 11.5724 9.84166 11.7677 9.64638L13.8893 7.52555C14.0846 7.3303 14.0847 7.01367 13.8894 6.81838L13.1816 6.11062C12.9863 5.91533 12.6697 5.91536 12.4744 6.11068L10.3536 8.23226Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCircularCloseIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/circularCloseIcon.58c30523.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { ReactComponent as LoadingDots } from \"../../../assets/images/common/LoadingDots.svg\";\nimport \"./LoadingConfirmBtn.css\";\n\nexport default function LoadingConfimBtn({ text }) {\n return (\n \n );\n}\n","import React, {\n useCallback, useEffect, useRef, useState,\n} from \"react\";\nimport { useDropzone } from \"react-dropzone\";\nimport { toast } from \"react-toastify\";\nimport DragDrop from \"./DragDrop\";\nimport ImageEditToggles from \"./ImageEditToggles\";\nimport \"./UploadImage.css\";\nimport UploadImageEditor from \"./UploadImageEditor\";\nimport LoadingConfirmBtn from \"./LoadingConfirmBtn\";\nimport { generateRotatedImageUrl, toBlob } from \"./ImageEditHelper\";\nimport { getFileNameAndExtensionFromPath } from \"../../../utils/helpers\";\nimport StyledButton from \"../UIComponents/StyledButton\";\n\nexport default function UploadImage(props) {\n const {\n setShowUploadImageModal,\n setDisplayImageSrc,\n displayImageSrc,\n imageInfoRef, // { originalUrl, editedUrl, file, crop, rotate, scale }\n setImageInfoRef,\n setModalHeader,\n // imageFileType,\n editMode, // it is used to differentciate wheter current upload is a new upload (Sample Submission) or edit the current image\n updateNewSampleImage,\n } = props;\n /** File/Dropzone state */\n const [imageFile, setImageFile] = useState(null);\n const [imageTitle, setImageTitle] = useState(imageInfoRef.current.file?.name ?? \"\");\n const [dragging, setDragging] = useState(false); // Used to change style when dragging files\n const [fileError, setFileError] = useState(false);\n /** Image edit state */\n const [originalSrc, setOriginalSrc] = useState(imageInfoRef.current?.originalUrl ?? \"\"); // unmodified image src\n const [cropPreviewSrc, setCropPreviewSrc] = useState(imageInfoRef.current?.originalUrl ?? \"\"); // src used for crop preview, rotation is applied to this src\n const [savingImageLoadingState, setSavingImageLoadingState] = useState(false);\n const [imageEditorKey, setImageEditorKey] = useState(false);\n const [rotatingInProcess, setRotatingInProcess] = useState(false);\n const [previewEditedImage, setPreviewEditedImage] = useState(false);\n /** Set the crop, scale, and rotate to the saved parameters (user's crop/rotate/scale state from the previous edit if applicable) */\n const [scale, setScale] = useState(imageInfoRef.current?.scale ?? 1);\n const [rotate, setRotate] = useState(imageInfoRef.current?.rotate ?? 0);\n const [initialCrop, setInitialCrop] = useState(imageInfoRef.current?.crop);\n /** Refs */\n const cropObjectRef = useRef(); // store the crop parameters as they update without causing rerenders\n const cropImageRef = useRef();\n const canvasRef = useRef();\n\n const FILE_SIZE_MAX_LIMIT_MB = 10;\n const FILE_SIZE_MAX_LIMIT = FILE_SIZE_MAX_LIMIT_MB * 1024 * 1024; // convert MB to bytes\n const ACCEPTED_FILE_TYPES = [\"image/png\", \"image/jpg\", \"image/jpeg\"];\n\n /**\n * Return error text if the selected files do not meet requirement.\n * @param {File} file A selected file\n * @returns {Array} Return error text array\n */\n const returnValidFileErr = (file) => {\n let errors = false;\n if (file.size > FILE_SIZE_MAX_LIMIT) {\n toast.error(`File size is too big. Max ${FILE_SIZE_MAX_LIMIT_MB}MB.`);\n errors = true;\n }\n if (!ACCEPTED_FILE_TYPES.includes(file.type)) {\n toast.error(\"File format is not supported. Only png, jpg, and jpeg are accepted.\");\n errors = true;\n }\n return errors;\n };\n\n /** Called when dragged file enters the DragDrop area, to change UI style of the area */\n const onDragEnter = useCallback(() => {\n setDragging(true);\n }, []);\n\n /** Called when dragged file leaves the DragDrop area, to change UI style of the area */\n const onDragLeave = useCallback(() => {\n setDragging(false);\n }, []);\n\n /**\n * A callback function to handle upload image file.\n * 1. Accpect only one image at a time, otherwise, display an error toast message and exit the function\n * 2. On loading file, set the error message status and image meta data.\n */\n const onDrop = useCallback((acceptedFiles, fileRejections) => {\n setDragging(false);\n if (acceptedFiles.length + fileRejections.length > 1) {\n toast.error(\"Only one image is allowed\");\n return;\n }\n let file;\n if (acceptedFiles.length === 0) {\n file = fileRejections[0].file;\n } else {\n file = acceptedFiles[0];\n }\n const errorMsg = returnValidFileErr(file);\n if (!errorMsg) {\n const reader = new FileReader();\n reader.addEventListener(\"load\", () => {\n setOriginalSrc(reader.result);\n setCropPreviewSrc(reader.result);\n setImageFile(file);\n // console.log(\"original size\", `${file.size}B`, `${(file.size / 1048576).toFixed(2)}MB`);\n setImageTitle(file.name);\n setFileError(false);\n });\n reader.readAsDataURL(file);\n } else {\n setFileError(true);\n }\n }, []); // eslint-disable-line\n\n /**\n * Set the dropzone properties: file type, maximum file size, maximum file number.\n */\n const {\n getRootProps, getInputProps,\n } = useDropzone({\n onDrop,\n onDragEnter,\n onDragLeave,\n accept: {\n \"image/png\": [\".png\"],\n \"image/jpg\": [\".jpg\"],\n \"image/jpeg\": [\".jpeg\"],\n },\n maxSize: FILE_SIZE_MAX_LIMIT,\n multiple: false,\n });\n\n /**\n * Handle Save button click. If there is a canvas, save canvas as a blob and set src.\n * Else, file was deleted, set src back to empty.\n */\n const handleClickSave = async () => {\n setSavingImageLoadingState(true);\n if (canvasRef.current) {\n const quality = 0.8;\n const type = \"image/jpeg\"; // convert all non-jpeg files to jpeg\n const editedImageBlob = await toBlob(canvasRef.current, type, quality); // hardcode to jpeg because jpeg supports compression (image is compressed when quality < 1)\n // console.log(\"quality\", quality, \"size\", `${editedImageBlob.size}B`, `${(editedImageBlob.size / 1048576).toFixed(2)}MB`);\n\n const editedSrc = URL.createObjectURL(editedImageBlob);\n const editedFile = new File([editedImageBlob], `${getFileNameAndExtensionFromPath(imageTitle).name || \"sample_image\"}.jpeg`, { type });\n let success = true;\n // if it is edited from the report view, then we need to make api calls to update the image information on backend.\n if (editMode === true) {\n success = await updateNewSampleImage(editedFile);\n }\n if (success) {\n setDisplayImageSrc(editedSrc);\n setImageInfoRef({\n originalUrl: rotate === 0 ? originalSrc : cropPreviewSrc, // cropPreviewSrc is rotated\n editedUrl: editedSrc ?? \"\",\n file: editedFile ?? \"\",\n rotate,\n scale,\n crop: { ...cropObjectRef.current },\n imageWasEdited: true,\n });\n setShowUploadImageModal(false);\n }\n } else {\n let success = true;\n // if it is edited from the report view, then we need to make api calls to delete the image information on backend.\n if (editMode === true) {\n success = await updateNewSampleImage(null, true);\n }\n if (success) {\n setDisplayImageSrc(\"\");\n setImageInfoRef({\n originalUrl: \"\",\n editedUrl: \"\",\n file: \"\",\n imageWasEdited: true,\n });\n setShowUploadImageModal(false);\n }\n }\n setSavingImageLoadingState(false);\n };\n\n /**\n * reset all image related states\n */\n const handleDeleteImage = () => {\n setOriginalSrc(\"\");\n setCropPreviewSrc(\"\");\n setInitialCrop({\n unit: \"%\",\n x: 0,\n y: 0,\n width: 100,\n height: 100,\n });\n setRotate(0);\n setScale(1);\n setPreviewEditedImage(false);\n setImageFile(null);\n setImageTitle(null);\n setFileError(false);\n };\n\n /** Generate rotated image url and remount the crop component */\n async function handleSetRotatedUrl() {\n let rotatedUrl;\n if (cropImageRef.current) {\n setRotatingInProcess(true);\n const quality = 0.8;\n const type = \"image/jpeg\"; // convert to jpeg\n rotatedUrl = await generateRotatedImageUrl(cropImageRef.current, 90, type, quality);\n }\n if (rotatedUrl) {\n setCropPreviewSrc(rotatedUrl);\n setImageEditorKey(!imageEditorKey);\n }\n }\n\n /**\n * When image rotates, update rotate\n */\n const handleRotateImage = async () => {\n const {\n x, y, width, height,\n } = cropObjectRef.current;\n setRotatingInProcess(true);\n let prev = rotate;\n if (rotate === 180) {\n prev = -180;\n }\n const newRotate = prev + 90;\n setRotate(newRotate);\n setInitialCrop({\n unit: \"%\",\n x: 100 - (height + y),\n y: x,\n width: height,\n height: width,\n });\n handleSetRotatedUrl();\n };\n\n /** When in the crop mode, change the modal header */\n useEffect(() => {\n if (cropPreviewSrc) {\n setModalHeader(\"Crop Image\");\n } else {\n setModalHeader(\"Upload Image\");\n }\n }, [cropPreviewSrc]); // eslint-disable-line\n\n return (\n <>\n
    \n
    \n {originalSrc\n ? (\n \n )\n : (\n \n )}\n
    \n
    \n
    \n {originalSrc && !previewEditedImage && ()}\n
    \n setShowUploadImageModal(false)}\n >\n Cancel\n \n { savingImageLoadingState\n ? (\n \n )\n : (\n \n Save\n \n )}\n
    \n
    \n\n \n );\n}\n","var _circle, _g, _g2, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgUploadImageIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 54,\n height: 54,\n viewBox: \"0 0 54 54\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 27,\n cy: 27,\n r: 26,\n stroke: \"#19305A\",\n strokeWidth: 2\n })), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_5613_39577)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M35.0685 37.125L35.091 37.1475L35.1146 37.125H37.134C37.4301 37.1247 37.7139 37.0069 37.9232 36.7974C38.1325 36.5879 38.25 36.304 38.25 36.0079V17.9921C38.2479 17.6967 38.1297 17.4139 37.9209 17.2049C37.7121 16.9958 37.4294 16.8774 37.134 16.875H16.866C16.2495 16.875 15.75 17.3756 15.75 17.9921V36.0079C15.7521 36.3033 15.8703 36.5861 16.0791 36.7951C16.2879 37.0042 16.5706 37.1226 16.866 37.125H35.0685ZM18 30.375V19.125H36V34.875L24.75 23.625L18 30.375ZM18 33.5565L24.75 26.8065L32.8185 34.875H18V33.5565Z\",\n fill: \"#19305A\"\n }), /*#__PURE__*/React.createElement(\"circle\", {\n cx: 31.5088,\n cy: 23.084,\n r: 2.25,\n fill: \"#19305A\"\n }))), _g2 || (_g2 = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip1_5613_39577)\"\n }, /*#__PURE__*/React.createElement(\"circle\", {\n cx: 40.5,\n cy: 40.5,\n r: 7.875,\n fill: \"#19305A\",\n stroke: \"#19305A\",\n strokeWidth: 2.25\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M39.375 40.275H40.275V39.375V36C40.275 35.8757 40.3757 35.775 40.5 35.775C40.6243 35.775 40.725 35.8757 40.725 36V39.375V40.275H41.625H45C45.1243 40.275 45.225 40.3757 45.225 40.5C45.225 40.6243 45.1243 40.725 45 40.725H41.625H40.725V41.625V45C40.725 45.1243 40.6243 45.225 40.5 45.225C40.3757 45.225 40.275 45.1243 40.275 45V41.625V40.725H39.375H36C35.8757 40.725 35.775 40.6243 35.775 40.5C35.775 40.3757 35.8757 40.275 36 40.275H39.375ZM28.35 40.5C28.35 47.2104 33.7896 52.65 40.5 52.65C47.2104 52.65 52.65 47.2104 52.65 40.5C52.65 33.7896 47.2104 28.35 40.5 28.35C33.7896 28.35 28.35 33.7896 28.35 40.5Z\",\n fill: \"#EFF2F3\",\n stroke: \"#19305A\",\n strokeWidth: 1.8\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_5613_39577\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 27,\n height: 27,\n fill: \"white\",\n transform: \"translate(13.5 13.5)\"\n })), /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip1_5613_39577\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 27,\n height: 27,\n fill: \"white\",\n transform: \"translate(27 27)\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgUploadImageIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/uploadImageIcon.099005c1.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport UploadImage from \"./UploadImage\";\nimport { ReactComponent as CloseIcon } from \"../../../assets/images/sample-submission/circularCloseIcon.svg\";\nimport \"./UploadImageModal.css\";\n\nexport default function UploadImageModal(props) {\n const {\n setShowUploadImageModal,\n showUploadImageModal,\n setDisplayImageSrc,\n displayImageSrc,\n imageInfoRef,\n setImageInfoRef,\n imageFileType,\n editMode,\n updateNewSampleImage,\n } = props;\n\n const [modalHeader, setModalHeader] = useState(\"Upload Image\");\n\n return (\n }\n onCancel={() => setShowUploadImageModal(false)}\n centered\n destroyOnClose\n footer={null}\n wrapClassName=\"SampleSubmission_UploadImageModal\"\n >\n \n \n );\n}\n","import React, { useEffect, useRef, useState } from \"react\";\n\nimport { toast } from \"react-toastify\";\n\nimport UploadImageModal from \"../../../../../Common/ImageEditModal/UploadImageModal\";\n\nimport {\n getFileFromS3WithPresigned, deleteFileFromS3WithPresigned, uploadFileToS3WithPresigned, getFileNameAndExtensionFromPath, getFileNameWithTimestampRemoved,\n getFilePath,\n} from \"../../../../../../utils/helpers\";\n\nimport { updateEnvSampleImage } from \"../../../../../../actions/envAnalytics\";\n\nimport { ReactComponent as EditIcon } from \"../../../../../../assets/images/sample-submission/edit.svg\";\nimport { ReactComponent as UploadImageIcon } from \"../../../../../../assets/images/sample-submission/uploadImageIcon.svg\";\n\nimport \"./ReportViewImage.css\";\n\nexport default function ReportViewImage({\n locationID,\n imagePath,\n curReportInfo,\n // setImagePath,\n}) {\n const [showUploadImageModal, setShowUploadImageModal] = useState(false);\n const [loadingImage, setLoadingImage] = useState(false);\n const [displayImageSrc, setDisplayImageSrc] = useState(\"\");\n const imageInfoRef = useRef({\n originalUrl: \"\",\n editedUrl: \"\",\n file: \"\",\n });\n const imageFileType = useState(\"\");\n\n /**\n * Set image related info\n * @param {Object} info { originalUrl, editedUrl, file, crop, rotate }\n */\n const setImageInfoRef = (info) => {\n // console.log(\"setImageInfoRef\", info);\n imageInfoRef.current = { ...info };\n };\n\n const loadImageFromAWS = async (image_path) => {\n setLoadingImage(true);\n let imageUrl;\n if (image_path) {\n const fileBlobObj = await getFileFromS3WithPresigned([image_path], \"private\");\n const imageBlob = fileBlobObj ? fileBlobObj[image_path] : null;\n if (imageBlob) {\n imageUrl = window.URL.createObjectURL(imageBlob);\n imageFileType.current = imageBlob.type;\n }\n setDisplayImageSrc(imageUrl);\n setImageInfoRef({\n originalUrl: imageUrl ?? \"\",\n editedUrl: imageUrl ?? \"\",\n file: imageBlob ? new File([imageBlob], getFileNameWithTimestampRemoved(image_path), { type: imageBlob.type }) : null,\n });\n } else {\n setDisplayImageSrc(\"\");\n setImageInfoRef({\n originalUrl: \"\",\n editedUrl: \"\",\n file: null,\n });\n }\n setLoadingImage(false);\n };\n\n /**\n * Delete image on both backend and S3 bucket\n * 1. Send empty string to backend to update the sample's image path\n * 2. If backend updated successfully, then delete the image on S3\n * @returns\n */\n const handleDeleteImage = async () => {\n const payload = {\n ...curReportInfo.params,\n image_path: \"\",\n };\n const response = await updateEnvSampleImage(payload);\n if (!response.success) {\n toast.error(\"Image failed to update\");\n return false;\n }\n if (imagePath) {\n deleteFileFromS3WithPresigned([imagePath], \"private\");\n }\n // setImagePath(\"\");\n toast.success(\"Image updated successfully.\");\n return true;\n };\n\n /**\n * Upload the image to the target s3 bucket\n * @param {*} file the current image uploaded from local\n * @returns the aws api response and the file path\n */\n const addSampleImageToAWS = async (file) => {\n if (file) {\n const { name, ext } = getFileNameAndExtensionFromPath(file.name);\n const fileInfo = {\n file, folderPath: \"SampleSubmission/\", fileName: `${name}_${Date.now()}${ext}`, type: file.type,\n };\n const key = getFilePath(fileInfo);\n const fileBlob = await uploadFileToS3WithPresigned([fileInfo], \"private\");\n if (fileBlob && fileBlob[key]) {\n return { success: true, path: fileBlob[key].path };\n }\n } return { success: false };\n };\n\n /**\n * Update new image on both backend and S3\n * 1. If it is a \"delete\" action, then delete the image\n * 2. Update:\n * 2.1: upload to S3 and get the s3 image path\n * 2.2: send the s3 image path with current report infor to backend\n * 2.3: delete the old image on S3\n * @param {File} imageFile file of updated image\n * @param {Boolean} deleteImage boolean value which determine current update is delete or edit\n * @returns\n */\n const updateNewSampleImage = async (imageFile, deleteImage = false) => {\n if (deleteImage) {\n return handleDeleteImage();\n }\n\n const { success, path } = await addSampleImageToAWS(imageFile);\n if (!success) {\n toast.error(\"Image failed to upload to AWS\");\n return false;\n }\n const payload = {\n ...curReportInfo.params,\n image_path: path,\n };\n const response = await updateEnvSampleImage(payload);\n if (!response.success) {\n toast.error(\"Image failed to update\");\n return false;\n }\n if (imagePath) {\n deleteFileFromS3WithPresigned([imagePath], \"private\");\n }\n // setImagePath(path);\n toast.success(\"Image updated successfully.\");\n return true;\n };\n\n useEffect(() => {\n setImageInfoRef({\n originalUrl: \"\",\n editedUrl: \"\",\n file: null,\n });\n setDisplayImageSrc(\"\");\n if (imagePath && curReportInfo) {\n loadImageFromAWS(imagePath);\n }\n }, [locationID, imagePath, curReportInfo]); // eslint-disable-line\n\n const hideUploadImage = displayImageSrc || !curReportInfo || (curReportInfo && !curReportInfo.showUploadImage);\n return (\n <>\n setShowUploadImageModal(true)}\n >\n {(curReportInfo?.showUploadImage && !loadingImage) && (\n <>\n {displayImageSrc ? (\n \"sample\"\n ) : (\n \n )}\n {displayImageSrc && (\n setShowUploadImageModal(true)}\n >\n \n \n )}\n \n )}\n \n { imageInfoRef.current = { ...obj }; }}\n locationID={locationID}\n // eslint-disable-next-line react/jsx-boolean-value\n editMode={true}\n updateNewSampleImage={updateNewSampleImage}\n />\n \n\n );\n}\n","import React from \"react\";\nimport moment from \"moment\";\nimport { ReactComponent as StatusDotIcon } from \"../../../../../../assets/images/environment/statusPingDot.svg\";\nimport ReportViewImage from \"./ReportViewImage\";\nimport { PINS_SPEC_STYLE_MAP } from \"../../Constant\";\n\nexport default function ReportViewTitle({\n pin,\n imagePath,\n curReportInfo,\n setImagePath,\n}) {\n const {\n color, display_name, box_shadow_color,\n } = PINS_SPEC_STYLE_MAP[pin.specs_flag] ?? PINS_SPEC_STYLE_MAP.invalid;\n\n return (\n
    \n \n
    \n \n {pin.swab_number}\n \n \n {moment(pin.added_on).format(\"DD MMMM YYYY\")}\n \n
    \n \n \n {display_name}\n \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\n\nimport \"./ModalPageTitle.css\";\n\nconst ModalPageTitle = ({ children }) =>

    {children}

    ;\n\nexport default ModalPageTitle;\n","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgHoveredGarbageCan = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.334 2.99992H13.1673C13.4435 2.99992 13.6673 3.22378 13.6673 3.49992V3.83325C13.6673 4.10939 13.4435 4.33325 13.1673 4.33325H12.334V12.9999C12.334 13.1767 12.2637 13.3463 12.1387 13.4713C12.0137 13.5963 11.8441 13.6666 11.6673 13.6666H2.33398C2.15717 13.6666 1.9876 13.5963 1.86258 13.4713C1.73756 13.3463 1.66732 13.1767 1.66732 12.9999V4.33325H0.833985C0.557842 4.33325 0.333984 4.10939 0.333984 3.83325V3.49992C0.333984 3.22378 0.557842 2.99992 0.833984 2.99992H3.66732V0.999919C3.66732 0.823108 3.73756 0.653538 3.86258 0.528514C3.9876 0.40349 4.15717 0.333252 4.33398 0.333252H9.66732C9.84413 0.333252 10.0137 0.40349 10.1387 0.528514C10.2637 0.653538 10.334 0.823108 10.334 0.999919V2.99992ZM11.0007 4.33325H3.00065V12.3333H11.0007V4.33325ZM5.00065 1.66659V2.99992H9.00065V1.66659H5.00065Z\",\n fill: \"#7DCDED\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.0007 4.33325H3.00065V12.3333H11.0007V4.33325Z\",\n fill: \"#7DCDED\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgHoveredGarbageCan, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/hoveredGarbageCan.e85b286c.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useMemo } from \"react\";\n\nimport { ReactComponent as TrashIcon } from \"../../../assets/images/sample-submission/hoveredGarbageCan.svg\";\n\nexport default function SelectionListItem({\n location, selected, onClick, onDelete, extraFields, linkPatternFields,\n}) {\n const data = useMemo(() => {\n const fields = [...linkPatternFields, ...extraFields];\n const values = fields.reduce((acc, field) => {\n const val = location.sample_id_fields[field.json_field];\n acc[field.title_field] = val ?? \"\";\n return acc;\n }, {});\n return {\n ...values,\n \"Test Added\": location.test_list.length,\n };\n }, [linkPatternFields, extraFields, location]);\n\n return (\n
  • \n {Object.entries(data).map(([key, value]) => (\n

    \n {key}\n {\" \"}\n {value}\n

    \n ))}\n \n \n \n
  • \n );\n}\n","import axios from \"axios\";\n// eslint-disable-next-line\nimport { API_URL } from \"../utils/Constant\";\nimport { getUserCredentials } from \"../utils/common\";\nimport { getViewAsPerStatusCode } from \"../utils/helpers\";\n\n/**\n * Get a list of all submitted submissions (when submission_id is \"\"),\n * or detailed info of a submitted submission (when a non-empty submission_id is given)\n * @param {Number} page page number for the submitted submissions list\n * @param {String} submission_id unique id of each submission\n * @return {Object} {success, message, next_page_link, prev_page_link, total_page, result}\n */\nexport const getSubmittedSubmissionsInfo = async ({\n submission_id, page, submission_search = \"\", sample_search = \"\", date_from, date_to, user_selected_date_from, user_selected_date_to, submitted_by, sample_category = \"\",\n}, signal = null) => {\n try {\n const resp = await axios.get(`${API_URL}/samplesubmission/`, {\n params: {\n page,\n submission_search,\n sample_search,\n date_from,\n date_to,\n user_selected_date_from,\n user_selected_date_to,\n submission_id,\n submitted_by,\n sample_category,\n },\n signal,\n });\n const {\n message, next_page_link, prev_page_link, total_page, result, dates, submitted_by_lst,\n } = resp?.data;\n return {\n success: resp.data.message === \"Success\",\n message,\n next_page_link,\n prev_page_link,\n total_page,\n dates,\n result, // either list of submissions or detailed info (including all samples) of a submission\n submitted_by_lst,\n };\n } catch (e) {\n if (!submission_id) getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Get a list of all drafts (when submission_id is \"\"),\n * or detailed info of a draft submission (when a non-empty submission_id is given)\n * @param {String} submission_id Selector for the element\n * @return {Object} {success, message, result}\n */\nexport const getDraftSubmissionsInfo = async (submission_id = \"\") => {\n try {\n const resp = await axios.get(`${API_URL}/submissiondraft/`, {\n params: {\n submission_id,\n },\n });\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n result: resp.data.result, // either list of draft submissions, or single submission\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Get the customer address for the submission form\n * @param {String} customerID if logged out, get customer address from customerID\n * @return {Object} {success, contact_name, email, company, address, city, zip, state, telephone}\n */\nexport const getCustomerAddress = async (customerID, sample_category) => {\n try {\n const user = await getUserCredentials();\n\n const params = { side: sample_category };\n if (customerID !== undefined) {\n params.customer_id = customerID;\n }\n\n const resp = await axios.get(`${API_URL}/customerinfo/`, {\n params,\n });\n\n const result = {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n };\n\n result.address = { ...resp.data.result };\n\n if (customerID === undefined) {\n result.address.user_email = user.user_email ?? \"\";\n result.address.user_name = user.user_name ?? \"\";\n }\n\n return result;\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Get the sample field options for the submission form, includes {json_field, title_field, display} for each field\n * @param {Boolean} type environment or product\n * @return {Object} {success, sampleFields: {} }\n */\nexport const getSampleFields = async (type = \"product\") => {\n try {\n const resp = await axios.get(`${API_URL}/${type}fields/`);\n const {\n fields, delimeter,\n link_report,\n link_pattern_fields,\n sampleid_fields,\n } = resp?.data?.result;\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n fields,\n sampleid_fields,\n delimiterRegex: delimeter,\n link_report,\n link_pattern_fields,\n };\n } catch (e) {\n getViewAsPerStatusCode(e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Get dropdown suggestions and tests to autofill for diff input value combinations\n * @param {Object} sample {item: \"\", time: \"\", ...}\n * @param {AbortSignal} signal abort controller signal\n * @return {Object} {success, message, result: { item: [], time: [], best_by: [], tests: [], ...} }\n */\nexport const getDropdownSuggestionsAndTests = async (sample, signal, sample_category) => {\n try {\n const resp = await axios.post(`${API_URL}/ssautofill/`, { sample_category, sample }, { signal });\n\n return {\n success: resp.data.message === \"Success\",\n ...resp.data,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/** Get test suggestions for the analysis request part of submission form\n* @param {String} search the search input used to find suggestions\n* @param {String} customerID customer's id\n* @param {String} sampleCategory product/environment\n* @param {Boolean} displayNameOnly show only display names\n* @return {Object} {success, message, testList: [\"\"]}\n*/\nexport const getTestList = async (search, customerID, sampleCategory, displayNameOnly = false) => {\n try {\n const params = { search, side: sampleCategory, display_name_only: displayNameOnly ? \"True\" : \"False\" };\n if (customerID !== undefined) {\n params.customer_id = customerID;\n }\n\n const resp = await axios.get(`${API_URL}/testsuggestions/`, {\n params,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n testList: resp.data.result,\n };\n } catch (e) {\n getViewAsPerStatusCode(e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/** Get generated sample id based on the current field values\n* @param {Object} payload {submission_id, sample, editing_sample_id (if editing sample)}\n* @return {Object} {success, message, sample_id}\n*/\nexport const getSampleID = async (payload, signal) => {\n try {\n const resp = await axios.post(`${API_URL}/displaysampleid/`, {\n ...payload,\n }, { signal });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n sample_id: resp.data.result,\n };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Saves submission draft outside of sample list changes\n * @param {Object} payload {submissionName, poNumber, submissionID (except for the first save)}\n * @return {Object} {success, message, submissionID}\n */\nexport const saveDraft = async (payload) => {\n try {\n const user = await getUserCredentials();\n const resp = await axios.post(`${API_URL}/submissiondraft/`, {\n submitted_by: user.user_name || \"\",\n submission_name: payload.submissionName,\n po: payload.poNumber,\n submission_id: payload.submissionID || \"\",\n adding_sample: false,\n sample_category: payload.sample_category,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n submissionID: resp.data.submission_id,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Adds sample for that submission draft\n * @param {Object} payload {submissionName, poNumber, submissionID (except for the first save), sample}\n * @return {Object} {success, message, submissionID, sampleID}\n */\nexport const addSampleToDraft = async (payload) => {\n try {\n const user = await getUserCredentials();\n const resp = await axios.post(`${API_URL}/submissiondraft/`, {\n submitted_by: user.user_name || \"\",\n submission_name: payload.submissionName,\n po: payload.poNumber,\n submission_id: payload.submissionID || \"\",\n sample: payload.sample,\n test_list: payload.testList,\n fields: payload.savedFields,\n adding_sample: true,\n sample_category: payload.sample_category,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n submissionID: resp.data.submission_id,\n sampleID: resp.data.result,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Edits existing sample for that submission draft\n * @param {Object} payload {submissionName, poNumber, submissionID, oldSampleID, editedSample}\n * @return {Object} {success, message, submissionID, sampleID}\n */\nexport const editSampleInDraft = async (payload) => {\n try {\n const user = await getUserCredentials();\n const resp = await axios.patch(`${API_URL}/submissiondraft/`, {\n submitted_by: user.user_name || \"\",\n submission_name: payload.submissionName,\n po: payload.poNumber,\n submission_id: payload.submissionID,\n sample_id: payload.oldSampleID,\n sample: payload.editedSample,\n test_list: payload.testList,\n fields: payload.savedFields,\n sample_category: payload.sampleCategory,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n submissionID: resp.data.submission_id,\n sampleID: resp.data.result,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Deletes sample from submission draft\n * @param {Object} payload {submissionName, poNumber, submissionID, sampleID}\n * @return {Object} {success, message}\n */\nexport const deleteSampleFromDraft = async (payload) => {\n try {\n const resp = await axios.delete(`${API_URL}/submissiondraft/`, {\n data: {\n submission_name: payload.submissionName,\n po: payload.poNumber,\n submission_id: payload.submissionID || \"\",\n sample_id: payload.sampleID,\n sample_type: payload.sampleType,\n sample_category: payload.sampleCategory,\n },\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Deletes a draft from submission drafts list\n * @param {Object} submissionID draft's submission id\n * @return {Object} {success, message}\n */\nexport const deleteDraft = async (submissionID, sampleCategory) => {\n try {\n const resp = await axios.delete(`${API_URL}/submissiondraft/`, {\n data: {\n submission_id: submissionID || \"\",\n sample_id: \"\", // use the same api as deleteSample(), but should provide an empty sample_id here\n sample_category: sampleCategory,\n },\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Adds submission\n * @param {Object} payload {submissionName, poNumber, submissionID, sampleList}\n * @param {String} customerDetails if logged out, customerDetails will be {customerID, submittedBy, userEmail}, otherwise undefined\n * @return {Object} {success, message}\n */\n\nexport const submitForm = async (payload, customerDetails) => {\n try {\n const user = await getUserCredentials();\n\n const _payload = {\n submission_name: payload.submissionName,\n po: payload.poNumber,\n submission_id: payload.submissionID || \"\",\n samples: payload.sampleList,\n comment: payload.comment,\n sample_category: payload.sampleCategory,\n };\n\n if (customerDetails === undefined) {\n _payload.submitted_by = user.user_name || \"\";\n _payload.user_email = user.user_email || \"\";\n } else {\n const { customerID, submittedBy, userEmail } = customerDetails;\n _payload.customer_id = customerID || \"\";\n _payload.submitted_by = submittedBy || \"\";\n const firstEmail = userEmail ? userEmail.split(\",\")[0] : \"\";\n _payload.user_email = firstEmail.trim();\n }\n\n const resp = await axios.post(`${API_URL}/samplesubmission/`, {\n ..._payload,\n });\n\n return { success: resp.data.message === \"Success\", message: resp.data.message };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Adds samples to submission\n * @param {Object} payload {submissionID, sampleList, status, poNumber}\n * @return {Object} {success, message}\n */\nexport const addSamplesToSubmission = async (payload) => {\n try {\n const resp = await axios.patch(`${API_URL}/samplesubmissioneditdelete/`, {\n submission_id: payload.submissionID ?? \"\",\n po: payload.poNumber ?? \"\",\n submission_status: payload.status ?? \"\",\n samples: payload.sampleList ?? [],\n action: \"add-sample\",\n sample_category: payload.sampleCategory,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: \"Failed to add samples to submission\",\n };\n } catch (e) {\n return { success: false, message: \"Failed to add samples to submission\" };\n }\n};\n\n/**\n * Edits sample in submission\n * @param {Object} payload {submission_id, submission_status, sample_id, sample_type, new_sample_id?, new_sample_type?, added_tests?, deleted_tests?, image_path?}\n * @return {Object} {success, message}\n */\nexport const editSampleInSubmission = async (payload) => {\n try {\n const resp = await axios.patch(`${API_URL}/samplesubmissioneditdelete/`, {\n ...payload,\n action: \"edit-sample\",\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: \"Failed to edit sample\",\n };\n } catch (e) {\n return { success: false, message: \"Failed to edit sample\" };\n }\n};\n\n/**\n * Delete sample from submission\n * @param {String} submissionId\n * @param {String} status status flag for submission\n * @param {Object} sample\n * @return {Object} {success, message}\n */\nexport const deleteSampleFromSubmission = async (submissionID, status, sample, sample_category) => {\n try {\n const resp = await axios.patch(`${API_URL}/samplesubmissioneditdelete/`, {\n submission_id: submissionID,\n submission_status: status,\n sample_type: sample.sample_type,\n sample_id: sample.sample_id,\n action: \"delete-sample\",\n sample_category: sample.sample_category || sample_category,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: \"Failed to delete sample\",\n };\n } catch (e) {\n return { success: false, message: \"Failed to delete sample\" };\n }\n};\n\n/**\n * Delete submission\n * @param {String} submissionId\n * @param {String} status status flag for submission\n * @return {Object} {success, message}\n */\nexport const deleteSubmission = async (submissionID, status, sample_category) => {\n try {\n const resp = await axios.patch(`${API_URL}/samplesubmissioneditdelete/`, {\n submission_id: submissionID,\n submission_status: status,\n action: \"delete-submission\",\n sample_category,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: \"Failed to delete submission\",\n };\n } catch (e) {\n return { success: false, message: \"Failed to delete submission\" };\n }\n};\n\n/**\n * Update comment to submission\n * @param {Object} payload {submissionID, sampleList, status, poNumber}\n * @return {Object} {success, message}\n */\nexport const editCommentToSubmission = async (payload) => {\n try {\n const resp = await axios.patch(`${API_URL}/samplesubmissioneditdelete/`, {\n submission_id: payload.submission_id ?? \"\",\n submission_status: payload.submission_status ?? \"\",\n comment: payload.comment,\n action: \"edit-comment\",\n sample_category: payload.sample_category,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: \"Failed to add samples to submission\",\n };\n } catch (e) {\n return { success: false, message: \"Failed to add samples to submission\" };\n }\n};\n\n/**\n * Get a list of invited emails\n * @param {Object} payload\n * @param {String} type type of submission (env or product)\n * @return {Object} {success, message}\n */\nexport const getInviteEmails = async () => {\n try {\n const resp = await axios.get(`${API_URL}/thirdpartyinvitation/`);\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n result: resp.data.result,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Invite 3rd party\n * @param {Object} payload\n * @param {String} type type of submission (env or product)\n * @return {Object} {success, message}\n */\nexport const sendInviteEmails = async (payload) => {\n try {\n const resp = await axios.post(`${API_URL}/thirdpartyinvitation/`, {\n emails: payload.emails,\n message: payload.message,\n sample_category: payload.sample_category,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n result: resp.data.result,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n/**\n * Invite 3rd party\n * @param {Object} payload\n * @param {String} type type of submission (env or product)\n * @return {Object} {success, message}\n */\nexport const deleteInviteEmail = async (email) => {\n try {\n const resp = await axios.patch(`${API_URL}/thirdpartyinvitation/`, {\n email,\n action: \"delete\",\n });\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Check if the invited link is valid or not\n * @param {Object} payload\n * @return {Object} {success, message}\n */\nexport const checkValidLink = async (payload) => {\n try {\n const resp = await axios.get(`${API_URL}/thirdpartyvalidation/`, {\n params: {\n link: payload.link,\n email: payload.invited_email,\n user_payload: payload.user_payload,\n company_name: payload.company_name,\n },\n });\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n result: resp.data.result,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgBlueCloseIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 8,\n height: 8,\n viewBox: \"0 0 8 8\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M6.12326 0.933313L4.00059 3.05665L1.87659 0.932646C1.81308 0.87054 1.72768 0.83593 1.63885 0.836304C1.55002 0.836679 1.46491 0.872006 1.40192 0.934646L0.935257 1.40198C0.903311 1.43262 0.877843 1.46937 0.860364 1.51004C0.842885 1.55071 0.83375 1.59448 0.833501 1.63875C0.833253 1.68302 0.841895 1.72688 0.858916 1.76775C0.875938 1.80861 0.900991 1.84564 0.932591 1.87665L3.05592 3.99931L0.933258 6.12331C0.871239 6.18691 0.836749 6.27236 0.837248 6.36119C0.837747 6.45002 0.873195 6.53508 0.935924 6.59798L1.40259 7.06465C1.53992 7.20265 1.74659 7.19798 1.87726 7.06731L4.00126 4.94398L6.12392 7.06731C6.18752 7.12933 6.27298 7.16382 6.3618 7.16332C6.45063 7.16282 6.5357 7.12738 6.59859 7.06465L7.06593 6.59798C7.09783 6.56729 7.12324 6.53051 7.14067 6.48981C7.15809 6.44912 7.16716 6.40534 7.16735 6.36107C7.16753 6.3168 7.15883 6.27295 7.14175 6.23211C7.12467 6.19127 7.09957 6.15427 7.06792 6.12331L4.94392 3.99931L7.06792 1.87665C7.13003 1.81314 7.16464 1.72773 7.16427 1.6389C7.16389 1.55007 7.12857 1.46496 7.06593 1.40198L6.59926 0.935313C6.56798 0.903295 6.53066 0.877794 6.48947 0.860287C6.44828 0.842779 6.40402 0.833611 6.35926 0.833313C6.31538 0.833672 6.27201 0.84269 6.23162 0.85985C6.19124 0.877011 6.15464 0.901976 6.12392 0.933313H6.12326Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgBlueCloseIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/blueCloseIcon.60ac21a3.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgNextArrowIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 12,\n viewBox: \"0 0 12 12\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.78042 5.33327L5.20442 1.75726L6.14722 0.814453L11.3327 5.99993L6.14722 11.1853L5.20442 10.2425L8.78042 6.6666H0.666016V5.33327H8.78042Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgNextArrowIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/NextArrowIcon.59952ab1.svg\";\nexport { ForwardRef as ReactComponent };","import React, {\n useState, useEffect, useMemo, useRef,\n} from \"react\";\n\nimport { motion, LayoutGroup } from \"framer-motion/dist/framer-motion\";\nimport debounce from \"lodash/debounce\";\nimport Highlighter from \"react-highlight-words\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../Common/UIComponents/StyledTooltip\";\nimport EnvConfirmModal from \"../Analytics/Components/EnvConfirmModal\";\nimport ModalPageTitle from \"./ModalPageTitle\";\nimport SelectionListItem from \"./SelectionListItem\";\n\nimport { getTestList } from \"../../../actions/sampleSubmission\";\n\nimport addIconBlue from \"../../../assets/images/environment/addIconBlue.png\";\nimport { ReactComponent as CloseIcon } from \"../../../assets/images/sample-submission/blueCloseIcon.svg\";\nimport searchIcon from \"../../../assets/images/sample-submission/searchIcon.svg\";\n\nimport \"./AddEditTestsForm.css\";\n\nexport default function AddEditTestsForm({\n markedLocations,\n setMarkedLocations,\n extraFields,\n linkPatternFields,\n}) {\n const [selected, setSelected] = useState(Array.from(markedLocations.keys())[0]);\n const [search, setSearch] = useState(\"\");\n const [searched, setSearched] = useState(\"\"); // used for highlighted text after search\n const [testSuggestions, setTestSuggestions] = useState([]);\n const [isLoading, setIsLoading] = useState(true);\n const [clearTestSearch, setClearTestSearch] = useState(false);\n const [testsSelected, setTestsSelected] = useState({});\n // const [testInfoMap, setTestInfoMap] = useState(new Map());\n const [isSuggestionListVisible, setIsSuggestionListVisible] = useState(false);\n\n const [isDeletingConfirm, setIsDeletingConfirm] = useState({ isDeleting: false, location_id: null });\n\n const testSuggestionsScrollbar = useRef();\n\n const SEARCH_CHAR_LIMIT = 100;\n\n /** Get test suggestions based on search input */\n const apiGetTestSuggestions = async (searchInput) => {\n const { success, message, testList } = await getTestList(searchInput, undefined, \"environment\");\n if (success) {\n if (clearTestSearch) {\n setSearch(\"\");\n setClearTestSearch(false);\n }\n const test_map = new Map();\n testList.forEach((testObj) => {\n test_map.set(testObj.name, testObj);\n });\n // setTestInfoMap(test_map);\n setTestSuggestions(testList);\n setSearched(searchInput);\n if (testSuggestionsScrollbar.current) {\n testSuggestionsScrollbar.current.scrollerElement.scrollTo({\n top: 0,\n behavior: \"smooth\",\n });\n }\n } else {\n toast.error(message);\n }\n setIsLoading(false);\n };\n\n /**\n * Set selected location's test list initially\n */\n useEffect(() => {\n if (markedLocations.size === 0) return;\n const testByLocationIds = {};\n Array.from(markedLocations).forEach(([k, v]) => {\n testByLocationIds[k] = v.test_list;\n });\n setTestsSelected(testByLocationIds);\n if (selected && selected in testByLocationIds) {\n setSelected(selected);\n } else {\n setSelected(Array.from(markedLocations.keys())[0]);\n }\n }, [markedLocations]); // eslint-disable-line\n\n /** Get test suggestions when it mounted */\n useEffect(() => {\n apiGetTestSuggestions(\"\");\n }, []); // eslint-disable-line\n\n /** Add debouncing feature for the apiGetTestSuggestions function\n * @return {Function} apiGetTestSuggestions function with debouncing feature,\n * invoking apiGetTestSuggestions only after 500ms has passed after the last invocation.\n */\n const debouncedSearch = useMemo(() => debounce(async (searchInput) => {\n await apiGetTestSuggestions(searchInput);\n }, 500), []); // eslint-disable-line\n\n /** Cancel debouncing so after the component is unmounted, the debouncedSearch function will not be executed,\n and state will not be set causing an error. */\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n // eslint-disable-next-line consistent-return\n return () => {\n debouncedSearch.cancel();\n };\n }, [debouncedSearch]); // eslint-disable-line\n\n /** Call debounced search when search input is changed */\n const handleChangeSearch = (e) => {\n setSearch(e.target.value);\n debouncedSearch(e.target.value);\n };\n\n /** Search immediately after the user hits enter key */\n const handleHitEnter = (e) => {\n if (e.key === \"Enter\") {\n apiGetTestSuggestions(e.target.value);\n }\n };\n\n /**\n* Get text for test tooltip\n* @param {Array} display list of display values ex: [{ title: \"Method\", value: \"\"}]\n* @param {Boolean} replicated if test is replicated\n* @returns Text containing test method, reporting limit, turnaround time if they exist and the reason for why the button is disabled\n*/\n const toolTipText = (display, replicated) => {\n const textLines = [];\n if (replicated) { // disable test\n textLines.push(\"Disabled: Cannot add a replicate test to a sample that is replicated\");\n }\n display.forEach(({ title, value }) => {\n if (value) {\n textLines.push(`${title}: ${value}`);\n }\n });\n return textLines.join(\"\\n\");\n };\n\n /**\n * Update marked locations test list\n * @param {*} testsSelected\n */\n const updatedMarkedLocations = (selectedTests) => {\n const updated = new Map(Array.from(markedLocations));\n Object.entries(selectedTests).forEach(([location_id, tests]) => {\n const obj = updated.get(location_id);\n updated.set(location_id, {\n ...obj,\n test_list: tests,\n });\n });\n setMarkedLocations(updated);\n };\n\n /**\n * Add or remove a test from the selected tests\n * @param {String} test test name or test obj\n * @param {String} action If action is \"deselect\", then the test will be removed.\n * Otherwise, the test is added or removed depending on if the selected test set contains that test.\n * Clear all the selected tests\n */\n const toggleTestChoice = (_test, action) => {\n const testsSelectedCopy = { ...testsSelected };\n\n // Modified for Add/Edit test in Create Sampling Event Modal\n let test = _test;\n if (typeof test === \"object\") {\n test = _test.name;\n }\n if (action === \"deselect\" || (testsSelectedCopy[selected] ?? []).indexOf(test) > -1) {\n testsSelectedCopy[selected] = (testsSelectedCopy[selected] ?? []).filter((t) => t !== test);\n } else if (action === \"clear\") {\n testsSelectedCopy[selected] = [];\n } else {\n // eslint-disable-next-line no-lonely-if\n if (testsSelectedCopy[selected]) {\n testsSelectedCopy[selected] = [...testsSelectedCopy[selected], test];\n } else {\n testsSelectedCopy[selected] = [];\n }\n }\n\n setTestsSelected(testsSelectedCopy);\n updatedMarkedLocations(testsSelectedCopy);\n };\n\n /**\n * Handle delete associated test from selected location\n * @param {string} location_id\n */\n const handleDelete = (location_id) => {\n const updated = new Map(markedLocations);\n updated.delete(location_id);\n setMarkedLocations(updated);\n setIsDeletingConfirm({ isDeleting: false, location_id: null });\n };\n\n /**\n * Handler for onClicking delete location button\n * @param {string} location_id\n */\n const onPressDeleteSample = (location_id) => {\n if (markedLocations.size === 1) {\n toast.error(\"There must be atleast one location present\");\n return;\n }\n setIsDeletingConfirm({ isDeleting: true, location_id });\n };\n\n /**\n * Set test className\n * @param {*} disableSelection\n * @param {*} name\n * @returns\n */\n const analysisClassName = (disableSelection, name) => {\n let className = \"\";\n if (disableSelection) {\n className = \"disabled-test-suggestion\";\n } else if ((testsSelected[selected] ?? []).includes(name)) {\n className = \"selected-test-suggestion\";\n } else {\n className = \"unselected-test-suggestion\";\n }\n return className;\n };\n\n return (\n
    \n
    \n {`Selections(${markedLocations && markedLocations.size})`}\n \n
      \n {markedLocations && markedLocations.size > 0 && Array.from(markedLocations).map(([location_id, location]) => (\n setSelected(location_id)}\n onDelete={(e) => {\n e.stopPropagation();\n onPressDeleteSample(location_id);\n }}\n />\n ))}\n
    \n
    \n
    \n
    \n Analysis Request\n
    \n {isSuggestionListVisible && (\n <>\n
    \n \"search\n \n setIsSuggestionListVisible(false)}\n >\n ×\n \n
    \n\n

    \n Suggestions\n

    \n
    \n {!isLoading && (\n testSuggestions.length > 0 ? (\n \n
      \n {testSuggestions.map(({\n name, replicated, display,\n }) => {\n const disableTest = false; // no need to check the replicated flag here\n return (\n \n toggleTestChoice({ name, replicated, display })}\n className={analysisClassName(disableTest, name)}\n >\n \n \n \n );\n })}\n
    \n
    \n ) : (\n
    \n No tests found\n
    \n ))}\n
    \n \n )}\n \n \n \n
    \n

    {`Tests Selected (${testsSelected[selected] ? testsSelected[selected].length : 0})`}

    \n {\n e.preventDefault();\n e.stopPropagation();\n toggleTestChoice(\"\", \"clear\");\n }}\n >\n Clear All\n \n
    \n {!isSuggestionListVisible && (\n setIsSuggestionListVisible(true)}\n >\n \"Plus\n Add Tests\n \n )}\n
    \n \n {/* {!isLoading && (\n <> */}\n {testsSelected[selected] && testsSelected[selected].length > 0\n ? (\n \n \n {(testsSelected[selected] ?? []).map((name) => (\n \n \n
  • \n {name}\n
    toggleTestChoice(name, \"deselect\")}>\n \n
    \n
  • \n \n
    \n ))}\n
    \n
    \n )\n :
    No tests added
    }\n {/* \n )} */}\n
    \n
    \n
    \n
    \n {isDeletingConfirm.isDeleting && (\n setIsDeletingConfirm({ isDeleting: false, location_id: null }),\n () => handleDelete(isDeletingConfirm.location_id),\n ]}\n />\n )}\n
    \n );\n}\n","import React from \"react\";\n\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../Common/UIComponents/StyledTooltip\";\n\nimport { ReactComponent as NextArrowIcon } from \"../../../assets/images/environment/NextArrowIcon.svg\";\n\nexport default function CreateSamplingEventModalFooter({\n tabs,\n selectedTab,\n onCancel,\n onSubmit,\n onTabChange,\n disableNext,\n disableAddToCalendar,\n isSubmitLoading,\n}) {\n /**\n * Handles Previous button click\n * @param {Number} currentTabIndex current tab index\n */\n const handlePreviousTabChange = (currentTabIndex) => {\n const previousTabIndex = currentTabIndex - 1;\n if (previousTabIndex >= 0) {\n onTabChange(tabs[previousTabIndex]);\n }\n };\n\n /**\n * Handle Next button click\n * @param {Number} currentTabIndex current tab index\n */\n const handleNextTabChange = (currentTabIndex) => {\n const nextTabIndex = currentTabIndex + 1;\n if (nextTabIndex < tabs.length) {\n onTabChange(tabs[nextTabIndex]);\n }\n };\n\n if (tabs && tabs.length > 0 && selectedTab) {\n const currentTabIndex = tabs.indexOf(selectedTab);\n const isFirstTab = currentTabIndex === 0;\n const isLastTab = tabs.length - 1 === currentTabIndex;\n return (\n
    \n onCancel() : () => handlePreviousTabChange(currentTabIndex)}\n disabled={isLastTab && isSubmitLoading}\n >\n {isFirstTab ? \"Cancel\" : \"Previous\"}\n \n \n onSubmit() : () => handleNextTabChange(currentTabIndex)}\n disabled={disableNext.status || isSubmitLoading}\n loading={isLastTab && isSubmitLoading}\n >\n {isLastTab ? \"Submit\" : \"Next\"}\n {!isLastTab && }\n \n \n
    \n );\n }\n\n return (\n
    \n \n Cancel\n \n \n Add to Calendar\n \n
    \n );\n}\n","import React from \"react\";\n\nexport default function CreateSamplingEventModalTabs({\n tabs = [],\n selectedTab,\n onTabChange,\n disableSwitchFromTab = false,\n}) {\n const enabledTabsIndex = tabs.indexOf(selectedTab);\n\n return (\n
    \n {tabs.map((tab, i) => (\n onTabChange(tab)}\n >\n
    \n

    {tab}

    \n
    \n ))}\n
    \n );\n}\n","import React, { useEffect, useMemo } from \"react\";\n\nimport moment from \"moment\";\nimport Flatpickr from \"react-flatpickr\";\n\nimport \"flatpickr/dist/themes/light.css\";\nimport \"./CustomCalendar.css\";\n\nfunction CustomCalendar({\n options,\n containerClassName = \"\",\n pickerClassName = \"\",\n value,\n ...rest\n}, ref) {\n const isMounted = React.useRef(false);\n\n const defaultOptions = {\n plugins: [],\n inline: false,\n dateFormat: \"m/d/Y\",\n mode: \"single\",\n };\n\n useEffect(() => {\n if (!isMounted.current) {\n document.body.classList.add(\"CustomCalendar__Calendar\");\n isMounted.current = true;\n }\n\n return () => {\n document.body.classList.remove(\"CustomCalendar__Calendar\");\n };\n }, []);\n\n const hasError = useMemo(() => value && moment(value, \"MM/DD/YYYY\").isBefore(moment(), \"day\"), [value]);\n\n const flatpickrOptions = { ...defaultOptions, ...options };\n\n return (\n \n \n \n );\n}\n\nexport default React.forwardRef(CustomCalendar);\n","import {\n isArray, mergeWith, union, zipObject,\n} from \"lodash\";\nimport moment from \"moment\";\n\nexport const SAMPLE_SUBMISSION_MAXLENGTH = 200;\nconst DaysOfWeekOrder = {\n Sunday: 0,\n Monday: 1,\n Tuesday: 2,\n Wednesday: 3,\n Thursday: 4,\n Friday: 5,\n Saturday: 6,\n};\n\nexport const ExtraFieldValueType = {\n VALUES: \"VALUES\",\n OPTIONS: \"OPTIONS\",\n TEST_LIST: \"TEST_LIST\",\n};\n\n/**\n * sort dates\n * @param {Date[]} dateArr Date array, format \"MM/DD/YYYY\"\n * @param {Boolean} asc Ascending = true/Decending = false\n * @returns Sorted date array\n */\nexport const sortDates = (dateArr, asc = true) => {\n dateArr.sort((a, b) => {\n const i = moment(a, \"MM/DD/YYYY\").isAfter(moment(b, \"MM/DD/YYYY\"));\n if (!asc) {\n return i ? -1 : 1;\n }\n return i ? 1 : -1;\n });\n return dateArr;\n};\n\n/**\n * Get start date, end date and all week days starting from Sunday\n * @param {Date} date\n * @returns {Object} {startDate: ..., endDate: ..., datesInWeek: ...}\n */\nexport const getWeekDays = (date) => {\n const startOfWeek = moment(date, \"MM/DD/YYYY\").clone().startOf(\"week\");\n const datesInWeek = [];\n for (let i = 0; i < 7; i++) {\n datesInWeek.push(startOfWeek.clone().add(i, \"days\").format(\"MM/DD/YYYY\"));\n }\n return {\n datesInWeek,\n startDate: datesInWeek[0],\n endDate: datesInWeek[datesInWeek.length - 1],\n };\n};\n\n/**\n * Get recurring event date as human readable text\n * @param {Date[]} dates Array of dates\n * @param {String} frequency \"weekly\" | \"monthly\" | \"one-time\" | \"custom\"\n * @returns Human readable string of recurring event\n */\nexport const getRecurringEventReadableText = (dates, frequency) => {\n const result = {\n wordsToMark: [],\n text: \"\",\n };\n if (dates.length === 0) return result;\n\n switch (frequency) {\n case \"weekly\": {\n const endDate = dates.at(-1);\n const endDateStr = moment(endDate).format(\"MMM YYYY\");\n const days = dates.map((d) => moment(d).format(\"dddd\"));\n const weekdays = Array.from(new Set(days)).sort((a, b) => DaysOfWeekOrder[a] - DaysOfWeekOrder[b]);\n let weekdaystr = \"\";\n if (weekdays.length > 1) {\n weekdaystr = `${weekdays.slice(0, weekdays.length - 1).join(\", \")} and ${weekdays.at(-1)}`;\n } else {\n weekdaystr = weekdays[0];\n }\n return {\n wordsToMark: days,\n text: `Every week on ${weekdaystr} until ${endDateStr}`,\n };\n }\n case \"monthly\": {\n const endDate = dates.at(-1);\n const endDateStr = moment(endDate).format(\"MMM YYYY\");\n const ds = dates.map((d) => moment(d).format(\"Do\"));\n const days = Array.from(new Set(ds)).sort((a, b) => {\n // Extract the numeric part of each ordinal by parsing as an integer\n const numA = parseInt(a, 10);\n const numB = parseInt(b, 10);\n // Sort based on the numeric value\n return numA - numB;\n });\n let daystr = \"\";\n if (days.length > 1) {\n daystr = `${days.slice(0, days.length - 1).join(\", \")} and ${days.at(-1)}`;\n } else {\n daystr = days[0];\n }\n return {\n wordsToMark: days,\n text: `Every month on ${daystr} until ${endDateStr}`,\n };\n }\n case \"one-time\": {\n const date = dates[0];\n const d = moment(date).format(\"Do\");\n const mY = moment(date).format(\"MMM YYYY\");\n return {\n wordsToMark: [d],\n text: `${d} of ${mY}`,\n };\n }\n case \"custom\": {\n const endDate = dates.at(-1);\n const endDateStr = moment(endDate).format(\"MMM YYYY\");\n const datelist = dates.map((d) => moment(d).format(\"MMM Do\"));\n let datestr = \"\";\n if (datelist.length > 1) {\n datestr = `${datelist.slice(0, datelist.length - 1).join(\", \")} and ${datelist.at(-1)}`;\n } else {\n datestr = datelist[0];\n }\n return {\n wordsToMark: datelist,\n text: `${datestr} until ${endDateStr}`,\n };\n }\n default: return result;\n }\n};\n\n/**\n * Create object with empty string values for all keys and update object\n * @param {String[]} keys Array of keys\n * @param {Object} updatedObject Updated object\n */\nexport const populateObjectValues = (keys, updatedObject = {}, valueToFill = \"\") => {\n const obj = zipObject(keys, Array(keys.length).fill(valueToFill));\n return { ...obj, ...updatedObject };\n};\n\n/**\n * Merge and updates objects having array\n * @param {*} target object\n * @param {*} source object\n */\nexport function mergeObjectArrays(target, source) {\n return mergeWith(target, source, (objValue, srcValue) => {\n if (isArray(objValue)) {\n return union(objValue, srcValue);\n }\n return undefined;\n });\n}\n","import React, { useEffect, useRef } from \"react\";\n\nimport moment from \"moment\";\nimport Scrollbar from \"react-scrollbars-custom\";\n\nimport CustomCalendar from \"./CustomCalendar\";\n\nimport { sortDates } from \"../utils\";\n\nimport \"./CustomDateFrequencyForm.css\";\n\nexport default function CustomDateFrequencyForm({\n updateSamplingData,\n selectedDatesList,\n setSelectedDatesList,\n}) {\n const flatpickrRef = useRef();\n\n const options = {\n inline: true,\n mode: \"multiple\",\n minDate: moment().format(\"MM/DD/YYYY\"),\n // maxDate: moment().add(1, \"year\").format(\"MM/DD/YYYY\"),\n };\n\n useEffect(() => {\n updateSamplingData(selectedDatesList, \"custom\");\n }, []); // eslint-disable-line\n\n /**\n * Handles date change and sort before updating state\n * @param {Date[]} selectedDates selected dates\n */\n const onDateChange = (selectedDates) => {\n const fromDatePicker = (typeof selectedDates[0]) === \"object\";\n let sorted = sortDates(Array.from(selectedDates));\n if (fromDatePicker) { // if the selected dates are from the DatePicker event, then we need to convert the dates from object to a string\n sorted = sorted.map((dateObj) => moment(dateObj).format(\"MM/DD/YYYY\"));\n }\n setSelectedDatesList(sorted);\n updateSamplingData(sorted ?? [], \"custom\");\n };\n\n /**\n * Remove invalid date\n * @param {Number} index index for date\n */\n const removeInvalidDate = (index) => {\n const datelist = [...selectedDatesList];\n datelist.splice(index, 1);\n onDateChange(datelist);\n };\n\n const isSelectedDateEmpty = selectedDatesList.length === 0;\n\n return (\n
    \n
    \n Select dates to repeat testing\n
    \n \n
    \n
    \n \n
    \n Dates selected\n
      \n {!isSelectedDateEmpty ? selectedDatesList.map((date, index) => {\n const invalid = moment(date, \"MM/DD/YYYY\").isBefore(moment(), \"day\");\n return (\n
    • \n {date}\n {invalid && (\n removeInvalidDate(index)}\n >\n ×\n \n )}\n
    • \n );\n }) :
    • -
    • }\n
    \n
    \n
    \n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\n\nimport \"./WeekMonthCheckbox.css\";\n\nconst INITIAL_WEEKDAYS = {\n sunday: false,\n monday: false,\n tuesday: false,\n wednesday: false,\n thursday: false,\n friday: false,\n saturday: false,\n};\n\nconst INITIAL_MONTH_NUMBERS = Array(31).fill().reduce((acc, _, i) => {\n acc[(i + 1).toString()] = false;\n return acc;\n}, {});\n\nexport default function WeekMonthCheckbox({\n type = \"day\", // day | month\n onChange,\n allowMultiple = false,\n containerStyle = \"\",\n selectedDay,\n setSelectedDay,\n}) {\n const [values, setValues] = useState(type === \"day\" ? INITIAL_WEEKDAYS : INITIAL_MONTH_NUMBERS);\n\n useEffect(() => {\n if (allowMultiple && Array.isArray(selectedDay)) {\n const copy = { ...values };\n selectedDay.forEach((d) => {\n if (d in copy) {\n copy[d] = true;\n }\n });\n setValues(copy);\n }\n }, []); // eslint-disable-line\n\n /**\n * Handle check/select day\n * @param {Event} e Event\n * @param {string} day selected day\n */\n const handleSelectDay = (e, day) => {\n if (allowMultiple) {\n const valuesCopy = { ...values };\n valuesCopy[day] = e.target.checked;\n setValues(valuesCopy);\n const selectedValues = Object.entries(valuesCopy).reduce((acc, [value, checked]) => {\n if (checked) acc.push(value);\n return acc;\n }, []);\n onChange(selectedValues);\n } else if (selectedDay !== \"\" && selectedDay === day) {\n setSelectedDay(\"\");\n onChange([]);\n } else {\n setSelectedDay(day);\n onChange([day]);\n }\n };\n\n const renderCheckbox = () => Object.entries(values).map(([day, checked]) => {\n const displayValue = type === \"day\" ? day[0].toUpperCase() : day;\n return (\n
    \n handleSelectDay(e, day)}\n />\n \n {displayValue}\n \n
    \n );\n });\n\n return
    {renderCheckbox()}
    ;\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\n\nimport moment from \"moment\";\n\nimport CustomCalendar from \"./CustomCalendar\";\nimport WeekMonthCheckbox from \"./WeekMonthCheckbox\";\n\nimport \"./MonthFrequencyForm.css\";\n\nexport default function MonthFrequencyForm({\n allowMultiple = false,\n updateSamplingData,\n startDate,\n setStartDate,\n endDate,\n setEndDate,\n dayOfMonth,\n setDayOfMonth,\n}) {\n const [recurrences, setRecurrences] = useState(0);\n\n const flatPickerOptions = {\n plugins: [],\n dateFormat: \"m/d/Y\",\n mode: \"single\",\n minDate: moment().format(\"MM/DD/YYYY\"),\n // maxDate: moment().add(1, \"year\").format(\"MM/DD/YYYY\"),\n };\n\n /**\n * Find no. of recurrences\n */\n const getRecurrences = useCallback(() => {\n const start = moment(startDate, \"MM/DD/YYYY\");\n const end = moment(endDate, \"MM/DD/YYYY\");\n if (start.isAfter(end)) {\n return { recurrences: 0, dates: [] };\n }\n let count = 0;\n const dates = [];\n while (start <= end) {\n if (dayOfMonth.includes(start.date().toString().toLowerCase())) {\n dates.push(start.format(\"MM/DD/YYYY\"));\n count++;\n }\n start.add(1, \"day\");\n }\n return { recurrences: count, dates };\n }, [endDate, startDate, dayOfMonth]);\n\n useEffect(() => {\n const { recurrences: recur, dates } = getRecurrences();\n setRecurrences(recur);\n updateSamplingData(dates, \"monthly\");\n }, [getRecurrences]); // eslint-disable-line\n\n /**\n * Handles change of month\n * @param {string[]} value Array of selected month dates\n */\n const handleChange = (value) => {\n setDayOfMonth(value);\n };\n\n return (\n
    \n
    \n Start Day of repeat\n \n
    \n
    \n
    \n Start Date\n {\n setStartDate(date);\n if (endDate && moment(endDate, \"MM/DD/YYYY\").isBefore(moment(date, \"MM/DD/YYYY\"), \"day\")) {\n setEndDate(date);\n }\n }}\n options={flatPickerOptions}\n />\n
    \n
    \n End Date\n {\n if (startDate && moment(startDate, \"MM/DD/YYYY\").isAfter(moment(date, \"MM/DD/YYYY\"), \"day\")) return;\n setEndDate(date);\n }}\n options={{\n ...flatPickerOptions,\n minDate: startDate,\n }}\n />\n
    \n
    \n No of recurrences\n
    \n {recurrences}\n
    \n
    \n
    \n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCheckCircleIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 10,\n height: 10,\n viewBox: \"0 0 10 10\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5 9.99902C2.2385 9.99902 0 7.76052 0 4.99902C0 2.23752 2.2385 -0.000976562 5 -0.000976562C7.7615 -0.000976562 10 2.23752 10 4.99902C10 7.76052 7.7615 9.99902 5 9.99902ZM4.14792 6.64544C4.34319 6.84072 4.6598 6.84071 4.85505 6.64542L7.68305 3.81702C7.87826 3.62178 7.87825 3.30527 7.68303 3.11005C7.48779 2.91481 7.17123 2.91482 6.976 3.11008L4.5015 5.58502L3.4405 4.52402C3.24527 4.32879 2.92873 4.32879 2.7335 4.52402C2.53827 4.71926 2.53827 5.03579 2.7335 5.23102L4.14792 6.64544Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCheckCircleIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/CheckCircleIcon.0dcdf3b2.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState, useCallback } from \"react\";\n\nimport moment from \"moment\";\n\nimport CustomCalendar from \"./CustomCalendar\";\nimport WeekMonthCheckbox from \"./WeekMonthCheckbox\";\n\nimport \"./WeekFrequencyForm.css\";\n\nexport default function WeekFrequencyForm({\n allowMultiple = true,\n updateSamplingData,\n startDate,\n setStartDate,\n endDate,\n setEndDate,\n weekDays,\n setWeekDays,\n}) {\n const [recurrences, setRecurrences] = useState(0);\n const ref = React.useRef();\n\n const flatPickerOptions = {\n mode: \"single\",\n minDate: moment().format(\"MM/DD/YYYY\"),\n // maxDate: moment().add(1, \"year\").format(\"MM/DD/YYYY\"),\n };\n\n /**\n * Find no. of recurrences\n */\n const getRecurrences = useCallback(() => {\n const start = moment(startDate, \"MM/DD/YYYY\");\n const end = moment(endDate, \"MM/DD/YYYY\");\n if (start.isAfter(end)) {\n return { recurrences: 0, dates: [] };\n }\n let count = 0;\n const dates = [];\n while (start <= end) {\n if (weekDays.includes(start.format(\"dddd\").toLowerCase())) {\n dates.push(start.format(\"MM/DD/YYYY\"));\n count++;\n }\n start.add(1, \"day\");\n }\n return { recurrences: count, dates };\n }, [endDate, startDate, weekDays]);\n\n useEffect(() => {\n const { recurrences: recurr, dates } = getRecurrences();\n setRecurrences(recurr);\n updateSamplingData(dates, \"weekly\");\n }, [getRecurrences]); // eslint-disable-line\n\n /**\n * Handles change of week days\n * @param {string[]} value Array of selected days\n */\n const handleChange = (value) => {\n setWeekDays(value);\n };\n\n return (\n
    \n
    \n Start Date\n {\n const momentDate = moment(date);\n const formattedDate = momentDate.format(\"MM/DD/YYYY\");\n setStartDate(formattedDate);\n if (endDate && moment(endDate, \"MM/DD/YYYY\").isBefore(momentDate, \"day\")) {\n setEndDate(formattedDate);\n }\n }}\n options={flatPickerOptions}\n />\n
    \n
    \n Select day of repeat\n \n
    \n
    \n End date\n {\n if (startDate && moment(startDate, \"MM/DD/YYYY\").isAfter(moment(date), \"day\")) return;\n setEndDate(date);\n }}\n options={{\n ...flatPickerOptions,\n minDate: startDate,\n }}\n />\n No of Recurrences\n
    \n {recurrences}\n
    \n
    \n
    \n );\n}\n","import React from \"react\";\n\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport CustomDateFrequencyForm from \"./CustomDateFrequencyForm\";\nimport MonthFrequencyForm from \"./MonthFrequencyForm\";\nimport WeekFrequencyForm from \"./WeekFrequencyForm\";\n\nimport { ReactComponent as CheckCircleIcon } from \"../../../assets/images/environment/CheckCircleIcon.svg\";\n\nimport \"./FrequencyForm.css\";\n\nexport default function FrequencyForm({\n updateSamplingData,\n selectedRecurringType,\n setSelectedRecurringType,\n startDate,\n setStartDate,\n endDate,\n setEndDate,\n weekDays,\n setWeekDays,\n dayOfMonth,\n setDayOfMonth,\n selectedCustomDatesList,\n setSelectedCustomDatesList,\n}) {\n const TABSDATA = {\n weekly: {\n label: \"Weekly\",\n content: (\n )\n ,\n },\n monthly: {\n label: \"Monthly\",\n content: (\n \n ),\n },\n custom: {\n label: \"Custom Dates\",\n content: (\n \n ),\n },\n };\n\n /**\n * Handle frequency form tab change\n * @param {String} tabname tab name\n */\n const handleTabChange = (tabname) => {\n setSelectedRecurringType(tabname);\n };\n\n return (\n
    \n
    \n {Object.entries(TABSDATA).map(([key, tabdata]) => (\n handleTabChange(key)}\n >\n {selectedRecurringType === key && }\n {tabdata.label}\n \n ))}\n
    \n
    \n {TABSDATA[selectedRecurringType].content}\n
    \n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgDropDownChevron = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 10,\n height: 6,\n viewBox: \"0 0 10 6\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 1L5 5L9 1\",\n stroke: \"#FDFDFD\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgDropDownChevron, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/DropDownChevron.1bb06f11.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useCallback } from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\n// import { Checkbox } from \"antd\";\n\nimport \"./CustomCheckbox.css\";\n\nexport default function CustomCheckbox({\n location,\n markedLocations,\n locationCheckboxLoading,\n handleCheck,\n children,\n}) {\n const checked = markedLocations.has(location.location_id);\n\n const handleCheckbox = useCallback((e) => handleCheck(e, location), [handleCheck, location]);\n\n if (locationCheckboxLoading === location.location_id) {\n return ;\n }\n\n return (\n
    \n \n \n
    \n );\n}\n\n/*\n \n*/\n","import React, {\n useState, useRef, useEffect, useCallback,\n} from \"react\";\n\nimport { debounce } from \"lodash\";\nimport Scrollbar from \"react-scrollbars-custom\";\n\nimport { ReactComponent as DropdownArrow } from \"../../../assets/images/DropDownChevron.svg\";\n\nimport \"./ExtraFieldAutoComplete.css\";\n\nexport default function ExtraFieldsAutoComplete({\n allowClear,\n suggestions,\n value,\n onSelect,\n onSearch,\n onFocus,\n onBlur,\n maxLength,\n placeholder,\n charLimit,\n letInputExceedCharLimit,\n className,\n customArrowClassName,\n markedLocations,\n}) {\n const [inputValue, setInputValue] = useState(value || \"\");\n const [filteredSuggestions, setFilteredSuggestions] = useState(suggestions);\n const [showDropdown, setShowDropdown] = useState(false);\n const inputRef = useRef(null);\n const debouncedSearch = useCallback(debounce((event) => onSearch(event.target.value), 500), [markedLocations]);\n\n useEffect(() => {\n setFilteredSuggestions(\n suggestions.filter((suggestion) => suggestion.toLowerCase().includes(inputValue.toLowerCase())),\n );\n }, [inputValue, suggestions]);\n\n /**\n * Handles input change\n * @param {Event} e event\n */\n const handleInputChange = (e) => {\n e.persist();\n const newValue = e.target.value;\n if (!charLimit || letInputExceedCharLimit || newValue.length <= charLimit) {\n setInputValue(newValue);\n if (onSearch) debouncedSearch(e);\n }\n };\n\n /**\n * Handles focus on input\n */\n const handleFocus = () => {\n setShowDropdown(true);\n if (onFocus) onFocus();\n };\n\n /**\n * Handle input blur\n */\n const handleBlur = () => {\n setTimeout(() => setShowDropdown(false), 200); // Delay for selection handling\n if (onBlur) onBlur();\n };\n\n /**\n * Handle select from suggestion dropdown\n * @param {string} suggestion selected suggestion\n */\n const handleSelect = (suggestion) => {\n setInputValue(suggestion);\n debouncedSearch.cancel();\n if (onSelect) onSelect(suggestion);\n setShowDropdown(false);\n };\n\n /**\n * Clear input field\n */\n const handleClear = () => {\n setInputValue(\"\");\n debouncedSearch.cancel();\n if (onSearch) onSearch(\"\");\n };\n\n return (\n
    \n \n {allowClear && inputValue && (\n \n )}\n {!inputValue && filteredSuggestions.length > 0 && (\n \n )}\n {showDropdown && filteredSuggestions.length > 0 && (\n
    \n \n {filteredSuggestions.map((suggestion, index) => (\n handleSelect(suggestion)}\n >\n {suggestion}\n
    \n ))}\n \n
    \n )}\n \n );\n}\n","import React, { useState } from \"react\";\n\nimport whiteMagnifyIcon from \"../../../assets/images/white-magnifying-glass.png\";\n\nexport default function SelectLocationFormSearch({\n searchValueRef,\n fetchLocationEnvData,\n}) {\n const [search, setSearch] = useState(searchValueRef.current);\n\n const handleSearch = (value, triggerSearch = true) => {\n setSearch(value);\n if (triggerSearch || value.trim() === \"\") {\n searchValueRef.current = value;\n fetchLocationEnvData();\n }\n };\n\n return (\n
    \n handleSearch(e.target.value, false)}\n value={search}\n onKeyUp={(event) => {\n if (event.key === \"Enter\") {\n event.preventDefault();\n handleSearch(event.target.value);\n }\n }}\n />\n handleSearch(search)}\n >\n \n
    \n \n );\n}\n","import axios from \"axios\";\nimport moment from \"moment\";\n\nimport { API_URL, ZebraPinterApiKey, ZebraPinterTenant } from \"../utils/Constant\";\n\n/**\n * Data for calendar landing page\n * @param {*} payload date_range (optional), scheduled/sampled/inprocess/incomplete/in-spec/out-of-spec filter (optional)\n */\nexport const getEnvSchedule = async (startDate, endDate, specs_flag_filter = \"\", signal) => {\n try {\n const params = {\n date_from: startDate ?? \"\", // YYYY-MM-DD\n date_to: endDate ?? \"\", // YYYY-MM-DD\n specs_flag_filter, // \"0,1,2,3,4,5,6\",\n };\n const response = await axios.get(`${API_URL}/envschedule/`, { params, signal });\n\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\", canceled: e.code === \"ERR_CANCELED\" };\n }\n};\n\n/**\n * Env schedule data for reports\n * @param {String} location_id Location id\n */\nexport const getReportEnvSchedule = async (location_id, signal) => {\n try {\n const params = { location_id };\n const response = await axios.get(`${API_URL}/envschedule/`, { params, signal });\n\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\", canceled: e.code === \"ERR_CANCELED\" };\n }\n};\n\n/**\n * Create New Sampling Schedule\n * @param {*} payload\n * @returns\n */\nexport const postEnvSchedule = async (payload) => {\n try {\n const response = await axios.post(`${API_URL}/envschedule/`, { ...payload });\n\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Edit New Sampling Schedule\n * @param {*} payload\n * @returns\n */\nexport const patchEnvSchedule = async (payload) => {\n try {\n const response = await axios.patch(`${API_URL}/envschedule/`, { ...payload });\n\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Edit scheduling data using drag n drop method\n * @param {String} event_id event id\n * @param {String} submission_id submission id\n * @param {Date|String|Moment} new_schedule_date new date where event card is dropped\n * @returns\n */\nexport const patchDragUpdateSchedule = async (event_id, submission_id, new_schedule_date) => {\n const payload = {\n submission_id,\n event_id,\n new_schedule_date: moment(new_schedule_date).format(\"YYYY-MM-DD\"),\n date_edit: true,\n edit_recurring: false,\n action: \"calendar-edit\",\n };\n\n try {\n const response = await axios.patch(`${API_URL}/envschedule/`, { ...payload });\n\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Get sampling locaiton data for diff input value combinations\n * @param {Object} sample {item: \"\", time: \"\", ...}\n * @param {String} sample_category environment/product\n * @return {Object} {success, message, result: { item: [], time: [], best_by: [], tests: [], ...} }\n */\nexport const getSamplingLocationData = async (sample, location_id, sample_category = \"environment\", signal) => {\n try {\n const resp = await axios.post(`${API_URL}/ssautofill/`, { sample_category, sample, location_id }, { signal });\n\n return {\n success: resp.data.message === \"Success\",\n ...resp.data,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * List swab location list\n * @param {String} search Optional search text\n * @param {String} location_id Location id\n * @param {*} signal Abort signal\n */\nexport const getEnvSwabs = async (search, location_id, signal) => {\n try {\n const params = { search, location_id };\n const response = await axios.get(`${API_URL}/env_swabs/`, { params, signal });\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Delete Env Schedule\n * @param {String} event_id Event id\n * @param {Boolean} delete_recurring is deleting recurring event\n * @param {String} submission_id Submission id\n */\nexport const deleteEnvSchedule = async (event_id, delete_recurring, submission_id, action = \"calendar-delete\") => {\n try {\n const payload = {\n event_id,\n delete_recurring,\n submission_id, // !delete_recurring ? submission_id : undefined, // needed if 'delete_recurring' is false\n action,\n };\n if (!submission_id) delete payload.submission_id;\n const response = await axios.delete(`${API_URL}/envschedule/`, { data: payload });\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Mark/Unmark sample\n * @param {String} submission_id Submission id\n * @param {String} sample_id Sample id\n * @param {String} sample_type Sample type\n * @param {String} action Mark/Unmark\n */\nexport const marksampled = async (submission_id, sample_id, sample_type, action = \"Mark\") => {\n try {\n const data = {\n submission_id,\n sample: { sample_id, sample_type },\n action,\n };\n const response = await axios.patch(`${API_URL}/marksampled/`, data);\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const submitSamples = async (payload) => {\n try {\n const response = await axios.patch(`${API_URL}/marksampled/`, payload);\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, ...response.data };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Send the label file to the printer based on the serial number\n * @param {*} payload sn, zpl_file\n */\nexport const sendFileToPrinter = async (payload) => {\n try {\n const response = await axios.post(\"https://api.zebra.com/v2/devices/printers/send\", payload, { headers: { ApiKey: ZebraPinterApiKey, Tenant: ZebraPinterTenant } });\n\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n return { success: false, message: e.response?.data?.errorResponse?.message || \"Something went wrong.\" };\n }\n};\n","import React, {\n useCallback, useEffect, useMemo, useRef,\n} from \"react\";\n\nimport { pick } from \"lodash\";\nimport { Scrollbar } from \"react-scrollbars-custom\";\nimport {\n Table,\n AutoSizer,\n CellMeasurer,\n Column,\n CellMeasurerCache,\n} from \"react-virtualized\";\n\nimport NoResults from \"../../Common/NoResultsGIF\";\nimport StyledTooltip from \"../../Common/UIComponents/StyledTooltip\";\nimport CustomCheckbox from \"./CustomCheckbox\";\nimport ExtraFieldsAutoComplete from \"./ExtraFieldAutoComplete\";\nimport SelectLocationFormSearch from \"./SelectLocationFormSearch\";\n\nimport { ExtraFieldValueType, populateObjectValues } from \"../utils\";\n\nimport { getSamplingLocationData } from \"../../../actions/envCalendar\";\n\nimport pumpkinGIF from \"../../../assets/images/environment/pumpkin.gif\";\n\nimport \"./SelectLocationForm.css\";\nimport \"react-virtualized/styles.css\";\n\nexport default function SelectLocationForm({\n searchValueRef,\n markedLocations,\n setMarkedLocations,\n locationData,\n extraFields,\n linkPatternFields,\n showSearchbar = true,\n selectLocationFormLoader,\n isEditing,\n locationId,\n getExtraFieldData,\n updateExtraField,\n locationCheckboxLoading,\n setLocationCheckboxLoading,\n fetchLocationEnvData,\n}) {\n const isEditExtraFieldDataFetched = useRef(false);\n const tableRef = useRef();\n const controller = useRef();\n\n const cache = useMemo(() => new CellMeasurerCache({\n defaultHeight: 65,\n fixedHeight: true,\n }), []);\n\n /**\n * Handle scrolling of grid\n * @param {Event} e event\n */\n const handleScroll = (e) => {\n const { scrollTop, scrollLeft } = e;\n const table = tableRef.current;\n table.handleScrollEvent({ scrollTop, scrollLeft });\n };\n\n /**\n * Calls ssautofill/ api and returns extra field options and test list\n * @param {*} sampleData sample data\n * @param {*} location location data\n */\n const apiSSAutofill = async (sampleData, location) => {\n const abortController = new AbortController();\n if (controller.current) {\n controller.current.abort();\n }\n controller.current = abortController;\n\n const resp = await getSamplingLocationData(sampleData, location.location_id, \"environment\", controller.current.signal);\n\n if (controller.current?.signal?.aborted) {\n controller.current = null;\n return { fieldOptions: {}, test_list: [] };\n }\n\n if (resp && resp.success) {\n controller.current = null;\n const { test_list, ...rest } = resp.result;\n return { fieldOptions: rest, test_list: test_list ?? [] };\n }\n controller.current = null;\n return { fieldOptions: {}, test_list: [] };\n };\n\n /**\n * Set extra field dropdown data initially when it's editing or in the reports tab when locationId is passed to the component.\n * Calls the ssautofill/ api and updates -\n * 1. Selected locations sample_id_fields and test_list valuess\n * 2. Extra field options for selected locations initially, and if api doesn't return options,\n * it doesn't update the options field.\n * 3. Update the test list for each row, which was fetched from ssautofill/ api\n */\n const setExtraFieldsDropdown = useCallback(async (location) => {\n if ((isEditing || locationId) && markedLocations.has(location.location_id)) {\n const updatedMarkedLocations = new Map(Array.from(markedLocations));\n\n const linkFieldsToPick = linkPatternFields.map((f) => f.json_field);\n const linkFieldsValues = pick(location.sample_id_fields, linkFieldsToPick);\n\n const extraFieldKeys = extraFields.map((f) => f.json_field);\n const extraFieldValues = getExtraFieldData(ExtraFieldValueType.VALUES, location.location_id);\n const extras = populateObjectValues(extraFieldKeys, extraFieldValues);\n\n setLocationCheckboxLoading(location.location_id);\n const { fieldOptions, test_list: fieldTestList } = await apiSSAutofill({\n ...linkFieldsValues, ...extras,\n }, location);\n setLocationCheckboxLoading(null);\n\n // Update marked locations\n updatedMarkedLocations.set(location.location_id, {\n sample_id_fields: {\n ...linkFieldsValues, ...extras,\n },\n test_list: Array.from(new Set([...location.test_list, ...(fieldTestList ?? [])])),\n location_id: location.location_id,\n });\n\n // Update all extra fields options in a row, but skips if ssautofill/ doesn't return any value or fails\n if (Object.keys(fieldOptions).length > 0) {\n updateExtraField(ExtraFieldValueType.OPTIONS, location.location_id, fieldOptions);\n }\n\n // Updates test list for a row\n updateExtraField(ExtraFieldValueType.TEST_LIST, location.location_id, fieldTestList);\n\n setMarkedLocations(updatedMarkedLocations);\n }\n }, [isEditing, locationId, linkPatternFields, getExtraFieldData]); // eslint-disable-line\n\n /**\n * Initially call the setExtraFieldsDropdown() for calling the ssautofill/ api and setting dropdown values\n */\n useEffect(() => {\n if ((isEditing || locationId) && markedLocations.size && linkPatternFields.length > 0 && extraFields.length > 0 && !isEditExtraFieldDataFetched.current) {\n const promiseArr = [];\n markedLocations.forEach((location) => {\n promiseArr.push(setExtraFieldsDropdown(location));\n });\n Promise.all(promiseArr);\n isEditExtraFieldDataFetched.current = true;\n }\n }, [markedLocations, isEditing, locationId, linkPatternFields, extraFields]); // eslint-disable-line\n\n /**\n * Calls ssautofill/ and updates extra fields and test list on change of extra fields\n * @param {*} location location data\n * @param {*} extraFieldValues extra field values\n */\n const fetchAndUpdateExtraFields = async (location, linkFields, extraFieldValues, updateSelectedLocations = true) => {\n const linkFieldsToPick = linkFields.map((f) => f.json_field);\n const linkFieldsFromLocation = pick(location, linkFieldsToPick);\n\n const extraFieldKeys = extraFields.map((f) => f.json_field);\n const extras = populateObjectValues(extraFieldKeys, extraFieldValues);\n\n setLocationCheckboxLoading(location.location_id);\n const { fieldOptions, test_list: fieldTestList } = await apiSSAutofill({\n ...linkFieldsFromLocation, ...extras,\n }, location);\n setLocationCheckboxLoading(null);\n\n // Update extra field options and test list\n updateExtraField(ExtraFieldValueType.OPTIONS, location.location_id, fieldOptions);\n updateExtraField(ExtraFieldValueType.TEST_LIST, location.location_id, fieldTestList);\n\n const updatedMarkedLocations = new Map(markedLocations);\n /**\n * Update the map when\n * 1. Checkbox is on change (updateSelectedLocations = true)\n * 2. Checkbox is checked but other fields are changing (updateSelectedLocations = false and updatedMarkedLocations.has(location.location_id))\n */\n if (updateSelectedLocations || updatedMarkedLocations.has(location.location_id)) {\n updatedMarkedLocations.set(location.location_id, {\n sample_id_fields: {\n ...linkFieldsFromLocation, ...extras,\n },\n test_list: Array.from(new Set([...location.test_list, ...(fieldTestList ?? [])])),\n location_id: location.location_id,\n });\n }\n setMarkedLocations(updatedMarkedLocations);\n };\n\n /**\n * Handle checking and selecting location\n * 1. When checked, select location row and calls ssautofill/ api for updating extra fields\n * 2. When unchecked, disselect location and reset extra field options and test list for the row\n * @param {*} e Event\n * @param {*} location Location\n */\n const handleCheck = async (e, location) => {\n const updatedMarkedLocations = new Map(markedLocations);\n if (e.target.checked) {\n const extraFieldValues = getExtraFieldData(ExtraFieldValueType.VALUES, location.location_id);\n\n await fetchAndUpdateExtraFields(location, linkPatternFields, extraFieldValues);\n } else {\n updatedMarkedLocations.delete(location.location_id);\n setMarkedLocations(updatedMarkedLocations);\n updateExtraField(ExtraFieldValueType.OPTIONS, location.location_id, {});\n updateExtraField(ExtraFieldValueType.TEST_LIST, location.location_id, null);\n }\n };\n\n /**\n * Handle input/select in extra field on change\n * 1. Updates extra field value\n * 2. Calls ssautofill/ api with updates extra values\n * @param {*} value Value\n * @param {*} json_field json_field\n */\n const handleExtraFieldSelect = async (value, location, json_field) => {\n const extraFieldValues = getExtraFieldData(ExtraFieldValueType.VALUES, location.location_id);\n const extraFieldKeys = extraFields.map((f) => f.json_field);\n const updated = populateObjectValues(extraFieldKeys, extraFieldValues);\n if (!value) {\n updated[json_field] = \"\";\n } else {\n updated[json_field] = value;\n }\n updateExtraField(ExtraFieldValueType.VALUES, location.location_id, updated);\n\n await fetchAndUpdateExtraFields(location, linkPatternFields, updated, false);\n };\n\n const rowGetter = useCallback(({ index }) => locationData[index], [locationData]);\n\n return (\n
    \n {showSearchbar && (\n \n )}\n {selectLocationFormLoader &&
    }\n {!selectLocationFormLoader && (\n \n {(({ height, width }) => (\n \n \n (\n \n \n \n )}\n />\n {linkPatternFields.map((field, i) => (\n (\n \n \n
    \n {cellData}\n
    \n
    \n \n )}\n />\n ))}\n {extraFields.map((field) => (\n {\n const extraFieldOptions = getExtraFieldData(ExtraFieldValueType.OPTIONS, location.location_id);\n const options = extraFieldOptions[field.json_field] ?? [];\n // ? extraFieldOptions[field.json_field].map((op) => ({ label: op, value: op }))\n // : [];\n const extraFieldValues = getExtraFieldData(ExtraFieldValueType.VALUES, location.location_id);\n return (\n \n {/*
    */}\n {/* { }}\n label=\"\"\n labelDivClassName=\"SelectLocation__ExtraField__AutocompleteLabel\"\n inputID={`extra-autocomplete-input-${field.json_field}-${rowIndex}`}\n value={extraFieldValues[field.json_field]}\n suggestions={options}\n handleSelectOption={(value) => handleExtraFieldSelect(value.trim(), location, field.json_field)}\n onChange={(value) => handleExtraFieldSelect(value, location, field.json_field)}\n onErrorChange={() => { }}\n customClassName=\"SelectLocation__ExtraField__AutocompleteContainer\"\n placeholderText={field.title_field}\n alwaysShowDropdownIcon={false}\n /> */}\n \n {/*
    */}\n \n );\n }}\n />\n ))}\n {\n const testListFromSSAutoFill = getExtraFieldData(ExtraFieldValueType.TEST_LIST, location.location_id);\n const total = markedLocations.has(location.location_id) ? markedLocations.get(location.location_id).test_list.length : testListFromSSAutoFill ? testListFromSSAutoFill.length : location.num_tests; // eslint-disable-line\n return (\n \n \n
    \n {total}\n
    \n
    \n \n );\n }}\n />\n \n {locationData.length === 0 && (\n \n )}\n \n ))}\n
    \n )}\n
    \n );\n}\n\nfunction AutocompleteExtraField({\n extraFieldValues,\n field,\n options,\n location,\n handleExtraFieldSelect,\n markedLocations,\n}) {\n const handle = (value) => {\n handleExtraFieldSelect(value, location, field.json_field);\n };\n\n return (\n \n );\n}\n","import React from \"react\";\n\nexport default function TypeToggle({ types, selectedType, onChange }) {\n return (\n
    \n {types.map((type) => (\n onChange(type)}\n >\n {type}\n \n ))}\n
    \n );\n}\n","import React from \"react\";\n\nimport moment from \"moment\";\n\nimport CustomCalendar from \"./CustomCalendar\";\nimport FrequencyForm from \"./FrequencyForm\";\nimport ModalPageTitle from \"./ModalPageTitle\";\nimport TypeToggle from \"./TypeToggle\";\n\nimport \"./SetFrequenceForm.css\";\n\nconst FREQUENCY_TYPES = [\"recurring\", \"one-time\"];\n\nexport default function SetFrequenceForm({\n updateSamplingData,\n oneTimeDate,\n setOneTimeDate,\n selectedType,\n setSelectedType,\n selectedRecurringType,\n setSelectedRecurringType,\n startDate,\n setStartDate,\n endDate,\n setEndDate,\n weekDays,\n setWeekDays,\n dayOfMonth,\n setDayOfMonth,\n selectedCustomDatesList,\n setSelectedCustomDatesList,\n // selectedDay,\n // setSelectedDay,\n}) {\n const flatPickerOptions = {\n plugins: [],\n dateFormat: \"m/d/Y\",\n mode: \"single\",\n minDate: moment().format(\"MM/DD/YYYY\"),\n // maxDate: moment().add(1, \"year\").format(\"MM/DD/YYYY\"),\n };\n\n /**\n * Toggle type of frequency\n * @param {String} type recurring/one-time\n */\n const typeToggleOnChange = (type) => {\n setSelectedType(type);\n if (type === \"one-time\") {\n const today = new Date();\n setOneTimeDate(today);\n updateSamplingData([today], \"one-time\");\n }\n };\n\n return (\n
    \n Set up schedule for testing\n
    \n \n
    \n {selectedType === \"recurring\" && (\n \n )}\n {selectedType === \"one-time\" && (\n
    \n Select Date\n {\n setOneTimeDate(selectedDate);\n updateSamplingData([selectedDate], \"one-time\");\n }}\n options={flatPickerOptions}\n />\n
    \n )}\n
    \n );\n}\n","var _rect, _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgOnboardingClose = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\",\n fillOpacity: 0.01\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M15.1851 7.4L12.0011 10.585L8.81513 7.399C8.71987 7.30584 8.59176 7.25393 8.45851 7.25449C8.32527 7.25505 8.19761 7.30804 8.10313 7.402L7.40313 8.103C7.35521 8.14897 7.31701 8.20409 7.29079 8.2651C7.26457 8.3261 7.25087 8.39175 7.2505 8.45815C7.25012 8.52455 7.26309 8.59035 7.28862 8.65165C7.31415 8.71295 7.35173 8.7685 7.39913 8.815L10.5841 11.999L7.40013 15.185C7.3071 15.2804 7.25537 15.4086 7.25612 15.5418C7.25686 15.6751 7.31004 15.8027 7.40413 15.897L8.10413 16.597C8.31013 16.804 8.62013 16.797 8.81613 16.601L12.0021 13.416L15.1861 16.601C15.2815 16.694 15.4097 16.7458 15.543 16.745C15.6762 16.7443 15.8038 16.6911 15.8981 16.597L16.5991 15.897C16.647 15.851 16.6851 15.7958 16.7112 15.7347C16.7374 15.6737 16.751 15.608 16.7513 15.5416C16.7515 15.4752 16.7385 15.4095 16.7129 15.3482C16.6873 15.2869 16.6496 15.2314 16.6021 15.185L13.4161 11.999L16.6021 8.815C16.6953 8.71974 16.7472 8.59163 16.7466 8.45838C16.7461 8.32514 16.6931 8.19748 16.5991 8.103L15.8991 7.403C15.8522 7.35497 15.7962 7.31672 15.7344 7.29046C15.6727 7.2642 15.6063 7.25045 15.5391 7.25C15.4733 7.25054 15.4083 7.26407 15.3477 7.28981C15.2871 7.31555 15.2322 7.35299 15.1861 7.4H15.1851Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgOnboardingClose, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/OnboardingClose.3aba7009.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState } from \"react\";\n\nimport { isEmpty } from \"lodash\";\nimport Highlighter from \"react-highlight-words\";\nimport Scrollbar from \"react-scrollbars-custom\";\n\nimport StyledTooltip from \"../../Common/UIComponents/StyledTooltip\";\nimport ModalPageTitle from \"./ModalPageTitle\";\n\nimport { getRecurringEventReadableText, SAMPLE_SUBMISSION_MAXLENGTH } from \"../utils\";\n\nimport \"./SummaryForm.css\";\n\nexport default function SummaryForm({\n newSamplingEventData,\n setNewSamplingEventData,\n markedLocations,\n // linkPatternFields,\n sampleIDFields,\n hideSubmissionInput = false,\n}) {\n const [readableEventText, setReadableEventText] = useState({\n wordsToMark: [],\n text: \"\",\n });\n\n const setName = (text) => {\n setNewSamplingEventData((state) => ({ ...state, event_name: text }));\n };\n\n useEffect(() => {\n if (!isEmpty(newSamplingEventData) && !isEmpty(newSamplingEventData.schedule)) {\n const { dates, frequency } = newSamplingEventData.schedule;\n const { wordsToMark, text } = getRecurringEventReadableText(dates, frequency);\n setReadableEventText({ wordsToMark, text });\n }\n }, [newSamplingEventData]);\n\n return (\n
    \n
    \n {!hideSubmissionInput && (\n <>\n Name\n
    \n SAMPLE_SUBMISSION_MAXLENGTH ? \"invalid\" : \"\"}`}\n placeholder=\"Enter Submission Name\"\n onChange={(e) => setName(e.target.value)}\n value={newSamplingEventData.event_name}\n maxLength={SAMPLE_SUBMISSION_MAXLENGTH}\n />\n {newSamplingEventData.event_name !== \"\" && (\n setName(\"\")}\n >\n ×\n \n )}\n
    \n \n )}\n \n

    \n \n

    \n
    \n
    \n
    \n
    \n Swab Locations\n

    {`Added Locations (${markedLocations.size}) will be scheduled for testing`}

    \n
    \n \n \n \n \n {(sampleIDFields ?? []).map((field) => (\n \n ))}\n \n \n \n \n {Array.from(markedLocations).map(([location_id, sample]) => (\n \n {(sampleIDFields ?? []).map((field) => (\n \n ))}\n \n \n ))}\n \n
    {field.title_field}Tests
    {sample.sample_id_fields[field.json_field]}\n {sample.test_list && sample.test_list.length > 0 ? sample.test_list.join(\", \") : \"-\"}\n
    \n
    \n
    \n
    \n );\n}\n","import React, {\n useCallback, useEffect, useRef, useState,\n} from \"react\";\n\nimport { Modal } from \"antd\";\nimport {\n isEmpty, isEqual, pick, sortBy,\n} from \"lodash\";\nimport moment from \"moment\";\nimport { toast } from \"react-toastify\";\n\nimport AddEditTestsForm from \"./AddEditTestsForm\";\nimport CreateSamplingEventModalFooter from \"./CreateSamplingEventModalFooter\";\nimport CreateSamplingEventModalTabs from \"./CreateSamplingEventModalTabs\";\nimport FrequencyForm from \"./FrequencyForm\";\nimport SelectLocationForm from \"./SelectLocationForm\";\nimport SetFrequenceForm from \"./SetFrequenceForm\";\nimport SummaryForm from \"./SummaryForm\";\n\nimport { ExtraFieldValueType, SAMPLE_SUBMISSION_MAXLENGTH } from \"../utils\";\n\nimport { getEnvironmentFields } from \"../../../actions/envAnalytics\";\nimport { getEnvSwabs, postEnvSchedule } from \"../../../actions/envCalendar\";\n\nimport { ReactComponent as CloseIcon } from \"../../../assets/images/OnboardingClose.svg\";\n\nimport \"./CreateSamplingEventModal.css\";\n\nexport default function CreateSamplingEventModal({\n open,\n onCancel,\n modalTitle,\n tabs,\n selectedTab,\n onTabChange,\n disableSwitchFromTab,\n locationId,\n newSamplingEventData,\n setNewSamplingEventData,\n editingData,\n isEditing,\n setEditSchedulingPayload,\n onConfirmEdit,\n showSearchbar,\n allowEmptySubmissionName = false,\n hideSubmissionInput = false,\n setHasEditEventFrequencyChanged,\n}) {\n // Location form data\n const [markedLocations, setMarkedLocations] = useState(new Map());\n const searchValue = useRef(\"\");\n const [environmentFields, setEnvironmentFields] = useState(null);\n const [locationData, setLocationData] = useState([]);\n const [extraFields, setExtraFields] = useState([]);\n const [linkPatternFields, setLinkPatternFields] = useState([]);\n const [sampleIDFields, setSampleIDFields] = useState([]);\n const [linkPatternDelimiter, setLinkPatternDelimiter] = useState(null);\n const [locationCheckboxLoading, setLocationCheckboxLoading] = useState(null); // set location id to check which row is loading\n\n const [extraFieldValues, setExtraFieldValues] = useState(new Map()); // Map with location_id key and {} values (extrafield: value)\n const [extraFieldOptions, setExtraFieldOptions] = useState(new Map()); // Map with location_id key and {} values (extrafield: [])\n const [testListFromSSAutoFill, setTestListFromSSAutoFill] = useState(new Map()); // // Map with location_id key and []\n\n const [currentEventFreq, setCurrentEventFreq] = useState({ event_dates: [], event_frequency: \"\" });\n\n // Set Frequency form data\n const [oneTimeDate, setOneTimeDate] = useState(moment().format(\"MM/DD/YYYY\"));\n const [selectedType, setSelectedType] = useState(\"recurring\");\n // Frequency form\n const [selectedRecurringType, setSelectedRecurringType] = useState(\"weekly\");\n // Week frequency form\n const [startDate, setStartDate] = useState(moment().format(\"MM/DD/YYYY\"));\n const [endDate, setEndDate] = useState(moment().add(1, \"year\").format(\"MM/DD/YYYY\"));\n const [weekDays, setWeekDays] = useState([]);\n // Month frequency form\n const [dayOfMonth, setDayOfMonth] = useState([]);\n // Custom date\n const [selectedCustomDatesList, setSelectedCustomDatesList] = useState([]);\n // WeekMonthCheckbox\n const [selectedDayCheckbox, setSelectedDayCheckbox] = useState(\"\");\n // Submit loading\n const [isSubmitLoading, setIsSubmitLoading] = useState(false);\n\n const getPointsAbortController = useRef();\n\n // Loading states\n const [selectLocationFormLoader, setSelectLocationFormLoader] = useState(true);\n\n /**\n * Calls environmentfields/ api for getting the env fields\n */\n const apiGetEnvFields = async () => {\n const result = await getEnvironmentFields();\n\n if (result && result.success) {\n const {\n fields, index0, delimiter, link_pattern_fields, sampleid_fields, link_pattern,\n } = result;\n const regex = new RegExp(delimiter, \"g\");\n const linkfields = link_pattern_fields.map((f) => f.split(regex)).flat();\n const sampleidfields = sampleid_fields.map((f) => f.split(regex)).flat();\n return {\n allFields: fields, index0, delimiter, linkPatternFields: linkfields, sampleIDFields: sampleidfields, link_pattern,\n };\n }\n\n return {\n allFields: [], index0: \"\", delimiter: \"\", linkPatternFields: [], sampleIDFields: [], link_pattern: \"\",\n };\n };\n\n /**\n * Calls the env_swabs/ api for locations list\n */\n const apiGetEnvSwabs = async () => {\n const newController = new AbortController();\n if (getPointsAbortController.current) {\n getPointsAbortController.current.abort();\n }\n getPointsAbortController.current = newController;\n\n const resp = await getEnvSwabs(searchValue.current, locationId, getPointsAbortController.current.signal);\n\n if (newController.signal.aborted) {\n return { cancelled: true };\n }\n\n if (resp && resp.success) {\n getPointsAbortController.current = null;\n return { success: resp.success, locations: resp.result };\n }\n getPointsAbortController.current = null;\n return { success: false };\n };\n\n /**\n * Checks if the env_swabs/ locations list has array values in locations and\n * use it's value for sample id fields, extra field values and options\n * @param {*} location Location data\n * @param {*} linkFields link pattern fields array\n * @param {*} extras extra fields array\n */\n const getFieldData = (location, linkFields, extras) => {\n const samplefields = pick(location, [...linkFields, ...extras]);\n const sampleidvalues = {};\n const extravalues = {};\n const extraoptions = {};\n Object.entries(samplefields).forEach(([fieldname, value]) => {\n if (Array.isArray(value)) {\n const val = value.length > 0 ? value[0] : \"\";\n sampleidvalues[fieldname] = val;\n if (extras.includes(fieldname) && value.length > 0) {\n if (value.length === 1) extravalues[fieldname] = val;\n extraoptions[fieldname] = value;\n }\n } else {\n sampleidvalues[fieldname] = value;\n }\n });\n return {\n sample_id_fields: sampleidvalues,\n extravalues,\n extraoptions,\n };\n };\n\n /**\n * Get locations extra field assigned values, extra field dropdown options\n * and test list using the location id\n */\n const getExtraFieldData = useCallback((type, location_id) => {\n if (type === ExtraFieldValueType.VALUES) {\n return extraFieldValues.get(location_id) ?? {};\n }\n if (type === ExtraFieldValueType.OPTIONS) {\n return extraFieldOptions.get(location_id) ?? {};\n }\n if (type === ExtraFieldValueType.TEST_LIST) {\n return testListFromSSAutoFill.get(location_id) ?? null;\n }\n return {};\n }, [extraFieldValues, extraFieldOptions, testListFromSSAutoFill]);\n\n /**\n * Set extra fields values, extra field options and\n * test list using location id\n */\n const updateExtraField = useCallback((type, location_id, updatedValue) => {\n if (type === ExtraFieldValueType.VALUES) {\n setExtraFieldValues((state) => {\n const copy = new Map(state);\n copy.set(location_id, updatedValue);\n return copy;\n });\n }\n if (type === ExtraFieldValueType.OPTIONS) {\n setExtraFieldOptions((state) => {\n const copy = new Map(state);\n copy.set(location_id, updatedValue);\n return copy;\n });\n }\n if (type === ExtraFieldValueType.TEST_LIST) {\n setTestListFromSSAutoFill((state) => {\n const copy = new Map(state);\n copy.set(location_id, updatedValue);\n return copy;\n });\n }\n }, []);\n\n /**\n * Fetch locations from env_swabs/ and sample id fields from environmentfields/ api,\n * update extra fields\n */\n const fetchLocationEnvData = async () => {\n const envFields = environmentFields;\n\n setSelectLocationFormLoader(true);\n const envSwabs = await apiGetEnvSwabs();\n if (!envSwabs.success) {\n setSelectLocationFormLoader(false);\n return;\n }\n\n // Check for extra fields\n const extras = [];\n const extrafieldnames = [];\n envFields.allFields.forEach((field) => {\n if (envFields.sampleIDFields.includes(field.json_field) && !envFields.linkPatternFields.includes(field.json_field)) {\n extras.push({ json_field: field.json_field, title_field: field.title_field });\n extrafieldnames.push(field.json_field);\n }\n });\n\n // Arrange linked fields in link pattern order\n const fieldMap = new Map(envFields.allFields.map((field) => [field.json_field, { json_field: field.json_field, title_field: field.title_field }]));\n const linkFields = envFields.linkPatternFields.map((field_name) => fieldMap.get(field_name));\n\n const sampleIDCols = envFields.allFields.filter((field) => envFields.sampleIDFields.includes(field.json_field));\n\n setSampleIDFields(sampleIDCols);\n setExtraFields(extras);\n setLinkPatternFields(linkFields);\n setLinkPatternDelimiter(new RegExp(envFields.delimiter, \"g\"));\n\n // Update extra fields values using array values coming from env_swabs/ api\n const updatedExtraValues = [];\n const updatedExtraOptions = [];\n const arr = envSwabs.locations.map((item) => {\n const { sample_id_fields, extravalues, extraoptions } = getFieldData(item, envFields.linkPatternFields, extrafieldnames);\n if (!isEmpty(extravalues)) {\n updatedExtraValues.push([item.location_id, extravalues]);\n }\n if (!isEmpty(extraoptions)) {\n updatedExtraOptions.push([item.location_id, extraoptions]);\n }\n return {\n ...item,\n ...sample_id_fields,\n };\n });\n setLocationData(arr);\n setExtraFieldValues(new Map(updatedExtraValues));\n setExtraFieldOptions(new Map(updatedExtraOptions));\n setSelectLocationFormLoader(false);\n };\n\n /**\n * Calls environmentfields/ api\n */\n useEffect(() => {\n (async () => {\n const envFields = await apiGetEnvFields();\n setEnvironmentFields(envFields);\n })();\n }, []);\n\n /**\n * Calls fetchLocationEnvData() initially\n */\n useEffect(() => {\n (async () => {\n if (environmentFields && environmentFields.allFields.length > 0) {\n await fetchLocationEnvData();\n }\n })();\n }, [environmentFields]); // eslint-disable-line\n\n /**\n * Set event date and frequency states for calendar for edit\n */\n const setEventDatesForEdit = (dates = [], frequency = \"weekly\") => {\n const dateList = dates.map((d) => moment(d).format(\"MM/DD/YYYY\"));\n setSelectedType(\"recurring\");\n\n if (frequency === \"weekly\") {\n setSelectedRecurringType(\"weekly\");\n const start = dateList.at(0); // Let the first recurrence date as start\n const end = dateList.at(-1); // Let the last recurrence date as end\n const weeks = dateList.map((d) => moment(d, \"MM/DD/YYYY\").format(\"dddd\").toLowerCase());\n setStartDate(start);\n setEndDate(end);\n setWeekDays(weeks);\n setSelectedDayCheckbox(Array.from(new Set(weeks)));\n }\n\n if (frequency === \"monthly\") {\n setSelectedRecurringType(\"monthly\");\n const start = dateList.at(0); // Let the first recurrence date as start\n const end = dateList.at(-1); // Let the last recurrence date as end\n const days = dateList.map((d) => moment(d, \"MM/DD/YYYY\").date().toString().toLowerCase());\n setStartDate(start);\n setEndDate(end);\n setDayOfMonth(days);\n setSelectedDayCheckbox(Array.from(new Set(days)));\n }\n\n if (frequency === \"custom\") {\n setSelectedRecurringType(\"custom\");\n setSelectedCustomDatesList(dateList);\n }\n\n if (frequency === \"one-time\") {\n setSelectedType(\"one-time\");\n setOneTimeDate(dateList[0]);\n }\n };\n\n /**\n * When starting edit, set initial state for editing\n * Updating extra field value from sample_id_field of selected locations\n */\n useEffect(() => {\n if (isEditing && !isEmpty(editingData) && locationData.length > 0 && linkPatternDelimiter && sampleIDFields.length > 0) {\n const markSampleLocations = new Map();\n const extras = extraFields.map((e) => e.json_field);\n const samples = editingData.samples_list.map((sample) => {\n const fields = sampleIDFields.map((field) => field.json_field);\n const sample_id_fields = pick(sample, fields);\n const test_list = sample.test_list.map((t) => t.Test);\n const sampleData = {\n sample_id_fields,\n test_list,\n location_id: sample.location_id,\n };\n\n // Setting extra field values using data from api\n const extravalues = pick(sampleData.sample_id_fields, extras);\n updateExtraField(ExtraFieldValueType.VALUES, sample.location_id, extravalues);\n\n // Setting selected location data\n markSampleLocations.set(sample.location_id, sampleData);\n return sampleData;\n });\n setMarkedLocations(markSampleLocations);\n\n setEventDatesForEdit(editingData.event_dates, editingData.event_frequency);\n setCurrentEventFreq({ event_dates: editingData.event_dates, event_frequency: editingData.event_frequency });\n setNewSamplingEventData({\n samples,\n schedule: {\n dates: editingData.event_dates,\n frequency: editingData.event_frequency,\n },\n event_name: editingData.submission_name,\n submission_id: editingData.submission_id,\n event_id: editingData.event_id,\n scheduled_from: editingData.scheduled_from,\n date_edit: false,\n po: \"\",\n });\n }\n }, [isEditing, editingData, locationData, sampleIDFields, extraFields, linkPatternFields, linkPatternDelimiter]); // eslint-disable-line\n\n /**\n * Set initial data when location id passed to modal\n * Set initial data for sampling modal when opened in Reports tab\n */\n useEffect(() => {\n if (locationId && locationData.length > 0 && linkPatternFields.length > 0) {\n const location = locationData[0];\n const linkFields = linkPatternFields.map((field) => field.json_field);\n const extras = extraFields.map((e) => e.json_field);\n\n // Setting extra field values and options if exists in env_swabs/ api\n const { sample_id_fields, extravalues, extraoptions } = getFieldData(location, linkFields, extras);\n if (!isEmpty(extravalues)) {\n updateExtraField(ExtraFieldValueType.VALUES, locationId, extravalues);\n }\n if (!isEmpty(extraoptions)) {\n updateExtraField(ExtraFieldValueType.OPTIONS, locationId, extraoptions);\n }\n const sampleData = {\n sample_id_fields,\n test_list: location.test_list,\n location_id: locationId,\n };\n const map = new Map();\n map.set(locationId, sampleData);\n setMarkedLocations(map);\n }\n }, [locationId, locationData, extraFields, linkPatternFields, updateExtraField]);\n\n /**\n * checks if passed dates list has dates older than today\n * @param {Date[]} datelist Dates\n */\n const hasOlderDate = (datelist) => {\n let hasOlder = false;\n datelist.forEach((date) => {\n const selectedDate = moment(date);\n const today = moment();\n if (selectedDate.isBefore(today, \"day\")) {\n hasOlder = true;\n }\n });\n return hasOlder;\n };\n\n /**\n * Disable next button\n * @returns {status: boolean, reason: string}\n */\n const disableNext = () => {\n switch (selectedTab) {\n case \"Select Locations\": return {\n status: markedLocations.size === 0 || locationCheckboxLoading !== null,\n reason: \"Please select atleast one location\",\n };\n case \"Add/Edit Tests\": {\n if (markedLocations.size === 0) {\n return { status: true, reason: \"Please select atleast one location\" };\n }\n const isTestAvailable = Array.from(markedLocations).map(([, value]) => value.test_list.length > 0);\n return {\n status: isTestAvailable.includes(false),\n reason: \"Test list cannot be empty in selected samples\",\n };\n }\n case \"Select Frequency\": {\n const hasOlder = hasOlderDate(newSamplingEventData.schedule.dates ?? []);\n if (hasOlder) {\n return {\n status: hasOlder,\n reason: \"Please remove older dates\",\n };\n }\n return {\n status: newSamplingEventData.schedule.dates.length === 0 || newSamplingEventData.schedule.frequency === \"\",\n reason: \"Please select valid date and frequency\",\n };\n }\n case \"Summary\": {\n const isEmptyName = newSamplingEventData.event_name.trim() === \"\";\n const hasCrossedMaxLength = newSamplingEventData.event_name.length > SAMPLE_SUBMISSION_MAXLENGTH;\n let reason = \"\";\n if (isEmptyName) reason = \"Empty sampling event name not allowed\";\n if (hasCrossedMaxLength) reason = `Submission name can have maximum ${SAMPLE_SUBMISSION_MAXLENGTH} characters`;\n return {\n status: !allowEmptySubmissionName && (isEmptyName || hasCrossedMaxLength),\n reason,\n };\n }\n default: return false;\n }\n };\n\n /**\n * Disable add to calendar button\n */\n const disableAddToCalendar = () => newSamplingEventData.schedule.dates.length === 0 || newSamplingEventData.schedule.frequency === \"\";\n\n /**\n * Checks if frequency has changed when editing\n * @param {*} currentFreq Current frequency\n * @param {*} newFreq New Frequency\n * @returns Boolean\n */\n const hasFrequencyChanged = (currentFreq, newFreq) => {\n if (currentFreq.event_frequency !== newFreq.event_frequency) {\n return true;\n }\n const equal = isEqual(sortBy(currentFreq.event_dates), sortBy(newFreq.event_dates));\n return !equal;\n };\n\n /**\n * Handle submit form\n */\n const handleSubmit = async () => {\n const samples = [];\n markedLocations.forEach((value) => {\n samples.push(value);\n });\n\n if (isEditing) {\n const newEventData = { ...newSamplingEventData, samples };\n setNewSamplingEventData(newEventData);\n setEditSchedulingPayload(newEventData);\n const changed = hasFrequencyChanged(\n currentEventFreq,\n { event_dates: newEventData.schedule.dates, event_frequency: newEventData.schedule.frequency },\n );\n setHasEditEventFrequencyChanged(changed);\n onConfirmEdit();\n } else {\n setIsSubmitLoading(true);\n\n const newEventData = { ...newSamplingEventData, samples };\n setNewSamplingEventData(newEventData);\n delete newEventData.scheduled_from;\n\n const response = await postEnvSchedule(newEventData);\n if (response.success) {\n onCancel();\n toast.success(\"Sampling Plan has been created\");\n } else {\n toast.error(response.message);\n }\n setIsSubmitLoading(false);\n }\n };\n\n /**\n * Update frequency state and format for api payload\n * @param {Date[]} dates Dates\n * @param {\"one-time\" | \"weekly\" | \"monthly\" | \"custom\"} frequency Frequency\n */\n const updateSamplingSchedule = (dates, frequency) => {\n const updated = {\n ...newSamplingEventData,\n schedule: {\n dates: dates.map((d) => moment(d, \"MM/DD/YYYY\").format(\"YYYY-MM-DD\")),\n frequency,\n },\n };\n setNewSamplingEventData(updated);\n };\n\n /**\n * Render form based on tabs\n * @param {string} selected Selected tab\n */\n const renderTabbedContent = (selected) => {\n switch (selected) {\n case \"Select Locations\": return (\n \n );\n case \"Add/Edit Tests\": return (\n \n );\n case \"Select Frequency\": return (\n \n );\n case \"Summary\": return (\n \n );\n default: return <>;\n }\n };\n\n return (\n }\n className=\"CreateSamplingEventModal\"\n destroyOnClose\n maskClosable={false}\n >\n
    \n

    {modalTitle}

    \n \n
    \n
    \n {tabs && (\n \n )}\n {tabs && renderTabbedContent(selectedTab)}\n {!tabs && (\n \n )}\n
    \n \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgWhiteArrow = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 6,\n height: 10,\n viewBox: \"0 0 6 10\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 9L5 5L1 1\",\n stroke: \"#FDFDFD\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgWhiteArrow, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/whiteArrow.65342eba.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport moment from \"moment\";\nimport { ReactComponent as StatusDotIcon } from \"../../../../../../../assets/images/environment/statusPingDot.svg\";\nimport { PINS_SPEC_STYLE_MAP } from \"../../../Constant\";\n\nexport default function DateCard({\n report,\n index,\n activeReportIdx,\n setActiveReportIdx,\n}) {\n const { color } = PINS_SPEC_STYLE_MAP[report.specs_flag] ?? PINS_SPEC_STYLE_MAP.invalid;\n\n return (\n setActiveReportIdx(index)}\n >\n
    {moment(report.received_date).format(\"DD MMMM\")}
    \n
    \n
    \n {`${report.test_total_counts < 10 ? 0 : \"\"}${report.test_total_counts}`}\n :\n Tests\n
    \n
    \n \n
    \n
    \n );\n}\n","import React, { useRef, useState } from \"react\";\nimport { Swiper, SwiperSlide } from \"swiper/react\";\nimport { Navigation } from \"swiper\";\nimport DateCard from \"./DateCard\";\nimport { ReactComponent as Arrow } from \"../../../../../../../assets/images/environment/whiteArrow.svg\";\nimport \"./DatesSlider.css\";\n\nexport default function DatesSlider({\n reportList,\n defaultIndex,\n activeReportIdx,\n setActiveReportIdx,\n}) {\n const swiperRef = useRef();\n const [disablePrevBtn, setDisablePrevBtn] = useState(true);\n const [disableNextBtn, setDisableNextBtn] = useState(true);\n\n /**\n * Detects if we are at the beginning or end of swiper,\n * and disables next and prev buttons accordingly.\n * @param {Swiper} swiper instance of Swiper class\n */\n function handleButtonDisable(swiper) {\n if (swiper) {\n if (reportList.length < 3) {\n setDisablePrevBtn(true);\n setDisableNextBtn(true);\n } else {\n if (swiper.isBeginning) {\n setDisablePrevBtn(true);\n } else {\n setDisablePrevBtn(false);\n }\n if (swiper.isEnd) {\n setDisableNextBtn(true);\n } else {\n setDisableNextBtn(false);\n }\n }\n }\n }\n\n const handleClickNext = () => {\n if (swiperRef.current) {\n swiperRef.current.swiper.allowSlideNext = true;\n swiperRef.current.swiper.slideNext();\n }\n };\n const handleClickPrev = () => {\n if (swiperRef.current) {\n swiperRef.current.swiper.allowSlidePrev = true;\n swiperRef.current.swiper.slidePrev();\n }\n };\n\n return (\n <>\n \n \n
    \n handleButtonDisable(swiper)}\n onReachBeginning={(swiper) => handleButtonDisable(swiper)}\n onReachEnd={(swiper) => handleButtonDisable(swiper)}\n onToEdge={(swiper) => handleButtonDisable(swiper)}\n onClick={(swiper) => handleButtonDisable(swiper)}\n onSliderMove={(swiper) => handleButtonDisable(swiper)}\n onResize={(swiper) => handleButtonDisable(swiper)}\n onNavigationHide={(swiper) => handleButtonDisable(swiper)}\n className=\"env-report-view-date-slider\"\n >\n {reportList.map((report, index) => (\n \n \n \n ))}\n \n \n \n \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgWhiteCloseBlueBackground = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.00065 14.6667C4.31865 14.6667 1.33398 11.682 1.33398 8.00003C1.33398 4.31803 4.31865 1.33336 8.00065 1.33336C11.6827 1.33336 14.6673 4.31803 14.6673 8.00003C14.6673 11.682 11.6827 14.6667 8.00065 14.6667ZM8.20693 6.85101C8.09302 6.96496 7.90829 6.96496 7.79438 6.85101L6.32156 5.37767C6.20766 5.26373 6.02296 5.26372 5.90904 5.37764L5.37826 5.90842C5.26434 6.02233 5.26436 6.20704 5.3783 6.32093L6.85164 7.79375C6.96559 7.90766 6.96559 8.09239 6.85164 8.2063L5.3783 9.67912C5.26436 9.79302 5.26434 9.97772 5.37826 10.0916L5.90904 10.6224C6.02296 10.7363 6.20766 10.7363 6.32156 10.6224L7.79438 9.14904C7.90829 9.03509 8.09302 9.03509 8.20693 9.14904L9.67975 10.6224C9.79364 10.7363 9.97834 10.7363 10.0923 10.6224L10.623 10.0916C10.737 9.97772 10.7369 9.79302 10.623 9.67912L9.14967 8.2063C9.03572 8.09239 9.03572 7.90766 9.14967 7.79375L10.623 6.32093C10.7369 6.20704 10.737 6.02233 10.623 5.90842L10.0923 5.37764C9.97834 5.26372 9.79364 5.26373 9.67975 5.37767L8.20693 6.85101Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgWhiteCloseBlueBackground, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/WhiteCloseBlueBackground.b39909aa.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\n\nimport StyledTooltip from \"../../../../../Common/UIComponents/StyledTooltip\";\n\nimport \"./ReportActionButton.css\";\n\nexport default function ReportActionButton({\n title,\n description,\n icon,\n onClick,\n isActionComplete = false,\n showHoverStyles = true,\n loading = false,\n}) {\n return (\n
    \n {loading ? (\n
    \n \n
    \n ) : (\n <>\n
    \n {isActionComplete ? (\n \n

    \n {title}\n

    \n
    \n ) : (\n

    \n {title}\n

    \n )}\n {description &&

    {description}

    }\n
    \n
    \n {icon}\n
    \n \n )}\n
    \n );\n}\n","var _style, _circle, _circle2, _circle3;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst Svg3DotsScale = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _style || (_style = /*#__PURE__*/React.createElement(\"style\", null, \".spinner_b2T7{animation:spinner_xe7Q .8s linear infinite}.spinner_YRVV{animation-delay:-.65s}.spinner_c9oY{animation-delay:-.5s}@keyframes spinner_xe7Q{93.75%,100%{r:3px}46.875%{r:.2px}}\")), _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n className: \"spinner_b2T7\",\n cx: 4,\n cy: 12,\n r: 3\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n className: \"spinner_b2T7 spinner_YRVV\",\n cx: 12,\n cy: 12,\n r: 3\n })), _circle3 || (_circle3 = /*#__PURE__*/React.createElement(\"circle\", {\n className: \"spinner_b2T7 spinner_c9oY\",\n cx: 20,\n cy: 12,\n r: 3\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(Svg3DotsScale, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/3-dots-scale.048e3546.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPdfIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 13,\n height: 13,\n viewBox: \"0 0 13 13\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_5054_130356)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.834 1.08301H4.33398C3.73815 1.08301 3.25065 1.57051 3.25065 2.16634V8.66634C3.25065 9.26217 3.73815 9.74967 4.33398 9.74967H10.834C11.4298 9.74967 11.9173 9.26217 11.9173 8.66634V2.16634C11.9173 1.57051 11.4298 1.08301 10.834 1.08301ZM6.22982 5.14551C6.22982 5.59509 5.8669 5.95801 5.41732 5.95801H4.87565V7.04134H4.06315V3.79134H5.41732C5.8669 3.79134 6.22982 4.15426 6.22982 4.60384V5.14551ZM8.93815 6.22884C8.93815 6.67842 8.57523 7.04134 8.12565 7.04134H6.77148V3.79134H8.12565C8.57523 3.79134 8.93815 4.15426 8.93815 4.60384V6.22884ZM11.1048 4.60384H10.2923V5.14551H11.1048V5.95801H10.2923V7.04134H9.47982V3.79134H11.1048V4.60384ZM4.87565 5.14551H5.41732V4.60384H4.87565V5.14551ZM2.16732 3.24967H1.08398V10.833C1.08398 11.4288 1.57148 11.9163 2.16732 11.9163H9.75065V10.833H2.16732V3.24967ZM7.58398 6.22884H8.12565V4.60384H7.58398V6.22884Z\",\n fill: \"#19305A\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_5054_130356\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 13,\n height: 13,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPdfIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/pdfIcon.3119b381.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\n\nimport moment from \"moment\";\nimport { toast } from \"react-toastify\";\n\nimport { downloadFileFromS3WithPresigned } from \"../../../../../../../utils/helpers\";\n\nimport { ReactComponent as PDFIcon } from \"../../../../../../../assets/images/environment/pdfIcon.svg\";\n\nexport default function FileCard({ file }) {\n const fileName = file.path ? file.path.split(\"/\").pop() : \"\";\n const handleDownloadFile = async (path) => {\n // console.log(\"🚀 ~ handleDownloadFile ~ filePath:\", filePath);\n if (!path) {\n toast.error(\"Unable to download, no valid file path for this report!\");\n return;\n }\n const isPrivateS3Bucket = path.includes(\"COAs/\");\n if (isPrivateS3Bucket) {\n const source = path;\n const success = await downloadFileFromS3WithPresigned([source], \"private\", [fileName]);\n if (!success) {\n toast.error(\"Unable to download file\");\n }\n } else {\n const source = path;\n const success = await downloadFileFromS3WithPresigned([source], \"public\", [fileName]);\n if (!success) {\n toast.error(\"Unable to download file\");\n }\n }\n };\n return (\n handleDownloadFile(file.path)}\n >\n
    \n \n {fileName}\n
    \n {moment(new Date(file.received_date)).format(\"DD MMM YYYY\")}\n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgDownloadIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 19,\n height: 19,\n viewBox: \"0 0 19 19\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0.523438 17.5C0.523438 17.2239 0.747295 17 1.02344 17H18.0234C18.2996 17 18.5234 17.2239 18.5234 17.5V18.5C18.5234 18.7761 18.2996 19 18.0234 19H1.02344C0.747295 19 0.523438 18.7761 0.523438 18.5V17.5ZM10.5234 11.172L16.2409 5.45361C16.4361 5.25832 16.7527 5.25831 16.948 5.45358L17.6549 6.16047C17.8502 6.35572 17.8502 6.67229 17.6549 6.86755L9.87699 14.6464C9.68173 14.8417 9.36513 14.8417 9.16986 14.6464L1.39187 6.86843C1.19665 6.67322 1.1966 6.35673 1.39174 6.16145L2.09891 5.45377C2.29414 5.25841 2.6108 5.25834 2.80612 5.45362L8.52344 11.17V0.5C8.52344 0.223857 8.7473 0 9.02344 0H10.0234C10.2996 0 10.5234 0.223858 10.5234 0.5V11.172Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgDownloadIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/downloadIcon.9afb6734.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState } from \"react\";\nimport { toast } from \"react-toastify\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport NoResults from \"../../../../../../Common/NoResults\";\nimport { getAllFilePaths } from \"../../../../../../../actions/envAnalytics\";\nimport { ReactComponent as CloseButton } from \"../../../../../../../assets/images/environment/WhiteCloseBlueBackground.svg\";\nimport { ReactComponent as LoadingDots } from \"../../../../../../../assets/images/environment/3-dots-scale.svg\";\nimport pumpkin from \"../../../../../../../assets/images/environment/pumpkin.gif\";\nimport FileCard from \"./FileCard\";\nimport \"./ReportHistory.css\";\n\nexport default function ReportHistory({ locationID, setShowReportHistory }) {\n const [filePaths, setFilePaths] = useState([]);\n const [loadingNewContent, setLoadingNewContent] = useState(false);\n const [loadingHistory, setLoadingHistory] = useState(true);\n const [paginationInfo, setPaginationInfo] = useState({ currentPage: 1, totalPages: 1 });\n\n /**\n * Get file paths by page\n */\n async function apiGetAllFilePaths(page = 1) {\n setLoadingHistory(true);\n if (locationID) {\n const {\n success,\n message,\n paths,\n total_page,\n } = await getAllFilePaths({ location_id: locationID, page });\n if (success) {\n filePaths.push(...paths);\n setFilePaths(filePaths);\n setPaginationInfo({ currentPage: page, totalPages: total_page });\n } else {\n toast.error(message);\n }\n }\n setLoadingHistory(false);\n }\n\n /**\n * componentDidMount - make api call to get all report paths\n */\n useEffect(() => {\n apiGetAllFilePaths();\n }, []); // eslint-disable-line\n\n /**\n * On scroll stop, if scroll bar is at the bottom, load the next page of rows\n * @param {Event} e on scroll stop event\n */\n const handleScrollToBottom = (e) => {\n const handlePageChangeScroll = async () => {\n const {\n currentPage, totalPages,\n } = paginationInfo;\n const nextPage = currentPage < totalPages ? currentPage + 1 : 0;\n if (!loadingNewContent && nextPage) {\n setLoadingNewContent(true);\n await apiGetAllFilePaths(nextPage);\n setLoadingNewContent(false);\n }\n };\n const tolerance = 3;\n const bottom = Math.abs(Math.ceil(e.contentScrollHeight - e.scrollTop) - Math.ceil(e.clientHeight)) <= tolerance;\n if (bottom) {\n handlePageChangeScroll();\n }\n };\n\n const messageStyle = {\n position: \"absolute\",\n fontSize: \"16px\",\n color: \"rgb(117, 138, 185)\",\n fontFamily: \"Roboto\",\n marginTop: \"144px\",\n };\n\n return (\n
    \n
    \n Report History\n setShowReportHistory(false)}\n />\n
    \n
    \n {!loadingHistory && filePaths.length > 0\n && (\n handleScrollToBottom(e)}\n >\n {filePaths.map((file, index) => (\n \n ))}\n {loadingNewContent && ()}\n \n )}\n {!loadingHistory && filePaths.length === 0 && }\n
    \n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgHistoryIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 21,\n height: 20,\n viewBox: \"0 0 21 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.5234 0C16.0464 0 20.5234 4.477 20.5234 10C20.5234 15.523 16.0464 20 10.5234 20C5.00044 20 0.523438 15.523 0.523438 10H2.52344C2.52344 14.418 6.10544 18 10.5234 18C14.9414 18 18.5234 14.418 18.5234 10C18.5234 5.582 14.9414 2 10.5234 2C8.05944 2 5.85544 3.114 4.38844 4.865L6.52344 7H0.523438V1L2.97044 3.446C4.80344 1.336 7.50744 0 10.5234 0ZM11.5234 5V9.585L14.7664 12.828L13.3514 14.243L9.52344 10.413V5H11.5234Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgHistoryIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/historyIcon.0c92b68b.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPreviewIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 21,\n height: 20,\n viewBox: \"0 0 21 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.5234 20C5.00044 20 0.523438 15.523 0.523438 10C0.523438 4.477 5.00044 0 10.5234 0C16.0464 0 20.5234 4.477 20.5234 10C20.5234 15.523 16.0464 20 10.5234 20ZM9.14544 6.415C9.08525 6.37485 9.01531 6.35177 8.94304 6.34822C8.87078 6.34467 8.79891 6.36079 8.73508 6.39486C8.67126 6.42893 8.61787 6.47967 8.5806 6.54168C8.54333 6.60369 8.52357 6.67465 8.52344 6.747V13.253C8.52357 13.3253 8.54333 13.3963 8.5806 13.4583C8.61787 13.5203 8.67126 13.5711 8.73508 13.6051C8.79891 13.6392 8.87078 13.6553 8.94304 13.6518C9.01531 13.6482 9.08525 13.6252 9.14544 13.585L14.0244 10.333C14.0793 10.2965 14.1243 10.247 14.1554 10.1889C14.1865 10.1308 14.2028 10.0659 14.2028 10C14.2028 9.93409 14.1865 9.86921 14.1554 9.81111C14.1243 9.75302 14.0793 9.70351 14.0244 9.667L9.14444 6.415H9.14544Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPreviewIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/previewIcon.ee608ba5.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgArrowIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 6,\n height: 8,\n viewBox: \"0 0 6 8\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.27344 0.94L2.2201 4L5.27344 7.06L4.33344 8L0.333437 4L4.33344 0L5.27344 0.94Z\",\n fill: \"#6C7E8E\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgArrowIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/arrowIcon.f6d2d905.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\n\nimport { toast } from \"react-toastify\";\n// import RetestButton from \"./RetestButton\";\n\nimport { downloadFileFromS3WithPresigned } from \"../../../../../../utils/helpers\";\n\nimport { ReactComponent as DownloadIcon } from \"../../../../../../assets/images/environment/downloadIcon.svg\";\nimport { ReactComponent as HistoryIcon } from \"../../../../../../assets/images/environment/historyIcon.svg\";\nimport { ReactComponent as PreviewIcon } from \"../../../../../../assets/images/environment/previewIcon.svg\";\nimport \"./ResultActions.css\";\n\nexport default function ResultActions({\n // report,\n // identifier,\n handlePreviewFile,\n // handleAddSpecsButton,\n path,\n setShowReportHistory,\n}) {\n const handleDownloadFile = (filePath) => {\n if (!filePath || Object.keys(filePath).length < 1) {\n toast.error(\"Unable to download, no valid file path for this report!\");\n return;\n }\n\n // Loop through the entire filesPath object\n const files = Object.entries(filePath);\n\n let totalFiles = 0;\n let filesDownloaded = 0;\n Promise.all(files.map(async (fileData) => {\n const fileTempSet = new Set(fileData[1]);\n const fileTempArr = Array.from(fileTempSet);\n return Promise.all(fileTempArr.map(async (fileTemp) => {\n totalFiles++;\n const fileName = fileTemp.split(\"/\").pop();\n const isPrivateS3Bucket = fileTemp.includes(\"COAs/\");\n if (isPrivateS3Bucket) {\n const source = fileTemp;\n const success = await downloadFileFromS3WithPresigned([source], \"private\", [fileName]);\n if (success) {\n filesDownloaded++;\n }\n } else {\n const source = fileTemp;\n const success = await downloadFileFromS3WithPresigned([source], \"public\", [fileName]);\n if (success) {\n filesDownloaded++;\n }\n }\n }));\n })).then(() => {\n if (filesDownloaded === totalFiles) {\n toast.success(`Successfully downloaded ${filesDownloaded}/${totalFiles} files.`);\n } else {\n toast.warning(`Downloaded ${filesDownloaded}/${totalFiles} files.`);\n }\n });\n };\n\n return (\n
    \n
    \n 0 ? () => handlePreviewFile(path || \"\") : () => { }}\n />\n 0 ? () => handleDownloadFile(path || \"\") : () => { }}\n />\n setShowReportHistory(true)}\n />\n
    \n {/* {(report && report.specs_flag === \"3\")\n && (\n handleAddSpecsButton(identifier)}\n className=\"ResultActions__AddSpecsBtn\"\n >\n Add Specs\n \n )} */}\n {/* */}\n
    \n );\n}\n","import React from \"react\";\nimport moment from \"moment\";\nimport ReportViewHeader from \"../ReportViewHeader\";\nimport { checkPinIsPinned } from \"../../pinHelper\";\nimport { PINS_SPEC_STYLE_MAP, QUADRANT_STYLE_MAP } from \"../../Constant\";\nimport { ReactComponent as StatusDotIcon } from \"../../../../../../assets/images/environment/statusPingDot.svg\";\n\nexport default function ResultHeader({ report, pin }) {\n if (!report) {\n return null;\n }\n const { color, display_name } = PINS_SPEC_STYLE_MAP[report.specs_flag] ?? PINS_SPEC_STYLE_MAP.invalid;\n const { color: blockColor } = checkPinIsPinned(pin)\n ? QUADRANT_STYLE_MAP[pin.quadrant]\n : { color: undefined }; // red\n\n return (\n
    \n 0 ? moment(report.received_date).format(\"DD MMMM YYYY\") : \"-\"} subTitleColor=\"#26ABE1\" blockColor={blockColor} />\n
    \n
    \n \n \n {display_name}\n \n
    \n
    \n );\n}\n","import React from \"react\";\nimport { ReactComponent as Arrow } from \"../../../../../../assets/images/environment/arrowIcon.svg\";\n\nexport default function ResultTableActions({\n currentSlide,\n totalSlides,\n handleSlideChange,\n}) {\n return (\n
    \n
    \n handleSlideChange(-1)}\n >\n \n
    \n
    {`${currentSlide + 1}/${totalSlides}`}
    \n handleSlideChange(1)}\n >\n \n
    \n
    \n \n );\n}\n","/* eslint-disable no-nested-ternary */\nimport React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { PINS_SPEC_STYLE_MAP } from \"../../Constant\";\n\nexport default function ResultTable({\n data,\n}) {\n /** display the spec data only if there are spec values */\n const renderTableRow = (rowData, index, notemptyspec) => {\n const {\n test, test_spec, test_result, test_spec_flag,\n } = rowData;\n const { color, box_shadow_color } = PINS_SPEC_STYLE_MAP[test_spec_flag] ?? PINS_SPEC_STYLE_MAP.invalid;\n const outOfSpec = test_spec_flag === \"2\" || test_spec_flag === \"6\";\n return (\n \n
    {test}
    \n { notemptyspec\n && (\n \n
    {test_spec}
    \n \n )}\n
    {test_result}
    \n \n );\n };\n\n if (data !== undefined) {\n const notemptyspec = (data.map((item) => (item.test_spec === \"-\" ? \"true\" : \"false\"))).includes(\"false\");\n return (\n \n \n \n \n \n {notemptyspec && () }\n \n \n \n \n {data.map((item, idx) => (\n renderTableRow(item, idx, notemptyspec)\n ))}\n \n
    TestSpecsResults
    \n
    \n );\n } return (\n \n );\n}\n","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAddSamplingIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 25,\n height: 24,\n viewBox: \"0 0 25 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.5 5V19\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.5 12H19.5\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAddSamplingIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/AddSamplingIcon.44e6d762.svg\";\nexport { ForwardRef as ReactComponent };","/* eslint-disable no-nested-ternary */\n// import moment from \"moment\";\nimport React, { useState } from \"react\";\nimport { Carousel } from \"react-responsive-carousel\";\nimport ResultTableActions from \"./ResultTableActions\";\nimport ResultTable from \"./ResultTable\";\nimport \"./ResultTableCarousel.css\";\n\nexport default function ResultTableCarousel({\n specsData,\n // activeDate,\n}) {\n const [currentSlide, setCurrentSlide] = useState(0);\n\n if (!specsData) {\n return (
    );\n }\n\n const sortedSpecData = Object.entries(specsData).sort((a, b) => Date.parse(b[0]) - Date.parse(a[0]));\n\n const handleSlideChange = (change = 0) => {\n const newValue = currentSlide + change;\n if (newValue < sortedSpecData.length && newValue >= 0) {\n setCurrentSlide(currentSlide + change);\n }\n };\n\n if (sortedSpecData && sortedSpecData.length > 0) {\n return (\n
    \n 1}\n >\n {sortedSpecData.length > 0 && sortedSpecData.map(([date, data], idx) => (\n \n ))}\n \n {sortedSpecData.length > 1 && (\n \n )}\n
    \n );\n } return (\n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCalendarEnv = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.00065 0.666992V2.00033H9.00065V0.666992H10.334V2.00033H13.0007C13.3689 2.00033 13.6673 2.29881 13.6673 2.66699V13.3337C13.6673 13.7019 13.3689 14.0003 13.0007 14.0003H1.00065C0.632464 14.0003 0.333984 13.7019 0.333984 13.3337V2.66699C0.333984 2.29881 0.632464 2.00033 1.00065 2.00033H3.66732V0.666992H5.00065ZM12.334 7.33366H1.66732V12.667H12.334V7.33366ZM3.66732 3.33366H1.66732V6.00033H12.334V3.33366H10.334V4.66699H9.00065V3.33366H5.00065V4.66699H3.66732V3.33366Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCalendarEnv, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/CalendarEnv.3caa89d9.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEditSpecIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 19,\n height: 20,\n viewBox: \"0 0 19 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.125 17.5938H0.875C0.460156 17.5938 0.125 17.9289 0.125 18.3438V19.1875C0.125 19.2906 0.209375 19.375 0.3125 19.375H18.6875C18.7906 19.375 18.875 19.2906 18.875 19.1875V18.3438C18.875 17.9289 18.5398 17.5938 18.125 17.5938ZM3.53984 15.625C3.58672 15.625 3.63359 15.6203 3.68047 15.6133L7.62266 14.9219C7.66953 14.9125 7.71406 14.8914 7.74688 14.8563L17.682 4.92109C17.7038 4.89941 17.721 4.87366 17.7328 4.8453C17.7445 4.81695 17.7506 4.78656 17.7506 4.75586C17.7506 4.72516 17.7445 4.69477 17.7328 4.66642C17.721 4.63806 17.7038 4.61231 17.682 4.59063L13.7867 0.692969C13.7422 0.648438 13.6836 0.625 13.6203 0.625C13.557 0.625 13.4984 0.648438 13.4539 0.692969L3.51875 10.6281C3.48359 10.6633 3.4625 10.7055 3.45312 10.7523L2.76172 14.6945C2.73892 14.8201 2.74707 14.9493 2.78545 15.071C2.82384 15.1927 2.89132 15.3032 2.98203 15.393C3.13672 15.543 3.33125 15.625 3.53984 15.625ZM5.11953 11.5375L13.6203 3.03906L15.3383 4.75703L6.8375 13.2555L4.75391 13.6234L5.11953 11.5375Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEditSpecIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/EditSpecIcon.3536f2e2.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgTrashIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.3333 2.99967H13.1666C13.4427 2.99967 13.6666 3.22353 13.6666 3.49967V3.83301C13.6666 4.10915 13.4427 4.33301 13.1666 4.33301H12.3333V12.9997C12.3333 13.1765 12.263 13.3461 12.138 13.4711C12.013 13.5961 11.8434 13.6663 11.6666 13.6663H2.33325C2.15644 13.6663 1.98687 13.5961 1.86185 13.4711C1.73682 13.3461 1.66659 13.1765 1.66659 12.9997V4.33301H0.833252C0.55711 4.33301 0.333252 4.10915 0.333252 3.83301V3.49967C0.333252 3.22353 0.55711 2.99967 0.833252 2.99967H3.66659V0.999674C3.66659 0.822863 3.73682 0.653294 3.86185 0.52827C3.98687 0.403246 4.15644 0.333008 4.33325 0.333008H9.66659C9.8434 0.333008 10.013 0.403246 10.138 0.52827C10.263 0.653294 10.3333 0.822863 10.3333 0.999674V2.99967ZM10.9999 4.33301H2.99992V12.333H10.9999V4.33301ZM4.99992 1.66634V2.99967H8.99992V1.66634H4.99992Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgTrashIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/TrashIcon.b74e2b01.svg\";\nexport { ForwardRef as ReactComponent };","import React, {\n useState, useEffect, useRef, useCallback,\n} from \"react\";\n\nimport { Dropdown } from \"antd\";\nimport { isEmpty } from \"lodash\";\nimport moment from \"moment\";\nimport { toast } from \"react-toastify\";\n\nimport NoResultsGIF from \"../../../../../Common/NoResultsGIF\";\nimport CreateSamplingEventModal from \"../../../../components/CreateSamplingEventModal\";\nimport EnvConfirmModal from \"../../EnvConfirmModal\";\nimport DatesSlider from \"./DatesSlider/DatesSlider\";\nimport ReportActionButton from \"./ReportActionButton\";\nimport ReportHistory from \"./ReportHistory/ReportHistory\";\nimport ResultActions from \"./ResultActions\";\nimport ResultHeader from \"./ResultHeader\";\nimport ResultTableCarousel from \"./ResultTableCarousel\";\n\nimport { hasFeature, hasPermission } from \"../../../../../../utils/common\";\nimport { getRecurringEventReadableText } from \"../../../../utils\";\n\nimport { getSwabReports, getEnvSpec } from \"../../../../../../actions/envAnalytics\";\nimport { deleteEnvSchedule, getReportEnvSchedule, patchEnvSchedule } from \"../../../../../../actions/envCalendar\";\n\nimport { ReactComponent as LoadingDots } from \"../../../../../../assets/images/environment/3-dots-scale.svg\";\nimport { ReactComponent as AddSamplingIcon } from \"../../../../../../assets/images/environment/AddSamplingIcon.svg\";\nimport { ReactComponent as CalendarIcon } from \"../../../../../../assets/images/environment/CalendarEnv.svg\";\nimport { ReactComponent as EditSpecIcon } from \"../../../../../../assets/images/environment/EditSpecIcon.svg\";\nimport pumpkinGIF from \"../../../../../../assets/images/environment/pumpkin.gif\";\nimport { ReactComponent as TrashIcon } from \"../../../../../../assets/images/environment/TrashIcon.svg\";\n\nimport \"../ReportView.css\";\n\nconst tabList = [\n \"Select Locations\",\n \"Add/Edit Tests\",\n \"Select Frequency\",\n \"Summary\",\n];\n\nexport default function ReportResult({\n pinMap,\n pin,\n handlePreviewFile,\n handleAddSpecsButton,\n setImagePath,\n setCurReportInfo,\n editSpecs,\n loadingSpecs,\n}) {\n const [filePath, setFilePath] = useState(\"\");\n const [identifier, setIdentifier] = useState(\"\");\n const [reportList, setReportList] = useState([]);\n const [defaultIndex, setDefaultIndex] = useState(null);\n // const [specsStatus, setSpecsStatus] = useState(\"\");\n const [activeReportIdx, setActiveReportIdx] = useState(null);\n const [specsData, setSpecsData] = useState();\n const [resultTableCarouselKey, setResultTableCarouselKey] = useState(false);\n const [loadingReportList, setLoadingReportList] = useState(true);\n const [loadingSpecData, setLoadingSpecData] = useState(false); // eslint-disable-line\n const [showReportHistory, setShowReportHistory] = useState(false);\n const [openScheduleSampleModal, setOpenScheduleSampleModal] = useState(false);\n const [isSampleScheduled, setIsSampleScheduled] = useState(false);\n const [isEditingSamplingFrequency, setIsEditingSamplingFrequency] = useState(false);\n const [isDeletingSamplingFrequency, setIsDeletingSamplingFrequency] = useState(false);\n // const [paginationInfo, setPaginationInfo] = useState({ currentPage: 1, totalPages: 1 });\n const [isConfirmLoading, setIsConfirmLoading] = useState(false);\n\n // Create sample event states\n const [tabSequence, setTabSequence] = useState(tabList); // eslint-disable-line\n const [selectedTab, setSelectedTab] = useState(tabSequence.length ? tabList[0] : null);\n const [newSamplingEventData, setNewSamplingEventData] = useState({\n samples: [],\n schedule: {\n dates: [],\n frequency: \"\",\n },\n event_name: \"\",\n action: \"report-add\",\n scheduled_from: \"report-add\",\n po: \"\",\n });\n\n // Delete event\n const [deleteEventData, setDeleteEventData] = useState({\n event_id: \"\",\n delete_recurring: true,\n submission_id: \"\",\n });\n\n // Edit event\n const [isEditing, setIsEditing] = useState(false);\n const [editingData, setEditingData] = useState(null);\n const [editRecurring, setEditRecurring] = useState(true); // eslint-disable-line\n const [editSchedulingPayload, setEditSchedulingPayload] = useState(null);\n const [hasEditEventFrequencyChanged, setHasEditEventFrequencyChanged] = useState(false); // eslint-disable-line\n\n // Env schedule data\n const [scheduledDate, setScheduledDate] = useState([]);\n const [scheduleFrequency, setScheduleFrequency] = useState(\"\");\n const [loadingEnvSchedule, setLoadingEnvSchedule] = useState(false);\n\n // Report env signal\n const envControllerRef = useRef();\n\n /**\n * Calls envschedule/ api for reports\n */\n const apiReportEnvSchedule = useCallback(async () => {\n setLoadingEnvSchedule(true);\n const signal = new AbortController();\n if (envControllerRef.current) {\n envControllerRef.current.abort();\n }\n envControllerRef.current = signal;\n const result = await getReportEnvSchedule(pin.location_id, envControllerRef.current.signal);\n\n if (result && result.success && !isEmpty(result.result)) {\n const data = result.result;\n setScheduledDate(data.event_dates);\n setScheduleFrequency(data.event_frequency);\n setDeleteEventData((state) => ({ ...state, event_id: data.event_id }));\n setEditingData({\n event_dates: data.event_dates,\n event_frequency: data.event_frequency,\n submission_name: data.submission_name,\n submission_id: \"\",\n samples_list: [],\n event_id: data.event_id,\n });\n setIsSampleScheduled(true);\n } else {\n setScheduledDate([]);\n setScheduleFrequency(\"\");\n setDeleteEventData((state) => ({ ...state, event_id: \"\" }));\n setEditingData(null);\n setIsSampleScheduled(false);\n }\n envControllerRef.current = null;\n setLoadingEnvSchedule(false);\n }, [pin.location_id]);\n\n // GET envschedule/ for reports\n useEffect(() => {\n apiReportEnvSchedule();\n }, [apiReportEnvSchedule]);\n\n /**\n * Get report list everytime swab changes\n */\n useEffect(() => {\n async function apiGetSwabReports() {\n setShowReportHistory(false);\n setLoadingReportList(true);\n setActiveReportIdx(null);\n const { location_id, swab_number } = pin;\n // const { currentPage } = paginationInfo;\n const payload = {\n location_id,\n // page: currentPage,\n };\n const {\n success,\n reports,\n default_index,\n // specs_status,\n // total_page,\n } = await getSwabReports(payload);\n if (success) {\n setReportList(reports || []);\n setDefaultIndex(default_index);\n setActiveReportIdx(default_index);\n // setSpecsStatus(specs_status);\n // setPaginationInfo({ currentPage, totalPages: total_page });\n } else {\n toast.error(`Failed to fetch reports for Swab ${swab_number}`);\n }\n if (!reports || reports.length === 0) {\n setCurReportInfo({ params: null, showUploadImage: false });\n }\n setLoadingReportList(false);\n }\n apiGetSwabReports();\n }, [pin, pinMap]); // eslint-disable-line\n\n /**\n * Get specs whenever report list or report index changes\n */\n useEffect(() => {\n async function apiGetSpecs() {\n if (reportList.length > 0 && activeReportIdx !== null && reportList[activeReportIdx] !== undefined) {\n setLoadingSpecData(true);\n\n /* Clear image when switching between reports */\n setImagePath(\"\");\n setCurReportInfo(null);\n\n const {\n sample_id, location_id, received_date, sample_type,\n } = reportList[activeReportIdx];\n const params = {\n sample_id,\n location_id,\n sample_type,\n received_date: moment(new Date(received_date)).format(\"YYYY/MM/DD\"),\n };\n const result = await getEnvSpec(params);\n if (result.success) {\n setImagePath(result.spec.image ?? \"\");\n setSpecsData(result.spec.report_result);\n setFilePath(result.spec.path);\n setIdentifier(result.spec.identifier ?? \"\");\n setCurReportInfo({ params, showUploadImage: result.spec.report_result && Object.keys(result.spec.report_result).length > 0 });\n } else {\n setImagePath(\"\");\n setSpecsData(undefined);\n setFilePath(\"\");\n setIdentifier(\"\");\n setCurReportInfo(null);\n toast.error(`Failed to fetch results for sample on ${moment(new Date(received_date)).format(\"YYYY/MM/DD\")}`);\n }\n setLoadingSpecData(false);\n }\n setResultTableCarouselKey(!resultTableCarouselKey);\n }\n apiGetSpecs();\n }, [reportList, activeReportIdx]); // eslint-disable-line\n\n /**\n * Calls envschedule/ delete api\n */\n const apiDeleteEnvSchedule = async () => {\n const { event_id } = deleteEventData;\n const isRecurring = true; // editingData?.event_frequency !== \"one-time\" && delete_recurring;\n const response = await deleteEnvSchedule(event_id, isRecurring, null, \"report-delete\");\n if (response.success) {\n toast.success(\"Event deleted\");\n } else {\n toast.error(response.message);\n }\n };\n\n /**\n * Handle deleting event\n */\n const handleDeleteEvent = async () => {\n setIsConfirmLoading(true);\n await apiDeleteEnvSchedule();\n setIsDeletingSamplingFrequency(false);\n setDeleteEventData({\n event_id: \"\",\n delete_recurring: true,\n submission_id: \"\",\n });\n setIsConfirmLoading(false);\n await apiReportEnvSchedule();\n };\n\n /**\n * Refetch envschedule/ api for refreshing data\n */\n const refetch = async () => {\n await apiReportEnvSchedule();\n };\n\n /**\n * Resetting states when closing edit sampling modal\n */\n const onConfirmEditOpen = () => {\n // setOpenScheduleSampleModal(false);\n setIsEditingSamplingFrequency(true);\n };\n\n /**\n * Handle edit task\n */\n const handleEditSchedule = async () => {\n if (isEditing && editSchedulingPayload) {\n setIsConfirmLoading(true);\n const payload = {\n ...editSchedulingPayload,\n edit_recurring: true, // editingData?.event_frequency !== \"one-time\" && editRecurring,\n action: \"report-edit\",\n scheduled_from: \"report-add\",\n };\n const response = await patchEnvSchedule(payload);\n if (response.success) {\n setIsEditing(false);\n setEditRecurring(true);\n setEditSchedulingPayload(null);\n setIsEditingSamplingFrequency(false);\n setNewSamplingEventData({\n samples: [],\n schedule: {\n dates: [],\n frequency: \"\",\n },\n event_name: \"\",\n action: \"report-add\",\n po: \"\",\n });\n setEditingData(null);\n setTabSequence(tabList);\n setSelectedTab(tabList[0]);\n setOpenScheduleSampleModal(false);\n toast.success(\"Sampling Plan has been updated\");\n\n await refetch();\n } else {\n setIsEditingSamplingFrequency(false);\n toast.error(response.message);\n }\n setIsConfirmLoading(false);\n }\n };\n\n /**\n * Render Schedule Sampling Frequency button and dropdown when sampling is scheduled\n */\n const renderScheduleSampleFrequencyButton = () => {\n const { text: statusText } = getRecurringEventReadableText(scheduledDate, scheduleFrequency);\n const title = isSampleScheduled ? statusText : \"Schedule Sampling Frequency\";\n const description = isSampleScheduled ? undefined : \"Automate your testing\";\n const icon = isSampleScheduled ? : ;\n const onClick = (isSampleScheduled || loadingEnvSchedule) ? () => { } : () => setOpenScheduleSampleModal(true);\n\n const button = (\n \n );\n\n if (isSampleScheduled) {\n return (\n \n \n Edit Schedule\n
    \n ),\n onClick: () => {\n if (!isEmpty(editingData)) {\n setIsEditing(true);\n setOpenScheduleSampleModal(true);\n }\n },\n },\n {\n key: \"delete-schedule\",\n label: (\n
    \n \n Delete Schedule\n
    \n ),\n onClick: () => setIsDeletingSamplingFrequency(true),\n },\n ],\n }}\n placement=\"bottom\"\n trigger={[\"click\"]}\n >\n {button}\n \n );\n }\n\n return button;\n };\n\n /**\n * Renders Action buttons - Schedule Sampling Frequency and Edit Specs button\n */\n const renderActionButtons = () => {\n const canAddSpec = hasPermission(\"add_spec\");\n return (\n
    \n {hasFeature(\"environment_calendar\") ? renderScheduleSampleFrequencyButton() :
    }\n : null}\n onClick={!loadingSpecs ? () => editSpecs(true) : null}\n />\n
    \n );\n };\n\n const renderSamplingEventModal = (\n <>\n {openScheduleSampleModal && (\n {\n refetch(); // Refetch data\n setOpenScheduleSampleModal(false);\n setNewSamplingEventData({\n samples: [],\n schedule: {\n dates: [],\n frequency: \"\",\n },\n event_name: \"\",\n action: \"report-add\",\n scheduled_from: \"report-add\",\n po: \"\",\n });\n setEditingData(null);\n setIsEditing(false);\n setTabSequence(tabList);\n setSelectedTab(tabList[0]);\n }}\n modalTitle={isEditing ? \"Edit Sampling Plan\" : \"Add to Calendar\"}\n locationId={pin.location_id}\n tabs={tabSequence}\n selectedTab={selectedTab}\n onTabChange={(tab) => setSelectedTab(tab)}\n disableSwitchFromTab\n newSamplingEventData={newSamplingEventData}\n setNewSamplingEventData={setNewSamplingEventData}\n onConfirmEdit={onConfirmEditOpen}\n editingData={editingData}\n isEditing={isEditing}\n setEditSchedulingPayload={setEditSchedulingPayload}\n showSearchbar={false}\n allowEmptySubmissionName\n hideSubmissionInput\n setHasEditEventFrequencyChanged={setHasEditEventFrequencyChanged}\n />\n )}\n {isEditingSamplingFrequency && (\n setIsEditingSamplingFrequency(false),\n () => handleEditSchedule(),\n ]}\n loading={isConfirmLoading}\n />\n )}\n {isDeletingSamplingFrequency && (\n setIsDeletingSamplingFrequency(false),\n () => handleDeleteEvent(),\n ]}\n loading={isConfirmLoading}\n />\n )}\n \n );\n\n const report = reportList.length > 0 && activeReportIdx < reportList.length ? reportList[activeReportIdx] : null;\n if (loadingReportList) {\n return (\n
    \n
    \n \n
    \n
    \n );\n }\n\n if (reportList.length === 0) {\n return (\n <>\n
    \n {renderActionButtons()}\n \n
    \n \n
    \n
    \n {renderSamplingEventModal}\n \n );\n }\n\n return (\n <>\n
    \n {renderActionButtons()}\n \n
    \n {showReportHistory ? (\n \n ) : (\n <>\n \n \n
    \n \n
    \n \n )}\n
    \n
    \n {renderSamplingEventModal}\n \n );\n}\n","import React from \"react\";\nimport { ReactComponent as LoadingDots } from \"../../assets/images/common/LoadingDots.svg\";\nimport \"./ButtonWithLoading.css\";\n\nexport default function ButtonWithLoading({\n isLoading,\n defaultText,\n loadingText,\n onClick,\n loadingDotsWidth = 16,\n loadingDotsColor = \"#f9f9f9\",\n className = \"\",\n typeIsSubmit,\n disable,\n}) {\n return (\n {}}\n disabled={isLoading || disable}\n className={`ButtonWithLoading ${isLoading || disable ? \"ButtonWithLoading--loading\" : \"\"} ${className}`}\n >\n {\n isLoading ? (\n <>\n {loadingText && {loadingText}}\n \n \n ) : (\n <>\n {defaultText && {defaultText}}\n \n )\n }\n \n );\n}\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./ConfirmModal.css\";\nimport ButtonWithLoading from \"../../../../Common/ButtonWithLoading\";\n\nexport default class ConfirmExitModal extends React.Component {\n render() {\n const {\n headerText,\n bodyText,\n buttonText,\n buttonFunctions,\n saveLoading,\n } = this.props;\n\n return (\n \n
    \n
    {headerText}
    \n
    {bodyText}
    \n
    \n \n \n
    \n
    \n \n );\n }\n}\n","import React from \"react\";\nimport \"./SpecManagerInput.css\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\n\nclass SpecManagerInput extends React.Component {\n /**\n * Searches for invalid character or multiple periods in string. Returns appropriate error message if found. Else, returns that string is valid with null error message.\n * @param {String} string input value\n * @returns {Object} { isValid: true | false, errorMessage: String | null } isValid is true and errorMessage is null if string is valid\n */\nstatic getInputError = (string) => {\n if (!string) { // empty string is valid\n return { isValid: true, errorMessage: null };\n }\n\n const firstMatch = string.match(/[^0-9,\\\\.]/); // matches the first invalid (any character other than digit, comma, period) character\n if (firstMatch !== null) { // invalid char found\n let invalidChar = firstMatch[0];\n\n if (firstMatch[0] === \" \") {\n invalidChar = \"space\";\n }\n return { isValid: false, errorMessage: `Invalid input, remove ${invalidChar}` };\n }\n\n const moreThanOnePeriod = /\\.(?=[^\\\\.]*\\.+[^\\\\.]*)/.test(string); // true if there's more than one period\n if (moreThanOnePeriod) {\n return { isValid: false, errorMessage: \"Invalid input, multiple '.'\" };\n }\n\n return { isValid: true, errorMessage: null };\n};\n\nconstructor(props) {\n super(props);\n\n this.state = {\n // cursorPosition: 0,\n errorMessage: \"\",\n focused: false,\n };\n\n this.inputRef = React.createRef();\n}\n\ncomponentDidMount() {\n const { value } = this.props;\n\n const valid = SpecManagerInput.getInputError(value);\n this.updateErrorMessage(valid, false);\n}\n\n// onKeyPress = (e) => {\n// if (e.key === \"Enter\") {\n// e.preventDefault();\n// e.target.blur();\n// }\n// }\n\n// onKeyDown = (e) => {\n// const { onChange } = this.props;\n// if (e.key === \"Backspace\") {\n// // console.log(\"backspace\");\n// e.preventDefault();\n// const selectionPositionStart = e.target.selectionStart;\n// const selectionPositionEnd = e.target.selectionEnd;\n\n// const singleSelected = selectionPositionStart === selectionPositionEnd;\n\n// let text = e.target.value;\n\n// if (singleSelected && selectionPositionStart !== 0) {\n// text = text.slice(0, selectionPositionStart - 1) + text.slice(selectionPositionStart);\n// } else {\n// text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionEnd);\n// }\n\n// this.setState({\n// cursorPosition: singleSelected && selectionPositionStart !== 0 ? selectionPositionStart - 1 : selectionPositionStart,\n// }, () => {\n// const { cursorPosition } = this.state;\n// this.inputRef.current.selectionStart = cursorPosition;\n// this.inputRef.current.selectionEnd = cursorPosition;\n// });\n// onChange(text);\n\n// const valid = getInputError(text);\n// this.updateErrorMessage(valid);\n// } else if (e.key === \"Delete\") {\n// e.preventDefault();\n// const selectionPositionStart = e.target.selectionStart;\n// const selectionPositionEnd = e.target.selectionEnd;\n\n// const singleSelected = selectionPositionStart === selectionPositionEnd;\n\n// let text = e.target.value;\n\n// if (singleSelected) {\n// text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionStart + 1);\n// } else {\n// text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionEnd);\n// }\n\n// this.setState({\n// cursorPosition: selectionPositionStart,\n// }, () => {\n// const { cursorPosition } = this.state;\n// this.inputRef.current.selectionStart = cursorPosition;\n// this.inputRef.current.selectionEnd = cursorPosition;\n// });\n// onChange(text);\n\n// const valid = getInputError(text);\n// this.updateErrorMessage(valid);\n// }\n// }\n\n onKeyDown = (e) => {\n const { value } = this.props; // curr value in parent\n /* User inputted a character. Delete, Backspace, Tab, Shift, Cmd/Ctrl + v etc. won't go in this if condition. Shift/Caps Lock + char will go into this condition. */\n if (e.key.length === 1 && !(e.altKey || e.ctrlKey || e.metaKey)) {\n const validChar = e.key.match(/[0-9,\\\\.]/);\n let invalid = validChar === null;\n /* If the char is a period and there's already a period in value, it's invalid */\n if (validChar !== null && validChar[0] === \".\" && value.includes(\".\")) {\n invalid = true;\n }\n if (invalid) {\n e.preventDefault();\n }\n }\n\n if (e.key === \"Enter\") {\n e.preventDefault();\n e.target.blur();\n }\n }\n\n onChange = (e) => {\n const { onChange } = this.props;\n\n const text = e.target.value;\n const valid = SpecManagerInput.getInputError(text);\n\n onChange(text);\n this.updateErrorMessage(valid);\n }\n\n updateErrorMessage(validObj, focus = true) {\n if (validObj.isValid === true) {\n this.setState({\n errorMessage: \"\",\n });\n if (focus) window.setTimeout(() => this.inputRef.current.focus(), 0);\n }\n\n if (validObj.errorMessage !== null) {\n this.setState({\n errorMessage: validObj.errorMessage,\n });\n }\n }\n\n render() {\n const {\n placeHolder,\n value,\n width,\n height,\n additionalClassName,\n } = this.props;\n\n const { errorMessage, focused } = this.state;\n\n return (\n \n {\n this.setState({\n focused: true,\n });\n }}\n onBlur={() => {\n this.setState({\n focused: false,\n });\n }}\n />\n \n );\n }\n}\nexport default SpecManagerInput;\n","export const UNIT_OPTIONS = [\"None\", \"CFU\", \"CFU/Sponge\", \"CFU/Swab\", \"ppb\", \"ppm\", \"Swab\", \"Sponge\", \"%\"];\n\n/**\n * Remove commas from string, parseFloat to get a number\n * @param {String} value\n * @returns {Number} return number parse from string\n */\nexport const parseNumber = (value) => parseFloat(value.split(\",\").join(\"\"));\n\n/**\n * Check if value is a number\n * @param {String} value\n * @returns {Boolean} true if a number else false\n */\nexport const isNumber = (value) => !Number.isNaN(parseNumber(value));\n\n/**\n * Returns true if there is an invalid character or there are multiple periods in string.\n * @param {String} string input value\n * @returns {Boolean} true if valid, else false\n */\nexport const isValid = (string) => {\n const valid = /^([0-9,]|(\\.(?![^\\\\.]*\\.+[^\\\\.]*)))*$/.test(string); // only allow digits, commas, and 0 or 1 periods\n // const anyInvalid = /[^0-9,\\\\.]|\\.(?=[^\\\\.]*\\.+[^\\\\.]*)/.test(string); // true if any non-digit, non-comma, non-period character or if there's more than 1 period\n return valid;\n};\n\nexport const formatSpec = (dataOfSpecEditing) => dataOfSpecEditing.map((element) => {\n // const { test, test_type, specs } = element;\n const test_type = element.test_type;\n const specs = element.specs;\n // let test = (this.state.addingSpec ? element.Test : element.test)\n const test = element.test;\n let min = \"\";\n let max = \"\";\n let unit = \"\";\n if (test_type === \"range\") {\n if ((specs[0] && !specs[1]) || (!specs[0] && specs[1])) {\n return \"Range is missing a value\";\n }\n if (specs[0] && specs[1] && specs[0].trim() && specs[1].trim()) {\n if (!isValid(specs[0]) || !isValid(specs[1])) {\n return \"Invalid input\";\n }\n const numFrom = parseNumber(specs[0]);\n const numTo = parseNumber(specs[1]);\n\n if (isNumber(specs[0]) && isNumber(specs[1])) {\n specs[2] = !specs[2] ? \"\" : specs[2];\n if (numFrom > numTo) {\n // min = specs[1].trim() + specs[2];\n min = specs[1].trim();\n // max = specs[0].trim() + specs[2];\n max = specs[0].trim();\n } else {\n // min = specs[0].trim() + specs[2];\n min = specs[0].trim();\n // max = specs[1].trim() + specs[2];\n max = specs[1].trim();\n }\n } else {\n return \"Range is missing a value\";\n }\n }\n } else if (test_type === \"quantitative\") {\n if (specs[1] && specs[1].trim()) {\n if (!isValid(specs[1])) {\n return \"Invalid input\";\n }\n // specs[2] = !specs[2] ? UNIT_OPTIONS[0] : specs[2] === \"None\" ? \"\" : specs[2];\n if (!specs[2]) {\n specs[2] = UNIT_OPTIONS[0];\n }\n if (isNumber(specs[1])) {\n if (!specs[0] || specs[0] === \"Max\") {\n // max = \"<\" + specs[1].trim() + specs[2];\n max = `<${specs[1].trim()}`;\n } else {\n // min = \">\" + specs[1].trim() + specs[2];\n min = `>${specs[1].trim()}`;\n max = \"\";\n }\n }\n }\n } else if (test_type === \"qualitative\") {\n if (specs[1] && specs[1].trim()) {\n specs[0] = !specs[0] ? \"Negative\" : specs[0];\n specs[1] = specs[1].trim()[0] === \"/\" ? specs[1].trim() : `/${specs[1].trim()}`;\n if (!isValid(specs[1].substring(1))) {\n return \"Invalid input\";\n }\n if (isNumber(specs[1].substring(1))) {\n // max = specs[0] + specs[1] + \"g\";\n max = specs[0] + specs[1];\n }\n } else {\n max = \"Negative\";\n }\n }\n if (element.specs[2] === \"None\") {\n element.specs[2] = \"\";\n }\n if (!max.includes(\"/\") && test_type === \"qualitative\") {\n unit = \"\";\n } else {\n unit = element.specs[2] || \"\";\n }\n return {\n test, min, max, unit,\n };\n});\n\nexport const parseSpecDetail = (spec) => {\n let specs = [\"\", \"\", \"\"];\n let test_type = \"\";\n const test = spec.test ? spec.test : \"\";\n\n // return {\n // test: \"test\",\n // test_type: \"range\",\n // specs: [\"adfadf,12sdf63 K 123\", \"123\", \"\"],\n // };\n\n if (spec.min !== undefined && spec.max !== undefined) {\n const specString = spec.min + spec.max;\n\n if (specString.startsWith(\"Positive\")) {\n test_type = \"qualitative\";\n // let numberString = specString.substring(\"Positive\".length, specString.length - 1);\n const numberString = specString.split(\"/\")[1];\n specs = [\"Positive\", numberString, spec.unit];\n } else if (specString.startsWith(\"Negative\")) {\n test_type = \"qualitative\";\n // let numberString = specString.substring(\"Negative\".length, specString.length - 1);\n const numberString = specString.split(\"/\")[1];\n specs = [\"Negative\", numberString, spec.unit];\n } else if (specString[0] === \"<\" || specString[0] === \">\") {\n let unit = \"\";\n let numberString = specString.substring(1, specString.length);\n const maxString = specString[0] === \"<\" ? \"Max\" : \"Min\";\n for (let i = 0; i < UNIT_OPTIONS.length; i++) {\n if (specString.endsWith(UNIT_OPTIONS[i])) {\n unit = UNIT_OPTIONS[i];\n numberString = specString.substring(1, specString.length - unit.length);\n break;\n }\n }\n // unit = unit === \"\" ? \"None\" : unit;\n test_type = \"quantitative\";\n specs = [maxString, numberString, spec.unit];\n } else if (specString === \"\") {\n test_type = \"\";\n } else if (specString !== \"None\") {\n test_type = \"range\";\n if (specString.endsWith(\"%\")) {\n spec.min = spec.min.substring(0, spec.min.length - 1);\n spec.max = spec.max.substring(0, spec.max.length - 1);\n // specs[2] = \"%\";\n specs[2] = spec.unit;\n }\n // specs[0] = spec.min === \"\" ? \"0\" : spec.min;\n specs[0] = spec.min;\n // specs[1] = spec.max === \"\" ? \"0\" : spec.max;\n specs[1] = spec.max;\n specs[2] = spec.unit;\n }\n }\n return {\n test,\n test_type,\n specs,\n };\n};\n\n// export const rangeIsMissingValue = (specList) => {\n// let isMissing = false;\n// specList.forEach((elem) => {\n// if (elem === \"Range is missing a value\") {\n// isMissing = true;\n// }\n// });\n// return isMissing;\n// };\n\nexport const handleCheckUnit = (specList) => {\n specList.forEach((element) => {\n if (!element.min && !element.max) {\n element.unit = \"\";\n }\n });\n return specList;\n};\n\nexport const checkIfSpecsComplete = (specList) => {\n const formatted = formatSpec(specList);\n let complete = true;\n\n // console.log(\"formatted\", formatted);\n\n formatted.forEach((item) => {\n if (item === \"Range is missing a value\") {\n complete = false;\n return;\n }\n if (!item.min.includes(\">\") && !item.max.includes(\"<\") && !item.max.includes(\"Negative\") && !item.max.includes(\"Positive\")) {\n if (item.min === \"\" && item.max === \"\") {\n complete = false;\n }\n }\n });\n\n return complete;\n};\n\nexport const checkIfSpecsInvalid = (specList) => {\n const formatted = formatSpec(specList);\n return formatted.some((item) => item === \"Range is missing a value\" || item === \"Invalid input\");\n};\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgChevronDown = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 17,\n viewBox: \"0 0 16 17\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 6.23438L8 10.2344L12 6.23438\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgChevronDown, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ChevronDown.89ad3782.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { Select } from \"antd\";\nimport { ReactComponent as ChevronDown } from \"../../../../../assets/images/common/ChevronDown.svg\";\nimport \"./SpecManagerSelect.css\";\n\nexport default function SpecManagerSelect({\n options, // [{value, label, icon}, ...] if label is not given, value is used as the displayed label\n optionSelected,\n className = \"\",\n popupClassName = \"\",\n width,\n onSelect,\n placeholder,\n}) {\n const selectOptions = options.map((item) => (\n {\n value: typeof item === \"string\" ? item : item.value,\n label: (\n <>\n {typeof item === \"string\" ? null : item.icon || null}\n {typeof item === \"string\" ? item : (item.label ?? item.value)}\n ),\n }\n ));\n return (\n }\n className={`SpecManagerSelect ${className}`}\n popupClassName={`SpecManagerSelect__Dropdown ${popupClassName}`}\n getPopupContainer={(trigger) => trigger.parentElement}\n />\n );\n}\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport { isNumber, UNIT_OPTIONS } from \"./Helper\";\nimport \"./SpecsRange.css\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\n\nclass SpecsRange extends React.Component {\n onRangeFromChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([value, data[1], data[2]]);\n }\n\n onRangeToChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n }\n\n onOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], optionSelected]);\n }\n\n render() {\n const { data } = this.props;\n const [rangeFrom, rangeTo, percentage] = data;\n\n return (\n \n \n -\n \n \n
    \n );\n }\n}\n\nexport default SpecsRange;\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport { UNIT_OPTIONS } from \"./Helper\";\nimport \"./SpecsQuantitative.css\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\n\nexport default class SpecsQuantitative extends React.Component {\n onRangeOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([optionSelected, data[1], data[2]]);\n }\n\n onUnitOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], optionSelected]);\n }\n\n onInputChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n }\n\n render() {\n const { data } = this.props;\n const [max, number, unit] = data;\n\n return (\n \n \n \n \n
    \n );\n }\n}\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport { UNIT_OPTIONS } from \"./Helper\";\nimport \"./SpecsQualitative.css\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\n\nclass SpecsQualitative extends React.Component {\n constructor(props) {\n super(props);\n const { data, newQualitative } = this.props;\n\n let number = \"\";\n if (newQualitative) {\n number = \"25\";\n } else if (data[1]) {\n number = data[1].replace(\"/\", \"\");\n }\n\n this.state = {\n qualNumber: number,\n };\n }\n\n componentDidMount() {\n const { newQualitative, data, handleDataChange } = this.props;\n const { qualNumber } = this.state;\n\n if (newQualitative) handleDataChange([data[0], qualNumber, data[2]]);\n }\n\n onInputChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n this.setState({\n qualNumber: value,\n });\n }\n\n handlePositiveChange = (e, value) => {\n e.preventDefault();\n e.stopPropagation();\n const { data, handleDataChange } = this.props;\n handleDataChange([value, data[1], data[2]]);\n }\n\n onDropdownChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], value]);\n }\n\n render() {\n const { data } = this.props;\n const { qualNumber } = this.state;\n const [max, number, unit] = data; //eslint-disable-line\n\n return (\n \n
    \n
    \n
    \n Negative\n
    \n
    \n \n \n
    \n );\n }\n}\n\nexport default SpecsQualitative;\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgRangeIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_1367_1254)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.2997 5.91032L12.2424 4.96765L15.5424 8.26765L12.2424 11.5677L11.2997 10.625L13.6564 8.26765L11.2997 5.91032ZM4.6997 5.91032L2.34303 8.26765L4.6997 10.625L3.75703 11.5677L0.457031 8.26765L3.75703 4.96765L4.6997 5.91032Z\",\n fill: \"currentColor\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_1367_1254\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 16,\n height: 16,\n fill: \"white\",\n transform: \"translate(0 0.267639)\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgRangeIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/RangeIcon.cebef9f9.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgQualitativeIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_1367_1233)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.33333 2.26764V12.9343H14V14.2676H2V2.26764H3.33333ZM13.2933 4.22764L14.7067 5.64097L10.6667 9.68231L8.66667 7.68231L6.04 10.309L4.62667 8.89431L8.66667 4.85431L10.6667 6.85431L13.2933 4.22764Z\",\n fill: \"currentColor\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_1367_1233\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 16,\n height: 16,\n fill: \"white\",\n transform: \"translate(0 0.267639)\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgQualitativeIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/QualitativeIcon.f8a0736c.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgQuantitativeIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_1367_1245)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 8.26762H4.66667V14.2676H2V8.26762ZM11.3333 5.60095H14V14.2676H11.3333V5.60095ZM6.66667 1.60095H9.33333V14.2676H6.66667V1.60095Z\",\n fill: \"currentColor\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_1367_1245\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 16,\n height: 16,\n fill: \"white\",\n transform: \"translate(0 0.267639)\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgQuantitativeIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/QuantitativeIcon.0ee7d125.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\n// import \"../../../Product.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport SpecsRange from \"./SpecsRange\";\nimport SpecsQuantitative from \"./SpecsQuantitative\";\nimport SpecsQualitative from \"./SpecsQualitative\";\nimport { ReactComponent as RangeIcon } from \"../../../../../assets/images/product/RangeIcon.svg\";\nimport { ReactComponent as QualitativeIcon } from \"../../../../../assets/images/product/QualitativeIcon.svg\";\nimport { ReactComponent as QuantitativeIcon } from \"../../../../../assets/images/product/QuantitativeIcon.svg\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\nimport \"./EditSpecTable.css\";\n\nclass EditSpecTable extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n newQualitative: false,\n };\n }\n\n handleDataChange = (indexOfRowClicked, fieldName, newFieldValue) => {\n const { dataOfSpecEditing, handleDataChange } = this.props;\n\n if (fieldName === \"test_type\") {\n if (dataOfSpecEditing[indexOfRowClicked].test_type !== newFieldValue) {\n dataOfSpecEditing[indexOfRowClicked].test_type = newFieldValue;\n dataOfSpecEditing[indexOfRowClicked].specs = [];\n\n if (newFieldValue === \"qualitative\") {\n this.setState({\n newQualitative: true,\n });\n }\n }\n } else if (fieldName === \"specs\") {\n dataOfSpecEditing[indexOfRowClicked][fieldName] = newFieldValue;\n } else {\n dataOfSpecEditing.push({ [fieldName]: newFieldValue, test_type: \"\", specs: [\"\", \"\", \"\"] });\n }\n\n handleDataChange(dataOfSpecEditing);\n };\n\n render() {\n const {\n dataOfSpecEditing,\n } = this.props;\n\n const { newQualitative } = this.state;\n return (\n \n
    \n \n \n \n \n \n \n \n \n\n {dataOfSpecEditing.map((item, i) => (\n \n \n \n \n \n ))}\n \n
    TestTest TypeSpecs
    \n {item.test}\n \n },\n { value: \"quantitative\", icon: },\n { value: \"qualitative\", icon: }]}\n placeholder=\"Choose Test Type\"\n onSelect={(optionSelected) => this.handleDataChange(i, \"test_type\", optionSelected)}\n />\n \n { item.test_type === \"qualitative\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n newQualitative={newQualitative}\n />\n )}\n {\n item.test_type === \"range\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n />\n )\n }\n { item.test_type === \"quantitative\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n />\n )}\n\n {(item.test_type !== \"quantitative\" && item.test_type !== \"qualitative\"\n && item.test_type !== \"range\")\n && (\n \n Please select test type to view the specs\n \n )}\n
    \n \n );\n }\n}\n\nexport default EditSpecTable;\n","import React from \"react\";\nimport \"./SpecTable.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { ReactComponent as RangeIcon } from \"../../../../../assets/images/product/RangeIcon.svg\";\nimport { ReactComponent as QualitativeIcon } from \"../../../../../assets/images/product/QualitativeIcon.svg\";\nimport { ReactComponent as QuantitativeIcon } from \"../../../../../assets/images/product/QuantitativeIcon.svg\";\n\nclass SpecTable extends React.Component {\n static getFormattedSpec(specs, testType) {\n let units = specs[2];\n let min = specs[0];\n let max = specs[1];\n\n if (units === undefined) units = \"\";\n if (min === undefined) min = \"\";\n if (max === undefined) max = \"\";\n\n /** Empty specs for this test */\n if (!units && !min && !max) {\n return \"-\";\n }\n\n if (testType === \"quantitative\") {\n return `${max} ${units}`;\n }\n\n if (testType === \"range\") {\n return `${min} - ${max} ${units}`;\n }\n\n if (testType === \"qualitative\") {\n let value = specs[1];\n if (value === undefined) {\n value = \"\";\n }\n return `${min} ${value} ${units}`;\n }\n\n return `${min} ${max} ${units}`;\n }\n\n static getFormattedTestType(testType) {\n const formattedTestType = testType.charAt(0).toUpperCase() + testType.substring(1, testType.length);\n\n if (testType === \"quantitative\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n if (testType === \"qualitative\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n if (testType === \"range\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n return {testType || \"-\"};\n }\n\n renderTests() {\n const { dataOfSpecEditing } = this.props;\n\n return (\n dataOfSpecEditing.map((item, index) => (\n \n \n {item.test}\n \n \n {SpecTable.getFormattedTestType(item.test_type)}\n \n \n {SpecTable.getFormattedSpec(item.specs, item.test_type)}\n \n \n ))\n );\n }\n\n render() {\n return (\n \n \n \n \n \n \n \n \n \n \n {this.renderTests()}\n \n
    TestTest TypeSpecs
    \n \n );\n }\n}\n\nexport default SpecTable;\n","import React from \"react\";\n\nimport { AppContext } from \"../../../../../AppContext\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\nimport { QUADRANT_STYLE_MAP } from \"../Constant\";\nimport { checkPinIsPinned } from \"../pinHelper\";\nimport ConfirmModal from \"./ConfirmModal\";\nimport EditSpecTable from \"./EditSpecTable\";\nimport { checkIfSpecsInvalid } from \"./Helper\";\nimport SpecTable from \"./SpecTable\";\n\nimport { hasPermission } from \"../../../../../utils/common\";\n\nimport watermelon from \"../../../../../assets/images/EmptyState_V2.png\";\n\nimport \"./EditSpec.css\";\n\nclass EditSpec extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n saveConfirmation: false,\n disableButton: false,\n saveLoading: false,\n canAddSpec: hasPermission(\"add_spec\"),\n };\n }\n\n componentDidUpdate(prevProps) {\n const { dataOfSpecEditing } = this.props;\n if (prevProps.dataOfSpecEditing !== dataOfSpecEditing) {\n const response = checkIfSpecsInvalid(dataOfSpecEditing);\n this.setState({\n disableButton: response,\n });\n }\n return true;\n }\n\n handleSaveSpec = async (e) => {\n e.preventDefault();\n const { handleSaveSpec } = this.props;\n const { saveConfirmation } = this.state;\n this.saveConfirmation(true);\n if (saveConfirmation) {\n this.setState({ saveLoading: true });\n await handleSaveSpec();\n this.setState({ saveLoading: false });\n this.saveConfirmation(false);\n }\n }\n\n handleConfirmationPopup() {\n const { saveConfirmation, saveLoading } = this.state;\n if (saveConfirmation) {\n return (\n { this.setState({ saveConfirmation: false }); }, this.handleSaveSpec]}\n saveLoading={saveLoading}\n />\n );\n }\n return <>;\n }\n\n callProperUpdateDataFunction = (specList) => {\n const { handleDataChange } = this.props;\n handleDataChange(specList);\n const response = checkIfSpecsInvalid(specList);\n this.setState({\n disableButton: response,\n });\n }\n\n saveConfirmation(value) {\n this.setState({\n saveConfirmation: value,\n });\n return value;\n }\n\n renderButtons() {\n const { disableButton, canAddSpec } = this.state;\n const { dataOfSpecEditing, editSpecs } = this.props;\n\n let title = \"\";\n if (disableButton) {\n title = \"Missing or invalid inputs\";\n }\n\n if (canAddSpec && dataOfSpecEditing.length) {\n return (\n <>\n editSpecs(false)}\n type=\"primary\"\n ghost\n >\n Close\n \n \n \n Update\n \n \n \n );\n } if (!canAddSpec || dataOfSpecEditing.length === 0) {\n return (\n editSpecs(false)}\n type=\"primary\"\n ghost\n >\n Close\n \n );\n }\n\n return null;\n }\n\n renderHeader() {\n const { pin, linkPatternFields, index0 } = this.props;\n const { canAddSpec } = this.state;\n const { color: blockColor } = checkPinIsPinned(pin) ? QUADRANT_STYLE_MAP[pin.quadrant] : { color: undefined }; // red\n const message = canAddSpec ? \"Edit specs to automatically update the status of your reports on this swab\" : \"Test Specifications for this Swab\";\n return (\n
    \n {canAddSpec\n && (\n
    \n {message}\n
    \n )}\n
    \n
    \n
    \n \n {`${pin[index0]}`}\n \n
    \n {linkPatternFields.map(({ json_field, title_field }) => (\n json_field !== index0 && (\n \n {`${title_field}: ${pin[json_field]}`}\n \n )\n ))}\n
    \n
    \n
    \n
    \n );\n }\n\n renderTable() {\n const { dataOfSpecEditing, loading, addingSpec } = this.props;\n const { canAddSpec } = this.state;\n if (!loading) {\n if (!dataOfSpecEditing.length) {\n return (\n
    \n \n
    \n No Tests Found\n
    \n
    \n );\n }\n if (canAddSpec) {\n return (\n \n );\n }\n return (\n \n );\n }\n return null;\n }\n\n render() {\n return (\n
    \n {this.renderHeader()}\n
    \n {this.renderTable()}\n {this.handleConfirmationPopup()}\n
    \n \n { this.renderButtons()}\n
    \n\n
    \n );\n }\n}\n\nEditSpec.contextType = AppContext; // allows class component to consume context, access via this.context\nexport default EditSpec;\n","import axios from \"axios\";\nimport { API_URL } from \"../utils/Constant\";\nimport { getViewAsPerStatusCode } from \"../utils/helpers\";\n\n/**\n * Get environment fields\n * @returns {Object} { success, message?, fields?, index0? }\n */\nexport const getEnvTableFields = async () => {\n try {\n const response = await axios.get(`${API_URL}/envreportfields/`);\n const data = response.data;\n\n if (data && data.fields.length > 0) {\n return { success: true, ...data };\n }\n const message = \"No data from API.\";\n return { success: false, message };\n } catch (e) {\n getViewAsPerStatusCode(e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/* NOT USED */\n// // http://127.0.0.1:8000/api/envreports/?\n// // user_payload=uBYMoUVAAMhznC0N0gGV&\n// // company_domain=eatsafeverified.com&\n// // input=dried\n// export const getEnvFiles = async (reqUrl, payload = {}) => {\n// try {\n// let response;\n// if (!reqUrl) {\n// const user = await getUserCredentials();\n// response = await axios.get(`${API_URL}/envreports/`, {\n// params: {\n// user_payload: user.user_payload || \"\",\n// search: payload.search || \"\",\n// specs_flag: payload.specs_flag || \"\",\n// retest: payload.retest || \"\",\n// page: parseInt(payload.page) || 1,\n// date_from: payload.fromm || \"\",\n// date_to: payload.to || \"\",\n// },\n// });\n// } else {\n// response = await axios.get(`${API_URL}${reqUrl.substr(4)}`);\n// }\n// const data = response.data;\n// const {\n// prev_page_link: prevPageLink, next_page_link: nextPageLink, last_page_link: lastPageLink, total_page: totalPage,\n// } = data;\n// const res = {\n// files: [], prevPageLink, nextPageLink, lastPageLink, totalPage,\n// };\n// res.files = data.result;\n// // console.log(res.files);\n// return { success: true, ...res };\n// } catch (e) {\n// // getViewAsPerStatusCode(e);\n// const message = \"Something went wrong.\";\n// return { success: false, message };\n// }\n// };\n\n/* NOT USED */\n// export const getEnvDates = async () => {\n// try {\n// const user = await getUserCredentials();\n// const response = await axios.get(`${API_URL}/envreportdates/`, {\n// params: {\n// user_payload: user.user_payload || \"\",\n// },\n// });\n// const data = await response.data;\n// if (data && data.result) {\n// return { success: true, dates: data.result };\n// }\n// return { success: false, message: \"Failed to get env dates.\" };\n// } catch (e) {\n// // getViewAsPerStatusCode(e);\n// const message = \"Something went wrong.\";\n// return { success: false, message };\n// }\n// };\n\n/* NOT USED */\n// export const getEnvSpec = async (payload) => {\n// try {\n// const user = await getUserCredentials();\n// const params = {\n// user_payload: user.user_payload || \"\",\n// received_date: payload.received_date,\n// sample_id: payload.sample_id,\n// location_id: payload.location_id,\n// };\n\n// const response = await axios.get(`${API_URL}/envreportspecs/`, { params });\n// const data = response.data;\n// const res = { spec: {} };\n\n// if (data && data.result && data.result.length > 0) {\n// res.spec = data.result[0];\n// }\n\n// return { success: true, ...res };\n// } catch (e) {\n// // getViewAsPerStatusCode(e);\n// const message = \"Something went wrong.\";\n// return { success: false, message };\n// }\n// };\n\n/**\n * Get all locations for spec manager if location_id is empty, also handles search.\n * Get specs for specified location_id if non-empty.\n * Update specs if isUpdating is true.\n * @param {Object} payload { filter, search, location_id, page }\n * @param {Boolean} isUpdating true if adding/editing specs\n * @returns {Object} { success, message?, files?, pattern?, pages? }\n */\nexport const getEnvSpecsData = async (payload, isUpdating = false) => {\n try {\n let params = {\n filter: payload.filter || \"\",\n search: payload.search || \"\",\n location_id: payload.location_id || \"\",\n page: payload.page,\n };\n let response;\n if (isUpdating) {\n params = { // filter, search not needed for patch\n location_id: payload.location_id || \"\",\n specs: payload.specs || \"\",\n page: payload.page,\n };\n response = await axios.patch(`${API_URL}/envspecmanager/`, params);\n } else {\n response = await axios.get(`${API_URL}/envspecmanager/`, { params });\n }\n\n if (params.location_id) {\n const res = {\n prevPageLink: \"\", nextPageLink: \"\", lastPageLink: \"\", totalPage: \"\",\n };\n if (response.data.message === \"success\" || response.data.message === \"Success\") {\n return {\n success: true, files: response.data.result, pattern: \"\", pages: res,\n };\n } if (response.data.message === \"Specs and status updated, reports from last 30 days updated\") {\n return { success: true };\n }\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n const {\n prev_page_link: prevPageLink, next_page_link: nextPageLink, last_page_link: lastPageLink, total_page: totalPage,\n } = response.data.result.info;\n const res = {\n prevPageLink, nextPageLink, lastPageLink, totalPage,\n };\n\n if (response.data.result.info.message === \"Success\") {\n return {\n success: true, files: params.location_id ? response.data.result : response.data.result.info.result, pattern: response.data.result.pattern, pages: res,\n };\n } if (response.data.message === \"Specs and status updated, reports from last 30 days updated\") {\n return { success: true };\n }\n\n const message = \"Something went wrong.\";\n return { success: false, message };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\nexport const getEnvSpecsEditData = async (payload) => {\n try {\n const params = { location_id: payload.location_id };\n const response = await axios.get(`${API_URL}/envspecmanager/`, { params });\n\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n const message = \"Something went wrong.\";\n return { success: false, message };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\nexport const postEnvSpecsEditData = async (payload) => {\n try {\n const params = {\n location_id: payload.location_id,\n specs: payload.specs,\n };\n const response = await axios.patch(`${API_URL}/envspecmanager/`, params);\n\n if (response.data.message === \"Specs and status updated, reports from last 30 days updated\") {\n return { success: true };\n }\n const message = \"Something went wrong.\";\n return { success: false, message };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n// search files in Env reports page\n// export const searchEnvReports = async (payload) => {\n// try {\n// const user = await getUserCredentials();\n// const params = {\n// company_domain: user.company_domain || \"\",\n// user_payload: user.user_payload || \"\",\n// search: payload.search,\n// page: payload.page || \"\",\n// };\n// const response = await axios.get(`${API_URL}/envreports/`, { params });\n// const data = await response.data;\n\n// return { success: true, ...data };\n// } catch (e) {\n// // getViewAsPerStatusCode(e);\n// const message = \"Something went wrong.\";\n// return { success: false, message };\n// }\n// };\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgFoldedMap = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0.332031 2.33398L4.9987 0.333984L8.9987 2.33398L13.2007 0.533318C13.2514 0.511573 13.3068 0.502764 13.3617 0.507679C13.4167 0.512595 13.4696 0.531082 13.5156 0.561481C13.5617 0.59188 13.5995 0.63324 13.6256 0.68185C13.6518 0.730459 13.6654 0.784796 13.6654 0.839984V11.6673L8.9987 13.6673L4.9987 11.6673L0.796698 13.468C0.745974 13.4897 0.690644 13.4985 0.635675 13.4936C0.580706 13.4887 0.527817 13.4702 0.481756 13.4398C0.435695 13.4094 0.397902 13.3681 0.371769 13.3195C0.345637 13.2708 0.331982 13.2165 0.332031 13.1613V2.33398ZM8.9987 12.1767V3.78465L8.95536 3.80332L4.9987 1.82465V10.2167L5.04203 10.198L8.9987 12.1767Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgFoldedMap, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/foldedMap.6d1b5c1d.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\nimport { toast } from \"react-toastify\";\nimport SinglePinMapView from \"./ReportViewMap/SinglePinMapView\";\nimport ReportViewTitle from \"./ReportViewTitle/ReportViewTitle\";\nimport ReportResult from \"./ReportViewResult/ReportResult\";\nimport EditSpec from \"../EditSpecs/EditSpec\";\nimport {\n parseSpecDetail, formatSpec, handleCheckUnit, checkIfSpecsInvalid,\n} from \"../EditSpecs/Helper\";\nimport { getEnvSpecsEditData, postEnvSpecsEditData } from \"../../../../../actions/envReports\";\nimport \"./ReportView.css\";\nimport { ReactComponent as MapIcon } from \"../../../../../assets/images/environment/foldedMap.svg\";\n\nexport default function ReportView({\n pinMap,\n toggleReportView,\n selectedLocationID,\n setSelectedLocationID,\n setDisplayTooltipLocationID,\n imageSrc,\n handlePreviewFile,\n handleAddSpecsButton,\n linkPatternFields,\n index0,\n}) {\n const pin = pinMap.get(selectedLocationID);\n const [imagePath, setImagePath] = useState(\"\");\n const [curReportInfo, setCurReportInfo] = useState(null);\n const [showSpecManger, setShowSpecManger] = useState(false);\n const [dataOfSpecEditing, setDataOfSpecEditing] = useState([]);\n const [loadingSpecs, setLoadingSpecs] = useState(false);\n\n /**\n * Edit specifications based on the show parameter.\n * @param {boolean} show - Flag to determine whether to open or close the spec editor.\n */\n const editSpecs = async (show) => {\n if (show) { // open\n setLoadingSpecs(true);\n const payload = { location_id: selectedLocationID };\n const response = await getEnvSpecsEditData(payload);\n if (!response.success) {\n toast.error(\"Failed to get specs for this swab!\");\n } else {\n const data = response.result;\n data.forEach((spec) => {\n const specDetail = parseSpecDetail(spec);\n spec.test_type = specDetail.test_type;\n spec.specs = specDetail.specs;\n });\n setDataOfSpecEditing(data);\n setLoadingSpecs(false);\n setShowSpecManger(true);\n }\n } else { // close\n setShowSpecManger(false);\n setDataOfSpecEditing([]);\n }\n };\n\n /**\n * Function to handle saving specs.\n * @returns {boolean} - Returns true if the specs are successfully saved, false otherwise.\n */\n const handleSaveSpec = async () => {\n let specList = formatSpec(dataOfSpecEditing);\n if (checkIfSpecsInvalid(dataOfSpecEditing)) {\n toast.error(\"Invalid or missing value(s).\");\n return false;\n }\n specList = handleCheckUnit(specList);\n\n const payload = {\n location_id: selectedLocationID,\n specs: specList,\n };\n\n let result = false;\n const response = await postEnvSpecsEditData(payload);\n if (response && response.success) {\n toast.success(\"Spec successfully edited.\");\n result = true;\n editSpecs(false);\n } else {\n toast.error(\"Failed to edit spec.\");\n }\n return result;\n };\n\n const handleDataChange = (specList) => {\n setDataOfSpecEditing([...specList]);\n };\n\n return (\n
    \n {showSpecManger && (\n \n )}\n {!showSpecManger && (\n <>\n \n \n \n {\n setSelectedLocationID(\"\");\n setDisplayTooltipLocationID(\"\");\n toggleReportView();\n }}\n >\n \n \n \n )}\n
    \n );\n}\n","import React from \"react\";\nimport \"../../../Env.css\";\n// import leftMagnifyIcon from \"../../assets/images/DocSearchIcon.png\";\nimport whiteMagnifyIcon from \"../../../../../assets/images/white-magnifying-glass.png\";\n\n// import SearchFilter from \"./SearchFilter\";\n\nclass SpecManagerSearch extends React.Component {\n constructor(props) {\n super(props);\n const { searchValue } = this.props;\n // console.log(\"searchValue props\", searchValue);\n this.state = {\n searchValue: searchValue || \"\",\n searchFailed: false,\n previousSearch: \"\",\n // searchEvent: null,\n };\n }\n\n handleSearchChange = async (e, buttonClicked) => {\n // this.setState({\n // isUsingSearch: true\n // })\n\n // if (!e.target.value) {\n // console.log(\"e has no value (SpecManager)\")\n // return\n // }\n // console.log(\"value for child search: \", e.target.value);\n const { searchValue } = this.state;\n const { handleSearchChange } = this.props;\n let value = \"\";\n if (!buttonClicked) {\n value = e.target.value;\n } else {\n value = searchValue;\n }\n this.setState({\n searchValue: value.trim() === \"\" ? \"\" : value,\n searchFailed: false,\n // isUsingSearch: true,\n });\n if ((buttonClicked || e.key === \"Enter\" || value === \"\")) {\n const searchSucceeded = await handleSearchChange(value);\n this.setState({ searchFailed: !searchSucceeded });\n if (searchSucceeded) {\n this.setState({ previousSearch: value });\n }\n }\n }\n\n render() {\n const { flag } = this.props;\n const { searchValue, searchFailed, previousSearch } = this.state;\n let formControlId = \"reportSearchInput\";\n if (flag === \"templates\") {\n formControlId = \"reportSearchInput2\";\n } else if (flag === \"analytics\") {\n formControlId = \"reportSearchInput3\";\n }\n // console.log(searchValue, searchFailed);\n\n return (\n \n
    \n
    \n {\n this.handleSearchChange(event, false);\n }}\n value={searchFailed ? previousSearch : searchValue}\n onKeyPress={(event) => {\n if (event.key === \"Enter\") {\n event.preventDefault();\n this.handleSearchChange(event, false);\n }\n }}\n />\n {\n this.handleSearchChange(event, true);\n }}\n >\n \n\n
    \n
    \n \n \n );\n }\n}\n\nexport default SpecManagerSearch;\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./ConfirmModal.css\";\n\nexport default class ConfirmExitModal extends React.Component {\n render() {\n const {\n headerText,\n bodyText,\n buttonText,\n buttonFunctions,\n } = this.props;\n\n return (\n \n
    \n
    {headerText}
    \n
    {bodyText}
    \n
    \n \n \n
    \n
    \n \n );\n }\n}\n","import React from \"react\";\n\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\n\nclass SpecManagerInput extends React.Component {\n static isValid(text) {\n const split = text.split(\"\");\n const allowedChars = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \".\", \",\"];\n let currPeriods = 0;\n\n for (let i = 0; i < split.length; i++) {\n if (split[i] === \".\" && currPeriods !== 1) {\n currPeriods += 1;\n } else if (split[i] === \".\" && currPeriods === 1) {\n return {\n status: false,\n errorMessage: null,\n };\n }\n\n if (i < split.length - 1) {\n if (split[i] === \".\" && split[i + 1] === \".\") {\n return {\n status: false,\n errorMessage: null,\n };\n }\n }\n\n if (allowedChars.indexOf(split[i]) < 0) {\n let invalidChar = split[i];\n if (split[i] === \" \") invalidChar = \"space\";\n\n return {\n status: false,\n errorMessage: `Invalid input, remove ${invalidChar}`,\n };\n }\n }\n\n return {\n status: true,\n errorMessage: null,\n };\n }\n\n constructor(props) {\n super(props);\n\n this.state = {\n cursorPosition: 0,\n errorMessage: \"\",\n focused: false,\n };\n\n this.inputRef = React.createRef();\n }\n\n componentDidMount() {\n const { value } = this.props;\n\n const valid = SpecManagerInput.isValid(value);\n this.updateErrorMessage(valid, false);\n }\n\n onKeyPress = (e) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n e.target.blur();\n }\n }\n\n onKeyDown = (e) => {\n const { onChange } = this.props;\n if (e.key === \"Backspace\") {\n // console.log(\"backspace\");\n e.preventDefault();\n const selectionPositionStart = e.target.selectionStart;\n const selectionPositionEnd = e.target.selectionEnd;\n\n const singleSelected = selectionPositionStart === selectionPositionEnd;\n\n let text = e.target.value;\n\n if (singleSelected && selectionPositionStart !== 0) {\n text = text.slice(0, selectionPositionStart - 1) + text.slice(selectionPositionStart);\n } else {\n text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionEnd);\n }\n\n this.setState({\n cursorPosition: singleSelected && selectionPositionStart !== 0 ? selectionPositionStart - 1 : selectionPositionStart,\n }, () => {\n const { cursorPosition } = this.state;\n this.inputRef.current.selectionStart = cursorPosition;\n this.inputRef.current.selectionEnd = cursorPosition;\n });\n onChange(text);\n\n const valid = SpecManagerInput.isValid(text);\n this.updateErrorMessage(valid);\n } else if (e.key === \"Delete\") {\n e.preventDefault();\n const selectionPositionStart = e.target.selectionStart;\n const selectionPositionEnd = e.target.selectionEnd;\n\n const singleSelected = selectionPositionStart === selectionPositionEnd;\n\n let text = e.target.value;\n\n if (singleSelected) {\n text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionStart + 1);\n } else {\n text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionEnd);\n }\n\n this.setState({\n cursorPosition: selectionPositionStart,\n }, () => {\n const { cursorPosition } = this.state;\n this.inputRef.current.selectionStart = cursorPosition;\n this.inputRef.current.selectionEnd = cursorPosition;\n });\n onChange(text);\n\n const valid = SpecManagerInput.isValid(text);\n this.updateErrorMessage(valid);\n }\n }\n\n onChange = (e) => {\n const { onChange } = this.props;\n\n const text = e.target.value;\n const valid = SpecManagerInput.isValid(text);\n\n if (valid.status) {\n onChange(text);\n this.updateErrorMessage(valid);\n }\n }\n\n updateErrorMessage(validObj, focus = true) {\n if (validObj.status === true) {\n this.setState({\n errorMessage: \"\",\n });\n if (focus) window.setTimeout(() => this.inputRef.current.focus(), 0);\n }\n\n if (validObj.errorMessage !== null) {\n this.setState({\n errorMessage: validObj.errorMessage,\n });\n }\n }\n\n render() {\n const {\n placeHolder,\n value,\n width,\n height,\n additionalClassName,\n } = this.props;\n\n const { errorMessage, focused } = this.state;\n\n return (\n \n {\n this.setState({\n focused: true,\n });\n }}\n onBlur={() => {\n this.setState({\n focused: false,\n });\n }}\n />\n \n );\n }\n}\nexport default SpecManagerInput;\n","import React from \"react\";\nimport { Select } from \"antd\";\nimport { ReactComponent as ChevronDown } from \"../../../../../assets/images/common/ChevronDown.svg\";\nimport \"./SpecManagerSelect.css\";\n\nexport default function SpecManagerSelect({\n options, // [{value, label, icon}, ...] if label is not given, value is used as the displayed label\n optionSelected,\n className = \"\",\n popupClassName = \"\",\n width,\n onSelect,\n placeholder,\n}) {\n const selectOptions = options.map((item) => (\n {\n value: typeof item === \"string\" ? item : item.value,\n label: (\n <>\n {typeof item === \"string\" ? null : item.icon || null}\n {typeof item === \"string\" ? item : (item.label ?? item.value)}\n ),\n }\n ));\n return (\n }\n className={`SpecManagerSelect ${className}`}\n popupClassName={`SpecManagerSelect__Dropdown ${popupClassName}`}\n getPopupContainer={(trigger) => trigger.parentElement}\n />\n );\n}\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport SpecManagerSelect from \"../../../../Product/Report/Components/SpecManager/SpecManagerSelect\";\nimport \"./SpecsRange.css\";\n\nexport const UNIT_OPTIONS = [\"None\", \"CFU/g\", \"CFU\", \"mg/kg\", \"ppb\", \"ppm\", \"%\", \"g\", \"ml\"];\nclass SpecsRange extends React.Component {\n onRangeFromChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([value, data[1], data[2]]);\n }\n\n onRangeToChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n }\n\n onOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], optionSelected]);\n }\n\n render() {\n const { data } = this.props;\n const [rangeFrom, rangeTo, percentage] = data;\n return (\n \n \n -\n \n \n \n );\n }\n}\n\nexport default SpecsRange;\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport SpecManagerSelect from \"../../../../Product/Report/Components/SpecManager/SpecManagerSelect\";\nimport \"./SpecsQuantitative.css\";\n\nexport const UNIT_OPTIONS = [\"None\", \"CFU/g\", \"CFU\", \"mg/kg\", \"ppb\", \"ppm\", \"%\", \"g\", \"ml\"];\n\nexport default class SpecsQuantitative extends React.Component {\n onRangeOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([optionSelected, data[1], data[2]]);\n }\n\n onUnitOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], optionSelected]);\n }\n\n onInputChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n }\n\n render() {\n const { data } = this.props;\n const [max, number, unit] = data;\n return (\n \n \n \n \n \n );\n }\n}\n","import React from \"react\";\nimport { Select } from \"antd\";\nimport { ReactComponent as ChevronDown } from \"../../../../../assets/images/common/ChevronDown.svg\";\nimport \"./SpecManagerSelect.css\";\n\nexport default function SpecManagerSelect({\n options, // [{value, label, icon}, ...] if label is not given, value is used as the displayed label\n optionSelected,\n className = \"\",\n popupClassName = \"\",\n width,\n onSelect,\n placeholder,\n}) {\n const selectOptions = options.map((item) => (\n {\n value: typeof item === \"string\" ? item : item.value,\n label: (\n <>\n {typeof item === \"string\" ? null : item.icon || null}\n {typeof item === \"string\" ? item : (item.label ?? item.value)}\n ),\n }\n ));\n return (\n }\n className={`EnvSpecManagerSelect ${className}`}\n popupClassName={`EnvSpecManagerSelect__Dropdown ${popupClassName}`}\n getPopupContainer={(trigger) => trigger.parentElement}\n />\n );\n}\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\nimport \"./SpecsQualitative.css\";\n\nexport const UNIT_OPTIONS = [\"None\", \"CFU/g\", \"CFU\", \"mg/kg\", \"ppb\", \"ppm\", \"%\", \"g\", \"ml\"];\nclass SpecsQualitative extends React.Component {\n constructor(props) {\n super(props);\n const { data, newQualitative } = this.props;\n\n let number = \"\";\n if (newQualitative) {\n number = \"25\";\n } else if (data[1]) {\n number = data[1].replace(\"/\", \"\");\n }\n\n this.state = {\n qualNumber: number,\n };\n }\n\n componentDidMount() {\n const { newQualitative, data, handleDataChange } = this.props;\n const { qualNumber } = this.state;\n\n if (newQualitative) handleDataChange([data[0], qualNumber, data[2]]);\n }\n\n onInputChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n this.setState({\n qualNumber: value,\n });\n }\n\n handlePositiveChange = (e, value) => {\n e.preventDefault();\n e.stopPropagation();\n const { data, handleDataChange } = this.props;\n handleDataChange([value, data[1], data[2]]);\n }\n\n onDropdownChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], value]);\n }\n\n render() {\n const { data } = this.props;\n const { qualNumber } = this.state;\n const [max, number, unit] = data; //eslint-disable-line\n\n return (\n \n \n \n
    \n Negative\n
    \n \n \n \n \n );\n }\n}\n\nexport default SpecsQualitative;\n","import React from \"react\";\nimport \"../../../Env.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport SpecsRange from \"./SpecsRange\";\nimport SpecsQuantitative from \"./SpecsQuantitative\";\nimport SpecsQualitative from \"./SpecsQualitative\";\nimport { ReactComponent as RangeIcon } from \"../../../../../assets/images/product/RangeIcon.svg\";\nimport { ReactComponent as QualitativeIcon } from \"../../../../../assets/images/product/QualitativeIcon.svg\";\nimport { ReactComponent as QuantitativeIcon } from \"../../../../../assets/images/product/QuantitativeIcon.svg\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\n\nclass EditSpecTable extends React.Component {\n // handleChooseDropDown = (optionSelected) => {\n // this.setState({\n // dropDownSelection: optionSelected,\n // });\n // }\n constructor(props) {\n super(props);\n\n this.state = {\n newQualitative: false,\n };\n }\n\n handleDataChange = (indexOfRowClicked, fieldName, newFieldValue) => {\n const { dataOfSpecEditing, handleDataChange } = this.props;\n\n // console.log('dataOfSpecEditing, before: ', dataOfSpecEditing);\n if (fieldName === \"test_type\") {\n if (dataOfSpecEditing[indexOfRowClicked].test_type !== newFieldValue) {\n dataOfSpecEditing[indexOfRowClicked].test_type = newFieldValue;\n dataOfSpecEditing[indexOfRowClicked].specs = [];\n\n if (newFieldValue === \"qualitative\") {\n this.setState({\n newQualitative: true,\n });\n }\n }\n } else if (fieldName === \"specs\") {\n dataOfSpecEditing[indexOfRowClicked][fieldName] = newFieldValue;\n // console.log('dataOfSpecEditing, after: ', dataOfSpecEditing);\n } else {\n dataOfSpecEditing.push({ [fieldName]: newFieldValue, test_type: \"\", specs: [\"\", \"\", \"\"] });\n }\n\n handleDataChange(dataOfSpecEditing);\n };\n\n render() {\n const {\n addingSpec,\n dataOfSpecEditing,\n } = this.props;\n\n const { newQualitative } = this.state;\n\n return (\n \n \n \n \n \n \n \n \n \n \n\n {dataOfSpecEditing.map((item, i) => (\n \n {addingSpec\n ? (\n \n {/* {item.Test} */}\n {item.test}\n\n \n )\n : (\n \n ) }\n \n },\n { value: \"quantitative\", icon: },\n { value: \"qualitative\", icon: }]}\n placeholder=\"Choose Test Type\"\n onSelect={(optionSelected) => this.handleDataChange(i, \"test_type\", optionSelected)}\n />\n \n \n { item.test_type === \"qualitative\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n newQualitative={newQualitative}\n />\n )}\n {\n item.test_type === \"range\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n />\n )\n }\n { item.test_type === \"quantitative\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n />\n )}\n\n {(item.test_type !== \"quantitative\" && item.test_type !== \"qualitative\"\n && item.test_type !== \"range\")\n && (\n \n Please select test type to view the specs\n \n )}\n \n \n ))}\n\n \n
    TestTest TypeSpecs
    \n {item.test}\n
    \n \n );\n }\n}\n\nexport default EditSpecTable;\n","import { UNIT_OPTIONS } from \"./SpecsQuantitative\";\n\nexport const formatSpec = (dataOfSpecEditing) => dataOfSpecEditing.map((element) => {\n // const { test, test_type, specs } = element;\n const test_type = element.test_type;\n const specs = element.specs;\n // let test = (this.state.addingSpec ? element.Test : element.test)\n const test = element.test;\n let min = \"\";\n let max = \"\";\n let unit = \"\";\n if (test_type === \"range\") {\n if ((specs[0] && !specs[1]) || (!specs[0] && specs[1])) {\n return \"Range is missing a value\";\n }\n if (specs[0] && specs[1] && specs[0].trim() && specs[1].trim()) {\n const numFrom = parseFloat(specs[0].split(\",\").join(\"\"));\n const numTo = parseFloat(specs[1].split(\",\").join(\"\"));\n if (!Number.isNaN(numFrom) && !Number.isNaN(numTo)) {\n specs[2] = !specs[2] ? \"\" : specs[2];\n if (numFrom > numTo) {\n // min = specs[1].trim() + specs[2];\n min = specs[1].trim();\n // max = specs[0].trim() + specs[2];\n max = specs[0].trim();\n } else {\n // min = specs[0].trim() + specs[2];\n min = specs[0].trim();\n // max = specs[1].trim() + specs[2];\n max = specs[1].trim();\n }\n }\n }\n } else if (test_type === \"quantitative\") {\n if (specs[1] && specs[1].trim()) {\n // specs[2] = !specs[2] ? UNIT_OPTIONS[0] : specs[2] === \"None\" ? \"\" : specs[2];\n if (!specs[2]) {\n specs[2] = UNIT_OPTIONS[0];\n }\n const num = parseFloat(specs[1].split(\",\").join(\"\"));\n if (!Number.isNaN(num)) {\n if (!specs[0] || specs[0] === \"Max\") {\n // max = \"<\" + specs[1].trim() + specs[2];\n max = `<${specs[1].trim()}`;\n } else {\n // min = \">\" + specs[1].trim() + specs[2];\n min = `>${specs[1].trim()}`;\n max = \"\";\n }\n }\n }\n } else if (test_type === \"qualitative\") {\n if (specs[1] && specs[1].trim()) {\n specs[0] = !specs[0] ? \"Negative\" : specs[0];\n specs[1] = specs[1].trim()[0] === \"/\" ? specs[1].trim() : `/${specs[1].trim()}`;\n const num = parseFloat(specs[1].substring(1).split(\",\").join(\"\"));\n if (!Number.isNaN(num)) {\n // max = specs[0] + specs[1] + \"g\";\n max = specs[0] + specs[1];\n }\n } else {\n max = \"Negative\";\n }\n }\n if (element.specs[2] === \"None\") {\n element.specs[2] = \"\";\n }\n if (!max.includes(\"/\") && test_type === \"qualitative\") {\n unit = \"\";\n } else {\n unit = element.specs[2] || \"\";\n }\n return {\n test, min, max, unit,\n };\n});\n\nexport const parseSpecDetail = (spec) => {\n let specs = [\"\", \"\", \"\"];\n let test_type = \"\";\n const test = spec.test ? spec.test : \"\";\n\n // return {\n // test: \"test\",\n // test_type: \"range\",\n // specs: [\"adfadf,12sdf63 K 123\", \"123\", \"\"],\n // };\n\n if (spec.min !== undefined && spec.max !== undefined) {\n const specString = spec.min + spec.max;\n\n if (specString.startsWith(\"Positive\")) {\n test_type = \"qualitative\";\n // let numberString = specString.substring(\"Positive\".length, specString.length - 1);\n const numberString = specString.split(\"/\")[1];\n specs = [\"Positive\", numberString, spec.unit];\n } else if (specString.startsWith(\"Negative\")) {\n test_type = \"qualitative\";\n // let numberString = specString.substring(\"Negative\".length, specString.length - 1);\n const numberString = specString.split(\"/\")[1];\n specs = [\"Negative\", numberString, spec.unit];\n } else if (specString[0] === \"<\" || specString[0] === \">\") {\n let unit = \"\";\n let numberString = specString.substring(1, specString.length);\n const maxString = specString[0] === \"<\" ? \"Max\" : \"Min\";\n for (let i = 0; i < UNIT_OPTIONS.length; i++) {\n if (specString.endsWith(UNIT_OPTIONS[i])) {\n unit = UNIT_OPTIONS[i];\n numberString = specString.substring(1, specString.length - unit.length);\n break;\n }\n }\n // unit = unit === \"\" ? \"None\" : unit;\n test_type = \"quantitative\";\n specs = [maxString, numberString, spec.unit];\n } else if (specString === \"\") {\n test_type = \"\";\n } else if (specString !== \"None\") {\n test_type = \"range\";\n if (specString.endsWith(\"%\")) {\n spec.min = spec.min.substring(0, spec.min.length - 1);\n spec.max = spec.max.substring(0, spec.max.length - 1);\n // specs[2] = \"%\";\n specs[2] = spec.unit;\n }\n // specs[0] = spec.min === \"\" ? \"0\" : spec.min;\n specs[0] = spec.min;\n // specs[1] = spec.max === \"\" ? \"0\" : spec.max;\n specs[1] = spec.max;\n specs[2] = spec.unit;\n }\n }\n return {\n test,\n test_type,\n specs,\n };\n};\n\nexport const rangeIsMissingValue = (specList) => {\n let isMissing = false;\n specList.forEach((elem) => {\n if (elem === \"Range is missing a value\") {\n isMissing = true;\n }\n });\n return isMissing;\n};\n\nexport const handleCheckUnit = (specList) => {\n specList.forEach((element) => {\n if (!element.min && !element.max) {\n element.unit = \"\";\n }\n });\n return specList;\n};\n\nexport const checkIfSpecsComplete = (specList) => {\n const formatted = formatSpec(specList);\n let complete = true;\n\n // console.log(\"formatted\", formatted);\n\n formatted.forEach((item) => {\n if (item === \"Range is missing a value\") {\n complete = false;\n return;\n }\n if (!item.min.includes(\">\") && !item.max.includes(\"<\") && !item.max.includes(\"Negative\") && !item.max.includes(\"Positive\")) {\n if (item.min === \"\" && item.max === \"\") {\n complete = false;\n }\n }\n });\n\n return complete;\n};\n","import React from \"react\";\nimport \"../../../Env.css\";\nimport \"./SpecManager.css\";\nimport \"./SpecTable.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { ReactComponent as RangeIcon } from \"../../../../../assets/images/product/RangeIcon.svg\";\nimport { ReactComponent as QualitativeIcon } from \"../../../../../assets/images/product/QualitativeIcon.svg\";\nimport { ReactComponent as QuantitativeIcon } from \"../../../../../assets/images/product/QuantitativeIcon.svg\";\n\nclass SpecTable extends React.Component {\n static getFormattedSpec(specs, testType) {\n let units = specs[2];\n let min = specs[0];\n let max = specs[1];\n\n if (units === undefined) units = \"\";\n if (min === undefined) min = \"\";\n if (max === undefined) max = \"\";\n\n if (testType === \"quantitative\") {\n return `${max} ${units}`;\n }\n\n if (testType === \"range\") {\n return `${min} - ${max} ${units}`;\n }\n\n if (testType === \"qualitative\") {\n let value = specs[1];\n if (value === undefined) {\n value = \"\";\n }\n return `${min} ${value} ${units}`;\n }\n\n return `${min} ${max} ${units}`;\n }\n\n static getFormattedTestType(testType) {\n const formattedTestType = testType.charAt(0).toUpperCase() + testType.substring(1, testType.length);\n\n if (testType === \"quantitative\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n if (testType === \"qualitative\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n if (testType === \"range\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n return {testType};\n }\n\n renderTests() {\n const { dataOfSpecEditing } = this.props;\n\n return (\n dataOfSpecEditing.map((item, index) => (\n \n \n {/* {item.Test} */}\n {item.test}\n \n\n \n {/* {item.Test} */}\n {SpecTable.getFormattedTestType(item.test_type)}\n \n\n \n {SpecTable.getFormattedSpec(item.specs, item.test_type)}\n \n\n \n ))\n );\n }\n\n render() {\n return (\n \n \n \n \n \n \n \n \n \n \n {this.renderTests()}\n \n
    TestTest TypeSpecs
    \n \n );\n }\n}\n\nexport default SpecTable;\n","import React from \"react\";\nimport \"../../../Env.css\";\nimport \"./SpecManager.css\";\n\nimport { AppContext } from \"../../../../../AppContext\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\nimport ConfirmModal from \"./ConfirmModal\";\nimport EditSpecTable from \"./EditSpecTable\";\nimport { checkIfSpecsComplete } from \"./Helper\";\nimport SpecTable from \"./SpecTable\";\n\nimport { hasPermission } from \"../../../../../utils/common\";\n\nimport pumpkin from \"../../../../../assets/images/environment/pumpkin.png\";\nimport backIcon from \"../../../../../assets/images/product/backIconDarkBlue.png\";\n\nimport \"./EditSpec.css\";\n\nclass EditSpec extends React.Component {\n constructor(props) {\n super(props);\n const { addingSpec, editingSpec } = this.props;\n\n this.state = {\n saveConfirmation: false,\n editing: editingSpec || false,\n specsComplete: false,\n addingSpecState: addingSpec,\n };\n\n this.handleExitModal = this.handleExitModal.bind(this);\n this.handleEditButtonClicked = this.handleEditButtonClicked.bind(this);\n }\n\n componentDidMount() {\n const {\n addingSpec,\n } = this.props;\n\n if (addingSpec) {\n this.setState({\n editing: true,\n });\n }\n }\n\n componentDidUpdate(prevProps) {\n const { dataOfSpecEditing } = this.props;\n\n if (prevProps.dataOfSpecEditing !== dataOfSpecEditing) {\n const response = checkIfSpecsComplete(dataOfSpecEditing);\n this.setState({\n specsComplete: response,\n });\n }\n\n return true;\n }\n\n handleClearSpec = (e) => {\n const { dataOfSpecEditing, handleDataChange } = this.props;\n e.preventDefault();\n const specList = dataOfSpecEditing;\n const specListCleared = specList.map((spec) => ({\n test: spec.test,\n test_type: \"\",\n specs: [],\n }));\n handleDataChange(specListCleared);\n // this.props.handleSaveSpec(true);\n }\n\n handleSaveSpec = async (e) => {\n const {\n handleSaveSpec, handleSpecChanged, fromModal, handleClosingEditSpec,\n } = this.props;\n\n this.saveConfirmation(true);\n\n e.preventDefault();\n if (this.state.saveConfirmation) { // eslint-disable-line\n this.saveConfirmation(false);\n const response = await handleSaveSpec();\n\n if (response === true) {\n if (fromModal) {\n handleClosingEditSpec(true);\n } else {\n this.setState({\n editing: false,\n addingSpecState: false,\n });\n\n handleSpecChanged(false);\n }\n }\n }\n }\n\n handleConfirmationPopup() {\n const { saveConfirmation, addingSpecState } = this.state;\n const { identifier } = this.props;\n\n if (saveConfirmation && addingSpecState) {\n return (\n { this.setState({ saveConfirmation: false }); }, this.handleSaveSpec]}\n />\n );\n }\n\n if (saveConfirmation && !addingSpecState) {\n return (\n { this.setState({ saveConfirmation: false }); }, this.handleSaveSpec]}\n />\n );\n }\n\n return <>;\n }\n\n handleExitModal() {\n const {\n confirmExitModalDisplayToggle, handleExitEdit, specChanged, valueHasBeenEdited,\n } = this.props;\n const { editing } = this.state;\n\n if (editing && specChanged) {\n const response = confirmExitModalDisplayToggle();\n this.setState({\n editing: response,\n });\n } else {\n handleExitEdit(false, valueHasBeenEdited);\n }\n }\n\n handleEditButtonClicked() {\n const { fromModal, dataOfSpecEditing } = this.props;\n this.setState({\n editing: true,\n });\n\n if (!fromModal) {\n if (dataOfSpecEditing.length !== 0) {\n const response = checkIfSpecsComplete(dataOfSpecEditing);\n this.setState({\n specsComplete: response,\n });\n } else {\n this.setState({\n specsComplete: false,\n });\n }\n }\n }\n\n callProperUpdateDataFunction = (specList) => {\n const { handleDataChange, handleSpecChanged } = this.props;\n\n handleDataChange(specList);\n handleSpecChanged(true);\n\n const response = checkIfSpecsComplete(specList);\n this.setState({\n specsComplete: response,\n });\n }\n\n saveConfirmation(value) {\n this.setState({\n saveConfirmation: value,\n });\n\n return value;\n }\n\n renderButtons() {\n const { editing, specsComplete, addingSpecState } = this.state;\n const { dataOfSpecEditing } = this.props;\n\n let title = \"\";\n if (!specsComplete) {\n title = \"Must fill out all of the specs\";\n }\n\n if (addingSpecState && dataOfSpecEditing.length) {\n return (\n <>\n
    \n \n \n Add\n \n \n \n );\n }\n\n if (!editing && dataOfSpecEditing.length) {\n return (\n <>\n
    \n \n Edit\n \n \n );\n }\n if (dataOfSpecEditing.length) {\n return (\n <>\n
    \n \n \n Update\n \n \n \n );\n }\n\n return null;\n }\n\n renderTable() {\n const { editing, addingSpecState } = this.state;\n const {\n addingSpec, dataOfSpecEditing, loading,\n } = this.props;\n if (!loading) {\n if (!dataOfSpecEditing.length) {\n return (\n
    \n \n
    \n No Tests Found\n
    \n
    \n );\n }\n\n if (editing || addingSpecState) {\n return (\n \n );\n }\n\n return (\n \n );\n }\n return null;\n }\n\n render() {\n const {\n fromModal, identifier,\n } = this.props;\n\n const canAddSpec = hasPermission(\"add_spec\");\n\n return (\n
    \n
    \n {!fromModal && (\n \n )}\n {identifier}\n
    \n
    \n {this.renderTable()}\n {this.handleConfirmationPopup()}\n
    \n
    \n { canAddSpec ? this.renderButtons() : null}\n
    \n\n
    \n );\n }\n}\n\nEditSpec.contextType = AppContext; // allows class component to consume context, access via this.context\nexport default EditSpec;\n","import React from \"react\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport closeFilterIcon from \"../../../../../assets/images/product/lightBlueCancelIcon.png\";\nimport \"./FilterButton.css\";\n\nexport default class FilterButton extends React.Component {\n parseFilter = () => {\n const { handleFilterToggle, filterText } = this.props;\n\n let parsedText = filterText.split(\" \")[1];\n\n if (parsedText === \"Added\") {\n parsedText = \"Added\";\n } else {\n parsedText = \"Pending\";\n }\n\n handleFilterToggle(parsedText.toLowerCase());\n }\n\n render() {\n const {\n isActive,\n filterText,\n // handleCloseFilterClick,\n disableBlock,\n color,\n } = this.props;\n\n return (\n \n
    \n
    \n
    {filterText}
    \n {isActive && (\n \n )}\n
    \n \n );\n }\n}\n","import React from \"react\";\nimport \"./loading.css\";\n\nexport default function Loading() {\n return (\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\nimport Highlighter from \"react-highlight-words\";\nimport { Skeleton } from \"antd\";\nimport SkeletonButton from \"antd/es/skeleton/Button\";\nimport StyledButton from \"../../../../../Common/UIComponents/StyledButton\";\nimport pendingIcon from \"../../../../../../assets/images/product/plusMidnight.png\";\nimport \"./SpecStatusItem.css\";\n\nexport default class SpecStatusItem extends React.Component {\n render() {\n const {\n item,\n index,\n handleEditSpecClick,\n loadingNewContent,\n loading,\n searchValue,\n } = this.props;\n\n if (loading && !loadingNewContent) {\n return (\n \n \n
    \n \n \n
    \n \n \n );\n }\n\n return (\n \n \n
    \n
    \n \n
    \n
    \n {(item.status !== \"added\" && item.status !== \"pending\") &&
    }\n { item.status === \"added\"\n && (\n handleEditSpecClick(e, index, \"added\")}\n >\n \n Spec Added\n \n )}\n { item.status === \"pending\"\n && (\n handleEditSpecClick(e, index, \"pending\")}\n >\n
    \n \n Add Specs\n
    \n \n )}\n
    \n
    \n \n \n );\n }\n}\n","import React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport NoResults from \"../../../../../Common/NoResults\";\nimport emptyStateIcon from \"../../../../../../assets/images/EmptyState_V2.png\";\nimport Loading from \"../Loading\";\nimport SpecStatusItem from \"./SpecStatusItem\";\n\nexport default class SpecStatusItemList extends React.Component {\n render() {\n const {\n tableData,\n handleEditSpecClick,\n loadingNewContent,\n specManagerScrollbar,\n loading,\n searchValue,\n } = this.props;\n // console.log(\"tableData\", tableData[0]);\n\n // console.log(\"spec manager data\", tableData);\n\n const handleScrollToBottom = (e) => {\n const { handlePageChangeScroll } = this.props;\n const tolerance = 3;\n const bottom = Math.abs(Math.ceil(e.contentScrollHeight - e.scrollTop) - Math.ceil(e.clientHeight)) <= tolerance;\n if (bottom) {\n handlePageChangeScroll();\n }\n };\n\n if (!loading && tableData.length === 0) {\n return (\n \n \n \n );\n }\n\n let items = tableData;\n if (loading && !loadingNewContent) {\n items = [...Array(7).keys()];\n }\n\n return (\n handleScrollToBottom(e)}\n >\n \n \n \n {/* Product ID */}\n {/* Item */}\n {/* Product Name\n Spec State */}\n \n \n \n {items.map((item, i) => (\n \n ))}\n \n \n {loadingNewContent && }\n \n );\n }\n}\n","import React from \"react\";\nimport { toast } from \"react-toastify\";\nimport \"./SpecManager.css\";\nimport SpecManagerSearch from \"./SpecManagerSearch\";\nimport EditSpec from \"./EditSpec\";\nimport FilterButton from \"./FilterButton\";\nimport ConfirmModal from \"./ConfirmModal\";\nimport SpecStatusItemList from \"./SpecStatusItemList/SpecStatusItemList\";\n\nimport {\n getEnvSpecsData,\n} from \"../../../../../actions/envReports\";\nimport pendingIcon from \"../../../../../assets/images/product/dark-pending.png\";\nimport addedIcon from \"../../../../../assets/images/product/addFilterMidnight.png\";\nimport {\n parseSpecDetail, formatSpec, handleCheckUnit, rangeIsMissingValue,\n} from \"./Helper\";\n\nclass SpecManager extends React.Component {\n constructor(props) {\n super(props);\n this.specManagerScrollbar = React.createRef();\n const {\n isEditingSpec, locationId, identifier, originalSpecData,\n } = this.props;\n this.state = {\n specFilter: \"\", // can be \"pending\" or \"added\"\n files: [],\n editingSpec: isEditingSpec !== undefined ? isEditingSpec : false,\n addingSpec: false,\n locationId: locationId || \"\",\n dataOfSpecEditing: originalSpecData || [],\n searchValue: \"\",\n disableBlock: true,\n nextPageLink: \"\",\n loadingNewContent: false,\n loadingEditSpecData: false,\n identifierFields: [], // ex: [\"swab_number\", \"section\", \"zone\"]\n identifier: identifier || \"\",\n };\n }\n\n componentDidMount = async () => {\n const { changeSpecManagerMode, fromModal, handleClosingEditSpec } = this.props;\n const { specFilter, searchValue, locationId } = this.state;\n\n if (typeof changeSpecManagerMode === \"function\") {\n changeSpecManagerMode();\n }\n\n if (fromModal) {\n const params = {\n filter: \"\",\n search: \"\",\n location_id: locationId,\n specs: \"\",\n page: 1,\n };\n\n const response = await getEnvSpecsData(params);\n\n if (response && response.files) {\n const data = response.files;\n data.forEach((spec) => {\n const specDetail = parseSpecDetail(spec);\n spec.test_type = specDetail.test_type;\n spec.specs = specDetail.specs;\n });\n this.setState({\n dataOfSpecEditing: data,\n });\n } else {\n toast.error(\"Failed to get spec data.\");\n handleClosingEditSpec();\n }\n } else {\n this.getInitialData(specFilter, searchValue, locationId);\n }\n }\n\n getInitialData = (specFilter = \"\", searchValue = \"\", locationId = \"\", scrollToTop = false) => {\n // const { handleSpecManagerToggle } = this.props;\n this.setState({ disableBlock: true });\n this.apiGetSpecsData(specFilter, searchValue, locationId, scrollToTop);\n // .then((result) => {\n // if (result && result.files) {\n // const {\n // nextPageLink,\n // } = result.pages;\n // this.setState({\n // files: result.files,\n // identifierFields: result.pattern.split(\"-\"),\n // nextPageLink,\n // disableBlock: false,\n // });\n // }\n // // handleSpecManagerToggle();\n // });\n }\n\n handlePageChangeScroll = () => {\n const {\n nextPageLink: reqUrl,\n specFilter,\n searchValue,\n locationId,\n loadingNewContent,\n files: currentFiles,\n } = this.state;\n if (reqUrl !== \"\" && !loadingNewContent) {\n this.setState({ loadingNewContent: true }, () => this.specManagerScrollbar.current.scrollToBottom());\n const page = reqUrl ? reqUrl.split(\"page=\")[1].split(\"&\")[0] : \"1\";\n const scrollToTop = false;\n this.apiGetSpecsData(specFilter, searchValue, locationId, scrollToTop, page).then((result) => {\n if (result && result.files) {\n const {\n nextPageLink,\n } = result.pages;\n this.setState({\n files: [...currentFiles, ...result.files],\n nextPageLink,\n loadingNewContent: false,\n });\n }\n });\n }\n }\n\n apiGetSpecsData = async (specFilter = \"\", searchValue = \"\", locationId = \"\", scrollToTop = false, page = \"1\") => {\n this.setState({ disableBlock: true });\n\n const payload = {\n filter: specFilter,\n search: searchValue,\n location_id: locationId,\n page,\n };\n const result = await getEnvSpecsData(payload);\n // console.log(\"apiGetSpecsData\", result);\n if (result && result.success) {\n // console.log(result);\n\n const {\n nextPageLink,\n } = result.pages;\n if (!locationId) { // don't update files if loading edit spec modal (will overwrite spec files)\n this.setState({\n files: result.files,\n identifierFields: result.pattern.split(\".\"),\n nextPageLink,\n disableBlock: false,\n });\n } this.setState({\n disableBlock: false,\n });\n\n if (result.files.length > 0 && scrollToTop) {\n this.specManagerScrollbar.current.scrollToTop();\n }\n\n return result;\n }\n // console.log(\"failed\", result);\n toast.error(\"Failed to get spec data.\");\n this.setState({ disableBlock: false });\n return null;\n }\n\n handleSearchChange = async (value) => {\n // const { searchValue } = this.state;\n // console.log(\"value for parent search: \", value, searchValue);\n const { specFilter, locationId, searchValue } = this.state;\n const scrollToTop = true;\n const succeeded = await this.apiGetSpecsData(specFilter, value, locationId, scrollToTop);\n this.setState({ searchValue: succeeded ? value : searchValue });\n return succeeded;\n // this.specManagerScrollbar.current.scrollToTop();\n }\n\n handleCloseFilterClick = (e) => {\n e.stopPropagation();\n this.handleFilterToggle(\"\");\n }\n\n handleFilterToggle = async (specFilter) => {\n const { specFilter: specFilterFromState, searchValue, locationId } = this.state;\n if (specFilter === specFilterFromState) {\n specFilter = \"\";\n }\n const scrollToTop = true;\n const succeeded = await this.apiGetSpecsData(specFilter, searchValue, locationId, scrollToTop);\n this.setState({ specFilter: succeeded ? specFilter : specFilterFromState });\n // console.log(specFilterFromState, \"new spec\", specFilter);\n }\n\n apiEditSpecsData = async (params) => {\n const result = await getEnvSpecsData(params, true);\n if (result && result.success) {\n return result;\n }\n return null;\n }\n\n handleEditSpecClick = (e, i, flag) => {\n // \"Added\" -> \"added\" and.... \"Pending\" -> \"pending\"\n e.preventDefault();\n e.stopPropagation();\n\n const { files } = this.state;\n\n // if (flag === \"add\") {\n let locationId;\n if (flag === \"pending\") {\n locationId = files[i].location_id;\n this.setState({\n addingSpec: true,\n editingSpec: false,\n locationId: files[i].location_id,\n identifier: files[i].identifier,\n });\n // } else if (flag === \"edit\") {\n } else if (flag === \"added\") {\n locationId = files[i].location_id;\n this.setState({\n addingSpec: false,\n editingSpec: true,\n locationId: files[i].location_id,\n identifier: files[i].identifier,\n });\n }\n\n if (flag === \"pending\" || flag === \"added\") {\n this.setState({ loadingEditSpecData: true });\n this.apiGetSpecsData(\"\", \"\", locationId).then((result) => {\n let dataOfSpecEditing = result.files;\n dataOfSpecEditing = dataOfSpecEditing.map((spec) => parseSpecDetail(spec));\n this.setState({\n loadingEditSpecData: false,\n dataOfSpecEditing,\n });\n });\n } else {\n toast.error(`Incorrect spec flag: ${flag}`);\n }\n }\n\n refreshEditSpecDataAfterEdit = () => {\n const { locationId } = this.state;\n this.setState({ loadingEditSpecData: true });\n this.apiGetSpecsData(\"\", \"\", locationId).then((result) => {\n let dataOfSpecEditing = result.files;\n dataOfSpecEditing = dataOfSpecEditing.map((spec) => parseSpecDetail(spec));\n this.setState({ loadingEditSpecData: false, dataOfSpecEditing });\n });\n }\n\n handleDataChange = (specList) => {\n this.setState({ dataOfSpecEditing: [...specList] });\n }\n\n handleExitEditSpec = (exitSpecManager = false, refreshSpecManagerData = false) => {\n const {\n handleSpecManagerToggle,\n fromModal,\n handleClosingEditSpec,\n setExitingSpecManager,\n setSpecDataChanged,\n setConfirmExitModalDisplay,\n } = this.props;\n if (exitSpecManager) {\n if (fromModal) {\n handleClosingEditSpec();\n } else {\n handleSpecManagerToggle();\n }\n setConfirmExitModalDisplay(false);\n setExitingSpecManager(false);\n setSpecDataChanged(false);\n } else {\n if (refreshSpecManagerData) {\n const { specFilter, searchValue } = this.state;\n this.apiGetSpecsData(specFilter, searchValue);\n }\n this.setState({\n editingSpec: false,\n addingSpec: false,\n locationId: \"\",\n identifier: \"\",\n dataOfSpecEditing: [],\n });\n setConfirmExitModalDisplay(false);\n setExitingSpecManager(false);\n setSpecDataChanged(false);\n }\n }\n\n handleSaveSpec = async (isSpecCleared = false) => {\n const {\n locationId, dataOfSpecEditing,\n } = this.state;\n const { toggleSpecsUpdated, fromModal, setValueHasBeenEdited } = this.props;\n let specList = formatSpec(dataOfSpecEditing);\n if (rangeIsMissingValue(specList)) {\n toast.error(\"Please input all values for the range.\");\n return false;\n }\n specList = handleCheckUnit(specList);\n\n const params = {\n location_id: locationId,\n specs: isSpecCleared ? [] : specList,\n };\n\n let result = false;\n await this.apiEditSpecsData(params).then((response) => {\n setValueHasBeenEdited(true);\n if (response && response.success) {\n toast.success(\"Spec successfully edited.\");\n if (toggleSpecsUpdated) {\n toggleSpecsUpdated(true);\n }\n\n if (!fromModal) {\n this.refreshEditSpecDataAfterEdit();\n }\n\n result = true;\n } else {\n this.refreshEditSpecDataAfterEdit();\n toast.error(\"Failed to edit spec.\");\n }\n });\n\n return result;\n }\n\n getHeader = () => {\n const { identifierFields } = this.state;\n const { fields, excludedField } = this.props;\n const fieldsCopy = [...fields];\n fieldsCopy.push(excludedField);\n const fieldMap = {};\n fieldsCopy.forEach((field) => {\n if (identifierFields.includes(field.json_field)) {\n fieldMap[field.json_field] = field.title_field;\n }\n });\n // console.log(fieldMap);\n return identifierFields.map((field) => fieldMap[field]).join(\" . \");\n }\n\n render() {\n const {\n files,\n specFilter,\n addingSpec,\n editingSpec,\n dataOfSpecEditing,\n disableBlock,\n identifier,\n searchValue,\n loadingNewContent,\n loadingEditSpecData,\n } = this.state;\n const {\n // handleSpecManagerToggle,\n isEditingSpec,\n fromModal,\n handleClosingEditSpec,\n valueHasBeenEdited,\n setSpecDataChanged,\n exitingSpecManager,\n specDataChanged,\n confirmExitModalDisplay,\n confirmExitModalDisplayToggle,\n } = this.props;\n\n return (\n
    \n
    \n
    \n {addingSpec || editingSpec\n ? (\n <>\n {addingSpec\n && (\n
    \n Adding specs here will automatically check and update the status of the spec of your reports.\n
    \n )}\n {editingSpec\n && (\n
    \n Note: Editing the specs here will impact the outcome of all the files associated with these specs.\n
    \n )}\n
    \n
    \n
    \n \n \n )\n : (\n <>\n
    \n \n {\" \"}\n {this.getHeader()}\n \n
    \n
    \n \n
    \n \n
    \n \n
    \n {/* */}\n
    \n
    \n
    \n\n \n
    \n \n )}\n
    \n
    \n {confirmExitModalDisplay\n && (\n this.handleExitEditSpec(exitingSpecManager), confirmExitModalDisplayToggle]}\n />\n )}\n
    \n );\n }\n}\nexport default SpecManager;\n","import React, { useState } from \"react\";\nimport { Drawer } from \"antd\";\nimport \"./SpecManagerDrawer.css\";\nimport closeIcon from \"../../../../../assets/images/product/crossWhite.png\";\nimport SpecManager from \"./SpecManager\";\n\nexport default function SpecManagerDrawer({\n showSpecManager,\n locationId,\n handleSpecManagerToggle,\n handleDataRefreshAfterExitingSpecManager,\n fields,\n excludedField,\n fromModal,\n toggleEditSpec,\n isEditingSpec,\n identifier,\n}) {\n const [valueHasBeenEdited, setValueHasBeenEdited] = useState(false); // if user has saved edits, refresh data on close\n const [specDataChanged, setSpecDataChanged] = useState(false); // if user has edited any values in edit/add spec, show modal on close\n const [exitingSpecManager, setExitingSpecManager] = useState(false);\n const [confirmExitModalDisplay, setConfirmExitModalDisplay] = useState(false);\n\n const handleClosingEditSpec = (fromSaveSpec = false) => {\n toggleEditSpec();\n if (valueHasBeenEdited || fromSaveSpec) {\n handleDataRefreshAfterExitingSpecManager();\n setValueHasBeenEdited(false);\n }\n };\n\n const confirmExitModalDisplayToggle = () => {\n setConfirmExitModalDisplay(!confirmExitModalDisplay);\n setExitingSpecManager(false);\n return !confirmExitModalDisplay;\n };\n\n const handleCloseSpecManager = () => {\n if (specDataChanged) {\n confirmExitModalDisplayToggle();\n setExitingSpecManager(true);\n } else if (fromModal) {\n toggleEditSpec();\n } else {\n handleSpecManagerToggle();\n }\n if (valueHasBeenEdited) {\n handleDataRefreshAfterExitingSpecManager();\n setValueHasBeenEdited(false);\n }\n };\n\n return (\n \n Spec Manager\n \n \n)}\n >\n \n \n );\n}\n","import React, { Component } from \"react\";\n\nimport PDFMerger from \"pdf-merger-js/browser\";\nimport { toast } from \"react-toastify\";\n\n// import PinsDragLayer from \"./Components/MapView/PinsDragLayer\";\n// import SpecManagerToggleButton from \"./Components/SpecManager/SpecManagerToggleButton\";\nimport CreateEnvModal from \"./Components/CreateEnvModal/CreateEnvModal\";\nimport EmptyPage from \"./Components/EmptyPage\";\nimport EnvConfirmModal from \"./Components/EnvConfirmModal\";\nimport AnalyticsListView from \"./Components/ListView/AnalyticsListView\";\nimport AnalyticsMapView from \"./Components/MapView/AnalyticsMapView\";\nimport { zoomToQuadrant, resetZoom } from \"./Components/MapView/mapHelper\";\nimport { calculateQuadrantGivenXYCoord } from \"./Components/pinHelper\";\nimport ReportPreviewModal from \"./Components/Preview/ReportPreviewModal\";\nimport ReportView from \"./Components/ReportView/ReportView\";\nimport SpecManagerDrawer from \"./Components/SpecManager/SpecManagerDrawer\";\n\nimport { getFileFromS3WithPresigned, deleteFileFromS3WithPresigned } from \"../../../utils/helpers\";\n\nimport {\n getEnvironmentFields,\n addSwab,\n editSwab,\n getSwabs,\n getMapTitles,\n editMapTitle,\n deleteMapTitle,\n} from \"../../../actions/envAnalytics\";\n\nimport \"./analytics.css\";\n\nexport default class Analytics extends Component {\n transformWrapperRef = React.createRef();\n\n envCalendarRef = React.createRef();\n\n searchRef = React.createRef();\n\n mapComponentRef = React.createRef();\n\n getPointsAbortController = null;\n\n constructor(props) {\n super(props);\n this.state = {\n listViewDisplay: true,\n pinMap: new Map(),\n activeTabIndexInMapView: \"0\", // set default to \"0\" to handle the no map case\n tabsInMapView: [], // list of objects {image_link: \"\", image_height: 0, image_width: 0, title: \"title\"}\n indexOfQuadrantHoverOver: -1,\n selectedLocationID: \"\", // locationID for selected pin (may or may not match displayTooltipLocationID. i.e: when searching, a pin is not selected but tooltip should still be displayed)\n displayTooltipLocationID: \"\", // locationID for pin that should be displaying a tooltip\n mapKey: true, // used as key in TransformWrapper --> used to force re-init of map when toggling full map mode (reloads image with correct dimensions)\n quadrantSelected: -1, // not selected: -1, or 0, 1, 2, 3\n imageSrc: null,\n filterSelected: -1, // -1: no filter selected, 0: in process, 1: in spec, 2: out of spec\n filterByDateFrom: \"\",\n filterByDateTo: \"\",\n isAddingNewSwab: false,\n isPinningSwab: false,\n isPinningNewSwab: false, // needed for pindetailblock to not display choosing quadrants when pinning new swab\n searchResultSelected: \"\", // search input keyword\n loadingSwabs: true, // loading state for apiGetSwabs\n loadingMap: true, // loading state for loading map\n displayNoResultFound: false,\n // area_lists: {}, // depending on company link pattern will be zone/section lists used in create new swab\n fields: [], // from envreportfields, ex: [{title_field: \"Swab Number\", json_field: \"swab_number\"},...] already in order\n index0: \"\", // title field for the swab card\n linkPatternFields: [],\n sampleIDFields: [],\n delimiter: \"\", // delimiter for sample id\n isClickingQuadrant: false, // needed for the grayed out effect over the list view except the selected pin detail block when clicking a quadrant to pin a swab\n ifDeleteTitleClicked: false, // when clicked, show delete confirm modal\n titleToDelete: \"\",\n showReportView: false,\n dataArrvied: false, // used to determined if the both pin list and pin map data are arrived\n showCreateEnvModal: false,\n ifOnlyUploadSwabFile: false, // when click \"Upload Swab File\" from the top of swab list, set it to true\n showPreview: false,\n previewUrlList: [],\n showEmptyPage: false, // used to determine to show the landing empty page (when there is no any swab, and map)\n openCreateEnvModalFromTab: false,\n showSpecManager: false,\n showSpecManagerEdit: false, // whether to show edit spec page on mount of spec manager\n specManagerEditIdentifier: \"\", // identifier of swab whose spec is being edited in spec manager\n reportViewKey: false,\n };\n }\n\n componentDidMount() {\n // get all image titles of the current user\n const {\n activeTabIndexInMapView,\n } = this.state;\n this.apiGetFields().then(({\n allFields, index0, delimiter, linkPatternFields, sampleIDFields,\n }) => {\n if (!index0 || allFields.length === 0 || !linkPatternFields || linkPatternFields.length === 0) {\n toast.error(\"Missing fields, index0, and/or link pattern fields\");\n } else if (allFields.length > 0 && allFields.filter((field) => field.json_field === index0).length === 0) {\n toast.error(\"index0 is missing from fields\");\n }\n this.setState({\n index0, fields: allFields, delimiter, linkPatternFields, sampleIDFields,\n });\n this.apiGetMapTitles().then(({ success, mapTitles }) => {\n // this.setFields(linkPattern, allFields);\n if (!success) {\n toast.error(\"Unable to fetch maps.\");\n }\n this.setState({ tabsInMapView: mapTitles });\n if (mapTitles?.length === 0) {\n this.setState({ loadingMap: false });\n }\n if (activeTabIndexInMapView === \"0\" && mapTitles.length > 0) { // if there is a map, then set the active tab to index 1\n this.setState({ activeTabIndexInMapView: \"1\" }, () => this.updatePinsList(mapTitles.length > 0 ? mapTitles[0].title : \"\"));\n } else {\n this.updatePinsList(mapTitles.length > 0 ? mapTitles[activeTabIndexInMapView - 1].title : \"\");\n }\n });\n });\n // const tabsInMapView = await this.apiGetMapTitles();\n // // const tabsInMapView = [\"Food Processing Area testtesttest\", \"Packaging Area test\", \"Packaging Area testtest\", \"Testing Area\"];\n // this.setState({ tabsInMapView });\n // // fetch the swabs on the current image\n // this.updatePinsList(tabsInMapView[this.state.activeTabIndexInMapView - 1]);\n }\n\n // /* Given a link pattern and a json-title mapping of all report table fields,\n // returns a list of company's dynamic fields with json-title mapping */\n // setFields = (linkPattern, allFields) => {\n // const fields = linkPattern.split(\".\");\n // const fieldsWithMap = allFields.filter((field) => fields.includes(field.json_field)); // envreportfields returns all fields in reports table, we just want the fields given in link pattern\n // this.setState({ fields: fieldsWithMap });\n // }\n\n // api call to get dynamic fields in order\n apiGetFields = async () => {\n const result = await getEnvironmentFields();\n // console.log(result);\n\n if (result && result.success) {\n const {\n fields, index0, delimiter, link_pattern_fields, sampleid_fields,\n } = result;\n const fieldsMap = {};\n fields.forEach((field) => { fieldsMap[field.json_field] = field; });\n const linkPatternFieldsArray = link_pattern_fields.map((json_field) => (fieldsMap[json_field]));\n return {\n allFields: fields, index0, delimiter, linkPatternFields: linkPatternFieldsArray, sampleIDFields: sampleid_fields,\n };\n }\n toast.error(result.message);\n\n return {\n allFields: [], index0: \"\", delimiter: \"\", linkPatternFields: [], sampleIDFields: [],\n };\n }\n\n apiGetMapTitles = async () => {\n const resp = await getMapTitles();\n // console.log(resp, \"maptitles\");\n if (resp.success) {\n return resp;\n }\n return resp;\n }\n\n endPinningSwab = () => {\n // console.log(\"end pinning\");\n this.setState({\n isPinningSwab: false, selectedLocationID: \"\", isPinningNewSwab: false,\n });\n }\n\n handleTabSelectInMapView = (newActiveTabIndex, status) => {\n // console.log(\"handle select\", newActiveTabIndex);\n const { tabsInMapView, activeTabIndexInMapView } = this.state;\n if (newActiveTabIndex !== \"addMapTitleTabActive\" && newActiveTabIndex !== \"addMapTitleTabInactive\"\n && (newActiveTabIndex !== activeTabIndexInMapView || status === \"delete\")) { // status is \"delete\" when deleting a title, used to handle the case of deleting the first title\n this.setState({\n activeTabIndexInMapView: newActiveTabIndex,\n indexOfQuadrantHoverOver: -1,\n displayTooltipLocationID: \"\",\n selectedLocationID: \"\",\n quadrantSelected: -1,\n filterSelected: -1,\n listViewDisplay: true,\n displayNoResultFound: false,\n isAddingNewSwab: false,\n isPinningSwab: false,\n imageSrc: null,\n loadingSwabs: true,\n loadingMap: true,\n searchResultSelected: \"\",\n });\n\n this.updatePinsList(tabsInMapView.length > 0 ? tabsInMapView[newActiveTabIndex - 1].title : \"\");\n }\n }\n\n handleUploadImage = ({\n title, image_height, image_width, path,\n }) => {\n const { tabsInMapView } = this.state;\n tabsInMapView[tabsInMapView.length] = {\n title, image_link: path, image_height, image_width,\n };\n const updatedActiveTabIndexInMapView = tabsInMapView.length.toString();\n\n this.setState({ tabsInMapView: [...tabsInMapView] }, () => {\n this.handleTabSelectInMapView(updatedActiveTabIndexInMapView);\n });\n }\n\n handleSpecManagerToggle = () => {\n const { showSpecManager } = this.state;\n this.setState({\n showSpecManager: !showSpecManager,\n });\n }\n\n setSelectedLocationID = (locationID) => {\n const { selectedLocationID } = this.state;\n if (selectedLocationID === locationID) {\n this.setState({ selectedLocationID: \"\", quadrantSelected: -1 });\n return;\n }\n this.setState({ selectedLocationID: locationID, quadrantSelected: -1, indexOfQuadrantHoverOver: -1 });\n // if (index !== -1) {\n // this.setState({ mapKey: !mapKey });\n // }\n }\n\n handleHoverQuadrant = (index) => {\n this.setState({ indexOfQuadrantHoverOver: index });\n }\n\n setDisplayTooltipLocationID = (locationID) => {\n const { displayTooltipLocationID } = this.state;\n if (displayTooltipLocationID === locationID) {\n this.setState({ displayTooltipLocationID: \"\" });\n return;\n }\n this.setState({ displayTooltipLocationID: locationID });\n }\n\n toggleReportView = () => {\n const { showReportView } = this.state;\n this.setState({ showReportView: !showReportView });\n }\n\n /**\n * Set a new key to force the ReportView to rerender\n */\n forceReportViewRerender = () => {\n const { reportViewKey } = this.state;\n this.setState({ reportViewKey: !reportViewKey });\n }\n\n handleSearch = async (searchValue = \"\") => { // default clears search\n const {\n searchResultSelected,\n filterSelected,\n filterByDateFrom,\n filterByDateTo,\n } = this.state;\n if (searchValue !== searchResultSelected) { // only make the api call if necessary\n this.setState({ searchResultSelected: searchValue });\n const success = await this.updatePinsList(null, searchValue, filterSelected, filterByDateFrom, filterByDateTo);\n if (!success) {\n if (success !== null) { // null means the call was cancelled\n toast.error(\"Failed to fetch swabs\");\n this.setState({\n pinMap: new Map(),\n displayNoResultFound: true,\n selectedLocationID: \"\",\n displayTooltipLocationID: \"\",\n });\n }\n }\n this.handleSelectQuadrant(-1); // zoom out\n }\n }\n\n handleSelectFilter = async (filterSelected) => {\n const {\n filterSelected: currentFilterSelected,\n searchResultSelected,\n filterByDateFrom,\n filterByDateTo,\n } = this.state;\n\n let _filter = filterSelected;\n\n if (filterSelected === -1 || currentFilterSelected === filterSelected) { // if clear filter\n _filter = -1;\n }\n this.setState({ filterSelected: _filter });\n const success = await this.updatePinsList(null, searchResultSelected, _filter, filterByDateFrom, filterByDateTo);\n if (!success) {\n if (success !== null) { // null means the call was cancelled\n toast.error(\"Failed to fetch swabs\");\n this.setState({\n pinMap: new Map(),\n displayNoResultFound: true,\n selectedLocationID: \"\",\n displayTooltipLocationID: \"\",\n });\n }\n }\n this.handleSelectQuadrant(-1); // zoom out\n }\n\n handleFilterByDate = async (dateStart, dateEnd) => {\n const {\n filterSelected,\n searchResultSelected,\n filterByDateFrom,\n filterByDateTo,\n } = this.state;\n\n let date_from = dateStart;\n let date_to = dateEnd;\n\n if ((dateStart === undefined || dateEnd === undefined)) { // if clear dates\n if (filterByDateFrom === \"\" && filterByDateTo === \"\") { // don't call api if date filter already cleared\n return;\n }\n date_from = \"\";\n date_to = \"\";\n }\n this.setState({\n filterByDateFrom: date_from, filterByDateTo: date_to,\n });\n const success = await this.updatePinsList(null, searchResultSelected, filterSelected, date_from, date_to);\n if (!success) {\n if (success !== null) { // null means the call was cancelled\n toast.error(\"Failed to fetch swabs\");\n this.setState({\n pinMap: new Map(),\n displayNoResultFound: true,\n selectedLocationID: \"\",\n displayTooltipLocationID: \"\",\n });\n }\n }\n this.handleSelectQuadrant(-1); // zoom out\n }\n\n toggleAddingSwab = () => {\n const {\n isAddingNewSwab, searchResultSelected, filterSelected, filterByDateFrom, filterByDateTo,\n } = this.state;\n if (!isAddingNewSwab) { // if we are toggling addingnewswab to be true, need to reset zoom\n resetZoom(this.transformWrapperRef, this.mapComponentRef);\n if (searchResultSelected || filterSelected > -1 || filterByDateFrom || filterByDateTo) { // only make api call if any filters applied\n this.updatePinsList();\n }\n this.setState({\n selectedLocationID: \"\",\n quadrantSelected: -1,\n indexOfQuadrantHoverOver: -1,\n filterSelected: -1,\n searchResultSelected: \"\",\n filterByDateFrom: \"\",\n filterByDateTo: \"\",\n });\n this.envCalendarRef.current.clearCalendar();\n this.searchRef.current.clearSearch();\n }\n this.setState({\n isAddingNewSwab: !isAddingNewSwab, displayTooltipLocationID: \"\", indexOfQuadrantHoverOver: -1,\n });\n }\n\n /** Clear filters, selected dates on calendar, and selected swab, if there are any */\n clearFilterCalendarAndSelected = () => {\n const {\n searchResultSelected, filterSelected, filterByDateFrom, filterByDateTo, displayTooltipLocationID, selectedLocationID,\n } = this.state;\n // if any filters applied, clear them\n if (searchResultSelected || filterSelected > -1 || filterByDateFrom || filterByDateTo) {\n this.setState({\n filterSelected: -1,\n searchResultSelected: \"\",\n filterByDateFrom: \"\",\n filterByDateTo: \"\",\n });\n this.envCalendarRef.current.clearCalendar();\n this.searchRef.current.clearSearch();\n }\n // unselect a swab if there was a selected one, and reset zoom to original\n if (displayTooltipLocationID !== \"\" || selectedLocationID !== \"\") {\n resetZoom(this.transformWrapperRef, this.mapComponentRef);\n this.setState({\n displayTooltipLocationID: \"\",\n selectedLocationID: \"\",\n });\n }\n }\n\n togglePinningNewSwab = () => {\n const { isPinningNewSwab } = this.state;\n this.setState({ isPinningNewSwab: !isPinningNewSwab });\n }\n\n updatePinInfo = async (flag, pinRelocatingLocationID, newPosition) => {\n const {\n pinMap,\n selectedLocationID,\n listViewDisplay,\n isPinningNewSwab,\n filterSelected,\n searchResultSelected,\n filterByDateFrom,\n filterByDateTo,\n } = this.state;\n\n let success;\n let locationID = selectedLocationID;\n if (pinRelocatingLocationID) {\n locationID = pinRelocatingLocationID;\n }\n\n if (pinMap.has(locationID)) {\n const pin = pinMap.get(locationID);\n if (flag === \"pinTheLocation\") {\n const quadrant = calculateQuadrantGivenXYCoord(newPosition);\n this.setState({ isPinningSwab: true });\n const editedPin = { ...pin, ...newPosition, quadrant };\n success = await this.apiEditSwab(editedPin);\n if (success) {\n const mapCopy = new Map(pinMap); // deep copy to trigger rerender\n mapCopy.set(locationID, editedPin);\n this.setState({ pinMap: mapCopy });\n if (listViewDisplay) { // not full map mode, getswabs so pindetailblock sorts correctly\n if (isPinningNewSwab) {\n await this.updatePinsList();\n this.setState({ filterSelected: -1, searchResultSelected: \"\" });\n } else {\n await this.updatePinsList(null, searchResultSelected, filterSelected, filterByDateFrom, filterByDateTo);\n }\n } else {\n this.setState({ isPinningSwab: false });\n } // don't need to getpoints again on fullmapmode, too slow\n }\n } else if (flag === \"removePin\") {\n const editedPin = { ...pin };\n editedPin.x_coordinate = null;\n editedPin.y_coordinate = null;\n editedPin.quadrant = null;\n success = await this.apiEditSwab({\n ...pin, x_coordinate: \"\", y_coordinate: \"\", category: \"Delete\",\n });\n if (success) {\n const mapCopy = new Map(pinMap);\n mapCopy.set(locationID, editedPin);\n this.setState({ pinMap: mapCopy, selectedLocationID: \"\", displayTooltipLocationID: \"\" });\n }\n } else if (flag === \"toggleDraggable\") {\n const givenPin = pinMap.get(locationID);\n givenPin.draggable = !givenPin.draggable;\n pinMap.set(locationID, givenPin);\n this.setState({\n selectedLocationID,\n });\n }\n }\n if (success) {\n this.setState({\n displayTooltipLocationID: \"\",\n indexOfQuadrantHoverOver: -1,\n });\n this.handleSelectQuadrant(-1, false);\n }\n return success;\n }\n\n handleAddNewSwab = async (swab_number, zone, section, swabDesc) => {\n const {\n pinMap,\n } = this.state;\n\n const resp = await this.apiAddSwab({\n swab_number, zone, section, description: swabDesc,\n });\n if (resp.success) {\n const newPin = {\n ...resp.swab,\n x_coordinate: null,\n y_coordinate: null,\n };\n // add new pin block to top of map\n const newPinMap = new Map([[newPin.location_id, newPin], ...pinMap]);\n this.setState({\n pinMap: newPinMap,\n });\n\n return { success: true, duplicate: false, newPin };\n }\n if (resp.message === \"Duplicate\") {\n return { success: false, duplicate: true };\n }\n toast.error(resp.message);\n return { success: false, duplicate: false };\n }\n\n toggleListViewDisplay = () => {\n let { listViewDisplay, mapKey } = this.state;\n listViewDisplay = !listViewDisplay;\n mapKey = !mapKey;\n const { pinMap } = this.state;\n if (listViewDisplay) {\n let shouldUpdatePin = false;\n pinMap.forEach((pin) => {\n if (pin.draggable) {\n delete pin.draggable;\n shouldUpdatePin = true;\n }\n });\n if (shouldUpdatePin) {\n this.setState({ pinMap });\n }\n }\n this.setState({\n listViewDisplay, mapKey, selectedLocationID: \"\", quadrantSelected: -1, indexOfQuadrantHoverOver: -1, displayTooltipLocationID: \"\",\n });\n }\n\n handleSelectQuadrant = (quadrantSelected, resetTheZoom = true) => {\n if (quadrantSelected > -1) {\n zoomToQuadrant(this.transformWrapperRef, quadrantSelected, this.mapComponentRef);\n } else if (resetTheZoom) { // when quadrant is deselected, sometimes we want to zoom out (cancelling pinning a swab), and sometimes we don't (click on map)\n resetZoom(this.transformWrapperRef, this.mapComponentRef);\n }\n this.setState({ quadrantSelected });\n }\n\n /** Updates pins when mapTitle changes (click on new tab), or after editing/adding point\n * @param {String} title title of the map. If it is null, refresh the swabs list without loading the map image\n * @param {String} searchValue search input\n * @param {String} filter out of spec, in spec, in process filters\n * @param {String} dateStart start date selected in calendar\n * @param {String} dateEnd end date selected in calendar\n */\n updatePinsList = async (title = null, searchValue = \"\", filter = \"\", dateStart = \"\", dateEnd = \"\") => {\n const noFiltersApplied = searchValue === \"\" && filter === \"\" && dateStart === \"\" && dateEnd === \"\";\n const { tabsInMapView, activeTabIndexInMapView, selectedLocationID } = this.state;\n let imageTitle = title;\n if (imageTitle === null) { // Do not load map image, just refresh swab list\n imageTitle = activeTabIndexInMapView === \"0\" ? \"\" : tabsInMapView[activeTabIndexInMapView - 1].title;\n }\n this.setState({ loadingSwabs: true });\n const loadSwabSuccess = await this.apiGetSwabs(imageTitle, searchValue, filter, dateStart, dateEnd)\n .then(async ({ success, cancelled, pinMap }) => {\n if (cancelled) { // don't do anything if call was cancelled\n return null;\n }\n if (title) { // only set new image src if landing on the page or switching maps\n await this.loadMapImage();\n } else if (title === \"\") { // no map titles, set source to null\n this.setState({ imageSrc: null, loadingMap: false });\n }\n if (success) {\n if (!pinMap.size || !pinMap.has(selectedLocationID)) {\n this.setState({\n selectedLocationID: \"\", displayTooltipLocationID: \"\",\n });\n }\n this.setState({\n pinMap: pinMap || new Map(),\n showEmptyPage: pinMap.size === 0 && tabsInMapView.length === 0 && noFiltersApplied,\n displayNoResultFound: title === null && pinMap.size === 0, // onMount and when switching maps, show upload swab file instead of no result\n });\n } else if (title) { // if the api call failed and we are switching to new map, set pinmap to empty\n toast.error(\"Failed to fetch swabs\");\n this.setState({\n pinMap: new Map(),\n showEmptyPage: tabsInMapView.length === 0 && noFiltersApplied,\n displayNoResultFound: true,\n selectedLocationID: \"\",\n displayTooltipLocationID: \"\",\n });\n }\n this.setState({\n loadingSwabs: false,\n dataArrvied: true,\n });\n return success;\n });\n\n return loadSwabSuccess;\n }\n\n loadMapImage = async () => {\n this.setState({ loadingMap: true });\n const { tabsInMapView, activeTabIndexInMapView } = this.state;\n const imageInfo = tabsInMapView[activeTabIndexInMapView - 1];\n let imageSrc = null;\n if (imageInfo && imageInfo.image_link) {\n const fileBlobObj = await getFileFromS3WithPresigned([imageInfo.image_link], \"private\");\n if (fileBlobObj && fileBlobObj[imageInfo.image_link]) {\n const imageBlob = fileBlobObj[imageInfo.image_link];\n imageSrc = window.URL.createObjectURL(imageBlob);\n } else {\n imageSrc = \"Not Found\";\n }\n this.setState({ imageSrc });\n }\n this.setState({ loadingMap: false });\n };\n\n /** Upload swabs parsed from file to backend\n * @param pointsList\n */\n // addListOfPoints = async (pointsList) => {\n // // const { tabsInMapView, activeTabIndexInMapView } = this.state;\n // // const { title } = tabsInMapView[activeTabIndexInMapView - 1];\n // // if (!title) {\n // // toast.error(\"Fail to upload swabs. No map title is selected.\");\n // // return;\n // // }\n // const failedSwabNumbers = [];\n // let nSwabsNoSwabNumber = 0;\n // const failedSwabRecord = [];\n // Promise.all(\n // pointsList.map(async (point) => {\n // const resp = await addSwab({ ...point }); // api already changed, should comment out this function\n // if (resp.message !== \"success\") {\n // failedSwabRecord.push(point);\n // if (point.swab_number === \"\" || point.swab_number === undefined) {\n // nSwabsNoSwabNumber++;\n // } else {\n // failedSwabNumbers.push(point.swab_number);\n // }\n // }\n // return Promise.resolve(resp.message);\n // }),\n // ).then(async () => {\n // if (failedSwabNumbers.length || nSwabsNoSwabNumber) {\n // if (failedSwabNumbers.length === pointsList.length) {\n // toast.error(\"Failed to add swabs\");\n // } else if (failedSwabNumbers.length <= 10) {\n // toast.error(`Failed to add some swabs: ${failedSwabNumbers.join(\", \")}`);\n // } else {\n // toast.error(`Failed to add some swabs: ${failedSwabNumbers.slice(0, 10).join(\", \")}, ...`);\n // }\n // } else {\n // toast.success(\"Successfully added swabs\");\n // }\n // const { success, pinMap } = await this.apiGetSwabs();\n // // console.log(success, pinMap);\n // if (success) {\n // this.setState({\n // pinMap: pinMap || new Map(),\n // });\n // }\n // });\n // }\n\n apiAddSwab = async (swab) => {\n let resp = await addSwab({ pointsList: [swab] });\n if (resp && resp.success && resp.successSwabs.length === 1 && !resp.failedSwabs.length) {\n resp = { success: true, ...resp.successSwabs[0] };\n } else {\n resp = {\n success: false,\n message: resp?.failedSwabs?.length === 1\n ? resp.failedSwabs[0].message ?? \"Failed to add swab\" : \"Failed to add swab\",\n };\n }\n return resp;\n }\n\n apiEditSwab = async (payload) => {\n const { activeTabIndexInMapView, tabsInMapView } = this.state;\n payload.title = tabsInMapView[activeTabIndexInMapView - 1].title;\n const resp = await editSwab(payload);\n if (!resp.success) {\n toast.error(resp.message);\n }\n return resp.success;\n }\n\n apiGetSwabs = async (mapTitle = \"\", searchValue = \"\", specFlag = -1, dateStart = \"\", dateEnd = \"\") => { // get swabs, including filtered swabs\n const params = {\n mapTitle, searchValue, specFlag, dateStart, dateEnd,\n };\n\n const newController = new AbortController();\n if (this.getPointsAbortController) {\n this.getPointsAbortController.abort();\n }\n this.getPointsAbortController = newController;\n\n const resp = await getSwabs(params, newController.signal);\n\n if (newController.signal.aborted) {\n return { cancelled: true };\n }\n\n if (resp && resp.success) {\n this.getPointsAbortController = null;\n return { success: resp.success, ...resp.data }; // pinMap, dates\n }\n this.getPointsAbortController = null;\n return { success: false };\n }\n\n getCalendarDates = async () => {\n const {\n tabsInMapView,\n activeTabIndexInMapView,\n searchResultSelected,\n filterSelected,\n } = this.state;\n const mapTitle = activeTabIndexInMapView === \"0\" ? \"\" : tabsInMapView[activeTabIndexInMapView - 1].title;\n const { success, dates } = await this.apiGetSwabs(mapTitle, searchResultSelected, filterSelected);\n if (success) {\n return dates ?? [];\n }\n return [];\n }\n\n // Comment out because add map work flow changes\n // handleAddMapTitle = async (newTitle) => {\n // const { tabsInMapView } = this.state;\n // const { success, message } = await addMapTitle({ newTitle });\n // // console.log(newTitle, success);\n // if (success) {\n // this.setState({\n // tabsInMapView: [...tabsInMapView, {\n // image_link: \"\", image_height: 0, image_width: 0, title: newTitle,\n // }],\n // });\n // if (!tabsInMapView.length) {\n // this.updatePinsList(newTitle);\n // }\n // } else {\n // if (message) {\n // toast.error(message);\n // return;\n // }\n // toast.error(\"Unable to add map title.\");\n // }\n // }\n\n handleEditMapTitle = async (newTitle) => {\n const { tabsInMapView, activeTabIndexInMapView } = this.state;\n const { success, message } = await editMapTitle({ oldTitle: tabsInMapView[activeTabIndexInMapView - 1].title, newTitle });\n // console.log(newTitle, success);\n if (success) {\n tabsInMapView[activeTabIndexInMapView - 1].title = newTitle;\n this.setState({ tabsInMapView: [...tabsInMapView] });\n } else {\n if (message) {\n toast.error(message);\n return;\n }\n toast.error(\"Unable to edit map title.\");\n }\n }\n\n handleDeleteMapTitle = async (mapTitle) => {\n const { tabsInMapView, activeTabIndexInMapView } = this.state;\n const imageInfo = tabsInMapView[activeTabIndexInMapView - 1];\n const { success, message } = await deleteMapTitle({ title: mapTitle });\n if (success) {\n deleteFileFromS3WithPresigned([imageInfo.image_link], \"private\");\n const { mapTitles } = await this.apiGetMapTitles();\n if (activeTabIndexInMapView === \"1\") { // if this is the last image to delete\n this.setState({ tabsInMapView: mapTitles, activeTabIndexInMapView: \"0\" }, () => {\n this.handleTabSelectInMapView(\"0\", \"delete\");\n });\n } else {\n this.setState({ tabsInMapView: mapTitles, activeTabIndexInMapView: \"1\" }, () => {\n this.handleTabSelectInMapView(\"1\", \"delete\");\n });\n }\n } else {\n if (message) {\n toast.error(message);\n return;\n }\n toast.error(\"Unable to delete map title.\");\n }\n }\n\n toggleDeleteTitleConfirm = (title) => {\n const { ifDeleteTitleClicked } = this.state;\n this.setState({ ifDeleteTitleClicked: !ifDeleteTitleClicked, titleToDelete: title });\n }\n\n /**\n * Toggle create env modal\n * @param {Boolean} onlyUploadSwabFile is true when user clicks on \"Upload Swab File\", to render a modal that only allows to upload swab files.\n * @param {Boolean} openCreateEnvModalFromTab is true when user clicks on \"+\" tab.\n */\n toggleShowCreateEnvModal = (ifOnlyUploadSwabFile = false, openCreateEnvModalFromTab = false) => {\n const { showCreateEnvModal } = this.state;\n this.setState({ showCreateEnvModal: !showCreateEnvModal, ifOnlyUploadSwabFile, openCreateEnvModalFromTab });\n }\n\n handleCloseForPreview = () => {\n this.setState({ showPreview: false });\n };\n\n handlePreviewFile = (filePath) => {\n // console.log(\"🚀 ~ handlePreviewFile ~ filePath:\", filePath);\n this.setState({ previewUrlList: [] }, async () => {\n const path = filePath;\n if (!path || Object.keys(path).length < 1) {\n toast.error(\"Unable to preview, no valid file path for this report!\");\n return;\n }\n const files = Object.entries(path);\n Promise.all(files.map(async (fileData) => {\n const fileTempSet = new Set(fileData[1]);\n const fileTempArr = Array.from(fileTempSet);\n return Promise.all(fileTempArr.map(async (fileTemp) => this.getFileFromAWS(fileTemp))).then(async (allPreviewFiles) => {\n const successfullyFetched = allPreviewFiles.filter((file) => file !== null); // null means file failed to fetch, don't merge it\n return this.mergePDFs(successfullyFetched, fileData[0]);\n });\n })).then((mergedPreviewFiles) => {\n this.setState({\n previewUrlList: mergedPreviewFiles,\n showPreview: true,\n });\n });\n });\n };\n\n /* Downloads file from correct (private or public) s3 bucket. Returns blob if successful, null otherwise. */\n getFileFromAWS = async (fileTemp) => {\n const privateS3Bucket = fileTemp.includes(\"COAs/\");\n const fileName = fileTemp.split(\"/\").pop();\n const fileBlobObj = await getFileFromS3WithPresigned([fileTemp], privateS3Bucket ? \"private\" : \"public\");\n if (fileBlobObj && fileBlobObj[fileTemp]) {\n return { fileName, file: fileBlobObj[fileTemp] };\n }\n return null;\n };\n\n /* if there are multiple pdfs for a single date in preview, merge into one pdf */\n mergePDFs = async (fileBlobs, date) => {\n if (fileBlobs.length > 1) {\n const merger = new PDFMerger();\n const fileNames = [];\n return Promise.all(fileBlobs.map(async ({ fileName, file }) => { // eslint-disable-line\n fileNames.push(fileName);\n return merger.add(file);\n })).then(async () => { // eslint-disable-line\n const mergedPdf = await merger.saveAsBlob();\n const FileTemp = new File([mergedPdf], \"name\");\n const pdfURL = window.URL.createObjectURL(mergedPdf);\n const filesObj = {\n url: pdfURL,\n privateS3: true,\n file: FileTemp,\n blob: mergedPdf,\n name: fileNames.join(),\n date,\n };\n return filesObj;\n });\n }\n\n if (fileBlobs.length === 1) {\n const { fileName, file } = fileBlobs[0];\n const FileTemp = new File([file], \"name\");\n const pdfURL = window.URL.createObjectURL(file);\n const filesObj = {\n url: pdfURL,\n privateS3: true,\n file: FileTemp,\n blob: file,\n name: fileName,\n date,\n };\n return filesObj;\n }\n\n const filesObj = {\n url: \"\",\n date,\n };\n\n return filesObj;\n }\n\n /**\n * Refresh pins list (keeping current filters)\n */\n handleDataRefreshAfterExitingSpecManager = () => {\n const {\n searchResultSelected,\n filterSelected,\n filterByDateFrom,\n filterByDateTo,\n } = this.state;\n this.updatePinsList(null, searchResultSelected, filterSelected, filterByDateFrom, filterByDateTo);\n }\n\n /**\n * When Add Specs is clicked in Report View,\n * open Spec Manager with Edit Spec page loaded\n */\n toggleEditSpec = (identifier) => {\n const { showSpecManager, showSpecManagerEdit } = this.state;\n this.setState({\n showSpecManager: !showSpecManager,\n showSpecManagerEdit: !showSpecManagerEdit,\n specManagerEditIdentifier: identifier ?? \"\",\n });\n }\n\n render() {\n const {\n listViewDisplay,\n activeTabIndexInMapView,\n tabsInMapView,\n indexOfQuadrantHoverOver,\n pinMap,\n isPinningSwab,\n quadrantSelected,\n imageSrc,\n loadingSwabs,\n loadingMap,\n displayNoResultFound,\n displayTooltipLocationID,\n selectedLocationID,\n mapKey,\n filterSelected,\n isAddingNewSwab,\n searchResultSelected,\n fields,\n isPinningNewSwab,\n isClickingQuadrant,\n ifDeleteTitleClicked,\n titleToDelete,\n showReportView,\n dataArrvied,\n showCreateEnvModal,\n ifOnlyUploadSwabFile,\n showPreview,\n previewUrlList,\n showEmptyPage,\n index0,\n delimiter,\n linkPatternFields,\n sampleIDFields,\n openCreateEnvModalFromTab,\n showSpecManager,\n showSpecManagerEdit,\n specManagerEditIdentifier,\n reportViewKey,\n } = this.state;\n\n const displayFields = fields.filter(({ display }) => display !== \"0\");\n\n return (\n <>\n {showCreateEnvModal\n && (\n \n )}\n {dataArrvied && showEmptyPage && }\n {!showEmptyPage\n && (\n
    \n \n {listViewDisplay && (\n
    \n this.setState({ isClickingQuadrant: !isClickingQuadrant })}\n isClickingQuadrant={isClickingQuadrant}\n toggleReportView={this.toggleReportView}\n showReportView={showReportView}\n toggleShowCreateEnvModal={this.toggleShowCreateEnvModal}\n getCalendarDates={this.getCalendarDates}\n forceReportViewRerender={this.forceReportViewRerender}\n />\n
    \n )}\n
    \n {showReportView ? (\n <>\n
    \n {/* */}\n
    \n \n \n ) : (\n this.setState({ isClickingQuadrant: !isClickingQuadrant })}\n isClickingQuadrant={isClickingQuadrant}\n displayNoResultFound={displayNoResultFound}\n handleAddMapTitle={this.handleAddMapTitle}\n handleEditMapTitle={this.handleEditMapTitle}\n toggleDeleteTitleConfirm={this.toggleDeleteTitleConfirm}\n toggleShowCreateEnvModal={this.toggleShowCreateEnvModal}\n handleSpecManagerToggle={this.handleSpecManagerToggle}\n />\n )}\n
    \n {ifDeleteTitleClicked\n && (\n this.toggleDeleteTitleConfirm(\"\"),\n () => { this.handleDeleteMapTitle(titleToDelete); this.toggleDeleteTitleConfirm(\"\"); },\n ]}\n />\n )}\n\n {showPreview\n && }\n
    \n )}\n \n );\n }\n}\n","const EVENT_SPEC_STYLE_MAP = {\n \"\": {\n display_name: \"No Result\",\n color: \"#26ABE1\", // light blue\n rgb_values: \"38, 171, 225\",\n box_shadow_color: \"rgba(38, 171, 225, 0.21)\",\n border_color: \"#A7E3fA\",\n\n text_color: \"#26ABE1\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#FFFFFF\",\n },\n 0: {\n display_name: \"In Process\",\n color: \"#E1B226\", // orange\n rgb_values: \"225, 178, 38\",\n box_shadow_color: \"rgba(225, 178, 38, 0.2)\",\n border_color: \"#E1B226\",\n\n text_color: \"#E1B226\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#fff8e3dd\",\n },\n 1: {\n display_name: \"In Spec\",\n color: \"#1EC04A\", // green\n rgb_values: \"30, 192, 74\",\n box_shadow_color: \"rgba(30, 192, 74, 0.3)\",\n border_color: \"#1EC04A\",\n\n text_color: \"#1EC04A\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#DCF9E4\",\n },\n 2: {\n display_name: \"Out of Spec\",\n color: \"#E11903\", // red\n rgb_values: \"225, 25, 3\",\n box_shadow_color: \"rgba(225, 25, 3, 0.3)\",\n border_color: \"#E11903\",\n\n text_color: \"#E11903\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#FFF1F0\",\n },\n 3: {\n display_name: \"Spec Incomplete\",\n color: \"#505050\", // gray\n rgb_values: \"80, 80, 80\",\n box_shadow_color: \"rgba(0, 0, 0, 0.15)\",\n border_color: \"#C5C5C5\",\n\n text_color: \"#505050\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#EEEEEE\",\n },\n 4: {\n display_name: \"In Process - Retest\", // retest\n color: \"#E1B226\", // orange\n rgb_values: \"225, 178, 38\",\n box_shadow_color: \"rgba(225, 178, 38, 0.2)\",\n border_color: \"#E1B226\",\n\n text_color: \"#E1B226\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#fff8e3dd\",\n },\n 5: {\n display_name: \"In Spec - Retest\", // retest\n color: \"#1EC04A\", // green\n rgb_values: \"30, 192, 74\",\n box_shadow_color: \"rgba(30, 192, 74, 0.3)\",\n border_color: \"#1EC04A\",\n\n text_color: \"#1EC04A\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#DCF9E4\",\n },\n 6: {\n display_name: \"Out of Spec - Retest\", // retest\n color: \"#E11903\", // red\n rgb_values: \"225, 25, 3\",\n box_shadow_color: \"rgba(225, 25, 3, 0.3)\",\n border_color: \"#E11903\",\n\n text_color: \"#E11903\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#FFF1F0\",\n },\n \"-1\": {\n display_name: \"Sampled\",\n color: \"#FF9F3F\", // orange\n rgb_values: \"255, 159, 63\",\n box_shadow_color: \"rgba(255, 159, 63, 0.3)\",\n border_color: \"#FF9F3F\",\n\n text_color: \"#FF9F3F\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#FFF8EB\",\n },\n \"-2\": {\n display_name: \"Scheduled\",\n color: \"#C4D2DF\", // grey\n rgb_values: \"196, 210, 223\",\n box_shadow_color: \"rgba(196, 210, 223, 0.3)\",\n border_color: \"#C4D2DF\",\n\n text_color: \"#6C7E8E\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#FFFFFF\",\n },\n \"-3\": {\n display_name: \"Deleted by Lab\",\n color: \"#E11903\", // red\n rgb_values: \"225, 25, 3\",\n box_shadow_color: \"rgba(225, 25, 3, 0.3)\",\n border_color: \"#E11903\",\n\n text_color: \"#E11903\",\n sample_border_color: \"#EAF0F5\",\n sample_bg_color: \"#FFF1F0\",\n },\n};\n\nexport default EVENT_SPEC_STYLE_MAP;\n","import React from \"react\";\n\nimport EVENT_SPEC_STYLE_MAP from \"../constants\";\n\nimport \"./EventsFilter.css\";\n\nconst FILTERS = [\n {\n display: \"Scheduled\",\n value: \"scheduled\",\n spec_flags: [\"-2\"],\n },\n {\n display: \"Sampled\",\n value: \"sampled\",\n spec_flags: [\"-1\"],\n },\n {\n display: \"In Process\",\n value: \"in_process\",\n spec_flags: [\"0\", \"4\"],\n },\n // {\n // display: \"No Spec\",\n // value: \"no_spec\",\n // spec_flags: [\"3\"],\n // },\n {\n display: \"In Spec\",\n value: \"in_spec\",\n spec_flags: [\"1\", \"5\"],\n },\n {\n display: \"Out of Spec\",\n value: \"out_of_spec\",\n spec_flags: [\"2\", \"6\"],\n },\n];\n\nexport default function EventsFilter({\n specFilterValue,\n setSpecFilterValue,\n}) {\n /**\n * Toggles filter individually\n * @param {String} value filter\n */\n const toggleFilter = (filter) => {\n if (specFilterValue && specFilterValue === filter.value) {\n setSpecFilterValue(\"\");\n } else {\n setSpecFilterValue(filter.value);\n }\n };\n\n return (\n
    \n {FILTERS.map((filter) => {\n const specValue = filter.spec_flags[0];\n const color = EVENT_SPEC_STYLE_MAP[specValue];\n\n return (\n toggleFilter(filter)}\n >\n \n {filter.display}\n {specFilterValue === filter.value && (\n toggleFilter(filter)}\n >\n ×\n \n )}\n
    \n );\n })}\n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPrinterIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.99992 11.6663H0.999919C0.823108 11.6663 0.653538 11.5961 0.528514 11.4711C0.40349 11.3461 0.333252 11.1765 0.333252 10.9997V4.33301C0.333252 4.1562 0.40349 3.98663 0.528514 3.8616C0.653538 3.73658 0.823108 3.66634 0.999919 3.66634H2.99992V0.999674C2.99992 0.822863 3.07016 0.653294 3.19518 0.52827C3.32021 0.403246 3.48977 0.333008 3.66659 0.333008H10.3333C10.5101 0.333008 10.6796 0.403246 10.8047 0.52827C10.9297 0.653294 10.9999 0.822863 10.9999 0.999674V3.66634H12.9999C13.1767 3.66634 13.3463 3.73658 13.4713 3.8616C13.5963 3.98663 13.6666 4.1562 13.6666 4.33301V10.9997C13.6666 11.1765 13.5963 11.3461 13.4713 11.4711C13.3463 11.5961 13.1767 11.6663 12.9999 11.6663H10.9999V12.9997C10.9999 13.1765 10.9297 13.3461 10.8047 13.4711C10.6796 13.5961 10.5101 13.6663 10.3333 13.6663H3.66659C3.48977 13.6663 3.32021 13.5961 3.19518 13.4711C3.07016 13.3461 2.99992 13.1765 2.99992 12.9997V11.6663ZM2.99992 10.333V9.66634C2.99992 9.48953 3.07016 9.31996 3.19518 9.19494C3.32021 9.06991 3.48977 8.99967 3.66659 8.99967H10.3333C10.5101 8.99967 10.6796 9.06991 10.8047 9.19494C10.9297 9.31996 10.9999 9.48953 10.9999 9.66634V10.333H12.3333V4.99967H1.66659V10.333H2.99992ZM4.33325 1.66634V3.66634H9.66659V1.66634H4.33325ZM4.33325 10.333V12.333H9.66659V10.333H4.33325ZM2.33325 5.66634H4.33325V6.99967H2.33325V5.66634Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPrinterIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/PrinterIcon.c359729d.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\n\nimport { Modal } from \"antd\";\n\nimport DatePicker from \"../../../Common/DatePicker/DatePicker\";\nimport StyledButton from \"../../../Common/UIComponents/StyledButton\";\n\nimport { ReactComponent as CalendarIcon } from \"../../../../assets/images/environment/CalendarEnv.svg\";\nimport { ReactComponent as DownloadIcon } from \"../../../../assets/images/environment/downloadIcon.svg\";\nimport { ReactComponent as PrinterIcon } from \"../../../../assets/images/environment/PrinterIcon.svg\";\nimport cancelBtn from \"../../../../assets/images/product/crossWhite.png\";\n\nimport \"./ReportModal.css\";\n\nexport default function ReportModal({\n onClose,\n title,\n children,\n onPrint,\n onDownload,\n onDatePickerChange,\n disablePrintButton = false,\n disableDownloadButton = false,\n markedDates,\n defaultDateRange = \"\",\n showDatePicker = true,\n showPrint = true,\n showDownloadButton = true,\n allowClear = true,\n}) {\n const [dateSelected, setDateSelected] = useState(defaultDateRange);\n const [prevDateSelected, setPrevDateSelected] = useState(defaultDateRange);\n\n return (\n this.setState({ modalIsAnimating: false })}\n >\n
    \n {title}\n \n
    \n
    \n
    \n {showDatePicker && (\n markedDates ?? []}\n value={dateSelected}\n onChange={setDateSelected}\n prevValue={prevDateSelected}\n setPrevValue={setPrevDateSelected}\n searchOnClear\n popoverPlacement=\"bottomLeft\"\n allowClear={allowClear}\n datePickerDisplayProps={{\n displayTextPosition: \"right\",\n displayClassName: \"ReportModal__DatePicker\",\n customCalendarIcon: ,\n }}\n />\n )}\n
    \n {showPrint && (\n \n \n Print\n \n )}\n {showDownloadButton && (\n \n \n Download\n \n )}\n
    \n
    \n {children}\n
    \n \n );\n}\n","export default __webpack_public_path__ + \"static/media/Genista_Header.fb679883.png\";","import React, {\n useEffect, useRef, useState,\n} from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport { isEmpty, pick } from \"lodash\";\nimport moment from \"moment\";\nimport printJS from \"print-js\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport * as XLSX from \"xlsx\";\n\nimport NoResults from \"../../../Common/NoResultsGIF\";\nimport EVENT_SPEC_STYLE_MAP from \"../../constants\";\nimport ReportModal from \"./ReportModal\";\n\nimport { getFormattedDaysAgoString } from \"../../../Common/DatePicker/utils\";\n\nimport { getEnvironmentFields } from \"../../../../actions/envAnalytics\";\nimport { getEnvSchedule } from \"../../../../actions/envCalendar\";\n\nimport genistaDocumentHeaderImage from \"../../../../assets/images/environment/Genista_Header.png\";\nimport pumpkinGIF from \"../../../../assets/images/environment/pumpkin.gif\";\nimport \"./ExportModal.css\";\n\nexport default function ExportModal({\n title = \"\",\n onClose,\n defaultDateRange,\n allowClear = true,\n}) {\n const [loading, setLoading] = useState(false);\n const [groupedSubmissiondData, setGroupedSubmissiondData] = useState([]);\n // const [linkPatternFields, setLinkPatternFields] = useState([]);\n const [sampleIDFields, setSampleIDFields] = useState([]);\n const [markedDates, setMarkedDates] = useState([]);\n const [linkPatternDelimiter, setLinkPatternDelimiter] = useState(null);\n const controller = useRef();\n\n /**\n * Group data sample wise\n * @param {*} data\n */\n const groupData = (data) => {\n if (!isEmpty(data)) {\n const groupedData = [];\n (data.scheduled_submission ?? []).forEach((submission) => {\n const samples = submission.samples_list.map((s) => {\n const { samples_list, ...rest } = submission;\n const fields = sampleIDFields.map(((field) => field.json_field));\n const sampleidfields = pick(s, fields);\n const testListStr = s.test_list.map((t) => t.Test).join(\", \");\n return {\n ...rest,\n sample: {\n ...s,\n ...sampleidfields,\n testListStr,\n },\n };\n });\n groupedData.push(...samples);\n });\n setGroupedSubmissiondData(groupedData);\n }\n };\n\n /**\n * Calls environmentfields/ api\n */\n const apiGetEnvFields = async () => {\n const result = await getEnvironmentFields();\n\n if (result && result.success) {\n const {\n fields, index0, delimiter, link_pattern_fields, sampleid_fields, link_pattern,\n } = result;\n const regex = new RegExp(delimiter, \"g\");\n const linkfields = link_pattern_fields.map((f) => f.split(regex)).flat();\n const sampleidfields = sampleid_fields.map((f) => f.split(regex)).flat();\n return {\n allFields: fields, index0, delimiter, linkPatternFields: linkfields, sampleIDFields: sampleidfields, link_pattern,\n };\n }\n\n return {\n allFields: [], index0: \"\", delimiter: \"\", linkPatternFields: [], sampleIDFields: [], link_pattern: \"\",\n };\n };\n\n /**\n * Calls envschedule/ api\n * @param {Date} start start date\n * @param {Date} end end date\n */\n const apiGetEnvSchedule = async (start = \"\", end = \"\") => {\n const abortController = new AbortController();\n if (controller.current) {\n controller.current.abort();\n }\n controller.current = abortController;\n const result = await getEnvSchedule(start, end, \"\", controller.current.signal);\n\n let schedulingData = [];\n if (controller.current?.signal.aborted) {\n schedulingData = [];\n }\n\n if (result && result.success) {\n const data = result.result;\n if (Array.isArray(data) && data.length === 0) {\n schedulingData = [];\n }\n schedulingData = data;\n }\n controller.current = null;\n return schedulingData;\n };\n\n useEffect(() => {\n (async () => {\n setLoading(true);\n const envFields = await apiGetEnvFields();\n\n // const fieldMap = new Map(envFields.allFields.map((field) => [field.json_field, field]));\n // const linkFields = envFields.linkPatternFields.map((field_name) => fieldMap.get(field_name));\n\n const sampleIDCols = envFields.allFields.filter((field) => envFields.sampleIDFields.includes(field.json_field));\n\n setSampleIDFields(sampleIDCols);\n // setLinkPatternFields(linkFields);\n setLoading(false);\n setLinkPatternDelimiter(new RegExp(envFields.delimiter, \"g\"));\n })();\n }, []); // eslint-disable-line\n\n useEffect(() => {\n const fetchInitial = async () => {\n const { dateFromString, dateToString } = defaultDateRange;\n const schedulingData = await apiGetEnvSchedule(dateFromString, dateToString);\n groupData(schedulingData);\n setMarkedDates(schedulingData.scheduled_submission_dates ?? []);\n };\n if (sampleIDFields.length && linkPatternDelimiter) {\n setLoading(true);\n fetchInitial().finally(() => setLoading(false));\n }\n }, [sampleIDFields, linkPatternDelimiter, defaultDateRange]); // eslint-disable-line\n\n /**\n * Handle date picker change event\n * @param {Date} startDate start date\n * @param {Date} endDate end date\n */\n const handleDatePickerChange = async (startDate, endDate) => {\n const start = startDate ? moment(startDate).format(\"YYYY-MM-DD\") : \"\";\n const end = endDate ? moment(endDate).format(\"YYYY-MM-DD\") : \"\";\n setLoading(true);\n const schedulingData = await apiGetEnvSchedule(start, end);\n groupData(schedulingData);\n setMarkedDates(schedulingData.scheduled_submission_dates ?? []);\n setLoading(false);\n };\n\n /**\n * Generates filename\n * @returns Filename\n */\n const getFileName = () => {\n const timeStamp = moment().unix();\n return `Scheduling_Report_${timeStamp}.xlsx`;\n };\n\n /**\n * Export data to excel file\n * @param {*} data\n */\n const exportToExcel = (data) => {\n const worksheet = XLSX.utils.json_to_sheet(data);\n const workbook = XLSX.utils.book_new();\n XLSX.utils.book_append_sheet(workbook, worksheet, \"Scheduling Report\");\n\n const filename = getFileName();\n XLSX.writeFile(workbook, filename);\n };\n\n // const s2ab = (s) => {\n // const buf = new ArrayBuffer(s.length);\n // const view = new Uint8Array(buf);\n // for (let i = 0; i < s.length; i++) {\n // // eslint-disable-next-line no-bitwise\n // view[i] = s.charCodeAt(i) & 0xFF;\n // }\n // return buf;\n // };\n\n /**\n * Handle print data\n */\n const handlePrint = () => {\n // const worksheet = XLSX.utils.json_to_sheet(data);\n // const workbook = XLSX.utils.book_new();\n // XLSX.utils.book_append_sheet(workbook, worksheet, \"Scheduling Report\");\n // const excelBinary = XLSX.write(workbook, { bookType: \"xlsx\", type: \"binary\" });\n\n // // Convert the binary string to a Blob\n // const blob = new Blob([s2ab(excelBinary)], { type: \"application/octet-stream\" });\n // const url = URL.createObjectURL(blob);\n // printJS(url);\n printJS({\n printable: \"ExportModal__Report\",\n type: \"html\",\n targetStyles: [\"*\"],\n css: [\"./ExportModal.css\"],\n });\n };\n\n /**\n * Handle download excel file\n */\n const handleDownload = () => {\n if (isEmpty(groupedSubmissiondData)) return;\n const data = groupedSubmissiondData.map((d) => {\n const sampleFields = sampleIDFields.reduce((acc, field) => {\n acc[field.title_field] = d.sample[field.json_field];\n return acc;\n }, {});\n const status = EVENT_SPEC_STYLE_MAP[d.sample.specs_flag].display_name;\n return {\n \"Schedule Date\": moment(d.event_date).format(\"MM/DD/YYYY\"),\n \"Submission Name\": d.submission_name,\n ...sampleFields,\n Tests: d.sample.testListStr,\n Status: status,\n };\n });\n exportToExcel(data);\n };\n\n return (\n \n \n
    \n \"Genista\n
    \n \n \n \n \n \n {sampleIDFields.map((field) => (\n \n ))}\n \n \n \n \n \n {!isEmpty(groupedSubmissiondData) && groupedSubmissiondData.map((submission, i) => {\n const status = EVENT_SPEC_STYLE_MAP[submission.sample.specs_flag].display_name;\n return (\n \n \n \n {sampleIDFields.map((field) => (\n \n ))}\n \n \n \n );\n })}\n \n
    Schedule DateSubmission Name{field.title_field}TestsStatus
    {moment(submission.event_date).format(\"MM/DD/YYYY\")}{submission.submission_name}{submission.sample[field.json_field]}{submission.sample.testListStr}{status}
    \n {!loading && isEmpty(groupedSubmissiondData) && (\n \n )}\n {loading && (\n
    \n \n
    \n )}\n
    \n
    \n
    \n \n );\n}\n","import React from \"react\";\n\nimport {\n Document, Page, View, StyleSheet, Font, Text, Image,\n} from \"@react-pdf/renderer\";\n\nimport RobotoMedium from \"../../../../assets/fonts/roboto/Roboto-Medium.ttf\";\nimport Roboto from \"../../../../assets/fonts/roboto/Roboto-Regular.ttf\";\n\nexport default function LabelsPDF({\n getFileName,\n scheduleData,\n}) {\n Font.register({ family: \"Roboto-400\", src: Roboto });\n Font.register({ family: \"Roboto-500\", src: RobotoMedium });\n\n const styles = StyleSheet.create({\n page: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n backgroundColor: \"#FFFFFF\",\n padding: \"36 36 18 36\",\n color: \"#000000\",\n fontFamily: \"Roboto-500\",\n },\n section: {\n display: \"flex\",\n flexDirection: \"column\",\n width: \"4.25in\",\n },\n labelContainer: {\n padding: 8,\n marginBottom: 10,\n border: \"1 dashed #C4D2DF\",\n justifyContent: \"center\",\n alignItems: \"center\",\n aspectRatio: 2.8,\n },\n content: {\n width: \"100%\",\n height: \"96px\",\n flexDirection: \"row\",\n },\n qrContainer: {\n flexShrink: 0,\n height: \"100%\", // 1 inch = 96px\n aspectRatio: 0.8,\n marginRight: 8,\n },\n textContainer: {\n flex: 1,\n alignSelf: \"flex-start\",\n },\n dataText: {\n fontFamily: \"Roboto-400\",\n fontSize: \"10px\",\n fontWeight: \"400\",\n color: \"#182534\",\n },\n });\n\n const softHyphenate = (text) => (text.split(\"\").join(\"\\u{00AD}\"));\n\n const renderQR = (submission_id) => {\n const qrCodeSrc = document.getElementById(`GeneratedQR__${submission_id}`).querySelector(\"canvas\").toDataURL();\n return ;\n };\n\n return (\n \n \n \n {scheduleData.map((sub, i) => {\n const key = `${sub.submission_id}-${sub.event_date}-${i}`;\n return (\n \n \n \n {renderQR(sub.submission_id)}\n \n \n \n {softHyphenate(`${sub.submission_name}\\n\\n${sub.event_date}`)}\n \n \n \n \n );\n })}\n \n \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgClose = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.00045 7.05767L11.3003 3.75781L12.2431 4.70062L8.94325 8.00047L12.2431 11.3003L11.3003 12.2431L8.00045 8.94327L4.70063 12.2431L3.75781 11.3003L7.05765 8.00047L3.75781 4.70062L4.70063 3.75781L8.00045 7.05767Z\",\n fill: \"#6C7E8E\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgClose, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/close.10301f69.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgDelete = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.334 2.99992H13.1673C13.4435 2.99992 13.6673 3.22378 13.6673 3.49992V3.83325C13.6673 4.10939 13.4435 4.33325 13.1673 4.33325H12.334V12.9999C12.334 13.1767 12.2637 13.3463 12.1387 13.4713C12.0137 13.5963 11.8441 13.6666 11.6673 13.6666H2.33398C2.15717 13.6666 1.9876 13.5963 1.86258 13.4713C1.73756 13.3463 1.66732 13.1767 1.66732 12.9999V4.33325H0.833985C0.557842 4.33325 0.333984 4.10939 0.333984 3.83325V3.49992C0.333984 3.22378 0.557842 2.99992 0.833984 2.99992H3.66732V0.999919C3.66732 0.823108 3.73756 0.653538 3.86258 0.528514C3.9876 0.40349 4.15717 0.333252 4.33398 0.333252H9.66732C9.84413 0.333252 10.0137 0.40349 10.1387 0.528514C10.2637 0.653538 10.334 0.823108 10.334 0.999919V2.99992ZM11.0007 4.33325H3.00065V12.3333H11.0007V4.33325ZM5.00065 1.66659V2.99992H9.00065V1.66659H5.00065Z\",\n fill: \"#7DCDED\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.0007 4.33325H3.00065V12.3333H11.0007V4.33325Z\",\n fill: \"#7DCDED\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgDelete, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/delete.e85b286c.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAdd = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 17,\n viewBox: \"0 0 16 17\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 3.8335V13.1668\",\n stroke: \"#26ABE1\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.33203 8.5H12.6654\",\n stroke: \"#26ABE1\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAdd, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/add.59569533.svg\";\nexport { ForwardRef as ReactComponent };","/* eslint-disable jsx-a11y/control-has-associated-label */\nimport React, { useRef, useState } from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport StyledButton from \"../../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../../Common/UIComponents/StyledTooltip\";\nimport EnvConfirmModal from \"../../Analytics/Components/EnvConfirmModal\";\n\nimport { AWS_BASE_PATH } from \"../../../../utils/Constant\";\nimport { downloadFileFromS3WithPresigned } from \"../../../../utils/helpers\";\n\nimport { deletePrinters, patchPrinters, postPrinters } from \"../../../../actions/print\";\n\nimport { ReactComponent as CloseIcon } from \"../../../../assets/images/close.svg\";\nimport { ReactComponent as CheckMarkIcon } from \"../../../../assets/images/environment/checkMark.svg\";\nimport DownloadIcon from \"../../../../assets/images/product/downloadBlue.png\";\nimport backArrowIcon from \"../../../../assets/images/product/template/BackArrowLightBlue.png\";\nimport { ReactComponent as DeleteIcon } from \"../../../../assets/images/product/template/delete.svg\";\nimport { ReactComponent as AddIcon } from \"../../../../assets/images/sample-submission/add.svg\";\nimport { ReactComponent as EditIcon } from \"../../../../assets/images/sample-submission/edit.svg\";\n\nconst INITIAL_ADD_PRINTER_STATE = {\n name: \"\",\n label_type: \"Sample\",\n serial_number: \"\",\n};\nconst INITIAL_FIELD_ERRORS_STATE = { name: false, serial_number: false };\n\nexport default function ZebraPrintEdit({ onToggleEditPrinters, printerList, refetch }) {\n const [addData, setAddData] = useState(INITIAL_ADD_PRINTER_STATE);\n const [fieldErrors, setFieldErrors] = useState(INITIAL_FIELD_ERRORS_STATE);\n const [editType, setEditType] = useState(null); // null => Not Editing, \"add\" => Adding new, => Editing existing\n const [deleteId, setDeleteId] = useState(null);\n const [deleteConfirmationVisible, setDeleteConfirmationVisible] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const scrollbarRef = useRef();\n\n /**\n * Set config state\n * @param {\"id\" | \"name\" | \"label_type\" | \"serial_number\"} type type of field\n * @param {string} value value of field\n */\n const onSetAddData = (type, value) => {\n setAddData({ ...addData, [type]: value });\n };\n\n /**\n * Show add new printer input\n */\n const onAddNewPrinter = () => {\n setAddData(INITIAL_ADD_PRINTER_STATE);\n setEditType(\"add\");\n };\n\n /**\n * Download configuration file\n */\n const downloadConfigurationFile = async () => {\n const fileName = \"printer_setup.txt\";\n const filePath = `${AWS_BASE_PATH}media/app/printer_setup.txt`;\n const success = await downloadFileFromS3WithPresigned([filePath], \"private\", [fileName]);\n if (!success) {\n toast.error(\"Something went wrong\");\n }\n };\n\n /**\n * Start editing printer\n * @param {*} printer printer data\n */\n const editPrinter = (printer) => {\n const { id, ...printerData } = printer;\n setEditType(id);\n setAddData(printerData);\n };\n\n /**\n * Reset state\n */\n const onResetState = () => {\n setEditType(null);\n setAddData(INITIAL_ADD_PRINTER_STATE);\n setFieldErrors(INITIAL_FIELD_ERRORS_STATE);\n };\n\n /**\n * Validate data before submit\n */\n const validateData = () => {\n const rules = {\n name: !addData.name.trim(),\n serial_number: !addData.serial_number.trim(),\n };\n const hasError = rules.name || rules.serial_number;\n setFieldErrors(rules);\n return hasError;\n };\n\n /**\n * Submit add/edit printer\n */\n const onUpdate = async () => {\n if (!editType) return; // If not add/edit\n if (validateData()) return; // Validation\n\n setIsLoading(true);\n // editType = \"add\" => Add new printer, editType = => Edit printer\n const response = editType === \"add\" ? await postPrinters(addData) : await patchPrinters({ id: editType, ...addData });\n const message = editType === \"add\" ? \"Printer added successfully\" : \"Printer edited successfully\";\n toast(response.success ? message : response.message, { type: response.success ? \"success\" : \"error\" });\n onResetState(); // Close edit mode\n await refetch();\n setIsLoading(false);\n };\n\n /**\n * Show delete confirmation dialog\n * @param {string} id printer id\n */\n const showDeleteConfirmation = (id) => {\n setDeleteId(id);\n setDeleteConfirmationVisible(true);\n };\n\n /**\n * On confirm delete operation\n */\n const onDelete = async () => {\n setIsLoading(true);\n const response = await deletePrinters(deleteId);\n if (response.success) {\n toast.success(\"Printer deleted successfully\");\n } else {\n toast.error(response.message);\n }\n await refetch();\n setDeleteId(null);\n setDeleteConfirmationVisible(false);\n setIsLoading(false);\n };\n\n /**\n * Cancel delete confirmation\n */\n const cancelDeleteConfirmation = () => {\n setDeleteId(null);\n setDeleteConfirmationVisible(false);\n };\n\n /**\n * Submit on enter\n * @param {Event} e event\n */\n const onPressEnter = (e) => {\n if (e.key === \"Enter\" && editType !== null) {\n onUpdate();\n }\n };\n\n /**\n * Returns error styles for an input\n * @param {\"name\" | \"serial_number\"} key input key\n * @returns style object\n */\n const getErrorStyles = (key) => ({ borderColor: fieldErrors[key] ? \"red\" : undefined });\n\n const renderEditRow = (printer) => (\n \n \n onSetAddData(\"name\", e.target.value)}\n autoFocus\n onKeyDown={onPressEnter}\n style={getErrorStyles(\"name\")}\n disabled={isLoading}\n />\n \n \n onSetAddData(\"serial_number\", e.target.value)}\n onKeyDown={onPressEnter}\n style={getErrorStyles(\"serial_number\")}\n disabled={isLoading}\n />\n \n \n \n {isLoading ? : }\n \n \n \n \n \n \n );\n\n const renderRow = (printer) => (\n \n {printer.name}\n {printer.serial_number}\n \n
    \n editPrinter(printer)}\n className=\"ZebraPrintEdit__ActionButton\"\n >\n \n \n showDeleteConfirmation(printer.id)}\n className=\"ZebraPrintEdit__ActionButton\"\n disabled={deleteId === printer.id && isLoading}\n >\n {deleteId === printer.id && isLoading ? (\n \n ) : (\n \n )}\n \n
    \n \n \n );\n\n return (\n <>\n
    \n
    \n \n \"Back\n Back\n \n
    \n \n \n \"Download\n
    Config
    \n \n
    \n \n \n Add Printer\n \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n {editType === \"add\" && renderEditRow()}\n {printerList.map((printer) => (printer.id === editType ? renderEditRow(printer) : renderRow(printer)))}\n \n
    NameSerial NumberActions
    \n \n
    \n
    \n {deleteConfirmationVisible && (\n \n )}\n \n );\n}\n","import axios from \"axios\";\n\nimport { API_URL } from \"../utils/Constant\";\n\n/**\n * Calls api to get all printers\n */\nexport const getPrinters = async () => {\n try {\n const response = await axios.get(`${API_URL}/printers/`);\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, ...response.data };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Calls api to add a new printer\n * @param {{ name: string, label_type: string, serial_number: string}} printer new printer data\n * @param {*} signal AbortSignal\n */\nexport const postPrinters = async (printer, signal) => {\n try {\n const response = await axios.post(`${API_URL}/printers/`, { printer }, { signal });\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, result: response.data.result };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Calls api to edit a printer data\n * @param {{ id: string, name: string, label_type: string, serial_number: string}} printer printer data\n * @param {*} signal AbortSignal\n */\nexport const patchPrinters = async (printer, signal) => {\n try {\n const response = await axios.patch(`${API_URL}/printers/`, { printer }, { signal });\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, ...response.data };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Calls api to delete a printer\n * @param {string} id printer id\n * @param {*} signal AbortSignal\n */\nexport const deletePrinters = async (id, signal) => {\n try {\n const data = { printer: { id } };\n const response = await axios.delete(`${API_URL}/printers/`, { data, signal });\n if (response.data.message.toLowerCase() === \"success\") {\n return { success: true, ...response.data };\n }\n return { success: false, message: response?.data?.message || \"Something went wrong.\" };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n","import React, { useState } from \"react\";\n\nimport { InputNumber, Select } from \"antd\";\nimport { keys } from \"lodash\";\nimport { toast } from \"react-toastify\";\n\nimport StyledButton from \"../../../Common/UIComponents/StyledButton\";\nimport EnvConfirmModal from \"../../Analytics/Components/EnvConfirmModal\";\n\nimport { AWS_BASE_PATH } from \"../../../../utils/Constant\";\nimport { getFileFromS3WithPresigned } from \"../../../../utils/helpers\";\n\nimport { sendFileToPrinter } from \"../../../../actions/envCalendar\";\n\nimport { ReactComponent as EditIcon } from \"../../../../assets/images/sample-submission/edit.svg\";\n\nexport default function ZebraPrinterSettings({\n onToggleEditPrinters, onSelect, printerDropdownOptions, onCopiesChange, isLoading,\n onClose, totalItems, config, scheduleData,\n}) {\n const [disableCancelAllPrints] = useState(false);\n const [cancelPrintClicked, setCancelPrintClicked] = useState(false);\n const [cancellingPrint, setCancellingPrint] = useState(false);\n const [printing, setPrinting] = useState(false);\n const LABEL_FILE_SIZE_LIMIT_5MB = 5000000;\n\n // Remove the defer backward command at the end of the template to execute the cut action\n const removeDeferBackCmd = (template) => {\n const parts = template.split(\"^XB\");\n const result = parts.slice(0, -1).join(\"^XB\") + parts[parts.length - 1];\n return result;\n };\n\n // Create x number of copies of the template\n const duplicateTemplateByCopies = (template) => {\n let currTemplate = \"\";\n for (let i = 0; i < config.copies; i++) {\n // Remove the defer backward command at the end of the template to execute the cut action\n const isLastCopy = i === config.copies - 1;\n currTemplate += isLastCopy ? removeDeferBackCmd(template) : template;\n }\n return currTemplate;\n };\n\n /** Send the final label data to the printer */\n const sendLabelToPrinterApi = async (template, type = \"Print\") => {\n const exceededLimitMsg = \"File size limit of 5MB exceeded. Please reduce the number of copies.\";\n const createCopies = type === \"Cancel\" ? template : duplicateTemplateByCopies(template);\n /** Create a binary file */\n const blob = new Blob([createCopies], { type: \"text/plain\" });\n // Make sure the file size is not greater than 5MB for safety\n const fileSize = blob.size;\n if (fileSize > LABEL_FILE_SIZE_LIMIT_5MB) {\n toast.error(exceededLimitMsg);\n }\n const payload = new FormData();\n payload.append(\"sn\", config.serial_number);\n payload.append(\"zpl_file\", blob);\n\n const { success, message } = await sendFileToPrinter(payload);\n if (type === \"Cancel\") {\n setCancellingPrint(false);\n setCancelPrintClicked(false);\n } else {\n setPrinting(false);\n }\n if (success) {\n const successMessage = type === \"Print\" ? \"The label(s) have been sent to the printer successfully\" : \"All labels have been cancelled successfully\";\n toast.success(successMessage);\n } else {\n toast.error(message);\n }\n };\n\n // For each sample, replace the placeholders to target values (submission_id, sample id, event date)\n const appendLabelValuesToTemplate = (zplTemplateString) => {\n let outputTemplate = \"\";\n scheduleData.forEach((item) => {\n const { submission_id: barcodeData, submission_name: sampleID, event_date: eventDate } = item;\n const labelData = {\n barcodeData,\n sampleID,\n eventDate,\n };\n let updateTemplate = zplTemplateString;\n // replace the placeholders to target values (submission_id, sample id, event date)\n keys(labelData).forEach((key) => {\n updateTemplate = updateTemplate.replace(key, labelData[key]);\n });\n outputTemplate += updateTemplate;\n console.log(\"\\nQR Code Content: \", barcodeData);\n console.log(\"\\nSample ID:\", sampleID, \"\\nEvent Date:\", eventDate);\n });\n return outputTemplate;\n };\n\n const onPrint = async () => {\n if (!config.serial_number) {\n toast.error(\"Please select a printer\");\n return;\n }\n setPrinting(true);\n // Fetch the template string\n const filePath = `${AWS_BASE_PATH}media/app/sampleLabelTemplate.zpl`;\n const fileBlobObj = await getFileFromS3WithPresigned([filePath], \"private\");\n if (!(fileBlobObj && fileBlobObj[filePath])) {\n setPrinting(false);\n toast.error(\"Something went wrong\");\n }\n const fileBlob = fileBlobObj[filePath];\n const zplTemplateString = await fileBlob.text();\n // Append all label values to the template\n const outputTemplate = appendLabelValuesToTemplate(zplTemplateString);\n // Send the final label template to the printer\n sendLabelToPrinterApi(outputTemplate);\n };\n\n const onCancelClick = () => {\n if (!config.serial_number) {\n toast.error(\"Please select a printer\");\n return;\n }\n setCancelPrintClicked(true);\n };\n\n const onCancelAllPrints = () => {\n setCancellingPrint(true);\n sendLabelToPrinterApi(\"~JA\", \"Cancel\"); // \"~JA\" means clear all jobs\n };\n\n return (\n
    \n
    \n Select Printer\n
    \n \n \n Edit Printers\n \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n Cancel all prints\n \n
    \n \n Close\n \n \n Print\n \n
    \n
    \n {cancelPrintClicked && (\n {\n setCancelPrintClicked(false);\n },\n () => onCancelAllPrints(),\n ]}\n loading={cancellingPrint}\n />\n ) }\n
    \n );\n}\n","import React, { useEffect, useMemo, useState } from \"react\";\n\nimport { Modal } from \"antd\";\nimport { toast } from \"react-toastify\";\n\nimport StyledTooltip from \"../../../Common/UIComponents/StyledTooltip\";\nimport ZebraPrintEdit from \"./ZebraPrintEdit\";\nimport ZebraPrinterSettings from \"./ZebraPrinterSettings\";\n\nimport { AWS_BASE_PATH } from \"../../../../utils/Constant\";\nimport { getFileFromS3WithPresigned } from \"../../../../utils/helpers\";\n\nimport { getPrinters } from \"../../../../actions/print\";\n\nimport cancelBtn from \"../../../../assets/images/product/crossWhite.png\";\n\nimport \"./ZebraPrintModal.css\";\n\nexport default function ZebraPrintModal({ totalItems, onClose, scheduleData }) {\n const [config, setConfig] = useState({\n printer: \"\",\n copies: 1,\n });\n const [printerList, setPrinterList] = useState([]);\n const [isEditingPrinters, setIsEditingPrinters] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n\n /**\n * Set config state\n * @param {\"printer\" | \"copies\"} type type of field\n * @param {*} value value of field\n */\n const onSetConfig = (type, value) => {\n setConfig({ ...config, [type]: value });\n };\n\n const apiGetPrinters = async () => {\n const response = await getPrinters();\n if (response.success) {\n setPrinterList(response.result);\n } else {\n setPrinterList([]);\n toast.error(\"Unable to load printers\");\n }\n };\n\n useEffect(() => {\n setIsLoading(true);\n apiGetPrinters().then(() => setIsLoading(false));\n }, []);\n\n useEffect(() => {\n if (printerList.length === 1) {\n const printer = printerList[0];\n onSetConfig(\"serial_number\", printer.serial_number);\n }\n }, [printerList]); // eslint-disable-line\n\n const onToggleEditPrinters = () => setIsEditingPrinters(!isEditingPrinters);\n\n const openPrinterDocs = async () => {\n const filePath = `${AWS_BASE_PATH}media/app/Zebra_Getting_Started.pdf`;\n const fileBlobObj = await getFileFromS3WithPresigned([filePath], \"private\");\n if (!(fileBlobObj && fileBlobObj[filePath])) {\n toast.error(\"Something went wrong\");\n return;\n }\n const fileBlob = fileBlobObj[filePath];\n const blobURL = URL.createObjectURL(fileBlob);\n window.open(blobURL, \"_blank\");\n };\n\n const printerDropdownOptions = useMemo(() => printerList.map((printer) => ({ label: printer.name, value: printer.serial_number })), [printerList]);\n\n const renderHeader = (isEditing) => {\n if (isEditing) {\n return (\n \n Printers (\n \n Getting Started\n \n )\n \n );\n }\n\n return Print Labels;\n };\n\n return (\n \n
    \n {renderHeader(isEditingPrinters)}\n \n
    \n {!isEditingPrinters ? (\n onSetConfig(\"serial_number\", value)}\n onCopiesChange={(value) => onSetConfig(\"copies\", value)}\n onToggleEditPrinters={onToggleEditPrinters}\n printerDropdownOptions={printerDropdownOptions}\n onClose={onClose}\n totalItems={totalItems}\n isLoading={isLoading}\n scheduleData={scheduleData}\n />\n ) : (\n \n )}\n \n );\n}\n","import React, { useCallback, useEffect, useRef, useState } from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport { pdf } from \"@react-pdf/renderer\";\nimport { QRCode } from \"antd\";\nimport { isEmpty } from \"lodash\";\nimport moment from \"moment\";\n// import printJS from \"print-js\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport NoResults from \"../../../Common/NoResults\";\nimport LabelsPDF from \"./LabelsPDF\";\nimport ReportModal from \"./ReportModal\";\nimport ZebraPrintModal from \"./ZebraPrintModal\";\n\nimport { hasFeature } from \"../../../../utils/common\";\nimport { getFormattedDaysAgoString } from \"../../../Common/DatePicker/utils\";\n\nimport { getEnvSchedule } from \"../../../../actions/envCalendar\";\n\nimport emptyStateIcon from \"../../../../assets/images/EmptyState_V2.png\";\n\nimport \"./PrintLabelModal.css\";\n\nexport default function PrintLabelModal({\n eventData,\n onClose,\n defaultDateRange,\n allowClear = true,\n}) {\n const [generatingPDF, setGeneratingPDF] = useState(false);\n const [scheduleData, setScheduleData] = useState([]);\n const [markedDates, setMarkedDates] = useState([]);\n const [isPrintLabelOpen, setIsPrintLabelOpen] = useState(false);\n\n const controller = useRef();\n\n /**\n * Calls envschedule/ api\n * @param {Date} start start date\n * @param {Date} end end date\n */\n const apiGetEnvSchedule = async (start, end) => {\n const abortController = new AbortController();\n if (controller.current) {\n controller.current.abort();\n }\n controller.current = abortController;\n const result = await getEnvSchedule(\n start,\n end,\n \"\",\n controller.current.signal\n );\n\n if (controller.current.signal.aborted) {\n setScheduleData([]);\n setMarkedDates([]);\n }\n\n if (result && result.success) {\n const data = result.result;\n const sampleWiseData = [];\n (data.scheduled_submission ?? []).forEach((submission) => {\n const sample_data = submission.samples_list.map((sample) => ({\n event_id: submission.event_id,\n submission_name: sample.sample_id,\n submission_id: sample.submission_id,\n event_date: moment(submission.event_date).format(\"MMM D, YYYY\"),\n }));\n sampleWiseData.push(...sample_data);\n });\n setScheduleData(sampleWiseData);\n setMarkedDates(data.scheduled_submission_dates);\n }\n\n controller.current = null;\n };\n\n useEffect(() => {\n if (eventData) {\n const sample_data = eventData.samples_list.map((sample) => ({\n event_id: eventData.event_id,\n submission_name: sample.sample_id,\n submission_id: sample.submission_id,\n event_date: moment(eventData.event_date).format(\"MMM D, YYYY\"),\n }));\n setScheduleData(sample_data);\n } else {\n setGeneratingPDF(true);\n const { dateFromString, dateToString } = defaultDateRange;\n apiGetEnvSchedule(dateFromString, dateToString).finally(() =>\n setGeneratingPDF(false)\n );\n }\n }, [eventData]); // eslint-disable-line\n\n /**\n * Generates filename\n * @returns Filename\n */\n const getFileName = () => {\n const timeStamp = moment().unix();\n return `Print_Label_${timeStamp}.pdf`;\n };\n\n /**\n * Generate pdf blob\n */\n const generatePDFBlob = useCallback(async () => {\n try {\n setGeneratingPDF(true);\n if (scheduleData.length === 0) {\n return null;\n }\n const pdfBlob = await pdf(\n LabelsPDF({\n getFileName,\n scheduleData,\n })\n ).toBlob();\n setGeneratingPDF(false);\n return pdfBlob;\n } catch (e) {\n setGeneratingPDF(false);\n toast.error(\"Failed to generate pdf\");\n return null;\n }\n }, [scheduleData]);\n\n const handlePrint = () => {\n // if (blobURL) {\n // printJS(blobURL);\n // }\n setIsPrintLabelOpen(true);\n };\n\n /**\n * Handle download excel file\n */\n const handleDownload = async () => {\n const pdfBlob = await generatePDFBlob();\n if (pdfBlob) {\n const url = window.URL.createObjectURL(pdfBlob);\n if (url) {\n const a = document.createElement(\"a\");\n a.href = url;\n a.download = getFileName();\n a.click();\n }\n }\n };\n\n /**\n * handle date picker change event\n * @param {Date} startDate Start date\n * @param {Date} endDate End date\n */\n const handleDatePickerChange = async (startDate, endDate) => {\n if (eventData) return; // If print modal is opened from the event card i.e. having only one event data\n\n const start = startDate ? moment(startDate).format(\"YYYY-MM-DD\") : \"\";\n const end = endDate ? moment(endDate).format(\"YYYY-MM-DD\") : \"\";\n setGeneratingPDF(true);\n await apiGetEnvSchedule(start, end);\n setGeneratingPDF(false);\n };\n\n const qrContainerStyles = { display: \"none\" };\n\n return (\n <>\n \n {!isEmpty(scheduleData) ? (\n \n
    \n {scheduleData.map((sub, i) => {\n const key = `${sub.submission_id}-${sub.event_date}-${i}`;\n return (\n \n
    \n \n
    \n
    \n

    \n {sub.submission_name}\n

    \n

    \n {sub.event_date}\n

    \n
    \n
    \n );\n })}\n
    \n \n ) : (\n
    \n {generatingPDF || !isEmpty(scheduleData) ? (\n \n ) : (\n \n )}\n
    \n )}\n
    \n {scheduleData.map((data, i) => {\n const key = `${data.submission_id}-${data.event_date}-${i}`;\n return (\n
    \n \n
    \n );\n })}\n
    \n \n {isPrintLabelOpen && (\n setIsPrintLabelOpen(false)}\n />\n )}\n \n );\n}\n","/* Fade-In Effect */\nexport const showScrollbarStyle = {\n style: {\n visibility: \"visible\", opacity: 1, transition: \"opacity 0.1s linear\",\n },\n};\n\n/* Fade-Out Effect */\nexport const hideScrollbarStyle = {\n style: {\n visibility: \"hidden\", opacity: 0, transition: \"visibility 0s 0.3s, opacity 0.3s linear\",\n },\n};\n","import { useEffect, useRef, useState } from \"react\";\nimport {\n showScrollbarStyle,\n hideScrollbarStyle,\n} from \"../AutoHideScrollbarStyles\";\n\n/**\n * Custom hook to handle autohiding scrollbar.\n */\nconst useAutoHideScrollbar = () => {\n const [scrollbarInUse, setScrollbarInUse] = useState(false);\n const scrollbarRef = useRef();\n\n const setScrollbarRef = (elem) => {\n scrollbarRef.current = elem;\n };\n\n /* Add mouse enter and mouse leave event listeners to the Scrollbar div */\n useEffect(() => { // eslint-disable-line consistent-return\n if (scrollbarRef?.current) {\n const scrollbarElem = scrollbarRef.current;\n scrollbarElem.addEventListener(\"mouseenter\", () => setScrollbarInUse(true));\n scrollbarElem.addEventListener(\"mouseleave\", () => setScrollbarInUse(false));\n return () => {\n scrollbarElem.removeEventListener(\"onmouseenter\", () => setScrollbarInUse(true));\n scrollbarElem.removeEventListener(\"onmouseleave\", () => setScrollbarInUse(false));\n };\n }\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n return [setScrollbarRef, // pass to Scrollbar component's \"elementRef\" prop\n scrollbarInUse ? showScrollbarStyle : hideScrollbarStyle]; // pass to Scrollbar component's \"trackYProps\" or \"trackXProps\" prop\n};\n\nexport default useAutoHideScrollbar;\n","import React from \"react\";\n\nimport \"./PopoverMenu.css\";\nimport { Popover } from \"antd\";\n\nexport default function PopoverMenu({\n children, menuItems = [], open, setOpen,\n}) {\n const content = (\n
      \n {menuItems.map((item) => {\n const isVisible = typeof item.isVisible === \"function\" ? item.isVisible() : item.isVisible;\n return (\n \n {isVisible ? (\n
    • \n {item.icon}\n {item.title}\n
    • \n ) : null}\n
      \n );\n })}\n
    \n );\n\n return (\n {\n setOpen(newOpen);\n }}\n >\n {children}\n \n );\n}\n","import React, { useState } from \"react\";\n\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport moment from \"moment\";\nimport { toast } from \"react-toastify\";\n\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../Common/UIComponents/StyledTooltip\";\nimport EVENT_SPEC_STYLE_MAP from \"../constants\";\n\nimport { marksampled } from \"../../../actions/envCalendar\";\n\nexport const isMarkingAllowed = (event_date) => moment(event_date).isBetween(\n moment().clone().subtract(5, \"days\").startOf(\"day\"),\n moment().endOf(\"day\"),\n \"day\",\n \"[]\",\n); // Can be marked if submission date is within past 5 days\n\nexport default function LocationDetails({\n sampleId,\n specsFlag,\n submissionId,\n sampleType,\n sampled,\n afterMarkingSample,\n draggableId,\n setCardLoading,\n event_date,\n submissionStatus,\n}) {\n const [confirmMarkAsScheduled, setConfirmMarkAsScheduled] = useState(false);\n const [confirmUnmarkAsScheduled, setConfirmUnmarkAsScheduled] = useState(false);\n\n /**\n * Handles marking samples\n * @param {String} action\n */\n const markSample = async (action) => {\n setCardLoading({ isLoading: true, draggableId });\n const response = await marksampled(submissionId, sampleId, sampleType, action);\n if (response.success) {\n toast.success(`Sample ${action.toLowerCase()}ed`);\n } else {\n toast.success(response.message);\n }\n setConfirmMarkAsScheduled(false);\n setConfirmUnmarkAsScheduled(false);\n await afterMarkingSample(); // Refetch data\n setCardLoading({ isLoading: false, draggableId: \"\" });\n };\n\n /**\n * Show confirmation when status has to update\n * @param {Boolean} isMarkAsScheduled\n */\n const statusUpdateConfirm = (isMarkAsScheduled = true) => {\n const text = isMarkAsScheduled ? \"Do you want to mark this location as sampled?\" : \"Unmark sample?\";\n const confirmAction = isMarkAsScheduled ? () => markSample(\"Mark\") : () => markSample(\"Unmark\");\n const cancelAction = isMarkAsScheduled ? () => setConfirmMarkAsScheduled(false) : () => setConfirmUnmarkAsScheduled(false);\n return (\n \n

    {text}

    \n
    \n \n Yes\n \n \n No\n \n
    \n \n );\n };\n\n /**\n * Renders button to mark/unmark\n * @param {Boolean} isMarkAsScheduled\n */\n const updateSampledStatusButton = (isMarkAsScheduled = true) => (\n setConfirmMarkAsScheduled(true) : () => setConfirmUnmarkAsScheduled(true)}\n >\n {isMarkAsScheduled ? \"Mark as sampled\" : \"Unmark Sample\"}\n \n );\n\n if (confirmMarkAsScheduled) return statusUpdateConfirm();\n\n if (confirmUnmarkAsScheduled) return statusUpdateConfirm(false);\n\n let specMapKey = specsFlag;\n if (parseInt(submissionStatus) >= 0) { // if Testing in Process or Testing Complete\n specMapKey = specsFlag;\n } else if (submissionStatus === \"-2\" && sampled) { // If submission is draft and it is sampled, then always used the \"-1\" (orange) color\n specMapKey = -1;\n } else if (submissionStatus === \"-1\" && !sampled) { // If submitted, the not sampled, still show \"-2\"\n specMapKey = -2;\n }\n\n const color = EVENT_SPEC_STYLE_MAP[specMapKey];\n const styles = {\n background: color.sample_bg_color,\n borderColor: color.sample_border_color,\n color: color.text_color,\n };\n\n const isUnmarked = !sampled;\n const isMarked = sampled && submissionStatus === \"-2\"; // Only allow mark sample in draft status and it's sampled\n return (\n \n\n
  • \n \n {sampleId}\n \n {(isMarkingAllowed(event_date) && isUnmarked && parseInt(submissionStatus) < 0) && updateSampledStatusButton(true)}\n {(isMarkingAllowed(event_date) && isMarked && parseInt(submissionStatus) < 0) && updateSampledStatusButton(false)}\n
  • \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgContextMenuIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 2,\n height: 12,\n viewBox: \"0 0 2 12\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M1 0C0.45 0 0 0.45 0 1C0 1.55 0.45 2 1 2C1.55 2 2 1.55 2 1C2 0.45 1.55 0 1 0ZM1 10C0.45 10 0 10.45 0 11C0 11.55 0.45 12 1 12C1.55 12 2 11.55 2 11C2 10.45 1.55 10 1 10ZM1 5C0.45 5 0 5.45 0 6C0 6.55 0.45 7 1 7C1.55 7 2 6.55 2 6C2 5.45 1.55 5 1 5Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgContextMenuIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ContextMenuIcon.c98e140d.svg\";\nexport { ForwardRef as ReactComponent };","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEditPencilIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 12,\n viewBox: \"0 0 12 12\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.48533 4.45739L7.54267 3.51472L1.33333 9.72406V10.6667H2.276L8.48533 4.45739ZM9.428 3.51472L10.3707 2.57206L9.428 1.62939L8.48533 2.57206L9.428 3.51472ZM2.828 12.0001H0V9.17139L8.95667 0.214722C9.08169 0.0897416 9.25122 0.0195312 9.428 0.0195312C9.60478 0.0195312 9.77432 0.0897416 9.89933 0.214722L11.7853 2.10072C11.9103 2.22574 11.9805 2.39528 11.9805 2.57206C11.9805 2.74883 11.9103 2.91837 11.7853 3.04339L2.82867 12.0001H2.828Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEditPencilIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/EditPencilIcon.df78d496.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useMemo, useState } from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport { Draggable } from \"react-beautiful-dnd\";\nimport { Scrollbar } from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport useAutoHideScrollbar from \"../../Common/hooks/useAutoHideScrollbar\";\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../Common/UIComponents/StyledTooltip\";\nimport EnvConfirmModal from \"../Analytics/Components/EnvConfirmModal\";\nimport PopoverMenu from \"../components/PopoverMenu\";\nimport LocationDetails, { isMarkingAllowed } from \"./LocationDetails\";\n\nimport { submitSamples } from \"../../../actions/envCalendar\";\n\nimport { ReactComponent as ContextMenuIcon } from \"../../../assets/images/environment/ContextMenuIcon.svg\";\nimport { ReactComponent as EditPencilIcon } from \"../../../assets/images/environment/EditPencilIcon.svg\";\nimport { ReactComponent as PrinterIcon } from \"../../../assets/images/environment/PrinterIcon.svg\";\nimport { ReactComponent as TrashIcon } from \"../../../assets/images/environment/TrashIcon.svg\";\n\nimport \"./EventCard.css\";\n\nconst DefaultSubmitModalObj = { open: false, bodyText: \"\" };\nconst MAX_TITLE_LENGTH_FOR_TOOLTIP = 100;\n\nexport default function EventCard({\n data,\n index,\n setDeleteEventData,\n setIsDeletingConfirm,\n afterMarkingSample,\n onEdit,\n cardLoading,\n setCardLoading,\n onPrintLabel,\n}) {\n const [openPopover, setOpenPopover] = useState(false);\n const [scrollbarRef, scrollbarStyle] = useAutoHideScrollbar();\n const [submitModalObj, setSubmitModalObj] = useState(DefaultSubmitModalObj);\n const [submitLoading, setSubmitLoading] = useState(false);\n const popoverMenuItems = [\n {\n title: \"Edit\",\n icon: ,\n isVisible: () => data.status === \"-2\" || data.status === \"-1\",\n onClick: () => {\n setOpenPopover(false);\n onEdit(data);\n },\n },\n {\n title: \"Delete\",\n icon: ,\n isVisible: () => data.status === \"-2\" || data.status === \"-1\",\n onClick: () => {\n setOpenPopover(false);\n const { event_id, submission_id, event_frequency } = data;\n setDeleteEventData((state) => ({\n ...state, event_id, submission_id, event_frequency,\n }));\n setIsDeletingConfirm(true);\n },\n },\n {\n title: \"Print\",\n icon: ,\n isVisible: true,\n onClick: () => {\n setOpenPopover(false);\n onPrintLabel(data);\n },\n },\n ];\n const statusCodeToName = {\n \"-2\": \"Draft\",\n \"-1\": \"Submitted\",\n 0: \"Samples Received\",\n 1: \"Testing in Progress\",\n 2: \"Testing Complete\",\n };\n const showSubmit = useMemo(() => { // show the submit button if the submission has not been submitted yet and there is at least one sample has been sampled\n const { status, samples_list, event_date } = data;\n const atLeastOneSampled = samples_list.filter((sample) => sample.sampled).length > 0;\n return status === \"-2\" && atLeastOneSampled && isMarkingAllowed(event_date);\n }, [data]);\n\n /**\n * Show submit confirmation\n */\n const showSubmitConfirmation = () => {\n const notSampled = data.samples_list.filter((sample) => !sample.sampled).length;\n const bodyText = notSampled === 0 ? `Samples (${data.samples_list.length}) will be submitted for testing.` : (\n
    \n Not all samples have been sampled.\n
    \n Are you sure want to submit the submission?\n
    \n );\n setSubmitModalObj({\n open: true,\n bodyText,\n });\n };\n\n /**\n * Handles sample submit\n */\n const handleSubmitSamples = async () => {\n setSubmitLoading(true);\n const payload = {\n submission_id: data.submission_id,\n action: \"Submit\",\n };\n const { success, message } = await submitSamples(payload);\n if (success) {\n toast.success(message);\n setSubmitModalObj(DefaultSubmitModalObj);\n await afterMarkingSample();\n } else {\n toast.error(message);\n }\n setSubmitLoading(false);\n };\n\n return (\n \n {(provided) => (\n \n
    \n {data.submission_name.length > MAX_TITLE_LENGTH_FOR_TOOLTIP ? (\n \n

    {data.submission_name}

    \n
    \n ) :

    {data.submission_name}

    }\n \n \n \n
    \n {data.scheduled_from === \"report-add\" &&

    Created Via Reports

    }\n {

    {statusCodeToName[data.status]}

    }\n \n
      \n {data.samples_list.map((sample) => (\n \n ))}\n
    \n \n {showSubmit && (\n \n Submit\n \n )}\n {submitModalObj.open && (\n setSubmitModalObj(DefaultSubmitModalObj),\n handleSubmitSamples]}\n />\n )}\n {cardLoading.isLoading && cardLoading.draggableId === data.submission_id && (\n
    \n \n
    \n )}\n
    \n )}\n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEventExportIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 13,\n viewBox: \"0 0 12 13\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 11.6663H12V12.9997H0V11.6663ZM6.66667 2.88529V10.333H5.33333V2.88529L1.28595 6.93267L0.343147 5.98987L6 0.333008L11.6569 5.98987L10.7141 6.93267L6.66667 2.88529Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEventExportIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/EventExportIcon.5205c702.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useState } from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport moment from \"moment\";\nimport { DragDropContext, Droppable } from \"react-beautiful-dnd\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport EventCard from \"./EventCard\";\n\nimport { getWeekDays } from \"../utils\";\n\nimport \"./EventGrid.css\";\nimport { patchDragUpdateSchedule } from \"../../../actions/envCalendar\";\n\nexport default function EventGrid({\n selectedDate,\n scheduleData,\n setDeleteEventData,\n setIsDeletingConfirm,\n afterMarkingSample,\n onEdit,\n onPrintLabel,\n calendarLoading,\n}) {\n const [weekDays, setWeekDays] = useState([]);\n const [columnData, setColumnData] = useState({});\n const [loading, setLoading] = useState({\n isLoading: false,\n draggableId: \"\",\n });\n\n useEffect(() => {\n const { datesInWeek, startDate } = getWeekDays(selectedDate);\n if (weekDays.length === 0 || (weekDays.length > 0 && weekDays[0] !== startDate)) {\n setWeekDays(datesInWeek);\n }\n }, [selectedDate, scheduleData, weekDays]);\n\n // Setting calendar data when week changes\n useEffect(() => {\n if (!(\"scheduled_submission\" in scheduleData)) {\n setColumnData({});\n return;\n }\n\n const data = scheduleData.scheduled_submission;\n if (data.length === 0) {\n setColumnData({});\n return;\n }\n\n const dataGroupedByDate = data.reduce((acc, submissionData) => {\n const d = moment(submissionData.event_date).format(\"MM/DD/YYYY\");\n acc[d] = acc[d] ? [...acc[d], submissionData] : [submissionData];\n return acc;\n }, {});\n\n // Fill state with in between dates that are not present in the scheduled data\n const allDates = Object.keys(dataGroupedByDate);\n const allMomentDates = allDates.map((d) => moment(d, \"MM/DD/YYYY\"));\n const minDate = moment.min(allMomentDates).clone().startOf(\"week\");\n const maxDate = moment.max(allMomentDates).clone().endOf(\"week\");\n while (minDate < maxDate) {\n const current = minDate.format(\"MM/DD/YYYY\");\n if (!allDates.includes(current)) {\n dataGroupedByDate[current] = [];\n }\n minDate.add(1, \"day\");\n }\n setColumnData(dataGroupedByDate);\n }, [weekDays, scheduleData]);\n\n /**\n * Move dragged item and call api to update\n * @param {*} source Source\n * @param {*} destination Destination\n * @param {*} draggableId Draggable id\n */\n const moveItem = async (source, destination, draggableId) => {\n setLoading({ isLoading: true, draggableId });\n const columnDataCopy = { ...columnData };\n const restorePoint = JSON.parse(JSON.stringify(columnDataCopy));\n const sourceList = columnDataCopy[source.droppableId];\n const destinationList = columnDataCopy[destination.droppableId];\n const [draggedItem] = sourceList.splice(source.index, 1);\n destinationList.splice(destination.index, 0, draggedItem);\n columnDataCopy[source.droppableId] = sourceList;\n columnDataCopy[destination.droppableId] = destinationList;\n setColumnData(columnDataCopy);\n\n // Call api\n const resp = await patchDragUpdateSchedule(draggedItem.event_id, draggedItem.submission_id, destination.droppableId);\n if (!resp.success) {\n setColumnData(restorePoint);\n toast.error(resp.message);\n }\n setLoading({ isLoading: false, draggableId: \"\" });\n await afterMarkingSample();\n };\n\n /**\n * Handles drag end on Draggable component\n */\n const handleDragEnd = async (result) => {\n const { destination, source } = result;\n if (!destination) return;\n if (destination.droppableId === source.droppableId) return;\n\n await moveItem(source, destination, result.draggableId);\n };\n\n /**\n * Render column header\n * @param {Date} date Date\n */\n const renderColumnHeader = (date) => {\n const day = moment(date, \"MM/DD/YYYY\");\n return (\n <>\n

    {day.format(\"ddd\")}

    \n

    {day.date()}

    \n \n );\n };\n\n return (\n \n \n
    \n {weekDays.map((date) => {\n const isSelected = moment(selectedDate, \"MM/DD/YYYY\").isSame(moment(date, \"MM/DD/YYYY\"), \"date\");\n return (\n
    \n
    \n {renderColumnHeader(date)}\n
    \n \n {(provided) => (\n \n {columnData[date] && columnData[date].map((data, index) => (\n \n ))}\n {provided.placeholder}\n
    \n )}\n \n
    \n );\n })}\n {calendarLoading && (\n
    \n \n
    \n )}\n
    \n \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPrintLabelsIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.00004 11.6668H1.00004C0.82323 11.6668 0.65366 11.5966 0.528636 11.4716C0.403612 11.3465 0.333374 11.177 0.333374 11.0002V4.3335C0.333374 4.15668 0.403612 3.98712 0.528636 3.86209C0.65366 3.73707 0.82323 3.66683 1.00004 3.66683H3.00004V1.00016C3.00004 0.823352 3.07028 0.653782 3.1953 0.528758C3.32033 0.403734 3.4899 0.333496 3.66671 0.333496H10.3334C10.5102 0.333496 10.6798 0.403734 10.8048 0.528758C10.9298 0.653782 11 0.823352 11 1.00016V3.66683H13C13.1769 3.66683 13.3464 3.73707 13.4714 3.86209C13.5965 3.98712 13.6667 4.15668 13.6667 4.3335V11.0002C13.6667 11.177 13.5965 11.3465 13.4714 11.4716C13.3464 11.5966 13.1769 11.6668 13 11.6668H11V13.0002C11 13.177 10.9298 13.3465 10.8048 13.4716C10.6798 13.5966 10.5102 13.6668 10.3334 13.6668H3.66671C3.4899 13.6668 3.32033 13.5966 3.1953 13.4716C3.07028 13.3465 3.00004 13.177 3.00004 13.0002V11.6668ZM3.00004 10.3335V9.66683C3.00004 9.49002 3.07028 9.32045 3.1953 9.19542C3.32033 9.0704 3.4899 9.00016 3.66671 9.00016H10.3334C10.5102 9.00016 10.6798 9.0704 10.8048 9.19542C10.9298 9.32045 11 9.49002 11 9.66683V10.3335H12.3334V5.00016H1.66671V10.3335H3.00004ZM4.33337 1.66683V3.66683H9.66671V1.66683H4.33337ZM4.33337 10.3335V12.3335H9.66671V10.3335H4.33337ZM2.33337 5.66683H4.33337V7.00016H2.33337V5.66683Z\",\n fill: \"currentColor\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPrintLabelsIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/PrintLabelsIcon.2ede6154.svg\";\nexport { ForwardRef as ReactComponent };","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPlus = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 17,\n height: 16,\n viewBox: \"0 0 17 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.5 3.3335V12.6668\",\n stroke: \"white\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3.83331 8H13.1666\",\n stroke: \"white\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPlus, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/Plus.5ab34e3d.svg\";\nexport { ForwardRef as ReactComponent };","import React, {\n useCallback, useEffect, useRef, useState, useMemo,\n} from \"react\";\n\nimport { Checkbox } from \"antd\";\nimport { update } from \"lodash\";\nimport moment from \"moment\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport EnvConfirmModal from \"../Analytics/Components/EnvConfirmModal\";\nimport CreateSamplingEventModal from \"../components/CreateSamplingEventModal\";\nimport CustomCalendar from \"../components/CustomCalendar\";\nimport EventsFilter from \"../components/EventsFilter\";\nimport ExportModal from \"../components/reportmodals/ExportModal\";\nimport PrintLabelModal from \"../components/reportmodals/PrintLabelModal\";\nimport EventGrid from \"./EventGrid\";\n\nimport { hasFeature } from \"../../../utils/common\";\nimport { getWeekDays } from \"../utils\";\n\nimport { deleteEnvSchedule, getEnvSchedule, patchEnvSchedule } from \"../../../actions/envCalendar\"; // eslint-disable-line\n\nimport { ReactComponent as EventExportIcon } from \"../../../assets/images/environment/EventExportIcon.svg\";\nimport { ReactComponent as PrintLabelsIcon } from \"../../../assets/images/environment/PrintLabelsIcon.svg\";\nimport { ReactComponent as PlusIcon } from \"../../../assets/images/onboarding/Plus.svg\";\n\nimport \"./Calendar.css\";\n\nconst tabList = [\n \"Select Locations\",\n \"Add/Edit Tests\",\n \"Select Frequency\",\n \"Summary\",\n];\n\nconst editTabList = {\n report: [\n \"Add/Edit Tests\",\n \"Summary\",\n ],\n calendar: tabList,\n};\n\nexport default function Calendar() {\n const [scheduleData, setScheduleData] = useState({});\n const [openCreateSamplingEventModal, setOpenCreateSamplingEventModal] = useState(false);\n const [selectedDates, setSelectedDates] = useState([moment().format(\"MM/DD/YYYY\")]);\n const [tabSequence, setTabSequence] = useState(tabList);\n const [selectedTab, setSelectedTab] = useState(tabSequence.length ? tabList[0] : null);\n const [markedDates, setMarkedDates] = useState([]);\n const [isEditingConfirm, setIsEditingConfirm] = useState(false);\n const [isDeletingConfirm, setIsDeletingConfirm] = useState(false);\n const [isPrintLabelModalVisible, setIsPrintLabelModalVisible] = useState(false);\n const [isExportModalVisible, setIsExportModalVisible] = useState(false);\n const [specFilterValue, setSpecFilterValue] = useState(\"\");\n const [isConfirmLoading, setIsConfirmLoading] = useState(false);\n const defaultDateRange = useMemo(() => {\n const dateToObj = new Date();\n const dateToString = moment(dateToObj).format(\"YYYY-MM-DD\");\n\n const dateFromObj = new Date();\n dateFromObj.setDate(dateToObj.getDate() - 6);\n const dateFromString = moment(dateFromObj).format(\"YYYY-MM-DD\");\n return {\n dateFromObj, dateFromString, dateToObj, dateToString,\n };\n }, []); // default for one week\n // Create sample event states\n const [newSamplingEventData, setNewSamplingEventData] = useState({\n samples: [],\n schedule: {\n dates: [],\n frequency: \"\",\n },\n event_name: \"\",\n action: \"calendar-add\",\n scheduled_from: \"calendar-add\",\n po: \"\",\n });\n\n // Delete event\n const [deleteEventData, setDeleteEventData] = useState({\n event_id: \"\",\n delete_recurring: true,\n submission_id: \"\",\n event_frequency: \"\",\n });\n\n // Edit event\n const [isEditing, setIsEditing] = useState(false);\n const [editingData, setEditingData] = useState(null);\n const [editRecurring, setEditRecurring] = useState(true);\n const [editSchedulingPayload, setEditSchedulingPayload] = useState(null);\n const [hasEditEventFrequencyChanged, setHasEditEventFrequencyChanged] = useState(false);\n\n // Print from event card\n const [eventDataToPrintLabel, setEventDataToPrintLabel] = useState(null);\n\n // Loading states\n const [calendarLoading, setCalendarLoading] = useState(true);\n\n // Refs\n const controller = useRef();\n const flatpickrRef = useRef();\n\n const options = {\n plugins: [],\n inline: true,\n dateFormat: \"m/d/Y\",\n mode: \"single\",\n // minDate: moment(new Date(2020, 0)).startOf(\"year\").format(\"MM/DD/YYYY\"),\n // maxDate: moment(new Date(2025, 0)).endOf(\"year\").format(\"MM/DD/YYYY\"),\n };\n\n /**\n * Calls envschedule/ api to GET scheduling data\n * @param {Date} start start date\n * @param {Date} end end date\n */\n const apiGetEnvSchedule = useCallback(async (start, end) => {\n setCalendarLoading(true);\n const spec_filters = specFilterValue;\n\n const abortController = new AbortController();\n if (controller.current) {\n controller.current.abort();\n }\n controller.current = abortController;\n const startString = moment(start, \"MM/DD/YYYY\").format(\"YYYY-MM-DD\");\n const endString = moment(end, \"MM/DD/YYYY\").format(\"YYYY-MM-DD\");\n const result = await getEnvSchedule(startString, endString, spec_filters, controller.current.signal);\n\n if (result && result.success) {\n const data = result.result;\n if (Array.isArray(data) && data.length === 0) {\n setScheduleData({});\n setMarkedDates([]);\n } else {\n setScheduleData(data);\n const marked_dates = (data.scheduled_submission_dates ?? [])\n .map((d) => moment(d).format(\"MM/DD/YYYY\"));\n setMarkedDates(marked_dates);\n }\n } else if (!result.canceled) {\n toast.error(result.message);\n }\n setCalendarLoading(result.canceled); // if API is aborted, then keep the loading to true\n }, [specFilterValue]);\n\n /**\n * Calls DELETE envschedule/ to delete event\n */\n const apiDeleteEnvSchedule = async () => {\n const {\n event_id, submission_id, delete_recurring, event_frequency,\n } = deleteEventData;\n const isRecurring = event_frequency !== \"one-time\" && delete_recurring;\n const response = await deleteEnvSchedule(event_id, isRecurring, submission_id, \"calendar-delete\");\n if (response.success) {\n toast.success(\"Event deleted\");\n } else {\n toast.error(response.message);\n }\n };\n\n /**\n * Fetch data from envschedule/ api\n */\n const fetchEnvScheduleData = useCallback(async () => {\n const { startDate, endDate } = getWeekDays(selectedDates[0]);\n await apiGetEnvSchedule(startDate, endDate);\n }, [apiGetEnvSchedule, selectedDates]);\n\n /**\n * Fetches scheduling data when -\n * 1. Initial load\n * 2. Change in selected date\n * 3. Spec filter changes\n */\n useEffect(() => {\n fetchEnvScheduleData();\n }, [selectedDates, specFilterValue, fetchEnvScheduleData]);\n\n /**\n * handler for date change using calendar\n * @param {Date[]} param Array for selected dates\n */\n const handleCalendarDateChange = ([d]) => {\n setSelectedDates([d]);\n };\n\n /**\n * Handle visibility of create sampling event modal\n * @param {Boolean} open true/false\n */\n const handleCreateSamplingEventModal = (open) => {\n setOpenCreateSamplingEventModal(open);\n };\n\n /**\n * Reset state to initial when create sampling modal closes\n */\n const resetCreateSamplingData = () => {\n setEditingData(null);\n setIsEditing(false);\n setTabSequence(tabList);\n setSelectedTab(tabList[0]);\n setNewSamplingEventData({\n samples: [],\n schedule: {\n dates: [],\n frequency: \"\",\n },\n event_name: \"\",\n action: \"calendar-add\",\n scheduled_from: \"calendar-add\",\n po: \"\",\n });\n setEditRecurring(true);\n setEditSchedulingPayload(null);\n setDeleteEventData({\n event_id: \"\",\n delete_recurring: true,\n submission_id: \"\",\n event_frequency: \"\",\n });\n };\n\n /**\n * Handles delete event\n */\n const handleDeleteEvent = async () => {\n setIsConfirmLoading(true);\n await apiDeleteEnvSchedule();\n setDeleteEventData({\n event_id: \"\",\n delete_recurring: true,\n submission_id: \"\",\n event_frequency: \"\",\n });\n setIsDeletingConfirm(false);\n setIsConfirmLoading(false);\n\n setCalendarLoading(true);\n await fetchEnvScheduleData();\n setCalendarLoading(false);\n };\n\n /**\n * Opens create sampling modal for editing scheduled status event\n * @param {*} schedulingData\n */\n const editEvent = (schedulingData) => {\n let scheduled_from = \"calendar\";\n if (schedulingData.scheduled_from && schedulingData.scheduled_from.includes(\"report\")) {\n scheduled_from = \"report\";\n }\n // For submitted submission, don't show the \"Select Frequency\" tab\n const targetTabList = schedulingData.status === \"-2\" ? editTabList[scheduled_from] : editTabList[scheduled_from].filter((tab) => tab !== \"Select Frequency\");\n setTabSequence(targetTabList);\n setSelectedTab(targetTabList[0]);\n setEditingData(schedulingData);\n setIsEditing(true);\n setOpenCreateSamplingEventModal(true);\n };\n\n /**\n * Handles editing event\n */\n const handleEditSchedule = async () => {\n if (isEditing && editSchedulingPayload) {\n setIsConfirmLoading(true);\n const payload = {\n ...editSchedulingPayload,\n edit_recurring: editingData?.event_frequency !== \"one-time\" && editRecurring,\n action: \"calendar-edit\",\n };\n if (!payload.edit_recurring && editingData?.event_frequency !== \"one-time\") {\n update(payload, \"schedule.dates\", () => [\n moment(editingData.event_date).format(\"YYYY-MM-DD\"),\n ]);\n }\n const response = await patchEnvSchedule(payload);\n if (response.success) {\n handleCreateSamplingEventModal(false);\n setIsEditing(false);\n setEditRecurring(true);\n setEditSchedulingPayload(null);\n setEditingData(null);\n setIsEditingConfirm(false);\n setTabSequence(tabList);\n setSelectedTab(tabList[0]);\n\n toast.success(\"Sampling Plan has been updated\");\n\n setCalendarLoading(true);\n await fetchEnvScheduleData();\n setCalendarLoading(false);\n } else {\n setIsEditingConfirm(false);\n toast.error(response.message);\n }\n setIsConfirmLoading(false);\n }\n };\n\n /**\n * Resetting states when closing create sampling modal\n */\n const onCancelSamplingModal = async () => {\n handleCreateSamplingEventModal(false);\n resetCreateSamplingData();\n\n setCalendarLoading(true);\n await fetchEnvScheduleData(); // Refetch on modal close\n setCalendarLoading(false);\n };\n\n /**\n * Resetting states when closing edit sampling modal\n */\n const onConfirmEditOpen = () => {\n setIsEditingConfirm(true);\n // setTabSequence(tabList);\n // setSelectedTab(tabList[0]);\n };\n\n /**\n * handler for selecting print option from event card menu\n * @param {*} eventData Event data to print label\n */\n const onPrintLabel = (eventData) => {\n setEventDataToPrintLabel(eventData);\n setIsPrintLabelModalVisible(true);\n };\n\n return (\n <>\n
    \n
    \n \n
    \n {\n const elemDate = moment(dayElem.getAttribute(\"aria-label\"), \"MMMM DD, YYYY\").format(\"MM/DD/YYYY\"); // eslint-disable-line\n if (markedDates.includes(elemDate)) {\n dayElem.innerHTML += \"\";\n }\n }}\n />\n
    \n
    \n handleCreateSamplingEventModal(true)}\n >\n \n Create Sampling Event\n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n Week\n
    \n setIsExportModalVisible(true)} htmlType=\"button\" type=\"default\" className=\"Calendar__EventCalendar__Button EventCalendar__ExportButton\">\n Export\n \n \n {hasFeature(\"printer\") && (\n setIsPrintLabelModalVisible(true)} htmlType=\"button\" type=\"primary\" className=\"Calendar__EventCalendar__Button\">\n \n Print Labels\n \n )}\n
    \n
    \n {\n setCalendarLoading(true);\n await fetchEnvScheduleData(); // Refetch on modal close\n setCalendarLoading(false);\n }}\n onEdit={editEvent}\n onPrintLabel={onPrintLabel}\n calendarLoading={calendarLoading}\n />\n
    \n
    \n {openCreateSamplingEventModal && (\n setSelectedTab(tab)}\n disableSwitchFromTab\n newSamplingEventData={newSamplingEventData}\n setNewSamplingEventData={setNewSamplingEventData}\n editingData={editingData}\n isEditing={isEditing}\n setEditSchedulingPayload={setEditSchedulingPayload}\n setHasEditEventFrequencyChanged={setHasEditEventFrequencyChanged}\n />\n )}\n {isEditingConfirm && (\n setEditRecurring(e.target.checked)}\n defaultChecked\n >\n Edit recurring event?\n \n )}\n buttonFunctions={[\n () => {\n setIsEditingConfirm(false);\n // resetCreateSamplingData();\n },\n () => handleEditSchedule(),\n ]}\n loading={isConfirmLoading}\n />\n )}\n {isDeletingConfirm && (\n {\n setDeleteEventData((state) => ({ ...state, delete_recurring: e.target.checked }));\n }}\n defaultChecked\n >\n Delete recurring event?\n \n )}\n buttonFunctions={[\n () => {\n setIsDeletingConfirm(false);\n resetCreateSamplingData();\n },\n () => handleDeleteEvent(),\n ]}\n loading={isConfirmLoading}\n />\n )}\n {isPrintLabelModalVisible && (\n {\n setIsPrintLabelModalVisible(false);\n setEventDataToPrintLabel(null);\n }}\n allowClear={false}\n />\n )}\n {isExportModalVisible && (\n setIsExportModalVisible(false)}\n allowClear={false}\n />\n )}\n \n );\n}\n","var _rect, _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCloseBlue = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 18,\n viewBox: \"0 0 18 18\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _rect || (_rect = /*#__PURE__*/React.createElement(\"rect\", {\n width: 18,\n height: 18,\n fill: \"white\",\n fillOpacity: 0.01\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M11.3885 5.55L9.00048 7.93875L6.61098 5.54925C6.53953 5.47938 6.44345 5.44044 6.34352 5.44087C6.24359 5.44129 6.14784 5.48103 6.07698 5.5515L5.55198 6.07725C5.51604 6.11173 5.48739 6.15307 5.46773 6.19882C5.44806 6.24458 5.43779 6.29381 5.43751 6.34362C5.43723 6.39342 5.44695 6.44277 5.4661 6.48874C5.48525 6.53471 5.51343 6.57637 5.54898 6.61125L7.93773 8.99925L5.54973 11.3888C5.47996 11.4603 5.44116 11.5564 5.44172 11.6564C5.44228 11.7563 5.48216 11.852 5.55273 11.9228L6.07773 12.4478C6.23223 12.603 6.46473 12.5977 6.61173 12.4507L9.00123 10.062L11.3892 12.4507C11.4608 12.5205 11.5569 12.5593 11.6568 12.5588C11.7568 12.5582 11.8525 12.5183 11.9232 12.4478L12.449 11.9228C12.4849 11.8882 12.5135 11.8468 12.5331 11.8011C12.5527 11.7553 12.5629 11.706 12.5631 11.6562C12.5633 11.6064 12.5535 11.5571 12.5343 11.5111C12.5151 11.4652 12.4868 11.4236 12.4512 11.3888L10.0617 8.99925L12.4512 6.61125C12.5211 6.5398 12.56 6.44372 12.5596 6.34379C12.5592 6.24386 12.5195 6.14811 12.449 6.07725L11.924 5.55225C11.8888 5.51623 11.8468 5.48754 11.8005 5.46785C11.7541 5.44815 11.7043 5.43784 11.654 5.4375C11.6046 5.4379 11.5558 5.44805 11.5104 5.46735C11.465 5.48666 11.4238 5.51475 11.3892 5.55H11.3885Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCloseBlue, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/closeBlue.64b35599.svg\";\nexport { ForwardRef as ReactComponent };","// TestPill.jsx\nimport React from \"react\";\n\nimport { Tooltip } from \"antd\";\n\nimport { ReactComponent as CloseIcon } from \"../../../../../assets/images/environment/closeBlue.svg\";\n\nimport \"./GraphTestPill.css\";\n\nconst GraphTestPill = ({\n testName, color, isSelected, onClick, icon, borderColor,\n}) => (\n \n {testName}\n \n )}\n >\n onClick(testName)}\n >\n {typeof icon === \"string\" ? (\n \"Test\"\n ) : (\n \n )}\n {testName}\n {isSelected && }\n
    \n \n);\n\nexport default React.memo(GraphTestPill);\n","import React from \"react\";\n\nimport { uniqBy, orderBy } from \"lodash\";\nimport moment from \"moment\";\n\nimport { colorsAndIconsArray } from \"../../../helper\";\n\nimport \"./ComposedGraphStyle.css\";\n\n// Custom Tooltip\nconst GraphTooltipRender = React.memo(({\n active, payload, label, graphType, hoveredItem,\n}) => {\n const Env_analyticsGraphTooltipFooter_Table = {\n display: \"flex\",\n justifyContent: \"space-between\",\n marginBottom: \"4px\",\n };\n // const Env_analyticsGraphTooltipFooter_Total = {\n // display: \"flex\",\n // justifyContent: \"space-between\",\n // fontFamily: \"Roboto medium\",\n // };\n\n const Env_analyticsGraphTooltipTest = (entry) => ({\n maxWidth: \"120px\",\n marginRight: \"8px\",\n color: entry.color,\n });\n\n if (active && payload && payload.length) {\n if (graphType === \"line\") {\n if (!hoveredItem) return null;\n let sortedPayload = uniqBy(payload, \"name\");\n sortedPayload = sortedPayload.filter((test) => test?.value === hoveredItem?.data?.y);\n return (\n
    \n
    \n
    {moment(label).format(\"DD MMM, YYYY\")}
    \n
    \n
    \n
    \n {orderBy(sortedPayload, [\"value\"], [\"desc\"]).map((entry) => (\n \n \n {entry.name}\n \n \n {entry.value}\n \n
    \n ))}\n {/*
    \n Total\n {payload[0].payload.total || 0}\n
    */}\n
    \n
    \n );\n }\n if (graphType === \"bar\") {\n if (!hoveredItem) return null;\n const entry = payload[0].payload;\n const tooltipColor = colorsAndIconsArray.filter((item) => item?.borderColor === entry.color)?.[0].hoverColor;\n const Env_analyticsGraphTooltipContainer = {\n minWidth: \"150px\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n backgroundColor: tooltipColor,\n opacity: 1,\n };\n const Env_analyticsGraphTooltipBar_Footer = {\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n };\n return (\n \n
    \n
    {entry.test_name}
    \n
    \n
    \n \n
    Total
    \n
    {entry.total}
    \n
    \n
    \n );\n }\n }\n return null;\n});\n\nexport default GraphTooltipRender;\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgGraphPillTestSvg = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 14,\n viewBox: \"0 0 12 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.66662 0.333984V1.66732H7.99996V3.82932C7.99996 4.60132 8.16729 5.36332 8.49062 6.06398L11.3453 12.248C11.5766 12.75 11.3573 13.344 10.856 13.5747C10.7246 13.636 10.582 13.6673 10.4373 13.6673H1.56262C1.01062 13.6673 0.562622 13.2193 0.562622 12.6673C0.562622 12.5227 0.593955 12.3793 0.654622 12.248L3.50929 6.06398C3.83262 5.36398 3.99996 4.60132 3.99996 3.82932V1.66732H3.33329V0.333984H8.66662ZM6.66662 1.66732H5.33329V4.33398H6.66662V1.66732Z\",\n fill: \"#E597F2\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgGraphPillTestSvg, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/graphPillTest_svg.dac7720c.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\n\nimport { Dot } from \"recharts\";\n\nexport default function ScatterPoint(props) {\n const {\n cx, cy, updateHoveredItem, payload, fill, node,\n } = props;\n\n const [hovered, setHovered] = useState(false);\n\n const handleDotHover = (hoverState) => {\n setHovered(hoverState);\n const customPayload = {\n ...payload, y: node.y, cx, cy,\n };\n if (hoverState) {\n updateHoveredItem({ data: customPayload, type: \"scatter\" });\n } else {\n updateHoveredItem(null);\n }\n };\n\n return (\n <>\n handleDotHover(true)}\n onMouseLeave={() => handleDotHover(false)}\n />\n \n );\n}\n","// GraphComponent.jsx\n\nimport React, {\n useState, useMemo, useEffect, useCallback,\n} from \"react\";\n\nimport { isArray, uniq, debounce } from \"lodash\";\nimport moment from \"moment\";\nimport { Scrollbar } from \"react-scrollbars-custom\";\nimport {\n ComposedChart,\n Line,\n Bar,\n XAxis,\n YAxis,\n Tooltip,\n Brush,\n ResponsiveContainer,\n Scatter,\n Cell,\n Dot,\n} from \"recharts\";\n\nimport NoResultsGif from \"../../../../Common/NoResultsGIF\";\n// import GraphTooltipCursor from \"../../../../Product/Analytics/Containers/GraphContainer/Components/GraphTooltipCursor\";\nimport { colorsForBar, colorsAndIconsArray } from \"../../../helper\";\nimport GraphTestPill from \"./GraphTestPill\";\nimport CustomTooltip from \"./GraphTooltipRender\";\nimport ScatterPoint from \"./Scatterpoint\";\n\nimport { ReactComponent as TestGraphPillSvg } from \"../../../../../assets/images/analytics/graphPillTest_svg.svg\";\nimport pumpkinGif from \"../../../../../assets/images/environment/pumpkin.gif\";\n\nimport \"./ComposedGraphStyle.css\";\n\nconst ComposedGraphComponent = ({ graphType, graphData = [] }) => {\n const [hoveredItem, setHoveredItem] = useState(null);\n const [lineGraphModData, setLineGraphModData] = useState([]);\n const [brushSelection, setBrushSelection] = useState([0, 1]);\n const [selectedTests, setSelectedTests] = useState([]);\n const [visibleTests, setVisibleTests] = useState(5); // For limiting visible tests\n const [debouncedFilteredData, setDebouncedFilteredData] = useState([]);\n\n const greyColor = \"#ccc\";\n\n /**\n * Transforms test data by grouping it by date for line graphs.\n *\n * @param {Array} data - The array of test objects.\n * @returns {Array} - The transformed array grouped by date.\n */\n const groupDataByDate = (data) => {\n const dateMap = {};\n\n data.forEach((test) => {\n const testName = test.test_name;\n const details = test.details;\n\n Object.keys(details).forEach((date) => {\n if (!dateMap[date]) {\n dateMap[date] = { date: moment(date).format(\"YYYY-MM-DD\") };\n }\n dateMap[date][testName] = details[date];\n\n // Initialize or update the total for the date\n if (!dateMap[date].total) {\n dateMap[date].total = 0;\n }\n dateMap[date].total += details[date];\n });\n });\n\n // Convert the dateMap to an array and sort by date\n const groupedData = Object.values(dateMap).sort(\n (a, b) => new Date(a.date) - new Date(b.date),\n );\n return groupedData;\n };\n\n /**\n * Transforms test data for bar graphs, aggregating total counts per test.\n *\n * @param {Array} data - The array of test objects.\n * @returns {Array} - The transformed array for bar charts.\n */\n const transformDataForBar = (data = []) => {\n if (!data || data.length === 0) {\n return []; // Return an empty array if data is undefined or empty\n }\n return data.map((test, index) => ({\n test_name: test.test_name,\n total: test.total,\n color: colorsForBar[index % colorsForBar.length] || greyColor, // Cycle colors\n }));\n };\n /**\n * Initializes selected tests and graph data based on the graph type:\n * for \"line\" graphs, sets unique tests limited by visibleTests; for \"bar\" graphs, transforms data and sets initial selected tests.\n */\n useEffect(() => {\n if (!graphData || graphData?.length === 0) {\n return;\n }\n if (graphType === \"line\") {\n const uniqueTests = uniq(graphData.map((item) => item.test_name));\n setSelectedTests(uniqueTests.slice(0, visibleTests));\n }\n if (graphType === \"bar\") {\n const transformedBarData = transformDataForBar(graphData);\n setLineGraphModData(transformedBarData);\n setSelectedTests(\n graphData.map((item) => item.test_name).slice(0, visibleTests),\n );\n }\n }, []); //eslint-disable-line\n\n // Effect hook to manage graph data updates and transformations based on props.\n useEffect(() => {\n if (!graphData || graphData?.length === 0) {\n setLineGraphModData([]);\n setSelectedTests([]);\n return;\n }\n\n if (graphType === \"line\") {\n const groupedData = groupDataByDate(graphData) || [];\n\n setBrushSelection([0, groupedData.length - 1]); // Set brush selection range correctly\n setLineGraphModData(groupedData);\n } else if (graphType === \"bar\") {\n const transformedBarData = transformDataForBar(graphData);\n setLineGraphModData(transformedBarData);\n }\n }, [graphData, visibleTests, graphType]);\n\n // Handles selection and deselection of test names in the UI.\n const handleTestSelection = (testName) => {\n setSelectedTests((prev) => (prev.includes(testName)\n ? prev.filter((name) => name !== testName)\n : [...prev, testName]));\n };\n\n // Memoized computation of all unique test names for pill rendering.\n const allTestNames = useMemo(() => {\n if (!graphData || graphData.length === 0) {\n return []; // Return empty array when graphData is empty\n }\n return uniq(graphData.map((item) => item.test_name));\n }, [graphData]);\n\n // Modified `filteredData` with debounce for smooth operation**\n const updateFilteredData = useCallback(\n debounce((data) => {\n setDebouncedFilteredData(data);\n }, 300), // Adjust the debounce delay as needed\n [graphType, lineGraphModData, brushSelection, selectedTests],\n );\n /**\n * useEffect to filter and update data based on graph type, brush selection, and selected tests\n */\n useEffect(() => {\n let data = lineGraphModData;\n\n if (graphType === \"line\") {\n // Apply brush selection if applicable\n if (isArray(brushSelection) && brushSelection.length === 2) {\n const [startIdx, endIdx] = brushSelection;\n data = data.slice(startIdx, endIdx + 1);\n }\n\n // Map the data to include only selected tests\n const mappedData = data.map((entry) => {\n const filteredEntry = { date: entry.date, total: entry.total };\n selectedTests.forEach((test) => {\n filteredEntry[test] = entry[test] || null; // Use null for missing values\n });\n return filteredEntry;\n });\n\n // Filter out entries where none of the selected tests are present\n const partiallyFilteredData = mappedData.filter((entry) => selectedTests.some((test) => entry[test] !== null && entry[test] !== undefined));\n\n updateFilteredData(partiallyFilteredData);\n }\n\n if (graphType === \"bar\") {\n const filteredBarData = lineGraphModData.filter((item) => selectedTests.includes(item.test_name));\n updateFilteredData(filteredBarData);\n }\n }, [lineGraphModData, brushSelection, selectedTests, graphType, updateFilteredData]);\n\n let currentMonth = \"\";\n let currentYear = \"\";\n\n // Function to format x-axis ticks for line and bar graphs based on date or label length\n const formatXAxisTicks = (tickItem) => {\n if (tickItem === \"auto\" || tickItem === \"Invalid date\") {\n return \"\"; // Return blank for \"auto\" and \"Invalid date\"\n }\n\n if (graphType === \"line\") {\n const date = moment(tickItem);\n if (!date.isValid()) return \"\"; // Return blank for invalid dates\n\n const formattedDate = date.format(\"DD MMM\");\n const month = date.format(\"MMM\");\n const year = date.format(\"YYYY\");\n\n // Always show year for the first tick\n if (!currentYear || year !== currentYear || tickItem === debouncedFilteredData[brushSelection[0]]?.date) {\n currentYear = year;\n currentMonth = month;\n // Show full date if the month changes or it's the first tick of the brush selection\n if (!currentMonth || month !== currentMonth) {\n currentMonth = month;\n return formattedDate; // Return full formatted date (e.g., '23 Oct')\n }\n return `${formattedDate} ${year}`; // Return full formatted date with year (e.g., '23 Oct 2024')\n }\n\n // Show full date if the month changes or it's the first tick of the brush selection\n if (!currentMonth || month !== currentMonth) {\n currentMonth = month;\n return formattedDate; // Return full formatted date (e.g., '23 Oct')\n }\n\n // Otherwise, just show the day (e.g., '23')\n return date.format(\"DD\");\n }\n\n if (graphType === \"bar\") {\n const maxLength = 12;\n return tickItem.length > maxLength\n ? `${tickItem.slice(0, maxLength)}...`\n : tickItem;\n }\n\n return tickItem;\n };\n // Function to format y-axis ticks for line and bar graphs based on value or label length\n const formatYAxisTicks = (tickItem) => (tickItem === \"auto\" ? \"\" : tickItem);\n\n // Formats brush tick date to display as 'DD MMM' (e.g., '23 Oct')\n\n const formatBrushDate = (tickItem) => moment(tickItem).format(\"DD MMM\");\n\n /**\n *\n * Renders a list of test pills with dynamic colors and icons, and a 'Show More' button for additional tests\n */\n const renderPills = () => {\n const testsToShow = allTestNames.slice(0, visibleTests);\n return (\n <>\n {testsToShow.map((testName, index) => {\n const colorIndex = index % colorsAndIconsArray.length;\n const { accentColor, borderColor, testIcon } = colorsAndIconsArray[colorIndex] || {};\n const pillColor = accentColor || greyColor;\n const pillBorderColor = borderColor || greyColor;\n const pillIcon = testIcon || TestGraphPillSvg;\n\n return (\n \n );\n })}\n {visibleTests < allTestNames.length && (\n setVisibleTests((prev) => prev + 10)}\n >\n Show More\n \n )}\n \n );\n };\n /**\n *\n * @returns Renders scatter points for each selected test in line graphs, with colors based on test names, and updates hovered item on interaction\n\n */\n const renderScatterPoints = () => {\n if (graphType !== \"line\" || selectedTests.length === 0) return null;\n return selectedTests.map((testName, index) => {\n const colorIndex = allTestNames.indexOf(testName) % colorsAndIconsArray.length;\n const fillColor = colorsAndIconsArray[colorIndex]?.borderColor || greyColor;\n return (\n }\n fill={fillColor}\n />\n );\n });\n };\n /**\n *\n * @returns Rendered lines for each selected test in line graphs with dynamic colors and custom tooltips,\n * along with hover effects on line dots and embedded scatter points\n */\n const renderLines = () => {\n if (graphType !== \"line\" || selectedTests.length === 0) return null;\n return selectedTests.map((testName, index) => {\n const colorIndex = allTestNames.indexOf(testName) % colorsAndIconsArray.length;\n const strokeColor = colorsAndIconsArray[colorIndex]?.borderColor || greyColor;\n return (\n \n }\n cursor={false}\n position=\"top\"\n />\n {\n const {\n cx,\n cy,\n } = props;\n const isHovered = hoveredItem && hoveredItem.data && hoveredItem.data.cx === cx && hoveredItem.data.cy === cy;\n return (\n \n );\n }}\n animationBegin={200}\n isAnimationActive\n />\n {renderScatterPoints()}\n \n );\n });\n };\n\n const renderBars = () => {\n if (graphType !== \"bar\" || selectedTests.length === 0) return null;\n return (\n <>\n \n )}\n cursor={false}\n position=\"top\"\n />\n setHoveredItem({ data: val.payload, type: \"average\" })}\n onMouseOut={() => setHoveredItem(null)}\n >\n {debouncedFilteredData.map((entry, index) => (\n \n ))}\n \n \n );\n };\n\n return (\n
    \n
    \n {graphType === \"bar\" ? \"Test By Volume\" : \"Test Volume Trend over Time\"}\n
    \n {allTestNames?.length > 0 && (\n \n
    \n {renderPills()}\n
    \n
    \n )}\n
    \n {/* Graph Rendering */}\n {(graphData?.length > 0) ? (\n \n {debouncedFilteredData ? (\n \n 0 ? \"block\" : \"none\",\n }}\n stroke=\"#C4D2DB\"\n padding={{\n left: 10, right: 10,\n }}\n tickClassName=\"xAxisTickLabel\"\n axisLine={false}\n domain={[\"auto\", \"auto\"]}\n interval={0}\n />\n 0 ? \"block\" : \"none\",\n }}\n stroke=\"#C4D2DB\"\n fontSize={11}\n fontFamily=\"Roboto\"\n domain={selectedTests.length > 0 ? [0, \"auto\"] : [0, 0]}\n axisLine={false}\n />\n {renderBars()}\n {renderLines()}\n {selectedTests.length > 0 && (\n \n )}\n \n ) : <>}\n \n ) : (\n \n )}\n {selectedTests.length === 0 && graphData?.length > 0 && (\n \n Please select at least one test to display the graph.\n
    \n )}\n\n
    \n
    \n );\n};\n\nexport default ComposedGraphComponent;\n","import React from \"react\";\nimport \"./EnvAnalyticsHeader.css\";\n\n/**\n * EnvAnalyticsHeader Component\n * Renders headers for specifications with customizable colors.\n * @param {Object} specDetails - The specification details containing counts.\n * @param {string} mainHeading - The main heading for the section.\n * @param {string} sampleHeading - The heading for the sample count.\n * @param {string} retestHeading - The heading for the retest count.\n * @param {string} textColor - The text color for the headings and sample counts.\n * @param {string} borderColor - The border color for the boxes.\n * @param {string} backgroundColor - The background color for the boxes.\n */\nconst EnvAnalyticsHeader = ({\n specDetailsNum,\n specDetailsRetest,\n mainHeading,\n sampleHeading,\n retestHeading,\n textColor,\n borderColor,\n backgroundColor,\n}) => (\n
    \n \n {mainHeading}\n \n
    \n \n {sampleHeading}\n \n {specDetailsNum}\n \n
    \n \n {retestHeading}\n \n {specDetailsRetest}\n \n
    \n
    \n
    \n);\n\nexport default EnvAnalyticsHeader;\n","import React from \"react\";\n\nimport { Tooltip } from \"antd\";\nimport moment from \"moment\";\n\nconst EnvAnalyticsTableRow = ({ row, headers }) => {\n const progressWidth = row.ratio;\n const inSpec = row.in_spec_num;\n const outOfSpec = row.out_of_spec_num;\n const noSpec = row.no_spec_num;\n const total = row.total;\n\n return (\n \n {headers.map((header, index) => {\n let cellContent;\n\n if (header === \"Status\") {\n cellContent = (\n // Tooltip applied to the entire progress bar container\n \n

    \n {`Total Sample: ${total}`}\n

    \n

    \n {`Out of Spec: ${outOfSpec}`}\n

    \n

    \n {`In Spec: ${inSpec}`}\n

    \n { noSpec > 0 && (\n

    \n {`No Spec: ${noSpec}`}\n

    \n )}\n
    \n )}\n placement=\"topLeft\"\n overlayClassName=\"EnvAnalyticsTableRow__CustomTooltipOverlay\"\n >\n
    \n {/* Always visible progress bar */}\n \n \n
    \n \n );\n } else if (header === \"Out of Spec Samples\") {\n cellContent = (\n \n {row.out_of_spec_num === 0 && row.in_spec_num === 0\n ? \"-\"\n : `${((row.out_of_spec_num / total) * 100).toFixed(0)}%`}\n \n );\n } else if (header === \"Swab ID\") {\n cellContent = (\n
    \n {row.swab}\n
    \n );\n } else if (header === \"Last submitted on\") {\n cellContent = (\n \n {moment(row.last_submitted).format(\"MMM DD YYYY\")}\n \n );\n } else if (header === \"No of days since last submission\") {\n cellContent = (\n \n {row.day_till_now}\n {\" \"}\n Days\n \n );\n } else {\n cellContent = row[header];\n }\n\n return (\n \n {cellContent}\n \n );\n })}\n \n );\n};\n\nexport default EnvAnalyticsTableRow;\n","import React from \"react\";\n\nimport { Scrollbar } from \"react-scrollbars-custom\";\n\nimport NoResultsGif from \"../../../../Common/NoResultsGIF\";\nimport EnvAnalyticsTableRow from \"./EnvAnalyticsTableRow\";\n\nimport pumpkinGif from \"../../../../../assets/images/environment/pumpkin.gif\";\nimport \"./EnvAnalyticsTable.css\";\n\nconst EnvAnalyticsTable = ({ headers, data, tableType }) => (\n
    \n
    \n {tableType === \"SubmissionTracker\"\n ? \"Swab Submission Tracker: Last Submitted Samples\"\n : \"Alert! Some Areas are not doing well\"}\n
    \n
    \n \n {data && data.length > 0 ? (\n \n \n \n {headers.map((header, index) => (\n \n ))}\n \n \n \n {data.map((row, index) => (\n \n ))}\n \n
    {header}
    \n ) : (\n \n )}\n \n
    \n
    \n);\n\nexport default EnvAnalyticsTable;\n","import React, {\n useEffect,\n useState,\n useCallback,\n useMemo,\n useRef,\n} from \"react\";\n\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport { Skeleton, Spin } from \"antd\";\nimport debounce from \"lodash/debounce\";\nimport isEqual from \"lodash/isEqual\";\nimport moment from \"moment\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport DatePicker from \"../../Common/DatePicker/DatePicker\";\nimport GraphComponent from \"./Components/Graph/ComposedGraphComponent\";\nimport EnvAnalyticsHeader from \"./Components/Header/EnvAnalyticsHeader\";\nimport AnalyticsTable from \"./Components/Table/EnvAnalyticsTable\";\n\nimport { envAnalyticsDataFetch } from \"../../../actions/envAnalytics\";\n\nimport { ReactComponent as CalendarIcon } from \"../../../assets/images/environment/CalendarEnv.svg\";\n\nimport \"./EnvAnalyticsTab.css\";\n\nconst headers = [\"Swab ID\", \"Last submitted on\", \"No of days since last submission\"];\nconst headers_2 = [\"Swab ID\", \"Status\", \"Out of Spec Samples\"];\n\nexport default function EnvAnalyticsTab() {\n const [dateSelected, setDateSelected] = useState(\"\");\n const [analyticsData, setAnalyticsData] = useState({\n spec_details: null,\n test_details: null,\n submission_details: null,\n ratio_details: null,\n });\n const [prevDateValue, setPrevDateValue] = useState(\"\");\n const [isLoading, setIsLoading] = useState(true);\n const [isInitial, setIsInitial] = useState(true);\n const abortControllerRef = useRef(null);\n\n /**\n * Function to fetch analytics data from the API\n * @param {string} params.startDate - Start date for the data range\n * @param {string} params.endDate - End date for the data range\n * @param {string} [params.category=\"all\"] - Category filter for the data\n */\n const fetchAnalyticsData = useCallback(\n async ({\n startDate, endDate, signal,\n }) => {\n try {\n const payload = {};\n if (startDate && endDate) {\n payload.date_from = startDate;\n payload.date_to = endDate;\n }\n\n const response = await envAnalyticsDataFetch(payload, signal);\n if (response.success) {\n return response.result;\n }\n toast.error(\"Failed to load analytics specs\");\n return null;\n } catch (error) {\n if (error.name !== \"AbortError\") {\n toast.error(\"Error fetching analytics data\");\n }\n return null;\n }\n },\n [],\n );\n /**\n * On date change if the user does not apply selected date change it to previous date.\n * @param {*} date\n */\n const handleDateSelection = (date) => {\n if (date === \"\") {\n setDateSelected(prevDateValue);\n } else {\n setDateSelected(date);\n }\n };\n /**\n *\n * @returns Dates that have been tests passed to calendar and should be displayed as red dots.\n */\n const getReportDates = async () => {\n try {\n const [startDate, endDate] = dateSelected.split(\" - \");\n const response = await envAnalyticsDataFetch({\n date_from: moment(startDate, \"MMM D, YYYY\").format(\"YYYY-MM-DD\"),\n date_to: endDate && endDate !== \"\" ? moment(endDate, \"MMM D, YYYY\").format(\"YYYY-MM-DD\") : moment(startDate, \"MMM D, YYYY\").format(\"YYYY-MM-DD\"),\n });\n if (response.success) {\n return response.dates ?? [];\n }\n toast.error(\"Failed to load analytics specs\");\n return null;\n } catch (error) {\n if (error.name !== \"AbortError\") {\n toast.error(\"Error fetching analytics data\");\n }\n return null;\n }\n };\n\n /**\n * useEffect to fetch initial data on component mount\n * Fetches data for the last 30 days by default\n */\n useEffect(() => {\n const fetchData = async () => {\n setIsLoading(true);\n try {\n // Calculate date range for the last 30 days\n const startDate = moment().subtract(30, \"days\").format(\"YYYY-MM-DD\");\n const endDate = moment().format(\"YYYY-MM-DD\");\n setDateSelected(`${moment(startDate).format(\"MMM DD, YYYY\")} - ${moment(endDate).format(\"MMM DD, YYYY\")}`);\n setPrevDateValue(`${moment(startDate).format(\"MMM DD, YYYY\")} - ${moment(endDate).format(\"MMM DD, YYYY\")}`);\n const sampleValues = await fetchAnalyticsData({\n startDate,\n endDate,\n });\n\n if (sampleValues) {\n setAnalyticsData(sampleValues);\n }\n } catch (error) {\n toast.error(error.message);\n } finally {\n setIsLoading(false);\n setIsInitial(false);\n }\n };\n\n fetchData();\n }, []); // eslint-disable-line\n\n /**\n * Function to handle date range changes from the DatePicker component\n * It debounces the API call to avoid sending too many requests in quick succession\n * @param {string} startDate - Selected start date\n * @param {string} endDate - Selected end date\n */\n const handleDateChange = useCallback(\n debounce(async (startDate, endDate) => {\n // Format dates for comparison\n setIsLoading(true);\n const formattedStartDate = moment(startDate, \"MMM D, YYYY\").format(\"YYYY-MM-DD\");\n const formattedEndDate = moment(endDate, \"MMM D, YYYY\").format(\"YYYY-MM-DD\");\n\n // Update data only if dates are different\n if (abortControllerRef.current) {\n abortControllerRef.current.abort();\n }\n abortControllerRef.current = new AbortController();\n\n try {\n const sampleValues = await fetchAnalyticsData({\n startDate: formattedStartDate,\n endDate: formattedEndDate,\n signal: abortControllerRef.current.signal,\n });\n\n // Check if the fetched data is different from the current state\n if (sampleValues && !isEqual(sampleValues, analyticsData)) {\n setAnalyticsData(sampleValues);\n }\n } catch (error) {\n toast.error(error.message);\n } finally {\n setIsLoading(false);\n // setIsInitial(false);\n }\n }, 300),\n [fetchAnalyticsData, dateSelected, analyticsData],\n );\n\n /**\n * This triggers the `handleDateChange` function whenever the date range is updated\n */\n const handleDateSearch = () => {\n const [startDate, endDate] = dateSelected.split(\" - \");\n if (startDate && endDate) {\n handleDateChange(startDate, endDate);\n }\n };\n // useEffect(() => {\n // const [startDate, endDate] = dateSelected.split(\" - \");\n // if (startDate && endDate) {\n // handleDateChange(startDate, endDate);\n // }\n // }, [dateSelected, handleDateChange]);\n\n /**\n * Memoized graph data to avoiding unnecessary recalculations\n */\n const graphDataMemo = useMemo(() => analyticsData.test_details, [analyticsData.test_details]);\n\n return (\n \n
    \n {(isLoading && isInitial) ? (\n
    \n \n
    \n \n
    \n
    \n \n
    \n
    \n ) : (\n <>\n
    \n
    \n
    \n { (!isLoading && !isInitial) ? (\n setPrevDateValue(val)}\n popoverPlacement=\"bottomRight\"\n popoverClassName=\"EnvAnalyticsTabPopover\"\n disableClickAway\n disableSingleDaySelection\n datePickerDisplayProps={{\n displayClassName: \"EnvAnalyticsTab__DateDisplayProperties\",\n customCalendarIcon: ,\n showText: false,\n }}\n />\n ) : (\n <>\n
    \n } />\n
    \n \n )}\n
    {dateSelected}
    \n
    \n
    \n
    \n \n\n \n\n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n )}\n
    \n
    \n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAnalytics = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_1165_90987)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.4596 1.33337C10.5922 1.33337 10.7193 1.38605 10.8131 1.47982L13.8536 4.52026C13.9473 4.61403 14 4.74121 14 4.87381V14.0054C13.9998 14.1808 13.93 14.349 13.8059 14.473C13.6817 14.5971 13.5135 14.6667 13.338 14.6667H2.662C2.48692 14.6655 2.31934 14.5954 2.19548 14.4717C2.07161 14.348 2.0014 14.1805 2 14.0054V1.99471C2 1.62937 2.29667 1.33337 2.662 1.33337H10.4596Z\",\n fill: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n className: \"invertColor\",\n d: \"M9.33337 5.69064C8.84568 5.40907 8.28136 5.28912 7.7213 5.34798C7.16124 5.40685 6.63419 5.6415 6.21569 6.01832C5.79719 6.39514 5.50873 6.89477 5.39165 7.44561C5.27456 7.99645 5.33487 8.57021 5.56392 9.08467C5.79297 9.59913 6.17901 10.0279 6.66671 10.3094C7.1544 10.591 7.71872 10.711 8.27878 10.6521C8.83884 10.5932 9.36589 10.3586 9.78439 9.98176C10.2029 9.60494 10.4913 9.10531 10.6084 8.55447L8.00004 8.00004L9.33337 5.69064Z\",\n fill: \"currentColor\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_1165_90987\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 16,\n height: 16,\n fill: \"none\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAnalytics, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/Analytics.ce27298f.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgReportOutlined = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_9_258)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M5.5 4C5.77614 4 6 4.22386 6 4.5V7.5C6 7.77614 6.22386 8 6.5 8H17.5C17.7761 8 18 7.77614 18 7.5V4.5C18 4.22386 18.2239 4 18.5 4H20.007C20.555 4 21 4.445 21 4.993V21.007C20.9997 21.2703 20.895 21.5227 20.7089 21.7089C20.5227 21.895 20.2703 21.9997 20.007 22H3.993C3.72972 21.9997 3.4773 21.895 3.29114 21.7089C3.10497 21.5227 3.00026 21.2703 3 21.007V4.993C3 4.445 3.445 4 3.993 4H5.5ZM8 2.5C8 2.22386 8.22386 2 8.5 2H15.5C15.7761 2 16 2.22386 16 2.5V5.5C16 5.77614 15.7761 6 15.5 6H8.5C8.22386 6 8 5.77614 8 5.5V2.5ZM7 14.5C7 14.2239 7.22386 14 7.5 14H12.5C12.7761 14 13 14.2239 13 14.5V15.5C13 15.7761 12.7761 16 12.5 16H7.5C7.22386 16 7 15.7761 7 15.5V14.5ZM17 10.5C17 10.2239 16.7761 10 16.5 10H7.5C7.22386 10 7 10.2239 7 10.5V11.5C7 11.7761 7.22386 12 7.5 12H16.5C16.7761 12 17 11.7761 17 11.5V10.5Z\",\n fill: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 7,\n y: 10,\n width: 10,\n height: 2,\n rx: 0.5,\n fill: \"transparent\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 7,\n y: 14,\n width: 6,\n height: 2,\n rx: 0.5,\n fill: \"transparent\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_9_258\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgReportOutlined, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ReportOutlined.0413e0ae.svg\";\nexport { ForwardRef as ReactComponent };","import React, { Component } from \"react\";\n\nimport NavTabs from \"../Common/UIComponents/NavTabs\";\nimport Analytics from \"./Analytics/Analytics\";\nimport Calendar from \"./Calendar/Calendar\";\nimport EnvAnalyticsTab from \"./EnvAnalyticsTab/EnvAnalyticsTab\";\n\nimport { hasFeature } from \"../../utils/common\";\n\nimport { ReactComponent as AnalyticsIcon } from \"../../assets/images/environment/Analytics.svg\";\nimport { ReactComponent as CalendarIcon } from \"../../assets/images/environment/CalendarEnv.svg\";\nimport { ReactComponent as ReportIcon } from \"../../assets/images/feature-icons/ReportOutlined.svg\";\n\nimport \"./Env.css\";\n\nclass Env extends Component {\n _isMounted = false;\n\n constructor(props) {\n super(props);\n\n this.state = {\n activeTab: \"1\",\n };\n\n this.handleSelect = this.handleSelect.bind(this);\n }\n\n componentDidMount() {\n const { onChangeReport } = this.props;\n this._isMounted = true;\n if (this._isMounted) {\n const url = window.location.href;\n let activeTab = \"1\";\n let subUrl = \"report\";\n\n if (url === \"/environment\") {\n activeTab = \"1\";\n subUrl = \"\";\n } else if (url.includes(\"/calendar\") && hasFeature(\"environment_calendar\")) {\n activeTab = \"2\";\n subUrl = \"calendar\";\n } else if (url.includes(\"/analytics\")) {\n activeTab = \"3\";\n subUrl = \"analytics\";\n }\n if (this._isMounted) {\n this.setState({ activeTab });\n }\n onChangeReport(subUrl);\n }\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n }\n\n handleSelect(selectedTab) {\n const { history } = this.props;\n if (this._isMounted) {\n this.setState({ activeTab: selectedTab }, () => {\n if (selectedTab === \"1\") {\n history.push(\"/environment\");\n } else if (selectedTab === \"2\") {\n history.push(\"/environment/calendar\");\n } else if (selectedTab === \"3\") {\n history.push(\"/environment/analytics\");\n }\n });\n }\n }\n\n render() {\n const { activeTab } = this.state;\n\n return (\n
    \n {this._isMounted\n ? (\n ,\n children: ,\n },\n hasFeature(\"environment_calendar\") && {\n key: \"2\",\n label: \"Calendar\",\n icon: ,\n children: ,\n },\n {\n key: \"3\",\n label: \"Analytics\",\n icon: ,\n children: ,\n },\n ]}\n />\n ) : null}\n
    \n );\n }\n}\n\nexport default Env;\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./DeleteProductConfirmation.css\";\nimport { toast } from \"react-toastify\";\n\nconst DeleteProductConfirmation = ({\n cardName,\n onDeleteProduct,\n onToggleModal,\n isInquiry,\n}) => {\n const onDeleteButtonClick = async () => {\n const success = await onDeleteProduct();\n if (success) {\n toast.success(`\"${cardName}\" has been deleted successfully`);\n onToggleModal();\n }\n };\n\n return (\n \n
    \n {!isInquiry\n && (\n
    \n Delete "\n {cardName}\n "\n {\" \"}\n
    \n )}\n
    \n Are you sure you want to delete this\n {`${isInquiry ? \" Inquiry\" : \" Card\"}`}\n ?\n
    \n
    \n \n \n
    \n
    \n \n );\n};\n\nexport default DeleteProductConfirmation;\n","import axios from \"axios\";\nimport { getUserCredentials } from \"../utils/common\";\nimport { API_URL } from \"../utils/Constant\";\nimport { getValueOfObj } from \"../utils/helpers\";\n\nexport const getProducts = async (payload, signal = null) => {\n try {\n let listFromResponse = [];\n let productList = [];\n let message;\n\n if (payload.flag === \"index\") {\n const response = await axios.get(`${API_URL}/indexcard/`, {\n params: {\n index: payload.index || \"\",\n },\n signal,\n });\n message = response.data[0]?.message;\n listFromResponse = getValueOfObj(response, \"data\", \"0\", \"result\", \"0\", \"index_list\", \"0\", \"index_list\");\n } else {\n const response = await axios.get(`${API_URL}/product/`, {\n signal,\n });\n message = response.data[0]?.message;\n listFromResponse = getValueOfObj(response, \"data\", \"0\", \"result\", \"0\", \"sku_list\");\n }\n if (listFromResponse) {\n productList = listFromResponse.map((item) => {\n const newItem = { ...item };\n if (!newItem.tags) {\n newItem.tags = [];\n }\n return newItem;\n });\n }\n\n return { success: message === \"Success\", message: message ?? \"Something went wrong.\", productList };\n } catch (e) {\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/* not used */\n// export const getSearchProducts = async (productSearchText) => {\n// try {\n// let response = await axios.get(`${API_URL}/productsearch/`, {\n// params: {\n// input: productSearchText,\n// },\n// });\n// const data = await response.data;\n// let message;\n// let list = [];\n// if (data && data.length > 0) {\n// response = data[0];\n// message = response.message;\n// list = (response.result\n// && response.result.length\n// && response.result[0].sku_list)\n// || [];\n// }\n\n// return { success: message === \"Success\", message: message ?? \"Something went wrong.\", list };\n// } catch (e) {\n// getViewAsPerStatusCode(e);\n// return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n// }\n// };\n\nexport const createProduct = async (payload) => {\n try {\n let params = {\n category: \"add\",\n product_name: payload.product_name,\n item: payload.item,\n product_image: payload.image,\n };\n if (payload.flag === \"index\") {\n params = {\n category: \"Add\",\n index: payload.index,\n card_name: payload.card_name,\n };\n const response = await axios.get(`${API_URL}/indexcard/`, { params });\n const data = await response.data;\n const res = { result: {} };\n let message;\n\n if (data && data.length > 0) {\n const { result } = data[0];\n message = data[0].message;\n if (result && result.length > 0) {\n const outerList = result[0].index_list;\n if (outerList && outerList.length > 0) {\n const list = outerList[0].index_list;\n if (list && list.length > 0) {\n // diff with /addproduct, all cards in response, get 0\n res.result = list[0];\n }\n }\n }\n }\n\n return { success: message === \"Success\", message: message ?? \"Something went wrong.\", ...res };\n }\n const response = await axios.post(`${API_URL}/addproduct/`, params);\n const data = await response.data;\n // must be the last one, response sometimes 1 result sometimes 2\n return { success: data.message === \"Success\", ...data };\n } catch (e) {\n // console.log(\"error from createProduct\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const updateProduct = async (payload) => {\n try {\n let params = {\n category: \"edit\",\n product_name: payload.product_name,\n item: payload.item,\n product_id: payload.product_id,\n product_image: payload.product_image,\n };\n if (payload.flag === \"index\") {\n params = {\n category: \"Edit\",\n index: payload.index,\n card_name: payload.card_name,\n index_card_id: payload.index_card_id,\n card_image: payload.card_image,\n };\n\n const result = await axios.get(`${API_URL}/indexcard/`, { params });\n const data = await result.data;\n\n return { success: data[0].message === \"Success\", message: data[0].message, ...data };\n }\n const result = await axios.post(`${API_URL}/addproduct/`, params);\n const data = await result.data;\n return { success: data.message === \"Success\", ...data };\n } catch (e) {\n // console.log(\"error from updateProduct\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const deleteProduct = async (payload) => {\n try {\n let params = {\n product_id: payload.product_id,\n };\n if (payload.flag === \"index\") {\n params = {\n\n category: \"Delete\",\n index: payload.index,\n index_card_id: payload.index_card_id,\n };\n const result = await axios.get(`${API_URL}/indexcard/`, { params });\n const data = await result.data;\n return { success: data[0].message === \"Success\", message: data[0].message, ...data };\n }\n const result = await axios.get(`${API_URL}/product/`, { params });\n const data = await result.data;\n\n return { success: data[0].message === \"Success\", message: data[0].message, ...data };\n } catch (e) {\n // console.log(\"error from deleteProduct\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const searchProducts = async (payload, signal = null) => {\n try {\n let res = { productList: [], tags: {} };\n let tags = {};\n let m = 0;\n let n = 0;\n let message;\n\n if (payload.flag === \"index\") {\n const response = await axios.get(`${API_URL}/indexsearch/`, {\n params: {\n index: payload.index,\n input: payload.input,\n },\n signal,\n });\n const data = await response.data;\n\n if (data && data.length > 0) {\n message = data[0].message;\n const { result } = data[0];\n if (result && result.length > 0) {\n const list = result[0].index_list;\n\n if (list && list.length > 0) {\n for (m = 0; m < list.length; m++) {\n tags[list[m].product_id] = new Set();\n if (list[m].tags === \"\") {\n list[m].tags = [];\n } else if (list[m].tags && list[m].tags.length > 0) {\n for (n = 0; n < list[m].tags.length; n++) {\n list[m].tags[n].id = `${list[m].product_id}-${list[m].tags[n].tag}`;\n list[m].tags[n].text = list[m].tags[n].tag;\n if (list[m].tags[n].text) {\n tags[list[m].product_id].add(\n list[m].tags[n].text.toLowerCase(),\n );\n }\n }\n }\n }\n\n res = {\n productList: list,\n tags,\n };\n }\n }\n }\n } else {\n const response = await axios.get(`${API_URL}/productsearch/`, {\n params: {\n\n input: payload.input,\n },\n signal,\n });\n const data = await response.data;\n\n if (data && data.length > 0) {\n message = data[0].message;\n const { result } = data[0];\n if (result && result.length > 0) {\n const list = result[0].sku_list;\n tags = {};\n\n if (list && list.length > 0) {\n for (m = 0; m < list.length; m++) {\n tags[list[m].product_id] = new Set();\n if (list[m].tags === \"\") {\n list[m].tags = [];\n } else if (list[m].tags && list[m].tags.length > 0) {\n for (n = 0; n < list[m].tags.length; n++) {\n list[m].tags[n].id = `${list[m].product_id}-${list[m].tags[n].tag}`;\n list[m].tags[n].text = list[m].tags[n].tag;\n if (list[m].tags[n].text) {\n tags[list[m].product_id].add(\n list[m].tags[n].text.toLowerCase(),\n );\n }\n }\n }\n }\n\n res = {\n productList: list,\n tags,\n };\n }\n }\n }\n }\n\n return { success: message === \"Success\", message: message ?? \"Something went wrong.\", ...res };\n } catch (e) {\n // console.log(\"error from searchProducts\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\", cancelled: axios.isCancel(e) };\n }\n};\n\nexport const addTag = async (payload) => {\n try {\n let params = {\n category: \"Add\",\n tag: payload.tag,\n product_id: payload.product_id,\n };\n if (payload.flag === \"index\") {\n params = {\n\n category: \"Add\",\n tag: payload.tag,\n index_card_id: payload.index_card_id,\n index: payload.index,\n };\n const result = await axios.get(`${API_URL}/indexcardtag/`, { params });\n const data = result.data;\n\n return { success: data[0].message === \"Success\", message: data[0].message ?? \"Something went wrong.\", data };\n }\n const result = await axios.get(`${API_URL}/tagupdate/`, { params });\n const data = result.data;\n return { success: data[0].message === \"Success\", message: data[0].message ?? \"Something went wrong.\", data };\n } catch (e) {\n // console.log(\"error from addTag\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const deleteTag = async (payload) => {\n try {\n let params = {\n category: \"Delete\",\n tag: payload.tag,\n product_id: payload.product_id,\n };\n if (payload.flag === \"index\") {\n params = {\n category: \"Delete\",\n tag: payload.tag,\n index_card_id: payload.index_card_id,\n index: payload.index,\n };\n const result = await axios.get(`${API_URL}/indexcardtag/`, { params });\n const data = await result.data;\n\n return { success: data[0].message === \"Success\", message: data[0].message ?? \"Something went wrong.\", ...data };\n }\n const result = await axios.get(`${API_URL}/tagupdate/`, { params });\n const data = await result.data;\n\n return { success: data[0].message === \"Success\", message: data[0].message ?? \"Something went wrong.\", ...data };\n } catch (e) {\n // console.log(\"error from deleteTag\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const updateTag = async (payload) => {\n try {\n let params = {\n category: \"Edit\",\n tag: payload.tag,\n tag1: payload.tag1,\n product_id: payload.product_id,\n };\n let url = `${API_URL}/tagupdate/`;\n const active = payload.activeTab;\n\n if (active > 0) {\n url = `${API_URL}/indexcardtag/`;\n params = {\n category: \"Edit\",\n tag: payload.tag,\n tag1: payload.tag1,\n index_card_id: payload.product_id,\n index: payload.index,\n };\n }\n\n const result = await axios.get(url, { params });\n const data = await result.data;\n\n return { success: data[0].message === \"Success\", message: data[0].message ?? \"Something went wrong.\", ...data };\n } catch (e) {\n // console.log(\"error from updateTag\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const getIndex = async () => {\n try {\n const user = await getUserCredentials();\n const response = await axios.get(`${API_URL}/index/`);\n const data = await response.data;\n const res = { indices: [], company_domain: user.company_domain };\n let message;\n\n if (data && data.length > 0) {\n message = data[0].message;\n const { result } = data[0];\n if (result && result.length > 0) {\n const { indices } = result[0];\n if (indices && indices.length > 0) {\n for (let i = 0; i < indices.length; i++) {\n res.indices.push(indices[i].index);\n }\n }\n }\n }\n\n return { success: message === \"Success\", message: message ?? \"Something went wrong.\", ...res };\n } catch (e) {\n // console.log(\"error from getIndex\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const addIndex = async (payload) => {\n try {\n const params = {\n\n index: payload.index,\n category: \"Add\",\n };\n const response = await axios.get(`${API_URL}/addindex/`, { params });\n const data = await response.data;\n let result = \"\";\n\n if (data && data.length > 0) {\n result = data[0];\n }\n return { success: result.message === \"Success\", ...result };\n } catch (e) {\n // console.log(\"error from addIndex\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const editIndex = async (payload) => {\n try {\n const params = {\n\n category: \"Edit\",\n index: payload.index,\n new_index: payload.new_index,\n };\n const response = await axios.get(`${API_URL}/addindex/`, { params });\n const data = await response.data;\n let result = \"\";\n\n if (data && data.length > 0) {\n result = data[0];\n }\n return { success: result.message === \"Success\", ...result };\n } catch (e) {\n // console.log(\"error from editIndex\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const deleteIndex = async (payload) => {\n try {\n const params = {\n\n category: \"Delete\",\n index: payload.index,\n };\n await axios.get(`${API_URL}/addindex/`, { params });\n\n return { success: true };\n } catch (e) {\n // console.log(\"error from deleteIndex\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./DeleteIndexConfirmation.css\";\n\nconst DeleteIndexConfirmation = ({ onDeleteIndex, onToggleModal, indexName }) => (\n \n
    \n
    \n Delete Index "\n {indexName}\n "\n {\" \"}\n
    \n
    All the cards stored here will also be deleted
    \n
    \n \n \n
    \n
    \n \n);\n\nexport default DeleteIndexConfirmation;\n","import React, { Component } from \"react\";\nimport { Tabs, Tab } from \"react-bootstrap\";\nimport { toast } from \"react-toastify\";\nimport \"./IndexCategories.css\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport closeIcon from \"../../../assets/images/index/closeDarkblue.png\";\nimport closeIconHighlighed from \"../../../assets/images/index/crossSquareHighlight.png\";\nimport dotsIcon from \"../../../assets/images/index/threeDotsIconLightBlue.png\";\nimport editIcon from \"../../../assets/images/index/editPencilMidnight.png\";\nimport deleteIcon from \"../../../assets/images/index/deleteIconMidnight.png\";\nimport checkIcon from \"../../../assets/images/index/checkIconLightBlue.png\";\nimport checkHightlightIcon from \"../../../assets/images/index/checkIconMidnight.png\";\nimport ProdAddNewCategoryIcon from \"../../../assets/images/index/plusIconBlue.png\";\nimport exclamationIcon from \"../../../assets/images/index/exclamation.png\";\n// import deleteIconWhite from \"../../../assets/images/index/deleteIconWhite.png\";\n\nimport {\n getIndex,\n addIndex,\n editIndex,\n deleteIndex,\n} from \"../../../actions/index\";\n\nimport StyledTooltip from \"../../Common/UIComponents/StyledTooltip\";\nimport DeleteIndexConfirmation from \"../../Modals/DeleteIndexConfirmation\";\n\nclass IndexCategories extends Component {\n state = {\n activeTab: \"0\",\n indices: [],\n newIndex: false,\n newIndexName: \"\",\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n dltIndex: null,\n isDeleteIndexModalVisible: false,\n showOptions: false,\n showEditIcon: false,\n closeEditTagIcon: closeIcon,\n }\n\n componentDidMount() {\n this.initComponent();\n }\n\n initComponent = async () => {\n const response = await getIndex();\n if (response && response.success) {\n const { indices } = response;\n let activeTabName = window.location.hash.replace(\"#\", \"\");\n activeTabName = activeTabName.replace(/%20/g, \" \");\n let activeTab = activeTabName ? indices.indexOf(activeTabName) : -1;\n if (activeTab === -1) {\n window.location.hash = \"#Product\";\n }\n activeTab = (activeTab + 1).toString();\n this.setState({ indices, activeTab });\n const { initComponent } = this.props;\n initComponent(activeTab, activeTabName, indices);\n } else {\n toast.error(response.message);\n }\n }\n\n handleTabSelect = (selectedTab) => {\n const { readOnly } = this.props;\n if (readOnly) {\n return;\n }\n const {\n indices, newIndex, editIndexId, prevEditIndexName, activeTab,\n } = this.state;\n if (selectedTab <= indices.length) {\n if (selectedTab === activeTab) {\n return;\n }\n this.changewindowHash(selectedTab, indices);\n this.setState({ showOptions: false, showEditIcon: false });\n }\n\n // \"edit index name\" clicked\n if (editIndexId && prevEditIndexName === indices[selectedTab - 1]) {\n return;\n }\n\n // tab: create new category\n if (selectedTab === String(indices.length + 1)) {\n // click the tab to start to add new category\n if (!newIndex) {\n if (indices.length < 9) {\n this.setState({\n newIndex: true,\n // activeTab: selectedTab,\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n });\n } else {\n toast.error(\"You can add maximum 10 Indices.\");\n }\n }\n } else {\n const { updateProductList } = this.props;\n this.setState({ activeTab: selectedTab });\n this.resetIndexRelatedState();\n updateProductList(selectedTab, indices);\n }\n }\n\n resetIndexRelatedState = () => {\n this.setState({\n dltIndex: null,\n newIndex: false,\n newIndexName: \"\",\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n isDeleteIndexModalVisible: false,\n });\n }\n\n changewindowHash = (selectedTab, indices) => {\n const { onChangeTab } = this.props;\n if (selectedTab === \"0\") {\n window.location.hash = \"#Product\";\n onChangeTab(\"Product\");\n } else {\n window.location.hash = `#${indices[selectedTab - 1]}`;\n onChangeTab(indices[selectedTab - 1]);\n }\n }\n\n onMenuIconClick = () => {\n const { readOnly } = this.props;\n const { showOptions } = this.state;\n if (readOnly) {\n return;\n }\n this.setState({ showOptions: !showOptions });\n }\n\n onAddIndexInputChange = (e) => {\n this.setState({ newIndexName: e.target.value });\n }\n\n getPrevTabAfterDelete = (selectedTab) => {\n const { indices } = this.state;\n const { updateProductList } = this.props;\n const search = document.getElementsByName(\"searchProductText\")[0];\n if (search) {\n search.value = \"\";\n }\n this.resetIndexRelatedState();\n updateProductList(selectedTab, indices);\n }\n\n handleIndexEditClick = (e, activeTab) => {\n const { indices } = this.state;\n this.setState({\n editIndexId: activeTab,\n prevEditIndexName: indices[activeTab - 1],\n newEditIndexName: indices[activeTab - 1],\n showEditIcon: false,\n showOptions: false,\n });\n }\n\n handleIndexEditSubmit = (newIndexName) => {\n if (newIndexName && newIndexName.trim().length > 0 && newIndexName.trim().length <= 20) {\n const newIndexNameFormatted = newIndexName.trim();\n this.apiEditIndex(newIndexNameFormatted);\n this.setState({ showEditIcon: false, showOptions: false });\n } else {\n toast.error(\"title cannot be empty or more than 20 characters\");\n }\n }\n\n handleIndexEditExitSubmit = () => {\n this.setState({\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n showEditIcon: false,\n showOptions: false,\n closeEditTagIcon: closeIcon,\n });\n }\n\n handleEnterIndexName = (e, newIndexName, flag) => {\n if (e.charCode === 13) {\n if (newIndexName && newIndexName.trim().length > 0) {\n const newIndexNameFormatted = newIndexName.trim();\n if (flag === \"editIndex\") {\n this.apiEditIndex(newIndexNameFormatted);\n } else {\n this.apiAddIndex(newIndexNameFormatted);\n }\n this.setState({ showEditIcon: false, showOptions: false });\n } else {\n toast.error(\"title cannot be empty\");\n }\n }\n };\n\n handleAddNewIndex = (newIndexName) => {\n const { newIndex } = this.state;\n if (newIndex) {\n if (newIndexName && newIndexName.trim().length > 0 && newIndexName.trim().length <= 20) {\n const newIndexNameFormatted = newIndexName.trim();\n this.apiAddIndex(newIndexNameFormatted);\n }\n }\n }\n\n handleAddNewIndexExit = (e) => {\n e.preventDefault();\n e.stopPropagation();\n this.setState({ closeEditTagIcon: closeIcon });\n this.apiGetIndex(\"newIndexOutside\");\n }\n\n onToggleDeleteIndexModal = (e, dltIndex) => {\n if (e) {\n e.stopPropagation();\n e.preventDefault();\n }\n\n const { isDeleteIndexModalVisible } = this.state;\n this.setState({\n dltIndex: dltIndex || dltIndex === 0 ? dltIndex : null,\n isDeleteIndexModalVisible: !isDeleteIndexModalVisible,\n showEditIcon: false,\n showOptions: false,\n });\n };\n\n // api call to edit index\n apiEditIndex = async (newIndexName) => {\n const { prevEditIndexName } = this.state;\n if (prevEditIndexName.toLowerCase() === newIndexName.toLowerCase()) {\n this.setState({\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n });\n return;\n }\n const params = {\n index: prevEditIndexName,\n new_index: newIndexName,\n };\n const response = await editIndex(params);\n\n if (response && response.message === \"Index name exists\") {\n toast.error(\"Index name exists\");\n return;\n }\n\n if (response && response.success) {\n this.apiGetIndex(\"editIndex\");\n } else {\n toast.error(response.message);\n }\n }\n\n // api call to add new index\n apiAddIndex = async (newIndexName) => {\n const response = await addIndex({ index: newIndexName });\n\n if (response && response.message === \"Index name exists\") {\n toast.error(\"Index name exists\");\n return;\n }\n\n if (response && response.success) {\n toast.success(\"Index has been successfully created!\");\n this.apiGetIndex(\"newIndex\");\n } else {\n toast.error(response.message);\n }\n }\n\n handleIndexTitleOutsideClick = () => {\n this.apiGetIndex(\"newIndexOutside\");\n }\n\n // api call to get all index\n apiGetIndex = async (flag) => {\n // click outside without input text\n if (flag === \"newIndexOutside\") {\n this.setState({\n // activeTab: activeTabName.toString(),\n newIndexName: \"\",\n newIndex: false,\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n });\n } else {\n const response = await getIndex();\n if (response && response.success) {\n const { updateProductList, updateIndices, getAllProducts } = this.props;\n const { activeTab } = this.state;\n // when input box shows\n if (flag === \"newIndex\") {\n this.setState({\n indices: response.indices,\n activeTab: String(response.indices.length),\n newIndexName: \"\",\n newIndex: false,\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n });\n updateProductList(String(response.indices.length), response.indices);\n this.changewindowHash(response.indices.length, response.indices);\n } else if (flag === \"editIndex\") {\n this.setState({\n indices: response.indices,\n editIndexId: \"\",\n prevEditIndexName: \"\",\n newEditIndexName: \"\",\n });\n updateIndices(response.indices);\n this.changewindowHash(activeTab, response.indices);\n } else if (flag === \"deleteIndex\") {\n this.changewindowHash(\"0\", response.indices);\n this.setState({\n activeTab: \"0\",\n indices: response.indices,\n isDeleteIndexModalVisible: false,\n dltIndex: null,\n }, () => {\n this.getPrevTabAfterDelete(\"0\");\n });\n } else {\n this.setState({\n indices: response.indices,\n }, () => {\n this.resetIndexRelatedState();\n getAllProducts(activeTab, true, true);\n });\n }\n } else {\n toast.error(response.message);\n }\n }\n }\n\n onDeleteIndex = () => {\n const { dltIndex } = this.state;\n if (dltIndex || dltIndex === 0) {\n this.apiDeleteIndex(dltIndex);\n this.setState({ showEditIcon: false, showOptions: false });\n }\n }\n\n apiDeleteIndex = async (dltIndex) => {\n const { indices } = this.state;\n const index = indices[dltIndex];\n const params = { index };\n const response = await deleteIndex(params);\n if (response && response.success) {\n this.apiGetIndex(\"deleteIndex\", String(dltIndex));\n toast.success(`Index \"${index}\" deleted`);\n } else {\n toast.error(response.message);\n }\n }\n\n render() {\n const {\n activeTab,\n indices,\n newIndex,\n newIndexName,\n editIndexId,\n newEditIndexName,\n dltIndex,\n isDeleteIndexModalVisible,\n showOptions,\n showEditIcon,\n closeEditTagIcon,\n } = this.state;\n\n const indexNameTooLong = newIndexName.length > 20 || newEditIndexName.length > 20;\n let indicesEle = null;\n const indexTabPaddingLeft = \"0px\";\n const indexTabPaddingRight = \"30px\";\n\n if (indices && indices.length > 0) {\n indicesEle = indices.map((item, i) => {\n if (String(i + 1) === editIndexId) {\n return (\n \n e.stopPropagation()}\n onChange={(e) => e.stopPropagation()}\n >\n 20 ? \"editInput exceedCharsLimit\" : \"editInput\"}\n name=\"newIndexName\"\n placeholder=\"Index Name\"\n value={newEditIndexName}\n onKeyPress={(e) => this.handleEnterIndexName(e, newEditIndexName, \"editIndex\")}\n onChange={(e) => this.setState({ newEditIndexName: e.target.value })}\n />\n this.setState({ closeEditTagIcon: closeIconHighlighed })}\n onFocus={() => this.setState({ closeEditTagIcon: closeIconHighlighed })}\n onMouseOut={() => this.setState({ closeEditTagIcon: closeIcon })}\n onBlur={() => this.setState({ closeEditTagIcon: closeIcon })}\n />\n this.handleIndexEditSubmit(newEditIndexName)}\n />\n {indexNameTooLong && (\n \n \n {\" \"}\n You have reached your maximum limit of 20 characters allowed\n
    \n )}\n \n \n )}\n />\n );\n }\n return (\n this.setState({ showEditIcon: true }) : null}\n onMouseLeave={!showOptions ? () => this.setState({ showEditIcon: false }) : null}\n >\n {showEditIcon && activeTab === String(i + 1)\n ? (\n
    \n {item}\n \n {showOptions\n ? (\n this.setState({ showOptions: false, showEditIcon: false }) : null}>\n \n
    \n this.handleIndexEditClick(e, activeTab)}\n >\n \n Edit\n
    \n this.onToggleDeleteIndexModal(e, i)}\n >\n \n Delete\n
    \n \n \n \n )\n : null}\n \n )\n : (\n \n {item}\n \n )}\n \n )}\n />\n );\n });\n }\n\n return (\n
    \n {isDeleteIndexModalVisible && (!!dltIndex || dltIndex === 0) && (\n \n )}\n \n Index categories\n
    \n \n {!newIndex\n ? (\n \n \n
    \n Create new category\n \n
    \n \n \n )}\n />\n )\n : (\n this.handleIndexTitleOutsideClick()}>\n e.stopPropagation()}\n onChange={(e) => e.stopPropagation()}\n >\n this.handleEnterIndexName(e, newIndexName)}\n autoFocus\n />\n this.setState({ closeEditTagIcon: closeIconHighlighed })}\n onMouseOut={() => this.setState({ closeEditTagIcon: closeIcon })}\n onBlur={() => this.setState({ closeEditTagIcon: closeIcon })}\n />\n this.handleAddNewIndex(newIndexName)}\n />\n {indexNameTooLong && (\n \n \n {\" \"}\n You have reached your maximum limit of 20 characters allowed\n \n )}\n \n \n )}\n />\n )}\n\n \n Product\n \n )}\n />\n\n {indicesEle}\n\n \n \n );\n }\n}\n\nexport default IndexCategories;\n","import React, { Component } from \"react\";\nimport searchIcon from \"../../../assets/images/index/searchIcon.png\";\nimport crossIconInput from \"../../../assets/images/crossButton2x.png\";\nimport \"./Search.css\";\n\nclass Search extends Component {\n state = {\n searchValue: \"\",\n }\n\n handleSearchChange = (e) => {\n const { updateStateForShowingClearButton, showClearSearch } = this.props;\n if (!showClearSearch) {\n updateStateForShowingClearButton();\n }\n const value = e.target.value;\n // console.log(value)\n if (value.trim() === \"\") {\n this.handleSearch(value);\n }\n this.setState({\n searchValue: value,\n });\n };\n\n handleSearch = (value) => {\n const { handleSearchSubmit } = this.props;\n handleSearchSubmit(value);\n };\n\n render() {\n const {\n readOnly,\n showClearSearch,\n handleClearSearch,\n activeTab,\n } = this.props;\n\n const { searchValue } = this.state;\n\n const placeholder = activeTab !== \"0\" ? \"Search by Name or Tag\" : \"Search by Name, Tag, or Product\";\n\n return (\n
    \n \n {\n if (event.key === \"Enter\") {\n event.preventDefault();\n this.handleSearch(searchValue);\n }\n }}\n />\n {showClearSearch && (\n {} : handleClearSearch}\n />\n )}\n
    \n );\n }\n}\n\nexport default Search;\n","/* eslint-disable jsx-a11y/no-autofocus */\nimport React, { Component } from \"react\";\n\nexport default class TagInput extends Component {\n inputRef = React.createRef();\n\n componentDidMount() {\n this.inputRef.current.select();\n }\n\n handleInputChange = (e) => {\n const { setTagInput, enableOutsideClick } = this.props;\n setTagInput(e.target.value);\n enableOutsideClick();\n }\n\n render() {\n const {\n tagInput,\n handleKeyPressAddTag,\n } = this.props;\n\n return (\n
    \n {tagInput || \" \"}\n \n
    \n\n );\n }\n}\n","/* eslint-disable react/state-in-constructor */\nimport React, { Component } from \"react\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\n\nimport TagInput from \"./TagInput\";\nimport \"./Tags.css\";\n\nexport default class Tag extends Component {\n constructor(props) {\n super(props);\n const { isNotAsync } = this.props;\n this.state = {\n isProcessingDelete: false,\n outsideClickable: true,\n isNotAsync: isNotAsync || false,\n };\n }\n\n handleDoubleClick = (e) => {\n const { handleDoubleClickTag } = this.props;\n e.preventDefault();\n handleDoubleClickTag();\n this.enableOutsideClick();\n }\n\n handleTagInputOutsideClick = (e) => {\n e.preventDefault();\n e.stopPropagation();\n const { handleTagInputOutsideClick, isNotAsync } = this.props;\n const { outsideClickable } = this.state;\n if (!outsideClickable) {\n return;\n }\n if (isNotAsync) {\n handleTagInputOutsideClick();\n this.setState({ outsideClickable: false });\n } else {\n this.setState({ outsideClickable: false }, () => handleTagInputOutsideClick().then(() => this.setState({ outsideClickable: true })));\n }\n }\n\n handleDeleteTag = (e) => {\n e.preventDefault();\n e.stopPropagation();\n const { isProcessingDelete, isNotAsync } = this.state;\n const { handleDeleteTag } = this.props;\n if (isProcessingDelete) {\n return;\n }\n if (isNotAsync) {\n handleDeleteTag(e);\n this.setState({ isProcessingDelete: false });\n } else {\n this.setState({ isProcessingDelete: true }, () => handleDeleteTag(e).then(() => this.setState({ isProcessingDelete: false })));\n }\n }\n\n enableOutsideClick = () => {\n this.setState({ outsideClickable: true });\n }\n\n render() {\n const {\n icon,\n label,\n isEditing,\n tagInput,\n setTagInput,\n handleKeyPressAddTag,\n } = this.props;\n\n return (\n
    \n
    \n {icon}\n {isEditing\n ? (\n \n \n \n )\n : {label}}\n \n
    \n
    \n );\n }\n}\n","/* eslint-disable react/state-in-constructor */\nimport React, { Component } from \"react\";\nimport moment from \"moment\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport { toast } from \"react-toastify\";\nimport Tag from \"./Tag\";\nimport \"./ProductCard.css\";\nimport editPencilLight from \"../../../assets/images/index/editPencilBlue.png\";\nimport editPencilDark from \"../../../assets/images/index/editPencilMidnight.png\";\nimport deleteIcon from \"../../../assets/images/index/deleteIconMidnight.png\";\nimport dotsOptionIconDark from \"../../../assets/images/index/threeDotsIconMidnight.png\";\nimport dotsOptionIcon from \"../../../assets/images/index/threeDotsIconWhite.png\";\nimport lightBlueAddIcon from \"../../../assets/images/index/addCircleIconBlue.png\";\nimport darkBlueAddIcon from \"../../../assets/images/index/addCircleIconMidnight.png\";\nimport checkIconWhite from \"../../../assets/images/index/checkIconWhite.png\";\nimport checkIconMidnight from \"../../../assets/images/index/checkIconMidnight.png\";\n\nclass ProductCard extends Component {\n state = {\n showOptions: false,\n tagInput: \"\",\n editTag: \"\",\n editTagIndex: -1,\n tagsSet: null,\n addTagIcon: lightBlueAddIcon,\n menuIcon: dotsOptionIcon,\n editPencilIcon: editPencilLight,\n saveIcon: checkIconWhite,\n saveReminder: false,\n scrollBarHeight: \"150px\",\n }\n\n addTagInputRef = React.createRef();\n\n isEditingTags = () => {\n const { item, activeTab, editingTagsProductId } = this.props;\n const productId = activeTab === \"0\" ? item.product_id : item.index_card_id;\n return editingTagsProductId === productId;\n }\n\n handleProductNameClick = (e) => {\n e.stopPropagation();\n const editingTags = this.isEditingTags();\n const {\n readOnly, editingTagsProductId, item, handleProductNameClick,\n } = this.props;\n if (editingTags) {\n this.setState({ saveReminder: true });\n } else if (!readOnly && !editingTagsProductId) {\n handleProductNameClick(e, item);\n }\n }\n\n onEditTagsButtonClick = (e) => {\n e.stopPropagation();\n const {\n readOnly, editingTagsProductId, item, itemIndex, onEditTagsClick,\n } = this.props;\n if (!readOnly && !editingTagsProductId) {\n const productId = item.product_id || item.index_card_id;\n const tagsSet = new Set(item.tags.map((tag) => tag.tag.toLowerCase()));\n this.setState({ tagsSet, editPencilIcon: editPencilLight });\n onEditTagsClick(itemIndex, productId);\n }\n }\n\n onAddIconClick = () => {\n const { editTagIndex } = this.props;\n if (this.addTagInputRef.current.value.trim()) {\n this.handleAddTag();\n } else if (editTagIndex === -1) {\n toast.error(\"Tag cannot be empty\");\n }\n }\n\n handleDeleteTag = async (tag) => {\n const { item, handleDeleteTag } = this.props;\n const productId = item.product_id || item.index_card_id;\n const success = await handleDeleteTag(tag, productId);\n if (success) {\n const { tagsSet } = this.state;\n tagsSet.delete(tag.toLowerCase());\n this.setState(tagsSet);\n this.handleCancelEditTag();\n return true;\n }\n return false;\n }\n\n handleCancelEditTag = () => {\n this.setState({ tagInput: \"\", editTagIndex: -1, editTag: \"\" });\n }\n\n handleOptionsMenu = (e) => {\n e.stopPropagation();\n const { showOptions } = this.state;\n const {\n readOnly, editingTagsProductId,\n } = this.props;\n if (!readOnly && !editingTagsProductId) {\n this.setState({ showOptions: !showOptions, menuIcon: dotsOptionIcon });\n }\n }\n\n handleKeyPressAddTag = (e) => {\n if (e.charCode === 13) {\n this.handleAddTag();\n }\n }\n\n handleAddTag = async () => {\n const {\n tagsSet, editTag, editTagIndex, tagInput,\n } = this.state;\n const { item, handleAddTag } = this.props;\n const productId = item.product_id || item.index_card_id;\n let newTag = tagInput.trim().toLowerCase();\n if (!newTag) {\n toast.error(\"Tag cannot be empty\");\n return false;\n }\n if (tagsSet.has(newTag) && editTagIndex === -1) {\n toast.error(\"Please add a unique tag.\");\n return false;\n }\n if (editTag && editTag.toLowerCase() === newTag) {\n this.handleCancelEditTag();\n return true;\n }\n newTag = newTag[0].toUpperCase() + newTag.substr(1);\n // update tag in DOM and backend\n const success = await handleAddTag(newTag, productId, editTag);\n if (success) {\n if (editTag) {\n tagsSet.delete(editTag.toLowerCase());\n }\n tagsSet.add(newTag.toLowerCase());\n this.setState({ tagsSet });\n // this function is not triggered by doubleclick on another tag\n const { editTagIndex: currentEditTagIndex } = this.state;\n if (editTagIndex === currentEditTagIndex) {\n // resetting the values\n this.addTagInputRef.current.value = \"\";\n this.handleCancelEditTag();\n }\n return true;\n }\n toast.error(\"Fail to add or update the tag.\");\n return false;\n }\n\n handleEditTag = (editTagIndex, editTag) => {\n this.setState({ editTag, editTagIndex, tagInput: editTag });\n this.addTagInputRef.current.value = \"\";\n }\n\n handleTextTagChange = (tagInput) => {\n this.setState({ tagInput });\n }\n\n onSaveClick = async () => {\n const { tagInput } = this.state;\n const { onCancelEditTagsClick } = this.props;\n this.setState({ saveReminder: false });\n\n if (tagInput.trim()) {\n const success = await this.handleAddTag();\n if (!success) {\n return;\n }\n }\n this.addTagInputRef.current.value = \"\";\n this.handleCancelEditTag();\n this.setState({ tagsSet: null, saveIcon: checkIconWhite });\n onCancelEditTagsClick();\n }\n\n render() {\n const {\n editPencilIcon,\n addTagIcon,\n saveIcon,\n tagInput,\n editTag,\n editTagIndex,\n menuIcon,\n showOptions,\n saveReminder,\n scrollBarHeight,\n } = this.state;\n\n const {\n activeTab,\n item,\n itemIndex,\n isMostRight,\n onEdit,\n editingTagsProductId,\n tagsEditing,\n onToggleModal,\n linkReportFields,\n } = this.props;\n\n const isProduct = activeTab === \"0\";\n const productId = item.product_id || item.index_card_id;\n const productName = item.product_name || item.card_name;\n const editingTags = editingTagsProductId === productId;\n const keys = isProduct ? linkReportFields : [{ json_field: \"created_by\", title_field: \"Created by\" }];\n\n const handleClickAway = () => {\n this.setState({ saveReminder: true });\n };\n\n return (\n {}}>\n
    this.setState({ saveReminder: false }) : () => {}}>\n
    \n
    \n
    \n \n {productName}\n
    \n
    \n {editingTags\n ? (\n
    \n {\n if (editTag === \"\") {\n this.onSaveClick();\n }\n }}\n onMouseEnter={() => this.setState({ saveIcon: checkIconMidnight })}\n onFocus={() => this.setState({ saveIcon: checkIconMidnight })}\n onMouseOut={() => this.setState({ saveIcon: checkIconWhite })}\n onBlur={() => this.setState({ saveIcon: checkIconWhite })}\n />\n {saveReminder\n && (\n
    \n
    \n
    You have unsaved changes, please save the card before proceeding
    \n
    \n )}\n
    \n )\n : (\n
    \n {showOptions\n ? (\n this.setState({ showOptions: false, menuIcon: dotsOptionIcon })}>\n
    \n {\n this.setState({ showOptions: false, menuIcon: dotsOptionIcon });\n onEdit(itemIndex, productId);\n }}\n >\n \n \n
    \n {\n this.setState({ showOptions: false });\n onToggleModal(itemIndex);\n }}\n >\n \n \n
    \n
    \n \n )\n : (\n this.setState({ menuIcon: dotsOptionIconDark })}\n onFocus={() => this.setState({ menuIcon: dotsOptionIconDark })}\n onMouseOut={() => this.setState({ menuIcon: dotsOptionIcon })}\n onBlur={() => this.setState({ menuIcon: dotsOptionIcon })}\n />\n )}\n
    \n )}\n
    \n \n
    \n \n
    \n {keys.map(({ json_field, title_field }, idx) => (\n
    \n

    \n {`${title_field}: `}\n {isProduct ? item.item[json_field] : item[json_field]}\n

    \n {idx === 0 &&

    {moment(new Date(item.created_on)).format(\"MMM DD, YYYY\")}

    }\n
    \n ))}\n
    \n
    \n
    \n
    \n

    \n Tags\n

    \n {!editingTags\n ? (\n this.setState({ editPencilIcon: editPencilDark })}\n onFocus={() => this.setState({ editPencilIcon: editPencilDark })}\n onMouseOut={() => this.setState({ editPencilIcon: editPencilLight })}\n onBlur={() => this.setState({ editPencilIcon: editPencilLight })}\n />\n )\n : (\n <>\n this.handleTextTagChange(e.target.value)}\n onKeyPress={this.handleKeyPressAddTag}\n ref={this.addTagInputRef}\n />\n this.setState({ addTagIcon: darkBlueAddIcon })}\n onMouseLeave={() => this.setState({ addTagIcon: lightBlueAddIcon })}\n />\n \n )}\n
    \n
    \n \n {(editingTags && tagsEditing[productId])\n ? tagsEditing[productId].map((itemTag, tagIndex) => (\n this.handleEditTag(tagIndex, itemTag)}\n handleKeyPressAddTag={this.handleKeyPressAddTag}\n handleDeleteTag={() => this.handleDeleteTag(itemTag)}\n handleTagInputOutsideClick={this.handleAddTag}\n />\n ))\n : item.tags.map((itemTag, tagIndex) => (\n {}}\n handleDoubleClickTag={editingTags ? () => this.handleEditTag(tagIndex, itemTag.tag) : () => {}}\n handleKeyPressAddTag={editingTags ? this.handleKeyPressAddTag : () => {}}\n handleDeleteTag={editingTags ? (e) => this.handleDeleteTag(itemTag.tag, e) : () => {}}\n handleTagInputOutsideClick={this.handleAddTag}\n />\n ))}\n \n
    \n
    \n
    \n \n
    \n );\n }\n}\n\nexport default ProductCard;\n","import React, { useState, useRef } from \"react\";\nimport { toast } from \"react-toastify\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport { isEqual, mapValues } from \"lodash\";\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport Tag from \"./Tag\";\nimport lightBlueAddIcon from \"../../../assets/images/index/addCircleIconBlue.png\";\nimport darkBlueAddIcon from \"../../../assets/images/index/addCircleIconMidnight.png\";\nimport \"./productEditCard.css\";\n\nfunction ProductEditCard(props) {\n const {\n activeTab, item, tagsEditing,\n linkReportFields,\n } = props;\n const productId = activeTab === \"0\" ? item.product_id : item.index_card_id;\n const productName = activeTab === \"0\" ? item.product_name : item.card_name;\n const itemOrCreateByVal = activeTab === \"0\" ? item.item : item.created_by;\n // const {editProductId} = props;\n\n const [saveReminderDisplay, setSaveReminderDisplay] = useState(false);\n const [inputItemName, setInputItemName] = useState(productName);\n const [addTagIcon, setAddTagIcon] = useState(lightBlueAddIcon);\n const [tagInput, setTagInput] = useState(\"\");\n const [editTag, setEditTag] = useState(\"\");\n const [editTagIndex, setEditTagIndex] = useState(-1);\n const [tagsSet, setTagsSet] = useState(new Set(tagsEditing[productId].map((tag) => tag.toLowerCase())));\n const itemNameRef = useRef(null);\n const fieldInputsRef = useRef(Array(linkReportFields.length));\n const itemTagRef = useRef(null);\n const scrollbarHeight = \"95px\";\n\n const setFieldInputsRef = (elem, idx) => {\n fieldInputsRef.current[idx] = elem;\n };\n\n const handleKeyPressInputProductNameChange = (e) => {\n if (e.charCode === 13) {\n if (activeTab === \"0\") {\n fieldInputsRef.current[0].focus();\n } else {\n itemTagRef.current.focus();\n }\n }\n };\n\n const handleKeyPressInputItemNumberChange = (e, idx) => {\n if (e.charCode === 13) {\n if (idx === linkReportFields.length - 1) {\n itemTagRef.current.focus();\n } else {\n fieldInputsRef.current[idx + 1].focus();\n }\n }\n };\n\n const handleTagInputChange = (e) => {\n setTagInput(e.target.value);\n };\n\n const handleDeleteTag = async (tag, e) => {\n const { handleDeleteTagParent } = props;\n const tags = tagsSet;\n tags.delete(tag.toLowerCase());\n setTagsSet(tags);\n // delete tag in backend and DOM\n await handleDeleteTagParent(tag, productId, e);\n return true;\n };\n\n const handleCancelEditTag = () => {\n setTagInput(\"\");\n setEditTagIndex(-1);\n setEditTag(\"\");\n };\n\n const handleAddTag = async () => {\n const tags = tagsSet;\n const curEditTagIndex = editTagIndex;\n let newTag = tagInput.trim().toLowerCase();\n if (!newTag) {\n toast.error(\"Please type in the tag name before add.\");\n return false;\n }\n if (tags.has(newTag) && curEditTagIndex === -1) {\n toast.error(\"Please add a unique tag.\");\n return false;\n }\n if (editTag && editTag.toLowerCase() === newTag) {\n handleCancelEditTag();\n return true;\n }\n newTag = newTag[0].toUpperCase() + newTag.substr(1);\n // update tag in DOM and backend\n const { handleAddTagParent } = props;\n const success = await handleAddTagParent(newTag, productId, editTag);\n if (success) {\n if (editTag) {\n tags.delete(editTag.toLowerCase());\n }\n tags.add(newTag.toLowerCase());\n setTagsSet(tags);\n // resetting the values\n if (curEditTagIndex === editTagIndex) {\n itemTagRef.current.value = \"\";\n handleCancelEditTag();\n }\n return true;\n }\n toast.error(\"Fail to add or update the tag.\");\n return false;\n };\n\n const handleKeyPressAddTag = (e) => {\n if (e.charCode === 13) {\n handleAddTag();\n }\n };\n\n const handleEditTag = (tagIndx, itemTag) => {\n setEditTag(itemTag);\n setEditTagIndex(tagIndx);\n setTagInput(itemTag);\n itemTagRef.current.value = \"\";\n };\n\n const handleSaveButtonClick = async () => {\n setSaveReminderDisplay(false);\n const linkReportFieldsObj = {};\n if (activeTab === \"0\") {\n if (!inputItemName.trim()) {\n toast.error(\"Please add Item name\");\n return;\n }\n for (let i = 0; i < fieldInputsRef.current.length; i++) {\n const fieldInput = fieldInputsRef.current[i];\n const value = fieldInput.value.trim();\n const { json_field, title_field } = linkReportFields[i];\n if (!value) {\n toast.error(`Please add ${title_field}`);\n return;\n }\n linkReportFieldsObj[json_field] = value;\n }\n } else if (!inputItemName.trim()) {\n toast.error(\"Please add Item name\");\n return;\n }\n if (tagInput.trim()) {\n const success = await handleAddTag();\n if (!success) {\n return;\n }\n }\n const { onCancelEdit, onSaveEdit } = props;\n if (((activeTab === \"0\" && isEqual(mapValues(linkReportFieldsObj, (val) => val.trim().toLowerCase()), mapValues(itemOrCreateByVal, (val) => val.trim().toLowerCase()))) // check if all fields equal (case insensitive), if yes cancel edit\n || activeTab !== \"0\") && inputItemName.trim().toLowerCase() === productName.toLowerCase()) {\n onCancelEdit();\n } else {\n onSaveEdit(item, inputItemName.trim(), linkReportFieldsObj);\n }\n };\n\n const { onCancelEdit, isMostRight } = props;\n\n return (\n { setSaveReminderDisplay(true); }}>\n
    { setSaveReminderDisplay(false); }}>\n
    \n
    \n \n Edit Item Card\n
    \n
    \n
    \n \n
    \n \n setInputItemName(e.target.value)}\n />\n
    \n {inputItemName.length}\n /250\n
    \n
    \n\n {activeTab === \"0\"\n ? (\n
    \n {linkReportFields.map((link_item, link_idx) => (\n
    \n \n handleKeyPressInputItemNumberChange(e, link_idx)}\n ref={(input) => setFieldInputsRef(input, link_idx)}\n />\n
    \n ))}\n
    \n )\n : null}\n
    \n\n
    \n \n
    \n \n setAddTagIcon(darkBlueAddIcon)}\n onMouseLeave={() => setAddTagIcon(lightBlueAddIcon)}\n onClick={() => {\n if (editTag === \"\") {\n handleAddTag();\n }\n }}\n />\n
    \n
    \n \n {tagsEditing[productId] && tagsEditing[productId].map((itemTag, tagIndex) => (\n handleEditTag(tagIndex, itemTag)}\n handleKeyPressAddTag={handleKeyPressAddTag}\n handleDeleteTag={(e) => handleDeleteTag(itemTag, e)}\n handleTagInputOutsideClick={handleAddTag}\n />\n ))}\n \n \n \n Cancel\n \n \n Save\n \n {saveReminderDisplay\n && (\n
    \n
    \n
    You have unsaved changes, please save the card before proceeding
    \n
    \n )}\n
    \n
    \n
    \n \n
    \n );\n}\n\nexport default ProductEditCard;\n","import React, { useState, useRef } from \"react\";\nimport { toast } from \"react-toastify\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport Tag from \"./Tag\";\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport \"./productNewCard.css\";\nimport lightBlueAddIcon from \"../../../assets/images/index/addCircleIconBlue.png\";\nimport darkBlueAddIcon from \"../../../assets/images/index/addCircleIconMidnight.png\";\n\nfunction ProductNewCard(props) {\n const {\n activeTab, tagsEditing,\n linkReportFields,\n } = props;\n const [saveReminderDisplay, setSaveReminderDisplay] = useState(false);\n const [inputItemName, setInputItemName] = useState(\"\");\n const [addTagIcon, setAddTagIcon] = useState(lightBlueAddIcon);\n const [tagInput, setTagInput] = useState(\"\");\n const [editTagIndex, setEditTagIndex] = useState(-1);\n const [editTag, setEditTag] = useState(\"\");\n const [tagsSet, setTagsSet] = useState(new Set());\n const itemNameRef = useRef(null);\n const fieldInputsRef = useRef(Array(linkReportFields.length));\n const itemTagRef = useRef(null);\n const scrollbarHeight = \"81px\";\n\n const setFieldInputsRef = (elem, idx) => {\n fieldInputsRef.current[idx] = elem;\n };\n\n const handleKeyPressInputItemNameChange = (e) => {\n if (e.charCode === 13) {\n if (activeTab === \"0\") {\n fieldInputsRef.current[0].focus();\n } else {\n itemTagRef.current.focus();\n }\n }\n };\n\n const handleKeyPressInputItemNumberChange = (e, idx) => {\n if (e.charCode === 13) {\n if (idx === linkReportFields.length - 1) {\n itemTagRef.current.focus();\n } else {\n fieldInputsRef.current[idx + 1].focus();\n }\n }\n };\n\n const handleEditTag = (tagIndex, itemTag) => {\n setEditTag(itemTag);\n setEditTagIndex(tagIndex);\n setTagInput(itemTag);\n itemTagRef.current.value = \"\";\n };\n\n const handleCancelEditTag = () => {\n setTagInput(\"\");\n setEditTagIndex(-1);\n setEditTag(\"\");\n };\n\n const handleTagInputChange = (e) => {\n setTagInput(e.target.value);\n };\n\n const handleAddTag = async () => {\n const tags = tagsSet;\n const curEditTagIndex = editTagIndex;\n let newTag = tagInput.trim().toLowerCase();\n if (!newTag) {\n toast.error(\"Tag cannot be empty.\");\n return false;\n }\n if (tags.has(newTag) && curEditTagIndex === -1) {\n toast.error(\"Please add a unique tag.\");\n return false;\n }\n if (editTag && editTag.toLowerCase() === newTag) {\n handleCancelEditTag();\n return true;\n }\n newTag = newTag[0].toUpperCase() + newTag.substr(1);\n // update tag in DOM and backend\n const { handleAddTag: handleAdd } = props;\n const success = await handleAdd(newTag, \"new0\", editTag);\n if (success) {\n if (editTag) {\n tags.delete(editTag.toLowerCase());\n }\n tags.add(newTag.toLowerCase());\n setTagsSet(tags);\n // resetting the values\n if (editTagIndex === curEditTagIndex) {\n itemTagRef.current.value = \"\";\n handleCancelEditTag();\n }\n return true;\n }\n toast.error(\"Fail to add or update the tag.\");\n return false;\n };\n\n const handleAddTagKeyPressed = (e) => {\n if (e.charCode === 13) {\n handleAddTag();\n }\n };\n\n const handleDeleteTag = async (e, tag) => {\n const tags = tagsSet;\n tags.delete(tag.toLowerCase());\n setTagsSet(tags);\n // delete tag in DOM\n const { handleDeleteTag: handleDelete } = props;\n await handleDelete(tag, \"new0\", e);\n handleCancelEditTag();\n return true;\n };\n\n const handleCancelButtonClick = () => {\n setInputItemName(\"\");\n handleCancelEditTag();\n setTagsSet(null);\n\n itemTagRef.current.value = \"\";\n itemNameRef.current.value = \"\";\n if (activeTab === \"0\") {\n fieldInputsRef.current.forEach((elem) => { elem.value = \"\"; });\n }\n const { onCancelAddProductClick } = props;\n onCancelAddProductClick();\n };\n\n const handleSaveButtonClick = async () => {\n setSaveReminderDisplay(false);\n const linkReportFieldsObj = {};\n if (activeTab === \"0\") {\n if (!inputItemName.trim()) {\n toast.error(\"Please add Item name\");\n return;\n }\n\n for (let i = 0; i < fieldInputsRef.current.length; i++) {\n const fieldInput = fieldInputsRef.current[i];\n const value = fieldInput.value.trim();\n const { json_field, title_field } = linkReportFields[i];\n if (!value) {\n toast.error(`Please add ${title_field}`);\n return;\n }\n linkReportFieldsObj[json_field] = value;\n }\n } else if (!inputItemName.trim()) {\n toast.error(\"Please add Item name\");\n return;\n }\n const { onSaveAdd } = props;\n if (tagInput.trim()) {\n const success = await handleAddTag();\n if (success) {\n onSaveAdd(inputItemName.trim(), linkReportFieldsObj);\n } else {\n toast.error(\"fail to add the tag\");\n }\n } else {\n onSaveAdd(inputItemName.trim(), linkReportFieldsObj);\n }\n };\n\n const { cancelButton, isMostRight } = props;\n\n const handleClickAway = () => {\n setSaveReminderDisplay(true);\n };\n\n return (\n\n \n
    { e.stopPropagation(); setSaveReminderDisplay(false); }}>\n
    \n
    \n \n Add New Item Card\n
    \n
    \n
    \n \n
    \n \n setInputItemName(e.target.value)}\n />\n
    \n {inputItemName.length}\n /250\n
    \n
    \n {activeTab === \"0\"\n && (\n
    \n {linkReportFields.map((link_item, link_idx) => (\n
    \n \n handleKeyPressInputItemNumberChange(e, link_idx)}\n ref={(input) => setFieldInputsRef(input, link_idx)}\n />\n
    \n ))}\n
    \n )}\n
    \n\n
    \n \n
    \n handleAddTagKeyPressed(e, \"new0\")}\n ref={itemTagRef}\n />\n setAddTagIcon(darkBlueAddIcon)}\n onMouseLeave={() => setAddTagIcon(lightBlueAddIcon)}\n onClick={handleAddTag}\n />\n
    \n
    \n \n {tagsEditing.new0\n ? tagsEditing.new0.map((itemTag, tagIndex) => (\n handleEditTag(tagIndex, itemTag)}\n handleKeyPressAddTag={handleAddTagKeyPressed}\n handleDeleteTag={(e) => handleDeleteTag(e, itemTag)}\n handleTagInputOutsideClick={handleAddTag}\n />\n ))\n : null}\n \n\n \n {cancelButton && (\n \n Cancel\n \n )}\n \n Save\n \n {saveReminderDisplay && cancelButton\n && (\n
    \n
    \n
    You have unsaved changes, please save the card before proceeding
    \n
    \n )}\n
    \n
    \n
    \n\n \n
    \n );\n}\n\nexport default ProductNewCard;\n","import React from \"react\";\nimport { Select } from \"antd\";\nimport { ReactComponent as ChevronDown } from \"../../../assets/images/common/ChevronDown.svg\";\nimport \"./SortBySelect.css\";\n\nexport default function SortBySelect({\n options,\n selectedOptionIdx,\n onSelect,\n disabled,\n}) {\n const selectOptions = options.map((item) => ({ value: item, label: item }));\n return (\n }\n className=\"SortBySelect\"\n popupClassName=\"SortBySelect__Dropdown\"\n disabled={disabled}\n />\n );\n}\n","import React, { useEffect, useState } from \"react\";\n// import moment from \"moment\";\nimport Modal from \"antd/es/modal/Modal\";\nimport DocumentsCardView from \"../../Documents/Components/DocumentsCardView\";\nimport DocumentsListView from \"../../Documents/Components/DocumentsListView\";\n\nimport { getFiles, searchFiles } from \"../../../actions/documents\";\nimport { getValueOfObj } from \"../../../utils/helpers\";\n\nimport circleCloseIcon from \"../../../assets/images/index/crossCircleWhite.png\";\nimport searchIcon from \"../../../assets/images/index/searchIcon.png\";\nimport closeIconDarkBlue from \"../../../assets/images/index/closeMidnight.png\";\nimport closeHighlightedIcon from \"../../../assets/images/index/closeHighlighed.png\";\nimport CardViewIcon from \"../../../assets/images/index/cardViewIcon.png\";\nimport ListViewIcon from \"../../../assets/images/index/listViewIcon.png\";\nimport CardViewIconInactive from \"../../../assets/images/index/cardViewIconInactive.png\";\nimport ListViewIconInactive from \"../../../assets/images/index/listViewIconInactive.png\";\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\n\nimport \"./DocumentAddModal.css\";\nimport SortBySelect from \"./SortBySelect\";\n\nfunction DocumentAddModal({\n handleCloseAddFileModal,\n handleAddFileConfirm,\n}) {\n const [sortByOpSelected, setSortByOpSelected] = useState(-1);\n const [documentsList, setDocumentsList] = useState([]);\n const [sortMenuVisible, setSortMenuVisible] = useState(false);\n const [numberOfFilesSelected, setNumberOfFilesSelected] = useState(0);\n const [selectAll, setSelectAll] = useState(false);\n const [closeIcon, setCloseIcon] = useState(closeIconDarkBlue);\n const [cardView, setCardView] = useState(false);\n const sortReportOption = [\"Name\", \"Most recent\", \"Oldest\"];\n\n useEffect(() => {\n const apiGetFiles = async () => {\n const response = await getFiles();\n if (response && response.success) {\n if (response.result.length < 1) {\n setDocumentsList([]);\n } else {\n const results = response.result[0];\n const data = [];\n results.files.forEach((file, index) => {\n data.push({\n key: index,\n name: file.name,\n extension: file.type,\n uploadDate: file.uploaded,\n fileSize: file.size,\n file: file.file_path,\n checked: false,\n renameDisable: true,\n numberOfFilesSelected: 0,\n renameValue: file.name,\n });\n });\n setDocumentsList(data);\n }\n }\n };\n apiGetFiles();\n }, []);\n\n const handleSearchChange = async (e) => {\n const { value } = e.target;\n setSortByOpSelected(-1);\n setSelectAll(false);\n setNumberOfFilesSelected(0);\n const response = await searchFiles(value);\n let files = [];\n if (response && response.success) {\n files = getValueOfObj(response, \"result\", \"0\", \"files\") || [];\n if (files) {\n const filteredFiles = files.map((file, index) => ({\n key: index,\n name: file.name,\n extension: file.type,\n uploadDate: file.uploaded,\n fileSize: file.size,\n file: file.file_path,\n checked: false,\n renameDisable: true,\n nubOfSelectedFile: 0,\n renameValue: file.name,\n }));\n setDocumentsList(filteredFiles);\n } else {\n setDocumentsList([]);\n }\n // let results = response.result;\n // if (results.length < 1) {\n // setDocumentsList([]);\n // } else {\n // results = results[0];\n // const data = results.files.map((file, index) => ({\n // key: index,\n // name: file.name,\n // extension: file.type,\n // uploadDate: moment(file.uploaded).format(\"lll\"),\n // fileSize: file.size,\n // file: file.file_path,\n // checked: false,\n // renameDisable: true,\n // nubOfSelectedFile: 0,\n // renameValue: file.name,\n // }));\n // setDocumentsList(data);\n // }\n } else {\n setDocumentsList([]);\n }\n };\n\n const sortByName = () => {\n const sortedFiles = documentsList.sort((a, b) => {\n const nameA = a.name.toUpperCase(); // ignore upper and lowercase\n const nameB = b.name.toUpperCase(); // ignore upper and lowercase\n if (nameA < nameB) {\n return -1;\n } if (nameA > nameB) {\n return 1;\n }\n return 0;\n });\n\n setDocumentsList(sortedFiles);\n setSortMenuVisible(!sortMenuVisible);\n };\n\n const sortByDateCreated = (des) => {\n const sortedFiles = documentsList.sort((a, b) => new Date(a.uploadDate) - new Date(b.uploadDate));\n\n if (des) {\n sortedFiles.reverse();\n }\n\n setDocumentsList(sortedFiles);\n setSortMenuVisible(!sortMenuVisible);\n };\n\n const handleSortByOptionClick = (option) => {\n switch (option) {\n case \"Name\":\n sortByName();\n setSortByOpSelected(0);\n break;\n case \"Oldest\":\n sortByDateCreated(false);\n setSortByOpSelected(2);\n break;\n case \"Most recent\":\n sortByDateCreated(true);\n setSortByOpSelected(1);\n break;\n default:\n }\n };\n\n const handleAddButtonClick = () => {\n const documentsToAdd = [];\n const documents = documentsList;\n documents.forEach((document) => {\n if (document.checked === true) {\n documentsToAdd.push(document);\n document.checked = false;\n }\n });\n setDocumentsList([...documents]);\n setSelectAll(false);\n setNumberOfFilesSelected(0);\n handleAddFileConfirm(documentsToAdd);\n };\n\n const handleChangeView = () => {\n setCardView(!cardView);\n };\n\n const handleCheckboxAll = (deselectAll = true) => {\n const files = documentsList.map((document) => {\n const newDocument = { ...document, checked: !deselectAll };\n return newDocument;\n });\n\n setDocumentsList(files);\n setSelectAll(!deselectAll);\n setNumberOfFilesSelected(deselectAll ? 0 : files.length);\n };\n\n const handleCheckbox = (e, key) => {\n e.stopPropagation();\n const files = documentsList;\n let counter = 0;\n files.forEach((file) => {\n if (file.key === key) {\n file.checked = !file.checked;\n }\n if (file.checked === true) {\n // eslint-disable-next-line no-plusplus\n counter++;\n }\n });\n\n setNumberOfFilesSelected(counter);\n setDocumentsList(files);\n if (counter === 0) {\n setSelectAll(false);\n } else if (counter === files.length) {\n setSelectAll(true);\n }\n };\n\n return (\n \n
    \n
    \n
    \n My documents\n
    \n \n
    \n
    \n
    \n
    \n \n \n \n
    \n \n
    \n \n {numberOfFilesSelected === 0\n ?
    Select to add your files
    \n : (\n <>\n handleCheckboxAll(true)}\n className=\"DocumentAddModal__AddFilesContainer__ClearButton\"\n src={closeIcon}\n onMouseEnter={() => setCloseIcon(closeHighlightedIcon)}\n onMouseLeave={() => setCloseIcon(closeIconDarkBlue)}\n alt=\"\"\n />\n \n {`${numberOfFilesSelected} files selected`}\n
    \n \n )}\n \n Add\n \n
    \n \n
    \n {cardView && (\n <>\n
    \n \n
    \n \n \n )}\n {!cardView && (\n
    \n handleCheckboxAll(selectAll)}\n selectAll={selectAll}\n />\n
    \n )}\n \n \n \n
    \n \n \n \n \n );\n}\n\nexport default DocumentAddModal;\n","import React, { Component } from \"react\";\n\nimport { Tag } from \"antd\";\nimport moment from \"moment\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport StyledButton from \"../../Common/UIComponents/StyledButton\";\nimport DocumentsCardView from \"../../Documents/Components/DocumentsCardView\";\nimport DocumentsConfirmDelete from \"../../Documents/Components/DocumentsConfirmDelete\";\nimport DocumentsListView from \"../../Documents/Components/DocumentsListView\";\nimport DocumentAddModal from \"./DocumentAddModal\";\n\nimport { downloadFileFromS3WithPresigned } from \"../../../utils/helpers\";\n\nimport { postFiles, getFiles } from \"../../../actions/documents\";\n\nimport addIcon from \"../../../assets/images/index/addCircleIconWhite.png\";\nimport backArrowIcon from \"../../../assets/images/index/backArrowIconMidnight.png\";\nimport CardViewIcon from \"../../../assets/images/index/cardViewIcon.png\";\nimport CardViewIconInactive from \"../../../assets/images/index/cardViewIconInactive.png\";\nimport closeIcon from \"../../../assets/images/index/closeMidnight.png\";\nimport TrashHoverIcon from \"../../../assets/images/index/deleteIconBlue.png\";\nimport TrashIcon from \"../../../assets/images/index/deleteIconLightBlue.png\";\nimport DownloadHoverIcon from \"../../../assets/images/index/downloadIconBlue.png\";\nimport DownloadIcon from \"../../../assets/images/index/downloadIconLightBlue.png\";\nimport ListViewIcon from \"../../../assets/images/index/listViewIcon.png\";\nimport ListViewIconInactive from \"../../../assets/images/index/listViewIconInactive.png\";\n\nimport \"./productDocument.css\";\n\nexport default class ProductDocuments extends Component {\n constructor(props) {\n super();\n const {\n productListIndex, product,\n } = props;\n const isProduct = productListIndex === \"Product\";\n this.state = {\n addingFile: false,\n numberOfFilesSelected: 1,\n cardView: false,\n isProduct,\n productListIndex,\n productId: isProduct ? product.product_id : product.index_card_id,\n productName: isProduct ? product.product_name : product.card_name,\n productFiles: [],\n selectAll: false,\n fileSelected: null,\n confirmDelete: false,\n batch: false,\n deleteItem: null,\n };\n this.preventCheckbox = false;\n }\n\n componentDidMount() {\n this.initComponent();\n }\n\n initComponent = async () => {\n await this.apiGetProductFiles();\n }\n\n handleChangeView = () => {\n const { cardView } = this.state;\n this.setState({ cardView: !cardView });\n };\n\n handleCheckbox = (event, key) => {\n if (this.preventCheckbox) {\n this.preventCheckbox = false;\n return;\n }\n const { productFiles } = this.state;\n event.stopPropagation();\n const files = productFiles;\n let counter = 0;\n files.forEach((file) => {\n if (file.key === key) {\n file.checked = !file.checked;\n }\n if (file.checked === true) {\n // eslint-disable-next-line no-plusplus\n counter++;\n }\n });\n\n this.setState({\n fileSelected: counter > 0,\n numberOfFilesSelected: counter,\n productFiles: files,\n });\n\n if (counter === 0) {\n this.setState({ selectAll: false });\n } else if (counter === files.length) {\n this.setState({ selectAll: true });\n }\n };\n\n handleCheckboxAll = () => {\n const { productFiles } = this.state;\n const files = productFiles;\n const { selectAll } = this.state;\n\n files.forEach((file) => {\n file.checked = !selectAll;\n });\n\n this.setState({\n selectAll: !selectAll,\n fileSelected: selectAll ? false : files.length > 0,\n numberOfFilesSelected: selectAll ? 0 : files.length,\n productFiles: files,\n });\n };\n\n handleClearAll = () => {\n const { productFiles: files } = this.state;\n files.forEach((file) => {\n file.checked = false;\n });\n this.setState({\n selectAll: false,\n numberOfFilesSelected: 0,\n fileSelected: false,\n productFiles: files,\n });\n };\n\n switchAddFileModal = () => {\n const { addingFile } = this.state;\n this.setState({ addingFile: !addingFile });\n }\n\n handleDownloadFile = (event, file, batch) => {\n /** The event.stopPropagation() does not close the menu,\n * so we need hte preventCheckbox here to prevent calling the handleCheckbox().\n */\n if (event) {\n event.stopPropagation();\n }\n this.preventCheckbox = true;\n const { productFiles: files, numberOfFilesSelected } = this.state;\n if (batch) {\n let downloadFile = null;\n files.forEach((element) => {\n if (element.checked === true) {\n const fileName = element.file.split(\"/\").pop();\n downloadFileFromS3WithPresigned([element.file], \"private\", [fileName]);\n element.checked = false;\n downloadFile = element;\n }\n });\n const toastMessage = numberOfFilesSelected === 1\n ? `${downloadFile.name}.${downloadFile.extension} downloaded`\n : `${numberOfFilesSelected} files downloaded`;\n toast.success(toastMessage);\n } else {\n const fileName = file.file.split(\"/\").pop();\n downloadFileFromS3WithPresigned([file.file], \"private\", [fileName]);\n toast.success(`${file.name}.${file.extension} downloaded`);\n }\n\n this.setState({\n fileSelected: false, selectAll: false, numberOfFilesSelected: 0,\n });\n };\n\n handleConfirmDelete = (event, item, batch) => {\n /** The event.stopPropagation() does not close the menu,\n * so we need hte preventCheckbox here to prevent calling the handleCheckbox().\n */\n if (event) {\n event.stopPropagation();\n }\n this.preventCheckbox = true;\n const { confirmDelete } = this.state;\n this.setState({\n confirmDelete: !confirmDelete,\n batch,\n deleteItem: item,\n });\n };\n\n toggleConfirmDelete = () => {\n const { confirmDelete } = this.state;\n this.setState({ confirmDelete: !confirmDelete });\n };\n\n handleDeleteFile = async (event, item, batch) => {\n event.stopPropagation();\n let { productFiles: files } = this.state;\n const { productId, confirmDelete } = this.state;\n let toastMessage = \"\";\n if (batch) {\n const tempArray = files.filter((file) => file.checked === true);\n if (tempArray.length === 1) {\n toastMessage = `${tempArray[0].name}.${tempArray[0].extension} delete`;\n } else {\n toastMessage = `${tempArray.length} files delete`;\n }\n files = tempArray.map((file) => ({ name: file.name }));\n } else {\n files = [{ name: item.name }];\n toastMessage = `${item.name}.${item.extension} delete`;\n }\n const response = await postFiles(files, \"Delete\", productId);\n if (response && response.success) {\n this.apiGetProductFiles();\n toast.success(toastMessage);\n } else {\n toast.error(\"Files Delete failed\");\n }\n\n this.setState({\n fileSelected: false,\n selectAll: false,\n confirmDelete: !confirmDelete,\n });\n };\n\n apiGetProductFiles = async () => {\n const { productId } = this.state;\n const response = await getFiles(productId);\n\n if (response && response.success) {\n if (response.result && response.result.length < 1) {\n this.setState({ productFiles: [] });\n } else {\n const results = response.result[0];\n const data = results.files.map((file, index) => {\n const obj = {};\n obj.key = index;\n obj.name = file.name;\n obj.extension = file.type;\n obj.uploadDate = file.uploaded;\n obj.fileSize = file.size;\n obj.file = file.file_path;\n obj.renameDisable = true;\n obj.numOfSelectedFile = 0;\n obj.renameValue = file.name;\n return obj;\n });\n this.setState({ productFiles: [...data] });\n }\n }\n }\n\n handleAddFile = () => {\n this.switchAddFileModal();\n }\n\n handleAddFileConfirm = async (files) => {\n const filesToStore = files.map((file) => {\n const obj = {};\n obj.file = file.file;\n obj.name = file.name;\n obj.type = file.extension;\n obj.size = `${Math.ceil(parseInt(file.fileSize) / 1024)}mb`;\n obj.uploaded = moment(file.uploadDate).format(\"YYYY-MM-DD hh:mm:ss a\");\n return obj;\n });\n const success = await this.apiPostFiles(filesToStore, \"Add\");\n if (success) {\n this.setState({ addingFile: false, selectAll: false, fileSelected: false });\n }\n }\n\n handleFileOptionClick = (event) => {\n event.stopPropagation();\n };\n\n handleFileOptionClose = (event) => {\n event.stopPropagation();\n };\n\n handleRenameFile = (event, item) => {\n /** The event.stopPropagation() does not close the menu,\n * so we need hte preventCheckbox here to prevent calling the handleCheckbox().\n */\n if (event) {\n event.stopPropagation();\n }\n this.preventCheckbox = true;\n const { productFiles: files } = this.state;\n files.forEach((file) => {\n if (file.key === item.key) {\n file.renameDisable = !file.renameDisable;\n } else {\n file.renameDisable = true;\n }\n });\n this.setState({ productFiles: files });\n };\n\n handleNameChange = (event, key) => {\n const { productFiles: files } = this.state;\n const { value } = event.target;\n files.forEach((file) => {\n if (file.key === key) {\n file.renameValue = value;\n }\n });\n this.setState({ productFiles: files });\n };\n\n handleNameSubmit = (event, key) => {\n const { productFiles: files } = this.state;\n if (event.key === \"Enter\") {\n files.forEach((file) => {\n if (file.key === key) {\n file.renameDisable = true;\n }\n });\n this.apiPostFiles(files, \"Edit\", key);\n }\n };\n\n handleCancelRename = (e, key) => {\n e.stopPropagation();\n const { productFiles: files } = this.state;\n files.forEach((file) => {\n if (file.key === key) {\n file.renameDisable = true;\n file.renameValue = file.name;\n }\n });\n this.setState({ productFiles: files });\n }\n\n apiPostFiles = async (files, category, key) => {\n let file;\n let payloadObj = {};\n const { productId } = this.state;\n const payloadArray = [];\n if (category === \"Edit\") {\n file = files[key];\n payloadObj = {\n old_name: file.name,\n new_name: file.renameValue,\n };\n if (payloadObj.new_name.trim() === \"\") {\n toast.error(\"File name cannot be empty\");\n file.renameValue = file.name;\n files[key] = file;\n this.setState({ productFiles: files });\n return false;\n }\n payloadArray.push(payloadObj);\n const res = await postFiles(payloadArray, category, productId);\n if (res && res.success) {\n if (res.message === \"success\") {\n toast.success(\"File renamed successfully\");\n file.name = file.renameValue;\n files[key] = file;\n this.setState({ productFiles: files });\n return true;\n }\n toast.error(res.message);\n file.renameValue = file.name;\n files[key] = file;\n this.setState({ productFiles: files });\n return false;\n }\n toast.error(\"File renamed failed\");\n return false;\n }\n const res = await postFiles(files, category, productId);\n if (res && res.success) {\n if (res.message === \"success\") {\n toast.success(\"Files added successfully\");\n } else {\n toast.error(res.message);\n }\n if (res.result) {\n const results = res.result;\n const data = [];\n if (results.length < 1) {\n this.setState({ productFiles: data, fileSelected: false });\n } else {\n const filesRec = results[0].files;\n filesRec.forEach((fileEl, index) => {\n data.push({\n key: index,\n name: fileEl.name,\n extension: fileEl.type,\n uploadDate: fileEl.uploaded,\n fileSize: fileEl.size,\n file: fileEl.file_path,\n checked: false,\n renameDisable: true,\n nubOfSelectedFile: 0,\n renameValue: fileEl.name,\n });\n });\n this.setState({ productFiles: data, fileSelected: false, numberOfFilesSelected: 0 });\n }\n } else {\n await this.apiGetProductFiles();\n this.setState({ numberOfFilesSelected: 0 });\n }\n return true;\n }\n toast.error(\"Files add failed\");\n return false;\n };\n\n render() {\n const { product } = this.props;\n const {\n tags,\n created_on: createTime,\n } = product;\n\n const {\n addingFile,\n confirmDelete,\n productName,\n isProduct,\n productListIndex,\n numberOfFilesSelected,\n batch,\n deleteItem,\n cardView,\n productFiles,\n selectAll,\n fileSelected,\n } = this.state;\n\n const { handleBackArrowClick, linkReportFields } = this.props;\n\n const keys = isProduct ? linkReportFields : [{ json_field: \"created_by\", title_field: \"Created By\" }];\n\n return (\n <>\n {confirmDelete && (\n \n )}\n {addingFile\n && (\n \n )}\n
    \n \n \n \n \n {productName}\n
    \n \n \n \n {\n keys.map(({ json_field, title_field }) => (\n
    \n {`${title_field}: `}\n {isProduct ? product.item[json_field] : product[json_field]}\n
    \n ))\n }\n
    \n
    {moment(new Date(createTime)).format(\"MMM DD, YYYY\")}
    \n\n \n

    Index category:

    \n

    {productListIndex}

    \n \n \n
    \n
    \n Tags:\n
    \n\n \n {tags.map((item, index) => (\n \n {item.tag}\n \n ))}\n \n
    \n \n \n
    \n\n {cardView && (\n <>\n
    \n \n
    \n \n \n )}\n {!cardView && (\n \n \n
    \n )}\n \n \n {!fileSelected && (\n \n
    \n \n \n
    \n \n )}\n {fileSelected\n && (\n
    \n {fileSelected\n && (\n
    \n
    \n {numberOfFilesSelected === 1 ? \"1 file selected\" : `${numberOfFilesSelected} files selected`}\n \n
    \n\n this.handleDownloadFile(e, null, true)}\n onMouseEnter={(e) => {\n e.currentTarget.src = DownloadHoverIcon;\n }}\n onMouseLeave={(e) => {\n e.currentTarget.src = DownloadIcon;\n }}\n src={DownloadIcon}\n alt=\"\"\n />\n this.handleConfirmDelete(e, null, true)}\n onMouseEnter={(e) => {\n e.currentTarget.src = TrashHoverIcon;\n }}\n onMouseLeave={(e) => {\n e.currentTarget.src = TrashIcon;\n }}\n src={TrashIcon}\n alt=\"\"\n />\n
    \n )}\n
    \n )}\n \n \n \n Add file\n \n \n \n \n );\n }\n}\n","import React, { Component, createRef } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport ReactCardFlip from \"react-card-flip\";\nimport {\n Grid,\n AutoSizer,\n CellMeasurer,\n CellMeasurerCache,\n} from \"react-virtualized\";\nimport { toast } from \"react-toastify\";\nimport StyledTooltip from \"../Common/UIComponents/StyledTooltip\";\nimport DeleteProductConfirmation from \"../Modals/DeleteProductConfirmation\";\nimport IndexCategories from \"./Components/IndexCategories\";\nimport Search from \"./Components/Search\";\nimport ProductCard from \"./Components/ProductCard\";\nimport ProductEditCard from \"./Components/ProductEditCard\";\nimport ProductNewCard from \"./Components/ProductNewCard\";\nimport ProductDocuments from \"./Components/ProductDocuments\";\nimport \"./Index.css\";\n\nimport darkPlusIcon from \"../../assets/images/index/addSquareMidnight.png\";\nimport lightPlusIcon from \"../../assets/images/index/addSquareBlue.png\";\n\nimport {\n getProducts,\n createProduct,\n updateProduct,\n searchProducts,\n deleteProduct,\n addTag,\n deleteTag,\n updateTag,\n} from \"../../actions/index\";\nimport { getProductFields } from \"../../actions/reports\";\nimport SortBySelect from \"./Components/SortBySelect\";\n\nclass Index extends Component {\n state = {\n loading: true,\n activeTab: \"0\",\n indices: [],\n showClearSearch: false,\n sortByOpSelected: -1,\n productListIndex: \"Product\",\n productList: [],\n hasProduct: false,\n indexOfProdDelete: -1,\n indexOfCardInEdit: -1, // in editing card/tags\n tagsEditing: {}, // to keep the sequence when updating tags: add new card/edit card/edit tag\n editProduct: null,\n editingProduct: false,\n addingProduct: false,\n editingTagsProductId: \"\",\n addItemButtonIcon: lightPlusIcon,\n displayProductDetails: false,\n productDetails: {},\n linkReportFields: [],\n };\n\n grid = createRef();\n\n cache = new CellMeasurerCache({\n fixedWidth: true,\n defaultHeight: 390,\n minHeight: 390,\n })\n\n searchAbortController = null;\n\n handleScroll = (e) => {\n const { scrollTop, scrollLeft } = e;\n const gridRef = this.grid.current;\n gridRef.handleScrollEvent({ scrollTop, scrollLeft });\n };\n\n apiGetLinkedFields = async () => {\n const result = await getProductFields();\n if (result && result.success) {\n const { fieldsMap, link_report } = result;\n if (!link_report || link_report.length === 0) {\n toast.error(\"Link report field(s) missing\");\n return null;\n }\n const link_report_fields = link_report.map((json_field) => fieldsMap[json_field]);\n if (link_report_fields.some((elem) => !elem)) {\n toast.error(\"Link report field(s) missing from fields\");\n return null;\n }\n return link_report_fields;\n }\n toast.error(\"Failed to fetch fields\");\n return null;\n };\n\n initComponent = async (activeTab, activeTabName, indices) => {\n const linkReportFields = await this.apiGetLinkedFields();\n if (!linkReportFields) {\n return;\n }\n const { productListIndex } = this.state;\n this.setState({\n productListIndex: activeTabName || productListIndex,\n indices,\n activeTab,\n linkReportFields,\n }, () => this.getAllProducts(activeTab));\n }\n\n updateIndices = (indices) => {\n const { activeTab } = this.state;\n this.setState({ productListIndex: activeTab === \"0\" ? \"Product\" : indices[activeTab - 1], indices });\n }\n\n updateProductList = (activeTab, indices) => {\n this.onCancelEdit();\n this.onCancelEditTagsClick();\n this.onCancelAddProductClick();\n this.setState({\n productListIndex: activeTab === \"0\" ? \"Product\" : indices[activeTab - 1], indices, activeTab, loading: true,\n }, () => this.getAllProducts(activeTab, true, true));\n }\n\n handleAddCardClick = (e) => {\n e.preventDefault();\n const { editingProduct, addingProduct, editingTagsProductId } = this.state;\n if (!editingProduct && !addingProduct && !editingTagsProductId) {\n this.setState({ addingProduct: true, tagsEditing: { new0: [] }, addItemButtonIcon: lightPlusIcon });\n }\n }\n\n onCancelAddProductClick = () => {\n this.setState({ addingProduct: false, tagsEditing: {} });\n }\n\n // onEditTagsClick = (editingTagsProductId, tags) => {\n onEditTagsClick = (indexOfCardInEdit, editingTagsProductId) => {\n this.onCancelAddProductClick();\n this.onCancelEdit();\n const tagsEditing = {};\n const { productList } = this.state;\n // tagsEditing[editingTagsProductId] = tags.map(tag => tag.tag);\n tagsEditing[editingTagsProductId] = productList[indexOfCardInEdit].tags.map((tag) => tag.tag);\n this.setState({ editingTagsProductId, tagsEditing, indexOfCardInEdit });\n }\n\n onCancelEditTagsClick = () => {\n this.setState({ editingTagsProductId: \"\", tagsEditing: {}, indexOfCardInEdit: -1 });\n }\n\n handleProductNameClick = (e, item) => {\n this.setState({\n displayProductDetails: true,\n productDetails: item,\n });\n }\n\n handleBackArrowClick = () => {\n this.setState({\n displayProductDetails: false,\n });\n }\n\n handleDeleteTag = async (tag, productId) => {\n if (tag) {\n const { activeTab, indices, tagsEditing } = this.state;\n if (productId === \"new0\") {\n if (tagsEditing[productId]) {\n tagsEditing[productId] = tagsEditing[productId].filter((tagText) => tagText !== tag);\n }\n this.setState({ tagsEditing });\n return true;\n }\n const params = activeTab === \"0\" ? { tag, product_id: productId }\n : {\n flag: \"index\",\n tag,\n index_card_id: productId,\n index: indices[activeTab - 1],\n };\n const success = await this.apiDeleteTag(params, productId, tag);\n return success;\n }\n return false;\n }\n\n apiDeleteTag = async (params, productId, tag) => {\n const result = await deleteTag(params);\n\n if (result && result.success) {\n toast.success(\"Tag deleted successfully.\");\n const { productList, indexOfCardInEdit } = this.state;\n productList[indexOfCardInEdit].tags = [...result[0].result[0].tags];\n this.setState(productList);\n const { tagsEditing } = this.state;\n const index = tagsEditing[productId].indexOf(tag);\n tagsEditing[productId].splice(index, 1);\n this.setState({ tagsEditing });\n return true;\n }\n toast.error(result.message);\n return false;\n };\n\n handleAddTag = async (tag, productId, otag = \"\") => {\n const { activeTab, indices, tagsEditing } = this.state;\n // add/edit tags of new item\n if (productId === \"new0\") {\n if (!tagsEditing[productId]) {\n tagsEditing[productId] = [];\n }\n let indexEditing = tagsEditing[productId].indexOf(tag);\n if (indexEditing === -1) {\n if (otag) {\n indexEditing = tagsEditing[productId].indexOf(otag);\n if (indexEditing !== -1) {\n tagsEditing[productId][indexEditing] = tag;\n this.setState({ tagsEditing });\n return true;\n }\n } else {\n tagsEditing[productId].push(tag);\n this.setState({ tagsEditing });\n return true;\n }\n }\n return false;\n // add/edit tag to existing item\n }\n let params;\n if (tag && tagsEditing[productId] && tagsEditing[productId].indexOf(tag) === -1) {\n if (!otag) {\n tagsEditing[productId].push(tag);\n this.setState({ tagsEditing });\n params = activeTab === \"0\" ? { tag, product_id: productId }\n : {\n flag: \"index\",\n tag,\n index_card_id: productId,\n index: indices[activeTab - 1],\n };\n const success = await this.apiAddTag(params, productId, tag);\n return success;\n }\n const index = tagsEditing[productId].indexOf(otag);\n tagsEditing[productId][index] = tag;\n this.setState({ tagsEditing });\n params = {\n product_id: productId,\n tag: otag,\n tag1: tag,\n activeTab,\n index: indices[activeTab - 1],\n };\n const success = await this.apiUpdateTag(params, productId, tag, otag);\n return success;\n }\n return false;\n }\n\n apiAddTag = async (params, productId) => {\n const result = await addTag(params);\n\n if (result && result.success) {\n toast.success(\"Tag added successfully.\");\n const { productList, indexOfCardInEdit } = this.state;\n productList[indexOfCardInEdit].tags = [...result.data[0].result[0].tags];\n this.setState(productList);\n // this.getAllProducts(this.state.activeTab, true, true);\n return true;\n }\n const { tagsEditing } = this.state;\n tagsEditing[productId].pop();\n this.setState({ tagsEditing });\n return false;\n };\n\n apiUpdateTag = async (params, productId, tag, otag) => {\n const result = await updateTag(params);\n if (result && result.success) {\n toast.success(\"Tag updated successfully.\");\n const { productList, indexOfCardInEdit } = this.state;\n productList[indexOfCardInEdit].tags = [...result[0].result[0].tags];\n this.setState(productList);\n return true;\n }\n const { tagsEditing } = this.state;\n const index = tagsEditing[productId].indexOf(tag);\n tagsEditing[productId][index] = otag;\n this.setState({ tagsEditing });\n return false;\n }\n\n handleClearSearch = () => {\n const { activeTab } = this.state;\n this.getAllProducts(activeTab, true, true);\n };\n\n resetSearch = () => {\n const search = document.getElementsByName(\"searchProductText\")[0];\n if (search) {\n search.value = \"\";\n this.setState({ showClearSearch: false });\n }\n }\n\n resetSortBy = () => {\n this.setState({ sortByOpSelected: -1 });\n }\n\n updateStateForShowingClearButton = () => {\n this.setState({ showClearSearch: true });\n }\n\n // triggered when search input change\n handleSearchSubmit = (value) => {\n const { activeTab, indices, showClearSearch } = this.state;\n this.setState({ showClearSearch: value !== \"\" });\n\n if (value.trim() === \"\" && showClearSearch) {\n this.getAllProducts(activeTab, true, true);\n } else if (value.trim()) {\n let params = {\n input: value.trim(),\n };\n if (activeTab !== \"0\") {\n params = {\n flag: \"index\",\n index: indices[activeTab - 1],\n input: value.trim(),\n };\n }\n this.apiSearchProducts(params).then((productList) => {\n if (productList !== null) {\n this.setState({\n showClearSearch: true,\n productList,\n loading: false,\n });\n this.resetSortBy();\n }\n });\n }\n };\n\n apiSearchProducts = async (params) => {\n const newController = new AbortController();\n /** If prev search api still in progress, abort it */\n if (this.searchAbortController) {\n this.searchAbortController.abort();\n }\n this.searchAbortController = newController;\n const result = await searchProducts(params, newController.signal);\n\n if (newController.signal.aborted) {\n return null;\n }\n if (result && result.success) {\n this.searchAbortController = null;\n const { productList } = result;\n if (productList.length === 0) {\n return [];\n }\n return productList;\n }\n this.searchAbortController = null;\n toast.error(result.message);\n return [];\n };\n\n getAllProducts = async (selectedTab, resetSearch, resetSortBy) => {\n const { indices } = this.state;\n let params = { flag: \"product\" };\n if (selectedTab !== \"0\") {\n params = {\n flag: \"index\",\n index: indices[selectedTab - 1],\n };\n }\n\n const newController = new AbortController();\n /** If prev search api still in progress, abort it */\n if (this.searchAbortController) {\n this.searchAbortController.abort();\n }\n this.searchAbortController = newController;\n const result = await getProducts(params, newController.signal);\n\n if (newController.signal.aborted) {\n return;\n }\n\n if (result && result.success) {\n const productList = result.productList || [];\n\n if (resetSearch) {\n this.resetSearch();\n }\n\n if (resetSortBy) {\n this.resetSortBy();\n }\n\n this.setState({\n productList,\n hasProduct: productList.length !== 0,\n loading: false,\n activeTab: selectedTab,\n });\n } else {\n toast.error(result.message);\n }\n this.searchAbortController = null;\n };\n\n onEdit = (indexOfProdShowMenuOp, productId) => {\n this.onCancelAddProductClick();\n this.onCancelEditTagsClick();\n const { productList } = this.state;\n const item = productList[indexOfProdShowMenuOp];\n const tagsEditing = {\n [productId]: item.tags.map((tag) => tag.tag),\n };\n this.setState({\n editProduct: item || null,\n editingProduct: true,\n tagsEditing,\n indexOfCardInEdit: indexOfProdShowMenuOp,\n });\n }\n\n onSaveEdit = (product, productName, linkReportFieldsObj) => {\n const { activeTab, indices } = this.state;\n const newProduct = { ...product };\n if (activeTab === \"0\") {\n newProduct.product_name = productName;\n newProduct.item = linkReportFieldsObj;\n newProduct.product_image = \"\";\n } else {\n newProduct.card_name = productName;\n newProduct.flag = \"index\";\n newProduct.index = indices[activeTab - 1];\n newProduct.card_image = \"\";\n }\n this.apiToUpdateProduct(newProduct);\n this.onCancelEdit();\n };\n\n onCancelEdit = () => {\n this.setState({\n editProduct: null,\n editingProduct: false,\n tagsEditing: {},\n indexOfCardInEdit: -1,\n });\n };\n\n onSaveAdd = async (inputItemName, linkReportFieldsObj) => {\n const { activeTab } = this.state;\n let success;\n if (activeTab !== \"0\") {\n success = await this.onSaveAddIndex(inputItemName);\n } else {\n success = await this.onSaveAddProduct(inputItemName, linkReportFieldsObj);\n }\n\n // clear the search coz search may contain item and add item is been triggered\n if (success) {\n this.getAllProducts(activeTab, true, true);\n this.onCancelAddProductClick();\n }\n };\n\n onSaveAddProduct = async (productName, item) => {\n const { activeTab, tagsEditing } = this.state;\n const index = \"new0\";\n if (!tagsEditing[index]) {\n tagsEditing[index] = [];\n }\n\n const params = {\n flag: \"product\",\n product_name: productName,\n item,\n product_image: \"\",\n };\n\n const response = await createProduct(params);\n\n if (response && response.success && response.result.length > 0) {\n const { product_id: productId } = response.result[0];\n const success = this.addTagsToNewItem([...tagsEditing[index]], productId, activeTab);\n return success;\n }\n toast.error(response.message);\n return false;\n };\n\n onSaveAddIndex = async (productName) => {\n const { activeTab, indices, tagsEditing } = this.state;\n const index = \"new0\";\n if (!tagsEditing[index]) {\n tagsEditing[index] = [];\n }\n\n const params = {\n flag: \"index\",\n index: indices[activeTab - 1],\n card_name: productName,\n };\n const response = await createProduct(params);\n\n if (response && response.success && response.result) {\n const { index_card_id: productId } = response.result;\n const success = this.addTagsToNewItem([...tagsEditing[index]], productId, activeTab, indices);\n return success;\n }\n toast.error(response.message);\n return false;\n };\n\n addTagsToNewItem = async (tags, productId, activeTab, indices) => {\n await this.asyncForEach(tags, async (tag) => {\n let params;\n if (activeTab === \"0\") {\n params = { tag, product_id: productId };\n } else {\n params = {\n flag: \"index\",\n tag,\n index_card_id: productId,\n index: indices[activeTab - 1],\n };\n }\n const result = await addTag(params);\n if (!result || !result.success) {\n toast.error(`Fail to add tag: ${tag}`);\n }\n });\n return true;\n }\n\n asyncForEach = async (array, callback) => {\n for (let index = 0; index < array.length; index++) {\n // eslint-disable-next-line no-await-in-loop\n await callback(array[index], index, array);\n }\n }\n\n apiToUpdateProduct = async (product) => {\n const response = await updateProduct(product);\n if (response && response.success) {\n const { activeTab } = this.state;\n this.getAllProducts(activeTab, true, true);\n } else {\n toast.error(response.message);\n }\n };\n\n onDeleteProduct = async () => {\n const {\n activeTab, indices, indexOfProdDelete, productList,\n } = this.state;\n const dltProduct = productList[indexOfProdDelete];\n let params = {\n flag: \"product\",\n product_id: dltProduct.product_id,\n };\n if (activeTab !== \"0\") {\n params = {\n flag: \"index\",\n index: indices[activeTab - 1],\n index_card_id: dltProduct.index_card_id,\n };\n }\n\n const response = await deleteProduct(params);\n if (response.success) {\n this.getAllProducts(activeTab, true, true);\n return true;\n }\n toast.error(response.message);\n return false;\n };\n\n onToggleDeleteProductModal = (itemIndex) => {\n const { indexOfProdDelete } = this.state;\n if (indexOfProdDelete !== -1) {\n this.setState({ indexOfProdDelete: -1 });\n } else {\n this.setState({\n indexOfProdDelete: itemIndex,\n });\n }\n };\n\n handleSortByOptionClick = (option) => {\n switch (option) {\n case \"Date added\":\n this.sortByDateCreated();\n this.setState({ sortByOpSelected: 0 });\n break;\n case \"Name\":\n this.sortByName();\n this.setState({ sortByOpSelected: 1 });\n break;\n case \"Most tags\":\n this.sortByMostTags(false);\n this.setState({ sortByOpSelected: 2 });\n break;\n default:\n }\n }\n\n sortByName = () => {\n const { productList, activeTab } = this.state;\n\n // sort by name\n if (activeTab === \"0\") {\n const sortedList = productList.sort((a, b) => {\n const nameA = a.product_name.toUpperCase(); // ignore upper and lowercase\n const nameB = b.product_name.toUpperCase(); // ignore upper and lowercase\n if (nameA < nameB) {\n return -1;\n }\n if (nameA > nameB) {\n return 1;\n }\n\n // names must be equal\n return 0;\n });\n\n this.setState({ productList: sortedList });\n } else {\n const sortedList = productList.sort((a, b) => {\n const nameA = a.card_name.toUpperCase(); // ignore upper and lowercase\n const nameB = b.card_name.toUpperCase(); // ignore upper and lowercase\n if (nameA < nameB) {\n return -1;\n }\n if (nameA > nameB) {\n return 1;\n }\n\n // names must be equal\n return 0;\n });\n\n this.setState({ productList: sortedList });\n }\n }\n\n sortByDateCreated = () => {\n const { productList } = this.state;\n\n const sortedList = productList.sort((a, b) => {\n const dateA = a.created_on.split(\"/\");\n const dateB = b.created_on.split(\"/\");\n return new Date(dateA[2], dateA[0] - 1, dateA[1]) - new Date(dateB[2], dateB[0] - 1, dateB[1]);\n }).reverse();\n\n this.setState({\n productList: sortedList,\n });\n }\n\n sortByMostTags = () => {\n const { productList } = this.state;\n\n const sortedList = productList.sort((a, b) => a.tags.length - b.tags.length).reverse();\n\n this.setState({\n productList: sortedList,\n });\n }\n\n render() {\n const {\n loading,\n activeTab,\n showClearSearch,\n productList,\n indexOfProdDelete,\n tagsEditing,\n hasProduct,\n editProduct,\n editingProduct,\n addingProduct,\n editingTagsProductId,\n displayProductDetails,\n productDetails,\n productListIndex,\n sortByOpSelected,\n addItemButtonIcon,\n linkReportFields,\n } = this.state;\n\n const {\n onChangeTab,\n } = this.props;\n\n const sortProductOption = [\"Date added\", \"Name\", \"Most tags\"];\n\n return (\n <>\n {!loading && indexOfProdDelete !== -1\n && (\n \n )}\n {displayProductDetails\n ? (\n \n )\n : (\n
    \n \n {!loading && (activeTab !== \"0\" || linkReportFields.length > 0) // only show products for Product tab if linkReportFields non-empty\n && (\n
    \n
    \n {hasProduct && (\n
    \n \n \n
    \n )}\n\n {hasProduct\n ? (\n
    \n
    \n
    \n \n this.setState({ addItemButtonIcon: darkPlusIcon })}\n onFocus={() => this.setState({ addItemButtonIcon: darkPlusIcon })}\n onMouseOut={() => this.setState({ addItemButtonIcon: lightPlusIcon })}\n onBlur={() => this.setState({ addItemButtonIcon: lightPlusIcon })}\n />\n \n
    \n \n {({ width, height }) => {\n const columnCount = Math.max(Math.floor(window.innerWidth / 400), 1); // 400 = column max width\n const nCard = addingProduct ? productList.length + 1 : productList.length;\n const rowCount = Math.ceil(nCard / columnCount);\n const singleRowHeight = 440;\n return (\n
    \n \n {\n const colIdx = addingProduct ? (rowIndex * columnCount + columnIndex - 1) : (rowIndex * columnCount + columnIndex);\n const item = productList[colIdx];\n\n return (\n \n {/* eslint-disable-next-line */}\n {addingProduct && columnIndex === 0 && rowIndex === 0\n ? (\n
    \n
    \n \n
    \n
    \n )\n : item === undefined\n ?
    \n : (\n
    \n
    \n \n \n { editingProduct && (activeTab === \"0\" ? item.product_id === editProduct.product_id : item.index_card_id === editProduct.index_card_id)\n && (\n \n )}\n \n
    \n
    \n )}\n \n );\n }}\n />\n \n
    \n );\n }}\n \n
    \n
    \n )\n : (\n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n )}\n
    \n
    \n )}\n
    \n )}\n \n );\n }\n}\n\nexport default Index;\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./SignoutConfirmation.css\";\nimport StyledButton from \"../Common/UIComponents/StyledButton\";\n\nconst SignOutConfirmation = ({ onConfirm, onCancel }) => (\n \n
    \n
    Log Out
    \n
    Are you sure you want to Log Out?
    \n
    \n \n No\n \n \n Yes\n \n\n
    \n
    \n \n);\n\nexport default SignOutConfirmation;\n","import React from \"react\";\nimport \"./Loading.css\";\n\nexport default function Loading() {\n return (\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n );\n}\n","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgLogout = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 18,\n viewBox: \"0 0 18 18\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4.5 1.5H11.25C11.6478 1.5 12.0294 1.65804 12.3107 1.93934C12.592 2.22064 12.75 2.60218 12.75 3V3.75C12.75 3.94891 12.671 4.13968 12.5303 4.28033C12.3897 4.42098 12.1989 4.5 12 4.5C11.8011 4.5 11.6103 4.42098 11.4697 4.28033C11.329 4.13968 11.25 3.94891 11.25 3.75V3H4.5V15H11.25V14.25C11.25 14.0511 11.329 13.8603 11.4697 13.7197C11.6103 13.579 11.8011 13.5 12 13.5C12.1989 13.5 12.3897 13.579 12.5303 13.7197C12.671 13.8603 12.75 14.0511 12.75 14.25V15C12.75 15.3978 12.592 15.7794 12.3107 16.0607C12.0294 16.342 11.6478 16.5 11.25 16.5H4.5C4.10218 16.5 3.72064 16.342 3.43934 16.0607C3.15804 15.7794 3 15.3978 3 15V3C3 2.60218 3.15804 2.22064 3.43934 1.93934C3.72064 1.65804 4.10218 1.5 4.5 1.5Z\",\n fill: \"current\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12.5962 12.2218C12.8887 12.5143 13.3612 12.5143 13.6537 12.2218L16.3447 9.53083C16.4854 9.39019 16.5643 9.19946 16.5643 9.00058C16.5643 8.80171 16.4854 8.61098 16.3447 8.47033L13.6537 5.77933C13.5112 5.65048 13.3246 5.58133 13.1324 5.58618C12.9403 5.59103 12.7574 5.6695 12.6216 5.80539C12.4857 5.94127 12.4072 6.12417 12.4023 6.31628C12.3975 6.50839 12.4666 6.69502 12.5955 6.83758L14.0025 8.25058H7.5C7.30109 8.25058 7.11032 8.3296 6.96967 8.47025C6.82902 8.6109 6.75 8.80167 6.75 9.00058C6.75 9.19949 6.82902 9.39026 6.96967 9.53091C7.11032 9.67156 7.30109 9.75058 7.5 9.75058H14.0025L12.5955 11.1636C12.4555 11.3041 12.377 11.4945 12.3771 11.6929C12.3772 11.8912 12.4561 12.0815 12.5962 12.2218Z\",\n fill: \"current\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgLogout, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/logout.cc5b531a.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useContext, useEffect, useState } from \"react\";\n\nimport { toast } from \"react-toastify\";\n\nimport { AppContext } from \"../../AppContext\";\nimport Loading from \"../Common/Loading\";\nimport NoResultsGIF from \"../Common/NoResultsGIF\";\n\nimport { getUserCredentials } from \"../../utils/common\";\n\nimport { switchCompany, getCompanyList } from \"../../actions/switchCompany\";\n\nimport pumpkinGIF from \"../../assets/images/environment/pumpkin.gif\";\n\nimport \"./companylist.css\";\n\nexport default function CompanyList({ closeNavbar, navDrawer }) {\n const [companyList, setCompanyList] = useState([]);\n const { company_name } = getUserCredentials();\n const [selectedCompany, setSelectedCompany] = useState(company_name);\n const [isSwitching, setIsSwitching] = useState(false);\n const [showError, setShowError] = useState(false);\n const appContext = useContext(AppContext);\n const [loading, setLoading] = useState(false);\n\n // Get company list on mount\n useEffect(() => {\n const apiFetchCompanies = async () => {\n setLoading(true);\n const {\n success,\n company_list,\n } = await getCompanyList();\n if (success) {\n setCompanyList(company_list);\n } else {\n setShowError(true);\n }\n setLoading(false);\n };\n if (navDrawer) apiFetchCompanies();\n }, [navDrawer]);\n\n /**\n * Switch to new company\n * @param {String} companyName company name\n * @param {String} userTitle user title \"Admin\" or \"Member\"\n */\n const handleSwitchCompany = async (companyName, userTitle) => {\n setIsSwitching(true);\n const prevCompany = selectedCompany;\n setSelectedCompany(companyName);\n const success = await switchCompany(companyName, userTitle, appContext);\n if (success) {\n /** Reload the window */\n window.location.reload(false);\n closeNavbar();\n } else {\n setSelectedCompany(prevCompany);\n toast.error(\"Unable to switch accounts\");\n }\n setIsSwitching(false);\n };\n\n return (\n
    \n {loading && ()}\n {companyList.length ? companyList.map(({ company_name: name, user_title }) => (\n handleSwitchCompany(name, user_title)}\n >\n {name}\n \n )) : showError && () }\n
    \n );\n}\n","var _circle, _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgMyAccountIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 32,\n height: 32,\n viewBox: \"0 0 32 32\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 16,\n cy: 16,\n r: 16,\n fill: \"#EFF2F3\"\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.7334 21.3333C11.7334 20.2017 12.1829 19.1165 12.9831 18.3163C13.7832 17.5162 14.8685 17.0666 16.0001 17.0666C17.1317 17.0666 18.2169 17.5162 19.0171 18.3163C19.8172 19.1165 20.2667 20.2017 20.2667 21.3333H19.2001C19.2001 20.4846 18.8629 19.6707 18.2628 19.0706C17.6627 18.4704 16.8488 18.1333 16.0001 18.1333C15.1514 18.1333 14.3374 18.4704 13.7373 19.0706C13.1372 19.6707 12.8001 20.4846 12.8001 21.3333H11.7334ZM16.0001 16.5333C14.2321 16.5333 12.8001 15.1013 12.8001 13.3333C12.8001 11.5653 14.2321 10.1333 16.0001 10.1333C17.7681 10.1333 19.2001 11.5653 19.2001 13.3333C19.2001 15.1013 17.7681 16.5333 16.0001 16.5333ZM16.0001 15.4666C17.1787 15.4666 18.1334 14.512 18.1334 13.3333C18.1334 12.1546 17.1787 11.2 16.0001 11.2C14.8214 11.2 13.8667 12.1546 13.8667 13.3333C13.8667 14.512 14.8214 15.4666 16.0001 15.4666Z\",\n fill: \"#19305A\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgMyAccountIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/myAccountIcon.b930613b.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState, useContext } from \"react\";\n\nimport { Drawer } from \"antd\";\n\nimport { AppContext } from \"../../AppContext\";\nimport StyledButton from \"../Common/UIComponents/StyledButton\";\nimport SignOutConfirmation from \"../Modals/SignoutConfirmation\";\nimport CompanyList from \"./CompanyList\";\n\nimport { signOut, hasPermission, getAppVersion } from \"../../utils/common\";\n\nimport { ReactComponent as Close } from \"../../assets/images/close.svg\";\nimport { ReactComponent as LogoutIcon } from \"../../assets/images/logout.svg\";\nimport { ReactComponent as MyAccountIcon } from \"../../assets/images/myAccountIcon.svg\";\nimport { ReactComponent as Plus } from \"../../assets/images/onboarding/Plus.svg\";\n\nimport \"./DrawerNav.css\";\n\nexport default function DrawerNav({\n handleNavDrawer,\n history,\n navDrawer,\n userInfo,\n}) {\n const canAddCompany = hasPermission(\"add_company\");\n const [signOutConfirm, setSignOutConfirm] = useState(false);\n const [logoutHovered, steLogoutHovered] = useState(false);\n\n const appContext = useContext(AppContext);\n\n const onSignOutConfirm = () => {\n setSignOutConfirm(false);\n signOut(history, appContext);\n };\n\n const onSignOutCancel = () => {\n setSignOutConfirm(false);\n };\n\n const handleMenuMouseEnter = () => {\n steLogoutHovered(true);\n };\n\n const handleMenuMouseLeave = () => {\n steLogoutHovered(false);\n };\n\n const handleAddCompany = () => {\n history.push(\"/add-company\");\n handleNavDrawer();\n };\n\n const { user_name } = userInfo;\n const accountTitle = user_name ? `Hi, ${user_name}` : \"Hi\";\n return (\n \n {signOutConfirm && (\n \n )}\n
    \n
    \n \n {accountTitle}\n
    \n \n
    \n
    \n {\n history.push(\"/myaccount/profile\");\n handleNavDrawer();\n }}\n >\n My Profile\n \n {\n history.push(\"/myaccount/members\");\n handleNavDrawer();\n }}\n >\n Team Members\n \n setSignOutConfirm(true)}\n onMouseEnter={() => handleMenuMouseEnter()}\n onMouseLeave={() => handleMenuMouseLeave()}\n >\n \n Log Out\n \n
    \n
    \n
    COMPANY
    \n \n {canAddCompany\n && (\n
    \n \n \n Add Company\n \n
    \n )}\n
    \n

    {getAppVersion()}

    \n \n );\n}\n","import React from \"react\";\n\nimport {\n Layout, Menu, Row, Col, Avatar,\n} from \"antd\";\n\nimport DrawerNav from \"./DrawerNav\";\n\nimport { getUserCredentials, getTabsList } from \"../../utils/common\";\n\n// import DefaultNameIcon from \"../Common/DefaultNameIcon\";\nimport backIcon from \"../../assets/images/backIcon.png\";\nimport documentsIcon from \"../../assets/images/documents_2x.png\";\nimport enviromentIcon from \"../../assets/images/enviroment_2x.png\";\nimport indexIcon from \"../../assets/images/indexIcon_2x.png\";\nimport { ReactComponent as Logo } from \"../../assets/images/logo/ESVLogo.svg\";\nimport { ReactComponent as MyAccountIcon } from \"../../assets/images/myAccountIcon.svg\";\nimport productIcon from \"../../assets/images/product_2x.png\";\nimport \"./navbar.css\";\n\nimport { AppContext } from \"../../AppContext\";\n\nclass NavBar extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n currentRoute: null,\n activeNav: null,\n loading: true,\n isSideBarStyled: true,\n navs: [],\n accountHovered: false,\n navDrawer: false,\n };\n }\n\n componentDidMount = async () => {\n const { history } = this.props;\n const currentRoute = history.location.pathname;\n const navBarItem = [\n {\n key: \"1\",\n label: \"Sample Submission\",\n icon: \"\",\n link: \"/sample-submission\",\n fieldKey: \"sample-submission\",\n },\n {\n key: \"2\",\n label: \"Product\",\n icon: productIcon,\n link: \"/product/report\",\n fieldKey: \"product\",\n },\n {\n key: \"3\",\n label: \"Environment\",\n icon: enviromentIcon,\n link: \"/environment\",\n fieldKey: \"environment\",\n },\n {\n key: \"4\",\n label: \"Index\",\n icon: indexIcon,\n link: \"/index\",\n fieldKey: \"index\",\n },\n {\n key: \"5\",\n label: \"Documents\",\n icon: documentsIcon,\n link: \"/documents\",\n fieldKey: \"documents\",\n },\n ];\n const navs = [];\n const tabsList = getTabsList();\n navBarItem.forEach((item) => {\n if (tabsList?.includes(item.fieldKey)) {\n navs.push(item);\n }\n });\n this.setState({ navs }, () => this.handleActiveRoute(currentRoute));\n }\n\n componentDidUpdate() {\n const { history } = this.props;\n const { currentRoute } = this.state;\n const currRoute = history.location.pathname;\n\n if (currRoute !== currentRoute) {\n this.handleActiveRoute(currRoute);\n }\n }\n\n handleActiveRoute = (currentRoute) => {\n const { navs } = this.state;\n const navName = currentRoute.split(\"/\")[1];\n let activeNav = \"\";\n if (navName === \"myaccount\" || navName === \"onboarding\" || navName === \"add-company\") {\n activeNav = navName === \"onboarding\" ? \"1\" : navName;\n } else {\n activeNav = navs.find((item) => (item.fieldKey === navName))?.key;\n }\n\n this.setState({\n currentRoute,\n activeNav,\n loading: false,\n });\n };\n\n onBack = () => {\n const { history } = this.props;\n history.goBack();\n };\n\n onNavigation = (dataLink) => {\n const { history } = this.props;\n history.push(dataLink, {\n reRender: new Date(),\n });\n };\n\n onNavigationMyAccount = () => {\n const { history } = this.props;\n const dataLink = \"/myaccount/profile\";\n this.setState({\n activeNav: \"myaccount\",\n currentRoute: dataLink,\n });\n history.push(dataLink, {\n reRender: new Date(),\n });\n };\n\n navigation = (navs, product_link, sample_sub_link) => navs.map((nav) => {\n let link = nav.link;\n if (nav.label === \"Product\") {\n link = \"/product/report\";\n } else if (nav.label === \"Index\") {\n link = \"/index\";\n if (product_link) {\n link += `#${product_link}`;\n }\n } else if (nav.label === \"Sample Submission\" && sample_sub_link) {\n link = `/sample-submission/${sample_sub_link}`;\n }\n\n return ({\n id: nav.key,\n key: nav.key,\n \"data-link\": link,\n style: { border: \"none\" },\n label: (\n {nav.label}\n ),\n onClick: () => this.onNavigation(link),\n });\n });\n\n handleMenuMouseEnter = () => {\n this.setState({ accountHovered: true });\n }\n\n handleMenuMouseLeave = () => {\n this.setState({ accountHovered: false });\n }\n\n handleNavDrawer = () => {\n const { navDrawer } = this.state;\n this.setState({ navDrawer: !navDrawer });\n }\n\n render() {\n const {\n activeNav,\n loading,\n navs,\n isSideBarStyled,\n accountHovered,\n navDrawer,\n } = this.state;\n\n const {\n history, product_link, sample_sub_link,\n } = this.props;\n\n const userInfo = getUserCredentials();\n const { user_name, company_name } = userInfo;\n const accountTitle = user_name ? `Hi, ${user_name}` : \"Hi\";\n\n if (loading) return null;\n return (\n \n {!activeNav && isSideBarStyled ? (\n
    this.onBack(event)}>\n \"back_icon\"\n
    \n ) : (\n <>\n
    \n {isSideBarStyled && (\n <>\n \n \n
    \n history.push(\"/\")}\n icon={}\n size={{\n xs: 42, sm: 42, md: 42, lg: 42, xl: 48, xxl: 56,\n }}\n shape=\"square\"\n className=\"NavigationBar-Col__First__Avatar\"\n />\n
    \n \n \n
    \n \n
    \n \n \n {/* \n */}\n this.handleMenuMouseEnter()}\n onMouseLeave={() => this.handleMenuMouseLeave()}\n onClick={() => { this.handleNavDrawer(); }}\n >\n
    \n \n {accountTitle}\n \n \n {company_name}\n \n
    \n \n
    \n \n \n \n \n )}\n \n )}\n \n );\n }\n}\n\nNavBar.contextType = AppContext;\nexport default NavBar;\n","import React from \"react\";\n\n// images\nimport moreLightblue from \"../../assets/images/moreLightblue.svg\";\nimport myProfileIconActive from \"../../assets/images/myProfileIconActive.svg\";\nimport myProfileIconInactive from \"../../assets/images/myProfileIconInactive.svg\";\nimport teamMemberIconActive from \"../../assets/images/teamMemberIconActive.svg\";\nimport teamMemberIconInactive from \"../../assets/images/teamMemberIconInactive.svg\";\nimport savedLocationIconActive from \"../../assets/images/savedLocationIconActive.svg\";\nimport savedLocationIconInactive from \"../../assets/images/savedLocationIconInactive.svg\";\nimport faqIconActive from \"../../assets/images/faqIconActive.svg\";\nimport faqIconInactive from \"../../assets/images/faqIconInactive.svg\";\nimport helpIconActive from \"../../assets/images/helpIconActive.svg\";\nimport helpIconInactive from \"../../assets/images/helpIconInactive.svg\";\nimport plusIcon from \"../../assets/images/plus-lightblue.svg\";\nimport minusIcon from \"../../assets/images/minus-lightblue.svg\";\n\nexport const MyAccountMoreLightblueIcon = () => (\n
    \n \"\"\n
    \n);\n\nexport const MyProfileIconActive = () => (\n
    \n \"\"\n
    \n);\nexport const MyProfileIconInactive = () => (\n
    \n \"\"\n
    \n);\n\nexport const TeamMemberIconActive = () => (\n
    \n \"\"\n
    \n);\nexport const TeamMemberIconInactive = () => (\n
    \n \"\"\n
    \n);\n\nexport const SavedLocationIconActive = () => (\n
    \n \"\"\n
    \n);\nexport const SavedLocationIconInactive = () => (\n
    \n \"\"\n
    \n);\n\nexport const FaqIconActive = () => (\n
    \n \"\"\n
    \n);\nexport const FaqIconInactive = () => (\n
    \n \"\"\n
    \n);\n\nexport const HelpIconActive = () => (\n
    \n \"\"\n
    \n);\nexport const HelpIconInactive = () => (\n
    \n \"\"\n
    \n);\n\nexport const PlusIcon = () => (\n
    \n \"\"\n
    \n);\nexport const MinusIcon = () => (\n
    \n \"\"\n
    \n);\n","import React, { Component } from \"react\";\n\nimport { Layout, Menu } from \"antd\";\n\nimport {\n MyAccountMoreLightblueIcon,\n MyProfileIconActive, MyProfileIconInactive,\n TeamMemberIconActive, TeamMemberIconInactive,\n // SavedLocationIconActive, SavedLocationIconInactive,\n // FaqIconActive, FaqIconInactive,\n HelpIconActive, HelpIconInactive,\n} from \"./MyAccountIcon\";\n\nimport \"./myAccount.css\";\n\nconst { Sider } = Layout;\n\nclass MyAccountSideMenu extends Component {\n handleMenuClick = (event) => {\n const { handleMenuClick } = this.props;\n handleMenuClick(event);\n }\n\n render() {\n const {\n selectedMenuItem,\n } = this.props;\n\n const menuItems = [\n {\n key: \"1\",\n label: (\n <>\n {selectedMenuItem === \"1\" ? : }\n My Profile\n {selectedMenuItem === \"1\" && }\n \n ),\n },\n {\n key: \"2\",\n label: (\n <>\n {selectedMenuItem === \"2\" ? : }\n Team Members\n {selectedMenuItem === \"2\" && }\n \n ),\n },\n {\n key: \"3\",\n label: (\n <>\n {selectedMenuItem === \"3\" ? : }\n Help?\n {selectedMenuItem === \"3\" && }\n {/* {selectedMenuItem === \"3\" ? : }\n Saved Locations\n {selectedMenuItem === \"3\" && } */}\n \n ),\n },\n // {\n // key: \"4\",\n // label: (\n // <>\n // {selectedMenuItem === \"4\" ? : }\n // FAQs\n // {selectedMenuItem === \"4\" && }\n // \n // ),\n // },\n // {\n // key: \"5\",\n // label: (\n // <>\n // {selectedMenuItem === \"5\" ? : }\n // Help?\n // {selectedMenuItem === \"5\" && }\n // \n // ),\n // },\n ];\n\n return (\n \n this.handleMenuClick(event)}\n />\n \n );\n }\n}\n\nexport default MyAccountSideMenu;\n","import React, { Component } from \"react\";\nimport { Layout, Row, Col } from \"antd\";\nimport { Slide } from \"react-awesome-reveal\";\nimport { toast } from \"react-toastify\";\nimport \"./MyAccountHelp.css\";\n\nimport myAccountHelpPlaceholder from \"../../assets/images/myAccountHelpPlaceholder.svg\";\nimport MyAccountSideMenu from \"./MyAccountSideMenu\";\n\nimport {\n sendHelp,\n} from \"../../actions/myAccount\";\n\nclass MyAccountHelp extends Component {\n constructor(props) {\n super(props);\n this.state = {\n inputDesc: \"\",\n };\n }\n\n handleMenuClick = (event) => {\n const { history } = this.props;\n const key = event.key;\n if (key === \"1\") {\n history.push(\"/myaccount/profile\");\n } else if (key === \"2\") {\n history.push(\"/myaccount/members\");\n } else if (key === \"3\") {\n history.push(\"/myaccount/help\");\n // this.props.history.push(`/myaccount/setting`);\n }\n // else if (key === \"4\") {\n // this.props.history.push(`/myaccount/faq`);\n // } else if (key === \"5\") {\n // this.props.history.push(`/myaccount/help`);\n // }\n }\n\n handleInputDescChange = (value) => {\n this.setState({ inputDesc: value });\n }\n\n handleSenderClick = () => {\n const { inputDesc } = this.state;\n if (!inputDesc) {\n toast.error(\"Please enter some content for help.\");\n return;\n }\n this.apiSendHelp(inputDesc);\n }\n\n apiSendHelp = async (params) => {\n const result = await sendHelp(params);\n if (result && result.success) {\n this.setState({ inputDesc: \"\" });\n toast.success(\"Help sent successfully\");\n }\n };\n\n render() {\n const {\n inputDesc,\n } = this.state;\n\n return (\n
    \n \n \n
    \n
    \n \n
    \n Help\n
    \n
    \n\n \n
    \n \n \n
    \n
    \n Got Stuck? Don’t worry we are here for you!\n
    \n
    \n Tell us the issue you are facing! We will get back to you ASAP!\n
    \n this.handleInputDescChange(e.target.value)}\n placeholder=\"Enter your issue here\"\n />\n this.handleSenderClick()}\n className=\"myAccountEditBtn MyAccountHelp__Layout__Body__ColContent__SendBtn\"\n >\n Send\n \n
    \n \n \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n );\n }\n}\n\nexport default MyAccountHelp;\n","import axios from \"axios\";\nimport { API_URL } from \"../utils/Constant\";\nimport { getUserCredentials } from \"../utils/common\";\n\n// http://127.0.0.1:8000/api/editprofile/?\n// user_payload=uBYMoUVAAMhznC0N0gGV&\n// name=Arun&\n// email=arun@eatsafeverified.com&\n// contact=4084114789\nexport const updateProfileInfo = async (payload) => {\n try {\n const response = await axios.get(`${API_URL}/editprofile/`, {\n params: {\n name: payload.name || \"\",\n email: payload.email || \"\",\n contact: payload.contact || \"\",\n },\n });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n// http://127.0.0.1:8000/api/deletemember/?\n// user_payload=uBYMoUVAAMhznC0N0gGV&\n// email=harshini@eatsafeverified.com\nexport const deleteTeamMember = async (payload) => {\n try {\n const user = await getUserCredentials();\n const response = await axios.patch(`${API_URL}/membereditdelete/`, {\n disableInterceptor: true,\n company_name: user.company_name,\n member_user_payload: payload.user_payload, // member's user_payload not the logged in user's (admin)\n email: payload.email,\n action_category: \"delete\",\n });\n const data = await response.data;\n if (data.message === \"Success\") {\n return { success: true, ...data };\n }\n return { success: false, ...data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const editMemberRole = async (payload) => {\n try {\n const user = await getUserCredentials();\n const response = await axios.patch(`${API_URL}/membereditdelete/`, {\n disableInterceptor: true,\n company_name: user.company_name,\n member_user_payload: payload.user_payload, // member's user_payload not the logged in user's (admin)\n email: payload.email,\n action_category: \"edit\",\n new_title: payload.new_title,\n });\n const data = await response.data;\n // console.log(\"==== deleteTeamMember data\", data);\n\n if (data.message === \"Success\") {\n return { success: true, ...data };\n }\n return { success: false, ...data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n// http://127.0.0.1:8000/api/companyuser/?\n// company_domain=eatsafeverified.com&\n// user_payload=dRYqmmTgLvzicql\nexport const getMembersInfo = async () => {\n try {\n const response = await axios.get(`${API_URL}/companyuser/`);\n const data = response.data;\n let res = { members: [] };\n\n if (data?.result?.user_list?.length > 0) {\n const { user_list } = data.result;\n const temp = [];\n for (let i = 0; i < user_list.length; i++) {\n if (!user_list[i].user_email.includes(\"esv-\")) {\n temp.push(user_list[i]);\n }\n }\n res = { members: temp };\n }\n\n return { success: true, ...res };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n// get card list card\nexport const getSettingInfo = async () => {\n try {\n // const user = await getUserCredentials();\n // const response = await axios.get(`${API_URL}/cardlibrary/`, {\n // user_payload: user.user_payload || \"\",\n // category: \"Add\",\n // list: [{\n // card_name: payload.name,\n // description: payload.description,\n // data_link: payload.data_link,\n // table: {\n // content_type: \"22\",\n // title: \"\",\n // sub_category: payload.table\n // },\n // linked_list: payload.linked_list,\n // tags: payload.tags\n // }]\n // });\n // const data = await response.data;\n\n // var res = { cardList: [] };\n // if (data && data.result && data.result.length > 0) {\n // res = { cardList: data.result };\n // }\n\n const res = {\n setting: {\n address: \"\",\n },\n };\n // if (data && data.length > 0) {\n // var result = data[0].result;\n // }\n\n res.setting = {\n address: \"Golden Gate Bridge, San Francisco, CA\",\n };\n\n return { success: true, ...res };\n } catch (e) {\n // console.log(\"error from updateProduct\", e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n// http://127.0.0.1:8000/api/help/\n// {\n// \"user_payload\" : \"uBYMoUVAAMhznC0N0gGV\",\n// \"query\" : \"How to un link a report on product reports tab\"\n// }\nexport const sendHelp = async (payload) => {\n try {\n const params = {\n query: payload,\n };\n const response = await axios.post(`${API_URL}/help/`, params);\n const data = await response.data;\n\n return { success: true, ...data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n","import React from \"react\";\n\nexport default function NameAndPhone({\n showEdit,\n name,\n phone,\n profile,\n handleTextChange,\n handleSaveCancelClick,\n handleSaveEditClick,\n handleEditClick,\n loading,\n}) {\n if (showEdit) {\n return (\n <>\n
    \n
    \n name\n
    \n
    \n handleTextChange(event, \"name\")}\n />\n
    \n
    \n PHONE\n
    \n
    \n handleTextChange(event, \"phone\")}\n />\n
    \n
    \n
    \n handleSaveCancelClick()}\n className=\"myAccountCancelBtn\"\n >\n Cancel\n \n handleSaveEditClick()}\n className=\"myAccountEditBtn my-profile-submit-button\"\n >\n Submit\n \n
    \n \n );\n }\n\n return (\n
    \n
    \n name\n
    \n \n handleEditClick(\"all\")}\n >\n Edit profile\n
    \n
    \n PHONE\n
    \n \n
    \n );\n}\n","import React from \"react\";\nimport eyeClosedIcon from \"../../../assets/images/ph_eye-closed-fill@2x.png\";\nimport eyeOpenedIcon from \"../../../assets/images/ph_eye-opened-fill@2x.png\";\n\nexport default function Password({\n showEdit,\n passType,\n newPassType,\n confirmedPassType,\n showHidePassword,\n handleSaveCancelClick,\n handleSaveEditClick,\n handleEditClick,\n loading,\n}) {\n if (showEdit) {\n return (\n <>\n
    \n
    \n Password\n
    \n
    \n
    \n
    \n Enter Old Password\n
    \n \n showHidePassword(\"passType\", passType)}\n />\n
    \n\n
    \n
    \n
    New Password
    \n \n showHidePassword(\"newPassType\", newPassType)}\n />\n
    \n
    \n
    Confirm New Password
    \n \n showHidePassword(\"confirmedPassType\", confirmedPassType)}\n />\n
    \n
    \n
    \n Must contain: at least 1 number, 1 uppercase, 1 lowercase letter, at least 6 characters, no spaces.\n
    \n
    \n
    \n
    \n handleSaveCancelClick()}\n className=\"myAccountCancelBtn\"\n >\n Cancel\n \n handleSaveEditClick()}\n className=\"myAccountEditBtn my-profile-submit-button\"\n >\n Submit\n \n
    \n \n );\n }\n\n return (\n
    \n
    \n Password\n
    \n \n handleEditClick(\"password\")}\n >\n Change password\n
    \n
    \n );\n}\n","import { initializeApp } from \"firebase/app\";\nimport \"firebase/auth\";\n\nconst firebaseConfig = {\n apiKey: process.env.REACT_APP_FIREBASE_APIKEY,\n};\n\nconst app = initializeApp(firebaseConfig);\nconst firebaseAuth = app.auth();\nexport default firebaseAuth;\n","import axios from \"axios\";\n\nimport { setUserCredentials } from \"../utils/common\";\nimport { API_URL_AUTH } from \"../utils/Constant\";\nimport firebaseAuth from \"../utils/firebase\";\n\n/* BUG\n* As of August 1, 2023, the Firebase authentication method is not always reliable.\n* For new users, the response is often empty. However, it works fine for existing users.\n\n* Manually check if an email exists with the fetchSignInMethodsForEmail method.\n* This method checks if the given email already has an account associated with it.\n*/\nexport const validEmail = async (email, callback) => {\n firebaseAuth\n .fetchSignInMethodsForEmail(email)\n .then((signInMethods) => {\n if (signInMethods && signInMethods.length > 0) {\n callback({ success: true });\n } else {\n callback({ success: false });\n }\n })\n .catch((error) => {\n callback({\n success: false,\n message: error.message || \"something went wrong\",\n });\n });\n};\n\nexport const getUserDetailsByToken = async (idToken) => {\n try {\n const params = {\n token: idToken,\n };\n const result = await axios.get(`${API_URL_AUTH}/login/`, { params });\n const data = result.data;\n return {\n success: data.message === \"Success\",\n data: (data && data.result) || {},\n message: data.message,\n };\n } catch (e) {\n const message = e.response.data.message ?? e.message;\n return {\n success: false,\n message: message || \"Something went wrong\",\n };\n }\n};\n\nexport const signIn = async (email, password, rememberMe, appContext, callback) => {\n firebaseAuth\n .signInWithEmailAndPassword(email, password)\n .then(async (response) => {\n const { user } = response;\n const idToken = response.user._lat;\n const result = await getUserDetailsByToken(idToken);\n if (result.success) {\n const data = {\n ...result.data,\n company_name: result.data.company_name,\n uid: user.uid || \"\",\n email: user.email || \"\",\n phoneNumber: user.phoneNumber || \"\",\n displayName: user.displayName || \"\",\n photoURL: user.photoURL || \"\",\n rememberMe,\n idToken,\n };\n setUserCredentials(rememberMe ? \"local\" : \"session\", data, appContext);\n callback({ success: true, data });\n } else {\n callback(result);\n }\n })\n .catch((error) => {\n callback({\n success: false,\n message: error.message || \"something went wrong\",\n });\n });\n};\n\nexport const sendForgotPasswordEmail = async (email, callback) => {\n firebaseAuth\n .sendPasswordResetEmail(email)\n .then(async (response) => {\n callback({ success: true, data: response });\n })\n .catch((error) => {\n callback({\n success: false,\n message: error.message || \"Something went wrong\",\n });\n });\n};\n\nexport const changePwd = async (password, callback) => {\n const user = firebaseAuth.currentUser;\n user\n .updatePassword(password)\n .then(async () => {\n callback({ success: true });\n })\n .catch((error) => {\n callback({\n success: false,\n message: error.message || \"something went wrong\",\n });\n });\n};\n\n/**\n * If companyDomain and companyName empty, return list of company names grouped by domain, otherwise return user_payload\n * @param {string} username user name\n * @param {string} password password\n * @param {String} companyDomain company domain name\n * @param {String} companyName company name\n * @returns {Object} { success, user_payload }\n */\nexport const esvSupportLogin = async (username, password, companyDomain, companyName) => {\n try {\n const params = {\n user: username,\n password,\n company_domain: companyDomain,\n company_name: companyName,\n };\n\n const result = await axios.get(`${API_URL_AUTH}/getpayload/`, { params });\n\n if (result.data.message === \"Success\") {\n return {\n success: true,\n data: result.data,\n };\n }\n return { success: false, data: result.data.message };\n } catch (e) {\n const { response } = e;\n return { success: false, data: response?.data?.message || \"Something went wrong.\" };\n }\n};\n","import React, { Component } from \"react\";\nimport { Layout } from \"antd\";\nimport { toast } from \"react-toastify\";\nimport { Slide } from \"react-awesome-reveal\";\nimport \"../myAccount.css\";\nimport \"./MyProfile.css\";\nimport MyAccountSideMenu from \"../MyAccountSideMenu\";\nimport NameAndPhone from \"./NameAndPhone\";\nimport Password from \"./Password\";\nimport { getUserCredentials, setUserCredentials } from \"../../../utils/common\";\n\nimport {\n signIn,\n changePwd,\n} from \"../../../actions/login\";\n\nimport {\n updateProfileInfo,\n} from \"../../../actions/myAccount\";\n\nimport { validatePassword, validatePhoneNumber } from \"../../Common/utils/validationUtils\";\nimport { AppContext } from \"../../../AppContext\";\n\nclass MyProfile extends Component {\n constructor(props) {\n super(props);\n this.state = {\n showEdit: \"\",\n profile: {\n name: \"\",\n phone: \"\",\n email: \"\",\n },\n name: \"\",\n phone: \"\",\n\n passType: \"password\",\n newPassType: \"password\",\n confirmedPassType: \"password\",\n loading: false,\n };\n }\n\n componentDidMount() {\n // const user = getUserCredentials();\n const myEmail = getUserCredentials().user_email;\n const myName = getUserCredentials().user_name;\n const myPhone = getUserCredentials().user_contact;\n const profile = {\n name: myName ?? \"\",\n phone: myPhone ?? \"\",\n email: myEmail ?? \"\",\n };\n this.setState({ profile });\n }\n\n handleMenuClick = (event) => {\n const { history } = this.props;\n const key = event.key;\n if (key === \"1\") {\n history.push(\"/myaccount/profile\");\n } else if (key === \"2\") {\n history.push(\"/myaccount/members\");\n } else if (key === \"3\") {\n history.push(\"/myaccount/help\");\n // this.props.history.push(`/myaccount/setting`);\n }\n // else if (key === \"4\") {\n // this.props.history.push(`/myaccount/faq`);\n // } else if (key === \"5\") {\n // this.props.history.push(`/myaccount/help`);\n // }\n }\n\n handleTextChange = (event, key) => {\n this.setState({ [key]: event.target.value });\n }\n\n handleEditClick = (flag) => {\n const { profile } = this.state;\n if (flag === \"all\") {\n this.setState({\n showEdit: flag,\n name: profile.name,\n phone: profile.phone,\n });\n } else if (flag === \"password\") {\n this.setState({ showEdit: flag });\n }\n }\n\n showHidePassword = (key, value) => {\n this.setState({ [key]: value === \"text\" ? \"password\" : \"text\" });\n }\n\n handleSaveEditClick = () => {\n const {\n showEdit, profile, name, phone,\n } = this.state;\n this.setState({ loading: true });\n if (showEdit === \"password\") {\n const passwordElm = document.getElementById(\"myaccountpassword\");\n const newpasswordElm = document.getElementById(\"myaccountnewpassword\");\n const confirmedPasswordElm = document.getElementById(\"myaccountconfirmedPassword\");\n if (!passwordElm || !newpasswordElm || !confirmedPasswordElm) { return; }\n\n const password = passwordElm.value;\n const newpassword = newpasswordElm.value;\n const confirmedPassword = confirmedPasswordElm.value;\n\n const email = profile.email;\n\n if (!password) {\n toast.error(\"Please enter previous password.\");\n this.setState({ loading: false });\n return;\n }\n if (newpassword !== confirmedPassword) {\n toast.error(\"Those new passwords didn't match. Try again.\");\n this.setState({ loading: false });\n return;\n }\n if (!newpassword || !confirmedPassword) {\n toast.error(\"The new password cannot be empty. Try again.\");\n this.setState({ loading: false });\n return;\n }\n if (!validatePassword(newpassword)) {\n toast.error(\"The new password does not meet the requirements.\");\n this.setState({ loading: false });\n return;\n }\n const { rememberMe } = getUserCredentials();\n // api call to login the user to check the current psw\n signIn(email, password, rememberMe, this.context, (result) => {\n if (!result.success) {\n this.setState({ loading: false });\n toast.error(result.message.includes(\"invalid\") ? \"The old password is invalid.\" : result.message);\n return;\n }\n changePwd(newpassword, ({ success }) => {\n this.setState({ loading: false });\n if (success) {\n toast.success(\"Password updated successfully\");\n this.setState({\n showEdit: \"\",\n loading: false,\n });\n } else {\n toast.error(\"Please try again later\");\n this.setState({\n loading: false,\n });\n }\n });\n });\n } else if (showEdit === \"all\") {\n if (phone.trim() && !validatePhoneNumber(phone.trim())) {\n this.setState({ loading: false });\n toast.error(\"Phone number is invalid.\");\n return;\n }\n const params = {\n name,\n contact: phone.trim(),\n email: profile.email,\n };\n\n // api call to edit all and get the new profile\n this.apiUpdateMyProfile(params).then((res) => {\n if (res === 200) {\n const user_details = getUserCredentials();\n user_details.user_name = name;\n user_details.user_contact = phone;\n setUserCredentials(null, user_details, this.context);\n profile.phone = phone;\n profile.name = name;\n this.setState({\n showEdit: \"\",\n phone: \"\",\n name: \"\",\n profile,\n loading: false,\n });\n } else {\n toast.error(\"Unable to update info. Please try again later.\");\n this.setState({\n loading: false,\n });\n }\n });\n }\n }\n\n apiUpdateMyProfile = async (params) => {\n const response = await updateProfileInfo(params);\n if (response && response.success) {\n return 200;\n } return null;\n }\n\n handleSaveCancelClick = () => {\n this.setState({\n showEdit: \"\",\n phone: \"\",\n name: \"\",\n });\n }\n\n render() {\n const {\n showEdit,\n profile, name, phone,\n passType, newPassType,\n confirmedPassType,\n loading,\n } = this.state;\n\n return (\n
    \n \n \n
    \n
    \n \n
    \n My Profile\n
    \n
    \n\n \n
    \n \n
    \n
    \n Email\n
    \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n );\n }\n}\n\nMyProfile.contextType = AppContext;\nexport default MyProfile;\n","import React from \"react\";\nimport {\n Input,\n Select,\n Tooltip,\n} from \"antd\";\nimport \"./AddMemberModalInput.css\";\nimport infoIcon from \"../../../assets/images/product/infoCircleBlue.png\";\n\nexport default function AddMemberModalInput({\n value,\n label,\n field,\n placeholder,\n onChange,\n handleOnBlur,\n innerRef,\n disabled,\n suffix,\n useDropdown,\n dropdownOptions,\n tooltipTitle,\n}) {\n const onBlur = () => {\n if (handleOnBlur) {\n handleOnBlur(value);\n }\n };\n\n const handleOnChange = (e) => {\n let input_value = e.target ? e.target.value : e;\n if (field === \"email\") {\n input_value = input_value.split(\"@\")[0];\n }\n if (onChange) {\n onChange(input_value);\n }\n };\n\n return (\n
    \n
    \n {label}\n {tooltipTitle && (\n \n \n\n \n )}\n
    \n {!useDropdown && (\n \n )}\n {useDropdown && (\n \n )}\n
    \n );\n}\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport { every } from \"lodash\";\nimport { toast } from \"react-toastify\";\nimport { checkUser, getUserCredentials } from \"../../../utils/common\";\nimport { validateEmail, validatePhoneNumber } from \"../../Common/utils/validationUtils\";\nimport { ReactComponent as LoadingDots } from \"../../../assets/images/common/LoadingDots.svg\";\nimport \"./AddMemberModal.css\";\nimport AddMemberModalInput from \"./AddMemberModalInput\";\n\nclass AddMemberModal extends React.Component {\n inputRefs = React.createRef();\n\n constructor(props) {\n super(props);\n this.state = {\n name: \"\",\n phone: \"\",\n email: \"\",\n role: \"Member\", // set default value for role to Member/Viewer\n disabled: {\n name: false,\n phone: false,\n },\n userCheckInProgress: true, // set to true by default so send invite button is disabled until userCheckInProgress has been called\n isSendingInvite: false,\n user: getUserCredentials(),\n };\n this.inputRefs = {\n name: React.createRef(),\n email: React.createRef(),\n phone: React.createRef(),\n };\n }\n\n/**\n * Use email to check if user exists and is signed up already,\n * if yes, autofill phone and name\n * @param {String} emailVal user input for email\n */\nhandleUserCheck = async (emailVal) => {\n const {\n email, userCheckInProgress,\n } = this.state;\n if (emailVal !== email || userCheckInProgress) {\n const { user } = this.state;\n const company_domain = user.company_domain;\n const emailWithDomain = `${emailVal.trim()}@${company_domain}`.trim();\n const {\n success, user_name, phone_number,\n } = await checkUser(emailWithDomain);\n\n if (success) {\n this.setState({\n name: user_name,\n phone: phone_number,\n email: emailVal.trim(),\n disabled: { name: user_name.trim(), phone: phone_number.trim() },\n });\n } else {\n this.setState({\n name: \"\",\n phone: \"\",\n role: \"Member\",\n email: emailVal.trim(),\n disabled: { name: false, phone: false, role: false },\n });\n }\n }\n\n this.setState({ userCheckInProgress: false });\n}\n\n onConfirm = () => {\n const {\n name: nameRef, phone: phoneRef, email: emailRef,\n } = this.inputRefs;\n const { role } = this.state;\n const name = nameRef.current.input.value.trim();\n const phone = phoneRef.current.input.value.trim();\n const { onConfirm } = this.props;\n const { user } = this.state;\n const company_domain = user.company_domain;\n const companyname = user.company_name;\n if (company_domain === undefined || !company_domain) {\n toast.error(\"Company domain is undefined\");\n return;\n }\n if (companyname === undefined || !companyname) {\n toast.error(\"Company name is undefined\");\n return;\n }\n if (!role) {\n toast.error(\"Please select a role.\");\n return;\n }\n const email = `${emailRef.current.input.value.trim()}@${company_domain}`.trim();\n if (!name || !email) {\n toast.error(\"Please add name and email.\");\n return;\n }\n if (!validateEmail(email)) {\n toast.error(\"Please enter a valid email.\");\n return;\n }\n if (phone && !validatePhoneNumber(phone)) {\n toast.error(\"Please enter a valid phone number.\");\n return;\n }\n this.setState({ isSendingInvite: true });\n const params = {\n name,\n phone,\n email,\n role,\n // companyname,\n // webBaseURL,\n };\n onConfirm(params, (val) => this.setState({ isSendingInvite: val }));\n }\n\n render() {\n const {\n name, phone, email, role, isSendingInvite, disabled, userCheckInProgress, user,\n } = this.state;\n const { onClose } = this.props;\n // const webURL = window.location.origin;\n const requiredInputsFilledOut = !!email && !!role && !!name;\n return (\n \n
    \n \n New Member\n
    \n \n Email\n {\" \"}\n *\n \n )}\n placeholder=\"Enter Email Username\"\n field=\"email\"\n value={email}\n onChange={(val) => { this.setState({ userCheckInProgress: true, email: val }); }}\n handleOnBlur={this.handleUserCheck}\n innerRef={this.inputRefs.email}\n disabled={false}\n suffix={`@${user.company_domain}`}\n />\n \n Role\n {\" \"}\n *\n \n )}\n useDropdown\n placeholder=\"Select a role\"\n field=\"role\"\n value={role}\n onChange={(value) => { this.setState({ role: value }); }}\n disabled={disabled.role}\n dropdownOptions={[\n { value: \"Member\", label: \"Member\" },\n { value: \"Editor\", label: \"Editor\" },\n ]}\n tooltipTitle={(\n \n Editor: \n CAN view/edit data, submit samples, edit specs, but CANNOT invite/delete members.\n
    \n Member: \n CAN view data and submit samples, but CANNOT edit sample tests, edit specs and invite/delete members.\n
    \n )}\n />\n \n Name\n {\" \"}\n *\n \n )}\n placeholder=\"Enter Name\"\n field=\"name\"\n onChange={(val) => this.setState({ name: val })}\n value={name}\n innerRef={this.inputRefs.name}\n disabled={disabled.name}\n />\n \n Phone\n \n )}\n placeholder=\"Enter Phone Number\"\n value={phone}\n innerRef={this.inputRefs.phone}\n disabled={disabled.phone}\n onChange={(val) => this.setState({ phone: val })}\n />\n
    \n onClose()}\n className={`AddMemberModal__CancelBtn ${isSendingInvite ? \"AddMemberModal__CancelBtn--disabled\" : \"\"}`}\n disabled={isSendingInvite}\n >\n Cancel\n \n\n {isSendingInvite\n ? (\n {}}\n >\n Sending Invite\n \n \n )\n : (\n this.onConfirm()}\n className=\"addMemberSendInviteBtn\"\n disabled={userCheckInProgress || !every(requiredInputsFilledOut)}\n >\n Send Invite\n \n )}\n
    \n
    \n \n );\n }\n}\n\nexport default AddMemberModal;\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./DeleteMemberModal.css\";\n\nconst DeleteMemberModal = ({\n onConfirm,\n onClose,\n}) => (\n onClose()}\n width=\"448px\"\n wrapClassName=\"DeleteMemberModel\"\n className=\"DeleteMemberModelContainer\"\n >\n
    \n \n Delete Member Confirmation\n
    \n \n All data related to the member will be removed from this company. Are you sure you want to proceed?\n
    \n
    \n onClose()}\n className=\"deleteMemberCancelBtn\"\n >\n No\n \n onConfirm()}\n className=\"deleteMemberConfirmBtn\"\n >\n Yes\n \n
    \n
    \n \n);\n\nexport default DeleteMemberModal;\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgRepeatIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n height: \"1em\",\n viewBox: \"0 0 512 512\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H464c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0s-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3s163.8-62.5 226.3 0L386.3 160z\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgRepeatIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/RepeatIcon.d74e9a46.svg\";\nexport { ForwardRef as ReactComponent };","import { Tooltip } from \"antd\";\nimport React from \"react\";\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport { ReactComponent as RepeatIcon } from \"../../../assets/images/my-account/RepeatIcon.svg\";\nimport \"./ResendInviteButton.css\";\n\nexport default function ResendInviteButton({\n handleResendInvite,\n userInfo,\n loading,\n disabled,\n}) {\n return (\n \n {loading\n ? \n : (\n handleResendInvite(userInfo)}\n />\n )}\n \n );\n}\n","import axios from \"axios\";\nimport { AES } from \"crypto-js\";\nimport { getUserCredentials } from \"../utils/common\";\nimport { API_URL, AES_128_BIT_KEY } from \"../utils/Constant\";\n\n/**\n * Get company name\n * @param {String} customerID\n * @return {Object} {success, contact_name, email, company, address, city, zip, state, telephone}\n */\nexport const getCompanyName = async (customerID) => {\n try {\n const resp = await axios.get(`${API_URL}/customerinfo/`, {\n params: { customer_id: customerID },\n });\n\n const result = {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n company_name: resp.data.result.company,\n };\n\n return result;\n } catch (e) {\n // console.log(\"error from getCompanyName\", e);\n // getViewAsPerStatusCode(e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/** Signup for admin, or member\n * @param {Object} payload\n * @returns {Object} {success, message}\n */\nexport const signupAdminOrMember = async (payload) => {\n try {\n const resp = await axios.post(`${API_URL}/usersignup/`, { ...payload });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n };\n } catch (e) {\n const message = e.response?.data?.message || \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Send invite to admin\n * @param {Object} payload\n * @return {Object} {success, message}\n */\nexport const inviteAdmin = async (payload) => {\n try {\n const resp = await axios.post(`${API_URL}/adminsignupinvite/`, {\n ...payload,\n });\n\n return {\n success: resp.data.message === \"Success\",\n message: resp.data.message,\n };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\n/**\n * Send invite to member\n * @param {Object} payload { name, email, phone }\n * @return {Object} {success, message}\n */\nexport const inviteMember = async (payload) => {\n try {\n const user = getUserCredentials();\n const companyName = encodeURIComponent(user.company_name);\n const username = encodeURIComponent(payload.name);\n const useremail = encodeURIComponent(payload.email);\n const phone = encodeURIComponent(payload.phone);\n const queryStrings = `company_name=${companyName}&user_name=${username}&email_address=${useremail}&phone=${phone}`;\n const encryptedQueryStrings = AES.encrypt(queryStrings, AES_128_BIT_KEY).toString();\n const link = `${window.location.origin}/signup/member?${encryptedQueryStrings}`;\n\n const params = {\n name: payload.name,\n email: payload.email,\n contact: payload.phone,\n user_title: payload.role,\n link,\n };\n\n const response = await axios.post(`${API_URL}/invitemember/`, { ...params });\n return {\n success: response.data.message === \"Success\",\n message: response.data.message,\n };\n } catch (e) {\n const message = e.response?.data?.message || \"Unable to add member.\";\n return { success: false, message };\n }\n};\n","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgTrashIconLightblue = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10.334 2.99992H13.1673C13.4435 2.99992 13.6673 3.22378 13.6673 3.49992V3.83325C13.6673 4.10939 13.4435 4.33325 13.1673 4.33325H12.334V12.9999C12.334 13.1767 12.2637 13.3463 12.1387 13.4713C12.0137 13.5963 11.8441 13.6666 11.6673 13.6666H2.33398C2.15717 13.6666 1.9876 13.5963 1.86258 13.4713C1.73756 13.3463 1.66732 13.1767 1.66732 12.9999V4.33325H0.833985C0.557842 4.33325 0.333984 4.10939 0.333984 3.83325V3.49992C0.333984 3.22378 0.557842 2.99992 0.833984 2.99992H3.66732V0.999919C3.66732 0.823108 3.73756 0.653538 3.86258 0.528514C3.9876 0.40349 4.15717 0.333252 4.33398 0.333252H9.66732C9.84413 0.333252 10.0137 0.40349 10.1387 0.528514C10.2637 0.653538 10.334 0.823108 10.334 0.999919V2.99992ZM11.0007 4.33325H3.00065V12.3333H11.0007V4.33325ZM5.00065 1.66659V2.99992H9.00065V1.66659H5.00065Z\",\n fill: \"#26A1D2\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11.0007 4.33325H3.00065V12.3333H11.0007V4.33325Z\",\n fill: \"white\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgTrashIconLightblue, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/trashIconLightblue.84f3bcbe.svg\";\nexport { ForwardRef as ReactComponent };","import React, { Component } from \"react\";\n\nimport { Layout, Select, Tooltip } from \"antd\";\nimport { Slide } from \"react-awesome-reveal\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\nimport \"./TeamMember.css\";\n\nimport { AppContext } from \"../../../AppContext\";\nimport MyAccountSideMenu from \"../MyAccountSideMenu\";\nimport AddMemberModal from \"./AddMemberModal\";\nimport DeleteMemberModal from \"./DeleteMemberModal\";\nimport ResendInviteButton from \"./ResendInviteButton\";\n\nimport { hasPermission } from \"../../../utils/common\";\n\nimport {\n getMembersInfo,\n deleteTeamMember,\n editMemberRole,\n} from \"../../../actions/myAccount\";\nimport { inviteMember } from \"../../../actions/signup\";\n\nimport infoIcon from \"../../../assets/images/product/infoCircleBlue.png\";\nimport { ReactComponent as TrashCan } from \"../../../assets/images/trashIconLightblue.svg\";\n\nclass TeamMember extends Component {\n constructor(props) {\n super(props);\n this.state = {\n loading: true,\n editingRoleKey: \"\", // user_payload of user that is changing roles\n resendingInviteKey: \"\", // user_payload of user who is being resent an invite\n members: [],\n showDeleteMemberModal: false,\n deletedMember: null,\n showAddMemberModal: false,\n };\n }\n\n componentDidMount() {\n this.apiGetMembersInfo().then((members) => {\n this.setState({ loading: false, members });\n });\n }\n\n apiGetMembersInfo = async () => {\n const response = await getMembersInfo();\n if (response && response.success) {\n return response.members;\n } return null;\n }\n\n handleMenuClick = (event) => {\n const key = event.key;\n const { history } = this.props;\n if (key === \"1\") {\n history.push(\"/myaccount/profile\");\n } else if (key === \"2\") {\n history.push(\"/myaccount/members\");\n } else if (key === \"3\") {\n history.push(\"/myaccount/help\");\n // this.props.history.push(`/myaccount/setting`);\n }\n // else if (key === \"4\") {\n // this.props.history.push(`/myaccount/faq`);\n // } else if (key === \"5\") {\n // this.props.history.push(`/myaccount/help`);\n // }\n }\n\n handleShowAddMemberModal = () => {\n this.setState({ showAddMemberModal: true });\n }\n\n handleCloseAddMemberModal = () => {\n this.setState({ showAddMemberModal: false });\n }\n\n handleShowDeleteMemberModal = (row) => {\n const { members } = this.state;\n this.setState({ showDeleteMemberModal: true, deletedMember: members[row] });\n }\n\n handleCloseDeleteMemberModal = () => {\n this.setState({ showDeleteMemberModal: false, deletedMember: null });\n }\n\n handleConfirmDeleteMember = () => {\n const { deletedMember } = this.state;\n const { user_email, user_payload } = deletedMember;\n const payload = {\n email: user_email,\n user_payload,\n };\n deleteTeamMember(payload).then((response) => {\n if (response && response.success) {\n this.apiGetMembersInfo().then((members) => {\n this.setState({ members });\n });\n this.handleCloseDeleteMemberModal();\n toast.success(\"Member successfully deleted.\");\n } else if (!response || !response.message) {\n toast.error(\"Unable to delete member.\");\n } else {\n toast.error(response.message);\n }\n });\n }\n\n// api to add member\nhandleConfirmAddMember = (params, setLoadingState) => inviteMember(params).then((response) => {\n setLoadingState(false);\n if (response.success) {\n this.apiGetMembersInfo().then((members) => {\n this.setState({ members });\n });\n this.handleCloseAddMemberModal();\n toast.success(\"Member successfully added.\");\n } else {\n toast.error(response.message);\n }\n})\n\n/**\n * Call inviteMember to send user another invite email\n * @param {Object} userInfo { user_email, user_contact, user_name, user_payload, user_title, status }\n */\nhandleResendInvite = async (userInfo) => {\n const {\n user_email, user_name, user_contact, user_payload,\n } = userInfo;\n this.setState({ resendingInviteKey: user_payload });\n const payload = {\n name: user_name, email: user_email, phone: user_contact,\n };\n const { success } = await inviteMember(payload);\n if (success) {\n toast.success(\"Invitation successfully resent\");\n } else {\n toast.error(\"Unable to resend invitation\");\n }\n this.setState({ resendingInviteKey: \"\" });\n}\n\n/** Make an api call to change a user's role\n * @param {*} value\n * @param {*} item\n */\nhandleChangeRole = async (value, item) => {\n const { user_payload, user_email } = item;\n this.setState({\n editingRoleKey: user_payload,\n });\n\n const payload = {\n user_payload,\n email: user_email,\n new_title: value,\n };\n\n const { success, message } = await editMemberRole(payload);\n if (success) {\n this.apiGetMembersInfo().then((refreshed_members_list) => {\n this.setState({ members: refreshed_members_list, editingRoleKey: \"\" });\n });\n } else {\n toast.error(message);\n this.setState({\n editingRoleKey: \"\",\n });\n }\n}\n\n/**\n * Display different text based on the cellText and title\n * @param {*} title\n * @param {*} memberIsAdmin\n * @param {*} cellText\n * @param {*} i\n * @param {*} item\n * @returns\n */\nshowCellContent = (title, cellText, i, item) => {\n const { editingRoleKey, resendingInviteKey } = this.state;\n const memberIsAdmin = item.user_title === \"Admin\";\n const isPending = item.status === \"0\";\n const disableInteraction = editingRoleKey || resendingInviteKey;\n\n if (title !== \"Delete\" && title !== \"Role\" && title !== \"Status\") {\n return ({cellText});\n }\n\n /** Show the trashcan icon for non-admin users */\n if (title === \"Delete\" && !memberIsAdmin) {\n return (\n this.handleShowDeleteMemberModal(i)}\n />\n );\n }\n\n /** Show the resend invite button if the logged in user is admin, the row is for a non admin user, and status is pending */\n if (title === \"Status\" && isPending && hasPermission(\"add_member\") && !memberIsAdmin) {\n return (\n <>\n {cellText}\n \n \n );\n }\n\n if (title === \"Role\" && !memberIsAdmin) {\n /** Allow editing user's role for the Admin role */\n if (hasPermission(\"change_member_role\")) {\n return (\n this.handleChangeRole(val, item, i)}\n options={[\n { value: \"Member\", label: \"Member\" },\n { value: \"Editor\", label: \"Editor\" },\n ]}\n />\n );\n }\n /** Show the role text for non-admin role */\n return ({cellText});\n }\n\n return ({cellText});\n}\n\nrender() {\n const {\n loading,\n members,\n showAddMemberModal,\n showDeleteMemberModal,\n } = this.state;\n\n const columns = [\n { title: \"Name\", key: \"user_name\", permission: \"no_permission\" },\n { title: \"Email Address\", key: \"user_email\", permission: \"no_permission\" },\n { title: \"Phone No.\", key: \"user_contact\", permission: \"no_permission\" },\n { title: \"Status\", key: \"status\", permission: \"view_member_status\" },\n { title: \"Role\", key: \"user_title\", permission: \"change_member_role\" },\n { title: \"Delete\", align: \"center\", permission: \"delete_member\" },\n ];\n\n const authorizedColumns = columns.reduce((arr, item) => {\n if (hasPermission(item.permission)) {\n arr.push(item);\n }\n return arr;\n }, []);\n\n const statusMap = { 0: \"Pending\", 1: \"Active\" };\n\n return (\n
    \n {showDeleteMemberModal && (\n \n )}\n\n {showAddMemberModal && (\n \n )}\n\n \n \n
    \n {!loading && (\n
    \n \n
    \n Team Members\n
    \n
    \n\n \n
    \n {hasPermission(\"add_member\")\n && (\n this.handleShowAddMemberModal()}\n className=\"newMemberBtn\"\n\n >\n + New Member\n \n )}\n \n \n \n \n {authorizedColumns.map(({ title, align }) => (\n \n ))}\n \n \n \n {members && members.length > 0 && members.map((item, i) => (\n \n {authorizedColumns.map(({ title, key, align }) => {\n const cellText = title === \"Status\" ? statusMap[item[key]] : item[key];\n return (\n \n );\n })}\n \n ))}\n \n
    \n {title}\n {title === \"Role\" && (\n \n Editor: \n CAN view/edit data, submit samples, edit specs, but CANNOT invite/delete members.\n
    \n Member: \n CAN view data and submit samples, but CANNOT edit sample tests, edit specs and invite/delete members.\n \n )}\n overlayClassName=\"TeamMember__Tooltip\"\n >\n \n \n )}\n
    \n
    \n {this.showCellContent(title, cellText, i, item)}\n
    \n
    \n \n
    \n
    \n
    \n )}\n\n
    \n
    \n
    \n );\n}\n}\n\nTeamMember.contextType = AppContext; // allows class component to consume context, access via this.context\nexport default TeamMember;\n","import React from \"react\";\nimport \"../Product.css\";\nimport \"./ReportSearch.css\";\n\nimport whiteMagnifyIcon from \"../../../assets/images/white-magnifying-glass.png\";\nimport DatePicker from \"../../Common/DatePicker/DatePicker\";\n\nclass ReportSearch extends React.Component {\n state = {\n dateSelected: \"\",\n prevDateSelected: \"\",\n searchValue: \"\",\n };\n\n displayDateSelected = (dateSelected) => {\n this.setState({ dateSelected: dateSelected === \"\" ? \"\" : dateSelected });\n }\n\n handleClearSearchByDate = (e) => {\n const { handleFilterByDate } = this.props;\n e.stopPropagation();\n handleFilterByDate(\"\", \"\");\n this.setState({ dateSelected: \"\", prevDateSelected: \"\" });\n }\n\n handleSearchChange = (e, buttonClicked) => {\n const { handleSearch } = this.props;\n const { searchValue } = this.state;\n let value = !buttonClicked ? e.target.value : searchValue;\n\n this.setState({\n searchValue: value.trim() === \"\" ? \"\" : value,\n });\n value = value.trim();\n // 1. searchValue become empty 2. enter clicked 3. search icon clicked\n if ((value === \"\" && searchValue !== \"\")\n || e.key === \"Enter\"\n || buttonClicked) {\n handleSearch(value);\n }\n };\n\n render() {\n const {\n flag,\n handleFilterByDate,\n getReportDates,\n } = this.props;\n const {\n dateSelected, prevDateSelected, searchValue,\n } = this.state;\n let formControlId = \"reportSearchInput\";\n if (flag === \"templates\") {\n formControlId = \"reportSearchInput2\";\n } else if (flag === \"analytics\") {\n formControlId = \"reportSearchInput3\";\n }\n\n return (\n \n
    \n
    \n {\n this.handleSearchChange(event, false);\n }}\n value={searchValue}\n onKeyPress={(event) => {\n if (event.key === \"Enter\") {\n event.preventDefault();\n this.handleSearchChange(event, false);\n }\n }}\n />\n {\n this.handleSearchChange(event, true);\n }}\n >\n \n\n
    \n
    \n \n {flag === \"reports\" && (\n <>\n
    \n
    \n this.setState({ prevDateSelected: val })}\n searchOnClear\n datePickerDisplayProps={{\n iconTooltipTitle: \"Sort by date\",\n }}\n />\n
    \n \n )}\n
    \n );\n }\n}\n\nexport default ReportSearch;\n","import React from \"react\";\nimport StyledButton from \"../../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../../Common/UIComponents/StyledTooltip\";\nimport closeFilterIcon from \"../../../../assets/images/product/lightBlueCancelIcon.png\";\nimport \"./SpecButton.css\";\n\nclass SpecButton extends React.Component {\n render() {\n const toolTipTitle = () => {\n const { disableFilterButton, specText } = this.props;\n if (specText === \"Incomplete\" && disableFilterButton) {\n return \"No reports are available\";\n }\n return \"\";\n };\n\n const {\n index,\n specText,\n specColor,\n specSelected,\n disableFilterButton,\n isActive,\n handleToggleFilter,\n } = this.props;\n\n return (\n \n {\n e.preventDefault();\n e.stopPropagation();\n handleToggleFilter(index, specText);\n }}\n >\n \n
    {specText}
    \n {isActive && (\n \n )}\n \n \n );\n }\n}\n\nexport default SpecButton;\n","import React from \"react\";\nimport { Switch } from \"antd\";\nimport \"./StyledSwitch.css\";\n\nexport default function StyledSwitch({\n autoFocus,\n checked,\n checkedChildren,\n className,\n defaultChecked,\n defaultValue,\n disabled,\n loading,\n size,\n unCheckedChildren,\n value,\n onChange,\n onClick,\n}) {\n return (\n \n );\n}\n","import React from \"react\";\nimport StyledButton from \"../../../Common/UIComponents/StyledButton\";\nimport cycleIcon from \"../../../../assets/images/product/circleArrow.png\";\nimport SpecButton from \"./SpecButton\";\nimport StyledSwitch from \"../../../Common/UIComponents/StyledSwitch\";\nimport \"./SpecsBlock.css\";\n\nclass SpecsBlock extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n currentSelectedFilter: \"\",\n };\n }\n\n handleToggleFilter = (index, currSelection) => {\n const { handleFilterBySpec } = this.props;\n const { currentSelectedFilter } = this.state;\n handleFilterBySpec(index);\n this.setState({\n currentSelectedFilter: (currSelection === currentSelectedFilter) ? \"\" : currSelection,\n });\n }\n\n render() {\n const {\n specSelected,\n handleSpecManagerToggle,\n handleFilterByRetest,\n } = this.props;\n const { currentSelectedFilter } = this.state;\n\n return (\n
    \n\n
    \n Retest Requests \n \n
    \n
    \n
    Final result
    \n
    \n \n \n \n
    \n
    \n
    \n
    {\" \"}
    \n
    \n \n
    \n \n Spec Manager\n
    \n \n
    \n
    \n
    \n );\n }\n}\n\nexport default SpecsBlock;\n","import React from \"react\";\nimport \"../../../Product.css\";\nimport whiteMagnifyIcon from \"../../../../../assets/images/white-magnifying-glass.png\";\nimport \"./SpecManagerSearch.css\";\n\nclass SpecManagerSearch extends React.Component {\n constructor(props) {\n super(props);\n const { searchValue } = this.props;\n this.state = {\n searchValue: \"\" || searchValue,\n };\n }\n\n handleSearchChange = async (e, buttonClicked) => {\n const { searchValue } = this.state;\n const { handleSearchChange, searchField } = this.props;\n let value = \"\";\n if (!buttonClicked) {\n value = e.target.value;\n } else {\n value = searchValue;\n }\n this.setState({\n searchValue: value.trim() === \"\" ? \"\" : value,\n });\n if ((buttonClicked || e.key === \"Enter\" || value === \"\")) {\n await handleSearchChange(value, searchField);\n }\n }\n\n render() {\n const { flag, updateShowFilters } = this.props;\n const { searchValue } = this.state;\n let formControlId = \"reportSearchInput\";\n if (flag === \"templates\") {\n formControlId = \"reportSearchInput2\";\n } else if (flag === \"analytics\") {\n formControlId = \"reportSearchInput3\";\n }\n\n return (\n \n
    \n
    \n {\n this.handleSearchChange(event, false);\n }}\n value={searchValue}\n onKeyPress={(event) => {\n if (event.key === \"Enter\") {\n event.preventDefault();\n this.handleSearchChange(event, false);\n }\n }}\n onFocus={() => updateShowFilters(true)}\n />\n {\n this.handleSearchChange(event, true);\n }}\n >\n \n\n
    \n
    \n \n \n );\n }\n}\n\nexport default SpecManagerSearch;\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./ConfirmModal.css\";\nimport { ReactComponent as LoadingDots } from \"../../../../../assets/images/common/LoadingDots.svg\";\n\nexport default class ConfirmExitModal extends React.Component {\n render() {\n const {\n headerText,\n bodyText,\n buttonText,\n buttonFunctions,\n disableConfirmButton,\n loadingConfirm,\n } = this.props;\n\n return (\n \n
    \n
    {headerText}
    \n
    {bodyText}
    \n
    \n \n \n
    \n
    \n \n );\n }\n}\n","import React from \"react\";\nimport \"./SpecManagerInput.css\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\n\nclass SpecManagerInput extends React.Component {\n /**\n * Searches for invalid character or multiple periods in string. Returns appropriate error message if found. Else, returns that string is valid with null error message.\n * @param {String} string input value\n * @returns {Object} { isValid: true | false, errorMessage: String | null } isValid is true and errorMessage is null if string is valid\n */\nstatic getInputError = (string) => {\n if (!string) { // empty string is valid\n return { isValid: true, errorMessage: null };\n }\n\n const firstMatch = string.match(/[^0-9,\\\\.]/); // matches the first invalid (any character other than digit, comma, period) character\n if (firstMatch !== null) { // invalid char found\n let invalidChar = firstMatch[0];\n\n if (firstMatch[0] === \" \") {\n invalidChar = \"space\";\n }\n return { isValid: false, errorMessage: `Invalid input, remove ${invalidChar}` };\n }\n\n const moreThanOnePeriod = /\\.(?=[^\\\\.]*\\.+[^\\\\.]*)/.test(string); // true if there's more than one period\n if (moreThanOnePeriod) {\n return { isValid: false, errorMessage: \"Invalid input, multiple '.'\" };\n }\n\n return { isValid: true, errorMessage: null };\n};\n\nconstructor(props) {\n super(props);\n\n this.state = {\n // cursorPosition: 0,\n errorMessage: \"\",\n focused: false,\n };\n\n this.inputRef = React.createRef();\n}\n\ncomponentDidMount() {\n const { value } = this.props;\n\n const valid = SpecManagerInput.getInputError(value);\n this.updateErrorMessage(valid, false);\n}\n\n// onKeyPress = (e) => {\n// if (e.key === \"Enter\") {\n// e.preventDefault();\n// e.target.blur();\n// }\n// }\n\n// onKeyDown = (e) => {\n// const { onChange } = this.props;\n// if (e.key === \"Backspace\") {\n// // console.log(\"backspace\");\n// e.preventDefault();\n// const selectionPositionStart = e.target.selectionStart;\n// const selectionPositionEnd = e.target.selectionEnd;\n\n// const singleSelected = selectionPositionStart === selectionPositionEnd;\n\n// let text = e.target.value;\n\n// if (singleSelected && selectionPositionStart !== 0) {\n// text = text.slice(0, selectionPositionStart - 1) + text.slice(selectionPositionStart);\n// } else {\n// text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionEnd);\n// }\n\n// this.setState({\n// cursorPosition: singleSelected && selectionPositionStart !== 0 ? selectionPositionStart - 1 : selectionPositionStart,\n// }, () => {\n// const { cursorPosition } = this.state;\n// this.inputRef.current.selectionStart = cursorPosition;\n// this.inputRef.current.selectionEnd = cursorPosition;\n// });\n// onChange(text);\n\n// const valid = getInputError(text);\n// this.updateErrorMessage(valid);\n// } else if (e.key === \"Delete\") {\n// e.preventDefault();\n// const selectionPositionStart = e.target.selectionStart;\n// const selectionPositionEnd = e.target.selectionEnd;\n\n// const singleSelected = selectionPositionStart === selectionPositionEnd;\n\n// let text = e.target.value;\n\n// if (singleSelected) {\n// text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionStart + 1);\n// } else {\n// text = text.slice(0, selectionPositionStart) + text.slice(selectionPositionEnd);\n// }\n\n// this.setState({\n// cursorPosition: selectionPositionStart,\n// }, () => {\n// const { cursorPosition } = this.state;\n// this.inputRef.current.selectionStart = cursorPosition;\n// this.inputRef.current.selectionEnd = cursorPosition;\n// });\n// onChange(text);\n\n// const valid = getInputError(text);\n// this.updateErrorMessage(valid);\n// }\n// }\n\n onKeyDown = (e) => {\n const { value } = this.props; // curr value in parent\n /* User inputted a character. Delete, Backspace, Tab, Shift, Cmd/Ctrl + v etc. won't go in this if condition. Shift/Caps Lock + char will go into this condition. */\n if (e.key.length === 1 && !(e.altKey || e.ctrlKey || e.metaKey)) {\n const validChar = e.key.match(/[0-9,\\\\.]/);\n let invalid = validChar === null;\n /* If the char is a period and there's already a period in value, it's invalid */\n if (validChar !== null && validChar[0] === \".\" && value.includes(\".\")) {\n invalid = true;\n }\n if (invalid) {\n e.preventDefault();\n }\n }\n\n if (e.key === \"Enter\") {\n e.preventDefault();\n e.target.blur();\n }\n }\n\n onChange = (e) => {\n const { onChange } = this.props;\n\n const text = e.target.value;\n const valid = SpecManagerInput.getInputError(text);\n\n onChange(text);\n this.updateErrorMessage(valid);\n }\n\n updateErrorMessage(validObj, focus = true) {\n if (validObj.isValid === true) {\n this.setState({\n errorMessage: \"\",\n });\n if (focus) window.setTimeout(() => this.inputRef.current.focus(), 0);\n }\n\n if (validObj.errorMessage !== null) {\n this.setState({\n errorMessage: validObj.errorMessage,\n });\n }\n }\n\n render() {\n const {\n placeHolder,\n value,\n width,\n height,\n additionalClassName,\n } = this.props;\n\n const { errorMessage, focused } = this.state;\n\n return (\n \n {\n this.setState({\n focused: true,\n });\n }}\n onBlur={() => {\n this.setState({\n focused: false,\n });\n }}\n />\n \n );\n }\n}\nexport default SpecManagerInput;\n","export const UNIT_OPTIONS = [\"None\", \"CFU/g\", \"CFU\", \"mg/kg\", \"ppb\", \"ppm\", \"%\", \"g\", \"ml\"];\n\n/**\n * Remove commas from string, parseFloat to get a number\n * @param {String} value\n * @returns {Number} return number parse from string\n */\nexport const parseNumber = (value) => parseFloat(value.split(\",\").join(\"\"));\n\n/**\n * Check if value is a number\n * @param {String} value\n * @returns {Boolean} true if a number else false\n */\nexport const isNumber = (value) => !Number.isNaN(parseNumber(value));\n\n/**\n * Returns true if there is an invalid character or there are multiple periods in string.\n * @param {String} string input value\n * @returns {Boolean} true if valid, else false\n */\nexport const isValid = (string) => {\n const valid = /^([0-9,]|(\\.(?![^\\\\.]*\\.+[^\\\\.]*)))*$/.test(string); // only allow digits, commas, and 0 or 1 periods\n // const anyInvalid = /[^0-9,\\\\.]|\\.(?=[^\\\\.]*\\.+[^\\\\.]*)/.test(string); // true if any non-digit, non-comma, non-period character or if there's more than 1 period\n return valid;\n};\n\nexport const formatSpec = (dataOfSpecEditing, skipCountryList = false) => dataOfSpecEditing.map((element) => {\n // const { test, test_type, specs } = element;\n const test_type = element.test_type;\n const specs = element.specs;\n // let test = (this.state.addingSpec ? element.Test : element.test)\n const test = element.test;\n let min = \"\";\n let max = \"\";\n let unit = \"\";\n if (test_type === \"range\") {\n if ((specs[0] && !specs[1]) || (!specs[0] && specs[1])) {\n return \"Range is missing a value\";\n }\n if (specs[0] && specs[1] && specs[0].trim() && specs[1].trim()) {\n if (!isValid(specs[0]) || !isValid(specs[1])) {\n return \"Invalid input\";\n }\n const numFrom = parseNumber(specs[0]);\n const numTo = parseNumber(specs[1]);\n\n if (isNumber(specs[0]) && isNumber(specs[1])) {\n specs[2] = !specs[2] ? \"\" : specs[2];\n if (numFrom > numTo) {\n // min = specs[1].trim() + specs[2];\n min = specs[1].trim();\n // max = specs[0].trim() + specs[2];\n max = specs[0].trim();\n } else {\n // min = specs[0].trim() + specs[2];\n min = specs[0].trim();\n // max = specs[1].trim() + specs[2];\n max = specs[1].trim();\n }\n } else {\n return \"Range is missing a value\";\n }\n }\n } else if (test_type === \"quantitative\") {\n if (specs[1] && specs[1].trim()) {\n if (!isValid(specs[1])) {\n return \"Invalid input\";\n }\n // specs[2] = !specs[2] ? UNIT_OPTIONS[0] : specs[2] === \"None\" ? \"\" : specs[2];\n if (!specs[2]) {\n specs[2] = UNIT_OPTIONS[0];\n }\n if (isNumber(specs[1])) {\n if (!specs[0] || specs[0] === \"Max\") {\n // max = \"<\" + specs[1].trim() + specs[2];\n max = `<${specs[1].trim()}`;\n } else {\n // min = \">\" + specs[1].trim() + specs[2];\n min = `>${specs[1].trim()}`;\n max = \"\";\n }\n }\n }\n } else if (test_type === \"qualitative\") {\n if (specs[1] && specs[1].trim()) {\n specs[0] = !specs[0] ? \"Negative\" : specs[0];\n specs[1] = specs[1].trim()[0] === \"/\" ? specs[1].trim() : `/${specs[1].trim()}`;\n if (!isValid(specs[1].substring(1))) {\n return \"Invalid input\";\n }\n if (isNumber(specs[1].substring(1))) {\n // max = specs[0] + specs[1] + \"g\";\n max = specs[0] + specs[1];\n }\n } else {\n max = \"Negative\";\n }\n }\n if (element.specs[2] === \"None\") {\n element.specs[2] = \"\";\n }\n if (!max.includes(\"/\") && test_type === \"qualitative\") {\n unit = \"\";\n } else {\n unit = element.specs[2] || \"\";\n }\n\n const formattedValue = {\n test, min, max, unit,\n };\n\n // Pesticide test\n if (test.toLowerCase().includes(\"pesticide\") && !skipCountryList) {\n formattedValue.countries_lst = element.countries_lst ? element.countries_lst.filter((c) => c.selected).map((c) => c.country) : [];\n }\n\n return formattedValue;\n});\n\nexport const parseSpecDetail = (spec) => {\n let specs = [\"\", \"\", \"\"];\n let test_type = \"\";\n const test = spec.test ? spec.test : \"\";\n\n // return {\n // test: \"test\",\n // test_type: \"range\",\n // specs: [\"adfadf,12sdf63 K 123\", \"123\", \"\"],\n // };\n\n if (spec.min !== undefined && spec.max !== undefined) {\n const specString = spec.min + spec.max;\n\n if (specString.startsWith(\"Positive\")) {\n test_type = \"qualitative\";\n // let numberString = specString.substring(\"Positive\".length, specString.length - 1);\n const numberString = specString.split(\"/\")[1];\n specs = [\"Positive\", numberString, spec.unit];\n } else if (specString.startsWith(\"Negative\")) {\n test_type = \"qualitative\";\n // let numberString = specString.substring(\"Negative\".length, specString.length - 1);\n const numberString = specString.split(\"/\")[1];\n specs = [\"Negative\", numberString, spec.unit];\n } else if (specString[0] === \"<\" || specString[0] === \">\") {\n let unit = \"\";\n let numberString = specString.substring(1, specString.length);\n const maxString = specString[0] === \"<\" ? \"Max\" : \"Min\";\n for (let i = 0; i < UNIT_OPTIONS.length; i++) {\n if (specString.endsWith(UNIT_OPTIONS[i])) {\n unit = UNIT_OPTIONS[i];\n numberString = specString.substring(1, specString.length - unit.length);\n break;\n }\n }\n // unit = unit === \"\" ? \"None\" : unit;\n test_type = \"quantitative\";\n specs = [maxString, numberString, spec.unit];\n } else if (specString === \"\") {\n test_type = \"\";\n } else if (specString !== \"None\") {\n test_type = \"range\";\n if (specString.endsWith(\"%\")) {\n spec.min = spec.min.substring(0, spec.min.length - 1);\n spec.max = spec.max.substring(0, spec.max.length - 1);\n // specs[2] = \"%\";\n specs[2] = spec.unit;\n }\n // specs[0] = spec.min === \"\" ? \"0\" : spec.min;\n specs[0] = spec.min;\n // specs[1] = spec.max === \"\" ? \"0\" : spec.max;\n specs[1] = spec.max;\n specs[2] = spec.unit;\n }\n }\n const parsedValues = {\n test,\n test_type,\n specs,\n removable: spec.removable,\n };\n if (test.toLowerCase().includes(\"pesticide\")) {\n parsedValues.countries_lst = spec.countries_lst;\n }\n return parsedValues;\n};\n\n// export const rangeIsMissingValue = (specList) => {\n// let isMissing = false;\n// specList.forEach((elem) => {\n// if (elem === \"Range is missing a value\") {\n// isMissing = true;\n// }\n// });\n// return isMissing;\n// };\n\nexport const handleCheckUnit = (specList) => {\n specList.forEach((element) => {\n if (!element.min && !element.max) {\n element.unit = \"\";\n }\n });\n return specList;\n};\n\nexport const checkIfSpecsComplete = (specList) => {\n const formatted = formatSpec(specList);\n let complete = true;\n\n // console.log(\"formatted\", formatted);\n\n formatted.forEach((item) => {\n if (item === \"Range is missing a value\") {\n complete = false;\n return;\n }\n if (!item.min.includes(\">\") && !item.max.includes(\"<\") && !item.max.includes(\"Negative\") && !item.max.includes(\"Positive\")) {\n if (item.min === \"\" && item.max === \"\") {\n complete = false;\n }\n }\n });\n\n return complete;\n};\n\nexport const checkIfSpecsInvalid = (specList) => {\n const formatted = formatSpec(specList);\n return formatted.some((item) => item === \"Range is missing a value\" || item === \"Invalid input\");\n};\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport { isNumber, UNIT_OPTIONS } from \"./Helper\";\nimport \"./SpecsRange.css\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\n\nclass SpecsRange extends React.Component {\n onRangeFromChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([value, data[1], data[2]]);\n }\n\n onRangeToChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n }\n\n onOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], optionSelected]);\n }\n\n render() {\n const { data } = this.props;\n const [rangeFrom, rangeTo, percentage] = data;\n\n return (\n \n \n -\n \n \n \n );\n }\n}\n\nexport default SpecsRange;\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport { UNIT_OPTIONS } from \"./Helper\";\nimport \"./SpecsQuantitative.css\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\n\nexport default class SpecsQuantitative extends React.Component {\n onRangeOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([optionSelected, data[1], data[2]]);\n }\n\n onUnitOptionClick = (optionSelected) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], optionSelected]);\n }\n\n onInputChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n }\n\n render() {\n const { data } = this.props;\n const [max, number, unit] = data;\n\n return (\n \n \n \n \n \n );\n }\n}\n","import React from \"react\";\nimport SpecManagerInput from \"./SpecManagerInput\";\nimport { UNIT_OPTIONS } from \"./Helper\";\nimport \"./SpecsQualitative.css\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\n\nclass SpecsQualitative extends React.Component {\n constructor(props) {\n super(props);\n const { data, newQualitative } = this.props;\n\n let number = \"\";\n if (newQualitative) {\n number = \"25\";\n } else if (data[1]) {\n number = data[1].replace(\"/\", \"\");\n }\n\n this.state = {\n qualNumber: number,\n };\n }\n\n componentDidMount() {\n const { newQualitative, data, handleDataChange } = this.props;\n const { qualNumber } = this.state;\n\n if (newQualitative) handleDataChange([data[0], qualNumber, data[2]]);\n }\n\n onInputChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], value, data[2]]);\n this.setState({\n qualNumber: value,\n });\n }\n\n handlePositiveChange = (e, value) => {\n e.preventDefault();\n e.stopPropagation();\n const { data, handleDataChange } = this.props;\n handleDataChange([value, data[1], data[2]]);\n }\n\n onDropdownChange = (value) => {\n const { data, handleDataChange } = this.props;\n handleDataChange([data[0], data[1], value]);\n }\n\n render() {\n const { data } = this.props;\n const { qualNumber } = this.state;\n const [max, number, unit] = data; //eslint-disable-line\n\n return (\n \n
    \n
    \n
    \n Negative\n
    \n
    \n \n \n
    \n );\n }\n}\n\nexport default SpecsQualitative;\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgMrlIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.9987 13.6663C3.3168 13.6663 0.332031 10.6815 0.332031 6.99967C0.332031 3.31777 3.3168 0.333008 6.9987 0.333008C10.6806 0.333008 13.6654 3.31777 13.6654 6.99967C13.6654 10.6815 10.6806 13.6663 6.9987 13.6663ZM5.47204 12.1113C4.83032 10.7503 4.43691 9.24914 4.35024 7.66634H1.70662C1.9707 9.78401 3.47629 11.5161 5.47204 12.1113ZM5.68583 7.66634C5.7861 9.29221 6.25056 10.8195 6.9987 12.1677C7.74683 10.8195 8.2113 9.29221 8.31156 7.66634H5.68583ZM12.2908 7.66634H9.64716C9.5605 9.24914 9.1671 10.7503 8.52536 12.1113C10.5211 11.5161 12.0267 9.78401 12.2908 7.66634ZM1.70662 6.33301H4.35024C4.43691 4.75019 4.83032 3.24905 5.47204 1.88805C3.47629 2.48323 1.9707 4.21534 1.70662 6.33301ZM5.68583 6.33301H8.31156C8.2113 4.70715 7.74683 3.17984 6.9987 1.83167C6.25056 3.17984 5.7861 4.70715 5.68583 6.33301ZM8.52536 1.88805C9.1671 3.24905 9.5605 4.75019 9.64716 6.33301H12.2908C12.0267 4.21534 10.5211 2.48323 8.52536 1.88805Z\",\n fill: \"#375393\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgMrlIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/MRLIcon.c475f4b4.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { Checkbox } from \"antd\";\nimport \"./StyledCheckbox.css\";\n\nexport default function StyledCheckbox({\n checked,\n onChange,\n disabled,\n children,\n containerClassName,\n}) {\n return (\n \n {children}\n \n );\n}\n","import React, { useState, useMemo } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { Divider, Popover } from \"antd\";\nimport \"./CountriesCheckboxList.css\";\nimport StyledButton from \"./StyledButton\";\nimport StyledCheckbox from \"./StyledCheckbox\";\n\nexport default function CountriesCheckboxList({\n children, values: countries, selectedValues, disabledItems = [], defaultCheckedCountries = [],\n getIsOpen, onClickSave,\n}) {\n const [selectedCountries, setSelectedCountries] = useState(Array.from(new Set([...selectedValues, ...defaultCheckedCountries])));\n const [open, setOpen] = useState(false);\n\n /**\n * Set status for disabling country\n * @returns {object} Object of countries as key and true/false for disabled status\n */\n const countriesDisabledStatus = useMemo(() => {\n const disabledCountries = disabledItems.map((item) => item.toLowerCase());\n return countries.reduce((obj, country) => {\n obj[country] = disabledCountries.includes(country.toLowerCase()); // true if disabled}\n return obj;\n }, {});\n }, [disabledItems, countries]);\n\n /**\n * Get countries which are not disabled\n * @returns {Set} List of countries those are not disabled\n */\n const getNonDisabledCountriesList = () => Array.from(new Set([\n ...defaultCheckedCountries,\n ...Object.keys(countriesDisabledStatus).filter((country) => !countriesDisabledStatus[country]),\n ]));\n\n /**\n * Handle check event for checkbox\n * @param {*} country\n */\n function handleCheck(country) {\n if (!selectedCountries.includes(country)) {\n setSelectedCountries((state) => Array.from(new Set([...state, ...defaultCheckedCountries, country])));\n } else {\n const updatedCountries = [...selectedCountries];\n if (updatedCountries.includes(country)) {\n const idx = updatedCountries.indexOf(country);\n updatedCountries.splice(idx, 1);\n setSelectedCountries(updatedCountries);\n }\n }\n }\n\n /**\n * Handle select all checkbox event\n * @param {*} e event\n */\n const handleSelectAll = (e) => {\n if (e.target.checked) {\n const nonDisabledCountries = getNonDisabledCountriesList();\n setSelectedCountries(Array.from(nonDisabledCountries));\n } else {\n setSelectedCountries([...defaultCheckedCountries]);\n }\n };\n\n /**\n * Save button click event\n */\n const handleSave = () => {\n if (onClickSave) onClickSave(selectedCountries);\n setOpen(false);\n };\n\n /**\n * Handle event for open/close list\n * @param {boolean} newOpen is open\n */\n const handleOpenChange = (newOpen) => {\n setOpen(newOpen);\n };\n\n const CountryList = (\n
    \n \n Select all\n \n \n \n
    \n {countries.map((country, i) => (\n handleCheck(country)}\n disabled={countriesDisabledStatus[country]}\n containerClassName=\"CountriesCheckboxList__Checkbox\"\n >\n {country}\n \n ))}\n
    \n
    \n
    \n \n Save\n \n
    \n
    \n );\n\n return (\n \n {children}\n \n );\n}\n","import React, { useState, useRef } from \"react\";\nimport \"./MRLCountryList.css\";\nimport { ReactComponent as ChevronDown } from \"../../../../../assets/images/common/ChevronDown.svg\";\nimport CountriesCheckboxList from \"../../../../Common/UIComponents/CountriesCheckboxList\";\n// import SpecManagerSelect from \"./SpecManagerSelect\";\n\nfunction MRLCountryList({\n countries, selectedValues, editMode = false, onChange,\n}) {\n const [selectedCountries, setSelectedCountries] = useState(Array.from(new Set([...selectedValues])));\n const [isDropdownVisible, setIsDropdownVisible] = useState(false);\n const dropdownRef = useRef();\n\n /**\n * Handle on change event\n * @param {string} values selected country\n */\n const handleOnChange = (values) => {\n setSelectedCountries(values);\n if (onChange) {\n const updated = countries.map((country) => ({\n country,\n selected: values.includes(country),\n }));\n onChange(updated);\n }\n };\n\n /**\n * Handle clicking on list\n */\n const handleListClick = () => {\n setIsDropdownVisible(true);\n if (dropdownRef.current) {\n dropdownRef.current.click();\n }\n };\n\n const list = (\n \n
    \n {selectedCountries.length > 0 ? selectedCountries.map((country) => (\n \n {country}\n \n )) : editMode && Please select countries}\n
    \n {editMode && }\n \n );\n\n if (editMode) {\n return (\n setIsDropdownVisible(visible)}\n onClickSave={handleOnChange}\n >\n {isDropdownVisible ? (\n
    \n
    \n Select countries\n \n
    \n
    \n ) : list}\n \n );\n }\n\n return list;\n}\n\nexport default MRLCountryList;\n","import React from \"react\";\nimport \"../../../Product.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport SpecsRange from \"./SpecsRange\";\nimport SpecsQuantitative from \"./SpecsQuantitative\";\nimport SpecsQualitative from \"./SpecsQualitative\";\nimport { ReactComponent as RangeIcon } from \"../../../../../assets/images/product/RangeIcon.svg\";\nimport { ReactComponent as QualitativeIcon } from \"../../../../../assets/images/product/QualitativeIcon.svg\";\nimport { ReactComponent as QuantitativeIcon } from \"../../../../../assets/images/product/QuantitativeIcon.svg\";\nimport { ReactComponent as MRLIcon } from \"../../../../../assets/images/product/MRLIcon.svg\";\nimport SpecManagerSelect from \"./SpecManagerSelect\";\nimport \"./EditSpecTable.css\";\nimport MRLCountryList from \"./MRLCountryList\";\nimport { hasFeature } from \"../../../../../utils/common\";\n\nclass EditSpecTable extends React.Component {\n // handleChooseDropDown = (optionSelected) => {\n // this.setState({\n // dropDownSelection: optionSelected,\n // });\n // }\n constructor(props) {\n super(props);\n\n const pesticideCountryData = this.getCountriesDataForPesticideTest();\n\n this.state = {\n newQualitative: false,\n pesticideCountryData,\n };\n }\n\n handleDataChange = (indexOfRowClicked, fieldName, newFieldValue) => {\n const { dataOfSpecEditing, handleDataChange } = this.props;\n\n // console.log('dataOfSpecEditing, before: ', dataOfSpecEditing);\n if (fieldName === \"test_type\") {\n if (dataOfSpecEditing[indexOfRowClicked].test_type !== newFieldValue) {\n dataOfSpecEditing[indexOfRowClicked].test_type = newFieldValue;\n dataOfSpecEditing[indexOfRowClicked].specs = [];\n\n if (newFieldValue === \"qualitative\") {\n this.setState({\n newQualitative: true,\n });\n }\n }\n } else if (fieldName === \"specs\") {\n dataOfSpecEditing[indexOfRowClicked][fieldName] = newFieldValue;\n // console.log('dataOfSpecEditing, after: ', dataOfSpecEditing);\n } else if (fieldName === \"countries_lst\") {\n // Data update for pesticides\n dataOfSpecEditing[indexOfRowClicked].test_type = \"\";\n dataOfSpecEditing[indexOfRowClicked].specs = [];\n dataOfSpecEditing[indexOfRowClicked][fieldName] = newFieldValue;\n } else {\n dataOfSpecEditing.push({ [fieldName]: newFieldValue, test_type: \"\", specs: [\"\", \"\", \"\"] });\n }\n\n handleDataChange(dataOfSpecEditing);\n };\n\n getCountriesDataForPesticideTest() {\n const { dataOfSpecEditing } = this.props;\n return dataOfSpecEditing.reduce((acc, spec) => {\n if (spec.test.toLowerCase().includes(\"pesticide\")) {\n const countriesSpecData = {\n countriesList: [],\n selectedCountries: [],\n };\n if (spec.countries_lst) {\n spec.countries_lst.forEach((countryData) => {\n countriesSpecData.countriesList.push(countryData.country);\n if (countryData.selected) {\n countriesSpecData.selectedCountries.push(countryData.country);\n }\n });\n }\n acc[spec.test] = countriesSpecData;\n }\n return acc;\n }, {});\n }\n\n render() {\n const {\n addingSpec,\n dataOfSpecEditing,\n } = this.props;\n\n const { newQualitative, pesticideCountryData } = this.state;\n\n return (\n \n \n \n \n \n \n \n \n \n \n\n {dataOfSpecEditing.map((item, i) => (\n \n {addingSpec\n ? (\n \n )\n : (\n \n ) }\n \n \n \n ))}\n\n \n
    TestTest TypeSpecs
    \n {item.test}\n \n {item.test}\n \n {item.test.toLowerCase().includes(\"pesticide\") && hasFeature(\"special_pesticides\") ? (\n
    \n \n MRL\n
    \n ) : (\n },\n { value: \"quantitative\", icon: },\n { value: \"qualitative\", icon: }]}\n placeholder=\"Choose Test Type\"\n onSelect={(optionSelected) => this.handleDataChange(i, \"test_type\", optionSelected)}\n />\n )}\n
    \n {(item.test.toLowerCase().includes(\"pesticide\") && hasFeature(\"special_pesticides\")) ? (\n this.handleDataChange(i, \"countries_lst\", values)}\n editMode\n />\n ) : (\n <>\n {item.test_type === \"qualitative\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n newQualitative={newQualitative}\n />\n )}\n {\n item.test_type === \"range\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n />\n )\n }\n {item.test_type === \"quantitative\"\n && (\n this.handleDataChange(i, \"specs\", newSpec)}\n />\n )}\n \n )}\n {(item.test_type !== \"quantitative\" && item.test_type !== \"qualitative\"\n && item.test_type !== \"range\" && !(item.test.toLowerCase().includes(\"pesticide\") && hasFeature(\"special_pesticides\")))\n && (\n \n Please select test type to view the specs\n \n )}\n
    \n \n );\n }\n}\n\nexport default EditSpecTable;\n","import React from \"react\";\nimport \"../../../Product.css\";\nimport \"./SpecManager.css\";\nimport \"./SpecTable.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { ReactComponent as RangeIcon } from \"../../../../../assets/images/product/RangeIcon.svg\";\nimport { ReactComponent as QualitativeIcon } from \"../../../../../assets/images/product/QualitativeIcon.svg\";\nimport { ReactComponent as QuantitativeIcon } from \"../../../../../assets/images/product/QuantitativeIcon.svg\";\nimport { ReactComponent as MRLIcon } from \"../../../../../assets/images/product/MRLIcon.svg\";\nimport MRLCountryList from \"./MRLCountryList\";\nimport { hasFeature } from \"../../../../../utils/common\";\n\nclass SpecTable extends React.Component {\n constructor(props) {\n super(props);\n\n const pesticideCountryData = this.getCountriesDataForPesticideTest();\n\n this.state = {\n pesticideCountryData,\n };\n }\n\n static getFormattedSpec(specs, testType, test, pesticideCountryData) {\n let units = specs[2];\n let min = specs[0];\n let max = specs[1];\n const isPesticideTest = test.toLowerCase().includes(\"pesticide\") && hasFeature(\"special_pesticides\");\n\n if (units === undefined) units = \"\";\n if (min === undefined) min = \"\";\n if (max === undefined) max = \"\";\n\n /** Empty specs for this test */\n if (!units && !min && !max && !isPesticideTest) {\n return \"-\";\n }\n\n if (testType === \"quantitative\") {\n return `${max} ${units}`;\n }\n\n if (testType === \"range\") {\n return `${min} - ${max} ${units}`;\n }\n\n if (testType === \"qualitative\") {\n let value = specs[1];\n if (value === undefined) {\n value = \"\";\n }\n return `${min} ${value} ${units}`;\n }\n\n if (isPesticideTest) {\n const countryData = pesticideCountryData[test];\n\n return (\n \n );\n }\n\n return `${min} ${max} ${units}`;\n }\n\n static getFormattedTestType(testType, test) {\n const formattedTestType = testType.charAt(0).toUpperCase() + testType.substring(1, testType.length);\n\n if (testType === \"quantitative\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n if (testType === \"qualitative\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n if (testType === \"range\") {\n return (\n
    \n \n {formattedTestType}\n
    \n );\n }\n\n if (test.toLowerCase().includes(\"pesticide\") && hasFeature(\"special_pesticides\")) {\n return (\n
    \n \n MRL\n
    \n );\n }\n\n return {testType || \"-\"};\n }\n\n getCountriesDataForPesticideTest() {\n const { dataOfSpecEditing } = this.props;\n return dataOfSpecEditing.reduce((acc, spec) => {\n if (spec.test.toLowerCase().includes(\"pesticide\")) {\n const countriesSpecData = {\n countriesList: [],\n selectedCountries: [],\n };\n if (spec.countries_lst) {\n spec.countries_lst.forEach((countryData) => {\n countriesSpecData.countriesList.push(countryData.country);\n if (countryData.selected) {\n countriesSpecData.selectedCountries.push(countryData.country);\n }\n });\n }\n acc[spec.test] = countriesSpecData;\n }\n return acc;\n }, {});\n }\n\n renderTests() {\n const { dataOfSpecEditing } = this.props;\n const { pesticideCountryData } = this.state;\n\n return dataOfSpecEditing.map((item, index) => (\n \n \n {/* {item.Test} */}\n {item.test}\n \n\n \n {/* {item.Test} */}\n {SpecTable.getFormattedTestType(item.test_type, item.test)}\n \n\n \n {SpecTable.getFormattedSpec(item.specs, item.test_type, item.test, pesticideCountryData)}\n \n \n ));\n }\n\n render() {\n return (\n \n \n \n \n \n \n \n \n \n {this.renderTests()}\n
    TestTest TypeSpecs
    \n \n );\n }\n}\n\nexport default SpecTable;\n","import React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\nimport { ReactComponent as CloseIcon } from \"../../../../../assets/images/sample-submission/blueCloseIcon.svg\";\nimport \"./TestList.css\";\n\nexport default function TestList(props) {\n const {\n removableTests, nonRemovableTests, loading, handleRemoveAddedTest,\n } = props;\n\n return (\n \n
      \n {removableTests.map((test) => (\n \n
    • \n {test}\n handleRemoveAddedTest(test)}\n >\n \n \n
    • \n \n ))}\n {nonRemovableTests.map((test) => (\n \n
    • \n {test}\n
    • \n \n ))}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport Highlighter from \"react-highlight-words\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\nimport { ReactComponent as LoadingDots } from \"../../../../../assets/images/common/LoadingDots.svg\";\nimport watermelon from \"../../../../../assets/images/EmptyState_V2.png\";\n\nimport \"./TestSuggestionList.css\";\n\nexport default function TestSuggestionList(props) {\n const {\n testSuggestionsScrollbar, testSuggestions, addedTestSet, searched, isLoading, loading, handleAddNewTest,\n } = props;\n\n /**\n * Add enable or disable class name to list item\n * @param {Boolean} disableSelection whether item should be disabled or not\n * @returns {String} className\n */\n const disabledClassName = (disableSelection) => {\n let className = \"\";\n if (disableSelection) {\n className = \"TestSuggestionList__DisabledSuggestion\";\n } else {\n className = \"TestSuggestionList__UnselectedSuggestion\";\n }\n return className;\n };\n\n return (\n
    \n {isLoading && (\n
    \n \n
    \n )}\n {!isLoading && (\n testSuggestions.length > 0 ? (\n \n
      \n {testSuggestions.map(({ test_display_name }) => {\n const disableTest = addedTestSet.current.has(test_display_name.toLowerCase());\n return (\n \n handleAddNewTest(test_display_name)}\n className={disabledClassName(disableTest)}\n >\n \n \n \n );\n })}\n
    \n
    \n ) : (\n
    \n \n
    \n No Tests Found\n
    \n
    \n ))}\n
    \n );\n}\n","import React, {\n useState, useRef, useMemo, useEffect,\n useCallback,\n} from \"react\";\nimport { toast } from \"react-toastify\";\nimport { debounce } from \"lodash\";\nimport \"./UpdateTestList.css\";\nimport { getTestList } from \"../../../../../actions/sampleSubmission\";\n\nimport searchIcon from \"../../../../../assets/images/sample-submission/searchIcon.svg\";\nimport { ReactComponent as LoadingDots } from \"../../../../../assets/images/common/LoadingDots.svg\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport TestList from \"./TestList\";\nimport TestSuggestionList from \"./TestSuggestionList\";\n\nexport default function UpdateTestList(props) {\n const { dataOfSpecEditing, setShowUpdateTestList, handleSaveTestList } = props;\n const [search, setSearch] = useState(\"\");\n const [searched, setSearched] = useState(\"\"); // used for highlighted text after search\n const [testSuggestions, setTestSuggestions] = useState([]);\n const [removableTests, setRemovableTests] = useState([]);\n const [nonRemovableTests, setNonRemovableTests] = useState([]);\n const [isLoading, setIsLoading] = useState(true);\n const [isSaveLoading, setIsSaveLoading] = useState(false);\n const testSuggestionsScrollbar = useRef();\n const addedTestSet = useRef(new Set([]));\n const specEditingData = useRef({});\n\n /**\n * Call api for getting test suggestions\n */\n const apiGetTestSuggestions = useCallback(async (searchInput) => {\n setIsLoading(true);\n const { success, message, testList } = await getTestList(searchInput, undefined, \"product\", true);\n if (success) {\n setTestSuggestions(testList);\n setSearched(searchInput);\n if (testSuggestionsScrollbar.current) {\n testSuggestionsScrollbar.current.scrollerElement.scrollTo({\n top: 0,\n behavior: \"smooth\",\n });\n }\n } else {\n toast.error(message);\n }\n setIsLoading(false);\n }, []);\n\n /**\n * Debounce search input\n */\n const debouncedSearch = useMemo(() => debounce(async (searchInput) => {\n await apiGetTestSuggestions(searchInput);\n }, 500), [apiGetTestSuggestions]);\n\n /**\n * Calls /testsugessions/ api to fetch all the test display names\n * Triggers: on component mount\n */\n useEffect(() => {\n apiGetTestSuggestions(\"\");\n }, [apiGetTestSuggestions]);\n\n /**\n * Split test specs data into removable and non-removable test names array for TestList\n * Add all the test names to addedTestSet for maintaining non-duplicate values and disable state checks\n * Add test spec data to specEditingData object for efficient spec data retrival when saving\n * Triggers: on component mount\n */\n useEffect(() => {\n addedTestSet.current.clear();\n const testData = dataOfSpecEditing.reduce((acc, spec) => {\n if (spec.removable) acc.removableTests.push(spec.test);\n else acc.nonRemovableTests.push(spec.test);\n // Test name set\n addedTestSet.current.add(spec.test.toLowerCase());\n // Spec data\n specEditingData.current[spec.test] = spec;\n return acc;\n }, { removableTests: [], nonRemovableTests: [] });\n setRemovableTests(testData.removableTests);\n setNonRemovableTests(testData.nonRemovableTests);\n }, [dataOfSpecEditing]);\n\n /**\n * OnChange handler for search box and debounced search\n */\n const handleChangeSearch = (e) => {\n setSearch(e.target.value);\n debouncedSearch(e.target.value);\n };\n\n /**\n * Key handler for immediate search\n * @param {Event} e event\n */\n const handleHitEnter = (e) => {\n if (e.key === \"Enter\") {\n apiGetTestSuggestions(e.target.value);\n }\n };\n\n /**\n * Handle adding new test to list\n * @param {String} testName test name\n */\n const handleAddNewTest = (testName) => {\n setRemovableTests((state) => [...state, testName]);\n addedTestSet.current.add(testName.toLowerCase());\n };\n\n /**\n * Handler to remove removable tests\n * @param {String} testName Test name\n */\n const handleRemoveAddedTest = (testName) => {\n const index = removableTests.findIndex((item) => item.toLowerCase() === testName.toLowerCase());\n if (index === -1) return;\n const updatedItems = [...removableTests];\n updatedItems.splice(index, 1);\n addedTestSet.current.delete(testName.toLowerCase());\n setRemovableTests(updatedItems);\n };\n\n /**\n * Handler for Clear All button\n */\n const handleClearAll = () => {\n setRemovableTests([]);\n addedTestSet.current.clear();\n };\n\n /**\n * Get updated spec editing data\n * @returns Array of spec data\n */\n const getSpecEditingData = () => {\n const existingTests = [];\n const newTests = [];\n [...removableTests, ...nonRemovableTests].forEach((test) => {\n if (specEditingData.current[test]) {\n existingTests.push(specEditingData.current[test]);\n } else {\n newTests.push({\n test, removable: true, specs: [\"\", \"\", \"\"], test_type: \"\",\n });\n }\n });\n return [...existingTests, ...newTests];\n };\n\n /**\n * Handler for save button\n */\n const handleSave = async () => {\n const updatedSpecData = getSpecEditingData();\n setIsSaveLoading(true);\n await handleSaveTestList(updatedSpecData);\n setIsSaveLoading(false);\n setShowUpdateTestList(false);\n };\n\n const loading = isLoading || isSaveLoading;\n const disableSave = [...removableTests, ...nonRemovableTests].length === 0 || isLoading;\n\n return (\n
    \n
    \n
    \n

    Select to add test

    \n
    \n \"search\n \n
    \n
    \n \n
    \n
    \n
    \n
    \n

    Test list

    \n \n
    \n \n
    \n
    \n setShowUpdateTestList(false)} disabled={loading}>\n Cancel\n \n \n Save\n {isSaveLoading && }\n \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\n\nimport Scrollbar from \"react-scrollbars-custom\";\n\nimport { AppContext } from \"../../../../../AppContext\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\nimport ConfirmModal from \"./ConfirmModal\";\nimport EditSpecTable from \"./EditSpecTable\";\nimport { checkIfSpecsInvalid } from \"./Helper\";\nimport SpecTable from \"./SpecTable\";\nimport UpdateTestList from \"./UpdateTestList\";\n\nimport { hasPermission } from \"../../../../../utils/common\";\n\nimport watermelon from \"../../../../../assets/images/EmptyState_V2.png\";\nimport backIcon from \"../../../../../assets/images/product/backIconDarkBlue.png\";\n\nimport \"../../../Product.css\";\nimport \"./SpecManager.css\";\nimport \"./EditSpec.css\";\n\nclass EditSpec extends React.Component {\n constructor(props) {\n super(props);\n const { addingSpec, editingSpec } = this.props;\n\n this.state = {\n saveConfirmation: false,\n editing: editingSpec || false,\n // specsComplete: false,\n disableButton: false,\n addingSpecState: addingSpec,\n updateConfirmationLoading: false,\n canAddSpec: hasPermission(\"add_spec\"),\n };\n\n this.handleExitModal = this.handleExitModal.bind(this);\n this.handleEditButtonClicked = this.handleEditButtonClicked.bind(this);\n }\n\n componentDidMount() {\n const {\n addingSpec,\n } = this.props;\n\n if (addingSpec) {\n this.setState({\n editing: true,\n });\n }\n }\n\n componentDidUpdate(prevProps) {\n const { dataOfSpecEditing } = this.props;\n\n if (prevProps.dataOfSpecEditing !== dataOfSpecEditing) {\n const response = checkIfSpecsInvalid(dataOfSpecEditing);\n this.setState({\n disableButton: response,\n });\n }\n\n return true;\n }\n\n componentWillUnmount() {\n const { setShowUpdateTestList } = this.props;\n setShowUpdateTestList(false);\n }\n\n handleClearSpec = (e) => {\n const { dataOfSpecEditing, handleDataChange } = this.props;\n e.preventDefault();\n const specList = dataOfSpecEditing;\n const specListCleared = specList.map((spec) => ({\n test: spec.test,\n test_type: \"\",\n specs: [],\n }));\n handleDataChange(specListCleared);\n // this.props.handleSaveSpec(true);\n }\n\n handleSaveSpec = async (e) => {\n const {\n handleSaveSpec, handleSpecChanged, fromModal, handleClosingEditSpec,\n } = this.props;\n\n this.saveConfirmation(true);\n\n e.preventDefault();\n if (this.state.saveConfirmation) { // eslint-disable-line\n this.setState({ updateConfirmationLoading: true });\n const response = await handleSaveSpec();\n\n if (response === true) {\n if (fromModal) {\n handleClosingEditSpec();\n } else {\n this.setState({\n editing: false,\n addingSpecState: false,\n });\n\n handleSpecChanged(false);\n }\n }\n this.saveConfirmation(false);\n this.setState({ updateConfirmationLoading: false });\n }\n }\n\n handleConfirmationPopup() {\n const { saveConfirmation, addingSpecState, updateConfirmationLoading } = this.state;\n\n if (saveConfirmation && addingSpecState) {\n return (\n { this.setState({ saveConfirmation: false }); }, this.handleSaveSpec]}\n disableConfirmButton={updateConfirmationLoading}\n loadingConfirm={updateConfirmationLoading}\n />\n );\n }\n\n if (saveConfirmation && !addingSpecState) {\n return (\n { this.setState({ saveConfirmation: false }); }, this.handleSaveSpec]}\n disableConfirmButton={updateConfirmationLoading}\n loadingConfirm={updateConfirmationLoading}\n />\n );\n }\n\n return <>;\n }\n\n handleExitModal() {\n const {\n confirmExitModalDisplayToggle, handleExitEdit, specChanged, valueHasBeenEdited,\n } = this.props;\n const { editing } = this.state;\n\n if (editing && specChanged) {\n const response = confirmExitModalDisplayToggle();\n this.setState({\n editing: response,\n });\n } else {\n handleExitEdit(false, valueHasBeenEdited);\n }\n }\n\n handleEditButtonClicked() {\n const { fromModal, dataOfSpecEditing } = this.props;\n this.setState({\n editing: true,\n });\n\n if (!fromModal) {\n if (dataOfSpecEditing.length !== 0) {\n const response = checkIfSpecsInvalid(dataOfSpecEditing);\n this.setState({\n disableButton: response,\n });\n } else {\n this.setState({\n disableButton: false,\n });\n }\n }\n }\n\n /**\n * Handler for back button click\n */\n handleBackButtonClick = () => {\n const { showUpdateTestList, setShowUpdateTestList } = this.props;\n if (showUpdateTestList) {\n setShowUpdateTestList(false);\n } else {\n this.handleExitModal();\n }\n }\n\n callProperUpdateDataFunction = (specList) => {\n const { handleDataChange, handleSpecChanged } = this.props;\n\n handleDataChange(specList);\n handleSpecChanged(true);\n\n const response = checkIfSpecsInvalid(specList);\n this.setState({\n disableButton: response,\n });\n }\n\n saveConfirmation(value) {\n this.setState({\n saveConfirmation: value,\n });\n\n return value;\n }\n\n renderButtons() {\n const {\n editing,\n // specsComplete,\n disableButton,\n addingSpecState,\n } = this.state;\n const { dataOfSpecEditing, setShowUpdateTestList } = this.props;\n\n let title = \"\";\n if (disableButton) {\n title = \"Missing or invalid inputs\";\n }\n\n if (addingSpecState && dataOfSpecEditing.length) {\n return (\n <>\n
    \n
    \n setShowUpdateTestList(true)}\n >\n Update Test List\n \n \n \n Add Specs\n \n \n
    \n \n );\n }\n\n if (!editing && dataOfSpecEditing.length) {\n return (\n <>\n
    \n \n Edit\n \n \n );\n }\n if (dataOfSpecEditing.length) {\n return (\n <>\n
    \n
    \n setShowUpdateTestList(true)}\n >\n Update Test List\n \n \n \n Update Specs\n \n \n
    \n \n );\n }\n return null;\n }\n\n renderTable() {\n const { editing, addingSpecState, canAddSpec } = this.state;\n const {\n addingSpec, dataOfSpecEditing, loading,\n } = this.props;\n\n if (!loading) {\n if (!dataOfSpecEditing.length) {\n return (\n
    \n \n
    \n No Tests Found\n
    \n
    \n );\n }\n if (canAddSpec && (editing || addingSpecState)) {\n return (\n \n );\n }\n\n return (\n \n );\n }\n return null;\n }\n\n renderProductTitle() {\n const { productIdentifierArr } = this.props;\n let title = \"\";\n Object.entries(productIdentifierArr).forEach(\n ([key, value], index) => {\n if (value !== \"\") {\n title += `${index > 0 ? \" \\u2022 \" : \"\"}${key}: ${value}`;\n }\n },\n );\n return title;\n }\n\n render() {\n const {\n fromModal, productIdentifierArr, showUpdateTestList, setShowUpdateTestList,\n dataOfSpecEditing, handleDataChange, handleSaveTestList,\n } = this.props;\n const { canAddSpec } = this.state;\n return (\n
    \n
    \n {!fromModal && (\n \n )}\n \n \n {Object.entries(productIdentifierArr)\n .filter(([, value]) => value !== \"\")\n .map(([key, value], index, array) => (\n \n {`${key}: `}\n {value}\n {index < array.length - 1 && }\n \n ))}\n \n \n
    \n {!showUpdateTestList ? (\n <>\n
    \n {this.renderTable()}\n {this.handleConfirmationPopup()}\n
    \n \n {canAddSpec ? this.renderButtons() : null}\n
    \n \n ) : (\n \n )}\n
    \n );\n }\n}\n\nEditSpec.contextType = AppContext; // allows class component to consume context, access via this.context\nexport default EditSpec;\n","import React from \"react\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport closeFilterIcon from \"../../../../../assets/images/product/lightBlueCancelIcon.png\";\nimport \"./FilterButton.css\";\n\nexport default class FilterButton extends React.Component {\n parseFilter = () => {\n const { handleFilterToggle, filterText } = this.props;\n\n let parsedText = filterText.split(\" \")[1];\n\n if (parsedText === \"Added\") {\n parsedText = \"Added\";\n } else {\n parsedText = \"Pending\";\n }\n handleFilterToggle(parsedText.toLowerCase());\n }\n\n render() {\n const {\n isActive,\n filterText,\n // handleCloseFilterClick,\n disable,\n icon,\n alt,\n } = this.props;\n\n return (\n \n
    \n \n
    {filterText}
    \n {isActive && (\n \n )}\n
    \n \n );\n }\n}\n","import React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport Highlighter from \"react-highlight-words\";\nimport { motion, AnimatePresence } from \"framer-motion/dist/framer-motion\";\n\nimport { has } from \"lodash\";\nimport { Skeleton } from \"antd\";\nimport SkeletonButton from \"antd/es/skeleton/Button\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport NoResults from \"../../../../Common/NoResults\";\nimport Loading from \"../../../../Common/Loading\";\n\nimport pendingIcon from \"../../../../../assets/images/product/plusMidnight.png\";\nimport emptyStateIcon from \"../../../../../assets/images/EmptyState_V2.png\";\n\nimport \"./SpecDisplayTable.css\";\n\nexport default class SpecDisplayTable extends React.Component {\n render() {\n const {\n tableData,\n handleEditSpecClick,\n loadingNewContent,\n specManagerScrollbar,\n loading,\n searchValue,\n fields,\n linkReportJsonFields,\n searchField,\n } = this.props;\n\n const linkReportFields = fields.slice(0, linkReportJsonFields.length);\n\n const handleScrollToBottom = (e) => {\n const { handlePageChangeScroll } = this.props;\n const tolerance = 3;\n const bottom = Math.abs(\n Math.ceil(e.contentScrollHeight - e.scrollTop)\n - Math.ceil(e.clientHeight),\n ) <= tolerance;\n if (bottom) {\n handlePageChangeScroll();\n }\n };\n\n if (!loading && tableData.length === 0) {\n return (\n \n \n \n );\n }\n\n return (\n handleScrollToBottom(e)}\n >\n \n \n {loading && !loadingNewContent && (\n \n \n \n )}\n \n {!(loading && !loadingNewContent) && tableData.map((item, i) => (\n \n \n \n ))}\n \n \n
    \n
    \n \n \n
    \n
    \n \n
    \n \n {\n linkReportFields.map(({ json_field, title_field }, index) => (has(item.identifier, json_field) ? (\n \n {`${title_field}:`}\n \n {index < Object.keys(item.identifier).length - 1 && (\n \n )}\n \n ) : null))\n }\n \n
    \n
    \n {item.status !== \"added\" && item.status !== \"pending\" && (\n
    \n )}\n {item.status === \"added\" && (\n handleEditSpecClick(e, i, \"added\")}\n id=\"productReportSpecManagerSpecEditButton\"\n >\n \n Spec Added\n \n )}\n {item.status === \"pending\" && (\n handleEditSpecClick(e, i, \"pending\")}\n id=\"productReportSpecManagerSpecAddButton\"\n >\n
    \n \n Add Specs\n
    \n \n )}\n
    \n \n
    \n {loadingNewContent && }\n \n );\n }\n}\n","import axios from \"axios\";\nimport { API_URL } from \"../utils/Constant\";\n\nexport const getSpecsData = async (payload, isUpdating = false, signal) => { /* eslint-disable-line import/prefer-default-export */\n try {\n const params = {\n filter: payload.filter,\n search_value: payload.search,\n product_id: payload.product_id,\n specs: payload.specs,\n page: payload.page,\n search_field: payload.search_field,\n };\n let response;\n if (isUpdating) {\n params.action = payload.action ? payload.action : \"update_specs\";\n response = await axios.patch(`${API_URL}/specsmanager/`, params);\n } else {\n response = await axios.get(`${API_URL}/specsmanager/`, { params, signal });\n }\n\n const {\n prev_page_link: prevPageLink, next_page_link: nextPageLink, last_page_link: lastPageLink, total_page: totalPage,\n } = response.data;\n const res = {\n prevPageLink, nextPageLink, lastPageLink, totalPage,\n };\n\n if (response.data.message === \"Success\" || response.data.message === \"success\") {\n return { success: true, files: response.data.result, pages: res };\n } if (response.data.message === \"Specs and status updated, reports from last 30 days updated\") {\n return { success: true };\n }\n\n const message = \"Something went wrong.\";\n return { success: false, message };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message, canceled: e.code === \"ERR_CANCELED\" };\n }\n};\n","import { has, sortBy } from \"lodash\";\n\n/**\n * Filter out display \"0\" fields. Sort linked fields to the beginning, maintain original order by assigning priority by index\n * @param {Array} link_report_fields ex: [\"item\", \"best_by\"]\n * @param {Array} fields ex: [{ \"title_field\": \"Batch\", \"json_field\": \"lot\", \"display\": \"1\", \"unique\": \"1\" }]\n * @returns {Array} filtered and sorted fields\n */\nexport const sortAndFilterProductReportFields = (link_report_fields, fields) => {\n const preprocessedFields = [];\n fields.forEach((elem, i) => {\n if (elem.display !== \"0\") { // Filter out display '0' fields\n preprocessedFields.push({\n ...elem,\n json_field: elem.json_field === \"report_date\" ? \"received_date\" : elem.json_field, // needed for older companies\n originalIdx: i, // Add the field's pre-sorting index to the object, used for reordering.\n });\n }\n });\n /** Sort linked fields to the front */\n return sortBy(\n preprocessedFields,\n ({ json_field }, i) => {\n let priority;\n const linkFieldIdx = link_report_fields.indexOf(json_field);\n if (linkFieldIdx > -1) {\n priority = linkFieldIdx;\n } else {\n priority = link_report_fields.length + i;\n }\n return priority;\n },\n );\n};\n\n/**\n *\n * @param {Object} currObj { json_file1: val1, json_field2: val2, other_field: val3, ...}\n * @param {Array} fields array of field info, linked fields sorted to the beginning [{json_field: \"item\", title: \"Item\"}, {json_field: \"best_by\", title: \"Best By\"}]\n * @param {Array} linkReportJsonFields ex: [\"item\", \"best_by\"]\n * @returns {object} { title_filed1: val1, title_filed2: val2 }\n */\nexport const multipleLinkReportFieldsObjToObj = (currObj, fields, linkReportJsonFields) => { // eslint-disable-line import/prefer-default-export\n const product = {};\n const linkReportFields = fields.slice(0, linkReportJsonFields.length);\n linkReportFields.forEach((field) => {\n const fieldKey = field.title_field;\n const jsonKey = field.json_field;\n if (jsonKey && has(currObj, jsonKey)) {\n product[fieldKey] = currObj[jsonKey];\n }\n });\n return product;\n};\n","import React from \"react\";\nimport { toast } from \"react-toastify\";\nimport { Drawer } from \"antd\";\nimport OutsideClickHandler from \"react-outside-click-handler\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\n\nimport StyledRadioGroup from \"../../../../Common/UIComponents/StyledRadioGroup\";\nimport SpecManagerSearch from \"./SpecManagerSearch\";\nimport EditSpec from \"./EditSpec\";\nimport FilterButton from \"./FilterButton\";\nimport ConfirmModal from \"./ConfirmModal\";\nimport SpecDisplayTable from \"./SpecDisplayTable\";\nimport { getSpecsData } from \"../../../../../actions/specManager\";\nimport {\n parseSpecDetail,\n formatSpec,\n handleCheckUnit,\n checkIfSpecsInvalid,\n} from \"./Helper\";\nimport { multipleLinkReportFieldsObjToObj } from \"../../utils\";\nimport \"../../../Product.css\";\nimport \"./SpecManager.css\";\nimport closeIcon from \"../../../../../assets/images/product/crossWhite.png\";\nimport pendingIcon from \"../../../../../assets/images/addSpecIcon.png\";\nimport addedIcon from \"../../../../../assets/images/specAddedIcon.png\";\n\nclass SpecManager extends React.Component {\n constructor(props) {\n super(props);\n this.specManagerScrollbar = React.createRef();\n const {\n isEditingSpec, productId, productIdentifierArr, linkReportJsonFields,\n } = this.props;\n this.state = {\n filterFlag: \"\",\n files: [],\n editingSpec: isEditingSpec !== undefined ? isEditingSpec : false,\n addingSpec: false,\n productId: productId || \"\",\n dataOfSpecEditing: [],\n confirmExitModalDisplay: false,\n searchValue: \"\",\n searchField: linkReportJsonFields?.length ? linkReportJsonFields[0] : \"\",\n productIdentifierArr: productIdentifierArr ?? [],\n valueHasBeenEdited: false,\n loading: true,\n nextPageLink: \"\",\n loadingNewContent: false,\n loadingEditSpecData: false,\n specDataChanged: false,\n exitingSpecManager: false,\n showFilters: false,\n showUpdateTestList: false,\n };\n }\n\n componentDidMount = async () => {\n const { fromModal, handleClosingEditSpec, linkReportJsonFields } = this.props;\n const {\n filterFlag, searchValue, searchField, productId,\n } = this.state;\n\n if (fromModal) {\n const params = {\n filter: \"\",\n search: \"\",\n search_field: linkReportJsonFields[0],\n product_id: productId,\n specs: \"\",\n page: 1,\n };\n this.setState({ loadingEditSpecData: true });\n const response = await getSpecsData(params);\n\n if (response && response.files) {\n const data = response.files;\n data.forEach((spec) => {\n const specDetail = parseSpecDetail(spec);\n spec.test_type = specDetail.test_type;\n spec.specs = specDetail.specs;\n });\n this.setState({\n dataOfSpecEditing: data,\n loadingEditSpecData: false,\n });\n } else {\n this.setState({ loadingEditSpecData: false });\n toast.error(\"Failed to get spec data.\");\n handleClosingEditSpec();\n }\n } else {\n this.getInitialData(filterFlag, searchValue, searchField, productId);\n }\n };\n\n getInitialData = (\n filterFlag,\n searchValue,\n searchField,\n productId,\n scrollToTop = false,\n ) => {\n this.setState({ loading: true });\n const resp = this.apiGetSpecsData(\n filterFlag,\n searchValue,\n searchField,\n productId,\n scrollToTop,\n ).then((result) => {\n if (result) {\n if (result.success) {\n const { nextPageLink } = result.pages;\n this.setState({\n files: result.files,\n nextPageLink,\n loading: false,\n });\n return result;\n }\n /** Don't set state if canceled */\n if (result.canceled) {\n return result;\n }\n }\n /** If api failed, show no result */\n this.setState({\n files: [],\n nextPageLink: \"\",\n loading: false,\n });\n return null;\n });\n return resp;\n };\n\n handlePageChangeScroll = () => {\n const {\n nextPageLink: reqUrl,\n filterFlag,\n searchValue,\n searchField,\n productId,\n loadingNewContent,\n files: currentFiles,\n } = this.state;\n if (reqUrl !== \"\" && !loadingNewContent) {\n this.setState({ loadingNewContent: true }, () => this.specManagerScrollbar.current.scrollToBottom());\n const page = reqUrl ? reqUrl.split(\"page=\")[1].split(\"&\")[0] : \"1\";\n const scrollToTop = false;\n this.apiGetSpecsData(\n filterFlag,\n searchValue,\n searchField,\n productId,\n scrollToTop,\n page,\n ).then((result) => {\n if (result && result.files) {\n const { nextPageLink } = result.pages;\n this.setState({\n files: [...currentFiles, ...result.files],\n nextPageLink,\n loadingNewContent: false,\n });\n } else {\n this.specManagerScrollbar.current.scrollTop = this.specManagerScrollbar.current.scrollTop - 100; // move scrollbar up to prevent scroll api call infinitely firing\n this.setState({ loadingNewContent: false });\n }\n });\n }\n };\n\n /**\n * Use the AbortController to cancel the last specsmanager/ call if the last call was still in progress.\n * @param {*} controller\n */\n abortPrevApiCall = (controller) => {\n const { apiController } = this.state;\n if (apiController) {\n apiController.abort();\n }\n this.setState({ apiController: controller });\n };\n\n apiGetSpecsData = async (\n filterFlag,\n searchValue,\n searchField,\n productId = \"\",\n scrollToTop = false,\n page = \"1\",\n ) => {\n this.setState({ loading: true });\n if (scrollToTop && this.specManagerScrollbar.current) {\n this.specManagerScrollbar.current.scrollToTop();\n }\n const controller = new AbortController();\n this.abortPrevApiCall(controller);\n const payload = {\n filter: filterFlag,\n search: searchValue,\n search_field: searchField,\n product_id: productId,\n page,\n };\n const result = await getSpecsData(payload, false, controller.signal);\n if (result && result.success) {\n this.setState({ loading: false });\n\n if (result.files.length > 0 && scrollToTop) {\n if (this.specManagerScrollbar.current) {\n this.specManagerScrollbar.current.scrollToTop();\n }\n }\n return result;\n } if (!result.canceled) {\n toast.error(\"Failed to get spec data.\");\n this.setState({ loading: false });\n return null;\n }\n return result;\n };\n\n handleSearchChange = async (value, filter) => {\n const {\n filterFlag, productId,\n } = this.state;\n this.setState({ searchValue: value, searchField: filter });\n const scrollToTop = true;\n this.getInitialData(\n filterFlag,\n value,\n filter,\n productId,\n scrollToTop,\n );\n };\n\n handleCloseFilterClick = (e) => {\n e.stopPropagation();\n this.handleFilterToggle(\"\");\n };\n\n handleFilterToggle = async (filterFlag) => {\n const {\n filterFlag: filterFlagFromState,\n searchValue,\n searchField,\n productId,\n } = this.state;\n if (filterFlag === filterFlagFromState) {\n filterFlag = \"\";\n }\n this.setState({ filterFlag });\n const scrollToTop = true;\n this.getInitialData(\n filterFlag,\n searchValue,\n searchField,\n productId,\n scrollToTop,\n );\n };\n\n apiEditSpecsData = async (params) => {\n const result = await getSpecsData(params, true);\n if (result && result.success) {\n return result;\n }\n return null;\n };\n\n handleEditSpecClick = (e, i, flag) => {\n e.preventDefault();\n e.stopPropagation();\n\n const { files } = this.state;\n const { fields, linkReportJsonFields } = this.props;\n\n let productId;\n if (flag === \"pending\") {\n productId = files[i].product_id;\n this.setState({\n addingSpec: true,\n editingSpec: false,\n productId: files[i].product_id,\n productIdentifierArr: multipleLinkReportFieldsObjToObj(files[i].identifier, fields, linkReportJsonFields),\n });\n } else if (flag === \"added\") {\n productId = files[i].product_id;\n this.setState({\n addingSpec: false,\n editingSpec: true,\n productId: files[i].product_id,\n productIdentifierArr: multipleLinkReportFieldsObjToObj(files[i].identifier, fields, linkReportJsonFields),\n });\n }\n\n if (flag === \"pending\" || flag === \"added\") {\n this.setState({ loadingEditSpecData: true });\n this.apiGetSpecsData(\"\", \"\", \"\", productId).then((result) => {\n let dataOfSpecEditing = result.files;\n dataOfSpecEditing = dataOfSpecEditing.map((spec) => parseSpecDetail(spec));\n this.setState({\n loadingEditSpecData: false,\n dataOfSpecEditing,\n });\n });\n } else {\n toast.error(`Incorrect spec flag: ${flag}`);\n }\n };\n\n refreshEditSpecDataAfterEdit = () => {\n const { productId } = this.state;\n this.setState({ loadingEditSpecData: true });\n this.apiGetSpecsData(\"\", \"\", \"\", productId).then((result) => {\n let dataOfSpecEditing = result.files;\n dataOfSpecEditing = dataOfSpecEditing.map((spec) => parseSpecDetail(spec));\n this.setState({ loadingEditSpecData: false, dataOfSpecEditing });\n });\n };\n\n confirmExitModalDisplayToggle = () => {\n const { confirmExitModalDisplay } = this.state;\n\n this.setState({\n confirmExitModalDisplay: !confirmExitModalDisplay,\n exitingSpecManager: false,\n });\n\n return !confirmExitModalDisplay;\n };\n\n handleDataChange = (specList) => {\n this.setState({ dataOfSpecEditing: [...specList] });\n };\n\n handleExitEditSpec = (\n exitSpecManager = false,\n refreshSpecManagerData = false,\n ) => {\n if (exitSpecManager) {\n const { handleSpecManagerToggle, fromModal, handleClosingEditSpec } = this.props;\n if (fromModal) {\n handleClosingEditSpec();\n } else {\n handleSpecManagerToggle();\n }\n this.setState({\n exitingSpecManager: false,\n specDataChanged: false,\n });\n } else {\n if (refreshSpecManagerData) {\n const { filterFlag, searchValue, searchField } = this.state;\n this.apiGetSpecsData(filterFlag, searchValue, searchField).then((result) => {\n if (result && result.files) {\n const { nextPageLink } = result.pages;\n this.setState({\n files: result.files,\n nextPageLink,\n });\n }\n });\n }\n this.setState({\n editingSpec: false,\n addingSpec: false,\n productId: \"\",\n productIdentifierArr: [],\n confirmExitModalDisplay: false,\n dataOfSpecEditing: [],\n exitingSpecManager: false,\n specDataChanged: false,\n });\n }\n };\n\n handleSaveSpec = async (isSpecCleared = false) => {\n const { productId, dataOfSpecEditing } = this.state;\n const { toggleSpecsUpdated, fromModal } = this.props;\n let specList = formatSpec(dataOfSpecEditing);\n if (checkIfSpecsInvalid(dataOfSpecEditing)) {\n toast.error(\"Invalid or missing value(s).\");\n return false;\n }\n specList = handleCheckUnit(specList);\n\n const params = {\n product_id: productId,\n specs: isSpecCleared ? [] : specList,\n };\n\n let result = false;\n await this.apiEditSpecsData(params).then((response) => {\n this.setState({\n valueHasBeenEdited: true,\n });\n if (response && response.success) {\n toast.success(\"Spec successfully edited.\");\n if (toggleSpecsUpdated) {\n toggleSpecsUpdated(true);\n }\n\n if (!fromModal) {\n this.refreshEditSpecDataAfterEdit();\n }\n\n result = true;\n } else {\n toast.error(\"Failed to edit spec.\");\n }\n });\n\n return result;\n };\n\n /**\n * Call PATCH /specsmanager/ api to update test list for a product\n * @param {Object} specEditingData Spec data for each test of the product as well as newly added tests with default spec data\n * @returns true if success otherwise false\n */\n handleSaveTestList = async (specEditingData) => {\n const { productId } = this.state;\n this.handleDataChange(specEditingData);\n let specList = formatSpec(specEditingData, true);\n specList = handleCheckUnit(specList);\n\n const params = {\n product_id: productId,\n specs: specList,\n action: \"update_test_list\",\n };\n\n let result = false;\n await this.apiEditSpecsData(params).then((response) => {\n this.setState({\n valueHasBeenEdited: true,\n });\n if (response && response.success) {\n toast.success(\"Test list successfully updated.\");\n this.refreshEditSpecDataAfterEdit();\n result = true;\n } else {\n toast.error(\"Failed to update test list.\");\n }\n });\n\n return result;\n };\n\n updateSpecDataChanged = (value) => {\n this.setState({\n specDataChanged: value,\n });\n };\n\n handleCloseSpecManager = () => {\n const { valueHasBeenEdited, specDataChanged } = this.state;\n const {\n handleSpecManagerToggle,\n handleDataRefreshAfterExitingSpecManager,\n fromModal,\n handleClosingEditSpec,\n } = this.props;\n\n if (specDataChanged) {\n this.confirmExitModalDisplayToggle();\n this.setState({\n exitingSpecManager: true,\n });\n } else if (fromModal) {\n handleClosingEditSpec();\n } else {\n handleSpecManagerToggle();\n }\n if (valueHasBeenEdited) {\n handleDataRefreshAfterExitingSpecManager();\n this.setState({\n valueHasBeenEdited: false,\n });\n }\n };\n\n updateShowFilters = (newValue) => {\n this.setState({ showFilters: newValue });\n };\n\n closeFilters = async () => {\n const { searchValue, showFilters } = this.state;\n if (searchValue || !showFilters) {\n return;\n }\n const { linkReportJsonFields } = this.props;\n this.setState({ showFilters: false, searchField: linkReportJsonFields[0] });\n };\n\n /**\n * Set value for showUpdateTestList state\n * @param {Boolean} value show update test list panel\n */\n setShowUpdateTestList = (value) => this.setState({ showUpdateTestList: value });\n\n render() {\n const {\n files,\n filterFlag,\n addingSpec,\n editingSpec,\n dataOfSpecEditing,\n loading,\n productIdentifierArr,\n searchValue,\n searchField,\n confirmExitModalDisplay,\n loadingNewContent,\n exitingSpecManager,\n specDataChanged,\n valueHasBeenEdited,\n loadingEditSpecData,\n showFilters,\n showUpdateTestList,\n } = this.state;\n const {\n linkReportJsonFields,\n fields,\n isEditingSpec,\n fromModal,\n handleClosingEditSpec,\n showSpecManager,\n } = this.props;\n\n return (\n \n Spec Manager\n \n \n )}\n >\n
    \n {addingSpec || editingSpec ? (\n <>\n {!showUpdateTestList && (\n <>\n {addingSpec && (\n
    \n Adding specs here will automatically check and update the\n status of the spec of your reports\n
    \n )}\n {editingSpec && (\n \n Note: Editing the specs here will impact the outcome of all\n the reports associated with these specs.\n
    \n )}\n
    \n \n )}\n \n \n ) : (\n <>\n
    \n this.closeFilters(false)}>\n
    \n \n \n {showFilters && (linkReportJsonFields.length > 1) && (\n
    \n this.handleSearchChange(searchValue, e.target.value)}\n options={fields.slice(0, linkReportJsonFields.length).map((field) => ({\n label: field.title_field,\n value: field.json_field,\n }))}\n />\n
    \n )}\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n \n \n \n \n )}\n
    \n {confirmExitModalDisplay && (\n this.handleExitEditSpec(exitingSpecManager),\n this.confirmExitModalDisplayToggle,\n ]}\n />\n )}\n \n );\n }\n}\nexport default SpecManager;\n","import React, { createContext, useState } from \"react\";\nimport { flexRender } from \"@tanstack/react-table\";\nimport \"./ReportsTableRow.css\";\n\nexport const ReportsTableRowContext = createContext();\n\nexport default function ReportsTableRow({\n row,\n enableRowSelection,\n handleRowSelection,\n}) {\n const [checkboxLoading, setCheckboxLoading] = useState(false);\n\n const onRowSelect = async () => {\n setCheckboxLoading(true);\n await handleRowSelection(row);\n setCheckboxLoading(false);\n };\n\n const disableRow = enableRowSelection && row.original.specs_flag === \"0\";\n\n return (\n \n \n {row.getVisibleCells().map((cell) => {\n const isEmpty = (cell.getValue() === undefined || cell.getValue().trim() === \"\");\n const {\n className, align, onClick, cell: cellRenderer,\n } = cell.column.columnDef;\n return (\n onClick(row.id, e) : null}\n >\n {flexRender(cellRenderer, cell.getContext())}\n \n );\n })}\n \n \n );\n}\n","import React, { useContext } from \"react\";\nimport Highlighter from \"react-highlight-words\";\nimport { Checkbox, Spin } from \"antd\";\nimport { LoadingOutlined } from \"@ant-design/icons\";\nimport moment from \"moment\";\nimport \"./ReportsTableFieldCell.css\";\nimport { ReportsTableRowContext } from \"./ReportsTableRow\";\n\nexport default function ReportsTableFieldCell({\n rowData,\n jsonField,\n searchValToHighlight,\n showCheckbox,\n}) {\n const { onRowSelect, checkboxLoading } = useContext(ReportsTableRowContext);\n /**\n * Get value for the cell.\n * @param {Object} item row data\n * @param {String} jsonField\n * @returns {String}\n */\n const getJsonFieldDataForDisplay = (val) => {\n if (jsonField === \"received_date\") {\n return moment(new Date(val)).format(\"MM/DD/YYYY\");\n }\n\n if (val) {\n return val;\n }\n\n return \"\";\n };\n\n const isEmpty = rowData.getValue() === undefined || rowData.getValue().trim() === \"\";\n const enableRowCheckBox = showCheckbox && rowData.row.original.specs_flag !== \"0\"; // Allow row selection if sample is not \"in-process\"\n return (\n
    \n {showCheckbox && (\n <>\n {checkboxLoading && (} />)}\n {!checkboxLoading && (\n { e.stopPropagation(); }}\n checked={rowData.row.getIsSelected()}\n />\n )}\n \n )}\n {isEmpty ? (\n
    \n
    \n {\" \"}\n
    \n
    \n ) : (\n \n )}\n
    \n );\n}\n","/* eslint-disable import/prefer-default-export */\nimport inProcessIcon from \"../../../assets/images/common/spec-flag-icons/InProcessIcon.svg\";\nimport inSpecIcon from \"../../../assets/images/common/spec-flag-icons/InSpecIcon.svg\";\nimport outOfSpecIcon from \"../../../assets/images/common/spec-flag-icons/OutOfSpecIcon.svg\";\nimport incompleteIcon from \"../../../assets/images/common/spec-flag-icons/IncompleteIcon.svg\";\n\nexport const SPEC_FLAGS_MAP = {\n invalid: {\n label: \"-\",\n color: \"#19305A\",\n icon: incompleteIcon,\n },\n \"-3\": {\n label: \"Deleted by Lab\",\n color: \"#E63559\",\n icon: outOfSpecIcon,\n },\n 0: {\n label: \"In Process\",\n color: \"#E1B226\",\n icon: inProcessIcon,\n },\n 1: {\n label: \"In Spec\",\n color: \"#1EC04A\",\n icon: inSpecIcon,\n },\n 2: {\n label: \"Out of Spec\",\n color: \"#E63559\",\n icon: outOfSpecIcon,\n },\n 3: {\n label: \"Spec Incomplete\",\n altLabel: \"View Report\",\n color: \"#6C7E8E\",\n icon: incompleteIcon,\n },\n 4: {\n label: \"In Process (Retest)\",\n color: \"#E1B226\",\n icon: inProcessIcon,\n },\n 5: {\n label: \"In Spec (Retest)\",\n color: \"#1EC04A\",\n icon: inSpecIcon,\n },\n 6: {\n label: \"Out of Spec (Retest)\",\n color: \"#E63559\",\n icon: outOfSpecIcon,\n },\n};\n","import { SPEC_FLAGS_MAP } from \"../../../../Common/constants/SpecFlagConstants\";\n\nexport const MAX_RETESTS_ALLOWED = 3;\n\nexport const VALID_SPECS_SET = new Set([\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\"]);\n\nexport const getColorForTestResult = (specList) => {\n const parsedList = [];\n\n specList.forEach((element) => {\n const parsedElement = {};\n const {\n test_result: result,\n test_spec: specs,\n test,\n test_spec_flag,\n test_detail,\n } = element;\n let color;\n\n parsedElement.result = result;\n parsedElement.specs = specs;\n parsedElement.test = test;\n parsedElement.detail = test_detail;\n parsedElement.test_spec_flag = test_spec_flag;\n\n if (element.test_spec_flag && element.test_spec_flag === \"-\") {\n color = SPEC_FLAGS_MAP.invalid;\n parsedElement.color = color;\n } else {\n color = SPEC_FLAGS_MAP[element.test_spec_flag].color;\n parsedElement.color = color;\n }\n parsedList.push(parsedElement);\n });\n return parsedList;\n};\n\nexport const getColorForPesticideResults = (compoundSpecs) => {\n const specData = {};\n\n Object.keys(compoundSpecs).forEach((country) => {\n const specs = compoundSpecs[country];\n specData[country] = specs.map((spec) => {\n spec.color = SPEC_FLAGS_MAP[spec.compound_spec] ? SPEC_FLAGS_MAP[spec.compound_spec].color : SPEC_FLAGS_MAP.invalid.color;\n return spec;\n });\n });\n\n return specData;\n};\n\nexport const getCountriesSpecsFlagColors = (countriesSpecsFlags) => {\n const entries = Object.entries(countriesSpecsFlags).map(([code, specFlag]) => {\n let color;\n if (specFlag) {\n color = specFlag === \"3\" ? \"#000000\" : SPEC_FLAGS_MAP[specFlag].color;\n } else {\n color = SPEC_FLAGS_MAP.invalid.color;\n }\n return [code, color];\n });\n return new Map(entries);\n};\n","import React from \"react\";\nimport \"./ReportsTableSpecCell.css\";\nimport { VALID_SPECS_SET } from \"../Components/ReportSpecs/helper\";\nimport { SPEC_FLAGS_MAP } from \"../../../Common/constants/SpecFlagConstants\";\n\nexport default function ReportsTableSpecCell({\n rowData,\n}) {\n const specs_flag = rowData.getValue();\n const isValidSpec = specs_flag?.toString() && VALID_SPECS_SET.has(specs_flag.toString());\n if (isValidSpec) {\n return (\n
    \n \n \n {SPEC_FLAGS_MAP[specs_flag].altLabel ?? SPEC_FLAGS_MAP[specs_flag].label}\n \n
    \n );\n }\n return null;\n}\n","var _path, _path2, _path3;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgArrowTagButton2X = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.99996 18.3332C14.6023 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6023 1.6665 9.99996 1.6665C5.39759 1.6665 1.66663 5.39746 1.66663 9.99984C1.66663 14.6022 5.39759 18.3332 9.99996 18.3332Z\",\n stroke: \"#77CCEE\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 13.3332L13.3333 9.99984L10 6.6665\",\n stroke: \"#77CCEE\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.66663 10H13.3333\",\n stroke: \"#77CCEE\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgArrowTagButton2X, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/arrowTagButton2x.c244b31c.svg\";\nexport { ForwardRef as ReactComponent };","// src/HorizontalScroll.js\nimport React, { useEffect, useRef, useState } from \"react\";\nimport \"./HorizontalScroll.css\";\nimport { ReactComponent as ArrowButton } from \"../../../assets/images/arrowTagButton2x.svg\";\n\nconst HorizontalScroll = ({ children, containerClassName = \"\" }) => {\n const containerRef = useRef(null);\n const [canScroll, setCanScroll] = useState(false);\n const [canScrollLeft, setCanScrollLeft] = useState(false);\n const [canScrollRight, setCanScrollRight] = useState(false);\n\n useEffect(() => {\n const ref = containerRef.current;\n const checkScroll = () => {\n if (ref) {\n const { scrollLeft, scrollWidth, clientWidth } = ref;\n setCanScroll(scrollWidth > clientWidth);\n setCanScrollLeft(scrollLeft > 0);\n setCanScrollRight(Math.ceil(scrollLeft + clientWidth) < scrollWidth);\n }\n };\n\n checkScroll();\n\n window.addEventListener(\"resize\", checkScroll);\n ref.addEventListener(\"scroll\", checkScroll);\n\n return () => {\n window.removeEventListener(\"resize\", checkScroll);\n ref.removeEventListener(\"scroll\", checkScroll);\n };\n }, [children]);\n\n const scroll = (direction) => {\n const { current } = containerRef;\n if (current) {\n const scrollAmount = 200; // Adjust this value as needed\n current.scrollBy({ left: direction * scrollAmount, behavior: \"smooth\" });\n }\n };\n\n return (\n
    \n {canScrollLeft && canScroll && (\n \n )}\n
    \n {children}\n
    \n {canScrollRight && canScroll && (\n \n )}\n
    \n );\n};\n\nexport default HorizontalScroll;\n","import React from \"react\";\nimport moment from \"moment\";\n\nexport default function PreviewDateBlock(props) {\n const {\n date, active, updateActiveDate,\n } = props;\n\n const year = moment(new Date(date)).format(\"YY\");\n const month = moment(new Date(date)).format(\"MMM\");\n const day = moment(new Date(date)).format(\"DD\");\n\n return (\n
    updateActiveDate(date)}>\n
    \n {day}\n
    \n\n
    \n {month}\n {\" \"}\n {year}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport PreviewDateBlock from \"./PreviewDateBlock\";\n\nimport \"./PreviewDatePicker.css\";\n\nexport default function PreviewDatePicker(props) {\n const { data, updateActiveDate, activeDate } = props;\n\n return (\n
    \n
    \n {data.map((item, index) => {\n if (item === null) return null;\n const date = item.date;\n let active = false;\n if (date === activeDate) active = true;\n\n return ;\n })}\n
    \n\n {/*
    */}\n
    \n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgDownloadIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_31_8578)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M3 19.5C3 19.2239 3.22386 19 3.5 19H20.5C20.7761 19 21 19.2239 21 19.5V20.5C21 20.7761 20.7761 21 20.5 21H3.5C3.22386 21 3 20.7761 3 20.5V19.5ZM13 13.172L18.7174 7.45361C18.9127 7.25832 19.2293 7.25831 19.4246 7.45358L20.1315 8.16047C20.3267 8.35572 20.3267 8.67229 20.1315 8.86755L12.3536 16.6464C12.1583 16.8417 11.8417 16.8417 11.6464 16.6464L3.86843 8.86843C3.67322 8.67322 3.67316 8.35673 3.8683 8.16145L4.57548 7.45377C4.77071 7.25841 5.08736 7.25834 5.28268 7.45362L11 13.17V2.5C11 2.22386 11.2239 2 11.5 2H12.5C12.7761 2 13 2.22386 13 2.5V13.172Z\",\n fill: \"current\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 3,\n y: 19,\n width: 18,\n height: 2,\n fill: \"#26ABE1\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_31_8578\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgDownloadIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/DownloadIcon.b30693a4.svg\";\nexport { ForwardRef as ReactComponent };","import React, { Component } from \"react\";\n\nimport Modal from \"antd/es/modal/Modal\";\nimport PDFMerger from \"pdf-merger-js/browser\";\nimport { Carousel } from \"react-responsive-carousel\";\nimport { toast } from \"react-toastify\";\n\nimport HorizontalScroll from \"../../../../Common/HorizontalScroll/HorizontalScroll\";\nimport NoResults from \"../../../../Common/NoResults\";\nimport PdfPreview from \"../../../../Common/PdfPreview\";\nimport PreviewDatePicker from \"./PreviewDatePicker\";\n\nimport { getFileFromS3WithPresigned } from \"../../../../../utils/helpers\";\n\nimport emptyStateIcon from \"../../../../../assets/images/EmptyState_V2.png\";\nimport cancelBtn from \"../../../../../assets/images/product/crossWhite.png\";\n\nimport \"react-responsive-carousel/lib/styles/carousel.min.css\";\nimport \"./ReportPreviewModal.css\";\n\nexport default class ReportPreviewModal extends Component {\n constructor(props) {\n super(props);\n\n const { filePaths } = props;\n const recentEntries = this.getSortedFileEntries(filePaths);\n const categories = this.setCategories(recentEntries);\n const activeDate = recentEntries[0][0];\n const selectedCategory = categories[activeDate][0];\n const reportDates = recentEntries.map((entry) => ({ date: entry[0] }));\n\n this.state = {\n currentSlide: 0,\n loadingFiles: true,\n previewUrlList: [{ url: null }],\n activeDate,\n modalIsAnimating: true,\n categories,\n selectedCategory,\n dateCategoryList: [],\n reportDates,\n };\n }\n\n componentDidMount() {\n this.handleFetchAndMergeFiles();\n }\n\n setCategories = (fileEntries) => fileEntries.reduce((acc, entry) => {\n acc[entry[0]] = Object.keys(entry[1]);\n return acc;\n }, {});\n\n handleFetchAndMergeFiles = () => {\n const { filePaths } = this.props;\n if (!filePaths || Object.keys(filePaths).length < 1) {\n toast.error(\"Unable to preview, no valid file path for this report!\");\n return;\n }\n\n this.setState({ loadingFiles: true });\n const recentEntries = this.getSortedFileEntries(filePaths);\n const files = recentEntries.map((entry) => {\n const [date, data] = entry;\n return Object.entries(data).map((f) => [date, ...f]);\n }).flat();\n\n Promise.all(files.map(async (fileData) => {\n const [date, category, filepaths] = fileData;\n const fileTempArr = Array.from(new Set(filepaths));\n return Promise.all(fileTempArr.map(async (fileTemp) => this.getFileFromAWS(fileTemp))).then(async (allPreviewFiles) => {\n const successfullyFetched = allPreviewFiles.filter((file) => file !== null); // null means file failed to fetch, don't merge it\n if (!successfullyFetched.length) throw new Error(\"Failed to fetch files\");\n return this.mergePDFs(successfullyFetched, date, category);\n });\n })).then((mergedPreviewFiles) => {\n const previewUrlList = mergedPreviewFiles;\n const dateCategoryList = mergedPreviewFiles.map((fileData) => `${fileData.date}-${fileData.category}`);\n this.setState({\n loadingFiles: false,\n previewUrlList,\n currentSlide: 0,\n dateCategoryList,\n });\n }).catch((error) => {\n this.setState({\n loadingFiles: false,\n });\n toast.error(error.message);\n });\n };\n\n getSortedFileEntries = (filePaths) => {\n const entriesByDate = Object.entries(filePaths);\n return entriesByDate.sort((a, b) => Date.parse(b[0]) - Date.parse(a[0]));\n }\n\n /* Fetches file from correct (private or public) s3 bucket. Returns blob if successful, null otherwise. */\n getFileFromAWS = async (fileTemp) => {\n const privateS3Bucket = fileTemp.includes(\"COAs/\");\n const fileName = fileTemp.split(\"/\").pop();\n const fileBlobObj = await getFileFromS3WithPresigned([fileTemp], privateS3Bucket ? \"private\" : \"public\");\n if (fileBlobObj) {\n return { fileName, file: fileBlobObj[fileTemp] };\n }\n return null;\n };\n\n /* if there are multiple pdfs for a single date in preview, merge into one pdf */\n mergePDFs = async (fileBlobs, date, category) => {\n /** Merge */\n if (fileBlobs.length > 1) {\n const merger = new PDFMerger();\n const fileNames = [];\n return Promise.all(fileBlobs.map(async ({ fileName, file }) => { // eslint-disable-line\n fileNames.push(fileName);\n return merger.add(file);\n })).then(async () => { // eslint-disable-line\n const mergedPdf = await merger.saveAsBlob();\n const FileTemp = new File([mergedPdf], \"name\");\n const pdfURL = window.URL.createObjectURL(mergedPdf);\n const filesObj = {\n url: pdfURL,\n privateS3: true,\n file: FileTemp,\n blob: mergedPdf,\n name: fileNames.join(),\n date,\n category,\n };\n return filesObj;\n });\n }\n\n /** Don't need to merge if there's only one pdf */\n if (fileBlobs.length === 1) {\n const { fileName, file } = fileBlobs[0];\n const FileTemp = new File([file], \"name\");\n const pdfURL = window.URL.createObjectURL(file);\n const filesObj = {\n url: pdfURL,\n privateS3: true,\n file: FileTemp,\n blob: file,\n name: fileName,\n date,\n category,\n };\n return filesObj;\n }\n\n const filesObj = {\n url: \"\",\n date,\n };\n\n return filesObj;\n };\n\n handleDateChanged = (date) => {\n this.setState((state) => {\n const { dateCategoryList } = state;\n const category = state.categories[date][0];\n const slideIndex = dateCategoryList.indexOf(`${date}-${category}`);\n return {\n activeDate: date,\n currentSlide: slideIndex,\n selectedCategory: state.categories[date][0],\n };\n });\n }\n\n handleCategoryChange = (category) => {\n const { activeDate, dateCategoryList } = this.state;\n const slideIndex = dateCategoryList.indexOf(`${activeDate}-${category}`);\n this.setState({\n currentSlide: slideIndex,\n selectedCategory: category,\n });\n }\n\n render() {\n const { handleCloseForPreview } = this.props;\n const {\n currentSlide, activeDate, modalIsAnimating, previewUrlList, loadingFiles,\n categories, selectedCategory, reportDates,\n } = this.state;\n const carouselStyle = { margin: \"-40px\" };\n\n return (\n handleCloseForPreview()}\n className=\"ReportPreviewModal\"\n width=\"40vw\"\n afterOpenChange={() => this.setState({ modalIsAnimating: false })}\n >\n
    \n COA\n handleCloseForPreview()}\n />\n
    \n
    \n {Object.keys(categories).length > 1 && }\n\n {!loadingFiles && Object.keys(categories).length > 0 && categories[activeDate].length > 1 && (\n \n {categories[activeDate].map((category) => (\n this.handleCategoryChange(category)}\n className={`ProductReportPreviewModal__CategoryListItem ${category === selectedCategory ? \"ProductReportPreviewModal__CategoryListItem__Selected\" : \"\"}`}\n >\n {category}\n \n ))}\n \n )}\n\n 1}\n style={carouselStyle}\n >\n {previewUrlList.map((item, index) => (\n \n {item.url || loadingFiles ? (\n \n ) : (\n
    \n \n
    \n )}\n
    \n ))}\n {/* {!previewUrlList[currentSlide] && !previewUrlList[currentSlide].url ? (\n \n ) : (\n\n )} */}\n \n
    \n \n );\n }\n}\n","var _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgPreviewIconDefault = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 20C4.477 20 0 15.523 0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20ZM10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18Z\",\n fill: \"current\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.622 6.415L13.501 9.667C13.5559 9.70351 13.6009 9.75302 13.632 9.81111C13.6631 9.86921 13.6794 9.93409 13.6794 10C13.6794 10.0659 13.6631 10.1308 13.632 10.1889C13.6009 10.247 13.5559 10.2965 13.501 10.333L8.621 13.585C8.56083 13.6249 8.49098 13.6477 8.41887 13.6512C8.34676 13.6546 8.27507 13.6384 8.21141 13.6043C8.14774 13.5703 8.09448 13.5197 8.05726 13.4578C8.02004 13.396 8.00025 13.3252 8 13.253V6.747C8.00013 6.67465 8.01989 6.60369 8.05716 6.54168C8.09443 6.47967 8.14782 6.42893 8.21165 6.39486C8.27547 6.36079 8.34734 6.34467 8.41961 6.34822C8.49187 6.35177 8.56182 6.37485 8.622 6.415Z\",\n fill: \"current\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgPreviewIconDefault, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/PreviewIconDefault.063b8367.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\n\nimport { toast } from \"react-toastify\";\n\nimport ReportPreviewModal from \"../Preview/ReportPreviewModal\";\nimport { VALID_SPECS_SET } from \"../ReportSpecs/helper\";\n\nimport { downloadFileFromS3WithPresigned } from \"../../../../../utils/helpers\";\n\nimport { ReactComponent as DownloadIcon } from \"../../../../../assets/images/DownloadIcon.svg\";\n// import { ReactComponent as ShareIcon } from \"../../../../../assets/images/ShareIcon.svg\";\nimport { ReactComponent as PreviewIcon } from \"../../../../../assets/images/PreviewIconDefault.svg\";\nimport loadingIcon from \"../../../../../assets/images/product/refreshCircleBlack.png\";\n\nimport \"./ReportButtons.css\";\n\nexport default function ReportButtons({\n item,\n // toggleShareModal,\n}) {\n const [showPreview, setShowPreview] = useState(false);\n\n /**\n * Handles the download of files for a report.\n * Checks if a valid file path exists for the report, then proceeds to download\n * all files associated with the report. It keeps track of the total number of\n * files and the number of files successfully downloaded, displaying a success\n * or warning message accordingly.\n * @param {none}\n * @return {none}\n */\n const handleDownloadFile = () => {\n if (!item.path || Object.keys(item.path).length < 1) {\n toast.error(\"Unable to download, no valid file path for this report!\");\n return;\n }\n\n const files = Object.entries(item.path);\n let totalFiles = 0;\n let filesDownloaded = 0;\n Promise.all(files.map(async (fileData) => {\n const fileTempSet = Object.values(fileData[1]);\n const fileTempArr = Array.from(fileTempSet);\n\n return Promise.all(fileTempArr.map(async (fileTemp) => {\n totalFiles += fileTemp.length;\n\n return Promise.all(fileTemp.map(async (filePath) => {\n const fileName = filePath.split(\"/\").pop();\n const isPrivateS3Bucket = filePath.includes(\"COAs/\");\n const s3Bucket = isPrivateS3Bucket ? \"private\" : \"public\";\n\n const success = await downloadFileFromS3WithPresigned([filePath], s3Bucket, [fileName]);\n if (success) {\n filesDownloaded++;\n } else {\n throw new Error(\"Failed to download files\");\n }\n }));\n }));\n })).then(() => {\n if (filesDownloaded === totalFiles) {\n toast.success(`Successfully downloaded ${filesDownloaded}/${totalFiles} files.`);\n } else {\n toast.warning(`Downloaded ${filesDownloaded}/${totalFiles} files.`);\n }\n }).catch((error) => {\n toast.error(error.message);\n });\n };\n\n if (item.specs_flag === \"0\") {\n return (\n
    \n \n \n Test In Process\n \n
    \n );\n }\n\n const enableButtons = VALID_SPECS_SET.has(item.specs_flag.toString()) && item.path && Object.keys(item.path).length > 0;\n\n return (\n <>\n {showPreview && setShowPreview(false)} />}\n
    \n setShowPreview(true) : null}\n />\n \n {/* toggleShareModal(i, true) : null}\n /> */}\n
    \n \n\n );\n}\n","import React from \"react\";\nimport \"./ReportsTableActionsCell.css\";\nimport ReportButtons from \"../Components/ReportButtons/ReportButtons\";\n\nexport default function ReportsTableActionsCell({\n item,\n}) {\n return (\n
    \n \n
    \n );\n}\n","import React from \"react\";\nimport moment from \"moment\";\n\nexport default function DateBlock(props) {\n const {\n date, active, index, updateActiveDate, disabled,\n } = props;\n const momentDate = moment(new Date(date));\n const year = momentDate.format(\"YY\");\n const month = momentDate.format(\"MMM\");\n const day = momentDate.format(\"DD\");\n\n let containerClasses = \"dateBlockContainer\";\n if (active) {\n containerClasses += \" dateBlockContainerActive\";\n } else if (disabled) {\n containerClasses += \" disabled\";\n }\n\n return (\n
    updateActiveDate(date, index)}>\n
    \n {(momentDate.isValid()) ? day : date}\n
    \n\n
    \n {(momentDate.isValid()) ? month : \"\"}\n {\" \"}\n {(momentDate.isValid()) ? year : \"\"}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport DateBlock from \"./DateBlock\";\nimport arrow from \"../../../../../assets/images/product/grayArrowLeft.png\";\nimport disabledArrow from \"../../../../../assets/images/product/disabledGrayArrowLeft.png\";\n\nimport \"./DatePicker.css\";\n\nexport default function DatePicker(props) {\n const {\n data, updateActiveDate, activeDate, currentSlide, totalSlides, disabled,\n } = props;\n\n const dataSorted = data.sort((a, b) => Date.parse(b[0]) - Date.parse(a[0]));\n\n return (\n
    \n { (currentSlide === 0 || disabled)\n ? (\n
    \n \"prevArrow\"\n
    \n )\n : (\n
    updateActiveDate(null, null, -1)}>\n \"prevArrow\"\n
    \n )}\n {dataSorted.map((item, index) => {\n if (item === null) return null;\n const date = item[0];\n let active = false;\n if (date === activeDate) active = true;\n return ;\n })}\n { (currentSlide === totalSlides - 1 || disabled)\n ? (\n
    \n \"nextArrow\"\n
    \n )\n : (\n
    updateActiveDate(null, null, 1)}>\n \"nextArrow\"\n
    \n )}\n
    \n );\n}\n","import React, { Component } from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport \"./RequestRetestModal.css\";\n\nexport default class RequestRetestModal extends Component {\n render() {\n const {\n hideRequestRetestModal,\n confirmRetest,\n currNumOfRetests,\n maxNumOfRetests,\n testToRetest,\n awaitingRetestRequest,\n } = this.props;\n\n const numberMap = [\"first\", \"second\", \"third and final\"];\n const testSet = new Set(testToRetest);\n\n return (\n \n\n
    \n \n The sample will be retested for the following tests\n \n {testSet.size > 10 ? (\n
    \n \n
    \n {Array.from(testSet).map((test, index) => (\n {test}\n ))}\n
    \n
    \n
    \n ) : (\n
    \n {Array.from(testSet).map((test, index) => (\n {test}\n ))}\n
    \n )}\n
    \n \n {`Please note a maximum of ${maxNumOfRetests} retests allowed.`}\n \n \n {`This is your ${numberMap[currNumOfRetests]} request (${currNumOfRetests + 1}/${maxNumOfRetests}).`}\n \n
    \n\n
    \n \n
    \n Cancel\n
    \n \n\n \n
    \n Submit\n
    \n \n
    \n
    \n \n );\n }\n}\n","import React from \"react\";\nimport \"./CheckboxInput.css\";\n\nexport default function CheckboxInput(props) {\n const {\n handleCheckClicked,\n disabled,\n checked,\n index,\n } = props;\n\n if (disabled) {\n return (\n \n );\n }\n\n return (\n \n );\n}\n","import React, {\n useState, useEffect, useCallback, useRef,\n} from \"react\";\nimport { toast } from \"react-toastify\";\nimport { Carousel } from \"react-responsive-carousel\";\nimport \"react-responsive-carousel/lib/styles/carousel.min.css\";\nimport moment from \"moment\";\nimport CountriesCheckboxList from \"../../../../Common/UIComponents/CountriesCheckboxList\";\nimport { getReportSpecDetail, updatePesticideCountrySpecDetails } from \"../../../../../actions/reports\";\nimport watermelon from \"../../../../../assets/images/EmptyState_V2.png\";\nimport BackArrowIcon from \"../../../../../assets/images/backArrowIcon.png\";\nimport AddIconBlue from \"../../../../../assets/images/AddIconBlue.png\";\nimport { ReactComponent as LoadingDots } from \"../../../../../assets/images/common/LoadingDots.svg\";\nimport \"./DetailedPesticideReport.css\";\nimport { getColorForPesticideResults, getCountriesSpecsFlagColors } from \"./helper\";\nimport HorizontalScroll from \"../../../../Common/HorizontalScroll/HorizontalScroll\";\n\nfunction DetailedPesticideReport({\n enableTestSelection = false,\n onClose,\n reportData,\n activeDate,\n}) {\n const [loadingData, setLoadingData] = useState(true);\n const [countries, setCountries] = useState([]);\n const [selectedCountries, setSelectedCountries] = useState([]);\n const [selectCountryTab, setSelectCountryTab] = useState(selectedCountries[0]);\n const [reportDetail, setReportDetail] = useState(null);\n const [countryColor, setCountryColor] = useState(new Map());\n const isMounted = useRef(false);\n const hasCountryListChanged = useRef(false);\n\n /**\n * Extract countries data for CountriesCheckboxList\n * @param {Array} countries_lst Array of countries_lst\n */\n const getCountriesDataForPesticideTest = (countries_lst = []) => {\n const countriesSpecData = {\n countriesList: [],\n selectedCountries: [],\n };\n countries_lst.forEach((countryData) => {\n countriesSpecData.countriesList.push(countryData.country);\n if (countryData.selected) {\n countriesSpecData.selectedCountries.push(countryData.country);\n }\n });\n return countriesSpecData;\n };\n\n /**\n * Makes api call to fetch detailed report\n */\n const apiGetReportDetail = useCallback(async () => {\n const {\n sample_id, sample_type, received_date: receivedDate, report_date,\n } = reportData;\n const received_date = moment(new Date(receivedDate)).format(\"YYYY/MM/DD\");\n const fReportData = report_date ? moment(new Date(report_date)).format(\"YYYY/MM/DD\") : received_date;\n const fActiveDate = moment(new Date(activeDate)).format(\"YYYY/MM/DD\");\n const retest_date = fReportData !== fActiveDate ? fActiveDate : null;\n const response = await getReportSpecDetail({\n sample_id, sample_type, received_date, retest_date,\n });\n return response;\n }, [reportData, activeDate]);\n\n /**\n * Set detailed report to state\n */\n const fetchReportDetails = useCallback(async () => {\n setLoadingData(true);\n const data = await apiGetReportDetail();\n if (data.success) {\n if (data.result) {\n const details = data.result;\n if (details.pesticides_specs_details.length > 0) {\n const report = details.pesticides_specs_details[0];\n const specData = getColorForPesticideResults(report.pesticides_compound_specs);\n setReportDetail(specData);\n }\n // Set country tab text color from api\n setCountryColor(getCountriesSpecsFlagColors(details.countries_specs_flag));\n\n // Set commodity as Sample type\n // setPesticideCommodity(details.pesticide_commodity); //NOTE: value not being used, kept for future iteration\n\n // Set countries list for CountriesCheckboxList\n const countryList = getCountriesDataForPesticideTest(details.countries_lst);\n setCountries(countryList.countriesList);\n setSelectedCountries(countryList.selectedCountries);\n setSelectCountryTab(countryList.selectedCountries[0]);\n }\n } else {\n toast.error(data.message);\n }\n setLoadingData(false);\n }, [apiGetReportDetail]);\n\n useEffect(() => {\n if (!isMounted.current) {\n fetchReportDetails();\n }\n isMounted.current = true;\n }, [fetchReportDetails]);\n\n /**\n * Handle country dropdown save event\n */\n const handleCountryDropdownSave = async (countries_lst) => {\n setLoadingData(true);\n const result = await updatePesticideCountrySpecDetails(countries_lst);\n setLoadingData(false);\n if (result && result.success) {\n fetchReportDetails();\n hasCountryListChanged.current = true;\n } else {\n toast.error(\"Unable to update\");\n }\n };\n\n /**\n * Select country to show detailed report table\n * @param {string} country country name\n */\n const selectMRLWithCountry = (country) => {\n if (!selectedCountries.includes(country)) return;\n setSelectCountryTab(country);\n };\n\n if (loadingData) {\n return (\n
    \n \n
    \n );\n }\n\n return (\n <>\n
    \n \n \n \n \n \n {selectedCountries.map((country, i) => (\n selectMRLWithCountry(country)}\n >\n {country}\n \n ))}\n \n
    \n {!selectCountryTab || (reportDetail && !reportDetail[selectCountryTab]) ? (\n
    \n \n
    \n No Tests Found\n
    \n
    \n ) : reportDetail && (\n 1}\n >\n {selectedCountries.map((country) => (\n \n \n \n \n \n \n \n \n \n {reportDetail[selectCountryTab] && reportDetail[selectCountryTab].map((detail) => (\n \n \n \n \n \n ))}\n \n
    ParameterMRLResults
    \n
    \n {detail.compound_name}\n
    \n
    \n {detail.compound_mrl ? detail.compound_mrl : \"-\"}\n \n
    {detail.compound_result}
    \n
    \n ))}\n \n )}\n \n );\n}\nexport default DetailedPesticideReport;\n","import React from \"react\";\nimport { AnimatePresence, motion } from \"framer-motion/dist/framer-motion\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport CheckboxInput from \"./CheckboxInput\";\n\nimport \"./SampleTestResultTable.css\";\nimport DetailedPesticideReport from \"./DetailedPesticideReport\";\n\nexport default class SampleTestResultTable extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n hasSpecs: true,\n testCheckboxVals: [],\n };\n }\n\n componentDidMount() {\n const { tableData, isPickingRetests } = this.props;\n /** Parse the tableData and check if at least one test has specs. Initialize checkboxes to false. */\n const testCheckboxVals = [];\n let hasSpecs = false;\n if (tableData.length > 0) {\n for (let i = 0; i < tableData.length; i++) {\n testCheckboxVals.push(false);\n if (tableData[i].specs !== \"-\") {\n hasSpecs = true;\n if (!isPickingRetests) {\n break;\n }\n }\n }\n }\n\n this.setState({\n hasSpecs,\n testCheckboxVals,\n });\n }\n\n /**\n * Set all checkboxes to false,\n * clears selection for next time\n * user is picking tests\n */\n clearCheckboxes = () => {\n const testCheckboxVals = [];\n const { tableData } = this.props;\n if (tableData.length > 0) {\n for (let i = 0; i < tableData.length; i++) {\n testCheckboxVals.push(false);\n }\n }\n this.setState({\n testCheckboxVals,\n });\n }\n\n /**\n * Set test as checked in state,\n * add test to list of selected tests.\n * @param {Number} idx index of test in tableData\n */\n handleCheckClicked = (idx) => {\n const { tableData, checkBoxOnChange } = this.props;\n const { testCheckboxVals } = this.state;\n const checked = !testCheckboxVals[idx];\n /** add or remove test from test set */\n const item = tableData[idx];\n checkBoxOnChange(item.test, checked);\n /** set checked state */\n testCheckboxVals[idx] = checked;\n this.setState({ testCheckboxVals: [...testCheckboxVals] });\n };\n\n /**\n * Handle detailed pesticide view toggle\n * @param {boolean} isOpen\n */\n handleDetailToggle = (isOpen) => {\n const { pesticideDetailsToggle } = this.props;\n pesticideDetailsToggle(isOpen);\n }\n\n /**\n * Handle detailed pesticide report close button event\n * @param {boolean} hasCountryListChanged checks if country list in detailed report has changed\n */\n handlePesticideDetailClose = (hasCountryListChanged) => {\n const { reportDataRefresh } = this.props;\n if (hasCountryListChanged) {\n reportDataRefresh();\n }\n this.handleDetailToggle(false);\n };\n\n renderSpecColumn(type, data, style) {\n const { hasSpecs } = this.state;\n if (type === \"header\" && hasSpecs) {\n return (\n \n {data}\n \n );\n } if (type === \"row\" && hasSpecs) {\n const value = data.specs ? data.specs : \"-\";\n return (\n {value}\n );\n }\n\n return null;\n }\n\n render() {\n const {\n tableData, isPickingRetests, disabledTests, reportData,\n showDetailedPesticideReport, activeDate, testDate,\n } = this.props;\n const {\n testCheckboxVals,\n } = this.state;\n const headerStyle = {\n backgroundColor: \"#26A1D2\",\n color: \"white\",\n };\n\n return (\n
    \n
    \n
    \n {showDetailedPesticideReport && \"Detailed pesticide report\"}\n
    \n {!showDetailedPesticideReport && (\n \n \n Total test\n \n \n {tableData.length}\n \n \n )}\n
    \n
    \n \n \n {showDetailedPesticideReport ? (\n \n {testDate === activeDate && (\n \n )}\n \n ) : (\n \n \n \n \n {this.renderSpecColumn(\"header\", \"Specs\", headerStyle)}\n \n \n \n \n {tableData.length > 0 && tableData.map((item, i) => {\n const enableTestSelection = isPickingRetests && !disabledTests.has(item.test);\n const resultColor = item.test_spec_flag === \"-\" ? item.color.color : item.color;\n\n return (\n this.handleCheckClicked(i)\n : null\n }\n className={enableTestSelection ? \"tempClass\" : \"\"}\n style={{\n cursor: enableTestSelection\n ? \"pointer\"\n : \"default\",\n }}\n >\n \n {this.renderSpecColumn(\"row\", item)}\n \n \n );\n })}\n \n
    TestResults
    \n
    \n {isPickingRetests && (\n
    \n \n
    \n )}\n \n {item.test}\n
    \n \n
    \n \n {item.result ? (\n <>\n {item.detail ? (\n {\n this.handleDetailToggle(true);\n }\n : undefined\n }\n >\n {item.result}\n \n ) : (\n item.result\n )}\n \n ) : (\n \"-\"\n )}\n \n
    \n )}\n
    \n \n
    \n
    \n );\n }\n}\n","import React from \"react\";\n\nimport Modal from \"antd/es/modal/Modal\";\nimport \"../../../Product.css\";\nimport \"./SampleResultsModal.css\";\nimport { AnimatePresence } from \"framer-motion/dist/framer-motion\";\nimport moment from \"moment\";\nimport { Carousel } from \"react-responsive-carousel\";\nimport \"react-responsive-carousel/lib/styles/carousel.min.css\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\n\nimport { AppContext } from \"../../../../../AppContext\";\nimport { SPEC_FLAGS_MAP } from \"../../../../Common/constants/SpecFlagConstants\";\nimport NoResults from \"../../../../Common/NoResults\";\nimport StyledButton from \"../../../../Common/UIComponents/StyledButton\";\nimport StyledTooltip from \"../../../../Common/UIComponents/StyledTooltip\";\nimport DatePicker from \"./DatePicker\";\nimport { MAX_RETESTS_ALLOWED, VALID_SPECS_SET, getColorForTestResult } from \"./helper\";\nimport RequestRetestModal from \"./RequestRetestModal\";\nimport SampleTestResultTable from \"./SampleTestResultTable\";\n\nimport { hasPermission } from \"../../../../../utils/common\";\n\nimport { getEnvSpec } from \"../../../../../actions/envAnalytics\";\nimport { getSpec, requestRetest } from \"../../../../../actions/reports\";\n\nimport { ReactComponent as LoadingDots } from \"../../../../../assets/images/common/LoadingDots.svg\";\nimport emptyStateIcon from \"../../../../../assets/images/EmptyState_V2.png\";\nimport closeIcon from \"../../../../../assets/images/product/crossWhite.png\";\n\nclass SampleResultsModal extends React.Component {\n testResultTableRefs = React.createRef();\n\n constructor(props) {\n super(props);\n this.state = {\n sampleResultsData: null,\n showRetestModal: false,\n keyOfTestResultTable: true, // this key is used to trigger a re-render of SampleTestResultTable component\n currentSlide: 0,\n totalSlides: 0,\n awaitingRetestRequest: false,\n isPickingRetests: false,\n testToRetest: [],\n activeDate: \"\",\n isInProcess: false,\n disabledTests: new Set(),\n loadingUpdatedData: false,\n loadingData: true,\n showDetailedPesticideReport: false,\n // pesticideCommodity: \"\", //NOTE: value not being shown in current cycle\n // isRetest: false,\n // isOutOfSpec: false,\n };\n }\n\n componentDidMount() {\n this.setState({ loadingData: true });\n const { sampleCategory } = this.props;\n if (sampleCategory === \"environment\") {\n this.envGetSampleResults().then((result) => {\n if (result) {\n const { sampleResultsData, isInProcess, totalSlides } = result;\n this.setState({\n sampleResultsData,\n isInProcess,\n totalSlides,\n activeDate: sampleResultsData.data[0][0],\n });\n }\n this.setState({ loadingData: false });\n });\n } else {\n this.getSampleResults().then((result) => {\n if (result) {\n const { sampleResultsData, isInProcess, totalSlides } = result;\n // const hasPesticideTestByDate = this.f(); //NOTE: Used for Sample Type. Kept for future use\n\n this.setState({\n sampleResultsData,\n isInProcess,\n totalSlides,\n activeDate: sampleResultsData.data[0][0],\n });\n }\n this.setState({ loadingData: false });\n });\n }\n }\n\n /**\n * Refresh report data by calling getSampleResutls\n */\n reportDataRefresh = () => {\n this.setState({ loadingData: true });\n const { sampleCategory } = this.props;\n if (sampleCategory === \"environment\") {\n this.envGetSampleResults().then((result) => {\n if (result) {\n const { sampleResultsData, isInProcess, totalSlides } = result;\n this.setState((state) => ({\n sampleResultsData,\n isInProcess,\n totalSlides,\n activeDate: state.activeDate,\n }));\n }\n this.setState({ loadingData: false });\n });\n } else {\n this.getSampleResults().then((result) => {\n if (result) {\n const { sampleResultsData, isInProcess, totalSlides } = result;\n // const hasPesticideTestByDate = this.checkPesticideTestByDate(); //NOTE: Used for Sample Type. Kept for future use\n\n this.setState((state) => ({\n sampleResultsData,\n isInProcess,\n totalSlides,\n activeDate: state.activeDate,\n }));\n }\n this.setState({ loadingData: false });\n });\n }\n }\n\n /**\n * Fetch sample data (spec flag, link report field values, test results)\n */\n getSampleResults = async () => {\n const { reportData } = this.props;\n if (reportData) {\n const {\n index_id, index, report_id, sample_id, product_type, sample_type, received_date,\n } = reportData;\n const params = {\n type: \"Report\",\n index,\n index_id,\n report_id,\n sample_id,\n product_type,\n received_date: moment(new Date(received_date)).format(\"YYYY/MM/DD\"),\n sample_type,\n };\n if (params.index === null || params.index === undefined) {\n params.index = \"Product\";\n }\n\n const response = await getSpec(params);\n if (response && response.success) {\n const result = response.spec;\n if (Object.values(result).length === 0) {\n toast.error(\n \"Oops, something went wrong. Please try again later.\",\n );\n return null;\n }\n const isInProcess = Object.values(result.report_result)\n .flat()\n .every((item) => item.test_spec_flag.toString() === \"0\");\n // const isRetest = specs_flag && specs_flag.includes(\"Retest\");\n // const isInProcess = specs_flag && specs_flag.includes(\"In Process\");\n // const isOutOfSpec = specs_flag && specs_flag.includes(\"Out of Spec\");\n\n const dataObj = Object.entries(result.report_result);\n dataObj.forEach((data) => {\n const coloredData = getColorForTestResult(data[1]);\n data[1] = coloredData;\n });\n\n const sampleResultsData = { ...result, data: dataObj };\n sampleResultsData.data.sort((a, b) => Date.parse(b[0]) - Date.parse(a[0])); // sorts in place\n this.setTestsToDisable(sampleResultsData);\n return { sampleResultsData, isInProcess, totalSlides: Object.keys(sampleResultsData.data).length };\n }\n toast.error(\"Failed to load report specs\");\n return null;\n }\n return null;\n };\n\n /**\n * Fetch sample data (spec flag, link report field values, test results)\n */\n envGetSampleResults = async () => {\n const { reportData } = this.props;\n if (reportData) {\n const {\n sample_id, location_id, sample_type, received_date,\n } = reportData;\n const params = {\n sample_id,\n location_id,\n received_date: moment(new Date(received_date)).format(\"YYYY/MM/DD\"),\n sample_type,\n };\n\n const response = await getEnvSpec(params);\n if (response && response.success) {\n const result = response.spec;\n if (Object.values(result).length === 0) {\n toast.error(\n \"Oops, something went wrong. Please try again later.\",\n );\n return null;\n }\n const isInProcess = Object.values(result.report_result)\n .flat()\n .every((item) => item.test_spec_flag.toString() === \"0\");\n\n const dataObj = Object.entries(result.report_result);\n dataObj.forEach((data) => {\n const coloredData = getColorForTestResult(data[1]);\n data[1] = coloredData;\n });\n\n const sampleResultsData = { ...result, data: dataObj };\n sampleResultsData.data.sort((a, b) => Date.parse(b[0]) - Date.parse(a[0])); // sorts in place\n this.setTestsToDisable(sampleResultsData);\n return { sampleResultsData, isInProcess, totalSlides: Object.keys(sampleResultsData.data).length };\n }\n toast.error(\"Failed to load report specs\");\n return null;\n }\n return null;\n };\n\n /**\n * If at least one instance of a test out of\n * all tables has spec flag equal to 0, disable\n * the test so the user cannot request a retest\n * on that test.\n * @param {Object} results results.data = [[date, testResults], [date, testResults], ...]\n */\n setTestsToDisable = (results) => {\n const disabledTests = new Set();\n results.data.forEach(([date, testResults]) => { // eslint-disable-line\n testResults.forEach(({ test, test_spec_flag }) => {\n if (test_spec_flag === \"0\") {\n disabledTests.add(test);\n }\n });\n });\n this.setState({ disabledTests });\n };\n\n handleRetestRequest = async () => {\n const { testToRetest } = this.state;\n const { reportData } = this.props;\n\n this.setState({ awaitingRetestRequest: true });\n\n const date = moment(new Date(reportData.received_date)).format(\"YYYY-MM-DD\");\n const payload = {\n sample_id: reportData.sample_id,\n received_at: date,\n tests: Array.from(new Set(testToRetest)),\n sample_type: reportData.sample_type,\n };\n\n const response = await requestRetest(payload);\n if (response && response.success) {\n toast.success(\"Retest request is successful.\");\n const result = await this.getSampleResults();\n if (result) {\n const { sampleResultsData, isInProcess, totalSlides } = result;\n this.setState({\n sampleResultsData,\n isInProcess,\n isPickingRetests: false,\n showRetestModal: false,\n awaitingRetestRequest: false,\n testToRetest: [],\n currentSlide: 0,\n totalSlides,\n activeDate: sampleResultsData.data[0][0],\n });\n }\n } else {\n toast.error(response.message || \"Retest request has failed.\");\n this.setState({ awaitingRetestRequest: false });\n }\n };\n\n getDateString = (currDate, monthFirst) => {\n const momentDate = moment(new Date(currDate));\n if (!momentDate.isValid()) {\n return currDate;\n }\n if (monthFirst) {\n return `${momentDate.format(\"MM/DD/YY\")}`;\n }\n return `${momentDate.format(\"DD MMM YYYY\")}`;\n };\n\n handleDateChanged = (date, index, change = 0) => {\n const { currentSlide, totalSlides, sampleResultsData } = this.state;\n if (date) {\n this.setState({\n activeDate: date,\n currentSlide: index,\n });\n } else {\n const newValue = currentSlide + change;\n if (newValue < totalSlides && newValue >= 0) {\n const newDate = sampleResultsData.data[newValue][0];\n this.setState({\n activeDate: newDate,\n currentSlide: currentSlide + change,\n });\n }\n }\n };\n\n addTestToRetest = (test, isChecked) => {\n const { testToRetest } = this.state;\n\n // Need to add to the list\n if (isChecked) {\n testToRetest.push(test);\n } else {\n // Need to remove from the list (don't filter all in case there are duplicates)\n const idxToRemove = testToRetest.findIndex(\n (existingTest) => existingTest === test,\n );\n testToRetest.splice(idxToRemove, 1);\n }\n\n this.setState({\n testToRetest: [...testToRetest], // make a shallow copy to trigger rerender\n });\n };\n\n /**\n * If entering request retest mode, refresh spec data.\n * @param {Boolean} isPickingRetests true if entering request retest mode, false if canceling out of it\n */\n updateRequestRetestMode = async (isPickingRetests) => {\n const { testToRetest } = this.state;\n\n let updatedTests = testToRetest;\n\n if (isPickingRetests) {\n this.setState({ loadingUpdatedData: true });\n const result = await this.getSampleResults();\n if (result) {\n const { sampleResultsData, isInProcess, totalSlides } = result;\n const { activeDate, keyOfTestResultTable } = this.state;\n const sortedDates = sampleResultsData.data.map(([date, _]) => date); // eslint-disable-line no-unused-vars\n const activeDateIndex = sortedDates.indexOf(activeDate);\n const newSlide = activeDateIndex > -1 ? activeDateIndex : 0;\n const newActiveDate = sortedDates[newSlide];\n this.setState({\n sampleResultsData,\n totalSlides,\n isInProcess,\n // isOutOfSpec,\n // isRetest,\n isPickingRetests: true,\n currentSlide: newSlide,\n activeDate: newActiveDate,\n keyOfTestResultTable: !keyOfTestResultTable,\n loadingUpdatedData: false,\n });\n } else {\n // if not successful, we need to update state here\n this.setState({\n isPickingRetests: true,\n testToRetest: updatedTests,\n loadingUpdatedData: false,\n });\n }\n this.setState({ loadingUpdatedData: false });\n } else {\n // User is exiting the selection mode so reset the state\n updatedTests = [];\n /** For each table, clear selected tests */\n if (this.testResultTableRefs.current) {\n this.testResultTableRefs.current.forEach((table) => table?.clearCheckboxes());\n }\n this.setState({\n isPickingRetests: false,\n testToRetest: updatedTests,\n });\n }\n };\n\n showRequestRetestModal = () => {\n const { awaitingRetestRequest } = this.state;\n if (awaitingRetestRequest) {\n return;\n }\n this.setState({\n showRetestModal: true,\n });\n };\n\n hideRequestRetestModal = () => {\n this.setState({\n showRetestModal: false,\n });\n };\n\n // eslint-disable-next-line consistent-return\n handleCloseModal = () => {\n const {\n handleExitSampleResultsModal, reportData, sampleSubmission, onCancel,\n } = this.props;\n if (sampleSubmission) return onCancel();\n const { sampleResultsData } = this.state;\n const specsFlagHasChanged = sampleResultsData?.specs_flag && sampleResultsData.specs_flag !== reportData.specs_flag;\n handleExitSampleResultsModal(specsFlagHasChanged ? sampleResultsData.specs_flag : undefined);\n }\n\n /**\n * Show and hide pesticide details toggle\n * @param {boolean} isOpen is open\n */\n handlePesticideDetailsToggle = (isOpen) => {\n this.setState((state) => ({ ...state, showDetailedPesticideReport: isOpen }));\n }\n\n /**\n * Checks whether a date has a pesticide report\n * @param {*} sampleResultsData Sample result data\n * @returns Object containing date as key and value as true/false.\n */\n checkPesticideTestByDate = (sampleResultsData) => Object.keys(sampleResultsData.report_result).reduce((acc, key) => {\n const testList = sampleResultsData.report_result[key];\n let testHasPesticide = false;\n testList.forEach((test) => {\n if (test.test.toLowerCase().includes(\"pesticide\")) {\n testHasPesticide = true;\n }\n });\n acc[key] = testHasPesticide;\n return acc;\n }, {});\n\n /**\n * Set pesticide commodity value\n * @param {*} value commodity value\n * //NOTE: Kept for future as value is not being shown\n */\n // setPesticideCommodity = (value) => this.setState({ pesticideCommodity: value });\n\n handleRenderingRequestRetestButton = () => {\n const {\n awaitingRetestRequest,\n isPickingRetests,\n testToRetest,\n totalSlides,\n isInProcess,\n loadingUpdatedData,\n showDetailedPesticideReport,\n // admin,\n // isRetest,\n // isOutOfSpec,\n } = this.state;\n if (isPickingRetests) {\n // If user is picking retests we need to render cancel & submit button\n return (\n
    \n this.updateRequestRetestMode(false)}\n >\n
    Cancel
    \n \n \n this.showRequestRetestModal()}\n >\n
    \n Request Retest (\n {new Set(testToRetest).size}\n )\n
    \n \n \n
    \n );\n }\n\n const atMaxRetests = totalSlides - 1 >= MAX_RETESTS_ALLOWED;\n // && !(isInProcess && !isRetest); // only show for admin, and when not In Process (spec flag === 0)\n if (hasPermission(\"request_product_retest\")) {\n const disableButton = awaitingRetestRequest\n || atMaxRetests\n || isInProcess\n || loadingUpdatedData\n || showDetailedPesticideReport;\n // || (isInProcess && isRetest);\n let tooltipTitle = \"\";\n if (awaitingRetestRequest) {\n tooltipTitle = \"Awaiting request\";\n } else if (atMaxRetests) {\n tooltipTitle = \"Max amount of retests (3) reached\";\n } else if (isInProcess) {\n tooltipTitle = \"Cannot request retest when testing in process\";\n }\n return (\n \n \n { } : () => this.updateRequestRetestMode(true)}\n >\n
    \n Request Retest\n {totalSlides > 1 ? ` (${totalSlides - 1}/3)` : null}\n
    \n \n \n
    \n );\n }\n\n return null;\n };\n\n renderAddSpecsButton() {\n const { reportData, handleAddSpecsButton } = this.props;\n const { isPickingRetests, sampleResultsData } = this.state;\n const canAddSpec = hasPermission(\"add_spec\");\n if (\n sampleResultsData.specs_flag?.toString() === \"3\"\n && reportData.index_id !== \"\"\n && canAddSpec\n && !isPickingRetests\n ) {\n return (\n handleAddSpecsButton(reportData.index_id, reportData)}\n className=\"SampleResultsModal__AddSpecsButton\"\n >\n Add Specs\n \n );\n }\n\n return null;\n }\n /**\n *Sample Submission view report modal\n */\n\n renderReportDetails() {\n const {\n reportData,\n sampleCategory,\n sampleSubmission,\n sampleFieldsData,\n linkReportJsonFields,\n fields,\n } = this.props;\n let filteredFieldsObj;\n if (!sampleFieldsData && linkReportJsonFields) {\n filteredFieldsObj = Object.keys(reportData).filter((key) => linkReportJsonFields.includes(key)).map((key) => ({\n key: fields.filter((item) => item.json_field === key)[0].title_field,\n value: reportData[key],\n }));\n }\n const { activeDate } = this.state;\n if (sampleSubmission) {\n if (sampleCategory === \"environment\") {\n return (\n
    \n
    \n
    \n \n Location\n \n \n \n {sampleFieldsData\n .filter((item) => item.value !== \"\")\n .map((item, index) => (\n \n {`${item.key}: `}\n {item.value}\n {index < sampleFieldsData.filter((i) => i.value !== \"\").length - 1 && }\n \n ))}\n {sampleFieldsData.filter((item) => item.value !== \"\").length === 0 && -}\n \n \n
    \n \n \n Date\n \n {this.getDateString(activeDate, true)}\n \n
    \n
    \n
    \n \n Sample ID\n \n \n
    \n {reportData.sample_id}\n
    \n
    \n
    \n
    \n );\n }\n if (sampleCategory === \"product\") {\n return (\n
    \n
    \n
    \n \n Product\n \n \n \n {sampleFieldsData\n .filter((item) => item.value !== \"\")\n .map((item, index) => (\n \n {`${item.key}: `}\n {item.value}\n {index < sampleFieldsData.filter((i) => i.value !== \"\").length - 1 && }\n \n ))}\n {sampleFieldsData.filter((item) => item.value !== \"\").length === 0 && -}\n \n \n
    \n \n \n Date\n \n {this.getDateString(activeDate, true)}\n \n
    \n
    \n
    \n \n Sample ID\n \n \n
    \n {reportData.sample_id}\n
    \n
    \n
    \n {/* {(hasPesticideTest && showDetailedPesticideReport && pesticideCommodity) && (\n
    \n \n Sample Type\n \n {pesticideCommodity}\n
    \n )} */}\n
    \n );\n }\n } else {\n return (\n
    \n
    \n
    \n \n Product\n \n \n \n {filteredFieldsObj\n .filter((item) => item.value !== \"\")\n .map((item, index) => (\n \n {`${item.key}: `}\n {item.value}\n {index < filteredFieldsObj.filter((i) => i.value !== \"\").length - 1 && }\n \n ))}\n {filteredFieldsObj.filter((item) => item.value !== \"\").length === 0 && -}\n \n \n
    \n \n \n Date\n \n {this.getDateString(activeDate, true)}\n \n
    \n
    \n
    \n \n Sample ID\n \n \n
    \n {reportData.sample_id}\n
    \n
    \n
    \n {/* {(hasPesticideTest && showDetailedPesticideReport && pesticideCommodity) && (\n
    \n \n Sample Type\n \n {pesticideCommodity}\n
    \n )} */}\n
    \n );\n }\n return null;\n }\n\n render() {\n const {\n sampleResultsData,\n showRetestModal,\n keyOfTestResultTable,\n currentSlide,\n totalSlides,\n activeDate,\n isPickingRetests,\n testToRetest,\n disabledTests,\n loadingData,\n awaitingRetestRequest,\n showDetailedPesticideReport,\n // isRetest,\n } = this.state;\n const {\n disableInteraction,\n reportData,\n sampleSubmission = false,\n } = this.props;\n\n const specFlagInfo = sampleResultsData?.specs_flag && VALID_SPECS_SET.has(sampleResultsData.specs_flag) ? SPEC_FLAGS_MAP[sampleResultsData.specs_flag] : SPEC_FLAGS_MAP.invalid;\n\n return (\n \n
    \n {[this.getDateString(activeDate, false), \"Report\"].join(\" \")}\n \n
    \n
    \n {!loadingData && this.renderReportDetails()}\n {(loadingData && !sampleSubmission) &&
    }\n {(loadingData && sampleSubmission) &&
    }\n {!loadingData && !sampleResultsData && (\n \n )}\n {!loadingData && sampleResultsData && (\n <>\n 1}\n >\n {Object.keys(sampleResultsData.data).length > 0\n && sampleResultsData.data.map((data, idx) => (\n {\n if (this.testResultTableRefs.current === null) {\n this.testResultTableRefs.current = [];\n }\n this.testResultTableRefs.current[idx] = el;\n }}\n key={`${idx}${keyOfTestResultTable}`}\n tableData={data[1]}\n specs_flag={specFlagInfo.label}\n isPickingRetests={isPickingRetests}\n checkBoxOnChange={this.addTestToRetest}\n disabledTests={disabledTests}\n reportData={reportData}\n showDetailedPesticideReport={showDetailedPesticideReport}\n pesticideDetailsToggle={this.handlePesticideDetailsToggle}\n activeDate={activeDate}\n testDate={data[0]}\n reportDataRefresh={this.reportDataRefresh}\n />\n ))}\n \n\n
    \n
    \n {showRetestModal && (\n \n )}\n\n {Object.keys(sampleResultsData.data).length > 1 && (\n
    \n \n
    \n )}\n\n
    \n
    \n \n Final Result\n \n \n \n {specFlagInfo.label}\n \n
    \n {!disableInteraction && (\n
    \n {!sampleSubmission && this.renderAddSpecsButton()}\n {!sampleSubmission && this.handleRenderingRequestRetestButton()}\n
    \n )}\n
    \n
    \n
    \n \n )}\n
    \n \n );\n }\n}\n\nSampleResultsModal.contextType = AppContext;\nexport default SampleResultsModal;\n","import React, { Component } from \"react\";\n\nexport default class OutsideClick extends Component {\n constructor(props) {\n super(props);\n\n this.wrapperRef = React.createRef();\n this.setWrapperRef = this.setWrapperRef.bind(this);\n this.handleClickOutside = this.handleClickOutside.bind(this);\n }\n\n componentDidMount() {\n document.addEventListener(\"mousedown\", this.handleClickOutside);\n }\n\n componentWillUnmount() {\n document.removeEventListener(\"mousedown\", this.handleClickOutside);\n }\n\n handleClickOutside(event) {\n const { flag, onCancelEditTemplate, onCancelEdit } = this.props;\n if (flag === \"editIndex\") {\n if (this.wrapperRef && !this.wrapperRef.current.contains(event.target)) {\n onCancelEdit();\n }\n } else if (flag === \"editTemplate\") {\n if (this.wrapperRef && !this.wrapperRef.current.contains(event.target)) {\n onCancelEditTemplate();\n }\n } else if (this.wrapperRef && !this.wrapperRef.current.contains(event.target)) {\n onCancelEdit();\n }\n }\n\n setWrapperRef(node) {\n this.wrapperRef = node;\n }\n\n render() {\n const { className, children } = this.props;\n return
    {children}
    ;\n }\n}\n","import React, { useRef, useState } from \"react\";\nimport OutsideClick from \"../OutsideClick\";\nimport StyledTooltip from \"../../../Common/UIComponents/StyledTooltip\";\nimport \"./ReportsTableHeaderCell.css\";\nimport editIcon from \"../../../../assets/images/product/editPencilLightBlue.png\";\nimport infoIcon from \"../../../../assets/images/product/infoCircleBlue.png\";\n\nexport default function ReportsTableHeaderCell({\n title,\n id,\n linkReportJsonFields,\n idx,\n align,\n isEditable,\n handleSaveTableTitle,\n editTableTitleIdx,\n setEditTableTitleIdx,\n innerRef,\n getDraggableStyle = () => ({}),\n draggableProps = {},\n dragHandleProps = {},\n}) {\n const [isHovering, setIsHovering] = useState(false);\n const headerCellRef = useRef();\n const tappedTwice = useRef(false);\n const editingWidth = useRef();\n\n /**\n * Measure the width of the current cell, set editTableTitleIdx to current idx\n */\n const handleEdit = () => {\n const { width } = headerCellRef.current.getBoundingClientRect();\n editingWidth.current = width;\n setEditTableTitleIdx(idx);\n };\n\n /**\n * Handles double tap.\n * @returns {Boolean}\n */\n const handleDoubleTap = () => {\n if (!tappedTwice.current) {\n tappedTwice.current = true;\n setTimeout(() => { tappedTwice.current = false; }, 300);\n return false;\n }\n handleEdit();\n tappedTwice.current = false;\n return true;\n };\n\n /**\n * Cancel edit: clear editingWidth, set editTableTitleIdx back to -1\n */\n const handleCancelEdit = () => {\n editingWidth.current = null;\n setEditTableTitleIdx(-1);\n };\n\n /**\n * While editing, if user hits Enter, submit the edit. If user hits Tab or Escape, cancel the edit.\n * @param {KeyDownEvent} e\n * @param {String} flag\n */\n const handleKeyDown = (e, flag) => {\n switch (e.key) {\n case \"Enter\":\n handleSaveTableTitle(e.target.value, flag, idx);\n break;\n case \"Tab\":\n handleCancelEdit();\n break;\n case \"Escape\":\n handleCancelEdit();\n break;\n default:\n break;\n }\n };\n\n const isLinkedField = idx < linkReportJsonFields.length;\n const isEditing = editTableTitleIdx === idx;\n const textAlignToJustifyMap = { left: \"flex-start\", center: \"center\", right: \"flex-end\" };\n\n return (\n {\n if (innerRef) {\n innerRef(elem);\n }\n headerCellRef.current = elem;\n }}\n {...draggableProps} // eslint-disable-line react/jsx-props-no-spreading\n {...dragHandleProps} // eslint-disable-line react/jsx-props-no-spreading\n style={{\n ...getDraggableStyle(),\n width: isEditing ? `${editingWidth.current}px` : draggableProps?.style?.width,\n textAlign: align,\n }}\n onDoubleClick={isEditable ? handleEdit : null}\n onTouchStart={isEditable ? handleDoubleTap : null}\n onMouseEnter={isEditable ? () => setIsHovering(true) : null}\n onMouseLeave={isEditable ? () => setIsHovering(false) : null}\n >\n {isEditing ? (\n \n handleKeyDown(e, \"editTitle\")}\n autoFocus\n />\n \n ) : (\n \n {title}\n {id === \"specs_flag\" && (\n \n \n \n )}\n {isEditable && !isEditing && isHovering && (\n \n )}\n
    \n )}\n \n );\n}\n","import React from \"react\";\nimport { Draggable } from \"react-beautiful-dnd\";\nimport ReportsTableHeaderCell from \"./ReportsTableHeaderCell\";\n\nexport default function ReportsTableDraggableHeaderCell({\n title,\n id,\n linkReportJsonFields,\n idx,\n align,\n isDraggable,\n isEditable,\n reorderLoading,\n handleSaveTableTitle,\n editTableTitleIdx,\n setEditTableTitleIdx,\n droppableSnapshot,\n currentDraggableInfo,\n}) {\n /**\n * Get the style for the current draggable.\n * @param {Object} draggableSnapshot { isDragging: Boolean }\n * @param {Object} draggableStyle\n * @returns {Object}\n */\n const getDraggableStyle = (draggableSnapshot, draggableStyle) => {\n const { isDraggingOver } = droppableSnapshot;\n const { isDragging } = draggableSnapshot;\n let transform = draggableStyle.transform;\n /**\n * Fix transform value (without this fix, there is extra space left behind when cell is dragged).\n * If user is dragging and the current cell is to the right of the dragged cell,\n * subtract the dragged cell's width from the translate x value.\n * */\n if (isDraggingOver && !isDragging && currentDraggableInfo.current) {\n const { originIdx, width } = currentDraggableInfo.current;\n if (originIdx < idx) {\n const getTranslateXRegex = /translate\\((-?\\d*\\.?\\d*).*/;\n const translateX = parseFloat(getTranslateXRegex.exec(draggableStyle.transform ?? \"translate(0px)\")[1]);\n transform = `translateX(${translateX - width}px)`;\n }\n }\n return ({\n ...draggableStyle,\n transform,\n opacity: isDragging ? \"0.7\" : draggableStyle.opacity,\n height: isDraggingOver ? currentDraggableInfo.current?.height : undefined,\n userSelect: \"none\",\n });\n };\n\n if (isDraggable) {\n return (\n -1}\n >\n {({ innerRef, draggableProps, dragHandleProps }, draggableSnapshot) => (\n getDraggableStyle(draggableSnapshot, draggableProps.style)}\n draggableProps={draggableProps}\n dragHandleProps={dragHandleProps}\n />\n )}\n \n );\n }\n return (\n \n );\n}\n","import React, { useRef, useState } from \"react\";\n\nimport { DragDropContext, Droppable } from \"react-beautiful-dnd\";\nimport { toast } from \"react-toastify\";\n\nimport ReportsTableDraggableHeaderCell from \"./ReportsTableDraggableHeaderCell\";\n\nimport { hasPermission } from \"../../../../utils/common\";\n\nimport { changePosition, editTableTitle } from \"../../../../actions/reports\";\nimport \"./ReportsTableHeader.css\";\n\nexport default function ReportsTableHeader({\n headerId,\n headers,\n fields,\n setFields,\n linkReportJsonFields,\n disableInteraction,\n}) {\n const [editTableTitleIdx, setEditTableTitleIdx] = useState(-1);\n const [reorderLoading, setReorderLoading] = useState(false);\n const currentDraggableInfo = useRef(null); // used to style draggables when dragging { width, height, originIdx}\n\n /**\n * Record the width, height, and origin index of the dragged field (used to style draggables)\n * @param {Object} _ { draggableId: String, source: { index: Number }}\n */\n const onBeforeDragStart = ({ draggableId, source }) => {\n const draggedElem = document.querySelector(`[data-rbd-drag-handle-draggable-id=${draggableId}]`);\n const { width, height } = draggedElem.getBoundingClientRect();\n currentDraggableInfo.current = { width, height, originIdx: source.index };\n };\n\n /**\n * Handle column reordering. Call the changePosition to update fields array order.\n * @param {Object} result {source: { index: Number }, destination: {index: Number }}\n * @returns {void}\n */\n const onDragEnd = async (result) => {\n currentDraggableInfo.current = null;\n const { source, destination } = result;\n if (!destination) {\n return;\n }\n const startIndex = source.index;\n const endIndex = destination.index;\n if (startIndex === endIndex) {\n return;\n }\n /** Get new index for field in the unsorted array */\n const newIndexInOriginalArray = fields[endIndex].originalIdx;\n\n /** Reorder the sorted array */\n const changedFields = fields[startIndex].title_field;\n const fieldsCopy = [...fields];\n const [removed] = fieldsCopy.splice(startIndex, 1);\n fieldsCopy.splice(endIndex, 0, removed);\n\n /** Update fields before api call. If the call fails, revert to previous. */\n setFields(fieldsCopy);\n setReorderLoading(true);\n const { success, fields: updatedFields, message } = await changePosition({\n field: changedFields,\n position: String(newIndexInOriginalArray),\n });\n if (success) {\n setFields(updatedFields, true); // set sort to true\n } else {\n toast.error(message);\n setFields(fields);\n }\n setReorderLoading(false);\n };\n\n /**\n * Call the api to update the field title.\n * @param {React.KeyPressEvent} e\n * @param {String} flag\n * @param {Number} idx index of field\n */\n const handleSaveTableTitle = async (value, flag, idx) => {\n if (value.trim()) {\n const oldTableTitle = fields[idx].title_field;\n if (flag === \"editTitle\") {\n const params = {\n field: oldTableTitle,\n new_field: value.trim(),\n };\n const response = await editTableTitle(params);\n if (response.success && response.fields) {\n setFields(response.fields, true); // set sort to true\n } else {\n toast.error(response.message);\n }\n setEditTableTitleIdx(-1);\n }\n } else {\n toast.error(\"Title cannot be empty\");\n }\n };\n\n const canEditReportHeader = hasPermission(\"report_table_header_edit\");\n\n return (\n \n \n {(droppableProvided, droppableSnapshot) => (\n \n {headers.map((header, idx) => (\n = linkReportJsonFields.length && idx < fields.length}\n isEditable={!disableInteraction && canEditReportHeader && idx < fields.length}\n reorderLoading={reorderLoading}\n handleSaveTableTitle={handleSaveTableTitle}\n editTableTitleIdx={editTableTitleIdx}\n setEditTableTitleIdx={setEditTableTitleIdx}\n droppableSnapshot={droppableSnapshot}\n currentDraggableInfo={currentDraggableInfo}\n />\n ))}\n \n )}\n \n \n );\n}\n","import React, { useEffect, useMemo, useState } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\nimport {\n createColumnHelper,\n getCoreRowModel,\n useReactTable,\n} from \"@tanstack/react-table\";\nimport ReportsTableFieldCell from \"./ReportsTableFieldCell\";\nimport ReportsTableSpecCell from \"./ReportsTableSpecCell\";\nimport ReportsTableActionsCell from \"./ReportsTableActionsCell\";\nimport SpecManager from \"../Components/SpecManager/SpecManager\";\n// import ShareModal from \"../Components/Share/ShareModal\";\nimport SampleResultsModal from \"../Components/ReportSpecs/SampleResultsModal\";\nimport { multipleLinkReportFieldsObjToObj } from \"../utils\";\nimport NoResults from \"../../../Common/NoResults\";\nimport emptyStateIcon from \"../../../../assets/images/EmptyState_V2.png\";\nimport Loading from \"../../../Common/Loading\";\nimport ReportsTableHeader from \"./ReportsTableHeader\";\nimport ReportsTableRow from \"./ReportsTableRow\";\nimport \"../../Product.css\";\nimport \"./ReportsTable.css\";\n\nexport default function ReportsTable({\n wrapperClassName = \"\",\n fields,\n setFields,\n reports,\n linkReportJsonFields,\n searchValToHighlight,\n loading,\n loadingNewContent,\n scrollbarRef,\n scrollbarId,\n handleUpdateRowSpecFlag = () => {},\n handleFetchNextPage,\n handleDataRefreshAfterExitingSpecManager = () => {},\n enableRowSelection = false,\n onRowSelection = () => true,\n disableSampleResultsModalInteraction = false, // add specs and request retest disabled\n disableTableHeaderInteraction = false, // disable reordering and renaming\n disableActions = false, // hide report column\n setTableInstance = () => {},\n}) {\n const [showSampleResultsModal, setShowSampleResultsModal] = useState(false);\n const [showModalRowIdx, setShowModalRowIdx] = useState(null);\n const [showSpecManager, setShowSpecManager] = useState(false);\n const [specManagerProduct, setSpecManagerProduct] = useState(null);\n const [specsUpdated, setSpecsUpdated] = useState(false);\n // const [showShareModal, setShowShareModal] = useState(false);\n // const [shareModalIndex, setShareModalIndex] = useState(0);\n\n /**\n * Open the SampleResultsModal on click of Specification cell\n * @param {Number} idx index of row\n */\n const handleShowSampleResultsModal = (idx, e) => {\n if (e) {\n e.stopPropagation();\n }\n setShowSampleResultsModal(true);\n setShowModalRowIdx(idx);\n };\n\n /**\n * Handle row selection. If onRowSelection returns false, revert selection.\n * @param {Row} row\n */\n const handleRowSelection = async (row) => {\n const action = row.getIsSelected() ? \"deselect\" : \"select\";\n row.toggleSelected();\n const success = await onRowSelection(row, action);\n if (success === false) { // revert selection\n row.toggleSelected();\n }\n };\n\n /** Helps with creating column definition types if called with a row type (doesn't do much now, but will ensure type-safety once typescript is integrated) */\n const columnHelper = createColumnHelper();\n\n /** By default, columns will be center aligned and visible */\n const defaultColumn = useMemo(\n () => ({\n align: \"center\",\n visible: true,\n }),\n [],\n );\n\n /** Set columns on mount. Will update when fields, linkReportJsonFields, or searchValToHighlight are updated (memoized for performance) */\n const columns = useMemo(() => [\n ...fields.map(({ json_field, title_field }, i) => columnHelper.accessor(json_field, {\n header: title_field,\n className: i < linkReportJsonFields.length ? \"ReportsTable__LinkedFieldCell\" : \"ReportsTable__FieldCell\",\n align: i < linkReportJsonFields.length ? \"left\" : \"center\",\n cell: (rowData) => (\n \n ),\n })),\n columnHelper.accessor(\"specs_flag\", {\n header: \"Specification\",\n className: \"ReportsTable__SpecCell\",\n align: \"left\",\n onClick: handleShowSampleResultsModal,\n cell: (rowData) => (),\n }),\n columnHelper.display({\n id: \"actions\",\n header: \"Reports\",\n className: \"ReportsTable__ActionsCell\",\n align: \"center\",\n enableHiding: true,\n visible: !disableActions, // if actions disabled, hide column\n cell: (rowData) => (),\n }),\n ], [fields, linkReportJsonFields, searchValToHighlight]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /**\n * Get obj of hidden column accessorKey/ids\n * @param {Array} columnsDef array of column objects\n * @returns {Object} { id or accessorKey: Boolean } false if that column is hidden\n */\n const getColumnVisibilityState = (columnsDef) => {\n const columnsArr = columnsDef.filter((col) => col.visible === false);\n const columnsObj = columnsArr.reduce((objSoFar, currColumn) => ({\n ...objSoFar,\n [currColumn.accessorKey ?? currColumn.id]: false,\n }), {});\n return columnsObj;\n };\n\n /** *** Initialize table instance using useReactTable hook **** */\n const table = useReactTable({\n data: reports,\n columns,\n defaultColumn,\n initialState: {\n columnVisibility: getColumnVisibilityState(columns),\n },\n enableRowSelection,\n enableHiding: true,\n getCoreRowModel: getCoreRowModel(),\n });\n\n /** Set table instance in parent when table updates */\n useEffect(() => {\n if (table) {\n setTableInstance(table);\n }\n }, [table]); // eslint-disable-line react-hooks/exhaustive-deps\n\n /**\n * On exit of SampleResultsModal, handle state reset\n * and data refresh if:\n * * specs have been updated, and/or\n * * retest has been successfully requested\n * @param {String | undefined} updatedSpecFlag new spec flag if it has changed\n */\n const handleExitSampleResultsModal = (updatedSpecFlag) => {\n setShowSampleResultsModal(false);\n setShowModalRowIdx(null);\n\n if (updatedSpecFlag) {\n handleUpdateRowSpecFlag(showModalRowIdx, updatedSpecFlag);\n }\n\n if (specsUpdated) {\n handleDataRefreshAfterExitingSpecManager();\n setSpecsUpdated(false);\n }\n };\n\n // /**\n // * Toggle share modal.\n // * @param {Number} index index of row\n // * @param {Boolean} value whether to show share modal or not\n // */\n // const toggleShareModal = (index, value) => {\n // setShowShareModal(value);\n // setShareModalIndex(index);\n // };\n\n /**\n * Handles infinite scroll\n * @param {React.ScrollEvent} e\n */\n const handleScrollToBottom = (e) => {\n const tolerance = 3;\n const bottom = Math.abs(Math.ceil(e.contentScrollHeight - e.scrollTop) - Math.ceil(e.clientHeight)) <= tolerance;\n if (bottom) {\n handleFetchNextPage();\n }\n };\n\n /**\n * Handles opening the spec manager from the sample results modal.\n * @param {String} productId\n * @param {Object} product object of linked fields vals ex: {item : \"\"}\n * @returns {ReactNode}\n */\n const handleAddSpecsButton = (productId, product) => {\n if (productId !== undefined && productId !== \"\") {\n setShowSpecManager(true);\n setShowSampleResultsModal(false);\n setSpecManagerProduct(product);\n } else {\n toast.error(\"Failed to load spec data\");\n }\n };\n\n /**\n * Close spec manager and open sample results modal.\n */\n const handleCloseSpecManager = () => {\n handleShowSampleResultsModal(showModalRowIdx);\n setShowSpecManager(false);\n setSpecManagerProduct(null);\n };\n\n if (!fields || fields.length === 0 || !linkReportJsonFields || linkReportJsonFields.length === 0) {\n return null;\n }\n\n const showNoResults = !loading && (!reports || reports.length === 0);\n\n return (\n \n {showSpecManager && (\n \n )}\n\n {/* {showShareModal && (\n \n )} */}\n\n {showSampleResultsModal && (\n \n )}\n \n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n ))}\n \n \n {table.getRowModel().rows.map((row) => (\n \n ))}\n \n \n {showNoResults && (\n \n )}\n {loadingNewContent && }\n \n
    \n );\n}\n","import React, { Component } from \"react\";\nimport { toast } from \"react-toastify\";\nimport \"../Product.css\";\nimport \"./Report.css\";\nimport ReportSearch from \"./ReportSearch\";\nimport SpecsBlock from \"./Components/SpecsBlock\";\nimport SpecManager from \"./Components/SpecManager/SpecManager\";\nimport {\n getReports,\n getProductFields,\n} from \"../../../actions/reports\";\nimport ReportsTable from \"./ReportsTable/ReportsTable\";\nimport { sortAndFilterProductReportFields } from \"./utils\";\n\nclass Reports extends Component {\n _isMounted = false;\n\n searchAbortController = null;\n\n constructor(props) {\n super(props);\n this.productScrollbar = React.createRef();\n this.state = {\n loading: true,\n fields: [],\n linkReportJsonFields: \"\",\n files: [],\n filterBySpecFlag: \"\",\n filterByDateFrom: \"\",\n filterByDateTo: \"\",\n retest: \"\",\n searchVal: \"\", // set before search api is called\n searchValToHighlight: \"\", // set after the search api call is completed (so the new search value isn't highlighted until after the results are displayed)\n showSpecManager: false,\n currentPage: \"1\",\n totalPage: \"1\",\n nextPageLink: \"\",\n loadingNewContent: false,\n };\n }\n\n componentDidMount() {\n this._isMounted = true;\n this.apiGetFields().then(({ fields, link_report }) => {\n getReports().then((response) => {\n if (this._isMounted && response) {\n const {\n success, files, nextPageLink, totalPage,\n } = response;\n /** Filter out fields that are display \"0\", sort linked fields to the front */\n const sortedFieldsToDisplay = sortAndFilterProductReportFields(link_report, fields);\n let fieldsError = false;\n if (!link_report || link_report.length === 0 || fields.length === 0) {\n toast.error(\"Missing fields and/or link report field(s)\");\n fieldsError = true;\n } else if (fields.length > 0 && sortedFieldsToDisplay.length === 0) {\n toast.error(\"No fields to display\");\n fieldsError = true;\n } else if (fields.length > 0 && sortedFieldsToDisplay.filter(({ json_field }) => link_report.includes(json_field)).length !== link_report.length) { // check if all linked fields in sortedFields\n toast.error(\"Link report field(s) missing from fields\");\n fieldsError = true;\n }\n if (!success) {\n toast.error(\"Unable to fetch reports\");\n }\n this.setState({\n files: files ?? [],\n fields: fieldsError ? [] : sortedFieldsToDisplay,\n linkReportJsonFields: link_report,\n loading: false,\n nextPageLink,\n currentPage: \"1\",\n totalPage: totalPage || \"1\",\n });\n }\n });\n });\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n }\n\n /**\n * Update fields array. If sort is true, sort and filter fields before updating.\n * @param {Array} fields\n * @param {Function} callback\n */\n setFields = (fields, sort = false, callback = () => {}) => {\n const { linkReportJsonFields } = this.state;\n let _fields = fields;\n if (sort) {\n _fields = sortAndFilterProductReportFields(linkReportJsonFields, fields);\n }\n this.setState({ fields: _fields }, callback);\n };\n\n apiGetFields = async () => {\n const result = await getProductFields();\n\n if (result && result.success) {\n return result;\n }\n return { fields: [], link_report: [] };\n };\n\n getReportDates = async () => {\n const { filterBySpecFlag, searchVal, retest } = this.state;\n const params = {\n specs_flag: filterBySpecFlag, search: searchVal, retest,\n };\n const response = await getReports(\"\", params);\n if (response && response.success) {\n const dates = response.dates;\n return dates ?? [];\n }\n return [];\n }\n\n /**\n * Fetch and filter reports\n * @param {Object} params { search, specs_flag, retest, fromm, to } if any of the filter values are undefined, the value in state will be used. If params is undefined, default values will be used.\n */\n fetchReports = async (params = {\n search: \"\", specs_flag: \"\", retest: \"\", fromm: \"\", to: \"\",\n }) => {\n this.setState({ loading: true });\n const {\n searchVal, filterBySpecFlag, retest, filterByDateFrom, filterByDateTo,\n } = this.state;\n const payload = {\n search: params.search ?? searchVal,\n specs_flag: params.specs_flag ?? filterBySpecFlag,\n retest: params.retest ?? retest,\n fromm: params.fromm ?? filterByDateFrom,\n to: params.to ?? filterByDateTo,\n page: \"1\",\n };\n\n const newController = new AbortController();\n /** If prev search api still in progress, abort it */\n if (this.searchAbortController) {\n this.searchAbortController.abort();\n }\n this.searchAbortController = newController;\n\n const {\n success, message, files, nextPageLink, totalPage,\n } = await getReports(\"\", payload, newController.signal);\n if (newController.signal.aborted) {\n return;\n }\n if (success) {\n this.setState({\n files,\n loading: false,\n nextPageLink,\n currentPage: \"1\",\n totalPage: totalPage || \"1\",\n searchVal: payload.search,\n searchValToHighlight: payload.search,\n filterBySpecFlag: payload.specs_flag,\n retest: payload.retest,\n filterByDateFrom: payload.fromm,\n filterByDateTo: payload.to,\n\n }, () => {\n if (files?.length > 0 && this.productScrollbar.current) {\n this.productScrollbar.current.scrollToTop();\n }\n });\n } else {\n toast.error(message);\n this.setState({\n loading: false,\n files: [],\n searchVal: payload.search,\n filterBySpecFlag: payload.specs_flag,\n retest: payload.retest,\n filterByDateFrom: payload.fromm,\n filterByDateTo: payload.to,\n });\n }\n this.searchAbortController = null;\n }\n\n /**\n * Fetch next page of reports, append to existing list\n */\n fetchNextReports = async () => {\n const {\n currentPage: currentPageNum, totalPage, loadingNewContent, nextPageLink, files: currentFiles,\n } = this.state;\n const lastPageLoaded = parseInt(currentPageNum) === parseInt(totalPage);\n if (!lastPageLoaded && !loadingNewContent) {\n this.setState({ loadingNewContent: true }, () => this.productScrollbar.current.scrollToBottom());\n const currentPage = nextPageLink ? nextPageLink.split(\"page=\")[1].split(\"&\")[0] : \"1\";\n const response = await getReports(nextPageLink);\n if (response.files && response.files.length) {\n const {\n files, nextPageLink: nextLink, totalPage: totalPages,\n } = response;\n const newFiles = files ?? [];\n this.setState({\n files: [...currentFiles, ...newFiles],\n loadingNewContent: false,\n currentPage,\n totalPage: totalPages || \"1\",\n nextPageLink: nextLink,\n });\n } else {\n toast.error(response.message);\n this.productScrollbar.current.scrollTop = this.productScrollbar.current.scrollTop - 100; // prevent infinitely firing scroll api call\n this.setState({ loadingNewContent: false });\n }\n }\n }\n\n /**\n * Search by value\n * @param {String} value\n */\n handleSearch = (value) => {\n this.fetchReports({ search: value });\n };\n\n /**\n * Filter by date\n * @param {String} dateStart format ex: 2023-11-16\n * @param {String} dateEnd format ex: 2023-11-16\n */\n handleFilterByDate = async (dateStart, dateEnd) => {\n this.fetchReports({ fromm: dateStart, to: dateEnd });\n }\n\n /**\n * Filter by spec flag. If specFlag equals the value in state, clear spec flag filter.\n * @param {String} specFlag \"0\", \"1\", or \"2\"\n */\n handleFilterBySpec = (specFlag) => {\n const { filterBySpecFlag } = this.state;\n const specFlagParam = specFlag === filterBySpecFlag ? \"\" : specFlag;\n this.fetchReports({ specs_flag: specFlagParam });\n };\n\n /**\n * Filter by retest.\n * @param {Boolean} isActive\n */\n handleFilterByRetest = (isActive) => {\n this.fetchReports({ retest: isActive ? \"retest\" : \"\" });\n }\n\n /**\n * Open or close spec manager\n * @returns {void}\n */\n handleSpecManagerToggle = () => {\n const { showSpecManager, fields } = this.state;\n if (!showSpecManager && (fields.length === 0)) {\n toast.error(\"Cannot open Spec Manager when fields are missing or link report field(s) error\");\n return;\n }\n this.setState({\n showSpecManager: !showSpecManager,\n });\n }\n\n /**\n * If specs were updated, refresh reports when closing spec manager.\n * @param {Array} list list of new reports\n */\n handleDataRefreshAfterExitingSpecManager = (list) => {\n if (list) {\n this.setState({\n files: [...list],\n });\n } else {\n this.fetchReports({}); // refresh data with current filters applied\n }\n }\n\n /**\n * Update spec flag for the row on exit of SampleResultsModal after requesting a retest.\n */\n handleUpdateRowSpecFlag = (rowID, specs_flag) => {\n const { filterBySpecFlag, files } = this.state;\n const filesArray = [...files];\n if (rowID !== undefined && filesArray[rowID].specs_flag !== undefined) {\n filesArray[rowID].specs_flag = specs_flag;\n }\n if (!Number.isNaN(parseInt(filterBySpecFlag))) { // if filterBySpecFlag is not undefined or empty string\n const specFilterToSpecFlagMap = {\n 0: [\"0\", \"4\"],\n 1: [\"1\", \"5\"],\n 2: [\"2\", \"6\"],\n };\n const specFlagArr = specFilterToSpecFlagMap[filterBySpecFlag];\n if (specFlagArr !== undefined && !specFlagArr.includes(specs_flag)) {\n filesArray.splice(rowID, 1); // file should not appear under the current spec flag filter, so delete\n }\n }\n this.setState({ files: filesArray });\n }\n\n render() {\n const {\n loading,\n fields,\n files,\n loadingNewContent,\n searchValToHighlight,\n filterBySpecFlag,\n showSpecManager,\n linkReportJsonFields,\n } = this.state;\n\n return (\n
    \n {\n loading && (\n
    \n )\n }\n
    \n \n
    \n\n
    \n \n
    \n {showSpecManager && (\n \n )}\n \n
    \n );\n }\n}\n\nexport default Reports;\n","import React from \"react\";\n\nimport \"../../styles/TitleBlockStyle.css\";\n\nexport default function TitleBlock(props) {\n const { title, subtext } = props;\n return (\n
    \n
    \n
    \n

    {title}

    \n
    \n\n
    \n

    {subtext}

    \n
    \n
    \n );\n}\n","import axios from \"axios\";\nimport { API_URL } from \"../utils/Constant\";\n\n/**\n * Based on selected tests and product search value, return list of products\n * @param {Object} payload { tests: Array, search: String }\n * @param {AbortSignal} signal\n * @returns {Object} { success, message, result }\n */\nexport const productSearch = async ({ tests, search, search_by }, signal) => {\n try {\n const response = await axios.post(`${API_URL}/searchproductfield/`, {\n search_value: search,\n search_by,\n test_list: tests,\n }, { signal });\n return {\n success: true,\n ...response.data,\n };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Based on selected products, test search value, return list of tests grouped by unit\n * @param {Object} payload { linkReportFields: Array, search: String, products: Array}\n * @param {AbortSignal} signal\n * @returns {Object} { success, message, result } returns a list of tests grouped by unit that has the search value as substring.\n */\nexport const testSearch = async ({ search, products }, signal) => {\n try {\n const response = await axios.post(`${API_URL}/gettestpairs/`, {\n product_id_list: products.map((product) => product.product_id),\n search_value: search,\n }, { signal });\n\n return { success: true, ...response.data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Based on the selected product and test pair, return list of reports and related analytics metadata\n * @param {Object} payload { product: Object, test: String, dateFrom: String, dateTo: String, linkReportFields: Array }\n * @returns {Object} { success, message, result }\n */\nexport const getTestData = async ({\n product, test, dateFrom, dateTo,\n}) => {\n try {\n const response = await axios.post(`${API_URL}/gettestreports/`, {\n product_id: product.product_id,\n test,\n range_from: dateFrom,\n range_to: dateTo,\n });\n\n return { success: true, ...response.data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\n/**\n * Based on selected products and tests, return list of dates that have reports\n * @param {Object} payload { product: Array, test: Array, linkReportFields: Array }\n * @returns {Object} { success, message, result }\n */\nexport const getDates = async ({ products, tests }) => {\n try {\n const response = await axios.post(`${API_URL}/getdateshasreport/`, {\n product_id_list: products.map((product) => product.product_id),\n test_list: tests,\n });\n\n return { success: true, ...response.data };\n } catch (e) {\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n","import React, { useRef, useState } from \"react\";\nimport { toast } from \"react-toastify\";\nimport { motion, AnimatePresence } from \"framer-motion/dist/framer-motion\";\nimport OutsideClick from \"../../../Report/OutsideClick\";\nimport { productSearch } from \"../../../../../actions/productAnalytics\";\n// import { ReactComponent as FilterIcon } from \"../../../../../assets/images/analytics/FilterIcon.svg\";\n// import { ReactComponent as CloseIcon } from \"../../../../../assets/images/sample-submission/blueCloseIcon.svg\";\nimport magnifyingGlassBlue from \"../../../../../assets/images/analytics/magnifyingGlass_midnight.png\";\nimport magnifyingGlassWhite from \"../../../../../assets/images/white-magnifying-glass.png\";\nimport \"./Search.css\";\nimport StyledRadioGroup from \"../../../../Common/UIComponents/StyledRadioGroup\";\n\nexport default function Search({\n updateProductList,\n setLoading,\n selectedTests,\n updateSearch,\n linkReportFields,\n fieldsMap,\n search,\n searchByField,\n setSearchByField,\n}) {\n const [searchInternal, setSearchInternal] = useState(\"\");\n const [searchBarActive, setSearchBarActive] = useState(false);\n const searchAbortController = useRef(null);\n\n // API call to get a list of products based on search and tests\n async function getProducts(search_by) {\n setLoading(true);\n const payload = {\n search: searchInternal,\n search_by,\n tests: selectedTests,\n linkReportFields,\n };\n const newController = new AbortController();\n /** If prev search api still in progress, abort it */\n if (searchAbortController.current) {\n searchAbortController.current.abort();\n }\n searchAbortController.current = newController;\n\n const response = await productSearch(payload, newController.signal);\n if (newController.signal.aborted) {\n return;\n }\n if (response.success) {\n updateProductList(response.result);\n } else {\n toast.error(\"Failed to search products\");\n updateProductList([]);\n }\n searchAbortController.current = null;\n setLoading(false);\n }\n\n // When user hits enter or removes the text\n const searchForProducts = (e, type) => {\n if (e.key === \"Enter\" || (e.key === \"Backspace\" && e.target.value === \"\") || type === \"clicked\") {\n getProducts(searchByField);\n updateSearch(searchInternal);\n }\n };\n\n /** When user changes the search by field, call product search api */\n const handleSearchByChange = (field) => {\n setSearchByField(field);\n getProducts(field);\n };\n\n const toggleSelectSearchBar = (bool) => {\n setSearchBarActive(bool);\n };\n\n const onOutsideClick = () => {\n if (!search) {\n toggleSelectSearchBar(false);\n }\n };\n\n let backgroundColor = \"\";\n let placeholder = \"\";\n let icon = magnifyingGlassWhite;\n if (searchInternal?.length > 0) {\n backgroundColor = \"#26A1D2\";\n } else if (searchBarActive) {\n backgroundColor = \"#DEF2FB\";\n } else {\n backgroundColor = \"#E1E9F1\";\n placeholder = \"Search a product\";\n icon = magnifyingGlassBlue;\n }\n\n const showFilters = linkReportFields.length > 1 && searchBarActive;\n\n return (\n \n
    \n
    toggleSelectSearchBar(true)}>\n setSearchInternal(e.target.value)}\n value={searchInternal}\n onKeyUp={(e) => searchForProducts(e)}\n />\n searchForProducts(e, \"clicked\")}\n style={{\n backgroundColor,\n }}\n >\n \"search\"\n
    \n
    \n\n {/* {!showFilters && linkReportFields.length > 1\n && (\n setShowFilters(true)} />\n ) } */}\n \n {showFilters\n && (\n \n {/* setSearchBarActive(false)} /> */}\n handleSearchByChange(e.target.value)}\n options={linkReportFields.map((json_field) => ({ label: fieldsMap[json_field].title_field, value: json_field }))}\n />\n \n )}\n \n\n
    \n \n );\n}\n","import React from \"react\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport \"./SelectionTitleSkeleton.css\";\n\nexport default function SelectionTitleSkeleton({ count = 1 }) {\n return (\n <>\n {[...Array(count)].map((_, index) => )}\n \n );\n}\n","import React from \"react\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport Highlighter from \"react-highlight-words\";\nimport { ReactComponent as CloseIcon } from \"../../../../../assets/images/sample-submission/blueCloseIcon.svg\";\n// import \"../../../styles/SelectionTileStyle.css\";\nimport \"./SelectionCard.css\";\nimport useAutoHideScrollbar from \"../../../../Common/hooks/useAutoHideScrollbar\";\n\nexport default function SelectionCard({\n data, animationKey, type, updateSelectedOptions, disabled, active, children, searchValue,\n}) {\n const [scrollbarRef, scrollbarStyle] = useAutoHideScrollbar();\n const selectionTileClicked = () => {\n updateSelectedOptions(data, type);\n };\n\n let statusClassName = \"\";\n if (active) {\n statusClassName = \"--focused\";\n } else if (disabled) {\n statusClassName = \"--disabled\";\n }\n\n return (\n \n \n
    \n {typeof data === \"string\" ? (\n \n ) : children }\n
    \n \n {active && (\n \n )}\n
    \n );\n}\n","import React from \"react\";\nimport Highlighter from \"react-highlight-words\";\nimport \"./ProductCard.css\";\nimport SelectionCard from \"../../CommonComponents/SelectionCard\";\n\nexport default function ProductCard({\n product, type, updateSelectedOptions, disabled, active, linkReportFields, fieldsMap, search, searchByField,\n}) {\n return (\n \n {linkReportFields.map((json_field) => (product[json_field]\n ? (\n \n {`${fieldsMap[json_field].title_field}: `}\n {json_field === searchByField ? (\n \n ) : {product[json_field]}}\n \n ) : null))}\n \n );\n}\n","import React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { LayoutGroup } from \"framer-motion/dist/framer-motion\";\n\nimport SelectionTitleSkeleton from \"../../CommonComponents/SelectionTitleSkeleton\";\nimport NoResults from \"../../../../../Common/NoResults\";\nimport emptyStateIcon from \"../../../../../../assets/images/EmptyState_V2.png\";\nimport ProductCard from \"./ProductCard\";\n\nexport default function ProductList({\n title,\n updateSelectedOptions,\n disabled,\n productList,\n selectedProducts,\n loading,\n linkReportFields,\n fieldsMap,\n search,\n searchByField,\n}) {\n const renderSelectedTiles = () => {\n if (selectedProducts && selectedProducts.length !== 0) {\n return selectedProducts.map((item, index) => (\n \n ));\n }\n\n return null;\n };\n\n // Renders all of the products and ignores any that are selected\n // The selected tiles will be rendered in a different component above\n const renderProductTiles = () => {\n if (loading) {\n return ();\n }\n if (productList && productList.length !== 0) {\n return productList.map((item, index) => {\n let active = false;\n if (selectedProducts.some((selectedItem) => selectedItem.product_id === item.product_id)) active = true;\n\n if (active) return null;\n return (\n \n );\n });\n }\n\n return (\n \n );\n };\n\n return (\n
    \n {title && {title}}\n\n \n
    \n \n {renderSelectedTiles()}\n {renderProductTiles()}\n \n
    \n
    \n
    \n );\n}\n","import React, { useState } from \"react\";\nimport TitleBlock from \"../CommonComponents/TitleBlock\";\nimport Search from \"../CommonComponents/Search\";\nimport ProductList from \"./Components/ProductList\";\nimport \"../../styles/ProductContainerStyle.css\";\n\nexport default function ProductContainer({\n updateSelectedOptions,\n disabledColumns,\n productList,\n updateProductList,\n selectedData,\n updateSearch,\n parentLoading,\n linkReportFields,\n fieldsMap,\n searchByField,\n setSearchByField,\n search,\n}) {\n const { selectedProducts, selectedTests } = selectedData;\n const [loading, setLoading] = useState(false);\n\n let disabled = false;\n if (disabledColumns.includes(\"product\")) disabled = true;\n return (\n
    \n \n \n\n {/* {selectedProducts && selectedProducts.length !== 0 && (\n \n )} */}\n\n \n
    \n );\n}\n","import moment from \"moment\";\n\nimport productGraphPillBlue from \"../../../assets/images/analytics/graphPillProduct_blue.png\";\nimport productGraphPillGreen from \"../../../assets/images/analytics/graphPillProduct_green.png\";\nimport productGraphPillOrange from \"../../../assets/images/analytics/graphPillProduct_orange.png\";\nimport productGraphPillPurple from \"../../../assets/images/analytics/graphPillProduct_purple.png\";\nimport testGraphPillBlue from \"../../../assets/images/analytics/graphPillTest_blue.png\";\nimport testGraphPillGreen from \"../../../assets/images/analytics/graphPillTest_green.png\";\nimport testGraphPillOrange from \"../../../assets/images/analytics/graphPillTest_orange.png\";\nimport testGraphPillPurple from \"../../../assets/images/analytics/graphPillTest_purple.png\";\n\n// Colors used to highlight scatter plots and color for the tooltip text\nexport const colorFromSpecFlag = [\"#19305A\", \"#00BF71\", \"#E63559\"];\n\n// Colors and icons array used to color the graphs with their respective colors\nexport const colorsAndIconsArray = [\n {\n productIcon: productGraphPillPurple,\n testIcon: testGraphPillPurple,\n backgroundColor: \"#F4EAFF\",\n accentColor: \"#A766EC\",\n hoverColor: \"#ECDBFF\",\n },\n {\n productIcon: productGraphPillOrange,\n testIcon: testGraphPillOrange,\n backgroundColor: \"#FEF7EC\",\n accentColor: \"#FF9F3F\",\n hoverColor: \"#FFEED2\",\n },\n {\n productIcon: productGraphPillBlue,\n testIcon: testGraphPillBlue,\n backgroundColor: \"#EDF2FF\",\n accentColor: \"#215BE3\",\n hoverColor: \"#E2EAFF\",\n },\n {\n productIcon: productGraphPillGreen,\n testIcon: testGraphPillGreen,\n backgroundColor: \"#EFFDFF\",\n accentColor: \"#7AC5CF\",\n hoverColor: \"#D9F7FC\",\n },\n];\n\n/**\n * Concatenate linked field values separated by a dot\n * @param {Object | Array} values ex {item: \"\", best_by: \"\"} or list of values\n * @param {Array | undefined} linkedFields if values is an object of fields, this is an array of linked fields [\"item\", \"best_by\"] else undefined\n * @returns {String} identifier\n */\nexport const getProductIdentifier = (values, linkedFields) => {\n let _values;\n if (values.constructor === Array) { // if array\n _values = values;\n } else if (typeof values === \"object\" && linkedFields) { // if object and linkedFields is not undefined\n _values = linkedFields.map((json_field) => values[json_field]);\n }\n return _values.join(\" \\u2022 \"); // concatenate fields separated by a dot\n};\n\n/**\n * Get linked field values as array from product identifier string\n * @param {String} identifier string of values separated by a dot\n * @returns {Object} array of values (IMPORTANT: empty strings are removed, so length may not be the same as linkReportFields)\n */\nexport const parseProductIdentifierIntoArrForDisplay = (identifier) => identifier.split(\" \\u2022 \").filter((val) => Boolean(val));\n\n/**\n * Get linked field values as object from product identifier string\n * @param {String} identifier string of values separated by a dot\n * @param {Array} linkedFields array of linked fields [\"item\", \"best_by\"]\n * @returns {Object} object of linked fields and values ex {item: \"\", best_by: \"\"}\n */\nexport const parseProductIdentifierIntoObj = (identifier, linkedFields) => {\n const parsedFields = identifier.split(\" \\u2022 \");\n const productObj = {};\n linkedFields.forEach((json_field, i) => {\n productObj[json_field] = parsedFields[i];\n });\n return productObj;\n};\n\n// Given an array of multiple values for a date\n// returns them in format { \"test_name|product_name\": [ {date, y, specFlag}, ...] }\n// Used to render a scatter plot\nexport const getFormattedPointsForScatter = (data) => {\n const dynamicTooltipField = \"time\";\n const finalObj = {};\n if (data !== undefined) {\n // Loop through the data\n data.forEach((item) => {\n // Loop through all of the unique tests\n item.result.forEach((test) => {\n // For that particular test loop through all of the reports\n test.allReports.forEach((value) => {\n const result = value.test_result_number;\n const rawResultNumber = value.test_result;\n\n // Create an object containing date(x), y, and the spec flag\n const obj = {\n date: moment(value.received_date).format(\"MM/DD/YYYY\"),\n y: parseFloat(result.toString().replace(\",\", \"\").replace(\"%\", \"\").replace(\" \", \"\")),\n rawResult: rawResultNumber,\n specsFlag: value.specs_flag === \"-\" ? null : value.specs_flag,\n id: value[dynamicTooltipField],\n };\n\n // Create a unique identifier of format test_name|product_name\n // If the object at this unique identifier exists --- push this new object into the array\n // Else, create a new array with this object\n const unique = `${value.test_name}|${test.name}`;\n if (finalObj[unique] !== undefined) {\n finalObj[unique].push(obj);\n } else {\n finalObj[unique] = [obj];\n }\n });\n });\n });\n\n return finalObj;\n }\n\n return null;\n};\n\n// Given all of the test data, formats the data so the graph library can process it\n// Three data structures are created: valuesArr, specArr, scatterObj, singleDataPointObj\n// valuesArr [{ date, result: [{ test_name: result, allReports: [] }, ...]}] --- used to render the lines and bars\n// specArr [{ max, min, name, spec: { max, min, test, unit} }] --- used to determine the bounds of the reference areas/lines\n// scatterObj is an object created by getFormattedPointsForScatter() --- used to plot the scatter graph\n// singleDataPointObj has a running count of how many data point we have for a given test/product\nexport const formatData = (data, fixedColumn, date) => {\n const valuesArr = [];\n const specArr = [];\n\n const valuesObj = {};\n const specsObj = {};\n const singleDataPointObj = {};\n\n // Loop through the entire dataset\n for (let i = 0; i < data.length; i++) {\n const reportList = data[i]?.report_list;\n\n // If we have a report list, loop through that\n if (reportList !== undefined) {\n const reportListKeys = Object.keys(reportList);\n\n for (let j = 0; j < reportListKeys.length; j++) {\n // console.log(reportList[reportListKeys[j]]);\n const report = reportList[reportListKeys[j]];\n const received_date = moment(reportListKeys[j]).format(\"MM/DD/YYYY\");\n\n // Sort the reports by test_result value, in descending order\n report.reports.sort((a, b) => b.test_result.replace(\"<\", \"\") - a.test_result.replace(\"<\", \"\"));\n\n // Check if our valuesObj has the received date as the key\n // If not add a new object as the value\n // If it does, append a new object as the value for the given date\n // Unique dates should be added to this object\n const reportAverage = typeof report.average === \"string\" ? 0 : report.average;\n const productIdentifier = report.reports[0].index_id; // use product id as identifier\n\n if (valuesObj[received_date] === undefined) {\n valuesObj[received_date] = {\n date: received_date,\n result: [\n {\n [report.reports[0].test_name]: reportAverage,\n [`${report.reports[0].test_name}|raw`]: report.average,\n name: productIdentifier,\n allReports: report.reports,\n },\n ],\n };\n } else {\n valuesObj[received_date] = {\n ...valuesObj[received_date],\n };\n\n const obj = {\n [report.reports[0].test_name]: reportAverage,\n [`${report.reports[0].test_name}|raw`]: report.average,\n name: productIdentifier,\n allReports: report.reports,\n };\n valuesObj[received_date].result.push(obj);\n }\n\n // Create our specsObj with the uniqueIdentifier --- \"product_name|test_name\" as the key\n // Append the corresponding spec information as the value\n // Only unique product test combinations should be added to this object\n const unique = `${productIdentifier}|${report.reports[0].test_name}`;\n specsObj[unique] = {\n spec: data[i].spec,\n max: data[i].max_value,\n min: data[i].min_value,\n name: productIdentifier,\n };\n\n // Create our object to store product test combinations that will only have 1 data point\n // Key is unique identifier as declared above\n if (singleDataPointObj[unique] !== undefined) {\n // delete singleDataPointObj[unique];\n singleDataPointObj[unique] += 1;\n } else {\n singleDataPointObj[unique] = 1;\n }\n }\n }\n }\n\n // Make sure all selected 7 days are present in our object\n // Also store a counter to see how many days we had to add, if we added all 7 we can return undefined\n // let startDate = moment(date[0]).format(\"MM/DD/YYYY\");\n // let addedDates = 0;\n // // Loop to check 7 days\n // for (let i = 0; i <= 7; i++) {\n // // console.log(startDate);\n // if (valuesObj[startDate] === undefined) {\n // valuesObj[startDate] = {\n // date: startDate,\n // result: [],\n // };\n // addedDates++;\n // }\n\n // startDate = moment(startDate).add(1, \"days\").format(\"MM/DD/YYYY\");\n // }\n\n // Convert our values object we created above into an array\n let objectKeys = Object.keys(valuesObj);\n for (let j = 0; j < objectKeys.length; j++) {\n valuesArr.push(valuesObj[objectKeys[j]]);\n }\n\n // Sort the values array by date\n valuesArr.sort((a, b) => Date.parse(a.date) - Date.parse(b.date));\n\n // Convert out specs object we create above into an array\n objectKeys = Object.keys(specsObj);\n for (let j = 0; j < objectKeys.length; j++) {\n specArr.push(specsObj[objectKeys[j]]);\n }\n\n // Get the scatter object\n const scatterObj = getFormattedPointsForScatter(valuesArr);\n\n // addedDates === 8 is REQUIRED if we need to show all dates on the x-axis\n // if ((valuesArr.length === 0 && specArr.length === 0) || addedDates === 8) return undefined;\n if ((valuesArr.length === 0 && specArr.length === 0)) return undefined;\n\n // console.log(\"Analytics\", {\n // valuesArr, specArr, scatterObj, singleDataPointObj,\n // });\n return {\n valuesArr, specArr, scatterObj, singleDataPointObj,\n };\n};\n\n// Given a selected graph, check if we have any data for that given graph\n// The scatterObj stores data with \"test_name|product_name\" as the key -- if that exists we have data\nexport const checkIfDataExists = (scatterObj, selectedGraph) => {\n if (selectedGraph === \"\") return true;\n const uniqueIdentifier = `${selectedGraph.test}|${selectedGraph.product?.product_id}`;\n if (scatterObj[uniqueIdentifier] !== undefined) return true;\n\n return false;\n};\n\n// Function that checks if two given arrays are equal to each other\nexport const arrayEquals = (a, b) => Array.isArray(a)\n && Array.isArray(b)\n && a.length === b.length\n && a.every((val, index) => val === b[index]);\n\n// Given a date in format \"START_DATE-END_DATE\"\n// Returns an array of [START_DATE, END_DATE] -- required for the api call\nexport const getStartEndDate = (date) => {\n const dateSplit = date.split(\"-\");\n\n return [moment(new Date(dateSplit[0])).format(\"YYYY/MM/DD\"), moment(new Date(dateSplit[1])).format(\"YYYY/MM/DD\")];\n};\n\n// Function to check the average value based on the spec of the test\nexport const compareAverageValueToSpec = (specValue, testType, bounds) => {\n let specColor = colorFromSpecFlag[0];\n // 3 different test types -- max, min, range\n if (testType === \"max\") {\n // specValue must be lower than the bound end\n if (specValue < bounds.end) {\n specColor = colorFromSpecFlag[1]; // 1 = in spec\n } else {\n specColor = colorFromSpecFlag[2]; // 2 = out of spec\n }\n } else if (testType === \"min\") {\n // specValue must be higher than bound start\n if (specValue > bounds.start) {\n specColor = colorFromSpecFlag[1];\n } else {\n specColor = colorFromSpecFlag[2];\n }\n } else if (testType === \"range\") {\n // specValue must be between bound start and end\n if (specValue > bounds.start && specValue < bounds.end) {\n specColor = colorFromSpecFlag[1];\n } else {\n specColor = colorFromSpecFlag[2];\n }\n }\n\n return specColor;\n};\n\n// Function to group scatter plots that overlap together -- to be shown in a tooltip\nexport const groupScatterDataInRange = (scatterObj, yGraphBound, selectedGraph, graphRef) => {\n if (graphRef.current === null) return null;\n const { product, test } = selectedGraph;\n\n // Logic to determine the difference based on the yGraphBound given\n let difference = 0;\n if (yGraphBound.end !== \"auto\") {\n const graphHeight = graphRef.current.state.prevHeight;\n\n difference = (yGraphBound.end / (graphHeight / 8)) * 2;\n // console.log(\"final difference\", difference);\n }\n\n // Create a new object for date\n // Each new value will be another key inside that object, which contain arrays of the grouped values\n const uniqueIdentifier = `${test}|${product?.product_id}`;\n const groupedScatterObj = { };\n\n if (scatterObj[uniqueIdentifier] !== undefined) {\n // Need two pointers, current and next\n let next = 1;\n let currDateCounter = 1;\n for (let current = 0; current < scatterObj[uniqueIdentifier].length; current++) {\n // Reset the next pointer back to the beginning of the date\n next = currDateCounter;\n\n const currSpecObj = scatterObj[uniqueIdentifier][current];\n let nextSpecObj;\n if (next < scatterObj[uniqueIdentifier].length) {\n nextSpecObj = scatterObj[uniqueIdentifier][next];\n }\n\n // Check/create a new date object for each unique date\n if (groupedScatterObj[currSpecObj.date] === undefined) {\n currDateCounter = current;\n\n // Since we update the currDateCounter, also update the next obj and counter accordingly\n next = current;\n nextSpecObj = scatterObj[uniqueIdentifier][next];\n\n groupedScatterObj[currSpecObj.date] = {};\n }\n\n // Add each unique number as a key to the object\n groupedScatterObj[currSpecObj.date] = {\n ...groupedScatterObj[currSpecObj.date],\n [currSpecObj.rawResult]: [`${currSpecObj.id}|${currSpecObj.rawResult}`],\n };\n\n // Check the difference between the curr and the next\n while ((currSpecObj.date === nextSpecObj.date) && (next < scatterObj[uniqueIdentifier].length - 1)) {\n if ((Math.abs(currSpecObj.y - nextSpecObj.y) < difference) && next !== current) {\n const itemToPush = `${nextSpecObj.id}|${nextSpecObj.rawResult}`;\n groupedScatterObj[currSpecObj.date][currSpecObj.rawResult].push(itemToPush);\n }\n\n // Increment the next counter and update the next specObj\n next++;\n nextSpecObj = scatterObj[uniqueIdentifier][next];\n }\n\n // Sort the array in descending order\n const array = groupedScatterObj[currSpecObj.date][currSpecObj.rawResult];\n array.sort((a, b) => {\n const dataOne = a.split(\"|\")[1];\n const dataTwo = b.split(\"|\")[1];\n\n return dataTwo - dataOne;\n });\n }\n }\n\n // console.log(\"ToolTip Grouping\", groupedScatterObj);\n return groupedScatterObj;\n};\n","import React, { forwardRef } from \"react\";\nimport { colorFromSpecFlag, compareAverageValueToSpec } from \"../../../Helper\";\n\nconst GraphToolTip = forwardRef(({\n payload, selectedGraph, hoveredItem, selectedSpecData, groupedScatterPoints,\n}, ref) => {\n // Function to render all of the values of the scatter points\n // Loops through the data and matches the test and product\n // Loops through the corresponding reports -- and changes the color depending on spec flag\n const renderAllValues = () => {\n if (payload !== null && payload.length !== 0) {\n const data = payload[0]?.payload?.result;\n\n if (data === undefined) return null;\n\n return data.map((item) => {\n if (item[selectedGraph.test] !== undefined && item.name === selectedGraph.product?.product_id) {\n return item.allReports.map((value, index) => {\n let color = \"\";\n\n if (value.specs_flag === \"1\") color = \"#00BF71\";\n else if (value.specs_flag === \"2\") color = \"#E63559\";\n else color = \"#19305A\";\n\n return (\n
    \n {value.time}\n {value.test_result}\n
    \n );\n });\n }\n\n return null;\n });\n }\n\n return null;\n };\n\n // Function to render the average value with the proper color\n const renderColoredAverageSpec = (specValueRaw, specValue) => {\n const { testType, bounds } = selectedSpecData;\n\n return (\n \n {specValueRaw}\n \n );\n };\n\n // Function to render the average value\n // Loops through the payload and checks item.stroke or item.color -- only one should have a color that is not grayed out\n const renderAverage = () => {\n // const grayedOutColor = \"#EAF0F5\";\n // let accentColor = \"\";\n if (payload !== null && payload.length !== 0) {\n // payload.forEach((item) => {\n // if (item.stroke !== undefined && item.stroke !== grayedOutColor) {\n // accentColor = item.stroke;\n // }\n\n // if (item.color !== undefined && item.color !== grayedOutColor) {\n // accentColor = item.color;\n // }\n // });\n\n const data = payload[0]?.payload?.result;\n\n if (data === undefined) return null;\n\n return data?.map((item, index) => {\n if (item[selectedGraph.test] !== undefined && item.name === selectedGraph.product?.product_id) {\n return (\n \n Average Result Value: \n {renderColoredAverageSpec(item[`${selectedGraph.test}|raw`], item[`${selectedGraph.test}`])}\n \n );\n }\n\n return null;\n });\n }\n\n return null;\n };\n\n const renderNumberOfSamples = () => {\n let counter = 0;\n if (payload !== null && payload.length !== 0) {\n const data = payload[0]?.payload?.result;\n\n if (data === undefined) return null;\n\n data.forEach((item) => {\n if (item[selectedGraph.test] !== undefined && item.name === selectedGraph.product?.product_id) {\n counter = item.allReports.length;\n\n if (counter <= 9) counter = `0${counter}`;\n }\n });\n }\n\n return counter;\n };\n\n if (hoveredItem === null) return null;\n if (payload[0]?.payload?.result === undefined) return null;\n\n if (hoveredItem.type === \"scatter\" && groupedScatterPoints !== null) {\n const specFlag = hoveredItem.data.specsFlag;\n const toolTipValueTextColor = specFlag === null ? colorFromSpecFlag[0] : colorFromSpecFlag[specFlag];\n return (\n
    \n {/* Display tooltip WITHOUT grouping the data points */}\n
    \n
    {hoveredItem.data.id}
    \n
    {hoveredItem.data.rawResult}
    \n\n {/* Display tooltip WITH grouping the data points */}\n {/*
    \n {groupedScatterPoints[hoveredItem.data.date][hoveredItem.data.rawResult].map((item, index) => {\n const toolTipData = item.split(\"|\");\n return (\n
    \n \n {toolTipData[0]}\n
    \n\n \n {toolTipData[1]}\n
    \n
    \n )\n })}\n
    */}\n
    \n \n );\n }\n\n if (hoveredItem.type === \"average\") {\n return (\n
    \n {renderAllValues()}\n\n
    \n\n
    \n {renderAverage()}\n
    \n {/*
    \n {selectedGraph.product}\n
    */}\n\n
    \n \n Total no of Samples:\n \n\n \n {renderNumberOfSamples()}\n \n
    \n
    \n );\n }\n\n return null;\n // return (\n //
    \n // {renderAllValues()}\n\n //
    \n // {renderAverage()}\n //
    \n\n // {/*
    \n // {selectedGraph.product}\n //
    */}\n\n //
    \n // \n // Total no of Samples:\n // \n\n // \n // {renderNumberOfSamples()}\n // \n //
    \n //
    \n // );\n});\n\nexport default GraphToolTip;\n","import React, { useState } from \"react\";\nimport { Dot } from \"recharts\";\nimport { colorFromSpecFlag } from \"../../../Helper\";\n\nexport default function ScatterPoint(props) {\n const {\n cx, cy, specsFlag, updateHoveredItem, payload,\n } = props;\n\n const [hovered, setHovered] = useState();\n\n const handleDotHover = (hoverState) => {\n setHovered(hoverState);\n\n if (hoverState) {\n updateHoveredItem({ data: payload, type: \"scatter\" });\n } else {\n updateHoveredItem(null);\n }\n };\n\n let opacity = 0.8;\n let strokeColor = \"#D1DCE8\";\n if (hovered) {\n strokeColor = specsFlag === null ? colorFromSpecFlag[0] : colorFromSpecFlag[specsFlag];\n opacity = 1;\n }\n\n return (\n handleDotHover(true)} onMouseLeave={() => handleDotHover(false)} opacity={opacity} />\n );\n}\n","import React, { useState, useEffect } from \"react\";\nimport moment from \"moment\";\nimport {\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, ComposedChart, Line, Scatter, Bar, Dot, Brush,\n} from \"recharts\";\n// import {\n// valuesArr, scatterObj, specArr, singleDataPointObj,\n// } from \"../../../../../../assets/MockData\";\n\nimport ScatterPoint from \"./ScatterPoint\";\nimport \"../../../styles/GraphContainerStyle.css\";\n// import ArrowIcon from \"../../../../../../assets/images/product/next.svg\";\n\nimport { colorsAndIconsArray, compareAverageValueToSpec } from \"../../../Helper\";\n\nexport default function ComposedGraph(props) {\n const {\n showGraphData, selectedData, formattedData, selectedGraph, graphKey, yGraphBound, updateSelectedGraph, getProperDataKey, renderReferenceArea, renderToolTip, showBarGraph, updateHoveredItem, graphRef,\n } = props;\n const { valuesArr, scatterObj } = formattedData;\n const DEFAULT_DATES_PER_PAGE = 30;\n const [indexes, setIndexes] = useState({ startIdx: 0, endIdx: Math.min(valuesArr.length, DEFAULT_DATES_PER_PAGE) - 1 });\n const [valuesArrSelected, setValuesArrSelected] = useState(valuesArr);\n const [valuesArrSelectedAndDisplayed, setValuesArrSelectedAndDisplayed] = useState([]);\n\n useEffect(() => {\n if (selectedGraph !== \"\") { // Update passed data when select a graph, removing the dates that do not have values from XAxis.\n const valuesArrSelectedCalculation = [];\n valuesArr.forEach((values) => {\n const resultsOnTheDate = values.result;\n const selectedResultsOnTheDate = { date: values.date, result: [] };\n let hasDataOnTheDate = false;\n\n resultsOnTheDate.forEach((res) => {\n if (selectedGraph.product?.product_id === res.name && res[selectedGraph.test] !== undefined) {\n selectedResultsOnTheDate.result.push(res);\n hasDataOnTheDate = true;\n }\n });\n\n if (hasDataOnTheDate) {\n valuesArrSelectedCalculation.push(selectedResultsOnTheDate);\n }\n });\n\n setValuesArrSelected(valuesArrSelectedCalculation);\n setIndexes({ startIdx: 0, endIdx: Math.min(valuesArrSelectedCalculation.length, DEFAULT_DATES_PER_PAGE) - 1 });\n } else {\n setValuesArrSelected(valuesArr);\n // Reset brush indexes after changing selected products and tests, and unselecting graphs\n setIndexes({ startIdx: 0, endIdx: Math.min(valuesArr.length, DEFAULT_DATES_PER_PAGE) - 1 });\n }\n }, [selectedGraph, formattedData, valuesArr]);\n\n // Update passed data when select a graph (removing the dates that do not have values), change indexes range, or select products/tests.\n useEffect(() => {\n const { startIdx, endIdx } = indexes;\n const startDate = moment(new Date(valuesArrSelected[startIdx]?.date));\n const endDate = moment(new Date(valuesArrSelected[endIdx]?.date));\n const valuesArrDisplayedCalculation = valuesArrSelected.filter(({ date }) => moment(new Date(date)) >= startDate && moment(new Date(date)) <= endDate);\n setValuesArrSelectedAndDisplayed(valuesArrDisplayedCalculation);\n }, [selectedGraph.product, selectedGraph.test, indexes, formattedData, valuesArrSelected]);\n\n // Pass the proper data when a line is clicked\n const getNewSelectedGraphData = (product, test) => {\n const { selectedProducts, selectedTests } = selectedData;\n let counter = 0;\n selectedProducts.forEach((p) => selectedTests.forEach((t) => {\n if (p.product_id === product?.product_id && test === t) {\n updateSelectedGraph({ product, test, color: colorsAndIconsArray[counter].accentColor });\n }\n counter++;\n }));\n };\n\n // Renders a scatter plot -- only gets rendered when a graph is selected, and updated as the brush indexes change\n // Colors the individual dots green/red/default depending on in spec/out of spec/incomplete\n const renderScatter = (counter, product, test) => {\n if (showBarGraph) return null;\n\n let points = [];\n if (scatterObj !== undefined) {\n const uniqueIdentifier = `${test}|${product?.product_id}`;\n if (scatterObj[uniqueIdentifier] !== undefined) points = scatterObj[uniqueIdentifier];\n const { startIdx, endIdx } = indexes;\n const startDate = moment(new Date(valuesArrSelected[startIdx]?.date));\n const endDate = moment(new Date(valuesArrSelected[endIdx]?.date));\n points = points.filter(({ date }) => moment(new Date(date)) >= startDate && moment(new Date(date)) <= endDate);\n }\n\n return (\n <>\n getProperDataKey(currObj, product, test)}\n shape={}\n >\n {/* {points.map((entry, index) => updateHoveredItem({ data: entry, type: \"scatter\" })} onMouseLeave={() => updateHoveredItem(null)} />)} */}\n {/* if (entry.specsFlag === \"-\" || entry.specsFlag === null) {\n return ;\n }\n return ; */}\n \n \n );\n };\n\n // Renders line to be shown on the line graph\n // Loops through products and tests -- returns a line for each\n const renderLines = () => {\n if (!showGraphData) return null;\n if (showBarGraph) return null;\n\n const { selectedTestType, specBounds } = props;\n const { selectedProducts, selectedTests } = selectedData;\n const { singleDataPointObj } = formattedData;\n let counter = -1;\n\n return selectedProducts.map((product) => selectedTests.map((test) => {\n counter++;\n\n const renderDot = singleDataPointObj[`${product?.product_id}|${test}`];\n let dotObj = false;\n let animation = true;\n\n // Renders a customized dot when there is only one data point on a page\n let countOnThePage = 0;\n valuesArrSelectedAndDisplayed.forEach((resultsOnTheDate) => {\n resultsOnTheDate.result.forEach((res) => {\n if (res.name === product?.product_id && res[test] !== undefined) {\n countOnThePage++;\n }\n });\n });\n if (renderDot === 1 || countOnThePage === 1) {\n animation = false;\n dotObj = {\n r: 4, fill: \"#FFF\", stroke: colorsAndIconsArray[counter].accentColor, strokeWidth: 3, onClick: () => { getNewSelectedGraphData(product, test); },\n };\n }\n\n // We have a selected graph\n if (selectedGraph && selectedGraph.product?.product_id === product?.product_id && selectedGraph.test === test) {\n return (\n <>\n {renderReferenceArea()}\n {renderToolTip()}\n getProperDataKey(currObj, product, test)}\n stroke={colorsAndIconsArray[counter].accentColor}\n strokeWidth={4}\n connectNulls\n dot={{\n r: 4,\n fill: \"#FFF\",\n stroke: colorsAndIconsArray[counter].accentColor,\n strokeWidth: 3,\n }}\n activeDot={(obj) => {\n // Responsible for highlighting the active dot green/red/default depending on the spec\n const resultArr = obj.payload.result;\n let spec;\n\n // Finds the correct spec value to use\n resultArr.forEach((result) => {\n if (result[test] !== undefined && result.name === product?.product_id) {\n spec = result[test];\n }\n });\n\n // Renders the active dot obj\n return (\n updateSelectedGraph({ product, test, color: colorsAndIconsArray[counter].accentColor })}\n onMouseEnter={() => updateHoveredItem({ data: { product, test }, type: \"average\" })}\n onMouseOut={() => updateHoveredItem(null)}\n />\n );\n }}\n onClick={() => updateSelectedGraph({ product, test, color: colorsAndIconsArray[counter].accentColor })}\n animationBegin={200}\n isAnimationActive={animation}\n />\n {renderScatter(counter, product, test)}\n \n );\n }\n\n // No selected graph so render all lines\n if (selectedGraph === \"\") {\n return (\n getProperDataKey(currObj, product, test)}\n stroke={colorsAndIconsArray[counter].accentColor}\n strokeWidth={4}\n connectNulls\n dot={dotObj}\n activeDot={false}\n onClick={() => getNewSelectedGraphData(product, test)}\n animationBegin={200}\n isAnimationActive={animation}\n />\n );\n }\n\n return null;\n\n // A graph is selected, all other should be a gray line\n // return (\n // getProperDataKey(currObj, product, test)}\n // // stroke=\"#EAF0F5\"\n // strokeOpacity={0.2}\n // strokeWidth={3}\n // connectNulls\n // dot={false}\n // activeDot={false}\n // animationBegin={200}\n // />\n // );\n }));\n };\n\n // Renders the bars to be shown on the bar graph\n // Loops through products and tests -- returns a bar for each\n const renderBars = () => {\n const opacity = showBarGraph ? 1 : 0;\n if (!showGraphData) return null;\n\n const { selectedProducts, selectedTests } = selectedData;\n\n let counter = -1;\n return selectedProducts.map((product) => selectedTests.map((test) => {\n counter++;\n // We have a selected graph\n if (selectedGraph && selectedGraph.product?.product_id === product?.product_id && selectedGraph.test === test) {\n return (\n <>\n {showBarGraph && renderReferenceArea()}\n {showBarGraph && renderToolTip(false)}\n getProperDataKey(currObj, product, test)}\n fill={colorsAndIconsArray[counter].accentColor}\n maxBarSize={16}\n minPointSize={5}\n onClick={() => updateSelectedGraph({ product, test, color: colorsAndIconsArray[counter].accentColor })}\n animationBegin={200}\n radius={[8, 8, 0, 0]}\n opacity={opacity}\n onMouseEnter={() => updateHoveredItem({ data: { product, test }, type: \"average\" })}\n onMouseLeave={() => updateHoveredItem(null)}\n />\n \n );\n }\n\n // No graph selected\n if (selectedGraph === \"\") {\n return (\n getProperDataKey(currObj, product, test)}\n fill={colorsAndIconsArray[counter].accentColor}\n maxBarSize={16}\n minPointSize={5}\n onClick={() => getNewSelectedGraphData(product, test)}\n animationBegin={200}\n radius={[8, 8, 0, 0]}\n opacity={opacity}\n />\n );\n }\n\n return null;\n\n // Gray out everything else\n // return (\n // getProperDataKey(currObj, product, test)}\n // fill=\"#EAF0F5\"\n // maxBarSize={16}\n // minPointSize={5}\n // animationBegin={200}\n // radius={[8, 8, 0, 0]}\n // fillOpacity={0.2}\n // />\n // );\n }));\n };\n\n let currentMonth = \"\";\n // Called from graph component\n // Returns the proper date formatted to be plotted on the x-axis\n const formatXAxisTicks = (tickItem) => {\n const date = moment(new Date(tickItem));\n const month = date.format(\"MMM\");\n const day = date.format(\"DD\");\n // console.log(currentMonth, tickItem, valuesArrSelected[indexes.startIdx].date);\n // console.log(indexes.startIdx, valuesArrSelected, valuesArrSelected[indexes.startIdx]);\n if (currentMonth === \"\" || month !== currentMonth || tickItem === valuesArrSelected[indexes.startIdx]?.date) {\n currentMonth = month;\n return moment(new Date(tickItem)).format(\"MMM DD\");\n }\n return day;\n };\n\n const handleBrushChange = ({ startIndex, endIndex }) => {\n setIndexes({ startIdx: startIndex, endIdx: endIndex });\n };\n\n // Returns the proper date formatted for the brush\n // const firstDate = valuesArr[0].date;\n // const lastDate = valuesArr[valuesArr.length - 1].date;\n // if (tickItem === firstDate || tickItem === lastDate) {\n // return moment(tickItem).format(\"MMM DD\");\n // }\n const formatBrushDate = (tickItem) => moment(new Date(tickItem)).format(\"MMM DD, YY\");\n // const handleClickPrev = () => {\n // const currentDatesPerPage = idxes.endIdx - idxes.startIdx + 1;\n // const newStartIdx = Math.max(0, idxes.startIdx - currentDatesPerPage);\n // const newEndIdx = Math.max(0, idxes.endIdx - currentDatesPerPage);\n // setIdxes({ startIdx: newStartIdx, endIdx: newEndIdx });\n // };\n\n // const handleClickNext = () => {\n // const currentDatesPerPage = idxes.endIdx - idxes.startIdx + 1;\n // const newStartIdx = Math.min(idxes.startIdx + currentDatesPerPage, valuesArr.length - 1);\n // const newEndIdx = Math.min(idxes.endIdx + currentDatesPerPage, valuesArr.length - 1);\n // setIdxes({ startIdx: newStartIdx, endIdx: newEndIdx });\n // };\n // console.log(\"valuesArrSelected\", valuesArrSelected);\n return (\n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n\n formatXAxisTicks(tickItem)}\n tickLine={false}\n fontSize={11}\n fontFamily=\"Roboto\"\n tick={{ fill: \"#AFBDCA\" }}\n stroke=\"#C4D2DF\"\n allowDuplicatedCategory={false}\n />\n \n {renderLines()}\n {renderBars()}\n formatBrushDate(tickItem)}\n />\n \n \n //
    \n // {idxes.startIdx > 0 && (\n // \n // )}\n // {idxes.endIdx < (valuesArr.length - 1) && (\n // \n // )}\n //
    \n );\n}\n","import React from \"react\";\nimport { Rectangle } from \"recharts\";\n\nexport default function GraphTooltipCursor(props) {\n const {\n height, width, points, xAxisTicks, showBarGraph,\n } = props;\n\n let xVal;\n let yVal;\n\n // If we have props.points then line graph\n if (points !== undefined) {\n const { x, y } = points[0];\n xVal = x;\n yVal = y;\n } else { // Bar graph\n const { x, y } = props;\n xVal = x;\n yVal = y;\n }\n\n const lineWidth = 1;\n const widthOfXAxisTicks = width / xAxisTicks;\n return (\n <>\n \n\n {!showBarGraph && (\n \n )}\n \n );\n}\n","import React, {\n useEffect, useRef, useState,\n} from \"react\";\nimport { ReferenceArea, ReferenceLine, Tooltip } from \"recharts\";\nimport { v4 as uuidv4 } from \"uuid\";\n\nimport { checkIfDataExists, groupScatterDataInRange } from \"../../../Helper\";\nimport GraphTooltip from \"./GraphTooltip\";\nimport ComposedGraph from \"./ComposedGraph\";\nimport GraphTooltipCursor from \"./GraphTooltipCursor\";\n\nexport default function Graph(props) {\n const {\n formattedData, selectedData, selectedGraph, showBarGraph, updateSelectedGraph,\n } = props;\n const { valuesArr, specArr, scatterObj } = formattedData;\n\n const [yReferenceBound, setYReferenceBound] = useState({ start: 0, end: \"auto\" });\n const [yGraphBound, setYGraphBound] = useState({ start: 0, end: \"auto\" });\n const [selectedSpecTestType, setSelectedSpecTestType] = useState(\"default\");\n const [selectedGraphHasData, setSelectedGraphHasData] = useState(true);\n const [graphKey, setGraphKey] = useState(uuidv4());\n\n const [hoveredItem, setHoveredItem] = useState(null);\n const [groupedScatterPoints, setGroupedScatterPoints] = useState(null);\n\n // const [selectedGraphData, setSelectedGraphData] = useState(valuesArr);\n\n const [showGraphData, setShowGraphData] = useState(true);\n\n const toolTipRef = useRef();\n const graphRef = useRef();\n\n // Use effect to get the bounds for the reference background/lines when a selected graph changes\n useEffect(() => {\n // Update the values arr to only contain dates that the selected test/product has data for\n // This eliminates any x-axis marks with no data\n // function getUpdatedGraphDataArray() {\n // const updatedArr = [];\n // valuesArr.forEach((value) => {\n // const results = value.result;\n\n // results.forEach((result) => {\n // if (result[selectedGraph.test] !== undefined && selectedGraph.product === result.name) {\n // updatedArr.push(value);\n // }\n // });\n // });\n\n // return updatedArr;\n // }\n\n // Given a spec containing a \"<\" or \">\" and a type of \"min\" or \"max\"\n // Removes all the chars that could hinder parsing, and returns\n function parseSpecValue(valueToParse, type) {\n let parsedSpec = \"\";\n if (type === \"max\") {\n if (valueToParse.includes(\"<\")) parsedSpec = valueToParse.split(\"<\")[1].replace(\",\", \"\").replace(\"%\", \"\");\n else parsedSpec = valueToParse.replace(\",\", \"\").replace(\"%\", \"\");\n\n return parsedSpec;\n }\n\n if (type === \"min\") {\n if (valueToParse.includes(\">\")) parsedSpec = valueToParse.split(\">\")[1].replace(\",\", \"\").replace(\"%\", \"\");\n else parsedSpec = valueToParse.replace(\",\", \"\").replace(\"%\", \"\");\n\n return parsedSpec;\n }\n\n return null;\n }\n\n // Gets the bounds for the y-axis of the graph\n // The bound is based off the higher value between the spec max and the result max\n // Depending on the type of spec -- reference bounds are set accordingly\n function getYBounds() {\n let specFound = false;\n for (let i = 0; i < specArr.length; i++) {\n const item = specArr[i];\n\n // Selected graph data found\n if (item.name === selectedGraph.product?.product_id && item.spec.test === selectedGraph.test) {\n specFound = true;\n\n // Decide if it is range or quantitative(max/min)\n let valueToParse = \"\";\n let type = \"no spec\";\n\n // Range found\n // set the start and end to min/max respectively -- reference bound\n if (item.spec.min !== \"\" && item.spec.max !== \"\") {\n type = \"range\";\n\n const min = item.spec.min.replace(\",\", \"\").replace(\"%\", \"\").trim();\n const max = item.spec.max.replace(\",\", \"\").replace(\"%\", \"\").trim();\n const yBoundMax = Math.max(max, item.max);\n\n return {\n testType: type, yReferenceBoundStart: min, yReferenceBoundEnd: max, yGraphBoundStart: 0, yGraphBoundEnd: yBoundMax, specFound,\n };\n }\n\n // Max found\n // set the end to the spec max value -- reference bound\n if (item.spec.min === \"\" && item.spec.max !== \"\") {\n type = \"max\";\n valueToParse = item.spec.max;\n\n if (valueToParse !== \"None\" && !valueToParse.includes(\"Negative\") && !valueToParse.includes(\"Positive\")) {\n const parsedSpec = parseSpecValue(valueToParse.split(\" \")[0], type);\n const yBoundMax = Math.max(parsedSpec, item.max);\n\n return {\n testType: type, yReferenceBoundStart: 0, yReferenceBoundEnd: parseFloat(parsedSpec), yGraphBoundStart: 0, yGraphBoundEnd: yBoundMax, specFound,\n };\n }\n\n return {\n specFound, yGraphBoundStart: 0, yGraphBoundEnd: \"auto\",\n };\n }\n\n // Min found\n // set the start to the spec max value -- reference bound\n if (item.spec.min !== \"\" && item.spec.max === \"\") {\n type = \"min\";\n valueToParse = item.spec.min;\n\n if (valueToParse !== \"None\" && !valueToParse.includes(\"Negative\") && !valueToParse.includes(\"Positive\")) {\n const parsedSpec = parseSpecValue(valueToParse.split(\" \")[0], type);\n const yBoundMax = Math.max(parsedSpec, item.max);\n\n return {\n testType: type, yReferenceBoundStart: parseFloat(parsedSpec), yReferenceBoundEnd: \"auto\", yGraphBoundStart: 0, yGraphBoundEnd: yBoundMax, specFound,\n };\n }\n\n return {\n specFound, yGraphBoundStart: 0, yGraphBoundEnd: \"auto\",\n };\n }\n\n // Error or no spec\n return {\n testType: type, yReferenceBoundStart: 0, yReferenceBoundEnd: \"auto\", yGraphBoundStart: 0, yGraphBoundEnd: \"auto\", specFound,\n };\n }\n }\n\n return {\n specFound, yGraphBoundStart: 0, yGraphBoundEnd: \"auto\",\n };\n }\n\n // When a selected graph changes, make sure the data exists\n // Otherwise need to show a message accordingly\n const hasData = checkIfDataExists(formattedData.scatterObj, selectedGraph);\n setSelectedGraphHasData(hasData);\n\n // Make sure a graph is selected\n if (selectedGraph !== \"\") {\n if (hasData) {\n // const updatedValuesArr = getUpdatedGraphDataArray();\n\n const yBounds = getYBounds();\n const {\n testType, yReferenceBoundStart, yReferenceBoundEnd, yGraphBoundStart, yGraphBoundEnd, specFound,\n } = yBounds;\n\n // If we don't find a spec -- set the test type and bounds to auto\n // If we did find a spec -- set the test type, reference bounds(x/y) and graph bounds(y)\n if (specFound === false) {\n setSelectedSpecTestType(\"no spec\");\n setYReferenceBound({ start: 0, end: \"auto\" });\n setYGraphBound({ start: yGraphBoundStart, end: yGraphBoundEnd });\n\n // setSelectedGraphData(updatedValuesArr);\n } else {\n setSelectedSpecTestType(testType);\n setYReferenceBound({ start: yReferenceBoundStart, end: yReferenceBoundEnd });\n setYGraphBound({ start: yGraphBoundStart, end: yGraphBoundEnd });\n\n // setSelectedGraphData(updatedValuesArr);\n }\n }\n } else {\n setYGraphBound({ start: 0, end: \"auto\" });\n }\n }, [selectedGraph.product, selectedGraph.test]); // eslint-disable-line\n\n // Fired when the selected data changes, hides the graph until the format function runs\n useEffect(() => {\n setShowGraphData(false);\n }, [selectedData.selectedProducts, selectedData.selectedTests]);\n\n // When the formatted data's spec arr changes, aka a new product/test has been added and data has been formatted, re-render the graph\n // Also make sure we update our grouped scatter points\n useEffect(() => {\n setShowGraphData(true);\n setGraphKey(uuidv4());\n\n if (selectedGraph !== \"\") setGroupedScatterPoints(groupScatterDataInRange(scatterObj, yGraphBound, selectedGraph, graphRef));\n }, [formattedData.specArr, selectedGraph.product, selectedGraph.test, yGraphBound, graphRef]); // eslint-disable-line\n\n // Called from line/bar components\n // Returns the proper value to be plotted\n const getProperDataKey = (currObj, product, test) => {\n if (currObj.result !== undefined) {\n for (let i = 0; i < currObj.result.length; i++) {\n if (currObj.result[i].name === product?.product_id && currObj.result[i][test] !== undefined) {\n return currObj.result[i][test];\n }\n }\n }\n\n return currObj.y;\n };\n\n // Renders the background colors of green/red -- also renders green line marking the spec\n // Depending on the spec type (range, max, min, no spec) -- multiple reference areas or lines need to be drawn\n // If we have the same date for the xBounds, don't pass those values to the reference areas\n const renderReferenceArea = () => {\n const colors = {\n green: \"#E9FEE5\", greenAccent: \"#00BF71\", red: \"#FFEDED\", redAccent: \"#E63559\",\n };\n\n if (selectedGraph !== \"\") {\n // Color the background for a range\n if (selectedSpecTestType === \"range\") {\n return (\n <>\n \n \n \n \n \n \n );\n }\n\n // Color the background for a max\n if (selectedSpecTestType === \"max\") {\n if (Number.isNaN(yReferenceBound.start) || Number.isNaN(yReferenceBound.end)) return null;\n return (\n <>\n \n \n \n \n );\n }\n\n // Color the background for a min\n if (selectedSpecTestType === \"min\") {\n if (Number.isNaN(yReferenceBound.start) || Number.isNaN(yReferenceBound.end)) return null;\n return (\n <>\n \n \n \n \n );\n }\n }\n\n return null;\n };\n\n // Renders a custom tool tip when graph is selected and hovered\n const renderToolTip = () => (\n }\n cursor={}\n wrapperStyle={{ outline: \"none\" }}\n />\n );\n\n // No data\n if (!selectedGraphHasData) {\n return (\n
    \n No data found for the selected date range\n
    \n );\n }\n\n return (\n \n );\n}\n","import React from \"react\";\nimport datePickerIcon from \"../../../../../assets/images/analytics/datePickerIcon.png\";\nimport DatePicker from \"../../../../Common/DatePicker/DatePicker\";\nimport {\n getDates,\n} from \"../../../../../actions/productAnalytics\";\nimport \"./AnalyticsDatePicker.css\";\n\nexport default function AnalyticsDatePicker({\n selectedData,\n showDatePicker,\n setDatePicker,\n searchByDate,\n dateSelected,\n setDateSelected,\n prevDateSelected,\n setPrevDateSelected,\n}) {\n const { selectedProducts, selectedTests } = selectedData;\n\n const getReportDates = async () => {\n const payload = {\n products: selectedProducts,\n tests: selectedTests,\n };\n const response = await getDates(payload);\n if (response && response.success) {\n const dates = response.result;\n return dates ?? [];\n }\n return [];\n };\n\n return (\n document.getElementById(\"AnalyticsDatePickerPopupContainer\")}\n autoAdjustOverflow={false}\n popoverClassName=\"AnalyticsDatePickerPopover\"\n calendarClassName=\"AnalyticsCalendar\"\n disableClickAway\n disableSingleDaySelection\n datePickerDisplayProps={{\n displayElemId: \"AnalyticsDatePickerPopupContainer\",\n displayClassName: \"analyticsDateIconContainer\",\n showText: false,\n customCalendarIcon: \"datepicker\",\n }}\n >\n {/*
    \n \"datepicker\"\n
    */}\n \n );\n}\n","import React, { useState } from \"react\";\nimport { Tooltip } from \"antd\";\nimport closeIcon from \"../../../../../../assets/images/analytics/closeIconSmall.png\";\nimport \"./GraphPill.css\";\n\nimport { colorsAndIconsArray } from \"../../../Helper\";\n\nexport default function GraphPill({\n data, counter, updateSelectedGraph, selected, dataIsUndefined, linkReportFields, fieldsMap, selectedGraphHasSpec,\n}) {\n const { product, test } = data;\n\n const setSelectedGraph = () => {\n const selectedGraphObj = {\n product,\n test,\n color: colorsAndIconsArray[counter].accentColor,\n };\n\n updateSelectedGraph(selectedGraphObj);\n };\n\n const [isHovering, setIsHovering] = useState(false);\n const colorObj = colorsAndIconsArray[counter];\n\n let boxShadowStyle = \"\";\n if (selected) boxShadowStyle = `inset 0px 0px 1px 1px ${colorObj.accentColor}`;\n\n const nonEmptyFields = linkReportFields.filter((json_field) => product[json_field]);\n\n return (\n \n {nonEmptyFields.map((json_field) => (\n \n {`${fieldsMap[json_field].title_field}: `}\n {`${product[json_field]} `}\n \n ))}\n {\" \\u2022 \"}\n {` ${test}`}\n {!selectedGraphHasSpec && selected && (\n <>\n {\" \\u2022 \"}\n {\" No spec found for this test\"}\n \n )}\n \n)}\n >\n setIsHovering(true)}\n onMouseLeave={dataIsUndefined ? null : () => setIsHovering(false)}\n >\n
    \n \"Product\"\n \n {nonEmptyFields.map((json_field, i) => (\n \n {`${fieldsMap[json_field].title_field}: `}\n {`${product[json_field]}${i < nonEmptyFields.length - 1 ? \" \" : \"\"}`}\n \n ))}\n \n
    \n \n
    \n \"Test\"\n {test}\n
    \n {selected && \"closeIcon\"}\n
    \n \n );\n}\n","import React from \"react\";\nimport moment from \"moment\";\nimport { Swiper, SwiperSlide } from \"swiper/react\";\nimport { Pagination, Navigation } from \"swiper\";\n// import { CSVLink } from \"react-csv\";\nimport StyledSwitch from \"../../../../../Common/UIComponents/StyledSwitch\";\nimport AnalyticsDatePicker from \"../../CommonComponents/AnalyticsDatePicker\";\nimport GraphPill from \"./GraphPill\";\nimport \"./GraphHeader.css\";\n\nexport default function GraphHeader({\n selectedData,\n selectedGraph,\n selectedGraphHasSpec,\n showBarGraph,\n setShowBarGraph,\n showDatePicker,\n getSelectedDates,\n setDatePicker,\n updateSelectedGraph,\n searchByDate,\n dateSelected,\n setDateSelected,\n prevDateSelected,\n setPrevDateSelected,\n linkReportFields,\n formattedData,\n fieldsMap,\n}) {\n const { selectedProducts, selectedTests } = selectedData;\n const numOfGraphs = selectedProducts.length * selectedTests.length;\n\n // Returns a formatted version of the dates to be displayed\n const getFormattedDates = () => {\n const dateObj = getSelectedDates();\n\n if (dateObj?.length === 2) {\n return `${moment(dateObj[0]).format(\"MMM DD, YYYY\")} - ${moment(dateObj[1]).format(\"MMM DD, YYYY\")}`;\n }\n\n return \"No dates selected\";\n };\n\n // Renders a graph pill for each combination of test and product\n const renderGraphPills = () => {\n let counter = -1;\n return selectedProducts.map((product) => (\n selectedTests.map((test) => {\n counter++;\n let selected = false;\n if (selectedGraph.test === test && selectedGraph.product?.product_id === product?.product_id) selected = true;\n\n return (\n \n \n \n );\n })\n ));\n };\n // const getSpecStatus = (flag) => {\n // if ([\"1\", \"5\"].includes(flag)) {\n // return \"In Spec\";\n // }\n // if ([\"2\", \"6\"].includes(flag)) {\n // return \"Out of Spec\";\n // }\n // return \"\";\n // };\n\n // format data for csv\n // const getExportData = () => {\n // const { scatterObj } = formattedData;\n // // console.log(scatterObj, selectedTests, selectedProducts);\n // const exportData = [];\n // selectedTests.forEach((testName) => {\n // selectedProducts.forEach((prodName) => {\n // const key = [testName, prodName].join(\"|\");\n // if (key in scatterObj) {\n // scatterObj[key].forEach(({\n // date, y, specsFlag, id,\n // }) => {\n // exportData.push({\n // date,\n // product: prodName,\n // test: testName,\n // id,\n // result: y,\n // status: getSpecStatus(specsFlag),\n // });\n // });\n // }\n // });\n // });\n // return exportData;\n // };\n\n // headers for exported csv\n // const headers = [\n // { label: \"Date\", key: \"date\" },\n // { label: \"Product\", key: \"product\" },\n // { label: \"Test\", key: \"test\" },\n // { label: \"ID\", key: \"id\" },\n // { label: \"Result\", key: \"result\" },\n // { label: \"Status\", key: \"status\" },\n // ];\n\n return (\n
    \n \n {numOfGraphs}\n {\" \"}\n {showBarGraph ? \"Bar graph active\" : \"Line graph active\"}\n \n
    \n \n {renderGraphPills()}\n \n
    \n\n
    \n
    \n \n\n {getFormattedDates()}\n
    \n {/* {formattedData !== undefined\n && (\n
    \n \n \n \n \n \n
    \n )} */}\n\n
    \n Bar Data Visualization\n setShowBarGraph(!showBarGraph)}\n size=\"small\"\n className=\"ProductAnalytics__Switch\"\n />\n
    \n
    \n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport moment from \"moment\";\n\nimport { toast } from \"react-toastify\";\nimport Graph from \"./Components/Graph\";\n\nimport \"swiper/swiper-bundle.min.css\";\nimport \"swiper/swiper.min.css\";\nimport \"../../styles/GraphContainerStyle.css\";\n\nimport { formatData, getStartEndDate } from \"../../Helper\";\nimport { getTestData, getDates } from \"../../../../../actions/productAnalytics\";\nimport GraphHeader from \"./Components/GraphHeader\";\n// import Loading from \"./Components/Loading\";\n\nexport default function GraphContainer({\n selectedData, linkReportFields, setDatePicker, showDatePicker, fieldsMap,\n}) {\n const { selectedProducts, selectedTests } = selectedData;\n\n const [showBarGraph, setShowBarGraph] = useState(false);\n const [selectedGraph, setSelectedGraph] = useState(\"\");\n const [formattedData, setFormattedData] = useState();\n const [selectedGraphHasSpec, setSelectedGraphHasSpec] = useState(true);\n const [dateSelected, setDateSelected] = useState();\n const [prevDateSelected, setPrevDateSelected] = useState();\n const [loading, setLoading] = useState();\n\n // calculating the start date based on number of items returned by the datesList array.\n const getDefaultDateSelected = (datesList) => {\n const lastDate = datesList && datesList.length ? datesList[datesList.length - 1] : undefined;\n const endDate = lastDate ? moment(lastDate) : moment(new Date()); // if endDate is undefined, use today\n let startDate;\n if (!datesList || !lastDate || datesList.length < 2) {\n startDate = moment(endDate).subtract(30, \"days\");\n } else if (datesList && datesList.length > 1 && datesList.length <= 30) {\n startDate = moment(datesList[0]);\n } else if (datesList && datesList.length > 30) {\n startDate = moment(datesList[datesList.length - 30]);\n }\n return endDate && startDate ? `${startDate.format(\"MM/DD/YYYY\")}-${endDate.format(\"MM/DD/YYYY\")}` : undefined;\n };\n\n // get the dates for which the selected product and test combinations have results.\n useEffect(() => {\n async function apiGetEndDate() {\n const payload = {\n products: selectedProducts,\n tests: selectedTests,\n };\n setLoading(true);\n const response = await getDates(payload);\n const dateslist = response.result;\n const newDateSelected = getDefaultDateSelected(dateslist);\n if (newDateSelected) {\n setDateSelected(newDateSelected);\n setPrevDateSelected(newDateSelected);\n }\n setLoading(false);\n }\n apiGetEndDate();\n\n }, [selectedProducts, selectedTests]); //eslint-disable-line\n\n // Returns a date array, if two dates exist -- [dateOne, dateTwo]\n // If one date -- returns single date\n // Else -- undefined\n // Passed down as props to DatePicker component\n const getSelectedDates = () => {\n if (!dateSelected?.trim()) {\n return undefined;\n }\n const dates = dateSelected.split(\"-\");\n return dates.length === 2\n ? [new Date(dates[0].trim()), new Date(dates[1].trim())]\n : new Date(dateSelected.trim());\n };\n\n // Given a test and a product, makes an api call\n // Gets data for that product and test, for the given date range\n const fetchTestData = async (test, product) => {\n const dates = getStartEndDate(dateSelected);\n const payload = {\n product,\n test,\n dateFrom: dates[0],\n dateTo: dates[1],\n };\n const response = await getTestData(payload);\n if (response.success) {\n return response.result;\n }\n return undefined;\n };\n\n // Loops through all the selected products and tests, and for each combinations calls fetchTestData\n // Calls a helper function (formatData()) to format all of the combined test data into the proper format for the graph\n const loopAllTests = async () => {\n if (selectedProducts.length !== 0 && selectedTests.length !== 0) {\n const combinedData = [];\n for (let i = 0; i < selectedProducts.length; i++) {\n for (let j = 0; j < selectedTests.length; j++) {\n const response = await fetchTestData(selectedTests[j], selectedProducts[i]); // eslint-disable-line\n if (response === undefined) {\n toast.error(\"Failed to get test data.\");\n break;\n }\n\n combinedData.push(response);\n }\n }\n\n try {\n const formatted = formatData(combinedData, linkReportFields, getSelectedDates());\n setFormattedData(formatted);\n } catch (e) {\n toast.error(\"Something went wrong formatting the data\");\n // console.log(\"error when formatting the data:\", e);\n }\n }\n };\n\n // Gets fired after selected products or selected tests changed and endDate has been updated\n useEffect(() => {\n async function getData() {\n await loopAllTests();\n\n setSelectedGraph(\"\");\n setDatePicker(false);\n }\n if (!loading) {\n getData();\n }\n }, [loading]); // eslint-disable-line\n\n // Gets fired when the selectedGraph changes\n // Responsible for showing a tooltip when on the graph pill when we do not have a spec\n useEffect(() => {\n if (formattedData !== undefined) {\n const specArr = formattedData.specArr;\n\n let specFound = false;\n\n for (let i = 0; i < specArr.length; i++) {\n const spec = specArr[i];\n if (spec.name === selectedGraph.product?.product_id && Object.keys(spec.spec).length > 0 && spec.spec.test === selectedGraph.test) {\n specFound = true;\n if (spec.spec.max === \"None\" || spec.spec.min === \"None\" || (spec.spec.max === \"\" && spec.spec.min === \"\")) {\n setSelectedGraphHasSpec(false);\n } else {\n setSelectedGraphHasSpec(true);\n }\n } else if (spec.name === selectedGraph.product?.product_id && Object.keys(spec.spec).length === 0) {\n specFound = true;\n setSelectedGraphHasSpec(false);\n }\n }\n\n if (!specFound) {\n setSelectedGraphHasSpec(true);\n }\n }\n }, [selectedGraph.test, selectedGraph.product]); //eslint-disable-line\n\n // Called when a graph pill or graph line is selected -- passed down as props\n // Updates state so we know what the currently selected graph is\n const updateSelectedGraph = (selectedGraphObj) => {\n if (selectedGraphObj.test === selectedGraph.test && selectedGraphObj.product?.product_id === selectedGraph.product?.product_id) {\n setSelectedGraph(\"\");\n } else {\n setSelectedGraph(selectedGraphObj);\n }\n };\n\n // Apply button clicked on date picker -- passed down as props\n // Update the prev state, and make an api call for new data\n const searchByDate = async () => {\n setPrevDateSelected(dateSelected);\n await loopAllTests();\n setSelectedGraph(\"\");\n };\n\n if (selectedProducts.length === 0 && selectedTests.length === 0) {\n return Select a product or a test to view its analytics;\n }\n\n if (selectedProducts.length === 0) {\n return Select a product to view its analytics;\n }\n\n if (selectedTests.length === 0) {\n return Select a test to view its analytics;\n }\n\n return (\n
    \n\n \n\n {formattedData === undefined ? (\n
    \n No data found for the selected date range\n
    \n ) : (\n
    \n {/* {!loading && !loadingTestPairs && ( )} */}\n \n
    \n )}\n
    \n );\n}\n","import React from \"react\";\nimport NoResults from \"../../../../../Common/NoResults\";\nimport emptyStateIcon from \"../../../../../../assets/images/EmptyState_V2.png\";\nimport SelectionCard from \"../../CommonComponents/SelectionCard\";\n\nexport default function TestList({\n testData, updateSelectedOptions, disabled, handleTestClicked, selectedTests, searchTest,\n}) {\n const { testUnit, testNames } = testData;\n const searchresultsavailable = testNames.length !== 0;\n\n return (\n
    \n {testUnit && {testUnit}}\n
    \n { searchresultsavailable ? (testNames.map((item) => {\n let active = false;\n if (selectedTests.includes(item)) active = true;\n if (active) return null; // when the test is already selected, don't display the test in the test list again\n return (\n \n );\n })) : }\n
    \n
    \n );\n}\n","import React, { useRef, useState } from \"react\";\nimport { toast } from \"react-toastify\";\nimport OutsideClick from \"../../../Report/OutsideClick\";\n\nimport { testSearch } from \"../../../../../actions/productAnalytics\";\n\nimport magnifyingGlassBlue from \"../../../../../assets/images/analytics/magnifyingGlass_midnight.png\";\nimport magnifyingGlassWhite from \"../../../../../assets/images/white-magnifying-glass.png\";\n\nimport \"./Search.css\";\n\nexport default function SearchTests(props) {\n const {\n updateTestList, setLoading, selectedProducts, updateSearch,\n } = props;\n\n const [search, setSearch] = useState(\"\");\n const [searchBarActive, setSearchBarActive] = useState(false);\n const searchAbortController = useRef(null);\n\n // API call to get a list of tests based on search and products\n async function getTests() {\n setLoading(true);\n const payload = {\n search,\n products: selectedProducts,\n };\n\n const newController = new AbortController();\n /** If prev search api still in progress, abort it */\n if (searchAbortController.current) {\n searchAbortController.current.abort();\n }\n searchAbortController.current = newController;\n\n const response = await testSearch(payload, newController.signal);\n if (newController.signal.aborted) {\n return;\n }\n if (response.success) {\n updateTestList(response.result);\n } else {\n toast.error(\"Failed to search tests\");\n updateTestList([]);\n }\n searchAbortController.current = null;\n setLoading(false);\n }\n\n // When user hits enter or removes the product\n const searchForTests = (e, type) => {\n if (e.key === \"Enter\" || (e.key === \"Backspace\" && e.target.value === \"\") || type === \"clicked\") {\n getTests();\n updateSearch(search);\n }\n };\n\n const toggleSelectSearchBar = (bool) => {\n setSearchBarActive(bool);\n };\n\n let backgroundColor = \"\";\n let placeholder = \"\";\n let icon = magnifyingGlassWhite;\n if (search && search.length > 0) {\n backgroundColor = \"#26A1D2\";\n } else if (searchBarActive) {\n backgroundColor = \"#DEF2FB\";\n } else {\n backgroundColor = \"#E1E9F1\";\n placeholder = \"Search a test\";\n icon = magnifyingGlassBlue;\n }\n\n return (\n toggleSelectSearchBar(false)}\n >\n
    toggleSelectSearchBar(true)}>\n setSearch(e.target.value)} value={search} onKeyUp={(e) => searchForTests(e)} />\n searchForTests(e, \"clicked\")}\n style={{\n backgroundColor,\n }}\n >\n \"search\"\n
    \n \n \n );\n}\n","import React, { useState } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { LayoutGroup } from \"framer-motion/dist/framer-motion\";\nimport TitleBlock from \"../CommonComponents/TitleBlock\";\nimport TestList from \"./Components/TestList\";\nimport SearchTests from \"../CommonComponents/SearchTests\";\nimport SelectionTitleSkeleton from \"../CommonComponents/SelectionTitleSkeleton\";\nimport NoResults from \"../../../../Common/NoResults\";\nimport emptyStateIcon from \"../../../../../assets/images/EmptyState_V2.png\";\nimport \"../../styles/TestContainerStyle.css\";\nimport SelectionCard from \"../CommonComponents/SelectionCard\";\n\nexport default function TestContainer({\n updateSelectedOptions,\n selectedData,\n updateTestList,\n updateSearch,\n parentLoading,\n disabledColumns,\n testList,\n searchTest,\n}) {\n const { selectedTests, selectedProducts } = selectedData;\n const [loading, setLoading] = useState(false);\n\n // To display the selected tests on the top of the list\n const renderSelectedTiles = () => {\n let disabled = false;\n if (disabledColumns.includes(\"test\")) disabled = true;\n if (selectedTests && selectedTests.length !== 0) {\n return selectedTests.map((item) => (\n \n ));\n }\n\n return null;\n };\n\n // Renders a test list component for each unique unit\n const renderTestList = () => {\n let disabled = false;\n if (disabledColumns.includes(\"test\")) disabled = true;\n if (loading || parentLoading) {\n return ();\n }\n if (testList.units !== undefined && testList.tests !== undefined && testList.units.length !== 0) {\n const units = testList.units;\n return units.map((item, index) => {\n const testData = {\n testUnit: item,\n testNames: testList.tests[item],\n };\n return (!loading && !parentLoading && (\n \n ));\n });\n }\n return ;\n };\n\n // renders the test list and selected tests\n const renderTests = () => { // eslint-disable-line\n return (\n \n
    \n \n {renderSelectedTiles()}\n {renderTestList()}\n \n
    \n
    \n );\n };\n\n // renders title and search box\n return (\n
    \n \n \n {renderTests()}\n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { toast } from \"react-toastify\";\n\nimport ProductContainer from \"./Containers/ProductContainer/ProductContainer\";\nimport GraphContainer from \"./Containers/GraphContainer/GraphContainer\";\nimport TestContainer from \"./Containers/TestContainer/TestContainer\";\n\nimport { getProductFields } from \"../../../actions/reports\";\nimport { productSearch, testSearch } from \"../../../actions/productAnalytics\";\n\nimport \"./styles/AnalyticsStyle.css\";\n\nexport default function Analytics() {\n const [linkReportFields, setLinkReportFields] = useState([]);\n const [fieldsMap, setFieldsMap] = useState({});\n const [selectedProducts, setSelectedProducts] = useState([]);\n const [selectedTests, setSelectedTests] = useState([]);\n const [disabledColumns, setDisabledColumns] = useState([]);\n const [productList, setProductList] = useState([]);\n const [testList, setTestList] = useState([]);\n const [search, setSearch] = useState(\"\");\n const [searchByField, setSearchByField] = useState();\n const [searchTest, setSearchTest] = useState(\"\");\n const [loadingFields, setLoadingFields] = useState(false);\n const [productLoading, setProductLoading] = useState(false);\n const [testLoading, setTestLoading] = useState(false);\n const [showDatePicker, setDatePicker] = useState(false);\n // Disables columns as the max products and tests get selected\n const detectDisabledColumns = () => {\n let disabledColumnsCloned = disabledColumns.slice();\n\n // Max selected products is 3\n if (selectedProducts.length === 3 && !disabledColumnsCloned.includes(\"product\")) {\n disabledColumnsCloned.push(\"product\");\n } else if (selectedProducts.length < 3) {\n disabledColumnsCloned = disabledColumnsCloned.filter((item) => item !== \"product\");\n }\n\n // Max selected tests is 3\n if (selectedTests.length === 3 && !disabledColumnsCloned.includes(\"test\")) {\n disabledColumnsCloned.push(\"test\");\n } else if (selectedTests.length < 3) {\n disabledColumnsCloned = disabledColumnsCloned.filter((item) => item !== \"test\");\n }\n\n // Max num of graphs is 4\n if (selectedProducts.length * selectedTests.length >= 3) {\n disabledColumnsCloned.push(\"test\");\n disabledColumnsCloned.push(\"product\");\n }\n\n setDisabledColumns(disabledColumnsCloned);\n };\n\n // componentDidMount\n useEffect(() => {\n async function getLinkReportFields() {\n setLoadingFields(true);\n const response = await getProductFields();\n if (response.success) {\n if (!response.link_report || !response.link_report.length) {\n toast.error(\"Missing link report field\");\n setLoadingFields(false);\n return;\n }\n setFieldsMap(response.fieldsMap);\n setSearchByField(response.link_report[0]); // set default search by field to first linked field\n setLinkReportFields(response.link_report);\n } else {\n toast.error(\"Failed to fetch fields\");\n }\n setLoadingFields(false);\n }\n\n getLinkReportFields();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n // Gets fired when selectedProducts changes\n useEffect(() => {\n // gets tests based on search and selected products\n async function getAllTests(searchVal) {\n setTestLoading(true); // used refs to prevent component re-rendering which affects the selection animation\n const payload = {\n search: searchVal || \"\",\n products: selectedProducts,\n };\n const response = await testSearch(payload);\n\n if (response.success) {\n setTestList(response.result);\n } else {\n toast.error(\"Failed to get Tests\");\n }\n setTestLoading(false);\n }\n\n detectDisabledColumns();\n\n if (linkReportFields.length) {\n // API call to update product list\n getAllTests(searchTest);\n }\n\n // API call to update test list when we have a product selected\n // if (selectedProducts.length !== 0)\n }, [selectedProducts, linkReportFields]); //eslint-disable-line\n\n // Gets fired when selectedTests changes\n useEffect(() => {\n // API call to get a list of products corresponding to the test selected\n async function getProductsAndTests() {\n setProductLoading(true);\n const payload = {\n search: \"\",\n search_by: searchByField || linkReportFields[0],\n tests: selectedTests,\n };\n\n const response = await productSearch(payload);\n\n if (response.success) {\n setProductList(response.result);\n } else {\n toast.error(\"Failed to get products\");\n }\n setProductLoading(false);\n }\n\n // API call to get products based on search and selected tests\n async function getAllProducts(searchVal) {\n setProductLoading(true);\n const payload = {\n search: searchVal || \"\",\n search_by: searchByField || linkReportFields[0],\n tests: selectedTests,\n };\n\n const response = await productSearch(payload);\n\n if (response.success) {\n setProductList(response.result);\n } else {\n toast.error(\"Failed to get products\");\n }\n setProductLoading(false);\n }\n\n detectDisabledColumns();\n\n if (linkReportFields.length) {\n // API call to update test list\n if (selectedTests.length === 0 && selectedProducts.length !== 0) {\n getAllProducts(search);\n } else if (search !== \"\" && selectedProducts.length !== 0 && selectedTests.length !== 0) {\n getAllProducts(search);\n } else if (selectedProducts.length !== 0) {\n getProductsAndTests();\n } else {\n getAllProducts(search);\n }\n }\n\n }, [selectedTests, linkReportFields]); //eslint-disable-line\n\n // Function that updates the selected tests and products -- passed down to all the children\n const updateSelectedOptions = (newValue, type) => {\n if (type === \"product\") {\n let clonedArr = selectedProducts.slice();\n if (clonedArr.some((item) => item.product_id === newValue.product_id)) {\n clonedArr = clonedArr.filter((item) => item.product_id !== newValue.product_id);\n } else {\n clonedArr.push(newValue);\n }\n setSelectedProducts(clonedArr);\n } else if (type === \"test\") {\n let clonedArr = selectedTests.slice();\n if (clonedArr.includes(newValue)) {\n clonedArr = clonedArr.filter((item) => item !== newValue);\n } else {\n clonedArr.push(newValue);\n }\n setSelectedTests(clonedArr);\n }\n\n // if (type === \"product\" && clonedArr.length === 0) {\n // setSelectedTests([]);\n // setDisabledColumns([]);\n // }\n };\n\n const selectedData = {\n selectedProducts,\n selectedTests,\n };\n\n if (linkReportFields === \"\") return null;\n return (\n \n
    \n \n
    \n\n \n\n
    \n \n
    \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAddWhite = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 15,\n viewBox: \"0 0 14 15\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13 8.99805H8V13.998C8 14.2633 7.89464 14.5176 7.70711 14.7052C7.51957 14.8927 7.26522 14.998 7 14.998C6.73478 14.998 6.48043 14.8927 6.29289 14.7052C6.10536 14.5176 6 14.2633 6 13.998V8.99805H1C0.734784 8.99805 0.48043 8.89269 0.292893 8.70515C0.105357 8.51762 0 8.26326 0 7.99805C0 7.73283 0.105357 7.47848 0.292893 7.29094C0.48043 7.1034 0.734784 6.99805 1 6.99805H6V1.99805C6 1.73283 6.10536 1.47848 6.29289 1.29094C6.48043 1.1034 6.73478 0.998047 7 0.998047C7.26522 0.998047 7.51957 1.1034 7.70711 1.29094C7.89464 1.47848 8 1.73283 8 1.99805V6.99805H13C13.2652 6.99805 13.5196 7.1034 13.7071 7.29094C13.8946 7.47848 14 7.73283 14 7.99805C14 8.26326 13.8946 8.51762 13.7071 8.70515C13.5196 8.89269 13.2652 8.99805 13 8.99805Z\",\n fill: \"white\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAddWhite, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/AddWhite.ab9e2c50.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport \"../styles/common/createReport.css\";\nimport { ReactComponent as AddIcon } from \"../../../../../assets/images/product/template/AddWhite.svg\";\nimport \"../styles/common/CreateReportButton.css\";\n\nexport default function CreateReportButton(props) {\n const { handleAddCoa, buttonText, showAddIcon } = props;\n\n return (\n handleAddCoa()}\n >\n
    \n {showAddIcon && ()}\n {buttonText}\n
    \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgLeftArrowRounded = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n height: 16,\n width: 14,\n viewBox: \"0 0 448 512\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgLeftArrowRounded, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/LeftArrowRounded.79c968f9.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\nimport \"../styles/common/search.css\";\n\nexport default function TemplateSearch(props) {\n const [searchValue, setSearchValue] = useState(\"\");\n\n const { handleSearch } = props;\n\n const onChange = (e) => {\n setSearchValue(e.target.value);\n if (e.target.value === \"\") {\n handleSearch(\"\");\n }\n };\n\n const onKeyPress = (e) => {\n if (e.key === \"Enter\") {\n e.preventDefault();\n handleSearch(searchValue);\n }\n };\n\n return (\n
    \n \n
    handleSearch(searchValue)} />\n
    \n );\n}\n","import React from \"react\";\nimport CreateReportButton from \"./CreateReportButton\";\nimport TemplateSearch from \"./TemplateSearch\";\nimport { ReactComponent as BackIcon } from \"../../../../../assets/images/common/LeftArrowRounded.svg\";\nimport \"../styles/common/header.css\";\n\nexport default function Header(props) {\n const {\n title,\n handleAddCoa,\n isCreatingCoa,\n showCreateReportButton,\n handleNavigation,\n apiSearchCoas,\n showAddIcon,\n coaView,\n } = props;\n\n return (\n
    \n
    \n {isCreatingCoa && ()}\n
    {title}
    \n
    \n {showCreateReportButton && isCreatingCoa\n && (\n
    \n
    \n \n
    \n
    \n )}\n {showCreateReportButton && !isCreatingCoa\n && (\n
    \n \n \n
    \n )}\n\n
    \n );\n}\n","const TEMPLATE_TAGS_COLOR = {\n red: {\n backgroundColor: \"#E63559\",\n borderColor: \"#F28DA1\",\n boxShadow: \"#e9e8e8 1px 2px 3px 3px\",\n },\n blue: {\n backgroundColor: \"#3874FF\",\n borderColor: \"#26ABE1\",\n boxShadow: \"#e9e8e8 1px 2px 3px 3px\",\n },\n yellow: {\n backgroundColor: \"#E1B226\",\n borderColor: \"rgb(244 222 155)\",\n boxShadow: \"#e9e8e8 1px 2px 3px 3px\",\n },\n orange: {\n backgroundColor: \"#F98006\",\n borderColor: \"rgb(251 196 140)\",\n boxShadow: \"#e9e8e8 1px 2px 3px 3px\",\n },\n green: {\n backgroundColor: \"#1EC04A\",\n borderColor: \"#52E378\",\n boxShadow: \"#e9e8e8 1px 2px 3px 3px\",\n },\n};\n\nexport default TEMPLATE_TAGS_COLOR;\n\n/**\n * Get linked field vals as an array and as a string delimited by a dot\n * @param {Object} valuesObj linked field: value obj i.e. {item: \"test\", best_by: \"\"}\n * @param {Array} linkReportFields linked field json fields i.e. [item, best_by]\n * @returns {Object} linked field vals as an array and as a string (delimited by a dot)\n */\nconst getProductIdentifier = (valuesObj, linkReportFields) => {\n const identifierArr = [];\n linkReportFields.forEach((json_field) => {\n const value = valuesObj[json_field];\n if (value) {\n identifierArr.push(value);\n }\n });\n return { identifierArr, identifierStr: identifierArr.join(\" \\u2022 \") };\n};\n\n/**\n * Get list of distinct identfiers for samples in sampleList\n * @param {Array} sampleList\n * @param {Array} linkReportKeys linked field json fields i.e. [item, best_by]\n */\nexport const getDistinctIdentifiersForSampleList = (sampleList, linkReportKeys) => {\n const identifiersList = [];\n const productsSeenSoFar = new Set();\n sampleList.forEach(\n (sample) => {\n const { identifierArr, identifierStr } = getProductIdentifier(sample, linkReportKeys);\n if (!productsSeenSoFar.has(identifierStr)) {\n productsSeenSoFar.add(identifierStr);\n identifiersList.push(identifierArr);\n }\n },\n );\n return identifiersList;\n};\n\nexport function createAndAppendIdentifierList(response, linkReportKeys) {\n const result = response.result;\n if (linkReportKeys && linkReportKeys.length) {\n result.forEach(\n (report) => {\n report.all_identifiers = getDistinctIdentifiersForSampleList(report.sample_list, linkReportKeys);\n },\n );\n }\n return result;\n}\n","import React from \"react\";\n\nimport moment from \"moment\";\nimport Highlighter from \"react-highlight-words\";\nimport { toast } from \"react-toastify\";\n\nimport TEMPLATE_TAGS_COLOR from \"../../helper\";\n\nimport { getFileFromS3WithPresigned, downloadFileFromS3WithPresigned } from \"../../../../../utils/helpers\";\n\nimport Calendar from \"../../../../../assets/images/product/template/Calendar.png\";\nimport Download from \"../../../../../assets/images/product/template/Download.png\";\nimport Product from \"../../../../../assets/images/product/template/Product.png\";\n\nexport default function COAListItem(props) {\n const {\n elem, toggleShowDeleteModal, setPdfObjForPreview, searchedValue,\n } = props;\n const handleDelete = () => {\n toggleShowDeleteModal(elem);\n };\n\n const handleDownload = async () => {\n const fileName = elem.pdf_path.split(\"/\").pop();\n const downloadSuccess = await downloadFileFromS3WithPresigned([elem.pdf_path], \"private\", [fileName]);\n if (!downloadSuccess) {\n toast.error(\"Failed to download\");\n }\n };\n\n const handlePreview = async () => {\n const fileBlobObj = await getFileFromS3WithPresigned([elem.pdf_path], \"private\");\n const blob = fileBlobObj[elem.pdf_path];\n if (!blob) {\n toast.error(\"Failed to preview\");\n }\n const url = window.URL.createObjectURL(blob);\n if (url) {\n const previewObj = { url, title: elem.pdf_path.slice(0, -4) };\n setPdfObjForPreview(previewObj);\n } else {\n toast.error(\"Failed to preview\");\n }\n };\n return (\n
    \n
    \n \n
    \n
    \n
    \n
    \n \"Product\"\n \n {elem.all_identifiers.map((identifierArr, sampleIdx) => (\n \n \n {identifierArr.map((val, valIdx) => (\n \n \n {val}\n {valIdx === identifierArr.length - 1 && sampleIdx < elem.all_identifiers.length - 1 && (\",\")}\n \n {valIdx < identifierArr.length - 1 && ()}\n \n ))}\n \n \n ))}\n \n
    \n
    \n \"Calendar\"\n \n {moment(elem.added_on).format(\"MM/DD/YYYY\")}\n \n
    \n \n \n {elem.template_name || \"Deleted Template\"}\n \n
    \n
    \n
    \n
    \n
    handleDelete()} />\n
    \n
    \n \"Download\"\n
    \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./COADeleteModal.css\";\n\nexport default function COADeleteModal(props) {\n const { toggleShowDeleteModal, apiDeleteCoa } = props;\n return (\n \n\n
    \n
    \n Delete report \n Are you sure you want to delete this report? \n
    \n
    \n
    Cancel
    \n
    Delete
    \n
    \n\n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport PdfPreview from \"../../../../Common/PdfPreview\";\nimport closeIconWhite from \"../../../../../assets/images/product/template/Close.png\";\nimport \"./TemplatePreview.css\";\n\nexport default function TemplatePreview(props) {\n const {\n closePreviewTemplate, pdfObj,\n } = props;\n const [modalIsAnimating, setModalIsAnimating] = useState(true);\n return (\n setModalIsAnimating(false)}\n >\n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n );\n}\n","import axios from \"axios\";\nimport { API_URL } from \"../utils/Constant\";\n\nexport const getTemplates = async (payload, signal = null) => {\n try {\n const params = {\n template_id: payload?.template_id || \"\",\n };\n const response = await axios.get(`${API_URL}/producttemplates/`, {\n params,\n signal,\n });\n return { success: true, ...response.data };\n } catch (e) {\n return { success: false, data: \"Something went wrong.\", cancel: e.code === \"ERR_CANCELED\" };\n }\n};\n\nexport const addTemplate = async (payload) => {\n try {\n const params = {\n name: payload.name,\n tags: payload.tags,\n logo_image_url: payload.logo_image_url,\n company_name: payload.company_name,\n company_address: payload.company_address,\n phone_number: payload.phone_number,\n fax_number: payload.fax_number,\n sections: payload.sections_list,\n statement_inputs: payload.statement_inputs,\n signature_image_url: payload.signature_image_url,\n signed_by: payload.signed_by,\n designation: payload.designation,\n preview_pdf_url: payload.preview_pdf_url,\n alignment: payload.alignment,\n // company_details_shared: false,\n // test_report_shared: false,\n // statement_card_shared: false,\n // test_report: [],\n };\n const response = await axios.post(`${API_URL}/producttemplates/`, params);\n return { success: true, ...response.data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const editTemplate = async (template_id, payload) => {\n try {\n const params = {\n action: \"edit\",\n template_id,\n name: payload.name,\n tags: payload.tags,\n logo_image_url: payload.logo_image_url,\n company_name: payload.company_name,\n company_address: payload.company_address,\n phone_number: payload.phone_number,\n fax_number: payload.fax_number,\n sections: payload.sections_list,\n statement_inputs: payload.statement_inputs,\n signature_image_url: payload.signature_image_url,\n signed_by: payload.signed_by,\n designation: payload.designation,\n preview_pdf_url: payload.preview_pdf_url,\n alignment: payload.alignment,\n // company_details_shared: false,\n // test_report_shared: false,\n // statement_card_shared: false,\n // test_report: [],\n };\n const response = await axios.patch(`${API_URL}/producttemplates/`, params);\n return { success: true, ...response.data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const deleteTemplate = async (template_id) => {\n try {\n const params = {\n action: \"delete\",\n template_id,\n };\n const response = await axios.patch(`${API_URL}/producttemplates/`, params);\n return { success: true, ...response.data };\n } catch (e) {\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const getDataField = async (payload) => {\n try {\n const response = await axios.get(`${API_URL}/datafields/`, {\n params: {\n category: payload.category,\n },\n });\n const data = await response.data;\n if (data.message === \"Success\") {\n return { success: true, result: data.result };\n }\n const message = \"Something went wrong.\";\n return { success: false, message };\n } catch (e) {\n // console.log(\"error from getDataField\", e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\nexport const manageDataFields = async (payload) => {\n try {\n const response = await axios({\n method: payload.method,\n url: `${API_URL}/datafields/`,\n data: {\n\n action: payload.action,\n field_name: payload.field_name,\n old_field_name: payload?.field_name_pre || \"\",\n field_details: payload?.field_details || \"\",\n category: payload?.category || \"\",\n // field_in_use: payload?.field_in_use || \"\",\n },\n });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n // console.log(\"error from addDataField\", e);\n return { success: false, message: e.response?.data?.message || \"Something went wrong.\" };\n }\n};\n\nexport const sortAndSearchDataFields = async (payload) => {\n try {\n const response = await axios.get(`${API_URL}/datafields/`, {\n params: {\n sort_by: payload.sort_by,\n search: payload.search,\n category: payload.category,\n },\n });\n const data = await response.data;\n if (data && data.result) {\n return { success: true, result: data.result };\n } return null;\n } catch (e) {\n // console.log(\"error from sortAndSearchDataFields\", e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\nexport const getCoas = async (payload) => {\n try {\n const paramsObj = {\n search: payload.search || \"\",\n };\n\n const response = await axios.get(`${API_URL}/productcoas/`, {\n params: paramsObj,\n });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n // console.log(\"error from getCoas\", e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\nexport const manageCoa = async (payload) => {\n try {\n const response = await axios({\n method: payload.method,\n url: `${API_URL}/productcoas/`,\n data: {\n name: payload?.name || \"\",\n sample_list: payload?.sample_list,\n template_id: payload.template_id || \"\",\n coa_id: payload?.coa_id || \"\",\n pdf_path: payload?.pdf_path || \"\",\n },\n });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n // console.log(\"error from manageCoa\", e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n\nexport const getProducts = async (payload) => {\n try {\n const response = await axios.get(`${API_URL}/getproductname/`, {\n params: {\n search: payload?.search || \"\",\n },\n });\n const data = await response.data;\n return { success: true, ...data };\n } catch (e) {\n // console.log(\"error from getProducts\", e);\n const message = \"Something went wrong.\";\n return { success: false, message };\n }\n};\n","export default __webpack_public_path__ + \"static/media/pumpkin.21c70beb.png\";","import React from \"react\";\nimport pumpkin from \"../../../../../assets/images/product/template/pumpkin.png\";\nimport \"./NoResultFound.css\";\n\nexport default function NoResultFound() {\n return (\n
    \n \n
    \n No Result Found\n
    \n
    \n );\n}\n","import React, { useState } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\nimport Header from \"../Common/Header\";\nimport COAListItem from \"./COAListItem\";\nimport COADeleteModal from \"./COADeleteModal\";\nimport TemplatePreview from \"../Templates/TemplatePreview\";\nimport {\n manageCoa,\n getCoas,\n} from \"../../../../../actions/productTemplate\";\nimport { createAndAppendIdentifierList } from \"../../helper\";\nimport NoResultFound from \"../Common/NoResultFound\";\nimport \"./COAList.css\";\n\nexport default function COAList(props) {\n const {\n handleAddCoa,\n coaList,\n setCoaList,\n linkReportKeys,\n } = props;\n const [isLoading, setIsLoading] = useState(false);\n const [pdfObjForPreview, setPdfObjForPreivew] = useState(null);\n const [showDeleteModal, setShowDeleteModal] = useState(false);\n const [elemToBeDeleted, setElemToBeDeleted] = useState(null);\n const [searchedValue, setSearchedValue] = useState(\"\");\n const fetchCoas = async () => {\n const params = { category: \"fetchList\" };\n const response = await getCoas(params);\n\n setIsLoading(false);\n if (response && response.message === \"Success\") {\n const result = createAndAppendIdentifierList(response, linkReportKeys);\n setCoaList(result);\n } else {\n toast.error(\"Failed to get COA list.\");\n setCoaList([]);\n }\n };\n\n const apiDeleteCoa = async () => {\n if (!elemToBeDeleted) {\n toast.error(\"Invalid COA.\");\n return;\n }\n const params = {\n coa_id: elemToBeDeleted.coa_id, action: \"Delete\", method: \"PATCH\",\n };\n const response = await manageCoa(params);\n if (response && response.message === \"Success\") {\n fetchCoas();\n setElemToBeDeleted(null);\n setShowDeleteModal(false);\n toast.success(\"Successfully deleted COA.\");\n } else {\n toast.error(\"Failed to delete COA.\");\n }\n };\n\n /**\n * Make api calls to get the coa list and the link_report key.\n * @param {*} searchValue\n */\n const apiSearchCoas = async (searchValue) => {\n const params = { search: searchValue, category: \"Search\" };\n const response = await getCoas(params);\n\n if (response && response.success) {\n const result = createAndAppendIdentifierList(response, linkReportKeys);\n setSearchedValue(searchValue);\n setCoaList(result);\n } else {\n setSearchedValue(\"\");\n toast.error(\"Failed to search COAs.\");\n }\n };\n\n const toggleShowDeleteModal = (elem) => {\n if (elem) {\n setElemToBeDeleted(elem);\n }\n setShowDeleteModal(!showDeleteModal);\n };\n\n const toggleShowCoaPreview = () => {\n if (pdfObjForPreview.url) {\n URL.revokeObjectURL(pdfObjForPreview.url);\n }\n setPdfObjForPreivew(null);\n };\n\n return (\n
    \n \n {!isLoading && (\n coaList.length === 0\n ?
    \n : (\n \n
    \n {coaList.map((elem, index) => (\n \n ))}\n
    \n \n )\n )}\n {showDeleteModal && }\n {pdfObjForPreview && (\n \n )}\n
    \n );\n}\n","import React from \"react\";\nimport { Skeleton } from \"antd\";\nimport \"./COALoadingPage.css\";\n\nexport default function COALoadingPage({ page }) {\n return (\n
    \n
    \n
    \n
    \n \n {page !== \"COAReport\" && ()}\n
    \n
    \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\nimport \"./LoadingOverlay.css\";\n\nexport default function LoadingOverlay({ greyout }) {\n return (\n
    \n );\n}\n","import React, { useState } from \"react\";\nimport PlusWhite from \"../../../../../assets/images/product/template/PlusWhite.png\";\nimport PlusBlue from \"../../../../../assets/images/product/template/PlusBlue.png\";\nimport \"../styles/common/createTemplate.css\";\n\nexport default function CreateTemplate(props) {\n const [icon, setIcon] = useState(PlusBlue);\n const { handleAddTemplateClick } = props;\n return (\n {\n setIcon(PlusWhite);\n }}\n onMouseLeave={() => {\n setIcon(PlusBlue);\n }}\n onClick={handleAddTemplateClick}\n >\n \n
    New Template
    \n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgEdit = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 12,\n height: 12,\n viewBox: \"0 0 12 12\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.6 2.57206L9.428 5.40072L2.828 12.0001H0V9.17139L6.6 2.57206ZM7.54267 1.62939L8.95667 0.214722C9.08169 0.0897416 9.25122 0.0195312 9.428 0.0195312C9.60478 0.0195312 9.77432 0.0897416 9.89933 0.214722L11.7853 2.10072C11.9103 2.22574 11.9805 2.39528 11.9805 2.57206C11.9805 2.74883 11.9103 2.91837 11.7853 3.04339L10.3707 4.45739L7.54267 1.62939Z\",\n fill: \"#AFBDCA\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgEdit, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/edit.699ffbe3.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"./TemplateDeleteModal.css\";\n\nexport default function TemplateDeleteModal({ toggleShowDeleteModal, handleDeleteTemplate, open }) {\n return (\n \n
    \n
    \n Delete report \n Are you sure you want to delete this report? \n
    \n
    \n
    Cancel
    \n
    { toggleShowDeleteModal(); handleDeleteTemplate(); }}> Delete
    \n
    \n\n
    \n \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgOptions = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 4,\n height: 14,\n viewBox: \"0 0 4 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2 0.25C1.38125 0.25 0.875 0.75625 0.875 1.375C0.875 1.99375 1.38125 2.5 2 2.5C2.61875 2.5 3.125 1.99375 3.125 1.375C3.125 0.75625 2.61875 0.25 2 0.25ZM2 11.5C1.38125 11.5 0.875 12.0063 0.875 12.625C0.875 13.2437 1.38125 13.75 2 13.75C2.61875 13.75 3.125 13.2437 3.125 12.625C3.125 12.0063 2.61875 11.5 2 11.5ZM2 5.875C1.38125 5.875 0.875 6.38125 0.875 7C0.875 7.61875 1.38125 8.125 2 8.125C2.61875 8.125 3.125 7.61875 3.125 7C3.125 6.38125 2.61875 5.875 2 5.875Z\",\n fill: \"#C4D2DF\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgOptions, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/options.7f34212b.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\n\nimport { Dropdown } from \"antd\";\nimport { toast } from \"react-toastify\";\n\nimport TEMPLATE_TAGS_COLOR from \"../../helper\";\nimport TemplateDeleteModal from \"./TemplateDeleteModal\";\nimport TemplatePreview from \"./TemplatePreview\";\n\nimport { getFileFromS3WithPresigned } from \"../../../../../utils/helpers\";\n\nimport { ReactComponent as DeleteIcon } from \"../../../../../assets/images/product/template/delete.svg\";\nimport { ReactComponent as EditIcon } from \"../../../../../assets/images/product/template/edit.svg\";\nimport { ReactComponent as OptionIcon } from \"../../../../../assets/images/product/template/options.svg\";\nimport PreviewIcon from \"../../../../../assets/images/product/template/PlayWhite.png\";\n\nimport \"./TemplateCard.css\";\n\nexport default function TemplateCard({\n index,\n item,\n isCreatingCoa,\n isSelected,\n // reportIsSelected,\n saveTemplateIdForAddingCoa,\n handleEditTemplate,\n handleDeleteTemplate,\n}) {\n const [templatePreview, setTemplatePreview] = useState(null);\n const [showDeleteModal, setShowDeleteModal] = useState(false);\n // const templateDisabled = isCreatingCoa && !reportIsSelected;\n // const backgroundColor = templateDisabled ? \"#AFBDCA\" : TEMPLATE_TAGS_COLOR[item.tags[0]].backgroundColor;\n const backgroundColor = TEMPLATE_TAGS_COLOR[item.tags[0]].backgroundColor;\n const borderColor = isSelected ? TEMPLATE_TAGS_COLOR[item.tags[0]].borderColor : backgroundColor;\n const boxShadow = isSelected ? TEMPLATE_TAGS_COLOR[item.tags[0]].boxShadow : \"\";\n\n const handleSelectTemplate = () => {\n if (isCreatingCoa) {\n saveTemplateIdForAddingCoa(index);\n }\n };\n\n const toggleShowDeleteModal = () => {\n setShowDeleteModal(!showDeleteModal);\n };\n\n const handlePreviewTemplate = async (filePath) => {\n if (!filePath) {\n toast.error(\"Preview link not available\");\n return;\n }\n const fileBlobObj = await getFileFromS3WithPresigned([filePath], \"private\");\n const blob = fileBlobObj[filePath];\n const url = window.URL.createObjectURL(blob);\n if (url) {\n const previewObj = { url, title: filePath.slice(0, -4) };\n setTemplatePreview(previewObj);\n } else {\n toast.error(\"Failed to preview\");\n }\n };\n\n const closePreviewTemplate = () => {\n if (templatePreview.url) {\n URL.revokeObjectURL(templatePreview.url);\n }\n setTemplatePreview(null);\n };\n\n const handleClickPreview = (e) => {\n const isDropdownTrigger = e.target.id === \"TemplateCardDropdownTrigger\" || e.target.parentNode.id === \"TemplateCardDropdownTrigger\";\n if (!isDropdownTrigger) { // open preview only if click was not on the dropdown trigger\n handlePreviewTemplate(item.preview_pdf_url);\n }\n };\n\n const handleOptionClick = ({ key, domEvent }) => {\n domEvent.stopPropagation();\n switch (key) {\n case \"edit\":\n handleEditTemplate(item.template_id);\n break;\n case \"delete\":\n toggleShowDeleteModal();\n break;\n default:\n break;\n }\n };\n\n const items = [\n {\n key: \"edit\",\n label: (\n
    \n \n Edit\n
    \n ),\n },\n {\n key: \"delete\",\n label: (\n
    \n \n Delete\n
    \n ),\n },\n ];\n\n return (\n <>\n handleClickPreview(e)}\n >\n {item.name}\n {isCreatingCoa && (\n handleClickPreview(e)}\n />\n )}\n {!isCreatingCoa && (\n \n \n \n )}\n
    \n {templatePreview\n && (\n \n )}\n handleDeleteTemplate(item.template_id)} />\n \n );\n}\n","import React from \"react\";\nimport { Button } from \"antd\";\nimport Scrollbar from \"react-scrollbars-custom\";\n// import Header from \"./Common/Header\";\n// import TemplateHeader from \"./TemplateHeader\";\nimport CreateTemplate from \"./Common/CreateTemplate\";\nimport TemplateCard from \"./Templates/TemplateCard\";\n\nimport \"./styles/templates.css\";\n\nexport default function Templates(props) {\n const {\n indexOfTemplateSelected,\n templateList,\n isCreatingCoa,\n reportIsSelected,\n saveTemplateIdForAddingCoa,\n handleAddTemplateClick,\n handleEditTemplate,\n handleDeleteTemplate,\n handleCustomizeReport,\n isReportAndTemplateSelected,\n templateLoading,\n } = props;\n return (\n
    \n
    \n
    \n \n {isCreatingCoa ? \"Templates\" : \"Your templates\"}\n \n {!isCreatingCoa && (

    Create custom templates for your COAs

    )}\n
    \n {/* eslint-disable-next-line */}\n \n
    \n {!isCreatingCoa && }\n {!templateLoading && templateList.map((item, index) => (\n \n ))}\n {templateLoading &&
    }\n
    \n \n {isCreatingCoa && ()}\n
    \n
    \n );\n}\n","import React, { useState, useRef, useEffect } from \"react\";\nimport { toast } from \"react-toastify\";\nimport COALoadingPage from \"../Common/COALoadingPage\";\nimport NoResultFound from \"../Common/NoResultFound\";\nimport LoadingOverlay from \"../../../../Common/LoadingOverlay\";\nimport {\n getProductFields,\n getReports,\n getSpec,\n} from \"../../../../../actions/reports\";\nimport {\n getTemplates,\n} from \"../../../../../actions/productTemplate\";\nimport Header from \"../Common/Header\";\nimport Templates from \"../Templates\";\nimport \"../styles/coa.css\";\nimport \"../styles/templates.css\";\nimport ReportsTable from \"../../../Report/ReportsTable/ReportsTable\";\nimport { sortAndFilterProductReportFields } from \"../../../Report/utils\";\nimport \"./COAReport.css\";\n\nexport default function COAReport({\n handleAddCoa,\n isCreatingCoa,\n backToChooseCoaReport,\n handleCustomizeReportTemplate,\n linkReportKeys,\n setLinkReportKeys,\n}) {\n const [isLoading, setIsLoading] = useState(true);\n const [templateLoading, setTemplateLoading] = useState(false);\n const [reportSpecsLoading, setReportSpecsLoading] = useState(false);\n const [fileList, setFileList] = useState([]);\n const [fields, setFields] = useState([]);\n const [searchValue, setSearchValue] = useState(\"\");\n const [nextPageLink, setNextPageLink] = useState(\"\");\n const [totalPage, setTotalPage] = useState(1);\n const [currentPage, setCurrentPage] = useState(1);\n const [loadingNewContent, setLoadingNewContent] = useState(false);\n const [templateList, setTemplateList] = useState([]);\n const [selectedReports, setSelectedReports] = useState({});\n const coaReportScrollbar = useRef(null);\n const [indexOfTemplateSelected, setIndexOfTemplateSelected] = useState(-1);\n const [, setTemplateApiController] = useState(null);\n\n /** Reset the template related states */\n const clearTemplateSelect = () => {\n setSelectedReports((prevState) => {\n const newState = { ...prevState };\n delete newState.template;\n setIndexOfTemplateSelected(-1);\n return newState;\n });\n };\n\n /**\n * Use the AbortController to cancel the last producttemplates/ call if the last call was still in progress.\n * @param {*} controller\n */\n const abortPrevTemplateApiCall = (controller) => {\n setTemplateApiController((prevController) => {\n /** cancel the last api call */\n if (prevController) {\n prevController.abort();\n }\n /** delete the template field to aovid the user click the \"Customize Report\" button */\n setSelectedReports((prevState) => {\n const newState = { ...prevState };\n delete newState.template;\n return newState;\n });\n return controller;\n });\n };\n\n /**\n * Make an api call to get the selected template information\n * @param {*} templateIndex\n */\n const saveTemplateIdForAddingCoa = async (templateIndex) => {\n if (templateIndex === -1 || templateIndex === indexOfTemplateSelected) {\n clearTemplateSelect();\n } else {\n const params = { template_id: templateList[templateIndex].template_id };\n\n /** Cancel the last api call if it is not finished yet */\n const controller = new AbortController();\n abortPrevTemplateApiCall(controller);\n\n const response = await getTemplates(params, controller.signal);\n if (response && response.success) {\n /** update the selected template index and the report state */\n setIndexOfTemplateSelected(templateIndex);\n setSelectedReports((prevState) => ({\n ...prevState,\n template: response.result[0],\n }));\n } else if ((!response || !response.success) && !response.cancel) {\n toast.error(\"Could not fetch template.\");\n clearTemplateSelect();\n }\n }\n };\n\n const handleNavigation = () => {\n setIndexOfTemplateSelected(-1);\n backToChooseCoaReport(false);\n };\n\n useEffect(() => {\n const fetchReportsData = async () => {\n const fieldsData = await getProductFields();\n const filesData = await getReports();\n if (!fieldsData || !fieldsData.success || !filesData || !filesData.success) {\n setFileList([]);\n setIsLoading(false);\n toast.error(\"Could not fetch reports data.\");\n return;\n }\n\n setLinkReportKeys(fieldsData.link_report);\n const sortedFilteredFields = sortAndFilterProductReportFields(fieldsData.link_report, fieldsData.fields);\n const {\n files: newFiles, nextPageLink: newNextPageLink, totalPage: newTotalPage,\n } = filesData;\n\n setCurrentPage(1);\n setTotalPage(newTotalPage);\n setNextPageLink(newNextPageLink);\n setFileList([...newFiles]);\n setLoadingNewContent(false);\n setFields(sortedFilteredFields);\n setIsLoading(false);\n };\n\n const fetchTemplates = async () => {\n setTemplateLoading(true);\n const response = await getTemplates();\n if (!response || !response.success) {\n toast.error(\"Could not fetch templates.\");\n setTemplateList([]);\n } else {\n setTemplateList(response.result);\n }\n setTemplateLoading(false);\n };\n\n fetchReportsData();\n fetchTemplates();\n }, []); // eslint-disable-line\n\n useEffect(() => {\n if (loadingNewContent) {\n coaReportScrollbar.current.scrollToBottom();\n }\n }, [loadingNewContent]);\n\n /**\n * If a user selects a sample, then make an api call to get the sample metadata.\n * @param {*} report\n * @param {*} fileIndex\n * @returns\n */\n const saveReportForAddingCoa = async (report, fileIndex) => {\n setReportSpecsLoading(true);\n const newObj = {};\n const params = {\n index: report.index,\n index_id: report.index_id,\n report_id: report.report_id,\n sample_id: report.sample_id,\n received_date: report.received_date,\n sample_type: report.sample_type,\n };\n const methodReference = true;\n const response = await getSpec(params, methodReference);\n if (response && response.success) {\n const specData = Object.entries(response.spec.report_result);\n // Sort the spec data by oldest to most recent\n const dataSorted = specData.sort((a, b) => Date.parse(a[0]) - Date.parse[b[0]]);\n // dataSorted will have a format of [ [date, [ ]], [date, [ ]] ]\n // since the oldest date will be first index, we choose index 0 and then index 1 for the array containing spec information\n let test_results = [];\n /** Get most recent data for all tests that have been run for this sample */\n if (dataSorted.length > 1) {\n // Filters out test results with a test_spec_flag of \"0\"\n // and retains only the most recent test result for each unique test name that has been processed\n const seen = new Set();\n const latestTestResults = {};\n dataSorted.forEach(([, testResults]) => {\n testResults.forEach((testObj) => {\n const testName = testObj.test;\n if (!seen.has(testName) && testObj.test_spec_flag !== \"0\") {\n if (!latestTestResults[testName]) {\n latestTestResults[testName] = testObj;\n }\n seen.add(testName);\n }\n });\n });\n test_results = Object.values(latestTestResults);\n } else {\n // Filters out test results with a test_spec_flag of \"0\"\n test_results = dataSorted[0][1].filter((testObj) => testObj.test_spec_flag !== \"0\");\n }\n\n if (test_results.length === 0) {\n toast.info(\"This sample does not have any results.\");\n setReportSpecsLoading(false);\n return false;\n }\n\n /** update states and push the selected sample information */\n const {\n sample_id,\n sample_type,\n received_date,\n } = fileList[fileIndex];\n\n const linkReportValuesObj = {};\n linkReportKeys.forEach((json_field) => { linkReportValuesObj[json_field] = fileList[fileIndex][json_field] ?? \"\"; }); // populate sample_data with linked fields vals, will be used in COASave\n newObj.sample_data = {\n sample_id,\n sample_type,\n received_date,\n test_results,\n ...linkReportValuesObj,\n };\n newObj.report_index = fileIndex;\n setReportSpecsLoading(false);\n setSelectedReports((prevState) => {\n const newState = { ...prevState };\n if (newObj.sample_data) {\n newState[fileIndex] = newObj;\n }\n return newState;\n });\n return true;\n }\n setReportSpecsLoading(false);\n toast.error(\"Get sample report failed.\");\n return false;\n };\n\n /**\n * A function which handles the on select action for each sample\n */\n const handleReportSelect = async (row, action) => {\n if (action === \"deselect\") {\n /** only need to update the report states for unchecking a checkbox */\n setSelectedReports((prevState) => {\n const newState = { ...prevState };\n delete newState[row.index];\n return newState;\n });\n return true;\n }\n if (action === \"select\") {\n const resp = await saveReportForAddingCoa(fileList[row.index], row.index);\n return resp;\n }\n return false;\n };\n\n const handlePageChangeScroll = async () => {\n const loadedAllData = currentPage === totalPage;\n if (!loadedAllData && !loadingNewContent) {\n setLoadingNewContent(true);\n const nextPage = nextPageLink ? parseInt(nextPageLink.split(\"page=\")[1].split(\"&\")[0]) : 1;\n\n const resp = await getReports(nextPageLink);\n if (resp) {\n const {\n files: newFiles, nextPageLink: newNextPageLink, totalPage: newTotalPage,\n } = resp;\n setTotalPage(newTotalPage);\n setNextPageLink(newNextPageLink);\n setFileList([...fileList, ...newFiles]);\n setLoadingNewContent(false);\n setCurrentPage(nextPage);\n }\n }\n };\n\n const handleSearch = async (value) => {\n const params = {\n fromm: \"\", // fromm is not a typo\n to: \"\",\n specs_flag: \"\",\n search: value,\n retest: \"\",\n };\n\n const response = await getReports(\"\", params);\n if (!response || !response.success) {\n toast.error(\"Could not fetch reports data.\");\n return;\n }\n\n setSelectedReports(() => {\n const newState = {};\n setIndexOfTemplateSelected(-1);\n return newState;\n });\n const {\n files: newFiles, nextPageLink: newNextPageLink, totalPage: newTotalPage,\n } = response;\n\n if (coaReportScrollbar && coaReportScrollbar.current && coaReportScrollbar.current.scrollToTop()) {\n coaReportScrollbar.current.scrollToTop();\n }\n setTotalPage(newTotalPage);\n setNextPageLink(newNextPageLink);\n setFileList([...newFiles]);\n setLoadingNewContent(false);\n setCurrentPage(1);\n setSearchValue(value);\n handleReportSelect(-1);\n };\n\n /**\n * Convert the selectedReports to the datastructure { data_fields, samples, link_report_keys } and then pass it to the TemplateBuilder component\n */\n const handleCustomizeReport = () => {\n const data_fileds = {};\n const samples = [];\n\n Object.entries(selectedReports).forEach(([key, value]) => {\n if (key !== \"template\") {\n samples.push(value.sample_data);\n const reportInfo = fileList[value.report_index];\n /** push all the field values into the same field key set */\n Object.entries(reportInfo).forEach(([fieldName, fieldValue]) => {\n /** if the field value is valid and the field name does not exist, then set it to an empty array */\n if (typeof fieldValue === \"string\" && fieldValue.length > 0 && !data_fileds[fieldName]) {\n data_fileds[fieldName] = [];\n }\n /** push the field value if it is not existed in the array */\n if (data_fileds[fieldName] && !data_fileds[fieldName].includes(fieldValue) && fieldValue !== \"\") {\n data_fileds[fieldName].push(fieldValue);\n }\n });\n }\n });\n const reports = { data_fileds, samples, link_report_keys: linkReportKeys };\n if (Object.keys(reports).length > 0 && selectedReports.template) {\n handleCustomizeReportTemplate({ selectedReports: reports, selectedTemplate: selectedReports.template });\n }\n };\n\n if (isLoading || templateLoading) {\n return (\n \n );\n }\n\n return (\n
    \n
    \n { reportSpecsLoading && ()}\n \n

    Apply templates to your reports to create cutomized reports

    \n
    \n
    \n

    Select a report and choose template

    \n {!isLoading && (\n fileList.length === 0\n ? \n : (\n \n )\n )}\n
    \n\n
    \n 0}\n indexOfTemplateSelected={indexOfTemplateSelected}\n saveTemplateIdForAddingCoa={saveTemplateIdForAddingCoa}\n handleCustomizeReport={handleCustomizeReport}\n isReportAndTemplateSelected={Object.keys(selectedReports).length > 1 && selectedReports.template}\n isCreatingCoa\n />\n
    \n
    \n
    \n
    \n );\n}\n","import React from \"react\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport DataFieldsIcon from \"../../../../assets/images/product/template/DataFieldsIcon.svg\";\nimport \"./DataFieldsButton.css\";\n\nexport default function DataFieldsButton(props) {\n const { toggleDataFieldsModal, showDataFieldsModal } = props;\n return (\n toggleDataFieldsModal()}>\n \n Data Fields\n \n );\n}\n","import React, { useState } from \"react\";\nimport SearchIconSmall from \"../../../../../assets/images/product/template/SearchGreyLarge.png\";\nimport CloseIcon from \"../../../../../assets/images/product/template/closeGrey.png\";\n\nexport default function DataFieldsSearch(props) {\n const {\n toggleShowSearch,\n handleSubmitSearch,\n } = props;\n const [searchValue, setSearchValue] = useState(\"\");\n const onKeyPress = (e) => {\n if (e.charCode === 13) {\n handleSubmitSearch(searchValue, true);\n }\n };\n\n const onChange = (e) => {\n setSearchValue(e.target.value);\n if (!e.target.value) {\n handleSubmitSearch(\"\", false);\n }\n };\n\n return (\n
    \n
    \n \n \"SearchIconSmall\" handleSubmitSearch(searchValue, true)} className=\"searchIconSmall\" />\n
    \n \"templateSearchCloseIcon\"\n
    \n );\n}\n","import React from \"react\";\nimport \"./DataFieldsDeleteModal.css\";\n\nexport default function DataFieldsDeleteModal(props) {\n const {\n field, toggleShowDeleteModal, onDelete, refVal,\n } = props;\n return (\n
    \n
    \n \n Are you sure you want to delete\n {\" \"}\n {field}\n {\" \"}\n ?\n \n
    \n
    \n toggleShowDeleteModal()} />\n onDelete(field)} />\n
    \n\n
    \n );\n}\n","import React, { useState } from \"react\";\nimport \"./DataFieldsEditModal.css\";\n\nexport default function DataFieldsEditModal(props) {\n const {\n field, toggleShowEditModal, handleEdit, refVal,\n } = props;\n const [newField, setNewField] = useState(field);\n const handleHitEnter = (e) => {\n if (e.key === \"Enter\") {\n handleEdit(field, newField.trim());\n }\n };\n return (\n
    \n
    \n handleHitEnter(e)} value={newField} onChange={(e) => setNewField(e.target.value)} />\n
    \n
    \n toggleShowEditModal()} />\n handleEdit(field, newField.trim())} />\n
    \n\n
    \n );\n}\n","import React, { useState } from \"react\";\nimport PlusIcon from \"../../../../../assets/images/product/template/PlusWhite.png\";\nimport \"./DataFieldsAdd.css\";\n\nexport default function DataFieldsAdd(props) {\n const {\n showDeleteModal,\n showEditModal,\n apiAddDataField,\n } = props;\n\n const [inputVal, setInputVal] = useState(\"\");\n const handleHitEnter = async (e) => {\n if (e.key === \"Enter\") {\n const addSuccess = await apiAddDataField(inputVal.trim());\n if (addSuccess) {\n setInputVal(\"\");\n }\n }\n };\n\n const handleAddOnClick = async () => {\n const addSuccess = await apiAddDataField(inputVal.trim());\n if (addSuccess) {\n setInputVal(\"\");\n }\n };\n\n return (\n
    \n
    \n
    Create New Fields
    \n handleHitEnter(e)}\n type=\"text\"\n placeholder=\"Enter title\"\n name=\"datafield\"\n value={inputVal}\n onChange={(e) => setInputVal(e.target.value)}\n />\n
    handleAddOnClick()}>\n \"PlusIconSmall\"\n Add\n
    \n
    \n
    \n );\n}\n","export default __webpack_public_path__ + \"static/media/SearchBlueIcon.404804ba.png\";","import React, { useEffect, useState, useRef } from \"react\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport { toast } from \"react-toastify\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport DataFieldsSearch from \"./DataFieldsSearch\";\nimport \"./DataFieldsModal.css\";\nimport { manageDataFields, sortAndSearchDataFields } from \"../../../../../actions/productTemplate\";\nimport DataFieldsDeleteModal from \"./DataFieldsDeleteModal\";\nimport DataFieldsEditModal from \"./DataFieldsEditModal\";\nimport DataFieldsAdd from \"./DataFieldsAdd\";\nimport NoResults from \"../../../../Common/NoResults\";\n\nimport emptyStateIcon from \"../../../../../assets/images/EmptyState_V2.png\";\nimport SearchIcon from \"../../../../../assets/images/product/template/SearchBlueIcon.png\";\nimport DataFieldsMenu from \"../../../../../assets/images/product/template/threeDotsIconGrey.png\";\nimport DataFieldsEdit from \"../../../../../assets/images/product/template/EditPencilWhite.png\";\nimport DataFieldsDelete from \"../../../../../assets/images/product/template/DeleteDataFieldsWhite.png\";\n\nexport default function DataFieldsModal({ dataFieldCategory }) {\n const [showSearchBar, setShowSearchBar] = useState(false);\n const [fieldsList, setFieldsList] = useState([]);\n const [dataField, setDataField] = useState(\"\");\n const [showDeleteModal, setShowDeleteModal] = useState(false);\n const [showEditModal, setShowEditModal] = useState(false);\n const [elemToBeDeleted, setElemToBeDeleted] = useState(\"\");\n const [elemToBeEdited, setElemToBeEdited] = useState(\"\");\n const [searchValue, setSearchValue] = useState(\"\");\n const [showMenu, setShowMenu] = useState(false);\n const [selectedField, setSelectedField] = useState(\"\");\n const [searching, setSearching] = useState(false);\n const [loading, setLoading] = useState(false);\n const ref = useRef(null);\n const editRef = useRef(null);\n const deleteRef = useRef(null);\n\n const assignIds = (fieldsArray) => fieldsArray.map((fieldsObj) => ({ ...fieldsObj, id: uuidv4() }));\n const data = fieldsList.reduce((r, e) => {\n const group = e[0].toUpperCase();\n if (!r[group]) r[group] = { group, children: [e] };\n else r[group].children.push(e);\n return r;\n }, {});\n const result = Object.values(data);\n\n const apiSearchDataFields = async (params, issearching) => {\n setSearching(issearching);\n setLoading(true);\n const response = await sortAndSearchDataFields(params);\n if (response && response.success) {\n const withIds = assignIds(response.result);\n setFieldsList(withIds.map((ele) => ele.value));\n } else {\n toast.error(\"Failed to search data fields.\");\n }\n setLoading(false);\n };\n\n const handleSubmitSearch = (value, issearching) => {\n setSearchValue(value);\n setSelectedField(\"\");\n setShowMenu(false);\n setSearching(issearching);\n apiSearchDataFields({ sort_by: \"Alphabetical order\", search: value, category: dataFieldCategory }, issearching);\n };\n\n const apiGetDataFields = async (value) => {\n setLoading(true);\n const response = await sortAndSearchDataFields({ sort_by: \"Alphabetical order\", search: value || \"\", category: dataFieldCategory });\n if (response && response.success) {\n const withIds = assignIds(response.result);\n setFieldsList(withIds.map((ele) => ele.value));\n } else {\n toast.error(\"Failed to get data fields.\");\n }\n setLoading(false);\n };\n\n const apiAddDataField = async (value) => {\n setLoading(true);\n const params = {\n field_name: value,\n action: \"add\",\n method: \"POST\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n setLoading(false);\n if (response && response.success) {\n if (response.message === \"Success\") {\n setSearchValue(\"\");\n setDataField(\"\");\n apiGetDataFields();\n return true;\n }\n toast.error(response.message);\n } else {\n toast.error(response.message);\n }\n return false;\n };\n\n const toggleShowEditModal = (elem) => {\n if (elem) {\n setElemToBeEdited(elem);\n } else {\n setSelectedField(\"\");\n setShowMenu(false);\n }\n setShowEditModal(!showEditModal);\n };\n\n const toggleShowDeleteModal = (elem) => {\n if (elem) {\n setElemToBeDeleted(elem);\n } else {\n setSelectedField(\"\");\n setShowMenu(false);\n }\n setShowDeleteModal(!showDeleteModal);\n };\n\n const apiDeleteDataField = async (field) => {\n const params = {\n field_name: field,\n field_in_use: \"0\",\n action: \"delete\",\n method: \"PATCH\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n toggleShowDeleteModal();\n if (response && response.success) {\n setShowMenu(false);\n setSelectedField(\"\");\n if (response.message === \"Success\") {\n if (searchValue && searching) apiGetDataFields(searchValue);\n else apiGetDataFields();\n return true;\n }\n toast.error(response.message);\n } else {\n setShowMenu(false);\n toast.error(\"Failed to delete data field.\");\n }\n return false;\n };\n\n const apiEditDataFieldTitle = async (prevName, newName) => {\n const params = {\n field_name: newName,\n field_name_pre: prevName,\n action: \"edit\",\n method: \"PATCH\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n toggleShowEditModal();\n if (response && response.success) {\n setShowMenu(false);\n setSelectedField(\"\");\n if (response.message === \"Success\") {\n if (searchValue && searching) apiGetDataFields(searchValue);\n else apiGetDataFields();\n return true;\n }\n } else {\n setShowMenu(false);\n if (response.message !== \"Failed to update. Field name already exists.\") { toast.error(response.message); }\n if (response.message === \"Failed to update. Field name already exists.\" && prevName !== newName) { toast.error(response.message); }\n }\n return false;\n };\n\n useEffect(() => {\n apiGetDataFields();\n }, []); // eslint-disable-line\n\n const toggleShowSearchBar = () => {\n setShowSearchBar((prevState) => {\n if (prevState) {\n if (searchValue) apiGetDataFields();\n }\n return !prevState;\n });\n setSearchValue(\"\");\n setSearching(false);\n };\n\n const handleShowMenu = (value) => {\n setSelectedField(value);\n setShowMenu(true);\n };\n\n const handleOutsideClick = () => {\n setSelectedField(\"\");\n setShowMenu(false);\n };\n\n useEffect(() => {\n function handleClickOutside(event) {\n if ((editRef.current && !editRef.current.contains(event.target)) && (deleteRef.current && !deleteRef.current.contains(event.target))) {\n setShowEditModal(false);\n setShowDeleteModal(false);\n handleOutsideClick();\n }\n }\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [editRef, deleteRef]);\n\n useEffect(() => {\n function handleClickOutside(event) {\n if (ref.current && !ref.current.contains(event.target)) {\n if ((editRef.current && !editRef.current.contains(event.target)) && (deleteRef.current && !deleteRef.current.contains(event.target))) {\n handleOutsideClick();\n }\n }\n }\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [ref]);\n\n return (\n
    \n
    \n \n
    \n
    \n
    Added Data fields
    \n
    \n {!showSearchBar\n && (\n toggleShowSearchBar(true)}\n className=\"searchIcon\"\n />\n ) }\n
    \n {showSearchBar && (\n
    \n \n
    \n )}\n
    \n \n {!loading && fieldsList.length === 0 && (!searching ?
    No data fields added. Add them here to later edit their values while customizing your reports
    : )}\n {!loading && fieldsList && result.map((field, i) => (\n
    \n
    {field.group.toUpperCase()}
    \n {field.children.map((child, index) => (\n
    \n \n
    {child}
    \n handleShowMenu(child)}>\"dataFieldsMenu\"\n \n {selectedField === child && showMenu &&
    toggleShowEditModal(child)}>\"dataFieldsEdit\"
    }\n {selectedField === child && showMenu &&
    toggleShowDeleteModal(child)}>\"dataFieldsDelete\"
    }\n
    \n ))}\n
    \n ))}\n {loading && (
    )}\n \n {showEditModal && }\n {showDeleteModal && }\n
    \n
    \n
    \n );\n}\n","import React, { useState, useEffect } from \"react\";\nimport { toast } from \"react-toastify\";\nimport COAList from \"./COA/COAList\";\nimport CreateReportButton from \"./Common/CreateReportButton\";\nimport COAReport from \"./COA/COAReport\";\nimport COALoadingPage from \"./Common/COALoadingPage\";\nimport {\n getCoas,\n getTemplates,\n} from \"../../../../actions/productTemplate\";\nimport { createAndAppendIdentifierList } from \"../helper\";\nimport \"./styles/coa.css\";\nimport DataFieldsButton from \"./DataFieldsButton\";\nimport DataFieldsModal from \"./DataFields/DataFieldsModal\";\nimport Header from \"./Common/Header\";\nimport { getProductFields } from \"../../../../actions/reports\";\n\nexport default function COA(props) {\n const {\n handleCustomizeReportTemplate,\n handleIsCreatingCoa,\n isCreatingCoa,\n } = props;\n const [showDataFieldsModal, setShowDataFieldsModal] = useState(false);\n const [coaList, setCoaList] = useState([]);\n const [hasCoa, setHasCoa] = useState(false);\n const [hasTemplate, setHasTempalte] = useState(false);\n const [showLoadingPage, setShowLoadingPage] = useState(true);\n const [linkReportKeys, setLinkReportKeys] = useState([]);\n\n /**\n * Make three api calls:\n * 1. get templates list\n * 2. get coa list\n * 3. get the link_report key\n */\n const fetchTemplatesAndCoa = async () => {\n const templateResponse = await getTemplates();\n const params = { category: \"fetchList\" };\n const coaResponse = await getCoas(params);\n const commonFieldResp = await getProductFields();\n\n let curLinkReportKeys = [];\n if (commonFieldResp.success) {\n curLinkReportKeys = commonFieldResp.link_report;\n setLinkReportKeys(commonFieldResp.link_report);\n }\n if (!templateResponse || !templateResponse.success) {\n setHasTempalte(false);\n } else if (templateResponse.result.length > 0) {\n setHasTempalte(true);\n }\n if (coaResponse && coaResponse.message === \"Success\") {\n const result = createAndAppendIdentifierList(coaResponse, curLinkReportKeys);\n setCoaList(result);\n setHasCoa(result.length > 0);\n } else {\n toast.error(\"Failed to get COA list.\");\n setCoaList([]);\n }\n setShowLoadingPage(false);\n };\n\n /**\n * If it is the COA page, then fetch different information and set the loading state.\n * If it is a \"Create Custon Report\" page, then turn off the loading state and no need to make any api call in the current component.\n */\n useEffect(() => {\n if (!isCreatingCoa) {\n setShowLoadingPage(true);\n fetchTemplatesAndCoa();\n } else {\n setShowLoadingPage(false);\n }\n }, []); // eslint-disable-line\n\n const toggleDataFieldsModal = () => {\n setShowDataFieldsModal(!showDataFieldsModal);\n };\n\n /**\n * A function which hanldes the on click action for the \"back\" icon on the \"Create Custon Report\" page.\n * @param {*} val\n */\n const backToChooseCoaReport = (val) => {\n setShowLoadingPage(true);\n handleIsCreatingCoa(val);\n fetchTemplatesAndCoa();\n };\n\n if (showLoadingPage) {\n return (\n \n );\n }\n\n /**\n * Show this content if there is no templates and coa list is empty\n */\n if (!hasTemplate && !isCreatingCoa && !hasCoa) {\n return (\n
    \n \n {showDataFieldsModal && (\n
    \n \n
    \n )}\n
    \n
    \n Build Your templates to create customized COAs.\n
    \n
    \n
    \n );\n }\n\n /**\n * Redicrect to the \"Create Custom Report\" page if the \"Create Custom Report\" button is clicked\n */\n if (isCreatingCoa) {\n return (\n handleIsCreatingCoa(true)}\n isCreatingCoa={isCreatingCoa}\n backToChooseCoaReport={(val) => backToChooseCoaReport(val)}\n handleCustomizeReportTemplate={handleCustomizeReportTemplate}\n linkReportKeys={linkReportKeys}\n setLinkReportKeys={setLinkReportKeys}\n />\n );\n }\n\n /**\n * If the coa list is not empty, then display the list of coa.\n */\n if (hasCoa) {\n return (\n
    \n \n {showDataFieldsModal && (\n
    \n \n
    \n )}\n
    \n handleIsCreatingCoa(true)}\n coaList={coaList}\n setCoaList={setCoaList}\n linkReportKeys={linkReportKeys}\n />\n
    \n
    \n\n );\n }\n\n /** If there is the coa list is empty and templates are not empty, show this content */\n return (\n
    \n
    \n \n \n
    \n {showDataFieldsModal && (\n
    \n \n
    \n )}\n
    \n handleIsCreatingCoa(true)} />\n
    \n
    \n );\n}\n","import React from \"react\";\nimport { Switch } from \"antd\";\nimport \"./TestViewToggle.css\";\n\nexport default function TestViewToggle({ handleTestToggle, enableTests }) {\n return (\n handleTestToggle(!enableTests)}\n />\n );\n}\n","import React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport TestViewToggle from \"./Components/TestViewToggle\";\nimport \"./BuilderTests.css\";\n\nexport default function BuilderTests(props) {\n const {\n previewTemplate,\n enableTests,\n handleTestToggle,\n uniqueTests,\n setUniqueTests,\n } = props;\n\n /**\n * Handles the selection of a test item in the uniqueTests array.\n * If the selected test is not already selected or the total selected tests count is less than 5,\n * toggles the selected state of the test item and updates the uniqueTests array.\n * @param {string} test - The test to be selected or deselected.\n * @param {number} index - The index of the test item in the uniqueTests array.\n * @param {boolean} selected - The current selected state of the test item.\n */\n const handleSelectTest = (test, index, selected) => {\n const testList = JSON.parse(JSON.stringify(uniqueTests));\n const selectedTestsCount = testList.filter((item) => item.selected).length;\n const SelectedTests = testList.filter((item) => item.selected).map((item) => item.test);\n if (SelectedTests.includes(test) || selectedTestsCount < 5) {\n testList[index] = { test, selected: !selected };\n setUniqueTests(testList);\n }\n };\n\n const numOfSelectedTests = uniqueTests.filter((item) => item.selected).length;\n return (\n
    \n
    \n Tests\n \n
    \n
    {`Choose a maximum of 5 tests (${numOfSelectedTests})`}
    \n
    \n \n
    \n {uniqueTests.map(({ test, selected }, i) => handleSelectTest(test, i, selected)} className={selected ? \"templateBuilderTestsItem templateBuilderTestsItem--selected\" : \"templateBuilderTestsItem\"} key={i}>{test})}\n
    \n
    \n
    \n
    \n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgProductIconFilled = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 18,\n viewBox: \"0 0 18 18\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Product\",\n clipPath: \"url(#clip0_3609_24682)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n d: \"M15 16.5H3C2.80109 16.5 2.61032 16.421 2.46967 16.2803C2.32902 16.1397 2.25 15.9489 2.25 15.75V2.25C2.25 2.05109 2.32902 1.86032 2.46967 1.71967C2.61032 1.57902 2.80109 1.5 3 1.5H15C15.1989 1.5 15.3897 1.57902 15.5303 1.71967C15.671 1.86032 15.75 2.05109 15.75 2.25V15.75C15.75 15.9489 15.671 16.1397 15.5303 16.2803C15.3897 16.421 15.1989 16.5 15 16.5ZM6.75 4.5H5.25V6C5.25 6.99456 5.64509 7.94839 6.34835 8.65165C7.05161 9.35491 8.00544 9.75 9 9.75C9.99456 9.75 10.9484 9.35491 11.6517 8.65165C12.3549 7.94839 12.75 6.99456 12.75 6V4.5H11.25V6C11.25 6.59674 11.0129 7.16903 10.591 7.59099C10.169 8.01295 9.59674 8.25 9 8.25C8.40326 8.25 7.83097 8.01295 7.40901 7.59099C6.98705 7.16903 6.75 6.59674 6.75 6V4.5Z\",\n fill: \"#77CCEE\"\n })), /*#__PURE__*/React.createElement(\"rect\", {\n id: \"Rectangle 49\",\n x: 7,\n y: 11,\n width: 4,\n height: 1,\n rx: 0.5,\n fill: \"#FDFDFD\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_3609_24682\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 18,\n height: 18,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgProductIconFilled, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/ProductIconFilled.88037367.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgCalendarIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Calendar=Calendar, Type=Outline\",\n clipPath: \"url(#clip0_9_570)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n d: \"M7 3H3C2.73478 3 2.48043 3.10536 2.29289 3.29289C2.10536 3.48043 2 3.73478 2 4V20C2 20.2652 2.10536 20.5196 2.29289 20.7071C2.48043 20.8946 2.73478 21 3 21H21C21.2652 21 21.5196 20.8946 21.7071 20.7071C21.8946 20.5196 22 20.2652 22 20V4C22 3.73478 21.8946 3.48043 21.7071 3.29289C21.5196 3.10536 21.2652 3 21 3H17V1H15V3H9V1H7V3ZM4 11H20V19H4V11ZM9 5H15V7H17V5H20V9H4V5H7V7H9V5ZM18 13H16V15H18V13ZM13 13H11V15H13V13Z\",\n fill: \"#26ABE1\"\n })))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_9_570\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgCalendarIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/CalendarIcon.24981034.svg\";\nexport { ForwardRef as ReactComponent };","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgSaveCheckmarkIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 48,\n height: 48,\n viewBox: \"0 0 48 48\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"remix-icons/fill/system/checkbox-circle-fill\",\n clipPath: \"url(#clip0_4072_189)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n d: \"M24 44C12.954 44 4 35.046 4 24C4 12.954 12.954 4 24 4C35.046 4 44 12.954 44 24C44 35.046 35.046 44 24 44ZM21.6524 31.6464C21.8477 31.8417 22.1643 31.8417 22.3596 31.6464L35.7925 18.2116C35.9877 18.0163 35.9877 17.6997 35.7925 17.5045L33.6716 15.3836C33.4763 15.1883 33.1597 15.1883 32.9644 15.3836L22.006 26.344L16.7016 21.0396C16.5063 20.8443 16.1897 20.8443 15.9944 21.0396L13.8736 23.1604C13.6783 23.3557 13.6783 23.6723 13.8736 23.8676L21.6524 31.6464Z\",\n fill: \"#00BF71\"\n })))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_4072_189\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 48,\n height: 48,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgSaveCheckmarkIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/saveCheckmarkIcon.822a5868.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport { ReactComponent as Success } from \"../../../../../../assets/images/product/template/saveCheckmarkIcon.svg\";\nimport \"./BuilderSaveSuccess.css\";\n\nexport default function BuilderSaveSuccess({\n text,\n textWidth = \"146px\",\n}) {\n return (\n
    \n
    \n \n
    \n {text}\n
    \n );\n}\n","import React from \"react\";\nimport { ReactComponent as LoadingDots } from \"../../../../../../assets/images/common/LoadingDots.svg\";\nimport \"./SubmitButton.css\";\n\nexport default function SubmitButton({\n loading,\n disabled,\n handleSaveTemplate,\n text,\n}) {\n return (\n \n {loading ? (\n <>\n Saving\n \n \n ) : ({text})}\n \n );\n}\n","export const tagColorMap = {\n red: \"#E63559\",\n blue: \"#3874FF\",\n yellow: \"#E1B226\",\n orange: \"#F98006\",\n green: \"#1EC04A\",\n};\n\nexport default tagColorMap;\n","import React, { useState } from \"react\";\nimport moment from \"moment\";\nimport { toast } from \"react-toastify\";\nimport CloseLightBlue from \"../../../../../../assets/images/product/template/CloseLightBlue.png\";\nimport { ReactComponent as Product } from \"../../../../../../assets/images/product/template/ProductIconFilled.svg\";\nimport { ReactComponent as Calendar } from \"../../../../../../assets/images/product/template/CalendarIcon.svg\";\nimport { ReactComponent as EditIcon } from \"../../../../../../assets/images/sample-submission/edit.svg\";\n// import { ReactComponent as Checkmark } from \"../../../../../../assets/images/product/template/inputCheckmark.svg\";\nimport \"./COASave.css\";\nimport BuilderSaveSuccess from \"./BuilderSaveSuccess\";\nimport SubmitButton from \"./SubmitButton\";\nimport { tagColorMap } from \"./Constant\";\nimport { getDistinctIdentifiersForSampleList } from \"../../../helper\";\n\nexport default function COASave({\n handleSaveTemplate,\n toggleSaveModal,\n selectedReports,\n selectedTemplate,\n saveStatus,\n setSaveStatus,\n}) {\n const { name, tags } = selectedTemplate;\n const tag = tags[0];\n const linkReportKeys = selectedReports.link_report_keys;\n const { sample_id: sampleIDArr } = selectedReports.data_fileds;\n\n const [isEditing, setIsEditing] = useState(true);\n const [value, setValue] = useState(sampleIDArr[0]);\n\n const onChange = (val) => {\n if (!val.includes(\"/\")) {\n setValue(val);\n }\n };\n\n const handleCheckAndSaveTemplate = () => {\n if (value.trim()) {\n setIsEditing(false);\n setSaveStatus(\"loading\");\n handleSaveTemplate({ name: value.trim() });\n } else {\n toast.error(\"COA name cannot be empty\");\n }\n };\n\n return (\n
    \n {\n saveStatus === null && (\n toggleSaveModal(true)}\n src={CloseLightBlue}\n alt=\"close icon\"\n />\n )\n }\n
    \n {isEditing ? (\n
    \n \n onChange(e.target.value))}\n autoComplete=\"off\"\n autoFocus\n onKeyDown={(e) => {\n if (e.key === \"Enter\" && isEditing) {\n setIsEditing(false);\n }\n }}\n />\n {/* setIsEditing(false)} className=\"COASave__InputButton\" /> */}\n
    \n ) : (\n <>\n {value}\n setIsEditing(true)} className=\"COASave__InputButton\" />\n \n )}\n
    \n
    \n
    \n
    \n \n \n {getDistinctIdentifiersForSampleList(selectedReports.samples, linkReportKeys).map((identifierArr, sampleIdx) => (\n \n \n {identifierArr.map((val, valIdx) => (\n \n \n {val}\n {valIdx === identifierArr.length - 1 && sampleIdx < selectedReports.samples.length - 1 && (\",\")}\n \n {valIdx < identifierArr.length - 1 && ()}\n \n ))}\n \n \n ))}\n \n
    \n
    \n \n {moment(new Date()).format(\"MM/DD/yyyy\")}\n
    \n \n {name}\n
    \n
    \n
    \n {saveStatus === \"success\" ? (\n \n ) : (\n \n )}\n
    \n
    \n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport CloseLightBlue from \"../../../../../../assets/images/product/template/CloseLightBlue.png\";\nimport BuilderSaveSuccess from \"./BuilderSaveSuccess\";\nimport SubmitButton from \"./SubmitButton\";\nimport { tagColorMap } from \"./Constant\";\nimport \"./TemplateSave.css\";\n\nexport default function TemplateSave({\n handleSaveTemplate,\n selectedTemplate,\n toggleSaveModal,\n setSaveStatus,\n saveStatus,\n}) {\n const [input, setInput] = useState(selectedTemplate ? selectedTemplate.name : \"\");\n const tagArray = [\n { tag: \"red\", color: \"#E63559\" },\n { tag: \"blue\", color: \"#3874FF\" },\n { tag: \"yellow\", color: \"#E1B226\" },\n { tag: \"orange\", color: \"#F98006\" },\n { tag: \"green\", color: \"#1EC04A\" }];\n const [activeTag, setActiveTag] = useState(selectedTemplate ? selectedTemplate.tags[0] : null);\n const [disableSubmit, setDisableSubmit] = useState(true);\n\n const onChange = (value) => {\n if (!value.includes(\"/\")) {\n setInput(value);\n }\n };\n\n const handleTag = (tag) => {\n setActiveTag(tag);\n };\n\n const checkInputs = () => activeTag && input.trim();\n\n const handleCheckAndSaveTemplate = () => {\n const validInputs = checkInputs();\n if (validInputs) {\n setSaveStatus(\"loading\");\n handleSaveTemplate({ name: input, tags: [activeTag] });\n }\n };\n\n useEffect(() => {\n setDisableSubmit(!checkInputs());\n }, [activeTag, input]); // eslint-disable-line\n\n return (\n
    \n {\n saveStatus === null && (\n toggleSaveModal(true)}\n src={CloseLightBlue}\n alt=\"close icon\"\n />\n )\n }\n {saveStatus === \"success\" ? (\n
    \n \n {input.trim()}\n
    \n \n
    \n ) : (\n <>\n
    \n \n\n \n
    \n
    \n \n
    \n \n )}\n
    \n );\n}\n","import React, { useEffect } from \"react\";\nimport \"./BuilderConfirmSave.css\";\nimport COASave from \"./COASave\";\nimport TemplateSave from \"./TemplateSave\";\n\nexport default function BuilderConfirmSave({\n handleSaveTemplate,\n toggleSaveModal,\n isCustomizingCoa,\n selectedTemplate,\n selectedReports,\n saveStatus,\n setSaveStatus,\n handleNavigation,\n}) {\n /**\n * Set state back to default, navigate to coa list.\n */\n const handleSaveSuccess = () => {\n toggleSaveModal(true);\n setSaveStatus(null);\n handleNavigation(`${isCustomizingCoa ? \"coa\" : \"\"}builder`);\n };\n\n /**\n * If save was successful, wait 1 sec for the success\n * icon to show, then set state back to default\n * and navigate to coa list page.\n */\n useEffect(() => {\n if (saveStatus === \"success\") {\n setTimeout(handleSaveSuccess, 1000);\n }\n }, [saveStatus]); // eslint-disable-line\n return (\n
    \n
    \n {isCustomizingCoa ? (\n \n ) : (\n \n )}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport { motion } from \"framer-motion/dist/framer-motion\";\nimport Close from \"../../../../../../assets/images/product/template/CloseIconBlue.png\";\n\nexport default function ContentItem(props) {\n const {\n item, handleSectionSelect, handleSectionDelete, keyValue,\n } = props;\n return (\n handleSectionSelect(item)}\n className={item.active ? \"templateBuilderContentItem templateBuilderContentItemActive\" : \"templateBuilderContentItem \"}\n >\n {item.active ? (\n \n ) : null}\n {item.title}\n {item.edit && item.active\n && handleSectionDelete(e, item)} src={Close} alt=\"close icon\" />}\n \n\n );\n}\n","import React from \"react\";\nimport Add from \"../../../../../../assets/images/product/template/AddBlue.png\";\n\nexport default function ContentAddItem(props) {\n const { handleCreateSection } = props;\n return (\n \n \"\"\n Add section\n
    \n\n );\n}\n","import React from \"react\";\nimport { LayoutGroup } from \"framer-motion/dist/framer-motion\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport ContentItem from \"./ContentItem\";\nimport ContentAddItem from \"./ContentAddItem\";\nimport \"./builderContent.css\";\n\nexport default function BuilderContent(props) {\n const {\n previewTemplate, handleCreateSection, handleSectionSelect, handleSectionDelete, sections, sectionsFixed,\n } = props;\n\n return (\n
    \n
    Contents
    \n
    \n \n
    \n \n \n {sections.map((item) => (\n \n ))}\n \n \n {/* */}\n \n
    \n
    \n
    \n
    \n );\n}\n","/** Fixes the random wrapping on the PDF */\nexport const softHyphenate = (text) => (text.split(\"\").join(\"\\u{00AD}\"));\n\n/** calculates the widths for sample_id and result based on the number of selected items. */\nexport const calculateWidths = (uniqueTests) => {\n const numSelected = uniqueTests.filter((item) => item.selected).length;\n let sampleWidth;\n let resultWidth;\n\n switch (numSelected) {\n case 0:\n case 1:\n sampleWidth = 50;\n resultWidth = 50;\n break;\n case 2:\n sampleWidth = 33.33;\n resultWidth = 33.33;\n break;\n case 3:\n sampleWidth = 25;\n resultWidth = 25;\n break;\n case 4:\n sampleWidth = 25;\n resultWidth = 18.75;\n break;\n case 5:\n sampleWidth = 25;\n resultWidth = 15;\n break;\n default:\n sampleWidth = 25;\n resultWidth = 15;\n }\n return { sampleWidth, resultWidth };\n};\n","import React from \"react\";\nimport {\n View, StyleSheet, Image, Text,\n} from \"@react-pdf/renderer\";\nimport { softHyphenate } from \"./pdfUtils\";\n\nexport default function PDFImageWithText({\n imageFile,\n title,\n subtitle,\n alignLeft,\n hyphenateTitle = true,\n}) {\n const styles = StyleSheet.create({\n imageSection: {\n display: \"flex\",\n flexDirection: alignLeft ? \"row\" : \"column\",\n alignItems: \"center\",\n // width: \"auto\",\n gap: \"21\",\n width: \"100%\",\n },\n imageContainer: {\n minWidth: \"150\",\n width: \"150\",\n height: \"75\",\n borderRadius: \"8\",\n border: \"1px solid #EAF0F5\",\n backgroundColor: \"#F6F8FA\",\n marginTop: \"auto\",\n marginBottom: \"auto\",\n },\n image: {\n width: \"100%\",\n height: \"100%\",\n objectFit: \"contain\",\n // margin: \"auto\",\n },\n text: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n gap: \"8\",\n width: \"auto\",\n maxWidth: imageFile ? \"222\" : \"372\",\n height: \"100%\",\n flexGrow: \"0\",\n },\n title: {\n fontFamily: \"Roboto-500\",\n fontSize: \"14\",\n color: \"#506375\",\n // textTransform: \"uppercase\",\n },\n subtitle: {\n fontFamily: \"Roboto-500\",\n fontSize: \"11\",\n color: \"#506375\",\n },\n wordWrap: {\n display: \"flex\",\n flexDirection: \"row\",\n overflowWrap: \"break-word\",\n },\n });\n const previewURL = imageFile ? URL.createObjectURL(imageFile) : null;\n return (\n \n {previewURL && (\n \n \n \n ) }\n \n \n {(hyphenateTitle ? softHyphenate(title) : title) || \" \"}\n \n \n {softHyphenate(subtitle)}\n \n \n \n );\n}\n","import React from \"react\";\nimport {\n View, StyleSheet, Text,\n} from \"@react-pdf/renderer\";\nimport PDFImageWithText from \"./PDFImageWithText\";\nimport { softHyphenate } from \"./pdfUtils\";\n\nexport default function PDFHeader(props) {\n const { header, alignLeft } = props;\n\n const styles = StyleSheet.create({\n header: {\n paddingRight: \"19\",\n minHeight: header.logo_preview_file ? \"94\" : \"0\",\n display: \"flex\",\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: alignLeft ? \"space-between\" : \"center\",\n borderBottom: \"border: 1 solid #B3BFDB\",\n marginBottom: \"16\",\n position: \"relative\",\n paddingBottom: \"9\",\n },\n headerLeftSection: {\n maxWidth: \"70%\",\n },\n noImage: {\n paddingLeft: \"21\",\n },\n companyAddress: {\n maxWidth: 250,\n overflow: \"hidden\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: alignLeft ? \"left\" : \"center\",\n textAlign: alignLeft ? \"left\" : \"center\",\n },\n companyNumbers: {\n position: alignLeft ? \"unset\" : \"absolute\",\n right: \"0\",\n bottom: alignLeft ? \"0\" : \"10\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n width: \"auto\",\n maxWidth: \"30%\",\n gap: \"7\",\n color: \"#506375\",\n },\n companyNumbersRow: {\n display: \"flex\",\n flexDirection: \"row\",\n gap: \"6\",\n width: \"auto\",\n justifyContent: \"space-between\",\n maxWidth: alignLeft ? \"100%\" : \"200\",\n },\n phoneNumber: {\n maxWidth: \"108\",\n wordBreak: \"break-word\",\n },\n faxNumber: {\n maxWidth: \"125\",\n wordBreak: \"break-word\",\n },\n coaSection: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n coa: {\n fontFamily: \"Roboto-500\",\n fontSize: \"16\",\n color: \"#506375\",\n padding: \"0 16 16 16\",\n },\n gap: {\n marginBottom: 6,\n },\n wordWrap: {\n display: \"flex\",\n flexDirection: \"row\",\n overflowWrap: \"break-word\",\n },\n });\n const {\n name, address, phone, fax, logo_preview_file,\n } = header;\n\n return (\n <>\n \n \n \n \n \n {phone && (\n \n \n {\"PHONE : \"}\n \n \n {softHyphenate(phone)}\n \n \n )}\n {fax && (\n \n \n {\"FAX : \"}\n \n \n {softHyphenate(fax)}\n \n \n )}\n \n \n \n Certificate of Analysis\n \n \n );\n}\n","import React from \"react\";\nimport { Text, View, StyleSheet } from \"@react-pdf/renderer\";\n\nexport default function TableHeader() {\n const styles = StyleSheet.create({\n tableHeader: {\n display: \"flex\",\n flexDirection: \"column\",\n // border: \"1 solid #E1E1E1\",\n // borderRadius: \"6\",\n // borderBottomLeftRadius: \"0\",\n // borderBottomRightRadius: \"0\",\n // borderBottom: \"0\",\n },\n tableHeaderRow: {\n display: \"flex\",\n flexDirection: \"row\",\n color: \"#506375\",\n textAlign: \"center\",\n minHeight: \"32\",\n padding: \"0 75 6 75\",\n borderLeft: \"1 solid #E1E1E1\",\n borderRight: \"1 solid #E1E1E1\",\n },\n rowItem: {\n display: \"flex\",\n flexDirection: \"row\",\n width: \"25%\", // if test method is there\n // width: \"33%\",\n height: \"32\",\n justifyContent: \"center\",\n alignItems: \"center\",\n backgroundColor: \"#C4D2DF\",\n borderRadius: \"4px\",\n },\n gap: {\n marginRight: \"6\",\n },\n\n });\n return (\n \n Test Method\n Test\n Specification\n Results\n \n );\n}\n","import React from \"react\";\nimport { Text, View, StyleSheet } from \"@react-pdf/renderer\";\nimport { softHyphenate } from \"./pdfUtils\";\n\n// let prev = 0;\nexport default function TableRow(props) {\n const styles = StyleSheet.create({\n row: {\n display: \"flex\",\n flexDirection: \"row\",\n color: \"#505050\",\n textAlign: \"center\",\n padding: \"0 75 0 75\",\n borderLeft: \"1 solid #E1E1E1\",\n borderRight: \"1 solid #E1E1E1\",\n },\n rowItem: {\n minHeight: \"40\",\n width: \"25%\", // if test method is there\n // width: \"33%\",\n padding: \"14 4 14 4\",\n backgroundColor: \"#F2F6FA\",\n borderRadius: \"4px\",\n },\n gap: {\n marginRight: \"6\",\n },\n rowGap: {\n // marginBottom: \"6\",\n paddingBottom: \"6\",\n },\n rowMarginTop: {\n marginTop: \"40\",\n },\n rowText: {\n display: \"flex\",\n flexDirection: \"row\",\n flexGrow: \"1\",\n fontFamily: \"Roboto-400\",\n color: \"#505050\",\n fontSize: \"10\",\n maxWidth: \"99\",\n },\n });\n\n const { spec, isLast } = props;\n if (spec.test === \"Test\") {\n return null;\n }\n\n // function handleNewPage(pageNumber, totalPages) {\n // if (totalPages) {\n // if (prev !== pageNumber) {\n // prev = pageNumber;\n // return (\n // \n // {spec.test}\n // {spec.result}\n // {spec.report_result}\n // {spec.test_spec_flag}\n // \n // // Hello \n // );\n // }\n\n // return (\n // \n // {spec.test}\n // {spec.result}\n // {spec.report_result}\n // {spec.test_spec_flag}\n // \n // );\n // }\n // return null;\n // }\n\n // function checkRow(pageNumber, totalPages) {\n // console.log(pageNumber, totalPages);\n // }\n\n /** Bottom border: 14 (padding) + 1 (border), only apply to row if it is the last in the table */\n const minPresence = isLast ? 15 : undefined;\n\n return (\n \n {softHyphenate(spec.test_method)}\n {softHyphenate(spec.test)}\n {softHyphenate(spec.test_spec)}\n {softHyphenate(spec.test_result)}\n \n );\n}\n","import React from \"react\";\nimport {\n View, StyleSheet, Text,\n} from \"@react-pdf/renderer\";\nimport TableHeader from \"./TableHeader\";\nimport TableRow from \"./TableRow\";\nimport { softHyphenate } from \"./pdfUtils\";\n\nconst styles = StyleSheet.create({\n presenceAheadView: {\n marginTop: \"-14\",\n },\n table: {\n // borderLeft: \"1 solid #E1E1E1\",\n // borderRight: \"1 solid #E1E1E1\",\n // borderBottom: \"1 solid #E1E1E1\",\n // borderTop: \"1 solid #E1E1E1\",\n // borderRadius: \"6\",\n },\n sampleID: {\n color: \"#1f2d3b\",\n fontSize: \"12\",\n fontFamily: \"Roboto-500\",\n width: \"100%\",\n wordWrap: \"break-word\",\n textAlign: \"center\",\n padding: \"23 75 14 75\",\n borderLeft: \"1 solid #E1E1E1\",\n borderRight: \"1 solid #E1E1E1\",\n },\n tableBottomBorder: {\n color: \"#505050\",\n padding: \"11 24 0 24\",\n border: \"1 solid #E1E1E1\",\n borderRadius: \"6\",\n borderTopLeftRadius: \"0\",\n borderTopRightRadius: \"0\",\n borderTop: \"0\",\n },\n tableTopBorder: {\n color: \"#505050\",\n padding: \"0 24 14 24\",\n border: \"1 solid #E1E1E1\",\n borderRadius: \"6\",\n borderBottomLeftRadius: \"0\",\n borderBottomRightRadius: \"0\",\n borderBottom: \"0\",\n },\n minPresText: {\n position: \"absolute\",\n top: \"10\",\n left: \"0\",\n color: \"red\",\n fontSize: \"12\",\n fontFamily: \"Roboto-500\",\n },\n});\nexport default function PDFTable({\n sample_id,\n test_results,\n}) {\n function getNumRowsAndHeight(text, font, maxWidth) {\n const canvas = document.createElement(\"canvas\");\n const context = canvas.getContext(\"2d\");\n context.font = font;\n context.wordWrap = \"break-word\";\n const words = text.split(\" \");\n const lineHeight = parseInt(font.split(\" \")[0], 10);\n\n let line = \"\";\n let numLines = 1;\n for (let i = 0; i < words.length; i++) {\n const testLine = `${line + words[i]} `;\n const testWidth = context.measureText(testLine).width;\n if (testWidth > maxWidth) {\n line = `${words[i]} `;\n numLines++;\n } else {\n line = testLine;\n }\n }\n const height = numLines * lineHeight;\n return { numLines, height };\n }\n\n function getSampleIDandRowTextLines() {\n const sampleIDFont = \"12px Roboto Medium\";\n const tableRowFont = \"10px Roboto\";\n const maxWidthSampleID = 430;\n const maxWidthRow = 95;\n const sampleIDNumLines = getNumRowsAndHeight(sample_id, sampleIDFont, maxWidthSampleID);\n let tableRowNumLines = {\n numLines: 1,\n height: 10,\n };\n if (test_results.length) {\n const firstRowVals = Object.values(test_results[0]);\n const longestRowString = firstRowVals.reduce((acc, val) => {\n if (val.length > acc.length) {\n return val;\n }\n return acc;\n }, \"\");\n tableRowNumLines = getNumRowsAndHeight(longestRowString, tableRowFont, maxWidthRow);\n }\n\n return { sampleIDNumLines, tableRowNumLines };\n }\n /**\n * Calculate minPresenceAhead based on the number of lines of text expected.\n * minPresenceAhead is the space needed for sample id + header row + first table row.\n * If minPresenceAhead exceeds the remaining space on the page, break whole table header onto the next page.\n * This prevents widowed headers (headers that are by themselves at the bottom of a page).\n * @returns {Number} minPresenceAhead in pts\n */\n const calculateMinPresenceAhead = () => {\n let minPresence = 136; // height minus sample_id and table row text (minus 3 to better match real minPresenceAhead)\n const NumOfLines = getSampleIDandRowTextLines();\n // console.log(\"🚀 ~ file: PDFTable.js:111 ~ calculateMinPresenceAhead ~ NumOfLines:\", NumOfLines);\n minPresence += NumOfLines.sampleIDNumLines.height;\n minPresence += NumOfLines.tableRowNumLines.height;\n\n // console.log(\"calculated minPresence: \", minPresence);\n return minPresence;\n };\n\n return (\n <>\n {/* empty view used to make sure header moves to new page with children */}\n \n \n {/* {`minPresenceAhead: ${calculateMinPresenceAhead()}`} */}\n \n {`Sample ID : ${softHyphenate(sample_id)}`}\n \n {test_results.map((spec, index) => (\n \n ))}\n {test_results.length === 0 && (\n \n )}\n \n \n \n );\n}\n","import React from \"react\";\nimport { Text, View, StyleSheet } from \"@react-pdf/renderer\";\nimport { calculateWidths } from \"./pdfUtils\";\n\nexport default function TableHeaderSamples({ uniqueTests }) {\n const styles = StyleSheet.create({\n tableHeader: {\n display: \"flex\",\n flexDirection: \"column\",\n },\n tableHeaderRow: {\n display: \"flex\",\n flexDirection: \"row\",\n color: \"#506375\",\n textAlign: \"center\",\n minHeight: \"32\",\n padding: \"0 15 4 15\",\n borderLeft: \"1 solid #E1E1E1\",\n borderRight: \"1 solid #E1E1E1\",\n },\n rowItem: {\n display: \"flex\",\n flexDirection: \"row\",\n width: \"15%\",\n minHeight: \"32\",\n justifyContent: \"center\",\n alignItems: \"center\",\n backgroundColor: \"#C4D2DF\",\n borderRadius: \"4px\",\n padding: \"2\",\n },\n rowItemSampleID: {\n width: \"25%\",\n },\n gap: {\n marginRight: \"4\",\n },\n });\n\n return (\n \n Sample ID\n {uniqueTests.filter(({ selected }) => selected).map(({ test }, i, arr) => (\n \n { test }\n \n ))}\n \n );\n}\n","import React from \"react\";\nimport { Text, View, StyleSheet } from \"@react-pdf/renderer\";\nimport { softHyphenate, calculateWidths } from \"./pdfUtils\";\n\n// let prev = 0;\nexport default function TableRowSamples(props) {\n const styles = StyleSheet.create({\n row: {\n display: \"flex\",\n flexDirection: \"row\",\n color: \"#505050\",\n textAlign: \"center\",\n padding: \"0 15 0 15\",\n borderLeft: \"1 solid #E1E1E1\",\n borderRight: \"1 solid #E1E1E1\",\n },\n rowItem: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n minHeight: \"40\",\n width: \"15%\",\n padding: \"6\",\n backgroundColor: \"#F2F6FA\",\n borderRadius: \"4px\",\n },\n rowItemSampleID: {\n width: \"25%\",\n },\n gap: {\n marginRight: \"4\",\n },\n rowGap: {\n paddingBottom: \"4\",\n },\n rowText: {\n display: \"flex\",\n flexDirection: \"row\",\n fontFamily: \"Roboto-400\",\n color: \"#505050\",\n fontSize: \"10\",\n },\n rowTextSampleID: {\n textAlign: \"left\",\n },\n });\n\n const { sample, isLast, uniqueTests } = props;\n\n /** Bottom border: 14 (padding) + 1 (border), only apply to row if it is the last in the table */\n const minPresence = isLast ? 15 : undefined;\n\n return (\n \n \n {softHyphenate(sample.sample_id)}\n \n {uniqueTests.filter(({ selected }) => selected).map(({ test }, i, arr) => {\n const matchingTestResult = sample.test_results.find((result) => result.test === test);\n const isLastItem = i === arr.length - 1;\n return (\n \n \n {matchingTestResult ? softHyphenate(matchingTestResult.test_result) : \"-\"}\n \n \n );\n })}\n \n );\n}\n","import React from \"react\";\nimport {\n View, StyleSheet,\n} from \"@react-pdf/renderer\";\nimport TableHeaderSamples from \"./TableHeaderSamples\";\nimport TableRowSamples from \"./TableRowSamples\";\n\nconst styles = StyleSheet.create({\n tableBottomBorder: {\n color: \"#505050\",\n padding: \"11 24 0 24\",\n border: \"1 solid #E1E1E1\",\n borderRadius: \"6\",\n borderTopLeftRadius: \"0\",\n borderTopRightRadius: \"0\",\n borderTop: \"0\",\n },\n tableTopBorder: {\n color: \"#505050\",\n padding: \"0 24 14 24\",\n border: \"1 solid #E1E1E1\",\n borderRadius: \"6\",\n borderBottomLeftRadius: \"0\",\n borderBottomRightRadius: \"0\",\n borderBottom: \"0\",\n },\n});\nexport default function PDFTableSamples({ samples, uniqueTests }) {\n const samplesList = samples.map(({ sample_id, test_results }) => ({ sample_id, test_results }));\n return (\n <>\n \n \n \n {samplesList.map((sample, index) => (\n \n ))}\n {samplesList.length === 0 && (\n \n )}\n \n \n \n );\n}\n","import React from \"react\";\nimport {\n View, StyleSheet, Text,\n} from \"@react-pdf/renderer\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport PDFTable from \"./PDFTable\";\nimport PDFTableSamples from \"./PDFTableSamples\";\nimport { softHyphenate } from \"./pdfUtils\";\n\nexport default function PDFBody(props) {\n const styles = StyleSheet.create({\n body: {\n width: \"100%\",\n fontFamily: \"Roboto-500\",\n gap: \"14\",\n },\n section: {\n display: \"flex\",\n flexDirection: \"row\",\n // gap: 32,\n padding: \"5\",\n borderLeft: \"1 solid #eaf0f5\",\n borderRight: \"1 solid #eaf0f5\",\n borderBottom: \"1 solid #eaf0f5\",\n borderTop: \"1 solid #eaf0f5\",\n width: \"100%\",\n borderRadius: \"8\",\n },\n sectionPart: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n maxWidth: \"50%\",\n flex: \"1 1 50%\",\n gap: \"8\",\n padding: \"10 5 10 10\",\n // overflow: \"hidden\",\n },\n sectionInput: {\n width: \"auto\",\n maxWidth: \"100%\",\n wordWrap: \"break-word\",\n textAlign: \"left\",\n fontFamily: \"Roboto-500\",\n fontSize: \"12\",\n },\n sectionInputFieldName: {\n color: \"#afbdca\",\n },\n sectionInputValue: {\n color: \"#1f2d3b\",\n },\n blue: {\n color: \"#9dd9f2\",\n },\n alignItem: {\n textAlign: \"right\",\n paddingRight: \"29\",\n },\n coaPlaceholder: {\n marginRight: \"auto\",\n marginLeft: \"auto\",\n marginTop: \"30\",\n color: \"#C4D2DF\",\n fontSize: \"12\",\n fontFamily: \"Roboto-400\",\n },\n });\n\n // const renderBlock = (section) => {\n // let count = 1;\n // return section.inputs.map((input, index) => {\n // let styleArray = [];\n // if (input.type === \"largeTextBox\") {\n // count = 1;\n // return (\n // \n // \n // {input.input}\n // \n // \n // );\n // }\n // if (count === 2) {\n // count = 1;\n // styleArray = [styles.itemSmall, styles.gap, styles.alignItem];\n // } else {\n // count++;\n // styleArray = [styles.itemSmall, styles.gap];\n // }\n // return (\n // \n // {input.input}\n // \n // );\n // });\n // };\n\n const renderInputs = (inputs) => inputs.map(({ fieldName, value, flag }) => {\n const key = uuidv4();\n return (\n \n {fieldName ? ({`${softHyphenate(fieldName)} `}) : null}\n {value ? ({softHyphenate(value)}) : null}\n \n );\n });\n\n const { body, isCustomizingCoa, isTemplatePdf } = props;\n const {\n sections, samples, uniqueTests, enableTests,\n } = body;\n\n return (\n \n {sections.map((section) => (\n \n \n {renderInputs(section.inputs.left)}\n \n \n {renderInputs(section.inputs.right)}\n \n \n ))}\n {!isCustomizingCoa && isTemplatePdf\n ? This space will be filled by test reports and data fields when creating the customized report.\n : (\n <>\n {enableTests\n ? \n : samples.map(({ sample_id, test_results, textHeights }, i) => )}\n \n )}\n \n );\n}\n","import React from \"react\";\nimport {\n View, StyleSheet, Text,\n} from \"@react-pdf/renderer\";\nimport PDFImageWithText from \"./PDFImageWithText\";\nimport { softHyphenate } from \"./pdfUtils\";\n\nexport default function PDFSignature(props) {\n const { footer, alignLeft } = props;\n\n const styles = StyleSheet.create({\n footer: {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: alignLeft ? \"left\" : \"center\",\n gap: \"22\",\n padding: \"22 35 0 35\",\n color: \"#506375\",\n fontFamily: \"Roboto-500\",\n fontSize: \"11\",\n },\n gap: {\n marginBottom: 14,\n },\n signImg: {\n width: \"132\",\n height: \"70\",\n objectFit: \"contain\",\n objectPosition: \"left center\",\n },\n wordWrap: {\n display: \"flex\",\n flexDirection: \"row\",\n },\n });\n\n const {\n signedBy, designation, signature_preview_file, statement_inputs,\n } = footer;\n\n return (\n \n {statement_inputs.map(({ value, title }, i) => {\n if (title === \"signature\" && (signature_preview_file || signedBy || designation)) {\n return ();\n }\n return ({softHyphenate(value)});\n })}\n \n );\n}\n","import React from \"react\";\nimport {\n View, StyleSheet, Text,\n} from \"@react-pdf/renderer\";\n\nexport default function PDFFooter() {\n // const { companyName } = props;\n\n const styles = StyleSheet.create({\n pageFooter: {\n position: \"absolute\",\n bottom: \"9\",\n right: \"18\",\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"flex-end\",\n alignItems: \"flex-end\",\n },\n pageFooterText: {\n fontSize: \"11\",\n color: \"#6C7E8E\",\n },\n companyName: {\n textTransform: \"uppercase\",\n },\n });\n\n return (\n \n {/* \n {companyName || \" \"}\n */}\n (\n `Page ${pageNumber}/${totalPages}`\n )}\n />\n \n );\n}\n","import React from \"react\";\nimport {\n Document, Page, View, StyleSheet, Font,\n} from \"@react-pdf/renderer\";\nimport PDFHeader from \"./PDFHeader\";\nimport PDFBody from \"./PDFBody\";\nimport PDFSignature from \"./PDFSignature\";\n// import PDFFooterCenter from \"./Components/PDFFooterCenter\";\n// import PDFHeaderCenter from \"./Components/PDFHeaderCenter\";\nimport RobotoMedium from \"../../../../../assets/fonts/roboto/Roboto-Medium.ttf\";\nimport Roboto from \"../../../../../assets/fonts/roboto/Roboto-Regular.ttf\";\nimport PDFFooter from \"./PDFFooter\";\n\nexport default function PDF(props) {\n Font.register({ family: \"Roboto-400\", src: Roboto });\n Font.register({ family: \"Roboto-500\", src: RobotoMedium });\n const styles = StyleSheet.create({\n page: {\n flexDirection: \"column\",\n backgroundColor: \"#FFFFFF\",\n padding: \"16 16 48 16\",\n color: \"#385387\",\n fontFamily: \"Roboto-500\",\n fontSize: \"11\",\n position: \"relative\",\n },\n section: {\n flexGrow: 1,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n gap: \"24\",\n position: \"relative\",\n },\n });\n\n if (!props) {\n return ;\n }\n\n const {\n inputs,\n alignLeft,\n isCustomizingCoa,\n isTemplatePdf,\n uniqueTests,\n enableTests,\n } = props;\n\n const values = Object.values(inputs).filter((input) => input.length > 0);\n const hasData = values.length > 0;\n if (!props || !inputs || !hasData) {\n return ;\n }\n\n const {\n sections,\n company_logo,\n company_name,\n company_address,\n phone_number,\n fax_number,\n signed_by,\n designation,\n logo_preview_file,\n signature_preview_file,\n statement_inputs,\n } = inputs;\n\n let { samples } = inputs;\n if (!samples) {\n samples = new Array(4).fill({\n test: \"\",\n test_spec: \"\",\n test_result: \"\",\n test_spec_flag: \"\",\n test_method: \"\",\n });\n }\n\n const header = {\n logo: company_logo, name: company_name, address: company_address, phone: phone_number, fax: fax_number, logo_preview_file,\n };\n const body = {\n sections,\n samples,\n uniqueTests,\n enableTests,\n };\n const footer = {\n signedBy: signed_by, designation, signature_preview_file, statement_inputs,\n };\n return (\n \n \n \n \n \n {(signed_by || designation || signature_preview_file || statement_inputs.length > 1) ? (\n \n ) : null}\n \n \n \n \n );\n}\n","var _circle, _path, _path2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAddTestIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 16,\n height: 16,\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 8,\n cy: 8,\n r: 8,\n fill: \"current\"\n })), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 5.33333V10.6667\",\n stroke: \"#F4FBFE\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.33333 8H10.6667\",\n stroke: \"#F4FBFE\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAddTestIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/addTestIcon.6d09ea73.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState, useEffect } from \"react\";\nimport { usePDF } from \"@react-pdf/renderer\";\nimport { pdfjs } from \"react-pdf\";\nimport PdfPreview from \"../../../../../Common/PdfPreview\";\n// import TemplateAlignButton from \"./TemplateAlignButton\";\nimport PDF from \"../../PDF/PDF\";\n// import Canvas from \"../../PDF/Canvas\";\nimport \"./builderPreview.css\";\nimport \"./coaPreview.css\";\n\npdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.js`;\n\nexport default function BuilderPreview({\n inputs,\n handleAlign,\n alignLeft,\n isCustomizingCoa,\n setLoadingPreview,\n uniqueTests,\n enableTests,\n}) {\n // const [alignLeft, setAlignLeft] = useState(true);\n // const [pdf] = usePDF({ document: });\n const [pdf, updatePDF] = usePDF({\n document: PDF({\n inputs, alignLeft, isTemplatePdf: true, isCustomizingCoa, uniqueTests, enableTests,\n }),\n });\n const [pdfUrl, setPdfUrl] = useState(\"\");\n\n // useEffect(() => {\n // console.log(pdf, props);\n // }, [updatePDF]);\n\n useEffect(() => {\n if (pdfUrl) {\n URL.revokeObjectURL(pdfUrl);\n setPdfUrl(\"\");\n }\n updatePDF({\n document: PDF({\n inputs, alignLeft, isTemplatePdf: true, uniqueTests, enableTests,\n }),\n });\n\n return (() => {\n if (pdfUrl) {\n URL.revokeObjectURL(pdfUrl);\n }\n });\n }, [alignLeft]); //eslint-disable-line\n\n useEffect(() => {\n if (pdf.blob) {\n setPdfUrl(URL.createObjectURL(pdf.blob));\n setLoadingPreview(false);\n }\n\n if (pdf.error) {\n setLoadingPreview(false);\n }\n }, [pdf]); //eslint-disable-line\n\n const handleAlignTemplate = () => { // eslint-disable-line\n handleAlign();\n };\n\n const values = Object.values(inputs).filter((input) => input.length > 0);\n\n const hasData = values.length > 1;\n if (!hasData) {\n return (\n
    \n Add your details in edit mode to customize the COA.\n
    \n );\n }\n if (hasData) {\n return (\n
    \n {/*
    */}\n {/* */}\n setLoadingPreview(false)}\n />\n {/*
    */}\n {/* */}\n
    \n );\n }\n return null;\n}\n","import React from \"react\";\nimport { ReactComponent as AddIcon } from \"../../../../../../../assets/images/sample-submission/addTestIcon.svg\";\nimport \"./COABuilderAddSection.css\";\n\nexport default function COABuilderAddSection({ handleAddSection }) {\n return (\n
    \n
    \n
    \n \n Add Section\n
    \n
    \n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\n\nimport { getFileFromS3WithPresigned } from \"../../../../../../../utils/helpers\";\nimport \"./COABuilderImage.css\";\n\nexport default function COABuilderImage({ title, imagePath, handleBuilderFile }) {\n const [imageSrc, setImageSrc] = useState(\"\");\n const loadImage = async () => {\n if (imagePath) {\n const name = imagePath.split(\"/\").pop();\n const fileBlobObj = await getFileFromS3WithPresigned([imagePath], \"private\");\n const blob = fileBlobObj[imagePath];\n const previewURL = URL.createObjectURL(blob);\n setImageSrc(previewURL);\n const file = new File([blob], name);\n handleBuilderFile({ file, name, title });\n }\n };\n useEffect(() => {\n loadImage();\n }, []); // eslint-disable-line\n\n return (\n
    \n \n
    \n );\n}\n","import React from \"react\";\nimport COABuilderImage from \"./COABuilderImage\";\nimport \"./COABuilderImageWithText.css\";\n\nexport default function COABuilderImageWithText({\n titleText,\n subtitleText,\n imageTitle,\n imagePath,\n handleBuilderFile,\n}) {\n return (\n
    \n {imagePath && }\n
    \n {titleText && {titleText}}\n {subtitleText && {subtitleText}}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport \"./COABuilderHeader.css\";\nimport COABuilderImageWithText from \"./COABuilderImageWithText\";\n\nexport default function COABuilderHeader({ selectedTemplate, handleBuilderFile }) {\n const {\n company_name, company_address, phone_number, fax_number, logo_image_url,\n } = selectedTemplate;\n return (\n
    \n
    \n \n
    \n
    \n {phone_number && (\n
    \n PHONE : \n {phone_number}\n
    \n )}\n {fax_number && (\n
    \n FAX : \n {fax_number}\n
    \n )}\n
    \n
    \n );\n}\n","import { createContext } from \"react\";\n\nconst BuilderDragDropContext = createContext();\n\nexport default BuilderDragDropContext;\n","import React, { useContext } from \"react\";\nimport { Droppable } from \"react-beautiful-dnd\";\nimport BuilderDragDropContext from \"./BuilderDragDropContext\";\n\nexport default function TemplateBuilderDroppable({\n className,\n droppableId,\n direction = \"vertical\",\n // disabled = false,\n showPlaceholder = true,\n getDroppableStyle,\n children,\n}) {\n const { disabledDroppablesSet } = useContext(BuilderDragDropContext);\n const disabled = (droppableId.includes(\"dynamic\") && disabledDroppablesSet.has(\"dynamic\")) || disabledDroppablesSet.has(droppableId);\n return (\n \n {(provided, snapshot) => (\n \n {children}\n {showPlaceholder ? provided.placeholder : null}\n
    \n )}\n \n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgInputCheckmark = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 18,\n height: 18,\n viewBox: \"0 0 18 18\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Frame\",\n clipPath: \"url(#clip0_3609_21044)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M0 9C0 6.61305 0.948212 4.32387 2.63604 2.63604C4.32387 0.948212 6.61305 0 9 0C11.3869 0 13.6761 0.948212 15.364 2.63604C17.0518 4.32387 18 6.61305 18 9C18 11.3869 17.0518 13.6761 15.364 15.364C13.6761 17.0518 11.3869 18 9 18C6.61305 18 4.32387 17.0518 2.63604 15.364C0.948212 13.6761 0 11.3869 0 9ZM8.4864 12.852L13.668 6.3744L12.732 5.6256L8.3136 11.1468L5.184 8.5392L4.416 9.4608L8.4864 12.8532V12.852Z\",\n fill: \"#26ABE1\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_3609_21044\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 18,\n height: 18,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgInputCheckmark, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/inputCheckmark.070eec63.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useEffect, useRef, useState } from \"react\";\nimport { ReactComponent as EditIcon } from \"../../../../../../../../assets/images/sample-submission/edit.svg\";\nimport DeleteIcon from \"../../../../../../../../assets/images/product/template/DragClose.png\";\nimport { ReactComponent as Checkmark } from \"../../../../../../../../assets/images/product/template/inputCheckmark.svg\";\nimport \"./COABuilderInput.css\";\nimport \"../../../DragAndDrop/COABuilderDraggable.css\";\n\nexport default function COABuilderInput({\n id,\n placeholder,\n setRef,\n maxLength = 250,\n defaultValue,\n value,\n isTextArea = false,\n label,\n inputClassName = \"\",\n // hasError,\n onChange,\n handleDelete,\n isEditing,\n toggleEdit,\n}) {\n const inputRef = useRef();\n const [isHovered, setIsHovered] = useState();\n\n /**\n * On mount, set ref of input\n */\n useEffect(() => {\n if (setRef) {\n setRef(inputRef.current);\n }\n }, []); // eslint-disable-line\n\n const onChangeInternal = (val) => {\n if (onChange) {\n onChange(val);\n }\n };\n\n const handleToggleEdit = () => {\n if (isEditing) {\n setIsHovered(false);\n }\n toggleEdit();\n };\n\n return (\n setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n {label && (\n \n {label}\n \n )}\n
    \n {isTextArea ? (\n onChangeInternal(e.target.value))}\n />\n ) : (\n onChangeInternal(e.target.value))}\n // onKeyDown={(e) => {\n // if (e.key === \"Enter\" && isEditing) {\n // toggleEdit();\n // }\n // }}\n />\n )}\n {!isEditing && ({inputRef.current?.value})}\n {isEditing && (\n \n )}\n
    \n {!isEditing && (\n <>\n \n {isHovered && (\n \n \n
    \n )}\n \n )}\n
    \n\n );\n}\n","import React, { useEffect, useRef, useState } from \"react\";\nimport { Select } from \"antd\";\nimport { ReactComponent as EditIcon } from \"../../../../../../../../assets/images/sample-submission/edit.svg\";\nimport DeleteIcon from \"../../../../../../../../assets/images/product/template/DragClose.png\";\nimport { ReactComponent as Checkmark } from \"../../../../../../../../assets/images/product/template/inputCheckmark.svg\";\nimport \"./COABuilderSelect.css\";\nimport \"../../../DragAndDrop/COABuilderDraggable.css\";\n\nexport default function COABuilderSelect({\n id,\n placeholder,\n setRef,\n options,\n defaultValue,\n label,\n onChange,\n handleDelete,\n isEditing,\n toggleEdit,\n}) {\n const [value, setValue] = useState(defaultValue ?? \"\");\n const [isHovered, setIsHovered] = useState();\n const inputRef = useRef();\n\n /**\n * On mount, set ref of input\n */\n useEffect(() => {\n if (setRef) {\n setRef(inputRef.current);\n }\n }, []); // eslint-disable-line\n\n const onSelect = (option) => {\n setValue(option);\n if (onChange) {\n onChange(option);\n }\n };\n\n const handleToggleEdit = () => {\n if (isEditing) {\n setIsHovered(false);\n }\n toggleEdit();\n };\n\n return (\n setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n {label && (\n \n {label}\n \n )}\n
    \n {/* Used to keep track of select value, ant design select doesn't except a ref */}\n \n option.value?.toLowerCase().indexOf(inputValue?.toLowerCase()) !== -1}\n options={options}\n onSelect={(val) => onSelect(val)}\n popupClassName=\"COABuilder__Select__Dropdown\"\n />\n {!isEditing && ({inputRef.current?.value})}\n
    \n {isEditing && (\n \n )}\n {!isEditing && (\n <>\n \n \n \n {isHovered && (\n \n \n \n )}\n \n )}\n \n\n );\n}\n","import React, { useState } from \"react\";\nimport { Draggable } from \"react-beautiful-dnd\";\n// import DragClose from \"../../../../../../assets/images/product/template/DragClose.png\";\nimport \"./Draggable.css\";\nimport \"./COABuilderDraggable.css\";\nimport COABuilderInput from \"../Center/CustomCOABuilderCenter/Inputs/COABuilderInput\";\nimport COABuilderSelect from \"../Center/CustomCOABuilderCenter/Inputs/COABuilderSelect\";\n\nexport default function COABuilderDraggable({\n deleteInput = () => { },\n dataFieldOptions = [],\n index,\n input,\n setRef,\n}) {\n const [isEditing, setIsEditing] = useState(false);\n\n const isDataField = input.flag !== \"0\";\n\n const handleDelete = (e) => {\n if (e) {\n e.stopPropagation();\n }\n deleteInput(index);\n };\n\n const toggleEdit = (e) => {\n if (e) {\n e.stopPropagation();\n }\n setIsEditing(!isEditing);\n };\n\n return (\n \n {(provided) => (\n \n {input.flag === \"1\" ? (\n setRef(index, inputElem)}\n options={dataFieldOptions.map((val) => ({ label: val, value: val }))}\n defaultValue={input.defaultValue || undefined}\n label={input.fieldName}\n handleDelete={handleDelete}\n isEditing={isEditing}\n toggleEdit={toggleEdit}\n />\n ) : (\n setRef(index, inputElem)}\n defaultValue={input.defaultValue || undefined}\n label={isDataField ? input.fieldName : undefined}\n handleDelete={handleDelete}\n isEditing={isEditing}\n toggleEdit={toggleEdit}\n isTextArea={input.type === \"largeTextBox\"}\n />\n )}\n \n )}\n \n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgDeleteSectionIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Close=Close, Type=Filled\",\n clipPath: \"url(#clip0_1028_6109)\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"Group\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n id: \"Vector\",\n d: \"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12.3536 10.2323C12.1583 10.4276 11.8417 10.4276 11.6464 10.2323L9.52555 8.11068C9.3303 7.91536 9.01367 7.91533 8.81838 8.11062L8.11062 8.81838C7.91533 9.01367 7.91536 9.3303 8.11068 9.52555L10.2323 11.6464C10.4276 11.8417 10.4276 12.1583 10.2323 12.3536L8.11068 14.4744C7.91536 14.6697 7.91533 14.9863 8.11062 15.1816L8.81838 15.8894C9.01367 16.0847 9.3303 16.0846 9.52555 15.8893L11.6464 13.7677C11.8417 13.5724 12.1583 13.5724 12.3536 13.7677L14.4744 15.8893C14.6697 16.0846 14.9863 16.0847 15.1816 15.8894L15.8894 15.1816C16.0847 14.9863 16.0846 14.6697 15.8893 14.4744L13.7677 12.3536C13.5724 12.1583 13.5724 11.8417 13.7677 11.6464L15.8893 9.52555C16.0846 9.3303 16.0847 9.01367 15.8894 8.81838L15.1816 8.11062C14.9863 7.91533 14.6697 7.91536 14.4744 8.11068L12.3536 10.2323Z\",\n fill: \"#758AB9\"\n })))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_1028_6109\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgDeleteSectionIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/deleteSectionIcon.264d82a3.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\";\nimport TemplateBuilderDroppable from \"../../DragAndDrop/TemplateBuilderDroppable\";\nimport COABuilderDraggable from \"../../DragAndDrop/COABuilderDraggable\";\nimport \"./COABuilderDroppableSection.css\";\n\nexport default function COABuilderDroppableSection({\n inputs,\n deleteInput,\n droppableId,\n sectionPart,\n setRef,\n dataFieldToValuesMap,\n}) {\n const getDroppableStyle = (snapshot) => ({\n background: snapshot.isDraggingOver ? \"#F6F8FA\" : \"unset\",\n });\n\n return (\n \n {inputs.map((input, index) => (\n deleteInput(i, sectionPart)}\n index={index}\n setRef={(i, inputElem) => setRef(sectionPart, i, inputElem)}\n dataFieldOptions={input.flag === \"1\" ? dataFieldToValuesMap[input.jsonField] ?? [] : undefined}\n />\n ))}\n \n );\n}\n","import React, { useState } from \"react\";\nimport COABuilderDroppableSection from \"./COABuilderDroppableSection\";\nimport { ReactComponent as DeleteIcon } from \"../../../../../../../assets/images/product/template/deleteSectionIcon.svg\";\nimport \"./COABuilderSection.css\";\n\nexport default function COABuilderSection(props) {\n const {\n section,\n sectionIndex,\n setSectionInputs,\n handleTemplateDataFieldsChange,\n selectedReports,\n handleSectionDelete,\n } = props;\n const { inputs } = section;\n\n const [showDelete, setShowDelete] = useState(false);\n\n /**\n * Delete input from section\n * @param {Number} index index of input in section part\n * @param {String} sectionPart \"left\" or \"right\"\n */\n const deleteInput = (index, sectionPart) => {\n const inputsObject = { ...inputs };\n let removedDataField = null;\n if (sectionPart === \"left\") {\n removedDataField = inputsObject.left.splice(index, 1)[0];\n } else {\n removedDataField = inputsObject.right.splice(index, 1)[0];\n }\n setSectionInputs(sectionIndex, inputsObject, false, { action: \"delete\", flag: removedDataField.flag, value: removedDataField.value }, false);\n if (removedDataField.flag !== \"0\") {\n handleTemplateDataFieldsChange(\"delete\", removedDataField.flag, removedDataField.fieldName);\n }\n };\n\n /**\n * Update section's inputs object with DOM node of input\n * @param {String} sectionPart \"left\" or \"right\"\n * @param {Number} index index of input in section part\n * @param {HTMLElement} input\n */\n const setRef = (sectionPart, index, input) => {\n const inputsObject = { ...inputs };\n inputsObject[sectionPart][index].ref = input;\n setSectionInputs(sectionIndex, inputsObject);\n };\n\n return (\n setShowDelete(true)}\n onMouseLeave={() => setShowDelete(false)}\n >\n {showDelete && ( handleSectionDelete(e, section)} />)}\n \n \n {inputs.left.length < 1 && inputs.right.length < 1 && (\n
    \n It’s looking empty! \n Drag and drop fields here to add details \n
    \n )}\n \n );\n}\n","import React from \"react\";\nimport COABuilderImageWithText from \"./COABuilderImageWithText\";\nimport \"./COABuilderSignature.css\";\n\nexport default function COABuilderSignature({ selectedTemplate, handleBuilderFile }) {\n const {\n designation, signed_by, signature_image_url, statement_inputs,\n } = selectedTemplate;\n return (\n
    \n {statement_inputs.map(({ title, value }, i) => {\n if (title === \"signature\") {\n return (\n \n );\n }\n return ({value});\n })}\n
    \n );\n}\n","import React from \"react\";\nimport \"./COABuilderTestReportSection.css\";\nimport \"./COABuilderSection.css\";\n\nexport default function COABuilderTestReportSection({ sample }) {\n const { sample_id, test_results } = sample;\n const testResults = test_results.length ? test_results : [{\n test: \"-\", test_method: \"-\", test_spec: \"-\", test_result: \"-\",\n }];\n return (\n
    \n {`Sample ID : ${sample_id}`}\n \n \n \n \n \n \n \n \n {testResults.map(({\n test, test_result, test_spec, test_method,\n }, i) => (\n \n \n \n \n \n \n ))}\n \n
    Test MethodTestSpecificationResult
    {test_method ?? \"\"}{test}{test_spec}{test_result}
    \n
    \n );\n}\n","import React from \"react\";\nimport { calculateWidths } from \"../../../PDF/pdfUtils\";\nimport \"./COABuilderSampleReportSection.css\";\nimport \"./COABuilderSection.css\";\n\nexport default function COABuilderSampleReportSection({ samples, uniqueTests }) {\n const samplesList = samples.map(({ sample_id, test_results }) => ({\n sample_id,\n test_results,\n }));\n\n return (\n
    \n \n \n \n \n {uniqueTests.filter(({ selected }) => selected).map(({ test }, i) => (\n \n ))}\n \n {samplesList.map(({ sample_id, test_results }, i) => (\n \n \n {uniqueTests.filter(({ selected }) => selected).map(({ test }, j) => {\n const matchingTestResult = test_results.find((result) => result.test === test);\n return (\n \n );\n })}\n \n ))}\n \n
    Sample ID{test}
    \n {sample_id}\n \n {matchingTestResult ? matchingTestResult.test_result : \"-\"}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport COABuilderAddSection from \"./COABuilderAddSection\";\nimport \"./COABuilderCenterContent.css\";\nimport COABuilderHeader from \"./COABuilderHeader\";\nimport COABuilderSection from \"./COABuilderSection\";\nimport COABuilderSignature from \"./COABuilderSignature\";\nimport COABuilderTestReportSection from \"./COABuilderTestReportSection\";\nimport COABuilderSampleReportSection from \"./COABuilderSampleReportSection\";\n\nexport default function COABuilderCenterContent({\n sections,\n setSectionInputs,\n handleBuilderFile,\n handleTemplateDataFieldsChange,\n selectedTemplate,\n selectedReports,\n handleCreateSection,\n handleSectionDelete,\n uniqueTests,\n enableTests,\n}) {\n return (\n
    \n
    \n \n Certificate of Analysis\n
    \n
    \n {sections.map((section, sectionIndex) => (\n \n ))}\n \n {enableTests && }\n {!enableTests && selectedReports.samples.map((sample, i) => (\n \n ))}\n
    \n \n
    \n
    \n
    \n );\n}\n","var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgTemplatePreviewIcon = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 20,\n height: 20,\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 20C4.477 20 0 15.523 0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20ZM8.622 6.415C8.56182 6.37485 8.49187 6.35177 8.41961 6.34822C8.34734 6.34467 8.27547 6.36079 8.21165 6.39486C8.14782 6.42893 8.09443 6.47967 8.05716 6.54168C8.01989 6.60369 8.00013 6.67465 8 6.747V13.253C8.00013 13.3253 8.01989 13.3963 8.05716 13.4583C8.09443 13.5203 8.14782 13.5711 8.21165 13.6051C8.27547 13.6392 8.34734 13.6553 8.41961 13.6518C8.49187 13.6482 8.56182 13.6252 8.622 13.585L13.501 10.333C13.5559 10.2965 13.6009 10.247 13.632 10.1889C13.6631 10.1308 13.6794 10.0659 13.6794 10C13.6794 9.93409 13.6631 9.86921 13.632 9.81111C13.6009 9.75302 13.5559 9.70351 13.501 9.667L8.621 6.415H8.622Z\",\n fill: \"#26ABE1\"\n })));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgTemplatePreviewIcon, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/TemplatePreviewIcon.81216ddd.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState } from \"react\";\nimport \"./EditPreviewButton.css\";\nimport { ReactComponent as PreviewIcon } from \"../../../../../../assets/images/product/template/TemplatePreviewIcon.svg\";\nimport { ReactComponent as EditIcon } from \"../../../../../../assets/images/product/template/edit.svg\";\n\nexport default function EditPreviewButton({\n previewTemplate,\n handlePreviewTemplate,\n loadingPreview,\n setLoadingPreview,\n}) {\n const [isHovered, setIsHovered] = useState(false);\n const handlePreviewTemplateClick = () => {\n if (!previewTemplate) {\n setLoadingPreview(true);\n }\n handlePreviewTemplate();\n };\n\n return (\n setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n onClick={loadingPreview ? null : handlePreviewTemplateClick}\n // disabled={loadingPreview}\n >\n {isHovered && (\n {previewTemplate ? \"Edit\" : \"Preview\"}\n )}\n {previewTemplate ? : }\n \n );\n}\n","import React, { useEffect, useRef, useState } from \"react\";\nimport \"./TemplateBuilderInput.css\";\n\nexport default function TemplateBuilderInput({\n id,\n placeholder,\n setRef,\n maxLength,\n readOnly = false,\n disabled = false,\n defaultValue,\n value,\n isTextArea = false,\n label,\n inputClassName = \"\",\n hasError,\n onChange,\n}) {\n const inputRef = useRef();\n const [showLabel, setShowLabel] = useState(label && (value || defaultValue));\n const [focusLabel, setFocusLabel] = useState();\n\n /**\n * On mount, set ref of input\n */\n useEffect(() => {\n if (setRef) {\n setRef(inputRef.current);\n }\n }, []); // eslint-disable-line\n\n const onChangeInternal = (val) => {\n if (label) {\n setShowLabel(val.length > 0);\n }\n if (onChange) {\n onChange(val);\n }\n };\n\n if (isTextArea) {\n return (\n \n );\n }\n\n return (\n
    \n {showLabel && (\n \n {label}\n \n )}\n onChangeInternal(e.target.value))}\n onFocus={() => {\n if (label) {\n setFocusLabel(true);\n }\n }}\n onBlur={() => {\n if (label) {\n setFocusLabel(false);\n }\n }}\n />\n
    \n\n );\n}\n","import React, { useState } from \"react\";\nimport { validatePhoneNumber } from \"../../../../../../../Common/utils/validationUtils\";\nimport TemplateBuilderInput from \"./TemplateBuilderInput\";\n\nexport default function NumberInput({\n id, placeholder, label, setRef, defaultValue,\n}) {\n const [valid, setValid] = useState(true);\n\n // const formatValue = (str) => {\n // const numStr = str.split(\"\").filter((ele) => ele >= \"0\" && ele <= \"9\").join(\"\");\n // return `${numStr.slice(0, 3)}-${numStr.slice(3, 6)}-${numStr.slice(6)}`;\n // };\n\n const onChange = (value) => {\n if (!value.trim() || validatePhoneNumber(value)) {\n setValid(true);\n return;\n }\n setValid(false);\n };\n\n return (\n \n );\n}\n","import React, { useState, useRef, useEffect } from \"react\";\n\nimport { toast } from \"react-toastify\";\n\n// import AddFileIcon from \"../../../../../assets/images/product/plusMidnight.png\";\nimport { getFileFromS3WithPresigned } from \"../../../../../../../utils/helpers\";\n\nimport AddFileIcon from \"../../../../../../../assets/images/product/template/PlusBlue.png\";\nimport Remove from \"../../../../../../../assets/images/product/template/Remove.png\";\nimport RemoveDark from \"../../../../../../../assets/images/product/template/RemoveDark.png\";\n\nimport \"./UploadImage.css\";\n\nexport default function UploadImage({\n handleBuilderFile, title, id, imagePath,\n}) {\n const [image, setImage] = useState(null);\n const [hover, setHover] = useState(null);\n const companyLogoInput = useRef();\n\n /**\n * if imagePath exists, load from aws and handleBuilderFile (needed for edit template)\n */\n useEffect(() => {\n const loadImage = async () => {\n if (imagePath) {\n const name = imagePath.split(\"/\").pop();\n const fileBlobObj = await getFileFromS3WithPresigned([imagePath], \"private\");\n const blob = fileBlobObj[imagePath];\n const previewURL = URL.createObjectURL(blob);\n setImage(previewURL);\n const file = new File([blob], name);\n handleBuilderFile({\n file, name, title, wasEdited: false,\n });\n }\n };\n\n loadImage();\n }, [imagePath]); // eslint-disable-line\n\n const handleUploadedFiles = (e) => {\n const filesUploaded = Array.from(e.target.files);\n const file = filesUploaded[0];\n const supportedExtensions = [\"jpg\", \"jpeg\", \"png\"];\n const extension = file.type.split(\"/\").pop();\n let fileName = file.name;\n if (supportedExtensions.includes(extension)) {\n let dotIndex;\n for (let i = fileName.length - 1; i >= 0; i--) {\n if (fileName[i] === \".\") {\n dotIndex = i;\n break;\n }\n }\n fileName = fileName.substring(0, dotIndex);\n const previewURL = URL.createObjectURL(file);\n setImage(previewURL);\n const fileObj = {\n file, name: fileName, title, wasEdited: true,\n };\n handleBuilderFile(fileObj);\n } else {\n toast.error(`File type not supported: ${extension}`);\n }\n };\n\n const handleAddFile = () => {\n companyLogoInput.current.click();\n companyLogoInput.current.addEventListener(\"change\", handleUploadedFiles);\n };\n\n const removeImage = (e) => {\n e.stopPropagation();\n const fileObj = {\n file: null, name: \"\", title, wasEdited: true,\n };\n setImage(null);\n handleBuilderFile(fileObj);\n };\n\n return (\n
    \n setHover(true)}\n onMouseLeave={() => setHover(false)}\n className={`TemplateBuilder__LogoContainer${image ? \"\" : \"--noImage\"}`}\n onClick={!image ? handleAddFile : null}\n >\n {image && (\n
    \n \n \"remove removeImage(e)} />\n
    \n )}\n {!image\n && (\n <>\n \n \n {title}\n \n )}\n
    \n \n );\n}\n","import React from \"react\";\nimport NumberInput from \"./Inputs/NumberInput\";\nimport UploadImage from \"./UploadImage\";\nimport TemplateBuilderInput from \"./Inputs/TemplateBuilderInput\";\n// import AcrossAllInput from \"./AcrossAllInput\";\nimport \"./DetailsContent.css\";\n\nexport default function DetailsContent({\n handleBuilderFile, sectionIndex, setSectionInputs, inputs,\n}) {\n const {\n logo_image_url, company_name, company_address, phone_number, fax_number,\n } = inputs;\n const setRef = (id, input) => {\n const inputsObject = { ...inputs };\n inputsObject[id].ref = input;\n setSectionInputs(sectionIndex, inputsObject, true, null, false);\n };\n return (\n
    \n
    \n \n
    \n
    \n
    \n Company details\n setRef(\"company_name\", input)}\n />\n setRef(\"company_address\", input)}\n />\n
    \n
    \n Contact details\n setRef(\"phone_number\", input)}\n />\n setRef(\"fax_number\", input)}\n />\n
    \n {/* */}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport DragIndicator from \"../../../../../../assets/images/product/template/DragIndicator.png\";\nimport \"./Draggable.css\";\n\nexport default function DragHandle({ dragHandleProps }) {\n return (\n \n );\n}\n","import React, { useState } from \"react\";\nimport { Draggable } from \"react-beautiful-dnd\";\nimport DragClose from \"../../../../../../assets/images/product/template/DragClose.png\";\nimport \"./Draggable.css\";\nimport \"./SectionInputDraggable.css\";\nimport TemplateBuilderInput from \"../Center/TemplateBuilderCenter/Inputs/TemplateBuilderInput\";\nimport DragHandle from \"./DragHandle\";\n\nexport default function SectionInputDraggable(props) {\n const {\n deleteInput = () => { },\n index,\n input,\n setTextBoxRef,\n } = props;\n\n const [showCloseIcon, setShowCloseIcon] = useState(false);\n\n const isDataField = input.flag !== \"0\";\n\n return (\n \n {(provided) => (\n setShowCloseIcon(true)}\n onBlur={() => setShowCloseIcon(false)}\n onMouseEnter={() => setShowCloseIcon(true)}\n onMouseLeave={() => setShowCloseIcon(false)}\n >\n \n setTextBoxRef(index, inputElem) : undefined}\n isTextArea={input.type === \"largeTextBox\"}\n inputClassName={isDataField ? \"SectionInput__Datafield\" : \"\"}\n id={`TemplateBuilderInput_${input.id}`}\n />\n {showCloseIcon && (\n deleteInput(index)}\n alt=\"close icon\"\n className={`Draggable__CloseIcon${input.type === \"largeTextBox\" ? \"--largeInput\" : \"\"}`}\n />\n )}\n \n )}\n \n );\n}\n","import React from \"react\";\nimport TemplateBuilderDroppable from \"../../DragAndDrop/TemplateBuilderDroppable\";\nimport SectionInputDraggable from \"../../DragAndDrop/SectionInputDraggable\";\n\nexport default function DroppableSection(props) {\n const {\n inputs,\n deleteInput,\n droppableId,\n sectionPart,\n setTextBoxRef,\n } = props;\n\n const getDroppableStyle = (snapshot) => ({\n background: snapshot.isDraggingOver ? \"#dff5fd\" : \"unset\",\n padding: \"10px\",\n borderRadius: \"4px\",\n });\n\n const renderDraggable = (input, index) => {\n let type = input.id.includes(\"TextBox\") ? \"TextBox\" : \"datafield\";\n if (type === \"TextBox\") {\n type = input.id.includes(\"large\") ? \"largeTextBox\" : \"smallTextBox\";\n }\n\n return (\n deleteInput(i, sectionPart)}\n type={type}\n index={index}\n setTextBoxRef={(i, inputElem) => setTextBoxRef(sectionPart, i, inputElem)}\n />\n );\n };\n const list = inputs[sectionPart];\n const classNameSection = sectionPart === \"left\" ? \"sectionContentInputsOne\" : \"sectionContentInputsTwo\";\n return (\n
    \n \n {list.map((input, index) => renderDraggable(input, index))}\n \n
    \n );\n}\n","import React from \"react\";\nimport DroppableSection from \"./DroppableSection\";\n\nexport default function SectionContent(props) {\n const {\n dataFields, sectionIndex, inputs, setSectionInputs, handleTemplateDataFieldsChange,\n } = props;\n\n /**\n * Delete input from section\n * @param {Number} index index of input in section part\n * @param {String} sectionPart \"left\" or \"right\"\n */\n const deleteInput = (index, sectionPart) => {\n const inputsObject = { ...inputs };\n let removedDataField = null;\n removedDataField = inputsObject[sectionPart].splice(index, 1)[0];\n setSectionInputs(sectionIndex, inputsObject, false, { action: \"delete\", flag: removedDataField.flag, value: removedDataField.value }, false);\n if (removedDataField.flag !== \"0\") {\n handleTemplateDataFieldsChange(\"delete\", removedDataField.flag, removedDataField.fieldName);\n }\n };\n\n /**\n * Update section's inputs object with DOM node of input\n * @param {String} sectionPart \"left\" or \"right\"\n * @param {Number} index index of input in section part\n * @param {HTMLElement} input\n */\n const setTextBoxRef = (sectionPart, index, input) => {\n const inputsObject = { ...inputs };\n inputsObject[sectionPart][index].ref = input;\n setSectionInputs(sectionIndex, inputsObject, false, null, false);\n };\n return (\n
    \n
    \n \n \n {inputs.left.length < 1 && inputs.right.length < 1 && (\n
    \n It’s looking empty! \n Drag and drop fields here to add details \n
    \n )}\n
    \n
    \n );\n}\n","import React from \"react\";\nimport { Draggable } from \"react-beautiful-dnd\";\nimport UploadImage from \"../Center/TemplateBuilderCenter/UploadImage\";\nimport \"./StatementSignatureDraggable.css\";\nimport \"./Draggable.css\";\nimport TemplateBuilderInput from \"../Center/TemplateBuilderCenter/Inputs/TemplateBuilderInput\";\nimport DragHandle from \"./DragHandle\";\n\nexport default function StatementSignatureDraggable(props) {\n const {\n index,\n handleBuilderFile,\n inputs,\n sectionIndex,\n setSectionInputs,\n } = props;\n\n const { signature_image_url, signed_by, designation } = inputs[index];\n\n const setRef = (id, input) => {\n const inputsCopy = [...inputs];\n inputsCopy[index][id].ref = input;\n setSectionInputs(sectionIndex, inputs, true, null, false);\n };\n\n return (\n \n {(provided) => (\n \n \n \n
    \n setRef(\"signed_by\", input)}\n />\n setRef(\"designation\", input)}\n />\n
    \n \n )}\n
    \n );\n}\n","import React from \"react\";\nimport TemplateBuilderDroppable from \"../../DragAndDrop/TemplateBuilderDroppable\";\nimport SectionInputDraggable from \"../../DragAndDrop/SectionInputDraggable\";\nimport StatementSignatureDraggable from \"../../DragAndDrop/StatementSignatureDraggable\";\nimport \"./StatementCardContent.css\";\n\nexport default function StatementCardContent(props) {\n const {\n handleBuilderFile,\n inputs,\n sectionIndex,\n setSectionInputs,\n } = props;\n\n const deleteInput = (index) => {\n const inputsObject = [...inputs];\n inputsObject.splice(index, 1);\n setSectionInputs(sectionIndex, inputsObject, true, null, false);\n };\n\n /**\n * Update section's inputs object with DOM node of input\n * @param {Number} index index of input in section\n * @param {HTMLElement} input\n */\n const setTextBoxRef = (index, input) => {\n const inputsObject = [...inputs];\n inputsObject[index].ref = input;\n setSectionInputs(sectionIndex, inputsObject, true, null, false);\n };\n\n const getDroppableStyle = (snapshot) => ({\n background: snapshot.isDraggingOver ? \"#dff5fd\" : \"unset\",\n });\n\n return (\n
    \n \n {inputs.map((input, index) => {\n if (input.isSignature) {\n return (\n \n );\n }\n return (\n \n );\n })}\n \n
    \n );\n}\n","import React from \"react\";\nimport DetailsContent from \"./DetailsContent\";\nimport SectionContent from \"./SectionContent\";\nimport StatementCardContent from \"./StatementCardContent\";\n// import TestReportContent from \"./TestReportContent\";\n// import chevronDown from \"../../../../../../assets/images/product/template/ChevronDownBlue.png\";\n// import chevronUp from \"../../../../../../assets/images/product/template/ChevronUpBlue.png\";\n// import lockIcon from \"../../../../../assets/images/product/lockIconMidnight.png\";\nimport lockIcon from \"../../../../../../../assets/images/product/template/LockIconGrey.png\";\n// import dragIconMidnight from \"../../../../../assets/images/product/dragIndicatorMidnight.png\";\nimport \"./builderSection.css\";\n\nexport default function BuilderSection(props) {\n const {\n handleSectionSelect,\n section,\n sectionIndex,\n dataFields,\n sectionRefs,\n handleBuilderFile,\n handleTemplateDataFieldsChange,\n setSectionInputs,\n } = props;\n\n // const [isExpanded, setIsExpanded] = useState(section.expanded);\n\n // const toggleSection = () => {\n // setIsExpanded(!isExpanded);\n // };\n\n const addRef = (element) => {\n sectionRefs.current[section.title] = element;\n };\n\n // if (section.active && !isExpanded) {\n // setIsExpanded(true);\n // }\n let sectionCardClassName = \"TemplateBuilder__SectionCard\";\n if (section.active) {\n sectionCardClassName += \" inEdit\";\n }\n // if (!isExpanded) {\n // sectionCardClassName += \" cardHeaderCollapsed\";\n // }\n return (\n //
    \n {\n handleSectionSelect(section);\n }}\n >\n \n
    \n \n \n {section.title}\n
    \n
    \n {/* {section.active &&
    } */}\n
    \n {/* */}\n
    \n addRef(element)}\n >\n {section.title === \"My details\"\n && (\n \n )}\n {section.title.startsWith(\"New\")\n && (\n \n )}\n {/* {section.title === \"Test reports\"\n && } */}\n {section.title === \"Statement card\"\n && (\n \n )}\n
    \n \n );\n}\n","import React from \"react\";\nimport \"./COAPlaceholderSection.css\";\n\nexport default function COAPlaceholderSection() {\n return (\n
    \n Certificate of Analysis\n This space will be filled by test reports and data fields when creating the customized report.\n
    \n );\n}\n","import React from \"react\";\nimport BuilderSection from \"./BuilderSection\";\nimport COAPlaceholderSection from \"./COAPlaceholderSection\";\nimport \"../TemplateBuilderCenter.css\";\n\nexport default function TemplateBuilderCenterContent(props) {\n const {\n dataFields,\n handleSectionSelect,\n sections,\n sectionsFixed,\n sectionRefs,\n setSectionInputs,\n handleBuilderFile,\n handleTemplateDataFieldsChange,\n } = props;\n return (\n
    \n \n {sections.map((section, index) => (\n \n ))}\n \n \n \n );\n}\n","import React, { useState } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport BuilderPreview from \"../Preview/BuilderPreview\";\nimport COABuilderCenterContent from \"./CustomCOABuilderCenter/COABuilderCenterContent\";\nimport EditPreviewButton from \"./EditPreviewButton\";\nimport \"./TemplateBuilderCenter.css\";\nimport TemplateBuilderCenterContent from \"./TemplateBuilderCenter/TemplateBuilderCenterContent\";\n\nexport default function TemplateBuilderCenter(props) {\n const {\n previewTemplate,\n handlePreviewTemplate,\n dataFields,\n handleSectionSelect,\n sections,\n sectionsFixed,\n sectionRefs,\n setSectionInputs,\n handleBuilderFile,\n handleTemplateDataFieldsChange,\n inputsPayload,\n isCustomizingCoa,\n selectedTemplate,\n selectedReports,\n handleCreateSection,\n handleSectionDelete,\n uniqueTests,\n enableTests,\n } = props;\n const [loadingPreview, setLoadingPreview] = useState(false);\n return (\n
    \n \n {previewTemplate && (\n \n )}\n
    \n \n {isCustomizingCoa ? (\n \n ) : (\n \n )}\n \n
    \n
    \n\n );\n}\n","import React, { useState } from \"react\";\nimport SearchIconSmall from \"../../../../../assets/images/product/template/SearchGreyLarge.png\";\nimport CloseIcon from \"../../../../../assets/images/product/template/closeGrey.png\";\n\nexport default function TemplateSectionSearch(props) {\n const {\n toggleShowSearch,\n handleSubmitSearch,\n disableClose,\n isCustomizeCoa,\n searchValuePrent,\n } = props;\n\n const [searchValue, setSearchValue] = useState(searchValuePrent);\n const onKeyPress = (e) => {\n if (e.charCode === 13) {\n handleSubmitSearch(searchValue);\n }\n };\n\n const onChange = (e) => {\n setSearchValue(e.target.value);\n if (!e.target.value) {\n handleSubmitSearch(\"\");\n }\n };\n\n return (\n
    \n
    \n \n \"SearchIconSmall\" handleSubmitSearch(searchValue)} className=\"searchIconSmall\" />\n
    \n {!disableClose && (\"templateSearchCloseIcon\")}\n
    \n );\n}\n","import React from \"react\";\nimport CloseIcon from \"../../../../../assets/images/product/template/CloseIconBlue.png\";\n\nexport default function CreateFieldModalHeader(props) {\n const { toggleShowCreateFieldModal } = props;\n return (\n
    \n
    \n
    \n Data fields \n
    \n \n
    \n );\n}\n","import React, { useState } from \"react\";\n\nexport default function DataFieldEditCard(props) {\n const {\n isCommonDataField,\n prevTitleValue,\n prevDetailsValue,\n onSaveClick,\n onDeleteClick,\n onCancelClick,\n } = props;\n const [titleValue, setTitleValue] = useState(prevTitleValue || \"\");\n const [detailsValue, setDetailsValue] = useState(prevDetailsValue || \"\");\n\n const onTitleChange = (e) => {\n setTitleValue(e.target.value);\n };\n\n const onDetailsChange = (e) => {\n setDetailsValue(e.target.value);\n };\n\n return (\n
    \n
    \n
    \n Title* \n
    \n \n\n
    \n Details \n
    \n \n
    \n
    \n {(isCommonDataField && !prevTitleValue)\n ? (\n \n Cancel\n \n )\n : (\n \n Delete\n \n )}\n onSaveClick(isCommonDataField ? titleValue : detailsValue)}\n >\n Save\n \n
    \n
    \n );\n}\n","import React, { useState, useEffect } from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport { toast } from \"react-toastify\";\nimport DataFieldEditCard from \"./DataFieldEditCard\";\nimport \"../styles/createFieldModal.css\";\n\n// import ModalButtons from \"./ModalButtons\";\nimport TemplateSectionSearch from \"../Common/TemplateSectionSearch\";\nimport SearchIcon from \"../../../../../assets/images/product/template/SearchBlueIcon.png\";\nimport BackIcon from \"../../../../../assets/images/product/template/BackArrowLightBlue.png\";\nimport EditIcon from \"../../../../../assets/images/product/template/EditPencilLightBlue.png\";\n\nimport {\n getProducts,\n getDataField,\n manageDataFields,\n} from \"../../../../../actions/productTemplate\";\n\nexport default function CreateFieldModalRight(props) {\n const [isLoading, setIsLoading] = useState(true);\n const [showSearchBar, setShowSearchBar] = useState(false);\n const [productsList, setProductsList] = useState([]);\n const [fieldsTitlesAndDetailsList, setFieldsTitlesAndDetailsList] = useState([]);\n const [productInEdit, setProductInEdit] = useState(null);\n const [fieldTitleInEdit, setFieldTitleInEdit] = useState(\"\");\n const [fieldDetailsInEdit, setFieldDetailsInEdit] = useState(\"\");\n\n const { commonDataFieldInEdit, setProductDataFieldInEdit, dataFieldCategory } = props;\n\n const apiGetProducts = async () => {\n const response = await getProducts();\n setIsLoading(false);\n if (response && response.success) {\n let products = [];\n if (response.result && response.result.length > 0) {\n products = response.result;\n }\n\n setProductsList(products);\n } else {\n toast.error(\"Failed to get products.\");\n }\n };\n\n useEffect(() => {\n apiGetProducts(\"\");\n }, []);\n\n const apiSearchProducts = async (searchValue) => {\n const params = { search: searchValue };\n const response = await getProducts(params);\n if (response && response.success) {\n setProductsList(response.result);\n } else {\n toast.error(\"Failed to search products.\");\n }\n };\n\n const apiGetDataFieldDetails = async (productId) => {\n if (!productId) {\n toast.error(\"Invalid product ID sent.\");\n return null;\n }\n const params = { product_id: productId, category: dataFieldCategory };\n const response = await getDataField(params);\n if (response && response.success) {\n if (response.result) {\n return response.result;\n }\n toast.error(response.message);\n } else {\n toast.error(\"Failed to get data field details.\");\n }\n return false;\n };\n\n const apiEditDataFieldDetails = async (detailsValue) => {\n const params = {\n field_name: fieldTitleInEdit,\n field_details: detailsValue,\n product_id: productInEdit.product_id,\n action: \"edit\",\n method: \"PATCH\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n if (response && response.success) {\n if (response.message.startsWith(\"Success\")) {\n return true;\n }\n toast.error(response.message);\n } else {\n toast.error(\"Failed to edit product.\");\n }\n return false;\n };\n\n const apiDeleteDataField = async () => {\n const params = {\n field_name: fieldTitleInEdit,\n product_id: productInEdit.product_id,\n action: \"delete\",\n method: \"PATCH\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n if (response && response.success) {\n if (response.message === \"Success\") {\n return true;\n }\n toast.error(response.message);\n } else {\n toast.error(\"Failed to delete data field.\");\n }\n return false;\n };\n\n const toggleShowSearchBar = (show) => {\n if (!show && showSearchBar) {\n apiSearchProducts(\"\");\n }\n setShowSearchBar(show);\n };\n\n const handleSubmitSearch = (value) => {\n apiSearchProducts(value);\n };\n\n const handleViewFieldsForProduct = async (product) => {\n if (commonDataFieldInEdit) {\n toast.error(\"Please save the current change first\");\n } else {\n setProductDataFieldInEdit(true);\n const fields = await apiGetDataFieldDetails(product.product_id);\n if (fields) {\n setFieldsTitlesAndDetailsList(fields);\n setProductInEdit(product);\n }\n }\n };\n\n const resetAfterEdit = () => {\n setFieldTitleInEdit(\"\");\n setFieldDetailsInEdit(\"\");\n };\n\n const handleEditFieldDetail = (field) => {\n setFieldTitleInEdit(field.field_name);\n setFieldDetailsInEdit(field.field_details);\n };\n\n const handleGoBack = () => {\n setProductDataFieldInEdit(false);\n setProductInEdit(null);\n resetAfterEdit();\n setFieldsTitlesAndDetailsList([]);\n };\n\n const handleSaveFieldDetails = async (detailsValue) => {\n const success = await apiEditDataFieldDetails(detailsValue);\n if (success) {\n resetAfterEdit();\n const fields = await apiGetDataFieldDetails(productInEdit.product_id);\n if (fields) {\n setFieldsTitlesAndDetailsList(fields);\n }\n }\n };\n\n const handleDeleteField = async () => {\n const success = await apiDeleteDataField();\n if (success) {\n resetAfterEdit();\n const fields = await apiGetDataFieldDetails(productInEdit.product_id);\n if (fields) {\n setFieldsTitlesAndDetailsList(fields);\n }\n }\n };\n\n if (isLoading) {\n return <>;\n }\n\n return (\n
    \n {\n !productInEdit && (\n
    \n
    \n
    \n Products \n {!showSearchBar\n && (\n toggleShowSearchBar(true)}\n className=\"searchIcon\"\n />\n ) }\n
    \n\n View and edit data fields corresponding to the product \n
    \n {showSearchBar && (\n
    \n toggleShowSearchBar(false)}\n />\n
    \n )}\n
    \n \n
    \n {productsList && productsList.map((product, i) => (\n
    handleViewFieldsForProduct(product)} key={i}>\n {product.product_name}\n
    \n ))}\n
    \n \n
    \n
    \n )\n }\n\n {productInEdit\n && (\n
    \n
    \n \"BackIcon\"\n \n {productInEdit.product_name}\n \n
    \n\n \n {fieldTitleInEdit && (\n <>\n \n
    \n \n )}\n
    \n {fieldsTitlesAndDetailsList.map((field, i) => {\n if (field.field_name === fieldTitleInEdit) {\n return null;\n }\n return (\n
    handleEditFieldDetail(field)}>\n
    \n \n {field.field_name}\n \n \"pencilIcon\"\n\n
    \n
    \n
    { field.field_details }
    \n
    \n
    \n );\n })}\n
    \n \n
    \n )}\n
    \n );\n}\n","import React, { useEffect, useState } from \"react\";\nimport { toast } from \"react-toastify\";\nimport Scrollbar from \"react-scrollbars-custom\";\n\nimport DataFieldEditCard from \"./DataFieldEditCard\";\nimport PlusIcon from \"../../../../../assets/images/product/template/PlusBlue.png\";\nimport ProfileIcon from \"../../../../../assets/images/product/template/userProfileLightBlue.png\";\nimport \"../styles/createFieldModal.css\";\n\nimport {\n getDataField,\n manageDataFields,\n} from \"../../../../../actions/productTemplate\";\n\nexport default function CreateFieldModalLeft(props) {\n const [isLoading, setIsLoading] = useState(true);\n const [isAdding, setIsAdding] = useState(false);\n const [fieldTitleInEdit, setFieldTitleInEdit] = useState(\"\");\n const [hasFields, setHasFields] = useState(false);\n const [fieldsTitlesList, setFieldsTitlesList] = useState([]);\n\n const { productDataFieldInEdit, setCommonDataFieldInEdit, dataFieldCategory } = props;\n\n const apiGetDataFields = async () => {\n const response = await getDataField({ category: dataFieldCategory });\n setIsLoading(false);\n if (response && response.success) {\n let fieldsNames = [];\n if (response.result && response.result.length) {\n fieldsNames = response.result;\n }\n\n setFieldsTitlesList(fieldsNames);\n setHasFields(fieldsNames.length > 0);\n } else {\n toast.error(\"Failed to get data fields.\");\n }\n };\n\n useEffect(() => {\n apiGetDataFields();\n }, []); // eslint-disable-line\n\n const resetAfterEdit = () => {\n setFieldTitleInEdit(\"\");\n setIsAdding(false);\n setCommonDataFieldInEdit(false);\n };\n\n const apiAddDataFieldTitle = async (value) => {\n const params = {\n field_name: value,\n action: \"add\",\n method: \"POST\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n if (response && response.success) {\n if (response.message === \"Success\") {\n return true;\n }\n toast.error(response.message);\n } else {\n toast.error(\"Failed to add data field.\");\n }\n return false;\n };\n\n const apiEditDataFieldTitle = async (prevName, newName) => {\n const params = {\n field_name: newName,\n field_name_pre: prevName,\n action: \"edit\",\n method: \"PATCH\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n if (response && response.success) {\n if (response.message === \"Success\") {\n return true;\n }\n toast.error(response.message);\n } else {\n toast.error(\"Failed to edit data field name.\");\n }\n return false;\n };\n\n const apiDeleteDataFieldTitle = async () => {\n const params = {\n field_name: fieldTitleInEdit,\n field_in_use: \"0\",\n action: \"delete\",\n method: \"PATCH\",\n category: dataFieldCategory,\n };\n const response = await manageDataFields(params);\n if (response && response.success) {\n if (response.message === \"Success\") {\n return true;\n }\n toast.error(response.message);\n } else {\n toast.error(\"Failed to delete data field.\");\n }\n return false;\n };\n\n const handleSaveFieldTitle = async (value) => {\n let success = false;\n if (fieldTitleInEdit) {\n if (fieldTitleInEdit !== value) {\n // we're editing existing field\n success = await apiEditDataFieldTitle(fieldTitleInEdit, value);\n } else {\n success = true;\n }\n } else {\n // we're adding new field\n success = await apiAddDataFieldTitle(value);\n }\n if (success) {\n resetAfterEdit();\n apiGetDataFields();\n }\n };\n\n const handleDeleteFieldTitle = async () => {\n const success = await apiDeleteDataFieldTitle();\n if (success) {\n resetAfterEdit();\n apiGetDataFields();\n }\n };\n\n const handleAddNewDataField = () => {\n if (productDataFieldInEdit) {\n toast.error(\"Please save the current change first\");\n } else {\n setIsAdding(true);\n setCommonDataFieldInEdit(true);\n }\n };\n\n const handleEditDataField = (titleName) => {\n if (productDataFieldInEdit) {\n toast.error(\"Please save the current change first\");\n } else {\n setFieldTitleInEdit(titleName);\n setCommonDataFieldInEdit(true);\n }\n };\n\n if (isLoading) {\n return <>;\n }\n\n return (\n
    \n {!isAdding && !fieldTitleInEdit && (\n
    \n\n
    \n
    \n \"ProfileIcon\"\n All data fields \n
    \n Data fields created here will be added to all products automatically \n
    \n\n {!hasFields && (\n
    \n
    \n \"PlusIcon\"\n Add new data field \n
    \n
    \n )}\n {hasFields && (\n \n
    \n
    \n \"PlusIconSmall\"\n Add new data field \n
    \n {fieldsTitlesList && fieldsTitlesList.map((fieldName, i) => (\n handleEditDataField(fieldName)}\n style={{ width: \"fit-content\", paddingLeft: \"10px\", paddingRight: \"10px\" }}\n >\n {fieldName}\n
    \n ))}\n
    \n \n )}\n\n
    \n
    \n )}\n\n {(isAdding || fieldTitleInEdit) && (\n
    \n \n { isAdding ? \"Create new data field\" : \"Edit\" }\n \n \n
    \n )}\n
    \n );\n}\n","import React, { useState } from \"react\";\nimport Modal from \"antd/es/modal/Modal\";\nimport \"../styles/createFieldModal.css\";\nimport CreateFieldModalHeader from \"./CreateFieldModalHeader\";\nimport CreateFieldModalRight from \"./CreateFieldModalRight\";\nimport CreateFieldModalLeft from \"./CreateFieldModalLeft\";\nimport \"./CreateFieldModal.css\";\n\nexport default function CreateFieldModal(props) {\n const { toggleShowCreateFieldModal, dataFieldCategory } = props;\n const [commonDataFieldInEdit, setCommonDataFieldInEdit] = useState(false);\n const [productDataFieldInEdit, setProductDataFieldInEdit] = useState(false);\n return (\n \n
    \n \n
    \n \n \n
    \n
    \n \n );\n}\n","import React, { useState } from \"react\";\nimport { Radio } from \"antd\";\nimport SortIconBlue from \"../../../../../../assets/images/product/template/SortIconBlue.png\";\nimport SortIcon from \"../../../../../../assets/images/product/template/SortIcon.png\";\nimport CloseIcon from \"../../../../../../assets/images/product/template/CloseIconBlue.png\";\n\nexport default function DataFieldSort(props) {\n const {\n activeSort,\n showSorting,\n toggleShowSorting,\n handleApplySort,\n isCustomizeCoa,\n } = props;\n\n const [sortValue, setSortValue] = useState(activeSort);\n const sortByArray = [\n \"by Alphabet\",\n \"by Type\",\n // \"by Most common\",\n ];\n\n const handleChangeSort = (sortSelected) => {\n if (sortSelected === sortValue) {\n setSortValue(\"\");\n } else {\n setSortValue(sortSelected);\n }\n };\n\n const handleCloseSort = () => {\n setSortValue(activeSort);\n toggleShowSorting();\n };\n\n const getSortClassName = () => {\n if (isCustomizeCoa) {\n return \"templateBuilderComponentsDataFieldsHeader marginless\";\n }\n if (activeSort) {\n return \"templateBuilderComponentsDataFieldsHeader compact\";\n }\n return \"templateBuilderComponentsDataFieldsHeader\";\n };\n\n if (showSorting) {\n return (\n
    \n
    \n
    \n \"SortIcon\"\n Sort \n
    \n \"closeIcon\"\n
    \n
    \n handleChangeSort(elem.target.value)} value={sortValue}>\n {sortByArray.map((elem, i) => (\n {elem}\n ))}\n \n
    \n
    \n handleApplySort(sortValue)}\n >\n Apply\n
    \n
    \n
    \n );\n }\n\n return (\n
    \n {activeSort ? \"\" : \"All data fields\"}\n
    \n \"SortIcon\"\n {activeSort ? `( ${activeSort} )` : \"Sort\"}\n
    \n
    \n );\n}\n","import React from \"react\";\n// import userProfileIcon from \"../../../../../../assets/images/product/template/userProfileLightBlue.png\";\n\nexport default function BuilderElement(\n {\n id,\n type,\n value,\n flag,\n // jsonField,\n disable,\n isClone = false,\n provided,\n snapshot,\n },\n) {\n let inputClassName = \"\";\n if (type === \"smallTextBox\" || type === \"largeTextBox\") {\n inputClassName = `templateBuilderTemplateInput ${type}`;\n } else if (flag === \"2\") {\n inputClassName = \"templateBuilderTemplateDataField templateBuilderCustomDataField\";\n } else {\n inputClassName = \"templateBuilderTemplateDataField\";\n }\n\n const getStyle = (isDragging, disableDropAnimation) => {\n const styles = {\n opacity: disable ? \"0.5\" : \"1\",\n cursor: disable ? \"initial\" : \"grab\",\n // maxWidth: isDragging ? \"241.64px\" : \"unset\",\n };\n\n if (!isDragging) {\n styles.transform = \"unset\";\n }\n\n if (disableDropAnimation) {\n styles.transitionDuration = \"0.001s\";\n }\n\n return styles;\n };\n\n if (isClone) {\n return (\n \n {value}\n {/* {flag === \"2\" && \"userProfileIcon\"} */}\n
    \n );\n }\n\n return (\n \n {value}\n {/* {flag === \"2\" && \"userProfileIcon\"} */}\n \n );\n}\n","import React from \"react\";\nimport { Draggable } from \"react-beautiful-dnd\";\nimport BuilderElement from \"../BuilderComponents/BuilderElement\";\n\nexport default function BuilderElementDraggable(props) {\n const {\n id,\n type,\n value,\n flag,\n jsonField,\n disable = false,\n index,\n } = props;\n const draggableId = `${type}${flag ? `_${flag}` : \"\"}${id ? `_${id}` : \"\"}`;\n return (\n \n {(provided, snapshot) => (\n <>\n \n {snapshot.isDragging && (\n \n )}\n \n )}\n \n );\n}\n","import { partition } from \"lodash\";\nimport React from \"react\";\nimport Scrollbar from \"react-scrollbars-custom\";\nimport TemplateBuilderDroppable from \"../DragAndDrop/TemplateBuilderDroppable\";\nimport BuilderElementDraggable from \"../DragAndDrop/BuilderElementDraggable\";\n\nexport default function DataFields(props) {\n // const { dataFields, showSorting, activeSort } = props;\n const {\n dataFields, activeSort, commonDataFieldsInUse, customizedDataFieldsInUse,\n } = props;\n\n const fieldAlreadyInUse = (field) => (field.flag === \"1\" && commonDataFieldsInUse.indexOf(field.value) !== -1)\n || (field.flag === \"2\" && customizedDataFieldsInUse.indexOf(field.value) !== -1);\n if (activeSort !== \"by Type\") {\n return (\n \n \n \n {dataFields && dataFields.map((elem, i) => (\n \n ))}\n \n \n \n );\n }\n const [defaultFields, customFields] = partition(dataFields, ({ flag }) => flag === \"1\");\n return (\n \n
    From reports
    \n \n \n {defaultFields.map((elem, i) => (\n \n ))}\n \n \n
    \n
    Created by you
    \n

    Editable

    \n
    \n \n \n {customFields.map((elem, i) => (\n \n ))}\n \n \n \n );\n}\n","import React, { useState, useEffect } from \"react\";\nimport { toast } from \"react-toastify\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport TemplateSectionSearch from \"../../Common/TemplateSectionSearch\";\nimport CreateFieldModal from \"../../CreateFieldModal/CreateFieldModal\";\nimport DataFieldSort from \"./DataFieldSort\";\nimport DataFields from \"./DataFields\";\n\n// import userProfileIcon from \"../../../../../../assets/images/product/template/userProfileBlue.png\";\n// import SearchIcon from \"../../../../../../assets/images/product/template/SearchBlueIcon.png\";\n\nimport {\n sortAndSearchDataFields,\n} from \"../../../../../../actions/productTemplate\";\n\nexport default function DataFieldsSection(props) {\n const {\n previewTemplate,\n commonDataFieldsInUse,\n customizedDataFieldsInUse,\n setAllCustomizedDataFields,\n setAllDataFields,\n allDataFields,\n } = props;\n const [showCreateFieldModal, setShowCreateFieldModal] = useState(false);\n const [showSorting, setShowSorting] = useState(false);\n const [showSearch, setShowSearch] = useState(false);\n const [activeSort, setActiveSort] = useState(\"by Type\");\n const [searchValue, setSearchValue] = useState(\"\");\n const sortParam = {\n // \"by Most common\": \"Most common\",\n \"by Alphabet\": \"Alphabetical order\",\n \"by Type\": \"Type\",\n };\n\n const assignIds = (fieldsArray) => fieldsArray.map((fieldsObj) => ({ ...fieldsObj, id: uuidv4() }));\n\n const apiSortAndSearchDataFields = async (params) => {\n const response = await sortAndSearchDataFields(params);\n if (response && response.success) {\n const withIds = assignIds(response.result);\n setAllDataFields(withIds);\n setAllCustomizedDataFields(withIds.filter((ele) => ele.flag === \"2\").map((ele) => ele.value));\n } else {\n toast.error(\"Failed to sort data fields.\");\n }\n };\n\n useEffect(() => {\n apiSortAndSearchDataFields({ sort_by: \"Type\", search: \"\", category: \"builder\" });\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const toggleShowCreateFieldModal = () => {\n if (showCreateFieldModal) {\n apiSortAndSearchDataFields({ sort_by: sortParam[activeSort || \"by Type\"], search: \"\", category: \"builder\" });\n } else {\n setShowSearch(false);\n setShowSorting(false);\n setSearchValue(\"\");\n }\n setShowCreateFieldModal(!showCreateFieldModal);\n };\n\n const toggleShowSorting = () => {\n setShowSorting(!showSorting);\n };\n\n const toggleShowSearch = () => {\n if (showSearch && searchValue) {\n setSearchValue(\"\");\n apiSortAndSearchDataFields({ sort_by: sortParam[activeSort || \"by Type\"], search: \"\", category: \"builder\" });\n }\n setShowSearch(!showSearch);\n };\n\n const handleApplySort = (sortValue) => {\n apiSortAndSearchDataFields({ sort_by: sortParam[sortValue || \"by Type\"], search: searchValue, category: \"builder\" });\n toggleShowSorting();\n setActiveSort(sortValue);\n };\n\n const handleSubmitSearch = (value) => {\n setSearchValue(value);\n apiSortAndSearchDataFields({ sort_by: sortParam[activeSort || \"by Type\"], search: value, category: \"builder\" });\n };\n\n return (\n \n
    \n Data Fields \n {/* {!showSearch && \"SearchIcon\" } */}\n
    \n
    \n {/* {showSearch && (\n \n )}\n */}\n\n
    \n {!showSorting && (\n \n )}\n \n
    \n \n\n {/*
    \n \"\"\n Create New Field \n
    */}\n
    \n {showCreateFieldModal && (\n \n )}\n \n );\n}\n","import React from \"react\";\nimport BuilderElementDraggable from \"../DragAndDrop/BuilderElementDraggable\";\nimport TemplateBuilderDroppable from \"../DragAndDrop/TemplateBuilderDroppable\";\n\nexport default function TextBoxSection(props) {\n const { previewTemplate } = props;\n return (\n \n
    \n Text box \n
    \n \n \n \n \n \n\n );\n}\n","import React from \"react\";\nimport DataFieldsSection from \"./DataFieldsSection\";\nimport TextBoxSection from \"./TextBoxSection\";\nimport \"./builderComponents.css\";\n\nexport default function BuilderComponents(props) {\n const {\n previewTemplate,\n commonDataFieldsInUse,\n customizedDataFieldsInUse,\n setAllCustomizedDataFields,\n setAllDataFields,\n allDataFields,\n isCustomizingCoa,\n } = props;\n return (\n
    \n {isCustomizingCoa ? (\n \n ) : (\n \n )}\n
    \n );\n}\n","import React, { useState } from \"react\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport { DragDropContext } from \"react-beautiful-dnd\";\nimport TemplateBuilderCenter from \"../Center/TemplateBuilderCenter\";\nimport BuilderComponents from \"../BuilderComponents/BuilderComponents\";\nimport BuilderDragDropContext from \"./BuilderDragDropContext\";\n\nexport default function BuilderDragDropWrapper({\n previewTemplate,\n handlePreviewTemplate,\n allCustomizedDataFields,\n handleSectionSelect,\n sections,\n sectionsFixed,\n sectionRefs,\n setSectionInputs,\n handleBuilderFile,\n handleTemplateDataFieldsChange,\n commonDataFieldsInUse,\n customizedDataFieldsInUse,\n setAllCustomizedDataFields,\n inputsPayload,\n isCustomizingCoa,\n selectedTemplate,\n selectedReports,\n handleCreateSection,\n handleSectionDelete,\n uniqueTests,\n enableTests,\n}) {\n const [allDataFields, setAllDataFields] = useState([]);\n const ALWAYS_DISABLED_DROPPABLES = [\"builder_datafields\", \"builder_datafields_user\", \"builder_datafields_default\", \"builder_textbox\"];\n const [disabledDroppablesSet, setDisabledDroppablesSet] = useState(new Set(ALWAYS_DISABLED_DROPPABLES));\n\n const getSectionInputs = (sectionIdx) => ({ ...sections[sectionIdx].inputs });\n const getFixedSectionInputs = (sectionIdx) => ([...sectionsFixed[sectionIdx].inputs]);\n /**\n * When a input is dragged into a custom section. UseDrop hook calls this function\n * which adds to the left or right array\n * if section is sectionContentInputsOne, adds the input to the left array\n * else adds the input to the right array\n * @param {Number} sectionIdx index of section in sections/sectionsFixed array\n * @param {Object} sectionPart \"left\" | \"right\" | undefined\n * @param {Number} destIdx index of new item in list\n * @param {Object} item = { id, flag, type, jsonField, fieldName }\n * @param {Boolean} isFixed adding to fixed section (statement card) or not\n */\n const addInputToInputs = (sectionIdx, sectionPart, destIdx, item, isFixed = false) => {\n const inputs = isFixed ? getFixedSectionInputs(sectionIdx) : getSectionInputs(sectionIdx);\n // console.log(\"addInputToInputs\", inputs);\n const inputID = `${item.id}_${uuidv4()}`;\n const newInput = {\n ...item, id: inputID,\n };\n const items = sectionPart ? inputs[sectionPart] : inputs;\n items.splice(destIdx, 0, newInput);\n setSectionInputs(sectionIdx, inputs, isFixed, { action: \"add\", flag: item.flag, value: item.fieldName });\n if (!isFixed) {\n handleTemplateDataFieldsChange(\"add\", item.flag, item.fieldName);\n }\n };\n\n /**\n * Handles sorting internally in a array\n */\n const reorder = (sectionIdx, sectionPart, startIndex, endIndex, isFixed = false) => {\n const resultObject = isFixed ? getFixedSectionInputs(sectionIdx) : getSectionInputs(sectionIdx);\n if (sectionPart) {\n const [removed] = resultObject[sectionPart].splice(startIndex, 1);\n resultObject[sectionPart].splice(endIndex, 0, { ...removed, defaultValue: removed.ref?.value });\n } else {\n const [removed] = resultObject.splice(startIndex, 1);\n resultObject.splice(endIndex, 0, { ...removed, defaultValue: removed.ref?.value });\n }\n setSectionInputs(sectionIdx, resultObject, isFixed);\n };\n\n /**\n * Handles sorting between left and right arrays\n */\n const move = (source, destination) => {\n // console.log(\"move\", source, destination);\n /** Within section move */\n if (source.sectionIdx === destination.sectionIdx) {\n const resultObject = source.isFixed ? getFixedSectionInputs(source.sectionIdx) : getSectionInputs(source.sectionIdx);\n const sourceClone = source.sectionPart ? resultObject[source.sectionPart] : resultObject;\n const destClone = destination.sectionPart ? resultObject[destination.sectionPart] : resultObject;\n const [removed] = sourceClone.splice(source.index, 1);\n destClone.splice(destination.index, 0, { ...removed, defaultValue: removed.ref?.value });\n setSectionInputs(source.sectionIdx, resultObject, source.isFixed);\n /** Between sections */\n } else {\n const sourceSection = source.isFixed ? getFixedSectionInputs(source.sectionIdx) : getSectionInputs(source.sectionIdx);\n const destSection = destination.isFixed ? getFixedSectionInputs(destination.sectionIdx) : getSectionInputs(destination.sectionIdx);\n const sourceClone = source.sectionPart ? sourceSection[source.sectionPart] : sourceSection;\n const destClone = destination.sectionPart ? destSection[destination.sectionPart] : destSection;\n const [removed] = sourceClone.splice(source.index, 1);\n destClone.splice(destination.index, 0, { ...removed, defaultValue: removed.ref?.value });\n setSectionInputs(source.sectionIdx, sourceSection, source.isFixed, { action: \"delete\", flag: removed.flag, value: removed.fieldName }, false);\n setSectionInputs(destination.sectionIdx, destSection, destination.isFixed, { action: \"add\", flag: removed.flag, value: removed.fieldName });\n }\n };\n\n /**\n * Returns object with action and info required to handle action\n * @param {Object} source { droppableId, index }\n * @param {Object} destination { droppableId, index }\n * @param {String} draggableId id of dragged elem\n * @returns {Object} {action, ...action related info }\n */\n const parseActionInfo = (source, destination, draggableId) => {\n const { droppableId: sourceDroppableId, index: sourceIndex } = source;\n const { droppableId: destDroppableId, index: destIndex } = destination;\n // item = { id, value, flag, jsonField }\n const sourceParsed = sourceDroppableId.split(\"_\");\n const destParsed = destDroppableId.split(\"_\");\n const sourceSectionIdx = parseInt(sourceParsed[1]); // will be NaN if builder component, sectionIdx otherwise\n const destSectionIdx = parseInt(destParsed[1]);\n const info = {};\n /** Draggable is from Builder Components (data field or textbox) */\n if (sourceParsed[0] === \"builder\") {\n info.action = \"ADD_INPUT\";\n const destIsFixed = destParsed[0] === \"fixed\";\n info.isFixed = destIsFixed;\n info.sectionIdx = destSectionIdx;\n info.sectionPart = destParsed[2];\n info.destIdx = destIndex;\n info.item = {};\n if (sourceParsed[1] === \"datafields\") {\n const sortedByType = sourceParsed.length === 3;\n const [id, flag, uuid] = draggableId.split(\"_\"); // eslint-disable-line\n info.item = { id, flag, type: \"datafield\" };\n if (flag === \"1\") { // default field\n const { value, json_field } = allDataFields[sourceIndex];\n info.item.fieldName = value;\n info.item.jsonField = json_field;\n if (isCustomizingCoa) { // if there is only one option for this field, make it the defaultValue\n const options = selectedReports.data_fileds;\n if (options && options[json_field] && options[json_field].length === 1) {\n info.item.defaultValue = options[json_field][0];\n }\n }\n } else if (sortedByType) { // custom fields in separate list, sourceIndex is w.r.t allCustomizedDataFields arr\n info.item.fieldName = allCustomizedDataFields[sourceIndex];\n } else { // default and custom fields in same list\n const { value } = allDataFields[sourceIndex];\n info.item.fieldName = value;\n }\n } else { // \"textbox\"\n info.item.flag = \"0\";\n info.item.type = draggableId;\n info.item.id = draggableId;\n }\n /** Draggable is from a section */\n } else {\n /** Reordering within a list */\n if (sourceDroppableId === destDroppableId) { // eslint-disable-line\n info.action = \"REORDER\";\n const isFixed = sourceParsed[0] === \"fixed\";\n info.isFixed = isFixed;\n info.sectionIdx = sourceSectionIdx;\n info.sectionPart = sourceParsed[2]; // left or right\n info.sourceIndex = sourceIndex;\n info.destIndex = destIndex;\n } else { /** Movement between left + right lists */\n info.action = \"MOVE\";\n info.sourceInfo = {\n sectionIdx: sourceSectionIdx, sectionPart: sourceParsed[2], index: sourceIndex, isFixed: sourceParsed[0] === \"fixed\",\n };\n info.destInfo = {\n sectionIdx: destSectionIdx, sectionPart: destParsed[2], index: destIndex, isFixed: destParsed[0] === \"fixed\",\n };\n }\n }\n return info;\n };\n\n /**\n * Before the draggable is measured, add a margin underneath to make sure the dropping animation is smooth.\n * When the drag ends, remove the margin.\n * @param {String} draggableId id of drag elem\n * @param {String} action \"add\", \"remove\"\n */\n const adjustDimsOfDraggable = (draggableId, action) => {\n if (!isCustomizingCoa) { // template builder\n const parsed = draggableId.split(\"_\");\n if ([\"datafield\", \"smallTextBox\", \"largeTextBox\"].includes(parsed[0])\n && (!parsed[1] || [\"1\", \"2\"].includes(parsed[1]))) { // checks if datafield is from Builder Element and not from a section\n const elem = document.getElementById(draggableId);\n const { width, height } = elem.getBoundingClientRect();\n elem.style.margin = action === \"add\" ? \"0 25px 32px 25px\" : \"0\";\n elem.style.width = action === \"add\" ? `${width}px` : \"unset\";\n elem.style.height = action === \"add\" ? `${height}px` : \"unset\";\n }\n } else { // coa builder\n const elem = document.getElementById(draggableId);\n const { width, height } = elem.getBoundingClientRect();\n elem.style.marginBottom = action === \"add\" ? \"8px\" : \"0\";\n elem.style.width = action === \"add\" ? `${width}px` : \"unset\";\n elem.style.height = action === \"add\" ? `${height}px` : \"unset\";\n }\n };\n\n /**\n * Disable certain droppables based on the source droppableId\n * @param {String} sourceDroppableId\n */\n const conditionallyDisableDroppables = (sourceDroppableId) => {\n /** Reset to default, nothing is dragging */\n if (!sourceDroppableId) {\n setDisabledDroppablesSet(new Set([...ALWAYS_DISABLED_DROPPABLES]));\n return;\n }\n /** Conditionally disable droppables */\n const [sectionType, sectionIdx, sectionPart, fixedSectionName] = sourceDroppableId.split(\"_\"); // eslint-disable-line\n let droppablesToDisable = [];\n const fixedDroppables = sectionsFixed.map(({ key }, i) => `fixed_${i}__${key}`);\n if (!(sectionType === \"builder\" && sectionIdx === \"textbox\")) { // all droppables enabled for builder textboxes\n if (sectionType === \"fixed\") { // dragging from fixed section\n droppablesToDisable = [...fixedDroppables.filter((id) => id !== sourceDroppableId)]; // don't allow dropping into other fixed sections\n if (fixedSectionName !== \"test\") {\n droppablesToDisable.push(\"dynamic\"); // for any fixed section except test reports, don't allow dropping into dynamic sections\n }\n } else { // dragging from datafields component or dynamic section\n droppablesToDisable = fixedDroppables.filter((id) => !id.includes(\"test\")); // don't allow dropping into my details, statement card\n }\n setDisabledDroppablesSet(new Set([...ALWAYS_DISABLED_DROPPABLES, ...droppablesToDisable]));\n }\n };\n\n /**\n * Before the draggable is measured, add a margin underneath to make sure the dropping animation is smooth.\n * @param {String} draggableId\n */\n const onBeforeCapture = ({ draggableId }) => {\n adjustDimsOfDraggable(draggableId, \"add\");\n };\n\n /**\n * onDragStart, disable droppables based on source droppable id\n * @param {Object} source { droppableId, draggableId }\n */\n const onDragStart = ({ source }) => {\n conditionallyDisableDroppables(source.droppableId);\n };\n\n /**\n * Handles all drag actions onDragEnd\n * @param {Object} result { source, destination, draggableId }\n */\n const onDragEnd = (result) => {\n const { source, destination, draggableId } = result;\n\n adjustDimsOfDraggable(draggableId, \"remove\");\n /** Reset disabled droppables to default */\n conditionallyDisableDroppables();\n if (!destination) {\n return;\n }\n\n const actionInfo = parseActionInfo(source, destination, draggableId);\n // console.log(\"action\", actionInfo);\n if (!actionInfo) {\n return;\n }\n\n switch (actionInfo.action) {\n case \"ADD_INPUT\": {\n const {\n sectionIdx, sectionPart, destIdx, item, isFixed,\n } = actionInfo;\n addInputToInputs(sectionIdx, sectionPart, destIdx, item, isFixed);\n break;\n }\n case \"REORDER\": {\n const {\n sectionIdx, sectionPart, sourceIndex, destIndex, isFixed,\n } = actionInfo;\n reorder(sectionIdx, sectionPart, sourceIndex, destIndex, isFixed);\n break;\n }\n case \"MOVE\": {\n const { sourceInfo, destInfo } = actionInfo;\n move(sourceInfo, destInfo);\n break;\n }\n default:\n }\n };\n\n return (\n \n \n \n \n \n \n );\n}\n","import React, { useState } from \"react\";\nimport BackArrow from \"../../../../../../assets/images/product/template/BackArrow.png\";\nimport BackArrowWhite from \"../../../../../../assets/images/product/template/BackArrowWhite.png\";\n\nexport default function BuilderBackButton(props) {\n const [hover, setHover] = useState(false);\n const { handleBackButton, isCustomizingCoa } = props;\n return (\n setHover(true)}\n onMouseLeave={() => setHover(false)}\n onClick={handleBackButton}\n className=\"templateBuilderHeaderBackButton\"\n >\n \"back\n \n {isCustomizingCoa ? \"Custom reports\" : \"Templates\" }\n \n \n );\n}\n","import React from \"react\";\nimport \"./builderHeader.css\";\n\nimport BuilderBackButton from \"./BuilderBackButton\";\n\nexport default function BuilderHeader(props) {\n const {\n toggleSaveModal,\n handleBackButton,\n showSaveModal,\n isCustomizingCoa,\n // checkTemplateValidation,\n } = props;\n\n const handleSave = () => {\n // const isValid = checkTemplateValidation();\n // if (isValid) {\n toggleSaveModal();\n // }\n };\n\n return (\n
    \n \n {!showSaveModal ?
    {`Save ${isCustomizingCoa ? \"report\" : \"template\"}`}
    :
    }\n
    \n );\n}\n","import React, { useState, useRef, useEffect } from \"react\";\n\nimport { pdf } from \"@react-pdf/renderer\";\nimport { toast } from \"react-toastify\";\nimport { v4 as uuidv4 } from \"uuid\";\n\nimport BuilderTests from \"./Builder/BuilderTests/BuilderTests\";\nimport BuilderConfirmSave from \"./Builder/ConfirmSave/BuilderConfirmSave\";\nimport BuilderContent from \"./Builder/Contents/BuilderContent\";\nimport BuilderDragDropWrapper from \"./Builder/DragAndDrop/BuilderDragDropWrapper\";\nimport BuilderHeader from \"./Builder/Header/BuilderHeader\";\nimport PDF from \"./PDF/PDF\";\n\nimport { deleteFileFromS3WithPresigned, getFilePath, uploadFileToS3WithPresigned } from \"../../../../utils/helpers\";\n\nimport { addTemplate, editTemplate, manageCoa } from \"../../../../actions/productTemplate\";\n\nimport \"./templatebuilder.css\";\n\nexport default function TemplateBuilder({\n handleNavigation,\n isCustomizingCoa,\n isEditingTemplate,\n selectedTemplate,\n selectedReports,\n productFieldMap,\n}) {\n const [previewTemplate, setPreviewTemplate] = useState(false);\n const [sections, setSections] = useState([]);\n const sectionRefs = useRef({});\n const [inputsPayload, setInputsPayload] = useState(null);\n const [showSaveModal, setShowSaveModal] = useState(false);\n const [saveStatus, setSaveStatus] = useState(null); // null, \"loading\", \"success\"\n const [logo, setLogo] = useState({});\n const [signature, setSignature] = useState({});\n const [alignLeft, setAlignLeft] = useState(true);\n const [commonDataFieldsInUse, setCommonDataFieldsInUse] = useState([]);\n const [customizedDataFieldsInUse, setCustomizedDataFieldsInUse] = useState([]);\n const [allCustomizedDataFields, setAllCustomizedDataFields] = useState([]);\n const [enableTests, setEnableTests] = useState(false);\n // Extract unique test values from the test_results nested within the samples array of selectedReports, ensuring that each test value appears only once in the final array\n // while setting the selected property to false for each unique test value\n const [uniqueTests, setUniqueTests] = useState([...new Set(selectedReports?.samples.flatMap((item) => item.test_results.map((result) => result.test)))].map((test) => ({ test, selected: false })));\n const [sectionsFixed, setSectionsFixed] = useState([\n {\n title: \"My details\",\n key: \"details\",\n active: true,\n edit: false,\n focus: false,\n expanded: true,\n inputs: {\n company_name: {}, company_address: {}, phone_number: {}, fax_number: {},\n },\n },\n // {\n // title: \"Test reports\",\n // key: \"test\",\n // active: false,\n // edit: false,\n // focus: false,\n // expanded: true,\n // ref: useRef(),\n // },\n {\n title: \"Statement card\",\n key: \"statement\",\n active: false,\n edit: false,\n focus: false,\n expanded: true,\n inputs: [{ isSignature: true, signed_by: {}, designation: {} }],\n },\n ]);\n\n /* * Used in Customized COA to toggle the test view */\n const handleTestToggle = (value) => [\n setEnableTests(value),\n ];\n\n /** Format section inputs for builder, return sections array */\n const parseTemplateSections = (_sections) => (\n _sections.map(({ section_name, fields }) => {\n const inputs = { left: [], right: [] };\n const dataFields = { 1: new Set(), 2: new Set() };\n fields.forEach(({\n value, size, position, flag,\n }) => {\n const sectionPart = position[0] === 1 ? \"left\" : \"right\";\n let _fieldName;\n let _jsonField;\n let _value;\n let _type = \"datafield\";\n if (flag === \"0\") {\n _value = value;\n _type = `${size}TextBox`;\n } else if (flag === \"1\") {\n _jsonField = value;\n _fieldName = productFieldMap[value];\n if (isCustomizingCoa) {\n const options = selectedReports.data_fileds;\n if (options && options[_jsonField] && options[_jsonField].length === 1) {\n _value = options[_jsonField][0];\n }\n }\n dataFields[\"1\"].add(_fieldName);\n handleTemplateDataFieldsChange(\"add\", \"1\", _fieldName); // eslint-disable-line\n } else {\n _fieldName = value;\n dataFields[\"2\"].add(_fieldName);\n handleTemplateDataFieldsChange(\"add\", \"2\", _fieldName); // eslint-disable-line\n }\n inputs[sectionPart].push({\n id: `${_type}_${uuidv4()}`,\n defaultValue: _value,\n fieldName: _fieldName,\n jsonField: _jsonField,\n type: _type,\n flag,\n });\n });\n return ({\n title: section_name,\n active: false,\n edit: true,\n focus: false,\n expanded: false,\n dataFields,\n inputs,\n });\n })\n );\n /** On mount if customizing coa, set state */\n useEffect(() => {\n if (isCustomizingCoa && selectedTemplate && selectedReports) {\n setSections(parseTemplateSections(selectedTemplate.sections));\n }\n }, [isCustomizingCoa, selectedTemplate, selectedReports]); // eslint-disable-line\n\n /** On mount if editing template, set state */\n useEffect(() => {\n if (isEditingTemplate && selectedTemplate) {\n setSections(parseTemplateSections(selectedTemplate.sections));\n const {\n logo_image_url, company_name, company_address, phone_number,\n fax_number, signature_image_url, signed_by, designation, statement_inputs,\n } = selectedTemplate;\n const _sectionsFixed = [];\n sectionsFixed.forEach((section) => {\n const _section = { ...section };\n const { inputs } = _section;\n if (section.title === \"My details\") {\n _section.inputs = {\n company_name: { defaultValue: company_name, ref: inputs.company_name.ref },\n company_address: { defaultValue: company_address, ref: inputs.company_address.ref },\n phone_number: { defaultValue: phone_number, ref: inputs.phone_number.ref },\n fax_number: { defaultValue: fax_number, ref: inputs.fax_number.ref },\n logo_image_url,\n };\n } else { // Statement card\n _section.inputs = statement_inputs.map(({ title, value, size }) => {\n if (title === \"signature\") {\n return ({\n isSignature: true,\n signed_by: { defaultValue: signed_by, ref: inputs[0].signed_by.ref },\n designation: { defaultValue: designation, ref: inputs[0].designation.ref },\n signature_image_url,\n });\n }\n const type = `${size}TextBox`;\n return ({\n isSignature: false,\n id: `${type}_${uuidv4()}`,\n defaultValue: value,\n type,\n flag: \"0\",\n });\n });\n }\n _sectionsFixed.push(_section);\n });\n setSectionsFixed(_sectionsFixed);\n }\n }, [isEditingTemplate, selectedTemplate]); // eslint-disable-line\n\n /**\n * This useEffect handles the scroll behavior of the sections.\n * Whatever element is selected, it gets center on the screen.\n */\n useEffect(() => {\n if (!isCustomizingCoa) {\n const sectionsArray = [...sections];\n const fixedArray = [...sectionsFixed];\n let scrolled = false;\n for (let index = 0; index < sectionsArray.length; index++) {\n const section = sectionsArray[index];\n if (section.active) {\n sectionRefs.current[sectionsArray[index].title].scrollIntoView({ behavior: \"smooth\", block: \"center\" });\n scrolled = true;\n break;\n }\n }\n if (!scrolled) {\n for (let index = 0; index < sectionsFixed.length; index++) {\n const section = sectionsFixed[index];\n if (section.active) {\n sectionRefs.current[fixedArray[index].title].scrollIntoView({ behavior: \"smooth\", block: \"center\" });\n break;\n }\n }\n }\n }\n }, [sections, sectionsFixed, isCustomizingCoa]);\n\n /**\n * Update fields in use arrays when inputs added/deleted\n * @param {String} op \"add\" or \"delete\"\n * @param {String} flag \"0\" (textbox) \"1\" (common/default field) or \"2\" (customer/user-created field)\n * @param {String} value field value\n */\n const handleTemplateDataFieldsChange = (op, flag, value) => {\n if (flag !== \"0\") {\n const setFieldsFunc = flag === \"1\" ? setCommonDataFieldsInUse : setCustomizedDataFieldsInUse;\n if (op === \"add\") {\n setFieldsFunc((pre) => [...pre, value]);\n } else if (op === \"delete\") {\n setFieldsFunc((pre) => pre.filter((ele) => ele !== value));\n }\n }\n };\n\n /**\n * Set the inputs for a section\n * @param {Number} sectionIndex index of section in sections array\n * @param {Object} inputs {left: [{ id, value, fieldName, flag, json_field }, ...], right: []}\n * @param {String} dataFieldAction { action: \"add\" | \"delete\", flag: \"1\", \"2\", value }\n */\n const setSectionInputs = (sectionIndex, inputs, isFixed = false, dataFieldChange = null, autoFocus = true) => {\n // console.log(\"setSectionInputs\", \"isFixed\", isFixed, \"sectionIndex\", sectionIndex, \"inputs\", inputs);\n const copy = [...(isFixed ? sectionsFixed : sections)];\n const section = copy[sectionIndex];\n section.inputs = inputs;\n /** Handle add/remove data field from section */\n if (dataFieldChange) {\n const { action, flag, value } = dataFieldChange;\n if (flag !== \"0\" && !isFixed) {\n const fieldsSet = section.dataFields[flag];\n if (action === \"add\") {\n fieldsSet.add(value);\n } else {\n fieldsSet.delete(value);\n }\n }\n }\n /** Focus section if not already focused */\n if (!isCustomizingCoa && !section.active && autoFocus) {\n const prevActiveIdx = sections.findIndex(({ active }) => active);\n const prevActiveIdxFixed = sectionsFixed.findIndex(({ active }) => active);\n\n if (prevActiveIdx > -1) {\n if (isFixed) {\n sections[prevActiveIdx].active = false;\n setSections([...sections]);\n } else {\n copy[prevActiveIdx].active = false;\n }\n }\n if (prevActiveIdxFixed > -1) {\n if (isFixed) {\n copy[prevActiveIdxFixed].active = false;\n } else {\n sectionsFixed[prevActiveIdxFixed].active = false;\n setSectionsFixed([...sectionsFixed]);\n }\n }\n section.active = true;\n }\n if (isFixed) {\n setSectionsFixed(copy);\n } else {\n setSections(copy);\n }\n };\n\n const handleCreateSection = () => {\n const sectionsArray = [...sections];\n const sectionsFixedArray = [...sectionsFixed];\n let title = \"New section\";\n sectionsArray.forEach((section) => {\n section.active = false;\n });\n sectionsFixedArray.forEach((section) => {\n section.active = false;\n });\n\n if (sectionsArray.length > 0) {\n let count = parseInt(sectionsArray[sectionsArray.length - 1].title.split(\" \")[2]);\n if (!count) {\n count = 1;\n } else {\n count += 1;\n }\n title = `New Section ${count}`;\n }\n sectionsArray.push({\n title,\n active: true,\n edit: true,\n focus: false,\n expanded: true,\n dataFields: { 1: new Set(), 2: new Set() },\n inputs: { left: [], right: [] },\n });\n\n setSections(sectionsArray);\n };\n\n const handleSectionClick = (item) => {\n const fixedArray = [...sectionsFixed];\n const itemsArray = [...sections];\n fixedArray.forEach((value, index) => {\n if (value.title === item.title) {\n fixedArray[index].active = true;\n } else {\n fixedArray[index].active = false;\n }\n });\n itemsArray.forEach((value, index) => {\n if (value.title === item.title) {\n itemsArray[index].active = true;\n } else {\n itemsArray[index].active = false;\n }\n });\n setSections(itemsArray);\n setSectionsFixed(fixedArray);\n };\n\n /**\n * Handles the deletion of user created sections\n * @param {e} e\n * @param {item} item\n */\n const handleSectionDelete = (e, item) => {\n e.stopPropagation();\n const itemArray = [...sections];\n const itemArrayFixed = [...sectionsFixed];\n const itemArrayFilter = [];\n\n itemArray.forEach((element, index) => {\n if (element.title === item.title) {\n if (index === 0) {\n itemArrayFixed[0].active = true;\n } else {\n itemArray[index - 1].active = true;\n }\n const sectionDataFields = element.dataFields;\n setCommonDataFieldsInUse((pre) => pre.filter((ele) => !sectionDataFields[\"1\"].has(ele)));\n setCustomizedDataFieldsInUse((pre) => pre.filter((ele) => !sectionDataFields[\"2\"].has(ele)));\n } else {\n itemArrayFilter.push(element);\n }\n });\n setSectionsFixed([...itemArrayFixed]);\n setSections([...itemArrayFilter]);\n };\n\n const handleSectionSelect = (item) => {\n if (!item.active) {\n handleSectionClick(item);\n }\n };\n\n const checkTemplateValidation = () => {\n for (let i = 0; i < customizedDataFieldsInUse.length; i++) {\n const dataField = customizedDataFieldsInUse[i];\n if (allCustomizedDataFields.indexOf(dataField) === -1) {\n toast.error(\"Please remove invalid data field before save the current template.\");\n return false;\n }\n }\n return true;\n };\n\n /**\n * Open/close the save template modal\n * @param {Boolean} closing if closing the modal, make sure to set saveUpdatedPDF to false if it is still true\n */\n const toggleSaveModal = (closing = false) => {\n setShowSaveModal(!showSaveModal);\n if (closing) {\n setSaveStatus(null);\n }\n };\n\n /**\n * Add file to AWS\n * @param {File} file\n * @param {String} type \"logo_image\", \"signature_image\", \"preview_pdf\"\n * @returns {Promise} resolves { blob, type }\n */\n const addAssetToAWS = ({ file, type }) => new Promise((resolve) => {\n const splitByDot = file.name.trim().split(\".\");\n const fileEnding = splitByDot.pop();\n const fileName = splitByDot.join();\n\n const fileInfo = {\n folderPath: \"ProductTemplate/Template/\", fileName: `${fileName}_${Date.now()}.${fileEnding}`, file, type: file.type,\n };\n const key = getFilePath(fileInfo);\n uploadFileToS3WithPresigned([fileInfo], \"private\").then((fileBlob) => {\n if (fileBlob && fileBlob[key]) {\n return resolve({ blob: fileBlob[key].path, type });\n } return resolve({ blob: \"\", type });\n });\n });\n\n /**\n * Uploads files to AWS in parallel\n * @param {Array} files\n * @returns {Promise} resolves array of { blob, type } (each corresponding to a file)\n */\n const addFilesToAWS = (files) => Promise.all(files.map((file) => addAssetToAWS(file)));\n\n /**\n * Deletes files from AWS in parallel\n * @param {Array} filePaths\n * @returns {Promise} resolves boolean array (whether file was successfully deleted or not)\n */\n const deleteFilesFromAWS = (filePaths) => {\n const paths = filePaths.filter((path) => path && path.length > 0);\n if (paths.length > 0) deleteFileFromS3WithPresigned(paths, \"private\");\n };\n\n const handleBackButton = () => {\n handleNavigation(isCustomizingCoa ? \"coacreate\" : \"builder\");\n };\n\n /**\n * Calls the /addtemplate action (api Call)\n * @param {payload} payload\n */\n const addTemplateAPI = async (payload) => {\n const response = await addTemplate(payload);\n if (response.success) {\n if (response.message === \"name should be unique\") {\n setSaveStatus(null);\n return toast.error(response.message);\n }\n setSaveStatus(\"success\");\n } else {\n setSaveStatus(null);\n toast.error(response.message);\n }\n return null;\n };\n\n /**\n * PATCH /producttemplates\n * @param {Object} payload\n * @param {Array} filesToDelete array of file paths to delete if api call successful\n */\n const editTemplateAPI = async (payload, filesToDelete) => {\n const { template_id } = selectedTemplate;\n const response = await editTemplate(template_id, payload);\n if (response.success) {\n if (response.message === \"name should be unique\") {\n setSaveStatus(null);\n return toast.error(response.message);\n }\n setSaveStatus(\"success\");\n deleteFilesFromAWS(filesToDelete);\n } else {\n setSaveStatus(null);\n toast.error(response.message);\n }\n return null;\n };\n\n /**\n * POST /productcoas\n * @param {String} pdfPath\n */\n const addCustomCoaAPI = async (pdfPath, name) => {\n const params = {\n sample_list: selectedReports.samples.map(({ sample_id, sample_type, received_date }) => ({ sample_id, sample_type, received_date })),\n name,\n template_id: selectedTemplate.template_id,\n pdf_path: pdfPath,\n action: \"Add\",\n method: \"POST\",\n };\n const response = await manageCoa(params);\n if (response.success) {\n setSections([]);\n setSaveStatus(\"success\");\n } else {\n setSaveStatus(null);\n toast.error(response.message);\n }\n return null;\n };\n\n /**\n * Gets inputs values from the template builder based on refs.\n * There are two types of sections, fixed and dynamic (user created).\n * For the fixed section there are two types of inputs (input, textarea).\n * For the dynamic section there is only one type of input (textarea).\n * @param {template} template (template title and color from the save modal)\n * @return {payload} payload (Formatted data for the api and pdf)\n */\n const getInputsData = (template) => {\n let payload = {};\n const sectionsArray = [];\n const sectionsList = []; // API Array\n if (isCustomizingCoa) {\n const {\n company_name, company_address, phone_number, fax_number, signed_by, designation, statement_inputs,\n } = selectedTemplate;\n payload = {\n company_name, company_address, phone_number, fax_number, signed_by, designation, statement_inputs,\n };\n } else {\n sectionsFixed.forEach(({ title, inputs }) => {\n if (title.includes(\"Statement\")) {\n const statement_inputs = [];\n inputs.forEach(({\n ref, isSignature, signed_by, designation, type,\n }) => {\n if (isSignature) {\n const signedByVal = signed_by.ref.value.trim();\n const designationVal = designation.ref.value.trim();\n payload.signed_by = signedByVal;\n payload.designation = designationVal;\n statement_inputs.push({ title: \"signature\", value: \"\", size: \"\" });\n } else if (!isSignature && ref.value.trim()) {\n statement_inputs.push({ title: \"\", value: ref.value, size: type === \"smallTextBox\" ? \"small\" : \"large\" });\n }\n });\n payload.statement_inputs = statement_inputs;\n } else { // My Details section\n // const {\n // company_name, company_address, phone_number, fax_number, logo_image_url\n // } = inputs;\n Array.from(Object.entries(inputs)).forEach(([id, { ref }]) => {\n if (ref) {\n payload[id] = ref.value.trim();\n }\n });\n }\n });\n }\n\n sections.forEach((section) => {\n const inputsObject = {};\n const inputLeft = [];\n const inputRight = [];\n const key = section.title;\n const obj = {};\n const objList = { fields: [] }; // API Obj\n [\"left\", \"right\"].forEach((sectionPart) => {\n const sectionPartInputs = section.inputs[sectionPart];\n sectionPartInputs.forEach(({\n id, flag, fieldName, jsonField, ref,\n }) => {\n if (flag !== \"0\" || ref.value.trim()) {\n const sectionPartArr = sectionPart === \"left\" ? inputLeft : inputRight;\n let refVal = ref?.value.trim() ?? \"\";\n if (isCustomizingCoa) {\n refVal = refVal || \"-\";\n }\n sectionPartArr.push({\n type: id, fieldName: flag !== \"0\" ? fieldName : \"\", value: refVal, flag,\n });\n objList.fields.push({\n value: jsonField || (flag === \"2\" ? fieldName : ref.value),\n size: id.split(\"_\")[0] === \"largeTextBox\" ? \"large\" : \"small\",\n position: sectionPart === \"left\" ? [1, 0] : [0, 1], // [1,0] = left, [0,1] = right\n flag, // 0 = Text box, 1 = Data field, 2 = Custom data field\n });\n }\n });\n });\n if (inputLeft.length > 0 || inputRight.length > 0) {\n inputsObject.left = inputLeft;\n inputsObject.right = inputRight;\n obj.title = key;\n obj.inputs = inputsObject;\n sectionsArray.push(obj);\n }\n objList.section_name = key;\n sectionsList.push(objList);\n });\n\n if (isCustomizingCoa) {\n payload.samples = selectedReports.samples;\n }\n\n payload.sections = sectionsArray;\n payload.sections_list = sectionsList;\n payload.logo_preview_file = logo?.file || \"\";\n payload.signature_preview_file = signature?.file || \"\";\n // payload.alignment = alignLeft ? \"Left\" : \"Center\";\n payload.alignment = \"Left\";\n payload = {\n ...payload,\n ...template,\n };\n return payload;\n };\n\n /**\n * Generate the template pdf and upload the pdf, logo, and signature to AWS\n * @param {React.FC} pdfDocument react-pdf/renderer instance\n * @param {Object} payload inputsPayload\n * @returns {Object} { success, filesToDelete }\n */\n const handleGeneratePDFAndUploadFiles = async (pdfDocument, payload) => {\n let pdfBlob;\n try {\n pdfBlob = await pdf(pdfDocument).toBlob();\n } catch (e) {\n toast.error(\"Failed to generate the pdf\");\n setSaveStatus(null);\n return { success: false };\n }\n const pdfFile = new File([pdfBlob], `${payload.name}.pdf`, { type: pdfBlob.type });\n const filesToUpload = [{ file: pdfFile, type: \"preview_pdf\" }];\n const filesToDelete = [];\n if (!isCustomizingCoa) {\n const images = [{ fileObj: logo, type: \"logo_image\" }, { fileObj: signature, type: \"signature_image\" }];\n\n images.forEach(({ fileObj, type }) => {\n const { file, wasEdited } = fileObj;\n if (!isEditingTemplate && file) { // adding template\n filesToUpload.push({ file, type });\n } else if (isEditingTemplate) { // editing template\n if (wasEdited) { // image was replaced or removed\n filesToDelete.push(selectedTemplate[`${type}_url`]);\n if (file) { // replaced, upload new image\n filesToUpload.push({ file, type });\n } else { // removed, set image path to empty\n payload[`${type}_url`] = \"\";\n }\n } else { // image wasn't edited, use existing image path\n payload[`${type}_url`] = selectedTemplate[`${type}_url`];\n }\n }\n });\n }\n const paths = await addFilesToAWS(filesToUpload);\n let success = true;\n paths.forEach(({ blob, type }) => {\n if (blob) {\n payload[`${type}_url`] = blob;\n } else {\n success = false;\n }\n });\n if (!success) {\n setSaveStatus(null);\n toast.error(\"PDF file failed to save to cloud\");\n }\n return { success, filesToDelete };\n };\n\n /**\n * Handle save\n * 1. update the payload with most updated input values\n * 2. generate pdf\n * 3. upload pdf and images to aws\n * 4. if the above is successful, make appropriate api call\n * @param {Object} templateInfo { name, tags }\n */\n const handleSaveTemplate = async (templateInfo = {}) => {\n const payload = getInputsData(templateInfo);\n const { success, filesToDelete } = await handleGeneratePDFAndUploadFiles(PDF({\n inputs: payload, alignLeft, isTemplatePdf: true, isCustomizingCoa, uniqueTests, enableTests,\n }), payload);\n if (success) {\n if (isCustomizingCoa) {\n addCustomCoaAPI(payload.preview_pdf_url, payload.name);\n } else if (isEditingTemplate) {\n editTemplateAPI(payload, filesToDelete);\n } else {\n addTemplateAPI(payload);\n }\n }\n };\n\n /**\n * Update the inputs payload with most updated input values\n */\n const handlePreviewTemplate = () => {\n const payload = getInputsData();\n setInputsPayload(payload);\n setPreviewTemplate(!previewTemplate);\n };\n\n const handleBuilderFile = (file) => {\n if (file.title === \"Add Company Logo\") {\n setLogo(file);\n } else {\n setSignature(file);\n }\n };\n\n const handleAlign = () => { // eslint-disable-line\n setAlignLeft(!alignLeft);\n };\n\n return (\n
    \n \n
    \n {!isCustomizingCoa ? (\n \n ) : (\n \n )}\n \n
    \n {showSaveModal && (\n \n )}\n
    \n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgTemplateOutlined = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_9_561)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M4 22H20C20.2652 22 20.5196 21.8946 20.7071 21.7071C20.8946 21.5196 21 21.2652 21 21V3C21 2.73478 20.8946 2.48043 20.7071 2.29289C20.5196 2.10536 20.2652 2 20 2H4C3.73478 2 3.48043 2.10536 3.29289 2.29289C3.10536 2.48043 3 2.73478 3 3V21C3 21.2652 3.10536 21.5196 3.29289 21.7071C3.48043 21.8946 3.73478 22 4 22ZM5 20V4H19V20H5ZM17 6H13V10H17V6ZM11 7H7V9H11V7Z\",\n fill: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n width: 4,\n height: 4,\n transform: \"matrix(-1 0 0 1 17 6)\",\n fill: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n width: 10,\n height: 2,\n transform: \"matrix(-1 0 0 1 17 12)\",\n fill: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n width: 10,\n height: 2,\n transform: \"matrix(-1 0 0 1 17 16)\",\n fill: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n width: 4,\n height: 2,\n transform: \"matrix(-1 0 0 1 11 7)\",\n fill: \"currentColor\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_9_561\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgTemplateOutlined, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/TemplateOutlined.083f8d01.svg\";\nexport { ForwardRef as ReactComponent };","import React, { useState, useEffect } from \"react\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport { toast } from \"react-toastify\";\nimport { Tabs } from \"antd\";\nimport { mapValues } from \"lodash\";\nimport COA from \"./Components/COA\";\nimport TemplateBuilder from \"./Components/TemplateBuilder\";\nimport Templates from \"./Components/Templates\";\nimport {\n getTemplates, deleteTemplate,\n} from \"../../../actions/productTemplate\";\nimport \"./Components/styles/template.css\";\nimport Header from \"./Components/Common/Header\";\nimport { getProductFields } from \"../../../actions/reports\";\n\nexport default function Template() {\n const [isAddingTemplate, setIsAddingTemplate] = useState(false);\n const [isCreatingCoa, setIsCreatingCoa] = useState(false);\n const [indexOfTemplateSelected, setIndexOfTemplateSelected] = useState(-1);\n const [templateList, setTemplateList] = useState([]);\n const [templateLoading, setTemplateLoading] = useState(false);\n const [activeTabKey, setActiveTabKey] = useState(\"Template\");\n const [randomKey, setRandomKey] = useState(0);\n const [customizeReportData, setCustomizeReportData] = useState({});\n const [templateEditing, setTemplateEditing] = useState(null);\n const [productFieldMap, setProductFieldMap] = useState(null);\n\n /**\n * Fetch the templates list\n */\n const fetchTemplates = async () => {\n const response = await getTemplates();\n if (!response || !response.success) {\n toast.error(\"Could not fetch templates.\");\n setTemplateList([]);\n } else {\n setTemplateList(response.result);\n }\n setTemplateLoading(false);\n };\n\n useEffect(() => {\n const fetchFields = async () => {\n const resp = await getProductFields();\n if (!resp || !resp.success) {\n toast.error(\"Could not fetch common fields.\");\n } else {\n setProductFieldMap(mapValues(resp.fieldsMap, (val) => val.title_field));\n }\n };\n setTemplateLoading(true);\n fetchTemplates();\n fetchFields();\n }, []);\n\n const handleAddTemplateClick = () => {\n setCustomizeReportData({});\n setIsAddingTemplate(true);\n };\n\n /**\n * Make an api call to get the template information and then redirect to the template builder page\n * @param {*} template_id\n */\n const handleEditTemplate = async (template_id) => {\n const response = await getTemplates({ template_id });\n if (response.success) {\n setTemplateEditing(response.result[0]);\n } else {\n toast.error(\"Could not fetch template\");\n }\n setIsAddingTemplate(true);\n };\n\n /**\n * Make an api call to delete a template\n * @param {*} template_id\n */\n const handleDeleteTemplate = async (template_id) => {\n const response = await deleteTemplate(template_id);\n if (response.success) {\n toast.success(\"Successfully deleted template\");\n fetchTemplates();\n } else {\n toast.error(response.message);\n }\n };\n\n const clearTemplateSelect = () => {\n setIndexOfTemplateSelected(-1);\n };\n\n /**\n * Fetch the selected template information\n * @param {*} templateIndex\n */\n const saveTemplateIdForAddingCoa = async (templateIndex) => {\n if (templateIndex === -1 || templateIndex === indexOfTemplateSelected) {\n clearTemplateSelect();\n } else {\n const params = { template_id: templateList[templateIndex].template_id };\n const response = await getTemplates(params);\n if (response && response.success) {\n setIndexOfTemplateSelected(templateIndex);\n } else if (!response || !response.success) {\n toast.error(\"Could not fetch templates.\");\n clearTemplateSelect();\n }\n }\n };\n\n const handleNavigation = (route) => {\n setCustomizeReportData({});\n /** From TemplateBuilder back to Custom Report */\n if (route === \"coacreate\") {\n setIsCreatingCoa(() => {\n clearTemplateSelect();\n setIsAddingTemplate(false);\n return true;\n });\n }\n\n /** After Saving a Custom COA report */\n if (route === \"coabuilder\") {\n setIsCreatingCoa(() => {\n clearTemplateSelect();\n setIsAddingTemplate(false);\n return false;\n });\n }\n\n /** From Edit/New template to the Template tab */\n if (route === \"builder\") {\n setTemplateLoading(true);\n fetchTemplates();\n setIsAddingTemplate(false);\n setTemplateEditing(false);\n }\n };\n\n /**\n * Set the selected samples data from the Custom Report page and redirect to the template builder page\n * @param {*} obj\n */\n const handleCustomizeReportTemplate = (obj) => {\n setCustomizeReportData(obj);\n setIsAddingTemplate(true);\n };\n\n if (isAddingTemplate || !!templateEditing) {\n const { selectedTemplate, selectedReports } = customizeReportData;\n return (\n \n );\n }\n\n const tabItems = [\n {\n key: \"Template\",\n label: ,\n children: ,\n },\n {\n key: \"Report\",\n label: ,\n children: setIsCreatingCoa(val)}\n isCreatingCoa={isCreatingCoa}\n />,\n },\n ];\n\n /**\n * While switching different tabs\n * 1. update the active key\n * 2. update the random key to force the tab content rerender\n * 4. fetch the templates list if switch to the Template tab\n * 5. Reset the isCreatingCoa state\n * @param {*} key\n */\n const handleTabOnChange = async (key) => {\n setActiveTabKey(key);\n setRandomKey(uuidv4());\n if (key === \"Template\") {\n setTemplateLoading(true);\n await fetchTemplates();\n }\n setIsCreatingCoa(false);\n };\n\n return (\n
    \n \n
    \n );\n}\n","var _g, _defs;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport React from \"react\";\nconst SvgAnalyticsOutlined = _ref => {\n let {\n svgRef,\n title,\n ...props\n } = _ref;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_9_456)\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15 4H5V20H19V8H15V4ZM3 2.992C3 2.444 3.447 2 3.999 2H16L21 7V20.993C21.0009 21.1243 20.976 21.2545 20.9266 21.3762C20.8772 21.4979 20.8043 21.6087 20.7121 21.7022C20.6199 21.7957 20.5101 21.8701 20.3892 21.9212C20.2682 21.9723 20.1383 21.9991 20.007 22H3.993C3.73038 21.9982 3.47902 21.8931 3.29322 21.7075C3.10742 21.5219 3.00209 21.2706 3 21.008V2.992Z\",\n fill: \"currentColor\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M14 8.5359C13.2685 8.11354 12.422 7.93362 11.5819 8.02191C10.7418 8.11021 9.95122 8.46219 9.32348 9.02742C8.69573 9.59265 8.26304 10.3421 8.08741 11.1684C7.91178 11.9946 8.00224 12.8553 8.34582 13.6269C8.6894 14.3986 9.26845 15.0417 10 15.4641C10.7315 15.8865 11.578 16.0664 12.4181 15.9781C13.2582 15.8898 14.0488 15.5378 14.6765 14.9726C15.3043 14.4074 15.737 13.6579 15.9126 12.8316L12 12L14 8.5359Z\",\n fill: \"currentColor\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_9_456\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 24,\n height: 24,\n fill: \"white\"\n })))));\n};\nconst ForwardRef = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(SvgAnalyticsOutlined, _extends({\n svgRef: ref\n}, props)));\nexport default __webpack_public_path__ + \"static/media/AnalyticsOutlined.e85da972.svg\";\nexport { ForwardRef as ReactComponent };","import React, { Component } from \"react\";\n\nimport Report from \"./Report/Report\";\nimport Analytics from \"./Analytics/Analytics\";\nimport NavTabs from \"../Common/UIComponents/NavTabs\";\nimport Template from \"./Template/Template\";\nimport { ReactComponent as TemplateIcon } from \"../../assets/images/feature-icons/TemplateOutlined.svg\";\nimport { ReactComponent as ReportIcon } from \"../../assets/images/feature-icons/ReportOutlined.svg\";\nimport { ReactComponent as AnalyticsIcon } from \"../../assets/images/feature-icons/AnalyticsOutlined.svg\";\n\nimport \"./Product.css\";\n\nclass Reports extends Component {\n _isMounted = false;\n\n constructor(props) {\n super(props);\n\n this.state = {\n activeTab: \"1\",\n };\n\n this.handleSelect = this.handleSelect.bind(this);\n }\n\n componentDidMount() {\n const { onChangeReport } = this.props;\n this._isMounted = true;\n if (this._isMounted) {\n const url = window.location.href;\n let activeTab = \"1\";\n let subUrl = \"report\";\n\n if (url.includes(\"/report\")) {\n activeTab = \"1\";\n subUrl = \"report\";\n } else if (url.includes(\"/template\")) {\n activeTab = \"2\";\n subUrl = \"template\";\n } else if (url.includes(\"/analytics\")) {\n activeTab = \"3\";\n subUrl = \"analytics\";\n }\n if (this._isMounted) {\n this.setState({ activeTab });\n }\n onChangeReport(subUrl);\n }\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n }\n\n handleSelect(selectedTab) {\n const { history } = this.props;\n if (this._isMounted) {\n this.setState({ activeTab: selectedTab }, () => {\n if (selectedTab === \"1\") {\n history.push(\"/product/report\");\n } else if (selectedTab === \"2\") {\n history.push(\"/product/template\");\n } else if (selectedTab === \"3\") {\n history.push(\"/product/analytics\");\n }\n });\n }\n }\n\n render() {\n const { history } = this.props;\n const { activeTab } = this.state;\n\n return (\n
    \n {this._isMounted\n ? (\n ,\n children: ,\n },\n {\n key: \"2\",\n label: \"Template\",\n icon: ,\n children: