{"version":3,"sources":["common/timeout.hook.ts","environments/environment.development-ioncell.ts","environments/environment.development-remote.ts","environments/environment.production-aes.ts","environments/environment.production-amp.ts","environments/environment.production-assistivetech.ts","environments/environment.production-bioai.ts","environments/environment.production-birthbyus.ts","environments/environment.production-brainreader.ts","environments/environment.production-cass.ts","environments/environment.production-cil.ts","environments/environment.production-dartmouth.ts","environments/environment.production-dermasensor.ts","environments/environment.production-digiteyez.ts","environments/environment.production-domino.ts","environments/environment.production-eventhorizon.ts","environments/environment.production-gaisler.ts","environments/environment.production-healthrhythms.ts","environments/environment.production-healthrhythmstest.ts","environments/environment.production-ioncell.ts","environments/environment.production-isi.ts","environments/environment.production-iu.ts","environments/environment.production-kaiko.ts","environments/environment.production-kegg.ts","environments/environment.production-machinemed.ts","environments/environment.production-marsbio.ts","environments/environment.production-narnar.ts","environments/environment.production-opio.ts","environments/environment.production-osu.ts","environments/environment.production-paradromics.ts","environments/environment.production-parasandbox.ts","environments/environment.production-parasandbox2.ts","environments/environment.production-pentazone.ts","environments/environment.production-primum.ts","environments/environment.production-proesisbio.ts","environments/environment.production-rti.ts","environments/environment.production-sayenza.ts","environments/environment.production-schenck.ts","environments/environment.production-sleepimage.ts","environments/environment.production-smartsurgn.ts","environments/environment.production-socai.ts","environments/environment.production-template.ts","environments/environment.production-tokueyes.ts","environments/environment.production-venavitals.ts","environments/environment.staging.ts","common/breadcrumb/BreadcrumbHeading.tsx","common/breadcrumb/BreadcrumbSubheading.tsx","secure-portal/electronic-signature/ElectronicSignature.hooks.ts","secure-portal/documents/Document.interface.ts","secure-portal/jira-connect/JiraConnect.context.tsx","secure-portal/auth/Auth.interface.ts","login/Login.context.tsx","common/api/apiResolve.ts","common/api/Api.hooks.ts","environments/environment.production.ts","secure-portal/auth/Auth.constants.ts","environments sync /^/.//environment/..*$","AppThemeProvider.tsx","common/useRemoveJiraWidget.tsx","common/version/useAppMeta.ts","common/version/CheckVersion.tsx","common/useWindowFocus.ts","common/ProtectedRoute.tsx","guards/guest.guard.ts","guards/auth.guard.ts","guards/signup.guard.ts","assets/logo.ts","common/RecaptchaLegal.tsx","login/Login.styled.ts","login/JiraLogin.styled.ts","login/JiraLogin.tsx","secure-portal/jira-server/JiraServerLogin.tsx","login/JiraEmailLogin.tsx","login/Login.tsx","login/PasswordRecover.tsx","login/PasswordReset.tsx","common/dialogs/ConfirmDialog.tsx","common/views/DragArea.tsx","common/AppSnackbar.tsx","common/blob.hook.ts","common/WrappedTableCell.tsx","secure-portal/task-types/TaskType.interface.ts","secure-portal/documents/components/DocumentFolderUpload/DocumentFolderUpload.tsx","secure-portal/documents/components/DocumentFolderUpload/DocumentFolderUploadExists.tsx","secure-portal/documents/components/DocumentFolderUpload/DocumentFolderUploadInput.tsx","common/CollapsibleRow.tsx","secure-portal/task-types/TaskType.hooks.ts","secure-portal/task-types/components/TaskTypeSelector.tsx","secure-portal/documents/components/DocumentFolderUpload/useFileUploader.ts","secure-portal/documents/components/DocumentFolderUpload/DocumentFolderUploadList.tsx","secure-portal/documents/components/DocumentFolderUpload/DocumentFolderUpload.hooks.ts","secure-portal/documents/Document.helpers.ts","plugins/ExportButtonPlugin.tsx","secure-portal/products/Product.interface.ts","secure-portal/documents/components/DocumentFileExplorer.styled.ts","secure-portal/documents/components/FileExplorer.context.tsx","secure-portal/documents/components/DocumentFileExplorerItem.tsx","secure-portal/documents/components/DocumentFileExplorer.tsx","secure-portal/documents/components/DocumentMultiUpload.tsx","secure-portal/documents/components/DocumentUploadDialog.tsx","plugins/QmsFileUploadButtonPlugin.tsx","common/Debounce.hooks.ts","secure-portal/groups/Group.hooks.ts","secure-portal/workflow/components/GroupSelector.tsx","secure-portal/capa/Capa.fields.ts","secure-portal/risk-management/Risk.fields.ts","secure-portal/scar/scar.fields.ts","secure-portal/training/Training.fields.ts","secure-portal/supplier/Supplier.fields.ts","secure-portal/purchase/Spor.fields.ts","secure-portal/documents/Document.fields.ts","secure-portal/products/fields/ProductUserNeed.fields.ts","secure-portal/products/fields/ProductDesignInput.fields.ts","secure-portal/products/fields/ProductDesignOutput.fields.ts","secure-portal/products/fields/ProductVerification.fields.ts","secure-portal/products/fields/ProductValidation.fields.ts","secure-portal/products/fields/ProductDesignSpec.fields.ts","secure-portal/products/Product.fields.ts","secure-portal/hazards/fields/HazardCauseInput.fields.ts","secure-portal/hazards/fields/HazardControlInput.fields.ts","secure-portal/hazards/fields/HazardActionInput.fields.ts","secure-portal/hazards/Hazard.fields.ts","secure-portal/workflow/Workflow.context.tsx","secure-portal/changeOrder/ChangeOrder.fields.ts","secure-portal/workflow/Workflow.hooks.ts","secure-portal/workflow/plugins/transition-conditions/CheckSubTasksPlugin.tsx","secure-portal/hazards/Hazard.interface.ts","secure-portal/tasks/dialogs/TaskAssignDialog.tsx","secure-portal/workflow/plugins/services/CreateSubTasksPlugin.tsx","secure-portal/tasks/Task.hooks.ts","common/StatusLabel.tsx","common/TaskStatusLabel.tsx","plugins/QmsTaskStatusLabelPlugin.tsx","common/card/CardContent.tsx","secure-portal/jira/Jira.hooks.ts","secure-portal/jira-connect/components/JiraLink.tsx","secure-portal/jira-connect/components/JiraRenderedField.tsx","common/inline/InlineTextField.tsx","common/inline/InlineFormControl.tsx","secure-portal/jira-connect/pickers/JiraIssueTypePicker.tsx","secure-portal/jira-connect/pickers/JiraProjectPicker.tsx","secure-portal/jira-connect/dialogs/JiraIssueCreateDialog.tsx","secure-portal/task-jira-v2/TaskJiraIssueV2.hooks.ts","secure-portal/task-jira-v2/cards/TaskJiraV2AssignCard.tsx","queries/plugins/LineChartQueryBuilderPlugin.tsx","plugins/TaskJiraAssignCardPlugin.tsx","plugins/SiteLineChartPlugin.tsx","plugins/default.ts","environments/routes.ts","plugins/events/QmsEventRoutePlugin.tsx","plugins/events/default.ts","plugins/form-elements/config/FormConfigPicker.tsx","plugins/form-elements/FormGroupPickerPlugin.tsx","plugins/form-elements/FormUserPickerPlugin.tsx","plugins/form-elements/FormTableFieldPlugin.tsx","plugins/form-elements/default.ts","secure-portal/entity/Entity.hooks.tsx","secure-portal/entity/Entity.context.tsx","secure-portal/session/Session.interface.ts","secure-portal/session/Session.context.tsx","common/card/CardTitle.tsx","common/vertical-stepper/VerticalStep.tsx","common/vertical-stepper/VerticalStepper.tsx","common/views/ErrorView.tsx","common/inline/InlineForm.tsx","common/diff.ts","common/inline/InlineFormik.tsx","secure-portal/supplier/Supplier.hooks.ts","common/inline/InlineNumberField.tsx","secure-portal/supplier/cards/SupplierDetailsCard.tsx","common/inline/InlineRadioGroup.tsx","secure-portal/supplier/cards/SupplierQualitySystemCard.tsx","secure-portal/supplier/cards/SupplierCard.styled.ts","secure-portal/supplier/cards/SupplierQualityManualCard.tsx","common/forms/InputFile.tsx","common/inline/InlineFile.tsx","secure-portal/supplier/cards/SupplierFileAttachmentCard.tsx","secure-portal/supplier/cards/SupplierQualityControlCard.tsx","secure-portal/supplier/cards/SupplierQualityProgramCard.tsx","secure-portal/supplier/SupplierSurveyPage.tsx","secure-portal/workflow/plugins-v2/services/CreateJiraIssuePlugin.tsx","secure-portal/jira-connect/pickers/JiraStatusPicker.tsx","secure-portal/workflow/plugins-v2/services/TransitionEntityStatusFromJiraPlugin.tsx","secure-portal/jira-connect/pickers/JiraIssueFieldPicker.tsx","secure-portal/workflow/plugins-v2/services/UpdateFieldFromJiraPlugin.tsx","secure-portal/workflow/plugins-v2/services/UpdateJiraIssuePlugin.tsx","secure-portal/entity/components/EntitySchemaRelationSelector.tsx","secure-portal/entity/components/EntitySchemaSelector.tsx","secure-portal/workflow/plugins/services/UpdateRelatedEntityStatusPlugin.tsx","secure-portal/workflow/plugins-v2/services/UpdateRelatedEntityStatusLegacyPlugin.tsx","secure-portal/workflow/components/WorkflowSelector.tsx","secure-portal/workflow/plugins/transition-conditions/CheckDependenciesPlugin.tsx","secure-portal/workflow/plugins-v2/transition-conditions/CheckDependenciesLegacyPlugin.tsx","secure-portal/workflow/plugins-v2/transition-conditions/SignaturePlugin.tsx","secure-portal/workflow/plugins-v2/plugins.ts","user/UserEmailVerification.tsx","secure-portal/products/Product.config.ts","secure-portal/hazards/Hazard.config.ts","secure-portal/hazards/Hazard.hooks.ts","secure-portal/jira-server/JiraLinkedEntities.tsx","common/cart/CartContext.tsx","common/VersionInfo.tsx","guards/admin.guard.ts","guards/capa-admin.guard.ts","guards/document-admin.guard.ts","guards/document-editor.guard.ts","guards/document-viewer.guard.ts","guards/hazard-admin.guard.ts","guards/no-role.guard.ts","guards/product-admin.guard.ts","guards/risk-admin.guard.ts","guards/scar-admin.guard.ts","guards/site-admin.guard.ts","guards/supplier-admin.guard.ts","guards/trainee.guard.ts","guards/training-admin.guard.ts","guards/workflow-admin.guard.ts","NavThemeProvider.tsx","common/page-template/PageTemplateNav.tsx","common/page-template/PageTemplateCardOver.tsx","common/page-template/PageTemplate.tsx","common/page-template/PageTemplateHeader.tsx","common/page-template/PageTemplateDashboard.tsx","secure-portal/training/cards/TrainingChartCard.tsx","secure-portal/training/cards/TrainingLogCard.tsx","secure-portal/training/dialogs/TrainingUpcomingDialog.tsx","secure-portal/training/cards/TrainingUpcomingCard.tsx","secure-portal/training/TrainingPage.tsx","secure-portal/dashboard/components/DashboardChart.tsx","secure-portal/dashboard/components/DashboardItemGraph.tsx","secure-portal/dashboard/components/BaseDashboardCard.tsx","secure-portal/admin-dashboard/AdminToDoCard.tsx","secure-portal/capa/Capa.hook.ts","secure-portal/admin-dashboard/CapaChart.tsx","secure-portal/admin-dashboard/DocumentChart.tsx","secure-portal/admin-dashboard/EmployeeChart.tsx","secure-portal/admin-dashboard/EmployeeChartCard.tsx","secure-portal/admin-dashboard/AdminDashboardPage.tsx","secure-portal/dashboard/components/DashboardDocumentCard.tsx","secure-portal/tasks/TaskJira.hooks.ts","secure-portal/workflow/plugins/services/CreateJiraIssuePlugin.tsx","secure-portal/workflow/plugins/services/TransitionJiraIssuePlugin.tsx","secure-portal/entity/components/EntityColumnSelector.tsx","secure-portal/workflow/plugins/services/UpdateJiraIssuePlugin.tsx","secure-portal/workflow/plugins/transition-conditions/ConfirmPlugin.tsx","secure-portal/workflow/components/FieldSelector.tsx","secure-portal/workflow/plugins/transition-conditions/RequiredFieldsPlugin.tsx","secure-portal/workflow/plugins/transition-conditions/SignaturePlugin.tsx","secure-portal/workflow/plugins/services/PublishEventPlugin.tsx","secure-portal/workflow/plugins/services/RemoveSubTasksPlugin.tsx","secure-portal/workflow/plugins/services/TransitionEntityStatusFromJiraPlugin.tsx","secure-portal/workflow/plugins/services/UpdateFieldFromJiraPlugin.tsx","common/api/File.hooks.ts","common/inline/InlineHtml.hooks.ts","common/inline/InlineHtmlImageDialog.tsx","common/inline/InlineHtml.tsx","secure-portal/users/components/MultiUserSelector.tsx","secure-portal/workflow/plugins/services/SendEmailPlugin.tsx","secure-portal/workflow/plugins/services/index.ts","secure-portal/workflow/plugins/transition-conditions/index.ts","secure-portal/workflow/plugins/transition-conditions/CheckTeamPlugin.tsx","secure-portal/tasks/Task.machine.tsx","secure-portal/tasks/dialogs/TaskBulkActionDialog.tsx","secure-portal/products/board/ProductBoardColumn.tsx","secure-portal/tasks/board/BoardColumnMenu.tsx","secure-portal/products/board/ProductBoard.context.tsx","common/TaskStatusDot.tsx","common/cart/CartToggleButton.tsx","secure-portal/products/board/ProductBoardItem.tsx","secure-portal/products/board/ProductBoardDesignInput.tsx","secure-portal/products/board/ProductBoardDesignOutput.tsx","secure-portal/products/board/ProductBoardDesignSpec.tsx","secure-portal/products/board/ProductBoardDesignValidation.tsx","secure-portal/products/board/ProductBoardDesignVerification.tsx","secure-portal/products/board/ProductBoardUserNeed.tsx","secure-portal/products/Product.hooks.ts","secure-portal/dashboard/components/DashboardProductCard.tsx","secure-portal/dashboard/components/DashboardAssignedTab.tsx","secure-portal/dashboard/Dashboard.hooks.ts","secure-portal/dashboard/DashboardPage.tsx","secure-portal/agreements/Agreement.hooks.ts","common/PublishStatusLabels.tsx","secure-portal/agreements/cards/AgreementStatusActions.tsx","secure-portal/agreements/tabs/AgreementTabEdit.tsx","secure-portal/agreements/cards/AgreementInfoCard.tsx","secure-portal/agreements/cards/AgreementStatusCard.tsx","secure-portal/agreements/cards/AgreementVersionCard.tsx","secure-portal/agreements/tabs/AgreementTabInfo.tsx","secure-portal/agreements/AgreementAdminDetailPage.tsx","common/SearchBox.tsx","secure-portal/agreements/dialogs/AgreementCreateDialog.tsx","secure-portal/agreements/AgreementAdminListPage.tsx","common/SplitPane.tsx","secure-portal/audit/Audit.data.ts","secure-portal/audit/AuditControlElements.tsx","secure-portal/audit/AuditPage.tsx","secure-portal/template/Template.hooks.ts","secure-portal/capa/Capa.interface.ts","common/card/Card.tsx","common/inline/InlineSelect.tsx","secure-portal/users/components/SingleUserSelector.tsx","secure-portal/capa/components/CapaDetailsCardContext.tsx","secure-portal/capa/components/CapaDetailsCard.tsx","secure-portal/capa/components/CapaPreventiveCard.tsx","secure-portal/capa/components/CapaVerificationCard.tsx","secure-portal/capa/components/CapaInvestigationCard.tsx","secure-portal/tasks/TaskStatusActions.tsx","secure-portal/template/Template.interface.ts","common/views/ErrorMetadataView.tsx","secure-portal/tasks/components/TaskAuditLogListItem.tsx","secure-portal/tasks/components/TaskAuditLogList.tsx","secure-portal/tasks/cards/TaskStatusCard.tsx","common/card/HoveredCard.tsx","secure-portal/tasks/cards/SubTaskListCard.tsx","secure-portal/users/components/UserLink.tsx","secure-portal/tasks/cards/TaskAssignCard.tsx","secure-portal/tasks/cards/TaskAttachmentCard.tsx","common/dialogs/SelectDialog.tsx","secure-portal/documents/components/AssignDocumentDialog.tsx","secure-portal/documents/components/DocumentReferenceCard.tsx","secure-portal/tasks/cards/TaskFileListCard.tsx","common/cards/DeleteEntityCard.tsx","secure-portal/capa/components/CapaExportButton.tsx","secure-portal/capa/CapaDetailPage.tsx","secure-portal/capa/CapaCreateDialog.tsx","secure-portal/tasks/board/BoardPage.styled.ts","secure-portal/tasks/board/BoardItem.tsx","secure-portal/tasks/board/BoardItemWithSubtask.tsx","secure-portal/tasks/board/BoardColumn.tsx","secure-portal/tasks/TaskBoardStatusAction.tsx","secure-portal/tasks/TaskBoard.tsx","common/ListMoreButtonMenu.tsx","secure-portal/capa/CapaListPage.tsx","common/page-template/PageTemplateAlert.tsx","common/inline/InlineDatePicker.tsx","secure-portal/tasks/cards/TaskDueDateCard.tsx","common/card/CardTitleContent.ts","secure-portal/documents/DocumentUpload.tsx","common/elementSize.hook.ts","secure-portal/documents/components/PDFViewer.tsx","secure-portal/documents/components/MSOfficeLiveViewer.tsx","secure-portal/documents/components/CSVViewer.tsx","secure-portal/documents/components/UnrenderedFilesViewer.tsx","secure-portal/documents/components/DocumentViewer.tsx","secure-portal/documents/dialogs/DocumentApprovalExportDialog.tsx","secure-portal/documents/components/DocumentDownloadButton.tsx","secure-portal/documents/components/DocumentFullscreenDialog.tsx","secure-portal/documents/components/DocumentViewerCard.tsx","common/flattenTree.helper.ts","secure-portal/documents/components/DocumentBreadcrumbs.tsx","secure-portal/tasks/cards/TaskStatusVersionCard.tsx","secure-portal/documents/components/DocumentLogStatusCard.tsx","secure-portal/documents/components/DocumentDescriptionOfChangeCard.tsx","secure-portal/documents/components/DocumentInternalIdCard.tsx","secure-portal/documents/components/DocumentRevCard.tsx","secure-portal/documents/components/DocumentReasonForChangeCard.tsx","secure-portal/documents/components/DocumentChangeOrderReferenceCard.tsx","secure-portal/documents/components/AssignDocumentOwnerDialog.tsx","secure-portal/documents/components/DocumentOwnerCard.tsx","secure-portal/documents/DocumentDetailPage.tsx","common/page-template/PageTemplateBodyCard.tsx","common/SearchFilterButton.tsx","common/SearchFilterDrawer.tsx","secure-portal/documents/components/DocumentTypeFilter.tsx","secure-portal/workflow/components/WorkflowStatusSelector.tsx","secure-portal/documents/components/DocumentStatusFilter.tsx","secure-portal/documents/components/DocumentBoardFilter.tsx","secure-portal/documents/components/DocumentFileExplorerDialog.tsx","secure-portal/documents/components/DocumentTableHead.tsx","secure-portal/documents/components/FileIcon.tsx","secure-portal/documents/DocumentList.tsx","secure-portal/documents/DocumentInfoDrawerTabPanel.tsx","secure-portal/documents/DocumentRenameDialog.tsx","secure-portal/documents/DocumentDeleteDialog.tsx","secure-portal/documents/components/DocumentGroupSelector.tsx","secure-portal/documents/DocumentListPage.tsx","secure-portal/documents/DocumentInfoDrawer.tsx","secure-portal/documents/DocumentCreateFolderDialog.tsx","secure-portal/documents/DocumentTaskBoard.tsx","secure-portal/groups/components/GroupInfoCard.tsx","secure-portal/groups/dialogs/GroupUserAssignDialog.tsx","user/User.interface.ts","secure-portal/groups/components/GroupUsersCard.tsx","secure-portal/roles/Role.hooks.ts","secure-portal/groups/dialogs/GroupRoleAssignDialog.tsx","secure-portal/groups/components/GroupRolesCard.tsx","secure-portal/groups/GroupDetailPage.tsx","secure-portal/groups/GroupCreateDialog.tsx","secure-portal/groups/GroupListPage.tsx","common/HeaderBackButton.tsx","common/HeaderTitle.tsx","secure-portal/hazards/cards/HazardActionInfoCard.tsx","secure-portal/products/components/ProductAutocomplete.tsx","secure-portal/products/dialogs/AssignDesignInputDialog.tsx","secure-portal/products/dialogs/AssignUserNeedDialog.tsx","secure-portal/hazards/dialogs/HazardAssignReferenceDialog.tsx","secure-portal/products/dialogs/AssignDesignOutputDialog.tsx","secure-portal/products/dialogs/AssignVerificationDialog.tsx","secure-portal/products/dialogs/AssignValidationDialog.tsx","secure-portal/hazards/cards/HazardReferenceCard.tsx","secure-portal/products/cards/ProductAssignJiraCard.tsx","secure-portal/hazards/HazardActionDetailPage.tsx","secure-portal/hazards/cards/HazardCauseInfoCard.tsx","secure-portal/hazards/Hazard.helpers.ts","secure-portal/hazards/dialogs/HazardCardInfoDialog.tsx","secure-portal/hazards/cards/HazardCauseInitialAssessmentCard.tsx","secure-portal/hazards/cards/HazardCauseResidualAssesmentCard.tsx","secure-portal/hazards/HazardCauseDetailPage.tsx","secure-portal/hazards/cards/HazardControlInfoCard.tsx","secure-portal/hazards/cards/HazardControlVerificationCard.tsx","secure-portal/hazards/HazardControlDetailPage.tsx","common/trace-board/interfaces/TraceBoardEmptyState.tsx","common/trace-board/TraceBoardContext.tsx","common/trace-board/hooks/useItemElementSubscription.ts","common/trace-board/hooks/useRowCollapse.ts","common/trace-board/TraceBoardHeader.tsx","common/trace-board/dialogs/TraceBoardAddItemDialog.tsx","common/trace-board/TraceBoardCard.tsx","common/trace-board/TraceBoardConnector.tsx","common/trace-board/TraceBoardRow.tsx","common/trace-board/TraceBoard.tsx","secure-portal/hazards/board/HazardBoardTrace.tsx","secure-portal/documents/components/DocumentTemplateDialog.tsx","secure-portal/hazards/dialogs/HazardAssignDocumentTemplateDialog.tsx","secure-portal/hazards/cards/HazardTemplateCard.tsx","secure-portal/hazards/components/HazardEntityStatusFilter.tsx","secure-portal/hazards/components/HazardBoardFilter.tsx","common/HeaderTitleEdit.tsx","secure-portal/hazards/dialogs/HazardRenameDialog.tsx","secure-portal/hazards/components/HazardHeaderTitle.tsx","secure-portal/hazards/cards/HazardInfoCard.tsx","secure-portal/hazards/cards/HazardInitialAssessmentCard.tsx","secure-portal/hazards/dialogs/HazardAssignPeopleDialog.tsx","secure-portal/hazards/cards/HazardPeopleCard.tsx","secure-portal/hazards/cards/HazardResidualAssessmentCard.tsx","secure-portal/hazards/cards/HazardImpactCard.tsx","common/checkSectionAvailability.ts","secure-portal/hazards/HazardDetailPage.tsx","secure-portal/hazards/dialogs/HazardCreateEntityDialog.tsx","secure-portal/hazards/tables/CausesTable.tsx","secure-portal/hazards/tables/ControlsTable.tsx","secure-portal/hazards/tables/ActionsTable.tsx","secure-portal/hazards/HazardPage.tsx","secure-portal/jira-connect/components/JiraListFilter.tsx","secure-portal/jira-connect/components/JiraExportButton.tsx","common/reorder.helper.ts","secure-portal/jira/cards/JiraStatusActions.tsx","secure-portal/jira-connect/components/JiraReferenceTypeLinks.tsx","secure-portal/jira-connect/components/JiraReferenceTypeList.tsx","secure-portal/jira-connect/components/JiraReferenceTypeListDialog.tsx","secure-portal/jira-connect/components/JiraReferenceDialog.tsx","secure-portal/jira-connect/components/JiraTemplateConfigButton.tsx","secure-portal/jira-connect/JiraListExportPage.tsx","secure-portal/jira/components/JiraPill.tsx","secure-portal/jira/cards/JiraDetailCard.tsx","secure-portal/jira/cards/JiraIdCard.tsx","secure-portal/jira/cards/JiraPriorityCard.tsx","secure-portal/jira/cards/JiraEffortCard.tsx","secure-portal/jira/cards/JiraStatusCard.tsx","secure-portal/jira/cards/JiraAttachmentCard.tsx","secure-portal/jira/cards/JiraPeopleCard.tsx","secure-portal/jira/cards/JiraDueDateCard.tsx","secure-portal/jira/JiraDetailPage.tsx","secure-portal/jira/JiraLoginCodeForm.tsx","secure-portal/jira/JiraLogin.tsx","secure-portal/jira/JiraIssuesList.tsx","secure-portal/jira/JiraListPage.tsx","common/filterMessageByStatus.ts","secure-portal/NavigationList.tsx","secure-portal/organization/cards/OrganizationInfoCard.tsx","secure-portal/organization/OrganizationDetailPage.tsx","secure-portal/organization/Organization.hooks.ts","secure-portal/products/dialogs/DesignInputAssignDesignOutputDialog.tsx","secure-portal/products/dialogs/UnlinkConfirmDialog.tsx","secure-portal/products/cards/DesignInputDesignOutputReferenceCard.tsx","secure-portal/products/components/ProductRiskSelector.tsx","secure-portal/products/cards/DesignInputInfoCard.tsx","secure-portal/products/dialogs/DesignInputAssignUserNeedDialog.tsx","secure-portal/products/cards/DesignInputUserNeedReferenceCard.tsx","common/page-template/PageTemplateBody.tsx","secure-portal/products/components/ProductExportButton.tsx","secure-portal/products/document/ProductDocumentCommonPage.tsx","secure-portal/products/document/ProductDesignInputDocumentPage.tsx","secure-portal/products/dialogs/DesignOutputAssignDesignInputDialog.tsx","secure-portal/products/cards/DesignOutputDesignInputReferenceCard.tsx","secure-portal/products/cards/DesignOutputInfoCard.tsx","secure-portal/products/cards/DesignOutputUserNeedReferenceCard.tsx","secure-portal/products/dialogs/DesignOutputAssignVerificationDialog.tsx","secure-portal/products/cards/DesignOutputVerificationReferenceCard.tsx","secure-portal/products/document/ProductDesignOutputDocumentPage.tsx","secure-portal/products/dialogs/UserNeedAssignDesignInputDialog.tsx","secure-portal/products/cards/UserNeedDesignInputReferenceCard.tsx","secure-portal/products/cards/UserNeedInfoCard.tsx","secure-portal/products/document/ProductUserNeedDocumentPage.tsx","secure-portal/products/components/TestStepEditor/TestStepItem.tsx","secure-portal/products/components/TestStepEditor/TestStepEditor.tsx","secure-portal/products/components/TestStepEditor/TestStep.hooks.ts","secure-portal/products/cards/TestStepCard.tsx","secure-portal/products/cards/ValidationInfoCard.tsx","secure-portal/products/dialogs/ValidationAssignUserNeedDialog.tsx","secure-portal/products/cards/ValidationUserNeedReferenceCard.tsx","secure-portal/products/document/ProductValidationDocumentPage.tsx","secure-portal/products/cards/VerificationDesignInputReferenceCard.tsx","secure-portal/products/dialogs/VerificationAssignDesignOutputDialog.tsx","secure-portal/products/cards/VerificationDesignOutputReferenceCard.tsx","secure-portal/products/cards/VerificationInfoCard.tsx","secure-portal/products/cards/VerificationUserNeedReferenceCard.tsx","secure-portal/products/document/ProductVerificationDocumentPage.tsx","common/cart/CartIconBadge.tsx","secure-portal/products/dialogs/DesignInputAssignValidationDialog.tsx","secure-portal/products/cards/DesignInputValidationReferenceCard.tsx","secure-portal/products/cards/ProductsSubSectionComponentCard.tsx","secure-portal/products/cards/ProductsSubSectionReleaseCard.tsx","secure-portal/products/dialogs/DesignInputAssignVerificationDialog.tsx","secure-portal/products/cards/DesignInputVerificationReferenceCard.tsx","secure-portal/products/dialogs/AssignDesignSpecDialog.tsx","secure-portal/products/dialogs/DesignInputAssignDesignSpecDialog.tsx","secure-portal/products/cards/DesignInputDesignSpecReferenceCard.tsx","secure-portal/products/ProductDesignInputDetailPage.tsx","common/inline/InlineMultiSelect.tsx","secure-portal/risk-management/Risk.hook.ts","secure-portal/risk-management/cards/RiskAssessmentCard.tsx","common/cards/AssessmentCard.tsx","secure-portal/products/cards/DesignOutputRiskAssessmentCard.tsx","secure-portal/products/dialogs/DesignOutputAssignValidationDialog.tsx","secure-portal/products/cards/DesignOutputValidationReferenceCard.tsx","secure-portal/products/dialogs/DesignOutputAssignDesignSpecDialog.tsx","secure-portal/products/cards/DesignOutputDesignSpecReferenceCard.tsx","secure-portal/products/ProductDesignOutputDetailPage.tsx","secure-portal/products/cards/DesignSpecInfoCard.tsx","secure-portal/products/dialogs/DesignSpecAssignUserNeedDialog.tsx","secure-portal/products/cards/DesignSpecUserNeedReferenceCard.tsx","secure-portal/products/ProductDesignSpecDetailPage.tsx","secure-portal/products/dialogs/ProductCreateDialog.tsx","secure-portal/products/ProductListPage.tsx","common/collapse.hook.ts","secure-portal/products/board/ProductBoard.styled.ts","secure-portal/products/board/ProductBoardColumnActions.tsx","secure-portal/products/board/ProductBoard.tsx","secure-portal/products/board/connector/Connector.ts","secure-portal/products/board/connector/Entity.ts","secure-portal/products/board/connector/EntityManager.ts","secure-portal/products/board/ProductBoardConnector.tsx","secure-portal/products/board/ProductBoardSwimlaneColumns.tsx","secure-portal/products/board/ProductBoardSwimlane.tsx","secure-portal/products/board/ProductBoardTrace.tsx","secure-portal/products/board/hooks/useProductBoardUpdateEntities.ts","secure-portal/products/dialogs/AssignDocumentTemplateDialog.tsx","common/formik/FormikAutocomplete.tsx","secure-portal/products/dialogs/ProductTemplateCreateDialog.tsx","secure-portal/products/dialogs/ProductTemplateRenameDialog.tsx","secure-portal/reference/ReferenceTypeLinks.tsx","secure-portal/reference/ReferenceTypeList.tsx","secure-portal/reference/ReferenceTypeListDialog.tsx","secure-portal/reference/ReferenceDialog.tsx","secure-portal/xray/xray.reference.ts","secure-portal/reference/product.reference.ts","secure-portal/products/cards/ManageTemplateCard.tsx","secure-portal/products/components/ProductComponentsSelector.tsx","secure-portal/products/components/ProductEntityStatusFilter.tsx","secure-portal/products/components/ProductReleaseSelector.tsx","secure-portal/products/components/ProductBoardFilter.tsx","secure-portal/products/dialogs/ProductRenameDialog.tsx","secure-portal/products/components/ProductHeaderTitle.tsx","secure-portal/products/components/ProductEntityCreateButton.tsx","secure-portal/purchase/cards/RequesterDetailsFormCard.tsx","secure-portal/products/tables/UserNeedsTable.tsx","secure-portal/products/tables/DesignInputsTable.tsx","secure-portal/products/tables/DesignOutputsTable.tsx","secure-portal/products/tables/ValidationsTable.tsx","secure-portal/products/tables/VerificationsTable.tsx","secure-portal/products/tables/DesignSpecificationTable.tsx","secure-portal/products/dialogs/CreateEditProductComponentDialog.tsx","secure-portal/products/cards/ProductComponentCard.tsx","secure-portal/products/cards/ProductDescriptionCard.tsx","secure-portal/products/cards/ProductDetailCard.tsx","secure-portal/products/cards/ProductIntendedUseCard.tsx","secure-portal/products/dialogs/AssignPeopleDialog.tsx","secure-portal/products/cards/ProductPeopleCard.tsx","secure-portal/products/cards/ProductRegionsMarketedCard.tsx","secure-portal/products/dialogs/CreateEditProductReleaseDialog.tsx","secure-portal/products/cards/ProductReleaseCard.tsx","secure-portal/products/ProductDetailPage.tsx","secure-portal/hazards/components/HazardPill.tsx","secure-portal/products/tables/HazardsTable.tsx","secure-portal/products/board/ProductHazardBoardTrace.tsx","secure-portal/products/ProductPage.tsx","secure-portal/products/dialogs/UserNeedAssignVerificationDialog.tsx","secure-portal/products/cards/UserNeedVerificationReferenceCard.tsx","secure-portal/products/dialogs/UserNeedAssignValidationDialog.tsx","secure-portal/products/cards/UserNeedValidationReferenceCard.tsx","secure-portal/products/dialogs/UserNeedAssignDesignSpecDialog.tsx","secure-portal/products/cards/UserNeedDesignSpecReferenceCard.tsx","secure-portal/products/dialogs/AssignHazardDialog.tsx","secure-portal/products/dialogs/UserNeedAssignHazardDialog.tsx","secure-portal/products/cards/UserNeedHazardReferenceCard.tsx","secure-portal/products/ProductUserNeedDetailPage.tsx","secure-portal/products/dialogs/ValidationAssignDesignInputDialog.tsx","secure-portal/products/cards/ValidationDesignInputReferenceCard.tsx","secure-portal/products/ProductValidationDetailPage.tsx","secure-portal/products/ProductVerificationDetailPage.tsx","secure-portal/purchase/cards/PurchaseOrderSubmitCard.tsx","secure-portal/supplier/components/SupplierSelector.tsx","secure-portal/purchase/cards/SupplierDetailsFormCard.tsx","secure-portal/purchase/cards/OrderQuoteTable.tsx","secure-portal/purchase/cards/OrderDetailsFormCard.tsx","secure-portal/purchase/cards/PricingDetailsFormCard.tsx","secure-portal/purchase/PurchaseOrderForm.tsx","secure-portal/purchase/PurchaseCreatePage.tsx","secure-portal/supplier/cards/SupplierContactCard.tsx","secure-portal/purchase/SporDetailPage.tsx","secure-portal/quality-roadmap/QualityRoadmap.hooks.ts","secure-portal/quality-roadmap/QualityRoadmapPage.tsx","secure-portal/risk-management/RiskManagementListPage.tsx","secure-portal/risk-management/cards/RiskDetailCard.tsx","secure-portal/risk-management/cards/RiskReferenceCard.tsx","secure-portal/risk-management/RiskDetailPage.tsx","secure-portal/risk-management/components/RiskDialog.tsx","common/ExportButton.tsx","secure-portal/risk-management/components/RiskExportButton.tsx","secure-portal/roles/dialogs/RoleSaveDialog.tsx","secure-portal/roles/RoleListPage.tsx","secure-portal/scar/Scar.hook.ts","secure-portal/scar/cards/ProblemDetailCard.tsx","secure-portal/scar/cards/PreventiveActionCard.tsx","secure-portal/scar/ScarDetailPage.tsx","secure-portal/scar/ScarCreateDialog.tsx","secure-portal/scar/ScarListPage.tsx","login/Signup.hooks.ts","onboarding/OnboadingCompanyInfo.tsx","secure-portal/signup/cards/SignupCompanyInfoCard.tsx","secure-portal/signup/cards/SignupFeaturesCard.tsx","secure-portal/signup/cards/SignupInviteUsersCard.tsx","secure-portal/signup/cards/SignupUserCard.tsx","secure-portal/supplier/Supplier.interface.ts","secure-portal/signup/SignupDetailPage.tsx","secure-portal/signup/SignupListPage.tsx","secure-portal/supplier/cards/SupplierReviewDateCard.tsx","secure-portal/supplier/cards/SupplierInviteCard.tsx","secure-portal/supplier/tabs/SupplierTabInfo.tsx","secure-portal/purchase/components/SporStatusFilter.tsx","secure-portal/purchase/SporListView.tsx","secure-portal/supplier/tabs/PurchaseOrderTab.tsx","secure-portal/supplier/tabs/SupplierCorrectiveActionTabInfo.tsx","secure-portal/supplier/SupplierDetailPage.tsx","secure-portal/supplier/components/SupplierStatusFilter.tsx","secure-portal/supplier/components/SupplierListFilter.tsx","secure-portal/supplier/dialogs/SupplierCreateDialog.tsx","secure-portal/supplier/SupplierListPage.tsx","secure-portal/reference/template.reference.ts","secure-portal/template/TemplateListPage.tsx","secure-portal/training/board/BoardPage.styled.ts","secure-portal/training/board/BoardItem.tsx","secure-portal/training/board/BoardItemWithSubtask.tsx","secure-portal/training/board/BoardColumn.tsx","secure-portal/training/training-workflow-sample.ts","secure-portal/training/training-task-sample.ts","secure-portal/training/dialogs/TrainingCreateSubTask.tsx","secure-portal/training/TrainingAdminBoard.tsx","secure-portal/training/dialogs/TrainingAssignDialog.tsx","secure-portal/training/Training.interface.ts","secure-portal/training/TrainingUser.hooks.ts","secure-portal/training/Training.hooks.ts","secure-portal/training/tabs/TrainingTabAssign.tsx","common/calculateReorderIndex.ts","secure-portal/documents/components/DocumentAutocomplete.tsx","secure-portal/training/components/TrainingUserFileUpload.tsx","secure-portal/training/tabs/TrainingTabEdit.tsx","secure-portal/changeOrder/ChangeOrder.hook.ts","secure-portal/changeOrder/dialogs/AssignChangeOrderDialog.tsx","secure-portal/training/TrainingAdminListPage.tsx","secure-portal/changeOrder/cards/ChangeOrderReferenceCard.tsx","secure-portal/training/cards/TrainingAssignChangeOrdersCard.tsx","common/formik/FormikSelectField.tsx","secure-portal/training/dialogs/TrainingAddGroupDialog.tsx","secure-portal/training/dialogs/TrainingDeleteGroupDialog.tsx","secure-portal/training/cards/TrainingAssignedGroupCard.tsx","secure-portal/training/cards/TrainingInfoCard.tsx","secure-portal/training/cards/TrainingRecurringCard.tsx","secure-portal/training/cards/TrainingVersionCard.tsx","secure-portal/training/tabs/TrainingTabInfo.tsx","secure-portal/training/components/TrainingTaskStatusLabels.tsx","secure-portal/training/components/TrainingPlanExportButton.tsx","secure-portal/training/TrainingAdminDetailPage.tsx","secure-portal/training/dialogs/TrainingCreateDialog.tsx","secure-portal/training/components/TraineeStatusFilter.tsx","secure-portal/training/components/TraineeListFilter.tsx","secure-portal/training/TrainingAdminTrainees.tsx","secure-portal/training/cards/TrainingLessonCard.tsx","secure-portal/training/TrainingLessonPage.tsx","secure-portal/training/components/TraineeExportButton.tsx","secure-portal/users/components/UserInfoCard.tsx","secure-portal/training/TraineeDetailPage.tsx","secure-portal/users/components/UserGroupCard.tsx","secure-portal/users/components/UserInviteCard.tsx","secure-portal/users/components/UserRoleCard.tsx","secure-portal/users/UserDetailPage.tsx","secure-portal/users/UserCreateDialog.tsx","secure-portal/users/UserListPage.tsx","secure-portal/users/UserProfilePage.tsx","secure-portal/workflow/components/WorkflowApiLevelLabel.tsx","secure-portal/workflow/components/WorkflowMigrateButton.tsx","secure-portal/workflow/components/WorkflowStatusActions.tsx","common/ColorSelector.tsx","secure-portal/workflow/components/EditableFieldSection.tsx","secure-portal/workflow/dialogs/StateEventConditionDialog.tsx","secure-portal/workflow/components/StateEventConditions.tsx","secure-portal/workflow/components/StateTransitionSelector.tsx","secure-portal/workflow/components/StateEventEditor.tsx","secure-portal/workflow/components/StateEventEditorContainer.tsx","secure-portal/workflow/dialogs/WorkflowConfigInvokeActionDialog.tsx","secure-portal/workflow/components/StateInvokeActionEditor.tsx","secure-portal/workflow/components/StateNodeTypeSelector.tsx","secure-portal/workflow/components/GroupPermissionsSection.tsx","secure-portal/workflow/WorkflowEditPage.tsx","secure-portal/workflow/tabs/WorkflowTabEdit.tsx","secure-portal/workflow/cards/WorkflowInfoCard.tsx","secure-portal/workflow/cards/WorkflowStatusCard.tsx","secure-portal/workflow/cards/WorkflowVersionCard.tsx","secure-portal/workflow/tabs/WorkflowTabInfo.tsx","secure-portal/workflow/WorkflowDetailPage.tsx","secure-portal/workflow/dialogs/WorkflowCreateDialog.tsx","secure-portal/workflow/WorkflowListPage.tsx","secure-portal/workflow-v2/WorkflowV2DetailPage.tsx","secure-portal/task-types/components/TaskTypeEntitySelector.tsx","secure-portal/task-types/dialogs/TaskTypeCreateDialog.tsx","secure-portal/task-types/TaskTypeListPage.tsx","secure-portal/task-types/cards/TaskTypeDetailCard.tsx","secure-portal/task-types/TaskTypeDetailPage.tsx","secure-portal/changeOrder/ChangeOrderCreateDialog.tsx","secure-portal/changeOrder/components/ChangeOrderStatusFilter.tsx","secure-portal/changeOrder/components/ChangeOrderListFilter.tsx","secure-portal/changeOrder/cards/ChangeOrderDetailsCard.tsx","secure-portal/changeOrder/ChangeOrderListPage.tsx","common/version-item/Version.helpers.ts","secure-portal/documents/components/DocumentVersionDialogPicker.tsx","secure-portal/documents/components/AssignDocumentVersionDialog.tsx","secure-portal/documents/components/DocumentVersionReferenceCard.tsx","secure-portal/tasks/cards/TaskFileVersionReferenceCard.tsx","secure-portal/changeOrder/cards/ChangeOrderInventoryAndPendingDispositionCard.tsx","secure-portal/changeOrder/cards/ChangeOrderProductCard.tsx","secure-portal/changeOrder/cards/ChangeOrderManufacturingCard.tsx","secure-portal/changeOrder/cards/ChangeOrderLabelingCard.tsx","secure-portal/changeOrder/cards/ChangeOrderSupplierCard.tsx","secure-portal/changeOrder/cards/ChangeOrderQualityDocumentCard.tsx","secure-portal/changeOrder/cards/ChangeOrderOtherCard.tsx","secure-portal/changeOrder/components/ChangeOrderExportButton.tsx","secure-portal/changeOrder/cards/ChangeOrderITAssessmentCard.tsx","secure-portal/changeOrder/cards/ChangeOrderImplementationCard.tsx","secure-portal/changeOrder/cards/ChangeOrderVerificationCard.tsx","secure-portal/changeOrder/cards/ChangeOrderTrainingAndCompetencyAssessmentCard.tsx","secure-portal/changeOrder/ChangeOrderDetailPage.tsx","guards/change-order-admin.guard.ts","secure-portal/SecurePortal.tsx","QMSPortalPlugin.tsx","login/SignUp.tsx","common/vertical-stepper/VerticalStepperContainer.tsx","onboarding/OnboadingQmsFeatures.tsx","onboarding/OnboadingInviteUsers.tsx","onboarding/OnboadingThankYou.tsx","onboarding/OnboardingPage.tsx","guards/can-signup.guard.ts","queries/default.ts","App.tsx","serviceWorker.ts","index.tsx","common/api/File.interface.ts","secure-portal/auth/Auth.config.ts","secure-portal/workflow/Workflow.interface.ts","common/breadcrumb/Breadcrumb.context.tsx","secure-portal/jira-server/jira-server.hooks.ts","secure-portal/electronic-signature/ElectronicSignatureDialog.tsx","hooks/recaptcha/useRecaptchaEnterprise.ts","user/User.context.tsx","environments/index.ts","common/formatter.ts","user/useUserPermissions.ts","environments/environment.default.ts","environments/environment.development.ts","common/breadcrumb/Breadcrumb.hooks.ts","environments/navigation.tsx","user/User.hooks.ts","secure-portal/jira-connect/hooks/useJiraConnectRequest.ts","secure-portal/jira-connect/JiraConnect.hooks.ts","secure-portal/jira-connect/hooks/useGetJiraConnect.ts","secure-portal/auth/components/AuthMethodListPicker.tsx","secure-portal/google/GoogleAuth.ts","secure-portal/google/GoogleAuth.hooks.ts","secure-portal/okta/Okta.hooks.ts","common/breadcrumb/index.ts","user/User.mocks.ts","secure-portal/documents/Document.mocks.ts","secure-portal/documents/Document.hook.ts","secure-portal/tasks/task.helper.ts","common/entityId.hooks.ts","common/formik/FormikTextField.tsx","common/api/api.ts","common/formik/FormikButton.tsx","common/formik/FormikGrid.tsx","secure-portal/jira-server/jira-server.context.tsx"],"names":["useTimeout","timeoutRef","useRef","clearDebouncedTimeout","useCallback","dTimeout","current","clearTimeout","callback","ms","setTimeout","environment","developmentEnvironment","navigation","filterNavigation","apiBaseUrl","siteDomain","accessTokenKey","bearerPrefix","accessDeniedPath","expires","secure","tinyApiKey","recaptchaSiteKey","changeOrderConfig","useCustomFields","enableQualityChangeFields","updateItAssessment","authConfig","methods","authMethod","default","google","okta","organizationConfig","enabled","hazardConfig","isBasicOptions","productionEnvironment","productConfig","userNeed","name","idPrefix","designInput","hideRiskField","useCustomInfoFields","designOutput","validation","hideTestSteps","verification","designSpec","riskConfig","disableRelations","hideCategory","googleAuthConfig","clientId","enableRiskAssessment","fileConfig","hideTaskKey","hideVersion","jiraUrl","control","visibleJiraFields","title","fieldKey","type","StyledBreadcrumbs","styled","Breadcrumbs","isElementInViewport","element","rect","getBoundingClientRect","height","top","left","bottom","window","innerHeight","document","documentElement","clientHeight","right","innerWidth","clientWidth","BreadcrumbSubheading","props","root","defaultData","history","useHistory","breadcrumbsRef","breadcrumbs","useContext","BreadcrumbContext","useState","anchorEl","setAnchorEl","shouldCollapse","setShouldCollapse","debounceUpdate","clearDebouncedUpdate","items","useMemo","all","length","endIndex","collapsed","first","slice","between","last","updateCollapse","useLayoutEffect","update","addEventListener","removeEventListener","renderBreadcrumb","breadcrumb","component","Link","variant","to","path","label","ref","aria-label","map","size","onClick","event","currentTarget","fontSize","htmlColor","open","onClose","push","useElectronicSignature","useApiPost","data","isLoading","error","post","signed","Boolean","FileStatus","DocumentType","JiraConnectContext","createContext","isAvailable","getJiraApi","getSchemaKey","getSchemaProperties","useJiraConnectContext","context","Error","applySpecialCases","propertyName","toLowerCase","JiraConnectProvider","children","didFetchRef","token","setToken","connect","useGetJiraConnect","useGetJiraApi","jiraApi","fetchJiraApi","issueField","schema","system","custom","customId","isCustom","names","id","matches","prefix","property","propertyWithPrefix","concat","Object","keys","components","schemas","find","key","includes","keyOrIssueField","properties","useEffect","getToken","platformStackApi","headers","Provider","value","AuthMethodId","LoginContext","previousRoute","didLogout","setDidLogout","useLoginRedirect","UserContext","user","didSessionExpire","useLocation","pathname","search","hash","route","redirectFromLogin","roles","r","loginRedirect","URLSearchParams","get","getLoginRoute","paramsStr","params","set","toString","LoginProvider","previousRouteRef","setPreviousRoute","apiResolve","request","options","a","bodyParse","response","ok","json","parseDateFields","message","statusCode","FetchActions","useApiGet","useApiFetch","FetchMethod","Get","fetchApi","useApiPatch","Patch","patch","Post","useApiPut","Put","put","useApiDelete","Delete","del","fetchReducer","state","action","Init","undefined","Success","payload","Failure","method","setResponse","setRequest","useReducer","dispatch","jiraToken","useJiraConnectToken","useBlockDeactivatedUser","result","contentType","InputAcceptType","Documents","processRequest","extraHeaders","api","fetch","DATE_STRING_REGEX","Array","isArray","item","newJson","forEach","test","Date","Default","image","Google","Okta","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","code","resolve","module","exports","theme","createTheme","palette","primary","main","light","lightblue","secondary","deepOrange","typography","h2","fontWeight","overline","letterSpacing","breakpoints","values","xs","sm","md","lg","xl","overrides","MuiListItemIcon","minWidth","MuiInputBase","input","MuiInputLabel","outlined","transform","MuiOutlinedInput","padding","MuiSelect","display","alignItems","MuiFormControlLabel","MuiTableContainer","overflow","MuiTable","whiteSpace","MuiTableRow","hover","cursor","backgroundColor","alpha","MuiDialog","paper","width","MuiDialogActions","AppThemeProvider","StylesProvider","injectFirst","useRemoveJiraWidget","debounceHide","getWidget","widget","getElementById","console","debug","style","opacity","clear","currentVersion","process","now","meta","didChange","version","didUpdate","useAppMeta","metaInfo","setMetaInfo","loadMeta","getAppMeta","then","CheckVersion","setOpen","newVersion","isOpen","resumeFocusEvent","interval","shouldRunRef","lastCheckRef","shouldResume","isFirstCheck","focus","diffSec","Math","abs","useWindowFocus","log","Snackbar","anchorOrigin","horizontal","vertical","Typography","Button","color","marginRight","location","reload","ProtectedRoute","guards","isAllowed","some","guard","canActivate","GuestGuard","AuthGuard","SignupGuard","logo","StyledDiv","div","RecaptchaLegal","className","divProps","classes","join","href","target","rel","StyledLoginContainer","StyledLoginCard","MuiCard","StyledLoginForm","FormikForm","StyledLoginCardContent","MuiCardContent","JiraLogin","email","disabled","onLogin","onError","useJiraConnectAPI","useJiraLogin","jiraLogin","jiraAutoLogin","t","Divider","data-content","disableElevation","Backdrop","CircularProgress","JiraServerLogin","isJiraServer","useJiraServerContext","useJiraServerAuthUrl","useJiraServerLogin","url","opener","close","loginSchema","Yup","shape","required","ErrorHandler","JiraEmailLogin","errorMessage","onChange","validateOnBlur","validationSchema","initialValues","onSubmit","dto","errors","touched","handleChange","handleBlur","submitForm","TextField","onBlur","helperText","password","withRouter","containerRef","setErrorMessage","currentUser","setCurrentUser","jiraEmail","setJiraEmail","requestEmail","setRequestEmail","defaultMethod","selectedAuthMethodId","setSelectedAuthMethodId","useLogin","isLoadingLogin","doLogin","useGoogleLogin","isLoadingGoogleLogin","googleLogin","login","useOktaLogin","isLoadingOktaLogin","oktaLogin","isGoogleAuth","parent","querySelector","getGoogleAuth","renderButton","onResponse","credential","src","alt","multiple","marginBottom","AuthMethodListPicker","form","marginTop","err","PasswordRecover","usePasswordRecover","success","doPasswordRecover","placeholder","min","passwordConfirmation","oneOf","hasErrors","validateSync","_","usePasswordReset","verifyError","doPasswordReset","doVerifyResetToken","tokenRef","ConfirmDialog","cancelLabel","confirmLabel","onCancel","onConfirm","Dialog","DialogTitle","DialogContent","DialogActions","StyledDragArea","divider","DragArea","dragOver","hideArea","dragLabel","buttonLabel","onUpload","setDragOver","debounceLeave","clearDebouncedLeave","areaClasses","onDragOver","preventDefault","onDragLeave","onDrop","dataTransfer","files","AppSnackbar","severity","openSnackbar","setOpenSnackbar","handleClose","autoHideDuration","elevation","useDownloadBlob","blob","setBlob","downloadDocument","fileName","blobToSave","saveAs","TaskTypeEntity","WrappedTableCell","TableCell","DocumentFolderUpload","parentFolder","asMultipleFiles","folderInputRefProp","folderInputRef","onDismiss","onCreateFolder","cancelCallbackRef","setError","folder","setFolder","didFind","setDidFind","setIsLoading","folderExists","setFolderExists","manager","useFileUploadManager","folderName","webkitRelativePath","index","indexOf","dismiss","progress","el","directory","webkitdirectory","dismissButton","errorAlert","Collapse","in","minHeight","Box","mx","mt","Alert","hidden","add","from","LinearProgress","content","actions","onLoad","onSelect","createOnMount","created","renderActions","uploadAllButton","cancelAll","uploading","DocumentFolderUploadExists","useGetFolderByName","getFolder","parentPath","DialogContentText","DocumentFolderUploadInput","formikRef","useCreateDocumentFolder","createFolder","isParentRoot","parentId","doCreateFolder","setSubmitting","innerRef","formik","autoComplete","FormikGrid","FormikTextField","autoFocus","FormikButton","StyledTableRow","TableRow","CollapsibleRow","hideAction","icon","colSpan","collapsedContent","rowProps","collapsedRowProps","classNameProp","onIconClick","rowClassName","IconButton","stopPropagation","ArrowDropDown","ArrowRight","useGetTaskTypes","filter","useFindTaskTypes","query","loadRelations","compareNames","TaskTypeSelector","entityName","textFieldProps","isLoadingProp","taskTypeOptions","setTaskTypeOptions","isFinding","findTaskTypes","taskType","taskTypes","option","shift","Autocomplete","loading","getOptionLabel","getOptionSelected","_event","renderInput","fullWidth","createFile","getPresignedUrl","folderPath","mimeType","accessToken","getAccessToken","guest","createFileUploader","onUpdate","updateState","file","findIndex","newValue","assign","handlePresign","status","abort","presign","presignedUrl","handleUpload","XMLHttpRequest","Promise","handleErrorEvent","handleAbortEvent","handleLoadEvent","upload","lengthComputable","loaded","total","signedUrl","setRequestHeader","responseType","send","handleCreate","fileDto","handleFile","createDto","uploadAsync","newItems","cancel","skipCreated","filtered","splice","isUploaded","isUploading","remove","useFileUploader","fileType","setUploader","uploader","StyledBox","StyledCollapsibleRow","active","warning","DocumentFolderUploadList","referenceData","referenceTaskId","referenceMetadata","itemsRef","removeItem","setRemoveItem","selectedId","setSelectedId","setTaskTypes","commonTaskType","setCommonTaskType","isUploadingAll","setIsUploadingAll","uploadAll","taskTypeName","storageKey","targetEntity","File","pending","endIcon","CloudUploadOutlined","mb","TableContainer","Table","TableHead","TableBody","selectorProps","onRemove","setStatus","onCreate","onIncomplete","isIncomplete","handleRef","incomplete","AlertTitle","DocumentFolderUploadItem","setTaskType","alertMessage","setAlertMessage","uploadItem","newFile","ErrorOutline","CheckCircleOutline","thickness","Tooltip","Warning","Close","unique","includeHiddenFiles","includeNestedFiles","idRef","setItemsState","reduce","useFileUploadProgress","setItems","startsWith","split","fileUnique","newItem","existingItem","filePathRegex","RegExp","Draft","InReview","Approved","parseFilePath","pathString","TypeError","allParts","exec","dir","base","ext","FILE_TYPES","msoffice","images","video","audio","text","compressed","getExportUrl","extension","replace","proxyUrl","createProxyUrl","fileProxyUrl","openFile","canExport","hasConfiguriedQueries","queries","every","queryId","templateSyntax","csvExportEnabled","ProductRisk","StyledDot","SecondaryText","ViewExportFile","small","isDisabled","OpenInNew","ExportItemsDialogConfigurator","initialItems","onChangeRef","didChangeRef","dragChangeRef","sourceIndex","targetIndex","updateIndex","setUpdateIndex","removeIndex","setRemoveIndex","openAddDialog","setOpenAddDialog","dragItem","setDragItem","sort","useSort","sensors","useSensors","useSensor","PointerSensor","clearDragChange","maxWidth","onDragStart","over","reorder","onDragEnd","arrayMove","onDragCancel","strategy","verticalListSortingStrategy","tableRowProps","onClickUpdate","onClickDelete","wrapperElement","isDragging","startIcon","Add","i","copy","ExportItemRow","dragHandleProps","useQueryContext","itemQueries","itemQuery","align","DragIndicator","returnType","Edit","SortableExportItemRow","useSortable","attributes","listeners","setNodeRef","transition","CSS","Translate","StyledAccordion","Accordion","ExportItemQueryConfigurator","expanded","queryFieldOptions","setExpanded","updated","AccordionSummary","expandIcon","ExpandMore","AccordionDetails","Grid","container","spacing","hideReorder","InputProps","disableUnderline","pop","select","MenuItem","SiteSearchPlugin","includeFilters","SiteTablePlugin","FormControlLabel","Checkbox","checked","nearestOnly","routeId","routeParam","siteRoutePickerProps","field","StyledContainer","grey","StyledAlert","SaveExportItemDialog","initialItem","shouldUpdateRef","contentRef","fileInputRef","uuid","setItem","tabIndex","setTabIndex","removeId","setRemoveId","expandedId","setExpandedId","setIsUploading","contextQueries","selectAll","getQueryFields","config","selects","selection","csvQueryFields","isValid","csvExportConfig","queryFields","getClassName","handleFiles","uploadedItems","scrollTop","Tabs","scrollButtons","indicatorColor","Tab","my","HelpOutline","ChevronRight","click","ChevronLeft","includeFieldLabels","taskStatusFields","ml","accept","CsvExport","expressionMap","download","downloadRef","onErrorRef","entities","useEntityContext","useRunQuery","queryData","runQueryError","runQuery","runQueryGetOne","runPaginatedQuery","runQueryFn","selectedFields","queryManager","QueryManager","defaultQueryBuilderPlugins","mergeExpressionMaps","labels","fieldLabels","columnMap","queryAliasColumnMap","cm","column","displayName","comment","b","rows","isPaginatedList","getQuerySelectValue","parseTaskStatus","csvRows","csvData","row","ExportButtonPlugin","useParams","useSubscribeComponentChanges","useSiteContext","isHover","hoverProps","exportNameRef","useQueryParam","withDefault","StringParam","csvExportProps","setCsvExportProps","searchComponent","useFindNearestDescendant","tableComponent","searchQueryId","queryIds","tableQueryId","localCacheKey","useRouteLocalCacheKey","searchQuery","useLocalCache","pagination","useSiteTablePagination","asQueryParams","getResponse","bodyUsed","useDownloadRequest","isDownloading","downloadError","plugin","Menu","keepMounted","getContentAnchorEl","transformOrigin","filterTarget","queryType","wheres","condition","operator","parameters","searchPaths","searchFields","applyQueryFilters","paginated","timeZone","Intl","DateTimeFormat","resolvedOptions","createElement","Blob","textContent","URL","createObjectURL","configurator","useConfigComponent","List","dense","ListItem","paddingLeft","ListItemText","ListItemSecondaryAction","initConfig","TreeView","MuiTreeView","TreeItem","MuiTreeItem","FileExplorerContext","setSelected","setRefresh","refreshNode","setTreeNodeFetcher","FileExplorerProvider","refreshRef","treeNodeFetcherRef","selected","refresh","refreshFn","entries","fetcher","nodeId","expandTrashIcon","collapseTrashIcon","DeleteOutlined","fileIcon","InsertDriveFile","marginLeft","selectedFileIcon","Check","InsertDriveFileOutlined","DocumentFileExplorerItem","hideTrashDir","includeFiles","useContextValues","renderTree","onSelectNode","setFileChildren","useFindFolders","hasChildren","hasZeroChildren","isFolder","isTrash","isLocked","Folder","getEndIcon","collapseIcon","filterFileTree","node","treeViewIcons","defaultExpandIcon","defaultCollapseIcon","FolderOpen","defaultEndIcon","DocumentFileExplorer","filesProp","initialSelected","hideRootDir","onSelectFile","setFiles","ctx","useSelected","newExpanded","toggleExpand","selectedNodeId","rootDir","DocumentMultiUpload","inputType","fileMultiInputRefProp","fileMultiInputRef","renderContent","newFiles","StyledList","DocumentUploadDialog","boxShadow","arrow","Undo","FolderItem","ListItemAvatar","Avatar","FolderSelectDialog","setFile","QmsFileUploadButtonPlugin","editing","assignEntity","useAssignEntityComponent","useAssignEntityDisabled","entityDataId","can","useUserContext","permissions","successMessage","setSuccessMessage","buttonProps","buttonViewProps","relations","tableName","button","not","Icon","shouldFetch","CoreEvent","AssignEntityEvent","Assign","hideEvents","ProductExportEntity","productRiskOptions","ProductWorkflowEntities","WorkflowEntity","UserNeed","DesignInput","DesignOutput","DesignVerification","DesignValidation","DesignSpec","Hazard","ProductTaskTypeEntities","useDebounce","delay","debouncedValue","setDebouncedValue","handler","useFindGroups","shouldFetchOnMount","groupList","useFindGroup","group","compareIds","GroupSelector","groupOptions","setGroupOptions","findGroups","filterIds","ids","groups","CapaFieldLabels","summary","source","sourceReference","description","capaOwner","probability","correctiveActions","investigator","rootCause","rootCauseRationale","preventiveAction","trainingNeeded","attachment","assignTask","taskFiles","CapaFields","RiskFieldLabels","relatedHazard","hazardSituation","potentialHarm","potentialCauses","category","relevance","currentControls","residualRisk","recommendedActions","actionsTaken","p1","s1","d1","p2","s2","d2","assignUserNeeds","assignDesignInputs","assignDesignOutputs","RiskFields","ScarFieldLabels","containmentAction","containmentCompletedDate","permanentCorrectiveAction","premanentCorrectiveActionDate","correctiveActionVerification","attachments","ScarFields","TrainingFieldLabels","sections","frequency","changeOrders","TrainingFields","SupplierFieldLabels","companyName","contactName","phoneNumber","address","numberOfLocations","primaryLocation","numberOfEmployees","productServices","hasQualityProgram","qualityProgramBasedOn","seperateFromProductionDepartment","seperateFromProductionDepartmentDescription","hasCurrentQualityManual","hasOrganizationChart","hasTechnicalDataControl","hasDocumentRetentionControl","hasTrainingLogs","hasShelfLifeProgram","hasQualityControl","hasReceivingInspectionProcedures","hasCalibrationProgram","hasRevisions","qualityReviewProcedure","isQualityManualAvailable","hasPassFailCriteria","hasMeasurementVerification","hasMeasurementResults","hasQualityEvidenceProgram","hasNonconformanceProgram","hasInternalAuditProgram","noInternalAuditProgramExplain","internalAuditSchedule","hasCustomerComplaintProgram","hasRootCauseAnalysisProgram","hasCorrectiveActionProgram","hasCorrectiveActionProgramRetrospective","nextReviewDate","completed","SupplierFields","SporFieldLabels","requesterName","requesterPhoneNumber","requesterDepartment","supplierId","quote","taxes","fees","shipping","totalCost","orderDate","SporFields","DocumentFieldLabels","assignOwner","assignChangeOrders","internalDocumentId","rev","descriptionOfChange","reasonForChange","uploadNewFile","DocumentFields","ProductUserNeedFieldLabels","risk","assignDesignInput","assignDesignSpec","assignValidation","assignVerification","assignHazard","release","ProductUserNeedFields","ProductDesignInputFieldLabels","essentialRequirements","verificationMethod","whenToVerify","assignUserNeed","assignDesignOutput","ProductDesignInputFields","ProductDesignOutputFieldLabels","ProductDesignOutputFields","ProductVerificationFieldLabels","testScriptEditor","ProductVerificationFields","ProductValidationFieldLabels","ProductValidationFields","ProductDesignSpecFieldLabels","ProductDesignSpecFields","ProductFieldLabels","identifier","regionsMarketed","intendedUse","productOwner","techLead","releases","ProductFields","CauseInputFieldLabels","initialHarm","initialRisk","residualHarm","assignControls","CauseInputFields","ControlInputFieldLabels","controlVerification","assignCauses","assignActions","assignVerifications","assignValidations","ControlInputFields","ActionInputFieldLabels","ActionInputFields","HazardFieldLabels","otherCategory","harm","hazardOwner","initialSeverity","initialProbability","residualSeverity","residualProbability","riskJustification","benefitRiskAnalysis","comments","HazardFields","fetchWorkflowVersion","taskTypeOrId","WorkflowContext","workflows","getWorkflow","loadWorkflow","useWorkflowContext","WorkflowProvider","errorRef","workflowsRef","isFetchingRef","setErrorState","setWorkflows","addWorkflow","workflowVersion","workflow","workflowId","newWorkflow","Workflow","findWorkflowVersion","param","getTaskTypeOrIdValue","newError","ChangeOrderFieldLabels","typeOfChange","requestDate","requestor","impactOfChange","changeToTrainingMatrix","assetInventoryNeedUpdated","accessMatrixNeedUpdated","requireRiskAssessment","requireAssetDowntime","itDueDate","itCompletedDate","itComments","openPo","incomingInspection","wip","fg","quarantineOrHold","invDueDate","invCompletedDate","commentsInventory","fieldActionReview","hazardAssessmentReview","designVerificationReview","designReviewAttached","changeCompatibility","manufacturingQualityImpact","changeSupplierImpact","productRegulatoryImpact","changeSoftwareModification","dhfiUpdated","productDueDate","productCompletedDate","commentsProduct","labelingReview","regulatoryRegistrationAffected","claimsAffected","udiAffected","printedLabelImpact","labelProgramUpdated","testLabelAttached","lblDueDate","lblCompletedDate","commentsLabeling","processValidationImpact","pfmeaImpact","procedureImpact","safetyImpact","sdsNeeded","equipmentImpact","calibrationImpact","manufacturingRegulatoryImpact","clinicalTrialImpact","manufacturingDueDate","manufacturingCompletedDate","commentsManufacturing","supplierEvaluationCompleted","ndaApplicable","supplierAgreementNeeded","termsConditionsImpact","firstArticleRequired","inspectionProcedureImpact","supplierDueDate","supplierCompletedDate","commentsSupplier","triggeredPeriodicReview","qualityChangeComponent","qualityChangeArchitecture","qualityChangeRequiredInput","qualityChangeNewDiagnostic","qualityChangePresentation","qualityChangeDataRequired","qualityChangeRisks","qualityChangeIntendedUse","documentInteraction","regulationAssessment","qualityRegulatoryDueDate","qualityRegulatoryCompletedDate","commentsQualityDocument","documentInteractionDescription","ehsAssessmentDescription","regulationAssessmentOther","otherAssessmentDueDate","otherAssessmentCompletedDate","commentsOther","implementationNotes","implementationDueDate","implementationCompletedDate","verificationNotes","verificationDueDate","verificationCompletedDate","taskFileVersions","trainingMatrixNeedUpdated","changeImpactCompetencyAssessmentRequirements","changeRequireOperatorQualifications","changeRequireOperatorOrTrainingCertification","ChangeOrderFields","getStatusLabel","useFindWorkflows","workflowList","loadingError","findWorkflows","useFindWorkflow","findWorkflow","useFindWorkflowVersionByEntity","entity","useFindWorkflowVersionByTaskType","useUpdateWorkflow","updatedWorkflow","isUpdating","updateError","updateWorkflow","useUpdateWorkflowConfig","updateWorkflowConfig","getStateNodeByStatus","taskStatus","rootNode","stateNode","parseWorkflowStatus","getState","useStateNodeByStatus","useWorkflowFields","fields","Capa","Risk","Training","Supplier","Scar","Spor","Product","PRODUCT","HAZARD","Cause","Control","Action","ChangeOrder","useTaskWorkflow","task","useTaskEntityFields","strictOrOptions","strict","debounceError","getError","isFieldDisabled","warn","allowedFields","groupPermissions","useWorkflowStatuses","workflowDto","getAllPaths","HazardSeverity","HazardProbability","HazardRisk","HazardBoardColumnEntity","HazardExportEntity","Styled","FormHelperText","CheckSubTasksPlugin","invokes","invoke","WorkflowInvokeAction","CreateSubTasks","subTaskWorkflow","setSubTaskWorkflow","subTaskWorkflowDto","FormControl","Switch","partial","canConfigure","validate","subTasks","child","isOptional","isSubTaskInActiveStatePath","subTask","StyledUl","ul","StyledTableContainer","StyledForm","TaskAssignDialog","taskId","groupIds","userFilter","parentTask","lockedUsers","initialUsers","isLegacyAssignment","handleAssign","onAssign","onAssignRef","initialUsersRef","page","setPage","limit","setLimit","setSearch","menuSelection","setMenuSelection","selectedGroupId","setSelectedGroupId","subTaskUsersState","setSubTaskUsers","debounceSearch","useFindUsers","userList","isFindingUsers","usersError","isFindingGroups","groupsError","useUpdateTask","updatedTask","updateTask","subTaskUsers","maxColSpan","filteredUsers","isValidSelectedUsers","inGroup","Set","checkGroupIds","groupId","isRequiredGroupMet","allGroupIds","toggle","renderRow","locked","lockedUser","statePath","compareTaskStatus","userGroups","rowGroups","role","selectedGroup","anchorPosition","clientY","clientX","firstName","lastName","array","ReactDOM","unstable_batchedUpdates","arr","verticalAlign","TablePagination","rowsPerPageOptions","count","rowsPerPage","onPageChange","newPage","onRowsPerPageChange","users","userId","Popover","anchorReference","flex","StyledConfiguratorDiv","StyledDisplayDiv","CreateSubTasksPlugin","mountRef","setInvoke","numberOfTasks","setNumberOfTasks","debouncedNumberOfTasks","updatedInvoke","dialogTitle","dialogMessage","w","parseInt","isNaN","isFinite","service","render","isSimulation","skipServicePlugins","reject","g","subTaskUserIds","HazardWorkflowEntities","hazardSeverity","Negligible","Moderate","Severe","Marginal","Catastrophic","hazardProbability","Remote","Probable","Frequent","Improbable","Occasional","hazardRisk","VeryLow","Low","Medium","High","HazardSeverityTable","head","body","CauseProbabilityTable","HazardCategoryOptions","HazardSeverityLabel","HazardProbabilityLabel","Map","useGetTaskStatusLogs","taskStatusLogs","getStatusLogs","setPath","apiParams","setApiParams","updateTaskById","useGetTaskEntity","taskEntities","setTaskEntities","taskEntity","newTaskEntities","existingIndex","useTaskStatusColor","getLabel","stateColor","background","useTaskRedirect","redirect","setRedirect","isProductEntity","isHazardEntity","getTaskEntity","eId","productId","hazardId","hazard","StyledStatusLabel","StatusLabel","trim","getStatusText","TaskStatusLabel","labelValue","QmsTaskStatusLabelPlugin","cProps","useQueryValue","queryField","queryValueProps","StyledCardContent","dark","contrastText","down","CardContent","cardProps","convertJiraStatus","useJiraProxy","apiPost","requestConfig","JiraLink","issue","baseUrl","AP","navigator","go","issueKey","StyledAvatar","span","JiraRenderedField","avatarUrls","userAccountId","accountId","formatDate","filename","StyledGrid","InlineTextField","multiline","grid","inputProps","useFormikContext","useField","setValue","setTouched","setFocus","submitCount","lastSubmitCount","setLastSubmitCount","initialValue","previousValue","setPreviousValue","cancelButtonRef","isSubmitting","handleSubmit","handleCancel","getAdornmentClasses","endAdornment","InputAdornment","position","ButtonGroup","ClickAwayListener","onClickAway","gutterBottom","onFocus","onKeyDown","relatedTarget","InlineFormControl","gridProps","JiraIssueTypePicker","projectId","useGetJiraIssueTypes","issueTypes","isLoadingIssueType","issueTypeError","getIssueTypes","useGetJiraIssueTypesByProject","projectIssueTypes","isLoadingProjectIssueTypes","projectIssueTypeError","getProjectIssueTypes","useGetJiraProjects","projects","getProjects","issueType","scope","project","InputLabelProps","JiraProjectPicker","StyledDialogContent","JiraIssueCreateDialog","onCreateRef","setForm","setIssue","setResult","useCreateJiraIssue","createResult","createIssue","useFindJiraIssues","foundResult","findIssues","createdIssues","issues","linkToEntity","issueTypeId","issuetype","setFieldValue","duplicateTitle","duplicateDescription","useCreateTaskJiraIssueV2","createTaskJiraIssue","DateFormat","DatasetType","TaskJiraV2AssignCard","jiraFieldColumns","debouncedSearch","selectedIssue","setSelectedIssue","issueToUnlink","setIssueToUnlink","didCreateIssue","setDidCreateIssue","openCreateJiraIssueDialog","setOpenCreateJiraIssueDialog","jiraIssues","updatedJiraIssues","findIssuesByIds","taskJiraIssues","findTaskJiraIssues","useFindTaskJiraIssuesV2","createdTaskJiraIssue","isCreating","deletedJiraIssue","deleteTaskJiraIssue","useDeleteTaskJiraIssueV2","mergedTaskJiraIssues","jiraIssue","clearOnBlur","onInputChange","taskJiraIssue","CardActions","shouldLink","StyledAlertTitle","TaskJiraAssignCardPlugin","entityId","entityTable","dataId","useFindEntityDataById","entityData","getEntityDataById","useFindTask","findTask","showAlert","TaskEvent","handle","TaskEventType","ChangeStatus","toUpperCase","StyledConfigFieldControl","ConfigFieldControl","LineChartQueryBuilderPlugin","useQueryBuilderContext","pluginConfigs","pluginConfig","updateParams","updatePluginConfig","datasetType","Single","Multiple","clearOnEscape","columnName","alias","columnType","tableCase","columns","format","Month","Day","Quarter","Year","displayAllDates","fieldLegend","chartHeight","showLegends","excludeNullValues","forWorkflowStatus","axisTitle","show","XTitle","YTitle","StyledTooltip","ChartContaner","dataLength","MeshAndCrosshair","layerData","useTooltip","showTooltipAt","hideTooltip","isVisible","useTooltipState","x","y","nodes","points","onMouseEnter","point","tooltip","margin","onMouseMove","onMouseLeave","SiteLineChartPlugin","ChartType","Line","nivo","categoricalColorSchemes","activeId","setActiveId","lineChartParams","withChartDialog","isDateField","getDateRange","dateString","dateFormat","pattern","dateObject","formattedDate","start","startOfMonth","end","endOfMonth","startOfQuarter","endOfQuarter","startOfYear","endOfYear","customTooltip","serieId","serieColor","pointSymbol","isNullField","datum","nonFormatted","isNullFieldLegend","datasetName","conditions","ChartItemsEvent","OpenDialog","handleItemClick","fill","stroke","borderColor","strokeWidth","pointerEvents","lineChartData","fieldLegendAlias","legendProperty","fieldAlias","snakeCase","grouped","groupBy","orderedKeys","d","getTime","addDays","addMonths","addQuarters","addYears","has","groupedData","mainAlias","colorIndex","floor","uniqueId","fieldFormat","rawData","rd","legendsData","prev","Number","tooltipText","maxValue","max","colors","layers","curve","yScale","stacked","reverse","axisBottom","legend","legendOffset","legendPosition","axisLeft","pointBorderColor","stats","onItemClick","stat","slots","slot","defaultQmsSitePlugins","routes","defaultQmsSiteEventPlugins","eventTypes","setConfig","routePath","getRouteParams","newConfig","paramKey","routeParams","getConfigSummary","hook","paramPlugins","paramPlugin","p","paramContext","getParamValue","useHook","FormConfigPicker","disableMultiple","useFormContext","formState","setFormState","notifyFormEdit","selectedFormElement","FormGroupPickerPlugin","Group","dataTypes","edit","formValues","setFormValue","dataSource","previousValueRef","dataSourceProps","useDataSourceProps","FormUserPickerPlugin","Person","assignToTask","includeInactive","hideSupportUsers","filterGroupIds","entitySchema","includeDeleted","camelCase","lastSelectedId","columnTypeOptions","FormConfigTableField","AddCircleOutline","onDelete","FormTableFieldColumnConfig","accordionProps","setColumn","RemoveCircleOutline","inputAdornment","SortableFormTableFieldColumnConfig","FormTableFieldPlugin","TableChartOutlined","createInitialItem","OutlinedInput","newValues","startAdornment","m","updatedValues","defaultQmsFormElementPlugins","defaultFormElementPlugins","getEntityProperties","propertyNames","relation","previous","displayEntityProperties","EntityContext","SessionSource","EntityProvider","entitySchemas","findEntitySchemas","useFindEntitySchemas","SessionContext","SessionProvider","sessions","clientIdRef","socketRef","io","Web","socket","StyledCardTitleTypography","CardTitle","StyledStep","VerticalStep","step","getStepClass","StyledVerticalStepper","VerticalStepper","StyledCenterView","StyledContent","ErrorContent","ErrorView","contentProps","StyledInlineFormGrid","InlineForm","Form","wrap","diff","oldValue","isEmpty","isString","diffString","isNumber","diffNumber","isBoolean","diffBoolean","diffArray","isObject","diffObject","oldArray","newArray","object","StyledErrorBox","InlineFormik","remainingProps","cachedValues","setCachedValues","enableReinitialize","formikHelpers","valuesDiff","useUpdateSupplier","updatedSupplier","updateSupplier","useFindSuppliers","supplierList","findSuppliers","useIdSearchableFetch","useFindPurchaseOrderByTask","useUpdateSpor","updatedSpor","updateSpor","handleFormNumber","n","renderNumberFormatter","creditcard","currency","allowLeadingZero","mask","suffix","thousandSeparator","numberFormatProps","inputRef","fieldProps","allowLeadingZeros","getInputRef","onValueChange","floatValue","InlineNumberField","inputComponent","SupplierDetailsCard","supplier","supplierVersion","initialData","Subject","supplierDto","InlineRadioGroup","RadioGroup","Radio","SupplierQualitySystemCard","commonOptions","commonGridProps","History","StyledDivider","StyledTypography","SupplierQualityManualCard","Book","StyledActions","InputFile","compact","uploadPath","valuesRef","hasUploadingRef","uploadFiles","setUploadFiles","valuesState","setValuesState","cancelFile","setCancelFile","fileToRemove","setFileToRemove","attemptedFileNames","setAttemptedFileNames","openFileTypeConfirmDialog","setOpenFileTypeConfirmDialog","cancelItem","showTable","showRowDivider","displayAttemptedFileNames","tableClasses","allUploadedItems","uploadedFiles","uploaded","fileList","filesToUpload","fileExtension","match","isValidExtension","loadingRow","InputFileItem","downloading","setDownloading","toLocaleString","maximumFractionDigits","minimumFractionDigits","formatFileSize","downloadFile","urlName","encodeURI","placement","InlineFile","SupplierFileAttachmentCard","SupplierQualityControlCard","FindInPage","SupplierQualityProgramCard","Policy","StyledBody","GridActions","selectedStepIndex","setSelectedStepIndex","setText","openDialog","setOpenDialog","modified","Send","SupplierSurveyPage","NumberParam","setSupplier","didSubmit","setDidSubmit","findSupplier","useFindSupplierByToken","tokenParam","completedSupplier","isCompleting","completeError","completeSupplier","useCompleteSupplierSurvey","invalidToken","apiError","supplierCardProps","newSupplier","cardComponent","AssignmentTurnedIn","scrollTo","lastIndex","AppBar","square","Toolbar","noWrap","Hidden","xsDown","CreateJiraIssuePluginDialog","onSuccess","stateRef","onSuccessRef","createError","CreateJiraIssuePlugin","events","pluginParams","JiraStatusPicker","useGetJiraStatusesByProjectId","getStatuses","statuses","newStatuses","s","renderTags","getTagProps","TransitionEntityStatusFromJiraPlugin","selectedEvent","eventName","transitions","JiraIssueFieldPicker","useGetFieldsByProjectAndIssueType","issueFields","getIssueFields","issuetypes","keyName","UpdateFieldFromJiraPlugin","taskTypeId","useFindTaskTypeById","entityField","fieldsText","startCase","UpdateJiraIssueDialog","useUpdateJiraIssues","updateResult","updateIssues","alertMsg","dataFields","apiTaskEntity","findTaskEntity","apiJiraIssues","findTaskJiraIssuesV2","taskEntityError","jiraIssuesError","selectedIssueTypes","filteredJiraIssues","updates","allFields","createJiraIssueFields","issueId","run","UpdateJiraIssuePlugin","getJiraIssueEntityFieldOptions","taskSchemaName","environmentV2","EntitySchemaRelationSelector","renderOption","EntitySchemaSelector","filterRelations","AddRelationDialog","relationProp","setRelation","allEvents","states","selectedEvents","relationEvents","relationEvent","propertyRelation","validRelation","taskTypeLabel","ErrorPluginView","metadata","selectedTask","setSelectedTask","relationName","UpdateRelatedEntityStatusPlugin","groupIndex","itemIndex","ErrorItem","HighlightOff","UpdateRelatedEntityStatusErrorPlugin","getPropertyDisplay","setWorkflowVersion","getTaskTypes","foundWorkflowVersion","relationSchema","UpdateRelatedEntityStatusLegacyPlugin","table","WorkflowSelector","relationTarget","didAutoSelectRef","previousWorkflowId","selectedWorkflow","displayStatuses","defaultValue","allStatuses","CheckDependenciesEntityDialog","dependencyProp","dependency","setDependency","isValidStatus","entityDependency","optional","StyledTableCell","info","CheckDependenciesDialog","checkDependencies","useCheckDependencies","dependencies","CheckDependenciesDialogView","justifyContent","none","OfflinePinOutlinedIcon","CheckCircleOutlineIcon","HighlightOffIcon","StatusIcon","getLabelAndIcon","valid","CheckDependenciesPlugin","getDisplayName","includeStatus","skipTransitionConditionPlugins","CheckDependenciesLegacyDialog","taskV2Id","useApiV2Post","useCheckDependenciesLegacy","CheckDependenciesLegacyPlugin","validateImport","SignaturePlugin","reason","meaning","reasonLabel","ElectronicSignatureDialog","onSigned","filteredTransitionConditionPlugins","transitionConditionPlugins","platformStackWorkflowPlugins","servicePlugins","UserEmailVerification","searchParams","useVerifyEmail","emailVerified","isPasswordSet","getProductEntityName","getProductEntityIdPrefix","isProductRelationDisabled","propertyKey","getHazardEntityName","cause","getHazardIdPrefix","useUpdateHazard","updatedHazard","updateHazard","useFindProductHazards","productHazardList","isLoadingProductHazards","loadingProductHazardsError","findProductHazards","useHazardEntityPrefixId","hazardEntity","getHazardEntityPrefix","useCreateHazardCause","createdHazardCause","isCreatingHazardCause","createHazardCauseError","createHazardCause","useUpdateHazardCause","hazardCauseId","setCause","updateHazardCause","updatedHazardCause","isUpdatingHazardCause","updateHazardCauseError","useCreateHazardControl","createdHazardControl","isCreatingHazardControl","createHazardControlError","createHazardControl","useUpdateHazardControl","hazardControlId","setControl","updateHazardControl","updatedHazardControl","isUpdatingHazardControl","updateHazardControlError","useCreateHazardAction","createdHazardAction","isCreatingHazardAction","createHazardActionError","createHazardAction","useUpdateHazardAction","hazardActionId","setAction","updateHazardAction","updatedHazardAction","isUpdatingHazardAction","updateHazardActionError","useFindHazardReferenceTargets","useHazardTargetEntity","targetEntityList","isLoadingTargets","loadingTargetsError","findReferenceTargets","hazardBoardOptions","removeFrom","getExportTitle","useHazardFilterQueryParams","ArrayParam","NumericArrayParam","assigneeId","setAssigneeId","authorId","setAuthorId","BooleanParam","assignedForReviewOnly","setAssignedForReviewOnly","assignee","author","convertOptionsToParams","getParams","CapitalizedText","JiraStyledLink","getTypeLabel","getEntityId","EntityLink","useFindJiraConnect","jiraConnect","findJiraConnect","pagePath","getEntityPath","jiraBaseUrl","createServletUrl","JiraLinkedEntities","jiraKey","useFindLinkedEntities","findError","tableRef","postMessage","CartContext","useCartContext","getCartIndex","cart","CartProvider","setCart","processedEntities","setProcessedEntities","addToCart","removeFromCart","clearCart","VersionInfo","AdminGuard","CapaAdminGuard","DocumentAdminGuard","DocumentEditorGuard","DocumentViewerGuard","HazardAdminGuard","NoRoleGuard","ProductAdminGuard","RiskAdminGuard","ScarAdminGuard","SiteAdminGuard","WorkflowAdminGuard","TraineeGuard","TrainingAdminGuard","SupplierAdminGuard","NavThemeProvider","MuiListItem","blueGrey","StyledPageTemplateNav","PageTemplateNav","tabs","StyledPaper","Paper","PageTemplateCardOver","StyledPageTemplate","PageTemplate","React","Children","reactElement","StyledHeader","blue","StyledCardHeaderActions","PageTemplateHeaderActions","PageTemplateHeader","noRoles","PageTemplateDashboard","TrainingChartCard","trainingStats","middleText","useGetUserTrainingStats","userTrainings","useGetUserTrainings","trainingStatsPercentage","percent","formatter","completedCount","toDoCount","inProgressCount","innerRadius","activeOuterRadiusOffset","padAngle","cornerRadius","borderWidth","modifiers","arcLabelsSkipAngle","arcLinkLabelsOffset","arcLabelsTextColor","arcLinkLabelsSkipAngle","arcLinkLabelsThickness","arcLinkLabelsColor","arcLinkLabelsTextColor","animate","legends","anchor","direction","translateY","itemsSpacing","itemWidth","itemHeight","itemTextColor","symbolSize","symbolShape","effects","on","TrainingLogCard","isViewOnly","getUserTrainings","order","setOrder","orderDirection","setOrderDirection","String","handleSort","getSortDirection","TableSortLabel","userTraining","trainingVersion","fileMetadata","trainingId","handleViewTrainingLog","taskKey","assignedDate","dueDate","completedDate","TrainingUpcomingDialog","upcomingTrainings","upcomingTraining","trainingName","trainingDeadline","TrainingUpcomingCard","upcomingTrainingsCount","useUserTrainingUpcomingCount","useUserTrainingUpcoming","isOpenDialog","setIsOpenDialog","textAlign","onCreated","NumberFormat","TrainingPage","TrainingPageContent","DashboardChart","widthDiff","setWidthDiff","observer","setObserver","pieData","assigned","dueSoon","overdue","disconnect","ob","ResizeObserver","elRect","gRect","adiff","ceil","updateSize","observe","arcLabel","arcLinkLabelsTextOffset","arcLinkLabelsDiagonalLength","arcLinkLabelsStraightLength","convertToProductEntityName","workFlowName","DashboardItemGraph","itemList","allItems","indexBy","borderRadius","layout","getOrdinalColorScale","axisTop","axisRight","tickSize","tickPadding","tickRotation","labelSkipWidth","labelSkipHeight","labelTextColor","StyledListItemText","primaryTypographyProps","BaseDashboardCard","useGraph","useItemGraph","chart","emptyState","isActive","taskV2","ColumnItem","entityIdType","orderMap","AdminToDoCard","tasks","setTasks","useGetCurrentUserTasks","isFetching","fetchError","useFindTasks","taskList","isFindingTasks","findTasks","redirectV2","useTaskV2Redirect","taskItem","shouldUseEntityId","sortTasks","aItem","bItem","temp","aLabel","bLabel","aStatus","bStatus","saveTasks","newTaskItems","taskItems","newTaskItem","excludeTypes","StateNodeType","Final","includeEntityId","Assignment","useUpdateCapa","CustomLegend","legendData","containerHeight","containerWidth","CapaChart","setStats","useGetCapaStats","date","newDate","year","getFullYear","month","getMonth","formattedData","existingRecord","updatedExistingRecord","handleSetStats","capaStatuses","getColor","bar","defs","stagger","rotation","lineWidth","groupMode","enableGridX","dataFrom","justify","itemDirection","itemOpacity","DocumentChart","useGetDocumentStats","useFindWorkflowsByTaskTypeTarget","paths","workflowsDto","useMultipleWorkflowStatuses","allStats","results","existingStatus","barData","EmployeeChart","chartColors","formattedStats","EmployeeChartCard","useGetEmployeeStats","totalUsers","AdminDashboardPage","AdminDashboardPageContent","DashboardDocumentCard","searchProp","useGetUserPendingDocumentStats","isLoadingChart","chartError","useGetUserPendingDocuments","isLoadingFiles","filesError","sortFiles","aName","aId","bName","bId","FileCopy","useCreateTaskJiraIssue","creatingTaskJiraIssue","autoSkip","enableTitleTemplate","titleTemplate","autoSkipJiraPlugins","TransitionJiraIssueDialog","done","skipped","setTotal","useGetJiraIssueTransitions","getTransitionsResult","getJiraIssueTransitions","useTransitionJiraIssue","transitionResult","transitionJiraIssue","jiraIssuesRef","dataIssues","promises","matchedIssues","TransitionJiraIssuePlugin","EntityColumnSelector","optionsProp","handleUpdateInvoke","ConfirmPlugin","StyledFormGroup","FormGroup","StyledFormControlLabel","FieldSelector","hasFields","allFieldsSelected","noFieldsSelected","partialFieldsSelected","newFields","indeterminate","getRequiredFieldValue","validateRequiredField","RequiredFieldsDialog","workflowItem","requiredFields","RequiredFieldsPlugin","invalidFields","requiredField","PublishEventPlugin","eventList","findEvents","useFindEventNames","filterSelectedOptions","RemoveSubTasksPlugin","selectedStates","statePaths","filterOptions","_condition","uploadReducer","useUploadAttachment","useGetPresignedUrl","presignedState","requestRef","fileIndexRef","previosPresignedState","timeout","uploadFile","isCompleted","presignedResult","destinationUrl","expiration","nextFile","uploadCallback","isError","removeCallback","f","imageExtensions","Images","useFileUpload","fileValues","alwaysClear","completedFiles","getSrcFromText","imgStr","dirtyUrl","isProxyURL","formatImgURLs","removeToken","urls","replaceArr","ampUrl","urlNoParams","getBaseUrl","delete","newParamsStr","newUrl","useFilterImageAttachments","filterImageAttachments","BASE64_MARKER","useAttachNewImages","onCompleteUpload","onChangeAttachments","uploadedBlacklist","convertToFile","isDataURI","dataURI","getFileName","mimePart","contentPart","mime","bytes","atob","writer","Uint8Array","ArrayBuffer","charCodeAt","buffer","useConvertDataURLToFile","valueRef","resolveRef","rejectRef","createPromise","useResolvablePromise","getExistingStorageKeys","uploadData","originalUrl","imageAttachments","getStorageKeyFromURL","getURLData","getExtensionFromContentType","existingKeys","filterUploadData","urlData","existingStorageKeys","createFileName","timestamp","convertURLDataToFile","lastModified","uploadImages","inspectAndUpload","StyledDialogTitle","InlineHtmlImageDialog","onSelectProp","onSelectStorageKey","disableTypography","AddPhotoAlternate","StyledButtonGroup","InlineHtml","enableMedia","hideConfirm","submitOnChange","noAutoResize","resetSessionTime","setImageCallbackRef","textRef","debounceSetValue","debounceSubmit","clearDebouncedSubmit","buttonFocus","setButtonFocus","didInit","setDidInit","isDialogOpen","setIsDialogOpen","timersRef","unmountedRef","handleImageError","imageEl","complete","naturalWidth","tryCount","didLoad","onload","onerror","timers","reloadFailedImages","iframe","doc","contentDocument","querySelectorAll","useImageReloader","toolbar","apiKey","init","menubar","contextmenu","browser_spellcheck","paste_data_images","relative_urls","remove_script_host","plugins","file_picker_callback","setImageCallback","onInit","iframeElement","styleEl","innerHTML","appendChild","applyImageStyling","onEditorChange","editor","replacedValue","MultiUserSelector","showEmail","onSelected","previousUserId","setUsers","val","selectedUser","uid","u","userIds","specificEmailIds","includeLinkToItem","SelectProps","renderValue","userGroup","useGetWorkflowMachineState","workflowMachineState","setWorkflowMachineState","workflowMachineStateRef","machineOptions","services","canTransition","machine","handleTransition","newState","runMachine","WorkflowMachine","ProductBoardColumnEntity","StyledDialog","lighten","TaskBulkActionDialog","bulkEvent","getTitle","isInitializing","setIsInitializing","setState","setTaskItems","subTaskEvents","setSubTaskEvents","computedItems","eligibleTaskItems","eligibleSelectedTaskItems","selectedMainTaskItems","hasItems","allSelected","partialSelected","updateItem","idOrPredicate","bulkTransition","stateEvent","skip","transitionConditions","jiraPlugins","firstState","previousStatePath","toJson","previousStatus","didStatusChange","updatedTaskItems","updatedTaskItem","hideTargetStatus","matchParent","previousParentStatus","canParentTransition","parentState","parentItemStatus","didParentTransitionFail","didParentStatusChange","isSubTask","isDone","eligible","CheckCircleIcon","CancelIcon","CheckBox","SubdirectoryArrowRight","getEntityPrefix","ArrowForward","renderSubTasks","selectedItems","parsedStatus","parsedTargetStatus","recursiveProcessSubTasks","subTaskEvent","stickyHeader","taskItemIndex","BoardColumnMenu","groupByType","onRender","onRenderRef","taskEntitiesRef","bulkEventGroups","setBulkEventGroups","selectedBulkEvent","setSelectedBulkEvent","bulkEvents","ListSubheader","targetStatus","mr","gridColumnGap","ProductBoardContext","toggleSelected","removeSelected","isSelected","ProductBoardProvider","setEntity","entityValue","setSelectedEntity","productEntity","TaskStatusDot","CartToggleButton","isInCart","RemoveShoppingCart","AddShoppingCart","DivCardActionArea","CardActionArea","ProductBoardItem","initialTitle","initialEditable","editable","viewDetailsLink","onSave","setTitle","setEditable","WrapperContent","Fragment","viewButton","onKeyPress","data-entity-id","ProductBoardDesignInput","product","initialDesignInput","useProductViewParams","setDesignInput","useCreateProductDesignInput","createdProductDesignInput","isCreatingProductDesignInput","createProductDesignInputError","createProductDesignInput","useUpdateProductDesignInput","updatedProductDesignInput","isUpdatingProductDesignInput","updateProductDesignInput","useProductEntityPrefixId","ProductBoardDesignOutput","initialDesignOutput","setDesignOutput","useCreateProductDesignOutput","createdProductDesignOutput","isCreatingProductDesignOutput","createProductDesignOutputError","createProductDesignOutput","useUpdateProductDesignOutput","updatedProductDesignOutput","isUpdatingProductDesignOutput","updateProductDesignOutput","ProductBoardDesignSpec","initialDesignSpec","setDesignSpec","useCreateProductDesignSpec","createdProductDesignSpec","isCreatingProductDesignSpec","createProductDesignSpecError","createProductDesignSpec","useUpdateProductDesignSpec","updatedProductDesignSpec","isUpdatingProductDesignSpec","updateProductDesignSpec","ProductBoardValidation","initialValidation","Validation","setValidation","useCreateProductValidation","createdProductValidation","isCreatingProductValidation","createProductValidationError","createProductValidation","useUpdateProductValidation","updatedProductValidation","isUpdatingProductValidation","updateProductValidation","ProductBoardVerification","initialVerification","Verification","setVerification","useCreateProductVerification","createdProductVerification","isCreatingProductVerification","createProductVerificationError","createProductVerification","useUpdateProductVerification","updatedProductVerification","isUpdatingProductVerification","updateProductVerification","ProductBoardUserNeed","initialUserNeed","setUserNeed","useCreateProductUserNeed","createdProductUserNeed","isCreatingProductUserNeed","createProductUserNeedError","createProductUserNeed","useUpdateProductUserNeed","updatedProductUserNeed","isUpdatingProductUserNeed","updateProductUserNeed","StyledLoadMoreContainer","ProductBoardColumnEntityURL","getColumnTitle","ProductBoardColumn","apiParamsProp","hideHeader","userNeeds","designInputs","designOutputs","verifications","validations","designSpecs","handleFetch","concatRef","moreMenu","setMoreMenu","popoverProps","setPopoverProps","columnTitle","selectedEntity","workflowEntity","convertToWorkflowEntity","useFindFilteredProductUserNeeds","productUserNeedList","productUserNeedPaginated","isLoadingProductUserNeeds","findProductUserNeeds","useFindFilteredProductDesignInputs","productDesignInputList","productDesignInputPaginated","isLoadingProductDesignInputs","findProductDesignInputs","useFindFilteredProductDesignOutputs","productDesignOutputList","productDesignOutputPaginated","isLoadingProductDesignOutputs","findProductDesignOutputs","useFindFilteredProductVerifications","productVerificationList","productVerificationPaginated","isLoadingProductVerifications","findProductVerifications","useFindFilteredProductValidations","productValidationList","productValidationPaginated","isLoadingProductValidations","findProductValidations","productEntityId","useFindProductDesignSpecs","findByUserNeedId","useFindProductDesignSpecsByUserNeedId","findByDesignInputId","useFindProductDesignSpecsByDesignInputId","findByDesignOutputId","useFindProductDesignSpecsByDesignOutputId","findByVerificationId","useFindProductDesignSpecsByVerificationId","productDesignSpecList","productDesignSpecPaginated","useFindFilteredProductDesignSpecs","isLoadingProductDesignSpecs","findProductDesignSpecs","useProductEntityState","productUserNeeds","setProductUserNeeds","productDesignInputs","setProductDesignInputs","productDesignOutputs","setProductDesignOutputs","productVerifications","setProductVerifications","productValidations","setProductValidations","productDesignSpecs","setProductDesignSpecs","paginatedList","isCurrentEntity","findProductEntities","fetchProductData","Description","createDefaultProduct","MoreVert","Update","useUpdateProduct","updatedProduct","updateProduct","useFindProducts","productList","findProducts","useFindProduct","findProduct","productUserNeedId","updateProductUserNeedError","useFindProductUserNeeds","loadingProductUserNeedsError","useFindProductUserNeedsByDesignInputId","designInputId","useFindProductUserNeedsByDesignOutputId","designOutputId","useFindProductUserNeedsByVerificationId","verificationId","useFindProductUserNeedsByValidationId","validationId","entitiesProp","entitiesRef","setEntities","newEntities","newEntity","findByValidationId","useAssignUserNeedDesignInput","userNeedId","isAssigning","useAssignUserNeedDesignSpec","assignDesignSpecs","useAssignUserNeedVerification","useAssignUserNeedValidation","useAssignUserNeedHazard","assignHazards","productDesignInputId","updateProductDesignInputError","useFindProductDesignInputs","loadingProductDesignInputsError","useFindDesignInputsByUserNeedId","useFindProductDesignInputsByUserNeedId","useFindProductDesignInputsByDesignOutputId","useFindProductDesignInputsByVerificationId","useFindProductDesignInputsByValidationId","useAssignDesignInputUserNeed","useAssignDesignInputDesignOutput","useAssignDesignInputDesignSpec","useAssignDesignInputVerification","useAssignDesignInputValidation","productDesignOutputId","updateProductDesignOutputError","useFindProductDesignOutputs","loadingProductDesignOutputsError","useFindProductDesignOutputsByUserNeedId","useFindProductDesignOutputsByDesignInputId","useFindProductDesignOutputsByVerificationId","useFindProductDesignOutputsByValidationId","useAssignDesignOutputDesignInput","useAssignDesignOutputVerification","useAssignDesignOutputValidation","useAssignDesignOutputDesignSpec","productVerificationId","updateProductVerificationError","useFindProductVerifications","loadingProductVerificationsError","useFindProductVerificationsByUserNeedId","useFindProductVerificationsByDesignInputId","useFindProductVerificationsByDesignOutputId","useFindProductVerificationsByValidationId","useAssignVerificationDesignOutput","productValidationId","updateProductValidationError","useFindProductValidations","loadingProductValidationsError","useFindProductValidationsByUserNeedId","useFindProductValidationsByDesignInputId","useFindProductValidationsByDesignOutputId","useFindProductValidationsByVerificationId","useAssignValidationUserNeed","useAssignValidationDesignInput","productDesignSpecId","updateProductDesignSpecError","loadingProductDesignSpecsError","useAssignDesignSpecUserNeed","designSpecId","useCreateProductHazard","createdProductHazard","isCreatingProductHazard","createProductHazardError","createProductHazard","TraceabilityReport","eClinicalReport","getProductEntityPrefix","useProductEntityPrefix","useFindProductComponents","productComponents","findProductComponents","useFindProductReleases","productReleases","findProductReleases","includeAllQueryParams","view","str","useProductFilterQueryParams","unassignedOnly","setUnassignedOnly","setComponents","setReleases","getBoardSearchQuery","productBoardOptions","useFindProductTemplates","productTemplates","findProductTemplates","includeEClinical","useUpdateProductTemplate","templateId","updatedProductTemplate","updateProductTemplate","DashboardProductCard","useGetUserTaskSummary","isLoadingSummary","taskSummaryError","getTaskSummary","isLoadingItems","itemsError","sortEntities","aTitle","itemTotal","DesignServices","DashboardAssignedTab","dashboardEntities","DashboardPage","scrollRef","hasFileItems","hasProductItems","hasTrainingItems","pendingItems","hasPendingItems","pendingItemsText","useDashboardPendingItems","isAdmin","allowedPages","pages","getPageUrl","exact","useUpdateAgreement","agreement","PublishStatus","StyledStatusLabelContainer","getPublishedStatusLabel","PublishStatusLabels","statusLabel","Published","AgreementStatusActions","openRevertDialog","setOpenRevertDialog","openPublishDialog","setOpenPublishDialog","updatedAgreement","revert","useRevertAgreement","revertedAgreement","StyledListItem","AgreementTabEdit","setSections","selectedSectionIndex","setSelectedSectionIndex","section","isEditable","destination","reorderedSections","startIndex","removed","droppableId","provided","snapshot","draggableId","isDragDisabled","draggableProps","ListItemIcon","InputBase","AgreementInfoCard","setInitialValues","getInitialValues","AgreementStatusCard","agreementStatusLogs","useGetAgreementStatusLogs","delta","agreementRef","setAgreementStatusLogs","logs","newLog","paddingTop","statusLog","createdBy","AgreementVersionCard","agreementId","agreementVersions","findAgreementVersions","useFindAgreementVersions","agreementVersion","AgreementTabInfo","StyledTitle","getTabValue","AgreementAdminDetailPage","tabValue","useFindAgreement","loadedAgreement","setAgreement","StyledSearchBox","SearchBox","onSearch","AgreementCreateDialog","useCreateAgreement","agreementDto","AgreementAdminListPage","list","useFindAgreements","JSON","stringify","modifiedBy","StyledSplitPane","StyledPane","Pane","borderStyle","borderHoverStyle","StyledSplitResizer","SplitResizer","onMouseDown","onTouchStart","SplitPane","dragState","setDragState","isPrevious","handleStartDrag","parentElement","toggleChildPointerEvents","previousSibling","nextSibling","handleDrag","multiplier","styleSize","pauseEvent","cancelBubble","returnValue","handleMouseMove","handleTouchMove","touches","handleMouseUp","childComponents","toArray","c","auditElements","elements","answer","links","TreeNode","UnidentifiedControls","AuditControlElements","depth","onToggleElement","onSelectElement","AuditListPane","ControlDetailPane","getAllControls","controlElements","AuditPage","isFileImported","setIsFileImported","setElements","isAllLoaded","setIsAllLoaded","selectedElement","setSelectedElement","controlCount","elementCounter","setElementCounter","controlElementsState","setControlElementsState","loadAuditSheet","getControlElements","loadNextAuditSheetElement","random","dangerouslySetInnerHTML","__html","link","useCheckIfHasTemplate","CapaSource","StyledCard","Card","InlineSelect","CapaProbability","CapaSeverity","CapaRootCause","CapaStatus","CapaSeverityText","CapaProbabilityText","SingleUserSelector","CapaDetailsCardContext","capa","currentCapaOwner","setCurrentCapaOwner","getFieldHelpers","getFieldMeta","CapaDetailsCard","updatedCapa","updatedValue","CapaPreventiveCard","CapaVerificationCard","CapaInvestigationCard","TemplateType","ErrorMetadataView","errorProp","pluginProps","createErrorMetadataView","StyledStatusActions","TaskStatusActions","initialTask","onBeforeUpdateTask","setTask","updateTaskCb","assignedSubTasks","loadedTask","oldStatePath","catch","subTaskKey","TaskAuditListItem","collapse","setCollapse","fieldLabel","translateKey","charAt","TaskAuditLogList","taskIdRef","taskAuditLogs","setTaskAuditLogs","taskAuditLogList","getAuditLog","useGetTaskAuditLog","TaskStatusCard","showAuditLog","setShowAuditLog","taskRef","setTaskStatusLogs","HoveredCard","SubTaskListCard","childrenRef","assignProps","setAssignProps","isAssigned","hasPermission","didTransition","subTaskPaths","isSubTaskFinalized","targetPath","canReassign","useReassignSubTasks","hasGroupPermissions","useWorkflowGroupPermissions","createSubTasks","useCreateSubTasks","hasActiveSubTasks","preselectedUsers","reassign","unshift","Notes","Email","Name","UserLink","disableLink","displayText","TaskAssignCard","openRemoveDialog","setOpenRemowDialog","assignedUser","setAssignedUser","disabledAssignTask","userName","AssignmentInd","StyledInputFile","TaskAttachmentCard","SelectDialogContext","setSelectedItems","SelectDialog","initialSelectedItems","SelectDialogSearchField","onSearchRef","SelectDialogTable","idKey","dataList","onChangePage","onChangeRowsPerPage","filteredItems","renderRows","wordWrap","textOverflow","SelectDialogSubmitButton","AssignDocumentDialog","defaultLimit","contentText","useFindFilesPaginated","findFiles","versionLog","DocumentReferenceCard","assignLabel","onAssigned","removeFile","setRemoveFile","DocumentReferenceCardItem","isLatest","redirectPath","fileVersion","TaskFileListCard","fileReferences","setDirection","findTaskFiles","useFindTaskFiles","findTaskFilesWithParams","CloudUpload","hoverOpacity","DeleteEntityCard","apiPath","useDeleteEntity","deletedEntity","deletingEntity","deleteError","deleteEntity","DeleteSweep","deleted","undelete","TemplateTypeName","DocumentApproval","Trainee","TrainingPlan","CapaExportButton","extensionRef","menuAnchorEl","setMenuAnchorEl","useExportCapaDocument","getDocument","getDocumentAs","CapaDetailPage","hasRole","useFindCapaByTask","getCapa","setCapa","templateAvailable","setTemplateAvailable","ifHasTemplate","capaCardProps","newCapa","handleTaskChange","newTask","CapaCreateDialog","dialogProps","useCreateCapa","Board","BoardItem","onSelectTask","assignedName","Contents","BoardItemWithSubtask","transitionStyle","BoardColumn","tasksProp","onDrag","loadingItemId","workflowConfig","isDropDisabled","taskState","_snapshot","hasSubtask","TaskBoardStatusAction","doTransition","checkEvent","eventFound","cancelTransition","TaskBoard","lastTaskMapRef","lastTransitionedTaskDataRef","workflowStates","setWorkflowStates","taskMap","setTaskMap","setEvent","loadedWorkflowVersion","useFindTaskByEntity","fetchedTasks","getTasks","setCanTransition","setOnDrag","selectedTaskEntity","mapTaskByStatus","revertTaskData","previousTask","taskToRevert","handleTaskTransition","lastSource","lastDestination","droppableSource","droppableDestination","sourceClone","destClone","move","handleDragEnd","handleOnDragStart","ListMoreButtonMenu","menuAnchor","setMenuAnchor","CapaPage","showPrompt","setShowPrompt","setView","setFilter","setIncludeDeleted","useGetCapaList","capaList","PageTemplateAlert","InlineDatePicker","asInnerLabel","birthdate","picker","setDateHours","clearable","autoCloseOnSelect","eventRef","setHours","toISOString","datePickerProps","pickerProps","disableFuture","openTo","views","inputVariant","InputAdornmentProps","autoOk","onAccept","persist","TaskDueDateCard","Event","CardTitleContent","DocumentUpload","loadingMessage","fileState","debounceClear","uploadError","clearState","useElementSize","once","elementRef","setWidth","setHeight","getElementSize","updateElementSize","unobserve","shadows","PDFViewer","resizeOnce","scaleAdjust","pdf","setPdf","scale","setScale","setPages","numPages","containerWidthOnce","fileUrl","pageRefs","createRef","IntersectionObserver","intersects","entry","attr","getAttribute","isIntersecting","visible","hasOwnProperty","rootMargin","threshold","onLoadSuccess","onLoadError","PdfPage","pageIndex","flexDirection","Fade","newScale","Remove","ZoomIn","forwardRef","didRender","setDidRender","data-page-index","pageNumber","originalHeight","MSOfficeLiveViewer","append","CSVViewer","setRows","Papa","parse","header","skipEmptyLines","csvParseError","colummName","columnIndex","rowIndex","UnrenderedFilesViewer","fileSize","decimals","k","dm","sizes","parseFloat","pow","toFixed","DocumentViewer","useProxyUrl","DocumentApprovalExportDialog","abortRef","dateOnly","setData","useExportFile","exportFile","handleExport","DocumentDownloadButton","forceDownload","asStartIcon","allowTemplateTypes","setIsDownloading","openExportDialog","setOpenExportDialog","downloadUrl","useDownloadAsPdf","isConverting","convertError","isDoc","enableApprovalExport","enableMenu","downloadOriginal","statusText","GetApp","DocumentFullscreenDialog","fullScreen","DocumentViewerCard","uploadRef","fullscreen","setFullScreen","useUpdateFile","updatedFile","updateDocument","Fullscreen","flattenTree","tree","flatList","shouldInclude","isLeafNode","hasValidLeafNode","DocumentBreadcrumbsRoot","documentId","breadcrumProps","clearBreadcrumbs","updateBreadcrumb","setRoot","useGetFileTreeById","getTree","DocumentBreadcrumbs","TaskStatusVersionCardRow","latestStatusLog","statusLogs","TaskStatusVersionCard","showCart","pageRef","groupedLogs","setGroupedLogs","previousTaskRef","taskStatusLogList","useGetVersionedTaskStatusLogs","isLoadingLogs","previousLogs","previousGroup","DocumentLogCard","isExpanded","isDocHistoryViewer","useUserPermissions","useGetFileVersion","wordBreak","RouterLink","Visibility","DocumentLogStatusCard","DocumentDescriptionOfChangeCard","isUpdatingTask","updateTaskError","DocumentInternalIdCard","DocumentRevCard","DocumentReasonForChangeCard","DocumentChangeOrderReferenceCard","useFindDocumentChangeOrders","findChangeOrders","AssignmentReturned","changeOrder","AssignDocumentOwnerDialog","previousSearch","ownedBy","setSelectedUser","DocumentOwnerCard","setAssignOwner","openAssignDialog","setOpenAssignDialog","setOpenRemoveDialog","hasAccess","disabledAssignOwner","AccountCircle","DocumentDetailPage","versionId","fetchLogsRef","setDidUpdate","setDocument","isDocViewer","useFindDocumentByTaskId","fetchedDocument","useDocumentUploadData","uploadDate","uploaderName","approvedDate","hasDocument","latestText","newDocument","hideInternalDocumentId","hideRev","referenceFileIds","PageTemplateBodyCard","StyledButtonContainer","SearchFilterButton","StyledDrawerContent","SearchFilterDrawer","clearLabel","filterLabel","onFilter","onClear","Drawer","DocumentTypeFilter","WorkflowStatusSelector","DocumentStatusFilter","createInitialOptions","DocumentBoardFilter","initialOptions","setOptions","updateOptions","updatedData","assignedToMe","tt","useStyles","makeStyles","createStyles","DocumentFileExplorerDialog","filesToMove","onMoveSuccess","useMoveFile","checkReplace","setCheckReplace","setDestination","snackbarProps","setSnackbarProps","isDestinationValid","destinationFolderId","shouldUpdateIfExists","headCells","visuallyHidden","border","clip","DocumentTableHead","orderBy","onRequestSort","checkboxAllProps","onSelectAllToggle","headCell","sortDirection","FileIcon","faFolder","faFileExcel","faFilePowerpoint","faFileAlt","faFileWord","faFilePdf","faFileCsv","faTrash","faFileImage","faFileAudio","faFileVideo","faFileArchive","faFile","getIconWithColor","fixedWidth","StyledTable","descendingComparator","getComparator","stableSort","comparator","stabilizedThis","DocumentList","TabPanels","onRowClick","onRowDoubleClick","selectedIDs","onSelectionChange","setOrderBy","onSelectToggle","selectedID","exists","DocumentListItem","onDoubleClick","DocumentRenameDialog","renamedFile","renameFile","fileLabel","fileLabelCaps","aria-labelledby","deleteButton","DocumentDeleteDialog","useDeleteDocument","deletedDocuments","deletedDocument","DocumentGroupSelector","fileGroupIds","setEdit","setGroupIds","updateFile","resetGroupIds","StyledFirstItem","StyledSecondItem","StyledTableHead","TabPanel","TabProps","DocumentInfoDrawerTabPanel","ViewEnum","setIndex","setHistory","historyFetched","setHistoryFetched","useGetDocumentHistory","paginatedData","fetchHistory","maxHeight","setMaxHeight","handleResize","Details","formatSize","float","paddingY","StyledDocumentInfoDrawer","DocumentInfoDrawer","onDocumentMove","renameOpen","setRenameOpen","deleteOpen","setDeleteOpen","handleError","Forward","DeleteForever","renamedFolder","DocumentCreateFolderDialog","folderDocumentId","folderDto","DocumentTaskBoard","useGetFileTasks","foundTasks","StyledFab","Fab","zoomTransitionProps","folderId","useDocumentFilterQueryParams","dialog","setDialog","setFileList","setSelectedIDs","useFindDocuments","apiFindDocuments","useSearchFiles","searchedFiles","isSearching","searchError","searchFiles","navRefresh","navRefreshNode","hasSelected","hasFilter","currFolderId","substr","getFolderIdFromPathname","findDocuments","refreshList","setSelectedDocument","withChildren","isDocumentDrawerOpen","setIsDocumentDrawerOpen","isOpenMultiUploadDialog","setIsOpenMultiUploadDialog","selectedDocument","driveMenuAnchor","setDriveMenuAnchor","handleProgressCount","Zoom","MoreHoriz","create","errMsg","GroupInfoCard","isLoadingInitialValues","useUpdateGroup","GroupUserAssignDialog","selectedUsers","setSelectedUsers","confirmDialog","setConfirmDialog","addUsersToGroup","applyUserRoleChanges","useAddUsersToGroup","withRoles","newInputValue","StyledLoadingTableCell","StyleDiv","GroupUsersCard","fetchRef","openConfirmDelete","setOpenConfirmDelete","forRemoval","setForRemoval","hasMembers","removeUsersFromGroup","useRemoveUsersFromGroup","isDeleting","findUsersWithParams","nLimit","roleLabels","rl","useFindRoles","roleList","GroupRoleAssignDialog","roleChanges","setRoleChanges","onSubmitRef","updatedGroupRoles","updatingGroupRoles","errorUpdatingGroupRoles","addRolesToGroup","roleId","roleIds","useAddRolesToGroup","GroupRolesCard","assignDialog","setAssignDialog","unassignconfirmDialog","setUnassignConfirmDialog","updateUserconfirmDialog","setUpdateUserConfirmDialog","unassign","setUnassign","groupRoles","loadingGroupRoles","errorLoadingGroupRoles","findGroupRoles","useFindGroupRoles","setRoles","useRemoveRolesFromGroup","GroupDetailPage","fetchUsersRef","useDeleteGroup","deletedGroup","GroupCreateDialog","useCreateGroup","groupDto","GroupListPage","StyledIconButton","useLinkTransform","queryParams","pageParams","delim","HeaderBackButton","getPath","ArrowBack","StyledHeaderTitle","HeaderTitle","HazardActionInfoCard","hazardAction","hazardActionVersion","enableTitleRedirect","ProductAutocomplete","useIdSearchableFilterOptions","AssignDesignInputDialog","setProductId","AssignUserNeedDialog","HazardAssignReferenceDialog","queryAlias","references","AssignDesignOutputDialog","AssignVerificationDialog","AssignValidationDialog","HazardReferenceCard","sourceEntityId","sourceId","updatedSource","isAssigningReferences","assigningReferenceError","assignReferences","targetIds","useAssignHazardReferences","isLoadingReferences","loadingReferenceError","findReferences","useFindHazardReferences","reference","un","di","targets","updatedReferenceIds","RenderOption","ProductAssignJiraCard","setProjectId","setIssueType","jiraConnectIssues","isFindingJiraConnectIssues","findJiraConnectIssues","useFindJiraServerIssues","jiraServerIssues","loadingJiraServerIssues","findJiraServerIssues","deletingTaskJiraIssue","useDeleteTaskJiraIssue","loadingTaskJiraIssue","useFindTaskJiraIssue","useGetJiraIssuesByIds","getIds","ConfirmationNumber","iconUrl","issueTypeProjectId","HazardActionDetailPage","paramHazardId","paramProductId","actionId","paramCauseId","setHazardAction","isLoadingHazardAction","findHazardActionError","findHazardAction","useFindHazardActionById","isLoadingHazardActionVersion","findHazardActionVersionError","findHazardActionVersion","useFindHazardActionVersion","loadedHazardActionVersion","setHazardActionVersion","newHazardCause","handleTaskUpdate","isJiraConnect","HazardCauseInfoCard","hazardCause","hazardCauseVersion","getHazardTemplateFieldId","getRiskLabel","rpnValue","range","green","yellow","red","HazardCardInfoDialog","HazardCauseInitialAssessmentCard","showInfo","setShowInfo","Info","initialRiskLabel","initialRpn","HazardCauseResidualAssessmentCard","residualRiskLabel","residualRpn","HazardCauseDetailPage","causeId","setHazardCause","isLoadingHazardCauses","findHazardCauseError","findHazardCause","useFindHazardCauseById","isLoadingHazardCauseVersion","findHazardCauseVersionError","findHazardCauseVersion","useFindHazardCauseVersion","loadedHazardCauseVersion","setHazardCauseVersion","HazardControlInfoCard","hazardControl","hazardControlVersion","HazardControlVerificationCard","HazardControlDetailPage","controlId","setHazardControl","isLoadingHazardControl","findHazardControlError","findHazardControl","useFindHazardControlById","isLoadingHazardControlVersion","findHazardControlVersionError","findHazardControlVersion","useFindHazardControlVersion","loadedHazardControlVersion","setHazardControlVersion","StyledTraceBoardEmptyState","up","only","TraceBoardEmptyState","TraceBoardContext","useTraceBoardContext","TraceBoardProvider","canEditItem","canLinkNewItem","filterColumnItems","filterOrphanedItems","onAddItem","onUpdateItem","columnItemElements","setColumnItemElements","columnItemElementsRef","subscriptionRef","observerRef","publishItemElementChange","registerItemElement","columnItemElement","unregisterItemElement","subscribeItemElementChange","unsubscribeItemElementChange","subscription","useItemElementSubscription","setColumns","rowCollapse","setRowCollapse","toggleCollapseRow","useRowCollapse","loadingItem","setLoadingItem","TraceBoardHeader","RemoveCircle","AddCircle","headerLink","disableAdd","itemId","renderColumnMenu","anchorElement","TraceBoardAddItemDialog","sourceItem","onCloseRef","setDescription","isAdding","setIsAdding","TraceBoardCard","rowColumns","disableLinNewItem","openNewDialog","setOpenNewDialog","nextColumn","isCollapsed","externalReference","renderCard","renderTitleIcon","renderTitleAccessory","renderSubContent","renderOptions","titleIcon","AddCircleOutlineOutlined","TraceBoardConnector","targetItem","sourceColumnItemElement","targetColumnItemElement","calculatePath","sourceElement","targetElement","boardRowElement","boardRowRect","sourceRect","targetRect","sourceX","sourceY","targetX","targetY","mid","midX","onItemElementChange","strokeDasharray","TraceBoardRow","primaryItem","heading","connectors","columnsFiltered","previousColumn","connector","classList","contains","disableTrace","filteredColumn","TraceBoard","orphanedRowHeading","setOverflow","viewPosition","setViewPosition","updateViewPosition","scrollLeft","behavior","args","Consumer","sourceColumn","StyledSubContent","StyledWarning","WarningRounded","HazardBoardTrace","traceBoardRef","hazardBoards","setHazardBoards","hasFilters","hazardBoard","getHazardBoard","useGetHazardBoard","loadedHazardBoard","referencedHazardId","apiGet","referencedHazardIds","hazardBoardReferences","loadingReferencesError","getHazardBoardReferences","useGetHazardBoardReferences","loadedHazardReferences","countLinkedItemsRequiresReview","getWorkflowState","requiresReviewCount","h","referencedHazardTitle","lookupReferencedHazards","queryString","causes","controls","cc","sourceItemIds","causeIds","controlIds","docRegExp","DocumentTemplateDialog","initialFile","hideUnsetButton","forceConfirmButton","disableConfirmButton","unsetLabel","initialFileRef","lastIndexOf","canUndo","HazardAssignDocumentTemplateDialog","selectedFile","setSelectedFile","getHazardTemplateFieldName","ManageHazardTemplateCard","entityRef","setAssignEntity","clearTemplate","setClearTemplate","useDownloadHazardDefaultTemplate","causeTemplate","controlTemplate","actionTemplate","Settings","HazardEntityStatusFilter","includeHazardStatus","hazardOption","causeOptions","controlOptions","actionOptions","merged","HazardBoardFilter","filterHazards","HeaderTitleEdit","HazardRenameDialog","HazardHeaderTitle","HazardInfoCard","hazardVersion","HazardInitialAssessmentCard","HazardAssignPeopleDialog","assignedUsers","assignError","hazardOwnerId","techLeadId","HazardPeopleCard","setRole","assignHazardOwner","assignTechLead","HazardResidualAssessmentCard","handleOnChangeAttachment","HazardImpactCard","impact","isSectionEnabled","sectionKey","navigationItem","HazardDetailPage","fileIds","HazardCreateEntityDialog","CausesTable","hazardCauseList","loadingHazardCausesError","findHazardCauses","useFindHazardCauses","ControlsTable","hazardControlList","isLoadingHazardControls","loadingHazardControlsError","findHazardControls","useFindHazardControls","ActionsTable","hazardActionList","isLoadingHazardActions","loadingHazardActionsError","findHazardActions","useFindHazardActions","hazardEntityName","StyledPageTemplateHeader","HazardPage","setHazard","setHazardVersion","foundHazard","findHazard","useFindHazard","foundProduct","findHazardVersion","useFindHazardVersion","loadedHazardVersion","findVersionError","isDetail","isDetailPage","mapIdName","JiraListFilter","setStatuses","setProjects","setIssueTypes","useGetJiraStatuses","statusList","statusesResult","projectList","projectsResult","issueTypeList","issueTypesResult","SelectFilterView","JiraExportButton","getViewUrl","useExportJiraIssuesUrl","presets","exportPresets","preset","presetId","destinationIndex","Transition","StyledLink","JiraReferenceTypeLinks","refs","$ref","JiraReferenceTypeList","onClickType","onFindProperties","didOpen","setDidOpen","allOf","hasRefs","shouldWrap","secondaryTypographyProps","JiraReferenceTypeListDialog","schemaKey","setContentRef","StyledJiraReferenceTypeList","JiraReferenceDialog","viewSchema","setViewSchema","useFindJiraIssueFields","showHelp","setShowHelp","startAt","maxResults","JiraReferenceListItem","hasProperties","setHasProperties","JiraTemplateConfigButton","disabledProp","setJiraConnect","openReferenceDialog","setOpenReferenceDialog","setPresets","selectedPreset","setSelectedPreset","draggingHeight","setDraggingHeight","useUpdateJiraConnect","hasMaxTemplates","fileId","updateJiraConnect","newPresets","setAndUpdatePresets","getNextId","presetIds","getPresetIndex","paddingBottom","moveItem","onEdit","newPreset","updatedPreset","JiraTemplateConfigRow","debounceDrag","setDraggingHeightState","offsetHeight","JiraListExportPage","foundJiraConnect","findJiraConnectError","findIssuesError","expand","JiraPriority","getTransitionSpec","toDo","inProgress","inReview","JiraStatusActions","initStatus","issueIdOrKey","usePostIssueTransition","postIssueTransition","JiraDetailCard","functionalArea","customfield_10034","serviceLine","customfield_10033","StyledEditor","JiraIdCard","paragraph","getDescriptionString","descriptions","JiraPriorityCard","overallPriority","customfield_10035","patientExperience","customfield_10037","patientSafety","customfield_10036","qualityImprovement","customfield_10038","providerExperience","customfield_10039","costReduction","customfield_10041","revenueGenerator","customfield_10040","PrioritySelect","Select","BooleanSelect","JiraEffortCard","overallEffort","customfield_10042","businessEffort","customfield_10044","techEffort","customfield_10043","vendorEffort","customfield_10045","CustomSelect","JiraStatusCard","StyleTableHead","AttachmentView","JiraAttachmentCard","setAttachments","showAlerts","showFileNamesInPreview","uploadedBy","StyledCardTitle","JiraPeopleCard","reporter","stakeholders","customfield_10046","stakeholder","StyledDate","JiraDueDateCard","duedate","LoadingContainer","JiraDetailPage","getTapValue","useGetJiraIssue","getIssue","issueStatus","setIssueStatus","goBack","JiraLoginCodeForm","Container","StyledAllow","codeIsLoading","useJiraAuthUrl","authUrl","getJiraAuthUrl","authStrategy","btnProps","Lock","PriorityStyles","freeze","StyledPill","priority","JiraPill","JiraIssuesList","projectKey","jql","useGetJiraIssues","getIssues","apiPatch","useSaveJiraCode","codeResult","saveJiraCode","useCheckJiraAuth","checkResult","checkJiraAuth","verificationCode","setVerificationCode","isJiraAuth","statusToCompare","defaultMessage","filterMessageByStatus","onIssuesListError","errorMessages","navigationList","deepFilter","userRoles","excludeRoles","allowNoRoles","NavigationList","onNavigationItemClicked","OrganizationInfoCard","clientSecret","readOnly","OrganizationDetailPage","organizationInfo","getOrganizationInfo","useGetOrganizationInfo","DesignInputAssignDesignOutputDialog","designOutputIds","UnlinkConfirmDialog","unlinkItemId","updatedProductUserNeedDesignInput","assignUserNeedDesignInputsError","assignUserNeedDesignInputs","updatedProductUserNeedDesignSpec","assignUserNeedDesignSpecsError","assignUserNeedDesignSpecs","updatedProductUserNeedVerification","assignUserNeedVerificationsError","assignUserNeedVerifications","updatedProductUserNeedValidation","assignUserNeedValidationsError","assignUserNeedValidations","updatedProductDesignInputUserNeed","assignUserNeedsError","updatedProductDesignInputDesignOutput","assignDesignOutputsError","updatedProductDesignInputVerification","assignDesignInputVerificationsError","assignDesignInputVerifications","updatedProductDesignInputValidation","assignDesignInputValidationsError","assignDesignInputValidations","updatedProductDesignInputDesignSpec","assignDesignInputDesignSpecsError","assignDesignInputDesignSpecs","updatedProductDesignOutputDesignInput","assignDesignOutputDesignInputsError","assignDesignOutputDesignInputs","updatedProductDesignOutputVerification","assignDesignOutputVerificationsError","assignDesignOutputVerifications","updatedProductDesignOutputValidation","assignDesignOutputValidationsError","assignDesignOutputValidations","updatedProductDesignOutputDesignSpec","assignDesignOutputDesignSpecsError","assignDesignOutputDesignSpecs","updatedProductVerificationDesignOutput","assignVerificationDesignOutputsError","assignVerificationDesignOutput","updatedProductValidationUserNeed","assignValidationUserNeedsError","assignValidationUserNeed","updatedProductValidationDesignInput","assignValidationDesignInputsError","assignValidationDesignInput","assignDesignSpecUserNeedsError","assignDesignSpecUserNeed","Ids","designInputIds","designSpecIds","verificationIds","validationIds","userNeedIds","DesignInputDesignOutputReferenceCard","productDesignInput","productDesignInputVersion","itemToUnlink","setItemToUnlink","findProductDesignOutputsWithParams","ProductRiskSelector","DesignInputInfoCard","DesignInputAssignUserNeedDialog","DesignInputUserNeedReferenceCard","findProductUserNeedsWithParams","PageTemplateBody","ProductExportButton","template","setTemplate","useExportProductEntityDocument","sortOrder","templatePosition","tmp","sortedProductTemplates","templates","templateName","getProductExportFileName","exportTitle","ProductDocumentCommonPage","productEntities","renderInfoCard","renderGridCards","paneRef","selectedIndex","setSelectedIndex","exportEntity","convertToProductExportEntity","entityTitle","ProductDesignInputDocumentPage","createCardProps","newProductDesignInput","DesignOutputAssignDesignInputDialog","DesignOutputDesignInputReferenceCard","productDesignOutput","productDesignOutputVersion","findProductDesignInputsWithParams","DesignOutputInfoCard","DesignOutputUserNeedReferenceCard","DesignOutputAssignVerificationDialog","DesignOutputVerificationReferenceCard","findProductVerificationsWithParams","ProductDesignOutputDocumentPage","fetchUserNeedsRef","newProductDesignOutput","UserNeedAssignDesignInputDialog","UserNeedDesignInputReferenceCard","productUserNeed","productUserNeedVersion","UserNeedInfoCard","ProductUserNeedDocumentPage","newProductUserNeed","TestStepItem","initialTestStep","testStep","onAddStep","onRemoveStep","isDirty","setIsDirty","setTestStep","onChangeValue","updateTestStep","stepNo","sampleData","expectedResult","updateStepNumber","testSteps","TestStepEditor","testStepToRemove","setTestStepToRemove","useDeleteTestStep","deleteTestStep","newTestSteps","addStep","moveStep","updatedTestStep","removeStep","TestStepCard","initialTestSteps","doFetch","setTestSteps","useFindAllTestSteps","testStepData","findTestSteps","useUpdateManyTestSteps","updatedTestSteps","updateTestSteps","findTestStepsWithParams","ListAlt","noSave","ValidationInfoCard","productValidation","productValidationVersion","initalData","ValidationAssignUserNeedDialog","ValidationUserNeedReferenceCard","ProductValidationDocumentPage","newProductValidation","VerificationDesignInputReferenceCard","productVerification","productVerificationVersion","getFromRelation","VerificationAssignDesignOutputDialog","VerificationDesignOutputReferenceCard","VerificationInfoCard","VerificationUserNeedReferenceCard","ProductVerificationDocumentPage","fetchDesignInputsRef","newProductVerification","CartIconBadge","taskEntityRef","setAnchorElement","Badge","badgeContent","ShoppingCart","DesignInputAssignValidationDialog","DesignInputValidationReferenceCard","findProductValidationsWithParams","ProductsSubSectionComponentCard","productSubSection","readOnlyComponents","hasComponentsConfigured","productSubSectionComponents","ProductsSubSectionReleaseCard","readOnlyRelease","setRelease","hasReleaseConfigured","LocalShipping","DesignInputAssignVerificationDialog","DesignInputVerificationReferenceCard","AssignDesignSpecDialog","DesignInputAssignDesignSpecDialog","DesignInputDesignSpecReferenceCard","findProductDesignSpecsWithParams","ProductDesignInputDetailPage","paramDesignInputId","setProductDesignInput","JiraServerContext","isLoadingProductDesignInput","findProductDesignInputError","findProductDesignInput","useFindProductDesignInputById","isLoadingProductDesignInputVersion","findProductDesignInputVersionError","findProductDesignInputVersion","useFindProductDesignInputVersion","loadedProductDesignInputVersion","setProductDesignInputVersion","InlineMultiSelect","useUpdateRisk","RiskCategoryOptions","RiskAssessmentCard","updatedRisk","updateRisk","getAssessmentInitialValues","showCategory","RiskAssessmentOption","RiskRelevanceOptions","rpn1","r1","rpn2","r2","AssessmentCard","riskAssessmentOption","DesignOutputRiskAssessmentCard","DesignOutputAssignValidationDialog","DesignOutputValidationReferenceCard","DesignOutputAssignDesignSpecDialog","DesignOutputDesignSpecReferenceCard","ProductDesignOutputDetailPage","paramDesignOutputId","setProductDesignOutput","isLoadingProductDesignOutput","findProductDesignOutputError","findProductDesignOutput","useFindProductDesignOutputById","isLoadingProductDesignOutputVersion","findProductDesignOutputVersionError","findProductDesignOutputVersion","useFindProductDesignOutputVersion","loadedProductDesignOutputVersion","setProductDesignOutputVersion","DesignSpecInfoCard","productDesignSpec","productDesignSpecVersion","DesignSpecAssignUserNeedDialog","DesignSpecUserNeedReferenceCard","useFindProductUserNeedsByDesignSpecId","ProductDesignSpecDetailPage","paramDesignSpecId","setProductDesignSpec","isLoadingProductDesignSpec","findProductDesignSpecError","findProductDesignSpec","useFindProductDesignSpecById","isLoadingProductDesignSpecVersion","findProductDesignSpecVersionError","findProductDesignSpecVersion","useFindProductDesignSpecVersion","loadedProductDesignSpecVersion","setProductDesignSpecVersion","newProductDesignSpec","ProductCreateDialog","createdProduct","createProduct","useCreateProduct","ProductListPage","useCollapse","allCollapsed","allExpanded","partialCollapsed","toggleAll","resetItems","ProductBoard","ConnectorContainer","svg","ProductBoardColumnActions","headerCollapsed","onToggle","onToggleAll","columnProps","Connector","edges","observerCallback","prevFromEl","prevToEl","prevSourceEdge","prevTargetEdge","this","side","Side","Unknown","sourceEdge","center","targetEdge","doCalculateEdges","Right","Left","generateEdgesBetweenSourceTarget","updateObservedElements","runObserverCallback","runDebouncedObserverCallbacks","fromEl","toEl","handleObserve","prevEl","newEl","Top","Bottom","v","edge","getConnectors","connectorSources","connectorTargets","lastEdge","c1","c2","Entity","_rect","Rect","offset","scrollOffset","setFromElement","offsetX","offsetY","rootEl","existingConnector","EntityManager","scrollEl","debounce","exclude","runObserverCallbacks","offsetLeft","offsetTop","existingEntity","getEntity","StyledSvgGroup","ProductBoardConnector","pathRef","debounceSet","setConnector","handleCalculate","halfDistance","next","next2","getPathBetweenEdges","calculateEdges","setAttribute","fromEntity","addEntity","toEntity","setObserverCallback","startObserver","data-source-entity","data-target-entity","data-class","useGetEntityIds","ProductBoardSwimlaneColumns","stretch","initialUserNeeds","initialDesignInputs","initialDesignOutputs","initialVerifications","initialValidations","relationMap","fetchParams","actionsProps","initialColumnProps","handleIds","handleFetchProp","rootRef","setManager","filteredRelationMap","allIds","concatUnique","arr1","arr2","filterEntities","ProductBoardSwimlaneRoot","productRelationMap","isLoadingProductRelationMap","findProductRelationMapError","findProductRelationMap","useFindProductRelationMap","setDesignInputIds","setDesignOutputIds","setVerificationIds","setValidationIds","emptyUserNeeds","hasData","ProductBoardSwimlane","ProductBoardTrace","productBoards","setProductBoards","handleAddItem","handleUpdateItem","useProductBoardUpdateEntities","productBoard","getProductBoard","useGetProductBoard","loadedProductBoard","referencedProductId","referencedProductIds","productBoardReferences","getProductBoardReferences","useGetProductBoardReferences","loadedProductReferences","referencedProductTitle","lookupReferencedProducts","inp","out","ud","dd","AssignDocumentTemplateDialog","initialTemplate","FormikAutocomplete","getOptionDisabled","getSelectedValue","searchHandler","forceSearch","setForceSearch","onOpen","ProductTemplateCreateDialog","createdProductTemplate","createProductTemplate","useCreateProductTemplate","ProductTemplateRenameDialog","ReferenceTypeLinks","typeName","ReferenceTypeList","referenceType","lineHeight","ReferenceTypeListDialog","StyledReferenceTypeList","ReferenceDialog","helpMessage","viewType","setViewType","referenceField","ReferenceListItem","XrayStatus","XrayPaginatedListProps","XrayEntityCommonProps","XrayTest","XrayTestResults","XrayPrecondition","XrayPreconditionDetailed","XrayPreconditionResults","XrayTestSet","XrayTestSetDetailed","XrayTestSetResults","XrayTestPlan","XrayTestExecution","XrayTestExecutionResults","XrayTestPlanDetailed","XrayTestPlanResults","XrayTestExecutionDetailed","XrayTestRunResults","User","TestStep","LinkedJiraIssues","RiskTable","UserNeedReference","DesignInputReference","DesignOutputReference","VerificationReference","ValidationReference","TraceabilityReportReference","eClinicalWorksReportReference","HazardUserNeed","HazardDesignInput","BaseHazardEntityProps","HazardReference","getProductTemplateReference","ManageTemplateCard","showReference","onProductChange","onUpdateRef","setTemplates","updateTemplate","setUpdateTemplate","removeTemplate","setRemoveTemplate","createdTemplate","setCreatedTemplate","renameTemplate","setRenameTemplate","setReferenceType","didDelete","setDidDelete","isOpenCreateDialog","setIsOpenCreateDialog","dragColumn","setDragColumn","isUpdatingProduct","updateProductError","deletedProductTemplate","deleteProductTemplate","useDeleteProductTemplate","useDownloadDefaultTemplate","templateReference","updateTemplates","sortedTemplates","reorderedTemplates","showReferences","ManageTemplateCardRow","ProductComponentsSelector","initialComponents","previousComponents","mapEntityId","isEqual","areIDsEqual","selectedComponents","ProductEntityStatusFilter","userNeedOptions","designInputOptions","designOutputOptions","verificationOptions","validationOptions","ProductReleasesSelector","initialReleases","previousReleases","selectedReleases","ProductBoardFilter","ProductRenameDialog","ProductHeaderTitle","Department","ProductEntityCreateButton","didCreate","setDidCreate","shouldShowCreateButton","ProductEntityCreateDialog","createEntity","UserNeedsTable","stripHtml","DesignInputsTable","DesignOutputsTable","ValidationsTable","VerificationsTable","DesignSpecificationTable","CreateEditProductComponentDialog","productComponent","createdComponent","creatingComponent","createComponentError","createComponent","useCreateProductComponent","componentId","updatedComponent","updatingComponent","updateComponentError","updateComponent","useUpdateProductComponent","StyledAction","ProductComponentCard","openCreateEditDialog","setOpenCreateEditDialog","openDeleteDialog","setOpenDeleteDialog","deletedComponent","deletingComponent","deleteComponentError","deleteComponent","useDeleteProductComponent","ProductDescriptionCard","ProductDetailCard","ProductIntendedUseCard","AssignPeopleDialog","productOwnerId","ProductPeopleCard","initProduct","setProduct","assignProductOwner","ProductRegionsMarketedCard","CreateEditProductReleaseDialog","productRelease","createdRelease","creatingRelease","createReleaseError","createRelease","useCreateProductRelease","releaseId","updatedRelease","updatingRelease","updateReleaseError","updateRelease","useUpdateProductRelease","ProductReleaseCard","deletedRelease","deletingRelease","deleteReleaseError","deleteRelease","useDeleteProductRelease","ProductDetailPage","severe","HazardSeverityStyles","HazardProbabilityStyles","HazardRiskStyles","HazardPill","riskValue","veryLow","low","medium","high","getHazardRiskLevel","HazardsTable","findProductHazardsWithParams","ProductHazardBoardTrace","setHazardId","productHazardBoard","getProductHazardBoard","useGetProductHazardBoard","hazards","hazardItem","ProductPage","fetchTemplatesRef","productFilter","hazardFilter","openArchiveDialog","setOpenArchiveDialog","snackbar","setSnackbar","deletedProduct","deleteProduct","useDeleteProduct","tableProps","UserNeedAssignVerificationDialog","UserNeedVerificationReferenceCard","UserNeedAssignValidationDialog","UserNeedValidationReferenceCard","UserNeedAssignDesignSpecDialog","UserNeedDesignSpecReferenceCard","AssignHazardDialog","UserNeedAssignHazardDialog","hazardIds","UserNeedHazardReferenceCard","hazardList","isLoadingHazards","loadingHazardsError","findHazards","useFindHazardsByUserNeedId","findHazardsWithParams","ProductUserNeedDetailPage","paramUserNeedId","setProductUserNeed","findProductUserNeedError","findProductUserNeed","useFindProductUserNeedsById","isLoadingProductUserNeedVersion","findProductUserNeedVersionError","findProductUserNeedVersion","useFindProductUserNeedVersion","loadedProductUserNeedVersion","setProductUserNeedVersion","ValidationAssignDesignInputDialog","ValidationDesignInputReferenceCard","ProductValidationDetailPage","paramValidationId","setProductValidation","isLoadingProductValidation","findProductValidationError","findProductValidation","useFindProductValidationById","isLoadingProductValidationVersion","findProductValidationVersionError","findProductValidationVersion","useFindProductValidationVersion","loadedProductValidationVersion","setProductValidationVersion","ProductVerificationDetailPage","paramVerificationId","setProductVerification","isLoadingProductVerification","findProductVerificationError","findProductVerification","useFindProductVerificationById","isLoadingProductVerificationVersion","findProductVerificationVersionError","findProductVerificationVersion","useFindProductVerificationVersion","loadedProductVerificationVersion","setProductVerificationVersion","PurchaseOrderSubmitCard","CheckCircle","DepartmentOptions","RequesterDetailsFormCard","spor","SupplierSelector","previousSupplierId","suppliers","setSuppliers","selectedSupplier","SupplierDetailsFormCard","Domain","OrderQuoteTable","quantity","price","quotes","setQuotes","isQuoteDisabled","totalPrice","setAndUpdateQuotes","newQuotes","handleUpdate","number","parsed","formatCurrency","handleDelete","OrderDetailsFormCard","PricingDetailsFormCard","getTotalPrice","computeTotal","updatedForm","newSpor","AttachMoney","obj","convertEmptyToNull","PurchaseOrderForm","StyledStickyGrid","PurchaseCreatePage","supplierTaskId","setSpor","foundSpor","findSpor","SupplierContactCard","SporDetailPage","epics","addEpic","requirements","addRequirement","startFromLast","duration","epic","lastRequirement","lastRequirementEndDate","endDate","startDate","workstreamColumnWidth","dayHeight","roadmapGrid","StyledRoadmap","dayWidth","css","QualityRoadmapPage","roadmapDivRef","exportMenuAncor","setExportMenuAnchor","showTodayMarker","setShowTodayMarker","isExporting","setIsExporting","setDayWidth","startTimeline","endTimeline","requirement","isAfter","getRoadmapCanvas","html2canvas","canvas","months","eachMonthOfInterval","today","getDayOfYear","weekendOffset","getDay","roadmapWidth","getDaysInMonth","labelPlacement","Slider","imgData","toDataURL","removeChild","Jspdf","internal","pageSize","getWidth","getHeight","addImage","save","days","dayOffset","lastEvent","startDay","backgroundPosition","isMonday","isFriday","amount","differenceInDays","isNextRow","startDayDiff","RiskDetailCard","RiskReferenceCard","riskId","useAssignRiskReferences","useFindRiskReferences","RiskDetailPage","setRisk","useFindRiskByTask","riskCardProps","newRisk","RiskDialog","useCreateRisk","ExportButton","hasOption","RiskExportButton","useExportRiskDocument","RiskManagementListPage","risks","setRisks","riskList","useFindRisks","RoleSaveDialog","onSaveRef","createRole","useCreateRole","createdRole","updateRole","useUpdateRole","updatedRole","RoleListPage","setType","setUpdateRole","removeRole","setRemoveRole","useDeleteRole","deletedRole","findRolesWithParams","roleItem","useUpdateScar","updatedScar","updateScar","ProblemDetailCard","scar","scarDto","PreventiveActionCard","ScarDetailPage","setScar","useFindScarByTask","scarCardProps","newScar","scarValidationSchema","ScarCreateDialog","disableSupplierSelect","useCreateScar","useGetSupplierList","ScarPage","useGetScarList","scarList","getScarListWithParams","useUpdateSignup","signup","industries","OnboardingCompanyInfo","onContinue","updatedSignup","draggable","hasExistingQms","existingQmsInfo","migrateExistingQms","hasPolicies","formikProps","CompanyInfoForm","industry","SignupCompanyInfoCard","Business","YesOrNoField","SignupFeaturesCard","features","feature","SignupInviteUsersCard","hasUsers","People","displayUser","SupplierReviewDate","SignupUserCard","signupId","setSignup","useFindSignupById","foundSignup","SignupListPage","signupList","useFindSignupList","SupplierReviewDateOptions","SupplierReviewDateCard","RateReview","reviewDate","SupplierInviteCard","invitedSupplier","isInviting","inviteError","inviteSupplier","useSupplierSendInvite","isInvited","sentDate","dirty","SupplierTabInfo","SporStatusFilter","SporColumns","SporListView","showCreate","createSpor","useCreateSpor","borderBottom","PurchaseOrderTab","findPurchaseOrders","useFindPurchaseOrders","SupplierCorrectiveActionTabInfo","useFindScarsBySupplier","getWithParams","SupplierDetailPage","addCallbackRef","setSupplierVersion","findSuplier","useFindSupplierByTask","loadedSupplier","findSupplierVersion","useFindSupplierVersion","loadedSupplierVersion","SupplierStatusFilter","SupplierListFilter","SupplierCreateDialog","createdSupplier","createSupplier","useCreateSupplier","SupplierListPage","SubTaskUserGroupData","SubTaskUserData","SubTaskGroupData","CapaReference","DocumentApprovalReference","EmployeeTrainingReference","TrainingPlanReference","RiskReference","ChangeOrderReference","getTemplateReference","TemplateListPage","useFindTemplates","useCreateTemplate","useUpdateTemplate","clearAction","addTemplate","newTemplates","TemplateListItem","useDownloadTemplate","sample","TrainingCreateSubTaskDialog","onSubTaskCreated","TrainingAdminBoard","lastSourceRef","lastDestinationRef","setWorkflow","openCreateSubTask","setOpenCreateSubTask","openConfirmRemoveSubTasks","setOpenConfirmRemoveSubTasks","workflowData","mockTasks","createEmptyTaskMap","handleUpdateTaskStatus","isRevert","TrainingCreateSubTask","TrainingUserStatus","TrainingTransition","TrainingAssignDialog","trainingVersionId","onAssignedRef","setDuration","assignUsers","useAssignTrainingUsers","isValidDuration","useUpdateTraining","training","useFindTrainingVersion","findTrainingVersion","useGetTrainingVersions","trainingVersions","getTrainingTransitionType","updatedStatus","matchApproved","previousApproved","previousInReview","Approve","Revert","TrainingTabAssign","setTrainingVersionId","trainingUsers","useGetTrainingUsers","openDeleteUserDialog","setDeleteUserDialog","deletedUsers","useDeleteTrainingUsers","EnhancedTableToolbar","numSelected","trainingUser","trainingUserId","handleSelectUser","calculateReorderIndex","DocumentAutoComplete","useFindApprovedFiles","compare","TrainingUserFileUpload","pluralize","StyledDocumentReferenceDiv","getTrainingSections","fileUploadSchema","minRequired","TrainingTabEdit","inputsRef","deleteIndex","setDeleteIndex","didReorder","setDidReorder","updatedTraining","deleteSectionName","handleSave","getCardContentClassName","fileUpload","withMinRequired","Video","PDF","Presentation","newSections","removeSection","useGetChangeOrderList","getChangeOrders","useUpdateChangeOrder","updatedChangeOrder","updateChangeOrder","AssignChangeOrderDialog","searchLabel","findChangeOrdersWithParams","co","StyledActionTableCell","ChangeOrderReferenceCard","TrainingAssignChangeOrdersCard","useFindTrainingChangeOrders","handleTrainingUpdate","FormikSelectField","TrainingAddGroupDialog","existingGroups","onAdded","onAddedRef","addTrainingGroup","useAddTrainingGroup","addedGroup","typeError","isInteger","TrainingDeleteGroupDialog","selectedGroups","setChecked","deletedGroups","useDeleteTrainingGroups","onDeleteRef","deleteUsers","TrainingAssignedGroupCard","trainingGroups","useGetTrainingGroups","getGroups","setSelectedGroup","openDeleteGroupDialog","setDeleteGroupDialog","trainingGroup","trainingGroupId","handleSelectGroup","groupName","TrainingInfoCard","frequencyOptions","TrainingRecurringCard","isFrequencyDisabled","hasFrequency","TrainingVersionCard","TrainingTabInfo","TrainingTaskStatusLabels","TrainingPlanExportButton","useExportTrainingPlan","TrainingAdminDetailPage","updateTaskRef","setTraining","useFindTrainingByTaskId","loadedTraining","updateTraining","useRevertTraining","revertedTraining","isReverting","revertError","revertTraining","allErrors","newTraining","shouldUpdateStatus","TrainingCreateDialog","useCreateTraining","trainingDto","StyledStatusContainer","TrainingAdminListPage","previewTrainingId","setPreviewTrainingId","findTrainings","trainingList","useFindTrainings","isFindingVersion","TraineeStatusFilter","TraineeListFilter","TrainingAdminTrainees","useFindTrainees","compliance","TrainingLessonCard","attachmentProgress","onPrevious","onNext","TrainingLessonPage","setIsViewOnly","setTrainingVersion","openSignatureDialog","setOpenSignatureDialog","openStartDialog","setOpenStartDialog","openWarningDialog","setOpenWarningDialog","getTrainingUser","useGetTrainingUser","foundTrainingUser","isLoadingTrainingUser","setTrainingUser","loadedTrainingVersion","isLoadingTrainingVersion","useUpdateTrainingUser","updatedTrainingUser","updateTrainingUser","ToDo","Completed","sectionAttachments","sectionIndex","sectionAttachmentsProgress","sectionAttachmentProgress","getAttachmentProgress","filteredAttachments","trainingUserAttachments","InProgress","TraineeExportButton","useExportTrainee","UserInfoCard","useFindUser","usePatchUser","TraineeDetailPage","setUser","loggedUser","updatedUser","UserGroupCard","patchedUser","origUser","disableRipple","UserInviteCard","useSendInvite","isSent","UserRoleCard","UserDetailPage","UserCreateDialog","useCreateUser","userDto","UserListPage","UserProfilePage","setOnSuccess","WorkflowApiLevelLabel","apiLevel","textTransform","WorkflowMigrateButton","onImport","importConfig","setImportConfig","workflowProp","pathsWithSubTasks","hasSubTasks","useWorkflowHasSubTasks","actionLabel","exportWorkflow","reader","FileReader","readyState","readAsText","fileToWorkflow","WorkflowStatusActions","openConfirmDialog","setOpenConfirmDialog","useRevertWorkflow","revertedWorkflow","deleteWorkflow","deletedWorkflow","deletingWorkflow","deletedWorkflowError","useDeleteWorkflow","STATUS_COLORS","StyledColorBlock","colorValue","ColorSelector","colorStyle","colorA","colorB","EditableFieldSection","ConfigCard","ConfigContent","StateEventConditionDialog","initialCondition","setCondition","StateEventConditions","initialTransition","selectedConditionIndex","setSelectedConditionIndex","setTransition","providedInner","StateTransitionSelector","transitionTarget","createTransitionTarget","disableClearable","pathMap","StateEventEditor","setIsDragging","updateShape","eventShapeRef","setIsDraggingState","isOpenDeleteDialog","setIsOpenDeleteDialg","setEventShapeName","eventShape","shapes","getEventShape","ev","isTransient","prevTarget","updateTransitions","transitionInner","StateEventEditorContainer","editorProps","addEvent","updatedItems","WorkflowConfigInvokeActionDialog","StyledConfigListItem","ConfigListItem","StateInvokeActionEditor","invokeArray","editAction","setEditAction","iconProps","secondaryAction","RemoveCircleOutlineOutlined","MenuItemContent","Atomic","AccountTree","Parallel","ViewStream","RadioButtonChecked","StateNodeTypeSelector","Auto","GroupPermissionsSection","EditorPane","Configurator","WorkflowEditPage","onChangeConfig","shouldRefreshRef","setWorkflowState","setDiagram","selectedShape","setSelectedShapeState","isSaved","setIsSaved","debounceRefresh","findListError","loadedWorkflowDto","shouldRefresh","workflowJson","DiagramType","State","onShapeChange","onDiagramLoad","diagram","ShapeType","addState","Shape","renameStateNode","StateNode","refreshType","WorkflowTabEdit","WorkflowInfoCard","workflowListRef","updateWorkflowDto","setUpdateWorkflowDto","openEntityConfirm","setOpenEntityConfirm","isPublished","WorkflowStatus","WorkflowStatusCard","workflowStatusLogs","useGetStatusLogs","workflowRef","setWorkflowStatusLogs","WorkflowVersionCard","workflowVersions","useGetWorkflowVersions","WorkflowTabInfo","WorkflowDetailPage","configRef","loadedWorkflow","tabProps","StatusContainer","WorkflowCreateDialog","createdWorkflow","createWorkflow","useCreateWorkflow","StyledWorkflowApiLevelLabel","WorkflowListPage","isOpenCreateDialogV2","setIsOpenCreateDialogV2","useFindWorkflowList","goToDetailPage","findWorkflowsWithParams","WorkflowV2Status","WorkflowV2DetailPageRoot","setSelectedWorkflow","useWorkflowBuilderContext","WorkflowV2DetailPage","TaskTypeEntitySelector","previousEntityRef","useFindTaskTypeEntities","findEntities","TaskTypeCreateDialog","useCreateTaskType","createTaskType","TaskTypeListPage","isOpenEditDialogV2","setIsOpenEditDialogV2","selectedTaskTypeV2","setSelectedTaskTypeV2","useFindTaskTypeList","taskTypeList","findTaskTypesWithParams","TaskTypeDetailCard","useUpdateTaskType","updateTaskType","TaskTypeDetailPage","useDeleteTaskType","deletedTaskType","newTaskType","ChangeOrderCreateDialog","useCreateChangeOrder","ChangeOrderStatusFilter","ChangeOrderListFilter","TypeOfChangeOptions","ChangeOrderDetailsCard","useCustomfields","currentRequestor","setCurrentRequestor","ChangeOrderListPage","changeOrderList","usingCustomField","getChangeOrdersWithParams","getSortName","isVersionEqual","DocumentVersionDialogPicker","useFindFileVersions","findVersions","setDidChange","draft","AssignDocumentVersionDialog","findFilesWithParams","includedItems","DocumentVersionReferenceCard","FileCopyOutlined","TaskFileVersionReferenceCard","setSuccess","useFindTaskFileVersions","useAssignTaskFileVersions","dispositionOptions","InventoryAndPendingDispositionCardFields","ChangeOrderInventoryAndPendingDispositionCard","PendingActions","ChangeProductCardFields","ChangeOrderProductCard","ManufacturingCardFields","ChangeOrderManufacturingCard","PrecisionManufacturing","LabelingCardFields","ChangeOrderLabelingCard","Label","SupplierCardFields","ChangeOrderSupplierCard","commonFieldOptions","qualityChangeSelectFields","ChangeOrderQualityDocumentCard","OrderOtherCardFields","ChangeOrderOtherCard","ChangeOrderExportButton","useExportChangeOrderDocument","exportError","ITAssessmentCardFields","ChangeOrderITAssessmentCard","ChangeOrderImplementationCard","Approval","ChangeOrderVerificationCard","Verified","TrainingCompetencyAssessmentCardFields","ChangeOrderTrainingAndCompetencyAssessmentCard","ChangeOrderDetailPage","useFindChangeOrderByTask","setChangeOrder","changeOrderCardProps","newChangeOrder","taskCardProps","ChangeOrderAdminGuard","StyledSecurePortal","leavingScreen","easing","sharp","enteringScreen","easeOut","StyledDrawer","StyledNavAppBar","StyledToolbar","StyledMainAppBar","StyledFileExplorerContainer","StyledScrollDiv","SecurePortal","profileMenuAnchor","setProfileMenuAnchor","doLogout","useLogout","isInJira","isAboveMediumSize","useMediaQuery","noSsr","isNavOpen","setIsNavOpen","previousIsAboveMediumSizeRef","useNavOpen","showTreeview","isOrganizationApiEnabled","handleDrawerToggle","PaperProps","ModalProps","renderAfterItem","DocumentListPage","FormTemplateListPage","elementPlugins","JiraListPage","SignupDetailPage","flattenNavigation","iconEl","QMSPortalPlugin","StyledSignupContainer","StyledButton","company","confirmPassword","when","is","terms","SignUp","useRegisterUser","register","scrollToForm","scrollIntoView","block","validateOnMount","StyledVerticalStepperContainer","VerticalStepperContainer","ReportProblemOutlined","CardGiftcard","RequestPageOutlined","Class","OnboardingQmsFeatures","FeatureCardItem","CardMedia","functionalRoles","OnboardingInviteUsers","isLoadingSignup","signupError","useNotifySupport","isSupportNotified","notifyingSupport","notifyError","notifySupport","setUsersState","lowercase","submitButton","resetForm","Cancel","steps","large","OnboardingPage","useFindSignup","handleClickStep","stepIndex","componentProps","stepsResults","CanSignupGuard","defaultQmsQueryBuilderPlugins","muiApi","setEnvironment","env","sitePlugins","defaultSitePlugins","siteEventPlugins","defaultSiteEventPlugins","qmsRoutePermissions","JiraRouteHandler","useJiraAcRoute","RemoveJiraWidget","AppRoot","siteTheme","utils","DateFnsUtils","ReactRouterRoute","Route","eventPlugins","hostname","formElementPlugins","workflowPlugins","queryBuilderPlugins","routePermissions","routeHasAccess","permissionName","CssBaseline","Login","Signup","PasswordReset","App","pdfjs","GlobalWorkerOptions","workerSrc","serviceWorker","ready","registration","unregister","defaultId","methodMap","TransitionCondition","Any","RequireFields","Confirm","Signature","CheckSubTasks","CheckTeam","None","RemoveSubTasks","UpdateJiraIssue","SendEmail","registerBreadcrumb","removeBreadcrumb","BreadcrumbProvider","initial","setBreadcrumbs","arrayIndex","setCookie","token_secret","jwt","jiraAccessToken","setAccessToken","getCookie","tokenSecret","useAuthorizeJiraServerPluginUser","authorizeUser","jiraUser","setJiraServerIssues","getFindJiraIssuesRequestOptions","JiraServerRequestType","Search","MeaningAlert","nowRef","reasonRef","setEmail","setIsPasswordSet","isRecovering","recoverError","isJira","isConnectAvailable","useGoogleSign","isLoadingGoogle","googleSign","sign","useOktaSign","isLoadingOkta","oktaSign","isSigning","signError","timezone","splitIndex","setImmediate","shouldSetupPassword","disableAuthMethods","isValidSync","useRecaptchaEnterprise","loadingRecaptchaToken","setLoadingRecaptchaToken","loadingRecaptchaTokenError","setLoadingRecaptchaTokenError","grecaptcha","script","async","getRecaptchaToken","enterprise","execute","EXPIRE_TIME_KEY","StyledSpinnerContainer","clearAccessTokens","removeAccessToken","cookie","clearCookie","getExpireTime","localStorage","getItem","getUserPermissions","UserProvider","setBaseUser","useBaseUserContext","timerRef","userContext","useGetCurrentUser","sessionExpired","setSessionExpired","hasUser","updateExpireTime","mins","handleListeners","listener","createTimer","expireTime","clearListeners","clearTimer","require","mergedEnvironment","defaultEnvironment","environmentV1","DATE_FORMAT","DATETIME_FORMAT","formatWithCommas","formatWithDecimals","digits","parsedValue","htmlToMd","html","Turndown","turndown","htmlToJira","mdToJira","singular","plural","any","isDocAdmin","isDocEditor","read","sameSite","useBreadcrumb","newBreadcrumb","setBreadcrumb","jwtToken","setJwtToken","recaptcha","jiraJwt","findUsers","findTrainees","usePasswordVerifyResetToken","verify","isJiraConnectError","xhr","jiraConnectRequest","getJiraConnect","getAsync","errorBody","useJiraConnectRequest","filterJiraIssueFields","tagIndex","issueKeyRegExp","where","validateQuery","getJiraIssueSearchCondition","keysStr","whereStr","createViewUrl","isDocument","getUrl","authToken","requestOptions","rest","allParams","namePath","getTransitions","transitionId","slashRegExp","acRoute","lastStateRef","popState","oldURL","newURL","pushState","endsWith","acRoutePath","acParamsStr","pageKey","taskRelation","taskSchema","taskColumns","lastProperty","getConnect","stop","maxAttempts","attempt","connectState","setConnect","hasConnect","areaClassName","data-auth-method","blur","removeAttribute","instance","GoogleAuth","ensureLoadedScript","gsiSrc","loadScript","isLoaded","accounts","initialize","client_id","native_callback","click_listener","teamIds","subDays","proxyURL","proxyOnly","setDocumentBlob","exportParams","getBlob","isFolderOnly","withParent","apiPut","setAssignedToMe","opts","stringArray","ENTITY_KEY_REGEXP","transformId","transformParams","allOptions","propToMatch","inputValue","showPassword","setShowPassword","cookieAttributes","domain","Cookies","expiresIn","controller","AbortController","signal","bind","StyleGrid","JiraServerMessageType","targetOrigin","JiraServerProvider","setIsJiraServer","setBaseUrl","setJiraUser","requestsRef","indexRef","onMessage","qmsToken","jiraRedirectUrl"],"mappings":"wHAA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,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,4CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFU,kBAAmB,CAAEC,iBAAiB,IAGzBd,a,kCChCf,mBAEMA,EAAoC,CACxCI,WAAY,gDACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,kDACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,2CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,0CACZE,e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IMA,EAAoC,CACxCI,WAAY,6CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFU,kBAAmB,CAAEC,iBAAiB,GACtCG,WAAY,CAAEC,QAAS,CAACC,IAAWC,QAASD,IAAWE,SACvDsB,iBAAkB,CAChBC,SACE,4EAEJrB,mBAAoB,CAAEC,SAAS,IAGlBxB,a,kCCvCf,mBAEMA,EAAoC,CACxCI,WAAY,mDACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,8CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,oDACZC,WAAY,mCACZC,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFsB,aAAc,CACZC,gBAAgB,IAIL1B,a,kCCnCf,mBAEMA,EAAoC,CACxCI,WAAY,wDACZC,WAAY,uCACZC,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFsB,aAAc,CACZC,gBAAgB,IAIL1B,a,qEChCTA,EAAiC,2BAClC2B,WADkC,IAErCvB,WAAY,8CACZF,WAAYC,YACV,YACA,YACA,OACA,sBACA,QACA,YACA,WACA,cAEFyB,cAAe,CACbC,SAAU,CAAEY,iBAAkB,CAAC,cAAe,kBAC9CT,YAAa,CACXS,iBAAkB,CAAC,cAAe,gBAAiB,gBAErDN,aAAc,CACZM,iBAAkB,CAAC,cAAe,gBAAiB,iBAGvDD,WAAY,CACVE,cAAc,KAIH1C,a,kCC9Bf,mBAEMA,EAAoC,CACxCI,WAAY,0CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,yCACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,4CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,2CACZC,WAAY,0BACZC,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFU,kBAAmB,CAAEC,iBAAiB,IAGzBd,a,kCCjCf,mBAEMA,EAAoC,CACxCI,WAAY,iDACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,8CACZC,WAAY,6BACZC,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFU,kBAAmB,CAAEC,iBAAiB,EAAME,oBAAoB,GAChEY,cAAe,CACbC,SAAU,CACRE,SAAU,OAEZC,YAAa,CACXF,KAAM,eACNC,SAAU,OAEZI,aAAc,CACZL,KAAM,gBACNC,SAAU,MACVc,sBAAsB,KAKb7C,a,kCC/Cf,mBAEMA,EAAoC,CACxCI,WAAY,6CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,qEC5BTA,EAAiC,2BAClC2B,WADkC,IAErC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A,EAAoC,CACxCI,WAAY,iDACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,0CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,8CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,8CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,iDACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFU,kBAAmB,CAAEC,iBAAiB,EAAMC,2BAA2B,IAG1Df,a,kCChCf,mBAEMA,EAAoC,CACxCI,WAAY,iDACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,4CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,kCC/Bf,mBAEMA,EAAoC,CACxCI,WAAY,mDACZC,WAAY,kCACZC,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,aAEFU,kBAAmB,CAAEC,iBAAiB,IAGzBd,a,kCCjCf,mBAEMA,EAAoC,CACxCI,WAAY,+CACZE,eAAgB,gBAChBC,aAAc,SACdC,iBAAkB,iBAClBC,QAAS,IACTC,QAAQ,EACRC,WAAY,mDACZC,iBAAkB,2CAClBV,WAAYC,YACV,YACA,iBACA,kBACA,YACA,WACA,UACA,OACA,OACA,eACA,sBACA,QACA,YACA,QACA,WACA,aACA,cAIWH,a,qEC5BTA,EAAiC,2BAClC2B,WADkC,IAErCvB,WAAY,iDACZF,WAAYC,YACV,YACA,iBACA,YACA,WACA,sBACA,QACA,YACA,WACA,cAEFyB,cAAe,CACbC,SAAU,CAAEY,iBAAkB,CAAC,cAAe,kBAC9CT,YAAa,CACXS,iBAAkB,CAAC,cAAe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C,sEAEPinD,KAAMjnD,GACF,CACE,CACE,aACA,IACA,+EAEF,CACE,WACA,IACA,qHAEF,CACE,SACA,IACA,uGAGJ,CACE,CACE,aACA,IACA,wFACA,kDAEF,CACE,WACA,IACA,wEACA,4CAEF,CACE,WACA,IACA,8EACA,0EAEF,CACE,SACA,IACA,6GACA,0DAEF,CACE,eACA,IACA,qDACA,wGAKGknD,GAA6C,CACxDF,KAAM,CAAC,4BAA6B,SAASh+C,OAC3ChJ,GACI,CAAC,kCACD,CAAC,4BAA6B,mCAEpCinD,KAAMjnD,GACF,CACE,CACE,SACA,IACA,kEAEF,CACE,WACA,IACA,wDAEF,CAAC,WAAY,IAAK,oDAEpB,CACE,CACE,aACA,IACA,8BACA,oFAEF,CACE,SACA,IACA,iCACA,+EAEF,CACE,aACA,IACA,qCACA,4DAEF,CACE,WACA,IACA,kBACA,wJAEF,CACE,WACA,IACA,6BACA,qGAKGmnD,GAAwBnnD,GACjC,CAEE,aACA,YACA,WACA,mBACA,uBACA,QAEF,CACE,oBACA,2BACA,mBACA,sBACA,qBACA,OACA,WACA,mBACA,iBACA,mBACA,2BACA,0BACA,yBACA,iCACA,yBACA,WACA,SAGOonD,GAETpnD,IAAc,sBAGX+9C,GAAegI,WAAa,cAHjB,gBAIXhI,GAAeiI,SAAW,YAJf,gBAKXjI,GAAekI,OAAS,UALb,2BAQXlI,GAAegI,WAAa,cARjB,gBASXhI,GAAemI,SAAW,YATf,gBAUXnI,GAAeiI,SAAW,YAVf,gBAWXjI,GAAekI,OAAS,UAXb,gBAYXlI,GAAeoI,aAAe,gBAZnB,IAeLkB,GAETrnD,IAAc,sBAGXg+C,GAAkBqI,OAAS,UAHhB,gBAIXrI,GAAkBsI,SAAW,YAJlB,gBAKXtI,GAAkBuI,SAAW,YALlB,2BAQXvI,GAAkBwI,WAAa,cARpB,gBASXxI,GAAkBqI,OAAS,UAThB,gBAUXrI,GAAkByI,WAAa,cAVpB,gBAWXzI,GAAkBsI,SAAW,YAXlB,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MAAO,CACL,CACEj0G,MAAO,aACPuX,IACE,+HAMZ,CACElb,KAAM,UACNJ,QACE,yFACF+3G,OAAQ,MACR59E,QACE,y6DACFp1B,WAAW,KAIjB,CACE3E,KAAM,UACNF,MAAO,8DACP43G,SAAU,CACR,CACE13G,KAAM,UACNJ,QAAS,8CACT+3G,OAAQ,MACR59E,QACE,y6DACFp1B,WAAW,EACX+yG,SAAU,CACR,CACE13G,KAAM,OACNF,MAAO,+BACPi6B,QACE,8SACF69E,MAAO,CACL,CACEj0G,MAAO,aACPuX,IACE,mIAMZ,CACElb,KAAM,UACNJ,QACE,6DACF+3G,OAAQ,MACR59E,QACE,ohBACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,wFACF+3G,OAAQ,MACR59E,QACE,80CACFp1B,WAAW,KAIjB,CACE3E,KAAM,UACNF,MAAO,mBACP43G,SAAU,CACR,CACE13G,KAAM,UACNJ,QACE,qGACF+3G,OAAQ,MACR59E,QACE,y6DACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,kEACF+3G,OAAQ,MACR59E,QACE,y6DACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,uFACF+3G,OAAQ,MACR59E,QACE,ohBACFp1B,WAAW,KAIjB,CACE3E,KAAM,UACNF,MAAO,6BACP43G,SAAU,CACR,CACE13G,KAAM,UACNJ,QACE,0EACF+3G,OAAQ,MACR59E,QACE,y+DACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,2FACF+3G,OAAQ,MACR59E,QACE,6zBACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,sFACF+3G,OAAQ,MACR59E,QACE,6zBACFp1B,WAAW,EACX+yG,SAAU,CACR,CACE13G,KAAM,OACNF,MAAO,mCACPi6B,QACE,oMACF69E,MAAO,CACL,CACEj0G,MAAO,aACPuX,IACE,6HAIR,CACElb,KAAM,OACNF,MAAO,kCACPi6B,QACE,6hBACF69E,MAAO,CACL,CACEj0G,MAAO,aACPuX,IACE,+HAMZ,CACElb,KAAM,UACNJ,QACE,wIACF+3G,OAAQ,MACR59E,QACE,88DACFp1B,WAAW,EACX+yG,SAAU,CACR,CACE13G,KAAM,OACNF,MAAO,mCACPi6B,QACE,oMACF69E,MAAO,CACL,CACEj0G,MAAO,aACPuX,IACE,6HAIR,CACElb,KAAM,OACNF,MAAO,kCACPi6B,QACE,6hBACF69E,MAAO,CACL,CACEj0G,MAAO,aACPuX,IACE,iIAQhB,CACElb,KAAM,UACNF,MAAO,wCACP43G,SAAU,CACR,CACE13G,KAAM,UACNJ,QACE,oGACF+3G,OAAQ,MACR59E,QACE,wzCACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,uFACF+3G,OAAQ,MACR59E,QACE,wzCACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QAAS,uDACT+3G,OAAQ,MACR59E,QACE,wzCACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,oEACF+3G,OAAQ,MACR59E,QACE,wzCACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,sEACF+3G,OAAQ,MACR59E,QACE,2gCACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,oJACF+3G,OAAQ,MACR59E,QACE,iyCACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,+FACF+3G,OAAQ,MACR59E,QACE,s9BACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,oEACF+3G,OAAQ,MACR59E,QACE,s9BACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QAAS,+CACT+3G,OAAQ,MACR59E,QACE,k5DACFp1B,WAAW,KAIjB,CACE3E,KAAM,UACNF,MAAO,uCACP43G,SAAU,CACR,CACE13G,KAAM,UACNJ,QACE,yEACFm6B,QAAS,GACTp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,kEACFm6B,QAAS,GACTp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,wFACFm6B,QAAS,GACTp1B,WAAW,OAMrB,CACE3E,KAAM,UACNF,MACE,6FACF43G,SAAU,CACR,CACE13G,KAAM,UACNJ,QAAS,+DACT+3G,OAAQ,MACR59E,QACE,+hBACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,oFACF+3G,OAAQ,MACR59E,QACE,+hBACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,uFACF+3G,OAAQ,MACR59E,QACE,6eACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,4EACF+3G,OAAQ,MACR59E,QACE,qIACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,yKACF+3G,OAAQ,MACR59E,QACE,qIACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,0GACFm6B,QAAS,GACTp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,2FACFm6B,QAAS,GACTp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,kHACFm6B,QAAS,GACTp1B,WAAW,KAIjB,CACE3E,KAAM,UACNF,MAAO,wBACP43G,SAAU,CACR,CACE13G,KAAM,UACNF,MAAO,oCACP43G,SAAU,CACR,CACE13G,KAAM,UACNJ,QACE,qGACF+3G,OAAQ,MACR59E,QACE,sUACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,oEACF+3G,OAAQ,MACR59E,QACE,8SACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,qEACF+3G,OAAQ,MACR59E,QACE,2XACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,iGACF+3G,OAAQ,MACR59E,QACE,+vBACFp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,8GACFm6B,QAAS,GACTp1B,WAAW,GAEb,CACE3E,KAAM,UACNJ,QACE,gFACF+3G,OAAQ,MACR59E,QACE,sUACFp1B,WAAW,OAMrB,CACE3E,KAAM,UACNF,MAAO,sBACP43G,SAAU,CACR,CACE13G,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SACfngE,WAAW,SALb,SAOE,cAAC,IAAD,MAGF3K,O","file":"static/js/main.448a425d.chunk.js","sourcesContent":["import { useCallback, useRef } from 'react';\n\nexport function useTimeout(): [\n (callback: () => void, ms?: number) => () => void,\n () => void\n] {\n const timeoutRef = useRef();\n\n const clearDebouncedTimeout = useCallback(() => {\n const dTimeout = timeoutRef.current;\n dTimeout && clearTimeout(dTimeout);\n }, []);\n\n const debouncedCall = useCallback(\n (callback: () => void, ms?: number) => {\n // remove existing timeout\n clearDebouncedTimeout();\n // set new timeout\n timeoutRef.current = setTimeout(callback, ms);\n return clearDebouncedTimeout;\n },\n [clearDebouncedTimeout]\n );\n\n return [debouncedCall, clearDebouncedTimeout];\n}\n","import { filterNavigation } from './navigation';\nimport { Environment } from './environment.types';\nimport developmentEnvironment from './environment.development';\n\nconst environment: Partial = {\n ...developmentEnvironment,\n navigation: filterNavigation(\n 'Dashboard',\n 'Documents',\n 'SCAR',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Workflow',\n 'Task Types'\n )\n};\n\nexport default environment;\n","import { authMethod } from '../secure-portal/auth/Auth.constants';\nimport { Environment } from './environment.types';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://development-qms-api.sierralabs.io/api/',\n siteDomain: 'development-qms.sierralabs.io',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n changeOrderConfig: {\n useCustomFields: true,\n enableQualityChangeFields: true,\n updateItAssessment: true\n },\n authConfig: {\n methods: [authMethod.default, authMethod.google, authMethod.okta]\n // defaultId: authMethod.okta.id // default to Okta auth\n },\n organizationConfig: { enabled: true },\n hazardConfig: { isBasicOptions: true }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://aes-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://amp-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://assistivetech-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://bioai-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n changeOrderConfig: { useCustomFields: true }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://birthbyus-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://brainreader-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://cass-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://cil-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://dartmouth-qms-api.sierralabs.com/api/',\n siteDomain: 'dartmouth-qms.sierralabs.com',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n changeOrderConfig: { useCustomFields: true }\n};\n\nexport default environment;\n","import { filterNavigation } from './navigation';\nimport { Environment } from './environment.types';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://dermasensor-qms-api.sierralabs.com/api/',\n siteDomain: 'dermasensor-qms.sierralabs.com',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'CAPA',\n 'SCAR',\n 'Supplier Management',\n 'Products',\n 'Teams',\n 'Employees',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n productConfig: {\n userNeed: {\n name: 'User Requirement',\n idPrefix: 'UR'\n },\n designInput: {\n name: 'Product Requirements',\n idPrefix: 'PR',\n hideRiskField: true,\n useCustomInfoFields: true\n },\n designOutput: {\n name: 'General Requirements',\n idPrefix: 'REQ',\n useCustomInfoFields: true\n },\n validation: {\n hideTestSteps: true\n },\n verification: {\n hideTestSteps: true\n },\n designSpec: {}\n // validation: { disableRelations: ['userNeeds'] },\n },\n riskConfig: {\n useCustomFields: true\n }\n};\n\nexport default environment;\n","import { filterNavigation } from './navigation';\nimport { Environment } from './environment.types';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://digiteyez-qms-api.sierralabs.com/api/',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Documents',\n 'Products',\n 'Risk Management',\n 'Hazards',\n 'CAPA',\n 'Supplier Management',\n 'SCAR',\n 'Teams',\n 'Employees',\n 'Workflow',\n 'Task Types'\n ),\n productConfig: {\n userNeed: { disableRelations: ['validations', 'verifications'] },\n designInput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n },\n designOutput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n }\n },\n riskConfig: {\n hideCategory: true\n }\n};\n\nexport default environment;\n","import { authMethod } from '../secure-portal/auth/Auth.constants';\nimport { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://domino-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n changeOrderConfig: { useCustomFields: true },\n authConfig: { methods: [authMethod.default, authMethod.google] },\n googleAuthConfig: {\n clientId:\n '210722378610-cjreoptgvqfdklt3dfc32m8308arqj74.apps.googleusercontent.com'\n },\n organizationConfig: { enabled: true }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://eventhorizon-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://gaisler-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://healthrhythms-qms-api.sierralabs.com/api/',\n siteDomain: 'healthrhythms-qms.sierralabs.com',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n hazardConfig: {\n isBasicOptions: true\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://healthrhythmstest-qms-api.sierralabs.com/api/',\n siteDomain: 'healthrhythmstest-qms.sierralabs.com',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n hazardConfig: {\n isBasicOptions: true\n }\n};\n\nexport default environment;\n","import { filterNavigation } from './navigation';\nimport { Environment } from './environment.types';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://ioncell-qms-api.sierralabs.com/api/',\n navigation: filterNavigation(\n 'Dashboard',\n 'Documents',\n 'SCAR',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Workflow',\n 'Task Types'\n ),\n productConfig: {\n userNeed: { disableRelations: ['validations', 'verifications'] },\n designInput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n },\n designOutput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n }\n },\n riskConfig: {\n hideCategory: true\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://isi-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://iu-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://kaiko-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://kegg-qms-api.sierralabs.com/api/',\n siteDomain: 'kegg-qms.sierralabs.com',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n changeOrderConfig: { useCustomFields: true }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://machinemed-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://marsbio-qms-api.sierralabs.com/api/',\n siteDomain: 'marsbio-qms.sierralabs.com',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n changeOrderConfig: { useCustomFields: true, updateItAssessment: true },\n productConfig: {\n userNeed: {\n idPrefix: 'USR'\n },\n designInput: {\n name: 'Requirements',\n idPrefix: 'REQ'\n },\n designOutput: {\n name: 'Specification',\n idPrefix: 'SPC',\n enableRiskAssessment: true\n }\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://narnar-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { filterNavigation } from './navigation';\nimport { Environment } from './environment.types';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://opio-qms-api.sierralabs.com/api/',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Workflow',\n 'Task Types'\n ),\n productConfig: {\n userNeed: { disableRelations: ['validations', 'verifications'] },\n designInput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n },\n designOutput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n }\n },\n riskConfig: {\n hideCategory: true\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://osu-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://paradromics-qms-api.sierralabs.com/api/',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Change Order',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types'\n ),\n productConfig: {\n userNeed: {\n disableRelations: ['validations', 'verifications'],\n hideRiskField: true\n },\n designInput: {\n disableRelations: ['validations', 'verifications', 'designSpecs'],\n hideRiskField: true\n },\n designOutput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n },\n validation: {\n hideTestSteps: true\n },\n verification: {\n hideTestSteps: true\n }\n },\n hazardConfig: { idPrefix: 'HS' },\n riskConfig: {\n hideCategory: true\n },\n changeOrderConfig: {\n useCustomFields: true\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://parasandbox-qms-api.sierralabs.com/api/',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Change Order',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types'\n ),\n productConfig: {\n userNeed: {\n disableRelations: ['validations', 'verifications'],\n hideRiskField: true\n },\n designInput: {\n disableRelations: ['validations', 'verifications', 'designSpecs'],\n hideRiskField: true\n },\n designOutput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n },\n validation: {\n hideTestSteps: true\n },\n verification: {\n hideTestSteps: true\n }\n },\n hazardConfig: { idPrefix: 'HS' },\n riskConfig: {\n hideCategory: true\n },\n changeOrderConfig: {\n useCustomFields: true\n },\n // for parasandbox, show: Internal Document ID, Rev\n // hide: Task Key, Version\n fileConfig: {\n hideTaskKey: true,\n hideVersion: true\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://parasandbox2-qms-api.sierralabs.com/api/',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Change Order',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types'\n ),\n productConfig: {\n userNeed: {\n disableRelations: ['validations', 'verifications'],\n hideRiskField: true\n },\n designInput: {\n disableRelations: ['validations', 'verifications', 'designSpecs'],\n hideRiskField: true\n },\n designOutput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n },\n validation: {\n hideTestSteps: true\n },\n verification: {\n hideTestSteps: true\n }\n },\n hazardConfig: { idPrefix: 'HS' },\n riskConfig: {\n hideCategory: true\n },\n changeOrderConfig: {\n useCustomFields: true\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://pentazone-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://primum-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://proesisbio-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://rti-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://sayenza-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://schenck-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://sleepimage-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n changeOrderConfig: { useCustomFields: true, enableQualityChangeFields: true }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://smartsurgn-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://socai-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://[clientCode]-qms-api.sierralabs.com/api/',\n siteDomain: '[clientCode]-qms.sierralabs.com',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n ),\n changeOrderConfig: { useCustomFields: true }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://tokueyes-qms-api.sierralabs.com/api/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Change Order',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Templates'\n )\n};\n\nexport default environment;\n","import { filterNavigation } from './navigation';\nimport { Environment } from './environment.types';\nimport productionEnvironment from './environment.production';\n\nconst environment: Partial = {\n ...productionEnvironment,\n apiBaseUrl: 'https://venavitals-qms-api.sierralabs.com/api/',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Documents',\n 'Products',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Workflow',\n 'Task Types'\n ),\n productConfig: {\n userNeed: { disableRelations: ['validations', 'verifications'] },\n designInput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n },\n designOutput: {\n disableRelations: ['validations', 'verifications', 'designSpecs']\n }\n },\n riskConfig: {\n hideCategory: true\n }\n};\n\nexport default environment;\n","import { Environment } from './environment.types';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://staging-qms-api.sierralabs.io/api/',\n jiraUrl: 'http://demoqms.sierralabs.com:8080/',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n productConfig: {\n userNeed: {\n name: 'User Requirement',\n idPrefix: 'UR'\n },\n designInput: {\n name: 'Product Requirements',\n idPrefix: 'PR',\n hideRiskField: true,\n useCustomInfoFields: true\n },\n designOutput: {\n name: 'General Requirements',\n idPrefix: 'REQ',\n useCustomInfoFields: true\n },\n validation: {\n hideTestSteps: true\n },\n verification: {\n hideTestSteps: true\n },\n designSpec: {}\n // validation: { disableRelations: ['userNeeds'] },\n },\n hazardConfig: {\n idPrefix: 'HS',\n control: {\n visibleJiraFields: [\n {\n title: 'eCW Test ID',\n fieldKey: 'customfield_11000',\n type: 'text'\n }\n ]\n }\n },\n riskConfig: {\n useCustomFields: true\n },\n changeOrderConfig: {\n useCustomFields: true\n }\n};\n\nexport default environment;\n","import React, { useContext, useEffect, useRef } from 'react';\nimport { Link } from 'react-router-dom';\n\nimport { Breadcrumbs } from '@material-ui/core';\n\nimport { BreadcrumbContext } from './Breadcrumb.context';\nimport { useBreadcrumb } from './Breadcrumb.hooks';\nimport { Breadcrumb } from './Breadcrumb.interface';\n\n/**\n * Displays the current breadcrumb in the context\n */\nexport const BreadcrumbHeading: React.FC<{\n breadcrumb?: Breadcrumb;\n}> = ({ breadcrumb }) => {\n const { breadcrumbs } = useContext(BreadcrumbContext);\n const { setBreadcrumb } = useBreadcrumb(breadcrumb);\n const breadcrumbRef = useRef(breadcrumb);\n useEffect(() => {\n // check breadcrumb props against previous value to determine if any\n // changes occurred and if so notify the breadcrumb context to refresh\n if (\n breadcrumbRef.current?.label !== breadcrumb?.label ||\n breadcrumbRef.current?.path !== breadcrumb?.path\n ) {\n breadcrumbRef.current = breadcrumb;\n setBreadcrumb(breadcrumb);\n }\n }, [breadcrumb, setBreadcrumb]);\n\n return (\n \n {breadcrumbs.map(breadcrumb => (\n

\n {breadcrumb.path ? (\n \n {breadcrumb.label}\n \n ) : (\n breadcrumb.label\n )}\n

\n ))}\n
\n );\n};\n\nexport default BreadcrumbHeading;\n","import React, {\n useCallback,\n useContext,\n useLayoutEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { Link, useHistory } from 'react-router-dom';\nimport styled from 'styled-components';\nimport {\n Breadcrumbs,\n IconButton,\n ListItemIcon,\n Menu,\n MenuItem,\n Typography\n} from '@material-ui/core';\nimport {\n Folder as FolderIcon,\n MoreHoriz as MoreHorizIcon\n} from '@material-ui/icons';\n\nimport { useTimeout } from '../timeout.hook';\nimport { Breadcrumb } from './Breadcrumb.interface';\nimport { BreadcrumbContext } from './Breadcrumb.context';\n\nconst StyledBreadcrumbs = styled(Breadcrumbs)`\n color: #a1c1e2;\n & > *,\n li > * {\n font-weight: 500;\n }\n a {\n color: #a1c1e2;\n text-decoration: none;\n transition: color 100ms cubic-bezier(0.075, 0.82, 0.165, 1);\n &:hover {\n color: #fff;\n }\n }\n .MuiIconButton-root {\n padding: 0;\n }\n`;\n\n// NOTE: taken from https://stackoverflow.com/a/7557433/7013346\nfunction isElementInViewport(element: Element): boolean {\n const rect: DOMRect = element.getBoundingClientRect();\n return (\n // rect.width <= 480 &&\n rect.height <= 30 && // new line\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <=\n (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n}\n\nexport interface BreadcrumbSubheadingProps {\n root?: Breadcrumb;\n defaultData?: Breadcrumb;\n}\n\nexport const BreadcrumbSubheading: React.FC = (\n props: BreadcrumbSubheadingProps\n) => {\n const { root, defaultData } = props;\n const history = useHistory();\n const breadcrumbsRef = useRef(null);\n const { breadcrumbs } = useContext(BreadcrumbContext);\n const [anchorEl, setAnchorEl] = useState(null);\n const [shouldCollapse, setShouldCollapse] = useState(false);\n const [debounceUpdate, clearDebouncedUpdate] = useTimeout();\n\n const items: Breadcrumb[] = useMemo(() => {\n const all: Breadcrumb[] =\n breadcrumbs.length === 0 && defaultData ? [defaultData] : breadcrumbs;\n return root ? [root, ...all] : all;\n }, [root, breadcrumbs, defaultData]);\n\n const startIndex: number = 1;\n const endIndex: number = items.length - 1;\n // should have more than 2 items to collapse\n const collapsed: boolean = shouldCollapse && items.length > 2;\n\n const first: Breadcrumb[] = useMemo(() => {\n return collapsed ? items.slice(0, startIndex) : items;\n }, [items, collapsed, startIndex]);\n\n const between: Breadcrumb[] = useMemo(() => {\n return collapsed ? items.slice(startIndex, endIndex) : [];\n }, [items, collapsed, startIndex, endIndex]);\n\n const last: Breadcrumb[] = useMemo(() => {\n return collapsed ? items.slice(endIndex, items.length) : [];\n }, [items, collapsed, endIndex]);\n\n const updateCollapse = useCallback((ms: number = 100) => {\n debounceUpdate(() => {\n if (breadcrumbsRef.current) {\n setShouldCollapse(!isElementInViewport(breadcrumbsRef.current));\n }\n }, ms);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useLayoutEffect(() => {\n const update = () => updateCollapse();\n window.addEventListener('resize', update);\n update();\n return () => {\n window.removeEventListener('resize', update);\n clearDebouncedUpdate();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [breadcrumbs, updateCollapse]);\n\n useLayoutEffect(() => {\n // check again if not collapsed\n !collapsed && updateCollapse(0);\n }, [collapsed, updateCollapse]);\n\n const renderBreadcrumb = (breadcrumb: Breadcrumb) => (\n \n {breadcrumb.label}\n \n );\n\n return (\n \n {first.map(renderBreadcrumb)}\n {between.length > 0 && (\n \n ) => {\n setAnchorEl(event.currentTarget);\n }}\n >\n \n \n setAnchorEl(null)}\n >\n {between.map((breadcrumb: Breadcrumb) => (\n breadcrumb.path && history.push(breadcrumb.path)}\n >\n \n \n \n {breadcrumb.label}\n \n ))}\n \n \n )}\n {last.map(renderBreadcrumb)}\n \n );\n};\n\nexport default BreadcrumbSubheading;\n","import { useApiPost } from '../../common/api/Api.hooks';\nimport { User } from '../../user/User.interface';\n// import { useEffect, useContext, useRef } from 'react';\n// import { JwtToken } from '../../user/JwtToken.interface';\n// import { UserContext } from '../../user/User.context';\n\nexport function useElectronicSignature() {\n let { data, isLoading, error, post } = useApiPost('users/sign');\n // const { user } = useContext(UserContext);\n // const userRef = useRef(user);\n // useEffect(() => {\n // const jwt = data as JwtToken;\n // if (data && !isLoading && jwt.user.id !== userRef.current.id) {\n // data = undefined;\n // error = new FetchError('Incorrect user');\n // }\n // }, []);\n return { signed: Boolean(data), isLoading, error, post };\n}\n","import { BarDatum } from '@nivo/bar';\n\nimport { FetchError } from '../../common/api/api';\nimport { Task } from '../tasks/Task.interface';\nimport { User } from '../../user/User.interface';\nimport { DueStatus } from '../dashboard/components/DueStatusLabel';\nimport { Group } from '../groups/Group.interface';\n\nexport interface FileConfig {\n // by default, show all available fields\n hideTaskKey?: boolean;\n hideVersion?: boolean;\n hideInternalDocumentId?: boolean;\n hideRev?: boolean;\n}\n\nexport enum FileStatus {\n Draft = 'draft',\n InReview = 'in-review',\n Approved = 'approved',\n Obsolete = 'obsolete'\n}\n\nexport interface FileMetadata {\n groups?: Pick[];\n source?: Required>;\n}\n\nexport interface FileDto {\n id: number;\n taskId?: number;\n task?: Task;\n name?: string;\n path?: string;\n version?: number;\n storageKey?: string;\n extension?: string;\n mimeType?: string;\n size?: number;\n internalDocumentId?: string;\n rev?: string;\n descriptionOfChange?: string;\n reasonForChange?: string;\n dueStatus?: DueStatus;\n fileVersion?: FileVersionDto;\n isSelected?: boolean; // used by drive file list\n isFolder?: boolean;\n isLocked?: boolean;\n isDeleted?: boolean;\n children?: FileDto[];\n parent?: FileDto;\n ownedBy?: User | null;\n groups?: Pick[];\n created?: Date;\n createdBy?: User;\n modified?: Date;\n modifiedBy?: User;\n uploaded?: Date;\n uploadedBy?: User;\n metadata?: FileMetadata;\n}\n\nexport interface FileProgressDto extends FileDto {\n errorMessage?: string;\n isCompleted: boolean;\n}\n\nexport interface CreateFolderDto {\n name: string;\n parentId?: number;\n isLocked?: boolean;\n}\n\n// NOTE: platform-stack data used for linking entities\nexport interface ReferenceData {\n id: number | string;\n tableName: string;\n relations: string[];\n}\n\nexport interface ReferenceMetadata {\n type: string;\n data: Record;\n}\n\nexport interface CreateFileDto extends CreateFileVersionDto {\n name: string;\n taskTypeName: string;\n referenceData?: ReferenceData;\n referenceTaskId?: number;\n referenceMetadata?: ReferenceMetadata;\n parentId?: number | null;\n isLocked?: boolean;\n shouldUpdateIfExists?: boolean;\n}\n\nexport interface CreateFileVersionDto {\n storageKey: string;\n mimeType: string;\n size: number;\n extension?: string;\n internalDocumentId?: string;\n descriptionOfChange?: string;\n reasonForChange?: string;\n referenceFileIds?: number[];\n changeOrderId?: number;\n}\n\nexport interface FileVersionDto extends CreateFileVersionDto {\n id: number;\n version: number;\n status: FileStatus;\n uploaded?: Date;\n uploadedBy?: User;\n createdBy?: User;\n created: Date;\n task?: Task;\n}\n\nexport type UpdateFileVersionDto =\n | CreateFileVersionDto\n | { status: FileStatus };\n\nexport interface MoveFileDto {\n id: number;\n destinationFolderId: number;\n shouldUpdateIfExists?: boolean;\n}\n\nexport interface PresignFileDto {\n name: string;\n folderId: number;\n shouldUpdateIfExists?: boolean;\n}\n\nexport type PresignedUrl = {\n storageKey: string;\n signedUrl: string;\n expiration: number;\n};\n\nexport type UploadStatus =\n | 'init'\n | 'presign'\n | 'ready'\n | 'start'\n | 'uploading'\n | 'complete'\n | 'error'\n | 'cancel';\nexport interface DocumentUploadState {\n file?: File;\n presignedUrl?: PresignedUrl;\n status?: UploadStatus;\n progress: number;\n response?: Response;\n error?: any;\n}\n\nexport interface FileLogDto {\n id: number;\n fileId: number;\n fileVersion?: FileVersionDto;\n name: string;\n version?: number;\n storageKey: string;\n extension: string;\n mimeType: string;\n size: number;\n isDeleted: boolean;\n log: string;\n metadata: any;\n ownedBy: User | null;\n createdBy: User;\n created: Date;\n}\n\nexport enum DocumentType {\n File = 'file',\n Folder = 'folder'\n}\n\nexport interface DocumentHistory {\n version: number;\n status: string;\n created: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: number;\n taskId?: number;\n task?: Task;\n type: DocumentType;\n name: string;\n url?: string;\n version?: number;\n dueDate?: Date;\n modified: Date;\n assigned?: Date;\n modifiedBy: User;\n assignedTo?: User;\n documents?: Document[];\n history?: DocumentHistory[];\n fileVersion?: FileVersionDto;\n}\n\nexport interface DocumentStat extends BarDatum {\n status: string;\n value: number;\n}\n\nexport interface BaseDocumentCardProps {\n document: FileDto;\n onChange?: (document: Partial) => void;\n onUpdate?: () => void;\n onError?: (error: FetchError) => void;\n}\n\nexport interface ApprovedFileVersion {\n id: number;\n name: string;\n version: number;\n storageKey: string;\n extension: string;\n mimetype: string;\n size: number;\n path: string;\n taskId: number;\n status: string;\n key: string;\n}\n","import React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState\n} from 'react';\nimport { api as platformStackApi } from '@sierralabs/core-ui';\n\nimport { useGetJiraConnect } from './hooks/useGetJiraConnect';\nimport { useGetJiraApi } from './JiraConnect.hooks';\nimport {\n JiraApiProperties,\n JiraConnectAPI,\n JiraIssueField\n} from './JiraConnect.interface';\n\nexport interface JiraConnectContextState {\n token?: string;\n connect?: JiraConnectAPI;\n isAvailable: boolean;\n getJiraApi: () => void;\n getSchemaKey: (issueField: JiraIssueField) => string | undefined;\n getSchemaProperties: (\n keyOrIssueField: JiraIssueField | string\n ) => JiraApiProperties | undefined;\n}\n\nexport const JiraConnectContext = createContext({\n isAvailable: false,\n getJiraApi: () => {},\n getSchemaKey: () => undefined,\n getSchemaProperties: () => undefined\n});\n\nexport function useJiraConnectContext(): JiraConnectContextState {\n const context: JiraConnectContextState = useContext(JiraConnectContext);\n if (!context) {\n throw new Error(\n 'useJiraConnectContext must be used within the JiraConnectProvider component.'\n );\n }\n return context;\n}\n\n// NOTE: return values come from Jira OpenApi JSON Schema (useGetJiraApi)\nfunction applySpecialCases(propertyName: string): string {\n switch (propertyName.toLowerCase()) {\n case 'component':\n case 'components':\n return 'ProjectComponent';\n case 'issuelink':\n case 'issuelinks':\n return 'IssueLink';\n case 'issuetype':\n case 'issuetypes':\n return 'IssueTypeDetails';\n case 'timetracking':\n return 'TimeTrackingDetails';\n case 'watch':\n case 'watches':\n return 'Watchers';\n }\n return propertyName;\n}\n\nexport const JiraConnectProvider: React.FC = ({ children }) => {\n const didFetchRef = useRef(false);\n const [token, setToken] = useState();\n const connect = useGetJiraConnect();\n const [{ data: jiraApi }, fetchJiraApi] = useGetJiraApi();\n const isAvailable = !!connect;\n\n // fetch once\n const getJiraApi = useCallback(() => {\n !didFetchRef.current && fetchJiraApi();\n }, [fetchJiraApi]);\n\n const getSchemaKey = useCallback(\n (issueField: JiraIssueField): string | undefined => {\n if (!jiraApi) {\n return;\n }\n const { schema } = issueField;\n const {\n type = '',\n items = '',\n system = '',\n custom,\n customId\n } = schema || {};\n const isCustom: boolean = !!(custom || customId);\n const names: string[] = [issueField.name, issueField.id];\n type && names.push(type);\n items && names.push(items);\n system && names.push(system);\n\n // add CustomField for custom properties\n const matches: string[] = [];\n for (const name of names) {\n const prefix: string = isCustom ? 'CustomField' : '';\n const property: string = applySpecialCases(name);\n const propertyWithPrefix: string = prefix.concat(property);\n matches.push(property.toLowerCase(), propertyWithPrefix.toLowerCase());\n }\n\n const schemaKeys: string[] = Object.keys(jiraApi.components.schemas);\n return schemaKeys.find((key: string) => {\n return matches.includes(key.toLowerCase());\n });\n },\n [jiraApi]\n );\n\n const getSchemaProperties = useCallback(\n (\n keyOrIssueField: JiraIssueField | string\n ): JiraApiProperties | undefined => {\n if (!jiraApi) {\n return;\n }\n const key: string | undefined =\n typeof keyOrIssueField === 'string'\n ? keyOrIssueField\n : getSchemaKey(keyOrIssueField);\n if (key) {\n return jiraApi.components.schemas[key]?.properties;\n }\n },\n [jiraApi, getSchemaKey]\n );\n\n useEffect(() => {\n didFetchRef.current = !!jiraApi;\n }, [jiraApi]);\n\n useEffect(() => {\n connect?.context.getToken((token: string) => setToken(token));\n }, [connect]);\n\n useEffect(() => {\n // set token to environment so api.fetch() for v2 will include Jira-Authorization header\n const key = 'Jira-Authorization';\n if (!platformStackApi.environment.headers) {\n platformStackApi.environment.headers = {};\n }\n if (token) {\n platformStackApi.environment.headers[key] = `JWT ${token}`;\n }\n return () => {\n // remove headers\n if (platformStackApi.environment.headers) {\n delete platformStackApi.environment.headers[key];\n }\n };\n }, [token]);\n\n return (\n \n {children}\n \n );\n};\n","export enum AuthMethodId {\n Default = 'default',\n Google = 'google',\n Okta = 'okta'\n}\n\nexport interface AuthMethod {\n id: AuthMethodId;\n name: string;\n /** Image path (e.g. `/assets/auth/{name}.png`) */\n image: string;\n}\n\nexport interface AuthConfig {\n /** @default [authMethod.default] */\n methods?: AuthMethod[];\n /** @default AuthMethodId.Default */\n defaultId?: AuthMethodId;\n}\n","import React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { useLocation } from 'react-router-dom';\n\nimport { UserContext } from '../user/User.context';\n\nexport interface LoginContextProps {\n previousRoute: string;\n didLogout: boolean;\n setDidLogout: (didLogout: boolean) => void;\n}\n\nexport const LoginContext = createContext({\n previousRoute: '',\n didLogout: false,\n setDidLogout: () => {}\n});\n\nexport function useLoginRedirect() {\n const { user, didSessionExpire } = useContext(UserContext);\n const { previousRoute, didLogout } = useContext(LoginContext);\n const { pathname, search, hash } = useLocation();\n const route: string = pathname + search + hash;\n\n const redirectFromLogin: string | undefined = useMemo(() => {\n if (!(user && user.roles)) {\n return undefined;\n }\n if (user.roles.length === 0) {\n return '/portal/dashboard';\n } else if (user.roles.find(r => r.name === 'Signup')) {\n return '/onboarding';\n } else if (user.roles.find(r => r.name === 'Admin')) {\n return '/portal/dashboard'; // '/portal/admin-dashboard'\n } else if (user.roles.find(r => r.name === 'Trainee')) {\n return '/portal/training';\n } else if (user.roles.find(r => r.name === 'DocumentAdmin')) {\n return '/portal/documents';\n } else if (user.roles.find(r => r.name === 'DocumentViewer')) {\n return '/portal/documents';\n } else if (user.roles.find(r => r.name === 'DocumentEditor')) {\n return '/portal/documents';\n } else if (user.roles.find(r => r.name === 'SiteAdmin')) {\n return '/portal/users';\n } else if (user.roles.find(r => r.name === 'TrainingAdmin')) {\n return '/portal/admin/training';\n } else if (user.roles.find(r => r.name === 'RiskAdmin')) {\n return '/portal/risk';\n } else if (user.roles.find(r => r.name === 'ProductAdmin')) {\n return '/portal/products';\n } else if (user.roles.find(r => r.name === 'HazardAdmin')) {\n return '/portal/hazards';\n } else if (user.roles.find(r => r.name === 'CapaAdmin')) {\n return '/portal/capa';\n } else if (user.roles.find(r => r.name === 'ScarAdmin')) {\n return '/portal/scar';\n } else if (user.roles.find(r => r.name === 'ChangeOrderAdmin')) {\n return '/portal/change-order';\n } else if (user.roles.find(r => r.name === 'SupplierAdmin')) {\n return '/portal/suppliers';\n } else if (user.roles.find(r => r.name === 'WorkflowAdmin')) {\n return '/portal/workflow';\n } else if (user.roles.length > 0) {\n // if user has roles but they are not from default roles,\n // custom roles are assigned and redirect to dashboard\n return '/portal/dashboard';\n }\n }, [user]);\n\n const loginRedirect: string | undefined = useMemo(() => {\n const params: URLSearchParams = new URLSearchParams(search);\n const to: string | null = params.get('to');\n return to || redirectFromLogin;\n }, [search, redirectFromLogin]);\n\n const getLoginRoute = useCallback((): string => {\n // if user is logged in, redirect to valid route instead of /login\n if (redirectFromLogin) {\n return redirectFromLogin;\n }\n let paramsStr: string = '';\n // remove redirect if user logs out\n // avoid infinite redirects if route is the same as previous\n if (!didLogout && route !== previousRoute) {\n const params: URLSearchParams = new URLSearchParams();\n params.set('to', route);\n paramsStr = params.toString();\n }\n return `/login${paramsStr && `?${paramsStr}`}`;\n }, [route, didLogout, previousRoute, redirectFromLogin]);\n\n return { loginRedirect, getLoginRoute, didSessionExpire };\n}\n\nexport const LoginProvider: React.FC = ({ children }) => {\n const { pathname, search, hash } = useLocation();\n const previousRouteRef = useRef('');\n const [didLogout, setDidLogout] = useState(false);\n const [previousRoute, setPreviousRoute] = useState('');\n const route: string = pathname + search + hash;\n\n useEffect(() => {\n setPreviousRoute(previousRouteRef.current);\n previousRouteRef.current = route;\n }, [route]);\n\n return (\n \n {children}\n \n );\n};\n","import { ApiOptions, parseDateFields } from './Api.hooks';\nimport { FetchError, FetchRequest } from './api';\n\nexport interface RequestResult {\n data?: T;\n error?: FetchError;\n response?: Response;\n}\n\n// resolve api.fetch calls without using hooks\nexport async function apiResolve(\n request: FetchRequest,\n options?: ApiOptions\n): Promise> {\n const { bodyParse = true } = options || {};\n let response: Response | undefined;\n try {\n response = await request.response;\n // parse if error to get error object\n const json = !response.ok || bodyParse ? await response.json() : {};\n return response.ok\n ? { response, data: parseDateFields(json) }\n : { response, error: json };\n } catch (error) {\n // ignore when request is aborted\n if (error instanceof Error && error.name === 'AbortError') {\n return { response };\n }\n const { name, message } =\n error instanceof Error\n ? error\n : { name: 'Request Error', message: 'An error occurred.' };\n return {\n response,\n error: { error: name, message, statusCode: 500 }\n };\n }\n}\n","import { useState, useEffect, useCallback, useReducer } from 'react';\n\nimport { useBlockDeactivatedUser } from '../../user/User.hooks';\nimport { useJiraConnectToken } from '../../secure-portal/jira-connect/JiraConnect.hooks';\nimport api, { FetchRequest, FetchError, ApiParams, FetchMethod } from './api';\nimport { InputAcceptType } from './File.interface';\n\nexport interface ApiOptions {\n /**\n * Determines if the response body should be parsed (default = true)\n */\n bodyParse: boolean;\n}\nexport interface ApiResult {\n data?: T;\n isLoading: boolean;\n response?: Response;\n error?: FetchError;\n}\n\nexport type FetchApiCallback = (\n params?: ApiParams,\n extraHeaders?: Record\n) => void;\n\nexport interface ApiFetchResult extends ApiResult {\n fetchApi: FetchApiCallback;\n}\n\nexport interface ApiGetResult extends ApiResult {\n get: FetchApiCallback;\n}\n\nexport interface ApiPatchResult extends ApiResult {\n patch: FetchApiCallback;\n}\n\nexport interface ApiPostResult extends ApiResult {\n post: FetchApiCallback;\n}\n\nexport interface ApiPutResult extends ApiResult {\n put: FetchApiCallback;\n}\n\nexport interface ApiDeleteResult extends ApiResult {\n del: FetchApiCallback;\n}\n\nexport function useApiGet(\n path: string,\n options?: ApiOptions\n): ApiGetResult {\n const { fetchApi, ...params } = useApiFetch(\n FetchMethod.Get,\n path,\n options\n );\n return { ...params, get: fetchApi };\n}\n\nexport function useApiPatch(path: string): ApiPatchResult {\n const { fetchApi, ...params } = useApiFetch(FetchMethod.Patch, path);\n return { ...params, patch: fetchApi };\n}\n\nexport function useApiPost(path: string): ApiPostResult {\n const { fetchApi, ...params } = useApiFetch(FetchMethod.Post, path);\n return { ...params, post: fetchApi };\n}\n\nexport function useApiPut(path: string): ApiPutResult {\n const { fetchApi, ...params } = useApiFetch(FetchMethod.Put, path);\n return { ...params, put: fetchApi };\n}\n\nexport function useApiDelete(path: string): ApiDeleteResult {\n const { fetchApi, ...params } = useApiFetch(FetchMethod.Delete, path);\n return { ...params, del: fetchApi };\n}\n\nenum FetchActions {\n Init,\n Success,\n Failure\n}\n\nfunction fetchReducer(\n state: ApiResult,\n action: { type: FetchActions; payload?: T | FetchError }\n): ApiResult {\n switch (action.type) {\n case FetchActions.Init:\n return { ...state, isLoading: true, error: undefined };\n case FetchActions.Success:\n return { ...state, isLoading: false, data: action.payload as T };\n case FetchActions.Failure:\n return {\n ...state,\n isLoading: false,\n error: action.payload as FetchError\n };\n default:\n throw new Error('Unrecognized action');\n }\n}\n\nexport function useApiFetch(\n method: FetchMethod,\n path: string,\n options?: ApiOptions\n): ApiFetchResult {\n const [response, setResponse] = useState();\n const [request, setRequest] = useState();\n const [state, dispatch] = useReducer(fetchReducer, { isLoading: false });\n const jiraToken: string | undefined = useJiraConnectToken();\n useBlockDeactivatedUser(state);\n\n useEffect(() => {\n // default body parsing = true (allow override via options)\n const bodyParse =\n typeof options?.bodyParse === 'boolean' ? options?.bodyParse : true;\n if (request) {\n const processRequest = async () => {\n dispatch({ type: FetchActions.Init });\n try {\n const result = await request.response;\n setResponse(result);\n let json: object = {};\n // avoid calling .json() if content is a document\n const contentType: string | null = result.headers.get('content-type');\n if (\n bodyParse &&\n !(contentType && InputAcceptType.Documents.includes(contentType))\n ) {\n json = await result.json();\n }\n if (result.ok) {\n dispatch({\n type: FetchActions.Success,\n payload: parseDateFields(json)\n });\n } else {\n dispatch({ type: FetchActions.Failure, payload: json });\n }\n } catch (error) {\n if ((error as any).name !== 'AbortError') {\n // ignore when request is aborted\n dispatch({ type: FetchActions.Failure, payload: error });\n }\n }\n };\n processRequest();\n // return request.abort; // NOTE: This causes data loss; TODO: rework abort logic\n }\n }, [request]);\n const fetchApi = useCallback(\n (params: ApiParams = {}, extraHeaders?: Record) => {\n setResponse(undefined);\n // include Jira-Authorization header token\n const headers: Record = extraHeaders\n ? { ...extraHeaders }\n : {};\n if (jiraToken) {\n headers['Jira-Authorization'] = `JWT ${jiraToken}`;\n }\n setRequest(api.fetch(method, path, params, headers));\n },\n [setRequest, jiraToken, method, path]\n );\n return {\n data: state.data as T,\n isLoading: state.isLoading,\n response,\n error: state.error,\n fetchApi\n };\n}\n\nconst DATE_STRING_REGEX =\n /\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/;\n/**\n * Recursively checks the response json object for Date properties in string format and parses them to native JS Date type\n * @param json\n */\nexport function parseDateFields(json: any): any {\n if (json === null || json === undefined) {\n return json;\n }\n if (Array.isArray(json)) {\n return json.map(item => parseDateFields(item));\n }\n if (typeof json === 'object') {\n let newJson: { [key: string]: any } = {};\n Object.keys(json).forEach((key: string) => {\n newJson[key] = parseDateFields(json[key]);\n });\n return newJson;\n }\n if (typeof json === 'string' && DATE_STRING_REGEX.test(json)) {\n return new Date(json);\n }\n return json;\n}\n","import { authMethod } from '../secure-portal/auth/Auth.constants';\nimport { Environment } from './environment.types';\nimport { filterNavigation } from './navigation';\n\nconst environment: Partial = {\n apiBaseUrl: 'https://qms-api.sierralabs.com/api/',\n siteDomain: 'qms.sierralabs.com',\n accessTokenKey: 'Authorization',\n bearerPrefix: 'bearer',\n accessDeniedPath: '/access-denied',\n expires: 365,\n secure: true,\n tinyApiKey: '28wr7ysrep8u469n6qqpzvzmn9uyye4phxcstpwrtdh6blk1',\n recaptchaSiteKey: '6LfLJtQjAAAAAF5Eymo01VfMF2qxtY7C1r8j-MxT',\n navigation: filterNavigation(\n 'Dashboard',\n 'Training Admin',\n 'Quality Roadmap',\n 'Audit Management',\n 'Risk Management',\n 'Documents',\n 'Products',\n 'Hazards',\n 'CAPA',\n 'SCAR',\n 'Supplier Management',\n 'Teams',\n 'Employees',\n 'Forms',\n 'Workflow',\n 'Task Types',\n 'Agreements',\n 'Sign Up'\n ),\n changeOrderConfig: { useCustomFields: true, enableQualityChangeFields: true },\n authConfig: { methods: [authMethod.default, authMethod.google] },\n googleAuthConfig: {\n clientId:\n '561300347562-tlbgciri0d7c8rhprprmi76mkc5ncoub.apps.googleusercontent.com'\n }\n};\n\nexport default environment;\n","import { AuthMethod, AuthMethodId } from './Auth.interface';\n\nexport const authMethod: Record = {\n default: {\n id: AuthMethodId.Default,\n name: 'SierraQMS',\n image: '/logo-192.png'\n },\n google: {\n id: AuthMethodId.Google,\n name: 'Google',\n image: '/assets/auth/auth-google.svg'\n },\n okta: {\n id: AuthMethodId.Okta,\n name: 'Okta',\n image: '/assets/auth/auth-okta.svg'\n }\n};\n","var map = {\n\t\"./environment.default\": 451,\n\t\"./environment.default.ts\": 451,\n\t\"./environment.development\": 452,\n\t\"./environment.development-ioncell\": 1046,\n\t\"./environment.development-ioncell.ts\": 1046,\n\t\"./environment.development-remote\": 1047,\n\t\"./environment.development-remote.ts\": 1047,\n\t\"./environment.development.ts\": 452,\n\t\"./environment.production\": 151,\n\t\"./environment.production-aes\": 1048,\n\t\"./environment.production-aes.ts\": 1048,\n\t\"./environment.production-amp\": 1049,\n\t\"./environment.production-amp.ts\": 1049,\n\t\"./environment.production-assistivetech\": 1050,\n\t\"./environment.production-assistivetech.ts\": 1050,\n\t\"./environment.production-bioai\": 1051,\n\t\"./environment.production-bioai.ts\": 1051,\n\t\"./environment.production-birthbyus\": 1052,\n\t\"./environment.production-birthbyus.ts\": 1052,\n\t\"./environment.production-brainreader\": 1053,\n\t\"./environment.production-brainreader.ts\": 1053,\n\t\"./environment.production-cass\": 1054,\n\t\"./environment.production-cass.ts\": 1054,\n\t\"./environment.production-cil\": 1055,\n\t\"./environment.production-cil.ts\": 1055,\n\t\"./environment.production-dartmouth\": 1056,\n\t\"./environment.production-dartmouth.ts\": 1056,\n\t\"./environment.production-dermasensor\": 1057,\n\t\"./environment.production-dermasensor.ts\": 1057,\n\t\"./environment.production-digiteyez\": 1058,\n\t\"./environment.production-digiteyez.ts\": 1058,\n\t\"./environment.production-domino\": 1059,\n\t\"./environment.production-domino.ts\": 1059,\n\t\"./environment.production-eventhorizon\": 1060,\n\t\"./environment.production-eventhorizon.ts\": 1060,\n\t\"./environment.production-gaisler\": 1061,\n\t\"./environment.production-gaisler.ts\": 1061,\n\t\"./environment.production-healthrhythms\": 1062,\n\t\"./environment.production-healthrhythms.ts\": 1062,\n\t\"./environment.production-healthrhythmstest\": 1063,\n\t\"./environment.production-healthrhythmstest.ts\": 1063,\n\t\"./environment.production-ioncell\": 1064,\n\t\"./environment.production-ioncell.ts\": 1064,\n\t\"./environment.production-isi\": 1065,\n\t\"./environment.production-isi.ts\": 1065,\n\t\"./environment.production-iu\": 1066,\n\t\"./environment.production-iu.ts\": 1066,\n\t\"./environment.production-kaiko\": 1067,\n\t\"./environment.production-kaiko.ts\": 1067,\n\t\"./environment.production-kegg\": 1068,\n\t\"./environment.production-kegg.ts\": 1068,\n\t\"./environment.production-machinemed\": 1069,\n\t\"./environment.production-machinemed.ts\": 1069,\n\t\"./environment.production-marsbio\": 1070,\n\t\"./environment.production-marsbio.ts\": 1070,\n\t\"./environment.production-narnar\": 1071,\n\t\"./environment.production-narnar.ts\": 1071,\n\t\"./environment.production-opio\": 1072,\n\t\"./environment.production-opio.ts\": 1072,\n\t\"./environment.production-osu\": 1073,\n\t\"./environment.production-osu.ts\": 1073,\n\t\"./environment.production-paradromics\": 1074,\n\t\"./environment.production-paradromics.ts\": 1074,\n\t\"./environment.production-parasandbox\": 1075,\n\t\"./environment.production-parasandbox.ts\": 1075,\n\t\"./environment.production-parasandbox2\": 1076,\n\t\"./environment.production-parasandbox2.ts\": 1076,\n\t\"./environment.production-pentazone\": 1077,\n\t\"./environment.production-pentazone.ts\": 1077,\n\t\"./environment.production-primum\": 1078,\n\t\"./environment.production-primum.ts\": 1078,\n\t\"./environment.production-proesisbio\": 1079,\n\t\"./environment.production-proesisbio.ts\": 1079,\n\t\"./environment.production-rti\": 1080,\n\t\"./environment.production-rti.ts\": 1080,\n\t\"./environment.production-sayenza\": 1081,\n\t\"./environment.production-sayenza.ts\": 1081,\n\t\"./environment.production-schenck\": 1082,\n\t\"./environment.production-schenck.ts\": 1082,\n\t\"./environment.production-sleepimage\": 1083,\n\t\"./environment.production-sleepimage.ts\": 1083,\n\t\"./environment.production-smartsurgn\": 1084,\n\t\"./environment.production-smartsurgn.ts\": 1084,\n\t\"./environment.production-socai\": 1085,\n\t\"./environment.production-socai.ts\": 1085,\n\t\"./environment.production-template\": 1086,\n\t\"./environment.production-template.ts\": 1086,\n\t\"./environment.production-tokueyes\": 1087,\n\t\"./environment.production-tokueyes.ts\": 1087,\n\t\"./environment.production-venavitals\": 1088,\n\t\"./environment.production-venavitals.ts\": 1088,\n\t\"./environment.production.ts\": 151,\n\t\"./environment.staging\": 1089,\n\t\"./environment.staging.ts\": 1089,\n\t\"./environment.types\": 1090,\n\t\"./environment.types.ts\": 1090\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 1612;","import React from 'react';\nimport { ThemeProvider } from 'styled-components';\n\nimport lightblue from '@material-ui/core/colors/lightBlue';\nimport deepOrange from '@material-ui/core/colors/deepOrange';\nimport { alpha, createTheme, StylesProvider } from '@material-ui/core/styles';\n\nexport const theme = createTheme({\n palette: {\n primary: {\n main: '#2196f3',\n light: lightblue[50]\n },\n secondary: {\n light: '#f1f3f3',\n main: '#fff'\n },\n error: {\n main: deepOrange['A400']\n }\n },\n typography: {\n h2: { fontSize: 22, fontWeight: 'bold' },\n overline: {\n letterSpacing: 1,\n fontWeight: 500\n }\n },\n breakpoints: {\n values: {\n xs: 0,\n sm: 600,\n md: 768,\n lg: 960,\n xl: 1024\n }\n },\n overrides: {\n MuiListItemIcon: {\n root: {\n minWidth: 36\n }\n },\n MuiInputBase: {\n input: {\n fontSize: 14\n }\n },\n MuiInputLabel: {\n outlined: {\n transform: 'translate(14px, 18px) scale(1)'\n }\n },\n MuiOutlinedInput: {\n input: {\n padding: '16px 14px'\n }\n },\n MuiSelect: {\n root: {\n display: 'flex',\n alignItems: 'center'\n }\n },\n MuiFormControlLabel: {\n label: {\n fontSize: 13\n }\n },\n MuiTableContainer: {\n root: {\n overflow: 'auto'\n }\n },\n MuiTable: {\n root: {\n whiteSpace: 'nowrap'\n }\n },\n MuiTableRow: {\n hover: {\n cursor: 'pointer'\n },\n root: {\n '&$selected, &$selected:hover': { backgroundColor: lightblue[50] },\n '&.deleted': {\n backgroundColor: alpha(deepOrange['A400'], 0.1)\n }\n }\n },\n MuiDialog: {\n paper: {\n width: '80%'\n }\n },\n MuiDialogActions: {\n root: {\n padding: '8px 24px'\n }\n }\n }\n});\n\nconst AppThemeProvider: React.FC = props => {\n const { children } = props;\n // NOTE: MuiThemeProvider already exists in and\n // may cause styling issues when duplicated:\n // Mui classNames get a number suffix (e.g. MuiButtonBase-root-123)\n // which cannot be matched via `.MuiButtonBase-root { ... }` in styled components.\n // Pass the `theme` instead to \n return (\n //Make sure the Material stylesheet is placed above your own\n //styles so you can overwrite them\n \n {/* Use also the ThemeProvider for Styled-Components so you can access\n the theme in your own css */}\n {children}\n \n );\n};\n\nexport default AppThemeProvider;\n","import { useCallback, useLayoutEffect } from 'react';\n\nimport { useTimeout } from './timeout.hook';\n\nexport function useRemoveJiraWidget(ms = 1000) {\n const [debounceHide] = useTimeout();\n\n // get jsd-widget everytime to avoid different references\n const getWidget = useCallback((callback: (element: HTMLElement) => void) => {\n const widget = document.getElementById('jsd-widget');\n widget && callback(widget);\n }, []);\n\n useLayoutEffect(() => {\n let display: string | undefined;\n // temporarily hide by opacity\n getWidget(widget => {\n console.debug('[jsd-widget] opacity');\n widget.style.opacity = '0';\n });\n // debounce display hide so it renders properly again when needed\n const clear = debounceHide(() => {\n getWidget(widget => {\n display = widget.style.display;\n console.debug('[jsd-widget] hide display: %o', display);\n widget.style.display = 'none';\n });\n }, ms);\n return () => {\n clear();\n getWidget(widget => {\n console.debug('[jsd-widget] show display: %o', display);\n widget.style.opacity = '1';\n if (typeof display !== 'undefined') {\n widget.style.display = display;\n }\n });\n };\n }, [ms, debounceHide, getWidget]);\n}\n","import { useCallback, useState } from 'react';\n\nconst currentVersion = process.env.REACT_APP_VERSION || '';\n\nexport interface AppMeta {\n version: string;\n}\n\nexport interface AppMetaInfo {\n meta?: AppMeta;\n didUpdate: boolean;\n currentVersion: string;\n}\n\nexport async function getAppMeta(): Promise {\n let meta: AppMeta | undefined;\n try {\n // meta.json can get cached, add unique query every time to prevent cache\n const response = await fetch(`/meta.json?t=${+Date.now()}`);\n meta = await response.json();\n } catch {}\n // compare via equality in case a lower version build is pushed\n const didChange = !!(\n meta &&\n currentVersion &&\n meta.version !== currentVersion\n );\n return { meta, didUpdate: didChange, currentVersion };\n}\n\nexport function useAppMeta() {\n const [metaInfo, setMetaInfo] = useState(() => {\n return { currentVersion, didUpdate: false };\n });\n const loadMeta = useCallback(() => {\n getAppMeta().then(setMetaInfo);\n }, []);\n return { ...metaInfo, loadMeta };\n}\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { Button, Snackbar, Typography } from '@material-ui/core';\n\nimport { useWindowFocus } from '../useWindowFocus';\nimport { useAppMeta } from './useAppMeta';\nimport VersionLabel from './VersionLabel';\n\nconst CheckVersion: React.FC = () => {\n const [open, setOpen] = useState(true);\n const { meta, didUpdate, currentVersion, loadMeta } = useAppMeta();\n const newVersion = meta?.version || '';\n const hasVersion = !!(newVersion && currentVersion);\n const isOpen = open && didUpdate && hasVersion;\n\n const resumeFocusEvent = useWindowFocus(\n useCallback(() => {\n setOpen(true);\n loadMeta();\n }, [loadMeta])\n );\n\n // load only if snackbar is closed\n useEffect(() => {\n resumeFocusEvent(!isOpen);\n }, [isOpen, resumeFocusEvent]);\n console.log('CheckVersion');\n return isOpen ? (\n An update is available}\n action={\n {\n setOpen(false);\n window.location.reload();\n }}\n >\n Update Now\n \n }\n />\n ) : null;\n};\n\nexport default CheckVersion;\n","import { useCallback, useEffect, useRef } from 'react';\n\n/**\n * Fire callback when browser window is focused\n * @param callback called when window is focused outside of the interval timeout\n * @param interval interval between last focus callback\n * @returns toggle window focus event on/off\n */\nexport function useWindowFocus(callback: () => void, interval = 10) {\n const shouldRunRef = useRef(true);\n const lastCheckRef = useRef();\n\n const resumeFocusEvent = useCallback((shouldResume: boolean) => {\n // reset check if changing value\n if (shouldRunRef.current !== shouldResume) {\n lastCheckRef.current = undefined;\n }\n shouldRunRef.current = shouldResume;\n }, []);\n\n useEffect(() => {\n let isFirstCheck = true;\n const focus = () => {\n if (!shouldRunRef.current) {\n return;\n }\n const now = Date.now();\n if (typeof lastCheckRef.current === 'undefined') {\n lastCheckRef.current = now;\n }\n const diffSec = Math.abs(now - lastCheckRef.current) / 1000;\n if (isFirstCheck || diffSec > interval) {\n isFirstCheck = false;\n lastCheckRef.current = now;\n callback();\n }\n };\n focus();\n window.addEventListener('focus', focus);\n return () => {\n lastCheckRef.current = undefined;\n window.removeEventListener('focus', focus);\n };\n }, [interval, callback]);\n\n return resumeFocusEvent;\n}\n","import { RouteProps, Route, Redirect } from 'react-router';\n\nimport { GuardFunction } from '../guards/guard';\nimport { useLoginRedirect } from '../login/Login.context';\n\ntype ProtectedRouteProps = RouteProps & {\n guards?: Array;\n\n // Will use to redirect when all guards failed to activate\n // By default it will redirect to `/login`\n redirectTo?: string;\n};\n\nfunction ProtectedRoute(props: ProtectedRouteProps) {\n const { guards = [] } = props;\n const isAllowed = guards.some(guard => guard().canActivate());\n const { getLoginRoute } = useLoginRedirect();\n if (!isAllowed) {\n return ;\n }\n return ;\n}\n\nexport default ProtectedRoute;\n","import { useContext } from 'react';\n\nimport { Guard } from './guard';\nimport { UserContext } from '../user/User.context';\n\nexport default function GuestGuard(): Guard {\n const { user } = useContext(UserContext);\n return { canActivate: () => !user };\n}\n","import { useContext } from 'react';\n\nimport { Guard } from './guard';\nimport { UserContext } from '../user/User.context';\n\nexport default function AuthGuard(): Guard {\n const { user } = useContext(UserContext);\n return { canActivate: () => !!user };\n}\n","import { useContext } from 'react';\n\nimport { UserContext } from '../user/User.context';\nimport { Guard } from './guard';\n\nexport default function SignupGuard(): Guard {\n const { user } = useContext(UserContext);\n return { canActivate: () => !!user?.roles?.some(r => r.name === 'Signup') };\n}\n","export const logo = '/assets/sierraQMS-logo@2x.png';\n\nexport default logo;\n","import React, { ComponentProps } from 'react';\nimport styled from 'styled-components';\nimport { Typography } from '@material-ui/core';\n\nconst StyledDiv = styled.div`\n .legal {\n color: #777;\n a {\n color: #444;\n }\n }\n`;\n\n/**\n * Recaptcha legal copy required when hiding the recaptcha badge.\n */\nconst RecaptchaLegal: React.FC> = props => {\n const { className, ...divProps } = props;\n const classes = ['recaptcha-legal'];\n if (className) classes.push(className);\n return (\n \n \n This site is protected by reCAPTCHA and the Google{' '}\n \n Privacy Policy\n {' '}\n and{' '}\n \n Terms of Service\n {' '}\n apply.\n \n \n );\n};\n\nexport default RecaptchaLegal;\n","import styled from 'styled-components';\nimport { Form as FormikForm } from 'formik';\nimport {\n Card as MuiCard,\n CardContent as MuiCardContent\n} from '@material-ui/core';\n\nexport const StyledLoginContainer = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n`;\n\nexport const StyledLoginCard = styled(MuiCard)`\n display: flex;\n flex-direction: column;\n max-width: 320px;\n width: 80%;\n padding: 40px;\n align-items: center;\n .logo {\n width: 220px;\n }\n h2 {\n margin: 16px 0 36px 0;\n &.message-only {\n margin-bottom: 18px;\n }\n }\n .forgot-password-link {\n cursor: pointer;\n margin: 20px 10px 0px 10px;\n }\n @media screen and (max-width: 480px) {\n padding: 20px;\n }\n`;\n\nexport const StyledLoginForm = styled(FormikForm)`\n display: flex;\n flex-direction: column;\n width: 100%;\n .form-field {\n margin-bottom: 20px;\n }\n button {\n }\n .error {\n color: red;\n font-size: 12px;\n }\n`;\n\nexport const StyledLoginCardContent = styled(MuiCardContent)`\n padding: 0;\n text-align: center;\n`;\n","import styled from 'styled-components';\n\nexport const StyledLoginContainer = styled.div`\n margin: 20px auto;\n width: 100%;\n height: 100%;\n button {\n width: 100%;\n margin: 20px auto;\n }\n hr {\n line-height: 1em;\n position: relative;\n background-color: #ffffff;\n outline: 0;\n border: 0;\n color: black;\n text-align: center;\n height: 1.5em;\n &:before {\n content: '';\n // use the linear-gradient for the fading effect\n // use a solid background color for a solid bar\n background: linear-gradient(to right, transparent, #818078, transparent);\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n height: 1px;\n }\n &:after {\n content: attr(data-content);\n position: relative;\n display: inline-block;\n color: black;\n\n padding: 0 0.5em;\n line-height: 1.5em;\n // this is really the only tricky part, you need to specify the background color of the container element...\n color: #818078;\n background-color: #fcfcfa;\n }\n }\n .backdrop {\n z-index: 999;\n background-color: rgba(255, 255, 255, 0.8);\n }\n`;\n","import React, { useContext, useEffect, useState } from 'react';\nimport { Backdrop, Button, CircularProgress, Divider } from '@material-ui/core';\n\nimport { useJiraLogin } from '../user/User.hooks';\nimport { User } from '../user/User.interface';\nimport { FetchError } from '../common/api/api';\nimport environment from '../environments';\nimport { useJiraConnectAPI } from '../secure-portal/jira-connect/JiraConnect.hooks';\nimport { LoginContext } from './Login.context';\nimport { StyledLoginContainer } from './JiraLogin.styled';\n\nconst JiraLogin: React.FC<{\n email?: string;\n disabled?: boolean;\n onLogin: (user: User) => void;\n onError: (error: FetchError) => void;\n}> = ({\n email,\n disabled = false,\n onLogin,\n onError,\n}) => {\n const [token, setToken] = useState('');\n const { connect, isAvailable } = useJiraConnectAPI();\n const { didLogout } = useContext(LoginContext);\n const { user, isLoading, error, jiraLogin } = useJiraLogin();\n\n useEffect(() => {\n // prevent auto login after logging out\n if (isAvailable && environment.jiraAutoLogin && !didLogout && token) {\n jiraLogin(token, email);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [token, isAvailable, jiraLogin]);\n\n useEffect(() => {\n if (connect && connect.context) {\n connect.context.getToken(t => setToken(t));\n }\n }, [connect]);\n\n useEffect(() => {\n if (user && onLogin) {\n onLogin(user);\n }\n if (error && onError) {\n onError(error);\n }\n }, [user, error, onLogin, onError]);\n\n if (!isAvailable) {\n return <>;\n }\n\n return (\n \n \n {\n jiraLogin(token, email);\n }}\n >\n Log In with JIRA\n \n\n \n \n \n \n );\n };\n\nexport default JiraLogin;\n","import React, { useEffect } from 'react';\nimport { RouteComponentProps } from 'react-router-dom';\nimport { Backdrop, Button, CircularProgress, Divider } from '@material-ui/core';\n\nimport { StyledLoginContainer } from '../../login/JiraLogin.styled';\nimport { useJiraServerAuthUrl, useJiraServerLogin } from './jira-server.hooks';\nimport { FetchError } from '../../common/api/api';\nimport { useJiraServerContext } from './jira-server.context';\n\ntype BaseJiraServerLoginProps = {\n onError: (error: FetchError) => void;\n};\ntype JiraServerLoginProps = RouteComponentProps & BaseJiraServerLoginProps;\n\nconst JiraServerLogin: React.FC = ({\n location,\n onError\n}) => {\n const { isJiraServer } = useJiraServerContext();\n\n const [{ data, error }, get] = useJiraServerAuthUrl();\n const [{ data: user }, jiraLogin] = useJiraServerLogin();\n\n useEffect(() => {\n console.debug('data', data);\n if (data?.url)\n window.open(\n data.url,\n '_blank',\n 'location=yes,height=480,width=640,scrollbars=no,status=no'\n );\n }, [data]);\n\n useEffect(() => {\n if (error && onError) {\n onError(error);\n }\n }, [error, onError]);\n\n useEffect(() => {\n const params = new URLSearchParams(location.search);\n const code = params.get('oauth_verifier');\n console.log('code', code);\n if (code) {\n jiraLogin(code);\n }\n }, [jiraLogin, location.search]);\n\n useEffect(() => {\n // user was already logged in\n if (user && window.opener) {\n // reload the window that opened the authorization popup window\n window.opener.location.reload();\n // close this popup window\n window.close();\n }\n }, [user]);\n\n return isJiraServer ? (\n \n \n {\n get();\n }}\n >\n Log In with JIRA\n \n\n \n \n \n \n ) : (\n <>\n );\n};\n\nexport default JiraServerLogin;\n","import React, { useEffect } from 'react';\nimport { Formik } from 'formik';\nimport * as Yup from 'yup';\nimport { TextField } from '@material-ui/core';\n\nimport * as Styled from './Login.styled';\n\nconst loginSchema = Yup.object().shape({\n email: Yup.string()\n .email('Invalid e-mail address.')\n .required('E-mail address is required.')\n});\n\ninterface ErrorHandlerProps {\n error?: string;\n onError?: () => void;\n}\n\nconst ErrorHandler: React.FC = (\n props: ErrorHandlerProps\n) => {\n const { error, onError } = props;\n\n useEffect(() => {\n if (error) {\n onError?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n return <>;\n};\n\nexport interface JiraEmailLoginProps {\n errorMessage?: string;\n onChange?: (email: string) => void;\n}\n\nconst JiraEmailLogin: React.FC = (\n props: JiraEmailLoginProps\n) => {\n const { errorMessage, onChange } = props;\n return (\n onChange?.(dto.email)}\n >\n {({ values, errors, touched, handleChange, handleBlur, submitForm }) => (\n \n {\n handleBlur(event);\n submitForm();\n }}\n value={values.email}\n error={touched.email && !!errors.email}\n helperText={errors.email}\n />\n {errorMessage &&

{errorMessage}

}\n {/* set empty email if error occurs */}\n onChange?.('')} />\n
\n )}\n \n );\n};\n\nexport default JiraEmailLogin;\n","import React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport { Redirect, RouteComponentProps, withRouter } from 'react-router-dom';\nimport { Formik } from 'formik';\nimport { Button, TextField, Link, Typography } from '@material-ui/core';\nimport * as Yup from 'yup';\n\nimport logo from '../assets/logo';\nimport RecaptchaLegal from '../common/RecaptchaLegal';\nimport { useLogin, LoginRequest } from '../user/User.hooks';\nimport * as Styled from './Login.styled';\nimport { useLoginRedirect } from './Login.context';\nimport JiraLogin from './JiraLogin';\nimport { authConfig } from '../secure-portal/auth/Auth.config';\nimport { AuthMethodId } from '../secure-portal/auth/Auth.interface';\nimport AuthMethodListPicker from '../secure-portal/auth/components/AuthMethodListPicker';\nimport { getGoogleAuth } from '../secure-portal/google/GoogleAuth';\nimport { useGoogleLogin } from '../secure-portal/google/GoogleAuth.hooks';\nimport JiraServerLogin from '../secure-portal/jira-server/JiraServerLogin';\nimport { useOktaLogin } from '../secure-portal/okta/Okta.hooks';\nimport JiraEmailLogin from './JiraEmailLogin';\nimport { User } from '../user/User.interface';\nimport { useRemoveJiraWidget } from '../common/useRemoveJiraWidget';\n\nconst loginSchema = Yup.object().shape({\n email: Yup.string()\n .email('Invalid e-mail address.')\n .required('E-mail address is required.'),\n password: Yup.string().required('Password is required.')\n});\n\nconst Login: React.FC = (props: RouteComponentProps) => {\n useRemoveJiraWidget();\n const containerRef = useRef(null);\n const [errorMessage, setErrorMessage] = useState();\n const [currentUser, setCurrentUser] = useState();\n const [jiraEmail, setJiraEmail] = useState();\n const [requestEmail, setRequestEmail] = useState(false);\n const [selectedAuthMethodId, setSelectedAuthMethodId] = useState(\n authConfig.defaultMethod.id\n );\n const { user, isLoading: isLoadingLogin, error, doLogin } = useLogin();\n const { isLoading: isLoadingGoogleLogin, login: googleLogin } =\n useGoogleLogin();\n const { isLoading: isLoadingOktaLogin, login: oktaLogin } = useOktaLogin();\n const { loginRedirect, didSessionExpire } = useLoginRedirect();\n const isLoading =\n isLoadingLogin || isLoadingGoogleLogin || isLoadingOktaLogin;\n const isGoogleAuth = selectedAuthMethodId === AuthMethodId.Google;\n\n useEffect(() => {\n if (error) {\n setErrorMessage(\n error.message === 'Unauthorized'\n ? 'The Email ID / Password combination is incorrect. Please try again or contact your site administrator'\n : error.message\n );\n }\n if (user) {\n setCurrentUser(user);\n }\n }, [user, error]);\n\n useLayoutEffect(() => {\n // render the button under the .auth-method-area element\n const parent = containerRef.current?.querySelector(\n `.auth-method-list-picker [data-auth-method=\"${AuthMethodId.Google}\"] .auth-method-area`\n );\n if (!parent) {\n return;\n }\n (async () => {\n const googleAuth = await getGoogleAuth();\n googleAuth.renderButton({\n parent,\n onClick: () => {\n setErrorMessage(undefined);\n setSelectedAuthMethodId(AuthMethodId.Google);\n },\n onResponse: async response => {\n const { error } = await googleLogin({ token: response.credential });\n error && setErrorMessage(error.message);\n }\n });\n })();\n }, [googleLogin]);\n\n if (currentUser) {\n if (currentUser && currentUser.roles) {\n if (loginRedirect) {\n return ;\n }\n } else {\n setErrorMessage('You do not have sufficient permissions.');\n }\n }\n\n return (\n \n \n Sierra Labs\n

\n Log In\n

\n {authConfig.multiple && (\n {\n if (!authMethod) {\n return;\n }\n setSelectedAuthMethodId(authMethod.id);\n if (authMethod.id !== selectedAuthMethodId) {\n // remove errors when switching auth methods\n setErrorMessage(undefined);\n }\n }}\n />\n )}\n\n {requestEmail ? (\n \n ) : (\n {\n setErrorMessage(undefined);\n const id = selectedAuthMethodId || authConfig.defaultMethod.id;\n switch (id) {\n case AuthMethodId.Okta: {\n const { error } = await oktaLogin({\n email: form.email,\n password: form.password\n });\n error && setErrorMessage(error.message);\n break;\n }\n default:\n doLogin(form.email, form.password);\n }\n }}\n >\n {({ values, errors, touched, handleChange, handleBlur }) => (\n \n {isGoogleAuth ? (\n \n {isLoading\n ? 'Loading...'\n : 'Select your Google account from the separate window to login.'}\n \n ) : (\n <>\n \n \n \n )}\n\n {didSessionExpire ? (\n

\n {\n 'You were logged out of the QMS due to inactivity. Please log back into the system to resume your work.'\n }\n

\n ) : (\n !isLoading &&\n errorMessage &&

{errorMessage}

\n )}\n {!isGoogleAuth && (\n \n Log In\n \n )}\n \n
\n )}\n \n )}\n\n {requestEmail ? (\n {\n setJiraEmail('');\n setRequestEmail(false);\n }}\n >\n Cancel\n \n ) : (\n \n Forgot Password?\n \n )}\n {\n console.debug(err);\n setErrorMessage(\n 'Error establishing authorization with JIRA, please ensure that the Application Link is properly configured.'\n );\n }}\n />\n {\n console.debug(err);\n if (err?.statusCode === 422 && err?.error === 'No Email Provided') {\n setRequestEmail(true);\n }\n setErrorMessage(err.message);\n }}\n onLogin={user => {\n console.debug(user);\n setCurrentUser(user);\n }}\n />\n
\n
\n );\n};\n\nexport default withRouter(Login);\n","import React from 'react';\nimport { Formik } from 'formik';\nimport { TextField, Button, Link } from '@material-ui/core';\nimport * as Yup from 'yup';\n\nimport * as Styled from './Login.styled';\nimport logo from '../assets/logo';\nimport { usePasswordRecover, PasswordRecoverRequest } from '../user/User.hooks';\nimport { useRemoveJiraWidget } from '../common/useRemoveJiraWidget';\n\nconst validationSchema = Yup.object().shape({\n email: Yup.string()\n .email('Invalid e-mail address.')\n .required('E-mail address is required.')\n});\n\nexport const PasswordRecover: React.FC = () => {\n useRemoveJiraWidget();\n const { success, isLoading, error, doPasswordRecover } = usePasswordRecover();\n let errorMessage = error\n ? 'Unable to send reset password. Please double check your credentials.'\n : undefined;\n\n const handleSubmit = (form: PasswordRecoverRequest) => {\n errorMessage = undefined;\n doPasswordRecover(form.email);\n };\n\n return (\n \n \n Sierra Labs\n

\n {success ? 'Check your Email' : 'Password Recover'}\n

\n\n {!success && (\n \n {({ values, errors, touched, handleChange, handleBlur }) => (\n \n \n\n {!isLoading && error &&

{errorMessage}

}\n\n \n Reset via Email\n \n
\n )}\n \n )}\n\n {success && (\n \n We've sent you an email. Click the link in the email to reset your\n password.\n \n )}\n\n \n Back to Login\n \n
\n
\n );\n};\n\nexport default PasswordRecover;\n","import React, { useEffect, useRef } from 'react';\nimport { withRouter } from 'react-router-dom';\nimport { RouteComponentProps } from 'react-router';\nimport { Formik } from 'formik';\nimport { TextField, Button, Link } from '@material-ui/core';\nimport * as Yup from 'yup';\n\nimport * as Styled from './Login.styled';\nimport logo from '../assets/logo';\nimport { usePasswordReset } from '../user/User.hooks';\nimport { useRemoveJiraWidget } from '../common/useRemoveJiraWidget';\n\nconst passwordMinLength = 8;\nconst passwordRegex: RegExp = /^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*$/;\nconst passwordRegexErrorMessage =\n 'Need at least an uppercase and a lowercase letter, and a number.';\nconst invalidTokenError =\n 'Password reset token is missing, invalid or has expired.';\ninterface PasswordResetForm {\n password: string;\n passwordConfirmation: string;\n}\n\nconst validationSchema = Yup.object().shape({\n password: Yup.string()\n .required('Password is required.')\n .matches(passwordRegex, passwordRegexErrorMessage)\n .min(passwordMinLength, `Minimum ${passwordMinLength} characters.`),\n passwordConfirmation: Yup.string()\n .required('Password confirmation is required.')\n .oneOf([Yup.ref('password'), null], 'Passwords must match.')\n});\n\nconst hasErrors = (values: PasswordResetForm): boolean => {\n try {\n validationSchema.validateSync(values);\n return false;\n } catch (_) {\n return true;\n }\n};\n\ntype PasswordResetQueryParams = {\n token?: string;\n};\n\nexport type PasswordResetProps = RouteComponentProps;\n\nconst PasswordReset: React.FC = (\n props: PasswordResetProps\n) => {\n useRemoveJiraWidget();\n const { location } = props;\n const {\n user,\n success,\n isLoading,\n error,\n verifyError,\n doPasswordReset,\n doVerifyResetToken\n } = usePasswordReset();\n const tokenRef = useRef(undefined);\n\n useEffect(() => {\n // get token from query\n const params = new URLSearchParams(location.search);\n const token: string | null = params.get('token');\n tokenRef.current = token || undefined;\n doVerifyResetToken(token || '');\n }, [doVerifyResetToken, location.key, location.search]);\n\n let errorMessage: string | undefined = undefined;\n if (error) errorMessage = 'Unable to reset password.';\n else if (verifyError) errorMessage = invalidTokenError;\n\n const handleSubmit = (form: PasswordResetForm) => {\n const token = tokenRef.current;\n errorMessage = token ? undefined : 'No reset token found.';\n token && doPasswordReset(form.password, token);\n };\n\n let title: string = 'Verifying reset token...';\n if (user) title = 'Password Reset';\n else if (verifyError) title = 'Invalid token';\n\n return (\n \n \n Sierra Labs\n

\n {title}\n

\n\n {user && !success && (\n \n {({ values, errors, touched, handleChange, handleBlur }) => (\n \n \n\n \n\n {!isLoading && error &&

{errorMessage}

}\n\n \n Submit\n \n
\n )}\n \n )}\n\n {!isLoading && verifyError &&

{errorMessage}

}\n\n {success && (\n \n
Password reset successful!
\n
You can now proceed to the login page to sign in.
\n
\n )}\n\n \n {success ? 'Proceed to Login' : 'Back to Login'}\n \n
\n
\n );\n};\n\nexport default withRouter(PasswordReset);\n","import React from 'react';\n\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Typography\n} from '@material-ui/core';\n\nexport interface ConfirmDialogProps {\n title: string;\n message: React.ReactNode;\n cancelLabel?: string;\n confirmLabel?: string;\n open: boolean;\n onCancel?: () => void;\n onConfirm?: () => void;\n}\n\nconst ConfirmDialog: React.FC = ({\n title,\n message,\n cancelLabel,\n confirmLabel,\n open,\n onCancel,\n onConfirm\n}) => {\n return (\n \n {title}\n \n {typeof message === 'string' ? (\n {message}\n ) : (\n message\n )}\n \n \n \n \n \n \n );\n};\n\nexport default ConfirmDialog;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { alpha, Button, Typography } from '@material-ui/core';\n\nimport { useTimeout } from '../timeout.hook';\n\nexport const StyledDragArea = styled.div`\n position: relative;\n border-radius: 2px;\n border: 3px dashed ${props => alpha(props.theme.palette.primary.main, 0)};\n transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1),\n border 300ms cubic-bezier(0.075, 0.82, 0.165, 1);\n &.dragging {\n border: 3px dashed ${props => props.theme.palette.primary.main};\n background-color: ${props => alpha(props.theme.palette.primary.main, 0.12)};\n .drag-empty-container {\n border: 1px solid ${props => alpha(props.theme.palette.divider, 0)};\n }\n }\n .hidden {\n display: none;\n }\n .drag-empty-container {\n &:not(.hidden) {\n display: flex;\n }\n padding: 16px;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n border-radius: 2px;\n border: 1px solid ${props => props.theme.palette.divider};\n transition: border 300ms cubic-bezier(0.075, 0.82, 0.165, 1);\n }\n .drag-text,\n .drag-button {\n margin: 10px 0;\n }\n`;\n\nexport interface DragAreaProps {\n dragOver: boolean;\n disabled?: boolean;\n dragLabel?: string;\n buttonLabel?: string;\n className?: string;\n hideArea?: boolean;\n onClick?: () => void;\n onUpload?: (files: FileList | null) => void;\n setDragOver: (dragOver: boolean) => void;\n}\n\nconst DragArea: React.FC = props => {\n const {\n dragOver,\n disabled,\n hideArea,\n className,\n children,\n dragLabel = 'Drag one or more files to upload',\n buttonLabel = 'Select Files',\n onClick,\n onUpload,\n setDragOver\n } = props;\n const [debounceLeave, clearDebouncedLeave] = useTimeout();\n const classes: string[] = [];\n className && classes.push(className);\n dragOver && classes.push('dragging');\n const areaClasses = ['drag-empty-container'];\n hideArea && areaClasses.push('hidden');\n return (\n {\n clearDebouncedLeave();\n if (!disabled) {\n event.preventDefault();\n setDragOver(true);\n }\n }}\n onDragLeave={() => {\n // delay set to false to avoid the area from flickering\n debounceLeave(() => {\n !disabled && setDragOver(false);\n }, 50);\n }}\n onDrop={event => {\n clearDebouncedLeave();\n if (!disabled) {\n event.preventDefault();\n setDragOver(false);\n onUpload?.(event.dataTransfer.files);\n }\n }}\n >\n
\n \n {dragLabel}\n \n \n -- or --\n \n \n {buttonLabel}\n \n
\n {children}\n \n );\n};\n\nexport default DragArea;\n","import React, { useState, useEffect } from 'react';\nimport { Snackbar } from '@material-ui/core';\nimport MuiAlert from '@material-ui/lab/Alert';\n\nexport interface AppSnackbarProps {\n severity?: 'error' | 'info' | 'success' | 'warning';\n open: boolean;\n onClose?: () => void;\n}\n\nconst AppSnackbar: React.FC = props => {\n const { open, severity, children, onClose } = props;\n const [openSnackbar, setOpenSnackbar] = useState(open);\n const handleClose = () => {\n setOpenSnackbar(false);\n onClose?.();\n };\n useEffect(() => {\n setOpenSnackbar(open);\n }, [open]);\n return (\n \n \n {children}\n \n \n );\n};\n\nexport default AppSnackbar;\n","import { useCallback, useState } from 'react';\nimport { saveAs } from 'file-saver';\nimport { FetchError, FetchRequest } from './api/api';\nimport { apiResolve } from './api/apiResolve';\n\nexport function useDownloadBlob(response: Response | undefined) {\n const [blob, setBlob] = useState();\n\n const downloadDocument = useCallback(\n async (fileName: string) => {\n if (!response) {\n return;\n }\n let blobToSave: Blob | undefined = blob;\n if (!blob) {\n blobToSave = await response.blob();\n setBlob(blobToSave);\n }\n blobToSave && saveAs(blobToSave, fileName);\n },\n [blob, response]\n );\n\n return { blob, setBlob, downloadDocument };\n}\n\n// download blob using `apiResolve` to avoid useEffect workaround\n\nexport interface DownloadRequestOptions {\n // use existing request and get response (e.g. `api.post(...)`)\n request?: FetchRequest;\n // use existing response (can come from a fetch hook)\n response?: Response;\n}\n\nexport function useDownloadRequest() {\n const [error, setError] = useState();\n const [isLoading, setIsLoading] = useState(false);\n\n const getResponse = useCallback(async (options: DownloadRequestOptions) => {\n // if response was not provided, do request\n const { request, response } = options;\n if (response) {\n return response;\n } else if (!request) {\n return;\n }\n const result = await apiResolve(request, { bodyParse: false });\n if (result.error) {\n setError(result.error);\n }\n return result.response;\n }, []);\n\n const download = useCallback(\n async (fileName: string, options: DownloadRequestOptions) => {\n try {\n setError(undefined);\n setIsLoading(true);\n const response = await getResponse(options);\n // download blob here instead of inside useEffect\n if (response?.ok && !response.bodyUsed) {\n saveAs(await response.blob(), fileName);\n return true;\n }\n } catch (error) {\n setError({\n statusCode: 400,\n error: error instanceof Error ? error.name : 'Error',\n message:\n error instanceof Error\n ? error.message\n : 'An error occurred while downloading the file.'\n });\n } finally {\n setIsLoading(false);\n }\n return false;\n },\n [getResponse]\n );\n\n return { isLoading, error, download };\n}\n","import styled from 'styled-components';\nimport { TableCell } from '@material-ui/core';\n\nexport const WrappedTableCell = styled(TableCell)`\n white-space: normal;\n word-wrap: break-word;\n text-overflow: ellipsis;\n\n .truncate {\n min-width: 150px;\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n`;\n\nexport default WrappedTableCell;\n","import { User } from '../../user/User.interface';\n\n// targetEntities taken from /migration/1621462509891-TaskTypeTargetEntity.ts\nexport enum TaskTypeEntity {\n Training = 'Training',\n Risk = 'Risk',\n File = 'File',\n Capa = 'Capa',\n Supplier = 'Supplier',\n Scar = 'SupplierCorrectiveAction',\n Spor = 'SupplierPurchaseOrder',\n Product = 'Product',\n UserNeed = 'ProductUserNeed',\n DesignInput = 'ProductDesignInput',\n DesignOutput = 'ProductDesignOutput',\n DesignVerification = 'ProductVerification',\n DesignValidation = 'ProductValidation',\n DesignSpec = 'ProductDesignSpec',\n Hazard = 'Hazard',\n Cause = 'HazardCause',\n Control = 'HazardControl',\n Action = 'HazardAction',\n ChangeOrder = 'ChangeOrder'\n}\n\nexport interface TaskType {\n name: string;\n label: string;\n prefix?: string;\n targetEntity?: TaskTypeEntity | string;\n created?: Date;\n createdBy?: User;\n modified?: Date;\n modifiedBy?: User;\n}\n\nexport interface TaskTypeListItem {\n id: number | string;\n apiLevel: 1 | 2;\n name: string;\n label: string;\n prefix: string;\n entity: string;\n entityId: string | null;\n entityTable: string | null;\n modified: Date;\n modifiedBy: User;\n}\n","import React, {\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport {\n Box,\n Button,\n Collapse,\n Dialog,\n DialogActions,\n DialogTitle,\n LinearProgress\n} from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\n\nimport { FetchError } from '../../../../common/api/api';\nimport { FileDto } from '../../Document.interface';\nimport {\n DocumentFolderUploadExists,\n DocumentFolderUploadInput,\n DocumentFolderUploadList,\n FileUploadManager,\n FileUploadProgress,\n useFileUploadManager\n} from '.';\n\nexport interface DocumentFolderUploadComponentProps {\n folderName?: string;\n parentFolder?: FileDto;\n content?: React.ReactNode;\n actions?: React.ReactNode;\n onLoad?: (isLoading: boolean) => void;\n onError?: (error: FetchError) => void;\n onSelect?: (folder: FileDto | undefined, flag: boolean) => void;\n}\n\nexport interface DocumentFolderUploadProps {\n parentFolder?: FileDto;\n asMultipleFiles?: boolean;\n folderInputRef?: React.MutableRefObject;\n onCreateFolder?: (folder: FileDto) => void;\n onDismiss?: (progress: FileUploadProgress, folder?: FileDto) => void;\n}\n\nexport const DocumentFolderUpload: React.FC = (\n props: DocumentFolderUploadProps\n) => {\n const {\n parentFolder,\n asMultipleFiles = false,\n folderInputRef: folderInputRefProp,\n onDismiss,\n onCreateFolder\n } = props;\n const folderInputRef = useRef(null);\n const cancelCallbackRef = useRef<(() => void) | undefined>();\n const [open, setOpen] = useState(false);\n const [error, setError] = useState();\n const [folder, setFolder] = useState();\n const [didFind, setDidFind] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const [folderExists, setFolderExists] = useState(false);\n const manager: FileUploadManager = useFileUploadManager();\n\n const folderName: string | undefined = useMemo(() => {\n const { files } = manager;\n if (!(files.length > 0)) {\n return;\n }\n const path: string = (files[0] as any).webkitRelativePath || '';\n const index: number = path.indexOf('/');\n return index > -1 ? path.slice(0, index) : '';\n }, [manager]);\n\n const dismiss = () => {\n cancelCallbackRef.current?.();\n setOpen(false);\n onDismiss?.(manager.progress, folder);\n };\n\n useLayoutEffect(() => {\n const el: any = folderInputRef.current;\n if (el) {\n (el as any).directory = !asMultipleFiles;\n (el as any).webkitdirectory = !asMultipleFiles;\n }\n }, [asMultipleFiles]);\n\n useEffect(() => {\n setOpen(manager.items.length > 0);\n }, [manager]);\n\n // clear state\n useEffect(() => {\n if (!open) {\n manager.clear();\n setFolder(undefined);\n setError(undefined);\n setDidFind(false);\n setIsLoading(false);\n setFolderExists(false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n\n const dismissButton: React.ReactNode = (\n \n );\n\n const errorAlert: React.ReactNode = (\n \n \n {error?.message || 'An error occurred.'}\n \n \n );\n\n return (\n <>\n {\n folderInputRef.current = ref;\n if (folderInputRefProp) {\n folderInputRefProp.current = ref;\n }\n }}\n onChange={(event: React.ChangeEvent) => {\n const { files } = event.target;\n if (files && files.length > 0) {\n manager.add(Array.from(files));\n }\n // clear value\n if (folderInputRef.current) {\n folderInputRef.current.value = '';\n }\n }}\n />\n\n \n {isLoading && }\n Document Upload\n {open && !didFind && !folder && (\n {\n setDidFind(true);\n setFolder(folder);\n setFolderExists(folderExists);\n }}\n />\n )}\n {didFind && !folder && (\n {\n setError(undefined);\n setFolder(folder);\n if (folder && created) {\n onCreateFolder?.(folder);\n }\n }}\n />\n )}\n {folder && (\n <>\n {\n cancelCallbackRef.current = cancelAll;\n return (\n <>\n {errorAlert}\n \n 0}\n >\n Dismiss\n \n {uploadAllButton}\n \n \n );\n }}\n />\n \n )}\n \n \n );\n};\n\nexport default DocumentFolderUpload;\n","import React, { useEffect } from 'react';\nimport {\n Box,\n Button,\n Collapse,\n DialogActions,\n DialogContent,\n DialogContentText\n} from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\n\nimport { useGetFolderByName } from '../../Document.hook';\nimport { DocumentFolderUploadComponentProps } from './DocumentFolderUpload';\n\nexport const DocumentFolderUploadExists: React.FC = (\n props: DocumentFolderUploadComponentProps\n) => {\n const {\n content,\n actions,\n folderName,\n parentFolder,\n onLoad,\n onError,\n onSelect\n } = props;\n const [{ data, isLoading, error }, getFolder] = useGetFolderByName();\n const parentPath: string | undefined = parentFolder?.path;\n\n useEffect(() => {\n onLoad?.(isLoading);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isLoading]);\n\n useEffect(() => {\n if (folderName) {\n getFolder(folderName, parentPath);\n } else {\n onSelect?.(undefined, false);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [parentPath, folderName, getFolder]);\n\n useEffect(() => {\n if (!error) {\n return;\n }\n // if no folder found, handle select\n if (error.statusCode === 404) {\n onSelect?.(undefined, false);\n } else {\n onError?.(error);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n return (\n <>\n \n \n Checking for existing folder...\n \n \n \n \n \n Folder {data?.name || '?'} already exists. Upload\n to existing folder or create a new folder.\n \n \n \n {content}\n \n {actions}\n onSelect?.(undefined, !!data)}\n >\n Create New Folder\n \n onSelect?.(data, true)}\n >\n Upload to Existing\n \n \n \n );\n};\n\nexport default DocumentFolderUploadExists;\n","import React, { useCallback, useEffect, useRef } from 'react';\nimport { Form, Formik, FormikHelpers } from 'formik';\nimport * as Yup from 'yup';\nimport { Button, DialogActions, DialogContent } from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\n\nimport FormikGrid from '../../../../common/formik/FormikGrid';\nimport FormikButton from '../../../../common/formik/FormikButton';\nimport FormikTextField from '../../../../common/formik/FormikTextField';\nimport { FileDto } from '../../Document.interface';\nimport { useCreateDocumentFolder } from '../../Document.hook';\nimport { DocumentFolderUploadComponentProps } from './DocumentFolderUpload';\n\nexport interface DocumentFolderUploadInputProps\n extends DocumentFolderUploadComponentProps {\n createOnMount?: boolean;\n}\n\nexport const DocumentFolderUploadInput: React.FC = (\n props: DocumentFolderUploadInputProps\n) => {\n const {\n content,\n actions,\n folderName,\n parentFolder,\n createOnMount = false,\n onLoad,\n onError,\n onSelect\n } = props;\n const formikRef = useRef>>();\n const [{ data, isLoading, error }, createFolder] = useCreateDocumentFolder();\n const isParentRoot: boolean = !parentFolder?.id;\n const parentId: number | undefined = parentFolder?.id || undefined;\n\n const doCreateFolder = useCallback(\n (folderName: string) => createFolder({ name: folderName, parentId }),\n [parentId, createFolder]\n );\n\n useEffect(() => {\n formikRef.current?.setSubmitting(isLoading);\n onLoad?.(isLoading);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isLoading]);\n\n useEffect(() => {\n // attempt to create folder if name is available\n if (folderName && createOnMount) {\n doCreateFolder(folderName);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [folderName, doCreateFolder]);\n\n useEffect(() => {\n if (data) {\n onSelect?.(data, true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data]);\n\n useEffect(() => {\n if (error) {\n onError?.(error);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n return (\n (formikRef.current = formik)}\n initialValues={{ name: folderName || '' }}\n validationSchema={Yup.object({\n name: Yup.string().required('Folder name is required.')\n })}\n onSubmit={({ name }) => doCreateFolder(name)}\n >\n
\n \n \n \n \n \n {!folderName && 'No folder name detected.'} Specify the name of the\n folder or upload files to the{' '}\n {isParentRoot ? (\n <>\n root folder.\n \n ) : (\n <>\n current folder {parentFolder?.name || '?'}.\n \n )}\n \n \n {content}\n \n {actions}\n onSelect?.(parentFolder, false)}\n >\n Upload to {isParentRoot ? 'root' : 'current'} Folder\n \n Create Folder\n \n
\n \n );\n};\n\nexport default DocumentFolderUploadInput;\n","import React, { Fragment, useMemo } from 'react';\nimport styled from 'styled-components';\nimport {\n Collapse,\n IconButton,\n TableCell,\n TableRow,\n TableRowProps\n} from '@material-ui/core';\nimport {\n ArrowDropDown as ArrowDropDownIcon,\n ArrowRight as ArrowRightIcon\n} from '@material-ui/icons';\n\nconst StyledTableRow = styled(TableRow)`\n transition: background-color 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);\n &.open {\n background-color: #f7f8fc;\n }\n &:not(.open) .MuiTableCell-root {\n border-bottom: unset;\n }\n .actions {\n padding: 2px;\n }\n`;\n\nexport interface CollapsibleRowProps {\n open?: boolean;\n colSpan?: number;\n disabled?: boolean;\n hideAction?: boolean;\n className?: string;\n icon?: JSX.Element;\n children?: React.ReactNode;\n collapsedContent?: React.ReactNode;\n rowProps?: TableRowProps;\n collapsedRowProps?: TableRowProps;\n onIconClick?: () => void;\n}\n\nconst CollapsibleRow: React.FC = (\n props: CollapsibleRowProps\n) => {\n const {\n open = false,\n disabled = false,\n hideAction = false,\n icon,\n colSpan,\n children,\n collapsedContent,\n rowProps,\n collapsedRowProps,\n className: classNameProp,\n onIconClick\n } = props;\n const rowClassName: string | undefined = rowProps?.className;\n\n const className: string = useMemo(() => {\n const classes: string[] = [];\n open && classes.push('open');\n rowClassName && classes.push(rowClassName);\n classNameProp && classes.push(classNameProp);\n return classes.join(' ');\n }, [open, rowClassName, classNameProp]);\n\n return (\n \n \n {!hideAction && (\n \n {\n event.stopPropagation();\n onIconClick?.();\n }}\n >\n {icon ? icon : open ? : }\n \n \n )}\n {children}\n \n \n \n {collapsedContent}\n \n \n \n );\n};\n\nexport default CollapsibleRow;\n","import { useCallback } from 'react';\nimport { ApiResult, useApiGet } from '@sierralabs/react-material-ui';\n\nimport {\n FetchApiCallback,\n useApiDelete,\n useApiPatch,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { TaskType, TaskTypeListItem } from './TaskType.interface';\n\nexport function useGetTaskTypes(): [\n ApiResult,\n (filter?: Partial) => void\n] {\n const { data, isLoading, error, get } = useApiGet('task-type');\n const getTaskTypes = useCallback(\n (filter?: Partial) => get(filter),\n [get]\n );\n return [{ data, isLoading, error }, getTaskTypes];\n}\n\nexport function useFindTaskTypes(): [\n ApiResult,\n (query?: string, loadRelations?: boolean) => void\n] {\n const { data, isLoading, error, get } =\n useApiGet('task-type/search');\n const findTaskTypes = useCallback(\n (query, loadRelations) =>\n get({ query: query || '', loadRelations: !!loadRelations }),\n [get]\n );\n return [{ data, isLoading, error }, findTaskTypes];\n}\n\nexport function useFindTaskTypeList(): [\n ApiResult>,\n FetchApiCallback\n] {\n const { get, ...result } =\n useApiGet>('task-type/list');\n return [result, get];\n}\n\nexport function useFindTaskTypeEntities(): [\n ApiResult,\n FetchApiCallback\n] {\n const { get, ...result } = useApiGet('task-type/entities');\n return [result, get];\n}\n\nexport function useCreateTaskType(): [\n ApiResult,\n (dto: Partial) => void\n] {\n const { post, ...result } = useApiPost('task-type');\n const createTaskType = useCallback(\n (dto: Partial) => {\n post(dto);\n },\n [post]\n );\n return [result, createTaskType];\n}\n\nexport function useUpdateTaskType(): [\n ApiResult,\n (dto: Partial) => void\n] {\n const { patch, ...result } = useApiPatch('task-type');\n const updateTaskType = useCallback(\n (dto: Partial) => {\n patch(dto);\n },\n [patch]\n );\n return [result, updateTaskType];\n}\n\nexport function useDeleteTaskType(\n name: string\n): [ApiResult, FetchApiCallback] {\n const { del, ...result } = useApiDelete(`task-type/${name}`);\n return [result, del];\n}\n","import React, { useEffect, useMemo, useState } from 'react';\nimport { TextField, TextFieldProps } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { useGetTaskTypes } from '../TaskType.hooks';\nimport { TaskType } from '../TaskType.interface';\n\nfunction compareNames(\n name: string,\n value: string | string[] | undefined\n): boolean {\n return Array.isArray(value) ? value.includes(name) : name === value;\n}\n\nexport interface TaskTypeSingleSelectorProps {\n value?: string;\n multiple?: false;\n disabled?: boolean;\n isLoading?: boolean;\n errorMessage?: string;\n filter?: Partial;\n options?: TaskType[];\n textFieldProps?: Omit;\n onChange?: (taskType: TaskType | null) => void;\n}\n\nexport interface TaskTypeMultipleSelectorProps {\n value?: string[];\n multiple: boolean;\n disabled?: boolean;\n isLoading?: boolean;\n errorMessage?: string;\n filter?: Partial;\n options?: TaskType[];\n textFieldProps?: Omit;\n onChange?: (taskTypes: TaskType[] | null) => void;\n}\n\nexport type TaskTypeSelectorProps =\n | TaskTypeSingleSelectorProps\n | TaskTypeMultipleSelectorProps;\n\nconst TaskTypeSelector: React.FC = (\n props: TaskTypeSelectorProps\n) => {\n const {\n value: entityName,\n multiple = false,\n filter,\n options,\n disabled,\n errorMessage,\n textFieldProps,\n isLoading: isLoadingProp = false,\n onChange\n } = props;\n const [taskTypeOptions, setTaskTypeOptions] = useState([]);\n const [{ data, isLoading: isFinding, error }, findTaskTypes] =\n useGetTaskTypes();\n const isLoading: boolean = isFinding || isLoadingProp;\n\n useEffect(() => {\n // no fetch if options exist\n !options && findTaskTypes(filter);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [options, findTaskTypes]);\n\n useEffect(() => {\n data && setTaskTypeOptions(data);\n }, [data]);\n\n useEffect(() => {\n options && setTaskTypeOptions(options);\n }, [options]);\n\n const taskType: TaskType | TaskType[] | null = useMemo(() => {\n const taskTypes: TaskType[] = taskTypeOptions.filter((option: TaskType) => {\n return compareNames(option.name, entityName);\n });\n return multiple ? taskTypes : taskTypes.shift() || null;\n }, [entityName, taskTypeOptions, multiple]);\n\n return (\n {\n return `${option.label} (${option.prefix})`;\n }}\n getOptionSelected={(option: TaskType) =>\n compareNames(option.name, entityName)\n }\n onChange={(_event: React.ChangeEvent<{}>, value) =>\n onChange?.(value as any)\n }\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default TaskTypeSelector;\n","import { useState } from 'react';\nimport { FetchError } from '@sierralabs/react-material-ui';\n\nimport api, { ApiParams, FetchRequest } from '../../../../common/api/api';\nimport { apiResolve, RequestResult } from '../../../../common/api/apiResolve';\nimport { PresignedUrl, FileDto, CreateFileDto } from '../../Document.interface';\n\nexport function createFile(dto: CreateFileDto) {\n const request = api.post('files', dto);\n return { request, result: apiResolve(request) };\n}\n\nexport function getPresignedUrl(\n folderPath: string,\n mimeType: string,\n token?: string\n) {\n const accessToken = api.getAccessToken();\n // use token to check if guest, endpoint is used for\n // Supplier form uploads that have no cookie access token\n const guest = !accessToken && token ? '/guest' : '';\n const params: ApiParams = { folderPath, mimeType };\n if (!accessToken && token) {\n params.token = token;\n }\n const request = api.get('files/presign' + guest, params);\n return { request, result: apiResolve(request) };\n}\n\nexport type FileUploadStatus =\n | 'init'\n | 'loading'\n | 'uploading'\n | 'creating'\n | 'cancelled'\n | 'uploaded'\n | 'created'\n | 'presignError'\n | 'uploadError'\n | 'createError';\n\nexport interface FileUploaderItem {\n file: File;\n progress: number;\n status: FileUploadStatus;\n presignedUrl?: PresignedUrl;\n response?: Response; // upload response\n fileDto?: FileDto;\n error?: FetchError;\n abort?: () => void;\n}\n\nexport type CreateDtoCallback = (\n file: File,\n presignedUrl: PresignedUrl\n) => CreateFileDto;\n\nexport interface FileUploader {\n items: FileUploaderItem[];\n clear: (skipCreated?: boolean) => void;\n cancel: (file: File) => void;\n find: (file: File) => FileUploaderItem | undefined;\n isUploaded: (file: File) => boolean;\n isUploading: (status: FileUploadStatus) => boolean;\n remove: (file: File) => void;\n upload: (files: File[], createDto?: CreateDtoCallback) => void;\n uploadAsync: (\n files: File[],\n createDto?: CreateDtoCallback\n ) => Promise[]>;\n}\n\nexport interface FileUploaderOptions {\n getPresignedUrl: (fileType: string) => {\n request: FetchRequest;\n result: Promise>;\n };\n createFile?: (dto: CreateFileDto) => {\n request: FetchRequest;\n result: Promise>;\n };\n onUpdate?: () => void;\n}\n\n// non-hook implementation\n// upload and create multiple files\nexport function createFileUploader(\n props: FileUploaderOptions\n): FileUploader {\n type Item = FileUploaderItem;\n const { createFile, getPresignedUrl, onUpdate } = props;\n const items: Item[] = [];\n\n const updateState = (\n file: File,\n value: Partial | ((item: Item) => Partial)\n ) => {\n const index = items.findIndex(item => item.file === file);\n if (index < 0) {\n return items;\n }\n const item = items[index];\n const newValue = typeof value === 'function' ? value(item) : value;\n Object.assign(item, newValue);\n onUpdate?.();\n };\n\n const handlePresign = async (file: File) => {\n updateState(file, { status: 'loading' });\n const { request, result } = getPresignedUrl(file.type);\n updateState(file, { abort: () => request.abort() });\n const presign = await result;\n updateState(\n file,\n presign.data\n ? { progress: 1, presignedUrl: presign.data, abort: undefined }\n : { status: 'presignError', error: presign.error, abort: undefined }\n );\n return presign.data;\n };\n\n const handleUpload = (file: File, presignedUrl: PresignedUrl) => {\n const request = new XMLHttpRequest();\n updateState(file, { abort: () => request.abort() });\n return new Promise(resolve => {\n let type: 'abort' | 'error' | 'load' = 'error';\n const done = () => {\n const item: Partial =\n type === 'load'\n ? { progress: 100, status: 'uploaded', response: request.response }\n : type === 'abort'\n ? { progress: 0, error: undefined, status: 'cancelled' }\n : {\n status: 'uploadError',\n error: {\n statusCode: 500,\n error: 'Upload Error',\n message: 'An error occurred while uploading the file.'\n }\n };\n updateState(file, item);\n resolve(type === 'load');\n };\n\n const handleErrorEvent = () => (type = 'error');\n const handleAbortEvent = () => (type = 'abort');\n const handleLoadEvent = () => (type = 'load');\n request.addEventListener('error', handleErrorEvent);\n request.upload.addEventListener('error', handleErrorEvent);\n request.addEventListener('timeout', handleErrorEvent);\n request.upload.addEventListener('timeout', handleErrorEvent);\n request.addEventListener('abort', handleAbortEvent);\n request.upload.addEventListener('abort', handleAbortEvent);\n request.addEventListener('load', handleLoadEvent);\n // note that for request errors, request.upload 'load' event is\n // also triggered just before request 'error' event is triggered\n request.upload.addEventListener('load', handleLoadEvent);\n request.addEventListener('loadend', done);\n request.upload.addEventListener('progress', e => {\n if (e.lengthComputable) {\n updateState(file, {\n status: 'uploading',\n progress: (e.loaded / e.total) * 100\n });\n }\n });\n request.open('PUT', presignedUrl.signedUrl);\n // request.timeout = 5000;\n request.setRequestHeader('Content-Type', file.type);\n request.responseType = 'text';\n request.send(file);\n });\n };\n\n // create file dto\n const handleCreate = async (file: File, dto: CreateFileDto) => {\n if (!createFile) {\n return;\n }\n updateState(file, { status: 'creating' });\n const { request, result } = createFile(dto);\n updateState(file, { abort: () => request.abort() });\n const { data, error } = await result;\n updateState(\n file,\n data\n ? { fileDto: data, status: 'created', abort: undefined }\n : { error, status: 'createError', abort: undefined }\n );\n };\n\n // handle presigned url, upload, and create file\n const handleFile = async (\n file: File,\n createDto?: CreateDtoCallback\n ) => {\n const presignedUrl = await handlePresign(file);\n if (!presignedUrl) {\n return;\n }\n const didUpload = await handleUpload(file, presignedUrl);\n if (didUpload && createDto) {\n const dto = createDto(file, presignedUrl);\n await handleCreate(file, dto);\n }\n };\n\n const upload = (\n files: File[],\n createDto?: CreateDtoCallback\n ) => {\n const newItems: FileUploaderItem[] = [];\n for (const file of files) {\n // filter existing files\n if (!items.some(item => item.file === file)) {\n newItems.push({ file, status: 'init', progress: 0 });\n }\n }\n items.push(...newItems);\n onUpdate?.();\n newItems.forEach(item => handleFile(item.file, createDto));\n };\n\n const uploadAsync = async (\n files: File[],\n createDto?: CreateDtoCallback\n ) => {\n const newItems: FileUploaderItem[] = [];\n for (const file of files) {\n // filter existing files\n if (!items.some(item => item.file === file)) {\n newItems.push({ file, status: 'init', progress: 0 });\n }\n }\n items.push(...newItems);\n onUpdate?.();\n for (const item of newItems) {\n await handleFile(item.file, createDto);\n }\n return newItems;\n };\n\n const cancel = (file: File) => {\n updateState(file, item => {\n item.abort?.();\n return { progress: 0, error: undefined, status: 'cancelled' };\n });\n };\n\n const remove = (file: File) => {\n const index = items.findIndex(item => item.file === file);\n if (index < 0) {\n return;\n }\n const item = items[index];\n item.abort?.();\n items.splice(index, 1);\n onUpdate?.();\n };\n\n const clear = (skipCreated = false) => {\n const filtered = items.filter(item => {\n if (skipCreated && item.fileDto) {\n return true;\n }\n item.abort?.();\n return false;\n });\n items.splice(0, items.length, ...filtered);\n onUpdate?.();\n };\n\n const isUploaded = (file: File) => {\n return items.some(item => {\n return (\n item.file === file && ['created', 'uploaded'].includes(item.status)\n );\n });\n };\n\n const isUploading = (status: FileUploadStatus) => {\n const match: FileUploadStatus[] = ['loading', 'uploading', 'creating'];\n return match.includes(status);\n };\n\n const find = (file: File) => items.find(item => item.file === file);\n\n const uploader: FileUploader = {\n items,\n cancel,\n clear,\n find,\n isUploaded,\n isUploading,\n remove,\n upload,\n uploadAsync\n };\n\n return uploader;\n}\n\nexport function useFileUploader(folderPath = 'documents', token?: string) {\n const [uploader, setUploader] = useState(() => {\n return createFileUploader({\n createFile: dto => createFile(dto),\n getPresignedUrl: fileType => getPresignedUrl(folderPath, fileType, token),\n // update state to re-render components when `uploader.items` get updated\n onUpdate: () => setUploader(uploader => ({ ...uploader }))\n });\n });\n return uploader;\n}\n","import React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n CircularProgress,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Tooltip\n} from '@material-ui/core';\nimport { Alert, AlertTitle, Color } from '@material-ui/lab';\nimport {\n CheckCircleOutline as CheckCircleOutlineIcon,\n Close as CloseIcon,\n CloudUploadOutlined as CloudUploadOutlinedIcon,\n ErrorOutline as ErrorOutlineIcon,\n Warning as WarningIcon\n} from '@material-ui/icons';\n\nimport { FetchError } from '../../../../common/api/api';\nimport CollapsibleRow from '../../../../common/CollapsibleRow';\nimport WrappedTableCell from '../../../../common/WrappedTableCell';\nimport ConfirmDialog from '../../../../common/dialogs/ConfirmDialog';\nimport { useGetTaskTypes } from '../../../task-types/TaskType.hooks';\nimport {\n TaskType,\n TaskTypeEntity\n} from '../../../task-types/TaskType.interface';\nimport TaskTypeSelector, {\n TaskTypeSelectorProps\n} from '../../../task-types/components/TaskTypeSelector';\nimport {\n FileDto,\n ReferenceData,\n ReferenceMetadata\n} from '../../Document.interface';\nimport {\n FileUploadItem,\n FileUploadManager,\n FileUploadProgress\n} from './DocumentFolderUpload.hooks';\nimport { FileUploader, useFileUploader } from './useFileUploader';\n\nconst StyledBox = styled(Box)`\n .inline-icon {\n vertical-align: middle;\n margin-left: 4px;\n margin-right: 4px;\n }\n`;\n\nconst StyledCollapsibleRow = styled(CollapsibleRow)`\n .secondary {\n color: ${props => props.theme.palette.action.active};\n }\n .success-icon {\n color: ${props => props.theme.palette.success.main};\n }\n .error-icon {\n color: ${props => props.theme.palette.error.main};\n }\n .warning-icon {\n color: ${props => props.theme.palette.warning.main};\n }\n .progress {\n position: relative;\n margin-left: 14px;\n .bg-progress {\n color: ${props => props.theme.palette.primary.light};\n }\n .fg-progress {\n position: absolute;\n left: 0;\n }\n }\n`;\n\nexport interface RenderActionsProps {\n progress: FileUploadProgress;\n uploadAllButton: React.ReactNode;\n cancelAll: () => void;\n uploadAll: () => void;\n}\n\nexport interface DocumentFolderUploadListProps {\n folder: FileDto;\n manager: FileUploadManager;\n referenceData?: ReferenceData;\n referenceTaskId?: number;\n referenceMetadata?: ReferenceMetadata;\n renderActions?: (props: RenderActionsProps) => React.ReactNode;\n}\n\nexport const DocumentFolderUploadList: React.FC<\n DocumentFolderUploadListProps\n> = (props: DocumentFolderUploadListProps) => {\n const {\n folder,\n manager,\n referenceData,\n referenceTaskId,\n referenceMetadata,\n renderActions\n } = props;\n const itemsRef = useRef([]);\n const [removeItem, setRemoveItem] = useState();\n const [selectedId, setSelectedId] = useState();\n const [taskTypes, setTaskTypes] = useState([]);\n const [commonTaskType, setCommonTaskType] = useState();\n const [isUploadingAll, setIsUploadingAll] = useState(false);\n const [{ data, isLoading, error }, findTaskTypes] = useGetTaskTypes();\n const uploader = useFileUploader();\n const { progress } = manager;\n const parentId = !folder.id || folder.id <= 0 ? null : folder.id;\n\n const severity: Color = useMemo(() => {\n const { total, success, error } = progress;\n if (total === success) {\n return 'success';\n } else if (total === error) {\n return 'error';\n } else if (error > 0) {\n return 'warning';\n } else {\n return 'info';\n }\n }, [progress]);\n\n const handleRef = (ref: DocumentFolderUploadItemRef | null, file: File) => {\n const index: number = itemsRef.current.findIndex(\n (item: DocumentFolderUploadItemRef) => item.file === file\n );\n // if ref exists, save if it doesn't exist\n // otherwise, remove it if it exists\n if (ref) {\n if (index === -1) {\n itemsRef.current.push(ref);\n } else {\n itemsRef.current.splice(index, 1, ref);\n }\n } else if (index > -1) {\n itemsRef.current.splice(index, 1);\n }\n };\n\n const cancelAll = useCallback(() => uploader.clear(true), [uploader]);\n\n const uploadAll = useCallback(async () => {\n setIsUploadingAll(true);\n const files = itemsRef.current.map(item => item.file);\n await uploader.uploadAsync(files, (file, presignedUrl) => {\n // assert that taskType exists\n const item = itemsRef.current.find(item => item.file === file);\n return {\n name: file.name,\n size: file.size,\n mimeType: file.type,\n parentId,\n referenceData,\n referenceTaskId,\n referenceMetadata,\n taskTypeName: item?.taskType.name || '',\n storageKey: presignedUrl.storageKey\n };\n });\n setIsUploadingAll(false);\n }, [parentId, referenceTaskId, referenceData, referenceMetadata, uploader]);\n\n useEffect(() => {\n findTaskTypes({ targetEntity: TaskTypeEntity.File });\n }, [findTaskTypes]);\n\n useEffect(() => {\n data && setTaskTypes(data);\n }, [data]);\n\n const uploadAllButton: React.ReactNode = useMemo(() => {\n const { pending } = progress;\n return pending <= 0 ? null : (\n }\n >\n {pending === 1 ? 'Upload File' : `Upload All ${pending} Files`}\n \n );\n }, [isUploadingAll, progress, uploadAll]);\n\n return (\n <>\n \n {\n setCommonTaskType(taskType || undefined);\n }}\n />\n \n\n \n \n \n \n File Name\n Document Type\n Progress\n \n \n \n {manager.items.map((item: FileUploadItem) => (\n {\n setSelectedId(open ? item.id : undefined);\n }}\n onRemove={() => setRemoveItem(item)}\n onError={() => manager.setStatus(item.id, 'error')}\n onCreate={() => manager.setStatus(item.id, 'success')}\n onLoad={(isLoading: boolean) => {\n if (isLoading && item.status === 'pending') {\n manager.setStatus(item.id, 'uploading');\n }\n }}\n onIncomplete={(isIncomplete: boolean) => {\n // set as pending if currently incomplete\n const status: FileUploadItem['status'] | undefined =\n isIncomplete\n ? 'incomplete'\n : item.status === 'incomplete'\n ? 'pending'\n : undefined;\n status && manager.setStatus(item.id, status);\n status === 'pending' && uploader.remove(item.file);\n }}\n innerRef={(ref: DocumentFolderUploadItemRef | null) => {\n handleRef(ref, item.file);\n }}\n />\n ))}\n \n
\n
\n\n \n {progress.total === progress.pending + progress.incomplete ? (\n \n Click on the upload icon{' '}\n {' '}\n to start and confirm the files for uploading.\n \n ) : (\n \n \n Uploading {progress.total} files to{' '}\n {parentId === null ? (\n <>\n the root folder.\n \n ) : (\n <>\n {folder?.name || '?'}.\n \n )}\n \n Progress: {progress.success} uploaded.{' '}\n {progress.error} failed.{' '}\n {progress.uploading} uploading.{' '}\n {progress.pending} pending.{' '}\n {progress.incomplete} incomplete.\n \n )}\n \n\n {renderActions?.({ progress, uploadAllButton, cancelAll, uploadAll })}\n\n setRemoveItem(undefined)}\n onConfirm={() => {\n setRemoveItem(undefined);\n if (removeItem) {\n manager.remove(removeItem.id);\n }\n }}\n />\n \n );\n};\n\nexport default DocumentFolderUploadList;\n\ninterface AlertMessage {\n severity?: Color;\n message: React.ReactNode;\n}\n\nexport interface DocumentFolderUploadItemRef {\n file: File;\n taskType: TaskType;\n}\n\nexport interface DocumentFolderUploadItemProps {\n item: FileUploadItem;\n open: boolean;\n uploader: FileUploader;\n parentId: number | null;\n taskType?: TaskType;\n disabled?: boolean;\n referenceData?: ReferenceData;\n referenceTaskId?: number;\n referenceMetadata?: ReferenceMetadata;\n selectorProps?: Partial;\n innerRef?: React.RefCallback;\n setOpen: (open: boolean) => void;\n onLoad?: (isLoading: boolean) => void;\n onError?: (error: FetchError) => void;\n onCreate?: (file: FileDto) => void;\n onRemove?: () => void;\n onIncomplete?: (isIncomplete: boolean) => void;\n}\n\nexport const DocumentFolderUploadItem: React.FC<\n DocumentFolderUploadItemProps\n> = (props: DocumentFolderUploadItemProps) => {\n const {\n open,\n item,\n uploader,\n parentId,\n disabled = false,\n taskType: commonTaskType,\n referenceData,\n referenceTaskId,\n referenceMetadata,\n selectorProps,\n innerRef,\n setOpen,\n onLoad,\n onError,\n onCreate,\n onRemove,\n onIncomplete\n } = props;\n const { file } = item;\n const [taskType, setTaskType] = useState();\n const [alertMessage, setAlertMessage] = useState();\n const { options: taskTypes, isLoading, errorMessage } = selectorProps || {};\n\n const { uploadItem, isUploading } = useMemo(() => {\n const uploadItem = uploader.find(file);\n const isUploading =\n !!uploadItem &&\n ['loading', 'uploading', 'creating'].includes(uploadItem.status);\n return { uploadItem, isUploading };\n }, [file, uploader]);\n const error = uploadItem?.error;\n const newFile = uploadItem?.fileDto;\n const progress = uploadItem?.progress || 0;\n\n const doUpload = () => {\n if (!taskType) {\n return;\n }\n uploader.upload([file], (file, presignedUrl) => {\n return {\n name: file.name,\n size: file.size,\n mimeType: file.type,\n parentId,\n referenceData,\n referenceTaskId,\n referenceMetadata,\n taskTypeName: taskType.name,\n storageKey: presignedUrl.storageKey\n };\n });\n };\n\n useEffect(() => {\n innerRef?.(taskType ? { file, taskType } : null);\n }, [file, taskType, innerRef]);\n\n // clear innerRef on unmount\n useEffect(() => {\n return () => innerRef?.(null);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // set selected TaskType of parent selector\n useEffect(() => {\n if (!newFile && commonTaskType) {\n setTaskType(commonTaskType);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [commonTaskType]);\n\n useEffect(() => {\n // if no TaskType, set as incomplete\n onIncomplete?.(!taskType);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [taskType]);\n\n useEffect(() => {\n onLoad?.(isUploading);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isUploading]);\n\n useEffect(() => {\n if (newFile) {\n setAlertMessage({\n severity: 'success',\n message: `Document ${newFile.name} created.`\n });\n onCreate?.(newFile);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [newFile]);\n\n useEffect(() => {\n if (error) {\n setAlertMessage({\n severity: 'error',\n message: error.message || 'Unable to upload document.'\n });\n onError?.(error);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n useEffect(() => {\n // reset state when changing back to pending\n if (item.status === 'pending') {\n setAlertMessage(undefined);\n }\n }, [item.status]);\n\n const collapsedContent: React.ReactNode = (\n \n \n {\n setTaskType(taskType || undefined);\n }}\n />\n \n {alertMessage && (\n \n {alertMessage.message}\n \n )}\n \n );\n\n return (\n setOpen(!open) }}\n >\n {file.name}\n \n {taskType\n ? `${taskType.label} (${taskType.prefix})`\n : 'Click to update'}\n \n \n {newFile || error ? (\n {\n event.stopPropagation();\n setOpen(!open);\n }}\n >\n {error ? (\n \n ) : (\n \n )}\n \n ) : !isUploading ? (\n <>\n {!taskType ? (\n \n \n \n \n \n ) : (\n {\n event.stopPropagation();\n doUpload();\n }}\n >\n \n \n )}\n {\n event.stopPropagation();\n onRemove?.();\n }}\n >\n \n \n \n ) : (\n \n \n \n \n )}\n \n \n );\n};\n","import { useMemo, useRef, useState } from 'react';\n\nexport interface FileUploadItem {\n id: string;\n file: File;\n status: 'success' | 'error' | 'uploading' | 'pending' | 'incomplete';\n}\n\nexport interface FileUploadProgress {\n total: number;\n success: number;\n error: number;\n uploading: number;\n pending: number;\n incomplete: number;\n}\n\nexport interface FileUploadManager {\n files: File[];\n items: FileUploadItem[];\n progress: FileUploadProgress;\n add: (files: File[]) => void;\n remove: (id: FileUploadItem['id']) => void;\n clear: () => void;\n setStatus: (\n id: FileUploadItem['id'],\n status: FileUploadItem['status']\n ) => void;\n}\n\nexport interface FileUploadManagerHookProps {\n unique?: boolean;\n includeHiddenFiles?: boolean;\n includeNestedFiles?: boolean;\n}\n\nexport function useFileUploadProgress(\n items: FileUploadItem[]\n): FileUploadProgress {\n return useMemo(() => {\n const progress: FileUploadProgress = {\n success: 0,\n error: 0,\n uploading: 0,\n pending: 0,\n incomplete: 0,\n total: items.length\n };\n return items.reduce(\n (progress: FileUploadProgress, item: FileUploadItem) => {\n progress[item.status]++;\n return progress;\n },\n progress\n );\n }, [items]);\n}\n\nexport function useFileUploadManager(\n props?: FileUploadManagerHookProps\n): FileUploadManager {\n const {\n unique = true,\n includeHiddenFiles = false,\n includeNestedFiles = false\n } = props || {};\n const idRef = useRef(0);\n // save items in itemsRef to handle consecutive updates\n // that need access to the latest items list\n // (e.g. consecutive setStatus calls)\n const itemsRef = useRef([]);\n const [items, setItemsState] = useState([]);\n const progress: FileUploadProgress = useFileUploadProgress(items);\n\n const files: File[] = useMemo(() => {\n return items.map(({ file }) => file);\n }, [items]);\n\n // also set to itemsRef\n const setItems = (items: FileUploadItem[]) => {\n itemsRef.current = items;\n setItemsState(items);\n };\n\n const add = (files: File[]) => {\n files = files.filter((file: File) => {\n const path: string = (file as any).webkitRelativePath || '';\n // exclude hidden files\n if (!includeHiddenFiles && file.name.startsWith('.')) {\n return false;\n }\n // exclude files from subdirectories\n return includeNestedFiles || !path || path.split('/').length <= 2;\n });\n\n const newItems: FileUploadItem[] = files\n .map((file: File) => {\n const fileUnique: string = `${file.name}-${file.size}`;\n const id: string = !unique\n ? `file-${fileUnique}`\n : `file-${idRef.current++}-${fileUnique}`;\n return { id, file, status: 'pending' } as FileUploadItem;\n })\n .filter((newItem: FileUploadItem) => {\n // filter out existing ids\n const existingItem: FileUploadItem | undefined = itemsRef.current.find(\n (item: FileUploadItem) => item.id === newItem.id\n );\n // if reuploading the same file, update the status back to pending\n if (existingItem) {\n existingItem.status = 'pending';\n }\n return !existingItem;\n });\n setItems(itemsRef.current.concat(newItems));\n };\n\n const remove = (id: FileUploadItem['id']) => {\n const index: number = itemsRef.current.findIndex(\n (file: FileUploadItem) => file.id === id\n );\n if (index > -1) {\n const newItems: FileUploadItem[] = [...itemsRef.current];\n newItems.splice(index, 1);\n setItems(newItems);\n }\n };\n\n const clear = () => {\n setItems([]);\n idRef.current = 0;\n };\n\n const setStatus = (\n id: FileUploadItem['id'],\n status: FileUploadItem['status']\n ) => {\n const index: number = itemsRef.current.findIndex(\n (item: FileUploadItem) => item.id === id\n );\n if (index > -1) {\n const newItems: FileUploadItem[] = [...itemsRef.current];\n newItems[index] = { ...newItems[index], status };\n setItems(newItems);\n }\n };\n\n const manager: FileUploadManager = useMemo(() => {\n return { items, files, progress, add, remove, clear, setStatus };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [items, files, progress]);\n\n return manager;\n}\n","import {\n Document,\n DocumentType,\n FileDto,\n FileStatus\n} from './Document.interface';\n\nconst filePathRegex = new RegExp(\n /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^/]+?|)(\\.[^./]*|))(?:[\\\\/]*)$/\n);\nexport interface FileStatusStruct {\n name: string;\n value: FileStatus;\n}\n\nexport const FILE_STATUSES: FileStatusStruct[] = [\n { name: 'Draft', value: FileStatus.Draft },\n { name: 'In Review', value: FileStatus.InReview },\n { name: 'Approved', value: FileStatus.Approved }\n // { name: 'Declined', value: 'declined' }\n];\n\nexport type DocumentMap = {\n [name in FileStatus]: Document[];\n};\n\n// use function to avoid retaining array reference\nexport const createEmptyDocumentMap = (): DocumentMap => ({\n draft: [],\n 'in-review': [],\n approved: [],\n obsolete: []\n});\n\nexport function convertFileToDocument(file: FileDto): Document {\n return {\n ...file,\n type: file.isFolder ? DocumentType.Folder : DocumentType.File\n } as Document;\n}\n\nexport const mapDocumentsByStatus = (\n documents: Document[],\n documentMap?: DocumentMap\n): DocumentMap => {\n documentMap = (documentMap || { ...createEmptyDocumentMap() }) as DocumentMap;\n return documents.reduce((documentMap: DocumentMap, document: Document) => {\n const { status } = document.fileVersion || {};\n if (status) {\n // add array if non existent\n if (!documentMap[status]) {\n documentMap[status] = [];\n }\n documentMap[status].push(document);\n }\n return documentMap;\n }, documentMap);\n};\n\nexport const parseFilePath = (\n pathString: string\n): {\n root: string;\n dir: string;\n base: string;\n ext: string;\n name: string;\n} => {\n if (typeof pathString !== 'string') {\n throw new TypeError(\n \"Parameter 'pathString' must be a string, not \" + typeof pathString\n );\n }\n var allParts = filePathRegex.exec(pathString)?.slice(1);\n if (!allParts || allParts.length !== 4) {\n throw new TypeError(\"Invalid path '\" + pathString + \"'\");\n }\n allParts[1] = allParts[1] || '';\n allParts[2] = allParts[2] || '';\n allParts[3] = allParts[3] || '';\n\n return {\n root: allParts[0],\n dir: allParts[0] + allParts[1].slice(0, -1),\n base: allParts[2],\n ext: allParts[3],\n name: allParts[2].slice(0, allParts[2].length - allParts[3].length)\n };\n};\n\nexport const FILE_TYPES = {\n msoffice: ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'],\n images: [\n 'jpg',\n 'jpeg',\n 'png',\n 'gif',\n 'svg',\n 'apng',\n 'avif',\n 'jfif',\n 'webp',\n 'pjpeg',\n 'pjp',\n 'bmp',\n 'tiff',\n 'tif'\n ],\n video: [\n '3g2',\n '3gp',\n 'avi',\n 'flv',\n 'h264',\n 'm4v',\n 'mkv',\n 'mov',\n 'mp4',\n 'mpeg',\n 'mpg',\n 'webm',\n 'wmv'\n ],\n audio: [\n 'aac',\n 'aif',\n 'cda',\n 'flac',\n 'm4a',\n 'mid',\n 'midi',\n 'mp3',\n 'mpga',\n 'oga',\n 'ogg',\n 'wav'\n ],\n text: ['txt', 'text', 'json', 'xml', 'html', 'xhtml', 'htm', 'md'],\n compressed: ['7z', 'arj', 'deb', 'pkg', 'rar', 'rpm', 'gz', 'z', 'zip']\n};\n","import React, {\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { useParams } from 'react-router-dom';\nimport styled from 'styled-components';\nimport { StringParam, useQueryParam, withDefault } from 'use-query-params';\nimport { v4 as uuid } from 'uuid';\nimport {\n DndContext,\n DragOverlay,\n PointerSensor,\n useSensor,\n useSensors\n} from '@dnd-kit/core';\nimport {\n arrayMove,\n SortableContext,\n useSortable,\n verticalListSortingStrategy\n} from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport {\n Accordion,\n AccordionDetails,\n AccordionSummary,\n alpha,\n Box,\n Button,\n ButtonProps,\n Checkbox,\n CircularProgress,\n Collapse,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n Divider,\n FormControlLabel,\n Grid,\n IconButton,\n LinearProgress,\n List,\n ListItem,\n ListItemSecondaryAction,\n ListItemText,\n Menu,\n MenuItem,\n Tab,\n Table,\n TableBody,\n TableCell,\n TableCellProps,\n TableContainer,\n TableHead,\n TableRow,\n TableRowProps,\n Tabs,\n TextField,\n Tooltip,\n Typography\n} from '@material-ui/core';\nimport {\n Add as AddIcon,\n ArrowDropDown as ArrowDropDownIcon,\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n Close as CloseIcon,\n DragIndicator as DragIndicatorIcon,\n Edit as EditIcon,\n ExpandMore as ExpandMoreIcon,\n HelpOutline as HelpOutlineIcon,\n OpenInNew as OpenInNewIcon\n} from '@material-ui/icons';\nimport { Alert, AlertTitle, Autocomplete } from '@material-ui/lab';\nimport {\n api,\n ConfigFieldControl,\n ConfigTextField,\n FetchError,\n useLocalCache,\n useSort\n} from '@sierralabs/core-ui';\nimport { useEntityContext } from '@sierralabs/entity-ui';\nimport {\n mergeExpressionMaps,\n Query,\n QueryExpressionMap,\n QueryManager\n} from '@sierralabs/query-core';\nimport {\n applyQueryFilters,\n defaultQueryBuilderPlugins,\n getQuerySelectValue,\n isPaginatedList,\n useQueryContext,\n useRunQuery\n} from '@sierralabs/query-ui';\nimport { Component } from '@sierralabs/site-core';\nimport {\n SiteComponent,\n SiteComponentConfigProps,\n SiteComponentPlugin,\n SiteComponentProps,\n SiteQueryPicker,\n SiteRouteAndParamPicker,\n SiteSearchPlugin,\n SiteSearchProps,\n SiteTablePlugin,\n SiteTableProps,\n useConfigComponent,\n useFindNearestDescendant,\n useRouteLocalCacheKey,\n useSiteContext,\n useSiteTablePagination,\n useSubscribeComponentChanges\n} from '@sierralabs/site-ui';\n\nimport ConfirmDialog from '../common/dialogs/ConfirmDialog';\nimport DragArea from '../common/views/DragArea';\nimport AppSnackbar from '../common/AppSnackbar';\nimport { useDownloadRequest } from '../common/blob.hook';\nimport WrappedTableCell from '../common/WrappedTableCell';\nimport { useFileUploader } from '../secure-portal/documents/components/DocumentFolderUpload';\nimport { parseFilePath } from '../secure-portal/documents/Document.helpers';\nimport { createProxyUrl } from '../secure-portal/documents/Document.hook';\nimport { parseTaskStatus } from '../secure-portal/tasks/task.helper';\n\nexport interface ExportItemQuery {\n // auto generated id for loop keys\n id: string;\n queryId?: string;\n // wrapper syntax within document (e.g. {users}...{/users})\n templateSyntax?: string;\n returnType?: 'paginated' | 'one';\n includeFilters?: boolean;\n filter?: { field?: string; routeId?: string; routeParam?: string };\n}\n\nexport interface ExportItem {\n // auto generated id for loop keys\n id: string;\n name: string;\n key?: string; // storageKey\n queries?: ExportItemQuery[];\n csvExportEnabled?: boolean;\n csvExportConfig?: {\n includeFieldLabels?: boolean;\n queryFields?: string[];\n taskStatusFields?: string[];\n };\n}\n\ninterface ExportFileDto {\n key: string; // storageKey\n ext?: 'docx' | 'pdf';\n token?: string;\n timeZone: string;\n queries: {\n id: string;\n templateSyntax: string;\n returnType?: 'paginated' | 'one';\n expressionMap?: QueryExpressionMap;\n }[];\n}\n\nfunction getExportUrl(item: Partial) {\n const storageKey = item.key || '';\n const extension = parseFilePath(storageKey).ext.replace('.', '');\n const proxyUrl = createProxyUrl(\n storageKey,\n undefined,\n false,\n `${item.name || 'Untitled'}.${extension}`\n ).toString();\n const fileProxyUrl = item.key ? proxyUrl : undefined;\n return {\n proxyUrl: fileProxyUrl,\n openFile: () => {\n if (fileProxyUrl) {\n console.debug('[SiteExportButtonPlugin] proxy url:', fileProxyUrl);\n window.open(fileProxyUrl, '_blank');\n }\n }\n };\n}\n\nfunction canExport(item: ExportItem) {\n const hasConfiguriedQueries = (item.queries || []).every(\n query => query.queryId && query.templateSyntax\n );\n // only check for configured queries if CSV export is enabled\n // since template is not required for that export\n return item.csvExportEnabled\n ? hasConfiguriedQueries\n : !!item.key && hasConfiguriedQueries;\n}\n\nconst StyledDot = styled.div`\n height: 6px;\n min-width: 6px;\n border-radius: 100%;\n margin-right: 10px;\n margin-bottom: 1px;\n &.error {\n background-color: ${props => alpha(props.theme.palette.error.light, 0.8)};\n }\n &:not(.error) {\n background-color: ${props => props.theme.palette.text.disabled};\n }\n`;\n\nconst SecondaryText: React.FC = props => {\n return (\n \n {props.children}\n \n );\n};\n\nconst ViewExportFile: React.FC<{\n item: ExportItem;\n small?: boolean;\n}> = props => {\n const { item, small } = props;\n const { proxyUrl, openFile } = getExportUrl(item);\n const isDisabled = !proxyUrl;\n return (\n \n \n {\n event.stopPropagation();\n openFile();\n }}\n >\n \n \n \n \n );\n};\n\nexport interface ExportButtonProps\n extends Partial> {\n text?: string;\n items?: ExportItem[];\n}\n\nexport const ExportButton: React.FC<\n SiteComponentProps\n> = props => {\n const params = useParams>();\n const component = useSubscribeComponentChanges(ExportButtonPlugin, props);\n const { isHover, hoverProps } = useSiteContext();\n const exportNameRef = useRef('');\n const [search] = useQueryParam('search', withDefault(StringParam, ''));\n const [error, setError] = useState();\n const [anchorEl, setAnchorEl] = useState(null);\n const [csvExportProps, setCsvExportProps] = useState<{\n item: ExportItem;\n query: Partial;\n expressionMap?: QueryExpressionMap;\n }>();\n const { queries: contextQueries } = useQueryContext();\n // for export filters, check parent for SiteSearch component\n const searchComponent = useFindNearestDescendant(\n SiteSearchPlugin.type,\n component.parent\n );\n const tableComponent = useFindNearestDescendant(\n SiteTablePlugin.type,\n component.parent?.parent\n );\n const searchQueryId = searchComponent?.queryIds?.[0];\n const tableQueryId = tableComponent?.queryIds?.[0];\n const localCacheKey = useRouteLocalCacheKey(component, {\n queryId: searchQueryId\n });\n const { value: searchQuery } = useLocalCache | undefined>(\n localCacheKey,\n () => undefined\n );\n // SiteTable should set `sortWithQueryParams` to `true`\n // to properly apply pagination filters for export\n const { pagination } = useSiteTablePagination({ asQueryParams: true });\n const {\n isLoading: isDownloading,\n error: downloadError,\n download\n } = useDownloadRequest();\n const classes = ['site-export-button'];\n if (isHover(component)) {\n classes.push('component-hover');\n }\n const { text, size, color, variant, items = [] } = component.props || {};\n // do loading if csvExportProps is present\n const isLoading = isDownloading || !!csvExportProps;\n\n const onSelect = (item: ExportItem) => {\n if (isLoading) {\n return;\n }\n setAnchorEl(null);\n\n const expressionMap = searchQuery?.config;\n const queries: ExportFileDto['queries'] = (item.queries || []).map(\n query => {\n const item: ExportFileDto['queries'][number] = {\n id: query.queryId || '',\n templateSyntax: query.templateSyntax || ''\n };\n if (query.returnType) {\n item.returnType = query.returnType;\n }\n const { filter } = query;\n if (filter && filter.field && filter.routeParam) {\n const filterTarget = params[filter.routeParam];\n item.expressionMap = {\n queryType: 'select',\n wheres: [\n {\n type: 'and',\n condition: {\n operator: 'equal',\n parameters: [filter.field, filterTarget]\n }\n }\n ]\n };\n }\n // include filters if this query is the same\n // configured query from SiteSearch component\n if (query.includeFilters) {\n if (expressionMap && searchQueryId && searchQueryId === item.id) {\n item.expressionMap = item.expressionMap\n ? mergeExpressionMaps(item.expressionMap, expressionMap)\n : expressionMap;\n }\n // use search fields of existing table component with the same query\n const searchPaths =\n tableQueryId && tableQueryId === item.id\n ? tableComponent?.props?.searchFields\n : undefined;\n // always apply pagination even without existing expressionMap\n item.expressionMap = applyQueryFilters(\n item.expressionMap || { queryType: 'select' },\n {\n ...pagination,\n search,\n searchPaths,\n paginated: item.returnType === 'paginated'\n }\n );\n }\n return item;\n }\n );\n if (item.csvExportEnabled) {\n // get first configured query for CSV export\n const query = contextQueries.find(query => query.id === queries[0].id);\n if (query) {\n setCsvExportProps({\n item,\n query,\n expressionMap: queries[0].expressionMap\n });\n } else {\n setError({\n statusCode: 404,\n error: 'Not Found',\n message: 'Query not found.'\n });\n }\n return;\n }\n const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n const dto: ExportFileDto = { key: item.key || '', timeZone, queries };\n exportNameRef.current = `${item.name}.docx`;\n const request = api.post('components/plugins/export', dto);\n download(`${item.name}.docx`, { request });\n };\n\n useEffect(() => {\n downloadError && setError(downloadError);\n }, [downloadError]);\n\n return (\n \n \n ) : (\n \n )\n }\n {...hoverProps(component)}\n onClick={event => setAnchorEl(event.currentTarget)}\n >\n {text || 'Export'}\n \n setAnchorEl(null)}\n >\n {items.length === 0 && (\n No items configured.\n )}\n {items.map(item => (\n onSelect(item)}\n >\n {item.name || Untitled}\n \n ))}\n \n {csvExportProps && (\n {\n setError(error);\n setCsvExportProps(undefined);\n }}\n download={csvData => {\n setCsvExportProps(undefined);\n const a = document.createElement('a');\n const blob = new Blob([csvData], {\n type: 'text/csv;charset=utf-8'\n });\n a.textContent = 'download';\n const fileName =\n csvExportProps.item.name ||\n csvExportProps.item.queries?.[0].templateSyntax ||\n '';\n a.download = `${fileName}.csv`;\n a.href = URL.createObjectURL(blob);\n a.click();\n a.href = '#';\n }}\n />\n )}\n setError(undefined)}\n >\n {error?.message || 'Unable to export document.'}\n \n \n );\n};\n\nexport const ExportButtonConfigurator: React.FC<\n SiteComponentConfigProps\n> = props => {\n const { component, update } = useConfigComponent(props.component);\n const [open, setOpen] = useState(false);\n const items = component.props?.items || [];\n return (\n <>\n \n Button\n \n \n update('props.text', event.target.value)}\n />\n \n \n update('props.variant', event.target.value)}\n >\n {['contained', 'outlined', 'text'].map(variant => (\n \n {variant}\n \n ))}\n \n \n \n update('props.size', event.target.value)}\n >\n {['large', 'medium', 'small'].map(size => (\n \n {size}\n \n ))}\n \n \n \n update('props.color', event.target.value)}\n >\n {['primary', 'secondary'].map(color => (\n \n {color}\n \n ))}\n \n \n\n \n Menu\n \n {items.length === 0 ? (\n \n No items configured.\n \n ) : (\n \n {items.map(item => (\n \n \n \n {item.name || Untitled}\n \n \n \n \n \n ))}\n \n )}\n\n setOpen(true)}\n >\n Configure Items\n \n\n {open && (\n setOpen(false)}\n onChange={items => update('props.items', items)}\n />\n )}\n \n );\n};\n\nexport interface ExportItemsDialogConfiguratorProps {\n open: boolean;\n items: ExportItem[];\n component: Component;\n onClose?: () => void;\n onChange?: (items: ExportItem[]) => void;\n}\n\nexport const ExportItemsDialogConfigurator: React.FC<\n ExportItemsDialogConfiguratorProps\n> = props => {\n const { open, component, items: initialItems, onClose, onChange } = props;\n const onChangeRef = useRef(onChange);\n onChangeRef.current = onChange;\n const didChangeRef = useRef(false);\n const dragChangeRef = useRef({ sourceIndex: -1, targetIndex: -1 });\n const [items, setItems] = useState(initialItems);\n const [updateIndex, setUpdateIndex] = useState(-1);\n const [removeIndex, setRemoveIndex] = useState(-1);\n const [openAddDialog, setOpenAddDialog] = useState(false);\n const [dragItem, setDragItem] = useState();\n const sort = useSort(items, item => item.id);\n const sensors = useSensors(useSensor(PointerSensor));\n const removeItem = removeIndex > -1 ? items[removeIndex] : undefined;\n\n const clearDragChange = () => {\n dragChangeRef.current.sourceIndex = -1;\n dragChangeRef.current.targetIndex = -1;\n };\n\n useEffect(() => {\n if (!didChangeRef.current) {\n didChangeRef.current = true;\n return;\n }\n onChangeRef.current?.(items);\n }, [items]);\n\n return (\n \n Configure Export Items\n \n \n Manage export menu items\n \n \n \n \n \n \n Name\n Queries\n Template\n \n \n \n {\n // prevent dragging if currently dragging an item\n if (dragItem) {\n return;\n }\n const index = items.findIndex(\n item => item.id === event.active.id\n );\n const item = items[index];\n dragChangeRef.current.sourceIndex = index;\n setDragItem(item);\n }}\n onDragOver={event => {\n const { active, over } = event;\n if (over && active.id !== over.id) {\n dragChangeRef.current.targetIndex = sort.findIndex(over.id);\n sort.reorder(active.id, over.id);\n }\n }}\n onDragEnd={() => {\n const { sourceIndex, targetIndex } = dragChangeRef.current;\n if (\n sourceIndex > -1 &&\n targetIndex > -1 &&\n sourceIndex !== targetIndex\n ) {\n setItems(arrayMove(items, sourceIndex, targetIndex));\n }\n clearDragChange();\n setDragItem(undefined);\n }}\n onDragCancel={() => {\n clearDragChange();\n setDragItem(undefined);\n }}\n >\n item.id)}\n >\n \n {sort.items.length === 0 && (\n \n \n No items configured.\n \n \n )}\n {sort.items.map((item, index) => (\n setUpdateIndex(index)\n }}\n onClickUpdate={() => setUpdateIndex(index)}\n onClickDelete={() => setRemoveIndex(index)}\n />\n ))}\n \n \n \n {dragItem && }\n \n \n
\n
\n\n \n }\n onClick={() => setOpenAddDialog(true)}\n >\n Add Export Item\n \n \n
\n \n \n \n\n {(openAddDialog || updateIndex > -1) && (\n {\n setOpenAddDialog(false);\n setUpdateIndex(-1);\n }}\n onChange={item => {\n setItems(items => {\n const index = items.findIndex(i => i.id === item.id);\n // if adding new non-csv item, skip if has no storage key yet\n if (index === -1) {\n return !item.csvExportEnabled && !item.key\n ? items\n : items.concat(item);\n }\n const copy = Array.from(items);\n copy.splice(index, 1, item);\n return copy;\n });\n }}\n />\n )}\n setRemoveIndex(-1)}\n onConfirm={async () => {\n setRemoveIndex(-1);\n setItems(items => {\n if (removeIndex === -1) {\n return items;\n }\n const copy = Array.from(items);\n copy.splice(removeIndex, 1);\n return copy;\n });\n }}\n />\n
\n );\n};\n\nconst StyledTableRow = styled(TableRow)`\n overflow: auto;\n vertical-align: top;\n .column-type {\n min-width: 180px;\n }\n &.dragging {\n opacity: 0.8;\n background: #fff;\n border-radius: 4px;\n box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n }\n &.error:not(.dragging) {\n background-color: ${props => alpha(props.theme.palette.error.main, 0.1)};\n }\n .drag-cell {\n padding-top: 8px;\n padding-bottom: 8px;\n }\n .drag-handle {\n margin-top: 6px;\n cursor: grab;\n opacity: 0.25;\n transition: opacity 300ms;\n &:hover {\n opacity: 1;\n }\n svg {\n color: #bbb;\n }\n }\n .actions {\n flex-wrap: wrap;\n padding-top: 10px;\n padding-bottom: 8px;\n }\n`;\n\ninterface ExportItemRowProps {\n item: ExportItem;\n className?: string;\n isDragging?: boolean;\n tableRowProps?: TableRowProps;\n dragHandleProps?: TableCellProps;\n onClickUpdate?: () => void;\n onClickDelete?: () => void;\n}\n\nconst ExportItemRow: React.FC = props => {\n const {\n item,\n className,\n isDragging,\n tableRowProps,\n dragHandleProps,\n onClickUpdate,\n onClickDelete\n } = props;\n const { queries } = useQueryContext();\n const itemQueries = (item.queries || []).map(itemQuery => {\n return {\n item: itemQuery,\n query: queries.find(query => query.id === itemQuery.queryId)\n };\n });\n const classes = className ? [className] : [];\n isDragging && classes.push('dragging');\n !canExport(item) && classes.push('error');\n return (\n \n \n \n \n \n {item.name || Untitled}\n \n \n {itemQueries.length === 0 && Not Set}\n {itemQueries.map(query => {\n const { templateSyntax } = query.item;\n return (\n
\n {query.query?.name || Not Set} (\n {query.item.returnType || 'all'},{' '}\n {!templateSyntax ? '?' : {templateSyntax}})\n
\n );\n })}\n
\n \n {item.key ? (\n \n ) : (\n Not Set\n )}\n \n \n {\n event.stopPropagation();\n onClickUpdate?.();\n }}\n >\n \n \n {\n event.stopPropagation();\n onClickDelete?.();\n }}\n >\n \n \n \n
\n );\n};\n\nconst SortableExportItemRow: React.FC = props => {\n const { item, isDragging } = props;\n const { attributes, listeners, setNodeRef, transform, transition } =\n useSortable({ id: item.id });\n return (\n \n );\n};\n\nconst StyledAccordion = styled(Accordion)`\n .MuiAccordionSummary-root.Mui-expanded {\n min-height: unset;\n }\n .MuiAccordionSummary-content {\n margin: 12px 0px;\n align-items: center;\n .remove-button {\n margin-right: 7px;\n }\n }\n`;\n\nconst ExportItemQueryConfigurator: React.FC<{\n item: ExportItemQuery;\n expanded?: boolean;\n component: Component;\n queryFieldOptions: string[];\n onChange?: (item: ExportItemQuery) => void;\n onRemove?: () => void;\n setExpanded?: (expanded: boolean) => void;\n}> = props => {\n const {\n item,\n component,\n expanded,\n queryFieldOptions,\n onChange,\n onRemove,\n setExpanded\n } = props;\n const update = (updated: Partial) => {\n onChange?.({ ...item, ...updated });\n };\n return (\n setExpanded?.(expanded)}\n >\n }>\n {\n event.stopPropagation();\n onRemove?.();\n }}\n >\n \n \n {item.templateSyntax ? (\n `${item.templateSyntax} (${item.returnType || 'all'})`\n ) : (\n No template syntax\n )}\n \n \n \n \n update({ templateSyntax: event.target.value })}\n />\n \n \n \n \n {\n update({ queryId: queries.slice(-1).pop()?.id });\n }}\n />\n \n \n {\n const value = event.target.value as\n | 'paginated'\n | 'one'\n | 'all';\n update({\n returnType: !value || value === 'all' ? undefined : value\n });\n }}\n >\n All\n Paginated\n One\n \n \n \n \n \n \n Include Pagination and Filters\n \n \n When enabled, filters from a{' '}\n {SiteSearchPlugin.name} component that has the\n same configured query will be applied.\n \n \n \n \n Make sure that if one main{' '}\n {SiteTablePlugin.name} component exists on\n the page (e.g. list page) that it has{' '}\n Sort with Query Params configuration{' '}\n enabled to properly apply the pagination for\n export.\n \n \n \n \n {\n update({ includeFilters: checked });\n }}\n />\n }\n />\n \n \n \n Filter by Route Param\n \n The selected route param will be checked against\n the selected field.\n \n {\n update({\n filter: {\n ...item.filter,\n routeId: value.routeId,\n routeParam: value.routeParam\n }\n });\n }}\n />\n \n \n {\n update({\n filter: { ...item.filter, field: value || undefined }\n });\n }}\n renderInput={params => (\n \n )}\n />\n \n \n \n \n );\n};\n\nconst StyledContainer = styled.div`\n margin-top: 16px;\n padding-left: 24px;\n padding-right: 24px;\n &.hidden {\n display: none;\n }\n .MuiAlert-message {\n width: 100%;\n .alert-content {\n display: flex;\n }\n .alert-text {\n flex: 1;\n }\n .alert-action {\n display: flex;\n align-items: start;\n margin-left: 8px;\n }\n }\n .MuiTypography-body1 {\n font-size: 14px;\n }\n .actions {\n display: flex;\n .MuiButtonBase-root:not(:last-child) {\n margin-right: 8px;\n }\n }\n .title-text {\n font-weight: 600;\n }\n .code-block {\n padding: 8px;\n border-radius: 2px;\n border: 1px solid ${props => props.theme.palette.divider};\n background-color: ${props => props.theme.palette.grey[200]};\n }\n ul {\n margin-top: 8px;\n margin-bottom: 8px;\n padding-left: 24px;\n li:not(:last-child) {\n margin-bottom: 8px;\n }\n }\n`;\n\nconst StyledAlert = styled(Alert)`\n .MuiAlertTitle-root {\n font-size: 15px;\n font-weight: 600;\n }\n`;\n\nconst SaveExportItemDialog: React.FC<{\n open: boolean;\n item?: ExportItem;\n component: Component;\n onClose?: () => void;\n onChange?: (item: ExportItem) => void;\n}> = props => {\n const { open, component, item: initialItem, onChange } = props;\n const onChangeRef = useRef(onChange);\n onChangeRef.current = onChange;\n const shouldUpdateRef = useRef(false);\n const contentRef = useRef(null);\n const fileInputRef = useRef(null);\n const [item, setItem] = useState(\n () => initialItem || { id: uuid(), name: '', queries: [] }\n );\n const [tabIndex, setTabIndex] = useState(0);\n const [dragOver, setDragOver] = useState(false);\n const [removeId, setRemoveId] = useState();\n const [expandedId, setExpandedId] = useState();\n const [isUploading, setIsUploading] = useState(false);\n const { queries: contextQueries } = useQueryContext();\n const uploader = useFileUploader('attachments');\n const { proxyUrl, openFile } = getExportUrl(item);\n const queries = item.queries || [];\n const selectAll = '-- Select All --';\n const uploadItem =\n uploader.items[0]?.status === 'uploaded' ? uploader.items[0] : undefined;\n const removeItem = removeId\n ? item.queries?.find(query => query.id === removeId)\n : undefined;\n\n const getQueryFields = (queryId: string | undefined) => {\n const query = queryId\n ? contextQueries.find(query => query.id === queryId)\n : undefined;\n return (query?.config?.selects || []).map(select => select.selection);\n };\n const csvQueryFields = getQueryFields(queries[0]?.queryId);\n\n const isValid = useMemo(() => {\n const hasQueries =\n Array.isArray(item.queries) &&\n item.queries.length > 0 &&\n item.queries.every(query => query.queryId && query.templateSyntax);\n return !!(\n hasQueries &&\n (!item.csvExportEnabled\n ? item.key\n : item.csvExportConfig &&\n Array.isArray(item.csvExportConfig.queryFields) &&\n item.csvExportConfig.queryFields.length > 0)\n );\n }, [item]);\n\n const onClose = () => {\n if (!isUploading) {\n props.onClose?.();\n }\n };\n\n const getClassName = (index: number) => {\n const classes = ['tab-content'];\n tabIndex !== index && classes.push('hidden');\n return classes.join(' ');\n };\n\n const handleFiles = async (files: FileList | null) => {\n if (!files || files.length === 0) {\n return;\n }\n setIsUploading(true);\n uploader.clear();\n const uploadedItems = await uploader.uploadAsync(\n Array.from(files).slice(-1)\n );\n const storageKey = uploadedItems[0]?.presignedUrl?.storageKey;\n if (!storageKey) {\n setIsUploading(false);\n return;\n }\n // trigger and force onChange update in useEffect when storageKey is set\n shouldUpdateRef.current = true;\n setIsUploading(false);\n setItem(item => ({ ...item, key: storageKey }));\n };\n\n useEffect(() => {\n if (shouldUpdateRef.current) {\n shouldUpdateRef.current = false;\n onChangeRef.current?.(item);\n }\n }, [item]);\n\n useLayoutEffect(() => {\n // go to top when tabIndex changes\n if (contentRef.current) {\n contentRef.current.scrollTop = 0;\n }\n }, [tabIndex]);\n\n return (\n \n {isUploading && }\n {initialItem ? 'Update' : 'Create'} Export Item\n \n setTabIndex(value)}\n >\n \n \n \n \n \n\n \n \n \n Set the name and queries for this Export item.\n \n \n {\n setItem(item => ({ ...item, name: event.target.value }));\n }}\n />\n\n \n Queries\n \n \n {queries.length === 0 && (\n Add queries for this Export item.\n )}\n {queries.map((query, index) => (\n {\n setExpandedId(expanded ? query.id : undefined);\n }}\n onChange={updated => {\n setItem(item => {\n const queries = Array.from(item.queries || []);\n queries.splice(index, 1, updated);\n return { ...item, queries };\n });\n }}\n onRemove={() => setRemoveId(query.id)}\n />\n ))}\n \n \n 0\n }\n startIcon={}\n onClick={() => {\n const id = uuid();\n setItem(item => {\n return {\n ...item,\n queries: (item.queries || []).concat({ id })\n };\n });\n setExpandedId(id);\n }}\n >\n Add Query\n \n }\n onClick={() => setTabIndex(2)}\n >\n Learn More\n \n }\n onClick={() => setTabIndex(tabIndex => tabIndex + 1)}\n >\n Next\n \n \n \n \n \n \n Upload the Template Document File for this Export item.\n \n \n {proxyUrl && (\n \n \n
\n
\n {uploadItem\n ? 'Template file uploaded successfully.'\n : 'Template file uploaded.'}{' '}\n Drag or upload a new file below to{' '}\n delete and replace the old Template file.\n
\n
\n }\n onClick={openFile}\n >\n Open File\n \n
\n
\n
\n
\n )}\n fileInputRef.current?.click()}\n />\n \n \n File successfully uploaded.\n \n \n \n }\n onClick={() => setTabIndex(tabIndex => tabIndex - 1)}\n >\n Back\n \n }\n onClick={() => setTabIndex(tabIndex => tabIndex + 1)}\n >\n Next\n \n \n
\n \n \n {\n setItem(item => ({ ...item, csvExportEnabled: checked }));\n }}\n />\n }\n />\n \n \n {\n setItem(item => {\n return {\n ...item,\n csvExportConfig: {\n ...item.csvExportConfig,\n includeFieldLabels: checked\n }\n };\n });\n }}\n />\n }\n />\n \n \n \n CSV Export is Enabled\n \n The configured template will not be used for\n this export item and only the{' '}\n first configured query will be used for this\n export.\n \n \n \n \n \n Fields to be included in Export\n \n \n \n {\n // handle select all fields\n const queryFields = values.includes(selectAll)\n ? Array.from(csvQueryFields)\n : values;\n setItem(item => {\n return {\n ...item,\n csvExportConfig: { ...item.csvExportConfig, queryFields }\n };\n });\n }}\n renderInput={params => (\n \n )}\n />\n \n \n \n Task status fields to parse\n \n \n \n {\n // handle select all fields\n const taskStatusFields = values.includes(selectAll)\n ? Array.from(csvQueryFields)\n : values;\n setItem(item => {\n return {\n ...item,\n csvExportConfig: {\n ...item.csvExportConfig,\n taskStatusFields\n }\n };\n });\n }}\n renderInput={params => (\n \n )}\n />\n \n \n }\n onClick={() => setTabIndex(tabIndex => tabIndex - 1)}\n >\n Back\n \n \n \n \n \n \n Template Syntax\n \n \n \n \n The template syntax is the token used for\n accessing the query data in the Template file.\n \n \n \n \n \n Template Syntax example: users\n \n Usage in Template file:\n \n {'{#users}Name: {firstName} {lastName}{/users}'}\n \n \n\n \n \n Return Type\n \n \n \n \n Depending on the return type, the usage of the{' '}\n template syntax will differ.\n \n \n \n \n \n Template Syntax example: users\n \n Return types:\n
    \n
  • \n \n all - this return type returns an array of\n items based on the query.\n \n Example:\n \n {'{#users}Name: {firstName}{/users}'}\n \n
  • \n
  • \n \n paginated - this return type changes the\n return type to this structure:\n \n
    \n                  {'{\\n' +\n                    '  total: number;\\n' +\n                    '  data: Data[];\\n' +\n                    '  page: number;\\n' +\n                    '  limit: number;\\n' +\n                    '}'}\n                
    \n Example:\n \n {'{#users.data}Name: {firstName}{/users.data}'}\n \n
  • \n
  • \n \n one - this return type returns one record\n from the query.\n \n Example:\n \n {'{#users}Name: {firstName}{/users}'}\n \n
  • \n
\n
\n \n }\n onClick={() => setTabIndex(tabIndex => tabIndex - 1)}\n >\n Back\n \n \n
\n\n {\n handleFiles(event.target.files);\n // clear input field\n if (fileInputRef.current) {\n fileInputRef.current.value = '';\n }\n }}\n />\n
\n \n \n {\n onChange?.(item);\n onClose();\n }}\n >\n Save Item\n \n \n\n setRemoveId(undefined)}\n onConfirm={() => {\n setRemoveId(undefined);\n setItem(item => {\n return {\n ...item,\n queries: (item.queries || []).filter(\n query => query.id !== removeId\n )\n };\n });\n }}\n />\n
\n );\n};\n\ninterface CsvExportProps {\n includeFieldLabels?: boolean;\n selectedFields: string[];\n taskStatusFields: string[];\n query: Partial;\n returnType: ExportItemQuery['returnType'];\n expressionMap?: QueryExpressionMap;\n download: (csvData: string) => void;\n onError?: (error: FetchError) => void;\n}\n\nconst CsvExport: React.FC = props => {\n const {\n includeFieldLabels,\n query,\n returnType,\n expressionMap,\n download,\n onError\n } = props;\n const downloadRef = useRef(download);\n downloadRef.current = download;\n const onErrorRef = useRef(onError);\n onErrorRef.current = onError;\n const { entities } = useEntityContext();\n const {\n queryData,\n runQueryError,\n runQuery,\n runQueryGetOne,\n runPaginatedQuery\n } = useRunQuery();\n const runQueryFn =\n returnType === 'paginated'\n ? runPaginatedQuery\n : returnType === 'one'\n ? runQueryGetOne\n : runQuery;\n // evaluate only when items changed\n const selectedFields = useMemo(() => {\n return props.selectedFields;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.selectedFields.join(',')]);\n\n const taskStatusFields = useMemo(() => {\n return props.taskStatusFields;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.taskStatusFields.join(',')]);\n\n const queryManager = useMemo(() => {\n return new QueryManager(query, entities || [], defaultQueryBuilderPlugins);\n }, [entities, query]);\n\n useEffect(() => {\n const config = !query.config\n ? undefined\n : expressionMap\n ? mergeExpressionMaps(query.config, expressionMap)\n : query.config;\n if (config) {\n runQueryFn(config);\n } else {\n onErrorRef.current?.({\n statusCode: 400,\n error: 'Bad Request',\n message: 'Missing Query configuration.'\n });\n }\n }, [query, expressionMap, runQueryFn]);\n\n useEffect(() => {\n if (runQueryError) {\n onErrorRef.current?.(runQueryError);\n }\n }, [runQueryError]);\n\n // generate CSV\n useEffect(() => {\n if (!queryData) {\n return;\n }\n // add labels and optional fieldLabels to CSV first row\n const labels: string[] = [];\n const fieldLabels: string[] = [];\n for (const field of selectedFields) {\n const columnMap = queryManager.queryAliasColumnMap.find(\n cm => cm.path === field\n );\n labels.push(columnMap?.column?.displayName || field || '');\n fieldLabels.push(columnMap?.column?.comment || 'N/A');\n }\n\n // process all data rows\n // filter selects based on selected fields to be exported\n // sort based on the order of selectFields to properly match column data\n const selects = (queryManager.query?.config?.selects || [])\n .filter(select => selectedFields.includes(select.selection))\n .sort((a, b) => {\n const aIndex = selectedFields.indexOf(a.selection);\n const bIndex = selectedFields.indexOf(b.selection);\n return aIndex - bIndex;\n });\n // handle values from all return types\n const data = isPaginatedList(queryData)\n ? queryData.data\n : Array.isArray(queryData)\n ? queryData\n : queryData\n ? [queryData]\n : [];\n\n const rows = data.map(item => {\n const row = selects.map(select => {\n let value = getQuerySelectValue({\n item,\n select,\n expressionMap: queryManager.query?.config\n });\n if (!value) {\n return '\"\"';\n }\n value = value.toString();\n value = taskStatusFields.includes(select.selection)\n ? parseTaskStatus(value)\n : value;\n\n return `\"${value.replace(/\"/g, '\"\"')}\"`;\n });\n return row;\n });\n\n const csvRows = [labels];\n if (includeFieldLabels) {\n csvRows.push(fieldLabels);\n }\n csvRows.push(...rows);\n const csvData = csvRows.map(row => row.join(',')).join('\\r\\n');\n downloadRef.current(csvData);\n }, [\n includeFieldLabels,\n queryData,\n queryManager,\n selectedFields,\n taskStatusFields\n ]);\n\n return null;\n};\n\nexport const ExportButtonPlugin: SiteComponentPlugin = {\n name: 'Export Button',\n type: 'export-button',\n component: ExportButton,\n configurator: ExportButtonConfigurator,\n initConfig: component => {\n if (!component.props) {\n component.props = {};\n }\n component.props.text = 'Export';\n component.props.color = 'primary';\n component.props.variant = 'contained';\n return component;\n }\n};\n","import { ApiParams, FetchError } from '../../common/api/api';\nimport { Attachment } from '../../common/attachment/Attachment.interface';\nimport { FormikSelectOptions } from '../../common/formik/FormikSelectField';\nimport { User } from '../../user/User.interface';\nimport { Task } from '../tasks/Task.interface';\nimport { TaskTypeEntity } from '../task-types/TaskType.interface';\nimport { FileDto } from '../documents/Document.interface';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport { Hazard } from '../hazards/Hazard.interface';\n\nexport interface Product {\n id: number;\n taskId: number;\n task: Task;\n name: string;\n description: string;\n identifier: string;\n regionsMarketed: string;\n intendedUse: string;\n version: string;\n productOwner: User;\n techLead: User;\n templatePosition?: { id: number; name: string }[];\n created: Date;\n createdBy: User;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport enum ProductRisk {\n 'Very Low' = 1,\n Low = 2,\n Medium = 3,\n High = 4,\n Critical = 5\n}\n\nexport const productRiskOptions: FormikSelectOptions[] = Object.entries(\n ProductRisk\n).reduce((options: FormikSelectOptions[], [key, value]) => {\n if (typeof value === 'number') {\n options.push({ value, label: `${value} - ${key}` });\n }\n return options;\n}, []);\n\nexport interface ProductUserNeed {\n id: number;\n title: string;\n description: string;\n risk: ProductRisk;\n productId: number;\n taskId: number;\n task: Task;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n designInputs?: ProductDesignInput[];\n validations?: ProductValidation[];\n designSpecs?: ProductDesignSpec[];\n userId: number;\n user: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface ProductUserNeedVersion {\n id: number;\n version: number;\n title: string;\n description: string;\n risk: ProductRisk;\n releaseId: number;\n release: ProductRelease;\n components: Partial[];\n attachments?: Attachment[];\n designInputIds: number[];\n validationIds: number[];\n designSpecIds: number[];\n created: Date;\n task?: Task;\n}\n\nexport interface ProductDesignInput {\n id: number;\n title: string;\n essentialRequirements: string;\n description: string;\n verificationMethod: string;\n whenToVerify: string;\n risk: ProductRisk;\n productId: number;\n taskId: number;\n task: Task;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n designOutputs?: ProductDesignOutput[];\n validations?: ProductValidation[];\n userId: number;\n user: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface ProductDesignInputVersion {\n id: number;\n version: number;\n title: string;\n essentialRequirements: string;\n description: string;\n verificationMethod: string;\n whenToVerify: string;\n risk: ProductRisk;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n attachments?: Attachment[];\n userNeedIds: number[];\n designOutputIds: number[];\n created: Date;\n task?: Task;\n}\n\nexport interface ProductDesignOutput {\n id: number;\n title: string;\n essentialRequirements: string;\n description: string;\n productId: number;\n taskId: number;\n task: Task;\n releaseId: number;\n release: ProductRelease;\n relatedHazard: string;\n hazardSituation: string;\n potentialHarm: string;\n potentialCauses: string;\n relevance: string[];\n currentControls: string;\n recommendedActions: string;\n actionsTaken: string;\n verification: string;\n p1: number;\n s1: number;\n d1: number;\n p2: number;\n s2: number;\n d2: number;\n rpn1: number;\n rpn2: number;\n components: ProductComponent[];\n verifications?: ProductVerification[];\n validations?: ProductValidation[];\n userId: number;\n user: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface ProductDesignOutputVersion {\n id: number;\n version: number;\n title: string;\n essentialRequirements: string;\n description: string;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n attachments?: Attachment[];\n designInputIds: number[];\n verificationIds: number[];\n created: Date;\n task?: Task;\n}\n\nexport interface ProductVerification {\n id: number;\n title: string;\n description: string;\n productId: number;\n taskId: number;\n task: Task;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n userId: number;\n user: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface ProductVerificationVersion {\n id: number;\n version: number;\n title: string;\n description: string;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n attachments?: Attachment[];\n designOutputIds: number[];\n created: Date;\n task?: Task;\n}\n\nexport interface ProductValidation {\n id: number;\n title: string;\n description: string;\n productId: number;\n taskId: number;\n task: Task;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n userId: number;\n user: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface ProductValidationVersion {\n id: number;\n version: number;\n title: string;\n description: string;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n attachments?: Attachment[];\n userNeedIds: number[];\n created: Date;\n task?: Task;\n}\n\nexport interface ProductDesignSpec {\n id: number;\n title: string;\n description: string;\n productId: number;\n taskId: number;\n task: Task;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n userId: number;\n user: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface ProductDesignSpecVersion {\n id: number;\n version: number;\n title: string;\n description: string;\n releaseId: number;\n release: ProductRelease;\n components: ProductComponent[];\n attachments?: Attachment[];\n userNeedIds: number[];\n created: Date;\n task?: Task;\n}\n\nexport interface ProductTemplate {\n id: number;\n name: string;\n type: ProductExportEntity;\n productId: number;\n product: Product;\n fileId?: number | null;\n file?: FileDto;\n created: Date;\n createdBy: User;\n modified: Date;\n modifiedBy: User;\n}\n\nexport type ProductEntity =\n | ProductUserNeed\n | ProductDesignInput\n | ProductDesignOutput\n | ProductVerification\n | ProductValidation\n | ProductDesignSpec\n | Hazard;\n\nexport interface ProductRelationMap {\n from: string;\n to: string;\n}\n\nexport const ProductWorkflowEntities = [\n WorkflowEntity.UserNeed,\n WorkflowEntity.DesignInput,\n WorkflowEntity.DesignOutput,\n WorkflowEntity.DesignVerification,\n WorkflowEntity.DesignValidation,\n WorkflowEntity.DesignSpec,\n WorkflowEntity.Hazard\n];\n\nexport const ProductTaskTypeEntities: TaskTypeEntity[] = [\n TaskTypeEntity.UserNeed,\n TaskTypeEntity.DesignInput,\n TaskTypeEntity.DesignOutput,\n TaskTypeEntity.DesignVerification,\n TaskTypeEntity.DesignValidation,\n TaskTypeEntity.DesignSpec\n];\n\nexport enum ProductExportEntity {\n UserNeed = 'UserNeed',\n DesignInput = 'DesignInput',\n DesignOutput = 'DesignOutput',\n DesignSpec = 'DesignSpec',\n Verification = 'Verification',\n Validation = 'Validation',\n TraceabilityReport = 'TraceabilityReport',\n eClinicalReport = 'eClinicalReport',\n Hazard = 'Hazard'\n}\n\ntype EditableCardProps<\n ValueType,\n ValueVersionType,\n ValueKey extends string = never,\n ValueVersionKey extends string = never,\n ExtraProps extends object = {}\n> = ExtraProps & { [key in ValueKey]: ValueType } & {\n [key in ValueVersionKey]?: ValueVersionType;\n} & {\n title?: string;\n onChange?: (value: Partial) => void;\n onUpdate?: () => void;\n onError?: (error: FetchError) => void;\n};\n\nexport interface ProductCardCommonProps {\n productId: number;\n hidden?: boolean;\n enableTitleRedirect?: boolean;\n}\n\nexport type BaseProductDesignInputCardProps = EditableCardProps<\n ProductDesignInput,\n ProductDesignInputVersion,\n 'productDesignInput',\n 'productDesignInputVersion',\n ProductCardCommonProps\n>;\n\nexport type BaseProductDesignOutputCardProps = EditableCardProps<\n ProductDesignOutput,\n ProductDesignOutputVersion,\n 'productDesignOutput',\n 'productDesignOutputVersion',\n ProductCardCommonProps\n>;\n\nexport type BaseProductDesignSpecCardProps = EditableCardProps<\n ProductDesignSpec,\n ProductDesignSpecVersion,\n 'productDesignSpec',\n 'productDesignSpecVersion',\n ProductCardCommonProps\n>;\n\nexport type BaseProductVerificationCardProps = EditableCardProps<\n ProductVerification,\n ProductVerificationVersion,\n 'productVerification',\n 'productVerificationVersion',\n ProductCardCommonProps\n>;\n\nexport type BaseProductUserNeedsCardProps = EditableCardProps<\n ProductUserNeed,\n ProductUserNeedVersion,\n 'productUserNeed',\n 'productUserNeedVersion',\n ProductCardCommonProps\n>;\n\nexport type BaseProductValidationCardProps = EditableCardProps<\n ProductValidation,\n ProductValidationVersion,\n 'productValidation',\n 'productValidationVersion',\n ProductCardCommonProps\n>;\n\nexport type BaseProductAssignDialogProps<\n ValueID extends string = never,\n SelectedItemType = any,\n AssignedItemsType = any\n> = { [key in ValueID]: number } & {\n productId: number;\n open: boolean;\n onCancel?: () => void;\n onAssigned?: (items: AssignedItemsType) => void;\n onError?: (error: FetchError) => void;\n selectedItems?: SelectedItemType[];\n};\n\nexport type BaseProductBoardColumnProps<\n ProductEntityType extends ProductEntity,\n ValueKey extends string = never\n> = { [key in ValueKey]: ProductEntityType | Partial } & {\n product: Product;\n collapsed?: boolean;\n onCancel?: () => void;\n onError?: () => void;\n onSave?: (value: ProductEntityType, created?: boolean) => void;\n};\n\nexport interface BaseProductEntityTableProps {\n productId: number;\n apiParams: ApiParams;\n fetchRef?: React.MutableRefObject;\n}\n\nexport interface ProductComponent {\n id: number;\n name: string;\n productId: number;\n created: Date;\n modified: Date;\n}\n\nexport interface ProductRelease {\n id: number;\n name: string;\n description?: string;\n productId: number;\n created: Date;\n modified: Date;\n}\n\nexport interface ProductBoardData {\n productId: number;\n referencedProductId?: number;\n referencedProductTitle?: string;\n userNeeds: ProductUserNeed[];\n designInputs: ProductDesignInput[];\n designOutputs: ProductDesignOutput[];\n verifications: ProductVerification[];\n validations: ProductValidation[];\n designSpecs: ProductDesignSpec[];\n}\n","import styled from 'styled-components';\nimport {\n TreeView as MuiTreeView,\n TreeItem as MuiTreeItem\n} from '@material-ui/lab';\n\nexport const TreeView = styled(MuiTreeView)`\n flex-grow: 1;\n`;\n\nexport const TreeItem = styled(MuiTreeItem)`\n &.selected > [class*='MuiTreeItem-content']:first-child {\n background-color: #cfd8dc;\n }\n\n & [class*='MuiTreeItem-iconContainer'] {\n width: auto;\n margin: 5px 8px;\n color: rgb(0, 0, 0, 0.54);\n }\n\n .tree-thin & [class*='MuiTreeItem-group'] {\n margin-left: 12px;\n }\n\n & [class*='MuiTreeItem-label'] {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: inherit;\n color: rgb(0, 0, 0, 0.87);\n }\n`;\n","import React, { createContext, useState, useRef } from 'react';\n\nexport interface TreeNodeFetcher {\n [nodeId: string]: Function;\n}\n\nexport interface FileExplorerContextProps {\n selected?: string;\n setSelected: (nodeId?: string) => void;\n refresh?: () => void;\n setRefresh: (refreshFn: () => void) => void;\n refreshNode: (nodeId: string) => void;\n setTreeNodeFetcher: (nodeId: string, fetcher: Function) => void;\n}\n\nexport const FileExplorerContext = createContext({\n setSelected: () => {},\n setRefresh: () => {},\n refreshNode: () => {},\n setTreeNodeFetcher: () => {}\n});\n\nexport const FileExplorerProvider: React.FC = ({ children }) => {\n const refreshRef = useRef<(() => void) | undefined>();\n // save api function requests of individual children node here\n const treeNodeFetcherRef = useRef({});\n const [selected, setSelected] = useState();\n\n const refresh = () => refreshRef.current?.();\n const setRefresh = (refreshFn: () => void) => {\n refreshRef.current = refreshFn;\n };\n const refreshNode = () => {\n // refresh everything\n for (const [, fetcher] of Object.entries(treeNodeFetcherRef.current)) {\n fetcher();\n }\n };\n const setTreeNodeFetcher = (nodeId: string, fetcher: Function) => {\n treeNodeFetcherRef.current[nodeId] = () => fetcher(nodeId);\n };\n\n return (\n \n {children}\n \n );\n};\n","import React, { useEffect, useContext } from 'react';\nimport {\n Check as CheckIcon,\n Folder as FolderIcon,\n Delete as DeleteIcon,\n DeleteOutlined as DeleteOutlinedIcon,\n ExpandMore as ExpandMoreIcon,\n ChevronRight as ChevronRightIcon,\n InsertDriveFile as InsertDriveFileIcon,\n InsertDriveFileOutlined as InsertDriveFileOutlinedIcon\n} from '@material-ui/icons';\n\nimport * as Styled from './DocumentFileExplorer.styled';\nimport { FileDto } from '../Document.interface';\nimport { useFindFolders } from '../Document.hook';\nimport { filterFileTree } from './DocumentFileExplorer';\nimport { FileExplorerContext } from './FileExplorer.context';\n\nconst expandTrashIcon = (\n <>\n \n \n \n);\nconst collapseTrashIcon = (\n <>\n \n \n \n);\n\nconst fileIcon = ;\nconst selectedFileIcon = (\n <>\n \n \n \n);\n\nconst getEndIcon = (\n hasZeroChildren: boolean,\n isTrash: boolean = false\n): JSX.Element | undefined => {\n if (!(hasZeroChildren || isTrash)) {\n return undefined;\n }\n\n return (\n <>\n \n {isTrash ? : }\n \n );\n};\n\nexport interface DocumentFileExplorerItemProps {\n file: FileDto;\n selected?: boolean;\n hideTrashDir?: boolean;\n includeFiles?: boolean;\n useContextValues?: boolean;\n renderTree?: (node: FileDto) => void;\n onSelectNode?: (nodeId: string, file: FileDto) => void;\n setFileChildren?: (file: FileDto, children: FileDto[]) => void;\n}\n\nconst DocumentFileExplorerItem: React.FC = (\n props: DocumentFileExplorerItemProps\n) => {\n const {\n file,\n selected,\n hideTrashDir,\n includeFiles,\n useContextValues,\n renderTree,\n onSelectNode,\n setFileChildren\n } = props;\n const { setTreeNodeFetcher } = useContext(FileExplorerContext);\n const [{ data, isLoading, error }, get] = useFindFolders(!includeFiles);\n\n // save get fetch request to context if using context values\n useContextValues && setTreeNodeFetcher(`${file.id}`, get);\n\n const hasChildren = !!file.children?.length;\n const hasZeroChildren = file.children?.length === 0;\n\n const nodeId = `${file.id}`;\n const label = file.name + (isLoading && file.isFolder ? ' Loading...' : '');\n const isTrash = file.name === 'Trash' && file.isLocked;\n\n // use disabled color when there are 0 children fetched\n const endIcon = file.isFolder\n ? getEndIcon(hasZeroChildren, isTrash)\n : selected\n ? selectedFileIcon\n : fileIcon;\n\n useEffect(() => {\n if (data && !error) {\n setFileChildren?.(file, (data as FileDto).children || []);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, error, file]);\n\n return (\n {\n file.isFolder && !hasChildren && get(file.id);\n onSelectNode?.(nodeId, file);\n }}\n >\n {Array.isArray(file.children)\n ? filterFileTree(file.children, hideTrashDir).map(\n node => renderTree?.(node) || null\n )\n : null}\n \n );\n};\n\nexport default DocumentFileExplorerItem;\n","import React, { useEffect, useState, useContext } from 'react';\nimport {\n Folder as FolderIcon,\n FolderOpen as FolderOpenIcon,\n ExpandMore as ExpandMoreIcon,\n ChevronRight as ChevronRightIcon\n} from '@material-ui/icons';\n\nimport * as Styled from './DocumentFileExplorer.styled';\nimport { FileDto } from '../Document.interface';\nimport { useFindFolders } from '../Document.hook';\nimport { FileExplorerContext } from './FileExplorer.context';\nimport DocumentFileExplorerItem from './DocumentFileExplorerItem';\n\nconst defaultExpandIcon = (\n <>\n \n \n \n);\nconst defaultCollapseIcon = (\n <>\n \n \n \n);\nconst defaultEndIcon = (\n <>\n \n \n \n);\n\nconst treeViewIcons = {\n defaultExpandIcon,\n defaultCollapseIcon,\n defaultEndIcon\n};\n\n// choose whether context values or state\nconst useSelected = (\n useContextValues: boolean = false,\n initialSelected?: string\n): [string | undefined, (nodeId?: string) => void] => {\n const state = useState(initialSelected);\n const ctx = useContext(FileExplorerContext);\n return useContextValues ? [ctx.selected, ctx.setSelected] : state;\n};\n\n// remove trash directory\nexport const filterFileTree = (\n files: FileDto[],\n hideTrashDir: boolean = false\n): FileDto[] => {\n return files.filter((file: FileDto) => {\n const isTrash = file.name === 'Trash' && file.isLocked;\n return !(hideTrashDir && isTrash);\n });\n};\n\nexport interface DocumentFileExplorerProps {\n files?: FileDto[];\n selected?: string;\n minHeight?: number;\n useContextValues?: boolean;\n hideRootDir?: boolean;\n hideTrashDir?: boolean;\n includeFiles?: boolean;\n onSelectFile?: (nodeId: string, file: FileDto) => void;\n}\n\nconst DocumentFileExplorer: React.FC = (\n props: DocumentFileExplorerProps\n) => {\n const {\n files: filesProp,\n selected: initialSelected,\n minHeight,\n hideRootDir,\n hideTrashDir,\n includeFiles,\n useContextValues = false,\n onSelectFile\n } = props;\n const [files, setFiles] = useState([]);\n const [selected, setSelected] = useSelected(\n useContextValues,\n initialSelected\n );\n const [expanded, setExpanded] = useState(hideRootDir ? [] : ['-1']);\n const { setRefresh } = useContext(FileExplorerContext);\n const [{ data, isLoading, error }, get] = useFindFolders(!includeFiles);\n // set refresh callback if using context values\n useContextValues && setRefresh(get);\n\n useEffect(() => {\n setSelected(initialSelected);\n }, [initialSelected]);\n\n // if no filesProp, try to fetch files\n useEffect(() => {\n filesProp ? setFiles(filesProp) : get();\n }, [filesProp, get]);\n\n useEffect(() => {\n data && !filesProp && setFiles(Array.isArray(data) ? data : [data]);\n }, [data, filesProp]);\n\n const toggleExpand = (nodeId: string) => {\n // add to expanded if not exists\n const newExpanded = expanded.slice();\n const index = newExpanded.findIndex(id => id === nodeId);\n if (index < 0) {\n newExpanded.push(nodeId);\n } else {\n newExpanded.splice(index, 1);\n }\n\n setExpanded(newExpanded);\n };\n\n const onSelectNode = (nodeId: string, file: FileDto) => {\n // onNodeToggle doesn't call on leaf nodes, so set selected here instead\n setSelected(nodeId);\n toggleExpand(nodeId);\n onSelectFile?.(nodeId, file);\n };\n\n const setFileChildren = (file: FileDto, children: FileDto[]) => {\n file.children = children;\n setFiles([...files]);\n };\n\n // recursive render\n const renderTree = (file: FileDto, selectedNodeId?: string) => (\n renderTree(file, selectedNodeId)}\n {...{\n file,\n hideTrashDir,\n includeFiles,\n onSelectNode,\n setFileChildren,\n useContextValues\n }}\n />\n );\n\n // content to render\n let content: JSX.Element = <>;\n if (isLoading && !files?.length) {\n content =
Loading...
;\n } else if (error) {\n content =
Error. Unable to retrieve files.
;\n } else if (!files?.length) {\n content =
No files to show.
;\n } else {\n const rootDir: FileDto = {\n id: -1,\n name: '/',\n children: files,\n isFolder: true\n };\n\n content = (\n \n {hideRootDir\n ? filterFileTree(files, hideTrashDir).map(file =>\n renderTree(file, selected)\n )\n : renderTree(rootDir, selected)}\n \n );\n }\n\n return content;\n};\n\nexport default DocumentFileExplorer;\n","import React, { useEffect, useRef, useState } from 'react';\nimport {\n Box,\n Button,\n Collapse,\n Dialog,\n DialogActions,\n DialogTitle,\n Divider\n} from '@material-ui/core';\n\nimport DragArea from '../../../common/views/DragArea';\nimport {\n FileDto,\n ReferenceData,\n ReferenceMetadata\n} from '../Document.interface';\nimport {\n DocumentFolderUploadList,\n FileUploadManager,\n FileUploadProgress,\n useFileUploadManager\n} from './DocumentFolderUpload';\n\nexport interface DocumentMultiUploadProps {\n open: boolean;\n folder: FileDto;\n inputType?: string;\n referenceData?: ReferenceData;\n referenceTaskId?: number;\n referenceMetadata?: ReferenceMetadata;\n fileMultiInputRef?: React.MutableRefObject;\n setOpen: (open: boolean) => void;\n onDismiss?: (progress: FileUploadProgress) => void;\n renderContent?: (manager: FileUploadManager) => React.ReactNode;\n}\n\nconst DocumentMultiUpload: React.FC = (\n props: DocumentMultiUploadProps\n) => {\n const {\n open,\n folder,\n inputType,\n referenceData,\n referenceTaskId,\n referenceMetadata,\n fileMultiInputRef: fileMultiInputRefProp,\n setOpen,\n onDismiss,\n renderContent\n } = props;\n const fileMultiInputRef = useRef(null);\n const cancelCallbackRef = useRef<(() => void) | undefined>();\n const [dragOver, setDragOver] = useState(false);\n const manager: FileUploadManager = useFileUploadManager({ unique: false });\n\n const dismiss = () => {\n cancelCallbackRef.current?.();\n setOpen(false);\n onDismiss?.(manager.progress);\n };\n\n const handleFiles = (newFiles: FileList | null) => {\n if (newFiles && newFiles.length > 0) {\n // append new files\n manager.add(Array.from(newFiles));\n }\n };\n\n // clear state\n useEffect(() => {\n !open && manager.clear();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n\n return (\n <>\n {\n fileMultiInputRef.current = ref;\n if (fileMultiInputRefProp) {\n fileMultiInputRefProp.current = ref;\n }\n }}\n onChange={(event: React.ChangeEvent) => {\n const { files: newFiles } = event.target;\n handleFiles(newFiles);\n // clear value\n if (fileMultiInputRef.current) {\n fileMultiInputRef.current.value = '';\n }\n }}\n />\n\n \n Document Multiple Upload\n {renderContent?.(manager)}\n \n fileMultiInputRef.current?.click()}\n />\n \n 0} style={{ minHeight: 'unset' }}>\n \n \n \n \n {\n cancelCallbackRef.current = cancelAll;\n return (\n \n 0}\n >\n Dismiss\n \n {uploadAllButton}\n \n );\n }}\n />\n \n \n {manager.items.length === 0 && (\n \n \n \n )}\n \n \n );\n};\n\nexport default DocumentMultiUpload;\n","import React, { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Avatar,\n Box,\n Button,\n Collapse,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n IconButton,\n List,\n ListItem,\n ListItemAvatar,\n ListItemSecondaryAction,\n ListItemText,\n Tooltip\n} from '@material-ui/core';\nimport { Folder as FolderIcon, Undo as UndoIcon } from '@material-ui/icons';\n\nimport { FileDto } from '../Document.interface';\nimport DocumentFileExplorer from './DocumentFileExplorer';\nimport DocumentMultiUpload, {\n DocumentMultiUploadProps\n} from './DocumentMultiUpload';\n\nconst StyledList = styled(List)`\n padding: 0;\n background-color: ${props => props.theme.palette.grey[100]};\n .MuiAvatar-root {\n background-color: ${props => props.theme.palette.primary.main};\n }\n`;\n\nexport interface DocumentUploadDialogProps\n extends Pick<\n DocumentMultiUploadProps,\n 'referenceData' | 'referenceTaskId' | 'referenceMetadata' | 'onDismiss'\n > {\n open: boolean;\n setOpen: (open: boolean) => void;\n}\n\n/**\n * Opens a dialog to pick the Folder upload destination\n * before showing the dialog for uploading Files.\n */\nconst DocumentUploadDialog: React.FC = props => {\n const {\n open,\n referenceData,\n referenceTaskId,\n referenceMetadata,\n setOpen,\n onDismiss\n } = props;\n const [folder, setFolder] = useState();\n return (\n <>\n setOpen(false)}\n onSelectFile={folder => {\n setFolder(folder);\n setOpen(false);\n }}\n />\n {folder && (\n !open && setFolder(undefined)}\n renderContent={manager => (\n \n \n \n \n 0}\n onClick={() => {\n setFolder(undefined);\n setOpen(true);\n }}\n >\n \n \n \n \n \n \n )}\n />\n )}\n \n );\n};\n\nexport default DocumentUploadDialog;\n\ninterface FolderItemProps {\n folder: FileDto | undefined;\n}\n\nconst FolderItem: React.FC = props => {\n const { folder, children } = props;\n return (\n \n \n \n \n \n \n \n \n {children}\n \n \n );\n};\n\ninterface FolderSelectDialogProps {\n open: boolean;\n onCancel?: () => void;\n onSelectFile?: (file: FileDto | undefined) => void;\n}\n\nconst FolderSelectDialog: React.FC = props => {\n const { open, onCancel, onSelectFile } = props;\n const [file, setFile] = useState();\n\n useEffect(() => {\n open && setFile(undefined);\n }, [open]);\n\n return (\n \n Select Destination Folder\n \n \n \n Select the destination folder for upload.\n \n \n {\n setFile(file?.isFolder ? file : undefined);\n }}\n />\n \n \n \n \n \n \n \n \n {\n // handle root dir\n onSelectFile?.(file?.id === -1 ? { ...file, id: 0 } : file);\n }}\n >\n Select Folder\n \n \n \n );\n};\n","import React, { useMemo, useState } from 'react';\nimport { Button, Icon } from '@material-ui/core';\nimport { CoreEvent } from '@sierralabs/core-ui';\nimport {\n AssignEntityEvent,\n AssignEntityWarning,\n SiteButtonConfigurator,\n SiteButtonProps,\n SiteComponent,\n SiteComponentConfigProps,\n SiteComponentPlugin,\n SiteComponentProps,\n useAssignEntityComponent,\n useAssignEntityDisabled,\n useSiteContext,\n useSubscribeComponentChanges\n} from '@sierralabs/site-ui';\n\nimport AppSnackbar from '../common/AppSnackbar';\nimport DocumentUploadDialog from '../secure-portal/documents/components/DocumentUploadDialog';\nimport { ReferenceData } from '../secure-portal/documents/Document.interface';\nimport { useUserContext } from '../user/User.context';\n\nexport interface QmsFileUploadButtonProps extends SiteButtonProps {}\n\nexport const QmsFileUploadButton: React.FC<\n SiteComponentProps\n> = props => {\n const component = useSubscribeComponentChanges(\n QmsFileUploadButtonPlugin,\n props\n );\n const { editing, isHover, hoverProps } = useSiteContext();\n const assignEntity = useAssignEntityComponent(component);\n const { assign, disabled, entityDataId } =\n useAssignEntityDisabled(assignEntity);\n const can = useUserContext().permissions.file;\n const [open, setOpen] = useState(false);\n const [successMessage, setSuccessMessage] = useState();\n const classes = ['qms-file-upload-button'];\n if (isHover(component)) {\n classes.push('component-hover');\n }\n const className = classes.join(' ');\n const buttonProps = component.props || {};\n const buttonViewProps = !editing\n ? { ...hoverProps(component), className }\n : undefined;\n const { relations, tableName } = assign;\n\n const referenceData: ReferenceData = useMemo(() => {\n return {\n id: entityDataId,\n tableName: tableName || '',\n relations: relations || []\n };\n }, [entityDataId, relations, tableName]);\n\n const button = (\n {buttonProps.endIcon}}\n startIcon={buttonProps.startIcon && {buttonProps.startIcon}}\n {...buttonViewProps}\n onClick={() => !editing && assignEntity?.id && setOpen(true)}\n >\n {buttonProps.text || 'Button'}\n \n );\n\n return (\n \n {editing ? (\n
\n {button}\n
\n ) : (\n button\n )}\n {\n const { success } = progress;\n if (success > 0) {\n setSuccessMessage(`Number of files uploaded: ${success}`);\n // refresh assign entity card\n const id = assignEntity?.id;\n if (id && shouldFetch) {\n CoreEvent.dispatch(AssignEntityEvent.Assign, { id });\n }\n }\n }}\n />\n setSuccessMessage(undefined)}\n >\n {successMessage}\n \n
\n );\n};\n\nexport const QmsFileUploadButtonConfigurator: React.FC<\n SiteComponentConfigProps\n> = props => {\n return (\n <>\n \n \n \n );\n};\n\nexport const QmsFileUploadButtonPlugin: SiteComponentPlugin =\n {\n name: 'QMS File Upload Button',\n type: 'qms-file-upload-button',\n component: QmsFileUploadButton,\n configurator: QmsFileUploadButtonConfigurator,\n initConfig: component => {\n if (!component.props) component.props = {};\n component.props.color = 'primary';\n component.props.variant = 'outlined';\n component.props.text = 'Upload Files';\n component.props.startIcon = 'cloud_upload';\n return component;\n }\n };\n","import { useState, useEffect } from 'react';\n\nexport function useDebounce(value: T, delay: number): T {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const handler: ReturnType = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [delay, value]);\n\n return debouncedValue;\n}\n","import { useEffect, useCallback } from 'react';\n\nimport {\n useApiGet,\n useApiPatch,\n useApiPost,\n useApiDelete,\n useApiPut\n} from '../../common/api/Api.hooks';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { Role } from '../roles/Role.interface';\nimport { Group } from './Group.interface';\n\nexport function useFindGroups(shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet>(\n 'groups'\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return { groupList: data, isLoading, error, get };\n}\n\nexport function useCreateGroup() {\n const { data, isLoading, error, post } = useApiPost('groups');\n return { group: data, isLoading, error, post };\n}\n\nexport function useFindGroup(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet(`groups/${id}`);\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, id, shouldFetchOnMount]);\n return { group: data, isLoading, error, get };\n}\n\nexport function useUpdateGroup(id: number) {\n const { data, isLoading, error, patch } = useApiPatch(`groups/${id}`);\n return { group: data, isLoading, error, patch };\n}\n\nexport function useDeleteGroup(id: number) {\n const { data, isLoading, error, del } = useApiDelete(`groups/${id}`);\n return { group: data, isLoading, error, del };\n}\n\nexport function useGetGroupsByIds(ids: number[], shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet>(\n 'groups'\n );\n const getGroups = useCallback(() => {\n get({ ids: ids.join(','), limit: 100 });\n }, [get, ids]);\n useEffect(() => {\n if (shouldFetchOnMount) {\n getGroups();\n }\n }, [get, getGroups, ids, shouldFetchOnMount]);\n return {\n groups: data,\n isLoading,\n error,\n getGroups\n };\n}\n\nexport function useFindGroupRoles(groupId: number) {\n const { data, isLoading, error, get } = useApiGet(\n `groups/${groupId}/roles`\n );\n return {\n groupRoles: data,\n loadingGroupRoles: isLoading,\n errorLoadingGroupRoles: error,\n findGroupRoles: get\n };\n}\n\nexport function useAddRolesToGroup(groupId: number) {\n const { data, isLoading, error, put } = useApiPut(\n `groups/${groupId}/roles`\n );\n const addRolesToGroup = useCallback(\n (roleId: number | number[], applyUserRoleChanges: boolean) =>\n put({\n roleIds: Array.isArray(roleId) ? roleId : [roleId],\n applyUserRoleChanges\n }),\n [put]\n );\n return {\n updatedGroupRoles: data,\n updatingGroupRoles: isLoading,\n errorUpdatingGroupRoles: error,\n addRolesToGroup\n };\n}\n\nexport function useRemoveRolesFromGroup(groupId: number) {\n const { data, isLoading, error, del } = useApiDelete(\n `groups/${groupId}/roles`\n );\n const removeUsersFromGroup = useCallback(\n (roleId: number | number[], applyUserRoleChanges: boolean) =>\n del({ roleId, applyUserRoleChanges }),\n [del]\n );\n return {\n updatedGroupRoles: data,\n updatingGroupRoles: isLoading,\n errorUpdatingGroupRoles: error,\n removeUsersFromGroup\n };\n}\n\nexport function useAddUsersToGroup(groupId: number) {\n const { data, isLoading, error, put } = useApiPut(\n `groups/${groupId}/users`\n );\n const addUsersToGroup = useCallback(\n (userId: number | number[], applyUserRoleChanges: boolean) =>\n put({\n userIds: Array.isArray(userId) ? userId : [userId],\n applyUserRoleChanges\n }),\n [put]\n );\n return {\n data,\n isLoading,\n error,\n addUsersToGroup\n };\n}\n\nexport function useRemoveUsersFromGroup(groupId: number) {\n const { data, isLoading, error, del } = useApiDelete(\n `groups/${groupId}/users`\n );\n const removeUsersFromGroup = useCallback(\n (userId: number | number[], applyUserRoleChanges: boolean) =>\n del({ userId, applyUserRoleChanges }),\n [del]\n );\n return {\n data,\n isLoading,\n error,\n removeUsersFromGroup\n };\n}\n","import React, { useEffect, useMemo, useState } from 'react';\n\nimport { TextField, TextFieldProps } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { ApiParams } from '../../../common/api/api';\nimport { useFindGroups } from '../../groups/Group.hooks';\nimport { Group } from '../../groups/Group.interface';\n\nfunction compareIds(id: number, value: number | number[] | undefined): boolean {\n return Array.isArray(value) ? value.includes(id) : id === value;\n}\n\nexport interface BaseGroupSelectorProps {\n disabled?: boolean;\n filterIds?: number[];\n textFieldProps?: Omit;\n}\n\nexport interface GroupSelectorSingleProps extends BaseGroupSelectorProps {\n value?: number;\n multiple?: false;\n onChange?: (group: Group | null) => void;\n}\n\nexport interface GroupSelectorMultipleProps extends BaseGroupSelectorProps {\n value?: number[];\n multiple: boolean;\n onChange?: (groups: Group[]) => void;\n}\n\nexport type GroupSelectorProps =\n | GroupSelectorSingleProps\n | GroupSelectorMultipleProps;\n\nconst GroupSelector: React.FC = (\n props: GroupSelectorProps\n) => {\n const { value, disabled, multiple = false, textFieldProps, onChange } = props;\n const [groupOptions, setGroupOptions] = useState([]);\n const { groupList, isLoading, get: findGroups } = useFindGroups();\n const filterIds = (props.filterIds || []).join(',');\n // re-render when value changes\n const key: string | number | undefined = Array.isArray(value)\n ? value.join(', ')\n : value;\n\n useEffect(() => {\n groupList?.data && setGroupOptions(groupList?.data);\n }, [groupList]);\n\n useEffect(() => {\n const params: ApiParams = {};\n if (filterIds) {\n params.ids = filterIds;\n }\n findGroups(params);\n }, [filterIds, findGroups]);\n\n const group: Group | Group[] | null = useMemo(() => {\n const groups: Group[] = groupOptions.filter((option: Group) => {\n return compareIds(option.id, value);\n });\n return multiple ? groups : groups.shift() || null;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [key, value, groupOptions, multiple]);\n\n return (\n option.name}\n getOptionSelected={option => compareIds(option.id, value)}\n onChange={(_, value) => onChange?.(value as any)}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default GroupSelector;\n","export const CapaFieldLabels = {\n title: 'Title',\n summary: 'Summary',\n source: 'Source',\n sourceReference: 'Source Reference',\n description: 'Description',\n capaOwner: 'Capa Owner',\n severity: 'Severity',\n probability: 'Probability',\n correctiveActions: 'Corrective Actions',\n investigator: 'Investigator',\n rootCause: 'Root Cause',\n rootCauseRationale: 'Root Cause Rationale',\n preventiveAction: 'Preventive Action',\n trainingNeeded: 'Training Needed',\n verification: 'Verification',\n attachment: 'Attachments',\n assignTask: 'Assign Task',\n taskFiles: 'Document References'\n} as const;\n\nexport type CapaField = keyof typeof CapaFieldLabels;\n\nexport const CapaFields: CapaField[] = Object.keys(\n CapaFieldLabels\n) as CapaField[];\n","export const RiskFieldLabels = {\n title: 'Title',\n relatedHazard: 'Mitigation',\n hazardSituation: 'Hazard Situation',\n potentialHarm: 'Potential Harm',\n potentialCauses: 'Potential Cause',\n category: 'Category',\n relevance: 'Relevance',\n currentControls: 'Current Controls',\n residualRisk: 'Residual Risk',\n recommendedActions: 'Recommended Actions',\n actionsTaken: 'Actions Taken',\n verification: 'Verification',\n p1: 'P1',\n s1: 'S2',\n d1: 'D1',\n p2: 'P2',\n s2: 'S2',\n d2: 'D2',\n assignTask: 'Assign Task',\n attachment: 'Attachments',\n taskFiles: 'Document References',\n assignUserNeeds: 'Assign User Needs',\n assignDesignInputs: 'Assign Design Inputs',\n assignDesignOutputs: 'Assign Design Outputs'\n} as const;\n\nexport type RiskField = keyof typeof RiskFieldLabels;\n\nexport const RiskFields: RiskField[] = Object.keys(\n RiskFieldLabels\n) as RiskField[];\n","export const ScarFieldLabels = {\n description: 'Problem Description',\n rootCause: 'Root Cause',\n containmentAction: 'Containment Action',\n containmentCompletedDate: 'Containment Completion Date',\n permanentCorrectiveAction: 'Permanent Corrective Action',\n premanentCorrectiveActionDate: 'Permanent Corrective Action Date',\n correctiveActionVerification: 'Verification of Corrective Action',\n attachments: 'Evidence of effectiveness',\n taskFiles: 'Document References'\n} as const;\n\nexport type ScarField = keyof typeof ScarFieldLabels;\n\nexport const ScarFields: ScarField[] = Object.keys(\n ScarFieldLabels\n) as ScarField[];\n","export const TrainingFieldLabels = {\n name: 'Name',\n description: 'Description',\n groups: 'Training Groups',\n sections: 'Training Sections',\n frequency: 'Recurring Schedule',\n taskFiles: 'Document References',\n changeOrders: 'Change Orders',\n attachment: 'Attachments'\n} as const;\n\nexport type TrainingField = keyof typeof TrainingFieldLabels;\n\nexport const TrainingFields: TrainingField[] = Object.keys(\n TrainingFieldLabels\n) as TrainingField[];\n","export const SupplierFieldLabels = {\n companyName: 'Company Name',\n contactName: 'Contact Name',\n email: 'Email Address',\n phoneNumber: 'Phone Number',\n address: 'Address',\n numberOfLocations: 'Number of Locations',\n primaryLocation: 'Primary Location',\n numberOfEmployees: 'Number of Employees',\n productServices: 'Product/Services Offered',\n hasQualityProgram: 'Has Quality Program?',\n qualityProgramBasedOn: 'System quality program is based on?',\n seperateFromProductionDepartment:\n 'Quality program separate from Production Department?',\n seperateFromProductionDepartmentDescription: 'If no to the above, explain',\n hasCurrentQualityManual: 'Is there up to date quality manual?',\n hasOrganizationChart: 'Has organization chart?',\n hasTechnicalDataControl: 'Has technical data control?',\n hasDocumentRetentionControl: 'Has document retention control?',\n hasTrainingLogs: 'Has training logs?',\n hasShelfLifeProgram: 'Has shelf life program?',\n hasQualityControl: 'Has quality control?',\n hasReceivingInspectionProcedures: 'Has Receiving inspection procedures?',\n hasCalibrationProgram:\n 'An outline of the tool and gauge calibration program?',\n hasRevisions: 'A revision page which reflects revisions?',\n qualityReviewProcedure:\n 'How often Is the Quality Manual reviewed and by whom?',\n isQualityManualAvailable:\n 'Is the Quality Manual readily available to employees?',\n attachments:\n 'Upload any documents that you feel would support this evaluation',\n hasPassFailCriteria: 'Criteria for acceptance/rejection',\n hasMeasurementVerification:\n 'Type of measurements/verification to be performed',\n hasMeasurementResults: 'A record of measurement results',\n hasQualityEvidenceProgram:\n 'Do records provide evidence that the product meets the defined requirements?',\n hasNonconformanceProgram:\n 'Is there a documented procedure in place for control and disposition of a non-conforming product?',\n hasInternalAuditProgram:\n 'Is there an internal audit function, with audits and corrective actions maintained on file?',\n noInternalAuditProgramExplain:\n 'If you answered NO or N/A to the question above, please explain:',\n internalAuditSchedule: 'How often are internal audits conducted?',\n hasCustomerComplaintProgram:\n 'Is there a mechanism for handling customer complaints?',\n hasRootCauseAnalysisProgram:\n 'Is analysis performed to identify root causes of problems/failures?',\n hasCorrectiveActionProgram:\n 'Is there a Corrective/Preventive Action program in place?',\n hasCorrectiveActionProgramRetrospective:\n 'Is there a process for actions to be taken when timely or effective corrective actions are not achieved?',\n nextReviewDate: 'Next Review Date',\n completed: 'Evaluation Completion Date',\n taskFiles: 'Document References'\n} as const;\n\nexport type SupplierField = keyof typeof SupplierFieldLabels;\n\nexport const SupplierFields: SupplierField[] = Object.keys(\n SupplierFieldLabels\n) as SupplierField[];\n","export const SporFieldLabels = {\n requesterName: 'Requester Name',\n requesterPhoneNumber: 'Requester Phone Number',\n requesterDepartment: 'Requester Department',\n supplierId: 'Supplier',\n quote: 'Order Quote',\n attachments: 'Attachments',\n taxes: 'Taxes',\n fees: 'Fees',\n shipping: 'Shipping',\n totalCost: 'Total Cost',\n orderDate: 'Order Date',\n taskFiles: 'Document References'\n} as const;\n\nexport type SporField = keyof typeof SporFieldLabels;\n\nexport const SporFields: SporField[] = Object.keys(\n SporFieldLabels\n) as SporField[];\n","export const DocumentFieldLabels = {\n name: 'Name',\n attachment: 'Attachments',\n assignOwner: 'Assign Owner',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n assignChangeOrders: 'Assign Change Orders',\n internalDocumentId: 'Internal Document Id',\n rev: 'Rev',\n descriptionOfChange: 'Description of Change',\n reasonForChange: 'Reason for Change',\n uploadNewFile: 'Upload New File'\n} as const;\n\nexport type DocumentField = keyof typeof DocumentFieldLabels;\n\nexport const DocumentFields: DocumentField[] = Object.keys(\n DocumentFieldLabels\n) as DocumentField[];\n","export const ProductUserNeedFieldLabels = {\n title: 'Title',\n risk: 'Risk',\n description: 'Description',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n assignDesignInput: 'Assign Design Inputs',\n assignDesignSpec: 'Assign Design Specification',\n assignValidation: 'Assign Validation',\n assignVerification: 'Assign Verifications',\n assignHazard: 'Assign Hazards',\n attachment: 'Attachments',\n components: 'Components',\n release: 'Release'\n} as const;\n\nexport type ProductUserNeedField = keyof typeof ProductUserNeedFieldLabels;\n\nexport const ProductUserNeedFields: ProductUserNeedField[] = Object.keys(\n ProductUserNeedFieldLabels\n) as ProductUserNeedField[];\n","export const ProductDesignInputFieldLabels = {\n title: 'Title',\n essentialRequirements: 'Essential Requirements',\n risk: 'Risk',\n description: 'Description',\n verificationMethod: 'Verification Method',\n whenToVerify: 'When to Verify',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n assignUserNeed: 'Assign User Need',\n assignDesignOutput: 'Assign Design Output',\n assignVerification: 'Assign Verification',\n assignValidation: 'Assign Validation',\n assignDesignSpec: 'Assign Design Spec',\n attachment: 'Attachments',\n components: 'Components',\n release: 'Release'\n} as const;\n\nexport type ProductDesignInputField =\n keyof typeof ProductDesignInputFieldLabels;\n\nexport const ProductDesignInputFields: ProductDesignInputField[] = Object.keys(\n ProductDesignInputFieldLabels\n) as ProductDesignInputField[];\n","export const ProductDesignOutputFieldLabels = {\n title: 'Title',\n essentialRequirements: 'Essential Requirements',\n description: 'Description',\n relatedHazard: 'Mitigation',\n hazardSituation: 'Hazard Situation',\n potentialHarm: 'Potential Harm',\n potentialCauses: 'Potential Cause',\n relevance: 'Relevance',\n currentControls: 'Current Controls',\n residualRisk: 'Residual Risk',\n recommendedActions: 'Recommended Actions',\n actionsTaken: 'Actions Taken',\n verification: 'Verification',\n p1: 'P1',\n s1: 'S2',\n d1: 'D1',\n p2: 'P2',\n s2: 'S2',\n d2: 'D2',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n assignDesignInput: 'Assign Design Inputs',\n assignVerification: 'Assign Verifications',\n assignValidation: 'Assign Validations',\n assignDesignSpec: 'Assign Design Spec',\n attachment: 'Attachments',\n components: 'Components',\n release: 'Release'\n} as const;\n\nexport type ProductDesignOutputField =\n keyof typeof ProductDesignOutputFieldLabels;\n\nexport const ProductDesignOutputFields: ProductDesignOutputField[] =\n Object.keys(ProductDesignOutputFieldLabels) as ProductDesignOutputField[];\n","export const ProductVerificationFieldLabels = {\n title: 'Title',\n description: 'Description',\n testScriptEditor: 'Test Script Editor',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n designOutput: 'Design Output Reference',\n attachment: 'Attachments',\n components: 'Components',\n release: 'Release'\n} as const;\n\nexport type ProductVerificationField = keyof typeof ProductVerificationFieldLabels;\n\nexport const ProductVerificationFields: ProductVerificationField[] = Object.keys(\n ProductVerificationFieldLabels\n) as ProductVerificationField[];\n","export const ProductValidationFieldLabels = {\n title: 'Title',\n description: 'Description',\n testScriptEditor: 'Test Script Editor',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n assignUserNeed: 'User Need Reference',\n assignDesignInput: 'Design Input Reference',\n attachment: 'Attachments',\n components: 'Components',\n release: 'Release'\n} as const;\n\nexport type ProductValidationField = keyof typeof ProductValidationFieldLabels;\n\nexport const ProductValidationFields: ProductValidationField[] = Object.keys(\n ProductValidationFieldLabels\n) as ProductValidationField[];\n","export const ProductDesignSpecFieldLabels = {\n title: 'Title',\n description: 'Description',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n assignUserNeed: 'Assign User Need Reference',\n attachment: 'Attachments',\n components: 'Components',\n release: 'Release'\n} as const;\n\nexport type ProductDesignSpecField = keyof typeof ProductDesignSpecFieldLabels;\n\nexport const ProductDesignSpecFields: ProductDesignSpecField[] = Object.keys(\n ProductDesignSpecFieldLabels\n) as ProductDesignSpecField[];\n","export * from './fields/ProductUserNeed.fields';\nexport * from './fields/ProductDesignInput.fields';\nexport * from './fields/ProductDesignOutput.fields';\nexport * from './fields/ProductVerification.fields';\nexport * from './fields/ProductValidation.fields';\nexport * from './fields/ProductDesignSpec.fields';\n\nexport const ProductFieldLabels = {\n name: 'Name',\n description: 'Description',\n identifier: 'Identifier',\n regionsMarketed: 'Regions Marketed',\n intendedUse: 'Intended Use',\n productOwner: 'Product Owner',\n techLead: 'Tech Lead',\n components: 'Components',\n releases: 'Releases',\n attachment: 'Attachments',\n taskFiles: 'Document References'\n} as const;\n\nexport type ProductField = keyof typeof ProductFieldLabels;\n\nexport const ProductFields: ProductField[] = Object.keys(\n ProductFieldLabels\n) as ProductField[];\n","export const CauseInputFieldLabels = {\n title: 'Title',\n description: 'Description',\n initialHarm: 'Initial Probability',\n initialRisk: 'Initial Risk',\n residualHarm: 'Residual Probability',\n residualRisk: 'Residual Risk',\n attachment: 'Attachments',\n assignTask: 'Assign Task',\n assignControls: 'Assign Controls',\n taskFiles: 'Document References'\n} as const;\n\nexport type HazardCauseInputField = keyof typeof CauseInputFieldLabels;\n\nexport const CauseInputFields: HazardCauseInputField[] = Object.keys(\n CauseInputFieldLabels\n) as HazardCauseInputField[];\n","export const ControlInputFieldLabels = {\n title: 'Title',\n description: 'Description',\n controlVerification: 'Control Verification',\n attachment: 'Attachments',\n assignTask: 'Assign Task',\n assignCauses: 'Assign Causes',\n assignActions: 'Assign Actions',\n assignDesignOutputs: 'Assign Design Outputs',\n assignVerifications: 'Assign Verifications',\n assignValidations: 'Assign Validations',\n taskFiles: 'Document References'\n} as const;\n\nexport type HazardControlInputField = keyof typeof ControlInputFieldLabels;\n\nexport const ControlInputFields: HazardControlInputField[] = Object.keys(\n ControlInputFieldLabels\n) as HazardControlInputField[];\n","export const ActionInputFieldLabels = {\n title: 'Title',\n description: 'Description',\n attachment: 'Attachments',\n assignTask: 'Assign Task',\n assignControls: 'Assign Controls',\n taskFiles: 'Document References'\n} as const;\n\nexport type HazardActionInputField = keyof typeof ActionInputFieldLabels;\n\nexport const ActionInputFields: HazardActionInputField[] = Object.keys(\n ActionInputFieldLabels\n) as HazardActionInputField[];\n","export * from './fields/HazardCauseInput.fields';\nexport * from './fields/HazardControlInput.fields';\nexport * from './fields/HazardActionInput.fields';\n\nexport const HazardFieldLabels = {\n title: 'Title',\n category: 'Category',\n otherCategory: 'Other Category',\n description: 'Description',\n harm: 'Harm',\n hazardOwner: 'Hazard Owner',\n techLead: 'Tech Lead',\n initialSeverity: 'Initial Severity',\n initialProbability: 'Initial Probability',\n initialRisk: 'Initial Risk',\n residualSeverity: 'Residual Severity',\n residualProbability: 'Residual Probability',\n residualRisk: 'Residual Risk',\n riskJustification: 'Risk Justification',\n benefitRiskAnalysis: 'Benefit-Risk Analysis',\n comments: 'Comments',\n assignUserNeeds: 'Assign User Needs',\n assignDesignInputs: 'Assign Design Inputs',\n taskFiles: 'Document References'\n} as const;\n\nexport type HazardField = keyof typeof HazardFieldLabels;\n\nexport const HazardFields: HazardField[] = Object.keys(\n HazardFieldLabels\n) as HazardField[];\n","import React, {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState\n} from 'react';\nimport { useLocation } from 'react-router';\nimport { Workflow } from '@sierralabs/workflow';\n\nimport api, { ApiParams, FetchError, FetchMethod } from '../../common/api/api';\nimport AppSnackbar from '../../common/AppSnackbar';\nimport { parseDateFields } from '../../common/api/Api.hooks';\nimport { TaskType } from '../task-types/TaskType.interface';\nimport { Task } from '../tasks/Task.interface';\nimport { WorkflowDto, WorkflowVersion } from './Workflow.interface';\n\n// can be Task, taskTypeName, or workflowId\nexport type GetWorkflowParamType =\n | Pick\n | string\n | number\n | undefined;\n\nexport function getTaskTypeOrIdValue(\n param: GetWorkflowParamType\n): string | number | undefined {\n if (typeof param === 'object') {\n const { workflowId, taskTypeName } = param || {};\n return taskTypeName ? taskTypeName : workflowId ? workflowId : undefined;\n }\n return param;\n}\n\n// use api.fetch instead of hook to avoid console errors related to\n// updating parent component (WorkflowProvider) while rendering child components\nasync function fetchWorkflowVersion(\n taskTypeOrId: string | number,\n params?: ApiParams\n): Promise {\n try {\n const url: string =\n typeof taskTypeOrId === 'number'\n ? `workflows/version/${taskTypeOrId}`\n : `workflows/version/task-type/${taskTypeOrId}`;\n const { response } = api.fetch(FetchMethod.Get, url, params);\n const result: Response = await response;\n if (result.ok) {\n const json: any = await result.json();\n return parseDateFields(json) as WorkflowVersion | undefined;\n }\n } catch {}\n}\n\nexport interface WorkflowWrapper {\n id: number;\n taskType: Pick | undefined;\n /** Task Type name value. */\n taskTypeName: WorkflowDto['taskTypeName'];\n workflow: Workflow;\n}\n\nexport interface WorkflowContextState {\n workflows: WorkflowWrapper[];\n error?: FetchError;\n setError: (error: FetchError | undefined) => void;\n getWorkflow: (\n param: GetWorkflowParamType,\n params?: ApiParams\n ) => Workflow | undefined;\n loadWorkflow: (taskTypeOrId: string | number) => void;\n}\n\nconst WorkflowContext = createContext({\n workflows: [],\n setError: () => {},\n getWorkflow: () => undefined,\n loadWorkflow: () => {}\n});\n\nexport function useWorkflowContext(): WorkflowContextState {\n const context: WorkflowContextState = useContext(WorkflowContext);\n if (!context) {\n throw new Error(\n 'useWorkflowContext must be used within the WorkflowProvider component.'\n );\n }\n return context;\n}\n\nconst WorkflowProvider: React.FC = ({ children }) => {\n const { key } = useLocation();\n const errorRef = useRef();\n const workflowsRef = useRef([]);\n // save currently fetching to avoid multiple and\n // simultaneous fetches for the same workflowVersion\n const isFetchingRef = useRef>([]);\n const [error, setErrorState] = useState();\n const [workflows, setWorkflows] = useState([]);\n\n const addWorkflow = useCallback((workflowVersion: WorkflowVersion) => {\n const { taskType, taskTypeName } = workflowVersion.workflow || {};\n // check wrapper for existing taskType\n const index: number = workflowsRef.current.findIndex(\n (workflow: WorkflowWrapper) => {\n // check with workflowId if no taskType\n return taskTypeName\n ? workflow.taskTypeName === taskTypeName\n : workflow.id === workflowVersion.workflowId;\n }\n );\n const newWorkflow: WorkflowWrapper = {\n taskType,\n taskTypeName,\n id: workflowVersion.workflowId,\n workflow: new Workflow(workflowVersion.config)\n };\n\n if (index > -1) {\n workflowsRef.current.splice(index, 1, newWorkflow);\n } else {\n workflowsRef.current.push(newWorkflow);\n }\n // update workflows\n setWorkflows([...workflowsRef.current]);\n }, []);\n\n const findWorkflowVersion = useCallback(\n (taskTypeOrId: string | number, params?: ApiParams) => {\n // skip if currently fetching\n if (isFetchingRef.current.includes(taskTypeOrId)) {\n return;\n }\n\n const fetch = async () => {\n const workflowVersion: WorkflowVersion | undefined =\n await fetchWorkflowVersion(taskTypeOrId, params);\n\n workflowVersion && addWorkflow(workflowVersion);\n // remove from isFetching\n const index: number = isFetchingRef.current.indexOf(taskTypeOrId);\n if (index > -1) {\n isFetchingRef.current.splice(index, 1);\n }\n };\n\n isFetchingRef.current.push(taskTypeOrId);\n fetch();\n },\n [addWorkflow]\n );\n\n const getWorkflow = useCallback(\n (param: GetWorkflowParamType, params?: ApiParams): Workflow | undefined => {\n const taskTypeOrId: string | number | undefined =\n getTaskTypeOrIdValue(param);\n if (!taskTypeOrId) {\n return undefined;\n }\n\n const workflow: WorkflowWrapper | undefined = workflowsRef.current.find(\n (workflow: WorkflowWrapper) => {\n return typeof taskTypeOrId === 'number'\n ? workflow.id === taskTypeOrId\n : workflow.taskTypeName === taskTypeOrId;\n }\n );\n\n if (workflow) {\n return workflow.workflow;\n }\n // fetch workflow version if it does not exist yet\n findWorkflowVersion(taskTypeOrId, params);\n },\n // trigger hooks using this callback when workflows count changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [findWorkflowVersion, workflowsRef.current.length]\n );\n\n const loadWorkflow = useCallback(\n (taskTypeOrId: string | number) => {\n if (taskTypeOrId) {\n findWorkflowVersion(taskTypeOrId);\n }\n },\n [findWorkflowVersion]\n );\n\n const setError = useCallback((newError: FetchError | undefined) => {\n if (newError?.message !== errorRef.current?.message) {\n errorRef.current = newError;\n setErrorState(newError);\n }\n }, []);\n\n // clear error when changing pages\n useEffect(() => {\n errorRef.current = undefined;\n setErrorState(undefined);\n }, [key]);\n\n return (\n \n {children}\n \n {error?.message}\n \n \n );\n};\n\nexport default WorkflowProvider;\n","export const ChangeOrderFieldLabels = {\n name: 'Name',\n description: 'Description',\n typeOfChange: 'Type of Change',\n reasonForChange: 'Reason for Change',\n requestDate: 'Request Date',\n requestor: 'Requestor',\n impactOfChange: 'Impact of Change',\n changeToTrainingMatrix: 'Change to Training Matrix',\n comments: 'Comments',\n assetInventoryNeedUpdated: 'Asset Inventory Update',\n accessMatrixNeedUpdated: 'Access Matrix Update',\n requireRiskAssessment: 'Require Risk Management',\n requireAssetDowntime: 'Require Asset Downtime',\n itDueDate: 'IT Due Date',\n itCompletedDate: 'IT Completed Date',\n itComments: 'IT Comments',\n openPo: 'Open Po',\n incomingInspection: 'Incoming Inspection',\n wip: 'WIP',\n fg: 'FG',\n quarantineOrHold: 'Quarantine Or Hold',\n field: 'Field',\n invDueDate: 'Inventory Due Date',\n invCompletedDate: 'Inventory Completed Date',\n commentsInventory: 'Comments Inventory',\n fieldActionReview: 'Field Action Review',\n hazardAssessmentReview: 'Hazard Assessment Review',\n designVerificationReview: 'Design Verification Review',\n designReviewAttached: 'Design Review Attached',\n changeCompatibility: 'Change Compatibility',\n manufacturingQualityImpact: 'Manufacturing Quality Impact',\n changeSupplierImpact: 'Change Supplier Impact',\n productRegulatoryImpact: 'Product Regulatory Impact',\n changeSoftwareModification: 'Change Software Modification',\n dhfiUpdated: 'DHFI Updated',\n productDueDate: 'Product Due Date',\n productCompletedDate: 'Product Completed Date',\n commentsProduct: 'Comments Product',\n labelingReview: 'Labeling Review',\n regulatoryRegistrationAffected: 'Regulatory Registration Affected',\n claimsAffected: 'Claims Affected',\n udiAffected: 'UDI Affected',\n printedLabelImpact: 'Printed Label Impact',\n labelProgramUpdated: 'Label Program Updated',\n testLabelAttached: 'Test Label Attached',\n lblDueDate: 'Labeling Due Date',\n lblCompletedDate: 'Labeling Completed Date',\n commentsLabeling: 'Comments Labeling',\n processValidationImpact: 'Process Validation Impact',\n pfmeaImpact: 'PFMEA Impact',\n procedureImpact: 'Procedure Impact',\n safetyImpact: 'Safety Impact',\n sdsNeeded: 'SDS Needed',\n equipmentImpact: 'Equipment Impact',\n calibrationImpact: 'Calibration Impact',\n manufacturingRegulatoryImpact: 'Manufacturing Regulatory Impact',\n clinicalTrialImpact: 'Clinical Trial Impact',\n manufacturingDueDate: 'Manufacturing Due Date',\n manufacturingCompletedDate: 'Manufacturing Completed Date',\n commentsManufacturing: 'Comments Manufacturing',\n supplierEvaluationCompleted: 'Supplier Evaluation Completed',\n ndaApplicable: 'NDA Applicable',\n supplierAgreementNeeded: 'Supplier Agreement Needed',\n termsConditionsImpact: 'terms Conditions Impact',\n firstArticleRequired: 'First Article Required',\n inspectionProcedureImpact: 'Inspection Procedure Impact',\n supplierDueDate: 'Supplier Due Date',\n supplierCompletedDate: 'Supplier Completed Date',\n commentsSupplier: 'Comments Supplier',\n triggeredPeriodicReview: 'Triggered Periodic Review',\n qualityChangeComponent: 'Quality Change Component',\n qualityChangeArchitecture: 'Quality Change Architecture',\n qualityChangeRequiredInput: 'Quality Change Required Input',\n qualityChangeNewDiagnostic: 'Quality Change New Diagnostic',\n qualityChangePresentation: 'Quality Change Presentation',\n qualityChangeDataRequired: 'Quality Change Data Required',\n qualityChangeRisks: 'Quality Change Risks',\n qualityChangeIntendedUse: 'Quality Change Intended Use',\n documentInteraction: 'Document Interaction',\n regulationAssessment: 'Regulation Assessment',\n qualityRegulatoryDueDate: 'Quality Regulatory Due Date',\n qualityRegulatoryCompletedDate: 'Quality Regulatory Completed Date',\n commentsQualityDocument: 'Comments Quality Document',\n documentInteractionDescription: 'Document Interaction Description',\n ehsAssessmentDescription: 'EHS Assessment Description',\n regulationAssessmentOther: 'Regulation Assessment Other',\n otherAssessmentDueDate: 'Other Assessment Due Date',\n otherAssessmentCompletedDate: 'Other Assessment Completed Date',\n commentsOther: 'Comments Other',\n implementationNotes: 'Implementation Notes',\n implementationDueDate: 'Implementation Due Date',\n implementationCompletedDate: 'Implementation Completed Date',\n verificationNotes: 'Verification Notes',\n verificationDueDate: 'Verification Due Date',\n verificationCompletedDate: 'Verification Completed Date',\n attachment: 'Attachments',\n assignTask: 'Assign Task',\n taskFiles: 'Document References',\n taskFileVersions: 'Document Version References',\n trainingMatrixNeedUpdated: 'Training Matrix Need Updated',\n changeImpactCompetencyAssessmentRequirements:\n 'Change Impact Competency Assessment Requirements',\n changeRequireOperatorQualifications: 'Change Require Operator Qualifications',\n changeRequireOperatorOrTrainingCertification:\n 'Change Require Operator Or Training Certification'\n} as const;\n\nexport type ChangeOrderField = keyof typeof ChangeOrderFieldLabels;\n\nexport const ChangeOrderFields: ChangeOrderField[] = Object.keys(\n ChangeOrderFieldLabels\n) as ChangeOrderField[];\n","import { useCallback, useEffect, useMemo, useRef } from 'react';\n\nimport { StateNode, Workflow, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport {\n useApiDelete,\n useApiGet,\n useApiPatch,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport { ApiParams, FetchError } from '../../common/api/api';\nimport { useTimeout } from '../../common/timeout.hook';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { useUserContext } from '../../user/User.context';\nimport { CapaField, CapaFieldLabels, CapaFields } from '../capa/Capa.fields';\nimport {\n RiskField,\n RiskFieldLabels,\n RiskFields\n} from '../risk-management/Risk.fields';\nimport { ScarField, ScarFieldLabels, ScarFields } from '../scar/scar.fields';\nimport { Task } from '../tasks/Task.interface';\nimport { parseTaskStatus } from '../tasks/task.helper';\nimport { TaskTypeEntity } from '../task-types/TaskType.interface';\nimport {\n TrainingField,\n TrainingFieldLabels,\n TrainingFields\n} from '../training/Training.fields';\nimport {\n WorkflowDto,\n WorkflowEntity,\n WorkflowListItem,\n WorkflowStatusLog,\n WorkflowVersion,\n WorkflowInvokeEvent,\n WorkflowInvokeAction,\n WorkflowTaskTypeEntity\n} from './Workflow.interface';\nimport {\n SupplierField,\n SupplierFieldLabels,\n SupplierFields\n} from '../supplier/Supplier.fields';\nimport {\n SporField,\n SporFieldLabels,\n SporFields\n} from '../purchase/Spor.fields';\nimport {\n DocumentField,\n DocumentFields,\n DocumentFieldLabels\n} from '../documents/Document.fields';\nimport { Group } from '../groups/Group.interface';\nimport * as PRODUCT from '../products/Product.fields';\nimport * as HAZARD from '../hazards/Hazard.fields';\nimport { useWorkflowContext } from './Workflow.context';\nimport {\n ChangeOrderField,\n ChangeOrderFieldLabels,\n ChangeOrderFields\n} from '../changeOrder/ChangeOrder.fields';\n\nexport function getStatusLabel(status: string) {\n switch (status) {\n case 'draft':\n return 'Draft';\n case 'published':\n return 'Published';\n }\n}\n\nexport function useCreateWorkflow() {\n const { data, isLoading, error, post } = useApiPost('workflows');\n return {\n createdWorkflow: data,\n isCreating: isLoading,\n createError: error,\n createWorkflow: post\n };\n}\n\nexport function useFindWorkflows() {\n const { data, isLoading, error, get } =\n useApiGet>('workflows');\n return {\n workflowList: data,\n isLoading,\n loadingError: error,\n findWorkflows: get\n };\n}\n\nexport function useFindWorkflowList() {\n const { data, isLoading, error, get } =\n useApiGet>('workflows/list');\n return {\n workflowList: data,\n isLoading,\n loadingError: error,\n findWorkflows: get\n };\n}\n\nexport function useFindWorkflow(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet(\n `workflows/${id}`\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return { workflow: data, isLoading, loadingError: error, findWorkflow: get };\n}\n\nexport function useFindWorkflowVersionByEntity(entity: WorkflowEntity) {\n const { data, isLoading, error, get } = useApiGet(\n `workflows/version/${entity}`\n );\n return {\n workflowVersion: data,\n isLoading,\n loadingError: error,\n findWorkflowVersion: get\n };\n}\n\nexport function useFindWorkflowVersionByTaskType(taskType: string) {\n const { data, isLoading, error, get } = useApiGet(\n `workflows/version/task-type/${taskType}`\n );\n return {\n workflowVersion: data,\n isLoading,\n loadingError: error,\n findWorkflowVersion: get\n };\n}\n\nexport function useFindWorkflowsByTaskTypeTarget(targetEntity: TaskTypeEntity) {\n const { data, isLoading, error, get } = useApiGet(\n `workflows/task-type/${targetEntity}`\n );\n return {\n workflows: data,\n isLoading,\n loadingError: error,\n findWorkflows: get\n };\n}\n\nexport function useUpdateWorkflow(id: number | undefined) {\n const { data, isLoading, error, patch } = useApiPatch(\n `workflows/${id}`\n );\n return {\n updatedWorkflow: data,\n isUpdating: isLoading,\n updateError: error,\n updateWorkflow: patch\n };\n}\n\nexport function useDeleteWorkflow(id: number | undefined) {\n const { data, isLoading, error, del } = useApiDelete(\n `workflows/${id}`\n );\n return {\n deletedWorkflow: data,\n deletingWorkflow: isLoading,\n deletedWorkflowError: error,\n deleteWorkflow: del\n };\n}\n\nexport function useUpdateWorkflowConfig(id: number | undefined) {\n const { data, isLoading, error, patch } = useApiPatch(\n `workflows/${id}/config`\n );\n return {\n updatedWorkflow: data,\n isUpdating: isLoading,\n updateError: error,\n updateWorkflowConfig: patch\n };\n}\n\nexport function useRevertWorkflow(id: number) {\n const { data, isLoading, error, post } = useApiPost(\n `workflows/${id}/revert`\n );\n return { workflow: data, isLoading, error, revert: post };\n}\n\nexport function useGetStatusLogs(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`workflows/${id}/status-log`);\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return { workflowStatusLogs: data, isLoading, error, get };\n}\n\nexport function useGetWorkflowVersions(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet(\n `workflows/${id}/versions`\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return { workflowVersions: data, isLoading, error, get };\n}\n\n/**\n * Replace old `rootNode` from status if it does not match.\n */\nexport function parseWorkflowStatus(status?: string, workflow?: Workflow) {\n if (typeof status === 'undefined' || !workflow) {\n return status;\n }\n // prepend rootNode to status value if it does not match\n const rootNode = `/${workflow.stateNode.name}/`;\n const taskStatus = status.startsWith(rootNode)\n ? status\n : rootNode + parseTaskStatus(status);\n return taskStatus;\n}\n\n/**\n * Get StateNode based on `task.status` (wrapper for `workflow.getState(status)`).\n *\n * Handles possible old `rootNode` values when Workflow gets renamed.\n */\nexport function getStateNodeByStatus(\n status?: string,\n workflow?: Workflow\n): StateNode | undefined {\n const taskStatus = parseWorkflowStatus(status, workflow);\n return workflow && typeof taskStatus === 'string'\n ? workflow.getState(taskStatus)\n : undefined;\n}\n\n// useMemo wrapper for getStateNodeByStatus\nexport function useStateNodeByStatus(\n status?: string,\n workflow?: Workflow\n): StateNode | undefined {\n return useMemo(() => {\n return getStateNodeByStatus(status, workflow);\n }, [status, workflow]);\n}\n\nexport type WorkflowField =\n | 'assignSubTasks'\n | (Entity extends WorkflowEntity.Capa | TaskTypeEntity.Capa\n ? CapaField\n : Entity extends WorkflowEntity.File | TaskTypeEntity.File\n ? DocumentField\n : Entity extends WorkflowEntity.Risk | TaskTypeEntity.Risk\n ? RiskField\n : Entity extends WorkflowEntity.Training | TaskTypeEntity.Training\n ? TrainingField\n : Entity extends WorkflowEntity.Supplier | TaskTypeEntity.Supplier\n ? SupplierField\n : Entity extends WorkflowEntity.Scar | TaskTypeEntity.Scar\n ? ScarField\n : Entity extends WorkflowEntity.Spor | TaskTypeEntity.Spor\n ? SporField\n : Entity extends WorkflowEntity.Product | TaskTypeEntity.Product\n ? PRODUCT.ProductField\n : Entity extends WorkflowEntity.UserNeed | TaskTypeEntity.UserNeed\n ? PRODUCT.ProductUserNeedField\n : Entity extends WorkflowEntity.DesignInput | TaskTypeEntity.DesignInput\n ? PRODUCT.ProductDesignInputField\n : Entity extends WorkflowEntity.DesignOutput | TaskTypeEntity.DesignOutput\n ? PRODUCT.ProductDesignOutputField\n : Entity extends WorkflowEntity.DesignSpec | TaskTypeEntity.DesignSpec\n ? PRODUCT.ProductDesignSpecField\n : Entity extends\n | WorkflowEntity.DesignVerification\n | TaskTypeEntity.DesignVerification\n ? PRODUCT.ProductVerificationField\n : Entity extends\n | WorkflowEntity.DesignValidation\n | TaskTypeEntity.DesignValidation\n ? PRODUCT.ProductValidationField\n : Entity extends WorkflowEntity.Hazard | TaskTypeEntity.Hazard\n ? HAZARD.HazardField\n : Entity extends WorkflowEntity.ChangeOrder | TaskTypeEntity.ChangeOrder\n ? ChangeOrderField\n : string);\n\nexport type WorkflowFieldLabel =\n Entity extends WorkflowEntity.Capa | TaskTypeEntity.Capa\n ? typeof CapaFieldLabels\n : Entity extends WorkflowEntity.File | TaskTypeEntity.File\n ? typeof DocumentFieldLabels\n : Entity extends WorkflowEntity.Risk | TaskTypeEntity.Risk\n ? typeof RiskFieldLabels\n : Entity extends WorkflowEntity.Training | TaskTypeEntity.Training\n ? typeof TrainingFieldLabels\n : Entity extends WorkflowEntity.Supplier | TaskTypeEntity.Supplier\n ? typeof SupplierFieldLabels\n : Entity extends WorkflowEntity.Scar | TaskTypeEntity.Scar\n ? typeof ScarFieldLabels\n : Entity extends WorkflowEntity.Spor | TaskTypeEntity.Spor\n ? typeof SporFieldLabels\n : Entity extends WorkflowEntity.Product | TaskTypeEntity.Product\n ? typeof PRODUCT.ProductFieldLabels\n : Entity extends WorkflowEntity.UserNeed | TaskTypeEntity.UserNeed\n ? typeof PRODUCT.ProductUserNeedFieldLabels\n : Entity extends WorkflowEntity.DesignInput | TaskTypeEntity.DesignInput\n ? typeof PRODUCT.ProductDesignInputFieldLabels\n : Entity extends WorkflowEntity.DesignOutput | TaskTypeEntity.DesignOutput\n ? typeof PRODUCT.ProductDesignOutputFieldLabels\n : Entity extends WorkflowEntity.DesignSpec | TaskTypeEntity.DesignSpec\n ? typeof PRODUCT.ProductDesignSpecFieldLabels\n : Entity extends\n | WorkflowEntity.DesignVerification\n | TaskTypeEntity.DesignVerification\n ? typeof PRODUCT.ProductVerificationFieldLabels\n : Entity extends\n | WorkflowEntity.DesignValidation\n | TaskTypeEntity.DesignValidation\n ? typeof PRODUCT.ProductValidationFieldLabels\n : Entity extends WorkflowEntity.Hazard | TaskTypeEntity.Hazard\n ? typeof HAZARD.HazardFieldLabels\n : Entity extends WorkflowEntity.ChangeOrder | TaskTypeEntity.ChangeOrder\n ? typeof ChangeOrderFieldLabels\n : object;\n\nexport function useWorkflowFields(\n entity: Entity\n) {\n const fields: WorkflowField[] = useMemo(() => {\n switch (entity) {\n case WorkflowEntity.Capa:\n case TaskTypeEntity.Capa:\n return CapaFields;\n case WorkflowEntity.File:\n case TaskTypeEntity.File:\n return DocumentFields;\n case WorkflowEntity.Risk:\n case TaskTypeEntity.Risk:\n return RiskFields;\n case WorkflowEntity.Training:\n case TaskTypeEntity.Training:\n return TrainingFields;\n case WorkflowEntity.Supplier:\n case TaskTypeEntity.Supplier:\n return SupplierFields;\n case WorkflowEntity.Scar:\n case TaskTypeEntity.Scar:\n return ScarFields;\n case WorkflowEntity.Spor:\n case TaskTypeEntity.Spor:\n return SporFields;\n case WorkflowEntity.Product:\n case TaskTypeEntity.Product:\n return PRODUCT.ProductFields;\n case WorkflowEntity.UserNeed:\n case TaskTypeEntity.UserNeed:\n return PRODUCT.ProductUserNeedFields;\n case WorkflowEntity.DesignInput:\n case TaskTypeEntity.DesignInput:\n return PRODUCT.ProductDesignInputFields;\n case WorkflowEntity.DesignOutput:\n case TaskTypeEntity.DesignOutput:\n return PRODUCT.ProductDesignOutputFields;\n case WorkflowEntity.DesignSpec:\n case TaskTypeEntity.DesignSpec:\n return PRODUCT.ProductDesignSpecFields;\n case WorkflowEntity.DesignVerification:\n case TaskTypeEntity.DesignVerification:\n return PRODUCT.ProductVerificationFields;\n case WorkflowEntity.DesignValidation:\n case TaskTypeEntity.DesignValidation:\n return PRODUCT.ProductValidationFields;\n case WorkflowEntity.Hazard:\n case TaskTypeEntity.Hazard:\n return HAZARD.HazardFields;\n case WorkflowEntity.Cause:\n case TaskTypeEntity.Cause:\n return HAZARD.CauseInputFields;\n case WorkflowEntity.Control:\n case TaskTypeEntity.Control:\n return HAZARD.ControlInputFields;\n case WorkflowEntity.Action:\n case TaskTypeEntity.Action:\n return HAZARD.ActionInputFields;\n case WorkflowEntity.ChangeOrder:\n case TaskTypeEntity.ChangeOrder:\n return ChangeOrderFields;\n default:\n return [];\n }\n }, [entity]) as WorkflowField[];\n\n const labels: WorkflowFieldLabel = useMemo(() => {\n switch (entity) {\n case WorkflowEntity.Capa:\n case TaskTypeEntity.Capa:\n return CapaFieldLabels;\n case WorkflowEntity.File:\n case TaskTypeEntity.File:\n return DocumentFieldLabels;\n case WorkflowEntity.Risk:\n case TaskTypeEntity.Risk:\n return RiskFieldLabels;\n case WorkflowEntity.Training:\n case TaskTypeEntity.Training:\n return TrainingFieldLabels;\n case WorkflowEntity.Supplier:\n case TaskTypeEntity.Supplier:\n return SupplierFieldLabels;\n case WorkflowEntity.Scar:\n case TaskTypeEntity.Scar:\n return ScarFieldLabels;\n case WorkflowEntity.Spor:\n case TaskTypeEntity.Spor:\n return SporFieldLabels;\n case WorkflowEntity.Product:\n case TaskTypeEntity.Product:\n return PRODUCT.ProductFieldLabels;\n case WorkflowEntity.UserNeed:\n case TaskTypeEntity.UserNeed:\n return PRODUCT.ProductUserNeedFieldLabels;\n case WorkflowEntity.DesignInput:\n case TaskTypeEntity.DesignInput:\n return PRODUCT.ProductDesignInputFieldLabels;\n case WorkflowEntity.DesignOutput:\n case TaskTypeEntity.DesignOutput:\n return PRODUCT.ProductDesignOutputFieldLabels;\n case WorkflowEntity.DesignSpec:\n case TaskTypeEntity.DesignSpec:\n return PRODUCT.ProductDesignSpecFieldLabels;\n case WorkflowEntity.DesignVerification:\n case TaskTypeEntity.DesignVerification:\n return PRODUCT.ProductVerificationFieldLabels;\n case WorkflowEntity.DesignValidation:\n case TaskTypeEntity.DesignValidation:\n return PRODUCT.ProductValidationFieldLabels;\n case WorkflowEntity.Hazard:\n case TaskTypeEntity.Hazard:\n return HAZARD.HazardFieldLabels;\n case WorkflowEntity.Cause:\n case TaskTypeEntity.Cause:\n return HAZARD.CauseInputFieldLabels;\n case WorkflowEntity.Control:\n case TaskTypeEntity.Control:\n return HAZARD.ControlInputFieldLabels;\n case WorkflowEntity.Action:\n case TaskTypeEntity.Action:\n return HAZARD.ActionInputFieldLabels;\n case WorkflowEntity.ChangeOrder:\n case TaskTypeEntity.ChangeOrder:\n return ChangeOrderFieldLabels;\n default:\n return {};\n }\n }, [entity]) as WorkflowFieldLabel;\n return { fields, labels };\n}\n\nexport function useTaskWorkflow(\n task: Pick | undefined,\n params?: ApiParams\n): Workflow | undefined {\n const { workflows, getWorkflow } = useWorkflowContext();\n return useMemo(\n // added workflows dependency due to initial useTaskWorkflow call may need\n // to fetch the workflow before it is available to be returned. Adding\n // workflows state causes memo to refresh when the workflow is fetched thus\n // returning the workflow requested.\n () => workflows && getWorkflow(task, params),\n [task, params, workflows, getWorkflow]\n );\n}\n\nexport interface TaskEntityFieldsOptions {\n token?: string;\n strict?: boolean;\n}\n\nexport function useTaskEntityFields(\n task: Task | undefined,\n strictOrOptions: boolean | TaskEntityFieldsOptions = true\n) {\n const options =\n typeof strictOrOptions === 'boolean'\n ? { strict: strictOrOptions }\n : strictOrOptions;\n const { strict, token } = options;\n const { user } = useUserContext();\n const [debounceError] = useTimeout();\n const { error, setError } = useWorkflowContext();\n const errorRef = useRef();\n const workflow: Workflow | undefined = useTaskWorkflow(\n task,\n // wrap with useMemo to avoid multiple fetch calls\n useMemo(() => (token ? { token } : undefined), [token])\n );\n const stateNode: StateNode | undefined = useStateNodeByStatus(\n task?.status,\n workflow\n );\n\n const getError = useCallback((): FetchError | undefined => {\n if (strict && !workflow) {\n const { type, taskTypeName } = task || {};\n const message: string = taskTypeName\n ? `No published workflow for \"${taskTypeName}\" type.`\n : type\n ? `No published workflow for \"${type}\" entity.`\n : 'No published workflow for this item.';\n // skip assignment if existing error has the same message\n if (errorRef.current?.message !== message) {\n errorRef.current = { message, statusCode: 409, error: 'Conflict' };\n }\n } else {\n errorRef.current = undefined;\n }\n return errorRef.current;\n }, [task, strict, workflow]);\n\n useEffect(() => {\n if (strict) {\n debounceError(() => setError(getError()), 1000);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [strict, setError, getError]);\n\n useEffect(() => {\n // if context error is removed but there is still an error\n if (!error && errorRef.current) {\n setError(errorRef.current);\n }\n }, [error, setError]);\n\n // disable field if loading, error, or is not part of allowedFields\n const isFieldDisabled = useCallback(\n (field: WorkflowField): boolean => {\n if (!stateNode) {\n console.warn('isFieldDisabled error: No State Node found.', {\n field,\n workflow,\n taskStatus: task?.status\n });\n return true;\n }\n\n const { allowedFields = [], groupPermissions = [] } =\n stateNode.meta || {};\n const hasGroupPermissions: boolean =\n groupPermissions.length === 0 ||\n !!user?.groups?.some((group: Group) => {\n return groupPermissions.includes(group.id);\n });\n return !hasGroupPermissions || !allowedFields.includes(field);\n },\n [user, stateNode, task, workflow]\n );\n\n return { error, isFieldDisabled };\n}\n\nexport function useWorkflowGroupPermissions(task: Task | undefined) {\n const { user } = useUserContext();\n const workflow = useTaskWorkflow(task);\n const stateNode = useStateNodeByStatus(task?.status, workflow);\n\n const permissions: number[] = useMemo(() => {\n return stateNode?.meta?.groupPermissions || [];\n }, [stateNode]);\n\n const hasGroupPermissions = useMemo(() => {\n // skip check if there were no configured permissions\n return (\n permissions.length === 0 ||\n (user?.groups || []).some(group => permissions.includes(group.id))\n );\n }, [permissions, user]);\n\n return { permissions, hasGroupPermissions };\n}\n\nexport function useFindEventNames(entity: WorkflowEntity | undefined) {\n const { data, isLoading, error, get } = useApiGet(\n 'workflows/event-names/' + entity\n );\n return {\n eventList: data,\n isLoading,\n loadingError: error,\n findEvents: get\n };\n}\n\nexport function useWorkflowStatuses(\n workflowDto: Workflow | WorkflowDto | WorkflowVersion | undefined\n): string[] {\n const workflow: Workflow | undefined = useMemo(() => {\n return workflowDto instanceof Workflow\n ? workflowDto\n : workflowDto?.config && new Workflow(workflowDto.config);\n }, [workflowDto]);\n\n return useMemo((): string[] => {\n if (!workflow) {\n return [];\n }\n // filter out root state node\n const rootNode: string = `/${workflow.stateNode.name}`;\n return workflow\n .getAllPaths()\n .filter((path: string) => path !== rootNode)\n .map(parseTaskStatus);\n }, [workflow]);\n}\n\n// get statuses for multiple workflow\nexport function useMultipleWorkflowStatuses(\n workflowsDto: WorkflowDto[] | undefined\n): string[] {\n const workflows: Workflow[] | undefined = useMemo(() => {\n return (\n workflowsDto &&\n workflowsDto.map(workflowDto => {\n return workflowDto.config && new Workflow(workflowDto.config);\n })\n );\n }, [workflowsDto]);\n\n return useMemo((): string[] => {\n if (!workflows) {\n return [];\n }\n let paths: string[] = [];\n workflows.map(workflow => {\n // filter out root state node\n const rootNode: string = `/${workflow.stateNode.name}`;\n return paths.push(\n ...workflow\n .getAllPaths()\n .filter((path: string) => path !== rootNode)\n .map(parseTaskStatus)\n );\n });\n return Array.from(new Set(paths)); // remove duplicate paths\n }, [workflows]);\n}\n\nexport function useWorkflowHasSubTasks(\n config: WorkflowDto['config'],\n workflowProp?: Workflow\n) {\n const workflow: Workflow | undefined = useMemo(() => {\n return config ? new Workflow(config) : workflowProp;\n }, [config, workflowProp]);\n\n const pathsWithSubTasks: string[] = useMemo(() => {\n if (!workflow) {\n return [];\n }\n const paths: string[] = workflow.getAllPaths();\n return paths.filter((path: string) => {\n const { invoke } = workflow.getState(path) || {};\n const all: WorkflowInvoke[] = Array.isArray(invoke)\n ? invoke\n : invoke\n ? [invoke]\n : [];\n return all.some((invoke: WorkflowInvoke) => {\n return invoke?.src === WorkflowInvokeAction.CreateSubTasks;\n });\n });\n }, [workflow]);\n\n const statuses: string[] = useMemo(() => {\n return pathsWithSubTasks.map((path: string) => parseTaskStatus(path));\n }, [pathsWithSubTasks]);\n\n const hasSubTasks: boolean = useMemo(() => {\n return pathsWithSubTasks.length > 0;\n }, [pathsWithSubTasks]);\n\n return { statuses, hasSubTasks, pathsWithSubTasks };\n}\n","import { useEffect, useState } from 'react';\nimport styled from 'styled-components';\n\nimport {\n Box,\n FormControl,\n FormControlLabel,\n FormHelperText,\n MenuItem,\n Switch,\n TextField\n} from '@material-ui/core';\nimport {\n State,\n StateTransitionCondition,\n Workflow,\n WorkflowInvoke,\n WorkflowParams\n} from '@sierralabs/workflow';\n\nimport { isSubTaskInActiveStatePath } from '../../../tasks/task.helper';\nimport { TaskContext } from '../../../tasks/Task.machine';\nimport { useFindWorkflow } from '../../Workflow.hooks';\nimport { WorkflowInvokeAction } from '../../Workflow.interface';\nimport {\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin\n} from '../TransitionConditionPlugin';\n\nexport interface CheckGroupIdsOptions {\n items: T[];\n groupIds: number[];\n // check: (item: T, groupId: number) => boolean;\n inGroup: (item: T, groupId: number) => boolean;\n}\n\n// items should match minimum number of group ids\nexport function checkGroupIds(options: CheckGroupIdsOptions) {\n const { items, groupIds, inGroup } = options;\n\n // allow more items per group but not less\n if (groupIds.length > 0 && groupIds.length > items.length) {\n return false;\n }\n\n // check only items that are part of group\n const groups: { id: number; index: number; items: T[] }[] = groupIds.map(\n id => {\n return { id, index: 0, items: items.filter(item => inGroup(item, id)) };\n }\n );\n // all groups should have at least 1 item\n if (groups.some(group => group.items.length === 0)) {\n return false;\n }\n\n // check all possible combinations to make sure\n // at least 1 unique user approves exactly from 1 group.\n // being unique per group means a user that is included in\n // multiple groups is never reused in the check\n let result: boolean | undefined;\n while (typeof result !== 'boolean') {\n // check with current index values\n // item may be undefined (e.g. no group.items)\n const values = groups\n .map((group): T | undefined => group.items[group.index])\n .filter((group): group is T => !!group);\n // if values are unique and match total groups, the final result is true\n if (new Set(values).size === groupIds.length) {\n result = true;\n break;\n }\n\n // increment index of items for the next check\n for (const [index, group] of Array.from(groups.entries())) {\n if (group.index < group.items.length - 1) {\n group.index++;\n // stop increment here and start check with current index values\n break;\n }\n // if this is the last group, check failed\n if (index >= groups.length - 1) {\n result = false;\n break;\n }\n // restart index for this group, then continue increment for next group\n group.index = 0;\n }\n }\n\n return result;\n}\n\nconst Styled = {\n FormHelperText: styled(FormHelperText)`\n padding-left: 8px;\n `\n};\n\nconst CheckSubTasksConfigurator: React.FC<\n TransitionConditionConfiguratorProps\n> = ({ event, condition, onChange }) => {\n const invokes = Array.isArray(event.stateNode.invoke)\n ? event.stateNode.invoke\n : event.stateNode.invoke\n ? [event.stateNode.invoke]\n : [];\n const invoke = invokes?.find(\n (invoke: WorkflowInvoke) =>\n invoke.src === WorkflowInvokeAction.CreateSubTasks\n );\n\n // invoke?.data?.workflowId is deprecated\n const workflowId = invoke?.data?.workflowId || invoke?.data?.workflow?.id;\n // get subtask workflow if needed\n const [subTaskWorkflow, setSubTaskWorkflow] = useState();\n const { workflow: subTaskWorkflowDto, findWorkflow } =\n useFindWorkflow(workflowId);\n useEffect(() => workflowId && findWorkflow(), [findWorkflow, workflowId]);\n useEffect(() => {\n if (subTaskWorkflowDto && subTaskWorkflowDto.config) {\n setSubTaskWorkflow(new Workflow(subTaskWorkflowDto.config));\n }\n }, [subTaskWorkflowDto]);\n return (\n <>\n \n {\n if (condition.params) {\n condition.params.path = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n >\n {subTaskWorkflow?.getAllPaths().map(path => (\n \n {path}\n \n ))}\n \n \n \n \n {\n if (condition.params) {\n condition.params.partial = checked;\n onChange?.({ ...condition });\n }\n }}\n />\n }\n />\n \n If partial is enabled, at least one (1) subtask must reach the\n selected state before transitioning.\n \n \n \n \n );\n};\n\nconst CheckSubTasksDisplay: React.FC = ({\n condition\n}) => {\n return <>Check SubTasks;\n};\n\nexport const CheckSubTasksPlugin: TransitionConditionPlugin = {\n type: 'check-subtasks',\n label: 'Check SubTasks',\n configurator: CheckSubTasksConfigurator,\n display: CheckSubTasksDisplay,\n canConfigure: event => {\n // only allow \"Check SubTask\" if create sub tasks action is invoked\n const invokes = Array.isArray(event.stateNode.invoke)\n ? event.stateNode.invoke\n : event.stateNode.invoke\n ? [event.stateNode.invoke]\n : [];\n const invoke = invokes?.find(\n (invoke: WorkflowInvoke) =>\n invoke.src === WorkflowInvokeAction.CreateSubTasks\n );\n const workflowId = invoke?.data?.workflowId || invoke?.data?.workflow?.id;\n return workflowId && invoke?.src === WorkflowInvokeAction.CreateSubTasks;\n },\n validate: (condition: Partial) => {\n return true;\n },\n guard: (state: State, params: WorkflowParams) => {\n console.log('guards: check-subtasks', state, params);\n const { task } = state.context;\n // make sure task.children has value\n // ignore check for optional subTasks\n // only check subTasks that are associated with the current task.status\n // unless their statePath is not set (default behavior)\n const subTasks = (task.children || []).filter(child => {\n return !child.isOptional && isSubTaskInActiveStatePath(child, task);\n });\n if (subTasks.length === 0) {\n console.warn('[check-subtasks] No task.children found.');\n return false;\n }\n const loop = params.partial ? 'some' : 'every';\n // check all regardless of user groups (required + ad-hoc approvers)\n const result = subTasks[loop](subTask => subTask.status === params.path);\n console.log('[check-subtasks] all subtasks checked', result);\n return result;\n }\n};\n","import { FetchError } from '../../common/api/api';\nimport { Attachment } from '../../common/attachment/Attachment.interface';\nimport { User } from '../../user/User.interface';\nimport { FileDto } from '../documents/Document.interface';\nimport { JiraFieldConfig } from '../jira-server/jira-server.interface';\nimport { Task } from '../tasks/Task.interface';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport environment from '../../environments';\n\nconst isBasicOptions = environment.hazardConfig?.isBasicOptions;\n\nexport interface HazardEntityConfig {\n visibleJiraFields?: JiraFieldConfig[];\n}\n\nexport interface HazardCardInfoTable {\n head: React.ReactNode[];\n body: React.ReactNode[][];\n}\n\nexport interface HazardConfig {\n idPrefix?: string;\n cause?: HazardEntityConfig;\n control?: HazardEntityConfig;\n action?: HazardEntityConfig;\n isBasicOptions?: boolean;\n}\n\nexport enum HazardSeverity {\n Negligible = 1,\n Marginal = 2,\n Moderate = isBasicOptions ? 2 : 3,\n Severe = isBasicOptions ? 3 : 4,\n Catastrophic = 5\n}\n\nexport enum HazardProbability {\n Improbable = 1,\n Remote = isBasicOptions ? 1 : 2,\n Occasional = 3,\n Probable = isBasicOptions ? 2 : 4,\n Frequent = isBasicOptions ? 3 : 5\n}\n\nexport enum HazardRisk {\n VeryLow = 1,\n Low = isBasicOptions ? 1 : 2,\n Medium = isBasicOptions ? 2 : 3,\n High = isBasicOptions ? 3 : 4\n}\n\nexport enum HazardBoardColumnEntity {\n Cause = 'Cause',\n Control = 'Control',\n Action = 'Action'\n}\nexport interface Hazard {\n id: number;\n taskId: number;\n productId: number;\n initialSeverity: HazardSeverity;\n initialProbability: HazardProbability;\n initialRpn: number;\n initialRisk: HazardRisk;\n initialRiskLabel: string;\n residualSeverity: HazardSeverity;\n residualProbability: HazardProbability;\n residualRpn: number;\n residualRisk: HazardRisk;\n residualRiskLabel: string;\n benefitRiskAnalysis: string;\n comments: string;\n riskJustification: string;\n causeTemplate?: FileDto;\n controlTemplate?: FileDto;\n actionTemplate?: FileDto;\n traceabilityTemplate?: FileDto;\n eClinicalTemplate?: FileDto;\n causes?: HazardCause[];\n task: Task;\n name: string;\n title: string;\n category: string;\n otherCategory: string;\n description: string;\n impact: string;\n version: number;\n hazardOwner: User;\n techLead: User;\n created: Date;\n createdBy: User;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface HazardVersion\n extends Omit {\n fileIds: number[];\n userNeedIds: number[];\n designInputIds: number[];\n}\n\nexport interface HazardCause {\n id: number;\n title: string;\n version: number;\n description: string;\n initialHarm: HazardProbability;\n initialRisk: HazardRisk;\n initialRiskLabel: string;\n residualHarm: HazardProbability;\n residualRisk: HazardRisk;\n residualRiskLabel: string;\n taskId: number;\n task: Task;\n hazardId: number;\n hazard: Hazard;\n controls: HazardControl[];\n userId: number;\n user: User;\n createdBy: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface HazardCauseVersion {\n id: number;\n version: number;\n title: string;\n description: string;\n initialHarm: HazardProbability;\n initialRisk: HazardRisk;\n residualHarm: HazardProbability;\n residualRisk: HazardRisk;\n attachments?: Attachment[];\n controlIds: number[];\n created: Date;\n task?: Task;\n}\nexport interface HazardControl {\n id: number;\n version: number;\n title: string;\n description: string;\n taskId: number;\n task: Task;\n controlVerification: string;\n hazardId: number;\n hazard: Hazard;\n actions: HazardAction[];\n userId: number;\n user: User;\n createdBy: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\n\nexport interface HazardControlVersion {\n id: number;\n version: number;\n title: string;\n description: string;\n attachments?: Attachment[];\n actions: number[];\n created: Date;\n task?: Task;\n}\nexport interface HazardAction {\n id: number;\n title: string;\n version: number;\n description: string;\n taskId: number;\n task: Task;\n hazardId: number;\n hazard: Hazard;\n userId: number;\n user: User;\n createdBy: User;\n created: Date;\n modified: Date;\n modifiedBy: User;\n deleted: boolean;\n}\nexport interface HazardActionVersion {\n id: number;\n version: number;\n title: string;\n description: string;\n attachments?: Attachment[];\n created: Date;\n task?: Task;\n}\n\nexport enum HazardExportEntity {\n Cause = 'Cause',\n Control = 'Control',\n Action = 'Action',\n TraceabilityReport = 'TraceabilityReport',\n eClinicalReport = 'eClinicalReport'\n}\n\nexport type HazardReferenceTarget =\n | 'causes'\n | 'controls'\n | 'actions'\n | 'user-needs'\n | 'design-inputs'\n | 'design-outputs'\n | 'verifications'\n | 'validations';\n\nexport type HazardReferenceSource =\n | 'causes'\n | 'controls'\n | 'actions'\n | undefined;\n\nexport type HazardEntity = HazardCause | HazardControl | HazardAction;\n\nexport const HazardWorkflowEntities = [\n WorkflowEntity.Cause,\n WorkflowEntity.Control,\n WorkflowEntity.Action\n];\n\nexport interface BaseHazardCardProps {\n hazard: Hazard;\n hazardVersion?: HazardVersion;\n onChange?: (hazard: Hazard) => void;\n}\n\nexport type BaseHazardBoardColumnProps<\n HazardEntityType extends HazardEntity,\n ValueKey extends string = never\n> = { [key in ValueKey]: HazardEntityType | Partial } & {\n hazard: Hazard;\n collapsed?: boolean;\n onCancel?: () => void;\n onError?: () => void;\n onSave?: (value: HazardEntityType) => void;\n};\n\ntype EditableCardProps<\n ValueType,\n ValueVersionType,\n ValueKey extends string = never,\n ValueVersionKey extends string = never,\n ExtraProps extends object = {}\n> = ExtraProps & { [key in ValueKey]: ValueType } & {\n [key in ValueVersionKey]?: ValueVersionType;\n} & {\n title?: string;\n onChange?: (value: Partial) => void;\n onUpdate?: () => void;\n onError?: (error: FetchError) => void;\n};\nexport interface HazardCardCommonProps {\n hazardId: number;\n hidden?: boolean;\n enableTitleRedirect?: boolean;\n}\n\nexport type BaseHazardCausesCardProps = EditableCardProps<\n HazardCause,\n HazardCauseVersion,\n 'hazardCause',\n 'hazardCauseVersion',\n HazardCardCommonProps\n>;\nexport type BaseHazardControlsCardProps = EditableCardProps<\n HazardControl,\n HazardControlVersion,\n 'hazardControl',\n 'hazardControlVersion',\n HazardCardCommonProps\n>;\nexport type BaseHazardActionsCardProps = EditableCardProps<\n HazardAction,\n HazardActionVersion,\n 'hazardAction',\n 'hazardActionVersion',\n HazardCardCommonProps\n>;\n\nexport const hazardSeverity = isBasicOptions\n ? [\n // healthrhythms environment specific options\n { value: HazardSeverity.Negligible, label: 'Negligible' },\n { value: HazardSeverity.Moderate, label: 'Moderate' },\n { value: HazardSeverity.Severe, label: 'Severe' }\n ]\n : [\n { value: HazardSeverity.Negligible, label: 'Negligible' },\n { value: HazardSeverity.Marginal, label: 'Marginal' },\n { value: HazardSeverity.Moderate, label: 'Moderate' },\n { value: HazardSeverity.Severe, label: 'Severe' },\n { value: HazardSeverity.Catastrophic, label: 'Catastrophic' }\n ];\n\nexport const hazardProbability = isBasicOptions\n ? [\n // healthrhythms environment specific options\n { value: HazardProbability.Remote, label: 'Remote' },\n { value: HazardProbability.Probable, label: 'Probable' },\n { value: HazardProbability.Frequent, label: 'Frequent' }\n ]\n : [\n { value: HazardProbability.Improbable, label: 'Improbable' },\n { value: HazardProbability.Remote, label: 'Remote' },\n { value: HazardProbability.Occasional, label: 'Occasional' },\n { value: HazardProbability.Probable, label: 'Probable' },\n { value: HazardProbability.Frequent, label: 'Frequent' }\n ];\n\nexport const hazardRisk = [\n { value: HazardRisk.VeryLow, label: 'Very Low' },\n { value: HazardRisk.Low, label: 'Low' },\n { value: HazardRisk.Medium, label: 'Medium' },\n { value: HazardRisk.High, label: 'High' }\n];\n\nexport const HazardSeverityTable: HazardCardInfoTable = {\n head: [\n 'Severity Level',\n 'Scale',\n 'Description of Harm in terms of Health and Safety'\n ].concat(\n isBasicOptions\n ? []\n : ['Description of Harm in terms of Damage to Property or Environment']\n ),\n body: isBasicOptions\n ? [\n [\n 'Negligible',\n '1',\n 'Issue does not pose a risk to user, service or poses a data integrity risk.'\n ],\n [\n 'Moderate',\n '2',\n 'Issue has potential or confirmed negative impact to user, intended use or service or poses a data integrity risk.'\n ],\n [\n 'Severe',\n '3',\n 'Adverse event may or has occured that may or has caused harm to user or resulted in a data breach.'\n ]\n ]\n : [\n [\n 'Negligible',\n '1',\n 'No adverse health effects to patient and/or operator; Minor nuisance or inconvenience',\n 'Little to no damage to property or environment'\n ],\n [\n 'Marginal',\n '2',\n 'Transient, self-limiting illness or injury to patient and/or operator',\n 'Slight damage to property or environment'\n ],\n [\n 'Moderate',\n '3',\n 'Significant injury/pain but temporary/reversible to patient and/or operator',\n 'Significant damage to property or environment but temporary/reversible'\n ],\n [\n 'Severe',\n '4',\n 'Serious injury which requires surgical intervention or causes irreversible harm to patient and/or operator',\n 'Serious irreversible damage to property or environment'\n ],\n [\n 'Catastrophic',\n '5',\n 'Death or probable death to patient and/or operator',\n 'Major incident that will have significant consequences, lasting effects to property or environment'\n ]\n ]\n};\n\nexport const CauseProbabilityTable: HazardCardInfoTable = {\n head: ['Probability of Occurrence', 'Scale'].concat(\n isBasicOptions\n ? ['Process Probability of Failure']\n : ['Probability of Occurrence', 'Process Probability of Failure']\n ),\n body: isBasicOptions // healthrhythms environment specific options\n ? [\n [\n 'Remote',\n '1',\n 'Failure is unlikely or no reported failure of evaluated issue.'\n ],\n [\n 'Probable',\n '2',\n 'Issue is likely to occur or has occurred frequently.'\n ],\n ['Frequent', '3', 'Issue is systemic or issue is certain to occur.']\n ]\n : [\n [\n 'Improbable',\n '1',\n 'Almost certain not to occur',\n 'Failure is unlikely, No failure ever associated with almost identical processes.'\n ],\n [\n 'Remote',\n '2',\n 'Unlikely but possible to occur',\n 'Very low: Only isolated failure associated with almost identical processes.'\n ],\n [\n 'Occasional',\n '3',\n 'Moderate probability of occurrence',\n 'Low: Isolated failure associated with similar processes.'\n ],\n [\n 'Probable',\n '4',\n 'Likely to occur',\n 'Moderate: Generally associated with processes similar to previous processes which have experienced occasional failure, but not in major proportions.'\n ],\n [\n 'Frequent',\n '5',\n 'Likely to occur repeatedly',\n 'High: Generally associated with processes similar to previous processes that have often failed.'\n ]\n ]\n};\n\nexport const HazardCategoryOptions = isBasicOptions\n ? [\n // healthrhythms environment specific options\n 'Functional',\n 'Use Error',\n 'Labeling',\n 'Use Instructions',\n 'Warnings/Escalations',\n 'Data'\n ]\n : [\n 'Energy - Electric',\n 'Energy - Electromagnetic',\n 'Energy - Thermal',\n 'Energy - Mechanical',\n 'Energy - Radiation',\n 'Data',\n 'Physical',\n 'Biological Agent',\n 'Chemical Agent',\n 'Biocompatibility',\n 'Operational - Functional',\n 'Operational - Use Error',\n 'Information - Labeling',\n 'Information - Use Instructions',\n 'Information - Warnings',\n 'Disposal',\n 'Other'\n ];\n\nexport const HazardSeverityLabel: Partial<\n Record\n> = isBasicOptions\n ? {\n // healthrhythms environment specific options\n [HazardSeverity.Negligible]: 'Negligible',\n [HazardSeverity.Moderate]: 'Moderate',\n [HazardSeverity.Severe]: 'Severe'\n }\n : {\n [HazardSeverity.Negligible]: 'Negligible',\n [HazardSeverity.Marginal]: 'Marginal',\n [HazardSeverity.Moderate]: 'Moderate',\n [HazardSeverity.Severe]: 'Severe',\n [HazardSeverity.Catastrophic]: 'Catastrophic'\n };\n\nexport const HazardProbabilityLabel: Partial<\n Record\n> = isBasicOptions\n ? {\n // healthrhythms environment specific options\n [HazardProbability.Remote]: 'Remote',\n [HazardProbability.Probable]: 'Probable',\n [HazardProbability.Frequent]: 'Frequent'\n }\n : {\n [HazardProbability.Improbable]: 'Improbable',\n [HazardProbability.Remote]: 'Remote',\n [HazardProbability.Occasional]: 'Occasional',\n [HazardProbability.Probable]: 'Probable',\n [HazardProbability.Frequent]: 'Frequent'\n };\n\nexport interface HazardBoardData {\n hazardId: number;\n referencedHazardId?: number;\n referencedHazardTitle?: string;\n causes: HazardCause[];\n controls: HazardControl[];\n actions: HazardAction[];\n}\n\nexport interface ProductHazardBoardData {\n productId: number;\n hazards: Hazard[];\n causes: HazardCause[];\n controls: HazardControl[];\n actions: HazardAction[];\n}\n\nexport interface HazardSection {\n file?: FileDto | null;\n entity: HazardExportEntity;\n}\n\nexport const hazardRuleMatrix = new Map([\n [\n HazardSeverity.Negligible,\n new Map([\n [HazardProbability.Frequent, HazardRisk.Medium],\n [HazardProbability.Probable, HazardRisk.Low],\n [HazardProbability.Occasional, HazardRisk.Low],\n [HazardProbability.Remote, HazardRisk.VeryLow],\n [HazardProbability.Improbable, HazardRisk.VeryLow]\n ])\n ],\n [\n HazardSeverity.Marginal,\n new Map([\n [HazardProbability.Frequent, HazardRisk.Medium],\n [HazardProbability.Probable, HazardRisk.Medium],\n [HazardProbability.Occasional, HazardRisk.Low],\n [HazardProbability.Remote, HazardRisk.Low],\n [HazardProbability.Improbable, HazardRisk.VeryLow]\n ])\n ],\n [\n HazardSeverity.Moderate,\n new Map([\n [HazardProbability.Frequent, HazardRisk.High],\n [HazardProbability.Probable, HazardRisk.Medium],\n [HazardProbability.Occasional, HazardRisk.Medium],\n [HazardProbability.Remote, HazardRisk.Low],\n [HazardProbability.Improbable, HazardRisk.Low]\n ])\n ],\n [\n HazardSeverity.Severe,\n new Map([\n [HazardProbability.Frequent, HazardRisk.High],\n [HazardProbability.Probable, HazardRisk.High],\n [HazardProbability.Occasional, HazardRisk.Medium],\n [HazardProbability.Remote, HazardRisk.Medium],\n [HazardProbability.Improbable, HazardRisk.Low]\n ])\n ],\n [\n HazardSeverity.Catastrophic,\n new Map([\n [HazardProbability.Frequent, HazardRisk.High],\n [HazardProbability.Probable, HazardRisk.High],\n [HazardProbability.Occasional, HazardRisk.High],\n [HazardProbability.Remote, HazardRisk.Medium],\n [HazardProbability.Improbable, HazardRisk.Medium]\n ])\n ]\n]);\n","import React, { Fragment, useEffect, useMemo, useRef, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Card,\n Checkbox,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n LinearProgress,\n Popover,\n PopoverPosition,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TablePagination,\n TableRow,\n TextField,\n Tooltip,\n Typography\n} from '@material-ui/core';\nimport { Check as CheckIcon } from '@material-ui/icons';\nimport { Alert, Autocomplete } from '@material-ui/lab';\n\nimport { ApiParams } from '../../../common/api/api';\nimport { useTimeout } from '../../../common/timeout.hook';\nimport WrappedTableCell from '../../../common/WrappedTableCell';\nimport { useFindUsers } from '../../../user/User.hooks';\nimport { User, UserPermissionFilter } from '../../../user/User.interface';\nimport { useFindGroups } from '../../groups/Group.hooks';\nimport { Group } from '../../groups/Group.interface';\nimport GroupSelector from '../../workflow/components/GroupSelector';\nimport { checkGroupIds } from '../../workflow/plugins/transition-conditions/CheckSubTasksPlugin';\nimport { compareTaskStatus } from '../task.helper';\nimport { useUpdateTask } from '../Task.hooks';\nimport { SubTaskUser, Task } from '../Task.interface';\n\nconst StyledUl = styled.ul`\n margin: 0;\n font-size: 12px;\n padding-left: 16px;\n li:not(:last-child) {\n margin-bottom: 4px;\n }\n`;\n\nconst StyledTableContainer = styled(TableContainer)`\n .MuiTableHead-root .MuiTableCell-root {\n padding-top: 8px;\n padding-bottom: 8px;\n background-color: ${props => props.theme.palette.grey[100]};\n }\n .MuiTableBody-root .MuiTableCell-root {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n .row-divider {\n background-color: ${props => props.theme.palette.grey[100]};\n }\n .groups {\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n`;\n\nconst StyledForm = styled.form`\n width: 300px;\n padding: 8px;\n .MuiAlert-root {\n padding: 0;\n }\n .MuiAlert-icon {\n /* hide icon */\n display: none;\n }\n .MuiAlert-message {\n padding: 8px;\n }\n .menu-selection-actions {\n display: flex;\n justify-content: end;\n gap: 8px;\n }\n`;\n\nexport interface SubTaskUserItem {\n id?: number;\n version?: number;\n user: User;\n group: Group | undefined;\n statePath?: string | null;\n isOptional?: boolean;\n}\n\nexport interface TaskAssignDialogProps {\n taskId: number;\n groupIds?: number[];\n userFilter?: UserPermissionFilter;\n open: boolean;\n title?: string;\n message?: string;\n multiple?: boolean;\n parentTask?: Task;\n lockedUsers?: SubTaskUserItem[];\n initialUsers?: SubTaskUserItem[];\n isLegacyAssignment?: boolean;\n handleAssign?: (subTaskUsers: SubTaskUser[]) => void;\n onCancel?: () => void;\n onAssign?: (task: Task) => void;\n}\n\nconst TaskAssignDialog: React.FC = props => {\n const {\n taskId,\n groupIds,\n userFilter,\n open,\n title = 'Assign Task',\n message = 'Select a user to assign the task.',\n multiple,\n parentTask,\n lockedUsers,\n initialUsers,\n isLegacyAssignment,\n handleAssign,\n onCancel,\n onAssign\n } = props;\n if (multiple && !handleAssign) {\n throw new Error(\n 'TaskAssignDialog multiple select requires a custom `handleAssign` override.'\n );\n }\n const onAssignRef = useRef(onAssign);\n onAssignRef.current = onAssign;\n const initialUsersRef = useRef(initialUsers);\n initialUsersRef.current = initialUsers;\n const [page, setPage] = useState(0);\n const [limit, setLimit] = useState(5);\n const [search, setSearch] = useState('');\n const [menuSelection, setMenuSelection] = useState<{\n user: User;\n group?: Group;\n anchorEl: HTMLElement;\n anchorPosition?: PopoverPosition;\n /** Determines if the current User is selected. */\n selected: boolean;\n }>();\n const [selectedGroupId, setSelectedGroupId] = useState();\n const [subTaskUsersState, setSubTaskUsers] = useState(\n () => initialUsers || []\n );\n const [debounceSearch] = useTimeout();\n const {\n userList,\n isLoading: isFindingUsers,\n error: usersError,\n get\n } = useFindUsers();\n const {\n groupList,\n isLoading: isFindingGroups,\n error: groupsError,\n get: findGroups\n } = useFindGroups();\n // update the task when submitting (this is bypassed if handleAssign is passed in props)\n const { updatedTask, isUpdating, updateError, updateTask } =\n useUpdateTask(taskId);\n\n const subTaskUsers = useMemo(() => {\n return (lockedUsers || []).concat(subTaskUsersState);\n }, [lockedUsers, subTaskUsersState]);\n\n const maxColSpan = 4 + +(subTaskUsers.length > 0);\n const isLoading = isFindingUsers || isFindingGroups;\n const error = usersError || groupsError || updateError;\n\n const filteredUsers = useMemo(() => {\n // remove selected users since they are displayed above the user list\n return (userList?.data || []).filter(user => {\n return !subTaskUsers.some(subTask => subTask.user.id === user.id);\n });\n }, [subTaskUsers, userList]);\n\n const isValidSelectedUsers = useMemo(() => {\n if (!groupIds || groupIds.length === 0) {\n // skip check since there are no groupIds when adding more approvers\n return true;\n }\n return checkGroupIds({\n groupIds,\n // ignore optional subTasks\n items: subTaskUsers.filter(subTask => !subTask.isOptional),\n inGroup: (subTask, groupId) => {\n return isLegacyAssignment\n ? (subTask.user.groups || []).some(group => group.id === groupId)\n : !!subTask.group && subTask.group.id === groupId;\n }\n });\n }, [groupIds, isLegacyAssignment, subTaskUsers]);\n\n const isRequiredGroupMet = (groupId: number) => {\n // note that groupId may not be part of the required groups\n // and can have duplicates (multiple users per group)\n const allGroupIds = (groupIds || []).filter(id => id === groupId);\n // check if group has met total number of required groups\n const matchedSubTasks = subTaskUsers.filter(subTask => {\n // a subTaskUser is part of the group if it's not optional\n // and it matches either one of the user groups (old behavior)\n // or the assigned subtask group\n return (\n !subTask.isOptional &&\n (isLegacyAssignment\n ? (subTask.user.groups || []).some(group => group.id === groupId)\n : subTask.group?.id === groupId)\n );\n });\n return matchedSubTasks.length >= allGroupIds.length;\n };\n\n const toggle = (user: User) => {\n setSubTaskUsers(subTasks => {\n const index = subTasks.findIndex(subTask => subTask.user.id === user.id);\n if (index === -1) {\n const subTask: SubTaskUserItem = { user, group: undefined };\n return multiple ? subTasks.concat(subTask) : [subTask];\n }\n const copy = Array.from(subTasks);\n copy.splice(index, 1);\n return copy;\n });\n };\n\n const renderRow = (user: User, subTask?: SubTaskUserItem) => {\n const locked = (lockedUsers || []).some(lockedUser => {\n return (\n lockedUser.user.id === user.id &&\n // ignore if no subTask provided\n (!subTask ||\n // make sure subTask ids match if provided\n ((!subTask.id || !lockedUser.id || subTask.id === lockedUser.id) &&\n // make sure versions match if provided\n (!subTask.version ||\n !lockedUser.version ||\n subTask.version === lockedUser.version) &&\n // make sure statePaths match if provided\n (!subTask.statePath ||\n !lockedUser.statePath ||\n compareTaskStatus(subTask.statePath, lockedUser.statePath))))\n );\n });\n const userGroups = user.groups || [];\n // if selected (has subTask), should only display the selected subTask group\n // note that selected subTask can have no group assignment\n const rowGroups = !subTask\n ? userGroups\n : subTask.group\n ? [subTask.group]\n : [];\n return (\n {\n if (locked) {\n return;\n } else if (\n isLegacyAssignment ||\n !user.groups ||\n user.groups.length === 0\n ) {\n // toggle directly if legacy assignment and if user has no groups\n return toggle(user);\n }\n\n // for convenience, auto select the group that the user is likely to assign\n // based on the required groupIds\n const selectedGroup =\n subTask?.group ||\n user.groups.find(group => {\n // find a group that is part of required groups\n // and check if the requirement is not yet met\n return (\n groupIds?.includes(group.id) && !isRequiredGroupMet(group.id)\n );\n });\n\n setMenuSelection({\n user,\n selected: !!subTask,\n group: selectedGroup,\n anchorEl: event.currentTarget,\n anchorPosition: { top: event.clientY, left: event.clientX }\n });\n }}\n >\n \n {\n event.stopPropagation();\n // toggle user directly if selected\n if (subTask) {\n toggle(user);\n } else {\n setMenuSelection({\n user,\n selected: false,\n anchorEl: event.currentTarget\n });\n }\n }}\n />\n \n {user.firstName}\n {user.lastName}\n 0 ? 2 : undefined}\n >\n \n {userGroups.map(group => {\n const selected = subTask?.group?.id === group.id;\n return (\n
  • \n {selected ? {group.name} : group.name}\n {selected && ' - (selected)'}\n
  • \n );\n })}\n \n )\n }\n >\n
    \n {/* should selected groups when selected */}\n {rowGroups.length === 0 ? (\n \n {subTask ? 'No Team' : '-'}\n \n ) : (\n rowGroups.map((group, index, array) => (\n \n {subTask?.group?.id === group.id ? (\n {group.name}\n ) : (\n group.name\n )}\n {index < array.length - 1 && ', '}\n \n ))\n )}\n
    \n \n \n {subTask && (\n \n event.stopPropagation()}\n onChange={(_, checked) => {\n setSubTaskUsers(subTasks => {\n const index = subTasks.findIndex(\n subTask => subTask.user.id === user.id\n );\n if (index > -1) {\n subTasks = Array.from(subTasks);\n subTasks[index] = {\n ...subTasks[index],\n isOptional: checked\n };\n }\n return subTasks;\n });\n }}\n />\n \n )}\n \n );\n };\n\n // set initial users on open only\n useEffect(() => {\n if (open && initialUsersRef.current && initialUsersRef.current.length > 0) {\n setSubTaskUsers(initialUsersRef.current);\n }\n }, [open]);\n\n useEffect(() => {\n // only get groups if groupIds array is provided\n if (groupIds && groupIds.length > 0) {\n const ids = groupIds.concat(userFilter?.groupIds || []);\n findGroups({ ids: ids.join(',') });\n }\n }, [groupIds, userFilter, findGroups]);\n\n // handle searching\n useEffect(() => {\n const params: ApiParams = { filter: search, page, limit };\n if (selectedGroupId) {\n params.groupId = selectedGroupId;\n }\n if (userFilter) {\n params.userFilter = userFilter;\n }\n get(params);\n }, [limit, page, search, selectedGroupId, userFilter, get]);\n\n useEffect(() => {\n if (updatedTask) {\n onAssignRef.current?.(updatedTask);\n }\n }, [updatedTask]);\n\n return (\n \n {title}\n \n {message}\n \n {\n debounceSearch(() => {\n // multiple set state calls inside async or setTimeout\n // can cause multiple re-renders (calls the fetch request twice)\n // NOTE: taken from https://stackoverflow.com/a/65427240/7013346\n ReactDOM.unstable_batchedUpdates(() => {\n setPage(0);\n setSearch(event.target.value);\n });\n }, 300);\n }}\n />\n \n setSelectedGroupId(group?.id)}\n />\n \n {groupIds && groupIds.length > 0 && (\n \n \n Assign {groupIds.length} or more Users from:{' '}\n {groupList?.data?.map((group, index, arr) => (\n \n {isRequiredGroupMet(group.id) && (\n \n )}\n \n {groupIds.filter(id => id === group.id).length}{' '}\n {group.name}\n \n {index < arr.length - 1 && ', '}\n \n ))}\n \n \n )}\n \n \n \n \n \n \n \n First Name\n Last Name\n Team\n {subTaskUsers.length > 0 && Optional}\n \n \n \n {subTaskUsers.length > 0 && (\n <>\n \n \n \n Selected Users\n \n \n \n {subTaskUsers.map(subTask => {\n return renderRow(subTask.user, subTask);\n })}\n \n \n \n Available Users\n \n \n \n \n )}\n {isLoading && (\n \n \n \n \n \n )}\n {error && (\n \n \n {error.message}\n \n \n )}\n {filteredUsers.map(user => renderRow(user))}\n \n
    \n
    \n setPage(newPage)}\n onRowsPerPageChange={event => {\n setLimit(+event.target.value);\n setPage(0);\n }}\n />\n
    \n
    \n\n \n \n }\n onClick={() => {\n // use subTaskUsersState and skip lockedUsers\n // also make sure isOptional is properly (no undefined)\n const users = subTaskUsersState.map((subTask): SubTaskUser => {\n return {\n id: subTask.user.id,\n groupId: subTask.group?.id || null,\n isOptional: !!subTask.isOptional\n };\n });\n // only use handleAssign() for multiple selects\n if (multiple && handleAssign) {\n handleAssign(users);\n } else {\n // assume user has value (already checked in disabled prop)\n const user = users[0];\n updateTask({\n userId: user.id,\n groupId: user.groupId,\n isOptional: user.isOptional,\n statePath: parentTask?.status\n });\n }\n }}\n >\n Assign\n \n \n\n setMenuSelection(undefined)}\n >\n {\n event.preventDefault();\n if (!menuSelection) {\n return;\n }\n setSubTaskUsers(subTasks => {\n const index = subTasks.findIndex(\n subTask => subTask.user.id === menuSelection.user.id\n );\n const item: SubTaskUserItem = {\n ...subTasks[index],\n user: menuSelection.user,\n group: menuSelection.group\n };\n if (index === -1) {\n return multiple ? subTasks.concat(item) : [item];\n }\n const copy = Array.from(subTasks);\n copy[index] = item;\n return copy;\n });\n setMenuSelection(undefined);\n }}\n >\n \n \n Select the Team to sign off as\n \n \n \n option.name}\n getOptionSelected={(option, value) => option.id === value.id}\n onChange={(_, value) => {\n setMenuSelection(selection => {\n return (\n selection && { ...selection, group: value || undefined }\n );\n });\n }}\n renderInput={params => (\n \n )}\n />\n \n {menuSelection && (\n \n \n \n User{' '}\n \n {menuSelection.user.firstName} {menuSelection.user.lastName}\n {' '}\n will sign off{' '}\n {menuSelection.group ? (\n <>\n representing the team{' '}\n {menuSelection.group.name}\n \n ) : (\n 'with no team assignment'\n )}\n .\n \n \n \n )}\n \n {menuSelection?.selected && (\n <>\n {\n setSubTaskUsers(subTasks => {\n const index = subTasks.findIndex(\n subTask => subTask.user.id === menuSelection.user.id\n );\n if (index > -1) {\n subTasks = Array.from(subTasks);\n subTasks.splice(index, 1);\n }\n return subTasks;\n });\n setMenuSelection(undefined);\n }}\n >\n Remove\n \n
    \n \n )}\n setMenuSelection(undefined)}\n >\n Cancel\n \n \n {menuSelection?.selected ? 'Update' : 'Assign User'}\n \n \n \n \n
    \n );\n};\n\nexport default TaskAssignDialog;\n","import { useEffect, useMemo, useRef, useState } from 'react';\nimport styled from 'styled-components';\n\nimport { MenuItem, TextField } from '@material-ui/core';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport { useDebounce } from '../../../../common/Debounce.hooks';\nimport { CreateSubTaskParams, TaskContext } from '../../../tasks/Task.machine';\nimport GroupSelector from '../../components/GroupSelector';\nimport { useFindWorkflows } from '../../Workflow.hooks';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\nimport { Group } from '../../../groups/Group.interface';\nimport TaskAssignDialog from '../../../tasks/dialogs/TaskAssignDialog';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin: 12px 0;\n }\n`;\n\nconst CreateSubTasksConfigurator: React.FC = ({\n onChange,\n ...props\n}) => {\n const mountRef = useRef(true);\n const onChangeRef = useRef(onChange);\n const [invoke, setInvoke] = useState(props.invoke);\n const [numberOfTasks, setNumberOfTasks] = useState(\n +(invoke?.data?.numberOfTasks || 0)\n );\n const debouncedNumberOfTasks = useDebounce(numberOfTasks, 300);\n const { workflowList, findWorkflows } = useFindWorkflows();\n // get a list of all workflows for use in the workflow dropdown selector\n useEffect(() => {\n findWorkflows({ limit: 100 });\n }, [findWorkflows]);\n const data: any = useMemo(() => {\n const data = invoke.data || {};\n if (data?.workflowId) {\n data.workflow = { id: data.workflowId };\n delete data.workflowId;\n }\n if (data?.groupIds) {\n data.groups = data.groupIds.map((id: number) => ({ id }));\n delete data.groupIds;\n }\n return data;\n }, [invoke.data]);\n useEffect(() => {\n // don't set invoke on init\n if (mountRef.current) {\n mountRef.current = false;\n } else {\n setInvoke(invoke => {\n const updatedInvoke = { ...invoke };\n if (!updatedInvoke.data) updatedInvoke.data = {};\n const data: CreateSubTaskParams['data'] = updatedInvoke.data;\n data.numberOfTasks = debouncedNumberOfTasks;\n onChangeRef.current?.(updatedInvoke);\n return updatedInvoke;\n });\n }\n }, [debouncedNumberOfTasks]);\n return (\n \n {\n data.dialogTitle = event.target.value;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n {\n data.dialogMessage = event.target.value;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n {workflowList && (\n {\n const workflowId = +event.target.value;\n if (!workflowId) return;\n const workflow = workflowList?.data.find(w => w.id === workflowId);\n if (!workflow) {\n throw new Error('Workflow not found');\n }\n const { id, name } = workflow;\n console.log('workflow', workflow);\n data.workflow = { id, name };\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n >\n {workflowList.data.map(workflowDto => (\n \n {workflowDto.name}\n \n ))}\n \n )}\n {\n const value = parseInt(event.target.value);\n setNumberOfTasks(\n isNaN(value) || !isFinite(value) || value < 0 ? 0 : value\n );\n if (!data.groups) data.groups = [];\n data.groups.length = value;\n }}\n >\n {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(count => (\n \n {count}\n \n ))}\n \n {invoke?.data?.numberOfTasks &&\n [...Array(invoke?.data?.numberOfTasks)].map((_, index) => (\n {\n if (!data.groups) data.groups = [];\n if (!group) {\n data.groups[index] = null;\n } else {\n const { id, name } = group;\n data.groups[index] = { id, name };\n }\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n ))}\n \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n padding-left: 4px;\n text-indent: -4px;\n code {\n background: #f4f5fa;\n padding: 2px 5px;\n border-radius: 3px;\n }\n b {\n padding: 0 5px 0 0;\n }\n`;\n\nconst CreateSubTasksDisplay: React.FC = ({ invoke }) => {\n return (\n \n
    \n Sub Task Type\n =\n \n {invoke.data?.workflow?.name ||\n `Workflow ID: ${invoke.data?.workflowId}`}\n \n
    \n
    \n Number of Sub Tasks\n =\n {invoke.data?.numberOfTasks}\n
    \n {invoke.data?.groups?.map((group: any, index: number) => (\n
    \n Assign To\n =\n {group?.name || `Group ID: ${group?.id}`}\n
    \n ))}\n {invoke.data?.groupIds?.map((id: number) => (\n
    \n Assign To\n =\n Group ID: {id}\n
    \n ))}\n
    \n );\n};\n\nexport const CreateSubTasksPlugin: ServicePlugin<\n CreateSubTaskParams[] | CreateSubTaskParams\n> = {\n src: 'createSubTasks',\n name: 'Create Sub Tasks',\n configurator: CreateSubTasksConfigurator,\n display: CreateSubTasksDisplay,\n validate: (condition: Partial) => {\n return true;\n },\n service: (state: State, params, render) => {\n console.log('createSubTasks params', state, params);\n if (\n state.isSimulation ||\n state.context.skipServicePlugins?.includes(CreateSubTasksPlugin.src)\n ) {\n return true;\n }\n const data = (Array.isArray(params) ? params : [params])[0].data;\n return new Promise((resolve, reject) => {\n const groupIds = data.groupIds || data.groups.map(g => g.id);\n render?.(\n {\n render?.(undefined);\n reject();\n }}\n handleAssign={subTaskUsers => {\n state.context.subTaskUserIds = subTaskUsers;\n render?.(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n};\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useApiPost as useApiV2Post } from '@sierralabs/core-ui';\n\nimport { StateNode, StateNodeType, Workflow } from '@sierralabs/workflow';\n\nimport api, { ApiParams } from '../../common/api/api';\nimport {\n ApiResult,\n FetchApiCallback,\n useApiGet,\n useApiPatch,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport { VersionItem } from '../../common/version-item/Version.interface';\nimport { StatusColor } from '../../common/ColorSelector';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { useUserContext } from '../../user/User.context';\nimport { FileDto } from '../documents/Document.interface';\nimport {\n ProductEntity,\n ProductWorkflowEntities\n} from '../products/Product.interface';\nimport { CreateSubTasksPlugin } from '../workflow/plugins/services/CreateSubTasksPlugin';\nimport { CheckDependenciesParams } from '../workflow/plugins/transition-conditions/CheckDependenciesPlugin';\nimport { CheckSubTasksPlugin } from '../workflow/plugins/transition-conditions/CheckSubTasksPlugin';\nimport { CheckDependenciesLegacyParams } from '../workflow/plugins-v2/transition-conditions/CheckDependenciesLegacyPlugin';\nimport {\n useStateNodeByStatus,\n useTaskWorkflow\n} from '../workflow/Workflow.hooks';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport {\n compareTaskStatus,\n isSubTaskInActiveStatePath,\n parseTaskStatus\n} from './task.helper';\nimport {\n CheckDependenciesResult,\n CreateSubTasksResult,\n SubTaskUser,\n Task,\n TaskAuditLog,\n TaskEntity,\n TaskStatusLog\n} from './Task.interface';\nimport { CheckSubTasksParams, CreateSubTaskParams } from './Task.machine';\nimport {\n HazardEntity,\n HazardWorkflowEntities\n} from '../hazards/Hazard.interface';\nimport { apiResolve } from '../../common/api/apiResolve';\n\nexport function useGetTaskStatusLogs(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`tasks/${id}/status-log`);\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n taskStatusLogs: data,\n isLoading,\n loadingError: error,\n getStatusLogs: get\n };\n}\n\nexport function useGetVersionedTaskStatusLogs(id: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`tasks/${id}/status-log/versions`);\n return {\n taskStatusLogList: data,\n isLoading,\n loadingError: error,\n getStatusLogs: get\n };\n}\n\nexport function useFindTask(id: number) {\n const { data, isLoading, error, get } = useApiGet(`tasks/${id}`);\n return {\n task: data,\n isLoading: isLoading,\n findError: error,\n findTask: get\n };\n}\n\nexport function useFindTaskFiles(id: number) {\n const { data, isLoading, error, get } = useApiGet(\n `tasks/${id}/files`\n );\n return {\n taskFiles: data,\n isLoading,\n findError: error,\n findTaskFiles: get\n };\n}\n\nexport function useFindTaskFileVersions(id: number) {\n const { data, isLoading, error, get } = useApiGet(\n `tasks/${id}/file-versions`\n );\n return { files: data, isLoading, error, findFiles: get };\n}\n\nexport function useAssignTaskFileVersions(id: number) {\n const { data, isLoading, error, post } = useApiPost>(\n `tasks/${id}/file-versions`\n );\n const assign = useCallback(\n (files: { id: number; version: number }[]) => post({ files }),\n [post]\n );\n return { task: data, isLoading, error, assign };\n}\n\n// non-hook implementation\nexport function updateTask(id: number, params: ApiParams) {\n const request = api.patch(`tasks/${id}`, params);\n return { request, result: apiResolve(request) };\n}\n\nexport function useUpdateTask(id?: number) {\n const [path, setPath] = useState('');\n const [apiParams, setApiParams] = useState();\n const { data, isLoading, error, patch } = useApiPatch(\n path || `tasks/${id}`\n );\n useEffect(() => {\n if (path && apiParams) {\n patch(apiParams);\n }\n }, [path, apiParams, patch]);\n const updateTaskById = useCallback((id: number, apiParams: ApiParams) => {\n setPath(`tasks/${id}`);\n setApiParams(apiParams);\n }, []);\n return {\n updatedTask: data,\n isUpdating: isLoading,\n updateError: error,\n updateTask: patch,\n updateTaskById\n };\n}\n\nexport function useGetTaskAuditLog(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`tasks/${id}/audit-log`);\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n taskAuditLogList: data,\n isLoading,\n loadingError: error,\n getAuditLog: get\n };\n}\n\nexport function useTaskStateType(\n task?: Task,\n status?: string\n): { isFinal: boolean } {\n const [isFinal, setIsFinal] = useState(false);\n const workflow: Workflow | undefined = useTaskWorkflow(task);\n const stateNode: StateNode | undefined = useStateNodeByStatus(\n task?.status || status,\n workflow\n );\n\n useEffect(() => {\n setIsFinal(stateNode?.type === StateNodeType.Final);\n }, [stateNode]);\n\n return { isFinal };\n}\n\nexport function useFindTaskByEntity(entity: WorkflowEntity) {\n const { data, isLoading, error, get } = useApiGet(\n `tasks/entity/${entity}`\n );\n return { data, isLoading, error, get };\n}\n\nexport function useGetTaskEntity(\n taskId: number | undefined,\n shouldFetchOnMount: boolean = true\n): [\n TaskEntity | undefined,\n ApiResult,\n FetchApiCallback\n] {\n const [taskEntities, setTaskEntities] = useState([]);\n const { get, ...result } = useApiGet(\n `tasks/${taskId || 0}/task-entity`\n );\n const { data } = result;\n // current taskEntity based on taskId\n const taskEntity: TaskEntity | undefined = useMemo(() => {\n return taskEntities.find(\n (taskEntity: TaskEntity) => taskEntity.taskId === taskId\n );\n }, [taskId, taskEntities]);\n\n useEffect(() => {\n // fetch when taskId changes\n if (shouldFetchOnMount && typeof taskId === 'number') {\n get();\n }\n }, [get, taskId, shouldFetchOnMount]);\n\n // update taskEntities on fetch\n useEffect(() => {\n if (!data) {\n return;\n }\n const newTaskEntities: TaskEntity[] = [...taskEntities];\n // replace if entity exists\n const existingIndex: number = taskEntities.findIndex(\n (taskEntity: TaskEntity) =>\n taskEntity.id === data.id && taskEntity.taskId === data.taskId\n );\n if (existingIndex > -1) {\n newTaskEntities.splice(existingIndex, 1, data);\n } else {\n newTaskEntities.push(data);\n }\n setTaskEntities(newTaskEntities);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data]);\n\n return [taskEntity, result, get];\n}\n\nexport interface TaskStatusColorHookProps {\n task?: Pick;\n status?: string;\n getLabel?: (label: string) => string;\n}\n\nexport function useTaskStatusColor(props: TaskStatusColorHookProps) {\n const { task, getLabel } = props;\n // get status from task or task log (props.status)\n const status: string = props.status || task?.status || '';\n const workflow: Workflow | undefined = useTaskWorkflow(task);\n const stateNode: StateNode | undefined = useStateNodeByStatus(\n status,\n workflow\n );\n const taskStatus: string = parseTaskStatus(status || stateNode?.name || '');\n const stateColor: any | undefined = stateNode?.meta?.color;\n const color: StatusColor =\n stateColor && typeof stateColor === 'object'\n ? stateColor\n : { color: '#333', background: '#efefef' };\n\n const label: string = useMemo((): string => {\n const label: string = taskStatus || 'Unknown Status';\n return getLabel?.(label) || label;\n }, [getLabel, taskStatus]);\n\n return { color, label };\n}\n\nexport function useTaskRedirect(task: Task | undefined): {\n path?: string;\n redirect?: string;\n result: ApiResult;\n getTaskEntity: FetchApiCallback;\n} {\n const [redirect, setRedirect] = useState();\n\n // handle empty task.type for subtasks\n const taskId: number | undefined = useMemo(() => {\n if (!task) {\n return undefined;\n }\n return task.type ? task.id : task.parent?.id || task.id;\n }, [task]);\n\n const taskType: WorkflowEntity | undefined = useMemo(() => {\n if (!task) {\n return undefined;\n }\n return task.type || task.parent?.type;\n }, [task]);\n\n const isProductEntity: boolean = useMemo(() => {\n return !!taskType && ProductWorkflowEntities.includes(taskType);\n }, [taskType]);\n\n const isHazardEntity: boolean = useMemo(() => {\n return !!taskType && HazardWorkflowEntities.includes(taskType);\n }, [taskType]);\n\n const taskIdForTaskEntity: number | undefined = useMemo(() => {\n // if task type is a product or hazard entity, fetch task entity\n return isProductEntity || isHazardEntity ? taskId : undefined;\n }, [taskId, isProductEntity, isHazardEntity]);\n\n const [taskEntity, result, get] = useGetTaskEntity(\n taskIdForTaskEntity,\n false\n );\n\n const getTaskEntity: FetchApiCallback = useCallback(\n (params?: ApiParams) => {\n if (isProductEntity || isHazardEntity) {\n get(params);\n }\n },\n [get, isProductEntity, isHazardEntity]\n );\n\n const path: string | undefined = useMemo(() => {\n const id: number | undefined = taskId;\n if (typeof id !== 'number' || !taskType) {\n return undefined;\n }\n\n switch (taskType) {\n case WorkflowEntity.File:\n return `/portal/documents/file/task/${id}`;\n case WorkflowEntity.Training:\n return `/portal/admin/training/task/${id}`;\n // singular common\n case WorkflowEntity.Capa:\n case WorkflowEntity.Scar:\n case WorkflowEntity.ChangeOrder:\n return `/portal/${taskType}/task/${id}`;\n // plural common\n case WorkflowEntity.Risk:\n case WorkflowEntity.Spor:\n case WorkflowEntity.Supplier:\n return `/portal/${taskType}s/task/${id}`;\n }\n\n if (taskEntity) {\n // product entity\n if (isProductEntity) {\n const { id: eId, productId } = taskEntity as ProductEntity;\n if (productId) {\n switch (taskType) {\n case WorkflowEntity.DesignVerification:\n return `/portal/products/${productId}/verifications/${eId}`;\n case WorkflowEntity.DesignValidation:\n return `/portal/products/${productId}/validations/${eId}`;\n }\n return `/portal/products/${productId}/${taskType}s/${eId}`;\n }\n // hazard entity\n } else if (isHazardEntity) {\n const { id: eId, hazardId, hazard } = taskEntity as HazardEntity;\n return `/portal/products/${hazard.productId}/hazards/${hazardId}/${taskType}s/${eId}`;\n }\n }\n\n return undefined;\n }, [taskId, taskType, taskEntity, isProductEntity]);\n\n useEffect(() => {\n if ((isProductEntity || isHazardEntity) && path && taskEntity) {\n setRedirect(path);\n }\n }, [path, taskType, taskEntity, isProductEntity, isHazardEntity]);\n\n return { path, redirect, result, getTaskEntity };\n}\n\nexport function useCheckDependencies(taskId: number) {\n const { post, ...result } = useApiPost(\n `tasks/${taskId}/check-dependencies`\n );\n const checkDependencies = useCallback(\n (params: CheckDependenciesParams) => post(params),\n [post]\n );\n return { ...result, checkDependencies };\n}\n\n// v2 task check with v1 entities\nexport function useCheckDependenciesLegacy(taskV2Id: number) {\n const { post, ...result } = useApiV2Post(\n `tasks/plugins/check-dependencies-legacy/${taskV2Id}`\n );\n const checkDependencies = useCallback(\n (params: CheckDependenciesLegacyParams) => post(params),\n [post]\n );\n return { ...result, checkDependencies };\n}\n\nexport function useCreateSubTasks(taskId: number) {\n const { post, ...result } = useApiPost(\n `tasks/${taskId}/subtasks`\n );\n const createSubTasks = useCallback(\n (params: { subTaskUsers: SubTaskUser[] }) => post(params),\n [post]\n );\n return { ...result, createSubTasks };\n}\n\nexport function useReassignSubTasks(task: Task) {\n const { user } = useUserContext();\n const workflow = useTaskWorkflow(task);\n const stateNode = useStateNodeByStatus(task.status, workflow);\n const { taskStatusLogs, getStatusLogs } = useGetTaskStatusLogs(task.id!);\n const isAdmin = (user?.roles || []).some(\n role => role.name && ['Admin', 'SiteAdmin'].includes(role.name)\n );\n const isAssigned = !!(user && task.user && task.user.id === user.id);\n const hasPermission = isAdmin || isAssigned;\n const statusLog = taskStatusLogs?.data?.[0];\n const didTransition = !!(\n user &&\n statusLog &&\n statusLog.createdBy.id === user.id &&\n compareTaskStatus(statusLog.status, task.status)\n );\n\n // groups from createSubTasks action\n const groupIds = useMemo(() => {\n const groupIds: number[] = [];\n const invokes = !stateNode\n ? []\n : Array.isArray(stateNode.invoke)\n ? stateNode.invoke\n : stateNode.invoke\n ? [stateNode.invoke]\n : [];\n for (const invoke of invokes) {\n if (invoke.src === CreateSubTasksPlugin.src && invoke.data) {\n const { data } = invoke as CreateSubTaskParams;\n const ids = data.groupIds || data.groups.map(g => g.id);\n groupIds.push(...ids);\n }\n }\n return groupIds;\n }, [stateNode]);\n\n // final subTask paths: get paths from checkSubTasks params\n const subTaskPaths = useMemo(() => {\n const paths: string[] = [];\n for (const event of stateNode?.events || []) {\n for (const transition of event.transitions || []) {\n for (const condition of transition.conditions || []) {\n const params = condition.params as CheckSubTasksParams | undefined;\n if (\n condition.type === CheckSubTasksPlugin.type &&\n params &&\n params.path\n ) {\n paths.push(params.path);\n }\n }\n }\n }\n return paths;\n }, [stateNode]);\n\n // check from configured paths instead of workflow final state type\n const isSubTaskFinalized = useCallback(\n (subTask: Pick) => {\n return subTaskPaths.some(targetPath => {\n return compareTaskStatus(targetPath, subTask.status);\n });\n },\n [subTaskPaths]\n );\n\n // can reassign subTask if:\n // - didTransition: user transitioned the main task and assigned subTasks\n // - hasPermission: user has admin role or is assigned to the main task\n // - subTask is not yet finalized\n // - subTask has no statePath (default behavior) or it matches the main task status\n const canReassign = useCallback(\n (subTask: Task) => {\n return (\n (didTransition || hasPermission) &&\n !isSubTaskFinalized(subTask) &&\n isSubTaskInActiveStatePath(subTask, task)\n );\n },\n [didTransition, hasPermission, task, isSubTaskFinalized]\n );\n\n // if no permissions, get latest status log for didTransition check\n useEffect(() => {\n !hasPermission && getStatusLogs({ limit: 1 });\n }, [hasPermission, getStatusLogs]);\n\n return {\n groupIds,\n didTransition,\n hasPermission,\n canReassign,\n isSubTaskFinalized\n };\n}\n","import React from 'react';\nimport styled from 'styled-components';\n\nexport const StyledStatusLabel = styled.div`\n display: inline-block;\n padding: 5px 10px;\n background: #efefef;\n border-radius: 6px;\n text-transform: uppercase;\n text-overflow: ellipsis;\n font-weight: 500;\n font-size: 12px;\n color: #000;\n transition: background 0.25s cubic-bezier(0.075, 0.82, 0.165, 1),\n color 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);\n overflow: hidden;\n max-width: 100%;\n &.small {\n border-radius: 4px;\n padding: 2px 5px;\n }\n &.done,\n &.approved,\n &.published,\n &.completed {\n background: #61cdbb;\n }\n &.warn,\n &.in-review,\n &.in-progress {\n background: rgb(241, 225, 91);\n }\n &.draft {\n background: rgb(33, 150, 243);\n color: #fff;\n }\n &.to-do,\n &.incomplete,\n &.error {\n background: #f47560;\n color: #fff;\n }\n`;\n\nexport const StatusLabelTypes = [\n 'completed',\n 'warn',\n 'in-progress',\n 'incomplete',\n 'draft',\n 'to-do',\n 'in-review',\n 'approved',\n 'published',\n 'error'\n] as const;\n\nexport type StatusLabelType = typeof StatusLabelTypes[number];\n\nconst getStatusText = (status?: StatusLabelType) => {\n if (!status) {\n return 'Unknown Status';\n }\n switch (status) {\n case 'in-progress':\n return 'In Progress';\n case 'in-review':\n return 'In Review';\n default:\n // return _.startCase(status);\n return status;\n }\n};\n\nexport interface StatusLabelProps {\n status?: string;\n color?: StatusLabelType;\n}\n\nconst StatusLabel: React.FC = props => {\n const status = props.status?.toLowerCase().trim().replace(' ', '-');\n const text = getStatusText(status as StatusLabelType);\n return (\n \n {text}\n \n );\n};\n\nexport default StatusLabel;\n","import React from 'react';\n\nimport {\n useTaskStatusColor,\n TaskStatusColorHookProps\n} from '../secure-portal/tasks/Task.hooks';\nimport { StyledStatusLabel } from './StatusLabel';\n\nexport interface TaskStatusLabelProps extends TaskStatusColorHookProps {\n size?: 'normal' | 'small';\n className?: string;\n}\n\nconst TaskStatusLabel: React.FC = (\n props: TaskStatusLabelProps\n) => {\n const { task, status, size = 'normal', className = '', getLabel } = props;\n const { color, label: labelValue } = useTaskStatusColor({\n task,\n status,\n getLabel\n });\n const classes = ['status-label'];\n if (className) classes.push(className);\n if (size !== 'normal') classes.push(size);\n return (\n \n {labelValue}\n \n );\n};\n\nexport default TaskStatusLabel;\n","import React, { useMemo } from 'react';\nimport { StatusLabel } from '@sierralabs/core-ui';\nimport {\n FormatComponentProps,\n SiteComponent,\n SiteComponentConfigProps,\n SiteComponentPlugin,\n SiteComponentProps,\n SiteTaskStatusLabelConfigurator,\n useQueryValue,\n useSiteContext,\n useSubscribeComponentChanges\n} from '@sierralabs/site-ui';\n\nimport TaskStatusLabel from '../common/TaskStatusLabel';\n\nexport interface QmsTaskStatusLabelProps {\n status?: { queryId?: string; queryField?: string };\n workflowId?: { queryId?: string; queryField?: string };\n}\n\nexport const QmsTaskStatusLabel: React.FC<\n SiteComponentProps & FormatComponentProps\n> = props => {\n const component = useSubscribeComponentChanges(\n QmsTaskStatusLabelPlugin,\n props\n );\n const { editing, isHover, hoverProps } = useSiteContext();\n const classes = ['qms-task-status-label'];\n if (isHover(component)) {\n classes.push('component-hover');\n }\n const cProps = component.props || {};\n const status = useQueryValue(\n cProps.status?.queryId,\n cProps.status?.queryField,\n props.queryValueProps\n );\n const workflowId = useQueryValue(\n cProps.workflowId?.queryId,\n cProps.workflowId?.queryField,\n props.queryValueProps\n );\n const task = useMemo(() => {\n return status || workflowId ? { status, workflowId } : undefined;\n }, [status, workflowId]);\n const content = task ? : ;\n return (\n \n {editing ? (\n
    \n {content}\n
    \n ) : (\n content\n )}\n
    \n );\n};\n\nexport const QmsTaskStatusLabelConfigurator: React.FC<\n SiteComponentConfigProps\n> = props => {\n // same configurator but different interface for props\n return ;\n};\n\nexport const QmsTaskStatusLabelPlugin: SiteComponentPlugin =\n {\n name: 'QMS Task Status Label',\n type: 'qms-task-status-label',\n component: QmsTaskStatusLabel,\n configurator: QmsTaskStatusLabelConfigurator\n };\n","import React from 'react';\nimport {\n CardContent as MuiCardContent,\n CardContentProps as MuiCardContentProps\n} from '@material-ui/core';\nimport styled from 'styled-components';\n\nconst StyledCardContent = styled(MuiCardContent)`\n &.primary {\n background: ${props => props.theme.palette.primary.dark};\n color: ${props => props.theme.palette.primary.contrastText};\n }\n &.secondary {\n background: ${props => props.theme.palette.secondary.dark};\n color: ${props => props.theme.palette.secondary.contrastText};\n }\n\n &.small {\n padding: 16px;\n }\n &.medium {\n padding: 16px 32px;\n &:last-child {\n padding-bottom: 32px;\n }\n }\n &.large {\n padding: 16px 50px;\n &:last-child {\n padding-bottom: 50px;\n }\n }\n ${props => props.theme.breakpoints.down('sm')} {\n &.small,\n &.medium,\n &.large {\n padding: 16px;\n }\n }\n` as React.FC;\n\nexport interface CardContentProps extends MuiCardContentProps {\n padding?: 'small' | 'medium' | 'large';\n background?: 'primary' | 'secondary';\n}\n\nconst CardContent: React.FC = props => {\n const {\n children,\n padding = 'small',\n background,\n className,\n ...cardProps\n } = props;\n\n const getClassName = () => {\n const classes: any[] = [padding];\n if (className) {\n classes.push(className);\n }\n if (background) {\n classes.push(background);\n }\n return classes.join(' ');\n };\n\n return (\n \n {children}\n \n );\n};\n\nexport default CardContent;\n","import { useCallback } from 'react';\nimport { AxiosRequestConfig } from 'axios';\n\nimport {\n useApiGet,\n useApiPatch,\n useApiPost,\n ApiResult,\n FetchApiCallback\n} from '../../common/api/Api.hooks';\nimport { GetAuthUrlDto } from './Jira.dto';\n\nexport const convertJiraStatus = (status: string): string => {\n if (status) {\n return status.toLowerCase().replace(' ', '-');\n }\n return status;\n};\n\nexport function useJiraAuthUrl(): [ApiResult, FetchApiCallback] {\n const { get, ...result } = useApiGet('jira/url');\n return [result, get];\n}\n\nexport function useSaveJiraCode(): [\n ApiResult,\n (code: string) => void\n] {\n const { patch: apiPatch, ...result } = useApiPatch('jira/code');\n const patch = useCallback((code: string) => apiPatch({ code }), [apiPatch]);\n return [result, patch];\n}\n\nexport function useCheckJiraAuth(): [ApiResult, FetchApiCallback] {\n const { get, ...result } = useApiGet('jira/auth');\n return [result, get];\n}\n\n// avoid using directly, create separate hooks\nexport function useJiraProxy(): [\n ApiResult,\n (requestConfig: AxiosRequestConfig) => void\n] {\n const { post: apiPost, ...result } = useApiPost('jira/proxy');\n const post = useCallback(\n (requestConfig: AxiosRequestConfig) => apiPost(requestConfig),\n [apiPost]\n );\n return [result, post];\n}\n\nexport function useJiraUserDetails(): [\n ApiResult,\n (accountId: string) => void\n] {\n const [result, proxyPost] = useJiraProxy();\n const post = useCallback(\n (accountId: string) =>\n proxyPost({\n url: 'user',\n params: { accountId }\n }),\n [proxyPost]\n );\n return [result, post];\n}\n\nexport function useGetJiraIssues(\n projectKey?: string\n): [\n ApiResult,\n (\n limit?: number,\n page?: number,\n sort?: string,\n direction?: string,\n search?: string\n ) => void\n] {\n const [result, post] = useJiraProxy();\n const getIssues = useCallback(\n (\n limit = 100,\n page = 0,\n sort = 'key',\n direction = 'ASC',\n search?: string\n ) => {\n search = search ? search.replace(/\"/g, '') : undefined;\n let jql = projectKey ? `project = \"${projectKey}\" AND ` : '';\n // jql += `issuetype != Epic`;\n jql += `${\n search ? `AND (id=\"${search}\" OR text ~ \"${search}\")` : ''\n } ORDER BY ${sort} ${direction}`;\n return post({\n method: 'POST',\n url: '/rest/api/2/search',\n data: {\n jql,\n startAt: page * limit || 0,\n maxResults: limit\n }\n });\n },\n [post, projectKey]\n );\n return [result, getIssues];\n}\n\nexport function useGetJiraIssue(\n issueIdOrKey: string\n): [ApiResult, () => void] {\n const [result, post] = useJiraProxy();\n const getIssue = useCallback(() => {\n return post({\n method: 'GET',\n url: '/rest/api/2/issue/' + issueIdOrKey,\n params: {}\n });\n }, [issueIdOrKey, post]);\n return [result, getIssue];\n}\n\nexport function useGetIssueEditMeta(\n issueIdOrKey: string\n): [ApiResult, () => void] {\n const [editMeta, post] = useJiraProxy();\n const getEditMeta = useCallback(() => {\n return post({\n method: 'GET',\n url: '/rest/api/2/issue/' + issueIdOrKey + '/editmeta'\n });\n }, [issueIdOrKey, post]);\n return [editMeta, getEditMeta];\n}\n\nexport function useGetIssueTransition(\n issueIdOrKey: string\n): [ApiResult, () => void] {\n const [transition, post] = useJiraProxy();\n const getIssueTransition = useCallback(() => {\n return post({\n method: 'GET',\n url: '/rest/api/2/issue/' + issueIdOrKey + '/transitions'\n });\n }, [issueIdOrKey, post]);\n return [transition, getIssueTransition];\n}\n\nexport function usePostIssueTransition(\n issueIdOrKey: string\n): [ApiResult, (issue: any) => void] {\n const [status, post] = useJiraProxy();\n const postIssueTransition = useCallback(\n (data: any) => {\n return post({\n method: 'POST',\n url: '/rest/api/2/issue/' + issueIdOrKey + '/transitions',\n data: data\n });\n },\n [issueIdOrKey, post]\n );\n return [status, postIssueTransition];\n}\n","import React from 'react';\nimport { Link } from '@material-ui/core';\n\nimport { TaskJiraIssue } from '../../tasks/TaskJiraIssue.interface';\n\ntype JiraLinkProps = {\n isJiraServer?: boolean;\n issue: Pick;\n baseUrl?: string;\n target?: string;\n};\n\nconst JiraLink: React.FC = ({\n isJiraServer,\n issue,\n baseUrl,\n target = '_blank'\n}) => {\n return isJiraServer ? (\n \n {issue.key}\n \n ) : (\n {\n console.log('issue:', issue);\n if (typeof AP?.navigator?.go === 'function') {\n AP.navigator.go('issue', { issueKey: issue.key });\n }\n }}\n >\n {issue.key}\n \n );\n};\n\nexport default JiraLink;\n","import React from 'react';\nimport { Avatar, LinearProgress } from '@material-ui/core';\nimport styled from 'styled-components';\n\nimport { formatDate } from '../../../common/formatter';\nimport { JiraFieldConfig } from '../../jira-server/jira-server.interface';\nimport { JiraIssue } from '../JiraConnect.interface';\nimport { Link } from '@material-ui/core';\n\nconst StyledAvatar = styled.span`\n .avatar {\n width: 16px;\n height: 16px;\n float: left;\n margin-right: 5px;\n }\n`;\n\nexport type JiraRenderedFieldProps = {\n issue: JiraIssue;\n config: JiraFieldConfig;\n baseUrl: string;\n isJiraServer: boolean;\n};\n\nconst JiraRenderedField: React.FC = ({\n issue,\n config,\n baseUrl,\n isJiraServer\n}) => {\n try {\n const field = issue.fields[config.fieldKey];\n switch (config.type) {\n case 'user':\n return (\n \n \n {isJiraServer ? (\n \n {field.displayName}\n \n ) : (\n {\n if (typeof AP?.navigator?.go === 'function') {\n AP.navigator.go('userProfile', {\n userAccountId: field.accountId\n });\n }\n }}\n >\n {field.displayName}\n \n )}\n \n );\n case 'date':\n return <>{formatDate(field)};\n case 'progress':\n const progress =\n field.total > 0 ? (field.progress / field.total) * 100 : 0;\n return ;\n case 'attachment':\n return (\n \n );\n default:\n // text\n return typeof field === 'object' ? (\n {field.name}\n ) : (\n {field}\n );\n }\n } catch (error) {\n console.debug('Error rendering jira field', issue, config);\n return <>;\n }\n};\n\nexport default JiraRenderedField;\n","import { useField, useFormikContext } from 'formik';\nimport React, { useEffect, useState, useRef } from 'react';\nimport styled from 'styled-components';\nimport DoneIcon from '@material-ui/icons/Done';\nimport ClearIcon from '@material-ui/icons/Clear';\n\nimport {\n Grid,\n GridProps,\n InputAdornment,\n InputProps,\n TextField,\n Typography,\n CircularProgress,\n // ButtonGroup,\n // Button,\n ClickAwayListener,\n ButtonGroup,\n Button\n} from '@material-ui/core';\n\nexport const StyledGrid = styled(Grid)`\n display: flex;\n flex-direction: column;\n .select-field {\n margin-right: 22px;\n }\n .MuiInputBase-multiline {\n align-items: flex-end;\n }\n .multiline {\n margin-bottom: 10px;\n }\n`;\n\nexport type InlineTextFieldProps = {\n name: string;\n label?: string;\n type?: string;\n value?: string | number;\n disabled?: boolean;\n multiline?: boolean;\n select?: boolean;\n placeholder?: string;\n helperText?: string;\n grid?: GridProps;\n inputProps?: InputProps;\n variant?: 'standard' | 'filled' | 'outlined';\n onChange?: (\n event: React.ChangeEvent\n ) => void;\n};\n\nconst InlineTextField: React.FC = props => {\n let {\n children,\n multiline,\n select,\n label,\n name,\n type,\n value,\n placeholder,\n helperText,\n disabled,\n grid,\n inputProps,\n variant = 'outlined' as any,\n onChange\n } = props;\n const formik = useFormikContext();\n const [field, meta, { setValue, setTouched }] = useField(props);\n const [focus, setFocus] = useState(false);\n const [lastSubmitCount, setLastSubmitCount] = useState(formik.submitCount);\n const [previousValue, setPreviousValue] = useState(meta.initialValue);\n const cancelButtonRef = useRef();\n\n if (!grid) {\n // default field to expand entire width of form\n grid = { xs: 12 };\n }\n\n useEffect(() => {\n // update previous value if initial value changes\n setPreviousValue(meta.initialValue);\n }, [meta.initialValue]);\n\n useEffect(() => {\n if (!formik.isSubmitting && lastSubmitCount !== formik.submitCount) {\n // form finished submitting so set current value to previous value\n setPreviousValue(meta.value);\n setLastSubmitCount(formik.submitCount);\n }\n }, [formik.isSubmitting, formik.submitCount, lastSubmitCount, meta.value]);\n\n const handleSubmit = () => {\n console.log('handleSubmit');\n setTouched(true);\n setFocus(false);\n formik.submitForm();\n };\n const handleCancel = () => {\n setTouched(false);\n setValue('');\n };\n\n const getAdornmentClasses = () => {\n const classes = [];\n if (select) classes.push('select-field');\n if (multiline) classes.push('multiline');\n return classes.join(' ');\n };\n\n if (!meta.error && formik.isSubmitting && meta.value !== previousValue) {\n inputProps = {\n ...inputProps,\n endAdornment: (\n \n \n \n )\n };\n } else if (focus) {\n inputProps = {\n ...inputProps,\n endAdornment: (\n \n \n \n {\n event.stopPropagation();\n handleCancel();\n }}\n >\n \n \n \n \n )\n };\n }\n\n return (\n {\n // console.log('onClickAway');\n // handleSubmit();\n }}\n >\n \n {label && (\n \n {label}\n \n )}\n setFocus(true)}\n onChange={event => {\n field.onChange(event);\n // if editing disabled touched until blur\n setTouched(false);\n onChange?.(event);\n }}\n onKeyDown={event => {\n // console.log('event.key', event.key);\n switch (event.key) {\n case 'Escape':\n return handleCancel();\n // case 'Tab':\n // case 'Enter':\n // return handleSubmit();\n }\n }}\n onBlur={event => {\n if (event.relatedTarget === cancelButtonRef.current) {\n handleCancel();\n } else {\n handleSubmit();\n }\n }}\n >\n {children}\n \n \n \n );\n};\n\nexport default InlineTextField;\n","import React from 'react';\nimport { GridProps, Typography } from '@material-ui/core';\n\nimport { StyledGrid } from './InlineTextField';\n\nexport interface InlineFormControlProps extends GridProps {\n label?: string;\n}\n\nexport const InlineFormControl: React.FC = (\n props: InlineFormControlProps\n) => {\n const { label, children, ...gridProps } = props;\n return (\n \n {label && (\n \n {label}\n \n )}\n {children}\n \n );\n};\n","import React, { useEffect, useMemo } from 'react';\nimport { TextField, TextFieldProps } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport {\n useGetJiraIssueTypes,\n useGetJiraIssueTypesByProject,\n useGetJiraProjects\n} from '../JiraConnect.hooks';\nimport { JiraIssueType } from '../JiraConnect.interface';\n\nexport interface JiraIssueTypePickerProps {\n value?: string;\n disabled?: boolean;\n projectId?: string;\n textFieldProps?: Omit;\n onChange?: (value?: {\n id: string;\n label: string;\n issueType: JiraIssueType;\n }) => void;\n}\n\nconst JiraIssueTypePicker: React.FC = props => {\n const { value, disabled, projectId, textFieldProps, onChange } = props;\n const [\n { data: issueTypes, isLoading: isLoadingIssueType, error: issueTypeError },\n getIssueTypes\n ] = useGetJiraIssueTypes();\n const [\n {\n data: projectIssueTypes,\n isLoading: isLoadingProjectIssueTypes,\n error: projectIssueTypeError\n },\n getProjectIssueTypes\n ] = useGetJiraIssueTypesByProject();\n const [{ data: projects }, getProjects] = useGetJiraProjects();\n\n const isLoading = isLoadingIssueType || isLoadingProjectIssueTypes;\n const error = issueTypeError || projectIssueTypeError;\n\n const options = useMemo(() => {\n // optionally include associated issue type project in labels\n const data = projectId ? projectIssueTypes : issueTypes;\n return (data || []).map(issueType => {\n const projectId = issueType.scope?.project?.id;\n const project = projectId\n ? projects?.find(project => project.id === projectId)\n : undefined;\n return {\n value: issueType.id,\n label: issueType.name + (project ? ` (${project.key})` : ''),\n issueType\n };\n });\n }, [issueTypes, projectId, projectIssueTypes, projects]);\n\n const selected = useMemo(() => {\n return value ? options.find(option => option.value === value) : undefined;\n }, [options, value]);\n\n useEffect(() => {\n getProjects();\n }, [getProjects]);\n\n useEffect(() => {\n if (projectId) {\n getProjectIssueTypes({ data: { projectId } });\n } else {\n getIssueTypes();\n }\n }, [projectId, getIssueTypes, getProjectIssueTypes]);\n\n return (\n option.label}\n onChange={(_, value) => {\n const selected = value\n ? { id: value.value, label: value.label, issueType: value.issueType }\n : undefined;\n onChange?.(selected);\n }}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default JiraIssueTypePicker;\n","import React, { useEffect, useMemo } from 'react';\nimport { TextField, TextFieldProps } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { useGetJiraProjects } from '../JiraConnect.hooks';\n\nexport interface JiraProjectPickerProps {\n value?: string;\n disabled?: boolean;\n textFieldProps?: Omit;\n onChange?: (id: string | undefined) => void;\n}\n\nconst JiraProjectPicker: React.FC = props => {\n const { value, disabled, textFieldProps, onChange } = props;\n const [{ data = [], isLoading, error }, getProjects] = useGetJiraProjects();\n\n const options = useMemo(() => {\n return data.map(project => ({\n value: project.id,\n label: `${project.name} (${project.key})`\n }));\n }, [data]);\n\n const selected = useMemo(() => {\n return value ? options.find(option => option.value === value) : undefined;\n }, [options, value]);\n\n useEffect(() => {\n getProjects();\n }, [getProjects]);\n\n return (\n option.label}\n onChange={(_, value) => onChange?.(value?.value)}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default JiraProjectPicker;\n","import { Form, Formik, FormikProps } from 'formik';\nimport React, { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport * as Yup from 'yup';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControlLabel\n} from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\n\nimport FormikButton from '../../../common/formik/FormikButton';\nimport FormikGrid from '../../../common/formik/FormikGrid';\nimport { InlineFormControl } from '../../../common/inline/InlineFormControl';\nimport JiraIssueTypePicker from '../pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../pickers/JiraProjectPicker';\nimport { useCreateJiraIssue, useFindJiraIssues } from '../JiraConnect.hooks';\nimport { JiraIssue, JiraIssueCreateResponse } from '../JiraConnect.interface';\n\nconst StyledDialogContent = styled(DialogContent)`\n .checkbox {\n padding-top: 0;\n padding-bottom: 0;\n }\n`;\n\ninterface FormDto {\n projectId?: string;\n issueTypeId?: string;\n linkToEntity?: boolean;\n duplicateTitle?: boolean;\n duplicateDescription?: boolean;\n}\n\nexport interface JiraIssueCreateDialogProps {\n open: boolean;\n entity: {\n title: string;\n taskId: number;\n description?: string;\n };\n onCancel?: () => void;\n onCreate?: (issue: JiraIssue, shouldLink: boolean | undefined) => void;\n}\n\nconst JiraIssueCreateDialog: React.FC = props => {\n const { open, entity, onCancel, onCreate } = props;\n const formikRef = useRef | null>(null);\n const onCreateRef = useRef(onCreate);\n const [form, setForm] = useState();\n const [issue, setIssue] = useState();\n const [result, setResult] = useState();\n const [createResult, createIssue] = useCreateJiraIssue();\n const [foundResult, findIssues] = useFindJiraIssues();\n const createdIssues = foundResult.data;\n const isLoading = !!(createResult.isLoading || foundResult.isLoading);\n const error = createResult.error || foundResult.error;\n\n useEffect(() => {\n if (!open) {\n setForm(undefined);\n setIssue(undefined);\n setResult(undefined);\n }\n }, [open]);\n\n useEffect(() => {\n onCreateRef.current = onCreate;\n }, [onCreate]);\n\n useEffect(() => {\n formikRef.current?.setSubmitting(isLoading);\n }, [isLoading]);\n\n useEffect(() => {\n setResult(createResult.data);\n }, [createResult.data]);\n\n useEffect(() => {\n if (form && result) {\n findIssues({ title: result.key });\n }\n }, [form, result, findIssues]);\n\n useEffect(() => {\n const issue = createdIssues?.issues[0];\n issue && setIssue(issue);\n }, [createdIssues]);\n\n useEffect(() => {\n if (issue) {\n onCreateRef.current?.(issue, form?.linkToEntity);\n }\n }, [issue, form?.linkToEntity]);\n\n return (\n \n {\n if (!values.projectId || !values.issueTypeId) {\n return;\n }\n setForm(values);\n setResult(undefined);\n createIssue({\n fields: {\n summary: entity.title,\n description: entity.description,\n project: { id: values.projectId },\n issuetype: { id: values.issueTypeId }\n }\n });\n }}\n >\n {({ values, errors, touched, setFieldValue }) => (\n
    \n Create Jira Issue\n \n \n \n {\n setFieldValue('projectId', projectId, true);\n setFieldValue('issueTypeId', undefined, true);\n }}\n />\n \n \n {\n setFieldValue('issueTypeId', issueType?.id, true);\n }}\n />\n \n \n {\n setFieldValue('linkToEntity', checked, true);\n }}\n />\n }\n />\n \n \n {\n setFieldValue('duplicateTitle', checked, true);\n }}\n />\n }\n />\n \n \n {\n setFieldValue('duplicateDescription', checked, true);\n }}\n />\n }\n />\n \n \n {error && {error.message}}\n \n \n \n Create\n \n
    \n )}\n \n
    \n );\n};\n\nexport default JiraIssueCreateDialog;\n","import { useCallback } from 'react';\n\nimport {\n useApiDelete,\n useApiGet,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport api, { ApiParams } from '../../common/api/api';\nimport { apiResolve } from '../../common/api/apiResolve';\nimport { TaskJiraIssueV2 } from './TaskJiraIssueV2.interface';\n\nexport function findTaskJiraIssuesV2(taskId: number, params: ApiParams = {}) {\n const request = api.get(`tasks-jira-v2/${taskId}`, params);\n const result = apiResolve(request);\n return { request, result };\n}\n\nexport function useFindTaskJiraIssuesV2(taskId: number) {\n const { data, get, ...result } = useApiGet(\n `tasks-jira-v2/${taskId}`\n );\n return { ...result, taskJiraIssues: data, findTaskJiraIssues: get };\n}\n\nexport function useCreateTaskJiraIssueV2() {\n const { post, ...result } = useApiPost('tasks-jira-v2');\n const createTaskJiraIssue = useCallback(\n (params: Partial) => post(params),\n [post]\n );\n return { ...result, createTaskJiraIssue };\n}\n\nexport function useDeleteTaskJiraIssueV2(id: number | undefined) {\n const { data, del, ...result } = useApiDelete(`tasks-jira-v2/${id}`);\n return { ...result, deletedJiraIssue: data, deleteTaskJiraIssue: del };\n}\n","import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport {\n Button,\n Card,\n CardActions,\n CardProps,\n Icon,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField\n} from '@material-ui/core';\nimport { Close } from '@material-ui/icons';\nimport { Autocomplete } from '@material-ui/lab';\nimport { CardTitle } from '@sierralabs/core-ui';\n\nimport CardContent from '../../../common/card/CardContent';\nimport ConfirmDialog from '../../../common/dialogs/ConfirmDialog';\nimport AppSnackbar from '../../../common/AppSnackbar';\nimport { useDebounce } from '../../../common/Debounce.hooks';\nimport StatusLabel from '../../../common/StatusLabel';\nimport { convertJiraStatus } from '../../jira/Jira.hooks';\nimport JiraLink from '../../jira-connect/components/JiraLink';\nimport JiraRenderedField from '../../jira-connect/components/JiraRenderedField';\nimport JiraIssueCreateDialog from '../../jira-connect/dialogs/JiraIssueCreateDialog';\nimport { useFindJiraIssues } from '../../jira-connect/JiraConnect.hooks';\nimport { JiraIssue } from '../../jira-connect/JiraConnect.interface';\nimport { useJiraServerContext } from '../../jira-server/jira-server.context';\nimport { JiraFieldConfig } from '../../jira-server/jira-server.interface';\nimport {\n useCreateTaskJiraIssueV2,\n useDeleteTaskJiraIssueV2,\n useFindTaskJiraIssuesV2\n} from '../TaskJiraIssueV2.hooks';\nimport { TaskJiraIssueV2, TaskV2 } from '../TaskJiraIssueV2.interface';\n\nexport interface TaskJiraV2AssignCardProps {\n task: TaskV2 | undefined; // undefined for site builder view mode\n icon?: string;\n title?: React.ReactNode;\n entity?: { name: string; description?: string };\n jiraFieldColumns?: JiraFieldConfig[];\n className?: string;\n cardProps?: CardProps;\n onChange?: (jiraIssues: TaskJiraIssueV2[]) => void;\n}\n\nconst TaskJiraV2AssignCard: React.FC = props => {\n const {\n task,\n icon = 'confirmation_number',\n title = 'Linked Jira Issues',\n entity,\n className,\n jiraFieldColumns,\n cardProps,\n onChange\n } = props;\n const taskId = task?.id;\n const onChangeRef = useRef(onChange);\n onChangeRef.current = onChange;\n const [search, setSearch] = useState('');\n const debouncedSearch = useDebounce(search || '', 300);\n const [selectedIssue, setSelectedIssue] = useState(null);\n const [issueToUnlink, setIssueToUnlink] = useState();\n const [didCreateIssue, setDidCreateIssue] = useState<{\n open: boolean;\n key?: string;\n }>({ open: false });\n const [openCreateJiraIssueDialog, setOpenCreateJiraIssueDialog] =\n useState(false);\n const { isJiraServer, baseUrl } = useJiraServerContext();\n const [{ data: jiraIssues }, findIssues] = useFindJiraIssues();\n const [{ data: updatedJiraIssues }, findIssuesByIds] = useFindJiraIssues();\n const { taskJiraIssues, findTaskJiraIssues } = useFindTaskJiraIssuesV2(\n taskId || 0\n );\n const {\n data: createdTaskJiraIssue,\n isLoading: isCreating,\n createTaskJiraIssue\n } = useCreateTaskJiraIssueV2();\n const { deletedJiraIssue, deleteTaskJiraIssue } = useDeleteTaskJiraIssueV2(\n issueToUnlink?.id || 0\n );\n\n // get the summary field from jira data in case our local cache is outdated\n const mergedTaskJiraIssues = useMemo(() => {\n if (!taskJiraIssues || !updatedJiraIssues) {\n return taskJiraIssues;\n }\n return taskJiraIssues.map(issue => {\n const jiraIssue = updatedJiraIssues.issues.find(i => i.key === issue.key);\n return {\n ...issue,\n summary: jiraIssue?.fields.summary || issue.summary,\n status: jiraIssue?.fields.status?.name || issue.status\n };\n });\n }, [taskJiraIssues, updatedJiraIssues]);\n\n // remove selectedIssue on select to re-render field\n useEffect(() => {\n selectedIssue && setSelectedIssue(null);\n }, [selectedIssue]);\n\n // fetch when task.status gets updated after creating Jira issue on transition\n useEffect(() => {\n taskId && findTaskJiraIssues();\n }, [\n findTaskJiraIssues,\n taskId,\n task?.status,\n createdTaskJiraIssue,\n deletedJiraIssue\n ]);\n\n useEffect(() => {\n if (taskJiraIssues) {\n const keys = taskJiraIssues.map(i => i.key);\n findIssuesByIds({ keys, limit: keys.length > 0 ? 10 : 0 });\n }\n }, [taskJiraIssues, findIssuesByIds]);\n\n useEffect(() => {\n findIssues({ limit: 100, title: debouncedSearch });\n }, [debouncedSearch, findIssues]);\n\n useEffect(() => {\n if (mergedTaskJiraIssues) {\n onChangeRef.current?.(mergedTaskJiraIssues);\n }\n }, [mergedTaskJiraIssues]);\n\n return (\n \n \n {icon}\n {title}\n \n \n \n fullWidth\n clearOnBlur\n value={selectedIssue}\n disabled={isCreating}\n options={jiraIssues?.issues || []}\n getOptionLabel={issue => `${issue.key}: ${issue.fields.summary}`}\n renderInput={params => (\n \n )}\n onInputChange={(_, value) => setSearch(value)}\n onChange={(_, issue) => {\n setSelectedIssue(issue);\n if (\n !task ||\n !issue ||\n mergedTaskJiraIssues?.some(i => i.key === issue.key)\n ) {\n return;\n }\n createTaskJiraIssue({\n taskId: task.id,\n issue,\n key: issue.key,\n summary: issue.fields.summary,\n status: issue.fields.status.name\n });\n }}\n />\n \n \n \n \n \n ID\n Summary\n Status\n {jiraFieldColumns?.map(column => (\n {column.title}\n ))}\n \n \n \n \n {mergedTaskJiraIssues?.map(taskJiraIssue => {\n const status = taskJiraIssue.status || 'Backlog';\n return (\n \n \n \n \n \n {taskJiraIssue.summary}\n \n \n \n \n {jiraFieldColumns?.map(column => (\n \n \n \n ))}\n \n setIssueToUnlink(taskJiraIssue)}\n >\n \n \n \n \n );\n })}\n \n
    \n
    \n \n setOpenCreateJiraIssueDialog(true)}\n >\n Create Jira Issue\n \n \n\n setIssueToUnlink(undefined)}\n onConfirm={() => {\n issueToUnlink && deleteTaskJiraIssue();\n setIssueToUnlink(undefined);\n }}\n />\n {task && (\n setOpenCreateJiraIssueDialog(false)}\n onCreate={(issue, shouldLink) => {\n setOpenCreateJiraIssueDialog(false);\n setDidCreateIssue({ open: true, key: issue.key });\n if (shouldLink) {\n createTaskJiraIssue({\n taskId: task.id,\n issue,\n key: issue.key,\n summary: issue.fields.summary,\n status: issue.fields.status.name\n });\n }\n }}\n />\n )}\n setDidCreateIssue(value => ({ ...value, open: false }))}\n >\n Created Jira Issue: {didCreateIssue.key}\n \n
    \n );\n};\n\nexport default TaskJiraV2AssignCard;\n","import React from 'react';\nimport styled from 'styled-components';\nimport {\n Checkbox,\n FormControlLabel,\n FormHelperText,\n MenuItem,\n TextField\n} from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\nimport { ConfigFieldControl } from '@sierralabs/core-ui';\nimport { QueryBuilderPluginConfig } from '@sierralabs/query-core';\n\nimport { ColumnType } from '@sierralabs/entity-core';\nimport { useEntityContext } from '@sierralabs/entity-ui';\nimport { tableCase } from '@sierralabs/core';\nimport {\n QueryBuilderReactPlugin,\n useQueryBuilderContext\n} from '@sierralabs/query-ui';\n\nconst StyledConfigFieldControl = styled(ConfigFieldControl)`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n`;\n\nexport enum DateFormat {\n Day = 'day',\n Month = 'month',\n Quarter = 'quarter',\n Year = 'year'\n}\n\nexport enum DatasetType {\n Single = 'Single',\n Multiple = 'Multiple'\n}\n\nexport interface LineChartQueryBuilderParams {\n datasetType: DatasetType;\n field?: {\n columnName?: string;\n columnType?: ColumnType;\n format?: DateFormat;\n displayAllDates?: boolean;\n };\n fieldLegend?: {\n columnName?: string;\n columnType?: ColumnType;\n };\n chartHeight?: number;\n showLegends?: boolean;\n forWorkflowStatus?: boolean;\n axisTitle?: {\n show?: boolean;\n XTitle?: string;\n YTitle?: string;\n };\n excludeNullValues?: boolean;\n}\n\nexport const LineChartQueryBuilder: React.FC<\n QueryBuilderPluginConfig\n> = props => {\n const { type, params } = props;\n const { queryManager } = useQueryBuilderContext();\n const { entities } = useEntityContext();\n const index = (queryManager.query?.config?.pluginConfigs || []).findIndex(\n pluginConfig => pluginConfig.type === type\n );\n\n const update = (updateParams: Partial = {}) => {\n queryManager.updatePluginConfig(index, {\n type: LineChartQueryBuilderPlugin.type,\n params: { ...params, ...updateParams }\n });\n };\n\n return (\n <>\n \n {\n const { value } = event.target;\n if (!!value) {\n params.datasetType = value as DatasetType;\n update();\n }\n }}\n >\n {[DatasetType.Single, DatasetType.Multiple].map(value => (\n \n {value}\n \n ))}\n \n Select the Chart Dataset Type\n \n \n columnMap.path\n )}\n onChange={(_, value) => {\n params.field = {\n columnName: value || undefined\n };\n if (value) {\n // get selected column type\n const [alias, property] = value.split('.');\n params.field.columnType = entities\n ?.find(entity => entity.tableName === tableCase(alias))\n ?.columns.find(column => column.name === property)?.type;\n }\n update();\n }}\n renderInput={params => (\n \n )}\n />\n \n Select the field value to be displayed on the chart X axis (Bottom)\n \n \n {['timestamp', 'date'].includes(\n params?.field?.columnType || ('' as any)\n ) && (\n <>\n \n {\n const { value } = event.target;\n if (!!value) {\n params.field = {\n ...params.field,\n format: value as DateFormat\n };\n update();\n }\n }}\n >\n {[\n DateFormat.Day,\n DateFormat.Month,\n DateFormat.Quarter,\n DateFormat.Year\n ].map(value => (\n \n {value}\n \n ))}\n \n \n Date format for field {params.field?.columnName}\n \n \n \n {\n params.field = {\n ...params.field,\n displayAllDates: !params.field?.displayAllDates\n };\n update();\n }}\n />\n }\n />\n \n This will display all dates even the value is 0\n \n \n \n )}\n {params.datasetType === DatasetType.Multiple && (\n \n columnMap.path\n )}\n onChange={(_, value) => {\n params.fieldLegend = {\n columnName: value || undefined\n };\n if (value) {\n // get selected column type\n const [alias, property] = value.split('.');\n params.fieldLegend.columnType = entities\n ?.find(entity => entity.tableName === tableCase(alias))\n ?.columns.find(column => column.name === property)?.type;\n }\n update();\n }}\n renderInput={params => (\n \n )}\n />\n \n Select the field value that will be used as Legend indicator\n \n \n )}\n \n {\n const value = event.target.value\n ? parseInt(event.target.value)\n : undefined;\n params.chartHeight = value;\n update();\n }}\n />\n Custom Chart Height (Default: 300px)\n \n \n {\n params.showLegends = !params.showLegends;\n update();\n }}\n />\n }\n />\n \n \n {\n params.excludeNullValues = !params.excludeNullValues;\n update();\n }}\n />\n }\n />\n \n This will exclude null values on both Field (X Axis) and FieldLegend\n \n \n \n {\n params.forWorkflowStatus = !params.forWorkflowStatus;\n update();\n }}\n />\n }\n />\n \n Enable the parsing of Task Status values\n \n \n \n {\n params.axisTitle = {\n ...params.axisTitle,\n show: event.target.checked\n };\n update();\n }}\n />\n }\n />\n Show the title on both X and Y Axis\n \n {params?.axisTitle?.show && (\n <>\n \n {\n const value = event.target.value;\n params.axisTitle = {\n ...params.axisTitle,\n XTitle: value\n };\n update();\n }}\n />\n \n \n {\n const value = event.target.value;\n params.axisTitle = {\n ...params.axisTitle,\n YTitle: value\n };\n update();\n }}\n />\n \n \n )}\n \n );\n};\n\nexport const LineChartQueryBuilderPlugin: QueryBuilderReactPlugin = {\n name: 'Line Chart',\n type: 'LineChart',\n component: LineChartQueryBuilder\n};\n","import React, { useEffect } from 'react';\nimport { useParams } from 'react-router-dom';\nimport styled from 'styled-components';\nimport { Box, Grid, GridSize, MenuItem, Typography } from '@material-ui/core';\nimport { Alert, AlertTitle } from '@material-ui/lab';\nimport {\n ConfigFieldControl,\n ConfigTextField,\n IconPicker\n} from '@sierralabs/core-ui';\nimport { useFindEntityDataById } from '@sierralabs/entity-ui';\nimport {\n SiteComponent,\n SiteComponentConfigProps,\n SiteComponentPlugin,\n SiteComponentProps,\n SiteTaskStatusCardConfigurator,\n useConfigComponent,\n useSiteContext,\n useSubscribeComponentChanges\n} from '@sierralabs/site-ui';\nimport {\n TaskEntity,\n TaskEvent,\n TaskEventType,\n useFindTask\n} from '@sierralabs/workflow-ui';\n\nimport { useJiraConnectContext } from '../secure-portal/jira-connect/JiraConnect.context';\nimport TaskJiraV2AssignCard from '../secure-portal/task-jira-v2/cards/TaskJiraV2AssignCard';\n\nconst StyledAlertTitle = styled(AlertTitle)`\n font-size: 15px;\n font-weight: 600;\n`;\n\nexport interface TaskJiraAssignCardProps {\n icon?: string;\n title?: string;\n entityId?: string;\n entityTable?: string;\n routeId?: string;\n routeParam?: string;\n grid?: {\n xs?: GridSize;\n sm?: GridSize;\n md?: GridSize;\n lg?: GridSize;\n xl?: GridSize;\n };\n}\n\nexport const TaskJiraAssignCard: React.FC<\n SiteComponentProps\n> = props => {\n const component = useSubscribeComponentChanges(\n TaskJiraAssignCardPlugin,\n props\n );\n const { editing, isHover, hoverProps } = useSiteContext();\n const classes = ['task-jira-assign-card'];\n if (isHover(component)) {\n classes.push('component-hover');\n }\n const {\n icon,\n title,\n entityId,\n entityTable,\n routeParam,\n grid = { xs: 12 }\n } = component.props || {};\n const params = useParams>();\n const dataId = routeParam ? params[routeParam] : undefined;\n const { isAvailable } = useJiraConnectContext();\n const { entityData, getEntityDataById } = useFindEntityDataById(\n entityId || entityTable || '',\n dataId\n );\n const taskId = entityData?.taskId || 0;\n const { task, findTask } = useFindTask(taskId);\n const showAlert = !isAvailable && editing;\n\n useEffect(() => {\n getEntityDataById();\n }, [getEntityDataById]);\n\n useEffect(() => {\n taskId && findTask();\n // refresh on change status\n return TaskEvent.handle(\n TaskEventType.ChangeStatus,\n () => taskId && findTask()\n );\n }, [taskId, findTask]);\n\n return (\n \n {(isAvailable || showAlert) && (\n \n {showAlert ? (\n \n \n JIRA Connect API is not available\n \n This component cannot be displayed properly. Please open SierraQMS\n within JIRA and try again.\n \n ) : isAvailable ? (\n \n ) : null}\n \n )}\n \n );\n};\n\nexport const TaskJiraAssignCardConfigurator: React.FC<\n SiteComponentConfigProps\n> = props => {\n const { component, update } = useConfigComponent(props.component);\n return (\n <>\n \n update('props.icon', icon)}\n />\n update('props.title', event.target.value)}\n />\n \n \n \n Grid\n \n {(['xs', 'sm', 'md', 'lg'] as const).map(size => (\n \n {\n if (!component.props?.grid) {\n update('props.grid', {});\n }\n const value = event.target.value;\n update(\n `props.grid.${size}`,\n value === 'auto' ? 'auto' : parseInt(value)\n );\n }}\n >\n {['auto', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map(spacing => (\n \n {spacing}\n \n ))}\n \n \n ))}\n \n );\n};\n\nexport const TaskJiraAssignCardPlugin: SiteComponentPlugin =\n {\n name: 'Task Jira Assign Card',\n type: 'task-jira-assign-card',\n component: TaskJiraAssignCard,\n configurator: TaskJiraAssignCardConfigurator,\n initConfig: component => {\n if (!component.props) component.props = {};\n component.props.grid = { xs: 12 };\n component.props.icon = 'confirmation_number';\n component.props.title = 'Linked Jira Issues';\n return component;\n }\n };\n","import { snakeCase, groupBy } from 'lodash';\nimport React, {\n MouseEvent,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { ResponsiveLine, PointTooltipProps, Datum } from '@nivo/line';\nimport { Mesh } from '@nivo/voronoi';\nimport { useTooltip, Crosshair, useTooltipState } from '@nivo/tooltip';\nimport { DatumValue } from '@nivo/core';\nimport { Query } from '@sierralabs/query-core';\nimport { useRunQuery } from '@sierralabs/query-ui';\nimport { categoricalColorSchemes } from '@nivo/colors';\nimport { parseTaskStatus } from '@sierralabs/workflow-core';\n\nimport {\n useSubscribeComponentChanges,\n useSiteContext,\n SiteComponent,\n SiteComponentConfigProps,\n SiteComponentPlugin,\n SiteComponentProps,\n SiteComponentStackConfigurator,\n ComponentRenderer,\n ChartItemsEvent,\n ChartItemsEventProps,\n ChartType,\n SiteConfigChart,\n ChartLegends,\n ChartLegendStat\n} from '@sierralabs/site-ui';\nimport { CoreEvent } from '@sierralabs/core-ui';\nimport {\n format,\n startOfMonth,\n endOfMonth,\n startOfQuarter,\n endOfQuarter,\n startOfYear,\n endOfYear,\n isValid,\n addQuarters,\n addDays,\n addMonths,\n addYears\n} from 'date-fns';\nimport styled from 'styled-components';\nimport { Typography } from '@material-ui/core';\nimport { ColumnType } from '@sierralabs/entity-core';\nimport {\n DatasetType,\n DateFormat,\n LineChartQueryBuilderParams,\n LineChartQueryBuilderPlugin\n} from '../queries/plugins/LineChartQueryBuilderPlugin';\n\nconst DefaultChartHeight = 400;\n\nconst StyledTooltip = styled.div`\n display: flex;\n flex-direction: column;\n gap: 10px;\n border-radius: 5px;\n background: #fff;\n min-height: 20px;\n max-height: 200px;\n min-width: 40px;\n max-width: 400px;\n padding: 4px 8px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08);\n\n div {\n display: flex;\n flex-direction: row;\n gap: 6px;\n align-items: center;\n\n .box {\n width: 20px;\n height: 20px;\n }\n }\n`;\n\nconst ChartContaner = styled.div<{ height?: number; dataLength?: number }>`\n overflow-y: hidden;\n overflow-x: ${({ dataLength }) =>\n dataLength && dataLength > 10 ? 'scroll' : 'hidden'};\n position: relative;\n height: ${({ height }) => height ?? DefaultChartHeight}px;\n\n & > div {\n width: ${({ dataLength }) =>\n dataLength && dataLength > 10\n ? `${dataLength * 200}px`\n : '100%'} !important;\n }\n`;\n\ninterface LineChartQueryData {\n total: number;\n [key: string]: any;\n}\n\ninterface ChartData {\n id: string;\n uniqueId: string;\n color: string;\n data: {\n x: number | string;\n y: string | number;\n datasetName: string;\n nonFormatted: string | Date | number;\n }[];\n}\n\nexport interface SiteLineChartProps {\n query?: Partial;\n}\n\nconst MeshAndCrosshair = ({\n layerData,\n height\n}: {\n layerData: Datum;\n height?: number;\n}) => {\n const { showTooltipAt, hideTooltip } = useTooltip();\n const { isVisible } = useTooltipState();\n const x = useRef();\n const y = useRef();\n\n const handleMouseEnter = (point: Datum) => {\n showTooltipAt(\n layerData.tooltip({ point }),\n [point.x + layerData.margin.left, point.y + layerData.margin.top],\n 'top'\n );\n };\n const handleMouseMove = (point: Datum) => {\n showTooltipAt(\n layerData.tooltip({ point }),\n [\n point.x === layerData.innerWidth\n ? (point.x as number)\n : point.x === 0\n ? (point.x as number) + layerData.margin.left * 2\n : point.x + layerData.margin.left,\n (point.y as number) <= 100\n ? (point.y as number) + layerData.margin.top * 2 + 30 // if the Y value is almost the highest, keep the tooltip under the bullets\n : (point.y as number) + layerData.margin.top\n ],\n 'top'\n );\n y.current = point.y;\n x.current = point.x;\n };\n\n const handleMouseLeave = (_: Datum, event: MouseEvent) => {\n // To prevent hiding the tooltip when point was hovered\n if ((event.relatedTarget as any)?.id !== 'custom-point') {\n hideTooltip();\n }\n };\n\n return (\n <>\n {isVisible && (\n \n )}\n \n \n );\n};\n\nexport const SiteLineChart: React.FC<\n SiteComponentProps\n> = props => {\n const component = useSubscribeComponentChanges(SiteLineChartPlugin, props);\n const { isHover, hoverProps } = useSiteContext();\n const { nivo } = categoricalColorSchemes;\n const [activeId, setActiveId] = useState();\n const { queryData, runQuery } = useRunQuery();\n const query = component.props?.query;\n const lineChartParams: LineChartQueryBuilderParams | undefined =\n query?.config?.pluginConfigs?.find(\n plugin => plugin.type === LineChartQueryBuilderPlugin.type\n )?.params;\n\n const withChartDialog = component.children?.find(\n child => child.type === 'chart-items-dialog'\n );\n\n const classes = ['site-line-chart'];\n if (isHover(component)) {\n classes.push('component-hover');\n }\n\n const isDateField = useMemo(() => {\n return {\n field: ['timestamp', 'date'].includes(\n lineChartParams?.field?.columnType || ('' as any)\n ),\n fieldLegend: ['timestamp', 'date'].includes(\n lineChartParams?.fieldLegend?.columnType || ('' as any)\n )\n };\n }, [lineChartParams]);\n\n const handleItemClick = (conditions: ChartItemsEventProps['conditions']) => {\n CoreEvent.dispatch(ChartItemsEvent.OpenDialog, {\n id: component.id,\n conditions\n });\n };\n\n const getDateRange = useCallback(\n (\n dateString: string,\n columnType?: ColumnType,\n dateFormat: DateFormat = DateFormat.Month\n ) => {\n if (\n !dateString ||\n !columnType ||\n !dateFormat ||\n !(['timestamp', 'date'] as ColumnType[]).includes(columnType)\n ) {\n return [];\n }\n const pattern = 'yyyy-MM-dd';\n const dateObject = new Date(dateString);\n\n switch (dateFormat) {\n case DateFormat.Day:\n const formattedDate = format(dateObject, pattern);\n return [`${formattedDate}T00:00:00`, `${formattedDate}T23:29:59`];\n case DateFormat.Month: {\n const start = format(startOfMonth(dateObject), pattern);\n const end = format(endOfMonth(dateObject), pattern);\n return [`${start}T00:00:00`, `${end}T23:29:59`];\n }\n case DateFormat.Quarter: {\n const start = format(startOfQuarter(dateObject), pattern);\n const end = format(endOfQuarter(dateObject), pattern);\n return [`${start}T00:00:00`, `${end}T23:29:59`];\n }\n case DateFormat.Year: {\n const start = format(startOfYear(dateObject), pattern);\n const end = format(endOfYear(dateObject), pattern);\n return [`${start}T00:00:00`, `${end}T23:29:59`];\n }\n }\n },\n []\n );\n\n const getLabel = useCallback(\n (value: any) => {\n return lineChartParams?.forWorkflowStatus && typeof value === 'string'\n ? parseTaskStatus(value)\n : value;\n },\n [lineChartParams?.forWorkflowStatus]\n );\n\n const customTooltip = useCallback(({ point }: PointTooltipProps) => {\n return (\n \n {point.serieId}\n
    \n
    \n {point.data.x}:\n {point.data.y}\n
    \n
    \n );\n }, []);\n\n const pointSymbol = useCallback(\n point => {\n return (\n {\n const isNullField = point.datum.nonFormatted === 'null';\n const isNullFieldLegend = point.datum.datasetName === 'null';\n\n if (withChartDialog && lineChartParams?.field?.columnName) {\n const conditions: ChartItemsEventProps['conditions'] = [\n {\n operator:\n isDateField.field && !isNullField\n ? 'between'\n : isNullField\n ? 'isNull'\n : 'equal',\n field: lineChartParams.field.columnName as string,\n value:\n isDateField.field && !isNullField\n ? getDateRange(\n point.datum.nonFormatted,\n lineChartParams.field.columnType,\n lineChartParams.field.format\n )\n : point.datum.nonFormatted\n }\n ];\n if (\n lineChartParams?.fieldLegend?.columnName &&\n lineChartParams?.datasetType === DatasetType.Multiple\n ) {\n conditions.push({\n operator:\n isDateField.fieldLegend && !isNullFieldLegend\n ? 'between'\n : isNullFieldLegend\n ? 'isNull'\n : 'equal',\n field: lineChartParams.fieldLegend.columnName as string,\n value:\n isDateField.fieldLegend && !isNullFieldLegend\n ? getDateRange(\n point.datum.datasetName,\n lineChartParams.fieldLegend.columnType,\n isDateField.field\n ? lineChartParams.field.format\n : DateFormat.Day\n )\n : point.datum.datasetName\n });\n }\n conditions.length > 0 && handleItemClick(conditions);\n }\n }}\n id='custom-point'\n r='6'\n fill='#ffffff'\n stroke={point.borderColor}\n strokeWidth='2'\n style={{\n pointerEvents: 'auto',\n cursor: withChartDialog ? 'pointer' : 'auto'\n }}\n >\n );\n },\n [lineChartParams]\n );\n\n const lineChartData = useMemo(() => {\n if (\n !lineChartParams ||\n !queryData ||\n !lineChartParams.field?.columnName ||\n !lineChartParams.datasetType ||\n (lineChartParams.datasetType === DatasetType.Multiple &&\n !lineChartParams.fieldLegend?.columnName)\n ) {\n return [];\n }\n\n // format field name to match with raw data\n const [fieldLegendAlias, legendProperty] = (\n lineChartParams?.fieldLegend?.columnName || ''\n ).split('.');\n const [fieldAlias, property] = (\n lineChartParams.field.columnName || ''\n ).split('.');\n\n const field = fieldAlias.concat('_', snakeCase(property));\n const fieldLegend = fieldLegendAlias.concat('_', snakeCase(legendProperty));\n\n const keys = new Set();\n const data: Array = [];\n\n const grouped = groupBy(queryData, item => item[field]);\n for (const key in grouped) {\n keys.add(key);\n }\n let orderedKeys: string[] = Array.from(keys);\n\n // remove the null values then put the null in the end after finalizing the completed dates below\n if (!lineChartParams.excludeNullValues) {\n orderedKeys = orderedKeys.filter(d => d != 'null');\n }\n\n // Sort the date or timestamp for X axis and include the dates between existing dates based on the format\n if (isDateField.field) {\n orderedKeys = orderedKeys.sort((a, b) => {\n return new Date(a).getTime() - new Date(b).getTime();\n });\n if (!!lineChartParams.field.displayAllDates) {\n const start = orderedKeys[0];\n const end = new Date(orderedKeys[orderedKeys.length - 1]);\n let current = new Date(start);\n orderedKeys = [start];\n\n while (current.getTime() < end.getTime()) {\n switch (lineChartParams.field?.format || DateFormat.Month) {\n case DateFormat.Day:\n current = addDays(current, 1);\n orderedKeys.push(current.toString());\n break;\n case DateFormat.Month:\n current = addMonths(current, 1);\n orderedKeys.push(current.toString());\n break;\n case DateFormat.Quarter:\n current = addQuarters(current, 1);\n orderedKeys.push(current.toString());\n break;\n default:\n current = addYears(current, 1);\n orderedKeys.push(current.toString());\n break;\n }\n }\n }\n }\n\n // add null if the data from api has null value\n if (!lineChartParams.excludeNullValues && keys.has('null')) {\n orderedKeys.push('null');\n }\n\n const groupedData =\n lineChartParams.datasetType === DatasetType.Single\n ? { [query?.config?.mainAlias?.name || 'Data Entity']: queryData }\n : groupBy(queryData, item => item[fieldLegend]);\n\n Object.keys(groupedData).forEach((item, index) => {\n if (item === 'undefined' || typeof item === 'undefined') {\n return;\n }\n const colorIndex =\n nivo.length === 0\n ? -1\n : index - Math.floor(index / nivo.length) * nivo.length;\n const id = getLabel(item);\n data.push({\n id,\n uniqueId: `${id}-${index}`,\n color: nivo[colorIndex],\n data: orderedKeys.map(key => {\n const fieldFormat = lineChartParams.field!.format;\n const rawData = groupedData[item].find(rd =>\n isDateField.field\n ? key === 'null'\n ? rd[field] === null\n : new Date(rd[field]).getTime() == new Date(key).getTime()\n : key === 'null'\n ? rd[field] === null\n : rd[field] == key\n );\n\n return {\n datasetName: id,\n nonFormatted: key,\n x: (isDateField.field &&\n typeof key !== 'undefined' &&\n key !== 'undefined' &&\n isValid(new Date(key))\n ? format(\n new Date(key),\n fieldFormat === DateFormat.Year\n ? 'yyyy'\n : fieldFormat === DateFormat.Quarter\n ? 'QQQQ yyyy'\n : fieldFormat === DateFormat.Day\n ? 'MMM dd, yyyy'\n : 'MMM yyyy'\n )\n : getLabel(key)) as string,\n y: rawData ? rawData.total : 0\n };\n })\n });\n });\n return data;\n }, [lineChartParams, queryData, query?.config?.mainAlias?.name]);\n\n const legendsData: ChartLegendStat[] = useMemo(() => {\n if (!lineChartParams?.showLegends || !lineChartData.length) {\n return [];\n }\n\n return lineChartData.map((data, i) => {\n const value = data.data.reduce(\n (prev, current) => prev + Number(current.y),\n 0\n );\n return {\n id: data.uniqueId,\n value,\n tooltipText: `${data.id}: ${value}`,\n label: getLabel(data.id),\n color: data.color\n };\n });\n }, [lineChartParams, lineChartData]);\n\n const maxValue = useMemo(\n () => (!queryData ? 0 : Math.max(...queryData.map(data => data.total))),\n [queryData]\n );\n\n useEffect(() => {\n setActiveId(undefined);\n }, [\n lineChartParams?.field?.columnName,\n lineChartParams?.fieldLegend?.columnName,\n query?.config?.mainAlias?.name\n ]);\n\n useEffect(() => {\n if (\n (lineChartParams?.datasetType === DatasetType.Single &&\n lineChartParams?.field?.columnName) ||\n (lineChartParams?.datasetType === DatasetType.Multiple &&\n lineChartParams?.field?.columnName &&\n lineChartParams.fieldLegend?.columnName)\n ) {\n query?.config && runQuery(query.config, true);\n }\n }, [query, query?.config, lineChartParams, runQuery]);\n\n return (\n \n \n \n d.color}\n layers={[\n 'grid',\n 'markers',\n 'axes',\n 'areas',\n 'lines',\n 'slices',\n props => (\n \n ),\n 'points',\n 'legends'\n ]}\n pointSymbol={pointSymbol}\n curve='monotoneX'\n data={\n !!activeId\n ? [...lineChartData].filter(d => d.uniqueId === activeId)\n : lineChartData\n }\n margin={{\n top: 60,\n right: 60,\n bottom: 60,\n left: 60\n }}\n yScale={{\n type: 'linear',\n min: 'auto',\n max: maxValue,\n stacked: false,\n reverse: false\n }}\n axisBottom={\n lineChartParams?.axisTitle?.show\n ? {\n legend: lineChartParams.axisTitle?.XTitle,\n legendOffset: 50,\n legendPosition: 'middle'\n }\n : undefined\n }\n axisLeft={\n lineChartParams?.axisTitle?.show\n ? {\n legend: lineChartParams.axisTitle?.YTitle,\n legendOffset: -50,\n legendPosition: 'middle'\n }\n : undefined\n }\n pointBorderColor={{ from: 'serieColor' }}\n tooltip={customTooltip}\n />\n \n {lineChartParams?.showLegends && (\n \n setActiveId(prev => (prev === stat.id ? undefined : stat.id))\n }\n />\n )}\n \n {component.children?.map(child => (\n \n ))}\n \n );\n};\n\nexport const SiteLineChartConfiguration: React.FC<\n SiteComponentConfigProps\n> = props => {\n return (\n <>\n \n \n \n );\n};\n\nexport const SiteLineChartPlugin: SiteComponentPlugin = {\n name: 'Line Chart',\n type: ChartType.Line,\n configurator: SiteLineChartConfiguration,\n component: SiteLineChart,\n initConfig: component => {\n if (!component.props) component.props = {};\n // add LineChart Data set on component query config during initialization\n component.props.query = {\n config: {\n queryType: 'select',\n pluginConfigs: [{ type: LineChartQueryBuilderPlugin.type, params: {} }]\n }\n };\n return component;\n },\n slots: [\n {\n name: 'Chart Items Dialog',\n type: 'chart-items-dialog',\n slot: 'dialog'\n }\n ]\n};\n","import { SiteComponentPlugin } from '@sierralabs/site-ui';\n\nimport { ExportButtonPlugin } from './ExportButtonPlugin';\nimport { QmsFileUploadButtonPlugin } from './QmsFileUploadButtonPlugin';\nimport { QmsTaskStatusLabelPlugin } from './QmsTaskStatusLabelPlugin';\nimport { TaskJiraAssignCardPlugin } from './TaskJiraAssignCardPlugin';\nimport { SiteLineChartPlugin } from './SiteLineChartPlugin';\n\nexport const defaultQmsSitePlugins: SiteComponentPlugin[] = [\n ExportButtonPlugin,\n QmsFileUploadButtonPlugin,\n QmsTaskStatusLabelPlugin,\n SiteLineChartPlugin,\n TaskJiraAssignCardPlugin\n];\n","export interface RouteItem {\n label: string;\n path: string;\n}\n\nexport const routes: RouteItem[] = [\n { label: 'Dashboard', path: '/portal/dashboard' },\n { label: 'Admin Dashboard', path: '/portal/admin-dashboard' },\n { label: 'Quality Roadmap', path: '/portal/quality-roadmap' },\n { label: 'Audit Management', path: '/portal/audit' },\n { label: 'Training Dashboard', path: '/portal/training' },\n {\n label: 'Training Lesson Page',\n path: '/portal/training/:trainingId/version/:trainingVersionId'\n },\n {\n label: 'Training Lesson Page (with User)',\n path: '/portal/training/:trainingId/version/:trainingVersionId/user/:userId'\n },\n { label: 'Training Admin', path: '/portal/admin/training' },\n { label: 'Trainees', path: '/portal/admin/trainees' },\n { label: 'Trainee Detail', path: '/portal/admin/trainee/:userId/detail' },\n // { label: 'Training Admin Board', path: '/portal/admin/training-board' },\n {\n label: 'Training Admin Detail',\n path: '/portal/admin/training/task/:taskId'\n },\n { label: 'Risk Management', path: '/portal/risk' },\n { label: 'Risk Detail', path: '/portal/risks/task/:taskId' },\n { label: 'Document List', path: '/portal/documents' },\n {\n label: 'Document List (Folder)',\n path: '/portal/documents/folder/:folderId'\n },\n { label: 'Document Detail', path: '/portal/documents/file/task/:taskId' },\n // { label: 'Document Board', path: '/portal/document-board' },\n { label: 'Product List', path: '/portal/products' },\n {\n label: 'Product User Need Document',\n path: '/portal/products/:productId/user-needs'\n },\n {\n label: 'Product User Need Detail',\n path: '/portal/products/:productId/user-needs/:userNeedId'\n },\n {\n label: 'Product Design Input Document',\n path: '/portal/products/:productId/design-inputs'\n },\n {\n label: 'Product Design Input Detail',\n path: '/portal/products/:productId/design-inputs/:designInputId'\n },\n {\n label: 'Product Design Output Document',\n path: '/portal/products/:productId/design-outputs'\n },\n {\n label: 'Product Design Output Detail',\n path: '/portal/products/:productId/design-outputs/:designOutputId'\n },\n {\n label: 'Product Verification Document',\n path: '/portal/products/:productId/verifications'\n },\n {\n label: 'Product Verification Detail',\n path: '/portal/products/:productId/verifications/:verificationId'\n },\n {\n label: 'Product Validation Document',\n path: '/portal/products/:productId/validations'\n },\n {\n label: 'Product Validation Detail',\n path: '/portal/products/:productId/validations/:validationId'\n },\n {\n label: 'Product Design Spec Detail',\n path: '/portal/products/:productId/design-specs/:designSpecId'\n },\n { label: 'Product', path: '/portal/products/:productId/:view?' },\n {\n label: 'Hazard',\n path: '/portal/products/:productId/hazards/:hazardId/:view?'\n },\n {\n label: 'Hazard Cause Detail',\n path: '/portal/products/:productId/hazards/:hazardId/causes/:causeId'\n },\n {\n label: 'Hazard Control Detail',\n path: '/portal/products/:productId/hazards/:hazardId/controls/:controlId'\n },\n {\n label: 'Hazard Action Detail',\n path: '/portal/products/:productId/hazards/:hazardId/actions/:actionId'\n },\n { label: 'CAPA List', path: '/portal/capa' },\n { label: 'CAPA Detail', path: '/portal/capa/task/:taskId' },\n { label: 'SCAR List', path: '/portal/scar/' },\n { label: 'SCAR Detail', path: '/portal/scar/task/:taskId' },\n { label: 'Change Order List', path: '/portal/change-order/' },\n { label: 'Change Order Detail', path: '/portal/change-order/task/:taskId' },\n { label: 'Employees', path: '/portal/users' },\n { label: 'User Profile', path: '/portal/user-profile' },\n { label: 'Employee Detail', path: '/portal/users/:userId' },\n { label: 'Team Detail', path: '/portal/groups/:groupId' },\n { label: 'Teams', path: '/portal/groups' },\n { label: 'Supplier Management', path: '/portal/suppliers' },\n { label: 'Supplier Detail', path: '/portal/suppliers/task/:taskId' },\n { label: 'Purchase Order Detail', path: '/portal/spors/task/:taskId' },\n { label: 'Purchase Order Form', path: '/portal/purchase/form/:taskId' },\n { label: 'Workflow', path: '/portal/admin/workflow' },\n { label: 'Workflow Detail', path: '/portal/admin/workflow/:workflowId' },\n { label: 'Task Types', path: '/portal/admin/task-types' },\n { label: 'Task Type Detail', path: '/portal/admin/task-types/:name' },\n { label: 'Templates', path: '/portal/admin/templates' },\n { label: 'Agreements', path: '/portal/admin/agreements' },\n { label: 'Agreement Detail', path: '/portal/admin/agreements/:agreementId' },\n { label: 'Form Templates', path: '/portal/admin/form-templates' },\n {\n label: 'Form Template Detail',\n path: '/portal/admin/form-templates/:formTemplateId'\n },\n { label: 'JIRA', path: '/portal/jira' },\n { label: 'JIRA Issue', path: '/portal/jira/:issueId' },\n { label: 'JIRA Connect', path: '/portal/jira-connect' }\n // { label: 'Sign Up', path: '/portal/admin/signups' },\n // { label: 'Sign Up Detail', path: '/portal/admin/signups/:id' }\n];\n","import React, { useMemo, useState } from 'react';\nimport { useHistory } from 'react-router';\nimport styled from 'styled-components';\nimport {\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField\n} from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\nimport { ConfigFieldControl } from '@sierralabs/core-ui';\nimport {\n getRouteParams,\n SiteEventConfigProps,\n SiteEventPlugin,\n SiteEventRouteParam,\n SiteEventRouteParamConfigurator,\n SiteParamPlugin,\n useSiteContext\n} from '@sierralabs/site-ui';\n\nimport { routes } from '../../environments/routes';\n\nconst StyledConfiguratorDiv = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n`;\n\nexport interface QmsEventRouteProps {\n routePath?: string;\n routeParams?: SiteEventRouteParam[];\n}\n\nconst QmsEventRouteConfigurator: React.FC<\n SiteEventConfigProps\n> = props => {\n const { onChange } = props;\n const [config, setConfig] = useState(\n () => props.config || {}\n );\n\n const route = useMemo(() => {\n return routes.find(route => route.path === config.routePath);\n }, [config.routePath]);\n\n const params = useMemo(() => getRouteParams(route?.path || ''), [route]);\n\n return (\n \n \n `${option.label} -> ${option.path}`}\n onChange={(_, value) => {\n const routePath = value?.path || undefined;\n const newConfig = { ...config, routePath };\n setConfig(newConfig);\n onChange?.(newConfig);\n }}\n renderInput={params => (\n \n )}\n />\n \n {params.length > 0 && (\n \n \n \n \n Param Key\n Source\n Configuration\n \n \n \n {params.map((paramKey, index) => {\n const param = config.routeParams?.[index];\n const routeParam = param?.key === paramKey ? param : undefined;\n return (\n {\n if (!config.routeParams) config.routeParams = [];\n routeParam.key = paramKey;\n config.routeParams[index] = routeParam;\n const newConfig = { ...config };\n setConfig(newConfig);\n onChange?.(newConfig);\n }}\n />\n );\n })}\n \n
    \n
    \n )}\n
    \n );\n};\n\nexport const QmsEventRoutePlugin: SiteEventPlugin<\n QmsEventRouteProps,\n {\n history: ReturnType;\n paramPlugins: SiteParamPlugin[];\n }\n> = {\n name: 'QMS Route Navigation',\n type: 'qms-route-navigation',\n eventTypes: ['onClick'],\n configurator: QmsEventRouteConfigurator,\n getConfigSummary: event => {\n const route = routes.find(route => route.path === event?.config?.routePath);\n return <>Navigate to {route?.label || '?'};\n },\n handler: (config, context, data?: any) => {\n const { paramPlugins, history } = context.hook;\n const route = routes.find(route => route.path === config.routePath);\n let url = route?.path || '';\n for (const routeParam of config.routeParams || []) {\n const paramPlugin = paramPlugins.find(p => p.type === routeParam.type);\n const paramContext = context.params.find(\n p => p.type === paramPlugin?.type\n );\n const value = paramPlugin?.getParamValue(\n routeParam.config,\n paramContext?.hook,\n data\n );\n url = url.replace(`:${routeParam.key}`, value);\n }\n history.push(url);\n },\n useHook: () => {\n const history = useHistory();\n const { paramPlugins } = useSiteContext();\n return { history, paramPlugins };\n }\n};\n","import { SiteEventPlugin } from '@sierralabs/site-ui';\n\nimport { QmsEventRoutePlugin } from './QmsEventRoutePlugin';\n\nexport const defaultQmsSiteEventPlugins: SiteEventPlugin[] = [\n QmsEventRoutePlugin\n];\n","import { Checkbox, FormControlLabel, TextField } from '@material-ui/core';\nimport {\n ConfigFieldControl,\n FormConfigRequired,\n FormConfigTitleDescription,\n useFormContext\n} from '@sierralabs/forms-ui';\n\nexport interface FormPickerConfig {\n multiple?: boolean;\n placeholder?: string;\n}\n\nexport interface FormConfigPickerProps {\n disableMultiple?: boolean;\n}\n\nexport const FormConfigPicker = (\n props: FormConfigPickerProps\n) => {\n const { disableMultiple } = props;\n const { formState, setFormState, notifyFormEdit } = useFormContext<\n FormValuesType,\n FormPickerConfig\n >();\n const element = formState.selectedFormElement!;\n if (!element.config) element.config = {};\n return (\n <>\n \n \n \n {\n element.config!.placeholder = event.target.value;\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }}\n />\n \n \n {\n element.config!.multiple = !element.config!.multiple;\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }}\n />\n }\n />\n \n \n );\n};\n","import React, { useEffect, useRef, useState } from 'react';\nimport { Group as GroupIcon } from '@material-ui/icons';\nimport {\n FormElementPlugin,\n FormElementProps,\n useDataSourceProps,\n useFormContext\n} from '@sierralabs/forms-ui';\nimport { Group, GroupPicker } from '@sierralabs/user-ui';\n\nimport { FormConfigPicker, FormPickerConfig } from './config/FormConfigPicker';\n\nconst FormGroupPicker = ({\n element,\n edit,\n disabled\n}: FormElementProps) => {\n const { placeholder, multiple } = element.config || {};\n const { formValues, setFormValue } = useFormContext();\n const key = (element.dataSource as keyof T) || element.key;\n const [value, setValue] = useState((formValues[key] as any) || undefined);\n const previousValueRef = useRef(value);\n const dataSourceProps = useDataSourceProps(element, value);\n\n // refresh value if formValues change outside of the component\n useEffect(() => {\n if (previousValueRef.current !== formValues[key]) {\n setValue(formValues[key]);\n previousValueRef.current = formValues[key];\n }\n }, [formValues, key]);\n\n return (\n {\n const ids = Array.isArray(groups)\n ? groups.map(group => group.id)\n : groups?.id || null;\n setFormValue(key, ids as any);\n }}\n />\n );\n};\n\nexport const FormConfigGroupPicker: React.FC = () => {\n return ;\n};\n\nexport const FormGroupPickerPlugin: FormElementPlugin = {\n icon: ,\n name: 'Team Picker',\n type: 'GroupPicker',\n dataTypes: ['integer'],\n configurator: FormConfigGroupPicker,\n element: FormGroupPicker\n};\n","import { camelCase } from 'lodash';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Checkbox, FormControlLabel } from '@material-ui/core';\nimport { Person } from '@material-ui/icons';\nimport {\n ConfigFieldControl,\n FormElementPlugin,\n FormElementProps,\n useDataSourceProps,\n useFormContext\n} from '@sierralabs/forms-ui';\nimport { GroupPicker, User, UserPicker } from '@sierralabs/user-ui';\nimport { useUpdateTask } from '@sierralabs/workflow-ui';\n\nimport { FormConfigPicker, FormPickerConfig } from './config/FormConfigPicker';\n\nexport interface FormUserPickerConfig extends FormPickerConfig {\n /**\n * Assigns the selected User to TaskV2 (`taskV2.user`).\n */\n assignToTask?: boolean;\n includeInactive?: boolean;\n hideSupportUsers?: boolean;\n filterGroupIds?: number[];\n}\n\nconst FormUserPicker = ({\n element,\n edit,\n disabled\n}: FormElementProps) => {\n const {\n placeholder,\n multiple,\n assignToTask,\n includeInactive,\n hideSupportUsers,\n filterGroupIds\n } = element.config || {};\n const { entitySchema, formValues, setFormValue } = useFormContext<\n T,\n FormUserPickerConfig\n >();\n // taskId field is available for workflowEnabled entities\n const taskId: number | undefined = (formValues as any).taskId;\n const { updateTask } = useUpdateTask(taskId || 0);\n const key = (element.dataSource as keyof T) || element.key;\n const [value, setValue] = useState((formValues[key] as any) || undefined);\n const previousValueRef = useRef(value);\n const dataSourceProps = useDataSourceProps(element, value);\n\n // refresh value if formValues change outside of the component\n useEffect(() => {\n if (previousValueRef.current !== formValues[key]) {\n setValue(formValues[key]);\n previousValueRef.current = formValues[key];\n }\n }, [formValues, key]);\n\n return (\n {\n // get column to check if array\n const column = entitySchema?.columns.find(column => {\n const name = column.name || camelCase(column.displayName);\n return element.dataSource === name;\n });\n // convert selected to array of users\n const users = Array.isArray(value) ? value : value ? [value] : [];\n const lastSelectedId =\n users.length > 0 ? users[users.length - 1].id : null;\n // if column is an array, make sure to save array of ids\n const ids = column?.array ? users.map(user => user.id) : lastSelectedId;\n setFormValue(key, ids as any);\n // apply last selected user id only (only 1 user assignee per task)\n if (assignToTask && taskId) {\n updateTask({ userId: lastSelectedId });\n }\n }}\n />\n );\n};\n\nexport const FormConfigUserPicker = () => {\n const { formState, setFormState, notifyFormEdit } = useFormContext<\n FormValuesType,\n FormUserPickerConfig\n >();\n const element = formState.selectedFormElement!;\n if (!element.config) element.config = {};\n return (\n <>\n \n \n {\n element.config!.assignToTask = !element.config!.assignToTask;\n // set multiple config to false if true since\n // task can only be assign on a single user\n if (element.config!.assignToTask && element.config!.multiple) {\n element.config!.multiple = false;\n }\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }}\n />\n }\n />\n \n \n {\n element.config!.includeInactive =\n !element.config!.includeInactive;\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }}\n />\n }\n />\n \n \n {\n element.config!.hideSupportUsers =\n !element.config!.hideSupportUsers;\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }}\n />\n }\n />\n \n \n {\n element.config!.filterGroupIds = groups.map(group => group.id);\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }}\n />\n \n \n );\n};\n\nexport const FormUserPickerPlugin: FormElementPlugin<\n any,\n FormUserPickerConfig\n> = {\n icon: ,\n name: 'User Picker',\n type: 'UserPicker',\n dataTypes: ['integer'],\n configurator: FormConfigUserPicker,\n element: FormUserPicker\n};\n","import React, { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport { v4 as uuid } from 'uuid';\nimport {\n DndContext,\n DragOverlay,\n PointerSensor,\n useSensor,\n useSensors\n} from '@dnd-kit/core';\nimport { arrayMove, useSortable, SortableContext } from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport {\n Accordion,\n AccordionDetails,\n AccordionProps,\n AccordionSummary,\n Box,\n Button,\n IconButton,\n InputAdornment,\n MenuItem,\n OutlinedInput,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField,\n Typography\n} from '@material-ui/core';\nimport {\n Add,\n AddCircleOutline,\n Close,\n DragIndicator,\n ExpandMore,\n RemoveCircleOutline,\n TableChartOutlined\n} from '@material-ui/icons';\nimport { useSort } from '@sierralabs/core-ui';\nimport {\n FormConfigRequired,\n FormConfigTitleDescription,\n FormElementPlugin,\n FormElementProps,\n useFormContext\n} from '@sierralabs/forms-ui';\n\ntype ColumnType = 'text' | 'number';\n\nconst columnTypeOptions: { value: ColumnType; label: string }[] = [\n { value: 'text', label: 'Text' },\n { value: 'number', label: 'Number' }\n];\n\nconst StyledContainer = styled.div`\n .config-title-container {\n display: flex;\n flex-direction: row;\n }\n .config-title-text {\n flex: 1;\n }\n .column-config {\n margin-left: -12px;\n margin-right: -12px;\n }\n`;\n\nexport interface FormTableFieldColumn {\n // auto generated id, use id as column key\n id: string;\n name: string;\n type: ColumnType;\n inputAdornment?: string;\n}\n\nexport interface FormTableFieldConfig {\n columns?: FormTableFieldColumn[];\n}\n\nexport const FormConfigTableField = () => {\n const { formState, setFormState, notifyFormEdit } = useFormContext<\n FormValuesType,\n FormTableFieldConfig\n >();\n const [expanded, setExpanded] = useState();\n const [dragItem, setDragItem] = useState();\n const dragChangeRef = useRef({ sourceIndex: -1, targetIndex: -1 });\n const element = formState.selectedFormElement!;\n if (!element.config) element.config = {};\n const columns = element.config!.columns || [];\n const sort = useSort(columns, column => column.id);\n const sensors = useSensors(useSensor(PointerSensor));\n\n const clearDragChange = () => {\n dragChangeRef.current.sourceIndex = -1;\n dragChangeRef.current.targetIndex = -1;\n };\n\n return (\n <>\n \n \n \n \n \n Columns\n \n {\n const columnName = 'New Column';\n const item: FormTableFieldColumn = {\n id: uuid(),\n name: columnName,\n type: 'text'\n };\n columns.push(item);\n element.config!.columns = columns;\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }}\n >\n \n \n \n {\n // prevent dragging if currently dragging an event\n if (dragItem) {\n return;\n }\n const index = columns.findIndex(\n column => column.id === event.active.id\n );\n const column = columns[index];\n dragChangeRef.current.sourceIndex = index;\n setDragItem(column);\n }}\n onDragOver={event => {\n const { active, over } = event;\n if (over && active.id !== over.id) {\n dragChangeRef.current.targetIndex = sort.findIndex(over.id);\n sort.reorder(active.id, over.id);\n }\n }}\n onDragEnd={() => {\n const { sourceIndex, targetIndex } = dragChangeRef.current;\n // dropped outside the list\n if (\n sourceIndex > -1 &&\n targetIndex > -1 &&\n sourceIndex !== targetIndex\n ) {\n const values = arrayMove(columns, sourceIndex, targetIndex);\n element.config!.columns = values;\n setFormState({ ...formState, selectedFormElement: element });\n notifyFormEdit();\n }\n clearDragChange();\n setDragItem(undefined);\n }}\n onDragCancel={() => {\n clearDragChange();\n setDragItem(undefined);\n }}\n >\n column.id)}>\n
    \n {sort.items.map((column, index) => (\n {\n setExpanded(expanded ? column.id : undefined);\n }}\n onChange={(property, value) => {\n column[property] = value;\n setFormState({\n ...formState,\n selectedFormElement: element\n });\n notifyFormEdit();\n }}\n onDelete={() => {\n element.config!.columns?.splice(index, 1);\n setFormState({\n ...formState,\n selectedFormElement: element\n });\n notifyFormEdit();\n }}\n />\n ))}\n
    \n
    \n \n {dragItem && (\n \n )}\n \n \n
    \n \n );\n};\n\nexport default FormConfigTableField;\n\nconst StyledAccordion = styled(Accordion)`\n &.dragging {\n opacity: 0.75;\n }\n .MuiAccordionSummary-root {\n padding-left: 5px;\n &.Mui-expanded {\n min-height: unset;\n }\n .MuiAccordionSummary-content {\n margin: 12px 0px;\n align-items: center;\n .delete-button {\n margin-right: 7px;\n }\n }\n }\n .drag-handle {\n display: flex;\n }\n .form-fields {\n display: flex;\n flex-direction: column;\n width: 100%;\n .field {\n margin-top: 10px;\n margin-bottom: 10px;\n }\n }\n`;\n\nexport interface FormTableFieldColumnConfigProps {\n value: FormTableFieldColumn;\n expanded?: boolean;\n isDragging?: boolean;\n accordionProps?: Omit;\n dragHandleProps?: React.HTMLProps;\n setExpanded?: (expanded: boolean) => void;\n onChange?: (\n property: Property,\n value: FormTableFieldColumn[Property]\n ) => void;\n onDelete?: () => void;\n}\n\nexport const FormTableFieldColumnConfig: React.FC<\n FormTableFieldColumnConfigProps\n> = (props: FormTableFieldColumnConfigProps) => {\n const {\n value,\n expanded = false,\n isDragging = false,\n accordionProps,\n dragHandleProps,\n setExpanded,\n onChange,\n onDelete\n } = props;\n const [column, setColumn] = useState>(value);\n const classes: string[] = [];\n accordionProps?.className && classes.push(accordionProps.className);\n isDragging && classes.push('dragging');\n\n useEffect(() => {\n setColumn(value);\n }, [value]);\n\n return (\n setExpanded?.(expanded)}\n >\n }>\n
    \n \n
    \n \n \n \n {column.name}\n
    \n \n
    \n {\n const { value: name } = event.target;\n setColumn({ ...column, name });\n onChange?.('name', name);\n }}\n />\n {\n const type = event.target.value as ColumnType;\n setColumn({ ...column, type });\n onChange?.('type', type);\n }}\n >\n {columnTypeOptions.map(option => (\n \n {option.label}\n \n ))}\n \n {\n const { value: inputAdornment } = event.target;\n setColumn({ ...column, inputAdornment });\n onChange?.('inputAdornment', inputAdornment);\n }}\n />\n
    \n
    \n \n );\n};\n\nexport const SortableFormTableFieldColumnConfig: React.FC<\n FormTableFieldColumnConfigProps\n> = props => {\n const { value: column } = props;\n const {\n attributes,\n isDragging,\n listeners,\n setNodeRef,\n transform,\n transition\n } = useSortable({ id: column.id || '' });\n return (\n \n );\n};\n\n// FormTableField\n\nconst StyledTableContainer = styled(TableContainer)`\n padding: 16px;\n border-radius: 4px;\n border: 1px solid #ccc;\n`;\n\nexport type FormTableFieldProps = FormElementProps<\n T,\n FormTableFieldConfig\n> & { value?: Record[] };\n\nexport const FormTableField = >({\n element,\n edit,\n disabled,\n ...props\n}: FormTableFieldProps) => {\n const { formValues, setFormValue } = useFormContext<\n T,\n FormTableFieldConfig\n >();\n const key = (element.dataSource as keyof T) || element.key;\n const { columns = [] } = element.config || {};\n const values =\n props.value || (formValues[key] as Record[]) || [];\n\n const createInitialItem = () => {\n const item: Record = {};\n for (const column of columns) {\n item[column.id] = column.type === 'text' ? '' : 0;\n }\n return item;\n };\n\n return (\n \n \n \n \n {columns.map(column => (\n {column.name}\n ))}\n \n \n \n \n {values.map((value, index) => (\n \n {columns.map(column => (\n \n {\n const newValues = [...values];\n newValues[index] = {\n ...values[index],\n [column.id]: event.target.value\n };\n setFormValue(key, newValues as any);\n }}\n startAdornment={\n column.inputAdornment ? (\n \n {column.inputAdornment}\n \n ) : undefined\n }\n />\n \n ))}\n \n {\n values.splice(index, 1);\n setFormValue(key, values as any);\n }}\n >\n \n \n \n \n ))}\n \n
    \n \n }\n disabled={edit || disabled}\n onClick={() => {\n const updatedValues = [...values, createInitialItem()];\n setFormValue(key, updatedValues as any);\n }}\n >\n Add Item\n \n \n
    \n );\n};\n\n// FormTableFieldPlugin\n\nexport const FormTableFieldPlugin: FormElementPlugin<\n any,\n FormTableFieldConfig\n> = {\n icon: ,\n name: 'Table Field',\n type: 'TableField',\n dataTypes: ['jsonb'],\n configurator: FormConfigTableField,\n element: FormTableField as React.FC<\n FormElementProps\n >\n};\n","import {\n FormElementPlugin,\n defaultFormElementPlugins\n} from '@sierralabs/forms-ui';\n\nimport { FormGroupPickerPlugin } from './FormGroupPickerPlugin';\nimport { FormUserPickerPlugin } from './FormUserPickerPlugin';\nimport { FormTableFieldPlugin } from './FormTableFieldPlugin';\n\nexport const defaultQmsFormElementPlugins: FormElementPlugin[] = [\n ...defaultFormElementPlugins,\n FormUserPickerPlugin,\n FormGroupPickerPlugin,\n FormTableFieldPlugin\n];\n","import { Fragment } from 'react';\n\nimport { useApiGet } from '../../common/api/Api.hooks';\nimport { EntitySchema, RelationshipSchema } from './types';\n\nexport interface EntityProperty {\n schema?: EntitySchema;\n propertyName?: string;\n relation?: RelationshipSchema;\n}\n\nexport function getEntityProperties(\n propertyNames: (string | undefined)[] = [],\n schema: EntitySchema | undefined,\n schemas: EntitySchema[]\n) {\n const [propertyName, ...relations] = propertyNames;\n const properties: EntityProperty[] = [\n {\n schema,\n propertyName,\n relation: schema?.relations?.find(\n relation => relation.propertyName === propertyName\n )\n }\n ];\n for (const propertyName of relations) {\n // get entitySchema and relation based on previous property\n const previous = properties[properties.length - 1];\n const schema = schemas.find(\n schema => schema.name === previous.relation?.target\n );\n properties.push({\n schema,\n propertyName,\n relation: schema?.relations?.find(\n relation => relation.propertyName === propertyName\n )\n });\n }\n return properties;\n}\n\nexport function displayEntityProperties(properties: EntityProperty[]) {\n return properties.map((property, index) => {\n return (\n \n {property.relation?.displayName || '?'}\n {index < properties.length - 1 && ' -> '}\n \n );\n });\n}\n\nexport function useFindEntitySchemas() {\n const { data, isLoading, error, get } = useApiGet(\n 'tasks/entity-schemas'\n );\n return {\n entitySchemas: data,\n isLoading,\n error,\n findEntitySchemas: get\n };\n}\n","import React, { createContext, useContext, useMemo } from 'react';\n\nimport { FetchError } from '../../common/api/api';\nimport { useFindEntitySchemas } from './Entity.hooks';\nimport { EntitySchema } from './types';\n\nexport interface EntityContextState {\n schemas: EntitySchema[];\n isLoading: boolean;\n error?: FetchError;\n}\n\nconst EntityContext = createContext({\n schemas: [],\n isLoading: false\n});\n\nexport function useEntityContext(): EntityContextState {\n const context: EntityContextState = useContext(EntityContext);\n if (!context) {\n throw new Error(\n 'useEntityContext must be used within the EntityProvider component.'\n );\n }\n return context;\n}\n\nconst EntityProvider: React.FC = props => {\n const { children } = props;\n const { entitySchemas, isLoading, error, findEntitySchemas } =\n useFindEntitySchemas();\n\n // get schemas if not yet fetched\n const schemas = useMemo(() => {\n if (!entitySchemas) {\n findEntitySchemas();\n return [];\n }\n return entitySchemas;\n }, [entitySchemas, findEntitySchemas]);\n\n return (\n \n {children}\n \n );\n};\n\nexport default EntityProvider;\n","import { User } from '../../user/User.interface';\n\nexport enum SessionSource {\n Web = 'web',\n Ios = 'ios',\n Android = 'Android'\n}\n\nexport interface Session {\n user: User;\n clientId: string; // unique client generated id\n socketId: string; // id of the current socket\n source: SessionSource;\n path?: string; // url path user is currently viewing\n}\n","import React, { createContext, useRef, useState } from 'react';\nimport io from 'socket.io-client';\nimport { v4 as uuid } from 'uuid';\n\nimport environment from '../../environments';\nimport api from '../../common/api/api';\nimport { Session, SessionSource } from './Session.interface';\n\nexport interface SessionContextState {\n clientId: string;\n sessions: Session[];\n socket?: SocketIOClient.Socket;\n}\n\nexport const SessionContext = createContext(\n undefined\n);\n\nexport const useSession = () => {};\n\nexport const SessionProvider: React.FC = props => {\n const { children } = props;\n const [sessions] = useState([]);\n const { apiBaseUrl } = environment;\n const clientIdRef = useRef(uuid());\n const socketRef = useRef(\n io(apiBaseUrl, {\n query: {\n clientId: clientIdRef.current,\n token: api.getAccessToken(),\n source: SessionSource.Web\n }\n })\n );\n\n console.log('SessionProvider render clientIdRef', clientIdRef.current);\n return (\n \n {children}\n \n );\n};\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport { Typography, TypographyProps } from '@material-ui/core';\n\nconst StyledCardTitleTypography = styled(Typography)`\n display: flex;\n align-items: center;\n /* margin-bottom: 10px; */\n padding: 16px 16px 0 16px;\n .link {\n color: #000;\n }\n > .MuiSvgIcon-root {\n margin-right: 10px;\n }\n`;\nexport default function CardTitle(props: TypographyProps) {\n const { children } = props;\n return (\n \n {children}\n \n );\n}\n","import React, { MouseEvent } from 'react';\nimport styled from 'styled-components';\n\nconst StyledStep = styled.div`\n position: relative;\n display: flex;\n align-items: center;\n padding: 16px;\n color: #999;\n cursor: pointer;\n\n .spacer {\n flex: 1;\n }\n\n &.completed,\n &.selected {\n color: #555;\n .step-number {\n border-color: #039be5;\n color: #000;\n font-weight: 500;\n }\n }\n &.selected {\n background: #e1f5fe;\n color: #000;\n font-weight: 500;\n }\n .step-index {\n margin-right: 12px;\n }\n .step-number {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 28px;\n height: 28px;\n min-width: 28px;\n max-width: 28px;\n border-radius: 100%;\n border: 2px solid rgba(0, 0, 0, 0.12);\n background: #fafafa;\n font-size: 12px;\n z-index: 1;\n box-sizing: border-box;\n }\n\n /* line connector */\n &:not(:first-child) {\n .step-index:before {\n position: absolute;\n top: 0;\n display: block;\n content: '';\n border-left: 1px solid rgba(0, 0, 0, 0.12);\n width: 1px;\n height: 50%;\n left: 29px;\n z-index: 0;\n }\n }\n &:not(:last-child) {\n .step-index:after {\n position: absolute;\n bottom: 0;\n display: block;\n content: '';\n border-left: 1px solid rgba(0, 0, 0, 0.12);\n width: 1px;\n height: 50%;\n left: 29px;\n z-index: 0;\n }\n }\n`;\n\ninterface VerticalStepProps {\n label: string;\n step?: number;\n completed?: boolean;\n selected?: boolean;\n endAdornment?: React.ReactNode;\n onClick?: (event: MouseEvent) => void;\n}\n\nconst VerticalStep: React.FC = props => {\n const { label, step, completed, selected, endAdornment, onClick } = props;\n const getStepClass = (): string => {\n const classes = [];\n if (completed) {\n classes.push('completed');\n }\n if (selected) {\n classes.push('selected');\n }\n return classes.join(' ');\n };\n\n return (\n \n
    \n {step}\n
    \n
    {label}
    \n {endAdornment && (\n <>\n
    \n {endAdornment}\n \n )}\n
    \n );\n};\n\nexport default VerticalStep;\n","import React from 'react';\nimport styled from 'styled-components';\n\nconst StyledVerticalStepper = styled.div`\n width: 240px;\n box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),\n 0 1px 3px 0 rgba(0, 0, 0, 0.12);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n z-index: 1;\n ${props => props.theme.breakpoints.down('md')} {\n width: 180px;\n }\n ${props => props.theme.breakpoints.down('sm')} {\n display: none;\n }\n`;\n\nconst VerticalStepper: React.FC = props => {\n const { children } = props;\n // React.Children.map(children, (child, index) => {\n // const reactElement = child as ReactElement;\n // if (reactElement) {\n // if (reactElement.type === VerticalStep) {\n // if (reactElement.props.step === undefined) {\n // // default step prop\n // reactElement.props.step = index + 1;\n // }\n // }\n // }\n // });\n return {children};\n};\n\nexport default VerticalStepper;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { Box, Typography } from '@material-ui/core';\n\nexport const StyledCenterView = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n flex-flow: column;\n .content {\n padding: 20px;\n text-align: center;\n .MuiSvgIcon-root {\n font-size: 180px;\n }\n }\n &::before {\n content: '';\n flex: 1 1 45%;\n }\n &::after {\n content: '';\n flex: 1 1 55%;\n }\n`;\n\nconst StyledContent = styled.div`\n padding: 20px;\n text-align: center;\n .MuiSvgIcon-root {\n font-size: 180px;\n }\n`;\n\nexport interface ErrorViewProps {\n title: string | JSX.Element;\n description: string | JSX.Element;\n icon?: JSX.Element;\n className?: string;\n}\n\nconst ErrorView: React.FC = (props: ErrorViewProps) => {\n const { className, ...contentProps } = props;\n return (\n \n \n \n );\n};\n\nexport const ErrorContent: React.FC = (\n props: ErrorViewProps\n) => {\n const { title, description, icon, className = '' } = props;\n return (\n \n {icon && {icon}}\n \n {typeof title !== 'string' ? (\n title\n ) : (\n {title}\n )}\n \n \n {typeof description !== 'string' ? (\n description\n ) : (\n \n {description}\n \n )}\n \n \n );\n};\n\nexport default ErrorView;\n","import React from 'react';\nimport { Grid, GridProps } from '@material-ui/core';\nimport { Form } from 'formik';\nimport styled from 'styled-components';\n\nexport type InlineFormCardProps = GridProps<'form'>;\n\nexport const StyledInlineFormGrid = styled(Grid)`\n h3 {\n font-size: 32px;\n }\n h5 {\n font-size: 14px;\n }\n` as typeof Grid;\n\nconst InlineForm: React.FC = props => {\n const { spacing = 2, children } = props;\n return (\n \n {children}\n \n );\n};\n\nexport default InlineForm;\n","// throw error if strict\nexport const diff = (oldValue: any, newValue: any, strict: boolean = true) => {\n // console.log('diff oldValue', oldValue, 'newValue', newValue);\n if (oldValue === newValue) {\n return undefined; // oldValue and newValue are the same\n } else if (isEmpty(oldValue) && !isEmpty(newValue)) {\n return newValue;\n } else if (isString(oldValue) && isString(newValue)) {\n return diffString(oldValue, newValue);\n } else if (isNumber(oldValue) && isNumber(newValue)) {\n return diffNumber(oldValue, newValue);\n } else if (isBoolean(oldValue) && isBoolean(newValue)) {\n return diffBoolean(oldValue, newValue);\n } else if (isArray(oldValue) && isArray(newValue)) {\n return diffArray(oldValue, newValue, strict);\n } else if (isObject(oldValue) && isObject(newValue)) {\n return diffObject(oldValue, newValue, strict);\n } else {\n console.log('oldValue', oldValue);\n console.log('newValue', newValue, strict);\n const errorMessage: string =\n 'parameters must be the same type (i.e. string, number, object, or array)';\n if (strict) {\n throw new Error(errorMessage);\n }\n console.error(errorMessage);\n return newValue;\n }\n};\n\nexport const diffString = (oldValue: string, newValue: string) => {\n // console.log('diff string oldValue', oldValue, 'newValue', newValue);\n // console.log(oldValue !== newValue ? newValue : undefined);\n return oldValue !== newValue ? newValue : undefined;\n};\n\nexport const diffNumber = (oldValue: number, newValue: number) => {\n return oldValue !== newValue ? newValue : undefined;\n};\n\nexport const diffBoolean = (oldValue: boolean, newValue: boolean) => {\n return oldValue !== newValue ? newValue : undefined;\n};\n\nexport const diffObject = (\n oldValue: any,\n newValue: any,\n strict: boolean = true\n) => {\n const result = Object.keys(newValue).reduce((result, key) => {\n const value = diff(oldValue[key], newValue[key], strict);\n // allow null if not strict\n if (\n value ||\n isString(value) ||\n isNumber(value) ||\n isBoolean(value) ||\n (!strict && value === null)\n ) {\n result[key] = value;\n }\n return result;\n }, {} as any);\n // if empty object then return undefined (objects are the same)\n return isEmpty(result) ? undefined : result;\n};\n\nexport const diffArray = (\n oldArray: any[],\n newArray: any[],\n strict: boolean = true\n) => {\n if (oldArray.length !== newArray.length) {\n // if array lengths are different then return newValue\n return newArray;\n }\n for (let i = 0; i < newArray.length; i++) {\n const value = diff(oldArray[i], newArray[i], strict);\n if (!isEmpty(value)) {\n // found something different in the array so return the newArray\n return newArray;\n }\n }\n};\n\nexport const isEmpty = (value: any) => {\n // Check if value is falsy or object has no keys\n if (isNumber(value) || isBoolean(value)) {\n return value === undefined || value === null;\n } else if (isObject(value)) {\n return Object.keys(value).length === 0;\n } else {\n return !value;\n }\n};\n\nexport const isBoolean = (value: any) => {\n return typeof value === 'boolean';\n};\n\nexport const isNumber = (value: any) => {\n return typeof value === 'number';\n};\n\nexport const isString = (value: any) => {\n return typeof value === 'string';\n};\n\nexport const isArray = (array: any) => {\n return array instanceof Array;\n};\n\nexport const isObject = (object: any) => {\n return object !== null && typeof object === 'object';\n};\n","import {\n Formik,\n FormikConfig,\n FormikHelpers,\n FormikProps,\n FormikValues\n} from 'formik';\nimport React, { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\n\nimport { CircularProgress, Typography } from '@material-ui/core';\nimport ReportProblemIcon from '@material-ui/icons/ReportProblem';\n\nimport { FetchError } from '../api/api';\nimport { diff } from '../diff';\n\nconst StyledErrorBox = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n .error-title {\n margin: 10px 0 5px 0;\n color: ${props => props.theme.palette.error.main};\n }\n .error-body {\n margin-bottom: 10px;\n }\n code {\n font-size: 10px;\n color: #999;\n }\n`;\n\nexport interface InlineFormikConfig\n extends Omit, 'initialValues'> {\n initialValues?: Values; // make initialValues optional\n}\n\ntype InlineFormikProps = InlineFormikConfig &\n ExtraProps & {\n strict?: boolean;\n isSubmitting?: boolean;\n error?: Error | FetchError;\n };\n\nexport default function InlineFormik<\n Values extends FormikValues = FormikValues,\n ExtraProps = {}\n>(props: InlineFormikProps) {\n const {\n strict,\n children,\n innerRef,\n initialValues,\n isSubmitting = false,\n error,\n onSubmit,\n ...remainingProps\n } = props;\n const formikRef = useRef | null>();\n // make a copy of the initialValues for use when comparing changes;\n // cached values are updated prior to submitting to retain changes;\n // we don't want to keep updating initialValues as that will cause\n // UI re-render.\n const [cachedValues, setCachedValues] = useState(initialValues);\n useEffect(() => {\n // updated cached values if initial values change\n setCachedValues(initialValues);\n }, [initialValues]);\n useEffect(() => {\n if (formikRef && formikRef.current) {\n formikRef.current.setSubmitting(isSubmitting);\n }\n }, [isSubmitting]);\n\n return error ? (\n // Display Error\n \n \n \n An error occurred!\n \n \n There was a problem loading the form. Please reload the browser and try\n again.\n \n {(error as Error).message && (\n \n Error: {(error as Error).message}\n \n )}\n {(error as FetchError).error && (\n {(error as FetchError).error}\n )}\n \n ) : initialValues ? (\n {\n // keep a reference of the formik object\n formikRef.current = formik;\n // forward the formik object if needed\n if (innerRef)\n (innerRef as (instance: FormikProps | null) => void)(formik);\n }}\n enableReinitialize\n initialValues={initialValues}\n onSubmit={(values: Values, formikHelpers: FormikHelpers) => {\n const valuesDiff = diff(cachedValues, values, strict);\n console.log('InlineFormik onSubmit', cachedValues, values, strict);\n // console.log('valuesDiff', valuesDiff);\n if (valuesDiff) {\n // set the cached values to prevent resubmitting the form; this\n // helps if saving is slow and user is making fast changes\n setCachedValues(values);\n // only submit diff changes for inline form sbimission\n onSubmit(valuesDiff as Values, formikHelpers);\n } else if (formikRef && formikRef.current) {\n // if no value changes don't submit anything\n formikRef.current.setSubmitting(false);\n }\n }}\n {...remainingProps}\n >\n {children}\n \n ) : (\n \n );\n}\n","import { useCallback, useEffect } from 'react';\n\nimport { useApiGet, useApiPost, useApiPatch } from '../../common/api/Api.hooks';\nimport { useIdSearchableFetch } from '../../common/entityId.hooks';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport {\n Supplier,\n SupplierPurchaseOrder,\n SupplierPurchaseOrderCreateDto,\n SupplierVersion\n} from './Supplier.interface';\n\nexport function useCreateSupplier() {\n const { data, isLoading, error, post } = useApiPost('suppliers');\n return {\n createdSupplier: data,\n isCreating: isLoading,\n createError: error,\n createSupplier: post\n };\n}\n\nexport function useUpdateSupplier(id: number, token?: string) {\n const guest: string = token ? `/guest?token=${token}` : '';\n const url: string = `suppliers/${id}${guest}`;\n const { data, isLoading, error, patch } = useApiPatch(url);\n return {\n updatedSupplier: data,\n isUpdating: isLoading,\n updateError: error,\n updateSupplier: patch\n };\n}\n\nexport function useCompleteSupplierSurvey(id: number, token?: string) {\n const tokenParam: string = token ? `?token=${token}` : '';\n const url: string = `suppliers/${id}/complete${tokenParam}`;\n const { data, isLoading, error, patch } = useApiPatch(url);\n return {\n completedSupplier: data,\n isCompleting: isLoading,\n completeError: error,\n completeSupplier: patch\n };\n}\n\nexport function useFindSuppliers() {\n const { data, isLoading, error, get } = useApiGet>(\n 'suppliers'\n );\n const findSuppliers = useIdSearchableFetch(get, WorkflowEntity.Supplier);\n return {\n supplierList: data,\n isLoading,\n loadingError: error,\n findSuppliers\n };\n}\n\nexport function useFindSupplier(id: number) {\n const { data, isLoading, error, get } = useApiGet(\n `suppliers/${id}`\n );\n return { supplier: data, isLoading, loadingError: error, findSuplier: get };\n}\n\nexport function useFindSupplierByTask(\n taskId: number,\n shouldFetchOnMount = false\n) {\n const { data, isLoading, error, get } = useApiGet(\n 'suppliers/task/' + taskId\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return { supplier: data, isLoading, loadingError: error, findSuplier: get };\n}\n\nexport function useFindSupplierVersion(supplierId: number, version: number) {\n const { data, isLoading, error, get } = useApiGet(\n `suppliers/${supplierId}/version/${version}`\n );\n return {\n supplierVersion: data,\n isLoading,\n loadingError: error,\n findSupplierVersion: get\n };\n}\n\nexport function useFindSupplierByToken(token: string) {\n const { data, isLoading, error, get } = useApiGet(\n 'suppliers/verify'\n );\n const findSupplier = useCallback(() => {\n get({ token });\n }, [get, token]);\n return { supplier: data, isLoading, loadingError: error, findSupplier };\n}\n\nexport function useSupplierSendInvite(id: number) {\n const { data, isLoading, error, post } = useApiPost(\n `suppliers/${id}/send-invitation`\n );\n return {\n invitedSupplier: data,\n isInviting: isLoading,\n inviteError: error,\n inviteSupplier: post\n };\n}\n\n// spor\n\nexport function useFindPurchaseOrders() {\n const { get, ...result } = useApiGet>(\n 'spor'\n );\n const findPurchaseOrders = useIdSearchableFetch(get, WorkflowEntity.Spor);\n return { ...result, get: findPurchaseOrders };\n}\n\nexport function useFindPurchaseOrderByTask(taskId: number) {\n const { data, isLoading, error, get } = useApiGet(\n 'spor/task/' + taskId\n );\n return { data, isLoading, error, get };\n}\n\nexport function useCreateSpor() {\n const { data, isLoading, error, post } = useApiPost(\n 'spor'\n );\n const createSpor = useCallback(\n (dto: SupplierPurchaseOrderCreateDto) => post(dto),\n [post]\n );\n return { spor: data, isCreating: isLoading, createError: error, createSpor };\n}\n\nexport function useUpdateSpor(id: number) {\n const { data, isLoading, error, patch } = useApiPatch(\n `spor/${id}`\n );\n return {\n updatedSpor: data,\n isUpdating: isLoading,\n updateError: error,\n updateSpor: patch\n };\n}\n\nexport function handleFormNumber(n: any): number | '' {\n return typeof n === 'number' ? n : '';\n}\n\nexport function convertEmptyToNull>(\n obj: T,\n ...keys: Array\n): T {\n for (const key of keys) {\n if (obj[key] === '') {\n obj[key] = null as T[keyof T];\n }\n }\n return obj;\n}\n","import { useField, FieldInputProps } from 'formik';\nimport React, { useMemo } from 'react';\nimport NumberFormat from 'react-number-format';\n\nimport InlineTextField, { InlineTextFieldProps } from './InlineTextField';\nimport { InputProps } from '@material-ui/core';\n\ntype FormatFunction = (value: number | string) => string;\n\nexport interface FormikNumberFieldRenderOptions {\n prefix?: string;\n suffix?: string;\n format?: string | FormatFunction;\n isString?: boolean;\n currency?: boolean;\n phoneNumber?: boolean;\n creditcard?: boolean;\n allowLeadingZero?: boolean;\n thousandSeparator?: boolean;\n mask?: string;\n length?: number;\n min?: number;\n max?: number;\n InputProps?: InputProps;\n}\n\nexport const renderNumberFormatter: (\n options: FormikNumberFieldRenderOptions\n) => React.FC<{\n inputRef: (instance: NumberFormat | null) => void;\n onChange: (event: { target: { name: string; value: string } }) => void;\n name: string;\n}> = ({\n format,\n isString,\n phoneNumber,\n creditcard,\n currency,\n allowLeadingZero,\n mask,\n length,\n prefix,\n suffix,\n thousandSeparator,\n ...numberFormatProps\n}) => {\n if (creditcard) {\n format = '#### #### #### ####';\n } else if (phoneNumber) {\n // TODO: implement props to customize as well as context to theme globally\n format = '+1 (###) ###-####';\n isString = true;\n // } else if (forceLeadingZero && length) {\n // format = value =>\n // value.length < length\n // ? [...Array(length - value.length + 1)].join('0') + value\n // : value;\n } else if (currency) {\n // TODO: implement props to customize as well as context to theme globally\n prefix = '$';\n thousandSeparator = true;\n } else if (!format && length) {\n format = [...Array(length + 1)].join('#');\n }\n return ({ inputRef, onChange, name, ...fieldProps }) => {\n const [field, meta, { setValue, setTouched }] = useField({ name });\n return (\n {\n let value =\n (typeof field?.value === 'number' || field?.value === null) &&\n values.floatValue !== undefined\n ? values.floatValue\n : values.value\n ? values.value\n : null;\n if (isString) {\n value = `${value}`;\n }\n setValue(value);\n console.log(' field name', name);\n onChange({\n target: { name, value: value as any }\n });\n }}\n />\n );\n };\n};\n\nexport type InlineNumberFieldProps = InlineTextFieldProps &\n FormikNumberFieldRenderOptions;\n\nconst InlineNumberField: React.FC = ({\n type = 'tel', // force number input on mobile\n prefix,\n suffix,\n format,\n phoneNumber,\n creditcard,\n allowLeadingZero,\n mask,\n length,\n min,\n max,\n InputProps,\n thousandSeparator,\n currency,\n ...textFieldProps\n}) => {\n return useMemo(\n () => (\n \n ),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [type, textFieldProps.value, textFieldProps.disabled]\n );\n};\n\nexport default InlineNumberField;\n","import React, { useEffect } from 'react';\nimport { Card } from '@material-ui/core';\nimport { Subject as SubjectIcon } from '@material-ui/icons';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport InlineForm from '../../../common/inline/InlineForm';\nimport InlineFormik from '../../../common/inline/InlineFormik';\nimport InlineTextField from '../../../common/inline/InlineTextField';\nimport { BaseSupplierCardProps, Supplier } from '../Supplier.interface';\nimport { useTaskEntityFields } from '../../workflow/Workflow.hooks';\nimport { useUpdateSupplier } from '../Supplier.hooks';\nimport InlineNumberField from '../../../common/inline/InlineNumberField';\n\nconst SupplierDetailsCard: React.FC = (\n props: BaseSupplierCardProps\n) => {\n const {\n supplier,\n supplierVersion,\n token,\n onChange,\n onUpdate,\n onError\n } = props;\n const {\n updatedSupplier,\n isUpdating,\n updateError,\n updateSupplier\n } = useUpdateSupplier(supplier.id, token);\n const { isFieldDisabled } = useTaskEntityFields(supplier.task, { token });\n const disabled = !!supplierVersion;\n const initialData = supplierVersion || supplier;\n\n useEffect(() => {\n if (updatedSupplier) {\n onChange?.(updatedSupplier);\n onUpdate?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedSupplier]);\n\n useEffect(() => {\n if (updateError) {\n onError?.(updateError);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updateError]);\n\n return (\n \n \n \n Details\n \n \n ) => {\n updateSupplier(supplierDto);\n onChange?.(supplierDto);\n }}\n >\n {() => (\n \n \n \n \n \n \n \n \n \n \n )}\n \n \n \n );\n};\n\nexport default SupplierDetailsCard;\n","import { useField, useFormikContext } from 'formik';\nimport React from 'react';\n\nimport {\n FormControl,\n FormControlLabel,\n FormControlTypeMap,\n FormHelperText,\n Grid,\n GridProps,\n Radio,\n RadioGroup,\n Typography\n} from '@material-ui/core';\nimport { OverridableComponent } from '@material-ui/core/OverridableComponent';\n\nexport interface InlineRadioGroupOptions {\n value: string | number | boolean;\n label: string;\n}\n\nexport interface InlineRadioGroupProps {\n name: string;\n label?: string;\n isBoolean?: boolean;\n disabled?: boolean;\n options: (InlineRadioGroupOptions | string)[];\n grid?: GridProps>>;\n}\n\nconst InlineRadioGroup: React.FC = props => {\n const { label, name, isBoolean, disabled, options, grid } = props;\n const formik = useFormikContext();\n const [field, meta, { setValue }] = useField(props);\n return (\n \n {label && {label}}\n \n {\n if (isBoolean) {\n setValue(event.target.value === 'true');\n } else {\n setValue(event.target.value);\n }\n formik.submitForm();\n }}\n >\n {options.map(option =>\n typeof option === 'string' ? (\n }\n label={option}\n disabled={disabled}\n />\n ) : (\n }\n label={option.label}\n disabled={disabled}\n />\n )\n )}\n \n \n {meta.error && {meta.error}}\n \n );\n};\n\nexport default InlineRadioGroup;\n","import React, { useEffect } from 'react';\nimport { Card } from '@material-ui/core';\nimport { History as HistoryIcon } from '@material-ui/icons';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport InlineForm from '../../../common/inline/InlineForm';\nimport InlineFormik from '../../../common/inline/InlineFormik';\nimport InlineTextField from '../../../common/inline/InlineTextField';\nimport InlineRadioGroup, {\n InlineRadioGroupProps\n} from '../../../common/inline/InlineRadioGroup';\n// import InlineDatePicker from '../../../common/inline/InlineDatePicker';\nimport { WorkflowEntity } from '../../workflow/Workflow.interface';\nimport { useTaskEntityFields } from '../../workflow/Workflow.hooks';\nimport { useUpdateSupplier } from '../Supplier.hooks';\nimport { BaseSupplierCardProps } from '../Supplier.interface';\n\nconst SupplierQualitySystemCard: React.FC = (\n props: BaseSupplierCardProps\n) => {\n const {\n supplier,\n supplierVersion,\n token,\n onChange,\n onUpdate,\n onError\n } = props;\n const {\n updatedSupplier,\n isUpdating,\n updateError,\n updateSupplier\n } = useUpdateSupplier(supplier.id, token);\n const { isFieldDisabled } = useTaskEntityFields(\n supplier.task,\n { token }\n );\n const disabled = !!supplierVersion;\n const initialData = supplierVersion || supplier;\n const commonOptions: InlineRadioGroupProps['options'] = [\n { label: 'Yes', value: 'yes' },\n { label: 'No', value: 'no' },\n { label: 'N/A', value: 'n/a' }\n ];\n const commonGridProps: InlineRadioGroupProps['grid'] = {\n xs: 12\n };\n\n useEffect(() => {\n if (updatedSupplier) {\n onChange?.(updatedSupplier);\n onUpdate?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedSupplier]);\n\n useEffect(() => {\n if (updateError) {\n onError?.(updateError);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updateError]);\n\n return (\n \n \n \n Quality System Functions\n \n \n ) => {\n updateSupplier(supplierDto);\n onChange?.(supplierDto);\n }}\n >\n {() => (\n \n \n \n \n \n \n \n \n {/* */}\n \n )}\n \n \n \n );\n};\n\nexport default SupplierQualitySystemCard;\n","import styled from 'styled-components';\nimport { Divider, Typography } from '@material-ui/core';\n\nexport const StyledDivider = styled(Divider)`\n margin-bottom: 16px;\n`;\n\nexport const StyledTypography = styled(Typography)`\n font-weight: 500;\n margin-top: 16px;\n margin-bottom: 16px;\n`;\n","import React, { useEffect } from 'react';\nimport { Card, Grid } from '@material-ui/core';\nimport { Book as BookIcon } from '@material-ui/icons';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport InlineForm from '../../../common/inline/InlineForm';\nimport InlineFormik from '../../../common/inline/InlineFormik';\nimport InlineTextField from '../../../common/inline/InlineTextField';\nimport InlineRadioGroup, {\n InlineRadioGroupProps\n} from '../../../common/inline/InlineRadioGroup';\nimport { WorkflowEntity } from '../../workflow/Workflow.interface';\nimport { useTaskEntityFields } from '../../workflow/Workflow.hooks';\nimport { useUpdateSupplier } from '../Supplier.hooks';\nimport { BaseSupplierCardProps } from '../Supplier.interface';\nimport { StyledDivider, StyledTypography } from './SupplierCard.styled';\n\nconst SupplierQualityManualCard: React.FC = (\n props: BaseSupplierCardProps\n) => {\n const {\n supplier,\n supplierVersion,\n token,\n onChange,\n onUpdate,\n onError\n } = props;\n const {\n updatedSupplier,\n isUpdating,\n updateError,\n updateSupplier\n } = useUpdateSupplier(supplier.id, token);\n const { isFieldDisabled } = useTaskEntityFields(\n supplier.task,\n { token }\n );\n const disabled = !!supplierVersion;\n const initialData = supplierVersion || supplier;\n const commonOptions: InlineRadioGroupProps['options'] = [\n { label: 'Yes', value: 'yes' },\n { label: 'No', value: 'no' },\n { label: 'N/A', value: 'n/a' }\n ];\n const commonGridProps: InlineRadioGroupProps['grid'] = {\n xs: 12\n };\n\n useEffect(() => {\n if (updatedSupplier) {\n onChange?.(updatedSupplier);\n onUpdate?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedSupplier]);\n\n useEffect(() => {\n if (updateError) {\n onError?.(updateError);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updateError]);\n\n return (\n \n \n \n Quality Manual\n \n \n ) => {\n updateSupplier(supplierDto);\n onChange?.(supplierDto);\n }}\n >\n {() => (\n \n \n \n Does the Quality Manual Include the following:\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n \n \n );\n};\n\nexport default SupplierQualityManualCard;\n","import React, { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Button,\n IconButton,\n LinearProgress,\n Link,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Tooltip,\n Typography\n} from '@material-ui/core';\nimport {\n Add as AddIcon,\n Close as CloseIcon,\n ErrorOutline as ErrorOutlineIcon\n} from '@material-ui/icons';\n\nimport { useFileUploader } from '../../secure-portal/documents/components/DocumentFolderUpload';\nimport api, { FetchError } from '../api/api';\nimport { Attachment } from '../attachment/Attachment.interface';\nimport ConfirmDialog from '../dialogs/ConfirmDialog';\nimport DragArea from '../views/DragArea';\nimport WrappedTableCell from '../WrappedTableCell';\n\nconst StyledTableContainer = styled(TableContainer)`\n border-radius: 2px;\n border: 1px solid ${props => props.theme.palette.divider};\n .row-divider {\n background-color: ${props => props.theme.palette.grey[100]};\n .MuiTableCell-root {\n padding-top: 0px;\n padding-bottom: 0px;\n }\n }\n`;\n\nconst StyledActions = styled.div`\n padding: 8px 16px;\n & > *:not(:last-child) {\n margin-right: 8px;\n }\n`;\n\n// NOTE: taken from https://ux.stackexchange.com/a/13852\n// kilobytes (1000) prefixed with lowercased \"k-\" (i.e. kB)\n// kibibytes (1024) prefixed with \"K-\" or \"Ki-\" (i.e. KB, KiB)\nfunction formatFileSize(value: number | undefined, type: 'kB' | 'KB') {\n // only show type (kB, KB) if value exists\n if (typeof value !== 'number') {\n return '';\n }\n const bytes = type === 'kB' ? 1000 : 1024;\n // show decimals to also handle sizes less than a kilobyte (e.g. 0.56 kB)\n const result = (value / bytes).toLocaleString(undefined, {\n maximumFractionDigits: 2,\n minimumFractionDigits: 2\n });\n return `${result} ${type}`;\n}\n\nexport interface InputFileProps {\n values?: Attachment[];\n compact?: boolean;\n disabled?: boolean;\n multiple?: boolean;\n isLoading?: boolean;\n token?: string;\n inputType?: string;\n uploadPath?: string;\n className?: string;\n onChange?: (values: Attachment[]) => void;\n setTouched?: (touched: boolean) => void;\n}\n\nconst InputFile: React.FC = props => {\n const {\n values,\n compact,\n disabled,\n multiple,\n isLoading,\n token,\n inputType,\n uploadPath,\n className,\n onChange,\n setTouched\n } = props;\n const valuesRef = useRef(values);\n const fileInputRef = useRef(null);\n const hasUploadingRef = useRef(false);\n const [dragOver, setDragOver] = useState(false);\n // states used for rendering items only\n const [uploadFiles, setUploadFiles] = useState([]);\n const [valuesState, setValuesState] = useState(values || []);\n\n const [cancelFile, setCancelFile] = useState();\n const [fileToRemove, setFileToRemove] = useState();\n const [attemptedFileNames, setAttemptedFileNames] = useState([]);\n const [openFileTypeConfirmDialog, setOpenFileTypeConfirmDialog] =\n useState(false);\n const uploader = useFileUploader(uploadPath, token);\n const cancelItem = cancelFile ? uploader.find(cancelFile) : undefined;\n hasUploadingRef.current =\n uploader.items.length > 0 &&\n uploader.items.some(item => uploader.isUploading(item.status));\n const colSpan = compact ? 2 : 4;\n const showTable = (values && values.length > 0) || uploadFiles.length > 0;\n const showRowDivider = values && values.length > 0 && uploadFiles.length > 0;\n const displayAttemptedFileNames = attemptedFileNames\n .map(name => `\"${name}\"`)\n .join(', ');\n const tableClasses = ['input-file-table'];\n !showTable && tableClasses.push('hidden');\n\n const update = (values: Attachment[]) => {\n valuesRef.current = values;\n setValuesState(values);\n onChange?.(values);\n };\n\n const uploadAll = async (files: File[]) => {\n // upload files, get successful uploads only\n const allUploadedItems = await uploader.uploadAsync(files);\n const uploadedItems = allUploadedItems.filter(\n item => item.status === 'uploaded'\n );\n // do nothing if no uploaded files\n if (uploadedItems.length === 0) {\n return;\n }\n const uploadedFiles: Attachment[] = uploadedItems.map(item => ({\n url: item.presignedUrl?.storageKey,\n signedUrl: item.presignedUrl?.signedUrl,\n name: item.file.name,\n size: item.file.size\n }));\n console.debug('[input-file] uploaded: %o', uploadedFiles);\n // use latest items state and filter only uploaded files\n const values = uploadedFiles.concat(\n (valuesRef.current || []).filter(value => {\n // remove duplicate files\n return !uploadedFiles.some(uploaded => value.name === uploaded.name);\n })\n );\n console.debug(\n '[input-file] update\\n old values: %o\\n new values: %o',\n valuesRef.current,\n values\n );\n\n // save new uploaded files\n update(values);\n // remove saved items from uploaded\n setUploadFiles(files => {\n return files.filter(file => {\n return !uploadedItems.some(item => item.file === file);\n });\n });\n // remove uploaded items from uploader, make sure it does not abort\n for (const item of uploadedItems) {\n item.abort = undefined;\n uploader.remove(item.file);\n }\n };\n\n // start uploading file(s)\n const handleFiles = async (fileList: FileList | null) => {\n if (!fileList || fileList.length === 0) {\n return;\n }\n setTouched?.(true);\n const files = Array.from(fileList);\n if (!multiple && uploader.items.length > 0) {\n // if only one file allowed, remove it before uploading new file\n uploader.clear();\n setUploadFiles([]);\n }\n\n const attemptedFileNames: string[] = [];\n const filesToUpload = files.filter(file => {\n // check if file extension is an accepted input type\n const fileExtension = file.name.match(/\\.([^.]+)$/g);\n const isValidExtension =\n !inputType ||\n inputType.includes(fileExtension ? fileExtension[0] : ' ');\n if (!isValidExtension) {\n attemptedFileNames.push(file.name);\n }\n return isValidExtension;\n });\n // add to currently uploading files\n setUploadFiles(files => files.concat(filesToUpload));\n if (attemptedFileNames.length > 0) {\n setAttemptedFileNames(attemptedFileNames);\n }\n\n // if the filesToUpload array has at least one file, proceed to upload\n if (filesToUpload.length > 0) {\n uploadAll(multiple ? filesToUpload : filesToUpload.slice(0, 1));\n }\n };\n\n // sync values state\n useEffect(() => {\n // skip updating values state if currently uploading\n if (hasUploadingRef.current) {\n console.debug(\n '[input-file] skip\\n values: %o\\n current: %o',\n values,\n valuesRef.current\n );\n return;\n }\n const valuesState = values || [];\n setValuesState(valuesState);\n // NOTE: avoid setting valuesRef outside useEffect since it\n // may change when component re-renders from progress loading\n valuesRef.current = valuesState;\n }, [values]);\n\n const loadingRow = isLoading && (\n \n \n \n \n \n );\n\n return (\n <>\n fileInputRef.current?.click()}\n >\n \n \n \n \n \n File Name\n {!compact && (\n <>\n Size\n Download\n \n )}\n \n \n \n {!showRowDivider && loadingRow}\n {showRowDivider && (\n \n \n Uploading\n \n \n )}\n {uploadFiles.map((file, index) => {\n const item = uploader.find(file);\n return (\n setCancelFile(file)}\n />\n );\n })}\n {showRowDivider && (\n \n \n Uploaded\n \n \n )}\n {showRowDivider && loadingRow}\n {valuesState.map((file, index) => (\n setFileToRemove(file)}\n />\n ))}\n \n
    \n
    \n\n handleFiles(event.target.files)}\n />\n \n\n {multiple && showTable && (\n \n }\n onClick={() => fileInputRef.current?.click()}\n >\n Add File{multiple && 's'}\n \n \n or drag {multiple ? 'files' : 'a file'} into the table above.\n \n \n )}\n\n setOpenFileTypeConfirmDialog(false)}\n onConfirm={() => setOpenFileTypeConfirmDialog(false)}\n />\n setCancelFile(undefined)}\n onConfirm={() => {\n setCancelFile(undefined);\n if (!cancelItem) {\n return;\n }\n uploader.remove(cancelItem.file);\n setUploadFiles(files => {\n return files.filter(file => file !== cancelItem.file);\n });\n }}\n />\n setFileToRemove(undefined)}\n onConfirm={() => {\n setFileToRemove(undefined);\n if (!fileToRemove) {\n return;\n }\n // abort file upload\n const newValues = (valuesRef.current || []).filter(\n value => value !== fileToRemove\n );\n update(newValues);\n setTouched?.(true);\n }}\n />\n \n );\n};\n\nexport default InputFile;\n\nconst StyledTableRow = styled(TableRow)`\n .remove-cell {\n width: 5px;\n padding: 2px 0 2px 8px;\n }\n .actions {\n padding-top: 2px;\n padding-bottom: 2px;\n }\n .error-icon {\n color: ${props => props.theme.palette.error.main};\n }\n`;\n\ninterface InputFileItemProps {\n value: {\n name?: string;\n size?: number;\n progress?: number;\n url?: string; // storageKey\n };\n error?: FetchError;\n compact?: boolean;\n disabled?: boolean;\n uploading?: boolean;\n onRemove?: () => void;\n}\n\nconst InputFileItem: React.FC = props => {\n const { value, error, compact, disabled, uploading, onRemove } = props;\n const [downloading, setDownloading] = useState(false);\n const { url: storageKey } = value;\n const name = value.name || '';\n const size = formatFileSize(value.size, 'KB');\n\n const downloadFile = async () => {\n if (!storageKey) {\n return;\n }\n setDownloading(true);\n const params = new URLSearchParams({ storageKey }).toString();\n const urlName = name && `/${encodeURI(name)}`;\n const request = api.get(`files/proxy${urlName}?${params}`, {});\n const response = await request.response;\n const blob = await response.blob();\n setDownloading(false);\n saveAs(blob, name);\n };\n\n return (\n \n \n onRemove?.()}\n >\n \n \n \n \n {!compact || !storageKey ? (\n name\n ) : !downloading ? (\n ) => {\n event.stopPropagation();\n downloadFile();\n }}\n >\n {name}\n \n ) : (\n \n {name}\n \n )}\n \n {!compact && (\n <>\n {size}\n \n {error ? (\n \n event.stopPropagation()}>\n \n \n \n ) : storageKey && !uploading ? (\n {\n event.stopPropagation();\n downloadFile();\n }}\n >\n Download\n \n ) : (\n \n )}\n \n \n )}\n \n );\n};\n","import { useField, useFormikContext } from 'formik';\nimport React from 'react';\nimport styled from 'styled-components';\nimport { Grid, GridProps, Typography } from '@material-ui/core';\n\nimport InputFile from '../forms/InputFile';\n\nconst StyledGrid = styled(Grid)`\n display: flex;\n flex-direction: column;\n .multiple-files-container {\n padding: 0 20px;\n button {\n margin-right: 10px;\n }\n }\n`;\n\nexport interface InlineFileValue {\n url?: string;\n signedUrl?: string;\n name?: string;\n size?: number;\n}\n\nconst InlineFile: React.FC<{\n multiple?: boolean;\n name: string;\n label?: string;\n token?: string;\n uploadPath: string;\n inputType?: string;\n compact?: boolean;\n grid?: GridProps;\n disabled?: boolean;\n}> = ({\n multiple,\n label,\n grid,\n token,\n uploadPath,\n inputType,\n compact = false,\n disabled = false,\n ...fieldProps // Note: fieldProps needs to have `name` prop\n}) => {\n if (!grid) {\n // default field to expand entire width of form\n grid = { xs: 12 };\n }\n const formik = useFormikContext();\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const [field, meta, { setValue, setTouched }] =\n useField(fieldProps);\n return (\n \n {label && (\n \n {label}\n \n )}\n {\n setValue(values);\n formik.submitForm();\n }}\n />\n \n );\n};\n\nexport default InlineFile;\n","import React, { useEffect } from 'react';\nimport { Card } from '@material-ui/core';\nimport AttachFileIcon from '@material-ui/icons/AttachFile';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport InlineFile from '../../../common/inline/InlineFile';\nimport InlineForm from '../../../common/inline/InlineForm';\nimport InlineFormik from '../../../common/inline/InlineFormik';\nimport { WorkflowEntity } from '../../workflow/Workflow.interface';\nimport { useTaskEntityFields } from '../../workflow/Workflow.hooks';\nimport { useUpdateSupplier } from '../Supplier.hooks';\nimport { BaseSupplierCardProps } from '../Supplier.interface';\n\nconst SupplierFileAttachmentCard: React.FC = (\n props: BaseSupplierCardProps\n) => {\n const {\n supplier,\n supplierVersion,\n token,\n onChange,\n onUpdate,\n onError\n } = props;\n const {\n updatedSupplier,\n isUpdating,\n updateError,\n updateSupplier\n } = useUpdateSupplier(supplier.id, token);\n const disabled = !!supplierVersion;\n const initialData = supplierVersion || supplier;\n const { isFieldDisabled } = useTaskEntityFields(\n supplier.task,\n { token }\n );\n\n useEffect(() => {\n if (updatedSupplier) {\n onChange?.(updatedSupplier);\n onUpdate?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedSupplier]);\n\n useEffect(() => {\n if (updateError) {\n onError?.(updateError);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updateError]);\n\n return (\n \n \n \n File Attachments\n \n \n ) => {\n console.log('supplierDto', supplierDto);\n updateSupplier(supplierDto);\n onChange?.(supplierDto);\n }}\n >\n {() => (\n \n \n \n )}\n \n \n \n );\n};\n\nexport default SupplierFileAttachmentCard;\n","import React, { useEffect } from 'react';\nimport { Card, Grid } from '@material-ui/core';\nimport { FindInPage as FindInPageIcon } from '@material-ui/icons';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport InlineForm from '../../../common/inline/InlineForm';\nimport InlineFormik from '../../../common/inline/InlineFormik';\nimport InlineRadioGroup, {\n InlineRadioGroupProps\n} from '../../../common/inline/InlineRadioGroup';\nimport { WorkflowEntity } from '../../workflow/Workflow.interface';\nimport { useTaskEntityFields } from '../../workflow/Workflow.hooks';\nimport { useUpdateSupplier } from '../Supplier.hooks';\nimport { BaseSupplierCardProps } from '../Supplier.interface';\nimport { StyledDivider, StyledTypography } from './SupplierCard.styled';\n\nconst SupplierQualityControlCard: React.FC = (\n props: BaseSupplierCardProps\n) => {\n const {\n supplier,\n supplierVersion,\n token,\n onChange,\n onUpdate,\n onError\n } = props;\n const {\n updatedSupplier,\n isUpdating,\n updateError,\n updateSupplier\n } = useUpdateSupplier(supplier.id, token);\n const { isFieldDisabled } = useTaskEntityFields(\n supplier.task,\n { token }\n );\n const disabled = !!supplierVersion;\n const initialData = supplierVersion || supplier;\n const commonOptions: InlineRadioGroupProps['options'] = [\n { label: 'Yes', value: 'yes' },\n { label: 'No', value: 'no' },\n { label: 'N/A', value: 'n/a' }\n ];\n const commonGridProps: InlineRadioGroupProps['grid'] = {\n xs: 12\n };\n\n useEffect(() => {\n if (updatedSupplier) {\n onChange?.(updatedSupplier);\n onUpdate?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedSupplier]);\n\n useEffect(() => {\n if (updateError) {\n onError?.(updateError);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updateError]);\n\n return (\n \n \n \n Product Verification and Quality Control\n \n \n ) => {\n updateSupplier(supplierDto);\n onChange?.(supplierDto);\n }}\n >\n {() => (\n \n \n \n Are measurement/verification requirements for product/service\n acceptance documented and does it include:\n \n \n \n \n \n \n \n \n \n \n \n )}\n \n \n \n );\n};\n\nexport default SupplierQualityControlCard;\n","import React, { useEffect } from 'react';\nimport { Card } from '@material-ui/core';\nimport { Policy as PolicyIcon } from '@material-ui/icons';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport InlineForm from '../../../common/inline/InlineForm';\nimport InlineFormik from '../../../common/inline/InlineFormik';\nimport InlineTextField from '../../../common/inline/InlineTextField';\nimport InlineRadioGroup, {\n InlineRadioGroupProps\n} from '../../../common/inline/InlineRadioGroup';\nimport { WorkflowEntity } from '../../workflow/Workflow.interface';\nimport { useTaskEntityFields } from '../../workflow/Workflow.hooks';\nimport { useUpdateSupplier } from '../Supplier.hooks';\nimport { BaseSupplierCardProps } from '../Supplier.interface';\n\nconst SupplierQualityProgramCard: React.FC = (\n props: BaseSupplierCardProps\n) => {\n const {\n supplier,\n supplierVersion,\n token,\n onChange,\n onUpdate,\n onError\n } = props;\n const {\n updatedSupplier,\n isUpdating,\n updateError,\n updateSupplier\n } = useUpdateSupplier(supplier.id, token);\n const { isFieldDisabled } = useTaskEntityFields(\n supplier.task,\n { token }\n );\n const disabled = !!supplierVersion;\n const initialData = supplierVersion || supplier;\n const commonOptions: InlineRadioGroupProps['options'] = [\n { label: 'Yes', value: 'yes' },\n { label: 'No', value: 'no' },\n { label: 'N/A', value: 'n/a' }\n ];\n\n useEffect(() => {\n if (updatedSupplier) {\n onChange?.(updatedSupplier);\n onUpdate?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedSupplier]);\n\n useEffect(() => {\n if (updateError) {\n onError?.(updateError);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updateError]);\n\n return (\n \n \n \n Quality Program\n \n \n ) => {\n updateSupplier(supplierDto);\n onChange?.(supplierDto);\n }}\n >\n {() => (\n \n \n \n \n \n \n \n )}\n \n \n \n );\n};\n\nexport default SupplierQualityProgramCard;\n","import React, {\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport styled from 'styled-components';\nimport {\n NumberParam,\n StringParam,\n useQueryParam,\n withDefault\n} from 'use-query-params';\nimport {\n AppBar,\n Box,\n Button,\n Card,\n CircularProgress,\n Grid,\n Hidden,\n Toolbar,\n Typography\n} from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\nimport {\n Send as SendIcon,\n Warning as WarningIcon,\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n AssignmentTurnedIn as AssignmentTurnedInIcon\n} from '@material-ui/icons';\n\nimport logo from '../../assets/logo';\nimport { FetchError } from '../../common/api/api';\nimport { formatDate } from '../../common/formatter';\nimport AppSnackbar from '../../common/AppSnackbar';\nimport CardTitle from '../../common/card/CardTitle';\nimport CardContent from '../../common/card/CardContent';\nimport ConfirmDialog from '../../common/dialogs/ConfirmDialog';\nimport VerticalStep from '../../common/vertical-stepper/VerticalStep';\nimport VerticalStepper from '../../common/vertical-stepper/VerticalStepper';\nimport ErrorView, { StyledCenterView } from '../../common/views/ErrorView';\nimport SupplierDetailsCard from './cards/SupplierDetailsCard';\nimport SupplierQualitySystemCard from './cards/SupplierQualitySystemCard';\nimport SupplierQualityManualCard from './cards/SupplierQualityManualCard';\nimport SupplierFileAttachmentCard from './cards/SupplierFileAttachmentCard';\nimport SupplierQualityControlCard from './cards/SupplierQualityControlCard';\nimport SupplierQualityProgramCard from './cards/SupplierQualityProgramCard';\nimport { Supplier, BaseSupplierCardProps } from './Supplier.interface';\nimport {\n useFindSupplierByToken,\n useCompleteSupplierSurvey\n} from './Supplier.hooks';\n\ninterface Section {\n name: string;\n}\n\nconst sections: Section[] = [\n { name: 'Details' },\n { name: 'Quality Program' },\n { name: 'Quality Manual' },\n { name: 'Product Verification and Quality Control' },\n { name: 'Quality System Functions' }\n];\n\nconst StyledContainer = styled.main`\n display: flex;\n flex-direction: column;\n overflow: hidden;\n flex: 1;\n z-index: 0;\n`;\n\nconst StyledBody = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n overflow: hidden;\n`;\n\nconst StyledContent = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n overflow: auto;\n flex-flow: row wrap;\n align-items: center;\n justify-content: center;\n background-color: #f1f3f3;\n .card-container {\n width: 100%;\n height: 100%;\n padding: 30px;\n .grid-center {\n &::before,\n &::after {\n content: '';\n flex: 1;\n }\n }\n .grid-actions {\n display: flex;\n padding-bottom: 30px;\n .spacer {\n flex: 1;\n display: flex;\n align-items: center;\n .text {\n margin-left: 16px;\n margin-right: 16px;\n line-height: unset;\n }\n }\n }\n\n .card-title {\n font-size: 24px;\n padding-top: 32px;\n font-weight: unset;\n line-height: unset;\n text-transform: unset;\n .MuiSvgIcon-root {\n margin-left: 10px;\n margin-right: 16px;\n }\n }\n }\n`;\n\nconst SupplierSurveyPage: React.FC = () => {\n const [token] = useQueryParam('token', withDefault(StringParam, ''));\n const [selectedStepIndex, setSelectedStepIndex] = useQueryParam(\n 'step',\n withDefault(NumberParam, 0)\n );\n const contentRef = useRef(null);\n const [supplier, setSupplier] = useState();\n const [error, setError] = useState();\n const [didSubmit, setDidSubmit] = useState(false);\n const {\n supplier: data,\n isLoading,\n loadingError,\n findSupplier\n } = useFindSupplierByToken(token);\n const { completedSupplier, isCompleting, completeError, completeSupplier } =\n useCompleteSupplierSurvey(supplier?.id || 0, token);\n const invalidToken: boolean = loadingError?.statusCode === 401;\n const apiError: FetchError | undefined = loadingError || completeError;\n\n const supplierCardProps: BaseSupplierCardProps = {\n token,\n supplier: supplier!,\n onChange: (newSupplier: Partial) => {\n supplier && setSupplier({ ...supplier, ...newSupplier });\n },\n onError: (error: FetchError) => setError(error)\n };\n\n const cardComponent = useMemo(() => {\n switch (selectedStepIndex) {\n case 0:\n return ;\n case 1:\n return ;\n case 2:\n return (\n \n \n \n \n \n \n \n \n );\n case 3:\n return ;\n case 4:\n return ;\n case 5:\n return (\n \n \n \n Survey Completed\n \n \n \n \n Thank you for taking the time to accomplish this survey. You\n may now close this window.\n \n \n \n \n Supplier survey sucessfully accomplished on{' '}\n {formatDate(supplier?.completed)}.\n \n \n \n \n );\n }\n }, [supplier, supplierCardProps, selectedStepIndex]);\n\n // scroll to top on index change\n useLayoutEffect(() => {\n contentRef.current?.scrollTo(0, 0);\n }, [selectedStepIndex]);\n\n useEffect(() => {\n // only change if supplier exists\n if (!supplier) {\n return;\n }\n // -1 index if not completed\n const lastIndex: number = sections.length - +!supplier.completed;\n if (selectedStepIndex < 0 || selectedStepIndex > lastIndex) {\n setSelectedStepIndex(0);\n }\n }, [supplier, selectedStepIndex, setSelectedStepIndex]);\n\n // verify token and get supplier\n useEffect(() => {\n findSupplier();\n }, [findSupplier]);\n\n useEffect(() => {\n if (data) {\n setSupplier(data);\n }\n }, [data]);\n\n useEffect(() => {\n if (completedSupplier) {\n supplierCardProps.onChange?.(completedSupplier);\n setDidSubmit(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [completedSupplier]);\n\n useEffect(() => {\n if (supplier?.completed && didSubmit) {\n setSelectedStepIndex(5);\n setDidSubmit(false);\n }\n }, [supplier, didSubmit, setSelectedStepIndex]);\n\n useEffect(() => {\n setError(apiError);\n }, [apiError]);\n\n return (\n \n \n \n
    \n \n \n \n
    \n
    \n
    \n\n {!supplier && !isLoading && loadingError && (\n }\n />\n )}\n {!supplier && isLoading && !loadingError && (\n \n
    \n \n
    \n
    \n )}\n\n {supplier && (\n \n \n \n {sections.map((step, index) => (\n setSelectedStepIndex(index)}\n >\n
    \n {index + 1}\n
    \n
    {step.name}
    \n \n ))}\n supplier?.completed && setSelectedStepIndex(5)}\n >\n
    \n 6\n
    \n
    Completed
    \n \n
    \n
    \n\n \n
    \n \n \n \n \n {cardComponent}\n \n \n \n {error && (\n \n \n \n {error.message}\n \n \n \n )}\n \n \n completeSupplier()}\n />\n \n \n \n
    \n
    \n
    \n )}\n\n \n {error?.message}\n \n didSubmit && setDidSubmit(false)}\n >\n Supplier details updated.\n \n
    \n );\n};\n\ninterface GridActionsProps {\n supplier: Supplier;\n selectedStepIndex: number;\n isSubmitting?: boolean;\n setSelectedStepIndex: (selectedStepIndex: number) => void;\n onSubmit: () => void;\n}\n\nconst GridActions: React.FC = (props: GridActionsProps) => {\n const {\n supplier,\n isSubmitting,\n selectedStepIndex,\n setSelectedStepIndex,\n onSubmit\n } = props;\n const [text, setText] = useState('');\n const [openDialog, setOpenDialog] = useState(false);\n const now: Date = useMemo(() => new Date(), []);\n\n useEffect(() => {\n if (+(supplier.modified || 0) >= +now) {\n setText('Supplier details saved.');\n }\n }, [now, supplier]);\n\n return (\n \n {selectedStepIndex > 0 && (\n }\n onClick={() => setSelectedStepIndex(selectedStepIndex - 1)}\n >\n Back\n \n )}\n
    \n {text && (\n \n {text}\n \n )}\n
    \n {selectedStepIndex < sections.length - 1 && (\n }\n onClick={() => setSelectedStepIndex(selectedStepIndex + 1)}\n >\n Next\n \n )}\n {selectedStepIndex === sections.length - 1 && (\n setOpenDialog(true)}\n endIcon={\n isSubmitting ? (\n \n ) : (\n \n )\n }\n >\n Submit\n \n )}\n\n setOpenDialog(false)}\n onConfirm={() => {\n setOpenDialog(false);\n onSubmit();\n }}\n />\n
    \n );\n};\n\nexport default SupplierSurveyPage;\n","import React, { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControlLabel,\n LinearProgress,\n Typography\n} from '@material-ui/core';\nimport { Alert, AlertTitle } from '@material-ui/lab';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin,\n TaskContext\n} from '@sierralabs/workflow-ui';\n\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport { useJiraConnectContext } from '../../../jira-connect/JiraConnect.context';\nimport {\n useCreateJiraIssue,\n useFindJiraIssues\n} from '../../../jira-connect/JiraConnect.hooks';\nimport {\n JiraIssue,\n JiraIssueCreateResponse\n} from '../../../jira-connect/JiraConnect.interface';\nimport { useCreateTaskJiraIssueV2 } from '../../../task-jira-v2/TaskJiraIssueV2.hooks';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .MuiFormControlLabel-root {\n width: 100%;\n }\n`;\n\nexport interface CreateJiraIssueParams {\n src: 'createJiraIssue';\n data: {\n projectId?: string;\n issueTypeId?: string;\n linkToEntity?: boolean;\n duplicateTitle?: boolean;\n duplicateDescription?: boolean;\n };\n}\n\nconst CreateJiraIssueConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: CreateJiraIssueParams['data'] = invoke.data;\n return (\n \n {\n data.projectId = projectId;\n data.issueTypeId = undefined;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n {\n data.issueTypeId = issueType?.id;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n\n {\n data.linkToEntity = checked;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n }\n />\n {\n data.duplicateTitle = checked;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n }\n />\n {\n data.duplicateDescription = checked;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n }\n />\n \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n padding-left: 4px;\n text-indent: -4px;\n code {\n background: #f4f5fa;\n padding: 2px 5px;\n border-radius: 3px;\n }\n b {\n padding: 0 5px 0 0;\n }\n`;\n\nconst CreateJiraIssueDisplay: React.FC = ({ invoke }) => {\n return (\n \n {invoke.data?.events?.map((event: any, index: number) => (\n
    \n {event.description || event.event}\n
    \n ))}\n
    \n );\n};\n\nconst StyledDialogContent = styled(DialogContent)`\n .MuiTypography-root,\n .MuiAlert-root {\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n`;\n\ninterface CreateJiraIssuePluginDialogProps {\n open: boolean;\n state: State;\n data: CreateJiraIssueParams['data'];\n onCancel?: () => void;\n onSuccess?: () => void;\n}\n\nconst CreateJiraIssuePluginDialog: React.FC<\n CreateJiraIssuePluginDialogProps\n> = props => {\n const { open, data, state, onCancel, onSuccess } = props;\n const stateRef = useRef(state);\n const onSuccessRef = useRef(onSuccess);\n const [issue, setIssue] = useState();\n const [result, setResult] = useState();\n const { isAvailable } = useJiraConnectContext();\n const [foundResult, findIssues] = useFindJiraIssues();\n const [createResult, createIssue] = useCreateJiraIssue();\n const {\n data: createdTaskJiraIssue,\n isLoading: isCreating,\n error: createError,\n createTaskJiraIssue\n } = useCreateTaskJiraIssueV2();\n const { projectId, issueTypeId, linkToEntity } = data;\n const createdIssues = foundResult.data;\n const isLoading =\n createResult.isLoading || foundResult.isLoading || isCreating;\n const error = createResult.error || foundResult.error || createError;\n\n useEffect(() => {\n stateRef.current = state;\n }, [state]);\n useEffect(() => {\n onSuccessRef.current = onSuccess;\n }, [onSuccess]);\n\n useEffect(() => {\n if (!open) {\n setIssue(undefined);\n setResult(undefined);\n }\n }, [open]);\n\n useEffect(() => {\n if (!isAvailable || !projectId || !issueTypeId) {\n return;\n }\n const { task, taskEntity } = stateRef.current.context;\n createIssue({\n fields: {\n summary: task.name,\n description: (taskEntity as any)?.description || task.description,\n project: { id: projectId },\n issuetype: { id: issueTypeId }\n }\n });\n }, [projectId, issueTypeId, isAvailable, createIssue]);\n\n useEffect(() => {\n setResult(createResult.data);\n }, [createResult.data]);\n\n useEffect(() => {\n if (result) {\n findIssues({ title: result.key });\n }\n }, [result, findIssues]);\n\n useEffect(() => {\n const issue = createdIssues?.issues[0];\n issue && setIssue(issue);\n }, [createdIssues]);\n\n useEffect(() => {\n if (!issue) {\n return;\n }\n if (!linkToEntity) {\n onSuccessRef.current?.();\n return;\n }\n // link issue\n createTaskJiraIssue({\n taskId: stateRef.current.context.task.id,\n issue,\n key: issue.key,\n summary: issue.fields.summary,\n status: issue.fields.status.name\n });\n }, [linkToEntity, issue, createTaskJiraIssue]);\n\n useEffect(() => {\n if (createdTaskJiraIssue) {\n onSuccessRef.current?.();\n }\n }, [createdTaskJiraIssue]);\n\n return (\n {\n // avoid accidentally cancelling create jira request\n if (!isLoading) {\n onCancel?.();\n }\n }}\n >\n {isLoading && }\n Create Jira Issue\n \n {isLoading && (\n \n {createResult.isLoading\n ? 'Creating Jira Issue...'\n : foundResult.isLoading\n ? `Loading created Jira Issue ${result?.key || '?'}...`\n : isCreating\n ? `Linking Jira Issue ${result?.key || '?'}...`\n : 'Loading...'}\n \n )}\n {!isAvailable && (\n \n JIRA Connect API is not available\n Unable to run action and create Jira issue. You can choose to skip\n this action, or open SierraQMS within JIRA and try again to properly\n run this action.\n \n )}\n {error && {error.message}}\n \n \n \n {!isAvailable && (\n onSuccess?.()}\n >\n Skip Action and Proceed\n \n )}\n \n \n );\n};\n\nexport const CreateJiraIssuePlugin: ServicePlugin = {\n src: 'createJiraIssue',\n name: 'Create Jira Issue',\n configurator: CreateJiraIssueConfigurator,\n display: CreateJiraIssueDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as CreateJiraIssueParams['data'];\n return !!(data && data.projectId && data.issueTypeId);\n },\n service: (\n state: State,\n params: CreateJiraIssueParams | CreateJiraIssueParams[],\n render\n ) => {\n console.log('createJiraIssue params', state, params);\n const pluginParams = Array.isArray(params) ? params[0] : params;\n return new Promise((resolve, reject) => {\n render?.(\n {\n render?.(undefined);\n reject();\n }}\n onSuccess={() => {\n render?.(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n};\n","import React, { useEffect, useMemo } from 'react';\nimport styled from 'styled-components';\nimport { TextField, TextFieldProps, Typography } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { useGetJiraStatusesByProjectId } from '../JiraConnect.hooks';\nimport { JiraStatus } from '../JiraConnect.interface';\n\nconst StyledTypography = styled(Typography)`\n font-size: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport interface BaseJiraStatusPickerProps {\n projectId?: string;\n issueTypeId?: string;\n disabled?: boolean;\n textFieldProps?: Omit;\n}\n\nexport interface JiraStatusSinglePickerProps extends BaseJiraStatusPickerProps {\n value?: string;\n multiple?: false;\n onChange?: (status: JiraStatus | undefined) => void;\n}\n\nexport interface JiraStatusMultiplePickerProps\n extends BaseJiraStatusPickerProps {\n value?: string[];\n multiple: true; // always true for multiple\n onChange?: (statuses: JiraStatus[]) => void;\n}\n\nexport type JiraStatusPickerProps =\n | JiraStatusSinglePickerProps\n | JiraStatusMultiplePickerProps;\n\nconst JiraStatusPicker: React.FC = props => {\n const { value, disabled, multiple, projectId, issueTypeId, textFieldProps } =\n props;\n const [{ data, isLoading, error }, getStatuses] =\n useGetJiraStatusesByProjectId(projectId || '');\n\n const options = useMemo(() => {\n const issueTypes = data || [];\n // if issueTypeId filter is not provided, merge all statuses by id\n if (issueTypeId) {\n const issueType = issueTypes.find(\n issueType => issueType.id === issueTypeId\n );\n return issueType?.statuses || [];\n }\n return issueTypes.reduce((statuses: JiraStatus[], issueType) => {\n const newStatuses = (issueType.statuses || []).filter(\n status => !statuses.some(s => s.id === status.id)\n );\n return statuses.concat(newStatuses);\n }, []);\n }, [data, issueTypeId]);\n\n const selected = useMemo(() => {\n const ids = Array.isArray(value) ? value : value ? [value] : [];\n const selected = options.filter(option => ids.includes(option.id));\n return multiple ? selected : selected[0] || null;\n }, [multiple, options, value]);\n\n useEffect(() => {\n getStatuses();\n }, [getStatuses]);\n\n return (\n option.name}\n onChange={(_, value) => {\n const statuses = Array.isArray(value) ? value : value ? [value] : [];\n if (props.multiple) {\n props.onChange?.(statuses);\n } else {\n props.onChange?.(statuses[0]);\n }\n }}\n renderTags={(value, getTagProps) => {\n return value.map((option, index, arr) => {\n return (\n \n {option.name}\n {index < arr.length - 1 ? ',' : ''}\n \n );\n });\n }}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default JiraStatusPicker;\n","import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n FormControl,\n FormControlLabel,\n FormHelperText,\n IconButton,\n Radio,\n RadioGroup,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField\n} from '@material-ui/core';\nimport { Add, Close } from '@material-ui/icons';\nimport { Autocomplete } from '@material-ui/lab';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin,\n TaskContext\n} from '@sierralabs/workflow-ui';\n\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport JiraStatusPicker from '../../../jira-connect/pickers/JiraStatusPicker';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .event-field {\n margin-top: 12px;\n }\n .MuiTableHead-root .MuiTableCell-root {\n padding-left: 4px;\n padding-right: 4px;\n }\n .MuiTableRow-root.dense .MuiTableCell-root {\n padding: 2px 4px;\n }\n`;\n\nexport interface TransitionEntityStatusFromJiraParams {\n src: 'transitionEntityStatusFromJira';\n data: {\n projectId?: string;\n eventName?: string;\n partial?: boolean;\n issues?: {\n statuses?: { id: string; name: string }[];\n issueType?: { id: string; name: string };\n }[];\n };\n}\n\nconst TransitionEntityStatusFromJiraConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { stateNode, onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: TransitionEntityStatusFromJiraParams['data'] = invoke.data;\n const issues = data.issues || [];\n const events = stateNode.events || [];\n const disabled = !data.projectId;\n const selectedEvent = events.find(\n event => data.eventName && data.eventName === event.name\n );\n\n const update = (data: TransitionEntityStatusFromJiraParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n return (\n \n {\n update({ ...data, projectId: projectId, issues: [] });\n }}\n />\n {\n const target = (option.transitions || [])\n .map(transition => transition.target)\n .join(', ');\n return `${option.name} (${stateNode.name} -> ${target})`;\n }}\n onChange={(_, value) => update({ ...data, eventName: value?.name })}\n renderInput={params => (\n \n )}\n />\n \n \n \n \n Issue Type\n Statuses\n \n \n \n \n {issues.length === 0 && (\n \n \n {data.projectId ? (\n 'No items added.'\n ) : (\n <>\n Select a Project to add items.\n \n )}\n \n \n )}\n {issues.map((issue, index) => (\n \n \n {\n issues[index].issueType = issueType && {\n id: issueType.id,\n name: issueType.label\n };\n issues[index].statuses = undefined;\n update({ ...data, issues });\n }}\n />\n \n \n status.id)}\n textFieldProps={{\n size: 'small',\n label: undefined,\n placeholder: 'Select Statuses'\n }}\n onChange={statuses => {\n issues[index].statuses = statuses;\n update({ ...data, issues });\n }}\n />\n \n \n {\n issues.splice(index, 1);\n update({ ...data, issues });\n }}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n onClick={() => {\n issues.push({});\n update({ ...data, issues });\n }}\n >\n Add Item\n \n \n \n \n {\n update({ ...data, partial: event.target.value === 'partial' });\n }}\n >\n }\n />\n }\n />\n \n \n Transition will trigger when{' '}\n {data.partial ? 'one or more' : 'all'} linked\n issues reach the selected statuses.\n \n \n \n
    \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n .icon {\n font-size: 18px;\n margin-top: -3px;\n vertical-align: middle;\n }\n`;\n\nconst TransitionEntityStatusFromJiraDisplay: React.FC<\n ServiceDisplayProps\n> = props => {\n const { invoke } = props;\n const data: TransitionEntityStatusFromJiraParams['data'] | undefined =\n invoke.data;\n const issues = data?.issues || [];\n return !data ? (\n <>\n ) : (\n \n
    Event: {data.eventName || '?'}
    \n
    Check: {data.partial ? 'Partial' : 'All'}
    \n
    \n Issues:{' '}\n {issues\n .map(issues => {\n const issueType = issues.issueType?.name;\n const status = (issues.statuses || [])\n .map(status => status.name)\n .join(', ');\n return `${issueType} (${status})`;\n })\n .join(', ') || '?'}\n
    \n
    \n );\n};\n\nexport const TransitionEntityStatusFromJiraPlugin: ServicePlugin =\n {\n src: 'transitionEntityStatusFromJira',\n name: 'Transition Entity Status From Jira',\n configurator: TransitionEntityStatusFromJiraConfigurator,\n display: TransitionEntityStatusFromJiraDisplay,\n validate: (condition: Partial) => {\n const data =\n condition.data as TransitionEntityStatusFromJiraParams['data'];\n return !!(\n data &&\n data.projectId &&\n data.eventName &&\n Array.isArray(data.issues) &&\n data.issues.length > 0 &&\n data.issues.every(issue => {\n return (\n issue.issueType &&\n Array.isArray(issue.statuses) &&\n issue.statuses.length > 0\n );\n })\n );\n },\n service: (\n state: State,\n params:\n | TransitionEntityStatusFromJiraParams\n | TransitionEntityStatusFromJiraParams[]\n ) => {\n console.log('transitionEntityStatusFromJira params', state, params);\n return true;\n }\n };\n","import React, { useEffect, useMemo } from 'react';\nimport { TextField, TextFieldProps } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\nimport { useGetFieldsByProjectAndIssueType } from '../JiraConnect.hooks';\n\nexport interface JiraIssueFieldPickerProps {\n issueTypeId: string;\n projectId: string;\n value?: string;\n disabled?: boolean;\n textFieldProps?: Omit;\n onChange?: (issueField: string) => void;\n}\n\nconst JiraIssueFieldPicker: React.FC = ({\n issueTypeId,\n projectId,\n value,\n disabled,\n textFieldProps,\n onChange\n}) => {\n const [{ data: issueFields, isLoading, error }, getIssueFields] =\n useGetFieldsByProjectAndIssueType(projectId, issueTypeId);\n\n const options = useMemo(() => {\n return Object.keys(\n issueFields?.projects[0].issuetypes[0]?.fields || []\n ).map(keyName => ({\n key: issueFields?.projects[0].issuetypes[0]?.fields[keyName].key,\n name: issueFields?.projects[0].issuetypes[0]?.fields[keyName].name\n }));\n }, [issueFields]);\n\n const selected = useMemo(() => {\n return value ? options.find(option => option.key === value) : undefined;\n }, [options, value]);\n\n useEffect(() => {\n getIssueFields();\n }, [getIssueFields, issueTypeId]);\n return (\n option.name}\n onChange={(_, value) => onChange?.(value?.key as string)}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default JiraIssueFieldPicker;\n","import { startCase } from 'lodash';\nimport React, { useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow\n} from '@material-ui/core';\nimport { Add, Close } from '@material-ui/icons';\nimport { EntityColumnNamePicker } from '@sierralabs/entity-ui';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin,\n TaskContext,\n useFindTaskTypeById\n} from '@sierralabs/workflow-ui';\n\nimport JiraIssueFieldPicker from '../../../jira-connect/pickers/JiraIssueFieldPicker';\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .MuiTableHead-root .MuiTableCell-root {\n padding-left: 4px;\n padding-right: 4px;\n }\n .MuiTableRow-root.dense .MuiTableCell-root {\n padding: 2px 4px;\n }\n`;\n\nexport interface UpdateFieldFromJiraParams {\n src: 'updateFieldFromJira';\n data: {\n projectId?: string;\n fields?: {\n entityField?: string;\n issueType?: { id: string; name: string };\n issueField?: string;\n }[];\n };\n}\n\nconst UpdateFieldFromJiraConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { taskTypeId, onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: UpdateFieldFromJiraParams['data'] = invoke.data;\n const fields = data.fields || [];\n const { data: taskType, get } = useFindTaskTypeById(taskTypeId || 0);\n\n const update = (data: UpdateFieldFromJiraParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n useEffect(() => {\n get();\n }, [get]);\n\n return (\n \n {\n data.projectId = projectId;\n data.fields = [];\n update(data);\n }}\n />\n \n \n \n \n Entity Field\n Issue Type\n Issue Field\n \n \n \n \n {fields.length === 0 && (\n \n \n {data.projectId ? (\n 'No fields added.'\n ) : (\n <>\n Select a Project to add fields.\n \n )}\n \n \n )}\n {fields.map((field, index) => (\n \n \n {\n fields[index].entityField = columnName;\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields[index].issueType = issueType && {\n id: issueType.id,\n name: issueType.label\n };\n fields[index].issueField = undefined;\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields[index].issueField = issueField;\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields.splice(index, 1);\n update({ ...data, fields });\n }}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n disabled={!data.projectId}\n onClick={() => {\n fields.push({});\n update({ ...data, fields });\n }}\n >\n Add Field\n \n \n
    \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n`;\n\nconst UpdateFieldFromJiraDisplay: React.FC = props => {\n const { invoke } = props;\n const data: UpdateFieldFromJiraParams['data'] | undefined = invoke.data;\n const fields = data?.fields || [];\n const fieldsText = fields\n .slice(0, 3)\n .map((field, index) => {\n return index === 2\n ? `and ${fields.length - 2} more`\n : startCase(field.entityField) || '?';\n })\n .join(', ');\n return (\n {fieldsText && `Fields: ${fieldsText}`}\n );\n};\n\nexport const UpdateFieldFromJiraPlugin: ServicePlugin =\n {\n src: 'updateFieldFromJira',\n name: 'Update Field From Jira',\n configurator: UpdateFieldFromJiraConfigurator,\n display: UpdateFieldFromJiraDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as UpdateFieldFromJiraParams['data'];\n return !!(\n data &&\n data.projectId &&\n Array.isArray(data.fields) &&\n data.fields.length > 0 &&\n data.fields.every(\n field => field.entityField && field.issueType?.id && field.issueField\n )\n );\n },\n service: (\n state: State,\n params: UpdateFieldFromJiraParams | UpdateFieldFromJiraParams[]\n ) => {\n console.log('updateFieldFromJira params', state, params);\n return true;\n }\n };\n","import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n IconButton,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Typography\n} from '@material-ui/core';\nimport { Add, DeleteOutlined } from '@material-ui/icons';\nimport { Alert, AlertTitle } from '@material-ui/lab';\nimport {\n EntityColumnNamePicker,\n useEntityContext\n} from '@sierralabs/entity-ui';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\nimport {\n findTaskEntity,\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin,\n TaskContext,\n useFindTaskTypeById\n} from '@sierralabs/workflow-ui';\n\nimport { FetchError } from '../../../../common/api/api';\nimport { environmentV2 } from '../../../../environments';\nimport JiraIssueFieldPicker from '../../../jira-connect/pickers/JiraIssueFieldPicker';\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport { useJiraConnectContext } from '../../../jira-connect/JiraConnect.context';\nimport {\n createJiraIssueFields,\n getJiraIssueEntityFieldOptions,\n useUpdateJiraIssues\n} from '../../../jira-connect/JiraConnect.hooks';\nimport { findTaskJiraIssuesV2 } from '../../../task-jira-v2/TaskJiraIssueV2.hooks';\nimport { TaskV2 } from '../../../task-jira-v2/TaskJiraIssueV2.interface';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .MuiTableHead-root .MuiTableCell-root {\n padding-left: 4px;\n padding-right: 4px;\n }\n .MuiTableRow-root.dense .MuiTableCell-root {\n padding: 2px 4px;\n }\n`;\n\nexport interface UpdateJiraIssueParams {\n src: 'updateJiraIssue';\n data: {\n projectId?: string;\n fields?: {\n /** Entity column property name. */\n entityField?: string;\n issueType?: { id: string; name: string };\n issueField?: string;\n }[];\n };\n}\n\nconst UpdateJiraIssueConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { taskTypeId, onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n const { entities } = useEntityContext();\n const { data: taskType, get } = useFindTaskTypeById(taskTypeId || 0);\n if (!invoke.data) invoke.data = {};\n const data: UpdateJiraIssueParams['data'] = invoke.data;\n if (!data.fields) data.fields = [];\n const fields = data.fields;\n\n const options = useMemo(() => {\n const entity =\n taskType &&\n entities?.find(schema => {\n return schema.id && taskType.entityId\n ? schema.id === taskType.entityId\n : taskType.entityTable && schema.tableName === taskType.entityTable;\n });\n return getJiraIssueEntityFieldOptions({\n entities,\n entity,\n taskSchemaName: environmentV2.entities?.task\n });\n }, [entities, taskType]);\n\n const update = (data: UpdateJiraIssueParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n useEffect(() => {\n get();\n }, [get]);\n\n return (\n \n update({ projectId, fields: [] })}\n />\n \n \n \n \n Entity Field\n Issue Type\n Issue Field\n \n \n \n \n {data.fields.map((item, index) => (\n \n \n {\n // NOTE: passed in options prop uses property name instead of columnName\n fields[index].entityField = propertyName || '';\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields[index].issueType = issueType && {\n id: issueType.id,\n name: issueType.label\n };\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields[index].issueField = issueField;\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields.splice(index, 1);\n update({ ...data, fields });\n }}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n onClick={() => {\n fields.push({});\n update({ ...data, fields });\n }}\n >\n Add Item\n \n \n
    \n );\n};\n\nconst UpdateJiraIssueDisplay: React.FC = () => {\n return null;\n};\n\nconst StyledDialogContent = styled(DialogContent)`\n .MuiTypography-root,\n .MuiAlert-root {\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n`;\n\nexport interface UpdateJiraIssueDialogProps {\n open: boolean;\n data: UpdateJiraIssueParams['data'];\n state: State;\n onCancel?: () => void;\n onSuccess?: () => void;\n}\n\nconst UpdateJiraIssueDialog: React.FC = props => {\n const { open, data, state, onCancel, onSuccess } = props;\n const stateRef = useRef(state);\n const onSuccessRef = useRef(onSuccess);\n onSuccessRef.current = onSuccess;\n const [error, setError] = useState();\n const [isLoading, setIsLoading] = useState(false);\n const [alertMessage, setAlertMessage] = useState();\n const { isAvailable } = useJiraConnectContext();\n const [updateResult, updateIssues] = useUpdateJiraIssues();\n const task = stateRef.current.context.task as TaskV2;\n const alertMsg = !isAvailable\n ? 'Unable to run action and update Jira issue(s). ' +\n 'You can choose to skip this action, or open SierraQMS ' +\n 'within JIRA and try again to properly run this action.'\n : alertMessage;\n const loading = isLoading || updateResult.isLoading;\n\n const handleCancel = () => {\n if (!loading) {\n onCancel?.();\n }\n };\n\n useEffect(() => {\n stateRef.current = state;\n }, [state]);\n\n useEffect(() => {\n const dataFields = data.fields || [];\n if (!isAvailable || dataFields.length === 0) {\n return;\n }\n const apiTaskEntity = findTaskEntity(task.id);\n const apiJiraIssues = findTaskJiraIssuesV2(task.id);\n const run = async () => {\n setIsLoading(true);\n const [\n { error: taskEntityError, data: taskEntity },\n { error: jiraIssuesError, data: jiraIssues }\n ] = await Promise.all([apiTaskEntity.result, apiJiraIssues.result]);\n setIsLoading(false);\n setError(taskEntityError || jiraIssuesError);\n if (!taskEntity || !jiraIssues || jiraIssues.length === 0) {\n const selectedIssueTypes = dataFields\n .map(item => `\"${item.issueType?.name}\"`)\n .join(', ');\n setAlertMessage(\n !taskEntity\n ? 'Unable to load the Task entity. You can choose to skip this action.'\n : 'There are no linked JIRA issues that match some of the ' +\n `issue type(s): ${selectedIssueTypes}, please link an issue that ` +\n 'matches the given issue type(s) to proceed. You can choose to skip this action.'\n );\n return;\n }\n setAlertMessage(undefined);\n const filteredJiraIssues = jiraIssues.filter(jiraIssue => {\n return dataFields.some(\n item => item.issueType?.id === jiraIssue.issue.fields.issuetype.id\n );\n });\n const updates = filteredJiraIssues.map(issue => {\n const allFields = dataFields.filter(\n field => field.issueType?.id === issue.issue.fields.issuetype.id\n );\n const fields = createJiraIssueFields(taskEntity, allFields);\n return { issueId: issue.issue.id, dto: { fields } };\n });\n updateIssues(updates);\n };\n run();\n return () => {\n apiTaskEntity.request.abort();\n apiJiraIssues.request.abort();\n };\n }, [data, isAvailable, task.id, updateIssues]);\n\n useEffect(() => {\n if (updateResult.success) {\n onSuccessRef.current?.();\n }\n }, [updateResult.success]);\n\n return (\n \n {loading && }\n Update Jira Issue\n \n {loading && Updating Jira Issue(s)...}\n {alertMsg && (\n \n \n {!isAvailable\n ? 'JIRA Connect API is not available'\n : 'Unable to update JIRA issue(s)'}\n \n {alertMsg}\n \n )}\n {updateResult.errors.length > 0 && (\n \n {updateResult.errors.map((error, index) => (\n
    {error.message}
    \n ))}\n
    \n )}\n {error && {error.message}}\n
    \n \n \n {alertMsg && (\n onSuccess?.()}\n >\n Skip Action and Proceed\n \n )}\n \n
    \n );\n};\n\nexport const UpdateJiraIssuePlugin: ServicePlugin = {\n src: 'updateJiraIssue',\n name: 'Update Jira Issue',\n configurator: UpdateJiraIssueConfigurator,\n display: UpdateJiraIssueDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as UpdateJiraIssueParams['data'];\n return !!(\n data &&\n data.projectId &&\n Array.isArray(data.fields) &&\n data.fields.every(\n field => field.entityField && field.issueField && field.issueType\n )\n );\n },\n service: (state: State, params, render) => {\n console.log('updateJiraIssue params', params);\n const pluginParams = Array.isArray(params) ? params[0] : params;\n return new Promise((resolve, reject) => {\n render?.(\n {\n render?.(undefined);\n resolve(true);\n }}\n onCancel={() => {\n render?.(undefined);\n reject(true);\n }}\n />\n );\n });\n }\n};\n","import React, { useMemo } from 'react';\nimport { TextField, TextFieldProps, Typography } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { EntitySchema, RelationshipSchema } from '../types';\n\nexport interface EntitySchemaRelationSelectorProps {\n value?: string; // relation.propertyName\n schema?: EntitySchema;\n disabled?: boolean;\n className?: string;\n textFieldProps?: Omit;\n onChange?: (relation: RelationshipSchema | undefined) => void;\n}\n\nconst EntitySchemaRelationSelector: React.FC =\n props => {\n const { value, schema, disabled, className, textFieldProps, onChange } =\n props;\n\n const relations = useMemo(() => schema?.relations || [], [schema]);\n\n const selected = useMemo(() => {\n return relations.find(relation => relation.propertyName === value);\n }, [value, relations]);\n\n return (\n option.displayName}\n onChange={(_, value) => onChange?.(value || undefined)}\n renderOption={option => (\n \n {option.displayName}\n \n {option.target} ({option.type})\n \n \n )}\n renderInput={params => (\n \n )}\n />\n );\n };\n\nexport default EntitySchemaRelationSelector;\n","import React, { useMemo } from 'react';\nimport { TextField, TextFieldProps, Typography } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { EntitySchema } from '../types';\nimport { useEntityContext } from '../Entity.context';\n\nexport interface EntitySchemaSelectorProps {\n value?: string;\n disabled?: boolean;\n className?: string;\n // match relation.target\n filterRelations?: string[];\n textFieldProps?: Omit;\n onChange?: (schema: EntitySchema | undefined) => void;\n}\n\nconst EntitySchemaSelector: React.FC = props => {\n const {\n value,\n disabled,\n className,\n filterRelations,\n textFieldProps,\n onChange\n } = props;\n const { schemas, isLoading, error } = useEntityContext();\n\n const options = useMemo(() => {\n return schemas.filter(schema => {\n // filter relations\n const isRelated =\n !filterRelations ||\n !schema.relations ||\n schema.relations.some(relation => {\n return filterRelations.includes(relation.target);\n });\n return isRelated;\n });\n }, [schemas, filterRelations]);\n\n const selected = useMemo(() => {\n return schemas.find(schema => schema.name === value);\n }, [value, schemas]);\n\n return (\n option.displayName}\n onChange={(_, value) => onChange?.(value || undefined)}\n renderOption={option => (\n \n {option.displayName}\n {option.displayName !== option.name && (\n \n {option.name}\n \n )}\n \n )}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default EntitySchemaSelector;\n","import React, { Fragment, useEffect, useMemo, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Grid,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField,\n Tooltip,\n Typography\n} from '@material-ui/core';\nimport {\n Add as AddIcon,\n Close as CloseIcon,\n Edit as EditIcon,\n HighlightOff as HighlightOffIcon,\n OpenInNew as OpenInNewIcon\n} from '@material-ui/icons';\nimport { Alert, AlertTitle, Autocomplete } from '@material-ui/lab';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport ConfirmDialog from '../../../../common/dialogs/ConfirmDialog';\nimport {\n ErrorMetadataPlugin,\n ErrorMetadataPluginProps\n} from '../../../../common/views/ErrorMetadataView';\nimport TaskStatusLabel from '../../../../common/TaskStatusLabel';\nimport WrappedTableCell from '../../../../common/WrappedTableCell';\nimport EntitySchemaRelationSelector from '../../../entity/components/EntitySchemaRelationSelector';\nimport EntitySchemaSelector from '../../../entity/components/EntitySchemaSelector';\nimport { useEntityContext } from '../../../entity/Entity.context';\nimport { getEntityProperties } from '../../../entity/Entity.hooks';\nimport { EntitySchema } from '../../../entity/types';\nimport TaskTypeSelector from '../../../task-types/components/TaskTypeSelector';\nimport { useGetTaskTypes } from '../../../task-types/TaskType.hooks';\nimport { TaskType } from '../../../task-types/TaskType.interface';\nimport { parseTaskStatus } from '../../../tasks/task.helper';\nimport { useTaskRedirect } from '../../../tasks/Task.hooks';\nimport { Task } from '../../../tasks/Task.interface';\nimport {\n TaskContext,\n UpdateRelatedEntityStatusParams\n} from '../../../tasks/Task.machine';\nimport { useWorkflowContext } from '../../Workflow.context';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\n\ntype Relation = UpdateRelatedEntityStatusParams['data']['relations'][number];\ntype RelationEvent = Relation['events'][number];\n\nfunction validateRelation(value: Partial): value is Relation {\n return !!(\n value.taskType &&\n Array.isArray(value.propertyNames) &&\n value.propertyNames.length > 0 &&\n value.propertyNames.every(propertyName => !!propertyName) &&\n Array.isArray(value.events) &&\n value.events.length > 0\n );\n}\n\nconst UpdateRelatedEntityStatusConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { targetEntity, onChange } = props;\n const [open, setOpen] = useState(false);\n const [invoke, setInvoke] = useState(props.invoke);\n const [updateIndex, setUpdateIndex] = useState(-1);\n const [removeIndex, setRemoveIndex] = useState(-1);\n const { schemas } = useEntityContext();\n if (!invoke.data) invoke.data = {};\n const data: UpdateRelatedEntityStatusParams['data'] = invoke.data;\n const relations = data.relations || [];\n // entity schema of current Workflow\n const schema = targetEntity\n ? schemas.find(schema => schema.name === targetEntity)\n : undefined;\n\n const update = (data: UpdateRelatedEntityStatusParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n const getPropertyDisplay = (relation: Relation | undefined) => {\n if (!relation) {\n return '?';\n }\n const properties = getEntityProperties(\n relation.propertyNames,\n schema,\n schemas\n );\n const property = properties\n .map(property => {\n return property.relation?.displayName || property.propertyName || '?';\n })\n .join(' -> ');\n const entity = schema?.displayName || '?';\n return `${entity} -> ${property}`;\n };\n\n return (\n <>\n \n \n \n \n Name\n Related Entity\n Transitions\n \n \n \n \n {relations.length === 0 && (\n \n No relations added.\n \n )}\n {relations.map((relation, index) => (\n \n \n {relation.name || (\n \n Untitled\n \n )}\n \n \n {getPropertyDisplay(relation)}\n \n \n {relation.events\n .map(event => {\n return `${event.state} -> ${parseTaskStatus(\n event.target\n )}`;\n })\n .join(', ')}\n \n \n setUpdateIndex(index)}\n >\n \n \n setRemoveIndex(index)}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n onClick={() => setOpen(true)}\n >\n Add Relation\n \n \n\n {schema && (\n -1}\n relation={relations[updateIndex]}\n title={updateIndex > -1 ? 'Update Relation' : 'Add Relation'}\n onCancel={() => {\n setOpen(false);\n setUpdateIndex(-1);\n }}\n onSubmit={relation => {\n data.entityName = schema.name;\n if (!data.relations) {\n data.relations = [];\n }\n if (updateIndex > -1) {\n data.relations.splice(updateIndex, 1, relation);\n } else {\n data.relations.push(relation);\n }\n setOpen(false);\n setUpdateIndex(-1);\n update({ ...data });\n }}\n />\n )}\n\n -1}\n title='Remove Relation'\n message={`Are you sure you want to remove ${\n relations[removeIndex]?.name || 'this'\n } relation?`}\n onCancel={() => setRemoveIndex(-1)}\n onConfirm={() => {\n if (!data.relations) {\n data.relations = [];\n }\n if (removeIndex > -1) {\n data.relations.splice(removeIndex, 1);\n }\n setRemoveIndex(-1);\n update({ ...data });\n }}\n />\n \n );\n};\n\nconst StyledBox = styled(Box)`\n .grid-field {\n flex: 1;\n }\n .grid-action {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n }\n`;\n\ninterface AddRelationDialogProps {\n open: boolean;\n title: string;\n schema: EntitySchema;\n relation?: Relation;\n onCancel?: () => void;\n onSubmit?: (relation: Relation) => void;\n}\n\nconst AddRelationDialog: React.FC = props => {\n const {\n open,\n title,\n schema,\n relation: relationProp,\n onCancel,\n onSubmit\n } = props;\n const [relation, setRelation] = useState>(\n () => relationProp || {}\n );\n const { schemas } = useEntityContext();\n const { getWorkflow } = useWorkflowContext();\n const [{ data, isLoading: isFinding }, findTaskTypes] = useGetTaskTypes();\n\n const taskTypes = useMemo(() => data || [], [data]);\n\n const workflow = useMemo(() => {\n return relation.taskType ? getWorkflow(relation.taskType) : undefined;\n }, [relation.taskType, getWorkflow]);\n\n const events = useMemo(() => {\n const allEvents: RelationEvent[] = [];\n for (const state of workflow?.stateNode.states || []) {\n for (const event of state.events || []) {\n for (const transition of event.transitions || []) {\n allEvents.push({\n event: event.name || '',\n state: state.name,\n target: transition.target\n });\n }\n }\n }\n return allEvents;\n }, [workflow]);\n\n const selectedEvents = useMemo(() => {\n const relationEvents = relation.events || [];\n return events.filter(event => {\n return relationEvents.some(relationEvent => {\n return (\n relationEvent.state === event.state &&\n relationEvent.event === event.event &&\n relationEvent.target === event.target\n );\n });\n });\n }, [events, relation]);\n\n const properties = useMemo(() => {\n return getEntityProperties(relation.propertyNames, schema, schemas);\n }, [relation, schema, schemas]);\n\n // get last property.relation\n const propertyRelation = useMemo(() => {\n return properties[properties.length - 1]?.relation;\n }, [properties]);\n\n const targetEntity = propertyRelation?.target;\n const validRelation = validateRelation(relation) ? relation : undefined;\n\n useEffect(() => {\n targetEntity && findTaskTypes({ targetEntity });\n }, [targetEntity, findTaskTypes]);\n\n // clear state\n useEffect(() => {\n if (!open) {\n setRelation({});\n }\n }, [open]);\n\n useEffect(() => {\n relationProp && setRelation(relationProp);\n }, [relationProp]);\n\n return (\n \n {title}\n \n \n {\n setRelation(relation => {\n return { ...relation, name: event.target.value };\n });\n }}\n />\n \n \n \n \n {properties.map((property, index) => (\n \n \n \n {\n const propertyName = relation?.propertyName;\n setRelation(relation => {\n relation = { ...relation };\n if (!relation.propertyNames) {\n relation.propertyNames = [];\n }\n relation.propertyNames[index] = propertyName || '';\n if (!propertyName) {\n relation.events = [];\n relation.taskType = undefined;\n // unset all subsequent relations\n relation.propertyNames.splice(index + 1);\n }\n return relation;\n });\n }}\n />\n \n {index > 0 && (\n \n {\n setRelation(relation => {\n relation = {\n ...relation,\n events: [],\n taskType: undefined\n };\n relation.propertyNames?.splice(index);\n return relation;\n });\n }}\n >\n \n \n \n )}\n \n \n ))}\n \n }\n // disabled if no selected for last property\n disabled={!properties[properties.length - 1].propertyName}\n onClick={() => {\n setRelation(relation => {\n relation = {\n ...relation,\n events: [],\n taskType: undefined\n };\n if (!relation.propertyNames) {\n relation.propertyNames = [];\n }\n relation.propertyNames.push('');\n return relation;\n });\n }}\n >\n Add Relation\n \n \n \n {\n // add display name if not set\n const taskTypeLabel = taskType\n ? `${taskType.label} (${taskType.prefix})`\n : '';\n setRelation(relation => {\n relation = {\n ...relation,\n taskType: taskType?.name,\n name: relation.name || taskTypeLabel\n };\n if (!relation.taskType) {\n relation.events = [];\n }\n return relation;\n });\n }}\n />\n \n \n {\n const { event, state, target } = option;\n return `${event} (${state} -> ${parseTaskStatus(target)})`;\n }}\n onChange={(_, events) => {\n setRelation(relation => ({ ...relation, events }));\n }}\n renderInput={params => (\n \n )}\n />\n \n {workflow && (\n \n \n The event transitions will trigger for the\n related entities. The related entities must be in a status that\n can transition to the target status.\n \n \n )}\n \n \n \n {\n if (validRelation) {\n onSubmit?.(validRelation);\n }\n }}\n >\n Save\n \n \n \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n padding-left: 4px;\n text-indent: -4px;\n`;\n\nconst UpdateRelatedEntityStatusDisplay: React.FC<\n ServiceDisplayProps\n> = props => {\n const { invoke } = props;\n if (!invoke.data) invoke.data = {};\n const data: UpdateRelatedEntityStatusParams['data'] = invoke.data;\n const relations = data.relations || [];\n return (\n \n {relations.map((relation, index) => {\n const name = relation.name || 'Untitled';\n const { length } = relation.events;\n return (\n
    \n {name}: {length} transition{length !== 1 && 's'}\n
    \n );\n })}\n
    \n );\n};\n\nconst StyledDialogContent = styled(DialogContent)`\n .group-title {\n padding-bottom: 0;\n margin-top: 8px;\n }\n .item {\n padding-bottom: 0;\n }\n .content {\n flex: 1;\n .title {\n margin-bottom: 1px;\n .flex {\n display: inline-flex;\n align-items: center;\n .MuiTypography-root {\n font-weight: bold;\n }\n }\n }\n .status-label {\n padding: 3px 7px;\n margin-left: 6px;\n margin-right: 6px;\n }\n .subtitle {\n margin-bottom: 2px;\n }\n }\n .icon {\n margin-top: 2px;\n }\n .error {\n color: ${props => props.theme.palette.error.main};\n }\n`;\n\nexport interface UpdateRelatedEntityStatusErrorItem {\n task: Task;\n message: string;\n event: RelationEvent;\n relationName: string;\n}\n\nexport interface UpdateRelatedEntityStatusError {\n type: 'updateRelatedEntityStatus';\n data: { items: UpdateRelatedEntityStatusErrorItem[] };\n}\n\nexport const ErrorPluginView: React.FC<\n ErrorMetadataPluginProps\n> = props => {\n const { error, onCancel } = props;\n const { items } = error.metadata.data;\n const [selectedTask, setSelectedTask] = useState();\n const { path, redirect, result, getTaskEntity } =\n useTaskRedirect(selectedTask);\n const { isLoading } = result;\n\n // group items by relationName\n const groups = useMemo(() => {\n const groups: {\n relationName: string;\n items: UpdateRelatedEntityStatusErrorItem[];\n }[] = [];\n for (const item of items) {\n const { relationName } = item;\n const index = groups.findIndex(\n group => group.relationName === relationName\n );\n const group = groups[index] || { items: [], relationName };\n if (index < 0) {\n groups.push(group);\n }\n group.items.push(item);\n }\n return groups;\n }, [items]);\n\n useEffect(() => {\n if (!selectedTask) {\n return;\n }\n const value = path || redirect;\n if (value) {\n window.open(value, '_blank');\n } else {\n getTaskEntity();\n }\n }, [path, redirect, selectedTask, getTaskEntity]);\n\n return (\n \n Transition Error\n \n \n {error.message}\n \n Source: {UpdateRelatedEntityStatusPlugin.name}{' '}\n Plugin\n \n \n {items.length > 0 && (\n \n \n Total Issues: {items.length}\n There are issues found while transitioning this item. You can go\n through each Related Entity below in order to\n resolve the issue and try again.\n \n \n )}\n \n {items.length === 0 && (\n \n No items to display.\n \n )}\n {groups.map((group, groupIndex) => (\n \n \n \n {group.relationName}\n \n \n {group.items.map((item, itemIndex) => (\n setSelectedTask(item.task)}\n />\n ))}\n \n ))}\n \n \n \n \n \n \n );\n};\n\ninterface ErrorItemProps {\n item: UpdateRelatedEntityStatusErrorItem;\n isLoading?: boolean;\n onClick?: () => void;\n}\n\nconst ErrorItem: React.FC = props => {\n const { item, isLoading, onClick } = props;\n const { task, event } = item;\n return (\n \n \n \n \n \n \n
    \n \n {task.key}\n \n \n \n \n \n \n \n
    \n {task.name}\n \n {event.event} ({event.state}\n {' -> '}\n {parseTaskStatus(event.target)})\n \n \n {item.message || 'No error message.'}\n \n
    \n
    \n
    \n );\n};\n\nexport const UpdateRelatedEntityStatusErrorPlugin: ErrorMetadataPlugin =\n {\n type: 'updateRelatedEntityStatus',\n render: ErrorPluginView\n };\n\nexport const UpdateRelatedEntityStatusPlugin: ServicePlugin =\n {\n src: 'updateRelatedEntityStatus',\n name: 'Update Related Entity Status',\n configurator: UpdateRelatedEntityStatusConfigurator,\n display: UpdateRelatedEntityStatusDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as UpdateRelatedEntityStatusParams['data'];\n return !!(\n data &&\n Array.isArray(data.relations) &&\n data.relations.length > 0 &&\n data.relations.every(relation => {\n return (\n relation.taskType &&\n Array.isArray(relation.events) &&\n relation.events.length > 0 &&\n relation.events.every(\n event => event.event && event.state && event.target\n ) &&\n Array.isArray(relation.propertyNames) &&\n relation.propertyNames.length > 0 &&\n relation.propertyNames.every(name => !!name)\n );\n })\n );\n },\n service: (\n state: State,\n params:\n | UpdateRelatedEntityStatusParams\n | UpdateRelatedEntityStatusParams[]\n ) => {\n console.log('updateRelatedEntityStatus params', state, params);\n return true;\n }\n };\n","import React, { useEffect, useMemo, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Grid,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField,\n Typography\n} from '@material-ui/core';\nimport { Add, Close, Edit } from '@material-ui/icons';\nimport { Alert, Autocomplete } from '@material-ui/lab';\nimport {\n ConfirmDialog,\n WrappedTableCell\n} from '@sierralabs/core-ui';\nimport { EntitySchema, getEntityProperties } from '@sierralabs/entity-core';\nimport {\n EntitySchemaPicker,\n EntitySchemaRelationPicker,\n useEntityContext\n} from '@sierralabs/entity-ui';\nimport { State, Workflow, WorkflowInvoke } from '@sierralabs/workflow';\nimport { parseTaskStatus } from '@sierralabs/workflow-core';\nimport {\n ErrorMetadataPlugin,\n ErrorMetadataPluginProps,\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin,\n TaskContext,\n useFindTaskTypeById\n} from '@sierralabs/workflow-ui';\n\nimport TaskTypeSelector from '../../../task-types/components/TaskTypeSelector';\nimport { useGetTaskTypes } from '../../../task-types/TaskType.hooks';\nimport { TaskType } from '../../../task-types/TaskType.interface';\nimport {\n ErrorPluginView,\n UpdateRelatedEntityStatusErrorItem\n} from '../../plugins/services/UpdateRelatedEntityStatusPlugin';\nimport { useFindWorkflowVersionByTaskType } from '../../Workflow.hooks';\nimport { WorkflowVersion } from '../../Workflow.interface';\n\nexport interface UpdateRelatedEntityStatusLegacyParams {\n src: 'updateRelatedEntityStatusLegacy';\n data: {\n entity: { id?: string; table: string }; // entitySchema id and tableName\n relations: {\n name?: string; // user friendly display name\n // join relations; i.e. propertyName[0]->...propertyName[n]\n propertyNames: string[];\n taskType: string; // taskType.name\n events: {\n state: string; // stateNode.name\n event: string; // event.name\n target: string; // transition.target\n }[];\n }[];\n };\n}\n\ntype Relation =\n UpdateRelatedEntityStatusLegacyParams['data']['relations'][number];\ntype RelationEvent = Relation['events'][number];\n\nfunction validateRelation(value: Partial): value is Relation {\n return !!(\n value.taskType &&\n Array.isArray(value.propertyNames) &&\n value.propertyNames.length > 0 &&\n value.propertyNames.every(propertyName => !!propertyName) &&\n Array.isArray(value.events) &&\n value.events.length > 0\n );\n}\n\nconst UpdateRelatedEntityStatusLegacyConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { taskTypeId, onChange } = props;\n const [open, setOpen] = useState(false);\n const [invoke, setInvoke] = useState(props.invoke);\n const [updateIndex, setUpdateIndex] = useState(-1);\n const [removeIndex, setRemoveIndex] = useState(-1);\n const { entities } = useEntityContext();\n if (!invoke.data) invoke.data = {};\n const data: UpdateRelatedEntityStatusLegacyParams['data'] = invoke.data;\n const relations = data.relations || [];\n const { data: taskType, get } = useFindTaskTypeById(taskTypeId || 0);\n // entity schema of current Workflow\n const schema = taskType\n ? entities?.find(schema => {\n return taskType.entityId\n ? schema.id === taskType.entityId\n : schema.tableName === taskType.entityTable;\n })\n : undefined;\n\n const update = (data: UpdateRelatedEntityStatusLegacyParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n const getPropertyDisplay = (relation: Relation | undefined) => {\n if (!relation) {\n return '?';\n }\n const properties = getEntityProperties(\n relation.propertyNames,\n schema,\n entities || []\n );\n const property = properties\n .map(property => {\n return property.relation?.displayName || property.propertyName || '?';\n })\n .join(' -> ');\n const entity = schema?.displayName || '?';\n return `${entity} -> ${property}`;\n };\n\n useEffect(() => {\n get();\n }, [get]);\n\n return (\n <>\n \n \n \n \n Name\n Related Entity\n Transitions\n \n \n \n \n {relations.length === 0 && (\n \n No relations added.\n \n )}\n {relations.map((relation, index) => (\n \n \n {relation.name || (\n \n Untitled\n \n )}\n \n \n {getPropertyDisplay(relation)}\n \n \n {relation.events\n .map(event => {\n const target = parseTaskStatus(event.target);\n return `${event.state} -> ${target}`;\n })\n .join(', ')}\n \n \n setUpdateIndex(index)}\n >\n \n \n setRemoveIndex(index)}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n onClick={() => setOpen(true)}\n >\n Add Relation\n \n \n\n {!schema && (\n \n No schema found for this Workflow.\n \n )}\n\n {schema && (\n -1}\n relation={relations[updateIndex]}\n title={updateIndex > -1 ? 'Update Relation' : 'Add Relation'}\n onCancel={() => {\n setOpen(false);\n setUpdateIndex(-1);\n }}\n onSubmit={relation => {\n data.entity = { id: schema.id, table: schema.tableName };\n if (!data.relations) {\n data.relations = [];\n }\n if (updateIndex > -1) {\n data.relations.splice(updateIndex, 1, relation);\n } else {\n data.relations.push(relation);\n }\n setOpen(false);\n setUpdateIndex(-1);\n update({ ...data });\n }}\n />\n )}\n\n -1}\n title='Remove Relation'\n message={`Are you sure you want to remove ${\n relations[removeIndex]?.name || 'this'\n } relation?`}\n onCancel={() => setRemoveIndex(-1)}\n onConfirm={() => {\n if (!data.relations) {\n data.relations = [];\n }\n if (removeIndex > -1) {\n data.relations.splice(removeIndex, 1);\n }\n setRemoveIndex(-1);\n update({ ...data });\n }}\n />\n \n );\n};\n\nconst StyledBox = styled(Box)`\n .grid-field {\n flex: 1;\n }\n .grid-action {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n }\n`;\n\ninterface AddRelationDialogProps {\n open: boolean;\n title: string;\n schema: EntitySchema;\n relation?: Relation;\n onCancel?: () => void;\n onSubmit?: (relation: Relation) => void;\n}\n\nconst AddRelationDialog: React.FC = props => {\n const {\n open,\n title,\n schema,\n relation: relationProp,\n onCancel,\n onSubmit\n } = props;\n const [relation, setRelation] = useState>(\n () => relationProp || {}\n );\n const [workflowVersion, setWorkflowVersion] = useState();\n const { entities } = useEntityContext();\n const [{ data, isLoading: isFinding }, getTaskTypes] = useGetTaskTypes();\n const {\n workflowVersion: foundWorkflowVersion,\n isLoading,\n findWorkflowVersion\n } = useFindWorkflowVersionByTaskType(relation.taskType || '');\n\n const workflow = useMemo(() => {\n return workflowVersion ? new Workflow(workflowVersion.config) : undefined;\n }, [workflowVersion]);\n\n const taskTypes = useMemo(() => data || [], [data]);\n\n const events = useMemo(() => {\n const allEvents: RelationEvent[] = [];\n for (const state of workflow?.stateNode.states || []) {\n for (const event of state.events || []) {\n for (const transition of event.transitions || []) {\n allEvents.push({\n event: event.name || '',\n state: state.name,\n target: transition.target\n });\n }\n }\n }\n return allEvents;\n }, [workflow]);\n\n const selectedEvents = useMemo(() => {\n const relationEvents = relation.events || [];\n return events.filter(event => {\n return relationEvents.some(relationEvent => {\n return (\n relationEvent.state === event.state &&\n relationEvent.event === event.event &&\n relationEvent.target === event.target\n );\n });\n });\n }, [events, relation]);\n\n const properties = useMemo(() => {\n return getEntityProperties(relation.propertyNames, schema, entities || []);\n }, [relation, schema, entities]);\n\n // get last property.relation\n const propertyRelation = useMemo(() => {\n return properties[properties.length - 1]?.relationSchema;\n }, [properties]);\n const entityName = propertyRelation?.name;\n\n const validRelation = validateRelation(relation) ? relation : undefined;\n\n useEffect(() => {\n if (entityName) {\n getTaskTypes({ targetEntity: entityName });\n }\n }, [entityName, getTaskTypes]);\n\n useEffect(() => {\n relation.taskType ? findWorkflowVersion() : setWorkflowVersion(undefined);\n }, [relation.taskType, findWorkflowVersion]);\n\n useEffect(() => {\n setWorkflowVersion(foundWorkflowVersion);\n }, [foundWorkflowVersion]);\n\n // clear state\n useEffect(() => {\n if (!open) {\n setRelation({});\n setWorkflowVersion(undefined);\n }\n }, [open]);\n\n useEffect(() => {\n relationProp && setRelation(relationProp);\n }, [relationProp]);\n\n return (\n \n {title}\n \n \n {\n setRelation(relation => {\n return { ...relation, name: event.target.value };\n });\n }}\n />\n \n \n \n \n {properties.map((property, index) => (\n \n \n \n {\n const propertyName = relation?.propertyName;\n setRelation(relation => {\n relation = { ...relation };\n if (!relation.propertyNames) {\n relation.propertyNames = [];\n }\n relation.propertyNames[index] = propertyName || '';\n if (!propertyName) {\n relation.events = [];\n relation.taskType = undefined;\n // unset all subsequent relations\n relation.propertyNames.splice(index + 1);\n }\n return relation;\n });\n }}\n />\n \n {index > 0 && (\n \n {\n setRelation(relation => {\n relation = {\n ...relation,\n events: [],\n taskType: undefined\n };\n relation.propertyNames?.splice(index);\n return relation;\n });\n }}\n >\n \n \n \n )}\n \n \n ))}\n \n }\n // disabled if no selected for last property\n disabled={!properties[properties.length - 1].propertyName}\n onClick={() => {\n setRelation(relation => {\n relation = {\n ...relation,\n events: [],\n taskType: undefined\n };\n if (!relation.propertyNames) {\n relation.propertyNames = [];\n }\n relation.propertyNames.push('');\n return relation;\n });\n }}\n >\n Add Relation\n \n \n \n {\n // add display name if not set\n const taskTypeLabel = taskType\n ? `${taskType.label} (${taskType.prefix})`\n : '';\n setRelation(relation => {\n relation = {\n ...relation,\n taskType: taskType?.name,\n name: relation.name || taskTypeLabel\n };\n if (!relation.taskType) {\n relation.events = [];\n }\n return relation;\n });\n }}\n />\n \n \n {\n const { event, state, target } = option;\n return `${event} (${state} -> ${parseTaskStatus(target)})`;\n }}\n onChange={(_, events) => {\n setRelation(relation => ({ ...relation, events }));\n }}\n renderInput={params => (\n \n )}\n />\n \n {workflow && (\n \n \n The event transitions will trigger for the\n related entities. The related entities must be in a status that\n can transition to the target status.\n \n \n )}\n \n \n \n {\n if (validRelation) {\n onSubmit?.(validRelation);\n }\n }}\n >\n Save\n \n \n \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n padding-left: 4px;\n text-indent: -4px;\n`;\n\nconst UpdateRelatedEntityStatusLegacyDisplay: React.FC<\n ServiceDisplayProps\n> = props => {\n const { invoke } = props;\n if (!invoke.data) invoke.data = {};\n const data: UpdateRelatedEntityStatusLegacyParams['data'] = invoke.data;\n const relations = data.relations || [];\n return (\n \n {relations.map((relation, index) => {\n const name = relation.name || 'Untitled';\n const { length } = relation.events;\n return (\n
    \n {name}: {length} transition{length !== 1 && 's'}\n
    \n );\n })}\n
    \n );\n};\n\nexport interface UpdateRelatedEntityStatusLegacyError {\n type: 'updateRelatedEntityStatusLegacy';\n data: { items: UpdateRelatedEntityStatusErrorItem[] };\n}\n\nexport const UpdateRelatedEntityStatusLegacyErrorPlugin: ErrorMetadataPlugin =\n {\n type: 'updateRelatedEntityStatusLegacy',\n render: ErrorPluginView as unknown as React.FC<\n ErrorMetadataPluginProps\n >\n };\n\nexport const UpdateRelatedEntityStatusLegacyPlugin: ServicePlugin =\n {\n src: 'updateRelatedEntityStatusLegacy',\n name: 'Update Related Entity Status (legacy)',\n configurator: UpdateRelatedEntityStatusLegacyConfigurator,\n display: UpdateRelatedEntityStatusLegacyDisplay,\n error: UpdateRelatedEntityStatusLegacyErrorPlugin,\n validate: (condition: Partial) => {\n const data =\n condition.data as UpdateRelatedEntityStatusLegacyParams['data'];\n return !!(\n data &&\n data.entity &&\n (data.entity.id || data.entity.table) &&\n Array.isArray(data.relations) &&\n data.relations.length > 0 &&\n data.relations.every(relation => {\n return (\n relation.taskType &&\n Array.isArray(relation.events) &&\n relation.events.length > 0 &&\n relation.events.every(\n event => event.event && event.state && event.target\n ) &&\n Array.isArray(relation.propertyNames) &&\n relation.propertyNames.length > 0 &&\n relation.propertyNames.every(name => !!name)\n );\n })\n );\n },\n service: (\n state: State,\n params:\n | UpdateRelatedEntityStatusLegacyParams\n | UpdateRelatedEntityStatusLegacyParams[]\n ) => {\n console.log('updateRelatedEntityStatusLegacy params', state, params);\n return true;\n }\n };\n","import React, { useEffect, useRef, useState } from 'react';\nimport { TextField, TextFieldProps, Typography } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { useDebounce } from '../../../common/Debounce.hooks';\nimport { useFindWorkflows } from '../Workflow.hooks';\nimport { WorkflowDto } from '../Workflow.interface';\n\nexport interface WorkflowSelectorProps {\n value?: number;\n disabled?: boolean;\n className?: string;\n relationTarget?: string;\n textFieldProps?: Omit;\n onChange?: (value: WorkflowDto | undefined) => void;\n}\n\nconst WorkflowSelector: React.FC = (\n props: WorkflowSelectorProps\n) => {\n const {\n value: workflowId,\n disabled,\n className,\n relationTarget,\n textFieldProps,\n onChange\n } = props;\n const onChangeRef = useRef(onChange);\n const didAutoSelectRef = useRef(false);\n const previousWorkflowId = useRef(workflowId);\n const [search, setSearch] = useState('');\n const [selected, setSelected] = useState();\n const [workflows, setWorkflows] = useState([]);\n const debouncedSearch = useDebounce(search, 300);\n const { workflowList, isLoading, loadingError, findWorkflows } =\n useFindWorkflows();\n\n useEffect(() => {\n onChangeRef.current = onChange;\n }, [onChange]);\n\n useEffect(() => {\n findWorkflows({ search: debouncedSearch || '' });\n }, [debouncedSearch, findWorkflows]);\n\n useEffect(() => {\n workflowList?.data && setWorkflows(workflowList.data);\n }, [workflowList]);\n\n // if workflowId changes, reselect workflow\n useEffect(() => {\n if (previousWorkflowId.current !== workflowId) {\n setSelected(undefined);\n previousWorkflowId.current = workflowId;\n }\n }, [workflowId]);\n\n // auto select workflow based on relationTarget\n useEffect(() => {\n if (!relationTarget) {\n didAutoSelectRef.current = false;\n return;\n }\n if (didAutoSelectRef.current) {\n return;\n }\n const workflow = workflows.find(\n workflow => workflow.taskType?.targetEntity === relationTarget\n );\n if (workflow) {\n didAutoSelectRef.current = true;\n onChangeRef.current?.(workflow);\n }\n }, [workflows, relationTarget]);\n\n useEffect(() => {\n // if no selected workflow yet\n if (selected) {\n return;\n }\n const selectedWorkflow: WorkflowDto | undefined = workflows.find(\n (workflowDto: WorkflowDto) => workflowDto.id === workflowId\n );\n if (selectedWorkflow) {\n setSelected(selectedWorkflow);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [workflows, workflowId]);\n\n return (\n option.name}\n getOptionSelected={(option, value) => option.id === value?.id}\n onInputChange={(_, value) => setSearch(value || '')}\n onChange={(_, value) => onChange?.(value || undefined)}\n renderOption={option => {\n const secondary = option.taskTypeName || option.entity;\n return (\n \n {option.name}\n {secondary && (\n \n {secondary}\n \n )}\n \n );\n }}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default WorkflowSelector;\n","import { startCase } from 'lodash';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Checkbox,\n CircularProgress,\n Collapse,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n FormControlLabel,\n FormHelperText,\n Grid,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField,\n Tooltip,\n Typography\n} from '@material-ui/core';\nimport {\n Add as AddIcon,\n CheckCircleOutline as CheckCircleOutlineIcon,\n Close as CloseIcon,\n Edit as EditIcon,\n HighlightOff as HighlightOffIcon,\n OfflinePinOutlined as OfflinePinOutlinedIcon\n} from '@material-ui/icons';\nimport { Alert, Autocomplete } from '@material-ui/lab';\nimport {\n State,\n StateTransitionCondition,\n WorkflowParams\n} from '@sierralabs/workflow';\n\nimport { FetchError } from '../../../../common/api/api';\nimport ConfirmDialog from '../../../../common/dialogs/ConfirmDialog';\nimport WrappedTableCell from '../../../../common/WrappedTableCell';\nimport EntitySchemaSelector from '../../../entity/components/EntitySchemaSelector';\nimport EntitySchemaRelationSelector from '../../../entity/components/EntitySchemaRelationSelector';\nimport { useEntityContext } from '../../../entity/Entity.context';\nimport { useCheckDependencies } from '../../../tasks/Task.hooks';\nimport { CheckDependenciesResult } from '../../../tasks/Task.interface';\nimport { TaskContext } from '../../../tasks/Task.machine';\nimport {\n displayEntityProperties,\n getEntityProperties\n} from '../../../entity/Entity.hooks';\nimport { EntitySchema } from '../../../entity/types';\nimport WorkflowSelector from '../../components/WorkflowSelector';\nimport { useWorkflowContext } from '../../Workflow.context';\nimport { useWorkflowStatuses } from '../../Workflow.hooks';\nimport {\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin\n} from '../TransitionConditionPlugin';\n\nfunction displayStatuses(\n statuses: string[] = [],\n wrap = true,\n defaultValue = 'Any'\n) {\n const allStatuses = statuses.join(', ');\n const status = wrap && statuses.length > 1 ? `(${allStatuses})` : allStatuses;\n return status || defaultValue;\n}\n\nexport interface EntityDependency {\n name?: string;\n workflowId: number;\n propertyName: string; // relation.propertyName\n // join relations; i.e. propertyName->relations[0]->...relations[n]\n relations: string[];\n statuses: string[]; // workflow.status\n // allow no items from this dependency\n optional?: boolean;\n}\n\nexport interface CheckDependenciesParams extends WorkflowParams {\n entityName: string; // entitySchema.name\n dependencies?: EntityDependency[];\n}\n\nconst CheckDependenciesConfigurator: React.FC<\n TransitionConditionConfiguratorProps\n> = props => {\n const { taskType, condition, onChange } = props;\n const [open, setOpen] = useState(false);\n const [updateIndex, setUpdateIndex] = useState(-1);\n const [removeIndex, setRemoveIndex] = useState(-1);\n if (!condition.params) {\n condition.params = {};\n }\n const params = condition.params as CheckDependenciesParams;\n const { schemas } = useEntityContext();\n // entity schema of current Workflow\n const schema = taskType\n ? schemas.find(schema => schema.name === taskType)\n : undefined;\n\n const getDisplayName = (\n dependency: EntityDependency | undefined,\n includeStatus = false\n ) => {\n if (!dependency) {\n return '?';\n }\n const properties = getEntityProperties(\n [dependency.propertyName].concat(dependency.relations || []),\n schema,\n schemas\n );\n const property = properties\n .map(property => {\n return property.relation?.displayName || property.propertyName || '?';\n })\n .join(' -> ');\n const entity = schema?.displayName || '?';\n const displayName = `${entity} -> ${property}`;\n const status = displayStatuses(dependency.statuses);\n return includeStatus ? `${displayName} -> ${status}` : displayName;\n };\n\n return (\n <>\n \n \n \n \n Name\n Dependency\n Required State/s\n \n \n \n \n {!params.dependencies?.length && (\n \n No dependencies.\n \n )}\n {params.dependencies?.map((dependency, index) => {\n const relations = [\n dependency.propertyName,\n ...(dependency.relations || [])\n ];\n const propertyName = relations[relations.length - 1];\n return (\n \n \n {dependency.name || startCase(propertyName)}\n \n \n {getDisplayName(dependency)}\n {dependency.optional && (\n <>\n {' '}\n \n (optional)\n \n \n )}\n \n \n {displayStatuses(dependency.statuses, false)}\n \n \n setUpdateIndex(index)}\n >\n \n \n setRemoveIndex(index)}\n >\n \n \n \n \n );\n })}\n \n
    \n
    \n\n \n }\n onClick={() => setOpen(true)}\n >\n Add Dependency\n \n \n\n \n \n No schema found for this Workflow.\n \n \n\n {schema && (\n -1}\n dependency={params.dependencies?.[updateIndex]}\n title={updateIndex > -1 ? 'Update Dependency' : 'Add Dependency'}\n onCancel={() => {\n setOpen(false);\n setUpdateIndex(-1);\n }}\n onSubmit={dependency => {\n params.entityName = schema.name;\n if (!params.dependencies) {\n params.dependencies = [];\n }\n if (updateIndex > -1) {\n params.dependencies.splice(updateIndex, 1, dependency);\n } else {\n params.dependencies.push(dependency);\n }\n setOpen(false);\n setUpdateIndex(-1);\n onChange?.({ ...condition });\n }}\n />\n )}\n\n -1}\n title='Remove Dependency'\n message={`Are you sure you want to remove ${getDisplayName(\n params.dependencies?.[removeIndex],\n true\n )} dependency?`}\n onCancel={() => setRemoveIndex(-1)}\n onConfirm={() => {\n if (!params.dependencies) {\n params.dependencies = [];\n }\n if (removeIndex > -1) {\n params.dependencies.splice(removeIndex, 1);\n }\n setRemoveIndex(-1);\n onChange?.({ ...condition });\n }}\n />\n \n );\n};\n\nconst StyledBox = styled(Box)`\n .grid-field {\n flex: 1;\n }\n .grid-action {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n }\n`;\n\nexport interface CheckDependenciesEntityDialogProps {\n open: boolean;\n title: string;\n schema: EntitySchema;\n dependency?: EntityDependency;\n onCancel?: () => void;\n onSubmit?: (dependency: EntityDependency) => void;\n}\n\nexport const CheckDependenciesEntityDialog: React.FC<\n CheckDependenciesEntityDialogProps\n> = props => {\n const {\n open,\n title,\n schema,\n dependency: dependencyProp,\n onCancel,\n onSubmit\n } = props;\n const [dependency, setDependency] = useState>(\n dependencyProp || { relations: [], statuses: [] }\n );\n const { schemas } = useEntityContext();\n const { getWorkflow } = useWorkflowContext();\n const workflow = useMemo(() => {\n return dependency.workflowId\n ? getWorkflow(dependency.workflowId)\n : undefined;\n }, [dependency.workflowId, getWorkflow]);\n const statuses = useWorkflowStatuses(workflow);\n const isValidStatus = useMemo(() => {\n return (\n Array.isArray(dependency.statuses) &&\n // allow optional statuses\n // dependency.statuses.length > 0 &&\n dependency.statuses.every(status => statuses.includes(status)) &&\n (!dependency.relations ||\n dependency.relations.every(relation => !!relation))\n );\n }, [dependency, statuses]);\n\n const properties = useMemo(() => {\n return getEntityProperties(\n [dependency.propertyName].concat(dependency.relations || []),\n schema,\n schemas\n );\n }, [dependency, schema, schemas]);\n\n // get last property.relation\n const relation = useMemo(() => {\n return properties[properties.length - 1]?.relation;\n }, [properties]);\n\n const entityDependency: EntityDependency | undefined = useMemo(() => {\n const {\n name,\n statuses,\n propertyName,\n workflowId,\n optional,\n relations = []\n } = dependency;\n if (isValidStatus && statuses && propertyName && workflowId) {\n return { name, statuses, propertyName, workflowId, relations, optional };\n }\n }, [dependency, isValidStatus]);\n\n // clear state\n useEffect(() => {\n if (!open) {\n setDependency({ relations: [], statuses: [] });\n }\n }, [open]);\n\n useEffect(() => {\n dependencyProp && setDependency(dependencyProp);\n }, [dependencyProp]);\n\n return (\n \n {title}\n \n \n {\n setDependency(dependency => {\n return { ...dependency, name: event.target.value };\n });\n }}\n />\n \n \n \n \n {properties.map((property, index) => (\n \n \n \n {\n const propertyName = relation?.propertyName;\n setDependency(dependency => {\n dependency = { ...dependency };\n if (!dependency.relations) {\n dependency.relations = [];\n }\n if (index === 0) {\n dependency.propertyName = propertyName;\n } else {\n dependency.relations[index - 1] = propertyName || '';\n }\n if (!propertyName) {\n dependency.statuses = [];\n dependency.workflowId = undefined;\n // unset all subsequent relations\n dependency.relations.splice(index);\n }\n return dependency;\n });\n }}\n />\n \n {index > 0 && (\n \n {\n setDependency(dependency => {\n dependency = {\n ...dependency,\n statuses: [],\n workflowId: undefined\n };\n dependency.relations?.splice(index - 1);\n return dependency;\n });\n }}\n >\n \n \n \n )}\n \n \n ))}\n \n }\n // disabled if no selected for last property\n disabled={!properties[properties.length - 1].propertyName}\n onClick={() => {\n setDependency(dependency => {\n dependency = {\n ...dependency,\n statuses: [],\n workflowId: undefined\n };\n if (!dependency.relations) {\n dependency.relations = [];\n }\n dependency.relations.push('');\n return dependency;\n });\n }}\n >\n Add Relation\n \n \n \n {\n setDependency(dependency => {\n dependency = { ...dependency, workflowId: value?.id };\n if (!dependency.workflowId) {\n dependency.statuses = [];\n }\n return dependency;\n });\n }}\n />\n \n \n {\n setDependency(dependency => ({ ...dependency, statuses }));\n }}\n renderInput={params => {\n const error =\n !isValidStatus &&\n Array.isArray(dependency.statuses) &&\n dependency.statuses.length > 0;\n return (\n \n );\n }}\n />\n \n \n {\n setDependency(dependency => {\n return { ...dependency, optional: checked };\n });\n }}\n />\n }\n />\n \n When checked, optional dependencies will allow the\n entity to transition when there are no dependencies to check. (e.g.\n No linked documents will allow transition)\n \n \n\n \n \n \n This condition will transition the entity (\n {schema.displayName}) when its dependencies (\n {displayEntityProperties(properties)}) are in the{' '}\n {workflow?.stateNode.name || '?'} {'->'}{' '}\n {displayStatuses(entityDependency?.statuses)}{' '}\n {(entityDependency?.statuses?.length || 0) > 1\n ? `states`\n : 'state'}\n .\n \n \n \n \n \n \n {\n if (entityDependency) {\n onSubmit?.(entityDependency);\n }\n }}\n >\n Save\n \n \n \n );\n};\n\nconst CheckDependenciesDisplay: React.FC<\n TransitionConditionDisplayProps\n> = () => {\n return <>Check Dependencies;\n};\n\nconst StyledTableCell = styled(TableCell)`\n .MuiSvgIcon-root {\n &.success {\n color: ${props => props.theme.palette.success.main};\n }\n &.info {\n color: ${props => props.theme.palette.info.main};\n }\n &.error {\n color: ${props => props.theme.palette.error.main};\n }\n &.warn {\n color: ${props => props.theme.palette.warning.main};\n }\n }\n`;\n\ninterface CheckDependenciesDialogProps {\n state: State;\n params: CheckDependenciesParams;\n onCancel?: () => void;\n onConfirm?: () => void;\n}\n\nconst CheckDependenciesDialog: React.FC<\n CheckDependenciesDialogProps\n> = props => {\n const { state, params } = props;\n const { data, isLoading, error, checkDependencies } = useCheckDependencies(\n state.context.task.id || 0\n );\n\n useEffect(() => {\n checkDependencies(params);\n }, [params, checkDependencies]);\n\n return (\n \n );\n};\n\nexport interface CheckDependenciesDialogViewProps {\n params: { dependencies?: { statuses: string[]; [key: string]: any }[] };\n success: boolean;\n isLoading?: boolean;\n error?: FetchError;\n dependencies: CheckDependenciesResult['dependencies'] | undefined;\n onCancel?: () => void;\n onConfirm?: () => void;\n}\n\nexport const CheckDependenciesDialogView: React.FC<\n CheckDependenciesDialogViewProps\n> = props => {\n const {\n params,\n success,\n isLoading,\n error,\n dependencies,\n onCancel,\n onConfirm\n } = props;\n\n const getLabelAndIcon = (\n result: CheckDependenciesResult['dependencies'][number]\n ) => {\n const [label, color, StatusIcon] =\n result.none && !(result.optional && result.total === 0)\n ? ['None', 'error', HighlightOffIcon]\n : result.partial\n ? ['Partial', 'warn', OfflinePinOutlinedIcon]\n : result.success\n ? ['All', 'success', CheckCircleOutlineIcon]\n : ['None (optional)', 'info', CheckCircleOutlineIcon];\n return { label, icon: };\n };\n\n return (\n \n \n {isLoading ? 'Checking Dependencies' : 'Check Dependencies'}\n \n \n {isLoading && (\n \n \n \n )}\n {dependencies && !isLoading && (\n <>\n \n \n All dependencies need to be in their{' '}\n Required State/s state to be able to transition\n this item.\n \n \n \n \n \n \n \n Dependency\n Required State/s\n Valid Items\n Status\n \n \n \n {dependencies.map((result, index) => {\n const dependency = params.dependencies?.[index];\n const { label, icon } = getLabelAndIcon(result);\n return (\n \n \n {result.name}\n {result.optional && (\n <>\n {' '}\n \n (optional)\n \n \n )}\n \n \n {displayStatuses(dependency?.statuses, false)}\n \n \n {result.valid} of{' '}\n {result.total}\n \n \n \n {icon}\n \n \n \n );\n })}\n \n
    \n
    \n
    \n \n )}\n\n \n \n All dependency checks passed!\n \n \n\n \n \n \n {error?.message || 'An error occurred.'}\n \n \n \n
    \n \n \n {success && (\n \n Confirm\n \n )}\n \n
    \n );\n};\n\nexport const CheckDependenciesPlugin: TransitionConditionPlugin =\n {\n type: 'check-dependencies',\n label: 'Check Dependencies',\n configurator: CheckDependenciesConfigurator,\n display: CheckDependenciesDisplay,\n validate: (condition: Partial) => {\n const params = condition.params as CheckDependenciesParams;\n return (\n !!params?.entityName &&\n Array.isArray(params.dependencies) &&\n params.dependencies.length > 0\n );\n },\n guard: (state: State, params: WorkflowParams, render) => {\n console.log('guards: check-dependencies', state, params);\n if (\n state.isSimulation ||\n state.context.skipTransitionConditionPlugins?.includes(\n CheckDependenciesPlugin.type\n )\n ) {\n return true;\n }\n return new Promise(resolve => {\n render?.(\n {\n render?.(undefined);\n resolve(false);\n }}\n onConfirm={() => {\n render?.(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n };\n","import { startCase } from 'lodash';\nimport React, { Fragment, useEffect, useMemo, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Checkbox,\n Collapse,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControlLabel,\n FormHelperText,\n Grid,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField,\n Typography\n} from '@material-ui/core';\nimport { Add, Close, Edit } from '@material-ui/icons';\nimport { Alert, Autocomplete } from '@material-ui/lab';\nimport { ConfirmDialog, WrappedTableCell } from '@sierralabs/core-ui';\nimport {\n EntityProperty,\n EntitySchema,\n getEntityProperties\n} from '@sierralabs/entity-core';\nimport {\n EntitySchemaPicker,\n EntitySchemaRelationPicker,\n useEntityContext\n} from '@sierralabs/entity-ui';\nimport {\n State,\n StateTransitionCondition,\n Workflow,\n WorkflowParams\n} from '@sierralabs/workflow';\nimport {\n TaskContext,\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin,\n useFindTaskTypeById\n} from '@sierralabs/workflow-ui';\n\nimport { useGetTaskTypes } from '../../../task-types/TaskType.hooks';\nimport TaskTypeSelector from '../../../task-types/components/TaskTypeSelector';\nimport { TaskType } from '../../../task-types/TaskType.interface';\nimport { useCheckDependenciesLegacy } from '../../../tasks/Task.hooks';\nimport { CheckDependenciesDialogView } from '../../plugins/transition-conditions/CheckDependenciesPlugin';\nimport {\n useFindWorkflowVersionByTaskType,\n useWorkflowStatuses\n} from '../../Workflow.hooks';\nimport { WorkflowVersion } from '../../Workflow.interface';\n\nexport interface CheckDependenciesLegacyItem {\n name?: string;\n taskType: string; // taskType.name\n propertyName: string; // relation.propertyName\n // join relations; i.e. propertyName->relations[0]->...relations[n]\n relations: string[];\n statuses: string[]; // workflow.status\n // allow no items from this dependency\n optional?: boolean;\n}\n\nexport interface CheckDependenciesLegacyParams {\n entity: { id?: string; table: string }; // entitySchema id and tableName\n dependencies?: CheckDependenciesLegacyItem[];\n}\n\nfunction displayStatuses(\n statuses: string[] = [],\n wrap = true,\n defaultValue = 'Any'\n) {\n const allStatuses = statuses.join(', ');\n const status = wrap && statuses.length > 1 ? `(${allStatuses})` : allStatuses;\n return status || defaultValue;\n}\n\nfunction displayEntityProperties(properties: EntityProperty[]) {\n return properties.map((property, index) => {\n return (\n \n {property.relation?.displayName || '?'}\n {index < properties.length - 1 && ' -> '}\n \n );\n });\n}\n\nconst CheckDependenciesLegacyConfigurator: React.FC<\n TransitionConditionConfiguratorProps\n> = props => {\n const { taskTypeId, condition, onChange } = props;\n const [open, setOpen] = useState(false);\n const [updateIndex, setUpdateIndex] = useState(-1);\n const [removeIndex, setRemoveIndex] = useState(-1);\n if (!condition.params) {\n condition.params = {};\n }\n const params = condition.params as CheckDependenciesLegacyParams;\n const { entities } = useEntityContext();\n const { data: taskType, get } = useFindTaskTypeById(taskTypeId || 0);\n // entity schema of current Workflow\n const schema = taskType\n ? entities?.find(schema => {\n return taskType.entityId\n ? schema.id === taskType.entityId\n : schema.tableName === taskType.entityTable;\n })\n : undefined;\n\n const getDisplayName = (\n dependency: CheckDependenciesLegacyItem | undefined,\n includeStatus = false\n ) => {\n if (!dependency) {\n return '?';\n }\n const properties = getEntityProperties(\n [dependency.propertyName].concat(dependency.relations || []),\n schema,\n entities || []\n );\n const property = properties\n .map(property => {\n return property.relation?.displayName || property.propertyName || '?';\n })\n .join(' -> ');\n const entity = schema?.displayName || '?';\n const displayName = `${entity} -> ${property}`;\n const status = displayStatuses(dependency.statuses);\n return includeStatus ? `${displayName} -> ${status}` : displayName;\n };\n\n useEffect(() => {\n get();\n }, [get]);\n\n return (\n <>\n \n \n \n \n Name\n Dependency\n Required State/s\n \n \n \n \n {!params.dependencies?.length && (\n \n No dependencies.\n \n )}\n {params.dependencies?.map((dependency, index) => {\n const relations = [\n dependency.propertyName,\n ...(dependency.relations || [])\n ];\n const propertyName = relations[relations.length - 1];\n return (\n \n \n {dependency.name || startCase(propertyName)}\n \n \n {getDisplayName(dependency)}\n {dependency.optional && (\n <>\n {' '}\n \n (optional)\n \n \n )}\n \n \n {displayStatuses(dependency.statuses, false)}\n \n \n setUpdateIndex(index)}\n >\n \n \n setRemoveIndex(index)}\n >\n \n \n \n \n );\n })}\n \n
    \n
    \n\n \n }\n onClick={() => setOpen(true)}\n >\n Add Dependency\n \n \n\n {!schema && (\n \n No schema found for this Workflow.\n \n )}\n\n {schema && (\n -1}\n dependency={params.dependencies?.[updateIndex]}\n title={updateIndex > -1 ? 'Update Dependency' : 'Add Dependency'}\n onCancel={() => {\n setOpen(false);\n setUpdateIndex(-1);\n }}\n onSubmit={dependency => {\n params.entity = { id: schema.id, table: schema.tableName };\n if (!params.dependencies) {\n params.dependencies = [];\n }\n if (updateIndex > -1) {\n params.dependencies.splice(updateIndex, 1, dependency);\n } else {\n params.dependencies.push(dependency);\n }\n setOpen(false);\n setUpdateIndex(-1);\n onChange?.({ ...condition });\n }}\n />\n )}\n\n -1}\n title='Remove Dependency'\n message={`Are you sure you want to remove ${getDisplayName(\n params.dependencies?.[removeIndex],\n true\n )} dependency?`}\n onCancel={() => setRemoveIndex(-1)}\n onConfirm={() => {\n if (!params.dependencies) {\n params.dependencies = [];\n }\n if (removeIndex > -1) {\n params.dependencies.splice(removeIndex, 1);\n }\n setRemoveIndex(-1);\n onChange?.({ ...condition });\n }}\n />\n \n );\n};\n\nconst StyledBox = styled(Box)`\n .grid-field {\n flex: 1;\n }\n .grid-action {\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n }\n`;\n\nexport interface CheckDependenciesLegacyEntityDialogProps {\n open: boolean;\n title: string;\n schema: EntitySchema;\n dependency?: CheckDependenciesLegacyItem;\n onCancel?: () => void;\n onSubmit?: (dependency: CheckDependenciesLegacyItem) => void;\n}\n\nexport const CheckDependenciesEntityDialog: React.FC<\n CheckDependenciesLegacyEntityDialogProps\n> = props => {\n const {\n open,\n title,\n schema,\n dependency: dependencyProp,\n onCancel,\n onSubmit\n } = props;\n const [dependency, setDependency] = useState<\n Partial\n >(dependencyProp || { relations: [], statuses: [] });\n const [workflowVersion, setWorkflowVersion] = useState();\n const { entities } = useEntityContext();\n const [{ data, isLoading: isFinding }, getTaskTypes] = useGetTaskTypes();\n const {\n workflowVersion: foundWorkflowVersion,\n isLoading,\n findWorkflowVersion\n } = useFindWorkflowVersionByTaskType(dependency.taskType || '');\n\n const workflow = useMemo(() => {\n return workflowVersion ? new Workflow(workflowVersion.config) : undefined;\n }, [workflowVersion]);\n const statuses = useWorkflowStatuses(workflow);\n\n const taskTypes = useMemo(() => data || [], [data]);\n const isValidStatus = useMemo(() => {\n return (\n Array.isArray(dependency.statuses) &&\n // allow optional statuses\n // dependency.statuses.length > 0 &&\n dependency.statuses.every(status => statuses.includes(status)) &&\n (!dependency.relations ||\n dependency.relations.every(relation => !!relation))\n );\n }, [dependency, statuses]);\n\n const properties = useMemo(() => {\n return getEntityProperties(\n [dependency.propertyName].concat(dependency.relations || []),\n schema,\n entities || []\n );\n }, [dependency, schema, entities]);\n\n // get last property.relation\n const relationSchema = useMemo(() => {\n return properties[properties.length - 1]?.relationSchema;\n }, [properties]);\n\n const entityName = relationSchema?.name;\n\n const entityDependency: CheckDependenciesLegacyItem | undefined =\n useMemo(() => {\n const {\n name,\n statuses,\n taskType,\n propertyName,\n optional,\n relations = []\n } = dependency;\n if (isValidStatus && statuses && taskType && propertyName) {\n return { name, statuses, taskType, propertyName, relations, optional };\n }\n }, [dependency, isValidStatus]);\n\n useEffect(() => {\n if (entityName) {\n getTaskTypes({ targetEntity: entityName });\n }\n }, [entityName, getTaskTypes]);\n\n useEffect(() => {\n dependency.taskType ? findWorkflowVersion() : setWorkflowVersion(undefined);\n }, [dependency.taskType, findWorkflowVersion]);\n\n useEffect(() => {\n setWorkflowVersion(foundWorkflowVersion);\n }, [foundWorkflowVersion]);\n\n // clear state\n useEffect(() => {\n if (!open) {\n setWorkflowVersion(undefined);\n setDependency({ relations: [], statuses: [] });\n }\n }, [open]);\n\n useEffect(() => {\n dependencyProp && setDependency(dependencyProp);\n }, [dependencyProp]);\n\n return (\n \n {title}\n \n \n {\n setDependency(dependency => {\n return { ...dependency, name: event.target.value };\n });\n }}\n />\n \n \n \n \n {properties.map((property, index) => (\n \n \n \n {\n const propertyName = relation?.propertyName;\n setDependency(dependency => {\n dependency = { ...dependency };\n if (!dependency.relations) {\n dependency.relations = [];\n }\n if (index === 0) {\n dependency.propertyName = propertyName;\n } else {\n dependency.relations[index - 1] = propertyName || '';\n }\n if (!propertyName) {\n dependency.statuses = [];\n dependency.taskType = undefined;\n // unset all subsequent relations\n dependency.relations.splice(index);\n }\n return dependency;\n });\n }}\n />\n \n {index > 0 && (\n \n {\n setDependency(dependency => {\n dependency = {\n ...dependency,\n statuses: [],\n taskType: undefined\n };\n dependency.relations?.splice(index - 1);\n return dependency;\n });\n }}\n >\n \n \n \n )}\n \n \n ))}\n \n }\n // disabled if no selected for last property\n disabled={!properties[properties.length - 1].propertyName}\n onClick={() => {\n setDependency(dependency => {\n dependency = {\n ...dependency,\n statuses: [],\n taskType: undefined\n };\n if (!dependency.relations) {\n dependency.relations = [];\n }\n dependency.relations.push('');\n return dependency;\n });\n }}\n >\n Add Relation\n \n \n \n {\n // add display name if not set\n const taskTypeLabel = taskType\n ? `${taskType.label} (${taskType.prefix})`\n : '';\n setDependency(dependency => {\n dependency = {\n ...dependency,\n taskType: taskType?.name,\n name: dependency.name || taskTypeLabel\n };\n if (!dependency.taskType) {\n dependency.statuses = [];\n }\n return dependency;\n });\n }}\n />\n \n \n {\n setDependency(dependency => ({ ...dependency, statuses }));\n }}\n renderInput={params => {\n const error =\n !isValidStatus &&\n Array.isArray(dependency.statuses) &&\n dependency.statuses.length > 0;\n return (\n \n );\n }}\n />\n \n \n {\n setDependency(dependency => {\n return { ...dependency, optional: checked };\n });\n }}\n />\n }\n />\n \n When checked, optional dependencies will allow the\n entity to transition when there are no dependencies to check. (e.g.\n No linked documents will allow transition)\n \n \n\n \n \n \n This condition will transition the entity (\n {schema.displayName}) when its dependencies (\n {displayEntityProperties(properties)}) are in the{' '}\n {workflow?.stateNode.name || '?'} {'->'}{' '}\n {displayStatuses(entityDependency?.statuses)}{' '}\n {(entityDependency?.statuses?.length || 0) > 1\n ? `states`\n : 'state'}\n .\n \n \n \n \n \n \n {\n if (entityDependency) {\n onSubmit?.(entityDependency);\n }\n }}\n >\n Save\n \n \n \n );\n};\n\nconst CheckDependenciesLegacyDisplay: React.FC<\n TransitionConditionDisplayProps\n> = () => {\n return <>Check Dependencies (legacy);\n};\n\ninterface CheckDependenciesLegacyDialogProps {\n state: State;\n params: CheckDependenciesLegacyParams;\n onCancel?: () => void;\n onConfirm?: () => void;\n}\n\nconst CheckDependenciesLegacyDialog: React.FC<\n CheckDependenciesLegacyDialogProps\n> = props => {\n const { state, params } = props;\n const { data, isLoading, error, checkDependencies } =\n useCheckDependenciesLegacy(state.context.task.id || 0);\n\n useEffect(() => {\n checkDependencies(params);\n }, [params, checkDependencies]);\n\n return (\n \n );\n};\n\nexport const CheckDependenciesLegacyPlugin: TransitionConditionPlugin =\n {\n type: 'check-dependencies-legacy',\n label: 'Check Dependencies (legacy)',\n configurator: CheckDependenciesLegacyConfigurator,\n display: CheckDependenciesLegacyDisplay,\n validate: (condition: Partial) => {\n const params = condition.params as CheckDependenciesLegacyParams;\n return !!(\n params?.entity &&\n (params.entity.id || params.entity.table) &&\n Array.isArray(params.dependencies) &&\n params.dependencies.length > 0\n );\n },\n validateImport: () => {\n return {\n severity: 'warning',\n message: 'References may differ between environments.'\n };\n },\n guard: (state: State, params: WorkflowParams, render) => {\n if (state.isSimulation) return true;\n console.log('guards: check-dependencies-legacy', state, params);\n return new Promise(resolve => {\n render?.(\n {\n render?.(undefined);\n resolve(false);\n }}\n onConfirm={() => {\n render?.(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n };\n","import React from 'react';\nimport { Box, TextField } from '@material-ui/core';\nimport { State, WorkflowParams } from '@sierralabs/workflow';\nimport {\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin\n} from '@sierralabs/workflow-ui';\n\nimport ElectronicSignatureDialog from '../../../electronic-signature/ElectronicSignatureDialog';\n\n// SignaturePlugin Workflow v2\n\nconst SignatureConfigurator: React.FC<\n TransitionConditionConfiguratorProps\n> = props => {\n const { condition, onChange } = props;\n return (\n <>\n \n {\n if (condition.params) {\n condition.params.reason = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n {\n if (condition.params) {\n condition.params.meaning = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n {\n if (condition.params) {\n condition.params.reasonLabel = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n );\n};\n\nconst SignatureDisplay: React.FC = () => {\n return <>Electronic Signature;\n};\n\nexport interface SignatureParams extends WorkflowParams {\n meaning: string;\n reason: string;\n reasonLabel: string;\n}\n\nexport const SignaturePlugin: TransitionConditionPlugin = {\n type: 'signature',\n label: 'Electronic Signature',\n configurator: SignatureConfigurator,\n display: SignatureDisplay,\n validate: () => true,\n guard: (state: State, params, render) => {\n console.debug('guards: signature', state, params);\n state.context.reason = params.reasonLabel;\n if (state.isSimulation) return true;\n else if (!render) return false;\n return new Promise(resolve => {\n render(\n {\n render(undefined);\n resolve(false);\n }}\n onSigned={reason => {\n // add reason to task\n if (typeof reason !== 'undefined') {\n state.context.reason = reason;\n }\n render(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n};\n","import { SiteProviderProps } from '@sierralabs/site-ui';\nimport {\n servicePlugins,\n transitionConditionPlugins\n} from '@sierralabs/workflow-ui';\n\nimport { CreateJiraIssuePlugin } from './services/CreateJiraIssuePlugin';\nimport { TransitionEntityStatusFromJiraPlugin } from './services/TransitionEntityStatusFromJiraPlugin';\nimport { UpdateFieldFromJiraPlugin } from './services/UpdateFieldFromJiraPlugin';\nimport { UpdateJiraIssuePlugin } from './services/UpdateJiraIssuePlugin';\nimport { UpdateRelatedEntityStatusLegacyPlugin } from './services/UpdateRelatedEntityStatusLegacyPlugin';\nimport { CheckDependenciesLegacyPlugin } from './transition-conditions/CheckDependenciesLegacyPlugin';\nimport { SignaturePlugin } from './transition-conditions/SignaturePlugin';\n\n// override default plugins\nconst filteredTransitionConditionPlugins = transitionConditionPlugins.filter(\n plugin => plugin.type !== SignaturePlugin.type\n);\n\n/**\n * Workflow plugins from QMS v1 to use in platform-stack\n * to allow using v1 entities and implementation.\n */\nexport const platformStackWorkflowPlugins: SiteProviderProps['workflowPlugins'] =\n {\n servicePlugins: [\n ...servicePlugins,\n CreateJiraIssuePlugin,\n TransitionEntityStatusFromJiraPlugin,\n UpdateFieldFromJiraPlugin,\n UpdateJiraIssuePlugin,\n UpdateRelatedEntityStatusLegacyPlugin\n ],\n transitionConditionPlugins: [\n ...filteredTransitionConditionPlugins,\n SignaturePlugin,\n CheckDependenciesLegacyPlugin\n ]\n };\n","import React, { useEffect } from 'react';\nimport { Link, Redirect } from 'react-router-dom';\nimport { Typography } from '@material-ui/core';\nimport Alert from '@material-ui/lab/Alert';\nimport { useVerifyEmail } from './User.hooks';\nimport { VerifyEmail } from './User.interface';\n\nimport * as Styled from '../login/Login.styled';\nimport logo from '../assets/logo';\n\nconst UserEmailVerification = () => {\n const url = new URL(window.location.href);\n const token = url.searchParams.get('token');\n const { emailVerified, isLoading, error, get } = useVerifyEmail();\n const success = !isLoading && !error && !!emailVerified;\n\n useEffect(() => {\n if (token) {\n const verifyEmail: VerifyEmail = { token };\n get(verifyEmail);\n }\n }, [get, token]);\n\n if (emailVerified && !emailVerified.user?.isPasswordSet) {\n return (\n \n );\n }\n\n return (\n \n \n Sierra Labs\n

    Email Verification

    \n \n {isLoading &&

    Verifying Email...

    }\n {error && (\n \n Email verification link expired. Please contact your administrator\n for a new invitation.\n \n )}\n {success && (\n <>\n
    Your account has been verified!
    \n
    You may now proceed to the login page to sign in.
    \n \n )}\n
    \n\n {success && (\n \n Proceed to Login\n \n )}\n
    \n
    \n );\n};\n\nexport default UserEmailVerification;\n","import environment from '../../environments';\nimport { JiraFieldConfig } from '../jira-server/jira-server.interface';\n\nexport interface ProductEntityConfig {\n name?: string;\n idPrefix?: string;\n visibleJiraFields?: JiraFieldConfig[];\n enableRiskAssessment?: boolean;\n hideRiskField?: boolean;\n hideTestSteps?: boolean;\n useCustomInfoFields?: boolean;\n disableRelations?: T[];\n}\nexport interface ProductConfig {\n userNeed?: ProductEntityConfig<\n 'designInputs' | 'designSpecs' | 'verifications' | 'validations'\n >;\n designInput?: ProductEntityConfig<\n | 'userNeeds'\n | 'designOutputs'\n | 'verifications'\n | 'validations'\n | 'designSpecs'\n >;\n designOutput?: ProductEntityConfig<\n 'designInputs' | 'verifications' | 'validations' | 'designSpecs'\n >;\n verification?: ProductEntityConfig<'designOutputs'>;\n validation?: ProductEntityConfig<'userNeeds' | 'designInputs'>;\n designSpec?: ProductEntityConfig<'userNeeds'>;\n hazard?: ProductEntityConfig<'userNeeds' | 'designInputs'>;\n}\n\nexport const getProductEntityName = (key: keyof ProductConfig) => {\n switch (key) {\n case 'userNeed':\n return environment.productConfig?.userNeed?.name || 'User Need';\n case 'designInput':\n return environment.productConfig?.designInput?.name || 'Design Input';\n case 'designOutput':\n return environment.productConfig?.designOutput?.name || 'Design Output';\n case 'verification':\n return environment.productConfig?.verification?.name || 'Verification';\n case 'validation':\n return environment.productConfig?.validation?.name || 'Validation';\n case 'designSpec':\n return (\n environment.productConfig?.designSpec?.name || 'Design Specification'\n );\n case 'hazard':\n return environment.productConfig?.hazard?.name || 'Hazard';\n default:\n return '';\n }\n};\n\nexport const getProductEntityIdPrefix = (key: keyof ProductConfig) => {\n switch (key) {\n case 'userNeed':\n return environment.productConfig?.userNeed?.idPrefix || 'UN';\n case 'designInput':\n return environment.productConfig?.designInput?.idPrefix || 'IN';\n case 'designOutput':\n return environment.productConfig?.designOutput?.idPrefix || 'OUT';\n case 'verification':\n return environment.productConfig?.verification?.idPrefix || 'VER';\n case 'validation':\n return environment.productConfig?.validation?.idPrefix || 'VAL';\n case 'designSpec':\n return environment.productConfig?.designSpec?.idPrefix || 'DS';\n default:\n return '';\n }\n};\n\nexport const isProductRelationDisabled = (\n key: keyof ProductConfig,\n propertyKey: string\n) => {\n return (\n environment.productConfig?.[key]?.disableRelations?.some(\n (r: string) => r === propertyKey\n ) || false\n );\n};\n","import environment from '../../environments';\n\nexport interface HazardEntityConfig {\n name?: string;\n idPrefix?: string;\n}\n\nexport interface HazardConfig {\n cause?: HazardEntityConfig;\n control?: HazardEntityConfig;\n action?: HazardEntityConfig;\n}\n\nexport const getHazardEntityName = (key: keyof HazardConfig) => {\n switch (key) {\n case 'cause':\n return environment.hazardConfig?.cause || 'Cause';\n case 'control':\n return environment.hazardConfig?.control || 'Control';\n case 'action':\n return environment.hazardConfig?.action || 'Action';\n default:\n return '';\n }\n};\n\nexport const getHazardIdPrefix = () => {\n return environment.hazardConfig?.idPrefix || 'HAZARD';\n};\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport {\n ArrayParam,\n BooleanParam,\n NumberParam,\n NumericArrayParam,\n StringParam,\n useQueryParam,\n withDefault\n} from 'use-query-params';\n\nimport { FetchError } from '@sierralabs/react-material-ui';\n\nimport { ApiParams } from '../../common/api/api';\nimport {\n ApiResult,\n FetchApiCallback,\n useApiGet,\n useApiPatch,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport { useDownloadBlob } from '../../common/blob.hook';\nimport {\n IdSearchableFetchOptions,\n useIdSearchableFetch\n} from '../../common/entityId.hooks';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { User } from '../../user/User.interface';\nimport { Task } from '../tasks/Task.interface';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport { HazardFilterOptions } from './components/HazardBoardFilter';\nimport { getHazardEntityName } from './Hazard.config';\nimport {\n Hazard,\n HazardAction,\n HazardActionVersion,\n HazardBoardColumnEntity,\n HazardBoardData,\n HazardCause,\n HazardCauseVersion,\n HazardControl,\n HazardControlVersion,\n HazardEntity,\n HazardExportEntity,\n ProductHazardBoardData,\n HazardReferenceTarget,\n HazardReferenceSource,\n HazardVersion\n} from './Hazard.interface';\n\nexport function useUpdateHazard(id: number) {\n const { data, isLoading, error, patch } = useApiPatch(\n `hazards/${id}`\n );\n return {\n updatedHazard: data,\n isUpdating: isLoading,\n updateError: error,\n updateHazard: patch\n };\n}\n\nexport function useFindProductHazards(productId: number) {\n const { data, isLoading, error, get } = useApiGet>(\n `hazards/products/${productId}/hazards`\n );\n const findProductHazards = useIdSearchableFetch(get, WorkflowEntity.Hazard);\n return {\n productHazardList: data,\n isLoadingProductHazards: isLoading,\n loadingProductHazardsError: error,\n findProductHazards\n };\n}\n\nexport function useFindHazard(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet(`Hazards/${id}`);\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n hazard: data,\n isLoading,\n loadingError: error,\n findHazard: get\n };\n}\n\nexport function useFindHazardVersion(id: number, version: number) {\n const { data, get, ...result } = useApiGet(\n `hazards/${id}/version/${version}`\n );\n return { ...result, hazardVersion: data, findHazardVersion: get };\n}\n\nexport function useHazardEntityPrefixId(\n hazardEntity: HazardEntity | Partial | undefined,\n entity: HazardBoardColumnEntity\n): string {\n return useMemo(() => {\n if (!hazardEntity?.id) {\n return '';\n }\n const { id } = hazardEntity;\n return getHazardEntityPrefix(entity) + id;\n }, [entity, hazardEntity]);\n}\n\nexport function getHazardEntityPrefix(entity: HazardBoardColumnEntity): string {\n switch (entity) {\n case HazardBoardColumnEntity.Cause:\n return 'CAUSE-';\n case HazardBoardColumnEntity.Control:\n return 'CONTROL-';\n case HazardBoardColumnEntity.Action:\n return 'ACTION-';\n default:\n return '';\n }\n}\n\n// Hazard Cause hooks\nexport function useFindHazardCauses(hazardId: number) {\n const { data, isLoading, error, get } = useApiGet>(\n `hazards/${hazardId}/causes`\n );\n const findHazardCauses = useIdSearchableFetch(get, WorkflowEntity.Cause);\n return {\n hazardCauseList: data,\n isLoadingHazardCauses: isLoading,\n loadingHazardCausesError: error,\n findHazardCauses\n };\n}\nexport function useCreateHazardCause(hazardId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `hazards/${hazardId}/causes`\n );\n return {\n createdHazardCause: data,\n isCreatingHazardCause: isLoading,\n createHazardCauseError: error,\n createHazardCause: post\n };\n}\nexport function useUpdateHazardCause(hazardId: number, hazardCauseId?: number) {\n const [path, setPath] = useState('');\n const [cause, setCause] = useState>();\n const { data, isLoading, error, patch } = useApiPatch(path);\n const updateHazardCause = useCallback(\n (cause: Partial) => {\n setPath(`hazards/${hazardId}/causes/${hazardCauseId || cause.id}`);\n setCause(cause);\n },\n [hazardId, hazardCauseId]\n );\n useEffect(() => {\n if (path && cause) {\n patch(cause);\n }\n }, [patch, path, cause]);\n return {\n updatedHazardCause: data,\n isUpdatingHazardCause: isLoading,\n updateHazardCauseError: error,\n updateHazardCause\n };\n}\n\nexport function useFindHazardCauseById(\n hazardId: number,\n hazardCauseId: number\n) {\n const path = `hazards/${hazardId}/causes/${hazardCauseId}`;\n const { data, isLoading, error, get } = useApiGet(path);\n\n return {\n hazardCause: data,\n isLoadingHazardCauses: isLoading,\n findHazardCauseError: error,\n findHazardCause: get\n };\n}\n\nexport function useFindHazardCauseVersion(\n hazardId: number,\n hazardCauseId: number,\n version?: number\n) {\n let path = `hazards/${hazardId}/causes/${hazardCauseId}/version/${version}`;\n const { data, isLoading, error, get } = useApiGet(path);\n\n return {\n hazardCauseVersion: data,\n isLoadingHazardCauseVersion: isLoading,\n findHazardCauseVersionError: error,\n findHazardCauseVersion: get\n };\n}\n\n// Control Hooks\nexport function useFindHazardControls(hazardId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`hazards/${hazardId}/controls`);\n const findHazardControls = useIdSearchableFetch(get, WorkflowEntity.Control);\n return {\n hazardControlList: data,\n isLoadingHazardControls: isLoading,\n loadingHazardControlsError: error,\n findHazardControls\n };\n}\n\nexport function useCreateHazardControl(hazardId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `hazards/${hazardId}/controls`\n );\n return {\n createdHazardControl: data,\n isCreatingHazardControl: isLoading,\n createHazardControlError: error,\n createHazardControl: post\n };\n}\n\nexport function useUpdateHazardControl(\n hazardId: number,\n hazardControlId?: number\n) {\n const [path, setPath] = useState('');\n const [control, setControl] = useState>();\n const { data, isLoading, error, patch } = useApiPatch(path);\n const updateHazardControl = useCallback(\n (control: Partial) => {\n setPath(`hazards/${hazardId}/controls/${hazardControlId || control.id}`);\n setControl(control);\n },\n [hazardId, hazardControlId]\n );\n useEffect(() => {\n if (path && control) {\n patch(control);\n }\n }, [patch, path, control]);\n return {\n updatedHazardControl: data,\n isUpdatingHazardControl: isLoading,\n updateHazardControlError: error,\n updateHazardControl\n };\n}\n\nexport function useFindHazardControlById(\n hazardId: number,\n hazardControlId: number\n) {\n const path = `hazards/${hazardId}/controls/${hazardControlId}`;\n const { data, isLoading, error, get } = useApiGet(path);\n\n return {\n hazardControl: data,\n isLoadingHazardControl: isLoading,\n findHazardControlError: error,\n findHazardControl: get\n };\n}\n\nexport function useFindHazardControlVersion(\n hazardId: number,\n hazardControlId: number,\n version?: number\n) {\n let path = `hazards/${hazardId}/controls/${hazardControlId}/version/${version}`;\n const { data, isLoading, error, get } = useApiGet(path);\n\n return {\n hazardControlVersion: data,\n isLoadingHazardControlVersion: isLoading,\n findHazardControlVersionError: error,\n findHazardControlVersion: get\n };\n}\n\n// Hazard Action hooks\nexport function useFindHazardActions(hazardId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`hazards/${hazardId}/actions`);\n const findHazardActions = useIdSearchableFetch(get, WorkflowEntity.Action);\n return {\n hazardActionList: data,\n isLoadingHazardActions: isLoading,\n loadingHazardActionsError: error,\n findHazardActions\n };\n}\n\nexport function useCreateHazardAction(hazardId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `hazards/${hazardId}/actions`\n );\n return {\n createdHazardAction: data,\n isCreatingHazardAction: isLoading,\n createHazardActionError: error,\n createHazardAction: post\n };\n}\nexport function useUpdateHazardAction(\n hazardId: number,\n hazardActionId?: number\n) {\n const [path, setPath] = useState('');\n const [action, setAction] = useState>();\n const { data, isLoading, error, patch } = useApiPatch(path);\n const updateHazardAction = useCallback(\n (action: Partial) => {\n setPath(`hazards/${hazardId}/actions/${hazardActionId || action.id}`);\n setAction(action);\n },\n [hazardId, hazardActionId]\n );\n useEffect(() => {\n if (path && action) {\n patch(action);\n }\n }, [patch, path, action]);\n return {\n updatedHazardAction: data,\n isUpdatingHazardAction: isLoading,\n updateHazardActionError: error,\n updateHazardAction\n };\n}\n\nexport function useFindHazardActionById(\n hazardId: number,\n hazardActionId: number\n) {\n const path = `hazards/${hazardId}/actions/${hazardActionId}`;\n const { data, isLoading, error, get } = useApiGet(path);\n\n return {\n hazardAction: data,\n isLoadingHazardAction: isLoading,\n findHazardActionError: error,\n findHazardAction: get\n };\n}\n\nexport function useFindHazardActionVersion(\n hazardId: number,\n hazardActionId: number,\n version?: number\n) {\n let path = `hazards/${hazardId}/actions/${hazardActionId}/version/${version}`;\n const { data, isLoading, error, get } = useApiGet(path);\n\n return {\n hazardActionVersion: data,\n isLoadingHazardActionVersion: isLoading,\n findHazardActionVersionError: error,\n findHazardActionVersion: get\n };\n}\n\nexport function useHazardTargetEntity(\n target: HazardReferenceTarget\n): WorkflowEntity {\n return useMemo((): WorkflowEntity => {\n switch (target) {\n case 'actions':\n return WorkflowEntity.Action;\n case 'causes':\n return WorkflowEntity.Cause;\n case 'controls':\n return WorkflowEntity.Control;\n case 'user-needs':\n return WorkflowEntity.UserNeed;\n case 'design-inputs':\n return WorkflowEntity.DesignInput;\n case 'design-outputs':\n return WorkflowEntity.DesignOutput;\n case 'verifications':\n return WorkflowEntity.DesignVerification;\n case 'validations':\n return WorkflowEntity.DesignValidation;\n }\n }, [target]);\n}\n\nexport function useFindHazardReferenceTargets(\n hazardId: number,\n target: HazardReferenceTarget\n) {\n let path = `hazards/${hazardId}/${target}`;\n const { data, isLoading, error, get } =\n useApiGet>(path);\n const targetEntity: WorkflowEntity = useHazardTargetEntity(target);\n const findReferenceTargets = useIdSearchableFetch(get, targetEntity);\n return {\n targetEntityList: data,\n isLoadingTargets: isLoading,\n loadingTargetsError: error,\n findReferenceTargets\n };\n}\n\nexport function useFindHazardReferences(\n hazardId: number,\n source: HazardReferenceSource,\n sourceId: number | undefined,\n target: HazardReferenceTarget\n) {\n let path =\n source && sourceId\n ? `hazards/${hazardId}/${source}/${sourceId}/${target}`\n : `hazards/${hazardId}/${target}`;\n const { data, isLoading, error, get } =\n useApiGet<{ id: number; title: string; task: Task }[]>(path);\n return {\n references: data,\n isLoadingReferences: isLoading,\n loadingReferenceError: error,\n findReferences: get\n };\n}\n\nexport function useAssignHazardReferences(\n hazardId: number,\n source: HazardReferenceSource,\n sourceId: number | undefined,\n target: HazardReferenceTarget\n) {\n let path =\n source && sourceId\n ? `hazards/${hazardId}/${source}/${sourceId}/${target}`\n : `hazards/${hazardId}/${target}`;\n const { data, isLoading, error, post } =\n useApiPost<{ id: number; title: string; task: Task }>(path);\n const assignReferences = useCallback(\n (targetIds: number[]) => {\n post({ targetIds });\n },\n [post]\n );\n return {\n updatedSource: data,\n isAssigningReferences: isLoading,\n assigningReferenceError: error,\n assignReferences\n };\n}\n\nconst hazardBoardOptions: IdSearchableFetchOptions[] = [\n WorkflowEntity.Action,\n WorkflowEntity.Cause,\n WorkflowEntity.Control\n].map((entity: WorkflowEntity) => {\n return {\n entity,\n removeFrom: false,\n to: entity.concat('SearchId')\n } as IdSearchableFetchOptions;\n});\n\n// Hazard Board Hooks\nexport function useGetHazardBoard(hazardId: number) {\n const { data, isLoading, error, get } = useApiGet(\n `hazards/${hazardId}/board`\n );\n const getHazardBoard = useIdSearchableFetch(get, hazardBoardOptions);\n return {\n hazardBoard: data,\n isLoading: isLoading,\n loadingError: error,\n getHazardBoard\n };\n}\n\nexport function useGetProductHazardBoard(productId: number) {\n const { data, isLoading, error, get } = useApiGet(\n `hazards/products/${productId}/hazardBoard`\n );\n const getProductHazardBoard = useIdSearchableFetch(get, hazardBoardOptions);\n return {\n productHazardBoard: data,\n isLoading: isLoading,\n loadingError: error,\n getProductHazardBoard\n };\n}\n\nexport function useGetHazardBoardReferences() {\n const [state, setState] = useState<{\n path: string;\n hazardId: number;\n referencedHazardIds: number[];\n apiParams: ApiParams;\n }>();\n const {\n data,\n isLoading,\n error,\n get: apiGet\n } = useApiGet(state?.path || '');\n const get = useIdSearchableFetch(apiGet, hazardBoardOptions);\n useEffect(() => {\n if (state) {\n const { referencedHazardIds, apiParams } = state;\n get({\n referencedHazardIds,\n ...apiParams\n });\n }\n }, [get, state]);\n const getHazardBoardReferences = useCallback(\n (\n hazardId: number,\n referencedHazardIds: number[],\n apiParams: ApiParams = {}\n ) => {\n setState({\n path: `hazards/${hazardId}/board/references`,\n hazardId,\n referencedHazardIds,\n apiParams\n });\n },\n []\n );\n return {\n hazardBoardReferences: data,\n isLoadingReferences: isLoading,\n loadingReferencesError: error,\n getHazardBoardReferences\n };\n}\n\nexport const getExportTitle = (entity: HazardExportEntity) => {\n switch (entity) {\n case HazardExportEntity.Cause:\n return getHazardEntityName('cause');\n case HazardExportEntity.Control:\n return getHazardEntityName('control');\n case HazardExportEntity.Action:\n return getHazardEntityName('action');\n }\n};\n\nexport function useDownloadHazardDefaultTemplate(): [\n ApiResult,\n (params: ApiParams & { entity: HazardExportEntity }) => void,\n (fileName: string) => void\n] {\n const { get, ...result } = useApiGet('hazards/default-template');\n const { response } = result;\n const { setBlob, downloadDocument } = useDownloadBlob(response);\n\n const getDocument = useCallback(\n (params: ApiParams & { entity: HazardExportEntity }) => {\n // remove old document\n setBlob(undefined);\n get(params);\n },\n [get]\n );\n\n return [result, getDocument, downloadDocument];\n}\n\nexport function useHazardFilterQueryParams() {\n const [status, setStatus] = useQueryParam(\n 'status',\n withDefault(ArrayParam as any, [])\n );\n const [assigneeId, setAssigneeId] = useQueryParam(\n 'assigneeId',\n withDefault(NumericArrayParam as any, [])\n );\n const [authorId, setAuthorId] = useQueryParam(\n 'authorId',\n withDefault(NumericArrayParam as any, [])\n );\n const [assignedForReviewOnly, setAssignedForReviewOnly] = useQueryParam(\n 'assignedForReviewOnly',\n withDefault(BooleanParam, false)\n );\n\n const options: HazardFilterOptions = useMemo(\n () => ({\n status: status || [],\n assignee: assigneeId || [],\n author: authorId || [],\n assignedForReviewOnly\n }),\n [status, assigneeId, authorId, assignedForReviewOnly]\n );\n\n const convertOptionsToParams = useCallback(\n (options: HazardFilterOptions): ApiParams => {\n const { assignee, status, author, assignedForReviewOnly } = options;\n const params: ApiParams = {\n status,\n assigneeId: assignee,\n authorId: author,\n assignedForReviewOnly\n };\n status?.length === 0 && delete params.status;\n assignee?.length === 0 && delete params.assigneeId;\n author?.length === 0 && delete params.authorId;\n typeof assignedForReviewOnly !== 'boolean' &&\n delete params.assignedForReviewOnly;\n return params;\n },\n []\n );\n\n const getParams = useCallback((): ApiParams => {\n return convertOptionsToParams(options);\n }, [options]);\n\n return {\n options,\n setStatus,\n setAssigneeId,\n setAssignedForReviewOnly,\n setAuthorId,\n getParams,\n convertOptionsToParams\n };\n}\n","import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport {\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow\n} from '@material-ui/core';\nimport { useParams } from 'react-router-dom';\nimport styled from 'styled-components';\nimport { AppSnackbar } from '@sierralabs/react-material-ui';\n\nimport { FetchError } from '../../common/api/api';\nimport { useFindLinkedEntities } from './jira-server.hooks';\nimport TaskStatusLabel from '../../common/TaskStatusLabel';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport {\n getProductEntityIdPrefix,\n getProductEntityName\n} from '../products/Product.config';\nimport { HazardBoardColumnEntity } from '../hazards/Hazard.interface';\nimport { getHazardEntityPrefix } from '../hazards/Hazard.hooks';\nimport { useJiraConnectContext } from '../jira-connect/JiraConnect.context';\nimport {\n createServletUrl,\n useFindJiraConnect\n} from '../jira-connect/JiraConnect.hooks';\nimport { useJiraServerContext } from './jira-server.context';\nimport { JiraLinkedEntity } from './jira-server.interface';\nimport environment from '../../environments';\n\nconst CapitalizedText = styled.span`\n text-transform: capitalize;\n`;\n\nconst JiraStyledLink = styled.a`\n text-decoration: none;\n transition: color 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);\n &.disabled {\n color: #0052cc88;\n cursor: not-allowed;\n }\n &:not(.disabled) {\n color: #0052cc;\n &:hover {\n text-decoration: underline;\n }\n }\n`;\n\nconst getTypeLabel = (type: WorkflowEntity) => {\n switch (type) {\n case WorkflowEntity.Action:\n case WorkflowEntity.Cause:\n case WorkflowEntity.Control:\n return `Hazard ${type}`;\n case WorkflowEntity.UserNeed:\n return getProductEntityName('userNeed');\n case WorkflowEntity.DesignInput:\n return getProductEntityName('designInput');\n case WorkflowEntity.DesignOutput:\n return getProductEntityName('designOutput');\n case WorkflowEntity.DesignSpec:\n return getProductEntityName('designSpec');\n case WorkflowEntity.DesignValidation:\n return getProductEntityName('validation');\n case WorkflowEntity.DesignVerification:\n return getProductEntityName('verification');\n default:\n return type;\n }\n};\n\nconst getEntityId = (type: WorkflowEntity, id: number) => {\n switch (type) {\n case WorkflowEntity.Action:\n return `${getHazardEntityPrefix(HazardBoardColumnEntity.Action)}${id}`;\n case WorkflowEntity.Cause:\n return `${getHazardEntityPrefix(HazardBoardColumnEntity.Cause)}${id}`;\n case WorkflowEntity.Control:\n return `${getHazardEntityPrefix(HazardBoardColumnEntity.Control)}${id}`;\n case WorkflowEntity.UserNeed:\n return `${getProductEntityIdPrefix('userNeed')}-${id}`;\n case WorkflowEntity.DesignInput:\n return `${getProductEntityIdPrefix('designInput')}-${id}`;\n case WorkflowEntity.DesignOutput:\n return `${getProductEntityIdPrefix('designOutput')}-${id}`;\n case WorkflowEntity.DesignSpec:\n return `${getProductEntityIdPrefix('designSpec')}-${id}`;\n case WorkflowEntity.DesignValidation:\n return `${getProductEntityIdPrefix('validation')}-${id}`;\n case WorkflowEntity.DesignVerification:\n return `${getProductEntityIdPrefix('verification')}-${id}`;\n default:\n return `${type.toUpperCase()}-${id}`;\n }\n};\n\nconst getEntityPath = (type: WorkflowEntity, entity: JiraLinkedEntity) => {\n switch (type) {\n case WorkflowEntity.Action:\n return `portal/hazards/${entity.hazardId}/actions/${entity.id}`;\n case WorkflowEntity.Cause:\n return `portal/hazards/${entity.hazardId}/causes/${entity.id}`;\n case WorkflowEntity.Control:\n return `portal/hazards/${entity.hazardId}/controls/${entity.id}`;\n case WorkflowEntity.UserNeed:\n return `portal/products/${entity.productId}/user-needs/${entity.id}`;\n case WorkflowEntity.DesignInput:\n return `portal/products/${entity.productId}/design-inputs/${entity.id}`;\n case WorkflowEntity.DesignOutput:\n return `portal/products/${entity.productId}/design-outputs/${entity.id}`;\n case WorkflowEntity.DesignSpec:\n return `portal/products/${entity.productId}/design-specs/${entity.id}`;\n case WorkflowEntity.DesignValidation:\n return `portal/products/${entity.productId}/validations/${entity.id}`;\n case WorkflowEntity.DesignVerification:\n return `portal/products/${entity.productId}/verifications/${entity.id}`;\n default:\n return `portal/${type}s/${entity.id}`;\n }\n};\n\nconst EntityLink: React.FC<{\n type: WorkflowEntity;\n entity: JiraLinkedEntity;\n onError?: (error: FetchError) => void;\n}> = ({ type, entity, onError }) => {\n const { isAvailable } = useJiraConnectContext();\n const { isJiraServer } = useJiraServerContext();\n const [{ data: jiraConnect, error }, findJiraConnect] = useFindJiraConnect();\n\n const pagePath: string = useMemo(() => {\n return getEntityPath(type, entity);\n }, [type, entity]);\n\n const url: URL | undefined = useMemo(() => {\n if (isJiraServer) {\n const jiraBaseUrl = environment.jiraUrl || 'http://localhost:2990/jira';\n const url: URL = new URL(\n jiraBaseUrl.concat('/plugins/servlet/sierra-qms')\n );\n url.searchParams.set('page', pagePath);\n return url;\n } else if (isAvailable && jiraConnect) {\n // add slash to pagePath\n const path: string = pagePath.startsWith('/') ? pagePath : `/${pagePath}`;\n return createServletUrl(jiraConnect, 'sierra-qms-products', path);\n }\n }, [pagePath, jiraConnect, isAvailable, isJiraServer]);\n\n useEffect(() => {\n findJiraConnect();\n }, [findJiraConnect]);\n\n useEffect(() => {\n if (error) {\n onError?.(error);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n return (\n \n {getEntityId(type, entity.id)}\n \n );\n};\n\nconst JiraLinkedEntities: React.FC = () => {\n const { jiraKey } = useParams<{ jiraKey: string }>();\n const [error, setError] = useState();\n const { data, isLoading, error: findError, get } = useFindLinkedEntities(\n jiraKey\n );\n const tableRef = useRef(null);\n\n useEffect(() => {\n get();\n }, [get]);\n\n useEffect(() => {\n setError(findError);\n }, [findError]);\n\n useEffect(() => {\n if (tableRef.current) {\n const { height } = tableRef.current.getBoundingClientRect();\n console.debug('sending SetHeight event', height);\n window.parent.postMessage({ type: 'SetHeight', params: height }, '*');\n }\n // notify plugin when table rows change or data changes to adjust iframe height\n }, [tableRef.current?.rows, data]);\n\n return (\n <>\n \n \n \n \n Type\n ID\n Title\n Status\n \n \n \n {isLoading && (\n \n \n \n \n \n )}\n {data?.map(task => {\n return task.entities?.map(entity => {\n return (\n \n \n \n {getTypeLabel(task.type as WorkflowEntity)}\n \n \n \n \n \n {entity.title}\n \n \n \n \n );\n });\n })}\n \n
    \n
    \n \n {error?.message}\n \n \n );\n};\nexport default JiraLinkedEntities;\n","import React, {\n Dispatch,\n SetStateAction,\n createContext,\n useCallback,\n useContext,\n useState\n} from 'react';\nimport { TaskEntity } from '../../secure-portal/tasks/Task.interface';\n\nexport interface CartContextProps {\n cart: TaskEntity[];\n processedEntities: TaskEntity[];\n setProcessedEntities: Dispatch>;\n addToCart: (taskEntity: TaskEntity) => void;\n removeFromCart: (taskEntity: TaskEntity) => void;\n clearCart: () => void;\n}\n\nexport const CartContext = createContext(null!);\n\nexport const useCartContext = () => {\n const context = useContext(CartContext);\n if (!context) {\n throw new Error(\n 'useCartContext must be used within the context of the CartProvider component'\n );\n }\n return context;\n};\n\nexport function getCartIndex(cart: TaskEntity[], taskEntity: TaskEntity) {\n // make sure the cart item is the same task entity\n // as ids can match for different task entities\n // e.g. user need id 1 can match with design output id 1\n return cart.findIndex(item => {\n return (\n item.id === taskEntity.id &&\n item.task &&\n taskEntity.task &&\n item.task.id === taskEntity.task.id\n );\n });\n}\n\nexport const CartProvider: React.FC = ({ children }) => {\n const [cart, setCart] = useState([]);\n const [processedEntities, setProcessedEntities] = useState([]);\n\n const addToCart = useCallback((taskEntity: TaskEntity) => {\n setCart(cart => {\n // don't insert duplicates\n return getCartIndex(cart, taskEntity) > -1\n ? cart\n : cart.concat(taskEntity);\n });\n }, []);\n\n const removeFromCart = useCallback((taskEntity: TaskEntity) => {\n setCart(cart => {\n const index = getCartIndex(cart, taskEntity);\n if (index > -1) {\n cart = Array.from(cart);\n cart.splice(index, 1);\n }\n return cart;\n });\n }, []);\n\n const clearCart = useCallback(() => {\n setCart([]);\n }, []);\n\n return (\n \n {children}\n \n );\n};\n","import React from 'react';\nimport styled from 'styled-components';\n\nconst StyledDiv = styled.div`\n display: block;\n bottom: 0;\n position: relative;\n color: #9fa2b4;\n margin: auto 0 5px 16px;\n span {\n vertical-align: top;\n margin: 0 30px 0 5px;\n }\n`;\n\nconst VersionInfo: React.FC = () => {\n return (\n \n \n Version {`${process.env.REACT_APP_VERSION}`}\n \n \n );\n};\n\nexport default VersionInfo;\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function AdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user && !!user.roles && !!user.roles.find(r => r.name === 'Admin')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function CapaAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user && !!user.roles && !!user.roles.find(r => r.name === 'CapaAdmin')\n );\n }\n };\n}\n","import { useContext } from 'react';\n\nimport { UserContext } from '../user/User.context';\nimport { Guard } from './guard';\n\nexport default function DocumentAdminGuard(): Guard {\n const { user } = useContext(UserContext);\n return {\n canActivate: () => (user?.roles || []).some(r => r.name === 'DocumentAdmin')\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function DocumentEditorGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user &&\n !!user.roles &&\n !!user.roles.find(r => r.name === 'DocumentEditor')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function DocumentViewerGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user &&\n !!user.roles &&\n !!user.roles.find(r => r.name === 'DocumentViewer')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function HazardAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user &&\n !!user.roles &&\n !!user.roles.find(r => r.name === 'HazardAdmin')\n );\n }\n };\n}\n","import { useContext } from 'react';\n\nimport { UserContext } from '../user/User.context';\nimport { Guard } from './guard';\n\nexport default function NoRoleGuard(): Guard {\n const { user } = useContext(UserContext);\n return { canActivate: () => user?.roles?.length === 0 };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function ProductAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user &&\n !!user.roles &&\n !!user.roles.find(r => r.name === 'ProductAdmin')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function RiskAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user && !!user.roles && !!user.roles.find(r => r.name === 'RiskAdmin')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function ScarAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user && !!user.roles && !!user.roles.find(r => r.name === 'ScarAdmin')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function SiteAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user && !!user.roles && !!user.roles.find(r => r.name === 'SiteAdmin')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function WorkflowAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user &&\n !!user.roles &&\n !!user.roles.find(r => r.name === 'WorkflowAdmin')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function TraineeGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user && !!user.roles && !!user.roles.find(r => r.name === 'Trainee')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function TrainingAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user &&\n !!user.roles &&\n !!user.roles.find(r => r.name === 'TrainingAdmin')\n );\n }\n };\n}\n","import { Guard } from './guard';\nimport { useContext } from 'react';\nimport { UserContext } from '../user/User.context';\n\nexport default function SupplierAdminGuard(): Guard {\n const userContext = useContext(UserContext);\n const { user } = userContext;\n\n return {\n canActivate: () => {\n return (\n !!user &&\n !!user.roles &&\n !!user.roles.find(r => r.name === 'SupplierAdmin')\n );\n }\n };\n}\n","import React from 'react';\nimport { ThemeProvider } from 'styled-components';\n\nimport blueGrey from '@material-ui/core/colors/blueGrey';\nimport { createTheme, MuiThemeProvider } from '@material-ui/core/styles';\n\nconst NavThemeProvider: React.FC = ({ children }) => {\n const theme = createTheme({\n palette: {\n primary: {\n main: '#fff'\n },\n secondary: {\n main: '#2196f3'\n }\n },\n overrides: {\n MuiListItem: {\n root: {\n '&.active': { backgroundColor: blueGrey[100] }\n }\n }\n }\n });\n return (\n \n {children}\n \n );\n};\n\nexport default NavThemeProvider;\n","import React from 'react';\nimport styled from 'styled-components';\n\nconst StyledPageTemplateNav = styled.div`\n display: flex;\n background: #fff;\n margin: 0 -30px;\n padding: 0 30px;\n &.tabs {\n flex-direction: column;\n padding: 0;\n }\n`;\n\nconst PageTemplateNav: React.FC<\n React.ComponentProps & { tabs?: boolean }\n> = ({ tabs, children, className, ...props }) => {\n return (\n \n {children}\n \n );\n};\n\nexport default PageTemplateNav;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { Paper } from '@material-ui/core';\n\nconst StyledPaper = styled(Paper)`\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n border-radius: 4px 4px 0 0;\n .MuiTableContainer-root {\n flex: 1;\n overflow: auto;\n }\n ${props => props.theme.breakpoints.down('sm')} {\n border-radius: 0;\n }\n`;\n\nconst PageTemplateCardOver: React.FC = props => {\n const { children } = props;\n return (\n \n {children}\n \n );\n};\n\nexport default PageTemplateCardOver;\n","import React, { ReactElement } from 'react';\nimport styled from 'styled-components';\nimport PageTemplateNav from './PageTemplateNav';\nimport PageTemplateCardOver from './PageTemplateCardOver';\n\nconst StyledPageTemplate = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1;\n padding: 0 30px;\n overflow: hidden;\n background: linear-gradient(\n to bottom,\n ${props => props.theme.palette.primary.dark},\n ${props => props.theme.palette.primary.dark} 117px,\n ${props => props.theme.palette.secondary.light} 0%\n );\n .page-template-header {\n height: 117px;\n overflow: hidden;\n }\n &.page-template-tabs {\n background: linear-gradient(\n to bottom,\n ${props => props.theme.palette.primary.dark},\n ${props => props.theme.palette.primary.dark} 117px,\n ${props => props.theme.palette.secondary.light} 0%\n );\n }\n &.card-over {\n background: linear-gradient(\n to bottom,\n ${props => props.theme.palette.primary.dark},\n ${props => props.theme.palette.primary.dark} 183px,\n ${props => props.theme.palette.secondary.light} 0%\n );\n .page-template-header {\n height: 126px;\n overflow: hidden;\n }\n }\n &:not(.card-over) .page-template-alert {\n margin-left: -30px;\n margin-right: -30px;\n }\n\n .page-template-container {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n /* Tables in the Card Over templte should scroll in place */\n .MuiTableContainer-root {\n flex: 1;\n overflow: auto;\n }\n }\n ${props => props.theme.breakpoints.down('sm')} {\n padding: 0 10px;\n .page-template-nav {\n margin-top: 42px;\n }\n }\n`;\n\nconst PageTemplate: React.FC<{ className?: string }> = props => {\n const { children } = props;\n let { className = '' } = props;\n className += ' page-template';\n React.Children.map(children, child => {\n // check if CardOverNav exists\n const reactElement = child as ReactElement;\n if (reactElement) {\n if (reactElement.type === PageTemplateNav) {\n className += ' page-template-tabs';\n } else if (reactElement.type === PageTemplateCardOver) {\n className += ' card-over';\n }\n }\n });\n return (\n {children}\n );\n};\n\nexport default PageTemplate;\n","import React, { useContext } from 'react';\nimport styled from 'styled-components';\nimport blue from '@material-ui/core/colors/blue';\nimport { Alert } from '@material-ui/lab';\n\nimport { UserContext } from '../../user/User.context';\nimport { useWorkflowContext } from '../../secure-portal/workflow/Workflow.context';\n\nconst StyledHeader = styled.div`\n display: flex;\n color: #fff;\n padding: 42px 0;\n align-items: center;\n white-space: nowrap;\n h1,\n h2,\n h3,\n h4 {\n margin: 0;\n color: #fff;\n }\n h2 {\n font-size: 22px;\n /* one line with ellipsis */\n display: -webkit-box;\n overflow: hidden;\n padding-right: 8px;\n white-space: pre-wrap;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n .subtitle {\n margin-top: 4px;\n color: rgba(255, 255, 255, 0.8);\n }\n a {\n color: #fff;\n &:hover {\n color: ${blue[100]};\n }\n }\n ${props => props.theme.breakpoints.down('sm')} {\n flex-wrap: wrap;\n padding: 0;\n h1,\n h2,\n h3,\n h4 {\n flex: 50%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .MuiBreadcrumbs-root {\n flex: 50%;\n overflow: hidden;\n text-overflow: ellipsis;\n ol {\n flex-wrap: nowrap;\n /* justify-content: flex-end;\n padding-right: 10px; */\n }\n }\n .page-template-header-actions {\n flex: 50%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .search-box {\n order: 5;\n flex: 100%;\n margin: 30px 0 0 0;\n .search {\n padding: 12px;\n max-width: 100%;\n border-radius: 4px 4px 0 0;\n border-bottom: 1px solid #eee;\n }\n }\n }\n`;\n\nconst StyledCardHeaderActions = styled.div`\n display: flex;\n justify-content: flex-end;\n &.flex {\n flex: 1;\n }\n .MuiButton-label {\n /* overflow: hidden;\n text-overflow: ellipsis; */\n /* display: inline-block; */\n }\n .flex-label .MuiButton-label {\n display: flex;\n }\n button,\n .button {\n margin-right: 10px;\n &:last-child {\n margin-right: 0;\n }\n }\n .cart-button {\n margin-right: 16px;\n }\n`;\n\nconst StyledAlert = styled(Alert)`\n justify-content: center;\n`;\n\nexport interface PageTemplateHeaderActionsProps {\n flex?: boolean;\n}\n\nexport const PageTemplateHeaderActions: React.FC = props => {\n const { flex, children } = props;\n return (\n \n {children}\n \n );\n};\n\nconst PageTemplateHeader: React.FC = props => {\n const { children } = props;\n const { user } = useContext(UserContext);\n const { error } = useWorkflowContext();\n const noRoles: boolean = user?.roles?.length === 0;\n const showAlert: boolean = noRoles || !!error;\n return (\n <>\n {children}\n {showAlert && (\n \n {noRoles ? (\n <>\n Your account is not completely setup. Please contact your\n administrator to update your account permissions.\n \n ) : (\n <>\n {error?.message} Please contact your administrator to update the\n workflow settings.\n \n )}\n \n )}\n \n );\n};\n\nexport default PageTemplateHeader;\n","import React from 'react';\nimport styled from 'styled-components';\n\nconst StyledDiv = styled.div`\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: auto;\n margin: 0 -30px;\n padding: 20px 30px 0 30px;\n`;\n\nexport type PageTemplateDashboardProps = React.ComponentProps<\n typeof StyledDiv\n> & {\n innerRef?: React.MutableRefObject;\n};\n\nconst PageTemplateDashboard: React.FC = ({\n innerRef,\n children,\n className,\n ...props\n}) => {\n return (\n \n {children}\n \n );\n};\n\nexport default PageTemplateDashboard;\n","import React, { useContext } from 'react';\nimport styled from 'styled-components';\nimport { ResponsivePie } from '@nivo/pie';\nimport { Card, Typography } from '@material-ui/core';\nimport GroupIcon from '@material-ui/icons/Group';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport { UserContext } from '../../../user/User.context';\nimport {\n useGetUserTrainingStats,\n useGetUserTrainings\n} from '../../../user/User.hooks';\nimport { formatter } from '../TrainingPage';\n\nconst StyledCardContent = styled(CardContent)`\n position: relative;\n height: 300px;\n .content {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 50%;\n right: 50%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background: red;\n text-align: center;\n /* preserve chart interactivity */\n pointer-events: none;\n\n .label {\n font-size: 16px;\n margin-bottom: 64px;\n }\n }\n`;\n\nexport interface TrainingChartCardProps {\n userId?: number;\n middleText?: string;\n}\n\nconst TrainingChartCard: React.FC = (\n props: TrainingChartCardProps\n) => {\n const { userId, middleText } = props;\n const { user } = useContext(UserContext);\n const { data } = useGetUserTrainingStats(true, userId || user?.id);\n const { userTrainings } = useGetUserTrainings(true, userId || user?.id);\n\n const trainingStatsPercentage = (count: number) => {\n const percent: number | undefined = userTrainings?.length\n ? (count / userTrainings.length) * 100\n : undefined;\n return typeof percent === 'number' && isFinite(percent)\n ? formatter.format(percent) + '%'\n : 'N/A';\n };\n\n let trainingStats;\n\n if (data) {\n trainingStats = [\n {\n id: `Completed (${trainingStatsPercentage(data.completedCount)})`,\n label: 'Completed',\n value: data.completedCount,\n color: '#61cdbb'\n },\n {\n id: `To-do (${trainingStatsPercentage(data.toDoCount)})`,\n label: 'To-do',\n value: data.toDoCount,\n color: '#f47560'\n },\n {\n id: `In Progress (${trainingStatsPercentage(data.inProgressCount)})`,\n label: 'In Progress',\n value: data.inProgressCount,\n color: '#F1E25B'\n }\n ];\n }\n\n return (\n \n \n \n Training Progress\n \n \n {trainingStats && (\n \n )}\n {middleText && (\n
    \n \n {middleText}\n \n
    \n )}\n
    \n
    \n );\n};\n\nexport default TrainingChartCard;\n","import React, { useContext, useEffect } from 'react';\nimport { useHistory } from 'react-router-dom';\nimport { StringParam, useQueryParam } from 'use-query-params';\nimport {\n Card,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TableSortLabel\n} from '@material-ui/core';\nimport SchoolIcon from '@material-ui/icons/School';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport StatusLabel from '../../../common/StatusLabel';\nimport { formatDate } from '../../../common/formatter';\n\nimport { useGetUserTrainings } from '../../../user/User.hooks';\nimport { UserContext } from '../../../user/User.context';\nimport { TrainingUser } from '../Training.interface';\n\nexport interface TrainingLogCardProps {\n userId?: number;\n compact?: boolean;\n isViewOnly?: boolean;\n}\n\nconst TrainingLogCard: React.FC = ({\n userId,\n compact = false,\n isViewOnly\n}) => {\n const history = useHistory();\n const { user } = useContext(UserContext);\n const { userTrainings, get: getUserTrainings } = useGetUserTrainings(\n false,\n userId || user?.id\n );\n const [order, setOrder] = useQueryParam('order', StringParam);\n const [orderDirection, setOrderDirection] = useQueryParam(\n 'direction',\n StringParam\n );\n\n useEffect(() => {\n const params = {\n order: String(order || '')\n } as any;\n if (order && orderDirection) {\n params.order = `${order} ${orderDirection}`;\n }\n getUserTrainings(params);\n }, [order, orderDirection, getUserTrainings]);\n\n const handleViewTrainingLog = (userTraining: TrainingUser) => {\n let path = `/portal/training/${userTraining.trainingVersion.trainingId}/version/${userTraining.trainingVersion.id}/user/${userTraining.userId}`;\n if (userId) path = path + '?view-only=1';\n history.push(path);\n };\n\n const handleSort = (column: string) => {\n setOrder(column);\n setOrderDirection(orderDirection === 'ASC' ? 'DESC' : 'ASC');\n };\n\n const getSortDirection = (column: string): 'asc' | 'desc' => {\n return order === column && orderDirection === 'DESC' ? 'desc' : 'asc';\n };\n\n return (\n \n \n \n Training Log\n \n \n \n \n \n \n handleSort('id')}\n >\n Training ID\n \n \n \n handleSort('name')}\n >\n Training Name\n \n \n Document ID\n Document Version\n \n handleSort('status')}\n >\n Status\n \n \n {!compact && (\n <>\n \n handleSort('version')}\n >\n Training Plan Version\n \n \n \n handleSort('assigned_date')}\n >\n Date Assigned\n \n \n \n handleSort('due_date')}\n >\n Due Date\n \n \n \n handleSort('completed_date')}\n >\n Date Completed\n \n \n \n )}\n \n \n \n {userTrainings?.length === 0 && (\n \n There are no records\n \n )}\n {userTrainings?.map((userTraining: TrainingUser) => {\n const document = userTraining.trainingVersion.fileMetadata?.[0];\n return (\n handleViewTrainingLog(userTraining)}\n >\n \n TRAINING-{userTraining.trainingVersion.trainingId}\n \n {userTraining.trainingVersion.name}\n {document?.taskKey || 'N/A'}\n {document?.version || 'N/A'}\n \n \n \n {!compact && (\n <>\n \n {userTraining.trainingVersion.version}\n \n \n {formatDate(userTraining.assignedDate)}\n \n {formatDate(userTraining.dueDate)}\n \n {formatDate(userTraining.completedDate)}\n \n \n )}\n \n );\n })}\n \n
    \n
    \n
    \n );\n};\n\nexport default TrainingLogCard;\n","import React from 'react';\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow\n} from '@material-ui/core';\n\nimport { formatDate } from '../../../common/formatter';\nimport { UserTrainingUpcoming } from '../../../user/User.interface';\n\nexport interface TrainingUpcomingDialogProps {\n open: boolean;\n onCancel?: () => void;\n onCreated?: () => void;\n upcomingTrainings?: UserTrainingUpcoming[];\n}\n\nconst TrainingUpcomingDialog: React.FC = ({\n open,\n onCancel,\n upcomingTrainings\n}) => {\n return (\n \n {'Upcoming trainings'}\n\n \n \n \n \n \n Training\n Deadline\n \n \n \n {upcomingTrainings &&\n upcomingTrainings.map(\n (upcomingTraining: UserTrainingUpcoming) => (\n \n {upcomingTraining.trainingName}\n \n {formatDate(upcomingTraining.trainingDeadline)}\n \n \n )\n )}\n \n
    \n
    \n
    \n\n \n \n \n
    \n );\n};\n\nexport default TrainingUpcomingDialog;\n","import React, { useState } from 'react';\nimport { Card, Box, Typography, CardContent } from '@material-ui/core';\nimport {\n useUserTrainingUpcomingCount,\n useUserTrainingUpcoming\n} from '../../../user/User.hooks';\nimport TrainingUpcomingDialog from '../dialogs/TrainingUpcomingDialog';\nimport { User } from '../../../user/User.interface';\nexport interface TrainingUpcomingCardProps {\n user: User;\n}\n\nconst TrainingUpcomingCard: React.FC = ({\n user\n}) => {\n const { data: upcomingTrainingsCount } = useUserTrainingUpcomingCount(\n true,\n user.id\n );\n const { data: upcomingTrainings } = useUserTrainingUpcoming(true, user.id);\n const [isOpenDialog, setIsOpenDialog] = useState(false);\n\n return (\n \n \n \n setIsOpenDialog(true)}\n >\n {upcomingTrainingsCount}\n \n \n Upcoming Recurring Training\n \n \n \n\n {upcomingTrainings && isOpenDialog && (\n setIsOpenDialog(false)}\n onCreated={() => {}}\n />\n )}\n \n );\n};\n\nexport default TrainingUpcomingCard;\n","import React, { useContext, useMemo } from 'react';\nimport styled from 'styled-components';\nimport { Box, Card, Grid, Typography } from '@material-ui/core';\n\nimport CardContent from '../../common/card/CardContent';\nimport PageTemplate from '../../common/page-template/PageTemplate';\nimport PageTemplateDashboard from '../../common/page-template/PageTemplateDashboard';\nimport PageTemplateHeader from '../../common/page-template/PageTemplateHeader';\nimport TrainingChartCard from './cards/TrainingChartCard';\nimport TrainingLogCard from './cards/TrainingLogCard';\nimport TrainingUpcomingCard from './cards/TrainingUpcomingCard';\nimport { UserContext } from '../../user/User.context';\nimport { useGetUserTrainingStats } from '../../user/User.hooks';\n\nconst StyledGrid = styled(Grid)`\n height: 100%;\n flex-flow: column;\n margin-top: unset;\n .MuiGrid-item {\n &:not(:last-child) {\n padding-top: unset;\n }\n &:last-child {\n padding-bottom: unset;\n }\n\n .MuiCard-root,\n .MuiCardContent-root {\n height: 100%;\n }\n\n /* center card content */\n .MuiCardContent-root {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n }\n`;\n\nexport const formatter: Intl.NumberFormat = new Intl.NumberFormat(undefined, {\n minimumFractionDigits: 0,\n maximumFractionDigits: 2\n});\n\nconst TrainingPage: React.FC = () => {\n return (\n \n \n

    Training Dashboard

    \n
    \n \n \n \n
    \n );\n};\n\nexport default TrainingPage;\n\nexport const TrainingPageContent: React.FC = () => {\n const defaultProgress: string = 'N/A';\n const userContext = useContext(UserContext);\n const { user } = userContext;\n const { data } = useGetUserTrainingStats(true, user?.id);\n\n const progress: string = useMemo(() => {\n let percent: number | undefined;\n if (data) {\n const total: number =\n data.completedCount + data.inProgressCount + data.toDoCount;\n percent = (data.completedCount / total) * 100;\n }\n return typeof percent === 'number' && isFinite(percent)\n ? formatter.format(percent) + '%'\n : defaultProgress;\n }, [data]);\n\n return (\n \n \n \n \n \n \n {/* Training Pie Chart */}\n \n \n \n \n \n \n \n \n {progress}\n \n Overall Progress\n \n \n \n \n \n \n {user && }\n \n \n \n \n \n \n {/* Training */}\n \n \n \n \n {/* \n \n */}\n \n );\n};\n","import React, { useLayoutEffect, useMemo, useRef, useState } from 'react';\nimport { Box as NivoBox } from '@nivo/core';\nimport { ResponsivePie } from '@nivo/pie';\nimport ResizeObserver from 'resize-observer-polyfill';\n\nimport { useTimeout } from '../../../common/timeout.hook';\nimport { DashboardChartData } from '../Dashboard.interface';\nimport styled from 'styled-components';\n\nconst StyledDiv = styled.div`\n width: 100%;\n height: 100%;\n`;\n\nexport interface DashboardChartProps {\n data: DashboardChartData | undefined;\n}\n\nconst DashboardChart: React.FC = (\n props: DashboardChartProps\n) => {\n const { data } = props;\n const containerRef = useRef(null);\n const [widthDiff, setWidthDiff] = useState(0);\n const [observer, setObserver] = useState();\n const [debounceUpdate] = useTimeout();\n const isEmpty = !data || data.total === 0;\n\n const margin: NivoBox = useMemo(() => {\n return { top: 30, bottom: 30, right: 30 + widthDiff, left: 30 + widthDiff };\n }, [widthDiff]);\n\n const pieData = useMemo(() => {\n const { assigned = 0, dueSoon = 0, overdue = 0 } = data || {};\n return [\n { id: 'Assigned', label: `assigned (${assigned})`, value: assigned },\n { id: 'Due Soon', label: `due soon (${dueSoon})`, value: dueSoon },\n { id: 'Overdue', label: `overdue (${overdue})`, value: overdue }\n ];\n }, [data]);\n\n const updateSize = () => {\n const { current: el } = containerRef;\n // get the element that contains the chart\n const g: SVGGElement | null = el?.querySelector('svg > g') || null;\n if (!el || !g) {\n return;\n }\n const elRect: DOMRect = el.getBoundingClientRect();\n const gRect: DOMRect = g.getBoundingClientRect();\n const diff: number = elRect.width - gRect.width;\n const adiff: number = Math.ceil(Math.abs(diff));\n const widthDiff: number = adiff < 3 ? 10 : diff < 0 ? adiff : 0;\n setWidthDiff(widthDiff);\n };\n\n useLayoutEffect(() => {\n observer?.disconnect();\n const ob: ResizeObserver = new ResizeObserver(() => {\n debounceUpdate(() => updateSize(), 100);\n });\n setObserver(ob);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useLayoutEffect(() => {\n const { current: el } = containerRef;\n if (el && observer) {\n observer.observe(el);\n }\n }, [observer]);\n\n return !data ? null : (\n \n {isEmpty ? (\n \n ) : (\n \n )}\n \n );\n};\n\nexport default DashboardChart;\n","import React, { useState, useEffect } from 'react';\n\nimport { TaskSummaryItem } from '../../tasks/Task.interface';\nimport { getProductEntityName } from '../../products/Product.config';\nimport { getOrdinalColorScale } from '@nivo/colors';\nimport { ResponsiveBar } from '@nivo/bar';\nimport { DashboardStat } from '../Dashboard.interface';\nimport styled from 'styled-components';\n\nconst StyledDiv = styled.div`\n height: 100%;\n`;\n\nexport interface DashboardItemGraphProps {\n itemList: TaskSummaryItem[];\n}\n\nexport const convertToProductEntityName = (workFlowName: string | null) => {\n switch (workFlowName) {\n case 'user-need':\n return getProductEntityName('userNeed');\n case 'design-output':\n return getProductEntityName('designOutput');\n case 'design-input':\n return getProductEntityName('designInput');\n case 'design-verification':\n return getProductEntityName('verification');\n case 'design-validation':\n return getProductEntityName('validation');\n case 'design-spec':\n return getProductEntityName('designSpec');\n }\n};\n\nconst DashboardItemGraph: React.FC = (\n props: DashboardItemGraphProps\n) => {\n const { itemList } = props;\n const [items, setItems] = useState([]);\n const isEmpty = items.length === 0 || items.every(item => item.value === 0);\n\n useEffect(() => {\n if (itemList) {\n const allItems: DashboardStat[] = (itemList || []).map(\n (item: TaskSummaryItem) => {\n return {\n entity: convertToProductEntityName(item.taskTypeName) || 'Unknown',\n value: item.total\n };\n }\n );\n setItems(allItems);\n }\n }, [itemList]);\n\n return (\n \n {isEmpty ? (\n \n ) : (\n {\n if (Math.floor(parseInt(`${e}`)) !== e) {\n return '';\n }\n return `${e}`;\n }\n }}\n colors={getOrdinalColorScale(\n [\n '#b3b3ff',\n '#d9d9d9',\n '#99ccff',\n '#f47560',\n 'rgb(241, 225, 91)',\n '#61cdbb'\n ],\n 'index'\n )}\n borderColor={{ from: 'color', modifiers: [['darker', 1.6]] }}\n axisTop={null}\n axisRight={null}\n axisLeft={{\n tickSize: 5,\n tickPadding: 5,\n tickRotation: 0,\n legendPosition: 'middle',\n legendOffset: -100\n }}\n labelSkipWidth={12}\n labelSkipHeight={12}\n labelTextColor={{ from: 'color', modifiers: [['darker', 1.6]] }}\n animate={true}\n />\n )}\n \n );\n};\n\nexport default DashboardItemGraph;\n","import React from 'react';\nimport { useHistory } from 'react-router';\nimport styled from 'styled-components';\nimport {\n Box,\n Card,\n LinearProgress,\n Link,\n ListItemText,\n ListItemTextProps,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n Tooltip,\n TableHead,\n TableRow,\n TableSortLabel\n} from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\nimport { TaskStatusLabel as TaskStatusLabelV2 } from '@sierralabs/workflow-ui';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport CardContent from '../../../common/card/CardContent';\nimport TaskStatusLabel from '../../../common/TaskStatusLabel';\nimport { TaskSummaryItem } from '../../tasks/Task.interface';\nimport {\n DashboardChartData,\n DashboardItem,\n DashboardItemColumn\n} from '../Dashboard.interface';\nimport DashboardChart from './DashboardChart';\nimport DashboardItemGraph from './DashboardItemGraph';\n\nconst StyledCardContent = styled(CardContent)`\n position: relative;\n height: 360px;\n /* use class for image container to center the image */\n .img-empty-container {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-bottom: 48px;\n }\n /* use class for images to properly center and adjust its size */\n .img-empty {\n width: 100%;\n padding: 0 8px;\n max-width: 320px;\n }\n .content {\n padding: 8px;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n`;\n\nconst StyledTableRow = styled(TableRow)`\n .MuiTableCell-root {\n padding-top: 2px;\n padding-bottom: 2px;\n }\n .MuiListItemText-primary {\n white-space: normal;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n`;\n\nconst StyledListItemText = (props: ListItemTextProps) => (\n \n);\n\nexport type DashboardCardOrder = 'title' | 'status';\n\nexport interface BaseDashboardCardProps {\n items: DashboardItem[];\n itemList?: TaskSummaryItem[];\n chart?: DashboardChartData;\n useGraph?: boolean;\n useItemGraph?: boolean;\n total?: number;\n isLoading?: boolean;\n title: string;\n icon?: React.ReactNode;\n emptyState?: React.ReactNode;\n page?: number;\n limit?: number;\n orderDirection?: string;\n setPage?: (page: number) => void;\n setOrder?: (order: DashboardCardOrder) => void;\n isActive?: (order: DashboardCardOrder) => boolean;\n setOrderDirection?: (orderDirection?: 'ASC' | 'DESC') => void;\n}\n\nconst BaseDashboardCard: React.FC = (\n props: BaseDashboardCardProps\n) => {\n const {\n icon,\n items,\n itemList,\n useGraph = true,\n useItemGraph = false,\n total,\n chart,\n isLoading = false,\n emptyState = 'No pending tasks.',\n title,\n page = 0,\n limit = 10,\n orderDirection,\n setPage,\n setOrder,\n isActive,\n setOrderDirection\n } = props;\n const history = useHistory();\n\n const handleSort = (column: DashboardCardOrder) => {\n setOrder?.(column);\n setOrderDirection?.(orderDirection === 'ASC' ? 'DESC' : 'ASC');\n };\n\n const getSortDirection = (column: DashboardCardOrder): 'asc' | 'desc' => {\n return isActive?.(column) && orderDirection === 'DESC' ? 'desc' : 'asc';\n };\n\n const isEmpty = useItemGraph\n ? itemList?.every(item => item.total === 0)\n : chart?.total === 0;\n\n return (\n \n \n {icon}\n {title} {typeof total === 'number' ? `(${total})` : undefined}\n \n {useGraph && (\n \n {useItemGraph ? (\n \n ) : (\n \n )}\n {isEmpty && (\n \n You're all caught up!\n \n )}\n \n )}\n {!isEmpty && (\n \n \n \n \n \n handleSort('title')}\n >\n \n \n \n \n handleSort('status')}\n >\n \n \n \n \n \n \n {isLoading && (\n \n \n \n \n \n )}\n {!isLoading && items.length === 0 && (\n \n {emptyState}\n \n )}\n {items.map((item: DashboardItem) => (\n {\n if (item.to) {\n history.push(item.to);\n } else {\n item.onClick?.();\n }\n }}\n >\n {item.columns.map(\n (column: DashboardItemColumn, index: number) => (\n \n )\n )}\n \n {item.taskV2 ? (\n \n ) : (\n \n )}\n \n \n ))}\n \n
    \n
    \n )}\n\n {typeof total === 'number' && total > (page + 1) * limit && (\n \n setPage?.(page + 1)}\n >\n Load More\n \n \n )}\n
    \n );\n};\n\nexport default BaseDashboardCard;\n\nexport interface ColumnItemProps {\n column: DashboardItemColumn;\n type?: string;\n}\n\nexport const ColumnItem: React.FC = (\n props: ColumnItemProps\n) => {\n const { column, type } = props;\n return (\n \n \n \n \n \n );\n};\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useHistory } from 'react-router';\nimport { Assignment as AssignmentIcon } from '@material-ui/icons';\nimport { StateNodeType } from '@sierralabs/workflow';\nimport {\n Task as TaskV2,\n useFindTasks,\n useTaskRedirect as useTaskV2Redirect\n} from '@sierralabs/workflow-ui';\n\nimport AppSnackbar from '../../common/AppSnackbar';\nimport { FetchError } from '../../common/api/api';\nimport { formatDate } from '../../common/formatter';\nimport { useUserContext } from '../../user/User.context';\nimport { useGetCurrentUserTasks } from '../../user/User.hooks';\nimport { DashboardItem } from '../dashboard/Dashboard.interface';\nimport BaseDashboardCard, {\n DashboardCardOrder\n} from '../dashboard/components/BaseDashboardCard';\nimport { TaskTypeEntity } from '../task-types/TaskType.interface';\nimport { useTaskRedirect } from '../tasks/Task.hooks';\nimport { Task } from '../tasks/Task.interface';\nimport { parseTaskStatus } from '../tasks/task.helper';\n\n// types to use task.entityId instead of task.key\n// task.entityId contains {prefix}-{actual id of entity}\n// task.key contains {prefix}-{increment id}\nconst entityIdType = [\n TaskTypeEntity.Cause,\n TaskTypeEntity.Control,\n TaskTypeEntity.Action\n] as string[];\n\nconst orderMap: { [key in DashboardCardOrder]: string } = {\n title: 'task.key',\n status: 'task.status'\n};\n\n// handle both Task and TaskV2 types\ntype TaskItem = { version: 1; task: Task } | { version: 2; task: TaskV2 };\n\nconst AdminToDoCard: React.FC = () => {\n const history = useHistory();\n const limit: number = 5;\n const [error, setError] = useState();\n const [page, setPage] = useState(0);\n const [order, setOrder] = useState();\n const [orderDirection, setOrderDirection] = useState<\n 'ASC' | 'DESC' | undefined\n >();\n const [tasks, setTasks] = useState([]);\n const { user } = useUserContext();\n const {\n data,\n isLoading: isFetching,\n error: fetchError,\n get\n } = useGetCurrentUserTasks();\n // find task v2\n const {\n taskList,\n isLoading: isFindingTasks,\n error: findError,\n findTasks\n } = useFindTasks();\n const [selectedTask, setSelectedTask] = useState();\n const { path, result, redirect, getTaskEntity } =\n useTaskRedirect(selectedTask);\n // redirect task v2\n const { redirect: redirectV2 } = useTaskV2Redirect();\n const isLoading = result.isLoading || isFetching || isFindingTasks;\n // use the highest total value for the Load More button\n const total =\n !data && !taskList\n ? undefined\n : Math.max(data?.total || 0, taskList?.total || 0);\n\n const items: DashboardItem[] = useMemo(() => {\n return tasks.map((taskItem): DashboardItem => {\n // task v2\n if (taskItem.version === 2) {\n const { task } = taskItem;\n const taskKey = task.key || task.parent?.key;\n const taskType = task.taskType || task.parent?.taskType;\n return {\n id: `task-v2-${task.id}`,\n type: taskType?.label,\n taskV2: task,\n onClick: () => redirectV2(task),\n columns: [\n {\n primary: `${taskKey} / ${task.name}`,\n secondary: formatDate(task.modified, true)\n }\n ]\n };\n }\n // task v1\n const { task } = taskItem;\n const taskType = task.taskType || task.parent?.taskType;\n const targetEntity = taskType?.targetEntity || '';\n const shouldUseEntityId = entityIdType.includes(targetEntity);\n const taskKey = task.key || task.parent?.key;\n const key = (shouldUseEntityId ? task.entityId : '') || taskKey;\n return {\n id: `task-v1-${task.id || 0}`,\n type: taskType?.label,\n task,\n onClick: () => setSelectedTask(task),\n columns: [\n {\n primary: `${key} / ${task.name}`,\n secondary: formatDate(task.modified, true)\n }\n ]\n };\n });\n }, [tasks, redirectV2]);\n\n const sortTasks = useCallback(\n (tasks: TaskItem[]) => {\n return Array.from(tasks).sort((aItem, bItem) => {\n let a = aItem.task;\n let b = bItem.task;\n if (orderDirection === 'DESC') {\n const temp = a;\n a = b;\n b = temp;\n }\n switch (order) {\n case 'task.key': {\n const aLabel = a.key || a.parent?.key || a.name;\n const bLabel = b.key || b.parent?.key || b.name;\n return aLabel === bLabel\n ? (a.id || 0) - (b.id || 0)\n : aLabel > bLabel\n ? 1\n : -1;\n }\n case 'task.status': {\n const aStatus = parseTaskStatus(a.status || '');\n const bStatus = parseTaskStatus(b.status || '');\n return aStatus === bStatus ? 0 : aStatus > bStatus ? 1 : -1;\n }\n }\n return +a.created - +b.created;\n });\n },\n [order, orderDirection]\n );\n\n const saveTasks = useCallback(\n (newTaskItems: TaskItem[]) => {\n setTasks(taskItems => {\n const newItems = newTaskItems.filter(newTaskItem => {\n return !taskItems.some(taskItem => {\n return (\n taskItem.version === newTaskItem.version &&\n taskItem.task.id === newTaskItem.task.id\n );\n });\n });\n return sortTasks(newItems.concat(taskItems));\n });\n },\n [sortTasks]\n );\n\n // find tasks v1\n useEffect(() => {\n get({\n page,\n limit,\n excludeTypes: [StateNodeType.Final],\n includeEntityId: true\n });\n }, [get, page, limit]);\n\n // find tasks v2\n useEffect(() => {\n findTasks({\n page,\n limit,\n assigneeId: user?.id,\n excludeTypes: [StateNodeType.Final]\n });\n }, [limit, page, user?.id, findTasks]);\n\n // merge task v1\n useEffect(() => {\n if (data) {\n saveTasks(data.data.map(task => ({ version: 1, task })));\n }\n }, [data, saveTasks]);\n\n // merge task v2\n useEffect(() => {\n if (taskList) {\n saveTasks(taskList.data.map(task => ({ version: 2, task })));\n }\n }, [taskList, saveTasks]);\n\n useEffect(() => {\n if (selectedTask) {\n path ? history.push(path) : getTaskEntity();\n }\n }, [history, path, selectedTask, getTaskEntity]);\n\n useEffect(() => {\n redirect && history.push(redirect);\n }, [redirect, history]);\n\n useEffect(() => {\n setError(fetchError || findError || result.error);\n }, [fetchError, findError, result.error]);\n\n return (\n <>\n }\n title='To-do List'\n emptyState='No To-do Items'\n page={page}\n limit={limit}\n orderDirection={orderDirection}\n setPage={setPage}\n setOrderDirection={setOrderDirection}\n isActive={(o: DashboardCardOrder) => orderMap[o] === order}\n setOrder={(order: DashboardCardOrder) => setOrder(orderMap[order])}\n />\n setError(undefined)}\n >\n {error?.message}\n \n \n );\n};\n\nexport default AdminToDoCard;\n","import { ApiParams } from '@sierralabs/react-material-ui';\nimport { useCallback } from 'react';\nimport {\n ApiResult,\n FetchApiCallback,\n useApiDelete,\n useApiPatch,\n useApiGet,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport { useDownloadBlob } from '../../common/blob.hook';\nimport { useIdSearchableFetch } from '../../common/entityId.hooks';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport { Capa, CapaStat } from './Capa.interface';\n\nconst timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\nexport function useGetCapaList(): [\n ApiResult>,\n FetchApiCallback\n] {\n const { data, isLoading, error, get } =\n useApiGet>('capa');\n const getCapaList = useIdSearchableFetch(get, {\n from: 'filter',\n entity: WorkflowEntity.Capa\n });\n return [{ data, isLoading, error }, getCapaList];\n}\n\nexport function useGetCapa(id: number): [ApiResult, FetchApiCallback] {\n const { data, isLoading, error, get } = useApiGet('capa/' + id);\n return [{ data, isLoading, error }, get];\n}\n\nexport function useCreateCapa(): [ApiResult, FetchApiCallback] {\n const { data, isLoading, error, post } = useApiPost('capa/');\n return [{ data, isLoading, error }, post];\n}\n\nexport function useUpdateCapa(id: number): [ApiResult, FetchApiCallback] {\n const { data, isLoading, error, patch } = useApiPatch(`capa/${id}`);\n return [{ data, isLoading, error }, patch];\n}\nexport function useExportCapaDocument(\n id: number\n): [\n ApiResult,\n (extension: 'docx' | 'pdf') => void,\n (fileName: string) => void\n] {\n const { get, ...result } = useApiGet(`capa/${id}/export`);\n const { response } = result;\n const { setBlob, downloadDocument } = useDownloadBlob(response);\n\n const getDocument = useCallback(\n (extension: 'docx' | 'pdf') => {\n // remove old document\n setBlob(undefined);\n get({ extension, timeZone });\n },\n [get]\n );\n\n return [result, getDocument, downloadDocument];\n}\n\nexport function useDeleteCapa(): [ApiResult, FetchApiCallback] {\n const { data, isLoading, error, del } = useApiDelete('capa/');\n return [{ data, isLoading, error }, del];\n}\n\nexport function useFindCapaByTask(taskId: number) {\n const { data, isLoading, error, get } = useApiGet(\n 'capa/task/' + taskId\n );\n return { data, isLoading, error, get };\n}\n\nexport function useGetCapaStats(): [ApiResult, FetchApiCallback] {\n const { get, ...result } = useApiGet('capa/stats');\n return [result, get];\n}\n","import React, { useState, useEffect } from 'react';\nimport { StateNodeConfig } from '@sierralabs/workflow';\n\nimport { useGetCapaStats } from '../capa/Capa.hook';\nimport { parseTaskStatus } from '../tasks/task.helper';\nimport { BarCustomLayerProps, BarLayer, ResponsiveBar } from '@nivo/bar';\nimport { BoxLegendSvg } from '@nivo/legends';\nimport { CapaStat } from '../capa/Capa.interface';\nimport { useFindWorkflowVersionByEntity } from '../workflow/Workflow.hooks';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\n\nconst CustomLegend = (props: BarCustomLayerProps) => {\n const { legendData, innerHeight, width } = props;\n // get legend props\n const legend = legendData[0][0];\n return legend.data ? (\n <>\n \n \n \n \n ) : (\n <>\n );\n};\n\nconst CapaChart: React.FC = () => {\n const [stats, setStats] = useState([]);\n const [{ data }, get] = useGetCapaStats();\n const { workflowVersion, findWorkflowVersion } =\n useFindWorkflowVersionByEntity(WorkflowEntity.Capa);\n\n useEffect(() => {\n findWorkflowVersion();\n }, [findWorkflowVersion]);\n\n useEffect(() => {\n get();\n }, [get]);\n\n const formattedDate = (date: string) => {\n const newDate = new Date(date);\n const year: number = newDate.getFullYear();\n const month: string = ('0' + (newDate.getMonth() + 1)).slice(-2);\n return `${year}-${month}`;\n };\n\n function handleSetStats(data: CapaStat[]) {\n const formattedData = data.map(stat => ({\n date: formattedDate(stat.date),\n status: parseTaskStatus(stat.status) || 'Unknown',\n value: stat.value\n }));\n\n const result: any = {};\n // Change Capa data structure to gather all stats that has same date value on a single object\n formattedData.map(stat => {\n const existingRecord = result[stat.date];\n if (existingRecord) {\n const updatedExistingRecord = {\n ...existingRecord,\n [stat.status]: stat.value\n };\n return (result[stat.date] = updatedExistingRecord);\n }\n result[stat.date] = {\n date: stat.date,\n [stat.status]: stat.value\n };\n });\n setStats(Object.values(result));\n }\n\n useEffect(() => {\n if (!data) {\n return;\n }\n handleSetStats(data);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data]);\n\n const capaStatuses = Array.from(\n new Set(data?.map(stat => parseTaskStatus(stat.status)))\n ); // Remove duplicate value of status\n\n const getColor = (status: string) => {\n const config = workflowVersion?.config as StateNodeConfig | undefined;\n const state = config?.states?.find(state => state.name === status);\n return state?.meta?.color?.backgroundColor || '#efefef';\n };\n\n return (\n
    \n {\n if (typeof bar.id === 'string') {\n return getColor(bar.id);\n }\n }}\n defs={[\n {\n id: 'dots',\n type: 'patternDots',\n background: 'inherit',\n color: '#38bcb2',\n size: 4,\n padding: 1,\n stagger: true\n },\n {\n id: 'lines',\n type: 'patternLines',\n background: 'inherit',\n color: '#eed312',\n rotation: -45,\n lineWidth: 6,\n spacing: 10\n }\n ]}\n groupMode='grouped'\n borderColor={{ from: 'color', modifiers: [['darker', 1.6]] }}\n axisTop={null}\n axisRight={null}\n axisLeft={{\n format: e => {\n if (Math.floor(parseInt(`${e}`)) !== e) {\n return '';\n }\n return `${e}`;\n }\n }}\n axisBottom={{\n tickSize: 5,\n tickPadding: 5,\n tickRotation: 0,\n legendPosition: 'middle',\n legendOffset: 32\n }}\n labelSkipWidth={12}\n labelSkipHeight={12}\n labelTextColor={{ from: 'color', modifiers: [['darker', 1.6]] }}\n enableGridX={true}\n layers={\n ['grid', 'axes', 'bars', 'markers', CustomLegend] as BarLayer[]\n }\n legends={[\n {\n dataFrom: 'keys',\n data: capaStatuses.map((status, index) => ({\n color: getColor(status),\n value: index,\n id: status,\n label: status?.length > 16 ? status.slice(0, 16) + '...' : status\n })),\n anchor: 'bottom-left',\n direction: 'row',\n justify: false,\n itemsSpacing: 20,\n itemWidth: 110,\n itemHeight: 20,\n itemDirection: 'left-to-right',\n itemOpacity: 0.85,\n symbolSize: 20,\n symbolShape: 'circle',\n effects: [\n {\n on: 'hover',\n style: {\n itemOpacity: 1\n }\n }\n ]\n }\n ]}\n animate={true}\n />\n
    \n );\n};\n\nexport default CapaChart;\n","import React, { useEffect, useState } from 'react';\nimport { useHistory } from 'react-router-dom';\nimport { ResponsiveBar } from '@nivo/bar';\nimport { StateNodeConfig } from '@sierralabs/workflow';\n\nimport { parseTaskStatus } from '../tasks/task.helper';\nimport { DocumentStat } from '../documents/Document.interface';\nimport { useGetDocumentStats } from '../documents/Document.hook';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport {\n useFindWorkflowsByTaskTypeTarget,\n useMultipleWorkflowStatuses\n} from '../workflow/Workflow.hooks';\nimport { AppSnackbar } from '@sierralabs/react-material-ui';\nimport { TaskTypeEntity } from '../task-types/TaskType.interface';\n\nconst DocumentChart: React.FC = () => {\n const history = useHistory();\n const [stats, setStats] = useState([]);\n const [{ data }, get] = useGetDocumentStats();\n const { workflows, loadingError, findWorkflows } =\n useFindWorkflowsByTaskTypeTarget(TaskTypeEntity.File);\n const paths = useMultipleWorkflowStatuses(workflows);\n\n useEffect(() => {\n get();\n }, [get]);\n\n useEffect(() => {\n findWorkflows();\n }, [findWorkflows]);\n\n useEffect(() => {\n const allStats: DocumentStat[] = (data || []).reduce((results, item) => {\n const existingStatus = results.find(\n result => result.status === parseTaskStatus(item.status)\n );\n if (existingStatus) {\n existingStatus.value = existingStatus.value + item.value;\n } else {\n results.push({\n ...item,\n status: parseTaskStatus(item.status) || 'Unknown'\n });\n }\n return results;\n }, [] as DocumentStat[]);\n\n // workflow paths\n for (const path of paths) {\n // if status exists, ignore\n const status: string = parseTaskStatus(path) || 'Unknown';\n if (!allStats.find((stat: DocumentStat) => stat.status === status)) {\n allStats.push({ value: 0, status });\n }\n }\n\n setStats(allStats);\n }, [data, paths]);\n\n const getColor = (barData: DocumentStat) => {\n let state: StateNodeConfig | undefined;\n for (const workflow of workflows || []) {\n const config = workflow.config as StateNodeConfig | undefined;\n state = config?.states?.find(state => state.name === barData.status);\n if (state) {\n break;\n }\n }\n return state?.meta?.color?.backgroundColor || '#efefef';\n };\n\n return (\n
    \n getColor(bar.data)}\n onClick={data => {\n const status = data.data.status;\n history.push(`/portal/documents?status=${status}`);\n }}\n borderColor={{ from: 'color', modifiers: [['darker', 1.6]] }}\n axisTop={null}\n axisRight={null}\n axisBottom={{\n tickSize: 5,\n tickPadding: 5,\n tickRotation: 0,\n legend: '# of Documents',\n legendPosition: 'middle',\n legendOffset: 64\n }}\n axisLeft={{\n tickSize: 5,\n tickPadding: 5,\n tickRotation: 0,\n legendPosition: 'middle',\n legendOffset: -100\n }}\n labelSkipWidth={12}\n labelSkipHeight={12}\n labelTextColor={{ from: 'color', modifiers: [['darker', 1.6]] }}\n animate={true}\n />\n {loadingError && (\n \n Error finding a published workflow for '{WorkflowEntity.File}'\n \n )}\n
    \n );\n};\n\nexport default DocumentChart;\n","import React from 'react';\nimport { useHistory } from 'react-router-dom';\n\nimport { ResponsivePie } from '@nivo/pie';\n\nimport { UserStat } from '../../user/User.interface';\n\nexport interface EmployeeChartProps {\n stats: UserStat[];\n}\n\nconst EmployeeChart: React.FC = (\n props: EmployeeChartProps\n) => {\n const history = useHistory();\n const { stats } = props;\n const chartColors = ['#61cdbb', '#F1E25B', '#f47560'];\n const formattedStats = stats.map((stat, index) => ({\n id: stat.id,\n label: stat.label,\n value: stat.value,\n color: chartColors[index]\n }));\n\n return (\n
    \n {\n const status = data.id;\n history.push(`/portal/admin/trainees?status=${status}`);\n }}\n activeOuterRadiusOffset={8}\n borderWidth={1}\n borderColor={{ from: 'color', modifiers: [['darker', 0]] }}\n arcLinkLabelsSkipAngle={10}\n arcLinkLabelsTextOffset={6}\n arcLinkLabelsTextColor='#333333'\n arcLinkLabelsThickness={1}\n arcLinkLabelsColor={{ from: 'color' }}\n arcLabelsSkipAngle={10}\n arcLabelsTextColor='#333333'\n legends={[\n {\n data: formattedStats.map(stat => ({\n id: stat.id,\n label: stat.id,\n color: stat.color\n })),\n anchor: 'bottom',\n direction: 'row',\n translateY: 56,\n itemWidth: 100,\n itemHeight: 18,\n itemTextColor: '#999',\n symbolSize: 18,\n symbolShape: 'circle',\n effects: [\n {\n on: 'hover',\n style: {\n itemTextColor: '#000'\n }\n }\n ]\n }\n ]}\n />\n
    \n );\n};\n\nexport default EmployeeChart;\n","import React, { useEffect } from 'react';\nimport { Card } from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\nimport { Group as GroupIcon } from '@material-ui/icons';\n\nimport CardTitle from '../../common/card/CardTitle';\nimport CardContent from '../../common/card/CardContent';\nimport { useGetEmployeeStats } from '../../user/User.hooks';\nimport EmployeeChart from './EmployeeChart';\n\nconst EmployeeChartCard: React.FC = () => {\n const [{ data }, get] = useGetEmployeeStats();\n const { totalUsers = 0, stats = [] } = data || {};\n\n useEffect(() => {\n get();\n }, [get]);\n\n return (\n \n \n \n Employee Training Compliance\n \n \n
    \n \n \n Total Users assigned Training: {totalUsers}\n \n \n \n
    \n
    \n
    \n );\n};\n\nexport default EmployeeChartCard;\n","import React, { useContext } from 'react';\nimport styled from 'styled-components';\nimport { Card, Grid } from '@material-ui/core';\nimport {\n Group as GroupIcon,\n InsertDriveFile as InsertDriveFileIcon,\n Warning as WarningIcon\n} from '@material-ui/icons';\n\nimport CardContent from '../../common/card/CardContent';\nimport CardTitle from '../../common/card/CardTitle';\nimport ErrorView from '../../common/views/ErrorView';\nimport PageTemplate from '../../common/page-template/PageTemplate';\nimport PageTemplateDashboard from '../../common/page-template/PageTemplateDashboard';\nimport PageTemplateHeader from '../../common/page-template/PageTemplateHeader';\nimport { UserContext } from '../../user/User.context';\nimport TrainingLogCard from '../training/cards/TrainingLogCard';\nimport AdminToDoCard from './AdminToDoCard';\nimport CapaChart from './CapaChart';\nimport DocumentChart from './DocumentChart';\nimport EmployeeChartCard from './EmployeeChartCard';\n\nconst StyledGrid = styled(Grid)`\n .MuiGrid-item {\n .MuiCard-root {\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n .MuiCardContent-root {\n flex: 1;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n & > div {\n width: 100%;\n }\n }\n }\n`;\n\nconst AdminDashboardPage: React.FC = () => {\n return (\n \n \n

    Admin Dashboard

    \n
    \n \n \n \n
    \n );\n};\n\nexport default AdminDashboardPage;\n\nexport const AdminDashboardPageContent: React.FC = () => {\n const { user } = useContext(UserContext);\n const noRoles: boolean = user?.roles?.length === 0;\n if (noRoles) {\n return (\n }\n />\n );\n }\n return (\n \n \n \n \n \n \n {/* Employee Pie Chart */}\n \n \n \n {/* Employee Pie Chart */}\n \n \n \n CAPA Stats\n \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n {/* Document Stats Bar Chart */}\n \n \n \n Documentation Status\n \n \n \n \n \n \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n
    \n );\n};\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { FileCopy as FileCopyIcon } from '@material-ui/icons';\n\nimport { FetchError } from '../../../common/api/api';\nimport { formatDate } from '../../../common/formatter';\nimport {\n useGetUserPendingDocuments,\n useGetUserPendingDocumentStats\n} from '../../../user/User.hooks';\nimport { FileDto } from '../../documents/Document.interface';\nimport { Task } from '../../tasks/Task.interface';\nimport { DashboardCardProps, DashboardItem } from '../Dashboard.interface';\nimport BaseDashboardCard, { DashboardCardOrder } from './BaseDashboardCard';\nimport { parseTaskStatus } from '../../tasks/task.helper';\n\nconst orderMap: { [key in DashboardCardOrder]: string } = {\n title: 'file.name',\n status: 'task.status'\n};\n\nconst DashboardDocumentCard: React.FC = (\n props: DashboardCardProps\n) => {\n const limit: number = 10;\n const { user, search: searchProp, onError } = props;\n const [page, setPage] = useState(0);\n const [order, setOrder] = useState();\n const [orderDirection, setOrderDirection] = useState<\n 'ASC' | 'DESC' | undefined\n >();\n const [search, setSearch] = useState(searchProp);\n const [files, setFiles] = useState([]);\n const {\n data: chart,\n isLoading: isLoadingChart,\n error: chartError\n } = useGetUserPendingDocumentStats(user.id, true);\n const {\n data,\n isLoading: isLoadingFiles,\n error: filesError,\n get\n } = useGetUserPendingDocuments(user.id);\n const isLoading: boolean = isLoadingFiles || isLoadingChart;\n const error: FetchError | undefined = filesError || chartError;\n\n const items: DashboardItem[] = useMemo(() => {\n return files.map((file: FileDto) => {\n const task = file.task;\n const subTask: Task | undefined = task?.children?.[0] || task;\n return {\n id: file.id,\n task: task,\n type: task?.taskType?.label,\n to: task && `/portal/documents/file/task/${task?.id}`,\n columns: [\n {\n primary: `${task?.key || task?.parent?.key} / ${file.name}`,\n secondary: formatDate(subTask?.modified, true)\n }\n ]\n } as DashboardItem;\n });\n }, [files]);\n\n const sortFiles = useCallback(\n (files: FileDto[]): FileDto[] => {\n return Array.from(files).sort((a: FileDto, b: FileDto) => {\n if (orderDirection === 'DESC') {\n const temp: FileDto = a;\n a = b;\n b = temp;\n }\n switch (order) {\n case 'file.name': {\n const { name: aName = '', id: aId } = a;\n const { name: bName = '', id: bId } = b;\n return aName === bName ? aId - bId : aName > bName ? 1 : -1;\n }\n case 'task.status': {\n const { status: aStatus = '' } = a.task || {};\n const { status: bStatus = '' } = b.task || {};\n return parseTaskStatus(aStatus) > parseTaskStatus(bStatus) ? 1 : -1;\n }\n }\n\n return a.task && b.task ? +a.task.created - +b.task.created : 0;\n });\n },\n [order, orderDirection]\n );\n\n // reset when searching\n useEffect(() => {\n setFiles([]);\n setPage(0);\n setSearch(searchProp);\n }, [searchProp]);\n\n useEffect(() => {\n get({ page, limit, search: search || '' });\n }, [get, page, limit, search]);\n\n useEffect(() => {\n if (data) {\n const newFiles: FileDto[] = data.data\n .filter((newFile: FileDto) => {\n return !files.find((file: FileDto) => file.id === newFile.id);\n })\n .concat(files);\n setFiles(sortFiles(newFiles));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, sortFiles]);\n\n useEffect(() => {\n if (error) {\n onError?.(error);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n return (\n }\n title='Pending Document Reviews'\n emptyState='No pending Document reviews.'\n page={page}\n limit={limit}\n orderDirection={orderDirection}\n setPage={setPage}\n setOrderDirection={setOrderDirection}\n isActive={(o: DashboardCardOrder) => orderMap[o] === order}\n setOrder={(order: DashboardCardOrder) => setOrder(orderMap[order])}\n />\n );\n};\n\nexport default DashboardDocumentCard;\n","import { useCallback, useEffect, useState } from 'react';\n\nimport api, { ApiParams } from '../../common/api/api';\nimport {\n useApiDelete,\n useApiGet,\n useApiPost,\n useApiPut\n} from '../../common/api/Api.hooks';\nimport { apiResolve } from '../../common/api/apiResolve';\nimport { TaskJiraIssue } from './TaskJiraIssue.interface';\n\nexport function useCreateTaskJiraIssue() {\n const { data, isLoading, error, post } =\n useApiPost('tasks-jira');\n return {\n createdTaskJiraIssue: data,\n creatingTaskJiraIssue: isLoading,\n createError: error,\n createTaskJiraIssue: post\n };\n}\n\n// non-hook implementation\nexport function findTaskJiraIssues(taskId: number, params: ApiParams = {}) {\n const request = api.get(`tasks-jira/${taskId}`, params);\n const result = apiResolve(request);\n return { request, result };\n}\n\nexport function useFindTaskJiraIssue(taskId: number) {\n const { data, isLoading, error, get } = useApiGet(\n `tasks-jira/${taskId}`\n );\n return {\n taskJiraIssues: data,\n loadingTaskJiraIssue: isLoading,\n findError: error,\n findTaskJiraIssues: get\n };\n}\n\nexport function useBulkUpdateTaskJiraIssue() {\n const { data, isLoading, error, put } = useApiPut(`tasks-jira`);\n return {\n updatedTaskJiraIssues: data,\n updatingTaskJiraIssue: isLoading,\n updateError: error,\n updateTaskJiraIssues: put\n };\n}\n\nexport function useDeleteTaskJiraIssue() {\n const [path, setPath] = useState('');\n const { data, isLoading, error, del } = useApiDelete(path);\n useEffect(() => {\n if (path) del();\n }, [path, del]);\n const deleteTaskJiraIssue = useCallback((id: number) => {\n setPath(`tasks-jira/${id}`);\n }, []);\n return {\n deletedJiraIssue: data,\n deletingTaskJiraIssue: isLoading,\n deleteError: error,\n deleteTaskJiraIssue\n };\n}\n","import { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControlLabel,\n LinearProgress,\n TextField,\n Typography\n} from '@material-ui/core';\nimport { Alert, AlertTitle } from '@material-ui/lab';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport {\n useCreateJiraIssue,\n useFindJiraIssues,\n useJiraConnectAPI\n} from '../../../jira-connect/JiraConnect.hooks';\nimport {\n JiraIssue,\n JiraIssueCreateResponse\n} from '../../../jira-connect/JiraConnect.interface';\nimport {\n CreateJiraIssueParams,\n TaskContext\n} from '../../../tasks/Task.machine';\nimport { useCreateTaskJiraIssue } from '../../../tasks/TaskJira.hooks';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .MuiFormControlLabel-root {\n width: 100%;\n }\n`;\n\nconst CreateJiraIssueConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: CreateJiraIssueParams['data'] = invoke.data;\n return (\n \n {\n data.projectId = projectId;\n data.issueTypeId = undefined;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n {\n data.issueTypeId = issueType?.id;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n {\n if (!checked) {\n data.titleTemplate = undefined;\n }\n data.enableTitleTemplate = checked;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n }\n />\n {data.enableTitleTemplate && (\n <>\n \n This allows a custom title that includes the task key and{' '}\n name.\n \n {\n data.titleTemplate = event.target.value;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n \n )}\n {\n data.linkToEntity = checked;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n }\n />\n {\n data.duplicateTitle = checked;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n }\n />\n {\n data.duplicateDescription = checked;\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n />\n }\n />\n \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n padding-left: 4px;\n text-indent: -4px;\n code {\n background: #f4f5fa;\n padding: 2px 5px;\n border-radius: 3px;\n }\n b {\n padding: 0 5px 0 0;\n }\n`;\n\nconst CreateJiraIssueDisplay: React.FC = ({ invoke }) => {\n return (\n \n {invoke.data?.events?.map((event: any, index: number) => (\n
    \n {event.description || event.event}\n
    \n ))}\n
    \n );\n};\n\nconst StyledDialogContent = styled(DialogContent)`\n .MuiTypography-root,\n .MuiAlert-root {\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n`;\n\ninterface CreateJiraIssuePluginDialogProps {\n open: boolean;\n state: State;\n data: CreateJiraIssueParams['data'];\n autoSkip?: boolean;\n onCancel?: () => void;\n onSuccess?: () => void;\n}\n\nconst CreateJiraIssuePluginDialog: React.FC<\n CreateJiraIssuePluginDialogProps\n> = props => {\n const { open, data, state, autoSkip, onCancel, onSuccess } = props;\n const stateRef = useRef(state);\n const onSuccessRef = useRef(onSuccess);\n const [issue, setIssue] = useState();\n const [result, setResult] = useState();\n const { isAvailable } = useJiraConnectAPI();\n const [foundResult, findIssues] = useFindJiraIssues();\n const [createResult, createIssue] = useCreateJiraIssue();\n const {\n createdTaskJiraIssue,\n creatingTaskJiraIssue,\n createError,\n createTaskJiraIssue\n } = useCreateTaskJiraIssue();\n const { projectId, issueTypeId, linkToEntity } = data;\n const createdIssues = foundResult.data;\n const isLoading =\n createResult.isLoading || foundResult.isLoading || creatingTaskJiraIssue;\n const error = createResult.error || foundResult.error || createError;\n\n useEffect(() => {\n stateRef.current = state;\n }, [state]);\n useEffect(() => {\n onSuccessRef.current = onSuccess;\n }, [onSuccess]);\n\n useEffect(() => {\n if (!open) {\n setIssue(undefined);\n setResult(undefined);\n }\n }, [open]);\n\n useEffect(() => {\n if (!isAvailable || !projectId || !issueTypeId) {\n return;\n }\n const { task, taskEntity } = stateRef.current.context;\n\n const summary =\n data.enableTitleTemplate && data.titleTemplate\n ? data.titleTemplate\n .replace(/\\{key\\}/g, task.key || '')\n .replace(/\\{name\\}/g, task.name)\n : task.name;\n\n createIssue({\n fields: {\n summary,\n description: (taskEntity as any)?.description || task.description,\n project: { id: projectId },\n issuetype: { id: issueTypeId }\n }\n });\n }, [\n projectId,\n issueTypeId,\n isAvailable,\n data.enableTitleTemplate,\n data.titleTemplate,\n createIssue\n ]);\n\n useEffect(() => {\n setResult(createResult.data);\n }, [createResult.data]);\n\n useEffect(() => {\n if (result) {\n findIssues({ title: result.key });\n }\n }, [result, findIssues]);\n\n useEffect(() => {\n const issue = createdIssues?.issues[0];\n issue && setIssue(issue);\n }, [createdIssues]);\n\n useEffect(() => {\n if (!issue) {\n return;\n }\n if (!linkToEntity) {\n onSuccessRef.current?.();\n return;\n }\n // link issue\n const taskId = stateRef.current.context.task.id!;\n createTaskJiraIssue({\n taskId,\n key: issue.key,\n summary: issue.fields.summary,\n status: issue.fields.status.name,\n issue: issue\n });\n }, [linkToEntity, issue, createTaskJiraIssue]);\n\n // auot skip if not within jira instance\n useEffect(() => {\n if (!isAvailable && autoSkip) {\n onSuccessRef.current?.();\n }\n }, [autoSkip, isAvailable]);\n\n useEffect(() => {\n if (createdTaskJiraIssue) {\n onSuccessRef.current?.();\n }\n }, [createdTaskJiraIssue]);\n\n return (\n {\n // avoid accidentally cancelling create jira request\n if (!isLoading) {\n onCancel?.();\n }\n }}\n >\n {isLoading && }\n Create Jira Issue\n \n {isLoading && (\n \n {createResult.isLoading\n ? 'Creating Jira Issue...'\n : foundResult.isLoading\n ? `Loading created Jira Issue ${result?.key || '?'}...`\n : creatingTaskJiraIssue\n ? `Linking Jira Issue ${result?.key || '?'}...`\n : 'Loading...'}\n \n )}\n {!isAvailable && (\n \n JIRA Connect API is not available\n Unable to run action and create Jira issue. You can choose to skip\n this action, or open SierraQMS within JIRA and try again to properly\n run this action.\n \n )}\n {error && {error.message}}\n \n \n \n {!isAvailable && (\n onSuccess?.()}\n >\n Skip Action and Proceed\n \n )}\n \n \n );\n};\n\nexport const CreateJiraIssuePlugin: ServicePlugin = {\n src: 'createJiraIssue',\n name: 'Create Jira Issue',\n configurator: CreateJiraIssueConfigurator,\n display: CreateJiraIssueDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as CreateJiraIssueParams['data'];\n return !!(data && data.projectId && data.issueTypeId);\n },\n service: (\n state: State,\n params: CreateJiraIssueParams[] | CreateJiraIssueParams,\n render\n ) => {\n console.log('createJiraIssue params', state, params);\n if (\n state.isSimulation ||\n state.context.skipServicePlugins?.includes(CreateJiraIssuePlugin.src)\n ) {\n return true;\n }\n const pluginParams = Array.isArray(params) ? params[0] : params;\n return new Promise((resolve, reject) => {\n render?.(\n {\n render?.(undefined);\n reject();\n }}\n onSuccess={() => {\n render?.(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n};\n","import { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n IconButton,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Typography\n} from '@material-ui/core';\nimport { Add as AddIcon, Close as CloseIcon } from '@material-ui/icons';\nimport { Alert, AlertTitle } from '@material-ui/lab';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport { useJiraConnectContext } from '../../../jira-connect/JiraConnect.context';\nimport {\n useGetJiraIssueTransitions,\n useTransitionJiraIssue\n} from '../../../jira-connect/JiraConnect.hooks';\nimport { JiraIssueTransition } from '../../../jira-connect/JiraConnect.interface';\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport JiraStatusPicker from '../../../jira-connect/pickers/JiraStatusPicker';\nimport {\n TaskContext,\n TransitionJiraIssueParams\n} from '../../../tasks/Task.machine';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .event-field {\n margin-top: 12px;\n }\n .MuiTableHead-root .MuiTableCell-root {\n padding-left: 4px;\n padding-right: 4px;\n }\n .MuiTableRow-root.dense .MuiTableCell-root {\n padding: 2px 4px;\n }\n`;\n\nconst TransitionJiraIssueConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: TransitionJiraIssueParams['data'] = invoke.data;\n const issues = data.issues || [];\n const disabled = !data.projectId;\n\n const update = (data: TransitionJiraIssueParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n return (\n \n update({ ...data, projectId, issues: [] })}\n />\n \n \n \n \n Issue Type\n Statuses\n \n \n \n \n {issues.length === 0 && (\n \n \n {data.projectId ? (\n 'No items added.'\n ) : (\n <>\n Select a Project to add items.\n \n )}\n \n \n )}\n {issues.map((issue, index) => (\n \n \n {\n issues[index].issueType = issueType;\n issues[index].statuses = undefined;\n update({ ...data, issues });\n }}\n />\n \n \n status.id)}\n textFieldProps={{\n size: 'small',\n label: undefined,\n placeholder: 'Select Statuses'\n }}\n onChange={statuses => {\n issues[index].statuses = statuses;\n update({ ...data, issues });\n }}\n />\n \n \n {\n issues.splice(index, 1);\n update({ ...data, issues });\n }}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n onClick={() => {\n issues.push({});\n update({ ...data, issues });\n }}\n >\n Add Item\n \n \n \n \n Once the Workflow status is reached, the linked Jira issues will\n transition to its first available selected status.\n \n \n
    \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n .icon {\n font-size: 18px;\n margin-top: -3px;\n vertical-align: middle;\n }\n`;\n\nconst TransitionJiraIssueDisplay: React.FC = props => {\n const { invoke } = props;\n const data: TransitionJiraIssueParams['data'] | undefined = invoke.data;\n const issues = data?.issues || [];\n return !data ? (\n <>\n ) : (\n \n
    \n Issues:{' '}\n {issues\n .map(issues => {\n const issueType = issues.issueType?.label;\n const status = (issues.statuses || [])\n .map(status => status.name)\n .join(', ');\n return `${issueType} (${status})`;\n })\n .join(', ') || '?'}\n
    \n
    \n );\n};\n\nconst StyledDialogContent = styled(DialogContent)`\n .MuiTypography-root,\n .MuiAlert-root {\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n`;\n\ninterface TransitionJiraIssueDialogProps {\n open: boolean;\n data: TransitionJiraIssueParams['data'];\n state: State;\n autoSkip?: boolean;\n onCancel?: () => void;\n onSuccess?: () => void;\n}\n\nconst TransitionJiraIssueDialog: React.FC<\n TransitionJiraIssueDialogProps\n> = props => {\n const { open, data, state, autoSkip, onCancel, onSuccess } = props;\n const stateRef = useRef(state);\n stateRef.current = state;\n const onSuccessRef = useRef(onSuccess);\n onSuccessRef.current = onSuccess;\n const [total, setTotal] = useState({ done: 0, skipped: 0 });\n const [isLoading, setIsLoading] = useState(false);\n const [alertMessage, setAlertMessage] = useState();\n const { isAvailable } = useJiraConnectContext();\n const [getTransitionsResult, getJiraIssueTransitions] =\n useGetJiraIssueTransitions();\n const [transitionResult, transitionJiraIssue] = useTransitionJiraIssue();\n const task = stateRef.current.context.task;\n const alertMsg = !isAvailable\n ? 'Unable to run action and transition Jira issue(s). ' +\n 'You can choose to skip this action, or open SierraQMS ' +\n 'within JIRA and try again to properly run this action.'\n : alertMessage;\n const loading =\n isLoading || getTransitionsResult.isLoading || transitionResult.isLoading;\n const filteredJiraIssues = task.jiraIssues?.filter(jiraIssue => {\n return data.issues.some(\n item => item.issueType?.id === jiraIssue.issue.fields.issuetype.id\n );\n });\n const jiraIssuesRef = useRef(filteredJiraIssues);\n jiraIssuesRef.current = filteredJiraIssues;\n\n const handleCancel = () => {\n if (!loading) {\n onCancel?.();\n }\n };\n\n useEffect(() => {\n const dataIssues = data.issues || [];\n if (!isAvailable || dataIssues.length === 0) {\n return;\n }\n\n const run = async () => {\n const selectedIssueTypes = dataIssues\n .map(item => `\"${item.issueType?.label}\"`)\n .join(', ');\n const filteredJiraIssues = jiraIssuesRef.current;\n if (!filteredJiraIssues || filteredJiraIssues.length === 0) {\n setAlertMessage(\n 'There are no linked JIRA issues that match some of the ' +\n `issue type(s): ${selectedIssueTypes}, please link an issue that ` +\n 'matches the given issue type(s) to proceed. You can choose to skip this action.'\n );\n return;\n }\n\n setIsLoading(true);\n setAlertMessage(undefined);\n const promises = filteredJiraIssues.map(async issue => {\n const result = await getJiraIssueTransitions(issue.key);\n const transitions = result?.transitions || [];\n\n const matchedIssues = dataIssues.filter(\n field => field.issueType?.id === issue.issue.fields.issuetype.id\n );\n // get transition based on configuration\n let transition: JiraIssueTransition | undefined;\n for (const field of matchedIssues) {\n if (transition) {\n break;\n } else if (field.issueType?.id !== issue.issue.fields.issuetype.id) {\n continue;\n }\n for (const status of field.statuses || []) {\n transition = transitions.find(\n transition => transition.to.id === status.id\n );\n if (transition) {\n break;\n }\n }\n }\n\n if (transition) {\n // perform transition on this issue\n await transitionJiraIssue(issue.key, transition.id);\n console.debug(\n '[transitionJiraIssue] Issue: %o Transition ID: %o Name: %o',\n issue.key,\n transition.id,\n transition.name\n );\n setTotal(total => ({ ...total, done: total.done + 1 }));\n } else {\n setTotal(total => ({ ...total, skipped: total.skipped + 1 }));\n }\n });\n await Promise.all(promises);\n\n // once done, run onSuccess callback\n setIsLoading(false);\n onSuccessRef.current?.();\n };\n run();\n }, [data, isAvailable, getJiraIssueTransitions, transitionJiraIssue]);\n\n // auto skip if alert message is set\n useEffect(() => {\n if (alertMsg && autoSkip) {\n onSuccessRef.current?.();\n }\n }, [alertMsg, autoSkip]);\n\n return (\n \n {loading && }\n Transition Jira Issue\n \n {loading && (\n <>\n Transitioning Jira Issue(s)...\n \n {total.done} (Done) and{' '}\n {total.skipped} (Skipped) of{' '}\n {filteredJiraIssues?.length || 0} issue(s)\n \n \n )}\n {alertMsg && (\n \n \n {!isAvailable\n ? 'JIRA Connect API is not available'\n : 'Unable to update JIRA issue(s)'}\n \n {alertMsg}\n \n )}\n \n \n \n {alertMsg && (\n onSuccess?.()}\n >\n Skip Action and Proceed\n \n )}\n \n \n );\n};\n\nexport const TransitionJiraIssuePlugin: ServicePlugin =\n {\n src: 'transitionJiraIssue',\n name: 'Transition Jira Issue',\n configurator: TransitionJiraIssueConfigurator,\n display: TransitionJiraIssueDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as TransitionJiraIssueParams['data'];\n return !!(\n data &&\n data.projectId &&\n Array.isArray(data.issues) &&\n data.issues.length > 0 &&\n data.issues.every(issue => {\n return (\n issue.issueType &&\n Array.isArray(issue.statuses) &&\n issue.statuses.length > 0\n );\n })\n );\n },\n service: (\n state: State,\n params: TransitionJiraIssueParams[] | TransitionJiraIssueParams,\n render\n ) => {\n console.log('transitionJiraIssue params', state, params);\n if (\n state.isSimulation ||\n state.context.skipServicePlugins?.includes(\n TransitionJiraIssuePlugin.src\n )\n ) {\n return true;\n }\n const pluginParams = Array.isArray(params) ? params[0] : params;\n return new Promise((resolve, reject) => {\n render?.(\n {\n render?.(undefined);\n resolve(true);\n }}\n onCancel={() => {\n render?.(undefined);\n reject(true);\n }}\n />\n );\n });\n }\n };\n","import { TextField, TextFieldProps } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\nimport React, { useMemo } from 'react';\nimport { useEntityContext } from '../Entity.context';\nimport { ColumnSchema } from '../types/column-schema';\n\nexport interface EntityColumnSelectorProps {\n entity?: string;\n value?: string;\n disabled?: boolean;\n /** Override computed columns. */\n options?: Pick[];\n textFieldProps?: Omit;\n onChange?: (columnName?: string) => void;\n}\n\nconst EntityColumnSelector: React.FC = ({\n entity,\n value,\n disabled,\n options: optionsProp,\n textFieldProps,\n onChange\n}) => {\n const { schemas } = useEntityContext();\n\n const options = useMemo(() => {\n if (optionsProp) {\n return optionsProp;\n }\n const schema = entity\n ? schemas.find(schema => schema.name === entity)\n : undefined;\n return schema ? schema.columns : [];\n }, [optionsProp, entity, schemas]);\n\n const selected = useMemo(() => {\n return value\n ? options.find(option => option.columnName === value)\n : undefined;\n }, [options, value]);\n\n return (\n option.displayName}\n onChange={(_, value) => onChange?.(value?.columnName)}\n renderInput={params => (\n \n )}\n />\n );\n};\nexport default EntityColumnSelector;\n","import { useEffect, useMemo, useRef, useState } from 'react';\nimport styled from 'styled-components';\n\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n IconButton,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Typography\n} from '@material-ui/core';\nimport {\n DeleteOutlined as DeleteOutlinedIcon,\n Add as AddIcon\n} from '@material-ui/icons';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\n\nimport {\n createJiraIssueFields,\n getJiraIssueEntityFieldOptions,\n useJiraConnectAPI,\n useUpdateJiraIssues\n} from '../../../jira-connect/JiraConnect.hooks';\nimport {\n TaskContext,\n UpdateJiraIssueParams\n} from '../../../tasks/Task.machine';\nimport { Alert, AlertTitle } from '@material-ui/lab';\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraIssueFieldPicker from '../../../jira-connect/pickers/JiraIssueFieldPicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport EntityColumnSelector from '../../../entity/components/EntityColumnSelector';\nimport { useEntityContext } from '../../../entity/Entity.context';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .MuiTableCell-root {\n padding: 12px 5px 12px 5px;\n }\n`;\n\nconst UpdateJiraIssueConfigurator: React.FC = ({\n targetEntity,\n onChange,\n ...props\n}) => {\n const [invoke, setInvoke] = useState(props.invoke);\n const { schemas } = useEntityContext();\n if (!invoke.data) invoke.data = {};\n const data: UpdateJiraIssueParams['data'] = invoke.data;\n\n const options = useMemo(() => {\n const entity = targetEntity\n ? schemas.find(schema => schema.name === targetEntity)\n : undefined;\n return getJiraIssueEntityFieldOptions({ entities: schemas, entity });\n }, [schemas, targetEntity]);\n\n const handleUpdateInvoke = (data: UpdateJiraIssueParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n return (\n \n {\n projectId && handleUpdateInvoke({ projectId: projectId, fields: [] });\n }}\n />\n {data.projectId && (\n \n \n \n \n Entity Field\n Issue Type\n Issue Field\n \n \n \n \n {data.fields?.length > 0 &&\n data.fields.map((item, index) => (\n \n \n {\n // NOTE: passed in options prop uses property name instead of columnName\n data.fields[index].entityField = propertyName || '';\n handleUpdateInvoke({ ...data, fields: data.fields });\n }}\n />\n \n \n {\n data.fields[index].issueType = issueType && {\n id: issueType.id,\n name: issueType.label\n };\n handleUpdateInvoke({ ...data, fields: data.fields });\n }}\n />\n \n \n {\n data.fields[index].issueField = issueField;\n handleUpdateInvoke({ ...data, fields: data.fields });\n }}\n />\n \n \n {\n data.fields.splice(index, 1);\n handleUpdateInvoke({ ...data, fields: data.fields });\n }}\n >\n \n \n \n \n ))}\n \n \n }\n onClick={() => {\n data.fields.push({ entityField: '', issueField: '' });\n handleUpdateInvoke({ ...data, fields: data.fields });\n }}\n >\n Add Item\n \n \n \n \n
    \n
    \n )}\n
    \n );\n};\n\nconst UpdateJiraIssueDisplay: React.FC = ({ invoke }) => {\n return null;\n};\n\nconst StyledDialogContent = styled(DialogContent)`\n .MuiTypography-root,\n .MuiAlert-root {\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n`;\n\nexport interface UpdateJiraIssueDialogProps {\n open: boolean;\n data: UpdateJiraIssueParams['data'];\n state: State;\n autoSkip?: boolean;\n onCancel?: () => void;\n onSuccess?: () => void;\n}\n\nconst UpdateJiraIssueDialog: React.FC = props => {\n const { open, data, state, autoSkip, onCancel, onSuccess } = props;\n const stateRef = useRef(state);\n stateRef.current = state;\n const onSuccessRef = useRef(onSuccess);\n onSuccessRef.current = onSuccess;\n const [alertMessage, setAlertMessage] = useState();\n const { isAvailable } = useJiraConnectAPI();\n const [updateResult, updateIssues] = useUpdateJiraIssues();\n const alertMsg = !isAvailable\n ? 'Unable to run action and update Jira issue(s). ' +\n 'You can choose to skip this action, or open SierraQMS ' +\n 'within JIRA and try again to properly run this action.'\n : alertMessage;\n\n // run update once component is rendered\n useEffect(() => {\n const dataFields = data.fields || [];\n if (!isAvailable || dataFields.length === 0) {\n return;\n }\n\n const { task, taskEntity } = stateRef.current.context;\n const jiraIssues = task.jiraIssues;\n if (!taskEntity || !jiraIssues || jiraIssues.length === 0) {\n const selectedIssueTypes = dataFields\n .map(item => `\"${item.issueType?.name}\"`)\n .join(', ');\n setAlertMessage(\n !taskEntity\n ? 'Unable to load the Task entity. You can choose to skip this action.'\n : 'There are no linked JIRA issues that match some of the ' +\n `issue type(s): ${selectedIssueTypes}, please link an issue that ` +\n 'matches the given issue type(s) to proceed. You can choose to skip this action.'\n );\n return;\n }\n\n setAlertMessage(undefined);\n const filteredJiraIssues = jiraIssues.filter(jiraIssue => {\n return dataFields.some(\n item => item.issueType?.id === jiraIssue.issue.fields.issuetype.id\n );\n });\n const updates = filteredJiraIssues.map(issue => {\n const allFields = dataFields.filter(\n field => field.issueType?.id === issue.issue.fields.issuetype.id\n );\n const fields = createJiraIssueFields(taskEntity, allFields);\n return { issueId: issue.issue.id, dto: { fields } };\n });\n updateIssues(updates);\n }, [data, isAvailable, updateIssues]);\n\n useEffect(() => {\n if (updateResult.success) {\n onSuccessRef.current?.();\n }\n }, [updateResult.success]);\n\n // auto skip if alert message is set\n useEffect(() => {\n if (alertMsg && autoSkip) {\n onSuccessRef.current?.();\n }\n }, [alertMsg, autoSkip]);\n\n return (\n \n {updateResult.isLoading && }\n Update Jira Issue\n \n {updateResult.isLoading && (\n Updating Jira Issue(s)...\n )}\n {alertMsg && (\n \n \n {!isAvailable\n ? 'JIRA Connect API is not available'\n : 'Unable to update JIRA issue(s)'}\n \n {alertMsg}\n \n )}\n {updateResult.errors.length > 0 && (\n \n {updateResult.errors.map((error, index) => (\n
    {error.message}
    \n ))}\n
    \n )}\n
    \n \n \n {alertMsg && (\n onSuccess?.()}\n >\n Skip Action and Proceed\n \n )}\n \n
    \n );\n};\n\nexport const UpdateJiraIssuePlugin: ServicePlugin = {\n src: 'updateJiraIssue',\n name: 'Update Jira Issue',\n configurator: UpdateJiraIssueConfigurator,\n display: UpdateJiraIssueDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as UpdateJiraIssueParams['data'];\n return !!(\n data &&\n data.projectId &&\n Array.isArray(data.fields) &&\n data.fields.every(\n field => field.entityField && field.issueField && field.issueType\n )\n );\n },\n service: (state: State, params, render) => {\n console.log('updateJiraIssue params', state, params);\n if (\n state.isSimulation ||\n state.context.skipServicePlugins?.includes(UpdateJiraIssuePlugin.src)\n ) {\n return true;\n }\n const pluginParams = Array.isArray(params) ? params[0] : params;\n return new Promise((resolve, reject) => {\n render?.(\n {\n render?.(undefined);\n resolve(true);\n }}\n onCancel={() => {\n render?.(undefined);\n reject(true);\n }}\n />\n );\n });\n }\n};\n","import { Box, TextField } from '@material-ui/core';\nimport { State, StateTransitionCondition } from '@sierralabs/workflow';\n\nimport ConfirmDialog from '../../../../common/dialogs/ConfirmDialog';\nimport { TaskContext } from '../../../tasks/Task.machine';\nimport {\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin\n} from '../TransitionConditionPlugin';\n\nconst ConfirmConfigurator: React.FC = ({\n taskType,\n event,\n condition,\n onChange\n}) => {\n return (\n <>\n \n {\n if (condition.params) {\n condition.params.title = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n {\n if (condition.params) {\n condition.params.message = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n );\n};\n\nconst ConfirmDisplay: React.FC = ({\n condition\n}) => {\n return <>Confirm Dialog;\n};\n\nexport const ConfirmPlugin: TransitionConditionPlugin = {\n type: 'confirm',\n label: 'Confirm Dialog',\n configurator: ConfirmConfigurator,\n display: ConfirmDisplay,\n validate: (condition: Partial) => {\n return true;\n },\n guard: (state: State, params, render) => {\n console.log('guards: confirm', state, params);\n if (\n state.isSimulation ||\n state.context.skipTransitionConditionPlugins?.includes(ConfirmPlugin.type)\n ) {\n return true;\n }\n return new Promise(resolve => {\n render?.(\n {\n render?.(undefined);\n\n resolve(false);\n }}\n onConfirm={() => {\n render?.(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n};\n","import React from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Divider,\n Checkbox,\n FormGroup,\n Typography,\n FormControlLabel\n} from '@material-ui/core';\n\nimport { useWorkflowFields } from '../Workflow.hooks';\nimport { WorkflowTaskTypeEntity } from '../Workflow.interface';\n\nconst StyledFormGroup = styled(FormGroup)`\n padding-left: 8px;\n`;\n\nconst StyledFormControlLabel = styled(FormControlLabel)`\n padding-left: 8px;\n`;\n\nexport interface FieldSelectorProps {\n fields: string[];\n type?: WorkflowTaskTypeEntity | string;\n onChange?: (fields: string[]) => void;\n}\n\nconst FieldSelector: React.FC = (\n props: FieldSelectorProps\n) => {\n const { type, fields: selectedFields, onChange } = props;\n const { fields, labels } = useWorkflowFields(type as WorkflowTaskTypeEntity);\n const hasFields: boolean = fields.length > 0;\n const allFieldsSelected: boolean = selectedFields.length >= fields.length;\n const noFieldsSelected: boolean = selectedFields.length === 0;\n const partialFieldsSelected: boolean =\n selectedFields.length > 0 && selectedFields.length < fields.length;\n const label: string = allFieldsSelected\n ? 'Deselect All Fields'\n : noFieldsSelected || partialFieldsSelected\n ? 'Select All Fields'\n : 'Toggle Fields';\n\n const handleToggle = () => {\n if (allFieldsSelected) {\n // deselect all\n onChange?.([]);\n } else if (noFieldsSelected || partialFieldsSelected) {\n // select all\n onChange?.([...fields]);\n }\n };\n\n const handleChange = (field: string) => {\n const newFields: string[] = [...selectedFields];\n const existingIndex: number = newFields.indexOf(field);\n // remove if existing, else push\n if (existingIndex >= 0) {\n newFields.splice(existingIndex, 1);\n } else {\n newFields.push(field);\n }\n onChange?.(newFields);\n };\n\n return (\n <>\n \n }\n />\n \n \n {!hasFields && (\n \n \n There are no fields for this entity.\n \n \n )}\n {fields.map((field: string, index: number) => (\n handleChange(field)}\n checked={selectedFields.indexOf(field) >= 0}\n />\n }\n />\n ))}\n \n handleChange('assignSubTasks')}\n checked={selectedFields.indexOf('assignSubTasks') >= 0}\n />\n }\n />\n \n \n );\n};\n\nexport default FieldSelector;\n","import { startCase } from 'lodash';\nimport React, { useEffect, useMemo } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n FormHelperText\n} from '@material-ui/core';\nimport {\n State,\n StateEvent,\n StateTransitionCondition,\n WorkflowParams\n} from '@sierralabs/workflow';\n\nimport { Task, TaskEntity } from '../../../tasks/Task.interface';\nimport { RequireFieldsParams, TaskContext } from '../../../tasks/Task.machine';\nimport FieldSelector from '../../components/FieldSelector';\nimport { useWorkflowContext } from '../../Workflow.context';\nimport { useWorkflowFields } from '../../Workflow.hooks';\nimport { WorkflowTaskTypeEntity } from '../../Workflow.interface';\nimport {\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin\n} from '../TransitionConditionPlugin';\n\n// NOTE: workaround for hardcoded `*.fields.ts` as\n// they sometimes have different keys for actual values\nfunction getRequiredFieldValue(\n field: string,\n options: { task: Task; taskEntity: TaskEntity }\n) {\n const { task, taskEntity } = options;\n switch (field) {\n case 'taskFiles':\n return task.files;\n case 'attachment':\n return task.attachments;\n case 'assignTask':\n return task.user;\n default:\n return taskEntity[field as keyof TaskEntity];\n }\n}\n\nfunction validateRequiredField(field: any) {\n switch (typeof field) {\n case 'string':\n return field.length > 0;\n case 'number':\n return isFinite(field);\n case 'boolean':\n return true;\n case 'object':\n return Array.isArray(field) ? field.length > 0 : !!field;\n }\n return false;\n}\n\nconst Styled = {\n FormHelperText: styled(FormHelperText)`\n padding-left: 8px;\n `\n};\n\nconst RequiredFieldsConfigurator: React.FC<\n TransitionConditionConfiguratorProps\n> = ({ taskType, event, condition, onChange }) => {\n if (!condition.params) {\n condition.params = {};\n }\n if (!Array.isArray(condition.params.requiredFields)) {\n condition.params.requiredFields = [];\n }\n return (\n <>\n \n {\n condition.params!.requiredFields = fields;\n onChange?.({ ...condition });\n }}\n />\n \n Checked fields will be required for this transition.\n \n \n \n );\n};\n\nconst StyledUl = styled.ul`\n margin: 0;\n padding-left: 16px;\n li:not(:last-child) {\n margin-bottom: 4px;\n }\n`;\n\ninterface RequiredFieldsDialogProps {\n task: Task;\n open: boolean;\n taskEntity: TaskEntity;\n event: StateEvent | undefined;\n onClose?: () => void;\n}\n\nconst RequiredFieldsDialog: React.FC = props => {\n const { open, event, task, taskEntity, onClose } = props;\n const { workflows, getWorkflow } = useWorkflowContext();\n const workflowItem = workflows.find(workflow => {\n // check with workflowId if no taskType\n return task.taskTypeName\n ? workflow.taskTypeName === task.taskTypeName\n : workflow.id === task.workflowId;\n });\n const type = workflowItem?.taskType?.targetEntity || '';\n const { labels } = useWorkflowFields(type as WorkflowTaskTypeEntity);\n\n const requiredFields = useMemo(() => {\n const requiredFields: string[] = [];\n for (const transition of event?.transitions || []) {\n for (const condition of transition.conditions || []) {\n const params = condition.params as RequireFieldsParams | undefined;\n if (\n condition.type === RequiredFieldsPlugin.type &&\n params &&\n Array.isArray(params.requiredFields)\n ) {\n requiredFields.push(...params.requiredFields);\n }\n }\n }\n return requiredFields;\n }, [event]);\n\n const invalidFields = useMemo(() => {\n return requiredFields.filter(field => {\n const value = getRequiredFieldValue(field, { task, taskEntity });\n return !validateRequiredField(value);\n });\n }, [requiredFields, task, taskEntity]);\n\n // fetch workflow in case it's not yet fetched\n useEffect(() => {\n getWorkflow(task);\n }, [task, getWorkflow]);\n\n return (\n \n Required Fields\n \n \n {invalidFields.length > 0\n ? 'The following fields are required to transition this item:'\n : 'All required fields passed.'}\n \n {invalidFields.length > 0 && (\n \n {invalidFields.map((field, index) => {\n const label = labels[field as keyof typeof labels];\n return (\n
  • {label || startCase(field)}
  • \n );\n })}\n
    \n )}\n
    \n \n \n \n
    \n );\n};\n\nconst RequiredFieldsDisplay: React.FC = ({\n condition\n}) => {\n return <>Required Fields;\n};\n\nexport const RequiredFieldsPlugin: TransitionConditionPlugin = {\n type: 'require-fields',\n label: 'Required Fields',\n configurator: RequiredFieldsConfigurator,\n display: RequiredFieldsDisplay,\n validate: (condition: Partial) => {\n return true;\n },\n guard: (state: State, params: WorkflowParams, render) => {\n console.log('guards: require-fields', state, params);\n if (\n state.isSimulation ||\n state.context.skipTransitionConditionPlugins?.includes(\n RequiredFieldsPlugin.type\n )\n ) {\n return true;\n }\n const { event, task, taskEntity } = state.context;\n if (!taskEntity) {\n console.error('No Task Entity found for \"require-fields\" guard.');\n return false;\n }\n const result = params.requiredFields.every((requiredField: string) => {\n // field should be valid\n const value = getRequiredFieldValue(requiredField, { task, taskEntity });\n return validateRequiredField(value);\n });\n // skip render if validation has already passed\n if (result || !render) {\n return result;\n }\n return new Promise(resolve => {\n render(\n {\n render?.(undefined);\n resolve(result);\n }}\n />\n );\n });\n }\n};\n","import { Box, TextField } from '@material-ui/core';\nimport { State, WorkflowParams } from '@sierralabs/workflow';\n\nimport ElectronicSignatureDialog from '../../../electronic-signature/ElectronicSignatureDialog';\nimport { TaskContext } from '../../../tasks/Task.machine';\nimport {\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin\n} from '../TransitionConditionPlugin';\n\nconst SignatureConfigurator: React.FC<\n TransitionConditionConfiguratorProps\n> = props => {\n const { condition, onChange } = props;\n return (\n <>\n \n {\n if (condition.params) {\n condition.params.reason = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n {\n if (condition.params) {\n condition.params.meaning = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n {\n if (condition.params) {\n condition.params.reasonLabel = event.target.value;\n onChange?.({ ...condition });\n }\n }}\n />\n \n \n );\n};\n\nconst SignatureDisplay: React.FC = () => {\n return <>Electronic Signature;\n};\n\nexport interface SignatureParams extends WorkflowParams {\n meaning: string;\n reason: string;\n reasonLabel: string;\n}\n\nexport const SignaturePlugin: TransitionConditionPlugin = {\n type: 'signature',\n label: 'Electronic Signature',\n configurator: SignatureConfigurator,\n display: SignatureDisplay,\n validate: () => true,\n guard: (state: State, params, render) => {\n console.debug('guards: signature', state, params);\n state.context.reason = params.reasonLabel;\n if (\n state.isSimulation ||\n state.context.skipTransitionConditionPlugins?.includes(\n SignaturePlugin.type\n )\n ) {\n return true;\n } else if (!render) return false;\n return new Promise(resolve => {\n render(\n {\n render(undefined);\n resolve(false);\n }}\n onSigned={reason => {\n // add reason to task\n if (typeof reason !== 'undefined') {\n state.context.reason = reason;\n }\n render(undefined);\n resolve(true);\n }}\n />\n );\n });\n }\n};\n","import { useEffect, useState } from 'react';\nimport styled from 'styled-components';\n\nimport { TextField, Typography } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport { PublishEventParams } from '../../../tasks/Task.machine';\nimport { useFindEventNames } from '../../Workflow.hooks';\nimport { WorkflowEntity } from '../../Workflow.interface';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\n\nconst StyledConfiguratorDiv = styled.div`\n .instructions {\n margin: 24px 0 16px 0;\n }\n`;\n\nconst PublishEventConfigurator: React.FC = ({\n targetEntity: entity,\n onChange,\n ...props\n}) => {\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const { eventList, findEvents } = useFindEventNames(\n (entity || '') as WorkflowEntity\n );\n useEffect(() => {\n if (entity) {\n findEvents();\n }\n }, [entity, findEvents]);\n return (\n \n \n Configure a server side event to be published when entering into this\n workflow state. Each workflow entity will have different events that can\n be configured.\n \n option.description}\n value={invoke.data?.events || []}\n filterSelectedOptions\n onChange={(_: any, value: any) => {\n console.log('value', value);\n invoke.data.events = value;\n const updatedInvoke = { ...invoke };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n }}\n renderInput={params => (\n \n )}\n />\n \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n padding-left: 4px;\n text-indent: -4px;\n code {\n background: #f4f5fa;\n padding: 2px 5px;\n border-radius: 3px;\n }\n b {\n padding: 0 5px 0 0;\n }\n`;\n\nconst PublishEventDisplay: React.FC = ({ invoke }) => {\n return (\n \n {invoke.data?.events?.map((event: any, index: number) => (\n
    \n {event.description || event.event}\n
    \n ))}\n
    \n );\n};\n\nexport const PublishEventPlugin: ServicePlugin = {\n src: 'publishEvent',\n name: 'Publish Event',\n configurator: PublishEventConfigurator,\n display: PublishEventDisplay,\n validate: (condition: Partial) => {\n return true;\n },\n service: (state: State, params: PublishEventParams) => {\n console.log('publishEvent state', state);\n console.log('publishEvent params', params);\n return true;\n }\n};\n","import React, { Fragment, useState } from 'react';\nimport styled from 'styled-components';\nimport { TextField } from '@material-ui/core';\nimport { Alert, Autocomplete } from '@material-ui/lab';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport { compareTaskStatus, parseTaskStatus } from '../../../tasks/task.helper';\nimport {\n CreateSubTaskParams,\n RemoveSubTasksParams,\n TaskContext\n} from '../../../tasks/Task.machine';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\nimport { CreateSubTasksPlugin } from './CreateSubTasksPlugin';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n`;\n\nconst RemoveSubTasksConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { stateNode, onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: RemoveSubTasksParams['data'] = invoke.data;\n const states = stateNode.parent?.states || [];\n const selectedStates = states.filter(state => {\n return data.statePaths?.some(statePath => {\n return compareTaskStatus(statePath, state.path);\n });\n });\n\n const update = (data: RemoveSubTasksParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n return (\n \n option.name}\n // use filterOptions instead of filtering the options\n // to allow invalid values in selectedStates\n // e.g. CreateSubTasks plugin was removed from a state\n filterOptions={states => {\n // only get states that have CreateSubTasks actions\n return states.filter(state => {\n const invokes = Array.isArray(state.invoke)\n ? state.invoke\n : state.invoke\n ? [state.invoke]\n : [];\n return invokes.some((invoke): invoke is CreateSubTaskParams => {\n return invoke.src === CreateSubTasksPlugin.src;\n });\n });\n }}\n getOptionSelected={(option, value) => {\n return compareTaskStatus(option.path, value.path);\n }}\n onChange={(_, states) => {\n update({ statePaths: states.map(state => state.path) });\n }}\n renderInput={params => (\n \n Only the Workflow states with a configured{' '}\n {CreateSubTasksPlugin.name} action can be\n selected.\n \n }\n />\n )}\n />\n\n \n
    \n {(data.statePaths || []).length > 0 ? (\n <>\n This action will remove only the assigned sub tasks created from\n the selected workflow states when entering into\n this workflow state.\n \n ) : (\n 'This action will remove any assigned sub tasks when entering into this workflow state.'\n )}\n
    \n
    \n
    \n );\n};\n\nconst RemoveSubTasksDisplay: React.FC = props => {\n const { invoke } = props;\n const data: RemoveSubTasksParams['data'] | undefined = invoke.data;\n const statePaths = data?.statePaths || [];\n return statePaths.length === 0 ? null : (\n
    \n for:{' '}\n {statePaths.map((statePath, index, array) => (\n \n {parseTaskStatus(statePath)}\n {index < array.length - 1 && ', '}\n \n ))}\n
    \n );\n};\n\nexport const RemoveSubTasksPlugin: ServicePlugin = {\n src: 'removeSubTasks',\n name: 'Remove Sub Tasks',\n configurator: RemoveSubTasksConfigurator,\n display: RemoveSubTasksDisplay,\n validate: (_condition: Partial) => {\n return true;\n },\n service: (state: State, params) => {\n console.log('removeSubTasks params', state, params);\n return true;\n }\n};\n","import { useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n FormControl,\n FormControlLabel,\n FormHelperText,\n IconButton,\n Radio,\n RadioGroup,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n TextField\n} from '@material-ui/core';\nimport { Add as AddIcon, Close as CloseIcon } from '@material-ui/icons';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport JiraStatusPicker from '../../../jira-connect/pickers/JiraStatusPicker';\nimport {\n TaskContext,\n TransitionEntityStatusFromJiraParams\n} from '../../../tasks/Task.machine';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\nimport { Autocomplete } from '@material-ui/lab';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .event-field {\n margin-top: 12px;\n }\n .MuiTableHead-root .MuiTableCell-root {\n padding-left: 4px;\n padding-right: 4px;\n }\n .MuiTableRow-root.dense .MuiTableCell-root {\n padding: 2px 4px;\n }\n`;\n\nconst TransitionEntityStatusFromJiraConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { stateNode, onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: TransitionEntityStatusFromJiraParams['data'] = invoke.data;\n const issues = data.issues || [];\n const events = stateNode.events || [];\n const disabled = !data.projectId;\n const selectedEvent = events.find(\n event => data.eventName && data.eventName === event.name\n );\n\n const update = (data: TransitionEntityStatusFromJiraParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n return (\n \n {\n update({ ...data, projectId: projectId, issues: [] });\n }}\n />\n {\n const target = (option.transitions || [])\n .map(transition => transition.target)\n .join(', ');\n return `${option.name} (${stateNode.name} -> ${target})`;\n }}\n onChange={(_, value) => update({ ...data, eventName: value?.name })}\n renderInput={params => (\n \n )}\n />\n \n \n \n \n Issue Type\n Statuses\n \n \n \n \n {issues.length === 0 && (\n \n \n {data.projectId ? (\n 'No items added.'\n ) : (\n <>\n Select a Project to add items.\n \n )}\n \n \n )}\n {issues.map((issue, index) => (\n \n \n {\n issues[index].issueType = issueType;\n issues[index].statuses = undefined;\n update({ ...data, issues });\n }}\n />\n \n \n status.id)}\n textFieldProps={{\n size: 'small',\n label: undefined,\n placeholder: 'Select Statuses'\n }}\n onChange={statuses => {\n issues[index].statuses = statuses;\n update({ ...data, issues });\n }}\n />\n \n \n {\n issues.splice(index, 1);\n update({ ...data, issues });\n }}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n onClick={() => {\n issues.push({});\n update({ ...data, issues });\n }}\n >\n Add Item\n \n \n \n \n {\n update({ ...data, partial: event.target.value === 'partial' });\n }}\n >\n }\n />\n }\n />\n \n \n Transition will trigger when{' '}\n {data.partial ? 'one or more' : 'all'} linked\n issues reach the selected statuses.\n \n \n \n
    \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n .icon {\n font-size: 18px;\n margin-top: -3px;\n vertical-align: middle;\n }\n`;\n\nconst TransitionEntityStatusFromJiraDisplay: React.FC<\n ServiceDisplayProps\n> = props => {\n const { invoke } = props;\n const data: TransitionEntityStatusFromJiraParams['data'] | undefined =\n invoke.data;\n const issues = data?.issues || [];\n return !data ? (\n <>\n ) : (\n \n
    Event: {data.eventName || '?'}
    \n
    Check: {data.partial ? 'Partial' : 'All'}
    \n
    \n Issues:{' '}\n {issues\n .map(issues => {\n const issueType = issues.issueType?.label;\n const status = (issues.statuses || [])\n .map(status => status.name)\n .join(', ');\n return `${issueType} (${status})`;\n })\n .join(', ') || '?'}\n
    \n
    \n );\n};\n\nexport const TransitionEntityStatusFromJiraPlugin: ServicePlugin =\n {\n src: 'transitionEntityStatusFromJira',\n name: 'Transition Entity Status From Jira',\n configurator: TransitionEntityStatusFromJiraConfigurator,\n display: TransitionEntityStatusFromJiraDisplay,\n validate: (condition: Partial) => {\n const data =\n condition.data as TransitionEntityStatusFromJiraParams['data'];\n return !!(\n data &&\n data.projectId &&\n data.eventName &&\n Array.isArray(data.issues) &&\n data.issues.length > 0 &&\n data.issues.every(issue => {\n return (\n issue.issueType &&\n Array.isArray(issue.statuses) &&\n issue.statuses.length > 0\n );\n })\n );\n },\n service: (\n state: State,\n params:\n | TransitionEntityStatusFromJiraParams[]\n | TransitionEntityStatusFromJiraParams\n ) => {\n console.log('transitionEntityStatusFromJira params', state, params);\n return true;\n }\n };\n","import { startCase } from 'lodash';\nimport { useState } from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Button,\n IconButton,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow\n} from '@material-ui/core';\nimport { Add as AddIcon, Close as CloseIcon } from '@material-ui/icons';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\n\nimport EntityColumnSelector from '../../../entity/components/EntityColumnSelector';\nimport JiraIssueFieldPicker from '../../../jira-connect/pickers/JiraIssueFieldPicker';\nimport JiraIssueTypePicker from '../../../jira-connect/pickers/JiraIssueTypePicker';\nimport JiraProjectPicker from '../../../jira-connect/pickers/JiraProjectPicker';\nimport {\n TaskContext,\n UpdateFieldFromJiraParams\n} from '../../../tasks/Task.machine';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .MuiTableHead-root .MuiTableCell-root {\n padding-left: 4px;\n padding-right: 4px;\n }\n .MuiTableRow-root.dense .MuiTableCell-root {\n padding: 2px 4px;\n }\n`;\n\nconst UpdateFieldFromJiraConfigurator: React.FC<\n ServiceConfiguratorProps\n> = props => {\n const { targetEntity, onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: UpdateFieldFromJiraParams['data'] = invoke.data;\n const fields = data.fields || [];\n\n const update = (data: UpdateFieldFromJiraParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n\n return (\n \n {\n data.projectId = projectId;\n data.fields = [];\n update(data);\n }}\n />\n \n \n \n \n Entity Field\n Issue Type\n Issue Field\n \n \n \n \n {fields.length === 0 && (\n \n \n {data.projectId ? (\n 'No fields added.'\n ) : (\n <>\n Select a Project to add fields.\n \n )}\n \n \n )}\n {fields.map((field, index) => (\n \n \n {\n fields[index].entityField = columnName;\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields[index].issueType = issueType;\n fields[index].issueField = undefined;\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields[index].issueField = issueField;\n update({ ...data, fields });\n }}\n />\n \n \n {\n fields.splice(index, 1);\n update({ ...data, fields });\n }}\n >\n \n \n \n \n ))}\n \n
    \n
    \n \n }\n disabled={!data.projectId}\n onClick={() => {\n fields.push({});\n update({ ...data, fields });\n }}\n >\n Add Field\n \n \n
    \n );\n};\n\nconst StyledDisplayDiv = styled.div`\n font-size: 13px;\n`;\n\nconst UpdateFieldFromJiraDisplay: React.FC = props => {\n const { invoke } = props;\n const data: UpdateFieldFromJiraParams['data'] | undefined = invoke.data;\n const fields = data?.fields || [];\n const fieldsText = fields\n .slice(0, 3)\n .map((field, index) => {\n return index === 2\n ? `and ${fields.length - 2} more`\n : startCase(field.entityField) || '?';\n })\n .join(', ');\n return (\n {fieldsText && `Fields: ${fieldsText}`}\n );\n};\n\nexport const UpdateFieldFromJiraPlugin: ServicePlugin =\n {\n src: 'updateFieldFromJira',\n name: 'Update Field From Jira',\n configurator: UpdateFieldFromJiraConfigurator,\n display: UpdateFieldFromJiraDisplay,\n validate: (condition: Partial) => {\n const data = condition.data as UpdateFieldFromJiraParams['data'];\n return !!(\n data &&\n data.projectId &&\n Array.isArray(data.fields) &&\n data.fields.length > 0 &&\n data.fields.every(\n field => field.entityField && field.issueType?.id && field.issueField\n )\n );\n },\n service: (\n state: State,\n params: UpdateFieldFromJiraParams[] | UpdateFieldFromJiraParams\n ) => {\n console.log('updateFieldFromJira params', state, params);\n return true;\n }\n };\n","import { useEffect, useState, useCallback, useRef, useReducer } from 'react';\n\nimport api, { ApiParams } from './api';\nimport { useApiPost, ApiResult, useApiGet } from './Api.hooks';\nimport { PresignedUrl, UploadStatus, FileUploadState } from './File.interface';\n\nexport interface FilePresignedDto {\n file: File;\n destinationUrl: string;\n signedUrl: string;\n expiration: number;\n}\n\nexport function useSecureFileUrl(url?: string) {\n if (url) {\n return `${url}&token=${api.getAccessToken()}`;\n }\n}\n\ntype UploadAction = {\n type: UploadStatus;\n payload?: any;\n};\nfunction uploadReducer(\n state: FileUploadState,\n action: UploadAction\n): FileUploadState {\n switch (action.type) {\n case 'init':\n return {\n ...state,\n status: action.type,\n file: action.payload,\n progress: 0,\n error: undefined\n };\n case 'ready':\n return {\n ...state,\n status: action.type,\n presignedUrl: action.payload as PresignedUrl,\n progress: 1\n };\n case 'uploading':\n return {\n ...state,\n status: action.type,\n progress: action.payload as number\n };\n case 'error':\n return {\n ...state,\n status: action.type,\n error: action.payload\n };\n case 'complete':\n return {\n ...state,\n status: action.type,\n progress: 100,\n response: action.payload as Response\n };\n case 'cancel':\n return {\n ...state,\n status: action.type,\n file: undefined,\n progress: 0,\n error: undefined\n };\n default:\n return { ...state, status: action.type };\n }\n}\n\ntype UploadCallback = (fileList: FileList | File[]) => void;\n\nexport function useUploadAttachment(\n path: string,\n token?: string\n): [\n FileUploadState,\n UploadFile[] | undefined,\n UploadCallback,\n (file: File) => void\n] {\n const [presignedState, getPresignedUrl] = useGetPresignedUrl(path, token);\n const requestRef = useRef(new XMLHttpRequest());\n const [\n { file, presignedUrl, response, status, progress, error },\n dispatch\n ] = useReducer(uploadReducer, { progress: 0 });\n const [uploadFiles, setUploadFiles] = useState();\n\n let fileIndexRef = useRef(0);\n let previosPresignedState = useRef(null);\n\n useEffect(() => {\n if (uploadFiles && fileIndexRef.current < uploadFiles.length) {\n const request = requestRef.current;\n\n if (status === 'init' && file) {\n getPresignedUrl(\n uploadFiles[fileIndexRef.current].file.type ||\n 'application/octet-stream'\n );\n dispatch({ type: 'presign' });\n } else if (\n status === 'presign' &&\n !presignedState.isLoading &&\n presignedState.data\n ) {\n if (previosPresignedState.current === null) {\n previosPresignedState.current = presignedState;\n dispatch({ type: 'ready', payload: presignedState.data });\n } else if (\n presignedState.data === previosPresignedState.current?.data\n ) {\n dispatch({ type: 'presign' });\n } else {\n previosPresignedState.current = presignedState;\n dispatch({ type: 'ready', payload: presignedState.data });\n }\n } else if (status === 'ready' && presignedUrl && file) {\n request.addEventListener('error', e =>\n dispatch({ type: 'error', payload: e })\n );\n request.addEventListener('timeout', e =>\n dispatch({ type: 'error', payload: e })\n );\n request.upload.addEventListener('error', e =>\n dispatch({ type: 'error', payload: e })\n );\n request.upload.addEventListener('progress', e => {\n if (e.lengthComputable) {\n dispatch({\n type: 'uploading',\n payload: (e.loaded / e.total) * 100\n });\n }\n });\n request.upload.addEventListener('load', e => {\n dispatch({ type: 'complete', payload: request.response });\n });\n\n request.open('PUT', presignedUrl.signedUrl);\n request.timeout = 5000;\n request.setRequestHeader('Content-Type', file.type);\n request.responseType = 'text';\n request.send(file);\n\n const uploadFile = uploadFiles[fileIndexRef.current];\n if (uploadFile) {\n uploadFile.progress = 100;\n uploadFile.isUploading = false;\n uploadFile.isCompleted = true;\n uploadFile.presignedResult = {\n file: uploadFile.file,\n destinationUrl: presignedUrl.storageKey,\n signedUrl: presignedUrl.signedUrl,\n expiration: presignedUrl.expiration\n };\n setUploadFiles([...uploadFiles]);\n }\n fileIndexRef.current++;\n const nextFile = uploadFiles[fileIndexRef.current];\n if (nextFile) {\n dispatch({ type: 'init', payload: nextFile.file });\n }\n } else if (status === 'cancel') {\n request.abort();\n } else {\n if (presignedState.data !== previosPresignedState.current?.data) {\n previosPresignedState.current = presignedState;\n dispatch({ type: 'ready', payload: presignedState.data });\n }\n }\n\n return () => {\n // clean up\n if (status === 'error' || status === 'complete') {\n request.abort();\n }\n };\n }\n }, [\n getPresignedUrl,\n presignedState,\n file,\n presignedUrl,\n status,\n error,\n uploadFiles\n ]);\n\n const uploadCallback = useCallback(\n (fileList: FileList | File[]) => {\n const files: UploadFile[] = [];\n for (let i = 0; i < fileList.length; i++) {\n const uploadFile = {\n file: fileList[i],\n progress: 0,\n isUploading: true,\n request: new XMLHttpRequest(),\n isCompleted: false,\n isError: false\n };\n\n files.push(uploadFile);\n }\n fileIndexRef.current = 0;\n setUploadFiles([...(uploadFiles || []), ...files]);\n dispatch({\n type: 'init',\n payload: [...(uploadFiles || []), ...files][0].file\n });\n },\n [uploadFiles]\n );\n\n // remove an upload file and abort if uploading\n const removeCallback = useCallback(\n (file: File) => {\n if (uploadFiles) {\n const index = uploadFiles.findIndex(f => f.file === file);\n if (index > -1) {\n uploadFiles[index].request.abort();\n uploadFiles.splice(index, 1);\n if (index <= fileIndexRef.current) {\n fileIndexRef.current--;\n }\n setUploadFiles([...uploadFiles]);\n }\n }\n },\n [uploadFiles]\n );\n\n return [\n { file, presignedUrl, status, progress, response, error },\n uploadFiles,\n uploadCallback,\n removeCallback\n ];\n}\n\nexport function useGetPresignedUrl(\n path: string,\n token?: string\n): [ApiResult, (mimeType: string) => void] {\n const accessToken: string | undefined = api.getAccessToken();\n // use token to check if guest\n const guest: string = !accessToken && token ? '/guest' : '';\n const { data, response, isLoading, error, get } = useApiGet(\n `files/presign${guest}`\n );\n const getPresignedUrl = useCallback(\n (mimeType: string) => {\n const params: ApiParams = { folderPath: path, mimeType };\n if (!accessToken && token) {\n params.token = token;\n }\n get(params);\n },\n [get, path, token, accessToken]\n );\n return [{ data, response, isLoading, error }, getPresignedUrl];\n}\n\nexport function useUploadFile(path: string) {\n const {\n presignedResult,\n isLoading: isLoadingPresignedUrl,\n error: presignedError,\n presignUrl\n } = useCreatePresignedUrl(path);\n const [progress, setProgress] = useState(0);\n const [file, setFile] = useState();\n const [response, setResponse] = useState();\n const [error, setError] = useState();\n const [isUploading, setIsUploading] = useState(false);\n const requestRef = useRef(new XMLHttpRequest());\n\n useEffect(() => {\n const request = requestRef.current;\n if (!isLoadingPresignedUrl && presignedResult && file) {\n request.upload.addEventListener('progress', event => {\n if (event.lengthComputable) {\n setProgress(event.loaded / event.total);\n }\n });\n\n request.upload.addEventListener('load', event => {\n setProgress(1);\n setIsUploading(false);\n setResponse(request.response);\n });\n\n request.upload.addEventListener('error', event => {\n setError(request.response);\n setIsUploading(false);\n setProgress(0);\n });\n request.open('PUT', presignedResult.signedUrl);\n request.setRequestHeader('Content-Type', file.type);\n request.responseType = 'text';\n request.send(file);\n return () => request.abort();\n }\n }, [file, isLoadingPresignedUrl, presignedResult]);\n const upload = useCallback(\n (file: File) => {\n setIsUploading(true);\n setProgress(0);\n setFile(file);\n presignUrl(file.type);\n },\n [presignUrl]\n );\n return {\n uploadedFile: { url: presignedResult?.destinationUrl, file },\n isUploading,\n progress,\n response,\n error: error || presignedError,\n upload\n };\n}\n\nexport interface UploadFile {\n file: File;\n progress: number;\n isUploading: boolean;\n request: XMLHttpRequest;\n isCompleted?: boolean;\n isError?: boolean;\n presignedResult?: FilePresignedDto;\n}\n\nexport function useUploadFiles(path: string) {\n let {\n presignedResults,\n error: presignedError,\n presignUrls\n } = useCreatePresignedUrls(path);\n let fileIndexRef = useRef(0);\n const [uploadFiles, setUploadFiles] = useState();\n const [isUploading, setIsUploading] = useState(false);\n\n const upload = useCallback(\n (fileList: FileList | File[]) => {\n setIsUploading(true);\n const files: UploadFile[] = [];\n for (let i = 0; i < fileList.length; i++) {\n const uploadFile = {\n file: fileList[i],\n progress: 0,\n isUploading: true,\n request: new XMLHttpRequest(),\n isCompleted: false,\n isError: false\n };\n\n files.push(uploadFile);\n }\n // start upload (see first useEffect)\n setUploadFiles([...(uploadFiles || []), ...files]);\n presignUrls(files.map(u => u.file));\n },\n [presignUrls, uploadFiles]\n );\n\n // remove an upload file and abort if uploading\n const remove = useCallback(\n (file: File) => {\n if (uploadFiles) {\n const index = uploadFiles.findIndex(f => f.file === file);\n if (index > -1) {\n uploadFiles[index].request.abort();\n uploadFiles.splice(index, 1);\n if (index <= fileIndexRef.current) {\n fileIndexRef.current--;\n }\n setUploadFiles([...uploadFiles]);\n }\n }\n },\n [uploadFiles]\n );\n\n // get pre-signed url for files\n useEffect(() => {\n if (uploadFiles && fileIndexRef.current < uploadFiles.length) {\n // find presigned url matching the file to upload\n const uploadFile = uploadFiles[fileIndexRef.current];\n const presignedResult = presignedResults.find(\n p => p.file === uploadFile.file\n );\n if (!presignedResult) return; // have not yet received presigned url\n uploadFile.presignedResult = presignedResult;\n // console.log('presigned received uploadFile', uploadFiles);\n setUploadFiles([...uploadFiles]);\n fileIndexRef.current++;\n // Perform Upload\n uploadFile.request.upload.addEventListener('progress', event => {\n if (event.lengthComputable) {\n uploadFile.progress = event.loaded / event.total;\n // console.log('uploadFile progress');\n setUploadFiles([...uploadFiles]);\n }\n });\n uploadFile.request.upload.addEventListener('load', event => {\n uploadFile.progress = 1;\n uploadFile.isUploading = false;\n uploadFile.isCompleted = true;\n // console.log('uploadFile load completed');\n setUploadFiles([...uploadFiles]);\n });\n uploadFile.request.upload.addEventListener('error', event => {\n uploadFile.progress = 0;\n uploadFile.isUploading = false;\n uploadFile.isError = true;\n // console.log('uploadFile error');\n setUploadFiles([...uploadFiles]);\n });\n uploadFile.request.open('PUT', uploadFile.presignedResult.signedUrl);\n uploadFile.request.setRequestHeader('Content-Type', uploadFile.file.type);\n uploadFile.request.responseType = 'text';\n uploadFile.request.send(uploadFile.file);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [presignUrls, presignedResults]);\n\n useEffect(() => {\n // abort upload requests when unmounted\n return () => {\n // console.log('uploadfiles ABORT');\n if (uploadFiles) {\n uploadFiles.forEach(uploadFile => uploadFile.request.abort());\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return {\n uploadFiles,\n isUploading,\n error: presignedError,\n upload,\n remove\n };\n}\n\n/**\n * Get a single presigned url\n */\nexport function useCreatePresignedUrl(path: string) {\n const { isLoading, post, data, error } = useApiPost(\n `files/presign/${path}`\n );\n const presignUrl = useCallback(\n (mimeType: string) => {\n post({ mimeType });\n },\n [post]\n );\n return { presignedResult: data, isLoading, error, presignUrl };\n}\n\n/**\n * Support getting multiple presigned urls for bulk uploading\n */\nexport function useCreatePresignedUrls(path: string) {\n const { isLoading, post, data, error } = useApiPost(\n `files/presign/${path}`\n );\n const filesRef = useRef([]);\n const nextIndexRef = useRef(0);\n const [presignedResults, setPresignedResults] = useState(\n []\n );\n\n const presignUrls = useCallback(\n (files?: File[]) => {\n if (files) {\n // add files to get presigned urls\n filesRef.current.push(...files);\n }\n // get presigned url for next item in queue\n if (nextIndexRef.current < filesRef.current.length && !isLoading) {\n console.log(\n 'presignedUrls',\n nextIndexRef.current,\n filesRef.current[nextIndexRef.current]\n );\n post({ mimeType: filesRef.current[nextIndexRef.current].type });\n }\n },\n [isLoading, post]\n );\n\n useEffect(() => {\n // check if presigned url has returned and proceed to next file\n if (data && !isLoading) {\n const file = filesRef.current[nextIndexRef.current];\n setPresignedResults([...presignedResults, { ...data, file }]);\n nextIndexRef.current++;\n presignUrls(); // process next file\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, isLoading]);\n\n return { presignedResults, isLoading, error, presignUrls };\n}\n","import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport api from '../api/api';\nimport { useUploadAttachment } from '../api/File.hooks';\nimport { InputAcceptType, PresignedUrl } from '../api/File.interface';\nimport { Attachment } from '../attachment/Attachment.interface';\nimport { createProxyUrl } from '../../secure-portal/documents/Document.hook';\nimport { InlineFileValue } from './InlineFile';\n\nexport const imageExtensions: string[] = InputAcceptType.Images.split(',');\n\nexport interface FileUploadHookProps {\n uploadPath: string;\n inputType: string;\n fileValues: InlineFileValue[];\n alwaysClear?: boolean;\n onChange?: (values: InlineFileValue[], presignedUrl?: PresignedUrl) => void;\n onSuccess?: () => void;\n}\n\nexport function useFileUpload(props: FileUploadHookProps) {\n const {\n uploadPath,\n inputType,\n fileValues,\n alwaysClear = false,\n onChange,\n onSuccess\n } = props;\n const multiple: boolean = true;\n const [\n { presignedUrl, progress, error },\n uploadFiles,\n uploadCallback,\n removeCallback\n ] = useUploadAttachment(uploadPath);\n const isLoading: boolean = progress > 0 && progress < 100;\n\n // start uploading file(s)\n const handleFile = useCallback(\n async (files: FileList | File[] | null) => {\n if (!files || files.length === 0) {\n return;\n }\n // setTouched(true);\n if (!multiple && uploadFiles && uploadFiles.length > 0) {\n // if only one file allowed, remove it before uploading new file\n removeCallback(uploadFiles[0].file);\n }\n // clears all files to avoid duplicate uploads\n if (alwaysClear && uploadFiles && uploadFiles.length > 0) {\n uploadFiles.forEach(uploadFile => removeCallback(uploadFile.file));\n }\n\n const filesToUpload = [];\n // check if file extension is an accepted input type\n for (let i = 0; i < files.length; i++) {\n const fileExtension = files[i].name.match(/\\.([^.]+)$/g);\n const acceptableFileExtension = inputType?.includes(\n fileExtension ? fileExtension[0] : ' '\n );\n if (acceptableFileExtension) {\n // if the file extension is acceptable, push to the filesToUpload array\n filesToUpload.push(files[i]);\n }\n }\n // if the filesToUpload array has at least one file, proceed to upload\n if (filesToUpload.length > 0) {\n uploadCallback(multiple ? filesToUpload : [filesToUpload[0]]);\n }\n },\n [\n uploadFiles,\n inputType,\n multiple,\n alwaysClear,\n removeCallback,\n uploadCallback\n ]\n );\n\n useEffect(() => {\n if (!uploadFiles || !presignedUrl) {\n return;\n }\n\n const value: InlineFileValue[] = uploadFiles.map(uploadFile => ({\n url: uploadFile.presignedResult?.destinationUrl,\n signedUrl: uploadFile.presignedResult?.signedUrl,\n name: uploadFile.file.name,\n size: uploadFile.file.size\n }));\n if (multiple) {\n value.push(\n ...fileValues.filter(\n value =>\n // remove any duplicate files\n !uploadFiles.some(uploadFile => value.name === uploadFile.file.name)\n )\n );\n }\n // set value\n onChange?.(value, presignedUrl);\n\n const completedFiles = uploadFiles.filter(\n uploadFile => uploadFile.isCompleted\n );\n if (\n uploadFiles.length > 0 &&\n completedFiles.length === uploadFiles.length\n ) {\n // submit once all files are uploaded\n onSuccess?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [uploadFiles, presignedUrl]);\n\n return { handleFile, presignedUrl, progress, isLoading, error };\n}\n\nexport function getSrcFromText(value: string): string[] {\n // find all img src=\"\"\n return value\n .split(' imgStr.slice(0, imgStr.indexOf('>')))\n .join()\n .trim()\n .split('src=\"')\n .map((dirtyUrl: string) => {\n dirtyUrl = dirtyUrl.slice(0, dirtyUrl.indexOf('\"')) || '';\n return dirtyUrl.trim();\n })\n .slice(1);\n}\n\nexport function isProxyURL(url: string): boolean {\n return url.includes('files/proxy') && url.includes('storageKey');\n}\n\n// add api token to img urls in text for InlineHtml\nexport function formatImgURLs(\n text: string,\n removeToken: boolean = false\n): string {\n // console.log('InlineHtml: formatImgURLs');\n // find all img src=\"\"\n // only include proxy URLs\n const urls: string[] = getSrcFromText(text).filter(isProxyURL);\n const replaceArr: Array<{ from: string; to: string }> = [];\n\n for (const url of urls) {\n // convert & to &\n const ampUrl = url.replace(/&/g, '&');\n const paramsStr = ampUrl.split('?')[1] || '';\n // create proxy url with base url that matches api url\n const urlNoParams = api.getBaseUrl() + 'files/proxy';\n // check if it has storageKey\n const params = new URLSearchParams(paramsStr);\n const storageKey: string | null = params.get('storageKey');\n if (typeof storageKey !== 'string') {\n continue;\n }\n\n // if has storage key, format url\n if (removeToken) {\n params.delete('token');\n } else {\n // change token to current user token\n params.set('token', api.getAccessToken() || '');\n }\n const newParamsStr: string = params.toString();\n const newUrl = urlNoParams + (newParamsStr && '?' + newParamsStr);\n\n // only replace if different\n if (ampUrl !== newUrl) {\n replaceArr.push({ from: url, to: newUrl });\n }\n }\n for (const replace of replaceArr) {\n text = text.replace(replace.from, replace.to);\n }\n\n return text;\n}\n\nexport function getExtensionFromContentType(contentType: string): string {\n const extension: string = (contentType.split('/')[1] || '').trim();\n return extension ? `.${extension}` : '';\n}\n\nexport function filterImageAttachments(\n attachments: Attachment[]\n): Attachment[] {\n return attachments.filter((attachment: Attachment) => {\n return imageExtensions.some((extension: string) => {\n return (\n attachment.url?.includes(extension) ||\n attachment.name?.includes(extension)\n );\n });\n });\n}\n\n// hook wrapper\nexport function useFilterImageAttachments(\n attachments: Attachment[]\n): Attachment[] {\n return useMemo(() => filterImageAttachments(attachments), [attachments]);\n}\n\nconst BASE64_MARKER: string = ';base64,';\n\n// NOTE: taken from https://gist.github.com/kylefox/c09a7b738aacf088c2ec2b359ddcc5ea\nexport function useConvertDataURLToFile(): (\n dataURL: string,\n getFileName?: (mimeType: string) => string\n) => File | undefined {\n // check if given URL looks like a base64-encoded URL\n const isDataURI = useCallback((url: string): boolean => {\n return url.split(BASE64_MARKER).length === 2;\n }, []);\n\n const dataURItoFile = useCallback(\n (\n dataURI: string,\n getFileName?: (mimeType: string) => string\n ): File | undefined => {\n if (!isDataURI(dataURI)) {\n return;\n }\n\n const [mimePart = '', contentPart = ''] = dataURI.split(BASE64_MARKER);\n // Format of a base64-encoded URL:\n // data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAEOCAIAAAAPH1dAAAAK\n const mime: string = mimePart.split(':')[1];\n const filename: string =\n getFileName?.(mime) ||\n 'dataURI-file-' + new Date().getTime() + '.' + mime.split('/')[1];\n const bytes: string = atob(contentPart);\n const writer: Uint8Array = new Uint8Array(new ArrayBuffer(bytes.length));\n\n for (let i: number = 0; i < bytes.length; i++) {\n writer[i] = bytes.charCodeAt(i);\n }\n\n return new File([writer.buffer], filename, { type: mime });\n },\n [isDataURI]\n );\n\n return dataURItoFile;\n}\n\nexport function useResolvablePromise() {\n const resolveRef = useRef<(value: ResolveType) => void>();\n const rejectRef = useRef<(value: RejectType) => void>();\n\n const createPromise = useCallback(\n (\n callback?: (\n resolve: (value: ResolveType) => void,\n reject: (value: RejectType) => void\n ) => void\n ) => {\n return new Promise((resolve, reject) => {\n resolveRef.current = resolve;\n rejectRef.current = reject;\n callback?.(resolve, reject);\n });\n },\n []\n );\n\n return { createPromise, resolveRef, rejectRef };\n}\n\nexport interface AttachNewImagesHookProps {\n attachments: InlineFileValue[];\n onCompleteUpload?: () => void;\n onChangeAttachments?: (attachments: InlineFileValue[]) => void;\n}\n\nexport function useAttachNewImages(props: AttachNewImagesHookProps) {\n const { attachments, onCompleteUpload, onChangeAttachments } = props;\n\n // get all src from value\n // get storageKeys from src\n // check if storageKey exists in attachments\n // if storageKey exists but does not exist for attachments, reupload the image\n // if no storageKey, upload the image src\n\n const uploadedBlacklist = useRef([]);\n const convertToFile = useConvertDataURLToFile();\n\n interface URLData {\n url: string;\n originalUrl: string;\n storageKey?: string;\n }\n\n const valueRef = useRef<\n { value: string; uploadData: URLData[] } | undefined\n >();\n\n const { createPromise, resolveRef, rejectRef } = useResolvablePromise<\n string | undefined\n >();\n\n const { handleFile, isLoading, error } = useFileUpload({\n uploadPath: 'attachments',\n inputType: InputAcceptType.Images,\n fileValues: attachments,\n alwaysClear: true,\n onSuccess: () => {\n onCompleteUpload?.();\n resolveRef.current?.(valueRef.current?.value);\n },\n onChange: (attachments: InlineFileValue[], presignedUrl?: PresignedUrl) => {\n onChangeAttachments?.(attachments);\n if (!(presignedUrl && typeof valueRef.current !== 'undefined')) {\n return;\n }\n\n // skip if exists\n if (getExistingStorageKeys().includes(presignedUrl.storageKey)) {\n return;\n }\n\n // replace each existing url\n const data: URLData | undefined = valueRef.current.uploadData.find(\n (data: URLData) => !!valueRef.current?.value.includes(data.originalUrl)\n );\n if (data) {\n uploadedBlacklist.current.push(presignedUrl.storageKey);\n const url: URL = createProxyUrl(\n presignedUrl.storageKey || '',\n undefined,\n true\n );\n valueRef.current.value = valueRef.current.value.replace(\n data.originalUrl,\n url.toString()\n );\n }\n }\n });\n\n const imageAttachments: Attachment[] = useFilterImageAttachments(attachments);\n\n const getStorageKeyFromURL = useCallback((url: string):\n | string\n | undefined => {\n // if uploaded, get storageKey\n if (isProxyURL(url)) {\n // assume url has converted & to &\n const paramsStr: string = url.split('?')[1] || '';\n const params: URLSearchParams = new URLSearchParams(paramsStr);\n const storageKey: string | null = params.get('storageKey');\n if (storageKey) {\n return storageKey;\n }\n }\n }, []);\n\n const getURLData = useCallback(\n (urls: string[]): URLData[] => {\n return urls.map((url: string) => {\n // convert & to &\n const ampUrl: string = url.replace(/&/g, '&');\n return {\n url: ampUrl,\n originalUrl: url,\n storageKey: getStorageKeyFromURL(ampUrl)\n } as URLData;\n });\n },\n [getStorageKeyFromURL]\n );\n\n const getExtensionFromContentType = useCallback(\n (contentType: string): string => {\n const extension: string = (contentType.split('/')[1] || '').trim();\n return extension ? `.${extension}` : '';\n },\n []\n );\n\n const getExistingStorageKeys = useCallback((): string[] => {\n // get existing storageKeys from imageAttachments\n let existingKeys: string[] = [];\n for (const attachment of imageAttachments) {\n if (attachment.url) {\n existingKeys.push(attachment.url);\n }\n }\n\n // include uploaded list to avoid duplicate upload\n existingKeys.push(...uploadedBlacklist.current);\n existingKeys = Array.from(new Set(existingKeys));\n\n return existingKeys;\n }, [imageAttachments]);\n\n const filterUploadData = useCallback(\n (urlData: URLData[]): URLData[] => {\n const existingStorageKeys: string[] = getExistingStorageKeys();\n return urlData.filter((urlData: URLData) => {\n // upload if no storageKey, or if not in existing storageKeys\n return (\n !urlData.storageKey ||\n !existingStorageKeys.includes(urlData.storageKey)\n );\n });\n },\n [getExistingStorageKeys]\n );\n\n const createFileName = useCallback(\n (\n mimeType: string,\n index: number\n ): {\n fileName: string;\n extension: string;\n timestamp: number;\n } => {\n const extension: string = getExtensionFromContentType(mimeType) || '.png';\n const timestamp: number = +new Date();\n const fileName: string = `IMG_${timestamp}-${index}${extension}`;\n return { fileName, extension, timestamp };\n },\n [getExtensionFromContentType]\n );\n\n const convertURLDataToFile = useCallback(\n async (urlData: URLData, index: number): Promise => {\n // fetch and upload url data\n if (urlData.url.startsWith('http')) {\n const response: Response = await fetch(urlData.url);\n // get extension and create fileName\n const contentType: string =\n response.headers.get('content-type') || 'image/png';\n const { fileName, timestamp } = createFileName(contentType, index);\n const blob: Blob = await response.blob();\n return new File([blob], fileName, {\n type: contentType,\n lastModified: timestamp\n });\n }\n\n try {\n // is dataURL\n const file: File | undefined = convertToFile(\n urlData.url,\n (mimeType: string) => createFileName(mimeType, index).fileName\n );\n if (file) {\n return file;\n }\n } catch (_) {\n // ignore error\n }\n\n throw new Error(\n 'Unable to display image. Consider uploading the image instead.'\n );\n },\n [createFileName, convertToFile]\n );\n\n const uploadImages = useCallback(\n async (urlData: URLData[]) => {\n const files: File[] = await Promise.all(\n urlData.map(convertURLDataToFile)\n );\n // upload files\n handleFile(files);\n },\n [handleFile, convertURLDataToFile]\n );\n\n const inspectAndUpload = useCallback(\n (value: string): Promise => {\n // cancel previous call via rejection\n // handle undefined error to do nothing when catched\n rejectRef.current?.(undefined);\n const urls: string[] = getSrcFromText(value);\n const uploadData: URLData[] = filterUploadData(getURLData(urls));\n valueRef.current = { value, uploadData };\n return createPromise(async (resolve, reject) => {\n if (!uploadData.length) {\n return resolve(value);\n }\n try {\n await uploadImages(uploadData);\n } catch (error) {\n reject(error);\n }\n });\n },\n [rejectRef, getURLData, uploadImages, filterUploadData, createPromise]\n );\n\n useEffect(() => {\n if (error) {\n rejectRef.current?.(error);\n }\n }, [error, rejectRef]);\n\n return { inspectAndUpload, isLoading };\n}\n\nexport function useImageReloader() {\n type Timer = ReturnType;\n const maxAttempts: number = 10;\n const timersRef = useRef([]);\n const unmountedRef = useRef(false);\n const [error, setError] = useState();\n\n const handleImageError = (imageEl: HTMLImageElement) => {\n // if successful, skip\n // NOTE: taken from https://stackoverflow.com/a/1977898/7013346\n if (imageEl.complete && imageEl.naturalWidth !== 0) {\n return;\n }\n\n let tryCount: number = 0;\n let didLoad: boolean = false;\n imageEl.onload = () => {\n didLoad = true;\n };\n imageEl.onerror = () => {\n // reload image after a second\n const reload = setTimeout(() => {\n // after maxAttempts, stop trying and show error if failed\n if (tryCount >= maxAttempts) {\n if (!didLoad && !unmountedRef.current) {\n setError('Unable to load image.');\n }\n return;\n }\n tryCount++;\n // set image src to reload image\n // NOTE: taken from https://stackoverflow.com/a/55499609/7013346\n const { src = '' } = imageEl;\n imageEl.src = src;\n console.log(\n 'InlineHtml ImageReloader. Reload attempt:',\n tryCount,\n 'Image:',\n src\n );\n }, 1000);\n timersRef.current.push(reload);\n };\n };\n\n const reloadFailedImages = (iframe?: HTMLIFrameElement) => {\n const doc: Document | null | undefined = iframe?.contentDocument;\n if (!doc) {\n return;\n }\n setError(undefined);\n // console.log('InlineHtml: reloadFailedImages');\n Array.from(doc.querySelectorAll('img')).forEach(handleImageError);\n };\n\n useEffect(() => {\n return () => {\n // clear all timers\n unmountedRef.current = true;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const timers: Timer[] = timersRef.current;\n timers.splice(0, timers.length).forEach(clearTimeout);\n };\n }, []);\n\n return { error, reloadFailedImages };\n}\n\n// broken image styling\n// NOTE: taken from https://stackoverflow.com/a/37192970/7013346\nconst imageStyle: string = `\nimg {\n position: relative;\n}\n\nimg:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 16px;\n height: 16px;\n font-size: 15px;\n letter-spacing: 1px;\n background-color: #fff;\n color: rgba(0, 0, 0, 0.54);\n animation: animateLoading 1s infinite;\n}\n\n@keyframes animateLoading {\n 0% { content: '...'; }\n 50% { content: '.'; }\n 100% { content: '..'; }\n}\n`;\n\n// apply styling for failed images\nexport function applyImageStyling(iframe?: HTMLIFrameElement) {\n const doc: Document | null | undefined = iframe?.contentDocument;\n if (!doc) {\n return;\n }\n // style manually as this is inside an iframe\n const styleEl: HTMLStyleElement = document.createElement('style');\n styleEl.innerHTML = imageStyle;\n doc.head.appendChild(styleEl);\n}\n","import React, { useCallback, useRef } from 'react';\nimport styled from 'styled-components';\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Divider,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Typography\n} from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\nimport { AddPhotoAlternate as AddPhotoAlternateIcon } from '@material-ui/icons';\n\nimport { createProxyUrl } from '../../secure-portal/documents/Document.hook';\nimport { InputAcceptType, PresignedUrl } from '../api/File.interface';\nimport { Attachment } from '../attachment/Attachment.interface';\nimport { InlineFileValue } from './InlineFile';\nimport { useFileUpload, useFilterImageAttachments } from './InlineHtml.hooks';\n\nconst StyledDialogTitle = styled(DialogTitle)`\n display: flex;\n align-items: center;\n .MuiSvgIcon-root {\n margin-right: 10px;\n }\n`;\n\nconst StyledTableContainer = styled(TableContainer)`\n margin-top: 16px;\n margin-bottom: 16px;\n border-radius: 4px;\n border: 1px solid #ccc;\n`;\n\nexport interface InlineHtmlImageDialogProps {\n open: boolean;\n attachments: Attachment[];\n onCancel?: () => void;\n onSelect?: (url: string) => void;\n onCompleteUpload?: () => void;\n onChangeAttachments?: (attachments: InlineFileValue[]) => void;\n}\n\nconst InlineHtmlImageDialog: React.FC = (\n props: InlineHtmlImageDialogProps\n) => {\n const {\n open,\n attachments,\n onCancel,\n onSelect: onSelectProp,\n onCompleteUpload,\n onChangeAttachments\n } = props;\n const fileInputRef = useRef(null);\n\n const onSelectStorageKey = useCallback(\n (storageKey: string | undefined) => {\n if (onSelectProp) {\n const url: URL = createProxyUrl(storageKey || '', undefined, true);\n onSelectProp(url.toString());\n }\n },\n [onSelectProp]\n );\n\n const { handleFile, isLoading } = useFileUpload({\n uploadPath: 'attachments',\n inputType: InputAcceptType.Images,\n fileValues: attachments,\n onSuccess: onCompleteUpload,\n onChange: (attachments: InlineFileValue[], presignedUrl?: PresignedUrl) => {\n onChangeAttachments?.(attachments);\n if (presignedUrl) {\n onSelectStorageKey(presignedUrl.storageKey);\n }\n }\n });\n\n const imageAttachments: Attachment[] = useFilterImageAttachments(attachments);\n\n return (\n \n {isLoading && }\n \n \n Attach image or use existing image\n \n \n \n Upload a new image or use an existing image to attach\n \n \n \n \n \n File Name\n Attach\n \n \n \n {!imageAttachments.length && (\n \n No image attachments.\n \n )}\n {imageAttachments.map((attachment: Attachment, index: number) => (\n \n {attachment?.name || ''}\n \n onSelectStorageKey(attachment.url)}\n >\n Use\n \n \n \n ))}\n \n
    \n
    \n
    \n \n \n \n ) : (\n \n )\n }\n onClick={() => fileInputRef.current?.click()}\n >\n Upload new image\n \n handleFile(event?.target.files)}\n />\n \n
    \n );\n};\n\nexport default InlineHtmlImageDialog;\n","import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport { useField, useFormikContext } from 'formik';\nimport styled from 'styled-components';\nimport { Editor } from '@tinymce/tinymce-react';\nimport {\n Button,\n ButtonGroup,\n Collapse,\n FormHelperText,\n Grid,\n GridProps,\n Typography\n} from '@material-ui/core';\nimport { Done as DoneIcon, Clear as ClearIcon } from '@material-ui/icons';\n\nimport { UserContext } from '../../user/User.context';\nimport environment from '../../environments';\nimport AppSnackbar from '../AppSnackbar';\nimport { useTimeout } from '../timeout.hook';\nimport { InlineFileValue } from './InlineFile';\nimport InlineHtmlImageDialog, {\n InlineHtmlImageDialogProps\n} from './InlineHtmlImageDialog';\nimport {\n formatImgURLs,\n useImageReloader,\n useAttachNewImages,\n applyImageStyling\n} from './InlineHtml.hooks';\n\ntype SetImageCallback = (src: string, options?: object) => void;\n\nconst StyledButtonGroup = styled(ButtonGroup)`\n border: 1px solid #ccc;\n border-top: 0;\n border-radius: 0;\n`;\n\nexport interface InlineHtmlProps\n extends Pick<\n InlineHtmlImageDialogProps,\n 'onCompleteUpload' | 'onChangeAttachments'\n > {\n name: string;\n type?: string;\n value?: string;\n label?: string;\n height?: string | number;\n helperText?: string;\n disabled?: boolean;\n enableMedia?: boolean;\n hideConfirm?: boolean;\n submitOnChange?: boolean;\n grid?: GridProps;\n attachments?: InlineFileValue[];\n}\n\nconst InlineHtml: React.FC = (props: InlineHtmlProps) => {\n const {\n value,\n disabled,\n label,\n helperText,\n height,\n enableMedia = false,\n hideConfirm = false,\n submitOnChange = false,\n grid = { xs: 12 } as GridProps,\n attachments = [],\n onChangeAttachments,\n onCompleteUpload\n } = props;\n const noAutoResize: boolean = !!height;\n const formik = useFormikContext();\n const { resetSessionTime } = useContext(UserContext);\n const setImageCallbackRef = useRef();\n const textRef = useRef('');\n const [debounceSetValue] = useTimeout();\n const [debounceSubmit, clearDebouncedSubmit] = useTimeout();\n const [field, meta, { setValue: setFieldValue, setTouched }] =\n useField(props);\n const [focus, setFocus] = useState(false);\n const [buttonFocus, setButtonFocus] = useState(false);\n const [didInit, setDidInit] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n const [errorMessage, setErrorMessage] = useState('');\n const [previousValue, setPreviousValue] = useState(meta.initialValue);\n const [lastSubmitCount, setLastSubmitCount] = useState(\n formik.submitCount\n );\n const text: string = useMemo(() => {\n return formatImgURLs(value || field.value);\n }, [value, field.value]);\n const { error, reloadFailedImages } = useImageReloader();\n const { inspectAndUpload } = useAttachNewImages({\n attachments,\n onCompleteUpload,\n onChangeAttachments\n });\n\n const toolbar: string = useMemo(() => {\n const str: string[] = [\n 'undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify',\n `image ${enableMedia ? 'media' : ''}`,\n 'link bullist numlist outdent indent | removeformat | help | code',\n 'table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol'\n ];\n return str.join(' | ');\n }, [enableMedia]);\n\n // fixes infinite re-render for consecutive setValue calls\n const setValue = (value: any) => {\n debounceSetValue(() => setFieldValue(value));\n };\n\n const handleSubmit = () => {\n setTouched(true);\n setFocus(false);\n formik.submitForm();\n };\n\n const handleCancel = () => {\n setTouched(false);\n setValue(previousValue);\n };\n\n const filePickerCallback = (setImageCallback: Function) => {\n setImageCallbackRef.current = setImageCallback;\n setIsDialogOpen(true);\n };\n\n useEffect(() => {\n textRef.current = text;\n }, [text]);\n\n useEffect(() => {\n // update previous value if initial value changes\n setPreviousValue(meta.initialValue);\n }, [meta.initialValue]);\n\n useEffect(() => {\n if (!formik.isSubmitting && lastSubmitCount !== formik.submitCount) {\n // form finished submitting so set current value to previous value\n setPreviousValue(meta.value);\n setLastSubmitCount(formik.submitCount);\n }\n }, [formik.isSubmitting, formik.submitCount, lastSubmitCount, meta.value]);\n\n useEffect(() => {\n error && setErrorMessage(error);\n }, [error]);\n\n return (\n \n {label && (\n \n {label}\n \n )}\n {!didInit && (\n \n Loading editor...\n \n )}\n setFocus(true)}\n onInit={(event: any) => {\n const iframe: HTMLIFrameElement | undefined =\n event.target?.iframeElement;\n applyImageStyling(iframe);\n reloadFailedImages(iframe);\n setDidInit(true);\n }}\n onBlur={() => debounceSubmit(() => handleSubmit(), 100)}\n onEditorChange={async (content: string | undefined, editor: any) => {\n reloadFailedImages(editor.iframeElement);\n // remove `data-mce-id=\"__mcenew\" ` to fix infinite re-render\n content = content?.replace(/data-mce-id=\"__mcenew\" /g, '') || '';\n try {\n const replacedValue: string | undefined = await inspectAndUpload(\n content\n );\n const newValue: string =\n typeof replacedValue === 'string' ? replacedValue : content;\n // avoid infinite re-render\n if (newValue !== textRef.current) {\n setValue(newValue);\n }\n } catch (error) {\n console.error('InlineHtml error:', error);\n if (error) {\n setErrorMessage(error.message);\n setValue(content);\n }\n }\n\n // submit every time a change occurred\n if (submitOnChange) {\n debounceSubmit(() => handleSubmit(), 100);\n }\n }}\n onKeyDown={event => {\n resetSessionTime();\n switch (event.key) {\n case 'Escape':\n return handleCancel();\n }\n }}\n />\n \n \n setButtonFocus(true)}\n onBlur={() => setButtonFocus(false)}\n onClick={event => {\n clearDebouncedSubmit();\n event.stopPropagation();\n setButtonFocus(false);\n handleSubmit();\n }}\n >\n \n \n setButtonFocus(true)}\n onBlur={() => setButtonFocus(false)}\n onClick={event => {\n clearDebouncedSubmit();\n event.stopPropagation();\n setFocus(false);\n setButtonFocus(false);\n handleCancel();\n }}\n >\n \n \n \n \n {didInit && helperText && {helperText}}\n setIsDialogOpen(false)}\n onSelect={(url: string) => {\n setIsDialogOpen(false);\n setImageCallbackRef.current?.(url);\n }}\n />\n\n setErrorMessage('')}\n >\n {errorMessage}\n \n \n );\n};\n\nexport default InlineHtml;\n","import React, { useEffect, useRef, useState } from 'react';\nimport { TextField, TextFieldProps } from '@material-ui/core';\nimport { Autocomplete } from '@material-ui/lab';\n\nimport { ApiParams } from '../../../common/api/api';\nimport { useDebounce } from '../../../common/Debounce.hooks';\nimport { User } from '../../../user/User.interface';\nimport { useFindUsers } from '../../../user/User.hooks';\n\n// compare IDs of both arrays\nfunction arrayEquals(a: number[], b?: number[]): boolean {\n return (\n Array.isArray(a) &&\n Array.isArray(b) &&\n a.length === b.length &&\n a.every((val, index) => val === b[index])\n );\n}\n\nexport interface MultiUserSelectorProps {\n value?: number[];\n disabled?: boolean;\n showEmail?: boolean;\n textFieldProps?: Omit;\n onSelected?: (user: User[]) => void;\n onChange?: (user: User[]) => void;\n}\n\nconst MultiUserSelector: React.FC = (\n props: MultiUserSelectorProps\n) => {\n const {\n value: userId,\n disabled,\n showEmail,\n textFieldProps,\n onChange,\n onSelected\n } = props;\n const previousUserId = useRef(userId || []);\n const [search, setSearch] = useState('');\n const [selected, setSelected] = useState([]);\n const [users, setUsers] = useState([]);\n const debouncedSearch: string = useDebounce(search, 300);\n const { userList, isLoading, error, get } = useFindUsers();\n\n useEffect(() => {\n const params: ApiParams = {};\n if (debouncedSearch) {\n params.search = debouncedSearch;\n }\n get(params);\n }, [get, debouncedSearch]);\n\n useEffect(() => {\n userList?.data && setUsers(userList?.data);\n }, [userList]);\n\n // if userId changes, reselect user\n useEffect(() => {\n if (!arrayEquals(previousUserId.current, userId)) {\n setSelected([]);\n previousUserId.current = userId || [];\n }\n }, [userId]);\n\n useEffect(() => {\n // if no selected user yet\n if (selected.length > 0) {\n return;\n }\n const selectedUser: User[] = users.filter((user: User) => {\n return userId?.some(uid => uid === user.id);\n });\n\n if (selectedUser.length > 0) {\n setSelected(selectedUser);\n onSelected?.(selectedUser);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [users, userId]);\n\n return (\n {\n const name = `${option.firstName} ${option.lastName}`;\n return showEmail ? `${name} (${option.email})` : name;\n }}\n getOptionSelected={(option: User) =>\n !!userId?.some((id: number) => id === option.id)\n }\n onInputChange={(_, value: string) => setSearch(value)}\n onChange={(_event: React.ChangeEvent<{}>, value: User[]) => {\n previousUserId.current = value.map(u => u.id);\n setSelected(value);\n onChange?.(value);\n }}\n renderInput={params => (\n \n )}\n />\n );\n};\n\nexport default MultiUserSelector;\n","import { Checkbox, FormControlLabel, TextField } from '@material-ui/core';\nimport { State, WorkflowInvoke } from '@sierralabs/workflow';\nimport { useState } from 'react';\nimport styled from 'styled-components';\nimport InlineFormik from '../../../../common/inline/InlineFormik';\nimport InlineHtml from '../../../../common/inline/InlineHtml';\nimport { Group } from '../../../groups/Group.interface';\nimport { SendEmailParams } from '../../../tasks/Task.machine';\nimport MultiUserSelector from '../../../users/components/MultiUserSelector';\nimport GroupSelector from '../../components/GroupSelector';\nimport {\n ServiceConfiguratorProps,\n ServiceDisplayProps,\n ServicePlugin\n} from '../ServicePlugin';\n\nconst StyledConfiguratorDiv = styled.div`\n .field {\n margin-top: 12px;\n margin-bottom: 12px;\n }\n .MuiTableCell-root {\n padding: 12px 5px 12px 5px;\n }\n`;\n\nconst SendEmailConfigurator: React.FC = props => {\n const { onChange } = props;\n const [invoke, setInvoke] = useState(props.invoke);\n if (!invoke.data) invoke.data = {};\n const data: SendEmailParams['data'] = invoke.data;\n\n const handleUpdateInvoke = (data: SendEmailParams['data']) => {\n const updatedInvoke = { ...invoke, data };\n setInvoke(updatedInvoke);\n onChange?.(updatedInvoke);\n };\n return (\n \n {\n data.groupIds = groups.map(group => group.id);\n handleUpdateInvoke(data);\n }}\n />\n {\n data.userIds = users.map(user => user.id);\n handleUpdateInvoke(data);\n }}\n />\n {\n data.specificEmailIds = event.target.value;\n handleUpdateInvoke(data);\n }}\n />\n {\n data.includeLinkToItem = checked;\n handleUpdateInvoke(data);\n }}\n />\n }\n />\n {\n data.message = message;\n handleUpdateInvoke(data);\n }}\n >\n \n \n \n );\n};\n\nconst SendEmailDisplay: React.FC = ({ invoke }) => {\n return null;\n};\n\nexport const SendEmailPlugin: ServicePlugin = {\n src: 'sendEmail',\n name: 'Send Email',\n configurator: SendEmailConfigurator,\n display: SendEmailDisplay,\n validate: (condition: Partial) => {\n return true;\n },\n service: (state: State, params: SendEmailParams) => {\n console.log('sendEmail state', state);\n return true;\n }\n};\n","import { UpdateJiraIssuePlugin } from './UpdateJiraIssuePlugin';\nimport { CreateJiraIssuePlugin } from './CreateJiraIssuePlugin';\nimport { CreateSubTasksPlugin } from './CreateSubTasksPlugin';\nimport { PublishEventPlugin } from './PublishEventPlugin';\nimport { RemoveSubTasksPlugin } from './RemoveSubTasksPlugin';\nimport { TransitionEntityStatusFromJiraPlugin } from './TransitionEntityStatusFromJiraPlugin';\nimport { TransitionJiraIssuePlugin } from './TransitionJiraIssuePlugin';\nimport { UpdateRelatedEntityStatusPlugin } from './UpdateRelatedEntityStatusPlugin';\nimport { UpdateFieldFromJiraPlugin } from './UpdateFieldFromJiraPlugin';\nimport { SendEmailPlugin } from './SendEmailPlugin';\n\n/**\n * Register service action plugins here\n */\nconst servicePlugins = [\n CreateSubTasksPlugin,\n RemoveSubTasksPlugin,\n PublishEventPlugin,\n UpdateRelatedEntityStatusPlugin,\n UpdateJiraIssuePlugin,\n CreateJiraIssuePlugin,\n TransitionJiraIssuePlugin,\n UpdateFieldFromJiraPlugin,\n TransitionEntityStatusFromJiraPlugin,\n SendEmailPlugin\n];\n\nexport default servicePlugins;\n","import { CheckDependenciesPlugin } from './CheckDependenciesPlugin';\nimport { CheckSubTasksPlugin } from './CheckSubTasksPlugin';\nimport { CheckTeamPlugin } from './CheckTeamPlugin';\nimport { ConfirmPlugin } from './ConfirmPlugin';\n// import { DataConditionPlugin } from './DataConditionPlugin';\nimport { RequiredFieldsPlugin } from './RequiredFieldsPlugin';\nimport { SignaturePlugin } from './SignaturePlugin';\n\n/**\n * Register transition condition plugins in this array\n */\nconst transitionConditionPlugins = [\n RequiredFieldsPlugin,\n ConfirmPlugin,\n SignaturePlugin,\n CheckSubTasksPlugin,\n CheckTeamPlugin,\n CheckDependenciesPlugin\n // DataConditionPlugin\n];\n\nexport default transitionConditionPlugins;\n","import {\n Box,\n Checkbox,\n ListItemText,\n MenuItem,\n TextField\n} from '@material-ui/core';\nimport {\n State,\n StateTransitionCondition,\n WorkflowParams\n} from '@sierralabs/workflow';\nimport { useEffect } from 'react';\nimport { useFindGroups } from '../../../groups/Group.hooks';\nimport { Group } from '../../../groups/Group.interface';\nimport { TaskContext } from '../../../tasks/Task.machine';\n\nimport {\n TransitionConditionConfiguratorProps,\n TransitionConditionDisplayProps,\n TransitionConditionPlugin\n} from '../TransitionConditionPlugin';\n\nconst CheckTeamConfigurator: React.FC = ({\n taskType,\n event,\n condition,\n onChange\n}) => {\n // get teams for permission conditions\n const { groupList, get: findGroups } = useFindGroups();\n useEffect(() => findGroups({ limit: 100 }), [findGroups]);\n\n return (\n \n \n selected\n .map((value: number) => groupList?.data.find(g => g.id === value))\n .map((g: Group) => g.name)\n .join(', '),\n onChange: event => {\n if (condition.params) {\n condition.params.groupIds = event.target.value;\n console.log('onChange', event.target.value);\n onChange?.({ ...condition });\n }\n }\n }}\n >\n {groupList?.data?.map(group => (\n \n -1\n : false\n }\n />\n \n \n ))}\n \n \n );\n};\n\nconst CheckTeamDisplay: React.FC = ({\n condition\n}) => {\n return <>Check Team Permission;\n};\n\nexport const CheckTeamPlugin: TransitionConditionPlugin = {\n type: 'check-team',\n label: 'Check Team Permission',\n configurator: CheckTeamConfigurator,\n display: CheckTeamDisplay,\n validate: (condition: Partial) => {\n return true;\n },\n guard: (state: State, params: WorkflowParams) => {\n // console.log('guards: check-team', state, params);\n const groupIds: number[] = params?.groupIds || [];\n // make sure user has group permission to transition\n if (\n !state.context?.user.groups ||\n !state.context?.user.groups.some(userGroup =>\n groupIds.some(id => id === userGroup.id)\n )\n ) {\n return false;\n }\n return true;\n }\n};\n","import {\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport {\n State,\n StateEvent,\n StateNode,\n Workflow,\n WorkflowMachine\n} from '@sierralabs/workflow';\n\nimport { PartialPick } from '../../common/types/common.interface';\nimport { UserContext } from '../../user/User.context';\nimport { User } from '../../user/User.interface';\nimport { useWorkflowContext } from '../workflow/Workflow.context';\nimport { getStateNodeByStatus } from '../workflow/Workflow.hooks';\nimport { WorkflowInvokeEvent } from '../workflow/Workflow.interface';\nimport servicePlugins from '../workflow/plugins/services';\nimport transitionConditionPlugins from '../workflow/plugins/transition-conditions';\nimport { SubTaskUser, Task, TaskEntity } from './Task.interface';\n\nexport interface TaskContext {\n event: StateEvent | undefined;\n task: Task;\n taskEntity?: TaskEntity;\n user: User;\n workflow: Workflow;\n reason?: string | null;\n subTaskUserIds?: SubTaskUser[];\n /** List of transition condition plugins to skip. */\n skipTransitionConditionPlugins?: string[];\n /** List of service plugins to skip. */\n skipServicePlugins?: string[];\n /**\n * For Jira plugins that show a skip option whenever\n * a Task doesn't have any (filtered) Jira issues to update.\n */\n autoSkipJiraPlugins?: string[];\n}\n\nexport interface CreateJiraIssueParams {\n src: 'createJiraIssue';\n data: {\n projectId?: string;\n issueTypeId?: string;\n linkToEntity?: boolean;\n duplicateTitle?: boolean;\n duplicateDescription?: boolean;\n enableTitleTemplate?: boolean;\n titleTemplate?: string;\n };\n}\n\nexport interface CreateSubTaskParams {\n src: 'createSubTasks';\n data: {\n /** @deprecated Use `groups` instead. */\n groupIds?: number[];\n groups: { id: number; name: string }[];\n workflow: { id: number; name: string };\n numberOfTasks: number;\n dialogTitle?: string;\n dialogMessage?: string;\n };\n}\n\nexport interface RemoveSubTasksParams {\n src: 'removeSubTasks';\n data: {\n /**\n * Remove SubTasks with state paths from this list of state paths.\n * If there are no state paths configured, all SubTasks should be removed.\n */\n statePaths?: string[];\n };\n}\n\nexport interface UpdateRelatedEntityStatusParams {\n src: 'updateRelatedEntityStatus';\n data: {\n entityName: string; // entitySchema.name\n relations: {\n name?: string; // user friendly display name\n // join relations; i.e. propertyName[0]->...propertyName[n]\n propertyNames: string[];\n taskType: string; // taskType.name\n events: {\n state: string; // stateNode.name\n event: string; // event.name\n target: string; // transition.target\n }[];\n }[];\n };\n}\n\nexport interface UpdateJiraIssueParams {\n src: 'updateJiraIssue';\n data: {\n projectId: string;\n fields: {\n /** Entity column property name. */\n entityField: string;\n issueType?: { id: string; name: string };\n issueField: string;\n }[];\n };\n}\n\nexport interface TransitionJiraIssueParams {\n src: 'transitionJiraIssue';\n data: {\n projectId: string | undefined;\n issues: {\n issueType?: { id: string; label: string };\n statuses?: { id: string; name: string }[];\n }[];\n };\n}\n\nexport interface UpdateFieldFromJiraParams {\n src: 'updateFieldFromJira';\n data: {\n projectId?: string;\n fields?: {\n entityField?: string;\n issueType?: { id: string; label: string };\n issueField?: string;\n }[];\n };\n}\n\nexport interface TransitionEntityStatusFromJiraParams {\n src: 'transitionEntityStatusFromJira';\n data: {\n projectId?: string;\n eventName?: string;\n partial?: boolean;\n issues?: {\n statuses?: { id: string; name: string }[];\n issueType?: { id: string; label: string };\n }[];\n };\n}\n\nexport interface PublishEventParams {\n src: 'publishEvent';\n data: {\n events: WorkflowInvokeEvent[];\n };\n}\nexport interface RequireFieldsParams {\n requiredFields: string[];\n}\n\nexport interface CheckSubTasksParams {\n path: string;\n partial?: boolean;\n}\n\nexport interface SendEmailParams {\n src: 'sendEmail';\n data: {\n groupIds?: number[];\n userIds?: number[];\n specificEmailIds?: string;\n includeLinkToItem?: boolean;\n message?: string;\n };\n}\n\nexport function useGetWorkflowMachineState(task?: Task) {\n const { user } = useContext(UserContext);\n const { getWorkflow } = useWorkflowContext();\n const [workflowMachineState, setWorkflowMachineState] = useState<{\n workflow?: Workflow;\n machine?: WorkflowMachine;\n stateNode?: StateNode;\n render?: JSX.Element;\n }>({});\n const workflowMachineStateRef = useRef(workflowMachineState);\n const machineOptions = useMemo(() => {\n const render = (element?: JSX.Element) => {\n setWorkflowMachineState({\n ...workflowMachineStateRef.current,\n render: element\n });\n };\n return {\n guards: transitionConditionPlugins.reduce((guards, plugin) => {\n guards[plugin.type] = (state: State, params: any) =>\n plugin.guard(state, params, render);\n return guards;\n }, {} as any),\n services: servicePlugins.reduce((services, plugin) => {\n services[plugin.src] = (state: State, params: any) =>\n plugin.service(state, params, render);\n return services;\n }, {} as any)\n };\n }, []);\n\n const canTransition = useCallback(\n (event: StateEvent, task: Task, taskEntity: TaskEntity, user: User) => {\n const { stateNode, machine, workflow } = workflowMachineStateRef.current;\n const state: State = {\n path: stateNode!.path,\n context: { event, task, taskEntity, user, workflow: workflow! }\n };\n return machine?.canTransition(state, event.name);\n },\n []\n );\n\n const handleTransition = useCallback(\n async (context: Omit) => {\n const { stateNode, machine, workflow } = workflowMachineStateRef.current;\n const state: State = {\n path: stateNode!.path,\n context: { workflow: workflow!, ...context }\n };\n const newState = await machine?.transition(state, context.event?.name);\n return newState;\n },\n []\n );\n\n const runMachine = useCallback(\n async (\n // make some fields optional\n context: PartialPick\n ) => {\n const workflow: Workflow | undefined = getWorkflow(context.task);\n if (!workflow) {\n return {};\n }\n const machine = new WorkflowMachine(\n workflow,\n machineOptions\n );\n workflowMachineStateRef.current.workflow = workflow;\n workflowMachineStateRef.current.machine = machine;\n\n let stateNode = getStateNodeByStatus(context.task.status, workflow);\n if (!stateNode) {\n try {\n const state = await machine.start({\n event: undefined,\n workflow,\n user: user!,\n ...context\n });\n stateNode = workflow.getState(state.path);\n workflowMachineStateRef.current.stateNode = stateNode;\n } catch (error) {\n console.error('[runMachine] error:', error);\n }\n } else {\n workflowMachineStateRef.current.stateNode = stateNode;\n }\n return { workflow, machine, stateNode };\n },\n [machineOptions, user, getWorkflow]\n );\n\n // run the machine when task changes\n useEffect(() => {\n (async () => {\n if (task) {\n const workflowMachineState = await runMachine({ task });\n setWorkflowMachineState({ ...workflowMachineState });\n }\n })();\n }, [task, runMachine]);\n return {\n ...workflowMachineState,\n runMachine,\n canTransition,\n handleTransition\n };\n}\n","import React, {\n Fragment,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport styled from 'styled-components';\nimport { v4 as uuid } from 'uuid';\nimport {\n Box,\n Button,\n Checkbox,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContentText,\n DialogTitle,\n lighten,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Tooltip,\n Typography\n} from '@material-ui/core';\nimport {\n ArrowForward as ArrowForwardIcon,\n Cancel as CancelIcon,\n CheckBox as CheckBoxIcon,\n CheckCircle as CheckCircleIcon,\n SubdirectoryArrowRight as SubdirectoryArrowRightIcon\n} from '@material-ui/icons';\nimport { State, StateEvent, StateTransition } from '@sierralabs/workflow';\n\nimport { FetchError } from '../../../common/api/api';\nimport { getEntityPrefix } from '../../../common/entityId.hooks';\nimport TaskStatusLabel from '../../../common/TaskStatusLabel';\nimport { UserContext } from '../../../user/User.context';\nimport { useJiraConnectContext } from '../../jira-connect/JiraConnect.context';\nimport { CreateJiraIssuePlugin } from '../../workflow/plugins/services/CreateJiraIssuePlugin';\nimport { CreateSubTasksPlugin } from '../../workflow/plugins/services/CreateSubTasksPlugin';\nimport { TransitionJiraIssuePlugin } from '../../workflow/plugins/services/TransitionJiraIssuePlugin';\nimport { UpdateJiraIssuePlugin } from '../../workflow/plugins/services/UpdateJiraIssuePlugin';\nimport { CheckDependenciesPlugin } from '../../workflow/plugins/transition-conditions/CheckDependenciesPlugin';\nimport { ConfirmPlugin } from '../../workflow/plugins/transition-conditions/ConfirmPlugin';\nimport { RequiredFieldsPlugin } from '../../workflow/plugins/transition-conditions/RequiredFieldsPlugin';\nimport { SignaturePlugin } from '../../workflow/plugins/transition-conditions/SignaturePlugin';\nimport { useWorkflowContext } from '../../workflow/Workflow.context';\nimport { parseTaskStatus } from '../task.helper';\nimport { updateTask } from '../Task.hooks';\nimport { Task, TaskBulkEvent, TaskEntity } from '../Task.interface';\nimport { TaskContext, useGetWorkflowMachineState } from '../Task.machine';\nimport { findTaskJiraIssues } from '../TaskJira.hooks';\n\nconst StyledDialog = styled(Dialog)`\n .MuiLinearProgress-root {\n position: absolute;\n width: 100%;\n }\n .MuiTableCell-stickyHeader {\n background-color: ${props => props.theme.palette.background.paper};\n }\n\n .icon {\n vertical-align: middle;\n }\n .success-icon {\n color: ${props => props.theme.palette.success.main};\n }\n .error-icon {\n color: ${props => props.theme.palette.error.main};\n }\n\n .completed-row {\n background-color: ${props =>\n lighten(props.theme.palette.success.main, 0.85)};\n .status-icon {\n color: ${props => props.theme.palette.success.main};\n }\n }\n .error-row {\n background-color: ${props => lighten(props.theme.palette.error.main, 0.85)};\n .status-icon {\n color: ${props => props.theme.palette.error.main};\n }\n }\n .warning-row {\n background-color: ${props =>\n lighten(props.theme.palette.warning.main, 0.85)};\n .status-icon {\n color: ${props => props.theme.palette.warning.main};\n }\n }\n\n .display-transition {\n display: flex;\n align-items: center;\n column-gap: 2px;\n }\n\n .MuiDialogActions-root {\n display: block;\n white-space: nowrap;\n overflow-x: auto;\n }\n .transition-button .MuiButton-label {\n column-gap: 2px;\n .MuiSvgIcon-root {\n font-size: 1rem;\n }\n }\n`;\n\ninterface SubTaskBulkEvent {\n path: string;\n event: StateEvent;\n tasks: Task[];\n}\n\ninterface TaskBulkItem {\n /** Auto-generated ID. */\n id: string;\n /** Main Task or SubTask. */\n task: Task;\n /** Parent task if {@linkcode task} is a SubTask. */\n parent?: Task;\n event?: StateEvent;\n /** The Task entity. Always contains the main Task. */\n entity: TaskEntity;\n canTransition: boolean;\n error?: FetchError;\n selected?: boolean;\n hideTargetStatus?: boolean;\n status?: 'loading' | 'warn' | 'error' | 'done';\n}\n\nexport interface TaskBulkActionDialogProps {\n open: boolean;\n bulkEvent: TaskBulkEvent;\n getTitle: (taskEntity: TaskEntity) => React.ReactNode;\n onClose?: (processedEntities?: TaskEntity[]) => void;\n}\n\nconst TaskBulkActionDialog: React.FC = props => {\n const { open, bulkEvent, getTitle, onClose } = props;\n const { user } = useContext(UserContext);\n const didInit = useRef(false);\n const [isInitializing, setIsInitializing] = useState(true); // loading by default\n const [state, setState] = useState<{\n isLoading: boolean;\n didUpdate: boolean;\n event?: StateEvent;\n }>({ isLoading: false, didUpdate: false });\n const [taskItems, setTaskItems] = useState([]);\n const [subTaskEvents, setSubTaskEvents] = useState([]);\n const { render, runMachine, canTransition, handleTransition } =\n useGetWorkflowMachineState();\n const { isAvailable } = useJiraConnectContext();\n // since workflows are loaded asynchronously,\n // make sure to reinitialize items once loaded\n const { workflows } = useWorkflowContext();\n const isLoading = isInitializing || state.isLoading;\n\n const computedItems = useMemo(() => {\n const eligibleTaskItems: TaskBulkItem[] = [];\n const eligibleSelectedTaskItems: TaskBulkItem[] = [];\n const selectedMainTaskItems: TaskBulkItem[] = [];\n\n // use 1 loop for multiple filters\n for (const item of taskItems) {\n // eligible\n if (item.status !== 'done' && item.canTransition) {\n eligibleTaskItems.push(item);\n // eligible selected\n if (item.selected) {\n eligibleSelectedTaskItems.push(item);\n // eligible selected (bulk event stateNode path)\n if (item.task.status === bulkEvent.stateNode.path) {\n selectedMainTaskItems.push(item);\n }\n }\n }\n }\n\n const hasItems = eligibleTaskItems.length > 0;\n const allSelected =\n eligibleSelectedTaskItems.length >= eligibleTaskItems.length;\n const partialSelected =\n eligibleSelectedTaskItems.length > 0 &&\n eligibleSelectedTaskItems.length < eligibleTaskItems.length;\n\n return {\n eligibleTaskItems,\n eligibleSelectedTaskItems,\n selectedMainTaskItems,\n hasItems,\n allSelected,\n partialSelected\n };\n }, [bulkEvent.stateNode.path, taskItems]);\n\n const { selectedMainTaskItems, hasItems, allSelected, partialSelected } =\n computedItems;\n\n const isDisabled = (taskItem: TaskBulkItem | undefined) => {\n return (\n !taskItem ||\n isInitializing ||\n state.isLoading ||\n !taskItem.canTransition ||\n (['done', 'loading'] as TaskBulkItem['status'][]).includes(\n taskItem.status\n )\n );\n };\n\n const updateItem = (\n idOrPredicate:\n | string\n | ((value: TaskBulkItem, index: number, obj: TaskBulkItem[]) => unknown),\n updates: Partial\n ) => {\n setTaskItems(taskItems => {\n // match by id or provided function\n const index = taskItems.findIndex(\n typeof idOrPredicate === 'function'\n ? idOrPredicate\n : item => item.id === idOrPredicate\n );\n if (index > -1) {\n taskItems = Array.from(taskItems);\n const item = taskItems[index];\n taskItems[index] = { ...item, ...updates };\n }\n return taskItems;\n });\n };\n\n const bulkTransition = async (\n items: TaskBulkItem[],\n stateEvent: StateEvent\n ) => {\n setState(state => ({ ...state, isLoading: true, event: stateEvent }));\n\n // list of plugins to skip after the first item transition\n const skip = {\n transitionConditions: [\n CheckDependenciesPlugin.type,\n ConfirmPlugin.type,\n RequiredFieldsPlugin.type,\n SignaturePlugin.type\n ],\n services: [CreateSubTasksPlugin.src],\n jiraPlugins: [\n CreateJiraIssuePlugin.src,\n UpdateJiraIssuePlugin.src,\n TransitionJiraIssuePlugin.src\n ]\n };\n // skip jira plugins if not within jira instance\n if (!isAvailable) {\n skip.services.push(...skip.jiraPlugins);\n }\n\n // reuse the first state for the next entries\n let firstState: State | undefined;\n let { didUpdate } = state;\n for (const item of items) {\n // set loading state for current item\n updateItem(item.id, { status: 'loading', error: undefined });\n\n // set only if not the first state\n const skipServicePlugins = firstState ? skip.services : undefined;\n const skipTransitionConditionPlugins = firstState\n ? skip.transitionConditions\n : undefined;\n const autoSkipJiraPlugins = firstState ? skip.jiraPlugins : undefined;\n\n const { stateNode } = await runMachine({\n task: item.task,\n taskEntity: item.entity,\n user: user!,\n skipServicePlugins,\n skipTransitionConditionPlugins,\n autoSkipJiraPlugins\n });\n const event = stateNode?.events?.find(e => e.name === stateEvent.name);\n if (!stateNode || !event) {\n updateItem(item.id, {\n status: 'error',\n error: {\n statusCode: 0,\n error: 'Run Machine Error',\n message: !stateNode\n ? 'Could not determine the current state'\n : 'Workflow event not found'\n }\n });\n break;\n }\n\n const previousStatePath = stateNode.path;\n let newState: State | undefined;\n try {\n newState = await handleTransition({\n event,\n task: item.task,\n taskEntity: item.entity,\n user: user!,\n skipServicePlugins,\n skipTransitionConditionPlugins,\n autoSkipJiraPlugins\n });\n console.debug(\n '[TaskBulkActionDialog] previousStatePath: %o newState: %o',\n previousStatePath,\n newState\n );\n } catch {\n // ignore transition errors and treat as cancelled\n }\n if (!newState || newState.path === previousStatePath) {\n // if cancelled, stop transitioning other items\n updateItem(item.id, {\n status: 'warn',\n error: {\n statusCode: 0,\n error: 'Transition Error',\n message: 'Transition failed or was cancelled.'\n }\n });\n break;\n }\n\n // set first state to be reused for next entries\n firstState = firstState || newState;\n\n // update task and set it to taskItem\n const { result } = updateTask(item.task.id || 0, {\n status: newState.path,\n event: event.toJson(),\n // use data from the first state since some of\n // the plugins for the next states are skipped\n reason: firstState.context.reason,\n subTaskUserIds: firstState.context.subTaskUserIds\n });\n const { data: updatedTask, error } = await result;\n if (!updatedTask || error) {\n updateItem(item.id, {\n status: 'error',\n error: error || {\n statusCode: 0,\n error: 'Update Error',\n message: 'Unable to update the Task item.'\n }\n });\n break;\n }\n\n // set didUpdate after successfully updating at least 1 task\n didUpdate = true;\n\n const previousStatus = item.task.status;\n if (updatedTask.id === item.task.id) {\n // directly update task properties\n // this would automatically apply to status to the parent task's subTask\n // as the subTask reference is the same\n Object.assign(item.task, updatedTask);\n }\n\n const didStatusChange = previousStatus !== item.task.status;\n\n setTaskItems(taskItems => {\n // filter related tasks and get index of item\n const updatedTaskItems: TaskBulkItem[] = [];\n for (let index = 0; index < taskItems.length; index++) {\n // find related task items that match the task but events can differ\n // e.g. same subTask for 2 items that have different events: approve and reject\n const taskItem = taskItems[index];\n\n // match exact event\n if (taskItem.id === item.id) {\n const updatedTaskItem: TaskBulkItem = { ...taskItem };\n // remove selection and mark as processed\n if (didStatusChange) {\n updatedTaskItem.selected = false;\n updatedTaskItem.status = 'done';\n updatedTaskItem.error = undefined;\n // hide the target status if status changed\n updatedTaskItem.hideTargetStatus = didStatusChange;\n } else {\n // handle cases where tasks do not transition (workflow guard checks failed)\n updatedTaskItem.status = 'warn';\n updatedTaskItem.error = {\n statusCode: 0,\n error: 'Transition Error',\n message: 'Transition checks failed.'\n };\n }\n updatedTaskItems.push(updatedTaskItem);\n } else if (\n // filter out related task items (other subTasks of different event)\n !(\n taskItem.task.id === item.task.id &&\n taskItem.entity.id === item.entity.id &&\n taskItem.entity.task &&\n item.entity.task &&\n taskItem.entity.task.id === item.entity.task.id\n ) &&\n // skip task items that are subTasks of the current task item\n // if they are not part of the updated task children array\n !(\n taskItem.parent &&\n taskItem.parent.id === item.task.id &&\n !(item.task.children || []).some(\n child => child.id === taskItem.task.id\n )\n )\n ) {\n updatedTaskItems.push(taskItem);\n }\n }\n return updatedTaskItems;\n });\n\n // run transitions for parent task when subTask is transitioned\n // with an updated status to properly run the actions for the parent task\n const { parent } = item;\n if (parent) {\n const matchParent = (item: TaskBulkItem) => item.task.id === parent.id;\n updateItem(matchParent, { status: 'loading', error: undefined });\n\n let parentItemStatus: TaskBulkItem['status'];\n const previousParentStatus = parent.status;\n const canParentTransition = Boolean(\n await canTransition(event, parent, item.entity, user!)\n );\n\n try {\n const { stateNode } = await runMachine({\n task: parent,\n taskEntity: item.entity,\n user: user!,\n skipServicePlugins,\n skipTransitionConditionPlugins,\n autoSkipJiraPlugins\n });\n\n // no need to update this task since parent tasks\n // are already updated by the subTask's updateTask() call\n const previousStatePath = stateNode?.path;\n const parentState = await handleTransition({\n event: undefined,\n task: parent,\n taskEntity: item.entity,\n user: user!,\n skipServicePlugins,\n skipTransitionConditionPlugins,\n autoSkipJiraPlugins\n });\n\n // mark as done if state path changed\n parentItemStatus =\n parentState && parentState.path !== previousStatePath\n ? 'done'\n : undefined;\n } catch {\n // ignore parent transition errors, treat as cancelled\n parentItemStatus = 'warn';\n }\n\n // directly update parent status and hide target status\n // only after parent task transition\n if (\n updatedTask.id === item.task.id &&\n updatedTask.parent?.status &&\n parent.status !== updatedTask.parent.status\n ) {\n parent.status = updatedTask.parent.status;\n }\n\n const didParentTransitionFail = parentItemStatus === 'warn';\n const didParentStatusChange = !!(\n parent &&\n previousParentStatus &&\n previousParentStatus !== parent.status\n );\n\n updateItem(matchParent, {\n status: parentItemStatus,\n canTransition: parentItemStatus === 'done' && canParentTransition,\n // hide target status for parent task item\n hideTargetStatus: didParentStatusChange,\n error: didParentTransitionFail\n ? {\n statusCode: 0,\n error: 'Transition Error',\n message: 'Transition failed or was cancelled.'\n }\n : undefined\n });\n\n // stop processing next item if cancelled\n if (didParentTransitionFail) {\n break;\n }\n }\n }\n\n setState({ isLoading: false, didUpdate, event: undefined });\n };\n\n const handleClose = () => {\n // close only when not processing items\n if (state.isLoading) {\n return;\n }\n // make sure entities are unique as task items can\n // reference the same task entities but with different events\n const entities = new Set();\n for (const item of taskItems) {\n item.status === 'done' && entities.add(item.entity);\n }\n // pass undefined if no processed entities\n onClose?.(entities.size > 0 ? Array.from(entities) : undefined);\n };\n\n const renderRow = (options: {\n taskItem: TaskBulkItem;\n disabled: boolean;\n task?: Task;\n entity?: TaskEntity;\n }) => {\n const {\n disabled,\n taskItem,\n task = taskItem.task,\n entity = taskItem.entity\n } = options;\n const transition = taskItem.event?.transitions[0];\n const isSubTask = taskItem.parent;\n const isDone = taskItem.status === 'done';\n const className = isDone\n ? 'completed-row'\n : taskItem.status === 'warn'\n ? 'warning-row'\n : taskItem.status === 'error'\n ? 'error-row'\n : undefined;\n const eligible = taskItem.canTransition\n ? {\n icon: CheckCircleIcon,\n className: 'success-icon',\n title: 'This item can transition to the next status.'\n }\n : {\n icon: CancelIcon,\n className: 'error-icon',\n title: 'Workflow rules prevent this item from being transitioned.'\n };\n return (\n {\n if (!disabled) {\n updateItem(taskItem.id, {\n error: undefined,\n status: undefined,\n selected: !taskItem.selected\n });\n }\n }}\n >\n \n {taskItem.status === 'loading' ? (\n \n ) : isDone || taskItem.error ? (\n \n \n \n ) : (\n \n )}\n \n \n {!isSubTask ? (\n // NOTE: id will be changed to use task.key in SLQMS-921\n `${getEntityPrefix(entity.task!.type)}-${entity.id}`\n ) : (\n \n )}\n \n \n {taskItem.event ? (\n taskItem.event.name\n ) : (\n \n N/A\n \n )}\n \n \n
    \n \n {transition && !taskItem.hideTargetStatus && (\n <>\n \n \n \n )}\n
    \n
    \n \n \n \n \n \n \n {!isSubTask\n ? getTitle?.(entity)\n : task.user &&\n `Assigned: ${task.user.firstName} ${task.user.lastName}`}\n \n \n );\n };\n\n const renderSubTasks = (task: Task | undefined) => {\n return task?.children?.map(subTask => {\n return taskItems.map((taskItem, index) => {\n // filter inside map to keep track of index\n return taskItem.task.id !== subTask.id ? null : (\n \n {renderRow({\n taskItem,\n task: subTask,\n disabled: isDisabled(taskItem)\n })}\n {renderSubTasks(subTask)}\n \n );\n });\n });\n };\n\n const renderButton = (options: {\n key?: React.Key;\n status: string;\n event: StateEvent;\n selectedItems: TaskBulkItem[];\n }) => {\n const { status, event, selectedItems } = options;\n const parsedStatus = parseTaskStatus(status);\n const transition = event.transitions[0] as StateTransition | undefined;\n const parsedTargetStatus = transition && parseTaskStatus(transition.target);\n return (\n \n }\n onClick={() => bulkTransition(selectedItems, event)}\n >\n {/* only display target status if not the same as source status */}\n {parsedStatus}\n {parsedTargetStatus && parsedStatus !== parsedTargetStatus && (\n <>\n \n {parsedTargetStatus}\n \n )}\n {selectedItems.length > 0 && ` (${selectedItems.length})`}\n \n );\n };\n\n // allow resetting state\n useEffect(() => {\n if (!open) {\n didInit.current = false;\n }\n }, [open]);\n\n // allow reinit (next effect) if workflows are updated\n useEffect(() => {\n didInit.current = false;\n }, [workflows]);\n\n useEffect(() => {\n // skip setting state if already loaded\n // to avoid triggering the effect on save during development\n if (didInit.current) {\n return;\n }\n didInit.current = true;\n\n const taskItems: TaskBulkItem[] = [];\n const subTaskEvents: SubTaskBulkEvent[] = [];\n\n // get all user assigned SubTasks recursively\n const recursiveProcessSubTasks = async (task: Task, entity: TaskEntity) => {\n for (const subTask of task.children || []) {\n const { stateNode } = await runMachine({ task: subTask });\n const events = stateNode?.events || [];\n if (events.length === 0) {\n // for subTasks with no events, display the status\n taskItems.push({\n id: uuid(),\n task: subTask,\n parent: task,\n entity,\n canTransition: false\n });\n }\n for (const event of events) {\n taskItems.push({\n id: uuid(),\n task: subTask,\n parent: task,\n event,\n entity,\n // for subTasks, allow transition only if assigned to the current user\n canTransition: !!(\n subTask.user &&\n subTask.user.id === user?.id &&\n (await canTransition(event, subTask, entity, user!))\n )\n });\n\n const subTaskEvent = subTaskEvents.find(\n e => e.event.id === event.id && e.path === subTask.status\n );\n if (subTaskEvent) {\n subTaskEvent.tasks.push(subTask);\n } else {\n subTaskEvents.push({\n path: subTask.status,\n event,\n tasks: [subTask]\n });\n }\n }\n\n await recursiveProcessSubTasks(subTask, entity);\n }\n };\n\n (async () => {\n setIsInitializing(true);\n\n for (const entity of bulkEvent.taskEntities) {\n const { task } = entity;\n if (!task) continue;\n\n // NOTE: fallback only. product board query should include task.jiraIssues\n // load task data if not already in task object as they may\n // be needed by the workflow plugins (e.g. task.jiraIssues)\n if (!task.jiraIssues) {\n // load and directly assign task jira issues to task object to persist it\n const { result } = findTaskJiraIssues(task.id || 0);\n const { data } = await result;\n if (data) {\n task.jiraIssues = data;\n }\n }\n\n const { stateNode } = await runMachine({ task });\n const event = stateNode?.events?.find(\n event => event.name === bulkEvent.event.name\n );\n if (!event) continue;\n taskItems.push({\n id: uuid(),\n task,\n event,\n entity,\n canTransition: Boolean(\n await canTransition(event, task, entity, user!)\n )\n });\n await recursiveProcessSubTasks(task, entity);\n }\n\n setIsInitializing(false);\n setTaskItems(taskItems);\n setSubTaskEvents(subTaskEvents);\n })();\n }, [bulkEvent, user, workflows, canTransition, runMachine]);\n\n return (\n \n {isLoading && }\n Bulk Action\n\n \n \n Select from the list of items to perform the bulk action.\n \n \n\n \n \n \n \n \n {\n setTaskItems(taskItems => {\n return taskItems.map(item => {\n if (item.status !== 'done' && item.canTransition) {\n item = {\n ...item,\n error: undefined,\n status: undefined,\n selected: event.target.checked\n };\n }\n return item;\n });\n });\n }}\n />\n \n ID\n Action\n Transition\n Eligible\n Description\n \n \n \n {taskItems.length === 0 && (\n \n \n {isLoading ? 'Loading items...' : 'No items to transition.'}\n \n \n )}\n {bulkEvent.taskEntities.map((entity, index) => {\n const taskItemIndex = taskItems.findIndex(\n s => s.task.id === entity.task?.id\n );\n const taskItem =\n taskItemIndex > -1 ? taskItems[taskItemIndex] : undefined;\n return !taskItem ? null : (\n \n {renderRow({\n entity,\n taskItem,\n task: entity.task,\n disabled: isDisabled(taskItem)\n })}\n {renderSubTasks(entity.task)}\n \n );\n })}\n \n
    \n
    \n\n \n \n {state.didUpdate ? 'Close' : 'Cancel'}\n \n\n {subTaskEvents.map((subTaskEvent, index) => {\n const { event } = subTaskEvent;\n const selectedItems = taskItems.filter(item => {\n return (\n item.selected &&\n item.task.status === subTaskEvent.path &&\n item.event?.id === event.id\n );\n });\n return renderButton({\n key: `${subTaskEvent.path}-${event.id}-${index}`,\n event,\n status: subTaskEvent.path,\n selectedItems\n });\n })}\n\n {renderButton({\n event: bulkEvent.event,\n status: bulkEvent.stateNode.path,\n selectedItems: selectedMainTaskItems\n })}\n \n\n {/* render any workflow steps during transition */}\n {render}\n
    \n );\n};\n\nexport default TaskBulkActionDialog;\n","import React, {\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { Link } from 'react-router-dom';\nimport styled from 'styled-components';\n\nimport {\n Box,\n Button,\n CircularProgress,\n Collapse,\n IconButton,\n Paper,\n Popover,\n PopoverProps,\n Typography\n} from '@material-ui/core';\nimport {\n Add as AddIcon,\n Description as DescriptionIcon,\n MoreVert as MoreVertIcon,\n Update as UpdateIcon\n} from '@material-ui/icons';\nimport { Alert } from '@material-ui/lab';\nimport { AppSnackbar } from '@sierralabs/react-material-ui';\nimport { Workflow } from '@sierralabs/workflow';\n\nimport { ApiParams } from '../../../common/api/api';\nimport { FetchApiCallback } from '../../../common/api/Api.hooks';\nimport { PaginatedList } from '../../../common/PaginatedList.interface';\nimport BoardColumnMenu from '../../tasks/board/BoardColumnMenu';\nimport { TaskEntity } from '../../tasks/Task.interface';\nimport { useFindWorkflowVersionByEntity } from '../../workflow/Workflow.hooks';\nimport {\n WorkflowEntity,\n WorkflowStatus\n} from '../../workflow/Workflow.interface';\nimport { getProductEntityName } from '../Product.config';\nimport {\n getProductEntityPrefix,\n useFindFilteredProductDesignInputs,\n useFindFilteredProductDesignOutputs,\n useFindFilteredProductDesignSpecs,\n useFindFilteredProductUserNeeds,\n useFindFilteredProductValidations,\n useFindFilteredProductVerifications,\n useProductEntityState,\n useProductViewParams\n} from '../Product.hooks';\nimport {\n Product,\n ProductDesignInput,\n ProductDesignOutput,\n ProductDesignSpec,\n ProductEntity,\n ProductExportEntity,\n ProductUserNeed,\n ProductValidation,\n ProductVerification\n} from '../Product.interface';\nimport { ProductBoardContext } from './ProductBoard.context';\nimport ProductBoardDesignInput from './ProductBoardDesignInput';\nimport ProductBoardDesignOutput from './ProductBoardDesignOutput';\nimport ProductBoardDesignSpec from './ProductBoardDesignSpec';\nimport ProductBoardValidation from './ProductBoardDesignValidation';\nimport ProductBoardVerification from './ProductBoardDesignVerification';\nimport ProductBoardUserNeed from './ProductBoardUserNeed';\n\nconst StyledLoadMoreContainer = styled(Box)`\n .icon {\n display: flex;\n margin-right: 8px;\n }\n`;\n\nexport enum ProductBoardColumnEntity {\n UserNeed = 'UserNeed',\n DesignInput = 'DesignInput',\n DesignOutput = 'DesignOutput',\n Verification = 'Verification',\n Validation = 'Validation',\n DesignSpec = 'DesignSpec'\n}\n\nexport const ProductBoardColumnEntityURL: {\n [key in ProductBoardColumnEntity]: string;\n} = {\n [ProductBoardColumnEntity.UserNeed]: 'user-needs',\n [ProductBoardColumnEntity.DesignInput]: 'design-inputs',\n [ProductBoardColumnEntity.DesignOutput]: 'design-outputs',\n [ProductBoardColumnEntity.Verification]: 'verifications',\n [ProductBoardColumnEntity.Validation]: 'validations',\n [ProductBoardColumnEntity.DesignSpec]: 'design-specs'\n};\n\nexport const getColumnTitle = (entity: ProductBoardColumnEntity) => {\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return getProductEntityName('userNeed');\n case ProductBoardColumnEntity.DesignInput:\n return getProductEntityName('designInput');\n case ProductBoardColumnEntity.DesignOutput:\n return getProductEntityName('designOutput');\n case ProductBoardColumnEntity.Verification:\n return getProductEntityName('verification');\n case ProductBoardColumnEntity.Validation:\n return getProductEntityName('validation');\n case ProductBoardColumnEntity.DesignSpec:\n return getProductEntityName('designSpec');\n }\n};\n\nexport function convertToProductExportEntity(\n entity: ProductBoardColumnEntity\n): ProductExportEntity {\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return ProductExportEntity.UserNeed;\n case ProductBoardColumnEntity.DesignInput:\n return ProductExportEntity.DesignInput;\n case ProductBoardColumnEntity.DesignOutput:\n return ProductExportEntity.DesignOutput;\n case ProductBoardColumnEntity.Verification:\n return ProductExportEntity.Verification;\n case ProductBoardColumnEntity.Validation:\n return ProductExportEntity.Validation;\n case ProductBoardColumnEntity.DesignSpec:\n return ProductExportEntity.DesignSpec;\n }\n}\n\nexport function convertToWorkflowEntity(\n entity: ProductBoardColumnEntity\n): WorkflowEntity {\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return WorkflowEntity.UserNeed;\n case ProductBoardColumnEntity.DesignInput:\n return WorkflowEntity.DesignInput;\n case ProductBoardColumnEntity.DesignOutput:\n return WorkflowEntity.DesignOutput;\n case ProductBoardColumnEntity.Verification:\n return WorkflowEntity.DesignVerification;\n case ProductBoardColumnEntity.Validation:\n return WorkflowEntity.DesignValidation;\n case ProductBoardColumnEntity.DesignSpec:\n return WorkflowEntity.DesignSpec;\n }\n}\n\nexport interface ProductBoardColumnProps {\n product: Product;\n entity: ProductBoardColumnEntity;\n apiParams?: ApiParams;\n collapsed?: boolean;\n hideHeader?: boolean;\n userNeeds?: Partial[];\n designInputs?: Partial[];\n designOutputs?: Partial[];\n verifications?: Partial[];\n validations?: Partial[];\n designSpecs?: Partial[];\n // overrides default fetch\n handleFetch?: () => void;\n}\n\nconst ProductBoardColumn: React.FC = (\n props: ProductBoardColumnProps\n) => {\n const {\n product,\n entity,\n apiParams: apiParamsProp,\n collapsed = false,\n hideHeader = false,\n // controlled values\n userNeeds,\n designInputs,\n designOutputs,\n verifications,\n validations,\n designSpecs,\n handleFetch\n } = props;\n const limit: number = 100;\n const concatRef = useRef(false);\n const [page, setPage] = useState(0);\n const [moreMenu, setMoreMenu] = useState();\n const [popoverProps, setPopoverProps] = useState>({});\n const [apiParams, setApiParams] = useState(\n apiParamsProp\n );\n const query: string = useProductViewParams(true);\n const columnTitle = useMemo(() => getColumnTitle(entity) as string, [entity]);\n const {\n selected,\n entity: selectedEntity,\n removeSelected\n } = useContext(ProductBoardContext);\n const workflowEntity: WorkflowEntity = useMemo(() => {\n return convertToWorkflowEntity(entity);\n }, [entity]);\n const { workflowVersion, loadingError, findWorkflowVersion } =\n useFindWorkflowVersionByEntity(workflowEntity);\n const workflow: Workflow | undefined = useMemo(() => {\n return workflowVersion?.config && new Workflow(workflowVersion.config);\n }, [workflowVersion]);\n const {\n productUserNeedList,\n productUserNeedPaginated,\n isLoadingProductUserNeeds,\n findProductUserNeeds\n } = useFindFilteredProductUserNeeds(product.id, selected?.id, selectedEntity);\n const {\n productDesignInputList,\n productDesignInputPaginated,\n isLoadingProductDesignInputs,\n findProductDesignInputs\n } = useFindFilteredProductDesignInputs(\n product.id,\n selected?.id,\n selectedEntity\n );\n const {\n productDesignOutputList,\n productDesignOutputPaginated,\n isLoadingProductDesignOutputs,\n findProductDesignOutputs\n } = useFindFilteredProductDesignOutputs(\n product.id,\n selected?.id,\n selectedEntity\n );\n const {\n productVerificationList,\n productVerificationPaginated,\n isLoadingProductVerifications,\n findProductVerifications\n } = useFindFilteredProductVerifications(\n product.id,\n selected?.id,\n selectedEntity\n );\n const {\n productValidationList,\n productValidationPaginated,\n isLoadingProductValidations,\n findProductValidations\n } = useFindFilteredProductValidations(\n product.id,\n selected?.id,\n selectedEntity\n );\n const {\n productDesignSpecList,\n productDesignSpecPaginated,\n isLoadingProductDesignSpecs,\n findProductDesignSpecs\n } = useFindFilteredProductDesignSpecs(\n product.id,\n selected?.id,\n selectedEntity\n );\n const [productUserNeeds, setProductUserNeeds] = useProductEntityState<\n Partial\n >(userNeeds || []);\n const [productDesignInputs, setProductDesignInputs] = useProductEntityState<\n Partial\n >(designInputs || []);\n const [productDesignOutputs, setProductDesignOutputs] = useProductEntityState<\n Partial\n >(designOutputs || []);\n const [productVerifications, setProductVerifications] = useProductEntityState<\n Partial\n >(verifications || []);\n const [productValidations, setProductValidations] = useProductEntityState<\n Partial\n >(validations || []);\n const [productDesignSpecs, setProductDesignSpecs] = useProductEntityState<\n Partial\n >(designSpecs || []);\n\n const isLoading: boolean =\n isLoadingProductUserNeeds ||\n isLoadingProductDesignInputs ||\n isLoadingProductDesignOutputs ||\n isLoadingProductVerifications ||\n isLoadingProductValidations ||\n isLoadingProductDesignSpecs;\n\n const paginatedList: PaginatedList | undefined =\n useMemo(() => {\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return productUserNeedPaginated;\n case ProductBoardColumnEntity.DesignInput:\n return productDesignInputPaginated;\n case ProductBoardColumnEntity.DesignOutput:\n return productDesignOutputPaginated;\n case ProductBoardColumnEntity.Verification:\n return productVerificationPaginated;\n case ProductBoardColumnEntity.Validation:\n return productValidationPaginated;\n case ProductBoardColumnEntity.DesignSpec:\n return productDesignSpecPaginated;\n }\n }, [\n entity,\n productUserNeedPaginated,\n productDesignInputPaginated,\n productDesignOutputPaginated,\n productVerificationPaginated,\n productValidationPaginated,\n productDesignSpecPaginated\n ]);\n\n const isCurrentEntity: boolean = useMemo(() => {\n return !selectedEntity || entity === selectedEntity;\n }, [entity, selectedEntity]);\n\n const params: ApiParams = useMemo(() => {\n const params: ApiParams = { ...apiParams };\n params.limit = limit;\n // update params only if selectedEntity does not match\n if (isCurrentEntity) {\n params.page = page;\n }\n return params;\n }, [page, limit, apiParams, isCurrentEntity]);\n\n const findProductEntities: FetchApiCallback = useMemo(() => {\n // only trigger fetch if the callback for the entity changes\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return findProductUserNeeds;\n case ProductBoardColumnEntity.DesignInput:\n return findProductDesignInputs;\n case ProductBoardColumnEntity.DesignOutput:\n return findProductDesignOutputs;\n case ProductBoardColumnEntity.Verification:\n return findProductVerifications;\n case ProductBoardColumnEntity.Validation:\n return findProductValidations;\n case ProductBoardColumnEntity.DesignSpec:\n return findProductDesignSpecs;\n }\n }, [\n entity,\n findProductUserNeeds,\n findProductDesignInputs,\n findProductDesignOutputs,\n findProductVerifications,\n findProductValidations,\n findProductDesignSpecs\n ]);\n\n const fetchProductData = useCallback(() => {\n handleFetch ? handleFetch() : findProductEntities(params);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [params, findProductEntities]);\n\n const removeItem = (\n index: number = 0,\n entities: Partial[]\n ): Partial[] => {\n entities = [...entities];\n entities.splice(index, 1);\n return entities;\n };\n\n const onSave = (_: ProductEntity, created: boolean = false) => {\n // only fetch if item was created\n if (!created) {\n return;\n }\n // reload from first page to show added item with proper pagination\n concatRef.current = false;\n if (page !== 0) {\n setPage(0);\n } else {\n fetchProductData();\n }\n };\n\n // remove item without id or title\n const onError = (\n value: Partial,\n index: number,\n entity: ProductBoardColumnEntity\n ) => {\n if (value.id && value.title) {\n return;\n }\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n setProductUserNeeds(removeItem(index, productUserNeeds));\n break;\n case ProductBoardColumnEntity.DesignInput:\n setProductDesignInputs(removeItem(index, productDesignInputs));\n break;\n case ProductBoardColumnEntity.DesignOutput:\n setProductDesignOutputs(removeItem(index, productDesignOutputs));\n break;\n case ProductBoardColumnEntity.Verification:\n setProductVerifications(removeItem(index, productVerifications));\n break;\n case ProductBoardColumnEntity.Validation:\n setProductValidations(removeItem(index, productValidations));\n break;\n case ProductBoardColumnEntity.DesignSpec:\n setProductDesignSpecs(removeItem(index, productDesignSpecs));\n break;\n }\n };\n\n const createDefaultProduct = (): Partial => {\n // index 0 is the root stateNode path\n const path: string | undefined = workflow?.getAllPaths()[1];\n return {\n title: '',\n // runtime task to render status label\n task: {\n name: '',\n type: workflowEntity,\n version: 1,\n status: path || '',\n created: new Date()\n // workflow: workflowVersion && {\n // id: workflowVersion.workflowId,\n // name: workflowVersion.name,\n // entity: workflowVersion.entity,\n // version: workflowVersion.version,\n // status: WorkflowStatus.Published\n // }\n }\n };\n };\n\n useEffect(() => {\n fetchProductData();\n }, [fetchProductData]);\n\n useEffect(() => {\n findWorkflowVersion();\n }, [findWorkflowVersion]);\n\n useEffect(() => {\n // reset page if apiParams (filters) changed\n setApiParams(apiParamsProp);\n setPage(0);\n }, [apiParamsProp]);\n\n useEffect(() => {\n // reset page if no pagination exists\n !paginatedList && setPage(0);\n }, [paginatedList]);\n\n useEffect(() => {\n if (userNeeds || productUserNeedList) {\n setProductUserNeeds(\n productUserNeedList || userNeeds || [],\n concatRef.current\n );\n concatRef.current = false;\n }\n }, [userNeeds, productUserNeedList]);\n useEffect(() => {\n console.log('productDesignInputList', productDesignInputList);\n if (designInputs || productDesignInputList) {\n setProductDesignInputs(\n productDesignInputList || designInputs || [],\n concatRef.current\n );\n concatRef.current = false;\n }\n }, [designInputs, productDesignInputList]);\n useEffect(() => {\n if (designOutputs || productDesignOutputList) {\n setProductDesignOutputs(\n productDesignOutputList || designOutputs || [],\n concatRef.current\n );\n concatRef.current = false;\n }\n }, [designOutputs, productDesignOutputList]);\n useEffect(() => {\n if (verifications || productVerificationList) {\n setProductVerifications(\n productVerificationList || verifications || [],\n concatRef.current\n );\n concatRef.current = false;\n }\n }, [verifications, productVerificationList]);\n useEffect(() => {\n if (validations || productValidationList) {\n setProductValidations(\n productValidationList || validations || [],\n concatRef.current\n );\n concatRef.current = false;\n }\n }, [validations, productValidationList]);\n useEffect(() => {\n if (designSpecs || productDesignSpecList) {\n setProductDesignSpecs(\n productDesignSpecList || designSpecs || [],\n concatRef.current\n );\n concatRef.current = false;\n }\n }, [designSpecs, productDesignSpecList]);\n\n return (\n \n {!hideHeader && (\n
    \n \n \n \n {columnTitle}\n \n \n
    \n {\n const value: Partial = createDefaultProduct();\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n setProductUserNeeds([value, ...productUserNeeds]);\n break;\n case ProductBoardColumnEntity.DesignInput:\n setProductDesignInputs([value, ...productDesignInputs]);\n break;\n case ProductBoardColumnEntity.DesignOutput:\n setProductDesignOutputs([value, ...productDesignOutputs]);\n break;\n case ProductBoardColumnEntity.Verification:\n setProductVerifications([value, ...productVerifications]);\n break;\n case ProductBoardColumnEntity.Validation:\n setProductValidations([value, ...productValidations]);\n break;\n case ProductBoardColumnEntity.DesignSpec:\n setProductDesignSpecs([value, ...productDesignSpecs]);\n break;\n }\n }}\n >\n \n \n setMoreMenu(event.currentTarget)}\n >\n \n \n {moreMenu &&\n (() => {\n let taskEntities: Partial[];\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n taskEntities = productUserNeeds;\n break;\n case ProductBoardColumnEntity.DesignInput:\n taskEntities = productDesignInputs;\n break;\n case ProductBoardColumnEntity.DesignOutput:\n taskEntities = productDesignOutputs;\n break;\n case ProductBoardColumnEntity.Verification:\n taskEntities = productVerifications;\n break;\n case ProductBoardColumnEntity.Validation:\n taskEntities = productValidations;\n break;\n case ProductBoardColumnEntity.DesignSpec:\n taskEntities = productDesignSpecs;\n break;\n }\n return (\n setMoreMenu(undefined)}\n {...popoverProps}\n >\n {\n setPopoverProps({\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'right'\n },\n transformOrigin: {\n vertical: 'top',\n horizontal: 'right'\n }\n });\n }}\n onChange={() => {\n setMoreMenu(undefined);\n fetchProductData();\n }}\n />\n \n );\n })()}\n
    \n
    \n )}\n\n \n \n Deselect\n \n }\n >\n Filter enabled\n \n \n\n \n {(() => {\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return productUserNeeds.map((userNeed, index) => (\n {\n onError(userNeed, index, ProductBoardColumnEntity.UserNeed);\n }}\n />\n ));\n case ProductBoardColumnEntity.DesignInput:\n return productDesignInputs.map((designInput, index) => (\n {\n onError(\n designInput,\n index,\n ProductBoardColumnEntity.DesignInput\n );\n }}\n />\n ));\n case ProductBoardColumnEntity.DesignOutput:\n return productDesignOutputs.map((designOutput, index) => (\n {\n onError(\n designOutput,\n index,\n ProductBoardColumnEntity.DesignOutput\n );\n }}\n />\n ));\n case ProductBoardColumnEntity.Verification:\n return productVerifications.map((verification, index) => (\n {\n onError(\n verification,\n index,\n ProductBoardColumnEntity.Verification\n );\n }}\n />\n ));\n case ProductBoardColumnEntity.Validation:\n return productValidations.map((validation, index) => (\n {\n onError(\n validation,\n index,\n ProductBoardColumnEntity.Validation\n );\n }}\n />\n ));\n case ProductBoardColumnEntity.DesignSpec:\n return productDesignSpecs.map((designSpec, index) => (\n {\n onError(\n designSpec,\n index,\n ProductBoardColumnEntity.DesignSpec\n );\n }}\n />\n ));\n }\n })()}\n\n {paginatedList && paginatedList.total > (page + 1) * limit && (\n \n {\n concatRef.current = true;\n setPage(page + 1);\n }}\n >\n \n {isLoading ? : }\n \n Load More\n \n \n )}\n \n {loadingError && (\n \n Error finding a published workflow for '{entity}'\n \n )}\n
    \n );\n};\n\nexport default ProductBoardColumn;\n","import React, {\n Fragment,\n useContext,\n useEffect,\n useRef,\n useState\n} from 'react';\nimport styled from 'styled-components';\nimport {\n Box,\n Grid,\n List,\n ListItem,\n ListItemText,\n ListSubheader,\n Typography\n} from '@material-ui/core';\nimport { ArrowForward } from '@material-ui/icons';\n\nimport { getEntityPrefix } from '../../../common/entityId.hooks';\nimport TaskStatusLabel from '../../../common/TaskStatusLabel';\nimport { UserContext } from '../../../user/User.context';\nimport { ProductEntity } from '../../products/Product.interface';\nimport TaskBulkActionDialog from '../dialogs/TaskBulkActionDialog';\nimport { parseTaskStatus } from '../task.helper';\nimport { Task, TaskBulkEvent, TaskEntity } from '../Task.interface';\nimport { useGetWorkflowMachineState } from '../Task.machine';\n\nconst StyledList = styled(List)`\n max-width: 640px;\n .sub-header {\n line-height: 1.43;\n padding: 6px 16px;\n .overline {\n line-height: 1.8;\n }\n }\n`;\n\ninterface BulkEventGroup {\n ids: string[];\n bulkEvents: TaskBulkEvent[];\n}\n\nexport interface BoardColumnMenuProps {\n groupByType?: boolean;\n taskEntities: TaskEntity[];\n onRender?: () => void;\n onChange?: (processedEntities?: TaskEntity[]) => void;\n}\n\nconst BoardColumnMenu: React.FC = ({\n groupByType,\n taskEntities,\n onRender,\n onChange\n}) => {\n const onRenderRef = useRef(onRender);\n onRenderRef.current = onRender;\n const taskEntitiesRef = useRef(taskEntities);\n taskEntitiesRef.current = taskEntities;\n const [bulkEventGroups, setBulkEventGroups] = useState([]);\n const [selectedBulkEvent, setSelectedBulkEvent] = useState();\n const { user } = useContext(UserContext);\n const { runMachine } = useGetWorkflowMachineState();\n\n useEffect(() => {\n (async () => {\n // use task.taskType.name instead of deprecated task.type\n const taskTypes: string[] = [];\n for (const entity of taskEntitiesRef.current) {\n const taskTypeName =\n entity.task?.taskType?.name || entity.task?.taskTypeName;\n if (taskTypeName && !taskTypes.includes(taskTypeName)) {\n taskTypes.push(taskTypeName);\n }\n }\n\n const bulkEventGroups: BulkEventGroup[] = [];\n for (const taskType of taskTypes) {\n const bulkEvents: TaskBulkEvent[] = [];\n const ids: string[] = [];\n for (const entity of taskEntitiesRef.current) {\n const task = entity.task;\n const taskTypeName = task?.taskType?.name || task?.taskTypeName;\n if (!task || !taskTypeName || taskTypeName !== taskType) {\n continue;\n }\n // NOTE: id will be changed to use task.key in SLQMS-921\n ids.push(`${getEntityPrefix(task.type)}-${entity.id}`);\n const { stateNode } = await runMachine({ task });\n for (const event of stateNode?.events || []) {\n // Don't check if the user has ability to transition here (do it in the bulk dialog)\n const bulkEvent = bulkEvents.find(e => e.event.id === event.id);\n if (bulkEvent) {\n bulkEvent.taskEntities.push(entity);\n } else if (stateNode && event.name) {\n bulkEvents.push({\n event,\n stateNode,\n taskTypeName,\n taskEntities: [entity]\n });\n }\n }\n }\n bulkEventGroups.push({ ids, bulkEvents });\n }\n setBulkEventGroups(bulkEventGroups);\n onRenderRef.current?.();\n })();\n }, [user, runMachine]);\n\n return (\n \n {bulkEventGroups.map((group, index) => (\n \n \n \n {!groupByType ? 'Bulk Actions' : group.ids.join(', ')}\n \n \n {group.bulkEvents.map((bulkEvent, index) => {\n const transition = bulkEvent.event.transitions[0];\n const targetStatus = transition\n ? parseTaskStatus(transition.target)\n : undefined;\n const task: Pick = {\n status: bulkEvent.stateNode.path,\n taskTypeName: bulkEvent.taskTypeName\n };\n return (\n setSelectedBulkEvent(bulkEvent)}\n >\n \n \n \n \n \n \n \n \n \n \n ({bulkEvent.taskEntities.length})\n \n \n \n }\n />\n \n );\n })}\n \n ))}\n {selectedBulkEvent && (\n (taskEntity as ProductEntity).title}\n onClose={entities => {\n if (entities) {\n onChange?.(entities);\n }\n setSelectedBulkEvent(undefined);\n }}\n />\n )}\n \n );\n};\n\nexport default BoardColumnMenu;\n","import React, { createContext, useCallback, useState } from 'react';\n\nimport { ProductEntity } from '../Product.interface';\nimport { ProductBoardColumnEntity } from './ProductBoardColumn';\n\nexport interface ProductBoardContextProps {\n selected?: ProductEntity | Partial;\n entity?: ProductBoardColumnEntity;\n setSelected: (\n productEntity: ProductEntity | Partial,\n entity: ProductBoardColumnEntity\n ) => void;\n toggleSelected: (\n productEntity: ProductEntity | Partial,\n entity: ProductBoardColumnEntity\n ) => void;\n removeSelected: () => void;\n isSelected: (\n id: number | undefined,\n entity: ProductBoardColumnEntity\n ) => boolean;\n}\n\nexport const ProductBoardContext = createContext({\n setSelected: () => {},\n toggleSelected: () => {},\n removeSelected: () => {},\n isSelected: () => false\n});\n\nexport const ProductBoardProvider: React.FC = ({ children }) => {\n const [selected, setSelected] = useState<\n ProductEntity | Partial | undefined\n >();\n const [entity, setEntity] = useState();\n\n const isSelected = useCallback(\n (\n id: number | undefined,\n entityValue: ProductBoardColumnEntity\n ): boolean => {\n return entityValue === entity && !!selected && selected.id === id;\n },\n [entity, selected]\n );\n\n const removeSelected = useCallback(() => {\n setEntity(undefined);\n setSelected(undefined);\n }, []);\n\n const setSelectedEntity = useCallback(\n (\n productEntity: ProductEntity | Partial,\n entity: ProductBoardColumnEntity\n ) => {\n setEntity(entity);\n setSelected(productEntity);\n },\n []\n );\n\n const toggleSelected = useCallback(\n (\n productEntity: ProductEntity | Partial,\n entity: ProductBoardColumnEntity\n ) => {\n if (isSelected(productEntity.id, entity)) {\n removeSelected();\n } else {\n setSelectedEntity(productEntity, entity);\n }\n },\n [isSelected, removeSelected, setSelectedEntity]\n );\n\n return (\n \n {children}\n \n );\n};\n","import { Tooltip } from '@material-ui/core';\nimport React from 'react';\nimport styled from 'styled-components';\nimport { useTaskStatusColor } from '../secure-portal/tasks/Task.hooks';\nimport { Task } from '../secure-portal/tasks/Task.interface';\n\nconst StyledDiv = styled.div`\n height: 10px;\n min-width: 10px;\n margin-bottom: 2.5px;\n border-radius: 100%;\n`;\n\nconst TaskStatusDot: React.FC<{ task: Task }> = ({ task }) => {\n const { color, label } = useTaskStatusColor({ task });\n return (\n \n \n \n );\n};\n\nexport default TaskStatusDot;\n","import { Button } from '@material-ui/core';\nimport { AddShoppingCart, RemoveShoppingCart } from '@material-ui/icons';\nimport React, { useMemo } from 'react';\nimport { TaskEntity } from '../../secure-portal/tasks/Task.interface';\nimport { getCartIndex, useCartContext } from './CartContext';\n\nconst CartToggleButton: React.FC<{ taskEntity: TaskEntity }> = ({\n taskEntity\n}) => {\n const { cart, addToCart, removeFromCart } = useCartContext();\n const isInCart = useMemo(() => {\n return getCartIndex(cart, taskEntity) > -1;\n }, [cart, taskEntity]);\n return (\n {\n event.stopPropagation();\n if (isInCart) {\n removeFromCart(taskEntity);\n } else {\n addToCart(taskEntity);\n }\n }}\n >\n {isInCart ? : }\n \n );\n};\n\nexport default CartToggleButton;\n","import React, { useEffect, useMemo, useState } from 'react';\nimport { useHistory } from 'react-router-dom';\n\nimport {\n Box,\n Button,\n Card,\n CardActionArea,\n CardContent,\n CircularProgress,\n InputAdornment,\n TextField,\n Typography\n} from '@material-ui/core';\nimport { Person as PersonIcon } from '@material-ui/icons';\n\nimport TaskStatusDot from '../../../common/TaskStatusDot';\nimport TaskStatusLabel from '../../../common/TaskStatusLabel';\nimport { Task, TaskEntity } from '../../tasks/Task.interface';\nimport { Product } from '../Product.interface';\nimport { useTaskEntityFields } from '../../workflow/Workflow.hooks';\nimport CartToggleButton from '../../../common/cart/CartToggleButton';\n\nconst DivCardActionArea: React.FC = (props: { children?: React.ReactNode }) => (\n {props.children}\n);\n\nconst ProductBoardItem: React.FC<{\n product: Product;\n title: string;\n taskEntity: TaskEntity;\n entityId: string;\n editable?: boolean;\n loading?: boolean;\n collapsed?: boolean;\n isSelected?: boolean;\n viewDetailsLink?: string;\n onSelect?: () => void;\n onCancel?: () => void;\n onSave?: (title: string) => void;\n}> = ({\n taskEntity,\n entityId,\n title: initialTitle,\n editable: initialEditable,\n loading,\n collapsed = false,\n isSelected,\n viewDetailsLink,\n onSelect,\n onCancel,\n onSave\n}) => {\n const { task } = taskEntity;\n const history = useHistory();\n const [title, setTitle] = useState(initialTitle || '');\n const [editable, setEditable] = useState(initialEditable);\n const { isFieldDisabled } = useTaskEntityFields(task, false);\n\n const shouldCollapse: boolean = collapsed && !isSelected && !!entityId;\n\n const className: string = useMemo(() => {\n const classes: string[] = ['task-card'];\n isSelected && classes.push('selected');\n shouldCollapse && classes.push('collapsed');\n return classes.join(' ');\n }, [isSelected, shouldCollapse]);\n\n useEffect(() => {\n setTitle(initialTitle);\n }, [initialTitle]);\n\n const WrapperContent = editable ? React.Fragment : DivCardActionArea;\n\n const viewButton: JSX.Element = (\n \n {\n event.stopPropagation();\n // allow viewing if entityId and link exist\n if (entityId && viewDetailsLink) {\n history.push(viewDetailsLink);\n }\n }}\n >\n View Details\n \n \n \n );\n\n let content: JSX.Element;\n if (shouldCollapse) {\n content = (\n \n \n \n {task && }\n {entityId && (\n \n {entityId}\n \n )}\n \n \n {title || 'No Title'}\n \n \n \n {viewButton}\n \n \n );\n } else {\n content = (\n \n \n {entityId && (\n \n \n {entityId}\n \n \n \n \n \n )}\n {editable ? (\n \n \n \n ) : undefined\n }}\n onClick={event => event.stopPropagation()}\n onChange={event => setTitle(event.target.value)}\n onKeyDown={event => {\n switch (event.key) {\n case 'Escape':\n setEditable(false);\n setTitle(initialTitle);\n onCancel?.();\n break;\n case 'Enter':\n event.preventDefault();\n setEditable(false);\n onSave?.(title);\n break;\n }\n }}\n onBlur={() => {\n setEditable(false);\n onSave?.(title);\n }}\n />\n ) : (\n {\n if (isSelected) {\n event.stopPropagation();\n if (!isFieldDisabled('title')) {\n setEditable(true);\n }\n }\n }}\n onKeyPress={event => {\n if (isSelected) {\n event.preventDefault();\n event.stopPropagation();\n if (!isFieldDisabled('title')) {\n setEditable(true);\n }\n }\n }}\n >\n \n {title || 'Click to add Title'}\n \n \n )}\n {/*
    \n \n ) : undefined\n }\n onClick={() => handleSave()}\n >\n {userNeed.id ? 'Update' : 'Create'}\n \n
    */}\n {viewButton}\n
    \n {task?.user && (\n \n
    \n
    \n \n
    \n {task.user.firstName} {task.user.lastName}\n
    \n
    \n )}\n
    \n );\n }\n\n return (\n \n {content}\n \n );\n};\n\nexport default ProductBoardItem;\n","import React, { useContext, useEffect, useState } from 'react';\n\nimport { TaskEntity } from '../../tasks/Task.interface';\nimport {\n useCreateProductDesignInput,\n useProductEntityPrefixId,\n useProductViewParams,\n useUpdateProductDesignInput\n} from '../Product.hooks';\nimport {\n BaseProductBoardColumnProps,\n ProductDesignInput\n} from '../Product.interface';\nimport { ProductBoardContext } from './ProductBoard.context';\nimport { ProductBoardColumnEntity } from './ProductBoardColumn';\nimport ProductBoardItem from './ProductBoardItem';\n\nexport type ProductBoardDesignInputProps = BaseProductBoardColumnProps<\n ProductDesignInput,\n 'designInput'\n>;\n\nconst ProductBoardDesignInput: React.FC = (\n props: ProductBoardDesignInputProps\n) => {\n const {\n product,\n collapsed,\n designInput: initialDesignInput,\n onCancel,\n onError,\n onSave\n } = props;\n const entity = ProductBoardColumnEntity.DesignInput;\n const params: string = useProductViewParams();\n const { toggleSelected, isSelected } = useContext(ProductBoardContext);\n const [designInput, setDesignInput] = useState(initialDesignInput);\n useEffect(() => {\n if (initialDesignInput) {\n setDesignInput(initialDesignInput);\n }\n }, [initialDesignInput]);\n const {\n createdProductDesignInput,\n isCreatingProductDesignInput,\n createProductDesignInputError,\n createProductDesignInput\n } = useCreateProductDesignInput(product.id);\n const {\n updatedProductDesignInput,\n isUpdatingProductDesignInput,\n updateProductDesignInput\n } = useUpdateProductDesignInput(product.id, designInput.id || 0);\n const entityId: string = useProductEntityPrefixId(\n designInput,\n ProductBoardColumnEntity.DesignInput\n );\n\n useEffect(() => {\n if (createdProductDesignInput) {\n setDesignInput(createdProductDesignInput);\n onSave?.(createdProductDesignInput, true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createdProductDesignInput]);\n\n useEffect(() => {\n if (updatedProductDesignInput) {\n setDesignInput(updatedProductDesignInput);\n onSave?.(updatedProductDesignInput);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedProductDesignInput]);\n\n useEffect(() => {\n if (createProductDesignInputError) {\n onError?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createProductDesignInputError]);\n\n return (\n toggleSelected(designInput, entity)}\n onCancel={() => {\n setDesignInput(initialDesignInput);\n onCancel?.();\n }}\n onSave={title => {\n designInput.title = title;\n if (designInput.id) {\n updateProductDesignInput(designInput);\n } else {\n createProductDesignInput(designInput);\n }\n }}\n />\n );\n};\n\nexport default ProductBoardDesignInput;\n","import React, { useContext, useEffect, useState } from 'react';\n\nimport { TaskEntity } from '../../tasks/Task.interface';\nimport {\n useCreateProductDesignOutput,\n useProductEntityPrefixId,\n useProductViewParams,\n useUpdateProductDesignOutput\n} from '../Product.hooks';\nimport {\n BaseProductBoardColumnProps,\n ProductDesignOutput\n} from '../Product.interface';\nimport { ProductBoardContext } from './ProductBoard.context';\nimport { ProductBoardColumnEntity } from './ProductBoardColumn';\nimport ProductBoardItem from './ProductBoardItem';\n\nexport type ProductBoardDesignOutputProps = BaseProductBoardColumnProps<\n ProductDesignOutput,\n 'designOutput'\n>;\n\nconst ProductBoardDesignOutput: React.FC = (\n props: ProductBoardDesignOutputProps\n) => {\n const {\n product,\n collapsed,\n designOutput: initialDesignOutput,\n onCancel,\n onError,\n onSave\n } = props;\n const entity = ProductBoardColumnEntity.DesignOutput;\n const params: string = useProductViewParams();\n const { toggleSelected, isSelected } = useContext(ProductBoardContext);\n const [designOutput, setDesignOutput] = useState(initialDesignOutput);\n useEffect(() => {\n if (initialDesignOutput) {\n setDesignOutput(initialDesignOutput);\n }\n }, [initialDesignOutput]);\n const {\n createdProductDesignOutput,\n isCreatingProductDesignOutput,\n createProductDesignOutputError,\n createProductDesignOutput\n } = useCreateProductDesignOutput(product.id);\n const {\n updatedProductDesignOutput,\n isUpdatingProductDesignOutput,\n updateProductDesignOutput\n } = useUpdateProductDesignOutput(product.id, designOutput.id || 0);\n const entityId: string = useProductEntityPrefixId(\n designOutput,\n ProductBoardColumnEntity.DesignOutput\n );\n\n useEffect(() => {\n if (createdProductDesignOutput) {\n setDesignOutput(createdProductDesignOutput);\n onSave?.(createdProductDesignOutput, true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createdProductDesignOutput]);\n\n useEffect(() => {\n if (updatedProductDesignOutput) {\n setDesignOutput(updatedProductDesignOutput);\n onSave?.(updatedProductDesignOutput);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedProductDesignOutput]);\n\n useEffect(() => {\n if (createProductDesignOutputError) {\n onError?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createProductDesignOutputError]);\n\n return (\n toggleSelected(designOutput, entity)}\n onCancel={() => {\n setDesignOutput(initialDesignOutput);\n onCancel?.();\n }}\n onSave={title => {\n designOutput.title = title;\n if (designOutput.id) {\n updateProductDesignOutput(designOutput);\n } else {\n createProductDesignOutput(designOutput);\n }\n }}\n />\n );\n};\n\nexport default ProductBoardDesignOutput;\n","import React, { useContext, useEffect, useState } from 'react';\n\nimport { TaskEntity } from '../../tasks/Task.interface';\nimport {\n useCreateProductDesignSpec,\n useProductEntityPrefixId,\n useProductViewParams,\n useUpdateProductDesignSpec\n} from '../Product.hooks';\nimport {\n BaseProductBoardColumnProps,\n ProductDesignSpec\n} from '../Product.interface';\nimport { ProductBoardContext } from './ProductBoard.context';\nimport { ProductBoardColumnEntity } from './ProductBoardColumn';\nimport ProductBoardItem from './ProductBoardItem';\n\nexport type ProductBoardDesignSpecProps = BaseProductBoardColumnProps<\n ProductDesignSpec,\n 'designSpec'\n>;\n\nconst ProductBoardDesignSpec: React.FC = (\n props: ProductBoardDesignSpecProps\n) => {\n const {\n product,\n collapsed,\n designSpec: initialDesignSpec,\n onCancel,\n onError,\n onSave\n } = props;\n const entity = ProductBoardColumnEntity.DesignSpec;\n const params: string = useProductViewParams();\n const { toggleSelected, isSelected } = useContext(ProductBoardContext);\n const [designSpec, setDesignSpec] = useState(initialDesignSpec);\n useEffect(() => {\n if (initialDesignSpec) {\n setDesignSpec(initialDesignSpec);\n }\n }, [initialDesignSpec]);\n const {\n createdProductDesignSpec,\n isCreatingProductDesignSpec,\n createProductDesignSpecError,\n createProductDesignSpec\n } = useCreateProductDesignSpec(product.id);\n const {\n updatedProductDesignSpec,\n isUpdatingProductDesignSpec,\n updateProductDesignSpec\n } = useUpdateProductDesignSpec(product.id, designSpec.id || 0);\n const entityId: string = useProductEntityPrefixId(\n designSpec,\n ProductBoardColumnEntity.DesignSpec\n );\n\n useEffect(() => {\n if (createdProductDesignSpec) {\n setDesignSpec(createdProductDesignSpec);\n onSave?.(createdProductDesignSpec, true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createdProductDesignSpec]);\n\n useEffect(() => {\n if (updatedProductDesignSpec) {\n setDesignSpec(updatedProductDesignSpec);\n onSave?.(updatedProductDesignSpec);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedProductDesignSpec]);\n\n useEffect(() => {\n if (createProductDesignSpecError) {\n onError?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createProductDesignSpecError]);\n\n return (\n toggleSelected(designSpec, entity)}\n onCancel={() => {\n setDesignSpec(initialDesignSpec);\n onCancel?.();\n }}\n onSave={title => {\n designSpec.title = title;\n if (designSpec.id) {\n updateProductDesignSpec(designSpec);\n } else {\n createProductDesignSpec(designSpec);\n }\n }}\n />\n );\n};\n\nexport default ProductBoardDesignSpec;\n","import React, { useContext, useEffect, useState } from 'react';\n\nimport { TaskEntity } from '../../tasks/Task.interface';\nimport {\n useCreateProductValidation,\n useProductEntityPrefixId,\n useProductViewParams,\n useUpdateProductValidation\n} from '../Product.hooks';\nimport {\n BaseProductBoardColumnProps,\n ProductValidation\n} from '../Product.interface';\nimport { ProductBoardContext } from './ProductBoard.context';\nimport { ProductBoardColumnEntity } from './ProductBoardColumn';\nimport ProductBoardItem from './ProductBoardItem';\n\nexport type ProductBoardValidationProps = BaseProductBoardColumnProps<\n ProductValidation,\n 'validation'\n>;\n\nconst ProductBoardValidation: React.FC = (\n props: ProductBoardValidationProps\n) => {\n const {\n product,\n collapsed,\n validation: initialValidation,\n onCancel,\n onError,\n onSave\n } = props;\n const entity = ProductBoardColumnEntity.Validation;\n const params: string = useProductViewParams();\n const { toggleSelected, isSelected } = useContext(ProductBoardContext);\n const [validation, setValidation] = useState(initialValidation);\n useEffect(() => {\n if (initialValidation) {\n setValidation(initialValidation);\n }\n }, [initialValidation]);\n const {\n createdProductValidation,\n isCreatingProductValidation,\n createProductValidationError,\n createProductValidation\n } = useCreateProductValidation(product.id);\n const {\n updatedProductValidation,\n isUpdatingProductValidation,\n updateProductValidation\n } = useUpdateProductValidation(product.id, validation.id || 0);\n const entityId: string = useProductEntityPrefixId(\n validation,\n ProductBoardColumnEntity.Validation\n );\n\n useEffect(() => {\n if (createdProductValidation) {\n setValidation(createdProductValidation);\n onSave?.(createdProductValidation, true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createdProductValidation]);\n\n useEffect(() => {\n if (updatedProductValidation) {\n setValidation(updatedProductValidation);\n onSave?.(updatedProductValidation);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedProductValidation]);\n\n useEffect(() => {\n if (createProductValidationError) {\n onError?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createProductValidationError]);\n\n return (\n toggleSelected(validation, entity)}\n onCancel={() => {\n setValidation(initialValidation);\n onCancel?.();\n }}\n onSave={title => {\n validation.title = title;\n if (validation.id) {\n updateProductValidation(validation);\n } else {\n createProductValidation(validation);\n }\n }}\n />\n );\n};\n\nexport default ProductBoardValidation;\n","import React, { useContext, useEffect, useState } from 'react';\n\nimport { TaskEntity } from '../../tasks/Task.interface';\nimport {\n useCreateProductVerification,\n useProductEntityPrefixId,\n useProductViewParams,\n useUpdateProductVerification\n} from '../Product.hooks';\nimport {\n BaseProductBoardColumnProps,\n ProductVerification\n} from '../Product.interface';\nimport { ProductBoardContext } from './ProductBoard.context';\nimport { ProductBoardColumnEntity } from './ProductBoardColumn';\nimport ProductBoardItem from './ProductBoardItem';\n\nexport type ProductBoardVerificationProps = BaseProductBoardColumnProps<\n ProductVerification,\n 'verification'\n>;\n\nconst ProductBoardVerification: React.FC = (\n props: ProductBoardVerificationProps\n) => {\n const {\n product,\n collapsed,\n verification: initialVerification,\n onCancel,\n onError,\n onSave\n } = props;\n const entity = ProductBoardColumnEntity.Verification;\n const params: string = useProductViewParams();\n const { toggleSelected, isSelected } = useContext(ProductBoardContext);\n const [verification, setVerification] = useState(initialVerification);\n useEffect(() => {\n if (initialVerification) {\n setVerification(initialVerification);\n }\n }, [initialVerification]);\n const {\n createdProductVerification,\n isCreatingProductVerification,\n createProductVerificationError,\n createProductVerification\n } = useCreateProductVerification(product.id);\n const {\n updatedProductVerification,\n isUpdatingProductVerification,\n updateProductVerification\n } = useUpdateProductVerification(product.id, verification.id || 0);\n const entityId: string = useProductEntityPrefixId(\n verification,\n ProductBoardColumnEntity.Verification\n );\n\n useEffect(() => {\n if (createdProductVerification) {\n setVerification(createdProductVerification);\n onSave?.(createdProductVerification, true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createdProductVerification]);\n\n useEffect(() => {\n if (updatedProductVerification) {\n setVerification(updatedProductVerification);\n onSave?.(updatedProductVerification);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedProductVerification]);\n\n useEffect(() => {\n if (createProductVerificationError) {\n onError?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createProductVerificationError]);\n\n return (\n toggleSelected(verification, entity)}\n onCancel={() => {\n setVerification(initialVerification);\n onCancel?.();\n }}\n onSave={title => {\n verification.title = title;\n if (verification.id) {\n updateProductVerification(verification);\n } else {\n createProductVerification(verification);\n }\n }}\n />\n );\n};\n\nexport default ProductBoardVerification;\n","import React, { useContext, useEffect, useState } from 'react';\n\nimport { TaskEntity } from '../../tasks/Task.interface';\nimport {\n useCreateProductUserNeed,\n useProductEntityPrefixId,\n useProductViewParams,\n useUpdateProductUserNeed\n} from '../Product.hooks';\nimport {\n BaseProductBoardColumnProps,\n ProductUserNeed\n} from '../Product.interface';\nimport { ProductBoardContext } from './ProductBoard.context';\nimport { ProductBoardColumnEntity } from './ProductBoardColumn';\nimport ProductBoardItem from './ProductBoardItem';\n\nexport type ProductBoardUserNeedProps = BaseProductBoardColumnProps<\n ProductUserNeed,\n 'userNeed'\n>;\n\nconst ProductBoardUserNeed: React.FC = (\n props: ProductBoardUserNeedProps\n) => {\n const {\n product,\n collapsed,\n userNeed: initialUserNeed,\n onCancel,\n onError,\n onSave\n } = props;\n const entity = ProductBoardColumnEntity.UserNeed;\n const params: string = useProductViewParams();\n const { toggleSelected, isSelected } = useContext(ProductBoardContext);\n const [userNeed, setUserNeed] = useState(initialUserNeed);\n useEffect(() => {\n if (initialUserNeed) {\n setUserNeed(initialUserNeed);\n }\n }, [initialUserNeed]);\n const {\n createdProductUserNeed,\n isCreatingProductUserNeed,\n createProductUserNeedError,\n createProductUserNeed\n } = useCreateProductUserNeed(product.id);\n const {\n updatedProductUserNeed,\n isUpdatingProductUserNeed,\n updateProductUserNeed\n } = useUpdateProductUserNeed(product.id, userNeed.id || 0);\n const entityId: string = useProductEntityPrefixId(\n userNeed,\n ProductBoardColumnEntity.UserNeed\n );\n\n useEffect(() => {\n if (createdProductUserNeed) {\n setUserNeed(createdProductUserNeed);\n onSave?.(createdProductUserNeed, true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createdProductUserNeed]);\n\n useEffect(() => {\n if (updatedProductUserNeed) {\n setUserNeed(updatedProductUserNeed);\n onSave?.(updatedProductUserNeed);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [updatedProductUserNeed]);\n\n useEffect(() => {\n if (createProductUserNeedError) {\n onError?.();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [createProductUserNeedError]);\n\n return (\n toggleSelected(userNeed, entity)}\n onCancel={() => {\n setUserNeed(initialUserNeed);\n onCancel?.();\n }}\n onSave={title => {\n userNeed.title = title;\n if (userNeed.id) {\n updateProductUserNeed(userNeed);\n } else {\n createProductUserNeed(userNeed);\n }\n }}\n />\n );\n};\n\nexport default ProductBoardUserNeed;\n","import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { useLocation } from 'react-router-dom';\nimport {\n ArrayParam,\n BooleanParam,\n NumericArrayParam,\n useQueryParam,\n withDefault\n} from 'use-query-params';\n\nimport { ApiParams, FetchError } from '../../common/api/api';\nimport {\n ApiResult,\n FetchApiCallback,\n useApiDelete,\n useApiGet,\n useApiPatch,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport { useDownloadBlob } from '../../common/blob.hook';\nimport {\n IdSearchableFetchOptions,\n useIdSearchableFetch\n} from '../../common/entityId.hooks';\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport { FileDto } from '../documents/Document.interface';\nimport { Hazard } from '../hazards/Hazard.interface';\nimport { WorkflowEntity } from '../workflow/Workflow.interface';\nimport { ProductBoardColumnEntity } from './board/ProductBoardColumn';\nimport { ProductFilterOptions } from './components/ProductBoardFilter';\nimport {\n getProductEntityIdPrefix,\n getProductEntityName\n} from './Product.config';\nimport {\n Product,\n ProductBoardData,\n ProductComponent,\n ProductDesignInput,\n ProductDesignInputVersion,\n ProductDesignOutput,\n ProductDesignOutputVersion,\n ProductDesignSpec,\n ProductDesignSpecVersion,\n ProductEntity,\n ProductExportEntity,\n ProductRelationMap,\n ProductRelease,\n ProductTemplate,\n ProductUserNeed,\n ProductUserNeedVersion,\n ProductValidation,\n ProductValidationVersion,\n ProductVerification,\n ProductVerificationVersion,\n ProductWorkflowEntities\n} from './Product.interface';\n\nexport function useCreateProduct() {\n const { data, isLoading, error, post } = useApiPost('products');\n return {\n createdProduct: data,\n isCreating: isLoading,\n createError: error,\n createProduct: post\n };\n}\n\nexport function useUpdateProduct(id: number) {\n const { data, isLoading, error, patch } = useApiPatch(\n `products/${id}`\n );\n return {\n updatedProduct: data,\n isUpdating: isLoading,\n updateError: error,\n updateProduct: patch\n };\n}\n\nexport function useDeleteProduct(id: number) {\n const { data, del, ...result } = useApiDelete(`products/${id}`);\n return { ...result, deletedProduct: data, deleteProduct: del };\n}\n\nexport function useFindProducts() {\n const { data, isLoading, error, get } =\n useApiGet>('products');\n const findProducts = useIdSearchableFetch(get, WorkflowEntity.Product);\n return {\n productList: data,\n isLoading,\n loadingError: error,\n findProducts\n };\n}\n\nexport function useFindProduct(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet(`products/${id}`);\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n product: data,\n isLoading,\n loadingError: error,\n findProduct: get\n };\n}\n\nexport function useCreateProductUserNeed(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/user-needs`\n );\n return {\n createdProductUserNeed: data,\n isCreatingProductUserNeed: isLoading,\n createProductUserNeedError: error,\n createProductUserNeed: post\n };\n}\nexport function useUpdateProductUserNeed(\n productId: number,\n productUserNeedId?: number\n) {\n const [path, setPath] = useState('');\n const [userNeed, setUserNeed] = useState>();\n const { data, isLoading, error, patch } = useApiPatch(path);\n const updateProductUserNeed = useCallback(\n (userNeed: Partial) => {\n setPath(\n `products/${productId}/user-needs/${productUserNeedId || userNeed.id}`\n );\n setUserNeed(userNeed);\n },\n [productId, productUserNeedId]\n );\n useEffect(() => {\n if (path && userNeed) {\n patch(userNeed);\n }\n }, [patch, path, userNeed]);\n return {\n updatedProductUserNeed: data,\n isUpdatingProductUserNeed: isLoading,\n updateProductUserNeedError: error,\n updateProductUserNeed\n };\n}\nexport function useFindProductUserNeeds(productId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`products/${productId}/user-needs`);\n const findProductUserNeeds = useIdSearchableFetch(\n get,\n WorkflowEntity.UserNeed\n );\n return {\n productUserNeedList: data,\n isLoadingProductUserNeeds: isLoading,\n loadingProductUserNeedsError: error,\n findProductUserNeeds\n };\n}\n\nexport function useFindProductUserNeedsById(\n productId: number,\n productUserNeedId: number\n) {\n const path = `products/${productId}/user-needs/${productUserNeedId}`;\n const { data, isLoading, error, get } = useApiGet(path);\n\n return {\n productUserNeed: data,\n isLoadingProductUserNeeds: isLoading,\n findProductUserNeedError: error,\n findProductUserNeed: get\n };\n}\n\nexport function useFindProductUserNeedsByDesignInputId(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-inputs/${designInputId}/user-needs`\n );\n const findProductUserNeeds = useIdSearchableFetch(\n get,\n WorkflowEntity.UserNeed\n );\n return {\n productUserNeedList: data,\n isLoadingProductUserNeeds: isLoading,\n loadingProductUserNeedsError: error,\n findProductUserNeeds\n };\n}\n\nexport function useFindProductUserNeedsByDesignOutputId(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-outputs/${designOutputId}/user-needs`\n );\n const findProductUserNeeds = useIdSearchableFetch(\n get,\n WorkflowEntity.UserNeed\n );\n return {\n productUserNeedList: data,\n isLoadingProductUserNeeds: isLoading,\n loadingProductUserNeedsError: error,\n findProductUserNeeds\n };\n}\n\nexport function useFindProductUserNeedsByVerificationId(\n productId: number,\n verificationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/verifications/${verificationId}/user-needs`\n );\n const findProductUserNeeds = useIdSearchableFetch(\n get,\n WorkflowEntity.UserNeed\n );\n return {\n productUserNeedList: data,\n isLoadingProductUserNeeds: isLoading,\n loadingProductUserNeedsError: error,\n findProductUserNeeds\n };\n}\n\nexport function useFindProductUserNeedsByValidationId(\n productId: number,\n validationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/validations/${validationId}/user-needs`\n );\n const findProductUserNeeds = useIdSearchableFetch(\n get,\n WorkflowEntity.UserNeed\n );\n return {\n productUserNeedList: data,\n isLoadingProductUserNeeds: isLoading,\n loadingProductUserNeedsError: error,\n findProductUserNeeds\n };\n}\n\nexport function useProductEntityState<\n Entity extends Partial = Partial\n>(\n entitiesProp: Entity[]\n): [Entity[], (entities: Entity[], concat?: boolean) => void] {\n const entitiesRef = useRef(entitiesProp);\n const [entities, setEntities] = useState(entitiesProp);\n\n const addEntities = useCallback(\n (newEntities: Entity[], concat: boolean = false) => {\n if (!concat) {\n entitiesRef.current = newEntities;\n return setEntities(newEntities);\n }\n\n // remove existing entities\n const values: Entity[] = newEntities\n .filter((newEntity: Entity) => {\n return !entitiesRef.current?.find(\n (entity: Entity) => entity.id === newEntity.id\n );\n })\n .concat(entitiesRef.current || [])\n .filter((entity: Entity) => typeof entity.id !== 'undefined');\n\n values.sort((a: Entity, b: Entity) => {\n if (typeof a.id === 'undefined') {\n return -1;\n } else if (typeof b.id === 'undefined') {\n return 1;\n }\n return b.id! - a.id!;\n });\n entitiesRef.current = values;\n setEntities(values);\n },\n []\n );\n\n return [entities, addEntities];\n}\n\nexport function useFindProductUserNeedsByDesignSpecId(\n productId: number,\n designSpecId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-specs/${designSpecId}/user-needs`\n );\n const findProductUserNeeds = useIdSearchableFetch(\n get,\n WorkflowEntity.UserNeed\n );\n return {\n productUserNeedList: data,\n isLoadingProductUserNeeds: isLoading,\n loadingProductUserNeedsError: error,\n findProductUserNeeds\n };\n}\n\nexport function useFindFilteredProductUserNeeds(\n productId: number,\n productEntityId: number = 0,\n entity?: ProductBoardColumnEntity\n): {\n productUserNeedList: ProductUserNeed[] | undefined;\n productUserNeedPaginated?: PaginatedList;\n isLoadingProductUserNeeds: boolean;\n loadingProductUserNeedsError: FetchError | undefined;\n findProductUserNeeds: FetchApiCallback;\n} {\n const find = useFindProductUserNeeds(productId);\n const findByDesignInputId = useFindProductUserNeedsByDesignInputId(\n productId,\n productEntityId\n );\n const findByDesignOutputId = useFindProductUserNeedsByDesignOutputId(\n productId,\n productEntityId\n );\n const findByVerificationId = useFindProductUserNeedsByVerificationId(\n productId,\n productEntityId\n );\n const findByValidationId = useFindProductUserNeedsByValidationId(\n productId,\n productEntityId\n );\n\n switch (entity) {\n case ProductBoardColumnEntity.DesignInput:\n return findByDesignInputId;\n case ProductBoardColumnEntity.DesignOutput:\n return findByDesignOutputId;\n case ProductBoardColumnEntity.Verification:\n return findByVerificationId;\n case ProductBoardColumnEntity.Validation:\n return findByValidationId;\n default: {\n const { productUserNeedList, ...results } = find;\n return {\n ...results,\n productUserNeedPaginated: productUserNeedList,\n productUserNeedList: productUserNeedList?.data\n };\n }\n }\n}\n\nexport function useAssignUserNeedDesignInput(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/user-needs/${userNeedId}/design-inputs`\n );\n return {\n updatedProductUserNeed: data,\n isAssigning: isLoading,\n error,\n assignDesignInputs: post\n };\n}\n\nexport function useAssignUserNeedDesignSpec(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/user-needs/${userNeedId}/design-specs`\n );\n return {\n updatedProductUserNeed: data,\n isAssigning: isLoading,\n error,\n assignDesignSpecs: post\n };\n}\n\nexport function useAssignUserNeedVerification(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/user-needs/${userNeedId}/verifications`\n );\n return {\n updatedProductUserNeed: data,\n isAssigning: isLoading,\n error,\n assignVerifications: post\n };\n}\n\nexport function useAssignUserNeedValidation(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/user-needs/${userNeedId}/validations`\n );\n return {\n updatedProductUserNeed: data,\n isAssigning: isLoading,\n error,\n assignValidations: post\n };\n}\n\nexport function useAssignUserNeedHazard(productId: number, userNeedId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/user-needs/${userNeedId}/hazards`\n );\n return {\n updatedProductUserNeed: data,\n isAssigning: isLoading,\n error,\n assignHazards: post\n };\n}\n\nexport function useCreateProductDesignInput(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-inputs`\n );\n return {\n createdProductDesignInput: data,\n isCreatingProductDesignInput: isLoading,\n createProductDesignInputError: error,\n createProductDesignInput: post\n };\n}\nexport function useUpdateProductDesignInput(\n productId: number,\n productDesignInputId?: number\n) {\n const [path, setPath] = useState('');\n const [designInput, setDesignInput] = useState>();\n const { data, isLoading, error, patch } =\n useApiPatch(path);\n const updateProductDesignInput = useCallback(\n (designInput: Partial) => {\n setPath(\n `products/${productId}/design-inputs/${\n productDesignInputId || designInput.id\n }`\n );\n setDesignInput(designInput);\n },\n [productDesignInputId, productId]\n );\n useEffect(() => {\n if (path && designInput) {\n patch(designInput);\n }\n }, [patch, path, designInput]);\n return {\n updatedProductDesignInput: data,\n isUpdatingProductDesignInput: isLoading,\n updateProductDesignInputError: error,\n updateProductDesignInput\n };\n}\nexport function useFindProductDesignInputs(productId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`products/${productId}/design-inputs`);\n const findProductDesignInputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignInput\n );\n return {\n productDesignInputList: data,\n isLoadingProductDesignInputs: isLoading,\n loadingProductDesignInputsError: error,\n findProductDesignInputs\n };\n}\n\nexport function useFindDesignInputsByUserNeedId(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/user-needs/${userNeedId}/design-inputs`\n );\n const findProductDesignInputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignInput\n );\n return {\n productDesignInputs: data,\n isLoadingProductDesignInputs: isLoading,\n loadingProductDesignInputsError: error,\n findProductDesignInputs\n };\n}\n\nexport function useFindProductDesignInputById(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-inputs/${designInputId}`\n );\n return {\n productDesignInput: data,\n isLoadingProductDesignInput: isLoading,\n findProductDesignInputError: error,\n findProductDesignInput: get\n };\n}\n\nexport function useFindProductDesignInputsByUserNeedId(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/user-needs/${userNeedId}/design-inputs`\n );\n const findProductDesignInputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignInput\n );\n return {\n productDesignInputList: data,\n isLoadingProductDesignInputs: isLoading,\n loadingProductDesignInputsError: error,\n findProductDesignInputs\n };\n}\n\nexport function useFindProductDesignInputsByDesignOutputId(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-outputs/${designOutputId}/design-inputs`\n );\n const findProductDesignInputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignInput\n );\n return {\n productDesignInputList: data,\n isLoadingProductDesignInputs: isLoading,\n loadingProductDesignInputsError: error,\n findProductDesignInputs\n };\n}\n\nexport function useFindProductDesignInputsByVerificationId(\n productId: number,\n verificationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/verifications/${verificationId}/design-inputs`\n );\n const findProductDesignInputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignInput\n );\n return {\n productDesignInputList: data,\n isLoadingProductDesignInputs: isLoading,\n loadingProductDesignInputsError: error,\n findProductDesignInputs\n };\n}\n\nexport function useFindProductDesignInputsByValidationId(\n productId: number,\n validationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/validations/${validationId}/design-inputs`\n );\n const findProductDesignInputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignInput\n );\n return {\n productDesignInputList: data,\n isLoadingProductDesignInputs: isLoading,\n loadingProductDesignInputsError: error,\n findProductDesignInputs\n };\n}\n\nexport function useFindFilteredProductDesignInputs(\n productId: number,\n productEntityId: number = 0,\n entity?: ProductBoardColumnEntity\n): {\n productDesignInputList: ProductDesignInput[] | undefined;\n productDesignInputPaginated?: PaginatedList;\n isLoadingProductDesignInputs: boolean;\n loadingProductDesignInputsError: FetchError | undefined;\n findProductDesignInputs: FetchApiCallback;\n} {\n const find = useFindProductDesignInputs(productId);\n const findByUserNeedId = useFindProductDesignInputsByUserNeedId(\n productId,\n productEntityId\n );\n const findByDesignOutputId = useFindProductDesignInputsByDesignOutputId(\n productId,\n productEntityId\n );\n const findByVerificationId = useFindProductDesignInputsByVerificationId(\n productId,\n productEntityId\n );\n const findByValidationId = useFindProductDesignInputsByValidationId(\n productId,\n productEntityId\n );\n\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return findByUserNeedId;\n case ProductBoardColumnEntity.DesignOutput:\n return findByDesignOutputId;\n case ProductBoardColumnEntity.Verification:\n return findByVerificationId;\n case ProductBoardColumnEntity.Validation:\n return findByValidationId;\n default: {\n const { productDesignInputList, ...results } = find;\n return {\n ...results,\n productDesignInputPaginated: productDesignInputList,\n productDesignInputList: productDesignInputList?.data\n };\n }\n }\n}\n\nexport function useAssignDesignInputUserNeed(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-inputs/${designInputId}/user-needs`\n );\n return {\n updatedProductDesignInput: data,\n isAssigning: isLoading,\n error,\n assignUserNeeds: post\n };\n}\n\nexport function useAssignDesignInputDesignOutput(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-inputs/${designInputId}/design-outputs`\n );\n return {\n updatedProductDesignInput: data,\n isAssigning: isLoading,\n error,\n assignDesignOutputs: post\n };\n}\n\nexport function useAssignDesignInputDesignSpec(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-inputs/${designInputId}/design-specs`\n );\n return {\n updatedProductDesignInput: data,\n isAssigning: isLoading,\n error,\n assignDesignSpecs: post\n };\n}\n\nexport function useAssignDesignInputVerification(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-inputs/${designInputId}/verifications`\n );\n return {\n updatedProductDesignInput: data,\n isAssigning: isLoading,\n error,\n assignVerifications: post\n };\n}\n\nexport function useAssignDesignInputValidation(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-inputs/${designInputId}/validations`\n );\n return {\n updatedProductDesignInput: data,\n isAssigning: isLoading,\n error,\n assignValidations: post\n };\n}\n\nexport function useCreateProductDesignOutput(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-outputs`\n );\n return {\n createdProductDesignOutput: data,\n isCreatingProductDesignOutput: isLoading,\n createProductDesignOutputError: error,\n createProductDesignOutput: post\n };\n}\nexport function useUpdateProductDesignOutput(\n productId: number,\n productDesignOutputId?: number\n) {\n const [path, setPath] = useState('');\n const [designOutput, setDesignOutput] =\n useState>();\n const { data, isLoading, error, patch } =\n useApiPatch(path);\n const updateProductDesignOutput = useCallback(\n (designOutput: Partial) => {\n setPath(\n `products/${productId}/design-outputs/${\n productDesignOutputId || designOutput.id\n }`\n );\n setDesignOutput(designOutput);\n },\n [productDesignOutputId, productId]\n );\n useEffect(() => {\n if (path && designOutput) {\n patch(designOutput);\n }\n }, [patch, path, designOutput]);\n\n return {\n updatedProductDesignOutput: data,\n isUpdatingProductDesignOutput: isLoading,\n updateProductDesignOutputError: error,\n updateProductDesignOutput\n };\n}\nexport function useFindProductDesignOutputs(productId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`products/${productId}/design-outputs`);\n const findProductDesignOutputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignOutput\n );\n return {\n productDesignOutputList: data,\n isLoadingProductDesignOutputs: isLoading,\n loadingProductDesignOutputsError: error,\n findProductDesignOutputs\n };\n}\n\nexport function useFindProductDesignOutputById(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-outputs/${designOutputId}`\n );\n return {\n productDesignOutput: data,\n isLoadingProductDesignOutput: isLoading,\n findProductDesignOutputError: error,\n findProductDesignOutput: get\n };\n}\n\nexport function useFindProductDesignOutputsByUserNeedId(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/user-needs/${userNeedId}/design-outputs`\n );\n const findProductDesignOutputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignOutput\n );\n return {\n productDesignOutputList: data,\n isLoadingProductDesignOutputs: isLoading,\n loadingProductDesignOutputsError: error,\n findProductDesignOutputs\n };\n}\n\nexport function useFindProductDesignOutputsByDesignInputId(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-inputs/${designInputId}/design-outputs`\n );\n const findProductDesignOutputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignOutput\n );\n return {\n productDesignOutputList: data,\n isLoadingProductDesignOutputs: isLoading,\n loadingProductDesignOutputsError: error,\n findProductDesignOutputs\n };\n}\n\nexport function useFindProductDesignOutputsByVerificationId(\n productId: number,\n verificationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/verifications/${verificationId}/design-outputs`\n );\n const findProductDesignOutputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignOutput\n );\n return {\n productDesignOutputList: data,\n isLoadingProductDesignOutputs: isLoading,\n loadingProductDesignOutputsError: error,\n findProductDesignOutputs\n };\n}\n\nexport function useFindProductDesignOutputsByValidationId(\n productId: number,\n validationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/validations/${validationId}/design-outputs`\n );\n const findProductDesignOutputs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignOutput\n );\n return {\n productDesignOutputList: data,\n isLoadingProductDesignOutputs: isLoading,\n loadingProductDesignOutputsError: error,\n findProductDesignOutputs\n };\n}\n\nexport function useFindFilteredProductDesignOutputs(\n productId: number,\n productEntityId: number = 0,\n entity?: ProductBoardColumnEntity\n): {\n productDesignOutputList: ProductDesignOutput[] | undefined;\n productDesignOutputPaginated?: PaginatedList;\n isLoadingProductDesignOutputs: boolean;\n loadingProductDesignOutputsError: FetchError | undefined;\n findProductDesignOutputs: FetchApiCallback;\n} {\n const find = useFindProductDesignOutputs(productId);\n const findByUserNeedId = useFindProductDesignOutputsByUserNeedId(\n productId,\n productEntityId\n );\n const findByDesignInputId = useFindProductDesignOutputsByDesignInputId(\n productId,\n productEntityId\n );\n const findByVerificationId = useFindProductDesignOutputsByVerificationId(\n productId,\n productEntityId\n );\n const findByValidationId = useFindProductDesignOutputsByValidationId(\n productId,\n productEntityId\n );\n\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return findByUserNeedId;\n case ProductBoardColumnEntity.DesignInput:\n return findByDesignInputId;\n case ProductBoardColumnEntity.Verification:\n return findByVerificationId;\n case ProductBoardColumnEntity.Validation:\n return findByValidationId;\n default: {\n const { productDesignOutputList, ...results } = find;\n return {\n ...results,\n productDesignOutputPaginated: productDesignOutputList,\n productDesignOutputList: productDesignOutputList?.data\n };\n }\n }\n}\n\nexport function useAssignDesignOutputDesignInput(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-outputs/${designOutputId}/design-inputs`\n );\n return {\n updatedProductDesignOutput: data,\n isAssigning: isLoading,\n error,\n assignDesignInputs: post\n };\n}\n\nexport function useAssignDesignOutputVerification(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-outputs/${designOutputId}/verifications`\n );\n return {\n updatedProductDesignOutput: data,\n isAssigning: isLoading,\n error,\n assignVerifications: post\n };\n}\n\nexport function useAssignDesignOutputValidation(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-outputs/${designOutputId}/validations`\n );\n return {\n updatedProductDesignOutput: data,\n isAssigning: isLoading,\n error,\n assignValidations: post\n };\n}\n\nexport function useAssignDesignOutputDesignSpec(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-outputs/${designOutputId}/design-specs`\n );\n return {\n updatedProductDesignOutput: data,\n isAssigning: isLoading,\n error,\n assignDesignSpecs: post\n };\n}\n\nexport function useCreateProductVerification(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/verifications`\n );\n return {\n createdProductVerification: data,\n isCreatingProductVerification: isLoading,\n createProductVerificationError: error,\n createProductVerification: post\n };\n}\nexport function useUpdateProductVerification(\n productId: number,\n productVerificationId?: number\n) {\n const [path, setPath] = useState('');\n const [verification, setVerification] =\n useState>();\n const { data, isLoading, error, patch } =\n useApiPatch(path);\n const updateProductVerification = useCallback(\n (verification: Partial) => {\n setPath(\n `products/${productId}/verifications/${\n productVerificationId || verification.id\n }`\n );\n setVerification(verification);\n },\n [productId, productVerificationId]\n );\n useEffect(() => {\n if (path && verification) {\n patch(verification);\n }\n }, [patch, path, verification]);\n\n return {\n updatedProductVerification: data,\n isUpdatingProductVerification: isLoading,\n updateProductVerificationError: error,\n updateProductVerification\n };\n}\nexport function useFindProductVerifications(productId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`products/${productId}/verifications`);\n const findProductVerifications = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignVerification\n );\n return {\n productVerificationList: data,\n isLoadingProductVerifications: isLoading,\n loadingProductVerificationsError: error,\n findProductVerifications\n };\n}\n\nexport function useFindProductVerificationsByUserNeedId(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/user-needs/${userNeedId}/verifications`\n );\n const findProductVerifications = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignVerification\n );\n return {\n productVerificationList: data,\n isLoadingProductVerifications: isLoading,\n loadingProductVerificationsError: error,\n findProductVerifications\n };\n}\n\nexport function useFindProductVerificationsByDesignInputId(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-inputs/${designInputId}/verifications`\n );\n const findProductVerifications = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignVerification\n );\n return {\n productVerificationList: data,\n isLoadingProductVerifications: isLoading,\n loadingProductVerificationsError: error,\n findProductVerifications\n };\n}\n\nexport function useFindProductVerificationsByDesignOutputId(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-outputs/${designOutputId}/verifications`\n );\n const findProductVerifications = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignVerification\n );\n return {\n productVerificationList: data,\n isLoadingProductVerifications: isLoading,\n loadingProductVerificationsError: error,\n findProductVerifications\n };\n}\n\nexport function useFindProductVerificationsByValidationId(\n productId: number,\n validationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/validations/${validationId}/verifications`\n );\n const findProductVerifications = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignVerification\n );\n return {\n productVerificationList: data,\n isLoadingProductVerifications: isLoading,\n loadingProductVerificationsError: error,\n findProductVerifications\n };\n}\n\nexport function useFindFilteredProductVerifications(\n productId: number,\n productEntityId: number = 0,\n entity?: ProductBoardColumnEntity\n): {\n productVerificationList: ProductVerification[] | undefined;\n productVerificationPaginated?: PaginatedList;\n isLoadingProductVerifications: boolean;\n loadingProductVerificationsError: FetchError | undefined;\n findProductVerifications: FetchApiCallback;\n} {\n const find = useFindProductVerifications(productId);\n const findByUserNeedId = useFindProductVerificationsByUserNeedId(\n productId,\n productEntityId\n );\n const findByDesignInputId = useFindProductVerificationsByDesignInputId(\n productId,\n productEntityId\n );\n const findByDesignOutputId = useFindProductVerificationsByDesignOutputId(\n productId,\n productEntityId\n );\n const findByValidationId = useFindProductVerificationsByValidationId(\n productId,\n productEntityId\n );\n\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return findByUserNeedId;\n case ProductBoardColumnEntity.DesignInput:\n return findByDesignInputId;\n case ProductBoardColumnEntity.DesignOutput:\n return findByDesignOutputId;\n case ProductBoardColumnEntity.Validation:\n return findByValidationId;\n default: {\n const { productVerificationList, ...results } = find;\n return {\n ...results,\n productVerificationPaginated: productVerificationList,\n productVerificationList: productVerificationList?.data\n };\n }\n }\n}\n\nexport function useFindProductVerificationById(\n productId: number,\n verificationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/verifications/${verificationId}`\n );\n return {\n productVerification: data,\n isLoadingProductVerification: isLoading,\n findProductVerificationError: error,\n findProductVerification: get\n };\n}\n\nexport function useAssignVerificationDesignOutput(\n productId: number,\n verificationId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/verifications/${verificationId}/design-outputs`\n );\n return {\n updatedProductVerification: data,\n isAssigning: isLoading,\n error,\n assignDesignOutputs: post\n };\n}\n\nexport function useCreateProductValidation(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/validations`\n );\n return {\n createdProductValidation: data,\n isCreatingProductValidation: isLoading,\n createProductValidationError: error,\n createProductValidation: post\n };\n}\nexport function useUpdateProductValidation(\n productId: number,\n productValidationId?: number\n) {\n const [path, setPath] = useState('');\n const [validation, setValidation] = useState>();\n const { data, isLoading, error, patch } =\n useApiPatch(path);\n const updateProductValidation = useCallback(\n (validation: Partial) => {\n setPath(\n `products/${productId}/validations/${\n productValidationId || validation.id\n }`\n );\n setValidation(validation);\n },\n [productId, productValidationId]\n );\n useEffect(() => {\n if (path && validation) {\n patch(validation);\n }\n }, [patch, path, validation]);\n\n return {\n updatedProductValidation: data,\n isUpdatingProductValidation: isLoading,\n updateProductValidationError: error,\n updateProductValidation\n };\n}\nexport function useFindProductValidations(productId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`products/${productId}/validations`);\n const findProductValidations = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignValidation\n );\n return {\n productValidationList: data,\n isLoadingProductValidations: isLoading,\n loadingProductValidationsError: error,\n findProductValidations\n };\n}\n\nexport function useFindProductValidationsByUserNeedId(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/user-needs/${userNeedId}/validations`\n );\n const findProductValidations = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignValidation\n );\n return {\n productValidationList: data,\n isLoadingProductValidations: isLoading,\n loadingProductValidationsError: error,\n findProductValidations\n };\n}\n\nexport function useFindHazardsByUserNeedId(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/user-needs/${userNeedId}/hazards`\n );\n const findHazards = useIdSearchableFetch(get, WorkflowEntity.Hazard);\n return {\n hazardList: data,\n isLoadingHazards: isLoading,\n loadingHazardsError: error,\n findHazards\n };\n}\n\nexport function useFindProductValidationsByDesignInputId(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-inputs/${designInputId}/validations`\n );\n const findProductValidations = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignValidation\n );\n return {\n productValidationList: data,\n isLoadingProductValidations: isLoading,\n loadingProductValidationsError: error,\n findProductValidations\n };\n}\n\nexport function useFindProductValidationsByDesignOutputId(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-outputs/${designOutputId}/validations`\n );\n const findProductValidations = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignValidation\n );\n return {\n productValidationList: data,\n isLoadingProductValidations: isLoading,\n loadingProductValidationsError: error,\n findProductValidations\n };\n}\n\nexport function useFindProductValidationsByVerificationId(\n productId: number,\n verificationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/verifications/${verificationId}/validations`\n );\n const findProductValidations = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignValidation\n );\n return {\n productValidationList: data,\n isLoadingProductValidations: isLoading,\n loadingProductValidationsError: error,\n findProductValidations\n };\n}\n\nexport function useFindFilteredProductValidations(\n productId: number,\n productEntityId: number = 0,\n entity?: ProductBoardColumnEntity\n): {\n productValidationList: ProductValidation[] | undefined;\n productValidationPaginated?: PaginatedList;\n isLoadingProductValidations: boolean;\n loadingProductValidationsError: FetchError | undefined;\n findProductValidations: FetchApiCallback;\n} {\n const find = useFindProductValidations(productId);\n const findByUserNeedId = useFindProductValidationsByUserNeedId(\n productId,\n productEntityId\n );\n const findByDesignInputId = useFindProductValidationsByDesignInputId(\n productId,\n productEntityId\n );\n const findByDesignOutputId = useFindProductValidationsByDesignOutputId(\n productId,\n productEntityId\n );\n const findByVerificationId = useFindProductValidationsByVerificationId(\n productId,\n productEntityId\n );\n\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return findByUserNeedId;\n case ProductBoardColumnEntity.DesignInput:\n return findByDesignInputId;\n case ProductBoardColumnEntity.DesignOutput:\n return findByDesignOutputId;\n case ProductBoardColumnEntity.Verification:\n return findByVerificationId;\n default: {\n const { productValidationList, ...results } = find;\n return {\n ...results,\n productValidationPaginated: productValidationList,\n productValidationList: productValidationList?.data\n };\n }\n }\n}\n\nexport function useFindProductValidationById(\n productId: number,\n validationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/validations/${validationId}`\n );\n return {\n productValidation: data,\n isLoadingProductValidation: isLoading,\n findProductValidationError: error,\n findProductValidation: get\n };\n}\n\nexport function useAssignValidationUserNeed(\n productId: number,\n validationId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/validations/${validationId}/user-needs`\n );\n return {\n updatedProductValidation: data,\n isAssigning: isLoading,\n error,\n assignUserNeeds: post\n };\n}\n\nexport function useAssignValidationDesignInput(\n productId: number,\n validationId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/validations/${validationId}/design-inputs`\n );\n return {\n updatedProductValidation: data,\n isAssigning: isLoading,\n error,\n assignDesignInputs: post\n };\n}\n\nexport function useCreateProductDesignSpec(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-specs`\n );\n return {\n createdProductDesignSpec: data,\n isCreatingProductDesignSpec: isLoading,\n createProductDesignSpecError: error,\n createProductDesignSpec: post\n };\n}\nexport function useUpdateProductDesignSpec(\n productId: number,\n productDesignSpecId?: number\n) {\n const [path, setPath] = useState('');\n const [designSpec, setDesignSpec] = useState>();\n const { data, isLoading, error, patch } =\n useApiPatch(path);\n const updateProductDesignSpec = useCallback(\n (designSpec: Partial) => {\n setPath(\n `products/${productId}/design-specs/${\n productDesignSpecId || designSpec.id\n }`\n );\n setDesignSpec(designSpec);\n },\n [productId, productDesignSpecId]\n );\n useEffect(() => {\n if (path && designSpec) {\n patch(designSpec);\n }\n }, [patch, path, designSpec]);\n\n return {\n updatedProductDesignSpec: data,\n isUpdatingProductDesignSpec: isLoading,\n updateProductDesignSpecError: error,\n updateProductDesignSpec\n };\n}\nexport function useFindProductDesignSpecs(productId: number) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`products/${productId}/design-specs`);\n const findProductDesignSpecs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignSpec\n );\n return {\n productDesignSpecList: data,\n isLoadingProductDesignSpecs: isLoading,\n loadingProductDesignSpecsError: error,\n findProductDesignSpecs\n };\n}\n\nexport function useFindProductDesignSpecsByUserNeedId(\n productId: number,\n userNeedId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/user-needs/${userNeedId}/design-specs`\n );\n const findProductDesignSpecs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignSpec\n );\n return {\n productDesignSpecList: data,\n isLoadingProductDesignSpecs: isLoading,\n loadingProductDesignSpecsError: error,\n findProductDesignSpecs\n };\n}\n\nexport function useFindProductDesignSpecsByDesignInputId(\n productId: number,\n designInputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-inputs/${designInputId}/design-specs`\n );\n const findProductDesignSpecs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignSpec\n );\n return {\n productDesignSpecList: data,\n isLoadingProductDesignSpecs: isLoading,\n loadingProductDesignSpecsError: error,\n findProductDesignSpecs\n };\n}\n\nexport function useFindProductDesignSpecsByDesignOutputId(\n productId: number,\n designOutputId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-outputs/${designOutputId}/design-specs`\n );\n const findProductDesignSpecs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignSpec\n );\n return {\n productDesignSpecList: data,\n isLoadingProductDesignSpecs: isLoading,\n loadingProductDesignSpecsError: error,\n findProductDesignSpecs\n };\n}\n\nexport function useFindProductDesignSpecsByVerificationId(\n productId: number,\n verificationId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/verifications/${verificationId}/design-specs`\n );\n const findProductDesignSpecs = useIdSearchableFetch(\n get,\n WorkflowEntity.DesignSpec\n );\n return {\n productDesignSpecList: data,\n isLoadingProductDesignSpecs: isLoading,\n loadingProductDesignSpecsError: error,\n findProductDesignSpecs\n };\n}\n\nexport function useFindFilteredProductDesignSpecs(\n productId: number,\n productEntityId: number = 0,\n entity?: ProductBoardColumnEntity\n): {\n productDesignSpecList: ProductDesignSpec[] | undefined;\n productDesignSpecPaginated?: PaginatedList;\n isLoadingProductDesignSpecs: boolean;\n loadingProductDesignSpecsError: FetchError | undefined;\n findProductDesignSpecs: FetchApiCallback;\n} {\n const find = useFindProductDesignSpecs(productId);\n const findByUserNeedId = useFindProductDesignSpecsByUserNeedId(\n productId,\n productEntityId\n );\n const findByDesignInputId = useFindProductDesignSpecsByDesignInputId(\n productId,\n productEntityId\n );\n const findByDesignOutputId = useFindProductDesignSpecsByDesignOutputId(\n productId,\n productEntityId\n );\n const findByVerificationId = useFindProductDesignSpecsByVerificationId(\n productId,\n productEntityId\n );\n\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return findByUserNeedId;\n case ProductBoardColumnEntity.DesignInput:\n return findByDesignInputId;\n case ProductBoardColumnEntity.DesignOutput:\n return findByDesignOutputId;\n case ProductBoardColumnEntity.Verification:\n return findByVerificationId;\n default: {\n const { productDesignSpecList, ...results } = find;\n return {\n ...results,\n productDesignSpecPaginated: productDesignSpecList,\n productDesignSpecList: productDesignSpecList?.data\n };\n }\n }\n}\n\nexport function useFindProductDesignSpecById(\n productId: number,\n designSpecId: number\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/design-specs/${designSpecId}`\n );\n return {\n productDesignSpec: data,\n isLoadingProductDesignSpec: isLoading,\n findProductDesignSpecError: error,\n findProductDesignSpec: get\n };\n}\n\nexport function useAssignDesignSpecUserNeed(\n productId: number,\n designSpecId: number\n) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/design-specs/${designSpecId}/user-needs`\n );\n return {\n updatedProductDesignSpec: data,\n isAssigning: isLoading,\n error,\n assignUserNeeds: post\n };\n}\n\nexport function useCreateProductHazard(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/hazards`\n );\n return {\n createdProductHazard: data,\n isCreatingProductHazard: isLoading,\n createProductHazardError: error,\n createProductHazard: post\n };\n}\n\nexport function useGetPendingProductItems() {\n return useApiGet>(`products/pending`);\n}\n\nexport const getExportTitle = (entity: ProductExportEntity) => {\n switch (entity) {\n case ProductExportEntity.UserNeed:\n return getProductEntityName('userNeed');\n case ProductExportEntity.DesignInput:\n return getProductEntityName('designInput');\n case ProductExportEntity.DesignOutput:\n return getProductEntityName('designOutput');\n case ProductExportEntity.DesignSpec:\n return getProductEntityName('designSpec');\n case ProductExportEntity.Verification:\n return getProductEntityName('verification');\n case ProductExportEntity.Validation:\n return getProductEntityName('validation');\n case ProductExportEntity.TraceabilityReport:\n return 'Traceability Report';\n case ProductExportEntity.eClinicalReport:\n return 'eClinicalWorks Report';\n case ProductExportEntity.Hazard:\n return getProductEntityName('hazard');\n }\n};\n\nexport function getProductExportFileName(\n templateName: string,\n product?: Product\n): string {\n const productName: string = product\n ? ` - ${product.name} - PRODUCT-${product.id}`\n : '';\n return templateName + productName + '.docx';\n}\n\nexport function useExportProductEntityDocument(\n productId: number,\n templateId: number\n): [ApiResult, (params?: ApiParams) => void, (fileName: string) => void] {\n const { get, ...result } = useApiGet(\n `products/${productId}/export/${templateId}`\n );\n const { response } = result;\n const { setBlob, downloadDocument } = useDownloadBlob(response);\n\n const getDocument = useCallback(\n (params?: ApiParams) => {\n // remove old document\n setBlob(undefined);\n get(params);\n },\n [get, setBlob]\n );\n\n return [result, getDocument, downloadDocument];\n}\n\nexport function getProductEntityPrefix(\n entity: ProductBoardColumnEntity\n): string {\n switch (entity) {\n case ProductBoardColumnEntity.UserNeed:\n return `${getProductEntityIdPrefix('userNeed')}-`;\n case ProductBoardColumnEntity.DesignInput:\n return `${getProductEntityIdPrefix('designInput')}-`;\n case ProductBoardColumnEntity.DesignOutput:\n return `${getProductEntityIdPrefix('designOutput')}-`;\n case ProductBoardColumnEntity.Verification:\n return `${getProductEntityIdPrefix('verification')}-`;\n case ProductBoardColumnEntity.Validation:\n return `${getProductEntityIdPrefix('validation')}-`;\n case ProductBoardColumnEntity.DesignSpec:\n return `${getProductEntityIdPrefix('designSpec')}-`;\n default:\n return '';\n }\n}\n\nexport function useProductEntityPrefix(\n entity: ProductBoardColumnEntity\n): string {\n return useMemo(() => getProductEntityPrefix(entity), [entity]);\n}\n\nexport function useProductEntityPrefixId(\n productEntity: ProductEntity | Partial | undefined,\n entity: ProductBoardColumnEntity\n): string {\n return useMemo(() => {\n if (!productEntity?.id) {\n return '';\n }\n const { id } = productEntity;\n return getProductEntityPrefix(entity) + id;\n }, [entity, productEntity]);\n}\n\nexport function useCreateProductComponent(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/components`\n );\n return {\n createdComponent: data,\n creatingComponent: isLoading,\n createComponentError: error,\n createComponent: post\n };\n}\n\nexport function useUpdateProductComponent(\n productId: number,\n componentId: number\n) {\n const { data, isLoading, error, patch } = useApiPatch(\n `products/${productId}/components/${componentId}`\n );\n return {\n updatedComponent: data,\n updatingComponent: isLoading,\n updateComponentError: error,\n updateComponent: patch\n };\n}\n\nexport function useDeleteProductComponent(\n productId: number,\n componentId: number\n) {\n const { data, isLoading, error, del } = useApiDelete(\n `products/${productId}/components/${componentId}`\n );\n return {\n deletedComponent: data,\n deletingComponent: isLoading,\n deleteComponentError: error,\n deleteComponent: del\n };\n}\n\nexport function useFindProductComponents(\n id: number,\n shouldFetchOnMount = false\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${id}/components`\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n productComponents: data,\n isLoading,\n loadingError: error,\n findProductComponents: get\n };\n}\n\nexport function useCreateProductRelease(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/releases`\n );\n return {\n createdRelease: data,\n creatingRelease: isLoading,\n createReleaseError: error,\n createRelease: post\n };\n}\n\nexport function useUpdateProductRelease(productId: number, releaseId: number) {\n const { data, isLoading, error, patch } = useApiPatch(\n `products/${productId}/releases/${releaseId}`\n );\n return {\n updatedRelease: data,\n updatingRelease: isLoading,\n updateReleaseError: error,\n updateRelease: patch\n };\n}\n\nexport function useDeleteProductRelease(productId: number, releaseId: number) {\n const { data, isLoading, error, del } = useApiDelete(\n `products/${productId}/releases/${releaseId}`\n );\n return {\n deletedRelease: data,\n deletingRelease: isLoading,\n deleteReleaseError: error,\n deleteRelease: del\n };\n}\n\nexport function useFindProductReleases(\n productId: number,\n shouldFetchOnMount = false\n) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/releases`\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n productReleases: data,\n isLoading,\n loadingError: error,\n findProductReleases: get\n };\n}\n\nexport function useProductViewParams(\n includeAllQueryParams: boolean = false\n): string {\n const location = useLocation();\n const view: string = useMemo(() => {\n return (\n ['detail', 'settings', 'board', 'swimlane', 'trace'].find(\n (str: string) => {\n return location.pathname.includes(str);\n }\n ) || 'detail'\n );\n }, [location]);\n\n return useMemo(() => {\n if (!view) {\n return '';\n }\n const params: URLSearchParams = new URLSearchParams(\n includeAllQueryParams ? location.search : undefined\n );\n params.set('from', view);\n return '?' + params.toString();\n }, [view, location, includeAllQueryParams]);\n}\n\nexport function useProductFilterQueryParams() {\n const [status, setStatus] = useQueryParam(\n 'status',\n withDefault(ArrayParam as any, [])\n );\n const [assigneeId, setAssigneeId] = useQueryParam(\n 'assigneeId',\n withDefault(NumericArrayParam as any, [])\n );\n const [assignedForReviewOnly, setAssignedForReviewOnly] = useQueryParam(\n 'assignedForReviewOnly',\n withDefault(BooleanParam, false)\n );\n const [unassignedOnly, setUnassignedOnly] = useQueryParam(\n 'unassignedOnly',\n withDefault(BooleanParam, false)\n );\n const [components, setComponents] = useQueryParam(\n 'components',\n withDefault(NumericArrayParam as any, [])\n );\n const [releases, setReleases] = useQueryParam(\n 'releases',\n withDefault(NumericArrayParam as any, [])\n );\n\n const options: ProductFilterOptions = useMemo(() => {\n const options: ProductFilterOptions = {\n status: status || [],\n components: (components || []).map(\n (id: number) => ({ id } as ProductComponent)\n ),\n releases: (releases || []).map(\n (id: number) => ({ id } as ProductRelease)\n ),\n assignee: assigneeId || [],\n unassignedOnly: unassignedOnly || false,\n assignedForReviewOnly: assignedForReviewOnly || false\n };\n return options;\n }, [\n status,\n assigneeId,\n components,\n releases,\n unassignedOnly,\n assignedForReviewOnly\n ]);\n\n const convertOptionsToParams = useCallback(\n (options: ProductFilterOptions): ApiParams => {\n const {\n assignee,\n status,\n components,\n releases,\n assignedForReviewOnly,\n unassignedOnly\n } = options;\n const params: ApiParams = {\n status,\n assignedForReviewOnly,\n unassignedOnly,\n assigneeId: assignee,\n components: components.map(\n (component: ProductComponent) => component.id\n ),\n releases: releases.map((release: ProductRelease) => release.id)\n };\n status?.length === 0 && delete params.status;\n assignee?.length === 0 && delete params.assigneeId;\n components.length === 0 && delete params.components;\n releases.length === 0 && delete params.releases;\n typeof assignedForReviewOnly !== 'boolean' &&\n delete params.assignedForReviewOnly;\n typeof unassignedOnly !== 'boolean' && delete params.unassignedOnly;\n return params;\n },\n []\n );\n\n const getParams = useCallback((): ApiParams => {\n return convertOptionsToParams(options);\n }, [convertOptionsToParams, options]);\n\n return {\n options,\n setStatus,\n setAssigneeId,\n setComponents,\n setReleases,\n setAssignedForReviewOnly,\n setUnassignedOnly,\n getParams,\n convertOptionsToParams\n };\n}\n\nexport function useFindProductRelationMap(productId: number) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/relations`\n );\n return {\n productRelationMap: data,\n isLoadingProductRelationMap: isLoading,\n findProductRelationMapError: error,\n findProductRelationMap: get\n };\n}\n\nexport function useFindProductUserNeedVersion(\n productId: number,\n productUserNeedId: number,\n version?: number\n) {\n let path = `products/${productId}/user-needs/${productUserNeedId}/version/${version}`;\n const { data, isLoading, error, get } =\n useApiGet(path);\n\n return {\n productUserNeedVersion: data,\n isLoadingProductUserNeedVersion: isLoading,\n findProductUserNeedVersionError: error,\n findProductUserNeedVersion: get\n };\n}\n\nexport function useFindProductDesignInputVersion(\n productId: number,\n productDesignInputId: number,\n version?: number\n) {\n let path = `products/${productId}/design-inputs/${productDesignInputId}/version/${version}`;\n const { data, isLoading, error, get } =\n useApiGet(path);\n\n return {\n productDesignInputVersion: data,\n isLoadingProductDesignInputVersion: isLoading,\n findProductDesignInputVersionError: error,\n findProductDesignInputVersion: get\n };\n}\n\nexport function useFindProductDesignOutputVersion(\n productId: number,\n productDesignOutputId: number,\n version?: number\n) {\n let path = `products/${productId}/design-outputs/${productDesignOutputId}/version/${version}`;\n const { data, isLoading, error, get } =\n useApiGet(path);\n\n return {\n productDesignOutputVersion: data,\n isLoadingProductDesignOutputVersion: isLoading,\n findProductDesignOutputVersionError: error,\n findProductDesignOutputVersion: get\n };\n}\n\nexport function useFindProductVerificationVersion(\n productId: number,\n productVerificationId: number,\n version?: number\n) {\n let path = `products/${productId}/verifications/${productVerificationId}/version/${version}`;\n const { data, isLoading, error, get } =\n useApiGet(path);\n\n return {\n productVerificationVersion: data,\n isLoadingProductVerificationVersion: isLoading,\n findProductVerificationVersionError: error,\n findProductVerificationVersion: get\n };\n}\n\nexport function useFindProductValidationVersion(\n productId: number,\n productValidationId: number,\n version?: number\n) {\n let path = `products/${productId}/validations/${productValidationId}/version/${version}`;\n const { data, isLoading, error, get } =\n useApiGet(path);\n\n return {\n productValidationVersion: data,\n isLoadingProductValidationVersion: isLoading,\n findProductValidationVersionError: error,\n findProductValidationVersion: get\n };\n}\n\nexport function useFindProductDesignSpecVersion(\n productId: number,\n productDesignSpecId: number,\n version?: number\n) {\n let path = `products/${productId}/design-specs/${productDesignSpecId}/version/${version}`;\n const { data, isLoading, error, get } =\n useApiGet(path);\n\n return {\n productDesignSpecVersion: data,\n isLoadingProductDesignSpecVersion: isLoading,\n findProductDesignSpecVersionError: error,\n findProductDesignSpecVersion: get\n };\n}\n\nfunction getBoardSearchQuery(entity: WorkflowEntity): string {\n switch (entity) {\n case WorkflowEntity.UserNeed:\n return 'userNeed';\n case WorkflowEntity.DesignInput:\n return 'designInput';\n case WorkflowEntity.DesignOutput:\n return 'designOutput';\n case WorkflowEntity.DesignVerification:\n return 'verification';\n case WorkflowEntity.DesignValidation:\n return 'validation';\n case WorkflowEntity.DesignSpec:\n return 'designSpec';\n default:\n return '';\n }\n}\n\nconst productBoardOptions: IdSearchableFetchOptions[] =\n ProductWorkflowEntities.map((entity: WorkflowEntity) => {\n return {\n entity,\n removeFrom: false,\n to: getBoardSearchQuery(entity).concat('SearchId')\n } as IdSearchableFetchOptions;\n });\n\nexport function useGetProductBoard(productId: number) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/board`\n );\n const getProductBoard = useIdSearchableFetch(get, productBoardOptions);\n return {\n productBoard: data,\n isLoading: isLoading,\n loadingError: error,\n getProductBoard\n };\n}\n\nexport function useGetProductBoardReferences() {\n const [state, setState] = useState<{\n path: string;\n productId: number;\n referencedProductIds: number[];\n apiParams: ApiParams;\n }>();\n const {\n data,\n isLoading,\n error,\n get: apiGet\n } = useApiGet(state?.path || '');\n const get = useIdSearchableFetch(apiGet, productBoardOptions);\n useEffect(() => {\n if (state) {\n const { referencedProductIds, apiParams } = state;\n get({\n referencedProductIds,\n ...apiParams\n });\n }\n }, [get, state]);\n const getProductBoardReferences = useCallback(\n (\n productId: number,\n referencedProductIds: number[],\n apiParams: ApiParams = {}\n ) => {\n setState({\n path: `products/${productId}/board/references`,\n productId,\n referencedProductIds,\n apiParams\n });\n },\n []\n );\n return {\n productBoardReferences: data,\n isLoadingReferences: isLoading,\n loadingReferencesError: error,\n getProductBoardReferences\n };\n}\n\nexport function useDownloadDefaultTemplate(): [\n ApiResult,\n (params: ApiParams & { entity: ProductExportEntity }) => void,\n (fileName: string) => void\n] {\n const { get, ...result } = useApiGet('products/default-template');\n const { response } = result;\n const { setBlob, downloadDocument } = useDownloadBlob(response);\n\n const getDocument = useCallback(\n (params: ApiParams & { entity: ProductExportEntity }) => {\n // remove old document\n setBlob(undefined);\n get(params);\n },\n [get]\n );\n\n return [result, getDocument, downloadDocument];\n}\n\n// product templates\n\nexport function useFindProductTemplates(productId: number) {\n const { data, isLoading, error, get } = useApiGet(\n `products/${productId}/templates`\n );\n const findProductTemplates = useCallback(() => {\n get({\n includeEClinical:\n !!process.env.REACT_APP_CLIENT_ENV?.includes('eclinicalworks')\n });\n }, [get]);\n return {\n productTemplates: data,\n isLoading,\n loadingError: error,\n findProductTemplates\n };\n}\n\nexport function useCreateProductTemplate(productId: number) {\n const { data, isLoading, error, post } = useApiPost(\n `products/${productId}/templates`\n );\n const createProductTemplate = useCallback(\n (dto: Partial) => post(dto),\n [post]\n );\n return {\n createdProductTemplate: data,\n isCreating: isLoading,\n createError: error,\n createProductTemplate\n };\n}\n\nexport function useUpdateProductTemplate(\n productId: number,\n templateId: number\n) {\n const { data, isLoading, error, patch } = useApiPatch(\n `products/${productId}/templates/${templateId}`\n );\n const updateProductTemplate = useCallback(\n (dto: Partial) => patch(dto),\n [patch]\n );\n return {\n updatedProductTemplate: data,\n isUpdating: isLoading,\n updateError: error,\n updateProductTemplate\n };\n}\n\nexport function useDeleteProductTemplate(\n productId: number,\n templateId: number\n) {\n const { data, isLoading, error, del } = useApiDelete(\n `products/${productId}/templates/${templateId}`\n );\n return {\n deletedProductTemplate: data,\n isDeleting: isLoading,\n deleteError: error,\n deleteProductTemplate: del\n };\n}\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { camelCase } from 'lodash';\nimport { useHistory } from 'react-router';\nimport { DesignServices as DesignServicesIcon } from '@material-ui/icons';\nimport { StateNodeType } from '@sierralabs/workflow';\n\nimport { FetchError } from '../../../common/api/api';\nimport { formatDate } from '../../../common/formatter';\nimport { useGetUserTaskSummary } from '../../../user/User.hooks';\nimport {\n ProductEntity,\n ProductTaskTypeEntities\n} from '../../products/Product.interface';\nimport { Task, TaskSummaryItem } from '../../tasks/Task.interface';\nimport { useTaskRedirect } from '../../tasks/Task.hooks';\nimport { parseTaskStatus } from '../../tasks/task.helper';\nimport { WorkflowEntity } from '../../workflow/Workflow.interface';\nimport { useGetPendingProductItems } from '../../products/Product.hooks';\nimport { DashboardCardProps, DashboardItem } from '../Dashboard.interface';\nimport BaseDashboardCard, { DashboardCardOrder } from './BaseDashboardCard';\nimport { convertToProductEntityName } from './DashboardItemGraph';\nimport { getProductEntityIdPrefix } from '../../products/Product.config';\n\nconst orderMap: { [key in DashboardCardOrder]: string } = {\n title: 'task.name',\n status: 'task.status'\n};\n\nconst DashboardProductCard: React.FC = (\n props: DashboardCardProps\n) => {\n const limit: number = 10;\n const { search, onError } = props;\n const history = useHistory();\n const [page, setPage] = useState(0);\n const [order, setOrder] = useState();\n const [orderDirection, setOrderDirection] = useState<\n 'ASC' | 'DESC' | undefined\n >();\n const [entities, setEntities] = useState([]);\n const [selectedTask, setSelectedTask] = useState();\n const {\n data: summary,\n isLoading: isLoadingSummary,\n error: taskSummaryError,\n get: getTaskSummary\n } = useGetUserTaskSummary();\n const {\n data,\n isLoading: isLoadingItems,\n error: itemsError,\n get\n } = useGetPendingProductItems();\n\n const { result, redirect, getTaskEntity } = useTaskRedirect(selectedTask);\n const isLoading: boolean =\n result.isLoading || isLoadingSummary || isLoadingItems;\n const error: FetchError | undefined =\n result.error || taskSummaryError || itemsError;\n\n const items: DashboardItem[] = useMemo(() => {\n return entities.map((item: ProductEntity) => {\n const { task } = item;\n const { parent } = task || {};\n const type: WorkflowEntity | undefined = parent?.type || task.type;\n let prefix;\n switch (type) {\n case WorkflowEntity.DesignVerification:\n prefix = getProductEntityIdPrefix('verification');\n break;\n case WorkflowEntity.DesignValidation:\n prefix = getProductEntityIdPrefix('validation');\n break;\n default:\n prefix = getProductEntityIdPrefix(camelCase(type) as any);\n break;\n }\n const entityId = `${prefix}-${item.id}`;\n return {\n id: entityId,\n task: task,\n type: convertToProductEntityName(type),\n onClick: () => setSelectedTask(task),\n columns: [\n {\n primary: `${entityId} / ${item.title}`,\n secondary: formatDate(item.modified, true)\n }\n ]\n };\n });\n }, [entities]);\n\n const sortEntities = useCallback(\n (entities: ProductEntity[]): ProductEntity[] => {\n return Array.from(entities).sort((a: ProductEntity, b: ProductEntity) => {\n if (orderDirection === 'DESC') {\n const temp: ProductEntity = a;\n a = b;\n b = temp;\n }\n switch (order) {\n case 'task.name': {\n const { title: aTitle = '' } = a;\n const { title: bTitle = '' } = b;\n return aTitle > bTitle ? 1 : -1;\n }\n case 'task.status': {\n const { status: aStatus = '' } = a.task;\n const { status: bStatus = '' } = b.task;\n return parseTaskStatus(aStatus) > parseTaskStatus(bStatus) ? 1 : -1;\n }\n }\n return +a.created - +b.created;\n });\n },\n [order, orderDirection]\n );\n\n // Get pending Items total\n const itemTotal: number = useMemo(() => {\n return (summary || []).reduce((total: number, item: TaskSummaryItem) => {\n return total + item.total;\n }, 0);\n }, [summary]);\n\n useEffect(() => {\n selectedTask && getTaskEntity();\n }, [selectedTask, getTaskEntity]);\n\n useEffect(() => {\n redirect && history.push(redirect);\n }, [redirect, history]);\n\n useEffect(() => {\n getTaskSummary({\n entities: ProductTaskTypeEntities,\n excludeTypes: [StateNodeType.Final]\n });\n }, [getTaskSummary]);\n\n useEffect(() => {\n get({ page, limit, search: search || '' });\n }, [get, page, limit, search]);\n\n useEffect(() => {\n if (data) {\n const newItems: ProductEntity[] = data.data\n .filter((newItem: ProductEntity) => {\n return !entities.find(\n (item: ProductEntity) => item.id === newItem.id\n );\n })\n .concat(entities);\n setEntities(sortEntities(newItems));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data, sortEntities]);\n\n useEffect(() => {\n if (error) {\n onError?.(error);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n return (\n }\n title='Pending Product Items'\n emptyState='No pending Product items.'\n page={page}\n limit={limit}\n orderDirection={orderDirection}\n setPage={setPage}\n setOrderDirection={setOrderDirection}\n isActive={(o: DashboardCardOrder) => orderMap[o] === order}\n setOrder={(order: DashboardCardOrder) => setOrder(orderMap[order])}\n />\n );\n};\n\nexport default DashboardProductCard;\n","import React, { useState } from 'react';\nimport { StringParam, useQueryParam } from 'use-query-params';\nimport { Grid } from '@material-ui/core';\n\nimport { FetchError } from '../../../common/api/api';\nimport AppSnackbar from '../../../common/AppSnackbar';\nimport { useUserContext } from '../../../user/User.context';\nimport AdminToDoCard from '../../admin-dashboard/AdminToDoCard';\nimport { DashboardCardProps } from '../Dashboard.interface';\nimport DashboardDocumentCard from './DashboardDocumentCard';\nimport DashboardProductCard from './DashboardProductCard';\n\nconst DashboardAssignedTab: React.FC = () => {\n const { user } = useUserContext();\n const [search = ''] = useQueryParam('search', StringParam);\n const [error, setError] = useState();\n\n const cardProps: DashboardCardProps = {\n search,\n user: user!,\n onError: (error: FetchError) => setError(error)\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n setError(undefined)}\n >\n {error?.message}\n \n \n );\n};\nexport default DashboardAssignedTab;\n","import { useCallback, useEffect, useMemo } from 'react';\nimport { StateNodeType } from '@sierralabs/workflow';\n\nimport {\n useGetUserTaskSummary,\n useGetUserTrainingStats\n} from '../../user/User.hooks';\nimport { useUserContext } from '../../user/User.context';\nimport { TaskSummaryItem } from '../tasks/Task.interface';\nimport { TaskTypeEntity } from '../task-types/TaskType.interface';\nimport { ProductTaskTypeEntities } from '../products/Product.interface';\n\nconst dashboardEntities: TaskTypeEntity[] = ProductTaskTypeEntities.concat(\n TaskTypeEntity.File\n);\n\nexport function useDashboardPendingItems() {\n const { user } = useUserContext();\n const { data, get } = useGetUserTaskSummary();\n const { data: stats } = useGetUserTrainingStats(true, user?.id);\n\n const items: TaskSummaryItem[] = useMemo(() => data || [], [data]);\n\n const hasItems = useCallback(\n (...entities: TaskTypeEntity[]): boolean => {\n const total: number = items\n .filter((item: TaskSummaryItem) => entities.includes(item.targetEntity))\n .reduce((total: number, item: TaskSummaryItem) => {\n return total + item.total;\n }, 0);\n return total > 0;\n },\n [items]\n );\n\n const hasFileItems: boolean = useMemo(() => {\n return hasItems(TaskTypeEntity.File);\n }, [hasItems]);\n\n const hasProductItems: boolean = useMemo(() => {\n return hasItems(...ProductTaskTypeEntities);\n }, [hasItems]);\n\n const hasTrainingItems: boolean = useMemo(() => {\n const { toDoCount = 0, inProgressCount = 0 } = stats || {};\n return toDoCount + inProgressCount > 0;\n }, [stats]);\n\n const pendingItems: string[] = useMemo(() => {\n const items: string[] = [];\n hasFileItems && items.push('document');\n hasProductItems && items.push('product');\n hasTrainingItems && items.push('training');\n return items;\n }, [hasFileItems, hasProductItems, hasTrainingItems]);\n\n const hasPendingItems: boolean = useMemo(() => {\n return pendingItems.length > 0;\n }, [pendingItems]);\n\n // join items with comma and \"and\"\n const pendingItemsText: string = useMemo(() => {\n const i: string[] = pendingItems;\n const items: string[] =\n i.length < 3 ? i : [i.slice(0, -1).join(', ') + ',', ...i.slice(-1)];\n return items.join(' and ');\n }, [pendingItems]);\n\n useEffect(() => {\n get({\n entities: dashboardEntities,\n excludeTypes: [StateNodeType.Final]\n });\n }, [get]);\n\n return {\n hasFileItems,\n hasProductItems,\n hasTrainingItems,\n hasPendingItems,\n pendingItems,\n pendingItemsText\n };\n}\n","import React, { useMemo, useRef } from 'react';\nimport { Link, Redirect, Route, useParams } from 'react-router-dom';\nimport { Box, ListItemText, Tab, Tabs } from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\nimport { Warning as WarningIcon } from '@material-ui/icons';\n\nimport ErrorView from '../../common/views/ErrorView';\nimport PageTemplate from '../../common/page-template/PageTemplate';\nimport PageTemplateNav from '../../common/page-template/PageTemplateNav';\nimport PageTemplateHeader from '../../common/page-template/PageTemplateHeader';\nimport PageTemplateDashboard from '../../common/page-template/PageTemplateDashboard';\nimport { Role } from '../../user/User.interface';\nimport { useUserContext } from '../../user/User.context';\nimport { TrainingPageContent } from '../training/TrainingPage';\nimport { AdminDashboardPageContent } from '../admin-dashboard/AdminDashboardPage';\nimport DashboardAssignedTab from './components/DashboardAssignedTab';\nimport { useDashboardPendingItems } from './Dashboard.hooks';\n\ntype PageType = 'assigned' | 'training' | 'overview';\n\nconst DashboardPage: React.FC = () => {\n const { user } = useUserContext();\n const { view } = useParams<{ view?: PageType }>();\n const scrollRef = useRef(null);\n const { hasTrainingItems, hasPendingItems } = useDashboardPendingItems();\n const noRoles: boolean = user?.roles?.length === 0;\n\n const isAdmin: boolean = useMemo(() => {\n return !!user?.roles?.some((role: Role) => {\n return role.name && ['Admin', 'SiteAdmin'].includes(role.name);\n });\n }, [user]);\n\n const allowedPages: PageType[] = useMemo(() => {\n const pages: PageType[] = ['assigned', 'training'];\n isAdmin && pages.push('overview');\n return pages;\n }, [isAdmin]);\n\n const getPageUrl = (page: PageType) => {\n return `/portal/dashboard/${page}`;\n };\n\n if (!view || !allowedPages.includes(view)) {\n return ;\n }\n return (\n \n \n

    Dashboard

    \n
    \n \n \n \n \n {isAdmin && (\n \n )}\n \n \n {noRoles ? (\n }\n />\n ) : (\n \n \n \n \n {hasTrainingItems && (\n \n \n You have pending training tasks.\n {view !== 'training' && (\n <>\n {' '}\n \n View My Training Dashboard\n \n \n )}\n \n \n )}\n\n \n \n \n \n \n \n \n \n \n \n )}\n
    \n );\n};\n\nexport default DashboardPage;\n","import { useEffect } from 'react';\n\nimport { PaginatedList } from '../../common/PaginatedList.interface';\nimport {\n Agreement,\n AgreementStatusLog,\n AgreementVersion\n} from './Agreement.interface';\nimport { useApiPost, useApiPatch, useApiGet } from '../../common/api/Api.hooks';\n\nexport function useCreateAgreement() {\n const { data, isLoading, error, post } = useApiPost('agreements');\n return { agreement: data, isLoading, error, post };\n}\n\nexport function useUpdateAgreement(id: number) {\n const { data, isLoading, error, patch } = useApiPatch(\n `agreements/${id}`\n );\n return { agreement: data, isLoading, error, patch };\n}\n\nexport function useRevertAgreement(id: number) {\n const { data, isLoading, error, post } = useApiPost(\n `agreements/${id}/revert`\n );\n return { agreement: data, isLoading, error, revert: post };\n}\n\nexport function useFindAgreements() {\n const { data, isLoading, error, get } = useApiGet>(\n 'agreements'\n );\n return { list: data, isLoading, error, get };\n}\n\nexport function useFindPublishedAgreementVersions(shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet(\n 'agreements/published-versions'\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n publishedAgreementVersions: data,\n isLoading,\n error,\n findPublishedAgreementVersions: get\n };\n}\n\nexport function useFindAgreement(id: number, shouldFetchOnMount = false) {\n const { data, isLoading, error, get } = useApiGet(\n `agreements/${id}`\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return { agreement: data, isLoading, error, get };\n}\nexport function useGetAgreementStatusLogs(\n id: number,\n shouldFetchOnMount = false\n) {\n const { data, isLoading, error, get } = useApiGet<\n PaginatedList\n >(`agreements/${id}/status-log`);\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return { agreementStatusLogs: data, isLoading, error, get };\n}\n\nexport function useFindAgreementVersions(\n agreementId: number,\n shouldFetchOnMount = false\n) {\n const { data, isLoading, error, get } = useApiGet(\n `agreements/${agreementId}/versions`\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n agreementVersions: data,\n isLoading,\n error,\n findAgreementVersions: get\n };\n}\n\nexport function useFindAgreementVersion(\n agreementId?: number,\n agreementVersionId?: number,\n shouldFetchOnMount = false\n) {\n const { data, isLoading, error, get } = useApiGet(\n `agreements/${agreementId}/versions/${agreementVersionId}`\n );\n useEffect(() => {\n if (shouldFetchOnMount) {\n get();\n }\n }, [get, shouldFetchOnMount]);\n return {\n agreementVersion: data,\n isLoading,\n error,\n findAgreementVersion: get\n };\n}\n","import React from 'react';\nimport StatusLabel from './StatusLabel';\nimport styled from 'styled-components';\n\nconst StyledStatusLabelContainer = styled.div`\n display: flex;\n .status-label {\n margin-right: 8px;\n }\n`;\n\nexport function getPublishedStatusLabel(status: string) {\n switch (status) {\n case 'draft':\n return 'Draft';\n case 'published':\n return 'Published';\n }\n}\n\nexport enum PublishStatus {\n Draft = 'draft',\n Published = 'published'\n}\n\nconst PublishStatusLabels: React.FC<{\n status: PublishStatus;\n version: number;\n}> = ({ status, version }) => {\n const statusLabel = getPublishedStatusLabel(status);\n return (\n \n {version > 1 && (\n \n )}\n {status !== PublishStatus.Published && (\n \n )}\n \n );\n};\n\nexport default PublishStatusLabels;\n","import React, { Fragment, useEffect, useRef, useState } from 'react';\n\nimport { Button } from '@material-ui/core';\n\nimport ConfirmDialog from '../../../common/dialogs/ConfirmDialog';\nimport { useRevertAgreement, useUpdateAgreement } from '../Agreement.hooks';\nimport { Agreement } from '../Agreement.interface';\nimport { PublishStatus } from '../../../common/PublishStatusLabels';\n\nexport interface AgreementStatusActionsProps {\n agreement: Agreement;\n onChange?: (agreement: Agreement) => void;\n}\n\nconst AgreementStatusActions: React.FC = ({\n agreement,\n onChange\n}) => {\n const [openRevertDialog, setOpenRevertDialog] = useState(false);\n const [openPublishDialog, setOpenPublishDialog] = useState(false);\n const { agreement: updatedAgreement, patch } = useUpdateAgreement(\n agreement.id\n );\n const { agreement: revertedAgreement, revert } = useRevertAgreement(\n agreement.id\n );\n const onChangeRef = useRef(onChange);\n useEffect(() => {\n if (updatedAgreement && onChangeRef && onChangeRef.current) {\n onChangeRef.current(updatedAgreement);\n }\n }, [updatedAgreement]);\n useEffect(() => {\n if (revertedAgreement && onChangeRef && onChangeRef.current) {\n onChangeRef.current(revertedAgreement);\n }\n }, [revertedAgreement]);\n switch (agreement.status) {\n case 'draft':\n return (\n \n {agreement.version > 1 && (\n \n setOpenRevertDialog(true)}\n >\n Revert to Previous Version\n \n {openRevertDialog && (\n {\n setOpenRevertDialog(false);\n }}\n onConfirm={() => {\n setOpenRevertDialog(false);\n revert();\n }}\n />\n )}\n \n )}\n setOpenPublishDialog(true)}\n >\n Publish\n \n {openPublishDialog && (\n {\n setOpenPublishDialog(false);\n }}\n onConfirm={() => {\n setOpenPublishDialog(false);\n patch({ status: PublishStatus.Published });\n }}\n />\n )}\n \n );\n case 'published':\n return (\n \n patch({ status: PublishStatus.Draft })}\n >\n Start New Version\n \n \n );\n default:\n return null;\n }\n};\n\nexport default AgreementStatusActions;\n","import React, { useEffect, useRef, useState } from 'react';\nimport {\n DragDropContext,\n Draggable,\n Droppable,\n DropResult\n} from 'react-beautiful-dnd';\nimport styled from 'styled-components';\n\nimport {\n Box,\n Button,\n CardActions,\n CardContent,\n CircularProgress,\n Divider,\n Grid,\n IconButton,\n InputBase,\n List,\n ListItem,\n ListItemIcon,\n ListItemProps,\n ListItemText,\n Paper\n} from '@material-ui/core';\nimport AddIcon from '@material-ui/icons/Add';\nimport ClearIcon from '@material-ui/icons/Clear';\nimport DragIndicatorIcon from '@material-ui/icons/DragIndicator';\nimport { Editor } from '@tinymce/tinymce-react';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport { useUpdateAgreement } from '../Agreement.hooks';\nimport { Agreement, AgreementSection } from '../Agreement.interface';\nimport environment from '../../../environments';\nimport { PublishStatus } from '../../../common/PublishStatusLabels';\n\nconst StyledGrid = styled(Grid)`\n flex: 1;\n .grid-flex,\n .card-flex,\n .card-content-flex {\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n .tox-tinymc {\n flex: 1;\n }\n`;\n\nconst StyledListItem = styled(ListItem)`\n background: #fff;\n border-bottom: solid 1px #ccc;\n` as React.ComponentType;\n\nconst reorder = (\n sections: AgreementSection[],\n startIndex: number,\n endIndex: number\n) => {\n const result = Array.from(sections);\n const [removed] = result.splice(startIndex, 1);\n result.splice(endIndex, 0, removed);\n return result;\n};\n\nexport interface AgreementTabEditProps {\n agreement: Agreement;\n onChange?: (agreement: Agreement) => void;\n}\n\nconst AgreementTabEdit: React.FC = ({\n agreement,\n onChange\n}) => {\n const onChangeRef = useRef(onChange);\n const [sections, setSections] = useState(\n agreement && agreement.sections && agreement.sections.length > 0\n ? agreement.sections\n : [\n {\n name: 'Untitled',\n body: ''\n }\n ]\n );\n const [selectedSectionIndex, setSelectedSectionIndex] = useState(0);\n const section = sections[selectedSectionIndex];\n const {\n agreement: updatedAgreement,\n patch,\n isLoading: isUpdating\n } = useUpdateAgreement(agreement.id);\n\n const handleDragEnd = (result: DropResult) => {\n const { source, destination } = result;\n // dropped outside the list\n if (!destination) {\n return;\n }\n const reorderedSections = reorder(\n sections,\n source.index,\n destination.index\n );\n // console.log('reorderedSections', reorderedSections);\n setSections(reorderedSections);\n };\n\n useEffect(() => {\n if (updatedAgreement && onChangeRef && onChangeRef.current) {\n onChangeRef.current(updatedAgreement);\n }\n }, [updatedAgreement]);\n\n const handleSave = () => {\n patch({ sections });\n };\n\n const isEditable = agreement.status !== PublishStatus.Published;\n\n return (\n \n \n \n Agreement Sections\n \n \n {(provided, snapshot) => (\n \n \n\n {sections.map((section, index) => (\n \n {(provided, snapshot) => (\n setSelectedSectionIndex(index)}\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n >\n \n \n \n {\n const copy = [...sections];\n copy[index].name = event.target.value;\n setSections(copy);\n }}\n />\n {sections.length > 1 && (\n {\n event.stopPropagation();\n if (\n selectedSectionIndex ===\n sections.length - 1\n ) {\n setSelectedSectionIndex(\n selectedSectionIndex - 1\n );\n }\n sections.splice(index, 1);\n setSections([...sections]);\n }}\n >\n \n \n )}\n \n )}\n \n ))}\n {provided.placeholder}\n {isEditable && (\n {\n const copy = [...sections];\n copy.push({\n name: 'Untitled',\n body: ''\n });\n setSections(copy);\n }}\n >\n \n \n \n \n \n )}\n \n )}\n \n \n \n \n \n \n Agreement Section Content\n \n {\n // console.log('onEditorChange', content);\n const copy = [...sections];\n copy[selectedSectionIndex].body = content;\n setSections(copy);\n }}\n />\n \n \n \n {!isEditable && Start a new version to edit}\n {isUpdating && (\n \n \n \n )}\n \n Save\n \n \n \n \n \n \n );\n};\n\nexport default AgreementTabEdit;\n","import { FormikValues } from 'formik';\nimport React, { useEffect, useRef, useState } from 'react';\nimport * as Yup from 'yup';\n\nimport { Card } from '@material-ui/core';\nimport GavelIcon from '@material-ui/icons/Gavel';\n\nimport AppSnackbar from '../../../common/AppSnackbar';\nimport CardContent from '../../../common/card/CardContent';\nimport CardTitle from '../../../common/card/CardTitle';\nimport InlineForm from '../../../common/inline/InlineForm';\nimport InlineFormik from '../../../common/inline/InlineFormik';\nimport InlineTextField from '../../../common/inline/InlineTextField';\nimport { useUpdateAgreement } from '../Agreement.hooks';\nimport { Agreement } from '../Agreement.interface';\n\nexport interface AgreementInfoCardProps {\n agreement: Agreement;\n onChange?: (agreement: Agreement) => void;\n}\n\nconst getInitialValues = (agreement?: Agreement) => {\n return {\n name: agreement?.name || '',\n description: agreement?.description || ''\n };\n};\n\nconst AgreementInfoCard: React.FC = ({\n agreement,\n onChange\n}) => {\n const onChangeRef = useRef(onChange); // prevent circular refresh\n const formikRef = useRef();\n const {\n agreement: updatedAgreement,\n isLoading: isUpdating,\n error: updateError,\n patch\n } = useUpdateAgreement(agreement.id);\n\n const [initialValues, setInitialValues] = useState>();\n\n // set the initial state of the form once loaded\n useEffect(() => {\n setInitialValues(getInitialValues(agreement));\n }, [agreement]);\n // notify parent when a agreement record is updated\n useEffect(() => {\n if (updatedAgreement && onChangeRef && onChangeRef.current) {\n onChangeRef.current(updatedAgreement);\n }\n }, [updatedAgreement]);\n return (\n \n \n \n Agreement Info\n \n \n (formikRef.current = formik)}\n initialValues={initialValues}\n validationSchema={Yup.object({\n name: Yup.string().required('Required')\n })}\n isSubmitting={isUpdating}\n error={updateError}\n onSubmit={(agreement: Partial) => {\n patch(agreement);\n }}\n >\n \n \n \n \n \n \n There was an error saving.\n \n \n \n );\n};\n\nexport default AgreementInfoCard;\n","import { format } from 'date-fns/esm';\nimport React, { useEffect, useRef, useState } from 'react';\nimport styled from 'styled-components';\n\nimport {\n Card,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow,\n Typography,\n Box,\n Link\n} from '@material-ui/core';\n\nimport CardContent from '../../../common/card/CardContent';\nimport StatusLabel from '../../../common/StatusLabel';\nimport { useGetAgreementStatusLogs } from '../Agreement.hooks';\nimport { Agreement, AgreementStatusLog } from '../Agreement.interface';\nimport { getPublishedStatusLabel } from '../../../common/PublishStatusLabels';\n\nconst StyledTypography = styled(Typography)`\n font-weight: 500;\n`;\n\nexport interface AgreementStatusCardProps {\n agreement: Agreement;\n}\n\nconst AgreementStatusCard: React.FC = ({\n agreement\n}) => {\n const {\n agreementStatusLogs: delta,\n isLoading,\n get\n } = useGetAgreementStatusLogs(agreement.id);\n const limit = 5;\n const [page, setPage] = useState(0);\n const agreementRef = useRef(agreement); // capturing previous agreement object\n const [agreementStatusLogs, setAgreementStatusLogs] = useState<\n AgreementStatusLog[]\n >([]);\n const statusLabel = getPublishedStatusLabel(agreement.status);\n useEffect(() => {\n if (agreement !== agreementRef.current) {\n // agreement object changed from previous; likely, status changed\n setAgreementStatusLogs([]);\n agreementRef.current = agreement;\n get({ page: 0, limit }); // fetch updated status change\n } else {\n get({ page, limit }); // get next page\n }\n }, [get, page, agreement]);\n useEffect(() => {\n if (delta && delta.data) {\n const logs = [\n ...agreementStatusLogs,\n ...delta.data.filter(\n newLog =>\n // don't insert log if it already exists; occurs when partial page load\n !agreementStatusLogs.find(log => log.id === newLog.id)\n )\n ];\n logs.sort(\n // resort the list after appending statuses\n (a, b) => new Date(b.created).getTime() - new Date(a.created).getTime()\n );\n setAgreementStatusLogs(logs);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [delta]);\n\n return (\n \n \n \n Status\n \n {statusLabel}\n \n \n \n \n \n History\n Version\n Status\n User\n \n \n \n {isLoading && (\n \n \n \n \n \n )}\n {agreementStatusLogs &&\n agreementStatusLogs.map((statusLog, index) => (\n \n \n {format(statusLog.created, 'MMM d, yyyy')}\n \n {statusLog.version}\n \n \n \n \n {statusLog.createdBy.firstName}{' '}\n {statusLog.createdBy.lastName}\n \n \n ))}\n \n
    \n
    \n {delta && delta.total > (page + 1) * limit && (\n \n setPage(page + 1)}\n >\n Load More\n \n \n )}\n
    \n );\n};\n\nexport default AgreementStatusCard;\n","import { format } from 'date-fns/esm';\nimport React, { useEffect } from 'react';\n\nimport {\n Card,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TableRow\n} from '@material-ui/core';\nimport ScheduleIcon from '@material-ui/icons/Schedule';\n\nimport CardTitle from '../../../common/card/CardTitle';\nimport { useFindAgreementVersions } from '../Agreement.hooks';\nimport { Agreement } from '../Agreement.interface';\n\nexport interface AgreementVersionCardProps {\n agreement: Agreement;\n}\n\nconst AgreementVersionCard: React.FC = ({\n agreement\n}) => {\n const {\n agreementVersions,\n isLoading,\n findAgreementVersions\n } = useFindAgreementVersions(agreement.id);\n useEffect(() => {\n findAgreementVersions(); // refresh if agreement object is updated\n }, [findAgreementVersions, agreement]);\n return (\n \n \n \n Agreement Versions\n \n \n \n \n \n Version\n Published\n Employee\n \n \n \n {isLoading && (\n \n \n \n \n \n )}\n {agreementVersions && agreementVersions.length > 0 ? (\n agreementVersions.map((agreementVersion, index) => (\n \n {agreementVersion.version}\n \n {format(agreementVersion.created, 'MMM d, yyyy')}\n \n \n {agreementVersion.createdBy.firstName}{' '}\n {agreementVersion.createdBy.lastName}\n \n \n ))\n ) : (\n \n \n No published agreement versions\n \n \n )}\n \n
    \n
    \n
    \n );\n};\n\nexport default AgreementVersionCard;\n","import React from 'react';\n\nimport { Grid } from '@material-ui/core';\n\nimport AgreementInfoCard from '../cards/AgreementInfoCard';\nimport AgreementStatusCard from '../cards/AgreementStatusCard';\nimport AgreementVersionCard from '../cards/AgreementVersionCard';\nimport { Agreement } from '../Agreement.interface';\n\nexport interface AgreementTabInfoProps {\n agreement: Agreement;\n onChange?: (agreement: Agreement) => void;\n}\n\nconst AgreementTabInfo: React.FC = ({\n agreement,\n onChange\n}) => {\n // const [agreement, setAgreement] = useState(initialAgreement);\n\n return (\n \n \n \n \n {agreement && (\n \n )}\n \n {/* \n */}\n \n \n \n \n \n {agreement && }\n \n \n {agreement && }\n \n \n \n \n );\n};\n\nexport default AgreementTabInfo;\n","import React, { useEffect, useState } from 'react';\nimport {\n Link,\n Redirect,\n Route,\n Switch,\n useHistory,\n useParams\n} from 'react-router-dom';\nimport styled from 'styled-components';\n\nimport { CircularProgress, Tab, Tabs } from '@material-ui/core';\n\nimport AppSnackbar from '../../common/AppSnackbar';\nimport PageTemplate from '../../common/page-template/PageTemplate';\nimport PageTemplateDashboard from '../../common/page-template/PageTemplateDashboard';\nimport PageTemplateHeader, {\n PageTemplateHeaderActions\n} from '../../common/page-template/PageTemplateHeader';\nimport PageTemplateNav from '../../common/page-template/PageTemplateNav';\nimport { useFindAgreement } from './Agreement.hooks';\nimport PublishStatusLabels from '../../common/PublishStatusLabels';\nimport AgreementStatusActions from './cards/AgreementStatusActions';\nimport AgreementTabEdit from './tabs/AgreementTabEdit';\nimport AgreementTabInfo from './tabs/AgreementTabInfo';\n\nconst StyledTitle = styled.div`\n display: flex;\n flex-direction: column;\n .status-label-container {\n margin-top: 5px;\n }\n`;\n\nconst getTabValue = (path: string) => {\n const array = path.split('/');\n return array[array.length - 1];\n};\n\nconst AgreementAdminDetailPage: React.FC = () => {\n const history = useHistory();\n const { agreementId } = useParams<{ agreementId?: string }>();\n const tabValue = getTabValue(history.location.pathname);\n const { agreement: loadedAgreement, isLoading, error } = useFindAgreement(\n +(agreementId || 0),\n true\n );\n const [agreement, setAgreement] = useState(loadedAgreement);\n\n useEffect(() => {\n if (loadedAgreement) {\n setAgreement(loadedAgreement);\n }\n }, [loadedAgreement]);\n if (!['info', 'edit', 'assign'].includes(tabValue)) {\n // if navigating to /portal/admin/agreement/:agreementId redirect to edit tab\n return ;\n }\n\n return (\n \n \n {isLoading && }\n \n

    {agreement?.name}

    \n {agreement && (\n \n )}\n
    \n \n {agreement && (\n setAgreement(agreement)}\n />\n )}\n \n
    \n \n \n \n \n {/* */}\n \n \n \n \n \n {agreement && (\n setAgreement(agreement)}\n />\n )}\n \n \n {agreement && (\n setAgreement(agreement)}\n />\n )}\n \n \n \n \n There was an error getting data from the server. Please check your\n internect connection.\n \n
    \n );\n};\n\nexport default AgreementAdminDetailPage;\n","import React, { useState, useEffect } from 'react';\nimport styled from 'styled-components';\nimport { Paper, IconButton, InputBase } from '@material-ui/core';\nimport SearchIcon from '@material-ui/icons/Search';\nimport { useDebounce } from './Debounce.hooks';\n\nconst StyledSearchBox = styled.div`\n flex: 1;\n display: flex;\n justify-content: center;\n margin: 0 20px;\n .search {\n flex: 1;\n display: flex;\n padding: 5px;\n max-width: 512px;\n .MuiInputBase-root {\n width: 100%;\n }\n }\n`;\n\nexport interface SearchBoxProps {\n value?: string | null;\n children?: React.ReactNode;\n onSearch?: (search: string) => void;\n}\n\nconst SearchBox: React.FC = ({ value, children, onSearch }) => {\n const [search, setSearch] = useState(value || '');\n const debouncedSearch = useDebounce(search, 300);\n\n // update search to latest value\n useEffect(() => setSearch(value || ''), [value]);\n\n useEffect(() => {\n // only update when debounced value changed\n if (value !== debouncedSearch) {\n onSearch?.(debouncedSearch);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [debouncedSearch]);\n\n return (\n \n \n \n \n \n ) => {\n setSearch(event.target.value);\n }}\n onKeyPress={(event: any) => {\n if (event.key === 'Enter') {\n onSearch?.(search);\n }\n }}\n />\n \n {children}\n \n );\n};\n\nexport default SearchBox;\n","import { Form, Formik, FormikValues } from 'formik';\nimport React, { useEffect, useRef } from 'react';\nimport * as Yup from 'yup';\n\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle\n} from '@material-ui/core';\nimport Alert from '@material-ui/lab/Alert';\n\nimport FormikButton from '../../../common/formik/FormikButton';\nimport FormikGrid from '../../../common/formik/FormikGrid';\nimport FormikTextField from '../../../common/formik/FormikTextField';\nimport { useCreateAgreement } from '../Agreement.hooks';\nimport { Agreement, AgreementCreateDto } from '../Agreement.interface';\n\nexport interface AgreementCreateDialogProps {\n open: boolean;\n onCancel?: () => void;\n onCreated?: (agreement: Agreement) => void;\n}\n\nconst AgreementCreateDialog: React.FC = ({\n open,\n onCancel,\n onCreated\n}) => {\n const formikRef = useRef();\n const { agreement, isLoading, error, post } = useCreateAgreement();\n useEffect(() => {\n if (!isLoading) {\n if (onCreated && agreement) {\n onCreated(agreement);\n }\n if (formikRef && formikRef.current) {\n formikRef.current.setSubmitting(false);\n }\n }\n }, [agreement, isLoading, onCreated]);\n return (\n \n (formikRef.current = formik)}\n initialValues={{ name: '' }}\n validationSchema={Yup.object({\n name: Yup.string().required('Required')\n })}\n onSubmit={(agreementDto: AgreementCreateDto) => {\n post(agreementDto);\n }}\n >\n
    \n New Agreement\n \n \n What is the name of the agreement?\n \n \n \n \n {error && (\n \n Error occurred. Please check your internet connection and try\n again.\n \n )}\n \n \n \n Create\n \n
    \n \n
    \n );\n};\n\nexport default AgreementCreateDialog;\n","import { format } from 'date-fns';\nimport React, { useEffect, useState } from 'react';\nimport { useHistory } from 'react-router-dom';\nimport {\n NumberParam,\n StringParam,\n useQueryParam,\n withDefault\n} from 'use-query-params';\n\nimport {\n Button,\n LinearProgress,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TablePagination,\n TableRow,\n TableSortLabel\n} from '@material-ui/core';\n\nimport AppSnackbar from '../../common/AppSnackbar';\nimport PageTemplate from '../../common/page-template/PageTemplate';\nimport PageTemplateCardOver from '../../common/page-template/PageTemplateCardOver';\nimport PageTempalteHeader, {\n PageTemplateHeaderActions\n} from '../../common/page-template/PageTemplateHeader';\nimport SearchBox from '../../common/SearchBox';\nimport { useFindAgreements } from './Agreement.hooks';\nimport PublishStatusLabels from '../../common/PublishStatusLabels';\nimport AgreementCreateDialog from './dialogs/AgreementCreateDialog';\n\nconst AgreementAdminListPage: React.FC = () => {\n const history = useHistory();\n const [page, setPage] = useQueryParam('page', withDefault(NumberParam, 0));\n const [limit, setLimit] = useQueryParam(\n 'limit',\n withDefault(NumberParam, 100)\n );\n const [order, setOrder] = useQueryParam('order', StringParam);\n const [search, setSearch] = useQueryParam('search', StringParam);\n const [orderDirection, setOrderDirection] = useQueryParam(\n 'direction',\n StringParam\n );\n const [isOpenDialog, setIsOpenDialog] = useState(false);\n const { list, isLoading, error, get } = useFindAgreements();\n useEffect(() => {\n const options = {} as any;\n const params = {\n page: Number(page),\n limit: Number(limit)\n // order: String(order || ''),\n } as any;\n if (order) {\n options.order = { [order]: orderDirection || 'ASC' };\n }\n if (search) {\n params.search = search;\n }\n params.options = JSON.stringify(options);\n get(params);\n }, [get, page, limit, order, orderDirection, search]);\n\n const handleSort = (column: string) => {\n setOrder(column);\n setOrderDirection(orderDirection === 'ASC' ? 'DESC' : 'ASC');\n };\n\n const getSortDirection = (column: string): 'asc' | 'desc' => {\n return order === column && orderDirection === 'DESC' ? 'desc' : 'asc';\n };\n\n const handleChangePage = (event: unknown, newPage: number) => {\n setPage(newPage);\n };\n\n const handleChangeRowPerPage = (\n event: React.ChangeEvent\n ) => {\n setLimit(+event.target.value);\n setPage(0);\n };\n\n const handleSearch = (value: string) => {\n setSearch(value);\n };\n\n return (\n \n \n

    Agreements

    \n \n \n setIsOpenDialog(true)}\n >\n Add New Agreement\n \n setIsOpenDialog(false)}\n onCreated={agreement =>\n history.push(`./agreements/${agreement.id}`)\n }\n />\n \n
    \n \n \n \n \n \n \n handleSort('name')}\n >\n Name\n \n \n {/* \n handleSort('version')}\n >\n Version\n \n */}\n \n handleSort('status')}\n >\n Status\n \n \n \n handleSort('modified')}\n >\n Modified\n \n \n \n handleSort('modifiedBy')}\n >\n Modified By\n \n \n \n \n \n {isLoading && (\n \n \n \n \n \n )}\n {list &&\n list.data.map(agreement => (\n history.push(`./agreements/${agreement.id}`)}\n >\n {agreement.name}\n {/* {agreement.version} */}\n \n \n \n \n {agreement.modified &&\n format(agreement.modified, 'MMM d, yyyy')}\n \n \n {agreement.modifiedBy?.firstName}{' '}\n {agreement.modifiedBy?.lastName}\n \n \n ))}\n \n
    \n
    \n {list && (\n \n )}\n \n There was an error getting the list from the server.\n \n
    \n
    \n );\n};\n\nexport default AgreementAdminListPage;\n","import React, {\n Fragment,\n useCallback,\n useEffect,\n useState,\n RefObject\n} from 'react';\nimport styled from 'styled-components';\n\nconst StyledSplitPane = styled.div`\n display: flex;\n overflow: hidden;\n flex: 1;\n &.vertical {\n flex-direction: column;\n }\n`;\n\nexport interface SplitDragState {\n element: HTMLElement | null;\n position: number;\n}\n\nexport interface SplitPaneProps extends React.HTMLAttributes {\n ref?: RefObject;\n primary?: 'next' | 'previous';\n direction?: 'horizontal' | 'vertical';\n width?: number | string;\n}\n\nconst SplitPane: React.FC = ({\n ref,\n primary = 'previous',\n direction = 'horizontal',\n children,\n className = '',\n width,\n ...props\n}) => {\n const [dragState, setDragState] = useState();\n const isPrevious: boolean = primary === 'previous';\n\n const handleStartDrag = useCallback(\n (element: HTMLElement, x: number, y: number) => {\n if (element.parentElement) {\n // disable pointer events on panes being resized (prevents iframes taking\n // over mouse events)\n toggleChildPointerEvents(element.parentElement);\n }\n setDragState({\n position: direction === 'horizontal' ? x : y,\n element: (isPrevious\n ? element.previousSibling\n : element.nextSibling) as HTMLElement\n });\n },\n [direction, isPrevious]\n );\n\n const handleDrag = useCallback(\n (x: number, y: number) => {\n if (!dragState?.element) {\n return;\n }\n\n const multiplier: number = isPrevious ? 1 : -1;\n const position: number = direction === 'horizontal' ? x : y;\n const styleSize = direction === 'horizontal' ? 'width' : 'height';\n const rect = dragState.element.getBoundingClientRect();\n const diff: number = (position - dragState.position) * multiplier;\n const size: number = rect[styleSize] + diff;\n\n dragState.element.style[styleSize] = `${size}px`;\n dragState.element.style.flex = '0 0 auto';\n setDragState({ element: dragState.element, position });\n },\n [direction, dragState, isPrevious]\n );\n\n const pauseEvent = (event: Event) => {\n // prevent text selection while dragging\n event.stopPropagation?.();\n event.preventDefault?.();\n event.cancelBubble = true;\n event.returnValue = false;\n };\n\n const handleMouseMove = useCallback(\n (event: MouseEvent) => {\n pauseEvent(event);\n handleDrag(event.clientX, event.clientY);\n },\n [handleDrag]\n );\n\n const handleTouchMove = useCallback(\n (event: TouchEvent) => {\n pauseEvent(event);\n handleDrag(event.touches[0].clientX, event.touches[0].clientY);\n },\n [handleDrag]\n );\n\n const handleMouseUp = useCallback(() => {\n if (dragState?.element?.parentElement) {\n toggleChildPointerEvents(dragState.element.parentElement);\n }\n setDragState(undefined);\n }, [dragState]);\n\n useEffect(() => {\n window.addEventListener('mouseup', handleMouseUp);\n window.addEventListener('mousemove', handleMouseMove);\n window.addEventListener('touchmove', handleTouchMove);\n return () => {\n window.removeEventListener('mouseup', handleMouseUp);\n window.removeEventListener('mousemove', handleMouseMove);\n window.removeEventListener('touchmove', handleTouchMove);\n };\n }, [handleMouseMove, handleMouseUp, handleTouchMove]);\n\n // remove null children\n const childComponents = React.Children.toArray(children).filter(c => c);\n return (\n \n {childComponents.map((child, index) => (\n \n {child}\n {index < childComponents.length - 1 && (\n {\n handleStartDrag(\n event.target as HTMLElement,\n event.clientX,\n event.clientY\n );\n }}\n onTouchStart={event => {\n handleStartDrag(\n event.target as HTMLElement,\n event.touches[0].clientX,\n event.touches[0].clientY\n );\n }}\n />\n )}\n \n ))}\n \n );\n};\n\nconst StyledPane = styled.div`\n flex: 1;\n &.flex {\n }\n`;\n\nexport interface PaneProps extends React.HTMLAttributes {\n flex?: boolean;\n width?: number;\n innerRef?: React.MutableRefObject;\n}\n\nexport const Pane: React.FC = ({\n children,\n flex,\n width,\n innerRef,\n className = '',\n ...props\n}) => {\n return (\n \n {children}\n \n );\n};\n\nconst borderStyle: string = '5px solid rgba(255, 255, 255, 0)';\nconst borderHoverStyle: string = '5px solid rgba(255, 255, 255, 0.15)';\n\nconst StyledSplitResizer = styled.div`\n position: relative;\n background: #555;\n box-sizing: border-box;\n background-clip: padding-box !important;\n transition: border 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);\n\n &.horizontal {\n width: 11px;\n margin: 0 -5px;\n cursor: col-resize;\n border-left: ${borderStyle};\n border-right: ${borderStyle};\n &:hover {\n border-left: ${borderHoverStyle};\n border-right: ${borderHoverStyle};\n }\n }\n\n &.vertical {\n height: 11px;\n margin: -5px 0;\n cursor: row-resize;\n border-top: ${borderStyle};\n border-bottom: ${borderStyle};\n &:hover {\n border-top: ${borderHoverStyle};\n border-bottom: ${borderHoverStyle};\n }\n }\n`;\n\nexport interface SplitResizerProps {\n direction?: 'horizontal' | 'vertical';\n onMouseDown?: (event: React.MouseEvent) => void;\n onTouchStart?: (event: React.TouchEvent) => void;\n}\n\nexport const SplitResizer: React.FC = ({\n direction,\n onMouseDown,\n onTouchStart\n}) => {\n return (\n \n );\n};\n\nexport default SplitPane;\n\n// Helper functions\n\nfunction toggleChildPointerEvents(element: HTMLElement) {\n Array.from(element.children).forEach(e => {\n const element = e as HTMLElement;\n if (!element.className.includes('resizer')) {\n if (element.style.pointerEvents === 'none') {\n element.style.pointerEvents = 'auto';\n } else {\n element.style.pointerEvents = 'none';\n }\n }\n });\n}\n","export const auditElements = [\n {\n type: 'section',\n title: '1.1 Quality System Framework',\n elements: [\n {\n type: 'section',\n title: '1.1.1 Written Quality Commitment',\n elements: [\n {\n type: 'control',\n control:\n '1.1.1.1. Does the supplier have a formal written quality policy statement endorsed by senior management?',\n answer: 'Yes',\n comment:\n '

    AWS is responsible for ensuring that good commercial IT practices are utilized in the design, development and operation of AWS Products. AWS considers maintaining customer trust and confidence of the utmost importance and therefore defines the quality attributes of AWS Products in terms of Availability, Integrity and Confidentiality. The AWS quality system addresses the elements necessary for AWS to implement quality management including the organizational structure, responsibilities, procedures, processes, and resources. AWS has established a quality management system which meets or exceeds the best practice guidelines established by the International Organization for Standardization (ISO). The quality management system applies to the development and operations of AWS Products, including the AWS Services, AWS Infrastructure, and assets which support the development and operations of AWS Services. The key standards applicable to the quality management system include ISO 9001 ISO 27001, ISO 27017 and ISO 27018.

    The AWS planning process defines service requirements and requirements for projects and contracts, and also ensures customer needs and expectations are met or exceeded. Planning is achieved through a combination of business and service planning, project teams, quality improvement plans, review of service-related metrics and documentation, internal and supplier audits, and employee training. The AWS quality system is documented to ensure that planning is consistent with all other requirements. AWS’s risk management and assessment approach defines the periodic process of maintaining and continuously improving the quality management system. Through the use of reviews, evaluations, and risk management techniques, the objectives related to information security and quality are met.

    Refer to the following AWS Audit Reports for additional details: ISO 27001, ISO 27017, ISO 27018, SOC 2 CONFIDENTIALITY

    ',\n isLoading: true,\n elements: [\n {\n type: 'info',\n title: 'FDA 21 CFR Sec. 820.20 Management Responsibility',\n comment:\n '(a) Quality policy. Management with executive responsibility shall establish its policy and objectives for, and commitment to, quality. Management with executive responsibility shall ensure that the quality policy is understood, implemented, and maintained at all levels of the organization.',\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=820&showFR=1&subpartNode=21:8.0.1.1.12.2'\n }\n ]\n },\n {\n type: 'info',\n title: 'FDA 21 CFR Sec. 820.20 Management Representative',\n comment:\n '

    Management with executive responsibility shall appoint, and document such appointment of, a member of management who, irrespective of other responsibilities, shall have established authority over and responsibility for:

    1. Ensuring that quality system requirements are effectively established and effectively maintained in accordance with this part; and
    2. Reporting on the performance of the quality system to management with executive responsibility for review.
    ',\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=820&showFR=1&subpartNode=21:8.0.1.1.12.2'\n }\n ]\n }\n ]\n },\n {\n type: 'control',\n control:\n '1.1.1.2. Is the quality policy communicated and maintained throughout the organization (new & existing employees)?',\n answer: 'Yes',\n comment:\n \"

    The AWS Leadership Team is responsible for ensuring an effective management system is established, maintained and communicated throughout the organization. The AWS Leadership Team demonstrates a commitment to quality by establishing and maintaining a systematic approach to defining and satisfying quality objectives, reviewing resourcing needs, conducting management reviews, and reporting performance of the management system. The quality objectives are demonstrated through the continual improvement efforts to meet the requirements set by various accreditations.

    The AWS Leadership Team ensures that resources, infrastructure, and processes are identified and assigned to appropriate tasks as needed to execute the requirements of the management system. Each functional task is assigned to employees whose responsibilities are summarized and documented in job descriptions. Job descriptions establish the requirements of the task to be performed, as well as the education and skill requirements.

    Additionally, AWS maintains an information security management system policy which is reviewed, updated, approved and published at least annually or more frequently if a major change should occur.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, SOC 2 CONFIDENTIALITY

    Upon termination, Human Resources ensures that a formal checklist, which includes steps for access removal and collection of assets, is completed by HR or the terminated employee's manager.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, SOC 2 CONFIDENTIALITY, SOC 2

    \",\n isLoading: true,\n elements: [\n {\n type: 'info',\n title: 'FDA 21 CFR Sec. 820.20 Organization',\n comment:\n 'Each manufacturer shall establish and maintain an adequate organizational structure to ensure that devices are designed and produced in accordance with the requirements of this part.',\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=820&showFR=1&subpartNode=21:8.0.1.1.12.2'\n }\n ]\n }\n ]\n },\n {\n type: 'control',\n control:\n '1.1.1.3. Does the policy express the objectives for quality and commitment to quality?',\n answer: 'Yes',\n comment:\n '

    AWS is responsible for ensuring that good commercial IT practices are utilized in the design, development and operation of AWS Products. AWS considers maintaining customer trust and confidence of the utmost importance and therefore defines the quality attributes of AWS Products in terms of Availability, Integrity and Confidentiality. The AWS quality system addresses the elements necessary for AWS to implement quality management including the organizational structure, responsibilities, procedures, processes, and resources. AWS has established a quality management system which meets or exceeds the best practice guidelines established by the International Organization for Standardization (ISO). The quality management system applies to the development and operations of AWS Products, including the AWS Services, AWS Infrastructure, and assets which support the development and operations of AWS Services. The key standards applicable to the quality management system include ISO 9001 ISO 27001, ISO 27017 and ISO 27018.

    The AWS planning process defines service requirements and requirements for projects and contracts, and also ensures customer needs and expectations are met or exceeded. Planning is achieved through a combination of business and service planning, project teams, quality improvement plans, review of service-related metrics and documentation, internal and supplier audits, and employee training. The AWS quality system is documented to ensure that planning is consistent with all other requirements. AWS’s risk management and assessment approach defines the periodic process of maintaining and continuously improving the quality management system. Through the use of reviews, evaluations, and risk management techniques, the objectives related to information security and quality are met.

    Refer to the following AWS Audit Reports for additional details: ISO 27001, ISO 27017, ISO 27018, SOC 2 CONFIDENTIALITY

    ',\n isLoading: true\n }\n ]\n },\n {\n type: 'section',\n title: '1.1.2 Organizational Structure (Roles and Responsibilities)',\n elements: [\n {\n type: 'control',\n control: '1.1.2.1. Is there a defined quality system?',\n answer: 'Yes',\n comment:\n '

    AWS is responsible for ensuring that good commercial IT practices are utilized in the design, development and operation of AWS Products. AWS considers maintaining customer trust and confidence of the utmost importance and therefore defines the quality attributes of AWS Products in terms of Availability, Integrity and Confidentiality. The AWS quality system addresses the elements necessary for AWS to implement quality management including the organizational structure, responsibilities, procedures, processes, and resources. AWS has established a quality management system which meets or exceeds the best practice guidelines established by the International Organization for Standardization (ISO). The quality management system applies to the development and operations of AWS Products, including the AWS Services, AWS Infrastructure, and assets which support the development and operations of AWS Services. The key standards applicable to the quality management system include ISO 9001 ISO 27001, ISO 27017 and ISO 27018.

    The AWS planning process defines service requirements and requirements for projects and contracts, and also ensures customer needs and expectations are met or exceeded. Planning is achieved through a combination of business and service planning, project teams, quality improvement plans, review of service-related metrics and documentation, internal and supplier audits, and employee training. The AWS quality system is documented to ensure that planning is consistent with all other requirements. AWS’s risk management and assessment approach defines the periodic process of maintaining and continuously improving the quality management system. Through the use of reviews, evaluations, and risk management techniques, the objectives related to information security and quality are met.

    Refer to the following AWS Audit Reports for additional details: ISO 27001, ISO 27017, ISO 27018, SOC 2 CONFIDENTIALITY

    ',\n isLoading: true,\n elements: [\n {\n type: 'info',\n title: 'FDA 21 CFR Part 820 Guidance',\n comment:\n \"The quality systems for FDA-regulated products (food, drugs, biologics, and devices) are known as current good manufacturing practices (CGMP's). CGMP requirements for devices in part 820 (21 CFR part 820) were first authorized by section 520(f) of the Federal Food, Drug, and Cosmetic Act (the act).\",\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/PostmarketRequirements/QualitySystemsRegulations/default.htm'\n }\n ]\n }\n ]\n },\n {\n type: 'control',\n control:\n '1.1.2.2. Does the system define organizational structure?',\n answer: 'Yes',\n comment:\n '

    SOC 2: The entity has defined organizational structures, reporting lines, authorities, and responsibilities for the design, development, implementation, operation, maintenance, and monitoring of the system enabling it to meet its commitments and system requirements as they relate to security and availability.

    AWSCA-1.1: The AWS organization has defined structures, reporting lines with assigned authority and responsibilities to appropriately meet business requirements, including an information security function.

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.2.3. Does the system define the responsibilities and functions of key personnel?',\n answer: 'Yes',\n comment:\n '

    The AWS Leadership Team is responsible for ensuring an effective management system is established, maintained and communicated throughout the organization. The AWS Leadership Team demonstrates a commitment to quality by establishing and maintaining a systematic approach to defining and satisfying quality objectives, reviewing resourcing needs, conducting management reviews, and reporting performance of the management system. The quality objectives are demonstrated through the continual improvement efforts to meet the requirements set by various accreditations.

    The AWS Leadership Team ensures that resources, infrastructure, and processes are identified and assigned to appropriate tasks as needed to execute the requirements of the management system. Each functional task is assigned to employees whose responsibilities are summarized and documented in job descriptions. Job descriptions establish the requirements of the task to be performed, as well as the education and skill requirements.

    Additionally, AWS maintains an information security management system policy which is reviewed, updated, approved and published at least annually or more frequently if a major change should occur.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, SOC 2 CONFIDENTIALITY

    ',\n isLoading: true\n }\n ]\n },\n {\n type: 'section',\n title: '1.1.3 Procedures',\n elements: [\n {\n type: 'control',\n control:\n '1.1.3.1. Does the quality system endorse the development of procedures to define work activities?',\n answer: 'Yes',\n comment:\n '

    AWS is responsible for ensuring that good commercial IT practices are utilized in the design, development and operation of AWS Products. AWS considers maintaining customer trust and confidence of the utmost importance and therefore defines the quality attributes of AWS Products in terms of Availability, Integrity and Confidentiality. The AWS quality system addresses the elements necessary for AWS to implement quality management including the organizational structure, responsibilities, procedures, processes, and resources. AWS has established a quality management system which meets or exceeds the best practice guidelines established by the International Organization for Standardization (ISO). The quality management system applies to the development and operations of AWS Products, including the AWS Services, AWS Infrastructure, and assets which support the development and operations of AWS Services. The key standards applicable to the quality management system include ISO 9001 ISO 27001, ISO 27017 and ISO 27018.

    The AWS planning process defines service requirements and requirements for projects and contracts, and also ensures customer needs and expectations are met or exceeded. Planning is achieved through a combination of business and service planning, project teams, quality improvement plans, review of service-related metrics and documentation, internal and supplier audits, and employee training. The AWS quality system is documented to ensure that planning is consistent with all other requirements. AWS’s risk management and assessment approach defines the periodic process of maintaining and continuously improving the quality management system. Through the use of reviews, evaluations, and risk management techniques, the objectives related to information security and quality are met.

    Refer to the following AWS Audit Reports for additional details: ISO 27001, ISO 27017, ISO 27018, SOC 2 CONFIDENTIALITY

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.3.2. Does the quality system enforce the use of procedures?',\n answer: 'Yes',\n comment:\n '

    AWS is responsible for ensuring that good commercial IT practices are utilized in the design, development and operation of AWS Products. AWS considers maintaining customer trust and confidence of the utmost importance and therefore defines the quality attributes of AWS Products in terms of Availability, Integrity and Confidentiality. The AWS quality system addresses the elements necessary for AWS to implement quality management including the organizational structure, responsibilities, procedures, processes, and resources. AWS has established a quality management system which meets or exceeds the best practice guidelines established by the International Organization for Standardization (ISO). The quality management system applies to the development and operations of AWS Products, including the AWS Services, AWS Infrastructure, and assets which support the development and operations of AWS Services. The key standards applicable to the quality management system include ISO 9001 ISO 27001, ISO 27017 and ISO 27018.

    The AWS planning process defines service requirements and requirements for projects and contracts, and also ensures customer needs and expectations are met or exceeded. Planning is achieved through a combination of business and service planning, project teams, quality improvement plans, review of service-related metrics and documentation, internal and supplier audits, and employee training. The AWS quality system is documented to ensure that planning is consistent with all other requirements. AWS’s risk management and assessment approach defines the periodic process of maintaining and continuously improving the quality management system. Through the use of reviews, evaluations, and risk management techniques, the objectives related to information security and quality are met.

    Refer to the following AWS Audit Reports for additional details: ISO 27001, ISO 27017, ISO 27018, SOC 2 CONFIDENTIALITY

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.3.3. Does the quality system define responsibilities for developing procedures?',\n answer: 'Yes',\n comment:\n '

    SOC 2: The entity has defined organizational structures, reporting lines, authorities, and responsibilities for the design, development, implementation, operation, maintenance, and monitoring of the system enabling it to meet its commitments and system requirements as they relate to security and availability.

    AWSCA-1.1: The AWS organization has defined structures, reporting lines with assigned authority and responsibilities to appropriately meet business requirements, including an information security function.

    ',\n isLoading: true\n }\n ]\n },\n {\n type: 'section',\n title: '1.1.4 Procedure management',\n elements: [\n {\n type: 'control',\n control:\n '1.1.4.1. Are procedures reviewed and approved by designated authority?',\n answer: 'Yes',\n comment:\n '

    AWS has established and maintains company-wide policy that defines roles, responsibilities and classifications for managing changes to the production environment. Changes to AWS services and features follow secure software development practices, which include a security risk review prior to launch.

    AWS developers that require access to production environments must explicitly request access through the AWS access management system, have the access reviewed and approved by the appropriate owner, and upon approval obtain authentication. AWS service teams maintain service specific change management standards that inherit and build on the AWS Change Management guidelines.

    AWS applies a systematic approach to managing change to ensure that all changes to a production environment are reviewed, tested, and approved. The AWS Change Management approach requires that the following steps be complete before a change is deployed to the production environment:

    1. Document and communicate the change via the appropriate AWS change management tool.
    2. Plan implementation of the change and rollback procedures to minimize disruption.
    3. Test the change in a logically segregated, non-production environment.
    4. Complete a peer-review of the change with a focus on business impact and technical rigor. The review should include a code review.
    5. Attain approval for the change by an authorized individual.

    In order to validate that changes follow the standard change management procedures, all changes to the AWS production environment are reviewed on at least a monthly. An audit trail of the changes is maintained for a least a year.

    Emergency changes follow the AWS incident response procedures. Exceptions to the change management processes are documented and escalated to AWS management.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP, SOC 2 CONFIDENTIALITY, SOC 1, SOC 2

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.4.2. Are measures in place to ensure that procedures reflect current work practices?',\n answer: 'Yes',\n comment:\n '

    AWS Service teams create administrator documentation for their services and store the documents in internal AWS document repositories. Using these documents, teams provide initial training to new team members that covers their job duties, on-call responsibilities, service specific monitoring metrics and alarms, along with the intricacies of the service they are supporting. Once trained, service team members can assume on-call duties and be paged into an engagement as a resolver. In addition to the documentation stored in the repository, AWS also uses Engagement Drills and GameDay Exercises to train coordinators and Service Teams in their roles and responsibilities.

    Refer to the following AWS Audit Reports for additional details: SOC 1, SOC 2, PCI 3.2, ISO 27001, ISO 27017, ISO 27018, FEDRAMP MOD, IRAP

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.4.3. Are procedures available to personnel responsible for performing the work?',\n answer: 'Yes',\n comment:\n '

    AWS Service teams create administrator documentation for their services and store the documents in internal AWS document repositories. Using these documents, teams provide initial training to new team members that covers their job duties, on-call responsibilities, service specific monitoring metrics and alarms, along with the intricacies of the service they are supporting. Once trained, service team members can assume on-call duties and be paged into an engagement as a resolver. In addition to the documentation stored in the repository, AWS also uses Engagement Drills and GameDay Exercises to train coordinators and Service Teams in their roles and responsibilities.

    Refer to the following AWS Audit Reports for additional details: SOC 1, SOC 2, PCI 3.2, ISO 27001, ISO 27017, ISO 27018, FEDRAMP MOD, IRAP

    ',\n isLoading: true,\n elements: [\n {\n type: 'info',\n title: 'FDA 21 CFR Sec. 820.25 Personnel',\n comment:\n 'Each manufacturer shall have sufficient personnel with the necessary education, background, training, and experience to assure that all activities required by this part are correctly performed.',\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=820&showFR=1&subpartNode=21:8.0.1.1.12.2'\n }\n ]\n },\n {\n type: 'info',\n title: 'FDA 21 CFR Sec. 820.25 Training',\n comment:\n '

    Each manufacturer shall establish procedures for identifying training needs and ensure that all personnel are trained to adequately perform their assigned responsibilities. Training shall be documented.

    1. As part of their training, personnel shall be made aware of device defects which may occur from the improper performance of their specific jobs.
    2. Personnel who perform verification and validation activities shall be made aware of defects and errors that may be encountered as part of their job functions.
    ',\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=820&showFR=1&subpartNode=21:8.0.1.1.12.2'\n }\n ]\n }\n ]\n },\n {\n type: 'control',\n control:\n '1.1.4.4. Are methods in place to ensure that changes to procedures are communicated to personnel responsible for performing the work?',\n answer: 'Yes',\n comment:\n '

    AWS has established and maintains company-wide policy that defines roles, responsibilities and classifications for managing changes to the production environment. Changes to AWS services and features follow secure software development practices, which include a security risk review prior to launch.

    AWS developers that require access to production environments must explicitly request access through the AWS access management system, have the access reviewed and approved by the appropriate owner, and upon approval obtain authentication. AWS service teams maintain service specific change management standards that inherit and build on the AWS Change Management guidelines.

    AWS applies a systematic approach to managing change to ensure that all changes to a production environment are reviewed, tested, and approved. The AWS Change Management approach requires that the following steps be complete before a change is deployed to the production environment:

    1. Document and communicate the change via the appropriate AWS change management tool.
    2. Plan implementation of the change and rollback procedures to minimize disruption.
    3. Test the change in a logically segregated, non-production environment.
    4. Complete a peer-review of the change with a focus on business impact and technical rigor. The review should include a code review.
    5. Attain approval for the change by an authorized individual.

    In order to validate that changes follow the standard change management procedures, all changes to the AWS production environment are reviewed on at least a monthly. An audit trail of the changes is maintained for a least a year.

    Emergency changes follow the AWS incident response procedures. Exceptions to the change management processes are documented and escalated to AWS management.

    Refer to the following AWS Audit Reports for additional details: SOC 1, SOC 2, PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP

    ',\n isLoading: true,\n elements: [\n {\n type: 'info',\n title: 'FDA 21 CFR Sec. 820.25 Personnel',\n comment:\n 'Each manufacturer shall have sufficient personnel with the necessary education, background, training, and experience to assure that all activities required by this part are correctly performed.',\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=820&showFR=1&subpartNode=21:8.0.1.1.12.2'\n }\n ]\n },\n {\n type: 'info',\n title: 'FDA 21 CFR Sec. 820.25 Training',\n comment:\n '

    Each manufacturer shall establish procedures for identifying training needs and ensure that all personnel are trained to adequately perform their assigned responsibilities. Training shall be documented.

    1. As part of their training, personnel shall be made aware of device defects which may occur from the improper performance of their specific jobs.
    2. Personnel who perform verification and validation activities shall be made aware of defects and errors that may be encountered as part of their job functions.
    ',\n links: [\n {\n label: 'Learn more',\n src:\n 'https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/CFRSearch.cfm?CFRPart=820&showFR=1&subpartNode=21:8.0.1.1.12.2'\n }\n ]\n }\n ]\n }\n ]\n },\n {\n type: 'section',\n title: '1.1.5 Internal Audits and Inspections',\n elements: [\n {\n type: 'control',\n control:\n '1.1.5.1. Does the quality system provide for internal audits against quality system requirements?',\n answer: 'Yes',\n comment:\n '

    AWS has established a formal audit program that includes continual, independent internal and external assessments to validate the implementation and operating effectiveness of the AWS control environment.

    Internal and external audits are planned and performed according to the documented audit scheduled to review the continued performance of AWS against standards-based criteria and to identify general improvement opportunities. Standards-based criteria includes but is not limited to the ISO/IEC 27001, Federal Risk and Authorization Management Program (FedRAMP), the American Institute of Certified Public Accountants (AICPA): AT 801 (formerly Statement on Standards for Attestation Engagements [SSAE] 16), and the International Standards for Assurance Engagements No.3402 (ISAE 3402) professional standards.

    Compliance reports from these assessments are made available to customers to enable them to evaluate AWS. The AWS Compliance reports identify the scope of AWS services and regions assessed, as well the assessor’s attestation of compliance. A vendor or supplier evaluation can be performed by leveraging these reports and certifications.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP, SOC 2 CONFIDENTIALITY, SOC 2

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.5.2. Do internal audits address all areas of the supplier’s quality system?',\n answer: 'Yes',\n comment:\n '

    AWS has established a formal audit program that includes continual, independent internal and external assessments to validate the implementation and operating effectiveness of the AWS control environment.

    Internal and external audits are planned and performed according to the documented audit scheduled to review the continued performance of AWS against standards-based criteria and to identify general improvement opportunities. Standards-based criteria includes but is not limited to the ISO/IEC 27001, Federal Risk and Authorization Management Program (FedRAMP), the American Institute of Certified Public Accountants (AICPA): AT 801 (formerly Statement on Standards for Attestation Engagements [SSAE] 16), and the International Standards for Assurance Engagements No.3402 (ISAE 3402) professional standards.

    Compliance reports from these assessments are made available to customers to enable them to evaluate AWS. The AWS Compliance reports identify the scope of AWS services and regions assessed, as well the assessor’s attestation of compliance. A vendor or supplier evaluation can be performed by leveraging these reports and certifications.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP, SOC 2 CONFIDENTIALITY, SOC 2

    ',\n isLoading: true\n },\n {\n type: 'control',\n control: '1.1.5.3. Do audits verify compliance to procedures?',\n answer: 'Yes',\n comment:\n '

    AWS has established a formal audit program that includes continual, independent internal and external assessments to validate the implementation and operating effectiveness of the AWS control environment.

    Internal and external audits are planned and performed according to the documented audit scheduled to review the continued performance of AWS against standards-based criteria and to identify general improvement opportunities. Standards-based criteria includes but is not limited to the ISO/IEC 27001, Federal Risk and Authorization Management Program (FedRAMP), the American Institute of Certified Public Accountants (AICPA): AT 801 (formerly Statement on Standards for Attestation Engagements [SSAE] 16), and the International Standards for Assurance Engagements No.3402 (ISAE 3402) professional standards.

    Compliance reports from these assessments are made available to customers to enable them to evaluate AWS. The AWS Compliance reports identify the scope of AWS services and regions assessed, as well the assessor’s attestation of compliance. A vendor or supplier evaluation can be performed by leveraging these reports and certifications.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP, SOC 2 CONFIDENTIALITY, SOC 2

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.5.4. Are audits of the quality system periodically scheduled?',\n answer: 'Yes',\n comment:\n '

    AWS has established a formal audit program that includes continual, independent internal and external assessments to validate the implementation and operating effectiveness of the AWS control environment.

    Internal and external audits are planned and performed according to the documented audit scheduled to review the continued performance of AWS against standards-based criteria and to identify general improvement opportunities. Standards-based criteria includes but is not limited to the ISO/IEC 27001, Federal Risk and Authorization Management Program (FedRAMP), the American Institute of Certified Public Accountants (AICPA): AT 801 (formerly Statement on Standards for Attestation Engagements [SSAE] 16), and the International Standards for Assurance Engagements No.3402 (ISAE 3402) professional standards.

    Compliance reports from these assessments are made available to customers to enable them to evaluate AWS. The AWS Compliance reports identify the scope of AWS services and regions assessed, as well the assessor’s attestation of compliance. A vendor or supplier evaluation can be performed by leveraging these reports and certifications.

    Refer to the following AWS Audit Reports for additional details: PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP, SOC 2 CONFIDENTIALITY, SOC 2

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.5.5. Do audits address the effectiveness of the quality system?',\n answer: 'Yes',\n comment:\n '

    AWS is responsible for ensuring that good commercial IT practices are utilized in the design, development and operation of AWS Products. AWS considers maintaining customer trust and confidence of the utmost importance and therefore defines the quality attributes of AWS Products in terms of Availability, Integrity and Confidentiality. The AWS quality system addresses the elements necessary for AWS to implement quality management including the organizational structure, responsibilities, procedures, processes, and resources. AWS has established a quality management system which meets or exceeds the best practice guidelines established by the International Organization for Standardization (ISO). The quality management system applies to the development and operations of AWS Products, including the AWS Services, AWS Infrastructure, and assets which support the development and operations of AWS Services. The key standards applicable to the quality management system include ISO 9001 ISO 27001, ISO 27017 and ISO 27018.

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.5.6. Are deviations to procedures and product standards, identified through audits and inspections, documented in accordance with procedures?',\n answer: 'Yes',\n comment:\n '

    AWS has established a formal audit program that includes continual, independent internal and external assessments to validate the implementation and operating effectiveness of the AWS control environment.

    Internal and external audits are planned and performed according to the documented audit scheduled to review the continued performance of AWS against standards-based criteria and to identify general improvement opportunities. Standards-based criteria includes but is not limited to the ISO/IEC 27001, Federal Risk and Authorization Management Program (FedRAMP), the American Institute of Certified Public Accountants (AICPA): AT 801 (formerly Statement on Standards for Attestation Engagements [SSAE] 16), and the International Standards for Assurance Engagements No.3402 (ISAE 3402) professional standards.

    Compliance reports from these assessments are made available to customers to enable them to evaluate AWS. The AWS Compliance reports identify the scope of AWS services and regions assessed, as well the assessor’s attestation of compliance. A vendor or supplier evaluation can be performed by leveraging these reports and certifications.

    Refer to the following AWS Audit Reports for additional details: SOC 2, PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.5.7. Are audit results documented and brought to the attention of responsible personnel?',\n answer: 'Yes',\n comment:\n '

    The AWS Compliance Assessment Team (CAT) maintains a documented audit schedule of internal and external assessments to ensure implementation and operating effectiveness of the AWS control environment to meet business, regulatory, and contractual objectives.

    The needs and expectations of internal and external parties are considered throughout the development, implementation, and auditing of the AWS control environment. Parties include, but are not limited to:

    • AWS customers, including customers with a contractual interest and potential customers.
    • External parties to AWS including regulatory bodies such as the external auditors and certifying agents.
    • Internal parties such as AWS Services and Infrastructure teams, Security, Legal, and overarching Administrative and Corporate teams.

    Refer to the following AWS Audit Reports for additional details: PFMI, SOC 2, PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.5.8. Are the results of audits reported to senior management?',\n answer: 'Yes',\n comment:\n '

    The AWS Compliance Assessment Team (CAT) maintains a documented audit schedule of internal and external assessments to ensure implementation and operating effectiveness of the AWS control environment to meet business, regulatory, and contractual objectives.

    The needs and expectations of internal and external parties are considered throughout the development, implementation, and auditing of the AWS control environment. Parties include, but are not limited to:

    • AWS customers, including customers with a contractual interest and potential customers.
    • External parties to AWS including regulatory bodies such as the external auditors and certifying agents.
    • Internal parties such as AWS Services and Infrastructure teams, Security, Legal, and overarching Administrative and Corporate teams.

    Refer to the following AWS Audit Reports for additional details: PFMI, SOC 2, PCI 3.2, ISO 27001, ISO 27017, FEDRAMP MOD, HIPAA, IRAP

    ',\n isLoading: true\n },\n {\n type: 'control',\n control: '1.1.5.9. Is there a follow-up to the audits?',\n answer: 'Yes',\n comment:\n '

    AWS is responsible for ensuring that good commercial IT practices are utilized in the design, development and operation of AWS Products. AWS considers maintaining customer trust and confidence of the utmost importance and therefore defines the quality attributes of AWS Products in terms of Availability, Integrity and Confidentiality. The AWS quality system addresses the elements necessary for AWS to implement quality management including the organizational structure, responsibilities, procedures, processes, and resources. AWS has established a quality management system which meets or exceeds the best practice guidelines established by the International Organization for Standardization (ISO). The quality management system applies to the development and operations of AWS Products, including the AWS Services, AWS Infrastructure, and assets which support the development and operations of AWS Services. The key standards applicable to the quality management system include ISO 9001 ISO 27001, ISO 27017 and ISO 27018.

    The AWS planning process defines service requirements and requirements for projects and contracts, and also ensures customer needs and expectations are met or exceeded. Planning is achieved through a combination of business and service planning, project teams, quality improvement plans, review of service-related metrics and documentation, internal and supplier audits, and employee training. The AWS quality system is documented to ensure that planning is consistent with all other requirements. AWS’s risk management and assessment approach defines the periodic process of maintaining and continuously improving the quality management system. Through the use of reviews, evaluations, and risk management techniques, the objectives related to information security and quality are met.

    Refer to the following AWS Audit Reports for additional details: ISO 27001, ISO 27017, ISO 27018

    ',\n isLoading: true\n }\n ]\n },\n {\n type: 'section',\n title: '1.1.6 Continuous Improvement Process',\n elements: [\n {\n type: 'control',\n control:\n '1.1.6.1. Are metrics used to gage the effectiveness of work processes?',\n comment: '',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.6.2. Are the metrics closely integrated with quality goals?',\n comment: '',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.1.6.3. Are the metrics and quality goals provided to management on a regular basis?',\n comment: '',\n isLoading: true\n }\n ]\n }\n ]\n },\n {\n type: 'section',\n title:\n '1.2 Supplier/Subcontract Management - Specifying, selecting and managing capable suppliers',\n elements: [\n {\n type: 'control',\n control: '1.2.1. Are there procedures to qualify and select suppliers?',\n answer: 'Yes',\n comment:\n 'Key suppliers are identified and chosen for their ability to provide service to defined requirements. Qualified suppliers are added to the approved supplier list maintained by the Supplier Management team. Through the use of established assessment procedures, AWS continuously monitors suppliers to ensure that they are conforming to specific AWS requirements. The extent of assessment for a supplier is dependent upon the significance of the product and/or service purchased and, where applicable, upon previously demonstrated performance.',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.2.2. Do selection procedures include analysis of suppliers proven capabilities?',\n answer: 'Yes',\n comment:\n 'Key suppliers are identified and chosen for their ability to provide service to defined requirements. Qualified suppliers are added to the approved supplier list maintained by the Supplier Management team. Through the use of established assessment procedures, AWS continuously monitors suppliers to ensure that they are conforming to specific AWS requirements. The extent of assessment for a supplier is dependent upon the significance of the product and/or service purchased and, where applicable, upon previously demonstrated performance.',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.2.3. Do procedures include a process for managing contracts or statements of work?',\n answer: 'Yes',\n comment:\n 'All purchased materials and services intended for use in production processes are specified in purchasing documents. All component/material specification documents are reviewed and approved by management personnel prior to use. Additional requirements not specified on component/material specifications are conveyed via purchase orders or contracts. Purchase orders and/or contracts convey the degree of control AWS establishes with their suppliers to ensure quality product and/or service.',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.2.4. Are contractual agreements used as a basis for managing suppliers?',\n answer: 'Yes',\n comment:\n 'AWS maintains standard contract review and signature processes that include legal reviews that focus on protecting AWS resources. ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.2.5. Are changes to subcontractor’s or supplier’s scope of work, contract terms and conditions or other conditions managed through contractual agreements?',\n answer: 'Yes',\n comment:\n 'AWS maintains standard contract review and signature processes that include legal reviews that focus on protecting AWS resources. ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.2.6. Does the subcontract manager conduct periodic status reviews with the subcontractor or supplier?',\n comment: '',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.2.7. Does the quality assurance group monitor the subcontractor’s QA activities?',\n comment: '',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.2.8. Does the supplier perform acceptance testing on the product delivered by the subcontractor or supplier?',\n comment: '',\n isLoading: true\n }\n ]\n },\n {\n type: 'section',\n title: '1.3 Quality Assurance',\n elements: [\n {\n type: 'section',\n title: '1.3.1. Quality Assurance Planning',\n elements: [\n {\n type: 'control',\n control:\n '1.3.1.1. Are quality assurance plans prepared for projects in accordance with defined procedures?',\n answer: 'Yes',\n comment:\n 'AWS applies a systematic approach to managing change to ensure that all changes to a production environment are reviewed, tested, and approved. Facilities, equipment, and software components of production operations are identified throughout their lifecycle to ensure that only acceptable components are used in production.',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.3.1.2. Do quality assurance plans define work responsibilities?',\n answer: 'Yes',\n comment:\n 'AWS has established and maintains company-wide policy that defines roles, responsibilities and classifications for managing changes to the production environment. Changes to AWS services and features follow secure software development practices, which include a security risk review prior to launch.',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.3.1.3. Do quality plans direct work through specific procedures?',\n answer: 'Yes',\n comment:\n 'AWS developers that require access to production environments must explicitly request access through the AWS access management system, have the access reviewed and approved by the appropriate owner, and upon approval obtain authentication. AWS service teams maintain service specific change management standards that inherit and build on the AWS Change Management guidelines. ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.3.1.4. Do plans define independent oversight activities through reviews and/or inspections?',\n answer: 'Yes',\n comment:\n '

    AWS applies a systematic approach to managing change to ensure that all changes to a production environment are reviewed, tested, and approved. The AWS Change Management approach requires that the following steps be complete before a change is deployed to the production environment:

    1. Document and communicate the change via the appropriate AWS change management tool.

    2. Plan implementation of the change and rollback procedures to minimize disruption.

    3. Test the change in a logically segregated, non-production environment.

    4. Complete a peer-review of the change with a focus on business impact and technical rigor. The review should include a code review.

    5. Attain approval for the change by an authorized individual.

    ',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.3.1.5. Are personnel to perform the implementation of quality assurance functions allocated to projects?',\n comment: '',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.3.1.6. Are QA activities conducted in accordance with the approved QA Plan?',\n answer: 'Yes',\n comment:\n 'AWS applies a systematic approach to managing change to ensure that all changes to a production environment are reviewed, tested, and approved. Facilities, equipment, and software components of production operations are identified throughout their lifecycle to ensure that only acceptable components are used in production.',\n isLoading: true\n }\n ]\n }\n ]\n },\n {\n type: 'section',\n title: '1.4 Quality Control',\n elements: [\n {\n type: 'control',\n control: '1.4.1. Are quality control practices defined?',\n answer: 'Yes',\n comment:\n 'AWS applies a systematic approach to managing change to ensure that all changes to a production environment are reviewed, tested, and approved. Facilities, equipment, and software components of production operations are identified throughout their lifecycle to ensure that only acceptable components are used in production.',\n isLoading: true\n },\n {\n type: 'control',\n control:\n '1.4.2. Are quality control practices enforced by the quality system?',\n answer: 'Yes',\n comment:\n 'AWS has established and maintains company-wide policy that defines roles, responsibilities and classifications for managing changes to the production environment. Changes to AWS services and features follow secure software development practices, which include a security risk review prior to launch.',\n isLoading: true\n }\n ]\n }\n];\n","import {\n Table,\n TableBody,\n TableCell,\n TableRow,\n CircularProgress\n} from '@material-ui/core';\nimport React, { Fragment } from 'react';\nimport styled from 'styled-components';\nimport { AuditElement } from './Audit.interface';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\n\nconst Styled = {\n TreeNode: styled.div`\n .tree-node-link {\n display: flex;\n padding: 5px;\n width: 100%;\n background-color: #d9e4ea;\n color: #565656;\n font-weight: bold;\n border-bottom: solid 1px #ccc;\n align-items: center;\n cursor: pointer;\n &.collapsed .expand-icon {\n transform: rotate(-90deg);\n }\n\n .expand-icon {\n transition: transform 300ms ease-out;\n margin-right: 10px;\n }\n }\n .tree-node-children {\n transition: max-height 300ms cubic-bezier(1, 0, 1, 0);\n max-height: 9000px;\n overflow: hidden;\n &.collapsed {\n transition: max-height 300ms cubic-bezier(0, 1, 0, 1);\n max-height: 0;\n }\n }\n `,\n UnidentifiedControls: styled.div`\n font-weight: 500;\n color: red;\n `\n};\n\nconst AuditControlElements: React.FC<{\n elements: AuditElement[];\n depth?: number;\n onToggleElement: (element: AuditElement) => void;\n onSelectElement: (element: AuditElement) => void;\n}> = ({ depth = 0, elements, onToggleElement, onSelectElement }) => {\n return (\n \n {elements.map((element: AuditElement) => {\n const { control, isLoading = true } = element;\n return element.type === 'section' ? (\n \n onToggleElement(element)}\n >\n \n {element.title}\n \n {element.elements && (\n \n \n \n )}\n \n ) : (\n \n \n onSelectElement(element)}>\n \n {!element.answer ? (\n isLoading ? (\n control\n ) : (\n \n {control}\n \n )\n ) : (\n control\n )}\n \n \n {isLoading ? (\n \n ) : (\n element.answer\n )}\n \n \n {!isLoading && (\n
    \n {element.comment?.replace(/<.*?>/g, '')}\n
    \n )}\n
    \n
    \n
    \n
    \n );\n })}\n
    \n );\n};\n\nexport default AuditControlElements;\n","import {\n Box,\n Button,\n Card,\n CardActions,\n CardContent,\n Divider,\n Grid,\n Link,\n MenuItem,\n Table,\n TableCell,\n TableHead,\n TableRow,\n TextField\n} from '@material-ui/core';\nimport { Alert } from '@material-ui/lab';\nimport { Editor } from '@tinymce/tinymce-react';\nimport React, { useMemo, useState, useRef, useEffect } from 'react';\nimport styled from 'styled-components';\nimport FilterIcon from '@material-ui/icons/FilterList';\nimport CardTitle from '../../common/card/CardTitle';\n\nimport PageTemplate from '../../common/page-template/PageTemplate';\nimport PageTemplateDashboard from '../../common/page-template/PageTemplateDashboard';\nimport PageTemplateHeader, {\n PageTemplateHeaderActions\n} from '../../common/page-template/PageTemplateHeader';\nimport SplitPane, { Pane } from '../../common/SplitPane';\nimport { auditElements } from './Audit.data';\nimport { AuditElement } from './Audit.interface';\nimport AuditControlElements from './AuditControlElements';\nimport environment from '../../environments';\n\nconst Styled = {\n PageTemplate: styled(PageTemplate)`\n .page-template-dashboard {\n padding: 0;\n background: #fff;\n }\n .padded-content {\n padding: 20px 30px 0 30px;\n }\n `,\n AuditListPane: styled(Pane)`\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: auto;\n .control-table {\n white-space: normal;\n td {\n vertical-align: top;\n }\n }\n td.answer {\n width: 80px;\n }\n td.comment {\n width: 30%;\n .comment-truncate {\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n }\n }\n td.loading {\n width: 30%;\n }\n .depth-1 {\n padding-left: 32px !important;\n }\n .depth-2 {\n padding-left: ${32 * 2}px !important;\n }\n .depth-3 {\n padding-left: ${32 * 3}px !important ;\n }\n `,\n ControlDetailPane: styled(SplitPane)`\n padding: 12px;\n background: #f4f4f4;\n flex-direction: column;\n overflow: auto;\n //transition: 150ms ease-out;\n `,\n Box: styled(Box)`\n display: flex;\n height: 100%;\n color: #757575;\n `\n};\n\nconst getAllControls = (\n elements: AuditElement[],\n controlElements: AuditElement[] = []\n) => {\n for (let element of elements) {\n if (element.type === 'control') {\n controlElements.push(element);\n } else if (element.type === 'section' && element.elements) {\n getAllControls(element.elements, controlElements);\n }\n }\n return controlElements;\n};\n\nconst AuditPage: React.FC = () => {\n const fileInputRef = useRef(null);\n const [isFileImported, setIsFileImported] = useState(false);\n const [elements, setElements] = useState(null);\n const [isAllLoaded, setIsAllLoaded] = useState(false);\n const [selectedElement, setSelectedElement] = useState<\n AuditElement | undefined\n >((auditElements[0]?.elements[0] as any)?.elements[0] || undefined);\n const controlCount = useMemo(() => {\n return elements ? getAllControls(elements).length : 0;\n }, [elements]);\n\n let controlElements: AuditElement[] = [];\n const [elementCounter, setElementCounter] = useState(0);\n const [controlElementsState, setControlElementsState] = useState<\n AuditElement[] | null\n >(null);\n\n const handleFile = async (files: FileList | null) => {\n if (!files || files.length === 0) return;\n setIsFileImported(true);\n setElements(auditElements);\n loadAuditSheet();\n };\n\n const getControlElements = (\n elements: AuditElement[],\n controlElements?: AuditElement[]\n ): AuditElement[] => {\n if (!controlElements) controlElements = [];\n for (let element of elements) {\n if (element.type === 'control') {\n controlElements.push(element);\n } else if (element.type === 'section' && element.elements) {\n getControlElements(element.elements, controlElements);\n }\n }\n return controlElements;\n };\n\n useEffect(() => {\n if (controlElementsState) {\n loadNextAuditSheetElement(controlElementsState, elementCounter);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [controlElementsState]);\n\n const loadAuditSheet = () => {\n controlElements = getControlElements(auditElements);\n setControlElementsState(controlElements);\n };\n\n const loadNextAuditSheetElement = (\n controlElements: AuditElement[],\n index: number\n ) => {\n if (controlElements.length <= index) {\n setIsAllLoaded(true);\n return;\n }\n let element = controlElements[index];\n element.isLoading = false;\n setTimeout(() => {\n setElementCounter(elementCounter + 1);\n setControlElementsState([...controlElements]);\n }, 100 + Math.floor(Math.random() * 300) + 1);\n };\n\n return (\n \n \n

    Audit Management

    \n \n handleFile(event?.target.files)}\n />\n {isFileImported ? (\n <>\n \n \n \n ) : (\n fileInputRef.current?.click()}\n >\n Import\n \n )}\n \n
    \n \n \n \n \n \n \n \n Controls {isFileImported && `(Total: ${controlCount})`}\n \n Answer\n Comments\n \n \n
    \n {isAllLoaded && (\n 7 Unidentified Controls\n )}\n {isFileImported && elements ? (\n {\n element.collapsed = !element.collapsed;\n setElements([...auditElements]);\n }}\n onSelectElement={element => {\n if (element === selectedElement) {\n setSelectedElement(undefined);\n } else {\n setSelectedElement(element);\n }\n }}\n />\n ) : (\n \n \n \n \n \n Upload an audit excel document containing audit control to\n validate\n \n \n )}\n
    \n {selectedElement && isFileImported && (\n \n \n \n \n Control\n {selectedElement.control}\n \n \n \n \n \n \n Answer\n \n Yes\n No\n \n \n \n \n \n \n \n Comment\n \n {\n selectedElement.comment = content;\n }}\n />\n \n \n \n {selectedElement.elements?.map(element => (\n \n \n {element.title}\n \n \n {element.links && element.links.length > 0 && (\n \n {element.links?.map(link => (\n \n {link.label}\n \n ))}\n \n )}\n \n \n ))}\n \n \n )}\n
    \n
    \n
    \n );\n};\n\nexport default AuditPage;\n","import { useCallback } from 'react';\n\nimport { ApiParams } from '../../common/api/api';\nimport {\n ApiResult,\n FetchApiCallback,\n useApiGet,\n useApiPatch,\n useApiPost\n} from '../../common/api/Api.hooks';\nimport { useDownloadBlob } from '../../common/blob.hook';\nimport { Template, TemplateType } from './Template.interface';\n\nexport function useFindTemplates(): [ApiResult, FetchApiCallback] {\n const { get, ...result } = useApiGet('templates');\n return [result, get];\n}\n\nexport function useCheckIfHasTemplate(\n type: TemplateType\n): [ApiResult, FetchApiCallback] {\n const { get, ...result } = useApiGet(`templates/${type}/template`);\n return [result, get];\n}\n\nexport function useCreateTemplate(): [\n ApiResult