{"version":3,"sources":["assets/img/theme/team-1-800x800.jpg","assets/img/theme/team-4-800x800.jpg","assets/img/brand/INEFOP_azul.png","assets/img/theme/team-2-800x800.jpg","assets/img/theme/team-3-800x800.jpg","assets/theme/colors.js","assets/theme/hex-to-rgb.js","assets/theme/box-shadow.js","assets/theme/theme.js","utils/actionsConsts.js","utils/converters.js","redux/actions/stockAction.js","crud/stock.crud.js","redux/actions/notificationsAction.js","crud/notifications.crud.js","components/Backdrops/GenericBackdrop.js","assets/theme/components/dropdowns/notifications-dropdown.js","assets/theme/views/admin/generic.js","components/Dropdowns/NotificationsDropdown.js","assets/theme/components/dropdowns/user-dropdown.js","redux/actions/auth/logoutAction.js","crud/auth.crud.js","components/Dropdowns/UserDropdown.js","assets/theme/components/dropdowns/navbar-menu-dropdown.js","utils/permission.js","resources/resources.js","utils/consts.js","components/Dropdowns/NavbarMenuDropdown.js","assets/theme/components/navbars/admin-navbar.js","components/Buttons/GenericButton.js","redux/actions/datasetsAction.js","crud/datasets.crud.js","components/FormFields/FormSelect.js","utils/formSelect.js","views/admin/ProfessionalKits/Modals/RegisterStockInWarehouse/GeneralData.js","mappers/registerStockInWarehouseMap.js","views/admin/ProfessionalKits/Modals/RegisterStockInWarehouse/RegisterStockInWarehouse.js","views/admin/ProfessionalKits/Modals/RegisterLossBreak/GeneralData.js","mappers/registerLossBreakInWarehouse.js","views/admin/ProfessionalKits/Modals/RegisterLossBreak/RegisterLossBreak.js","components/Dialogs/CustomDialogTitle.js","components/Dialogs/GenericDialogV2.js","redux/actions/dialogsAction.js","assets/theme/components/dialogs/generic-dialog.js","components/Dialogs/GenericDialog.js","components/FormFields/DropzoneField.js","views/admin/ProfessionalKits/DeliverKit/GeneralData.js","mappers/kitDeliveryMap.js","views/admin/ProfessionalKits/DeliverKit/DeliverKit.js","crud/users.crud.js","utils/formSelectMultiple.js","redux/actions/usersAction.js","assets/theme/components/search-bar.js","components/SearchBar/SearchBar.js","components/Navbars/Sections/SearchbarNavbar.js","components/Navbars/AdminNavbar.js","assets/theme/components/dropdowns/apps-dropdown-alternative.js","components/Dropdowns/AppsDropdownAlternative.js","assets/theme/components/dropdowns/notifications-dropdown-alternative.js","components/Dropdowns/NotificationsDropdownAlternative.js","assets/theme/components/dropdowns/user-dropdown-alternative.js","components/Dropdowns/UserDropdownAlternative.js","assets/theme/components/navbars/admin-navbar-alternative.js","components/Navbars/AdminNavbarAlternative.js","redux/actions/dashboardAction.js","crud/dashboard.crud.js","assets/theme/components/cards/dashboard/card-dashboard-generic.js","components/Cards/Dashboard/CardOnGoingApplications.js","components/Cards/Dashboard/CardNewCompanies.js","components/Cards/Tables/TableStateChip.js","components/Cards/Dashboard/CardStock.js","components/Cards/Dashboard/CardNotifications.js","components/Cards/Dashboard/CardPendingOpportunities.js","components/Cards/Dashboard/CardUnapprovedFeedbackReports.js","assets/theme/views/admin/dashboard.js","assets/theme/components/cards/card-deck.js","views/admin/Homepage/NewsModal.js","redux/actions/applicationConfigurationAction.js","crud/applicationconfiguration.crud.js","views/admin/Homepage/Dashboard.js","components/Backdrops/TableBackdrop/TableBackdrop.js","utils/array_utils.js","assets/theme/components/cards/dashboard/card-notifications-dashboard.js","components/Cards/Dashboard/CardNotificationsDashboard.js","mappers/notificationsMap.js","views/admin/Components/FilterSection.js","views/admin/Components/Notifications.js","assets/theme/components/headers/simple-header.js","components/Headers/SimpleHeader.js","assets/theme/views/admin/elements.js","assets/theme/components/forms.js","views/admin/Forms/Elements.js","components/TagsInput/TagsInput.js","assets/theme/views/admin/components.js","assets/theme/components/button.js","assets/theme/components/switch.js","views/admin/Forms/Components.js","assets/theme/views/admin/validation.js","views/admin/Forms/Validation.js","redux/actions/auth/loginAction.js","redux/actions/auth/recoverPasswordAction.js","redux/actions/auth/resetResetPasswordStateAction.js","redux/actions/auth/resetSessionExpiredAction.js","assets/theme/views/auth/login.js","hooks/useWindowSize.js","views/auth/DialogsContent/InfoContent.js","views/auth/DialogsContent/RecoverDialogContent.js","views/auth/Login.js","redux/actions/auth/resetPasswordAction.js","mappers/changePasswordMap.js","hooks/usePasswordValidation.js","views/auth/ResetPassword.js","redux/actions/applicationsAction.js","crud/applications.crud.js","redux/actions/reportsAction.js","crud/reports.crud.js","mappers/applicationsDetailsMap.js","views/admin/Applications/Sections/FilterSection.js","views/admin/Applications/Sections/ResultSection.js","views/admin/Applications/Applications.js","assets/theme/views/admin/application-details.js","components/FormFields/GenericFormSelect.js","views/admin/Applications/Tabs/NotificationsTab.js","views/admin/Applications/Tabs/HistoryTab.js","redux/actions/schedulingAction.js","crud/scheduling.crud.js","views/admin/Applications/Tabs/SchedulingTab.js","components/Fields/DisplayField.js","views/admin/Applications/Sections/UserSingularGeneralDataSection.js","views/admin/Applications/Sections/UserColectiveGeneralDataSection.js","views/admin/Applications/Sections/ProgramSubprogramDataSection.js","components/ComplementaryDataFields/Text.js","components/ComplementaryDataFields/Dropdown.js","views/admin/Applications/Sections/ComplementaryDataSection.js","components/FormFields/SubmitedDocumentsSection.js","views/admin/Applications/Sections/DocumentsSection.js","assets/theme/views/admin/generic-page-detail.js","views/admin/Applications/Dialogs/RejectDialog.js","views/admin/Applications/Tabs/GeneralDataTab.js","assets/theme/components/headers/page-title-header.js","components/Headers/PageTitleHeader.js","assets/theme/components/headers/location-header.js","components/Headers/LocationHeader.js","views/admin/Applications/Stepper/ApplicationStepper.js","hooks/useScrollDirection.js","components/Tabs/Tabs.js","views/admin/Applications/ApplicationDetail.js","redux/actions/subprogramsAction.js","crud/subprograms.crud.js","mappers/subprogramsMap.js","views/admin/Subprogram/Sections/FilterSection.js","views/admin/Subprogram/Sections/ResultSection.js","views/admin/Subprogram/Subprograms.js","components/FormFields/FormMultipleSelect.js","views/admin/Subprogram/Sections/ProfessionalKitFields.js","views/admin/Subprogram/Sections/MicrocreditFields.js","views/admin/Subprogram/Sections/BenefitsSection.js","utils/datasets.js","views/admin/Subprogram/Sections/ConditionSection.js","views/admin/Subprogram/Sections/ComplementaryDataItem.js","views/admin/Subprogram/Components/ComplementaryDataCard.js","views/admin/Subprogram/Sections/ComplementaryDataItemReadOnly.js","views/admin/Subprogram/Sections/ComplementaryDataSection.js","views/admin/Subprogram/Sections/DocumentsSection.js","views/admin/Subprogram/Sections/GeneralDataSection.js","views/admin/Subprogram/Create.js","views/admin/Subprogram/Tabs/DetailDataTab.js","views/admin/Subprogram/Tabs/AssignedKitsTab.js","views/admin/Subprogram/SubprogramDetails.js","views/admin/ProfessionalKits/CharacterizeKit/GeneralDataSection.js","mappers/characterizeProfessionalKitMap.js","views/admin/ProfessionalKits/CharacterizeKit/CharacterizeKit.js","mappers/updateProfessionalKitMap.js","views/admin/ProfessionalKits/CharacterizeKit/KitDetails.js","views/admin/ProfessionalKits/KitsManagement/CardSearchResult.js","mappers/searchProfessionalKitsMap.js","views/admin/ProfessionalKits/KitsManagement/Filter.js","views/admin/ProfessionalKits/KitsManagement/ProfessionalKits.js","mappers/searchStocksMap.js","views/admin/ProfessionalKits/Stocks/Filter.js","views/admin/ProfessionalKits/Stocks/CardSearchResult.js","views/admin/ProfessionalKits/Stocks/Stocks.js","views/admin/ProfessionalKits/Stocks/Details/StockLogTable.js","views/admin/ProfessionalKits/Stocks/Details/StockDetails.js","mappers/userBOFilterMap.js","views/admin/UserManagement/BackOffice/Sections/FilterSectionBo.js","views/admin/UserManagement/BackOffice/Sections/ResultSectionBo.js","views/admin/UserManagement/BackOffice/UsersBackOffice.js","components/FormFields/FormDatePicker.js","mappers/userFilterMap.js","views/admin/UserManagement/FrontOffice/Sections/FilterSectionFo.js","views/admin/UserManagement/FrontOffice/Sections/ResultSectionFo.js","views/admin/UserManagement/FrontOffice/UsersFrontOffice.js","views/admin/UserManagement/BackOffice/Sections/BackOfficeUserData.js","mappers/backOfficeUserRegisterMap.js","redux/actions/registerBoUserAction.js","crud/registerbouser.crud.js","views/admin/UserManagement/BackOffice/BackOfficeUserCreation.js","components/FormFields/FormMonetaryInput.js","components/FormFields/FormInput.js","views/admin/UserManagement/FrontOffice/IndividualUser/Sections/IndividualUserPersonalData.js","views/admin/UserManagement/FrontOffice/IndividualUser/Sections/IndividualUserCompanyData.js","views/admin/UserManagement/FrontOffice/IndividualUser/Sections/IndividualUserData.js","views/admin/UserManagement/Components/PasswordCard.js","mappers/frontOfficeIndividualUserRegisterMap.js","views/admin/UserManagement/FrontOffice/IndividualUser/CreateIndividualUser.js","views/admin/UserManagement/FrontOffice/EnterpriseUser/Sections/EnterpriseUserData.js","mappers/frontOfficeEnterpriseUserRegisterMap.js","views/admin/UserManagement/FrontOffice/EnterpriseUser/CreateEnterpriseUser.js","mappers/frontOfficeIndividualUserUpdateMap.js","components/Cards/Tables/CardTableContainer.js","utils/date_utils.js","views/admin/UserManagement/FrontOffice/IndividualUser/Modals/AddEmploymentHistoryModal.js","views/admin/UserManagement/FrontOffice/IndividualUser/Sections/EmploymentHistorySection.js","views/admin/UserManagement/FrontOffice/IndividualUser/Modals/AddUnemploymentHistoryModal.js","views/admin/UserManagement/FrontOffice/IndividualUser/Sections/UnemploymentHistorySection.js","views/admin/UserManagement/FrontOffice/IndividualUser/EmploymentAndUnemploymentHistory.js","views/admin/UserManagement/FrontOffice/IndividualUser/Modals/AddInterventionOtherAreaModal.js","views/admin/UserManagement/FrontOffice/IndividualUser/Sections/InterventionOtherAreaSection.js","views/admin/UserManagement/FrontOffice/IndividualUser/EditIndividualUser.js","mappers/frontOfficeEnterpriseUserUpdateMap.js","views/admin/UserManagement/FrontOffice/EnterpriseUser/EditEnterpriseUser.js","mappers/backOfficeUserUpdateMap.js","views/admin/UserManagement/BackOffice/EditBackOfficeUser.js","redux/actions/auth/changePasswordAction.js","views/admin/UserArea/PasswordForm.js","views/admin/UserArea/PersonalForm.js","assets/theme/views/admin/user-profile.js","views/admin/UserArea/UserPicture.js","mappers/updateProfileMap.js","views/admin/UserArea/UserProfile.js","redux/actions/loansAction.js","crud/loans.crud.js","mappers/loansMap.js","views/admin/Loans/Sections/FilterSection.js","views/admin/Loans/Sections/ResultSection.js","views/admin/Loans/Loans.js","views/admin/Loans/Sections/ApproveSection.js","views/admin/Loans/Dialogs/ApproveDialog.js","views/admin/Loans/Sections/RejectSection.js","views/admin/Loans/Dialogs/RejectDialog.js","views/admin/Loans/Sections/UpdateSection.js","views/admin/Loans/Dialogs/UpdateDialog.js","views/admin/Loans/LoanDetails.js","redux/actions/informationDisseminationAction.js","crud/informationdissemination.crud.js","mappers/informationDisseminationMap.js","views/admin/InformationDissemination/Sections/FilterSection.js","assets/theme/views/admin/generic-card.js","views/admin/InformationDissemination/Card/InformationDisseminationCard.js","components/Backdrops/CardsListBackdrop.js","views/admin/InformationDissemination/Sections/ResultSection.js","views/admin/InformationDissemination/InformationDissemination.js","assets/theme/components/formFields/embeddedVideosField.js","components/FormFields/EmbeddedVideosField.js","views/admin/InformationDissemination/Sections/CreateEditSection.js","views/admin/InformationDissemination/Create.js","views/admin/InformationDissemination/Edit.js","assets/theme/components/genericPage/carouselMediaPreviewSection.js","components/GenericPage/CarouselMediaPreviewSection.js","views/admin/InformationDissemination/Sections/DetailsSection.js","views/admin/InformationDissemination/Details.js","redux/actions/opportunitiesAction.js","crud/opportunities.crud.js","mappers/opportunityMap.js","utils/getKeyValueFromToken.js","hooks/useTokenHelper.js","views/admin/Opportunities/Opportunities/Sections/OpportunitiesFilterSection.js","utils/string.js","views/admin/Opportunities/Opportunities/Sections/OpportunitiesResultSection.js","views/admin/Opportunities/Opportunities/OpportunitiesList.js","views/admin/Opportunities/OpportunityApplications/Sections/OpportunityApplicationsFilterSection.js","views/admin/Opportunities/OpportunityApplications/Sections/OpportunityApplicationsResultSection.js","views/admin/Opportunities/OpportunityApplications/OpportunityApplicationsList.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Sections/OpportunityApplicationsFollowUpFilterSection.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Sections/OpportunityApplicationsFollowUpResultSection.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/OpportunityApplicationsFollowUpList.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Sections/FollowUpDetails.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Tabs/FollowUpDetailsTab.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Sections/FollowUpHistory.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Tabs/FollowUpHistoryTab.js","components/FeedbackReportDataFields/Text.js","components/FeedbackReportDataFields/Rating.js","components/Dialogs/ApproveDialog.js","components/Dialogs/RejectDialog.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Modals/FeedbackReportModal.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Dialogs/UpdatePaymentFeedbackReportDialog.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Modals/UpdatePaymentFeedbackReportModal.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Sections/FollowUpFeedbackReports.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Tabs/FollowUpFeedbackReportsTab.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Sections/FollowUpEvaluation.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/Tabs/FollowUpEvaluationTab.js","views/admin/Opportunities/OpportunityApplicationsFollowUp/OpportunityApplicationFollowUpDetails.js","views/admin/Opportunities/Opportunities/Sections/DocumentSection.js","views/admin/Opportunities/Opportunities/Sections/OpportunityData.js","views/admin/Opportunities/Opportunities/Sections/OpportunityCreation.js","views/admin/Opportunities/Opportunities/OpportunityCreate.js","views/admin/Opportunities/Opportunities/Sections/UpdateOpportunityStateSection.js","mappers/updateOpportunityStateMap.js","views/admin/Opportunities/Opportunities/Dialogs/UpdateOpportunityStateDialog.js","views/admin/Opportunities/Opportunities/Tabs/OpportunityDetailsTab.js","views/admin/Opportunities/OpportunityCandidates/Sections/CandidatesListSection.js","views/admin/Opportunities/OpportunityCandidates/Modals/AddCandidatesModal.js","assets/theme/views/admin/generic-page-table-result.js","views/admin/Opportunities/OpportunityCandidates/Tabs/OpportunityCandidatesTab.js","views/admin/Opportunities/Opportunities/OpportunityDetails.js","views/admin/Opportunities/OpportunityCandidates/Sections/CandidateGeneralDetails.js","views/admin/Opportunities/OpportunityCandidates/Sections/CandidateProfessionalDetails.js","views/admin/Opportunities/OpportunityCandidates/Sections/DocumentsSection.js","views/admin/Opportunities/OpportunityCandidates/Sections/CandidateAnswers.js","views/admin/Opportunities/OpportunityCandidates/Sections/CandidateRejectedMotive.js","views/admin/Opportunities/OpportunityCandidates/CandidateDetails.js","components/Fields/CounterDisplayField.js","assets/theme/views/admin/user-overview.js","views/admin/UserOverview/UserSingular/Sections/OverviewSection.js","views/admin/UserOverview/UserSingular/Sections/GeneralDataSection.js","views/admin/UserOverview/Components/Sections/ContactsSection.js","views/admin/UserOverview/UserSingular/Tabs/GeneralDataTab.js","views/admin/UserOverview/UserSingular/Sections/ProfessionalDataSection.js","views/admin/UserOverview/UserSingular/Sections/TrainingSection.js","views/admin/UserOverview/Components/Sections/DocumentsSection.js","hooks/useScrollTo.js","views/admin/UserOverview/UserSingular/Tabs/TrainingAndProfessionTab.js","views/admin/UserOverview/UserSingular/Tabs/FollowUpsTabs/OpportunityApplicationsFollowUpsTab.js","views/admin/UserOverview/UserSingular/Sections/FollowUpsListSection.js","views/admin/UserOverview/Components/Tabs/GovernmentProgramsApplicationsTab.js","views/admin/UserOverview/UserSingular/Tabs/ApplicationTypesTabs/OpportunityApplicationsTab.js","views/admin/UserOverview/UserSingular/Modals/AddCandidateToOpportunitiesModal.js","views/admin/UserOverview/UserSingular/Sections/ApplicationsListSection.js","views/admin/UserOverview/UserSingular/Tabs/ApplicationsTab.js","views/admin/UserOverview/UserColective/Sections/OverviewSection.js","views/admin/UserOverview/UserColective/Sections/GeneralDataSection.js","views/admin/UserOverview/UserColective/Tabs/GeneralDataTab.js","views/admin/UserOverview/UserColective/Tabs/ApplicationsContentTab/OpportunityApplicationFollowUpTab.js","views/admin/UserOverview/UserColective/Sections/FollowupsListSection.js","views/admin/UserOverview/UserColective/Tabs/ApplicationsContentTab/OpportunityApplicationsTab.js","views/admin/UserOverview/UserColective/Sections/ApplicationsListSection.js","views/admin/UserOverview/UserColective/Tabs/ApplicationsTab.js","views/admin/UserOverview/Components/Tabs/HistoryTab.js","views/admin/UserOverview/UserOverview.js","mappers/schedulesMap.js","views/admin/Schedules/Sections/FilterSection.js","views/admin/Schedules/Sections/ResultSection.js","views/admin/Schedules/Schedules.js","views/admin/Schedules/SchedulesSubmit.js","views/admin/Schedules/SchedulesDetails.js","assets/theme/views/admin/static-page.js","views/admin/Components/QuickGuidesPage.js","views/admin/AdvancedSearch/NavbarAdvancedSearch.js","routes.js","assets/theme/layouts/admin.js","layouts/Admin.js","layouts/Auth.js","assets/fonts/Lato/Lato-Bold.ttf","assets/fonts/Lato/Lato-Regular.ttf","redux/reducers/authReducer.js","redux/reducers/datasetReducer.js","redux/reducers/stockReducer.js","redux/reducers/dashboardReducer.js","redux/reducers/subprogramReducer.js","redux/reducers/dialogsReducer.js","redux/reducers/applicationsReducer.js","redux/reducers/schedulingReducer.js","redux/reducers/notificationReducer.js","redux/reducers/usersReducer.js","redux/reducers/usersInfoReducer.js","redux/reducers/loansReducer.js","redux/reducers/informationDisseminationReducer.js","redux/reducers/opportunitiesReducer.js","redux/reducers/reportsReducer.js","redux/reducers/rootReducer.js","redux/store/store.js","utils/setup_axios.js","index.js"],"names":["themeColors","white","main","smoke","light","black","transparent","gray","primary","darkBlue","greyBlue","mediumBlue","lightBlue","secondary","skyBlue","mediumSkyBlue","lightSkyBlue","warning","tableLight","tableLightHover","badgeBg","badgeBgHover","badge","error","dialogNotification","info","lightgreen","green","grey","background","default","dark","tableBorder","tableHeadColor","tableHeadBgColor","snackbar","success","facebook","twitter","google","instagram","pinterest","youtube","vimeo","slack","dribbble","github","tableStateChip","red","yellow","darkOrange","lightOrange","blue","hexToRgb","input","replace","test","length","Error","first","second","last","toUpperCase","parseInt","boxShadows","boxShadow","colors","boxShadowLg","buttonBoxShadow","buttonBoxShadowNeutral","iconsPageButtonBoxShadow","inputBoxShadow","linearProgressBoxShadow","menuBoxShadow","sliderBoxShadow","popoverBoxShadow","defaultHeaderStyles","marginBottom","fontFamily","fontWeight","lineHeight","color","theme","createMuiTheme","breakpoints","values","xs","sm","md","lg","xl","palette","buttonLightLabel","sidebarLinks","adminNavbarSearch","authNavbarLink","typography","fontSize","h1","h2","h3","h4","h5","h6","overrides","MuiDrawer","paper","width","paddingTop","paddingBottom","paperAnchorDockedLeft","borderRight","docked","MuiListItem","root","display","gutters","paddingLeft","paddingRight","MuiMenu","minWidth","textAlign","listStyle","backgroundColor","backgroundClip","border","borderRadius","padding","MuiMenuItem","clear","whiteSpace","marginRight","verticalAlign","MuiFormHelperText","marginTop","MuiAutocomplete","inputRoot","MuiSelect","icon","height","top","MuiFormLabel","MuiFormGroup","MuiInputBase","transition","boxSizing","MuiInputLabel","outlined","transform","MuiOutlinedInput","borderColor","multiline","notchedOutline","MuiFilledInput","underline","position","flexWrap","alignItems","flex","borderLeft","borderTopLeftRadius","borderBottomLeftRadius","inputAdornedStart","inputAdornedEnd","MuiInputAdornment","positionEnd","positionStart","filled","borderTopRightRadius","borderBottomRightRadius","MuiCheckbox","MuiRadio","MuiRating","marginLeft","MuiSwitch","colorPrimary","switchBase","opacity","checked","disabled","thumb","track","MuiPaper","elevation1","MuiCard","flexDirection","wordWrap","overflow","MuiCardHeader","borderBottom","MuiCardContent","minHeight","MuiCardActions","borderTop","MuiButtonGroup","undefined","contained","groupedContainedSecondary","groupedContainedPrimary","grouped","MuiButton","textTransform","letterSpacing","willChange","userSelect","text","containedSizeSmall","containedSizeLarge","containedPrimary","containedSecondary","outlinedSizeSmall","outlinedSizeLarge","outlinedPrimary","outlinedSecondary","MuiContainer","maxWidthXs","maxWidth","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl","MuiGrid","item","container","MuiSvgIcon","MuiTable","borderCollapse","MuiTableRow","MuiTableCell","head","MuiTableBody","MuiLinearProgress","bar","justifyContent","MuiAvatar","img","borderStyle","MuiAvatarGroup","avatar","zIndex","MuiPaginationItem","sizeLarge","sizeSmall","MuiDivider","MuiSlider","rail","MuiSnackbarContent","message","MuiBadge","textDecoration","colorSecondary","colorError","MuiTooltip","tooltip","arrow","MuiPopover","MuiTabs","indicator","scroller","MuiTab","wrapper","labelIcon","MuiTabPanel","MuiDialog","MuiDialogContent","MuiDialogActions","MuiBreadcrumbs","ol","li","separator","SUBPROGRAM","USERS","REGISTER_BO_USER","LOANS","DIALOG","DIALOG_ICON","DATASET_ACTIONS","APPLICATIONS","NOTIFICATION","SCHEDULING","AUTH","PROFESSIONAL_KITS","STOCKS","INFORMATION_DISSEMINATION","OPPORTUNITIES_ACTIONS","DASHBOARD_ACTIONS","REPORTS","b64ToImage","b64Data","b64toBlob","contentType","arguments","sliceSize","byteCharacters","atob","byteArrays","offset","slice","byteNumbers","Array","i","charCodeAt","byteArray","Uint8Array","push","blob","Blob","type","URL","createObjectURL","convertByteArrayToBlobUrl","getNameInitials","name","_initials$shift","_initials$pop","rgx","RegExp","initials","matchAll","shift","pop","getFirstAndLastName","fullName","name_arr","split","convertBase64ToFile","image","imageType","imageName","byteString","ab","ArrayBuffer","ia","newBlob","File","scheduleKitDeliveryAction","kitDelivery","async","axios","post","INTERNAL_API_URL","scheduleKitDelivery","then","dispatch","payload","toShow","showGenericDialog","genericDialogData","isSuccess","catch","_error$response","_error$response$data","response","data","errors","Object","keys","console","log","characterizeProfessionalKitAction","formData","_onCloseAction","professionalKit","res","buttonLabel","okAction","onCloseAction","updateProfessionalKitAction","updateProfessionalKitStateAction","professionalKitId","getStockDetailsAction","warehouseStockId","get","params","WarehouseStockId","getStockDetails","getProfessionalKitDetailsAction","kitId","ProfessionalKitId","searchStocksAction","searchStock","_res$data","mappedList","map","record","id","warehouseId","warehouseName","provinceId","provinceName","categoryId","categoryName","noOfBatches","kitsAttributed","kitsTotal","availableKits","lostKits","total_records","totalCount","total_pages","totalPages","searchProfessionalKitsAction","searchProfessionalKits","_res$data2","active","registerStockInWarehouseAction","wsem","registerLossOrBreakAction","_error$response2","_error$response2$data","getUnitValueByCategoryAction","category","getUnitValueByCategory","unitValue","getKitDeliveryApplicationDetailsAction","applicationCode","ApplicationCode","getKitDeliveryApplicationDetails","showRegisterLossBreakModalAction","_toShow","_category","_batchNumber","_province","_warehouse","batchNumber","province","warehouse","showRegisterInWareHouseModalAction","getProfessionalKitDeliveryDocumentAction","docId","docName","headers","responseType","link","document","createElement","href","setAttribute","body","appendChild","click","removeChild","createNotificationAction","successFunction","goBack","getNotificationsAction","EXTERNAL_API_URL","getNotifications","isRead","date","notificationDate","sentBy","sentByUserName","origin","title","subject","subtitle","motive","result","getUnreadNotificationAction","_message","_origin","_onlyUnread","_maxResult","lastXNotifications","onlyUnread","forEach","child","notifications","count","updateNotificationAction","notificationId","_notificationId","getNumberOfUnreadNotificationsAction","unreadCount","useStyles","makeStyles","backdrop","drawer","GenericBackdrop","props","_props$open","classes","useTheme","_jsx","Backdrop","className","open","children","CircularProgress","style","componentStyles","down","listItemRoot","boxAnchor","menuList","menuPaper","typographyH6","margin","typographyH4","typographyOrigin","fontStyle","typographySentBy","typographySubject","notificationsLargeBell","notificationBadge","right","paddingRight0px","paddingLeft0px","minHeight0PX","alignRight","justifyContentCenter","sideBySideDiv","float","avatarRoot","avatarIconOutlined","containedTertiaryButton","containedGhostButton","textDecorationLine","indicatorButton","highlightedIndicatorButton","normalIndicatorButton","normalIndicator","buttonProgress","left","breadcrumbs","containerRoot","up","containerRootAfterBreadcrumbs","cardRoot","cardHeader","cardHeaderAction","cardHeaderActionGrid","alignContent","cardHeaderActionTypography","cardActionsRoot","cardHeaderActionSwitchGrid","alignSelf","cardHeaderActionSwitchActiveLabel","cardHeaderActionSwitchInactiveLabel","cardElementsCount","cardHeaderAvatar","cardHeaderIcon","innerCardHeaderTitle","cardExpand","transitions","create","duration","shortest","cardExpandOpen","cardContentBorderBottom","cardTabButton","documentNameRoot","documentBadge","wordBreak","documentBadgeContainer","maxHeight","documentAvatar","documentDeleteButtonIconRoot","documentDeleteButtonRoot","documentDropzone","borderWidth","outline","cursor","formControlCheckboxLabelRoot","WebkitPrintColorAdjust","formControlCheckboxLabelLabel","formControlLabelCheckboxInTableHeader","formControlLabelNoMargin","formRatingInTableCell","formTextInputInTableCell","iconButtonOutlined","ratingBox","spacing","overallRatingIcon","timelineIcons","timelineIconsBox","errorIcon","checkIcon","alertIcon","borderWarning","selectBorderWarningInputRoot","monetaryFields","counterValue","counterLabel","detailFormLabels","detailLabels","alignPagination","quillOverflowWrap","overflowWrap","tableCellRoot","tableCellRootHead","tableCellRootHeadMultiple","tableCellHeadStickyRight","tableCellBodyStickyRight","tableRowEllipsis","textOverflow","noResultsInfoInTable","changeTabsGroup","gridTemplateColumns","changeTabs","heigth","tooltipInfoIcon","tooltipDescritionSizeWidth","disabledSwitchThumb","disabledSwitchTrack","infoSwitchThumb","infoSwitchTrack","successSwitchThumb","successSwitchTrack","errorSwitchThumb","errorSwitchTrack","warningSwitchThumb","warningSwitchTrack","whiteSwitchThumb","whiteSwitchTrack","checkedSwitch","modalHeader","subHeader","modalHelpIconBox","modalHelpIconRoot","useStylesGeneric","componentStylesGeneric","connect","state","getUnreadNotification","_props$notificationSt2","anchorEl","setAnchorEl","useState","filter","setFilter","getUnreadNotificationsCount","_props$notificationSt","notificationState","unreadNotificationsCount","isMenuOpen","Boolean","handleMenuClose","menuId","renderMenu","_jsxs","Menu","anchorOrigin","vertical","horizontal","keepMounted","transformOrigin","onClose","list","Box","Typography","variant","component","unreadNotifications","List","disablePadding","prop","key","_prop$origin","ListItem","Grid","Avatar","alt","src","flexBasis","flexGrow","Link","to","onClick","unreadNotifications_Loading","_Fragment","IconButton","event","currentTarget","temp_filter","assign","Badge","badgeContent","NotificationsIcon","buttonRoot","dividerRoot","menuTitle","nestedItem","logoutAction","email","username","succeeded","_props$authState3","React","history","useHistory","getUserFullName","_props$authState$name","_props$authState","_props$authState$last","_props$authState2","authState","lastName","Divider","MenuItem","Person","HelpIcon","handleLogout","DirectionsRun","Button","edge","label","photo","Hidden","smDown","menuRoot","listItemTextPrimary","expandIcon","dotIcon","menuButton","checkOperationPermission","operationList","operationKey","some","errorMessages","defineMessages","ErrorMessage_FieldRequired","defaultMessage","description","ErrorMessage_FieldPercentage","ErrorMessage_GenericError","ErrorMessage_InvalidFormat","ErrorMessage_Invalid_Value","ErrorMessage_User_Colective_NIF_Invalid_Format","ErrorMessage_User_Colective_PermitCode_Invalid_Format","ErrorMessage_Birthdate_MaxDate","ErrorMessage_Birthdate_MinDate","ErrorMessage_MinRegisterDate","ErrorMessage_ID_Card_InvalidFormat","ErrorMessage_Generic_ValueGreaterThanZeroField","labels","Label_Not_Applicable","Label_Yes","Label_No","Label_Years","Label_Details","Label_Total","Label_Generic_Active","Label_Generic_Inactive","Label_SeeMore","Label_SeeDetails","Label_Download","Label_Select","Label_NoResultsFound","Label_SelectMultipleOptions","Label_Undefined","Label_Date","Label_ExportButton","Label_ClearFilters","Label_FilterSection_SearchButton","Label_Search_Filters_Placeholder","Label_Button_Cancel","Label_Button_Submit","Label_Button_Edit","Label_Recruit_Submit","Label_Reject_Submit","Label_Approve_Submit","Label_Update_Submit","Label_GoBack_Button","Label_Generic_Submit_Button","Label_Generic_Upload_Document","Label_Generic_Details","Label_Generic_Add","Label_Generic_Cancel","Label_Generic_Save","Label_Generic_Edit","Label_Generic_Conclude","Label_Generic_AddRecord","Label_GovernmentProgramField_short","Label_UserCodeField_short","Label_Admin_Subprogram_Create_CancelButton","Label_Admin_Subprogram_GovernmentProgramField","Label_Admin_Subprogram_ProgramField","Label_Admin_Subprogram_SubprogramField","Label_Admin_Subprogram_ValidityDateField","Label_Admin_Subprogram_ValidityDateFieldTo","Label_Admin_Subprogram_ValidityDateFieldStart","Label_Admin_Subprogram_ValidityDateFieldEnd","Label_Admin_Subprogram_DescriptionField","Label_Admin_Subprogram_ObjectivesField","Label_Admin_Subprogram_NumVacanciesField","Label_Admin_Subprogram_DepartmentField","Label_Admin_Subprogram_BenefitsTypeField","Label_Admin_Subprogram_StateField","Label_Admin_ApplicationsManagementFilter_NumApplicationField","Label_Admin_ApplicationsManagementFilter_NumBIField","Label_Admin_ApplicationsManagementFilter_UserCodeField","Label_Admin_ApplicationsManagementFilter_UserNameField","Label_Admin_ApplicationsManagementFilter_StatusField","Label_Admin_ApplicationsManagementFilter_GovernmentProgram","Label_Admin_ApplicationsManagementFilter_ProgramField","Label_Admin_ApplicationsManagementFilter_SubprogramField","Label_Admin_ApplicationsManagementFilter_SubmissionDate","Label_Admin_ApplicationsManagementFilter_SubmissionDateFrom","Label_Admin_ApplicationsManagementFilter_SubmissionDateTo","Label_Admin_ApplicationsManagementFilter_ApplicationProvince","Label_Admin_ApplicationsManagementFilter_CandidateProvince","Label_Admin_ApplicationsManagementFilter_CandidateMunicipality","Label_Admin_ApplicationsManagementFilter_PhoneNumber","Label_Admin_ApplicationsManagementFilter_EntrepreneurshipTraining","Label_Admin_ApplicationsManagementFilter_InternshipArea","Label_Admin_ApplicationDetail_ApplicationStateField","Label_Admin_GeneralDataSection_NameField","Label_Admin_GeneralDataSection_NumBIField","Label_Admin_GeneralDataSection_GenderField","Label_Admin_GeneralDataSection_MaritalStatusField","Label_Admin_GeneralDataSection_OtherApplicationsField","Label_Admin_GeneralDataSection_SpecialNeedsField","Label_Admin_GeneralDataSection_SNPercentageField","Label_Admin_GeneralDataSection_AgeField","Label_Admin_GeneralDataSection_BirthdayField","Label_Admin_GeneralDataSection_ProvinceField","Label_Admin_GeneralDataSection_MunicipalityField","Label_Admin_GeneralDataSection_MobilePhoneField","Label_Admin_ProgramSubprogramDataSection_WhichProvinceField","Label_Admin_ProgramSubprogramDataSection_GovernmentProgramsField","Label_Admin_ProgramSubprogramDataSection_ProgramsField","Label_Admin_ProgramSubprogramDataSection_SubprogramsField","Label_Admin_ProgramSubprogramDataSection_BenefitTypeField","Label_Admin_ProgramSubprogramDataSection_MicrocreditAmountField","Label_Admin_ProgramSubprogramDataSection_ConcededMicrocreditAmountField","Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsNumberField","Label_Admin_ProgramSubprogramDataSection_ConcededProfessionalKitsNumberField","Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsValueField","Label_Admin_ProgramSubprogramDataSection_IntendedCourseNameField","Label_Admin_ProgramSubprogramDataSection_IntendedWalletNameField","Label_Admin_ProgramSubprogramDataSection_TrainingCenterField","Label_Admin_ProgramSubprogramDataSection_InternshipAreaField","Label_Admin_ProgramSubprogramDataSection_Bank","Label_Admin_ProgramSubprogramDataSection_Bank_Placeholder","Label_Admin_SchedulingManagementFilter_SchedulingDateFrom","Label_Admin_SchedulingManagementFilter_SchedulingDateTo","Label_Admin_SchedulingTab_MotiveField","Label_Admin_SchedulingTab_SchedulingDateField","Label_Admin_SchedulingTab_SchedulingHourField","Label_Admin_SchedulingTab_ObservationsField","Label_Admin_NotificationsTab_CandidateField","Label_Admin_NotificationsTab_RecipientField","Label_Admin_NotificationsTab_BackofficeUserField","Label_Admin_NotificationsTab_BackofficeGroupField","Label_Admin_NotificationsTab_MotiveField","Label_Admin_NotificationsTab_SubjectField","Label_Admin_NotificationsTab_ObservationsField","Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_CategoryField","Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_QuantityField","Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_BatchNumberField","Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_ValueField","Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_MotiveField","Label_Admin_ScheduleDetails_ReportField","Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForInternshipOpportunities","Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForEmploymentOpportunities","Label_Admin_UserManagement_CreateColectiveUser_Button","Label_Admin_UserManagement_CreateIndividualUser_Button","Label_Admin_Loans_GovernmentProgram","Label_Admin_Loans_ApplicationNumber","Label_Admin_Loans_State","Label_Admin_Loans_State_short","Label_Admin_Loans_LastUpdateDate","Label_Admin_Loans_LastUpdateDate_short","Label_Admin_Loans_AmountToBePaid","Label_Admin_Loans_AmountApproved","Label_Admin_Loans_IsMissingPayments","Label_Admin_Loans_BankName","Label_Admin_Loans_LoanType","Label_Admin_Loans_LoanType_short","Label_Admin_Loans_RejectionMotive","Label_Admin_Loans_RejectionObservations","Label_Admin_InformationDissemination_InformationData","Label_Admin_InformationDissemination_Published","Label_Admin_InformationDissemination_NotPublished","Label_Admin_InformationDissemination_InformationCategory","Label_Admin_InformationDissemination_Authentication","Label_Admin_InformationDissemination_AuthenticatedUsers","Label_Admin_InformationDissemination_AuthenticationPublic","Label_Admin_InformationDissemination_Highlight","Label_Admin_InformationDissemination_Highlighted","Label_Admin_InformationDissemination_NotHighlighted","Label_Admin_InformationDissemination_Title","Label_Admin_InformationDissemination_Description","Label_Admin_InformationDissemination_Images","Label_Admin_InformationDissemination_Videos","Label_Admin_InformationDissemination_VideoInputFieldInfoIcon","Label_Admin_InformationDissemination_CreatedBy","Label_Admin_InformationDissemination_PublishedBy","Label_Admin_InformationDissemination_PublishedDate","Label_Admin_InformationDissemination_SocialMediaLink","Label_Admin_AdvancedSearch_AdvancedSearch","Label_Admin_SearchBarNavbar_SearchBarPlaceholder","Label_Admin_SearchBarNavbar_IdemtificationNumber","Label_Admin_SearchBarNavbar_NIF","Label_Admin_SearchBarNavbar_PhoneNumber","Label_Admin_SearchBarNavbar_NoResults","Label_UserOverview_General_Data_Tab","Label_UserOverview_Training_And_Profession_Tab","Label_UserOverview_Applications_Tab","Label_UserOverview_EmploymentAndUnemploymentHistory_Tab","Label_UserOverview_History_Tab","Label_UserOverview_GeneralDataTab_ContactsSection_MobilePhone","Label_UserOverview_GeneralDataTab_ContactsSection_AlternativeMobilePhone","Label_UserOverview_GeneralDataTab_ContactsSection_Email","Label_UserOverview_GeneralDataTab_ContactsSection_ContactName","Label_UserOverview_GeneralDataTab_ContactsSection_ContactMobilePhone","Label_UserOverview_GeneralDataTab_ContactsSection_ContactAlternativeMobilePhone","Label_UserOverview_GeneralDataTab_ContactsSection_ContactEmail","Label_UserOverview_GeneralDataTab_GeneralDataSection_FullName","Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanyName","Label_UserOverview_GeneralDataTab_GeneralDataSection_IdentificationNumber","Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanySocialSecurityNumber","Label_UserOverview_GeneralDataTab_GeneralDataSection_BirthDate","Label_UserOverview_GeneralDataTab_GeneralDataSection_Gender","Label_UserOverview_GeneralDataTab_GeneralDataSection_MaritalStatus","Label_UserOverview_GeneralDataTab_GeneralDataSection_Nationality","Label_UserOverview_GeneralDataTab_GeneralDataSection_Province","Label_UserOverview_GeneralDataTab_GeneralDataSection_Municipality","Label_UserOverview_GeneralDataTab_GeneralDataSection_District","Label_UserOverview_GeneralDataTab_GeneralDataSection_SpecialNeeds","Label_UserOverview_GeneralDataTab_GeneralDataSection_SpecialNeedsPercentage","Label_UserOverview_GeneralDataTab_GeneralDataSection_TaxIdNumber","Label_UserOverview_GeneralDataTab_GeneralDataSection_RegistrationNumber","Label_UserOverview_GeneralDataTab_GeneralDataSection_PermitCode","Label_UserOverview_GeneralDataTab_GeneralDataSection_PermitCodeExpirationDate","Label_UserOverview_GeneralDataTab_GeneralDataSection_Address","Label_UserOverview_GeneralDataTab_GeneralDataSection_Household","Label_UserOverview_GeneralDataTab_GeneralDataSection_FamilyIncome","Label_UserOverview_GeneralDataTab_OverviewSection_GovernmentProgramApplications","Label_UserOverview_GeneralDataTab_OverviewSection_OpportunityApplications","Label_UserOverview_GeneralDataTab_OverviewSection_ProfessionalTraining","Label_UserOverview_GeneralDataTab_OverviewSection_ProfessionalWallets","Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt","Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithMissingPayments","Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithoutMissingPayments","Label_UserOverview_GeneralDataTab_OverviewSection_OpportunityFollowUpOverallEvaluation","Label_UserOverview_GeneralDataTab_OverviewSection_FinishedInterships","Label_UserOverview_GeneralDataTab_OverviewSection_GrantedMicrocredits","Label_UserOverview_GeneralDataTab_OverviewSection_GrantedProfessionalKits","Label_UserOverview_GeneralDataTab_OverviewSection_AllSchedules","Label_UserOverview_GeneralDataTab_OverviewSection_JoinedOn","Label_UserOverview_GeneralDataTab_OverviewSection_NoJoinedOnData","Label_UserOverview_GeneralDataTab_OverviewSection_NoProfessionalData","Label_UserOverview_GeneralDataTab_OverviewSection_NoProvinceData","Label_UserOverview_GeneralDataTab_OverviewSection_EmploymentAndInternshipOpportunities","Label_UserOverview_GeneralDataTab_OverviewSection_ReceivedApplications","Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicLevel","Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicDegree","Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalCategory","Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalTraining","Label_UserOverview_ProfessionTab_ProfessionalDataSection_EntrepreneurshipTraining","Label_UserOverview_ProfessionTab_ProfessionalDataSection_SmallBusinessManagementTraining","Label_UserOverview_ProfessionTab_ProfessionalDataSection_Profession","Label_UserOverview_ProfessionTab_ProfessionalDataSection_YearsOfExperience","Label_UserOverview_ProfessionTab_ProfessionalDataSection_MainYearsOfExperience","Label_UserOverview_ProfessionTab_ProfessionalDataSection_BusinessPurpose","Label_UserOverview_ProfessionTab_ProfessionalDataSection_CompanyEACDescription","Label_UserOverview_ProfessionTab_ProfessionalDataSection_PropertyType","Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompany","Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyPostalCode","Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyActivity","Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyEACDescription","Label_UserOverview_ProfessionTab_ProfessionalDataSection_MaleWorkersNumber","Label_UserOverview_ProfessionTab_ProfessionalDataSection_FemaleWorkersNumber","Label_UserOverview_ProfessionTab_ProfessionalDataSection_TechnicalCapability","Label_UserOverview_ProfessionTab_ProfessionalDataSection_Has_Professional_Wallet","Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Number","Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Class","Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Specialty","Label_UserOverview_ProfessionTab_ProfessionalDataSection_IntendedWorkplaceProvince","Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalQualification","Label_UserOverview_ProfessionTab_ProfessionalDataSection_OtherProfessionalExperience","Label_UserOverview_ProfessionTab_ProfessionalDataSection_OccupationalCategory","Label_UserOverview_ProfessionTab_ProfessionalDataSection_SecondaryProfessionalExperience","Label_UserOverview_ProfessionTab_ProfessionalDataSection_SecondaryExperience","Label_UserOverview_ProfessionTab_ProfessionalDataSection_StudiedLanguages","Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgramsTab","Label_UserOverview_ApplicationsTab_ApplicationsSection_InternshipsTab","Label_UserOverview_ApplicationsTab_ApplicationsSection_EmploymentTab","Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgram","Label_UserOverview_ApplicationsTab_ApplicationsSection_Program","Label_UserOverview_ApplicationsTab_ApplicationsSection_Subprogram","Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationCode","Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationState","Label_UserOverview_ApplicationsTab_ApplicationsSection_CreationDate","Label_UserOverview_ApplicationsTab_ApplicationsSection_Company","Label_UserOverview_ApplicationsTab_ApplicationsSection_Candidate","Label_UserOverview_ApplicationsTab_ApplicationsSection_OpportunityType","Label_UserOverview_ApplicationsTab_ApplicationsSection_CreateOpportunityApplication","Label_UserOverview_ApplicationsTab_FollowUpsSection_OnGoing","Label_UserOverview_ApplicationsTab_FollowUpsSection_Finished","Label_UserOverview_ApplicationsTab_FollowUpsSection_ApplicationCode","Label_UserOverview_ApplicationsTab_FollowUpsSection_Company","Label_UserOverview_ApplicationsTab_FollowUpsSection_Candidate","Label_UserOverview_ApplicationsTab_FollowUpsSection_OpportunityType","Label_UserOverview_ApplicationsTab_FollowUpsSection_State","Label_UserOverview_ApplicationsTab_FollowUpsSection_OverallEvaluation","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AddCandidatesTitle","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_CompanyNameOrTaxId","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Province","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Municipality","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_ProfessionalCategory","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_OpportunityType","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Company","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Candidates","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Vacancies","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Reference","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AcademicLevel","Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Languages","Label_QuickGuides_360Vision","Label_QuickGuides_CheckUserData","Label_QuickGuides_InternshipsFollowup","Label_QuickGuides_InternshipsFollowup_Citizen","Label_QuickGuides_InternshipsFollowup_Company","Label_Opportunity_OpportunityData_EmploymentCenter","Label_Opportunity_OpportunityData_SocialPerks","Label_Opportunity_OpportunityData_SocialPerks_Examples","Label_Opportunity_OpportunityData_OtherPerks","Label_Opportunity_OpportunityData_RequiredAcademicLevel","Label_Opportunity_OpportunityData_Workplace","Label_Opportunity_OpportunityData_Commune","Label_Opportunity_OpportunityData_RequiredKnowledge","Label_Opportunity_OpportunityData_RequiredKnowledge_Examples","Label_Opportunity_OpportunityData_ActiveMonths","Label_Opportunity_OpportunityData_Observations","Label_Opportunity_OpportunityData_AcceptWorkersFromOtherRegions","Label_Opportunity_OpportunityData_RequiredLanguages","Label_UserProfile_UserCollective_CompanyData_CompanyEACId","Label_UserProfile_UserCollective_CompanyData_PropertyType","Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompany","Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyPostalCode","Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyActivity","Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyEAC","Label_UserProfile_UserSingular_PersonalAndProfessionalData","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory","Label_UserProfile_UserSingular_ProfessionalData_MainProfessionalExperience","Label_UserProfile_UserSingular_ProfessionalData_SecondaryProfessionalExperience","Label_UserProfile_UserSingular_ProfessionalData_YearsOfMainProfessionalExperience","Label_UserProfile_UserSingular_ProfessionalData_YearsOfSecondaryProfessionalExperience","Label_UserProfile_UserSingular_ProfessionalData_ProfessionalQualification","Label_UserProfile_UserSingular_ProfessionalData_OtherProfessionalExperience","Label_UserProfile_UserSingular_ProfessionalData_Household","Label_UserProfile_UserSingular_ProfessionalData_FamilyIncome","Label_UserProfile_UserSingular_ProfessionalData_StudiedLanguages","Label_UserProfile_UserSingular_ProfessionalData_IntendedWorkplaceProvinceId","Label_UserProfile_UserSingular_ProfessionalData_IntendedWorkplaceProvinceId_Details","Label_UserProfile_UserSingular_ProfessionalData_OccupationalCategory","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_StartDate","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EndDate","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EmploymentHistory","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityNumber","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Company","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Profession","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityType","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_WorkTimeFrame","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Salary","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Observations","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_UnemploymentHistory","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_AddRecord","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Edit","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Add","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_UnemploymentRecord","Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EmploymentRecord","Label_InterventionOtherArea","Label_InterventionOtherArea_Area","Label_InterventionOtherArea_ReasonForIntervention","Label_InterventionOtherArea_Results","titles","Title_AdminNavBar_NavBarMenu","Title_AdminNavBar_NavBarListMenu","Title_AdminNavBar_GestaoCandidaturasMenu","Title_AdminNavBar_ListaDeCandidaturasMenuItem","Title_AdminNavBar_AgendamentosMenuItem","Title_AdminNavBar_ProfessionalKitsMenu","Title_AdminNavBar_ProfessionalKitsMenu_KitsListMenuItem","Title_AdminNavBar_ProfessionalKitsMenu_CharacterizeKitMenuItem","Title_AdminNavBar_ProfessionalKitsMenu_RegisterLossMenuItem","Title_AdminNavBar_ProfessionalKitsMenu_RegisterInWarehouseMenuItem","Title_AdminNavBar_ProfessionalKitsMenu_StocksMenuItem","Title_AdminNavBar_ProfessionalKitsMenu_KitDeliveryMenuItem","Title_AdminNavBar_SubprogramasMenu","Title_AdminNavBar_ListaSubprogramasMenuItem","Title_AdminNavBar_CharacterizeSubprogramMenuItem","Title_AdminNavBar_ListaInformationDisseminationMenuItem","Title_AdminNavBar_CreateInformationDisseminationMenuItem","Title_AdminNavBar_ListCandidatesMenuItem","Title_AdminNavBar_ListOpportunitiesMenuItem","Title_AdminNavBar_ListOpportunitiesApplicationsMenuItem","Title_AdminNavBar_ListOpportunitiesApplicationsFollowUpMenuItem","Title_AdminNavBar_OpportunityCreateMenuItem","Title_AdminNavBar_Bancos","Title_AdminNavBar_InformationDissemination","Title_AdminNavBar_Opportunity","Title_AdminNavBar_ManageUsersMenu","Title_AdminNavBar_ManageUsersMenuItemBackOffice","Title_AdminNavBar_ManageUsersMenuItemFrontOffice","Title_Admin_Subprogram_GeneralDataSection","Title_Admin_Subprogram_BenefitsSection","Title_Admin_Subprogram_DocumentsSection","Title_Admin_Dashboard_CardOnGoingApplications","Title_Admin_ApplicationsManagement","Title_Admin_ApplicationsManagement_ResultSection","Title_Admin_ApplicationDetail_GeneralDataSectionButton","Title_Admin_ApplicationDetail_GeneralDataSection","Title_Admin_ApplicationDetail_ProgramSubprogramDataSection","Title_Admin_ApplicationDetail_ComplementaryDataSection","Title_Admin_ApplicationDetail_DocumentsSection","Title_Admin_ApplicationDetail_SchedulingSection","Title_Admin_ApplicationDetail_ReportsSection","Title_Admin_ApplicationDetail_NotificationsSection","Title_Admin_ApplicationDetail_HistorySectionButton","Title_Admin_ApplicationDetail_HistorySection","Title_Admin_ApplicationDetail_HistoryNotesSection","Title_Admin_SchedulesManagement","Title_Admin_SchedulesManagement_ResultSection","Title_Admin_SchedulesManagement_ScheduleDetails_RegistrationData","Title_Admin_ProfessionalKitsManagement","Title_Admin_ProfessionalKits_ResultSection","Title_Admin_ProfessionalKits_StocksManagement","Title_Admin_ProfessionalKits_StocksManagement_ResultSection","Title_Component_ModalFormsContent_Stocks_RegisterLossBreak","Title_Opportunity_Employment_Data_Card","Title_Opportunity_Internship_Data_Card","Title_Opportunity_Employment_RejectMotive_Card","Title_Opportunity_Employment_CloseMotive_Card","Title_Opportunity_Candidate_Data_Card","Title_Loans_LoanDetails_GeneralData_Card","Title_Loans_LoanDetails_Section","Title_Loans_LoanDetails_Subsection","Title_InformationDissemination_CreateInformation","Title_InformationDissemination_InformationManagement","Title_InformationDissemination_EditInformation","Title_UserOverview_Advanced_Search_Title","Title_UserOverview_User_Overview_Title","Title_UserOverview_GeneralDataTab_ContactsSection","Title_UserOverview_GeneralDataTab_GeneralDataSection","Title_UserOverview_ProfessionTab_ProfessionalDataSection","Title_UserOverview_ProfessionTab_TrainingSection","Title_UserOverview_ProfessionTab_DocumentsSection","Title_UserOverview_ApplicationsTab_ApplicationsSection","Title_UserOverview_ApplicationsTab_GovernmentProgramsApplicationsSection","Title_UserOverview_ApplicationsTab_EmploymentAndInternshipApplicationsSection","Title_UserOverview_ApplicationsTab_FollowUpsSection","Title_QuickGuides","messages","Message_Generic_MandatoryField","Message_Generic_ValueGreaterThanOrEqualToZeroField","Message_Generic_ValueGreaterThanZeroField","Message_Generic_DateToGreaterThanOrEqualToTodayField","Message_Generic_DateLessThanTodayField","Message_Generic_DateLessThanOrEqualToTodayField","Message_Generic_DateToGreaterThanDateFromField","Message_Generic_DateToGreaterThanOrEqualToDateFromField","Message_Generic_DateFromLessThanDateToField","Message_Generic_DateFromLessThanOrEqualToDateToField","Message_Generic_InvalidField","Message_Generic_TextFieldLengthTooShort","Message_Generic_InvalidUrl","Message_Generic_MaxNumberOfVideosExceeded","Message_DropzoneField_InvalidFileFormat","Message_DropzoneField_MaxFileSizeExceeded","Message_DropzoneField_MaxNumberOfFilesExceeded","Message_Admin_HistoryTab_AdicionalCommentsField","Message_Auth_Password_Rules_1","Message_Auth_Password_Rules_2","Message_Auth_Password_Rules_3","Message_Auth_Password_Rules_4","Message_Auth_Password_Rules_5","Message_Auth_Password_Rules_6","tooltips","Tooltip_Social_Security_Number_Description","alerts","Alert_Cannot_Add_Candidates_To_Opportunity_Because_Passed_ValidTo_Date","Alert_Cannot_Add_Candidates_To_Opportunity_Because_Before_ValidFrom_Date","DATASET","DATASET_TYPES","APPLICATION_REJECT_MOTIVES","APPLICATION_NOTIFICATION_MOTIVES","APPLICATION_NOTIFICATION_RECIPIENT_TYPES","APPLICATION_NOTIFICATION_SUBJECTS","APPLICATION_SCHEDULING_MOTIVES","APPLICATION_STATES","NEXT_APPLICATION_STATES","HISTORY_ENTRY_TYPES","ECONOMIC_ACTIVITIES_CLASSIFICATION","BANK","LOAN_TYPE","LOAN_STATES","LOAN_REJECT_MOTIVES","MUNICIPALITIES","NATIONALITIES","PROVINCES","ORIGIN","BUSINESS_PURPOSE","ACADEMIC_DEGREE","ACADEMIC_LEVEL","GENDER","MARITAL_STATUS","SPECIAL_NEEDS","SPECIALTY","TECHNICAL_CAPABIBILITY","PROFESSIONAL_TRAINNING","ENTREPRENEURSHIP_TRAINNING","SMALL_BUSINESS_MGMT_TRAINNING","PROFESSIONAL_CATEGORY","DEPARTMENTS","WAREHOUSES","CATEGORIES","ACTIVE_CATEGORIES","INACTIVE_CATEGORIES","NOT_ASSIGNED_ACTIVE_CATEGORIES","LOSS_BREAK_MOTIVES","GOVERNMENT_PROGRAMS","PROGRAMS","SUBPROGRAMS","SUBPROGRAM_STATES","BENEFITS","DOCUMENTS","CONDITION_TYPES","PREDEFINED_QUESTIONS","BACKOFFICE_USERS","BACKOFFICE_ROLES","YES_OR_NO_DROPDOWN","code","SHAPE_PROGRAMS","SHAPE_SUBSITES","INFORMATION_DISSEMINATION_TYPE","INFORMATION_DISSEMINATION_ACCESS","OPPORTUNITY_TYPE","CONTRACT_TYPE","INTERNSHIP_TYPE","TIMETABLE_TYPE","OPPORTUNITY_STATE","OPPORTUNITY_STATE_MOTIVES","AVAILABLE_INTERNSHIP_OPPORTUNITIES","OPPORTUNITY_CANDIDATE_REJECT_MOTIVES","OPPORTUNITY_DOCUMENT_TYPE","OPPORTUNITY_CANDIDATE_STATE","OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE","FEEDBACK_REPORT_REJECT_MOTIVES","EMPLOYMENT_CENTERS","SOCIAL_MEDIA_TYPE","LANGUAGES","OCCUPATIONAL_CATEGORIES","INTERVENTION_OTHER_AREA","OPERATIONS","UNITS","MONETARY","MONTHS","INTEREST","MONETARY_DECIMAL_SEPARATOR","WEB","API","MONETARYUNITPLACEHOLDER","REGEX_PATTERNS","EMAIL","DATE","COMPLEMENTARY_DATA_TYPE","PLAIN_TEXT","BOOLEAN","DEFAULT_QUESTIONS","SHAPE_PROGRAMS_TARGET","SCHEDULE_STATES","PAGINATION","PAGE_SIZE","PAGE_SIZE_MODAL_RESULT_TABLE","PAGE_SIZE_DISSEMINATION","PAGE_SIZE_DASHBOARD_NOTIFICATIONS","FIRST_PAGE","USER_TYPE","INDIVIDUAL","COLETIVO","USER_TYPE_KEY","BENEFIT","NOTIFICATION_RECIPIENT_TYPE","ROLES_ORIGIN_APPLICATION","OPPORTUNITY_STATE_KEY","OPPORTUNITY_CANDIDATE_STATE_KEY","OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY","OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY","OPPORTUNITY_TYPE_KEY","OPPORTUNITY_TYPE_ID","FEEDBACK_REPORT_QUESTION_TYPE_KEY","FEEDBACK_REPORT_TYPE_KEY","FEEDBACK_REPORT_USER_TYPE_KEY","INTERNSHIP_TYPE_KEY","UPDATE_OPPORTUNITY_STATE_ACTION_TYPE","OPPORTUNITY_MOTIVES_TYPE_KEY","REGISTRATION_CONSTS","SPECIAL_NEEDS_KEY","APPLICATION_STATE_GROUP_KEY","APPLICATION_STATE_KEY","ROLE_KEY_VALUE","FORM_FIELDS_PREFIX","DOCUMENT","COMPLEMENTARY_DATA","FOLLOWUP_FEEDBACK_REPORT_DATA","COMPLEMENTARY_DATA_ANSWER_TYPE","TEXT","REPORT_TYPES","APPLICATION_DETAILS","APPLICATIONS_SEARCH_RESULTS","LOANS_SEARCH_RESULTS","SCHEDULES_SEARCH_RESULTS","STOCKS_SEARCH_RESULTS","OPPORTUNITIES_SEARCH_RESULTS","OPPORTUNITY_APPLICATIONS_SEARCH_RESULTS","REPORT_FILE_NAME","REPORT_CONSTS","TABLE_STATE_CHIP_COLOR","GREEN","RED","YELLOW","DARK_ORANGE","LIGHT_ORANGE","BLUE","APPLICATION_STATES_IN_PROGRESS","APPLICATION_STATES_CANCELED","APPLICATION_STATES_APPROVED","FOLLOWUP_STATE_ID_QUERY","INFORMATION_DISSEMINATION_TYPE_KEYVALUE","IMAGE_TYPE","_ref","intl","useIntl","openApplication","setOpenApplication","openProfKits","setOpenProfKits","openSubprogs","setOpenSubprogs","openUsers","setOpenUsers","openInformationDissemination","setOpenInformationDissemination","openOpportunity","setOpenOpportunity","formatMessage","operationsList","button","handleClickApplication","ListItemText","ExpandLessIcon","ExpandMoreIcon","Collapse","in","timeout","unmountOnExit","FiberManualRecordIcon","handleClickProfKits","handleRegisterLoss","handleRegisterWarehouse","handleDeliverKit","handleClickSubprogs","handleClickOpportunity","handleClickUsers","handleClickInformationDissemination","MenuIcon","appBarRoot","brandTitle","searchBoxShow","searchBox","searchIcon","searchClose","searchInput","marginLeftAuto","marginLeftNone","displayNone","menuItems","widht","bottom","loginButton","line","dropIcon","box","cardContent","buttonImg","boxHeader","recoverButton","formControlLabelRoot","formControlLabelLabel","footerLinks","modalSentRecover","modalDeliverKit","modalWarehouse","modalRecoverSentHeader","modalRecoverSentText","modalCloseButton","elipse","logoInfo","dropMenu","dropItems","modalTitles","modalSubmitButton","modalWarehouseSubmitButton","modalResult","modalResultClose","modalResultHeader","modalResultIcon","cardContentKitCharacterizationResult","modalErrorResultIcon","modalButton","modalOkButton","logo","centeredButton","GenericButton","typeSubmit","size","clsx","loading","target","clearDataSetByNameAction","dataSetName","getDataSetByNameAction","parentKeyValue","getDataSetByName","value","keyValue","getProgramsAction","governmentProgramId","getPrograms","getSubprogramStatesAction","getDepartmentsAction","getNotAssignedActiveCategoriesAction","getInactiveCategoriesAction","getActiveCategoriesAction","getCategoriesAction","getDocumentsAction","getWarehousesByProvinceAction","provinceKeyValue","getWarehousesByProvince","getNextApplicationStatesAction","applicationStateId","benefitId","getNextApplicationStates","group","getSubprogramsAction","getBackOfficeUsersAction","getBackOfficeRolesAction","originApplication","roleKeyValue","getShapeProgramsAction","SearchTarget","IdProvincia","getShapePrograms","dataSet","getShapeSubsitesAction","offer","OfferId","ProvinceId","getShapeSubsites","getLoanStatesAction","getSubprogramByProgramIdAction","program","getPredefinedQuestionsAction","referenceDataSetId","referenceDataSetDescription","referenceDataSetName","getAvailableInternshipOpportunitiesAction","professionalCategory","internshipType","professionalCategoryId","internshipTypeKeyValue","getAvailableInternshipOpportunities","getGovernmentProgramsAction","clearDataSetByName","control","fieldName","selectOptions","initialLabel","getValues","setValue","required","requiredMessage","loadChildrenDataSet","childrenDataSet","childrenSelect","grandchildrenSelect","childrenList","onOptionChange","trigger","handleSetFilter","filterListKey","fieldVal","Controller","render","_ref2","field","onChange","fieldState","Autocomplete","noOptionsText","options","getOptionLabel","option","getOptionSelected","renderInput","TextField","InputLabelProps","_","_data$keyValue","_data$keyValue2","dataset","rules","getSelectOptionsElementByCode","array","uniqueField","find","x","getSelectOptionsElementByKey","getMultipleSelectOptionsElementByLabel","toReturn","t","toPush","getMultipleSelectOptionsElementByCode","getDataSet","getActiveCategories","useFormContext","totalValue","setTotalValue","useEffect","dataSetState","provinceList","selectedProvince","_props$stockState$Reg","stockState","RegisterInWareHouseModal","_props$stockState$Reg2","warehouseList","_props$stockState$Reg3","categoryList","quantityOnChange","getBatchValueField","_props$getValues","_props$stockState$cat","_props$stockState$cat2","quantity","formatNumber","categoriesUnitValue","getCategoryIsDisabled","Container","FormGroup","FormLabel","FormSelect","getProvinceIsDisabled","_props$stockState$Reg4","isEditable","FormHelperText","defaultValue","OutlinedInput","fullWidth","autoComplete","validate","maxDate","moment","startOf","ReactDatetime","locale","dateFormat","timeFormat","isValidDate","currentDate","closeOnSelect","closeOnTab","closeOnClickOutside","inputProps","placeholder","dateInputProps","onFocus","e","handleValidDate","startAdornment","InputAdornment","DateRange","greaterThanZero","_ref3","onBlur","readOnly","endAdornment","disableTypography","_ref4","rows","registerStockInWarehouseMap","WarehouseId","CategoryId","EntryDate","entryDate","format","Quantity","BatchNumber","Notes","notes","registerStockInWarehouse","methods","useForm","mode","handleSubmit","formState","FormProvider","onSubmit","closeModal","GeneralData","setFormValuesOnMount","RegisterLossBreakModal","getBatchNumberIsDisabled","registerLossBreakInWarehouse","Motive","registerLossOrBreak","reValidateMode","unregister","CustomDialogTitle","withStyles","closeButton","other","MuiDialogTitle","CloseIcon","Transition","forwardRef","ref","Slide","direction","dialogContent","GenericDialog","Dialog","TransitionComponent","handleClose","DialogContent","hideGenericDialogAction","showGenericTwoButtonDialogAction","submessage","yesAction","noAction","iconType","modalHelpIcon","modalResultInfoText","useStylesGenericDialog","componentStylesGenericDialog","hideGenericDialog","_props$dialogState$ge2","_props$dialogState$ge3","handleGenericDialogClose","_props$dialogState$ge","dialogState","handleGenericDialogOK","handleGenericDialogYes","handleGenericDialogNo","CardContent","HelpOutlineIcon","GetIconLegacy","dialogType","loadDialogButtons","CheckCircleOutlinedIcon","CancelOutlinedIcon","DropzoneField","register","maxNumberOfFiles","accept","maxFileSize","hasPreview","showFileNameOnPreview","photosPreviewName","photosPreviewBase64","photosPreviewURL","handleMediaDelete","filesState","setFiles","filesMaxNumberError","setFilesMaxNumberError","imageTypeError","setImageTypeError","fileSizeError","setFileSizeError","getRootProps","getInputProps","useDropzone","validator","file","aux","concat","maxFiles","onDrop","files","_getValues","newFiles","prevState","f","addFiles","photoPreviewBase64","fileType","substring","element","fileItem","_fileItem$file","splice","remove","ClearIcon","getCategories","_props$stockState$kit2","_props$stockState$kit3","_props$stockState$kit4","_props$stockState$kit5","_props$stockState$kit6","tableState","setTableState","tableBody","_props$stockState$kit","kitDeliveryDetails","categories","c","_c$professionalKit$un","_c$professionalKit","_c$professionalKit2","unitPrice","refNumber","SearchIcon","boxFill","candidate","identityCardOrTaxIdNum","totalKits","TableContainer","Table","TableHead","TableRow","TableCell","TableBody","fileMaxSizeLabel","multiple","kitDeliveryMap","kitDeliveryData","kitsDelivered","applicationId","_kitDeliveryData$ware","_kitDeliveryData$ware2","_kitDeliveryData$note","_kitDeliveryData$file","ApplicationId","DeliveryDate","deliverDate","KitsDelivered","Observations","FormData","append","fileUpload","getUserInfo","userId","frontOfficeIndividualUserUpdate","getListAsString","returnString","auxList","l","join","getStringFromList","getListFromFormData","registerAction","user","noRedirect","updateProfileAction","updateProfile","surname","getFilteredFrontOfficeUsersActions","getFilteredFrontOfficeUsers","nameOfuser","address","numBI","municipality","userType","phone","isActive","getFilteredBackOfficeUsersActions","_res$data2$data","municipalityId","municipalityName","profile","getUserInfoAction","_record$userSingular$","_record$userSingular$2","_record$userSingular$3","_record$userSingular$4","_record$userSingular$5","_record$userSingular$6","_record$userSingular$7","_record$userSingular$8","_record$userSingular$9","userInfo","mobilePhone","alternativeMobilePhone","userCode","userDocuments","userTypeDocuments","userSingular","dateOfBirth","identityCard","specialNeedsId","specialNeedsPercent","gender","genderId","maritalStatus","maritalStatusId","nationality","nationalityId","niss","hasNISS","canModifyIdentityCard","compositeAddress","district","academicLevel","academicLevelId","degree","degreeId","professionalTraining","professionalTrainingId","entrepreneurshipTraining","entrepreneurshipTrainingId","smallBusinessMgmtTraining","smallBusinessMgmtTrainingId","professionalExperience","professionalExperienceList","experience","isAvailableForInternshipOpportunities","isAvailableForEmploymentOpportunities","familyIncome","household","intendedWorkplaceProvinceId","professionalQualification","otherProfessionalExperience","secondaryExperience","occupationalCategoryId","studiedLanguagesList","secondaryProfessionalExperienceList","getBackOfficeUserInfoAction","roles","managerBankId","managerLoanTypes","employmentCenterId","getUserDocumentAction","updateBoUserAction","backOfficeUserUpdate","_error$response4","_error$response4$data","validateColectiveUserAction","validateColectiveUser","_error$response5","_error$response5$data","getFoUserColectiveBasicInfoAction","getFoUserColectiveBasicInfo","taxIdNumber","contactName","searchFOUsersAction","searchFOUsers","getFOUserOverviewAction","getFOUserOverview","addFOUserHistoryEntryAction","addFOUserHistoryEntry","getFOUserHistoryActions","getFOUserHistory","historyEntryTypeKeyValue","getFOUserEmploymentHistoryAction","getFOUserEmploymentHistory","getFOUserUnemploymentHistoryAction","getFOUserUnemploymentHistory","createFOUserUnemploymentHistoryAction","createFOUserUnemploymentHistory","updateFOUserUnemploymentHistoryAction","updateFOUserUnemploymentHistory","updateFOUserEmploymentHistoryAction","put","updateFOUserEmploymentHistory","createFOUserEmploymentHistoryAction","createFOUserEmploymentHistory","getFoUSInterventionOtherAreaAction","createFoUSInterventionOtherAreaAction","updateFoUSInterventionOtherAreaAction","searchBar","pointerEvents","searchIconRoot","searchIconButton","searchFieldDiv","searchIconDiv","advancedSearchDiv","searchResults","searchResultsButton","circularProgress","advancedSearchButton","_props$searchResultLi","_props$searchResultLi2","_props$searchResultLi3","_props$searchResultLi4","_props$searchResultLi5","_props$searchResultLi6","searchValue","setSearchValue","openDropdown","setOpenDropdown","wrapperRef","useRef","handleClickOutside","current","contains","addEventListener","removeEventListener","handleSearch","searchResultList","objectFit","advancedSearchPath","loadingSearch","InputBase","_e$target","newValue","onKeyDown","searchResultPath","location","reload","ReactHtmlParser","_props$usersState2","_props$usersState2$se","_props$usersState2$se2","_props$usersState3","setSearchResultList","_props$usersState","_props$usersState$sea","_props$usersState$sea2","_props$usersState$sea3","usersState","searchFOUsers_result","usersList","SearchBar","searchText","searchFOUsers_loading","hideKitCharacterizationResultModal","hideRegisterStockInWarehouseResultModal","showRegisterLossBreakModal","showRegisterInWareHouseModal","hideDeliverKitResultModal","showDeliverKitModal","showDeliverKitModalAction","setOpen","openSub","setOpenSub","openInfoDissemination","setOpenInfoDissemination","showSearch","anchorRefApplication","anchorRef","anchorRefSub","anchorRefUsers","anchorRefInfoDissemination","anchorRefOpportunity","handleRegisterKitInWarehouseResulClose","handleCloseLoss","handleCloseWarehouse","handleCloseDeliverKit","handleCloseApplication","handleCloseSub","handleCloseUsers","handleCloseInfoDissemination","handleCloseOpportunity","handleListKeyDown","preventDefault","AppBar","elevation","Toolbar","disableGutters","require","xlUp","implementation","NavbarMenuDropdown","lgDown","handleToggleApplication","prevOpenApplication","ListItemIcon","Popper","role","disablePortal","TransitionProps","placement","Grow","Paper","ClickAwayListener","onClickAway","MenuList","autoFocusItem","handleToggle","prevOpen","handleToggleSub","prevOpenSub","handleToggleOpportunity","prevOpenOpportunity","handleToggleUsers","prevOpenUsers","_ref5","handleToggleInfoDissemination","prevOpenInfoDissemination","_ref6","NotificationsDropdown","UserDropdown","show","RegisterLossBreak","RegisterStockInWarehouse","DeliverKitModal","DeliverKit","showRegisterStockInWarehouseResultModal","registerInWarehouseResult","CustomDialog","SearchBarNavbar","gridItemRoot","gridContainerRoot","bgGradientError","bgGradientWarning","bgGradientInfo","bgGradientSuccess","bgGradientPurple","bgGradientYellow","firstItems","Mail","CreditCard","secondItems","Report","LocationOn","ShoppingBasket","AppsDropdown","FileCopy","items","time","Notifications","Settings","EventNote","LiveHelp","mdDown","AdminNavbarAlternative","openSidebarResponsive","setShowSearch","smUp","Clear","ZoomIn","NotificationsDropdownAlternative","AppsDropdownAlternative","UserDropdownAlternative","defaultProps","getDashboardStockInfoAction","maxResults","stock","getDashboardNotificationsInfoAction","getDashboardNotificationsInfo","getDashboardUnreadNotificationsCountInfoAction","getDashboardNewCompaniesInfoAction","userList","permitCode","userColective","provinceKey","userAvatar","userPhoto","totalUserCount","getDashboardOnGoingApplicationsInfoAction","applications","governmentProgramName","applicationNumber","getDashboardOpportunitiesAction","opportunitiesList","userName","opportunityStateKey","opportunityStateDescription","opportunityType","opportunityTypeDescription","totalOpportunityCount","getOpportunityApplicationFollowUpsWithUnapprovedReportsAction","cardHeaderCounter","actionsCell","readNotificationDividerRoot","cellTextRoot","cellTitleTextRoot","cardHeaderDashboard","cardTitle","backgroundImage","getDashboardOnGoingApplicationsInfo","_props$dashboardState","_props$dashboardState2","_props$dashboardState3","_props$dashboardState4","_props$dashboardState5","_props$dashboardState6","tableHead","Card","CardHeader","action","subheader","dashboardState","dashboardOnGoingApplicationsCount","LinkMaterialUi","dashboardOnGoingApplicationsInfo","Tooltip","ArrowForwardIosIcon","getDashboardNewCompaniesInfo","_props$dashboardState7","lineHeader","dashboardNewCompaniesCount","dashboardNewCompaniesInfo","TableStateChip","chip","dot","generateChip","showErrorIcon","Chip","ErrorOutlineIcon","renderSwitch","getDashboardStockInfo","getColor","getMessage","dashboardStockInfo","getDashboardUnreadNotificationsCountInfo","getNumberOfUnreadNotifications","getHours","getDate","dashboardNotificationsInfo","flexItem","orientation","getDashboardOpportunities","mapOpportunityStateToTableChipColors","stateKey","dashboardOpportunitiesCount","dashboardOpportunitiesInfo","getOpportunityApplicationFollowUpsWithUnapprovedReports","_props$dashboardState8","_props$dashboardState9","_props$dashboardState10","_props$dashboardState11","_props$dashboardState12","mapOpportunityFollowUpStateToTableChipColors","dashboardFollowUpsWithUnapprovedReportsInfo","totalFollowUpsCount","opportunityApplicationsFollowUp","candidateCode","companyName","candidateFollowUpStateKey","candidateFollowUpStateDescription","cardDeck","flexFlow","newsMessage","getApplicationVersionAction","_userType","_date","lastLoginDate","showNews","news","versionMessage","useStylesCardDeck","componentStylesCardDeck","getApplicationVersion","showNewsModal","setShowNewsModal","loggedIn","CardOnGoingApplications","CardStock","CardNewCompanies","CardPendingOpportunities","CardUnapprovedFeedbackReports","CardNotifications","NewsModal","TableBackdrop","ArrayUtils","sentIcon","AccordionRoot","typographyMessage","useStylesNotifications","componentStylesNotifications","updateNotification","notificationsList","setNotificationsList","notifications_list","Accordion","val","AccordionSummary","SendIcon","AccordionDetails","notifications_Loading","Pagination","page","handleChangePage","notificationsMap","_formData$origin","search","maxResult","isValid","filterCounter","setFilterCounter","filterKey","clearChildKeyList","newFilter","_data$origin$code","_data$origin","filterList","setPage","FilterSection","CardNotificationsDashboard","header","gridItem","displayInlineBlock","mb0","breadcrumbRoot","breadcrumbOl","breadcrumbLi","breadcrumbSeparator","breadcrumbActive","textWhite","SimpleHeader","section","subsection","Breadcrumbs","Home","boxNameCategory","gridDeleteIconRoot","inputSmall","inputLarge","useStylesForms","componentStylesForms","Elements","titleTypographyProps","FormControl","Select","IconComponent","KeyboardArrowDown","FormControlLabel","Checkbox","labelPlacement","defaultChecked","RadioGroup","Radio","defaultInputProps","TagsInput","divElementRef","inputElementRef","tagState","setTagState","isFocusedState","setIsFocusedState","hasControlledInputHook","inputValueHook","tagProps","renderLayout","renderTag","addKeys","removeKeys","focusedClassName","addOnBlur","addOnPaste","pasteSplit","onlyUnique","maxTags","validationRegex","tagDisplayProp","inputValue","onChangeInput","_getTagDisplayValueHook","tagInner","_makeTagHook","_removeTagHook","indexInner","valueInner","changed","_clearInputHook","_tagHook","_addTagsHook","tagsInner","onValidationReject","arr","out","indexOf","uniq","tag","every","currentTag","rejectedTags","_validateHook","tagDisplayValueInner","trim","remainingLimitInner","Math","max","newValueInner","indexesInner","_shouldPreventDefaultEventOnAddHook","addedInner","emptyInner","keyCodeInner","preventSubmit","focusHook","focus","handleOnFocusHook","acceptHook","addTagHook","handlePasteHook","dataInner","window","clipboardData","getData","getClipboardData","handleKeyDownHook","defaultPrevented","keyCode","keyInner","addInner","removeInner","handleClickHook","handleChangeHook","handleOnBlurHook","handleRemoveHook","inputPropsHook","otherInputProps","propsInner","currentValue","divClassName","tagComponents","index","onRemove","getTagDisplayValue","inputComponent","onPaste","addTag","useImperativeHandle","_getDivElementRef","_getInputElementRef","_getTagState","_getTagDisplayValue","_makeTag","_removeTag","_clearInput","_tag","_addTags","_validate","_shouldPreventDefaultEventOnAdd","blur","clearInput","handlePaste","handleKeyDown","handleClick","handleChange","handleOnFocus","handleOnBlur","handleRemove","hasControlledInput","classNameRemove","d","dropzoneAvatarRoot","dropzoneAvatarImg","sliderBadge","buttonContainedDefault","buttonContainedPrimary","buttonContainedInfo","buttonContainedSuccess","buttonContainedError","buttonContainedWarning","buttonOutlineInfo","buttonOutlineSuccess","buttonOutlineError","buttonOutlineWarning","buttonActive","buttonActivePrimary","buttonActiveSecondary","buttonActiveInfo","buttonActiveSuccess","buttonActiveError","buttonActiveWarning","buttonDisabled","butttonInfoContainedGroup","letterSpacingInherit","buttonContainedFacebook","buttonContainedTwitter","buttonContainedGoogle","buttonContainedInstagram","buttonContainedPinterest","buttonContainedYoutube","buttonContainedVimeo","buttonContainedSlack","buttonContainedDribbble","buttonContainedGithub","buttonIconOnly","generalButton","generalSubmitButton","filterButton","useStylesButtons","componentStylesButtons","useStylesSwitch","componentStylesSwitch","dropdownOptions","Components","startDate","setStartDate","endDate","setEndDate","sliderSingle","setSliderSingle","sliderDouble","setSliderDouble","tagsInputState","setTagsInputState","querySelector","Quill","modules","toolbar","getElementById","classList","currentSingleFile","Dropzone","autoDiscover","singleDropzone","url","thumbnailWidth","thumbnailHeight","previewsContainer","getElementsByClassName","previewTemplate","innerHTML","acceptedFiles","init","this","on","removeFile","destroy","currentMultipleFile","handleReactDatetimeChange","who","Date","_d","getClassNameReactDatetimeDays","Email","Visibility","Public","Call","closeIcon","popupIcon","close","renderDay","tagsinput","Switch","Slider","min","step","toFixed","htmlFor","imgProps","Delete","borderSuccess","textWarning","Validation","customStylesFirstNameValue","setCustomStylesFirstNameValue","customStylesFirstNameValidation","setCustomStylesFirstNameValidation","customStylesLastNameValue","setCustomStylesLastNameValue","customStylesLastNameValidation","setCustomStylesLastNameValidation","customStylesUsernameValue","setCustomStylesUsernameValue","customStylesUsernameValidation","setCustomStylesUsernameValidation","customStylesCityValue","setCustomStylesCityValue","customStylesCityValidation","setCustomStylesCityValidation","customStylesStateValue","setCustomStylesStateValue","customStylesStateValidation","setCustomStylesStateValidation","customStylesZipValue","setCustomStylesZipValue","customStylesZipValidation","setCustomStylesZipValidation","customStylesCheckboxValue","setCustomStylesCheckboxValue","customStylesCheckboxValidation","setCustomStylesCheckboxValidation","noValidate","loginAction","password","login","token","jwtToken","refreshToken","userPermissionSettings","mustConfirmEmail","recoverPasswordAction","recover_password","sent","resetResetPasswordStateAction","resetSessionExpiredAction","centerBoxItems","centerBoxHorizontally","loginBox","useWindowSize","windowSize","setWindowSize","handleResize","innerWidth","innerHeight","iconStyle","infoMessage","InfoContent","InfoOutlinedIcon","recoverPassword","recoverEmail","useStylesLogin","componentStylesLogin","resetRecoverState","resetSessionExpiredState","resetResetPasswordState","showPassword","setShowPassword","setState","dialogs","setDialogs","loginState","recoverModal","recoverSuccessModal","sessionExpiredModal","stateName","showHideDialog","session_expired","dialog","op","dialogs_temp","mapValues","FilledInput","Lock","handleClickShowPassword","onMouseDown","handleMouseDownPassword","VisibilityOff","login_error","login_loading","RecoverDialogContent","recover_password_loading","resetPasswordAction","newPassword","reset_password","changePasswordMap","currentPassword","changePasswordMap2","Password","usePasswordValidation","firstPassword","secondPassword","requiredLength","passwordValidation","setPasswordValidation","validLength","hasNumber","upperCase","lowerCase","specialChar","match","states","toLowerCase","resetPassword","resetResetState","query","URLSearchParams","useLocation","showConfirmModal","setShowConfirmModal","showPasswordConfirm","setShowPasswordConfirm","handleClickShowPasswordConfirm","handleMouseDownPasswordConfirm","setPassword","setUserName","setToken","handleLoginState","validPassword","PasswordMatch","dense","Fragment","reset_password_loading","getFilteredApplicationsActions","_res$data$data","numApplication","userTypeKey","nameOfUser","governmentProgram","subprogram","submissionDate","sumissionDate","stateKeyValue","phoneNumber","candidateMunicipality","hasEntrepreneurshipTraining","getApplicationDetailsGeneralDataActions","applicationStateHistory","applicationStateGroupKey","groupKey","departmentName","userSingularGeneralDataSection","otherApplicationsOfUser","age","birthDate","specialNeeds","specialNeedsPercentage","userColectiveGeneralDataSection","responsibleName","responsibleMobilePhone","responsibleEmail","companyTaxIdNumber","companyPhone","companyEmail","programSubprogramDataSection","programId","programName","subprogramId","subprogramName","benefitKeyValue","benefitName","bankPreferenceId","microcreditAmount","concededMicrocreditAmount","professionalKitsNumber","concededProfessionalKitsNumber","intendedCourseCode","trainingCenterId","internshipAreaId","internshipOpportunityId","kitUnitPrice","parentApplicationId","parentApplicationCode","generatedWorkPosts","complementaryData","complementaryDataSection","complementaryDataId","documents","documentsSection","updateApplicationDetailGeneralDataAction","getApplicationDetailsHistoryActions","actionId","actionName","createDatetime","createUser","addApplicationDetailHistoryEntryAction","getApplicationDocumentAction","getUserApplicationsAction","getUserApplications","getReportAction","reportFileName","updateGeneralDataMap","documentTypes","_formData$complementa","_formData$bank","_formData$bank2","_formData$concededMic","_formData$trainingCen","_formData$intendedCou","_formData$provinceId","_formData$provinceId2","_formData$internshipA","_formData$internshipA2","_formData$internshipO","_formData$internshipO2","listComplementaryDataItems","complementaryDataList","compleData","_formData","_formData$code","_formData2","answer","answerTypeId","toString","application","bank","rejectMotiveId","rejectMotiveObservations","countAnswers","countDoc","dt","documentTypeId","getSubprograms","getFilteredApplications","filterData","getSubprogramByProgramId","getReport","getGovernmentPrograms","withRouter","_props$authState$prov","_props$match3","_props$match3$params","_props$authState4","_props$applicationsSt","_props$applicationsSt2","_props$applicationsSt3","_props$applicationsSt4","stateId","candidateProvince","handleInputValidDate","_formData$application","_formData$identityCar","_formData$userCode","_formData$nameOfUser","_formData$statusId","_formData$governmentP","_formData$programId","_formData$subprogramI","_formData$internshipA3","_formData$province","_formData$candidatePr","_formData$candidateMu","_formData$hasEntrepre","_formData$genderId","_formData$academicLev","_formData$degreeId","statusId","candidateProvinceId","candidateMunicipalityId","applicationsFilterMap","_props$dataSetState$D","_props$dataSetState$D2","_props$dataSetState$D3","_props$dataSetState$D4","_props$dataSetState$D5","_props$dataSetState$D6","_props$dataSetState$D7","_props$dataSetState$D8","_props$match","_props$match$params","_props$match2","_props$match2$params","filterLabel","_isAMomentObject","isLessThanEndDate","bgcolor","isGreaterThanStartDate","cleanFilter","applicationsState","reportsState","get_report_loading","reportEnumKey","parameters","JSON","stringify","applicationsFilterExportReportMap","applicationList","setApplicationList","applicationState","includes","ResultSection","stepperBox","stepperText","circle","fill","check","filledCircle","alertGrid","alertFilledWarning","alertLink","GenericFormSelect","showInitialLabel","checkErrors","nameSplit","hasErrors","nameElement","ListboxProps","getBackOfficeUsers","getBackOfficeRoles","createNotification","notificationData","recipientType","setRecipientType","clearFields","notificationBackOfficeUser","userGroupKeyValue","notificationBackOfficeGroup","motiveId","notificationMotive","subjectId","notificationSubject","notificationObservations","originKey","_props$generalData","_props$generalData2","generalData","loadSpecificGroupOrUser","create_loading","getApplicationDetailsHistory","applicationNum","addApplicationDetailHistoryEntry","expanded","setExpanded","applicationDetailsHistory","applicationDetailsHistory_refresh_results","handleExpandClick","Timeline","historyEntry","TimelineItem","TimelineOppositeContent","TimelineSeparator","TimelineConnector","TimelineContent","historyComment","createSchedulingAction","schedulingDatetime","searchSchedulingsAction","scheduleState","scheduleStateKeyValue","provinceDescription","getSchedulingAction","schedulingNumber","scheduleNumber","updateSchedulingAction","getReportDocumentAction","scheduleId","createScheduling","schedulingData","dateTime","setDateTime","schedulingMotive","schedulingDate","schedulingObjectives","AccessTimeIcon","schedulingState","DisplayField","_props$data","_props$data2","_props$generalData3","_props$generalData4","_props$generalData$nu","_props$generalData5","_props$generalData6","_props$generalData$sp","_props$generalData7","_props$generalData8","_props$generalData9","_props$generalData10","useStylesApplicationDetails","componentStylesApplicationDetails","internshipTypeId","_props$generalData27","_props$generalData28","_props$generalData29","_props$generalData30","_props$generalData31","_props$generalData33","_props$generalData34","_props$generalData35","_props$generalData36","_props$generalData37","_props$generalData38","_props$generalData39","_props$generalData40","_props$generalData41","_props$generalData42","_props$generalData43","kitsTotalValue","setKitsTotalValue","applicationStateGroup","setApplicationStateGroup","formattedValue","setFormattedValue","_props$generalData11","_props$generalData12","_props$generalData$tr","_props$generalData$in","internshipArea","handleKitsChange","_props$generalData13","_props$generalData14","_props$generalData15","_props$generalData$tr2","_props$generalData16","_props$generalData17","_props$generalData18","_props$generalData19","_props$generalData$in2","_props$generalData20","_props$generalData21","_props$generalData22","_props$generalData23","_props$generalData24","nextApplicationState","kits","_props$generalData25","_props$generalData26","getAvailableInternshipOpportunitiesOnChange","_props$getValues2","Alert","severity","filledInfo","pattern","minValue","_props$generalData32","onValChange","_value","_value3","_value2","charAt","r","answerValue","isRequired","showHideChildOnChange","childs","isDisabled","DropdownField","_props$selectOptions2","showField","_props$selectOptions","emptyVal","answerOption","_pageState$complement2","setIsEditable","pageState","setPageState","_props$complementaryD","setComplementaryData","complementaryDataAnswers","complementaryDataItem","_props$dataSetState$c","_complementaryData","cd","hasDependencies","showHideFieldsOnChange","parentField","parentFieldType","ch","showChildField","conditionalChildQuestionId","conditionalValue","_pageState$complement","complementaryDataConditionsList","fieldTypeId","childField","valueCondition","getComplementaryDataFields","complementaryDataField","handleEditSection","question","SubmitedDocumentsSection","_props$files","documentType","getDocument","documentId","documentName","getApplicationDocument","getFileInfo","numDocs","documentTypeName","cardHeaderTitle","modalApproveLoan","timelineDot","navigateBefore","navigateBeforeBox","titleGrid","ellipse","vector","pageTitle","containerPadding","saveButton","saveProfileButton","cancelButton","cdTypeAddButton","cdTypeAddButtonLabel","cdButtons","cdLabels","saveButtonFormGroup","cancelButtonFormGroup","containerButtons","submitButton","helpIconBox","helpIconRoot","modalUpdateLoan","userProfileTitle","borderRadiusSemiCurved","userProfileUpdatePasswordButton","opportunityAddQuestionsCardAction","opportunityAddQuestionsButton","CardContentBorderBottom","editButton","editButtonTwo","changeButtonsGroup","changeButtonOf2","changeButton","tableButtons","dropzone","touchAppIcon","tooltipArrow","tabButton","getApplicationRejectMotives","updateApplicationDetails","onCloseMethod","getApplicationDetailsGeneralData","_data$motive","application_update_loading","showDialog","_props$reportsState","_props$reportsState2","applicationData","setApplicationData","showRejectModal","setShowRejectModal","setNextApplicationState","_data$applicationStat","UserSingularGeneralDataSection","UserColectiveGeneralDataSection","ProgramSubprogramDataSection","ComplementaryDataSection","DocumentsSection","ApplicationNumber","applicationExportReportMap","RejectDialog","handleCloseRejectModal","PageTitleHeader","subsectionLink","NavigateBeforeIcon","LocationHeader","activeStep","setActiveStep","setStates","ColorlibConnector","alternativeLabel","completed","StepConnector","updateActiveStep","steps","keyGetter","Map","collection","set","groupBy","_props$history","_props$history$find","data_string","from","found","findIndex","Stepper","connector","Step","StepLabel","StepIconComponent","ColorlibStepIcon","Fab","CheckCircleIcon","Brightness1RoundedIcon","useScrollDirection","scrollDirection","setScrollDirection","blocking","prevScrollY","pageYOffset","updateScrollDirection","scrollY","abs","newScrollDirection","onScroll","requestAnimationFrame","Tabs","tabs","dataTestId","ToggleButtonGroup","exclusive","renderIf","testId","ToggleButton","TABS","setApplicationState","setApplicationStateHistory","tabStep","setTabStep","setApplicationNumber","showAlertMessage","setShowAlertMessage","applicationDetailsGeneralData","application_details_loading","handleTabStep","GeneralDataTab","SchedulingTab","NotificationsTab","HistoryTab","loadTabContent","ApplicationStepper","createSubprogramAction","getFilteredSubprogramsActions","getFilteredSubprograms","benefitTypeName","department","subprogramStateName","status","subprogramStateKeyValue","statusKeyValue","vigencyDate","dateFrom","validFrom","dateTo","validTo","convertIntervalToString","getSubprogramDetailsActions","objectives","numVacancies","departmentId","benefitTypeId","categoriesList","numMaxKits","minMicrocreditValue","microcreditMinValue","maxMicrocreditValue","microcreditMaxValue","interestRate","microcreditInterestRate","gracePeriod","microcreditGracePeriod","repaymentPeriod","microcreditRepaymentPeriod","documentTypeList","deliveredProfessionalKits","deliveredProfessionalKitsList","updateSubprogramAction","updateSubprogramStateAction","subprogramCreationMap","_formData$categoryLis","_formData$documentsLi","_formData$governmentP2","_formData$programId2","_formData$benefitType","_formData$benefitType2","_formData$departmentI","_formData$departmentI2","listCategoryIds","listDocumentIds","documentsList","_compleData$condition","itemTitle","itemText","itemType","dataSetEnumId","itemDatasetEnumId","complementaryDataQuestionKey","itemKey","itemIsRequired","conditionsList","condition","_condition$conditionT","_condition$conditiona","_condition$conditiona2","_condition$conditiona3","conditionTypeId","conditionType","conditionalQuestionKey","conditionalQuestionId","subprogramObjectives","subprogramDescription","subprogramValidFrom","subprogramValidTo","published","publishedOn","benefitType","getSubprogramStates","getFilterSubprograms","getDepartments","subprogramStateId","subProgramId","pageIndex","pageSize","refreshResults","_formData$benefitType3","_formData$departmentI3","_formData$governmentP3","_formData$programId3","_formData$subProgramI","subprogramFilterMap","subprogramState","searchSubprograms_loading","updateSubprogramState","_props$subprogramStat","_props$subprogramStat2","subProgramList","setSubProgramList","MapSubprogramStateToTableChipColors","yellowChipArray","width10","subprogramNumber","auxData","handlePublishSubprogramClick","CheckBoxOutlineBlankIcon","checkedIcon","CheckBoxIcon","FormMultipleSelect","limitTags","formMultipleClass","disableCloseOnSelect","renderOption","selected","getNotAssignedActiveCategories","loadData","subprogramDetailsData","getOptions","MicrocreditFields","isLessThanMaxValue","formattedMinValue","onMinValChange","isGreaterThanMinValue","formattedMaxValue","onMaxValChange","onInterestRateChange","_props$subprogramDeta3","_props$subprogramDeta4","setBenefitType","setFormattedMinValue","setFormattedMaxValue","_value4","_value6","_value5","benefitItem","categoryItems","_props$subprogramDeta","_props$subprogramDeta2","onSetBenefit","unregisterProfessionalKitFields","unregisterMicrocreditFields","_option$label","onChangeBenefitType","ProfessionalKitFields","loadSelectedBenefitFields","isNullOrUndefined","object","getDatasetStateByName","getDatasetDataByCode","_props$errors","_props$errors2","_props$errors3","conditionInfo","complementaryDataInfoForConditions","selectedDatasetKey","itemDatasetKey","handleGetConditionalDataChangeEvent","_props$conditionInfo2","_props$conditionInfo","_props$complementaryD2","handleConditionalQuestionIdChangeEvent","removeConditionFromListEvent","DeleteIcon","getPredefinedQuestions","setConditionsList","_props$questionInfo$","_props$questionInfo$2","_props$questionInfo$3","_props$questionInfo$4","_props$questionInfo$5","_props$questionInfo$6","questionInfo","conditionKey","datasetKey","complementaryDataDependandKey","indexOfConditionItem","complementaryDataDependencyKey","complementaryDataType","FormatListBulletedIcon","FormatAlignLeftIcon","aux_complementaryDataType","loadCardTitle","_props$errors4","_props$errors5","_props$errors6","_props$errors7","_props$errors8","_props$errors9","_props$errors10","_props$errors11","updateComplementaryDataDropdownListEvent","loadCardContent","hasComplementaryDataWithDatasets","uuidv4","ConditionSection","resetComplementaryDataItemEvent","clearErrors","saveComplementaryDataListEvent","ComplementaryDataCard","_props$questionInfo","_props$questionInfo2","sx","PriorityHighIcon","removeComplementaryDataListEvent","addComplementaryDataItemComponentEvent","mapDispatchToProps","complemData","answerDatasetName","complementaryDataTypeState","setComplementaryDataTypeState","typeId","complementaryDataItemUuid","setComplementaryDataItemUuid","getQuestionTitle","questionType","existingComplementaryDataItem","updateComplementaryDataListEvent","addComplementaryDataListEvent","setComplementaryDataList","_questionInfo$answer","_questionInfo$answer2","itemPredefinedQuestion","predefinedQuestion","_questionInfo$answer3","indexOfComplementaryDataItem","_cd$conditionsList","newFilteredCondlitionList","questionKey","unregisterComplementaryDataFields","compDataKey","complementaryDataQuestion","complementaryDataDatasetEnumId","indexOfCompDataItem","questionText","datasetEnumId","addComplementaryDataItemComponent","AddIcon","ComplementaryDataItem","unregisterComplementaryDataFieldsEvent","loadComplementaryDataItem","ComplementaryDataItemReadOnly","getDocuments","subProgramDocuments","handleLoadSubprogramDetailsData","Message_Generic_DateGreaterThanTodayField","createSubprogram","subprogramData","Benefits","Documents","ComplementaryData","handleCancelOnClickEvent","createSubprogram_loading","updateSubprogram","isEditableGeneralData","setisEditableGeneralData","isEditableBenefits","setisEditableBenefits","isEditableDocuments","setisEditableDocuments","isEditableComplementaryData","setisEditableComplementaryData","_formData$categoryLis2","_formData$documentsLi2","_formData$governmentP4","_formData$governmentP5","_formData$programId4","_formData$programId5","_formData$departmentI4","_formData$departmentI5","_formData$benefitType4","_formData$benefitType5","_compleData$condition2","_condition$conditionT2","_condition$conditiona4","_condition$conditiona5","_condition$conditiona6","subprogramUpdateMap","handleEditGeneralDataSection","handleEditBenefitsSection","handleEditDocumentsSection","handleEditComplementaryDataSection","updateSubprogram_loading","handleAproveSubprogramClick","updateSubprogramState_loading","getProfessionalKitDeliveryDocument","delivProfKit","deliveryDate","deliveryDocument","getSubprogramDetails","_props$match4","_props$match4$params","_props$subprogramStat4","_props$subprogramStat6","_props$subprogramStat9","_props$subprogramStat10","_props$subprogramStat11","_props$subprogramStat12","_props$subprogramStat13","setSubprogramNumber","setSubprogramName","_props$subprogramStat3","_props$subprogramStat5","_props$match5","_props$match5$params","refresh_results","get_subprogram_details_loading","_props$subprogramStat7","_props$subprogramStat8","DetailDataTab","AssignedKitsTab","updateProfessionalKitState","isCreate","updateKitStatus","setIsActive","_props$formattedUnitP","formattedUnitPrice","onUnitPriceChange","setFormattedUnitPrice","ErrorIcon","characterizeProfessionalKitMap","UnitPrice","PaymentDate","paymentDate","RefundDate","refundDate","KitDescription","kitDescription","characterizeProfessionalKit","getInactiveCategories","characterizeProfessionalKit_loading","updateProfessionalKitMap","Id","updateProfessionalKit","getProfessionalKitDetails","professionalKitDetails","setFormFields","setCategoryField","getProfessionalKitDetails_loading","updateProfessionalKit_loading","_props$stockState","_props$stockState2","kitsList","setKitsList","searchProfessionalKit_loading","Tablebackdrop","searchProfessionalKitsMap","Filter","CardSearchResult","searchStocksMap","searchStocks","_props$stockState3","_props$stockState4","stocksReportMap","stocksList","setStocksList","openRegisterInWarehouseModal","searchStocks_loading","reloadPageAction","_props$stockState$sto","_props$stockState$sto2","_props$stockState$sto3","stockDetails","stockLog","receivedOn","_props$stockState$sto4","_props$stockState$sto5","_props$stockState$sto6","_props$stockState$sto7","_props$stockState$sto8","get_stocks_detail_loading","StockLogTable","userBOFilterMap","userStatus","getUsers","backoffice_users_search_loading","boUserList","setBoUserList","_prop$profile","FilterSectionBo","ResultSectionBo","FormDatePicker","maxDateToday","minDateToday","startDateFieldName","endDateFieldName","rest","_getValues2","selectedDate","toDate","setHours","isValidDateFormat","minDate","userFilterMap","_formData$email","_formData$numBI","_formData$typeOfUser","_formData$typeOfUser2","_formData$isActive","_formData$isActive2","typeOfUser","_props$match$params$t","userTypes","isAdvancedSearch","frontoffice_users_search_loading","addEmptyField","foUserList","setFoUserList","userColectiveDetailsPagePath","userSingularDetailsPagePath","FilterSectionFo","ResultSectionFo","_props$usersInfo$resu","_props$usersInfo","_props$usersInfo$resu2","showBankSelection","setShowBankSelection","showEmploymentAndEntrepreneurshipSelection","setShowEmploymentAndEntrepreneurshipSelection","getShowExtraFields","selectedFunctions","provinceValue","functionValue","usersInfo","validEmail","EmailMatch","backOfficeUserRegisterMap","_formData$county","_formData$employmentC","function","county","managerBank","employmentCenter","registerBoUserAction","registerBoUser","BackOfficeUserData","backOfficeUserRegister_loading","FormMonetaryInput","FormInput","numberType","tooltipLabel","_props$usersInfo$resu5","_props$usersInfo$resu6","dateHasSlash","isAdult","diff","maxLength","_props$usersInfo$resu3","_props$usersInfo$resu4","requiredIf","_ref7","_ref8","_ref9","validPhoneNumber","_ref10","phoneNumberMatch","_ref11","_ref12","_ref13","_ref14","_ref15","_ref16","handleGetDataSetByName","datasetName","_props$dataSetState$d","boxNameCategoryForm","minZero","getUserDocument","getFileInfoByDocumentType","doc","documentIndex","handleEditSectionPersonalData","IndividualUserPersonalData","isEditablePersonalData","handleEditSectionProfessionalData","IndividualUserCompanyData","isEditableProfessionalData","handleEditSectionUserDocuments","isEditableUserDocuments","frontOfficeIndividualUserRegisterMap","_getListFromFormData","_formData$isAvailable","_formData$isAvailable2","_formData$professiona","_formData$otherProfes","_getListFromFormData2","_getListFromFormData3","lastname","birthdate","intendedWorkplaceProvince","occupationalCategory","secondaryProfessionalExperience","studiedLanguages","getUserInfo_loading","IndividualUserData","PasswordCard","register_fo_user_loading","_props$usersInfo$resu55","_props$usersInfo$resu56","_props$usersInfo$resu7","_props$usersInfo2","_props$usersInfo2$res","_props$usersInfo$resu8","_props$usersInfo$resu9","_props$usersInfo$resu11","_props$usersInfo$resu12","_props$usersInfo$resu13","_props$usersInfo$resu14","_props$usersInfo$resu15","_props$usersInfo$resu16","_props$usersInfo$resu17","_props$usersInfo$resu18","_props$usersInfo$resu19","_props$usersInfo$resu20","_props$usersInfo$resu21","_props$usersInfo$resu22","_props$usersInfo$resu23","_props$usersInfo$resu24","_props$usersInfo$resu25","_props$usersInfo$resu26","_props$usersInfo$resu27","_props$usersInfo$resu28","_props$usersInfo$resu29","_props$usersInfo$resu30","_props$usersInfo$resu31","_props$usersInfo$resu32","_props$usersInfo$resu33","_props$usersInfo$resu34","_props$usersInfo$resu35","_props$usersInfo$resu36","_props$usersInfo$resu37","_props$usersInfo$resu38","_props$usersInfo$resu43","_props$usersInfo$resu44","_props$usersInfo$resu45","_props$usersInfo$resu46","_props$usersInfo$resu47","_props$usersInfo$resu48","_props$usersInfo$resu49","_props$usersInfo$resu50","_props$usersInfo$resu51","_props$usersInfo$resu52","_props$usersInfo$resu53","_props$usersInfo$resu54","setOldMobilePhone","setOldEmail","_props$usersInfo$resu10","businessPurposeList","businessPurposes","businessPurpose","permitCodeValidUntil","provinces","_props$usersInfo$resu39","_props$usersInfo$resu40","_props$usersInfo$resu41","_props$usersInfo$resu42","municipalityList","municipalities","NISS","companyEACId","subsidiaryCompanyEACId","propertyType","subsidiaryCompany","subsidiaryCompanyPostalCode","subsidiaryCompanyActivity","maleWorkersNumber","femaleWorkersNumber","approved","validNumber","frontOfficeEnterpriseUserRegisterMap","_formData$propertyTyp","_formData$subsidiaryC","_formData$subsidiaryC2","_formData$subsidiaryC3","_formData$subsidiaryC4","_formData$subsidiaryC5","_formData$maleWorkers","_formData$femaleWorke","EnterpriseUserData","frontOfficeIndividualUserUpdateMap","_formData$specialNeed","_formData$familyIncom","_formData$household","_formData$secondaryEx","_formData$professiona2","_formData$studiedLang","_formData$secondaryPr","add","SpecialNeedsPercent","CardTableContainer","tableCardRoot","viewMoreLink","CardHeaderLink","Label_See_More","actionButtonOnClick","TableCardHeaderButton","actionButtonLabel","formatDate","AddEmploymentHistoryModal","_errors$professionalC","_errors$opportunityTy","editing","onCloseModal","onSuccess","useParams","useSelector","useDispatch","defaultValues","useMemo","opportunityTypeId","workedSince","workedUntil","isInefopOpportunity","opportunityReference","isSubmitting","titleSufix","formatedTitle","dataToSubmit","FO_UserSingularId","_props$usersState$get","_props$usersState2$ge","_props$usersState2$ge2","_props$usersState4","_props$usersState4$ge","showAddEmploymentHistoryModal","setShowAddEmploymentHistoryModal","useCallback","handleToggleAddEmploymentHistoryModal","getFOUserEmploymentHistory_result","opportunityAlternateKey","professionalCategoryDescription","salary","observations","getFOUserEmploymentHistory_loading","AddUnemploymentHistoryModal","_data$id","unemploymentHistoryEntryId","_usersState$getFOUser","_usersState$getFOUser2","_usersState$getFOUser3","_usersState$getFOUser4","showAddUnemploymentHistoryModal","setShowAddUnemploymentHistoryModal","handleToggleAddUnemploymentHistoryModal","getFOUserUnemploymentHistory_result","getFOUserUnemploymentHistory_loading","EmploymentAndUnemploymentHistory","EmploymentHistorySection","UnemploymentHistorySection","AddInterventionOtherAreaModal","_errors$interventionO","interventionOtherAreaId","interventionOtherArea","reasonForIntervention","results","InterventionOtherAreaSection","_getFoUSInterventionO","modal","setModal","getFoUSInterventionOtherArea_result","getFoUSInterventionOtherArea_loading","handleToggleModal","interventionOtherAreaDescription","updateIndividualUser","_error$response3","_error$response3$data","oldEmail","oldMobilePhone","setIsEditablePersonalData","setIsEditableProfessionalData","setIsEditableUserDocuments","tabType","setTabType","setFormProfessionalDataValuesOnMount","setPersonalDataFormValuesOnMount","academicLevelList","academicLevels","selectedAcademicLevel","professionalCategoryList","professionalCategories","entrepreneurshipTrainingList","entrepreneurshipTrainings","professionalExperiences","professionalTrainingList","professionalTrainings","smallBusinessMgmtTrainingList","smallBusinessMgmtTrainings","_props$usersInfo$resu57","_props$usersInfo$resu59","_props$usersInfo$resu60","_props$usersInfo$resu61","_props$usersInfo$resu62","_props$usersInfo$resu63","_props$usersInfo$resu64","_props$usersInfo$resu65","_props$usersInfo$resu66","_props$usersInfo$resu67","_props$usersInfo$resu68","_props$usersInfo$resu69","_props$usersInfo$resu70","_props$usersInfo$resu71","_props$usersInfo$resu72","_props$usersInfo$resu76","_props$usersInfo$resu77","_props$usersInfo$resu78","_props$usersInfo$resu79","_props$usersInfo$resu80","_props$usersInfo$resu81","_props$usersInfo$resu82","_props$usersInfo$resu83","_props$usersInfo$resu84","_props$usersInfo$resu85","_props$usersInfo$resu86","_props$usersInfo$resu87","_props$usersInfo$resu88","_props$usersInfo$resu89","_props$usersInfo$resu90","_props$usersInfo$resu91","_props$usersInfo$resu92","_props$usersInfo$resu93","_props$usersInfo$resu94","_props$usersInfo$resu95","_props$usersInfo$resu96","_props$usersInfo$resu97","_props$usersInfo$resu98","_props$usersInfo$resu58","specialNeedsList","genderList","maritalList","marital","nationalityList","nationalities","_props$usersInfo$resu73","_props$usersInfo$resu74","_props$usersInfo$resu75","handleTabType","_props$usersInfo$resu100","_props$usersInfo$resu99","updateIndividualUser_loading","frontOfficeEnterpriseUserUpdateMap","emailChanged","auxEmail","_formData$businessPur","updateEnterpriseUser","getEnterpriseUserInfo","_record$userColective","_record$userColective2","_record$userColective3","_record$userColective4","_record$userColective5","_record$userColective6","_record$userColective7","_record$userColective8","getEnterpriseUserInfoAction","validateColectiveUser_loading","handleValidateColectiveUserEvent","backOfficeUserUpdateMap","updateBoUser","getBackOfficeUserInfo","Number","rolesList","banksList","loanTypesList","employmentCenterList","selectedEmploymentCenter","_props$usersInfo3","_props$usersInfo3$res","getUserInfoBO_loading","backOfficeUserUpdate_loading","changePasswordAction","changePassword","showCurrentPassword","setShowCurrentPassword","handleClickShowCurrentPassword","handleMouseDownCurrentPassword","handleCloseModal","handleChangePassword","updateProfile_loading","nameInitialsAvatar","updatePhotoButton","setFile","errorMaxSize","setErrorMaxSize","imageUploaded","setImageUploaded","hidden","reader","FileReader","fileMaxSize","onloadend","readAsDataURL","updateProfileMap","useStylesProfile","componentStylesProfile","setChangePassword","UserPicture","PersonalForm","PasswordForm","getFilteredLoansActions","aprovedValue","lastInstallment","amountToBePaid","isMissingPayments","loanState","loanStateKeyValue","loanTypeDescription","bankNameInitials","getLoanAction","loanNumber","getLoan","rejectLoanAction","loan","okFunction","rejectLoan","updateLoanAction","auxOperation","loansFilterMap","_formData$loanState","_formData$loanType","loanStateId","loanTypeId","loanType","bankId","updateLoanMap","_formData$amountToBeP","loanId","getLoanStates","getFilteredLoans","_props$authState$user","_props$authState2$use","_props$loansState2","_props$authState8","_props$authState9","_props$authState9$use","_props$loansState3","_props$loansState4","_props$loansState5","_props$loansState6","availableLoanTypes","setAvailableLoanTypes","_props$authState5","_props$authState6","_props$authState6$use","_props$authState7","_props$authState7$use","lt","_props$loansState","loansState","getResultListData","_props$authState4$use","loansExportReportMap","search_loading","_props$loansState$res","_props$loansState2$re","loanList","setLoanList","MapStateToTableChipColors","lightOrangeChipArray","orangeChipArray","whiteChipArray","ApproveSection","updateLoan","update_loan_loading","getLoanRejectMotives","RejectSection","reject_loan_loading","UpdateSection","_data$lastInstallment","setLoanNumber","setData","SHOW","HIDE","approveModal","rejectModal","updateModal","loan_details","loan_details_loading","companyProvince","companyMunicipality","stateDescription","lastInstallmentDate","amountApproved","bankName","rejectMotive","showRejectCancelButton","showApproveUpdateButton","ApproveDialog","UpdateDialog","createInformationAction","getFilteredInformationAction","alternateKey","informationDisseminationTypeId","informationDisseminationTypeKeyValue","informationDisseminationTypeDescription","isPublic","isHighlighted","thumbnail","socialMediaList","getInformationDetailsActions","infoData","publishedBy","createdBy","mediaList","updateInformationAction","updateInformationPublishAction","errorFunction","updateInformationHighlightedAction","highlighted","informationDisseminationMap","mediaToDeleteList","_formData$information","_formData$information2","_formData$socialMedia","infoDissemination","informationDisseminationAlternateKey","informationDisseminationTitle","informationDisseminationDescription","informationDisseminationIsPublic","informationDisseminationPublished","informationDisseminationType","informationDisseminationHighlighted","informationDisseminationPhotoList","informationDisseminationVideoUrlList","mediaUrl","mediaId","socialMedia","sociaMediaTypeKeyValue","getFilterInformation","informationDisseminationAccess","_formData$information3","_formData$information4","_formData$information5","InformationDisseminationTypeKeyValueList","Published","informationDisseminationSearchMap","informationDisseminationState","searchInformation_loading","cardButtons","cardButtonsDisable","switchText","switchNotPublished","switchPublished","alignEnd","cardImgTop","flexShrink","cardImgOverlay","cardLabelTitle","doubleLineTitleEllipsis","descriptionSize","topLeftIcon","quillOverflowHidden","overflowY","updateInformationPublish","_props$publishedOn","statePublished","setStatePublished","StarIcon","StarBorderIcon","interactive","enterDelay","enterNextDelay","ReactQuill","handleChangePublished","publishData","CardsListBackdrop","_props$informationDis","informationList","setInformationList","InformationDisseminationCard","addButtonGrid","addButtonRoot","addButtonIconRoot","deleteButtonIconRoot","deleteButtonRoot","previewOuterBox","previewBox","iframe","EmbeddedVideosField","inputFieldName","maxNumberOfVideoUrls","showPreviews","videoUrlList","videoUrlListState","setVideoUrlListState","videosMaxNumberError","setVideosMaxNumberError","inputFieldEmpty","setInputFieldEmpty","addUrl","urlObject","clearWidthHeightRgx","matchesToClean","at","parseSrcUrl","newList","previews","videoUrl","_e$target$value","createInformation","updateInformation","_props$informationDet6","_props$informationDet8","_props$informationDet10","_errors$informationDi","_errors$informationDi2","_errors$informationDi3","_errors$informationDi4","_getValues3","_props$dataSetState3","_props$dataSetState3$","statePublic","setStatePublic","stateHighlighted","setStateHighlighted","photosList","setPhotosList","setVideoUrlList","setMediaToDeleteList","socialMediaPrefix","_props$informationDet","_props$dataSetState","_props$dataSetState$S","informationDetailsData","media","photoObj","getDataPhoto","videoObj","getDataVideo","SocialMediaType","_props$informationDet2","_props$informationDet3","_props$informationDet4","_props$informationDet5","_props$informationDet7","_props$informationDet9","isInformationType","_props$informationDet15","_props$dataSetState2","_props$dataSetState2$","_props$dataSetState2$2","minLength","validateEmptyContent","desc","span","textContent","validateDescriptionContent","_props$informationDet11","_props$informationDet12","_props$informationDet13","_props$informationDet14","handleRequiredPhoto","linkStandard","socialMediaType","_errors","_errors2","validateIfWebsite","isWebsite","createInformation_loading","updateInformation_loading","CreateEditSection","getInformationDetails","infoId","infoKey","get_information_details_loading","photoItemDiv","videoItemDiv","indicatorIcon","previewDialogDiv","useStylesCarousel","componentStylesCarousel","fullscreenImageSrc","setFullscreenImageSrc","showImagePreview","setShowImagePreview","Carousel","autoPlay","cycleNavigation","navButtonsAlwaysVisible","navButtonsProps","indicatorIconButtonProps","IndicatorIcon","activeIndicatorIconButtonProps","indicatorContainerProps","mediaItem","mediaItemPhotoName","mediaItemVideoName","allow","tabIndex","onError","updateInformationHighlighted","_props$informationDet16","_props$informationDet17","_props$informationDet18","_props$informationDet19","setStateDescription","handleChangeHighlighted","highlightedData","CarouselMediaPreviewSection","DetailsSection","getFilteredOpportunitiesAction","userTaxIdNumber","numVacanciesToCandidatesRatio","approvedCandidates","municipalityKey","employmentCenterKey","reference","validPeriod","opportunityStateId","opportunityTypeKey","totalCandidates","contractTypeId","contractTypeKey","contractTypeKeyValue","contractTypeDescription","internshipTypeKey","internshipTypeDescription","createOpportunityAction","opportunity","updateOpportunityAction","getOpportunitiesDetailsAction","opportunityId","_opportunityId","updateOpportunityStateAction","updateOpportunityState","getSuccessMessage","actionType","getCandidateInformationAction","getCandidateInformation","getOpportunityUsersAction","getOpportunityUsers","userIdentityCard","candidateState","opportunityCandidateStateId","candidateStateDescription","opportunityCandidateStateDescription","applicationDate","opportunityCandidateDate","papeInternshipOverlapsOthersOfUser","getOpportunityDocumentAction","approveOpportunityCandidateAction","isOpportunityApplication","approveOpportunityCandidate","rejectOpportunityCandidateAction","rejectOpportunityCandidate","getFilteredPossibleOpportunityCandidatesAction","_res$data3","addOpportunityCandidatesListAction","addedCandidatesCount","getAllOpportunityApplicationsAction","getAllOpportunityApplications","_res$data4","opportunityTitle","candidateStateId","candidateStateKey","companyId","creationDate","getIsOpportunityApplicationAction","getAllOpportunityApplicationsFollowUpAction","getAllOpportunityApplicationsFollowUp","_res$data5","candidateFollowUpStateId","candidateOverallEvaluation","hasUnapprovedFeedbackReport","getOpportunityApplicationsFollowUpDetailsAction","opportunityCandidateId","getOpportunityApplicationsFollowUpDetails","updateOpportunityFollowupPeriodAction","updateOpportunityFollowupPeriod","getFeedbackReportDetailsAction","feedbackReportId","getOpportunityApplicationsFollowUpFeedbackReport","validateFeedbackReportAction","validateFeedbackReport","amountPaid","createAdHocFeedbackReportAction","createAdHocFeedbackReport","getFilteredAvailableOpportunitiesForUserAction","getFilteredAvailableOpportunitiesForUser","createApplicationsForUserAction","getFilteredOpportunitiesMap","_formData$municipalit","_formData$opportunity","_formData$opportunity2","_formData$opportunity3","opportunityState","opportunityProfessionalCategoryId","opportunityProfessionalCategory","_token","_classPrivateFieldLooseKey","_values","_getKeyValueFromToken","TokenHelper","constructor","defineProperty","_getKeyValueFromToken2","writable","_classPrivateFieldLooseBase","getUserId","NAME","getProvinceId","PROVINCE_ID","getMunicipalityId","MUNICIPALITY_ID","getEmploymentCenterId","EMPLOYMENT_CENTER_ID","decodedToken","jwtDecode","MunicipalityId","EmploymentCenterId","useTokenHelper","_state$authState","getFilteredOpportunities","_props$opportunitiesS","_props$opportunitiesS2","_props$opportunitiesS3","_props$opportunitiesS4","tokenHelper","_props$opportunityDet","opportunityDetailsData","_props$opportunityDet2","_props$opportunityDet3","employmentCenterBlocked","municipalityBlocked","provinceBlocked","redirectToOpportunityCreation","opportunitiesState","opportunitiesExportReportMap","limitaString","limitSize","_props$opportunitiesS5","_props$opportunitiesS6","_props$opportunitiesS7","_props$opportunitiesS8","_props$opportunitiesS9","_props$opportunitiesS10","_prop$reference","_prop$title","_prop$title2","searchOpportunities_loading","getIsOpportunityApplication","userNameOrIdentityCard","_formData$opportunity14","_formData$province7","_formData$municipalit3","_formData$employmentC4","_formData$gender","_formData$academicLev4","_formData$academicDeg","opportunityTitleOrDescription","academicDegree","getAllOpportunityApplicationsMap","opportunityApplications_result","opportunitiesApplicationExportReportMap","getAllOpportunityApplications_loading","mapOpportunityCandidateStateToTableChipColors","opportunityApplications_total_records","_prop$title3","opportunityApplications_total_pages","OpportunityApplicationsFilterSection","OpportunityApplicationsResultSection","applicationFollowUpState","_formData$opportunity15","_formData$application2","_formData$hasUnapprov","getAllOpportunityApplicationsFollowUpMap","getAllOpportunityApplicationsFollowUp_loading","opportunityApplicationsFollowUp_total_records","opportunityApplicationsFollowUp_result","opportunityApplicationsFollowUp_total_pages","OpportunityApplicationsFollowUpFilterSection","OpportunityApplicationsFollowUpResultSection","_props$opportunityApp5","_props$opportunityApp6","_props$opportunityApp7","_props$opportunityApp8","_props$opportunityApp9","_props$opportunityApp10","_props$opportunityApp11","_props$opportunityApp12","_props$opportunityApp13","_props$opportunityApp14","_props$opportunityApp15","_props$opportunityApp16","_props$opportunityApp17","_props$opportunityApp18","_props$opportunityApp19","_props$opportunityApp20","_props$opportunityApp21","isEditableDataSection","setIsEditableDataSection","followUpStartDateState","setFollowUpStartDateState","followUpEndDateState","setFollowUpEndDateState","_props$opportunityApp","_props$opportunityApp2","_props$opportunityApp3","_props$opportunityApp4","opportunityApplicationFollowUpDetails","followUpStartDate","followUpEndDate","applicationSubmissionDate","userAcademicLevelDescription","handleEditDataSection","_methods$getValues","_methods$getValues2","handleValidSecondDate","followUpEvaluation","companyOverallEvaluation","Rating","precision","updateData","newStartDate","newEndDate","handleRefreshPage","FollowUpDetails","update_opportunity_followup_period_loading","followUpHistory","FollowUpHistory","labelDetails","isGreaterThanZero","RatingField","ErrorOutlineOutlinedIcon","onSubmitApproveDialog","isLoading","onSubmitRejectDialog","rejectionMotivesList","getFeedbackReportDetails","_props$opportunitiesS24","_props$opportunitiesS31","_props$opportunitiesS32","_props$opportunitiesS33","_props$opportunitiesS34","_props$opportunitiesS35","_props$opportunitiesS36","_props$opportunitiesS37","_props$opportunitiesS38","_props$opportunitiesS39","_props$opportunitiesS40","_props$opportunitiesS41","_props$opportunitiesS42","_props$opportunitiesS43","_props$opportunitiesS44","_props$opportunitiesS45","_props$opportunitiesS46","_props$opportunitiesS47","_props$opportunitiesS48","_props$opportunitiesS49","_props$opportunitiesS50","_props$opportunitiesS51","_props$opportunitiesS52","_props$opportunitiesS53","_props$opportunitiesS54","_props$opportunitiesS55","_props$opportunitiesS56","_props$opportunitiesS57","_props$opportunitiesS58","_feedbackReportData$q2","feedbackReportData","setFeedbackReportData","StyledTableRow","_feedbackReportData$q","questions","_questions$questionIn","questionInformation","_questionInformation$","questionId","_props$opportunitiesS11","_props$opportunitiesS12","_props$opportunitiesS13","_props$opportunitiesS14","_props$opportunitiesS15","_props$opportunitiesS16","_props$opportunitiesS17","_props$opportunitiesS18","_props$opportunitiesS19","_props$opportunitiesS20","_props$opportunitiesS21","_props$opportunitiesS22","_props$opportunitiesS23","feedbackReportDetails_result","setStateFeedbackReportData","feedbackReportCompletedHours","feedbackReportCompletedHoursJustification","feedbackReportRejectionMotiveDescription","feedbackReportRejectionMotiveObservations","q","_q$questionInformatio","qi","getFeedbackReportDetails_loading","submittedBy","feedbackReportPeriodStartDate","feedbackReportPeriodEndDate","isCompanyFeedbackReport","_props$opportunitiesS25","_props$opportunitiesS26","feedbackReportTypeKeyValue","isAdHoc","feedbackReportStateKeyValue","_questions$questionIn2","questionArea","_props$opportunitiesS27","_props$opportunitiesS28","approveFilter","reportUserId","submittedByUserId","validateFeedbackReportLoading","_props$opportunitiesS29","_props$opportunitiesS30","showConfirmationDialog","setShowConfirmationDialog","handleCloseConfirmationDialog","_data$amountPaid","feedbackReportPeriodDates","UpdatePaymentFeedbackReportDialog","showFeedbackReportModal","setShowFeedbackReportModal","showUpdatePaymentFeedbackReportModal","setShowUpdatePaymentFeedbackReportModal","setFeedbackReportId","setFeedbackReportPeriodDates","handleCloseFeedbackReportModal","handleCloseUpdatePaymentFeedbackReportModal","mapOpportunityFollowUpFeedbackReportStateToTableChipColors","opportunityCandidateCode","createAdHocFeedbackReportLoading","followUpForms","evaluationPeriodStartDate","evaluationPeriodEndDate","handleOpenFeedbackReportModal","submittedByKeyValue","handleOpenUpdatePaymentFeedbackReportModal","FeedbackReportModal","UpdatePaymentFeedbackReportModal","FollowUpForms","FollowUpEvaluation","setTabIndex","Tab","formsSubmittedByCompanyTotal","evaluationSubmittedByCompany","_evaluationSubmittedB","meanEvaluation","formsSubmittedByCandidateTotal","evaluationSubmittedByCandidate","_evaluationSubmittedB2","_questionInformation$2","refreshPage","setRefreshPage","getOpportunityApplicationsFollowUpDetails_loading","opportunityApplicationsFollowUpDetails_result","FollowUpDetailsTab","FollowUpHistoryTab","FollowUpFeedbackReportsTab","FollowUpEvaluationTab","getOpportunityDocument","docFiles","setDocFiles","_props$submetedDocume","submetedDocuments","isCreationPage","showEditButton","_props$opportunityDet19","_props$opportunityDet20","_props$opportunityDet21","_props$opportunityDet22","_props$opportunityDet23","_props$opportunityDet24","_props$opportunityDet25","_props$opportunityQue3","_props$opportunityDet29","_props$opportunityDet30","_props$opportunityDet31","setInternshipType","validToState","setValidToState","validFromState","setValidFromState","addQuestionButtonState","setAddQuestionButtonState","isEditableDocumentsSection","setIsEditableDocumentsSection","startDateState","setStartDateState","endDateState","setEndDateState","_props$opportunityDet32","_props$opportunityDet33","_props$opportunityDet34","_props$opportunityDet35","_props$opportunityDet36","_props$opportunityDet37","_props$opportunityDet38","_props$opportunityDet39","_props$opportunityDet40","_props$opportunityDet41","_props$opportunityDet42","amount","mentorName","mentorMobilePhone","reportingRequired","reportingPeriod","socialPerks","otherPerks","workplace","commune","activeMonths","requiredKnowledge","opportunityStateMotive","stateMotiveDescription","stateMotiveObservations","opportunityQuestions","setOpportunityQuestionsState","_props$opportunityDet43","_props$opportunityDet45","_props$opportunityDet46","_props$opportunityDet47","_props$opportunityDet48","_props$opportunityDet49","_props$opportunityDet50","_props$opportunityDet52","_props$opportunityDet53","_props$opportunityDet54","_props$opportunityDet55","_props$opportunityDet44","contractList","internshipTypetList","timeTableList","timetableTypeId","_props$opportunityDet51","opportunityProfessionalCategories","employmentCentersList","acceptWorkersFromOtherRegions","languagesList","requiredLanguagesIds","getBoolSelectOptionsElementByCode","setFormInitialValues","_props$opportunityDet4","_props$opportunityDet5","_props$opportunityDet6","_props$opportunityDet7","controlInternshipType","selectedType","unregisterAndClearInternshipDependentFields","showPAPEInternshipFields","_props$opportunityDet10","getCardTitle","_props$opportunityDet11","getAmountTitle","_props$opportunityDet15","getContractInternshipTypeLabel","_props$opportunityDet16","showDateFields","_props$opportunityDet8","_methods$getValues3","_methods$getValues4","showQuestionsFields","_props$opportunityDet9","controlOpportunityQuestions","_props$opportunityQue","numQuestions","opportunityQuestionsState","_props$opportunityDet26","_props$opportunityDet27","_props$opportunityDet28","_props$opportunityQue2","removeQuestion","DocumentSection","opportunityDocuments","showStateMotiveArea","_props$opportunityDet17","_props$opportunityDet18","getCardStateMotiveTitle","_props$opportunityDet12","_props$opportunityDet13","_props$opportunityDet14","clearFoUserColectiveBasicInfo","_props$usersInfo$foUs2","_props$usersInfo$foUs3","_props$usersInfo$foUs4","_props$usersInfo$foUs5","_props$usersInfo$foUs6","setOpportunityType","_props$usersInfo$foUs","foUserColectiveBasicInfo","setShowOpportunityDataSection","unregisterAndClearAllFieldForms","unregisterAndClearQuestionFields","getEnterpriseBasicInfo","OpportunityData","showOpportunityDataSection","questionsData","_formData$userId","_formData$numVacancie","_formData$province$co","_formData$province2","_formData$province$ke","_formData$province3","_formData$county$code","_formData$reference","_formData$opportunity4","_formData$opportunity5","_formData$opportunity6","_formData$opportunity7","_formData$title","_formData$description","_formData$timetableTy","_formData$timetableTy2","_formData$timetableTy3","_formData$timetableTy4","_formData$amount$repl","_formData$amount","_formData$contractTyp","_formData$contractTyp2","_formData$contractTyp3","_formData$contractTyp4","_formData$internshipT","_formData$internshipT2","_formData$internshipT3","_formData$internshipT4","_formData$mentorName","_formData$opportunity8","_formData$reportingPe","_formData$employmentC2","_formData$socialPerks","_formData$otherPerks","_formData$workplace","_formData$commune","_formData$requiredKno","_formData$activeMonth","_formData$opportunity9","_formData$requiredLan","timetableType","timetableTypeKey","contractType","opportunity_observations","countQuestion","requiredLanguages","createOpportunityMap","OpportunityCreation","opportunitySubmitLoading","getDialogTitle","updateOpportunityStateMap","opportunityStateMotiveKey","getOpportunityDetails","motivesType","UpdateStateSection","update_opportunity_state_loading","updateOpportunity","opportunityStateData","setopportunityStateData","_formData$alternateKe","_formData$numVacancie2","_formData$province$co2","_formData$province4","_formData$province$ke2","_formData$province5","_formData$county$code2","_formData$county2","_formData$reference2","_formData$opportunity10","_formData$opportunity11","_formData$title2","_formData$description2","_formData$timetableTy5","_formData$timetableTy6","_formData$timetableTy7","_formData$timetableTy8","_formData$amount2","_formData$contractTyp5","_formData$contractTyp6","_formData$contractTyp7","_formData$contractTyp8","_formData$internshipT5","_formData$internshipT6","_formData$internshipT7","_formData$internshipT8","_formData$mentorName2","_formData$opportunity12","_formData$reportingPe2","_formData$employmentC3","_formData$socialPerks2","_formData$otherPerks2","_formData$academicLev2","_formData$workplace2","_formData$commune2","_formData$requiredKno2","_formData$activeMonth2","_formData$opportunity13","_formData$requiredLan2","updateOpportunityMap","handleRejectButton","handleCloseButton","opportunityUpdateLoading","handleApproveButton","UpdateOpportunityStateDialog","candidateId","setCandidateId","overlappingInternship","setOverlappingInternship","handleRejectModal","handleApproveModal","opportunityUsers_loading","approveCandidate_loading","rejectCandidate_loading","getFilteredPossibleOpportunityCandidates","addOpportunityCandidatesList","candidatesListToAddToOpportunity","setCandidatesListToAddToOpportunity","possibleCandidatesList","setPossibleCandidatesList","clearBlockedFilters","setClearBlockedFilters","isAvailableForOpportunities","municipalitiesList","selectedMunicipality","possibleCandidates_result","checkIfCandidateInOpportunityList","userID","handleCandidateInOpportunityList","userState","addCandidateToOpportunityList","removeCandidateFromOpportunityList","_formData$province6","_formData$municipalit2","_formData$academicLev3","studiedLanguagesId","getFilteredPossibleOpportunityCandidatesMap","clearFilter","possibleCandidates_loading","styles","userIDList","_prop$professionalCat","_prop$professionalCat2","_prop$professionalCat3","_prop$professionalCat4","_prop$studiedLanguage","_prop$studiedLanguage2","_prop$studiedLanguage3","_prop$studiedLanguage4","possibleCandidates_total_pages","handleAddOpportunityCandidatesList","usersId","addOpportunityCandidatesList_loading","cardRootDark","width15","tableButtonsDisable","align","searchTotalBox","tableRoot","tableCellRootBodyHead","linearProgressRoot","bgGradientPrimary","bgPrimary","bgPrimaryLight","bgError","bgErrorLight","bgWarning","bgWarningLight","bgInfo","bgInfoLight","bgSuccess","verticalAlignMiddle","rowEllipsis","bgTransparent","arrowAction","tableActionButtonsRoot","noResultsInfo","showAddCandidatesModal","setShowAddCandidatesModal","handleCloseAddCandidatesModal","handleOpenAddCandidatesModal","isAfter","isBefore","CandidatesListSection","AddCandidates","get_opportunity_details_loading","opportunityCandidates","CandidatesTab","_data$userSingular","_data$userSingular2","_data$userSingular3","_data$userSingular9","_data$userSingular9$c","_data$userSingular10","_data$userSingular10$","_data$userSingular11","_data$userSingular12","candidateInfo","opportunityCandidateStateKey","_data$userSingular4","_data$userSingular5","_data$userSingular6","_data$userSingular7","_data$userSingular7$c","_data$userSingular8","_data$userSingular8$c","getListAsStringLabels","getProfessionalExperience","_props$documents","_props$documents2","_data$opportunityCand","opportunityCandidateAnswers","opportunityCandidateHistory","rejectionMotive","setCandidateInfo","candidateInfo_loading","getTabTitle","CandidateGeneralDetails","CandidateProfessionalDetails","opportunityCandidateDocuments","CandidateAnswers","CandidateRejectedMotive","CounterDisplayField","isButton","handleOnClick","userMainDetailsBox","userMainDetailsBoxLeft","userNameDiv","mainDetailsDiv","warningIcon","starIcon","ellipsis","useStylescomponentStylesUserOverview","componentStylescomponentStylesUserOverview","_props$userOverview","_props$userOverview2","_props$userOverview3","_props$userOverview3$","_props$userOverview4","_props$userOverview4$","_props$userOverview5","_props$userOverview5$","_props$userOverview5$2","_props$userOverview6","_props$userOverview6$","_props$userOverview6$2","_props$userOverview7","_props$userOverview7$","_props$userOverview7$2","_props$userOverview8","_props$userOverview8$","_props$userOverview9","_props$userOverview9$","_props$userOverview10","_props$userOverview11","_props$userOverview12","_props$userOverview13","_props$userOverview14","_props$userOverview15","_props$userOverview$u","_props$userOverview16","_props$userOverview17","_props$userOverview18","_props$userOverview19","_props$userOverview20","_props$userOverview21","_props$userOverview22","_props$userOverview23","_props$userOverview24","_props$userOverview25","_props$userOverview26","_props$userOverview27","_props$userOverview28","_props$userOverview29","_props$userOverview30","_props$userOverview31","_props$userOverview32","_props$userOverview33","_props$userOverview34","_props$userOverview35","_props$userOverview36","_props$userOverview37","_props$userOverview38","_props$userOverview39","_props$userOverview40","_props$userOverview41","_props$userOverview42","_props$userOverview43","_props$userOverview44","_props$userOverview45","_props$userOverview46","_props$userOverview47","_props$userOverview48","_props$userOverview49","_props$userOverview50","_props$userOverview51","_props$userOverview52","userOverview","userSingularGeneralDataOverview","userSingularProfessionalDataOverview","professionalExperienceDescriptions","municipalityDescription","accountCreationDate","microcreditIsMissingPayments","WarningIcon","microcreditAmountToBePaid","handleChangeTab","opportunityFollowUpOverallEvaluation","governmentProgramApplicationsCount","opportunityApplicationsCount","professionalTrainingCount","hasProfessionalWallet","opportunityInternshipFinishedCount","concededMicrocreditCount","concededProfessionalKitsCount","schedulesCount","_props$userGeneralDat","_props$userGeneralDat2","_props$userGeneralDat3","_props$userGeneralDat4","_props$userGeneralDat5","_props$userGeneralDat6","_props$userGeneralDat7","_props$userGeneralDat8","_props$userGeneralDat9","_props$userGeneralDat10","_props$userGeneralDat11","_props$userGeneralDat12","_props$userGeneralDat13","_props$userGeneralDat14","_props$userGeneralDat15","_props$userGeneralDat16","_props$userGeneralDat17","_props$userGeneralDat18","userGeneralDataOverview","genderDescription","maritalStatusDescription","specialNeedsDescription","nationalityDescription","isUserColective","contactMobilePhone","contactAlternativeMobilePhone","contactEmail","OverviewSection","GeneralDataSection","ContactsSection","_props$userProfession","_props$userProfession2","_props$userProfession3","_props$userProfession4","_props$userProfession5","_props$userProfession6","_props$userProfession7","_props$userProfession8","_props$userProfession9","_props$userProfession10","_props$userProfession11","_props$userProfession12","_props$userProfession13","_props$userProfession14","_props$userProfession15","_props$userProfession16","_props$userProfession17","_props$userProfession18","_props$userProfession19","_props$userProfession20","_props$userProfession21","_props$userProfession22","_props$userProfession23","_props$userProfession24","_props$userProfession25","_props$userProfession26","_props$userProfession27","_props$userProfession28","_props$userProfession29","_props$userProfession30","_props$userProfession31","_props$userProfession32","_props$userProfession33","_props$userProfession34","_props$userProfession35","userProfessionalDataOverview","academicLevelDescription","academicDegreeDescription","professionalTrainingDescription","entrepreneurshipTrainingDescription","smallBusinessMgmtTrainingDescription","intendedWorkplaceProvinceDescription","occupationalCategoryDescription","yearsOfExperience","secondaryProfessionalExperienceDescriptions","studiedLanguagesDescriptions","professionalWalletNumber","professionalWalletClass","professionalWalletSpecialty","userTrainingCourses","course","courseName","periodStartDate","periodEndDate","_props$userDocuments","_props$userDocuments2","getDocumentTypeName","userDocumentId","documentTypesList","userDocument","useScrollTo","_ref$current","scrollTo","offsetTop","behavior","_props$userSingularPr","_props$userSingularPr2","goToTopOfPage","ProfessionalDataSection","TrainingSection","followUpState","getFOUserOverview_result","_prop$opportunityTitl","CardActions","selectedTab","OpportunityApplicationsFollowUpsTab","_props$applicationsSt5","_props$applicationsSt6","_props$applicationsSt7","_props$applicationsSt8","getUserApplications_result","_prop$state","_prop$state2","subProgramName","getUserApplications_loading","refreshPages","handleRefreshPages","createApplicationsForUser","opportuniesToApply","setOpportuniesToApply","possibleOpportunitiesList","setPossibleOpportunitiesList","companyNameOrTaxId","renderOfferName","_props$userOverview8$2","selectedProfessionalCategoryList","professionalExperienceKeyValues","selectedLanguagesList","studiedLanguagesKeyValues","language","opportunityTypesList","selectedOpportunityType","academicLevelKeyValue","selectedProfessionalCategoryKeyValueList","selectedLanguagesKeyValueList","opportunityProfessionalCategoryList","getFilteredAvailableOpportunitiesForUser_result","checkIfOpportunityInApplicationsList","handleNewApplicationsList","addOpportunitytoApplicationsList","removeOpportunityFromApplicationsList","_formData$province8","_formData$academicLev5","_formData$opportunity16","_formData$languages","languages","getFilteredAvailableOpportunitiesForUserMap","_props$userOverview2$","_props$userOverview3$2","_props$userOverview4$2","getFilteredAvailableOpportunitiesForUser_loading","_prop$languages$join","_prop$languages","_prop$languages$join2","_prop$languages2","professionalCategoriesDescription","handleApplyToOpportunitiesList","opportunitiesId","createApplicationsForUserLoading","showAddCandidateToOpportunitiesModal","setShowAddCandidateToOpportunitiesModal","setRefreshPages","handleCloseAddCandidateToOpportunitiesModal","handleOpenAddCandidateToOpportunitiesModal","GovernmentProgramsApplicationsTab","OpportunityApplicationsTab","AddCandidateToOpportunitiesModal","applicationsListSection","FollowUpsListSection","ApplicationsListSection","userColectiveGeneralDataOverview","businessPurposeDescriptions","opportunitiesCount","_props$userGeneralDat19","_props$userGeneralDat20","_props$userGeneralDat21","_props$userGeneralDat22","_props$userGeneralDat23","_props$userGeneralDat24","_props$userGeneralDat25","_props$userGeneralDat26","_props$userGeneralDat27","permitCodeExpirationDate","technicalCapabilityDescriptions","companyEACDescription","subsidiaryCompanyEACDescription","_props$usersState$get2","_props$selectedTab","_props$usersState$foU","foUserHistory","foUserHistory_refresh_results","attributeRedirectLink","historyTypeKeyValue","userHistory","_props$usersState10","_props$usersState11","_props$usersState11$g","_props$usersState12","_props$usersState12$g","_props$usersState12$g2","_props$usersState13","_props$usersState13$g","_props$usersState13$g2","_props$usersState14","_props$usersState14$g","_props$usersState15","_props$usersState15$g","goToSectionTab","setGoToSectionTab","setGoToTopOfPage","scrollToTopOfPage","sectionTab","getFOUserOverview_loading","_props$usersState3$ge","_props$usersState5","_props$usersState6","_props$usersState6$ge","_props$usersState7","_props$usersState7$ge","_props$usersState8","_props$usersState8$ge","_props$usersState9","UserColectiveGeneralDataTab","UserCollectiveApplicationsTab","UserSingularGeneralDataTab","UserSingularTrainingAndProfessionTab","UserSingularApplicationsTab","EmploymentAndUnemploymentHistoryTab","schedulingsMap","_formData$motiveId","getSchedulings","_props$schedulingStat","_props$schedulingStat2","_props$schedulingStat3","_props$schedulingStat4","filterLabelLong","schedulesReportMap","scheduleList","setScheduleList","getScheduling","schedulingNum","getReportDocument","showApplicationFields","setShowApplicationFields","fileState","schedule_detail","reportDocument","report","subProgram","mentorMentoringAreas","handleRemovedImage","schedule_update_loading","schedule_update_loadin","updateScheduling","updateSchedulingCommand","setScheduleNumber","_props$schedulingStat5","_props$schedulingStat6","schedule_detail_loading","scheduleReport","SchedulesSubmit","descriptionRoot","itemRoot","linkRoot","phoneNumberGrey","boxMargin","content","helpIcon","fontWeight600","fontWeight700","displayBlock","areas","quickGuides","path","_item$quickGuides","_item$subAreas","ListSubheader","subAreas","_item$quickGuides2","FOUsersFilterSection","FOUsersResultSection","routes","collapse","House","iconColor","views","miniName","Dashboard","layout","NavbarAdvancedSearch","OpportunitiesList","OpportunityApplicationsList","OpportunityApplicationsFollowUpList","OpportunityCreate","OpportunityDetails","CandidateDetails","OpportunityApplicationFollowUpDetails","Loans","LoanDetails","InformationDissemination","InformationDisseminationCreate","InformationDisseminationEdit","InformationDisseminationDetails","Schedules","SchedulesDetails","PermMedia","invisible","Login","ResetPassword","QuickGuidesPage","UserProfile","ListAlt","Applications","ApplicationDetails","UsersBackOffice","UsersFrontOffice","BackOfficeUserCreation","CreateIndividualUser","CreateEnterpriseUser","EditIndividualUser","EditEnterpriseUser","EditBackOfficeUser","SubPrograms","SubProgramCreate","SubProgramDetails","CharacterizeKit","KitDetails","ProfessionalKits","Stocks","StockDetails","UserOverview","divider","FlashOn","Palette","Dns","BubbleChart","mainContent","documentElement","scrollTop","scrollingElement","getRoutes","Route","pathname","AdminNavbar","Redirect","authReducer","_action$payload$photo","splitName","splitSurname","reset_ok","datasetReducer","stockReducer","searchProfessionalKitsResult","searchStocksResult","characterizationResult","showCharacterizationResultModal","batchValue","p","dashboardReducer","dashboardNotificationsCount","dashboardFollowUpsWithUnapprovedReportsInfo_loading","subprogramReducer","dialogsReducer","applicationReducer","subprogramsInfo","editResult","schedulingReducer","notificationReducer","_action$payload","usersReducer","getFoUSInterventionOtherArea__result","usersInfoReducer","loansReducer","informationDisseminationReducer","_state$result","indexOfInfoDisseminationItem","opportunitiesReducer","possibleCandidates_total_records","validateFeedbackReport_loading","opportunityUpdateSucceeded","opportunityApplicationsFollowUpDetails_total_records","opportunityApplicationsFollowUpDetails_total_pages","feedbackReportDetails_total_records","feedbackReportDetails_total_pages","reportsReducer","allReducers","combineReducers","dialogReducer","applicationsReducer","OpportunitiesReducer","rootReducer","persistConfig","storage","persistedReducer","persistReducer","store","initialState","createStore","compose","applyMiddleware","reduxThunk","devToolsExtension","configureStore","persistor","persistStore","white_list","UndecoratedSetupAxios","Component","requestInterceptor","responseInterceptor","requestInterceptorSuccessHandler","_this$props$store$get","_this$props$store$get2","getState","check_white_list","config","is_token_expired","newConfig","requestInterceptorHandler","Authorization","requestInterceptorErrorHandler","responseInterceptorSuccessHandler","responseInterceptorErrorHandler","getTime","jwt_decode","exp","flag","el","componentDidMount","interceptors","request","use","componentWillUnmount","eject","Promise","reject","displayName","process","pt","messages_pt","ReactDOM","Provider","PersistGate","ThemeProvider","CssBaseline","SimpleReactLightbox","IntlProvider","BrowserRouter","SetupAxios","AdminLayout","AuthLayout"],"mappings":"0JAAA,OAAe,cAA0B,0C,mCCAzC,OAAe,cAA0B,0C,8/4CCAzC,OAAe,cAA0B,uC,mCCAzC,OAAe,cAA0B,0C,mCCAzC,OAAe,cAA0B,0C,gPCsI1BA,MAtIK,CAClBC,MAAO,CACLC,KAAM,UACNC,MAAO,UACPC,MAAO,WAETC,MAAO,CACLD,MAAO,UACPF,KAAM,WAERI,YAAa,CACXJ,KAAM,eAERK,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,WAEPC,QAAS,CACPN,KAAM,UACNO,SAAU,UACVC,SAAU,UACVC,WAAY,UACZC,UAAW,WAEbC,UAAW,CACTX,KAAM,UACNY,QAAS,UACTC,cAAe,UACfC,aAAc,WAEhBC,QAAS,CACPC,WAAY,UACZC,gBAAiB,UACjBf,MAAO,UACPF,KAAM,UACNkB,QAAS,UACTC,aAAc,UACdC,MAAO,WAETC,MAAO,CACLnB,MAAO,UACPF,KAAM,UACNkB,QAAS,UACTC,aAAc,UACdC,MAAO,UACPE,mBAAoB,WAEtBC,KAAM,CACJvB,KAAM,UACNwB,WAAW,UACXC,MAAO,UACPC,KAAM,WACNR,QAAS,UACTC,aAAc,UACdC,MAAO,WAETO,WAAY,CACVC,QAAS,WAEXC,KAAM,CACJC,YAAa,UACbC,eAAgB,UAChBC,iBAAkB,UAClBhC,KAAM,UACN6B,KAAM,UACNI,SAAU,UACVd,aAAc,WAEhBe,QAAS,CACPjB,gBAAiB,UACjBD,WAAY,UACZhB,KAAM,UACNiC,SAAU,UACVf,QAAS,UACTC,aAAc,UACdC,MAAO,WAETe,SAAU,CACRnC,KAAM,UACN6B,KAAM,WAERO,QAA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Ae,CACpBrqD,UACAsJ,SAAU,KACV2yJ,0BAA4BH,GAAWA,EACvCK,+BAAiC9vK,GAAU4wK,QAAQC,OAAO7wK,GAC1D+vK,kCAAoCt7J,GAAaA,EACjDu7J,gCAAkChwK,GAAU4wK,QAAQC,OAAO7wK,IApBzDgvK,GAuBG8B,YAAc,aAoHR9qF,mBAAWgpF,I,UC1HnB,MAAMn7J,GAAmBk9J,sDACnBx2J,GAAmBw2J,uDAE1B5qI,GAAW,CACf6qI,GAAIC,IAINC,IAAS11H,OACP3+B,eAACs0J,IAAQ,CAAC9C,MAAOA,GAAMpxJ,SACrBJ,eAACu0J,KAAW,CAACx6H,QAAS,KAAMi4H,UAAWA,GAAU5xJ,SAC/CyJ,gBAAC2qJ,IAAa,CAAC1tK,MAAOA,EAAMsZ,SAAA,CAE1BJ,eAACy0J,IAAW,IACZz0J,eAAC00J,IAAmB,CAAAt0J,SAClBJ,eAAC20J,IAAY,CAACxxH,OATP,KASyB7Z,SAAUA,GAAiB,GAAElpB,SAC3DJ,eAAC40J,IAAa,CAAAx0J,SACZJ,eAAC60J,GAAU,CAACrD,MAAOA,GAAMpxJ,SACvByJ,gBAACiwD,IAAM,CAAA15D,SAAA,CACLJ,eAACkuJ,IAAK,CAACpE,KAAK,SAASnrH,OAAS/+B,GAAUI,eAAC80J,GAAW,IAAKl1J,MACzDI,eAACkuJ,IAAK,CAACpE,KAAK,QAAQnrH,OAAS/+B,GAAUI,eAAC+0J,GAAU,IAAKn1J,MACvDI,eAACquJ,IAAQ,CAACvvE,KAAK,IAAItzE,GAAG,kCAStC1O,SAAS06D,cAAc,S","file":"static/js/main.a2051bee.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/team-1-800x800.fa5a7ac2.jpg\";","export default __webpack_public_path__ + \"static/media/team-4-800x800.99c612eb.jpg\";","export default __webpack_public_path__ + \"static/media/INEFOP_azul.259341ff.png\";","export default __webpack_public_path__ + \"static/media/team-2-800x800.3e08ef14.jpg\";","export default __webpack_public_path__ + \"static/media/team-3-800x800.70911cdd.jpg\";","const themeColors = {\r\n white: {\r\n main: \"#FFFFFF\",\r\n smoke: \"#F5F5F5\",\r\n light: \"#F7FAFC\"\r\n },\r\n black: {\r\n light: \"#12263F\",\r\n main: \"#000000\",\r\n },\r\n transparent: {\r\n main: \"transparent\",\r\n },\r\n gray: {\r\n 100: \"#E9E9E9\",\r\n 200: \"#DCDCDC\",\r\n 300: \"#C2C2C2\",\r\n 400: \"#A9A9A9\",\r\n 500: \"#8F8F8F\",\r\n 600: \"#767676\",\r\n 700: \"#605F5F\",\r\n 800: \"#4B4A4A\",\r\n 900: \"#3A3A3A\",\r\n }, \r\n primary: {\r\n main: \"#002E9E\",\r\n darkBlue: \"#022375\",\r\n greyBlue: \"#475E98\",\r\n mediumBlue: \"#A0B3E2\",\r\n lightBlue: \"#CCD5EC\",\r\n },\r\n secondary: {\r\n main: \"#E0EBF6\",\r\n skyBlue: \"#2185D0\",\r\n mediumSkyBlue: \"#C9E9FB\",\r\n lightSkyBlue: \"#E2F5FF\",\r\n },\r\n warning: {\r\n tableLight: \"#fed3ca\",\r\n tableLightHover: \"#febeb1\",\r\n light: \"#ffd600\",\r\n main: \"#DB2828\",\r\n badgeBg: \"#fee6e0\",\r\n badgeBgHover: \"#f93305\",\r\n badge: \"#ff3709\",\r\n },\r\n error: {\r\n light: \"#f3a4b5\",\r\n main: \"#f5365c\",\r\n badgeBg: \"#fdd1da\",\r\n badgeBgHover: \"#e30b36\",\r\n badge: \"#f80031\",\r\n dialogNotification: \"#f56036\",\r\n },\r\n info: {\r\n main: \"#FB6340\",\r\n lightgreen:\"#87ADBD\",\r\n green: \"#2dce89\",\r\n grey: \" #9CAFC3\",\r\n badgeBg: \"#aaedf9\",\r\n badgeBgHover: \"#0c9cb7\",\r\n badge: \"#03acca\",\r\n },\r\n background: {\r\n default: \"#E0EBF6\",\r\n },\r\n dark: {\r\n tableBorder: \"#1f3a68\",\r\n tableHeadColor: \"#4d7bca\",\r\n tableHeadBgColor: \"#1c345d\",\r\n main: \"#172b4d\",\r\n dark: \"#0b1526\",\r\n snackbar: \"#3c4d69\",\r\n badgeBgHover: \"#09111e\",\r\n },\r\n success: {\r\n tableLightHover: \"#afecd2\",\r\n tableLight: \"#c4f1de\",\r\n main: \"#2dce89\",\r\n snackbar: \"#4fd69c\",\r\n badgeBg: \"#b0eed3\",\r\n badgeBgHover: \"#229c68\",\r\n badge: \"#1aae6f\",\r\n },\r\n facebook: {\r\n main: \"#3b5999\",\r\n dark: \"#2d4474\",\r\n },\r\n twitter: {\r\n main: \"#1da1f2\",\r\n dark: \"#0c85d0\",\r\n },\r\n google: {\r\n main: \"#dd4b39\",\r\n dark: \"#c23321\",\r\n },\r\n instagram: {\r\n main: \"#e4405f\",\r\n dark: \"#d31e40\",\r\n },\r\n pinterest: {\r\n main: \"#bd081c\",\r\n dark: \"#8c0615\",\r\n },\r\n youtube: {\r\n main: \"#cd201f\",\r\n dark: \"#a11918\",\r\n },\r\n vimeo: {\r\n main: \"#04A0F0\",\r\n dark: \"#037fbe\",\r\n },\r\n slack: {\r\n main: \"#3aaf85\",\r\n dark: \"#2d8968\",\r\n },\r\n dribbble: {\r\n main: \"#ea4c89\",\r\n dark: \"#e51e6b\",\r\n },\r\n github: {\r\n main: \"#222222\",\r\n dark: \"#090909\",\r\n },\r\n tableStateChip: {\r\n green: \"#21BA45\",\r\n red: \"#DB2828\",\r\n yellow: \"#FBBD08\",\r\n darkOrange: \"#FB6340\",\r\n lightOrange: \"#FBB140\",\r\n blue: \"#C9E9FB\"\r\n }\r\n};\r\n\r\nexport default themeColors;\r\n","// ##############################\r\n// // // Function that converts from hex color to rgb color\r\n// // // Example: input = #9c27b0 => output = 156, 39, 176\r\n// // // Example: input = 9c27b0 => output = 156, 39, 176\r\n// // // Example: input = #999 => output = 153, 153, 153\r\n// // // Example: input = 999 => output = 153, 153, 153\r\n// #############################\r\nconst hexToRgb = (input) => {\r\n input = input + \"\";\r\n input = input.replace(\"#\", \"\");\r\n let hexRegex = /[0-9A-Fa-f]/g;\r\n if (!hexRegex.test(input) || (input.length !== 3 && input.length !== 6)) {\r\n throw new Error(\"input is not a valid hex color.\");\r\n }\r\n if (input.length === 3) {\r\n let first = input[0];\r\n let second = input[1];\r\n let last = input[2];\r\n input = first + first + second + second + last + last;\r\n }\r\n input = input.toUpperCase();\r\n let first = input[0] + input[1];\r\n let second = input[2] + input[3];\r\n let last = input[4] + input[5];\r\n return (\r\n parseInt(first, 16) +\r\n \", \" +\r\n parseInt(second, 16) +\r\n \", \" +\r\n parseInt(last, 16)\r\n );\r\n};\r\n\r\nexport default hexToRgb;\r\n","import colors from \"assets/theme/colors.js\";\r\nimport hexToRgb from \"assets/theme/hex-to-rgb.js\";\r\n\r\nconst boxShadows = {\r\n boxShadow: \"0 0 2rem 0 rgba(\" + hexToRgb(colors.gray[600]) + \",.15)\",\r\n boxShadowLg: \"0 0 3rem rgba(\" + hexToRgb(colors.gray[600]) + \",.175)\",\r\n buttonBoxShadow:\r\n \"0 7px 14px rgba(\" +\r\n hexToRgb(colors.gray[800]) +\r\n \",0.1), 0 3px 6px rgba(\" +\r\n hexToRgb(colors.black.main) +\r\n \", 0.08)\",\r\n buttonBoxShadowNeutral:\r\n \"0 4px 6px rgba(\" +\r\n hexToRgb(colors.gray[800]) +\r\n \",0.11), 0 1px 3px rgba(\" +\r\n hexToRgb(colors.black.main) +\r\n \", 0.08)\",\r\n iconsPageButtonBoxShadow:\r\n \"0 0 0 1px rgba(\" +\r\n hexToRgb(colors.black.main) +\r\n \", 0.1), 0 4px 16px rgba(\" +\r\n hexToRgb(colors.black.main) +\r\n \", 0.1)\",\r\n inputBoxShadow:\r\n \"0 1px 3px rgba(\" +\r\n hexToRgb(colors.gray[800]) +\r\n \",0.15), 0 1px 0 rgba(\" +\r\n hexToRgb(colors.black.main) +\r\n \", 0.02)\",\r\n linearProgressBoxShadow:\r\n \"inset 0 1px 2px rgba(\" + hexToRgb(colors.black.main) + \", 0.1)\",\r\n menuBoxShadow:\r\n \"0 50px 100px rgba(\" +\r\n hexToRgb(colors.gray[800]) +\r\n \",0.10), 0 15px 35px rgba(\" +\r\n hexToRgb(colors.gray[800]) +\r\n \",0.15), 0 5px 15px rgba(\" +\r\n hexToRgb(colors.black.main) +\r\n \", 0.1)\",\r\n sliderBoxShadow:\r\n \"inset 0 1px 2px rgba(\" + hexToRgb(colors.gray[800]) + \", 0.1)\",\r\n popoverBoxShadow:\r\n \"0px 0.5rem 2rem 0px rgba(\" + hexToRgb(colors.black.main) + \", 0.2)\",\r\n};\r\n\r\nexport default boxShadows;\r\n","// @material-ui/core components\r\nimport { createMuiTheme } from \"@material-ui/core/styles\";\r\n// core components\r\nimport boxShadows from \"assets/theme/box-shadow.js\";\r\nimport hexToRgb from \"assets/theme/hex-to-rgb.js\";\r\nimport themeColors from \"assets/theme/colors.js\";\r\n\r\n// these are the default styles that go on all headings (h1,h2,h3,h4,h5,h6)\r\n// the difference only consists in the font size and text transform\r\nconst defaultHeaderStyles = {\r\n marginBottom: \".5rem\",\r\n fontFamily: \"inherit\",\r\n fontWeight: 600,\r\n lineHeight: 1.5,\r\n color: themeColors.gray[800],\r\n};\r\n\r\n// A custom theme for this app\r\nconst theme = createMuiTheme({\r\n breakpoints: {\r\n values: {\r\n xs: 0,\r\n sm: 576,\r\n md: 768,\r\n lg: 992,\r\n xl: 1200,\r\n },\r\n },\r\n palette: {\r\n ...themeColors,\r\n buttonLightLabel: {\r\n main: \"rgba(\" + hexToRgb(themeColors.white.main) + \", 0.95)\",\r\n },\r\n sidebarLinks: {\r\n main: \"rgba(\" + hexToRgb(themeColors.black.main) + \", 0.5)\",\r\n dark: \"rgba(\" + hexToRgb(themeColors.black.main) + \", 0.9)\",\r\n },\r\n adminNavbarSearch: {\r\n main: \"rgba(\" + hexToRgb(themeColors.white.main) + \", 0.6)\",\r\n },\r\n authNavbarLink: {\r\n main: \"rgba(\" + hexToRgb(themeColors.white.main) + \", 0.65)\",\r\n dark: \"rgba(\" + hexToRgb(themeColors.white.main) + \", 0.95)\",\r\n },\r\n },\r\n typography: {\r\n fontFamily: \"LatoRegular, Open Sans,sans-serif\",\r\n fontSize: 16,\r\n h1: {\r\n fontSize: \"1.625rem\",\r\n ...defaultHeaderStyles,\r\n },\r\n h2: {\r\n fontSize: \"1.25rem\",\r\n ...defaultHeaderStyles,\r\n },\r\n h3: {\r\n fontSize: \"1.0625rem\",\r\n ...defaultHeaderStyles,\r\n },\r\n h4: {\r\n fontSize: \".9375rem\",\r\n ...defaultHeaderStyles,\r\n },\r\n h5: {\r\n fontSize: \".8125rem\",\r\n ...defaultHeaderStyles,\r\n },\r\n h6: {\r\n fontSize: \".625rem\",\r\n ...defaultHeaderStyles,\r\n },\r\n },\r\n overrides: {\r\n MuiDrawer: {\r\n paper: {\r\n width: \"250px\",\r\n paddingTop: \"1rem\",\r\n paddingBottom: \"1rem\",\r\n },\r\n paperAnchorDockedLeft: {\r\n borderRight: \"none\",\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n docked: {\r\n width: \"250px\",\r\n },\r\n },\r\n MuiListItem: {\r\n root: {\r\n display: \"block\",\r\n paddingTop: \"1rem\",\r\n paddingBottom: \"1rem\",\r\n color: themeColors.gray[700],\r\n },\r\n gutters: {\r\n paddingLeft: \"1rem\",\r\n paddingRight: \"1rem\",\r\n },\r\n },\r\n MuiMenu: {\r\n paper: {\r\n minWidth: \"12rem\",\r\n fontSize: \"1rem\",\r\n color: themeColors.gray[700],\r\n textAlign: \"left\",\r\n listStyle: \"none\",\r\n backgroundColor: themeColors.white.main,\r\n backgroundClip: \"padding-box\",\r\n border: \"0 solid rgba(\" + hexToRgb(themeColors.black.main) + \",.15)\",\r\n borderRadius: \".4375rem\",\r\n boxShadow: boxShadows.menuBoxShadow,\r\n padding: \".5rem 0\",\r\n },\r\n },\r\n MuiMenuItem: {\r\n root: {\r\n padding: \".5rem 1rem\",\r\n fontSize: \".875rem\",\r\n display: \"block\",\r\n width: \"100%\",\r\n clear: \"both\",\r\n fontWeight: 400,\r\n color: themeColors.gray[900],\r\n textAlign: \"inherit\",\r\n whiteSpace: \"nowrap\",\r\n backgroundColor: \"initial\",\r\n border: 0,\r\n \"& i\": {\r\n marginRight: \"1rem\",\r\n fontSize: \"1rem\",\r\n verticalAlign: \"-17%\",\r\n },\r\n },\r\n },\r\n MuiFormHelperText: {\r\n root: {\r\n width: \"100%\",\r\n marginTop: \".25rem\",\r\n fontSize: \"80%\",\r\n },\r\n },\r\n MuiAutocomplete: {\r\n inputRoot: {\r\n backgroundColor: themeColors.white.main,\r\n paddingTop: \"0!important\",\r\n paddingBottom: \"0!important\",\r\n paddingLeft: \"9px\",\r\n \"& .Mui-disabled\": {\r\n backgroundColor: themeColors.gray[200] + \"!important\",\r\n },\r\n },\r\n },\r\n MuiSelect: {\r\n icon: {\r\n width: \"1.25rem\",\r\n height: \"1.25rem\",\r\n top: \"calc(50% - 11px)\",\r\n },\r\n root: {\r\n \"&$disabled\": {\r\n backgroundColor: themeColors.gray[200],\r\n },\r\n },\r\n },\r\n MuiFormLabel: {\r\n root: {\r\n color: themeColors.gray[700],\r\n fontSize: \".875rem\",\r\n fontWeight: \"600\",\r\n display: \"inline-block\",\r\n marginBottom: \".5rem\",\r\n },\r\n },\r\n MuiFormGroup: {\r\n root: {\r\n marginBottom: \"1.5rem\",\r\n },\r\n },\r\n MuiInputBase: {\r\n input: {\r\n display: \"block\",\r\n width: \"100%\",\r\n height: \"calc(1.5em + 1.25rem + 2px)\",\r\n padding: \".625rem .75rem\",\r\n fontWeight: 400,\r\n lineHeight: 1.5,\r\n color: themeColors.gray[600],\r\n backgroundColor: themeColors.white.main,\r\n backgroundClip: \"padding-box\",\r\n border: \"1px solid \" + themeColors.gray[400],\r\n borderRadius: \".375rem\",\r\n boxShadow: \"none\",\r\n transition: \"all .2s cubic-bezier(.68,-.55,.265,1.55)\",\r\n fontSize: \".875rem\",\r\n boxSizing: \"border-box\",\r\n },\r\n },\r\n MuiInputLabel: {\r\n outlined: {\r\n transform: \"translate(14px, 15px) scale(1)\",\r\n },\r\n },\r\n MuiOutlinedInput: {\r\n input: {\r\n padding: \".625rem .75rem\",\r\n border: 0,\r\n },\r\n root: {\r\n backgroundColor: themeColors.white.main,\r\n paddingRight: \"0\",\r\n \"&:hover $notchedOutline\": {\r\n borderColor: themeColors.primary.greyBlue,\r\n },\r\n \"&:active $notchedOutline\": {\r\n borderColor: themeColors.primary.main,\r\n },\r\n \"&:focus $notchedOutline\": {\r\n borderColor: themeColors.primary.main,\r\n },\r\n \"&$disabled\": {\r\n backgroundColor: themeColors.gray[200] + \"!important\",\r\n \"& $notchedOutline\": {\r\n borderColor: themeColors.gray[500],\r\n },\r\n \"& .Mui-disabled\": {\r\n backgroundColor: themeColors.gray[200] + \"!important\",\r\n \"& $notchedOutline\": {\r\n borderColor: themeColors.gray[500],\r\n },\r\n },\r\n },\r\n },\r\n multiline: {\r\n padding: \".625rem .75rem\",\r\n },\r\n notchedOutline: {\r\n borderColor: themeColors.gray[300],\r\n },\r\n },\r\n MuiFilledInput: {\r\n underline: {\r\n \"&:before\": {\r\n display: \"none\",\r\n },\r\n \"&:after\": {\r\n borderRadius: \".375rem\",\r\n height: \"100%\",\r\n border: \"2px solid \" + themeColors.primary.main,\r\n },\r\n },\r\n multiline: {\r\n padding: \".625rem .75rem\",\r\n },\r\n root: {\r\n boxShadow: boxShadows.inputBoxShadow,\r\n border: 0,\r\n transition: \"box-shadow .15s ease\",\r\n borderRadius: \".375rem\",\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexWrap: \"wrap\",\r\n alignItems: \"center\",\r\n width: \"100%\",\r\n backgroundColor: themeColors.white.main + \"!important\",\r\n },\r\n input: {\r\n border: 0,\r\n boxShadow: \"none\",\r\n position: \"relative\",\r\n flex: \"1 1 auto\",\r\n width: \"1%\",\r\n minWidth: 0,\r\n marginBottom: 0,\r\n padding: \".625rem .75rem\",\r\n \"&:not(:first-child)\": {\r\n borderLeft: 0,\r\n borderTopLeftRadius: 0,\r\n borderBottomLeftRadius: 0,\r\n },\r\n },\r\n inputAdornedStart: {\r\n paddingLeft: \".75rem\",\r\n },\r\n inputAdornedEnd: {\r\n paddingRight: \".75rem\",\r\n },\r\n },\r\n MuiInputAdornment: {\r\n root: {\r\n transition: \"all .2s cubic-bezier(.68,-.55,.265,1.55)\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n padding: \".625rem 0\",\r\n marginBottom: \"0\",\r\n fontSize: \".875rem\",\r\n fontWeight: \"400\",\r\n lineHeight: \"1.5\",\r\n color: themeColors.gray[500],\r\n textAlign: \"center\",\r\n whiteSpace: \"nowrap\",\r\n backgroundColor: \"inherit\",\r\n border: \"0\",\r\n marginTop: \"0!important\",\r\n height: \"calc(1.5em + 1.25rem + 2px)\",\r\n },\r\n positionEnd: {\r\n paddingLeft: 0,\r\n },\r\n positionStart: {\r\n paddingLeft: 0,\r\n },\r\n filled: {\r\n display: \"flex\",\r\n \"&$positionStart\": {\r\n marginRight: \"-1px\",\r\n borderTopRightRadius: \"0\",\r\n borderBottomRightRadius: \"0\",\r\n border: \"0\",\r\n boxShadow: \"none\",\r\n },\r\n },\r\n },\r\n MuiCheckbox: {\r\n root: {\r\n \"& .MuiSvgIcon-root\": {\r\n width: \"1.5rem\",\r\n height: \"1.5rem\",\r\n color: themeColors.primary.main\r\n },\r\n \"&:not($checked) .MuiSvgIcon-root\": {\r\n color: themeColors.primary.main,\r\n },\r\n },\r\n },\r\n MuiRadio: {\r\n root: {\r\n \"& .MuiSvgIcon-root\": {\r\n width: \"1.5rem\",\r\n height: \"1.5rem\",\r\n },\r\n \"&:not($checked) .MuiSvgIcon-root\": {\r\n color: themeColors.gray[300],\r\n },\r\n },\r\n },\r\n MuiRating: {\r\n root: {\r\n \"& .MuiSvgIcon-root\": {\r\n width: \"30px\",\r\n height: \"30px\",\r\n marginLeft: \"20px\",\r\n marginRight: \"20px\"\r\n },\r\n },\r\n },\r\n MuiSwitch: {\r\n root: {\r\n width: \"3.25rem\",\r\n height: \"1.5rem\",\r\n padding: 0,\r\n },\r\n colorPrimary: {\r\n \"&$checked\": {\r\n \"&$disabled $thumb\": {\r\n backgroundColor: themeColors.gray[400],\r\n },\r\n \"& $thumb\": {\r\n backgroundColor: themeColors.primary.main,\r\n },\r\n \"&$disabled + $track\": {\r\n backgroundColor: themeColors.gray[200] + \"!important\",\r\n borderColor: themeColors.gray[300],\r\n },\r\n \"& + $track\": {\r\n borderColor: themeColors.primary.main,\r\n },\r\n },\r\n \r\n },\r\n switchBase: {\r\n padding: \"3px\",\r\n \"&$checked\": {\r\n transform: \"translateX(28px)\",\r\n \"& + $track\": {\r\n backgroundColor: themeColors.transparent.main + \"!important\",\r\n borderColor: themeColors.dark.main,\r\n opacity: 1,\r\n },\r\n \"& $thumb\": {\r\n backgroundColor: themeColors.dark.main,\r\n },\r\n }, \r\n },\r\n checked: {},\r\n disabled: {},\r\n thumb: {\r\n width: \"18px\",\r\n height: \"18px\",\r\n boxShadow: \"none\",\r\n backgroundColor: themeColors.gray[200],\r\n },\r\n track: {\r\n backgroundColor: themeColors.transparent.main,\r\n border: \"1px solid \" + themeColors.gray[400],\r\n opacity: 1,\r\n borderRadius: \"34px\",\r\n },\r\n },\r\n MuiPaper: {\r\n elevation1: {\r\n boxShadow: boxShadows.boxShadow,\r\n },\r\n },\r\n MuiCard: {\r\n root: {\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n minWidth: 0,\r\n wordWrap: \"break-word\",\r\n backgroundColor: themeColors.white.main,\r\n backgroundClip: \"initial\",\r\n border: \"0\",\r\n borderRadius: \".375rem\",\r\n overflow: \"unset\",\r\n marginBottom: \"30px\",\r\n },\r\n },\r\n MuiCardHeader: {\r\n root: {\r\n padding: \"1.25rem 1.5rem\",\r\n marginBottom: \"0\",\r\n backgroundColor: themeColors.white.main,\r\n borderBottom:\r\n \"1px solid rgba(\" + hexToRgb(themeColors.black.main) + \",.05)\",\r\n \"&:first-child\": {\r\n borderRadius: \"calc(.375rem - 1px) calc(.375rem - 1px) 0 0\",\r\n },\r\n },\r\n },\r\n MuiCardContent: {\r\n root: {\r\n flex: \"1 1 auto\",\r\n minHeight: \"1px\",\r\n padding: \"1.5rem\",\r\n },\r\n },\r\n MuiCardActions: {\r\n root: {\r\n \"&:last-child\": {\r\n borderRadius: \"0 0 calc(.375rem - 1px) calc(.375rem - 1px)\",\r\n padding: \"1.25rem 1.5rem\",\r\n backgroundColor: themeColors.white.main,\r\n borderTop:\r\n \"1px solid rgba(\" + hexToRgb(themeColors.black.main) + \",.05)\",\r\n },\r\n },\r\n },\r\n MuiButtonGroup: {\r\n root: {\r\n position: \"relative\",\r\n display: \"inline-flex\",\r\n verticalAlign: \"middle\",\r\n borderRadius: undefined,\r\n },\r\n contained: {\r\n boxShadow: undefined,\r\n },\r\n groupedContainedSecondary: {\r\n borderColor: themeColors.gray[600] + \"!important\",\r\n },\r\n groupedContainedPrimary: {\r\n borderColor: themeColors.primary.main + \"!important\",\r\n },\r\n grouped: {\r\n borderColor: themeColors.dark.main + \"!important\",\r\n },\r\n },\r\n MuiButton: {\r\n root: {\r\n position: \"relative\",\r\n textTransform: \"uppercase\",\r\n transition: \"all .15s ease\",\r\n letterSpacing: \".025em\",\r\n lineHeight: \"17px\",\r\n fontSize: \"14px\",\r\n fontWeight: \"400\",\r\n padding: \"12px 20px\",\r\n willChange: \"transform\",\r\n border: \"1px solid \" + themeColors.transparent.main,\r\n borderRadius: \"4px\",\r\n userSelect: \"none\",\r\n display: \"inline-block\",\r\n textAlign: \"center\",\r\n verticalAlign: \"middle\",\r\n boxShadow: \"0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n \"&:hover\": {\r\n boxShadow: boxShadows.buttonBoxShadow,\r\n transform: \"translateY(-1px)\",\r\n },\r\n },\r\n text: {\r\n padding: \".625rem 1.25rem\",\r\n boxShadow: \"none!important\",\r\n },\r\n contained: {\r\n color: themeColors.white.main,\r\n borderColor: themeColors.dark.main,\r\n backgroundColor: themeColors.dark.main,\r\n boxShadow: \"0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n \"&:hover\": {\r\n boxShadow: boxShadows.buttonBoxShadow,\r\n backgroundColor: themeColors.dark.dark,\r\n },\r\n },\r\n containedSizeSmall: {\r\n fontSize: \".75rem\",\r\n padding: \".25rem .5rem\",\r\n lineHeight: \"1.5\",\r\n borderRadius: \".375rem\",\r\n minWidth: \"unset\",\r\n },\r\n containedSizeLarge: {\r\n fontSize: \".875rem\",\r\n lineHeight: 1.5,\r\n padding: \".875rem 1rem\",\r\n borderRadius: \".4375rem\",\r\n },\r\n containedPrimary: {\r\n backgroundColor: themeColors.primary.main,\r\n borderColor: themeColors.primary.main,\r\n \"&:hover\": {\r\n backgroundColor: themeColors.primary.greyBlue,\r\n borderColor: themeColors.primary.greyBlue,\r\n color: themeColors.white.main\r\n },\r\n \"&:active\": {\r\n backgroundColor: themeColors.primary.darkBlue,\r\n borderColor: themeColors.primary.darkBlue,\r\n },\r\n \"&:focus\": {\r\n backgroundColor: themeColors.primary.main,\r\n border: \"2px solid \" + themeColors.secondary.skyBlue,\r\n },\r\n '&.Mui-disabled': {\r\n backgroundColor: themeColors.primary.lightBlue,\r\n borderColor: themeColors.primary.lightBlue,\r\n color: themeColors.primary.greyBlue\r\n },\r\n },\r\n containedSecondary: {\r\n backgroundColor: themeColors.gray[600],\r\n borderColor: themeColors.gray[600],\r\n color: themeColors.white.main,\r\n \"&:hover\": {\r\n backgroundColor: themeColors.gray[500],\r\n borderColor: themeColors.gray[500],\r\n },\r\n \"&:active\": {\r\n backgroundColor: themeColors.gray[800],\r\n borderColor: themeColors.gray[800],\r\n },\r\n \"&:focus\": {\r\n backgroundColor: themeColors.gray[600],\r\n border: \"2px solid \" + themeColors.secondary.skyBlue,\r\n },\r\n '&.Mui-disabled': {\r\n backgroundColor: themeColors.gray[400],\r\n borderColor: themeColors.gray[400],\r\n color: themeColors.white.main\r\n },\r\n },\r\n outlined: {\r\n padding: \".625rem 1.25rem\",\r\n color: themeColors.dark.main,\r\n borderColor: themeColors.dark.main,\r\n boxShadow: \"none\",\r\n \"&:hover\": {\r\n boxShadow: \"none\",\r\n backgroundColor: themeColors.dark.main,\r\n color: themeColors.white.main,\r\n },\r\n },\r\n outlinedSizeSmall: {\r\n fontSize: \".75rem\",\r\n padding: \".25rem .5rem\",\r\n lineHeight: \"1.5\",\r\n borderRadius: \".375rem\",\r\n },\r\n outlinedSizeLarge: {\r\n fontSize: \".875rem\",\r\n lineHeight: 1.5,\r\n padding: \".875rem 1rem\",\r\n borderRadius: \".4375rem\",\r\n },\r\n outlinedPrimary: {\r\n color: themeColors.primary.main,\r\n borderColor: themeColors.primary.main,\r\n \"&:hover\": {\r\n backgroundColor: themeColors.primary.main,\r\n },\r\n },\r\n outlinedSecondary: {\r\n color: themeColors.primary.lightBlue,\r\n borderColor: themeColors.gray[600],\r\n backgroundColor: themeColors.transparent.main,\r\n \"&:hover\": {\r\n borderColor: themeColors.gray[600],\r\n backgroundColor: themeColors.gray[600],\r\n color: themeColors.gray[900],\r\n },\r\n },\r\n },\r\n MuiContainer: {\r\n root: {\r\n width: \"100%\",\r\n paddingRight: \"15px\",\r\n paddingLeft: \"15px\",\r\n marginRight: \"auto\",\r\n marginLeft: \"auto\",\r\n },\r\n maxWidthXs: {\r\n \"@media (min-width: 576px)\": {\r\n maxWidth: \"540px\",\r\n },\r\n },\r\n maxWidthSm: {\r\n \"@media (min-width: 576px)\": {\r\n maxWidth: \"540px\",\r\n },\r\n },\r\n maxWidthMd: {\r\n \"@media (min-width: 768px)\": {\r\n maxWidth: \"720px\",\r\n },\r\n },\r\n maxWidthLg: {\r\n \"@media (min-width: 992px)\": {\r\n maxWidth: \"960px\",\r\n },\r\n },\r\n maxWidthXl: {\r\n \"@media (min-width: 1200px)\": {\r\n maxWidth: \"1140px\",\r\n },\r\n },\r\n },\r\n MuiGrid: {\r\n item: {\r\n paddingRight: \"15px\",\r\n paddingLeft: \"15px\",\r\n },\r\n container: {\r\n marginRight: \"-15px\",\r\n marginLeft: \"-15px\",\r\n width: \"unset\",\r\n },\r\n },\r\n MuiSvgIcon: {\r\n root: {\r\n width: \"14px\",\r\n height: \"14px\",\r\n },\r\n },\r\n MuiTable: {\r\n root: {\r\n width: \"100%\",\r\n marginBottom: \"1rem\",\r\n color: themeColors.gray[700],\r\n backgroundColor: themeColors.transparent.main,\r\n borderCollapse: \"collapse\",\r\n },\r\n },\r\n MuiTableRow: {\r\n root: {\r\n \"&:last-of-type\": {\r\n \"& th,& td\": {\r\n border: 0,\r\n },\r\n },\r\n },\r\n },\r\n MuiTableCell: {\r\n root: {\r\n fontSize: \".8125rem\",\r\n whiteSpace: \"nowrap\",\r\n padding: \"1rem\",\r\n verticalAlign: \"top\",\r\n borderTop: \"1px solid \" + themeColors.gray[200],\r\n borderBottom: \"1px solid \" + themeColors.gray[200],\r\n },\r\n head: {\r\n padding: \"1rem\",\r\n borderTop: \"1px solid \" + themeColors.gray[200],\r\n fontWeight: \"600\",\r\n whiteSpace: \"nowrap\",\r\n verticalAlign: \"bottom\",\r\n paddingTop: \".75rem\",\r\n paddingBottom: \".75rem\",\r\n fontSize: \".65rem\",\r\n textTransform: \"uppercase\",\r\n letterSpacing: \"1px\",\r\n borderBottom: \"1px solid \" + themeColors.gray[200],\r\n },\r\n },\r\n MuiTableBody: {\r\n root: {\r\n \"& .MuiTableCell-head,& .MuiTableCell-boyd\": {\r\n paddingTop: \"1rem\",\r\n paddingBottom: \"1rem\",\r\n },\r\n },\r\n },\r\n MuiLinearProgress: {\r\n root: {\r\n height: \"8px\",\r\n marginBottom: \"1rem\",\r\n overflow: \"hidden\",\r\n borderRadius: \".25rem\",\r\n backgroundColor: themeColors.gray[200] + \"!important\",\r\n boxShadow: boxShadows.linearProgressBoxShadow,\r\n display: \"flex\",\r\n lineHeight: \"0\",\r\n fontSize: \".75rem\",\r\n },\r\n bar: {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n justifyContent: \"center\",\r\n overflow: \"hidden\",\r\n color: themeColors.white.main,\r\n textAlign: \"center\",\r\n whiteSpace: \"nowrap\",\r\n transition: \"width .6s ease\",\r\n boxShadow: \"none\",\r\n borderRadius: 0,\r\n height: \"auto\",\r\n },\r\n },\r\n MuiAvatar: {\r\n root: {\r\n color: themeColors.white.main,\r\n backgroundColor: themeColors.gray[500],\r\n display: \"inline-flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n fontSize: \"1rem\",\r\n borderRadius: \"50%\",\r\n height: \"48px\",\r\n width: \"48px\",\r\n },\r\n img: {\r\n width: \"100%\",\r\n borderRadius: \"50%\",\r\n verticalAlign: \"middle\",\r\n borderStyle: \"none\",\r\n },\r\n },\r\n MuiAvatarGroup: {\r\n avatar: {\r\n position: \"relative\",\r\n zIndex: \"5!important\",\r\n border: \"2px solid \" + themeColors.white.main,\r\n marginLeft: \"-.75rem\",\r\n \"&:hover\": {\r\n zIndex: \"6!important\",\r\n },\r\n },\r\n },\r\n MuiPaginationItem: {\r\n root: {\r\n width: \"36px\",\r\n height: \"36px\",\r\n fontSize: \".875rem\",\r\n color: themeColors.gray[600],\r\n border: \"1px solid \" + themeColors.gray[300],\r\n borderRadius: \"50%\",\r\n \"&:hover\": {\r\n backgroundColor: themeColors.gray[300],\r\n },\r\n },\r\n outlined: {\r\n color: themeColors.gray[600],\r\n border: \"1px solid \" + themeColors.gray[300],\r\n \"&:hover\": {\r\n backgroundColor: themeColors.gray[300],\r\n },\r\n },\r\n outlinedPrimary: {\r\n \"&.Mui-selected\": {\r\n \"&, &:hover\": {\r\n backgroundColor: themeColors.primary.main + \"!important\",\r\n color: themeColors.white.main,\r\n boxShadow: boxShadows.buttonBoxShadow,\r\n },\r\n },\r\n },\r\n sizeLarge: {\r\n lineHeight: \"46px\",\r\n width: \"46px\",\r\n height: \"46px\",\r\n borderRadius: \"50%\",\r\n },\r\n sizeSmall: {\r\n lineHeight: \"30px\",\r\n width: \"30px\",\r\n height: \"30px\",\r\n borderRadius: \"50%\",\r\n },\r\n },\r\n MuiDivider: {\r\n root: {\r\n backgroundColor: \"rgba(\" + hexToRgb(themeColors.black.main) + \", 0.1)\",\r\n },\r\n },\r\n MuiSlider: {\r\n root: {\r\n height: \"5px\",\r\n borderRadius: \"5px\",\r\n padding: \"15px 0\",\r\n },\r\n rail: {\r\n height: \"5px\",\r\n borderRadius: \"5px\",\r\n backgroundColor: themeColors.gray[300],\r\n boxShadow: boxShadows.sliderBoxShadow,\r\n },\r\n track: {\r\n height: \"5px\",\r\n borderRadius: \"5px\",\r\n },\r\n thumb: {\r\n width: \"15px\",\r\n height: \"15px\",\r\n },\r\n },\r\n MuiSnackbarContent: {\r\n root: {\r\n fontSize: \".875rem\",\r\n position: \"relative\",\r\n marginBottom: \"1rem\",\r\n padding: \"1rem 1.5rem\",\r\n border: \"1px solid \" + themeColors.transparent.main,\r\n borderRadius: \".375rem\",\r\n flexWrap: undefined,\r\n },\r\n message: {\r\n padding: \"0\",\r\n display: \"flex\",\r\n },\r\n },\r\n MuiBadge: {\r\n root: {\r\n textDecoration: \"none\",\r\n \"&[href] $badge:hover\": {\r\n color: themeColors.white.main,\r\n backgroundColor: themeColors.dark.badgeBgHover,\r\n },\r\n \"&[href] $colorPrimary:hover\": {\r\n backgroundColor: themeColors.primary.darkBlue,\r\n },\r\n \"&[href] $colorSecondary:hover\": {\r\n color: themeColors.gray[900],\r\n backgroundColor: themeColors.primary.lightBlue,\r\n },\r\n \"&[href] $colorError:hover\": {\r\n backgroundColor: themeColors.error.badgeBgHover,\r\n },\r\n },\r\n badge: {\r\n fontSize: \"85%\",\r\n fontWeight: \"800\",\r\n transition:\r\n \"color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out\",\r\n textAlign: \"center\",\r\n verticalAlign: \"baseline\",\r\n },\r\n colorPrimary: {\r\n color: themeColors.primary.main,\r\n backgroundColor: themeColors.primary.lightBlue,\r\n },\r\n colorSecondary: {\r\n color: themeColors.gray[900],\r\n backgroundColor: themeColors.gray[600],\r\n },\r\n colorError: {\r\n color: themeColors.error.badge,\r\n backgroundColor: themeColors.error.badgeBg,\r\n },\r\n },\r\n MuiTooltip: {\r\n tooltip: {\r\n backgroundColor: themeColors.black.main,\r\n maxWidth: \"200px\",\r\n padding: \"0.25rem 0.5rem\",\r\n textAlign: \"center\",\r\n borderRadius: \"0.375rem\",\r\n fontWeight: 400,\r\n lineHeight: 1.5,\r\n fontSize: \"0.875rem\",\r\n },\r\n arrow: {\r\n color: themeColors.black.main,\r\n },\r\n },\r\n MuiPopover: {\r\n paper: {\r\n padding: \"0.5rem 0.95rem\",\r\n color: themeColors.gray[700],\r\n boxShadow: boxShadows.popoverBoxShadow,\r\n },\r\n },\r\n MuiTabs: {\r\n indicator: {\r\n display: \"none\",\r\n },\r\n scroller: {\r\n padding: \".5rem\",\r\n },\r\n },\r\n MuiTab: {\r\n root: {\r\n fontSize: \".875rem\",\r\n fontWeight: 500,\r\n padding: \".75rem 1rem\",\r\n transition: \"all .15s ease\",\r\n boxShadow: \"0 4px 6px rgb(50 50 93 / 11%), 0 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \".375rem\",\r\n display: \"block\",\r\n textAlign: \"center\",\r\n flex: \"1 1 auto\",\r\n maxWidth: \"unset\",\r\n \"&$selected\": {\r\n color: themeColors.white.main + \"!important\",\r\n backgroundColor: themeColors.primary.main + \"!important\",\r\n },\r\n \"&:not(:last-child)\": {\r\n marginRight: \"1rem\",\r\n },\r\n \"& svg\": {\r\n width: \"1rem!important\",\r\n height: \"1rem!important\",\r\n position: \"relative\",\r\n top: \"2px\",\r\n },\r\n },\r\n wrapper: {\r\n flexDirection: \"row\",\r\n },\r\n labelIcon: {\r\n minHeight: \"unset\",\r\n paddingTop: \".75rem\",\r\n },\r\n },\r\n MuiTabPanel: {\r\n root: {\r\n padding: \"0\",\r\n },\r\n },\r\n MuiDialog: {\r\n paper: {\r\n width: \"100%\",\r\n },\r\n },\r\n MuiDialogContent: {\r\n root: {\r\n position: \"relative\",\r\n padding: \"1.5rem\",\r\n flex: \"1 1 auto\",\r\n width: \"700px\",\r\n height: \"200px\"\r\n },\r\n },\r\n MuiDialogActions: {\r\n root: {\r\n display: \"flex\",\r\n padding: \"1.25rem\",\r\n borderBottomRightRadius: \".4375rem\",\r\n borderBottomLeftRadius: \".4375rem\",\r\n flexWrap: \"wrap\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n },\r\n },\r\n MuiBreadcrumbs: {\r\n ol: {\r\n display: \"flex\",\r\n flexWrap: \"wrap\",\r\n padding: \".5rem 1rem\",\r\n marginBottom: \"1rem\",\r\n listStyle: \"none\",\r\n backgroundColor: themeColors.gray[100],\r\n borderRadius: \".375rem\",\r\n },\r\n li: {\r\n fontSize: \".875rem\",\r\n },\r\n separator: {\r\n paddingRight: \".5rem\",\r\n color: themeColors.gray[600],\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default theme;\r\n","export const SUBPROGRAM = {\r\n CREATE: \"createSubprogram\",\r\n GET_FILTERED_SUBPROGRAMS: \"getFilteredSubprograms\",\r\n GET_FILTERED_SUBPROGRAMS_LOADING: \"getFilteredSubprogramsLoading\",\r\n GET_SUBPROGRAM_DETAILS: \"getSubprogramDetails\",\r\n GET_SUBPROGRAM_DETAILS_LOADING: \"getSubprogramDetailsLoading\",\r\n UPDATE: \"updateSubprogram\",\r\n UPDATE_STATE: \"updateSubprogramState\",\r\n REFRESH_RESULTS: \"subprogramsRefreshResults\",\r\n CLEAR_DETAIL: \"clearSubprogram\",\r\n CREATE_SUBPROGRAM_LOADING: \"createSubprogram_loading\",\r\n UPDATE_SUBPROGRAM_LOADING: \"updateSubprogram_loading\",\r\n UPDATE_SUBPROGRAM_STATE_LOADING: \"updateSubprogramState_loading\",\r\n};\r\n\r\nexport const USERS = {\r\n GET_FRONTOFFICE_FILTERED_SEARCH: \"getFilteredFrontOfficeUsers\",\r\n GET_FRONTOFFICE_FILTERED_SEARCH_LOADING: \"getFilteredFrontOfficeUsersLoading\",\r\n GET_BACKOFFICE_FILTERED_SEARCH: \"getFilteredBackOfficeUsers\",\r\n GET_BACKOFFICE_FILTERED_SEARCH_LOADING: \"getFilteredBackOfficeUsersLoading\",\r\n GET_USER_INFO: \"getUserInfo\",\r\n GET_USER_INFO_LOADING: \"getUserInfoLoading\",\r\n GET_USER_INFO_ENT: \"getUserInfoEnt\",\r\n GET_USER_INFO_BO: \"getUserInfoBo\",\r\n GET_USER_INFO_BO_LOADING: \"getUserInfoBo_Loading\",\r\n UPDATE_INDIVIDUAL_USER: \"frontOfficeIndividualUserUpdate\",\r\n UPDATE_INDIVIDUAL_USER_LOADING: \"frontOfficeIndividualUserUpdateLoading\",\r\n UPDATE_ENTERPRISE_USER: \"frontOfficeIndividualUserUpdate\",\r\n UPDATE_ENTERPRISE_USER_LOADING: \"frontOfficeIndividualUserUpdateLoading\",\r\n UPDATE_BO_USER: \"backOfficeUserUpdate\",\r\n UPDATE_BO_USER_LOADING: \"backOfficeUserUpdateLoading\",\r\n UPDATE_Profile: \"updateProfile\",\r\n UPDATE_Profile_LOADING: \"updateProfile_loading\",\r\n GET_USER_DOCUMENT_DATA_DOWNLOAD: \"getUserDocument\",\r\n VALIDATE_COLECTIVE_USER: \"validateColectiveUser\",\r\n VALIDATE_COLECTIVE_USER_LOADING: \"validateColectiveUser_loading\",\r\n GET_FO_USER_COLECTIVE_BASIC_INFO: \"getFoUserColectiveBasicInfo\",\r\n REGISTER_FO_USER_LOADING: \"registerFO_User_loading\",\r\n GET_APPLICATION_VERSION: \"getApplicationVersion\",\r\n GET_APPLICATION_VERSION_LOADING: \"application_version_loading\",\r\n LAST_LOGIN: \"lastLogin\",\r\n SEARCH_FO_USERS: \"searchFOUsers\",\r\n SEARCH_FO_USERS_LOADING: \"searchFOUsersLoading\",\r\n GET_FO_USER_OVERVIEW: \"getFOUserOverview\",\r\n GET_FO_USER_OVERVIEW_LOADING: \"getFOUserOverviewLoading\",\r\n CREATE_FO_USER_HISTORY_ENTRY: \"addFOUserHistoryEntry\",\r\n GET_FO_USER_HISTORY: \"getFOUserHistory\",\r\n GET_FO_USER_HISTORY_REFRESH_RESULTS: \"getFOUserHistoryRefreshResults\",\r\n GET_FO_USER_EMPLOYMENT_HISTORY: \"getFOUserEmploymentHistory\",\r\n GET_FO_USER_EMPLOYMENT_HISTORY_LOADING: \"getFOUserEmploymentHistoryLoading\",\r\n GET_FO_USER_UNEMPLOYMENT_HISTORY: \"getFOUserUnemploymentHistory\",\r\n GET_FO_USER_UNEMPLOYMENT_HISTORY_LOADING: \"getFOUserUnemploymentHistoryLoading\",\r\n GET_FOUS_INTERVENTION_OTHER_AREA: \"getFoUSInterventionOtherArea\",\r\n GET_FOUS_INTERVENTION_OTHER_AREA_LOADING: \"getFoUSInterventionOtherAreaLoading\",\r\n};\r\n\r\nexport const REGISTER_BO_USER = {\r\n REGISTER: \"backOfficeUserRegister\",\r\n REGISTER_LOADING: \"backOfficeUserRegister_loading\",\r\n};\r\n\r\nexport const REGISTER_FO_ENTERPRISE_USER = {\r\n REGISTER: \"frontOfficeEnterpriseUserRegister\",\r\n};\r\n\r\nexport const REGISTER_FO_INDIVIDUAL_USER = {\r\n REGISTER: \"frontOfficeIndividualUserRegister\",\r\n};\r\n\r\nexport const LOANS = {\r\n GET_FILTERED_LOANS: \"getFilteredLoans\",\r\n GET_LOAN_DETAILS: \"getLoanDetails\",\r\n GET_LOAN_DETAILS_LOADING: \"getLoanDetailsLoading\",\r\n GET_FILTERED_LOANS_LOADING: \"getFilteredLoansLoading\",\r\n REJECT_LOAN_LOADING: \"rejectLoanLoading\",\r\n UPDATE: \"updateLoan\",\r\n REFRESH_RESULTS: \"refreshLoansResults\",\r\n UPDATE_LOAN_LOADING: \"updateLoanLoading\",\r\n};\r\n\r\nexport const DIALOG = {\r\n SHOW: \"showGenericDialog\",\r\n HIDE: \"hideGenericDialog\",\r\n SIMPLE_TYPE: \"simpleType\",\r\n ONE_BUTTON_TYPE: \"oneButtonType\",\r\n TWO_BUTTON_TYPE: \"twoButtonType\",\r\n};\r\n\r\nexport const DIALOG_ICON = {\r\n QUESTION: \"question\",\r\n};\r\n\r\nexport const DATASET_ACTIONS = {\r\n GET_DATASET_BY_NAME: \"getDataSetByName\",\r\n GET_DATASET_BY_INDEX: \"getDataSetByIndex\",\r\n GET_DATASET_BY_PROPERTY_ID: \"getChildrenByPropertyId\",\r\n GET_GEOGRAPHIC_DATA: \"getGeographicData\",\r\n GET_GEOGRAPHIC_DATA_BY_PROVINCE: \"getGeographicDataByProvince\",\r\n GET_NATIONALITIES: \"getNationalities\",\r\n GET_PROGRAMS: \"getPrograms\",\r\n GET_SUBPROGRAM_STATES: \"getSubprogramStates\",\r\n GET_SUBPROGRAM_BY_PROGRAM: \"getSubprogramByProgramId\",\r\n GET_DEPARTMENTS: \"getDepartments\",\r\n GET_CATEGORIES: \"getCategories\",\r\n GET_ACTIVE_CATEGORIES: \"getActiveCategories\",\r\n GET_NOT_ASSIGNED_ACTIVE_CATEGORIES: \"getNotAssignedActiveCategories\",\r\n GET_INACTIVE_CATEGORIES: \"getInactiveCategories\",\r\n GET_ALL_DATASET_TYPES: \"getAllDatasetTypes\",\r\n GET_WAREHOUSE_BY_PROVINCE: \"getWarehousesByProvince\",\r\n GET_LOSS_BREACK_MOTIVES: \"getLossBreakMotives\",\r\n GET_DOCUMENTS: \"getDocuments\",\r\n GET_CONDITIONS: \"getConditions\",\r\n GET_NEXT_APPLICATION_STATES: \"getNextApplicationStates\",\r\n GET_SUBPROGRAMS: \"getSubprograms\",\r\n GET_BO_USERS: \"getBackOfficeUsers\",\r\n GET_BO_ROLES: \"getBackOfficeRoles\",\r\n GET_SHAPE_PROGRAMS: \"getShapePrograms\",\r\n GET_SHAPE_SUBSITES: \"getShapeSubsites\",\r\n GET_LOAN_STATES: \"getLoanStates\",\r\n GET_LOAN_REJECT_MOTIVES: \"getLoanRejectMotives\",\r\n GET_APPLICATION_REJECT_MOTIVES: \"getApplicationRejectMotives\",\r\n CLEAR_DATASET_BY_NAME: \"clearDataSetByName\",\r\n GET_PREDEFINED_QUESTIONS: \"getPredefinedQuestions\",\r\n GET_AVAILABLE_INTERNSHIP_OPPORTUNITIES_ACTIONS: \"getAvailableInternshipOpportunities\",\r\n GET_GOVERNMENT_PROGRAMS: \"getGovernmentPrograms\",\r\n};\r\n\r\nexport const APPLICATIONS = {\r\n GET_FILTERED_APPLICATIONS: \"getFilteredApplications\",\r\n GET_FILTERED_APPLICATIONS_LOADING: \"getFilteredApplicationsLoading\",\r\n GET_APPLICATION_DETAILS_GENERAL_DATA: \"getApplicationDetailsGeneralData\",\r\n GET_APPLICATION_DETAILS_GENERAL_DATA_LOADING: \"getApplicationDetailsGeneralDataLoading\",\r\n GET_APPLICATION_UPDATE_LOADING: \"getApplicationUpdateLoading\",\r\n UPDATE_APPLICATION_DETAILS_GENERAL_DATA: \"updateApplicationDetailGeneralData\",\r\n GET_APPLICATION_DETAILS_HISTORY: \"getApplicationDetailsHistory\",\r\n APPLICATION_DETAILS_HISTORY_REFRESH_RESULTS: \"applicationDetailsHistoryRefreshResults\",\r\n CREATE_APPLICATION_DETAILS_HISTORY_ENTRY: \"addApplicationDetailHistoryEntry\",\r\n GET_SUBPROGRAM_COMPLEMENTARY_DATA: \"getSubprogramComplementaryData\",\r\n GET_APPLICATION_DOCUMENT_DATA_DOWNLOAD: \"getApplicationDocumentData\",\r\n GET_USER_APPLICATIONS: \"getUserApplications\",\r\n GET_USER_APPLICATIONS_LOADING: \"getUserApplicationsLoading\",\r\n};\r\n\r\nexport const NOTIFICATION = {\r\n GET_NOTIFICATIONS: \"getNotifications\",\r\n GET_NOTIFICATIONS_LOADING: \"getNotificationsLoading\",\r\n GET_UNREAD_NOTIFICATIONS: \"getUnreadNotifications\",\r\n GET_UNREAD_NOTIFICATIONS_LOADING: \"getUnreadNotificationsLoading\",\r\n UPDATE_NOTIFICATION: \"updateNotifications\",\r\n CREATE: \"createNotification\",\r\n CREATE_LOADING: \"createNotificationLoading\",\r\n GET_TOTAL_UNREAD_NOTIFICATIONS: \"getNumberOfUnreadNotifications\",\r\n};\r\n\r\nexport const SCHEDULING = {\r\n CREATE_LOADING: \"createSchedulingLoading\",\r\n SEARCH: \"searchSchedulings\",\r\n SEARCH_LOADING: \"searchSchedulingsLoading\",\r\n GET: \"getScheduling\",\r\n GET_LOADING: \"getSchedulingLoading\",\r\n CLEAR_DETAIL: \"clearScheduling\",\r\n UPDATE: \"updateScheduling\",\r\n UPDATE_LOADING: \"updateSchedulingLoading\",\r\n GET_REPORT_DOCUMENT_DATA_DOWNLOAD: \"getReportDocument\",\r\n};\r\n\r\nexport const AUTH = {\r\n SESSION_EXPIRED: \"session_expired\",\r\n RESET_SESSION_EXPIRED: \"reset_session_expired\",\r\n RECOVER_PASSWORD: \"recover_password\",\r\n RECOVER_PASSWORD_LOADING: \"recover_password_loading\",\r\n RESET_RECOVER_STATE: \"resetRecoverState\",\r\n RESET_PASSWORD: \"reset_password\",\r\n RESET_PASSWORD_LOADING: \"reset_password_loading\",\r\n RESET_RESET_PASSWORD_STATE: \"reset_reset_password_state\",\r\n};\r\n\r\nexport const PROFESSIONAL_KITS = {\r\n SEARCH_LOADING: \"searchProfessionalKitsLoading\",\r\n GET_DETAILS_LOADING: \"getProfessionalKitDetailsLoading\",\r\n};\r\n\r\nexport const STOCKS = {\r\n SEARCH_LOADING: \"searchStocksLoading\",\r\n GET_STOCK_DETAILS_LOADING: \"getStockDetailsLoading\",\r\n};\r\n\r\nexport const INFORMATION_DISSEMINATION = {\r\n CREATE: \"createInformation\",\r\n CREATE_INFORMATION_DISSEMINATION_LOADING: \"createInformation_loading\",\r\n GET_FILTERED_INFORMATION_DISSEMINATION: \"getFilteredInformation\",\r\n GET_FILTERED_INFORMATION_DISSEMINATION_LOADING: \"getFilteredInformationLoading\",\r\n GET_INFORMATION_DISSEMINATION_DETAILS: \"getInformationDetails\",\r\n GET_INFORMATION_DISSEMINATION_DETAILS_LOADING: \"getInformationDetailsLoading\",\r\n REFRESH_RESULTS: \"informationRefreshResults\",\r\n CLEAR_DETAIL: \"clearInformation\",\r\n UPDATE_INFORMATION_DISSEMINATION_LOADING: \"updateInformation_loading\",\r\n PUBLISH: \"publish\",\r\n};\r\n\r\nexport const OPPORTUNITIES_ACTIONS = {\r\n CREATE: \"createOpportunity\",\r\n UPDATE: \"updateOpportunity\",\r\n GET_UPDATE_LOADING: \"getUpdateLoading\",\r\n GET_SUBMIT_LOADING: \"getSubmitLoading\",\r\n GET_FILTERED_OPPORTUNITIES_ACTIONS: \"getFilteredOpportunities\",\r\n GET_FILTERED_OPPORTUNITIES_ACTIONS_LOADING: \"getFilteredOpportunitiesLoading\",\r\n GET_OPPORTUNITY_DETAILS_ACTIONS_LOADING: \"getOpportunityDetails\",\r\n GET_OPPORTUNITY_DETAILS_ACTIONS: \"getOpportunityDetailsAction\",\r\n UPDATE_OPPORTUNITY_STATE_ACTIONS_LOADING: \"updateOpportunityStateLoading\",\r\n GET_CANDIDATE_INFORMATION: \"getCandidateInformation\",\r\n GET_CANDIDATE_INFORMATION_LOADING: \"getCandidateInformationLoading\",\r\n GET_OPPORTUNITY_USERS_ACTIONS: \"getOpportunityUsers\",\r\n GET_OPPORTUNITY_USERS_ACTIONS_LOADING: \"getOpportunityUsersLoading\",\r\n APPROVE_CANDIDATE_LOADING: \"approveOpportunityCandidateLoading\",\r\n REJECT_CANDIDATE_LOADING: \"rejectOpportunityCandidateLoading\",\r\n GET_OPPORTUNITY_DOCUMENT: \"getOpportunityDocument\",\r\n GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES: \"getFilteredPossibleOpportunityCandidates\",\r\n GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES_LOADING: \"getFilteredPossibleOpportunityCandidatesLoading\",\r\n ADD_OPPORTUNITY_CANDIDATES_LIST_LOADING: \"addOpportunityCandidatesListLoading\",\r\n GET_ALL_OPPORTUNITY_APPLICATIONS: \"getAllOpportunityApplications\",\r\n GET_ALL_OPPORTUNITY_APPLICATIONS_LOADING: \"getAllOpportunityApplicationsLoading\",\r\n GET_IS_OPPORTUNITY_APPLICATION: \"getIsOpportunityApplication\",\r\n GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP: \"getAllOpportunityApplicationsFollowUp\",\r\n GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP_LOADING: \"getAllOpportunityApplicationsFollowUpLoading\",\r\n GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS: \"getOpportunityApplicationsFollowUpDetails\",\r\n GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS_LOADING: \"getOpportunityApplicationsFollowUpDetailsLoading\",\r\n UPDATE_OPPORTUNITY_FOLLOWUP_PERIOD_LOADING: \"updateOpportunityFollowupPeriod\",\r\n GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS:\r\n \"getOpportunityApplicationFollowUpsWithUnapprovedReports\",\r\n GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_LOADING:\r\n \"getOpportunityApplicationFollowUpsWithUnapprovedReportsLoading\",\r\n GET_FEEDBACK_REPORT_DETAILS: \"getFeedbackReportDetails\",\r\n GET_FEEDBACK_REPORT_DETAILS_LOADING: \"getFeedbackReportDetailsLoading\",\r\n VALIDATE_FEEDBACK_REPORT_LOADING: \"validateFeedbackReportLoading\",\r\n CREATE_ADHOC_FEEDBACK_REPORT_LOADING: \"createAdHocFeedbackReportLoading\",\r\n CLEAR_VALIDATE_FEEDBACK_REPORT_LOADING: \"clearValidateFeedbackReportLoading\",\r\n GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER: \"getFilteredAvailableOpportunitiesForUser\",\r\n GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER_LOADING: \"getFilteredAvailableOpportunitiesForUserLoading\",\r\n CREATE_OPPORTUNITY_APPLICATIONS_FOR_USER_LOADING: \"createApplicationsForUserLoading\",\r\n};\r\n\r\nexport const DASHBOARD_ACTIONS = {\r\n GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS:\r\n \"getOpportunityApplicationFollowUpsWithUnapprovedReports\",\r\n GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_LOADING:\r\n \"getOpportunityApplicationFollowUpsWithUnapprovedReportsLoading\",\r\n GET_DASHBOARD_ON_GOING_APPLICATIONS_INFO: \"getDashboardOnGoingApplicationsInfo\",\r\n GET_DASHBOARD_STOCK_INFO: \"getDashboardStockInfo\",\r\n GET_DASHBOARD_NEW_COMPANIES_INFO: \"getDashboardNewCompaniesInfo\",\r\n GET_DASHBOARD_OPPORTUNITIES: \"getDashboardOpportunities\",\r\n GET_DASHBOARD_NOTIFICATIONS_INFO: \"getDashboardNotificationsInfo\",\r\n GET_DASHBOARD_UNREAD_NOTIFICATIONS_COUNT_INFO: \"getDashboardUnreadNotificationsCountInfo\",\r\n};\r\n\r\nexport const GOVERNMENT_PROGRAMS_ACTIONS = {\r\n GET_GOVERNMENT_PROGRAMS: \"getGovernmentPrograms\",\r\n GET_GOVERNMENT_PROGRAMS_LOADING: \"getGovernmentProgramsLoading\",\r\n};\r\n\r\nexport const REPORTS = {\r\n GET_REPORT: \"GetReport\",\r\n GET_REPORT_LOADING: \"getReportLoading\",\r\n};\r\n","export const b64ToImage = (b64Data) => {\r\n if (!b64Data) return null;\r\n return \"data:image/*;base64, \" + b64Data;\r\n};\r\nexport const b64toBlob = (b64Data, contentType = \"\", sliceSize = 512) => {\r\n const byteCharacters = atob(b64Data);\r\n const byteArrays = [];\r\n\r\n for (let offset = 0; offset < byteCharacters?.length; offset += sliceSize) {\r\n const slice = byteCharacters.slice(offset, offset + sliceSize);\r\n\r\n const byteNumbers = new Array(slice?.length);\r\n for (let i = 0; i < slice?.length; i++) {\r\n byteNumbers[i] = slice.charCodeAt(i);\r\n }\r\n\r\n const byteArray = new Uint8Array(byteNumbers);\r\n byteArrays.push(byteArray);\r\n }\r\n\r\n const blob = new Blob(byteArrays, { type: contentType });\r\n return URL.createObjectURL(blob);\r\n};\r\n\r\nexport const convertByteArrayToBlobUrl = (byteArray) => {\r\n if (byteArray === undefined || byteArray == null) return null;\r\n\r\n return URL.createObjectURL(byteArray);\r\n};\r\n\r\nexport const getNameInitials = (name) => {\r\n if (!name) return \"\";\r\n let rgx = new RegExp(/(\\p{L}{1})\\p{L}*/, \"gu\");\r\n\r\n let initials = [...name.matchAll(rgx)] || [];\r\n\r\n return ((initials.shift()?.[1] || \"\") + (initials.pop()?.[1] || \"\")).toUpperCase();\r\n};\r\n\r\nexport const getFirstAndLastName = (fullName) => {\r\n if (fullName){\r\n var name_arr = fullName?.split(\" \");\r\n if(name_arr?.length === 1)\r\n return name_arr[0];\r\n \r\n return name_arr[0] + \" \" + name_arr[name_arr?.length-1];\r\n }\r\n return \"\"\r\n}\r\n\r\nexport const convertBase64ToFile = function (image, imageType, imageName) {\r\n const byteString = atob(image?.split(\",\")[1]);\r\n const ab = new ArrayBuffer(byteString?.length);\r\n const ia = new Uint8Array(ab);\r\n for (let i = 0; i < byteString?.length; i += 1) {\r\n ia[i] = byteString.charCodeAt(i);\r\n }\r\n const newBlob = new Blob([ab], {\r\n type: imageType,\r\n });\r\n\r\n const file = new File([newBlob], imageName ?? \"\", { type: imageType });\r\n\r\n return file;\r\n};\r\n","import {\r\n characterizeProfessionalKit,\r\n getUnitValueByCategory,\r\n getBatchValue,\r\n registerStockInWarehouse,\r\n searchProfessionalKits,\r\n registerLossBreak,\r\n getProfessionalKitDetails,\r\n updateProfessionalKitState,\r\n updateProfessionalKit,\r\n searchStock,\r\n getStockDetails,\r\n getKitDeliveryApplicationDetails,\r\n scheduleKitDelivery,\r\n getProfessionalKitDeliveryDocument\r\n} from \"crud/stock.crud\";\r\nimport { DIALOG, PROFESSIONAL_KITS, STOCKS } from \"utils/actionsConsts\";\r\nimport { convertByteArrayToBlobUrl } from \"utils/converters\";\r\n\r\nexport const scheduleKitDeliveryAction = (kitDelivery) => async (dispatch) => {\r\n scheduleKitDelivery(kitDelivery)\r\n .then(() => {\r\n dispatch({\r\n type: \"showDeliverKitModal\",\r\n payload: {\r\n toShow: false,\r\n },\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: true,\r\n message: \"Registo efetuado com sucesso\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[\r\n Object.keys(error.response.data.errors)[0]\r\n ][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const characterizeProfessionalKitAction = (formData, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: \"characterizeProfessionalKit_loading\",\r\n payload: true,\r\n });\r\n characterizeProfessionalKit(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: \"characterizeProfessionalKit_loading\",\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n buttonLabel: \"Ok\",\r\n okAction: res.data ? _onCloseAction : undefined,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n message: res.data\r\n ? \"Kit caracterizado com sucesso!\"\r\n : \"Erro na caracterização do kit, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"characterizeProfessionalKit_loading\",\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateProfessionalKitAction = (formData, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: \"updateProfessionalKit_loading\",\r\n payload: true,\r\n });\r\n updateProfessionalKit(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: \"updateProfessionalKit_loading\",\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n buttonLabel: \"Ok\",\r\n okAction: res.data ? _onCloseAction : undefined,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n message: res.data\r\n ? \"Detalhes do kit atualizados com sucesso!\"\r\n : \"Erro na atualização dos detalhes do kit, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"updateProfessionalKit_loading\",\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateProfessionalKitStateAction =\r\n (professionalKitId) => async (dispatch) => {\r\n updateProfessionalKitState(professionalKitId)\r\n .then(() => {\r\n dispatch({\r\n type: \"updateProfessionalKitState\",\r\n payload: true,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"updateProfessionalKitState\",\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\nexport const getStockDetailsAction = (warehouseStockId) => async (dispatch) => {\r\n dispatch({\r\n type: STOCKS.GET_STOCK_DETAILS_LOADING,\r\n payload: true,\r\n });\r\n getStockDetails(warehouseStockId)\r\n .then((res) => {\r\n dispatch({\r\n type: \"getStockDetails\",\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: STOCKS.GET_STOCK_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"getStockDetails\",\r\n payload: [],\r\n });\r\n dispatch({\r\n type: STOCKS.GET_STOCK_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\nexport const getProfessionalKitDetailsAction =\r\n (professionalKitId) => async (dispatch) => {\r\n dispatch({\r\n type: PROFESSIONAL_KITS.GET_DETAILS_LOADING,\r\n payload: true,\r\n });\r\n getProfessionalKitDetails(professionalKitId)\r\n .then((res) => {\r\n dispatch({\r\n type: \"getProfessionalKitDetails\",\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: PROFESSIONAL_KITS.GET_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"getProfessionalKitDetails\",\r\n payload: [],\r\n });\r\n dispatch({\r\n type: PROFESSIONAL_KITS.GET_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\n\r\nexport const searchStocksAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: STOCKS.SEARCH_LOADING,\r\n payload: true,\r\n });\r\n\r\n searchStock(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n id: record.id,\r\n warehouseId: record.warehouseId,\r\n warehouseName: record.warehouseName,\r\n provinceId: record.provinceId,\r\n provinceName: record.provinceName,\r\n categoryId: record.categoryId,\r\n categoryName: record.categoryName,\r\n noOfBatches: record.noOfBatches,\r\n kitsAttributed: record.kitsAttributed,\r\n kitsTotal: record.kitsTotal,\r\n availableKits: record.availableKits,\r\n lostKits: record.lostKits,\r\n };\r\n });\r\n dispatch({\r\n type: \"searchStocks\",\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: STOCKS.SEARCH_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"searchStocks\",\r\n payload: [],\r\n });\r\n dispatch({\r\n type: STOCKS.SEARCH_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\nexport const searchProfessionalKitsAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: PROFESSIONAL_KITS.SEARCH_LOADING,\r\n payload: true,\r\n });\r\n searchProfessionalKits(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n id: record.id,\r\n categoryName: record.categoryName,\r\n categoryId: record.categoryId,\r\n noOfBatches: record.noOfBatches,\r\n kitsAttributed: record.kitsAttributed,\r\n kitsTotal: record.kitsTotal,\r\n availableKits: record.availableKits,\r\n lostKits: record.lostKits,\r\n active: record.active,\r\n };\r\n });\r\n dispatch({\r\n type: \"searchProfessionalKits\",\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: PROFESSIONAL_KITS.SEARCH_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"searchProfessionalKits\",\r\n payload: [],\r\n });\r\n dispatch({\r\n type: PROFESSIONAL_KITS.SEARCH_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\nexport const registerStockInWarehouseAction =\r\n (formData) => async (dispatch) => {\r\n registerStockInWarehouse(formData)\r\n .then(() => {\r\n dispatch({\r\n type: \"registerStockInWarehouse\",\r\n payload: true,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"registerStockInWarehouse\",\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\nexport const registerLossOrBreakAction = (formData, _onCloseAction) => async (dispatch) => {\r\n registerLossBreak(formData)\r\n .then(() => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: _onCloseAction ?? undefined,\r\n okAction: _onCloseAction ?? undefined,\r\n isSuccess: true,\r\n message: \"O seu registo foi realizado com sucesso.\"\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[\r\n Object.keys(error.response.data.errors)[0]\r\n ][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getUnitValueByCategoryAction = (category) => async (dispatch) => {\r\n getUnitValueByCategory(category)\r\n .then((res) => {\r\n dispatch({\r\n type: \"getUnitValueByCategory\",\r\n payload: { categoryId: category, unitValue: res.data },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"getUnitValueByCategory\",\r\n payload: { categoryId: category, unitValue: 0 },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getBatchValueAction = (category, quantity) => async (dispatch) => {\r\n getBatchValue(category, quantity)\r\n .then((res) => {\r\n dispatch({\r\n type: \"getBatchValue\",\r\n payload: { batchValue: res.data.batchValue },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"getBatchValue\",\r\n payload: { batchValue: 0 },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getKitDeliveryApplicationDetailsAction =\r\n (applicationCode) => async (dispatch) => {\r\n getKitDeliveryApplicationDetails(applicationCode)\r\n .then((res) => {\r\n if (res.data)\r\n dispatch({\r\n type: \"getKitDeliveryApplicationDetails\",\r\n payload: res.data,\r\n });\r\n else {\r\n dispatch({\r\n type: \"getKitDeliveryApplicationDetails\",\r\n payload: {},\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message:\r\n \"Não existem agendamentos de entrega de kit para a candidatura indicada\",\r\n },\r\n },\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"getKitDeliveryApplicationDetails\",\r\n payload: {},\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\n\r\nexport const showRegisterLossBreakModalAction =\r\n (_toShow, _category, _batchNumber, _province, _warehouse, _onCloseAction) =>\r\n async (dispatch) => {\r\n dispatch({\r\n type: \"showRegisterLossBreakModal\",\r\n payload: {\r\n toShow: _toShow,\r\n category: _category,\r\n batchNumber: _batchNumber,\r\n province: _province,\r\n warehouse: _warehouse,\r\n onCloseAction: _onCloseAction\r\n },\r\n });\r\n };\r\n\r\nexport const showRegisterInWareHouseModalAction =\r\n (_toShow, _category, _province, _warehouse) => async (dispatch) => {\r\n dispatch({\r\n type: \"showRegisterInWareHouseModal\",\r\n payload: {\r\n toShow: _toShow,\r\n category: _category,\r\n province: _province,\r\n warehouse: _warehouse,\r\n },\r\n });\r\n };\r\n\r\nexport const showDeliverKitModalAction =\r\n (_toShow, _category) => async (dispatch) => {\r\n dispatch({\r\n type: \"getKitDeliveryApplicationDetails\",\r\n payload: {},\r\n });\r\n dispatch({\r\n type: \"showDeliverKitModal\",\r\n payload: {\r\n toShow: _toShow,\r\n category: _category,\r\n },\r\n });\r\n };\r\n\r\nexport const hideKitCharacterizationResultModalAction =\r\n () => async (dispatch) => {\r\n dispatch({ type: \"hideKitCharacterizationResultModal\", payload: false });\r\n };\r\n\r\nexport const hideRegisterStockInWarehouseResultModalAction =\r\n () => async (dispatch) => {\r\n dispatch({\r\n type: \"hideRegisterStockInWarehouseResultModal\",\r\n payload: false,\r\n });\r\n };\r\n\r\nexport const hideDeliverKitResultModalAction = () => async (dispatch) => {\r\n dispatch({ type: \"hideDeliverKitResultModalAction\", payload: false });\r\n};\r\n\r\nexport const getProfessionalKitDeliveryDocumentAction = (docId, docName) => async () => {\r\n getProfessionalKitDeliveryDocument(docId)\r\n .then((res) => {\r\n const link = document.createElement(\"a\");\r\n link.href = convertByteArrayToBlobUrl(res.data);\r\n link.setAttribute(\"download\", docName);\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n })\r\n .catch((error) => {\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default characterizeProfessionalKitAction;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\nimport { EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const POST_CHARACTERIZE_PROFESSIONAL_KIT_URL = \"ProfessionalKits/create-professional-kit\";\r\nexport const POST_UPDATE_PROFESSIONAL_KIT_URL = \"ProfessionalKits/update-professional-kit\";\r\nexport const POST_REGISTER_STOCK_IN_WAREHOUSE_URL = \"Stock/manage-stock\";\r\nexport const POST_REGISTER_LOSS_BREAK_URL = \"Stock/remove-stock\"\r\nexport const GET_UNIT_VALUE_BY_CATEGORY_URL = \"Categories/get-category-unit-price?CategoryId=\";\r\nexport const GET_BATCH_VALUE__URL = \"Categories/get-batch-value?categoryId={cId}&quantity={q}\";\r\nexport const GET_SEARCH_PROFESSIONAL_KITS__URL = \"ProfessionalKits/get-professional-kits\";\r\nexport const GET_PROFESSIONAL_KIT_DETAILS_URL = \"ProfessionalKits/get-professional-kit-details\";\r\nexport const POST_UPDATE_PROFESSIONAL_KIT_STATE_URL = \"ProfessionalKits/update-active-professional-kit\";\r\nexport const GET_SEARCH_STOCKS__URL = \"Stock/get-stock\";\r\nexport const GET_STOCK_DETAILS_URL = \"Stock/get-stock-details\";\r\nexport const GET_KIT_DELIVERY_APPLICATION_DETAILS_URL = \"Stock/get-deliver-kit-application-details\";\r\nexport const POST_SCHEDULE_KIT_DELIVERY_URL = \"Applications/schedule-professional-kit-delivery\";\r\nexport const GET_PROFESSIONAL_KIT_DELIVERY_DOCUMENT = \"Applications/get-professional-kit-delivery-document?professionalKitDeliveryId=\";\r\n\r\nexport function scheduleKitDelivery(kitDelivery) {\r\n return axios.post(INTERNAL_API_URL + POST_SCHEDULE_KIT_DELIVERY_URL, kitDelivery);\r\n}\r\nexport function characterizeProfessionalKit(professionalKit) {\r\n return axios.post(INTERNAL_API_URL + POST_CHARACTERIZE_PROFESSIONAL_KIT_URL, {\r\n professionalKit\r\n });\r\n}\r\nexport function updateProfessionalKit(professionalKit) {\r\n return axios.post(INTERNAL_API_URL + POST_UPDATE_PROFESSIONAL_KIT_URL, {\r\n professionalKit\r\n });\r\n}\r\n\r\nexport function updateProfessionalKitState(professionalKit) {\r\n return axios.post(INTERNAL_API_URL + POST_UPDATE_PROFESSIONAL_KIT_STATE_URL, {\r\n professionalKitId: professionalKit\r\n });\r\n}\r\n\r\nexport function getProfessionalKitDetails(kitId) {\r\n return axios.get(INTERNAL_API_URL + GET_PROFESSIONAL_KIT_DETAILS_URL, {\r\n params: {\r\n ProfessionalKitId: kitId\r\n }\r\n });\r\n}\r\n\r\nexport function searchProfessionalKits(formData) {\r\n return axios.post(INTERNAL_API_URL + GET_SEARCH_PROFESSIONAL_KITS__URL, formData)\r\n}\r\n\r\nexport function searchStock(formData) {\r\n return axios.post(INTERNAL_API_URL + GET_SEARCH_STOCKS__URL, formData)\r\n}\r\n\r\nexport function getStockDetails(warehouseStockId) {\r\n return axios.get(INTERNAL_API_URL + GET_STOCK_DETAILS_URL, {\r\n params: {\r\n WarehouseStockId: warehouseStockId\r\n }\r\n });\r\n}\r\n\r\nexport function registerStockInWarehouse(wsem) {\r\n return axios.post(INTERNAL_API_URL + POST_REGISTER_STOCK_IN_WAREHOUSE_URL, {\r\n wsem\r\n });\r\n}\r\n\r\nexport function registerLossBreak(wsem) {\r\n return axios.post(INTERNAL_API_URL + POST_REGISTER_LOSS_BREAK_URL, {\r\n wsem\r\n });\r\n}\r\n\r\nexport function getUnitValueByCategory(category) {\r\n return axios.get(INTERNAL_API_URL + GET_UNIT_VALUE_BY_CATEGORY_URL + category);\r\n}\r\n\r\nexport function getBatchValue(category, quantity) {\r\n return axios.get(EXTERNAL_API_URL + GET_BATCH_VALUE__URL.replace(\"{cId}\", category).replace(\"{q}\", quantity));\r\n}\r\n\r\nexport function getKitDeliveryApplicationDetails(applicationCode) {\r\n return axios.get(INTERNAL_API_URL + GET_KIT_DELIVERY_APPLICATION_DETAILS_URL, {\r\n params: {\r\n ApplicationCode: applicationCode\r\n }\r\n });\r\n}\r\n\r\nexport function getProfessionalKitDeliveryDocument(data) {\r\n return axios.get(INTERNAL_API_URL + GET_PROFESSIONAL_KIT_DELIVERY_DOCUMENT + data, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n responseType: \"blob\",\r\n });\r\n}\r\n","import {\r\n createNotification,\r\n getNotifications,\r\n updateNotification,\r\n getUnreadNotifications,\r\n getNumberOfUnreadNotifications,\r\n} from \"crud/notifications.crud\";\r\nimport { NOTIFICATION, DIALOG } from \"utils/actionsConsts\";\r\n\r\nexport const createNotificationAction = (formData, successFunction) => async (dispatch) => {\r\n dispatch({\r\n type: NOTIFICATION.CREATE_LOADING,\r\n payload: true,\r\n });\r\n createNotification(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: NOTIFICATION.CREATE,\r\n payload: res.data,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n goBack: false,\r\n isSuccess: res.data,\r\n message: res.data ? \"Notificação criada com sucesso\" : \"Ocorreu um erro a criar a notificação\",\r\n okAction: res.data ? successFunction : null,\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: NOTIFICATION.CREATE_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: NOTIFICATION.CREATE_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: NOTIFICATION.CREATE,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getNotificationsAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: NOTIFICATION.GET_NOTIFICATIONS_LOADING,\r\n payload: true,\r\n });\r\n getNotifications(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n id: record.id,\r\n isRead: record.isRead,\r\n message: record.message,\r\n date: record.notificationDate,\r\n sentBy: record.sentByUserName,\r\n origin: record.origin,\r\n title: record.subject,\r\n subtitle: record.motive,\r\n };\r\n });\r\n dispatch({\r\n type: NOTIFICATION.GET_NOTIFICATIONS,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: NOTIFICATION.GET_NOTIFICATIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: NOTIFICATION.GET_NOTIFICATIONS,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: NOTIFICATION.GET_NOTIFICATIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getUnreadNotificationAction = () => async (dispatch) => {\r\n dispatch({\r\n type: NOTIFICATION.GET_UNREAD_NOTIFICATIONS_LOADING,\r\n payload: true,\r\n });\r\n getUnreadNotifications(null, null, true, 5)\r\n .then((res) => {\r\n console.log(res);\r\n const mappedList = [];\r\n res.data.result.forEach((child) => {\r\n mappedList.push({\r\n id: child.id,\r\n isRead: child.isRead,\r\n message: child.message,\r\n date: child.notificationDate,\r\n sentBy: child.sentByUserName,\r\n origin: child.origin,\r\n title: child.subject,\r\n subtitle: child.motive,\r\n });\r\n });\r\n dispatch({\r\n type: NOTIFICATION.GET_UNREAD_NOTIFICATIONS,\r\n result: true,\r\n payload: { notifications: mappedList, count: res.data.count },\r\n });\r\n dispatch({\r\n type: NOTIFICATION.GET_UNREAD_NOTIFICATIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: NOTIFICATION.GET_UNREAD_NOTIFICATIONS,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: NOTIFICATION.GET_UNREAD_NOTIFICATIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateNotificationAction = (notificationId) => async (dispatch) => {\r\n updateNotification(notificationId)\r\n .then(() => {\r\n dispatch({\r\n type: NOTIFICATION.UPDATE_NOTIFICATION,\r\n payload: { id: notificationId },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: NOTIFICATION.UPDATE_NOTIFICATION,\r\n payload: { id: null },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getNumberOfUnreadNotificationsAction = () => async (dispatch) => {\r\n getNumberOfUnreadNotifications()\r\n .then((res) => {\r\n dispatch({\r\n type: NOTIFICATION.GET_TOTAL_UNREAD_NOTIFICATIONS,\r\n payload: res.data.unreadCount,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: NOTIFICATION.GET_TOTAL_UNREAD_NOTIFICATIONS,\r\n payload: 0,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default createNotificationAction;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL, EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const CREATE_NOTIFICATION_URL = \"UserNotifications/create-notification\";\r\nexport const GET_NOTIFICATIONS_URL = \"UserNotifications/get-notifications\";\r\nexport const POST_UPDATE_NOTIFICATION_URL = \"UserNotifications/update-notification\";\r\nexport const GET_UNREAD_NOTIFICATIONS_URL = \"UserNotifications/get-notifications-unread\";\r\nexport const GET_TOTAL_UNREAD_NOTIFICATIONS_URL = \"UserNotifications/get-number-of-unread-notifications\";\r\n\r\n\r\nexport function createNotification(data) {\r\n return axios.post(INTERNAL_API_URL + CREATE_NOTIFICATION_URL, data);\r\n}\r\n\r\nexport function getNotifications(formData) {\r\n return axios.post(EXTERNAL_API_URL + GET_NOTIFICATIONS_URL, formData\r\n );\r\n}\r\n\r\nexport function getUnreadNotifications(_message, _origin, _onlyUnread, _maxResult) {\r\n return axios.get(EXTERNAL_API_URL + GET_UNREAD_NOTIFICATIONS_URL, {\r\n params: {\r\n lastXNotifications: _maxResult,\r\n message: _message,\r\n origin: _origin,\r\n onlyUnread: _onlyUnread\r\n },\r\n });\r\n}\r\n\r\nexport function getNumberOfUnreadNotifications() {\r\n return axios.get(EXTERNAL_API_URL + GET_TOTAL_UNREAD_NOTIFICATIONS_URL);\r\n}\r\n\r\nexport function updateNotification(_notificationId) {\r\n return axios.post(EXTERNAL_API_URL + POST_UPDATE_NOTIFICATION_URL, {\r\n notificationId: _notificationId\r\n });\r\n}\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Backdrop from \"@material-ui/core/Backdrop\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n backdrop: {\r\n zIndex: theme.zIndex.drawer + 1,\r\n color: theme.palette.white.main,\r\n },\r\n}));\r\n\r\nexport default function GenericBackdrop(props) {\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","const componentStyles = (theme) => ({\r\n buttonLabel: {\r\n fontSize: \".875rem\",\r\n fontWeight: \"600\",\r\n color: theme.palette.primary.greyBlue,\r\n textTransform: \"capitalize\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n padding: \"0!important\",\r\n },\r\n },\r\n listItemRoot: {\r\n padding: \"1rem\",\r\n borderBottom: \"1px solid \" + theme.palette.gray[200],\r\n textDecoration: \"none\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n color: theme.palette.white.main,\r\n \"& .MuiAvatar-root\": {\r\n backgroundColor: theme.palette.white.main\r\n },\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.greyBlue\r\n },\r\n },\r\n },\r\n boxAnchor: {\r\n textDecoration: \"none\",\r\n padding: \".5rem 1rem\",\r\n fontSize: \".875rem\",\r\n fontWeight: \"600\",\r\n textAlign: \"center\",\r\n paddingBottom: \"1rem\",\r\n paddingTop: \"1rem\",\r\n display: \"block\",\r\n color: theme.palette.primary.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n color: theme.palette.white.main,\r\n },\r\n },\r\n menuList: {\r\n padding: \"0!important\",\r\n },\r\n menuPaper: {\r\n padding: \"0!important\",\r\n minWidth: \"420px\",\r\n },\r\n typographyH6: {\r\n fontSize: \".875rem!important\",\r\n margin: \"0!important\",\r\n color: theme.palette.gray[600],\r\n },\r\n typographyH4: {\r\n fontSize: \".875rem!important\",\r\n margin: \"0!important\",\r\n color: \"inherit\"\r\n },\r\n typographyOrigin: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n color: theme.palette.gray[600],\r\n },\r\n typographySentBy: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n color: theme.palette.gray[600],\r\n },\r\n typographySubject: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n color: theme.palette.gray[700],\r\n },\r\n notificationsLargeBell: {\r\n width: \"34px\",\r\n height: \"34px\",\r\n },\r\n notificationBadge: {\r\n color: theme.palette.white.main,\r\n backgroundColor: theme.palette.primary.main,\r\n right: \"-2px\",\r\n minWidth: \"22px\",\r\n height: \"22px\",\r\n borderRadius: \"44px\"\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n /*\r\n SECTIONS:\r\n - Generic\r\n - Avatar\r\n - Buttons\r\n - Breadcrumbs\r\n - Containers\r\n - Cards\r\n - Documents\r\n - Forms\r\n - Icons\r\n - Input Fields\r\n - Labels\r\n - Pagination\r\n - ReactQuill\r\n - Tables\r\n - Tabs\r\n - Tooltips\r\n - Switches\r\n - Modals\r\n */\r\n\r\n //Generic\r\n paddingRight0px: {\r\n paddingRight: \"0px\",\r\n },\r\n paddingLeft0px: {\r\n paddingLeft: \"0px\",\r\n },\r\n minHeight0PX: {\r\n minHeight: \"auto!important\",\r\n },\r\n alignRight: {\r\n textAlign: \"right\",\r\n },\r\n justifyContentCenter: {\r\n justifyContent: \"center\",\r\n },\r\n sideBySideDiv: {\r\n float: \"left\",\r\n marginRight: \"10px\",\r\n },\r\n\r\n //Avatar\r\n avatarRoot: {\r\n width: \"35px\",\r\n height: \"35px\",\r\n fontWeight: 600,\r\n fontSize: \"12.25px\",\r\n lineHeight: \"17px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n avatarIconOutlined: {\r\n padding: \"2px\",\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.primary.darkBlue,\r\n borderRadius: \"28px\",\r\n border: \"1px solid \" + theme.palette.primary.darkBlue,\r\n },\r\n\r\n //Buttons\r\n containedTertiaryButton: {\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.primary.darkBlue,\r\n border: \"1px solid \" + theme.palette.primary.darkBlue,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n color: theme.palette.white.main,\r\n borderColor: theme.palette.primary.greyBlue,\r\n },\r\n \"&:active\": {\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n color: theme.palette.white.main,\r\n borderColor: theme.palette.primary.darkBlue,\r\n },\r\n \"&:focus\": {\r\n color: theme.palette.primary.darkBlue,\r\n border: \"2px solid \" + theme.palette.secondary.skyBlue,\r\n },\r\n \"&.Mui-disabled\": {\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.primary.mediumBlue,\r\n borderColor: theme.palette.primary.mediumBlue,\r\n },\r\n },\r\n containedGhostButton: {\r\n textDecorationLine: \"none\",\r\n textTransform: \"uppercase\",\r\n backgroundColor: theme.palette.transparent.main + \"!important\",\r\n color: theme.palette.primary.main,\r\n borderColor: theme.palette.transparent.main,\r\n boxShadow: \"none !important\",\r\n \"&:hover\": {\r\n color: theme.palette.primary.greyBlue,\r\n textDecorationLine: \"none\",\r\n fontWeight: \"600\",\r\n },\r\n \"&:active\": {\r\n color: theme.palette.primary.darkBlue,\r\n fontWeight: \"600\",\r\n },\r\n \"&:focus\": {\r\n color: theme.palette.primary.main,\r\n fontWeight: \"600\",\r\n \"& .MuiButton-label\": {\r\n textDecorationLine: \"underline\",\r\n },\r\n },\r\n \"&.Mui-disabled\": {\r\n color: theme.palette.primary.mediumBlue,\r\n },\r\n },\r\n indicatorButton: {\r\n borderRadius: \"4px\",\r\n padding: \"20px\",\r\n width: \"100%\",\r\n textAlign: \"left\",\r\n textTransform: \"none\",\r\n boxShadow: \"none\",\r\n border: \"none\",\r\n },\r\n highlightedIndicatorButton: {\r\n height: \"150px\",\r\n background: \"linear-gradient(180deg, rgba(159, 205, 250, 0.216) 0%, rgba(0, 88, 158, 0.464) 100%)\",\r\n color: theme.palette.white.main,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.white.main,\r\n },\r\n \"&:hover\": {\r\n background: theme.palette.primary.greyBlue,\r\n },\r\n \"&:active\": {\r\n background: theme.palette.primary.darkBlue,\r\n },\r\n },\r\n normalIndicatorButton: {\r\n height: \"115px\",\r\n marginTop: \"10px\",\r\n background:\r\n \"linear-gradient(180deg, \" +\r\n theme.palette.white.main +\r\n \" 17.19%, \" +\r\n theme.palette.secondary.lightSkyBlue +\r\n \" 75%, \" +\r\n theme.palette.secondary.mediumSkyBlue +\r\n \" 100%)\",\r\n color: theme.palette.primary.darkBlue,\r\n fontWeight: \"700\",\r\n \"&:hover\": {\r\n background: theme.palette.primary.mediumBlue,\r\n },\r\n \"&:active\": {\r\n background: theme.palette.primary.main,\r\n color: theme.palette.white.main,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.white.main,\r\n },\r\n },\r\n },\r\n normalIndicator: {\r\n height: \"115px\",\r\n marginTop: \"10px\",\r\n background:\r\n \"linear-gradient(180deg, \" +\r\n theme.palette.white.main +\r\n \" 17.19%, \" +\r\n theme.palette.secondary.lightSkyBlue +\r\n \" 75%, \" +\r\n theme.palette.secondary.mediumSkyBlue +\r\n \" 100%)\",\r\n color: theme.palette.primary.darkBlue,\r\n fontWeight: \"700\",\r\n },\r\n buttonProgress: {\r\n color: theme.palette.white.main,\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n marginTop: -12,\r\n marginLeft: -12,\r\n },\r\n\r\n //Breadcrumbs\r\n breadcrumbs: {\r\n marginTop: \"150px\",\r\n position: \"fixed\",\r\n width: \"100%\",\r\n zIndex: 2,\r\n },\r\n\r\n //Containers\r\n containerRoot: {\r\n [theme.breakpoints.up(\"lg\")]: {\r\n paddingLeft: \"3.5rem\",\r\n paddingRight: \"3.5rem\",\r\n },\r\n marginTop: \"10rem\",\r\n },\r\n containerRootAfterBreadcrumbs: {\r\n [theme.breakpoints.up(\"lg\")]: {\r\n paddingLeft: \"3.5rem\",\r\n paddingRight: \"3.5rem\",\r\n },\r\n marginTop: \"14rem\",\r\n },\r\n\r\n //Cards\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n cardHeader: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"18px\",\r\n lineHeight: \"25px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.main,\r\n },\r\n cardHeaderAction: {\r\n display: \"flex\",\r\n marginTop: 0,\r\n marginRight: 0,\r\n },\r\n cardHeaderActionGrid: {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignContent: \"center\",\r\n justifyContent: \"space-evenly\",\r\n alignItems: \"center\",\r\n height: \"100%\",\r\n width: \"100%\",\r\n },\r\n cardHeaderActionTypography: {\r\n marginBottom: \"0px\",\r\n marginTop: \"8px\",\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n cardActionsRoot: {\r\n paddingBottom: \"1.5rem!important\",\r\n paddingTop: \"1.5rem!important\",\r\n borderTop: \"0!important\",\r\n },\r\n cardHeaderActionSwitchGrid: {\r\n paddingLeft: \"5px\",\r\n paddingRight: \"5px\",\r\n alignSelf: \"center\",\r\n },\r\n cardHeaderActionSwitchActiveLabel: {\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n paddingRight: \"5px\",\r\n paddingLeft: \"5px\",\r\n },\r\n cardHeaderActionSwitchInactiveLabel: {\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.gray[600],\r\n textTransform: \"uppercase\",\r\n paddingRight: \"5px\",\r\n paddingLeft: \"5px\",\r\n },\r\n cardElementsCount: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"14px\",\r\n lineHeight: \"16.8px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.gray[900],\r\n marginTop: \"6px\",\r\n },\r\n cardHeaderAvatar: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"17px\",\r\n lineHeight: \"23px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.primary.main,\r\n },\r\n cardHeaderIcon: {\r\n display: \"flex\",\r\n width: \"20px\",\r\n height: \"auto\",\r\n },\r\n innerCardHeaderTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n cardExpand: {\r\n transform: \"rotate(0deg)\",\r\n marginLeft: \"auto\",\r\n transition: theme.transitions.create(\"transform\", {\r\n duration: theme.transitions.duration.shortest,\r\n }),\r\n },\r\n cardExpandOpen: {\r\n transform: \"rotate(180deg)\",\r\n },\r\n cardContentBorderBottom: {\r\n borderBottom: \"1px solid rgba(0, 0, 0,.05)\",\r\n },\r\n cardTabButton: {\r\n fontWeight: \"bold\",\r\n boxShadow: \"0px 0px 0px\",\r\n backgroundColor: theme.palette.grey[200],\r\n \"&.Mui-selected\": {\r\n backgroundColor: theme.palette.white.main + \"!important\",\r\n color: theme.palette.primary.main + \"!important\",\r\n boxShadow: \"0px -2px 1px\" + theme.palette.primary.main,\r\n },\r\n },\r\n\r\n //Documents\r\n documentNameRoot: {\r\n paddingRight: \"10px\",\r\n },\r\n documentBadge: {\r\n backgroundColor: theme.palette.white.main,\r\n marginRight: \"10px\",\r\n marginBottom: \"10px\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n color: theme.palette.primary.main,\r\n borderRadius: \"4px\",\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n padding: \".4em .3em .3em .85em\",\r\n alignItems: \"center\",\r\n wordBreak: \"break-all\",\r\n },\r\n documentBadgeContainer: {\r\n paddingLeft: \"15px\",\r\n overflow: \"auto\",\r\n maxHeight: \"150px\",\r\n },\r\n documentAvatar: {\r\n width: \"100px\",\r\n height: \"100px\",\r\n },\r\n documentDeleteButtonIconRoot: {\r\n color: theme.palette.primary.main,\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n documentDeleteButtonRoot: {\r\n padding: 0,\r\n },\r\n documentDropzone: {\r\n flex: \"1\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n padding: \"20px\",\r\n borderWidth: \"1px\",\r\n borderRadius: \"1px\",\r\n height: \"62px!important\",\r\n borderColor: theme.palette.gray[600],\r\n borderStyle: \"dashed\",\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.gray[500],\r\n outline: \"none\",\r\n transition: \"border .24s ease-in-out\",\r\n cursor: \"pointer\",\r\n },\r\n\r\n // Forms\r\n formControlCheckboxLabelRoot: {\r\n position: \"relative\",\r\n display: \"flex\",\r\n minHeight: \"1.5rem\",\r\n WebkitPrintColorAdjust: \"exact\",\r\n marginLeft: \"17px\",\r\n marginTop: \"20px\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n marginLeft: \"0\",\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n marginTop: \"0\",\r\n },\r\n },\r\n formControlCheckboxLabelLabel: {\r\n cursor: \"pointer\",\r\n fontSize: \".875rem\",\r\n position: \"relative\",\r\n verticalAlign: \"top\",\r\n display: \"inline-block\",\r\n color: theme.palette.gray[600],\r\n },\r\n formControlLabelCheckboxInTableHeader: {\r\n fontSize: \".7rem\",\r\n fontWeight: \"650\",\r\n color: theme.palette.gray[900],\r\n },\r\n formControlLabelNoMargin: {\r\n margin: 0,\r\n },\r\n formRatingInTableCell: {\r\n marginBottom: \"0px\",\r\n },\r\n formTextInputInTableCell: {\r\n marginBottom: \"10px\",\r\n },\r\n\r\n //Icons\r\n iconButtonOutlined: {\r\n padding: \"2px\",\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.primary.darkBlue,\r\n borderRadius: \"28px\",\r\n border: \"1px solid \" + theme.palette.primary.darkBlue,\r\n \"&:hover\": {\r\n color: theme.palette.white.main,\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n borderColor: theme.palette.primary.greyBlue,\r\n },\r\n \"&:active\": {\r\n color: theme.palette.white.main,\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n borderColor: theme.palette.primary.darkBlue,\r\n },\r\n \"&:focus\": {\r\n color: theme.palette.primary.darkBlue,\r\n borderColor: theme.palette.secondary.skyBlue,\r\n },\r\n \"&.Mui-disabled\": {\r\n color: theme.palette.primary.mediumBlue,\r\n borderColor: theme.palette.primary.mediumBlue,\r\n },\r\n },\r\n ratingBox: {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n \"& > * + *\": {\r\n marginTop: theme.spacing(1),\r\n },\r\n },\r\n overallRatingIcon: {\r\n marginLeft: \"-10px\",\r\n marginRight: \"-10px\",\r\n },\r\n timelineIcons: {\r\n color: theme.palette.white.main,\r\n width: \"25px\",\r\n height: \"auto\",\r\n marginTop: \"5px\",\r\n },\r\n timelineIconsBox: {\r\n background: theme.palette.primary.greyBlue,\r\n borderRadius: \"35px\",\r\n width: \"37px\",\r\n height: \"37px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n },\r\n errorIcon: {\r\n color: theme.palette.error.main,\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n checkIcon: {\r\n color: theme.palette.info.green,\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n alertIcon: {\r\n padding: \"12px 0\",\r\n },\r\n\r\n //Input Fields\r\n borderWarning: {\r\n borderColor: theme.palette.warning.main + \"!important\",\r\n },\r\n selectBorderWarningInputRoot: {\r\n \"& .MuiOutlinedInput-notchedOutline\": {\r\n borderColor: theme.palette.warning.main + \"!important\",\r\n },\r\n },\r\n monetaryFields: {\r\n textAlign: \"end\",\r\n },\r\n\r\n //Labels\r\n counterValue: {\r\n fontStyle: \"normal\",\r\n fontSize: \"30px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n height: \"25px\",\r\n },\r\n counterLabel: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"16px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n marginTop: \"10px\",\r\n display: \"flex\",\r\n },\r\n detailFormLabels: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n detailLabels: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n\r\n //Pagination\r\n alignPagination: {\r\n \"& .MuiPagination-ul\": {\r\n justifyContent: \"center\",\r\n marginTop: \"20px\",\r\n marginBottom: \"20px\",\r\n },\r\n },\r\n\r\n //ReactQuill\r\n quillOverflowWrap: {\r\n \"& .ql-container .ql-editor\": {\r\n overflowWrap: \"anywhere\",\r\n \"& img\": {\r\n maxWidth: \"100%\",\r\n },\r\n },\r\n },\r\n\r\n //Tables\r\n tableCellRoot: {\r\n verticalAlign: \"middle\",\r\n paddingLeft: \"1rem\",\r\n paddingRight: \"1rem\",\r\n borderTop: \"0\",\r\n fontSize: \".75rem\",\r\n padding: \".25rem\",\r\n },\r\n tableCellRootHead: {\r\n backgroundColor: theme.palette.secondary.lightSkyBlue,\r\n color: theme.palette.gray[900],\r\n fontSize: \".7rem !important\",\r\n fontWeight: \"650\",\r\n textTransform: \"none !important\",\r\n },\r\n tableCellRootHeadMultiple: {\r\n backgroundColor: theme.palette.gray[200],\r\n color: theme.palette.gray[600],\r\n fontSize: \".7rem !important\",\r\n fontWeight: \"650\",\r\n textTransform: \"none !important\",\r\n },\r\n tableCellHeadStickyRight: {\r\n textAlign: \"center\",\r\n position: \"sticky\",\r\n right: 0,\r\n paddingLeft: \"0.5rem\",\r\n paddingRight: \"0.5rem\",\r\n boxShadow: \"inset 2px 0\" + theme.palette.gray[200],\r\n },\r\n tableCellBodyStickyRight: {\r\n position: \"sticky\",\r\n right: 0,\r\n backgroundColor: theme.palette.white.main,\r\n textAlign: \"center\",\r\n boxShadow: \"inset 2px 0\" + theme.palette.gray[200],\r\n },\r\n tableRowEllipsis: {\r\n overflow: \"hidden\",\r\n textOverflow: \"ellipsis\",\r\n maxWidth: \"200px\",\r\n },\r\n noResultsInfoInTable: {\r\n margin: \"20px\",\r\n },\r\n\r\n //Tabs\r\n changeTabsGroup: {\r\n display: \"grid\",\r\n gridTemplateColumns: \"repeat(auto-fill, minmax(min(310px, 100%), 1fr))\",\r\n flex: 1,\r\n margin: \"0 15px\",\r\n marginBottom: \"25px\",\r\n },\r\n changeTabs: {\r\n width: \"100%\",\r\n heigth: \"40px\",\r\n backgroundColor: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08);\",\r\n borderRadius: \"6px\",\r\n textTransform: \"uppercase\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"14px\",\r\n lineHeight: \"16.8px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.darkBlue,\r\n \"&.Mui-selected\": {\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"14px\",\r\n lineHeight: \"17px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n background: theme.palette.primary.darkBlue,\r\n },\r\n },\r\n \"&:hover\": {\r\n background: theme.palette.primary.greyBlue,\r\n color: theme.palette.white.main,\r\n },\r\n },\r\n\r\n //Tooltips\r\n tooltipInfoIcon: {\r\n color: theme.palette.primary.main,\r\n marginLeft: \"5px\",\r\n },\r\n tooltipDescritionSizeWidth: {\r\n maxWidth: 500,\r\n },\r\n\r\n //Switches\r\n disabledSwitchThumb: {},\r\n disabledSwitchTrack: {},\r\n infoSwitchThumb: {},\r\n infoSwitchTrack: {},\r\n successSwitchThumb: {},\r\n successSwitchTrack: {},\r\n errorSwitchThumb: {},\r\n errorSwitchTrack: {},\r\n warningSwitchThumb: {},\r\n warningSwitchTrack: {},\r\n whiteSwitchThumb: {},\r\n whiteSwitchTrack: {},\r\n checkedSwitch: {\r\n \"& $disabledSwitchThumb\": {\r\n backgroundColor: theme.palette.gray[200] + \"!important\",\r\n },\r\n \"& + $disabledSwitchTrack\": {\r\n borderColor: theme.palette.gray[200] + \"!important\",\r\n },\r\n \"& $infoSwitchThumb\": {\r\n backgroundColor: theme.palette.info.main + \"!important\",\r\n },\r\n \"& + $infoSwitchTrack\": {\r\n borderColor: theme.palette.info.main + \"!important\",\r\n },\r\n \"& $successSwitchThumb\": {\r\n backgroundColor: theme.palette.success.main + \"!important\",\r\n },\r\n \"& + $successSwitchTrack\": {\r\n borderColor: theme.palette.success.main + \"!important\",\r\n },\r\n \"& $errorSwitchThumb\": {\r\n backgroundColor: theme.palette.error.main + \"!important\",\r\n },\r\n \"& + $errorSwitchTrack\": {\r\n borderColor: theme.palette.error.main + \"!important\",\r\n },\r\n \"& $warningSwitchThumb\": {\r\n backgroundColor: theme.palette.primary.main + \"!important\",\r\n },\r\n \"& + $warningSwitchTrack\": {\r\n borderColor: theme.palette.primary.main + \"!important\",\r\n },\r\n \"& $whiteSwitchThumb\": {\r\n backgroundColor: theme.palette.white.main + \"!important\",\r\n },\r\n \"& + $whiteSwitchTrack\": {\r\n borderColor: theme.palette.white.main + \"!important\",\r\n },\r\n },\r\n\r\n // Modals\r\n modalHeader: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"24px\",\r\n lineHeight: \"33px\",\r\n textAlign: \"center\",\r\n color: theme.palette.primary.main,\r\n marginBottom: \"65px\",\r\n },\r\n subHeader: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"300\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n modalHelpIconBox: {\r\n textAlign: \"center\",\r\n color: theme.palette.info.lightgreen,\r\n },\r\n modalHelpIconRoot: {\r\n width: \"100px\",\r\n height: \"auto\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import { React, useState } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport { getUnreadNotificationAction } from \"redux/actions/notificationsAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/icons components\r\nimport NotificationsIcon from \"@material-ui/icons/Notifications\";\r\nimport Badge from \"@material-ui/core/Badge\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/dropdowns/notifications-dropdown.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction NotificationsDropdown(props) {\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n const theme = useTheme();\r\n const [anchorEl, setAnchorEl] = useState(null);\r\n const [filter, setFilter] = useState({\r\n origin: \"\",\r\n lastXNotifications: 5,\r\n onlyUnread: false,\r\n message: null,\r\n });\r\n\r\n const getUnreadNotificationsCount = () => {\r\n return props.notificationState.unreadNotificationsCount ?? 0;\r\n };\r\n\r\n const isMenuOpen = Boolean(anchorEl);\r\n\r\n const handleProfileMenuOpen = (event) => {\r\n setAnchorEl(event.currentTarget);\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"origin\"] = null;\r\n temp_filter[\"lastXNotifications\"] = 5;\r\n temp_filter[\"onlyUnread\"] = false;\r\n temp_filter[\"message\"] = null;\r\n console.log(temp_filter);\r\n setFilter(temp_filter);\r\n\r\n props.getUnreadNotification(temp_filter);\r\n };\r\n\r\n const handleMenuClose = () => {\r\n setAnchorEl(null);\r\n };\r\n\r\n const menuId = \"dropdowns-notifications-dropdown-id\";\r\n const renderMenu = (\r\n \r\n \r\n \r\n Tens{\" \"}\r\n \r\n {getUnreadNotificationsCount()}\r\n {\" \"}\r\n notificações por ler.\r\n \r\n \r\n {props.notificationState.unreadNotifications !== undefined &&\r\n props.notificationState.unreadNotifications?.length > 0 && (\r\n \r\n {props.notificationState.unreadNotifications.map((prop, key) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {prop.origin ?? \"BackOffice\"}\r\n \r\n \r\n {prop.sentBy}\r\n \r\n \r\n {prop.title}\r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n )}\r\n \r\n Ver todas\r\n \r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n\r\n {renderMenu}\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getUnreadNotification: (formData) => dispatch(getUnreadNotificationAction(formData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(NotificationsDropdown);\r\n","const componentStyles = (theme) => ({\r\n buttonRoot: {\r\n padding: \".25rem 0 .25rem 1rem!important\",\r\n border: \"0!important\",\r\n boxShadow: \"none!important\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n padding: \"0!important\",\r\n paddingLeft: \"0.5rem!important\",\r\n minWidth: \"unset!important\",\r\n borderRadius: \"50%\",\r\n },\r\n },\r\n buttonLabel: { \r\n fontSize: \".875rem\",\r\n fontWeight: \"600\",\r\n color: theme.palette.primary.greyBlue,\r\n textTransform: \"capitalize\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n padding: \"0!important\",\r\n },\r\n },\r\n avatarRoot: {\r\n width: \"36px\",\r\n height: \"36px\",\r\n marginRight: \"0.5rem\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n marginRight: \"0\",\r\n },\r\n },\r\n dividerRoot: {\r\n height: \"0\",\r\n margin: \".5rem 0\",\r\n overflow: \"hidden\",\r\n borderTop: \"1px solid \" + theme.palette.gray[200],\r\n },\r\n menuTitle: {\r\n margin: \"0!important\",\r\n textTransform: \"uppercase\",\r\n display: \"block\",\r\n padding: \".5rem 1rem\",\r\n whiteSpace: \"nowrap\",\r\n },\r\n nestedItem: {\r\n display: \"flex\",\r\n paddingTop: \"0.2rem\",\r\n paddingBottom: \"0.2rem\",\r\n \"&:hover\": {\r\n fontWeight: \"900\",\r\n color: theme.palette.white.main + \"!important\",\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.white.main\r\n },\r\n },\r\n \"&:active\": {\r\n color: theme.palette.white.main,\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.white.main\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import { logout } from \"../../../crud/auth.crud\";\r\n\r\nconst logoutAction = (email) => async (dispatch) => {\r\n logout(email)\r\n .then((res) => {\r\n dispatch({\r\n type: \"logout\",\r\n payload: res.data.succeeded,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"logout\",\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default logoutAction;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL, EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const LOGIN_URL = \"account/login\";\r\nexport const REGISTER_URL = \"account/register\";\r\nexport const REFRESH_TOKEN_URL = \"account/refresh-token\";\r\nexport const LOGOUT_URL = \"account/logout\";\r\nexport const RECOVER_PASSWORD_URL = \"User/recover-password\";\r\nexport const GET_USER_PERMISSIONS = \"account/get_user_permissions\";\r\nexport const CHANGE_PASSWORD_URL = \"User/change-password\";\r\nexport const RESET_PASSWORD_URL = \"User/reset-password\";\r\n\r\nexport const ME_URL = \"api/auth/get_user\";\r\n\r\nexport function login(username, password) {\r\n return axios.post(INTERNAL_API_URL + LOGIN_URL, {\r\n username: username,\r\n password: password,\r\n });\r\n}\r\n\r\nexport function changePassword(formData) {\r\n return axios.post(EXTERNAL_API_URL + CHANGE_PASSWORD_URL, formData);\r\n}\r\n\r\nexport function register(email, username, password) {\r\n return axios.post(INTERNAL_API_URL + REGISTER_URL, {\r\n name: username,\r\n email: email,\r\n password: password,\r\n });\r\n}\r\n\r\nexport function logout(username) {\r\n return axios.post(INTERNAL_API_URL + LOGOUT_URL, {\r\n email: username,\r\n });\r\n}\r\n\r\nexport function refresh_token(refreshToken) {\r\n return axios.post(INTERNAL_API_URL + REFRESH_TOKEN_URL, {\r\n refreshToken: refreshToken,\r\n });\r\n}\r\n\r\nexport function recover_password(email) {\r\n return axios.post(INTERNAL_API_URL + RECOVER_PASSWORD_URL, {\r\n username: email,\r\n });\r\n}\r\n\r\nexport function reset_password(username, password, token) {\r\n return axios.post(INTERNAL_API_URL + RESET_PASSWORD_URL, {\r\n token: token,\r\n username: username,\r\n newPassword: password,\r\n });\r\n}\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Hidden from \"@material-ui/core/Hidden\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/icons components\r\nimport DirectionsRun from \"@material-ui/icons/DirectionsRun\";\r\nimport Person from \"@material-ui/icons/Person\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/dropdowns/user-dropdown.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\n//Redux\r\nimport { connect } from \"react-redux\";\r\nimport logoutAction from \"redux/actions/auth/logoutAction\";\r\nimport { getNameInitials } from \"utils/converters\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UserDropdown(props) {\r\n const theme = useTheme();\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n const [anchorEl, setAnchorEl] = React.useState(null);\r\n const history = useHistory();\r\n\r\n const isMenuOpen = Boolean(anchorEl);\r\n\r\n const handleProfileMenuOpen = (event) => {\r\n setAnchorEl(event.currentTarget);\r\n };\r\n\r\n const handleMenuClose = () => {\r\n setAnchorEl(null);\r\n };\r\n\r\n const handleLogout = () => {\r\n props.logoutAction();\r\n setAnchorEl(null);\r\n };\r\n\r\n const getUserFullName = () => {\r\n return (props.authState?.name ?? \"\") + \" \" + (props.authState?.lastName ?? \"\");\r\n };\r\n const menuId = \"dropdowns-user-dropdown-id\";\r\n const renderMenu = (\r\n \r\n \r\n Bem-vindo!\r\n \r\n \r\n \r\n \r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/myProfile\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n Meu perfil\r\n \r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/quick-guides\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n Ajuda\r\n \r\n \r\n \r\n \r\n \r\n Sair\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n \r\n {props.authState?.photo ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(getUserFullName())}\r\n \r\n )}\r\n \r\n
\r\n {getUserFullName()}\r\n
\r\n
\r\n \r\n {renderMenu}\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\nconst mapDispatchToProps = (dispatch) => ({\r\n logoutAction: () => dispatch(logoutAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UserDropdown);\r\n","const componentStyles = (theme) => ({\r\n menuTitle: {\r\n margin: \"0!important\",\r\n textTransform: \"uppercase\",\r\n display: \"block\",\r\n padding: \".5rem 1rem\",\r\n whiteSpace: \"nowrap\",\r\n },\r\n menuRoot: {\r\n width: \"100%\",\r\n maxWidth: \"20rem\",\r\n },\r\n listItemRoot: {\r\n display: \"flex\",\r\n paddingTop: \"0.25rem\",\r\n paddingBottom: \"0.25rem\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"12px\",\r\n lineHeight: \"19.07px\",\r\n color: theme.palette.gray[900] + \"!important\",\r\n \"&:hover\": {\r\n color: theme.palette.white.main + \"!important\",\r\n backgroundColor: theme.palette.primary.greyBlue\r\n },\r\n \"&:active\": {\r\n color: theme.palette.white.main,\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n },\r\n },\r\n listItemTextPrimary: {\r\n fontSize: \"1rem\",\r\n },\r\n nestedItem: {\r\n paddingLeft: \"2rem\",\r\n display: \"flex\",\r\n paddingTop: \"0.2rem\",\r\n paddingBottom: \"0.2rem\",\r\n \"&:hover\": {\r\n fontWeight: \"900\",\r\n color: theme.palette.white.main + \"!important\",\r\n backgroundColor: theme.palette.primary.greyBlue\r\n },\r\n },\r\n expandIcon: {\r\n marginLeft: \"0.5rem\",\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n dotIcon: {\r\n marginRight: \"0.25rem\",\r\n width: \"10px\",\r\n height: \"10px\",\r\n },\r\n menuButton: {\r\n color: theme.palette.gray[900],\r\n \"&:hover\": {\r\n fontWeight: \"900\",\r\n color: theme.palette.primary.greyBlue,\r\n backgroundColor: theme.palette.white.main,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.greyBlue\r\n },\r\n },\r\n \"&:active\": {\r\n fontWeight: \"900\",\r\n color: theme.palette.primary.darkBlue,\r\n backgroundColor: theme.palette.white.main,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.darkBlue\r\n },\r\n },\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","export const checkOperationPermission = (operationList, operationKey) => {\r\n if (operationList !== undefined && operationList?.length > 0) {\r\n return operationList.some((item) => item.operationKey === operationKey);\r\n // console.log(operationList.some((item) => item.operationKey === operationKey));\r\n }\r\n return false;\r\n};\r\n\r\n// export const getOperationPath = (operationList, operationKey) => {\r\n// if (operationList !== undefined && operationList?.length > 0) {\r\n// return operationList.some((item) => item.operationKey === operationKey);\r\n// // console.log(operationList.some((item) => item.operationKey === operationKey));\r\n// }\r\n// return false;\r\n// };\r\n","import { defineMessages } from \"react-intl\";\r\n\r\nexport const errorMessages = defineMessages({\r\n ErrorMessage_FieldRequired: {\r\n id: \"ErrorMessage_FieldRequired\",\r\n defaultMessage: \"O campo é obrigatório\",\r\n description: \"Mensagem de erro quando um campo obrigatório do formulário não é preenchido\",\r\n },\r\n ErrorMessage_FieldPercentage: {\r\n id: \"ErrorMessage_FieldPercentage\",\r\n defaultMessage: \"O valor mínimo da % deve ser maior que 0 e menor que 100.\",\r\n description: \"Mensagem de erro quando ocorre um erro a % é incorrecta\",\r\n },\r\n ErrorMessage_GenericError: {\r\n id: \"ErrorMessage_GenericError\",\r\n defaultMessage: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n description: \"Mensagem de erro quando ocorre um erro genérico na API\",\r\n },\r\n ErrorMessage_InvalidFormat: {\r\n id: \"ErrorMessage_InvalidFormat\",\r\n defaultMessage: \"Formato inválido\",\r\n description: \"Mensagem de erro quando um campo do formulário tem um formato inválido\",\r\n },\r\n ErrorMessage_Invalid_Value: {\r\n id: \"ErrorMessage_Invalid_Value\",\r\n defaultMessage: \"Valor inválido.\",\r\n description: \"Mensagem de erro quando o valor inserido é inválido.\",\r\n },\r\n ErrorMessage_User_Colective_NIF_Invalid_Format: {\r\n id: \"ErrorMessage_User_Colective_NIF_Invalid_Format\",\r\n defaultMessage: \"O NIF deve ter 10 digitos\",\r\n description: \"Mensagem de erro quando o valor inserido no campo NIF tem um formato inválido.\",\r\n },\r\n ErrorMessage_User_Colective_PermitCode_Invalid_Format: {\r\n id: \"ErrorMessage_User_Colective_PermitCode_Invalid_Format\",\r\n defaultMessage: \"O código de alvará tem tamanho máximo de 25 caracteres\",\r\n description: \"Mensagem de erro quando o valor inserido no campo Código de Alvará tem um formato inválido.\",\r\n },\r\n ErrorMessage_Birthdate_MaxDate: {\r\n id: \"ErrorMessage_Birthdate\",\r\n defaultMessage: \"A data deve ser inferior à data atual\",\r\n description: \"Mensagem de erro quando um campo de data de nascimento tem uma data superior à atual\",\r\n },\r\n ErrorMessage_Birthdate_MinDate: {\r\n id: \"ErrorMessage_Birthdate_MinDate\",\r\n defaultMessage: \"A data deve ser superior a {minDate}\",\r\n description: \"Mensagem de erro quando um campo de data de nascimento tem uma data inferior à data mínima\",\r\n },\r\n ErrorMessage_MinRegisterDate: {\r\n id: \"ErrorMessage_MinRegisterDate\",\r\n defaultMessage: \"A idade mínima para registo é de 17 anos.\",\r\n description: \"Mensagem de erro quando a data de nascimento para registo não perfaz 17 anos.\",\r\n },\r\n ErrorMessage_ID_Card_InvalidFormat: {\r\n id: \"ErrorMessage_ID_Card_InvalidFormat\",\r\n defaultMessage: \"O número de BI tem tamanho máximo de 14 caracteres\",\r\n description: \"Mensagem de erro quando um campo do formulário tem um formato inválido\",\r\n },\r\n ErrorMessage_Generic_ValueGreaterThanZeroField: {\r\n id: \"ErrorMessage_Generic_ValueGreaterThanZeroField\",\r\n defaultMessage: \"O valor tem de ser superior a zero\",\r\n description: \"Mensagem genérica para qualquer campo que o valor tenha de ser superior a zero\",\r\n },\r\n});\r\n\r\nexport const labels = defineMessages({\r\n //General\r\n Label_Not_Applicable: {\r\n id: \"Label_Not_Applicable\",\r\n defaultMessage: \"N/A\",\r\n description: \"Not Applicable\",\r\n },\r\n Label_Yes: {\r\n id: \"Label_Yes\",\r\n defaultMessage: \"Sim\",\r\n description: \"When you want to display 'Yes'\",\r\n },\r\n Label_No: {\r\n id: \"Label_No\",\r\n defaultMessage: \"Não\",\r\n description: \"When you want to display 'No'\",\r\n },\r\n Label_Years: {\r\n id: \"Label_Years\",\r\n defaultMessage: \"anos\",\r\n description: \"Years\",\r\n },\r\n Label_Details: {\r\n id: \"Label_Details\",\r\n defaultMessage: \"Detalhes\",\r\n description: \"Details\",\r\n },\r\n Label_Total: {\r\n id: \"Label_Total\",\r\n defaultMessage: \"Total\",\r\n description: \"Total\",\r\n },\r\n Label_Generic_Active: {\r\n id: \"Label_Generic_Active\",\r\n defaultMessage: \"Activo\",\r\n description: \"Label 'Activo' que representa o estado do professional kit\",\r\n },\r\n Label_Generic_Inactive: {\r\n id: \"Label_Generic_Inactive\",\r\n defaultMessage: \"Inactivo\",\r\n description: \"Label 'Inactivo' que representa o estado do professional kit\",\r\n },\r\n Label_SeeMore: {\r\n id: \"Label_SeeMore\",\r\n defaultMessage: \"Ver mais\",\r\n description: \"See More\",\r\n },\r\n Label_SeeDetails: {\r\n id: \"Label_SeeDetailsId\",\r\n defaultMessage: \"Ver Detalhes\",\r\n description: \"See Details\",\r\n },\r\n Label_Download: {\r\n id: \"Label_Download\",\r\n defaultMessage: \"Descarregar\",\r\n description: \"Download\",\r\n },\r\n Label_Select: {\r\n id: \"Label_Select\",\r\n defaultMessage: \"Seleccionar\",\r\n description: \"Select\",\r\n },\r\n Label_NoResultsFound: {\r\n id: \"Label_NoResultsFound\",\r\n defaultMessage: \"Não existem resultados disponíveis.\",\r\n description: \"No Results Found\",\r\n },\r\n Label_SelectMultipleOptions: {\r\n id: \"Label_SelectMultipleOptions\",\r\n defaultMessage: \"Seleccione opções aplicáveis\",\r\n description: \"Label SelectMultipleOptions\",\r\n },\r\n Label_Undefined: {\r\n id: \"Label_Undefined\",\r\n defaultMessage: \"Indefinido\",\r\n description: \"Undefined\",\r\n },\r\n Label_Date: {\r\n id: \"Label_Date\",\r\n defaultMessage: \"Data\",\r\n description: \"Date\",\r\n },\r\n\r\n // General Filters\r\n Label_ExportButton: {\r\n id: \"Label_ExportButton\",\r\n defaultMessage: \"Exportar\",\r\n description: \"Export button used in some filters\",\r\n },\r\n Label_ClearFilters: {\r\n id: \"Label_ClearFilters\",\r\n defaultMessage: \"Limpar Filtros\",\r\n description: \"Clear filters button\",\r\n },\r\n Label_FilterSection_SearchButton: {\r\n id: \"Label_FilterSection_SearchButton\",\r\n defaultMessage: \"Pesquisar\",\r\n description: \"Search button for filter sections\",\r\n },\r\n Label_Search_Filters_Placeholder: {\r\n id: \"Label_Search_Filters_Placeholder\",\r\n defaultMessage: \"Pesquisar\",\r\n description: \"Search filters placeholder\",\r\n },\r\n\r\n // General Buttons\r\n Label_Button_Cancel: {\r\n id: \"Label_Button_Cancel\",\r\n defaultMessage: \"Cancelar\",\r\n description: \"Label de botºoes cancelar\",\r\n },\r\n Label_Button_Submit: {\r\n id: \"Label_Button_Submit\",\r\n defaultMessage: \"Submeter\",\r\n description: \"Label de botões submeter\",\r\n },\r\n Label_Button_Edit: {\r\n id: \"Label_Button_Edit\",\r\n defaultMessage: \"Editar\",\r\n description: \"Label do botão de edição\",\r\n },\r\n Label_Recruit_Submit: {\r\n id: \"Label_Recruit_Submit\",\r\n defaultMessage: \"Recrutar\",\r\n description: \"Label de botões Recrutar\",\r\n },\r\n Label_Reject_Submit: {\r\n id: \"Label_Reject_Submit\",\r\n defaultMessage: \"Rejeitar\",\r\n description: \"Label de botões Rejeitar\",\r\n },\r\n Label_Approve_Submit: {\r\n id: \"Label_Approve_Submit\",\r\n defaultMessage: \"Aprovar\",\r\n description: \"Label de botões Aprovar\",\r\n },\r\n Label_Update_Submit: {\r\n id: \"Label_Update_Submit\",\r\n defaultMessage: \"Actualizar\",\r\n description: \"Update button label\",\r\n },\r\n Label_GoBack_Button: {\r\n id: \"Label_GoBack_Button\",\r\n defaultMessage: \"Voltar\",\r\n description: \"GoBack button label\",\r\n },\r\n Label_Generic_Submit_Button: {\r\n id: \"Label_Generic_Submit_Button\",\r\n defaultMessage: \"Submeter\",\r\n description: \"Label geral de botões submeter\",\r\n },\r\n Label_Generic_Upload_Document: {\r\n id: \"Label_Generic_Upload_Document\",\r\n defaultMessage: \"Carregar documento\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Generic_Details: {\r\n id: \"Label_Generic_Details\",\r\n defaultMessage: \"Detalhes\",\r\n description: \"Details label\",\r\n },\r\n Label_Generic_Add: {\r\n id: \"Label_Generic_AddId\",\r\n defaultMessage: \"Adicionar\",\r\n description: \"Add button label\",\r\n },\r\n Label_Generic_Cancel: {\r\n id: \"Label_Generic_CancelId\",\r\n defaultMessage: \"Cancelar\",\r\n description: \"Cancel button label\",\r\n },\r\n Label_Generic_Save: {\r\n id: \"Label_Generic_Save\",\r\n defaultMessage: \"Guardar\",\r\n description: \"Save button label\",\r\n },\r\n Label_Generic_Edit: {\r\n id: \"Label_Generic_Edit\",\r\n defaultMessage: \"Editar\",\r\n description: \"Edit button label\",\r\n },\r\n Label_Generic_Conclude: {\r\n id: \"Label_Generic_Conclude\",\r\n defaultMessage: \"Concluir\",\r\n description: \"Conclude button label\",\r\n },\r\n Label_Generic_AddRecord: {\r\n id: \"Label_Generic_AddRecord\",\r\n defaultMessage: \"Adicionar Registo\",\r\n description: \"AddRecord button label\",\r\n },\r\n\r\n // Dashboard cards and stuff\r\n Label_GovernmentProgramField_short: {\r\n id: \"Label_GovernmentProgramField_short\",\r\n defaultMessage: \"Prog. Governo\",\r\n description: \"Government program field, short version\",\r\n },\r\n\r\n Label_UserCodeField_short: {\r\n id: \"Label_UserCodeField_short\",\r\n defaultMessage: \"Cód. Utilizador\",\r\n description: \"User code field, short version\",\r\n },\r\n\r\n // Subprograms\r\n Label_Admin_Subprogram_Create_CancelButton: {\r\n id: \"Label_Admin_Subprogram_Create_CancelButton\",\r\n defaultMessage: \"Cancelar\",\r\n description: \"Label de botões Cancelar\",\r\n },\r\n Label_Admin_Subprogram_GovernmentProgramField: {\r\n id: \"Label_Admin_Subprogram_GovernmentProgramField\",\r\n defaultMessage: \"Programa do Governo\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_ProgramField: {\r\n id: \"Label_Admin_Subprogram_ProgramField\",\r\n defaultMessage: \"Programa\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_SubprogramField: {\r\n id: \"Label_Admin_Subprogram_SubprogramField\",\r\n defaultMessage: \"Subprograma\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_ValidityDateField: {\r\n id: \"Label_Admin_Subprogram_ValidityDateField\",\r\n defaultMessage: \"Data de Vigência\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_ValidityDateFieldTo: {\r\n id: \"Label_Admin_Subprogram_ValidityDateFieldTo\",\r\n defaultMessage: \"Até\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_ValidityDateFieldStart: {\r\n id: \"Label_Admin_Subprogram_ValidityDateFieldStart\",\r\n defaultMessage: \"Data de Vigência (Início)\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_ValidityDateFieldEnd: {\r\n id: \"Label_Admin_Subprogram_ValidityDateFieldEnd\",\r\n defaultMessage: \"Data de Vigência (Fim)\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_DescriptionField: {\r\n id: \"Label_Admin_Subprogram_DescriptionField\",\r\n defaultMessage: \"Descrição\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_ObjectivesField: {\r\n id: \"Label_Admin_Subprogram_ObjectivesField\",\r\n defaultMessage: \"Objectivos\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_NumVacanciesField: {\r\n id: \"Label_Admin_Subprogram_NumVacanciesField\",\r\n defaultMessage: \"Nº de Benefícios a atribuir\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_DepartmentField: {\r\n id: \"Label_Admin_Subprogram_DepartmentField\",\r\n defaultMessage: \"Pelouro Responsável\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_BenefitsTypeField: {\r\n id: \"Label_Admin_Subprogram_BenefitsTypeField\",\r\n defaultMessage: \"Tipo de Benefício\",\r\n description: \"label do campo\",\r\n },\r\n Label_Admin_Subprogram_StateField: {\r\n id: \"Label_Admin_Subprogram_StateField\",\r\n defaultMessage: \"Estado\",\r\n description: \"State of Subprogram in Subprogram FilterSection and GeneralData section\",\r\n },\r\n\r\n // Applications\r\n Label_Admin_ApplicationsManagementFilter_NumApplicationField: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_NumApplicationField\",\r\n defaultMessage: \"Nº Candidatura\",\r\n description: \"Label do campo de pesquisa por Nº Candidatura\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_NumBIField: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_NumBIField\",\r\n defaultMessage: \"Nº BI / NIF\",\r\n description: \"Label do campo de pesquisa por Nº BI\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_UserCodeField: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_UserCodeField\",\r\n defaultMessage: \"Código do utilizador\",\r\n description: \"Label do campo de pesquisa por Código do utilizador\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_UserNameField: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_UserNameField\",\r\n defaultMessage: \"Nome\",\r\n description: \"Label do campo de pesquisa por Nome\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_StatusField: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_StatusField\",\r\n defaultMessage: \"Estado\",\r\n description: \"Label do campo de pesquisa por Estado\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_GovernmentProgram: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_GovernmentProgram\",\r\n defaultMessage: \"Programa do Governo\",\r\n description: \"Label do campo de pesquisa por Programa do Governo\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_ProgramField: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_ProgramField\",\r\n defaultMessage: \"Programa\",\r\n description: \"Label do campo de pesquisa por Programa\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_SubprogramField: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_SubprogramField\",\r\n defaultMessage: \"Subprograma\",\r\n description: \"Label do campo de pesquisa por Subrograma\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_SubmissionDate: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_SubmissionDate\",\r\n defaultMessage: \"Data de Submissão\",\r\n description: \"Label do campo de pesquisa por Data de submissão\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_SubmissionDateFrom: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_SubmissionDateFrom\",\r\n defaultMessage: \"Data de Submissão (desde)\",\r\n description: \"Label do campo de pesquisa por Data de submissão (desde)\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_SubmissionDateTo: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_SubmissionDateTo\",\r\n defaultMessage: \"Data de Submissão (até)\",\r\n description: \"Label do campo de pesquisa por Data de submissão (até)\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_ApplicationProvince: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_ApplicationProvince\",\r\n defaultMessage: \"Província da Candidatura\",\r\n description: \"Label do campo de pesquisa por Província\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_CandidateProvince: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_CandidateProvince\",\r\n defaultMessage: \"Província do Candidato\",\r\n description: \"Label do campo de pesquisa por Província\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_CandidateMunicipality: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_CandidateMunicipality\",\r\n defaultMessage: \"Município do Candidato\",\r\n description: \"Label do campo de pesquisa por Município\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_PhoneNumber: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_PhoneNumber\",\r\n defaultMessage: \"Telemóvel\",\r\n description: \"Label do campo de pesquisa por Telefone\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_EntrepreneurshipTraining: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_EntrepreneurshipTraining\",\r\n defaultMessage: \"Formação em Empreendedorismo\",\r\n description: \"Label do campo de pesquisa por Formação em Empreendedorismo\",\r\n },\r\n Label_Admin_ApplicationsManagementFilter_InternshipArea: {\r\n id: \"Label_Admin_ApplicationsManagementFilter_InternshipArea\",\r\n defaultMessage: \"Área Profissional do Estágio\",\r\n description: \"Label do campo de pesquisa por Área Profissional do Estágio\",\r\n },\r\n\r\n Label_Admin_ApplicationDetail_ApplicationStateField: {\r\n id: \"Label_Admin_ApplicationDetail_ApplicationStateField\",\r\n defaultMessage: \"Estado da candidatura\",\r\n description: \"label do campo\",\r\n },\r\n\r\n //General Data Section\r\n Label_Admin_GeneralDataSection_NameField: {\r\n id: \"Label_Admin_GeneralDataSection_NameField\",\r\n defaultMessage: \"Nome\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_NumBIField: {\r\n id: \"Label_Admin_GeneralDataSection_NumBIField\",\r\n defaultMessage: \"Nº BI\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_GenderField: {\r\n id: \"Label_Admin_GeneralDataSection_GenderField\",\r\n defaultMessage: \"Género\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_MaritalStatusField: {\r\n id: \"Label_Admin_GeneralDataSection_MaritalStatusField\",\r\n defaultMessage: \"Estado Civil\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_OtherApplicationsField: {\r\n id: \"Label_Admin_GeneralDataSection_OtherApplicationsField\",\r\n defaultMessage: \"Outras candidaturas\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_SpecialNeedsField: {\r\n id: \"Label_Admin_GeneralDataSection_SpecialNeedsField\",\r\n defaultMessage: \"Necessidades Especiais\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_SNPercentageField: {\r\n id: \"Label_Admin_GeneralDataSection_SNPercentageField\",\r\n defaultMessage: \"Percentagem\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_AgeField: {\r\n id: \"Label_Admin_GeneralDataSection_AgeField\",\r\n defaultMessage: \"Idade\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_BirthdayField: {\r\n id: \"Label_Admin_GeneralDataSection_BirthdayField\",\r\n defaultMessage: \"Data de Nascimento\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_ProvinceField: {\r\n id: \"Label_Admin_GeneralDataSection_ProvinceField\",\r\n defaultMessage: \"Província\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_MunicipalityField: {\r\n id: \"Label_Admin_GeneralDataSection_MunicipalityField\",\r\n defaultMessage: \"Município\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n Label_Admin_GeneralDataSection_MobilePhoneField: {\r\n id: \"Label_Admin_GeneralDataSection_MobilePhoneField\",\r\n defaultMessage: \"Telemóvel\",\r\n description: \"Label do campo de Dados Gerais do candidato\",\r\n },\r\n\r\n Label_Admin_ProgramSubprogramDataSection_WhichProvinceField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_WhichProvinceField\",\r\n defaultMessage: \"Onde pretende candidatar-se?\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_GovernmentProgramsField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_GovernmentProgramsField\",\r\n defaultMessage: \"Programa do Governo\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_ProgramsField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_ProgramsField\",\r\n defaultMessage: \"Programas\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_SubprogramsField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_SubprogramsField\",\r\n defaultMessage: \"Subprogramas\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_BenefitTypeField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_BenefitTypeField\",\r\n defaultMessage: \"Tipo de benefício\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_MicrocreditAmountField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_MicrocreditAmountField\",\r\n defaultMessage: \"Valor microcrédito pretendido\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_ConcededMicrocreditAmountField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_ConcededMicrocreditAmountField\",\r\n defaultMessage: \"Valor microcrédito a conceder\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsNumberField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsNumberField\",\r\n defaultMessage: \"Nº de Kits pretendidos\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_ConcededProfessionalKitsNumberField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_ConcededProfessionalKitsNumberField\",\r\n defaultMessage: \"Nº de Kits a conceder\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsValueField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsValueField\",\r\n defaultMessage: \"Valor\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_IntendedCourseNameField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_IntendedCourseNameField\",\r\n defaultMessage: \"Curso pretendido\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_IntendedWalletNameField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_IntendedWalletNameField\",\r\n defaultMessage: \"Carteira pretendida\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_TrainingCenterField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_TrainingCenterField\",\r\n defaultMessage: \"Centro de formação pretendido\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_InternshipAreaField: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_InternshipAreaField\",\r\n defaultMessage: \"Área onde pretende fazer o estágio\",\r\n description: \"Label do campo de Dados do Programa e Subprograma\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_Bank: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_Bank\",\r\n defaultMessage: \"Qual o banco para o crédito?\",\r\n description: \"Label do campo de seleção de banco nos detalhde de uma candidatura a um subprograma de microcrédito\",\r\n },\r\n Label_Admin_ProgramSubprogramDataSection_Bank_Placeholder: {\r\n id: \"Label_Admin_ProgramSubprogramDataSection_Bank_Placeholder\",\r\n defaultMessage: \"Seleccione o banco\",\r\n description: \"Label do campo de seleção de banco nos detalhde de uma candidatura a um subprograma de microcrédito\",\r\n },\r\n\r\n // Schedules\r\n Label_Admin_SchedulingManagementFilter_SchedulingDateFrom: {\r\n id: \"Label_Admin_SchedulingManagementFilter_SchedulingDateFrom\",\r\n defaultMessage: \"Data de agendamento (desde)\",\r\n description: \"Label do campo de pesquisa por Data de agendamento (desde)\",\r\n },\r\n Label_Admin_SchedulingManagementFilter_SchedulingDateTo: {\r\n id: \"Label_Admin_SchedulingManagementFilter_SchedulingDateTo\",\r\n defaultMessage: \"Data de agendamento (até)\",\r\n description: \"Label do campo de pesquisa por Data de agendamento (até)\",\r\n },\r\n Label_Admin_SchedulingTab_MotiveField: {\r\n id: \"Label_Admin_SchedulingTab_MotiveField\",\r\n defaultMessage: \"Motivo\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Admin_SchedulingTab_SchedulingDateField: {\r\n id: \"Label_Admin_SchedulingTab_SchedulingDateField\",\r\n defaultMessage: \"Data e Hora de Agendamento\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Admin_SchedulingTab_SchedulingHourField: {\r\n id: \"Label_Admin_SchedulingTab_SchedulingHourField\",\r\n defaultMessage: \"Horas\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Admin_SchedulingTab_ObservationsField: {\r\n id: \"Label_Admin_SchedulingTab_ObservationsField\",\r\n defaultMessage: \"Observações\",\r\n description: \"Label do campo\",\r\n },\r\n\r\n // Notifications\r\n Label_Admin_NotificationsTab_CandidateField: {\r\n id: \"Label_Admin_NotificationsTab_CandidateField\",\r\n defaultMessage: \"Candidato\",\r\n description: \"Label do campo de Candidato no tab de notificações\",\r\n },\r\n Label_Admin_NotificationsTab_RecipientField: {\r\n id: \"Label_Admin_NotificationsTab_RecipientField\",\r\n defaultMessage: \"Destinatário\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Admin_NotificationsTab_BackofficeUserField: {\r\n id: \"Label_Admin_NotificationsTab_BackofficeUserField\",\r\n defaultMessage: \"Utilizador de backoffice\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Admin_NotificationsTab_BackofficeGroupField: {\r\n id: \"Label_Admin_NotificationsTab_BackofficeGroupField\",\r\n defaultMessage: \"Grupo de backoffice\",\r\n description: \"Label do campo de Grupo de backoffice no tab de notificações\",\r\n },\r\n Label_Admin_NotificationsTab_MotiveField: {\r\n id: \"Label_Admin_NotificationsTab_MotiveField\",\r\n defaultMessage: \"Motivo\",\r\n description: \"Label do campo de Motivo no tab de notificações\",\r\n },\r\n Label_Admin_NotificationsTab_SubjectField: {\r\n id: \"Label_Admin_NotificationsTab_SubjectField\",\r\n defaultMessage: \"Assunto\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Admin_NotificationsTab_ObservationsField: {\r\n id: \"Label_Admin_NotificationsTab_ObservationsField\",\r\n defaultMessage: \"Mensagem\",\r\n description: \"Label do campo\",\r\n },\r\n\r\n Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_CategoryField: {\r\n id: \"Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_CategoryField\",\r\n defaultMessage: \"Especialidade\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_QuantityField: {\r\n id: \"Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_QuantityField\",\r\n defaultMessage: \"Quantidade de perda\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_BatchNumberField: {\r\n id: \"Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_BatchNumberField\",\r\n defaultMessage: \"Referência do Lote\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_ValueField: {\r\n id: \"Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_ValueField\",\r\n defaultMessage: \"Valor Total\",\r\n description: \"Label do campo\",\r\n },\r\n Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_MotiveField: {\r\n id: \"Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_MotiveField\",\r\n defaultMessage: \"Motivo\",\r\n description: \"Label do campo\",\r\n },\r\n\r\n Label_Admin_ScheduleDetails_ReportField: {\r\n id: \"Label_Admin_ScheduleDetails_ReportField\",\r\n defaultMessage: \"Relatório\",\r\n description: \"Label da caixa de texto para o relatório do agendamento\",\r\n },\r\n Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForInternshipOpportunities: {\r\n id: \"Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForInternshipOpportunities\",\r\n defaultMessage: \"Quero aparecer nas listas de candidatos a estágios\",\r\n description:\r\n \"Label do campo 'Disponível para Oportunidades de Estágio' do ecrã de edição de informação pessoal do utilizador\",\r\n },\r\n Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForEmploymentOpportunities: {\r\n id: \"Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForEmploymentOpportunities\",\r\n defaultMessage: \"Quero aparecer nas listas de candidatos a emprego\",\r\n description:\r\n \"Label do campo 'Disponível para Oportunidades de Emprego' do ecrã de edição de informação pessoal do utilizador\",\r\n },\r\n Label_Admin_UserManagement_CreateColectiveUser_Button: {\r\n id: \"Label_Admin_UserManagement_CreateColectiveUser_Button\",\r\n defaultMessage: \"Criar utilizador colectivo\",\r\n description: \"Label do botão que redireciona o utilizador para o ecrã de criação de utilizadores coletivos\",\r\n },\r\n Label_Admin_UserManagement_CreateIndividualUser_Button: {\r\n id: \"Label_Admin_UserManagement_CreateIndividualUser_Button\",\r\n defaultMessage: \"Criar utilizador individual\",\r\n description: \"Label do botão que redireciona o utilizador para o ecrã de criação de utilizadores individuais\",\r\n },\r\n\r\n // Loans\r\n Label_Admin_Loans_GovernmentProgram: {\r\n id: \"Label_Admin_Loans_GovernmentProgram\",\r\n defaultMessage: \"Programa do Governo\",\r\n description: \"ApplicationNumber field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_ApplicationNumber: {\r\n id: \"Label_Admin_Loans_ApplicationNumber\",\r\n defaultMessage: \"Nº de Candidatura\",\r\n description: \"ApplicationNumber field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_State: {\r\n id: \"Label_Admin_Loans_State\",\r\n defaultMessage: \"Estado do Empréstimo\",\r\n description: \"State field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_State_short: {\r\n id: \"Label_Admin_Loans_State_short\",\r\n defaultMessage: \"Estado\",\r\n description: \"State field in LoanDetails page, short version\",\r\n },\r\n Label_Admin_Loans_LastUpdateDate: {\r\n id: \"Label_Admin_Loans_LastUpdateDate\",\r\n defaultMessage: \"Data da Última Actualização\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_LastUpdateDate_short: {\r\n id: \"Label_Admin_Loans_LastUpdateDate_short\",\r\n defaultMessage: \"Última Actualização\",\r\n description: \"LastUpdateDate field in LoanDetails page, short version\",\r\n },\r\n Label_Admin_Loans_AmountToBePaid: {\r\n id: \"Label_Admin_Loans_AmountToBePaid\",\r\n defaultMessage: \"Valor da Dívida\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_AmountApproved: {\r\n id: \"Label_Admin_Loans_AmountApproved\",\r\n defaultMessage: \"Valor Aprovado\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_IsMissingPayments: {\r\n id: \"Label_Admin_Loans_IsMissingPayments\",\r\n defaultMessage: \"Em incumprimento\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_BankName: {\r\n id: \"Label_Admin_Loans_BankName\",\r\n defaultMessage: \"Banco\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_LoanType: {\r\n id: \"Label_Admin_Loans_LoanType\",\r\n defaultMessage: \"Produto Bancário\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_LoanType_short: {\r\n id: \"Label_Admin_Loans_LoanType_short\",\r\n defaultMessage: \"Produto\",\r\n description: \"LastUpdateDate field in LoanDetails page, short version\",\r\n },\r\n Label_Admin_Loans_RejectionMotive: {\r\n id: \"Label_Admin_Loans_RejectionMotive\",\r\n defaultMessage: \"Motivo da Rejeição\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n Label_Admin_Loans_RejectionObservations: {\r\n id: \"Label_Admin_Loans_RejectionObservations\",\r\n defaultMessage: \"Observações da Rejeição\",\r\n description: \"LastUpdateDate field in LoanDetails page\",\r\n },\r\n\r\n // InformationDissemination\r\n Label_Admin_InformationDissemination_InformationData: {\r\n id: \"Label_Admin_InformationDissemination_InformationData\",\r\n defaultMessage: \"Dados da Informação\",\r\n description: \"InformationData card label\",\r\n },\r\n Label_Admin_InformationDissemination_Published: {\r\n id: \"Label_Admin_InformationDissemination_Published\",\r\n defaultMessage: \"Publicado\",\r\n description: \"Information published label\",\r\n },\r\n Label_Admin_InformationDissemination_NotPublished: {\r\n id: \"Label_Admin_InformationDissemination_NotPublished\",\r\n defaultMessage: \"Não Publicado\",\r\n description: \"Information published label\",\r\n },\r\n Label_Admin_InformationDissemination_InformationCategory: {\r\n id: \"Label_Admin_InformationDissemination_InformationCategory\",\r\n defaultMessage: \"Categoria\",\r\n description: \"Information Category label\",\r\n },\r\n Label_Admin_InformationDissemination_Authentication: {\r\n id: \"Label_Admin_InformationDissemination_Authentication\",\r\n defaultMessage: \"Autenticação\",\r\n description: \"Authentication label\",\r\n },\r\n Label_Admin_InformationDissemination_AuthenticatedUsers: {\r\n id: \"Label_Admin_InformationDissemination_AuthenticatedUsers\",\r\n defaultMessage: \"Utilizadores autenticados\",\r\n description: \"Authenticated Users label\",\r\n },\r\n Label_Admin_InformationDissemination_AuthenticationPublic: {\r\n id: \"Label_Admin_InformationDissemination_AuthenticationPublic\",\r\n defaultMessage: \"Público\",\r\n description: \"Authentication Public label\",\r\n },\r\n Label_Admin_InformationDissemination_Highlight: {\r\n id: \"Label_Admin_InformationDissemination_Highlight\",\r\n defaultMessage: \"Destaque da informação\",\r\n description: \"InformationHighlight label\",\r\n },\r\n Label_Admin_InformationDissemination_Highlighted: {\r\n id: \"Label_Admin_InformationDissemination_Highlighted\",\r\n defaultMessage: \"Em Destaque\",\r\n description: \"Information Highlighted label\",\r\n },\r\n Label_Admin_InformationDissemination_NotHighlighted: {\r\n id: \"Label_Admin_InformationDissemination_NotHighlighted\",\r\n defaultMessage: \"Sem Destaque\",\r\n description: \"Information not Highlighted label\",\r\n },\r\n Label_Admin_InformationDissemination_Title: {\r\n id: \"Label_Admin_InformationDissemination_Title\",\r\n defaultMessage: \"Título\",\r\n description: \"Information title label\",\r\n },\r\n Label_Admin_InformationDissemination_Description: {\r\n id: \"Label_Admin_InformationDissemination_Description\",\r\n defaultMessage: \"Texto\",\r\n description: \"Information description label\",\r\n },\r\n Label_Admin_InformationDissemination_Images: {\r\n id: \"Label_Admin_InformationDissemination_Images\",\r\n defaultMessage: \"Imagens\",\r\n description: \"Information images section label\",\r\n },\r\n Label_Admin_InformationDissemination_Videos: {\r\n id: \"Label_Admin_InformationDissemination_Videos\",\r\n defaultMessage: \"Vídeos\",\r\n description: \"Information videos section label\",\r\n },\r\n Label_Admin_InformationDissemination_VideoInputFieldInfoIcon: {\r\n id: \"Label_Admin_InformationDissemination_VideoInputFieldInfoIcon\",\r\n defaultMessage:\r\n \"Colocar aqui as ligações exportadas (opção Embed) dos vídeos de redes sociais (Facebook e Youtube)\",\r\n description: \"Information videos section label\",\r\n },\r\n Label_Admin_InformationDissemination_CreatedBy: {\r\n id: \"Label_Admin_InformationDissemination_CreatedBy\",\r\n defaultMessage: \"Criado por\",\r\n description: \"Information details created by label\",\r\n },\r\n Label_Admin_InformationDissemination_PublishedBy: {\r\n id: \"Label_Admin_InformationDissemination_PublishedBy\",\r\n defaultMessage: \"Publicado por\",\r\n description: \"Information details published by label\",\r\n },\r\n Label_Admin_InformationDissemination_PublishedDate: {\r\n id: \"Label_Admin_InformationDissemination_PublishedDate\",\r\n defaultMessage: \"Data Publicação\",\r\n description: \"Information details published date label\",\r\n },\r\n Label_Admin_InformationDissemination_SocialMediaLink: {\r\n id: \"Label_Admin_InformationDissemination_SocialMediaLink\",\r\n defaultMessage: \"Endereço\",\r\n description: \"Information details social media link label\",\r\n },\r\n\r\n //Search Bar\r\n Label_Admin_AdvancedSearch_AdvancedSearch: {\r\n id: \"Label_Admin_AdvancedSearch_AdvancedSearch\",\r\n defaultMessage: \"Pesquisa Avançada\",\r\n description: \"Advanced search page title\",\r\n },\r\n Label_Admin_SearchBarNavbar_SearchBarPlaceholder: {\r\n id: \"Label_Admin_SearchBarNavbar_SearchBarPlaceholder\",\r\n defaultMessage: \"Pesquisa de utilizador - Introduza um Nome, NIF (empresa), Nº de Identificação ou Nº de Telefone\",\r\n description: \"Search bar placeholder\",\r\n },\r\n Label_Admin_SearchBarNavbar_IdemtificationNumber: {\r\n id: \"Label_Admin_SearchBarNavbar_IdemtificationNumber\",\r\n defaultMessage: \"Nº Identificação\",\r\n description: \"Identification number label\",\r\n },\r\n Label_Admin_SearchBarNavbar_NIF: {\r\n id: \"Label_Admin_SearchBarNavbar_NIF\",\r\n defaultMessage: \"NIF\",\r\n description: \"NIF label\",\r\n },\r\n Label_Admin_SearchBarNavbar_PhoneNumber: {\r\n id: \"Label_Admin_SearchBarNavbar_PhoneNumber\",\r\n defaultMessage: \"Telemóvel\",\r\n description: \"Phone number label\",\r\n },\r\n Label_Admin_SearchBarNavbar_NoResults: {\r\n id: \"Label_Admin_SearchBarNavbar_NoResults\",\r\n defaultMessage: \"Sem resultados\",\r\n description: \"No results label\",\r\n },\r\n\r\n //UserOverview\r\n Label_UserOverview_General_Data_Tab: {\r\n id: \"Label_UserOverview_General_Data_Tab\",\r\n defaultMessage: \"Dados Gerais\",\r\n description: \"General data tab\",\r\n },\r\n Label_UserOverview_Training_And_Profession_Tab: {\r\n id: \"Label_UserOverview_Training_And_Profession_Tab\",\r\n defaultMessage: \"Formação e Profissão\",\r\n description: \"Training and profession tab\",\r\n },\r\n Label_UserOverview_Applications_Tab: {\r\n id: \"Label_UserOverview_Applications_Tab\",\r\n defaultMessage: \"Candidaturas\",\r\n description: \"Applications tab\",\r\n },\r\n Label_UserOverview_EmploymentAndUnemploymentHistory_Tab: {\r\n id: \"Label_UserOverview_EmploymentAndUnemploymentHistory_Tab\",\r\n defaultMessage: \"Histórico de Emprego\",\r\n description: \"History tab\",\r\n },\r\n Label_UserOverview_History_Tab: {\r\n id: \"Label_UserOverview_History_Tab\",\r\n defaultMessage: \"Histórico Geral\",\r\n description: \"History tab\",\r\n },\r\n //UserOverview - GeneralData Tab - Contacts Section\r\n Label_UserOverview_GeneralDataTab_ContactsSection_MobilePhone: {\r\n id: \"Label_UserOverview_GeneralDataTab_ContactsSection_MobilePhone\",\r\n defaultMessage: \"Telemóvel\",\r\n description: \"Mobile phone in the contacts section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_ContactsSection_AlternativeMobilePhone: {\r\n id: \"Label_UserOverview_GeneralDataTab_ContactsSection_AlternativeMobilePhone\",\r\n defaultMessage: \"Telemóvel Alternativo\",\r\n description: \"Alternative mobile phone in the contacts section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_ContactsSection_Email: {\r\n id: \"Label_UserOverview_GeneralDataTab_ContactsSection_Email\",\r\n defaultMessage: \"E-mail\",\r\n description: \"Email in the contacts section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_ContactsSection_ContactName: {\r\n id: \"Label_UserOverview_GeneralDataTab_ContactsSection_ContactName\",\r\n defaultMessage: \"Nome do Responsável\",\r\n description: \"Contact Name in the contacts section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_ContactsSection_ContactMobilePhone: {\r\n id: \"Label_UserOverview_GeneralDataTab_ContactsSection_ContactMobilePhone\",\r\n defaultMessage: \"Telemóvel do Responsável\",\r\n description: \"Contact Mobile Phone in the contacts section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_ContactsSection_ContactAlternativeMobilePhone: {\r\n id: \"Label_UserOverview_GeneralDataTab_ContactsSection_ContactAlternativeMobilePhone\",\r\n defaultMessage: \"Telemóvel Alternativo do Responsável\",\r\n description: \"Contact Alternative Mobile Phone in the contacts section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_ContactsSection_ContactEmail: {\r\n id: \"Label_UserOverview_GeneralDataTab_ContactsSection_ContactEmail\",\r\n defaultMessage: \"E-mail do Responsável\",\r\n description: \"ContactEmail in the contacts section of the user overview screen\",\r\n },\r\n //UserOverview - GeneralData Tab - GeneralData Section\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_FullName: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_FullName\",\r\n defaultMessage: \"Nome completo\",\r\n description: \"Full Name in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanyName: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanyName\",\r\n defaultMessage: \"Nome da Empresa\",\r\n description: \"Company Name in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_IdentificationNumber: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_IdentificationNumber\",\r\n defaultMessage: \"Nº do BI\",\r\n description: \"Identification number in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanySocialSecurityNumber: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanySocialSecurityNumber\",\r\n defaultMessage: \"NISS Individual\",\r\n description: \"Company Social Security Number in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_BirthDate: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_BirthDate\",\r\n defaultMessage: \"Data de Nascimento\",\r\n description: \"Birth Date in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_Gender: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_Gender\",\r\n defaultMessage: \"Género\",\r\n description: \"Gender in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_MaritalStatus: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_MaritalStatus\",\r\n defaultMessage: \"Estado Civil\",\r\n description: \"Marital Status in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_Nationality: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_Nationality\",\r\n defaultMessage: \"Nacionalidade\",\r\n description: \"Nationality in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_Province: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_Province\",\r\n defaultMessage: \"Província\",\r\n description: \"Province in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_Municipality: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_Municipality\",\r\n defaultMessage: \"Município\",\r\n description: \"Municipality in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_District: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_District\",\r\n defaultMessage: \"Bairro\",\r\n description: \"District in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_SpecialNeeds: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_SpecialNeeds\",\r\n defaultMessage: \"Necessidades Especiais\",\r\n description: \"Special Needs in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_SpecialNeedsPercentage: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_SpecialNeedsPercentage\",\r\n defaultMessage: \"Percentagem %\",\r\n description: \"Special Needs Percentage in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_TaxIdNumber: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_TaxIdNumber\",\r\n defaultMessage: \"NIF\",\r\n description: \"Tax Id Number in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_RegistrationNumber: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_RegistrationNumber\",\r\n defaultMessage: \"Matrícula\",\r\n description: \"Registration Number in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_PermitCode: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_PermitCode\",\r\n defaultMessage: \"Código do Alvará\",\r\n description: \"Permit Code in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_PermitCodeExpirationDate: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_PermitCodeExpirationDate\",\r\n defaultMessage: \"Data de Validade do Alvará\",\r\n description: \"Permit Code Expiration Date in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_Address: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_Address\",\r\n defaultMessage: \"Endereço\",\r\n description: \"Address in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_Household: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_Household\",\r\n defaultMessage: \"Pessoas a Cargo\",\r\n description: \"Address in the general data section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_GeneralDataSection_FamilyIncome: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_FamilyIncome\",\r\n defaultMessage: \"Rendimento Familiar\",\r\n description: \"Address in the general data section of the user overview screen\",\r\n },\r\n //UserOverview - GeneralData Tab - Overview Section\r\n Label_UserOverview_GeneralDataTab_OverviewSection_GovernmentProgramApplications: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_GovernmentProgramApplications\",\r\n defaultMessage: \"Candidaturas a Programas\",\r\n description: \"Government Program Applications in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_OpportunityApplications: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_OpportunityApplications\",\r\n defaultMessage: \"Candidaturas a Emprego/Estágio\",\r\n description: \"Opportunity Applications in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_ProfessionalTraining: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_ProfessionalTraining\",\r\n defaultMessage: \"Cursos Profissionais Frequentados\",\r\n description: \"Professional Training in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_ProfessionalWallets: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_ProfessionalWallet\",\r\n defaultMessage: \"Carteira Profissional\",\r\n description: \"Professional Wallet in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt: {\r\n id: \"Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt\",\r\n defaultMessage: \"Dívida de Microcrédito\",\r\n description: \"Microcredit Debt Paymentsin the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithMissingPayments: {\r\n id: \"Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithMissingPayments\",\r\n defaultMessage: \"em Incumprimento\",\r\n description: \"Microcredit Debt With Missing Paymentsin the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithoutMissingPayments: {\r\n id: \"Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithoutMissingPayments\",\r\n defaultMessage: \"em Cumprimento\",\r\n description: \"Microcredit Debt Without Missing Paymentsin the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_OpportunityFollowUpOverallEvaluation: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_OpportunityFollowUpOverallEvaluation\",\r\n defaultMessage: \"Pontuação Média de Estágios\",\r\n description: \"Opportunity FollowUp Overall Evaluation in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_FinishedInterships: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_FinishedInterships\",\r\n defaultMessage: \"Estágios Concluídos\",\r\n description: \"Finished Interships in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_GrantedMicrocredits: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_GrantedMicrocredits\",\r\n defaultMessage: \"Microcréditos Concedidos\",\r\n description: \"Granted Microcredits in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_GrantedProfessionalKits: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_GrantedProfessionalKits\",\r\n defaultMessage: \"Kits Profissionais Atribuídos\",\r\n description: \"Granted Professional Kits in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_AllSchedules: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_AllSchedules\",\r\n defaultMessage: \"Todos os Agendamentos\",\r\n description: \"All Schedules in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_JoinedOn: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_JoinedIn\",\r\n defaultMessage: \"Aderiu em\",\r\n description: \"Joined In in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_NoJoinedOnData: {\r\n id: \"Label_UserOverview_GeneralDataTab_OverviewSection_NoJoinedOnData\",\r\n defaultMessage: \"Data de adesão indisponível\",\r\n description: \"No Joined On Data in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_NoProfessionalData: {\r\n id: \"Label_UserOverview_GeneralDataTab_OverviewSection_NoProfessionalData\",\r\n defaultMessage: \"Sem informação profissional\",\r\n description: \"No Professional Data in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_NoProvinceData: {\r\n id: \"Label_UserOverview_GeneralDataTab_OverviewSection_NoProvinceData\",\r\n defaultMessage: \"Sem informação de localização\",\r\n description: \"No Province Data in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_EmploymentAndInternshipOpportunities: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_EmploymentAndInternshipOpportunities\",\r\n defaultMessage: \"Ofertas de Emprego/Estágio\",\r\n description: \"Employment And Internship Opportunities In in the overview section of the user overview screen\",\r\n },\r\n Label_UserOverview_GeneralDataTab_OverviewSection_ReceivedApplications: {\r\n id: \"Label_UserOverview_GeneralDataTab_GeneralDataSection_ReceivedApplications\",\r\n defaultMessage: \"Candidaturas Recebidas\",\r\n description: \"Received Applications in the overview section of the user overview screen\",\r\n },\r\n //UserOverview - Profession Tab - Professional Data Section\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicLevel: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicLevel\",\r\n defaultMessage: \"Nível Académico\",\r\n description: \"Academic Level in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicDegree: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicDegree\",\r\n defaultMessage: \"Curso\",\r\n description: \"Academic Degree in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalCategory: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalCategory\",\r\n defaultMessage: \"Categoria Profissional\",\r\n description: \"Professional Category in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalTraining: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalTraining\",\r\n defaultMessage: \"Formação Profissional\",\r\n description: \"Professional Training in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_EntrepreneurshipTraining: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_EntrepreneurshipTraining\",\r\n defaultMessage: \"Formação de Empreendedorismo\",\r\n description: \"Entrepreneurship Training in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_SmallBusinessManagementTraining: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_SmallBusinessManagementTraining\",\r\n defaultMessage: \"Formação de Gestão de Pequenos Negócios\",\r\n description: \"Small Business Management Training in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_Profession: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_Profession\",\r\n defaultMessage: \"Profissão Principal\",\r\n description: \"Profession in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_YearsOfExperience: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_YearsOfExperience\",\r\n defaultMessage: \"Anos de Experiência\",\r\n description: \"Years Of Experience in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_MainYearsOfExperience: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_MainYearsOfExperience\",\r\n defaultMessage: \"Experiência Profissional Principal\",\r\n description: \"Years Of Experience in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_BusinessPurpose: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_BusinessPurpose\",\r\n defaultMessage: \"Setor Económico\",\r\n description: \"Business Purpose in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_CompanyEACDescription: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_CompanyEACDescription\",\r\n defaultMessage: \"CAE da Empresa\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_PropertyType: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_PropertyType\",\r\n defaultMessage: \"Tipo Propriedade\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompany: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompany\",\r\n defaultMessage: \"Filial (opcional)\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyPostalCode: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyPostalCode\",\r\n defaultMessage: \"Caixa Postal da Filial (opcional)\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyActivity: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyActivity\",\r\n defaultMessage: \"Actividade da Filial (opcional)\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyEACDescription: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_SubsidiaryCompanyEACDescription\",\r\n defaultMessage: \"CAE da Filial (opcional)\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_MaleWorkersNumber: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_MaleWorkersNumber\",\r\n defaultMessage: \"Nº de Trabalhadores Homens (opcional)\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_FemaleWorkersNumber: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_FemaleWorkersNumber\",\r\n defaultMessage: \"Nº de Trabalhadores Mulheres (opcional)\",\r\n description: \"UserOverview\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_TechnicalCapability: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_TechnicalCapability\",\r\n defaultMessage: \"Capacidade Técnica\",\r\n description: \"TechnicalCapability in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_Has_Professional_Wallet: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_Has_Professional_Wallet\",\r\n defaultMessage: \"Carteira Profissional\",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Number: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Number\",\r\n defaultMessage: \"Nº Carteira Profissional\",\r\n description: \"Professional Wallet Number in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Class: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Class\",\r\n defaultMessage: \"Classe Carteira Profissional\",\r\n description: \"Professional Wallet Class in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Specialty: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_Professional_Wallet_Specialty\",\r\n defaultMessage: \"Especialidade Carteira Profissional\",\r\n description: \"Professional Wallet Category in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_IntendedWorkplaceProvince: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_IntendedWorkplaceProvince\",\r\n defaultMessage: \"Local Trabalho Pretendido\",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalQualification: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_ProfessionalQualification\",\r\n defaultMessage: \"Qualificação Profissional (conhecimentos máquinas, etc.)\",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_OtherProfessionalExperience: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_OtherProfessionalExperience\",\r\n defaultMessage: \"Outras Experiências Profissionais \",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_OccupationalCategory: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_OccupationalCategory\",\r\n defaultMessage: \"Categoria Ocupacional\",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_SecondaryProfessionalExperience: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_SecondaryProfessionalExperience\",\r\n defaultMessage: \"Profissão Subsidiária\",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_SecondaryExperience: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_SecondaryExperience\",\r\n defaultMessage: \"Experiência Profissional Subsidiária\",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n Label_UserOverview_ProfessionTab_ProfessionalDataSection_StudiedLanguages: {\r\n id: \"Label_UserOverview_ProfessionTab_ProfessionalDataSection_StudiedLanguages\",\r\n defaultMessage: \"Línguas Estudadas\",\r\n description: \"Professional Wallet in the professional data section of the user overview screen\",\r\n },\r\n //UserOverview - Applications Tab - Applications Section\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgramsTab: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgramsTab\",\r\n defaultMessage: \"Programas do Governo\",\r\n description: \"Government Programs Tab in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_InternshipsTab: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_InternshipsTab\",\r\n defaultMessage: \"Estágios Profissionais\",\r\n description: \"Internships Tab in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_EmploymentTab: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_EmploymentTab\",\r\n defaultMessage: \"Emprego\",\r\n description: \"Employment Tab in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgram: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgram\",\r\n defaultMessage: \"Programa do Governo\",\r\n description: \"Government Program in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_Program: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_Program\",\r\n defaultMessage: \"Programa\",\r\n description: \"Program in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_Subprogram: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_Subprogram\",\r\n defaultMessage: \"Subprograma\",\r\n description: \"Subprogram in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationCode: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationCode\",\r\n defaultMessage: \"Nº Candidatura\",\r\n description: \"Application Code in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationState: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationState\",\r\n defaultMessage: \"Estado\",\r\n description: \"Application State in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_CreationDate: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_CreationDate\",\r\n defaultMessage: \"Data da Candidatura\",\r\n description: \"Creation Date in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_Company: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_Company\",\r\n defaultMessage: \"Empresa\",\r\n description: \"Company in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_Candidate: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_Candidate\",\r\n defaultMessage: \"Candidato\",\r\n description: \"Candidate in the applications section of the user collective overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_OpportunityType: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_OpportunityType\",\r\n defaultMessage: \"Tipo de Oferta\",\r\n description: \"Opportunity Type in the applications section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_ApplicationsSection_CreateOpportunityApplication: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_CreateOpportunityApplication\",\r\n defaultMessage: \"Criar Candidatura\",\r\n description: \"Create Opportunity Application in the applications section of the user overview screen\",\r\n },\r\n //UserOverview - Applications Tab - FollowUps Section\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_OnGoing: {\r\n id: \"Label_UserOverview_ApplicationsTab_FollowUpsSection_OnGoing\",\r\n defaultMessage: \"Em Curso\",\r\n description: \"On Going Tab in the follow ups section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_Finished: {\r\n id: \"Label_UserOverview_ApplicationsTab_FollowUpsSection_Finished\",\r\n defaultMessage: \"Concluídos\",\r\n description: \"Finished Tab in the follow ups section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_ApplicationCode: {\r\n id: \"Label_UserOverview_ApplicationsTab_FollowUpsSection_ApplicationCode\",\r\n defaultMessage: \"Nº Candidatura\",\r\n description: \"Application Code in the follow ups section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_Company: {\r\n id: \"Label_UserOverview_ApplicationsTab_FollowUpsSection_Company\",\r\n defaultMessage: \"Empresa\",\r\n description: \"Company in the follow ups section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_Candidate: {\r\n id: \"Label_UserOverview_ApplicationsTab_FollowUpsSection_Candidate\",\r\n defaultMessage: \"Candidato\",\r\n description: \"Candidate in the follow ups section of the user collective overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_OpportunityType: {\r\n id: \"Label_UserOverview_ApplicationsTab_FollowUpsSection_OpportunityType\",\r\n defaultMessage: \"Tipo de Oferta\",\r\n description: \"Opportunity Type in the follow ups section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_State: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_State\",\r\n defaultMessage: \"Estado\",\r\n description: \"State in the follow ups section of the user overview screen\",\r\n },\r\n Label_UserOverview_ApplicationsTab_FollowUpsSection_OverallEvaluation: {\r\n id: \"Label_UserOverview_ApplicationsTab_ApplicationsSection_OverallEvaluation\",\r\n defaultMessage: \"Avaliação Geral\",\r\n description: \"OverallEvaluation in the follow ups section of the user overview screen\",\r\n },\r\n //UserOverview - Applications Tab - AddCandidateToOpportunitiesModal\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AddCandidatesTitle: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AddCandidatesTitle\",\r\n defaultMessage: \"Adicionar Candidato a Ofertas de Emprego e Estágio\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_CompanyNameOrTaxId: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_CompanyNameOrTaxId\",\r\n defaultMessage: \"Nome da Empresa ou NIF\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Province: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Province\",\r\n defaultMessage: \"Província\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Municipality: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Municipality\",\r\n defaultMessage: \"Município\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_ProfessionalCategory: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_ProfessionalCategory\",\r\n defaultMessage: \"Área Profissional\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_OpportunityType: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_OpportunityType\",\r\n defaultMessage: \"Tipo de Oferta\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Company: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Company\",\r\n defaultMessage: \"Empresa\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Candidates: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Candidates\",\r\n defaultMessage: \"Candidatos\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Vacancies: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Vacancies\",\r\n defaultMessage: \"Vagas\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Reference: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Reference\",\r\n defaultMessage: \"Nº Oferta\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AcademicLevel: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AcademicLevel\",\r\n defaultMessage: \"Nível de Escolaridade\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Languages: {\r\n id: \"Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Languages\",\r\n defaultMessage: \"Conhecimento de Línguas\",\r\n description: \"AddCandidateToOpportunitiesModal\",\r\n },\r\n\r\n //Quick Guides\r\n Label_QuickGuides_360Vision: {\r\n id: \"Label_QuickGuides_360Vision\",\r\n defaultMessage: \"Visão 360º\",\r\n description: \"Quick Guides label\",\r\n },\r\n Label_QuickGuides_CheckUserData: {\r\n id: \"Label_QuickGuides_CheckUserData\",\r\n defaultMessage: \"Como consultar informação do utilizador\",\r\n description: \"Quick Guides label\",\r\n },\r\n Label_QuickGuides_InternshipsFollowup: {\r\n id: \"Label_QuickGuides_InternshipsFollowup\",\r\n defaultMessage: \"Acompanhamento de Estágios\",\r\n description: \"Quick Guides label\",\r\n },\r\n Label_QuickGuides_InternshipsFollowup_Citizen: {\r\n id: \"Label_QuickGuides_InternshipsFollowup_Citizen\",\r\n defaultMessage: \"Como gerar e consultar formulários de cidadão\",\r\n description: \"Quick Guides label\",\r\n },\r\n Label_QuickGuides_InternshipsFollowup_Company: {\r\n id: \"Label_QuickGuides_InternshipsFollowup_Company\",\r\n defaultMessage: \"Como gerar, consultar e validar formulários de empresa\",\r\n description: \"Quick Guides label\",\r\n },\r\n\r\n //Opportunity - Opportunity Data\r\n Label_Opportunity_OpportunityData_EmploymentCenter: {\r\n id: \"Label_Opportunity_OpportunityData_EmploymentCenter\",\r\n defaultMessage: \"Centro de Emprego\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_SocialPerks: {\r\n id: \"Label_Opportunity_OpportunityData_SocialPerks\",\r\n defaultMessage: \"Regalias Sociais Oferecidas\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_SocialPerks_Examples: {\r\n id: \"Label_Opportunity_OpportunityData_SocialPerks_Examples\",\r\n defaultMessage: \"Transportes, casa, alimentação, etc.\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_OtherPerks: {\r\n id: \"Label_Opportunity_OpportunityData_OtherPerks\",\r\n defaultMessage: \"Outras Regalias\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_RequiredAcademicLevel: {\r\n id: \"Label_Opportunity_OpportunityData_RequiredAcademicLevel\",\r\n defaultMessage: \"Nível de Escolaridade\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_Workplace: {\r\n id: \"Label_Opportunity_OpportunityData_Workplace\",\r\n defaultMessage: \"Local de Trabalho\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_Commune: {\r\n id: \"Label_Opportunity_OpportunityData_Commune\",\r\n defaultMessage: \"Comuna\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_RequiredKnowledge: {\r\n id: \"Label_Opportunity_OpportunityData_RequiredKnowledge\",\r\n defaultMessage: \"Conhecimentos Profissionais\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_RequiredKnowledge_Examples: {\r\n id: \"Label_Opportunity_OpportunityData_RequiredKnowledge_Examples\",\r\n defaultMessage: \"Máquinas, ferramentas, etc.\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_ActiveMonths: {\r\n id: \"Label_Opportunity_OpportunityData_RequiredKnowledge_ActiveMonths\",\r\n defaultMessage: \"Tempo de Prática (anos)\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_Observations: {\r\n id: \"Label_Opportunity_OpportunityData_RequiredKnowledge_Observations\",\r\n defaultMessage: \"Observações (opcional)\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_AcceptWorkersFromOtherRegions: {\r\n id: \"Label_Opportunity_OpportunityData_AcceptWorkersFromOtherRegions\",\r\n defaultMessage: \"Trabalhadores Doutras Regiões\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n Label_Opportunity_OpportunityData_RequiredLanguages: {\r\n id: \"Label_Opportunity_OpportunityData_RequiredLanguages\",\r\n defaultMessage: \"Conhecimentos de Línguas\",\r\n description: \"Opportunity_OpportunityData\",\r\n },\r\n\r\n //UserProfile - UserCollective - CompanyData\r\n Label_UserProfile_UserCollective_CompanyData_CompanyEACId: {\r\n id: \"Label_UserProfile_UserCollective_CompanyData_CompanyEACId\",\r\n defaultMessage: \"CAE da Empresa\",\r\n description: \"UserProfile - UserCollective - CompanyData\",\r\n },\r\n Label_UserProfile_UserCollective_CompanyData_PropertyType: {\r\n id: \"Label_UserProfile_UserCollective_CompanyData_PropertyType\",\r\n defaultMessage: \"Tipo Propriedade\",\r\n description: \"UserProfile - UserCollective - CompanyData\",\r\n },\r\n Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompany: {\r\n id: \"Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompany\",\r\n defaultMessage: \"Filial (opcional)\",\r\n description: \"UserProfile - UserCollective - CompanyData\",\r\n },\r\n Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyPostalCode: {\r\n id: \"Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyPostalCode\",\r\n defaultMessage: \"Caixa Postal da Filial (opcional)\",\r\n description: \"UserProfile - UserCollective - CompanyData\",\r\n },\r\n Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyActivity: {\r\n id: \"Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyActivity\",\r\n defaultMessage: \"Actividade da Filial (opcional)\",\r\n description: \"UserProfile - UserCollective - CompanyData\",\r\n },\r\n Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyEAC: {\r\n id: \"Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyEAC\",\r\n defaultMessage: \"CAE da Filial (opcional)\",\r\n description: \"UserProfile - UserCollective - CompanyData\",\r\n },\r\n\r\n //UserProfile - UserSingular\r\n Label_UserProfile_UserSingular_PersonalAndProfessionalData: {\r\n id: \"Label_UserProfile_UserSingular_PersonalAndProfessionalData\",\r\n defaultMessage: \"Dados Pessoais e Profissionais\",\r\n description: \"UserProfile - UserSingular\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory\",\r\n defaultMessage: \"Histórico de Emprego e Desemprego\",\r\n description: \"UserProfile - UserSingular\",\r\n },\r\n\r\n //UserProfile - UserSingular - ProfessionalData\r\n Label_UserProfile_UserSingular_ProfessionalData_MainProfessionalExperience: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_MainProfessionalExperience\",\r\n defaultMessage: \"Profissão Principal\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_SecondaryProfessionalExperience: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_SecondaryProfessionalExperience\",\r\n defaultMessage: \"Profissão Subsidiária (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_YearsOfMainProfessionalExperience: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_YearsOfMainProfessionalExperience\",\r\n defaultMessage: \"Experiência Profissional Principal\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_YearsOfSecondaryProfessionalExperience: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_YearsOfSecondaryProfessionalExperience\",\r\n defaultMessage: \"Experiência Profissional Subsidiária (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_ProfessionalQualification: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_ProfessionalQualification\",\r\n defaultMessage: \"Qualificação Profissional (conhecimentos máquinas, etc.) (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_OtherProfessionalExperience: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_OtherProfessionalExperience\",\r\n defaultMessage: \"Outras Experiências Profissionais (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_Household: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_Household\",\r\n defaultMessage: \"Pessoas a Cargo (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_FamilyIncome: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_FamilyIncome\",\r\n defaultMessage: \"Rendimento Familiar (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_StudiedLanguages: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_StudiedLanguages\",\r\n defaultMessage: \"Línguas Estudadas (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_IntendedWorkplaceProvinceId: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_IntendedWorkplaceProvinceId\",\r\n defaultMessage: \"Local Trabalho Pretendido (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_IntendedWorkplaceProvinceId_Details: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_IntendedWorkplaceProvinceId_Details\",\r\n defaultMessage: \"Preencher caso esteja à procura de emprego\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n Label_UserProfile_UserSingular_ProfessionalData_OccupationalCategory: {\r\n id: \"Label_UserProfile_UserSingular_ProfessionalData_OccupationalCategory\",\r\n defaultMessage: \"Categoria Ocupacional (opcional)\",\r\n description: \"UserProfile - UserSingular - ProfessionalData\",\r\n },\r\n\r\n //UserProfile - UserSingular - EmploymentAndUnemploymentHistory\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_StartDate: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_StartDate\",\r\n defaultMessage: \"Data Início\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EndDate: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EndDate\",\r\n defaultMessage: \"Data Fim\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EmploymentHistory: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EmploymentHistory\",\r\n defaultMessage: \"Histórico de Emprego\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityNumber: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityNumber\",\r\n defaultMessage: \"Nº Oferta de Emprego\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Company: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Company\",\r\n defaultMessage: \"Empresa/Filial\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Profession: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Profession\",\r\n defaultMessage: \"Profissão\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityType: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityType\",\r\n defaultMessage: \"Tipo\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_WorkTimeFrame: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_WorkTimeFrame\",\r\n defaultMessage: \"Período de Trabalho\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Salary: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Salary\",\r\n defaultMessage: \"Salário (Kz)\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Observations: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Observations\",\r\n defaultMessage: \"Observações\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_UnemploymentHistory: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_UnemploymentHistory\",\r\n defaultMessage: \"Histórico de Desemprego\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_AddRecord: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_AddRecord\",\r\n defaultMessage: \"Adicionar Registo\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Edit: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Edit\",\r\n defaultMessage: \"Editar\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Add: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Add\",\r\n defaultMessage: \"Adicionar\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_UnemploymentRecord: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_UnemploymentRecord\",\r\n defaultMessage: \"Registo de Desemprego\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EmploymentRecord: {\r\n id: \"Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EmploymentRecord\",\r\n defaultMessage: \"Registo de Emprego\",\r\n description: \"UserProfile - UserSingular - EmploymentAndUnemploymentHistory\",\r\n },\r\n\r\n // Other Areas Intervetion\r\n Label_InterventionOtherArea: {\r\n id: \"Label_InterventionOtherArea\",\r\n defaultMessage: \"Intervenção de Outras Áreas\",\r\n description: \"InterventionOtherArea section title\",\r\n },\r\n Label_InterventionOtherArea_Area: {\r\n id: \"Label_InterventionOtherArea_Area\",\r\n defaultMessage: \"Área\",\r\n description: \"InterventionOtherArea area field\",\r\n },\r\n Label_InterventionOtherArea_ReasonForIntervention: {\r\n id: \"Label_InterventionOtherArea_ReasonForIntervention\",\r\n defaultMessage: \"Motivo da Intervenção\",\r\n description: \"InterventionOtherArea intervention motive\",\r\n },\r\n Label_InterventionOtherArea_Results: {\r\n id: \"Label_InterventionOtherArea_Results\",\r\n defaultMessage: \"Resultados\",\r\n description: \"InterventionOtherArea intervention results\",\r\n },\r\n});\r\n\r\nexport const titles = defineMessages({\r\n // General\r\n\r\n // Navbar\r\n Title_AdminNavBar_NavBarMenu: {\r\n id: \"Title_AdminNavBar_NavBarMenu\",\r\n defaultMessage: \"Menu\",\r\n description: \"Titulo do botão do menu em lista da NavBar\",\r\n },\r\n Title_AdminNavBar_NavBarListMenu: {\r\n id: \"Title_AdminNavBar_NavBarListMenu\",\r\n defaultMessage: \"Menu de Navegação\",\r\n description: \"Titulo do menu em lista da NavBar\",\r\n },\r\n Title_AdminNavBar_GestaoCandidaturasMenu: {\r\n id: \"Title_AdminNavBar_GestaoCandidaturasMenu\",\r\n defaultMessage: \"Gestão de Candidaturas\",\r\n description: \"Titulo do menu Gestão de Candidaturas\",\r\n },\r\n Title_AdminNavBar_ListaDeCandidaturasMenuItem: {\r\n id: \"Title_AdminNavBar_ListaDeCandidaturasMenuItem\",\r\n defaultMessage: \"Lista de Candidaturas\",\r\n description: \"Titulo de opção de item do menu Gestão de Candidaturas\",\r\n },\r\n Title_AdminNavBar_AgendamentosMenuItem: {\r\n id: \"Title_AdminNavBar_AgendamentosMenuItem\",\r\n defaultMessage: \"Agendamentos\",\r\n description: \"Titulo de opção de item do menu Gestão de Candidaturas\",\r\n },\r\n Title_AdminNavBar_ProfessionalKitsMenu: {\r\n id: \"Title_AdminNavBar_ProfessionalKitsMenu\",\r\n defaultMessage: \"Kits Profissionais\",\r\n description: \"Titulo do menu Kits Profissionais\",\r\n },\r\n Title_AdminNavBar_ProfessionalKitsMenu_KitsListMenuItem: {\r\n id: \"Title_AdminNavBar_ProfessionalKitsMenu_KitsListMenuItem\",\r\n defaultMessage: \"Lista Kits\",\r\n description: \"Titulo de opção de item do menu Kits Profissionais\",\r\n },\r\n Title_AdminNavBar_ProfessionalKitsMenu_CharacterizeKitMenuItem: {\r\n id: \"Title_AdminNavBar_ProfessionalKitsMenu_CharacterizeKitMenuItem\",\r\n defaultMessage: \"Caracterizar Kit\",\r\n description: \"Titulo de opção de item do menu Kits Profissionais\",\r\n },\r\n Title_AdminNavBar_ProfessionalKitsMenu_RegisterLossMenuItem: {\r\n id: \"Title_AdminNavBar_ProfessionalKitsMenu_RegisterLossMenuItem\",\r\n defaultMessage: \"Registar Perda\",\r\n description: \"Titulo de opção de item do menu Kits Profissionais\",\r\n },\r\n Title_AdminNavBar_ProfessionalKitsMenu_RegisterInWarehouseMenuItem: {\r\n id: \"Title_AdminNavBar_ProfessionalKitsMenu_RegisterInWarehouseMenuItem\",\r\n defaultMessage: \"Registo em Armazém\",\r\n description: \"Titulo de opção de item do menu Kits Profissionais\",\r\n },\r\n Title_AdminNavBar_ProfessionalKitsMenu_StocksMenuItem: {\r\n id: \"Title_AdminNavBar_ProfessionalKitsMenu_StocksMenuItem\",\r\n defaultMessage: \"Stocks\",\r\n description: \"Titulo de opção de item do menu Kits Profissionais\",\r\n },\r\n Title_AdminNavBar_ProfessionalKitsMenu_KitDeliveryMenuItem: {\r\n id: \"Title_AdminNavBar_ProfessionalKitsMenu_KitDeliveryMenuItem\",\r\n defaultMessage: \"Entrega de kit\",\r\n description: \"Titulo de opção de item do menu Kits Profissionais\",\r\n },\r\n Title_AdminNavBar_SubprogramasMenu: {\r\n id: \"Title_AdminNavBar_SubprogramasMenu\",\r\n defaultMessage: \"Subprogramas\",\r\n description: \"Titulo do menu Subprogramas\",\r\n },\r\n Title_AdminNavBar_ListaSubprogramasMenuItem: {\r\n id: \"Title_AdminNavBar_ListaSubprogramasMenuItem\",\r\n defaultMessage: \"Lista Subprogramas\",\r\n description: \"Titulo de opção de item de menu Subprogramas\",\r\n },\r\n Title_AdminNavBar_CharacterizeSubprogramMenuItem: {\r\n id: \"Title_AdminNavBar_CharacterizeSubprogramMenuItem\",\r\n defaultMessage: \"Caracterizar subprograma\",\r\n description: \"Titulo de opção de item de menu Subprogramas\",\r\n },\r\n\r\n Title_AdminNavBar_ListaInformationDisseminationMenuItem: {\r\n id: \"Title_AdminNavBar_ListaInformationDisseminationMenuItem\",\r\n defaultMessage: \"Lista Informação\",\r\n description: \"Titulo de opção de item de menu Criação Informação\",\r\n },\r\n Title_AdminNavBar_CreateInformationDisseminationMenuItem: {\r\n id: \"Title_AdminNavBar_CreateInformationDisseminationMenuItem\",\r\n defaultMessage: \"Criar Informação\",\r\n description: \"Titulo de opção de item de menu Criação Informação\",\r\n },\r\n Title_AdminNavBar_ListCandidatesMenuItem: {\r\n id: \"Title_AdminNavBar_ListCandidatesMenuItem\",\r\n defaultMessage: \"Lista de Candidatos\",\r\n description: \"Titulo de opção de item de menu Lista Candidatos\",\r\n },\r\n Title_AdminNavBar_ListOpportunitiesMenuItem: {\r\n id: \"Title_AdminNavBar_ListOpportunitiesMenuItem\",\r\n defaultMessage: \"Lista de Ofertas\",\r\n description: \"Titulo de opção de item de menu Emprego e Estágio\",\r\n },\r\n Title_AdminNavBar_ListOpportunitiesApplicationsMenuItem: {\r\n id: \"Title_AdminNavBar_ListOpportunitiesApplicationsMenuItem\",\r\n defaultMessage: \"Lista de Candidaturas\",\r\n description: \"Titulo de opção de item de menu Emprego e Estágio\",\r\n },\r\n Title_AdminNavBar_ListOpportunitiesApplicationsFollowUpMenuItem: {\r\n id: \"Title_AdminNavBar_ListOpportunitiesApplicationsFollowUpMenuItem\",\r\n defaultMessage: \"Lista de Estágios\",\r\n description: \"Titulo de opção de item de menu Emprego e Estágio\",\r\n },\r\n Title_AdminNavBar_OpportunityCreateMenuItem: {\r\n id: \"Title_AdminNavBar_OpportunityCreateMenuItem\",\r\n defaultMessage: \"Criar Oferta\",\r\n description: \"Titulo de opção de item de menu Emprego e Estágio\",\r\n },\r\n\r\n Title_AdminNavBar_Bancos: {\r\n id: \"Title_AdminNavBar_Bancos\",\r\n defaultMessage: \"Bancos\",\r\n description: \"Titulo de opção Bancos\",\r\n },\r\n Title_AdminNavBar_InformationDissemination: {\r\n id: \"Title_AdminNavBar_InformationDissemination\",\r\n defaultMessage: \"Informação\",\r\n description: \"Titulo de opção de Informação\",\r\n },\r\n Title_AdminNavBar_Opportunity: {\r\n id: \"Title_AdminNavBar_Opportunity\",\r\n defaultMessage: \"Emprego e Estágio\",\r\n description: \"Titulo de opção Emprego e Estágio\",\r\n },\r\n Title_AdminNavBar_ManageUsersMenu: {\r\n id: \"Title_AdminNavBar_ManageUsersMenu\",\r\n defaultMessage: \"Gestão de Utilizadores\",\r\n description: \"Titulo do menu de Gestão de Utilizadores\",\r\n },\r\n Title_AdminNavBar_ManageUsersMenuItemBackOffice: {\r\n id: \"Title_AdminNavBar_ManageUsersMenuItemBackOffice\",\r\n defaultMessage: \"Utilizadores Backoffice\",\r\n description: \"Titulo de opção de item de menu de Gestão Utilizadores\",\r\n },\r\n Title_AdminNavBar_ManageUsersMenuItemFrontOffice: {\r\n id: \"Title_AdminNavBar_ManageUsersMenuItemFrontOffice\",\r\n defaultMessage: \"Utilizadores Frontoffice\",\r\n description: \"Titulo de opção de item de menu de Gestão Utilizadores\",\r\n },\r\n Title_Admin_Subprogram_GeneralDataSection: {\r\n id: \"Title_Admin_Subprogram_GeneralDataSection\",\r\n defaultMessage: \"Dados Gerais\",\r\n description: \"Titulo da secção de dados gerais\",\r\n },\r\n Title_Admin_Subprogram_BenefitsSection: {\r\n id: \"Title_Admin_Subprogram_BenefitsSection\",\r\n defaultMessage: \"Benefícios\",\r\n description: \"Titulo da secção de benefícios\",\r\n },\r\n Title_Admin_Subprogram_DocumentsSection: {\r\n id: \"Title_Admin_Subprogram_DocumentsSection\",\r\n defaultMessage: \"Documentos\",\r\n description: \"Titulo da secção de documentos\",\r\n },\r\n\r\n // Dashboard cards\r\n Title_Admin_Dashboard_CardOnGoingApplications: {\r\n id: \"Title_Admin_Dashboard_CardOnGoingApplications\",\r\n defaultMessage: \"Candidaturas em Curso\",\r\n description: \"Title of CardOnGoingApplications in Dashboard\",\r\n },\r\n\r\n // Applications\r\n Title_Admin_ApplicationsManagement: {\r\n id: \"Title_Admin_ApplicationsManagement\",\r\n defaultMessage: \"Pesquisar Candidaturas\",\r\n description: \"Titulo do cartão de filtro de pesquisa na página de Gestão de Candidaturas\",\r\n },\r\n Title_Admin_ApplicationsManagement_ResultSection: {\r\n id: \"Title_Admin_ApplicationsManagement_ResultSection\",\r\n defaultMessage: \"Lista de Candidaturas\",\r\n description: \"Titulo da tabela de resultados na página de Gestão de Candidaturas\",\r\n },\r\n\r\n Title_Admin_ApplicationDetail_GeneralDataSectionButton: {\r\n id: \"Title_Admin_ApplicationDetail_GeneralDataSectionButton\",\r\n defaultMessage: \"Dados Gerais\",\r\n description: \"Titulo do botão para a secção de Dados Gerais do candidato\",\r\n },\r\n Title_Admin_ApplicationDetail_GeneralDataSection: {\r\n id: \"Title_Admin_ApplicationDetail_GeneralDataSection\",\r\n defaultMessage: \"Dados Gerais do Candidato\",\r\n description: \"Titulo da secção de Dados Gerais do candidato\",\r\n },\r\n Title_Admin_ApplicationDetail_ProgramSubprogramDataSection: {\r\n id: \"Title_Admin_ApplicationDetail_ProgramSubprogramDataSection\",\r\n defaultMessage: \"Dados do Programa e Subprograma\",\r\n description: \"Titulo da secção de Dados do Programa e Subprograma\",\r\n },\r\n Title_Admin_ApplicationDetail_ComplementaryDataSection: {\r\n id: \"Title_Admin_ApplicationDetail_ComplementaryDataSection\",\r\n defaultMessage: \"Dados Complementares\",\r\n description: \"Titulo da secção de Dados Complementares\",\r\n },\r\n Title_Admin_ApplicationDetail_DocumentsSection: {\r\n id: \"Title_Admin_ApplicationDetail_DocumentsSection\",\r\n defaultMessage: \"Documentos\",\r\n description: \"Titulo da secção de Documentos\",\r\n },\r\n Title_Admin_ApplicationDetail_SchedulingSection: {\r\n id: \"Title_Admin_ApplicationDetail_SchedulingSection\",\r\n defaultMessage: \"Agendamento\",\r\n description: \"Titulo do botão e da secção de Agendamento\",\r\n },\r\n Title_Admin_ApplicationDetail_ReportsSection: {\r\n id: \"Title_Admin_ApplicationDetail_ReportsSection\",\r\n defaultMessage: \"Relatórios\",\r\n description: \"Titulo da secção de Agendamento\",\r\n },\r\n Title_Admin_ApplicationDetail_NotificationsSection: {\r\n id: \"Title_Admin_ApplicationDetail_NotificationsSection\",\r\n defaultMessage: \"Notificações\",\r\n description: \"Titulo do botão e da secção de Notificações\",\r\n },\r\n Title_Admin_ApplicationDetail_HistorySectionButton: {\r\n id: \"Title_Admin_ApplicationDetail_HistorySectionButton\",\r\n defaultMessage: \"Histórico\",\r\n description: \"Titulo do botão para a secção de Histórico\",\r\n },\r\n Title_Admin_ApplicationDetail_HistorySection: {\r\n id: \"Title_Admin_ApplicationDetail_HistorySection\",\r\n defaultMessage: \"Linha do Tempo\",\r\n description: \"Titulo da secção de Histórico\",\r\n },\r\n Title_Admin_ApplicationDetail_HistoryNotesSection: {\r\n id: \"Title_Admin_ApplicationDetail_HistoryNotesSection\",\r\n defaultMessage: \"Notas / Comentários\",\r\n description: \"Titulo da secção de Histórico\",\r\n },\r\n\r\n // Schedules\r\n Title_Admin_SchedulesManagement: {\r\n id: \"Title_Admin_SchedulesManagement\",\r\n defaultMessage: \"Pesquisa de Agendamentos\",\r\n description: \"Titulo do cartão de filtro de pesquisa na página de Agendamentos\",\r\n },\r\n Title_Admin_SchedulesManagement_ResultSection: {\r\n id: \"Title_Admin_SchedulesManagement_ResultSection\",\r\n defaultMessage: \"Lista de Agendamentos\",\r\n description: \"Titulo da tabela de resultados na página de Agendamentos\",\r\n },\r\n Title_Admin_SchedulesManagement_ScheduleDetails_RegistrationData: {\r\n id: \"Title_Admin_SchedulesManagement_ScheduleDetails_RegistrationData\",\r\n defaultMessage: \"Dados do Registo\",\r\n description: \"Titulo da secção da página de detalhes de agendamentos\",\r\n },\r\n\r\n // Professional Kits\r\n Title_Admin_ProfessionalKitsManagement: {\r\n id: \"Title_Admin_ProfessionalKitsManagement\",\r\n defaultMessage: \"Pesquisa de Kits\",\r\n description: \"Titulo do cartão de filtro de pesquisa na página de Gestão de Kits\",\r\n },\r\n Title_Admin_ProfessionalKits_ResultSection: {\r\n id: \"Title_Admin_ProfessionalKits_ResultSection\",\r\n defaultMessage: \"Lista de Kits Profissionais\",\r\n description: \"Titulo da tabela de resultados na página de Kits Profissionais\",\r\n },\r\n Title_Admin_ProfessionalKits_StocksManagement: {\r\n id: \"Title_Admin_ProfessionalKits_StocksManagement\",\r\n defaultMessage: \"Pesquisa de Stocks\",\r\n description: \"Titulo do cartão de filtro de pesquisa na página de Gestão de Stocks\",\r\n },\r\n Title_Admin_ProfessionalKits_StocksManagement_ResultSection: {\r\n id: \"Title_Admin_ProfessionalKits_StocksManagement_ResultSection\",\r\n defaultMessage: \"Lista de Stocks\",\r\n description: \"Titulo da tabela de resultados na página de Gestão de Stocks\",\r\n },\r\n Title_Component_ModalFormsContent_Stocks_RegisterLossBreak: {\r\n id: \"Title_Component_ModalFormsContent_Stocks_RegisterLossBreak\",\r\n defaultMessage: \"Registo de Perda\",\r\n description: \"Titulo da modal de registo de quebra/perda de kits\",\r\n },\r\n\r\n // Opportunities\r\n Title_Opportunity_Employment_Data_Card: {\r\n id: \"Title_Opportunity_Employment_Data_Card\",\r\n defaultMessage: \"Dados da oferta de emprego\",\r\n description: \"Título do cartão de definição dos dados da oferta de emprego\",\r\n },\r\n Title_Opportunity_Internship_Data_Card: {\r\n id: \"Title_Opportunity_Internship_Data_Card\",\r\n defaultMessage: \"Dados da oferta de estágio profissional\",\r\n description: \"Título do cartão de definição dos dados da oferta de estágio\",\r\n },\r\n Title_Opportunity_Employment_RejectMotive_Card: {\r\n id: \"Title_Opportunity_Employment_RejectMotive_Card\",\r\n defaultMessage: \"Motivo de rejeição\",\r\n description: \"Título do cartão com o motivo da rejeição da oferta\",\r\n },\r\n Title_Opportunity_Employment_CloseMotive_Card: {\r\n id: \"Title_Opportunity_Employment_CloseMotive_Card\",\r\n defaultMessage: \"Motivo de fecho\",\r\n description: \"Título do cartão com o motivo do fecho da oferta\",\r\n },\r\n Title_Opportunity_Candidate_Data_Card: {\r\n id: \"Title_Opportunity_Candidate_Data_Card\",\r\n defaultMessage: \"Dados do candidato\",\r\n description: \"Título do cartão de definição dos dados do candidato\",\r\n },\r\n\r\n // Loans\r\n Title_Loans_LoanDetails_GeneralData_Card: {\r\n id: \"Title_Loans_LoanDetails_GeneralData_Card\",\r\n defaultMessage: \"Dados Gerais\",\r\n description: \"General Data card title of Loan Details page\",\r\n },\r\n Title_Loans_LoanDetails_Section: {\r\n id: \"Title_Loans_LoanDetails_Section\",\r\n defaultMessage: \"Detalhes do empréstimo\",\r\n description: \"Title of section in Loan Details page\",\r\n },\r\n Title_Loans_LoanDetails_Subsection: {\r\n id: \"Title_Loans_LoanDetails_Subsection\",\r\n defaultMessage: \"Bancos\",\r\n description: \"Title of subsection in Loan Details page\",\r\n },\r\n\r\n // InformationDissemination\r\n Title_InformationDissemination_CreateInformation: {\r\n id: \"Title_InformationDissemination_CreateInformation\",\r\n defaultMessage: \"Criar Informação\",\r\n description: \"Section title of Create Information page\",\r\n },\r\n Title_InformationDissemination_InformationManagement: {\r\n id: \"Title_InformationDissemination_InformationManagement\",\r\n defaultMessage: \"Gestão de Informação\",\r\n description: \"Subsection title of Create Information page\",\r\n },\r\n Title_InformationDissemination_EditInformation: {\r\n id: \"Title_InformationDissemination_EditInformation\",\r\n defaultMessage: \"Editar Informação\",\r\n description: \"Section title of Create Information page\",\r\n },\r\n\r\n //UserOverview\r\n Title_UserOverview_Advanced_Search_Title: {\r\n id: \"Title_UserOverview_Advanced_Search_Title\",\r\n defaultMessage: \"Pesquisa Avançada\",\r\n description: \"Advanced Search Title\",\r\n },\r\n Title_UserOverview_User_Overview_Title: {\r\n id: \"Title_UserOverview_User_Overview_Title\",\r\n defaultMessage: \"Visão Geral do Utilizador\",\r\n description: \"User Overview Title\",\r\n },\r\n //UserOverview - GeneralData Tab\r\n Title_UserOverview_GeneralDataTab_ContactsSection: {\r\n id: \"Title_UserOverview_GeneralDataTab_ContactsSection\",\r\n defaultMessage: \"Dados de Contacto\",\r\n description: \"Contacts section in the user overview screen\",\r\n },\r\n Title_UserOverview_GeneralDataTab_GeneralDataSection: {\r\n id: \"Title_UserOverview_GeneralDataTab_GeneralDataSection\",\r\n defaultMessage: \"Dados Gerais\",\r\n description: \"General Data section in the user overview screen\",\r\n },\r\n //UserOverview - Profession Tab\r\n Title_UserOverview_ProfessionTab_ProfessionalDataSection: {\r\n id: \"Title_UserOverview_ProfessionTab_ProfessionalDataSection\",\r\n defaultMessage: \"Dados Profissionais\",\r\n description: \"Professional Data section in the user overview screen\",\r\n },\r\n Title_UserOverview_ProfessionTab_TrainingSection: {\r\n id: \"Title_UserOverview_ProfessionTab_TrainingSection\",\r\n defaultMessage: \"Formação\",\r\n description: \"Training section in the user overview screen\",\r\n },\r\n Title_UserOverview_ProfessionTab_DocumentsSection: {\r\n id: \"Title_UserOverview_ProfessionTab_DocumentsSection\",\r\n defaultMessage: \"Documentos\",\r\n description: \"Documents section in the user overview screen\",\r\n },\r\n //UserOverview - ApplicationsTab\r\n Title_UserOverview_ApplicationsTab_ApplicationsSection: {\r\n id: \"Title_UserOverview_ApplicationsTab_ApplicationsSection\",\r\n defaultMessage: \"Candidaturas\",\r\n description: \"Applications section in the user overview screen\",\r\n },\r\n Title_UserOverview_ApplicationsTab_GovernmentProgramsApplicationsSection: {\r\n id: \"Title_UserOverview_ApplicationsTab_GovernmentProgramsApplicationsSection\",\r\n defaultMessage: \"Candidaturas a Programas do Governo\",\r\n description: \"Government Programs Applications section in the user overview screen\",\r\n },\r\n Title_UserOverview_ApplicationsTab_EmploymentAndInternshipApplicationsSection: {\r\n id: \"Title_UserOverview_ApplicationsTab_EmploymentAndInternshipApplicationsSection\",\r\n defaultMessage: \"Candidaturas a\",\r\n description: \"Employment And Internship Applications section in the user overview screen\",\r\n },\r\n Title_UserOverview_ApplicationsTab_FollowUpsSection: {\r\n id: \"Title_UserOverview_ApplicationsTab_FollowUpsSection\",\r\n defaultMessage: \"Acompanhamentos\",\r\n description: \"FollowUps section in the user overview screen\",\r\n },\r\n\r\n Title_QuickGuides: {\r\n id: \"Title_QuickGuides\",\r\n defaultMessage: \"Guias de ajuda ao Utilizador\",\r\n description: \"Quick Guides title\",\r\n },\r\n});\r\n\r\nexport const messages = defineMessages({\r\n Message_Generic_MandatoryField: {\r\n id: \"Message_Generic_MandatoryField\",\r\n defaultMessage: \"O campo é obrigatório\",\r\n description: \"Mensagem genérica para qualquer campo que seja obrigatório\",\r\n },\r\n Message_Generic_ValueGreaterThanOrEqualToZeroField: {\r\n id: \"Message_Generic_ValueGreaterThanOrEqualToZeroField\",\r\n defaultMessage: \"O valor tem de ser igual ou superior a zero\",\r\n description: \"Mensagem genérica para qualquer campo que o valor tenha de ser igual ou superior a zero\",\r\n },\r\n Message_Generic_ValueGreaterThanZeroField: {\r\n id: \"Message_Generic_ValueGreaterThanZeroField\",\r\n defaultMessage: \"O valor tem de ser superior a zero\",\r\n description: \"Mensagem genérica para qualquer campo que o valor tenha de ser superior a zero\",\r\n },\r\n Message_Generic_DateToGreaterThanOrEqualToTodayField: {\r\n id: \"Message_Generic_DateToGreaterThanOrEqualToTodayField\",\r\n defaultMessage: \"A data deve ser igual ou superior à data actual\",\r\n description: \"Mensagem genérica para qualquer campo em que a data tenha de ser igual ou superior à data actual\",\r\n },\r\n Message_Generic_DateLessThanTodayField: {\r\n id: \"Message_Generic_DateLessThanTodayField\",\r\n defaultMessage: \"A data deve ser inferior à data atual\",\r\n description: \"Mensagem genérica para qualquer campo em que a data tenha de ser inferior à data actual\",\r\n },\r\n Message_Generic_DateLessThanOrEqualToTodayField: {\r\n id: \"Message_Generic_DateLessThanOrEqualToTodayField\",\r\n defaultMessage: \"A data deve ser igual ou inferior à data actual\",\r\n description: \"Mensagem genérica para qualquer campo em que a data tenha de ser igual ou inferior à data actual\",\r\n },\r\n Message_Generic_DateToGreaterThanDateFromField: {\r\n id: \"Message_Generic_DateToGreaterThanDateFromField\",\r\n defaultMessage: \"A data deve ser superior à data de início\",\r\n description:\r\n \"Mensagem genérica para qualquer campo de intervalo em que a data tenha de ser superior à data de início\",\r\n },\r\n Message_Generic_DateToGreaterThanOrEqualToDateFromField: {\r\n id: \"Message_Generic_DateToGreaterThanOrEqualToDateFromField\",\r\n defaultMessage: \"A data deve ser igual ou superior à data de início\",\r\n description:\r\n \"Mensagem genérica para qualquer campo de intervalo em que a data tenha de ser igual ou superior à data de início\",\r\n },\r\n Message_Generic_DateFromLessThanDateToField: {\r\n id: \"Message_Generic_DateFromLessThanDateToField\",\r\n defaultMessage: \"A data deve ser inferior à data de fim\",\r\n description: \"Mensagem genérica para qualquer campo de intervalo em que a data tenha de ser superior à data de fim\",\r\n },\r\n Message_Generic_DateFromLessThanOrEqualToDateToField: {\r\n id: \"Message_Generic_DateFromLessThanOrEqualToDateToField\",\r\n defaultMessage: \"A data deve ser igual ou inferior à data de fim\",\r\n description:\r\n \"Mensagem genérica para qualquer campo de intervalo em que a data tenha de ser igual ou inferior à data de fim\",\r\n },\r\n Message_Generic_InvalidField: {\r\n id: \"Message_Generic_InvalidField\",\r\n defaultMessage: \"Formato incorrecto\",\r\n description: \"Mensagem genérica para qualquer campo que não cumpra o formato indicado\",\r\n },\r\n Message_Generic_TextFieldLengthTooShort: {\r\n id: \"Message_Generic_TextFieldLengthTooShort\",\r\n defaultMessage: \"O texto é de tamanho insuficiente\",\r\n description: \"Generic message when a text field is too short in length\",\r\n },\r\n Message_Generic_InvalidUrl: {\r\n id: \"Message_Generic_InvalidUrl\",\r\n defaultMessage: \"O URL introduzido não é válido\",\r\n description: \"Generic message when the text in URL field is not a valid URL\",\r\n },\r\n Message_Generic_MaxNumberOfVideosExceeded: {\r\n id: \"Message_Generic_MaxNumberOfVideosExceeded\",\r\n defaultMessage: \"O número máximo de vídeos foi excedido, não pode ser superior a \",\r\n description: \"Generic message when the maximum number of videos selected is exceeded\",\r\n },\r\n\r\n // DropzoneField\r\n Message_DropzoneField_InvalidFileFormat: {\r\n id: \"Message_DropzoneField_InvalidFileFormat\",\r\n defaultMessage: \"O ficheiro só pode ter formato .jpeg ou .png.\",\r\n description: \"Message when file's format is not supported\",\r\n },\r\n Message_DropzoneField_MaxFileSizeExceeded: {\r\n id: \"Message_DropzoneField_MaxFileSizeExceeded\",\r\n defaultMessage: \"O tamanho do ficheiro não pode ser superior a \",\r\n description: \"Message when file is too big\",\r\n },\r\n Message_DropzoneField_MaxNumberOfFilesExceeded: {\r\n id: \"Message_DropzoneField_MaxNumberOfFilesExceeded\",\r\n defaultMessage: \"O número máximo de ficheiros foi excedido, não pode ser superior a \",\r\n description: \"Generic message when the maximum number of files selected is exceeded\",\r\n },\r\n\r\n Message_Admin_HistoryTab_AdicionalCommentsField: {\r\n id: \"Message_Admin_HistoryTab_AdicionalCommentsField\",\r\n defaultMessage: \"Deixe aqui os seus comentários adicionais\",\r\n description: \"Mensagem default do campo\",\r\n },\r\n Message_Auth_Password_Rules_1: {\r\n id: \"Message_Auth_Password_Rules_1\",\r\n defaultMessage: \"A palavra-passe tem de conter:\",\r\n description: \"Label do botão de navegação do formulário que permite navegar para a página anterior\",\r\n },\r\n Message_Auth_Password_Rules_2: {\r\n id: \"Message_Auth_Password_Rules_2\",\r\n defaultMessage: \"Pelo menos 10 caracteres\",\r\n description: \"Label do botão de navegação do formulário que permite navegar para a página anterior\",\r\n },\r\n Message_Auth_Password_Rules_3: {\r\n id: \"Message_Auth_Password_Rules_3\",\r\n defaultMessage: \"Pelo menos 1 letra maiúscula\",\r\n description: \"Label do botão de navegação do formulário que permite navegar para a página anterior\",\r\n },\r\n Message_Auth_Password_Rules_4: {\r\n id: \"Message_Auth_Password_Rules_4\",\r\n defaultMessage: \"Pelo menos 1 letra minúscula\",\r\n description: \"Label do botão de navegação do formulário que permite navegar para a página anterior\",\r\n },\r\n Message_Auth_Password_Rules_5: {\r\n id: \"Message_Auth_Password_Rules_5\",\r\n defaultMessage: \"Pelo menos 1 número\",\r\n description: \"Label do botão de navegação do formulário que permite navegar para a página anterior\",\r\n },\r\n Message_Auth_Password_Rules_6: {\r\n id: \"Message_Auth_Password_Rules_6\",\r\n defaultMessage: \"Pelo menos 1 caracter especial\",\r\n description: \"Label do botão de navegação do formulário que permite navegar para a página anterior\",\r\n },\r\n});\r\n\r\nexport const tooltips = defineMessages({\r\n Tooltip_Social_Security_Number_Description: {\r\n id: \"Tooltip_Social_Security_Number_Description\",\r\n defaultMessage: \"Número de Identificação da Segurança Social\",\r\n description: \"Tooltip Social Security Number Description\",\r\n },\r\n});\r\n\r\nexport const alerts = defineMessages({\r\n Alert_Cannot_Add_Candidates_To_Opportunity_Because_Passed_ValidTo_Date: {\r\n id: \"Alert_Cannot_Add_Candidates_To_Opportunity_Because_Passed_ValidTo_Date\",\r\n defaultMessage:\r\n \"Aviso: Não é possível adicionar novos candidatos a esta oferta, pois foi ultrapassada a data de vigência. Para que volte a ser possível, altere a data de fim de vigência.\",\r\n description: \"Alert_Cannot_Add_Candidates_To_Opportunity_Because_Passed_ValidTo_Date\",\r\n },\r\n Alert_Cannot_Add_Candidates_To_Opportunity_Because_Before_ValidFrom_Date: {\r\n id: \"Alert_Cannot_Add_Candidates_To_Opportunity_Because_Before_ValidFrom_Date\",\r\n defaultMessage:\r\n \"Aviso: Não é possível adicionar novos candidatos a esta oferta, pois ainda não foi atingida a data de início de vigência. Para que passe a ser possível, altere a data de início de vigência.\",\r\n description: \"Alert_Cannot_Add_Candidates_To_Opportunity_Because_Passed_ValidTo_Date\",\r\n },\r\n});\r\n\r\nexport default errorMessages;\r\n","export const DATASET = {\r\n DATASET_TYPES: \"ReferenceDataSets\",\r\n\r\n APPLICATION_REJECT_MOTIVES: \"ApplicationsRejectMotives\",\r\n APPLICATION_NOTIFICATION_MOTIVES: \"NotificationMotives\",\r\n APPLICATION_NOTIFICATION_RECIPIENT_TYPES: \"NotificationRecipientTypes\",\r\n APPLICATION_NOTIFICATION_SUBJECTS: \"NotificationSubjects\",\r\n APPLICATION_SCHEDULING_MOTIVES: \"SchedulingMotives\",\r\n APPLICATION_STATES: \"ApplicationStates\",\r\n NEXT_APPLICATION_STATES: \"NextApplicationStates\",\r\n\r\n HISTORY_ENTRY_TYPES: \"HistoryEntryTypes\",\r\n\r\n ECONOMIC_ACTIVITIES_CLASSIFICATION: \"EconomicActivitiesClassification\",\r\n\r\n BANK: \"Bank\",\r\n LOAN_TYPE: \"LoanType\",\r\n LOAN_STATES: \"LoanStates\",\r\n LOAN_REJECT_MOTIVES: \"LoansRejectMotives\",\r\n\r\n MUNICIPALITIES: \"Municipalities\",\r\n NATIONALITIES: \"Nationalities\",\r\n PROVINCES: \"Provinces\",\r\n\r\n ORIGIN: \"Origin\",\r\n\r\n BUSINESS_PURPOSE: \"BusinessPurpose\",\r\n ACADEMIC_DEGREE: \"AcademicDegree\",\r\n ACADEMIC_LEVEL: \"AcademicLevel\",\r\n GENDER: \"Gender\",\r\n MARITAL_STATUS: \"MaritalStatus\",\r\n SPECIAL_NEEDS: \"SpecialNeeds\",\r\n SPECIALTY: \"Specialty\",\r\n TECHNICAL_CAPABIBILITY: \"TechnicalCapability\",\r\n PROFESSIONAL_TRAINNING: \"ProfessionalTraining\",\r\n ENTREPRENEURSHIP_TRAINNING: \"EntrepreneurshipTraining\",\r\n SMALL_BUSINESS_MGMT_TRAINNING: \"SmallBusinessMgmtTraining\",\r\n PROFESSIONAL_CATEGORY: \"ProfessionalCategory\",\r\n\r\n DEPARTMENTS: \"Departments\",\r\n WAREHOUSES: \"Warehouses\",\r\n CATEGORIES: \"Categories\",\r\n ACTIVE_CATEGORIES: \"ActiveCategories\",\r\n INACTIVE_CATEGORIES: \"InactiveCategories\",\r\n NOT_ASSIGNED_ACTIVE_CATEGORIES: \"NotAssignedActiveCategories\",\r\n LOSS_BREAK_MOTIVES: \"ProfessionalKitBreakLossMotives\",\r\n\r\n GOVERNMENT_PROGRAMS: \"GovernmentProgram\",\r\n PROGRAMS: \"Programs\",\r\n SUBPROGRAMS: \"Subprograms\",\r\n SUBPROGRAM_STATES: \"SubprogramStates\",\r\n BENEFITS: \"Benefits\",\r\n DOCUMENTS: \"Documents\",\r\n CONDITION_TYPES: \"ConditionTypes\",\r\n PREDEFINED_QUESTIONS: \"PredefinedQuestions\",\r\n\r\n BACKOFFICE_USERS: \"getBackOfficeUsers\",\r\n BACKOFFICE_ROLES: \"getBackOfficeRoles\",\r\n\r\n YES_OR_NO_DROPDOWN: [\r\n { code: true, label: \"Sim\" },\r\n { code: false, label: \"Não\" },\r\n ],\r\n\r\n SHAPE_PROGRAMS: \"getShapePrograms\",\r\n SHAPE_SUBSITES: \"getShapeSubsites\",\r\n\r\n INFORMATION_DISSEMINATION_TYPE: \"InformationDisseminationType\",\r\n INFORMATION_DISSEMINATION_ACCESS: \"Access\",\r\n\r\n OPPORTUNITY_TYPE: \"OpportunityType\",\r\n CONTRACT_TYPE: \"ContractType\",\r\n INTERNSHIP_TYPE: \"InternshipType\",\r\n TIMETABLE_TYPE: \"TimetableType\",\r\n OPPORTUNITY_STATE: \"OpportunityState\",\r\n OPPORTUNITY_STATE_MOTIVES: \"OpportunityStateMotives\",\r\n AVAILABLE_INTERNSHIP_OPPORTUNITIES: \"AvailableInternshipOpportunities\",\r\n OPPORTUNITY_CANDIDATE_REJECT_MOTIVES: \"OpportunityCandidateRejectionMotives\",\r\n OPPORTUNITY_DOCUMENT_TYPE: \"OpportunityDocumentType\",\r\n OPPORTUNITY_CANDIDATE_STATE: \"OpportunityCandidateState\",\r\n OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE: \"OpportunityCandidateFollowUpState\",\r\n FEEDBACK_REPORT_REJECT_MOTIVES: \"FeedbackReportRejectionMotives\",\r\n EMPLOYMENT_CENTERS: \"EmploymentCenter\",\r\n\r\n SOCIAL_MEDIA_TYPE: \"SocialMediaType\",\r\n LANGUAGES: \"Languages\",\r\n OCCUPATIONAL_CATEGORIES: \"OccupationalCategories\",\r\n\r\n INTERVENTION_OTHER_AREA: \"InterventionOtherArea\",\r\n};\r\n\r\nexport const OPERATIONS = {\r\n APPLICATIONS_MENU: \"applicationsManagmentMenu\",\r\n APPLICATIONS_LIST_ITEM: \"applicationsManagmentItem\",\r\n\r\n SCHEDULES_ITEM: \"schedulesManagmentItem\",\r\n\r\n PROFESSIONAL_KITS_MENU: \"professionalKitsMenu\",\r\n PROFESSIONAL_KITS_LIST_ITEM: \"professionalKitsListItem\",\r\n PROFESSIONAL_KITS_CHARACTERIZE_KIT_ITEM: \"characterizeKitItem\",\r\n PROFESSIONAL_KITS_REGISTER_LOSS_KIT_ITEM: \"registerLossKitItem\",\r\n PROFESSIONAL_KITS_REGISTER_IN_WAREHOUSE_ITEM: \"registerInWarehouseItem\",\r\n PROFESSIONAL_KITS_STOCKS_ITEM: \"stocksItem\",\r\n PROFESSIONAL_KITS_DELIVERY_ITEM: \"kitDeliveryItem\",\r\n\r\n SUBPROGRAMS_MENU: \"subprogramsMenu\",\r\n SUBPROGRAMS_CHARACTERIZE_SUBPROGRAM_ITEM: \"characterizeSubprogramItem\",\r\n SUBPROGRAMS_LIST_ITEM: \"subprogramsListItem\",\r\n\r\n OPPORTUNITIES_MENU: \"OpportunitiesMenu\",\r\n OPPORTUNITIES_CREATE_ITEM: \"CreateOpportunityItem\",\r\n OPPORTUNITIES_CANDIDATES_LIST_ITEM: \"CandidatesListItem\",\r\n OPPORTUNITIES_APPLICATIONS_LIST_ITEM: \"BOUserOpportunityApplicationsListItem\",\r\n OPPORTUNITIES_APPLICATIONS_FOLLOWUP_LIST_ITEM: \"BOUserOpportunityApplicationsFollowUpListItem\",\r\n OPPORTUNITIES_APPLICATIONS_FOLLOWUP_UPDATE_REPORT_FINANCIAL_INFO: \"BO_UpdateInternshipFinancialInformation\",\r\n\r\n BANKS_MENU: \"BanksMenu\",\r\n\r\n USER_MANAGEMENT_MENU: \"userManagementMenu\",\r\n USER_MANAGEMENT_BACKOFFICE_ITEM: \"backofficeUsersItem\",\r\n USER_MANAGEMENT_FRONTOFFICE_ITEM: \"frontofficeUsersItem\",\r\n\r\n INFORMATION_MENU: \"InformationDisseminationMenu\",\r\n INFORMATION_CREATE_ITEM: \"createInformationItem\",\r\n INFORMATION_LIST_ITEM: \"informationListItem\",\r\n\r\n DASHBOARD_ONGOING_APPLICATIONS: \"onGoingApplicationsDashboard\",\r\n DASHBOARD_STOCKS: \"stocksDashboard\",\r\n DASHBOARD_NEW_COMPANIES: \"validateNewCompaniesDashboard\",\r\n DASHBOARD_OPPORTUNITIES: \"opportunitiesDashboard\",\r\n DASHBOARD_NOTIFICATIONS: \"notificationsDashboard\",\r\n\r\n EXPORT_REPORTS: \"ExportReports\",\r\n};\r\n\r\nexport const UNITS = {\r\n MONETARY: \"Kz\",\r\n MONTHS: \"Meses\",\r\n INTEREST: \"%\",\r\n};\r\n\r\nexport const MONETARY_DECIMAL_SEPARATOR = {\r\n WEB: \",\",\r\n API: \".\",\r\n};\r\nexport const MONETARYUNITPLACEHOLDER = \"00\" + MONETARY_DECIMAL_SEPARATOR.WEB + \"00\";\r\n\r\nexport const REGEX_PATTERNS = {\r\n MONETARY: /^(\\d+(?:[,]\\d{1,2})?|)$/,\r\n EMAIL: /\\S+@\\S+\\.\\S+/,\r\n DATE: /^[0-9/]{0,10}$/\r\n};\r\n\r\nexport const COMPLEMENTARY_DATA_TYPE = {\r\n DATASET: 1,\r\n PLAIN_TEXT: 2,\r\n BOOLEAN: 3,\r\n DEFAULT_QUESTIONS: 4,\r\n};\r\n\r\n//SHAPE\r\nexport const SHAPE_PROGRAMS_TARGET = {\r\n AVANCO: 1,\r\n CAPACITA: 2,\r\n PROFESSIONAL_WALLET: 3,\r\n};\r\n\r\nexport const SCHEDULE_STATES = {\r\n SIM: \"Sim\",\r\n NAO: \"Não\",\r\n};\r\n\r\nexport const SUBPROGRAM_STATES = {\r\n CRIADO: 1,\r\n APROVADO: 2,\r\n CONCLUIDO: 3,\r\n PUBLICADO: 4,\r\n};\r\n\r\nexport const PAGINATION = {\r\n PAGE_SIZE: 15,\r\n PAGE_SIZE_MODAL_RESULT_TABLE: 10,\r\n PAGE_SIZE_DISSEMINATION: 12,\r\n PAGE_SIZE_DASHBOARD_NOTIFICATIONS: 6,\r\n FIRST_PAGE: 1,\r\n};\r\n\r\nexport const USER_TYPE = {\r\n INDIVIDUAL: 1,\r\n COLETIVO: 2,\r\n};\r\n\r\nexport const USER_TYPE_KEY = {\r\n INDIVIDUAL: \"Singular\",\r\n COLETIVO: \"Colective\",\r\n};\r\n\r\nexport const BENEFIT = {\r\n PROFESSIONAL_KIT: \"ProfessionalKit\",\r\n MICROCREDIT: \"Microcredit\",\r\n PROFESSIONAL_WALLET: \"ProfessionalWallet\",\r\n CAPACITA: \"Capacita\",\r\n AVANCO: \"Avanco\",\r\n PROFESSIONAL_INTERNSHIP: \"ProfessionalInternship\",\r\n PROFESSIONAL_KIT_MICROCREDIT: \"ProfessionalKitMicrocredit\",\r\n};\r\n\r\nexport const NOTIFICATION_RECIPIENT_TYPE = {\r\n CANDIDATE: \"notificationCandidate\",\r\n BO_USER: \"notificationBackOfficeUser\",\r\n BO_GROUP: \"notificationBackOfficeGroup\",\r\n};\r\n\r\nexport const ROLES_ORIGIN_APPLICATION = {\r\n BACKOFFICE: 1,\r\n FRONTOFFICE: 2,\r\n};\r\n\r\nexport const OPPORTUNITY_STATE_KEY = {\r\n SUBMETIDA: \"Submetida\",\r\n REJEITADA: \"Rejeitada\",\r\n APROVADA: \"Aprovada\",\r\n FECHADA: \"Fechada\",\r\n};\r\n\r\nexport const OPPORTUNITY_CANDIDATE_STATE_KEY = {\r\n EMRECRUTAMENTO: \"EmRecrutamento\",\r\n REJEITADA: \"Rejeitada\",\r\n APROVADA: \"Aprovada\",\r\n};\r\n\r\nexport const OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY = {\r\n PORINICIAR: \"PorIniciar\",\r\n ADECORRER: \"ADecorrer\",\r\n TERMINADO: \"Terminado\",\r\n};\r\n\r\nexport const OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY = {\r\n PORSUBMETER: \"AwaitingSubmission\",\r\n SUBMETIDO: \"Submitted\",\r\n VALIDADO: \"Validated\",\r\n REJEITADO: \"Rejected\",\r\n PAGO: \"Paid\",\r\n};\r\n\r\nexport const OPPORTUNITY_TYPE_KEY = {\r\n EMPREGO: \"Emprego\",\r\n ESTAGIO_PROFISSIONAL: \"EstagioProfissional\",\r\n};\r\n\r\nexport const OPPORTUNITY_TYPE_ID = {\r\n EMPREGO: 1,\r\n ESTAGIO_PROFISSIONAL: 2,\r\n};\r\n\r\nexport const FEEDBACK_REPORT_QUESTION_TYPE_KEY = {\r\n TEXT: \"Text\",\r\n STAR_CLASSIFICATION: \"StarClassification\",\r\n};\r\n\r\nexport const FEEDBACK_REPORT_TYPE_KEY = {\r\n OPPORTUNITY_FOLLOWUP_CANDIDATE: \"OpportunityApplicationCandidateFollowUp\",\r\n OPPORTUNITY_FOLLOWUP_COMPANY: \"OpportunityApplicationCompanyFollowUp\",\r\n};\r\n\r\nexport const FEEDBACK_REPORT_USER_TYPE_KEY = {\r\n COMPANY: \"Company\",\r\n INTERN: \"Intern\",\r\n};\r\n\r\nexport const INTERNSHIP_TYPE_KEY = {\r\n GERAL: \"Geral\",\r\n PAPE: \"PAPE\",\r\n RETFOP: \"RETFOP\",\r\n};\r\n\r\nexport const UPDATE_OPPORTUNITY_STATE_ACTION_TYPE = {\r\n APPROVE: 1,\r\n CLOSE: 2,\r\n REJECT: 3,\r\n};\r\n\r\nexport const OPPORTUNITY_MOTIVES_TYPE_KEY = {\r\n CLOSE: \"OpportunityCloseMotives\",\r\n REJECT: \"OpportunityRejectMotives\",\r\n};\r\n\r\nexport const REGISTRATION_CONSTS = {\r\n DATE_TIME_FORMAT: \"DD/MM/YYYY\",\r\n DATE_TIME_PLACEHOLDER: \"DD/MM/AAAA\",\r\n MIN_BIRTHDATE: \"31/12/1899\",\r\n MAX_LENGTH_ID_CARD: 14,\r\n MIN_LENGTH_PHONE_NUMBER: 100000000,\r\n MAX_LENGTH_PHONE_NUMBER: 999999999,\r\n MIN_LENGTH_PERCENTAGE: 0,\r\n MAX_LENGTH_PERCENTAGE: 100,\r\n};\r\n\r\nexport const SPECIAL_NEEDS_KEY = {\r\n NAO: \"SpecialNeeds_01\",\r\n INTELECTUAL: \"SpecialNeeds_02\",\r\n FISICA: \"SpecialNeeds_03\",\r\n SENSORIAL_VISUAL: \"SpecialNeeds_04\",\r\n SENSORIAL_AUDIBLE: \"SpecialNeeds_05\",\r\n};\r\n\r\nexport const APPLICATION_STATE_GROUP_KEY = {\r\n SUBMITTED: 1,\r\n TRIAGE: 2,\r\n ANALYSIS: 3,\r\n CONCLUDED: 4,\r\n};\r\n\r\nexport const APPLICATION_STATE_KEY = {\r\n AWAITING_BANK_INFORMATION: 10,\r\n REJECTED: 13,\r\n};\r\n\r\nexport const ROLE_KEY_VALUE = {\r\n BANCOS: \"Bancos\",\r\n EMPLOYMENT_AND_ENTREPRENEURSHIP_TECHNICAL_TEAM: \"EquipaTecnicaPelouroEmpregoEmpreendedorismo\",\r\n EMPLOYMENT_AND_ENTREPRENEURSHIP_MANAGEMENT_TEAM: \"EquipaGestaoPelouroEmpregoEmpreendedorismo\",\r\n};\r\n\r\nexport const FORM_FIELDS_PREFIX = {\r\n DOCUMENT: \"doc_\",\r\n COMPLEMENTARY_DATA: \"cd_\",\r\n FOLLOWUP_FEEDBACK_REPORT_DATA: \"ffd_\",\r\n};\r\n\r\nexport const COMPLEMENTARY_DATA_ANSWER_TYPE = {\r\n DATASET: 1,\r\n TEXT: 2,\r\n BOOLEAN: 3,\r\n};\r\n\r\nexport const REPORT_TYPES = {\r\n APPLICATION_DETAILS: \"ApplicationDetails\",\r\n APPLICATIONS_SEARCH_RESULTS: \"ApplicationsSearchResults\",\r\n LOANS_SEARCH_RESULTS: \"LoansSearchResults\",\r\n SCHEDULES_SEARCH_RESULTS: \"SchedulesSearchResults\",\r\n STOCKS_SEARCH_RESULTS: \"StocksSearchResults\",\r\n OPPORTUNITIES_SEARCH_RESULTS: \"OpportunitiesSearchResults\",\r\n OPPORTUNITY_APPLICATIONS_SEARCH_RESULTS: \"OpportunityApplicationsSearchResults\",\r\n};\r\n\r\nexport const REPORT_FILE_NAME = {\r\n APPLICATION_DETAILS: \"Detalhe_da_Candidatura_\",\r\n APPLICATIONS_SEARCH_RESULTS: \"Lista_de_Candidaturas_\",\r\n LOANS_SEARCH_RESULTS: \"Lista_de_Bancos_\",\r\n SCHEDULES_SEARCH_RESULTS: \"Lista_de_Agendamentos_\",\r\n STOCKS_SEARCH_RESULTS: \"Lista_de_Stocks_\",\r\n OPPORTUNITIES_SEARCH_RESULTS: \"Lista_de_Ofertas_\",\r\n OPPORTUNITY_APPLICATIONS_SEARCH_RESULTS: \"Lista_de_Candidaturas_a_Ofertas_\",\r\n\r\n PDF_EXTENSION: \".pdf\",\r\n EXCEL_EXTENSION: \".xlsx\",\r\n};\r\n\r\nexport const REPORT_CONSTS = {\r\n MAX_RESULTS: 1000,\r\n};\r\n\r\nexport const TABLE_STATE_CHIP_COLOR = {\r\n GREEN: 1,\r\n RED: 2,\r\n YELLOW: 3,\r\n DARK_ORANGE: 4,\r\n LIGHT_ORANGE: 5,\r\n BLUE: 6,\r\n};\r\n\r\nexport const APPLICATION_STATES_KEY = {\r\n SUBMETIDA: \"1\",\r\n AGUARDA_INFORMACAO: \"2\",\r\n AGUARDA_FORMACAO_EM_FALTA: \"3\",\r\n AGUARDA_ACEITACAO_FORMACAO: \"4\",\r\n AGUARDA_FORMACAO: \"5\",\r\n EM_ANALISE: \"6\",\r\n AGUARDA_VISITA: \"7\",\r\n AGUARDA_TESTE: \"8\",\r\n SUSPENSA: \"9\",\r\n AGUARDA_INFORMACAO_BANCO: \"10\",\r\n AGUARDA_AGENDAMENTO_ENTREGA_KIT: \"11\",\r\n ENTREGA_KIT_AGENDADA: \"12\",\r\n REJEITADA: \"13\",\r\n ACEITE: \"14\",\r\n CANCELADA: \"15\",\r\n AGUARDA_DECISAO: \"16\",\r\n AGUARDA_RESPOSTA_DA_EMPRESA: \"17\",\r\n};\r\n\r\nexport const APPLICATION_STATES_IN_PROGRESS = [\r\n APPLICATION_STATES_KEY.SUBMETIDA,\r\n APPLICATION_STATES_KEY.AGUARDA_INFORMACAO,\r\n APPLICATION_STATES_KEY.AGUARDA_FORMACAO_EM_FALTA,\r\n APPLICATION_STATES_KEY.AGUARDA_ACEITACAO_FORMACAO,\r\n APPLICATION_STATES_KEY.AGUARDA_FORMACAO,\r\n APPLICATION_STATES_KEY.EM_ANALISE,\r\n APPLICATION_STATES_KEY.AGUARDA_VISITA,\r\n APPLICATION_STATES_KEY.AGUARDA_TESTE,\r\n APPLICATION_STATES_KEY.SUSPENSA,\r\n APPLICATION_STATES_KEY.AGUARDA_INFORMACAO_BANCO,\r\n APPLICATION_STATES_KEY.AGUARDA_AGENDAMENTO_ENTREGA_KIT,\r\n APPLICATION_STATES_KEY.ENTREGA_KIT_AGENDADA,\r\n APPLICATION_STATES_KEY.AGUARDA_DECISAO,\r\n APPLICATION_STATES_KEY.AGUARDA_RESPOSTA_DA_EMPRESA,\r\n];\r\n\r\nexport const APPLICATION_STATES_CANCELED = [APPLICATION_STATES_KEY.REJEITADA, APPLICATION_STATES_KEY.CANCELADA];\r\n\r\nexport const APPLICATION_STATES_APPROVED = [APPLICATION_STATES_KEY.ACEITE];\r\n\r\nexport const FOLLOWUP_STATE_ID_QUERY = {\r\n NOTSTARTED: \"1\",\r\n ONGOING: \"2\",\r\n FINISHED: \"3\",\r\n};\r\n\r\nexport const HISTORY_ENTRY_TYPES = {\r\n COMENTARIO: \"Comment\",\r\n GERACAO_FORMULARIO_EXTRA: \"FeedbackReportAdHocCreated\",\r\n EMPREGO_APROVADO: \"FoUserEmploymentApplicationApproved\",\r\n PROGRAMA_GOVERNO_APROVADO: \"FoUserGovernmentProgramApplicationAccepted\",\r\n ESTAGIO_APROVADO: \"FoUserInternshipApplicationApproved\",\r\n ESTAGIO_INICIO: \"FOUserInternshipBegan\",\r\n ESTAGIO_FIM: \"FOUserInternshipEnded\",\r\n INSCRICAO: \"FOUserRegister\",\r\n ENTREGA_KIT_CONCLUIDA: \"KitDeliveryCompleted\",\r\n EMPRESTIMO_APROVADO: \"LoanApproved\",\r\n EMPRESTIMO_REJEITADO: \"LoanRejected\",\r\n NOTIFICACAO: \"Notification\",\r\n CANDIDATURA_ESTAGIO_APROVADA: \"OpportunityFollowUpCandidateApproved\",\r\n FORMULARIO_ENTREGUE_CANDIDATO: \"OpportunityFollowUpCandidateFeedbackReportDelivered\",\r\n FORMULARIO_ENTREGUE_EMPRESA: \"OpportunityFollowUpCompanyFeedbackReportDelivered\",\r\n CANDIDATURA_ESTAGIO_INICIO: \"OpportunityFollowUpInternshipBegan\",\r\n CANDIDATURA_ESTAGIO_FIM: \"OpportunityFollowUpInternshipEnded\",\r\n PERIODO_ESTAGIO_PAGO: \"OpportunityFollowUpInternshipPeriodPayment\",\r\n PERIODO_ESTAGIO_ATUALIZADO: \"OpportunityFollowUpInternshipPeriodUpdated\",\r\n AGENDAMENTO: \"Scheduling\",\r\n ALTERACAO_ESTADO: \"StateChange\",\r\n};\r\n\r\nexport const INFORMATION_DISSEMINATION_TYPE_KEYVALUE = {\r\n INFORMATION: \"information\",\r\n LEGISLATION: \"legislation\",\r\n SCHEDULE: \"schedule\",\r\n STRUCTURING_PROJECT: \"structuringProjects\",\r\n};\r\n\r\nexport const LOAN_STATES = {\r\n EM_APROVACAO: 1,\r\n REEMBOLSADO: 2,\r\n REJEITADO: 3,\r\n APROVADO: 4,\r\n};\r\n\r\nexport const IMAGE_TYPE = {\r\n URL: \"url\",\r\n BASE64: \"base64\",\r\n};\r\n","import React from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport ListItemText from \"@material-ui/core/ListItemText\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\n\r\n// @material-ui/icons components\r\nimport MenuIcon from \"@material-ui/icons/Menu\";\r\nimport ExpandLessIcon from \"@material-ui/icons/ExpandLess\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\nimport FiberManualRecordIcon from \"@material-ui/icons/FiberManualRecord\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/dropdowns/navbar-menu-dropdown.js\";\r\n\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { titles } from \"resources/resources\";\r\n\r\n//Redux\r\nimport { connect } from \"react-redux\";\r\n\r\nimport { OPERATIONS } from \"utils/consts\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction NavbarMenuDropdown({ ...props }) {\r\n const theme = useTheme();\r\n const classes = useStyles();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n\r\n const [anchorEl, setAnchorEl] = React.useState(null);\r\n const isMenuOpen = Boolean(anchorEl);\r\n\r\n const [openApplication, setOpenApplication] = React.useState(false);\r\n const [openProfKits, setOpenProfKits] = React.useState(false);\r\n const [openSubprogs, setOpenSubprogs] = React.useState(false);\r\n const [openUsers, setOpenUsers] = React.useState(false);\r\n const [openInformationDissemination, setOpenInformationDissemination] = React.useState(false);\r\n const [openOpportunity, setOpenOpportunity] = React.useState(false);\r\n\r\n const handleNavbarMenuOpen = (event) => {\r\n setAnchorEl(event.currentTarget);\r\n };\r\n\r\n const handleMenuClose = () => {\r\n setAnchorEl(null);\r\n setOpenApplication(false);\r\n setOpenProfKits(false);\r\n setOpenSubprogs(false);\r\n setOpenUsers(false);\r\n setOpenInformationDissemination(false);\r\n setOpenOpportunity(false);\r\n };\r\n\r\n const handleClickApplication = () => {\r\n setOpenApplication(!openApplication);\r\n };\r\n\r\n const handleClickProfKits = () => {\r\n setOpenProfKits(!openProfKits);\r\n };\r\n\r\n const handleClickSubprogs = () => {\r\n setOpenSubprogs(!openSubprogs);\r\n };\r\n\r\n const handleClickUsers = () => {\r\n setOpenUsers(!openUsers);\r\n };\r\n\r\n const handleClickInformationDissemination = () => {\r\n setOpenInformationDissemination(!openInformationDissemination);\r\n };\r\n\r\n const handleClickOpportunity = () => {\r\n setOpenOpportunity(!openOpportunity);\r\n };\r\n\r\n const menuId = \"dropdowns-navbar-menu-dropdown-id\";\r\n const renderMenu = (\r\n \r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_NavBarListMenu)}\r\n \r\n\r\n \r\n\r\n {/* Candidaturas */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.APPLICATIONS_MENU) && (\r\n <>\r\n \r\n \r\n {openApplication ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.APPLICATIONS_LIST_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/applications-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n\r\n {/* Agendamentos */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.SCHEDULES_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/schedules-management\");\r\n }}\r\n className={classes.listItemRoot}\r\n >\r\n \r\n \r\n )}\r\n\r\n {/* Kits Profissionais */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_MENU) && (\r\n <>\r\n \r\n \r\n {openProfKits ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_LIST_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/kit-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_CHARACTERIZE_KIT_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/characterize-kit\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_REGISTER_LOSS_KIT_ITEM) && (\r\n {\r\n handleMenuClose();\r\n props.handleRegisterLoss();\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_REGISTER_IN_WAREHOUSE_ITEM) && (\r\n {\r\n handleMenuClose();\r\n props.handleRegisterWarehouse();\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_STOCKS_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/stocks-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_DELIVERY_ITEM) && (\r\n {\r\n handleMenuClose();\r\n props.handleDeliverKit();\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n\r\n {/* Subprogramas */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.SUBPROGRAMS_MENU) && (\r\n <>\r\n \r\n \r\n {openSubprogs ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.SUBPROGRAMS_CHARACTERIZE_SUBPROGRAM_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/subprograms-create\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.SUBPROGRAMS_LIST_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/subprograms-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n\r\n {/* Emprego e Estágio */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_MENU) && (\r\n <>\r\n \r\n \r\n {openOpportunity ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_CREATE_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/opportunity-create\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_CANDIDATES_LIST_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/opportunity-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_APPLICATIONS_LIST_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/opportunity-applications-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_APPLICATIONS_FOLLOWUP_LIST_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/opportunity-applications-followup-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n\r\n {/* Bancos */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.BANKS_MENU) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/loans-management\");\r\n }}\r\n className={classes.listItemRoot}\r\n >\r\n \r\n \r\n )}\r\n\r\n {/* Gestão de Utilizadores */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_MENU) && (\r\n <>\r\n \r\n \r\n {openUsers ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_BACKOFFICE_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/backofficeusers-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_FRONTOFFICE_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/frontofficeusers-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n \r\n {/* Informação */}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.INFORMATION_MENU) && (\r\n <>\r\n \r\n \r\n {openInformationDissemination ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.INFORMATION_CREATE_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/informationdissemination-create\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.INFORMATION_LIST_ITEM) && (\r\n {\r\n handleMenuClose();\r\n history.push(\"/admin/informationdissemination-management\");\r\n }}\r\n className={classes.nestedItem}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_NavBarMenu)}\r\n \r\n \r\n {renderMenu}\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({\r\n ...state,\r\n});\r\nexport default connect(mapStateToProps, {})(NavbarMenuDropdown);\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\nimport hexToRgb from \"assets/theme/hex-to-rgb.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n appBarRoot: {\r\n position: \"fixed\",\r\n height: \"72px\",\r\n borderBottom:\r\n \"1px solid rgba(\" + hexToRgb(theme.palette.white.main) + \", 0.08)\",\r\n backgroundColor: theme.palette.white.main,\r\n zIndex: \"1299\",\r\n boxShadow: \"0px -5px 15px black\",\r\n },\r\n brandTitle: {\r\n textTransform: \"uppercase\",\r\n margin: \"0\",\r\n color: theme.palette.white.main,\r\n [theme.breakpoints.down(\"md\")]: {\r\n display: \"none\",\r\n },\r\n },\r\n searchBoxShow: {\r\n display: \"flex!important\",\r\n marginRight: \"0\",\r\n \"& div:first-of-type\": {\r\n flex: 1,\r\n },\r\n },\r\n searchBox: {\r\n borderColor: theme.palette.adminNavbarSearch.main,\r\n borderRadius: \"2rem\",\r\n border: \"2px solid\",\r\n backgroundColor: \"rgba(\" + hexToRgb(theme.palette.white.main) + \",0.9)\",\r\n boxShadow: boxShadows.inputBoxShadow,\r\n transition: \"box-shadow .15s ease\",\r\n [theme.breakpoints.down(\"xs\")]: {\r\n display: \"none\",\r\n width: \"100%\",\r\n },\r\n },\r\n searchIcon: {\r\n color: theme.palette.gray[800],\r\n marginRight: \"0.5rem\",\r\n marginLeft: \"1rem\",\r\n },\r\n searchClose: {\r\n color: theme.palette.gray[800],\r\n marginRight: \"1rem\",\r\n marginLeft: \"-.5rem\",\r\n },\r\n searchInput: {\r\n color: theme.palette.gray[900],\r\n width: \"270px\",\r\n backgroundColor: \"initial\",\r\n border: 0,\r\n boxShadow: \"none\",\r\n padding: \"0\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"xl\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n [theme.breakpoints.down(\"lg\")]: {\r\n paddingLeft: \"10px\",\r\n paddingRight: \"10px\",\r\n },\r\n },\r\n marginLeftAuto: {\r\n [theme.breakpoints.down(\"sm\")]: {\r\n marginLeft: \"auto\",\r\n },\r\n },\r\n marginLeftNone: {\r\n [theme.breakpoints.down(\"sm\")]: {\r\n marginLeft: \"unset\",\r\n },\r\n },\r\n displayNone: {\r\n [theme.breakpoints.down(\"xs\")]: {\r\n display: \"none\",\r\n },\r\n },\r\n menuItems: {\r\n widht: \"795px\",\r\n height: \"28px\",\r\n borderRadius: \"0px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n padding: \"0px\",\r\n position: \"absolute\",\r\n left: \"23.71%\",\r\n //right: \"2.08%\",\r\n top: \"25.28px\",\r\n bottom: \"95.21%\",\r\n \"&. MuiPaper-root\": {\r\n width: \"700px\",\r\n height: \"500px\",\r\n },\r\n \"& .MuiDialog-paper\": {\r\n width: \"700px\",\r\n height: \"500px\",\r\n },\r\n \"& .MuiDialog-paperScrollPaper\": {\r\n width: \"700px\",\r\n height: \"500px\",\r\n },\r\n \"& .MuiDialog-paperWidthSm\": {\r\n width: \"700px\",\r\n height: \"500px\",\r\n },\r\n },\r\n listItemRoot: {\r\n cursor: \"pointer\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"12px\",\r\n lineHeight: \"19.07px\",\r\n paddingLeft: \"0.5rem\",\r\n paddingRight: \"0.25rem\",\r\n paddingTop: \".625rem\",\r\n paddingBottom: \".625rem\",\r\n transition: \"all .15s linear\",\r\n color: theme.palette.gray[900],\r\n margin: \"0\",\r\n \"& i\": {\r\n marginRight: \"0.25rem\",\r\n },\r\n [theme.breakpoints.up(\"xl\")]: {\r\n marginLeft: \"1.5rem\",\r\n paddingLeft: \"0\",\r\n paddingRight: \"0.5rem\",\r\n paddingTop: \"1rem\",\r\n paddingBottom: \"1rem\",\r\n justifyContent: \"center\",\r\n \"&:hover\": {\r\n fontWeight: \"900\",\r\n color: theme.palette.primary.greyBlue,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n },\r\n \"&:active\": {\r\n color: theme.palette.primary.darkBlue,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.darkBlue,\r\n },\r\n },\r\n },\r\n [theme.breakpoints.down(\"lg\")]: {\r\n paddingLeft: \"0.5rem\",\r\n paddingRight: \"0.5rem\",\r\n paddingTop: \"1rem\",\r\n paddingBottom: \"1rem\",\r\n justifyContent: \"center\",\r\n \"&:hover\": {\r\n fontWeight: \"900\",\r\n color: theme.palette.primary.greyBlue,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n },\r\n \"&:active\": {\r\n color: theme.palette.primary.darkBlue,\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.darkBlue,\r\n },\r\n },\r\n },\r\n },\r\n loginButton: {\r\n left: \"0%\",\r\n right: \"0%\",\r\n top: \"0%\",\r\n bottom: \"0%\",\r\n width: \"142px\",\r\n height: \"43px\",\r\n \r\n fontStyle: \" normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n // color: theme.palette.info.main,\r\n // background: theme.palette.white.main,\r\n color: theme.palette.white.main,\r\n background: theme.palette.info.grey,\r\n boxShadow: \"0px 0px 32px rgba(136, 152, 170, 0.15)\",\r\n \"&:hover\": {\r\n color: theme.palette.gray[900],\r\n borderColor: theme.palette.white.main + \"!important\",\r\n backgroundColor: theme.palette.white.main,\r\n },\r\n },\r\n line: {\r\n width: \"42px\",\r\n height: \"0px\",\r\n left: \"1050px\",\r\n top: \"50px\",\r\n border: \"1px solid rgba(255, 255, 255, 0.5)\",\r\n transform: \"rotate(90deg)\",\r\n backgroundColor: theme.palette.primary.mediumBlue,\r\n },\r\n dropIcon: {\r\n minWidth: \"0px\",\r\n },\r\n box: {\r\n position: \"absolute\",\r\n height: \"72px\",\r\n width: \"180px\",\r\n color: theme.palette.white.main,\r\n background: theme.palette.info.grey,\r\n left: \"0%\",\r\n top: \"0%\",\r\n },\r\n cardRoot: {\r\n width: \"718px\",\r\n height: \"571px\",\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n border: \"0!important\",\r\n backgroundColor: theme.palette.gray[600],\r\n },\r\n cardHeader: {\r\n backgroundColor: \"initial\",\r\n },\r\n cardContent: {\r\n width: \"718px\",\r\n height: \"571px\",\r\n [theme.breakpoints.up(\"md\")]: {\r\n padding: \"3rem\",\r\n },\r\n },\r\n buttonImg: {\r\n verticalAlign: \"middle\",\r\n borderStyle: \"none\",\r\n },\r\n buttonRoot: {\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.primary.main,\r\n boxShadow: boxShadows.buttonBoxShadowNeutral,\r\n borderColor: theme.palette.white.main + \"!important\",\r\n \"&:hover\": {\r\n color: theme.palette.gray[900],\r\n borderColor: theme.palette.white.main + \"!important\",\r\n backgroundColor: theme.palette.white.main,\r\n },\r\n },\r\n boxHeader: {\r\n color: theme.palette.primary.mediumBlue,\r\n fontSize: \"14px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n lineHeight: \"19px\",\r\n letterSpacing: \"0em\",\r\n textAlign: \"left\",\r\n },\r\n recoverButton: {\r\n width: \"200px\",\r\n height: \"50px\",\r\n marginTop: \"58px\",\r\n marginBottom: \"-50px\",\r\n color: theme.palette.white.main,\r\n background: theme.palette.info.grey,\r\n boxShadow: \"0px 0px 32px rgba(136, 152, 170, 0.15)\",\r\n },\r\n formControlLabelRoot: {\r\n position: \"relative\",\r\n display: \"flex\",\r\n minHeight: \"1.5rem\",\r\n WebkitPrintColorAdjust: \"exact\",\r\n },\r\n formControlLabelLabel: {\r\n cursor: \"pointer\",\r\n fontSize: \".875rem\",\r\n position: \"relative\",\r\n verticalAlign: \"top\",\r\n display: \"inline-block\",\r\n color: theme.palette.gray[600],\r\n },\r\n footerLinks: {\r\n color: theme.palette.gray[400],\r\n textDecoration: \"none\",\r\n fontSize: \"80%\",\r\n },\r\n modalSentRecover: {\r\n maxWidth: \"718px\",\r\n width: \"718px\",\r\n height: \"571px\",\r\n position: \"absolute\",\r\n marginLeft: \"25.07%\",\r\n marginRight: \"25.07%\",\r\n marginBottom: \"31.35%\",\r\n },\r\n modalDeliverKit: {\r\n width: \"80%\",\r\n position: \"relative\",\r\n marginLeft: \"10.07%\",\r\n marginRight: \"10.07%\",\r\n marginTop: \"0%\",\r\n },\r\n modalWarehouse: {\r\n maxWidth: \"718px\",\r\n width: \"718px\",\r\n position: \"relative\",\r\n marginLeft: \"25.07%\",\r\n marginRight: \"25.07%\",\r\n marginTop: \"0%\",\r\n },\r\n modalRecoverSentHeader: {\r\n width: \"527px\",\r\n marginTop: \"100px\",\r\n marginLeft: \"-5%\",\r\n \r\n fontSize: \"40px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"700\",\r\n lineHeight: \"47px\",\r\n letterSpacing: \"0em\",\r\n textAlign: \"center\",\r\n color: theme.palette.info.grey,\r\n },\r\n modalRecoverSentText: {\r\n marginTop: \"25px\",\r\n \r\n fontSize: \"18px\",\r\n fontStyle: \"normal\",\r\n lineHeight: \"21px\",\r\n letterSpacing: \"0em\",\r\n textAlign: \"center\",\r\n color: theme.palette.info.grey,\r\n },\r\n modalCloseButton: {\r\n marginLeft: \"90%\",\r\n },\r\n elipse: {\r\n widht: \"90px\",\r\n height: \"90px\",\r\n position: \"absolute\",\r\n left: \"41.41%\",\r\n right: \"41.41%\",\r\n top: \"0.33%\",\r\n bottom: \"50.64%\",\r\n borderRadius: \"200px\",\r\n border: \"4px solid \" + theme.palette.gray[300],\r\n boxSizing: \"border-box\",\r\n },\r\n logoInfo: {\r\n position: \"absolute\",\r\n right: \"49%\",\r\n top: \"-25%\",\r\n bottom: \"57.64%\",\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"60px\",\r\n lineHeight: \"82px\",\r\n /* identical to box height */\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.gray[300],\r\n },\r\n dropMenu: {\r\n zIndex: \"1000\"\r\n },\r\n dropItems: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"13px\",\r\n lineHeight: \"220%\",\r\n color: theme.palette.gray[900],\r\n \"&:hover\": {\r\n color: theme.palette.white.main,\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n fontWeight: \"900\"\r\n },\r\n \"&:active\": {\r\n color: theme.palette.white.main,\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n fontWeight: \"900\"\r\n },\r\n },\r\n modalHeader: {\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"30px\",\r\n lineHeight: \"35px%\",\r\n textAlign: \"center\",\r\n color: theme.palette.primary.mediumBlue,\r\n },\r\n modalTitles: {\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n color: theme.palette.primary.mediumBlue,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n },\r\n modalSubmitButton: {\r\n marginLeft: \"230px\",\r\n marginTop: \"100px\",\r\n height: \"43px\",\r\n width: \"201px\",\r\n backgroundColor: theme.palette.primary.mediumBlue,\r\n color: theme.palette.white.main,\r\n boxShadow: boxShadows.buttonBoxShadowNeutral,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.mediumBlue,\r\n },\r\n },\r\n modalWarehouseSubmitButton: {\r\n marginLeft: \"230px\",\r\n marginBottom: \"20px\",\r\n height: \"43px\",\r\n width: \"201px\",\r\n backgroundColor: theme.palette.primary.mediumBlue,\r\n color: theme.palette.white.main,\r\n boxShadow: boxShadows.buttonBoxShadowNeutral,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.mediumBlue,\r\n },\r\n },\r\n modalResult: {\r\n position: \"absolute\",\r\n top: \"0%\",\r\n bottom: \"-11.46%\",\r\n backgroundColor: theme.palette.white.main,\r\n borderRadius: \"5px\",\r\n width: \"512px\",\r\n height: \"350px\",\r\n marginTop: \"150px\"\r\n },\r\n modalResultClose: {\r\n marginLeft: \"90%\",\r\n },\r\n modalResultHeader: {\r\n \r\n fontStyle: \"normal\",\r\n lineHeight: \"33px\",\r\n fontSize: \"24px\",\r\n fontWeight: \"600\",\r\n textAlign: \"center\",\r\n marginBottom: \"1.5rem\",\r\n marginTop: \"5rem\",\r\n color: theme.palette.dark.main,\r\n },\r\n modalResultIcon: {\r\n marginRight: \"8px\",\r\n color: theme.palette.success.main,\r\n width: \"88px\",\r\n height: \"88px\",\r\n /* align-self: center; */\r\n position: \"absolute\",\r\n left: \"41.41%\",\r\n right: \"41.41%\",\r\n top: \"14.33%\",\r\n bottom: \"57.64%\",\r\n boxSizing: \"border-box\",\r\n },\r\n cardContentKitCharacterizationResult: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n padding: \"3rem\",\r\n },\r\n },\r\n modalErrorResultIcon: {\r\n marginRight: \"8px\",\r\n color: theme.palette.error.main,\r\n width: \"88px\",\r\n height: \"88px\",\r\n /* align-self: center; */\r\n position: \"absolute\",\r\n left: \"41.41%\",\r\n right: \"41.41%\",\r\n top: \"14.33%\",\r\n bottom: \"57.64%\",\r\n boxSizing: \"border-box\",\r\n },\r\n modalButton: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.info.main +\r\n \",\" +\r\n theme.palette.primary.mediumBlue +\r\n \")\",\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n alignItems: \"center\",\r\n },\r\n modalOkButton: {\r\n marginLeft: \"173px\",\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.info.main +\r\n \",\" +\r\n theme.palette.primary.mediumBlue +\r\n \")\",\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n \r\n },\r\n logo: {\r\n width: \"120px\",\r\n height: \"auto\",\r\n marginRight: \"0.25rem\",\r\n [theme.breakpoints.down(\"xs\")]: {\r\n marginRight: \"0.5rem\",\r\n },\r\n },\r\n centeredButton: {\r\n marginRight: \"auto\", \r\n marginLeft: \"auto\", \r\n display: \"block\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\n//style\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function GenericButton(props) {\r\n const classes = { ...useStylesGeneric() };\r\n return (\r\n <>\r\n \r\n {props.children}\r\n {props.loading && (\r\n \r\n )}\r\n \r\n \r\n );\r\n}","import {\r\n getDataSetByName,\r\n getPrograms,\r\n getSubprogramStates,\r\n getDepartments,\r\n getCategories,\r\n getActiveCategories,\r\n getInactiveCategories,\r\n getWarehousesByProvince,\r\n getDocuments,\r\n getConditions,\r\n getNextApplicationStates,\r\n getSubprograms,\r\n getBackOfficeUsers,\r\n getBackOfficeRoles,\r\n getShapePrograms,\r\n getShapeSubsites,\r\n getLoanStates,\r\n getNotAssignedActiveCategories,\r\n getSubprogramByProgramId,\r\n getPredefinedQuestions,\r\n getAvailableInternshipOpportunities,\r\n getGovernmentPrograms\r\n} from \"crud/datasets.crud\";\r\n\r\nimport { DATASET_ACTIONS } from \"utils/actionsConsts\";\r\nimport { DATASET } from \"utils/consts\";\r\n\r\nexport const clearDataSetByNameAction = (name) => async (dispatch) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.CLEAR_DATASET_BY_NAME,\r\n result: true,\r\n dataSetName: name,\r\n });\r\n};\r\n\r\nexport const getDataSetByNameAction = (name, parentKeyValue) => async (dispatch) => {\r\n getDataSetByName(name, parentKeyValue)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_DATASET_BY_NAME,\r\n result: true,\r\n payload: res.data.map((item) => {\r\n return {\r\n code: item.id,\r\n label: item.value,\r\n keyValue: item.keyValue,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch(() => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_DATASET_BY_NAME,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n });\r\n};\r\n\r\nexport const getProgramsAction = (name, governmentProgramId) => async (dispatch) => {\r\n getPrograms(governmentProgramId)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_PROGRAMS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_PROGRAMS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getSubprogramStatesAction = (name) => async (dispatch) => {\r\n getSubprogramStates()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SUBPROGRAM_STATES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SUBPROGRAM_STATES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\nexport const getDepartmentsAction = (name) => async (dispatch) => {\r\n getDepartments()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_DEPARTMENTS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_DEPARTMENTS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\nexport const getNotAssignedActiveCategoriesAction = (name) => async (dispatch) => {\r\n getNotAssignedActiveCategories()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_NOT_ASSIGNED_ACTIVE_CATEGORIES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_NOT_ASSIGNED_ACTIVE_CATEGORIES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\nexport const getInactiveCategoriesAction = (name) => async (dispatch) => {\r\n getInactiveCategories()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_INACTIVE_CATEGORIES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_INACTIVE_CATEGORIES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\nexport const getActiveCategoriesAction = (name) => async (dispatch) => {\r\n getActiveCategories()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_ACTIVE_CATEGORIES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_ACTIVE_CATEGORIES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\nexport const getCategoriesAction = (name) => async (dispatch) => {\r\n getCategories()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_CATEGORIES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_CATEGORIES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\n\r\nexport const getDocumentsAction = (name) => async (dispatch) => {\r\n getDocuments()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_DOCUMENTS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_DOCUMENTS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getWarehousesByProvinceAction = (name, province) => async (dispatch) => {\r\n getWarehousesByProvince(province)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_WAREHOUSE_BY_PROVINCE,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.name,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_WAREHOUSE_BY_PROVINCE,\r\n result: false,\r\n payload: null,\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getConditionsAction = (name) => async (dispatch) => {\r\n getConditions()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_CONDITIONS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_CONDITIONS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getNextApplicationStatesAction = (name, formData) => async (dispatch) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.CLEAR_DATASET_BY_NAME,\r\n result: true,\r\n dataSetName: name,\r\n });\r\n getNextApplicationStates(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_NEXT_APPLICATION_STATES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n group: child.group,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_NEXT_APPLICATION_STATES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getSubprogramsAction = (name) => async (dispatch) => {\r\n getSubprograms()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SUBPROGRAMS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SUBPROGRAMS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getBackOfficeUsersAction = (name) => async (dispatch) => {\r\n getBackOfficeUsers()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_BO_USERS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_BO_USERS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getBackOfficeRolesAction = (name) => async (dispatch) => {\r\n getBackOfficeRoles()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_BO_ROLES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.roleKeyValue,\r\n label: child.name,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_BO_ROLES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getShapeProgramsAction = (target, name) => async (dispatch) => {\r\n getShapePrograms(target)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SHAPE_PROGRAMS,\r\n result: true,\r\n dataSet: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.name,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SHAPE_PROGRAMS,\r\n result: false,\r\n dataSet: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getShapeSubsitesAction = (offer, province, name) => async (dispatch) => {\r\n getShapeSubsites(offer, province)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SHAPE_SUBSITES,\r\n result: true,\r\n dataSet: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.name,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SHAPE_SUBSITES,\r\n result: false,\r\n dataSet: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getLoanStatesAction = (name) => async (dispatch) => {\r\n getLoanStates()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_LOAN_STATES,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_LOAN_STATES,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getSubprogramByProgramIdAction = (name, program) => async (dispatch) => {\r\n getSubprogramByProgramId(program)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SUBPROGRAM_BY_PROGRAM,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_SUBPROGRAM_BY_PROGRAM,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getPredefinedQuestionsAction = (name) => async (dispatch) => {\r\n getPredefinedQuestions()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_PREDEFINED_QUESTIONS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.description,\r\n referenceDataSetId: child.referenceDataSetId,\r\n referenceDataSetDescription: child.referenceDataSetDescription,\r\n referenceDataSetName: child.referenceDataSetName,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_PREDEFINED_QUESTIONS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(error);\r\n });\r\n};\r\n\r\nexport const getAvailableInternshipOpportunitiesAction =\r\n (name, province, professionalCategory, internshipType) => async (dispatch) => {\r\n getAvailableInternshipOpportunities(province, professionalCategory, internshipType)\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_AVAILABLE_INTERNSHIP_OPPORTUNITIES_ACTIONS,\r\n result: true,\r\n payload: res?.data.map((record) => {\r\n return {\r\n code: record.id,\r\n label: record.title,\r\n };\r\n }),\r\n dataSetName: name,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_AVAILABLE_INTERNSHIP_OPPORTUNITIES_ACTIONS,\r\n result: false,\r\n payload: [],\r\n dataSetName: name,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\n\r\n export const getGovernmentProgramsAction = () => async (dispatch) => {\r\n console.log('here')\r\n getGovernmentPrograms()\r\n .then((res) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_GOVERNMENT_PROGRAMS,\r\n result: true,\r\n payload: res.data.map((child) => {\r\n return {\r\n code: child.id,\r\n label: child.value,\r\n };\r\n }),\r\n dataSetName: DATASET.GOVERNMENT_PROGRAMS,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DATASET_ACTIONS.GET_GOVERNMENT_PROGRAMS,\r\n result: false,\r\n payload: [],\r\n dataSetName: DATASET.GOVERNMENT_PROGRAMS,\r\n });\r\n console.log(error);\r\n });\r\n };\r\n\r\nexport default getDataSetByNameAction;\r\n","import axios from \"axios\";\r\nimport { EXTERNAL_API_URL, INTERNAL_API_URL } from \"../index\";\r\nimport { ROLES_ORIGIN_APPLICATION } from \"utils/consts\";\r\n\r\nexport const GET_DATASET_BY_NAME_URL = \"DataSets/GetDataSet\";\r\nexport const GET_PROGRAMS_URL = \"Programs/get-all-programs\";\r\nexport const GET_SUBPROGRAMS_URL = \"SubPrograms/get-all-subprograms\";\r\nexport const GET_DEPARTMENTS_URL = \"Department/get-all-departments\";\r\nexport const GET_CATEGORIES_URL = \"Categories/get-all-categories\";\r\nexport const GET_ACTIVE_CATEGORIES_URL = \"Categories/get-active-categories\";\r\nexport const GET_NOT_ASSIGNED_ACTIVE_CATEGORIES_URL = \"Categories/get-not-assigned-active-categories\";\r\nexport const GET_INACTIVE_CATEGORIES_URL = \"Categories/get-inactive-categories\"\r\nexport const GET_LOSS_BREAK_MOTIVES_URL = \"Stock/get-all-motives\";\r\nexport const GET_WAREHOUSE_BY_PROVINCE_URL = \"Warehouses/get-warehouse\";\r\nexport const GET_DOCUMENTS_URL = \"Documents/getDocuments\";\r\nexport const GET_CONDITIONS_URL = \"Conditions/getConditions\";\r\nexport const GET_NEXT_APPLICATION_STATES_URL = \"Applications/get-next-application-states\";\r\nexport const GET_SUBPROGRAM_STATES_URL = \"Subprograms/get-all-subprogram-states\"\r\nexport const GET_BACKOFFICE_USERS_URL = \"User/get-all-backoffice-users\";\r\nexport const GET_BACKOFFICE_ROLES_URL = \"Roles/getAllRoles\";\r\nexport const GET_SHAPE_PROGRAMS_URL = \"ExternalServices/get-shape-programs\"\r\nexport const GET_SHAPE_SUBSITES_URL = \"ExternalServices/get-shape-subsites\"\r\nexport const GET_LOAN_STATES_URL = \"Loans/get-all-loan-states\"\r\nexport const GET_SUBPROGRAMS_BY_PROGRAM_URL = \"SubPrograms/get-all-subprograms?programId=\"\r\nexport const GET_ALL_PREDEFINED_QUESTIONS =\"PredefinedDataSet/get-all-predefined-question\"\r\nexport const GET_AVAILABLE_INTERNSHIPS_OPPORTUNITY_URL = \"opportunity/get-available-internship-opportunities\";\r\nexport const GET_GOVERNMENT_PROGRAMS_URL = \"GovernmentPrograms/get-governmentprograms\";\r\n\r\nexport function getShapePrograms(target, province) {\r\n return axios.get(EXTERNAL_API_URL + GET_SHAPE_PROGRAMS_URL, {\r\n params: {\r\n SearchTarget: target,\r\n IdProvincia: province\r\n }\r\n });\r\n}\r\n\r\nexport function getShapeSubsites(offer, province) {\r\n return axios.get(EXTERNAL_API_URL + GET_SHAPE_SUBSITES_URL, {\r\n params: {\r\n OfferId: offer,\r\n ProvinceId: province\r\n }\r\n });\r\n}\r\n\r\n\r\nexport function getDataSetByName(name, parentKeyValue) {\r\n return axios.get(EXTERNAL_API_URL + GET_DATASET_BY_NAME_URL, {\r\n params: {\r\n name: name,\r\n parentKeyValue: parentKeyValue\r\n },\r\n });\r\n}\r\n\r\nexport function getPrograms(governmentProgramId) {\r\n return axios.get(EXTERNAL_API_URL + GET_PROGRAMS_URL, {\r\n params: {\r\n governmentProgramId: governmentProgramId,\r\n }\r\n });\r\n}\r\n\r\nexport function getSubprogramStates() {\r\n return axios.get(INTERNAL_API_URL + GET_SUBPROGRAM_STATES_URL);\r\n}\r\n\r\nexport function getDepartments() {\r\n return axios.get(EXTERNAL_API_URL + GET_DEPARTMENTS_URL);\r\n}\r\n\r\nexport function getCategories() {\r\n return axios.get(INTERNAL_API_URL + GET_CATEGORIES_URL);\r\n}\r\n\r\nexport function getActiveCategories() {\r\n return axios.get(INTERNAL_API_URL + GET_ACTIVE_CATEGORIES_URL);\r\n}\r\nexport function getInactiveCategories() {\r\n return axios.get(INTERNAL_API_URL + GET_INACTIVE_CATEGORIES_URL);\r\n}\r\nexport function getNotAssignedActiveCategories() {\r\n return axios.get(INTERNAL_API_URL + GET_NOT_ASSIGNED_ACTIVE_CATEGORIES_URL);\r\n}\r\n\r\nexport function getWarehousesByProvince(province) {\r\n return axios.get(INTERNAL_API_URL + GET_WAREHOUSE_BY_PROVINCE_URL, {\r\n params: {\r\n provinceKeyValue: province\r\n }\r\n });\r\n}\r\n\r\nexport function getDocuments() {\r\n return axios.get(EXTERNAL_API_URL + GET_DOCUMENTS_URL);\r\n}\r\n\r\nexport function getConditions() {\r\n return axios.get(EXTERNAL_API_URL + GET_CONDITIONS_URL);\r\n}\r\n\r\nexport function getNextApplicationStates(formData) {\r\n return axios.get(EXTERNAL_API_URL + GET_NEXT_APPLICATION_STATES_URL, {\r\n params: {\r\n applicationStateId: formData?.applicationStateId,\r\n benefitId: formData?.benefitId,\r\n },\r\n });\r\n}\r\n\r\nexport function getSubprograms() {\r\n return axios.get(INTERNAL_API_URL + GET_SUBPROGRAMS_URL);\r\n}\r\n\r\nexport function getSubprogramByProgramId(id) {\r\n return axios.get(INTERNAL_API_URL + GET_SUBPROGRAMS_BY_PROGRAM_URL + id);\r\n}\r\n\r\nexport function getBackOfficeUsers() {\r\n return axios.get(INTERNAL_API_URL + GET_BACKOFFICE_USERS_URL);\r\n}\r\n\r\nexport function getBackOfficeRoles() {\r\n return axios.get(INTERNAL_API_URL + GET_BACKOFFICE_ROLES_URL, {\r\n params: {\r\n originApplication: ROLES_ORIGIN_APPLICATION.BACKOFFICE\r\n }\r\n });\r\n}\r\n\r\nexport function getLoanStates() {\r\n return axios.get(INTERNAL_API_URL + GET_LOAN_STATES_URL);\r\n}\r\n\r\nexport function getPredefinedQuestions() {\r\n return axios.get(INTERNAL_API_URL + GET_ALL_PREDEFINED_QUESTIONS);\r\n}\r\n\r\nexport function getAvailableInternshipOpportunities(province, professionalCategory, internshipType) {\r\n return axios.get(INTERNAL_API_URL + GET_AVAILABLE_INTERNSHIPS_OPPORTUNITY_URL, {\r\n params: {\r\n provinceId:province,\r\n professionalCategoryId:professionalCategory,\r\n internshipTypeKeyValue:internshipType\r\n }\r\n });\r\n}\r\n\r\nexport function getGovernmentPrograms() {\r\n return axios.get(EXTERNAL_API_URL + GET_GOVERNMENT_PROGRAMS_URL);\r\n}","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { connect } from \"react-redux\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { clearDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\n\r\nfunction FormSelect({\r\n control,\r\n fieldName,\r\n selectOptions,\r\n initialLabel,\r\n getValues,\r\n setValue,\r\n required,\r\n requiredMessage,\r\n loadChildrenDataSet,\r\n childrenDataSet,\r\n childrenSelect,\r\n grandchildrenSelect,\r\n childrenList,\r\n classes,\r\n disabled,\r\n onOptionChange,\r\n trigger,\r\n handleSetFilter,\r\n filterListKey,\r\n ...props\r\n}) {\r\n const theme = useTheme();\r\n\r\n const fieldVal = (name) => {\r\n const value = getValues(name);\r\n return value ? value : null;\r\n };\r\n\r\n return (\r\n (\r\n option.label}\r\n getOptionSelected={(option, value) => option.code === value.code}\r\n disabled={disabled !== undefined ? disabled : false}\r\n data-testid={\"form-select-\" + name}\r\n classes={{\r\n inputRoot: clsx({\r\n [classes.selectBorderWarningInputRoot]: !!error,\r\n }),\r\n }}\r\n renderInput={(params) => (\r\n \r\n )}\r\n onChange={(_, data) => {\r\n onChange(data);\r\n if (loadChildrenDataSet !== undefined) {\r\n if (data != null) loadChildrenDataSet(childrenDataSet, data.keyValue ?? data.code, true);\r\n else props.clearDataSetByName(childrenDataSet);\r\n }\r\n if (onOptionChange !== undefined) {\r\n onOptionChange(data);\r\n }\r\n if (childrenDataSet !== undefined) {\r\n setValue(childrenSelect, null);\r\n if (trigger !== undefined) trigger(childrenSelect);\r\n }\r\n if (handleSetFilter) {\r\n handleSetFilter(filterListKey, data ? data.code : null, [childrenSelect, grandchildrenSelect]);\r\n }\r\n\r\n if (childrenList?.length > 0 && loadChildrenDataSet !== undefined) {\r\n childrenList?.forEach((child) => {\r\n if (data != null) loadChildrenDataSet(child.dataset, data.keyValue ?? data.code, true);\r\n else props.clearDataSetByName(child.dataset);\r\n\r\n if (child.dataset !== undefined) {\r\n setValue(child.name, null);\r\n if (trigger !== undefined) trigger(child.name);\r\n }\r\n if (handleSetFilter) {\r\n handleSetFilter(filterListKey, data ? data.code : null, [child.name]);\r\n }\r\n });\r\n }\r\n }}\r\n />\r\n )}\r\n name={fieldName}\r\n rules={{\r\n required: {\r\n value: required,\r\n message: requiredMessage,\r\n },\r\n }}\r\n control={control}\r\n />\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FormSelect);\r\n","export const getSelectOptionsElementByCode = (array, uniqueField) => {\r\n if (!array) return null;\r\n return array.find((x) => x.code === uniqueField);\r\n};\r\n\r\nexport const getBoolSelectOptionsElementByCode = (array, uniqueField) => {\r\n return array.find((x) => x.code === uniqueField);\r\n};\r\n\r\nexport const getSelectOptionsElementByKey = (array, uniqueField) => {\r\n if (!array) return null;\r\n return array.find((x) => x.keyValue === uniqueField);\r\n};\r\n\r\nexport const getMultipleSelectOptionsElementByLabel = (array, values) => {\r\n if (!array || !values) return null;\r\n const toReturn = [];\r\n values.forEach((t) => {\r\n let toPush = array.find((x) => x.label === t);\r\n if (toPush) toReturn.push(toPush);\r\n });\r\n return toReturn;\r\n};\r\n\r\nexport const getMultipleSelectOptionsElementByCode = (array, values) => {\r\n if (!array || !values) return null;\r\n\r\n const toReturn = array.filter((item) => {\r\n return values.some((value) => value === item.code);\r\n });\r\n\r\n return toReturn;\r\n};\r\n","import { React, useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { messages } from \"resources/resources\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n// @material-ui/icons components\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport {\r\n getDataSetByNameAction,\r\n getWarehousesByProvinceAction,\r\n getActiveCategoriesAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { getUnitValueByCategoryAction } from \"redux/actions/stockAction\";\r\nimport { DATASET, UNITS } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\"\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralData(props) {\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const { control } = useFormContext();\r\n const [totalValue, setTotalValue] = useState(\"0\");\r\n\r\n useEffect(() => {\r\n props.getActiveCategories(DATASET.ACTIVE_CATEGORIES);\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n if (props.authState?.province) {\r\n const selectedProvince = getSelectOptionsElementByCode(provinceList, props.authState.province);\r\n props.getWarehousesByProvince(DATASET.WAREHOUSES, selectedProvince.keyValue);\r\n props.setValue(\"province\", selectedProvince);\r\n } else {\r\n if (props.stockState.RegisterInWareHouseModal?.province) {\r\n const selectedProvince = getSelectOptionsElementByCode(\r\n provinceList,\r\n props.stockState.RegisterInWareHouseModal.province\r\n );\r\n props.getWarehousesByProvince(DATASET.WAREHOUSES, selectedProvince.keyValue);\r\n props.setValue(\"province\", selectedProvince);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props.stockState.RegisterInWareHouseModal?.warehouse) {\r\n var warehouseList = props.dataSetState[DATASET.WAREHOUSES] ? props.dataSetState[DATASET.WAREHOUSES] : [];\r\n const warehouse =\r\n props.stockState.RegisterInWareHouseModal !== undefined\r\n ? props.stockState.RegisterInWareHouseModal.warehouse\r\n : null;\r\n props.setValue(\"warehouseId\", getSelectOptionsElementByCode(warehouseList, warehouse));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.WAREHOUSES]]);\r\n\r\n useEffect(() => {\r\n if (props.stockState.RegisterInWareHouseModal?.category) {\r\n var categoryList = props.dataSetState[DATASET.ACTIVE_CATEGORIES]\r\n ? props.dataSetState[DATASET.ACTIVE_CATEGORIES]\r\n : [];\r\n const category =\r\n props.stockState.RegisterInWareHouseModal !== undefined\r\n ? props.stockState.RegisterInWareHouseModal.category\r\n : null;\r\n props.setValue(\"categoryId\", getSelectOptionsElementByCode(categoryList, category));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ACTIVE_CATEGORIES]]);\r\n\r\n const getBatchValueField = () => {\r\n var category = props.getValues(\"categoryId\")?.code;\r\n var quantity = props.getValues(\"quantity\");\r\n setTotalValue(\r\n intl.formatNumber(\r\n props.stockState &&\r\n props.stockState.categoriesUnitValue.find((x) => x.id === category)?.unitValue > 0 &&\r\n quantity > 0\r\n ? props.stockState.categoriesUnitValue.find((x) => x.id === category)?.unitValue * quantity\r\n : \"0\"\r\n )\r\n );\r\n };\r\n\r\n const quantityOnChange = () => {\r\n var category = props.getValues(\"categoryId\");\r\n if (category != null && category.code > 0) {\r\n props.getUnitValueByCategory(category.code);\r\n }\r\n getBatchValueField();\r\n };\r\n\r\n const getCategoryIsDisabled = () => {\r\n return props.stockState.RegisterInWareHouseModal !== undefined\r\n ? props.stockState.RegisterInWareHouseModal.category !== undefined\r\n : false;\r\n };\r\n\r\n const getProvinceIsDisabled = () => {\r\n return props.stockState.RegisterInWareHouseModal?.province != null || props.authState?.province != null;\r\n };\r\n\r\n const getWarehouseIsDisabled = () => {\r\n return props.stockState.RegisterInWareHouseModal !== undefined\r\n ? props.stockState.RegisterInWareHouseModal.warehouse !== undefined\r\n : false;\r\n };\r\n\r\n return (\r\n <>\r\n \r\n Registo em Armazém\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n {props.errors[\"province\"] !== undefined && (\r\n \r\n {props.errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Armazém\r\n \r\n {props.errors[\"warehouseId\"] !== undefined && (\r\n \r\n {props.errors[\"warehouseId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Especialidade\r\n \r\n {props.errors[\"categoryId\"] !== undefined && (\r\n \r\n {props.errors[\"categoryId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Referência do Lote\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"batchNumber\"] !== undefined && (\r\n \r\n {props.errors[\"batchNumber\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Data de Entrada\r\n {\r\n return (\r\n value <= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanTodayField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n return currentDate <= moment().startOf(\"day\");\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"entryDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {props.errors[\"entryDate\"] !== undefined && (\r\n \r\n {props.errors[\"entryDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Quantidade\r\n \r\n value > 0 || intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField),\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n quantityOnChange();\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"number\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"quantity\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"quantity\"] !== undefined && (\r\n \r\n {props.errors[\"quantity\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Valor Total\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n type=\"text\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n Notas\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getWarehousesByProvince: (name, province) => dispatch(getWarehousesByProvinceAction(name, province)),\r\n getActiveCategories: (name) => dispatch(getActiveCategoriesAction(name)),\r\n getUnitValueByCategory: (category) => dispatch(getUnitValueByCategoryAction(category)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralData);\r\n","\r\nexport function registerStockInWarehouseMap(formData) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n //Province: formData.province && formData.province.code ? formData.province.code : \"\",\r\n WarehouseId: formData.warehouseId && formData.warehouseId.code ? formData.warehouseId.code : \"\",\r\n CategoryId: formData.categoryId && formData.categoryId.code ? formData.categoryId.code : \"\",\r\n EntryDate: formData.entryDate ? formData.entryDate.format('YYYY-MM-DD') : \"\",\r\n Quantity: formData.quantity ? formData.quantity : 0,\r\n BatchNumber: formData.batchNumber ? formData.batchNumber : \"\",\r\n Notes: formData.notes ? formData.notes : \"\",\r\n\r\n\r\n };\r\n return formData;\r\n}\r\n\r\nexport default registerStockInWarehouseMap","import React from \"react\";\r\n//redux\r\nimport { connect } from \"react-redux\";\r\nimport { registerStockInWarehouseAction } from \"redux/actions/stockAction\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\n//intl\r\nimport { useIntl } from \"react-intl\";\r\nimport { labels } from \"resources/resources\";\r\n// @material-ui/core components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//import custom components\r\nimport GeneralData from \"./GeneralData\";\r\nimport registerStockInWarehouseMap from \"mappers/registerStockInWarehouseMap\";\r\n\r\nfunction RegisterStockInWarehouse(props) {\r\n const intl = useIntl();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n formState: { errors },\r\n } = methods;\r\n\r\n const onSubmit = (data) => {\r\n props.registerStockInWarehouse(registerStockInWarehouseMap(data));\r\n props.closeModal();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n
\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n registerStockInWarehouse: (formData) => dispatch(registerStockInWarehouseAction(formData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(RegisterStockInWarehouse);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport { labels, titles, messages } from \"resources/resources\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport {\r\n getActiveCategoriesAction,\r\n getDataSetByNameAction,\r\n getWarehousesByProvinceAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { getUnitValueByCategoryAction } from \"redux/actions/stockAction\";\r\nimport { DATASET, UNITS } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralData(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const { control } = useFormContext();\r\n const intl = useIntl();\r\n const [totalValue, setTotalValue] = useState(\"0\");\r\n\r\n useEffect(() => {\r\n props.getActiveCategories(DATASET.ACTIVE_CATEGORIES);\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n if (\r\n props.dataSetState[DATASET.LOSS_BREAK_MOTIVES] === undefined ||\r\n props.dataSetState[DATASET.LOSS_BREAK_MOTIVES] === []\r\n ) {\r\n props.getDataSet(DATASET.LOSS_BREAK_MOTIVES);\r\n }\r\n\r\n setFormValuesOnMount();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n if (props.authState?.province) {\r\n const selectedProvince = getSelectOptionsElementByCode(provinceList, props.authState.province);\r\n props.getWarehousesByProvince(DATASET.WAREHOUSES, selectedProvince.keyValue);\r\n props.setValue(\"province\", selectedProvince);\r\n } else {\r\n if (props.stockState.RegisterLossBreakModal?.province) {\r\n const selectedProvince = getSelectOptionsElementByCode(\r\n provinceList,\r\n props.stockState.RegisterLossBreakModal.province\r\n );\r\n props.setValue(\"province\", selectedProvince);\r\n props.getWarehousesByProvince(DATASET.WAREHOUSES, selectedProvince.keyValue);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.stockState.RegisterLossBreakModal?.warehouse) {\r\n var warehouseList = props.dataSetState[DATASET.WAREHOUSES] ? props.dataSetState[DATASET.WAREHOUSES] : [];\r\n const warehouse =\r\n props.stockState.RegisterLossBreakModal !== undefined\r\n ? props.stockState.RegisterLossBreakModal.warehouse\r\n : null;\r\n props.setValue(\"warehouseId\", getSelectOptionsElementByCode(warehouseList, warehouse));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.WAREHOUSES]]);\r\n\r\n useEffect(() => {\r\n if (props.stockState.RegisterLossBreakModal?.category) {\r\n var categoryList = props.dataSetState[DATASET.ACTIVE_CATEGORIES]\r\n ? props.dataSetState[DATASET.ACTIVE_CATEGORIES]\r\n : [];\r\n const category =\r\n props.stockState.RegisterLossBreakModal !== undefined ? props.stockState.RegisterLossBreakModal.category : null;\r\n props.setValue(\"categoryId\", getSelectOptionsElementByCode(categoryList, category));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ACTIVE_CATEGORIES]]);\r\n\r\n const setFormValuesOnMount = () => {\r\n const batchNumber =\r\n props.stockState.RegisterLossBreakModal !== undefined\r\n ? props.stockState.RegisterLossBreakModal.batchNumber\r\n : null;\r\n props.setValue(\"batchNumber\", batchNumber);\r\n };\r\n\r\n const getBatchValueField = () => {\r\n var category = props.getValues(\"categoryId\")?.code;\r\n var quantity = props.getValues(\"quantity\");\r\n setTotalValue(\r\n intl.formatNumber(\r\n props.stockState &&\r\n props.stockState.categoriesUnitValue.find((x) => x.id === category)?.unitValue > 0 &&\r\n quantity > 0\r\n ? props.stockState.categoriesUnitValue.find((x) => x.id === category)?.unitValue * quantity\r\n : \"0\"\r\n )\r\n );\r\n };\r\n\r\n const quantityOnChange = () => {\r\n var category = props.getValues(\"categoryId\");\r\n if (category != null && category.code > 0) {\r\n props.getUnitValueByCategory(category.code);\r\n }\r\n getBatchValueField();\r\n };\r\n\r\n const getCategoryIsDisabled = () => {\r\n return props.stockState.RegisterLossBreakModal !== undefined\r\n ? props.stockState.RegisterLossBreakModal.category !== undefined\r\n : false;\r\n };\r\n\r\n const getBatchNumberIsDisabled = () => {\r\n return props.stockState.RegisterLossBreakModal !== undefined\r\n ? props.stockState.RegisterLossBreakModal.batchNumber !== undefined\r\n : false;\r\n };\r\n\r\n const getProvinceIsDisabled = () => {\r\n return props.stockState.RegisterLossBreakModal?.province != null || props.authState?.province != null;\r\n };\r\n\r\n const getWarehouseIsDisabled = () => {\r\n return props.stockState.RegisterLossBreakModal !== undefined\r\n ? props.stockState.RegisterLossBreakModal.warehouse !== undefined\r\n : false;\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(titles.Title_Component_ModalFormsContent_Stocks_RegisterLossBreak)}\r\n \r\n \r\n \r\n \r\n \r\n Província\r\n \r\n {props.errors[\"province\"] !== undefined && (\r\n \r\n {props.errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Armazém\r\n \r\n {props.errors[\"warehouseId\"] !== undefined && (\r\n \r\n {props.errors[\"warehouseId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_CategoryField)}\r\n \r\n \r\n {props.errors[\"categoryId\"] !== undefined && (\r\n \r\n {props.errors[\"categoryId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_QuantityField)}\r\n \r\n \r\n value > 0 || intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField),\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n quantityOnChange();\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"number\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"quantity\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"quantity\"] !== undefined && (\r\n \r\n {props.errors[\"quantity\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_ValueField)}\r\n \r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n type=\"text\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_BatchNumberField\r\n )}\r\n \r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"batchNumber\"] !== undefined && (\r\n \r\n {props.errors[\"batchNumber\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Component_ModalFormsContent_Stocks_RegisterLossBreak_MotiveField)}\r\n \r\n \r\n {props.errors[\"motive\"] !== undefined && (\r\n \r\n {props.errors[\"motive\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getActiveCategories: (name) => dispatch(getActiveCategoriesAction(name)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getUnitValueByCategory: (category, quantity) => dispatch(getUnitValueByCategoryAction(category, quantity)),\r\n getWarehousesByProvince: (name, province) => dispatch(getWarehousesByProvinceAction(name, province)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralData);\r\n","import 'moment/locale/pt';\r\nimport moment from \"moment\";\r\n\r\nexport function registerLossBreakInWarehouse(formData) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n WarehouseId: formData.warehouseId && formData.warehouseId.code ? formData.warehouseId.code : \"\",\r\n CategoryId: formData.categoryId && formData.categoryId.code ? formData.categoryId.code : \"\",\r\n Quantity: formData.quantity ? formData.quantity : 0,\r\n BatchNumber: formData.batchNumber ? formData.batchNumber : \"\",\r\n Motive: formData.motive && formData.motive.code ? formData.motive.code : \"\",\r\n EntryDate: moment().startOf('day').format(\"YYYY-MM-DD\")\r\n\r\n };\r\n return formData;\r\n}\r\n\r\nexport default registerLossBreakInWarehouse","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { registerLossOrBreakAction } from \"redux/actions/stockAction\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport Box from \"@material-ui/core/Box\";\r\n//import custom components\r\nimport GeneralData from \"./GeneralData\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport registerLossBreakInWarehouse from \"mappers/registerLossBreakInWarehouse\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nfunction RegisterLossBreak(props) {\r\n const intl = useIntl();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n reValidateMode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n unregister,\r\n formState: { errors },\r\n } = methods;\r\n\r\n const onSubmit = (data) => {\r\n props.registerLossOrBreak(\r\n registerLossBreakInWarehouse(data),\r\n props.stockState.RegisterLossBreakModal.onCloseAction\r\n );\r\n props.closeModal();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n
\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n registerLossOrBreak: (formData, onCloseAction) => dispatch(registerLossOrBreakAction(formData, onCloseAction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(RegisterLossBreak);\r\n","import React from \"react\";\r\nimport { withStyles } from \"@material-ui/core/styles\";\r\nimport MuiDialogTitle from \"@material-ui/core/DialogTitle\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport CloseIcon from \"@material-ui/icons/Close\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\n\r\nconst styles = (theme) => ({\r\n root: {\r\n margin: 0,\r\n padding: theme.spacing(2),\r\n },\r\n closeButton: {\r\n position: \"absolute\",\r\n right: theme.spacing(1),\r\n top: theme.spacing(1),\r\n color: theme.palette.grey[500],\r\n },\r\n });\r\n\r\nexport const CustomDialogTitle = withStyles(styles)((props) => {\r\n const { children, classes, onClose, ...other } = props;\r\n return (\r\n \r\n {children}\r\n {onClose ? (\r\n \r\n \r\n \r\n ) : null}\r\n \r\n );\r\n });","import React from \"react\";\r\n//material-ui\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport DialogContent from \"@material-ui/core/DialogContent\";\r\nimport Slide from \"@material-ui/core/Slide\";\r\n//custom components\r\nimport { CustomDialogTitle } from \"components/Dialogs/CustomDialogTitle\";\r\n\r\nconst Transition = React.forwardRef(function Transition(props, ref) {\r\n return ;\r\n});\r\n\r\nconst useStyles = makeStyles((/*theme*/) => ({\r\n dialogContent: {\r\n width: \"100%\",\r\n height: \"100%\",\r\n },\r\n}));\r\n\r\nexport default function GenericDialog(props) {\r\n const classes = useStyles();\r\n\r\n return (\r\n \r\n \r\n \r\n {props.children}\r\n \r\n \r\n );\r\n}\r\n","import { DIALOG, DIALOG_ICON } from \"utils/actionsConsts\";\r\n\r\nexport const hideGenericDialogAction = () => async (dispatch) => {\r\n dispatch({ type: DIALOG.HIDE, payload: false });\r\n};\r\n\r\nexport const showGenericDialogAction = () => async (dispatch) => {\r\n dispatch({ type: DIALOG.SHOW, payload: true });\r\n};\r\n\r\nexport const showGenericTwoButtonDialogAction =\r\n (message, submessage, yesAction, noAction) => async (dispatch) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.TWO_BUTTON_TYPE,\r\n isSuccess: false,\r\n iconType: DIALOG_ICON.QUESTION,\r\n message: message,\r\n submessage: submessage,\r\n yesAction: yesAction,\r\n noAction: noAction,\r\n },\r\n },\r\n });\r\n };\r\n\r\nexport default hideGenericDialogAction;\r\n","const componentStyles = (theme) => ({\r\n modalResult: {\r\n backgroundColor: theme.palette.white.main,\r\n borderRadius: \"5px\",\r\n width: \"512px\",\r\n height: \"350px\",\r\n },\r\n modalResultClose: {\r\n marginLeft: \"90%\",\r\n },\r\n modalResultHeader: {\r\n fontStyle: \"normal\",\r\n lineHeight: \"33px\",\r\n fontSize: \"24px\",\r\n fontWeight: \"600\",\r\n textAlign: \"center\",\r\n marginBottom: \"1.5rem\",\r\n marginTop: \"5rem\",\r\n color: theme.palette.dark.main,\r\n },\r\n modalResultIcon: {\r\n marginRight: \"8px\",\r\n color: theme.palette.success.main,\r\n width: \"88px\",\r\n height: \"88px\",\r\n position: \"absolute\",\r\n left: \"41.41%\",\r\n right: \"41.41%\",\r\n top: \"14.33%\",\r\n bottom: \"57.64%\",\r\n boxSizing: \"border-box\",\r\n },\r\n modalHelpIcon: {\r\n marginRight: \"8px\",\r\n color: \"#87adbd\",\r\n width: \"120px\",\r\n height: \"120px\",\r\n position: \"absolute\",\r\n left: \"38%\",\r\n right: \"41.41%\",\r\n bottom: \"57.64%\",\r\n boxSizing: \"border-box\",\r\n },\r\n modalResultInfoText: {\r\n textAlign: \"center\",\r\n marginTop: \"-15px\",\r\n },\r\n cardContentKitCharacterizationResult: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n padding: \"3rem\",\r\n },\r\n },\r\n modalErrorResultIcon: {\r\n marginRight: \"8px\",\r\n color: theme.palette.error.main,\r\n width: \"88px\",\r\n height: \"88px\",\r\n position: \"absolute\",\r\n left: \"41.41%\",\r\n right: \"41.41%\",\r\n top: \"14.33%\",\r\n bottom: \"57.64%\",\r\n boxSizing: \"border-box\",\r\n },\r\n centeredButton: {\r\n marginRight: \"auto\", \r\n marginLeft: \"auto\", \r\n display: \"block\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { hideGenericDialogAction } from \"redux/actions/dialogsAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport Dialog from \"@material-ui/core/Dialog\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n\r\nimport CancelOutlinedIcon from \"@material-ui/icons/CancelOutlined\";\r\nimport CloseIcon from \"@material-ui/icons/Close\";\r\nimport CheckCircleOutlinedIcon from \"@material-ui/icons/CheckCircleOutlined\";\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { DIALOG, DIALOG_ICON } from \"utils/actionsConsts\";\r\n\r\nimport componentStylesGenericDialog from \"assets/theme/components/dialogs/generic-dialog.js\";\r\nconst useStylesGenericDialog = makeStyles(componentStylesGenericDialog);\r\n\r\nfunction GenericDialog(props) {\r\n const classes = useStylesGenericDialog();\r\n const history = useHistory();\r\n\r\n const handleGenericDialogOpen = () => {\r\n return props.dialogState.showGenericDialog !== undefined\r\n ? props.dialogState.showGenericDialog\r\n : false;\r\n };\r\n\r\n const handleGenericDialogClose = () => {\r\n props.hideGenericDialog();\r\n if (props.dialogState.genericDialogData?.onCloseAction) {\r\n props.dialogState.genericDialogData.onCloseAction()\r\n }\r\n if (\r\n props.dialogState.genericDialogData === undefined ||\r\n props.dialogState.genericDialogData.goBack\r\n ) {\r\n if (props.dialogState.genericDialogData.onClose !== undefined) {\r\n history.push(props.dialogState.genericDialogData.onClose);\r\n }\r\n }\r\n };\r\n\r\n const handleGenericDialogOK = () => {\r\n props.hideGenericDialog();\r\n if (\r\n props.dialogState.genericDialogData === undefined ||\r\n props.dialogState.genericDialogData.okAction\r\n ) {\r\n props.dialogState.genericDialogData.okAction();\r\n }\r\n if (\r\n props.dialogState.genericDialogData === undefined ||\r\n props.dialogState.genericDialogData.goBack\r\n ) {\r\n if (props.dialogState.genericDialogData.onClose !== undefined) {\r\n history.push(props.dialogState.genericDialogData.onClose);\r\n }\r\n }\r\n };\r\n\r\n const handleGenericDialogYes = () => {\r\n props.hideGenericDialog();\r\n\r\n if (\r\n props.dialogState.genericDialogData === undefined ||\r\n props.dialogState.genericDialogData.yesAction\r\n ) {\r\n props.dialogState.genericDialogData.yesAction();\r\n }\r\n };\r\n\r\n const handleGenericDialogNo = () => {\r\n props.hideGenericDialog();\r\n\r\n if (\r\n props.dialogState.genericDialogData === undefined ||\r\n props.dialogState.genericDialogData.noAction\r\n ) {\r\n props.dialogState.genericDialogData.noAction();\r\n }\r\n };\r\n\r\n const loadDialogButtons = (dialogType) => {\r\n switch (dialogType) {\r\n case DIALOG.SIMPLE_TYPE:\r\n return <>;\r\n case DIALOG.ONE_BUTTON_TYPE:\r\n return (\r\n \r\n OK\r\n \r\n );\r\n case DIALOG.TWO_BUTTON_TYPE:\r\n return (\r\n \r\n \r\n \r\n Sim\r\n \r\n \r\n \r\n \r\n Não\r\n \r\n \r\n \r\n );\r\n default:\r\n break;\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {/* {loadDialogContent(props.dialogReducer.dialogType)} */}\r\n\r\n \r\n {GetIcon()}\r\n \r\n {props.dialogState.genericDialogData !== undefined\r\n ? props.dialogState.genericDialogData.message\r\n : \"Ocorreu um erro a criar o Subprograma\"}\r\n \r\n\r\n {showSubMessage(props.dialogState.genericDialogData?.submessage)}\r\n\r\n
\r\n {loadDialogButtons(props.dialogState.genericDialogData?.type)}\r\n
\r\n\r\n
\r\n \r\n \r\n );\r\n\r\n function showSubMessage(text) {\r\n return (\r\n
\r\n \r\n {text}\r\n \r\n
\r\n );\r\n }\r\n\r\n function GetIconLegacy() {\r\n return props.dialogState.genericDialogData !== undefined &&\r\n props.dialogState.genericDialogData.isSuccess ? (\r\n \r\n ) : (\r\n \r\n );\r\n }\r\n\r\n function GetIcon() {\r\n if (\r\n props.dialogState.genericDialogData !== undefined &&\r\n props.dialogState.genericDialogData.iconType\r\n ) {\r\n switch (props.dialogState.genericDialogData.iconType) {\r\n case DIALOG_ICON.QUESTION:\r\n return ;\r\n default:\r\n return GetIconLegacy();\r\n }\r\n } else return GetIconLegacy();\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n hideGenericDialog: () => dispatch(hideGenericDialogAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GenericDialog);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { useDropzone } from \"react-dropzone\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { useIntl } from \"react-intl\";\r\n// MUI Core\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\n// MUI Icons\r\nimport ClearIcon from \"@material-ui/icons/Clear\";\r\n// custom\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { convertBase64ToFile } from \"utils/converters\";\r\nimport { messages } from \"resources/resources\";\r\nimport { IMAGE_TYPE } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nexport const DropzoneField = ({\r\n name,\r\n label,\r\n register,\r\n setValue,\r\n getValues,\r\n required,\r\n requiredMessage,\r\n errors,\r\n trigger,\r\n maxNumberOfFiles,\r\n accept,\r\n maxFileSize,\r\n hasPreview = false,\r\n showFileNameOnPreview = true,\r\n photosPreviewName = null,\r\n photosPreviewBase64 = null,\r\n photosPreviewURL = null,\r\n handleMediaDelete,\r\n}) => {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [filesState, setFiles] = useState([]);\r\n const [filesMaxNumberError, setFilesMaxNumberError] = useState(false);\r\n const [imageTypeError, setImageTypeError] = useState(false);\r\n const [fileSizeError, setFileSizeError] = useState(false);\r\n\r\n const fileValidator = (file) => {\r\n // Validate file type\r\n if (accept === \".jpg, .jpeg, .png\") {\r\n let aux = file ? file.name.split(\".\") : []; // extensão .jfif é interpretado com o type=jpeg. Daí temos de ver pelo nome, pois não é suposto aceitar.\r\n if ((file && file.type !== \"image/png\" && file.type !== \"image/jpeg\") || aux[aux.length - 1] === \"jfif\") {\r\n setImageTypeError(true);\r\n return {\r\n code: \"wrong-image-type\",\r\n message: `Wrong image type`,\r\n };\r\n }\r\n }\r\n\r\n // Validate file size\r\n if (maxFileSize && file.size > maxFileSize * 1048576) {\r\n setFileSizeError(true);\r\n return {\r\n code: \"name-too-large\",\r\n message: `Name is larger than ${maxFileSize} MB`,\r\n };\r\n }\r\n\r\n // Validate number of files\r\n if (filesState.length >= maxNumberOfFiles) {\r\n setFilesMaxNumberError(true);\r\n return {\r\n code: \"file-number-exceeded\",\r\n message: `Number of files exceeded, maximum is ${maxNumberOfFiles} files`,\r\n };\r\n }\r\n\r\n setImageTypeError(false);\r\n setFileSizeError(false);\r\n setFilesMaxNumberError(false);\r\n };\r\n\r\n const { getRootProps, getInputProps } = useDropzone({\r\n validator: fileValidator,\r\n maxFiles: maxNumberOfFiles,\r\n accept: accept,\r\n onDrop: (files) => {\r\n if (filesState.length + files.length > maxNumberOfFiles) setFilesMaxNumberError(true);\r\n else addFiles(files);\r\n },\r\n });\r\n\r\n useEffect(() => {\r\n var files = [];\r\n\r\n if (photosPreviewBase64 !== null) {\r\n photosPreviewBase64?.forEach((photoPreviewBase64, i) => {\r\n var file = {\r\n fileType: IMAGE_TYPE.BASE64, \r\n id: photoPreviewBase64.id,\r\n file: convertBase64ToFile(\r\n photoPreviewBase64.photo,\r\n photoPreviewBase64.photo.substring(6, 16),\r\n photosPreviewName ? photosPreviewName[i] : \"\"\r\n ),\r\n };\r\n files = [...files, file];\r\n });\r\n }\r\n else if (photosPreviewURL !== null) {\r\n photosPreviewURL?.forEach((element) => {\r\n var file = {\r\n fileType: IMAGE_TYPE.URL, \r\n id: element.id,\r\n file: {\r\n photo: element?.photo,\r\n name: element?.name ? element?.name : \"\",\r\n }\r\n };\r\n files = [...files, file];\r\n })\r\n }\r\n\r\n setValue(\r\n name,\r\n files.map((f) => {\r\n return f.file;\r\n })\r\n );\r\n setFiles(files);\r\n trigger(name);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [photosPreviewBase64, photosPreviewURL]);\r\n\r\n const remove = (i) => {\r\n const newFiles = [...filesState];\r\n\r\n if (newFiles[i].id !== null) handleMediaDelete(newFiles[i].id);\r\n\r\n newFiles.splice(i, 1);\r\n\r\n setValue(\r\n name,\r\n newFiles.map((f) => {\r\n return f.file;\r\n })\r\n );\r\n setFiles(newFiles);\r\n trigger(name);\r\n\r\n setFilesMaxNumberError(false);\r\n };\r\n\r\n function addFiles(files) {\r\n const currentFiles = getValues(name) ?? [];\r\n const newFiles = [...currentFiles, ...files];\r\n\r\n setValue(name, newFiles);\r\n setFiles((prevState) => {\r\n return [\r\n ...prevState,\r\n ...files.map((f) => {\r\n return { id: null, file: f };\r\n }),\r\n ];\r\n });\r\n trigger(name);\r\n }\r\n\r\n const files = filesState.map((fileItem, i) => (\r\n \r\n \r\n {hasPreview && (\r\n \r\n )}\r\n \r\n {showFileNameOnPreview && fileItem.file.name && (\r\n {fileItem.file.name}\r\n )}\r\n \r\n {\r\n remove(i);\r\n }}\r\n classes={{ root: classes.documentDeleteButtonRoot }}\r\n >\r\n \r\n \r\n \r\n \r\n ));\r\n\r\n return (\r\n <>\r\n
\r\n \r\n

{label}

\r\n
\r\n \r\n {files}\r\n\r\n {imageTypeError && (\r\n \r\n {intl.formatMessage(messages.Message_DropzoneField_InvalidFileFormat)}\r\n \r\n )}\r\n\r\n {fileSizeError && (\r\n \r\n {intl.formatMessage(messages.Message_DropzoneField_MaxFileSizeExceeded)} {maxFileSize} MB.\r\n \r\n )}\r\n\r\n {filesMaxNumberError && (\r\n \r\n {intl.formatMessage(messages.Message_DropzoneField_MaxNumberOfFilesExceeded)} {maxNumberOfFiles}.\r\n \r\n )}\r\n \r\n \r\n {errors[name] !== undefined && (\r\n \r\n {errors[name].message}\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default DropzoneField;\r\n","import { React, useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { messages, labels } from \"resources/resources\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\n\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport {\r\n getDataSetByNameAction,\r\n getWarehousesByProvinceAction,\r\n getCategoriesAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport DropzoneField from \"components/FormFields/DropzoneField\";\r\nimport { getKitDeliveryApplicationDetailsAction } from \"redux/actions/stockAction\";\r\nimport { DATASET, UNITS } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\"\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralData(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const { control } = useFormContext();\r\n const [tableState, setTableState] = useState({ tableBody: [] });\r\n const intl = useIntl();\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n const tableHead = [\"Especialidade\", \"Valor Uni.\", \"Descrição\"];\r\n\r\n useEffect(() => {\r\n if (props.stockState.kitDeliveryDetails && props.stockState.kitDeliveryDetails?.categories) {\r\n setTableState({\r\n ...tableState,\r\n tableBody: props.stockState.kitDeliveryDetails.categories.map((c) => {\r\n return {\r\n category: c.categoryName,\r\n unitValue: (c.professionalKit?.unitPrice ?? \"0\") + \" \" + UNITS.MONETARY,\r\n description: c.professionalKit?.description,\r\n };\r\n }),\r\n });\r\n } else {\r\n props.setValue(\"refNumber\", \"\");\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.stockState.kitDeliveryDetails]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n if (props.dataSetState[DATASET.CATEGORIES] === undefined || props.dataSetState[DATASET.CATEGORIES] === []) {\r\n props.getCategories(DATASET.CATEGORIES);\r\n }\r\n if (props.authState?.province) {\r\n props.getWarehousesByProvince(DATASET.WAREHOUSES, props.authState.province);\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n props.setValue(\"province\", getSelectOptionsElementByCode(provinceList, props.authState.province));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n\r\n\r\n const getKitDeliveryApplicationDetails = () => {\r\n const refNumber = props.getValues(\"refNumber\");\r\n if (refNumber) props.getKitDeliveryApplicationDetails(refNumber);\r\n else {\r\n props.trigger(\"refNumber\");\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n Entrega de kit\r\n \r\n \r\n Imprima o termo a assinar pelo beneficiário através do botão \"Gerar Documento\". Pesquise a referência\r\n pretendida para obter a informação a colocar no termo, com as informações referentes à candidatura. Após\r\n assinturado do beneficiário, carregue o termo no sistema.\r\n \r\n \r\n \r\n\r\n \r\n \r\n Gerar Documento\r\n \r\n \r\n \r\n \r\n \r\n \r\n Nº de Candidatura\r\n (\r\n \r\n {\r\n getKitDeliveryApplicationDetails();\r\n }}\r\n >\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"refNumber\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"refNumber\"] !== undefined && (\r\n \r\n {props.errors[\"refNumber\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Nome\r\n {props.stockState.kitDeliveryDetails?.candidate?.name}\r\n \r\n \r\n \r\n \r\n Nº BI / NIF\r\n {props.stockState.kitDeliveryDetails?.candidate?.identityCardOrTaxIdNum}\r\n \r\n \r\n \r\n \r\n Nº de kits\r\n {props.stockState.kitDeliveryDetails?.totalKits}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {tableState?.tableBody.map((prop, key) => (\r\n \r\n {prop.category}\r\n {prop.unitValue}\r\n {prop.description}\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Faça upload do documento assinado\r\n \r\n \r\n \r\n Ficheiro .pdf até 2Mb\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Data de Entrega\r\n {\r\n return value <= moment().startOf(\"day\") || \"A data não pode ser superior à data atual\";\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n return currentDate <= moment().startOf(\"day\");\r\n }}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n fullWidth\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"deliverDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {props.errors[\"deliverDate\"] !== undefined && (\r\n \r\n {props.errors[\"deliverDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n {props.errors[\"province\"] !== undefined && (\r\n \r\n {props.errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Armazém\r\n \r\n {props.errors[\"warehouseId\"] !== undefined && (\r\n \r\n {props.errors[\"warehouseId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Observações\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getWarehousesByProvince: (name, province, provinceKeyValue) =>\r\n dispatch(getWarehousesByProvinceAction(name, province, provinceKeyValue)),\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n getKitDeliveryApplicationDetails: (applicationCode) =>\r\n dispatch(getKitDeliveryApplicationDetailsAction(applicationCode)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralData);\r\n","\r\nexport function kitDeliveryMap(kitDeliveryData, kitsDelivered, applicationId) {\r\n if (kitDeliveryData) {\r\n const kitDelivery = {\r\n ApplicationId: applicationId ?? 0,\r\n DeliveryDate: kitDeliveryData.deliverDate ? kitDeliveryData.deliverDate.format(\"YYYY-MM-DD\") : \"\",\r\n WarehouseId: kitDeliveryData.warehouseId?.code ?? 0,\r\n KitsDelivered: kitsDelivered ?? 0,\r\n Observations: kitDeliveryData.notes ?? \"\"\r\n\r\n };\r\n //Set FormData\r\n const formData = new FormData();\r\n //Append fields\r\n for (const key in kitDelivery) {\r\n formData.append(\"KitDelivery.\" + key, kitDelivery[key])\r\n }\r\n //Append files\r\n kitDeliveryData.fileUpload?.forEach(file => {\r\n formData.append('DeliveryDocument', file);\r\n });\r\n return formData;\r\n }\r\n return kitDeliveryData;\r\n}\r\n\r\nexport default kitDeliveryMap","import React from \"react\";\r\n//redux\r\nimport { connect } from \"react-redux\";\r\nimport { scheduleKitDeliveryAction } from \"redux/actions/stockAction\";\r\n//intl\r\nimport { useIntl } from \"react-intl\";\r\nimport { labels } from \"resources/resources\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\n// @material-ui/core components\r\nimport Box from \"@material-ui/core/Box\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n//import custom components\r\n\r\nimport GeneralData from \"./GeneralData\";\r\nimport kitDeliveryMap from \"mappers/kitDeliveryMap\";\r\n\r\n\r\nfunction DeliverKit(props) {\r\n const intl = useIntl();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n register,\r\n formState: { errors },\r\n } = methods;\r\n\r\n const onSubmit = (data) => {\r\n props.scheduleKitDelivery(\r\n kitDeliveryMap(\r\n data,\r\n props.stockState.kitDeliveryDetails?.totalKits,\r\n props.stockState.kitDeliveryDetails?.applicationId\r\n )\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n \r\n
\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n scheduleKitDelivery: (formData) =>\r\n dispatch(scheduleKitDeliveryAction(formData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(DeliverKit);\r\n","//compile the other users crud into this one!\r\nimport axios from \"axios\";\r\nimport { INTERNAL_API_URL, EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const GET_BO_FILTERED_USERS_URL = \"User/get-filtered-backoffice-users\";\r\nexport const GET_FO_FILTERED_USERS_URL = \"User/get-filtered-frontoffice-users\";\r\nexport const GET_USER_INFO = \"User/get-user-info\";\r\nexport const GET_USER_DOCUMENT_URL = \"User/get-user-document-by-id\";\r\nexport const GET_BACKOFFICE_USER_INFO = \"User/get-backoffice-user-by-id\";\r\nexport const POST_UPDATE_PROFILE = \"User/update-profile\";\r\nexport const INDIVIDUAL_USER_UPDATE_URL = \"Account/update\";\r\nexport const BACKOFFICE_USER_UPDATE_URL = \"User/update-backoffice-user/\";\r\nexport const VALIDATE_COLECTIVE_USERE_URL = \"User/validate-colective-user\";\r\nexport const GET_FO_USER_COLECTIVE_BASIC_INFO = \"User/get-colective-user-basic-info\";\r\nexport const REGISTER_URL = \"account/register\";\r\nexport const SEARCH_FO_USERS_URL = \"User/search-frontoffice-users\";\r\nexport const GET_FO_USER_OVERVIEW_URL = \"User/get-fouser-overview\";\r\nexport const CREATE_FO_USER_HISTORY_ENTRY_URL = \"User/create-fouser-history-entry\";\r\nexport const GET_FO_USER_HISTORY_URL = \"User/get-fouser-history\";\r\n\r\nexport const GET_FOUS_UNEMPLOYMENT_HISTORY_URL = \"User/get-fous-unemployment-history\";\r\nexport const CREATE_FOUS_UNEMPLOYMENT_HISTORY_URL = \"User/create-fous-unemployment-history\";\r\nexport const UPDATE_FOUS_UNEMPLOYMENT_HISTORY_URL = \"User/update-fous-unemployment-history\";\r\n\r\nexport const GET_FOUS_EMPLOYMENT_HISTORY_URL = \"User/get-fous-employment-history\";\r\nexport const CREATE_FOUS_EMPLOYMENT_HISTORY = \"User/create-fous-employment-history\";\r\nexport const UPDATE_FOUS_EMPLOYMENT_HISTORY = \"User/update-fous-employment-history\";\r\n\r\nexport const GET_FOUS_INTERVENTION_OTHER_AREA_URL = \"User/get-fous-intervention-other-area\";\r\nexport const CREATE_FOUS_INTERVENTION_OTHER_AREA_URL = \"User/create-fous-intervention-other-area\";\r\nexport const UPDATE_FOUS_INTERVENTION_OTHER_AREA_URL = \"User/update-fous-intervention-other-area\";\r\n\r\nexport function register(user) {\r\n return axios.post(EXTERNAL_API_URL + REGISTER_URL, user);\r\n}\r\n\r\nexport function updateProfile(formData) {\r\n return axios.post(INTERNAL_API_URL + POST_UPDATE_PROFILE, formData);\r\n}\r\nexport function getFilteredBackOfficeUsers(data) {\r\n return axios.post(INTERNAL_API_URL + GET_BO_FILTERED_USERS_URL, data);\r\n}\r\n\r\nexport function getFilteredFrontOfficeUsers(formData) {\r\n return axios.post(INTERNAL_API_URL + GET_FO_FILTERED_USERS_URL, formData);\r\n}\r\n\r\nexport function getUserInfo(userId) {\r\n return axios.get(EXTERNAL_API_URL + GET_USER_INFO, {\r\n params: {\r\n id: userId,\r\n },\r\n });\r\n}\r\n\r\nexport function getUserInfoBo(userId) {\r\n return axios.get(INTERNAL_API_URL + GET_BACKOFFICE_USER_INFO, {\r\n params: {\r\n id: userId,\r\n },\r\n });\r\n}\r\n\r\nexport function getUserDocument(data) {\r\n return axios.get(EXTERNAL_API_URL + GET_USER_DOCUMENT_URL, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n params: {\r\n docId: data,\r\n },\r\n responseType: \"blob\",\r\n });\r\n}\r\n\r\nexport function frontOfficeIndividualUserUpdate(formData) {\r\n return axios.post(EXTERNAL_API_URL + INDIVIDUAL_USER_UPDATE_URL, formData);\r\n}\r\n\r\nexport function backOfficeUserUpdate(formData) {\r\n return axios.post(INTERNAL_API_URL + BACKOFFICE_USER_UPDATE_URL + formData.id, formData);\r\n}\r\n\r\nexport function validateColectiveUser(formData) {\r\n return axios.post(INTERNAL_API_URL + VALIDATE_COLECTIVE_USERE_URL, formData);\r\n}\r\n\r\nexport function getFoUserColectiveBasicInfo(formData) {\r\n return axios.post(INTERNAL_API_URL + GET_FO_USER_COLECTIVE_BASIC_INFO, formData);\r\n}\r\n\r\nexport function searchFOUsers(formData) {\r\n return axios.post(INTERNAL_API_URL + SEARCH_FO_USERS_URL, formData);\r\n}\r\n\r\nexport function getFOUserOverview(formData) {\r\n return axios.post(INTERNAL_API_URL + GET_FO_USER_OVERVIEW_URL, formData);\r\n}\r\n\r\nexport function addFOUserHistoryEntry(formData) {\r\n return axios.post(INTERNAL_API_URL + CREATE_FO_USER_HISTORY_ENTRY_URL, formData);\r\n}\r\n\r\nexport function getFOUserHistory(formData) {\r\n return axios.post(INTERNAL_API_URL + GET_FO_USER_HISTORY_URL, formData);\r\n}\r\n\r\nexport function getFOUserEmploymentHistory(data) {\r\n return axios.get(EXTERNAL_API_URL + GET_FOUS_EMPLOYMENT_HISTORY_URL, {\r\n params: data,\r\n });\r\n}\r\n\r\nexport function getFOUserUnemploymentHistory(data) {\r\n return axios.get(EXTERNAL_API_URL + GET_FOUS_UNEMPLOYMENT_HISTORY_URL, {\r\n params: data,\r\n });\r\n}\r\n\r\nexport function createFOUserUnemploymentHistory(formData) {\r\n return axios.post(EXTERNAL_API_URL + CREATE_FOUS_UNEMPLOYMENT_HISTORY_URL, formData);\r\n}\r\n\r\nexport function updateFOUserUnemploymentHistory(formData) {\r\n return axios.post(EXTERNAL_API_URL + UPDATE_FOUS_UNEMPLOYMENT_HISTORY_URL, formData);\r\n}\r\n\r\nexport function createFOUserEmploymentHistory(data) {\r\n return axios.post(EXTERNAL_API_URL + CREATE_FOUS_EMPLOYMENT_HISTORY, data);\r\n}\r\n\r\nexport function updateFOUserEmploymentHistory(data) {\r\n return axios.put(EXTERNAL_API_URL + UPDATE_FOUS_EMPLOYMENT_HISTORY, data);\r\n}\r\n\r\nexport function getFoUSInterventionOtherArea(formData) {\r\n return axios.get(EXTERNAL_API_URL + GET_FOUS_INTERVENTION_OTHER_AREA_URL, {\r\n params: formData,\r\n });\r\n}\r\n\r\nexport function createFoUSInterventionOtherArea(formData) {\r\n return axios.post(INTERNAL_API_URL + CREATE_FOUS_INTERVENTION_OTHER_AREA_URL, formData);\r\n}\r\n\r\nexport function updateFoUSInterventionOtherArea(formData) {\r\n return axios.put(INTERNAL_API_URL + UPDATE_FOUS_INTERVENTION_OTHER_AREA_URL, formData);\r\n}\r\n","export const getListAsString = (list, separator) => {\r\n let returnString = \"\";\r\n let auxList = [];\r\n if (list == null || list === undefined) return null;\r\n list.map((l) => auxList.push(l.code));\r\n returnString = auxList.join(separator);\r\n return returnString;\r\n};\r\n\r\nexport const getListAsStringLabels = (list, separator) => {\r\n let returnString = \"\";\r\n let auxList = [];\r\n if (list == null || list === undefined) return null;\r\n auxList = list.map((l) => l.label);\r\n returnString = auxList.join(separator);\r\n return returnString;\r\n};\r\n\r\nexport const getStringFromList = (list, separator) => {\r\n let returnString = \"\";\r\n if (list == null || list === undefined) return null;\r\n returnString = list.join(separator);\r\n return returnString;\r\n};\r\n\r\nexport const getListFromFormData = (list) => {\r\n if (!list) return null;\r\n return list.map((l) => l.code);\r\n};\r\nexport default getListAsString;\r\n","//compile the other user actions into this one!\r\n\r\nimport {\r\n getFilteredBackOfficeUsers,\r\n getFilteredFrontOfficeUsers,\r\n getUserInfo,\r\n getUserInfoBo,\r\n getUserDocument,\r\n updateProfile,\r\n frontOfficeIndividualUserUpdate,\r\n backOfficeUserUpdate,\r\n validateColectiveUser,\r\n getFoUserColectiveBasicInfo,\r\n register,\r\n searchFOUsers,\r\n getFOUserOverview,\r\n addFOUserHistoryEntry,\r\n getFOUserHistory,\r\n getFOUserEmploymentHistory,\r\n getFOUserUnemploymentHistory,\r\n createFOUserUnemploymentHistory,\r\n updateFOUserUnemploymentHistory,\r\n createFOUserEmploymentHistory,\r\n updateFOUserEmploymentHistory,\r\n getFoUSInterventionOtherArea,\r\n createFoUSInterventionOtherArea,\r\n updateFoUSInterventionOtherArea,\r\n} from \"crud/users.crud\";\r\nimport { USERS, DIALOG } from \"utils/actionsConsts\";\r\nimport { b64ToImage, convertByteArrayToBlobUrl } from \"utils/converters\";\r\nimport { getStringFromList } from \"utils/formSelectMultiple\";\r\n\r\nexport const registerAction = (user) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.REGISTER_FO_USER_LOADING,\r\n payload: true,\r\n });\r\n register(user)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.REGISTER_FO_USER_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n goBack: res.data,\r\n onClose: \"/admin/frontofficesers-management\",\r\n message: res.data\r\n ? \"Registo efectuado com sucesso\"\r\n : \"Erro a efectuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.REGISTER_FO_USER_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n noRedirect: true,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n });\r\n};\r\n\r\nexport const updateProfileAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.UPDATE_Profile_LOADING,\r\n payload: true,\r\n });\r\n updateProfile(formData)\r\n .then((res) => {\r\n if (res.data) {\r\n dispatch({\r\n type: USERS.UPDATE_Profile_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: true,\r\n message: \"Perfil actualizado com sucesso\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: \"updateProfile\",\r\n payload: {\r\n name: formData.name,\r\n lastName: formData.surname,\r\n photo: b64ToImage(formData.photo),\r\n },\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Erro a atualizar o seu perfil, por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_Profile_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFilteredFrontOfficeUsersActions = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_FRONTOFFICE_FILTERED_SEARCH_LOADING,\r\n payload: true,\r\n });\r\n getFilteredFrontOfficeUsers(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n nameOfuser: record.nameOfuser,\r\n surname: record.address,\r\n numBI: record.numBI,\r\n province: record.province,\r\n municipality: record.municipality,\r\n userType: record.userType === 2 ? \"Colectivo\" : \"Individual\",\r\n phone: record.phone,\r\n email: record.email,\r\n isActive: record.isActive,\r\n id: record.id,\r\n };\r\n });\r\n\r\n dispatch({\r\n type: USERS.GET_FRONTOFFICE_FILTERED_SEARCH,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: USERS.GET_FRONTOFFICE_FILTERED_SEARCH_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_FRONTOFFICE_FILTERED_SEARCH,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: USERS.GET_FRONTOFFICE_FILTERED_SEARCH_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFilteredBackOfficeUsersActions = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_BACKOFFICE_FILTERED_SEARCH_LOADING,\r\n payload: true,\r\n });\r\n console.log(formData);\r\n getFilteredBackOfficeUsers(formData)\r\n .then((res) => {\r\n console.log(res.data);\r\n const mappedList = res.data?.data?.map((record) => {\r\n return {\r\n id: record.id,\r\n nameOfuser: record.name,\r\n surname: record.surname,\r\n numBI: record.email,\r\n provinceId: record.province,\r\n municipalityId: record.municipality,\r\n provinceName: record.provinceName,\r\n municipalityName: record.municipalityName,\r\n email: record.email,\r\n profile: record.profile ? getStringFromList(record.profile, \"; \") : \"\", //função?\r\n active: record.active,\r\n };\r\n });\r\n dispatch({\r\n type: USERS.GET_BACKOFFICE_FILTERED_SEARCH,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: USERS.GET_BACKOFFICE_FILTERED_SEARCH_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_BACKOFFICE_FILTERED_SEARCH,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: USERS.GET_BACKOFFICE_FILTERED_SEARCH_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getUserInfoAction = (id) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO,\r\n result: true,\r\n payload: {},\r\n });\r\n getUserInfo(id)\r\n .then((res) => {\r\n const record = res.data;\r\n const userInfo = {\r\n id: record.id ? record.id : \"\",\r\n userType: record.userType ? record.userType : \"\",\r\n name: record.name ? record.name : \"\",\r\n mobilePhone: record.mobilePhone ? record.mobilePhone : \"\",\r\n alternativeMobilePhone: record.alternativeMobilePhone ? record.alternativeMobilePhone : \"\",\r\n email: record.email ? record.email : \"\",\r\n userCode: record.userCode ? record.userCode : \"\",\r\n userDocuments: record.userDocuments,\r\n userTypeDocuments: record.userTypeDocuments,\r\n isActive: record.isActive,\r\n userSingular: {\r\n lastName: record.userSingular.lastName ? record.userSingular.lastName : \"\",\r\n dateOfBirth: record.userSingular.dateOfBirth ? record.userSingular.dateOfBirth : \"\",\r\n identityCard: record.userSingular.identityCard ? record.userSingular.identityCard : \"\",\r\n specialNeedsId: record.userSingular.specialNeedsId ?? \"\",\r\n specialNeedsPercent: record.userSingular.specialNeedsPercent ?? \"\",\r\n gender: record.userSingular.genderId ? record.userSingular.genderId : \"\",\r\n maritalStatus: record.userSingular.maritalStatusId ? record.userSingular.maritalStatusId : \"\",\r\n nationality: record.userSingular.nationalityId ? record.userSingular.nationalityId : \"\",\r\n niss: record.userSingular.niss ? record.userSingular.niss : \"\",\r\n hasNISS: record.userSingular.hasNISS ? record.userSingular.hasNISS : \"\",\r\n canModifyIdentityCard: record.userSingular.canModifyIdentityCard,\r\n compositeAddress: {\r\n province: record.userSingular.compositeAddress.provinceId\r\n ? record.userSingular.compositeAddress.provinceId\r\n : \"\",\r\n municipality: record.userSingular.compositeAddress.municipalityId\r\n ? record.userSingular.compositeAddress.municipalityId\r\n : \"\",\r\n district: record.userSingular.compositeAddress.district\r\n ? record.userSingular.compositeAddress.district\r\n : \"\",\r\n address: record.userSingular.compositeAddress.address ? record.userSingular.compositeAddress.address : \"\",\r\n },\r\n academicLevel: record.userSingular.academicLevelId ? record.userSingular.academicLevelId : \"\",\r\n degree: record.userSingular.degreeId ? record.userSingular.degreeId : \"\",\r\n professionalCategory: record.userSingular.professionalCategoryId\r\n ? record.userSingular.professionalCategoryId\r\n : \"\",\r\n professionalTraining: record.userSingular.professionalTrainingId\r\n ? record.userSingular.professionalTrainingId\r\n : \"\",\r\n entrepreneurshipTraining: record.userSingular.entrepreneurshipTrainingId\r\n ? record.userSingular.entrepreneurshipTrainingId\r\n : \"\",\r\n smallBusinessMgmtTraining: record.userSingular.smallBusinessMgmtTrainingId\r\n ? record.userSingular.smallBusinessMgmtTrainingId\r\n : \"\",\r\n professionalExperience: record.userSingular.professionalExperienceList\r\n ? record.userSingular.professionalExperienceList\r\n : \"\",\r\n experience: record.userSingular.experience ? record.userSingular.experience : \"\",\r\n isAvailableForInternshipOpportunities: record.userSingular.isAvailableForInternshipOpportunities ?? false,\r\n isAvailableForEmploymentOpportunities: record.userSingular.isAvailableForEmploymentOpportunities ?? false,\r\n familyIncome: record.userSingular.familyIncome ?? 0,\r\n household: record.userSingular.household ?? 0,\r\n intendedWorkplaceProvinceId: record.userSingular.intendedWorkplaceProvinceId,\r\n professionalQualification: record.userSingular.professionalQualification ?? \"\",\r\n otherProfessionalExperience: record.userSingular.otherProfessionalExperience ?? \"\",\r\n secondaryExperience: record.userSingular.secondaryExperience ?? 0,\r\n occupationalCategoryId: record.userSingular.occupationalCategoryId,\r\n studiedLanguagesList: record.userSingular.studiedLanguagesList,\r\n secondaryProfessionalExperienceList: record.userSingular.secondaryProfessionalExperienceList,\r\n },\r\n };\r\n dispatch({\r\n type: USERS.GET_USER_INFO,\r\n result: true,\r\n payload: userInfo,\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_USER_INFO,\r\n result: false,\r\n payload: undefined,\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getEnterpriseUserInfoAction = (id) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: true,\r\n });\r\n getUserInfo(id)\r\n .then((res) => {\r\n const record = res.data;\r\n const userInfo = {\r\n id: record.id ? record.id : \"\",\r\n userType: record.userType ? record.userType : \"\",\r\n name: record.name ? record.name : \"\",\r\n mobilePhone: record.mobilePhone ? record.mobilePhone : \"\",\r\n alternativeMobilePhone: record.alternativeMobilePhone ? record.alternativeMobilePhone : \"\",\r\n email: record.email ? record.email : \"\",\r\n userCode: record.userCode ? record.userCode : \"\",\r\n isActive: record.isActive,\r\n userColective: {\r\n contactName: record.userColective.contactName ? record.userColective.contactName : \"\",\r\n businessPurpose: record.userColective.businessPurposeList ? record.userColective.businessPurposeList : \"\",\r\n taxIdNumber: record.userColective.taxIdNumber ? record.userColective.taxIdNumber : 0,\r\n permitCode: record.userColective.permitCode ? record.userColective.permitCode : 0,\r\n permitCodeValidUntil: record.userColective.permitCodeValidUntil\r\n ? record.userColective.permitCodeValidUntil\r\n : \"\",\r\n NISS: record.userColective.niss ? record.userColective.niss : \"\",\r\n experience: record.userColective.experience ? record.userColective.experience : 0,\r\n companyEmail: record.userColective.companyEmail ? record.userColective.companyEmail : \"\",\r\n companyPhone: record.userColective.companyPhone ? record.userColective.companyPhone : \"\",\r\n compositeAddress: {\r\n province: record.userColective.compositeAddress.provinceId\r\n ? record.userColective.compositeAddress.provinceId\r\n : 0,\r\n municipality: record.userColective.compositeAddress.municipalityId\r\n ? record.userColective.compositeAddress.municipalityId\r\n : 0,\r\n district: record.userColective.compositeAddress.district\r\n ? record.userColective.compositeAddress.district\r\n : \"\",\r\n address: record.userColective.compositeAddress.address ? record.userColective.compositeAddress.address : \"\",\r\n },\r\n approved: record.userColective.approved,\r\n companyEACId: record.userColective.companyEACId ?? \"\",\r\n propertyType: record.userColective.propertyType ?? \"\",\r\n subsidiaryCompany: record.userColective.subsidiaryCompany ?? \"\",\r\n subsidiaryCompanyPostalCode: record.userColective.subsidiaryCompanyPostalCode ?? \"\",\r\n subsidiaryCompanyActivity: record.userColective.subsidiaryCompanyActivity ?? \"\",\r\n subsidiaryCompanyEACId: record.userColective.subsidiaryCompanyEACId ?? \"\",\r\n maleWorkersNumber: record.userColective.maleWorkersNumber ?? \"\",\r\n femaleWorkersNumber: record.userColective.femaleWorkersNumber ?? \"\",\r\n },\r\n };\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO,\r\n result: true,\r\n payload: userInfo,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_USER_INFO,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getBackOfficeUserInfoAction = (id) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_USER_INFO_BO_LOADING,\r\n payload: true,\r\n });\r\n getUserInfoBo(id)\r\n .then((res) => {\r\n const mappedList = {\r\n active: res.data.active,\r\n email: res.data.email,\r\n id: res.data.id,\r\n profile: res.data.profile,\r\n surname: res.data.surname,\r\n province: res.data.province,\r\n municipality: res.data.municipality,\r\n name: res.data.name,\r\n roles: res.data.roles,\r\n isEditable: res.data.isEditable,\r\n managerBankId: res.data.managerBankId,\r\n managerLoanTypes: res.data.managerLoanTypes,\r\n employmentCenterId: res.data.employmentCenterId,\r\n };\r\n dispatch({\r\n type: USERS.GET_USER_INFO_BO,\r\n result: true,\r\n payload: mappedList,\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO_BO_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_USER_INFO_BO,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO_BO_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getUserDocumentAction = (docId, docName) => async (dispatch) => {\r\n getUserDocument(docId)\r\n .then((res) => {\r\n const link = document.createElement(\"a\");\r\n link.href = convertByteArrayToBlobUrl(res.data);\r\n link.setAttribute(\"download\", docName);\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_USER_DOCUMENT_DATA_DOWNLOAD,\r\n result: false,\r\n payload: null,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateEnterpriseUserAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.UPDATE_ENTERPRISE_USER_LOADING,\r\n payload: true,\r\n });\r\n frontOfficeIndividualUserUpdate(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.UPDATE_ENTERPRISE_USER,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n message: \"Utilizador actualizado com sucesso\",\r\n goBack: res.data,\r\n onClose: \"/admin/frontofficeusers-management\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_ENTERPRISE_USER_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_ENTERPRISE_USER,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_ENTERPRISE_USER_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateIndividualUserAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.UPDATE_INDIVIDUAL_USER_LOADING,\r\n payload: true,\r\n });\r\n frontOfficeIndividualUserUpdate(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.UPDATE_INDIVIDUAL_USER,\r\n payload: res.data,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n message: \"Utilizador actualizado com sucesso\",\r\n goBack: res.data,\r\n onClose: \"/admin/frontofficeusers-management\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_INDIVIDUAL_USER_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_INDIVIDUAL_USER,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_INDIVIDUAL_USER_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateBoUserAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.UPDATE_BO_USER_LOADING,\r\n payload: true,\r\n });\r\n backOfficeUserUpdate(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.UPDATE_BO_USER,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n message: \"Utilizador actualizado com sucesso\",\r\n goBack: true,\r\n onClose: \"/admin/backOfficeUsers-management\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_BO_USER_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.UPDATE_BO_USER_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const validateColectiveUserAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.VALIDATE_COLECTIVE_USER_LOADING,\r\n payload: true,\r\n });\r\n validateColectiveUser(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.VALIDATE_COLECTIVE_USER,\r\n payload: res.data,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n message: res.data ? \"Utilizador validado com sucesso.\" : \"Ocorreu um erro a validar o utilizador.\",\r\n goBack: true,\r\n onClose: \"/admin/frontofficeusers-management\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.VALIDATE_COLECTIVE_USER_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.VALIDATE_COLECTIVE_USER_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFoUserColectiveBasicInfoAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: true,\r\n });\r\n getFoUserColectiveBasicInfo(formData)\r\n .then((res) => {\r\n const record = res.data;\r\n const userInfo = {\r\n id: record.id ? record.id : \"\",\r\n name: record.name ? record.name : \"\",\r\n taxIdNumber: record.taxIdNumber ? record.taxIdNumber : \"\",\r\n niss: record.niss ? record.niss : \"\",\r\n contactName: record.contactName ? record.contactName : \"\",\r\n };\r\n dispatch({\r\n type: USERS.GET_FO_USER_COLECTIVE_BASIC_INFO,\r\n result: true,\r\n payload: userInfo,\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_COLECTIVE_BASIC_INFO,\r\n result: false,\r\n payload: {},\r\n });\r\n dispatch({\r\n type: USERS.GET_USER_INFO_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"A empresa indicada não existe ou não está validada\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const searchFOUsersAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.SEARCH_FO_USERS_LOADING,\r\n payload: true,\r\n });\r\n searchFOUsers(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.SEARCH_FO_USERS,\r\n result: true,\r\n payload: {\r\n data: res.data,\r\n },\r\n });\r\n dispatch({\r\n type: USERS.SEARCH_FO_USERS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.SEARCH_FO_USERS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: USERS.SEARCH_FO_USERS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFOUserOverviewAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_OVERVIEW_LOADING,\r\n payload: true,\r\n });\r\n getFOUserOverview(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_OVERVIEW,\r\n result: true,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: USERS.GET_FO_USER_OVERVIEW_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_OVERVIEW,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: USERS.GET_FO_USER_OVERVIEW_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const addFOUserHistoryEntryAction = (formData) => async (dispatch) => {\r\n addFOUserHistoryEntry(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.CREATE_FO_USER_HISTORY_ENTRY,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n goBack: false,\r\n isSuccess: res.data,\r\n message: res.data ? \"Comentário adicionado com sucesso\" : \"Ocorreu a adicionar comentário\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: USERS.GET_FO_USER_HISTORY_REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.CREATE_FO_USER_HISTORY_ENTRY,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFOUserHistoryActions = (formData) => async (dispatch) => {\r\n getFOUserHistory(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_HISTORY_REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: USERS.GET_FO_USER_HISTORY,\r\n result: true,\r\n payload: res.data.map((record) => {\r\n return {\r\n id: record.id,\r\n date: record.date,\r\n title: record.title,\r\n description: record.description,\r\n applicationCode: record.applicationCode,\r\n historyEntryTypeKeyValue: record.historyEntryTypeKeyValue,\r\n };\r\n }),\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_HISTORY_REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: USERS.GET_FO_USER_HISTORY,\r\n result: false,\r\n payload: [],\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFOUserEmploymentHistoryAction = (data) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_EMPLOYMENT_HISTORY_LOADING,\r\n payload: true,\r\n });\r\n getFOUserEmploymentHistory(data)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_EMPLOYMENT_HISTORY,\r\n payload: res.data,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_EMPLOYMENT_HISTORY,\r\n payload: {},\r\n });\r\n dispatch({\r\n type: USERS.GET_FO_USER_EMPLOYMENT_HISTORY_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFOUserUnemploymentHistoryAction = (data) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_UNEMPLOYMENT_HISTORY_LOADING,\r\n payload: true,\r\n });\r\n\r\n getFOUserUnemploymentHistory(data)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_UNEMPLOYMENT_HISTORY,\r\n payload: res.data,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_FO_USER_UNEMPLOYMENT_HISTORY,\r\n payload: {},\r\n });\r\n dispatch({\r\n type: USERS.GET_FO_USER_UNEMPLOYMENT_HISTORY_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const createFOUserUnemploymentHistoryAction = (formData, onCloseAction) => async (dispatch) => {\r\n return createFOUserUnemploymentHistory(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data.succeeded ? onCloseAction : undefined,\r\n okAction: res.data.succeeded ? onCloseAction : undefined,\r\n isSuccess: res.data.succeeded,\r\n message: res.data.succeeded\r\n ? \"Registo de desemprego criado com sucesso\"\r\n : \"Ocorreu um erro ao criar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro ao criar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateFOUserUnemploymentHistoryAction = (formData, onCloseAction) => async (dispatch) => {\r\n return updateFOUserUnemploymentHistory(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data.succeeded ? onCloseAction : undefined,\r\n okAction: res.data.succeeded ? onCloseAction : undefined,\r\n isSuccess: res.data.succeeded,\r\n message: res.data.succeeded\r\n ? \"Registo de desemprego actualizado com sucesso\"\r\n : \"Ocorreu um erro ao actualizar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro ao actualizar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateFOUserEmploymentHistoryAction = (data, onCloseAction) => async (dispatch) => {\r\n return updateFOUserEmploymentHistory(data)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data ? onCloseAction : undefined,\r\n okAction: res.data ? onCloseAction : undefined,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? \"Registo de emprego actualizado com sucesso\"\r\n : \"Ocorreu um erro ao actualizar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro ao actualizar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const createFOUserEmploymentHistoryAction = (data, onCloseAction) => async (dispatch) => {\r\n return createFOUserEmploymentHistory(data)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data ? onCloseAction : undefined,\r\n okAction: res.data ? onCloseAction : undefined,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? \"Registo de emprego criado com sucesso\"\r\n : \"Ocorreu um erro ao criar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro ao criar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFoUSInterventionOtherAreaAction = (data) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_FOUS_INTERVENTION_OTHER_AREA_LOADING,\r\n payload: true,\r\n });\r\n getFoUSInterventionOtherArea(data)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.GET_FOUS_INTERVENTION_OTHER_AREA,\r\n payload: res.data,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: USERS.GET_FOUS_INTERVENTION_OTHER_AREA,\r\n payload: {},\r\n });\r\n dispatch({\r\n type: USERS.GET_FOUS_INTERVENTION_OTHER_AREA_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const createFoUSInterventionOtherAreaAction = (data, onCloseAction) => async (dispatch) => {\r\n return createFoUSInterventionOtherArea(data)\r\n .then(({ data: response }) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: response ? onCloseAction : undefined,\r\n okAction: response ? onCloseAction : undefined,\r\n isSuccess: response,\r\n message: response\r\n ? \"Registo criado com sucesso\"\r\n : \"Ocorreu um erro ao criar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch(() => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro ao criar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n });\r\n};\r\n\r\nexport const updateFoUSInterventionOtherAreaAction = (data, onCloseAction) => async (dispatch) => {\r\n return updateFoUSInterventionOtherArea(data)\r\n .then(({ data: response }) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: response ? onCloseAction : undefined,\r\n okAction: response ? onCloseAction : undefined,\r\n isSuccess: response,\r\n message: response\r\n ? \"Registo actualizado com sucesso\"\r\n : \"Ocorreu um erro ao actualizar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n\r\n })\r\n .catch(() => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro ao actualizar o registo, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n\r\n });\r\n};\r\n\r\nexport default getFilteredFrontOfficeUsersActions;\r\n","const componentStyles = (theme) => ({\r\n searchBar: {\r\n width: \"100%\", \r\n height: \"60px\",\r\n padding: \"20px 15px 20px 15px\",\r\n position: \"fixed\",\r\n zIndex: 100,\r\n },\r\n searchIcon: {\r\n pointerEvents: 'none',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'right',\r\n },\r\n searchIconRoot: {\r\n height: \"25px\",\r\n width: \"25px\",\r\n padding: \"2px\"\r\n },\r\n searchIconButton: {\r\n padding: \"5px\",\r\n marginTop: \"5px\"\r\n },\r\n inputRoot: {\r\n color: 'inherit',\r\n width: \"100%\",\r\n \"& .MuiInputBase-input\": {\r\n border: \"none\"\r\n },\r\n },\r\n searchFieldDiv: {\r\n overflow: \"hidden\",\r\n },\r\n searchIconDiv: {\r\n float: \"right\",\r\n width: \"190px\",\r\n marginLeft: \"10px\"\r\n },\r\n advancedSearchDiv: {\r\n float: \"right\",\r\n width: \"155px\",\r\n },\r\n searchResults: {\r\n backgroundColor: theme.palette.white.main,\r\n marginTop: \"1px\", \r\n borderRadius: \"0.375rem\",\r\n borderStyle: \"solid\",\r\n borderColor: theme.palette.transparent.main,\r\n },\r\n searchResultsButton: {\r\n width: \"100%\", \r\n display: \"flex\", \r\n justifyContent: \"left\", \r\n border: \"none\", \r\n padding: \"5px 10px 5px 10px\",\r\n borderRadius: \"0.375rem\",\r\n borderStyle: \"solid\",\r\n borderColor: theme.palette.transparent.main,\r\n backgroundColor: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n color: theme.palette.white.main\r\n },\r\n \"&:focus\": {\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n color: theme.palette.white.main\r\n },\r\n fontSize: \"14px\",\r\n },\r\n circularProgress: {\r\n color: theme.palette.gray[300],\r\n position: \"absolute\",\r\n marginTop: '0.43rem',\r\n marginLeft: '-2.39rem',\r\n },\r\n advancedSearchButton: {\r\n backgroundColor: theme.palette.transparent.main,\r\n border: \"none\",\r\n color: theme.palette.white.main,\r\n fontSize: \"14px\",\r\n float: \"right\",\r\n marginTop: \"0.65rem\",\r\n marginRight: \"0.4rem\",\r\n \"&:hover\": {\r\n fontWeight: \"600\"\r\n },\r\n }\r\n });\r\n \r\n export default componentStyles;\r\n ","import React, {useState, useEffect, useRef} from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport ReactHtmlParser from \"react-html-parser\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport { InputBase, IconButton, CircularProgress } from '@material-ui/core';\r\n// @material-ui/icons components\r\nimport SearchIcon from '@material-ui/icons/Search';\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/search-bar\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction SearchBar(props) {\r\n const classes = { ...useStyles(), ...useStylesGeneric() };\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const [searchValue, setSearchValue] = useState(null)\r\n const [openDropdown, setOpenDropdown] = useState(false)\r\n\r\n //Hook that alerts clicks outside of the passed ref\r\n function ClickOutsideComponent(ref) {\r\n useEffect(() => {\r\n //Alert if clicked on outside of element\r\n function handleClickOutside(event) {\r\n if (ref.current && !ref.current.contains(event.target)) {\r\n setOpenDropdown(false)\r\n }\r\n }\r\n // Bind the event listener\r\n document.addEventListener(\"mousedown\", handleClickOutside);\r\n return () => {\r\n // Unbind the event listener on clean up\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n };\r\n }, [ref]);\r\n }\r\n\r\n const wrapperRef = useRef(null);\r\n ClickOutsideComponent(wrapperRef);\r\n\r\n const handleSearch= () => {\r\n props?.handleSearch(searchValue)\r\n }\r\n\r\n const handleChangeSearchValue= (newValue) => {\r\n setSearchValue(newValue)\r\n setOpenDropdown(false)\r\n }\r\n\r\n useEffect(() => {\r\n if (searchValue) {\r\n setOpenDropdown(true)\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.searchResultList]);\r\n\r\n return (\r\n <>\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n {props.advancedSearchPath && ( \r\n {history.push(props.advancedSearchPath)}} \r\n >\r\n {intl.formatMessage(labels.Label_Admin_AdvancedSearch_AdvancedSearch)}\r\n \r\n )}\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n handleChangeSearchValue(e?.target?.value)}\r\n onKeyDown= {(e) => {\r\n if (e.key === 'Enter') {\r\n handleSearch()\r\n }\r\n }}\r\n />\r\n {props?.loadingSearch && (\r\n \r\n )}\r\n
\r\n\r\n {props.searchResultList?.options?.length > 0 && openDropdown && (\r\n
\r\n {props.searchResultList?.options?.map((prop, key) => (\r\n {\r\n history.push(prop?.searchResultPath)\r\n document.location.reload()\r\n }} \r\n >\r\n {ReactHtmlParser(prop?.text)}\r\n \r\n ))}\r\n
\r\n )}\r\n\r\n {props.searchResultList?.options?.length === 0 && openDropdown && (\r\n
\r\n {intl.formatMessage(labels.Label_Admin_SearchBarNavbar_NoResults)}\r\n
\r\n )}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(SearchBar);","import React, {useEffect, useState} from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { searchFOUsersAction } from \"redux/actions/usersAction\";\r\nimport SearchBar from \"components/SearchBar/SearchBar\"\r\nimport { labels } from \"resources/resources\";\r\n\r\nfunction SearchBarNavbar(props) {\r\n const [searchResultList, setSearchResultList] = useState([])\r\n const intl = useIntl();\r\n\r\n const handleSearchFOUsers = (searchText) => {\r\n if (searchText){\r\n props.searchFOUsers({ searchText: searchText })\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n setSearchResultList({\r\n ...searchResultList,\r\n options: props?.usersState?.searchFOUsers_result?.data?.usersList?.map((prop) => {\r\n return {\r\n text: '
'\r\n + (prop.identityCard ? intl.formatMessage(labels.Label_Admin_SearchBarNavbar_IdemtificationNumber) + \": \" + prop.identityCard + \" - \" : \"\")\r\n + (prop.taxIdNumber ? intl.formatMessage(labels.Label_Admin_SearchBarNavbar_NIF) + \": \" + prop.taxIdNumber + \" - \" : \"\")\r\n + (prop.mobilePhone ? intl.formatMessage(labels.Label_Admin_SearchBarNavbar_PhoneNumber) + \": \" + prop.mobilePhone + \" - \" : \"\") \r\n + prop.name\r\n + '
',\r\n searchResultPath: \"/admin/user-overview/\" + prop?.id,\r\n };\r\n }),\r\n });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props?.usersState?.searchFOUsers_result?.data?.usersList]);\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n searchFOUsers: (formData) => dispatch(searchFOUsersAction(formData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(SearchBarNavbar);\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\n// import PropTypes from \"prop-types\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport {\r\n hideKitCharacterizationResultModalAction,\r\n hideRegisterStockInWarehouseResultModalAction,\r\n hideDeliverKitResultModalAction,\r\n showRegisterLossBreakModalAction,\r\n showRegisterInWareHouseModalAction,\r\n showDeliverKitModalAction,\r\n} from \"redux/actions/stockAction\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport AppBar from \"@material-ui/core/AppBar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Hidden from \"@material-ui/core/Hidden\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Toolbar from \"@material-ui/core/Toolbar\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport ClickAwayListener from \"@material-ui/core/ClickAwayListener\";\r\nimport Grow from \"@material-ui/core/Grow\";\r\nimport Paper from \"@material-ui/core/Paper\";\r\nimport Popper from \"@material-ui/core/Popper\";\r\nimport MenuList from \"@material-ui/core/MenuList\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\n\r\n// @material-ui/icons components\r\nimport CloseIcon from \"@material-ui/icons/Close\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\nimport CheckCircleOutlinedIcon from \"@material-ui/icons/CheckCircleOutlined\";\r\nimport CancelOutlinedIcon from \"@material-ui/icons/CancelOutlined\";\r\n\r\n// core components\r\nimport NotificationsDropdown from \"components/Dropdowns/NotificationsDropdown.js\";\r\nimport UserDropdown from \"components/Dropdowns/UserDropdown.js\";\r\nimport NavbarMenuDropdown from \"components/Dropdowns/NavbarMenuDropdown.js\";\r\n\r\nimport componentStyles from \"assets/theme/components/navbars/admin-navbar.js\";\r\nimport { Dialog, ListItemIcon } from \"@material-ui/core\";\r\n\r\nimport RegisterStockInWarehouse from \"views/admin/ProfessionalKits/Modals/RegisterStockInWarehouse/RegisterStockInWarehouse\";\r\nimport RegisterLossBreak from \"views/admin/ProfessionalKits/Modals/RegisterLossBreak/RegisterLossBreak\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport CustomDialog from \"components/Dialogs/GenericDialog\";\r\nimport { titles } from \"resources/resources\";\r\nimport DeliverKit from \"views/admin/ProfessionalKits/DeliverKit/DeliverKit\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { OPERATIONS } from \"utils/consts\";\r\nimport SearchBarNavbar from \"components/Navbars/Sections/SearchbarNavbar\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction AdminNavbar(props) {\r\n const classes = useStyles();\r\n const intl = useIntl();\r\n const [openApplication, setOpenApplication] = React.useState(false);\r\n const [open, setOpen] = React.useState(false);\r\n const [openSub, setOpenSub] = React.useState(false);\r\n const [openUsers, setOpenUsers] = React.useState(false);\r\n const [openInfoDissemination, setOpenInfoDissemination] = React.useState(false);\r\n const [openOpportunity, setOpenOpportunity] = React.useState(false);\r\n const showSearch = false;\r\n\r\n const anchorRefApplication = React.useRef(null);\r\n const anchorRef = React.useRef(null);\r\n const anchorRefSub = React.useRef(null);\r\n const anchorRefUsers = React.useRef(null);\r\n const anchorRefInfoDissemination = React.useRef(null);\r\n const anchorRefOpportunity = React.useRef(null);\r\n\r\n const handleRegisterKitInWarehouseResulClose = () => {\r\n props.hideRegisterStockInWarehouseResultModal();\r\n };\r\n\r\n const getShowRegisterKitInWarehouseResultModal = () => {\r\n return props.stockState.showRegisterStockInWarehouseResultModal !== undefined\r\n ? props.stockState.showRegisterStockInWarehouseResultModal\r\n : false;\r\n };\r\n const getShowRegisterLossBreakModal = () => {\r\n return props.stockState.RegisterLossBreakModal !== undefined ? props.stockState.RegisterLossBreakModal.show : false;\r\n };\r\n const getShowRegisterInWareHouseModal = () => {\r\n return props.stockState.RegisterInWareHouseModal !== undefined\r\n ? props.stockState.RegisterInWareHouseModal.show\r\n : false;\r\n };\r\n\r\n const getShowDeliverKitModal = () => {\r\n return props.stockState.DeliverKitModal !== undefined ? props.stockState.DeliverKitModal.show : false;\r\n };\r\n\r\n const handleRegisterLoss = () => {\r\n props.showRegisterLossBreakModal(true);\r\n };\r\n const handleCloseLoss = () => {\r\n props.showRegisterLossBreakModal(false);\r\n };\r\n const handleRegisterWarehouse = () => {\r\n props.showRegisterInWareHouseModal(true);\r\n };\r\n const handleCloseWarehouse = () => {\r\n props.showRegisterInWareHouseModal(false);\r\n };\r\n const handleDeliverKit = () => {\r\n props.showDeliverKitModal(true);\r\n };\r\n const handleCloseDeliverKit = () => {\r\n props.showDeliverKitModal(false);\r\n };\r\n\r\n const handleToggleApplication = () => {\r\n setOpenApplication((prevOpenApplication) => !prevOpenApplication);\r\n };\r\n\r\n const handleToggle = () => {\r\n setOpen((prevOpen) => !prevOpen);\r\n };\r\n\r\n const handleToggleSub = () => {\r\n setOpenSub((prevOpenSub) => !prevOpenSub);\r\n };\r\n\r\n const handleToggleUsers = () => {\r\n setOpenUsers((prevOpenUsers) => !prevOpenUsers);\r\n };\r\n\r\n const handleToggleInfoDissemination = () => {\r\n setOpenInfoDissemination((prevOpenInfoDissemination) => !prevOpenInfoDissemination);\r\n };\r\n\r\n const handleToggleOpportunity = () => {\r\n setOpenOpportunity((prevOpenOpportunity) => !prevOpenOpportunity);\r\n };\r\n\r\n const handleCloseApplication = (event) => {\r\n if (anchorRefApplication.current && anchorRefApplication.current.contains(event.target)) {\r\n return;\r\n }\r\n setOpenApplication(false);\r\n };\r\n\r\n const handleClose = (event) => {\r\n if (anchorRef.current && anchorRef.current.contains(event.target)) {\r\n return;\r\n }\r\n setOpen(false);\r\n };\r\n\r\n const handleCloseSub = (event) => {\r\n if (anchorRefSub.current && anchorRefSub.current.contains(event.target)) {\r\n return;\r\n }\r\n setOpenSub(false);\r\n };\r\n\r\n const handleCloseUsers = (event) => {\r\n if (anchorRefUsers.current && anchorRefUsers.current.contains(event.target)) {\r\n return;\r\n }\r\n setOpenUsers(false);\r\n };\r\n\r\n const handleCloseInfoDissemination = (event) => {\r\n if (anchorRefInfoDissemination.current && anchorRefInfoDissemination.current.contains(event.target)) {\r\n return;\r\n }\r\n setOpenInfoDissemination(false);\r\n };\r\n\r\n const handleCloseOpportunity = (event) => {\r\n if (anchorRefOpportunity.current && anchorRefOpportunity.current.contains(event.target)) {\r\n return;\r\n }\r\n setOpenOpportunity(false);\r\n };\r\n\r\n function handleListKeyDown(event) {\r\n if (event.key === \"Tab\") {\r\n event.preventDefault();\r\n setOpen(false);\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {\"\"}\r\n\r\n \r\n\r\n {/* Navbar Menu for lower resolutions */}\r\n \r\n \r\n \r\n \r\n \r\n\r\n {/* The following items use the Hidden component to not be displayed on lower resolutions,\r\n instead the NavbarMenuDropdown will display all the items. */}\r\n\r\n {/* Candidaturas */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.APPLICATIONS_MENU) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_GestaoCandidaturasMenu)}\r\n \r\n \r\n \r\n \r\n {({ TransitionProps, placement }) => (\r\n \r\n \r\n \r\n \r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.APPLICATIONS_LIST_ITEM\r\n ) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ListaDeCandidaturasMenuItem)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n {/* Agendamentos */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.SCHEDULES_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_AgendamentosMenuItem)}\r\n \r\n )}\r\n \r\n \r\n {/* Kits Profissionais */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_MENU) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ProfessionalKitsMenu)}\r\n \r\n \r\n \r\n \r\n {({ TransitionProps, placement }) => (\r\n \r\n \r\n \r\n \r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.PROFESSIONAL_KITS_LIST_ITEM\r\n ) && (\r\n \r\n {intl.formatMessage(\r\n titles.Title_AdminNavBar_ProfessionalKitsMenu_KitsListMenuItem\r\n )}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_CHARACTERIZE_KIT_ITEM) && (\r\n \r\n {intl.formatMessage(\r\n titles.Title_AdminNavBar_ProfessionalKitsMenu_CharacterizeKitMenuItem\r\n )}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_REGISTER_LOSS_KIT_ITEM) && (\r\n \r\n {intl.formatMessage(\r\n titles.Title_AdminNavBar_ProfessionalKitsMenu_RegisterLossMenuItem\r\n )}\r\n \r\n )}\r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.PROFESSIONAL_KITS_REGISTER_IN_WAREHOUSE_ITEM\r\n ) && (\r\n \r\n {intl.formatMessage(\r\n titles.Title_AdminNavBar_ProfessionalKitsMenu_RegisterInWarehouseMenuItem\r\n )}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_STOCKS_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ProfessionalKitsMenu_StocksMenuItem)}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.PROFESSIONAL_KITS_DELIVERY_ITEM) && (\r\n \r\n {intl.formatMessage(\r\n titles.Title_AdminNavBar_ProfessionalKitsMenu_KitDeliveryMenuItem\r\n )}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n\r\n {/* Subprogramas */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.SUBPROGRAMS_MENU) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_SubprogramasMenu)}\r\n \r\n \r\n \r\n \r\n {({ TransitionProps, placement }) => (\r\n \r\n \r\n \r\n \r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.SUBPROGRAMS_CHARACTERIZE_SUBPROGRAM_ITEM\r\n ) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_CharacterizeSubprogramMenuItem)}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.SUBPROGRAMS_LIST_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ListaSubprogramasMenuItem)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n\r\n {/* Emprego e Estágio */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_MENU) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_Opportunity)}\r\n \r\n \r\n \r\n \r\n {({ TransitionProps, placement }) => (\r\n \r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_CREATE_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_OpportunityCreateMenuItem)}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_CANDIDATES_LIST_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ListOpportunitiesMenuItem)}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_APPLICATIONS_LIST_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ListOpportunitiesApplicationsMenuItem)}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_APPLICATIONS_FOLLOWUP_LIST_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ListOpportunitiesApplicationsFollowUpMenuItem)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n\r\n {/* Bancos */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.BANKS_MENU) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_Bancos)}\r\n \r\n )}\r\n \r\n \r\n\r\n {/* Gestão de Utilizadores */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_MENU) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ManageUsersMenu)}\r\n \r\n \r\n \r\n \r\n {({ TransitionProps, placement }) => (\r\n \r\n \r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_BACKOFFICE_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ManageUsersMenuItemBackOffice)}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_FRONTOFFICE_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ManageUsersMenuItemFrontOffice)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n\r\n {/* Informação */}\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.INFORMATION_MENU) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_InformationDissemination)}\r\n \r\n \r\n \r\n \r\n {({ TransitionProps, placement }) => (\r\n \r\n \r\n \r\n \r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.INFORMATION_CREATE_ITEM\r\n ) && (\r\n \r\n {intl.formatMessage(\r\n titles.Title_AdminNavBar_CreateInformationDisseminationMenuItem\r\n )}\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.INFORMATION_LIST_ITEM) && (\r\n \r\n {intl.formatMessage(\r\n titles.Title_AdminNavBar_ListaInformationDisseminationMenuItem\r\n )}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {/* Registar Perda */}\r\n \r\n \r\n \r\n\r\n {/* Registo em Armazém */}\r\n \r\n \r\n \r\n\r\n {/* Entrega de Kit */}\r\n \r\n \r\n \r\n\r\n {/* Register kit in warehouse Result Modal Start*/}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.stockState.registerInWarehouseResult ? (\r\n <>\r\n \r\n \r\n O seu registo foi realizado com sucesso\r\n \r\n \r\n OK\r\n \r\n \r\n ) : (\r\n <>\r\n \r\n \r\n Erro no registo, por favor verifique a informação introduzida e volte a tentar.\r\n \r\n \r\n OK\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n {/* Register kit in warehouse Result Modal End*/}\r\n {/* Generic dialog START*/}\r\n \r\n {/* Generic dialog END*/}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n hideKitCharacterizationResultModal: () => dispatch(hideKitCharacterizationResultModalAction()),\r\n hideRegisterStockInWarehouseResultModal: () => dispatch(hideRegisterStockInWarehouseResultModalAction()),\r\n showRegisterLossBreakModal: (toShow) => dispatch(showRegisterLossBreakModalAction(toShow)),\r\n showRegisterInWareHouseModal: (toShow) => dispatch(showRegisterInWareHouseModalAction(toShow)),\r\n hideDeliverKitResultModal: () => dispatch(hideDeliverKitResultModalAction()),\r\n showDeliverKitModal: (toShow) => dispatch(showDeliverKitModalAction(toShow)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(AdminNavbar);\r\n","const componentStyles = (theme) => ({\r\n buttonLabel: {\r\n fontSize: \".875rem\",\r\n fontWeight: \"600\",\r\n textTransform: \"capitalize\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n padding: \"0!important\",\r\n },\r\n },\r\n gridItemRoot: {\r\n paddingTop: \"1rem\",\r\n paddingBottom: \"1rem\",\r\n textAlign: \"center\",\r\n },\r\n gridContainerRoot: {\r\n paddingLeft: \"1.5rem\",\r\n paddingRight: \"1.5rem\",\r\n },\r\n menuPaper: {\r\n background: theme.palette.dark.main,\r\n minWidth: \"320px\",\r\n },\r\n avatarRoot: {\r\n height: \"48px\",\r\n width: \"48px\",\r\n },\r\n bgGradientError: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.error.main +\r\n \", \" + theme.palette.primary.main + \")!important\",\r\n },\r\n bgGradientWarning: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.warning.main +\r\n \",\" + theme.palette.primary.mediumBlue + \")!important\",\r\n },\r\n bgGradientInfo: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.info.main +\r\n \", \" + theme.palette.primary.mediumBlue + \" )!important\",\r\n },\r\n bgGradientSuccess: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.success.main +\r\n \", \" + theme.palette.primary.mediumBlue + \" )!important\",\r\n },\r\n bgGradientPurple: {\r\n background: \"linear-gradient(87deg, \" + theme.warning.primary.greyBlue + \" , \" + theme.warning.primary.mediumBlue + \" )!important\",\r\n },\r\n bgGradientYellow: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.warning.light +\r\n \", \" + theme.warning.main + \" )!important\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\n// @material-ui/icons components\r\nimport CreditCard from \"@material-ui/icons/CreditCard\";\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\nimport FileCopy from \"@material-ui/icons/FileCopy\";\r\nimport LocationOn from \"@material-ui/icons/LocationOn\";\r\nimport Mail from \"@material-ui/icons/Mail\";\r\nimport Report from \"@material-ui/icons/Report\";\r\nimport ShoppingBasket from \"@material-ui/icons/ShoppingBasket\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/dropdowns/apps-dropdown-alternative.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nconst firstItems = [\r\n {\r\n name: \"Calendar\",\r\n icon: DateRange,\r\n color: \"bgGradientError\",\r\n },\r\n {\r\n name: \"Email\",\r\n icon: Mail,\r\n color: \"bgGradientWarning\",\r\n },\r\n {\r\n name: \"Payments\",\r\n icon: CreditCard,\r\n color: \"bgGradientInfo\",\r\n },\r\n];\r\n\r\nconst secondItems = [\r\n {\r\n name: \"Reports\",\r\n icon: Report,\r\n color: \"bgGradientSuccess\",\r\n },\r\n {\r\n name: \"Maps\",\r\n icon: LocationOn,\r\n color: \"bgGradientPurple\",\r\n },\r\n {\r\n name: \"Shop\",\r\n icon: ShoppingBasket,\r\n color: \"bgGradientYellow\",\r\n },\r\n];\r\n\r\nexport default function AppsDropdown() {\r\n const classes = useStyles();\r\n const [anchorEl, setAnchorEl] = React.useState(null);\r\n\r\n const isMenuOpen = Boolean(anchorEl);\r\n\r\n const handleProfileMenuOpen = (event) => {\r\n setAnchorEl(event.currentTarget);\r\n };\r\n\r\n const handleMenuClose = () => {\r\n setAnchorEl(null);\r\n };\r\n\r\n const menuId = \"dropdowns-apps-dropdown-id\";\r\n const renderMenu = (\r\n \r\n \r\n {firstItems.map((prop, key) => (\r\n \r\n \r\n \r\n \r\n \r\n {prop.name}\r\n \r\n \r\n ))}\r\n \r\n \r\n {secondItems.map((prop, key) => (\r\n \r\n \r\n \r\n \r\n \r\n {prop.name}\r\n \r\n \r\n ))}\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {renderMenu}\r\n \r\n );\r\n}\r\n","const componentStyles = (theme) => ({\r\n buttonLabel: {\r\n fontSize: \".875rem\",\r\n fontWeight: \"600\",\r\n textTransform: \"capitalize\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n padding: \"0!important\",\r\n },\r\n },\r\n listItemRoot: {\r\n padding: \"1rem\",\r\n borderBottom: \"1px solid \" + theme.palette.gray[200],\r\n textDecoration: \"none\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.gray[100],\r\n },\r\n },\r\n boxAnchor: {\r\n textDecoration: \"none\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.gray[100],\r\n color: theme.palette.info.dark,\r\n },\r\n },\r\n menuList: {\r\n padding: \"0!important\",\r\n },\r\n menuPaper: {\r\n padding: \"0!important\",\r\n minWidth: \"420px\",\r\n },\r\n typographyH6: {\r\n fontSize: \".875rem!important\",\r\n margin: \"0!important\",\r\n color: theme.palette.gray[600],\r\n },\r\n typographyH4: {\r\n fontSize: \".875rem!important\",\r\n margin: \"0!important\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/icons components\r\nimport Notifications from \"@material-ui/icons/Notifications\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/dropdowns/notifications-dropdown-alternative.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nconst items = [\r\n {\r\n image: require(\"assets/img/theme/team-1-800x800.jpg\").default,\r\n name: \"John Snow\",\r\n description: \"Let's meet at Starbucks at 11:30. Wdyt?\",\r\n time: \"2 hrs ago\",\r\n },\r\n {\r\n image: require(\"assets/img/theme/team-2-800x800.jpg\").default,\r\n name: \"John Snow\",\r\n description: \"A new issue has been reported for Argon.\",\r\n time: \"3 hrs ago\",\r\n },\r\n {\r\n image: require(\"assets/img/theme/team-3-800x800.jpg\").default,\r\n name: \"John Snow\",\r\n description: \"Your posts have been liked a lot.\",\r\n time: \"4 hrs ago\",\r\n },\r\n {\r\n image: require(\"assets/img/theme/team-4-800x800.jpg\").default,\r\n name: \"John Snow\",\r\n description: \"Let's meet at Starbucks at 11:30. Wdyt?\",\r\n time: \"5 hrs ago\",\r\n },\r\n {\r\n image: require(\"assets/img/theme/team-1-800x800.jpg\").default,\r\n name: \"John Snow\",\r\n description: \"A new issue has been reported for Argon.\",\r\n time: \"6 hrs ago\",\r\n },\r\n];\r\n\r\nexport default function NotificationsDropdown() {\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n const [anchorEl, setAnchorEl] = React.useState(null);\r\n\r\n const isMenuOpen = Boolean(anchorEl);\r\n\r\n const handleProfileMenuOpen = (event) => {\r\n setAnchorEl(event.currentTarget);\r\n };\r\n\r\n const handleMenuClose = () => {\r\n setAnchorEl(null);\r\n };\r\n\r\n const menuId = \"dropdowns-notifications-dropdown-id\";\r\n const renderMenu = (\r\n \r\n \r\n \r\n You have{\" \"}\r\n \r\n 13\r\n {\" \"}\r\n notifications.\r\n \r\n \r\n \r\n {items.map((prop, key) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n {prop.name}\r\n \r\n
\r\n \r\n {prop.time}\r\n \r\n \r\n \r\n {prop.description}\r\n \r\n \r\n
\r\n
\r\n );\r\n })}\r\n
\r\n \r\n View all\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {renderMenu}\r\n \r\n );\r\n}\r\n","const componentStyles = (theme) => ({\r\n buttonRoot: {\r\n padding: \".25rem 0 .25rem 1rem!important\",\r\n border: \"0!important\",\r\n boxShadow: \"none!important\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n padding: \"0!important\",\r\n minWidth: \"unset!important\",\r\n borderRadius: \"50%\",\r\n },\r\n },\r\n buttonLabel: {\r\n fontSize: \".875rem\",\r\n fontWeight: \"600\",\r\n color: theme.palette.gray[700],\r\n textTransform: \"capitalize\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n padding: \"0!important\",\r\n },\r\n },\r\n avatarRoot: {\r\n width: \"36px\",\r\n height: \"36px\",\r\n marginRight: \"0.5rem\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n marginRight: \"0\",\r\n },\r\n },\r\n dividerRoot: {\r\n height: \"0\",\r\n margin: \".5rem 0\",\r\n overflow: \"hidden\",\r\n borderTop: \"1px solid \" + theme.palette.gray[200],\r\n },\r\n menuTitle: {\r\n margin: \"0!important\",\r\n textTransform: \"uppercase\",\r\n display: \"block\",\r\n padding: \".5rem 1rem\",\r\n whiteSpace: \"nowrap\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport Hidden from \"@material-ui/core/Hidden\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/icons components\r\nimport DirectionsRun from \"@material-ui/icons/DirectionsRun\";\r\nimport EventNote from \"@material-ui/icons/EventNote\";\r\nimport LiveHelp from \"@material-ui/icons/LiveHelp\";\r\nimport Person from \"@material-ui/icons/Person\";\r\nimport Settings from \"@material-ui/icons/Settings\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/dropdowns/user-dropdown-alternative.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nexport default function UserDropdown() {\r\n const classes = useStyles();\r\n const [anchorEl, setAnchorEl] = React.useState(null);\r\n\r\n const isMenuOpen = Boolean(anchorEl);\r\n\r\n const handleProfileMenuOpen = (event) => {\r\n setAnchorEl(event.currentTarget);\r\n };\r\n\r\n const handleMenuClose = () => {\r\n setAnchorEl(null);\r\n };\r\n\r\n const menuId = \"dropdowns-user-dropdown-id\";\r\n const renderMenu = (\r\n \r\n \r\n Welcome!\r\n \r\n \r\n \r\n My profile\r\n \r\n \r\n \r\n Settings\r\n \r\n \r\n \r\n Activity\r\n \r\n \r\n \r\n Support\r\n \r\n \r\n \r\n \r\n Logout\r\n \r\n \r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n John Snow\r\n \r\n {renderMenu}\r\n \r\n );\r\n}\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\nimport hexToRgb from \"assets/theme/hex-to-rgb.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n appBarRoot: {\r\n borderBottom:\r\n \"1px solid rgba(\" + hexToRgb(theme.palette.dark.main) + \", 0.08)\",\r\n backgroundColor: theme.palette.transparent.main,\r\n },\r\n brandTitle: {\r\n textTransform: \"uppercase\",\r\n margin: \"0\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n display: \"none\",\r\n },\r\n },\r\n searchBoxShow: {\r\n display: \"flex!important\",\r\n marginRight: \"0\",\r\n \"& div:first-of-type\": {\r\n flex: 1,\r\n },\r\n },\r\n searchBox: {\r\n borderColor: theme.palette.dark.main,\r\n borderRadius: \"2rem\",\r\n border: \"2px solid\",\r\n backgroundColor: \"rgba(\" + hexToRgb(theme.palette.dark.main) + \",0.9)\",\r\n boxShadow: boxShadows.inputBoxShadow,\r\n transition: \"box-shadow .15s ease\",\r\n color: theme.palette.gray[400],\r\n [theme.breakpoints.down(\"xs\")]: {\r\n display: \"none\",\r\n width: \"100%\",\r\n },\r\n },\r\n searchIcon: {\r\n color: theme.palette.gray[400],\r\n marginRight: \"0.5rem\",\r\n marginLeft: \"1rem\",\r\n },\r\n searchClose: {\r\n color: theme.palette.gray[400],\r\n marginRight: \"1rem\",\r\n marginLeft: \"-.5rem\",\r\n },\r\n searchInput: {\r\n color: theme.palette.gray[200],\r\n width: \"270px\",\r\n backgroundColor: \"initial\",\r\n border: 0,\r\n boxShadow: \"none\",\r\n padding: \"0\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n marginLeftAuto: {\r\n [theme.breakpoints.down(\"sm\")]: {\r\n marginLeft: \"auto\",\r\n },\r\n },\r\n marginLeftNone: {\r\n [theme.breakpoints.down(\"sm\")]: {\r\n marginLeft: \"unset\",\r\n },\r\n },\r\n displayNone: {\r\n [theme.breakpoints.down(\"xs\")]: {\r\n display: \"none\",\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport PropTypes from \"prop-types\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport AppBar from \"@material-ui/core/AppBar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Hidden from \"@material-ui/core/Hidden\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport InputBase from \"@material-ui/core/InputBase\";\r\nimport Toolbar from \"@material-ui/core/Toolbar\";\r\n// @material-ui/icons components\r\nimport Clear from \"@material-ui/icons/Clear\";\r\nimport MenuIcon from \"@material-ui/icons/Menu\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport ZoomIn from \"@material-ui/icons/ZoomIn\";\r\n\r\n// core components\r\nimport AppsDropdownAlternative from \"components/Dropdowns/AppsDropdownAlternative.js\";\r\nimport NotificationsDropdownAlternative from \"components/Dropdowns/NotificationsDropdownAlternative.js\";\r\nimport UserDropdownAlternative from \"components/Dropdowns/UserDropdownAlternative.js\";\r\n\r\nimport componentStyles from \"assets/theme/components/navbars/admin-navbar-alternative.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nexport default function AdminNavbarAlternative({ openSidebarResponsive }) {\r\n const classes = useStyles();\r\n const [showSearch, setShowSearch] = React.useState(false);\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n setShowSearch(false)}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n setShowSearch(true)}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\nAdminNavbarAlternative.defaultProps = {\r\n openSidebarResponsive: () => {},\r\n};\r\n\r\nAdminNavbarAlternative.propTypes = {\r\n // use this to make the Sidebar open on responsive mode\r\n openSidebarResponsive: PropTypes.func.isRequired,\r\n};\r\n","import {\r\n getDashboardStockInfo,\r\n getDashboardNewCompaniesInfo,\r\n getDashboardOnGoingApplicationsInfo,\r\n getDashboardNotificationsInfo,\r\n getDashboardUnreadNotificationsCountInfo,\r\n getDashboardOpportunities,\r\n getOpportunityApplicationFollowUpsWithUnapprovedReports\r\n} from \"crud/dashboard.crud\";\r\nimport { b64toBlob } from \"utils/converters\";\r\n\r\nimport { DASHBOARD_ACTIONS } from \"utils/actionsConsts\";\r\n\r\nexport const getDashboardStockInfoAction = () => async (dispatch) => {\r\n getDashboardStockInfo()\r\n .then((res) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_STOCK_INFO,\r\n payload: res.data.map((child) => {\r\n return {\r\n id: child.id,\r\n warehouse: child.warehouseName,\r\n category: child.categoryName,\r\n stock: child.quantity,\r\n };\r\n }),\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_STOCK_INFO,\r\n payload: [],\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\nexport const getDashboardNotificationsInfoAction =\r\n (formData) => async (dispatch) => {\r\n getDashboardNotificationsInfo(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_NOTIFICATIONS_INFO,\r\n payload: res.data?.data.map((child) => {\r\n return {\r\n sentBy: child.sentByUserName,\r\n title: child.subject,\r\n subtitle: child.motive,\r\n date: child.notificationDate,\r\n isRead: child.isRead,\r\n };\r\n }),\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_NOTIFICATIONS_INFO,\r\n payload: [],\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\nexport const getDashboardUnreadNotificationsCountInfoAction =\r\n () => async (dispatch) => {\r\n getDashboardUnreadNotificationsCountInfo()\r\n .then((res) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_UNREAD_NOTIFICATIONS_COUNT_INFO,\r\n payload: res.data.unreadCount,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_UNREAD_NOTIFICATIONS_COUNT_INFO,\r\n payload: 0,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\n\r\nexport const getDashboardNewCompaniesInfoAction = () => async (dispatch) => {\r\n getDashboardNewCompaniesInfo()\r\n .then((res) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_NEW_COMPANIES_INFO,\r\n payload: {\r\n list: res.data.userList.map((child) => {\r\n return {\r\n id: child.id,\r\n name: child.name,\r\n permitCode: child.userColective\r\n ? child.userColective.permitCode\r\n : \"\",\r\n province: child.userColective\r\n ? child.userColective.compositeAddress.provinceKey\r\n : \"\",\r\n taxIdNumber: child.userColective\r\n ? child.userColective.taxIdNumber\r\n : \"\",\r\n userAvatar: child.userPhoto ? b64toBlob(child.userPhoto) : null,\r\n };\r\n }),\r\n count: res.data.totalUserCount,\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_NEW_COMPANIES_INFO,\r\n payload: { list: [], count: 0 },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\nexport const getDashboardOnGoingApplicationsInfoAction =\r\n () => async (dispatch) => {\r\n getDashboardOnGoingApplicationsInfo()\r\n .then((res) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_ON_GOING_APPLICATIONS_INFO,\r\n payload: {\r\n list: res.data.applications.map((child) => {\r\n return {\r\n governmentProgramName: child.governmentProgramName,\r\n applicationNumber: child.applicationCode,\r\n identityCard: child.identityCardOrTaxIdNum,\r\n name: child.name,\r\n userCode: child.userCode,\r\n userAvatar: child.userPhoto ? b64toBlob(child.userPhoto) : null,\r\n };\r\n }),\r\n count: res.data.totalCount,\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_ON_GOING_APPLICATIONS_INFO,\r\n payload: { list: [], count: 0 },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\nexport const getDashboardOpportunitiesAction = () => async (dispatch) => {\r\n getDashboardOpportunities()\r\n .then((res) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_OPPORTUNITIES,\r\n payload: {\r\n list: res.data.opportunitiesList.map((child) => {\r\n return {\r\n id: child.id,\r\n name: child.userName,\r\n userAvatar: child.userPhoto ? b64toBlob(child.userPhoto) : null,\r\n opportunityStateKey: child.opportunityStateKey\r\n ? child.opportunityStateKey\r\n : \"\",\r\n opportunityStateDescription: child.opportunityStateDescription\r\n ? child.opportunityStateDescription\r\n : \"\",\r\n opportunityType: child.opportunityTypeDescription\r\n ? child.opportunityTypeDescription\r\n : \"\",\r\n };\r\n }),\r\n count: res.data.totalOpportunityCount,\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_DASHBOARD_OPPORTUNITIES,\r\n payload: { list: [], count: 0 },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getOpportunityApplicationFollowUpsWithUnapprovedReportsAction = () => async (dispatch) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_LOADING,\r\n payload: true,\r\n });\r\n getOpportunityApplicationFollowUpsWithUnapprovedReports()\r\n .then((res) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DASHBOARD_ACTIONS.GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default getDashboardStockInfoAction;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\nimport { EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const GET_DASHBOARD_STOCK_INFO_URL = \"Stock/get-lowest-stocks\";\r\nexport const GET_DASHBOARD_NEW_COMPANIES_INFO_URL = \"User/get-unapproved-users\";\r\nexport const GET_DASHBOARD_ONGOING_APPLICATIONS_INFO_URL = \"Applications/get-pending-applications\";\r\nexport const GET_DASHBOARD_NOTIFICATIONS_INFO_URL = \"UserNotifications/get-notifications\";\r\nexport const GET_DASHBOARD_UNREAD_NOTIFICATIONS_TOTAL_URL = \"UserNotifications/get-number-of-unread-notifications\";\r\nexport const GET_DASHBOARD_OPPORTUNITIES_INFO_URL = \"opportunity/get-pending-opportunities\";\r\nexport const GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_URL = \"opportunity/get-opportunity-application-followups-with-unapproved-reports\";\r\n\r\nexport function getDashboardStockInfo() {\r\n return axios.get(INTERNAL_API_URL + GET_DASHBOARD_STOCK_INFO_URL, {\r\n params: {\r\n maxResults: 6,\r\n }\r\n });\r\n}\r\n\r\nexport function getDashboardNewCompaniesInfo() {\r\n return axios.get(INTERNAL_API_URL + GET_DASHBOARD_NEW_COMPANIES_INFO_URL, {\r\n params: {\r\n maxResults: 6\r\n }\r\n });\r\n}\r\n\r\nexport function getDashboardOnGoingApplicationsInfo() {\r\n return axios.get(INTERNAL_API_URL + GET_DASHBOARD_ONGOING_APPLICATIONS_INFO_URL);\r\n}\r\n\r\nexport function getDashboardNotificationsInfo(formData) {\r\n return axios.post(EXTERNAL_API_URL + GET_DASHBOARD_NOTIFICATIONS_INFO_URL, formData);\r\n}\r\n\r\nexport function getDashboardUnreadNotificationsCountInfo() {\r\n return axios.get(EXTERNAL_API_URL + GET_DASHBOARD_UNREAD_NOTIFICATIONS_TOTAL_URL);\r\n}\r\n\r\nexport function getDashboardOpportunities() {\r\n return axios.get(INTERNAL_API_URL + GET_DASHBOARD_OPPORTUNITIES_INFO_URL);\r\n}\r\n\r\nexport function getOpportunityApplicationFollowUpsWithUnapprovedReports() {\r\n return axios.get(INTERNAL_API_URL + GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_URL);\r\n }\r\n\r\n\r\n","const componentStyles = (theme) => ({\r\n avatarRoot: {\r\n width: \"35px\",\r\n height: \"35px\",\r\n fontWeight: 600,\r\n fontSize: \"12.25px\",\r\n lineHeight: \"17px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n backgroundColor: theme.palette.primary.main\r\n },\r\n cardHeaderCounter: {\r\n fontSize: \"40px !important\",\r\n fontWeight: \"600\",\r\n color: theme.palette.white.main\r\n },\r\n actionsCell: {\r\n textAlign: \"right\"\r\n },\r\n errorIcon: {\r\n color: theme.palette.error.main,\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n dividerRoot: {\r\n width: \"2px\",\r\n },\r\n readNotificationDividerRoot: {\r\n backgroundColor: theme.palette.primary.main + \"!important\",\r\n },\r\n cellTextRoot: {\r\n fontSize: \".65rem\",\r\n },\r\n cellTitleTextRoot: {\r\n fontWeight: \"bold\",\r\n },\r\n cardHeaderDashboard: {\r\n position: \"relative\",\r\n zIndex: '1', \r\n backgroundColor: theme.palette.transparent.main, \r\n height: '136px'\r\n },\r\n cardTitle: {\r\n color: theme.palette.white.main,\r\n fontSize: \"20px\",\r\n fontWeight: \"600\",\r\n },\r\n cardHeaderAction: {\r\n marginTop: \"5px !important\"\r\n },\r\n link: {\r\n textTransform: \"uppercase\",\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n textDecoration: \"none\",\r\n color: theme.palette.primary.mediumBlue,\r\n },\r\n },\r\n backgroundImage: {\r\n height: \"136px\", \r\n width: \"100%\", \r\n objectFit: \"cover\",\r\n position: \"absolute\"\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","import React, { useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { getDashboardOnGoingApplicationsInfoAction } from \"redux/actions/dashboardAction\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core components\r\nimport componentStyles from \"assets/theme/components/cards/dashboard/card-dashboard-generic.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { getNameInitials } from \"utils/converters\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CardOnGoingApplications(props) {\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_GovernmentProgramField_short),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumApplicationField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumBIField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_UserNameField),\r\n intl.formatMessage(labels.Label_UserCodeField_short),\r\n \"\",\r\n ];\r\n\r\n useEffect(() => {\r\n props.getDashboardOnGoingApplicationsInfo();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n {intl.formatMessage(titles.Title_Admin_Dashboard_CardOnGoingApplications)}\r\n \r\n \r\n \r\n \r\n \r\n {props.dashboardState?.dashboardOnGoingApplicationsCount\r\n ? props.dashboardState?.dashboardOnGoingApplicationsCount\r\n : 0}\r\n \r\n \r\n \r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(labels.Label_SeeMore)}\r\n \r\n }\r\n >\r\n {props.dashboardState?.dashboardOnGoingApplicationsInfo !== undefined &&\r\n props.dashboardState?.dashboardOnGoingApplicationsInfo?.length > 0 && (\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {props.dashboardState?.dashboardOnGoingApplicationsInfo.map((prop, key) => (\r\n \r\n {prop.governmentProgramName}\r\n {prop.applicationNumber}\r\n {prop.identityCard}\r\n \r\n {prop.name}\r\n \r\n {prop.userCode}\r\n \r\n \r\n {prop.userAvatar ? (\r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(prop.name)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDashboardOnGoingApplicationsInfo: () => dispatch(getDashboardOnGoingApplicationsInfoAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardOnGoingApplications);\r\n","import React, { useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { getDashboardNewCompaniesInfoAction } from \"redux/actions/dashboardAction\";\r\nimport { Link } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport { getNameInitials } from \"utils/converters\";\r\nimport { USER_TYPE } from \"utils/consts\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core components\r\nimport componentStyles from \"assets/theme/components/cards/dashboard/card-dashboard-generic.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Nome\", \"\", \"Código do Alvará\", \"Província\", \"NIF\", \"\"];\r\n\r\nfunction CardNewCompanies(props) {\r\n const theme = useTheme();\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n\r\n useEffect(() => {\r\n props.getDashboardNewCompaniesInfo();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {\"\"} \r\n \r\n \r\n Novas Empresas a Validar\r\n \r\n \r\n \r\n \r\n \r\n {props.dashboardState?.dashboardNewCompaniesCount\r\n ? props.dashboardState?.dashboardNewCompaniesCount\r\n : 0}\r\n \r\n \r\n \r\n \r\n }\r\n action={\r\n \r\n Ver mais\r\n \r\n }\r\n >\r\n {props.dashboardState?.dashboardNewCompaniesInfo !== undefined &&\r\n props.dashboardState?.dashboardNewCompaniesInfo?.length > 0 && (\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {props.dashboardState?.dashboardNewCompaniesInfo?.map((prop, key) => (\r\n \r\n \r\n {prop.name}\r\n \r\n \r\n \r\n {prop.userAvatar ? (\r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(prop.name)}\r\n \r\n )}\r\n \r\n \r\n {prop.permitCode}\r\n {prop.province}\r\n {prop.taxIdNumber}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDashboardNewCompaniesInfo: () => dispatch(getDashboardNewCompaniesInfoAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardNewCompanies);\r\n","import React from 'react';\r\nimport Chip from \"@material-ui/core/Chip\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport ErrorOutlineIcon from '@material-ui/icons/ErrorOutline';\r\nimport { TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\n\r\nexport default function TableStateChip(props) {\r\n const theme = useTheme();\r\n \r\n const useStyles = makeStyles((theme) => ({\r\n root: {\r\n display: \"flex\",\r\n justifyContent: \"normal\",\r\n listStyle: \"none\",\r\n padding: theme.spacing(0.5),\r\n margin: 0,\r\n width: \"100%\",\r\n },\r\n chip: {\r\n margin: theme.spacing(0.5),\r\n },\r\n label: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"10px\",\r\n lineHeight: \"14px\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n dot: {\r\n height: \"15px\",\r\n width: \"15px\",\r\n borderRadius: \"50%\",\r\n display: \"inline-block\",\r\n margin: \"0px 0px 0px -15px\",\r\n },\r\n outlined: {\r\n border: \"2px solid \" + theme.palette.gray[500],\r\n borderRadius: \"20px\",\r\n },\r\n errorIcon: {\r\n color: theme.palette.error.main,\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n }));\r\n const classes = useStyles();\r\n\r\n const generateChip = (label, color, showErrorIcon) => {\r\n return (\r\n \r\n :\r\n
\r\n
\r\n }\r\n label={label}\r\n variant=\"outlined\"\r\n />\r\n\r\n );\r\n };\r\n\r\n const renderSwitch = (state, message, showErrorIcon) => {\r\n if (showErrorIcon)\r\n return generateChip(message, \"\", showErrorIcon)\r\n switch (state) {\r\n case TABLE_STATE_CHIP_COLOR.GREEN:\r\n default:\r\n return generateChip(message, theme.palette.tableStateChip.green);\r\n case TABLE_STATE_CHIP_COLOR.RED:\r\n return generateChip(message, theme.palette.tableStateChip.red);\r\n case TABLE_STATE_CHIP_COLOR.YELLOW:\r\n return generateChip(message, theme.palette.tableStateChip.yellow);\r\n case TABLE_STATE_CHIP_COLOR.DARK_ORANGE:\r\n return generateChip(message, theme.palette.tableStateChip.darkOrange);\r\n case TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE:\r\n return generateChip(message, theme.palette.tableStateChip.lightOrange);\r\n case TABLE_STATE_CHIP_COLOR.BLUE:\r\n return generateChip(message, theme.palette.tableStateChip.blue);\r\n }\r\n }\r\n return renderSwitch(props.state, props.message, props.showErrorIcon);\r\n};\r\n\r\n\r\n","import React, { useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { getDashboardStockInfoAction } from \"redux/actions/dashboardAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/lab components\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core components\r\nimport componentStyles from \"assets/theme/components/cards/dashboard/card-dashboard-generic.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Armazém\", \"Especialidade\", \"Stock\", \"Estado\", \"\"];\r\n\r\nfunction CardStock(props) {\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n const theme = useTheme();\r\n\r\n useEffect(() => {\r\n props.getDashboardStockInfo();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const getColor = (quantity) => {\r\n switch (quantity) {\r\n case 1:\r\n case 2:\r\n return TABLE_STATE_CHIP_COLOR.DARK_ORANGE;\r\n case 3:\r\n return TABLE_STATE_CHIP_COLOR.YELLOW;\r\n default:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n }\r\n };\r\n\r\n const getMessage = (quantity) => {\r\n switch (quantity) {\r\n case 0:\r\n return \"Esgotado\";\r\n case 1:\r\n case 2:\r\n return \"A terminar\";\r\n case 3:\r\n return \"Prestes a terminar\";\r\n default:\r\n return \"Em stock\";\r\n }\r\n };\r\n \r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {\"\"} \r\n \r\n \r\n Stock de Kits\r\n \r\n \r\n \r\n \r\n

\r\n \r\n
\r\n \r\n }\r\n action={\r\n \r\n Ver mais\r\n \r\n }\r\n >\r\n {props.dashboardState?.dashboardStockInfo !== undefined &&\r\n props.dashboardState?.dashboardStockInfo?.length > 0 && (\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {props.dashboardState?.dashboardStockInfo?.map((prop, key) => (\r\n \r\n \r\n {prop.warehouse}\r\n \r\n \r\n {prop.category}\r\n \r\n \r\n {prop.stock}\r\n \r\n \r\n \r\n {prop.stock === 0 ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDashboardStockInfo: () => dispatch(getDashboardStockInfoAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardStock);\r\n","import React, { useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport {\r\n getDashboardNotificationsInfoAction,\r\n getDashboardUnreadNotificationsCountInfoAction,\r\n} from \"redux/actions/dashboardAction\";\r\nimport { getNumberOfUnreadNotificationsAction } from \"redux/actions/notificationsAction\";\r\nimport { Link } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport moment from \"moment\";\r\nimport { PAGINATION } from \"utils/consts\";\r\n\r\n// @material-ui/lab components\r\n// core components\r\nimport componentStyles from \"assets/theme/components/cards/dashboard/card-dashboard-generic.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CardNotifications(props) {\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n\r\n const getHours = (date) => {\r\n if (date) return moment(date).format(\"HH:mm\");\r\n };\r\n\r\n const getDate = (date) => {\r\n if (date) return moment(date).format(\"DD/MM/YYYY\");\r\n };\r\n\r\n const getUnreadNotificationsCount = () => {\r\n return props.notificationState?.unreadNotificationsCount >= 0 ? props.notificationState?.unreadNotificationsCount : 0;\r\n };\r\n\r\n useEffect(() => {\r\n let filter = {};\r\n filter[\"lastXNotifications\"] = 3;\r\n filter[\"message\"] = null;\r\n filter[\"originId\"] = null;\r\n filter[\"origin\"] = undefined;\r\n filter[\"onlyUnread\"] = true;\r\n filter[\"search\"] = \"\";\r\n filter[\"pageIndex\"] = 1;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE_DASHBOARD_NOTIFICATIONS;\r\n\r\n props.getDashboardNotificationsInfo(filter);\r\n props.getNumberOfUnreadNotifications();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {\"\"} \r\n \r\n \r\n Notificações por Ler\r\n \r\n \r\n \r\n \r\n {getUnreadNotificationsCount()}\r\n \r\n \r\n \r\n }\r\n action={\r\n \r\n Ver mais\r\n \r\n }\r\n >\r\n {props.dashboardState?.dashboardNotificationsInfo !== undefined &&\r\n props.dashboardState?.dashboardNotificationsInfo?.length > 0 && (\r\n \r\n \r\n \r\n {props.dashboardState?.dashboardNotificationsInfo?.map((prop, key) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {prop.title}\r\n \r\n \r\n {prop.subtitle} \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getHours(prop.date)}\r\n \r\n \r\n {getDate(prop.date)} \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDashboardNotificationsInfo: (formData) => dispatch(getDashboardNotificationsInfoAction(formData)),\r\n getDashboardUnreadNotificationsCountInfo: () => dispatch(getDashboardUnreadNotificationsCountInfoAction()),\r\n getNumberOfUnreadNotifications: () => dispatch(getNumberOfUnreadNotificationsAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardNotifications);\r\n","import React, { useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { getDashboardOpportunitiesAction } from \"redux/actions/dashboardAction\";\r\nimport { Link } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { getNameInitials } from \"utils/converters\";\r\nimport { OPPORTUNITY_STATE_KEY, TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\n\r\nimport componentStyles from \"assets/theme/components/cards/dashboard/card-dashboard-generic.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Tipo de Oferta\", \"\", \"Empresa\", \"Estado\", \"\"];\r\n\r\nfunction CardPendingOpportunities(props) {\r\n const theme = useTheme();\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n \r\n useEffect(() => {\r\n props.getDashboardOpportunities();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const mapOpportunityStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_STATE_KEY.APROVADA:\r\n return TABLE_STATE_CHIP_COLOR.GREEN\r\n case OPPORTUNITY_STATE_KEY.REJEITADA:\r\n return TABLE_STATE_CHIP_COLOR.RED\r\n case OPPORTUNITY_STATE_KEY.SUBMETIDA:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE\r\n case OPPORTUNITY_STATE_KEY.FECHADA:\r\n return TABLE_STATE_CHIP_COLOR.BLUE\r\n default:\r\n return <>;\r\n }\r\n };\r\n \r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {\"\"} \r\n \r\n \r\n Ofertas a Aprovar\r\n \r\n \r\n \r\n \r\n \r\n {props.dashboardState?.dashboardOpportunitiesCount\r\n ? props.dashboardState?.dashboardOpportunitiesCount\r\n : 0}\r\n \r\n \r\n \r\n \r\n }\r\n action={\r\n \r\n Ver mais\r\n \r\n }\r\n >\r\n {props.dashboardState?.dashboardOpportunitiesInfo !== undefined &&\r\n props.dashboardState?.dashboardOpportunitiesInfo?.length > 0 && (\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {props.dashboardState?.dashboardOpportunitiesInfo?.map(\r\n (prop, key) => (\r\n \r\n \r\n {prop.opportunityType}\r\n \r\n \r\n \r\n {prop.userAvatar ? (\r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(prop.name)}\r\n \r\n )}\r\n \r\n \r\n \r\n {prop.name}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n )}\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDashboardOpportunities: () => dispatch(getDashboardOpportunitiesAction()),\r\n});\r\n\r\nexport default connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n)(CardPendingOpportunities);\r\n","import React, { useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/cards/dashboard/card-dashboard-generic.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { getOpportunityApplicationFollowUpsWithUnapprovedReportsAction } from \"redux/actions/dashboardAction\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY, TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Nº Candidatura\", \"Empresa\", \"Candidato\", \"Estado\", \"\"];\r\n\r\nfunction CardUnapprovedFeedbackReports(props) {\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n const theme = useTheme();\r\n\r\n useEffect(() => {\r\n props.getOpportunityApplicationFollowUpsWithUnapprovedReports();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const mapOpportunityFollowUpStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.PORINICIAR:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER:\r\n return TABLE_STATE_CHIP_COLOR.GREEN\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.TERMINADO:\r\n return TABLE_STATE_CHIP_COLOR.RED\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {\"\"} \r\n \r\n \r\n Estágios com Formulários a Aprovar\r\n \r\n \r\n \r\n \r\n \r\n {props.dashboardState?.dashboardFollowUpsWithUnapprovedReportsInfo?.totalFollowUpsCount\r\n ? props.dashboardState?.dashboardFollowUpsWithUnapprovedReportsInfo?.totalFollowUpsCount\r\n : 0}\r\n \r\n \r\n \r\n \r\n }\r\n action={\r\n \r\n Ver mais\r\n \r\n }\r\n >\r\n\r\n {props?.dashboardState?.dashboardFollowUpsWithUnapprovedReportsInfo?.opportunityApplicationsFollowUp !== undefined &&\r\n props?.dashboardState?.dashboardFollowUpsWithUnapprovedReportsInfo?.opportunityApplicationsFollowUp?.length > 0 && (\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {props?.dashboardState?.dashboardFollowUpsWithUnapprovedReportsInfo?.opportunityApplicationsFollowUp?.map((prop, key) => (\r\n \r\n \r\n {prop.candidateCode}\r\n \r\n \r\n {prop.companyName}\r\n \r\n \r\n {prop.userName}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getOpportunityApplicationFollowUpsWithUnapprovedReports: () => dispatch(getOpportunityApplicationFollowUpsWithUnapprovedReportsAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardUnapprovedFeedbackReports);\r\n","const componentStyles = (theme) => ({\r\n containerRoot: {\r\n marginTop: \"12rem\",\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n gridItemRoot: {\r\n [theme.breakpoints.up(\"xl\")]: {\r\n marginBottom: \"0!important\",\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","const componentStyles = (theme) => ({\r\n cardDeck: {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n \"& .MuiCard-root\": {\r\n marginBottom: \"30px\",\r\n },\r\n [theme.breakpoints.up(\"sm\")]: {\r\n display: \"flex\",\r\n flexFlow: \"row wrap\",\r\n marginLeft: \"-15px\",\r\n marginRight: \"-15px\",\r\n \"& .MuiCard-root\": {\r\n flex: \"1 0\",\r\n marginRight: \"15px\",\r\n marginLeft: \"15px\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport ReactHtmlParser from \"react-html-parser\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction NewsModal(props) {\r\n const classes = useStylesGeneric();\r\n\r\n return (\r\n \r\n Nova Versão do INEFOP 360! \r\n \r\n \r\n \r\n \r\n {ReactHtmlParser(props.newsMessage)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n OK\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(NewsModal);\r\n","import { getApplicationVersion } from \"crud/applicationconfiguration.crud\";\r\n\r\nimport { USERS } from \"utils/actionsConsts\";\r\n\r\nexport const getApplicationVersionAction =\r\n (userType, date) => async (dispatch) => {\r\n dispatch({\r\n type: USERS.GET_APPLICATION_VERSION_LOADING,\r\n payload: true,\r\n });\r\n getApplicationVersion(userType, date)\r\n .then((res) => {\r\n dispatch({\r\n type: USERS.LAST_LOGIN,\r\n payload: {\r\n lastLoginDate: res.data.lastLoginDate,\r\n showNews: res.data.showNews,\r\n news: res.data.versionMessage,\r\n },\r\n });\r\n })\r\n .catch(() => {\r\n dispatch({\r\n type: USERS.GET_APPLICATION_VERSION_LOADING,\r\n payload: false,\r\n });\r\n });\r\n };\r\n","import axios from \"axios\";\r\nimport { EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const GET_APPLICATION_VERSION_URL = \"AppConfiguration/get-web-version\";\r\nexport const GET_USER_LAST_LOGIN_URL = \"AppConfiguration/get-user-last-login\";\r\n\r\nexport function getApplicationVersion(_userType,_date) {\r\n return axios.get(EXTERNAL_API_URL + GET_APPLICATION_VERSION_URL, {\r\n params: {\r\n userType: _userType,\r\n date: _date,\r\n },\r\n });\r\n}\r\n\r\n\r\n","import React, {useEffect, useState} from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n// @material-ui/icons components\r\n\r\n// core components\r\nimport CardOnGoingApplications from \"components/Cards/Dashboard/CardOnGoingApplications.js\";\r\nimport CardNewCompanies from \"components/Cards/Dashboard/CardNewCompanies.js\";\r\nimport CardStock from \"components/Cards/Dashboard/CardStock\";\r\nimport CardNotifications from \"components/Cards/Dashboard/CardNotifications\";\r\nimport CardPendingOpportunities from \"components/Cards/Dashboard/CardPendingOpportunities\";\r\nimport CardUnapprovedFeedbackReports from \"components/Cards/Dashboard/CardUnapprovedFeedbackReports\";\r\nimport componentStyles from \"assets/theme/views/admin/dashboard.js\";\r\nimport componentStylesCardDeck from \"assets/theme/components/cards/card-deck.js\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { OPERATIONS } from \"utils/consts\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport NewsModal from \"./NewsModal\"\r\nimport { getApplicationVersionAction } from \"redux/actions/applicationConfigurationAction\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesCardDeck = makeStyles(componentStylesCardDeck);\r\n\r\nfunction Dashboard(props) {\r\n const classes = { ...useStyles(), ...useStylesCardDeck() };\r\n const [showNewsModal, setShowNewsModal] = useState(false);\r\n\r\n useEffect(() => {\r\n if (props.authState.loggedIn !== undefined) {\r\n props.getApplicationVersion(\"3\", props.authState.lastLoginDate);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.authState.showNews) {\r\n setShowNewsModal(true);\r\n }\r\n }, [props.authState.showNews]);\r\n\r\n function handleCloseNewsModal() {\r\n setShowNewsModal(false);\r\n }\r\n\r\n return (\r\n <> \r\n \r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.DASHBOARD_ONGOING_APPLICATIONS\r\n ) && (\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.DASHBOARD_STOCKS\r\n ) && (\r\n \r\n \r\n \r\n )} \r\n\r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.DASHBOARD_NEW_COMPANIES\r\n ) && (\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.DASHBOARD_OPPORTUNITIES\r\n ) && (\r\n \r\n \r\n \r\n )}\r\n\r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.DASHBOARD_OPPORTUNITIES\r\n ) && (\r\n \r\n \r\n \r\n )} \r\n\r\n {checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.DASHBOARD_NOTIFICATIONS\r\n ) && (\r\n \r\n \r\n \r\n )}\r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getApplicationVersion: (data, date) => dispatch(getApplicationVersionAction(data, date)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Dashboard);\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Backdrop from \"@material-ui/core/Backdrop\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n backdrop: {\r\n zIndex: theme.zIndex.drawer + 1,\r\n color: theme.palette.white.main,\r\n position: \"absolute\",\r\n top: \"74px\",\r\n backgroundColor: \"#00000021\",\r\n },\r\n}));\r\n\r\nexport default function TableBackdrop(props) {\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","export function groupBy(list, keyGetter) {\r\n const map = new Map();\r\n list.forEach((item) => {\r\n const key = keyGetter(item);\r\n const collection = map.get(key);\r\n if (!collection) {\r\n map.set(key, [item]);\r\n } else {\r\n collection.push(item);\r\n }\r\n });\r\n return map;\r\n}\r\n\r\nexport const ArrayUtils = {\r\n NullOrEmpty: function (array) {\r\n return array === undefined || array.length === 0;\r\n },\r\n};\r\n","const componentStyles = (theme) => ({\r\n sentIcon: {\r\n color: theme.palette.primary.mediumBlue,\r\n },\r\n dividerRoot: {\r\n color: theme.palette.info.grey,\r\n width: \"2px\",\r\n },\r\n readNotificationDividerRoot: {\r\n backgroundColor: theme.palette.primary.main + \"!important\",\r\n },\r\n AccordionRoot: {\r\n width: \"100%\",\r\n },\r\n cellTextRoot: {\r\n marginTop: \"7px\",\r\n fontStyle: \"normal\",\r\n fontSize: \"13px\",\r\n lineHeight: \"18px\",\r\n color: theme.palette.primary.main,\r\n },\r\n cellTitleTextRoot: {\r\n fontStyle: \"normal\",\r\n fontSize: \"13px\",\r\n lineHeight: \"18px\",\r\n color: theme.palette.gray[600],\r\n fontWeight: \"bold\",\r\n },\r\n typographyOrigin: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n color: theme.palette.gray[600],\r\n },\r\n typographySentBy: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n color: theme.palette.gray[600],\r\n },\r\n typographySubject: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n color: theme.palette.gray[700],\r\n },\r\n typographyMessage: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n color: theme.palette.gray[700],\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n//import { getDashboardNotificationsInfoAction } from \"redux/actions/dashboardAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Accordion from \"@material-ui/core/Accordion\";\r\nimport AccordionSummary from \"@material-ui/core/AccordionSummary\";\r\nimport AccordionDetails from \"@material-ui/core/AccordionDetails\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport { CardHeader } from \"@material-ui/core\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport SendIcon from \"@material-ui/icons/Send\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\nimport moment from \"moment\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\n\r\n// @material-ui/lab components\r\n// core components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport componentStylesNotifications from \"assets/theme/components/cards/dashboard/card-notifications-dashboard.js\";\r\nimport { getNotificationsAction, updateNotificationAction } from \"redux/actions/notificationsAction\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst useStylesNotifications = makeStyles(componentStylesNotifications);\r\n\r\nfunction CardNotificationsDashboard(props) {\r\n const classes = { ...useStylesGeneric(), ...useStylesNotifications() };\r\n const theme = useTheme();\r\n const [notificationsList, setNotificationsList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.notificationState.notifications_list)) {\r\n setNotificationsList(props.notificationState.notifications_list);\r\n } else {\r\n setNotificationsList([]);\r\n }\r\n }, [props.notificationState.notifications_list]);\r\n\r\n const getHours = (date) => {\r\n if (date) return moment(date).format(\"HH:mm\");\r\n };\r\n const getDate = (date) => {\r\n if (date) return moment(date).format(\"DD/MM/YYYY\");\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n Lista de Notificações\r\n
\r\n
\r\n {\"(\"}\r\n {props.notificationState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n {notificationsList !== undefined && notificationsList.length > 0 && (\r\n \r\n \r\n \r\n {notificationsList?.map((prop, key) => (\r\n \r\n \r\n \r\n {\r\n if (val && !prop.isRead) props.updateNotification(prop.id);\r\n }}\r\n >\r\n \r\n }\r\n aria-controls={\"notification-content\" + key}\r\n id={\"notification-content\" + key}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {prop.origin}\r\n \r\n \r\n {prop.sentBy}\r\n \r\n \r\n \r\n \r\n {prop.title}\r\n \r\n \r\n \r\n {prop.subtitle}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {getHours(prop.date)}\r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {getDate(prop.date)}{\" \"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {prop.message}\r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n )}\r\n {notificationsList.length === 0 && (\r\n Não foram encontrados resultados para esta pesquisa.\r\n )}\r\n\r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getNotifications: () => dispatch(getNotificationsAction()),\r\n updateNotification: (notificationId) => dispatch(updateNotificationAction(notificationId)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardNotificationsDashboard);\r\n","export function notificationsMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n search: formData.search !== undefined ? formData.search : \"\",\r\n origin: formData.origin?.code\r\n };\r\n }\r\n }\r\n \r\n export default notificationsMap;\r\n ","import { React, useEffect, useState } from \"react\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n\r\nimport { getNotificationsAction } from \"redux/actions/notificationsAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET, PAGINATION } from \"utils/consts\";\r\nimport clsx from \"clsx\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport notificationsMap from \"mappers/notificationsMap\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n const [filter, setFilter] = useState({\r\n search: \"\",\r\n origin: undefined,\r\n });\r\n\r\n const cleanFilter = () => {\r\n setValue(\"search\", \"\");\r\n setValue(\"origin\", undefined);\r\n\r\n setFilter(0);\r\n setFilterCounter(0);\r\n };\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n let filter = notificationsMap(data);\r\n filter[\"lastXNotifications\"] = 1000;\r\n filter[\"message\"] = data.search;\r\n filter[\"originId\"] = data.origin?.code ?? null;\r\n filter[\"onlyUnread\"] = false;\r\n filter[\"pageIndex\"] = 1;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n setFilter(filter);\r\n if (props.page === 1) props.getNotifications(filter);\r\n else props.handleChangePage(1);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.ORIGIN] === undefined || props.dataSetState[DATASET.ORIGIN] === [])\r\n props.getDataSetByName(DATASET.ORIGIN);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"lastXNotifications\"] = 1000;\r\n temp_filter[\"message\"] = null;\r\n temp_filter[\"originId\"] = null;\r\n temp_filter[\"onlyUnread\"] = false;\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n console.log(temp_filter);\r\n props.getNotifications(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n return (\r\n \r\n \r\n
Pesquisar Notificações
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Pesquisar\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"search\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"search\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Origem\r\n \r\n \r\n \r\n\r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n Pesquisar\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name) => dispatch(getDataSetByNameAction(name)),\r\n getNotifications: (message, origin, onlyUnread, maxResult) =>\r\n dispatch(getNotificationsAction(message, origin, onlyUnread, maxResult)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FilterSection);\r\n","import { React, useState } from \"react\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { connect } from \"react-redux\";\r\n\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nimport CardNotificationsDashboard from \"components/Cards/Dashboard/CardNotificationsDashboard\";\r\nimport FilterSection from \"./FilterSection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Notifications() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {\r\n handleChangePage(undefined, value);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(Notifications);\r\n","const componentStyles = (theme) => ({\r\n header: {\r\n position: \"relative\",\r\n backgroundColor: theme.palette.info.main,\r\n paddingBottom: \"4.5rem\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n gridItem: {\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n },\r\n buttonRoot: {\r\n color: theme.palette.primary.main,\r\n backgroundColor: theme.palette.white.main,\r\n borderColor: theme.palette.white.main,\r\n \"&:first-of-type\": { marginRight: \".75rem\" },\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.white.main,\r\n borderColor: theme.palette.white.main,\r\n color: theme.palette.dark.main,\r\n },\r\n },\r\n displayInlineBlock: {\r\n display: \"inline-block\",\r\n },\r\n mb0: {\r\n marginBottom: 0,\r\n },\r\n breadcrumbRoot: {\r\n display: \"none\",\r\n [theme.breakpoints.up(\"md\")]: {\r\n marginLeft: \"1.5rem\",\r\n display: \"inline-block\",\r\n },\r\n },\r\n breadcrumbOl: {\r\n background: theme.palette.transparent.main,\r\n marginBottom: 0,\r\n },\r\n breadcrumbLi: {\r\n \"& a\": {\r\n color: theme.palette.gray[100],\r\n textDecoration: \"none\",\r\n fontWeight: 600,\r\n \"&:hover\": {\r\n color: theme.palette.white.main,\r\n textDecoration: \"none\",\r\n },\r\n },\r\n },\r\n breadcrumbSeparator: {\r\n color: theme.palette.white.main,\r\n },\r\n breadcrumbActive: {\r\n fontSize: \".875rem\",\r\n color: theme.palette.gray[300],\r\n fontWeight: 600,\r\n },\r\n textWhite: {\r\n color: theme.palette.white.main,\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n// import Button from \"@material-ui/core/Button\";\r\nimport Breadcrumbs from \"@material-ui/core/Breadcrumbs\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Link from \"@material-ui/core/Link\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/icons components\r\nimport Home from \"@material-ui/icons/Home\";\r\n\r\n// core components\r\n\r\nimport componentStyles from \"assets/theme/components/headers/simple-header.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nconst SimpleHeader = ({ section, subsection }) => {\r\n const classes = useStyles();\r\n return (\r\n <>\r\n
\r\n \r\n \r\n \r\n \r\n {section}\r\n \r\n \r\n e.preventDefault()}\r\n >\r\n \r\n \r\n e.preventDefault()}\r\n >\r\n {subsection}\r\n \r\n \r\n {section}\r\n \r\n \r\n \r\n {/* \r\n \r\n New\r\n \r\n \r\n Filters\r\n \r\n */}\r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nSimpleHeader.propTypes = {\r\n section: PropTypes.string,\r\n subsection: PropTypes.string,\r\n};\r\n\r\nexport default SimpleHeader;\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n cardHeader: {\r\n backgroundColor: \"initial\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n mb0: {\r\n marginBottom: \"0!important\",\r\n },\r\n boxNameCategory : { \r\n marginTop:\"-13px\"\r\n },\r\n gridDeleteIconRoot: {\r\n textAlign:\"center\",\r\n [theme.breakpoints.down(\"sm\")]: {\r\n marginTop: \"-15px\",\r\n marginBottom: \"5px\",\r\n },\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","const componentStyles = (theme) => ({\r\n inputSmall: {\r\n height: \"calc(.45em + 1.25rem + 5px)\",\r\n lineHeight: 1.5,\r\n padding: \".25rem .5rem\",\r\n borderRadius: \".25rem\",\r\n },\r\n inputLarge: {\r\n fontSize: \"1rem!important\",\r\n height: \"calc(2.25em + 1.25rem + 5px)\",\r\n lineHeight: 1.5,\r\n padding: \".875rem 1rem\",\r\n borderRadius: \".4375rem\",\r\n },\r\n formControlCheckboxLabelRoot: {\r\n position: \"relative\",\r\n display: \"flex\",\r\n minHeight: \"1.5rem\",\r\n WebkitPrintColorAdjust: \"exact\",\r\n marginLeft: \"17px\",\r\n marginTop: \"20px\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n marginLeft: \"0\",\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n marginTop: \"0\",\r\n },\r\n },\r\n formControlCheckboxLabelLabel: {\r\n cursor: \"pointer\",\r\n fontSize: \".875rem\",\r\n position: \"relative\",\r\n verticalAlign: \"top\",\r\n display: \"inline-block\",\r\n color: theme.palette.gray[600],\r\n },\r\n formControlLabelCheckboxInTableHeader: {\r\n fontSize:\".7rem\",\r\n fontWeight: \"650\",\r\n color:theme.palette.gray[900]\r\n },\r\n formControlLabelNoMargin: {\r\n margin: 0\r\n },\r\n formRatingInTableCell: {\r\n marginBottom: \"0px\",\r\n },\r\n formTextInputInTableCell: {\r\n marginBottom: \"10px\"\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Radio from \"@material-ui/core/Radio\";\r\nimport RadioGroup from \"@material-ui/core/RadioGroup\";\r\nimport Select from \"@material-ui/core/Select\";\r\n// @material-ui/icons components\r\nimport KeyboardArrowDown from \"@material-ui/icons/KeyboardArrowDown\";\r\n// core components\r\nimport SimpleHeader from \"components/Headers/SimpleHeader.js\";\r\n\r\nimport componentStyles from \"assets/theme/views/admin/elements.js\";\r\nimport componentStylesForms from \"assets/theme/components/forms.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesForms = makeStyles(componentStylesForms);\r\n\r\nconst Elements = () => {\r\n const classes = { ...useStyles(), ...useStylesForms() };\r\n const theme = useTheme();\r\n return (\r\n <>\r\n \r\n {/* Page content */}\r\n \r\n {/* Table */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n One of three cols\r\n \r\n \r\n \r\n \r\n \r\n One of three cols\r\n \r\n \r\n \r\n \r\n \r\n One of three cols\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n One of four cols\r\n \r\n \r\n \r\n \r\n \r\n One of four cols\r\n \r\n \r\n \r\n \r\n \r\n One of four cols\r\n \r\n \r\n \r\n \r\n \r\n One of four cols\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n One of two cols\r\n \r\n \r\n \r\n \r\n \r\n One of two cols\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Email address\r\n \r\n \r\n \r\n Example select\r\n \r\n \r\n \r\n \r\n \r\n Example multiple select\r\n \r\n \r\n 1\r\n 2\r\n 3\r\n 4\r\n 5\r\n \r\n \r\n \r\n \r\n Example textarea\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Text\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Search\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Email\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Url\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Phone\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Password\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Number\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Datetime\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Date\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Month\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Week\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Time\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Color\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Large input\r\n \r\n \r\n \r\n Default input\r\n \r\n \r\n \r\n Small input\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Basic textarea\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Basic select\r\n \r\n \r\n \r\n \r\n \r\n Disabled basic select\r\n \r\n \r\n 1\r\n 2\r\n 3\r\n 4\r\n 5\r\n \r\n \r\n \r\n \r\n Multiple select\r\n \r\n \r\n 1\r\n 2\r\n 3\r\n 4\r\n 5\r\n \r\n \r\n \r\n \r\n Disabled multiple select\r\n \r\n \r\n 1\r\n 2\r\n 3\r\n 4\r\n 5\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Browse\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n label=\"Unchecked\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n }\r\n label=\"Checked\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n }\r\n label=\"Unchecked\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n \r\n }\r\n label=\"Checked\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n \r\n \r\n \r\n }\r\n label=\"Unchecked\"\r\n value=\"1\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n }\r\n label=\"Checked\"\r\n labelPlacement=\"end\"\r\n value=\"2\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n \r\n \r\n }\r\n label=\"Unchecked\"\r\n value=\"1\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n }\r\n label=\"Checked\"\r\n labelPlacement=\"end\"\r\n value=\"2\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Elements;\r\n","/* eslint-disable */\r\nimport React from \"react\";\r\nimport PropTypes from \"prop-types\";\r\n\r\nfunction uniq(arr) {\r\n let out = [];\r\n\r\n for (let i = 0; i < arr.length; i++) {\r\n if (out.indexOf(arr[i]) === -1) {\r\n out.push(arr[i]);\r\n }\r\n }\r\n\r\n return out;\r\n}\r\n\r\n/* istanbul ignore next */\r\nfunction getClipboardData(e) {\r\n if (window.clipboardData) {\r\n return window.clipboardData.getData(\"Text\");\r\n }\r\n\r\n if (e.clipboardData) {\r\n return e.clipboardData.getData(\"text/plain\");\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\nfunction defaultRenderTag(props) {\r\n let {\r\n tag,\r\n key,\r\n disabled,\r\n onRemove,\r\n classNameRemove,\r\n getTagDisplayValue,\r\n ...other\r\n } = props;\r\n return (\r\n \r\n {getTagDisplayValue(tag)}\r\n {!disabled && (\r\n onRemove(key)} />\r\n )}\r\n \r\n );\r\n}\r\n\r\ndefaultRenderTag.propTypes = {\r\n key: PropTypes.number,\r\n tag: PropTypes.string,\r\n onRemove: PropTypes.func,\r\n classNameRemove: PropTypes.string,\r\n getTagDisplayValue: PropTypes.func,\r\n};\r\n\r\nfunction defaultRenderInput({ addTag, ...props }) {\r\n let { onChange, value, ...other } = props;\r\n return ;\r\n}\r\n\r\ndefaultRenderInput.propTypes = {\r\n value: PropTypes.string,\r\n onChange: PropTypes.func,\r\n addTag: PropTypes.func,\r\n};\r\n\r\nfunction defaultRenderLayout(tagComponents, inputComponent) {\r\n return (\r\n \r\n {tagComponents}\r\n {inputComponent}\r\n \r\n );\r\n}\r\n\r\nfunction defaultPasteSplit(data) {\r\n return data.split(\" \").map((d) => d.trim());\r\n}\r\n\r\nconst defaultInputProps = {\r\n className: \"react-tagsinput-input\",\r\n placeholder: \"Add a tag\",\r\n};\r\n\r\nconst TagsInput = React.forwardRef((props, ref) => {\r\n const divElementRef = React.useRef(null);\r\n const inputElementRef = React.useRef(null);\r\n const [tagState, setTagState] = React.useState(\"\");\r\n const [isFocusedState, setIsFocusedState] = React.useState(false);\r\n React.useEffect(() => {\r\n if (hasControlledInputHook() && !inputValueHook(props)) {\r\n } else {\r\n setTagState(inputValueHook(props));\r\n }\r\n }, [props]);\r\n const {\r\n value,\r\n onChange,\r\n tagProps,\r\n renderLayout,\r\n renderTag,\r\n renderInput,\r\n addKeys,\r\n removeKeys,\r\n className,\r\n focusedClassName,\r\n addOnBlur,\r\n addOnPaste,\r\n inputProps,\r\n pasteSplit,\r\n onlyUnique,\r\n maxTags,\r\n validate,\r\n validationRegex,\r\n disabled,\r\n tagDisplayProp,\r\n inputValue,\r\n onChangeInput,\r\n ...other\r\n } = props;\r\n const _getTagDisplayValueHook = (tagInner) => {\r\n if (tagDisplayProp) {\r\n return tagInner[tagDisplayProp];\r\n }\r\n\r\n return tagInner;\r\n };\r\n\r\n const _makeTagHook = (tagInner) => {\r\n if (tagDisplayProp) {\r\n return {\r\n [tagDisplayProp]: tagInner,\r\n };\r\n }\r\n\r\n return tagInner;\r\n };\r\n\r\n const _removeTagHook = (indexInner) => {\r\n let valueInner = value.concat([]);\r\n if (indexInner > -1 && indexInner < valueInner.length) {\r\n let changed = valueInner.splice(indexInner, 1);\r\n onChange(valueInner, changed, [indexInner]);\r\n }\r\n };\r\n\r\n const _clearInputHook = () => {\r\n if (hasControlledInputHook()) {\r\n onChangeInput(\"\");\r\n } else {\r\n setTagState(\"\");\r\n }\r\n };\r\n\r\n const _tagHook = () => {\r\n if (hasControlledInputHook()) {\r\n return inputValue;\r\n }\r\n\r\n return tagState;\r\n };\r\n\r\n const _addTagsHook = (tagsInner) => {\r\n let { onValidationReject } = props;\r\n\r\n if (onlyUnique) {\r\n tagsInner = uniq(tagsInner);\r\n tagsInner = tagsInner.filter((tag) =>\r\n value.every(\r\n (currentTag) =>\r\n _getTagDisplayValueHook(currentTag) !== _getTagDisplayValueHook(tag)\r\n )\r\n );\r\n }\r\n\r\n const rejectedTags = tagsInner.filter(\r\n (tag) => !_validateHook(_getTagDisplayValueHook(tag))\r\n );\r\n tagsInner = tagsInner.filter((tag) =>\r\n _validateHook(_getTagDisplayValueHook(tag))\r\n );\r\n tagsInner = tagsInner.filter((tag) => {\r\n let tagDisplayValueInner = _getTagDisplayValueHook(tag);\r\n if (typeof tagDisplayValueInner.trim === \"function\") {\r\n return tagDisplayValueInner.trim().length > 0;\r\n } else {\r\n return tagDisplayValueInner;\r\n }\r\n });\r\n\r\n if (maxTags >= 0) {\r\n let remainingLimitInner = Math.max(maxTags - value.length, 0);\r\n tagsInner = tagsInner.slice(0, remainingLimitInner);\r\n }\r\n\r\n if (onValidationReject && rejectedTags.length > 0) {\r\n onValidationReject(rejectedTags);\r\n }\r\n\r\n if (tagsInner.length > 0) {\r\n let newValueInner = value.concat(tagsInner);\r\n let indexesInner = [];\r\n for (let i = 0; i < tagsInner.length; i++) {\r\n indexesInner.push(value.length + i);\r\n }\r\n onChange(newValueInner, tagsInner, indexesInner);\r\n _clearInputHook();\r\n return true;\r\n }\r\n\r\n if (rejectedTags.length > 0) {\r\n return false;\r\n }\r\n\r\n _clearInputHook();\r\n return false;\r\n };\r\n\r\n const _validateHook = (tagInner) => {\r\n return validate(tagInner) && validationRegex.test(tagInner);\r\n };\r\n\r\n const _shouldPreventDefaultEventOnAddHook = (\r\n addedInner,\r\n emptyInner,\r\n keyCodeInner\r\n ) => {\r\n if (addedInner) {\r\n return true;\r\n }\r\n\r\n if (keyCodeInner === 13) {\r\n return props.preventSubmit || (!props.preventSubmit && !emptyInner);\r\n }\r\n\r\n return false;\r\n };\r\n\r\n const focusHook = () => {\r\n if (\r\n inputElementRef.current &&\r\n typeof inputElementRef.current.focus === \"function\"\r\n ) {\r\n inputElementRef.current.focus();\r\n }\r\n\r\n handleOnFocusHook();\r\n };\r\n\r\n const blurHook = () => {\r\n if (\r\n inputElementRef.current &&\r\n typeof inputElementRef.current.blur === \"function\"\r\n ) {\r\n inputElementRef.current.blur();\r\n }\r\n\r\n handleOnBlurHook();\r\n };\r\n\r\n const acceptHook = () => {\r\n let tagInner = _tagHook();\r\n\r\n if (tagInner !== \"\") {\r\n tagInner = _makeTagHook(tagInner);\r\n return _addTagsHook([tagInner]);\r\n }\r\n\r\n return false;\r\n };\r\n\r\n const addTagHook = (tagInner) => {\r\n return _addTagsHook([tagInner]);\r\n };\r\n\r\n const clearInputHook = () => {\r\n _clearInputHook();\r\n };\r\n\r\n const handlePasteHook = (e) => {\r\n if (!addOnPaste) {\r\n return;\r\n }\r\n\r\n e.preventDefault();\r\n\r\n let dataInner = getClipboardData(e);\r\n let tagsInner = pasteSplit(dataInner).map((tagInner) =>\r\n _makeTagHook(tagInner)\r\n );\r\n\r\n _addTagsHook(tagsInner);\r\n };\r\n\r\n const handleKeyDownHook = (e) => {\r\n if (e.defaultPrevented) {\r\n return;\r\n }\r\n\r\n const tagInner = _tagHook();\r\n let emptyInner = tagInner === \"\";\r\n let keyCodeInner = e.keyCode;\r\n let keyInner = e.key;\r\n let addInner =\r\n addKeys.indexOf(keyCodeInner) !== -1 || addKeys.indexOf(keyInner) !== -1;\r\n let removeInner =\r\n removeKeys.indexOf(keyCodeInner) !== -1 ||\r\n removeKeys.indexOf(keyInner) !== -1;\r\n\r\n if (addInner) {\r\n let addedInner = acceptHook();\r\n if (\r\n _shouldPreventDefaultEventOnAddHook(\r\n addedInner,\r\n emptyInner,\r\n keyCodeInner\r\n )\r\n ) {\r\n e.preventDefault();\r\n }\r\n }\r\n\r\n if (removeInner && value.length > 0 && emptyInner) {\r\n e.preventDefault();\r\n _removeTagHook(value.length - 1);\r\n }\r\n };\r\n\r\n const handleClickHook = (e) => {\r\n if (e.target === divElementRef.current) {\r\n focusHook();\r\n }\r\n };\r\n\r\n const handleChangeHook = (e) => {\r\n let { onChange } = props.inputProps;\r\n let tagInner = e.target.value;\r\n\r\n if (onChange) {\r\n onChange(e);\r\n }\r\n\r\n if (hasControlledInputHook()) {\r\n onChangeInput(tagInner);\r\n } else {\r\n setTagState(tagInner);\r\n }\r\n };\r\n\r\n const handleOnFocusHook = (e) => {\r\n let { onFocus } = props.inputProps;\r\n\r\n if (onFocus) {\r\n onFocus(e);\r\n }\r\n\r\n setIsFocusedState(true);\r\n };\r\n\r\n const handleOnBlurHook = (e) => {\r\n let { onBlur } = props.inputProps;\r\n\r\n setIsFocusedState(false);\r\n\r\n if (e == null) {\r\n return;\r\n }\r\n\r\n if (onBlur) {\r\n onBlur(e);\r\n }\r\n\r\n if (addOnBlur) {\r\n const tagInner = _makeTagHook(e.target.value);\r\n _addTagsHook([tagInner]);\r\n }\r\n };\r\n\r\n const handleRemoveHook = (tagInner) => {\r\n _removeTagHook(tagInner);\r\n };\r\n\r\n const inputPropsHook = () => {\r\n // eslint-disable-next-line\r\n let { onChange, onFocus, onBlur, ...otherInputProps } = props.inputProps;\r\n\r\n let propsInner = {\r\n ...defaultInputProps,\r\n ...otherInputProps,\r\n };\r\n\r\n if (disabled) {\r\n propsInner.disabled = true;\r\n }\r\n\r\n return propsInner;\r\n };\r\n\r\n const inputValueHook = (propsInner) => {\r\n return propsInner.currentValue || propsInner.inputValue || \"\";\r\n };\r\n\r\n const hasControlledInputHook = () => {\r\n return (\r\n typeof onChangeInput === \"function\" && typeof inputValue === \"string\"\r\n );\r\n };\r\n\r\n let divClassName = className;\r\n if (isFocusedState) {\r\n divClassName = className + \" \" + focusedClassName;\r\n }\r\n\r\n let tagComponents = value.map((tag, index) => {\r\n return renderTag({\r\n key: index,\r\n tag,\r\n onRemove: handleRemoveHook,\r\n disabled,\r\n getTagDisplayValue: _getTagDisplayValueHook,\r\n ...tagProps,\r\n });\r\n });\r\n\r\n let inputComponent = renderInput({\r\n ref: inputElementRef,\r\n value: _tagHook(),\r\n onPaste: handlePasteHook,\r\n onKeyDown: handleKeyDownHook,\r\n onChange: handleChangeHook,\r\n onFocus: handleOnFocusHook,\r\n onBlur: handleOnBlurHook,\r\n addTag: addTagHook,\r\n ...inputPropsHook(),\r\n });\r\n React.useImperativeHandle(ref, () => ({\r\n _getDivElementRef: divElementRef.current,\r\n _getInputElementRef: inputElementRef.current,\r\n props: props,\r\n _getTagState: tagState,\r\n\r\n _getTagDisplayValue: (tagInner) => {\r\n return _getTagDisplayValueHook(tagInner);\r\n },\r\n\r\n _makeTag: (tagInner) => {\r\n return _makeTagHook(tagInner);\r\n },\r\n\r\n _removeTag: (indexInner) => {\r\n _removeTagHook(indexInner);\r\n },\r\n\r\n _clearInput: () => {\r\n _clearInputHook();\r\n },\r\n\r\n _tag: () => {\r\n return _tagHook();\r\n },\r\n\r\n _addTags: (tagsInner) => {\r\n return _addTagsHook(tagsInner);\r\n },\r\n\r\n _validate: (tagInner) => {\r\n return _validateHook(tagInner);\r\n },\r\n\r\n _shouldPreventDefaultEventOnAdd: (addedInner, emptyInner, keyCodeInner) => {\r\n return _shouldPreventDefaultEventOnAddHook(\r\n addedInner,\r\n emptyInner,\r\n keyCodeInner\r\n );\r\n },\r\n\r\n focus: () => {\r\n focusHook();\r\n },\r\n\r\n blur: () => {\r\n blurHook();\r\n },\r\n\r\n accept: () => {\r\n return acceptHook();\r\n },\r\n\r\n addTag: (tagInner) => {\r\n return addTagHook(tagInner);\r\n },\r\n\r\n clearInput: () => {\r\n clearInputHook();\r\n },\r\n\r\n handlePaste: (e) => {\r\n handlePasteHook(e);\r\n },\r\n\r\n handleKeyDown: (e) => {\r\n handleKeyDownHook(e);\r\n },\r\n\r\n handleClick: (e) => {\r\n handleClickHook(e);\r\n },\r\n\r\n handleChange: (e) => {\r\n handleChangeHook(e);\r\n },\r\n\r\n handleOnFocus: (e) => {\r\n handleOnFocusHook(e);\r\n },\r\n\r\n handleOnBlur: (e) => {\r\n handleOnBlurHook(e);\r\n },\r\n\r\n handleRemove: (tagInner) => {\r\n handleRemoveHook(tagInner);\r\n },\r\n\r\n inputProps: () => {\r\n return inputPropsHook();\r\n },\r\n\r\n inputValue: (propsInner) => {\r\n return inputValueHook(propsInner);\r\n },\r\n\r\n hasControlledInput: () => {\r\n return hasControlledInputHook();\r\n },\r\n }));\r\n return (\r\n
\r\n {renderLayout(tagComponents, inputComponent)}\r\n
\r\n );\r\n});\r\n\r\nTagsInput.defaultProps = {\r\n className: \"react-tagsinput\",\r\n focusedClassName: \"react-tagsinput--focused\",\r\n addKeys: [9, 13],\r\n addOnBlur: false,\r\n addOnPaste: false,\r\n inputProps: {},\r\n removeKeys: [8],\r\n renderInput: defaultRenderInput,\r\n renderTag: defaultRenderTag,\r\n renderLayout: defaultRenderLayout,\r\n pasteSplit: defaultPasteSplit,\r\n tagProps: {\r\n className: \"react-tagsinput-tag\",\r\n classNameRemove: \"react-tagsinput-remove\",\r\n },\r\n onlyUnique: false,\r\n maxTags: -1,\r\n validate: () => true,\r\n validationRegex: /.*/,\r\n disabled: false,\r\n tagDisplayProp: null,\r\n preventSubmit: true,\r\n};\r\n\r\nTagsInput.propTypes = {\r\n focusedClassName: PropTypes.string,\r\n addKeys: PropTypes.arrayOf(\r\n PropTypes.oneOfType([PropTypes.number, PropTypes.string])\r\n ),\r\n addOnBlur: PropTypes.bool,\r\n addOnPaste: PropTypes.bool,\r\n currentValue: PropTypes.string,\r\n inputValue: PropTypes.string,\r\n inputProps: PropTypes.object,\r\n onChange: PropTypes.func.isRequired,\r\n onChangeInput: PropTypes.func,\r\n removeKeys: PropTypes.arrayOf(\r\n PropTypes.oneOfType([PropTypes.number, PropTypes.string])\r\n ),\r\n renderInput: PropTypes.func,\r\n renderTag: PropTypes.func,\r\n renderLayout: PropTypes.func,\r\n pasteSplit: PropTypes.func,\r\n tagProps: PropTypes.object,\r\n onlyUnique: PropTypes.bool,\r\n value: PropTypes.array.isRequired,\r\n maxTags: PropTypes.number,\r\n validate: PropTypes.func,\r\n validationRegex: PropTypes.instanceOf(RegExp),\r\n disabled: PropTypes.bool,\r\n tagDisplayProp: PropTypes.string,\r\n preventSubmit: PropTypes.bool,\r\n};\r\n\r\nexport default TagsInput;\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\nimport hexToRgb from \"assets/theme/hex-to-rgb.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n cardHeader: {\r\n backgroundColor: \"initial\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n dropzoneAvatarRoot: {\r\n borderRadius: \".375rem\",\r\n width: \"48px\",\r\n height: \"auto\",\r\n },\r\n dropzoneAvatarImg: {\r\n borderRadius: \".375rem\",\r\n width: \"48px\",\r\n height: \"auto\",\r\n },\r\n sliderBadge: {\r\n backgroundColor: \"rgba(\" + hexToRgb(theme.palette.gray[900]) + \",.7)\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","const componentStyles = (theme) => ({\r\n buttonContainedDefault: {\r\n backgroundColor: theme.palette.dark.main,\r\n borderColor: theme.palette.dark.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.dark.dark,\r\n borderColor: theme.palette.dark.dark,\r\n },\r\n },\r\n buttonContainedPrimary: {\r\n backgroundColor: theme.palette.primary.main,\r\n borderColor: theme.palette.primary.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n borderColor: theme.palette.primary.darkBlue,\r\n },\r\n },\r\n buttonContainedInfo: {\r\n backgroundColor: theme.palette.info.main,\r\n borderColor: theme.palette.info.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.info.dark,\r\n borderColor: theme.palette.info.dark,\r\n },\r\n },\r\n buttonContainedSuccess: {\r\n backgroundColor: theme.palette.success.main,\r\n borderColor: theme.palette.success.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.success.dark,\r\n borderColor: theme.palette.success.dark,\r\n },\r\n },\r\n buttonContainedError: {\r\n backgroundColor: theme.palette.error.main,\r\n borderColor: theme.palette.error.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.error.dark,\r\n borderColor: theme.palette.error.dark,\r\n },\r\n },\r\n buttonContainedWarning: {\r\n backgroundColor: theme.palette.warning.main,\r\n borderColor: theme.palette.warning.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.warning.dark,\r\n borderColor: theme.palette.warning.dark,\r\n },\r\n },\r\n buttonOutlineInfo: {\r\n color: theme.palette.info.main,\r\n borderColor: theme.palette.info.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.info.main,\r\n },\r\n },\r\n buttonOutlineSuccess: {\r\n color: theme.palette.success.main,\r\n borderColor: theme.palette.success.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.success.main,\r\n },\r\n },\r\n buttonOutlineError: {\r\n color: theme.palette.error.main,\r\n borderColor: theme.palette.error.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.error.main,\r\n },\r\n },\r\n buttonOutlineWarning: {\r\n color: theme.palette.warning.main,\r\n borderColor: theme.palette.warning.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.warning.main,\r\n },\r\n },\r\n buttonActive: {\r\n backgroundColor: theme.palette.dark.dark,\r\n borderColor: theme.palette.dark.dark,\r\n },\r\n buttonActivePrimary: {\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n borderColor: theme.palette.primary.darkBlue,\r\n },\r\n buttonActiveSecondary: {\r\n backgroundColor: theme.palette.gray[800],\r\n borderColor: theme.palette.gray[800],\r\n },\r\n buttonActiveInfo: {\r\n backgroundColor: theme.palette.info.dark,\r\n borderColor: theme.palette.info.dark,\r\n },\r\n buttonActiveSuccess: {\r\n backgroundColor: theme.palette.success.dark,\r\n borderColor: theme.palette.success.dark,\r\n },\r\n buttonActiveError: {\r\n backgroundColor: theme.palette.error.dark,\r\n borderColor: theme.palette.error.dark,\r\n },\r\n buttonActiveWarning: {\r\n backgroundColor: theme.palette.warning.dark,\r\n borderColor: theme.palette.warning.dark,\r\n },\r\n buttonDisabled: {\r\n opacity: \".65\",\r\n boxShadow: \"none!important\",\r\n pointerEvents: \"none\",\r\n },\r\n butttonInfoContainedGroup: {\r\n backgroundColor: theme.palette.info.main + \"!important\",\r\n borderColor: theme.palette.info.main + \"!important\",\r\n color: theme.palette.white.main + \"!important\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.info.dark + \"!important\",\r\n borderColor: theme.palette.info.dark + \"!important\",\r\n },\r\n },\r\n // use this when working with small buttons\r\n letterSpacingInherit: {\r\n letterSpacing: \"inherit\",\r\n },\r\n buttonContainedFacebook: {\r\n backgroundColor: theme.palette.facebook.main,\r\n borderColor: theme.palette.facebook.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.facebook.dark,\r\n borderColor: theme.palette.facebook.dark,\r\n },\r\n },\r\n buttonContainedTwitter: {\r\n backgroundColor: theme.palette.twitter.main,\r\n borderColor: theme.palette.twitter.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.twitter.dark,\r\n borderColor: theme.palette.twitter.dark,\r\n },\r\n },\r\n buttonContainedGoogle: {\r\n backgroundColor: theme.palette.google.main,\r\n borderColor: theme.palette.google.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.google.dark,\r\n borderColor: theme.palette.google.dark,\r\n },\r\n },\r\n buttonContainedInstagram: {\r\n backgroundColor: theme.palette.instagram.main,\r\n borderColor: theme.palette.instagram.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.instagram.dark,\r\n borderColor: theme.palette.instagram.dark,\r\n },\r\n },\r\n buttonContainedPinterest: {\r\n backgroundColor: theme.palette.pinterest.main,\r\n borderColor: theme.palette.pinterest.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.pinterest.dark,\r\n borderColor: theme.palette.pinterest.dark,\r\n },\r\n },\r\n buttonContainedYoutube: {\r\n backgroundColor: theme.palette.youtube.main,\r\n borderColor: theme.palette.youtube.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.youtube.dark,\r\n borderColor: theme.palette.youtube.dark,\r\n },\r\n },\r\n buttonContainedVimeo: {\r\n backgroundColor: theme.palette.vimeo.main,\r\n borderColor: theme.palette.vimeo.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.vimeo.dark,\r\n borderColor: theme.palette.vimeo.dark,\r\n },\r\n },\r\n buttonContainedSlack: {\r\n backgroundColor: theme.palette.slack.main,\r\n borderColor: theme.palette.slack.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.slack.dark,\r\n borderColor: theme.palette.slack.dark,\r\n },\r\n },\r\n buttonContainedDribbble: {\r\n backgroundColor: theme.palette.dribbble.main,\r\n borderColor: theme.palette.dribbble.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.dribbble.dark,\r\n borderColor: theme.palette.dribbble.dark,\r\n },\r\n },\r\n buttonContainedGithub: {\r\n backgroundColor: theme.palette.github.main,\r\n borderColor: theme.palette.github.main,\r\n color: theme.palette.white.main,\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.github.dark,\r\n borderColor: theme.palette.github.dark,\r\n },\r\n },\r\n buttonIconOnly: {\r\n width: \"2.375rem\",\r\n height: \"2.375rem\",\r\n padding: \"0\",\r\n minWidth: \"unset\",\r\n },\r\n generalButton: {\r\n color: theme.palette.white.main,\r\n background: \"linear-gradient(90deg, \" + theme.palette.primary.main + \" 0%, \" + theme.palette.primary.mediumBlue + \" 100%)\",\r\n boxShadow: \"2px 2px 5px 0px #00000055 !important\",\r\n border: \"0px\",\r\n textTransform: \"uppercase\",\r\n },\r\n generalSubmitButton: {\r\n color: theme.palette.white.main,\r\n background: \"linear-gradient(90deg, \" + theme.palette.primary.main + \" 0%, \" + theme.palette.primary.mediumBlue + \" 100%)\",\r\n border: \"0px\",\r\n boxShadow: \"0px 0px 32px rgba(136, 152, 170, 0.15)\",\r\n },\r\n buttonProgress: {\r\n color: theme.palette.white.main,\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n marginTop: -12,\r\n marginLeft: -12,\r\n },\r\n filterButton: {\r\n color: theme.palette.primary.main,\r\n background: theme.palette.white.light,\r\n textTransform: \"uppercase\",\r\n \"&:hover\": {\r\n color: theme.palette.primary.main,\r\n },\r\n \"&:disabled\": {\r\n background: theme.palette.gray[300],\r\n color: theme.palette.primary.main,\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","const componentStyles = (theme) => ({\r\n infoSwitchThumb: {},\r\n infoSwitchTrack: {},\r\n successSwitchThumb: {},\r\n successSwitchTrack: {},\r\n errorSwitchThumb: {},\r\n errorSwitchTrack: {},\r\n warningSwitchThumb: {},\r\n warningSwitchTrack: {},\r\n whiteSwitchThumb: {},\r\n whiteSwitchTrack: {},\r\n checkedSwitch: {\r\n \"& $infoSwitchThumb\": {\r\n backgroundColor: theme.palette.info.main + \"!important\",\r\n },\r\n \"& + $infoSwitchTrack\": {\r\n borderColor: theme.palette.info.main + \"!important\",\r\n },\r\n \"& $successSwitchThumb\": {\r\n backgroundColor: theme.palette.success.main + \"!important\",\r\n },\r\n \"& + $successSwitchTrack\": {\r\n borderColor: theme.palette.success.main + \"!important\",\r\n },\r\n \"& $errorSwitchThumb\": {\r\n backgroundColor: theme.palette.error.main + \"!important\",\r\n },\r\n \"& + $errorSwitchTrack\": {\r\n borderColor: theme.palette.error.main + \"!important\",\r\n },\r\n \"& $warningSwitchThumb\": {\r\n backgroundColor: theme.palette.warning.main + \"!important\",\r\n },\r\n \"& + $warningSwitchTrack\": {\r\n borderColor: theme.palette.warning.main + \"!important\",\r\n },\r\n \"& $whiteSwitchThumb\": {\r\n backgroundColor: theme.palette.white.main + \"!important\",\r\n },\r\n \"& + $whiteSwitchTrack\": {\r\n borderColor: theme.palette.white.main + \"!important\",\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\n// react plugin used to create datetimepicker\r\nimport ReactDatetime from \"react-datetime\";\r\n// plugin for text editor\r\nimport Quill from \"quill\";\r\n// plugin for drag-and-drop files\r\nimport Dropzone from \"dropzone\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Slider from \"@material-ui/core/Slider\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/lab components\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\n// @material-ui/icons components\r\nimport Person from \"@material-ui/icons/Person\";\r\nimport Email from \"@material-ui/icons/Email\";\r\nimport LocationOn from \"@material-ui/icons/LocationOn\";\r\nimport Visibility from \"@material-ui/icons/Visibility\";\r\nimport CreditCard from \"@material-ui/icons/CreditCard\";\r\nimport Public from \"@material-ui/icons/Public\";\r\nimport Call from \"@material-ui/icons/Call\";\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\nimport Delete from \"@material-ui/icons/Delete\";\r\nimport KeyboardArrowDown from \"@material-ui/icons/KeyboardArrowDown\";\r\n// core components\r\nimport SimpleHeader from \"components/Headers/SimpleHeader.js\";\r\nimport TagsInput from \"components/TagsInput/TagsInput.js\";\r\n\r\nimport componentStyles from \"assets/theme/views/admin/components.js\";\r\nimport componentStylesButtons from \"assets/theme/components/button.js\";\r\nimport componentStylesSwitch from \"assets/theme/components/switch.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesButtons = makeStyles(componentStylesButtons);\r\nconst useStylesSwitch = makeStyles(componentStylesSwitch);\r\n\r\nconst dropdownOptions = [\r\n { value: 1, label: \"Alerts\" },\r\n { value: 2, label: \"Badges\" },\r\n { value: 3, label: \"Buttons\" },\r\n { value: 4, label: \"Forms\" },\r\n { value: 5, label: \"Modals\" },\r\n];\r\n\r\nconst Components = () => {\r\n const classes = {\r\n ...useStyles(),\r\n ...useStylesButtons(),\r\n ...useStylesSwitch(),\r\n };\r\n const theme = useTheme();\r\n const [startDate, setStartDate] = React.useState(null);\r\n const [endDate, setEndDate] = React.useState(null);\r\n const [sliderSingle, setSliderSingle] = React.useState(100.0);\r\n const [sliderDouble, setSliderDouble] = React.useState([200.0, 400.0]);\r\n const [tagsInputState, setTagsInputState] = React.useState([\r\n \"Bucharest\",\r\n \"Cluj\",\r\n \"Iasi\",\r\n \"Timisoara\",\r\n \"Piatra Neamt\",\r\n ]);\r\n const handleTagsinput = (tagsinput) => {\r\n setTagsInputState(tagsinput);\r\n };\r\n // quill init\r\n React.useEffect(() => {\r\n if (\r\n document.querySelector('[data-toggle=\"quill\"]').className !==\r\n \"ql-container ql-snow\"\r\n ) {\r\n new Quill(document.querySelector('[data-toggle=\"quill\"]'), {\r\n modules: {\r\n toolbar: [\r\n [\"bold\", \"italic\"],\r\n [\"link\", \"blockquote\", \"code\", \"image\"],\r\n [\r\n {\r\n list: \"ordered\",\r\n },\r\n {\r\n list: \"bullet\",\r\n },\r\n ],\r\n ],\r\n },\r\n placeholder: \"Quill WYSIWYG\",\r\n theme: \"snow\",\r\n });\r\n }\r\n }, []);\r\n // single file drag-and-drop dropzone init\r\n React.useEffect(() => {\r\n if (\r\n !document\r\n .getElementById(\"dropzone-single\")\r\n .classList.contains(\"dz-clickable\")\r\n ) {\r\n Dropzone.autoDiscover = false;\r\n // this variable is to delete the previous image from the dropzone state\r\n // it is just to make the HTML DOM a bit better, and keep it light\r\n let currentSingleFile = undefined;\r\n // single dropzone file - accepts only images\r\n let singleDropzone = new Dropzone(\r\n document.getElementById(\"dropzone-single\"),\r\n {\r\n url: \"/\",\r\n thumbnailWidth: null,\r\n thumbnailHeight: null,\r\n previewsContainer: document.getElementsByClassName(\r\n \"dz-preview-single\"\r\n )[0],\r\n previewTemplate: document.getElementsByClassName(\r\n \"dz-preview-single\"\r\n )[0].innerHTML,\r\n maxFiles: 1,\r\n acceptedFiles: \"image/*\",\r\n init: function () {\r\n this.on(\"addedfile\", function (file) {\r\n if (currentSingleFile) {\r\n this.removeFile(currentSingleFile);\r\n }\r\n currentSingleFile = file;\r\n });\r\n },\r\n }\r\n );\r\n document.getElementsByClassName(\"dz-preview-single\")[0].innerHTML = \"\";\r\n return function cleanup() {\r\n singleDropzone.destroy();\r\n };\r\n }\r\n }, []);\r\n // multiple file drag-and-drop dropzone init\r\n React.useEffect(() => {\r\n if (\r\n !document\r\n .getElementById(\"dropzone-multiple\")\r\n .classList.contains(\"dz-clickable\")\r\n ) {\r\n Dropzone.autoDiscover = false;\r\n // this variable is to delete the previous image from the dropzone state\r\n // it is just to make the HTML DOM a bit better, and keep it light\r\n let currentMultipleFile = undefined;\r\n // multiple dropzone file - accepts any type of file\r\n new Dropzone(document.getElementById(\"dropzone-multiple\"), {\r\n url: \"https://\",\r\n thumbnailWidth: null,\r\n thumbnailHeight: null,\r\n previewsContainer: document.getElementsByClassName(\r\n \"dz-preview-multiple\"\r\n )[0],\r\n previewTemplate: document.getElementsByClassName(\r\n \"dz-preview-multiple\"\r\n )[0].innerHTML,\r\n maxFiles: null,\r\n acceptedFiles: null,\r\n init: function () {\r\n this.on(\"addedfile\", function (file) {\r\n if (currentMultipleFile) {\r\n }\r\n currentMultipleFile = file;\r\n });\r\n },\r\n });\r\n document.getElementsByClassName(\"dz-preview-multiple\")[0].innerHTML = \"\";\r\n }\r\n }, []);\r\n // react-datetime change handler for range pickers\r\n const handleReactDatetimeChange = (who, date) => {\r\n if (\r\n startDate &&\r\n who === \"endDate\" &&\r\n new Date(startDate._d + \"\") > new Date(date._d + \"\")\r\n ) {\r\n setStartDate(date);\r\n setEndDate(date);\r\n } else if (\r\n endDate &&\r\n who === \"startDate\" &&\r\n new Date(endDate._d + \"\") < new Date(date._d + \"\")\r\n ) {\r\n setStartDate(date);\r\n setEndDate(date);\r\n } else {\r\n if (who === \"startDate\") {\r\n setStartDate(date);\r\n } else {\r\n setEndDate(date);\r\n }\r\n }\r\n };\r\n // this function adds on the day tag of the date picker\r\n // middle-date className which means that this day will have no border radius\r\n // start-date className which means that this day will only have left border radius\r\n // end-date className which means that this day will only have right border radius\r\n // this way, the selected dates will look nice and will only be rounded at the ends\r\n const getClassNameReactDatetimeDays = (date) => {\r\n if (startDate && endDate) {\r\n }\r\n if (startDate && endDate && startDate._d + \"\" !== endDate._d + \"\") {\r\n if (\r\n new Date(endDate._d + \"\") > new Date(date._d + \"\") &&\r\n new Date(startDate._d + \"\") < new Date(date._d + \"\")\r\n ) {\r\n return \" middle-date\";\r\n }\r\n if (endDate._d + \"\" === date._d + \"\") {\r\n return \" end-date\";\r\n }\r\n if (startDate._d + \"\" === date._d + \"\") {\r\n return \" start-date\";\r\n }\r\n }\r\n return \"\";\r\n };\r\n return (\r\n <>\r\n \r\n {/* Page content */}\r\n \r\n {/* Table */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n endAdornment={\r\n \r\n USD\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n option.label}\r\n closeIcon={null}\r\n popupIcon={\r\n \r\n }\r\n renderInput={(params) => (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Datepicker\r\n (\r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n Start date\r\n \r\n handleReactDatetimeChange(\"startDate\", e)\r\n }\r\n renderDay={(props, currentDate) => {\r\n let classes = props.className;\r\n classes += getClassNameReactDatetimeDays(currentDate);\r\n return (\r\n \r\n {currentDate.date()}\r\n \r\n );\r\n }}\r\n renderInput={(dateInputProps) => (\r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n End date\r\n \r\n handleReactDatetimeChange(\"endDate\", e)\r\n }\r\n renderDay={(props, currentDate) => {\r\n let classes = props.className;\r\n classes += getClassNameReactDatetimeDays(currentDate);\r\n return (\r\n \r\n {currentDate.date()}\r\n \r\n );\r\n }}\r\n renderInput={(dateInputProps) => (\r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\" \"}\r\n {\" \"}\r\n {\" \"}\r\n {\" \"}\r\n {\" \"}\r\n {\" \"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n setSliderSingle(value)}\r\n />\r\n \r\n \r\n \r\n {sliderSingle.toFixed(2)}\r\n \r\n \r\n \r\n \r\n setSliderDouble(value)}\r\n />\r\n \r\n \r\n \r\n {sliderDouble[0].toFixed(2)}\r\n \r\n \r\n \r\n \r\n {sliderDouble[1].toFixed(2)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Choose file\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Choose file\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ...\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Components;\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n cardHeader: {\r\n backgroundColor: \"initial\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n mb0: {\r\n marginBottom: \"0!important\",\r\n },\r\n borderWarning: {\r\n borderColor: theme.palette.warning.main + \"!important\",\r\n },\r\n borderSuccess: {\r\n borderColor: theme.palette.success.main + \"!important\",\r\n },\r\n textWarning: {\r\n color: theme.palette.warning.main + \"!important\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Divider from \"@material-ui/core/Divider\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n// @material-ui/icons components\r\n// core components\r\nimport SimpleHeader from \"components/Headers/SimpleHeader.js\";\r\n\r\nimport componentStyles from \"assets/theme/views/admin/validation.js\";\r\nimport componentStylesForms from \"assets/theme/components/forms.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesForms = makeStyles(componentStylesForms);\r\n\r\nconst Validation = () => {\r\n const classes = { ...useStyles(), ...useStylesForms() };\r\n const theme = useTheme();\r\n const [\r\n customStylesFirstNameValue,\r\n setCustomStylesFirstNameValue,\r\n ] = React.useState(\"Mark\");\r\n const [\r\n customStylesFirstNameValidation,\r\n setCustomStylesFirstNameValidation,\r\n ] = React.useState(null);\r\n const [\r\n customStylesLastNameValue,\r\n setCustomStylesLastNameValue,\r\n ] = React.useState(\"Otto\");\r\n const [\r\n customStylesLastNameValidation,\r\n setCustomStylesLastNameValidation,\r\n ] = React.useState(null);\r\n const [\r\n customStylesUsernameValue,\r\n setCustomStylesUsernameValue,\r\n ] = React.useState(\"\");\r\n const [\r\n customStylesUsernameValidation,\r\n setCustomStylesUsernameValidation,\r\n ] = React.useState(null);\r\n const [customStylesCityValue, setCustomStylesCityValue] = React.useState(\"\");\r\n const [\r\n customStylesCityValidation,\r\n setCustomStylesCityValidation,\r\n ] = React.useState(null);\r\n const [customStylesStateValue, setCustomStylesStateValue] = React.useState(\r\n \"\"\r\n );\r\n const [\r\n customStylesStateValidation,\r\n setCustomStylesStateValidation,\r\n ] = React.useState(null);\r\n const [customStylesZipValue, setCustomStylesZipValue] = React.useState(\"\");\r\n const [\r\n customStylesZipValidation,\r\n setCustomStylesZipValidation,\r\n ] = React.useState(null);\r\n const [\r\n customStylesCheckboxValue,\r\n setCustomStylesCheckboxValue,\r\n ] = React.useState(false);\r\n const [\r\n customStylesCheckboxValidation,\r\n setCustomStylesCheckboxValidation,\r\n ] = React.useState(null);\r\n return (\r\n <>\r\n \r\n {/* Page content */}\r\n \r\n {/* Table */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n For custom form validation messages, you’ll need to add the\r\n novalidate boolean attribute to your{\" \"}\r\n {`
`}\r\n . This disables the browser default feedback tooltips, but\r\n still provides access to the form validation APIs in\r\n JavaScript.\r\n
\r\n
\r\n When attempting to submit, you’ll see the{\" \"}\r\n \r\n invalid\r\n {\" \"}\r\n and{\" \"}\r\n \r\n valid\r\n {\" \"}\r\n styles applied to your form controls.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n First name\r\n {\r\n if (event.target.value === \"\") {\r\n setCustomStylesFirstNameValidation(\"invalid\");\r\n } else {\r\n setCustomStylesFirstNameValidation(\"valid\");\r\n }\r\n setCustomStylesFirstNameValue(event.target.value);\r\n }}\r\n />\r\n {customStylesFirstNameValidation === \"valid\" && (\r\n \r\n Looks good!\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Last name\r\n {\r\n if (event.target.value === \"\") {\r\n setCustomStylesLastNameValidation(\"invalid\");\r\n } else {\r\n setCustomStylesLastNameValidation(\"valid\");\r\n }\r\n setCustomStylesLastNameValue(event.target.value);\r\n }}\r\n />\r\n {customStylesLastNameValidation === \"valid\" && (\r\n \r\n Looks good!\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Username\r\n {\r\n if (event.target.value === \"\") {\r\n setCustomStylesUsernameValidation(\"invalid\");\r\n } else {\r\n setCustomStylesUsernameValidation(\"valid\");\r\n }\r\n setCustomStylesUsernameValue(event.target.value);\r\n }}\r\n />\r\n {customStylesUsernameValidation === \"invalid\" && (\r\n \r\n Please choose a username.\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n City\r\n {\r\n if (event.target.value === \"\") {\r\n setCustomStylesCityValidation(\"invalid\");\r\n } else {\r\n setCustomStylesCityValidation(\"valid\");\r\n }\r\n setCustomStylesCityValue(event.target.value);\r\n }}\r\n />\r\n {customStylesCityValidation === \"invalid\" && (\r\n \r\n Please provide a valid city.\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n State\r\n {\r\n if (event.target.value === \"\") {\r\n setCustomStylesStateValidation(\"invalid\");\r\n } else {\r\n setCustomStylesStateValidation(\"valid\");\r\n }\r\n setCustomStylesStateValue(event.target.value);\r\n }}\r\n />\r\n {customStylesStateValidation === \"invalid\" && (\r\n \r\n Please provide a valid state.\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Zip\r\n {\r\n if (event.target.value === \"\") {\r\n setCustomStylesZipValidation(\"invalid\");\r\n } else {\r\n setCustomStylesZipValidation(\"valid\");\r\n }\r\n setCustomStylesZipValue(event.target.value);\r\n }}\r\n />\r\n {customStylesZipValidation === \"invalid\" && (\r\n \r\n Please provide a valid zip.\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {\r\n if (!customStylesCheckboxValue) {\r\n setCustomStylesCheckboxValidation(\"valid\");\r\n }\r\n setCustomStylesCheckboxValue(\r\n !customStylesCheckboxValue\r\n );\r\n }}\r\n classes={{\r\n root: clsx({\r\n [classes.textWarning]:\r\n customStylesCheckboxValidation === \"invalid\",\r\n }),\r\n }}\r\n />\r\n }\r\n label=\"Agree to terms and conditions\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: clsx(classes.formControlCheckboxLabelLabel, {\r\n [classes.textWarning]:\r\n customStylesCheckboxValidation === \"invalid\",\r\n }),\r\n }}\r\n />\r\n {customStylesCheckboxValidation === \"invalid\" && (\r\n \r\n You must agree before submitting.\r\n \r\n )}\r\n \r\n {\r\n if (customStylesFirstNameValue === \"\") {\r\n setCustomStylesFirstNameValidation(\"invalid\");\r\n } else {\r\n setCustomStylesFirstNameValidation(\"valid\");\r\n }\r\n if (customStylesLastNameValue === \"\") {\r\n setCustomStylesLastNameValidation(\"invalid\");\r\n } else {\r\n setCustomStylesLastNameValidation(\"valid\");\r\n }\r\n if (customStylesUsernameValue === \"\") {\r\n setCustomStylesUsernameValidation(\"invalid\");\r\n } else {\r\n setCustomStylesUsernameValidation(\"valid\");\r\n }\r\n if (customStylesCityValue === \"\") {\r\n setCustomStylesCityValidation(\"invalid\");\r\n } else {\r\n setCustomStylesCityValidation(\"valid\");\r\n }\r\n if (customStylesStateValue === \"\") {\r\n setCustomStylesStateValidation(\"invalid\");\r\n } else {\r\n setCustomStylesStateValidation(\"valid\");\r\n }\r\n if (customStylesZipValue === \"\") {\r\n setCustomStylesZipValidation(\"invalid\");\r\n } else {\r\n setCustomStylesZipValidation(\"valid\");\r\n }\r\n if (!customStylesCheckboxValue) {\r\n setCustomStylesCheckboxValidation(\"invalid\");\r\n } else {\r\n setCustomStylesCheckboxValidation(\"valid\");\r\n }\r\n }}\r\n >\r\n Submit form\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n Not interested in custom validation feedback messages or\r\n writing JavaScript to change form behaviors? All good, you can\r\n use the browser defaults. Try submitting the form below.\r\n Depending on your browser and OS, you’ll see a slightly\r\n different style of feedback.\r\n
\r\n
\r\n While these feedback styles cannot be styled with CSS, you can\r\n still customize the feedback text through JavaScript.\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n First name\r\n \r\n \r\n \r\n \r\n \r\n Last name\r\n \r\n \r\n \r\n \r\n \r\n Username\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n City\r\n \r\n \r\n \r\n \r\n \r\n State\r\n \r\n \r\n \r\n \r\n \r\n Zip\r\n \r\n \r\n \r\n \r\n \r\n }\r\n label=\"Agree to terms and conditions\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n We recommend using client side validation, but in case you\r\n require server side, you can indicate invalid and valid form\r\n fields with{\" \"}\r\n \r\n classes.borderSuccess\r\n {\" \"}\r\n and{\" \"}\r\n \r\n classes.borderWarning\r\n \r\n . Note that{\" \"}\r\n \r\n theme.palette.error.light\r\n {\" \"}\r\n and{\" \"}\r\n \r\n theme.palette.success.main\r\n {\" \"}\r\n are also supported.\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n First name\r\n \r\n\r\n \r\n Looks good!\r\n \r\n \r\n \r\n \r\n \r\n Last name\r\n \r\n\r\n \r\n Looks good!\r\n \r\n \r\n \r\n \r\n \r\n Username\r\n \r\n\r\n \r\n Please choose a username.\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n City\r\n \r\n\r\n \r\n Please provide a valid city.\r\n \r\n \r\n \r\n \r\n \r\n State\r\n \r\n\r\n \r\n Please provide a valid state.\r\n \r\n \r\n \r\n \r\n \r\n Zip\r\n \r\n\r\n \r\n Please provide a valid zip.\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n label=\"Agree to terms and conditions\"\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: clsx(\r\n classes.formControlCheckboxLabelLabel,\r\n classes.textWarning\r\n ),\r\n }}\r\n />\r\n \r\n You must agree before submitting.\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n );\r\n};\r\n\r\nexport default Validation;\r\n","import { login } from \"../../../crud/auth.crud\";\r\nimport { b64ToImage } from \"utils/converters\";\r\nimport { DIALOG } from \"utils/actionsConsts\";\r\n\r\nconst loginAction = (email, password) => async (dispatch) => {\r\n dispatch({\r\n type: \"login_loading\",\r\n payload: true,\r\n });\r\n login(email, password)\r\n .then((res) => {\r\n dispatch({\r\n type: \"login\",\r\n payload: {\r\n email: email,\r\n succeeded: res.data.succeeded,\r\n token: res.data.jwtToken,\r\n refreshToken: res.data.refreshToken,\r\n name: res.data.name,\r\n lastName: res.data.lastName,\r\n province: res.data.province,\r\n photo: b64ToImage(res.data.photo),\r\n operationsList: res.data.operationsList,\r\n userPermissionSettings: res.data.userPermissionSettings,\r\n mustConfirmEmail: res.data.mustConfirmEmail,\r\n lastLoginDate : res.data.lastLoginDate\r\n },\r\n });\r\n if (res.data.mustConfirmEmail) {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Conta em validação, aguarda confirmação de e-mail.\",\r\n },\r\n },\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: \"login\",\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n dispatch({\r\n type: \"login_loading\",\r\n payload: false,\r\n });\r\n });\r\n};\r\n\r\nexport default loginAction;\r\n","import { recover_password } from \"crud/auth.crud\";\r\nimport { AUTH } from \"utils/actionsConsts\";\r\n\r\nexport const recoverPasswordAction = (email) => async (dispatch) => {\r\n dispatch({\r\n type: AUTH.RECOVER_PASSWORD_LOADING,\r\n payload: true,\r\n });\r\n recover_password(email)\r\n .then((res) => {\r\n dispatch({\r\n type: AUTH.RECOVER_PASSWORD,\r\n payload: {\r\n sent: res.data !== null ? true : false,\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: AUTH.RECOVER_PASSWORD,\r\n payload: { sent: false },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const resetRecoverStateAction = () => async (dispatch) => {\r\n dispatch({\r\n type: AUTH.RESET_RECOVER_STATE,\r\n payload: false,\r\n });\r\n};\r\n","import { AUTH } from \"utils/actionsConsts\";\r\n\r\nconst resetResetPasswordStateAction = () => async (dispatch) => {\r\n dispatch({\r\n type: AUTH.RESET_RESET_PASSWORD_STATE,\r\n payload: false,\r\n });\r\n};\r\n\r\nexport default resetResetPasswordStateAction;\r\n","import { AUTH } from \"utils/actionsConsts\";\r\n\r\nconst resetSessionExpiredAction = () => async (dispatch) => {\r\n dispatch({\r\n type: AUTH.RESET_SESSION_EXPIRED,\r\n payload: false,\r\n });\r\n};\r\n\r\nexport default resetSessionExpiredAction;\r\n","const componentStyles = (theme) => ({\r\n modalHeader: {\r\n \r\n fontSize: \"24px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n color: theme.palette.primary.darkBlue,\r\n textAlign: \"center\",\r\n marginBottom: \"1rem\",\r\n marginTop: \".5rem\",\r\n },\r\n boxHeader: {\r\n color: theme.palette.primary.darkBlue,\r\n \r\n fontSize: \"14px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n lineHeight: \"19px\",\r\n letterSpacing: \"0em\",\r\n textAlign: \"left\",\r\n },\r\n footerLinks: {\r\n color: theme.palette.primary.main,\r\n },\r\n centerBoxItems: {\r\n width: \"46%\", \r\n position: \"absolute\", \r\n top: \"50%\", \r\n transform: \"translateY(-50%)\", \r\n display: \"flex\", \r\n alignItems: \"center\", \r\n justifyContent: \"center\"\r\n },\r\n centerBoxHorizontally: {\r\n display: \"flex\", \r\n alignItems: \"center\", \r\n justifyContent: \"center\"\r\n },\r\n loginBox: {\r\n width: \"50%\", \r\n float: \"right\", \r\n padding: \"20px\",\r\n },\r\n backgroundImage: {\r\n height: \"100%\", \r\n width: \"50%\", \r\n objectFit: \"cover\",\r\n position: \"absolute\"\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","import { useState, useEffect } from \"react\";\r\n\r\nconst useWindowSize = () => {\r\n // Initialize state with undefined width/height so server and client renders match\r\n const [windowSize, setWindowSize] = useState({\r\n width: undefined,\r\n height: undefined\r\n });\r\n\r\n useEffect(() => {\r\n // only execute all the code below in client side\r\n if (typeof window !== \"undefined\") {\r\n // Handler to call on window resize\r\n function handleResize() {\r\n // Set window width/height to state\r\n setWindowSize({\r\n width: window.innerWidth,\r\n height: window.innerHeight\r\n });\r\n }\r\n\r\n // Add event listener\r\n window.addEventListener(\"resize\", handleResize);\r\n\r\n // Call handler right away so state gets updated with initial window size\r\n handleResize();\r\n\r\n // Remove event listener on cleanup\r\n return () => window.removeEventListener(\"resize\", handleResize);\r\n }\r\n }, []); // Empty array ensures that effect is only run on mount\r\n return windowSize;\r\n};\r\n\r\nexport default useWindowSize;","import React from \"react\";\r\n//material-ui\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { Typography } from \"@material-ui/core\";\r\n//material-ui icons\r\nimport InfoOutlinedIcon from \"@material-ui/icons/InfoOutlined\";\r\n//styles\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport componentStylesButtons from \"assets/theme/components/button.js\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nconst useStylesButtons = makeStyles(componentStylesButtons);\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n iconStyle: {\r\n width: \"35%\",\r\n height: \"35%\",\r\n color: theme.palette.secondary.skyBlue,\r\n margin: \"0 auto\",\r\n display: \"block\",\r\n },\r\n infoMessage: {\r\n textAlign: \"center\",\r\n },\r\n}));\r\n\r\nexport default function InfoContent(props) {\r\n const classes = { ...useStyles(), ...useStylesButtons() };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {props.message}\r\n \r\n \r\n \r\n Entrar\r\n \r\n \r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\n//redux\r\nimport { connect } from \"react-redux\";\r\n//material-ui\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\n// @material-ui/icons components\r\nimport Email from \"@material-ui/icons/Email\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { recoverPasswordAction } from \"redux/actions/auth/recoverPasswordAction\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport function RecoverDialogContent(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n\r\n const {\r\n handleSubmit,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n props.recoverPassword(data.recoverEmail);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n Recuperar Palavra-passe\r\n \r\n Irá ser enviado um e-mail com uma palavra-passe provisória.\r\n \r\n \r\n Após autenticação, e por motivos de segurança, deverá proceder à substituição da palavra-passe.\r\n \r\n\r\n \r\n
\r\n \r\n (\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"recoverEmail\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[\"recoverEmail\"] !== undefined && (\r\n \r\n {errors[\"recoverEmail\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n Enviar\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n recoverPassword: (email) => dispatch(recoverPasswordAction(email)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(RecoverDialogContent);\r\n","import React, { useState, useEffect } from \"react\";\r\n\r\nimport { connect } from \"react-redux\";\r\nimport loginAction from \"redux/actions/auth/loginAction\";\r\nimport { recoverPasswordAction, resetRecoverStateAction } from \"redux/actions/auth/recoverPasswordAction\";\r\nimport resetResetPasswordStateAction from \"redux/actions/auth/resetResetPasswordStateAction\";\r\nimport resetSessionExpiredAction from \"redux/actions/auth/resetSessionExpiredAction\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FilledInput from \"@material-ui/core/FilledInput\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n\r\nimport Email from \"@material-ui/icons/Email\";\r\nimport Lock from \"@material-ui/icons/Lock\";\r\nimport Visibility from \"@material-ui/icons/Visibility\";\r\nimport VisibilityOff from \"@material-ui/icons/VisibilityOff\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\n\r\n// core components\r\nimport componentStylesLogin from \"assets/theme/views/auth/login.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport useWindowSize from \"hooks/useWindowSize\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n\r\n// react-router\r\nimport { Link } from \"react-router-dom\";\r\n//lodash\r\nimport _ from \"lodash\";\r\nimport CustomDialog from \"components/Dialogs/GenericDialog\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport InfoContent from \"./DialogsContent/InfoContent\";\r\nimport RecoverDialogContent from \"./DialogsContent/RecoverDialogContent\";\r\n\r\nconst useStylesLogin = makeStyles(componentStylesLogin);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst DIALOG = { SHOW: true, HIDE: false };\r\n\r\nfunction Login(props) {\r\n const classes = { ...useStylesGeneric(), ...useStylesLogin() };\r\n const theme = useTheme();\r\n const windowSize = useWindowSize(); \r\n const [showPassword, setShowPassword] = useState(false);\r\n const handleClickShowPassword = () => setShowPassword(!showPassword);\r\n const handleMouseDownPassword = () => setShowPassword(!showPassword);\r\n\r\n const [state, setState] = useState({\r\n email: \"\",\r\n password: \"\",\r\n });\r\n\r\n const [dialogs, setDialogs] = useState({\r\n loginState: true,\r\n recoverModal: false,\r\n recoverSuccessModal: false,\r\n sessionExpiredModal: false,\r\n });\r\n\r\n const onChange = (stateName, value) => {\r\n setState((prevState) => ({\r\n ...prevState,\r\n [stateName]: value,\r\n }));\r\n };\r\n\r\n useEffect(() => {\r\n props.resetRecoverState();\r\n props.resetResetPasswordState();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.authState.sent) {\r\n showHideDialog(\"recoverSuccessModal\", DIALOG.SHOW);\r\n\r\n props.resetRecoverState();\r\n props.resetResetPasswordState();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.authState.sent]);\r\n\r\n useEffect(() => {\r\n if (props.authState.session_expired) {\r\n showHideDialog(\"sessionExpiredModal\", DIALOG.SHOW);\r\n\r\n props.resetRecoverState();\r\n props.resetResetPasswordState();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.authState.session_expired]);\r\n\r\n const showHideDialog = (dialog, op) => {\r\n let dialogs_temp = _.mapValues(dialogs, () => false);\r\n\r\n dialogs_temp[dialog] = op;\r\n\r\n if (op === DIALOG.HIDE) dialogs_temp[\"loginState\"] = DIALOG.SHOW;\r\n\r\n setDialogs(dialogs_temp);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n {windowSize.width > 900 &&\r\n \r\n \r\n \r\n }\r\n \r\n {dialogs.loginState && (\r\n 900 \r\n ? classes.loginBox \r\n : classes.centerBoxHorizontally\r\n }\r\n >\r\n \r\n \r\n \r\n Login BackOffice\r\n \r\n\r\n
\r\n \r\n \r\n {\" \"}\r\n E-mail\r\n onChange(\"email\", e.target.value)}\r\n value={state.email}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n Palavra-passe\r\n onChange(\"password\", e.target.value)}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n endAdornment={\r\n \r\n \r\n {showPassword ? : }\r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n e.preventDefault()}\r\n className={classes.footerLinks}\r\n > \r\n \r\n \r\n showHideDialog(\"recoverModal\", DIALOG.SHOW)}\r\n className={classes.footerLinks}\r\n to=\"#\"\r\n >\r\n Esqueceu-se da palavra-passe?\r\n \r\n \r\n \r\n {props.authState.login_error && (\r\n \r\n E-mail ou Palavra-passe inválidos!\r\n \r\n )}\r\n \r\n {\r\n props.loginAction(state.email, state.password);\r\n }}\r\n color=\"primary\"\r\n loading={props.authState.login_loading}\r\n >\r\n Entrar\r\n \r\n \r\n
\r\n \r\n \r\n \r\n )}\r\n \r\n\r\n showHideDialog(\"recoverModal\", DIALOG.HIDE)}\r\n maxWidth={\"xs\"}\r\n >\r\n {\r\n showHideDialog(\"recoverModal\", DIALOG.HIDE);\r\n }}\r\n />\r\n \r\n\r\n showHideDialog(\"recoverSuccessModal\", DIALOG.HIDE)}\r\n >\r\n showHideDialog(\"recoverSuccessModal\", DIALOG.HIDE)}\r\n />\r\n \r\n\r\n {\r\n props.resetSessionExpiredState();\r\n showHideDialog(\"sessionExpiredModal\", DIALOG.HIDE);\r\n }}\r\n >\r\n {\r\n props.resetSessionExpiredState();\r\n showHideDialog(\"sessionExpiredModal\", DIALOG.HIDE);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n loginAction: (email, password) => dispatch(loginAction(email, password)),\r\n recoverPassword: (email) => dispatch(recoverPasswordAction(email)),\r\n resetRecoverState: () => dispatch(resetRecoverStateAction()),\r\n resetSessionExpiredState: () => dispatch(resetSessionExpiredAction()),\r\n resetResetPasswordState: () => dispatch(resetResetPasswordStateAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Login);\r\n","import { reset_password } from \"crud/auth.crud\";\r\nimport { AUTH } from \"utils/actionsConsts\";\r\n\r\nconst resetPasswordAction = (username, password, token) => async (dispatch) => {\r\n dispatch({\r\n type: AUTH.RESET_PASSWORD_LOADING,\r\n payload: true,\r\n });\r\n reset_password(username, password, token)\r\n .then((res) => {\r\n dispatch({\r\n type: AUTH.RESET_PASSWORD,\r\n payload: {\r\n sent: res.data ? true : false,\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: AUTH.RESET_PASSWORD,\r\n payload: { sent: false },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default resetPasswordAction;\r\n","export function changePasswordMap(formData) {\r\n if (formData != null && formData !== undefined)\r\n return {\r\n currentPassword: formData.currentPassword ? formData.currentPassword : \"\",\r\n newPassword: formData.newPassword ? formData.newPassword : \"\",\r\n };\r\n return formData;\r\n}\r\n\r\nexport default changePasswordMap;\r\n\r\nexport function changePasswordMap2(formData) {\r\n if (formData != null && formData !== undefined)\r\n return {\r\n Password: formData.password ? formData.password : \"\",\r\n };\r\n return formData;\r\n}\r\n","import { useState, useEffect } from \"react\";\r\n\r\nexport const usePasswordValidation = ({\r\n firstPassword = \"\",\r\n secondPassword = \"\",\r\n requiredLength = 10,\r\n}) => {\r\n const [passwordValidation, setPasswordValidation] = useState({\r\n validLength: false,\r\n hasNumber: false,\r\n upperCase: false,\r\n lowerCase: false,\r\n specialChar: false,\r\n match: false,\r\n isValid: null,\r\n });\r\n\r\n useEffect(() => {\r\n let states = {\r\n validLength: firstPassword.length >= requiredLength ? true : false,\r\n upperCase: firstPassword.toLowerCase() !== firstPassword,\r\n lowerCase: firstPassword.toUpperCase() !== firstPassword,\r\n hasNumber: /\\d/.test(firstPassword),\r\n specialChar: /[ `!@#$%^&*()_+\\-=\\]{};':\"\\\\|,.<>?~]/.test(firstPassword),\r\n match: firstPassword && firstPassword === secondPassword,\r\n isValid: null,\r\n };\r\n var count = 0;\r\n if (states.upperCase) count++;\r\n if (states.lowerCase) count++;\r\n if (states.hasNumber) count++;\r\n if (states.specialChar) count++;\r\n if (!(count === 0 && states.isValid == null))\r\n //Não validar no Onload\r\n states.isValid = count >= 4 && states.validLength;\r\n\r\n setPasswordValidation(states);\r\n }, [firstPassword, secondPassword, requiredLength]);\r\n\r\n return [passwordValidation];\r\n};\r\n","import React, { Fragment, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\n// @material-ui/icons components\r\nimport CheckCircleOutlinedIcon from \"@material-ui/icons/CheckCircleOutlined\";\r\nimport CancelOutlinedIcon from \"@material-ui/icons/CancelOutlined\";\r\nimport Visibility from \"@material-ui/icons/Visibility\";\r\nimport VisibilityOff from \"@material-ui/icons/VisibilityOff\";\r\nimport { green, red } from \"@material-ui/core/colors\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport { useLocation } from \"react-router-dom\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport { IconButton } from \"@material-ui/core\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport resetPasswordAction from \"redux/actions/auth/resetPasswordAction\";\r\nimport resetResetPasswordStateAction from \"redux/actions/auth/resetResetPasswordStateAction\";\r\nimport { changePasswordMap2 } from \"mappers/changePasswordMap\";\r\nimport { messages } from \"resources/resources\";\r\nimport useWindowSize from \"hooks/useWindowSize\";\r\nimport { usePasswordValidation } from \"hooks/usePasswordValidation\";\r\n//Styles\r\nimport componentStylesLogin from \"assets/theme/views/auth/login.js\";\r\nimport componentStylesGenericDialog from \"assets/theme/components/dialogs/generic-dialog\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nconst useStylesLogin = makeStyles(componentStylesLogin);\r\nconst useStylesGenericDialog = makeStyles(componentStylesGenericDialog);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction useQuery() {\r\n return new URLSearchParams(useLocation().search);\r\n}\r\n\r\nfunction ResetPassword(props) {\r\n let query = useQuery();\r\n const history = useHistory();\r\n const theme = useTheme();\r\n const classes = { ...useStylesGenericDialog(), ...useStylesLogin(), ...useStylesGeneric() };\r\n const intl = useIntl();\r\n const windowSize = useWindowSize();\r\n const [showPassword, setShowPassword] = useState(false);\r\n const handleClickShowPassword = () => setShowPassword(!showPassword);\r\n const handleMouseDownPassword = () => setShowPassword(!showPassword);\r\n\r\n const [showConfirmModal, setShowConfirmModal] = useState(false);\r\n\r\n const [showPasswordConfirm, setShowPasswordConfirm] = useState(false);\r\n const handleClickShowPasswordConfirm = () => setShowPasswordConfirm(!showPasswordConfirm);\r\n const handleMouseDownPasswordConfirm = () => setShowPasswordConfirm(!showPasswordConfirm);\r\n\r\n const [password, setPassword] = useState({\r\n firstPassword: \"\",\r\n secondPassword: \"\",\r\n });\r\n\r\n const [userName, setUserName] = useState(\"\");\r\n const [token, setToken] = useState(\"\");\r\n\r\n const handleLoginState = () => {\r\n history.push(\"/auth/login\");\r\n };\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n control,\r\n trigger,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const [passwordValidation] = usePasswordValidation({\r\n firstPassword: getValues(\"password\"),\r\n secondPassword: getValues(\"passwordConfirmation\"),\r\n });\r\n\r\n useEffect(() => {\r\n if (passwordValidation?.isValid != null) trigger(\"password\");\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [passwordValidation?.isValid]);\r\n\r\n const setFirst = (event) => {\r\n setPassword({ ...password, firstPassword: event.target.value });\r\n };\r\n const setSecond = (event) => {\r\n setPassword({ ...password, secondPassword: event.target.value });\r\n };\r\n\r\n function changePw(data) {\r\n if (userName && token && changePasswordMap2(data)) {\r\n props.resetPassword(userName, changePasswordMap2(data).Password, token);\r\n setShowConfirmModal(true);\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n setUserName(query.get(\"username\"));\r\n setToken(query.get(\"token\"));\r\n props.resetResetState();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n <>\r\n {windowSize.width > 900 && (\r\n \r\n \r\n \r\n )}\r\n\r\n {\r\n handleLoginState();\r\n }}\r\n >\r\n Alteração de Palavra-passe\r\n
\r\n \r\n \r\n \r\n \r\n \r\n Nova palavra-passe\r\n {\r\n if (!passwordValidation.isValid) return \"Palavra-passe inválida\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n setFirst(e);\r\n }}\r\n endAdornment={\r\n \r\n \r\n {showPassword ? : }\r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"password\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[\"password\"] !== undefined && !passwordValidation.isValid && (\r\n \r\n {errors[\"password\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação da nova palavra-passe\r\n {\r\n return (\r\n value === getValues(\"password\") ||\r\n \"O valor inserido deve ser igual ao campo 'Palavra-passe'\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n setSecond(e);\r\n }}\r\n endAdornment={\r\n \r\n \r\n {showPasswordConfirm ? : }\r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"passwordConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[\"passwordConfirmation\"] !== undefined && (\r\n \r\n {errors[\"passwordConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_1)}\r\n \r\n \r\n \r\n {passwordValidation.validLength ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_2)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.upperCase ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_3)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.lowerCase ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_4)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.hasNumber ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_5)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.specialChar ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_6)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Submeter\r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n Palavra-passe alterada com sucesso.\r\n \r\n \r\n {\r\n handleLoginState();\r\n }}\r\n color=\"primary\"\r\n >\r\n Continuar\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n resetPassword: (username, password, token) => dispatch(resetPasswordAction(username, password, token)),\r\n resetResetState: () => dispatch(resetResetPasswordStateAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ResetPassword);\r\n","import {\r\n getFilteredApplications,\r\n getApplicationDetailsGeneralData,\r\n updateApplicationDetailGeneralData,\r\n getApplicationDetailsHistory,\r\n addApplicationDetailHistoryEntry,\r\n getApplicationDocument,\r\n getUserApplications,\r\n} from \"crud/applications.crud\";\r\nimport moment from \"moment\";\r\nimport { APPLICATIONS, DIALOG } from \"utils/actionsConsts\";\r\nimport { convertByteArrayToBlobUrl } from \"utils/converters\";\r\nimport { b64toBlob } from \"utils/converters\";\r\n\r\nexport const getFilteredApplicationsActions = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_FILTERED_APPLICATIONS_LOADING,\r\n payload: true,\r\n });\r\n getFilteredApplications(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data?.map((record) => {\r\n return {\r\n numApplication: record.applicationNumber,\r\n identityCardOrTaxIdNum: record.identityCardOrTaxIdNum,\r\n userCode: record.userCode,\r\n userTypeKey: record.userTypeKey,\r\n nameOfUser: record.nameOfUser,\r\n governmentProgram: record.governmentProgram,\r\n program: record.program,\r\n subprogram: record.subprogram,\r\n submissionDate: moment(record.sumissionDate).format(\"DD/MM/YYYY HH:mm\"),\r\n state: record.state,\r\n stateKeyValue: record.stateKeyValue,\r\n userAvatar: record.userPhoto ? b64toBlob(record.userPhoto) : null,\r\n phoneNumber: record.phoneNumber,\r\n candidateMunicipality: record.candidateMunicipality,\r\n hasEntrepreneurshipTraining: record.hasEntrepreneurshipTraining,\r\n };\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_FILTERED_APPLICATIONS,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_FILTERED_APPLICATIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_FILTERED_APPLICATIONS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_FILTERED_APPLICATIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getApplicationDetailsGeneralDataActions = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DETAILS_GENERAL_DATA_LOADING,\r\n payload: true,\r\n });\r\n getApplicationDetailsGeneralData(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DETAILS_GENERAL_DATA,\r\n result: true,\r\n payload: {\r\n applicationNumber: res.data.applicationNumber,\r\n applicationStateId: res.data.applicationStateId,\r\n applicationStateHistory: res.data.applicationStateHistory,\r\n applicationStateGroupKey: parseInt(res.data.state.groupKey),\r\n departmentName: res.data.departmentName,\r\n userSingularGeneralDataSection:\r\n res.data.userSingularGeneralDataSection != null\r\n ? {\r\n userCode: res.data.userSingularGeneralDataSection.userCode,\r\n nameOfUser: res.data.userSingularGeneralDataSection.nameOfUser,\r\n userId: res.data.userSingularGeneralDataSection.userId,\r\n numBI: res.data.userSingularGeneralDataSection.numBI,\r\n gender: res.data.userSingularGeneralDataSection.gender,\r\n maritalStatus: res.data.userSingularGeneralDataSection.maritalStatus,\r\n otherApplicationsOfUser: res.data.userSingularGeneralDataSection.otherApplicationsOfUser,\r\n age: res.data.userSingularGeneralDataSection.age,\r\n mobilePhone: res.data.userSingularGeneralDataSection.mobilePhone,\r\n birthDate: res.data.userSingularGeneralDataSection.birthDate\r\n ? moment(res.data.userSingularGeneralDataSection.birthDate).format(\"DD/MM/YYYY\")\r\n : \"\",\r\n specialNeeds: res.data.userSingularGeneralDataSection.specialNeeds,\r\n specialNeedsPercentage: res.data.userSingularGeneralDataSection.specialNeedsPercentage,\r\n }\r\n : null,\r\n userColectiveGeneralDataSection:\r\n res.data.userColectiveGeneralDataSection !== null\r\n ? {\r\n userId: res.data.userColectiveGeneralDataSection.userId,\r\n userCode: res.data.userColectiveGeneralDataSection.userCode,\r\n otherApplicationsOfUser: res.data.userColectiveGeneralDataSection.otherApplicationsOfUser,\r\n responsibleName: res.data.userColectiveGeneralDataSection.responsibleName,\r\n responsibleMobilePhone: res.data.userColectiveGeneralDataSection.responsibleMobilePhone,\r\n responsibleEmail: res.data.userColectiveGeneralDataSection.responsibleEmail,\r\n companyName: res.data.userColectiveGeneralDataSection.companyName,\r\n companyTaxIdNumber: res.data.userColectiveGeneralDataSection.companyTaxIdNumber,\r\n companyPhone: res.data.userColectiveGeneralDataSection.companyPhone,\r\n companyEmail: res.data.userColectiveGeneralDataSection.companyEmail,\r\n }\r\n : null,\r\n provinceName: res.data.programSubprogramDataSection.provinceName,\r\n provinceId: res.data.programSubprogramDataSection.provinceId,\r\n\r\n governmentProgramId: res.data.programSubprogramDataSection.governmentProgramId,\r\n governmentProgramName: res.data.programSubprogramDataSection.governmentProgramName,\r\n programId: res.data.programSubprogramDataSection.programId,\r\n programName: res.data.programSubprogramDataSection.programName\r\n ? res.data.programSubprogramDataSection.programName\r\n : \"\",\r\n subprogramId: res.data.programSubprogramDataSection.subprogramId,\r\n subprogramName: res.data.programSubprogramDataSection.subprogramName,\r\n benefitId: res.data.programSubprogramDataSection.benefitId,\r\n benefitKeyValue: res.data.programSubprogramDataSection.benefitKeyValue,\r\n benefitName: res.data.programSubprogramDataSection.benefitName,\r\n bankPreferenceId: res.data.programSubprogramDataSection.bankPreferenceId,\r\n microcreditAmount: res.data.programSubprogramDataSection.microcreditAmount,\r\n concededMicrocreditAmount: res.data.programSubprogramDataSection.concededMicrocreditAmount,\r\n professionalKitsNumber: res.data.programSubprogramDataSection.professionalKitsNumber,\r\n concededProfessionalKitsNumber: res.data.programSubprogramDataSection.concededProfessionalKitsNumber,\r\n intendedCourseCode: res.data.programSubprogramDataSection.intendedCourseCode,\r\n trainingCenterId: res.data.programSubprogramDataSection.trainingCenterId,\r\n internshipAreaId: res.data.programSubprogramDataSection.internshipAreaId,\r\n internshipOpportunityId: res.data.programSubprogramDataSection.internshipOpportunityId,\r\n kitUnitPrice: res.data.programSubprogramDataSection.kitUnitPrice,\r\n parentApplicationId: res.data.programSubprogramDataSection.parentApplicationId,\r\n parentApplicationCode: res.data.programSubprogramDataSection.parentApplicationCode,\r\n generatedWorkPosts: res.data.programSubprogramDataSection.generatedWorkPosts,\r\n\r\n complementaryData: res.data.complementaryDataSection,\r\n complementaryDataId: res.data.complementaryDataId,\r\n documents: res.data.documentsSection,\r\n },\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DETAILS_GENERAL_DATA_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DETAILS_GENERAL_DATA,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DETAILS_GENERAL_DATA_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateApplicationDetailGeneralDataAction = (formData, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_UPDATE_LOADING,\r\n payload: true,\r\n });\r\n updateApplicationDetailGeneralData(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: APPLICATIONS.UPDATE_APPLICATION_DETAILS_GENERAL_DATA,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_UPDATE_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n okAction: res.data ? _onCloseAction : undefined,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? \"Dados Gerais da candidatura editados com sucesso.\"\r\n : \"Ocorreu um erro ao editar os detalhes da candidatura.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: APPLICATIONS.UPDATE_APPLICATION_DETAILS_GENERAL_DATA,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_UPDATE_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getApplicationDetailsHistoryActions = (formData) => async (dispatch) => {\r\n getApplicationDetailsHistory(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: APPLICATIONS.APPLICATION_DETAILS_HISTORY_REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DETAILS_HISTORY,\r\n result: true,\r\n payload: res.data.map((record) => {\r\n return {\r\n id: record.id,\r\n actionId: record.actionId,\r\n actionName: record.actionName,\r\n message: record.message,\r\n createDatetime: record.createDatetime,\r\n createUser: record.createUser,\r\n };\r\n }),\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: APPLICATIONS.APPLICATION_DETAILS_HISTORY_REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DETAILS_HISTORY,\r\n result: false,\r\n payload: [],\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const addApplicationDetailHistoryEntryAction = (formData) => async (dispatch) => {\r\n addApplicationDetailHistoryEntry(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: APPLICATIONS.CREATE_APPLICATION_DETAILS_HISTORY_ENTRY,\r\n payload: res.data,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n goBack: false,\r\n isSuccess: res.data,\r\n message: res.data ? \"Comentário adicionado com sucesso\" : \"Ocorreu a adicionar comentário\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: APPLICATIONS.APPLICATION_DETAILS_HISTORY_REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: APPLICATIONS.CREATE_APPLICATION_DETAILS_HISTORY_ENTRY,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getApplicationDocumentAction = (docId, docName) => async (dispatch) => {\r\n getApplicationDocument(docId)\r\n .then((res) => {\r\n const link = document.createElement(\"a\");\r\n link.href = convertByteArrayToBlobUrl(res.data);\r\n link.setAttribute(\"download\", docName);\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_APPLICATION_DOCUMENT_DATA_DOWNLOAD,\r\n result: false,\r\n payload: null,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getUserApplicationsAction = (data) => async (dispatch) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_USER_APPLICATIONS_LOADING,\r\n payload: true,\r\n });\r\n getUserApplications(data)\r\n .then((res) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_USER_APPLICATIONS,\r\n result: true,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_USER_APPLICATIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: APPLICATIONS.GET_USER_APPLICATIONS_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: APPLICATIONS.GET_USER_APPLICATIONS,\r\n result: false,\r\n payload: [],\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default getFilteredApplicationsActions;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL, EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const GET_FILTERED_APPLICATIONS_URL =\r\n \"Applications/get-filtered-applications\";\r\nexport const GET_APPLICATION_DETAILS_GENERAL_DATA_URL =\r\n \"Applications/get-application-details-general-data?applicationNumber=\";\r\nexport const UPDATE_APPLICATION_DETAILS_GENERAL_DATA_URL =\r\n \"Applications/update\";\r\nexport const GET_APPLICATION_DETAILS_HISTORY_URL =\r\n \"Applications/get-application-history?applicationNumber=\";\r\nexport const CREATE_APPLICATION_DETAILS_HISTORY_ENTRY_URL =\r\n \"Applications/create-application-history-entry\";\r\nexport const GET_APPLICATION_DOCUMENT_URL =\r\n \"Applications/get-application-document-by-id?docId=\";\r\nexport const GET_USER_APPLICATIONS_URL = \"applications/get-user-applications\"; \r\n\r\nexport function getFilteredApplications(data) {\r\n return axios.post(INTERNAL_API_URL + GET_FILTERED_APPLICATIONS_URL, data);\r\n}\r\n\r\nexport function getApplicationDetailsGeneralData(data) {\r\n return axios.get(\r\n EXTERNAL_API_URL + GET_APPLICATION_DETAILS_GENERAL_DATA_URL + data\r\n );\r\n}\r\n\r\nexport function updateApplicationDetailGeneralData(data) {\r\n return axios.post(\r\n EXTERNAL_API_URL + UPDATE_APPLICATION_DETAILS_GENERAL_DATA_URL,\r\n data\r\n );\r\n}\r\n\r\nexport function getApplicationDetailsHistory(data) {\r\n return axios.get(\r\n INTERNAL_API_URL + GET_APPLICATION_DETAILS_HISTORY_URL + data\r\n );\r\n}\r\n\r\nexport function addApplicationDetailHistoryEntry(data) {\r\n return axios.post(\r\n INTERNAL_API_URL + CREATE_APPLICATION_DETAILS_HISTORY_ENTRY_URL,\r\n data\r\n );\r\n}\r\n\r\nexport function getApplicationDocument(data) {\r\n return axios.get(EXTERNAL_API_URL + GET_APPLICATION_DOCUMENT_URL + data, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n responseType: \"blob\",\r\n });\r\n}\r\n\r\nexport function getUserApplications(data) {\r\n return axios.post(EXTERNAL_API_URL + GET_USER_APPLICATIONS_URL, data);\r\n}\r\n","import { getReport } from \"crud/reports.crud\";\r\nimport { REPORTS } from \"utils/actionsConsts\";\r\nimport { convertByteArrayToBlobUrl } from \"utils/converters\";\r\n\r\nexport const getReportAction = (formData, reportFileName) => async (dispatch) => {\r\n dispatch({\r\n type: REPORTS.GET_REPORT_LOADING,\r\n payload: true,\r\n });\r\n getReport(formData)\r\n .then((res) => {\r\n const link = document.createElement(\"a\");\r\n link.href = convertByteArrayToBlobUrl(res.data);\r\n link.setAttribute(\"download\", reportFileName);\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n\r\n dispatch({\r\n type: REPORTS.GET_REPORT,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: REPORTS.GET_REPORT_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: REPORTS.GET_REPORT,\r\n result: false,\r\n payload: null,\r\n });\r\n dispatch({\r\n type: REPORTS.GET_REPORT_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default getReportAction;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\n\r\nexport const GET_REPORT_URL = \"Reports/GetReport\";\r\n\r\nexport function getReport(data) {\r\n return axios.post(INTERNAL_API_URL + GET_REPORT_URL, data, { responseType: \"blob\" });\r\n}\r\n","import { FORM_FIELDS_PREFIX, REPORT_TYPES, COMPLEMENTARY_DATA_ANSWER_TYPE, MONETARY_DECIMAL_SEPARATOR } from \"utils/consts\";\r\n\r\nexport function updateGeneralDataMap(formData, documentTypes) {\r\n const data = new FormData();\r\n if (formData !== null && formData !== undefined) {\r\n const listComplementaryDataItems = formData.complementaryDataList?.map((compleData) => {\r\n return {\r\n complementaryDataId: compleData.complementaryDataId,\r\n answer:\r\n compleData.answerTypeId === COMPLEMENTARY_DATA_ANSWER_TYPE.DATASET\r\n ? formData[FORM_FIELDS_PREFIX.COMPLEMENTARY_DATA + compleData.complementaryDataId]?.code?.toString()\r\n : formData[FORM_FIELDS_PREFIX.COMPLEMENTARY_DATA + compleData.complementaryDataId] ?? \"\",\r\n };\r\n });\r\n\r\n const application = {\r\n applicationCode: formData.applicationNumber ? formData.applicationNumber : 0,\r\n applicationStateId: formData.applicationStateId !== undefined ? formData.applicationStateId.code : 0,\r\n bankPreferenceId: formData.bank?.code ? formData.bank?.code : \"\",\r\n concededMicrocreditAmount:\r\n formData.concededMicrocreditAmount !== undefined ? formData.concededMicrocreditAmount?.toString().replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : \"\",\r\n concededProfessionalKitsNumber:\r\n formData.concededProfessionalKitsNumber !== undefined ? formData.concededProfessionalKitsNumber : \"\",\r\n trainingCenterId: formData.trainingCenterId !== undefined ? formData.trainingCenterId?.code : \"\",\r\n intendedCourseCode: formData.intendedCourseCode !== undefined ? formData.intendedCourseCode?.code : \"\",\r\n numBI: formData.numBI !== undefined ? formData.numBI : null,\r\n provinceId: formData.provinceId?.code ? formData.provinceId?.code : \"\",\r\n internshipAreaId: formData.internshipAreaId?.code ? formData.internshipAreaId?.code : \"\",\r\n internshipOpportunityId: formData.internshipOpportunityId?.code ? formData.internshipOpportunityId?.code : \"\",\r\n };\r\n\r\n //Append data\r\n data.append(\"isBackOffice\", true);\r\n data.append(\"rejectMotiveId\", formData.rejectMotiveId !== undefined ? formData.rejectMotiveId : \"\");\r\n data.append(\r\n \"rejectMotiveObservations\",\r\n formData.rejectMotiveObservations !== undefined ? formData.rejectMotiveObservations : \"\"\r\n );\r\n\r\n for (const key in application) {\r\n data.append(\"application.\" + key, application[key]);\r\n }\r\n\r\n let countAnswers = 0;\r\n listComplementaryDataItems?.forEach((element) => {\r\n data.append(`application.answers[${countAnswers}].complementaryDataId`, element.complementaryDataId);\r\n data.append(`application.answers[${countAnswers}].answer`, element.answer);\r\n countAnswers++;\r\n });\r\n\r\n let countDoc = 0;\r\n documentTypes?.forEach((dt) => {\r\n if (\r\n formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.documentTypeId] &&\r\n formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.documentTypeId][0]\r\n ) {\r\n data.append(`application.applicationDocuments[${countDoc}].documentTypeId`, dt.documentTypeId);\r\n data.append(`application.applicationDocuments[${countDoc}].documentId`, countDoc);\r\n data.append(\"ApplicationDocuments\", formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.documentTypeId][0]);\r\n countDoc++;\r\n }\r\n });\r\n }\r\n\r\n return data;\r\n}\r\n\r\nexport function createSchedulingMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n applicationNumber: formData.applicationNumber ? formData.applicationNumber : 0,\r\n motiveId: formData.schedulingMotive.code ? formData.schedulingMotive.code : \"\",\r\n schedulingDatetime: formData.schedulingDate ? formData.schedulingDate.format(\"YYYY-MM-DDTHH:mmZ\") : null,\r\n message: formData.schedulingObjectives ? formData.schedulingObjectives : null,\r\n };\r\n }\r\n\r\n return formData;\r\n}\r\n\r\nexport function createNotificationsMap(formData) {\r\n if (formData !== null && formData) {\r\n return {\r\n userId: formData.notificationBackOfficeUser ? formData.notificationBackOfficeUser.code : null,\r\n userGroupKeyValue: formData.notificationBackOfficeGroup ? formData.notificationBackOfficeGroup.code : null,\r\n applicationNumber: formData.applicationNumber ? formData.applicationNumber : null,\r\n motiveId: formData.notificationMotive ? formData.notificationMotive.code : 0,\r\n subjectId: formData.notificationSubject ? formData.notificationSubject.code : 0,\r\n message: formData.notificationObservations ? formData.notificationObservations : null,\r\n notificationDate: null,\r\n originKey: \"OriginBO\",\r\n };\r\n }\r\n\r\n return formData;\r\n}\r\n\r\nexport function addHistoryEntryMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n applicationNumber: formData.applicationNumber ? formData.applicationNumber : 0,\r\n message: formData.historyComment ? formData.historyComment : null,\r\n };\r\n }\r\n\r\n return formData;\r\n}\r\n\r\nexport function applicationsFilterMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n numApplication: formData.applicationNumber ?? \"\",\r\n identityCardOrTaxIdNum: formData.identityCardOrTaxIdNum ?? \"\",\r\n userCode: formData.userCode ?? \"\",\r\n nameOfUser: formData.nameOfUser ?? \"\",\r\n stateId: formData.statusId?.code,\r\n governmentProgramId: formData.governmentProgramId?.code,\r\n programId: formData.programId?.code,\r\n subprogramId: formData.subprogramId?.code,\r\n internshipAreaId: formData.internshipAreaId?.code,\r\n startDate: formData.startDate ? formData.startDate.format(\"YYYY-MM-DD\") : null,\r\n endDate: formData.endDate ? formData.endDate.format(\"YYYY-MM-DD\") : null,\r\n provinceId: formData.province?.code,\r\n candidateProvinceId: formData.candidateProvince?.code,\r\n candidateMunicipalityId: formData.candidateMunicipality?.code,\r\n phoneNumber: formData.phoneNumber,\r\n hasEntrepreneurshipTraining: formData.hasEntrepreneurshipTraining?.code,\r\n genderId: formData.genderId?.code,\r\n academicLevelId: formData.academicLevelId?.code,\r\n degreeId: formData.degreeId?.code,\r\n };\r\n }\r\n}\r\n\r\nexport function applicationExportReportMap(applicationNumber) {\r\n if (applicationNumber !== null && applicationNumber !== undefined) {\r\n return {\r\n reportEnumKey: REPORT_TYPES.APPLICATION_DETAILS,\r\n parameters: JSON.stringify({ ApplicationNumber: applicationNumber }),\r\n };\r\n }\r\n}\r\n\r\nexport function applicationsFilterExportReportMap(filterData) {\r\n if (filterData !== null && filterData !== undefined) {\r\n return {\r\n reportEnumKey: REPORT_TYPES.APPLICATIONS_SEARCH_RESULTS,\r\n parameters: JSON.stringify(filterData),\r\n };\r\n }\r\n}\r\n\r\nexport default updateGeneralDataMap;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport {\r\n getDataSetByNameAction,\r\n getProgramsAction,\r\n getSubprogramsAction,\r\n getSubprogramByProgramIdAction,\r\n clearDataSetByNameAction,\r\n getGovernmentProgramsAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { getFilteredApplicationsActions } from \"redux/actions/applicationsAction\";\r\nimport { getReportAction } from \"redux/actions/reportsAction\";\r\nimport { DATASET, PAGINATION, OPERATIONS, REPORT_FILE_NAME, REPORT_CONSTS } from \"utils/consts\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { applicationsFilterMap, applicationsFilterExportReportMap } from \"mappers/applicationsDetailsMap\";\r\nimport { labels, messages, errorMessages, titles } from \"resources/resources\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n //TODO: Validar se os novos campos são contabilizados nos filtros\r\n const [filter, setFilter] = useState({\r\n numApplication: \"\",\r\n numBI: \"\",\r\n userCode: \"\",\r\n nameOfUser: \"\",\r\n stateId: null,\r\n governmentProgramId: null,\r\n programId: null,\r\n subprogramId: null,\r\n internshipAreaId: null,\r\n startDate: null,\r\n endDate: null,\r\n provinceId: props.authState?.province ?? null,\r\n candidateMunicipality: null, //TODO: VER SE O AUTH STATE TAMBÉM TEM MUNICIPALITY\r\n candidateProvince: null,\r\n hasEntrepreneurshipTraining: null,\r\n genderId: null,\r\n academicLevelId: null,\r\n degreeId: null,\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n trigger,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const handleInputValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"applicationNumber\", \"\");\r\n setValue(\"identityCardOrTaxIdNum\", \"\");\r\n setValue(\"userCode\", \"\");\r\n setValue(\"nameOfUser\", \"\");\r\n setValue(\"phoneNumber\", \"\");\r\n setValue(\"statusId\", undefined);\r\n setValue(\"governmentProgramId\", undefined);\r\n setValue(\"programId\", undefined);\r\n setValue(\"subprogramId\", undefined);\r\n setValue(\"internshipAreaId\", undefined);\r\n setValue(\"startDate\", undefined);\r\n setValue(\"endDate\", undefined);\r\n setValue(\"candidateProvince\", undefined);\r\n setValue(\"candidateMunicipality\", undefined);\r\n setValue(\"hasEntrepreneurshipTraining\", undefined);\r\n setValue(\"genderId\", undefined);\r\n setValue(\"academicLevelId\", undefined);\r\n setValue(\"degreeId\", undefined);\r\n if (!props.authState?.province) setValue(\"province\", undefined);\r\n props.clearDataSetByName(DATASET.SUBPROGRAMS);\r\n\r\n setFilterCounter(0);\r\n setFilter(0);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = applicationsFilterMap(data);\r\n filter[\"pageIndex\"] = PAGINATION.FIRST_PAGE;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n setFilter(filter);\r\n if (props.page === PAGINATION.FIRST_PAGE) props.getFilteredApplications(filter);\r\n else props.handleChangePage(1);\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS] === undefined ||\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS]?.length === 0\r\n ) {\r\n props.getGovernmentPrograms();\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_STATES] === undefined ||\r\n props.dataSetState[DATASET.APPLICATION_STATES]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.APPLICATION_STATES);\r\n }\r\n\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES]?.length === 0) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.PROFESSIONAL_CATEGORY] === undefined ||\r\n props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.PROFESSIONAL_CATEGORY);\r\n }\r\n\r\n if (props.dataSetState[DATASET.GENDER] === undefined || props.dataSetState[DATASET.GENDER]?.length === 0) {\r\n props.getDataSet(DATASET.GENDER);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.ACADEMIC_LEVEL] === undefined ||\r\n props.dataSetState[DATASET.ACADEMIC_LEVEL]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.ACADEMIC_LEVEL);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.ACADEMIC_DEGREE] === undefined ||\r\n props.dataSetState[DATASET.ACADEMIC_DEGREE]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.ACADEMIC_DEGREE);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (\r\n props.authState?.province &&\r\n props.dataSetState[DATASET.PROVINCES] !== undefined &&\r\n props.dataSetState[DATASET.PROVINCES]?.length !== 0\r\n ) {\r\n var selectedProvince = getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.authState.province\r\n );\r\n setValue(\"province\", selectedProvince);\r\n setValue(\"candidateProvince\", selectedProvince);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.match?.params?.numBI !== undefined) {\r\n setValue(\"identityCardOrTaxIdNum\", props.match?.params?.numBI !== undefined ? props.match.params.numBI : \"\");\r\n\r\n handleSubmit(onSubmit)();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match?.params?.numBI]);\r\n\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n props.getFilteredApplications(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n return (\r\n \r\n \r\n
{intl.formatMessage(titles.Title_Admin_ApplicationsManagement)}
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumApplicationField)}\r\n \r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"numApplication\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"applicationNumber\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumBIField)}\r\n \r\n \r\n \r\n \r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"identityCardOrTaxIdNum\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"identityCardOrTaxIdNum\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_UserNameField)}\r\n \r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"nameOfUser\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"nameOfUser\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_PhoneNumber)}\r\n \r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"phoneNumber\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_CandidateProvince)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_CandidateMunicipality)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_EntrepreneurshipTraining)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_InternshipArea)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_GovernmentProgram)}\r\n \r\n {\r\n setValue(\"subprogramId\", undefined);\r\n }}\r\n required={false}\r\n errors={errors}\r\n classes={classes}\r\n handleSetFilter={handleSetFilter}\r\n filterList={filter}\r\n filterListKey={\"governmentProgramId\"}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_ProgramField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_SubprogramField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_ApplicationProvince)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_StatusField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_GeneralDataSection_GenderField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicLevel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicDegree)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_SubmissionDateFrom)}\r\n \r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isLessThanEndDate: (value) => {\r\n if (!getValues(\"endDate\") || errors[\"endDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"endDate\")._isAMomentObject &&\r\n value <= getValues(\"endDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanOrEqualToDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"endDate\")) trigger(\"endDate\");\r\n trigger(\"startDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment().startOf(\"day\") &&\r\n (!getValues(\"endDate\") ||\r\n (getValues(\"endDate\")._isAMomentObject && currentDate <= getValues(\"endDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"startDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"startDate\"] !== undefined && (\r\n \r\n {errors[\"startDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_SubmissionDateTo)}\r\n \r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment() ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isGreaterThanStartDate: (value) => {\r\n if (!getValues(\"startDate\") || errors[\"startDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"startDate\")._isAMomentObject &&\r\n value >= getValues(\"startDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanOrEqualToDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"startDate\")) trigger(\"startDate\");\r\n trigger(\"endDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment() &&\r\n (!getValues(\"startDate\") ||\r\n (getValues(\"startDate\")._isAMomentObject && currentDate >= getValues(\"startDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"endDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"endDate\"] !== undefined && (\r\n \r\n {errors[\"endDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n\r\n \r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.EXPORT_REPORTS) && (\r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.applicationsState?.total_records === 0\r\n ? `Limite mínimo de 1 e máximo de ${REPORT_CONSTS.MAX_RESULTS} resultados para exportar relatório`\r\n : \"\"\r\n }\r\n >\r\n \r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.applicationsState?.total_records === 0\r\n }\r\n style={{ marginRight: \"20px\" }}\r\n onClick={() => {\r\n props.getReport(\r\n applicationsFilterExportReportMap(filter),\r\n REPORT_FILE_NAME.APPLICATIONS_SEARCH_RESULTS +\r\n moment().format(\"YYYYMMDDHHmm\") +\r\n REPORT_FILE_NAME.EXCEL_EXTENSION\r\n );\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ExportButton)}\r\n \r\n \r\n \r\n )}\r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getPrograms: (name, governmentProgramId) => dispatch(getProgramsAction(name, governmentProgramId)),\r\n getSubprograms: (name) => dispatch(getSubprogramsAction(name)),\r\n getFilteredApplications: (filterData) => dispatch(getFilteredApplicationsActions(filterData)),\r\n getSubprogramByProgramId: (name, program) => dispatch(getSubprogramByProgramIdAction(name, program)),\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n getReport: (data, reportFileName) => dispatch(getReportAction(data, reportFileName)),\r\n getGovernmentPrograms: () => dispatch(getGovernmentProgramsAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(withRouter(FilterSection));\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport Box from \"@material-ui/core/Box\";\r\n// import Button from \"@material-ui/core/Button\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// @material-ui/icons components\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { TABLE_STATE_CHIP_COLOR, USER_TYPE_KEY } from \"utils/consts\";\r\n\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { getNameInitials } from \"utils/converters\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ResultSection(props) {\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n\r\n const [applicationList, setApplicationList] = useState([]);\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumApplicationField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_UserNameField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumBIField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_PhoneNumber),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_CandidateMunicipality),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_EntrepreneurshipTraining),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_GovernmentProgram),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_ProgramField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_SubprogramField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_SubmissionDate),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_StatusField),\r\n \"\",\r\n ];\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.applicationsState.result)) {\r\n setApplicationList(props.applicationsState.result.data);\r\n } else {\r\n setApplicationList([]);\r\n }\r\n }, [props.applicationsState.result]);\r\n\r\n const MapApplicationStateToTableChipColors = (applicationState) => {\r\n const greenChipArray = [14];\r\n const yellowChipArray = [1, 3, 9];\r\n const orangeChipArray = [4, 5, 6, 7, 8, 10, 11, 12];\r\n const redChipArray = [2, 13, 15];\r\n\r\n if (greenChipArray.includes(applicationState)) {\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n }\r\n if (orangeChipArray.includes(applicationState)) {\r\n return TABLE_STATE_CHIP_COLOR.DARK_ORANGE;\r\n }\r\n if (yellowChipArray.includes(applicationState)) {\r\n return TABLE_STATE_CHIP_COLOR.YELLOW;\r\n }\r\n if (redChipArray.includes(applicationState)) {\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n {intl.formatMessage(titles.Title_Admin_ApplicationsManagement_ResultSection)}\r\n
\r\n
\r\n {\"(\"}\r\n {props.applicationsState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) =>\r\n key === 2 ? (\r\n \r\n {prop}\r\n \r\n \r\n \r\n \r\n ) : (\r\n \r\n {prop}\r\n \r\n )\r\n )}\r\n \r\n {intl.formatMessage(labels.Label_Details)}\r\n \r\n \r\n \r\n\r\n {applicationList !== undefined && applicationList.length > 0 && (\r\n \r\n {applicationList?.map((prop, key) => (\r\n \r\n {prop.numApplication}\r\n \r\n {prop.nameOfUser}\r\n \r\n {prop.identityCardOrTaxIdNum}\r\n {prop.phoneNumber}\r\n {prop.candidateMunicipality}\r\n \r\n {prop.hasEntrepreneurshipTraining\r\n ? intl.formatMessage(labels.Label_Yes)\r\n : intl.formatMessage(labels.Label_No)}\r\n \r\n {prop.governmentProgram}\r\n {prop.program}\r\n \r\n {prop.subprogram}\r\n \r\n {prop.submissionDate}\r\n \r\n \r\n \r\n \r\n \r\n {prop.userAvatar ? (\r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(prop.nameOfUser)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(applicationList == null || applicationList.length === 0) && !props.applicationsState.loading && (\r\n {intl.formatMessage(labels.Label_NoResultsFound)}\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ResultSection);\r\n","import React,{ useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\n\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FilterSection from \"./Sections/FilterSection\";\r\nimport ResultSection from \"./Sections/ResultSection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Applications() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n { handleChangePage(undefined, value) }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(Applications);\r\n","const componentStyles = (theme) => ({\r\n stepperBox: {\r\n marginTop: \"20px\",\r\n width: \"100%\",\r\n background: theme.palette.primary.greyBlue,\r\n },\r\n stepperText: {\r\n \"& .MuiStepLabel-label.MuiStepLabel-active\": {\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"13px\",\r\n lineHeight: \"18px\",\r\n color: theme.palette.white.main,\r\n },\r\n \"& .MuiStepLabel-label\": {\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"13px\",\r\n lineHeight: \"18px\",\r\n color: theme.palette.white.main,\r\n },\r\n },\r\n circle: {\r\n fill: theme.palette.white.main + \"solid\",\r\n },\r\n check: {\r\n fill: theme.palette.primary.greyBlue,\r\n width: \"30px\",\r\n height: \"30px\",\r\n },\r\n filledCircle: {\r\n fill: theme.palette.primary.greyBlue,\r\n },\r\n alertGrid: {\r\n marginBottom: \"30px\",\r\n maxWidth: \"fit-content\",\r\n },\r\n alertIcon: {\r\n padding: \"12px 0\",\r\n },\r\n alertFilledWarning: {\r\n backgroundColor: theme.palette.warning.light,\r\n color: theme.palette.black.main,\r\n \r\n fontStyle: \"normal\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n },\r\n alertLink: {\r\n color: theme.palette.black.main,\r\n textDecoration: \"underline\",\r\n \"&:hover\": {\r\n color: theme.palette.black.main,\r\n },\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { messages } from \"resources/resources\";\r\n\r\nexport default function GenericFormSelect({\r\n control,\r\n fieldName,\r\n selectOptions,\r\n initialLabel,\r\n getValues,\r\n required,\r\n requiredMessage,\r\n errors,\r\n classes,\r\n disabled,\r\n onOptionChange,\r\n filled,\r\n showInitialLabel = true,\r\n handleSetFilter,\r\n filterListKey\r\n}) {\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n\r\n const checkErrors = (errors, name) => {\r\n const nameSplit = name?.split(\".\");\r\n\r\n let hasErrors = false\r\n\r\n nameSplit?.map((nameElement) => {\r\n if(errors[nameElement] !== undefined){\r\n errors = errors[nameElement]\r\n hasErrors = true\r\n }\r\n else{\r\n hasErrors = false\r\n }\r\n\r\n return hasErrors\r\n })\r\n\r\n return hasErrors\r\n }\r\n\r\n return (\r\n (\r\n option.label}\r\n getOptionSelected={(option, value) => option.code === value.code}\r\n disabled={disabled !== undefined ? disabled : false}\r\n data-testid={\"generic-form-select-\" + name} \r\n classes={{\r\n inputRoot: clsx({\r\n [classes.selectBorderWarningInputRoot]: errors !== undefined && checkErrors(errors, name),\r\n }),\r\n }}\r\n ListboxProps={{\r\n style: {\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n },\r\n }}\r\n style={filled ? { backgroundColor: theme.palette.white.main, borderRadius: \"5px\" } : {}}\r\n renderInput={(params) => (\r\n \r\n )}\r\n onChange={(_, data) => {\r\n onChange(data);\r\n if (onOptionChange !== undefined) {\r\n onOptionChange(data);\r\n }\r\n\r\n if (handleSetFilter){\r\n handleSetFilter(filterListKey, data ? data.code : null)\r\n }\r\n }}\r\n />\r\n )}\r\n />\r\n );\r\n}\r\n","import React, { useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\nimport \"moment/locale/pt\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport InputBase from \"@material-ui/core/InputBase\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport {\r\n getDataSetByNameAction,\r\n getBackOfficeRolesAction,\r\n getBackOfficeUsersAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { createNotificationAction } from \"redux/actions/notificationsAction\";\r\nimport { DATASET, NOTIFICATION_RECIPIENT_TYPE } from \"utils/consts\";\r\nimport { labels, titles, messages } from \"resources/resources\";\r\nimport { createNotificationsMap } from \"../../../../mappers/applicationsDetailsMap\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction NotificationsTab(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [recipientType, setRecipientType] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n unregister,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_NOTIFICATION_SUBJECTS] ===\r\n undefined ||\r\n props.dataSetState[DATASET.APPLICATION_NOTIFICATION_SUBJECTS]?.length ===\r\n 0\r\n ) {\r\n props.getDataSet(DATASET.APPLICATION_NOTIFICATION_SUBJECTS);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_NOTIFICATION_MOTIVES] ===\r\n undefined ||\r\n props.dataSetState[DATASET.APPLICATION_NOTIFICATION_MOTIVES]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.APPLICATION_NOTIFICATION_MOTIVES);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_NOTIFICATION_RECIPIENT_TYPES] ===\r\n undefined ||\r\n props.dataSetState[DATASET.APPLICATION_NOTIFICATION_RECIPIENT_TYPES]\r\n ?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.APPLICATION_NOTIFICATION_RECIPIENT_TYPES);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.BACKOFFICE_USERS] === undefined ||\r\n props.dataSetState[DATASET.BACKOFFICE_USERS]?.length === 0\r\n ) {\r\n props.getBackOfficeUsers(DATASET.BACKOFFICE_USERS);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES] === undefined ||\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES]?.length === 0\r\n ) {\r\n props.getBackOfficeRoles(DATASET.BACKOFFICE_ROLES);\r\n }\r\n\r\n setValue(\"applicationNumber\", props.applicationNumber);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const clearFields = () => {\r\n setValue(\"notificationBackOfficeUser\", undefined);\r\n setValue(\"notificationBackOfficeGroup\", undefined);\r\n setValue(\"notificationRecipient\", undefined);\r\n setValue(\"notificationSubject\", undefined);\r\n setValue(\"notificationMotive\", undefined);\r\n setValue(\"notificationObservations\", \"\");\r\n\r\n unregister(\"notificationCandidate\");\r\n unregister(\"notificationBackOfficeUser\");\r\n unregister(\"notificationBackOfficeGroup\");\r\n setRecipientType(0);\r\n };\r\n\r\n function loadSpecificGroupOrUser(recipientType) {\r\n switch (recipientType) {\r\n case NOTIFICATION_RECIPIENT_TYPE.CANDIDATE:\r\n setValue(\r\n \"notificationCandidate\",\r\n props.generalData?.userSingularGeneralDataSection != null ? props.generalData.userSingularGeneralDataSection.nameOfUser : \r\n props.generalData?.userColectiveGeneralDataSection != null ? props.generalData.userColectiveGeneralDataSection.companyName : \"\"\r\n );\r\n return (\r\n <>\r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_NotificationsTab_CandidateField\r\n )}\r\n \r\n (\r\n onChange(\"provinceName\", e.target.value)}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n disabled={true}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]:\r\n errors[\"notificationCandidate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[\"notificationCandidate\"] !== undefined && (\r\n \r\n {errors[\"notificationCandidate\"].message}\r\n \r\n )}\r\n \r\n );\r\n case NOTIFICATION_RECIPIENT_TYPE.BO_USER:\r\n return (\r\n <>\r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_NotificationsTab_BackofficeUserField\r\n )}\r\n \r\n \r\n {errors[\"notificationBackOfficeUser\"] !== undefined && (\r\n \r\n {errors[\"notificationBackOfficeUser\"].message}\r\n \r\n )}\r\n \r\n );\r\n case NOTIFICATION_RECIPIENT_TYPE.BO_GROUP:\r\n return (\r\n <>\r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_NotificationsTab_BackofficeGroupField\r\n )}\r\n \r\n \r\n {errors[\"notificationBackOfficeGroup\"] !== undefined && (\r\n \r\n {errors[\"notificationBackOfficeGroup\"].message}\r\n \r\n )}\r\n \r\n );\r\n default:\r\n return <>;\r\n }\r\n }\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n props.createNotification(createNotificationsMap(data), clearFields);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n
\r\n \r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_NotificationsTab_RecipientField\r\n )}\r\n \r\n (\r\n option.label}\r\n getOptionSelected={(option, value) =>\r\n option.code === value.code\r\n }\r\n classes={{\r\n inputRoot: clsx({\r\n [classes.selectBorderWarningInputRoot]:\r\n errors !== undefined &&\r\n errors[name] !== undefined,\r\n }),\r\n }}\r\n ListboxProps={{\r\n style: {\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n },\r\n }}\r\n renderInput={(params) => (\r\n \r\n )}\r\n onChange={(_, data) => {\r\n onChange(data);\r\n if (data !== null) {\r\n setValue(\"notificationBackOfficeUser\", undefined);\r\n setValue(\r\n \"notificationBackOfficeGroup\",\r\n undefined\r\n );\r\n\r\n unregister(\"notificationCandidate\");\r\n unregister(\"notificationBackOfficeUser\");\r\n unregister(\"notificationBackOfficeGroup\");\r\n\r\n setRecipientType(data.keyValue);\r\n } else {\r\n setRecipientType(0);\r\n }\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[\"notificationRecipient\"] !== undefined && (\r\n \r\n {errors[\"notificationRecipient\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {loadSpecificGroupOrUser(recipientType)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_NotificationsTab_MotiveField\r\n )}\r\n \r\n \r\n {errors[\"notificationMotive\"] !== undefined && (\r\n \r\n {errors[\"notificationMotive\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_NotificationsTab_SubjectField\r\n )}\r\n \r\n \r\n {errors[\"notificationSubject\"] !== undefined && (\r\n \r\n {errors[\"notificationSubject\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_NotificationsTab_ObservationsField\r\n )}\r\n \r\n (\r\n \r\n )}\r\n />\r\n {errors[\"notificationObservations\"] !== undefined && (\r\n \r\n {errors[\"notificationObservations\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n Enviar\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) =>\r\n dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getBackOfficeUsers: (name) => dispatch(getBackOfficeUsersAction(name)),\r\n getBackOfficeRoles: (name) => dispatch(getBackOfficeRolesAction(name)),\r\n createNotification: (notificationData, successFunction) =>\r\n dispatch(createNotificationAction(notificationData, successFunction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(NotificationsTab);\r\n","import React, {useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\nimport \"moment/locale/pt\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Timeline from \"@material-ui/lab/Timeline\";\r\nimport TimelineItem from \"@material-ui/lab/TimelineItem\";\r\nimport TimelineSeparator from \"@material-ui/lab/TimelineSeparator\";\r\nimport TimelineConnector from \"@material-ui/lab/TimelineConnector\";\r\nimport TimelineContent from \"@material-ui/lab/TimelineContent\";\r\nimport TimelineOppositeContent from \"@material-ui/lab/TimelineOppositeContent\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport InputBase from \"@material-ui/core/InputBase\";\r\nimport { FormHelperText } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport NotificationsIcon from \"@material-ui/icons/Notifications\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { getApplicationDetailsHistoryActions } from \"redux/actions/applicationsAction\";\r\nimport { addApplicationDetailHistoryEntryAction } from \"redux/actions/applicationsAction\";\r\nimport { addHistoryEntryMap } from \"../../../../mappers/applicationsDetailsMap\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { messages, titles, labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction HistoryTab(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [expanded, setExpanded] = useState(false);\r\n\r\n const {\r\n handleSubmit,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n if (\r\n props.applicationsState.applicationDetailsHistory === undefined ||\r\n props.applicationsState.applicationDetailsHistory.length === 0 ||\r\n props.applicationsState.applicationDetailsHistory[0].applicationNumber !==\r\n props.applicationNumber\r\n ) {\r\n props.getApplicationDetailsHistory(props.applicationNumber);\r\n }\r\n\r\n setValue(\"applicationNumber\", props.applicationNumber);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.applicationsState.applicationDetailsHistory_refresh_results)\r\n props.getApplicationDetailsHistory(props.applicationNumber);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.applicationsState.applicationDetailsHistory_refresh_results]);\r\n\r\n const handleExpandClick = () => {\r\n setExpanded(!expanded);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n props.addApplicationDetailHistoryEntry(addHistoryEntryMap(data));\r\n }\r\n setValue(\"historyComment\", \"\")\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.applicationsState.applicationDetailsHistory?.map(\r\n (historyEntry) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {historyEntry.createUser} -{\" \"}\r\n {historyEntry.createDatetime}\r\n \r\n \r\n {historyEntry.actionName}\r\n \r\n \r\n {historyEntry.message}\r\n \r\n \r\n \r\n );\r\n }\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Add)}\r\n\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n (\r\n \r\n )}\r\n />\r\n\r\n {errors[\"historyComment\"] !== undefined && (\r\n \r\n {errors[\"historyComment\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Add)}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getApplicationDetailsHistory: (applicationNum) =>\r\n dispatch(getApplicationDetailsHistoryActions(applicationNum)),\r\n addApplicationDetailHistoryEntry: (data) =>\r\n dispatch(addApplicationDetailHistoryEntryAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(HistoryTab);\r\n","import {\r\n createScheduling,\r\n searchSchedulings,\r\n getScheduling,\r\n updateScheduling,\r\n getReportDocument\r\n} from \"crud/scheduling.crud\";\r\nimport { SCHEDULING, DIALOG } from \"utils/actionsConsts\";\r\nimport { convertByteArrayToBlobUrl } from \"utils/converters\";\r\nimport moment from \"moment\";\r\n\r\nexport const createSchedulingAction =\r\n (formData, successFunction) => async (dispatch) => {\r\n dispatch({\r\n type: SCHEDULING.CREATE_LOADING,\r\n payload: true,\r\n });\r\n createScheduling(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: SCHEDULING.CREATE_LOADING,\r\n payload: false,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n goBack: false,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? \"Agendamento criado com sucesso. \\r\\n\" +\r\n moment(formData.schedulingDatetime).format(\"DD/MM/YYYY HH:mm\")\r\n : \"Ocorreu um erro a criar o agendamento\",\r\n okAction: res.data ? successFunction : null,\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SCHEDULING.CREATE_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n };\r\n\r\nexport const searchSchedulingsAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: SCHEDULING.SEARCH_LOADING,\r\n payload: true,\r\n });\r\n searchSchedulings(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n id: record.id,\r\n numApplication: record.applicationNumber,\r\n numBI: record.numBI,\r\n userCode: record.userCode,\r\n nameOfUser: record.nameOfUser,\r\n governmentProgram: record.governmentProgram,\r\n submissionDate: moment(record.schedulingDatetime).format(\"DD/MM/YYYY HH:mm\"),\r\n scheduleState: record.scheduleState,\r\n scheduleStateKeyValue: record.scheduleStateKeyValue,\r\n motive: record.motive,\r\n provinceDescription: record.provinceDescription\r\n };\r\n });\r\n dispatch({\r\n type: SCHEDULING.SEARCH,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: SCHEDULING.SEARCH_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SCHEDULING.SEARCH,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: SCHEDULING.SEARCH_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getSchedulingAction = (schedulingNumber) => async (dispatch) => {\r\n dispatch({\r\n type: SCHEDULING.CLEAR_DETAIL,\r\n });\r\n dispatch({\r\n type: SCHEDULING.GET_LOADING,\r\n payload: true,\r\n });\r\n getScheduling(schedulingNumber)\r\n .then((res) => {\r\n dispatch({\r\n type: SCHEDULING.GET,\r\n result: true,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: SCHEDULING.GET_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SCHEDULING.GET,\r\n result: false,\r\n payload: {},\r\n });\r\n dispatch({\r\n type: SCHEDULING.GET_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateSchedulingAction =\r\n (formData, successFunction) => async (dispatch) => {\r\n console.log(formData, successFunction);\r\n dispatch({\r\n type: SCHEDULING.UPDATE_LOADING,\r\n payload: true,\r\n });\r\n updateScheduling(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: SCHEDULING.UPDATE,\r\n payload: res.data,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data !== null,\r\n message:\r\n res.data !== null\r\n ? \"Agendamento concluído com sucesso\"\r\n : \"Ocorreu ao atualizar o agendamento.\",\r\n okAction: successFunction,\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: SCHEDULING.UPDATE_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SCHEDULING.UPDATE,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: SCHEDULING.UPDATE_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n };\r\n\r\n export const getReportDocumentAction = (scheduleId, docName) => async (dispatch) => {\r\n getReportDocument(scheduleId)\r\n .then((res) => {\r\n const link = document.createElement(\"a\");\r\n link.href = convertByteArrayToBlobUrl(res.data);\r\n link.setAttribute(\"download\", docName);\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SCHEDULING.GET_REPORT_DOCUMENT_DATA_DOWNLOAD, //CRIAR!!!!\r\n result: false,\r\n payload: null,\r\n });\r\n \r\n console.log(\"error\", error);\r\n });\r\n };\r\n\r\nexport default createSchedulingAction;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\n\r\nexport const CREATE_SCHEDULING_URL = \"Scheduling/create-scheduling\";\r\nexport const SEARCH_SCHEDULING_URL = \"Scheduling/search-scheduling\";\r\nexport const GET_SCHEDULING_URL = \"Scheduling/get-scheduling\";\r\nexport const UPDATE_SCHEDULING_URL = \"Scheduling/update-scheduling\"\r\nexport const GET_SCHEDULING_DOCUMENT_URL = \"Scheduling/get-scheduling-document-by-id?scheduleId=\"\r\n\r\nexport function createScheduling(data) {\r\n return axios.post(INTERNAL_API_URL + CREATE_SCHEDULING_URL, data);\r\n}\r\n\r\nexport function searchSchedulings(data) {\r\n return axios.post(INTERNAL_API_URL + SEARCH_SCHEDULING_URL, data)\r\n}\r\n\r\nexport function getScheduling(scheduleNumber) {\r\n return axios.get(\r\n INTERNAL_API_URL + GET_SCHEDULING_URL, { params: { id: scheduleNumber } }\r\n );\r\n}\r\n\r\n\r\nexport function updateScheduling(data) {\r\n return axios.post(INTERNAL_API_URL + UPDATE_SCHEDULING_URL, data);\r\n}\r\n\r\n\r\n\r\nexport function getReportDocument(data) {\r\n return axios.get(INTERNAL_API_URL + GET_SCHEDULING_DOCUMENT_URL + data, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n responseType: \"blob\",\r\n });\r\n}","import { React, useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport { useIntl } from \"react-intl\";\r\nimport moment from \"moment\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport AccessTimeIcon from \"@material-ui/icons/AccessTime\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputBase from \"@material-ui/core/InputBase\";\r\n\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { labels, titles, messages } from \"resources/resources\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { createSchedulingMap } from \"../../../../mappers/applicationsDetailsMap\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport { createSchedulingAction } from \"redux/actions/schedulingAction\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\"\r\n\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction SchedulingTab(props) {\r\n const classes = useStylesGeneric()\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [dateTime, setDateTime] = useState(true);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_SCHEDULING_MOTIVES] ===\r\n undefined ||\r\n props.dataSetState[DATASET.APPLICATION_SCHEDULING_MOTIVES]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.APPLICATION_SCHEDULING_MOTIVES);\r\n }\r\n\r\n setValue(\"applicationNumber\", props.applicationNumber);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const clearFields = () => {\r\n setDateTime(false);\r\n setValue(\"schedulingMotive\", undefined);\r\n setValue(\"schedulingDate\", \"\");\r\n setValue(\"schedulingObjectives\", \"\");\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n props.createScheduling(createSchedulingMap(data), clearFields);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n
\r\n \r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_SchedulingTab_MotiveField\r\n )}\r\n \r\n \r\n {errors[\"schedulingMotive\"] !== undefined && (\r\n \r\n {errors[\"schedulingMotive\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_SchedulingTab_SchedulingDateField\r\n )}\r\n \r\n {\r\n return (\r\n value >= moment().startOf(\"day\") ||\r\n intl.formatMessage(\r\n messages.Message_Generic_DateToGreaterThanOrEqualToTodayField\r\n )\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n setDateTime(true);\r\n onChange(e);\r\n }}\r\n locale=\"pt\"\r\n dateFormat={true}\r\n timeFormat={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n isValidDate={(currentDate, _) => {\r\n return currentDate > moment().startOf(\"day\");\r\n }}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA hh:mm\",\r\n className: \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleValidDate(\r\n e.target.value,\r\n dateInputProps.onChange\r\n );\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]:\r\n errors[\"schedulingDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"schedulingDate\"] !== undefined && (\r\n \r\n {errors[\"schedulingDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_SchedulingTab_ObservationsField\r\n )}\r\n \r\n (\r\n \r\n )}\r\n />\r\n {errors[\"schedulingObjectives\"] !== undefined && (\r\n \r\n {errors[\"schedulingObjectives\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n Submeter\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n Ver / Entregar\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) =>\r\n dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n createScheduling: (schedulingData, successFunction) =>\r\n dispatch(createSchedulingAction(schedulingData, successFunction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(SchedulingTab);\r\n","import React from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction DisplayField(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n \r\n \r\n \r\n {props.label}\r\n \r\n \r\n {props?.data?.toString() \r\n ? props?.data?.toString()\r\n : intl.formatMessage(labels.Label_Not_Applicable)}\r\n \r\n \r\n \r\n ); \r\n}\r\n\r\nexport default DisplayField;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport { Link, useHistory } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels, titles } from \"resources/resources\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UserSingularGeneralDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n\r\n const redirectToUserOverView = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/user-overview/\" + props.generalData.userId);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_SeeMore)}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_GeneralDataSection_OtherApplicationsField)}\r\n \r\n \r\n {props.generalData !== undefined ? props.generalData.otherApplicationsOfUser : 0}\r\n \r\n Ver mais\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(UserSingularGeneralDataSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport { Link, useHistory } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels, titles } from \"resources/resources\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UserColectiveGeneralDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n\r\n const redirectToUserOverView = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/user-overview/\" + props.generalData.userId);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_SeeMore)}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_GeneralDataSection_OtherApplicationsField)}\r\n \r\n \r\n {props.generalData !== undefined ? props.generalData.otherApplicationsOfUser : 0}\r\n \r\n Ver mais\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(UserColectiveGeneralDataSection);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { Link } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Alert from \"@material-ui/lab/Alert\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputBase from \"@material-ui/core/InputBase\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport componentStylesApplicationDetails from \"assets/theme/views/admin/application-details\";\r\nimport {\r\n getShapeProgramsAction,\r\n getShapeSubsitesAction,\r\n getDataSetByNameAction,\r\n getAvailableInternshipOpportunitiesAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport { DATASET, SHAPE_PROGRAMS_TARGET, UNITS, REGEX_PATTERNS, MONETARYUNITPLACEHOLDER, BENEFIT, INTERNSHIP_TYPE_KEY, APPLICATION_STATE_GROUP_KEY, APPLICATION_STATE_KEY } from \"utils/consts\";\r\nimport { messages, labels, titles } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst useStylesApplicationDetails = makeStyles(componentStylesApplicationDetails);\r\n\r\nfunction ProgramSubprogramDataSection(props) {\r\n const classes = {...useStylesGeneric(), ...useStylesApplicationDetails()};\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n const [kitsTotalValue, setKitsTotalValue] = useState(0);\r\n const [applicationStateGroup, setApplicationStateGroup] = useState(0);\r\n const [formattedValue, setFormattedValue] = useState();\r\n\r\n const onValChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n //TODO - Check better way to format currency on same input\r\n if (value && value.charAt(value.length - 1) === \",\") setFormattedValue(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\") setFormattedValue(intl.formatNumber(value));\r\n else setFormattedValue(value);\r\n } else {\r\n setFormattedValue(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n\r\n useEffect(() => {\r\n if (\r\n props.generalData !== undefined &&\r\n (props.generalData?.benefitKeyValue === BENEFIT.AVANCO ||\r\n props.generalData?.benefitKeyValue === BENEFIT.CAPACITA ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_WALLET)\r\n ) {\r\n let target = \"\";\r\n if (props.generalData?.benefitKeyValue === BENEFIT.AVANCO) target = SHAPE_PROGRAMS_TARGET.AVANCO;\r\n if (props.generalData?.benefitKeyValue === BENEFIT.CAPACITA) target = SHAPE_PROGRAMS_TARGET.CAPACITA;\r\n if (props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_WALLET) target = SHAPE_PROGRAMS_TARGET.PROFESSIONAL_WALLET;\r\n\r\n props.getShapePrograms(target, DATASET.SHAPE_PROGRAMS);\r\n\r\n\r\n\r\n props.getShapeSubsites(\r\n props.generalData !== undefined ? props.generalData.intendedCourseCode : \"\",\r\n props.generalData !== undefined ? props.generalData.provinceId : \"\",\r\n DATASET.SHAPE_SUBSITES\r\n );\r\n props.setValue(\r\n \"intendedCourseCode\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.SHAPE_PROGRAMS],\r\n props.generalData !== undefined ? props.generalData.intendedCourseCode : \"\"\r\n )\r\n );\r\n\r\n props.setValue(\r\n \"trainingCenterId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.SHAPE_SUBSITES],\r\n props.generalData !== undefined ? props.generalData.trainingCenterId?.toString() : \"\"\r\n )\r\n );\r\n }\r\n\r\n if (props.generalData !== undefined && (props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_INTERNSHIP)) {\r\n\r\n const province = props.generalData !== undefined ? props.generalData.provinceId : null;\r\n const internshipArea = props.generalData !== undefined ? props.generalData.internshipAreaId : \"\"\r\n\r\n if (!props.dataSetState || props.dataSetState[DATASET.PROFESSIONAL_CATEGORY] === undefined || props.dataSetState[DATASET.PROFESSIONAL_CATEGORY] === []) {\r\n props.getDataSetByName(DATASET.PROFESSIONAL_CATEGORY)\r\n } else if (props.dataSetState && props.dataSetState[DATASET.PROFESSIONAL_CATEGORY] && props.generalData.internshipAreaId) {\r\n props.setValue(\r\n \"internshipAreaId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROFESSIONAL_CATEGORY],\r\n props.generalData.internshipAreaId\r\n )\r\n );\r\n }\r\n\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSetByName(DATASET.PROVINCES);\r\n } else if (props.dataSetState && props.dataSetState[DATASET.PROVINCES] && props.generalData.provinceId) {\r\n props.setValue(\r\n \"provinceId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.generalData.provinceId\r\n )\r\n );\r\n }\r\n\r\n props.getAvailableInternshipOpportunities(DATASET.AVAILABLE_INTERNSHIP_OPPORTUNITIES, province, internshipArea, INTERNSHIP_TYPE_KEY.PAPE);\r\n\r\n if (props.dataSetState && props.dataSetState[DATASET.AVAILABLE_INTERNSHIP_OPPORTUNITIES])\r\n props.setValue(\r\n \"internshipOpportunityId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.AVAILABLE_INTERNSHIP_OPPORTUNITIES],\r\n props.generalData.internshipOpportunityId ?? undefined\r\n )\r\n );\r\n } else {\r\n props.setValue(\"internshipAreaId\", undefined);\r\n props.setValue(\"provinceId\", undefined);\r\n props.setValue(\"internshipOpportunityId\", undefined);\r\n }\r\n\r\n if (props.generalData?.benefitKeyValue === BENEFIT.MICROCREDIT ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT_MICROCREDIT){\r\n props.setValue(\r\n \"concededMicrocreditAmount\",\r\n props.generalData !== undefined ? props.generalData.concededMicrocreditAmount : \"\"\r\n );\r\n setFormattedValue(props.generalData !== undefined ? intl.formatNumber(props.generalData.concededMicrocreditAmount) : 0);\r\n\r\n if (!props.dataSetState || props.dataSetState[DATASET.BANK] === undefined || props.dataSetState[DATASET.BANK] === [])\r\n props.getDataSetByName(DATASET.BANK)\r\n else\r\n props.setValue(\"bank\",\r\n props.generalData !== undefined ?\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.BANK],\r\n props.generalData.bankPreferenceId\r\n ) : \"\"\r\n );\r\n }\r\n\r\n\r\n props.setValue(\r\n \"concededProfessionalKitsNumber\",\r\n props.generalData !== undefined ? props.generalData.concededProfessionalKitsNumber : \"\"\r\n );\r\n handleKitsChange(props.generalData?.concededProfessionalKitsNumber);\r\n\r\n setApplicationStateGroup(props.generalData?.applicationStateGroupKey);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.generalData]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState)\r\n if (\r\n props.generalData !== undefined &&\r\n (props.generalData?.benefitKeyValue === BENEFIT.AVANCO ||\r\n props.generalData?.benefitKeyValue === BENEFIT.CAPACITA ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_WALLET)\r\n ) {\r\n props.setValue(\r\n \"trainingCenterId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.SHAPE_SUBSITES],\r\n props.generalData !== undefined ? props.generalData.trainingCenterId?.toString() : \"\"\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.SHAPE_SUBSITES]])\r\n\r\n useEffect(() => {\r\n if (props.dataSetState)\r\n if (\r\n props.generalData !== undefined &&\r\n (props.generalData?.benefitKeyValue === BENEFIT.AVANCO ||\r\n props.generalData?.benefitKeyValue === BENEFIT.CAPACITA ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_WALLET)\r\n ) {\r\n props.setValue(\r\n \"intendedCourseCode\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.SHAPE_PROGRAMS],\r\n props.generalData !== undefined ? props.generalData.intendedCourseCode : \"\"\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.SHAPE_PROGRAMS]])\r\n\r\n useEffect(() => {\r\n if (props.dataSetState)\r\n if (props.generalData !== undefined && (props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_INTERNSHIP)) {\r\n if (props.dataSetState[DATASET.AVAILABLE_INTERNSHIP_OPPORTUNITIES])\r\n props.setValue(\r\n \"internshipOpportunityId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.AVAILABLE_INTERNSHIP_OPPORTUNITIES],\r\n props.generalData.internshipOpportunityId ?? undefined\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.AVAILABLE_INTERNSHIP_OPPORTUNITIES]])\r\n\r\n useEffect(() => {\r\n if (props.dataSetState)\r\n if (props.generalData !== undefined && (props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_INTERNSHIP)) {\r\n if (props.dataSetState && props.dataSetState[DATASET.PROFESSIONAL_CATEGORY] && props.generalData.internshipAreaId) {\r\n props.setValue(\r\n \"internshipAreaId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROFESSIONAL_CATEGORY],\r\n props.generalData.internshipAreaId\r\n )\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]])\r\n\r\n useEffect(() => {\r\n if (props.dataSetState)\r\n if (props.generalData !== undefined && (props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_INTERNSHIP)) {\r\n if (props.dataSetState && props.dataSetState[DATASET.PROVINCES] && props.generalData.provinceId) {\r\n props.setValue(\r\n \"provinceId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.generalData.provinceId\r\n )\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]])\r\n\r\n useEffect(() => {\r\n if (props.dataSetState)\r\n if (\r\n props.generalData !== undefined &&\r\n (props.generalData?.benefitKeyValue === BENEFIT.MICROCREDIT ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT_MICROCREDIT)\r\n ) {\r\n if (props.dataSetState && props.dataSetState[DATASET.BANK] && props.generalData.bankPreferenceId) {\r\n props.setValue(\r\n \"bank\",\r\n getSelectOptionsElementByCode(props.dataSetState[DATASET.BANK], props.generalData.bankPreferenceId)\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.BANK]]);\r\n\r\n useEffect (() => {\r\n props.trigger(\"bank\");\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.nextApplicationState]);\r\n\r\n const handleKitsChange = (kits) => {\r\n if (!kits) {\r\n setKitsTotalValue(0);\r\n } else {\r\n var value = kits * (props.generalData?.kitUnitPrice ? props.generalData?.kitUnitPrice : 0);\r\n value = intl.formatNumber(value);\r\n setKitsTotalValue(value);\r\n }\r\n };\r\n\r\n const getAvailableInternshipOpportunitiesOnChange = () => {\r\n props.setValue(\"internshipOpportunityId\", undefined)\r\n const province = props.getValues(\"provinceId\")?.code;\r\n const internshipArea = props.getValues(\"internshipAreaId\")?.code;\r\n props.getAvailableInternshipOpportunities(DATASET.AVAILABLE_INTERNSHIP_OPPORTUNITIES, province, internshipArea, INTERNSHIP_TYPE_KEY.PAPE);\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {props.generalData?.parentApplicationCode && (\r\n \r\n \r\n \r\n {\"Esta candidatura está relacionada com a candidatura nº \"}\r\n \r\n {props.generalData?.parentApplicationCode}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_WhichProvinceField)}\r\n {props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_INTERNSHIP ?\r\n <>\r\n \r\n {props.errors[\"provinceId\"] !== undefined && (\r\n \r\n {props.errors[\"provinceId\"].message}\r\n \r\n )}\r\n \r\n :\r\n \r\n }\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_GovernmentProgramsField)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_ProgramsField)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_SubprogramsField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_BenefitTypeField)}\r\n \r\n \r\n \r\n {(props.generalData?.benefitKeyValue === BENEFIT.MICROCREDIT || props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT_MICROCREDIT) && (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_MicrocreditAmountField)}\r\n {UNITS.MONETARY}}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"microcreditAmount\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_ConcededMicrocreditAmountField)}\r\n {\r\n if (value === \"0\" || value === \"0,00\" || value === \"0,0\") return \"O valor tem de ser maior que 0.\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name } }) => (\r\n {\r\n onValChange(e.target.value, onChange);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n disabled={applicationStateGroup === APPLICATION_STATE_GROUP_KEY.CONCLUDED || props.generalData?.applicationStateId === APPLICATION_STATE_KEY.AWAITING_BANK_INFORMATION}\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n inputProps={{ style: { textAlign: \"right\" } }}\r\n endAdornment={{UNITS.MONETARY}}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"concededMicrocreditAmount\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"concededMicrocreditAmount\"] !== undefined && (\r\n \r\n {props.errors[\"concededMicrocreditAmount\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n {(props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT || props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT_MICROCREDIT) && (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsNumberField)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_ConcededProfessionalKitsNumberField)}\r\n {\r\n return value > 0 || intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n handleKitsChange(e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"number\"\r\n disabled={applicationStateGroup === APPLICATION_STATE_GROUP_KEY.CONCLUDED}\r\n inputProps={{ style: { textAlign: \"right\" } }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"concededProfessionalKitsNumber\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"concededProfessionalKitsNumber\"] !== undefined && (\r\n \r\n {props.errors[\"concededProfessionalKitsNumber\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_ProfessionalKitsValueField)}\r\n {UNITS.MONETARY}}\r\n />\r\n \r\n \r\n \r\n )}\r\n\r\n {(\r\n props.generalData?.benefitKeyValue === BENEFIT.MICROCREDIT ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_KIT_MICROCREDIT) && (\r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_ProgramSubprogramDataSection_Bank\r\n )}\r\n \r\n \r\n {props.errors[\"bank\"] !== undefined && (\r\n \r\n {props.errors[\"bank\"].message}\r\n \r\n )}\r\n \r\n \r\n )}\r\n\r\n {(props.generalData?.benefitKeyValue === BENEFIT.AVANCO ||\r\n props.generalData?.benefitKeyValue === BENEFIT.CAPACITA ||\r\n props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_WALLET) && (\r\n <>\r\n \r\n \r\n \r\n {props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_WALLET\r\n ? intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_IntendedWalletNameField)\r\n : intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_IntendedCourseNameField)}\r\n \r\n r.code === props.generalData.intendedCourseCode\r\n )?.label\r\n : \"\"\r\n }\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n disabled={true}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"intendedCourseName\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_TrainingCenterField)}\r\n \r\n {props.errors[\"trainingCenterId\"] !== undefined && (\r\n \r\n {props.errors[\"trainingCenterId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n {props.generalData?.benefitKeyValue === BENEFIT.PROFESSIONAL_INTERNSHIP && (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ProgramSubprogramDataSection_InternshipAreaField)}\r\n \r\n {props.errors[\"internshipAreaId\"] !== undefined && (\r\n \r\n {props.errors[\"internshipAreaId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {\"Estágios Profissionais\"}\r\n \r\n {props.errors[\"internshipOpportunityId\"] !== undefined && (\r\n \r\n {props.errors[\"internshipOpportunityId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getShapePrograms: (target, name) => dispatch(getShapeProgramsAction(target, name)),\r\n getShapeSubsites: (offer, province, name) => dispatch(getShapeSubsitesAction(offer, province, name)),\r\n getAvailableInternshipOpportunities:\r\n (name, province, professionalCategory, internshipTypeId) => dispatch(getAvailableInternshipOpportunitiesAction(name, province, professionalCategory, internshipTypeId)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ProgramSubprogramDataSection);\r\n","import { React, useEffect } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller } from \"react-hook-form\";\r\n// @material-ui/core components\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport { COMPLEMENTARY_DATA_TYPE } from \"utils/consts\";\r\n\r\nexport default function TextField(props) {\r\n useEffect(() => {\r\n props.setValue(props.name, props.answerValue !== undefined ? props.answerValue : \"\");\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n <>\r\n {props?.show && (\r\n (\r\n {\r\n onChange(data);\r\n if (props.showHideChildOnChange !== undefined)\r\n props.showHideChildOnChange(props.childs, props.name, COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n disabled={props.isDisabled}\r\n type=\"text\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [props.classes.borderWarning]: props.errors[name] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n {props?.show && props.errors[props.name] !== undefined && (\r\n \r\n {props.errors[props.name].message}\r\n \r\n )}\r\n \r\n );\r\n}\r\n","import { React, useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\nimport { Controller } from \"react-hook-form\";\r\n// @material-ui/core components\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport { COMPLEMENTARY_DATA_TYPE } from \"utils/consts\";\r\n\r\nexport default function DropdownField(props) {\r\n const [showField] = useState(props.show);\r\n const fieldVal = (name) => {\r\n const value = props.getValues(name);\r\n return value ? value : null;\r\n };\r\n\r\n useEffect(() => {\r\n const emptyVal = { code: \"\", label: \"\" };\r\n if (props.selectOptions?.length > 0) {\r\n let answerOption =\r\n props.answerValue !== undefined\r\n ? props.selectOptions.find((x) => x.code.toString() === props.answerValue)\r\n : emptyVal;\r\n\r\n props.setValue(props.name, answerOption !== null ? answerOption : emptyVal);\r\n if (props.showHideChildOnChange !== undefined)\r\n props.showHideChildOnChange(props.childs, props.name, COMPLEMENTARY_DATA_TYPE.DATASET);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.selectOptions?.length]);\r\n\r\n return (\r\n <>\r\n {showField && (\r\n (\r\n (option.label ? option.label : \"\")}\r\n getOptionSelected={(option, value) => option.code === value.code}\r\n classes={{\r\n inputRoot: clsx({\r\n [props.classes.selectBorderWarningInputRoot]:\r\n props.errors !== undefined && props.errors[props.name] !== undefined,\r\n }),\r\n }}\r\n ListboxProps={{\r\n style: {\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n },\r\n }}\r\n renderInput={(params) => (\r\n \r\n )}\r\n onChange={(_, data) => {\r\n onChange(data);\r\n if (props.showHideChildOnChange !== undefined)\r\n props.showHideChildOnChange(props.childs, props.name, COMPLEMENTARY_DATA_TYPE.DATASET);\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n {showField && props.errors[props.name] !== undefined && (\r\n \r\n {props.errors[props.name].message}\r\n \r\n )}\r\n \r\n );\r\n}\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport InputBase from \"@material-ui/core/InputBase\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { COMPLEMENTARY_DATA_TYPE, DATASET, FORM_FIELDS_PREFIX } from \"utils/consts\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport TextField from \"components/ComplementaryDataFields/Text\";\r\nimport DropdownField from \"components/ComplementaryDataFields/Dropdown\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { titles } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ComplementaryDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n const [isEditable, setIsEditable] = useState(false);\r\n const [pageState, setPageState] = useState({ complementaryData: [] });\r\n\r\n const handleEditSection = () => {\r\n setIsEditable(!isEditable);\r\n };\r\n\r\n useEffect(() => {\r\n if (props.generalData?.applicationNumber === props.applicationNumber) {\r\n //Load here my complementarydata page state\r\n setComplementaryData(props.complementaryDataAnswers);\r\n\r\n //Load all complementary-data datasets if needed\r\n props.complementaryDataAnswers?.forEach((complementaryDataItem) => {\r\n if (complementaryDataItem.answerTypeId === COMPLEMENTARY_DATA_TYPE.DATASET) {\r\n if (\r\n props.dataSetState[complementaryDataItem.dataSetName] === undefined ||\r\n props.dataSetState[complementaryDataItem.dataSetName]?.length === 0\r\n ) {\r\n props.getDataSetByName(complementaryDataItem.dataSetName);\r\n }\r\n }\r\n });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.complementaryDataAnswers]);\r\n\r\n const setComplementaryData = (_complementaryData) => {\r\n setPageState({\r\n ...pageState,\r\n complementaryData: _complementaryData?.map((cd) => {\r\n return {\r\n ...cd,\r\n id: FORM_FIELDS_PREFIX.COMPLEMENTARY_DATA + cd.complementaryDataId,\r\n show: !cd.hasDependencies || (cd.hasDependencies && cd.answer),\r\n };\r\n }),\r\n });\r\n };\r\n\r\n // This might not be working because it's an old implementation and not used at the moment (We don't use other complementary types besides PLAIN_TEXT)\r\n const showHideFieldsOnChange = (childs, parentField, parentFieldType) => {\r\n if (childs == null || childs === undefined) {\r\n return;\r\n }\r\n\r\n childs.forEach((ch) => {\r\n let toShow = showChildField(\r\n ch.conditionalChildQuestionId.toString(),\r\n parentField,\r\n parentFieldType,\r\n ch.conditionalValue\r\n );\r\n\r\n if (!toShow) {\r\n props.unregister(ch.conditionalChildQuestionId.toString());\r\n\r\n //se a filha é para esconder, ele tem de ir a cada filha e ver se essa filha tem filhas e meter a false para esconder tudo\r\n var aux = pageState?.complementaryData.filter((r) => r.id === ch.conditionalChildQuestionId)[0]\r\n ?.complementaryDataConditionsList;\r\n showHideFieldsOnChange(aux, ch.conditionalChildQuestionId + \"\", ch.fieldTypeId);\r\n }\r\n\r\n setPageState((prevState) => ({\r\n ...prevState,\r\n complementaryData: prevState.complementaryData.map((cd) =>\r\n cd.complementaryDataId === ch.conditionalChildQuestionId.toString() ? { ...cd, show: toShow } : cd\r\n ),\r\n }));\r\n });\r\n };\r\n\r\n const showChildField = (childField, parentField, parentFieldType, valueCondition) => {\r\n if (!childField || !parentField) return true;\r\n const value = props.getValues(parentField);\r\n switch (parentFieldType) {\r\n case COMPLEMENTARY_DATA_TYPE.DATASET:\r\n return value !== undefined && value?.code + \"\" === valueCondition + \"\";\r\n case COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT:\r\n return value !== undefined && value === valueCondition;\r\n default:\r\n return;\r\n }\r\n };\r\n\r\n const getComplementaryDataFields = (key, complementaryDataField) => {\r\n switch (complementaryDataField.answerTypeId) {\r\n case COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT:\r\n return (\r\n \r\n );\r\n case COMPLEMENTARY_DATA_TYPE.DATASET:\r\n return (\r\n \r\n );\r\n case COMPLEMENTARY_DATA_TYPE.BOOLEAN:\r\n return (\r\n \r\n );\r\n default:\r\n return (\r\n \r\n );\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n Editar\r\n \r\n }\r\n >\r\n \r\n \r\n {pageState?.complementaryData?.map(\r\n (complementaryDataItem, key) =>\r\n complementaryDataItem.show && (\r\n \r\n \r\n {complementaryDataItem.question}\r\n {getComplementaryDataFields(key, complementaryDataItem)}\r\n (\r\n \r\n )}\r\n />\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n )\r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (id) => dispatch(getDataSetByNameAction(id)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ComplementaryDataSection);\r\n","import React from \"react\";\r\nimport \"moment/locale/pt\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function SubmitedDocumentsSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n <>\r\n {props.files?.map((file, key) => (\r\n \r\n {file.documentType}\r\n\r\n {file.name}\r\n \r\n {\r\n props.getDocument(file.documentId, file.documentName);\r\n }}\r\n color=\"tertiary\"\r\n >\r\n {intl.formatMessage(labels.Label_Download)}\r\n \r\n \r\n \r\n ))}\r\n \r\n );\r\n}\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport SubmitedDocumentsSection from \"components/FormFields/SubmitedDocumentsSection\";\r\nimport DropzoneField from \"components/FormFields/DropzoneField\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getApplicationDocumentAction } from \"redux/actions/applicationsAction\";\r\nimport { titles, labels } from \"resources/resources\";\r\nimport { FORM_FIELDS_PREFIX } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction DocumentsSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [filesState, setFiles] = useState([]);\r\n const [isEditable, setIsEditable] = useState(false);\r\n const methods = useFormContext();\r\n\r\n\r\n const handleEditSection = () => {\r\n setIsEditable(!isEditable);\r\n };\r\n\r\n const getDocumentFieldSize = (numDocs) => {\r\n if (12 % numDocs === 0) return 12 / numDocs;\r\n return 4;\r\n };\r\n\r\n useEffect(() => {\r\n if (props.generalData?.documents !== undefined) {\r\n setFiles(props.generalData?.documents);\r\n }\r\n }, [props.generalData?.documents]);\r\n\r\n const getFileInfo = (file) => {\r\n\r\n return file ?\r\n [{\r\n documentId: file.documentId,\r\n documentName: file.documentName\r\n }]\r\n :\r\n [];\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n Editar\r\n \r\n }\r\n >\r\n \r\n \r\n {filesState?.map((file, key) => (\r\n \r\n \r\n \r\n {file.documentTypeName}\r\n \r\n {isEditable && (\r\n \r\n )}\r\n \r\n \r\n \r\n ))}\r\n \r\n {\r\n (filesState.length === 0 && (\r\n Não existem documentos carregados nesta candidatura.\r\n ))\r\n }\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getApplicationDocument: (docId, docName) =>\r\n dispatch(getApplicationDocumentAction(docId, docName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(DocumentsSection);\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n cardHeader: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"18px\",\r\n lineHeight: \"25px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.main,\r\n },\r\n cardHeaderAvatar: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"17px\",\r\n lineHeight: \"23px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.primary.main,\r\n\r\n },\r\n cardHeaderTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n cardHeaderIcon: {\r\n width: \"20px\",\r\n height: \"auto\",\r\n },\r\n cardHeaderAction: {\r\n display: \"flex\",\r\n },\r\n cardHeaderActionGrid: {\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignContent: \"center\",\r\n justifyContent: \"space-between\",\r\n alignItems: \"center\",\r\n height: \"100%\",\r\n width: \"100%\",\r\n },\r\n modalHeader: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"24px\",\r\n lineHeight: \"33px\",\r\n textAlign: \"center\",\r\n color: theme.palette.gray[700],\r\n marginBottom: \"65px\",\r\n },\r\n subHeader: {\r\n fontStyle: \"normal\",\r\n fontSize: \"1rem\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n marginTop:\"-40px\" \r\n },\r\n modalApproveLoan: {\r\n // maxWidth: \"530px\",\r\n // height: \"571px\",\r\n // position: \"absolute\",\r\n // marginLeft: \"25.07%\",\r\n // marginRight: \"25.07%\",\r\n // marginBottom: \"31.35%\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"lg\")]: {\r\n paddingLeft: \"3.5rem\",\r\n paddingRight: \"3.5rem\",\r\n },\r\n marginTop: \"10rem\",\r\n },\r\n timelineDot: {\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n timelineIcons: {\r\n color: theme.palette.white.main,\r\n width: \"25px\",\r\n height: \"auto\",\r\n marginTop: \"5px\",\r\n },\r\n timelineIconsBox: {\r\n background: theme.palette.gray[700], \r\n borderRadius: \"35px\",\r\n width: \"37px\",\r\n height: \"37px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n },\r\n navigateBefore: {\r\n color: theme.palette.primary.main,\r\n width: \"30px\",\r\n height: \"auto\",\r\n marginTop: \"5px\",\r\n },\r\n navigateBeforeBox: {\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"34px\",\r\n width: \"43px\",\r\n height: \"43px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n \"&:hover, &:focus\": {\r\n boxShadow: \"0px 0px 10px orange !important\",\r\n },\r\n },\r\n titleGrid: {\r\n display: \"flex\",\r\n },\r\n ellipse: {\r\n marginLeft: \"120px\",\r\n marginTop: \"-2px\",\r\n width: \"38px\",\r\n height: \"38px\",\r\n },\r\n vector: {\r\n marginTop: \"0px\",\r\n marginLeft: \"-23px\",\r\n width: \"7px\",\r\n height: \"14px\",\r\n },\r\n pageTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"26px\",\r\n lineHeight: \"40px\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.main,\r\n marginLeft: \"22px\",\r\n },\r\n alignRight: {\r\n textAlign: \"right\",\r\n },\r\n mb0: {\r\n marginBottom: \"0!important\",\r\n },\r\n containerPadding: {\r\n marginBottom: \"37px\",\r\n paddingRight: \"1.5rem\",\r\n paddingLeft: \"1.5rem\",\r\n },\r\n borderWarning: {\r\n borderColor: theme.palette.warning.main + \"!important\",\r\n },\r\n selectBorderWarningInputRoot: {\r\n \"& .MuiOutlinedInput-notchedOutline\": {\r\n borderColor: theme.palette.warning.main + \"!important\",\r\n }, \r\n },\r\n monetaryFields: {\r\n textAlign: \"end\",\r\n },\r\n saveButton: {\r\n background: theme.palette.primary.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.white.main,\r\n width: \"50%\",\r\n },\r\n saveProfileButton: {\r\n background:\r\n \"linear-gradient(90deg, \" +\r\n theme.palette.info.main +\r\n \" 0%, \" +\r\n theme.palette.primary.mediumBlue +\r\n \" 100%)\",\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.white.main,\r\n width: \"62%\",\r\n },\r\n cancelButton: {\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n // color: theme.palette.primary.main,\r\n width: \"50%\",\r\n // border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n color: theme.palette.primary.main,\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n \"&:hover\": {\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n color: theme.palette.primary.main,\r\n },\r\n },\r\n cdTypeAddButton: {\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n borderColor: theme.palette.primary.main,\r\n color: theme.palette.primary.main,\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n padding: \"6px 11px 6px 18px\",\r\n marginBottom: \"6px\",\r\n marginTop: \"6px\",\r\n \"&:hover\": {\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n color: theme.palette.primary.main,\r\n },\r\n },\r\n cdTypeAddButtonLabel: {\r\n justifyContent: \"center\",\r\n },\r\n cdButtons: {\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"4px\",\r\n borderColor: theme.palette.primary.main,\r\n fontStyle: \"normal\",\r\n fontWeight: 600,\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n cdLabels: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n saveButtonFormGroup: {\r\n alignItems: \"flex-end\",\r\n [theme.breakpoints.down(\"xs\")]: {\r\n alignItems: \"center\",\r\n },\r\n },\r\n paddingRight0px: {\r\n paddingRight: \"0px\",\r\n },\r\n paddingLeft0px: {\r\n paddingLeft: \"0px\",\r\n },\r\n cancelButtonFormGroup: {\r\n alignItems: \"flex-start\",\r\n [theme.breakpoints.down(\"xs\")]: {\r\n alignItems: \"center\",\r\n },\r\n },\r\n containerButtons: {\r\n marginLeft: \"20px\",\r\n marginRight: \"20px\",\r\n [theme.breakpoints.down(\"xs\")]: {\r\n flexDirection: \"column-reverse\",\r\n },\r\n },\r\n submitButton: {\r\n color: theme.palette.white.main,\r\n background: \"linear-gradient(90deg, \" + theme.palette.primary.main + \" 0%, \" + theme.palette.primary.mediumBlue + \" 100%)\",\r\n border: \"0px\",\r\n boxShadow: \"0px 0px 32px rgba(136, 152, 170, 0.15)\",\r\n },\r\n detailLabels: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n modalSentRecover: {\r\n maxWidth: \"718px\",\r\n width: \"718px\",\r\n height: \"571px\",\r\n position: \"absolute\",\r\n marginLeft: \"25.07%\",\r\n marginRight: \"25.07%\",\r\n marginBottom: \"31.35%\",\r\n },\r\n modalResultClose: {\r\n marginLeft: \"90%\",\r\n },\r\n detailFormLabels: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: theme.palette.gray[700],\r\n },\r\n helpIconBox: {\r\n textAlign: \"center\",\r\n color: theme.palette.info.lightgreen,\r\n },\r\n helpIconRoot: {\r\n width: \"100px\",\r\n height: \"auto\",\r\n },\r\n modalUpdateLoan: {\r\n width: \"530px\",\r\n height: \"600px\",\r\n position: \"absolute\",\r\n marginLeft: \"25.07%\",\r\n marginRight: \"25.07%\",\r\n marginBottom: \"31.35%\",\r\n },\r\n userProfileTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"26px\",\r\n lineHeight: \"35px\",\r\n color: theme.palette.gray[700],\r\n textAlign: \"center\",\r\n },\r\n borderRadiusSemiCurved: {\r\n borderRadius: \"4px 0px 0px 4px\",\r\n },\r\n userProfileUpdatePasswordButton: {\r\n width: \"100%\",\r\n height: \"45px\",\r\n padding: \"6px\",\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"0px 4px 4px 0px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n borderColor: theme.palette.primary.main,\r\n color: theme.palette.primary.main,\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n \"&:hover\": {\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n color: theme.palette.primary.main,\r\n },\r\n textTransform: \"uppercase\",\r\n },\r\n opportunityAddQuestionsCardAction: {\r\n marginTop: \"0px\",\r\n },\r\n opportunityAddQuestionsButton: {\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08) !important\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n padding: \"6px 11px\",\r\n },\r\n CardContentBorderBottom: {\r\n borderBottom: \"1px solid rgba(0, 0, 0,.05)\",\r\n },\r\n editButton: {\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08) !important\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n width: \"50%\",\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n editButtonTwo: {\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08) !important\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n width: \"100%\",\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n marginTop: \"5px\",\r\n },\r\n buttonProgress: {\r\n color: theme.palette.white.main,\r\n position: \"absolute\",\r\n top: \"50%\",\r\n left: \"50%\",\r\n marginTop: -12,\r\n marginLeft: -12,\r\n },\r\n documentBadge: {\r\n backgroundColor: theme.palette.white.main,\r\n marginRight: \"10px\",\r\n marginBottom: \"10px\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n color: theme.palette.primary.main,\r\n borderRadius: \"4px\",\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n padding: \".4em .3em .3em .85em\",\r\n alignItems: \"center\",\r\n },\r\n changeButtonsGroup: {\r\n [theme.breakpoints.down(\"sm\")]: {\r\n display: \"flex\",\r\n flexFlow: \"wrap\",\r\n justifyContent: \"center\",\r\n marginTop: \"1rem\",\r\n },\r\n },\r\n changeButtonOf2: {\r\n //widths to use when there are 2 buttons\r\n width: \"300px\",\r\n [theme.breakpoints.down(\"lg\")]: {\r\n width: \"250px\",\r\n },\r\n [theme.breakpoints.down(\"md\")]: {\r\n width: \"200px\",\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n width: \"180px\",\r\n },\r\n heigth: \"43px\",\r\n backgroundColor: theme.palette.white.light,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"4px 0px 0px 4px\",\r\n textTransform: \"none\",\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n /* identical to box height */\r\n\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n\r\n /* Text Color/Dark Blue */\r\n\r\n color: theme.palette.primary.greyBlue,\r\n \"&.Mui-selected\": {\r\n backgroundColor: theme.palette.primary.greyBlue + \" !important\",\r\n /* Color Border/Secondary */\r\n\r\n border: \"1px solid \" + theme.palette.white.light,\r\n boxSizing: \"border-box\",\r\n borderRadius: \"4px\",\r\n\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n /* identical to box height */\r\n\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n textTransform: \"none\",\r\n\r\n /* Text Color/Dark Blue */\r\n\r\n color: theme.palette.white.main,\r\n },\r\n },\r\n changeButton: {\r\n width: \"250px\",\r\n [theme.breakpoints.down(\"lg\")]: {\r\n width: \"200px\",\r\n },\r\n [theme.breakpoints.down(\"md\")]: {\r\n width: \"150px\",\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n width: \"130px\",\r\n },\r\n heigth: \"43px\",\r\n backgroundColor: theme.palette.white.light,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"4px 0px 0px 4px\",\r\n textTransform: \"none\",\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n /* identical to box height */\r\n\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n\r\n /* Text Color/Dark Blue */\r\n\r\n color: theme.palette.primary.greyBlue,\r\n \"&.Mui-selected\": {\r\n backgroundColor: theme.palette.primary.greyBlue + \" !important\",\r\n /* Color Border/Secondary */\r\n\r\n border: \"1px solid \" + theme.palette.white.light,\r\n boxSizing: \"border-box\",\r\n borderRadius: \"4px\",\r\n\r\n \r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n /* identical to box height */\r\n\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n textTransform: \"none\",\r\n\r\n /* Text Color/Dark Blue */\r\n\r\n color: theme.palette.white.main,\r\n },\r\n },\r\n tableButtons: {\r\n padding: \"6px 4px 6px 4px\",\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"4px\",\r\n borderColor: theme.palette.primary.main,\r\n fontStyle: \"normal\",\r\n fontWeight: 600,\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n dividerRoot: {\r\n height: \"4px\",\r\n marginBottom: \"1rem\",\r\n },\r\n dropzone: {\r\n flex: \"1\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n padding: \"20px\",\r\n borderWidth: \"1px\",\r\n borderRadius: \"1px\",\r\n height: \"62px!important\",\r\n borderColor: theme.palette.gray[600],\r\n borderStyle: \"dashed\",\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.gray[500],\r\n outline: \"none\",\r\n transition: \"border .24s ease-in-out\",\r\n cursor: \"pointer\",\r\n },\r\n boxFill: {\r\n marginTop: \"10px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n color: theme.palette.gray[700],\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n },\r\n justifyContentCenter: {\r\n justifyContent: \"center\",\r\n },\r\n touchAppIcon: {\r\n position: \"absolute\",\r\n marginLeft: \"97%\",\r\n marginTop: \"1%\",\r\n backgroundColor: theme.palette.white.smoke,\r\n width: \"25px\",\r\n height: \"28px\",\r\n },\r\n tooltip: {\r\n maxWidth: \"280px\",\r\n marginTop: \"1px\",\r\n marginBottom: \"1px\",\r\n backgroundColor: theme.palette.grey[300],\r\n color: theme.palette.black.light,\r\n textAlign: \"justify\",\r\n },\r\n tooltipArrow: {\r\n color: theme.palette.grey[300],\r\n },\r\n documentBadgeContainer: {\r\n paddingLeft: \"15px\",\r\n },\r\n tooltipDescritionSizeWidth: {\r\n maxWidth: 500, \r\n },\r\n quillOverflowWrap: {\r\n \"& .ql-container .ql-editor\": {\r\n overflowWrap: \"anywhere\",\r\n \"& img\": {\r\n maxWidth: \"100%\",\r\n },\r\n },\r\n },\r\n tooltipInfoIcon: {\r\n color: theme.palette.primary.main,\r\n marginLeft: \"5px\"\r\n },\r\n ratingBox: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n '& > * + *': {\r\n marginTop: theme.spacing(1),\r\n },\r\n },\r\n sideBySideDiv: {\r\n float: \"left\",\r\n width: \"250px\",\r\n },\r\n\r\n overallRatingIcon: {\r\n marginLeft: \"-10px\",\r\n marginRight: \"-10px\"\r\n },\r\n\r\n tabButton: {\r\n fontWeight: \"bold\",\r\n boxShadow: \"0px 0px 0px\",\r\n backgroundColor: theme.palette.grey[200],\r\n \"&.Mui-selected\": {\r\n backgroundColor: theme.palette.white.main + \"!important\",\r\n color: theme.palette.primary.main + \"!important\", \r\n boxShadow: \"0px -2px 1px\" + theme.palette.primary.main,\r\n },\r\n },\r\n minHeight0PX:{\r\n minHeight:\"auto!important\"\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\n\r\n//redux\r\nimport { connect } from \"react-redux\";\r\n//redux-actions\r\nimport { DATASET } from \"utils/consts\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\n\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { updateGeneralDataMap } from \"../../../../mappers/applicationsDetailsMap\";\r\nimport {\r\n updateApplicationDetailGeneralDataAction,\r\n getApplicationDetailsGeneralDataActions,\r\n} from \"redux/actions/applicationsAction\";\r\n//styles\r\nimport componentStyles from \"assets/theme/views/admin/generic-page-detail.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction RejectDialog(props) {\r\n const classes = { ...useStyles() };\r\n const theme = useTheme();\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n //GET MOTIVES\r\n React.useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_REJECT_MOTIVES] === undefined ||\r\n props.dataSetState[DATASET.APPLICATION_REJECT_MOTIVES]?.length === 0\r\n ) {\r\n props.getApplicationRejectMotives();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const onSubmitReject = (data) => {\r\n props.data[\"rejectMotiveId\"] = data.motive?.code;\r\n props.data[\"rejectMotiveObservations\"] = data.notes;\r\n\r\n props.updateApplicationDetails(updateGeneralDataMap(props.data), () => {\r\n props.onClose();\r\n props.getApplicationDetailsGeneralData(props.data.applicationNumber);\r\n });\r\n };\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n\r\n \r\n \r\n Pretende rejeitar esta candidatura?\r\n \r\n {/* \r\n Ao rejeitar a candidatura, o candidato ficará com a candidatura rejeitada no INEFOP e não irá receber o\r\n benefício do subprograma a que concorreu. Para prosseguir com a rejeição escolha o motivo, e introduza alguma\r\n observação que considere pertinente. Se não quiser rejeitar, simplesmente feche a janela.\r\n */}\r\n \r\n \r\n \r\n \r\n Motivo\r\n \r\n {errors[\"motive\"] !== undefined && (\r\n \r\n {errors[\"motive\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Observações\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n Submeter\r\n \r\n \r\n
\r\n
\r\n\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getApplicationRejectMotives: () =>\r\n dispatch(getDataSetByNameAction(DATASET.APPLICATION_REJECT_MOTIVES)),\r\n\r\n updateApplicationDetails: (data, onCloseMethod) =>\r\n dispatch(updateApplicationDetailGeneralDataAction(data, onCloseMethod)),\r\n\r\n getApplicationDetailsGeneralData: (applicationNum) =>\r\n dispatch(getApplicationDetailsGeneralDataActions(applicationNum)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(RejectDialog);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport UserSingularGeneralDataSection from \"../Sections/UserSingularGeneralDataSection\";\r\nimport UserColectiveGeneralDataSection from \"../Sections/UserColectiveGeneralDataSection\";\r\nimport ProgramSubprogramDataSection from \"../Sections/ProgramSubprogramDataSection\";\r\nimport ComplementaryDataSection from \"../Sections/ComplementaryDataSection\";\r\nimport DocumentsSection from \"../Sections/DocumentsSection\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport { labels } from \"resources/resources\";\r\n//redux actions\r\nimport { getNextApplicationStatesAction } from \"redux/actions/datasetsAction\";\r\nimport {\r\n updateApplicationDetailGeneralDataAction,\r\n getApplicationDetailsGeneralDataActions,\r\n} from \"redux/actions/applicationsAction\";\r\nimport { showGenericTwoButtonDialogAction } from \"redux/actions/dialogsAction\";\r\nimport { getReportAction } from \"redux/actions/reportsAction\";\r\nimport { DATASET, APPLICATION_STATE_KEY, REPORT_FILE_NAME } from \"utils/consts\";\r\nimport { updateGeneralDataMap, applicationExportReportMap } from \"../../../../mappers/applicationsDetailsMap\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport RejectDialog from \"views/admin/Applications/Dialogs/RejectDialog\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralDataTab(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n\r\n const methods = useForm({ mode: \"onChange\" });\r\n\r\n const [applicationData, setApplicationData] = useState();\r\n const [showRejectModal, setShowRejectModal] = useState(false);\r\n const [nextApplicationState, setNextApplicationState] = useState(0);\r\n\r\n const handleOpenRejectModal = () => {\r\n setShowRejectModal(true);\r\n };\r\n\r\n const handleCloseRejectModal = () => {\r\n setShowRejectModal(false);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n data[\"applicationNumber\"] = props.applicationNumber;\r\n data[\"identityCardOrTaxIdNum\"] = props.generalData.identityCardOrTaxIdNum;\r\n if (data.applicationStateId?.code === APPLICATION_STATE_KEY.REJECTED) {\r\n //rejeitada\r\n setApplicationData(data);\r\n handleOpenRejectModal();\r\n } else {\r\n props.showDialog(\r\n \"Pretende continuar?\",\r\n \"Irá guardar as alterações realizadas e alterar o Estado de Candidatura.\",\r\n function () {\r\n return props.updateApplicationDetails(updateGeneralDataMap(data, props.generalData?.documents), () => {\r\n props.getApplicationDetailsGeneralData(props.applicationNumber);\r\n });\r\n }\r\n );\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n props.getNextApplicationStates(DATASET.NEXT_APPLICATION_STATES, {\r\n applicationStateId: props.generalData !== undefined ? props.generalData?.applicationStateId : null,\r\n benefitId: props.generalData !== undefined ? props.generalData?.benefitId : null,\r\n });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.generalData?.applicationStateId]);\r\n\r\n useEffect(() => {\r\n methods.setValue(\r\n \"applicationStateId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.NEXT_APPLICATION_STATES],\r\n props.generalData !== undefined ? props.generalData?.applicationStateId : \"\"\r\n )\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.NEXT_APPLICATION_STATES]]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n
\r\n {props.generalData?.userSingularGeneralDataSection != null && (\r\n \r\n )}\r\n\r\n {props.generalData?.userColectiveGeneralDataSection != null && (\r\n \r\n )}\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationDetail_ApplicationStateField)}\r\n \r\n setNextApplicationState(option?.code)}\r\n errors={methods.formState.errors}\r\n classes={classes}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {\r\n props.getReport(\r\n applicationExportReportMap(props.applicationNumber),\r\n REPORT_FILE_NAME.APPLICATION_DETAILS +\r\n moment().format(\"YYYYMMDDHHmm\") +\r\n REPORT_FILE_NAME.PDF_EXTENSION\r\n );\r\n }}\r\n >\r\n Exportar Relatório\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Save)}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n {/* RejectDialog */}\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getNextApplicationStates: (name, data) => dispatch(getNextApplicationStatesAction(name, data)),\r\n updateApplicationDetails: (data, onCloseMethod) =>\r\n dispatch(updateApplicationDetailGeneralDataAction(data, onCloseMethod)),\r\n showDialog: (message, yesAction, noAction) =>\r\n dispatch(showGenericTwoButtonDialogAction(message, yesAction, noAction)),\r\n getApplicationDetailsGeneralData: (applicationNum) =>\r\n dispatch(getApplicationDetailsGeneralDataActions(applicationNum)),\r\n getReport: (data, reportFileName) => dispatch(getReportAction(data, reportFileName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralDataTab);\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n cardHeader: {\r\n backgroundColor: \"initial\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"122px\",\r\n paddingRight: \"122px\",\r\n },\r\n },\r\n navigateBefore: {\r\n color: theme.palette.primary.main,\r\n width: \"30px\",\r\n height: \"auto\",\r\n marginTop: \"5px\",\r\n },\r\n navigateBeforeBox: {\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"34px\",\r\n width: \"43px\",\r\n height: \"43px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n cursor: \"pointer\",\r\n \"&:hover, &:focus\": {\r\n boxShadow: \"0px 0px 10px orange !important\",\r\n },\r\n },\r\n titleGrid: {\r\n display: \"flex\"\r\n },\r\n ellipse: {\r\n marginLeft: \"120px\",\r\n marginTop: \"-2px\",\r\n width: \"38px\",\r\n height: \"38px\"\r\n },\r\n vector: {\r\n marginTop: \"0px\",\r\n marginLeft: \"-23px\",\r\n width: \"7px\",\r\n height: \"14px\"\r\n },\r\n pageTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"26px\",\r\n lineHeight: \"40px\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.main,\r\n marginLeft:\"22px\"\r\n },\r\n alignRight: {\r\n textAlign: \"right\"\r\n },\r\n mb0: {\r\n marginBottom: \"0!important\",\r\n },\r\n containerPadding: {\r\n marginBottom: \"37px\",\r\n paddingRight: \"1.5rem\",\r\n paddingLeft: \"1.5rem\"\r\n },\r\n borderWarning: {\r\n borderColor: theme.palette.warning.main + \"!important\",\r\n },\r\n monetaryFields: {\r\n textAlign: \"end\"\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport PropTypes from \"prop-types\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Link from \"@material-ui/core/Link\";\r\n// @material-ui/icons components\r\nimport NavigateBeforeIcon from '@material-ui/icons/NavigateBefore';\r\n// core components\r\n\r\nimport componentStyles from \"assets/theme/components/headers/page-title-header.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nconst PageTitleHeader = ({ title, subsectionLink }) => {\r\n const classes = useStyles();\r\n const history = useHistory();\r\n return (\r\n \r\n \r\n { !subsectionLink ? history.goBack() : history.push(subsectionLink); }} className={classes.navigateBeforeBox}>\r\n \r\n \r\n \r\n {title}\r\n \r\n \r\n \r\n\r\n );\r\n};\r\n\r\nPageTitleHeader.propTypes = {\r\n title: PropTypes.string,\r\n};\r\n\r\nexport default PageTitleHeader;\r\n","const componentStyles = (theme) => ({\r\n titleGrid: {\r\n display: \"flex\"\r\n },\r\n container: {\r\n marginBottom: \"37px\",\r\n paddingLeft: \"20px\",\r\n paddingRight: \"20px\",\r\n height: \"44px\",\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n },\r\n subsection: {\r\n fontWeight: \"400\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: theme.palette.white.main,\r\n cursor: \"pointer\",\r\n \"&:hover\": {\r\n color: theme.palette.white.main,\r\n fontWeight: \"600\",\r\n textDecorationLine: \"none\",\r\n }\r\n },\r\n separator: {\r\n fontFamily: \"FontAwesome\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"16px\",\r\n lineHeight: \"18px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.white.main,\r\n marginLeft: \"12px\",\r\n marginRight: \"12px\",\r\n },\r\n section: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.mediumBlue,\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport PropTypes from \"prop-types\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Link from \"@material-ui/core/Link\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n\r\n// core components\r\nimport componentStyles from \"assets/theme/components/headers/location-header.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nconst LocationHeader = ({ section, subsection, subsectionLink }) => {\r\n const classes = useStyles();\r\n const history = useHistory();\r\n return (\r\n \r\n \r\n { history.push(subsectionLink); }}\r\n className={classes.subsection}\r\n >\r\n {subsection}\r\n \r\n \r\n \r\n \r\n \r\n {section}\r\n \r\n \r\n \r\n\r\n );\r\n};\r\n\r\nLocationHeader.propTypes = {\r\n section: PropTypes.string,\r\n subsection: PropTypes.string,\r\n subsectionLink: PropTypes.string,\r\n};\r\n\r\nexport default LocationHeader;\r\n","import { React, useState, useEffect } from \"react\";\r\n// redux\r\nimport { connect } from \"react-redux\";\r\n//redux actions\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\n// @material-ui\r\nimport { makeStyles, withStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport { Stepper, Step, StepLabel, StepConnector } from \"@material-ui/core\";\r\nimport Fab from \"@material-ui/core/Fab\";\r\n// @material-ui/icons components\r\nimport CheckCircleIcon from \"@material-ui/icons/CheckCircle\";\r\nimport Brightness1RoundedIcon from \"@material-ui/icons/Brightness1Rounded\";\r\n// styles\r\nimport componentStylesApplicationDetails from \"assets/theme/views/admin/application-details.js\";\r\n//utils\r\nimport { groupBy } from \"utils/array_utils\";\r\nimport { DATASET } from \"utils/consts\";\r\n\r\nimport moment from \"moment\";\r\n\r\nconst useStylesApplicationDetails = makeStyles(componentStylesApplicationDetails);\r\n\r\nfunction ApplicationStepper(props) {\r\n const theme = useTheme();\r\n const classes = useStylesApplicationDetails();\r\n const [activeStep, setActiveStep] = useState(2);\r\n const [states, setStates] = useState([]);\r\n\r\n const ColorlibConnector = withStyles({\r\n alternativeLabel: {\r\n top: 20,\r\n },\r\n active: {\r\n \"& $line\": {\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n },\r\n completed: {\r\n \"& $line\": {\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n },\r\n line: {\r\n height: 4,\r\n marginBottom: \"10px\",\r\n border: 0,\r\n backgroundColor: theme.palette.gray[100],\r\n borderRadius: 1,\r\n },\r\n })(StepConnector);\r\n\r\n //Application State\r\n useEffect(() => {\r\n if (props.applicationState !== undefined) updateActiveStep(props.applicationState);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.applicationState, states]);\r\n\r\n //Stepper States\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.APPLICATION_STATES] !== undefined) {\r\n const states = props.dataSetState[DATASET.APPLICATION_STATES].map((state) => {\r\n let date = props.history?.find((element) => element.group === state.keyValue)?.date; //state.KeyValue is the StateGroup\r\n let data_string = date ? moment(date).format(\"DD/MM/YYYY\") : \"--\";\r\n\r\n return { id: state.code, label: state.keyValue, date: data_string }; //state.KeyValue is the StateGroup\r\n });\r\n\r\n const steps = groupBy(states, (x) => x.label);\r\n setStates(Array.from(steps));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.APPLICATION_STATES], props.history]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_STATES] === undefined ||\r\n props.dataSetState[DATASET.APPLICATION_STATES]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.APPLICATION_STATES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const updateActiveStep = (applicationState) => {\r\n if (applicationState !== undefined && states !== []) {\r\n let found = states.findIndex((state) => {\r\n return state[1].some((item) => {\r\n return item.id === applicationState;\r\n });\r\n });\r\n let step = found === states.length - 1 ? states.length : found;\r\n setActiveStep(step);\r\n }\r\n };\r\n\r\n return (\r\n }>\r\n {states.map((state, index) => {\r\n return (\r\n \r\n \r\n {state[1][0].date}\r\n {state[0]}\r\n \r\n \r\n );\r\n })}\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ApplicationStepper);\r\n\r\nfunction ColorlibStepIcon(props) {\r\n const classes = useStylesApplicationDetails();\r\n\r\n return (\r\n
\r\n \r\n {props.completed ? : \"\"}\r\n {props.active ? : \"\"}\r\n \r\n
\r\n );\r\n}\r\n","import { useState, useEffect, useRef } from \"react\";\r\n\r\nconst THRESHOLD = 0;\r\n\r\nconst useScrollDirection = () => {\r\n const [scrollDirection, setScrollDirection] = useState('up');\r\n\r\n const blocking = useRef(false);\r\n const prevScrollY = useRef(0);\r\n\r\n useEffect(() => {\r\n prevScrollY.current = window.pageYOffset;\r\n\r\n const updateScrollDirection = () => {\r\n const scrollY = window.pageYOffset;\r\n\r\n if (Math.abs(scrollY - prevScrollY.current) >= THRESHOLD) {\r\n const newScrollDirection =\r\n scrollY > prevScrollY.current ? 'down' : 'up';\r\n\r\n setScrollDirection(newScrollDirection);\r\n\r\n prevScrollY.current = scrollY > 0 ? scrollY : 0;\r\n }\r\n\r\n blocking.current = false;\r\n };\r\n\r\n const onScroll = () => {\r\n if (!blocking.current) {\r\n blocking.current = true;\r\n window.requestAnimationFrame(updateScrollDirection);\r\n }\r\n };\r\n\r\n window.addEventListener('scroll', onScroll);\r\n\r\n return () => window.removeEventListener('scroll', onScroll);\r\n }, [scrollDirection]);\r\n\r\n return scrollDirection;\r\n};\r\n\r\nexport default useScrollDirection;","import React from \"react\";\r\nimport { Container, makeStyles } from \"@material-ui/core\";\r\nimport { ToggleButton, ToggleButtonGroup } from \"@material-ui/lab\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function Tabs({ tabs, dataTestId, onChange, step }) {\r\n const classes = useStylesGeneric();\r\n\r\n return (\r\n \r\n \r\n {tabs.map(\r\n ({ renderIf = true, value, testId, text }, key) =>\r\n renderIf && (\r\n \r\n {text}\r\n \r\n )\r\n )}\r\n \r\n \r\n );\r\n}\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { Box } from \"@material-ui/core\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Alert from \"@material-ui/lab/Alert\";\r\n\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport componentStylesApplicationDetails from \"assets/theme/views/admin/application-details\";\r\nimport NotificationsTab from \"./Tabs/NotificationsTab\";\r\nimport HistoryTab from \"./Tabs/HistoryTab\";\r\nimport SchedulingTab from \"./Tabs/SchedulingTab\";\r\nimport GeneralDataTab from \"./Tabs/GeneralDataTab\";\r\nimport { getApplicationDetailsGeneralDataActions } from \"redux/actions/applicationsAction\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport ApplicationStepper from \"./Stepper/ApplicationStepper\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport { titles } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport Tabs from \"components/Tabs/Tabs\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst useStylesApplicationDetails = makeStyles(componentStylesApplicationDetails);\r\n\r\nfunction ApplicationDetail(props) {\r\n const classes = { ...useStylesGeneric(), ...useStylesApplicationDetails() };\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const TABS = {\r\n GENERAL_DATA: \"generalDataStep\",\r\n SCHEDULING: \"schedulingStep\",\r\n NOTIFICATIONS: \"notificationsStep\",\r\n HISTORY: \"historyStep\",\r\n };\r\n\r\n const [applicationState, setApplicationState] = useState(0);\r\n const [applicationStateHistory, setApplicationStateHistory] = useState([]);\r\n const [tabStep, setTabStep] = useState(TABS.GENERAL_DATA);\r\n const [applicationNumber, setApplicationNumber] = useState();\r\n const [showAlertMessage, setShowAlertMessage] = useState(true);\r\n\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n\r\n setShowAlertMessage(value === TABS.GENERAL_DATA);\r\n }\r\n };\r\n\r\n function loadTabContent(applicationNumber) {\r\n switch (tabStep) {\r\n case TABS.GENERAL_DATA:\r\n return (\r\n \r\n );\r\n case TABS.SCHEDULING:\r\n return (\r\n \r\n );\r\n case TABS.NOTIFICATIONS:\r\n return (\r\n \r\n );\r\n case TABS.HISTORY:\r\n return ;\r\n default:\r\n return <>;\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n props.getApplicationDetailsGeneralData(props.match.params.applicationNumber);\r\n\r\n setApplicationNumber(props.match.params.applicationNumber);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.applicationNumber]);\r\n\r\n useEffect(() => {\r\n if (props.applicationsState.applicationDetailsGeneralData !== undefined) {\r\n setTabStep(TABS.GENERAL_DATA);\r\n setApplicationState(props.applicationsState.applicationDetailsGeneralData?.applicationStateId);\r\n setApplicationStateHistory(props.applicationsState.applicationDetailsGeneralData?.applicationStateHistory);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.applicationsState.applicationDetailsGeneralData]);\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {showAlertMessage && (\r\n \r\n {\"Aviso: ao encargo do pelouro responsável '\" +\r\n props.applicationsState.applicationDetailsGeneralData?.departmentName +\r\n \"'\"}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n \r\n {loadTabContent(applicationNumber)}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getApplicationDetailsGeneralData: (applicationNum) =>\r\n dispatch(getApplicationDetailsGeneralDataActions(applicationNum)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ApplicationDetail);\r\n","import {\r\n createSubprogram,\r\n getFilteredSubprograms,\r\n getSubprogramDetails,\r\n updateSubprogram,\r\n updateSubprogramState,\r\n} from \"crud/subprograms.crud\";\r\nimport { SUBPROGRAM, DIALOG } from \"utils/actionsConsts\";\r\nimport moment from \"moment\";\r\nconst convertIntervalToString = (dateFrom, dateTo) => {\r\n return `De ${dateFrom} Até ${dateTo}`;\r\n};\r\nexport const createSubprogramAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: SUBPROGRAM.CREATE_SUBPROGRAM_LOADING,\r\n payload: true,\r\n });\r\n createSubprogram(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: SUBPROGRAM.CREATE,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data.succeeded,\r\n message: res.data.succeeded\r\n ? \"Subprograma caracterizado com sucesso\"\r\n : \"Ocorreu um erro a criar o subprograma\",\r\n goBack: res.data.succeeded,\r\n onClose: \"/admin/subprograms-management\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SUBPROGRAM.CREATE,\r\n payload: false,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFilteredSubprogramsActions = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: SUBPROGRAM.GET_FILTERED_SUBPROGRAMS_LOADING,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n getFilteredSubprograms(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n governmentProgramName: record.governmentProgramName,\r\n programName: record.programName,\r\n subprogramId: record.id,\r\n subprogramName: record.subprogramName,\r\n benefitTypeName: record.benefitName,\r\n departmentName: record.department,\r\n subprogramStateName: record.status,\r\n subprogramStateKeyValue: record.statusKeyValue,\r\n vigencyDate: convertIntervalToString(\r\n moment(record.validFrom).format(\"DD/MM/YYYY\"),\r\n moment(record.validTo).format(\"DD/MM/YYYY\")\r\n ),\r\n };\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.GET_FILTERED_SUBPROGRAMS,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.GET_FILTERED_SUBPROGRAMS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SUBPROGRAM.GET_FILTERED_SUBPROGRAMS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.GET_FILTERED_SUBPROGRAMS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getSubprogramDetailsActions = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: SUBPROGRAM.CLEAR_DETAIL,\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.GET_SUBPROGRAM_DETAILS_LOADING,\r\n payload: true,\r\n });\r\n getSubprogramDetails(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: SUBPROGRAM.GET_SUBPROGRAM_DETAILS,\r\n result: true,\r\n payload: {\r\n subprogramName: res.data.subprogramName,\r\n governmentProgramId: res.data.governmentProgramId,\r\n governmentProgramName: res.data.governmentProgramName, \r\n programId: res.data.programId,\r\n programName: res.data.programName,\r\n stateKey: res.data.stateKey,\r\n validFrom: res.data.validFrom,\r\n validTo: res.data.validTo,\r\n description: res.data.description,\r\n objectives: res.data.objectives,\r\n numVacancies: res.data.numVacancies,\r\n departmentId: res.data.departmentId,\r\n benefitTypeId: res.data.benefitId,\r\n benefitKeyValue: res.data.benefitKeyValue,\r\n benefitName: res.data.benefitName,\r\n categoryList: res.data.categoriesList,\r\n numMaxKits: res.data.numMaxKits,\r\n minMicrocreditValue: res.data.microcreditMinValue,\r\n maxMicrocreditValue: res.data.microcreditMaxValue,\r\n interestRate: res.data.microcreditInterestRate,\r\n gracePeriod: res.data.microcreditGracePeriod,\r\n repaymentPeriod: res.data.microcreditRepaymentPeriod,\r\n\r\n documents: res.data.documentTypeList,\r\n complementaryData: res.data.complementaryDataList,\r\n\r\n deliveredProfessionalKits: res.data.deliveredProfessionalKitsList,\r\n },\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.GET_SUBPROGRAM_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SUBPROGRAM.GET_SUBPROGRAM_DETAILS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.GET_SUBPROGRAM_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateSubprogramAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: SUBPROGRAM.UPDATE_SUBPROGRAM_LOADING,\r\n payload: true,\r\n });\r\n updateSubprogram(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: SUBPROGRAM.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data.succeeded,\r\n message: res.data.succeeded\r\n ? \"Subprograma actualizado com sucesso\"\r\n : \"Ocorreu um erro a actualizar o subprograma\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.UPDATE_SUBPROGRAM_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SUBPROGRAM.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.UPDATE_SUBPROGRAM_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateSubprogramStateAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: SUBPROGRAM.UPDATE_SUBPROGRAM_STATE_LOADING,\r\n payload: true,\r\n });\r\n updateSubprogramState(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: SUBPROGRAM.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data !== null,\r\n goBack: true,\r\n onClose: \"/admin/subprograms-management\",\r\n message:\r\n res.data !== null\r\n ? \"Estado do Subprograma actualizado com sucesso\"\r\n : \"Ocorreu um erro a actualizar o estado do subprograma\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.UPDATE_SUBPROGRAM_STATE_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: SUBPROGRAM.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: SUBPROGRAM.UPDATE_SUBPROGRAM_STATE_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default getFilteredSubprogramsActions;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\n\r\nexport const CREATE_SUBPROGRAM_URL = \"SubPrograms/create\";\r\nexport const GET_FILTERED_SUBPROGRAMS_URL = \"SubPrograms/get-filtered-subprograms\";\r\nexport const GET_SUBPROGRAM_DETAILS_URL = \"SubPrograms/get-subprogram-details?subprogramNumber=\";\r\nexport const UPDATE_SUBPROGRAM_URL = \"SubPrograms/update\";\r\nexport const UPDATE_SUBPROGRAM_STATE_URL = \"SubPrograms/update-subprogram-state\";\r\n\r\nexport function createSubprogram(subprogram) {\r\n return axios.post(INTERNAL_API_URL + CREATE_SUBPROGRAM_URL, { subprogram });\r\n}\r\n\r\nexport function getFilteredSubprograms(formData) {\r\n return axios.post(INTERNAL_API_URL + GET_FILTERED_SUBPROGRAMS_URL, formData);\r\n}\r\n\r\nexport function getSubprogramDetails(data) {\r\n return axios.get(INTERNAL_API_URL + GET_SUBPROGRAM_DETAILS_URL + data);\r\n}\r\n\r\nexport function updateSubprogram(subprogram) {\r\n return axios.post(INTERNAL_API_URL + UPDATE_SUBPROGRAM_URL, { subprogram });\r\n}\r\n\r\nexport function updateSubprogramState(data) {\r\n return axios.post(INTERNAL_API_URL + UPDATE_SUBPROGRAM_STATE_URL, data);\r\n}\r\n","import { MONETARY_DECIMAL_SEPARATOR, COMPLEMENTARY_DATA_TYPE, PAGINATION } from \"utils/consts\";\r\n\r\nexport function subprogramCreationMap(formData, complementaryDataList) {\r\n if (formData !== null && formData !== undefined) {\r\n const listCategoryIds = formData.categoryList?.map((categoryId) => {\r\n return categoryId?.code;\r\n });\r\n const listDocumentIds = formData.documentsList?.map((docId) => {\r\n return docId?.code;\r\n });\r\n\r\n let listComplementaryDataItems = complementaryDataList?.map((compleData) => {\r\n return {\r\n title: compleData.itemTitle,\r\n question: compleData.itemText,\r\n answerTypeId: compleData.itemType,\r\n dataSetEnumId: compleData.itemType !== COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT ? compleData.itemDatasetEnumId : null,\r\n complementaryDataQuestionKey: compleData.itemKey,\r\n isRequired: compleData.itemIsRequired,\r\n complementaryDataConditionsList: compleData.conditionsList?.map((condition) => {\r\n return {\r\n conditionTypeId: condition?.conditionType?.code,\r\n conditionalQuestionKey: condition?.conditionalQuestionId?.code,\r\n conditionalValue: condition?.conditionalValue?.code?.toString(),\r\n };\r\n }),\r\n };\r\n });\r\n\r\n return {\r\n governmentProgramId: formData?.governmentProgramId?.code ? formData?.governmentProgramId?.code : \"\",\r\n programId: formData.programId?.code ? formData.programId?.code : \"\",\r\n name: formData.subprogramName ? formData.subprogramName : \"\",\r\n objectives: formData.subprogramObjectives ? formData.subprogramObjectives : \"\",\r\n description: formData.subprogramDescription ? formData.subprogramDescription : \"\",\r\n validFrom: formData.subprogramValidFrom ? formData.subprogramValidFrom.format(\"YYYY-MM-DD\") : \"\",\r\n validTo: formData.subprogramValidTo ? formData.subprogramValidTo.format(\"YYYY-MM-DD\") : \"\",\r\n statusId: 1,\r\n published: false,\r\n publishedOn: null,\r\n numVacancies: formData.numVacancies ? formData.numVacancies : 0,\r\n microcreditMinValue: formData.minMicrocreditValue ? formData.minMicrocreditValue.replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n microcreditMaxValue: formData.maxMicrocreditValue ? formData.maxMicrocreditValue.replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n microcreditInterestRate: formData.interestRate ? formData.interestRate.replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n microcreditGracePeriod: formData.gracePeriod ? formData.gracePeriod : 0,\r\n microcreditRepaymentPeriod: formData.repaymentPeriod ? formData.repaymentPeriod : 0,\r\n categoriesList: listCategoryIds !== undefined ? listCategoryIds : [],\r\n numMaxKits: formData.numMaxKits ? formData.numMaxKits : 0,\r\n benefitType: formData.benefitType?.code ? formData.benefitType?.code : \"\",\r\n departmentId: formData.departmentId?.code ? formData.departmentId?.code : \"\",\r\n documentsList: listDocumentIds !== undefined ? listDocumentIds : [],\r\n complementaryDataList: listComplementaryDataItems !== undefined ? listComplementaryDataItems : [],\r\n };\r\n }\r\n\r\n return formData;\r\n}\r\n\r\nexport function subprogramFilterMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n benefitTypeId: formData.benefitTypeId?.code,\r\n departmentId: formData.departmentId?.code,\r\n governmentProgramId: formData.governmentProgramId?.code,\r\n programId: formData.programId?.code,\r\n subprogramStateId: formData.statusId?.code,\r\n subProgramId: formData.subProgramId?.code,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n };\r\n }\r\n}\r\n\r\nexport function subprogramUpdateMap(formData, complementaryDataList) {\r\n if (formData !== null && formData !== undefined) {\r\n let listCategoryIds = formData.categoryList?.map((categoryId) => {\r\n return categoryId.code;\r\n });\r\n let listDocumentIds = formData.documentsList?.map((docId) => {\r\n return docId.code;\r\n });\r\n\r\n let listComplementaryDataItems = complementaryDataList?.map((compleData) => {\r\n return {\r\n title: compleData.itemTitle,\r\n question: compleData.itemText,\r\n answerTypeId: compleData.itemType,\r\n dataSetEnumId: compleData.itemType !== COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT ? compleData.itemDatasetEnumId : null,\r\n complementaryDataQuestionKey: compleData.itemKey,\r\n isRequired: compleData.itemIsRequired,\r\n complementaryDataConditionsList: compleData.conditionsList?.map((condition) => {\r\n return {\r\n conditionTypeId: condition?.conditionType?.code,\r\n conditionalQuestionKey: condition?.conditionalQuestionId?.code,\r\n conditionalValue: condition?.conditionalValue?.code?.toString(),\r\n };\r\n }),\r\n };\r\n });\r\n\r\n return {\r\n governmentProgramId: formData.governmentProgramId?.code ? formData.governmentProgramId?.code : \"\",\r\n programId: formData.programId?.code ? formData.programId?.code : \"\",\r\n subprogramId: formData.subprogramId ? formData.subprogramId : null,\r\n subprogramName: formData.subprogramName ? formData.subprogramName : \"\",\r\n objectives: formData.subprogramObjectives ? formData.subprogramObjectives : \"\",\r\n description: formData.subprogramDescription ? formData.subprogramDescription : \"\",\r\n validFrom: formData.subprogramValidFrom ? formData.subprogramValidFrom.format(\"YYYY-MM-DD\") : \"\",\r\n validTo: formData.subprogramValidTo ? formData.subprogramValidTo.format(\"YYYY-MM-DD\") : \"\",\r\n numVacancies: formData.numVacancies ? formData.numVacancies : 0,\r\n departmentId: formData.departmentId?.code ? formData.departmentId?.code : \"\",\r\n microcreditMinValue: formData.minMicrocreditValue ? formData.minMicrocreditValue.toString().replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n microcreditMaxValue: formData.maxMicrocreditValue ? formData.maxMicrocreditValue.toString().replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n microcreditInterestRate: formData.interestRate ? formData.interestRate.toString().replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n microcreditGracePeriod: formData.gracePeriod ? formData.gracePeriod : 0,\r\n microcreditRepaymentPeriod: formData.repaymentPeriod ? formData.repaymentPeriod : 0,\r\n categoriesList: listCategoryIds !== undefined ? listCategoryIds : [],\r\n numMaxKits: formData.numMaxKits ? formData.numMaxKits : 0,\r\n benefitType: formData.benefitType?.code ? formData.benefitType?.code : \"\",\r\n documentsList: listDocumentIds !== undefined ? listDocumentIds : [],\r\n complementaryDataList: listComplementaryDataItems !== undefined ? listComplementaryDataItems : [],\r\n };\r\n }\r\n\r\n return formData;\r\n}\r\n\r\nexport default subprogramCreationMap;","import React, { useEffect, useState } from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useHistory } from \"react-router-dom\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { labels, titles } from \"resources/resources\";\r\nimport { DATASET, PAGINATION } from \"utils/consts\";\r\nimport {\r\n getDataSetByNameAction,\r\n getGovernmentProgramsAction,\r\n getProgramsAction,\r\n getSubprogramsAction,\r\n getSubprogramStatesAction,\r\n getDepartmentsAction,\r\n getSubprogramByProgramIdAction,\r\n clearDataSetByNameAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { getFilteredSubprogramsActions } from \"redux/actions/subprogramsAction\";\r\nimport { subprogramFilterMap } from \"mappers/subprogramsMap\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n\r\n const [filter, setFilter] = useState({\r\n benefitTypeId: null,\r\n departmentId: null,\r\n governmentProgramId: null,\r\n programId: null,\r\n subprogramStateId: null,\r\n subProgramId: null,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n //Refresh Results\r\n const refreshResults = () => {\r\n let temp_filter = { ...filter, pageIndex: props.page };\r\n setFilter(temp_filter);\r\n props.getFilterSubprograms(temp_filter);\r\n };\r\n\r\n const cleanFilter = () => {\r\n setValue(\"governmentProgramId\", undefined);\r\n setValue(\"programId\", undefined);\r\n setValue(\"subProgramId\", undefined);\r\n setValue(\"benefitTypeId\", undefined);\r\n setValue(\"departmentId\", undefined);\r\n setValue(\"statusId\", undefined);\r\n props.clearDataSetByName(DATASET.SUBPROGRAMS);\r\n\r\n setFilterCounter(0);\r\n setFilter(0);\r\n };\r\n\r\n const redirectToSubProgramCreation = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/subprograms-create\");\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = subprogramFilterMap(data);\r\n setFilter(filter);\r\n if (props.page === PAGINATION.FIRST_PAGE) {\r\n props.getFilterSubprograms(filter);\r\n } else {\r\n props.handleChangePage(PAGINATION.FIRST_PAGE);\r\n }\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS] === undefined ||\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS]?.length === 0\r\n ) {\r\n props.getGovernmentPrograms(DATASET.GOVERNMENT_PROGRAMS);\r\n }\r\n\r\n props.getPrograms(DATASET.PROGRAMS); // Get all programs on first load\r\n props.getSubprograms(DATASET.SUBPROGRAMS); // Get all subprograms on first load\r\n\r\n if (\r\n props.dataSetState[DATASET.SUBPROGRAM_STATES] === undefined ||\r\n props.dataSetState[DATASET.SUBPROGRAM_STATES]?.length === 0\r\n ) {\r\n props.getSubprogramStates(DATASET.SUBPROGRAM_STATES);\r\n }\r\n if (props.dataSetState[DATASET.BENEFITS] === undefined || props.dataSetState[DATASET.BENEFITS]?.length === 0) {\r\n props.getDataSet(DATASET.BENEFITS);\r\n }\r\n if (\r\n props.dataSetState[DATASET.DEPARTMENTS] === undefined ||\r\n props.dataSetState[DATASET.DEPARTMENTS]?.length === 0\r\n ) {\r\n props.getDepartments(DATASET.DEPARTMENTS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n //Refresh Results\r\n useEffect(() => {\r\n refreshResults();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n return (\r\n \r\n \r\n
Pesquisa de Subprogramas
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_CharacterizeSubprogramMenuItem)}\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_GovernmentProgramField)}\r\n \r\n {\r\n data ? props.clearDataSetByName(DATASET.SUBPROGRAMS) : props.getSubprograms(DATASET.SUBPROGRAMS);\r\n }}\r\n required={false}\r\n errors={errors}\r\n classes={classes}\r\n filled={true}\r\n handleSetFilter={handleSetFilter}\r\n filterList={filter}\r\n filterListKey={\"governmentProgramId\"}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_ProgramField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_SubprogramField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_BenefitsTypeField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_DepartmentField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_StateField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getSubprogramStates: (name) => dispatch(getSubprogramStatesAction(name)),\r\n getGovernmentPrograms: () => dispatch(getGovernmentProgramsAction()),\r\n getPrograms: (name, governmentProgramId) => dispatch(getProgramsAction(name, governmentProgramId)),\r\n getSubprograms: (name) => dispatch(getSubprogramsAction(name)),\r\n getFilterSubprograms: (data) => dispatch(getFilteredSubprogramsActions(data)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getDepartments: (name) => dispatch(getDepartmentsAction(name)),\r\n getSubprogramByProgramId: (name, program) => dispatch(getSubprogramByProgramIdAction(name, program)),\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FilterSection);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { TABLE_STATE_CHIP_COLOR, SUBPROGRAM_STATES } from \"utils/consts\";\r\n\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { updateSubprogramStateAction } from \"redux/actions/subprogramsAction\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ResultSection(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [subProgramList, setSubProgramList] = useState([]);\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_Admin_Subprogram_GovernmentProgramField),\r\n intl.formatMessage(labels.Label_Admin_Subprogram_ProgramField),\r\n intl.formatMessage(labels.Label_Admin_Subprogram_SubprogramField),\r\n intl.formatMessage(labels.Label_Admin_Subprogram_ValidityDateField),\r\n intl.formatMessage(labels.Label_Admin_Subprogram_DepartmentField),\r\n intl.formatMessage(labels.Label_Admin_Subprogram_BenefitsTypeField),\r\n intl.formatMessage(labels.Label_Admin_Subprogram_StateField),\r\n \"\",\r\n ];\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.subprogramState.result)) {\r\n setSubProgramList(props.subprogramState.result.data);\r\n } else {\r\n setSubProgramList([]);\r\n }\r\n }, [props.subprogramState.result]);\r\n\r\n const MapSubprogramStateToTableChipColors = (subprogramStateKeyValue) => {\r\n const greenChipArray = [SUBPROGRAM_STATES.APROVADO, SUBPROGRAM_STATES.CONCLUIDO, SUBPROGRAM_STATES.PUBLICADO];\r\n const yellowChipArray = [SUBPROGRAM_STATES.CRIADO];\r\n const orangeChipArray = [];\r\n const redChipArray = [];\r\n\r\n if (greenChipArray.includes(subprogramStateKeyValue)) {\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n }\r\n if (orangeChipArray.includes(subprogramStateKeyValue)) {\r\n return TABLE_STATE_CHIP_COLOR.DARK_ORANGE;\r\n }\r\n if (yellowChipArray.includes(subprogramStateKeyValue)) {\r\n return TABLE_STATE_CHIP_COLOR.YELLOW;\r\n }\r\n if (redChipArray.includes(subprogramStateKeyValue)) {\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n }\r\n };\r\n\r\n const handlePublishSubprogramClick = (subprogramNumber) => {\r\n let auxData = { subprogramId: subprogramNumber, subprogramStateKeyValue: 4 };\r\n props.updateSubprogramState(auxData);\r\n };\r\n\r\n return (\r\n \r\n \r\n
Lista de Subprogramas
\r\n
\r\n {\" (\"}\r\n {props.subprogramState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n {intl.formatMessage(labels.Label_Generic_Details)}\r\n \r\n \r\n \r\n {subProgramList !== undefined && subProgramList.length > 0 && (\r\n \r\n {subProgramList?.map((prop, key) => (\r\n \r\n {prop.governmentProgramName}\r\n {prop.programName}\r\n {prop.subprogramName}\r\n {prop.vigencyDate}\r\n {prop.departmentName}\r\n {prop.benefitTypeName}\r\n \r\n \r\n \r\n \r\n \r\n {\r\n handlePublishSubprogramClick(prop.subprogramId);\r\n prop.subprogramStateKeyValue = SUBPROGRAM_STATES.PUBLICADO;\r\n prop.subprogramStateName = \"Publicado\";\r\n }}\r\n >\r\n Publicar\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(subProgramList == null || subProgramList.length === 0) &&\r\n !props.subprogramState.searchSubprograms_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateSubprogramState: (data) => dispatch(updateSubprogramStateAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ResultSection);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\n// import { useTheme } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FilterSection from \"./Sections/FilterSection\";\r\nimport ResultSection from \"./Sections/ResultSection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Subprograms() {\r\n const classes = useStylesGeneric();\r\n // const theme = useTheme();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n {\r\n handleChangePage(undefined, value);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(Subprograms);\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\nimport CheckBoxOutlineBlankIcon from \"@material-ui/icons/CheckBoxOutlineBlank\";\r\nimport CheckBoxIcon from \"@material-ui/icons/CheckBox\";\r\n\r\nconst icon = ;\r\nconst checkedIcon = ;\r\n\r\nexport default function FormMultipleSelect({\r\n control,\r\n fieldName,\r\n selectOptions,\r\n initialLabel,\r\n getValues,\r\n required,\r\n requiredMessage,\r\n limitTags,\r\n errors,\r\n classes,\r\n disabled,\r\n onOptionChange,\r\n}) {\r\n const theme = useTheme();\r\n const useStyles = makeStyles(() => ({\r\n root: {\r\n width: \"100%\",\r\n }\r\n }));\r\n const formMultipleClass = useStyles();\r\n\r\n return (\r\n (\r\n {\r\n onChange(data);\r\n if(onOptionChange)\r\n onOptionChange(data);\r\n }}\r\n value={getValues(name) ? getValues(name) : []}\r\n options={selectOptions ? selectOptions : { code: \"\", label: \"\" }}\r\n disableCloseOnSelect\r\n getOptionLabel={(option) => option.label}\r\n getOptionSelected={(option, value) => option.code === value.code}\r\n classes={{\r\n root: formMultipleClass.root,\r\n inputRoot: clsx({\r\n [classes.selectBorderWarningInputRoot]: errors !== undefined && errors[name] !== undefined,\r\n }),\r\n }}\r\n ListboxProps={{\r\n style: {\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n },\r\n }}\r\n renderOption={(option, { selected }) => (\r\n \r\n \r\n {option.label}\r\n \r\n )}\r\n renderInput={(params) => (\r\n \r\n )}\r\n />\r\n )}\r\n name={fieldName}\r\n control={control}\r\n rules={{\r\n required: {\r\n value: required,\r\n message: requiredMessage,\r\n },\r\n }}\r\n />\r\n );\r\n}\r\n","import { React, useEffect } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n//import custom components\r\nimport FormMultipleSelect from \"components/FormFields/FormMultipleSelect\";\r\nimport { getNotAssignedActiveCategoriesAction, getCategoriesAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ProfessionalKitFields(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n\r\n const { control } = useFormContext();\r\n\r\n const getOptions = () => {\r\n let dataSetName = \"\";\r\n if (props.loadData === true) {\r\n if (!props.isEditable) dataSetName = DATASET.CATEGORIES;\r\n else dataSetName = DATASET.NOT_ASSIGNED_ACTIVE_CATEGORIES;\r\n } else {\r\n dataSetName = DATASET.NOT_ASSIGNED_ACTIVE_CATEGORIES;\r\n }\r\n\r\n return props.dataSetState[dataSetName] !== undefined ? props.dataSetState[dataSetName] : [];\r\n };\r\n\r\n useEffect(() => {\r\n if (props.loadData === true) {\r\n if (\r\n props.dataSetState[DATASET.CATEGORIES] === undefined ||\r\n props.dataSetState[DATASET.CATEGORIES]?.length === 0\r\n ) {\r\n props.getCategories(DATASET.CATEGORIES);\r\n }\r\n } else {\r\n props.getNotAssignedActiveCategories(DATASET.NOT_ASSIGNED_ACTIVE_CATEGORIES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.subprogramDetailsData !== undefined) {\r\n if (props.loadData === true && props.isEditable) {\r\n props.getNotAssignedActiveCategories(DATASET.NOT_ASSIGNED_ACTIVE_CATEGORIES);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.isEditable]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Especialidade do Kit\r\n \r\n {props.errors[\"categoryList\"] !== undefined && (\r\n \r\n {props.errors[\"categoryList\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Nº Máximo de Kits\r\n {\r\n return value > 0 || \"O número máximo de kits tem de ser maior que zero.\";\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n {props.errors[\"numMaxKits\"] !== undefined && (\r\n \r\n {props.errors[\"numMaxKits\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getNotAssignedActiveCategories: (name) => dispatch(getNotAssignedActiveCategoriesAction(name)),\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ProfessionalKitFields);\r\n","import React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { messages } from \"resources/resources\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\n//import custom components\r\nimport { UNITS, REGEX_PATTERNS, MONETARYUNITPLACEHOLDER } from \"utils/consts\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction MicrocreditFields(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const { control } = useFormContext();\r\n const intl = useIntl();\r\n\r\n const onInterestRateChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Valor mínimo Microcrédito\r\n {\r\n if (value === \"0\" || value === \"0,00\" || value === \"0,0\")\r\n return \"O valor mínimo do microcédito tem de ser maior que 0.\";\r\n return true;\r\n },\r\n isLessThanMaxValue: (value) => {\r\n if (!props.getValues(\"maxMicrocreditValue\")) return true;\r\n return (\r\n (value &&\r\n parseInt(value) <\r\n parseInt(props.getValues(\"maxMicrocreditValue\"))) ||\r\n \"O valor mínimo do microcrédito deve ser menor que o valor máximo\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name } }) => (\r\n {\r\n props.onMinValChange(e.target.value, onChange);\r\n props.trigger(\"maxMicrocreditValue\");\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n inputProps={{ style: { textAlign: \"right\" } }}\r\n endAdornment={\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n disabled={!props.isEditable}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]:\r\n props.errors[\"minMicrocreditValue\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"minMicrocreditValue\"] !== undefined && (\r\n \r\n {props.errors[\"minMicrocreditValue\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Valor máximo Microcrédito\r\n {\r\n if (value === \"0\" || value === \"0,00\" || value === \"0,0\")\r\n return \"O valor máximo do microcrédito tem de ser maior que 0.\";\r\n return true;\r\n },\r\n isGreaterThanMinValue: (value) => {\r\n if (!props.getValues(\"minMicrocreditValue\")) return true;\r\n return (\r\n (value &&\r\n parseInt(value) >\r\n parseInt(props.getValues(\"minMicrocreditValue\"))) ||\r\n \"O valor máximo do microcrédito deve ser maior que o valor mínimo\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name } }) => (\r\n {\r\n props.onMaxValChange(e.target.value, onChange);\r\n props.trigger(\"minMicrocreditValue\");\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n inputProps={{ style: { textAlign: \"right\" } }}\r\n endAdornment={\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n disabled={!props.isEditable}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]:\r\n props.errors[\"maxMicrocreditValue\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"maxMicrocreditValue\"] !== undefined && (\r\n \r\n {props.errors[\"maxMicrocreditValue\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Taxa de Juro\r\n (\r\n {\r\n onInterestRateChange(e.target.value, onChange);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n inputProps={{ style: { textAlign: \"right\" } }}\r\n disabled={!props.isEditable}\r\n endAdornment={\r\n \r\n {UNITS.INTEREST}\r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]:\r\n props.errors[\"interestRate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"interestRate\"] !== undefined && (\r\n \r\n {props.errors[\"interestRate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Período de carência\r\n {\r\n return (\r\n value >= 0 ||\r\n intl.formatMessage(\r\n messages.Message_Generic_ValueGreaterThanZeroField\r\n )\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n {UNITS.MONTHS}\r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]:\r\n props.errors[\"gracePeriod\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"gracePeriod\"] !== undefined && (\r\n \r\n {props.errors[\"gracePeriod\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Período de reembolso\r\n {\r\n return (\r\n value >= 0 ||\r\n intl.formatMessage(\r\n messages.Message_Generic_ValueGreaterThanZeroField\r\n )\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n {UNITS.MONTHS}\r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]:\r\n props.errors[\"repaymentPeriod\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"repaymentPeriod\"] !== undefined && (\r\n \r\n {props.errors[\"repaymentPeriod\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default MicrocreditFields;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\n//import custom components\r\nimport ProfessionalKitFields from \"./ProfessionalKitFields\";\r\nimport MicrocreditFields from \"./MicrocreditFields\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { labels, titles, messages } from \"resources/resources\";\r\nimport { DATASET, BENEFIT, SUBPROGRAM_STATES } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction BenefitsSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [benefitType, setBenefitType] = useState(0);\r\n const { control } = useFormContext();\r\n const [formattedMinValue, setFormattedMinValue] = useState();\r\n const [formattedMaxValue, setFormattedMaxValue] = useState();\r\n\r\n const onMinValChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n\r\n if (value && value.charAt(value.length - 1) === \",\") setFormattedMinValue(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\") setFormattedMinValue(intl.formatNumber(value));\r\n else setFormattedMinValue(value);\r\n } else {\r\n setFormattedMinValue(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n\r\n const onMaxValChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n\r\n if (value && value.charAt(value.length - 1) === \",\") setFormattedMaxValue(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\") setFormattedMaxValue(intl.formatNumber(value));\r\n else setFormattedMaxValue(value);\r\n } else {\r\n setFormattedMaxValue(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.BENEFITS] === undefined || props.dataSetState[DATASET.BENEFITS]?.length === 0) {\r\n props.getDataSet(DATASET.BENEFITS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.subprogramDetailsData !== undefined) {\r\n if (props.loadData) {\r\n let benefitItem =\r\n props.dataSetState[DATASET.BENEFITS] !== undefined\r\n ? props.dataSetState[DATASET.BENEFITS].find((r) => r.code === props.subprogramDetailsData.benefitTypeId)\r\n : [];\r\n\r\n props.setValue(\"benefitType\", benefitItem);\r\n\r\n if (benefitItem?.keyValue === \"ProfessionalKit\") {\r\n let categoryItems =\r\n props.dataSetState[DATASET.CATEGORIES] !== undefined\r\n ? props.dataSetState[DATASET.CATEGORIES].filter((r) =>\r\n props.subprogramDetailsData.categoryList.includes(r.code)\r\n )\r\n : [];\r\n props.setValue(\"categoryList\", categoryItems);\r\n props.setValue(\"numMaxKits\", props.subprogramDetailsData.numMaxKits);\r\n }\r\n\r\n if (benefitItem?.keyValue === \"Microcredit\") {\r\n props.setValue(\"minMicrocreditValue\", props.subprogramDetailsData.minMicrocreditValue);\r\n props.setValue(\"maxMicrocreditValue\", props.subprogramDetailsData.maxMicrocreditValue);\r\n props.setValue(\"interestRate\", props.subprogramDetailsData.interestRate);\r\n props.setValue(\"gracePeriod\", props.subprogramDetailsData.gracePeriod);\r\n props.setValue(\"repaymentPeriod\", props.subprogramDetailsData.repaymentPeriod);\r\n\r\n setFormattedMinValue(intl.formatNumber(props.subprogramDetailsData?.minMicrocreditValue));\r\n setFormattedMaxValue(intl.formatNumber(props.subprogramDetailsData?.maxMicrocreditValue));\r\n }\r\n\r\n onSetBenefit(benefitItem);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.subprogramDetailsData]);\r\n\r\n const handleEditSection = () => {\r\n props.handleEditSection();\r\n };\r\n\r\n function loadSelectedBenefitFields(benefitKeyValue) {\r\n switch (benefitKeyValue) {\r\n case BENEFIT.PROFESSIONAL_KIT:\r\n return (\r\n \r\n );\r\n case BENEFIT.MICROCREDIT:\r\n return (\r\n \r\n );\r\n case BENEFIT.PROFESSIONAL_KIT_MICROCREDIT:\r\n return (\r\n <>\r\n \r\n \r\n \r\n );\r\n default:\r\n return <>;\r\n }\r\n }\r\n\r\n const unregisterProfessionalKitFields = () => {\r\n props.unregister(\"categoryList\");\r\n props.unregister(\"numMaxKits\");\r\n };\r\n\r\n const unregisterMicrocreditFields = () => {\r\n props.unregister(\"minMicrocreditValue\");\r\n props.unregister(\"maxMicrocreditValue\");\r\n props.unregister(\"interestRate\");\r\n props.unregister(\"gracePeriod\");\r\n props.unregister(\"repaymentPeriod\");\r\n setFormattedMinValue(\"\");\r\n setFormattedMaxValue(\"\");\r\n };\r\n\r\n const onSetBenefit = (data) => {\r\n if (data !== undefined && data !== null) {\r\n setBenefitType(data.keyValue);\r\n } else {\r\n setBenefitType(0);\r\n }\r\n };\r\n\r\n const onChangeBenefitType = (data) => {\r\n unregisterProfessionalKitFields();\r\n unregisterMicrocreditFields();\r\n\r\n onSetBenefit(data);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_BenefitsTypeField)}\r\n (\r\n option?.label ?? \"\"}\r\n getOptionSelected={(option, value) => option.code === value.code}\r\n disabled={!props.isEditable}\r\n classes={{\r\n inputRoot: clsx({\r\n [classes.selectBorderWarningInputRoot]:\r\n props.errors !== undefined && props.errors[name] !== undefined,\r\n }),\r\n }}\r\n ListboxProps={{\r\n style: {\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n },\r\n }}\r\n renderInput={(params) => (\r\n \r\n )}\r\n onChange={(_, data) => {\r\n onChange(data);\r\n\r\n onChangeBenefitType(data);\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"benefitType\"] !== undefined && (\r\n \r\n {props.errors[\"benefitType\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n\r\n {loadSelectedBenefitFields(benefitType)}\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(BenefitsSection);\r\n","import { useEffect } from \"react\";\r\n\r\nconst isNullOrUndefined = (object) => {\r\n return object === null || object === undefined;\r\n};\r\n\r\nexport const fetchComponentDatasets = (action, state, datasetsToFetch) => {\r\n if (!isNullOrUndefined(datasetsToFetch !== null)) {\r\n datasetsToFetch.forEach((dataset) => {\r\n if (isNullOrUndefined(state) || isNullOrUndefined(state[dataset])) action(dataset.name, dataset.addEmptyField);\r\n });\r\n }\r\n};\r\nexport const FetchDatasetsOnMount = (\r\n datasetsAction,\r\n geographicdataAction,\r\n nationalitiesAction,\r\n state,\r\n datasetsToFetch\r\n) => {\r\n useEffect(() => {\r\n if (datasetsAction !== undefined) fetchComponentDatasets(datasetsAction, state, datasetsToFetch);\r\n if (geographicdataAction !== undefined) fetchComponentDatasets(geographicdataAction, state, [{ name: \"Province\" }]);\r\n if (nationalitiesAction !== undefined)\r\n fetchComponentDatasets(nationalitiesAction, state, [{ name: \"Nationality\" }]);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n};\r\n\r\nexport const getDatasetStateByName = (props, name) => {\r\n if (!isNullOrUndefined(props.dataSetState) && !isNullOrUndefined(props.dataSetState[name]))\r\n return props.dataSetState[name];\r\n else return [];\r\n};\r\n\r\nexport const getDatasetStateById = (props, id) => {\r\n if (!isNullOrUndefined(props.dataSetState) && !isNullOrUndefined(props.dataSetState[id]))\r\n return props.dataSetState[id];\r\n else return [];\r\n};\r\n\r\nexport const getDatasetDataByCode = (dataset, code) => {\r\n if (code && dataset) {\r\n const result = dataset?.find((r) => r.code === code);\r\n\r\n return result;\r\n }\r\n\r\n return null;\r\n};\r\n","import { React, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\n// @material-ui/icons components\r\nimport DeleteIcon from \"@material-ui/icons/Delete\";\r\n//import custom components\r\nimport componentStyles from \"assets/theme/views/admin/elements.js\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction ConditionSection(props) {\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.CONDITION_TYPES] === undefined ||\r\n props.dataSetState[DATASET.CONDITION_TYPES]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.CONDITION_TYPES);\r\n }\r\n\r\n props.setValue(\r\n `${props.keyValue}_conditionType`,\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.CONDITION_TYPES] !== undefined ? props.dataSetState[DATASET.CONDITION_TYPES] : [],\r\n props.conditionInfo.conditionType !== undefined ? props.conditionInfo.conditionType.code : null\r\n )\r\n );\r\n\r\n props.setValue(\r\n `${props.keyValue}_conditionalQuestionId`,\r\n getSelectOptionsElementByCode(\r\n props.complementaryDataInfoForConditions !== null &&\r\n props.complementaryDataInfoForConditions !== undefined &&\r\n props.complementaryDataInfoForConditions.some((item) => item.itemText !== null)\r\n ? props.complementaryDataInfoForConditions.map((items) => {\r\n if (items.itemText) {\r\n return { code: items.itemKey, label: items.itemText };\r\n }\r\n\r\n return null;\r\n })\r\n : [],\r\n props.conditionInfo.conditionType !== undefined ? props.conditionInfo.conditionalQuestionId.code : null\r\n )\r\n );\r\n\r\n props.setValue(\r\n `${props.keyValue}_conditionalValue`,\r\n getSelectOptionsElementByCode(\r\n getDatasetStateByName(props, props.conditionInfo.selectedDatasetKey),\r\n props.conditionInfo.conditionType !== undefined ? props.conditionInfo.conditionalValue.code : \"\"\r\n )\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n props.complementaryDataInfoForConditions?.forEach((complementaryDataItem) => {\r\n if (\r\n props.dataSetState[complementaryDataItem.itemDatasetKey] === undefined ||\r\n props.dataSetState[complementaryDataItem.itemDatasetKey]?.length === 0\r\n ) {\r\n props.getDataSet(complementaryDataItem.itemDatasetKey);\r\n }\r\n });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.complementaryDataInfoForConditions]);\r\n\r\n const handleConditionalQuestionIdChangeEvent = (data) => {\r\n if (data !== undefined) {\r\n props.handleConditionalQuestionIdChangeEvent(\r\n props.conditionInfo?.key,\r\n props.complementaryDataInfoForConditions?.find((r) => r.itemKey === data.code).itemDatasetKey,\r\n data.code\r\n );\r\n }\r\n };\r\n\r\n const handleGetConditionalDataChangeEvent = (data) => {\r\n if (data !== undefined) {\r\n props.handleGetConditionalDataChangeEvent(\r\n props.conditionInfo?.key,\r\n props.getValues(`${props.keyValue}_conditionType`),\r\n props.getValues(`${props.keyValue}_conditionalQuestionId`),\r\n props.getValues(`${props.keyValue}_conditionalValue`)\r\n );\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Condição\r\n \r\n {`${props.keyValue}_conditionType` !== undefined && (\r\n \r\n {props.errors[`${props.keyValue}_conditionType`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Questão seleccionada\r\n item.itemText !== null)\r\n ? props.complementaryDataInfoForConditions.map((items) => {\r\n if (items.itemText) {\r\n return { code: items.itemKey, label: items.itemText };\r\n }\r\n\r\n return null;\r\n })\r\n : []\r\n }\r\n getValues={props.getValues}\r\n required={true}\r\n errors={props.errors}\r\n classes={classes}\r\n onOptionChange={(data) => {\r\n handleConditionalQuestionIdChangeEvent(data);\r\n handleGetConditionalDataChangeEvent(data);\r\n }}\r\n />\r\n {`${props.keyValue}_conditionalQuestionId` !== undefined && (\r\n \r\n {props.errors[`${props.keyValue}_conditionalQuestionId`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Valor\r\n \r\n {`${props.keyValue}_conditionalValue` !== undefined && (\r\n \r\n {props.errors[`${props.keyValue}_conditionalValue`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n {\r\n props.unregister(`${props.keyValue}_conditionType]`);\r\n props.unregister(`${props.keyValue}_conditionalQuestionId]`);\r\n props.unregister(`${props.keyValue}_conditionalValue`);\r\n props.removeConditionFromListEvent(props.conditionInfo.key);\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ConditionSection);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { v4 as uuidv4 } from \"uuid\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport Autocomplete from \"@material-ui/lab/Autocomplete\";\r\n//import icons\r\nimport FormatListBulletedIcon from \"@material-ui/icons/FormatListBulleted\";\r\nimport FormatAlignLeftIcon from \"@material-ui/icons/FormatAlignLeft\";\r\n//import custom components\r\nimport ConditionSection from \"./ConditionSection\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getDataSetByNameAction, getPredefinedQuestionsAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET, COMPLEMENTARY_DATA_TYPE } from \"utils/consts\";\r\nimport { getSelectOptionsElementByKey } from \"utils/formSelect\";\r\nimport { messages, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ComplementaryDataItem(props) {\r\n const classes = useStylesGeneric();\r\n\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n const [conditionsList, setConditionsList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.DATASET_TYPES] === undefined ||\r\n props.dataSetState[DATASET.DATASET_TYPES]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.DATASET_TYPES);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.PREDEFINED_QUESTIONS] === undefined ||\r\n props.dataSetState[DATASET.PREDEFINED_QUESTIONS]?.length === 0\r\n ) {\r\n props.getPredefinedQuestions(DATASET.PREDEFINED_QUESTIONS);\r\n }\r\n\r\n props.setValue(\r\n `${props.keyValue}_question`,\r\n props.questionInfo[0]?.itemText !== undefined ? props.questionInfo[0]?.itemText : \"\"\r\n );\r\n props.setValue(\r\n `${props.keyValue}_isRequired`,\r\n props.questionInfo[0]?.itemIsRequired !== undefined ? props.questionInfo[0]?.itemIsRequired : false\r\n );\r\n\r\n props.setValue(\r\n `${props.keyValue}_answer`,\r\n getSelectOptionsElementByKey(\r\n props.dataSetState[DATASET.DATASET_TYPES] ? props.dataSetState[DATASET.DATASET_TYPES] : [],\r\n props.questionInfo[0] !== undefined ? props.questionInfo[0]?.itemDatasetKey : null\r\n )\r\n );\r\n\r\n setConditionsList(props.questionInfo[0] !== undefined ? props.questionInfo[0]?.conditionsList : []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n function loadCardContent(aux_complementaryDataType) {\r\n switch (aux_complementaryDataType) {\r\n case COMPLEMENTARY_DATA_TYPE.DEFAULT_QUESTIONS:\r\n return (\r\n <>\r\n \r\n \r\n \r\n Questão Pré-definida\r\n \r\n \r\n \r\n \r\n \r\n );\r\n case COMPLEMENTARY_DATA_TYPE.DATASET:\r\n return (\r\n <>\r\n \r\n \r\n \r\n Texto\r\n (\r\n {\r\n if (event.target.value !== undefined && event.target.value !== \"\") {\r\n props.updateComplementaryDataDropdownListEvent(props.keyValue, event.target.value, null);\r\n }\r\n }}\r\n fullWidth\r\n multiline\r\n rows=\"3\"\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[`${props.keyValue}_question`] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[`${props.keyValue}_question`] !== undefined && (\r\n \r\n {props.errors[`${props.keyValue}_question`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n \r\n }\r\n label={Obrigatório}\r\n />\r\n )}\r\n />\r\n {props.errors[`${props.keyValue}_isRequired`] !== undefined && (\r\n \r\n {props.errors[`${props.keyValue}_isRequired`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Opções\r\n (\r\n option.label}\r\n getOptionSelected={(option, value) => option.code === value.code}\r\n classes={{\r\n inputRoot: clsx({\r\n [classes.selectBorderWarningInputRoot]:\r\n props.errors !== undefined && props.errors[`${props.keyValue}_question`] !== undefined,\r\n }),\r\n }}\r\n ListboxProps={{\r\n style: {\r\n fontWeight: \"normal\",\r\n fontSize: \"14px\",\r\n },\r\n }}\r\n renderInput={(params) => (\r\n \r\n )}\r\n onChange={(_, data) => {\r\n onChange(data);\r\n if (data !== null) {\r\n props.updateComplementaryDataDropdownListEvent(props.keyValue, null, data.code);\r\n }\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[`${props.keyValue}_answer`] !== undefined && (\r\n \r\n {props.errors[`${props.keyValue}_answer`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n case COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT:\r\n return (\r\n <>\r\n \r\n \r\n \r\n Texto\r\n (\r\n {\r\n if (event.target.value !== undefined && event.target.value !== \"\") {\r\n props.updateComplementaryDataDropdownListEvent(props.keyValue, event.target.value, null);\r\n }\r\n }}\r\n fullWidth\r\n multiline\r\n rows=\"3\"\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[`${props.keyValue}_question`] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors?.[`${props.keyValue}_question`]?.message !== undefined && (\r\n \r\n {props.errors?.[`${props.keyValue}_question`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n (\r\n \r\n }\r\n label={Obrigatório}\r\n />\r\n )}\r\n />\r\n {props.errors?.[`${props.keyValue}_isRequired`]?.message !== undefined && (\r\n \r\n {props.errors?.[`${props.keyValue}_isRequired`]?.message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n function loadCardTitle(aux_complementaryDataType) {\r\n switch (aux_complementaryDataType) {\r\n case COMPLEMENTARY_DATA_TYPE.DEFAULT_QUESTIONS:\r\n return \"Pergunta pré-definida\";\r\n case COMPLEMENTARY_DATA_TYPE.DATASET:\r\n return \"Pergunta de escolha múltipla\";\r\n case COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT:\r\n return \"Pergunta de texto livre\";\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n const getComplementaryDataItemData = () => {\r\n let aux = {\r\n keyValue: props.keyValue,\r\n text: props.getValues(`${props.keyValue}_question`),\r\n isRequired: props.getValues(`${props.keyValue}_isRequired`),\r\n answer: props.getValues(`${props.keyValue}_answer`),\r\n conditionsList: conditionsList,\r\n };\r\n\r\n return aux;\r\n };\r\n\r\n const addNewConditionToListEvent = () => {\r\n setConditionsList((prevState) => {\r\n let conditionNewUuid = uuidv4();\r\n\r\n const newElement = {\r\n key: conditionNewUuid,\r\n selectedDatasetKey: undefined,\r\n complementaryDataDependencyKey: undefined,\r\n conditionType: undefined,\r\n conditionalQuestionId: undefined,\r\n conditionalValue: undefined,\r\n };\r\n\r\n return [...prevState, newElement];\r\n });\r\n };\r\n\r\n const removeConditionFromListEvent = (conditionKey) => {\r\n setConditionsList((prevState) => {\r\n let elements = prevState.filter((condition) => condition.key !== conditionKey);\r\n return elements;\r\n });\r\n };\r\n\r\n const handleConditionalQuestionIdChangeEvent = (conditionKey, datasetKey, complementaryDataDependandKey) => {\r\n setConditionsList((prevState) => {\r\n let indexOfConditionItem = prevState.findIndex((cd) => cd.key === conditionKey);\r\n\r\n let condition = prevState[indexOfConditionItem];\r\n condition.selectedDatasetKey = datasetKey;\r\n condition.complementaryDataDependencyKey = complementaryDataDependandKey;\r\n\r\n prevState[indexOfConditionItem] = condition;\r\n\r\n return [...prevState];\r\n });\r\n };\r\n\r\n const handleGetConditionalDataChangeEvent = (\r\n conditionKey,\r\n conditionType,\r\n conditionalQuestionId,\r\n conditionalValue\r\n ) => {\r\n setConditionsList((prevState) => {\r\n let indexOfConditionItem = prevState.findIndex((cd) => cd.key === conditionKey);\r\n\r\n let condition = prevState[indexOfConditionItem];\r\n\r\n condition.conditionType = conditionType;\r\n condition.conditionalQuestionId = conditionalQuestionId;\r\n condition.conditionalValue = conditionalValue;\r\n\r\n prevState[indexOfConditionItem] = condition;\r\n\r\n return [...prevState];\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {props.complementaryDataType !== COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n }\r\n title={loadCardTitle(props.complementaryDataType)}\r\n >\r\n\r\n \r\n {loadCardContent(props.complementaryDataType)}\r\n\r\n {props.hasComplementaryDataWithDatasets && (\r\n <>\r\n \r\n \r\n \r\n \r\n addNewConditionToListEvent()}\r\n >\r\n Adicionar\r\n \r\n \r\n \r\n \r\n \r\n \r\n {conditionsList?.map((condition, index) => {\r\n return (\r\n
\r\n r.itemKey !== undefined && r.itemKey !== condition.conditionalQuestionId.code\r\n // )}\r\n unregister={props.unregister}\r\n setValue={props.setValue}\r\n handleConditionalQuestionIdChangeEvent={handleConditionalQuestionIdChangeEvent}\r\n handleGetConditionalDataChangeEvent={handleGetConditionalDataChangeEvent}\r\n />\r\n
\r\n );\r\n })}\r\n
\r\n
\r\n \r\n )}\r\n \r\n \r\n \r\n {\r\n props.resetComplementaryDataItemEvent();\r\n props.clearErrors();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n await props.trigger([`${props.keyValue}_question`, `${props.keyValue}_answer`]);\r\n\r\n if (\r\n !Object.keys(props.errors).includes(`${props.keyValue}_question`) &&\r\n !Object.keys(props.errors).includes(`${props.keyValue}_answer`)\r\n ) {\r\n props.saveComplementaryDataListEvent(props.complementaryDataType, getComplementaryDataItemData());\r\n props.resetComplementaryDataItemEvent();\r\n\r\n props.clearErrors();\r\n }\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Save)}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getPredefinedQuestions: (name) => dispatch(getPredefinedQuestionsAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ComplementaryDataItem);\r\n","import { React, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\n//import icons\r\nimport FormatAlignLeftIcon from \"@material-ui/icons/FormatAlignLeft\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\nimport PriorityHighIcon from \"@material-ui/icons/PriorityHigh\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ComplementaryDataCard(props) {\r\n const classes = useStylesGeneric();\r\n\r\n const [expanded, setExpanded] = useState(false);\r\n\r\n const handleExpandClick = () => {\r\n setExpanded(!expanded);\r\n };\r\n\r\n return (\r\n \r\n \r\n {props.index + 1}\r\n \r\n \r\n \r\n \r\n }\r\n title={\r\n \r\n {props.questionInfo?.itemTitle}\r\n {props.questionInfo?.itemIsRequired && (\r\n \r\n )}\r\n \r\n }\r\n action={\r\n \r\n \r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n {props.questionInfo.itemText}\r\n \r\n \r\n props.removeComplementaryDataListEvent(props.keyValue)}\r\n >\r\n Eliminar\r\n \r\n \r\n \r\n \r\n props.addComplementaryDataItemComponentEvent(props.complementaryDataType, props.keyValue)\r\n }\r\n >\r\n Ver mais\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\nexport default ComplementaryDataCard;\r\n","import { React, useState } from \"react\";\r\n// import { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\n//import icons\r\nimport FormatListBulletedIcon from \"@material-ui/icons/FormatListBulleted\";\r\nimport FormatAlignLeftIcon from \"@material-ui/icons/FormatAlignLeft\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ComplementaryDataItemReadOnly(props) {\r\n const classes = useStylesGeneric();\r\n // const intl = useIntl();\r\n const [expanded, setExpanded] = useState(false);\r\n\r\n const handleExpandClick = () => {\r\n setExpanded(!expanded);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {props.index + 1}\r\n \r\n {props.complemData.answerTypeId === 1 ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n }\r\n title={props.complemData.title}\r\n action={\r\n \r\n \r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n Texto\r\n \r\n \r\n \r\n \r\n }\r\n label={Obrigatório}\r\n />\r\n \r\n \r\n {props.complemData.answerTypeId === 1 && (\r\n \r\n Opção\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ComplementaryDataItemReadOnly);\r\n","import React, { useState } from \"react\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport { v4 as uuidv4 } from \"uuid\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\n// @material-ui/icons components\r\nimport AddIcon from \"@material-ui/icons/Add\";\r\n//import custom components\r\n\r\nimport ComplementaryDataItem from \"./ComplementaryDataItem\";\r\nimport ComplementaryDataCard from \"../Components/ComplementaryDataCard\";\r\nimport ComplementaryDataItemReadOnly from \"../Sections/ComplementaryDataItemReadOnly\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { COMPLEMENTARY_DATA_TYPE, SUBPROGRAM_STATES } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ComplementaryDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n const { control } = useFormContext();\r\n const [complementaryDataTypeState, setComplementaryDataTypeState] = useState({ typeId: 0, keyValue: null });\r\n const [complementaryDataItemUuid, setComplementaryDataItemUuid] = useState(uuidv4());\r\n\r\n // #region Axuliary functions\r\n const getQuestionTitle = (questionType) => {\r\n switch (questionType) {\r\n case COMPLEMENTARY_DATA_TYPE.DEFAULT_QUESTIONS:\r\n return \"Questão Pré-definida\";\r\n case COMPLEMENTARY_DATA_TYPE.DATASET:\r\n return \"Escolha múltipla\";\r\n case COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT:\r\n return \"Texto livre\";\r\n default:\r\n return \"\";\r\n }\r\n };\r\n // #endregion\r\n\r\n // #region ComplementaryData List Events\r\n const saveComplementaryDataListEvent = (questionType, questionInfo) => {\r\n let existingComplementaryDataItem = props.complementaryDataList.filter((r) => r.itemKey === questionInfo.keyValue);\r\n\r\n if (existingComplementaryDataItem.length > 0) {\r\n updateComplementaryDataListEvent(questionInfo, existingComplementaryDataItem);\r\n } else {\r\n addComplementaryDataListEvent(questionType, questionInfo);\r\n }\r\n };\r\n\r\n const addComplementaryDataListEvent = (questionType, questionInfo) => {\r\n props.setComplementaryDataList((prevState) => {\r\n let newElement = {\r\n itemKey: questionInfo.keyValue,\r\n itemType: questionType,\r\n itemTitle: getQuestionTitle(questionType),\r\n itemText: questionInfo?.text,\r\n itemIsRequired: questionInfo?.isRequired,\r\n itemPredefinedQuestion: questionInfo?.predefinedQuestion,\r\n itemDatasetEnumId: questionInfo?.answer?.code,\r\n itemDatasetKey: questionInfo?.answer?.keyValue,\r\n conditionsList: questionInfo?.conditionsList,\r\n };\r\n\r\n return [...prevState, newElement];\r\n });\r\n };\r\n\r\n const updateComplementaryDataListEvent = (questionInfo, existingComplementaryDataItem) => {\r\n props.setComplementaryDataList((prevState) => {\r\n existingComplementaryDataItem[0].itemText = questionInfo?.text;\r\n existingComplementaryDataItem[0].itemIsRequired = questionInfo?.isRequired;\r\n existingComplementaryDataItem[0].itemDatasetKey = questionInfo?.answer?.keyValue;\r\n existingComplementaryDataItem[0].conditionsList = questionInfo?.conditionsList;\r\n\r\n let indexOfComplementaryDataItem = prevState.findIndex(\r\n (cd) => cd.itemKey === existingComplementaryDataItem[0].itemKey\r\n );\r\n\r\n prevState[indexOfComplementaryDataItem] = existingComplementaryDataItem[0];\r\n\r\n prevState?.map((cd) => {\r\n let newFilteredCondlitionList = cd.conditionsList?.filter(\r\n (condition) => condition.complementaryDataDependencyKey !== existingComplementaryDataItem[0].itemKey\r\n );\r\n cd.conditionsList = newFilteredCondlitionList;\r\n return { ...cd };\r\n });\r\n\r\n return [...prevState];\r\n });\r\n };\r\n\r\n const removeComplementaryDataListEvent = (questionKey) => {\r\n props.setComplementaryDataList((prevState) => {\r\n let elements = prevState.filter((question) => question.itemKey !== questionKey);\r\n return elements;\r\n });\r\n\r\n resetComplementaryDataItemEvent();\r\n };\r\n\r\n function resetComplementaryDataItemEvent() {\r\n unregisterComplementaryDataFields();\r\n\r\n setComplementaryDataItemUuid(uuidv4());\r\n\r\n setComplementaryDataTypeState({\r\n typeId: 0,\r\n keyValue: null,\r\n });\r\n }\r\n // #endregion\r\n\r\n const updateComplementaryDataDropdownListEvent = (\r\n compDataKey,\r\n complementaryDataQuestion,\r\n complementaryDataDatasetEnumId\r\n ) => {\r\n props.setComplementaryDataList((prevState) => {\r\n let indexOfCompDataItem = prevState.findIndex((cd) => cd.itemKey === compDataKey);\r\n let item = { ...prevState[indexOfCompDataItem] };\r\n\r\n item.questionText = complementaryDataQuestion !== null ? complementaryDataQuestion : item.questionText;\r\n item.datasetEnumId =\r\n complementaryDataDatasetEnumId !== null ? complementaryDataDatasetEnumId : item.datasetEnumId;\r\n\r\n prevState[indexOfCompDataItem] = item;\r\n\r\n return [...prevState];\r\n });\r\n };\r\n\r\n function loadComplementaryDataItem(aux_complementaryDataType) {\r\n if (aux_complementaryDataType.typeId !== 0) {\r\n return (\r\n r.itemKey === aux_complementaryDataType.keyValue)}\r\n unregisterComplementaryDataFieldsEvent={unregisterComplementaryDataFields}\r\n hasComplementaryDataWithDatasets={\r\n props.complementaryDataList.filter(\r\n (r) => r.itemType === COMPLEMENTARY_DATA_TYPE.DATASET && r.itemKey !== aux_complementaryDataType.keyValue\r\n )?.length > 0\r\n }\r\n complementaryDataInfoForConditions={props.complementaryDataList.filter(\r\n (r) => r.itemType === COMPLEMENTARY_DATA_TYPE.DATASET\r\n )}\r\n updateComplementaryDataDropdownListEvent={updateComplementaryDataDropdownListEvent}\r\n trigger={props.trigger}\r\n clearErrors={props.clearErrors}\r\n />\r\n );\r\n }\r\n\r\n return <>;\r\n }\r\n\r\n const addComplementaryDataItemComponent = (type, keyValue) => {\r\n setComplementaryDataTypeState({\r\n typeId: type,\r\n keyValue: keyValue,\r\n });\r\n };\r\n\r\n const unregisterComplementaryDataFields = () => {\r\n props.unregister(`${props.keyValue}_question`);\r\n props.unregister(`${props.keyValue}_isRequired`);\r\n props.unregister(`${props.keyValue}_answer`);\r\n props.unregister(`${props.keyValue}_predefinedQuestion`);\r\n };\r\n\r\n const handleEditSection = () => {\r\n props.handleEditSection();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n />\r\n \r\n {props.isEditable ? (\r\n \r\n \r\n \r\n \r\n \r\n {/* Tipo de Dados\r\n \r\n
*/}\r\n {/* \r\n
*/}\r\n {\r\n addComplementaryDataItemComponent(\r\n COMPLEMENTARY_DATA_TYPE.PLAIN_TEXT,\r\n complementaryDataItemUuid\r\n );\r\n }}\r\n >\r\n \r\n Texto Livre\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Dados Adicionados\r\n {props.complementaryDataList?.map((question, index) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n Dados seleccionados / a apresentar\r\n {loadComplementaryDataItem(complementaryDataTypeState)}\r\n \r\n \r\n
\r\n ) : (\r\n \r\n \r\n {props.subprogramDetailsData?.complementaryData?.map((complemData, key) => {\r\n return ;\r\n })}\r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport default ComplementaryDataSection;\r\n","import React, { useEffect } from \"react\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n//import custom components\r\n\r\nimport FormMultipleSelect from \"../../../../components/FormFields/FormMultipleSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n\r\nimport { getDocumentsAction } from \"redux/actions/datasetsAction\";\r\nimport { getMultipleSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { DATASET, SUBPROGRAM_STATES } from \"utils/consts\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction DocumentsSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.DOCUMENTS] === undefined || props.dataSetState[DATASET.DOCUMENTS]?.length === 0) {\r\n props.getDocuments(DATASET.DOCUMENTS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.subprogramDetailsData !== undefined) {\r\n if (props.loadData) {\r\n const documentsList = props.dataSetState[DATASET.DOCUMENTS] ? props.dataSetState[DATASET.DOCUMENTS] : [];\r\n\r\n const subProgramDocuments =\r\n props.subprogramDetailsData.documents?.map((d) => {\r\n return d.documentTypeId;\r\n }) ?? [];\r\n\r\n props.setValue(\"documentsList\", getMultipleSelectOptionsElementByCode(documentsList, subProgramDocuments));\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.subprogramDetailsData]);\r\n\r\n const handleEditSection = () => {\r\n props.handleEditSection();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n Descrição do documento (opcional)\r\n \r\n {props.errors[\"documentsList\"] !== undefined && (\r\n \r\n {props.errors[\"documentsList\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDocuments: (name) => dispatch(getDocumentsAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(DocumentsSection);\r\n","import React, { useEffect } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n// @material-ui/icons components\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { getProgramsAction, getDepartmentsAction, getGovernmentProgramsAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET, REGEX_PATTERNS } from \"utils/consts\";\r\nimport { labels, titles, messages, errorMessages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS] === undefined ||\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS]?.length === 0\r\n ) {\r\n props.getGovernmentPrograms();\r\n }\r\n if (\r\n props.dataSetState[DATASET.DEPARTMENTS] === undefined ||\r\n props.dataSetState[DATASET.DEPARTMENTS]?.length === 0\r\n ) {\r\n props.getDepartments(DATASET.DEPARTMENTS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.subprogramDetailsData !== undefined && props.subprogramDetailsData.subprogramName) {\r\n handleLoadSubprogramDetailsData(props.subprogramDetailsData);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.subprogramDetailsData]);\r\n\r\n const handleEditSection = () => {\r\n props.handleEditSection();\r\n };\r\n\r\n const handleLoadSubprogramDetailsData = (subprogramDetailsData) => {\r\n if (props.loadData) {\r\n props.setValue(\r\n \"governmentProgramId\",\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS] !== undefined\r\n ? props.dataSetState[DATASET.GOVERNMENT_PROGRAMS].find(\r\n (r) => r.code === subprogramDetailsData.governmentProgramId\r\n )\r\n : []\r\n );\r\n\r\n props.setValue(\r\n \"programId\",\r\n props.dataSetState[DATASET.PROGRAMS] !== undefined\r\n ? props.dataSetState[DATASET.PROGRAMS].find((r) => r.code === subprogramDetailsData.programId)\r\n : []\r\n );\r\n\r\n props.setValue(\"subprogramName\", subprogramDetailsData.subprogramName);\r\n\r\n props.setValue(\"subprogramValidFrom\", moment(subprogramDetailsData.validFrom, \"DD/MM/YYYY\"));\r\n\r\n props.setValue(\"subprogramValidTo\", moment(subprogramDetailsData.validTo, \"DD/MM/YYYY\"));\r\n\r\n props.setValue(\"subprogramDescription\", subprogramDetailsData.description);\r\n\r\n props.setValue(\"subprogramObjectives\", subprogramDetailsData.objectives);\r\n\r\n props.setValue(\"numVacancies\", subprogramDetailsData.numVacancies);\r\n\r\n props.setValue(\r\n \"departmentId\",\r\n props.dataSetState[DATASET.DEPARTMENTS] !== undefined\r\n ? props.dataSetState[DATASET.DEPARTMENTS].find((r) => r.code === subprogramDetailsData.departmentId)\r\n : []\r\n );\r\n }\r\n };\r\n\r\n const handleInputValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_GovernmentProgramField)}\r\n \r\n props.getPrograms(DATASET.PROGRAMS, props.getValues(\"governmentProgramId\").code)\r\n }\r\n childrenDataSet={DATASET.PROGRAMS}\r\n childrenSelect=\"programId\"\r\n setValue={props.setValue}\r\n getValues={props.getValues}\r\n required={true}\r\n requiredMessage={\"O campo é obrigatório\"}\r\n errors={props.errors}\r\n classes={classes}\r\n />\r\n {props.errors[\"governmentProgramId\"] !== undefined && (\r\n \r\n {props.errors[\"governmentProgramId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_ProgramField)}\r\n \r\n {props.errors[\"programId\"] !== undefined && (\r\n \r\n {props.errors[\"programId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_SubprogramField)}\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"subprogramName\"] !== undefined && (\r\n \r\n {props.errors[\"subprogramName\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_ValidityDateFieldStart)}\r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n isLessThanEndDate: (value) => {\r\n if (!props.getValues(\"subprogramValidTo\") || props.errors[\"subprogramValidTo\"] !== undefined)\r\n return true;\r\n return (\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n props.getValues(\"subprogramValidTo\")._isAMomentObject &&\r\n value.startOf(\"day\") < props.getValues(\"subprogramValidTo\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"subprogramValidTo\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !props.isEditable,\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"subprogramValidFrom\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {props.errors[\"subprogramValidFrom\"] !== undefined && (\r\n \r\n {props.errors[\"subprogramValidFrom\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_ValidityDateFieldEnd)}\r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n value >= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateGreaterThanTodayField)\r\n );\r\n },\r\n isGreaterThanStartDate: (value) => {\r\n if (\r\n !props.getValues(\"subprogramValidFrom\") ||\r\n props.errors[\"subprogramValidFrom\"] !== undefined\r\n )\r\n return true;\r\n return (\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n props.getValues(\"subprogramValidFrom\") &&\r\n value.startOf(\"day\") > props.getValues(\"subprogramValidFrom\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"subprogramValidFrom\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return currentDate >= moment().startOf(\"day\");\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !props.isEditable,\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"subprogramValidTo\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {props.errors[\"subprogramValidTo\"] !== undefined && (\r\n \r\n {props.errors[\"subprogramValidTo\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_NumVacanciesField)}\r\n {\r\n return value > 0 || intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n {props.errors[\"numVacancies\"] !== undefined && (\r\n \r\n {props.errors[\"numVacancies\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_DepartmentField)}\r\n \r\n {props.errors[\"departmentId\"] !== undefined && (\r\n \r\n {props.errors[\"departmentId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_DescriptionField)}\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"subprogramDescription\"] !== undefined && (\r\n \r\n {props.errors[\"subprogramDescription\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_ObjectivesField)}\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"subprogramObjectives\"] !== undefined && (\r\n \r\n {props.errors[\"subprogramObjectives\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getPrograms: (name, governmentProgramId) => dispatch(getProgramsAction(name, governmentProgramId)),\r\n getDepartments: (name) => dispatch(getDepartmentsAction(name)),\r\n getGovernmentPrograms: () => dispatch(getGovernmentProgramsAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralDataSection);\r\n","import React, { useState } from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n//import custom components\r\nimport Benefits from \"./Sections/BenefitsSection\";\r\nimport ComplementaryData from \"./Sections/ComplementaryDataSection\";\r\nimport Documents from \"./Sections/DocumentsSection\";\r\nimport GeneralData from \"./Sections/GeneralDataSection\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\n\r\nimport { subprogramCreationMap } from \"mappers/subprogramsMap\";\r\nimport { createSubprogramAction } from \"redux/actions/subprogramsAction\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Create(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const scrollDirection = useScrollDirection();\r\n const methods = useForm({ mode: \"onChange\", reValidateMode: \"onChange\" });\r\n const [complementaryDataList, setComplementaryDataList] = useState([]);\r\n\r\n const handleCancelOnClickEvent = () => {\r\n history.goBack();\r\n };\r\n\r\n const onSubmit = (data) => {\r\n props.createSubprogram(subprogramCreationMap(data, complementaryDataList));\r\n };\r\n\r\n return (\r\n <>\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n createSubprogram: (subprogramData) =>\r\n dispatch(createSubprogramAction(subprogramData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Create);\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport GeneralData from \"../Sections/GeneralDataSection\";\r\nimport Benefits from \"../Sections/BenefitsSection\";\r\nimport Documents from \"../Sections/DocumentsSection\";\r\nimport ComplementaryData from \"../Sections/ComplementaryDataSection\";\r\nimport { subprogramUpdateMap } from \"mappers/subprogramsMap\";\r\nimport {\r\n updateSubprogramAction,\r\n updateSubprogramStateAction,\r\n} from \"redux/actions/subprogramsAction\";\r\nimport { SUBPROGRAM_STATES } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nfunction GeneralDataTab(props) {\r\n const [complementaryDataList, setComplementaryDataList] = useState([]);\r\n const [isEditableGeneralData, setisEditableGeneralData] = useState(false);\r\n const [isEditableBenefits, setisEditableBenefits] = useState(false);\r\n const [isEditableDocuments, setisEditableDocuments] = useState(false);\r\n const [isEditableComplementaryData, setisEditableComplementaryData] =\r\n useState(false);\r\n\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const methods = useForm({ mode: \"onChange\", reValidateMode: \"onChange\" });\r\n\r\n const onSubmit = (data) => {\r\n data[\"subprogramId\"] = props.subprogramNumber;\r\n\r\n props.updateSubprogram(subprogramUpdateMap(data, complementaryDataList));\r\n\r\n setisEditableGeneralData(false);\r\n setisEditableBenefits(false);\r\n setisEditableDocuments(false);\r\n setisEditableComplementaryData(false);\r\n };\r\n\r\n const handleAproveSubprogramClick = () => {\r\n let auxData = {\r\n subprogramId: props.subprogramNumber,\r\n subprogramStateKeyValue: 2,\r\n };\r\n props.updateSubprogramState(auxData);\r\n };\r\n useEffect(() => {\r\n if (props.subprogramDetailsData !== undefined) {\r\n setComplementaryDataList(\r\n props.subprogramDetailsData.complementaryData?.map((c) => {\r\n return {\r\n itemKey: c.questionKey,\r\n itemType: c.answerTypeId,\r\n itemTitle: c.title,\r\n itemText: c.question,\r\n itemIsRequired: c.isRequired,\r\n };\r\n })\r\n );\r\n }\r\n }, [props.subprogramDetailsData]);\r\n\r\n const handleEditGeneralDataSection = () => {\r\n setisEditableGeneralData(true);\r\n };\r\n const handleEditBenefitsSection = () => {\r\n setisEditableBenefits(true);\r\n };\r\n const handleEditDocumentsSection = () => {\r\n setisEditableDocuments(true);\r\n };\r\n const handleEditComplementaryDataSection = () => {\r\n setisEditableComplementaryData(true);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n history.push(\"/admin/subprograms-management\");\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n {props.subprogramDetailsData?.stateKey !==\r\n SUBPROGRAM_STATES.CRIADO ||\r\n isEditableGeneralData ||\r\n isEditableBenefits ||\r\n isEditableDocuments ||\r\n isEditableComplementaryData ? (\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Save)}\r\n \r\n \r\n ) : (\r\n props.subprogramDetailsData?.stateKey ===\r\n SUBPROGRAM_STATES.CRIADO && (\r\n \r\n \r\n {intl.formatMessage(labels.Label_Approve_Submit)}\r\n \r\n \r\n )\r\n )}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateSubprogram: (subprogramData) =>\r\n dispatch(updateSubprogramAction(subprogramData)),\r\n updateSubprogramState: (data) => dispatch(updateSubprogramStateAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralDataTab);\r\n","import React from \"react\";\r\nimport moment from \"moment\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getProfessionalKitDeliveryDocumentAction } from \"redux/actions/stockAction\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Utilizador\", \"Data de Entrega\", \"Termo Assinado\"];\r\n\r\nfunction GeneralDataTab(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n\r\n {props.subprogramDetailsData.deliveredProfessionalKits !== undefined &&\r\n props.subprogramDetailsData.deliveredProfessionalKits?.length > 0 ? (\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n\r\n \r\n {props.subprogramDetailsData.deliveredProfessionalKits.map((delivProfKit, key) => (\r\n \r\n {delivProfKit.nameOfUser}\r\n \r\n {moment(delivProfKit.deliveryDate).format(\"DD/MM/YYYY\")}\r\n \r\n \r\n {\r\n props.getProfessionalKitDeliveryDocument(delivProfKit.id, delivProfKit.deliveryDocument);\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Download)}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n ) : (\r\n Não existem kits atribuídos.\r\n )}\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getProfessionalKitDeliveryDocument: (docId, docName) =>\r\n dispatch(getProfessionalKitDeliveryDocumentAction(docId, docName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralDataTab);\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport DetailDataTab from \"./Tabs/DetailDataTab\";\r\nimport AssignedKitsTab from \"./Tabs/AssignedKitsTab\";\r\nimport { getSubprogramDetailsActions } from \"redux/actions/subprogramsAction\";\r\nimport { BENEFIT } from \"utils/consts\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport Tabs from \"components/Tabs/Tabs\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction SubprogramDetails(props) {\r\n const classes = useStylesGeneric();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const TABS = {\r\n DETAILS_DATA: \"detailDataTab\",\r\n ASSIGNED_KITS: \"assignedKitsTab\",\r\n };\r\n\r\n const [tabStep, setTabStep] = useState(\"\");\r\n const [subprogramNumber, setSubprogramNumber] = useState();\r\n const [subprogramName, setSubprogramName] = useState();\r\n\r\n useEffect(() => {\r\n if (\r\n props.applicationsState?.subprogramDetailsData === undefined ||\r\n props.applicationsState?.subprogramDetailsData?.subprogramNumber !== props.match?.params?.subprogramNumber\r\n ) {\r\n props.getSubprogramDetails(props.match?.params?.subprogramNumber);\r\n }\r\n\r\n setSubprogramNumber(props.match?.params?.subprogramNumber);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match?.params?.subprogramNumber]);\r\n\r\n useEffect(() => {\r\n if (props.subprogramState?.subprogramDetailsData !== undefined) {\r\n setTabStep(TABS.DETAILS_DATA);\r\n setSubprogramName(props.subprogramState?.subprogramDetailsData?.subprogramName);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.subprogramState?.subprogramDetailsData]);\r\n\r\n useEffect(() => {\r\n if (props.subprogramState?.refresh_results) {\r\n props.getSubprogramDetails(props.match?.params?.subprogramNumber);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.subprogramState?.refresh_results]);\r\n\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n };\r\n\r\n function loadTabContent() {\r\n switch (tabStep) {\r\n case TABS.DETAILS_DATA:\r\n return (\r\n \r\n );\r\n case TABS.ASSIGNED_KITS:\r\n return ;\r\n default:\r\n return <>;\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getSubprogramDetails: (subprogramNumber) => dispatch(getSubprogramDetailsActions(subprogramNumber)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(SubprogramDetails);\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport ErrorIcon from \"@material-ui/icons/Error\";\r\n//import custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getCategoriesAction } from \"redux/actions/datasetsAction\";\r\nimport { updateProfessionalKitStateAction } from \"redux/actions/stockAction\";\r\nimport { showGenericTwoButtonDialogAction } from \"redux/actions/dialogsAction\";\r\nimport { messages, labels } from \"resources/resources\";\r\nimport { DATASET, REGEX_PATTERNS, UNITS, MONETARYUNITPLACEHOLDER } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralDataSection(props) {\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const { control } = useFormContext();\r\n\r\n const updateKitStatus = () => {\r\n if (props.getValues(\"active\")) {\r\n props.showDialog(\r\n \"Pretende continuar?\",\r\n \"A activação deste kit profissional irá inactivar a caracterização activa para esta especialidade.\",\r\n function () {\r\n props.setIsActive(props.getValues(\"active\"));\r\n return props.updateProfessionalKitState(props.professionalKitId);\r\n }\r\n );\r\n } else {\r\n props.setIsActive(props.getValues(\"active\"));\r\n return props.updateProfessionalKitState(props.professionalKitId);\r\n }\r\n };\r\n const onUnitPriceChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n //TODO - Check better way to format currency on same input\r\n if (value && value.charAt(value.length - 1) === \",\") props.setFormattedUnitPrice(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\") props.setFormattedUnitPrice(intl.formatNumber(value));\r\n else props.setFormattedUnitPrice(value);\r\n } else {\r\n props.setFormattedUnitPrice(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Inactivo\r\n \r\n \r\n (\r\n {\r\n onChange(val);\r\n updateKitStatus();\r\n }}\r\n checked={props.isActive}\r\n disabled={props.isEditable}\r\n classes={{\r\n thumb: !props.isEditable ? classes.warningSwitchThumb : classes.disabledSwitchThumb,\r\n track: !props.isEditable ? classes.warningSwitchTrack : classes.disabledSwitchTrack,\r\n checked: classes.checkedSwitch,\r\n }}\r\n />\r\n )}\r\n />\r\n \r\n \r\n Activo\r\n \r\n \r\n {\r\n props.handleEditSection();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n \r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n Especialidade\r\n \r\n {props.errors[\"categoryId\"] !== undefined && (\r\n \r\n {props.errors[\"categoryId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Valor Total\r\n {\r\n if (value === \"0\" || value === \"0,00\" || value === \"0,0\")\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n return true;\r\n },\r\n // EmailMatch: value => { return value === getValues(\"email\") || \"O e-mail inserido deve ser igual ao campo 'E-mail'\"; }\r\n },\r\n }}\r\n render={({ field: { onChange, name } }) => (\r\n {\r\n onUnitPriceChange(e.target.value, onChange);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n disabled={!props.isEditable}\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n endAdornment={\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n classes={{\r\n input: classes.monetaryFields,\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"unitPrice\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"unitPrice\"] !== undefined && (\r\n \r\n {props.errors[\"unitPrice\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n Período de carência\r\n \r\n \r\n \r\n \r\n {\r\n return value >= 0 || intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n {UNITS.MONTHS}\r\n \r\n }\r\n classes={{\r\n input: classes.monetaryFields,\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"paymentDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"paymentDate\"] !== undefined && (\r\n \r\n {props.errors[\"paymentDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n Período de reembolso\r\n \r\n \r\n \r\n \r\n {\r\n return value >= 0 || intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n {UNITS.MONTHS}\r\n \r\n }\r\n classes={{\r\n input: classes.monetaryFields,\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"refundDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"refundDate\"] !== undefined && (\r\n \r\n {props.errors[\"refundDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Notas\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Composição do Kit\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"kitDescription\"] !== undefined && (\r\n \r\n {props.errors[\"kitDescription\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n updateProfessionalKitState: (professionalKitId) => dispatch(updateProfessionalKitStateAction(professionalKitId)),\r\n showDialog: (message, yesAction, noAction) =>\r\n dispatch(showGenericTwoButtonDialogAction(message, yesAction, noAction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GeneralDataSection);\r\n","import { MONETARY_DECIMAL_SEPARATOR } from \"utils/consts\";\r\nexport function characterizeProfessionalKitMap(formData) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n CategoryId: formData.categoryId.code ? formData.categoryId.code : \"\",\r\n UnitPrice: formData.unitPrice ? (formData.unitPrice + \"\").replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n PaymentDate: formData.paymentDate ? formData.paymentDate : 0,\r\n RefundDate: formData.refundDate ? formData.refundDate : 0,\r\n Notes: formData.notes ? formData.notes : \"\",\r\n KitDescription: formData.kitDescription ? formData.kitDescription : \"\",\r\n\r\n };\r\n return formData;\r\n}\r\n\r\nexport default characterizeProfessionalKitMap","import { React, useEffect, useState } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n//import custom components\r\nimport GeneralData from \"./GeneralDataSection\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport characterizeProfessionalKitMap from \"mappers/characterizeProfessionalKitMap\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport { characterizeProfessionalKitAction } from \"redux/actions/stockAction\";\r\nimport { getInactiveCategoriesAction } from \"redux/actions/datasetsAction\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CharacterizeKit(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const [formattedUnitPrice, setFormattedUnitPrice] = useState();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n props.getInactiveCategories(DATASET.INACTIVE_CATEGORIES);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const cancelOnClick = () => {\r\n history.goBack();\r\n };\r\n\r\n const onSubmit = (data) => {\r\n props.characterizeProfessionalKit(\r\n characterizeProfessionalKitMap(data), \r\n () => {\r\n history.push(\"/admin/kit-management\");\r\n }\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n cancelOnClick()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n characterizeProfessionalKit: (formData, onCloseAction) => dispatch(characterizeProfessionalKitAction(formData, onCloseAction)),\r\n getInactiveCategories: (name) => dispatch(getInactiveCategoriesAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CharacterizeKit);\r\n","import { MONETARY_DECIMAL_SEPARATOR } from \"utils/consts\";\r\nexport function updateProfessionalKitMap(id, formData) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n Id: id,\r\n CategoryId: formData.categoryId.code ? formData.categoryId.code : \"\",\r\n UnitPrice: formData.unitPrice ? (formData.unitPrice + \"\").replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) : 0,\r\n PaymentDate: formData.paymentDate ? formData.paymentDate : 0,\r\n RefundDate: formData.refundDate ? formData.refundDate : 0,\r\n Notes: formData.notes ? formData.notes : \"\",\r\n KitDescription: formData.kitDescription ? formData.kitDescription : \"\",\r\n\r\n };\r\n return formData;\r\n}\r\n\r\nexport default updateProfessionalKitMap","import { React, useEffect, useState } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n//import custom components\r\nimport GeneralData from \"./GeneralDataSection\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport updateProfessionalKitMap from \"mappers/updateProfessionalKitMap\";\r\nimport { DATASET, MONETARY_DECIMAL_SEPARATOR } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport { getInactiveCategoriesAction } from \"redux/actions/datasetsAction\";\r\nimport { updateProfessionalKitAction, getProfessionalKitDetailsAction } from \"redux/actions/stockAction\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction KitDetails(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n const [formattedUnitPrice, setFormattedUnitPrice] = useState();\r\n const [isEditable, setIsEditable] = useState(false);\r\n const [isActive, setIsActive] = useState(false);\r\n\r\n const handleEditSection = () => {\r\n setIsEditable(!isEditable);\r\n if (isEditable) {\r\n methods.clearErrors();\r\n setFormFields();\r\n }\r\n };\r\n useEffect(() => {\r\n props.getInactiveCategories(DATASET.INACTIVE_CATEGORIES);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (\r\n props.stockState.professionalKitDetails === undefined ||\r\n props.stockState.professionalKitDetails.Id !== props.match.params.professionalKitId\r\n ) {\r\n props.getProfessionalKitDetails(props.match.params.professionalKitId);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.professionalKitId]);\r\n\r\n useEffect(() => {\r\n if (props.stockState.professionalKitDetails !== undefined) {\r\n setFormFields();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.stockState.professionalKitDetails]);\r\n\r\n const setFormFields = () => {\r\n methods.setValue(\r\n \"unitPrice\",\r\n (props.stockState.professionalKitDetails.unitPrice + \"\")?.replace(\r\n MONETARY_DECIMAL_SEPARATOR.API,\r\n MONETARY_DECIMAL_SEPARATOR.WEB\r\n )\r\n );\r\n setFormattedUnitPrice(intl.formatNumber(props.stockState.professionalKitDetails.unitPrice + \"\"));\r\n methods.setValue(\"paymentDate\", props.stockState.professionalKitDetails.paymentDate);\r\n methods.setValue(\"refundDate\", props.stockState.professionalKitDetails.refundDate);\r\n methods.setValue(\"notes\", props.stockState.professionalKitDetails.notes);\r\n methods.setValue(\"kitDescription\", props.stockState.professionalKitDetails.kitDescription);\r\n methods.setValue(\"active\", props.stockState.professionalKitDetails.active);\r\n setIsActive(props.stockState.professionalKitDetails.active);\r\n setCategoryField();\r\n };\r\n\r\n const setCategoryField = () => {\r\n if (props.stockState.professionalKitDetails !== undefined) {\r\n var categoryList = props.dataSetState[DATASET.CATEGORIES] ? props.dataSetState[DATASET.CATEGORIES] : [];\r\n const category =\r\n props.stockState.professionalKitDetails.categoryId !== undefined\r\n ? props.stockState.professionalKitDetails.categoryId\r\n : null;\r\n methods.setValue(\"categoryId\", getSelectOptionsElementByCode(categoryList, category));\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) setCategoryField();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, props.dataSetState[DATASET.CATEGORIES]);\r\n\r\n const cancelOnClick = () => {\r\n history.goBack();\r\n };\r\n\r\n const onSubmit = (data) => {\r\n props.updateProfessionalKit(\r\n updateProfessionalKitMap(props.match.params.professionalKitId, data), \r\n () => {\r\n history.push(\"/admin/kit-management\");\r\n }\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n {isEditable && (\r\n \r\n \r\n \r\n \r\n cancelOnClick()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Save)}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateProfessionalKit: (formData, onCloseAction) => dispatch(updateProfessionalKitAction(formData, onCloseAction)),\r\n getProfessionalKitDetails: (kitId) => dispatch(getProfessionalKitDetailsAction(kitId)),\r\n getInactiveCategories: (name) => dispatch(getInactiveCategoriesAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(KitDetails);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { titles, labels } from \"resources/resources\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n// import Button from \"@material-ui/core/Button\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\n\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport Tablebackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport { TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Especialidade\", \"Nº Lotes\", \"Qtd.Total\", \"Qtd.Atribuída\", \"Stock\", \"Perdas\", \"Estado\"];\r\n\r\nfunction CardSearchResult(props) {\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n\r\n const [kitsList, setKitsList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.stockState.result)) {\r\n setKitsList(props.stockState.result.data);\r\n } else {\r\n setKitsList([]);\r\n }\r\n }, [props.stockState.result]);\r\n\r\n return (\r\n \r\n \r\n
\r\n {intl.formatMessage(titles.Title_Admin_ProfessionalKits_ResultSection)}\r\n
\r\n
\r\n {\"(\"}\r\n {props.stockState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Detalhes\r\n \r\n \r\n \r\n\r\n {kitsList !== undefined && kitsList.length > 0 && (\r\n \r\n {kitsList?.map((prop, key) => (\r\n \r\n {prop.categoryName}\r\n {prop.noOfBatches}\r\n {prop.kitsTotal}\r\n {prop.kitsAttributed}\r\n {prop.availableKits}\r\n {prop.lostKits}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(kitsList == null || kitsList.length === 0) && !props.stockState.searchProfessionalKit_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(CardSearchResult);\r\n","export function searchProfessionalKitsMap(formData) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n filter: {\r\n categoryId: formData.categoryId ? formData.categoryId.code : undefined,\r\n active: formData.statusId ? formData.statusId.code : undefined,\r\n professionalKitId : formData.professionalKitId ? formData.professionalKitId :undefined\r\n },\r\n };\r\n return formData;\r\n}\r\n\r\nexport default searchProfessionalKitsMap;\r\n","import React, { useEffect, useState } from \"react\";\r\n\r\nimport { connect } from \"react-redux\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { labels, titles } from \"resources/resources\";\r\nimport {\r\n getDataSetByNameAction,\r\n getWarehousesByProvinceAction,\r\n getCategoriesAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { searchProfessionalKitsAction } from \"redux/actions/stockAction\";\r\nimport { searchProfessionalKitsMap } from \"mappers/searchProfessionalKitsMap\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport { DATASET, PAGINATION } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Filter(props) {\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n\r\n const [filter, setFilter] = useState({\r\n filter: {\r\n categoryId: null,\r\n active: null,\r\n professionalKitId: null,\r\n },\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const cleanFilter = () => {\r\n setValue(\"categoryId\", undefined);\r\n setValue(\"statusId\", undefined);\r\n\r\n setFilterCounter(0);\r\n setFilter({\r\n filter: {\r\n categoryId: null,\r\n active: null,\r\n professionalKitId: null,\r\n },\r\n });\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n let filter = searchProfessionalKitsMap(data);\r\n filter[\"pageIndex\"] = 1;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n console.log(filter);\r\n setFilter(filter);\r\n if (props.page === 1) props.searchProfessionalKits(filter);\r\n else props.handleChangePage(1);\r\n }\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter };\r\n\r\n newFilter.filter[filterKey] = value;\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter.filter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n const redirectToKitCreation = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/characterize-kit\");\r\n };\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter.filter).map((key) => {\r\n if (\r\n filter.filter[key] !== undefined &&\r\n filter.filter[key] !== null &&\r\n key !== \"pageIndex\" &&\r\n key !== \"pageSize\"\r\n ) {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n props.searchProfessionalKits(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n if (props.dataSetState[DATASET.CATEGORIES] === undefined || props.dataSetState[DATASET.CATEGORIES] === []) {\r\n props.getCategories(DATASET.CATEGORIES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n
\r\n {intl.formatMessage(titles.Title_Admin_ProfessionalKitsManagement)}\r\n
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_ProfessionalKitsMenu_CharacterizeKitMenuItem)}\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Especialidade\r\n \r\n \r\n \r\n \r\n \r\n Estado\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getWarehousesByProvince: (name, province) => dispatch(getWarehousesByProvinceAction(name, province)),\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n searchProfessionalKits: (formData) => dispatch(searchProfessionalKitsAction(formData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Filter);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport {\r\n getWarehousesByProvinceAction,\r\n getCategoriesAction,\r\n} from \"redux/actions/datasetsAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport CardSearchResult from \"./CardSearchResult\";\r\nimport Filter from \"./Filter\";\r\n\r\n\r\n\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ProfessionalKits() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n { handleChangePage(undefined, value) }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getWarehousesByProvince: (name, province) =>\r\n dispatch(getWarehousesByProvinceAction(name, province)),\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ProfessionalKits);\r\n","import { REPORT_TYPES } from \"utils/consts\";\r\n\r\nexport function searchStocksMap(formData) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n CategoryId: formData.categoryId ? formData.categoryId.code : undefined,\r\n ProvinceId: formData.provinceId ? formData.provinceId.code : undefined,\r\n WarehouseId: formData.warehouseId ? formData.warehouseId.code : undefined,\r\n };\r\n return formData;\r\n}\r\n\r\nexport function stocksReportMap(filterData) {\r\n if (filterData !== null && filterData !== undefined) {\r\n return {\r\n reportEnumKey: REPORT_TYPES.STOCKS_SEARCH_RESULTS,\r\n parameters: JSON.stringify(filterData),\r\n };\r\n }\r\n }\r\n \r\n\r\nexport default searchStocksMap","import React, { useState, useEffect } from \"react\";\r\n// import { useHistory } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport {\r\n getDataSetByNameAction,\r\n getWarehousesByProvinceAction,\r\n getCategoriesAction,\r\n clearDataSetByNameAction,\r\n} from \"redux/actions/datasetsAction\";\r\nimport { getReportAction } from \"redux/actions/reportsAction\";\r\nimport { searchStocksAction } from \"redux/actions/stockAction\";\r\nimport { searchStocksMap, stocksReportMap } from \"mappers/searchStocksMap\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { DATASET, PAGINATION, REPORT_CONSTS, REPORT_FILE_NAME, OPERATIONS } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { labels, titles } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Filter(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [filter, setFilter] = useState({\r\n CategoryId: null,\r\n ProvinceId: props.authState?.province ?? null,\r\n WarehouseId: null,\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"categoryId\", undefined);\r\n if (!props.authState?.province) setValue(\"provinceId\", undefined);\r\n setValue(\"warehouseId\", undefined);\r\n props.clearDataSetByName(DATASET.WAREHOUSES);\r\n\r\n setFilterCounter(0);\r\n setFilter(0);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n let filter = searchStocksMap(data);\r\n filter[\"pageIndex\"] = 1;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n setFilter(filter);\r\n if (props.page === 1) props.searchStocks(filter);\r\n else props.handleChangePage(1);\r\n }\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n props.searchStocks(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n if (props.dataSetState[DATASET.CATEGORIES] === undefined || props.dataSetState[DATASET.CATEGORIES] === []) {\r\n props.getCategories(DATASET.CATEGORIES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (\r\n props.authState?.province &&\r\n props.dataSetState[DATASET.PROVINCES] !== undefined &&\r\n props.dataSetState[DATASET.PROVINCES] !== []\r\n ) {\r\n var selectedProvince = getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.authState.province\r\n );\r\n setValue(\"provinceId\", selectedProvince);\r\n props.getWarehousesByProvince(DATASET.WAREHOUSES, selectedProvince.keyValue);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n return (\r\n \r\n \r\n
\r\n {intl.formatMessage(titles.Title_Admin_ProfessionalKits_StocksManagement)}\r\n
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Especialidade\r\n \r\n \r\n \r\n \r\n \r\n Província\r\n \r\n \r\n \r\n \r\n \r\n Armazém\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.EXPORT_REPORTS) && (\r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.stockState?.total_records === 0\r\n ? `Limite mínimo de 1 e máximo de ${REPORT_CONSTS.MAX_RESULTS} resultados para exportar relatório`\r\n : \"\"\r\n }\r\n >\r\n \r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.stockState?.total_records === 0\r\n }\r\n style={{ marginRight: \"20px\" }}\r\n onClick={() => {\r\n props.getReport(\r\n stocksReportMap(filter),\r\n REPORT_FILE_NAME.STOCKS_SEARCH_RESULTS +\r\n moment().format(\"YYYYMMDDHHmm\") +\r\n REPORT_FILE_NAME.EXCEL_EXTENSION\r\n );\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ExportButton)}\r\n \r\n \r\n \r\n )}\r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getWarehousesByProvince: (name, province) => dispatch(getWarehousesByProvinceAction(name, province)),\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n searchStocks: (formData) => dispatch(searchStocksAction(formData)),\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n getReport: (data, reportFileName) => dispatch(getReportAction(data, reportFileName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Filter);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { showRegisterLossBreakModalAction, showRegisterInWareHouseModalAction } from \"redux/actions/stockAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\r\n \"Especialidade\",\r\n \"Província\",\r\n \"Armazém\",\r\n \"Nº Lotes\",\r\n \"Qtd. Total\",\r\n \"Qtd.Atribuída\",\r\n \"Stock\",\r\n \"Perdas\",\r\n \"\",\r\n];\r\n\r\nfunction CardSearchResult(props) {\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n\r\n const [stocksList, setStocksList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.stockState.result)) {\r\n setStocksList(props.stockState.result.data);\r\n } else {\r\n setStocksList([]);\r\n }\r\n }, [props.stockState.result]);\r\n\r\n const openRegisterInWarehouseModal = (category, provinceId, categoryId) => {\r\n props.showRegisterInWareHouseModal(true, category, provinceId, categoryId);\r\n };\r\n return (\r\n \r\n \r\n
\r\n {intl.formatMessage(titles.Title_Admin_ProfessionalKits_StocksManagement_ResultSection)}\r\n
\r\n
\r\n {\"(\"}\r\n {props.stockState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n {intl.formatMessage(labels.Label_Generic_Details)}\r\n \r\n \r\n \r\n\r\n {stocksList !== undefined && stocksList.length > 0 && (\r\n \r\n {stocksList?.map((prop, key) => (\r\n \r\n {prop.categoryName}\r\n {prop.provinceName}\r\n {prop.warehouseName}\r\n {prop.noOfBatches}\r\n {prop.kitsTotal}\r\n {prop.kitsAttributed}\r\n {prop.availableKits}\r\n {prop.lostKits}\r\n \r\n \r\n {\r\n openRegisterInWarehouseModal(prop.categoryId, prop.provinceId, prop.warehouseId);\r\n }}\r\n >\r\n Registar Lote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(stocksList == null || stocksList.length === 0) && !props.stockState.searchStocks_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n showRegisterLossBreakModal: (toShow, category, batchNumber) =>\r\n dispatch(showRegisterLossBreakModalAction(toShow, category, batchNumber)),\r\n showRegisterInWareHouseModal: (toShow, category, provinceId, categoryId) =>\r\n dispatch(showRegisterInWareHouseModalAction(toShow, category, provinceId, categoryId)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardSearchResult);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport {\r\n getWarehousesByProvinceAction,\r\n getCategoriesAction,\r\n} from \"redux/actions/datasetsAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport Filter from \"./Filter\";\r\nimport CardSearchResult from \"./CardSearchResult\";\r\n\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Stocks() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n { handleChangePage(undefined, value) }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getWarehousesByProvince: (name, province) =>\r\n dispatch(getWarehousesByProvinceAction(name, province)),\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Stocks);\r\n","import { React } from \"react\";\r\nimport moment from \"moment\";\r\nimport { connect } from \"react-redux\";\r\nimport {\r\n showRegisterLossBreakModalAction\r\n} from \"redux/actions/stockAction\"\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Referência do Lote\", \"Qtd. Total\", \"Data Entrega\", \"Observações\", \"\"];\r\n\r\n\r\nfunction CardSearchResult(props) {\r\n const classes = useStylesGeneric();\r\n\r\n const openRegisterLossModal = (category, batchNumber, provinceId, warehouseId) => {\r\n props.showRegisterLossBreakModal(true, category, batchNumber, provinceId, warehouseId, props.reloadPageAction);\r\n }\r\n return (\r\n \r\n \r\n {props.stockState.stockDetails !== undefined &&\r\n props.stockState.stockDetails?.stockLog?.length > 0 &&\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {props.stockState.stockDetails?.stockLog.map((prop, key) => (\r\n \r\n \r\n {prop.batchNumber}\r\n \r\n \r\n {prop.totalKits}\r\n \r\n \r\n {moment(prop.receivedOn).format(\"DD/MM/YYYY\")}\r\n \r\n \r\n {prop.notes}\r\n \r\n \r\n \r\n \r\n { \r\n openRegisterLossModal(\r\n props.stockState.stockDetails?.categoryId, \r\n prop.batchNumber, \r\n props.stockState.stockDetails?.provinceId, \r\n props.stockState.stockDetails?.warehouseId); \r\n }}\r\n >\r\n Registar Perda\r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n }\r\n \r\n\r\n );\r\n};\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n showRegisterLossBreakModal: (toShow, category, batchNumber, provinceId, categoryId, reloadPageAction) => (dispatch(showRegisterLossBreakModalAction(toShow, category, batchNumber, provinceId, categoryId, reloadPageAction))),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CardSearchResult);\r\n\r\n","import { React, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { getStockDetailsAction } from \"redux/actions/stockAction\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport StockLogTable from \"./StockLogTable\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction StockDetails(props) {\r\n const scrollDirection = useScrollDirection();\r\n const classes = useStylesGeneric();\r\n useEffect(() => {\r\n if (\r\n props.stockState.stockDetails === undefined ||\r\n props.stockState.stockDetails.Id !== props.match.params.warehouseStockId\r\n ) {\r\n props.getStockDetails(props.match.params.warehouseStockId);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.warehouseStockId]);\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n props.getStockDetails(props.match.params.warehouseStockId);\r\n }}\r\n />\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getStockDetails: (kitId) => dispatch(getStockDetailsAction(kitId)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(StockDetails);\r\n","export function userBOFilterMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n name: formData.name ? formData.name : \"\",\r\n email: formData.email ? formData.email :\"\",\r\n province: formData.province ? formData.province.code : undefined,\r\n municipality: formData.municipality ? parseInt(formData.municipality.code) : undefined,\r\n userStatus: formData.userStatus ? formData.userStatus.code.toString() : \"\",\r\n profile: formData.profile ? formData.profile.label : undefined,\r\n };\r\n }\r\n}\r\n \r\nexport default userBOFilterMap;\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useHistory } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport userBOFilterMap from \"mappers/userBOFilterMap\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { DATASET, PAGINATION } from \"utils/consts\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n\r\nimport {\r\n getDataSetByNameAction,\r\n getWarehousesByProvinceAction,\r\n getBackOfficeRolesAction,\r\n clearDataSetByNameAction,\r\n} from \"redux/actions/datasetsAction\";\r\n\r\nimport { getFilteredBackOfficeUsersActions } from \"redux/actions/usersAction\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSectionBo(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const [filter, setFilter] = useState({\r\n name: \"\",\r\n email: \"\",\r\n province: props.authState?.province ?? null,\r\n municipality: null,\r\n userStatus: \"\",\r\n profile: null,\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"name\", \"\");\r\n if (!props.authState?.province) setValue(\"province\", undefined);\r\n setValue(\"municipality\", undefined);\r\n setValue(\"userStatus\", undefined);\r\n setValue(\"email\", \"\");\r\n setValue(\"profile\", undefined);\r\n props.clearDataSetByName(DATASET.MUNICIPALITIES);\r\n\r\n setFilter(0);\r\n setFilterCounter(0);\r\n };\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n if (\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES] === undefined ||\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES]?.length === 0\r\n ) {\r\n props.getBackOfficeRoles(DATASET.BACKOFFICE_ROLES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (\r\n props.authState?.province &&\r\n props.dataSetState[DATASET.PROVINCES] !== undefined &&\r\n props.dataSetState[DATASET.PROVINCES] !== []\r\n ) {\r\n var selectedProvince = getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.authState.province\r\n );\r\n setValue(\"province\", selectedProvince);\r\n props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n let filter = userBOFilterMap(data);\r\n filter[\"pageIndex\"] = 1;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n setFilter(filter);\r\n if (props.page === 1) props.getUsers(filter);\r\n else props.handleChangePage(1);\r\n }\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n const redirectToCreateBOUser = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/backofficeusers-create\");\r\n };\r\n\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n props.getUsers(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n return (\r\n \r\n \r\n
Pesquisa de Utilizadores Backoffice
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n action={\r\n \r\n Criar Utilizador Backoffice\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Nome\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"name\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"name\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n \r\n \r\n \r\n \r\n Município\r\n \r\n \r\n \r\n \r\n \r\n Estado\r\n \r\n \r\n \r\n \r\n \r\n E-mail\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"email\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"email\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Função\r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getUsers: (name) => dispatch(getFilteredBackOfficeUsersActions(name)),\r\n getBackOfficeRoles: (name) => dispatch(getBackOfficeRolesAction(name)),\r\n getWarehousesByProvince: (name, province) => dispatch(getWarehousesByProvinceAction(name, province)),\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FilterSectionBo);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport getFilteredBackOfficeUsersActions from \"redux/actions/usersAction\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Nome\", \"Província\", \"Município\", \"Estado\", \"E-mail\", \"Função\"];\r\n\r\nfunction ResultSectionBo(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n\r\n const [boUserList, setBoUserList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.usersState.result)) {\r\n setBoUserList(props.usersState.result.data);\r\n } else {\r\n setBoUserList([]);\r\n }\r\n }, [props.usersState.result]);\r\n\r\n return (\r\n \r\n \r\n
Lista de Utilizadores Backoffice
\r\n
\r\n {\"(\"}\r\n {props.usersState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Detalhes\r\n \r\n \r\n \r\n\r\n {boUserList !== undefined && boUserList.length > 0 && (\r\n \r\n {boUserList?.map((prop, key) => (\r\n \r\n \r\n {prop.nameOfuser + \" \" + prop.surname}\r\n \r\n {prop.provinceName}\r\n {prop.municipalityName}\r\n {prop.active ? \"Activo\" : \"Inactivo\"}\r\n \r\n {prop.email}\r\n \r\n \r\n {prop.profile}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(boUserList == null || boUserList.length === 0) && !props.usersState.backoffice_users_search_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getUsers: (name) => dispatch(getFilteredBackOfficeUsersActions(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ResultSectionBo);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FilterSectionBo from \"./Sections/FilterSectionBo\";\r\nimport ResultSectionBo from \"./Sections/ResultSectionBo\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UsersBackOffice() {\r\n const classes = useStylesGeneric();\r\n\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n {\r\n handleChangePage(undefined, value);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UsersBackOffice);\r\n","import React from \"react\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport moment from \"moment\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport { useIntl } from \"react-intl\";\r\nimport clsx from \"clsx\";\r\n\r\nimport { FormHelperText, FormGroup, FormLabel, Box, OutlinedInput, InputAdornment } from \"@material-ui/core\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport { DateRange } from \"@material-ui/icons\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { messages, errorMessages } from \"resources/resources\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function FormDatePicker({\r\n name,\r\n label,\r\n control,\r\n rules,\r\n getValues,\r\n trigger,\r\n maxDateToday,\r\n minDateToday,\r\n startDateFieldName,\r\n endDateFieldName,\r\n isRequired,\r\n disabled,\r\n ...rest\r\n}) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n const isValidDate = (current) => {\r\n const selectedDate = current.toDate();\r\n const currentDate = new Date();\r\n currentDate.setHours(0, 0, 0, 0); // Set current date to midnight for accurate comparison\r\n\r\n if (maxDateToday && !(selectedDate <= currentDate)) return false;\r\n\r\n if (minDateToday && !(selectedDate >= currentDate)) return false;\r\n\r\n if (\r\n startDateFieldName &&\r\n getValues(startDateFieldName)?._isAMomentObject &&\r\n !(getValues(startDateFieldName) <= selectedDate)\r\n )\r\n return false;\r\n\r\n if (\r\n endDateFieldName &&\r\n getValues(endDateFieldName)?._isAMomentObject &&\r\n !(selectedDate <= getValues(endDateFieldName))\r\n )\r\n return false;\r\n\r\n return true;\r\n };\r\n\r\n return (\r\n \r\n {label}\r\n {\r\n return !value || value._isAMomentObject || intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !maxDateToday ||\r\n !value ||\r\n value <= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n minDate: (value) => {\r\n return (\r\n !minDateToday ||\r\n !value ||\r\n value >= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanOrEqualToTodayField)\r\n );\r\n },\r\n isLessThanEndDate: (value) => {\r\n return (\r\n !endDateFieldName ||\r\n !getValues(endDateFieldName) ||\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(endDateFieldName)._isAMomentObject &&\r\n value <= getValues(endDateFieldName)) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanOrEqualToDateToField)\r\n );\r\n },\r\n isGreaterThanStartDate: (value) => {\r\n return (\r\n !startDateFieldName ||\r\n !getValues(startDateFieldName) ||\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(startDateFieldName)._isAMomentObject &&\r\n value >= getValues(startDateFieldName)) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanOrEqualToDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { ref, onChange, ...field }, fieldState: { error } }) => (\r\n <>\r\n {\r\n onChange(e);\r\n if (startDateFieldName && getValues(startDateFieldName)) trigger(startDateFieldName);\r\n\r\n if (endDateFieldName && getValues(endDateFieldName)) trigger(endDateFieldName);\r\n\r\n trigger(name);\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={isValidDate}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n className: \"\",\r\n placeholder: \"DD/MM/AAAA\",\r\n }}\r\n renderInput={(dateInputProps) => (\r\n handleValidDate(e.target.value, dateInputProps.onChange)}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: !!error,\r\n }),\r\n }}\r\n fullWidth\r\n />\r\n )}\r\n />\r\n \r\n {error?.message}\r\n \r\n \r\n )}\r\n />\r\n \r\n );\r\n}\r\n","import { USER_TYPE } from \"utils/consts\";\r\n\r\nexport function userFilterMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n formData.email = formData.email ?? \"\";\r\n formData.nameOfUser = formData.nameOfUser ?? \"\";\r\n formData.numBI = formData.numBI ?? \"\";\r\n formData.provinceId = formData.provinceId\r\n ? parseInt(formData.provinceId.code)\r\n : undefined;\r\n formData.municipalityId = formData.municipalityId\r\n ? parseInt(formData.municipalityId.code)\r\n : undefined;\r\n formData.phoneNumber = formData.phoneNumber\r\n ? formData.phoneNumber\r\n : undefined;\r\n console.log(\"formData.typeOfUser\", formData.typeOfUser);\r\n formData.typeOfUser =\r\n (formData.typeOfUser?.label === \"Individual\"\r\n ? USER_TYPE.INDIVIDUAL\r\n : formData.typeOfUser?.label === \"Colectivo\"\r\n ? USER_TYPE.COLETIVO\r\n : null) ?? null;\r\n formData.isActive =\r\n (formData.isActive?.label === \"Activo\"\r\n ? \"true\"\r\n : formData.isActive?.label === \"Inactivo\"\r\n ? \"false\"\r\n : \"\") ?? \"\";\r\n\r\n return formData;\r\n }\r\n}\r\n\r\nexport default userFilterMap;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport clsx from \"clsx\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n//import custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { DATASET, PAGINATION, USER_TYPE } from \"utils/consts\";\r\nimport { getDataSetByNameAction, getDepartmentsAction, clearDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { getFilteredFrontOfficeUsersActions } from \"redux/actions/usersAction\";\r\nimport FormDatePicker from \"components/FormFields/FormDatePicker\";\r\n\r\nimport userFilterMap from \"mappers/userFilterMap\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { labels } from \"resources/resources\";\r\nimport { OPERATIONS } from \"utils/consts\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSectionFo(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const [filter, setFilter] = useState({\r\n email: \"\",\r\n nameOfUser: \"\",\r\n numBI: \"\",\r\n provinceId: props.authState?.province ?? null,\r\n municipalityId: null,\r\n phoneNumber: null,\r\n typeOfUser: props.match?.params?.typeOfUser ?? null,\r\n startDate: null,\r\n endDate: null,\r\n });\r\n\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n trigger,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n const userTypes = [\r\n { code: true, label: \"Individual\" },\r\n { code: false, label: \"Colectivo\" },\r\n ];\r\n\r\n useEffect(() => {\r\n if (props.match?.params?.typeOfUser === USER_TYPE.COLETIVO.toString()) {\r\n setValue(\"typeOfUser\", getSelectOptionsElementByCode(userTypes, false));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match?.params?.typeOfUser]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"nameOfUser\", \"\");\r\n setValue(\"numBI\", \"\");\r\n setValue(\"typeOfUser\", undefined);\r\n setValue(\"isActive\", undefined);\r\n if (!props.authState?.province) {\r\n setValue(\"provinceId\", undefined);\r\n }\r\n setValue(\"municipalityId\", undefined);\r\n setValue(\"email\", \"\");\r\n setValue(\"phoneNumber\", \"\");\r\n setValue(\"startDate\", undefined);\r\n setValue(\"endDate\", undefined);\r\n props.clearDataSetByName(DATASET.MUNICIPALITIES);\r\n\r\n setFilter(0);\r\n setFilterCounter(0);\r\n };\r\n\r\n useEffect(() => {\r\n if (ArrayUtils.NullOrEmpty(props.dataSetState[DATASET.PROVINCES])) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (\r\n props.authState?.province &&\r\n props.dataSetState[DATASET.PROVINCES] !== undefined &&\r\n props.dataSetState[DATASET.PROVINCES].length !== 0\r\n ) {\r\n var selectedProvince = getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.authState.province\r\n );\r\n setValue(\"provinceId\", selectedProvince);\r\n props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n const redirectToCreateFOUserColective = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/frontofficeusers-enterprise-create\");\r\n };\r\n\r\n const redirectToCreateFOUserIndividual = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/frontofficeusers-individual-create\");\r\n };\r\n\r\n const getFilterSectionName = () => {\r\n if (props.isAdvancedSearch === true) {\r\n return (\r\n
\r\n
Pesquisa Avançada
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n
\r\n );\r\n } else {\r\n return (\r\n
\r\n
Pesquisa de Utilizadores Frontoffice
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n
\r\n );\r\n }\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = userFilterMap(data);\r\n filter[\"pageIndex\"] = 1;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n setFilter(filter);\r\n if (props.page === 1) props.getUsers(filter);\r\n else props.handleChangePage(1);\r\n };\r\n\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n props.getUsers(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n return (\r\n \r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_FRONTOFFICE_ITEM) && (\r\n \r\n Criar Utilizador Individual\r\n \r\n )}\r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.USER_MANAGEMENT_FRONTOFFICE_ITEM) && (\r\n \r\n Criar Utilizador Empresa\r\n \r\n )}\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Nome\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"nameOfUser\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"nameOfUser\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Nº BI / NIF\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"numBI\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"numBI\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Tipo de Utilizador\r\n \r\n \r\n \r\n \r\n \r\n \r\n Estado\r\n \r\n \r\n \r\n \r\n \r\n \r\n Província\r\n \r\n \r\n \r\n \r\n \r\n Município\r\n \r\n \r\n \r\n \r\n \r\n E-mail\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"email\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"email\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Telemóvel\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"phoneNumber\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"phoneNumber\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getDepartments: (name) => dispatch(getDepartmentsAction(name)),\r\n getUsers: (name) => dispatch(getFilteredFrontOfficeUsersActions(name)),\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(withRouter(FilterSectionFo));\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { DATASET } from \"utils/consts\";\r\n\r\nimport getFilteredFrontOfficeUsersActions from \"redux/actions/usersAction\";\r\n\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core componentssrc\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\r\n \"Nome\",\r\n \"Nº BI / NIF\",\r\n \"Tipo de Utilizador\",\r\n \"Estado\",\r\n \"Província\",\r\n \"Munícipio\",\r\n \"Email\",\r\n \"Telemóvel\",\r\n \"\",\r\n];\r\n\r\nfunction ResultSectionFo(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const [foUserList, setFoUserList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.usersState.result)) {\r\n setFoUserList(props.usersState.result);\r\n } else {\r\n setFoUserList([]);\r\n }\r\n }, [props.usersState.result]);\r\n\r\n useEffect(() => {\r\n if (ArrayUtils.NullOrEmpty(props.dataSetState[DATASET.PROVINCES])) {\r\n props.getDataSetByName(DATASET.PROVINCES);\r\n }\r\n if (ArrayUtils.NullOrEmpty(props.dataSetState[DATASET.MUNICIPALITIES])) {\r\n props.getDataSetByName(DATASET.MUNICIPALITIES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n
Lista de Utilizadores Frontoffice
\r\n
\r\n {\"(\"}\r\n {props.usersState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Detalhes\r\n \r\n \r\n \r\n\r\n {foUserList !== undefined && foUserList.length > 0 && (\r\n \r\n {foUserList?.map((prop, key) => (\r\n \r\n \r\n {prop.nameOfuser}\r\n \r\n {prop.numBI}\r\n {prop.userType}\r\n \r\n {prop.isActive === true ? \"Activo\" : \"Inactivo\"}\r\n \r\n {prop.province ? prop.province : \"\"}\r\n \r\n {prop.municipality ? prop.municipality : \"\"}\r\n \r\n \r\n {prop.email}\r\n \r\n {prop.phone}\r\n \r\n \r\n {\" \"}\r\n {prop.userType === \"Colectivo\" ? (\r\n \r\n \r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(foUserList == null || foUserList.length === 0) && !props.usersState.frontoffice_users_search_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getUsers: (name) => dispatch(getFilteredFrontOfficeUsersActions(name)),\r\n getDataSetByName: (name, addEmptyField) => dispatch(getDataSetByNameAction(name, addEmptyField)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ResultSectionFo);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FilterSectionFo from \"./Sections/FilterSectionFo\";\r\nimport ResultSectionFo from \"views/admin/UserManagement/FrontOffice/Sections/ResultSectionFo\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UsersFrontOffice() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n {\r\n handleChangePage(undefined, value);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UsersFrontOffice);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n//import custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FormMultipleSelect from \"components/FormFields/FormMultipleSelect\";\r\nimport { getCategoriesAction, getDataSetByNameAction, getBackOfficeRolesAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET, ROLE_KEY_VALUE } from \"utils/consts\";\r\nimport { labels, messages, errorMessages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction BackOfficeUserData(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n\r\n const [showBankSelection, setShowBankSelection] = useState(false);\r\n const [showEmploymentAndEntrepreneurshipSelection, setShowEmploymentAndEntrepreneurshipSelection] = useState(false);\r\n\r\n function getShowExtraFields() {\r\n var selectedFunctions = props.getValues(\"function\");\r\n\r\n if (selectedFunctions && selectedFunctions.length > 0) {\r\n if (selectedFunctions.some((op) => op.code === ROLE_KEY_VALUE.BANCOS)) {\r\n setShowBankSelection(true);\r\n } else {\r\n setShowBankSelection(false);\r\n props.unregister(\"managerBank\");\r\n props.unregister(\"managerLoanTypes\");\r\n }\r\n\r\n if (\r\n selectedFunctions.some(\r\n (op) =>\r\n op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_TECHNICAL_TEAM ||\r\n selectedFunctions.some((op) => op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_MANAGEMENT_TEAM)\r\n )\r\n ) {\r\n setShowEmploymentAndEntrepreneurshipSelection(true);\r\n } else {\r\n setShowEmploymentAndEntrepreneurshipSelection(false);\r\n props.unregister(\"employmentCenter\");\r\n }\r\n } else {\r\n setShowBankSelection(false);\r\n props.unregister(\"managerBank\");\r\n props.unregister(\"managerLoanTypes\");\r\n\r\n setShowEmploymentAndEntrepreneurshipSelection(false);\r\n props.unregister(\"employmentCenter\");\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n if (\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES] === undefined ||\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES]?.length === 0\r\n ) {\r\n props.getBackOfficeRoles(DATASET.BACKOFFICE_ROLES);\r\n }\r\n if (props.dataSetState[DATASET.BANK] === undefined || props.dataSetState[DATASET.BANK]?.length === 0) {\r\n props.getDataSet(DATASET.BANK);\r\n }\r\n if (props.dataSetState[DATASET.LOAN_TYPE] === undefined || props.dataSetState[DATASET.LOAN_TYPE]?.length === 0) {\r\n props.getDataSet(DATASET.LOAN_TYPE);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n getShowExtraFields();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.getValues(\"managerBank\")]);\r\n\r\n useEffect(() => {\r\n const provinceValue = props.getValues(\"province\");\r\n const functionValue = props.getValues(\"function\");\r\n\r\n getShowExtraFields();\r\n\r\n if (provinceValue && functionValue) {\r\n if (\r\n functionValue?.some(\r\n (op) =>\r\n op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_TECHNICAL_TEAM ||\r\n functionValue?.some((op) => op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_MANAGEMENT_TEAM)\r\n )\r\n ) {\r\n props.getDataSet(DATASET.EMPLOYMENT_CENTERS, provinceValue.keyValue);\r\n }\r\n } else if (!provinceValue && functionValue) {\r\n props.setValue(\"employmentCenter\", undefined);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.getValues(\"province\"), props.getValues(\"function\")]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n Nome\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"name\"] !== undefined && (\r\n \r\n {props.errors[\"name\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Apelido\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"surname\"] !== undefined && (\r\n \r\n {props.errors[\"surname\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Activo\r\n \r\n {props.errors[\"active\"] !== undefined && (\r\n \r\n {props.errors[\"active\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n {props.errors[\"province\"] !== undefined && (\r\n \r\n {props.errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Município\r\n \r\n {props.errors[\"county\"] !== undefined && (\r\n \r\n {props.errors[\"county\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Função\r\n \r\n {props.errors[\"function\"] !== undefined && (\r\n \r\n {props.errors[\"function\"].message}\r\n \r\n )}\r\n \r\n \r\n {showBankSelection && (\r\n <>\r\n \r\n \r\n Banco a gerir\r\n \r\n {props.errors[\"managerBank\"] !== undefined && (\r\n \r\n {props.errors[\"managerBank\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Tipos de produtos bancários a gerir\r\n \r\n {props.errors[\"managerLoanTypes\"] !== undefined && (\r\n \r\n {props.errors[\"managerLoanTypes\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n {showEmploymentAndEntrepreneurshipSelection && (\r\n \r\n \r\n \r\n Centro de Emprego\r\n \r\n \r\n \r\n \r\n \r\n {props.errors[\"employmentCenter\"] !== undefined && (\r\n \r\n {props.errors[\"employmentCenter\"].message}\r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n E-mail\r\n {\r\n if (value && !/\\S+@\\S+\\.\\S+/.test(value))\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"emailConfirmation\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"email\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"email\"] !== undefined && (\r\n \r\n {props.errors[\"email\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação de E-mail\r\n {\r\n if (value && !/\\S+@\\S+\\.\\S+/.test(value))\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n return true;\r\n },\r\n EmailMatch: (value) => {\r\n return (\r\n value === props.getValues(\"email\") || \"O e-mail inserido deve ser igual ao campo 'E-mail'\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"email\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"emailConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"emailConfirmation\"] !== undefined && (\r\n \r\n {props.errors[\"emailConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getCategories: (name) => dispatch(getCategoriesAction(name)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getBackOfficeRoles: (name) => dispatch(getBackOfficeRolesAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(BackOfficeUserData);\r\n","import { getListAsString, getListFromFormData } from \"utils/formSelectMultiple\";\r\n\r\nexport function backOfficeUserRegisterMap(formData) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n email: formData.email ? formData.email : \"\",\r\n name: formData.name ? formData.name : \"\",\r\n surname: formData.surname ? formData.surname : \"\",\r\n active: formData.active ? formData.active.code : false,\r\n provinceId: formData.province ? formData.province?.code : null,\r\n password: \"\",\r\n profile: formData.function ? getListAsString(formData.function, \"##\") : \"\",\r\n municipalityId: formData.county ? formData.county?.code : null,\r\n managerBankId: formData.managerBank ? formData.managerBank.code : null,\r\n managerLoanTypes:\r\n formData.managerLoanTypes !== undefined ? getListFromFormData(formData.managerLoanTypes) : [],\r\n employmentCenterId: formData.employmentCenter?.code\r\n };\r\n return formData;\r\n}\r\n\r\nexport default backOfficeUserRegisterMap;\r\n","import { backOfficeUserRegister } from \"crud/registerbouser.crud\";\r\nimport { REGISTER_BO_USER, DIALOG } from \"utils/actionsConsts\";\r\n\r\nexport const registerBoUserAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: REGISTER_BO_USER.REGISTER_LOADING,\r\n payload: true,\r\n });\r\n backOfficeUserRegister(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: REGISTER_BO_USER.REGISTER,\r\n payload: res.data ? true : false,\r\n });\r\n\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data ? true : false,\r\n message: \"Utilizador registado com sucesso\",\r\n goBack: true,\r\n onClose: \"/admin/backofficeusers-management\",\r\n },\r\n }\r\n });\r\n dispatch({\r\n type: REGISTER_BO_USER.REGISTER_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: REGISTER_BO_USER.REGISTER,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.SIMPLE_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[\r\n Object.keys(error.response.data.errors)[0]\r\n ][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: REGISTER_BO_USER.REGISTER_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default registerBoUserAction;","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\n\r\nexport const POST_BACKOFFICE_USER_REGISTER_URL = \"account/register\";\r\n\r\n\r\nexport function backOfficeUserRegister(user) {\r\n return axios.post(INTERNAL_API_URL + POST_BACKOFFICE_USER_REGISTER_URL, {\r\n user\r\n });\r\n}\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n// @material-ui/icons components\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport BackOfficeUserData from \"./Sections/BackOfficeUserData\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport backOfficeUserRegisterMap from \"mappers/backOfficeUserRegisterMap\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { registerBoUserAction } from \"redux/actions/registerBoUserAction\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction BackOfficeUserCreation(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n function handleRegister(data) {\r\n props.registerBoUser(backOfficeUserRegisterMap(data));\r\n }\r\n\r\n React.useEffect(() => {\r\n //Set province, since logged user can only create users from same province\r\n if (props.authState?.province) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, props.authState.province);\r\n props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n\r\n setValue(\"province\", selectedProvince);\r\n }\r\n //set Active field as true\r\n setValue(\r\n \"active\",\r\n DATASET.YES_OR_NO_DROPDOWN.find((t) => t.code)\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n React.useEffect(() => {\r\n if (props.authState?.province) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n setValue(\"province\", getSelectOptionsElementByCode(provinceList, props.authState.province));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n trigger,\r\n setValue,\r\n unregister,\r\n formState: { errors },\r\n } = methods;\r\n\r\n return (\r\n <>\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n registerBoUser: (data) => dispatch(registerBoUserAction(data)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(BackOfficeUserCreation);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport {\r\n FormHelperText,\r\n FormGroup,\r\n FormLabel,\r\n Box,\r\n OutlinedInput,\r\n} from \"@material-ui/core\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport clsx from \"clsx\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\n\r\nimport {\r\n UNITS,\r\n MONETARYUNITPLACEHOLDER\r\n} from \"utils/consts\";\r\n//style\r\nimport componentStyles from \"assets/theme/views/admin/generic-page-detail.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\n\r\nexport default function FormMonetaryInput({\r\n name,\r\n label,\r\n control,\r\n rules,\r\n errors,\r\n disabled,\r\n defaultValue\r\n}) {\r\n const classes = useStyles();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [formattedUnitPrice, setFormattedUnitPrice] = useState();\r\n\r\n useEffect(() => {\r\n if (defaultValue) {\r\n if (intl.formatNumber(defaultValue) !== \"NaN\")\r\n setFormattedUnitPrice(intl.formatNumber(defaultValue))\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [defaultValue]);\r\n\r\n const onUnitPriceChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n if (value && value.charAt(value.length - 1) === \",\")\r\n setFormattedUnitPrice(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\")\r\n setFormattedUnitPrice(intl.formatNumber(value));\r\n else\r\n setFormattedUnitPrice(value);\r\n } else {\r\n setFormattedUnitPrice(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n }\r\n\r\n return (\r\n \r\n {label}\r\n (\r\n { onUnitPriceChange(e.target.value, onChange) }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n disabled={disabled}\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n endAdornment={\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[name] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[name] !== undefined && (\r\n \r\n {errors[name].message}\r\n \r\n )}\r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { Box, FormGroup, FormHelperText, FormLabel, OutlinedInput } from \"@material-ui/core\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n//style\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { messages } from \"resources/resources\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function FormInput({ name, label, control, rules, numberType, tooltipLabel, isRequired, ...rest }) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n\r\n return (\r\n \r\n \r\n {label}\r\n {tooltipLabel && (\r\n \r\n \r\n \r\n )}\r\n \r\n\r\n (\r\n <>\r\n \r\n\r\n \r\n {error?.message}\r\n \r\n \r\n )}\r\n />\r\n \r\n );\r\n}\r\n","import { React, useEffect } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\n// @material-ui/icons components\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\nimport ErrorIcon from \"@material-ui/icons/Error\";\r\n//import custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { getDataSetByNameAction, clearDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getUserInfoAction } from \"redux/actions/usersAction\";\r\nimport { DATASET, SPECIAL_NEEDS_KEY, REGISTRATION_CONSTS, REGEX_PATTERNS } from \"utils/consts\";\r\nimport { labels, errorMessages, messages } from \"resources/resources\";\r\nimport FormMonetaryInput from \"components/FormFields/FormMonetaryInput\";\r\nimport FormInput from \"components/FormFields/FormInput\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction IndividualUserPersonalData(props) {\r\n const { control } = useFormContext();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (props.isCreate) props.clearDataSetByName(DATASET.MUNICIPALITIES);\r\n\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES].length === 0) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n if (props.dataSetState[DATASET.GENDER] === undefined || props.dataSetState[DATASET.GENDER].length === 0) {\r\n props.getDataSet(DATASET.GENDER);\r\n }\r\n if (props.dataSetState[DATASET.MARITAL_STATUS] === undefined || props.dataSetState[DATASET.MARITAL_STATUS].length === 0) {\r\n props.getDataSet(DATASET.MARITAL_STATUS);\r\n }\r\n if (props.dataSetState[DATASET.NATIONALITIES] === undefined || props.dataSetState[DATASET.NATIONALITIES].length === 0) {\r\n props.getDataSet(DATASET.NATIONALITIES);\r\n }\r\n if (props.dataSetState[DATASET.SPECIAL_NEEDS] === undefined || props.dataSetState[DATASET.SPECIAL_NEEDS].length === 0) {\r\n props.getDataSet(DATASET.SPECIAL_NEEDS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Nome\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"name\"] !== undefined && (\r\n \r\n {props.errors[\"name\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Sobrenome\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"lastname\"] !== undefined && (\r\n \r\n {props.errors[\"lastname\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n {!props.isCreate && (\r\n \r\n \r\n Activo\r\n \r\n {props.errors[\"isActive\"] !== undefined && (\r\n \r\n {props.errors[\"isActive\"].message}\r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Data de nascimento\r\n {\r\n return (\r\n value < moment().startOf(\"day\") ||\r\n intl.formatMessage(errorMessages.ErrorMessage_Birthdate_MaxDate)\r\n );\r\n },\r\n minDate: (value) => {\r\n return (\r\n value >\r\n moment(REGISTRATION_CONSTS.MIN_BIRTHDATE, REGISTRATION_CONSTS.DATE_TIME_FORMAT).startOf(\r\n \"day\"\r\n ) ||\r\n intl.formatMessage(errorMessages.ErrorMessage_Birthdate_MinDate, {\r\n minDate: REGISTRATION_CONSTS.MIN_BIRTHDATE,\r\n })\r\n );\r\n },\r\n dateHasSlash: (value) => {\r\n if (value._isAMomentObject !== true) {\r\n if (!value.includes(\"/\")) {\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n }\r\n }\r\n },\r\n isAdult: (value) => {\r\n if (moment().diff(value, \"years\") < 17) {\r\n return intl.formatMessage(errorMessages.ErrorMessage_MinRegisterDate);\r\n }\r\n \r\n },\r\n },\r\n }}\r\n render={({ field: { ref, ...field}}) => (\r\n {\r\n return currentDate < moment().startOf(\"day\");\r\n }}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"birthdate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {props.errors[\"birthdate\"] !== undefined && (\r\n \r\n {props.errors[\"birthdate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n Nº do BI\r\n {!props.usersInfo.result?.userSingular?.canModifyIdentityCard && !props.isCreate && (\r\n \r\n \r\n \r\n )}\r\n \r\n {\r\n return (\r\n value.length <= REGISTRATION_CONSTS.MAX_LENGTH_ID_CARD ||\r\n intl.formatMessage(errorMessages.ErrorMessage_ID_Card_InvalidFormat)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field }) => (\r\n \r\n )}\r\n />\r\n {props.errors[\"identityCard\"] !== undefined && (\r\n \r\n {props.errors[\"identityCard\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Necessidades Especiais\r\n props.trigger(\"specialNeedsPercent\")}\r\n />\r\n {props.errors[\"specialNeeds\"] !== undefined && (\r\n \r\n {props.errors[\"specialNeeds\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Percentagem (%)\r\n {\r\n if (props.getValues(\"specialNeeds\")?.keyValue !== SPECIAL_NEEDS_KEY.NAO && !value) {\r\n return intl.formatMessage(errorMessages.ErrorMessage_FieldRequired);\r\n }\r\n },\r\n greaterThanZero: (value) => {\r\n if (\r\n props.getValues(\"specialNeeds\")?.keyValue !== SPECIAL_NEEDS_KEY.NAO &&\r\n (value <= REGISTRATION_CONSTS.MIN_LENGTH_PERCENTAGE ||\r\n value > REGISTRATION_CONSTS.MAX_LENGTH_PERCENTAGE)\r\n ) {\r\n return intl.formatMessage(errorMessages.ErrorMessage_FieldPercentage);\r\n }\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n }}\r\n disabled={!props.isEditable}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"specialNeedsPercent\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"specialNeedsPercent\"] !== undefined && (\r\n \r\n {props.errors[\"specialNeedsPercent\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Género\r\n \r\n {props.errors[\"gender\"] !== undefined && (\r\n \r\n {props.errors[\"gender\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Estado Civil\r\n \r\n {props.errors[\"maritalStatus\"] !== undefined && (\r\n \r\n {props.errors[\"maritalStatus\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n {\r\n if (value < 0)\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanOrEqualToZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n {\r\n if (value === \"0\" || value === \"0,00\" || value === \"0,0\")\r\n return intl.formatMessage(errorMessages.ErrorMessage_Generic_ValueGreaterThanZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n Nacionalidade\r\n \r\n {props.errors[\"nationality\"] !== undefined && (\r\n \r\n {props.errors[\"nationality\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n {props.errors[\"province\"] !== undefined && (\r\n \r\n {props.errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Município\r\n \r\n {props.errors[\"municipality\"] !== undefined && (\r\n \r\n {props.errors[\"municipality\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Bairro\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"district\"] !== undefined && (\r\n \r\n {props.errors[\"district\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n NISS Individual\r\n \r\n \r\n \r\n \r\n {\r\n if (!props.getValues(\"hasNISS\") && !value)\r\n return intl.formatMessage(errorMessages.ErrorMessage_FieldRequired);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"hasNISS\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"niss\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"niss\"] !== undefined && (\r\n \r\n {props.errors[\"niss\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {\r\n if (!props.getValues(\"niss\") && !value)\r\n return intl.formatMessage(errorMessages.ErrorMessage_FieldRequired);\r\n if (props.getValues(\"niss\") && props.getValues(\"hasNISS\"))\r\n return \"Preencha apenas um dos campos (NISS Individual ou Sem NISS individual)\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"niss\");\r\n }}\r\n value=\"end\"\r\n control={}\r\n label={\r\n \r\n Sem NISS individual\r\n \r\n }\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"hasNISS\"] !== undefined && (\r\n \r\n {props.errors[\"hasNISS\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Endereço (opcional)\r\n (\r\n \r\n )}\r\n />\r\n {props.errors[\"address\"] !== undefined && (\r\n \r\n {props.errors[\"address\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Telemóvel\r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return \"Formato inválido\";\r\n return true;\r\n },\r\n // mobilePhoneisUnique: async () => await fetch()\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"mobilePhoneConfirmation\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"mobilePhone\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"mobilePhone\"] !== undefined && (\r\n \r\n {props.errors[\"mobilePhone\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação telemóvel\r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return \"Formato inválido\";\r\n return true;\r\n },\r\n phoneNumberMatch: (value) => {\r\n return (\r\n value === props.getValues(\"mobilePhone\") ||\r\n \"O número inserido deve ser igual ao campo 'Telemóvel'\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"mobilePhone\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"mobilePhoneConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"mobilePhoneConfirmation\"] !== undefined && (\r\n \r\n {props.errors[\"mobilePhoneConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Telemóvel alternativo\r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return \"Formato inválido\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field }) => (\r\n \r\n )}\r\n />\r\n {props.errors[\"alternativeMobilePhone\"] !== undefined && (\r\n \r\n {props.errors[\"alternativeMobilePhone\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n E-mail (opcional)\r\n {\r\n if (value && !REGEX_PATTERNS.EMAIL.test(value)) return \"Formato inválido\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"emailConfirmation\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"email\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"email\"] !== undefined && (\r\n \r\n {props.errors[\"email\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação email\r\n {\r\n if (value && !REGEX_PATTERNS.EMAIL.test(value)) return \"Formato inválido\";\r\n return true;\r\n },\r\n EmailMatch: (value) => {\r\n return value === props.getValues(\"email\") || \"O e-mail inserido deve ser igual ao campo 'E-mail'\";\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n props.trigger(\"email\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"emailConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"emailConfirmation\"] !== undefined && (\r\n \r\n {props.errors[\"emailConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n (\r\n {\r\n onChange(e.target.checked);\r\n }}\r\n color=\"primary\"\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForInternshipOpportunities\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n (\r\n {\r\n onChange(e.target.checked);\r\n }}\r\n color=\"primary\"\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_Admin_EditIndividualUserPersonalData_Field_isAvailableForEmploymentOpportunities\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getUserInfo: (id) => dispatch(getUserInfoAction(id)),\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(IndividualUserPersonalData);\r\n","import { React, useEffect } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport ErrorIcon from \"@material-ui/icons/Error\";\r\n//import custom components\r\nimport FormMultipleSelect from \"components/FormFields/FormMultipleSelect\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\n\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getUserInfoAction } from \"redux/actions/usersAction\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { errorMessages, messages, labels } from \"resources/resources\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\nimport FormInput from \"components/FormFields/FormInput\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction IndividualUserCompanyData(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n\r\n const handleGetDataSetByName = (datasetName) => {\r\n if (props.dataSetState[datasetName] === undefined || props.dataSetState[datasetName]?.length === 0) {\r\n props.getDataSet(datasetName);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n handleGetDataSetByName(DATASET.GENDER);\r\n handleGetDataSetByName(DATASET.MARITAL_STATUS);\r\n handleGetDataSetByName(DATASET.NATIONALITIES);\r\n handleGetDataSetByName(DATASET.ACADEMIC_LEVEL);\r\n handleGetDataSetByName(DATASET.ACADEMIC_DEGREE);\r\n handleGetDataSetByName(DATASET.PROFESSIONAL_TRAINNING);\r\n handleGetDataSetByName(DATASET.ENTREPRENEURSHIP_TRAINNING);\r\n handleGetDataSetByName(DATASET.SMALL_BUSINESS_MGMT_TRAINNING);\r\n handleGetDataSetByName(DATASET.TECHNICAL_CAPABIBILITY);\r\n handleGetDataSetByName(DATASET.PROFESSIONAL_CATEGORY);\r\n handleGetDataSetByName(DATASET.LANGUAGES);\r\n handleGetDataSetByName(DATASET.OCCUPATIONAL_CATEGORIES);\r\n handleGetDataSetByName(DATASET.PROVINCES);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Nivel Académico\r\n \r\n {props.errors[\"academicLevel\"] !== undefined && (\r\n \r\n {props.errors[\"academicLevel\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Curso (opcional)\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Categoria Profissional (opcional)\r\n \r\n {props.errors[\"professionalCategory\"] !== undefined && (\r\n \r\n {props.errors[\"professionalCategory\"].message}\r\n \r\n )}\r\n {\" \"}\r\n \r\n \r\n \r\n Formação profissional\r\n \r\n {props.errors[\"professionalTraining\"] !== undefined && (\r\n \r\n {props.errors[\"professionalTraining\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Formação de empreendedorismo\r\n \r\n {props.errors[\"entrepreneurshipTraining\"] !== undefined && (\r\n \r\n {props.errors[\"entrepreneurshipTraining\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Formação de gestão pequenos negócios\r\n \r\n {props.errors[\"smallBusinessMgmtTraining\"] !== undefined && (\r\n \r\n {props.errors[\"smallBusinessMgmtTraining\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserProfile_UserSingular_ProfessionalData_StudiedLanguages)}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserProfile_UserSingular_ProfessionalData_OccupationalCategory)}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserProfile_UserSingular_ProfessionalData_IntendedWorkplaceProvinceId)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserProfile_UserSingular_ProfessionalData_MainProfessionalExperience)}\r\n \r\n \r\n {props.errors[\"professionalExperience\"] !== undefined && (\r\n \r\n {props.errors[\"professionalExperience\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_ProfessionalData_YearsOfMainProfessionalExperience\r\n )}\r\n \r\n {\r\n if (value < 0) {\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanOrEqualToZeroField);\r\n }\r\n },\r\n },\r\n }}\r\n render={({ field }) => (\r\n \r\n )}\r\n />\r\n {props.errors[\"experience\"] !== undefined && (\r\n \r\n {props.errors[\"experience\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_ProfessionalData_SecondaryProfessionalExperience\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {\r\n if (value < 0)\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanOrEqualToZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getUserInfo: (id) => dispatch(getUserInfoAction(id)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(IndividualUserCompanyData);\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n//import custom components\r\nimport IndividualUserPersonalData from \"./IndividualUserPersonalData\";\r\nimport IndividualUserCompanyData from \"./IndividualUserCompanyData\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport SubmitedDocumentsSection from \"components/FormFields/SubmitedDocumentsSection\";\r\nimport DropzoneField from \"components/FormFields/DropzoneField\";\r\nimport { getUserDocumentAction } from \"redux/actions/usersAction\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction IndividualUserData(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const steps = getSteps();\r\n const intl = useIntl();\r\n const methods = useFormContext();\r\n\r\n function getSteps() {\r\n return [\"Dados Pessoais\", \"Dados Profissionais\"];\r\n }\r\n\r\n const getFileInfoByDocumentType = (documentTypeId) => {\r\n const doc = props.usersInfo.result?.userDocuments?.find((d) => d.documentTypeId === documentTypeId);\r\n if (doc)\r\n return [\r\n {\r\n documentId: doc.documentIndex,\r\n documentName: doc.documentName,\r\n },\r\n ];\r\n return undefined;\r\n };\r\n\r\n return (\r\n <>\r\n \r\n {\r\n props.handleEditSectionPersonalData();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n\r\n \r\n {\r\n props.handleEditSectionProfessionalData();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n\r\n {props.usersInfo.result?.userTypeDocuments?.length > 0 && !props.isCreate && (\r\n \r\n {\r\n props.handleEditSectionUserDocuments();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n }\r\n >\r\n \r\n \r\n {props.usersInfo.result?.userTypeDocuments?.map((documentType, key) => (\r\n \r\n \r\n {documentType.documentName}\r\n {props.isEditableUserDocuments && (\r\n \r\n )}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getUserDocument: (docId, docName) => dispatch(getUserDocumentAction(docId, docName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(IndividualUserData);\r\n","import { React, useEffect, useState, Fragment } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport { usePasswordValidation } from \"hooks/usePasswordValidation\";\r\nimport \"moment/locale/pt\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport { green, red } from \"@material-ui/core/colors\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n// @material-ui/icons components\r\nimport CheckCircleOutlinedIcon from \"@material-ui/icons/CheckCircleOutlined\";\r\nimport CancelOutlinedIcon from \"@material-ui/icons/CancelOutlined\";\r\n//import custom components\r\nimport { messages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction PasswordCard() {\r\n const classes = { ...useStylesGeneric() };\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const methods = useFormContext();\r\n const [password, setPassword] = useState({\r\n firstPassword: \"\",\r\n secondPassword: \"\",\r\n });\r\n const [passwordValidation] = usePasswordValidation({\r\n firstPassword: methods.getValues(\"password\"),\r\n secondPassword: methods.getValues(\"passwordConfirmation\"),\r\n });\r\n\r\n useEffect(() => {\r\n if (passwordValidation?.isValid != null) methods.trigger(\"password\");\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [passwordValidation?.isValid]);\r\n\r\n const setFirst = (event) => {\r\n setPassword({ ...password, firstPassword: event.target.value });\r\n };\r\n\r\n const setSecond = (event) => {\r\n setPassword({ ...password, secondPassword: event.target.value });\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n Palavra-passe\r\n {\r\n if (!passwordValidation.isValid) return \"Palavra-passe inválida\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n setFirst(e);\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"password\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"password\"] !== undefined && !passwordValidation.isValid && (\r\n \r\n {methods.formState.errors[\"password\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação da palavra-passe\r\n {\r\n return (\r\n value === methods.getValues(\"password\") ||\r\n \"O valor inserido deve ser igual ao campo 'Palavra-passe'\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n setSecond(e);\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"passwordConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"passwordConfirmation\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"passwordConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_1)}\r\n \r\n \r\n \r\n {passwordValidation.validLength ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_2)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.upperCase ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_3)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.lowerCase ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_4)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.hasNumber ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_5)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.specialChar ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_6)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(PasswordCard);\r\n","import { getListFromFormData } from \"utils/formSelectMultiple\";\r\n\r\nexport function frontOfficeIndividualUserRegisterMap(formData) {\r\n if (formData != null && formData !== undefined) {\r\n const user = {\r\n user: {\r\n id: \"\",\r\n userType: 1,\r\n name: formData.name ? formData.name : \"\",\r\n mobilePhone: formData.mobilePhone ? formData.mobilePhone : \"\",\r\n alternativeMobilePhone: formData.alternativeMobilePhone ? formData.alternativeMobilePhone : \"\",\r\n email: formData.email ? formData.email : \"\",\r\n password: formData.password ? formData.password : \"\",\r\n userCode: \"\",\r\n userSingular: {\r\n lastName: formData.lastname ? formData.lastname : \"\",\r\n dateOfBirth: formData.birthdate ? formData.birthdate : \"\",\r\n identityCard: formData.identityCard ? formData.identityCard : \"\",\r\n specialNeedsId: formData.specialNeeds ? formData.specialNeeds.code : null,\r\n specialNeedsPercent: formData.specialNeedsPercent ? formData.specialNeedsPercent : null,\r\n genderId: formData.gender ? formData.gender.code : null,\r\n maritalStatusId: formData.maritalStatus ? formData.maritalStatus.code : null,\r\n nationalityId: formData.nationality ? formData.nationality.code : null,\r\n niss: formData.niss ? formData.niss : \"\",\r\n hasNISS: formData.hasNISS ? formData.hasNISS : null,\r\n compositeAddress: {\r\n provinceId: formData.province ? formData.province.code : null,\r\n provinceKey: formData.province ? formData.province.keyValue : \"\",\r\n municipalityId: formData.municipality ? formData.municipality.code : null,\r\n district: formData.district ? formData.district : \"\",\r\n address: formData.address ? formData.address : \"\",\r\n },\r\n academicLevelId: formData.academicLevel ? formData.academicLevel.code : null,\r\n degreeId: formData.degree && formData.degree.code !== \"\" ? formData.degree.code : null,\r\n professionalCategoryId:\r\n formData.professionalCategory && formData.professionalCategory.code !== \"\"\r\n ? formData.professionalCategory.code\r\n : null,\r\n professionalTrainingId: formData.professionalTraining ? formData.professionalTraining.code.toString() : null, // .label?\r\n entrepreneurshipTrainingId: formData.entrepreneurshipTraining\r\n ? formData.entrepreneurshipTraining.code.toString()\r\n : null, // .label?\r\n smallBusinessMgmtTrainingId: formData.smallBusinessMgmtTraining\r\n ? formData.smallBusinessMgmtTraining.code.toString()\r\n : null, // .label?\r\n professionalExperienceList: getListFromFormData(formData.professionalExperience) ?? [],\r\n experience: formData.experience ? formData.experience : null,\r\n isAvailableForInternshipOpportunities: formData.isAvailableForInternshipOpportunities ?? false,\r\n isAvailableForEmploymentOpportunities: formData.isAvailableForEmploymentOpportunities ?? false,\r\n familyIncome: formData.familyIncome ? formData.familyIncome : null,\r\n household: formData.household ? formData.household : 0,\r\n intendedWorkplaceProvinceId: formData.intendedWorkplaceProvince\r\n ? formData.intendedWorkplaceProvince.code\r\n : null,\r\n professionalQualification: formData.professionalQualification ?? \"\",\r\n otherProfessionalExperience: formData.otherProfessionalExperience ?? \"\",\r\n secondaryExperience: formData.secondaryExperience ? formData.secondaryExperience : 0,\r\n occupationalCategoryId: formData.occupationalCategory ? formData.occupationalCategory.code : null,\r\n secondaryProfessionalExperienceList: getListFromFormData(formData.secondaryProfessionalExperience) ?? [],\r\n studiedLanguagesList: getListFromFormData(formData.studiedLanguages) ?? [],\r\n },\r\n },\r\n };\r\n\r\n return user;\r\n }\r\n return formData;\r\n}\r\nexport default frontOfficeIndividualUserRegisterMap;\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n//import custom components\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport IndividualUserData from \"./Sections/IndividualUserData\";\r\nimport PasswordCard from \"../../Components/PasswordCard\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { registerAction } from \"redux/actions/usersAction\";\r\nimport frontOfficeIndividualUserRegisterMap from \"mappers/frontOfficeIndividualUserRegisterMap\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CreateEnterpriseUser(props) {\r\n const history = useHistory();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n function handleRegister(data) {\r\n props.register(frontOfficeIndividualUserRegisterMap(data));\r\n }\r\n\r\n const cancelOnClick = () => {\r\n history.goBack();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n cancelOnClick()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n register: (data) => dispatch(registerAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CreateEnterpriseUser);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport clsx from \"clsx\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormInput from \"components/FormFields/FormInput\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\n// @material-ui/icons components\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport FormMultipleSelect from \"components/FormFields/FormMultipleSelect\";\r\nimport { getDataSetByNameAction, clearDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET, REGISTRATION_CONSTS, REGEX_PATTERNS } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode, getMultipleSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { errorMessages, labels } from \"resources/resources\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction EnterpriseUserData(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n const [isEditable, setIsEditable] = useState(props.isEditable);\r\n\r\n const methods = useFormContext();\r\n\r\n const handleEditSection = () => {\r\n setIsEditable(!isEditable);\r\n };\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES].length === 0) {\r\n props.getDataSetByName(DATASET.PROVINCES);\r\n }\r\n if (\r\n props.dataSetState[DATASET.BUSINESS_PURPOSE] === undefined ||\r\n props.dataSetState[DATASET.BUSINESS_PURPOSE].length === 0\r\n ) {\r\n props.getDataSetByName(DATASET.BUSINESS_PURPOSE);\r\n }\r\n\r\n if (\r\n //EMPTY\r\n props.dataSetState[DATASET.ECONOMIC_ACTIVITIES_CLASSIFICATION] === undefined ||\r\n props.dataSetState[DATASET.ECONOMIC_ACTIVITIES_CLASSIFICATION].length === 0\r\n ) {\r\n props.getDataSetByName(DATASET.ECONOMIC_ACTIVITIES_CLASSIFICATION);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.usersInfo.result !== undefined && !props.isCreate) {\r\n setFormValuesOnMount();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.usersInfo.result]);\r\n\r\n const setFormValuesOnMount = () => {\r\n methods.setValue(\"name\", props.usersInfo.result !== undefined ? props.usersInfo.result?.name : null);\r\n methods.setValue(\"mobilePhone\", props.usersInfo.result !== undefined ? props.usersInfo.result?.mobilePhone : null);\r\n props.setOldMobilePhone(props.usersInfo?.result?.mobilePhone);\r\n methods.setValue(\r\n \"phoneNumberConfirmation\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.mobilePhone : null\r\n );\r\n methods.setValue(\r\n \"alternativeMobilePhone\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.alternativeMobilePhone : null\r\n );\r\n\r\n methods.setValue(\"email\", props.usersInfo.result !== undefined ? props.usersInfo.result?.email : null);\r\n methods.setValue(\"emailConfirmation\", props.usersInfo.result !== undefined ? props.usersInfo.result?.email : null);\r\n props.setOldEmail(props.usersInfo?.result?.email);\r\n\r\n methods.setValue(\r\n \"contactName\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.contactName : null\r\n );\r\n\r\n methods.setValue(\r\n \"isActive\",\r\n DATASET.YES_OR_NO_DROPDOWN.find((t) => t.code === props.usersInfo.result?.isActive)\r\n );\r\n\r\n var businessPurposeList = props.dataSetState[DATASET.BUSINESS_PURPOSE]\r\n ? props.dataSetState[DATASET.BUSINESS_PURPOSE]\r\n : [];\r\n\r\n var businessPurposes =\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.businessPurpose : null;\r\n\r\n methods.setValue(\"businessPurpose\", getMultipleSelectOptionsElementByCode(businessPurposeList, businessPurposes));\r\n\r\n methods.setValue(\r\n \"taxIdNumber\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.taxIdNumber : null\r\n );\r\n\r\n methods.setValue(\r\n \"permitCodeValidUntil\",\r\n props.usersInfo.result !== undefined ? moment(props.usersInfo.result?.userColective?.permitCodeValidUntil) : null\r\n );\r\n\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n\r\n var provinces =\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.compositeAddress?.province : null;\r\n\r\n methods.setValue(\"province\", getSelectOptionsElementByCode(provinceList, provinces));\r\n\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES] ? props.dataSetState[DATASET.MUNICIPALITIES] : [];\r\n\r\n var municipalities =\r\n props.usersInfo.result !== undefined\r\n ? props.usersInfo.result?.userColective?.compositeAddress?.municipality\r\n : null;\r\n\r\n methods.setValue(\"municipality\", getSelectOptionsElementByCode(municipalityList, municipalities));\r\n\r\n methods.setValue(\r\n \"district\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.compositeAddress?.district : null\r\n );\r\n methods.setValue(\r\n \"address\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.compositeAddress?.address : null\r\n );\r\n methods.setValue(\"niss\", props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.NISS : null);\r\n\r\n methods.setValue(\r\n \"permitCode\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.permitCode : null\r\n );\r\n\r\n methods.setValue(\r\n \"companyEmail\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.companyEmail : null\r\n );\r\n methods.setValue(\r\n \"companyPhone\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.companyPhone : null\r\n );\r\n\r\n methods.setValue(\r\n \"experience\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userColective?.experience : null\r\n );\r\n\r\n if (props.dataSetState && props.dataSetState[DATASET.ECONOMIC_ACTIVITIES_CLASSIFICATION]) {\r\n methods.setValue(\r\n \"companyEACId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.ECONOMIC_ACTIVITIES_CLASSIFICATION],\r\n props.usersInfo.result?.userColective?.companyEACId\r\n )\r\n );\r\n\r\n methods.setValue(\r\n \"subsidiaryCompanyEACId\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.ECONOMIC_ACTIVITIES_CLASSIFICATION],\r\n props.usersInfo.result?.userColective?.subsidiaryCompanyEACId\r\n )\r\n );\r\n }\r\n\r\n methods.setValue(\"propertyType\", props.usersInfo.result?.userColective?.propertyType);\r\n methods.setValue(\"subsidiaryCompany\", props.usersInfo.result?.userColective?.subsidiaryCompany);\r\n methods.setValue(\"subsidiaryCompanyPostalCode\", props.usersInfo.result?.userColective?.subsidiaryCompanyPostalCode);\r\n methods.setValue(\"subsidiaryCompanyActivity\", props.usersInfo.result?.userColective?.subsidiaryCompanyActivity);\r\n methods.setValue(\"maleWorkersNumber\", props.usersInfo.result?.userColective?.maleWorkersNumber);\r\n methods.setValue(\"femaleWorkersNumber\", props.usersInfo.result?.userColective?.femaleWorkersNumber);\r\n };\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n {\r\n handleEditSection();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n \r\n \r\n Nome do Responsável\r\n (\r\n \r\n )}\r\n />\r\n {methods.formState.errors[\"contactName\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"contactName\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n {!props.isCreate && (\r\n \r\n \r\n Activo\r\n \r\n {methods.formState.errors[\"isActive\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"isActive\"].message}\r\n \r\n )}\r\n \r\n \r\n )}\r\n\r\n \r\n \r\n Telemóvel\r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n methods.trigger(\"phoneNumberConfirmation\");\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"number\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"mobilePhone\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"mobilePhone\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"mobilePhone\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação de Telemóvel\r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n return true;\r\n },\r\n phoneNumberMatch: (value) => {\r\n return (\r\n value === methods.getValues(\"mobilePhone\") ||\r\n \"O número inserido deve ser igual ao campo 'Telemóvel'\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n methods.trigger(\"mobilePhone\");\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"number\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"phoneNumberConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"phoneNumberConfirmation\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"phoneNumberConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Telemóvel Alternativo (Opcional)\r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n {methods.formState.errors[\"alternativeMobilePhone\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"alternativeMobilePhone\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n E-mail (Opcional)\r\n {\r\n if (value && !REGEX_PATTERNS.EMAIL.test(value)) return \"Formato inválido\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n methods.trigger(\"emailConfirmation\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"email\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"email\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"email\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação de E-mail\r\n {\r\n if (value && !REGEX_PATTERNS.EMAIL.test(value)) return \"Formato inválido\";\r\n return true;\r\n },\r\n EmailMatch: (value) => {\r\n return (\r\n value === methods.getValues(\"email\") || \"O e-mail inserido deve ser igual ao campo 'E-mail'\"\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n methods.trigger(\"email\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"emailConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"emailConfirmation\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"emailConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n return value?.length <= 25 || \"O código de alvará tem tamanho máximo de 25 caracteres\";\r\n },\r\n minValue: (value) => {\r\n return value >= 0 || intl.formatMessage(errorMessages.ErrorMessage_Invalid_Value);\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n Data de validade do alvará\r\n (\r\n (\r\n {\r\n handleValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"permitCodeValidUntil\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"permitCodeValidUntil\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"permitCodeValidUntil\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n {\r\n return value?.length === 10 || \"O NIF deve ter 10 digitos\";\r\n },\r\n minValue: (value) => {\r\n return value >= 0 || intl.formatMessage(errorMessages.ErrorMessage_Invalid_Value);\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n Sector Económico\r\n \r\n {methods.formState.errors[\"businessPurpose\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"businessPurpose\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n {methods.formState.errors[\"province\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Município\r\n \r\n {methods.formState.errors[\"municipality\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"municipality\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n NISS\r\n \r\n \r\n \r\n \r\n }\r\n control={methods.control}\r\n errors={methods.formState.errors}\r\n />\r\n \r\n \r\n {\r\n if (value && !REGEX_PATTERNS.EMAIL.test(value))\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n {\r\n return value >= 0 || intl.formatMessage(errorMessages.ErrorMessage_Invalid_Value);\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserProfile_UserCollective_CompanyData_CompanyEACId)}\r\n \r\n \r\n {methods.formState.errors[\"companyEACId\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"companyEACId\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserProfile_UserCollective_CompanyData_SubsidiaryCompanyEAC)}\r\n \r\n \r\n \r\n \r\n \r\n {\r\n if (value && parseInt(value) < 0) return intl.formatMessage(errorMessages.ErrorMessage_Invalid_Value);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n {\r\n if (value && parseInt(value) < 0) return intl.formatMessage(errorMessages.ErrorMessage_Invalid_Value);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, addEmptyField) => dispatch(getDataSetByNameAction(name, addEmptyField)),\r\n clearDataSetByName: (name) => dispatch(clearDataSetByNameAction(name)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(EnterpriseUserData);\r\n","import { getListFromFormData } from \"utils/formSelectMultiple\";\r\n\r\n// function passwordGenerator() {\r\n// return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (c) =>\r\n// (\r\n// c ^\r\n// (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))\r\n// ).toString(16)\r\n// );\r\n// }\r\nexport function frontOfficeEnterpriseUserRegisterMap(formData) {\r\n if (formData != null && formData !== undefined)\r\n return {\r\n user: {\r\n id: \"\",\r\n userType: 2,\r\n name: formData.name ? formData.name : \"\",\r\n mobilePhone: formData.mobilePhone ? formData.mobilePhone : \"\",\r\n alternativeMobilePhone: formData.alternativeMobilePhone ? formData.alternativeMobilePhone : \"\",\r\n email: formData.email ? formData.email : \"\",\r\n password: formData.password ? formData.password : \"\",\r\n userCode: \"\",\r\n userColective: {\r\n contactName: formData.contactName ? formData.contactName : \"\",\r\n businessPurposeList: getListFromFormData(formData.businessPurpose) ?? [],\r\n taxIdNumber: formData.taxIdNumber ? formData.taxIdNumber : \"\",\r\n permitCode: formData.permitCode ? formData.permitCode : \"\",\r\n permitCodeValidUntil: formData.permitCodeValidUntil ? formData.permitCodeValidUntil : null,\r\n niss: formData.niss ? formData.niss : \"\",\r\n experience: formData.experience ? formData.experience : null,\r\n companyEmail: formData.companyEmail ? formData.companyEmail : \"\",\r\n companyPhone: formData.companyPhone ? formData.companyPhone : \"\",\r\n compositeAddress: {\r\n provinceId: formData.province ? formData.province.code : null,\r\n provinceKey: formData.province ? formData.province.keyValue : \"\",\r\n municipalityId: formData.municipality ? formData.municipality.code : null,\r\n district: formData.district ? formData.district : \"\",\r\n address: formData.address ? formData.address : \"\",\r\n },\r\n companyEACId: formData.companyEACId ? formData.companyEACId.code : null,\r\n propertyType: formData.propertyType ?? \"\",\r\n subsidiaryCompany: formData.subsidiaryCompany ?? \"\",\r\n subsidiaryCompanyPostalCode: formData.subsidiaryCompanyPostalCode ?? \"\",\r\n subsidiaryCompanyActivity: formData.subsidiaryCompanyActivity ?? \"\",\r\n subsidiaryCompanyEACId: formData.subsidiaryCompanyEACId?.code ?? null,\r\n maleWorkersNumber: formData.maleWorkersNumber ?? null,\r\n femaleWorkersNumber: formData.femaleWorkersNumber ?? null,\r\n },\r\n },\r\n };\r\n return formData;\r\n}\r\n\r\nexport default frontOfficeEnterpriseUserRegisterMap;\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport EnterpriseUserData from \"./Sections/EnterpriseUserData\";\r\nimport PasswordCard from \"../../Components/PasswordCard\";\r\nimport { registerAction } from \"redux/actions/usersAction\";\r\nimport frontOfficeEnterpriseUserRegisterMap from \"mappers/frontOfficeEnterpriseUserRegisterMap\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CreateEnterpriseUser(props) {\r\n const history = useHistory();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n function handleRegister(data) {\r\n props.register(frontOfficeEnterpriseUserRegisterMap(data));\r\n }\r\n\r\n const cancelOnClick = () => {\r\n history.goBack();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n cancelOnClick()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n register: (data) => dispatch(registerAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CreateEnterpriseUser);\r\n","import moment from \"moment\";\r\n\r\nexport function frontOfficeIndividualUserUpdateMap(formData, documentTypes, userId) {\r\n //Set FormData\r\n const data = new FormData();\r\n if (formData != null && formData !== undefined) {\r\n const user = {\r\n id: userId,\r\n userType: 1,\r\n name: formData.name ? formData.name : \"\",\r\n mobilePhone: formData.mobilePhone ? formData.mobilePhone : \"\",\r\n alternativeMobilePhone: formData.alternativeMobilePhone ? formData.alternativeMobilePhone : \"\",\r\n email: formData.email ? formData.email : \"\",\r\n password: formData.password ? formData.password : \"\",\r\n isActive: formData.isActive.code,\r\n };\r\n const userSingular = {\r\n lastName: formData.lastname ? formData.lastname : \"\",\r\n dateOfBirth: formData.birthdate ? moment(formData.birthdate).add(1, \"hours\").format(\"YYYY-MM-DD\") : \"\",\r\n identityCard: formData.identityCard ? formData.identityCard : \"\",\r\n genderId: formData.gender ? formData.gender.code : 0,\r\n nationalityId: formData.nationality ? formData.nationality.code : 0,\r\n maritalStatusId: formData.maritalStatus ? formData.maritalStatus.code : 0,\r\n niss: formData.niss ? formData.niss : \"\",\r\n hasNISS: formData.hasNISS ? formData.hasNISS : \"\",\r\n academicLevelId: formData.academicLevel ? formData.academicLevel.code : \"\",\r\n degreeId: formData.degree && formData.degree.code !== \"\" ? formData.degree.code : \"\",\r\n professionalCategoryId:\r\n formData.professionalCategory && formData.professionalCategory.code !== \"\"\r\n ? formData.professionalCategory.code\r\n : \"\",\r\n professionalTrainingId: formData.professionalTraining ? formData.professionalTraining.code.toString() : \"\", // .label?\r\n entrepreneurshipTrainingId: formData.entrepreneurshipTraining\r\n ? formData.entrepreneurshipTraining.code.toString()\r\n : \"\", // .label?\r\n smallBusinessMgmtTrainingId: formData.smallBusinessMgmtTraining\r\n ? formData.smallBusinessMgmtTraining.code.toString()\r\n : \"\", // .label?\r\n experience: formData.experience ? formData.experience : 0,\r\n specialNeedsId: formData.specialNeeds ? formData.specialNeeds.code : null,\r\n SpecialNeedsPercent: formData.specialNeedsPercent ?? null,\r\n isAvailableForInternshipOpportunities: formData.isAvailableForInternshipOpportunities ?? false,\r\n isAvailableForEmploymentOpportunities: formData.isAvailableForEmploymentOpportunities ?? false,\r\n familyIncome: formData.familyIncome ?? 0,\r\n household: formData.household ?? 0,\r\n intendedWorkplaceProvinceId: formData.intendedWorkplaceProvince ? formData.intendedWorkplaceProvince.code : null,\r\n professionalQualification: formData.professionalQualification ?? \"\",\r\n otherProfessionalExperience: formData.otherProfessionalExperience ?? \"\",\r\n secondaryExperience: formData.secondaryExperience ?? 0,\r\n occupationalCategoryId: formData.occupationalCategory ? formData.occupationalCategory.code : null,\r\n };\r\n const compositeAddress = {\r\n provinceId: formData.province ? formData.province.code : 0,\r\n municipalityId: formData.municipality ? formData.municipality.code : 0,\r\n district: formData.district ? formData.district : \"\",\r\n address: formData.address ? formData.address : \"\",\r\n };\r\n\r\n //Append data\r\n data.append(\"id\", userId);\r\n for (const key in user) {\r\n data.append(\"user.\" + key, user[key]);\r\n }\r\n for (const key in userSingular) {\r\n data.append(\"user.userSingular.\" + key, userSingular[key]);\r\n }\r\n for (const key in compositeAddress) {\r\n data.append(\"user.userSingular.compositeAddress.\" + key, compositeAddress[key]);\r\n }\r\n //Lists need to be treated seperately\r\n formData.professionalExperience?.forEach((element) => {\r\n data.append(\"user.userSingular.ProfessionalExperienceList\", element.code);\r\n });\r\n formData.studiedLanguages?.forEach((element) => {\r\n data.append(\"user.userSingular.StudiedLanguagesList\", element.code);\r\n });\r\n formData.secondaryProfessionalExperience?.forEach((element) => {\r\n data.append(\"user.userSingular.SecondaryProfessionalExperienceList\", element.code);\r\n });\r\n //Append documents\r\n let countDoc = 0;\r\n documentTypes?.forEach((dt) => {\r\n if (formData[dt.documentTypeId.toString()] && formData[dt.documentTypeId.toString()][0]) {\r\n data.append(\"user.UserDocuments[\" + countDoc + \"].documentTypeId\", dt.documentTypeId);\r\n data.append(\"user.UserDocuments[\" + countDoc + \"].documentIndex\", countDoc); //we send the index on the files array so the API can identify the document associated with the type\r\n data.append(\"UserDocuments\", formData[dt.documentTypeId.toString()][0]);\r\n countDoc++;\r\n }\r\n });\r\n\r\n return data;\r\n }\r\n return formData;\r\n}\r\n\r\nexport default frontOfficeIndividualUserUpdateMap;\r\n","import React from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function CardTableContainer(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n \r\n \r\n
{props.title}
\r\n
\r\n {\"(\"}\r\n {props.count}\r\n {\")\"}\r\n
\r\n \r\n }\r\n action={\r\n props.viewMoreLink ? (\r\n \r\n {intl.formatMessage(labels.Label_See_More)}\r\n \r\n ) : (\r\n props.actionButtonOnClick && (\r\n \r\n {props.actionButtonLabel}\r\n \r\n )\r\n )\r\n }\r\n />\r\n {props.children}\r\n
\r\n );\r\n}\r\n","import moment from \"moment\";\r\n\r\nexport const getHours = (date) => {\r\n if (date) return moment(date).format(\"HH:mm\");\r\n};\r\nexport const getDate = (date) => {\r\n if (date) return moment(date).format(\"DD/MM/YYYY\");\r\n};\r\n\r\nexport default function formatDate(date) {\r\n if (!date) return null;\r\n\r\n return moment(new Date(date)).format(\"YYYY-MM-DD\");\r\n}\r\n","import { Box, Container, FormGroup, FormHelperText, Grid, InputAdornment, useTheme } from \"@material-ui/core\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport PropTypes from \"prop-types\";\r\nimport { useEffect, useMemo } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport moment from \"moment\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport { useParams } from \"react-router-dom\";\r\n\r\nimport { labels } from \"resources/resources\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport FormDatePicker from \"components/FormFields/FormDatePicker\";\r\nimport FormInput from \"components/FormFields/FormInput\";\r\nimport { createFOUserEmploymentHistoryAction, updateFOUserEmploymentHistoryAction } from \"redux/actions/usersAction\";\r\nimport getDataSetByNameAction from \"redux/actions/datasetsAction\";\r\nimport { getDatasetStateByName, getDatasetDataByCode } from \"utils/datasets\";\r\nimport formatDate from \"utils/date_utils\";\r\nimport { DATASET, UNITS } from \"utils/consts\";\r\nimport { errorMessages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function AddEmploymentHistoryModal({ data, editing = false, onCloseModal, onSuccess }) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n const { userId } = useParams();\r\n const state = useSelector((state) => state);\r\n const dispatch = useDispatch();\r\n\r\n useEffect(() => {\r\n if (getDatasetStateByName(state, DATASET.PROFESSIONAL_CATEGORY).length === 0)\r\n dispatch(getDataSetByNameAction(DATASET.PROFESSIONAL_CATEGORY));\r\n if (getDatasetStateByName(state, DATASET.OPPORTUNITY_TYPE).length === 0)\r\n dispatch(getDataSetByNameAction(DATASET.OPPORTUNITY_TYPE));\r\n }, [dispatch, state]);\r\n\r\n const defaultValues = useMemo(() => {\r\n if (editing) {\r\n const { dataSetState } = state;\r\n\r\n return {\r\n ...data,\r\n professionalCategory: getDatasetDataByCode(\r\n dataSetState[DATASET.PROFESSIONAL_CATEGORY],\r\n data.professionalCategoryId\r\n ),\r\n opportunityType: getDatasetDataByCode(dataSetState[DATASET.OPPORTUNITY_TYPE], data.opportunityTypeId),\r\n workedSince: moment(data.workedSince),\r\n workedUntil: data.workedUntil ? moment(data.workedUntil) : \"\",\r\n };\r\n }\r\n\r\n return data;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [editing]);\r\n\r\n const isInefopOpportunity = useMemo(\r\n () => editing && !!data.opportunityReference,\r\n [data.opportunityReference, editing]\r\n );\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n formState: { errors, isSubmitting },\r\n } = useForm({\r\n defaultValues,\r\n mode: \"onChange\",\r\n });\r\n\r\n const title = useMemo(() => {\r\n const titleSufix = intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EmploymentRecord\r\n );\r\n\r\n let formatedTitle = \"\";\r\n\r\n if (editing) {\r\n formatedTitle = `${intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Edit\r\n )} ${titleSufix}`;\r\n } else {\r\n formatedTitle = `${intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Add\r\n )} ${titleSufix}`;\r\n }\r\n\r\n return formatedTitle;\r\n }, [editing, intl]);\r\n\r\n async function onSubmit(data) {\r\n const dataToSubmit = {\r\n ...data,\r\n FO_UserSingularId: userId,\r\n professionalCategoryId: data.professionalCategory.code,\r\n opportunityTypeId: data.opportunityType.code,\r\n workedSince: formatDate(data.workedSince),\r\n workedUntil: formatDate(data.workedUntil),\r\n };\r\n\r\n if (!editing) {\r\n await dispatch(\r\n createFOUserEmploymentHistoryAction(dataToSubmit, () => {\r\n onCloseModal();\r\n onSuccess();\r\n })\r\n );\r\n } else {\r\n await dispatch(\r\n updateFOUserEmploymentHistoryAction(dataToSubmit, () => {\r\n onCloseModal();\r\n onSuccess();\r\n })\r\n );\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n

{title}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {errors?.professionalCategory?.message}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {errors?.opportunityType?.message}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Button_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Button_Submit)}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nAddEmploymentHistoryModal.propTypes = {\r\n data: PropTypes.object.isRequired,\r\n editing: PropTypes.bool.isRequired,\r\n};\r\n","import React, { useCallback, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport moment from \"moment\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n\r\n// components\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport { PAGINATION } from \"utils/consts\";\r\nimport { getFOUserEmploymentHistoryAction } from \"redux/actions/usersAction\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport CardTableContainer from \"components/Cards/Tables/CardTableContainer\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport AddEmploymentHistoryModal from \"../Modals/AddEmploymentHistoryModal\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction EmploymentHistorySection(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const [page, setPage] = useState(1);\r\n\r\n const [showAddEmploymentHistoryModal, setShowAddEmploymentHistoryModal] = useState({\r\n open: false,\r\n editing: false,\r\n data: {},\r\n });\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityNumber),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Company),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Profession),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_OpportunityType),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_WorkTimeFrame),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Salary),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Observations),\r\n \"\",\r\n ];\r\n\r\n const getFOUserEmploymentHistory = useCallback(() => {\r\n const filter = {\r\n pageIndex: page <= 0 ? 1 : page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n userId: props.userId,\r\n };\r\n \r\n props.getFOUserEmploymentHistory(filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page]);\r\n\r\n useEffect(() => {\r\n getFOUserEmploymentHistory();\r\n }, [getFOUserEmploymentHistory]);\r\n\r\n function handleToggleAddEmploymentHistoryModal(data = {}, editing = false) {\r\n setShowAddEmploymentHistoryModal((prevState) => ({\r\n open: !prevState.open,\r\n editing,\r\n data,\r\n }));\r\n }\r\n\r\n function handleOnSuccessAction() {\r\n setPage(1);\r\n getFOUserEmploymentHistory();\r\n }\r\n\r\n return (\r\n <>\r\n handleToggleAddEmploymentHistoryModal()}\r\n >\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {props.usersState?.getFOUserEmploymentHistory_result?.data?.map((prop, key) => (\r\n \r\n \r\n {prop?.opportunityReference && (\r\n {\r\n history.push(\"/admin/opportunity-details/\" + prop?.opportunityAlternateKey);\r\n }}\r\n >\r\n {prop?.opportunityReference}\r\n \r\n )}\r\n\r\n {!prop?.opportunityReference && N/A}\r\n \r\n \r\n {prop?.companyName}\r\n \r\n \r\n {prop?.professionalCategoryDescription}\r\n \r\n \r\n {prop?.opportunityTypeDescription}\r\n \r\n \r\n \r\n {!prop?.workedSince && !prop?.workedUntil\r\n ? intl.formatMessage(labels.Label_Undefined)\r\n : (prop?.workedSince\r\n ? moment(prop?.workedSince).format(\"DD/MM/YYYY\")\r\n : intl.formatMessage(labels.Label_Undefined)) +\r\n \" - \" +\r\n (prop?.workedUntil\r\n ? moment(prop?.workedUntil).format(\"DD/MM/YYYY\")\r\n : intl.formatMessage(labels.Label_Undefined))}\r\n \r\n \r\n \r\n {prop?.salary}\r\n \r\n \r\n {prop?.observations}\r\n \r\n\r\n \r\n {\r\n handleToggleAddEmploymentHistoryModal(prop, true);\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Button_Edit)}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getFOUserEmploymentHistory: (data) => dispatch(getFOUserEmploymentHistoryAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(EmploymentHistorySection);\r\n","import React, { useMemo } from \"react\";\r\nimport { useDispatch } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { FormGroup } from \"@material-ui/core\";\r\nimport { useParams } from \"react-router-dom\";\r\n\r\nimport {\r\n createFOUserUnemploymentHistoryAction,\r\n updateFOUserUnemploymentHistoryAction,\r\n} from \"redux/actions/usersAction\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\nimport formatDate from \"utils/date_utils\";\r\nimport FormInput from \"components/FormFields/FormInput\";\r\nimport FormDatePicker from \"components/FormFields/FormDatePicker\";\r\n\r\nexport default function AddUnemploymentHistoryModal({ data, editing = false, onCloseModal, onSuccess }) {\r\n const intl = useIntl();\r\n const dispatch = useDispatch();\r\n const { userId } = useParams();\r\n\r\n const defaultValues = useMemo(() => {\r\n if (editing) {\r\n return {\r\n ...data,\r\n startDate: moment(data.startDate),\r\n endDate: data.endDate ? moment(data.endDate) : \"\",\r\n };\r\n }\r\n\r\n return data;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [editing]);\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n getValues,\r\n trigger,\r\n formState: { isSubmitting },\r\n } = useForm({\r\n defaultValues,\r\n mode: \"onChange\",\r\n });\r\n\r\n const onSubmit = async (data) => {\r\n const dataToSubmit = {\r\n unemploymentHistoryEntryId: data?.id ?? null,\r\n FO_UserSingularId: userId,\r\n startDate: formatDate(data.startDate),\r\n endDate: formatDate(data.endDate),\r\n observations: data.observations,\r\n };\r\n\r\n if (editing) {\r\n await dispatch(\r\n updateFOUserUnemploymentHistoryAction(dataToSubmit, () => {\r\n onCloseModal();\r\n onSuccess();\r\n })\r\n );\r\n } else {\r\n await dispatch(\r\n createFOUserUnemploymentHistoryAction(dataToSubmit, () => {\r\n onCloseModal();\r\n onSuccess();\r\n })\r\n );\r\n }\r\n };\r\n\r\n const title = useMemo(() => {\r\n const titleSufix = intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_UnemploymentRecord\r\n );\r\n\r\n let formatedTitle = \"\";\r\n\r\n if (editing) {\r\n formatedTitle = `${intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Edit\r\n )} ${titleSufix}`;\r\n } else {\r\n formatedTitle = `${intl.formatMessage(\r\n labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Add\r\n )} ${titleSufix}`;\r\n }\r\n\r\n return formatedTitle;\r\n }, [editing, intl]);\r\n\r\n return (\r\n \r\n \r\n

{title}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Button_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Button_Submit)}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n","import React, { useCallback, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport moment from \"moment\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n\r\nimport { useParams } from \"react-router-dom\";\r\n\r\n// components\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport { PAGINATION } from \"utils/consts\";\r\nimport { getFOUserUnemploymentHistoryAction } from \"redux/actions/usersAction\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport CardTableContainer from \"components/Cards/Tables/CardTableContainer\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\nimport AddUnemploymentHistoryModal from \"views/admin/UserManagement/FrontOffice/IndividualUser/Modals/AddUnemploymentHistoryModal\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UnemploymentHistorySection({ usersState, ...props }) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [page, setPage] = useState(1);\r\n const { userId } = useParams();\r\n\r\n const [showAddUnemploymentHistoryModal, setShowAddUnemploymentHistoryModal] = useState({\r\n open: false,\r\n editing: false,\r\n data: {},\r\n });\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_StartDate),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_EndDate),\r\n intl.formatMessage(labels.Label_UserProfile_UserSingular_EmploymentAndUnemploymentHistory_Observations),\r\n \"\",\r\n ];\r\n\r\n const getFOUserUnemploymentHistory = useCallback(\r\n () => {\r\n const filter = {\r\n pageIndex: page <= 0 ? 1 : page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n userId,\r\n };\r\n\r\n props.getFOUserUnemploymentHistory(filter);\r\n },\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n [page]\r\n );\r\n\r\n useEffect(() => {\r\n getFOUserUnemploymentHistory();\r\n }, [getFOUserUnemploymentHistory]);\r\n\r\n const handleToggleAddUnemploymentHistoryModal = (data = {}, editing = false) => {\r\n setShowAddUnemploymentHistoryModal((prevState) => ({\r\n open: !prevState.open,\r\n editing,\r\n data,\r\n }));\r\n };\r\n\r\n function handleOnSuccessAction() {\r\n setPage(1);\r\n getFOUserUnemploymentHistory();\r\n }\r\n\r\n return (\r\n <>\r\n handleToggleAddUnemploymentHistoryModal()}\r\n >\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {usersState?.getFOUserUnemploymentHistory_result?.data?.map((prop, key) => (\r\n \r\n \r\n {moment(prop?.startDate).format(\"DD/MM/YYYY\")}\r\n \r\n \r\n \r\n {prop?.endDate\r\n ? moment(prop?.endDate).format(\"DD/MM/YYYY\")\r\n : intl.formatMessage(labels.Label_Undefined)}\r\n \r\n \r\n \r\n {prop?.observations}\r\n \r\n\r\n \r\n handleToggleAddUnemploymentHistoryModal(prop, true)}\r\n >\r\n {intl.formatMessage(labels.Label_Button_Edit)}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getFOUserUnemploymentHistory: (data) => dispatch(getFOUserUnemploymentHistoryAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UnemploymentHistorySection);\r\n","import React from \"react\";\r\n\r\nimport EmploymentHistorySection from \"views/admin/UserManagement/FrontOffice/IndividualUser/Sections/EmploymentHistorySection\";\r\nimport UnemploymentHistorySection from \"views/admin/UserManagement/FrontOffice/IndividualUser/Sections/UnemploymentHistorySection\";\r\n\r\nfunction EmploymentAndUnemploymentHistory(props) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default EmploymentAndUnemploymentHistory;\r\n","import { Box, Container, FormGroup, FormHelperText, Grid, useTheme } from \"@material-ui/core\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\n\r\nimport { useForm } from \"react-hook-form\";\r\nimport { useEffect, useMemo } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport moment from \"moment\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\n\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FormDatePicker from \"components/FormFields/FormDatePicker\";\r\nimport FormInput from \"components/FormFields/FormInput\";\r\nimport {\r\n createFoUSInterventionOtherAreaAction,\r\n updateFoUSInterventionOtherAreaAction,\r\n} from \"redux/actions/usersAction\";\r\nimport getDataSetByNameAction from \"redux/actions/datasetsAction\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport formatDate from \"utils/date_utils\";\r\nimport { getDatasetDataByCode, getDatasetStateByName } from \"utils/datasets\";\r\nimport { labels, errorMessages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function AddInterventionOtherAreaModal({ data, editing = false, onCloseModal, onSuccess }) {\r\n const intl = useIntl();\r\n const dispatch = useDispatch();\r\n const { userId } = useParams();\r\n const state = useSelector((state) => state);\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n\r\n useEffect(() => {\r\n if (getDatasetStateByName(state, DATASET.INTERVENTION_OTHER_AREA).length === 0)\r\n dispatch(getDataSetByNameAction(DATASET.INTERVENTION_OTHER_AREA));\r\n }, [dispatch, state]);\r\n\r\n useEffect(() => {\r\n if (getDatasetStateByName(state, DATASET.INTERVENTION_OTHER_AREA).length !== 0)\r\n setValue(\r\n \"interventionOtherArea\",\r\n getDatasetDataByCode(state.dataSetState[DATASET.INTERVENTION_OTHER_AREA], data.interventionOtherAreaId)\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [state.dataSetState[DATASET.INTERVENTION_OTHER_AREA]]);\r\n\r\n const defaultValues = useMemo(() => {\r\n const { dataSetState } = state;\r\n\r\n if (editing) {\r\n return {\r\n ...data,\r\n date: moment(data.date),\r\n interventionOtherArea: getDatasetDataByCode(\r\n dataSetState[DATASET.INTERVENTION_OTHER_AREA],\r\n data.interventionOtherAreaId\r\n ),\r\n };\r\n }\r\n\r\n return data;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [data, editing]);\r\n\r\n const {\r\n control,\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n formState: { errors, isSubmitting },\r\n } = useForm({\r\n defaultValues,\r\n mode: \"onChange\",\r\n });\r\n\r\n const title = useMemo(() => {\r\n const titleSufix = intl.formatMessage(labels.Label_InterventionOtherArea);\r\n\r\n let formatedTitle = \"\";\r\n\r\n if (editing) {\r\n formatedTitle = `${intl.formatMessage(labels.Label_Generic_Edit)} ${titleSufix}`;\r\n } else {\r\n formatedTitle = `${intl.formatMessage(labels.Label_Generic_Add)} ${titleSufix}`;\r\n }\r\n\r\n return formatedTitle;\r\n }, [editing, intl]);\r\n\r\n async function onSubmit({ interventionOtherArea, date, reasonForIntervention, results, id }) {\r\n const dataToSubmit = {\r\n results,\r\n reasonForIntervention,\r\n FO_UserSingularId: userId,\r\n interventionOtherAreaId: interventionOtherArea.code,\r\n date: formatDate(date),\r\n };\r\n\r\n if (!editing) {\r\n await dispatch(\r\n createFoUSInterventionOtherAreaAction(dataToSubmit, () => {\r\n onCloseModal();\r\n onSuccess();\r\n })\r\n );\r\n } else {\r\n await dispatch(\r\n updateFoUSInterventionOtherAreaAction(\r\n {\r\n id,\r\n ...dataToSubmit,\r\n },\r\n () => {\r\n onCloseModal();\r\n onSuccess();\r\n }\r\n )\r\n );\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n

{title}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {errors?.interventionOtherArea?.message}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Button_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Button_Submit)}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n","import { Box, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, makeStyles } from \"@material-ui/core\";\r\nimport { Pagination } from \"@material-ui/lab\";\r\nimport CardTableContainer from \"components/Cards/Tables/CardTableContainer\";\r\nimport { useCallback, useEffect, useState } from \"react\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\nimport { useIntl } from \"react-intl\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport { PAGINATION } from \"utils/consts\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport moment from \"moment\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport { getFoUSInterventionOtherAreaAction } from \"redux/actions/usersAction\";\r\nimport AddInterventionOtherAreaModal from \"../Modals/AddInterventionOtherAreaModal\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function InterventionOtherAreaSection() {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const { userId } = useParams();\r\n\r\n const [page, setPage] = useState(1);\r\n const [modal, setModal] = useState({\r\n open: false,\r\n editing: false,\r\n data: {},\r\n });\r\n\r\n const dispatch = useDispatch();\r\n const { getFoUSInterventionOtherArea_result, getFoUSInterventionOtherArea_loading } = useSelector(\r\n (state) => state.usersState\r\n );\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_InterventionOtherArea_Area),\r\n intl.formatMessage(labels.Label_Date),\r\n intl.formatMessage(labels.Label_InterventionOtherArea_ReasonForIntervention),\r\n intl.formatMessage(labels.Label_InterventionOtherArea_Results),\r\n \"\",\r\n ];\r\n\r\n const handleChangePage = (_, value) => {\r\n setPage(value);\r\n };\r\n\r\n const getData = useCallback(() => {\r\n const filter = {\r\n pageIndex: page <= 0 ? 1 : page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n userId,\r\n };\r\n\r\n dispatch(getFoUSInterventionOtherAreaAction(filter));\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page]);\r\n\r\n useEffect(() => {\r\n getData();\r\n }, [getData]);\r\n\r\n function handleToggleModal(data = {}, editing = false) {\r\n setModal((prevState) => ({\r\n open: !prevState.open,\r\n editing,\r\n data,\r\n }));\r\n }\r\n\r\n function handleOnCloseAction() {\r\n setModal(() => ({\r\n open: false,\r\n }));\r\n }\r\n\r\n function handleOnSuccessAction() {\r\n setPage(1);\r\n getData();\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {getFoUSInterventionOtherArea_result?.data?.map(\r\n ({\r\n interventionOtherAreaDescription,\r\n interventionOtherAreaId,\r\n date,\r\n reasonForIntervention,\r\n results,\r\n id,\r\n }) => (\r\n \r\n \r\n {interventionOtherAreaDescription}\r\n \r\n \r\n {moment(date).format(\"DD/MM/YYYY\")}\r\n \r\n \r\n {reasonForIntervention}\r\n \r\n \r\n {results}\r\n \r\n\r\n \r\n \r\n handleToggleModal({ interventionOtherAreaId, date, reasonForIntervention, results, id }, true)\r\n }\r\n >\r\n {intl.formatMessage(labels.Label_Button_Edit)}\r\n \r\n \r\n \r\n )\r\n )}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport IndividualUserData from \"./Sections/IndividualUserData\";\r\nimport { getUserInfoAction, updateIndividualUserAction, getUserDocumentAction } from \"redux/actions/usersAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { showGenericTwoButtonDialogAction } from \"redux/actions/dialogsAction\";\r\nimport frontOfficeIndividualUserUpdateMap from \"mappers/frontOfficeIndividualUserUpdateMap\";\r\nimport { getSelectOptionsElementByCode, getMultipleSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport EmploymentAndUnemploymentHistory from \"./EmploymentAndUnemploymentHistory\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport InterventionOtherAreaSection from \"./Sections/InterventionOtherAreaSection\";\r\nimport Tabs from \"components/Tabs/Tabs\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction EditIndividualUser(props) {\r\n const history = useHistory();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const TABS = {\r\n USER_DATA: \"userData\",\r\n EMPLOYMENT_AND_UNEMPLOYMENT_HISTORY: \"employmentAndUnemploymentHistory\",\r\n INTERVENTION_FROM_OTHERS_AREAS: \"interventionFromOthersAreasTab\",\r\n };\r\n\r\n const [oldEmail, setOldEmail] = useState(\"\");\r\n const [oldMobilePhone, setOldMobilePhone] = useState(\"\");\r\n const [isEditablePersonalData, setIsEditablePersonalData] = useState(false);\r\n const [isEditableProfessionalData, setIsEditableProfessionalData] = useState(false);\r\n const [isEditableUserDocuments, setIsEditableUserDocuments] = useState(false);\r\n const [tabType, setTabType] = React.useState(TABS.USER_DATA);\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n props.getUserInfo(props.match.params.userId);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.userId]);\r\n\r\n useEffect(() => {\r\n if (props.usersInfo.result !== undefined) {\r\n setFormProfessionalDataValuesOnMount();\r\n setPersonalDataFormValuesOnMount();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.usersInfo.result]);\r\n\r\n //#region ACADEMIC_LEVEL\r\n useEffect(() => {\r\n if (props.dataSetState && props.dataSetState[DATASET.ACADEMIC_LEVEL] && props.usersInfo.result) {\r\n var academicLevelList = props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n ? props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n : [];\r\n\r\n var academicLevels =\r\n props.usersInfo.result?.userSingular !== undefined ? props.usersInfo.result?.userSingular?.academicLevel : null;\r\n var selectedAcademicLevel = getSelectOptionsElementByCode(academicLevelList, academicLevels);\r\n\r\n methods.setValue(\"academicLevel\", selectedAcademicLevel);\r\n if (selectedAcademicLevel) props.getDataSet(DATASET.ACADEMIC_DEGREE, selectedAcademicLevel.keyValue);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ACADEMIC_LEVEL]]);\r\n //#endregion\r\n\r\n //#region ACADEMIC_DEGREE\r\n useEffect(() => {\r\n if (props.dataSetState && props.usersInfo.result) {\r\n methods.setValue(\r\n \"degree\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.ACADEMIC_DEGREE],\r\n props.usersInfo.result?.userSingular?.degree\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ACADEMIC_DEGREE]]);\r\n //#endregion\r\n\r\n useEffect(() => {\r\n if (props.dataSetState && props.dataSetState[DATASET.LANGUAGES]) {\r\n methods.setValue(\r\n \"studiedLanguages\",\r\n getMultipleSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.LANGUAGES],\r\n props.usersInfo.result?.userSingular?.studiedLanguagesList\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.LANGUAGES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState && props.dataSetState[DATASET.OCCUPATIONAL_CATEGORIES]) {\r\n methods.setValue(\r\n \"occupationalCategory\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.OCCUPATIONAL_CATEGORIES],\r\n props.usersInfo.result?.userSingular?.occupationalCategoryId\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.OCCUPATIONAL_CATEGORIES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState && props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY]) {\r\n methods.setValue(\r\n \"secondaryProfessionalExperience\",\r\n getMultipleSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY],\r\n props.usersInfo.result?.userSingular?.secondaryProfessionalExperienceList\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY]]);\r\n\r\n const setFormProfessionalDataValuesOnMount = () => {\r\n if (props.dataSetState && props.dataSetState[DATASET.ACADEMIC_LEVEL] && props.usersInfo.result) {\r\n var academicLevelList = props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n ? props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n : [];\r\n\r\n var academicLevels =\r\n props.usersInfo.result?.userSingular !== undefined ? props.usersInfo.result?.userSingular?.academicLevel : null;\r\n var selectedAcademicLevel = getSelectOptionsElementByCode(academicLevelList, academicLevels);\r\n\r\n methods.setValue(\"academicLevel\", selectedAcademicLevel);\r\n if (selectedAcademicLevel) props.getDataSet(DATASET.ACADEMIC_DEGREE, selectedAcademicLevel.keyValue);\r\n }\r\n\r\n var professionalCategoryList = props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n ? props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n : [];\r\n\r\n var professionalCategories =\r\n props.usersInfo.result?.userSingular !== undefined\r\n ? props.usersInfo.result?.userSingular?.professionalCategory\r\n : null;\r\n\r\n methods.setValue(\r\n \"professionalCategory\",\r\n getSelectOptionsElementByCode(professionalCategoryList, professionalCategories)\r\n );\r\n\r\n var entrepreneurshipTrainingList = props.dataSetState[DATASET.ENTREPRENEURSHIP_TRAINNING]\r\n ? props.dataSetState[DATASET.ENTREPRENEURSHIP_TRAINNING]\r\n : [];\r\n\r\n var entrepreneurshipTrainings =\r\n props.usersInfo.result?.userSingular !== undefined\r\n ? props.usersInfo.result?.userSingular?.entrepreneurshipTraining\r\n : null;\r\n\r\n methods.setValue(\r\n \"entrepreneurshipTraining\",\r\n getSelectOptionsElementByCode(entrepreneurshipTrainingList, parseInt(entrepreneurshipTrainings))\r\n );\r\n\r\n var professionalExperienceList = props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY]\r\n ? props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY]\r\n : [];\r\n\r\n var professionalExperiences =\r\n props.usersInfo.result?.userSingular !== undefined\r\n ? props.usersInfo.result?.userSingular?.professionalExperience\r\n : null;\r\n\r\n methods.setValue(\r\n \"professionalExperience\",\r\n getMultipleSelectOptionsElementByCode(professionalExperienceList, professionalExperiences)\r\n );\r\n\r\n var professionalTrainingList = props.dataSetState[DATASET.PROFESSIONAL_TRAINNING]\r\n ? props.dataSetState[DATASET.PROFESSIONAL_TRAINNING]\r\n : [];\r\n\r\n var professionalTrainings =\r\n props.usersInfo.result?.userSingular !== undefined\r\n ? props.usersInfo.result?.userSingular?.professionalTraining\r\n : null;\r\n\r\n methods.setValue(\r\n \"professionalTraining\",\r\n getSelectOptionsElementByCode(professionalTrainingList, parseInt(professionalTrainings))\r\n );\r\n\r\n var smallBusinessMgmtTrainingList = props.dataSetState[DATASET.SMALL_BUSINESS_MGMT_TRAINNING]\r\n ? props.dataSetState[DATASET.SMALL_BUSINESS_MGMT_TRAINNING]\r\n : [];\r\n\r\n var smallBusinessMgmtTrainings =\r\n props.usersInfo.result?.userSingular !== undefined\r\n ? props.usersInfo.result?.userSingular?.smallBusinessMgmtTraining\r\n : null;\r\n\r\n methods.setValue(\r\n \"smallBusinessMgmtTraining\",\r\n getSelectOptionsElementByCode(smallBusinessMgmtTrainingList, parseInt(smallBusinessMgmtTrainings))\r\n );\r\n\r\n methods.setValue(\r\n \"experience\",\r\n props.usersInfo.result?.userSingular !== undefined ? props.usersInfo.result?.userSingular?.experience : null\r\n );\r\n\r\n if (props.dataSetState[DATASET.LANGUAGES]) {\r\n methods.setValue(\r\n \"studiedLanguages\",\r\n getMultipleSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.LANGUAGES],\r\n props.usersInfo.result?.userSingular?.studiedLanguagesList\r\n )\r\n );\r\n }\r\n\r\n if (props.dataSetState[DATASET.OCCUPATIONAL_CATEGORIES]) {\r\n methods.setValue(\r\n \"occupationalCategory\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.OCCUPATIONAL_CATEGORIES],\r\n props.usersInfo.result?.userSingular?.occupationalCategoryId\r\n )\r\n );\r\n }\r\n\r\n if (props.dataSetState[DATASET.PROVINCES]) {\r\n methods.setValue(\r\n \"intendedWorkplaceProvince\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.usersInfo.result?.userSingular?.intendedWorkplaceProvinceId\r\n )\r\n );\r\n }\r\n\r\n if (props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY]) {\r\n methods.setValue(\r\n \"secondaryProfessionalExperience\",\r\n getMultipleSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY],\r\n props.usersInfo.result?.userSingular?.secondaryProfessionalExperienceList\r\n )\r\n );\r\n }\r\n\r\n methods.setValue(\"secondaryExperience\", props.usersInfo.result?.userSingular?.secondaryExperience);\r\n methods.setValue(\"professionalQualification\", props.usersInfo.result?.userSingular?.professionalQualification);\r\n methods.setValue(\"otherProfessionalExperience\", props.usersInfo.result?.userSingular?.otherProfessionalExperience);\r\n };\r\n\r\n //#region PROVINCES\r\n useEffect(() => {\r\n if (props.dataSetState && props.dataSetState[DATASET.PROVINCES]) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n\r\n var provinces =\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.compositeAddress?.province : null;\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, provinces);\r\n methods.setValue(\"province\", selectedProvince);\r\n if (selectedProvince) props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n\r\n methods.setValue(\r\n \"intendedWorkplaceProvince\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.usersInfo.result?.userSingular?.intendedWorkplaceProvinceId\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n //#endregion\r\n\r\n //#region MUNICIPALITIES\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n methods.setValue(\r\n \"municipality\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.MUNICIPALITIES],\r\n props.usersInfo.result?.userSingular?.compositeAddress?.municipality\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MUNICIPALITIES]]);\r\n //#endregion\r\n\r\n const setPersonalDataFormValuesOnMount = () => {\r\n methods.setValue(\"name\", props.usersInfo.result !== undefined ? props.usersInfo.result?.name : null);\r\n methods.setValue(\r\n \"lastname\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.lastName : null\r\n );\r\n\r\n methods.setValue(\r\n \"isActive\",\r\n DATASET.YES_OR_NO_DROPDOWN.find((t) => t.code === props.usersInfo.result?.isActive)\r\n );\r\n\r\n methods.setValue(\r\n \"birthdate\",\r\n props.usersInfo.result !== undefined ? moment(props.usersInfo.result?.userSingular?.dateOfBirth) : null\r\n );\r\n methods.setValue(\r\n \"identityCard\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.identityCard : null\r\n );\r\n\r\n var specialNeedsList = props.dataSetState[DATASET.SPECIAL_NEEDS] ? props.dataSetState[DATASET.SPECIAL_NEEDS] : [];\r\n var specialNeeds =\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.specialNeedsId : null;\r\n methods.setValue(\"specialNeeds\", getSelectOptionsElementByCode(specialNeedsList, specialNeeds));\r\n\r\n methods.setValue(\r\n \"specialNeedsPercent\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.specialNeedsPercent : null\r\n );\r\n\r\n var genderList = props.dataSetState[DATASET.GENDER] ? props.dataSetState[DATASET.GENDER] : [];\r\n\r\n var gender = props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.gender : null;\r\n\r\n methods.setValue(\"gender\", getSelectOptionsElementByCode(genderList, gender));\r\n\r\n var maritalList = props.dataSetState[DATASET.MARITAL_STATUS] ? props.dataSetState[DATASET.MARITAL_STATUS] : [];\r\n\r\n var marital = props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.maritalStatus : null;\r\n\r\n methods.setValue(\"maritalStatus\", getSelectOptionsElementByCode(maritalList, marital));\r\n\r\n var nationalityList = props.dataSetState[DATASET.NATIONALITIES] ? props.dataSetState[DATASET.NATIONALITIES] : [];\r\n\r\n var nationalities = props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.nationality : null;\r\n\r\n methods.setValue(\"nationality\", getSelectOptionsElementByCode(nationalityList, nationalities));\r\n\r\n if (props.dataSetState && props.dataSetState[DATASET.PROVINCES]) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n\r\n var provinces =\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.compositeAddress?.province : null;\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, provinces);\r\n methods.setValue(\"province\", selectedProvince);\r\n if (selectedProvince) props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n }\r\n\r\n methods.setValue(\r\n \"district\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.compositeAddress.district : null\r\n );\r\n methods.setValue(\"niss\", props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.niss : null);\r\n methods.setValue(\r\n \"hasNISS\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.hasNISS : null\r\n );\r\n methods.setValue(\r\n \"address\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.userSingular?.compositeAddress.address : null\r\n );\r\n methods.setValue(\"mobilePhone\", props.usersInfo.result !== undefined ? props.usersInfo.result?.mobilePhone : null);\r\n setOldMobilePhone(props.usersInfo.result?.mobilePhone);\r\n methods.setValue(\r\n \"mobilePhoneConfirmation\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.mobilePhone : null\r\n );\r\n methods.setValue(\r\n \"alternativeMobilePhone\",\r\n props.usersInfo.result !== undefined ? props.usersInfo.result?.alternativeMobilePhone : null\r\n );\r\n methods.setValue(\"email\", props.usersInfo.result !== undefined ? props.usersInfo.result?.email : null);\r\n setOldEmail(props.usersInfo.result?.email);\r\n methods.setValue(\"emailConfirmation\", props.usersInfo.result !== undefined ? props.usersInfo.result?.email : null);\r\n methods.setValue(\r\n \"isAvailableForInternshipOpportunities\",\r\n props.usersInfo.result !== undefined\r\n ? props.usersInfo.result?.userSingular?.isAvailableForInternshipOpportunities\r\n : false\r\n );\r\n methods.setValue(\r\n \"isAvailableForEmploymentOpportunities\",\r\n props.usersInfo.result !== undefined\r\n ? props.usersInfo.result?.userSingular?.isAvailableForEmploymentOpportunities\r\n : false\r\n );\r\n\r\n methods.setValue(\"household\", props.usersInfo.result?.userSingular?.household);\r\n methods.setValue(\"familyIncome\", props.usersInfo.result?.userSingular?.familyIncome);\r\n };\r\n\r\n const cancelOnClick = () => {\r\n history.goBack();\r\n };\r\n\r\n const handleEditSectionPersonalData = () => {\r\n setIsEditablePersonalData(!isEditablePersonalData);\r\n if (isEditablePersonalData) {\r\n methods.clearErrors();\r\n }\r\n };\r\n\r\n const handleEditSectionProfessionalData = () => {\r\n setIsEditableProfessionalData(!isEditableProfessionalData);\r\n if (isEditableProfessionalData) {\r\n methods.clearErrors();\r\n }\r\n };\r\n\r\n const handleEditSectionUserDocuments = () => {\r\n setIsEditableUserDocuments(!isEditableUserDocuments);\r\n if (isEditableUserDocuments) {\r\n methods.clearErrors();\r\n }\r\n };\r\n\r\n const handleTabType = (event, value) => {\r\n if (value !== null) {\r\n setTabType(value);\r\n }\r\n };\r\n\r\n const onSubmit = (data) => {\r\n const email = data.email;\r\n const mobilePhone = data.mobilePhone;\r\n\r\n if (email !== oldEmail || mobilePhone !== oldMobilePhone)\r\n props.showDialog(\r\n \"Pretende continuar?\",\r\n \"Esta ação vai forçar a confirmação do telemóvel/email do utilizador.\",\r\n function () {\r\n return props.updateIndividualUser(\r\n frontOfficeIndividualUserUpdateMap(\r\n data,\r\n props.usersInfo.result?.userTypeDocuments,\r\n props.match.params.userId\r\n )\r\n );\r\n }\r\n );\r\n else\r\n props.updateIndividualUser(\r\n frontOfficeIndividualUserUpdateMap(data, props.usersInfo.result?.userTypeDocuments, props.match.params.userId)\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n {tabType === TABS.EMPLOYMENT_AND_UNEMPLOYMENT_HISTORY && (\r\n \r\n )}\r\n\r\n {tabType === TABS.USER_DATA && (\r\n \r\n
\r\n \r\n\r\n {(isEditableProfessionalData || isEditablePersonalData || isEditableUserDocuments) && (\r\n \r\n \r\n \r\n \r\n cancelOnClick()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Update_Submit)}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
\r\n )}\r\n\r\n {tabType === TABS.INTERVENTION_FROM_OTHERS_AREAS && }\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateIndividualUser: (data) => dispatch(updateIndividualUserAction(data)),\r\n getUserInfo: (id) => dispatch(getUserInfoAction(id)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getUserDocument: (docId, docName) => dispatch(getUserDocumentAction(docId, docName)),\r\n showDialog: (message, yesAction, noAction) =>\r\n dispatch(showGenericTwoButtonDialogAction(message, yesAction, noAction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(EditIndividualUser);\r\n","import moment from \"moment\";\r\nexport function frontOfficeEnterpriseUserUpdateMap(formData, emailChanged, userId) {\r\n if (formData.email !== emailChanged) {\r\n var auxEmail = formData.email;\r\n } else {\r\n auxEmail = \"\";\r\n }\r\n if (formData != null && formData !== undefined) {\r\n const data = new FormData();\r\n const user = {\r\n id: userId,\r\n userType: 2,\r\n name: formData.name ? formData.name : \"\",\r\n mobilePhone: formData.mobilePhone ? formData.mobilePhone : \"\",\r\n alternativeMobilePhone: formData.alternativeMobilePhone ? formData.alternativeMobilePhone : \"\",\r\n email: auxEmail,\r\n password: \"\",\r\n isActive: formData.isActive.code,\r\n };\r\n\r\n const userColective = {\r\n contactName: formData.contactName ? formData.contactName : \"\",\r\n taxIdNumber: formData.taxIdNumber ? formData.taxIdNumber : \"\",\r\n permitCode: formData.permitCode ? formData.permitCode : \"\",\r\n permitCodeValidUntil: formData.permitCodeValidUntil\r\n ? moment(formData.permitCodeValidUntil).format(\"YYYY-MM-DD\")\r\n : \"\",\r\n niss: formData.niss ? formData.niss : \"\",\r\n experience: formData.experience ? formData.experience : 0,\r\n companyEmail: formData.companyEmail ? formData.companyEmail : \"\",\r\n companyPhone: formData.companyPhone ? formData.companyPhone : \"\",\r\n companyEACId: formData.companyEACId ? formData.companyEACId.code : 0,\r\n propertyType: formData.propertyType ?? \"\",\r\n subsidiaryCompany: formData.subsidiaryCompany ?? \"\",\r\n subsidiaryCompanyPostalCode: formData.subsidiaryCompanyPostalCode ?? \"\",\r\n subsidiaryCompanyActivity: formData.subsidiaryCompanyActivity ?? \"\",\r\n subsidiaryCompanyEACId: formData.subsidiaryCompanyEACId?.code,\r\n maleWorkersNumber: formData.maleWorkersNumber ?? \"\",\r\n femaleWorkersNumber: formData.femaleWorkersNumber ?? \"\",\r\n };\r\n\r\n const compositeAddress = {\r\n provinceId: formData.province ? formData.province.code : 0,\r\n municipalityId: formData.municipality ? formData.municipality.code : 0,\r\n district: formData.district ? formData.district : \"\",\r\n address: formData.address ? formData.address : \"\",\r\n };\r\n\r\n //Append data\r\n data.append(\"id\", userId);\r\n\r\n for (const key in user) {\r\n data.append(\"user.\" + key, user[key]);\r\n }\r\n\r\n for (const key in userColective) {\r\n data.append(\"user.userColective.\" + key, userColective[key]);\r\n }\r\n\r\n for (const key in compositeAddress) {\r\n data.append(\"user.userColective.compositeAddress.\" + key, compositeAddress[key]);\r\n }\r\n //Lists need to be treated seperately\r\n formData.businessPurpose?.forEach((element) => {\r\n data.append(\"user.userColective.businessPurposeList\", element.code);\r\n });\r\n\r\n return data;\r\n }\r\n return formData;\r\n}\r\n\r\nexport default frontOfficeEnterpriseUserUpdateMap;\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n\r\nimport GenericButton from \"components/Buttons/GenericButton.js\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport EnterpriseUserData from \"./Sections/EnterpriseUserData\";\r\nimport { showGenericTwoButtonDialogAction } from \"redux/actions/dialogsAction\";\r\nimport {\r\n updateEnterpriseUserAction,\r\n getEnterpriseUserInfoAction,\r\n validateColectiveUserAction,\r\n} from \"redux/actions/usersAction\";\r\nimport frontOfficeEnterpriseUserUpdateMap from \"mappers/frontOfficeEnterpriseUserUpdateMap\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction EditEnterpriseUser(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n const [oldEmail, setOldEmail] = useState(\"\");\r\n const [oldMobilePhone, setOldMobilePhone] = useState(\"\");\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n props.getEnterpriseUserInfo(props.match.params.userId);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n var emailChanged = \"\";\r\n function handleRegister(data) {\r\n const email = data.email;\r\n const mobilePhone = data.mobilePhone;\r\n\r\n if (email !== oldEmail || mobilePhone !== oldMobilePhone)\r\n props.showDialog(\r\n \"Pretende continuar?\",\r\n \"Esta ação vai forçar a confirmação do telemóvel/email do utilizador.\",\r\n function () {\r\n return props.updateEnterpriseUser(\r\n frontOfficeEnterpriseUserUpdateMap(data, emailChanged, props.match.params.userId)\r\n );\r\n }\r\n );\r\n else props.updateEnterpriseUser(frontOfficeEnterpriseUserUpdateMap(data, emailChanged, props.match.params.userId));\r\n }\r\n\r\n const handleValidateColectiveUserEvent = () => {\r\n props.validateColectiveUser({ userId: props.match.params.userId });\r\n };\r\n\r\n const cancelOnClick = () => {\r\n history.goBack();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n cancelOnClick()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n {props.usersInfo.result?.userColective?.approved ? (\r\n \r\n \r\n {intl.formatMessage(labels.Label_Update_Submit)}\r\n \r\n \r\n ) : (\r\n \r\n \r\n Validar Utilizador\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateEnterpriseUser: (data) => dispatch(updateEnterpriseUserAction(data)),\r\n getEnterpriseUserInfo: (id) => dispatch(getEnterpriseUserInfoAction(id)),\r\n validateColectiveUser: (Id) => dispatch(validateColectiveUserAction(Id)),\r\n showDialog: (message, yesAction, noAction) =>\r\n dispatch(showGenericTwoButtonDialogAction(message, yesAction, noAction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(EditEnterpriseUser);\r\n","import { getListAsString, getListFromFormData } from \"utils/formSelectMultiple\";\r\n\r\nexport function backOfficeUserUpdateMap(formData, userId) {\r\n if (formData !== null && formData !== undefined)\r\n return {\r\n id: userId,\r\n user: {\r\n email: formData.email ? formData.email : \"\",\r\n password: \"\",\r\n name: formData.name ? formData.name : \"\",\r\n surname: formData.surname ? formData.surname : \"\",\r\n active: formData.active ? formData.active.code : false,\r\n provinceId: formData.province ? formData.province?.code : null,\r\n profile: formData.function ? getListAsString(formData.function, \"##\") : \"\",\r\n municipalityId: formData.county ? formData.county?.code : null,\r\n managerBankId: formData.managerBank ? formData.managerBank.code : null,\r\n managerLoanTypes:\r\n formData.managerLoanTypes !== undefined ? getListFromFormData(formData.managerLoanTypes) : [],\r\n employmentCenterId: formData.employmentCenter?.code\r\n },\r\n };\r\n return formData;\r\n}\r\n\r\nexport default backOfficeUserUpdateMap;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n// @material-ui/icons components\r\n//import custom components\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport BackOfficeUserData from \"./Sections/BackOfficeUserData\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getBackOfficeUserInfoAction, updateBoUserAction } from \"redux/actions/usersAction\";\r\nimport backOfficeUserUpdateMap from \"mappers/backOfficeUserUpdateMap\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport {\r\n getSelectOptionsElementByCode,\r\n getMultipleSelectOptionsElementByLabel,\r\n getMultipleSelectOptionsElementByCode,\r\n} from \"utils/formSelect\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction EditBackOfficeUser(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n const [isEditable, setIsEditable] = React.useState(false);\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n const {\r\n handleSubmit,\r\n setValue,\r\n trigger,\r\n getValues,\r\n unregister,\r\n formState: { errors },\r\n } = methods;\r\n\r\n const handleCancelOnClickEvent = () => {\r\n history.goBack();\r\n };\r\n\r\n function handleRegister(data) {\r\n let map = backOfficeUserUpdateMap(data, props.match.params.userId);\r\n props.updateBoUser(map);\r\n }\r\n\r\n const handleEditSection = () => {\r\n setIsEditable(!isEditable);\r\n if (isEditable) {\r\n methods.clearErrors();\r\n }\r\n };\r\n\r\n React.useEffect(() => {\r\n props.getBackOfficeUserInfo(props.match.params.userId);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.userId]);\r\n\r\n React.useEffect(() => {\r\n setFormValuesOnMount();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.usersInfo.result]);\r\n\r\n const setFormValuesOnMount = () => {\r\n var active = props.usersInfo.result !== undefined ? props.usersInfo.result.active : null;\r\n setValue(\r\n \"active\",\r\n DATASET.YES_OR_NO_DROPDOWN.find((t) => t.code === active)\r\n );\r\n\r\n setValue(\"name\", props.usersInfo.result !== undefined ? props.usersInfo.result.name : null);\r\n setValue(\"surname\", props.usersInfo.result !== undefined ? props.usersInfo.result.surname : null);\r\n\r\n props.getDataSet(DATASET.PROVINCES);\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n var provinces = props.usersInfo.result !== undefined ? props.usersInfo?.result?.province : null;\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, provinces);\r\n setValue(\"province\", selectedProvince);\r\n\r\n if (selectedProvince) props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES] ? props.dataSetState[DATASET.MUNICIPALITIES] : [];\r\n\r\n var municipalities = props.usersInfo.result !== undefined ? props.usersInfo.result.municipality : null;\r\n\r\n setValue(\"county\", getSelectOptionsElementByCode(municipalityList, Number.parseInt(municipalities)));\r\n\r\n setValue(\"email\", props.usersInfo.result !== undefined ? props.usersInfo.result.email : null);\r\n setValue(\"emailConfirmation\", props.usersInfo.result !== undefined ? props.usersInfo.result.email : null);\r\n\r\n var rolesList = props.dataSetState[DATASET.BACKOFFICE_ROLES] ? props.dataSetState[DATASET.BACKOFFICE_ROLES] : [];\r\n\r\n var roles = props.usersInfo.result !== undefined ? props.usersInfo.result.roles : null;\r\n setValue(\"function\", getMultipleSelectOptionsElementByLabel(rolesList, roles));\r\n\r\n var banksList = props.dataSetState[DATASET.BANK] ? props.dataSetState[DATASET.BANK] : [];\r\n var managerBankId = props.usersInfo.result !== undefined ? props.usersInfo.result.managerBankId : null;\r\n setValue(\"managerBank\", getSelectOptionsElementByCode(banksList, managerBankId));\r\n\r\n var loanTypesList = props.dataSetState[DATASET.LOAN_TYPE] ? props.dataSetState[DATASET.LOAN_TYPE] : [];\r\n var managerLoanTypes = props.usersInfo.result !== undefined ? props.usersInfo.result.managerLoanTypes : null;\r\n setValue(\"managerLoanTypes\", getMultipleSelectOptionsElementByCode(loanTypesList, managerLoanTypes));\r\n\r\n props.getDataSet(DATASET.EMPLOYMENT_CENTERS, selectedProvince?.keyValue);\r\n var employmentCenterList = props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n ? props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n : [];\r\n var selectedEmploymentCenter = getSelectOptionsElementByCode(\r\n employmentCenterList,\r\n props.usersInfo?.result?.employmentCenterId\r\n );\r\n setValue(\"employmentCenter\", selectedEmploymentCenter);\r\n };\r\n\r\n React.useEffect(() => {\r\n if (props.dataSetState) {\r\n var rolesList = props.dataSetState[DATASET.BACKOFFICE_ROLES] ? props.dataSetState[DATASET.BACKOFFICE_ROLES] : [];\r\n\r\n var roles = props.usersInfo.result !== undefined ? props.usersInfo.result.roles : null;\r\n setValue(\"function\", getMultipleSelectOptionsElementByLabel(rolesList, roles));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.BACKOFFICE_ROLES]]);\r\n\r\n React.useEffect(() => {\r\n if (props.dataSetState) {\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES]\r\n ? props.dataSetState[DATASET.MUNICIPALITIES]\r\n : [];\r\n\r\n var municipalities = props.usersInfo.result !== undefined ? props.usersInfo.result.municipality : null;\r\n setValue(\"county\", getSelectOptionsElementByCode(municipalityList, Number.parseInt(municipalities)));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MUNICIPALITIES]]);\r\n\r\n React.useEffect(() => {\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n\r\n var provinces = props.usersInfo.result !== undefined ? props.usersInfo.result.province : null;\r\n\r\n setValue(\"province\", getSelectOptionsElementByCode(provinceList, Number.parseInt(provinces)));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n React.useEffect(() => {\r\n if (props.dataSetState) {\r\n var banksList = props.dataSetState[DATASET.BANK] ? props.dataSetState[DATASET.BANK] : [];\r\n var managerBankId = props.usersInfo.result !== undefined ? props.usersInfo.result.managerBankId : null;\r\n setValue(\"managerBank\", getSelectOptionsElementByCode(banksList, managerBankId));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.BANK]]);\r\n\r\n React.useEffect(() => {\r\n if (props.dataSetState) {\r\n var loanTypesList = props.dataSetState[DATASET.LOAN_TYPE] ? props.dataSetState[DATASET.LOAN_TYPE] : [];\r\n var managerLoanTypes = props.usersInfo.result !== undefined ? props.usersInfo.result.managerLoanTypes : null;\r\n setValue(\"managerLoanTypes\", getMultipleSelectOptionsElementByCode(loanTypesList, managerLoanTypes));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.LOAN_TYPE]]);\r\n\r\n React.useEffect(() => {\r\n if (props.dataSetState) {\r\n var employmentCenterList = props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n ? props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n : [];\r\n var selectedEmploymentCenter = getSelectOptionsElementByCode(\r\n employmentCenterList,\r\n props.usersInfo?.result?.employmentCenterId\r\n );\r\n setValue(\"employmentCenter\", selectedEmploymentCenter);\r\n }\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.EMPLOYMENT_CENTERS]]);\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n {isEditable && (\r\n \r\n \r\n \r\n \r\n handleCancelOnClickEvent()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Update_Submit)}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateBoUser: (data) => dispatch(updateBoUserAction(data)),\r\n getBackOfficeUserInfo: (id) => dispatch(getBackOfficeUserInfoAction(id)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(EditBackOfficeUser);\r\n","import { changePassword } from \"crud/auth.crud\";\r\nimport { DIALOG } from \"utils/actionsConsts\";\r\n\r\nconst changePasswordAction = (formData, _onCloseAction) => async (dispatch) => {\r\n changePassword(formData)\r\n .then((res) => {\r\n if (res.data.succeeded) {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: true,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n okAction: res.data ? _onCloseAction : undefined,\r\n message: \"Palavra-passe alterada com sucesso\",\r\n },\r\n },\r\n });\r\n } else {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"A Palavra-passe actual está errada\",\r\n },\r\n },\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response.data.errors\r\n ? error.response.data.errors[\r\n Object.keys(error.response.data.errors)[0]\r\n ][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default changePasswordAction;\r\n","import { React, Fragment, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useForm, FormProvider } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n//material-ui/core\r\nimport { IconButton } from \"@material-ui/core\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport { green, red } from \"@material-ui/core/colors\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n//material-ui/icons\r\nimport CheckCircleOutlinedIcon from \"@material-ui/icons/CheckCircleOutlined\";\r\nimport CancelOutlinedIcon from \"@material-ui/icons/CancelOutlined\";\r\nimport Visibility from \"@material-ui/icons/Visibility\";\r\nimport VisibilityOff from \"@material-ui/icons/VisibilityOff\";\r\n//custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { usePasswordValidation } from \"hooks/usePasswordValidation\";\r\nimport changePasswordMap from \"mappers/changePasswordMap\";\r\nimport changePasswordAction from \"redux/actions/auth/changePasswordAction\";\r\nimport { messages, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction PasswordForm(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [showCurrentPassword, setShowCurrentPassword] = useState(false);\r\n const handleClickShowCurrentPassword = () => setShowCurrentPassword(!showCurrentPassword);\r\n const handleMouseDownCurrentPassword = () => setShowCurrentPassword(!showCurrentPassword);\r\n\r\n const [showPassword, setShowPassword] = useState(false);\r\n const handleClickShowPassword = () => setShowPassword(!showPassword);\r\n const handleMouseDownPassword = () => setShowPassword(!showPassword);\r\n\r\n const [showPasswordConfirm, setShowPasswordConfirm] = useState(false);\r\n const handleClickShowPasswordConfirm = () => setShowPasswordConfirm(!showPasswordConfirm);\r\n const handleMouseDownPasswordConfirm = () => setShowPasswordConfirm(!showPasswordConfirm);\r\n\r\n const [password, setPassword] = useState({\r\n firstPassword: \"\",\r\n secondPassword: \"\",\r\n });\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const [passwordValidation] = usePasswordValidation({\r\n firstPassword: methods.getValues(\"newPassword\"),\r\n secondPassword: methods.getValues(\"newPasswordConfirmation\"),\r\n });\r\n\r\n useEffect(() => {\r\n methods.clearErrors();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (passwordValidation?.isValid != null) methods.trigger(\"newPassword\");\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [passwordValidation?.isValid]);\r\n\r\n const setFirst = (event) => {\r\n setPassword({ ...password, firstPassword: event.target.value });\r\n };\r\n\r\n const setSecond = (event) => {\r\n setPassword({ ...password, secondPassword: event.target.value });\r\n };\r\n\r\n function changePw(data) {\r\n props.changePassword(changePasswordMap(data), () => {\r\n props.handleCloseModal();\r\n });\r\n }\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n Alterar palavra-passe\r\n \r\n \r\n \r\n \r\n \r\n Palavra-passe actual\r\n (\r\n {\r\n onChange(e);\r\n methods.getValues(\"newPassword\").length > 0 && methods.trigger(\"newPassword\");\r\n }}\r\n endAdornment={\r\n \r\n \r\n {showCurrentPassword ? : }\r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"currentPassword\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"currentPassword\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"currentPassword\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Nova palavra-passe\r\n {\r\n if (methods.getValues(\"currentPassword\") === value)\r\n return \"Nova palavra-passe deve ser diferente da actual\";\r\n if (!passwordValidation.isValid) return \"Palavra-passe inválida\";\r\n return true;\r\n },\r\n // EmailMatch: value => { return value === methods.getValues(\"email\") || \"O e-mail inserido deve ser igual ao campo 'E-mail'\"; }\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n setFirst(e);\r\n methods.trigger(\"newPasswordConfirmation\");\r\n }}\r\n endAdornment={\r\n \r\n \r\n {showPassword ? : }\r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"newPassword\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"newPassword\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"newPassword\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Confirmação da nova palavra-passe\r\n {\r\n return (\r\n value === methods.getValues(\"newPassword\") ||\r\n \"O valor inserido deve ser igual ao campo 'Nova palavra-passe'\" ||\r\n methods.trigger(\"newPassword\")\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n setSecond(e);\r\n }}\r\n endAdornment={\r\n \r\n \r\n {showPasswordConfirm ? : }\r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"newPasswordConfirmation\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"newPasswordConfirmation\"] !== undefined &&\r\n methods.formState.errors[\"newPassword\"] === undefined && (\r\n \r\n {methods.formState.errors[\"newPasswordConfirmation\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_1)}\r\n \r\n \r\n \r\n {passwordValidation.validLength ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_2)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.upperCase ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_3)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.lowerCase ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_4)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.hasNumber ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_5)}\r\n \r\n \r\n \r\n \r\n {passwordValidation.specialChar ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {intl.formatMessage(messages.Message_Auth_Password_Rules_6)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n changePassword: (data, onCloseMethod) => dispatch(changePasswordAction(data, onCloseMethod)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(PasswordForm);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport { Card, CardHeader, CardContent, FilledInput } from \"@material-ui/core\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n//import custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport FormMultipleSelect from \"components/FormFields/FormMultipleSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getBackOfficeUserInfoAction } from \"redux/actions/usersAction\";\r\nimport { getDataSetByNameAction, getBackOfficeRolesAction } from \"redux/actions/datasetsAction\";\r\nimport {\r\n getSelectOptionsElementByCode,\r\n getMultipleSelectOptionsElementByLabel,\r\n getMultipleSelectOptionsElementByCode,\r\n} from \"utils/formSelect\";\r\nimport { DATASET, ROLE_KEY_VALUE } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction PersonalForm(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n const [showBankSelection, setShowBankSelection] = useState(false);\r\n const [showEmploymentAndEntrepreneurshipSelection, setShowEmploymentAndEntrepreneurshipSelection] = useState(false);\r\n\r\n const {\r\n getValues,\r\n setValue,\r\n control,\r\n trigger,\r\n unregister,\r\n formState: { errors },\r\n } = useFormContext();\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES] === undefined ||\r\n props.dataSetState[DATASET.BACKOFFICE_ROLES]?.length === 0\r\n ) {\r\n props.getBackOfficeRoles(DATASET.BACKOFFICE_ROLES);\r\n }\r\n\r\n if (props.dataSetState[DATASET.BANK] === undefined || props.dataSetState[DATASET.BANK] === []) {\r\n props.getDataSet(DATASET.BANK);\r\n }\r\n\r\n if (props.dataSetState[DATASET.LOAN_TYPE] === undefined || props.dataSetState[DATASET.LOAN_TYPE] === []) {\r\n props.getDataSet(DATASET.LOAN_TYPE);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.EMPLOYMENT_CENTERS] === undefined ||\r\n props.dataSetState[DATASET.EMPLOYMENT_CENTERS] === []\r\n ) {\r\n props.getDataSet(DATASET.EMPLOYMENT_CENTERS);\r\n }\r\n\r\n props.getBackOfficeUserInfo();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.usersInfo.result !== undefined) setFormValuesOnMount();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.usersInfo.result]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n var provinceId = props.usersInfo.result !== undefined ? props.usersInfo.result.province : null;\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, provinceId);\r\n setValue(\"province\", selectedProvince);\r\n\r\n if (selectedProvince) props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES]\r\n ? props.dataSetState[DATASET.MUNICIPALITIES]\r\n : [];\r\n var municipalities = props.usersInfo.result !== undefined ? props.usersInfo.result.municipality : null;\r\n setValue(\"municipality\", getSelectOptionsElementByCode(municipalityList, municipalities));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MUNICIPALITIES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var banksList = props.dataSetState[DATASET.BANK] ? props.dataSetState[DATASET.BANK] : [];\r\n var managerBankId = props.usersInfo.result !== undefined ? props.usersInfo.result.managerBankId : null;\r\n setValue(\"managerBank\", getSelectOptionsElementByCode(banksList, managerBankId));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.BANK]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var loanTypesList = props.dataSetState[DATASET.LOAN_TYPE] ? props.dataSetState[DATASET.LOAN_TYPE] : [];\r\n var managerLoanTypes = props.usersInfo.result !== undefined ? props.usersInfo.result.managerLoanTypes : null;\r\n setValue(\"managerLoanTypes\", getMultipleSelectOptionsElementByCode(loanTypesList, managerLoanTypes));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.LOAN_TYPE]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var employmentCenterList = props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n ? props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n : [];\r\n var selectedEmploymentCenter = getSelectOptionsElementByCode(\r\n employmentCenterList,\r\n props.usersInfo?.result?.employmentCenterId\r\n );\r\n setValue(\"employmentCenter\", selectedEmploymentCenter);\r\n }\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.EMPLOYMENT_CENTERS]]);\r\n\r\n const setFormValuesOnMount = () => {\r\n setValue(\"name\", props.usersInfo.result !== undefined ? props.usersInfo.result.name : null);\r\n setValue(\"surname\", props.usersInfo.result !== undefined ? props.usersInfo.result.surname : null);\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n\r\n var provinceId = props.usersInfo.result !== undefined ? props.usersInfo.result.province : null;\r\n\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, provinceId);\r\n setValue(\"province\", selectedProvince);\r\n\r\n if (selectedProvince) props.getDataSet(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES] ? props.dataSetState[DATASET.MUNICIPALITIES] : [];\r\n\r\n var municipalities = props.usersInfo.result !== undefined ? props.usersInfo.result.municipality : null;\r\n\r\n setValue(\"municipality\", getSelectOptionsElementByCode(municipalityList, municipalities));\r\n\r\n var active = props.usersInfo.result !== undefined ? props.usersInfo.result.active : null;\r\n\r\n setValue(\"active\", getSelectOptionsElementByCode(DATASET.YES_OR_NO_DROPDOWN, active));\r\n\r\n setValue(\"email\", props.usersInfo.result !== undefined ? props.usersInfo.result.email : null);\r\n\r\n var rolesList = props.dataSetState[DATASET.BACKOFFICE_ROLES] ? props.dataSetState[DATASET.BACKOFFICE_ROLES] : [];\r\n var roles = props.usersInfo.result !== undefined ? props.usersInfo.result.roles : null;\r\n setValue(\"function\", getMultipleSelectOptionsElementByLabel(rolesList, roles));\r\n\r\n var banksList = props.dataSetState[DATASET.BANK] ? props.dataSetState[DATASET.BANK] : [];\r\n var managerBankId = props.usersInfo.result !== undefined ? props.usersInfo.result.managerBankId : null;\r\n setValue(\"managerBank\", getSelectOptionsElementByCode(banksList, managerBankId));\r\n\r\n var loanTypesList = props.dataSetState[DATASET.LOAN_TYPE] ? props.dataSetState[DATASET.LOAN_TYPE] : [];\r\n var managerLoanTypes = props.usersInfo.result !== undefined ? props.usersInfo.result.managerLoanTypes : null;\r\n setValue(\"managerLoanTypes\", getMultipleSelectOptionsElementByCode(loanTypesList, managerLoanTypes));\r\n\r\n var employmentCenterList = props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n ? props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n : [];\r\n var selectedEmploymentCenter = getSelectOptionsElementByCode(\r\n employmentCenterList,\r\n props.usersInfo?.result?.employmentCenterId\r\n );\r\n setValue(\"employmentCenter\", selectedEmploymentCenter);\r\n };\r\n\r\n function handleChangePassword() {\r\n props.handleChangePassword();\r\n }\r\n\r\n function getShowExtraFields() {\r\n var selectedFunctions = getValues(\"function\");\r\n\r\n if (selectedFunctions && selectedFunctions.length > 0) {\r\n if (selectedFunctions.some((op) => op.code === ROLE_KEY_VALUE.BANCOS)) {\r\n setShowBankSelection(true);\r\n } else {\r\n setShowBankSelection(false);\r\n unregister(\"managerBank\");\r\n unregister(\"managerLoanTypes\");\r\n }\r\n\r\n if (\r\n selectedFunctions.some(\r\n (op) =>\r\n op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_TECHNICAL_TEAM ||\r\n selectedFunctions.some((op) => op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_MANAGEMENT_TEAM)\r\n )\r\n ) {\r\n setShowEmploymentAndEntrepreneurshipSelection(true);\r\n } else {\r\n setShowEmploymentAndEntrepreneurshipSelection(false);\r\n unregister(\"employmentCenter\");\r\n }\r\n } else {\r\n setShowBankSelection(false);\r\n unregister(\"managerBank\");\r\n unregister(\"managerLoanTypes\");\r\n\r\n setShowEmploymentAndEntrepreneurshipSelection(false);\r\n unregister(\"employmentCenter\");\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n getShowExtraFields();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [getValues(\"managerBank\")]);\r\n\r\n useEffect(() => {\r\n const provinceValue = getValues(\"province\");\r\n const functionValue = getValues(\"function\");\r\n\r\n getShowExtraFields();\r\n\r\n if (provinceValue && functionValue) {\r\n if (\r\n functionValue?.some(\r\n (op) =>\r\n op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_TECHNICAL_TEAM ||\r\n functionValue?.some((op) => op.code === ROLE_KEY_VALUE.EMPLOYMENT_AND_ENTREPRENEURSHIP_MANAGEMENT_TEAM)\r\n )\r\n ) {\r\n props.getDataSet(DATASET.EMPLOYMENT_CENTERS, provinceValue.keyValue);\r\n }\r\n } else if (!provinceValue && functionValue) {\r\n setValue(\"employmentCenter\", undefined);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [getValues(\"province\"), getValues(\"function\")]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Nome\r\n (\r\n \r\n )}\r\n />\r\n {errors[\"name\"] !== undefined && (\r\n \r\n {errors[\"name\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Apelido\r\n (\r\n \r\n )}\r\n />\r\n {errors[\"surname\"] !== undefined && (\r\n \r\n {errors[\"surname\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Activo\r\n \r\n {errors[\"active\"] !== undefined && (\r\n \r\n {errors[\"active\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Província\r\n \r\n {errors[\"province\"] !== undefined && (\r\n \r\n {errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Município\r\n \r\n {errors[\"municipality\"] !== undefined && (\r\n \r\n {errors[\"municipality\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Função\r\n \r\n {errors[\"function\"] !== undefined && (\r\n \r\n {errors[\"function\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n {showBankSelection && (\r\n <>\r\n \r\n \r\n Banco a gerir\r\n \r\n \r\n \r\n \r\n \r\n Tipos de produtos bancários a gerir\r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {showEmploymentAndEntrepreneurshipSelection && (\r\n \r\n \r\n \r\n Centro de Emprego\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n E-mail\r\n {\r\n if (value && !/\\S+@\\S+\\.\\S+/.test(value)) return \"Formato inválido\";\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n trigger(\"email\");\r\n }}\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"email\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[\"email\"] !== undefined && (\r\n \r\n {errors[\"email\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Palavra-passe\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n Alterar palavra-Passe\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Save)}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getBackOfficeUserInfo: (id) => dispatch(getBackOfficeUserInfoAction(id)),\r\n getBackOfficeRoles: (name) => dispatch(getBackOfficeRolesAction(name)),\r\n});\r\nexport default connect(mapStateToProps, mapDispatchToProps)(PersonalForm);\r\n","const componentStyles = (theme) => ({\r\n userProfileTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"26px\",\r\n lineHeight: \"35px\",\r\n color: theme.palette.primary.main,\r\n textAlign: \"center\",\r\n },\r\n\r\n avatar: {\r\n width: \"230px\",\r\n height: \"230px\",\r\n marginTop: \"30px\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n width: \"180px\",\r\n height: \"180px\",\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n width: \"200px\",\r\n height: \"200px\",\r\n },\r\n },\r\n nameInitialsAvatar: {\r\n width: \"230px\",\r\n height: \"230px\",\r\n marginTop: \"30px\",\r\n fontSize: \"120px\",\r\n [theme.breakpoints.down(\"md\")]: {\r\n width: \"180px\",\r\n height: \"180px\",\r\n },\r\n [theme.breakpoints.down(\"sm\")]: {\r\n width: \"200px\",\r\n height: \"200px\",\r\n },\r\n },\r\n updatePhotoButton: {\r\n padding: \"12px 20px\",\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08)\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n width: \"11rem\",\r\n backgroundColor: theme.palette.white.main,\r\n color: theme.palette.primary.darkBlue,\r\n border: \"1px solid \" + theme.palette.primary.darkBlue,\r\n textTransform: \"uppercase\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.greyBlue,\r\n color: theme.palette.white.main,\r\n borderColor: theme.palette.primary.greyBlue,\r\n },\r\n \"&:active\": {\r\n backgroundColor: theme.palette.primary.darkBlue,\r\n color: theme.palette.white.main,\r\n borderColor: theme.palette.primary.darkBlue,\r\n },\r\n \"&:focus\": {\r\n color: theme.palette.primary.darkBlue,\r\n border: \"2px solid \" + theme.palette.secondary.skyBlue,\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { Avatar } from \"@material-ui/core\";\r\nimport { getNameInitials } from \"utils/converters\";\r\n\r\nimport componentStyles from \"assets/theme/views/admin/user-profile.js\";\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction UserPicture(props) {\r\n const classes = useStyles();\r\n const [file, setFile] = React.useState(props.file ? \"data:image/*;base64, \" + props.file : props.authState?.photo);\r\n const [errorMaxSize, setErrorMaxSize] = React.useState(false);\r\n const [imageTypeError, setImageTypeError] = React.useState(false);\r\n const [imageUploaded, setImageUploaded] = React.useState(props.file);\r\n \r\n const fileMaxSize = 5; // MB\r\n\r\n const getUserFullName = () => {\r\n return (\r\n (props.authState?.name ?? \"\") + \" \" + (props.authState?.lastName ?? \"\")\r\n );\r\n };\r\n\r\n function clearErrors(){\r\n setImageUploaded(false);\r\n setErrorMaxSize(false);\r\n setImageTypeError(false);\r\n }\r\n\r\n function handleImageChange(e) {\r\n e.preventDefault();\r\n clearErrors();\r\n\r\n let reader = new FileReader();\r\n let file = e.target.files[0];\r\n if (file && file.type !== \"image/png\" && file.type !== \"image/jpeg\") {\r\n setImageTypeError(true);\r\n return;\r\n }\r\n if (file && file.size > fileMaxSize * 1048576) {\r\n setErrorMaxSize(true);\r\n return;\r\n } else {\r\n setErrorMaxSize(false);\r\n }\r\n reader.onloadend = () => {\r\n setFile(reader.result);\r\n if (reader.result) props.setFile(reader.result.split(\",\")[1]);\r\n setImageUploaded(true);\r\n };\r\n if (file) reader.readAsDataURL(file);\r\n }\r\n\r\n return (\r\n \r\n \r\n {file ? (\r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(getUserFullName())}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {errorMaxSize && (\r\n \r\n A imagem não pode ter mais que {fileMaxSize} MB.\r\n \r\n )}\r\n {imageTypeError && (\r\n \r\n A imagem só pode ter formato .jpeg ou .png.\r\n \r\n )}\r\n {imageUploaded && (\r\n \r\n Imagem carregada. Para atualizar, guarde as alterações.\r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(UserPicture);\r\n","export function updateProfileMap(formData, file) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n name: formData.name,\r\n surname: formData.surname,\r\n photo: file\r\n };\r\n }\r\n}\r\n\r\nexport default updateProfileMap;\r\n\r\n","import React from \"react\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { Container } from \"@material-ui/core\";\r\nimport { Grid } from \"@material-ui/core\";\r\n//import custom components\r\nimport PasswordForm from \"./PasswordForm\";\r\nimport PersonalForm from \"./PersonalForm\";\r\nimport UserPicture from \"./UserPicture\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport { updateProfileAction } from \"redux/actions/usersAction\";\r\nimport updateProfileMap from \"mappers/updateProfileMap\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport componentStylesProfile from \"assets/theme/views/admin/user-profile.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst useStylesProfile = makeStyles(componentStylesProfile);\r\n\r\nfunction UserProfile(props) {\r\n const classes = { ...useStylesGeneric(), ...useStylesProfile() };\r\n const [file, setFile] = React.useState();\r\n const [changePassword, setChangePassword] = React.useState(false);\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n function handleChangePassword() {\r\n setChangePassword(true);\r\n }\r\n function handleCloseModal() {\r\n setChangePassword(false);\r\n }\r\n const handleRegister = (data) => {\r\n console.log(updateProfileMap(data, file));\r\n props.updateProfile(updateProfileMap(data, file));\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Meu perfil\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateProfile: (data) => dispatch(updateProfileAction(data)),\r\n});\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UserProfile);\r\n","import { getFilteredLoans, getLoan, rejectLoan, updateLoan } from \"crud/loans.crud\";\r\nimport moment from \"moment\";\r\nimport { LOANS, DIALOG } from \"utils/actionsConsts\";\r\n\r\nexport const getFilteredLoansActions = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: LOANS.GET_FILTERED_LOANS_LOADING,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: LOANS.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n getFilteredLoans(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n id: record.id,\r\n userTypeKey: record.userTypeKey,\r\n nameOfUser: record.nameOfUser,\r\n identityCardOrTaxIdNum: record.identityCardOrTaxIdNum,\r\n applicationNumber: record.applicationNumber,\r\n governmentProgramName: record.governmentProgramName,\r\n aprovedValue: record.aprovedValue != null ? record.aprovedValue : 0,\r\n lastInstallment: record.lastInstallment ? moment(record.lastInstallment).format(\"DD/MM/YYYY HH:mm\") : \"\",\r\n amountToBePaid: record.amountToBePaid,\r\n isMissingPayments: record.isMissingPayments ? \"Sim\" : \"Não\",\r\n loanState: record.state,\r\n loanStateKeyValue: record.stateKeyValue,\r\n loanTypeDescription: record.loanTypeDescription,\r\n bankNameInitials: record.bankNameInitials,\r\n };\r\n });\r\n dispatch({\r\n type: LOANS.GET_FILTERED_LOANS,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: LOANS.GET_FILTERED_LOANS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: LOANS.GET_FILTERED_LOANS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: LOANS.GET_FILTERED_LOANS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default getFilteredLoansActions;\r\n\r\nexport const getLoanAction = (loanNumber) => async (dispatch) => {\r\n dispatch({\r\n type: LOANS.GET_LOAN_DETAILS_LOADING,\r\n payload: true,\r\n });\r\n getLoan(loanNumber)\r\n .then((res) => {\r\n dispatch({\r\n type: LOANS.GET_LOAN_DETAILS,\r\n result: true,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: LOANS.GET_LOAN_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: LOANS.GET_LOAN_DETAILS,\r\n result: false,\r\n payload: {},\r\n });\r\n dispatch({\r\n type: LOANS.GET_LOAN_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const rejectLoanAction = (loan, successFunction, okFunction) => async (dispatch) => {\r\n dispatch({\r\n type: LOANS.REJECT_LOAN_LOADING,\r\n payload: true,\r\n });\r\n rejectLoan(loan)\r\n .then((res) => {\r\n dispatch({\r\n type: LOANS.REJECT_LOAN_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? \"Empréstimo rejeitado com sucesso.\"\r\n : \"Ocorreu um erro rejeitar o empréstimo. Por favor tente novamente.\",\r\n okAction: okFunction,\r\n },\r\n },\r\n });\r\n\r\n if (successFunction) successFunction();\r\n\r\n dispatch({\r\n type: LOANS.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: LOANS.REJECT_LOAN_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateLoanAction = (formData, successFunction, okFunction) => async (dispatch) => {\r\n const auxOperation = formData.isMissingPayments === null ? \"aprovado\" : \"actualizado\";\r\n dispatch({\r\n type: LOANS.UPDATE_LOAN_LOADING,\r\n payload: true,\r\n });\r\n updateLoan(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: LOANS.UPDATE_LOAN_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data !== null,\r\n message:\r\n res.data !== null\r\n ? \"Empréstimo \" + auxOperation + \" com sucesso.\"\r\n : \"Ocorreu um erro a \" + auxOperation + \" o empréstimo. Por favor tente novamente.\",\r\n\r\n okAction: okFunction,\r\n },\r\n },\r\n });\r\n if (successFunction) successFunction();\r\n dispatch({\r\n type: LOANS.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n })\r\n .catch(() => {\r\n dispatch({\r\n type: LOANS.UPDATE_LOAN_LOADING,\r\n payload: false,\r\n });\r\n });\r\n};\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\n\r\nexport const UPDATE_LOAN_URL = \"Loans/update\";\r\nexport const GET_FILTERED_LOANS_URL = \"Loans/get-filtered-loans\";\r\nexport const GET_LOANS_BY_ID_URL = \"Loans/get-loan-details\";\r\nexport const REJECT_LOAN_URL = \"Loans/Reject\";\r\n\r\nexport function updateLoan(data) {\r\n return axios.post(INTERNAL_API_URL + UPDATE_LOAN_URL, data);\r\n}\r\n\r\nexport function getFilteredLoans(data) {\r\n return axios.post(INTERNAL_API_URL + GET_FILTERED_LOANS_URL, data);\r\n}\r\n\r\nexport function getLoan(loanNumber) {\r\n return axios.get(INTERNAL_API_URL + GET_LOANS_BY_ID_URL, {\r\n params: {\r\n id: loanNumber,\r\n },\r\n });\r\n}\r\n\r\nexport function rejectLoan(loan) {\r\n return axios.post(INTERNAL_API_URL + REJECT_LOAN_URL, loan);\r\n}\r\n","import { MONETARY_DECIMAL_SEPARATOR, PAGINATION, REPORT_TYPES } from \"utils/consts\";\r\n\r\nexport function loansFilterMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n nameOfUser: formData.nameOfUser,\r\n identityCardOrTaxIdNum: formData.identityCardOrTaxIdNum,\r\n provinceId: formData.province?.code,\r\n numApplication: formData.applicationNumber,\r\n governmentProgramId: formData.governmentProgramId?.code,\r\n loanStateId: formData.loanState?.code,\r\n loanTypeId: formData.loanType?.code,\r\n bankId: formData.bank?.code,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n };\r\n }\r\n}\r\n\r\nexport function loansExportReportMap(filterData) {\r\n if (filterData !== null && filterData !== undefined) {\r\n return {\r\n reportEnumKey: REPORT_TYPES.LOANS_SEARCH_RESULTS,\r\n parameters: JSON.stringify(filterData),\r\n };\r\n }\r\n}\r\n\r\nexport function updateLoanMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n id: formData.loanId,\r\n amountToBePaid: formData.amountToBePaid?.replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API),\r\n isMissingPayments: formData.isMissingPayments,\r\n };\r\n }\r\n\r\n return formData;\r\n}\r\n\r\nexport default loansFilterMap;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport clsx from \"clsx\";\r\nimport moment from \"moment\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { getDataSetByNameAction, getLoanStatesAction, getGovernmentProgramsAction } from \"redux/actions/datasetsAction\";\r\nimport { getFilteredLoansActions } from \"redux/actions/loansAction\";\r\nimport { getReportAction } from \"redux/actions/reportsAction\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { DATASET, PAGINATION, OPERATIONS, REPORT_FILE_NAME, REPORT_CONSTS } from \"utils/consts\";\r\nimport { loansFilterMap, loansExportReportMap } from \"mappers/loansMap\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [filter, setFilter] = useState({\r\n nameOfUser: \"\",\r\n identityCardOrTaxIdNum: \"\",\r\n provinceId: props.authState?.province ?? null,\r\n numApplication: \"\",\r\n governmentProgramId: null,\r\n loanStateId: null,\r\n bankId: props.authState?.userPermissionSettings?.managerBankId ?? null,\r\n loanTypeId: null,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n });\r\n\r\n const [availableLoanTypes, setAvailableLoanTypes] = useState([]);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const cleanFilter = () => {\r\n setValue(\"nameOfUser\", \"\");\r\n setValue(\"identityCardOrTaxIdNum\", \"\");\r\n if (!props.authState?.province) setValue(\"province\", undefined);\r\n setValue(\"applicationNumber\", \"\");\r\n setValue(\"governmentProgramId\", undefined);\r\n setValue(\"loanState\", undefined);\r\n if (!props.authState?.userPermissionSettings?.managerBankId) setValue(\"bank\", undefined);\r\n setValue(\"loanType\", undefined);\r\n\r\n setFilter(0);\r\n setFilterCounter(0);\r\n };\r\n\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.LOAN_STATES] === undefined ||\r\n props.dataSetState[DATASET.LOAN_STATES]?.length === 0\r\n ) {\r\n props.getLoanStates(DATASET.LOAN_STATES);\r\n }\r\n\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES]?.length === 0) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n\r\n if (props.dataSetState[DATASET.BANK] === undefined || props.dataSetState[DATASET.BANK]?.length === 0) {\r\n props.getDataSet(DATASET.BANK);\r\n }\r\n if (props.dataSetState[DATASET.LOAN_TYPE] === undefined || props.dataSetState[DATASET.LOAN_TYPE]?.length === 0) {\r\n props.getDataSet(DATASET.LOAN_TYPE);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS] === undefined ||\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS]?.length === 0\r\n ) {\r\n props.getGovernmentPrograms(DATASET.GOVERNMENT_PROGRAMS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.authState?.province) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n setValue(\"province\", getSelectOptionsElementByCode(provinceList, props.authState.province));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.authState?.userPermissionSettings?.managerBankId) {\r\n var banksList = props.dataSetState[DATASET.BANK] ? props.dataSetState[DATASET.BANK] : [];\r\n setValue(\"bank\", getSelectOptionsElementByCode(banksList, props.authState.userPermissionSettings.managerBankId));\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.BANK]]);\r\n\r\n useEffect(() => {\r\n if (props.authState?.userPermissionSettings?.managerLoanTypes) {\r\n var loanTypesList = props.dataSetState[DATASET.LOAN_TYPE] ? props.dataSetState[DATASET.LOAN_TYPE] : [];\r\n if (props.authState.userPermissionSettings.managerLoanTypes.length > 0)\r\n setAvailableLoanTypes(\r\n loanTypesList.filter((lt) => props.authState.userPermissionSettings.managerLoanTypes.includes(lt.code))\r\n );\r\n else setAvailableLoanTypes(loanTypesList);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.LOAN_TYPE]]);\r\n\r\n useEffect(() => {\r\n if (props.loansState?.refresh_results) {\r\n getResultListData();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.loansState?.refresh_results]);\r\n\r\n useEffect(() => {\r\n getResultListData();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n //Refresh Results\r\n const getResultListData = () => {\r\n let temp_filter = { ...filter, pageIndex: props.page };\r\n setFilter(temp_filter);\r\n props.getFilteredLoans(temp_filter);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n let filter = loansFilterMap(data);\r\n setFilter(filter);\r\n if (props.page === PAGINATION.FIRST_PAGE) props.getFilteredLoans(filter);\r\n else props.handleChangePage(PAGINATION.FIRST_PAGE);\r\n }\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n return (\r\n \r\n \r\n
Pesquisa de Empréstimos
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_GeneralDataSection_NameField)}\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"nameOfUser\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"name\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumBIField)}\r\n \r\n \r\n \r\n \r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"identityCardOrTaxIdNum\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"identityCardOrTaxIdNum\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_GeneralDataSection_ProvinceField)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Loans_ApplicationNumber)}\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"applicationNumber\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"applicationNumber\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_GovernmentProgramField)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Loans_State)}\r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Loans_BankName)}\r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Loans_LoanType)}\r\n \r\n \r\n \r\n\r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.EXPORT_REPORTS) && (\r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.loansState?.total_records === 0\r\n ? `Limite mínimo de 1 e máximo de ${REPORT_CONSTS.MAX_RESULTS} resultados para exportar relatório`\r\n : \"\"\r\n }\r\n >\r\n \r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.loansState?.total_records === 0\r\n }\r\n style={{ marginRight: \"20px\" }}\r\n onClick={() => {\r\n props.getReport(\r\n loansExportReportMap(filter),\r\n REPORT_FILE_NAME.LOANS_SEARCH_RESULTS +\r\n moment().format(\"YYYYMMDDHHmm\") +\r\n REPORT_FILE_NAME.EXCEL_EXTENSION\r\n );\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ExportButton)}\r\n \r\n \r\n \r\n )}\r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getLoanStates: (name) => dispatch(getLoanStatesAction(name)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getFilteredLoans: (data) => dispatch(getFilteredLoansActions(data)),\r\n getReport: (data, reportFileName) => dispatch(getReportAction(data, reportFileName)),\r\n getGovernmentPrograms: () => dispatch(getGovernmentProgramsAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FilterSection);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//import Button from \"@material-ui/core/Button\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\n//import TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\n//import Button from \"@material-ui/core/Button\";\r\nimport { Link } from \"react-router-dom\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n// core componentssrc\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { UNITS, TABLE_STATE_CHIP_COLOR, USER_TYPE_KEY } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ResultSection(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const [loanList, setLoanList] = useState([]);\r\n const intl = useIntl();\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_Admin_GeneralDataSection_NameField),\r\n intl.formatMessage(labels.Label_Admin_ApplicationsManagementFilter_NumBIField),\r\n intl.formatMessage(labels.Label_Admin_Loans_ApplicationNumber),\r\n intl.formatMessage(labels.Label_Admin_Loans_GovernmentProgram),\r\n intl.formatMessage(labels.Label_Admin_Loans_AmountApproved),\r\n intl.formatMessage(labels.Label_Admin_Loans_LastUpdateDate_short),\r\n intl.formatMessage(labels.Label_Admin_Loans_AmountToBePaid),\r\n intl.formatMessage(labels.Label_Admin_Loans_IsMissingPayments),\r\n intl.formatMessage(labels.Label_Admin_Loans_State_short),\r\n intl.formatMessage(labels.Label_Admin_Loans_BankName),\r\n intl.formatMessage(labels.Label_Admin_Loans_LoanType_short),\r\n ];\r\n\r\n const LOAN_STATES = {\r\n EM_APROVACAO: 1,\r\n REEMBOLSADO: 2,\r\n REJEITADO: 3,\r\n APROVADO: 4,\r\n };\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.loansState.result)) {\r\n setLoanList(props.loansState.result.data);\r\n } else {\r\n setLoanList([]);\r\n }\r\n }, [props.loansState.result]);\r\n\r\n const MapStateToTableChipColors = (state) => {\r\n const greenChipArray = [LOAN_STATES.REEMBOLSADO];\r\n const lightOrangeChipArray = [LOAN_STATES.APROVADO];\r\n const orangeChipArray = [LOAN_STATES.REJEITADO];\r\n const whiteChipArray = [LOAN_STATES.EM_APROVACAO];\r\n\r\n if (greenChipArray.includes(state)) {\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n }\r\n if (orangeChipArray.includes(state)) {\r\n return TABLE_STATE_CHIP_COLOR.DARK_ORANGE;\r\n }\r\n if (lightOrangeChipArray.includes(state)) {\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n }\r\n if (whiteChipArray.includes(state)) return TABLE_STATE_CHIP_COLOR.BLUE;\r\n };\r\n\r\n return (\r\n \r\n \r\n
Lista de Empréstimos
\r\n
\r\n {\"(\"}\r\n {props.loansState?.result?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) =>\r\n key === 1 ? (\r\n \r\n {prop}\r\n \r\n \r\n \r\n \r\n ) : (\r\n \r\n {prop}\r\n \r\n )\r\n )}\r\n \r\n {intl.formatMessage(labels.Label_Generic_Details)}\r\n \r\n \r\n \r\n\r\n {loanList?.length > 0 && (\r\n \r\n {loanList?.map((prop, key) => (\r\n \r\n \r\n {prop.nameOfUser}\r\n \r\n {prop.identityCardOrTaxIdNum}\r\n {prop.applicationNumber}\r\n {prop.governmentProgramName}\r\n \r\n {intl.formatNumber(prop.aprovedValue) + \" \" + UNITS.MONETARY}\r\n \r\n {prop.lastInstallment}\r\n \r\n {prop.amountToBePaid != null ? intl.formatNumber(prop.amountToBePaid) + \" \" + UNITS.MONETARY : \"\"}\r\n \r\n {prop.isMissingPayments}\r\n \r\n \r\n \r\n {prop.bankNameInitials}\r\n {prop.loanTypeDescription}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(loanList == null || loanList.length === 0) && !props.loansState.search_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ResultSection);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FilterSection from \"./Sections/FilterSection\";\r\nimport ResultSection from \"./Sections/ResultSection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Loans() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n {\r\n handleChangePage(undefined, value);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(Loans);\r\n","import { useState } from \"react\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n//custom components\r\nimport { REGEX_PATTERNS, UNITS, MONETARYUNITPLACEHOLDER } from \"utils/consts\";\r\nimport { messages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ApproveSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n const [formattedValue, setFormattedValue] = useState();\r\n\r\n const onValChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n //TODO - Check better way to format currency on same input\r\n if (value && value.charAt(value.length - 1) === \",\") setFormattedValue(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\") setFormattedValue(intl.formatNumber(value));\r\n else setFormattedValue(value);\r\n } else {\r\n setFormattedValue(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n return (\r\n <>\r\n \r\n \r\n Pretende aprovar esta candidatura?\r\n \r\n \r\n Ao aprovar a candidatura, o candidato ficará com a candidatura aceite no INEFOP e irá receber o benefício do\r\n subprograma a que concorreu. Para prosseguir com a aprovação indique o valor da dívida que foi aprovada pelo\r\n Banco (o valor apresentado corresponde ao valor aprovado previamente pelo INEFOP). Se não quiser aprovar,\r\n simplesmente feche a janela.\r\n \r\n \r\n \r\n \r\n \r\n Dívida\r\n {\r\n if (value === \"0\" || value === \"0,00\" || value === \"0,0\")\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name } }) => (\r\n {\r\n onValChange(e.target.value, onChange);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n endAdornment={\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n classes={{\r\n input: classes.monetaryFields,\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"amountToBePaid\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"amountToBePaid\"] !== undefined && (\r\n \r\n {props.errors[\"amountToBePaid\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default ApproveSection;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport ApproveSection from \"views/admin/Loans/Sections/ApproveSection\";\r\nimport { updateLoanAction } from \"redux/actions/loansAction\";\r\nimport { updateLoanMap } from \"mappers/loansMap\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ApproveDialogContent(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n formState: { errors, isValid },\r\n } = methods;\r\n\r\n const onSubmitApprove = (data) => {\r\n data[\"loanId\"] = parseInt(props.loanNumber);\r\n data[\"isMissingPayments\"] = null;\r\n if (isValid) {\r\n props.updateLoan(\r\n updateLoanMap(data),\r\n function () {\r\n props.onClose();\r\n },\r\n function () {\r\n props.history.goBack();\r\n }\r\n );\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n Submeter\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateLoan: (data, onSuccess, okAction) => dispatch(updateLoanAction(data, onSuccess, okAction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ApproveDialogContent);\r\n","import { connect } from \"react-redux\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n//custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { messages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction RejectSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n\r\n return (\r\n <>\r\n \r\n \r\n Pretende rejeitar esta candidatura?\r\n \r\n \r\n Ao rejeitar a candidatura, o candidato ficará com a candidatura rejeitada no INEFOP e não irá receber o\r\n benefício do subprograma a que concorreu. Para prosseguir com a rejeição escolha o motivo, e introduza alguma\r\n observação que considere pertinente. Se não quiser rejeitar, simplesmente feche a janela.\r\n \r\n \r\n \r\n \r\n \r\n Motivo\r\n \r\n {props.errors[\"motive\"] !== undefined && (\r\n \r\n {props.errors[\"motive\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Observações\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps, null)(RejectSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport RejectSection from \"views/admin/Loans/Sections/RejectSection\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { rejectLoanAction } from \"redux/actions/loansAction\";\r\nimport { DATASET } from \"utils/consts\";\r\n//styles\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction RejectDialog(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n formState: { errors },\r\n } = methods;\r\n\r\n //GET MOTIVES\r\n React.useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.LOAN_REJECT_MOTIVES] === undefined ||\r\n props.dataSetState[DATASET.LOAN_REJECT_MOTIVES]?.length === 0\r\n ) {\r\n props.getLoanRejectMotives();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const onSubmitReject = (data) => {\r\n props.rejectLoan(\r\n {\r\n id: props.loanNumber,\r\n rejectMotiveId: data.motive.code,\r\n rejectMotiveObservations: data.notes,\r\n },\r\n function () {\r\n props.onClose();\r\n },\r\n function () {\r\n props.history.goBack();\r\n }\r\n );\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n Submeter\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n rejectLoan: (loan, onSuccess, okAction) => dispatch(rejectLoanAction(loan, onSuccess, okAction)),\r\n getLoanRejectMotives: () => dispatch(getDataSetByNameAction(DATASET.LOAN_REJECT_MOTIVES)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(RejectDialog);\r\n","import { useState } from \"react\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n//@material-ui/core\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n//custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { REGEX_PATTERNS, UNITS, MONETARYUNITPLACEHOLDER, DATASET } from \"utils/consts\";\r\nimport { messages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UpdateSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n const [formattedValue, setFormattedValue] = useState();\r\n\r\n const onValChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n //TODO - Check better way to format currency on same input\r\n if (value && value.charAt(value.length - 1) === \",\") setFormattedValue(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\") setFormattedValue(intl.formatNumber(value));\r\n else setFormattedValue(value);\r\n } else {\r\n setFormattedValue(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n return (\r\n <>\r\n \r\n \r\n Pretende actualizar a dívida da candidatura?\r\n \r\n \r\n Para prosseguir com a actualização indique o valor actual da dívida (após pagamento da prestação) ou se a\r\n prestação não foi paga e o beneficiário entrou em incumprimento. Se não quiser actualizar, simplesmente feche\r\n a janela\r\n \r\n \r\n \r\n \r\n \r\n Valor Dívida\r\n { return value === getValues(\"email\") || \"O e-mail inserido deve ser igual ao campo 'E-mail'\"; }\r\n // },\r\n }}\r\n render={({ field: { onChange, name } }) => (\r\n {\r\n onValChange(e.target.value, onChange);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n endAdornment={\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n classes={{\r\n input: classes.monetaryFields,\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: props.errors[\"amountToBePaid\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {props.errors[\"amountToBePaid\"] !== undefined && (\r\n \r\n {props.errors[\"amountToBePaid\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Em incumprimento\r\n \r\n {props.errors[\"isMissingPayments\"] !== undefined && (\r\n \r\n {props.errors[\"isMissingPayments\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default UpdateSection;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport UpdateSection from \"views/admin/Loans/Sections/UpdateSection\";\r\nimport { updateLoanAction } from \"redux/actions/loansAction\";\r\nimport { updateLoanMap } from \"mappers/loansMap\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UpdateDialogContent(props) {\r\n const classes = { ...useStylesGeneric() };\r\n const theme = useTheme();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n formState: { errors, isValid },\r\n } = methods;\r\n\r\n const onSubmitUpdate = (data) => {\r\n if (isValid) {\r\n props.updateLoan(\r\n updateLoanMap({\r\n loanId: parseInt(props.loanNumber),\r\n amountToBePaid: data.amountToBePaid,\r\n isMissingPayments: data.isMissingPayments.code,\r\n }),\r\n function () {\r\n props.onClose();\r\n },\r\n function () {\r\n props.history.goBack();\r\n }\r\n );\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n Submeter\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateLoan: (data, onSuccess, okAction) => dispatch(updateLoanAction(data, onSuccess, okAction)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UpdateDialogContent);\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\n//lodash\r\nimport _ from \"lodash\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport { Card, CardContent } from \"@material-ui/core\";\r\nimport { CardHeader } from \"@material-ui/core\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\n// @material-ui/icons components\r\n//import custom components\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport ApproveDialog from \"views/admin/Loans/Dialogs/ApproveDialog\";\r\nimport RejectDialog from \"views/admin/Loans/Dialogs/RejectDialog\";\r\nimport UpdateDialog from \"views/admin/Loans/Dialogs/UpdateDialog\";\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport { getLoanAction } from \"redux/actions/loansAction.js\";\r\nimport { UNITS, TABLE_STATE_CHIP_COLOR, LOAN_STATES } from \"utils/consts\";\r\nimport { labels, titles } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction LoanDetails(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const scrollDirection = useScrollDirection();\r\n const [loanNumber, setLoanNumber] = useState();\r\n const [data, setData] = useState({});\r\n\r\n //Dialogs Logic\r\n const DIALOG = { SHOW: true, HIDE: false };\r\n const [dialogs, setDialogs] = useState({\r\n approveModal: false,\r\n rejectModal: false,\r\n updateModal: false,\r\n });\r\n\r\n const showHideDialog = (dialog, op) => {\r\n let dialogs_temp = _.mapValues(dialogs, () => false);\r\n\r\n dialogs_temp[dialog] = op;\r\n\r\n setDialogs(dialogs_temp);\r\n };\r\n\r\n const MapStateToTableChipColors = (state) => {\r\n const greenChipArray = [LOAN_STATES.REEMBOLSADO];\r\n const lightOrangeChipArray = [LOAN_STATES.APROVADO];\r\n const orangeChipArray = [LOAN_STATES.REJEITADO];\r\n const whiteChipArray = [LOAN_STATES.EM_APROVACAO];\r\n\r\n if (greenChipArray.includes(state)) {\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n }\r\n if (orangeChipArray.includes(state)) {\r\n return TABLE_STATE_CHIP_COLOR.DARK_ORANGE;\r\n }\r\n if (lightOrangeChipArray.includes(state)) {\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n }\r\n if (whiteChipArray.includes(state)) return TABLE_STATE_CHIP_COLOR.BLUE;\r\n };\r\n\r\n // Fetch Data\r\n useEffect(() => {\r\n setLoanNumber(props.match.params.loanId);\r\n props.getLoan(props.match.params.loanId);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.loanId]);\r\n\r\n useEffect(() => {\r\n setData(props.loansState.loan_details);\r\n }, [props.loansState.loan_details]);\r\n\r\n function handleApprove() {\r\n showHideDialog(\"approveModal\", DIALOG.SHOW);\r\n }\r\n\r\n function handleReject() {\r\n showHideDialog(\"rejectModal\", DIALOG.SHOW);\r\n }\r\n\r\n function handleUpdate() {\r\n showHideDialog(\"updateModal\", DIALOG.SHOW);\r\n }\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n {/* User Singular Details */}\r\n {data?.userSingularGeneralDataSection != null && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {/* User Colective Details */}\r\n\r\n {data?.userColectiveGeneralDataSection != null && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {/* Loan Details */}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Loans_State)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* New Line md */}\r\n \r\n \r\n \r\n \r\n {/* New Line md */}\r\n \r\n\r\n {data?.state === LOAN_STATES.REJEITADO && (\r\n <>\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {showRejectCancelButton(data?.state)}\r\n \r\n \r\n {showApproveUpdateButton(data?.state)}\r\n \r\n \r\n \r\n \r\n\r\n {/* Approve */}\r\n showHideDialog(\"approveModal\", DIALOG.HIDE)}\r\n />\r\n\r\n {/* Reject */}\r\n showHideDialog(\"rejectModal\", DIALOG.HIDE)}\r\n />\r\n\r\n {/* Update */}\r\n showHideDialog(\"updateModal\", DIALOG.HIDE)}\r\n />\r\n \r\n );\r\n\r\n function showApproveUpdateButton(state) {\r\n switch (state) {\r\n case LOAN_STATES.EM_APROVACAO:\r\n return (\r\n handleApprove()}>\r\n {intl.formatMessage(labels.Label_Approve_Submit)}\r\n \r\n );\r\n case LOAN_STATES.APROVADO:\r\n return (\r\n handleUpdate()}>\r\n {intl.formatMessage(labels.Label_Update_Submit)}\r\n \r\n );\r\n case LOAN_STATES.REEMBOLSADO:\r\n case LOAN_STATES.REJEITADO:\r\n default:\r\n return <>;\r\n }\r\n }\r\n\r\n function showRejectCancelButton(state) {\r\n switch (state) {\r\n case LOAN_STATES.EM_APROVACAO:\r\n return (\r\n handleReject()}>\r\n {intl.formatMessage(labels.Label_Reject_Submit)}\r\n \r\n );\r\n case LOAN_STATES.APROVADO:\r\n case LOAN_STATES.REEMBOLSADO:\r\n case LOAN_STATES.REJEITADO:\r\n return (\r\n history.goBack()}>\r\n {intl.formatMessage(labels.Label_GoBack_Button)}\r\n \r\n );\r\n default:\r\n return;\r\n }\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getLoan: (loanNumber) => dispatch(getLoanAction(loanNumber)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(LoanDetails);\r\n","import {\r\n createInformation,\r\n getFilteredInformation,\r\n getInformationDetails,\r\n updateInformationPublish,\r\n updateInformationHighlighted,\r\n updateInformation,\r\n} from \"crud/informationdissemination.crud\";\r\nimport { INFORMATION_DISSEMINATION, DIALOG } from \"utils/actionsConsts\";\r\nimport moment from \"moment\";\r\n\r\nexport const createInformationAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: \"createInformation_loading\",\r\n payload: true,\r\n });\r\n createInformation(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.CREATE,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data !== null,\r\n message: res.data !== null ? \"Informação criada com sucesso\" : \"Ocorreu um erro a criar o Informação\",\r\n goBack: true,\r\n onClose: `/admin/informationdissemination-details/${res.data}`,\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.CREATE,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFilteredInformationAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_FILTERED_INFORMATION_DISSEMINATION_LOADING,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n getFilteredInformation(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n alternateKey: record.alternateKey,\r\n informationDisseminationTypeId: record.informationDisseminationTypeId,\r\n informationDisseminationTypeKeyValue: record.informationDisseminationTypeKeyValue,\r\n informationDisseminationTypeDescription: record.informationDisseminationTypeDescription,\r\n title: record.title,\r\n description: record.description,\r\n isPublic: record.isPublic,\r\n published: record.published,\r\n publishedOn: record.publishedOn !== null ? moment(record.publishedOn).format(\"DD/MM/YYYY\") : null,\r\n isHighlighted: record.isHighlighted,\r\n photo: record.thumbnail,\r\n socialMediaList: record.socialMediaList,\r\n };\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_FILTERED_INFORMATION_DISSEMINATION,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_FILTERED_INFORMATION_DISSEMINATION_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_FILTERED_INFORMATION_DISSEMINATION,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_FILTERED_INFORMATION_DISSEMINATION_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getInformationDetailsActions = (formData, history) => async (dispatch) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.CLEAR_DETAIL,\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_INFORMATION_DISSEMINATION_DETAILS_LOADING,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n getInformationDetails(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_INFORMATION_DISSEMINATION_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n\r\n if(!res.data.success){\r\n return history.push('/admin/informationdissemination-management');\r\n }\r\n\r\n let infoData = res.data.infoData;\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_INFORMATION_DISSEMINATION_DETAILS,\r\n result: true,\r\n payload: {\r\n alternateKey: infoData.alternateKey,\r\n informationDisseminationTypeId: infoData.informationDisseminationTypeId,\r\n informationDisseminationTypeKeyValue: infoData.informationDisseminationTypeKeyValue,\r\n informationDisseminationTypeDescription: infoData.informationDisseminationTypeDescription,\r\n title: infoData.title,\r\n description: infoData.description,\r\n isPublic: infoData.isPublic,\r\n published: infoData.published,\r\n publishedOn: infoData.publishedOn !== null ? moment(infoData.publishedOn).format(\"DD/MM/YYYY\") : null,\r\n publishedBy: infoData.publishedBy,\r\n createdBy: infoData.createdBy,\r\n isHighlighted: infoData.isHighlighted,\r\n mediaList: infoData.mediaList,\r\n socialMediaList: infoData.socialMediaList,\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_INFORMATION_DISSEMINATION_DETAILS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.GET_INFORMATION_DISSEMINATION_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateInformationAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.UPDATE_INFORMATION_DISSEMINATION_LOADING,\r\n payload: true,\r\n });\r\n updateInformation(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.UPDATE_INFORMATION_DISSEMINATION_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data !== \"\" && res.data !== 0,\r\n goBack: res.data !== \"\" && res.data !== 0,\r\n onClose: `/admin/informationdissemination-details/${res.data}`,\r\n message:\r\n res.data !== \"\"\r\n ? res.data !== 0\r\n ? \"Informação actualizada com sucesso\"\r\n : \"Não é possível publicar a sua própria informação\"\r\n : \"Ocorreu um erro a actualizar a informação\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.UPDATE_INFORMATION_DISSEMINATION_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateInformationPublishAction = (formData, errorFunction) => async (dispatch) => {\r\n updateInformationPublish(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.UPDATE_INFORMATION_DISSEMINATION_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data.success,\r\n goBack: true,\r\n onClose: \"/admin/informationdissemination-management\",\r\n message:\r\n res.data !== \"\"\r\n ? res.data.success\r\n ? formData.published\r\n ? \"Informação publicada com sucesso\"\r\n : \"Informação retirada do Frontoffice com sucesso\"\r\n : \"Não é possível publicar a sua própria informação\"\r\n : formData.published\r\n ? \"Ocorreu um erro a publicar a informação\"\r\n : \"Ocorreu um erro a ocultar a informação\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.PUBLISH,\r\n payload: res.data !== \"\" ? res.data : null,\r\n });\r\n\r\n if (errorFunction && (res.data === \"\" || res.data === null)) errorFunction();\r\n\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateInformationHighlightedAction = (formData, errorFunction) => async (dispatch) => {\r\n updateInformationHighlighted(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.UPDATE_INFORMATION_DISSEMINATION_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data.success,\r\n goBack: true,\r\n onClose: \"/admin/informationdissemination-management\",\r\n message:\r\n res.data !== \"\"\r\n ? res.data.success\r\n ? formData.highlighted\r\n ? \"Informação colocada em destaque com sucesso\"\r\n : \"Informação retirada de destaque do Frontoffice com sucesso\"\r\n : \"Não é possível colocar em destaque a sua própria informação\"\r\n : formData.highlighted\r\n ? \"Ocorreu um erro a colocar em destaque a informação\"\r\n : \"Ocorreu um erro a retirar de destaque a informação\",\r\n },\r\n },\r\n });\r\n\r\n if (errorFunction && (res.data === \"\" || res.data === null || !res.data.success)) errorFunction();\r\n\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: INFORMATION_DISSEMINATION.REFRESH_RESULTS,\r\n payload: true,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL } from \"../index\";\r\nimport { EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const CREATE_INFORMATION_URL = \"InformationDissemination/create\";\r\nexport const GET_FILTERED_INFORMATION_URL = \"InformationDissemination/get-filtered-information\";\r\nexport const GET_INFORMATION_DETAILS_URL = \"InformationDissemination/get-information-details\";\r\nexport const UPDATE_INFORMATION_PUBLISH_URL = \"InformationDissemination/publish-information\";\r\nexport const UPDATE_INFORMATION_HIGHLIGHT_URL = \"InformationDissemination/highlight-information\";\r\nexport const UPDATE_INFORMATION_URL = \"InformationDissemination/update\";\r\n\r\n\r\nexport function createInformation(data) {\r\n return axios.post(INTERNAL_API_URL + CREATE_INFORMATION_URL, data);\r\n}\r\n\r\nexport function getFilteredInformation(data) {\r\n return axios.post(EXTERNAL_API_URL + GET_FILTERED_INFORMATION_URL, data);\r\n}\r\n\r\nexport function getInformationDetails(data) {\r\n return axios.get(EXTERNAL_API_URL + GET_INFORMATION_DETAILS_URL, {\r\n params: {\r\n alternateKey: data,\r\n },\r\n });\r\n}\r\n\r\nexport function updateInformation(data) {\r\n return axios.post(INTERNAL_API_URL + UPDATE_INFORMATION_URL, data);\r\n}\r\n\r\nexport function updateInformationPublish(data) {\r\n return axios.post(INTERNAL_API_URL + UPDATE_INFORMATION_PUBLISH_URL, data);\r\n}\r\n\r\nexport function updateInformationHighlighted(data) {\r\n return axios.post(INTERNAL_API_URL + UPDATE_INFORMATION_HIGHLIGHT_URL, data);\r\n}\r\n","export function informationDisseminationMap(formData, mediaToDeleteList) {\r\n if (formData !== null && formData !== undefined) {\r\n const infoDissemination = {\r\n alternateKey:\r\n formData.informationDisseminationAlternateKey !== undefined\r\n ? formData.informationDisseminationAlternateKey\r\n : null,\r\n title: formData.informationDisseminationTitle,\r\n description:\r\n formData.informationDisseminationDescription !== undefined\r\n ? formData.informationDisseminationDescription\r\n : null,\r\n isPublic:\r\n formData.informationDisseminationIsPublic !== undefined ? formData.informationDisseminationIsPublic : false,\r\n published:\r\n formData.informationDisseminationPublished !== undefined ? formData.informationDisseminationPublished : false,\r\n informationDisseminationTypeId:\r\n formData.informationDisseminationType !== undefined ? formData.informationDisseminationType.code : \"\",\r\n informationDisseminationTypeKeyValue:\r\n formData.informationDisseminationType !== undefined ? formData.informationDisseminationType.keyValue : \"\",\r\n isHighlighted:\r\n formData.informationDisseminationHighlighted !== undefined\r\n ? formData.informationDisseminationHighlighted\r\n : false,\r\n }; \r\n \r\n //Set FormData\r\n const data = new FormData();\r\n //Append fields\r\n for (const key in infoDissemination) {\r\n data.append(\"InfoDissemination.\" + key, infoDissemination[key]);\r\n }\r\n //Append files\r\n formData.informationDisseminationPhotoList?.forEach((file) => {\r\n data.append(\"PhotoList\", file);\r\n });\r\n\r\n formData.informationDisseminationVideoUrlList?.forEach((mediaUrl) => {\r\n if (!mediaUrl.id) data.append(\"InfoDissemination.Urls\", mediaUrl.url);\r\n });\r\n mediaToDeleteList?.forEach((mediaId) => {\r\n data.append(\"InfoDissemination.MediaListToDelete\", mediaId);\r\n });\r\n\r\n formData.socialMediaList?.forEach((socialMedia, key) => {\r\n data.append(\"InfoDissemination.SocialMediaList[\" + key + \"].SociaMediaTypeKeyValue\", socialMedia.sociaMediaTypeKeyValue);\r\n data.append(\"InfoDissemination.SocialMediaList[\" + key + \"].Url\", socialMedia.url);\r\n });\r\n\r\n return data;\r\n }\r\n\r\n return formData;\r\n}\r\n\r\nexport function informationDisseminationSearchMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n searchText: formData.searchText,\r\n InformationDisseminationTypeKeyValueList:\r\n formData.informationDisseminationType\r\n ? [formData.informationDisseminationType?.keyValue]\r\n : [],\r\n Published:\r\n formData.informationDisseminationPublished !== undefined\r\n ? formData.informationDisseminationPublished?.code\r\n : undefined,\r\n isPublic:\r\n formData.informationDisseminationAccess !== undefined\r\n ? formData.informationDisseminationAccess.label === \"Público\"\r\n : undefined,\r\n isHighlighted:\r\n formData.informationDisseminationHighlighted !== undefined\r\n ? formData.informationDisseminationHighlighted?.code\r\n : undefined,\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport default informationDisseminationMap;\r\n","import { React, useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useHistory } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n// components\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getFilteredInformationAction } from \"redux/actions/informationDisseminationAction\";\r\nimport { DATASET, PAGINATION } from \"utils/consts\";\r\nimport { informationDisseminationSearchMap } from \"mappers/informationDisseminationMap\";\r\nimport { labels, titles } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const [filter, setFilter] = useState({\r\n searchText: \"\",\r\n informationDisseminationType: null,\r\n informationDisseminationPublished: null,\r\n informationDisseminationAccess: null,\r\n informationDisseminationHighlighted: null,\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"searchText\", \"\");\r\n setValue(\"informationDisseminationType\", undefined);\r\n setValue(\"informationDisseminationPublished\", undefined);\r\n setValue(\"informationDisseminationAccess\", undefined);\r\n setValue(\"informationDisseminationHighlighted\", undefined);\r\n\r\n setFilterCounter(0);\r\n setFilter(0);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n let filter = informationDisseminationSearchMap(data);\r\n filter[\"pageIndex\"] = 1;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE_DISSEMINATION;\r\n setFilter(filter);\r\n if (props.page === 1) {\r\n props.getFilterInformation(filter);\r\n } else {\r\n props.handleChangePage(1);\r\n }\r\n }\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n const redirectToInformationDisseminationCreation = (event) => {\r\n event.preventDefault();\r\n history.push(\"/admin/informationdissemination-create\");\r\n };\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.INFORMATION_DISSEMINATION_TYPE] === undefined ||\r\n props.dataSetState[DATASET.INFORMATION_DISSEMINATION_TYPE]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.INFORMATION_DISSEMINATION_TYPE);\r\n }\r\n if (\r\n props.dataSetState[DATASET.INFORMATION_DISSEMINATION_ACCESS] === undefined ||\r\n props.dataSetState[DATASET.INFORMATION_DISSEMINATION_ACCESS]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.INFORMATION_DISSEMINATION_ACCESS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n //Refresh Results\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE_DISSEMINATION;\r\n props.getFilterInformation(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n return (\r\n \r\n \r\n
Pesquisa de Informação
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(titles.Title_InformationDissemination_CreateInformation)}\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Pesquisa (título/descrição)\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"searchText\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"searchText\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n\r\n \r\n \r\n Categoria\r\n \r\n \r\n \r\n\r\n \r\n \r\n Acesso\r\n \r\n \r\n \r\n\r\n \r\n \r\n Publicado\r\n \r\n \r\n \r\n\r\n \r\n \r\n Em Destaque\r\n \r\n \r\n \r\n {/* Butões de Pesquisa */}\r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getFilterInformation: (data) => dispatch(getFilteredInformationAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FilterSection);\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n border: \"0!important\",\r\n },\r\n listItemRoot: {\r\n borderBottom: \"1px solid \" + theme.palette.gray[200],\r\n },\r\n\r\n cardButtons: {\r\n padding: \"6px 4px 6px 4px\",\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"4px\",\r\n borderColor: theme.palette.primary.main,\r\n fontStyle: \"normal\",\r\n fontWeight: 600,\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.white.main,\r\n borderColor: theme.palette.primary.main,\r\n },\r\n },\r\n\r\n cardButtonsDisable: {\r\n padding: \"6px 4px 6px 4px\",\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"4px\",\r\n borderColor: theme.palette.info.grey,\r\n fontStyle: \"normal\",\r\n fontWeight: 600,\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n\r\n editButton: {\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08) !important\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n width: \"50%\",\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n switchText: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n\r\n switchNotPublished: {\r\n color: theme.palette.error.badge,\r\n },\r\n\r\n switchPublished: {\r\n color: theme.palette.success.snackbar,\r\n },\r\n\r\n alignEnd: {\r\n textAlign: \"end\",\r\n },\r\n\r\n cardImgTop: {\r\n borderTopLeftRadius: \"calc(.375rem - 1px)\",\r\n borderTopRightRadius: \"calc(.375rem - 1px)\",\r\n flexShrink: 0,\r\n width: \"100%\",\r\n verticalAlign: \"middle\",\r\n borderStyle: \"none\",\r\n height: \"175px\",\r\n objectFit: \"contain\",\r\n backgroundColor: theme.palette.white.smoke,\r\n },\r\n cardImgOverlay: {\r\n position: \"absolute\",\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n left: 0,\r\n padding: \"1.25rem\",\r\n borderRadius: \"calc(.375rem - 1px)\",\r\n },\r\n cardLabelTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n },\r\n doubleLineTitleEllipsis: {\r\n display: \"-webkit-box\",\r\n \"-webkitBoxOrient\": \"vertical\",\r\n \"-webkitLineClamp\": \"2\",\r\n lineHeight: \"1.5rem\",\r\n height: \"3rem\",\r\n overflow: \"hidden\",\r\n textOverflow: \"ellipsis\",\r\n },\r\n descriptionSize: {\r\n height: \"6.5rem\",\r\n marginBottom: \"1rem\",\r\n },\r\n tooltip: {\r\n maxWidth: \"280px\",\r\n marginTop: \"1px\",\r\n marginBottom: \"1px\",\r\n backgroundColor: theme.palette.grey[300],\r\n color: theme.palette.black.light,\r\n textAlign: \"justify\",\r\n },\r\n tooltipArrow: {\r\n color: theme.palette.grey[300],\r\n },\r\n topLeftIcon: {\r\n position: \"absolute\",\r\n left: \"5px\",\r\n top: \"5px\",\r\n width: \"25px\",\r\n height: \"25px\",\r\n color: theme.palette.warning.light,\r\n backgroundColor: theme.palette.white.main,\r\n borderRadius: \"50%\",\r\n },\r\n quillOverflowHidden: {\r\n \"& .ql-container .ql-editor\": {\r\n overflowY: \"hidden\",\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport ReactQuill from \"react-quill\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\n// import Box from \"@material-ui/core/Box\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport StarIcon from \"@material-ui/icons/Star\";\r\nimport StarBorderIcon from \"@material-ui/icons/StarBorder\";\r\n// @material-ui/icons components\r\nimport componentStyles from \"assets/theme/views/admin/generic-card.js\";\r\nimport { updateInformationPublishAction } from \"redux/actions/informationDisseminationAction\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction InformationDisseminationCard(props) {\r\n const classes = { ...useStyles() };\r\n const [statePublished, setStatePublished] = useState(false);\r\n\r\n const handleChangePublished = (data, event) => {\r\n let publishData = { alternateKey: data, published: event.target.checked };\r\n\r\n props.updateInformationPublish(publishData);\r\n };\r\n\r\n useEffect(() => {\r\n setStatePublished(props.published);\r\n }, [props.published]);\r\n\r\n return (\r\n <>\r\n \r\n {\"\"}\r\n\r\n\r\n \r\n {props.isHighlighted ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n\r\n \r\n Editar\r\n \r\n\r\n \r\n \r\n \r\n \r\n Categoria\r\n \r\n \r\n {props.informationDisseminationTypeDescription}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Autenticação\r\n \r\n \r\n {props.isPublic ? \"Não\" : \"Sim\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Publicação\r\n \r\n \r\n {props.publishedOn ?? \"N/A\"}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {props.title}\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n {\r\n handleChangePublished(props.alternateKey, e);\r\n }}\r\n color=\"primary\"\r\n />\r\n \r\n {statePublished ? \"Publicado\" : \"Não Publicado\"}\r\n \r\n \r\n \r\n \r\n \r\n Ver mais\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateInformationPublish: (data) => dispatch(updateInformationPublishAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(InformationDisseminationCard);\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Backdrop from \"@material-ui/core/Backdrop\";\r\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n backdrop: {\r\n zIndex: theme.zIndex.drawer + 1,\r\n color: theme.palette.white.main,\r\n backgroundColor: \"#00000030\",\r\n position: \"absolute\",\r\n },\r\n circularProgress: {\r\n color: theme.palette.info.main,\r\n position: \"absolute\",\r\n top: \"5%\",\r\n }\r\n}));\r\n\r\nexport default function CardsListBackdrop(props) {\r\n const classes = useStyles();\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\n// @material-ui/icons components\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport InformationDisseminationCard from \"../Card/InformationDisseminationCard\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport CardsListBackdrop from \"components/Backdrops/CardsListBackdrop\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ResultSection(props) {\r\n const classes = useStylesGeneric();\r\n const [informationList, setInformationList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.informationDisseminationState.result)) {\r\n setInformationList(props.informationDisseminationState.result.data);\r\n } else {\r\n setInformationList([]);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDisseminationState.result.data]);\r\n\r\n return (\r\n <>\r\n {informationList !== undefined && informationList.length > 0 ? (\r\n \r\n {informationList?.map((info, key) => (\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n ) : (\r\n \r\n Não foram encontrados resultados para esta pesquisa.\r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ResultSection);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FilterSection from \"./Sections/FilterSection\";\r\nimport ResultSection from \"./Sections/ResultSection\";\r\n// import Card from \"@material-ui/core/Card\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction InformationDissemination() {\r\n const classes = useStylesGeneric();\r\n // const theme = useTheme();\r\n\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n { handleChangePage(undefined, value); }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(InformationDissemination);\r\n","const componentStyles = (theme) => ({\r\n addButtonGrid: {\r\n padding: 0,\r\n paddingRight: \"20px\",\r\n display: \"flex\",\r\n alignItems: \"flex-start\",\r\n justifyContent: \"center\",\r\n marginTop: \"0.25rem\",\r\n },\r\n addButtonRoot: {\r\n color: theme.palette.primary.main,\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08) !important\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.mediumBlue,\r\n padding: \"4px 8px\",\r\n \"&.Mui-disabled\": {\r\n \"& .MuiSvgIcon-root\": {\r\n color: theme.palette.primary.mediumBlue,\r\n },\r\n },\r\n },\r\n addButtonIconRoot: {\r\n color: theme.palette.primary.main,\r\n width: \"25px\",\r\n height: \"25px\",\r\n },\r\n deleteButtonIconRoot: {\r\n color: theme.palette.primary.main,\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n deleteButtonRoot: {\r\n padding: 0,\r\n },\r\n previewsContainer: {\r\n paddingLeft: \"15px\",\r\n overflow: \"auto\",\r\n maxHeight: \"300px\",\r\n },\r\n previewOuterBox: {\r\n display: \"flex\",\r\n backgroundColor: theme.palette.white.main,\r\n marginRight: \"10px\",\r\n marginBottom: \"10px\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n color: theme.palette.primary.main,\r\n borderRadius: \"4px\",\r\n border: \"1px solid \" + theme.palette.primary.main,\r\n padding: \".4em .3em .3em .85em\",\r\n alignItems: \"center\",\r\n },\r\n previewBox: {\r\n paddingRight: \"5px\",\r\n },\r\n\r\n iframe: {\r\n border: 0,\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n// MUI Core\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n// MUI Icons\r\nimport ClearIcon from \"@material-ui/icons/Clear\";\r\nimport AddIcon from \"@material-ui/icons/Add\";\r\n// custom\r\nimport componentStyles from \"assets/theme/components/formFields/embeddedVideosField.js\";\r\nimport { messages } from \"resources/resources\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nexport const EmbeddedVideosField = ({\r\n name,\r\n inputFieldName,\r\n control,\r\n setValue,\r\n getValues,\r\n trigger,\r\n errors,\r\n maxNumberOfVideoUrls,\r\n showPreviews = false,\r\n videoUrlList = null,\r\n handleMediaDelete,\r\n}) => {\r\n const classes = { ...useStyles() };\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [videoUrlListState, setVideoUrlListState] = useState([]);\r\n\r\n const [videosMaxNumberError, setVideosMaxNumberError] = useState(false);\r\n const [inputFieldEmpty, setInputFieldEmpty] = useState(true);\r\n\r\n useEffect(() => {\r\n if (videoUrlList !== null && videoUrlList.length > 0) {\r\n setValue(name, videoUrlList);\r\n setVideoUrlListState(videoUrlList);\r\n trigger(name);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [videoUrlList]);\r\n\r\n const remove = (i) => {\r\n const newList = [...videoUrlListState];\r\n\r\n if (newList[i].id !== null) handleMediaDelete(newList[i].id);\r\n\r\n newList.splice(i, 1);\r\n\r\n setValue(name, newList);\r\n setVideoUrlListState(newList);\r\n trigger(name);\r\n\r\n setVideosMaxNumberError(false);\r\n };\r\n\r\n function addUrl() {\r\n if (errors[inputFieldName] === undefined && !inputFieldEmpty) {\r\n var url = parseSrcUrl(getValues(inputFieldName));\r\n var urlObject = { id: null, url: url };\r\n const newList = [...videoUrlListState, urlObject];\r\n\r\n setValue(name, newList);\r\n setVideoUrlListState(newList);\r\n trigger(name);\r\n\r\n setValue(inputFieldName, \"\");\r\n }\r\n }\r\n\r\n function parseSrcUrl(input) {\r\n if (!input) return \"\";\r\n\r\n // RegExp to get the url from src=\"url\"\r\n let rgx = new RegExp(/https?:\\/\\/[^\\s\"]*/, \"gu\");\r\n\r\n let url = input.match(rgx)[0];\r\n\r\n // RegExp to clear &width, &height, ?width, ?height from url\r\n let clearWidthHeightRgx = new RegExp(/&width=\\d+|&height=\\d+|\\?width=\\d+&|\\?height=\\d+&/, \"gu\");\r\n\r\n let matchesToClean = url.match(clearWidthHeightRgx);\r\n\r\n matchesToClean?.forEach((match) => {\r\n // Remove '?' when url has ?width=123&, if it is ?width=123 remove it all since '?' isn't needed\r\n match = match[0] === \"?\" && match.at(-1) === \"&\" ? match.replace(\"?\", \"\") : match;\r\n url = url.replace(match, \"\");\r\n });\r\n\r\n return url;\r\n }\r\n\r\n const previews = videoUrlListState.map((videoUrl, i) => (\r\n \r\n \r\n {showPreviews && (\r\n \r\n )}\r\n \r\n \r\n {\r\n remove(i);\r\n }}\r\n classes={{ root: classes.deleteButtonRoot }}\r\n >\r\n \r\n \r\n \r\n \r\n ));\r\n\r\n return (\r\n <>\r\n \r\n \r\n (\r\n {\r\n onChange(e);\r\n if (e.target.value?.length > 0) setInputFieldEmpty(false);\r\n else setInputFieldEmpty(true);\r\n }}\r\n onKeyDown={(e) => {\r\n if (e.key === \"Enter\") {\r\n addUrl();\r\n e.preventDefault();\r\n }\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n placeholder={'Exemplo: '}\r\n multiline={false}\r\n rows={1}\r\n type=\"text\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[name] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {errors[inputFieldName] !== undefined && (\r\n \r\n {errors[inputFieldName].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {previews}\r\n\r\n {videosMaxNumberError && (\r\n \r\n {intl.formatMessage(messages.Message_Generic_InvalidUrl)} {maxNumberOfVideoUrls}.\r\n \r\n )}\r\n \r\n\r\n \r\n {errors[name] !== undefined && (\r\n \r\n {errors[name].message}\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default EmbeddedVideosField;\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport clsx from \"clsx\";\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { Link,useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\nimport ReactQuill from \"react-quill\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport InfoOutlinedIcon from \"@material-ui/icons/InfoOutlined\";\r\n//import custom components\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport DropzoneField from \"components/FormFields/DropzoneField\";\r\nimport EmbeddedVideosField from \"components/FormFields/EmbeddedVideosField\";\r\nimport { informationDisseminationMap } from \"mappers/informationDisseminationMap\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { createInformationAction, updateInformationAction } from \"redux/actions/informationDisseminationAction\";\r\nimport { DATASET, INFORMATION_DISSEMINATION_TYPE_KEYVALUE } from \"utils/consts\";\r\nimport { messages, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CreateEditSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const [statePublic, setStatePublic] = useState(false);\r\n const [statePublished, setStatePublished] = useState(false);\r\n const [stateHighlighted, setStateHighlighted] = useState(false);\r\n const [photosList, setPhotosList] = useState();\r\n const [videoUrlList, setVideoUrlList] = useState();\r\n const [mediaToDeleteList, setMediaToDeleteList] = useState([]);\r\n const {\r\n handleSubmit,\r\n trigger,\r\n register,\r\n getValues,\r\n setValue,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const socialMediaPrefix = 'socialMedia_'\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.INFORMATION_DISSEMINATION_TYPE] === undefined ||\r\n props.dataSetState[DATASET.INFORMATION_DISSEMINATION_TYPE]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.INFORMATION_DISSEMINATION_TYPE);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.SOCIAL_MEDIA_TYPE] === undefined ||\r\n props.dataSetState[DATASET.SOCIAL_MEDIA_TYPE]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.SOCIAL_MEDIA_TYPE);\r\n }\r\n\r\n setValue(\"informationDisseminationIsPublic\", false);\r\n setValue(\"informationDisseminationDescription\", null);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.isEditable && props.informationDetailsData?.alternateKey !== undefined) {\r\n setValue(\r\n \"informationDisseminationType\",\r\n props.dataSetState[DATASET.INFORMATION_DISSEMINATION_TYPE] !== undefined\r\n ? props.dataSetState[DATASET.INFORMATION_DISSEMINATION_TYPE].find(\r\n (r) => r.code === props.informationDetailsData.informationDisseminationTypeId\r\n )\r\n : []\r\n );\r\n setValue(\"informationDisseminationTitle\", props.informationDetailsData.title);\r\n setValue(\"informationDisseminationDescription\", props.informationDetailsData.description);\r\n setValue(\"informationDisseminationIsPublic\", props.informationDetailsData.isPublic);\r\n setValue(\"informationDisseminationPublished\", props.informationDetailsData.published);\r\n setValue(\"informationDisseminationHighlighted\", props.informationDetailsData.isHighlighted);\r\n\r\n setPhotosList(\r\n props.informationDetailsData.mediaList\r\n .filter((media) => media.photo !== null)\r\n .map((photoObj) => getDataPhoto(photoObj))\r\n );\r\n setVideoUrlList(\r\n props.informationDetailsData.mediaList\r\n .filter((media) => media.url !== null)\r\n .map((videoObj) => getDataVideo(videoObj))\r\n );\r\n\r\n props.dataSetState?.SocialMediaType?.forEach((item) => {\r\n const url = props.informationDetailsData?.socialMediaList?.find((socialMedia) => socialMedia.sociaMediaTypeKeyValue === item.keyValue)?.url\r\n setValue(socialMediaPrefix + item.keyValue, url === undefined ? '' : url);\r\n });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDetailsData]);\r\n\r\n function getDataPhoto(object) {\r\n return { id: object.id, photo: object.photo };\r\n }\r\n\r\n function getDataVideo(object) {\r\n return { id: object.id, url: object.url };\r\n }\r\n\r\n useEffect(() => {\r\n setStatePublished(\r\n props.informationDetailsData !== undefined && props.informationDetailsData?.published !== undefined\r\n ? props.informationDetailsData.published\r\n : false\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDetailsData?.published]);\r\n\r\n useEffect(() => {\r\n setStatePublic(\r\n props.informationDetailsData !== undefined && props.informationDetailsData?.isPublic !== undefined\r\n ? props.informationDetailsData.isPublic\r\n : false\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDetailsData?.isPublic]);\r\n\r\n useEffect(() => {\r\n setStateHighlighted(\r\n props.informationDetailsData !== undefined && props.informationDetailsData?.isHighlighted !== undefined\r\n ? props.informationDetailsData.isHighlighted\r\n : false\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDetailsData?.isHighlighted]);\r\n\r\n const handleCancelOnClickEvent = () => {\r\n history.goBack();\r\n };\r\n\r\n const handleChangePublic = (event) => {\r\n setStatePublic(event.target.checked);\r\n };\r\n\r\n const handleChangePublished = (event) => {\r\n setStatePublished(event.target.checked);\r\n };\r\n\r\n const handleChangeHighlighted = (event) => {\r\n setStateHighlighted(event.target.checked);\r\n };\r\n\r\n const handleMediaDelete = (mediaId) => {\r\n setMediaToDeleteList((prevState) => {\r\n return [...prevState, mediaId];\r\n });\r\n };\r\n\r\n function handleRequiredPhoto() {\r\n if (getValues(\"informationDisseminationType\") !== undefined) {\r\n if (getValues(\"informationDisseminationType\")?.keyValue === INFORMATION_DISSEMINATION_TYPE_KEYVALUE.LEGISLATION) {\r\n return false;\r\n }\r\n }\r\n if (\r\n props.informationDetailsData?.mediaList !== null &&\r\n props.informationDetailsData?.mediaList !== undefined &&\r\n props.informationDetailsData?.mediaList?.length > 0\r\n ) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n function validateDescriptionContent(desc) {\r\n let span = document.createElement(\"span\");\r\n span.innerHTML = desc;\r\n let res = span.textContent.replace(/\\s/g, \"\") !== \"\";\r\n\r\n return res;\r\n }\r\n\r\n function isInformationType() {\r\n if (getValues(\"informationDisseminationType\")?.keyValue === INFORMATION_DISSEMINATION_TYPE_KEYVALUE.INFORMATION)\r\n return true;\r\n return false;\r\n }\r\n\r\n const onSubmit = (data) => {\r\n data[\"informationDisseminationAlternateKey\"] = props.informationDetailsData?.alternateKey;\r\n\r\n let socialMediaList = [];\r\n\r\n Object.keys(data).forEach(key => {\r\n if(key.includes(socialMediaPrefix)) \r\n socialMediaList.push({ \r\n sociaMediaTypeKeyValue: props.dataSetState?.SocialMediaType?.find(element => element.keyValue === key.replace(socialMediaPrefix, ''))?.keyValue, \r\n url: data[key]\r\n });\r\n });\r\n\r\n data[\"socialMediaList\"] = socialMediaList;\r\n\r\n if (props.isEditable) {\r\n props.updateInformation(informationDisseminationMap(data, mediaToDeleteList));\r\n } else {\r\n props.createInformation(informationDisseminationMap(data));\r\n }\r\n };\r\n\r\n const isWebsite = (value) => {\r\n if(value === undefined || value === null || value === ''){\r\n return true;\r\n }\r\n\r\n const websitePattern = /^(https?:\\/\\/)?(www\\.)?[\\w-]+(\\.[\\w-]+)+[/#?]?.*$/i;\r\n \r\n return websitePattern.test(value);\r\n };\r\n\r\n return (\r\n <>\r\n
\r\n \r\n \r\n \r\n {props.isEditable ? (\r\n \r\n \r\n \r\n {statePublished\r\n ? intl.formatMessage(labels.Label_Admin_InformationDissemination_Published)\r\n : intl.formatMessage(labels.Label_Admin_InformationDissemination_NotPublished)}\r\n \r\n \r\n (\r\n {\r\n onChange(e.target.checked);\r\n handleChangePublished(e);\r\n }}\r\n color=\"primary\"\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n ) : (\r\n \"\"\r\n )}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_InformationCategory)}\r\n \r\n trigger(\"informationDisseminationType\")}\r\n />\r\n {errors[\"informationDisseminationType\"] !== undefined && (\r\n \r\n {errors[\"informationDisseminationType\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Authentication)}\r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_AuthenticatedUsers)}\r\n \r\n \r\n (\r\n {\r\n onChange(e.target.checked);\r\n handleChangePublic(e);\r\n }}\r\n color=\"primary\"\r\n />\r\n )}\r\n />\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_AuthenticationPublic)}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Highlight)}\r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_NotHighlighted)}\r\n \r\n \r\n (\r\n {\r\n onChange(e.target.checked);\r\n handleChangeHighlighted(e);\r\n }}\r\n color=\"primary\"\r\n />\r\n )}\r\n />\r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Highlighted)}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Title)}\r\n (\r\n \r\n )}\r\n />\r\n {errors?.informationDisseminationTitle?.message !== undefined && (\r\n \r\n {errors?.informationDisseminationTitle?.message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Description)}\r\n

has length=7\r\n message: intl.formatMessage(messages.Message_Generic_TextFieldLengthTooShort),\r\n },\r\n validate: {\r\n validateEmptyContent: (value) =>\r\n validateDescriptionContent(value) ||\r\n intl.formatMessage(messages.Message_Generic_MandatoryField),\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n }}\r\n />\r\n )}\r\n />\r\n {errors?.informationDisseminationDescription?.message !== undefined && (\r\n \r\n {errors?.informationDisseminationDescription?.message}\r\n \r\n )}\r\n
\r\n
\r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Images)}\r\n \r\n \r\n \r\n {isInformationType() && (\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Videos)}\r\n \r\n {\" ( ver Tutorial)\"}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {getValues(\"informationDisseminationType\")?.keyValue === INFORMATION_DISSEMINATION_TYPE_KEYVALUE.STRUCTURING_PROJECT && (\r\n (props.dataSetState?.SocialMediaType?.map((socialMediaType, key) => (\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_SocialMediaLink)} {socialMediaType.label}\r\n \r\n isWebsite(value) ||\r\n intl.formatMessage(messages.Message_Generic_InvalidUrl), \r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n {errors[socialMediaPrefix + socialMediaType.keyValue]?.message !== undefined && (\r\n \r\n {errors[socialMediaPrefix + socialMediaType.keyValue]?.message}\r\n \r\n )}\r\n \r\n \r\n )))\r\n )}\r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n handleCancelOnClickEvent()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.isEditable ? intl.formatMessage(labels.Label_Generic_Save) : intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n createInformation: (data) => dispatch(createInformationAction(data)),\r\n updateInformation: (data) => dispatch(updateInformationAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CreateEditSection);\r\n","import { React} from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport \"react-quill/dist/quill.snow.css\";\r\n//Header\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport CreateEditSection from \"./Sections/CreateEditSection\";\r\nimport { titles } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Create() {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n return (\r\n <>\r\n {scrollDirection === 'up' && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n \r\n\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Create);\r\n","import { React, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport \"react-quill/dist/quill.snow.css\";\r\n//Header\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport CreateEditSection from \"./Sections/CreateEditSection\";\r\nimport { getInformationDetailsActions } from \"redux/actions/informationDisseminationAction\";\r\nimport { titles } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Edit(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n\r\n useEffect(() => {\r\n if (\r\n props.informationDisseminationState.informationDetailsData === undefined ||\r\n props.informationDisseminationState.informationDetailsData.alternateKey !== props.match.params.infoKey\r\n ) {\r\n props.getInformationDetails(props.match.params.infoKey, history);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.infoKey]);\r\n\r\n return (\r\n <>\r\n {scrollDirection === 'up' && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getInformationDetails: (infoId, history) => dispatch(getInformationDetailsActions(infoId, history)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Edit);\r\n","const componentStyles = (theme) => ({\r\n photoItemDiv: {\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n height: \"50vh\",\r\n backgroundColor: theme.palette.primary.lightBlue,\r\n },\r\n videoItemDiv: {\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n height: \"50vh\",\r\n backgroundColor: theme.palette.primary.lightBlue,\r\n },\r\n indicatorIcon: {\r\n width: \"20px\",\r\n height: \"20px\",\r\n },\r\n img: {\r\n height: 'inherit',\r\n maxHeight: \"50vh\",\r\n maxWidth: \"100%\",\r\n cursor: \"pointer\",\r\n },\r\n previewDialogDiv: {\r\n height: \"min-content\",\r\n maxWidth: \"100%\",\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n backgroundColor: theme.palette.white.main,\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React, { useState, useEffect, useRef } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport Carousel from \"react-material-ui-carousel\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport FiberManualRecordIcon from \"@material-ui/icons/FiberManualRecord\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport componentStylesCarousel from \"assets/theme/components/genericPage/carouselMediaPreviewSection\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\n\r\nconst useStylesCarousel = makeStyles(componentStylesCarousel);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CarouselMediaPreviewSection(props) {\r\n const theme = useTheme();\r\n const classes = { ...useStylesGeneric(), ...useStylesCarousel() };\r\n\r\n const [fullscreenImageSrc, setFullscreenImageSrc] = useState(null);\r\n const [showImagePreview, setShowImagePreview] = useState(false);\r\n\r\n //Hook that alerts clicks outside of the passed ref\r\n function ClickOutsideComponent(ref) {\r\n useEffect(() => {\r\n //Alert if clicked on outside of element\r\n function handleClickOutside(event) {\r\n if (ref.current && !ref.current.contains(event.target)) {\r\n setShowImagePreview(false);\r\n }\r\n }\r\n // Bind the event listener\r\n document.addEventListener(\"mousedown\", handleClickOutside);\r\n return () => {\r\n // Unbind the event listener on clean up\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n };\r\n }, [ref]);\r\n }\r\n\r\n const wrapperRef = useRef(null);\r\n ClickOutsideComponent(wrapperRef);\r\n\r\n return (\r\n <>\r\n {props.mediaList !== undefined && props.mediaList !== null && props.mediaList.length > 0 && (\r\n }\r\n activeIndicatorIconButtonProps={{\r\n style: {\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n }}\r\n indicatorContainerProps={{\r\n style: {},\r\n }}\r\n >\r\n {props.mediaList.map((mediaItem, key) =>\r\n mediaItem.photo !== null ? (\r\n
\r\n \r\n {\r\n setFullscreenImageSrc(mediaItem[props.mediaItemPhotoName]);\r\n setShowImagePreview(true);\r\n }}\r\n />\r\n \r\n
\r\n ) : (\r\n
\r\n \r\n
\r\n )\r\n )}\r\n \r\n )}\r\n\r\n {/* Image Preview */}\r\n setShowImagePreview(false)}>\r\n {\r\n if (e.key === \"Escape\") {\r\n setShowImagePreview(false);\r\n e.preventDefault();\r\n }\r\n }}\r\n >\r\n {\"\"}\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CarouselMediaPreviewSection);\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\nimport ReactQuill from \"react-quill\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\n// @material-ui/icons components\r\n\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport CarouselMediaPreviewSection from \"components/GenericPage/CarouselMediaPreviewSection\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport \"react-quill/dist/quill.snow.css\";\r\nimport {\r\n updateInformationPublishAction,\r\n updateInformationHighlightedAction,\r\n} from \"redux/actions/informationDisseminationAction\";\r\nimport { labels } from \"resources/resources\";\r\nimport { INFORMATION_DISSEMINATION_TYPE_KEYVALUE } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction DetailsSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const [statePublished, setStatePublished] = useState(false);\r\n const [stateHighlighted, setStateHighlighted] = useState(false);\r\n const [stateDescription, setStateDescription] = useState(null);\r\n\r\n useEffect(() => {\r\n setStatePublished(\r\n props.informationDetailsData !== undefined && props.informationDetailsData?.published !== undefined\r\n ? props.informationDetailsData.published\r\n : false\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDetailsData?.published]);\r\n\r\n useEffect(() => {\r\n setStateHighlighted(\r\n props.informationDetailsData !== undefined && props.informationDetailsData?.isHighlighted !== undefined\r\n ? props.informationDetailsData.isHighlighted\r\n : false\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDetailsData?.isHighlighted]);\r\n\r\n useEffect(() => {\r\n setStateDescription(\r\n props.informationDetailsData !== undefined && props.informationDetailsData?.description !== undefined\r\n ? props.informationDetailsData.description\r\n : null\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.informationDetailsData?.description]);\r\n\r\n const handleChangePublished = (data, event) => {\r\n setStatePublished(event.target.checked);\r\n let publishData = { alternateKey: data, published: event.target.checked };\r\n\r\n props.updateInformationPublish(publishData, function () {\r\n //errorFunction to undo switch pressing\r\n setStatePublished(!publishData.published);\r\n });\r\n };\r\n\r\n const handleChangeHighlighted = (data, event) => {\r\n setStateHighlighted(event.target.checked);\r\n let highlightedData = { alternateKey: data, highlighted: event.target.checked };\r\n\r\n props.updateInformationHighlighted(highlightedData, function () {\r\n //errorFunction to undo switch pressing\r\n setStateHighlighted(!highlightedData.highlighted);\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {stateHighlighted\r\n ? intl.formatMessage(labels.Label_Admin_InformationDissemination_Highlighted)\r\n : intl.formatMessage(labels.Label_Admin_InformationDissemination_NotHighlighted)}\r\n \r\n {\r\n handleChangeHighlighted(props.informationDetailsData.alternateKey, e);\r\n }}\r\n color=\"primary\"\r\n />\r\n \r\n \r\n \r\n {statePublished\r\n ? intl.formatMessage(labels.Label_Admin_InformationDissemination_Published)\r\n : intl.formatMessage(labels.Label_Admin_InformationDissemination_NotPublished)}\r\n \r\n {\r\n handleChangePublished(props.informationDetailsData.alternateKey, e);\r\n }}\r\n color=\"primary\"\r\n />\r\n \r\n \r\n {\r\n history.push(\r\n `/admin/informationdissemination-edit/${props?.informationDetailsData?.alternateKey}`\r\n );\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n \r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.informationDetailsData?.title}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_CreatedBy)}\r\n {props.informationDetailsData?.createdBy}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_PublishedBy)}\r\n \r\n {props.informationDetailsData?.publishedBy ?? intl.formatMessage(labels.Label_Not_Applicable)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_PublishedDate)}\r\n \r\n {props.informationDetailsData?.publishedOn ?? intl.formatMessage(labels.Label_Not_Applicable)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_InformationCategory)}\r\n \r\n \r\n {props.informationDetailsData?.informationDisseminationTypeDescription}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_Authentication)}\r\n \r\n \r\n {props.informationDetailsData?.isPublic\r\n ? intl.formatMessage(labels.Label_No)\r\n : intl.formatMessage(labels.Label_Yes)}\r\n \r\n \r\n \r\n \r\n {props.informationDetailsData?.informationDisseminationTypeKeyValue === INFORMATION_DISSEMINATION_TYPE_KEYVALUE.STRUCTURING_PROJECT && (\r\n (props.informationDetailsData?.socialMediaList?.map((socialMedia, key) => (\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_InformationDissemination_SocialMediaLink)} {socialMedia.sociaMediaTypeKeyValue}\r\n \r\n \r\n {socialMedia.url}\r\n \r\n \r\n \r\n )))\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateInformationPublish: (data, onError) => dispatch(updateInformationPublishAction(data, onError)),\r\n updateInformationHighlighted: (data, onError) => dispatch(updateInformationHighlightedAction(data, onError)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(DetailsSection);\r\n","import { React, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport \"react-quill/dist/quill.snow.css\";\r\n//Header\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport DetailsSection from \"./Sections/DetailsSection\";\r\nimport { getInformationDetailsActions } from \"redux/actions/informationDisseminationAction\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Details(props) {\r\n const classes = useStylesGeneric();\r\n const history = useHistory();\r\n const scrollDirection = useScrollDirection();\r\n\r\n useEffect(() => {\r\n if (\r\n props.informationDisseminationState.informationDetailsData === undefined ||\r\n props.informationDisseminationState.informationDetailsData.alternateKey !== props.match.params.infoKey ||\r\n props.informationDisseminationState.refresh_results\r\n ) {\r\n props.getInformationDetails(props.match.params.infoKey, history);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps \r\n }, [props.match.params.infoKey, props.informationDisseminationState.refresh_results]);\r\n\r\n return (\r\n <>\r\n {scrollDirection === 'up' && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getInformationDetails: (infoId, history) => dispatch(getInformationDetailsActions(infoId, history)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Details);\r\n","import {\r\n getFilteredOpportunities,\r\n getOpportunitiesDetails,\r\n updateOpportunityState,\r\n getCandidateInformation,\r\n getOpportunityUsers,\r\n createOpportunity,\r\n updateOpportunity,\r\n approveOpportunityCandidate,\r\n rejectOpportunityCandidate,\r\n getOpportunityDocument,\r\n getFilteredPossibleOpportunityCandidates,\r\n addOpportunityCandidatesList,\r\n getAllOpportunityApplications,\r\n getAllOpportunityApplicationsFollowUp,\r\n getOpportunityApplicationsFollowUpDetails,\r\n updateOpportunityFollowupPeriod,\r\n getOpportunityApplicationsFollowUpFeedbackReport,\r\n validateFeedbackReport,\r\n createAdHocFeedbackReport,\r\n getFilteredAvailableOpportunitiesForUser,\r\n createApplicationsForUser,\r\n} from \"crud/opportunities.crud\";\r\nimport { OPPORTUNITIES_ACTIONS, DIALOG } from \"utils/actionsConsts\";\r\nimport { UPDATE_OPPORTUNITY_STATE_ACTION_TYPE } from \"utils/consts\";\r\nimport { convertByteArrayToBlobUrl } from \"utils/converters\";\r\nimport moment from \"moment\";\r\n\r\nexport const getFilteredOpportunitiesAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_OPPORTUNITIES_ACTIONS_LOADING,\r\n payload: true,\r\n });\r\n getFilteredOpportunities(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n id: record.id,\r\n userId: record.userId,\r\n userName: record.userName,\r\n userTaxIdNumber: record.userTaxIdNumber,\r\n numVacancies: record.numVacancies,\r\n numVacanciesToCandidatesRatio: record.approvedCandidates + \"/\" + record.numVacancies,\r\n provinceId: record.provinceId,\r\n provinceKey: record.provinceKey,\r\n municipalityId: record.municipalityId,\r\n municipalityKey: record.municipalityKey,\r\n employmentCenterId: record.employmentCenterId,\r\n employmentCenterKey: record.employmentCenterKey,\r\n startDate: record.startDate,\r\n endDate: record.endDate,\r\n provinceDescription: record.provinceDescription,\r\n reference: record.reference,\r\n title: record.title,\r\n validFrom: record.validFrom,\r\n validTo: record.validTo,\r\n validPeriod:\r\n record.validFrom !== null && record.validTo !== null\r\n ? moment(record.validFrom).format(\"DD/MM/YYYY\") + \" - \" + moment(record.validTo).format(\"DD/MM/YYYY\")\r\n : \"N/A\",\r\n opportunityStateId: record.opportunityStateId,\r\n opportunityStateKey: record.opportunityStateKey,\r\n opportunityStateDescription: record.opportunityStateDescription,\r\n opportunityTypeId: record.opportunityTypeId,\r\n opportunityTypeKey: record.opportunityTypeKey,\r\n opportunityTypeDescription: record.opportunityTypeDescription,\r\n totalCandidates: record.totalCandidates,\r\n contractTypeId: record.contractTypeId,\r\n contractTypeKey: record.contractTypeKeyValue,\r\n contractTypeDescription: record.contractTypeDescription,\r\n internshipTypeId: record.internshipTypeId,\r\n internshipTypeKey: record.internshipTypeKeyValue,\r\n internshipTypeDescription: record.internshipTypeDescription,\r\n };\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_OPPORTUNITIES_ACTIONS,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_OPPORTUNITIES_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_OPPORTUNITIES_ACTIONS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_OPPORTUNITIES_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const createOpportunityAction = (data) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_SUBMIT_LOADING,\r\n payload: true,\r\n });\r\n createOpportunity(data)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_SUBMIT_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n goBack: res.data,\r\n buttonLabel: \"Ok\",\r\n onClose: \"/admin/opportunity-management\",\r\n message: res.data\r\n ? \"Oferta submetida com sucesso\"\r\n : \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_SUBMIT_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateOpportunityAction = (data, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_UPDATE_LOADING,\r\n payload: true,\r\n });\r\n updateOpportunity(data)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE,\r\n payload: true,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_UPDATE_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data,\r\n goBack: true,\r\n buttonLabel: \"Ok\",\r\n okAction: res.data ? _onCloseAction : undefined,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n message: res.data ? \"Oferta actualizada com sucesso.\" : \"Ocorreu um erro ao actualizar Oferta.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_UPDATE_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getOpportunitiesDetailsAction = (opportunityId) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DETAILS_ACTIONS_LOADING,\r\n payload: true,\r\n });\r\n getOpportunitiesDetails(opportunityId)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DETAILS_ACTIONS,\r\n result: true,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DETAILS_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DETAILS_ACTIONS,\r\n result: false,\r\n payload: {},\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DETAILS_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateOpportunityStateAction = (formData, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_STATE_ACTIONS_LOADING,\r\n payload: true,\r\n });\r\n updateOpportunityState(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_STATE_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n okAction: res.data ? _onCloseAction : undefined,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? getSuccessMessage(formData.actionType)\r\n : \"Ocorreu um erro ao actualizar o estado da oferta.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Ocorreu um erro ao actualizar o estado da oferta.\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_STATE_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getCandidateInformationAction = (userId) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_CANDIDATE_INFORMATION_LOADING,\r\n payload: true,\r\n });\r\n getCandidateInformation(userId)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_CANDIDATE_INFORMATION,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_CANDIDATE_INFORMATION_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_CANDIDATE_INFORMATION_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getOpportunityUsersAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_USERS_ACTIONS_LOADING,\r\n payload: true,\r\n });\r\n getOpportunityUsers(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n userId: record.userId,\r\n alternateKey: record.alternateKey,\r\n opportunityId: record.opportunityId,\r\n userName: record.userName,\r\n identityCard: record.userIdentityCard,\r\n candidateState: record.opportunityCandidateStateId,\r\n candidateStateDescription:\r\n record.opportunityCandidateStateDescription === \"Aprovada\"\r\n ? \"Recrutado\"\r\n : record.opportunityCandidateStateDescription,\r\n applicationDate:\r\n record.opportunityCandidateDate !== null\r\n ? moment(record.opportunityCandidateDate).format(\"DD/MM/YYYY\")\r\n : \"N/A\",\r\n papeInternshipOverlapsOthersOfUser: record.papeInternshipOverlapsOthersOfUser,\r\n };\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_USERS_ACTIONS,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_USERS_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_USERS_ACTIONS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_USERS_ACTIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getOpportunityDocumentAction = (docId, docName) => async (dispatch) => {\r\n getOpportunityDocument(docId)\r\n .then((res) => {\r\n const link = document.createElement(\"a\");\r\n link.href = convertByteArrayToBlobUrl(res.data);\r\n link.setAttribute(\"download\", docName);\r\n link.setAttribute(\"target\", \"_blank\");\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DOCUMENT,\r\n result: false,\r\n payload: null,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nconst getSuccessMessage = (actionType) => {\r\n switch (actionType) {\r\n case UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.REJECT:\r\n return \"Oferta rejeitada com sucesso\";\r\n case UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.CLOSE:\r\n return \"Oferta fechada com sucesso\";\r\n case UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.APPROVE:\r\n return \"Oferta aprovada com sucesso\";\r\n default:\r\n return \"Oferta actualizada com sucesso\";\r\n }\r\n};\r\n\r\nexport const approveOpportunityCandidateAction = (formData, isOpportunityApplication) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.APPROVE_CANDIDATE_LOADING,\r\n payload: true,\r\n });\r\n approveOpportunityCandidate(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onClose: isOpportunityApplication\r\n ? \"/admin/opportunity-applications-management\"\r\n : \"/admin/opportunity-management\",\r\n goBack: true,\r\n isSuccess: res.data,\r\n message: res.data ? \"Candidato recrutado!\" : \"Ocorreu um erro ao recrutar candidato.\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.APPROVE_CANDIDATE_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.APPROVE_CANDIDATE_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const rejectOpportunityCandidateAction = (formData, isOpportunityApplication) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.REJECT_CANDIDATE_LOADING,\r\n payload: true,\r\n });\r\n rejectOpportunityCandidate(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onClose: isOpportunityApplication\r\n ? \"/admin/opportunity-applications-management\"\r\n : \"/admin/opportunity-management\",\r\n goBack: true,\r\n isSuccess: res.data,\r\n message: res.data ? \"Candidato rejeitado!\" : \"Ocorreu um erro ao rejeitar candidato.\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.REJECT_CANDIDATE_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFilteredPossibleOpportunityCandidatesAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES_LOADING,\r\n payload: true,\r\n });\r\n getFilteredPossibleOpportunityCandidates(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n userId: record.userId,\r\n userName: record.userName,\r\n userIdentityCard: record.userIdentityCard,\r\n province: record.province,\r\n municipality: record.municipality,\r\n intendedWorkplaceProvince: record.intendedWorkplaceProvince,\r\n academicLevel: record.academicLevel,\r\n professionalCategories: record.professionalCategories,\r\n studiedLanguages: record.studiedLanguages,\r\n isAvailableForInternshipOpportunities: record.isAvailableForInternshipOpportunities,\r\n isAvailableForEmploymentOpportunities: record.isAvailableForEmploymentOpportunities,\r\n };\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const addOpportunityCandidatesListAction = (data, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.ADD_OPPORTUNITY_CANDIDATES_LIST_LOADING,\r\n payload: true,\r\n });\r\n addOpportunityCandidatesList(data)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.ADD_OPPORTUNITY_CANDIDATES_LIST_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data.success,\r\n buttonLabel: \"Ok\",\r\n okAction: res.data.success ? _onCloseAction : undefined,\r\n onCloseAction: res.data.success ? _onCloseAction : undefined,\r\n message: res.data.success\r\n ? `Foram adicionados ${res.data.addedCandidatesCount} candidatos com sucesso à oferta`\r\n : \"Ocorreu um erro ao adicionar candidatos à oferta.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.ADD_OPPORTUNITY_CANDIDATES_LIST_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getAllOpportunityApplicationsAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_LOADING,\r\n payload: true,\r\n });\r\n getAllOpportunityApplications(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n opportunityId: record.opportunityId,\r\n opportunityTypeId: record.opportunityTypeId,\r\n opportunityTypeKey: record.opportunityTypeKey,\r\n opportunityTypeDescription: record.opportunityTypeDescription,\r\n opportunityTitle: record.opportunityTitle,\r\n opportunityReference: record.opportunityReference,\r\n candidateCode: record.candidateCode,\r\n candidateStateId: record.candidateStateId,\r\n candidateStateKey: record.candidateStateKey,\r\n candidateStateDescription: record.candidateStateDescription,\r\n userId: record.userId,\r\n userName: record.userName,\r\n userIdentityCard: record.userIdentityCard,\r\n companyId: record.companyId,\r\n companyName: record.companyName,\r\n companyTaxIdNumber: record.companyTaxIdNumber,\r\n creationDate: moment(record.creationDate).format(\"DD/MM/YYYY\"),\r\n provinceId: record.provinceId,\r\n provinceKey: record.provinceKey,\r\n municipalityId: record.municipalityId,\r\n municipalityKey: record.municipalityKey,\r\n employmentCenterId: record.employmentCenterId,\r\n employmentCenterKey: record.employmentCenterKey,\r\n startDate: record.startDate,\r\n endDate: record.endDate,\r\n };\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getIsOpportunityApplicationAction = (isOpportunityApplication) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_IS_OPPORTUNITY_APPLICATION,\r\n payload: isOpportunityApplication,\r\n });\r\n};\r\n\r\nexport const getAllOpportunityApplicationsFollowUpAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP_LOADING,\r\n payload: true,\r\n });\r\n\r\n getAllOpportunityApplicationsFollowUp(formData)\r\n .then((res) => {\r\n const mappedList = res.data?.data.map((record) => {\r\n return {\r\n opportunityId: record.opportunityId,\r\n opportunityTypeId: record.opportunityTypeId,\r\n opportunityTypeKey: record.opportunityTypeKey,\r\n opportunityTypeDescription: record.opportunityTypeDescription,\r\n opportunityTitle: record.opportunityTitle,\r\n opportunityReference: record.opportunityReference,\r\n candidateCode: record.candidateCode,\r\n candidateFollowUpStateId: record.candidateFollowUpStateId,\r\n candidateFollowUpStateKey: record.candidateFollowUpStateKey,\r\n candidateFollowUpStateDescription: record.candidateFollowUpStateDescription,\r\n candidateOverallEvaluation: record.candidateOverallEvaluation,\r\n userId: record.userId,\r\n userName: record.userName,\r\n userIdentityCard: record.userIdentityCard,\r\n companyId: record.companyId,\r\n companyName: record.companyName,\r\n companyTaxIdNumber: record.companyTaxIdNumber,\r\n hasUnapprovedFeedbackReport: record.hasUnapprovedFeedbackReport,\r\n creationDate: record.creationDate,\r\n };\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP,\r\n result: true,\r\n payload: {\r\n data: mappedList,\r\n total_records: res.data.totalCount,\r\n total_pages: res.data.totalPages,\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP,\r\n result: false,\r\n payload: [],\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getOpportunityApplicationsFollowUpDetailsAction = (candidateCode) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS_LOADING,\r\n payload: true,\r\n });\r\n getOpportunityApplicationsFollowUpDetails(candidateCode)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const updateOpportunityFollowupPeriodAction = (formData, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_FOLLOWUP_PERIOD_LOADING,\r\n payload: true,\r\n });\r\n updateOpportunityFollowupPeriod(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_FOLLOWUP_PERIOD_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n okAction: res.data ? _onCloseAction : undefined,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? \"Estágio atualizado com sucesso\"\r\n : \"Ocorreu um erro ao actualizar as datas de início/fim do estágio.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro ao actualizar as datas de início/fim do estágio.\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_FOLLOWUP_PERIOD_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFeedbackReportDetailsAction = (feedbackReportId) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CLEAR_VALIDATE_FEEDBACK_REPORT_LOADING,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FEEDBACK_REPORT_DETAILS_LOADING,\r\n payload: true,\r\n });\r\n getOpportunityApplicationsFollowUpFeedbackReport(feedbackReportId)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FEEDBACK_REPORT_DETAILS,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FEEDBACK_REPORT_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FEEDBACK_REPORT_DETAILS_LOADING,\r\n payload: false,\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const validateFeedbackReportAction = (formData, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.VALIDATE_FEEDBACK_REPORT_LOADING,\r\n payload: true,\r\n });\r\n validateFeedbackReport(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n onCloseAction: res.data ? _onCloseAction : undefined,\r\n okAction: res.data ? _onCloseAction : undefined,\r\n goBack: true,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? formData.action && formData.amountPaid\r\n ? \"Pagamento da bolsa de estágio registado com sucesso!\"\r\n : \"Formulário \" + (formData.action ? \"aprovado!\" : \"rejeitado!\")\r\n : \"Ocorreu um erro ao \" + (formData.action ? \"aprovar\" : \"rejeitar\") + \" o formulário.\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.VALIDATE_FEEDBACK_REPORT_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.VALIDATE_FEEDBACK_REPORT_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const createAdHocFeedbackReportAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE_ADHOC_FEEDBACK_REPORT_LOADING,\r\n payload: true,\r\n });\r\n await createAdHocFeedbackReport(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n goBack: true,\r\n isSuccess: res.data,\r\n message: res.data\r\n ? \"Formulário de acompanhamento criado com sucesso!\"\r\n : \"Ocorreu um erro ao criar o formulário.\",\r\n },\r\n },\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE_ADHOC_FEEDBACK_REPORT_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE_ADHOC_FEEDBACK_REPORT_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: error.response?.data?.errors\r\n ? error.response.data.errors[Object.keys(error.response.data.errors)[0]][0]\r\n : \"Erro a efetuar o seu pedido. Por favor tente mais tarde\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport const getFilteredAvailableOpportunitiesForUserAction = (formData) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER_LOADING,\r\n payload: true,\r\n });\r\n getFilteredAvailableOpportunitiesForUser(formData)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER,\r\n payload: res.data,\r\n });\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER_LOADING,\r\n payload: false,\r\n });\r\n })\r\n .catch(() => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER_LOADING,\r\n payload: false,\r\n });\r\n });\r\n};\r\n\r\nexport const createApplicationsForUserAction = (data, _onCloseAction) => async (dispatch) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE_OPPORTUNITY_APPLICATIONS_FOR_USER_LOADING,\r\n payload: true,\r\n });\r\n createApplicationsForUser(data)\r\n .then((res) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE_OPPORTUNITY_APPLICATIONS_FOR_USER_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: res.data.success,\r\n buttonLabel: \"Ok\",\r\n okAction: res.data.success ? _onCloseAction : undefined,\r\n onCloseAction: res.data.success ? _onCloseAction : undefined,\r\n message: res.data\r\n ? \"Candidatura(s) a emprego/estágio criada(s) com sucesso!\"\r\n : \"Ocorreu um erro ao adicionar o candidato a ofertas de emprego/estágio.\",\r\n },\r\n },\r\n });\r\n })\r\n .catch((error) => {\r\n dispatch({\r\n type: OPPORTUNITIES_ACTIONS.CREATE_OPPORTUNITY_APPLICATIONS_FOR_USER_LOADING,\r\n payload: false,\r\n });\r\n dispatch({\r\n type: DIALOG.SHOW,\r\n payload: {\r\n showGenericDialog: true,\r\n genericDialogData: {\r\n type: DIALOG.ONE_BUTTON_TYPE,\r\n isSuccess: false,\r\n message: \"Ocorreu um erro a efetuar o seu pedido, por favor tente mais tarde.\",\r\n },\r\n },\r\n });\r\n console.log(\"error\", error);\r\n });\r\n};\r\n\r\nexport default getFilteredOpportunitiesAction;\r\n","import axios from \"axios\";\r\nimport { INTERNAL_API_URL, EXTERNAL_API_URL } from \"../index\";\r\n\r\nexport const GET_FILTERED_OPPORTUNITY_URL = \"opportunity/get-filtered-opportunities\";\r\nexport const GET_OPPORTUNITIES_DETAILS_URL = \"opportunity/get-opportunity-details\";\r\nexport const POST_UPDATE_OPPORTUNITY_STATE_URL = \"opportunity/update-opportunity-state\";\r\nexport const GET_USER_INFO_URL = \"opportunity/get-opportunity-user-info\";\r\nexport const GET_OPPORTUNITY_USERS_URL = \"opportunity/get-opportunity-users\";\r\nexport const UPDATE_OPPORTUNITY_URL = \"opportunity/update\";\r\nexport const CREATE_OPPORTUNITY_URL = \"opportunity/create\";\r\nexport const APPROVE_CANDIDATE_URL = \"opportunity/approve-opportunity-candidate\";\r\nexport const REJECT_CANDIDATE_URL = \"opportunity/reject-opportunity-candidate\";\r\nexport const GET_OPPORTUNITY_DOCUMENT = \"opportunity/get-opportunity-document\";\r\nexport const GET_POSSIBLE_OPPORTUNITY_CANDIDATES = \"opportunity/get-possible-opportunity-candidates\";\r\nexport const ADD_OPPORTUNITY_CANDIDATES_LIST = \"opportunity/add-opportunity-candidates-list\";\r\nexport const GET_ALL_OPPORTUNITY_APPLICATIONS_URL = \"opportunity/get-all-opportunity-applications\";\r\nexport const GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP_URL = \"opportunity/get-all-opportunity-applications-followup\";\r\nexport const GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS_URL = \"opportunity/get-opportunity-application-followup-details\";\r\nexport const UPDATE_OPPORTUNITY_FOLLOWUP_PERIOD = \"opportunity/update-opportunity-application-followup-period\";\r\nexport const GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_FEEDBACK_REPORT_URL = \"opportunity/get-opportunity-application-followup-feedback-report-details\";\r\nexport const VALIDATE_FEEDBACK_REPORT_URL = \"opportunity/validate-feedback-report\";\r\nexport const CREATE_ADHOC_FEEDBACK_REPORT_URL = \"opportunity/create-adhoc-feedback-report\";\r\nexport const GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER_URL = \"opportunity/get-available-opportunities-for-user\";\r\nexport const CREATE_APPLICATIONS_FOR_USER_URL = \"opportunity/create-opportunity-applications-for-user\";\r\n\r\nexport function getFilteredOpportunities(data) {\r\n return axios.get(INTERNAL_API_URL + GET_FILTERED_OPPORTUNITY_URL, {\r\n params: data,\r\n });\r\n}\r\n\r\nexport function getOpportunitiesDetails(_opportunityId) {\r\n return axios.get(EXTERNAL_API_URL + GET_OPPORTUNITIES_DETAILS_URL, {\r\n params: {\r\n opportunityId: _opportunityId,\r\n },\r\n });\r\n}\r\n\r\nexport function createOpportunity(opportunity) {\r\n return axios.post(EXTERNAL_API_URL + CREATE_OPPORTUNITY_URL, opportunity);\r\n}\r\n\r\nexport function updateOpportunity(opportunity) {\r\n return axios.post(EXTERNAL_API_URL + UPDATE_OPPORTUNITY_URL, opportunity);\r\n}\r\n\r\nexport function updateOpportunityState(formData) {\r\n return axios.post(EXTERNAL_API_URL + POST_UPDATE_OPPORTUNITY_STATE_URL, formData);\r\n}\r\n\r\nexport function getCandidateInformation(userId) {\r\n return axios.get(EXTERNAL_API_URL + GET_USER_INFO_URL, {\r\n params: {\r\n alternateKey: userId,\r\n },\r\n });\r\n}\r\n\r\nexport function getOpportunityUsers(formData) {\r\n return axios.get(EXTERNAL_API_URL + GET_OPPORTUNITY_USERS_URL, {\r\n params: formData,\r\n });\r\n}\r\n\r\nexport function getOpportunityDocument(data) {\r\n return axios.get(EXTERNAL_API_URL + GET_OPPORTUNITY_DOCUMENT, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n params: {\r\n docId: data,\r\n },\r\n responseType: \"blob\",\r\n });\r\n}\r\n\r\nexport function approveOpportunityCandidate(formData) {\r\n return axios.post(EXTERNAL_API_URL + APPROVE_CANDIDATE_URL, formData);\r\n}\r\n\r\nexport function rejectOpportunityCandidate(formData) {\r\n return axios.post(EXTERNAL_API_URL + REJECT_CANDIDATE_URL, formData);\r\n}\r\n\r\nexport function getFilteredPossibleOpportunityCandidates(data) {\r\n return axios.get(EXTERNAL_API_URL + GET_POSSIBLE_OPPORTUNITY_CANDIDATES, {\r\n params: data,\r\n });\r\n}\r\n\r\nexport function addOpportunityCandidatesList(formData) {\r\n return axios.post(EXTERNAL_API_URL + ADD_OPPORTUNITY_CANDIDATES_LIST, formData);\r\n}\r\n\r\nexport function getAllOpportunityApplications(formData) {\r\n return axios.get(INTERNAL_API_URL + GET_ALL_OPPORTUNITY_APPLICATIONS_URL, {\r\n params: formData,\r\n });\r\n}\r\n\r\nexport function getAllOpportunityApplicationsFollowUp(formData) {\r\n return axios.get(INTERNAL_API_URL + GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP_URL, {\r\n params: formData,\r\n });\r\n}\r\n\r\nexport function getOpportunityApplicationsFollowUpDetails(candidateCode) {\r\n return axios.get(INTERNAL_API_URL + GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS_URL, {\r\n params: {\r\n opportunityCandidateId: candidateCode,\r\n },\r\n });\r\n}\r\n\r\nexport function updateOpportunityFollowupPeriod(formData) {\r\n return axios.post(\r\n EXTERNAL_API_URL + UPDATE_OPPORTUNITY_FOLLOWUP_PERIOD,\r\n formData\r\n );\r\n}\r\n\r\nexport function getOpportunityApplicationsFollowUpFeedbackReport(feedbackReportId) {\r\n return axios.get(EXTERNAL_API_URL + GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_FEEDBACK_REPORT_URL, {\r\n params: {\r\n feedbackReportId: feedbackReportId,\r\n },\r\n });\r\n}\r\n\r\nexport function validateFeedbackReport(formData) {\r\n return axios.post(\r\n INTERNAL_API_URL + VALIDATE_FEEDBACK_REPORT_URL,\r\n formData\r\n );\r\n}\r\n\r\nexport function createAdHocFeedbackReport(formData) {\r\n return axios.post(\r\n INTERNAL_API_URL + CREATE_ADHOC_FEEDBACK_REPORT_URL,\r\n formData\r\n );\r\n}\r\n\r\nexport function getFilteredAvailableOpportunitiesForUser(formData) {\r\n return axios.post(\r\n INTERNAL_API_URL + GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER_URL, \r\n formData\r\n );\r\n}\r\n\r\nexport function createApplicationsForUser(formData) {\r\n return axios.post(\r\n INTERNAL_API_URL + CREATE_APPLICATIONS_FOR_USER_URL,\r\n formData\r\n );\r\n}","import { REPORT_TYPES } from \"utils/consts\";\r\nimport { MONETARY_DECIMAL_SEPARATOR, FORM_FIELDS_PREFIX, PAGINATION } from \"utils/consts\";\r\nimport formatDate from \"utils/date_utils\";\r\n\r\nexport function getFilteredOpportunitiesMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n searchText: formData.searchText,\r\n reference: formData.reference,\r\n provinceId: formData.province?.code,\r\n municipalityId: formData.municipality?.code,\r\n employmentCenterId: formData.employmentCenter?.code,\r\n startDate: formatDate(formData?.startDate),\r\n endDate: formatDate(formData?.endDate),\r\n opportunityTypeId: formData.opportunityType?.code,\r\n opportunityStateId: formData.opportunityState?.code,\r\n opportunityProfessionalCategoryId: formData.opportunityProfessionalCategory?.code,\r\n taxIdNumber: formData.taxIdNumber,\r\n companyName: formData.companyName,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport function createOpportunityMap(formData, questionsData, documentTypes) {\r\n //Set FormData\r\n const data = new FormData();\r\n if (formData !== null && formData !== undefined) {\r\n const opportunity = {\r\n userId: formData.userId ?? \"\",\r\n numVacancies: formData.numVacancies ?? \"\",\r\n provinceId: formData.province?.code ?? \"\",\r\n provinceKey: formData.province?.keyValue ?? \"\",\r\n municipalityId: formData.county?.code ?? \"\",\r\n reference: formData.reference ?? \"\",\r\n opportunityTypeId: formData.opportunityType?.code ?? \"\",\r\n opportunityTypeKey: formData.opportunityType?.keyValue ?? \"\",\r\n title: formData.title ?? \"\",\r\n description: formData.description ?? \"\",\r\n timetableTypeId: formData.timetableType?.code ?? \"\",\r\n timetableTypeKey: formData.timetableType?.keyValue ?? \"\",\r\n amount: formData.amount?.replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API) ?? \"\",\r\n contractTypeId: formData.contractType?.code ?? \"\",\r\n contractTypeKey: formData.contractType?.keyValue ?? \"\",\r\n internshipTypeId: formData.internshipType?.code ?? \"\",\r\n internshipTypeKey: formData.internshipType?.keyValue ?? \"\",\r\n validFrom: formData.validFrom !== \"\" && formData.validFrom ? formData.validFrom.format(\"YYYY-MM-DD\") : \"\",\r\n validTo: formData.validTo !== \"\" && formData.validTo ? formData.validTo.format(\"YYYY-MM-DD\") : \"\",\r\n mentorName: formData.mentorName ?? \"\",\r\n mentorMobilePhone:\r\n formData.mentorMobilePhone !== \"\" && formData.mentorMobilePhone ? formData.mentorMobilePhone : \"\",\r\n opportunityProfessionalCategories: formData.opportunityProfessionalCategories\r\n ? [formData.opportunityProfessionalCategories?.code]\r\n : [],\r\n reportingRequired: formData.reportingRequired,\r\n reportingPeriod: formData.reportingPeriod ?? \"\",\r\n startDate: formData.startDate !== \"\" && formData.startDate ? formData.startDate.format(\"YYYY-MM-DD\") : \"\",\r\n endDate: formData.endDate !== \"\" && formData.endDate ? formData.endDate.format(\"YYYY-MM-DD\") : \"\",\r\n employmentCenterId: formData.employmentCenter ? formData.employmentCenter?.code : null,\r\n socialPerks: formData.socialPerks ?? \"\",\r\n otherPerks: formData.otherPerks ?? \"\",\r\n academicLevelId: formData.academicLevel ? formData.academicLevel?.code : null,\r\n workplace: formData.workplace ?? \"\",\r\n commune: formData.commune ?? \"\",\r\n requiredKnowledge: formData.requiredKnowledge ?? \"\",\r\n activeMonths: formData.activeMonths ?? \"\",\r\n observations: formData.opportunity_observations ?? \"\",\r\n acceptWorkersFromOtherRegions: formData.acceptWorkersFromOtherRegions\r\n ? formData.acceptWorkersFromOtherRegions.code\r\n : false,\r\n };\r\n\r\n //Append data\r\n for (const key in opportunity) {\r\n data.append(\"opportunity.\" + key, opportunity[key]);\r\n }\r\n\r\n let countQuestion = 0;\r\n for (const q in questionsData) {\r\n data.append(\"opportunity.OpportunityQuestions[\" + countQuestion + \"]\", formData[questionsData[q].name]);\r\n countQuestion++;\r\n }\r\n\r\n //Append documents\r\n let countDoc = 0;\r\n documentTypes?.forEach((dt) => {\r\n if (\r\n formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.code.toString()] &&\r\n formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.code.toString()][0]\r\n ) {\r\n data.append(\"opportunity.OpportunityDocuments[\" + countDoc + \"].documentTypeId\", dt.code);\r\n data.append(\"opportunity.OpportunityDocuments[\" + countDoc + \"].documentId\", countDoc);\r\n data.append(\"OpportunityDocuments\", formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.code.toString()][0]);\r\n countDoc++;\r\n }\r\n });\r\n\r\n formData.requiredLanguages?.forEach((element) => {\r\n data.append(\"opportunity.RequiredLanguagesIds\", element.code);\r\n });\r\n\r\n return data;\r\n }\r\n return formData;\r\n}\r\n\r\nexport function updateOpportunityMap(formData, questionsData, documentTypes) {\r\n //Set FormData\r\n const data = new FormData();\r\n if (formData !== null && formData !== undefined) {\r\n const opportunity = {\r\n alternateKey: formData.alternateKey ?? \"\",\r\n numVacancies: formData.numVacancies ?? \"\",\r\n provinceId: formData.province?.code ?? \"\",\r\n provinceKey: formData.province?.keyValue ?? \"\",\r\n municipalityId: formData.county?.code ?? \"\",\r\n reference: formData.reference ?? \"\",\r\n opportunityTypeId: formData.opportunityTypeId ?? \"\",\r\n opportunityTypeKey: formData.opportunityTypeKey ?? \"\",\r\n title: formData.title ?? \"\",\r\n description: formData.description ?? \"\",\r\n timetableTypeId: formData.timetableType?.code ?? \"\",\r\n timetableTypeKey: formData.timetableType?.keyValue ?? \"\",\r\n amount: formData.amount ?? \"\",\r\n contractTypeId: formData.contractType?.code ?? \"\",\r\n contractTypeKey: formData.contractType?.keyValue ?? \"\",\r\n internshipTypeId: formData.internshipType?.code ?? \"\",\r\n internshipTypeKey: formData.internshipType?.keyValue ?? \"\",\r\n validFrom: formData.validFrom !== \"\" && formData.validFrom ? formData.validFrom.format(\"YYYY-MM-DD\") : \"\",\r\n validTo: formData.validTo !== \"\" && formData.validTo ? formData.validTo.format(\"YYYY-MM-DD\") : \"\",\r\n mentorName: formData.mentorName ?? \"\",\r\n mentorMobilePhone:\r\n formData.mentorMobilePhone !== \"\" && formData.mentorMobilePhone ? formData.mentorMobilePhone : \"\",\r\n opportunityProfessionalCategories: formData.opportunityProfessionalCategories\r\n ? [formData.opportunityProfessionalCategories?.code]\r\n : [],\r\n reportingRequired: formData.reportingRequired,\r\n reportingPeriod: formData.reportingPeriod ?? \"\",\r\n startDate: formData.startDate !== \"\" && formData.startDate ? formData.startDate.format(\"YYYY-MM-DD\") : \"\",\r\n endDate: formData.endDate !== \"\" && formData.endDate ? formData.endDate.format(\"YYYY-MM-DD\") : \"\",\r\n employmentCenterId: formData.employmentCenter ? formData.employmentCenter?.code : null,\r\n socialPerks: formData.socialPerks ?? \"\",\r\n otherPerks: formData.otherPerks ?? \"\",\r\n academicLevelId: formData.academicLevel ? formData.academicLevel?.code : null,\r\n workplace: formData.workplace ?? \"\",\r\n commune: formData.commune ?? \"\",\r\n requiredKnowledge: formData.requiredKnowledge ?? \"\",\r\n activeMonths: formData.activeMonths ?? \"\",\r\n observations: formData.opportunity_observations ?? \"\",\r\n acceptWorkersFromOtherRegions: formData.acceptWorkersFromOtherRegions\r\n ? formData.acceptWorkersFromOtherRegions.code\r\n : false,\r\n };\r\n\r\n //Append data\r\n for (const key in opportunity) {\r\n data.append(\"opportunity.\" + key, opportunity[key]);\r\n }\r\n\r\n let countQuestion = 0;\r\n for (const q in questionsData) {\r\n data.append(\"opportunity.OpportunityQuestions[\" + countQuestion + \"]\", formData[questionsData[q].name]);\r\n countQuestion++;\r\n }\r\n\r\n //Append documents\r\n let countDoc = 0;\r\n documentTypes?.forEach((dt) => {\r\n if (\r\n formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.code.toString()] &&\r\n formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.code.toString()][0]\r\n ) {\r\n data.append(\"opportunity.OpportunityDocuments[\" + countDoc + \"].documentTypeId\", dt.code);\r\n data.append(\"opportunity.OpportunityDocuments[\" + countDoc + \"].documentId\", countDoc);\r\n data.append(\"OpportunityDocuments\", formData[FORM_FIELDS_PREFIX.DOCUMENT + dt.code.toString()][0]);\r\n countDoc++;\r\n }\r\n });\r\n\r\n formData.requiredLanguages?.forEach((element) => {\r\n data.append(\"opportunity.RequiredLanguagesIds\", element.code);\r\n });\r\n\r\n return data;\r\n }\r\n return formData;\r\n}\r\n\r\nexport function getFilteredPossibleOpportunityCandidatesMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n opportunityId: formData.opportunityId,\r\n userNameOrIdentityCard: formData.userNameOrIdentityCard,\r\n provinceId: formData.province?.code,\r\n municipalityId: formData.municipality?.code,\r\n academicLevelId: formData.academicLevel?.code,\r\n professionalCategoryId: formData.professionalCategory?.code,\r\n studiedLanguagesId: formData.studiedLanguages?.code,\r\n isAvailableForOpportunities: formData.isAvailableForOpportunities,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE_MODAL_RESULT_TABLE,\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport function getAllOpportunityApplicationsMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n opportunityTitleOrDescription: formData.searchText,\r\n opportunityTypeId: formData.opportunityType?.code,\r\n candidateCode: formData.applicationCode,\r\n candidateStateId: formData.applicationState?.code,\r\n opportunityReference: formData.opportunityReference,\r\n userNameOrIdentityCard: formData.userNameOrIdentityCard,\r\n companyName: formData.companyName,\r\n companyTaxIdNumber: formData.companyTaxIdNumber,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n provinceId: formData.province?.code,\r\n municipalityId: formData.municipality?.code,\r\n employmentCenterId: formData.employmentCenter?.code,\r\n genderId: formData.gender?.code,\r\n academicLevelId: formData.academicLevel?.code,\r\n degreeId: formData.academicDegree?.code,\r\n startDate: formatDate(formData?.startDate),\r\n endDate: formatDate(formData?.endDate),\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport function getAllOpportunityApplicationsFollowUpMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n opportunityTitleOrDescription: formData.searchText,\r\n opportunityTypeId: formData.opportunityType?.code,\r\n candidateCode: formData.applicationCode,\r\n candidateFollowUpStateId: formData.applicationFollowUpState?.code,\r\n opportunityReference: formData.opportunityReference,\r\n userNameOrIdentityCard: formData.userNameOrIdentityCard,\r\n companyName: formData.companyName,\r\n companyTaxIdNumber: formData.companyTaxIdNumber,\r\n hasUnapprovedFeedbackReport: formData.hasUnapprovedFeedbackReport?.value,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport function updateOpportunityFollowupPeriodMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n opportunityCandidateId: formData.candidateCode,\r\n newStartDate:\r\n formData.followUpStartDate !== \"\" && formData.followUpStartDate\r\n ? formData.followUpStartDate.format(\"YYYY-MM-DD\")\r\n : \"\",\r\n newEndDate:\r\n formData.followUpEndDate !== \"\" && formData.followUpEndDate\r\n ? formData.followUpEndDate.format(\"YYYY-MM-DD\")\r\n : \"\",\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport function getFilteredAvailableOpportunitiesForUserMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n let opportunityProfessionalCategoryList = [];\r\n let languagesList = [];\r\n\r\n if (formData.professionalCategory) {\r\n formData.professionalCategory?.forEach((category) => {\r\n opportunityProfessionalCategoryList.push(category.keyValue);\r\n });\r\n }\r\n\r\n if (formData.languages) {\r\n formData.languages?.forEach((language) => {\r\n languagesList.push(language.keyValue);\r\n });\r\n }\r\n\r\n return {\r\n candidateId: formData.candidateId,\r\n companyNameOrTaxId: formData.companyNameOrTaxId,\r\n provinceId: formData.province?.code,\r\n academicLevelId: formData.academicLevel?.code,\r\n opportunityProfessionalCategoryList: opportunityProfessionalCategoryList,\r\n languagesList: languagesList,\r\n opportunityTypeId: formData.opportunityType?.code,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE_MODAL_RESULT_TABLE,\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport function opportunitiesExportReportMap(filterData) {\r\n if (filterData !== null && filterData !== undefined) {\r\n return {\r\n reportEnumKey: REPORT_TYPES.OPPORTUNITIES_SEARCH_RESULTS,\r\n parameters: JSON.stringify(filterData),\r\n };\r\n }\r\n}\r\n\r\nexport function opportunitiesApplicationExportReportMap(filterData) {\r\n if (filterData !== null && filterData !== undefined) {\r\n return {\r\n reportEnumKey: REPORT_TYPES.OPPORTUNITY_APPLICATIONS_SEARCH_RESULTS,\r\n parameters: JSON.stringify(filterData),\r\n };\r\n }\r\n}\r\n\r\nexport default getFilteredOpportunitiesMap;\r\n","import jwtDecode from \"jwt-decode\";\r\n\r\n/**\r\n * @module utils/getKeyValueFromToken\r\n * @typedef {Object} KeyValues\r\n * @property {string} PROVINCE_ID - Id da província\r\n * @property {string} MUNICIPALITY_ID - Id do município\r\n * @property {string} EMPLOYMENT_CENTER_ID - Id do centro de emprego\r\n * @property {string} NAME - Id do usuário\r\n */\r\n\r\nexport default class TokenHelper {\r\n #token = \"\";\r\n #values = {};\r\n\r\n constructor(token) {\r\n if (!token) {\r\n throw new Error(\"TokenHelper requires a token\");\r\n }\r\n\r\n this.#token = token;\r\n\r\n this.#values = this.#getKeyValueFromToken();\r\n }\r\n\r\n /**\r\n * Função para obter o valor de uma chave do token\r\n * @returns {KeyValues} Retorna o valor da chave do token\r\n */\r\n #getKeyValueFromToken() {\r\n const decodedToken = jwtDecode(this.#token);\r\n\r\n return {\r\n PROVINCE_ID: decodedToken.ProvinceId,\r\n MUNICIPALITY_ID: decodedToken.MunicipalityId,\r\n EMPLOYMENT_CENTER_ID: decodedToken.EmploymentCenterId,\r\n NAME: decodedToken.name,\r\n };\r\n }\r\n\r\n /**\r\n * Função para obter o id do usuário\r\n * @returns {string} Retorna o id do usuário\r\n * @example\r\n * const tokenHelper = new TokenHelper(token);\r\n * const userId = tokenHelper.getUserId();\r\n * console.log(userId); // \"dc4b1bfc0a1e234a7bf80aac6406e302\"\r\n */\r\n getUserId() {\r\n return this.#values.NAME;\r\n }\r\n\r\n /**\r\n * Função para obter a província do usuário\r\n * @returns {number} Retorna a província do usuário\r\n * @example\r\n * const tokenHelper = new TokenHelper(token);\r\n * const provinceId = tokenHelper.getProvinceId();\r\n * console.log(provinceId); // 1\r\n */\r\n getProvinceId() {\r\n if (!this.#values.PROVINCE_ID) {\r\n return null;\r\n }\r\n\r\n return Number(this.#values.PROVINCE_ID);\r\n }\r\n\r\n /**\r\n * Função para obter o municiípio do usuário\r\n * @returns {number} Retorna o município do usuário\r\n * @example\r\n * const tokenHelper = new TokenHelper(token);\r\n * const municipalityId = tokenHelper.getName();\r\n * console.log(municipality); // 1\r\n */\r\n getMunicipalityId() {\r\n if (!this.#values.MUNICIPALITY_ID) {\r\n return null;\r\n }\r\n\r\n return Number(this.#values.MUNICIPALITY_ID);\r\n }\r\n\r\n /**\r\n * Função para obter o centro de emprego do usuário\r\n * @returns {number} Retorna o centro de emprego do usuário\r\n * @example\r\n * const tokenHelper = new TokenHelper(token);\r\n * const employmentCenterId = tokenHelper.getName();\r\n * console.log(employmentCenterId); // 1\r\n */\r\n getEmploymentCenterId() {\r\n if (!this.#values.EMPLOYMENT_CENTER_ID) {\r\n return null;\r\n }\r\n\r\n return Number(this.#values.EMPLOYMENT_CENTER_ID);\r\n }\r\n}\r\n","import { useMemo } from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\n\r\nimport TokenHelper from \"utils/getKeyValueFromToken\";\r\n\r\nexport default function useTokenHelper() {\r\n const token = useSelector((state) => state.authState?.token);\r\n\r\n return useMemo(() => new TokenHelper(token), [token]);\r\n}\r\n","import { React, useEffect, useMemo, useState } from \"react\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { useHistory, withRouter } from \"react-router-dom\";\r\n\r\nimport ReactDatetime from \"react-datetime\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport { Card, CardHeader, CardContent, Tooltip, FormHelperText } from \"@material-ui/core\";\r\n// components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n//import custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { getFilteredOpportunitiesAction } from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { PAGINATION, DATASET } from \"utils/consts\";\r\nimport { getFilteredOpportunitiesMap } from \"mappers/opportunityMap\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { labels, titles } from \"resources/resources\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { OPERATIONS } from \"utils/consts\";\r\nimport { REPORT_CONSTS } from \"utils/consts\";\r\nimport { REPORT_FILE_NAME } from \"utils/consts\";\r\nimport moment from \"moment\";\r\nimport { opportunitiesExportReportMap } from \"mappers/opportunityMap\";\r\nimport getReportAction from \"redux/actions/reportsAction\";\r\nimport errorMessages from \"resources/resources\";\r\nimport { messages } from \"resources/resources\";\r\nimport { DateRange } from \"@material-ui/icons\";\r\nimport clsx from \"clsx\";\r\nimport useTokenHelper from \"hooks/useTokenHelper\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\"\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const theme = useTheme();\r\n\r\n const tokenHelper = useTokenHelper();\r\n\r\n const [filter, setFilter] = useState({\r\n searchText: null,\r\n reference: null,\r\n province: tokenHelper.getProvinceId(),\r\n opportunityTypeId: null,\r\n opportunityStateId: null,\r\n opportunityProfessionalCategoryId: null,\r\n taxIdNumber: null,\r\n companyName: null,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n municipality: tokenHelper.getMunicipalityId(),\r\n employmentCenter: tokenHelper.getEmploymentCenterId(),\r\n startDate: null,\r\n endDate: null,\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n setValue,\r\n getValues,\r\n control,\r\n trigger,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const handleInputValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n function handleGetDataSetByName(datasetName) {\r\n props.getDataSetByName(datasetName);\r\n }\r\n\r\n useEffect(() => {\r\n handleGetDataSetByName(DATASET.PROVINCES);\r\n handleGetDataSetByName(DATASET.OPPORTUNITY_TYPE);\r\n handleGetDataSetByName(DATASET.OPPORTUNITY_STATE);\r\n handleGetDataSetByName(DATASET.PROFESSIONAL_CATEGORY);\r\n handleGetDataSetByName(DATASET.MUNICIPALITIES);\r\n handleGetDataSetByName(DATASET.EMPLOYMENT_CENTERS);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES] ?? [];\r\n\r\n if (tokenHelper.getProvinceId()) {\r\n setValue(\"municipality\", getSelectOptionsElementByCode(municipalityList, tokenHelper.getMunicipalityId()));\r\n } else {\r\n setValue(\r\n \"municipality\",\r\n getSelectOptionsElementByCode(municipalityList, props.opportunityDetailsData?.municipalityId)\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MUNICIPALITIES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ?? [];\r\n\r\n if (tokenHelper.getProvinceId()) {\r\n setValue(\"province\", getSelectOptionsElementByCode(provinceList, tokenHelper.getProvinceId()));\r\n } else {\r\n setValue(\"province\", getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId));\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.EMPLOYMENT_CENTERS] ?? [];\r\n\r\n if (tokenHelper.getEmploymentCenterId()) {\r\n setValue(\"employmentCenter\", getSelectOptionsElementByCode(provinceList, tokenHelper.getEmploymentCenterId()));\r\n } else {\r\n setValue(\r\n \"employmentCenter\",\r\n getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId)\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.EMPLOYMENT_CENTERS]]);\r\n\r\n useEffect(() => {\r\n refreshResults();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"searchText\", \"\");\r\n setValue(\"reference\", \"\");\r\n setValue(\"taxIdNumber\", \"\");\r\n setValue(\"opportunityType\", undefined);\r\n setValue(\"opportunityState\", undefined);\r\n setValue(\"opportunityProfessionalCategory\", undefined);\r\n setValue(\"companyName\", \"\");\r\n setValue(\"startDate\", undefined);\r\n setValue(\"endDate\", undefined);\r\n\r\n if (!tokenHelper.getProvinceId()) setValue(\"province\", undefined);\r\n if (!tokenHelper.getMunicipalityId()) setValue(\"municipality\", undefined);\r\n if (!tokenHelper.getEmploymentCenterId()) setValue(\"employmentCenter\", undefined);\r\n\r\n setFilter(0);\r\n setFilterCounter(0);\r\n };\r\n\r\n //Refresh Results\r\n const refreshResults = () => {\r\n let temp_filter = { ...filter, pageIndex: props.page };\r\n setFilter(temp_filter);\r\n props.getFilteredOpportunities(temp_filter);\r\n };\r\n\r\n useEffect(() => {\r\n if (props.match?.params?.opportunityState !== undefined) {\r\n setValue(\"opportunityState\", {\r\n code: 5,\r\n label: \"Submetida\",\r\n keyValue: \"Submetida\",\r\n });\r\n handleSubmit(onSubmit)();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match?.params?.opportunityState]);\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n const redirectToOpportunityCreation = () => {\r\n history.push(\"/admin/opportunity-create\");\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = getFilteredOpportunitiesMap(data);\r\n setFilter(filter);\r\n if (props.page === PAGINATION.FIRST_PAGE) {\r\n props.getFilteredOpportunities(filter);\r\n } else {\r\n props.handleChangePage(PAGINATION.FIRST_PAGE);\r\n }\r\n };\r\n\r\n const employmentCenterBlocked = useMemo(() => {\r\n if (tokenHelper.getEmploymentCenterId()) {\r\n return true;\r\n }\r\n\r\n if (!tokenHelper.getEmploymentCenterId() && !getValues(\"province\")) {\r\n return true;\r\n }\r\n\r\n return false;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [getValues(\"province\"), tokenHelper]);\r\n\r\n const municipalityBlocked = useMemo(() => {\r\n if (tokenHelper.getMunicipalityId()) {\r\n return true;\r\n }\r\n\r\n if (!tokenHelper.getMunicipalityId() && !getValues(\"province\")) {\r\n return true;\r\n }\r\n\r\n return false;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [getValues(\"province\"), tokenHelper]);\r\n\r\n const provinceBlocked = useMemo(() => {\r\n if (tokenHelper.getProvinceId()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }, [tokenHelper]);\r\n\r\n return (\r\n \r\n \r\n
Pesquisa de Ofertas
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n action={\r\n checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_CREATE_ITEM) && (\r\n \r\n {intl.formatMessage(titles.Title_AdminNavBar_OpportunityCreateMenuItem)}\r\n \r\n )\r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Nº Oferta\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"reference\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Tipo de Oferta\r\n \r\n \r\n \r\n \r\n \r\n Estado\r\n \r\n \r\n \r\n \r\n \r\n Data Submissão (desde)\r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isLessThanEndDate: (value) => {\r\n if (!getValues(\"endDate\") || errors[\"endDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"endDate\")._isAMomentObject &&\r\n value <= getValues(\"endDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanOrEqualToDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"endDate\")) trigger(\"endDate\");\r\n trigger(\"startDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment().startOf(\"day\") &&\r\n (!getValues(\"endDate\") ||\r\n (getValues(\"endDate\")._isAMomentObject && currentDate <= getValues(\"endDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"startDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"startDate\"] !== undefined && (\r\n \r\n {errors[\"startDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Data Submissão (até)\r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment() ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isGreaterThanStartDate: (value) => {\r\n if (!getValues(\"startDate\") || errors[\"startDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"startDate\")._isAMomentObject &&\r\n value >= getValues(\"startDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanOrEqualToDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"startDate\")) trigger(\"startDate\");\r\n trigger(\"endDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment() &&\r\n (!getValues(\"startDate\") ||\r\n (getValues(\"startDate\")._isAMomentObject && currentDate >= getValues(\"startDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"endDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"endDate\"] !== undefined && (\r\n \r\n {errors[\"endDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n \r\n \r\n \r\n \r\n Município\r\n \r\n \r\n \r\n \r\n \r\n Centro de Emprego\r\n \r\n \r\n \r\n \r\n \r\n Área Profissional\r\n \r\n \r\n \r\n \r\n \r\n Pesquisa (título/descrição)\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"searchText\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Empresa\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"companyName\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n NIF\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"taxIdNumber\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n\r\n {/* Butões de Pesquisa */}\r\n\r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.EXPORT_REPORTS) && (\r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.opportunitiesState?.total_records === 0\r\n ? `Limite mínimo de 1 e máximo de ${REPORT_CONSTS.MAX_RESULTS} resultados para exportar relatório`\r\n : \"\"\r\n }\r\n >\r\n \r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.opportunitiesState?.total_records === 0\r\n }\r\n style={{ marginRight: \"20px\" }}\r\n onClick={() => {\r\n props.getReport(\r\n opportunitiesExportReportMap(filter),\r\n REPORT_FILE_NAME.OPPORTUNITIES_SEARCH_RESULTS +\r\n moment().format(\"YYYYMMDDHHmm\") +\r\n REPORT_FILE_NAME.EXCEL_EXTENSION\r\n );\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ExportButton)}\r\n \r\n \r\n \r\n )}\r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getFilteredOpportunities: (data) => dispatch(getFilteredOpportunitiesAction(data)),\r\n getDataSetByName: (data, parentKeyValue) => dispatch(getDataSetByNameAction(data, parentKeyValue)),\r\n getReport: (data, reportFileName) => dispatch(getReportAction(data, reportFileName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(withRouter(FilterSection));\r\n","export const limitaString = (value, limitSize) => {\r\n if (!value || !limitSize)\r\n return value;\r\n if (value.length > limitSize)\r\n return value.substring(0, limitSize) + \"...\"\r\n return value\r\n}\r\n\r\nexport default limitaString;","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// core componentssrc\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport limitaString from \"utils/string\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport { OPPORTUNITY_STATE_KEY, TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ResultSection(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n\r\n const tableHead = [\r\n \"Nº Oferta\",\r\n \"Tipo de Oferta\",\r\n \"Empresa\",\r\n \"Candidatos\",\r\n \"Vagas\",\r\n \"Província\",\r\n \"Data Vigência\",\r\n \"Estado\",\r\n ];\r\n\r\n const mapOpportunityStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_STATE_KEY.APROVADA:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_STATE_KEY.REJEITADA:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n case OPPORTUNITY_STATE_KEY.SUBMETIDA:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_STATE_KEY.FECHADA:\r\n return TABLE_STATE_CHIP_COLOR.BLUE;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n
Lista de Ofertas de Emprego e Estágio Profissional
\r\n
\r\n {\"(\"}\r\n {props.opportunitiesState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n />\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Detalhes\r\n \r\n \r\n \r\n\r\n {props.opportunitiesState?.result?.data?.length > 0 && (\r\n \r\n {props.opportunitiesState.result.data.map((prop, key) => (\r\n \r\n \r\n {limitaString(prop.reference, 60)}\r\n \r\n \r\n {prop.opportunityTypeDescription}\r\n {limitaString(prop.title, 60)}\r\n \r\n \r\n {prop.userTaxIdNumber}\r\n {limitaString(prop.userName, 60)}\r\n \r\n {prop.totalCandidates}\r\n {prop.numVacanciesToCandidatesRatio}\r\n {prop.provinceDescription}\r\n {prop.validPeriod}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {props.opportunitiesState?.result?.data?.length === 0 &&\r\n !props.opportunitiesState?.searchOpportunities_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(ResultSection);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nimport FilterSection from \"./Sections/OpportunitiesFilterSection\";\r\nimport ResultSection from \"./Sections/OpportunitiesResultSection\";\r\nimport { getIsOpportunityApplicationAction } from \"redux/actions/opportunitiesAction\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunitiesList(props) {\r\n const classes = useStylesGeneric();\r\n\r\n const [page, setPage] = useState(1);\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const setIsOpportunityApplication = () => {\r\n props.getIsOpportunityApplication(false);\r\n };\r\n\r\n useEffect(() => {\r\n setIsOpportunityApplication();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n {\r\n handleChangePage(undefined, value);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getIsOpportunityApplication: (isOpportunityApplication) =>\r\n dispatch(getIsOpportunityApplicationAction(isOpportunityApplication)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunitiesList);\r\n","import { React, useEffect, useMemo, useState } from \"react\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\nimport moment from \"moment\";\r\nimport clsx from \"clsx\";\r\n\r\nimport ReactDatetime from \"react-datetime\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport { Card, CardHeader, CardContent, Tooltip, FormHelperText } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport { DateRange } from \"@material-ui/icons\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { getAllOpportunityApplicationsAction } from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { PAGINATION, DATASET } from \"utils/consts\";\r\nimport { getAllOpportunityApplicationsMap } from \"mappers/opportunityMap\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport getReportAction from \"redux/actions/reportsAction\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { OPERATIONS } from \"utils/consts\";\r\nimport { REPORT_CONSTS } from \"utils/consts\";\r\nimport { REPORT_FILE_NAME } from \"utils/consts\";\r\nimport { opportunitiesApplicationExportReportMap } from \"mappers/opportunityMap\";\r\nimport errorMessages from \"resources/resources\";\r\nimport { messages } from \"resources/resources\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport useTokenHelper from \"hooks/useTokenHelper\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\"\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsFilterSection(props) {\r\n const tokenHelper = useTokenHelper();\r\n\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n const [filter, setFilter] = useState({\r\n applicationCode: null,\r\n opportunityType: null,\r\n searchText: null,\r\n applicationState: null,\r\n opportunityReference: null,\r\n userNameOrIdentityCard: null,\r\n companyName: null,\r\n companyTaxIdNumber: null,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n municipality: tokenHelper.getMunicipalityId(),\r\n employmentCenter: tokenHelper.getEmploymentCenterId(),\r\n genderId: null,\r\n academicLevelId: null,\r\n degreeId: null,\r\n startDate: null,\r\n endDate: null,\r\n province: tokenHelper.getProvinceId(),\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const handleInputValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n const {\r\n handleSubmit,\r\n setValue,\r\n getValues,\r\n control,\r\n trigger,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n function handleGetDataSetByName(datasetName) {\r\n props.getDataSetByName(datasetName);\r\n }\r\n\r\n useEffect(() => {\r\n handleGetDataSetByName(DATASET.PROVINCES);\r\n handleGetDataSetByName(DATASET.MUNICIPALITIES);\r\n handleGetDataSetByName(DATASET.EMPLOYMENT_CENTERS);\r\n handleGetDataSetByName(DATASET.OPPORTUNITY_TYPE);\r\n handleGetDataSetByName(DATASET.OPPORTUNITY_CANDIDATE_STATE);\r\n handleGetDataSetByName(DATASET.GENDER);\r\n handleGetDataSetByName(DATASET.ACADEMIC_LEVEL);\r\n handleGetDataSetByName(DATASET.ACADEMIC_DEGREE);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES] ?? [];\r\n\r\n if (tokenHelper.getProvinceId()) {\r\n setValue(\"municipality\", getSelectOptionsElementByCode(municipalityList, tokenHelper.getMunicipalityId()));\r\n } else {\r\n setValue(\r\n \"municipality\",\r\n getSelectOptionsElementByCode(municipalityList, props.opportunityDetailsData?.municipalityId)\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MUNICIPALITIES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ?? [];\r\n\r\n if (tokenHelper.getProvinceId()) {\r\n setValue(\"province\", getSelectOptionsElementByCode(provinceList, tokenHelper.getProvinceId()));\r\n } else {\r\n setValue(\"province\", getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId));\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.EMPLOYMENT_CENTERS] ?? [];\r\n\r\n if (tokenHelper.getEmploymentCenterId()) {\r\n setValue(\"employmentCenter\", getSelectOptionsElementByCode(provinceList, tokenHelper.getEmploymentCenterId()));\r\n } else {\r\n setValue(\r\n \"employmentCenter\",\r\n getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId)\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.EMPLOYMENT_CENTERS]]);\r\n\r\n useEffect(() => {\r\n refreshResults();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"applicationCode\", \"\");\r\n setValue(\"opportunityType\", undefined);\r\n setValue(\"searchText\", \"\");\r\n setValue(\"applicationState\", undefined);\r\n setValue(\"opportunityReference\", \"\");\r\n setValue(\"userNameOrIdentityCard\", \"\");\r\n setValue(\"companyName\", \"\");\r\n setValue(\"companyTaxIdNumber\", \"\");\r\n setValue(\"gender\", undefined);\r\n setValue(\"academicLevel\", undefined);\r\n setValue(\"degree\", undefined);\r\n setValue(\"startDate\", undefined);\r\n setValue(\"endDate\", undefined);\r\n\r\n if (!tokenHelper.getProvinceId()) setValue(\"province\", undefined);\r\n if (!tokenHelper.getMunicipalityId()) setValue(\"municipality\", undefined);\r\n if (!tokenHelper.getEmploymentCenterId()) setValue(\"employmentCenter\", undefined);\r\n\r\n setFilter(0);\r\n setFilterCounter(0);\r\n };\r\n\r\n //Refresh Results\r\n const refreshResults = () => {\r\n let temp_filter = { ...filter, pageIndex: props.page };\r\n setFilter(temp_filter);\r\n props.getAllOpportunityApplications(temp_filter);\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = getAllOpportunityApplicationsMap(data);\r\n setFilter(filter);\r\n if (props.page === PAGINATION.FIRST_PAGE) {\r\n props.getAllOpportunityApplications(filter);\r\n } else {\r\n props.handleChangePage(PAGINATION.FIRST_PAGE);\r\n }\r\n };\r\n\r\n const employmentCenterBlocked = useMemo(() => {\r\n if (tokenHelper.getEmploymentCenterId()) {\r\n return true;\r\n }\r\n\r\n if (!tokenHelper.getEmploymentCenterId() && !getValues(\"province\")) {\r\n return true;\r\n }\r\n\r\n return false;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [getValues(\"province\"), tokenHelper]);\r\n\r\n const municipalityBlocked = useMemo(() => {\r\n if (tokenHelper.getMunicipalityId()) {\r\n return true;\r\n }\r\n\r\n if (!tokenHelper.getMunicipalityId() && !getValues(\"province\")) {\r\n return true;\r\n }\r\n\r\n return false;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [getValues(\"province\"), tokenHelper]);\r\n\r\n const provinceBlocked = useMemo(() => {\r\n if (tokenHelper.getProvinceId()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }, [tokenHelper]);\r\n\r\n return (\r\n \r\n \r\n
Pesquisa de Candidaturas
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Nº Candidatura\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"applicationCode\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Estado\r\n \r\n \r\n \r\n \r\n \r\n Nº Oferta\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"opportunityReference\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Tipo de Oferta\r\n \r\n \r\n \r\n \r\n \r\n Pesquisa (título/descrição)\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"searchText\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Nome ou Nº BI\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"userNameOrIdentityCard\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Empresa\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"companyName\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n NIF\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"companyTaxIdNumber\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n \r\n \r\n \r\n \r\n Município\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Opportunity_OpportunityData_EmploymentCenter)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_GeneralDataSection_GenderField)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicLevel)}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_AcademicDegree)}\r\n \r\n \r\n \r\n \r\n \r\n Data Submissão (desde)\r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isLessThanEndDate: (value) => {\r\n if (!getValues(\"endDate\") || errors[\"endDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"endDate\")._isAMomentObject &&\r\n value <= getValues(\"endDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanOrEqualToDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"endDate\")) trigger(\"endDate\");\r\n trigger(\"startDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment().startOf(\"day\") &&\r\n (!getValues(\"endDate\") ||\r\n (getValues(\"endDate\")._isAMomentObject && currentDate <= getValues(\"endDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"startDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"startDate\"] !== undefined && (\r\n \r\n {errors[\"startDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Data Submissão (até)\r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment() ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isGreaterThanStartDate: (value) => {\r\n if (!getValues(\"startDate\") || errors[\"startDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"startDate\")._isAMomentObject &&\r\n value >= getValues(\"startDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanOrEqualToDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"startDate\")) trigger(\"startDate\");\r\n trigger(\"endDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment() &&\r\n (!getValues(\"startDate\") ||\r\n (getValues(\"startDate\")._isAMomentObject && currentDate >= getValues(\"startDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"endDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"endDate\"] !== undefined && (\r\n \r\n {errors[\"endDate\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n {/* Butões de Pesquisa */}\r\n\r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.EXPORT_REPORTS) && (\r\n \r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.opportunitiesState?.opportunityApplications_result?.total_records === 0\r\n ? `Limite mínimo de 1 e máximo de ${REPORT_CONSTS.MAX_RESULTS} resultados para exportar relatório`\r\n : \"\"\r\n }\r\n >\r\n \r\n \r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.opportunitiesState?.opportunityApplications_result?.total_records === 0\r\n }\r\n style={{ marginRight: \"20px\" }}\r\n onClick={() => {\r\n props.getReport(\r\n opportunitiesApplicationExportReportMap(filter),\r\n REPORT_FILE_NAME.OPPORTUNITY_APPLICATIONS_SEARCH_RESULTS +\r\n moment().format(\"YYYYMMDDHHmm\") +\r\n REPORT_FILE_NAME.EXCEL_EXTENSION\r\n );\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ExportButton)}\r\n \r\n \r\n \r\n )}\r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getAllOpportunityApplications: (data) => dispatch(getAllOpportunityApplicationsAction(data)),\r\n getDataSetByName: (data, parentKeyValue) => dispatch(getDataSetByNameAction(data, parentKeyValue)),\r\n getReport: (data, reportFileName) => dispatch(getReportAction(data, reportFileName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(withRouter(OpportunityApplicationsFilterSection));\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// core componentssrc\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport limitaString from \"utils/string\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport { OPPORTUNITY_CANDIDATE_STATE_KEY, TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsResultSection(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n\r\n const tableHead = [\r\n \"Nº Candidatura\",\r\n \"Nome\",\r\n \"Nº BI\",\r\n \"Empresa\",\r\n \"Nº Oferta\",\r\n \"Tipo de Oferta\",\r\n \"Data de Candidatura\",\r\n \"Estado\",\r\n ];\r\n\r\n const mapOpportunityCandidateStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.APROVADA:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.REJEITADA:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.EMRECRUTAMENTO:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n
Lista de Candidaturas a Emprego e Estágio Profissional
\r\n
\r\n {\"(\"}\r\n {props.opportunitiesState?.opportunityApplications_total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Detalhes\r\n \r\n \r\n \r\n {props.opportunitiesState?.opportunityApplications_result?.data?.length > 0 && (\r\n \r\n {props.opportunitiesState.opportunityApplications_result.data.map((prop, key) => (\r\n \r\n {prop.candidateCode}\r\n {prop.userName}\r\n {prop.userIdentityCard}\r\n \r\n {prop.companyTaxIdNumber}\r\n {limitaString(prop.companyName, 60)}\r\n \r\n {prop.opportunityReference}\r\n \r\n {prop.opportunityTypeDescription}\r\n {limitaString(prop.opportunityTitle, 60)}\r\n \r\n \r\n {prop.creationDate}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {props.opportunitiesState?.opportunityApplications_result?.data?.length === 0 &&\r\n !props.opportunitiesState?.getAllOpportunityApplications_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityApplicationsResultSection);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport OpportunityApplicationsFilterSection from \"./Sections/OpportunityApplicationsFilterSection\";\r\nimport OpportunityApplicationsResultSection from \"./Sections/OpportunityApplicationsResultSection\";\r\nimport { getIsOpportunityApplicationAction } from \"redux/actions/opportunitiesAction\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsList() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n { handleChangePage(undefined, value) }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getIsOpportunityApplication: (isOpportunityApplication) => dispatch(getIsOpportunityApplicationAction(isOpportunityApplication)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityApplicationsList);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n// components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n//import custom components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { getAllOpportunityApplicationsFollowUpAction } from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { PAGINATION, DATASET } from \"utils/consts\";\r\nimport { getAllOpportunityApplicationsFollowUpMap } from \"mappers/opportunityMap\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsFollowUpFilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [filter, setFilter] = useState({\r\n applicationCode: null,\r\n searchText: null,\r\n applicationFollowUpState: null,\r\n userNameOrIdentityCard: null,\r\n companyName: null,\r\n companyTaxIdNumber: null,\r\n hasUnapprovedFeedbackReport: props.match?.params?.hasUnapprovedFeedbackReport === \"1\" ? true : null,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n setValue,\r\n getValues,\r\n control,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE] === undefined ||\r\n props.dataSetState[DATASET.OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE]?.length === 0\r\n ) {\r\n props.getDataSetByName(DATASET.OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n refreshResults();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n useEffect(() => {\r\n if (props.match?.params?.hasUnapprovedFeedbackReport === \"1\") {\r\n setValue(\"hasUnapprovedFeedbackReport\", {\r\n value: true,\r\n label: \"Sim\",\r\n });\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match?.params?.hasUnapprovedFeedbackReport]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"applicationCode\", \"\");\r\n setValue(\"searchText\", \"\");\r\n setValue(\"applicationFollowUpState\", undefined);\r\n setValue(\"userNameOrIdentityCard\", \"\");\r\n setValue(\"companyName\", \"\");\r\n setValue(\"companyTaxIdNumber\", \"\");\r\n setValue(\"hasUnapprovedFeedbackReport\", undefined);\r\n\r\n setFilterCounter(0);\r\n setFilter(0);\r\n };\r\n\r\n //Refresh Results\r\n const refreshResults = () => {\r\n let temp_filter = { ...filter, pageIndex: props.page };\r\n setFilter(temp_filter);\r\n props.getAllOpportunityApplicationsFollowUp(temp_filter);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = getAllOpportunityApplicationsFollowUpMap(data);\r\n\r\n setFilter(filter);\r\n\r\n if (props.page === PAGINATION.FIRST_PAGE) {\r\n props.getAllOpportunityApplicationsFollowUp(filter);\r\n } else {\r\n props.handleChangePage(PAGINATION.FIRST_PAGE);\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n
Pesquisa de Estágios
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Nº Candidatura\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"applicationCode\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Pesquisa (título/descrição)\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"searchText\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Nome ou Nº BI\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"numApplication\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Empresa\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"companyName\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n NIF\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"companyTexIdNumber\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={intl.formatMessage(labels.Label_Search_Filters_Placeholder)}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Estado\r\n \r\n \r\n \r\n \r\n \r\n Tem Formulários por Aprovar\r\n \r\n \r\n \r\n\r\n {/* Butões de Pesquisa */}\r\n\r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getAllOpportunityApplicationsFollowUp: (data) => dispatch(getAllOpportunityApplicationsFollowUpAction(data)),\r\n getDataSetByName: (data, parentKeyValue) => dispatch(getDataSetByNameAction(data, parentKeyValue)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(withRouter(OpportunityApplicationsFollowUpFilterSection));\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY, TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\nimport limitaString from \"utils/string\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport ErrorIcon from \"@material-ui/icons/Error\";\r\nimport CheckCircleIcon from \"@material-ui/icons/CheckCircle\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// core componentssrc\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsFollowUpResultSection(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n\r\n const tableHead = [\"Nº Candidatura\", \"Nome\", \"Nº BI\", \"Empresa\", \"Tipo de Oferta\", \"Estado\"];\r\n\r\n const mapOpportunityFollowUpStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.PORINICIAR:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.TERMINADO:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n
Lista de Acompanhamento de Estágios
\r\n
\r\n {\"(\"}\r\n {props.opportunitiesState?.opportunityApplicationsFollowUp_total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n\r\n \r\n Detalhes\r\n \r\n \r\n \r\n\r\n {props.opportunitiesState?.opportunityApplicationsFollowUp_result?.data?.length > 0 && (\r\n \r\n {props.opportunitiesState.opportunityApplicationsFollowUp_result.data.map((prop, key) => (\r\n \r\n {prop.candidateCode}\r\n {prop.userName}\r\n {prop.userIdentityCard}\r\n \r\n {prop.companyTaxIdNumber}\r\n {limitaString(prop.companyName, 60)}\r\n \r\n \r\n {prop.opportunityTypeDescription}\r\n {limitaString(prop.opportunityTitle, 60)}\r\n \r\n \r\n \r\n \r\n\r\n \r\n
\r\n
\r\n {prop.hasUnapprovedFeedbackReport ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n ))}\r\n
\r\n )}\r\n
\r\n\r\n {props.opportunitiesState?.opportunityApplicationsFollowUp_result?.data?.length === 0 &&\r\n !props.opportunitiesState?.getAllOpportunityApplicationsFollowUp_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n
\r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityApplicationsFollowUpResultSection);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport OpportunityApplicationsFollowUpFilterSection from \"./Sections/OpportunityApplicationsFollowUpFilterSection\";\r\nimport OpportunityApplicationsFollowUpResultSection from \"./Sections/OpportunityApplicationsFollowUpResultSection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsFollowUpList() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n { handleChangePage(undefined, value) }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(OpportunityApplicationsFollowUpList);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useFormContext, Controller } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Rating from \"@material-ui/lab/Rating\";\r\n// @material-ui/icons components\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\n//import custom components\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY, TABLE_STATE_CHIP_COLOR, REGEX_PATTERNS } from \"utils/consts\";\r\nimport { messages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FollowUpDetails(props) {\r\n const classes = useStylesGeneric();\r\n const methods = useFormContext();\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n\r\n const [isEditableDataSection, setIsEditableDataSection] = useState(props.isEditable);\r\n const [followUpStartDateState, setFollowUpStartDateState] = useState(true);\r\n const [followUpEndDateState, setFollowUpEndDateState] = useState(true);\r\n\r\n useEffect(() => {\r\n if (!props.isEditable) {\r\n setIsEditableDataSection(false);\r\n }\r\n }, [props.isEditable]);\r\n\r\n useEffect(() => {\r\n methods.setValue(\r\n \"followUpStartDate\",\r\n props.opportunityApplicationFollowUpDetails?.followUpStartDate\r\n ? moment(props.opportunityApplicationFollowUpDetails?.followUpStartDate)\r\n : null\r\n );\r\n methods.setValue(\r\n \"followUpEndDate\",\r\n props.opportunityApplicationFollowUpDetails?.followUpEndDate\r\n ? moment(props.opportunityApplicationFollowUpDetails?.followUpEndDate)\r\n : null\r\n );\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.opportunityApplicationFollowUpDetails]);\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n const handleValidSecondDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n if (!props.isEditable) {\r\n setIsEditableDataSection(false);\r\n }\r\n }, [props.isEditable]);\r\n\r\n const handleEditDataSection = () => {\r\n setIsEditableDataSection(true);\r\n props.handleEditSection();\r\n };\r\n\r\n const mapOpportunityFollowUpStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.PORINICIAR:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.TERMINADO:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Alterar Datas\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n Data de Estágio Início\r\n {\r\n if (!methods.getValues(\"followUpEndDate\")) return true;\r\n return (\r\n (value &&\r\n value instanceof moment &&\r\n methods.getValues(\"followUpEndDate\") &&\r\n methods.getValues(\"followUpEndDate\") instanceof moment &&\r\n value.startOf(\"day\") < methods.getValues(\"followUpEndDate\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n setFollowUpStartDateState(true);\r\n onChange(e);\r\n methods.trigger(\"followUpEndDate\");\r\n methods.trigger(\"followUpStartDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !isEditableDataSection,\r\n }}\r\n renderInput={(dateInputProps) => (\r\n {\r\n setFollowUpStartDateState(true);\r\n handleValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"followUpStartDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"followUpStartDate\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"followUpStartDate\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Data de Estágio Fim\r\n {\r\n if (!methods.getValues(\"followUpStartDate\")) return true;\r\n return (\r\n (value &&\r\n value instanceof moment &&\r\n methods.getValues(\"followUpStartDate\") &&\r\n methods.getValues(\"followUpStartDate\") instanceof moment &&\r\n value.startOf(\"day\") > methods.getValues(\"followUpStartDate\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n setFollowUpEndDateState(true);\r\n onChange(e);\r\n methods.trigger(\"followUpStartDate\");\r\n methods.trigger(\"followUpEndDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !isEditableDataSection,\r\n }}\r\n renderInput={(dateInputProps) => (\r\n {\r\n setFollowUpEndDateState(true);\r\n handleValidSecondDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"followUpEndDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"followUpEndDate\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"followUpEndDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.companyOverallEvaluation > 0 ||\r\n props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.candidateOverallEvaluation > 0 ? (\r\n
\r\n
\r\n \r\n Avaliação Geral da Empresa\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n Avaliação Geral do Candidato\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n ) : (\r\n Não existem dados para apresentar.\r\n )}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(FollowUpDetails);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { FormProvider, useForm } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { Container, Grid, FormGroup } from \"@material-ui/core\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FollowUpDetails from \"../Sections/FollowUpDetails\";\r\nimport { updateOpportunityFollowupPeriodAction } from \"redux/actions/opportunitiesAction\";\r\nimport { updateOpportunityFollowupPeriodMap } from \"mappers/opportunityMap\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nfunction FollowUpDetailsTab(props) {\r\n const history = useHistory();\r\n const intl = useIntl();\r\n const [isEditable, setIsEditable] = useState(false);\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const cancelOnClick = () => {\r\n history.goBack();\r\n };\r\n\r\n const handleEditSection = () => {\r\n setIsEditable(true);\r\n };\r\n\r\n function onSubmit(data) {\r\n data[\"candidateCode\"] = props?.opportunityApplicationFollowUpDetails?.candidateCode;\r\n\r\n let updateData = updateOpportunityFollowupPeriodMap(data);\r\n\r\n props.updateOpportunityFollowupPeriod(updateData, () => {\r\n props.handleRefreshPage();\r\n });\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n
\r\n \r\n {isEditable && (\r\n \r\n \r\n \r\n \r\n cancelOnClick()}>\r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Save)}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateOpportunityFollowupPeriod: (data, onCloseMethod) =>\r\n dispatch(updateOpportunityFollowupPeriodAction(data, onCloseMethod)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FollowUpDetailsTab);\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport \"moment/locale/pt\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Timeline from \"@material-ui/lab/Timeline\";\r\nimport TimelineItem from \"@material-ui/lab/TimelineItem\";\r\nimport TimelineSeparator from \"@material-ui/lab/TimelineSeparator\";\r\nimport TimelineConnector from \"@material-ui/lab/TimelineConnector\";\r\nimport TimelineContent from \"@material-ui/lab/TimelineContent\";\r\nimport TimelineOppositeContent from \"@material-ui/lab/TimelineOppositeContent\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\n// @material-ui/icons components\r\nimport NotificationsIcon from \"@material-ui/icons/Notifications\";\r\n//import custom components\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY, TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FollowUpHistory(props) {\r\n const classes = useStylesGeneric();\r\n\r\n const mapOpportunityFollowUpStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.PORINICIAR:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.TERMINADO:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n }\r\n >\r\n \r\n {props.opportunityApplicationFollowUpDetails?.followUpHistory?.length > 0 ? (\r\n \r\n \r\n \r\n {props.opportunityApplicationFollowUpDetails?.followUpHistory?.map((historyEntry) => {\r\n return (\r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n \r\n \r\n {historyEntry.createUser} -{\" \"}\r\n {historyEntry.createDatetime\r\n ? moment(historyEntry.createDatetime).format(\"DD/MM/YYYY HH:mm\")\r\n : \"\"}\r\n \r\n \r\n {historyEntry.actionName}\r\n \r\n {historyEntry.message}\r\n \r\n \r\n );\r\n })}\r\n \r\n \r\n \r\n ) : (\r\n Não existem dados para apresentar.\r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(FollowUpHistory);\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n// @material-ui/core components\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport FollowUpHistory from \"../Sections/FollowUpHistory\";\r\n\r\nfunction FollowUpHistoryTab(props) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(FollowUpHistoryTab);\r\n","import { React } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\n\r\nimport { messages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function TextField(props) {\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n\r\n return (\r\n \r\n \r\n
\r\n
\r\n {props.label}\r\n
\r\n
\r\n {props.labelDetails}\r\n
\r\n
\r\n
\r\n {\r\n if (props.type === \"text\" || value > 0) return true;\r\n return (\r\n intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n\r\n {props.errors[props.name] !== undefined && (\r\n \r\n {props.errors[props.name].message}\r\n \r\n )}\r\n
\r\n );\r\n}\r\n","import { React } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { Controller } from \"react-hook-form\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Rating from \"@material-ui/lab/Rating\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n\r\nimport { messages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport default function RatingField(props) {\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n\r\n return (\r\n \r\n {props.isEditable ? (\r\n <>\r\n {\r\n if (!props.isRequired || value > 0) return true;\r\n return (\r\n intl.formatMessage(messages.Message_Generic_MandatoryField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n\r\n {props.errors[props.name] !== undefined && (\r\n \r\n {props.errors[props.name].message}\r\n \r\n )}\r\n \r\n ) : \r\n \r\n }\r\n \r\n );\r\n}\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\nimport ErrorOutlineOutlinedIcon from \"@material-ui/icons/ErrorOutlineOutlined\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { labels } from \"resources/resources\";\r\n//styles\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ApproveDialog(props) {\r\n const classes = { ...useStylesGeneric() };\r\n const intl = useIntl();\r\n\r\n const handleClose = () => {\r\n props.onClose();\r\n };\r\n\r\n const onSubmitApprove = () => {\r\n props.onSubmitApproveDialog();\r\n };\r\n\r\n return (\r\n \r\n \r\n {props?.showErrorIcon ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n {props.title}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_No)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n onSubmitApprove();\r\n }}\r\n loading={props.isLoading}\r\n >\r\n {intl.formatMessage(labels.Label_Yes)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ApproveDialog);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider, Controller } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { labels } from \"resources/resources\";\r\n//styles\r\nimport componentStyles from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction RejectDialog(props) {\r\n const classes = { ...useStyles() };\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n control,\r\n getValues,\r\n setValue,\r\n formState: { errors },\r\n } = methods;\r\n\r\n const onSubmitReject = (data) => {\r\n props.onSubmitRejectDialog(data?.motive?.code, data?.notes);\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n \r\n\r\n \r\n \r\n {props.title}\r\n \r\n\r\n \r\n \r\n \r\n Motivo\r\n \r\n {errors[\"motive\"] !== undefined && (\r\n \r\n {errors[\"motive\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Comentários\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(RejectDialog);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\nimport _ from \"lodash\";\r\n// @material-ui/core components\r\nimport { makeStyles, withStyles } from \"@material-ui/core/styles\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\n//import custom components\r\nimport TextField from \"components/FeedbackReportDataFields/Text\";\r\nimport RatingField from \"components/FeedbackReportDataFields/Rating\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport ApproveDialog from \"components/Dialogs/ApproveDialog\";\r\nimport RejectDialog from \"components/Dialogs/RejectDialog\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getFeedbackReportDetailsAction, validateFeedbackReportAction } from \"redux/actions/opportunitiesAction\";\r\nimport {\r\n FEEDBACK_REPORT_QUESTION_TYPE_KEY,\r\n FORM_FIELDS_PREFIX,\r\n OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY,\r\n FEEDBACK_REPORT_TYPE_KEY,\r\n DATASET,\r\n UNITS,\r\n} from \"utils/consts\";\r\nimport limitaString from \"utils/string\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FeedbackReportModal(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [feedbackReportData, setFeedbackReportData] = useState([]);\r\n\r\n const StyledTableRow = withStyles((theme) => ({\r\n root: {\r\n \"&:nth-of-type(odd)\": {\r\n backgroundColor: theme.palette.gray[100],\r\n },\r\n },\r\n }))(TableRow);\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n props.getFeedbackReportDetails(props.feedbackReportId);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n feedbackReportData?.questions?.map((questions) => {\r\n questions?.questionInformation?.map((questionInformation) => {\r\n return methods.setValue(questionInformation.questionId, questionInformation.answer ?? \"\");\r\n });\r\n return null;\r\n });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [feedbackReportData]);\r\n\r\n useEffect(() => {\r\n if (\r\n (feedbackReportData?.length === 0 || feedbackReportData?.length === undefined) &&\r\n props.opportunitiesState?.feedbackReportDetails_result?.questions?.length !== 0 &&\r\n props.opportunitiesState?.feedbackReportDetails_result?.questions?.length !== undefined\r\n ) {\r\n setStateFeedbackReportData(props.opportunitiesState?.feedbackReportDetails_result?.questions);\r\n }\r\n\r\n methods.setValue(\r\n \"feedbackReportCompletedHours\",\r\n props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportCompletedHours ?? \"\"\r\n );\r\n methods.setValue(\r\n \"feedbackReportCompletedHoursJustification\",\r\n props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportCompletedHoursJustification ?? \"\"\r\n );\r\n methods.setValue(\r\n \"feedbackReportRejectionMotive\",\r\n props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportRejectionMotiveDescription ?? \"\"\r\n );\r\n methods.setValue(\r\n \"feedbackReportRejectionMotiveObservations\",\r\n props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportRejectionMotiveObservations ?? \"\"\r\n );\r\n methods.setValue(\"observations\", props.opportunitiesState?.feedbackReportDetails_result?.observations ?? \"\");\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.opportunitiesState?.feedbackReportDetails_result]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.FEEDBACK_REPORT_REJECT_MOTIVES] === undefined ||\r\n props.dataSetState[DATASET.FEEDBACK_REPORT_REJECT_MOTIVES]?.length === 0\r\n ) {\r\n props.getDataSetByName(DATASET.FEEDBACK_REPORT_REJECT_MOTIVES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const setStateFeedbackReportData = (questions) => {\r\n setFeedbackReportData({\r\n ...feedbackReportData,\r\n questions: questions?.map((q) => {\r\n return {\r\n ...q,\r\n questionInformation: q.questionInformation?.map((qi) => {\r\n return {\r\n ...qi,\r\n questionId: FORM_FIELDS_PREFIX.FOLLOWUP_FEEDBACK_REPORT_DATA + qi?.questionId,\r\n };\r\n }),\r\n };\r\n }),\r\n });\r\n };\r\n\r\n //Dialogs Logic\r\n const DIALOG = { SHOW: true, HIDE: false };\r\n const [dialogs, setDialogs] = useState({\r\n approveModal: false,\r\n rejectModal: false,\r\n updateModal: false,\r\n });\r\n\r\n const showHideDialog = (dialog, op) => {\r\n let dialogs_temp = _.mapValues(dialogs, () => false);\r\n\r\n dialogs_temp[dialog] = op;\r\n\r\n setDialogs(dialogs_temp);\r\n };\r\n\r\n function handleApproveModal() {\r\n showHideDialog(\"approveModal\", DIALOG.SHOW);\r\n }\r\n\r\n function handleRejectModal() {\r\n showHideDialog(\"rejectModal\", DIALOG.SHOW);\r\n }\r\n\r\n var isCompanyFeedbackReport = () => {\r\n return (\r\n props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportTypeKeyValue ===\r\n FEEDBACK_REPORT_TYPE_KEY.OPPORTUNITY_FOLLOWUP_COMPANY\r\n );\r\n };\r\n\r\n const onSubmitApproveDialog = () => {\r\n const approveFilter = {\r\n reportUserId: props?.opportunitiesState?.feedbackReportDetails_result?.submittedByUserId,\r\n feedbackReportId: props?.feedbackReportId,\r\n action: true,\r\n };\r\n\r\n props.validateFeedbackReport(approveFilter, () => {\r\n showHideDialog(\"approveModal\", DIALOG.HIDE);\r\n props.handleClose();\r\n props.handleRefreshPage();\r\n });\r\n };\r\n\r\n const onSubmitRejectDialog = (rejectMotiveId, rejectMotiveObservations) => {\r\n let filter = {\r\n reportUserId: props?.opportunitiesState?.feedbackReportDetails_result?.submittedByUserId,\r\n feedbackReportId: props?.feedbackReportId,\r\n action: false,\r\n rejectMotiveId,\r\n rejectMotiveObservations,\r\n };\r\n\r\n props.validateFeedbackReport(filter, () => {\r\n showHideDialog(\"rejectModal\", DIALOG.HIDE);\r\n props.handleClose();\r\n props.handleRefreshPage();\r\n });\r\n };\r\n\r\n return (\r\n \r\n {props.opportunitiesState?.feedbackReportDetails_result?.questions?.length > 0 && (\r\n \r\n
\r\n \r\n

\r\n Formulário de {props.opportunitiesState?.feedbackReportDetails_result?.submittedBy}\r\n

\r\n

\r\n {props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportPeriodStartDate\r\n ? moment(props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportPeriodStartDate).format(\r\n \"DD/MM/YYYY\"\r\n )\r\n : \"\"}\r\n {props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportPeriodStartDate &&\r\n props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportPeriodEndDate\r\n ? \" a \"\r\n : \"\"}\r\n {props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportPeriodEndDate\r\n ? moment(props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportPeriodEndDate).format(\r\n \"DD/MM/YYYY\"\r\n )\r\n : \"\"}\r\n

\r\n\r\n {isCompanyFeedbackReport() && !props.opportunitiesState?.feedbackReportDetails_result?.isAdHoc && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n Horas\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n
\r\n
\r\n Horas de estágio realizadas:\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n\r\n {props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportStateKeyValue ===\r\n OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.REJEITADO && (\r\n <>\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportStateKeyValue ===\r\n OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.PAGO && (\r\n \r\n
\r\n Valor transferido da bolsa de estágio:\r\n
\r\n \r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n type=\"text\"\r\n />\r\n \r\n
\r\n )}\r\n
\r\n\r\n {props.opportunitiesState?.feedbackReportDetails_result?.feedbackReportStateKeyValue ===\r\n OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.SUBMETIDO || (\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Reject_Submit)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Approve_Submit)}\r\n \r\n \r\n \r\n \r\n )}\r\n
\r\n \r\n )}\r\n\r\n \r\n \r\n <>\r\n {feedbackReportData?.questions?.map((questions, key) => (\r\n \r\n \r\n \r\n {limitaString(questions?.questionArea, 100)}\r\n \r\n \r\n \r\n <>\r\n {questions?.questionInformation?.map((questionInformation, key) => (\r\n \r\n \r\n {questionInformation.question}\r\n \r\n \r\n {questionInformation?.questionType ===\r\n FEEDBACK_REPORT_QUESTION_TYPE_KEY.STAR_CLASSIFICATION && (\r\n \r\n )}\r\n {questionInformation?.questionType === FEEDBACK_REPORT_QUESTION_TYPE_KEY.TEXT && (\r\n \r\n )}\r\n \r\n \r\n ))}\r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n showHideDialog(\"approveModal\", DIALOG.HIDE)}\r\n />\r\n\r\n showHideDialog(\"rejectModal\", DIALOG.HIDE)}\r\n />\r\n \r\n
\r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getFeedbackReportDetails: (feedbackReportId) => dispatch(getFeedbackReportDetailsAction(feedbackReportId)),\r\n getDataSetByName: (name, addEmptyField) => dispatch(getDataSetByNameAction(name, addEmptyField)),\r\n validateFeedbackReport: (formData, handleClose) => dispatch(validateFeedbackReportAction(formData, handleClose)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FeedbackReportModal);\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { Grid } from \"@material-ui/core\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n//styles\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UpdatePaymentFeedbackReportDialog(props) {\r\n const classes = useStylesGeneric();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n Não poderá editar o pagamento após a submissão. Tem a certeza que pretende atualizar o pagamento com o valor\r\n indicado?\r\n \r\n \r\n \r\n \r\n \r\n \r\n Não\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Sim\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UpdatePaymentFeedbackReportDialog);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, Controller, FormProvider } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport clsx from \"clsx\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n//@material-ui/icons\r\n//styles and customs\r\nimport { REGEX_PATTERNS, UNITS, MONETARYUNITPLACEHOLDER, MONETARY_DECIMAL_SEPARATOR } from \"utils/consts\";\r\nimport { messages, labels } from \"resources/resources\";\r\nimport UpdatePaymentFeedbackReportDialog from \"../Dialogs/UpdatePaymentFeedbackReportDialog\";\r\nimport { validateFeedbackReportAction } from \"redux/actions/opportunitiesAction\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UpdatePaymentFeedbackReportModal(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [showConfirmationDialog, setShowConfirmationDialog] = useState(false);\r\n const [formattedValue, setFormattedValue] = useState();\r\n const [filter, setFilter] = useState();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const handleOpenConfirmationDialog = () => {\r\n setShowConfirmationDialog(true);\r\n };\r\n\r\n const handleCloseConfirmationDialog = () => {\r\n setShowConfirmationDialog(false);\r\n };\r\n\r\n const onValChange = (value, onChange) => {\r\n value = value?.replace(/\\./g, \"\");\r\n //TODO - Check better way to format currency on same input\r\n if (value && value.charAt(value.length - 1) === \",\") setFormattedValue(value);\r\n else {\r\n if (value) {\r\n value = value?.replace(/,/g, \".\");\r\n if (intl.formatNumber(value) !== \"NaN\") setFormattedValue(intl.formatNumber(value));\r\n else setFormattedValue(value);\r\n } else {\r\n setFormattedValue(\"\");\r\n }\r\n }\r\n value = value?.replace(/\\./g, \",\");\r\n onChange(value);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = {\r\n feedbackReportId: props?.feedbackReportId,\r\n action: true,\r\n amountPaid: data.amountPaid?.replace(MONETARY_DECIMAL_SEPARATOR.WEB, MONETARY_DECIMAL_SEPARATOR.API),\r\n };\r\n setFilter(filter);\r\n\r\n handleOpenConfirmationDialog();\r\n };\r\n\r\n const handleSubmit = () => {\r\n handleCloseConfirmationDialog();\r\n\r\n props.validateFeedbackReport(filter, () => {\r\n props.handleClose();\r\n props.handleRefreshPage();\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n \r\n
\r\n \r\n Atualizar informação financeira do estágio\r\n \r\n Indique o valor transferido para a empresa corresponte ao período de estágio:{\" \"}\r\n {props.feedbackReportPeriodDates}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n Valor transferido\r\n (\r\n {\r\n onValChange(e.target.value, onChange);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder={MONETARYUNITPLACEHOLDER}\r\n endAdornment={\r\n \r\n {UNITS.MONETARY}\r\n \r\n }\r\n classes={{\r\n input: classes.monetaryFields,\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"amountPaid\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"amountPaid\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"amountPaid\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n
\r\n
\r\n\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n validateFeedbackReport: (formData, handleClose) => dispatch(validateFeedbackReportAction(formData, handleClose)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UpdatePaymentFeedbackReportModal);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport FeedbackReportModal from \"../Modals/FeedbackReportModal\";\r\nimport UpdatePaymentFeedbackReportModal from \"../Modals/UpdatePaymentFeedbackReportModal\";\r\nimport {\r\n OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY,\r\n OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY,\r\n OPERATIONS,\r\n FEEDBACK_REPORT_USER_TYPE_KEY,\r\n TABLE_STATE_CHIP_COLOR,\r\n} from \"utils/consts\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { createAdHocFeedbackReportAction } from \"redux/actions/opportunitiesAction\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\"Período\", \"Tipo de Formulário\", \"Submetido Por\", \"Data de Entrega\", \"\", \"Estado\"];\r\n\r\nfunction FollowUpFeedbackReports(props) {\r\n const classes = useStylesGeneric();\r\n const [showFeedbackReportModal, setShowFeedbackReportModal] = useState(false);\r\n const [showUpdatePaymentFeedbackReportModal, setShowUpdatePaymentFeedbackReportModal] = useState(false);\r\n const [isEditable, setIsEditable] = useState(false);\r\n const [feedbackReportId, setFeedbackReportId] = useState(false);\r\n const [feedbackReportPeriodDates, setFeedbackReportPeriodDates] = useState(false);\r\n\r\n const handleOpenFeedbackReportModal = (feedbackReportId, stateKey) => {\r\n setIsEditable(stateKey === OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.PORSUBMETER);\r\n setFeedbackReportId(feedbackReportId);\r\n setShowFeedbackReportModal(true);\r\n };\r\n\r\n const handleCloseFeedbackReportModal = () => {\r\n setShowFeedbackReportModal(false);\r\n };\r\n\r\n const handleOpenUpdatePaymentFeedbackReportModal = (prop) => {\r\n setFeedbackReportId(prop.feedbackReportId);\r\n setFeedbackReportPeriodDates(\r\n (prop.evaluationPeriodStartDate ? moment(prop.evaluationPeriodStartDate).format(\"DD/MM/YYYY\") : \"\") +\r\n \" - \" +\r\n (prop.evaluationPeriodEndDate ? moment(prop.evaluationPeriodEndDate).format(\"DD/MM/YYYY\") : \"\")\r\n );\r\n setShowUpdatePaymentFeedbackReportModal(true);\r\n };\r\n\r\n const handleCloseUpdatePaymentFeedbackReportModal = () => {\r\n setShowUpdatePaymentFeedbackReportModal(false);\r\n };\r\n\r\n const handleCreateAdHocFeedbackReport = async () => {\r\n const data = { opportunityCandidateCode: props.opportunityApplicationFollowUpDetails?.candidateCode };\r\n\r\n await props.createAdHocFeedbackReport(data);\r\n\r\n props.handleRefreshPage();\r\n };\r\n\r\n const mapOpportunityFollowUpStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.PORINICIAR:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.TERMINADO:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n const mapOpportunityFollowUpFeedbackReportStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.PORSUBMETER:\r\n return TABLE_STATE_CHIP_COLOR.BLUE;\r\n case OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.SUBMETIDO:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.VALIDADO:\r\n case OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.PAGO:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.REJEITADO:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {props.opportunityApplicationFollowUpDetails?.candidateFollowUpStateKey ===\r\n OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER && (\r\n \r\n \r\n Gerar Formulário de Acompanhamento\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n {props.opportunityApplicationFollowUpDetails?.followUpForms?.length > 0 && (\r\n \r\n {props.opportunityApplicationFollowUpDetails?.followUpForms?.map((prop, key) => (\r\n \r\n \r\n {prop.evaluationPeriodStartDate\r\n ? moment(prop.evaluationPeriodStartDate).format(\"DD/MM/YYYY\")\r\n : \"\"}\r\n {\" - \"}\r\n {prop.evaluationPeriodEndDate ? moment(prop.evaluationPeriodEndDate).format(\"DD/MM/YYYY\") : \"\"}\r\n \r\n \r\n {prop.isAdHoc ? {prop.title} Extra : prop.title}\r\n \r\n {prop.submittedBy}\r\n \r\n {prop.submissionDate ? moment(prop.submissionDate).format(\"DD/MM/YYYY\") : \"\"}\r\n \r\n \r\n \r\n \r\n {\r\n handleOpenFeedbackReportModal(prop.feedbackReportId, prop.stateKey);\r\n }}\r\n disabled={prop.stateKey === OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.PORSUBMETER}\r\n >\r\n VER FORMULÁRIO\r\n \r\n \r\n {prop.submittedByKeyValue === FEEDBACK_REPORT_USER_TYPE_KEY.COMPANY &&\r\n !prop.isAdHoc &&\r\n checkOperationPermission(\r\n props.authState.operationsList,\r\n OPERATIONS.OPPORTUNITIES_APPLICATIONS_FOLLOWUP_UPDATE_REPORT_FINANCIAL_INFO\r\n ) && (\r\n \r\n {\r\n handleOpenUpdatePaymentFeedbackReportModal(prop);\r\n }}\r\n disabled={prop.stateKey !== OPPORTUNITY_FOLLOWUP_FEEDBACK_REPORT_STATE_KEY.VALIDADO}\r\n >\r\n Atualizar Pagamento\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {props.opportunityApplicationFollowUpDetails?.followUpForms?.length === 0 && (\r\n Não existem dados para apresentar.\r\n )}\r\n \r\n\r\n {/* FollowUpForm Modal */}\r\n \r\n \r\n \r\n \r\n\r\n {/* Update Payment on FollowUp Form Modal */}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n createAdHocFeedbackReport: async (formData) => await dispatch(createAdHocFeedbackReportAction(formData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(FollowUpFeedbackReports);\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n// @material-ui/core components\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport FollowUpForms from \"../Sections/FollowUpFeedbackReports\";\r\n\r\nfunction FollowUpFormsTab(props) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(FollowUpFormsTab);\r\n","import React from \"react\";\r\n// @material-ui/core components\r\nimport Tabs from \"@material-ui/core/Tabs\";\r\nimport Tab from \"@material-ui/core/Tab\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport { makeStyles, withStyles } from \"@material-ui/core/styles\";\r\nimport Rating from \"@material-ui/lab/Rating\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { Typography } from \"@material-ui/core\";\r\n//import custom components\r\nimport limitaString from \"utils/string\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FollowUpEvaluation(props) {\r\n const classes = useStylesGeneric();\r\n const [tabIndex, setTabIndex] = React.useState(0);\r\n\r\n const StyledTableRow = withStyles((theme) => ({\r\n root: {\r\n \"&:nth-of-type(odd)\": {\r\n backgroundColor: theme.palette.gray[100],\r\n },\r\n },\r\n }))(TableRow);\r\n\r\n return (\r\n \r\n setTabIndex(index)}>\r\n \r\n \r\n \r\n\r\n {tabIndex === 0 ? (\r\n <>\r\n \r\n Total formulários submetidos:{\" \"}\r\n {props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.formsSubmittedByCompanyTotal}\r\n \r\n }\r\n >\r\n\r\n {props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.evaluationSubmittedByCompany?.length > 0 ? (\r\n \r\n \r\n \r\n {props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.evaluationSubmittedByCompany?.map(\r\n (evaluationSubmittedByCompany, key) => (\r\n \r\n \r\n \r\n {limitaString(evaluationSubmittedByCompany?.questionArea, 100)}\r\n \r\n \r\n \r\n \r\n <>\r\n {evaluationSubmittedByCompany?.questionInformation?.map((questionInformation, key) => (\r\n \r\n \r\n {limitaString(questionInformation?.question, 100)}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n ({questionInformation?.meanEvaluation?.toFixed(1)}/5)\r\n
\r\n
\r\n
\r\n ))}\r\n \r\n
\r\n )\r\n )}\r\n
\r\n
\r\n
\r\n ) : (\r\n Não existem dados para apresentar.\r\n )}\r\n \r\n ) : (\r\n <>\r\n \r\n Total formulários submetidos:{\" \"}\r\n {props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.formsSubmittedByCandidateTotal}\r\n \r\n }\r\n >\r\n\r\n {props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.evaluationSubmittedByCandidate?.length >\r\n 0 ? (\r\n \r\n \r\n \r\n {props.opportunityApplicationFollowUpDetails?.followUpEvaluation?.evaluationSubmittedByCandidate?.map(\r\n (evaluationSubmittedByCandidate, key) => (\r\n \r\n \r\n \r\n {limitaString(evaluationSubmittedByCandidate?.questionArea, 100)}\r\n \r\n \r\n \r\n \r\n <>\r\n {evaluationSubmittedByCandidate?.questionInformation?.map((questionInformation, key) => (\r\n \r\n \r\n {limitaString(questionInformation.question, 100)}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n ({questionInformation?.meanEvaluation?.toFixed(1)}/5)\r\n
\r\n
\r\n
\r\n ))}\r\n \r\n
\r\n )\r\n )}\r\n
\r\n
\r\n
\r\n ) : (\r\n Não existem dados para apresentar.\r\n )}\r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nexport default FollowUpEvaluation;\r\n","import { React } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n// @material-ui/core components\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport FollowUpEvaluation from \"../Sections/FollowUpEvaluation\";\r\n\r\nfunction FollowUpEvaluationTab(props) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(FollowUpEvaluationTab);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport FollowUpDetailsTab from \"./Tabs/FollowUpDetailsTab\";\r\nimport FollowUpHistoryTab from \"./Tabs/FollowUpHistoryTab\";\r\nimport FollowUpFeedbackReportsTab from \"./Tabs/FollowUpFeedbackReportsTab\";\r\nimport FollowUpEvaluationTab from \"./Tabs/FollowUpEvaluationTab\";\r\nimport { getOpportunityApplicationsFollowUpDetailsAction } from \"redux/actions/opportunitiesAction\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport Tabs from \"components/Tabs/Tabs\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationFollowUpDetails(props) {\r\n const classes = useStylesGeneric();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const TABS = {\r\n DETAILS: \"detailsTab\",\r\n HISTORY: \"historyTab\",\r\n FORMS: \"formsTab\",\r\n EVALUATION: \"evaluationTab\",\r\n };\r\n\r\n const [tabStep, setTabStep] = useState(TABS.DETAILS);\r\n const [refreshPage, setRefreshPage] = useState(false);\r\n\r\n useEffect(() => {\r\n props.getOpportunityApplicationsFollowUpDetails(props.match?.params?.candidateCode);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n };\r\n\r\n const handleRefreshPage = () => {\r\n setRefreshPage(true);\r\n };\r\n\r\n useEffect(() => {\r\n if (refreshPage) {\r\n refreshResults();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [refreshPage]);\r\n\r\n const refreshResults = () => {\r\n props.getOpportunityApplicationsFollowUpDetails(props.match?.params?.candidateCode);\r\n setRefreshPage(false);\r\n };\r\n\r\n function loadTabContent() {\r\n switch (tabStep) {\r\n case TABS.DETAILS:\r\n return (\r\n \r\n );\r\n case TABS.HISTORY:\r\n return (\r\n \r\n );\r\n case TABS.FORMS:\r\n return (\r\n \r\n );\r\n case TABS.EVALUATION:\r\n return (\r\n \r\n );\r\n default:\r\n return (\r\n \r\n );\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getOpportunityApplicationsFollowUpDetails: (data) => dispatch(getOpportunityApplicationsFollowUpDetailsAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityApplicationFollowUpDetails);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\n// @material-ui/icons components\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport SubmitedDocumentsSection from \"components/FormFields/SubmitedDocumentsSection\";\r\nimport DropzoneField from \"components/FormFields/DropzoneField\";\r\nimport { getOpportunityDocumentAction } from \"redux/actions/opportunitiesAction\";\r\nimport { DATASET, FORM_FIELDS_PREFIX } from \"utils/consts\";\r\nimport { messages, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nexport function DocumentSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const methods = useFormContext();\r\n const [docFiles, setDocFiles] = useState([]);\r\n\r\n useEffect(() => {\r\n if (props.submetedDocuments?.length > 0) setDocFiles(props.submetedDocuments);\r\n }, [props.submetedDocuments]);\r\n\r\n const getFileInfo = (documentType) => {\r\n if (documentType && docFiles.length > 0) {\r\n const doc = docFiles.find((d) => d.documentTypeId === documentType.code);\r\n if (doc)\r\n return [\r\n {\r\n documentId: doc.documentId,\r\n documentName: doc.documentName,\r\n },\r\n ];\r\n }\r\n };\r\n\r\n const getDocumentFieldSize = (numDocs) => {\r\n if (12 % numDocs === 0) return 12 / numDocs;\r\n return 4;\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {!props.isCreationPage && props.showEditButton && (\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n \r\n )}\r\n \r\n }\r\n >\r\n \r\n \r\n {props.dataSetState[DATASET.OPPORTUNITY_DOCUMENT_TYPE]?.map((documentType, key) => (\r\n \r\n \r\n {documentType.label}\r\n {props.isEditable && (\r\n \r\n )}\r\n {!props.isCreationPage && (\r\n \r\n )}\r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getOpportunityDocument: (docId, docName) => dispatch(getOpportunityDocumentAction(docId, docName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(DocumentSection);\r\n","import clsx from \"clsx\";\r\nimport moment from \"moment\";\r\nimport \"moment/locale/pt\";\r\nimport { useEffect, useState } from \"react\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\nimport { v4 as uuidv4 } from \"uuid\";\r\n\r\n// @material-ui/core components\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\n// @material-ui/icons components\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\nimport DeleteIcon from \"@material-ui/icons/Delete\";\r\nimport ErrorIcon from \"@material-ui/icons/Error\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\nimport InfoOutlinedIcon from \"@material-ui/icons/InfoOutlined\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport FormInput from \"components/FormFields/FormInput\";\r\nimport FormMonetaryInput from \"components/FormFields/FormMonetaryInput\";\r\nimport FormMultipleSelect from \"components/FormFields/FormMultipleSelect\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { errorMessages, labels, messages, titles } from \"resources/resources\";\r\nimport {\r\n DATASET,\r\n FORM_FIELDS_PREFIX,\r\n INTERNSHIP_TYPE_KEY,\r\n OPPORTUNITY_STATE_KEY,\r\n OPPORTUNITY_TYPE_KEY,\r\n REGEX_PATTERNS,\r\n REGISTRATION_CONSTS,\r\n TABLE_STATE_CHIP_COLOR,\r\n UNITS,\r\n} from \"utils/consts\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\nimport {\r\n getBoolSelectOptionsElementByCode,\r\n getMultipleSelectOptionsElementByCode,\r\n getSelectOptionsElementByCode,\r\n} from \"utils/formSelect\";\r\nimport DocumentSection from \"./DocumentSection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityData(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const methods = useFormContext();\r\n\r\n const [internshipType, setInternshipType] = useState(undefined);\r\n const [validToState, setValidToState] = useState(true);\r\n const [validFromState, setValidFromState] = useState(true);\r\n const [addQuestionButtonState, setAddQuestionButtonState] = useState(false);\r\n const [expanded, setExpanded] = useState(false);\r\n const [isEditableDataSection, setIsEditableDataSection] = useState(props.isEditable);\r\n const [isEditableDocumentsSection, setIsEditableDocumentsSection] = useState(props.isEditable);\r\n const [startDateState, setStartDateState] = useState(true);\r\n const [endDateState, setEndDateState] = useState(true);\r\n\r\n useEffect(() => {\r\n handleGetDataSetByName(DATASET.PROVINCES);\r\n handleGetDataSetByName(DATASET.CONTRACT_TYPE);\r\n handleGetDataSetByName(DATASET.INTERNSHIP_TYPE);\r\n handleGetDataSetByName(DATASET.TIMETABLE_TYPE);\r\n handleGetDataSetByName(DATASET.PROFESSIONAL_CATEGORY);\r\n handleGetDataSetByName(DATASET.OPPORTUNITY_DOCUMENT_TYPE);\r\n handleGetDataSetByName(DATASET.EMPLOYMENT_CENTERS);\r\n handleGetDataSetByName(DATASET.ACADEMIC_LEVEL);\r\n handleGetDataSetByName(DATASET.LANGUAGES);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n setFormInitialValues();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.opportunityDetailsData]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n methods.setValue(\r\n \"province\",\r\n getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId)\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES]\r\n ? props.dataSetState[DATASET.MUNICIPALITIES]\r\n : [];\r\n methods.setValue(\r\n \"county\",\r\n getSelectOptionsElementByCode(municipalityList, props.opportunityDetailsData?.municipalityId)\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MUNICIPALITIES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var contractList = props.dataSetState[DATASET.CONTRACT_TYPE] ? props.dataSetState[DATASET.CONTRACT_TYPE] : [];\r\n methods.setValue(\r\n \"contractType\",\r\n getSelectOptionsElementByCode(contractList, props.opportunityDetailsData?.contractTypeId)\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.CONTRACT_TYPE]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var internshipTypetList = props.dataSetState[DATASET.INTERNSHIP_TYPE]\r\n ? props.dataSetState[DATASET.INTERNSHIP_TYPE]\r\n : [];\r\n methods.setValue(\r\n \"internshipType\",\r\n getSelectOptionsElementByCode(internshipTypetList, props.opportunityDetailsData?.contractTypeId)\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.INTERNSHIP_TYPE]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var timeTableList = props.dataSetState[DATASET.TIMETABLE_TYPE] ? props.dataSetState[DATASET.TIMETABLE_TYPE] : [];\r\n methods.setValue(\r\n \"timetableType\",\r\n getSelectOptionsElementByCode(timeTableList, props.opportunityDetailsData?.timetableTypeId)\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.TIMETABLE_TYPE]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState) {\r\n var professionalCategoryList = props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n ? props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n : [];\r\n\r\n if (props.opportunityDetailsData?.opportunityProfessionalCategories)\r\n methods.setValue(\r\n \"opportunityProfessionalCategories\",\r\n getSelectOptionsElementByCode(\r\n professionalCategoryList,\r\n props.opportunityDetailsData?.opportunityProfessionalCategories[0]\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]]);\r\n\r\n useEffect(() => {\r\n if (!props.isEditable) {\r\n setIsEditableDataSection(false);\r\n setIsEditableDocumentsSection(false);\r\n }\r\n }, [props.isEditable]);\r\n\r\n const handleGetDataSetByName = (datasetName) => {\r\n if (props.dataSetState[datasetName] === undefined || props.dataSetState[datasetName]?.length === 0) {\r\n props.getDataSetByName(datasetName);\r\n }\r\n };\r\n\r\n const handleEditDataSection = () => {\r\n setIsEditableDataSection(true);\r\n props.handleEditSection();\r\n };\r\n\r\n const handleEditDocumentsSection = () => {\r\n setIsEditableDocumentsSection(true);\r\n props.handleEditSection();\r\n };\r\n\r\n const handleExpandClick = () => {\r\n setExpanded(!expanded);\r\n };\r\n\r\n const controlOpportunityQuestions = () => {\r\n const numQuestions = props.opportunityQuestionsState?.length;\r\n if (numQuestions <= 3)\r\n props.setOpportunityQuestionsState((prevState) => {\r\n prevState.push({\r\n name: \"question_\" + uuidv4(),\r\n });\r\n return [...prevState];\r\n });\r\n if (numQuestions === 2) setAddQuestionButtonState(true);\r\n };\r\n\r\n const removeQuestion = (name) => {\r\n const numQuestions = props.opportunityQuestionsState?.length;\r\n\r\n methods.unregister(name);\r\n props.setOpportunityQuestionsState((prevState) => {\r\n let elements = prevState.filter((question) => question.name !== name);\r\n return elements;\r\n });\r\n if (numQuestions === 3) setAddQuestionButtonState(false);\r\n };\r\n\r\n const controlInternshipType = (selectedType) => {\r\n if (selectedType) setInternshipType(selectedType.keyValue);\r\n else setInternshipType(undefined);\r\n\r\n unregisterAndClearInternshipDependentFields();\r\n };\r\n\r\n const unregisterAndClearInternshipDependentFields = () => {\r\n setValidFromState(false);\r\n setValidToState(false);\r\n setStartDateState(false);\r\n setEndDateState(false);\r\n methods.setValue(\"validFrom\", undefined);\r\n methods.setValue(\"validTo\", undefined);\r\n methods.setValue(\"mentorName\", \"\");\r\n methods.setValue(\"mentorMobilePhone\", \"\");\r\n methods.setValue(\"reportingRequired\", false);\r\n methods.setValue(\"reportingPeriod\", \"\");\r\n methods.setValue(\"startDate\", undefined);\r\n methods.setValue(\"endDate\", undefined);\r\n methods.unregister([\r\n \"validFrom\",\r\n \"validTo\",\r\n \"mentorName\",\r\n \"mentorMobilePhone\",\r\n \"reportingRequired\",\r\n \"reportingPeriod\",\r\n \"startDate\",\r\n \"endDate\",\r\n ]);\r\n\r\n // Unregister docs in a dynamic manner\r\n props.dataSetState[DATASET.OPPORTUNITY_DOCUMENT_TYPE]?.map((documentType) =>\r\n methods.unregister(FORM_FIELDS_PREFIX.DOCUMENT + documentType.code.toString())\r\n );\r\n };\r\n\r\n const handleValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n const handleValidSecondDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n const showDateFields = () => {\r\n return (\r\n props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.EMPREGO ||\r\n internshipType === INTERNSHIP_TYPE_KEY.GERAL\r\n );\r\n };\r\n\r\n const showQuestionsFields = () => {\r\n return props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.EMPREGO;\r\n };\r\n\r\n const showPAPEInternshipFields = () => {\r\n return (\r\n props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL &&\r\n internshipType === INTERNSHIP_TYPE_KEY.PAPE\r\n );\r\n };\r\n\r\n const getCardTitle = () => {\r\n switch (props.opportunityDetailsData?.opportunityTypeKey) {\r\n case OPPORTUNITY_TYPE_KEY.EMPREGO:\r\n return intl.formatMessage(titles.Title_Opportunity_Employment_Data_Card);\r\n case OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL:\r\n return intl.formatMessage(titles.Title_Opportunity_Internship_Data_Card);\r\n default:\r\n return \"\";\r\n }\r\n };\r\n\r\n const getCardStateMotiveTitle = () => {\r\n if (\r\n props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.REJEITADA ||\r\n (props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.SUBMETIDA &&\r\n props.opportunityDetailsData.opportunityStateMotive != null)\r\n )\r\n return intl.formatMessage(titles.Title_Opportunity_Employment_RejectMotive_Card);\r\n if (props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.FECHADA)\r\n return intl.formatMessage(titles.Title_Opportunity_Employment_CloseMotive_Card);\r\n return \"\";\r\n };\r\n\r\n const getAmountTitle = () => {\r\n switch (props.opportunityDetailsData?.opportunityTypeKey) {\r\n case OPPORTUNITY_TYPE_KEY.EMPREGO:\r\n return \"Salário\";\r\n case OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL:\r\n return \"Bolsa de Estágio\";\r\n default:\r\n return \"\";\r\n }\r\n };\r\n\r\n const getContractInternshipTypeLabel = () => {\r\n switch (props.opportunityDetailsData?.opportunityTypeKey) {\r\n case OPPORTUNITY_TYPE_KEY.EMPREGO:\r\n return (\r\n <>\r\n Tipo de Contracto\r\n \r\n {methods.formState.errors[\"contractType\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"contractType\"].message}\r\n \r\n )}\r\n \r\n );\r\n case OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL:\r\n return (\r\n <>\r\n Tipo de Estágio\r\n \r\n {methods.formState.errors[\"internshipType\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"internshipType\"].message}\r\n \r\n )}\r\n \r\n );\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n const showStateMotiveArea = () => {\r\n return (\r\n props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.REJEITADA ||\r\n props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.FECHADA\r\n );\r\n };\r\n\r\n const mapOpportunityStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_STATE_KEY.APROVADA:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_STATE_KEY.REJEITADA:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n case OPPORTUNITY_STATE_KEY.SUBMETIDA:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_STATE_KEY.FECHADA:\r\n return TABLE_STATE_CHIP_COLOR.BLUE;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n {!props.isCreationPage && (\r\n \r\n \r\n \r\n )}\r\n {props.opportunityDetailsData?.opportunityStateKey !== OPPORTUNITY_STATE_KEY.FECHADA &&\r\n !props.isCreationPage && (\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n \r\n )}\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Província\r\n \r\n {methods.formState.errors[\"province\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"province\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Município\r\n \r\n {methods.formState.errors[\"county\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"county\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Opportunity_OpportunityData_EmploymentCenter)}\r\n \r\n {methods.formState.errors[\"employmentCenter\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"employmentCenter\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n {\r\n if (value <= 0) return intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n Horário\r\n \r\n {methods.formState.errors[\"timetableType\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"timetableType\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n {\r\n if (value === \"0\" || value === \"0,00\" || value === \"0,0\")\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Área\r\n \r\n {methods.formState.errors[\"opportunityProfessionalCategories\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"opportunityProfessionalCategories\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Opportunity_OpportunityData_AcceptWorkersFromOtherRegions)}\r\n \r\n \r\n {methods.formState.errors[\"acceptWorkersFromOtherRegions\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"acceptWorkersFromOtherRegions\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n {getContractInternshipTypeLabel()}\r\n \r\n\r\n {showDateFields() && (\r\n <>\r\n \r\n \r\n Data da Publicação da Oferta (opcional)\r\n {\r\n if (!methods.getValues(\"validTo\")) return true;\r\n return (\r\n (value &&\r\n value instanceof moment &&\r\n methods.getValues(\"validTo\") &&\r\n methods.getValues(\"validTo\") instanceof moment &&\r\n value.startOf(\"day\") < methods.getValues(\"validTo\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n setValidFromState(true);\r\n onChange(e);\r\n methods.trigger(\"validTo\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return currentDate >= moment().startOf(\"day\");\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !isEditableDataSection,\r\n }}\r\n renderInput={(dateInputProps) => (\r\n {\r\n setValidFromState(true);\r\n handleValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"validFrom\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"validFrom\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"validFrom\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Data do Término da Oferta (opcional)\r\n {\r\n if (!methods.getValues(\"validFrom\")) return true;\r\n return (\r\n (value &&\r\n value instanceof moment &&\r\n methods.getValues(\"validFrom\") &&\r\n methods.getValues(\"validFrom\") instanceof moment &&\r\n value.startOf(\"day\") > methods.getValues(\"validFrom\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n setValidToState(true);\r\n onChange(e);\r\n methods.trigger(\"validFrom\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return currentDate >= moment().startOf(\"day\");\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !isEditableDataSection,\r\n }}\r\n renderInput={(dateInputProps) => (\r\n {\r\n setValidToState(true);\r\n handleValidSecondDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"validTo\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"validTo\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"validTo\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n {showPAPEInternshipFields() && (\r\n <>\r\n \r\n \r\n \r\n \r\n {\r\n if (\r\n value &&\r\n (parseInt(value) < REGISTRATION_CONSTS.MIN_LENGTH_PHONE_NUMBER ||\r\n parseInt(value) > REGISTRATION_CONSTS.MAX_LENGTH_PHONE_NUMBER)\r\n )\r\n return intl.formatMessage(messages.Message_Generic_InvalidField);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n (\r\n {\r\n onChange(e);\r\n methods.setValue(\"reportingPeriod\", e.target.checked ? \"1\" : \"\");\r\n methods.trigger(\"reportingPeriod\");\r\n }}\r\n value=\"end\"\r\n control={}\r\n label={\r\n \r\n Requer submissão de relatório\r\n \r\n }\r\n labelPlacement=\"end\"\r\n classes={{\r\n root: classes.formControlCheckboxLabelRoot,\r\n label: classes.formControlCheckboxLabelLabel,\r\n }}\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n Período de submissão\r\n \r\n \r\n \r\n \r\n {\r\n if (methods.getValues(\"reportingRequired\") && !value)\r\n return intl.formatMessage(errorMessages.ErrorMessage_FieldRequired);\r\n if (methods.getValues(\"reportingRequired\") && value <= 0)\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n {UNITS.MONTHS}\r\n \r\n }\r\n classes={{\r\n input: classes.monetaryFields,\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"reportingPeriod\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"reportingPeriod\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"reportingPeriod\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Data Prevista de Estágio Início\r\n {\r\n if (!methods.getValues(\"endDate\")) return true;\r\n return (\r\n (value &&\r\n value instanceof moment &&\r\n methods.getValues(\"endDate\") &&\r\n methods.getValues(\"endDate\") instanceof moment &&\r\n value.startOf(\"day\") < methods.getValues(\"endDate\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n setStartDateState(true);\r\n onChange(e);\r\n methods.trigger(\"endDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !isEditableDataSection,\r\n }}\r\n renderInput={(dateInputProps) => (\r\n {\r\n setStartDateState(true);\r\n handleValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"startDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"startDate\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"startDate\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n \r\n \r\n Data Prevista de Estágio Fim\r\n {\r\n if (!methods.getValues(\"startDate\")) return true;\r\n return (\r\n (value &&\r\n value instanceof moment &&\r\n methods.getValues(\"startDate\") &&\r\n methods.getValues(\"startDate\") instanceof moment &&\r\n value.startOf(\"day\") > methods.getValues(\"startDate\")?.startOf(\"day\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n setEndDateState(true);\r\n onChange(e);\r\n methods.trigger(\"startDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return currentDate >= moment().startOf(\"day\");\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n disabled: !isEditableDataSection,\r\n }}\r\n renderInput={(dateInputProps) => (\r\n {\r\n setEndDateState(true);\r\n handleValidSecondDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"endDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"endDate\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"endDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {props.opportunityDetailsData?.opportunityStateKey !== OPPORTUNITY_STATE_KEY.FECHADA &&\r\n !props.isCreationPage && (\r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Edit)}\r\n \r\n \r\n )}\r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Opportunity_OpportunityData_RequiredAcademicLevel)}\r\n \r\n \r\n {methods.formState.errors[\"academicLevel\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"academicLevel\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Opportunity_OpportunityData_RequiredLanguages)}\r\n \r\n \r\n {methods.formState.errors[\"requiredLanguages\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"requiredLanguages\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n if (value < 0)\r\n return intl.formatMessage(messages.Message_Generic_ValueGreaterThanOrEqualToZeroField);\r\n return true;\r\n },\r\n },\r\n }}\r\n />\r\n \r\n \r\n \r\n\r\n {showQuestionsFields() && (\r\n <>\r\n \r\n {\"Questões para o candidato\"}\r\n \r\n max.3\r\n \r\n {isEditableDataSection &&\r\n !props.isCreationPage &&\r\n props.opportunityDetailsData?.opportunityStateKey !== OPPORTUNITY_STATE_KEY.SUBMETIDA && (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n }\r\n action={\r\n \r\n \r\n {isEditableDataSection &&\r\n (props.isCreationPage ||\r\n props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.SUBMETIDA) && (\r\n {\r\n controlOpportunityQuestions();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Generic_Add)}\r\n \r\n )}\r\n \r\n \r\n }\r\n />\r\n {props.opportunityQuestionsState?.length > 0 && (\r\n \r\n {props.opportunityQuestionsState.map((q) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {isEditableDataSection &&\r\n (props.isCreationPage ||\r\n props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.SUBMETIDA) && (\r\n \r\n {\r\n removeQuestion(q.name);\r\n }}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n })}\r\n \r\n )}\r\n \r\n )}\r\n \r\n\r\n {showPAPEInternshipFields() && (\r\n \r\n )}\r\n\r\n {showStateMotiveArea() && (\r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.opportunityDetailsData?.opportunityStateKey !== OPPORTUNITY_STATE_KEY.FECHADA && (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n\r\n function setFormInitialValues() {\r\n if (props.opportunityDetailsData) {\r\n setInternshipType(undefined);\r\n if (props.opportunityDetailsData.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL) {\r\n setInternshipType(props.opportunityDetailsData.internshipTypeKeyValue);\r\n }\r\n methods.setValue(\"title\", props.opportunityDetailsData.title);\r\n methods.setValue(\"description\", props.opportunityDetailsData.description);\r\n methods.setValue(\"amount\", props.opportunityDetailsData.amount);\r\n methods.setValue(\"reference\", props.opportunityDetailsData.reference);\r\n methods.setValue(\"numVacancies\", props.opportunityDetailsData.numVacancies);\r\n methods.setValue(\r\n \"validFrom\",\r\n props.opportunityDetailsData.validFrom ? moment(props.opportunityDetailsData.validFrom) : null\r\n );\r\n methods.setValue(\r\n \"validTo\",\r\n props.opportunityDetailsData.validTo ? moment(props.opportunityDetailsData.validTo) : null\r\n );\r\n methods.setValue(\"mentorName\", props.opportunityDetailsData.mentorName);\r\n methods.setValue(\"mentorMobilePhone\", props.opportunityDetailsData.mentorMobilePhone);\r\n methods.setValue(\"reportingRequired\", props.opportunityDetailsData.reportingRequired);\r\n methods.setValue(\"reportingPeriod\", props.opportunityDetailsData.reportingPeriod ?? \"\");\r\n methods.setValue(\r\n \"startDate\",\r\n props.opportunityDetailsData.startDate ? moment(props.opportunityDetailsData.startDate) : null\r\n );\r\n methods.setValue(\r\n \"endDate\",\r\n props.opportunityDetailsData.endDate ? moment(props.opportunityDetailsData.endDate) : null\r\n );\r\n methods.setValue(\"socialPerks\", props.opportunityDetailsData.socialPerks ?? \"\");\r\n methods.setValue(\"otherPerks\", props.opportunityDetailsData.otherPerks ?? \"\");\r\n methods.setValue(\"workplace\", props.opportunityDetailsData.workplace ?? \"\");\r\n methods.setValue(\"commune\", props.opportunityDetailsData.commune ?? \"\");\r\n methods.setValue(\"activeMonths\", props.opportunityDetailsData.activeMonths ?? 0);\r\n methods.setValue(\"opportunity_observations\", props.opportunityDetailsData.observations ?? \"\");\r\n methods.setValue(\"requiredKnowledge\", props.opportunityDetailsData.requiredKnowledge ?? \"\");\r\n\r\n if (\r\n props.opportunityDetailsData.opportunityStateKey === OPPORTUNITY_STATE_KEY.REJEITADA ||\r\n props.opportunityDetailsData.opportunityStateKey === OPPORTUNITY_STATE_KEY.FECHADA ||\r\n (props.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.SUBMETIDA &&\r\n props.opportunityDetailsData.opportunityStateMotive != null)\r\n ) {\r\n methods.setValue(\"stateMotive\", props.opportunityDetailsData.opportunityStateMotive?.stateMotiveDescription);\r\n methods.setValue(\"observations\", props.opportunityDetailsData.opportunityStateMotive?.stateMotiveObservations);\r\n }\r\n\r\n if (props.opportunityDetailsData.opportunityQuestions) {\r\n props.setOpportunityQuestionsState((prevState) => {\r\n prevState = props.opportunityDetailsData.opportunityQuestions.map((q) => {\r\n methods.setValue(q.id + \"\", q.question);\r\n return { name: q.id + \"\", question: q.question };\r\n });\r\n return [...prevState];\r\n });\r\n }\r\n\r\n if (props.dataSetState) {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n methods.setValue(\r\n \"province\",\r\n getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId)\r\n );\r\n\r\n if (props.getDataSet !== undefined) {\r\n props.getDataSet(DATASET.MUNICIPALITIES, props.opportunityDetailsData?.provinceKey, true);\r\n }\r\n\r\n var municipalityList = props.dataSetState[DATASET.MUNICIPALITIES]\r\n ? props.dataSetState[DATASET.MUNICIPALITIES]\r\n : [];\r\n\r\n methods.setValue(\r\n \"county\",\r\n getSelectOptionsElementByCode(municipalityList, props.opportunityDetailsData?.municipalityId)\r\n );\r\n\r\n var contractList = props.dataSetState[DATASET.CONTRACT_TYPE] ? props.dataSetState[DATASET.CONTRACT_TYPE] : [];\r\n methods.setValue(\r\n \"contractType\",\r\n getSelectOptionsElementByCode(contractList, props.opportunityDetailsData?.contractTypeId)\r\n );\r\n\r\n var internshipTypetList = props.dataSetState[DATASET.INTERNSHIP_TYPE]\r\n ? props.dataSetState[DATASET.INTERNSHIP_TYPE]\r\n : [];\r\n methods.setValue(\r\n \"internshipType\",\r\n getSelectOptionsElementByCode(internshipTypetList, props.opportunityDetailsData?.internshipTypeId)\r\n );\r\n\r\n var timeTableList = props.dataSetState[DATASET.TIMETABLE_TYPE]\r\n ? props.dataSetState[DATASET.TIMETABLE_TYPE]\r\n : [];\r\n methods.setValue(\r\n \"timetableType\",\r\n getSelectOptionsElementByCode(timeTableList, props.opportunityDetailsData?.timetableTypeId)\r\n );\r\n\r\n var professionalCategoryList = props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n ? props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n : [];\r\n\r\n if (props.opportunityDetailsData?.opportunityProfessionalCategories)\r\n methods.setValue(\r\n \"opportunityProfessionalCategories\",\r\n getSelectOptionsElementByCode(\r\n professionalCategoryList,\r\n props.opportunityDetailsData?.opportunityProfessionalCategories[0]\r\n )\r\n );\r\n\r\n if (props.getDataSet !== undefined) {\r\n props.getDataSet(DATASET.EMPLOYMENT_CENTERS, props.opportunityDetailsData?.provinceKey, true);\r\n }\r\n\r\n var employmentCentersList = props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n ? props.dataSetState[DATASET.EMPLOYMENT_CENTERS]\r\n : [];\r\n\r\n methods.setValue(\r\n \"employmentCenter\",\r\n getSelectOptionsElementByCode(employmentCentersList, props.opportunityDetailsData?.employmentCenterId)\r\n );\r\n\r\n var academicLevelList = props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n ? props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n : [];\r\n methods.setValue(\r\n \"academicLevel\",\r\n getSelectOptionsElementByCode(academicLevelList, props.opportunityDetailsData?.academicLevelId)\r\n );\r\n\r\n methods.setValue(\r\n \"acceptWorkersFromOtherRegions\",\r\n getBoolSelectOptionsElementByCode(\r\n DATASET.YES_OR_NO_DROPDOWN,\r\n props.opportunityDetailsData?.acceptWorkersFromOtherRegions\r\n )\r\n );\r\n\r\n var languagesList = props.dataSetState[DATASET.LANGUAGES] ? props.dataSetState[DATASET.LANGUAGES] : [];\r\n\r\n methods.setValue(\r\n \"requiredLanguages\",\r\n getMultipleSelectOptionsElementByCode(languagesList, props.opportunityDetailsData?.requiredLanguagesIds)\r\n );\r\n }\r\n }\r\n }\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityData);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n//import custom components\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport OpportunityData from \"./OpportunityData\";\r\n\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getFoUserColectiveBasicInfoAction } from \"redux/actions/usersAction\";\r\nimport { USERS } from \"utils/actionsConsts\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { errorMessages } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityCreation(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const methods = useFormContext();\r\n const [opportunityType, setOpportunityType] = useState(undefined);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.OPPORTUNITY_TYPE] === undefined ||\r\n props.dataSetState[DATASET.OPPORTUNITY_TYPE]?.length === 0\r\n ) {\r\n props.getDataSetByName(DATASET.OPPORTUNITY_TYPE);\r\n }\r\n\r\n props.clearFoUserColectiveBasicInfo();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (opportunityType !== undefined && props.usersInfo.foUserColectiveBasicInfo?.id) {\r\n props.setShowOpportunityDataSection(true);\r\n } else {\r\n props.setShowOpportunityDataSection(false);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [opportunityType, props.usersInfo?.foUserColectiveBasicInfo?.id]);\r\n\r\n const controlOpportunityType = (selectedType) => {\r\n if (selectedType) {\r\n let auxData = [];\r\n auxData[\"opportunityTypeKey\"] = selectedType.keyValue;\r\n setOpportunityType(auxData);\r\n } else {\r\n setOpportunityType(undefined);\r\n }\r\n unregisterAndClearAllFieldForms();\r\n };\r\n\r\n const unregisterAndClearAllFieldForms = () => {\r\n methods.setValue(\"province\", undefined);\r\n methods.setValue(\"timetableType\", undefined);\r\n methods.setValue(\"title\", \"\");\r\n methods.setValue(\"description\", \"\");\r\n methods.setValue(\"amount\", \"\");\r\n methods.setValue(\"numVacancies\", \"\");\r\n methods.setValue(\"reference\", \"\");\r\n methods.setValue(\"opportunityProfessionalCategories\", undefined);\r\n methods.setValue(\"contractType\", undefined);\r\n methods.setValue(\"internshipType\", undefined);\r\n methods.setValue(\"validFrom\", undefined);\r\n methods.setValue(\"validTo\", undefined);\r\n methods.setValue(\"mentorName\", undefined);\r\n methods.setValue(\"mentorMobilePhone\", undefined);\r\n methods.setValue(\"reportingRequired\", false);\r\n methods.setValue(\"reportingPeriod\", \"\");\r\n methods.unregister([\r\n \"province\",\r\n \"timetableType\",\r\n \"title\",\r\n \"description\",\r\n \"amount\",\r\n \"numVacancies\",\r\n \"reference\",\r\n \"contractType\",\r\n \"internshipType\",\r\n \"opportunityProfessionalCategories\",\r\n \"validFrom\",\r\n \"validTo\",\r\n \"mentorName\",\r\n \"mentorMobilePhone\",\r\n \"reportingRequired\",\r\n \"reportingPeriod\",\r\n ]);\r\n\r\n unregisterAndClearQuestionFields();\r\n };\r\n\r\n const unregisterAndClearQuestionFields = () => {\r\n props.opportunityQuestionsState?.forEach((q) => {\r\n methods.setValue(q.name, \"\");\r\n methods.unregister(q.name);\r\n });\r\n props.setOpportunityQuestionsState((prevState) => {\r\n prevState.length = 0;\r\n return prevState;\r\n });\r\n };\r\n\r\n const getEnterpriseBasicInfo = () => {\r\n const taxIdNumber = methods.getValues(\"taxIdNumber\");\r\n if (taxIdNumber) props.getFoUserColectiveBasicInfo({ taxIdNumber: taxIdNumber });\r\n else {\r\n methods.trigger(\"taxIdNumber\");\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n Tipo de Oferta\r\n \r\n {methods.formState.errors[\"opportunityType\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"opportunityType\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n NIF da empresa\r\n (\r\n \r\n {\r\n getEnterpriseBasicInfo();\r\n }}\r\n >\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"taxIdNumber\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n {methods.formState.errors[\"taxIdNumber\"] !== undefined && (\r\n \r\n {methods.formState.errors[\"taxIdNumber\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Nome\r\n {props.usersInfo.foUserColectiveBasicInfo?.name}\r\n \r\n \r\n \r\n \r\n NISS\r\n {props.usersInfo.foUserColectiveBasicInfo?.niss}\r\n \r\n \r\n \r\n \r\n Nome do Responsável\r\n {props.usersInfo.foUserColectiveBasicInfo?.contactName}\r\n \r\n \r\n \r\n \r\n \r\n {opportunityType !== undefined && props.usersInfo.foUserColectiveBasicInfo?.id && (\r\n <>\r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getFoUserColectiveBasicInfo: (data) => dispatch(getFoUserColectiveBasicInfoAction(data)),\r\n clearFoUserColectiveBasicInfo: () =>\r\n dispatch({\r\n type: USERS.GET_FO_USER_COLECTIVE_BASIC_INFO,\r\n result: false,\r\n payload: {},\r\n }),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityCreation);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport OpportunityCreation from \"./Sections/OpportunityCreation\";\r\nimport { createOpportunityAction } from \"redux/actions/opportunitiesAction\";\r\nimport { createOpportunityMap } from \"mappers/opportunityMap\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityCreate(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const history = useHistory();\r\n const scrollDirection = useScrollDirection();\r\n const [opportunityQuestionsState, setOpportunityQuestionsState] = useState(\r\n []\r\n );\r\n const [showOpportunityDataSection, setShowOpportunityDataSection] =\r\n useState(false);\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n // useEffect(() => {}, []);\r\n\r\n const handleCancelOnClickEvent = () => {\r\n history.goBack();\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (props.usersInfo.foUserColectiveBasicInfo?.id) {\r\n data[\"userId\"] = props.usersInfo.foUserColectiveBasicInfo.id;\r\n props.createOpportunityAction(\r\n createOpportunityMap(\r\n data,\r\n opportunityQuestionsState,\r\n props.dataSetState[DATASET.OPPORTUNITY_DOCUMENT_TYPE]\r\n )\r\n );\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n \r\n
\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n {showOpportunityDataSection && (\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n createOpportunityAction: (data) => dispatch(createOpportunityAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityCreate);\r\n","import { connect } from \"react-redux\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport { DATASET, UPDATE_OPPORTUNITY_STATE_ACTION_TYPE } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction RejectSection(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const { control } = useFormContext();\r\n\r\n const getDialogTitle = () => {\r\n switch (props.actionType) {\r\n case UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.REJECT:\r\n return \"Pretende rejeitar a oferta?\";\r\n case UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.CLOSE:\r\n return \"Pretende fechar a oferta?\";\r\n default:\r\n return \"\";\r\n }\r\n };\r\n return (\r\n <>\r\n \r\n \r\n {getDialogTitle()}\r\n \r\n \r\n \r\n \r\n \r\n Motivo\r\n \r\n {props.errors[\"motive\"] !== undefined && (\r\n \r\n {props.errors[\"motive\"].message}\r\n \r\n )}\r\n \r\n \r\n {props.actionType === UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.REJECT && (\r\n \r\n \r\n Comentários\r\n (\r\n \r\n )}\r\n />\r\n \r\n \r\n )}\r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps, null)(RejectSection);\r\n","export function updateOpportunityStateMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n opportunityId: formData.id,\r\n actionType: formData.actionType,\r\n opportunityStateMotiveKey: formData.opportunityStateMotiveKey,\r\n observations: formData.observations\r\n };\r\n }\r\n return formData;\r\n}\r\n\r\nexport default updateOpportunityStateMap;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n//@material-ui/core\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//@material-ui/icons\r\nimport HelpOutlineIcon from \"@material-ui/icons/HelpOutline\";\r\n//custom components\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport UpdateStateSection from \"../Sections/UpdateOpportunityStateSection\";\r\nimport { updateOpportunityStateMap } from \"../../../../../mappers/updateOpportunityStateMap\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { updateOpportunityStateAction, getOpportunitiesDetailsAction } from \"redux/actions/opportunitiesAction\";\r\nimport { DATASET } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction UpdateOpportunityStateDialog(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n trigger,\r\n formState: { errors },\r\n } = methods;\r\n\r\n //GET MOTIVES\r\n React.useEffect(() => {\r\n props.getDataSetByName(DATASET.OPPORTUNITY_STATE_MOTIVES, props.data?.motivesType);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.data]);\r\n\r\n const onSubmitReject = (data) => {\r\n props.data[\"opportunityStateMotiveKey\"] = data.motive?.keyValue;\r\n props.data[\"observations\"] = data.notes;\r\n\r\n props.updateOpportunityState(updateOpportunityStateMap(props.data), () => {\r\n setValue(\"motive\", undefined);\r\n setValue(\"notes\", \"\");\r\n props.onClose();\r\n props.getOpportunityDetails(props.data.id);\r\n });\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Submit_Button)}\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n updateOpportunityState: (data, onCloseMethod) => dispatch(updateOpportunityStateAction(data, onCloseMethod)),\r\n getOpportunityDetails: (opportunityId) => dispatch(getOpportunitiesDetailsAction(opportunityId)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(UpdateOpportunityStateDialog);\r\n","import { React, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { FormProvider, useForm } from \"react-hook-form\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { Container, Grid, FormGroup } from \"@material-ui/core\";\r\n//import custom components\r\nimport OpportunityData from \"../Sections/OpportunityData\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport UpdateOpportunityStateDialog from \"../Dialogs/UpdateOpportunityStateDialog\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport {\r\n updateOpportunityStateAction,\r\n getOpportunitiesDetailsAction,\r\n updateOpportunityAction,\r\n} from \"redux/actions/opportunitiesAction\";\r\nimport { updateOpportunityMap } from \"mappers/opportunityMap\";\r\nimport {\r\n OPPORTUNITY_STATE_KEY,\r\n UPDATE_OPPORTUNITY_STATE_ACTION_TYPE,\r\n OPPORTUNITY_MOTIVES_TYPE_KEY,\r\n DATASET,\r\n} from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\n\r\nfunction OpportunityDetailsTab(props) {\r\n const history = useHistory();\r\n const intl = useIntl();\r\n\r\n const [opportunityQuestionsState, setOpportunityQuestionsState] = useState(\r\n []\r\n );\r\n const [isEditable, setIsEditable] = useState(false);\r\n const [opportunityStateData, setopportunityStateData] = useState();\r\n const [dialogs, setDialogs] = useState(false);\r\n const DIALOG = { SHOW: true, HIDE: false };\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const showHideDialog = (op) => {\r\n setDialogs(op);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n data[\"alternateKey\"] = props.opportunityId;\r\n data[\"opportunityTypeId\"] = props.opportunityDetailsData?.opportunityTypeId;\r\n data[\"opportunityTypeKey\"] =\r\n props.opportunityDetailsData?.opportunityTypeKey;\r\n\r\n let updateData = updateOpportunityMap(\r\n data,\r\n opportunityQuestionsState,\r\n props.dataSetState[DATASET.OPPORTUNITY_DOCUMENT_TYPE]\r\n );\r\n\r\n props.updateOpportunity(updateData, () => {\r\n props.getOpportunityDetails(props.opportunityDetailsData?.id);\r\n setIsEditable(false);\r\n });\r\n };\r\n const handleEditSection = () => {\r\n setIsEditable(true);\r\n };\r\n const handleRejectButton = () => {\r\n setopportunityStateData({\r\n id: props.opportunityDetailsData?.id,\r\n actionType: UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.REJECT,\r\n motivesType: OPPORTUNITY_MOTIVES_TYPE_KEY.REJECT,\r\n });\r\n setDialogs(true);\r\n };\r\n const handleCloseButton = () => {\r\n setopportunityStateData({\r\n id: props.opportunityDetailsData?.id,\r\n actionType: UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.CLOSE,\r\n motivesType: OPPORTUNITY_MOTIVES_TYPE_KEY.CLOSE,\r\n });\r\n setDialogs(true);\r\n };\r\n const handleApproveButton = () => {\r\n props.updateOpportunityState(\r\n {\r\n opportunityId: props.opportunityDetailsData?.id,\r\n actionType: UPDATE_OPPORTUNITY_STATE_ACTION_TYPE.APPROVE,\r\n },\r\n () => {\r\n props.getOpportunityDetails(props.opportunityDetailsData?.id);\r\n }\r\n );\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n
\r\n \r\n\r\n \r\n \r\n \r\n \r\n {props.opportunityDetailsData?.opportunityStateKey ===\r\n OPPORTUNITY_STATE_KEY.SUBMETIDA && (\r\n \r\n {intl.formatMessage(labels.Label_Reject_Submit)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {!isEditable &&\r\n props.opportunityDetailsData?.opportunityStateKey ===\r\n OPPORTUNITY_STATE_KEY.APROVADA && (\r\n \r\n Fechar Oferta\r\n \r\n )}\r\n {isEditable && (\r\n \r\n {intl.formatMessage(labels.Label_Generic_Save)}\r\n \r\n )}\r\n {!isEditable &&\r\n props.opportunityDetailsData?.opportunityStateKey ===\r\n OPPORTUNITY_STATE_KEY.SUBMETIDA && (\r\n \r\n {intl.formatMessage(labels.Label_Approve_Submit)}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n showHideDialog(DIALOG.HIDE)}\r\n />\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) =>\r\n dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n updateOpportunityState: (data, onCloseMethod) =>\r\n dispatch(updateOpportunityStateAction(data, onCloseMethod)),\r\n getOpportunityDetails: (opportunityId) =>\r\n dispatch(getOpportunitiesDetailsAction(opportunityId)),\r\n updateOpportunity: (data, onCloseMethod) =>\r\n dispatch(updateOpportunityAction(data, onCloseMethod)),\r\n});\r\n\r\nexport default connect(\r\n mapStateToProps,\r\n mapDispatchToProps\r\n)(OpportunityDetailsTab);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\nimport _ from \"lodash\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core components src\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport ApproveDialog from \"components/Dialogs/ApproveDialog\";\r\nimport RejectDialog from \"components/Dialogs/RejectDialog\";\r\nimport { approveOpportunityCandidateAction, rejectOpportunityCandidateAction } from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CandidatesListSection(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const [candidateId, setCandidateId] = useState();\r\n const [overlappingInternship, setOverlappingInternship] = useState(false);\r\n\r\n //Dialogs Logic\r\n const DIALOG = { SHOW: true, HIDE: false };\r\n const [dialogs, setDialogs] = useState({\r\n approveModal: false,\r\n rejectModal: false,\r\n updateModal: false,\r\n });\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES] === undefined ||\r\n props.dataSetState[DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES]?.length === 0\r\n ) {\r\n props.getDataSetByName(DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const showHideDialog = (dialog, op) => {\r\n let dialogs_temp = _.mapValues(dialogs, () => false);\r\n\r\n dialogs_temp[dialog] = op;\r\n\r\n setDialogs(dialogs_temp);\r\n };\r\n\r\n function handleApproveModal(candidateId, overlappingInternship) {\r\n setCandidateId(candidateId);\r\n setOverlappingInternship(overlappingInternship);\r\n showHideDialog(\"approveModal\", DIALOG.SHOW);\r\n }\r\n\r\n function handleRejectModal(candidateId) {\r\n setCandidateId(candidateId);\r\n showHideDialog(\"rejectModal\", DIALOG.SHOW);\r\n }\r\n\r\n const onSubmitApproveDialog = () => {\r\n const approveFilter = {\r\n candidateId: candidateId,\r\n opportunityId: props.opportunityId,\r\n };\r\n\r\n props.approveOpportunityCandidate(approveFilter, props.opportunitiesState.isOpportunityApplication);\r\n };\r\n\r\n const onSubmitRejectDialog = (rejectMotiveId, rejectMotiveObservations) => {\r\n let filter = {\r\n candidateId,\r\n opportunityId: props.opportunityId,\r\n rejectMotiveId,\r\n rejectMotiveObservations,\r\n };\r\n\r\n props.rejectOpportunityCandidate(filter, props.opportunitiesState.isOpportunityApplication);\r\n };\r\n\r\n const tableHead = [\"Nome\", \"Nº BI\", \"Estado\", \"Data de Candidatura\", \"\", \"\"];\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Detalhes\r\n \r\n \r\n \r\n {props.opportunitiesState?.result?.data !== undefined &&\r\n props.opportunitiesState?.result?.data?.length > 0 && (\r\n \r\n {props.opportunitiesState?.result?.data?.map((prop, key) => (\r\n \r\n {prop.userName}\r\n {prop.identityCard}\r\n {prop.candidateStateDescription}\r\n {prop.applicationDate}\r\n \r\n \r\n \r\n handleRejectModal(prop.alternateKey)}\r\n >\r\n Rejeitar\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n handleApproveModal(prop.alternateKey, prop.papeInternshipOverlapsOthersOfUser)\r\n }\r\n >\r\n Recrutar\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {props.opportunitiesState?.result?.data?.length === 0 &&\r\n !props.opportunitiesState?.opportunityUsers_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n showHideDialog(\"approveModal\", DIALOG.HIDE)}\r\n />\r\n\r\n showHideDialog(\"rejectModal\", DIALOG.HIDE)}\r\n />\r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n approveOpportunityCandidate: (formData, isOpportunityApplication) =>\r\n dispatch(approveOpportunityCandidateAction(formData, isOpportunityApplication)),\r\n rejectOpportunityCandidate: (formData, isOpportunityApplication) =>\r\n dispatch(rejectOpportunityCandidateAction(formData, isOpportunityApplication)),\r\n getDataSetByName: (name, addEmptyField) => dispatch(getDataSetByNameAction(name, addEmptyField)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CandidatesListSection);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Link from \"@material-ui/core/Link\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n// src components\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport {\r\n getFilteredPossibleOpportunityCandidatesAction,\r\n addOpportunityCandidatesListAction,\r\n} from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getFilteredPossibleOpportunityCandidatesMap } from \"mappers/opportunityMap\";\r\nimport { PAGINATION, DATASET, OPPORTUNITY_TYPE_KEY } from \"utils/consts\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { labels } from \"resources/resources\";\r\nimport { getDatasetStateByName } from \"utils/datasets\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\r\n \"Nome\",\r\n \"BI\",\r\n \"Local Trabalho Pretendido\",\r\n \"Província\",\r\n \"Município\",\r\n \"Áreas\",\r\n \"Nível Académico\",\r\n \"Linguagens Estudadas\",\r\n];\r\n\r\nfunction AddCandidates(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const [candidatesListToAddToOpportunity, setCandidatesListToAddToOpportunity] = useState([]);\r\n const [possibleCandidatesList, setPossibleCandidatesList] = useState([]);\r\n const [page, setPage] = useState(PAGINATION.FIRST_PAGE);\r\n const [clearBlockedFilters, setClearBlockedFilters] = useState(false);\r\n\r\n const [filter, setFilter] = useState({\r\n opportunityId: props.opportunityDetailsData?.id,\r\n userNameOrIdentityCard: null,\r\n provinceId: props.opportunityDetailsData?.provinceId,\r\n municipalityId: props.opportunityDetailsData?.municipalityId,\r\n professionalCategoryId: props.opportunityDetailsData?.opportunityProfessionalCategories[0],\r\n isAvailableForOpportunities: true,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE_MODAL_RESULT_TABLE,\r\n });\r\n\r\n const clearFilter = () => {\r\n setClearBlockedFilters(true);\r\n\r\n methods.setValue(\"userNameOrIdentityCard\", \"\");\r\n\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId);\r\n methods.setValue(\"province\", selectedProvince);\r\n props.getDataSetByName(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n\r\n methods.setValue(\r\n \"municipality\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.MUNICIPALITIES],\r\n props.opportunityDetailsData?.municipalityId\r\n )\r\n );\r\n\r\n methods.setValue(\r\n \"professionalCategory\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROFESSIONAL_CATEGORY],\r\n props.opportunityDetailsData?.opportunityProfessionalCategories[0]\r\n )\r\n );\r\n methods.setValue(\"isAvailableForOpportunities\", true);\r\n };\r\n\r\n useEffect(() => {\r\n if (methods.getValues(\"province\") && clearBlockedFilters) {\r\n methods.setValue(\r\n \"municipality\",\r\n getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.MUNICIPALITIES],\r\n props.opportunityDetailsData?.municipalityId\r\n )\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [methods.getValues(\"province\")]);\r\n\r\n useEffect(() => {\r\n var provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n var selectedProvince = getSelectOptionsElementByCode(provinceList, props.opportunityDetailsData?.provinceId);\r\n methods.setValue(\"province\", selectedProvince);\r\n props.getDataSetByName(DATASET.MUNICIPALITIES, selectedProvince.keyValue);\r\n\r\n var municipalitiesList = props.dataSetState[DATASET.MUNICIPALITIES]\r\n ? props.dataSetState[DATASET.MUNICIPALITIES]\r\n : [];\r\n var selectedMunicipality = getSelectOptionsElementByCode(\r\n municipalitiesList,\r\n props.opportunityDetailsData?.municipalityId\r\n );\r\n methods.setValue(\"municipality\", selectedMunicipality);\r\n\r\n var professionalCategoryList = props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n ? props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n : [];\r\n methods.setValue(\r\n \"professionalCategory\",\r\n getSelectOptionsElementByCode(\r\n professionalCategoryList,\r\n props.opportunityDetailsData?.opportunityProfessionalCategories[0]\r\n )\r\n );\r\n\r\n props.getFilteredPossibleOpportunityCandidates(filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.opportunitiesState.possibleCandidates_result)) {\r\n setPossibleCandidatesList(props.opportunitiesState.possibleCandidates_result.data);\r\n } else {\r\n setPossibleCandidatesList([]);\r\n }\r\n }, [props.opportunitiesState.possibleCandidates_result]);\r\n\r\n const onSubmitSearch = (data) => {\r\n data = {\r\n ...data,\r\n opportunityId: props.opportunityDetailsData?.id,\r\n };\r\n let filter = getFilteredPossibleOpportunityCandidatesMap(data);\r\n setFilter(filter);\r\n if (page === PAGINATION.FIRST_PAGE) {\r\n props.getFilteredPossibleOpportunityCandidates(filter);\r\n } else {\r\n handleChangePage(undefined, PAGINATION.FIRST_PAGE);\r\n }\r\n };\r\n\r\n const handleChangePage = (event, value) => {\r\n if (page !== value) {\r\n setPage(value);\r\n let temp_filter = { ...filter, pageIndex: value };\r\n setFilter(temp_filter);\r\n props.getFilteredPossibleOpportunityCandidates(temp_filter);\r\n }\r\n };\r\n\r\n const checkIfCandidateInOpportunityList = (userID) => {\r\n if (candidatesListToAddToOpportunity.includes(userID)) {\r\n return true;\r\n }\r\n\r\n return false;\r\n };\r\n\r\n const addCandidateToOpportunityList = (userID) => {\r\n setCandidatesListToAddToOpportunity((prevState) => {\r\n if (checkIfCandidateInOpportunityList(userID)) {\r\n return [...prevState];\r\n }\r\n return [...prevState, userID];\r\n });\r\n };\r\n\r\n const removeCandidateFromOpportunityList = (userID) => {\r\n setCandidatesListToAddToOpportunity((prevState) => {\r\n let elements = prevState.filter((element) => element !== userID);\r\n\r\n return elements;\r\n });\r\n };\r\n\r\n let handleCandidateInOpportunityList = (userID, userState) => {\r\n if (userState) {\r\n addCandidateToOpportunityList(userID);\r\n } else {\r\n removeCandidateFromOpportunityList(userID);\r\n }\r\n };\r\n\r\n const checkIfAllCandidatesChecked = (userIDList) => {\r\n const getListOfStates = userIDList?.map((prop) => {\r\n if (!checkIfCandidateInOpportunityList(prop.userId)) {\r\n return false;\r\n }\r\n return true;\r\n });\r\n\r\n if (getListOfStates.includes(false)) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n const handleAddOpportunityCandidatesList = () => {\r\n const data = {\r\n opportunityId: props.opportunityDetailsData?.id,\r\n usersId: candidatesListToAddToOpportunity,\r\n };\r\n\r\n props.addOpportunityCandidatesList(data, () => {\r\n props.handleClose();\r\n props.onSuccess();\r\n });\r\n };\r\n\r\n return (\r\n
\r\n \r\n Adicionar Candidatos\r\n \r\n
\r\n \r\n \r\n \r\n Nome ou BI\r\n (\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"userNameOrIdentityCard\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Província\r\n \r\n \r\n \r\n \r\n \r\n Município\r\n \r\n \r\n \r\n \r\n \r\n Área Profissional\r\n \r\n \r\n \r\n \r\n \r\n Nível Académico\r\n \r\n \r\n \r\n \r\n \r\n Línguas Estudadas\r\n \r\n \r\n \r\n \r\n \r\n \r\n Apenas cidadãos disponíveis para ofertas de\r\n {props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.EMPREGO && \" emprego\"}\r\n {props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL &&\r\n \" estágio profissional\"}\r\n \r\n \r\n \r\n Não\r\n (\r\n {\r\n onChange(e.target.checked);\r\n }}\r\n color=\"primary\"\r\n />\r\n )}\r\n />\r\n Sim\r\n \r\n \r\n \r\n\r\n \r\n \r\n {\r\n clearFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n\r\n {/* Possible candidates table result */}\r\n {\r\n \r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Lista de\r\n {props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.EMPREGO && \" Emprego\"}\r\n {props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL &&\r\n \" Estágio\"}\r\n \r\n \r\n \r\n \r\n {\r\n possibleCandidatesList?.map((prop) =>\r\n handleCandidateInOpportunityList(prop.userId, e.target.checked)\r\n );\r\n }}\r\n value=\"end\"\r\n control={\r\n 0 && checkIfAllCandidatesChecked(possibleCandidatesList)\r\n }\r\n />\r\n }\r\n label={Seleccionar}\r\n labelPlacement=\"start\"\r\n className={classes.formControlLabelNoMargin}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n\r\n {possibleCandidatesList.length > 0 && (\r\n \r\n {possibleCandidatesList?.map((prop, key) => (\r\n \r\n \r\n \r\n {prop.userName}\r\n \r\n \r\n {prop.userIdentityCard}\r\n {prop.intendedWorkplaceProvince}\r\n {prop.province}\r\n {prop.municipality}\r\n \r\n {prop.professionalCategories?.join(\"; \") ?? \"\"}\r\n \r\n {prop.academicLevel}\r\n \r\n {prop.studiedLanguages?.join(\", \") ?? \"\"}\r\n \r\n {props.opportunityDetailsData?.opportunityTypeKey ===\r\n OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL && (\r\n \r\n {prop.isAvailableForInternshipOpportunities ? \"Sim\" : \"Não\"}\r\n \r\n )}\r\n {props.opportunityDetailsData?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.EMPREGO && (\r\n \r\n {prop.isAvailableForEmploymentOpportunities ? \"Sim\" : \"Não\"}\r\n \r\n )}\r\n \r\n \r\n {\r\n handleCandidateInOpportunityList(prop.userId, e.target.checked);\r\n }}\r\n control={\r\n \r\n }\r\n style={{ margin: 0 }}\r\n />\r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n {!props.opportunitiesState.possibleCandidates_loading && possibleCandidatesList.length === 0 && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n \r\n\r\n \r\n \r\n }\r\n\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Add)}\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getFilteredPossibleOpportunityCandidates: (data) => dispatch(getFilteredPossibleOpportunityCandidatesAction(data)),\r\n addOpportunityCandidatesList: (data, onSuccess) => dispatch(addOpportunityCandidatesListAction(data, onSuccess)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(AddCandidates);\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n cardRootDark: {\r\n backgroundColor: theme.palette.dark.main,\r\n \"& *\": {\r\n color: theme.palette.white.main,\r\n },\r\n \"& $tableCellRoot, & $tableRoot\": {\r\n color: theme.palette.white.main,\r\n borderColor: theme.palette.primary.darkBlue,\r\n },\r\n \"& $tableCellRootHead\": {\r\n color: theme.palette.dark.tableHeadColor,\r\n backgroundColor: theme.palette.dark.tableHeadBgColor,\r\n },\r\n },\r\n cardHeader: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"bold\",\r\n fontSize: \"18px\",\r\n lineHeight: \"25px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.main,\r\n },\r\n cardActionsRoot: {\r\n paddingBottom: \"1.5rem!important\",\r\n paddingTop: \"1.5rem!important\",\r\n borderTop: \"0!important\",\r\n },\r\n width10: {\r\n width: \"10%\",\r\n },\r\n width15: {\r\n width: \"15%\",\r\n },\r\n tableButtons: {\r\n padding: \"6px 4px 6px 4px\",\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"4px\",\r\n borderColor: theme.palette.primary.main,\r\n fontStyle: \"normal\",\r\n fontWeight: 600,\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n\r\n tableButtonsDisable: {\r\n padding: \"6px 4px 6px 4px\",\r\n background: theme.palette.white.main,\r\n boxShadow: \"0px 4px 6px rgb(50 50 93 / 11%), 0px 1px 3px rgb(0 0 0 / 8%)\",\r\n borderRadius: \"4px\",\r\n borderColor: theme.palette.info.grey,\r\n fontStyle: \"normal\",\r\n fontWeight: 600,\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n },\r\n editButtonTwo: {\r\n background: theme.palette.white.main,\r\n boxShadow:\r\n \"0px 4px 6px rgba(50, 50, 93, 0.11), 0px 1px 3px rgba(0, 0, 0, 0.08) !important\",\r\n borderRadius: \"4px\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"12px\",\r\n lineHeight: \"16px\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n letterSpacing: \"0.02em\",\r\n color: theme.palette.primary.main,\r\n width: \"100%\",\r\n border: \"1px solid\",\r\n borderColor: theme.palette.primary.main,\r\n textTransform: \"uppercase\",\r\n marginTop:\"5px\"\r\n },\r\n align: { //Já está no novo ficheiro CSS \"generic\", sob o nome alignPagination\r\n \"& .MuiPagination-ul\": {\r\n justifyContent: \"center\",\r\n },\r\n },\r\n searchTotalBox: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"14px\",\r\n lineHeight: \"19px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n tableRoot: {\r\n marginBottom: \"0!important\",\r\n },\r\n tableCellRoot: {\r\n verticalAlign: \"middle\",\r\n paddingLeft: \"1rem\",\r\n paddingRight: \"1rem\",\r\n borderTop: \"0\",\r\n fontSize: \".75rem\",\r\n padding: \".25rem\",\r\n },\r\n tableCellRootHead: {\r\n backgroundColor: theme.palette.secondary.lightSkyBlue,\r\n color: theme.palette.gray[900],\r\n fontSize: \".7rem !important\",\r\n fontWeight: \"650\",\r\n textTransform: \"none !important\",\r\n },\r\n tableCellRootHeadMultiple: {\r\n backgroundColor: theme.palette.gray[200],\r\n color: theme.palette.gray[600],\r\n fontSize: \".7rem !important\",\r\n fontWeight: \"650\",\r\n textTransform: \"none !important\",\r\n },\r\n tableCellRootBodyHead: {\r\n textTransform: \"unset!important\",\r\n fontSize: \".75rem\",\r\n },\r\n tableCellHeadStickyRight: {\r\n textAlign: \"center\",\r\n position: \"sticky\",\r\n right: 0,\r\n paddingLeft: \"0.5rem\",\r\n paddingRight: \"0.5rem\",\r\n boxShadow: \"inset 2px 0\" + theme.palette.gray[200],\r\n },\r\n tableCellBodyStickyRight: {\r\n position: \"sticky\",\r\n right: 0,\r\n backgroundColor: theme.palette.white.main,\r\n textAlign: \"center\",\r\n boxShadow: \"inset 2px 0\" + theme.palette.gray[200],\r\n },\r\n linearProgressRoot: {\r\n height: \"3px!important\",\r\n width: \"120px!important\",\r\n margin: \"0!important\",\r\n },\r\n bgGradientError: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.error.main +\r\n \", \" + theme.palette.primary.main + \")!important\",\r\n },\r\n bgGradientSuccess: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.success.main +\r\n \", \" + theme.palette.primary.mediumBlue + \" )!important\",\r\n },\r\n bgGradientPrimary: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.primary.main +\r\n \", \" + theme.palette.primary.greyBlue + \")!important\",\r\n },\r\n bgGradientInfo: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.info.main +\r\n \", \" + theme.palette.primary.mediumBlue + \" )!important\",\r\n },\r\n bgGradientWarning: {\r\n background:\r\n \"linear-gradient(87deg,\" +\r\n theme.palette.warning.main +\r\n \",\" + theme.palette.primary.mediumBlue + \")!important\",\r\n },\r\n bgPrimary: {\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n bgPrimaryLight: {\r\n backgroundColor: theme.palette.primary.light,\r\n },\r\n bgError: {\r\n backgroundColor: theme.palette.error.main,\r\n },\r\n bgErrorLight: {\r\n backgroundColor: theme.palette.error.light,\r\n },\r\n bgWarning: {\r\n backgroundColor: theme.palette.warning.main,\r\n },\r\n bgWarningLight: {\r\n backgroundColor: theme.palette.warning.light,\r\n },\r\n bgInfo: {\r\n backgroundColor: theme.palette.info.main,\r\n },\r\n bgInfoLight: {\r\n backgroundColor: theme.palette.info.light,\r\n },\r\n bgSuccess: {\r\n backgroundColor: theme.palette.success.main,\r\n },\r\n verticalAlignMiddle: {\r\n verticalAlign: \"middle\",\r\n },\r\n avatarRoot: {\r\n width: \"35px\",\r\n height: \"35px\",\r\n fontWeight: 600,\r\n fontSize: \"12.25px\",\r\n lineHeight: \"17px\",\r\n alignItems: \"center\",\r\n textAlign: \"center\",\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n rowEllipsis: { //Já está no novo ficheiro CSS, mas com o nome tableRowEllipsis\r\n overflow: \"hidden\",\r\n textOverflow: \"ellipsis\",\r\n maxWidth:\"200px\"\r\n },\r\n bgTransparent: {\r\n backgroundColor: theme.palette.transparent.main,\r\n },\r\n cardHeaderAction: {\r\n marginTop: \"0px !important\",\r\n },\r\n arrowAction: {\r\n color: \"black !important\",\r\n },\r\n cardHeaderCounter: {\r\n fontSize: \"2.625rem !important\",\r\n },\r\n actionsCell: {\r\n textAlign: \"right\",\r\n },\r\n tableActionButtonsRoot: {\r\n fontSize: \".765rem\",\r\n marginRight: \"10px\",\r\n },\r\n noResultsInfo: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"200\",\r\n fontSize: \"20px\",\r\n lineHeight: \"40px\",\r\n alignItems: \"center\",\r\n color: theme.palette.white.main,\r\n marginLeft: \"50px\",\r\n marginBottom: \"20px\",\r\n },\r\n noResultsInfoInTable: {\r\n margin: \"20px\",\r\n },\r\n errorIcon: {\r\n color: theme.palette.error.main,\r\n width: \"20px\",\r\n height: \"20px\",\r\n }, \r\n checkIcon: {\r\n color: theme.palette.info.green,\r\n width: \"20px\",\r\n height: \"20px\",\r\n }, \r\n});\r\n\r\nexport default componentStyles;\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// @material-ui/icons components\r\n//custom components\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport CandidatesListSection from \"../Sections/CandidatesListSection\";\r\nimport AddCandidates from \"../Modals/AddCandidatesModal.js\";\r\nimport { getOpportunityUsersAction } from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { PAGINATION, DATASET, OPPORTUNITY_STATE_KEY } from \"utils/consts\";\r\n\r\nimport componentStyles from \"assets/theme/views/admin/generic-page-table-result.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction OpportunityCandidatesTab(props) {\r\n const classes = { ...useStylesGeneric(), ...useStyles() };\r\n const [page, setPage] = useState(1);\r\n const [showAddCandidatesModal, setShowAddCandidatesModal] = useState(false);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n useEffect(() => {\r\n if (!props.dataSetState[DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES])\r\n props.getDataSetByName(DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES);\r\n\r\n if (!props.dataSetState[DATASET.PROVINCES]) props.getDataSetByName(DATASET.PROVINCES);\r\n\r\n if (!props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]) props.getDataSetByName(DATASET.PROFESSIONAL_CATEGORY);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n refreshResults();\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page]);\r\n\r\n const refreshResults = () => {\r\n let filter = {\r\n opportunityId: props.opportunityId,\r\n pageIndex: page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n };\r\n props.getOpportunityUsers(filter);\r\n };\r\n\r\n const handleOpenAddCandidatesModal = () => {\r\n setShowAddCandidatesModal(true);\r\n };\r\n\r\n const handleCloseAddCandidatesModal = () => {\r\n setShowAddCandidatesModal(false);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n
Candidatos
\r\n
\r\n {\"(\"}\r\n {props.opportunitiesState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n action={\r\n props.opportunitiesState.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.APROVADA && (\r\n \r\n \r\n Adicionar Candidatos\r\n \r\n \r\n )\r\n }\r\n />\r\n\r\n \r\n\r\n \r\n
\r\n\r\n {/* Add Candidates Modal */}\r\n \r\n \r\n \r\n
\r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getOpportunityUsers: (formData) => dispatch(getOpportunityUsersAction(formData)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityCandidatesTab);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Alert from \"@material-ui/lab/Alert\";\r\n//import custom components\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport DetailDataTab from \"./Tabs/OpportunityDetailsTab\";\r\nimport CandidatesTab from \"../OpportunityCandidates/Tabs/OpportunityCandidatesTab\";\r\nimport { getOpportunitiesDetailsAction } from \"redux/actions/opportunitiesAction\";\r\nimport { OPPORTUNITY_STATE_KEY } from \"utils/consts\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport { alerts } from \"resources/resources\";\r\nimport Tabs from \"components/Tabs/Tabs\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityDetails(props) {\r\n const classes = useStylesGeneric();\r\n const scrollDirection = useScrollDirection();\r\n const intl = useIntl();\r\n\r\n const TABS = {\r\n DETAILS_DATA: \"detailDataTab\",\r\n CANDIDATES: \"candidatesTab\",\r\n };\r\n\r\n const [tabStep, setTabStep] = useState(TABS.DETAILS_DATA);\r\n\r\n useEffect(() => {\r\n if (\r\n props.opportunitiesState.opportunityDetailsData === undefined ||\r\n props.opportunitiesState.opportunityDetailsData.opportunityId !== props.match.params.opportunityId\r\n ) {\r\n props.getOpportunityDetails(props.match.params.opportunityId);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.opportunityId]);\r\n\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n };\r\n\r\n function loadTabContent() {\r\n switch (tabStep) {\r\n case TABS.DETAILS_DATA:\r\n return (\r\n \r\n );\r\n case TABS.CANDIDATES:\r\n return (\r\n \r\n );\r\n default:\r\n return (\r\n \r\n );\r\n }\r\n }\r\n return (\r\n <>\r\n \r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n {props.opportunitiesState.opportunityDetailsData?.opportunityStateKey === OPPORTUNITY_STATE_KEY.APROVADA && (\r\n \r\n {moment().isAfter(moment(props.opportunitiesState?.opportunityDetailsData?.validTo).add(1, \"days\")) && (\r\n \r\n {intl.formatMessage(alerts.Alert_Cannot_Add_Candidates_To_Opportunity_Because_Passed_ValidTo_Date)}\r\n \r\n )}\r\n\r\n {moment().isBefore(\r\n moment(props.opportunitiesState?.opportunityDetailsData?.validFrom).add(1, \"days\")\r\n ) && (\r\n \r\n {intl.formatMessage(alerts.Alert_Cannot_Add_Candidates_To_Opportunity_Because_Before_ValidFrom_Date)}\r\n \r\n )}\r\n \r\n )}\r\n \r\n\r\n \r\n 0),\r\n testId: \"opportunity-detail-candidates-tab\",\r\n text: \"Candidatos\",\r\n },\r\n ]}\r\n onChange={handleTabStep}\r\n step={tabStep}\r\n />\r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getOpportunityDetails: (opportunityId) => dispatch(getOpportunitiesDetailsAction(opportunityId)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityDetails);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\n// @material-ui/icons components\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n//import custom components\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { OPPORTUNITY_CANDIDATE_STATE_KEY, TABLE_STATE_CHIP_COLOR, DATASET } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CandidateGeneralDetails(props) {\r\n const classes = useStylesGeneric();\r\n const [data, setData] = useState();\r\n\r\n useEffect(() => {\r\n if (props.opportunitiesState?.candidateInfo !== null && props.opportunitiesState?.candidateInfo !== undefined) {\r\n setData(props.opportunitiesState.candidateInfo);\r\n } else {\r\n setData([]);\r\n }\r\n }, [props.opportunitiesState?.candidateInfo]);\r\n\r\n //#region DataSets Setup\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.GENDER] === undefined || props.dataSetState[DATASET.GENDER] === []) {\r\n props.getDataSetByName(DATASET.GENDER);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.GENDER]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.MARITAL_STATUS] === undefined || props.dataSetState[DATASET.MARITAL_STATUS] === []) {\r\n props.getDataSetByName(DATASET.MARITAL_STATUS);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MARITAL_STATUS]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.NATIONALITIES] === undefined || props.dataSetState[DATASET.NATIONALITIES] === []) {\r\n props.getDataSetByName(DATASET.NATIONALITIES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.NATIONALITIES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSetByName(DATASET.PROVINCES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.MUNICIPALITIES] === undefined || props.dataSetState[DATASET.MUNICIPALITIES] === []) {\r\n props.getDataSetByName(DATASET.MUNICIPALITIES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.MUNICIPALITIES]]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.ACADEMIC_DEGREE] === undefined ||\r\n props.dataSetState[DATASET.ACADEMIC_DEGREE] === []\r\n ) {\r\n props.getDataSetByName(DATASET.ACADEMIC_DEGREE);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ACADEMIC_DEGREE]]);\r\n\r\n //#endregion\r\n\r\n const mapOpportunityCandidateStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.APROVADA:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.REJEITADA:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.EMRECRUTAMENTO:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n r.code === data?.userSingular?.genderId)?.label\r\n : \"\"\r\n }\r\n />\r\n\r\n {/* New Line md */}\r\n r.code === data?.userSingular?.maritalStatusId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n r.code === data?.userSingular?.nationalityId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n r.code === data?.userSingular?.compositeAddress?.provinceId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n r.code === data?.userSingular?.compositeAddress?.municipalityId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n \r\n \r\n \r\n NISS\r\n \r\n \r\n \r\n \r\n }\r\n data={data?.userSingular?.NISS}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, addEmptyField) => dispatch(getDataSetByNameAction(name, addEmptyField)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CandidateGeneralDetails);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport { getMultipleSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { getListAsStringLabels } from \"utils/formSelectMultiple\";\r\nimport { getUserDocumentAction } from \"redux/actions/usersAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { DATASET } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CandidateProfessionalDetails(props) {\r\n const classes = useStylesGeneric();\r\n const [data, setData] = useState();\r\n\r\n useEffect(() => {\r\n if (props.opportunitiesState?.candidateInfo !== null && props.opportunitiesState?.candidateInfo !== undefined) {\r\n setData(props.opportunitiesState.candidateInfo);\r\n } else {\r\n setData([]);\r\n }\r\n }, [props.opportunitiesState?.candidateInfo]);\r\n\r\n //#region DataSets Setup\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.ACADEMIC_DEGREE] === undefined ||\r\n props.dataSetState[DATASET.ACADEMIC_DEGREE] === []\r\n ) {\r\n props.getDataSetByName(DATASET.ACADEMIC_DEGREE);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ACADEMIC_DEGREE]]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.PROFESSIONAL_CATEGORY] === undefined ||\r\n props.dataSetState[DATASET.PROFESSIONAL_CATEGORY] === []\r\n ) {\r\n props.getDataSetByName(DATASET.PROFESSIONAL_CATEGORY);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.PROFESSIONAL_TRAINNING] === undefined ||\r\n props.dataSetState[DATASET.PROFESSIONAL_TRAINNING] === []\r\n ) {\r\n props.getDataSetByName(DATASET.PROFESSIONAL_TRAINNING);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROFESSIONAL_TRAINNING]]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.ENTREPRENEURSHIP_TRAINNING] === undefined ||\r\n props.dataSetState[DATASET.ENTREPRENEURSHIP_TRAINNING] === []\r\n ) {\r\n props.getDataSetByName(DATASET.ENTREPRENEURSHIP_TRAINNING);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ENTREPRENEURSHIP_TRAINNING]]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.SMALL_BUSINESS_MGMT_TRAINNING] === undefined ||\r\n props.dataSetState[DATASET.SMALL_BUSINESS_MGMT_TRAINNING] === []\r\n ) {\r\n props.getDataSetByName(DATASET.SMALL_BUSINESS_MGMT_TRAINNING);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.SMALL_BUSINESS_MGMT_TRAINNING]]);\r\n\r\n useEffect(() => {\r\n if (props.dataSetState[DATASET.ACADEMIC_LEVEL] === undefined || props.dataSetState[DATASET.ACADEMIC_LEVEL] === []) {\r\n props.getDataSetByName(DATASET.ACADEMIC_LEVEL);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.ACADEMIC_LEVEL]]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY] === undefined ||\r\n props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY] === []\r\n ) {\r\n props.getDataSetByName(DATASET.TECHNICAL_CAPABIBILITY);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY]]);\r\n //#endregion\r\n\r\n function getProfessionalExperience() {\r\n if (data?.userSingular?.professionalExperienceList !== null && data?.userSingular?.professionalExperienceList) {\r\n let list = getMultipleSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.TECHNICAL_CAPABIBILITY],\r\n data?.userSingular?.professionalExperienceList\r\n );\r\n let result = getListAsStringLabels(list, \"; \");\r\n return result;\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n r.code === data?.userSingular?.academicLevelId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n r.code === data?.userSingular?.degreeId)\r\n ?.label\r\n : \"\"\r\n }\r\n />\r\n r.code === data?.userSingular?.professionalCategoryId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n r.code === data?.userSingular?.professionalTrainingId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n r.code === data?.userSingular?.entrepreneurshipTrainingId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n\r\n {/* New Line md */}\r\n r.code === data?.userSingular?.smallBusinessMgmtTrainingId\r\n )?.label\r\n : \"\"\r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, addEmptyField) => dispatch(getDataSetByNameAction(name, addEmptyField)),\r\n getUserDocument: (docId, docName) => dispatch(getUserDocumentAction(docId, docName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CandidateProfessionalDetails);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport \"moment/locale/pt\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport Container from \"@material-ui/core/Container\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport SubmitedDocumentsSection from \"components/FormFields/SubmitedDocumentsSection\";\r\nimport { getUserDocumentAction } from \"redux/actions/usersAction\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction DocumentsSection(props) {\r\n const classes = useStylesGeneric();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {props?.documents?.length > 0 ? (\r\n props?.documents?.map((doc, key) => (\r\n \r\n \r\n {doc.documentType}\r\n \r\n \r\n \r\n ))\r\n ) : (\r\n \r\n Sem dados para apresentar\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getUserDocument: (docId, docName) => dispatch(getUserDocumentAction(docId, docName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(DocumentsSection);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\n//import custom components\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CandidateAnswers(props) {\r\n const classes = useStylesGeneric();\r\n const [data, setData] = useState();\r\n\r\n useEffect(() => {\r\n if (props.opportunitiesState?.candidateInfo !== null && props.opportunitiesState?.candidateInfo !== undefined) {\r\n setData(props.opportunitiesState.candidateInfo);\r\n } else {\r\n setData([]);\r\n }\r\n }, [props.opportunitiesState?.candidateInfo]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {data?.opportunityCandidateAnswers?.map((prop, key) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CandidateAnswers);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useFormContext } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\n// @material-ui/icons components\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\n//import custom components\r\nimport FormInput from \"components/FormFields/FormInput\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CandidateRejectedMotive(props) {\r\n const classes = useStylesGeneric();\r\n const methods = useFormContext();\r\n\r\n const [expanded, setExpanded] = useState(false);\r\n\r\n useEffect(() => {\r\n if (props.opportunitiesState?.candidateInfo) {\r\n methods.setValue(\r\n \"stateMotive\",\r\n props.opportunitiesState?.candidateInfo.opportunityCandidateHistory?.rejectionMotive\r\n );\r\n methods.setValue(\r\n \"observations\",\r\n props.opportunitiesState?.candidateInfo.opportunityCandidateHistory?.observations\r\n );\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.opportunitiesState?.candidateInfo]);\r\n\r\n const handleExpandClick = () => {\r\n setExpanded(!expanded);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n }\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CandidateRejectedMotive);\r\n","import { React, useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport _ from \"lodash\";\r\n//import custom components\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport CandidateGeneralDetails from \"./Sections/CandidateGeneralDetails\";\r\nimport CandidateProfessionalDetails from \"./Sections/CandidateProfessionalDetails\";\r\nimport DocumentsSection from \"./Sections/DocumentsSection\";\r\nimport CandidateAnswers from \"./Sections/CandidateAnswers\";\r\nimport CandidateRejectedMotive from \"./Sections/CandidateRejectedMotive\";\r\nimport ApproveDialog from \"components/Dialogs/ApproveDialog\";\r\nimport RejectDialog from \"components/Dialogs/RejectDialog\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport {\r\n getCandidateInformationAction,\r\n approveOpportunityCandidateAction,\r\n rejectOpportunityCandidateAction,\r\n} from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { OPPORTUNITY_TYPE_KEY, DATASET } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CandidateDetails(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const scrollDirection = useScrollDirection();\r\n const [candidateInfo, setCandidateInfo] = useState();\r\n const [candidateId, setCandidateId] = useState();\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n //Dialogs Logic\r\n const DIALOG = { SHOW: true, HIDE: false };\r\n const [dialogs, setDialogs] = useState({\r\n approveModal: false,\r\n rejectModal: false,\r\n updateModal: false,\r\n });\r\n\r\n useEffect(() => {\r\n props.getCandidateInformation(props.match.params.alternateKey);\r\n if (props.opportunitiesState.candidateInfo !== null) {\r\n setCandidateInfo(props.opportunitiesState.candidateInfo);\r\n setCandidateId(props.match.params.alternateKey);\r\n }\r\n if (props.opportunitiesState.candidateInfo == null) {\r\n setCandidateInfo([]);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match.params.alternateKey]);\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES] === undefined ||\r\n props.dataSetState[DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES]?.length === 0\r\n ) {\r\n props.getDataSetByName(DATASET.OPPORTUNITY_CANDIDATE_REJECT_MOTIVES);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const showHideDialog = (dialog, op) => {\r\n let dialogs_temp = _.mapValues(dialogs, () => false);\r\n\r\n dialogs_temp[dialog] = op;\r\n\r\n setDialogs(dialogs_temp);\r\n };\r\n\r\n function handleApproveModal() {\r\n showHideDialog(\"approveModal\", DIALOG.SHOW);\r\n }\r\n\r\n function handleRejectModal() {\r\n showHideDialog(\"rejectModal\", DIALOG.SHOW);\r\n }\r\n\r\n const onSubmitApproveDialog = () => {\r\n const approveFilter = {\r\n candidateId: candidateId,\r\n opportunityId: props?.opportunitiesState?.candidateInfo?.opportunityId,\r\n };\r\n\r\n props.approveOpportunityCandidate(approveFilter, props.opportunitiesState.isOpportunityApplication);\r\n };\r\n\r\n const onSubmitRejectDialog = (rejectMotiveId, rejectMotiveObservations) => {\r\n let filter = {\r\n candidateId,\r\n opportunityId: props.opportunitiesState?.candidateInfo?.opportunityId,\r\n rejectMotiveId,\r\n rejectMotiveObservations,\r\n };\r\n\r\n props.rejectOpportunityCandidate(filter, props.opportunitiesState.isOpportunityApplication);\r\n };\r\n\r\n const getTabTitle = () => {\r\n if (props.opportunitiesState?.candidateInfo?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.EMPREGO)\r\n return \"Candidato a oferta de Emprego\";\r\n if (props.opportunitiesState?.candidateInfo?.opportunityTypeKey === OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL)\r\n return \"Candidato a Estágio Profissional\";\r\n return \"\";\r\n };\r\n\r\n return (\r\n \r\n \r\n\r\n {scrollDirection === \"up\" && (\r\n
\r\n {props.opportunitiesState.isOpportunityApplication ? (\r\n \r\n ) : (\r\n \r\n )}\r\n
\r\n )}\r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n {props.opportunitiesState?.candidateInfo?.opportunityCandidateAnswers?.length > 0 && (\r\n \r\n )}\r\n\r\n {props.opportunitiesState?.candidateInfo?.opportunityCandidateStateId === 3 && (\r\n \r\n )}\r\n\r\n \r\n {props.opportunitiesState?.candidateInfo?.opportunityCandidateStateId === 1 && (\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Reject_Submit)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Recruit_Submit)}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n\r\n showHideDialog(\"approveModal\", DIALOG.HIDE)}\r\n />\r\n\r\n showHideDialog(\"rejectModal\", DIALOG.HIDE)}\r\n />\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getCandidateInformation: (userId) => dispatch(getCandidateInformationAction(userId)),\r\n approveOpportunityCandidate: (formData, isOpportunityApplication) =>\r\n dispatch(approveOpportunityCandidateAction(formData, isOpportunityApplication)),\r\n rejectOpportunityCandidate: (formData, isOpportunityApplication) =>\r\n dispatch(rejectOpportunityCandidateAction(formData, isOpportunityApplication)),\r\n getDataSetByName: (name, addEmptyField) => dispatch(getDataSetByNameAction(name, addEmptyField)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(CandidateDetails);\r\n","import React from \"react\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport Button from \"@material-ui/core/Button\";\r\nimport componentStyles from \"assets/theme/views/admin/generic-page-detail.js\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction CounterDisplayField(props) {\r\n const classes = { ...useStyles(), ...useStylesGeneric() };\r\n\r\n return (\r\n \r\n {props.isButton ? (\r\n \r\n ):(\r\n
\r\n \r\n \r\n {props.data ? props.data : 0}\r\n \r\n \r\n {props.label}\r\n \r\n \r\n
\r\n )}\r\n
\r\n ); \r\n}\r\n\r\nexport default CounterDisplayField;\r\n","const componentStyles = (theme) => ({\r\n avatarRoot: {\r\n width: \"150px\",\r\n height: \"150px\",\r\n fontSize: \"4.3rem\",\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n },\r\n userMainDetailsBox: {\r\n color: theme.palette.white.main,\r\n },\r\n userMainDetailsBoxLeft: {\r\n float: \"left\",\r\n width: \"186px\",\r\n paddingBottom: \"28px\",\r\n },\r\n userNameDiv: {\r\n fontSize: \"25px\",\r\n fontWeight: \"bold\",\r\n alignItems: \"center\",\r\n },\r\n mainDetailsDiv: {\r\n marginTop: \"5px\",\r\n lineHeight: \"20px\",\r\n alignItems: \"center\",\r\n height: \"21px\"\r\n },\r\n warningIcon: {\r\n width: \"30px\",\r\n height: \"30px\",\r\n marginRight: \"5px\",\r\n marginBottom: \"5px\",\r\n color: theme.palette.error.main + \"!important\",\r\n },\r\n checkIcon: {\r\n width: \"30px\",\r\n height: \"30px\",\r\n marginRight: \"5px\",\r\n marginBottom: \"5px\",\r\n color: theme.palette.success.main + \"!important\"\r\n },\r\n starIcon: {\r\n width: \"30px\",\r\n height: \"30px\",\r\n marginRight: \"5px\",\r\n marginBottom: \"5px\",\r\n color: theme.palette.tableStateChip.lightOrange + \"!important\"\r\n },\r\n ellipsis: {\r\n overflow: \"hidden\",\r\n textOverflow: \"ellipsis\",\r\n whiteSpace: \"nowrap\"\r\n },\r\n backgroundImage: {\r\n height: \"198px\", \r\n width: \"100%\", \r\n objectFit: \"cover\",\r\n position: \"absolute\"\r\n }\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport WarningIcon from \"@material-ui/icons/Warning\";\r\nimport CheckCircleIcon from \"@material-ui/icons/CheckCircle\";\r\nimport StarIcon from \"@material-ui/icons/Star\";\r\n\r\nimport CounterDisplayField from \"components/Fields/CounterDisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport componentStylescomponentStylesUserOverview from \"assets/theme//views/admin/user-overview\";\r\nimport { labels } from \"resources/resources\";\r\nimport { getNameInitials } from \"utils/converters\";\r\nimport { b64toBlob, getFirstAndLastName } from \"utils/converters\";\r\nimport useWindowSize from \"hooks/useWindowSize\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst useStylescomponentStylesUserOverview = makeStyles(componentStylescomponentStylesUserOverview);\r\n\r\nfunction OverviewSection(props) {\r\n const classes = { ...useStylesGeneric(), ...useStylescomponentStylesUserOverview() };\r\n const intl = useIntl();\r\n const windowSize = useWindowSize();\r\n\r\n return (\r\n <>\r\n
\r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n {props?.userOverview?.photo ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(props?.userOverview?.userSingularGeneralDataOverview?.fullName)}\r\n \r\n )}\r\n \r\n\r\n \r\n
\r\n {getFirstAndLastName(props?.userOverview?.userSingularGeneralDataOverview?.fullName)}\r\n
\r\n \r\n {props?.userOverview?.userSingularProfessionalDataOverview?.professionalExperienceDescriptions\r\n ?.length > 0\r\n ? props?.userOverview?.userSingularProfessionalDataOverview?.professionalExperienceDescriptions?.join(\r\n \", \"\r\n )\r\n : intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_NoProfessionalData)}\r\n \r\n {props?.userOverview?.userSingularGeneralDataOverview?.age && (\r\n
\r\n {props?.userOverview?.userSingularGeneralDataOverview?.age} {intl.formatMessage(labels.Label_Years)}\r\n
\r\n )}\r\n
\r\n {props?.userOverview?.userSingularGeneralDataOverview?.municipalityDescription\r\n ? props?.userOverview?.userSingularGeneralDataOverview?.municipalityDescription +\r\n \", \" +\r\n props?.userOverview?.userSingularGeneralDataOverview?.provinceDescription\r\n : props?.userOverview?.userSingularGeneralDataOverview?.provinceDescription ??\r\n intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_NoProvinceData)}\r\n
\r\n
\r\n {props?.userOverview?.accountCreationDate && props?.userOverview?.accountCreationDate !== \"N/A\"\r\n ? intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_JoinedOn) +\r\n \" \" +\r\n props?.userOverview?.accountCreationDate\r\n : intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_NoJoinedOnData)}\r\n
\r\n
\r\n
\r\n
\r\n\r\n {windowSize.width > 900 && (\r\n <>\r\n \r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithMissingPayments\r\n )}\r\n
\r\n \r\n ) : (\r\n
\r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithoutMissingPayments\r\n )}\r\n
\r\n
\r\n )\r\n }\r\n data={\r\n <>\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditIsMissingPayments ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditAmountToBePaid} Kz\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n highlighted={true}\r\n isButton={true}\r\n />\r\n \r\n \r\n {props?.userOverview?.userSingularGeneralDataOverview?.opportunityFollowUpOverallEvaluation}/5\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n highlighted={true}\r\n isButton={true}\r\n />\r\n \r\n )}\r\n
\r\n \r\n {windowSize.width <= 900 && (\r\n <>\r\n \r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithMissingPayments\r\n )}\r\n
\r\n \r\n ) : (\r\n
\r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithoutMissingPayments\r\n )}\r\n
\r\n
\r\n )\r\n }\r\n data={\r\n <>\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditIsMissingPayments ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditAmountToBePaid} Kz\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n \r\n \r\n {props?.userOverview?.userSingularGeneralDataOverview?.opportunityFollowUpOverallEvaluation}/5\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n \r\n )}\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true, \"governmentProgramsTab\");\r\n }}\r\n testId={\"governmentProgramApplications\"}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true, \"internshipTab\");\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"traingAndProfessionTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"traingAndProfessionTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true, \"finished\");\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(OverviewSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { titles, labels, tooltips } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanySocialSecurityNumber\r\n )}\r\n \r\n \r\n \r\n \r\n }\r\n data={props?.userGeneralDataOverview?.niss}\r\n id=\"niss\"\r\n />\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(GeneralDataSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ContactsSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {!props.isUserColective && (\r\n \r\n )}\r\n \r\n\r\n {props.isUserColective && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n ); \r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ContactsSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport OverviewSection from \"views/admin/UserOverview/UserSingular/Sections/OverviewSection\";\r\nimport GeneralDataSection from \"views/admin/UserOverview/UserSingular/Sections/GeneralDataSection\";\r\nimport ContactsSection from \"views/admin/UserOverview/Components/Sections/ContactsSection\";\r\n\r\nfunction GeneralDataTab(props) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(GeneralDataTab);","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ProfessionalDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 6 ? 12 : 6}\r\n md={props?.userProfessionalDataOverview?.professionalExperienceDescriptions?.length > 6 ? 12 : 3}\r\n label={intl.formatMessage(labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_Profession)}\r\n data={props?.userProfessionalDataOverview?.professionalExperienceDescriptions?.join(\", \")}\r\n />\r\n \r\n 6 ? 12 : 6}\r\n md={props?.userProfessionalDataOverview?.secondaryProfessionalExperienceDescriptions?.length > 6 ? 12 : 3}\r\n label={intl.formatMessage(\r\n labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_SecondaryProfessionalExperience\r\n )}\r\n data={props?.userProfessionalDataOverview?.secondaryProfessionalExperienceDescriptions?.join(\", \")}\r\n />\r\n \r\n 6 ? 12 : 6}\r\n md={props?.userProfessionalDataOverview?.studiedLanguagesDescriptions?.length > 6 ? 12 : 3}\r\n label={intl.formatMessage(\r\n labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_StudiedLanguages\r\n )}\r\n data={props?.userProfessionalDataOverview?.studiedLanguagesDescriptions?.join(\", \")}\r\n />\r\n \r\n {props?.userProfessionalDataOverview?.hasProfessionalWallet && (\r\n <>\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ProfessionalDataSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { titles } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction TrainingSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {props?.userProfessionalDataOverview?.userTrainingCourses?.length > 0 ? (\r\n props?.userProfessionalDataOverview?.userTrainingCourses?.map((course, key) => (\r\n \r\n ))\r\n ): (\r\n \r\n Sem dados para apresentar\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n ); \r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(TrainingSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { titles } from \"resources/resources\";\r\nimport SubmitedDocumentsSection from \"components/FormFields/SubmitedDocumentsSection\";\r\nimport { getUserDocumentAction } from \"redux/actions/usersAction\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction DocumentsSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n const getDocumentTypeName = (userDocumentId, documentTypesList) => {\r\n const doc = documentTypesList?.find((d) => d.documentTypeId === userDocumentId);\r\n if (doc)\r\n return doc.documentName;\r\n return undefined;\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {props?.userDocuments?.length > 0 ? (\r\n props?.userDocuments?.map((userDocument, key) => (\r\n \r\n \r\n \r\n {getDocumentTypeName(userDocument.documentTypeId, props.userTypeDocuments)}\r\n \r\n \r\n \r\n \r\n ))\r\n ): (\r\n \r\n Sem dados para apresentar\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n ); \r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getUserDocument: (docId, docName) => dispatch(getUserDocumentAction(docId, docName))\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(DocumentsSection);\r\n","const useScrollTo = (ref) => {\r\n window.scrollTo({\r\n top: ref?.current?.offsetTop - 170, //default: top of the page\r\n behavior: 'smooth',\r\n });\r\n};\r\n\r\nexport default useScrollTo;","import React, {useEffect} from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport ProfessionalDataSection from \"views/admin/UserOverview/UserSingular/Sections/ProfessionalDataSection\";\r\nimport TrainingSection from \"views/admin/UserOverview/UserSingular/Sections/TrainingSection\";\r\nimport DocumentsSection from \"views/admin/UserOverview/Components/Sections/DocumentsSection\";\r\nimport useScrollTo from \"hooks/useScrollTo\";\r\n\r\nfunction TrainingAndProfessionTab(props) {\r\n const scrollTo = useScrollTo;\r\n\r\n useEffect(() => {\r\n if(props.goToTopOfPage){\r\n scrollTo()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(TrainingAndProfessionTab);","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardActions from \"@material-ui/core/CardActions\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport limitaString from \"utils/string\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport Rating from '@material-ui/lab/Rating';\r\n\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport {\r\n OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY,\r\n FOLLOWUP_STATE_ID_QUERY,\r\n TABLE_STATE_CHIP_COLOR,\r\n PAGINATION,\r\n} from \"utils/consts\";\r\nimport { getAllOpportunityApplicationsFollowUpAction } from \"redux/actions/opportunitiesAction\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction MyOpportunityApplicationsFollowUpsTab(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_ApplicationCode),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_Company),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OpportunityType),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_State),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OverallEvaluation)\r\n ];\r\n\r\n const mapOpportunityFollowUpStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.PORINICIAR:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.TERMINADO:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let filterData = {\r\n candidateFollowUpStateId : props.followUpState,\r\n pageIndex: page <= 0 ? 1 : page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n userId: props?.usersState?.getFOUserOverview_result?.id\r\n };\r\n\r\n props.getAllOpportunityApplicationsFollowUp(filterData);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page, props.followUpState]);\r\n\r\n useEffect(() => {\r\n handleChangePage(undefined, PAGINATION.FIRST_PAGE);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.followUpState]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(titles.Title_UserOverview_ApplicationsTab_FollowUpsSection)} {\" \"}\r\n {props.followUpState === FOLLOWUP_STATE_ID_QUERY.ONGOING && intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OnGoing)}{\" \"}\r\n {props.followUpState === FOLLOWUP_STATE_ID_QUERY.FINISHED && intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_Finished)}\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(labels.Label_Total)}: {props.opportunitiesState?.opportunityApplicationsFollowUp_total_records}\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n {intl.formatMessage(labels.Label_Details)}\r\n \r\n \r\n \r\n \r\n {props.opportunitiesState.opportunityApplicationsFollowUp_result?.data?.map((prop, key) => (\r\n \r\n \r\n {prop.candidateCode}\r\n \r\n \r\n NIF: {prop.companyTaxIdNumber}\r\n {limitaString(prop.companyName, 60)}\r\n \r\n \r\n {prop.opportunityTypeDescription}\r\n {limitaString(prop.opportunityTitle, 60)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getAllOpportunityApplicationsFollowUp: (data) => dispatch(getAllOpportunityApplicationsFollowUpAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(MyOpportunityApplicationsFollowUpsTab);\r\n","import React, { useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport ToggleButton from \"@material-ui/lab/ToggleButton\";\r\nimport ToggleButtonGroup from \"@material-ui/lab/ToggleButtonGroup\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nimport { FOLLOWUP_STATE_ID_QUERY } from \"utils/consts.js\";\r\n\r\nimport OpportunityApplicationsFollowUpsTab from \"views/admin/UserOverview/UserSingular/Tabs/FollowUpsTabs/OpportunityApplicationsFollowUpsTab\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FollowUpsListSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [tabStep, setTabStep] = useState(props.selectedTab === 'finished' ? props.selectedTab : \"ongoing\");\r\n\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n };\r\n\r\n function loadTabContent() {\r\n switch (tabStep) {\r\n case \"finished\":\r\n return ;\r\n case \"ongoing\":\r\n default:\r\n return ;\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OnGoing)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_Finished)}\r\n \r\n \r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(FollowUpsListSection);\r\n","import React, {useEffect, useState} from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardActions from \"@material-ui/core/CardActions\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { \r\n TABLE_STATE_CHIP_COLOR, \r\n PAGINATION,\r\n APPLICATION_STATES_CANCELED,\r\n APPLICATION_STATES_IN_PROGRESS,\r\n APPLICATION_STATES_APPROVED,\r\n} from \"utils/consts\";\r\nimport { getUserApplicationsAction } from \"redux/actions/applicationsAction\";\r\nimport { titles, labels } from \"resources/resources\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GovernmentProgramsTab(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgram),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_Program),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_Subprogram),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationCode),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationState),\r\n ];\r\n\r\n const mapRecentApplicationsDashboardChipColors = (stateKey) => {\r\n if (APPLICATION_STATES_APPROVED.includes(stateKey)) {\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n }\r\n if (APPLICATION_STATES_CANCELED.includes(stateKey)) {\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n }\r\n if (APPLICATION_STATES_IN_PROGRESS.includes(stateKey)) {\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const filter = {\r\n pageIndex: page <= 0 ? 1 : page, \r\n pageSize: PAGINATION.PAGE_SIZE,\r\n userId: props?.usersState?.getFOUserOverview_result?.id\r\n }\r\n \r\n props.getUserApplications(filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(titles.Title_UserOverview_ApplicationsTab_GovernmentProgramsApplicationsSection)}\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(labels.Label_Total)}: {props?.applicationsState?.getUserApplications_result?.totalCount}\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n {intl.formatMessage(labels.Label_Details)}\r\n \r\n \r\n \r\n \r\n {props?.applicationsState?.getUserApplications_result?.data?.map((prop, key) => (\r\n \r\n \r\n \r\n {prop?.governmentProgramName}\r\n \r\n \r\n \r\n \r\n {prop?.programName}\r\n \r\n \r\n \r\n \r\n {prop?.subProgramName}\r\n \r\n \r\n \r\n \r\n {prop?.applicationCode}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getUserApplications: (data) => dispatch(getUserApplicationsAction(data))\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(GovernmentProgramsTab);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardActions from \"@material-ui/core/CardActions\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport limitaString from \"utils/string\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { OPPORTUNITY_CANDIDATE_STATE_KEY, OPPORTUNITY_TYPE_ID, TABLE_STATE_CHIP_COLOR, PAGINATION } from \"utils/consts\";\r\nimport { getAllOpportunityApplicationsAction } from \"redux/actions/opportunitiesAction\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsTab(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationCode),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_Company),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_OpportunityType),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_CreationDate),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationState),\r\n ];\r\n\r\n const mapOpportunityCandidateStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.APROVADA:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.REJEITADA:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.EMRECRUTAMENTO:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let filterData = {\r\n opportunityTypeId: props.opportunityTypeId,\r\n pageIndex: page <= 0 ? 1 : page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n userId: props?.usersState?.getFOUserOverview_result?.id,\r\n };\r\n\r\n props.getAllOpportunityApplications(filterData);\r\n\r\n if (props.refreshPages) {\r\n props.handleRefreshPages(false);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page, props.opportunityTypeId, props.refreshPages]);\r\n\r\n useEffect(() => {\r\n handleChangePage(undefined, PAGINATION.FIRST_PAGE);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.opportunityTypeId]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(titles.Title_UserOverview_ApplicationsTab_EmploymentAndInternshipApplicationsSection)}{\" \"}\r\n {props.opportunityTypeId === OPPORTUNITY_TYPE_ID.ESTAGIO_PROFISSIONAL &&\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_InternshipsTab)}\r\n {props.opportunityTypeId === OPPORTUNITY_TYPE_ID.EMPREGO &&\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_EmploymentTab)}\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(labels.Label_Total)}:{\" \"}\r\n {props.opportunitiesState?.opportunityApplications_total_records}\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n {intl.formatMessage(labels.Label_Details)}\r\n \r\n \r\n \r\n \r\n {props?.opportunitiesState?.opportunityApplications_result?.data?.map((prop, key) => (\r\n \r\n \r\n {prop.candidateCode}\r\n \r\n \r\n NIF: {prop.companyTaxIdNumber}\r\n {limitaString(prop.companyName, 60)}\r\n \r\n \r\n {prop.opportunityTypeDescription}\r\n {limitaString(prop.opportunityTitle, 60)}\r\n \r\n \r\n {prop.creationDate}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getAllOpportunityApplications: (data) => dispatch(getAllOpportunityApplicationsAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityApplicationsTab);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\r\nimport Checkbox from \"@material-ui/core/Checkbox\";\r\nimport Link from \"@material-ui/core/Link\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n// src components\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport FormMultipleSelect from \"components/FormFields/FormMultipleSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport {\r\n getFilteredAvailableOpportunitiesForUserAction,\r\n createApplicationsForUserAction,\r\n} from \"redux/actions/opportunitiesAction\";\r\nimport { getDataSetByNameAction } from \"redux/actions/datasetsAction\";\r\nimport { getFilteredAvailableOpportunitiesForUserMap } from \"mappers/opportunityMap\";\r\nimport { PAGINATION, DATASET, OPPORTUNITY_TYPE_KEY } from \"utils/consts\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { getSelectOptionsElementByKey } from \"utils/formSelect\";\r\nimport { labels } from \"resources/resources\";\r\nimport limitaString from \"utils/string\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { OPERATIONS } from \"utils/consts\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction AddCandidateToOpportunitiesModal(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const [opportuniesToApply, setOpportuniesToApply] = useState([]);\r\n const [possibleOpportunitiesList, setPossibleOpportunitiesList] = useState([]);\r\n const [page, setPage] = useState(PAGINATION.FIRST_PAGE);\r\n\r\n const [filter, setFilter] = useState({\r\n candidateId: props.userOverview?.id,\r\n companyNameOrTaxId: null,\r\n provinceId: null,\r\n professionalCategoryId: null,\r\n opportunityType: null,\r\n pageIndex: PAGINATION.FIRST_PAGE,\r\n pageSize: PAGINATION.PAGE_SIZE_MODAL_RESULT_TABLE,\r\n });\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_OpportunityType),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Company),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_ProfessionalCategory),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Candidates),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Vacancies),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Province),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Reference),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AcademicLevel),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Languages),\r\n ];\r\n\r\n const clearFilter = () => {\r\n methods.setValue(\"companyNameOrTaxId\", \"\");\r\n methods.setValue(\r\n \"province\",\r\n getSelectOptionsElementByKey(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.userOverview?.userSingularGeneralDataOverview?.provinceKeyValue\r\n )\r\n );\r\n\r\n let selectedProfessionalCategoryList = [];\r\n props.userOverview?.userSingularProfessionalDataOverview?.professionalExperienceKeyValues?.forEach((category) => {\r\n selectedProfessionalCategoryList.push(\r\n getSelectOptionsElementByKey(props.dataSetState[DATASET.PROFESSIONAL_CATEGORY], category)\r\n );\r\n });\r\n methods.setValue(\"professionalCategory\", selectedProfessionalCategoryList);\r\n\r\n let selectedLanguagesList = [];\r\n\r\n props.userOverview?.userSingularProfessionalDataOverview?.studiedLanguagesKeyValues?.forEach((language) => {\r\n selectedLanguagesList.push(getSelectOptionsElementByKey(props.dataSetState[DATASET.LANGUAGES], language));\r\n });\r\n\r\n methods.setValue(\"languages\", selectedLanguagesList);\r\n\r\n methods.setValue(\r\n \"opportunityType\",\r\n getSelectOptionsElementByKey(\r\n props.dataSetState[DATASET.OPPORTUNITY_TYPE],\r\n props.opportunityTypeKey === \"internshipTab\"\r\n ? OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL\r\n : OPPORTUNITY_TYPE_KEY.EMPREGO\r\n )\r\n );\r\n\r\n methods.setValue(\r\n \"academicLevel\",\r\n getSelectOptionsElementByKey(\r\n props.dataSetState[DATASET.ACADEMIC_LEVEL],\r\n props.userOverview?.userSingularProfessionalDataOverview?.academicLevelKeyValue\r\n )\r\n );\r\n };\r\n\r\n const renderOfferName = (prop) => {\r\n if (checkOperationPermission(props.authState.operationsList, OPERATIONS.OPPORTUNITIES_MENU)) {\r\n return (\r\n \r\n {limitaString(prop.title, 60)}\r\n \r\n );\r\n } else {\r\n return limitaString(prop.title, 60);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n //Provinces\r\n props.getDataSetByName(DATASET.PROVINCES);\r\n let provinceList = props.dataSetState[DATASET.PROVINCES] ? props.dataSetState[DATASET.PROVINCES] : [];\r\n let selectedProvince = getSelectOptionsElementByKey(\r\n provinceList,\r\n props.userOverview?.userSingularGeneralDataOverview?.provinceKeyValue\r\n );\r\n methods.setValue(\"province\", selectedProvince);\r\n\r\n //Professional Categories\r\n props.getDataSetByName(DATASET.PROFESSIONAL_CATEGORY);\r\n let professionalCategoryList = props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n ? props.dataSetState[DATASET.PROFESSIONAL_CATEGORY]\r\n : [];\r\n let selectedProfessionalCategoryList = [];\r\n\r\n props.userOverview?.userSingularProfessionalDataOverview?.professionalExperienceKeyValues?.forEach((category) => {\r\n selectedProfessionalCategoryList.push(getSelectOptionsElementByKey(professionalCategoryList, category));\r\n });\r\n\r\n methods.setValue(\"professionalCategory\", selectedProfessionalCategoryList);\r\n\r\n //Languages\r\n props.getDataSetByName(DATASET.LANGUAGES);\r\n let languagesList = props.dataSetState[DATASET.LANGUAGES] ? props.dataSetState[DATASET.LANGUAGES] : [];\r\n let selectedLanguagesList = [];\r\n\r\n props.userOverview?.userSingularProfessionalDataOverview?.studiedLanguagesKeyValues?.forEach((language) => {\r\n selectedLanguagesList.push(getSelectOptionsElementByKey(languagesList, language));\r\n });\r\n\r\n methods.setValue(\"languages\", selectedLanguagesList);\r\n\r\n //Opportunity Types\r\n props.getDataSetByName(DATASET.OPPORTUNITY_TYPE);\r\n let opportunityTypesList = props.dataSetState[DATASET.OPPORTUNITY_TYPE]\r\n ? props.dataSetState[DATASET.OPPORTUNITY_TYPE]\r\n : [];\r\n let selectedOpportunityType = getSelectOptionsElementByKey(\r\n opportunityTypesList,\r\n props.opportunityTypeKey === \"internshipTab\"\r\n ? OPPORTUNITY_TYPE_KEY.ESTAGIO_PROFISSIONAL\r\n : OPPORTUNITY_TYPE_KEY.EMPREGO\r\n );\r\n methods.setValue(\"opportunityType\", selectedOpportunityType);\r\n\r\n //Academic Level\r\n props.getDataSetByName(DATASET.ACADEMIC_LEVEL);\r\n let academicLevelList = props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n ? props.dataSetState[DATASET.ACADEMIC_LEVEL]\r\n : [];\r\n let selectedAcademicLevel = getSelectOptionsElementByKey(\r\n academicLevelList,\r\n props.userOverview?.userSingularProfessionalDataOverview?.academicLevelKeyValue\r\n );\r\n methods.setValue(\"academicLevel\", selectedAcademicLevel);\r\n\r\n //Temporary filter\r\n let selectedProfessionalCategoryKeyValueList = [];\r\n selectedProfessionalCategoryList?.forEach((category) => {\r\n selectedProfessionalCategoryKeyValueList?.push(category?.keyValue);\r\n });\r\n\r\n let selectedLanguagesKeyValueList = [];\r\n selectedLanguagesList?.forEach((language) => {\r\n selectedLanguagesKeyValueList?.push(language?.keyValue);\r\n });\r\n\r\n let temp_filter = {\r\n ...filter,\r\n provinceId: selectedProvince?.code,\r\n opportunityProfessionalCategoryList: selectedProfessionalCategoryKeyValueList,\r\n languagesList: selectedLanguagesKeyValueList,\r\n opportunityTypeId: selectedOpportunityType?.code,\r\n academicLevel: selectedAcademicLevel?.code,\r\n };\r\n\r\n setFilter(temp_filter);\r\n\r\n props.getFilteredAvailableOpportunitiesForUser(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.opportunitiesState?.getFilteredAvailableOpportunitiesForUser_result?.data)) {\r\n setPossibleOpportunitiesList(props.opportunitiesState?.getFilteredAvailableOpportunitiesForUser_result?.data);\r\n } else {\r\n setPossibleOpportunitiesList([]);\r\n }\r\n }, [props.opportunitiesState?.getFilteredAvailableOpportunitiesForUser_result]);\r\n\r\n const onSubmitSearch = (data) => {\r\n data = {\r\n ...data,\r\n candidateId: props.userOverview?.id,\r\n };\r\n\r\n let filter = getFilteredAvailableOpportunitiesForUserMap(data);\r\n setFilter(filter);\r\n if (page === PAGINATION.FIRST_PAGE) {\r\n props.getFilteredAvailableOpportunitiesForUser(filter);\r\n } else {\r\n handleChangePage(undefined, PAGINATION.FIRST_PAGE, filter);\r\n }\r\n };\r\n\r\n const handleChangePage = (event, value) => {\r\n if (page !== value) {\r\n setPage(value);\r\n let temp_filter = { ...filter, pageIndex: value };\r\n setFilter(temp_filter);\r\n props.getFilteredAvailableOpportunitiesForUser(temp_filter);\r\n }\r\n };\r\n\r\n const checkIfOpportunityInApplicationsList = (opportunityId) => {\r\n if (opportuniesToApply.includes(opportunityId)) {\r\n return true;\r\n }\r\n\r\n return false;\r\n };\r\n\r\n const addOpportunitytoApplicationsList = (opportunityId) => {\r\n setOpportuniesToApply((prevState) => {\r\n if (checkIfOpportunityInApplicationsList(opportunityId)) {\r\n return [...prevState];\r\n }\r\n return [...prevState, opportunityId];\r\n });\r\n };\r\n\r\n const removeOpportunityFromApplicationsList = (opportunityId) => {\r\n setOpportuniesToApply((prevState) => {\r\n let elements = prevState.filter((element) => element !== opportunityId);\r\n\r\n return elements;\r\n });\r\n };\r\n\r\n let handleNewApplicationsList = (opportunityId, opportunityState) => {\r\n if (opportunityState) {\r\n addOpportunitytoApplicationsList(opportunityId);\r\n } else {\r\n removeOpportunityFromApplicationsList(opportunityId);\r\n }\r\n };\r\n\r\n const checkIfAllOpportunitiesChecked = (opportunitiesList) => {\r\n const getListOfStates = opportunitiesList?.map((prop) => {\r\n if (!checkIfOpportunityInApplicationsList(prop.id)) {\r\n return false;\r\n }\r\n return true;\r\n });\r\n\r\n if (getListOfStates.includes(false)) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n const handleApplyToOpportunitiesList = () => {\r\n const data = {\r\n userId: props.userOverview?.id,\r\n opportunitiesId: opportuniesToApply,\r\n };\r\n\r\n props.createApplicationsForUser(data, () => {\r\n props.handleClose();\r\n props.onSuccess();\r\n });\r\n };\r\n\r\n return (\r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AddCandidatesTitle\r\n )}\r\n \r\n
\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_CompanyNameOrTaxId\r\n )}\r\n \r\n (\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: methods.formState.errors[\"companyNameOrTaxId\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Province\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_OpportunityType\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_ProfessionalCategory\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_AcademicLevel\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_AddCandidateToOpportunitiesModal_Languages\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n {\r\n clearFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n {\r\n \r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n \r\n \r\n {\r\n possibleOpportunitiesList?.map((prop) =>\r\n handleNewApplicationsList(prop.id, e.target.checked)\r\n );\r\n }}\r\n value=\"end\"\r\n control={\r\n 0 &&\r\n checkIfAllOpportunitiesChecked(possibleOpportunitiesList)\r\n }\r\n data-testid=\"table-header-select-all\"\r\n />\r\n }\r\n label={\r\n \r\n {intl.formatMessage(labels.Label_Select)}\r\n \r\n }\r\n labelPlacement=\"start\"\r\n className={classes.formControlLabelNoMargin}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n\r\n {possibleOpportunitiesList.length > 0 && (\r\n \r\n {possibleOpportunitiesList?.map((prop, key) => (\r\n \r\n \r\n {prop.opportunityTypeDescription}\r\n {renderOfferName(prop)}\r\n \r\n \r\n {prop.userTaxIdNumber}\r\n {limitaString(prop.userName, 60)}\r\n \r\n \r\n {prop.professionalCategoriesDescription}\r\n \r\n {prop.totalCandidates}\r\n \r\n {prop.approvedCandidates}\r\n {\"/\"}\r\n {prop.numVacancies}\r\n \r\n {prop.provinceDescription}\r\n \r\n {limitaString(prop.reference, 60)}\r\n \r\n {prop.academicLevelDescription}\r\n \r\n {prop.languages?.join(\", \") ?? \"\"}\r\n \r\n \r\n \r\n {\r\n handleNewApplicationsList(prop.id, e.target.checked);\r\n }}\r\n control={\r\n \r\n }\r\n style={{ margin: 0 }}\r\n />\r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n {!props.opportunitiesState.getFilteredAvailableOpportunitiesForUser_loading &&\r\n possibleOpportunitiesList.length === 0 && (\r\n {intl.formatMessage(labels.Label_NoResultsFound)}\r\n )}\r\n \r\n \r\n\r\n \r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Add)}\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSetByName: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getFilteredAvailableOpportunitiesForUser: (data) => dispatch(getFilteredAvailableOpportunitiesForUserAction(data)),\r\n createApplicationsForUser: (data, onSuccess) => dispatch(createApplicationsForUserAction(data, onSuccess)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(AddCandidateToOpportunitiesModal);\r\n","import React, { useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport ToggleButton from \"@material-ui/lab/ToggleButton\";\r\nimport ToggleButtonGroup from \"@material-ui/lab/ToggleButtonGroup\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { titles, labels } from \"resources/resources\";\r\nimport GovernmentProgramsApplicationsTab from \"views/admin/UserOverview/Components/Tabs/GovernmentProgramsApplicationsTab\";\r\nimport OpportunityApplicationsTab from \"views/admin/UserOverview/UserSingular/Tabs/ApplicationTypesTabs/OpportunityApplicationsTab\";\r\nimport { OPPORTUNITY_TYPE_ID } from \"utils/consts\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport GenericDialog from \"components/Dialogs/GenericDialogV2\";\r\nimport AddCandidateToOpportunitiesModal from \"views/admin/UserOverview/UserSingular/Modals/AddCandidateToOpportunitiesModal\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ApplicationsListSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [tabStep, setTabStep] = useState(\r\n props.selectedTab === \"internshipTab\" || props.selectedTab === \"employmentTab\"\r\n ? props.selectedTab\r\n : \"governmentProgramsTab\"\r\n );\r\n const [showAddCandidateToOpportunitiesModal, setShowAddCandidateToOpportunitiesModal] = useState(false);\r\n const [refreshPages, setRefreshPages] = useState(false);\r\n\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n };\r\n\r\n const handleOpenAddCandidateToOpportunitiesModal = () => {\r\n setShowAddCandidateToOpportunitiesModal(true);\r\n };\r\n\r\n const handleCloseAddCandidateToOpportunitiesModal = () => {\r\n setShowAddCandidateToOpportunitiesModal(false);\r\n };\r\n\r\n const refreshResults = () => {\r\n handleRefreshPages(true);\r\n };\r\n\r\n const handleRefreshPages = (newValue) => {\r\n setRefreshPages(newValue);\r\n };\r\n\r\n function loadTabContent() {\r\n switch (tabStep) {\r\n case \"governmentProgramsTab\":\r\n return ;\r\n case \"internshipTab\":\r\n return (\r\n \r\n );\r\n case \"employmentTab\":\r\n return (\r\n \r\n );\r\n default:\r\n return ;\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_CreateOpportunityApplication\r\n )}\r\n \r\n }\r\n data-testid=\"user-overview-applications-section-title\"\r\n >\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgramsTab\r\n )}\r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_InternshipsTab)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_EmploymentTab)}\r\n \r\n \r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n\r\n {/* Add Candidate to Opportunity Modal */}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ApplicationsListSection);\r\n","import React, { useRef, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Container } from \"@material-ui/core\";\r\n\r\nimport FollowUpsListSection from \"views/admin/UserOverview/UserSingular/Sections/FollowUpsListSection\";\r\nimport ApplicationsListSection from \"views/admin/UserOverview/UserSingular/Sections/ApplicationsListSection\";\r\nimport useScrollTo from \"hooks/useScrollTo\";\r\n\r\nfunction ApplicationTab(props) {\r\n const scrollTo = useScrollTo;\r\n const applicationsListSection = useRef(null);\r\n\r\n useEffect(() => {\r\n if(props.goToTopOfPage){\r\n scrollTo()\r\n }\r\n \r\n if(props.selectedTab === 'internshipTab' || props.selectedTab === 'employmentTab' || props.selectedTab === 'governmentProgramsTab'){\r\n scrollTo(applicationsListSection)\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ApplicationTab);","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Avatar from \"@material-ui/core/Avatar\";\r\nimport StarIcon from \"@material-ui/icons/Star\";\r\nimport WarningIcon from \"@material-ui/icons/Warning\";\r\nimport CheckCircleIcon from \"@material-ui/icons/CheckCircle\";\r\n\r\nimport CounterDisplayField from \"components/Fields/CounterDisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport componentStylescomponentStylesUserOverview from \"assets/theme//views/admin/user-overview\";\r\nimport { labels } from \"resources/resources\";\r\nimport { getNameInitials } from \"utils/converters\";\r\nimport { b64toBlob } from \"utils/converters\";\r\nimport useWindowSize from \"hooks/useWindowSize\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\nconst useStylescomponentStylesUserOverview = makeStyles(componentStylescomponentStylesUserOverview);\r\n\r\nfunction OverviewSection(props) {\r\n const classes = { ...useStylesGeneric(), ...useStylescomponentStylesUserOverview() };\r\n const intl = useIntl();\r\n const windowSize = useWindowSize();\r\n\r\n return (\r\n <>\r\n
\r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n {props?.userOverview?.photo ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n {\" \"}\r\n {getNameInitials(props?.userOverview?.userColectiveGeneralDataOverview?.name)}\r\n \r\n )}\r\n \r\n\r\n \r\n \r\n {props?.userOverview?.userColectiveGeneralDataOverview?.name}\r\n \r\n \r\n {props?.userOverview?.userColectiveGeneralDataOverview?.businessPurposeDescriptions?.length > 0\r\n ? props?.userOverview?.userColectiveGeneralDataOverview?.businessPurposeDescriptions?.join(\", \")\r\n : intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_NoProfessionalData)}\r\n \r\n \r\n {props?.userOverview?.userColectiveGeneralDataOverview?.municipalityDescription\r\n ? props?.userOverview?.userColectiveGeneralDataOverview?.municipalityDescription +\r\n \", \" +\r\n props?.userOverview?.userColectiveGeneralDataOverview?.provinceDescription\r\n : props?.userOverview?.userColectiveGeneralDataOverview?.provinceDescription ??\r\n intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_NoProvinceData)}\r\n \r\n
\r\n {props?.userOverview?.accountCreationDate && props?.userOverview?.accountCreationDate !== \"N/A\"\r\n ? intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_JoinedOn) +\r\n \" \" +\r\n props?.userOverview?.accountCreationDate\r\n : intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_NoJoinedOnData)}\r\n
\r\n
\r\n
\r\n
\r\n\r\n {windowSize.width > 900 && (\r\n <>\r\n \r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithMissingPayments\r\n )}\r\n
\r\n \r\n ) : (\r\n
\r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithoutMissingPayments\r\n )}\r\n
\r\n
\r\n )\r\n }\r\n data={\r\n <>\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditIsMissingPayments ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditAmountToBePaid} Kz\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n highlighted={true}\r\n isButton={true}\r\n />\r\n \r\n \r\n {props?.userOverview?.userColectiveGeneralDataOverview?.opportunityFollowUpOverallEvaluation}/5\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n highlighted={true}\r\n isButton={true}\r\n />\r\n \r\n )}\r\n
\r\n \r\n {windowSize.width <= 900 && (\r\n <>\r\n \r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithMissingPayments\r\n )}\r\n
\r\n \r\n ) : (\r\n
\r\n
\r\n {intl.formatMessage(labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebt)}\r\n
\r\n
\r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_OverviewSection_MicrocreditDebtWithoutMissingPayments\r\n )}\r\n
\r\n
\r\n )\r\n }\r\n data={\r\n <>\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditIsMissingPayments ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {props?.userOverview?.userSingularGeneralDataOverview?.microcreditAmountToBePaid} Kz\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n \r\n \r\n {props?.userOverview?.userColectiveGeneralDataOverview?.opportunityFollowUpOverallEvaluation}/5\r\n \r\n }\r\n handleOnClick={() => {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n \r\n )}\r\n \r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true, \"internshipTab\");\r\n }}\r\n isButton={true}\r\n testId={\"receivedApplications\"}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true, \"finished\");\r\n }}\r\n isButton={true}\r\n />\r\n\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true, \"governmentProgramsTab\");\r\n }}\r\n testId={\"governmentProgramApplications\"}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n {\r\n props.handleChangeTab(null, \"applicationsTab\", true);\r\n }}\r\n isButton={true}\r\n />\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(OverviewSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\n\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { titles, labels, tooltips } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction GeneralDataSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(\r\n labels.Label_UserOverview_GeneralDataTab_GeneralDataSection_CompanySocialSecurityNumber\r\n )}\r\n \r\n \r\n \r\n \r\n }\r\n data={props?.userGeneralDataOverview?.niss}\r\n id=\"niss\"\r\n />\r\n \r\n 6 ? 12 : 6}\r\n md={props?.userGeneralDataOverview?.technicalCapabilityDescriptions?.length > 6 ? 8 : 4}\r\n xl={props?.userGeneralDataOverview?.technicalCapabilityDescriptions?.length > 6 ? 6 : 3}\r\n label={intl.formatMessage(\r\n labels.Label_UserOverview_ProfessionTab_ProfessionalDataSection_BusinessPurpose\r\n )}\r\n data={props?.userGeneralDataOverview?.businessPurposeDescriptions?.join(\", \")}\r\n id=\"businessPurpose\"\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(GeneralDataSection);\r\n","import React from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport OverviewSection from \"views/admin/UserOverview/UserColective/Sections/OverviewSection\";\r\nimport GeneralDataSection from \"views/admin/UserOverview/UserColective/Sections/GeneralDataSection\";\r\nimport ContactsSection from \"views/admin/UserOverview/Components/Sections/ContactsSection\";\r\nimport DocumentsSection from \"views/admin/UserOverview/Components/Sections/DocumentsSection\";\r\n\r\nfunction GenericDataTab(props) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {props?.userOverview?.userColectiveGeneralDataOverview?.userDocuments?.length > 0 && (\r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(GenericDataTab);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardActions from \"@material-ui/core/CardActions\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport limitaString from \"utils/string\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\nimport Rating from '@material-ui/lab/Rating';\r\n\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport {\r\n OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY,\r\n FOLLOWUP_STATE_ID_QUERY,\r\n TABLE_STATE_CHIP_COLOR,\r\n PAGINATION,\r\n} from \"utils/consts\";\r\nimport { getAllOpportunityApplicationsFollowUpAction } from \"redux/actions/opportunitiesAction\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction MyOpportunityApplicationsFollowUpsTab(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_ApplicationCode),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_Candidate),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OpportunityType),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_State),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OverallEvaluation)\r\n ];\r\n\r\n const mapOpportunityFollowUpStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.PORINICIAR:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.ADECORRER:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_FOLLOWUP_STATE_KEY.TERMINADO:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let filterData = {\r\n candidateFollowUpStateId : props.followUpState,\r\n pageIndex: page <= 0 ? 1 : page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n companyTaxIdNumber: props?.usersState?.getFOUserOverview_result?.userColectiveGeneralDataOverview?.taxIdNumber\r\n };\r\n\r\n props.getAllOpportunityApplicationsFollowUp(filterData);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page, props.followUpState]);\r\n\r\n useEffect(() => {\r\n handleChangePage(undefined, PAGINATION.FIRST_PAGE);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.followUpState]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(titles.Title_UserOverview_ApplicationsTab_FollowUpsSection)} {\" \"}\r\n {props.followUpState === FOLLOWUP_STATE_ID_QUERY.ONGOING && intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OnGoing)}{\" \"}\r\n {props.followUpState === FOLLOWUP_STATE_ID_QUERY.FINISHED && intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_Finished)}\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(labels.Label_Total)}: {props.opportunitiesState?.opportunityApplicationsFollowUp_total_records}\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n {intl.formatMessage(labels.Label_Details)}\r\n \r\n \r\n \r\n \r\n {props.opportunitiesState.opportunityApplicationsFollowUp_result?.data?.map((prop, key) => (\r\n \r\n \r\n {prop.candidateCode}\r\n \r\n \r\n Nº do BI: {prop.userIdentityCard}\r\n {limitaString(prop.userName, 60)}\r\n \r\n \r\n {prop.opportunityTypeDescription}\r\n {limitaString(prop.opportunityTitle, 60)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getAllOpportunityApplicationsFollowUp: (data) => dispatch(getAllOpportunityApplicationsFollowUpAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(MyOpportunityApplicationsFollowUpsTab);\r\n","import React, { useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport ToggleButton from \"@material-ui/lab/ToggleButton\";\r\nimport ToggleButtonGroup from \"@material-ui/lab/ToggleButtonGroup\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nimport { FOLLOWUP_STATE_ID_QUERY } from \"utils/consts.js\";\r\n\r\nimport OpportunityApplicationsFollowUpsTab from \"views/admin/UserOverview/UserColective/Tabs/ApplicationsContentTab/OpportunityApplicationFollowUpTab\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FollowUpsListSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [tabStep, setTabStep] = useState(props.selectedTab ?? \"ongoing\");\r\n\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n };\r\n\r\n function loadTabContent() {\r\n switch (tabStep) {\r\n case \"finished\":\r\n return ;\r\n case \"ongoing\":\r\n default:\r\n return ;\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_OnGoing)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_FollowUpsSection_Finished)}\r\n \r\n \r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(FollowUpsListSection);\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport { Link } from \"react-router-dom\";\r\n//MaterialUI\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardActions from \"@material-ui/core/CardActions\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { Typography } from \"@material-ui/core\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport limitaString from \"utils/string\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport { OPPORTUNITY_CANDIDATE_STATE_KEY, OPPORTUNITY_TYPE_ID, TABLE_STATE_CHIP_COLOR, PAGINATION } from \"utils/consts\";\r\nimport { getAllOpportunityApplicationsAction } from \"redux/actions/opportunitiesAction\";\r\nimport { titles, labels } from \"resources/resources\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationsTab(props) {\r\n const theme = useTheme();\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n const tableHead = [\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationCode),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_Candidate),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_OpportunityType),\r\n intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_ApplicationState)\r\n ];\r\n\r\n const mapOpportunityCandidateStateToTableChipColors = (stateKey) => {\r\n switch (stateKey) {\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.APROVADA:\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.REJEITADA:\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n case OPPORTUNITY_CANDIDATE_STATE_KEY.EMRECRUTAMENTO:\r\n return TABLE_STATE_CHIP_COLOR.LIGHT_ORANGE;\r\n default:\r\n return <>;\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let filterData = {\r\n opportunityTypeId: props.opportunityTypeId,\r\n pageIndex: page <= 0 ? 1 : page,\r\n pageSize: PAGINATION.PAGE_SIZE,\r\n companyTaxIdNumber: props?.usersState?.getFOUserOverview_result?.userColectiveGeneralDataOverview?.taxIdNumber\r\n };\r\n\r\n props.getAllOpportunityApplications(filterData);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [page, props.opportunityTypeId]);\r\n\r\n useEffect(() => {\r\n handleChangePage(undefined, PAGINATION.FIRST_PAGE);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.opportunityTypeId]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {intl.formatMessage(titles.Title_UserOverview_ApplicationsTab_EmploymentAndInternshipApplicationsSection)}{\" \"}\r\n {props.opportunityTypeId === OPPORTUNITY_TYPE_ID.ESTAGIO_PROFISSIONAL && intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_InternshipsTab)}\r\n {props.opportunityTypeId === OPPORTUNITY_TYPE_ID.EMPREGO && intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_EmploymentTab)}\r\n \r\n }\r\n action={\r\n \r\n {intl.formatMessage(labels.Label_Total)}: {props.opportunitiesState?.opportunityApplications_total_records}\r\n \r\n }\r\n >\r\n\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n {intl.formatMessage(labels.Label_Details)}\r\n \r\n \r\n \r\n \r\n {props?.opportunitiesState?.opportunityApplications_result?.data?.map((prop, key) => (\r\n \r\n \r\n {prop.candidateCode}\r\n \r\n \r\n Nº do BI: {prop.userIdentityCard}\r\n {limitaString(prop.userName, 60)}\r\n \r\n \r\n {prop.opportunityTypeDescription}\r\n {limitaString(prop.opportunityTitle, 60)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n );\r\n}\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getAllOpportunityApplications: (data) => dispatch(getAllOpportunityApplicationsAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityApplicationsTab);\r\n","import React, { useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport ToggleButton from \"@material-ui/lab/ToggleButton\";\r\nimport ToggleButtonGroup from \"@material-ui/lab/ToggleButtonGroup\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { titles, labels } from \"resources/resources\";\r\nimport GovernmentProgramsApplicationsTab from \"views/admin/UserOverview/Components/Tabs/GovernmentProgramsApplicationsTab\";\r\nimport OpportunityApplicationsTab from \"views/admin/UserOverview/UserColective/Tabs/ApplicationsContentTab/OpportunityApplicationsTab\";\r\nimport { OPPORTUNITY_TYPE_ID } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction ApplicationsListSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const [tabStep, setTabStep] = useState(\r\n props.selectedTab === \"internshipTab\" || props.selectedTab === \"employmentTab\"\r\n ? props.selectedTab\r\n : \"governmentProgramsTab\"\r\n );\r\n const handleTabStep = (event, value) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n };\r\n\r\n function loadTabContent() {\r\n switch (tabStep) {\r\n case \"governmentProgramsTab\":\r\n return ;\r\n case \"internshipTab\":\r\n return ;\r\n case \"employmentTab\":\r\n return ;\r\n default:\r\n return ;\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_GovernmentProgramsTab)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_InternshipsTab)}\r\n \r\n \r\n {intl.formatMessage(labels.Label_UserOverview_ApplicationsTab_ApplicationsSection_EmploymentTab)}\r\n \r\n \r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ApplicationsListSection);\r\n","import React, { useRef, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n//import custom components\r\nimport FollowUpsListSection from \"views/admin/UserOverview/UserColective/Sections/FollowupsListSection\";\r\nimport ApplicationsListSection from \"views/admin/UserOverview/UserColective/Sections/ApplicationsListSection\";\r\nimport useScrollTo from \"hooks/useScrollTo\";\r\n\r\nfunction ApplicationTab(props) {\r\n const scrollTo = useScrollTo;\r\n const applicationsListSection = useRef(null);\r\n\r\n useEffect(() => {\r\n if(props.goToTopOfPage){\r\n scrollTo()\r\n }\r\n \r\n if(props.selectedTab === 'internshipTab' || props.selectedTab === 'employmentTab'){\r\n scrollTo(applicationsListSection)\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ApplicationTab);\r\n","import React, {useEffect, useState } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { Link } from \"react-router-dom\";\r\nimport \"moment/locale/pt\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Collapse from \"@material-ui/core/Collapse\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport Timeline from \"@material-ui/lab/Timeline\";\r\nimport TimelineItem from \"@material-ui/lab/TimelineItem\";\r\nimport TimelineSeparator from \"@material-ui/lab/TimelineSeparator\";\r\nimport TimelineConnector from \"@material-ui/lab/TimelineConnector\";\r\nimport TimelineContent from \"@material-ui/lab/TimelineContent\";\r\nimport TimelineOppositeContent from \"@material-ui/lab/TimelineOppositeContent\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport LinkMaterialUi from \"@material-ui/core/Link\";\r\nimport { FormHelperText } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport NotificationsIcon from \"@material-ui/icons/Notifications\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { addFOUserHistoryEntryAction, getFOUserHistoryActions } from \"redux/actions/usersAction\"\r\nimport { HISTORY_ENTRY_TYPES } from \"utils/consts\";\r\nimport { labels } from \"resources/resources\";\r\nimport { messages, titles } from \"resources/resources\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction HistoryTab(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const [expanded, setExpanded] = useState(false);\r\n\r\n const {\r\n handleSubmit,\r\n setValue,\r\n control,\r\n formState: { errors, isValid },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n if (\r\n props.usersState.foUserHistory === undefined ||\r\n props.usersState.foUserHistory.length === 0 ||\r\n props.usersState.foUserHistory[0].userId !==\r\n props.userId\r\n ) {\r\n props.getFOUserHistory({ userId: props.userId});\r\n }\r\n\r\n setValue(\"userId\", props.userId);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.usersState.foUserHistory_refresh_results)\r\n props.getFOUserHistory({ userId: props.userId});\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.usersState.foUserHistory_refresh_results]);\r\n\r\n const handleExpandClick = () => {\r\n setExpanded(!expanded);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n if (isValid) {\r\n props.addFOUserHistoryEntry({userId: props.userId, message: data.historyComment});\r\n }\r\n setValue(\"historyComment\", \"\")\r\n };\r\n\r\n function attributeRedirectLink(historyTypeKeyValue, applicationCode){\r\n switch(historyTypeKeyValue){\r\n case HISTORY_ENTRY_TYPES.ESTAGIO_FIM :\r\n case HISTORY_ENTRY_TYPES.ESTAGIO_APROVADO:\r\n case HISTORY_ENTRY_TYPES.ESTAGIO_INICIO :\r\n return (\r\n \r\n {intl.formatMessage(labels.Label_SeeDetails)}\r\n \r\n );\r\n case HISTORY_ENTRY_TYPES.PROGRAMA_GOVERNO_APROVADO :\r\n return (\r\n \r\n {intl.formatMessage(labels.Label_SeeDetails)}\r\n \r\n );\r\n case HISTORY_ENTRY_TYPES.EMPREGO_APROVADO:\r\n return (\r\n \r\n {intl.formatMessage(labels.Label_SeeDetails)}\r\n \r\n );\r\n default:\r\n return
;\r\n }\r\n } \r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.usersState.foUserHistory?.map(\r\n (userHistory) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {userHistory.date}\r\n \r\n \r\n {userHistory.title}\r\n \r\n \r\n {userHistory.description}\r\n \r\n \r\n {attributeRedirectLink(userHistory.historyEntryTypeKeyValue, userHistory.applicationCode)}\r\n \r\n \r\n \r\n );\r\n }\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Add)}\r\n\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n (\r\n \r\n )}\r\n />\r\n\r\n {errors[\"historyComment\"] !== undefined && (\r\n \r\n {errors[\"historyComment\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Cancel)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Add)}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getFOUserHistory: (userId) =>\r\n dispatch(getFOUserHistoryActions(userId)),\r\n addFOUserHistoryEntry: (data) =>\r\n dispatch(addFOUserHistoryEntryAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(HistoryTab);\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { getFOUserOverviewAction } from \"redux/actions/usersAction\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport { titles, labels } from \"resources/resources\";\r\nimport { USER_TYPE_KEY } from \"utils/consts\";\r\nimport UserSingularGeneralDataTab from \"views/admin/UserOverview/UserSingular/Tabs/GeneralDataTab\";\r\nimport UserSingularTrainingAndProfessionTab from \"views/admin/UserOverview/UserSingular/Tabs/TrainingAndProfessionTab\";\r\nimport UserSingularApplicationsTab from \"views/admin/UserOverview/UserSingular/Tabs/ApplicationsTab\";\r\nimport UserColectiveGeneralDataTab from \"views/admin/UserOverview/UserColective/Tabs/GeneralDataTab\";\r\nimport UserCollectiveApplicationsTab from \"views/admin/UserOverview/UserColective/Tabs/ApplicationsTab\";\r\nimport HistoryTab from \"./Components/Tabs/HistoryTab\";\r\nimport EmploymentAndUnemploymentHistoryTab from \"../UserManagement/FrontOffice/IndividualUser/EmploymentAndUnemploymentHistory\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport InterventionOtherAreaSection from \"../UserManagement/FrontOffice/IndividualUser/Sections/InterventionOtherAreaSection\";\r\nimport Tabs from \"components/Tabs/Tabs\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction OpportunityApplicationFollowUpDetails(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n\r\n const TABS = {\r\n GENERAL_DATA: \"generalDataTab\",\r\n TRAINING_AND_PROFESSION: \"traingAndProfessionTab\",\r\n APPLICATIONS: \"applicationsTab\",\r\n EMPLOYMENT_AND_UNEMPLOYMENT_HISTORY: \"employmentAndUnemploymentHistoryTab\",\r\n INTERVENTION_FROM_OTHERS_AREAS: \"interventionFromOthersAreasTab\",\r\n GENERAL_HISTORY: \"generalHistoryTab\",\r\n };\r\n\r\n const [tabStep, setTabStep] = useState(TABS.GENERAL_DATA);\r\n const [goToSectionTab, setGoToSectionTab] = useState(null);\r\n const [goToTopOfPage, setGoToTopOfPage] = useState(null);\r\n const scrollDirection = useScrollDirection();\r\n\r\n useEffect(() => {\r\n props.getFOUserOverview({ userId: props.match?.params?.userId });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n const handleChangeTab = (event, value, scrollToTopOfPage, sectionTab) => {\r\n if (value !== null) {\r\n setTabStep(value);\r\n }\r\n\r\n setGoToSectionTab(sectionTab);\r\n\r\n setGoToTopOfPage(scrollToTopOfPage);\r\n };\r\n\r\n function loadTabContent() {\r\n switch (props?.usersState?.getFOUserOverview_result?.userTypeKey) {\r\n case USER_TYPE_KEY.COLETIVO:\r\n switch (tabStep) {\r\n case TABS.GENERAL_DATA:\r\n return (\r\n \r\n );\r\n case TABS.APPLICATIONS:\r\n return ;\r\n case TABS.GENERAL_HISTORY:\r\n return (\r\n \r\n );\r\n default:\r\n return (\r\n \r\n );\r\n }\r\n default:\r\n switch (tabStep) {\r\n case TABS.GENERAL_DATA:\r\n return (\r\n \r\n );\r\n case TABS.TRAINING_AND_PROFESSION:\r\n return (\r\n \r\n );\r\n case TABS.APPLICATIONS:\r\n return ;\r\n case TABS.GENERAL_HISTORY:\r\n return (\r\n \r\n );\r\n case TABS.EMPLOYMENT_AND_UNEMPLOYMENT_HISTORY:\r\n return (\r\n
\r\n \r\n
\r\n );\r\n case TABS.INTERVENTION_FROM_OTHERS_AREAS:\r\n return (\r\n
\r\n \r\n
\r\n );\r\n default:\r\n return (\r\n \r\n );\r\n }\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n {loadTabContent()}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getFOUserOverview: (data) => dispatch(getFOUserOverviewAction(data)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(OpportunityApplicationFollowUpDetails);\r\n","import { REPORT_TYPES } from \"utils/consts\";\r\n\r\nexport function schedulingsMap(formData) {\r\n if (formData !== null && formData !== undefined) {\r\n return {\r\n numApplication: formData.applicationNumber ?? \"\",\r\n numBI: formData.numBI ??\"\",\r\n userCode: formData.userCode ?? \"\",\r\n nameOfUser: formData.nameOfUser ?? \"\",\r\n governmentProgramId : formData.governmentProgramId?.code,\r\n motiveId: formData.motiveId?.code,\r\n startDate: formData.startDate ? formData.startDate.format(\"YYYY-MM-DD\") : null,\r\n endDate: formData.endDate ? formData.endDate.format(\"YYYY-MM-DD\") : null,\r\n provinceId: formData.province?.code,\r\n };\r\n }\r\n}\r\n\r\nexport function schedulesReportMap(filterData) {\r\n if (filterData !== null && filterData !== undefined) {\r\n return {\r\n reportEnumKey: REPORT_TYPES.SCHEDULES_SEARCH_RESULTS,\r\n parameters: JSON.stringify(filterData),\r\n };\r\n }\r\n}\r\n\r\nexport default schedulingsMap;\r\n","import React, { useEffect, useState } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport clsx from \"clsx\";\r\nimport { Controller, useForm } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport ReactDatetime from \"react-datetime\";\r\nimport \"moment/locale/pt\";\r\nimport moment from \"moment\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport { Card, CardHeader, CardContent } from \"@material-ui/core\";\r\n// @material-ui/icons components\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport DateRange from \"@material-ui/icons/DateRange\";\r\n// components\r\nimport FormSelect from \"components/FormFields/FormSelect\";\r\nimport GenericFormSelect from \"components/FormFields/GenericFormSelect\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { getDataSetByNameAction, getGovernmentProgramsAction } from \"redux/actions/datasetsAction\";\r\nimport { searchSchedulingsAction } from \"redux/actions/schedulingAction\";\r\nimport { getReportAction } from \"redux/actions/reportsAction\";\r\nimport { DATASET, PAGINATION, REPORT_FILE_NAME, OPERATIONS, REPORT_CONSTS } from \"utils/consts\";\r\nimport { getSelectOptionsElementByCode } from \"utils/formSelect\";\r\nimport { labels, messages, errorMessages, titles } from \"resources/resources\";\r\nimport { schedulingsMap, schedulesReportMap } from \"mappers/schedulesMap\";\r\nimport { checkOperationPermission } from \"utils/permission\";\r\nimport { REGEX_PATTERNS } from \"utils/consts\"\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction FilterSection(props) {\r\n const classes = useStylesGeneric();\r\n const intl = useIntl();\r\n const theme = useTheme();\r\n\r\n const [filter, setFilter] = useState({\r\n numApplication: \"\",\r\n numBI: \"\",\r\n userCode: \"\",\r\n nameOfUser: \"\",\r\n governmentProgramId: null,\r\n motiveId: null,\r\n startDate: null,\r\n endDate: null,\r\n provinceId: props.authState?.province ?? null,\r\n });\r\n const [filterCounter, setFilterCounter] = useState(0);\r\n\r\n const {\r\n handleSubmit,\r\n getValues,\r\n setValue,\r\n control,\r\n trigger,\r\n formState: { errors },\r\n } = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n const handleInputValidDate = (date, onChange) => {\r\n if (date === \"\" || REGEX_PATTERNS.DATE.test(date)) {\r\n onChange(date);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n let count = 0;\r\n\r\n Object.keys(filter).map((key) => {\r\n if (filter[key] && key !== \"pageIndex\" && key !== \"pageSize\") {\r\n count += 1;\r\n }\r\n\r\n return count;\r\n });\r\n\r\n setFilterCounter(count);\r\n }, [filter]);\r\n\r\n const cleanFilter = () => {\r\n setValue(\"applicationNumber\", \"\");\r\n setValue(\"numBI\", \"\");\r\n setValue(\"userCode\", \"\");\r\n setValue(\"nameOfUser\", \"\");\r\n setValue(\"statusId\", undefined);\r\n setValue(\"governmentProgramId\", undefined);\r\n setValue(\"motiveId\", undefined);\r\n setValue(\"startDate\", undefined);\r\n setValue(\"endDate\", undefined);\r\n if (!props.authState?.province) setValue(\"province\", undefined);\r\n\r\n setFilterCounter(0);\r\n setFilter(0);\r\n };\r\n\r\n const onSubmit = (data) => {\r\n let filter = schedulingsMap(data);\r\n filter[\"pageIndex\"] = PAGINATION.FIRST_PAGE;\r\n filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n setFilter(filter);\r\n \r\n if (props.page === PAGINATION.FIRST_PAGE) props.getSchedulings(filter);\r\n else props.handleChangePage(1);\r\n };\r\n\r\n const handleSetFilter = (filterKey, value, clearChildKeyList) => {\r\n const newFilter = { ...filter, [filterKey]: value };\r\n\r\n clearChildKeyList?.forEach((child) => {\r\n newFilter[child] = null;\r\n });\r\n\r\n setFilter(newFilter);\r\n };\r\n\r\n useEffect(() => {\r\n if (\r\n props.dataSetState[DATASET.APPLICATION_SCHEDULING_MOTIVES] === undefined ||\r\n props.dataSetState[DATASET.APPLICATION_SCHEDULING_MOTIVES]?.length === 0\r\n ) {\r\n props.getDataSet(DATASET.APPLICATION_SCHEDULING_MOTIVES);\r\n }\r\n\r\n if (props.dataSetState[DATASET.PROVINCES] === undefined || props.dataSetState[DATASET.PROVINCES] === []) {\r\n props.getDataSet(DATASET.PROVINCES);\r\n }\r\n\r\n if (\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS] === undefined ||\r\n props.dataSetState[DATASET.GOVERNMENT_PROGRAMS]?.length === 0\r\n ) {\r\n props.getGovernmentPrograms();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (\r\n props.authState?.province &&\r\n props.dataSetState[DATASET.PROVINCES] !== undefined &&\r\n props.dataSetState[DATASET.PROVINCES] !== []\r\n ) {\r\n var selectedProvince = getSelectOptionsElementByCode(\r\n props.dataSetState[DATASET.PROVINCES],\r\n props.authState.province\r\n );\r\n setValue(\"province\", selectedProvince);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.dataSetState[DATASET.PROVINCES]]);\r\n\r\n useEffect(() => {\r\n setValue(\"nameOfUser\", props.nameOfUser !== undefined ? props.nameOfUser : \"\");\r\n if (props.nameOfUser !== undefined) {\r\n handleSubmit(onSubmit)();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.nameOfUser]);\r\n\r\n useEffect(() => {\r\n if (props.match?.params?.applicationNumber !== undefined) {\r\n setValue(\r\n \"applicationNumber\",\r\n props.match?.params?.applicationNumber !== undefined ? props.match.params.applicationNumber : \"\"\r\n );\r\n handleSubmit(onSubmit)();\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.match?.params?.applicationNumber]);\r\n\r\n useEffect(() => {\r\n let temp_filter = filter;\r\n Object.assign(temp_filter, filter);\r\n temp_filter[\"pageIndex\"] = props.page;\r\n temp_filter[\"pageSize\"] = PAGINATION.PAGE_SIZE;\r\n props.getSchedulings(temp_filter);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.page]);\r\n\r\n return (\r\n \r\n \r\n
{intl.formatMessage(titles.Title_Admin_SchedulesManagement)}
\r\n
\r\n Filtros {\"(\"}\r\n {filterCounter}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n
\r\n \r\n \r\n \r\n Nº Candidatura\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"numApplication\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"applicationNumber\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Nº BI\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"NumBI\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"numBI\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Código do utilizador\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"userCode\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"userCode\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n \r\n \r\n Nome\r\n (\r\n {\r\n onChange(e);\r\n handleSetFilter(\"nameOfUser\", e.target.value);\r\n }}\r\n fullWidth\r\n autoComplete=\"off\"\r\n type=\"text\"\r\n placeholder=\"Pesquisar\"\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"nameOfUser\"] !== undefined,\r\n }),\r\n }}\r\n endAdornment={\r\n \r\n \r\n \r\n }\r\n />\r\n )}\r\n />\r\n \r\n \r\n\r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_SchedulingManagementFilter_SchedulingDateFrom)}\r\n \r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment().startOf(\"day\") ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isLessThanEndDate: (value) => {\r\n if (!getValues(\"endDate\") || errors[\"endDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"endDate\")._isAMomentObject &&\r\n value <= getValues(\"endDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateFromLessThanOrEqualToDateToField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"endDate\")) trigger(\"endDate\");\r\n trigger(\"startDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment().startOf(\"day\") &&\r\n (!getValues(\"endDate\") ||\r\n (getValues(\"endDate\")._isAMomentObject && currentDate <= getValues(\"endDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"startDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"startDate\"] !== undefined && (\r\n \r\n {errors[\"startDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_SchedulingManagementFilter_SchedulingDateTo)}\r\n \r\n {\r\n return (\r\n !value ||\r\n value._isAMomentObject ||\r\n intl.formatMessage(errorMessages.ErrorMessage_InvalidFormat)\r\n );\r\n },\r\n maxDate: (value) => {\r\n return (\r\n !value ||\r\n value <= moment() ||\r\n intl.formatMessage(messages.Message_Generic_DateLessThanOrEqualToTodayField)\r\n );\r\n },\r\n isGreaterThanStartDate: (value) => {\r\n if (!getValues(\"startDate\") || errors[\"startDate\"] !== undefined) return true;\r\n return (\r\n !value ||\r\n (value !== \"\" &&\r\n value._isAMomentObject &&\r\n getValues(\"startDate\")._isAMomentObject &&\r\n value >= getValues(\"startDate\")) ||\r\n intl.formatMessage(messages.Message_Generic_DateToGreaterThanOrEqualToDateFromField)\r\n );\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n {\r\n onChange(e);\r\n if (getValues(\"startDate\")) trigger(\"startDate\");\r\n trigger(\"endDate\");\r\n }}\r\n locale=\"pt\"\r\n dateFormat={\"DD/MM/YYYY\"}\r\n timeFormat={false}\r\n isValidDate={(currentDate, _) => {\r\n return (\r\n currentDate <= moment() &&\r\n (!getValues(\"startDate\") ||\r\n (getValues(\"startDate\")._isAMomentObject && currentDate >= getValues(\"startDate\")))\r\n );\r\n }}\r\n closeOnSelect={true}\r\n closeOnTab={true}\r\n closeOnClickOutside={true}\r\n inputProps={{\r\n placeholder: \"DD/MM/AAAA\",\r\n className: \"\",\r\n value: value && value._isAMomentObject ? value.format(\"DD/MM/YYYY\") : value ?? \"\",\r\n }}\r\n renderInput={(dateInputProps, open) => (\r\n {\r\n handleInputValidDate(e.target.value, dateInputProps.onChange);\r\n }}\r\n startAdornment={\r\n \r\n \r\n \r\n }\r\n classes={{\r\n notchedOutline: clsx({\r\n [classes.borderWarning]: errors[\"endDate\"] !== undefined,\r\n }),\r\n }}\r\n />\r\n )}\r\n />\r\n )}\r\n />\r\n {errors[\"endDate\"] !== undefined && (\r\n \r\n {errors[\"endDate\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_Subprogram_GovernmentProgramField)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Motivo\r\n \r\n \r\n \r\n \r\n \r\n Província\r\n \r\n \r\n \r\n \r\n\r\n {/* Butões de Pesquisa */}\r\n \r\n \r\n {\r\n cleanFilter();\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ClearFilters)}\r\n \r\n {checkOperationPermission(props.authState.operationsList, OPERATIONS.EXPORT_REPORTS) && (\r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.schedulingState?.total_records === 0\r\n ? `Limite mínimo de 1 e máximo de ${REPORT_CONSTS.MAX_RESULTS} resultados para exportar relatório`\r\n : \"\"\r\n }\r\n >\r\n \r\n REPORT_CONSTS.MAX_RESULTS ||\r\n props.schedulingState?.total_records === 0\r\n }\r\n style={{ marginRight: \"20px\" }}\r\n onClick={() => {\r\n props.getReport(\r\n schedulesReportMap(filter),\r\n REPORT_FILE_NAME.SCHEDULES_SEARCH_RESULTS +\r\n moment().format(\"YYYYMMDDHHmm\") +\r\n REPORT_FILE_NAME.EXCEL_EXTENSION\r\n );\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_ExportButton)}\r\n \r\n \r\n \r\n )}\r\n \r\n {intl.formatMessage(labels.Label_FilterSection_SearchButton)}\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getDataSet: (name, parentKeyValue) => dispatch(getDataSetByNameAction(name, parentKeyValue)),\r\n getSchedulings: (filterData) => dispatch(searchSchedulingsAction(filterData)),\r\n getReport: (data, reportFileName) => dispatch(getReportAction(data, reportFileName)),\r\n getGovernmentPrograms: () => dispatch(getGovernmentProgramsAction()),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(withRouter(FilterSection));\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\nimport { Link } from \"react-router-dom\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useTheme } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardHeader from \"@material-ui/core/CardHeader\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Table from \"@material-ui/core/Table\";\r\nimport TableBody from \"@material-ui/core/TableBody\";\r\nimport TableCell from \"@material-ui/core/TableCell\";\r\nimport TableContainer from \"@material-ui/core/TableContainer\";\r\nimport TableHead from \"@material-ui/core/TableHead\";\r\nimport TableRow from \"@material-ui/core/TableRow\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport Pagination from \"@material-ui/lab/Pagination\";\r\n// @material-ui/icons components\r\nimport ArrowForwardIosIcon from \"@material-ui/icons/ArrowForwardIos\";\r\n// core componentssrc\r\nimport TableStateChip from \"components/Cards/Tables/TableStateChip\";\r\nimport TableBackdrop from \"components/Backdrops/TableBackdrop/TableBackdrop\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic\";\r\nimport { ArrayUtils } from \"utils/array_utils\";\r\nimport { titles } from \"resources/resources\";\r\nimport { TABLE_STATE_CHIP_COLOR } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nconst tableHead = [\r\n \"Nº candidatura\",\r\n \"Nº BI\",\r\n \"Cód. Utilizador\",\r\n \"Nome\",\r\n \"Programa do Governo\",\r\n \"Província\",\r\n \"Motivo\",\r\n \"Data e Hora\",\r\n \"Concluído\",\r\n];\r\n\r\nfunction ResultSection(props) {\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const classes = useStylesGeneric();\r\n const [scheduleList, setScheduleList] = useState([]);\r\n\r\n useEffect(() => {\r\n if (!ArrayUtils.NullOrEmpty(props.schedulingState.result)) {\r\n setScheduleList(props.schedulingState.result.data);\r\n } else {\r\n setScheduleList([]);\r\n }\r\n }, [props.schedulingState.result]);\r\n\r\n const MapApplicationStateToTableChipColors = (applicationState) => {\r\n const greenChipArray = [1]; // Sim\r\n const redChipArray = [2]; // Não\r\n\r\n if (greenChipArray.includes(applicationState)) {\r\n return TABLE_STATE_CHIP_COLOR.GREEN;\r\n }\r\n if (redChipArray.includes(applicationState)) {\r\n return TABLE_STATE_CHIP_COLOR.RED;\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n
\r\n {intl.formatMessage(titles.Title_Admin_SchedulesManagement_ResultSection)}\r\n
\r\n
\r\n {\"(\"}\r\n {props.schedulingState?.total_records}\r\n {\")\"}\r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n {tableHead.map((prop, key) => (\r\n \r\n {prop}\r\n \r\n ))}\r\n \r\n Detalhes\r\n \r\n \r\n \r\n {scheduleList !== undefined && scheduleList.length > 0 && (\r\n \r\n {scheduleList?.map((prop, key) => (\r\n \r\n {prop.numApplication}\r\n {prop.numBI}\r\n {prop.userCode}\r\n\r\n \r\n {prop.nameOfUser}\r\n \r\n \r\n {prop.governmentProgram}\r\n \r\n \r\n {prop.provinceDescription}\r\n \r\n \r\n {prop.motive}\r\n \r\n {prop.submissionDate}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n\r\n {(scheduleList == null || scheduleList.length === 0) && !props.schedulingState.search_loading && (\r\n Não existem resultados disponíveis.\r\n )}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(ResultSection);\r\n","import React,{ useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\n\r\nimport Grid from \"@material-ui/core/Grid\";\r\n//import custom components\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FilterSection from \"./Sections/FilterSection\";\r\nimport ResultSection from \"./Sections/ResultSection\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction Schedules() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n { handleChangePage(undefined, value) }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(Schedules);\r\n","import React, { useState, useEffect } from \"react\";\r\nimport { useIntl } from \"react-intl\";\r\nimport { connect } from \"react-redux\";\r\nimport { Controller, useFormContext } from \"react-hook-form\";\r\nimport clsx from \"clsx\";\r\n// @material-ui/core components\r\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport { Card, CardContent } from \"@material-ui/core\";\r\nimport { CardHeader } from \"@material-ui/core\";\r\nimport FormGroup from \"@material-ui/core/FormGroup\";\r\nimport FormLabel from \"@material-ui/core/FormLabel\";\r\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\r\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\r\n// @material-ui/icons components\r\n\r\n//import custom components\r\nimport DropzoneField from \"components/FormFields/DropzoneField\";\r\nimport DisplayField from \"components/Fields/DisplayField\";\r\nimport GenericButton from \"components/Buttons/GenericButton\";\r\nimport { getSchedulingAction, getReportDocumentAction } from \"redux/actions/schedulingAction\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport { labels, messages, titles } from \"resources/resources\";\r\nimport { getHours, getDate } from \"utils/date_utils\";\r\nimport { SCHEDULE_STATES } from \"utils/consts\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction SchedulesSubmit(props) {\r\n const classes = useStylesGeneric();\r\n const theme = useTheme();\r\n const intl = useIntl();\r\n const { control } = useFormContext();\r\n const [isEditable, setIsEditable] = useState(false);\r\n const [data, setData] = useState({});\r\n const [showApplicationFields, setShowApplicationFields] = useState(true);\r\n const [fileState, setFile] = useState([]);\r\n\r\n useEffect(() => {\r\n if (props.scheduleId) {\r\n props.getScheduling(props.scheduleId);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.scheduleId]);\r\n\r\n useEffect(() => {\r\n if (props.schedulingState.schedule_detail !== undefined && props.schedulingState.schedule_detail !== {}) {\r\n setData(props.schedulingState.schedule_detail);\r\n\r\n setIsEditable(props.schedulingState.schedule_detail.scheduleState !== SCHEDULE_STATES.SIM);\r\n if (\r\n props.schedulingState.schedule_detail.reportDocument !== undefined &&\r\n props.schedulingState.schedule_detail.reportDocument !== null\r\n ) {\r\n setFile(props.schedulingState.schedule_detail.reportDocument);\r\n } else setFile([]);\r\n\r\n if (props.schedulingState.schedule_detail.report)\r\n props.setValue(\"scheduleReport\", props.schedulingState.schedule_detail.report);\r\n else props.setValue(\"scheduleReport\", \"\");\r\n\r\n if (props.schedulingState.schedule_detail.description)\r\n props.setValue(\"scheduleDescription\", props.schedulingState.schedule_detail.description);\r\n else props.setValue(\"scheduleDescription\", \"\");\r\n\r\n if (!props.schedulingState.schedule_detail.applicationNumber) setShowApplicationFields(false);\r\n else setShowApplicationFields(true);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.schedulingState.schedule_detail]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n {/*New line sm */}\r\n {showApplicationFields ? (\r\n <>\r\n \r\n \r\n \r\n \r\n ) : (\r\n <>\r\n \r\n \r\n )}\r\n {/*New line md */}\r\n \r\n {showApplicationFields ? (\r\n \r\n ) : (\r\n <>\r\n )}\r\n\r\n \r\n \r\n {/* Relatório */}\r\n \r\n \r\n Descrição\r\n {\r\n if (!props.getValues(\"fileUpload\") && !value)\r\n return intl.formatMessage(messages.Message_Generic_MandatoryField);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n {props.errors[\"scheduleDescription\"] !== undefined && (\r\n \r\n {props.errors[\"scheduleDescription\"].message}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Admin_SchedulingTab_ObservationsField)}\r\n {\r\n if (!props.getValues(\"fileUpload\") && !value)\r\n return intl.formatMessage(messages.Message_Generic_MandatoryField);\r\n return true;\r\n },\r\n },\r\n }}\r\n render={({ field: { onChange, name, value } }) => (\r\n \r\n )}\r\n />\r\n {props.errors[\"scheduleReport\"] !== undefined && (\r\n \r\n {props.errors[\"scheduleReport\"].message}\r\n \r\n )}\r\n \r\n \r\n\r\n {fileState.length !== 0 && (\r\n \r\n \r\n Relatório\r\n \r\n {\r\n props.getReportDocument(props.schedulingState.schedule_detail.id, fileState);\r\n }}\r\n >\r\n {intl.formatMessage(labels.Label_Download)}\r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {!isEditable && fileState.length === 0 && (\r\n \r\n \r\n Relatório\r\n Não existem documentos carregados nesta candidatura.\r\n \r\n \r\n )}\r\n {isEditable && (\r\n \r\n {intl.formatMessage(labels.Label_Admin_ScheduleDetails_ReportField)}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n {isEditable ? (\r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(labels.Label_Generic_Conclude)}\r\n \r\n \r\n \r\n \r\n ) : (\r\n <>\r\n )}\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n getScheduling: (schedulingNum) => dispatch(getSchedulingAction(schedulingNum)),\r\n getReportDocument: (scheduleId, docName) => dispatch(getReportDocumentAction(scheduleId, docName)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(SchedulesSubmit);\r\n","import { React, useState, useEffect } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { useForm, FormProvider } from \"react-hook-form\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Box from \"@material-ui/core/Box\";\r\n//custom components\r\nimport SchedulesSubmit from \"./SchedulesSubmit\";\r\nimport PageTitleHeader from \"components/Headers/PageTitleHeader.js\";\r\nimport LocationHeader from \"components/Headers/LocationHeader.js\";\r\nimport GenericBackdrop from \"components/Backdrops/GenericBackdrop\";\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport useScrollDirection from \"hooks/useScrollDirection\";\r\nimport { updateSchedulingAction } from \"redux/actions/schedulingAction\";\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction SchedulesDetails(props) {\r\n const classes = useStylesGeneric();\r\n // const intl = useIntl();\r\n const history = useHistory();\r\n const scrollDirection = useScrollDirection();\r\n\r\n const [scheduleNumber, setScheduleNumber] = useState(\"\");\r\n const [applicationNumber, setApplicationNumber] = useState(\"\");\r\n\r\n const methods = useForm({\r\n mode: \"onChange\",\r\n });\r\n\r\n useEffect(() => {\r\n setScheduleNumber(props.match.params.scheduleNumber);\r\n }, [props.match.params.scheduleNumber]);\r\n\r\n useEffect(() => {\r\n if (props.schedulingState?.schedule_detail?.applicationNumber)\r\n setApplicationNumber(props.schedulingState?.schedule_detail?.applicationNumber);\r\n else setApplicationNumber(props.schedulingState?.schedule_detail?.nameOfUser);\r\n }, [props.schedulingState.schedule_detail]);\r\n\r\n const onSubmit = (data) => {\r\n const formData = new FormData();\r\n formData.append(\"schedulingNumber\", scheduleNumber);\r\n formData.append(\"applicationNumber\", scheduleNumber);\r\n formData.append(\"report\", data.scheduleReport);\r\n if (data.fileUpload !== undefined) {\r\n formData.append(\"reportDocument\", data.fileUpload[0]);\r\n }\r\n\r\n props.updateScheduling(formData, history.goBack);\r\n };\r\n\r\n return (\r\n <>\r\n {scrollDirection === \"up\" && (\r\n
\r\n \r\n
\r\n )}\r\n\r\n \r\n\r\n \r\n
\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = (dispatch) => ({\r\n updateScheduling: (updateSchedulingCommand, onSuccess) =>\r\n dispatch(updateSchedulingAction(updateSchedulingCommand, onSuccess)),\r\n});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(SchedulesDetails);\r\n","import boxShadows from \"assets/theme/box-shadow.js\";\r\n\r\nconst componentStyles = (theme) => ({\r\n containerRoot: {\r\n [theme.breakpoints.up(\"lg\")]: {\r\n paddingLeft: \"3.5rem\",\r\n paddingRight: \"3.5rem\",\r\n },\r\n paddingTop: \"12rem\",\r\n },\r\n cardRoot: {\r\n boxShadow: boxShadows.boxShadow + \"!important\",\r\n },\r\n pageTitle: {\r\n fontStyle: \"normal\",\r\n fontWeight: \"600\",\r\n fontSize: \"26px\",\r\n lineHeight: \"40px\",\r\n alignItems: \"center\",\r\n color: theme.palette.primary.main,\r\n marginBottom: \"20px\",\r\n },\r\n descriptionRoot: {\r\n marginBottom: \"1.5rem\",\r\n textAlign: \"justify\",\r\n },\r\n itemRoot: {\r\n marginTop: \"0.75rem\",\r\n marginBottom: \"0.75rem\",\r\n },\r\n linkRoot: {\r\n color: theme.palette.black.main,\r\n \"&:hover\": {\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n },\r\n iframe: {\r\n border: 0,\r\n width: \"100%\",\r\n height: \"100%\",\r\n minHeight: \"300px\",\r\n },\r\n phoneNumberGrey: {\r\n color: theme.palette.gray[500],\r\n },\r\n\r\n boxMargin: {\r\n marginTop: \"20px\",\r\n marginBottom: \"10px\",\r\n },\r\n title: {\r\n color: theme.palette.black.main,\r\n marginBottom: \"60px\",\r\n },\r\n content: {\r\n whiteSpace: \"pre-line\",\r\n },\r\n\r\n linkStandard: {\r\n cursor: \"pointer\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"400\",\r\n fontSize: \"1rem\",\r\n marginLeft: \"0.25rem\",\r\n marginRight: \"0.25rem\",\r\n paddingLeft: \"0.5rem\",\r\n paddingRight: \"0.5rem\",\r\n paddingTop: \"0.25rem\",\r\n paddingBottom: \"0.25rem\",\r\n transition: \"all .15s linear\",\r\n color: theme.palette.grey[900],\r\n margin: \"0\",\r\n \"& i\": {\r\n marginRight: \"0.25rem\",\r\n },\r\n \"&:hover\": {\r\n color: theme.palette.primary.greyBlue,\r\n fontWeight: \"800\",\r\n },\r\n },\r\n helpIcon: {\r\n width: \"35px\",\r\n height: \"35px\",\r\n color: theme.palette.primary.greyBlue,\r\n },\r\n fontWeight600: {\r\n fontWeight: \"600\",\r\n },\r\n fontWeight700: {\r\n fontWeight: \"700\",\r\n },\r\n displayBlock: {\r\n display: \"block\",\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import { React } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\nimport { useIntl } from \"react-intl\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\nimport Container from \"@material-ui/core/Container\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport CardContent from \"@material-ui/core/CardContent\";\r\nimport List from \"@material-ui/core/List\";\r\nimport ListItem from \"@material-ui/core/ListItem\";\r\nimport ListSubheader from \"@material-ui/core/ListSubheader\";\r\nimport Accordion from \"@material-ui/core/Accordion\";\r\nimport AccordionSummary from \"@material-ui/core/AccordionSummary\";\r\nimport AccordionDetails from \"@material-ui/core/AccordionDetails\";\r\n// @material-ui/icons components\r\nimport HelpIcon from \"@material-ui/icons/Help\";\r\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandMore\";\r\n//import custom components\r\n\r\nimport componentStyles from \"assets/theme/views/admin/static-page.js\";\r\nimport { labels, titles } from \"resources/resources\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nfunction QuickGuidesPage() {\r\n const classes = useStyles();\r\n const intl = useIntl();\r\n\r\n const areas = [\r\n {\r\n name: intl.formatMessage(labels.Label_QuickGuides_360Vision),\r\n quickGuides: [\r\n {\r\n title: intl.formatMessage(labels.Label_QuickGuides_CheckUserData),\r\n path: \"INEFOP_360.pdf\",\r\n },\r\n ],\r\n },\r\n {\r\n name: intl.formatMessage(labels.Label_QuickGuides_InternshipsFollowup),\r\n quickGuides: [\r\n {\r\n title: intl.formatMessage(labels.Label_QuickGuides_InternshipsFollowup_Citizen),\r\n path: \"Followup_citizen.pdf\",\r\n },\r\n {\r\n title: intl.formatMessage(labels.Label_QuickGuides_InternshipsFollowup_Company),\r\n path: \"Followup_company.pdf\",\r\n },\r\n ],\r\n },\r\n // {\r\n // name: \"Manuais\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Manual BackOffice\",\r\n // path: \"Manual_BackOffice.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Utilizadores Backoffice\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como criar utilizador de BackOffice\",\r\n // path: \"Como_Criar_Utilizador_BO.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de criação de utilizador de BackOffice\",\r\n // path: \"O_Processo_Criacao_Utilizador_BO.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Kits profissionais\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como criar caracterizar e gerir kits profissionais\",\r\n // path: \"Como_Caracterizar_Gerir_Kits_Profissionais.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de caracterização e gestão de kits profissionais\",\r\n // path: \"O_Processo_Caracterizacao_Gestao_Kits_Profissionais.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Subprograma PAPE\",\r\n // subAreas: [\r\n // {\r\n // name: \"Caracterizar subprograma PAPE\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como caracterizar um subprograma\",\r\n // path: \"Como_Caracterizar_SubProgramas.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de caracterização de um subprograma\",\r\n // path: \"O_Processo_Caracterizacao_SubProgramas.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Avaliar candidatura PAPE\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como avaliar uma candidatura a um subprograma\",\r\n // path: \"Como_Avaliar_Candidaturas.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de avaliação de uma candidatura a um subprograma\",\r\n // path: \"O_Processo_Avaliacao_Candidaturas.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Associar candidato a Estágio PAPE\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como associar candidato a estágio PAPE\",\r\n // path: \"Como_Associar_Candidatos_Estagios.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de associação de candidato a Estágio PAPE\",\r\n // path: \"O_Processo_Associar_Candidatos_Estagios.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Backoffice do Bancos\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como gerir o microcrédito no BackOffice dos Bancos\",\r\n // path: \"Como_Gerir_Microcredito_BackOffice_Banco.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de gestão de microcrédito no BackOffice dos Bancos\",\r\n // path: \"O_Processo_Gestao_Microcredito_BackOffice_Bancos.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Ofertas de emprego/estágio profissional\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como monitorizar ofertas de emprego\",\r\n // path: \"Como_Monitorizar_Ofertas_Emprego.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de monitorização ofertas de emprego\",\r\n // path: \"O_Processo_Monitorizacao_Ofertas_Emprego.pdf\",\r\n // },\r\n // ],\r\n // },\r\n // {\r\n // name: \"Disseminação de Informação\",\r\n // quickGuides: [\r\n // {\r\n // title: \"Como gerir a disseminação de informação\",\r\n // path: \"Como Gerir_Disseminacao_Informacao.pdf\",\r\n // },\r\n // {\r\n // title: \"O Processo de gestão da disseminação de informação\",\r\n // path: \"O_Processo_Gestao_Disseminacao_Informacao.pdf\",\r\n // },\r\n // ],\r\n // },\r\n ];\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n {intl.formatMessage(titles.Title_QuickGuides)}\r\n \r\n\r\n \r\n \r\n {areas.map((item, key) => (\r\n \r\n }\r\n aria-controls={key + \"-content\"}\r\n id={key + \"-header\"}\r\n >\r\n \r\n {item.name}\r\n \r\n \r\n \r\n {item.quickGuides?.map((item, key) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {item.title}\r\n \r\n \r\n \r\n \r\n ))}\r\n {item.subAreas?.map((item, key) => (\r\n \r\n }\r\n aria-controls={key + \"-content\"}\r\n id={key + \"-header\"}\r\n >\r\n \r\n {item.name}\r\n \r\n \r\n \r\n {item.quickGuides?.map((item, key) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {item.title}\r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n ))}\r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nexport default connect(mapStateToProps)(QuickGuidesPage);\r\n","import React, { useState } from \"react\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\n\r\nimport componentStylesGeneric from \"assets/theme/views/admin/generic.js\";\r\nimport FOUsersFilterSection from \"views/admin/UserManagement/FrontOffice/Sections/FilterSectionFo\";\r\nimport FOUsersResultSection from \"views/admin/UserManagement/FrontOffice/Sections/ResultSectionFo\";\r\n\r\n\r\nconst useStylesGeneric = makeStyles(componentStylesGeneric);\r\n\r\nfunction NavbarAdvancedSearch() {\r\n const classes = useStylesGeneric();\r\n const [page, setPage] = useState(1);\r\n\r\n const handleChangePage = (event, value) => {\r\n setPage(value);\r\n };\r\n\r\n return (\r\n \r\n \r\n {\r\n handleChangePage(undefined, value);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst mapStateToProps = (state) => ({ ...state });\r\n\r\nconst mapDispatchToProps = () => ({});\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(NavbarAdvancedSearch);\r\n","import Dashboard from \"views/admin/Homepage/Dashboard.js\";\r\nimport Notifications from \"views/admin/Components/Notifications.js\";\r\nimport Elements from \"views/admin/Forms/Elements.js\";\r\nimport Components from \"views/admin/Forms/Components.js\";\r\nimport Validation from \"views/admin/Forms/Validation.js\";\r\nimport Login from \"views/auth/Login.js\";\r\nimport ResetPassword from \"views/auth/ResetPassword\";\r\n// @material-ui/icons components\r\nimport BubbleChart from \"@material-ui/icons/BubbleChart\";\r\nimport Dns from \"@material-ui/icons/Dns\";\r\nimport FlashOn from \"@material-ui/icons/FlashOn\";\r\nimport House from \"@material-ui/icons/House\";\r\nimport ListAlt from \"@material-ui/icons/ListAlt\";\r\nimport Palette from \"@material-ui/icons/Palette\";\r\nimport PermMedia from \"@material-ui/icons/PermMedia\";\r\nimport Applications from \"views/admin/Applications/Applications\";\r\nimport ApplicationDetails from \"views/admin/Applications/ApplicationDetail\";\r\nimport SubPrograms from \"views/admin/Subprogram/Subprograms\";\r\nimport SubProgramCreate from \"views/admin/Subprogram/Create\";\r\nimport SubProgramDetails from \"views/admin/Subprogram/SubprogramDetails\";\r\nimport CharacterizeKit from \"views/admin/ProfessionalKits/CharacterizeKit/CharacterizeKit\";\r\nimport KitDetails from \"views/admin/ProfessionalKits/CharacterizeKit/KitDetails\";\r\nimport ProfessionalKits from \"views/admin/ProfessionalKits/KitsManagement/ProfessionalKits\";\r\nimport Stocks from \"views/admin/ProfessionalKits/Stocks/Stocks\";\r\nimport StockDetails from \"views/admin/ProfessionalKits/Stocks/Details/StockDetails\";\r\n\r\nimport UsersBackOffice from \"views/admin/UserManagement/BackOffice/UsersBackOffice\";\r\nimport UsersFrontOffice from \"views/admin/UserManagement/FrontOffice/UsersFrontOffice\";\r\nimport BackOfficeUserCreation from \"views/admin/UserManagement/BackOffice/BackOfficeUserCreation\";\r\nimport CreateIndividualUser from \"views/admin/UserManagement/FrontOffice/IndividualUser/CreateIndividualUser\";\r\nimport CreateEnterpriseUser from \"views/admin/UserManagement/FrontOffice/EnterpriseUser/CreateEnterpriseUser\";\r\nimport EditIndividualUser from \"views/admin/UserManagement/FrontOffice/IndividualUser/EditIndividualUser\";\r\nimport EditEnterpriseUser from \"views/admin/UserManagement/FrontOffice/EnterpriseUser/EditEnterpriseUser\";\r\nimport EditBackOfficeUser from \"views/admin/UserManagement/BackOffice/EditBackOfficeUser\";\r\n\r\nimport UserProfile from \"views/admin/UserArea/UserProfile\";\r\nimport Loans from \"views/admin/Loans/Loans\";\r\nimport LoanDetails from \"views/admin/Loans/LoanDetails\";\r\n\r\nimport InformationDissemination from \"views/admin/InformationDissemination/InformationDissemination\";\r\nimport InformationDisseminationCreate from \"views/admin/InformationDissemination/Create\";\r\nimport InformationDisseminationEdit from \"views/admin/InformationDissemination/Edit\";\r\nimport InformationDisseminationDetails from \"views/admin/InformationDissemination/Details\";\r\n\r\nimport OpportunitiesList from \"views/admin/Opportunities/Opportunities/OpportunitiesList\";\r\nimport OpportunityApplicationsList from \"views/admin/Opportunities/OpportunityApplications/OpportunityApplicationsList\";\r\nimport OpportunityApplicationsFollowUpList from \"views/admin/Opportunities/OpportunityApplicationsFollowUp/OpportunityApplicationsFollowUpList\";\r\nimport OpportunityApplicationFollowUpDetails from \"views/admin/Opportunities/OpportunityApplicationsFollowUp/OpportunityApplicationFollowUpDetails\";\r\nimport OpportunityCreate from \"views/admin/Opportunities/Opportunities/OpportunityCreate\";\r\nimport OpportunityDetails from \"views/admin/Opportunities/Opportunities/OpportunityDetails\";\r\nimport CandidateDetails from \"views/admin/Opportunities/OpportunityCandidates/CandidateDetails\";\r\n\r\nimport UserOverview from \"views/admin/UserOverview/UserOverview\";\r\n\r\nimport Schedules from \"views/admin/Schedules/Schedules\";\r\nimport SchedulesDetails from \"views/admin/Schedules/SchedulesDetails\";\r\nimport QuickGuidesPage from \"views/admin/Components/QuickGuidesPage\";\r\nimport NavbarAdvancedSearch from \"views/admin/AdvancedSearch/NavbarAdvancedSearch\";\r\n\r\nvar routes = [\r\n {\r\n collapse: true,\r\n name: \"Dashboards\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"dashboardsCollapse\",\r\n views: [\r\n {\r\n path: \"/dashboard\",\r\n name: \"Dashboard\",\r\n miniName: \"D\",\r\n component: Dashboard,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"SearchBars\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"searchCollapse\",\r\n views: [\r\n {\r\n path: \"/advanced-search\",\r\n name: \"NavbarAdvancedSearch\",\r\n miniName: \"S\",\r\n component: NavbarAdvancedSearch,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"Opportunity\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"OpportunityCollapse\",\r\n views: [\r\n {\r\n path: \"/opportunity-management/:opportunityState?\",\r\n name: \"Emprego e Estágio Professional\",\r\n miniName: \"M\",\r\n component: OpportunitiesList,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/opportunity-applications-management\",\r\n name: \"Candidaturas a Emprego e Estágio Professional\",\r\n miniName: \"M\",\r\n component: OpportunityApplicationsList,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/opportunity-applications-followup-management/:hasUnapprovedFeedbackReport?\",\r\n name: \"Acompanhamento de candidaturas a Emprego e Estágio Professional\",\r\n miniName: \"M\",\r\n component: OpportunityApplicationsFollowUpList,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/opportunity-create\",\r\n name: \"Criação\",\r\n miniName: \"M\",\r\n component: OpportunityCreate,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/opportunity-details/:opportunityId\",\r\n name: \"Detalhes\",\r\n miniName: \"D\",\r\n component: OpportunityDetails,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/candidate-details/:alternateKey\",\r\n name: \"Detalhes\",\r\n miniName: \"D\",\r\n component: CandidateDetails,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/opportunity-applications-followup-details/:candidateCode\",\r\n name: \"Acompanhamento de candidaturas a Emprego e Estágio Professional\",\r\n miniName: \"M\",\r\n component: OpportunityApplicationFollowUpDetails,\r\n layout: \"/admin\",\r\n }, \r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"Loans\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"loansCollapse\",\r\n views: [\r\n {\r\n path: \"/loans-management\",\r\n name: \"Empréstimos\",\r\n miniName: \"D\",\r\n component: Loans,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/loan-detail/:loanId\",\r\n name: \"Detalhes do Empréstimo\",\r\n miniName: \"L\",\r\n component: LoanDetails,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"InformationDissemination\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"informationDisseminationCollapse\",\r\n views: [\r\n {\r\n path: \"/informationdissemination-management\",\r\n name: \"Criação Informação\",\r\n miniName: \"M\",\r\n component: InformationDissemination,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/informationdissemination-create\",\r\n name: \"Criar\",\r\n miniName: \"C\",\r\n component: InformationDisseminationCreate,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/informationdissemination-edit/:infoKey\",\r\n name: \"Editar\",\r\n miniName: \"E\",\r\n component: InformationDisseminationEdit,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/informationdissemination-details/:infoKey\",\r\n name: \"Detalhes\",\r\n miniName: \"D\",\r\n component: InformationDisseminationDetails,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"Agendamentos\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"agendamentosCollapse\",\r\n views: [\r\n {\r\n path: \"/schedules-management/:applicationNumber?\",\r\n name: \"Agendamentos\",\r\n miniName: \"A\",\r\n component: Schedules,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/agendamento/:scheduleNumber\",\r\n name: \"Detalhes do Agendamento\",\r\n miniName: \"L\",\r\n component: SchedulesDetails,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"Examples\",\r\n icon: PermMedia,\r\n iconColor: \"Warning\",\r\n state: \"examplesCollapse\",\r\n invisible: true,\r\n views: [\r\n {\r\n path: \"/login\",\r\n name: \"Login\",\r\n miniName: \"L\",\r\n component: Login,\r\n layout: \"/auth\",\r\n },\r\n {\r\n path: \"/ResetPassword\",\r\n name: \"ResetPassword\",\r\n miniName: \"RP\",\r\n component: ResetPassword,\r\n layout: \"/auth\",\r\n },\r\n ],\r\n },\r\n {\r\n path: \"/notifications\",\r\n name: \"Notifications\",\r\n miniName: \"N\",\r\n component: Notifications,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/quick-guides\",\r\n name: \"QuickGuides\",\r\n miniName: \"QG\",\r\n component: QuickGuidesPage,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/myProfile\",\r\n name: \"My Profile\",\r\n miniName: \"P\",\r\n component: UserProfile,\r\n layout: \"/admin\",\r\n },\r\n {\r\n collapse: true,\r\n name: \"Forms\",\r\n icon: ListAlt,\r\n iconColor: \"ErrorLight\",\r\n state: \"formsCollapse\",\r\n views: [\r\n {\r\n path: \"/elements\",\r\n name: \"Elements\",\r\n miniName: \"E\",\r\n component: Elements,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/components\",\r\n name: \"Components\",\r\n miniName: \"C\",\r\n component: Components,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/validation\",\r\n name: \"Validation\",\r\n miniName: \"V\",\r\n component: Validation,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"Candidaturas\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"applicationsCollapse\",\r\n views: [\r\n {\r\n path: \"/applications-management/:numBI?\",\r\n name: \"Gestão de Candidaturas\",\r\n miniName: \"L\",\r\n component: Applications,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/application-detail/:applicationNumber\",\r\n name: \"Detalhes da Candidatura\",\r\n miniName: \"D\",\r\n component: ApplicationDetails,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"Gestão Utilizadores\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"userManagement\",\r\n views: [\r\n {\r\n path: \"/backofficeusers-management\",\r\n name: \"Gestão de utilizadores Backoffice\",\r\n miniName: \"L\",\r\n component: UsersBackOffice,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/frontofficeusers-management/:typeOfUser?\",\r\n name: \"Gestão de utilizadores Frontoffice\",\r\n miniName: \"C\",\r\n component: UsersFrontOffice,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/backofficeusers-create\",\r\n name: \"Criar utilizador Backoffice\",\r\n miniName: \"L\",\r\n component: BackOfficeUserCreation,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/frontOfficeUsers-individual-create\",\r\n name: \"Criar utilizador Individual\",\r\n miniName: \"L\",\r\n component: CreateIndividualUser,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/frontOfficeUsers-enterprise-create\",\r\n name: \"Criar utilizador Empresa\",\r\n miniName: \"L\",\r\n component: CreateEnterpriseUser,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/frontOfficeUsers-individual-edit/:userId\",\r\n name: \"Edit Utilizador Individual\",\r\n miniName: \"E\",\r\n component: EditIndividualUser,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/frontOfficeUsers-enterprise-edit/:userId\",\r\n name: \"Edit Utilizador Empresa\",\r\n miniName: \"E\",\r\n component: EditEnterpriseUser,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/backofficeusers-edit/:userId\",\r\n name: \"Edit Utilizador \",\r\n miniName: \"E\",\r\n component: EditBackOfficeUser,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"Subprogramas\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"subProgramsCollapse\",\r\n views: [\r\n {\r\n path: \"/subprograms-management\",\r\n name: \"Gestão de Subprogramas\",\r\n miniName: \"L\",\r\n component: SubPrograms,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/subprograms-create\",\r\n name: \"Criar\",\r\n miniName: \"C\",\r\n component: SubProgramCreate,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/subprograms-detail/:subprogramNumber\",\r\n name: \"Detalhes do Subprograma\",\r\n miniName: \"D\",\r\n component: SubProgramDetails,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"ProfessionalKits\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"professionalKitsCollapse\",\r\n views: [\r\n {\r\n path: \"/characterize-kit\",\r\n name: \"Caracterizar Kit\",\r\n miniName: \"C\",\r\n component: CharacterizeKit,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/kit-detail/:professionalKitId\",\r\n name: \"Detalhes do Kit\",\r\n miniName: \"D\",\r\n component: KitDetails,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/kit-management\",\r\n name: \"Gestão de Kits\",\r\n miniName: \"L\",\r\n component: ProfessionalKits,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/stocks-management\",\r\n name: \"Gestão de Stocks\",\r\n miniName: \"L\",\r\n component: Stocks,\r\n layout: \"/admin\",\r\n },\r\n {\r\n path: \"/stock-detail/:warehouseStockId\",\r\n name: \"Detalhes do Stock\",\r\n miniName: \"L\",\r\n component: StockDetails,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n collapse: true,\r\n name: \"UserOverview\",\r\n icon: House,\r\n iconColor: \"Primary\",\r\n state: \"userOverviewCollapse\",\r\n views: [\r\n {\r\n path: \"/user-overview/:userId\",\r\n name: \"UserOverview\",\r\n miniName: \"UO\",\r\n component: UserOverview,\r\n layout: \"/admin\",\r\n },\r\n ],\r\n },\r\n {\r\n divider: true,\r\n },\r\n {\r\n title: \"Documentation\",\r\n },\r\n {\r\n href: \"https://www.creative-tim.com/learning-lab/material-ui/overview/argon-dashboard?ref=admui-admin-sidebar\",\r\n name: \"Getting started\",\r\n icon: FlashOn,\r\n },\r\n {\r\n href: \"https://www.creative-tim.com/learning-lab/material-ui/colors/argon-dashboard?ref=admui-admin-sidebar\",\r\n name: \"Foundation\",\r\n icon: Palette,\r\n },\r\n {\r\n href: \"https://www.creative-tim.com/learning-lab/material-ui/alerts/argon-dashboard?ref=admui-admin-sidebar\",\r\n name: \"Components\",\r\n icon: Dns,\r\n },\r\n {\r\n href: \"https://www.creative-tim.com/learning-lab/material-ui/google-maps/argon-dashboard?ref=admui-admin-sidebar\",\r\n name: \"Plugins\",\r\n icon: BubbleChart,\r\n },\r\n];\r\nexport default routes;\r\n","const componentStyles = (theme) => ({\r\n mainContent: {\r\n maxWidth: \"100%\",\r\n },\r\n containerRoot: {\r\n [theme.breakpoints.up(\"md\")]: {\r\n paddingLeft: \"30px\",\r\n paddingRight: \"30px\",\r\n },\r\n },\r\n});\r\n\r\nexport default componentStyles;\r\n","import React from \"react\";\r\nimport { useLocation, Route, Switch, Redirect } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\n// @material-ui/core components\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Box from \"@material-ui/core/Box\";\r\n\r\n// core components\r\nimport AdminNavbar from \"components/Navbars/AdminNavbar\";\r\nimport AdminNavbarAlternative from \"components/Navbars/AdminNavbarAlternative.js\";\r\nimport routes from \"routes.js\";\r\n\r\nimport componentStyles from \"assets/theme/layouts/admin.js\";\r\n\r\nconst useStyles = makeStyles(componentStyles);\r\n\r\nconst Admin = (props) => {\r\n const classes = useStyles();\r\n const location = useLocation();\r\n\r\n React.useEffect(() => {\r\n document.documentElement.scrollTop = 0;\r\n document.scrollingElement.scrollTop = 0;\r\n }, [location]);\r\n\r\n const getRoutes = (routes) => {\r\n return routes.map((prop, key) => {\r\n if (prop.collapse) {\r\n return getRoutes(prop.views);\r\n }\r\n if (prop.layout === \"/admin\") {\r\n return (\r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n });\r\n };\r\n\r\n if (props.authState.loggedIn === undefined || !props.authState.loggedIn) {\r\n return ;\r\n } else {\r\n return (\r\n <>\r\n \r\n \r\n {location.pathname === \"/admin/alternative-dashboard\" ? (\r\n \r\n ) : (\r\n \r\n )}\r\n\r\n \r\n {getRoutes(routes)}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n};\r\n\r\n// export default Auth;\r\nconst mapStateToProps = (state) => ({\r\n ...state,\r\n});\r\n\r\nexport default connect(mapStateToProps)(Admin);\r\n","import React from \"react\";\r\nimport { Route, Switch, Redirect } from \"react-router-dom\";\r\nimport { connect } from \"react-redux\";\r\n\r\nimport routes from \"routes.js\";\r\n\r\nconst Auth = (props) => {\r\n const mainContent = React.useRef(null);\r\n\r\n const getRoutes = (routes) => {\r\n return routes.map((prop, key) => {\r\n if (prop.collapse) {\r\n return getRoutes(prop.views);\r\n }\r\n if (prop.layout === \"/auth\") {\r\n return (\r\n \r\n );\r\n } else {\r\n return null;\r\n }\r\n });\r\n };\r\n\r\n if (props.authState.loggedIn !== undefined && props.authState.loggedIn && !props.authState.mustConfirmEmail) {\r\n return ;\r\n } else {\r\n return (\r\n <>\r\n
\r\n \r\n {getRoutes(routes)}\r\n \r\n \r\n
\r\n \r\n );\r\n }\r\n};\r\n\r\n// export default Auth;\r\nconst mapStateToProps = (state) => ({\r\n ...state,\r\n});\r\nexport default connect(mapStateToProps, {})(Auth);\r\n","export default __webpack_public_path__ + \"static/media/Lato-Bold.636be8de.ttf\";","export default __webpack_public_path__ + \"static/media/Lato-Regular.9d883d54.ttf\";","import { USERS, AUTH } from \"utils/actionsConsts\";\r\n\r\nconst authReducer = (\r\n state = {\r\n email: \"\",\r\n loggedIn: false,\r\n token: \"\",\r\n login_loading: false,\r\n reset_password_loading: false,\r\n session_expired: false,\r\n lastLoginDate: \"\",\r\n showNews: false,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case \"register\":\r\n return { ...state, loggedIn: action.payload };\r\n case \"login_loading\":\r\n return { ...state, login_loading: action.payload };\r\n case \"login\":\r\n return {\r\n ...state,\r\n email: action.payload.email,\r\n loggedIn: action.payload.succeeded,\r\n token: action.payload.token,\r\n refreshToken: action.payload.refreshToken,\r\n login_error: !action.payload.succeeded,\r\n login_loading: false,\r\n name: action.payload.name,\r\n lastName: action.payload.lastName,\r\n province: action.payload.province,\r\n photo: action.payload.photo,\r\n operationsList: action.payload.operationsList,\r\n userPermissionSettings: action.payload.userPermissionSettings,\r\n session_expired: false,\r\n mustConfirmEmail: action.payload.mustConfirmEmail,\r\n lastLoginDate: action.payload.lastLoginDate,\r\n };\r\n case USERS.LAST_LOGIN:\r\n return {\r\n ...state,\r\n lastLoginDate: action.payload.lastLoginDate,\r\n showNews: action.payload.showNews,\r\n news: action.payload.news,\r\n };\r\n case \"updateProfile\":\r\n var splitName = action.payload.name.split(\" \");\r\n var splitSurname = action.payload.lastName.split(\" \");\r\n return {\r\n ...state,\r\n name: splitName[0],\r\n lastName: splitSurname[splitSurname.length - 1],\r\n photo: action.payload.photo ?? state.photo,\r\n };\r\n case \"logout\":\r\n console.log(\"LOGOUT\");\r\n return {\r\n ...state,\r\n loggedIn: false,\r\n login_error: false,\r\n token: \"\",\r\n login_loading: false,\r\n reset_password_loading: false,\r\n };\r\n\r\n case \"refresh-token\":\r\n return {\r\n ...state,\r\n refreshToken: action.payload.refreshToken,\r\n token: action.payload.jwtToken,\r\n };\r\n case AUTH.SESSION_EXPIRED:\r\n return { ...state, loggedIn: false, session_expired: true };\r\n case AUTH.RESET_SESSION_EXPIRED:\r\n return { ...state, session_expired: false };\r\n\r\n case AUTH.RECOVER_PASSWORD:\r\n return {\r\n ...state,\r\n sent: action.payload.sent,\r\n recover_password_loading: false,\r\n };\r\n case AUTH.RECOVER_PASSWORD_LOADING:\r\n return {\r\n ...state,\r\n recover_password_loading: action.payload,\r\n };\r\n case AUTH.RESET_RECOVER_STATE:\r\n return {\r\n ...state,\r\n sent: false,\r\n recover_password_loading: false,\r\n };\r\n\r\n case AUTH.RESET_PASSWORD_LOADING:\r\n return {\r\n ...state,\r\n reset_password_loading: action.payload,\r\n };\r\n case AUTH.RESET_PASSWORD:\r\n return {\r\n ...state,\r\n reset_ok: true,\r\n sent: false,\r\n reset_password_loading: false,\r\n };\r\n case AUTH.RESET_RESET_PASSWORD_STATE:\r\n return {\r\n ...state,\r\n reset_ok: false,\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default authReducer;\r\n","import { DATASET_ACTIONS } from \"utils/actionsConsts\";\r\n\r\nconst datasetReducer = (state = {}, action) => {\r\n switch (action.type) {\r\n case DATASET_ACTIONS.GET_DATASET_BY_NAME:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.CLEAR_DATASET_BY_NAME:\r\n return { ...state, [action.dataSetName]: [] };\r\n case DATASET_ACTIONS.GET_DATASET_BY_INDEX:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_DATASET_BY_PROPERTY_ID:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_GEOGRAPHIC_DATA:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_GEOGRAPHIC_DATA_BY_PROVINCE:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_NATIONALITIES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_PROGRAMS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_SUBPROGRAM_STATES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_DEPARTMENTS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_CATEGORIES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_ACTIVE_CATEGORIES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_INACTIVE_CATEGORIES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_ALL_DATASET_TYPES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_WAREHOUSE_BY_PROVINCE:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_LOSS_BREACK_MOTIVES:\r\n case DATASET_ACTIONS.GET_DOCUMENTS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_CONDITIONS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_NEXT_APPLICATION_STATES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_SUBPROGRAMS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_BO_USERS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_BO_ROLES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_SHAPE_PROGRAMS:\r\n case DATASET_ACTIONS.GET_SHAPE_SUBSITES:\r\n return { ...state, [action.dataSetName]: action.dataSet };\r\n case DATASET_ACTIONS.GET_LOAN_STATES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_LOAN_REJECT_MOTIVES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_NOT_ASSIGNED_ACTIVE_CATEGORIES:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_SUBPROGRAM_BY_PROGRAM:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_PREDEFINED_QUESTIONS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_AVAILABLE_INTERNSHIP_OPPORTUNITIES_ACTIONS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n case DATASET_ACTIONS.GET_GOVERNMENT_PROGRAMS:\r\n return { ...state, [action.dataSetName]: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default datasetReducer;","import { PROFESSIONAL_KITS, STOCKS } from \"utils/actionsConsts\";\r\n\r\nconst stockReducer = (\r\n state = {\r\n categoriesUnitValue: [],\r\n searchProfessionalKitsResult: [],\r\n searchStocksResult: [],\r\n RegisterLossBreakModal: {\r\n show: false,\r\n category: null,\r\n batchNumber: null,\r\n },\r\n RegisterInWareHouseModal: {\r\n show: false,\r\n category: null,\r\n batchNumber: null,\r\n },\r\n DeliverKitModal: {\r\n show: false,\r\n category: null,\r\n batchNumber: null,\r\n },\r\n characterizeProfessionalKit_loading: false,\r\n updateProfessionalKit_loading: false,\r\n searchProfessionalKit_loading: false,\r\n searchStocks_loading: false,\r\n get_stocks_detail_loading: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case \"characterizeProfessionalKit_loading\":\r\n return { ...state, characterizeProfessionalKit_loading: action.payload };\r\n case \"updateProfessionalKit_loading\":\r\n return { ...state, updateProfessionalKit_loading: action.payload };\r\n case \"updateProfessionalKitState\":\r\n return { ...state, characterizationResult: action.payload };\r\n case \"getProfessionalKitDetails\":\r\n return { ...state, professionalKitDetails: action.payload };\r\n case \"getStockDetails\":\r\n return { ...state, stockDetails: action.payload };\r\n case \"getKitDeliveryApplicationDetails\":\r\n return { ...state, kitDeliveryDetails: action.payload };\r\n case \"hideKitCharacterizationResultModal\":\r\n return { ...state, showCharacterizationResultModal: action.payload };\r\n case \"searchProfessionalKits\":\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case \"searchStocks\":\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case \"getBatchValue\":\r\n return { ...state, batchValue: action.payload.batchValue };\r\n case \"registerStockInWarehouse\":\r\n case \"registerLossOrBreak\":\r\n return {\r\n ...state,\r\n registerInWarehouseResult: action.payload,\r\n showRegisterStockInWarehouseResultModal: true,\r\n };\r\n case \"hideRegisterStockInWarehouseResultModal\":\r\n return {\r\n ...state,\r\n showRegisterStockInWarehouseResultModal: action.payload,\r\n };\r\n case \"getUnitValueByCategory\":\r\n return {\r\n ...state,\r\n categoriesUnitValue:\r\n state.categoriesUnitValue === undefined\r\n ? [\r\n {\r\n id: action.payload.categoryId,\r\n unitValue: action.payload.unitValue,\r\n },\r\n ]\r\n : state.categoriesUnitValue.some(\r\n (category) => category.id === action.payload.categoryId\r\n )\r\n ? state.categoriesUnitValue.map((p) =>\r\n p.id === action.payload.categoryId\r\n ? { ...p, unitValue: action.payload.unitValue }\r\n : p\r\n )\r\n : state.categoriesUnitValue.push({\r\n id: action.payload.categoryId,\r\n unitValue: action.payload.unitValue,\r\n }) > 0\r\n ? state.categoriesUnitValue\r\n : state.categoriesUnitValue,\r\n };\r\n case \"showRegisterLossBreakModal\":\r\n return {\r\n ...state,\r\n RegisterLossBreakModal: {\r\n show: action.payload.toShow,\r\n category: action.payload.category,\r\n batchNumber: action.payload.batchNumber,\r\n province: action.payload.province,\r\n warehouse: action.payload.warehouse,\r\n onCloseAction: action.payload.onCloseAction\r\n },\r\n };\r\n case \"showRegisterInWareHouseModal\":\r\n return {\r\n ...state,\r\n RegisterInWareHouseModal: {\r\n show: action.payload.toShow,\r\n category: action.payload.category,\r\n province: action.payload.province,\r\n warehouse: action.payload.warehouse\r\n },\r\n };\r\n case \"showDeliverKitModal\":\r\n return {\r\n ...state,\r\n DeliverKitModal: {\r\n show: action.payload.toShow,\r\n category: action.payload.category,\r\n },\r\n };\r\n case PROFESSIONAL_KITS.SEARCH_LOADING:\r\n return { ...state, searchProfessionalKit_loading: action.payload };\r\n case PROFESSIONAL_KITS.GET_DETAILS_LOADING:\r\n return { ...state, getProfessionalKitDetails_loading: action.payload };\r\n case STOCKS.SEARCH_LOADING:\r\n return { ...state, searchStocks_loading: action.payload };\r\n case STOCKS.GET_STOCK_DETAILS_LOADING:\r\n return { ...state, get_stocks_detail_loading: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default stockReducer;","import { DASHBOARD_ACTIONS } from \"utils/actionsConsts\";\r\n\r\nconst dashboardReducer = (\r\n state = {\r\n dashboardStockInfo: [],\r\n dashboardNotificationsInfo: [],\r\n dashboardNotificationsCount: 0,\r\n dashboardNewCompaniesInfo: [],\r\n dashboardNewCompaniesCount: 0,\r\n dashboardOnGoingApplicationsInfo: [],\r\n dashboardOnGoingApplicationsCount: 0,\r\n dashboardOpportunitiesInfo: [],\r\n dashboardOpportunitiesCount: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case \"getDashboardStockInfo\":\r\n return { ...state, dashboardStockInfo: action.payload };\r\n case \"getDashboardNotificationsInfo\":\r\n return { ...state, dashboardNotificationsInfo: action.payload };\r\n case \"getDashboardUnreadNotificationsCountInfo\":\r\n return { ...state, dashboardNotificationsCount: action.payload };\r\n case \"getDashboardNewCompaniesInfo\":\r\n return {\r\n ...state,\r\n dashboardNewCompaniesInfo: action.payload.list,\r\n dashboardNewCompaniesCount: action.payload.count,\r\n };\r\n case \"getDashboardOpportunities\":\r\n return {\r\n ...state,\r\n dashboardOpportunitiesInfo: action.payload.list,\r\n dashboardOpportunitiesCount: action.payload.count,\r\n };\r\n\r\n case \"getDashboardOnGoingApplicationsInfo\":\r\n return {\r\n ...state,\r\n dashboardOnGoingApplicationsInfo: action.payload.list,\r\n dashboardOnGoingApplicationsCount: action.payload.count,\r\n };\r\n case DASHBOARD_ACTIONS.GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS:\r\n return {\r\n ...state,\r\n dashboardFollowUpsWithUnapprovedReportsInfo: action.payload,\r\n };\r\n case DASHBOARD_ACTIONS.GET_OPPORTUNITY_APPLICATION_FOLLOWUPS_WITH_UNAPPROVED_REPORTS_LOADING:\r\n return { ...state, dashboardFollowUpsWithUnapprovedReportsInfo_loading: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default dashboardReducer;","import { SUBPROGRAM } from \"utils/actionsConsts\";\r\n\r\nconst subprogramReducer = (\r\n state = {\r\n createSubprogram_loading: false,\r\n updateSubprogram_loading: false,\r\n searchSubprograms_loading: false,\r\n refresh_results: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case SUBPROGRAM.CREATE:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n createSubprogram_loading: false,\r\n };\r\n case SUBPROGRAM.GET_FILTERED_SUBPROGRAMS:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case SUBPROGRAM.GET_FILTERED_SUBPROGRAMS_LOADING:\r\n return { ...state, searchSubprograms_loading: action.payload };\r\n case SUBPROGRAM.GET_SUBPROGRAM_DETAILS:\r\n return { ...state, subprogramDetailsData: action.payload };\r\n case SUBPROGRAM.GET_SUBPROGRAM_DETAILS_LOADING:\r\n return { ...state, get_subprogram_details_loading: action.payload };\r\n case SUBPROGRAM.CREATE_SUBPROGRAM_LOADING:\r\n return { ...state, createSubprogram_loading: true };\r\n case SUBPROGRAM.UPDATE_SUBPROGRAM_LOADING:\r\n return { ...state, updateSubprogram_loading: action.payload };\r\n case SUBPROGRAM.UPDATE_SUBPROGRAM_STATE_LOADING:\r\n return { ...state, updateSubprogramState_loading: action.payload };\r\n case SUBPROGRAM.REFRESH_RESULTS:\r\n return { ...state, refresh_results: action.payload };\r\n case SUBPROGRAM.CLEAR_DETAIL:\r\n return { ...state, subprogramDetailsData: {} };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default subprogramReducer;\r\n","import { DIALOG } from \"utils/actionsConsts\";\r\n\r\nconst dialogsReducer = (state = {}, action) => {\r\n switch (action.type) {\r\n case DIALOG.HIDE:\r\n return { ...state, showGenericDialog: action.payload };\r\n case DIALOG.SHOW:\r\n console.log(\"DIALOG.SHOW\", action.payload);\r\n return {\r\n ...state,\r\n showGenericDialog: action.payload.showGenericDialog,\r\n genericDialogData: action.payload.genericDialogData,\r\n };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default dialogsReducer;","import { APPLICATIONS } from \"utils/actionsConsts\";\r\n\r\nconst applicationReducer = (\r\n state = {\r\n applicationDetailsHistory: [],\r\n applicationDetailsHistory_refresh_results: false,\r\n subprogramsInfo: [],\r\n loading: false,\r\n application_details_loading: false,\r\n application_update_loading: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case APPLICATIONS.GET_FILTERED_APPLICATIONS:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case APPLICATIONS.GET_FILTERED_APPLICATIONS_LOADING:\r\n return { ...state, loading: action.payload };\r\n case APPLICATIONS.GET_APPLICATION_DETAILS_GENERAL_DATA:\r\n return { ...state, applicationDetailsGeneralData: action.payload };\r\n case APPLICATIONS.GET_APPLICATION_DETAILS_GENERAL_DATA_LOADING:\r\n return { ...state, application_details_loading: action.payload };\r\n case APPLICATIONS.GET_APPLICATION_UPDATE_LOADING:\r\n return { ...state, application_update_loading: action.payload };\r\n case APPLICATIONS.UPDATE_APPLICATION_DETAILS_GENERAL_DATA:\r\n return { ...state, editResult: action.payload };\r\n case APPLICATIONS.GET_APPLICATION_DETAILS_HISTORY:\r\n return { ...state, applicationDetailsHistory: action.payload };\r\n case APPLICATIONS.APPLICATION_DETAILS_HISTORY_REFRESH_RESULTS:\r\n return { ...state, applicationDetailsHistory_refresh_results: action.payload };\r\n case APPLICATIONS.CREATE_APPLICATION_DETAILS_HISTORY_ENTRY:\r\n return { ...state, result: action.payload };\r\n case APPLICATIONS.GET_USER_APPLICATIONS:\r\n return { ...state, getUserApplications_result: action.payload };\r\n case APPLICATIONS.GET_USER_APPLICATIONS_LOADING:\r\n return { ...state, getUserApplications_loading: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default applicationReducer;\r\n","import { SCHEDULING } from \"utils/actionsConsts\";\r\n\r\nconst schedulingReducer = (\r\n state = {\r\n create_loading: false,\r\n schedule_detail: {},\r\n search_loading: false,\r\n schedule_detail_loading: false,\r\n result: [],\r\n total_records: 0,\r\n total_pages: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case SCHEDULING.CREATE_LOADING:\r\n return { ...state, create_loading: action.payload };\r\n case SCHEDULING.SEARCH:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case SCHEDULING.SEARCH_LOADING:\r\n return { ...state, search_loading: action.payload };\r\n case SCHEDULING.GET:\r\n return { ...state, schedule_detail: action.payload };\r\n case SCHEDULING.GET_LOADING:\r\n return { ...state, schedule_detail_loading: action.payload };\r\n case SCHEDULING.UPDATE_LOADING:\r\n return { ...state, schedule_update_loading: action.payload };\r\n case SCHEDULING.CLEAR_DETAIL:\r\n return { ...state, schedule_detail: {} };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default schedulingReducer;\r\n","import { NOTIFICATION } from \"utils/actionsConsts\";\r\n\r\nconst notificationReducer = (\r\n state = {\r\n notifications_list: [],\r\n unreadNotifications: [],\r\n unreadNotificationsCount: 0,\r\n unreadNotifications_Loading: false,\r\n notifications_Loading: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case NOTIFICATION.CREATE:\r\n return { ...state, result: action.payload };\r\n case NOTIFICATION.CREATE_LOADING:\r\n return { ...state, create_loading: action.payload };\r\n case NOTIFICATION.GET_NOTIFICATIONS:\r\n return {\r\n ...state,\r\n notifications_list: action.payload.data,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n }; \r\n case NOTIFICATION.GET_NOTIFICATIONS_LOADING:\r\n return { ...state, notifications_Loading: action.payload };\r\n case NOTIFICATION.GET_UNREAD_NOTIFICATIONS:\r\n return {\r\n ...state,\r\n unreadNotifications: action.payload.notifications,\r\n unreadNotificationsCount: action.payload.count,\r\n };\r\n case NOTIFICATION.GET_UNREAD_NOTIFICATIONS_LOADING:\r\n return { ...state, unreadNotifications_Loading: action.payload };\r\n case NOTIFICATION.GET_TOTAL_UNREAD_NOTIFICATIONS:\r\n return { ...state, unreadNotificationsCount: action.payload };\r\n case NOTIFICATION.UPDATE_NOTIFICATION:\r\n return {\r\n ...state,\r\n notifications_list: state.notifications_list.map((p) =>\r\n p.id === action.payload?.id\r\n ? {\r\n ...p,\r\n isRead: true,\r\n }\r\n : p\r\n ),\r\n unreadNotificationsCount: state.unreadNotificationsCount-1,\r\n };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default notificationReducer;","//compile the other user reducer into this one!\r\nimport { USERS } from \"utils/actionsConsts\";\r\n\r\nconst usersReducer = (\r\n state = {\r\n foUserHistory: [],\r\n foUserHistory_refresh_results: false,\r\n backoffice_users_search_loading: false,\r\n frontoffice_users_search_loading: false,\r\n register_fo_user_loading: false,\r\n searchFOUsers_loading: false,\r\n getFOUserEmploymentHistory_loading: false,\r\n getFOUserUnemploymentHistory_loading: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n getFoUSInterventionOtherArea_loading: false,\r\n getFoUSInterventionOtherArea__result: [],\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case USERS.GET_BACKOFFICE_FILTERED_SEARCH:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case USERS.GET_FRONTOFFICE_FILTERED_SEARCH:\r\n return {\r\n ...state,\r\n result: action.payload.data,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case USERS.GET_BACKOFFICE_FILTERED_SEARCH_LOADING:\r\n return {\r\n ...state,\r\n backoffice_users_search_loading: action.payload,\r\n result: action.payload ? [] : state.result,\r\n total_records: action.payload ? 0 : state.total_records,\r\n };\r\n case USERS.GET_FRONTOFFICE_FILTERED_SEARCH_LOADING:\r\n return {\r\n ...state,\r\n frontoffice_users_search_loading: action.payload,\r\n result: action.payload ? [] : state.result,\r\n total_records: action.payload ? 0 : state.total_records,\r\n };\r\n case USERS.REGISTER_FO_USER_LOADING:\r\n return { ...state, register_fo_user_loading: action.payload };\r\n case USERS.SEARCH_FO_USERS:\r\n return { ...state, searchFOUsers_result: action.payload };\r\n case USERS.SEARCH_FO_USERS_LOADING:\r\n return { ...state, searchFOUsers_loading: action.payload };\r\n case USERS.GET_FO_USER_OVERVIEW:\r\n return { ...state, getFOUserOverview_result: action.payload };\r\n case USERS.GET_FO_USER_OVERVIEW_LOADING:\r\n return { ...state, getFOUserOverview_loading: action.payload };\r\n case USERS.CREATE_FO_USER_HISTORY_ENTRY:\r\n return { ...state, addFOUserHistoryEntry: action.payload };\r\n case USERS.GET_FO_USER_HISTORY:\r\n return { ...state, foUserHistory: action.payload };\r\n case USERS.GET_FO_USER_HISTORY_REFRESH_RESULTS:\r\n return { ...state, foUserHistory_refresh_results: action.payload };\r\n case USERS.GET_FO_USER_EMPLOYMENT_HISTORY:\r\n return {\r\n ...state,\r\n getFOUserEmploymentHistory_loading: false,\r\n getFOUserEmploymentHistory_result: action.payload,\r\n };\r\n case USERS.GET_FO_USER_EMPLOYMENT_HISTORY_LOADING:\r\n return { ...state, getFOUserEmploymentHistory_loading: action.payload };\r\n case USERS.GET_FO_USER_UNEMPLOYMENT_HISTORY:\r\n return {\r\n ...state,\r\n getFOUserUnemploymentHistory_loading: false,\r\n getFOUserUnemploymentHistory_result: action.payload,\r\n };\r\n case USERS.GET_FO_USER_UNEMPLOYMENT_HISTORY_LOADING:\r\n return { ...state, getFOUserUnemploymentHistory_loading: action.payload };\r\n case USERS.GET_FOUS_INTERVENTION_OTHER_AREA:\r\n return {\r\n ...state,\r\n getFoUSInterventionOtherArea_loading: false,\r\n getFoUSInterventionOtherArea_result: action.payload,\r\n };\r\n case USERS.GET_FOUS_INTERVENTION_OTHER_AREA_LOADING:\r\n return { ...state, getFoUSInterventionOtherArea_loading: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default usersReducer;\r\n","//compile the other user reducer into this one!\r\nimport { USERS, REGISTER_BO_USER } from \"utils/actionsConsts\";\r\n\r\nconst usersInfoReducer = (\r\n state = {\r\n getUserInfo_loading: false,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case USERS.GET_USER_INFO:\r\n return { ...state, result: action.payload };\r\n case USERS.GET_USER_INFO_LOADING:\r\n return { ...state, getUserInfo_loading: action.payload };\r\n case USERS.UPDATE_INDIVIDUAL_USER_LOADING:\r\n return { ...state, updateIndividualUser_loading: action.payload };\r\n case USERS.GET_USER_INFO_BO:\r\n return { ...state, result: action.payload };\r\n case USERS.GET_USER_INFO_BO_LOADING:\r\n return { ...state, getUserInfoBO_loading: action.payload };\r\n case USERS.UPDATE_Profile_LOADING:\r\n return { ...state, updateProfile_loading: action.payload };\r\n case USERS.GET_USER_INFO_ENT:\r\n return { ...state, result: action.payload };\r\n case REGISTER_BO_USER.REGISTER_LOADING:\r\n return { ...state, backOfficeUserRegister_loading: action.payload };\r\n case USERS.UPDATE_BO_USER_LOADING:\r\n return { ...state, backOfficeUserUpdate_loading: action.payload };\r\n case USERS.VALIDATE_COLECTIVE_USER_LOADING:\r\n return { ...state, validateColectiveUser_loading: action.payload };\r\n case USERS.GET_FO_USER_COLECTIVE_BASIC_INFO:\r\n return { ...state, foUserColectiveBasicInfo: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default usersInfoReducer;\r\n","import { LOANS } from \"utils/actionsConsts\";\r\n\r\nconst loansReducer = (\r\n state = {\r\n search_loading: false,\r\n reject_loan_loading: false,\r\n update_loan_loading: false,\r\n refresh_results: false,\r\n loan_details_loading: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case LOANS.GET_FILTERED_LOANS:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case LOANS.GET_LOAN_DETAILS:\r\n return { ...state, loan_details: action.payload };\r\n case LOANS.GET_LOAN_DETAILS_LOADING:\r\n return { ...state, loan_details_loading: action.payload };\r\n case LOANS.GET_FILTERED_LOANS_LOADING:\r\n return { ...state, search_loading: action.payload };\r\n case LOANS.REJECT_LOAN_LOADING:\r\n return { ...state, reject_loan_loading: action.payload };\r\n case LOANS.UPDATE_LOAN_LOADING:\r\n return { ...state, update_loan_loading: action.payload };\r\n case LOANS.REFRESH_RESULTS:\r\n return { ...state, refresh_results: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default loansReducer;\r\n","import { INFORMATION_DISSEMINATION } from \"utils/actionsConsts\";\r\nimport moment from \"moment\";\r\n\r\nconst informationDisseminationReducer = (\r\n state = {\r\n createInformation_loading: false,\r\n searchInformation_loading: false,\r\n updateInformation_loading: false,\r\n get_information_details_loading: false,\r\n refresh_results: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n result: [],\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case INFORMATION_DISSEMINATION.CREATE:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n createInformation_loading: false,\r\n };\r\n case INFORMATION_DISSEMINATION.CREATE_INFORMATION_DISSEMINATION_LOADING:\r\n return { ...state, createInformation_loading: true };\r\n case INFORMATION_DISSEMINATION.GET_FILTERED_INFORMATION_DISSEMINATION:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case INFORMATION_DISSEMINATION.GET_FILTERED_INFORMATION_DISSEMINATION_LOADING:\r\n return { ...state, searchInformation_loading: action.payload };\r\n case INFORMATION_DISSEMINATION.GET_INFORMATION_DISSEMINATION_DETAILS:\r\n return { ...state, informationDetailsData: action.payload };\r\n case INFORMATION_DISSEMINATION.GET_INFORMATION_DISSEMINATION_DETAILS_LOADING:\r\n return { ...state, get_information_details_loading: action.payload };\r\n case INFORMATION_DISSEMINATION.UPDATE_INFORMATION_DISSEMINATION_LOADING:\r\n return { ...state, updateInformation_loading: action.payload };\r\n case INFORMATION_DISSEMINATION.REFRESH_RESULTS:\r\n return { ...state, refresh_results: action.payload };\r\n case INFORMATION_DISSEMINATION.CLEAR_DETAIL:\r\n return { ...state, informationDetailsData: {} };\r\n case INFORMATION_DISSEMINATION.PUBLISH:\r\n if (action.payload !== null) {\r\n let indexOfInfoDisseminationItem = state.result?.data.findIndex((cd) => cd.alternateKey === action.payload.alternateKey);\r\n state.result.data[indexOfInfoDisseminationItem].publishedOn =\r\n action.payload.publishedOn !== null ? moment(action.payload.publishedOn).format(\"DD/MM/YYYY\") : null;\r\n state.result.data[indexOfInfoDisseminationItem].published =\r\n action.payload.published !== null ? action.payload.published : false;\r\n }\r\n return { ...state };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default informationDisseminationReducer;\r\n","import { OPPORTUNITIES_ACTIONS } from \"utils/actionsConsts\";\r\n\r\nconst opportunitiesReducer = (\r\n state = {\r\n opportunitySubmitLoading: false,\r\n searchOpportunities_loading: false,\r\n get_opportunity_details_loading: false,\r\n update_opportunity_state_loading: false,\r\n candidateInfo_loading: false,\r\n opportunityUsers_loading: false,\r\n opportunityUpdateLoading: false,\r\n possibleCandidates_loading: false,\r\n possibleCandidates_result: [],\r\n possibleCandidates_total_records: 0,\r\n possibleCandidates_total_pages: 0,\r\n addOpportunityCandidatesList_loading: false,\r\n getAllOpportunityApplications_loading: false,\r\n isOpportunityApplication: false,\r\n getAllOpportunityApplicationsFollowUp_loading: false,\r\n getOpportunityApplicationsFollowUpDetails_loading: false,\r\n update_opportunity_followup_period_loading: false,\r\n getFeedbackReportDetails_loading: false,\r\n validateFeedbackReport_loading: false,\r\n createAdHocFeedbackReportLoading: false,\r\n getFilteredAvailableOpportunitiesForUser_loading: false,\r\n createApplicationsForUserLoading: false,\r\n total_records: 0,\r\n total_pages: 0,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case OPPORTUNITIES_ACTIONS.GET_FILTERED_OPPORTUNITIES_ACTIONS:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_FILTERED_OPPORTUNITIES_ACTIONS_LOADING:\r\n return { ...state, searchOpportunities_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DETAILS_ACTIONS_LOADING:\r\n return { ...state, get_opportunity_details_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_STATE_ACTIONS_LOADING:\r\n return { ...state, update_opportunity_state_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_DETAILS_ACTIONS:\r\n return { ...state, opportunityDetailsData: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_CANDIDATE_INFORMATION:\r\n return { ...state, candidateInfo: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_CANDIDATE_INFORMATION_LOADING:\r\n return { ...state, candidateInfo_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_USERS_ACTIONS:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n total_records: action.payload.total_records,\r\n total_pages: action.payload.total_pages,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_USERS_ACTIONS_LOADING:\r\n return { ...state, opportunityUsers_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.UPDATE:\r\n return {\r\n ...state,\r\n opportunityUpdateSucceeded: action.payload,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_UPDATE_LOADING:\r\n return { ...state, opportunityUpdateLoading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_SUBMIT_LOADING:\r\n return { ...state, opportunitySubmitLoading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.APPROVE_CANDIDATE_LOADING:\r\n return { ...state, approveCandidate_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.REJECT_CANDIDATE_LOADING:\r\n return { ...state, rejectCandidate_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES_LOADING:\r\n return { ...state, possibleCandidates_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_FILTERED_POSSIBLE_OPPORTUNITY_CANDIDATES:\r\n return {\r\n ...state,\r\n possibleCandidates_result: action.payload,\r\n possibleCandidates_total_records: action.payload.total_records,\r\n possibleCandidates_total_pages: action.payload.total_pages,\r\n };\r\n case OPPORTUNITIES_ACTIONS.ADD_OPPORTUNITY_CANDIDATES_LIST_LOADING:\r\n return { ...state, addOpportunityCandidatesList_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS:\r\n return {\r\n ...state,\r\n opportunityApplications_result: action.payload,\r\n opportunityApplications_total_records: action.payload.total_records,\r\n opportunityApplications_total_pages: action.payload.total_pages,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_LOADING:\r\n return {\r\n ...state,\r\n getAllOpportunityApplications_loading: action.payload,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_IS_OPPORTUNITY_APPLICATION:\r\n return { ...state, isOpportunityApplication: action.payload };\r\n case OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP:\r\n return {\r\n ...state,\r\n opportunityApplicationsFollowUp_result: action.payload,\r\n opportunityApplicationsFollowUp_total_records:\r\n action.payload.total_records,\r\n opportunityApplicationsFollowUp_total_pages: action.payload.total_pages,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_ALL_OPPORTUNITY_APPLICATIONS_FOLLOWUP_LOADING:\r\n return {\r\n ...state,\r\n getAllOpportunityApplicationsFollowUp_loading: action.payload,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS:\r\n return {\r\n ...state,\r\n opportunityApplicationsFollowUpDetails_result: action.payload,\r\n opportunityApplicationsFollowUpDetails_total_records:\r\n action.payload.total_records,\r\n opportunityApplicationsFollowUpDetails_total_pages:\r\n action.payload.total_pages,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_OPPORTUNITY_APPLICATIONS_FOLLOWUP_DETAILS_LOADING:\r\n return {\r\n ...state,\r\n getOpportunityApplicationsFollowUpDetails_loading: action.payload,\r\n };\r\n case OPPORTUNITIES_ACTIONS.UPDATE_OPPORTUNITY_FOLLOWUP_PERIOD_LOADING:\r\n return {\r\n ...state,\r\n update_opportunity_followup_period_loading: action.payload,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_FEEDBACK_REPORT_DETAILS:\r\n return {\r\n ...state,\r\n feedbackReportDetails_result: action.payload,\r\n feedbackReportDetails_total_records: action.payload.total_records,\r\n feedbackReportDetails_total_pages: action.payload.total_pages,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_FEEDBACK_REPORT_DETAILS_LOADING:\r\n return { ...state, getFeedbackReportDetails_loading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.VALIDATE_FEEDBACK_REPORT_LOADING:\r\n return { ...state, validateFeedbackReportLoading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.CREATE_ADHOC_FEEDBACK_REPORT_LOADING:\r\n return { ...state, createAdHocFeedbackReportLoading: action.payload };\r\n case OPPORTUNITIES_ACTIONS.CLEAR_VALIDATE_FEEDBACK_REPORT_LOADING:\r\n return { ...state, validateFeedbackReportLoading: false };\r\n case OPPORTUNITIES_ACTIONS.GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER:\r\n return {\r\n ...state,\r\n getFilteredAvailableOpportunitiesForUser_result: action.payload,\r\n };\r\n case OPPORTUNITIES_ACTIONS.GET_FILTERED_AVAILABLE_OPPORTUNITIES_FOR_USER_LOADING:\r\n return {\r\n ...state,\r\n getFilteredAvailableOpportunitiesForUser_loading: action.payload,\r\n };\r\n case OPPORTUNITIES_ACTIONS.CREATE_OPPORTUNITY_APPLICATIONS_FOR_USER_LOADING:\r\n return { ...state, createApplicationsForUserLoading: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default opportunitiesReducer;\r\n","import { REPORTS } from \"utils/actionsConsts\";\r\n\r\nconst reportsReducer = (\r\n state = {\r\n get_report_loading: false,\r\n },\r\n action\r\n) => {\r\n switch (action.type) {\r\n case REPORTS.GET_REPORT:\r\n return {\r\n ...state,\r\n result: action.payload,\r\n };\r\n case REPORTS.GET_REPORT_LOADING:\r\n return { ...state, get_report_loading: action.payload };\r\n default:\r\n return state;\r\n }\r\n};\r\n\r\nexport default reportsReducer;\r\n","import { combineReducers } from \"redux\";\r\nimport authReducer from \"redux/reducers/authReducer\";\r\nimport datasetReducer from \"redux/reducers/datasetReducer\";\r\nimport stockReducer from \"redux/reducers/stockReducer\";\r\nimport dashboardReducer from \"redux/reducers/dashboardReducer\";\r\nimport subprogramReducer from \"redux/reducers/subprogramReducer\";\r\nimport dialogReducer from \"redux/reducers/dialogsReducer\";\r\nimport applicationsReducer from \"redux/reducers/applicationsReducer\";\r\nimport schedulingReducer from \"redux/reducers/schedulingReducer\";\r\nimport notificationReducer from \"redux/reducers/notificationReducer\";\r\nimport usersReducer from \"redux/reducers/usersReducer\";\r\nimport usersInfoReducer from \"redux/reducers/usersInfoReducer\";\r\nimport loansReducer from \"redux/reducers/loansReducer\";\r\nimport informationDisseminationReducer from \"redux/reducers/informationDisseminationReducer\";\r\nimport OpportunitiesReducer from \"redux/reducers/opportunitiesReducer\";\r\nimport reportsReducer from \"redux/reducers/reportsReducer\";\r\n\r\nconst allReducers = combineReducers({\r\n authState: authReducer,\r\n dataSetState: datasetReducer,\r\n stockState: stockReducer,\r\n dashboardState: dashboardReducer,\r\n subprogramState: subprogramReducer,\r\n dialogState: dialogReducer,\r\n applicationsState: applicationsReducer,\r\n schedulingState: schedulingReducer,\r\n notificationState: notificationReducer,\r\n usersState: usersReducer,\r\n usersInfo: usersInfoReducer,\r\n loansState: loansReducer,\r\n informationDisseminationState: informationDisseminationReducer,\r\n opportunitiesState: OpportunitiesReducer,\r\n reportsState: reportsReducer,\r\n});\r\n\r\nconst rootReducer = (state, action) => {\r\n if (action.type === \"logout\") {\r\n const { authState } = state;\r\n authState.operationsList = [];\r\n authState.login_error = false;\r\n authState.photo = null;\r\n state = { authState };\r\n return allReducers(state, action);\r\n }\r\n\r\n return allReducers(state, action);\r\n};\r\n\r\nexport default rootReducer;\r\n","import { createStore, applyMiddleware, compose } from \"redux\";\r\nimport reduxThunk from \"redux-thunk\";\r\nimport rootReducer from \"redux/reducers/rootReducer\";\r\nimport { persistStore, persistReducer } from \"redux-persist\";\r\nimport storage from \"redux-persist/lib/storage\";\r\n\r\nconst persistConfig = {\r\n key: \"sigpape\",\r\n storage,\r\n};\r\nconst persistedReducer = persistReducer(persistConfig, rootReducer);\r\nfunction configureStore(\r\n initialState = {\r\n authState: {},\r\n }\r\n) {\r\n return createStore(\r\n persistedReducer,\r\n initialState,\r\n compose(applyMiddleware(reduxThunk), window.devToolsExtension ? window.devToolsExtension() : (f) => f)\r\n );\r\n}\r\n\r\nconst store = configureStore();\r\nconst persistor = persistStore(store);\r\n\r\nexport { store, persistor };\r\n","import React from \"react\";\r\nimport axios from \"axios\";\r\nimport PropTypes from \"prop-types\";\r\nimport { withRouter } from \"react-router-dom\";\r\nimport { get } from \"lodash\";\r\nimport jwt_decode from \"jwt-decode\";\r\nimport { refresh_token } from \"crud/auth.crud\";\r\nimport {AUTH} from \"utils/actionsConsts\";\r\n\r\nconst white_list = [\r\n \"login\",\r\n \"refresh-token\",\r\n \"recover-password\",\r\n \"reset-password\",\r\n];\r\nclass UndecoratedSetupAxios extends React.Component {\r\n static propTypes = {\r\n //auth: PropTypes.object.isRequired,\r\n history: PropTypes.object.isRequired,\r\n location: PropTypes.object.isRequired,\r\n match: PropTypes.object.isRequired,\r\n axios: PropTypes.func,\r\n children: PropTypes.node,\r\n requestInterceptorHandler: PropTypes.func,\r\n requestInterceptorErrorHandler: PropTypes.func,\r\n responseInterceptorSuccessHandler: PropTypes.func,\r\n responseInterceptorErrorHandler: PropTypes.func,\r\n };\r\n\r\n static defaultProps = {\r\n axios,\r\n children: null,\r\n requestInterceptorHandler: (config) => config,\r\n requestInterceptorErrorHandler: (error) => Promise.reject(error),\r\n responseInterceptorSuccessHandler: (response) => response,\r\n responseInterceptorErrorHandler: (error) => Promise.reject(error),\r\n };\r\n\r\n static displayName = \"SetupAxios\";\r\n\r\n requestInterceptor = null;\r\n responseInterceptor = null;\r\n\r\n componentDidMount() {\r\n console.log(\"setup_axios\");\r\n\r\n this.requestInterceptor = this.props.axios.interceptors.request.use(\r\n this.requestInterceptorSuccessHandler,\r\n this.requestInterceptorErrorHandler\r\n );\r\n this.responseInterceptor = this.props.axios.interceptors.response.use(\r\n this.responseInterceptorSuccessHandler,\r\n this.responseInterceptorErrorHandler\r\n );\r\n }\r\n\r\n componentWillUnmount() {\r\n this.props.axios.interceptors.request.eject(this.requestInterceptor);\r\n this.props.axios.interceptors.response.eject(this.responseInterceptor);\r\n }\r\n\r\n requestInterceptorSuccessHandler = async (config) => {\r\n var token = this.props.store.getState().authState?.token;\r\n\r\n if (this.check_white_list(config.url)) {\r\n return config;\r\n }\r\n // If not able to retrieve a token, send the user back to login\r\n if (typeof token === \"undefined\") {\r\n this.props.history.push(\"/auth/login\");\r\n return config;\r\n }\r\n\r\n if (this.is_token_expired(token)) {\r\n console.log(\"token is expired\");\r\n\r\n await refresh_token(this.props.store.getState().authState?.refreshToken)\r\n .then((res) => {\r\n console.log(\"refresh token response\", res.data);\r\n\r\n if (res.data.refreshToken) {\r\n this.props.store.dispatch({\r\n type: \"refresh-token\",\r\n payload: {\r\n jwtToken: res.data.jwtToken,\r\n refreshToken: res.data.refreshToken,\r\n },\r\n });\r\n }\r\n else\r\n {\r\n this.props.store.dispatch({\r\n type: AUTH.SESSION_EXPIRED\r\n });\r\n this.props.history.push(\"/auth/login\");\r\n }\r\n\r\n token = res.data.jwtToken;\r\n })\r\n .catch((error) => {\r\n console.log(\"error on refresh token response\", error);\r\n });\r\n }\r\n\r\n // Process the user supplied requestInterceptorHandler\r\n const newConfig = this.props.requestInterceptorHandler(config);\r\n // Return the config with the token appended to the Authorization Header\r\n return {\r\n ...newConfig,\r\n headers: {\r\n ...get(newConfig, \"headers\", {}),\r\n Authorization: `Bearer ${token}`,\r\n },\r\n };\r\n };\r\n\r\n requestInterceptorErrorHandler = (error) =>\r\n this.props.requestInterceptorErrorHandler(error);\r\n\r\n responseInterceptorSuccessHandler = (response) =>\r\n this.props.responseInterceptorSuccessHandler(response);\r\n\r\n responseInterceptorErrorHandler = (error) => {\r\n if (get(error, \"response.status\") === 401) {\r\n console.log(\"setup axios\", error);\r\n\r\n this.props.store.dispatch({\r\n type: \"logout\",\r\n payload: false,\r\n });\r\n this.props.history.push(\"/auth/login\");\r\n }\r\n return this.props.responseInterceptorErrorHandler(error);\r\n };\r\n\r\n is_token_expired = (token) => {\r\n var current_time = new Date().getTime() / 1000;\r\n var jwt = jwt_decode(token);\r\n return current_time > jwt.exp;\r\n };\r\n\r\n check_white_list = (url) => {\r\n var flag = false;\r\n\r\n white_list.forEach((el) => (url.includes(el) ? (flag = true) : \"\"));\r\n\r\n return flag;\r\n };\r\n\r\n render() {\r\n return this.props.children;\r\n }\r\n}\r\n\r\nexport default withRouter(UndecoratedSetupAxios);\r\n","import React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport { IntlProvider } from \"react-intl\";\r\nimport { BrowserRouter, Route, Switch, Redirect } from \"react-router-dom\";\r\nimport CssBaseline from \"@material-ui/core/CssBaseline\";\r\nimport { ThemeProvider } from \"@material-ui/core/styles\";\r\nimport SimpleReactLightbox from \"simple-react-lightbox\";\r\nimport theme from \"assets/theme/theme.js\";\r\n\r\n// plugins styles from node_modules\r\nimport \"react-perfect-scrollbar/dist/css/styles.css\";\r\nimport \"@fullcalendar/common/main.min.css\";\r\nimport \"@fullcalendar/daygrid/main.min.css\";\r\nimport \"quill/dist/quill.core.css\";\r\nimport \"@fortawesome/fontawesome-free/css/all.min.css\";\r\n// plugins styles downloaded\r\nimport \"assets/plugins/nucleo/css/nucleo.css\";\r\n// core styles\r\nimport \"assets/scss/argon-dashboard-pro-material-ui.scss\";\r\n//layouts\r\nimport AdminLayout from \"layouts/Admin.js\";\r\nimport AuthLayout from \"layouts/Auth.js\";\r\n//fonts\r\nimport \"assets/fonts/Lato/Lato-Bold.ttf\";\r\nimport \"assets/fonts/Lato/Lato-Regular.ttf\";\r\n\r\nimport { Provider } from \"react-redux\";\r\nimport { PersistGate } from \"redux-persist/integration/react\";\r\nimport { store, persistor } from \"redux/store/store\";\r\nimport SetupAxios from \"utils/setup_axios\";\r\nimport messages_pt from \"lang/compiled/pt.json\";\r\n\r\nexport const INTERNAL_API_URL = process.env.REACT_APP_INTERNAL_API_URL;\r\nexport const EXTERNAL_API_URL = process.env.REACT_APP_EXTERNAL_API_URL;\r\n\r\nconst messages = {\r\n pt: messages_pt,\r\n};\r\nconst language = \"pt\";\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n {/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n } />\r\n } />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ,\r\n document.querySelector(\"#root\")\r\n);\r\n"],"sourceRoot":""}