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/B,KAAKjyB,EACpB,EACAk4G,EAAehiE,QAAUkiE,EACzB/0H,EAAOD,QAAU80H,EACjBA,EAAeplH,GAAK","sources":["webpack://diana/webpack/universalModuleDefinition","webpack://diana/./src/app/Routing/RouteUrls.ts","webpack://diana/./src/components/External/AdpBargeAuditHistory/i18n.ts","webpack://diana/./src/components/External/AdpLabResults/i18n.ts","webpack://diana/./src/components/External/AdpMassFlowMeter/AdpMassFlowMeterChart/i18n.ts","webpack://diana/./src/components/External/LupaTimeline/i18n.ts","webpack://diana/./src/components/External/O3oVesselSurveyMeasurements/i18n.ts","webpack://diana/./src/components/PinnedDashboards/i18n.ts","webpack://diana/./src/app/Routing/CoreRouterContextConnector.tsx","webpack://diana/./src/app/Routing/Bootstrap.tsx","webpack://diana/./src/hooks/useAppEvents.ts","webpack://diana/./src/app/Support.ts","webpack://diana/./src/pages/SilentRenewPage/i18n.ts","webpack://diana/./src/pages/SilentRenewPage/SilentRenewPage.tsx","webpack://diana/./src/app/AppLoading.tsx","webpack://diana/./src/pages/ErrorPages/i18n.ts","webpack://diana/./src/pages/ErrorPages/SessionTimeout.tsx","webpack://diana/./src/app/AppError.tsx","webpack://diana/./src/app/Routing/Components.tsx","webpack://diana/./src/pages/LegacyWorkPath/LegacyWorkPath.tsx","webpack://diana/./src/pages/OpenFilePage/OpenFilePage.tsx","webpack://diana/./src/i18n/routes.ts","webpack://diana/./src/hooks/useNavMenuItems.ts","webpack://diana/./src/app/Routing/Viewport.tsx","webpack://diana/./src/hooks/useNavMenuPages.ts","webpack://diana/./src/hooks/useIsActiveNavMenuItem.ts","webpack://diana/./src/pages/OnboardingPage/i18n.ts","webpack://diana/./src/pages/OnboardingPage/useIndustryOptions.ts","webpack://diana/./src/pages/OnboardingPage/Steps/BusinessForm.tsx","webpack://diana/./src/pages/OnboardingPage/Steps/BusinessKeyAreas.tsx","webpack://diana/./src/pages/OnboardingPage/Steps/CustomiseEcosystem.tsx","webpack://diana/./src/pages/OnboardingPage/useCompanyResearch.ts","webpack://diana/./src/pages/OnboardingPage/useOnboardingPageSteps.tsx","webpack://diana/./src/pages/OnboardingPage/OnboardingStepper.tsx","webpack://diana/./src/pages/OnboardingPage/OnboardingButtons.tsx","webpack://diana/./src/pages/OnboardingPage/OnboardingPage.tsx","webpack://diana/./src/pages/SelectEcosystemPage/i18n.ts","webpack://diana/./src/pages/SelectEcosystemPage/SelectEcosystemPage.tsx","webpack://diana/./src/pages/WorkflowsPage/i18n.ts","webpack://diana/./src/pages/WorkflowsPage/WorkflowCard.tsx","webpack://diana/./src/pages/WorkflowsPage/WorkflowDraftCard.tsx","webpack://diana/./src/pages/WorkflowsPage/WorkflowsEmptyView.tsx","webpack://diana/./src/pages/ThingsGroupsPage/i18n.ts","webpack://diana/./src/pages/ThingsGroupsPage/ThingsGroupCard.tsx","webpack://diana/./src/hooks/useBreadcrumbsRoot.tsx","webpack://diana/./src/pages/WorkflowsPage/WorkflowsGenerateEmptyView.tsx","webpack://diana/./src/pages/WorkflowsPage/WorkflowSkeletonCard.tsx","webpack://diana/./src/pages/WorkflowsPage/WorkflowsPage.tsx","webpack://diana/./src/pages/HomePage/HomePage.tsx","webpack://diana/./src/pages/ThingsGroupsPage/ThingsGroupDraftCard.tsx","webpack://diana/./src/pages/ThingsGroupsPage/ThingsGroupPageEmptyView.tsx","webpack://diana/./src/pages/ThingsGroupsPage/ThingsGroupsPage.tsx","webpack://diana/./src/pages/ThingsPage/Support.tsx","webpack://diana/./src/pages/ThingsPage/ThingsTable.tsx","webpack://diana/./src/pages/ThingsPage/ThingCard.tsx","webpack://diana/./src/pages/ThingsPage/i18n.ts","webpack://diana/./src/pages/ThingsPage/ThingsEmpty.tsx","webpack://diana/./src/components/Board/LoadingCards.tsx","webpack://diana/./src/components/Board/useBoardParams.tsx","webpack://diana/./src/components/Board/Board.tsx","webpack://diana/./src/components/Board/useVirtualBoardParams.tsx","webpack://diana/./src/pages/ThingsPage/Content.tsx","webpack://diana/./src/pages/ThingsPage/BuilderButton.tsx","webpack://diana/./src/pages/ThingsPage/Headers.tsx","webpack://diana/./src/pages/ThingsPage/ThingsPage.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageContext/FlowBuilderPageContext.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageStore/useFlowBuilderPageStore.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageContext/FlowBuilderPageContextProvider.tsx","webpack://diana/./src/models/LayoutComponentSettings.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageContext/useFlowBuilderPageContext.ts","webpack://diana/./src/i18n/layoutComponents.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames.ts","webpack://diana/./src/components/LayoutComponentSettings/useTextInputSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useNumberInputSettings.tsx","webpack://diana/./src/hooks/useLayoutComponentSettings.ts","webpack://diana/./src/components/LayoutComponentSettings/useAssetSearchSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/usePeopleSearchSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useDatePickerSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useSelectSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useOptionSelectSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useTextareaSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useToggleSwitchSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useSignatureSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useSliderSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useAttachmentSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useFinanceTableSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useTableSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useSectionSettings.tsx","webpack://diana/./src/components/LayoutComponentSettings/useBannerSettings.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/ComponentPropertiesSync/ComponentPropertiesSync.tsx","webpack://diana/./src/providers/DndLayoutComponents/DndLayoutComponents.types.ts","webpack://diana/./src/providers/DndLayoutComponents/DndLayoutComponentsProvider.tsx","webpack://diana/./src/providers/DndLayoutComponents/DndLayoutComponentsUtils.ts","webpack://diana/./src/providers/DndLayoutComponents/DraggableLayoutComponent.types.ts","webpack://diana/./src/providers/DndLayoutComponents/DraggableLayoutComponent.tsx","webpack://diana/./src/providers/DndLayoutComponents/DroppableLayoutComponent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ToolsDrawer/ComponentsList/ComponentsList.styles.ts","webpack://diana/./src/pages/FlowBuilderPage/i18n.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ToolsDrawer/ComponentsList/ComponentsList.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/LabelPropertyEditor/useLabelPropertyValidator.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/LabelPropertyEditor/LabelPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/LabelPropertyEditor/useLabelPropertyEditor.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPage.styles.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/ValidationTooltip/ValidationTooltip.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/TextFieldWithValidationTooltip/TextFieldWithValidationTooltip.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useEntityFieldState.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/ComponentNameField/ComponentNameField.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/StepNameField/StepNameField.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/TaskNameField/TaskNameField.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useDeleteComponentById.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useDeleteStepById.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useDuplicateComponentById.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useDeleteTaskById.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useGetTaskMenuActions.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ToolsDrawer/Explorer/Support.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ToolsDrawer/Explorer/Explorer.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ToolsDrawer/useToolsDrawer.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useScrollToElement.ts","webpack://diana/./src/components/_NodeCodeConfigDebuggers/DebugTask.tsx","webpack://diana/./src/components/_NodeCodeConfigDebuggers/DebugJsonDrawerContent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureTaskDrawer/ConfigureTaskDrawerHeader.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/ValidationTip/ValidationTip.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureTaskDrawer/ConfigureTaskAction.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureTaskDrawer/ConfigureTaskActivities.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/EditAssistantChat.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureTaskDrawer/ConfigureTaskDrawerContent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureTaskDrawer/ConfigureTaskDrawerFooter.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureTaskDrawer/useConfigureTaskDrawer.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageHooks/useWaitForRequestIdle.ts","webpack://diana/./src/components/LayoutComponentEditor/useLayoutComponentEditorStore.ts","webpack://diana/./src/components/LayoutComponentEditor/LayoutComponentEditor.styles.ts","webpack://diana/./src/components/LayoutComponentEditor/Support.tsx","webpack://diana/./src/components/LayoutComponentEditor/LayoutComponentEditorHeader.tsx","webpack://diana/./src/components/_NodeCodeConfigDebuggers/DebugLayoutComponent.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/BasePropertySwitcher.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/AddNewItemPropertyEditor/AddNewItemPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/AddRowsPropertyEditor/AddRowsPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/AttachmentSizeEditor/AttachmentSizePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ColumnPinningPropertyEditor/ColumnPinningPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ColumnsPropertyEditor/ColumnEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ColumnsPropertyEditor/ColumnsPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/CurrencyCodePropertyEditor/CurrencyCodePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/DataPathPropertyEditor/Support.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DataPathPropertyEditor/useDataPathPropertyValidator.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DataPathPropertyEditor/DataPathPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/DecimalsPropertyEditor/DecimalsPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/Support.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/DefaultValuePropertyEditor.styles.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/useDefaultValuePropertyValidator.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/FromThisWorkflowEntries.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/CalculationEntries.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/AssetPropertyEntries.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/DefaultValuePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/EditablePropertyEditor/EditablePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/FolderPropertyEditor/FolderPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/GroupablePropertyEditor/GroupablePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/HelpTextPropertyEditor/HelpTextPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/HiddenPropertyEditor/HiddenPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/IconPropertyEditor/IconPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/MarksPropertyEditor/useMarksPropertyValidator.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/MarksPropertyEditor/MarksPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/MaxValuePropertyEditor/MaxValuePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/MinValuePropertyEditor/MinValuePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/MultiselectPropertyEditor/MultiselectPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/OptionsDefaultValuePropertyEditor/OptionsDefaultValuePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/OptionsPropertyEditor/useOptionsPropertyValidator.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/OptionsPropertyEditor/OptionsPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/PlaceholderPropertyEditor/PlaceholderPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ReadOnlyPropertyEditor/ReadOnlyPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ReorderColumnsPropertyEditor/ReorderColumnsPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ReorderRowsPropertyEditor/ReorderRowsPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/RequiredPropertyEditor/RequiredPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/RichTextDescriptionPropertyEditor/RichTextDescriptionPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ShowRangePropertyEditor/ShowRangePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ShowTimePropertyEditor/ShowTimePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/SortablePropertyEditor/SortablePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/Support.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/TableColumnsEditor.types.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/AddNewItemEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/DecimalsEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/DisplayNameEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/EditableEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/GroupableEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/MultiSelectEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/ReadOnlyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/RequiredEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/SelectOptionsEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/ShowRangeEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/ShowTimeEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/SortableEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/ThingTypeEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/ToggleOptionsEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/ColumnPropertyEditors/TypeEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/useColumnPropertyEditorMap.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/useColumnEditorSections.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/useTableColumnsValidator.ts","webpack://diana/./src/components/DrawerFooterActions/DrawerFooterActions.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/TableColumnsEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/TextWrappingPropertyEditor/TextWrappingPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ThingTypePropertyEditor/useThingTypePropertyValidator.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ThingTypePropertyEditor/ThingTypePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/ToggleSwitchOptionsPropertyEditor/ToggleSwitchOptionsPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/CollapsePropertyEditor/CollapsePropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/useLayoutComponentPropertyEditorMap.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DataPathPropertyEditor/useDataPathPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/AddNewItemPropertyEditor/useAddNewItemPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/AddRowsPropertyEditor/useAddRowsPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/AttachmentSizeEditor/useAttachmentSizePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ColumnPinningPropertyEditor/useColumnPinningPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ColumnsPropertyEditor/useColumnsPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/CurrencyCodePropertyEditor/useCurrencyCodePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DecimalsPropertyEditor/useDecimalsPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/EditablePropertyEditor/useEditablePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/FolderPropertyEditor/useFolderPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/GroupablePropertyEditor/useGroupablePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/HelpTextPropertyEditor/useHelpTextPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/HiddenPropertyEditor/useHiddenPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/MarksPropertyEditor/useMarksPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/MaxValuePropertyEditor/useMaxValuePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/MinValuePropertyEditor/useMinValuePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/MultiselectPropertyEditor/useMultiselectPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/OptionsPropertyEditor/useOptionsPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/PlaceholderPropertyEditor/usePlaceholderPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ReadOnlyPropertyEditor/useReadOnlyPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ReorderColumnsPropertyEditor/useReorderColumnsPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ReorderRowsPropertyEditor/useReorderRowsPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/RequiredPropertyEditor/useRequiredPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ShowRangePropertyEditor/useShowRangePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ShowTimePropertyEditor/useShowTimePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/SortablePropertyEditor/useSortablePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/TableColumnsEditor/useTableColumnsEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ThingTypePropertyEditor/useThingTypePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/ToggleSwitchOptionsPropertyEditor/useToggleSwitchOptionsPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/DefaultValuePropertyEditor/useDefaultValuePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/OptionsDefaultValuePropertyEditor/useOptionsDefaultValuePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/RichTextDescriptionPropertyEditor/useRichTextDescriptionPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/IconPropertyEditor/useIconPropertyEditor.ts","webpack://diana/./src/components/LayoutComponentPropertyEditors/TextWrappingPropertyEditor/useTextWrappingPropertyEditor.tsx","webpack://diana/./src/components/LayoutComponentPropertyEditors/CollapsePropertyEditor/useCollapsePropertyEditor.ts","webpack://diana/./src/components/LayoutComponentEditor/LayoutComponentEditorContent.tsx","webpack://diana/./src/components/LayoutComponentEditor/LayoutComponentEditor.tsx","webpack://diana/./src/components/LayoutComponentEditor/LayoutComponentEditorFooter.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureComponentDrawer/useConfigureComponentDrawer.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/Support.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/PageNavbar/PageNavbar.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/CloseIconButton/CloseIconButton.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/SaveStatusIndicator/SaveStatusIndicator.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/FlowSettingsIconButton/FlowSettingsIconButton.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/HelpIconButton/HelpIconButton.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/ResetChangesIconButton/ResetChangesIconButton.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/PublishButton/useValidate.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/PublishButton/PublishButton.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/PreviewIconButton/PreviewIconButton.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/AdvancedEditorButton/AdvancedEditorButton.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/ViewNavbar.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureWorkflowDrawer/ConfigureWorkflowDrawerContent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureWorkflowDrawer/ConfigureWorkflowDrawerHeader.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/DesktopOnlyErrorView/DesktopOnlyErrorView.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/FlowIconSelector/FlowIconSelector.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/FlowNameField/FlowNameField.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/DndSentinel/Support.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/DndSentinel/DndSentinel.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/BuilderComponentErrorBoundary.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/BuilderComponentDropHereBox.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/BuilderComponentDropPlaceholder.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/ContainerTypeComponent/ContainerTypeComponent.styles.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderLayout/DropAreaPlaceholder.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageComponents/NameFieldWrapper/NameFieldWrapper.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/ContainerTypeComponent/ContainerTypeComponent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/FormTypeComponent/WarningMessage.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/FormTypeComponent/Support.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/FormTypeComponent/FormTypeComponent.styles.ts","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/FormTypeComponent/FormTypeComponent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderComponent/BuilderComponent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderLayout/BuilderLayout.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderTask/BuilderAssetTask.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderTask/BuilderTask.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/BuilderStep/BuilderStep.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/LayoutViewContent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/LayoutView/LayoutView.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageDrawers/ConfigureWorkflowDrawer/useConfigureWorkflowDrawer.tsx","webpack://diana/./src/pages/WorkPage/i18n.ts","webpack://diana/./src/pages/WorkPage/Comments/Comments.styles.tsx","webpack://diana/./src/pages/WorkPage/Comments/Support.tsx","webpack://diana/./src/pages/WorkPage/Comments/CommentsRichTextEditor.tsx","webpack://diana/./src/pages/WorkPage/Comments/CommentsEditComment.tsx","webpack://diana/./src/pages/WorkPage/Comments/CommentsNewComment.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Workflow/Status.tsx","webpack://diana/./src/pages/WorkPage/Comments/CommentsUserInfo.tsx","webpack://diana/./src/pages/WorkPage/Comments/Comments.tsx","webpack://diana/./src/components/NavigationTabs/NavigationGroup.tsx","webpack://diana/./src/components/NavigationTabs/NavigationRenderer.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Navigation/Navigation.tsx","webpack://diana/./src/pages/WorkPage/WorkPage.constants.ts","webpack://diana/./src/pages/WorkPage/DrawerTabs/Workflow/LockIcon.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Workflow/StatusIcon.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Workflow/useWorkflowSectionActions.tsx","webpack://diana/./src/hooks/useSectionRename.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Workflow/Section.tsx","webpack://diana/./src/pages/WorkPage/Hooks.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Workflow/Steps.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Workflow/Workflow.tsx","webpack://diana/./src/components/Tabs/Activities/DataChangeDetails.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Audits/WorkAuditDataChangeDetails.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Audits/WorkAudit.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/Audits/WorkAudits.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/RelatedWork/RelatedWork.style.tsx","webpack://diana/./src/pages/WorkPage/DrawerTabs/RelatedWork/RelatedWork.tsx","webpack://diana/./src/pages/WorkPage/useWorkPageDrawerProps.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/PreviewView/ViewNavbar.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageViews/PreviewView/PreviewView.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageActivitiesEditors/UpdateAssetValue/UpdateAssetValue.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageModal/FlowBuilderPageModal.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPageContent.tsx","webpack://diana/./src/pages/FlowBuilderPage/FlowBuilderPage.tsx","webpack://diana/./src/pages/ThingPage/i18n.ts","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Navigation/ThingNavigation.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Contents/useEntitySectionActions.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Contents/EntitySection.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Contents/EntitySectionGroup.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Contents/EntitySectionGroups.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Contents/Contents.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Activities/ThingDataChangeDetails.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Activities/ThingActivity.tsx","webpack://diana/./src/pages/ThingPage/Drawers/Left/Tabs/Activities/ThingActivities.tsx","webpack://diana/./src/pages/ThingPage/useThingPageDrawerProps.tsx","webpack://diana/./src/pages/ThingPage/Header.tsx","webpack://diana/./src/pages/ThingPage/Content.tsx","webpack://diana/./src/pages/ThingPage/ThingEditButton.tsx","webpack://diana/./src/pages/ThingPage/ThingPage.tsx","webpack://diana/./src/pages/WorkboardPage/i18n.ts","webpack://diana/./src/pages/WorkboardPage/Support.tsx","webpack://diana/./src/pages/WorkboardPage/useWorkboardQuery.ts","webpack://diana/./src/pages/WorkboardPage/useWorkBoardCreateWork.ts","webpack://diana/./src/pages/WorkboardPage/WorkKanbanColumns.tsx","webpack://diana/./src/pages/WorkboardPage/WorkKanbanBoard.tsx","webpack://diana/./src/pages/WorkboardPage/WorkTable.tsx","webpack://diana/./src/pages/WorkboardPage/Content.tsx","webpack://diana/./src/pages/WorkboardPage/Headers.tsx","webpack://diana/./src/pages/WorkboardPage/BuilderButton.tsx","webpack://diana/./src/pages/WorkboardPage/WorkboardPage.tsx","webpack://diana/./src/pages/WorkPage/WorkPageLayout.tsx","webpack://diana/./src/pages/WorkPage/WorkPageContent.tsx","webpack://diana/./src/pages/WorkPage/WorkPageStatus.tsx","webpack://diana/./src/pages/WorkPage/WorkPageBreadcrumbs.tsx","webpack://diana/./src/pages/WorkPage/WorkPageRightHeader.tsx","webpack://diana/./src/pages/WorkPage/WorkPageHeader.tsx","webpack://diana/./src/pages/ErrorPages/ErrorPage.tsx","webpack://diana/./src/pages/WorkPage/WorkPage.tsx","webpack://diana/./src/pages/PerformancePage/PerformanceCard.tsx","webpack://diana/./src/pages/PerformancePage/i18n.ts","webpack://diana/./src/pages/PerformancePage/PerformancePage.tsx","webpack://diana/./src/pages/PerformancePage/DataExplorerReportBoard.tsx","webpack://diana/./src/pages/PerformancePage/DataExplorerReportTable.tsx","webpack://diana/./src/pages/PerformancePage/Support.tsx","webpack://diana/./src/pages/PerformancePage/Content.tsx","webpack://diana/./src/pages/PerformancePage/Headers.tsx","webpack://diana/./src/pages/PerformancePage/DataExplorerReport.tsx","webpack://diana/./src/pages/PerformanceReportPage/ReportingTable.tsx","webpack://diana/./src/pages/PerformanceReportPage/PreselectFiltersModal.styles.tsx","webpack://diana/./src/pages/PerformanceReportPage/i18n.ts","webpack://diana/./src/pages/PerformanceReportPage/PreselectFiltersModal.tsx","webpack://diana/./src/pages/PerformanceReportPage/Content.tsx","webpack://diana/./src/pages/PerformanceReportPage/BuilderButton.tsx","webpack://diana/./src/pages/PerformanceReportPage/Header.tsx","webpack://diana/./src/pages/PerformanceReportPage/PerformanceReportPage.tsx","webpack://diana/./src/pages/PerformancePage/PerformanceReportRedirector.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Modals/AdvancedEditorModalContent.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Modals/ModalHub.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Buttons/CloseButton.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/PerformanceReportBuilderPage.styles.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/PerformanceReportBuilderPageContext.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/i18n.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/Buttons/SettingsButton.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Buttons/HelpButton.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Buttons/AdvancedEditorButton.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Mutations/useResetDraftLayoutMutation.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/Buttons/ResetChangesButton.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Mutations/usePublishDraftLayoutMutation.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/Buttons/PublishButton.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/FormComponents/SaveStatusIndicator.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/PerformanceReportBuilderPageNavbar.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Support.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/Mutations/useUpdateLayoutQuickFilterPropertyMutation.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/PerformanceReportBuilderPageToolbar.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Mutations/useUpdateLayoutIconMutation.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/FormComponents/LayoutIconSelector.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Mutations/useUpdateLayoutNameMutation.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/FormComponents/LayoutNameField.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/PerformanceReportBuilderPageContent.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/Mutations/useGetOrCreateDraftLayoutMutation.ts","webpack://diana/./src/pages/PerformanceReportBuilderPage/PerformanceReportBuilderPageError.tsx","webpack://diana/./src/pages/PerformanceReportBuilderPage/PerformanceReportBuilderPage.tsx","webpack://diana/./src/pages/Checkout/i18n.ts","webpack://diana/./src/pages/Checkout/Checkout.tsx","webpack://diana/./src/pages/Checkout/CheckoutReturn.tsx","webpack://diana/./src/app/Routing/Routes/EcosystemRoutes.tsx","webpack://diana/./src/pages/ErrorPages/NotFound.tsx","webpack://diana/./src/app/Routing/Router.tsx","webpack://diana/./src/app/Routing/Routes/SignInRoutes.tsx","webpack://diana/./src/app/Routing/Routes/AppRoutes.tsx","webpack://diana/./src/app/Routing/Routes/LegacyRoutes.tsx","webpack://diana/./src/app/Routing/Routes/ErrorRoutes.tsx","webpack://diana/./src/app/App.tsx","webpack://diana/./src/i18n/i18n.ts","webpack://diana/./src/pages/HomePage/i18n.ts","webpack://diana/./src/i18n/index.ts","webpack://diana/./src/setup.ts","webpack://diana/./src/index.tsx","webpack://diana/./src/pages/PerformanceReportPage/FiltersToolbar.tsx","webpack://diana/./src/pages/PerformanceReportPage/Support.tsx","webpack://diana/./src/pages/WorkPrintPage/WorkPrintPage.tsx","webpack://diana/./src/pages/WorkPrintPage/index.tsx","webpack://diana/./node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(self, () => {\nreturn ","import { route } from '@diana/core';\n\nexport const routeUrls = {\n signIn: route('/app/signin-oidc'),\n signInRefresh: route('/app/refresh-oidc'),\n\n environment: route('/environment'),\n createEnvironment: route('/environment/create'),\n\n ecosystem: route('/ecosystem'),\n createEcosystem: route('/ecosystem/create'),\n selectEcosystem: route('/ecosystem/select'),\n\n checkout: route('/ecosystem/checkout'),\n checkoutReturn: route('/ecosystem/checkout/return'),\n\n legacyWork: route<{ flowId: string }, null>('/app/workboard/:flowId'),\n home: route<{ environment: string }, { modal?: string }>('/:environment/home'),\n root: route<{ environment: string }, null>('/:environment'),\n workflows: route<{ environment: string }, { modal?: string; inviteToFlowId?: string }>(\n '/:environment/workflows',\n ),\n flowBuilder: route<\n { environment: string; flowId: string },\n { preview?: boolean; flowResourceType?: string }\n >('/:environment/flow/:flowId/builder'),\n workboard: route<{ environment: string; flowId: string }, null>(\n '/:environment/workboard/:flowId',\n ),\n baseWorkboard: route('/:environment/workboard/'),\n work: route<{ environment: string; workId: string }, { section?: string }>(\n '/:environment/work/:workId',\n ),\n baseWork: route('/:environment/work/'),\n workVideoChat: route<{ environment: string; workId: string }, { section?: string }>(\n '/:environment/work/:workId/video-chat',\n ),\n workPrint: route<{ environment: string; workId: string; printContext: string }, null>(\n '/:environment/work/print/:workId/:printContext',\n ),\n legacyWorkPrint: route<{ workId: string; printContext: string }, null>(\n '/app/print/v2/work/:workId/:printContext',\n ),\n performance: route<{ environment: string }, null>('/:environment/performance'),\n performanceReport: route<{ environment: string; reportId: string }, null>(\n '/:environment/performance/:reportId',\n ),\n performanceReportBuilder: route<{ environment: string; reportId: string }, null>(\n '/:environment/performance/:reportId/builder',\n ),\n people: route<{ environment: string }, null>('/:environment/people'),\n user: route<{ environment: string; userId: string }, null>('/:environment/people/:userId'),\n thingsGroups: route<{ environment: string }, null>('/:environment/things'),\n things: route<{ environment: string; flowOriginId: string }, null>(\n '/:environment/things/:flowOriginId',\n ),\n thing: route<{ environment: string; thingId: string }, null>('/:environment/thing/:thingId'),\n assetsGroup: route<{ environment: string }, null>('/:environment/assets'),\n assets: route<{ environment: string; flowOriginId: string }, null>(\n '/:environment/assets/:flowOriginId',\n ),\n asset: route<{ environment: string; thingId: string }, null>('/:environment/asset/:thingId'),\n legacyOpenFile: route<{ attachmentId: string; resourceType: string; resourceId: string }, {}>(\n '/app/open-file/:attachmentId/:resourceType/:resourceId',\n ),\n notFound: route<{ environment: string }, null>('/*'),\n};\n","export const ADP_BARGE_AUDIT_HISTORY_NS = 'components/AdpBargeAuditHistory';\n\nexport const i18n = {\n en: {\n terminalLoadingQuantity: 'Loaded quantity',\n priorRobQuantity: 'Prior ROB quantity',\n deliveryQuantity: 'Delivery quantity',\n scheduledQuantity: 'Scheduled quantity',\n robQuantity: 'ROB quantity',\n cycleStatus: 'Cycle status',\n residualQuantity: 'Residual quantity',\n bargeLoading: 'Barge loading',\n bargeAuditHistory: {\n title: 'Barge audit history',\n xAxisLabel: {\n qualityAnalysis: 'Fuel quality analysis',\n },\n massFlowMeter: {\n title: 'Delivery profile',\n noData: 'No data to display',\n },\n qualityAnalysis: {\n title: 'Fuel quality analysis for this operation',\n },\n tooltip:\n 'The calculated residual quantity and cycle difference are presented exclusively for completed cycles, once all data for the cycle is available.',\n },\n cycleResidualTooltip:\n 'Green indicates more quantity delivered than measured. Red indicates less quantity delivered than measured.',\n modal: {\n deliveryDocuments: 'Delivery documents',\n attachments: 'Barge loading quantity',\n },\n expected: 'Expected quantity',\n expectedRobQuantity: 'Expected ROB quantity',\n columns: {\n docName: 'Document Name',\n date: 'Date',\n },\n actions: {\n download: 'Download',\n },\n zip: {\n title: 'Attachment',\n },\n },\n};\n","export const ADP_LAB_RESULTS_NS = 'components/AdpLabResults';\n\nexport const i18n = {\n en: {\n publishDate: 'Publish date',\n testResults: {\n columns: {\n characteristics: 'Characteristics',\n status: 'Status',\n units: 'Units',\n value: 'Value',\n limit: 'Limit type',\n isoStatedLimit: 'ISO stated limit',\n },\n },\n },\n};\n","export const ADP_MASS_FLOW_METER_CHART_NS = 'components/AdpMassFlowMeterChart';\n\nexport const i18n = {\n en: {\n totalMassFlow: 'Total Mass Flow (MT)',\n totalVolumeFlow: 'Total Volume Flow (M3)',\n instantDensity: 'Instant Density (kg/m3)',\n instantMass: 'Instant Mass Flow (MT/hr)',\n instantVolume: 'Instant Volume Flow (M3/hr)',\n instantDrive: 'Instant Drive Gain (%)',\n },\n};\n","export const LUPA_TIMELINEV3 = 'components/LupaTimelineV3';\n\nexport const i18n = {\n en: {\n validation: {\n dateInFutureOrEmpty: 'Empty field or date in the future cannot be marked as actual',\n fieldFlagged:\n 'A material change has been recorded either in the issuance end date and/or in the issuance volume. This will be reviewed by Mercuria shortly',\n },\n },\n};\n","export const O3O_VESSEL_SURVEY_MEASUREMENTS = 'components/O3oVesselSurveyMeasurements';\n\nexport const i18n = {\n en: {\n labels: {\n all: 'All',\n noData: 'No data',\n heightInMetres: 'Height in metres',\n totalWeightDisplacement: 'Total Weight Displacement (TWD)',\n twd: 'TWD',\n trim: 'Trim',\n listToStb: 'List to Stb',\n },\n tooltips: {\n expand: 'Expand',\n },\n symbols: {\n meter: 'm',\n tonne: 't',\n hour: 'h',\n },\n },\n};\n","export const PINNED_DASHBOARDS_NS = 'components/PinnedDashboards';\n\nexport const i18n = {\n en: {\n containerTitle: 'Performance',\n customise: {\n buttonTitle: 'Customise',\n },\n dashboardActions: {\n navigateTo: 'Navigate to {{ reportName }}',\n removeFromHome: 'Remove from Home',\n deleteConfirm: 'Are you sure to remove dashboard from the Home page?',\n },\n noItems: 'No pinned dashboards',\n genericError: 'Something went wrong',\n modal: {\n title: '{{ label }} data',\n },\n },\n};\n","import { PropsWithChildren } from 'react';\nimport {\n unstable_BlockerFunction,\n useBlocker as useRouterBlocker,\n useLocation,\n useNavigate,\n useParams,\n} from 'react-router-dom';\nimport { DianaCoreRouterContextProvider, TRouterBlockerFunction } from '@diana/core';\nimport { isFunction } from 'lodash';\n\nexport function CoreRouterContextConnector({ children }: PropsWithChildren<{}>) {\n return (\n \n {children}\n \n );\n}\n\nfunction useBlocker(blocker: boolean | TRouterBlockerFunction) {\n return useRouterBlocker(\n isFunction(blocker) ? (blocker as unknown as unstable_BlockerFunction) : blocker,\n );\n}\n","import { Navigate, Outlet, useNavigate } from 'react-router-dom';\nimport { Suspense, useCallback, useEffect } from 'react';\nimport { User } from 'oidc-client-ts';\nimport { AuthProvider, useAuth } from 'react-oidc-context';\nimport { isLegacyUrl } from '../Support';\nimport { getOAuthConfig, PageLoader, RaygunTracker } from '@diana/core';\nimport { CoreRouterContextConnector } from './CoreRouterContextConnector';\nimport { useAppEvents } from '../../hooks/useAppEvents';\n\nfunction NoMatchingStateErrorWatcher() {\n const { isAuthenticated, isLoading, error } = useAuth();\n\n useEffect(() => {\n if (\n error?.message.toLowerCase() === 'no matching state found in storage' &&\n !isAuthenticated &&\n !isLoading\n ) {\n window.location.href = window.location.origin;\n }\n }, [error?.message, isAuthenticated, isLoading]);\n\n return null;\n}\n\nexport function Bootstrap() {\n const navigate = useNavigate();\n const onAuthSignInCallback = useCallback(\n (user: User | void) => {\n if (!user) return;\n const state = user.state as undefined | { from: string };\n navigate(state?.from || '/', { replace: true });\n },\n [navigate],\n );\n\n useAppEvents();\n\n if (isLegacyUrl()) {\n return ;\n }\n\n return (\n \n \n \n \n }>\n \n \n \n \n );\n}\n","import {\n EventOpenEditFlowData,\n EventOpenEntityData,\n EventOpenEntityGroupData,\n EventOpenFileData,\n EventOpenPerformanceData,\n EventOpenPerformanceReportData,\n EventOpenPerformanceReportBuilderData,\n EventOpenSelectedEcosystem,\n EventOpenWorkboardData,\n EventOpenWorkData,\n EventOpenWorkflowsData,\n EventOpenWorkVideoCallData,\n Events,\n LocalStorageKey,\n localStorageUtil,\n addQueriesToUrlPath,\n useEvents,\n} from '@diana/core';\nimport { routeUrls } from '../app/Routing/RouteUrls';\nimport { useNavigate } from 'react-router-dom';\n\nexport function useAppEvents() {\n const navigate = useNavigate();\n return useEvents(\n (ctx) => {\n Events.OpenFile.attach(ctx, (params: EventOpenFileData) => {\n window.open(routeUrls.legacyOpenFile.url(params, {}), '_blank');\n });\n\n Events.OpenWork.attach(ctx, (params: EventOpenWorkData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.work.url(params, {}), '_blank');\n } else {\n navigate(routeUrls.work.url(params, {}));\n }\n });\n\n Events.OpenWorkflows.attach(ctx, (params: EventOpenWorkflowsData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.workflows.url(params, {}), '_blank');\n } else {\n navigate(routeUrls.workflows.url(params, {}));\n }\n });\n\n Events.OpenWorkboard.attach(ctx, (params: EventOpenWorkboardData) => {\n const workboardUrl = addQueriesToUrlPath({\n path: routeUrls.workboard.url(params, null),\n queries: params?.queries,\n });\n\n if (params.openInNewTab) {\n window.open(workboardUrl, '_blank');\n } else {\n navigate(workboardUrl);\n }\n });\n\n Events.OpenWorkVideoCall.attach(ctx, (params: EventOpenWorkVideoCallData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.workVideoChat.url(params, {}), '_blank');\n } else {\n navigate(routeUrls.workVideoChat.url(params, {}));\n }\n });\n\n Events.OpenPerformance.attach(ctx, (params: EventOpenPerformanceData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.performance.url(params, null), '_blank');\n } else {\n navigate(routeUrls.performance.url(params, null));\n }\n });\n\n Events.OpenPerformanceReport.attach(ctx, (params: EventOpenPerformanceReportData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.performanceReport.url(params, null), '_blank');\n } else {\n navigate(routeUrls.performanceReport.url(params, null));\n }\n });\n\n Events.OpenPerformanceReportBuilder.attach(\n ctx,\n (params: EventOpenPerformanceReportBuilderData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.performanceReportBuilder.url(params, null), '_blank');\n } else {\n navigate(routeUrls.performanceReportBuilder.url(params, null), {\n state: { fromPathName: window.location.pathname },\n });\n }\n },\n );\n\n Events.OpenEntity.attach(ctx, (params: EventOpenEntityData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.thing.url(params, null), '_blank');\n } else {\n navigate(routeUrls.thing.url(params, null));\n }\n });\n\n Events.OpenEntityGroup.attach(ctx, (params: EventOpenEntityGroupData) => {\n if (params.openInNewTab) {\n window.open(routeUrls.things.url(params, null), '_blank');\n } else {\n navigate(routeUrls.things.url(params, null));\n }\n });\n\n Events.OpenEditFlow.attach(ctx, (params: EventOpenEditFlowData) => {\n const url = routeUrls.flowBuilder.url(params, {\n flowResourceType: params.flowResourceType,\n });\n if (params.openInNewTab) {\n window.open(url, '_blank');\n } else {\n navigate(url, { state: { fromPathName: window.location.pathname } });\n }\n });\n\n Events.OpenSelectedEcosystem.attach(ctx, (params: EventOpenSelectedEcosystem) => {\n navigate(routeUrls.root.url({ environment: params.name }, null));\n });\n\n Events.OpenEcosystemCreate.attach(ctx, () => {\n navigate(routeUrls.createEcosystem.url(null, null));\n });\n\n Events.OpenPrintContext.attach(ctx, (params) => {\n if (params.openInNewTab) {\n window.open(routeUrls.workPrint.url(params, null), '_blank');\n } else {\n navigate(routeUrls.workPrint.url(params, null));\n }\n });\n\n Events.OpenUser.attach(ctx, (params) => {\n if (params.openInNewTab) {\n window.open(routeUrls.user.url(params, null), '_blank');\n } else {\n navigate(routeUrls.user.url(params, null));\n }\n });\n\n Events.OpenAsset.attach(ctx, (params) => {\n navigate(routeUrls.asset.url(params, null));\n });\n\n Events.OpenCheckout.attach(ctx, (params) => {\n const { priceId, redirectSuccessPath } = params;\n\n localStorageUtil.setItem({ key: LocalStorageKey.billingPriceId, value: priceId });\n\n if (redirectSuccessPath) {\n localStorageUtil.setItem({\n key: LocalStorageKey.billingRedirectSuccess,\n value: redirectSuccessPath,\n });\n }\n\n navigate(routeUrls.checkout.url(null, null));\n });\n },\n [navigate],\n );\n}\n","import {\n LocalStorageKey,\n localStorageUtil,\n useThemeStore,\n getDianaSystemColor,\n ExtendedThemeNames,\n} from '@diana/core';\nimport { parse } from 'tldts';\nimport { matchPath } from 'react-router-dom';\nimport { routeUrls } from './Routing/RouteUrls';\n\nfunction getDomain(hostname: string): string | null {\n const { domainWithoutSuffix } = parse(`http://${hostname}`);\n return domainWithoutSuffix || null;\n}\n\nexport function getDefaultEnvironment() {\n const customDomain = getDomain(window.location.hostname);\n if (customDomain && ['adpclear', 'marinestream'].includes(customDomain)) {\n return customDomain;\n }\n\n return null;\n}\n\nexport function handleAnonId() {\n const urlParams = new URLSearchParams(window.location.search);\n if (urlParams.has('anonId')) {\n const anonId = urlParams.get('anonId');\n localStorageUtil.setItem({ key: LocalStorageKey.anonId, value: anonId ?? '' });\n urlParams.delete('anonId');\n const newUrl = window.location.pathname + '?' + urlParams.toString();\n window.history.replaceState(null, document.title, newUrl);\n }\n}\n\nexport function addSystemThemeListener() {\n if (window.matchMedia) {\n const colorSchemeQuery = window.matchMedia('(prefers-color-scheme: dark)');\n colorSchemeQuery.addEventListener('change', () => {\n const themeFromStorage = localStorageUtil.getItem({\n key: LocalStorageKey.defaultTheme,\n }) as ExtendedThemeNames;\n\n if (themeFromStorage === 'system') {\n const theme = getDianaSystemColor();\n useThemeStore.getState().setTheme(theme);\n }\n });\n }\n}\n\nexport function handleBillingParams() {\n const urlParams = new URLSearchParams(window.location.search);\n\n const sessionId = urlParams.get('session_id');\n if (sessionId) {\n localStorageUtil.setItem({ key: LocalStorageKey.billingSessionId, value: sessionId });\n }\n\n const priceId = urlParams.get('price_id');\n if (priceId) {\n localStorageUtil.setItem({ key: LocalStorageKey.billingPriceId, value: priceId });\n }\n}\n\nexport function isLegacyUrl() {\n return (\n (window.location.pathname.startsWith('/app') ||\n window.location.pathname.startsWith('/select')) &&\n !window.location.pathname.includes('oidc') &&\n !matchPath(routeUrls.legacyOpenFile.path, window.location.pathname) &&\n !matchPath(routeUrls.legacyWork.path, window.location.pathname) &&\n !matchPath(routeUrls.legacyWorkPrint, window.location.pathname)\n );\n}\n","export const SILENT_RENEW_PAGE_NS = 'pages/SilentRenewPage';\n\nexport const i18n = {\n en: {\n refreshing: 'Refreshing session....{{ path }}',\n },\n};\n","import { useTranslation } from 'react-i18next';\nimport { SILENT_RENEW_PAGE_NS } from './i18n';\n\nexport const SilentRenewPage: React.FC = () => {\n const { t } = useTranslation(SILENT_RENEW_PAGE_NS);\n console.log('Silent Renew', { ...window.location });\n return

{t('refreshing', { path: window.location.search })}

;\n};\n","import { FullscreenCentered, Loader } from '@diana/core';\n\nexport function AppLoading() {\n return (\n \n \n \n );\n}\n","export const ERROR_PAGES_NS = 'pages/ErrorPages';\n\nexport const i18n = {\n en: {\n unknown: 'Unknown error occurred',\n timeout: 'Sorry, your session has expired.',\n hint: 'Please click Sign In below or refresh the browser window.',\n button: 'Sign In',\n goBack: 'Go back',\n pageNotFound: 'Page not found',\n pageDoesntExist: \"The page doesn't exists or is unavailable. \",\n unexpectedEnvironment: 'Unexpected Environment',\n forbiddenTitle: 'Access Restricted',\n forbidden: \"Your account ({{ userEmail }}) doesn't have access to this item.\",\n defaultTitle: 'Whoops!',\n default: 'Something went wrong...',\n },\n};\n","import { MaintenanceIllustration, FullscreenCentered } from '@diana/core';\nimport { Button, Stack, Typography, useMediaQuery, useTheme } from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport { ERROR_PAGES_NS } from './i18n';\n\nexport function SessionTimeout(props: {\n type: 'timeout' | 'unknown' | 'unexpectedEnvironment';\n onRetry: () => void;\n}) {\n const { type, onRetry } = props;\n\n const { t } = useTranslation(ERROR_PAGES_NS);\n const { breakpoints } = useTheme();\n const isTabletOrMobile = useMediaQuery(breakpoints.down('md'));\n const messageMap = {\n timeout: t('timeout'),\n unexpectedEnvironment: t('unexpectedEnvironment'),\n unknown: t('unknown'),\n };\n\n return (\n \n \n \n \n {messageMap[type] || t('unknown')}\n \n palette.text.secondary }}>\n {t('hint')}\n \n \n \n \n );\n}\n\nexport const Component = SessionTimeout;\n","import { SessionTimeout } from '../pages/ErrorPages/SessionTimeout';\n\nexport function AppError(args: {\n authErrorMessage?: string | null;\n sessionErrorMessage?: string | null;\n onRetry: () => void;\n}) {\n const { authErrorMessage, sessionErrorMessage, onRetry } = args;\n const message = `${authErrorMessage} ${sessionErrorMessage}`;\n return (\n {\n if (/login_required/i.test(message)) {\n return 'timeout';\n }\n if (message === 'Unexpected environment') {\n return 'unexpectedEnvironment';\n }\n return 'unknown';\n })()}\n onRetry={onRetry}\n />\n );\n}\n","import { getDefaultEnvironment } from '../Support';\nimport { Navigate, Outlet } from 'react-router-dom';\nimport { routeUrls } from './RouteUrls';\nimport {\n DianaFeaturesEnum,\n Loader,\n RequireAuth,\n useCurrentUserStore,\n useEnvironment,\n useHasFeature,\n} from '@diana/core';\nimport { AppLoading } from '../AppLoading';\nimport { AppError } from '../AppError';\n\nexport function RootRedirector() {\n const environment = getDefaultEnvironment();\n if (!environment) {\n return ;\n }\n\n return ;\n}\n\nexport function EcosystemRootIndexPath() {\n const environment = useEnvironment();\n const session = useCurrentUserStore((store) => store.info);\n const withHomePage = useHasFeature(DianaFeaturesEnum.HomePage);\n\n if (!session) return ;\n\n return withHomePage ? ( //todo temporary solution until HomePage feature is enabled for all clients\n \n ) : (\n \n );\n}\n\nexport function EnsureAuth() {\n return (\n \n \n \n );\n}\n","import { Fragment } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { Navigate, useSearchParams } from 'react-router-dom';\nimport { FullscreenCentered, Loader, worksQuery } from '@diana/core';\nimport { routeUrls } from '../../app/Routing/RouteUrls';\n\nexport const LegacyWorkPath = () => {\n const [searchParams] = useSearchParams();\n // @ts-ignore\n const queryParams = Object.fromEntries([...searchParams]) as { id: string; modal: string };\n\n const workQuery = worksQuery.getById({ id: queryParams.id! });\n const {\n data: work,\n isLoading,\n isError,\n } = useQuery({\n queryKey: workQuery.key,\n queryFn: workQuery.fn,\n enabled: Boolean(queryParams.id),\n });\n\n if (isLoading) {\n return (\n \n \n \n );\n }\n\n if (isError) {\n return ;\n }\n\n if (work) {\n const possibleEnvironment = work.flowType?.split('/')[0];\n if (possibleEnvironment) {\n return (\n \n );\n }\n\n // fallback\n return ;\n }\n\n return ;\n};\n","import { useCallback, useEffect, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport {\n attachmentsQuery,\n AttachmentsResource,\n axios,\n getEcosystemNameFromFlowType,\n SyncDocumentAttributes,\n worksQuery,\n} from '@diana/core';\nimport { useQuery } from '@tanstack/react-query';\n\nexport const OpenFilePage = () => {\n const { attachmentId, resourceId, resourceType } = useParams<{\n attachmentId: string;\n resourceType: AttachmentsResource;\n resourceId: string;\n }>();\n\n const [redirectUrl, setRedirectUrl] = useState('');\n const [fileName, setFileName] = useState('');\n const [fileType, setFileType] = useState('');\n const [isDownload, setIsDownload] = useState(false);\n\n const workQuery = worksQuery.getById({ id: resourceId ?? '' });\n const { data: work } = useQuery({\n queryKey: workQuery.key,\n queryFn: workQuery.fn,\n enabled: Boolean(resourceId) && resourceType === AttachmentsResource.WORK,\n });\n\n const getAttachmentDataById = async (\n attachmentId: string,\n resourceType: AttachmentsResource,\n resourceId: string,\n ) => {\n try {\n const attachmentData = await attachmentsQuery\n .getAttachmentData({ attachmentId, resourceType, resourceId })\n .fn();\n\n setFileName(\n attachmentData.data?.unsafeOriginalFileName ?? attachmentData.unsafeOriginalFileName,\n );\n return attachmentData;\n } catch (e) {\n console.log('load attachment data error', e);\n return null;\n }\n };\n\n const getFileByUri = async (fullUri: string) => {\n try {\n return await axios.api().get(fullUri, {\n method: 'GET',\n responseType: 'blob',\n });\n } catch (e) {\n console.log('load file error', e);\n return null;\n }\n };\n\n const downloadFile = useCallback(\n (redirectUrl: string, fileType: string) => {\n try {\n if (\n fileType.endsWith('.docx') ||\n fileType.endsWith('.doc') ||\n fileType.endsWith('.xlsx') ||\n fileType.endsWith('.pptx') ||\n fileType.endsWith('.xls') ||\n fileType.endsWith('.txt')\n ) {\n setIsDownload(true);\n\n let tempLink = document.createElement('a');\n tempLink.href = redirectUrl;\n tempLink.setAttribute('download', fileName);\n tempLink.click();\n } else {\n setIsDownload(false);\n }\n } catch (error) {\n console.log(error);\n }\n },\n [fileName],\n );\n\n const loadFile = async () => {\n const attachmentData = await getAttachmentDataById(attachmentId!, resourceType!, resourceId!);\n setFileType(attachmentData?.data?.fileType ?? attachmentData.fileType);\n\n const file = await getFileByUri(attachmentData?.data?.fullUri ?? attachmentData.fullUri);\n const contentType = file?.headers['content-type'];\n\n if (file?.data) {\n const url = window.URL.createObjectURL(\n new Blob([file.data], {\n type: contentType === 'text/plain' ? 'application/txt' : contentType,\n }),\n );\n setRedirectUrl(url);\n }\n };\n\n useEffect(() => {\n if (fileType && redirectUrl) {\n downloadFile(redirectUrl, fileType);\n }\n }, [redirectUrl, fileType, downloadFile]);\n\n useEffect(() => {\n loadFile();\n // eslint-disable-next-line\n }, []);\n\n return (\n \n {redirectUrl && fileName && !isDownload && (\n \n )}\n \n );\n};\n","export const ROUTES_NS = 'routes';\n\nexport const i18n = {\n en: {\n workflows: 'Workflows',\n work: 'Work',\n home: 'Home',\n performance: 'Performance',\n people: 'People',\n assets: 'Assets',\n workAdp: 'Actions',\n performanceAdp: 'Reporting',\n reporting: 'Reporting',\n dataExplorer: 'Data Explorer',\n },\n};\n","import { INavMenuLabels, useCurrentUserStore } from '@diana/core';\nimport { useCallback, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { ROUTES_NS } from '../i18n/routes';\n\nexport type TNavMenu = 'work' | 'performance' | 'people' | 'assets' | 'home';\nexport const AvailableNavMenus: TNavMenu[] = ['work', 'performance', 'people', 'assets', 'home'];\n\nexport const useNavMenuItems = () => {\n const uiLabels = useUINavMenuLabels();\n const menu = useCurrentUserStore((ctx) => ctx.info?.environmentSettings?.menu);\n\n const navLabels = useMemo(() => {\n return AvailableNavMenus.reduce((acc, navMenu) => {\n const item = menu?.find((item) => item.feature === navMenu);\n if (item) acc[navMenu] = item.label;\n return acc;\n }, {} as Record);\n }, [menu]);\n\n const getNavMenuLabel = useCallback(\n (navMenu: TNavMenu) => {\n return navLabels[navMenu] ?? uiLabels[navMenu as keyof typeof uiLabels];\n },\n [navLabels, uiLabels],\n );\n\n const getNavMenuTarget = useCallback(\n (navMenu: TNavMenu) => {\n const item = menu?.find((item) => item.feature === navMenu);\n if (item) return item.target;\n return '_self';\n },\n [menu],\n );\n\n const isNavMenuHidden = useCallback(\n (navMenu: TNavMenu) => {\n const item = menu?.find((item) => item.feature === navMenu);\n if (item) return !item.show;\n return !navLabels[navMenu];\n },\n [menu, navLabels],\n );\n\n return {\n getNavMenuLabel,\n getNavMenuTarget,\n isNavMenuHidden,\n };\n};\n\nexport function useUINavMenuLabels(): INavMenuLabels {\n const { t } = useTranslation(ROUTES_NS);\n return useMemo(\n () => ({\n home: t('home'),\n work: t('work'),\n performance: t('performance'),\n people: t('people'),\n assets: t('assets'),\n }),\n [t],\n );\n}\n","import {\n env,\n Navbar,\n SignalRGlobalConnection,\n SignalRProvider,\n SyncDocumentAttributes,\n} from '@diana/core';\nimport { Outlet } from 'react-router-dom';\nimport { useNavMenuPages } from '../../hooks/useNavMenuPages';\n\nexport function Viewport() {\n const hubUrl = `${env('DIANA_API_ENDPOINT')}/workflowHub`;\n const { pages, isActive } = useNavMenuPages();\n\n return (\n \n \n \n \n \n );\n}\n\nexport function EcosystemViewport() {\n return (\n \n \n \n );\n}\n","import { PageNames, TNavbarPage, useEnvironment } from '@diana/core';\nimport { useMemo } from 'react';\nimport { routeUrls } from '../app/Routing/RouteUrls';\nimport { useNavMenuItems } from './useNavMenuItems';\nimport { useIsActiveNavMenuItem } from './useIsActiveNavMenuItem';\n\nexport function useNavMenuPages() {\n const environment = useEnvironment();\n const { getNavMenuLabel, getNavMenuTarget, isNavMenuHidden } = useNavMenuItems();\n const isActiveNavMenu = useIsActiveNavMenuItem();\n const pages: TNavbarPage[] = useMemo(() => {\n return [\n {\n path: routeUrls.home.url({ environment }, {}),\n label: getNavMenuLabel('home'),\n hide: isNavMenuHidden('home'),\n target: getNavMenuTarget('home'),\n pageName: PageNames.HOME,\n dataTestId: 'home-nav',\n },\n {\n path: routeUrls.workflows.url({ environment }, {}),\n label: getNavMenuLabel('work'),\n hide: isNavMenuHidden('work'),\n target: getNavMenuTarget('work'),\n pageName: PageNames.WORKFLOWS,\n dataTestId: 'work-nav',\n },\n {\n path: routeUrls.performance.url({ environment }, null),\n label: getNavMenuLabel('performance'),\n hide: isNavMenuHidden('performance'),\n target: getNavMenuTarget('performance'),\n pageName: PageNames.PERFORMANCE,\n dataTestId: 'performance-nav',\n },\n {\n path: routeUrls.people.url({ environment }, null),\n label: getNavMenuLabel('people'),\n hide: isNavMenuHidden('people'),\n target: getNavMenuTarget('people'),\n pageName: PageNames.PEOPLE,\n dataTestId: 'people-nav',\n },\n {\n path: routeUrls.thingsGroups.url({ environment }, null),\n label: getNavMenuLabel('assets'),\n hide: isNavMenuHidden('assets'),\n target: getNavMenuTarget('assets'),\n pageName: PageNames.THING_TYPES,\n dataTestId: 'assets-nav',\n },\n ].filter((item) => !item.hide);\n }, [environment, getNavMenuLabel, getNavMenuTarget, isNavMenuHidden]);\n\n return { pages, isActive: isActiveNavMenu };\n}\n","import { useLocation } from 'react-router-dom';\nimport { useCallback } from 'react';\nimport { TNavbarPage, useHasFeature } from '@diana/core';\nimport { useNavMenuItems } from './useNavMenuItems';\nimport { DianaFeaturesEnum } from '@diana/core/build/models/Core';\n\nexport function useIsActiveNavMenuItem() {\n const location = useLocation();\n const path = location.pathname;\n const { isNavMenuHidden } = useNavMenuItems();\n const hasToShowEntitiesOnWorkPage = !!useHasFeature(DianaFeaturesEnum.ShowAssetsOnWorkPage);\n\n return useCallback(\n (page: TNavbarPage) => {\n if (page.path === path) return true;\n const isUrlUnderWorkflows =\n path.split('/')[2]?.includes('workboard') || path.includes('work');\n const isUrlUnderThings = path.split('/')[2]?.includes('things');\n const isUrlUnderAssets = path.split('/')[2]?.includes('assets');\n const isUrlUnderThingDetails = path.split('/')[2]?.includes('thing');\n const isUrlUnderAssetDetails = path.split('/')[2]?.includes('asset');\n const isUrlUnderPerformance = path.split('/')[2]?.includes('performance');\n const isUrlUnderPeople = path.split('/')[2]?.includes('people');\n\n const isWorkflowsPage = page.path.split('/')[2]?.includes('workflows');\n const isThingsPage = page.path.split('/')[2]?.includes('things');\n const isAssetsPage = page.path.split('/')[2]?.includes('assets');\n const isThingDetailsPage = page.path.split('/')[2]?.includes('thing');\n const isAssetDetailsPage = page.path.split('/')[2]?.includes('asset');\n const isPerformancePage = page.path.split('/')[2]?.includes('performance');\n const isPeoplePage = page.path.split('/')[2]?.includes('people');\n\n const hasAssetPage = !isNavMenuHidden('assets');\n const isAssetPageOnWorkflowsPage =\n (isUrlUnderThings || isUrlUnderThingDetails) &&\n (isUrlUnderAssets || isUrlUnderAssetDetails) &&\n isWorkflowsPage &&\n !hasAssetPage &&\n hasToShowEntitiesOnWorkPage;\n\n return (\n (isUrlUnderWorkflows && isWorkflowsPage) ||\n (isUrlUnderThings && isThingsPage) ||\n (isUrlUnderThingDetails && isThingDetailsPage) ||\n (isUrlUnderAssets && isAssetsPage) ||\n (isUrlUnderAssetDetails && isAssetDetailsPage) ||\n (isUrlUnderPerformance && isPerformancePage) ||\n (isUrlUnderPeople && isPeoplePage) ||\n isAssetPageOnWorkflowsPage\n );\n },\n [hasToShowEntitiesOnWorkPage, isNavMenuHidden, path],\n );\n}\n","export const ONBOARDING_PAGE_NS = 'pages/OnboardingPage';\n\nexport const i18n = {\n en: {\n title: 'Onboarding',\n buttons: {\n back: 'Back',\n continue: 'Continue',\n },\n error: {\n ecosystem: {\n validation: {\n symbols: 'Special characters and spaces aren’t allowed.',\n invalid: 'Name doesn’t look quite right. Try again!',\n short: 'Ecosystem name needs to be at least 3 characters long.',\n repeat: 'Please avoid using 3 or more repeated characters in a row.',\n exist: 'Looks like this name is already taken.',\n reserved: 'This name is reserved. Contact Rise-X support for help.',\n },\n },\n },\n stepper: '{{currentStep}} of {{totalSteps}} steps',\n industries: {\n technology: 'Technology and Innovation',\n goods: 'Retail and Consumer Goods',\n food: 'Food and Hospitality',\n healthcare: 'Healthcare and Wellness',\n construction: 'Construction and Real Estate',\n finance: 'Finance and Business Services',\n arts: 'Arts, Media, and Entertainment',\n transportation: 'Transportation and Logistics',\n education: 'Education and Training',\n agriculture: 'Agriculture and Natural Resources',\n manufacturing: 'Manufacturing and Industrial',\n energy: 'Energy and Utilities',\n services: 'Personal and Professional Services',\n sector: 'Public Sector and Non-Profit',\n other: 'Other',\n },\n keyAreas: {\n supply: {\n area: 'Supply chain management',\n tooltip: 'e.g.: procurement, vendor coordination',\n },\n asset: {\n area: 'Asset management',\n tooltip: 'e.g.: lifecycle tracking, maintenance workflows',\n },\n logistics: {\n area: 'Logistics & Distribution',\n tooltip: 'e.g.: delivery tracking, route optimisation',\n },\n operations: {\n area: 'Operations',\n tooltip: 'e.g.: project planning, cross-department workflows',\n },\n compliance: {\n area: 'Compliance & Risk',\n tooltip: 'e.g.: audits, policy enforcement, reporting',\n },\n sustainability: {\n area: 'Sustainability',\n tooltip: 'e.g.: ESG reporting, waste reduction workflows',\n },\n human: { area: 'Human resources', tooltip: 'e.g.: onboarding, performance tracking' },\n customer: {\n area: 'Customer experience',\n tooltip: 'e.g.: feedback collection, customer support coordination',\n },\n other: { area: 'Other' },\n },\n steps: {\n business: {\n component: {\n title: 'Tell us about your business',\n description: 'We will use it to generate workflows tailored for your business needs.',\n form: {\n company: {\n label: 'Company name',\n placeholder: 'Enter your company name',\n },\n ecosystem: {\n label: 'Ecosystem name',\n placeholder: 'Enter ecosystem name',\n hint: 'Your ecosystem name will appear in your unique ecosystem URL, making it easy to share with your team',\n },\n industry: {\n label: 'Industry',\n placeholder: 'Type to search or select',\n },\n website: {\n label: 'Website URL',\n placeholder: 'Enter your company website',\n },\n },\n },\n banner: {\n title: 'Why it matters?',\n description:\n 'We customise workflows based on your industry and company details, saving you time from day one.',\n },\n },\n keyAreas: {\n component: {\n title: 'Choose your focus areas',\n description: 'Select at least 1 area to help us customise your workflows.',\n suggestions: 'AI suggestions',\n },\n banner: {\n title: 'Optimise your key business processes',\n description:\n 'Rise-X suggests workflows that best fit your business needs, helping you optimise operations in the areas that matter most.',\n },\n },\n ecosystem: {\n component: {\n title: 'Make it yours',\n description: 'All customisations are optional - you can always update these later.',\n color: 'Brand colour',\n theme: 'Default theme',\n },\n banner: {\n title: 'What is ecosystem?',\n description:\n 'By setting up an ecosystem, you create a central hub for managing workflows, data, and collaboration, designed specifically for your business needs.',\n },\n },\n },\n },\n};\n","import { ONBOARDING_PAGE_NS } from './i18n';\nimport { useTranslation } from 'react-i18next';\n\nexport const useIndustryOptions = () => {\n const { t } = useTranslation(ONBOARDING_PAGE_NS);\n\n const industryList = [\n t('industries.technology'),\n t('industries.goods'),\n t('industries.food'),\n t('industries.healthcare'),\n t('industries.construction'),\n t('industries.finance'),\n t('industries.arts'),\n t('industries.transportation'),\n t('industries.education'),\n t('industries.agriculture'),\n t('industries.manufacturing'),\n t('industries.energy'),\n t('industries.services'),\n t('industries.sector'),\n t('industries.other'),\n ];\n\n return industryList;\n};\n","import { ONBOARDING_PAGE_NS } from '../i18n';\nimport { useTranslation } from 'react-i18next';\nimport {\n Autocomplete,\n Box,\n InputAdornment,\n Stack,\n TextField,\n Typography,\n useTheme,\n} from '@mui/material';\nimport { PropsWithChildren, useCallback, useEffect, useMemo, useState } from 'react';\nimport {\n accountsQuery,\n environmentSettingsQuery,\n FormHeader,\n FormTitle,\n Loader,\n useCurrentUserInfo,\n useCurrentUserStore,\n useDebounceValue,\n useOnboardingStore,\n TestNameResults,\n} from '@diana/core';\nimport { OnboardingTestIds } from '../OnboardingPage';\nimport { useQuery } from '@tanstack/react-query';\nimport { useIndustryOptions } from '../useIndustryOptions';\n\nconst FormFieldWrapper = ({ label, children }: PropsWithChildren<{ label: string }>) => {\n return (\n \n \n \n \n {children}\n \n );\n};\n\nexport const BusinessForm = () => {\n const { t } = useTranslation(ONBOARDING_PAGE_NS);\n const { palette } = useTheme();\n const info = useCurrentUserInfo();\n const industries = useIndustryOptions();\n\n const [errorMessage, setErrorMessage] = useState(null);\n\n const companyName = useOnboardingStore((store) => store.companyName);\n const setCompanyName = useOnboardingStore((store) => store.setCompanyName);\n const ecosystemName = useOnboardingStore((store) => store.ecosystemName) ?? '';\n const setEcosystemName = useOnboardingStore((store) => store.setEcosystemName);\n const industry = useOnboardingStore((store) => store.industry) ?? '';\n const setIndustry = useOnboardingStore((store) => store.setIndustry);\n const websiteUrl = useOnboardingStore((store) => store.websiteUrl);\n const setWebsiteUrl = useOnboardingStore((store) => store.setWebsiteUrl);\n const isError = useOnboardingStore((store) => store.isError);\n const setIsError = useOnboardingStore((store) => store.setIsError);\n const isLoadingRequest = useOnboardingStore((store) => store.isLoadingRequest);\n const setIsLoadingRequest = useOnboardingStore((store) => store.setIsLoadingRequest);\n const generatedEcosystemName = useOnboardingStore((store) => store.generatedEcosystemName);\n const isCompanyOwner = useCurrentUserStore((store) => store.isCompanyOwner());\n\n const ecosystemNameDebounced = useDebounceValue(ecosystemName, 200);\n\n const clearError = useCallback(() => {\n setIsError(false);\n setErrorMessage(null);\n }, [setIsError, setErrorMessage]);\n\n const setError = useCallback(\n (errorMessage: string) => {\n setIsError(true);\n setErrorMessage(errorMessage);\n },\n [setIsError, setErrorMessage],\n );\n\n const isGenericEmailQuery = accountsQuery.isGenericEmail();\n const { data: isGenericEmail } = useQuery({\n queryKey: isGenericEmailQuery.key,\n queryFn: () => isGenericEmailQuery.fn({ email: info?.email ?? '' }),\n enabled: !!info?.email,\n });\n\n const domain = info?.email?.split('@')[1] ?? '';\n\n const validateEcosystemNameQuery = environmentSettingsQuery.testName({\n environmentName: ecosystemNameDebounced,\n });\n\n useQuery({\n queryKey: validateEcosystemNameQuery.key,\n queryFn: async () => {\n if (!ecosystemNameDebounced || generatedEcosystemName) {\n return clearError();\n }\n if (!/^[\\w\\d_-]+$/g.test(ecosystemNameDebounced)) {\n return setError(t('error.ecosystem.validation.symbols'));\n }\n\n setIsLoadingRequest(true);\n const result = await validateEcosystemNameQuery.fn();\n\n if (!result.allowed && ecosystemNameDebounced !== generatedEcosystemName) {\n setIsLoadingRequest(false);\n\n switch (result.result) {\n case TestNameResults.Modified:\n return setError(t('error.ecosystem.validation.symbols'));\n case TestNameResults.NameTooShort:\n return setError(t('error.ecosystem.validation.short'));\n case TestNameResults.RepeatedCharError:\n return setError(t('error.ecosystem.validation.repeat'));\n case TestNameResults.EnvironmentExists:\n return setError(t('error.ecosystem.validation.exist'));\n case TestNameResults.EnvironmentReserved:\n return setError(t('error.ecosystem.validation.reserved'));\n case TestNameResults.EnvironmentNameValid:\n default:\n return setError(t('error.ecosystem.validation.invalid'));\n }\n }\n\n clearError();\n setIsLoadingRequest(false);\n return result;\n },\n retry: false,\n });\n\n const urlPrefix = useMemo(() => {\n const domain = window.location.hostname;\n return domain.length <= 20 ? `${domain}/` : 'app.rise-x.io/';\n }, []);\n\n useEffect(() => {\n if (info) {\n if (companyName === null) {\n setCompanyName(!isGenericEmail || !isCompanyOwner ? info.companyName : '');\n }\n if (websiteUrl === null) {\n setWebsiteUrl(!isGenericEmail ? domain : '');\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isGenericEmail, info]);\n\n return (\n \n \n {t('steps.business.component.title')}\n \n {t('steps.business.component.description')}\n \n \n \n \n setCompanyName(e.target.value)}\n inputProps={{ 'data-testid': OnboardingTestIds.companyName }}\n placeholder={t('steps.business.component.form.company.placeholder')}\n />\n \n \n \n setEcosystemName(e.target.value)}\n inputProps={{ 'data-testid': OnboardingTestIds.ecosystemName }}\n placeholder={t('steps.business.component.form.ecosystem.placeholder')}\n InputProps={{\n startAdornment: (\n \n {urlPrefix}\n \n ),\n endAdornment: (\n \n {isLoadingRequest ? : null}\n \n ),\n }}\n />\n \n \n \n setIndustry(value)}\n value={industry}\n renderInput={(params) => (\n \n )}\n />\n \n \n setWebsiteUrl(e.target.value)}\n inputProps={{ 'data-testid': OnboardingTestIds.websiteUrl }}\n placeholder={t('steps.business.component.form.website.placeholder')}\n />\n \n \n \n );\n};\n","import { Chip, Stack, Typography, useTheme } from '@mui/material';\nimport { ONBOARDING_PAGE_NS } from '../i18n';\nimport { useTranslation } from 'react-i18next';\nimport ElectricBoltOutlinedIcon from '@mui/icons-material/ElectricBoltOutlined';\nimport { useOnboardingStore } from '@diana/core';\n\nconst AreaChip = ({\n area,\n isActive = false,\n showAiIcon = false,\n}: {\n area: string;\n isActive?: boolean;\n showAiIcon?: boolean;\n}) => {\n const { palette } = useTheme();\n\n const setSelectedKeyAreas = useOnboardingStore((store) => store.setKeyAreas);\n const contrastText = palette.getContrastText(palette.primary.main);\n\n return (\n setSelectedKeyAreas(area)}\n label={area}\n clickable={false}\n icon={\n showAiIcon ? (\n \n ) : undefined\n }\n sx={{\n userSelect: 'none',\n cursor: 'pointer',\n height: 'auto',\n borderRadius: 80,\n backgroundColor: isActive ? palette.primary.main : palette.background.paperLowElevation,\n borderColor: isActive ? palette.primary.main : palette.secondary.muted,\n color: isActive ? contrastText : palette.text.primary,\n transition: '0.3s',\n '& > .MuiChip-label': { px: 1, py: 0.5, fontSize: 14 },\n }}\n />\n );\n};\n\nexport const BusinessKeyAreas = () => {\n const { palette } = useTheme();\n const { t } = useTranslation(ONBOARDING_PAGE_NS);\n\n const selectedkeyAreas = useOnboardingStore((store) => store.keyAreas);\n const aiAreas = useOnboardingStore((store) => store.aiAreas);\n\n const keyAreas = [\n t('keyAreas.supply.area'),\n t('keyAreas.asset.area'),\n t('keyAreas.logistics.area'),\n t('keyAreas.operations.area'),\n t('keyAreas.compliance.area'),\n t('keyAreas.sustainability.area'),\n t('keyAreas.human.area'),\n t('keyAreas.customer.area'),\n t('keyAreas.other.area'),\n ];\n\n return (\n \n \n {t('steps.keyAreas.component.title')}\n \n {t('steps.keyAreas.component.description')}\n \n \n \n {keyAreas.map((area, index) => {\n const isActive = selectedkeyAreas.includes(area);\n return ;\n })}\n \n \n {t('steps.keyAreas.component.suggestions')}\n \n {aiAreas.map((area, index) => {\n const isActive = selectedkeyAreas.includes(area);\n return (\n \n );\n })}\n \n \n \n );\n};\n","import { ONBOARDING_PAGE_NS } from '../i18n';\nimport { useTranslation } from 'react-i18next';\nimport { Box, Stack, Typography, useTheme } from '@mui/material';\nimport {\n EcosystemLogoUploader,\n FormHeader,\n FormTitle,\n IIconSelectorValue,\n ColorPicker,\n ThemeSwitcher,\n useOnboardingStore,\n} from '@diana/core';\n\nexport const CustomiseEcosystem = () => {\n const { t } = useTranslation(ONBOARDING_PAGE_NS);\n const { palette } = useTheme();\n\n const file = useOnboardingStore((store) => store.logoFile);\n const setFile = useOnboardingStore((store) => store.setLogoFile);\n const color = useOnboardingStore((store) => store.color) ?? palette.primary.main;\n const setColor = useOnboardingStore((store) => store.setColor);\n const ecosystemName = useOnboardingStore((store) => store.ecosystemName) ?? '';\n\n const onChangeColor = ({ color }: IIconSelectorValue) => {\n setColor(color);\n };\n\n return (\n \n \n {t('steps.ecosystem.component.title')}\n \n {t('steps.ecosystem.component.description')}\n \n \n \n \n \n \n \n \n \n \n \n \n {t('steps.ecosystem.component.theme')}\n \n \n \n \n \n \n \n );\n};\n","import { dianaAIQuery, useOnboardingStore } from '@diana/core';\nimport { useIndustryOptions } from './useIndustryOptions';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const useCompanyResearch = ({ saveAiAreas = false }: { saveAiAreas?: boolean } = {}) => {\n const industryList = useIndustryOptions();\n\n const setAiAreas = useOnboardingStore((store) => store.setAiAreas);\n const setResearch = useOnboardingStore((store) => store.setResearch);\n const setIndustry = useOnboardingStore((store) => store.setIndustry);\n\n const companyResearchQuery = dianaAIQuery.companyResearch();\n\n return useMutation({\n mutationKey: companyResearchQuery.key,\n mutationFn: ({\n email,\n companyName,\n industries,\n }: {\n email: string;\n companyName: string;\n industries?: string[];\n }) => companyResearchQuery.fn({ industries: industries ?? industryList, email, companyName }),\n onSuccess: (data) => {\n const { research, industry, areas_for_improvement } = data;\n if (saveAiAreas) {\n setAiAreas(areas_for_improvement);\n }\n setIndustry(industry);\n setResearch({ research, industry });\n },\n });\n};\n","import { MutableRefObject, ReactNode, useCallback, useMemo, useRef } from 'react';\nimport { useTheme } from '@mui/material';\nimport {\n CompanyOverviewIllustration,\n HomePageIllustration,\n WorkflowCardsIllustration,\n useCurrentUserInfo,\n useOnboardingStore,\n environmentSettingsQuery,\n isValidColour,\n dianaAIQuery,\n localStorageUtil,\n LocalStorageKey,\n useAppStore,\n companyQuery,\n IEnvironmentSettings,\n getUserName,\n sessionInfoQuery,\n queryClient,\n useSessionInfoOnSuccess,\n axios,\n isEmptyFile,\n} from '@diana/core';\nimport { BusinessForm } from './Steps/BusinessForm';\nimport { ONBOARDING_PAGE_NS } from './i18n';\nimport { BusinessKeyAreas } from './Steps/BusinessKeyAreas';\nimport { CustomiseEcosystem } from './Steps/CustomiseEcosystem';\nimport { useTranslation } from 'react-i18next';\nimport { useMutation } from '@tanstack/react-query';\nimport { routeUrls } from '../../app/Routing/RouteUrls';\nimport { useNavigate } from 'react-router-dom';\nimport { useCompanyResearch } from './useCompanyResearch';\n\nexport interface IOnboardingStep {\n component: ReactNode;\n banner: {\n title: string;\n description: string;\n illustration: ReactNode;\n };\n onSubmit: () => void;\n onCancel?: () => void;\n isLoading?: boolean;\n disableSubmit?: boolean;\n}\n\nexport const useOnboardingPageSteps = () => {\n const { t } = useTranslation(ONBOARDING_PAGE_NS);\n const { palette } = useTheme();\n const abortEcosystemCreate = useRef(new AbortController());\n const abortWorkflowGenerate = useRef(new AbortController());\n const navigate = useNavigate();\n const onSessionInfoSuccess = useSessionInfoOnSuccess();\n const info = useCurrentUserInfo();\n\n const companyName = useOnboardingStore((store) => store.companyName) ?? info?.companyName ?? '';\n const ecosystemName = useOnboardingStore((store) => store.ecosystemName) ?? '';\n const industry = useOnboardingStore((store) => store.industry) ?? '';\n const keyAreas = useOnboardingStore((store) => store.keyAreas);\n const research = useOnboardingStore((store) => store.research);\n const color = useOnboardingStore((store) => store.color) ?? palette.primary.main;\n const websiteUrl = useOnboardingStore((store) => store.websiteUrl) ?? '';\n const logoFile = useOnboardingStore((store) => store.logoFile);\n const setGeneratedEcosystemName = useOnboardingStore((store) => store.setGeneratedEcosystemName);\n const generatedEcosystemName = useOnboardingStore((store) => store.generatedEcosystemName);\n const isError = useOnboardingStore((store) => store.isError);\n const isLoadingRequest = useOnboardingStore((store) => store.isLoadingRequest);\n const setIsLoadingRequest = useOnboardingStore((store) => store.setIsLoadingRequest);\n const clearStore = useOnboardingStore((store) => store.clear);\n const setGlobalLoading = useAppStore((store) => store.setLoading);\n const setIsGeneratingWorkflows = useAppStore((store) => store.setIsGeneratingWorkflows);\n\n const isValidColor = useMemo(() => {\n return isValidColour(color);\n }, [color]);\n\n const handleAbort = useCallback((ref: MutableRefObject) => {\n ref.current.abort();\n ref.current = new AbortController();\n }, []);\n\n const updateEcosystem = useCallback(\n async (body: Partial) => {\n return await environmentSettingsQuery\n .updateEnvironment()\n .fn({ environmentName: ecosystemName, body });\n },\n [ecosystemName],\n );\n\n // 1st step functionality\n const { mutate: researchCompany, isPending: isResearchingCompany } = useCompanyResearch();\n\n const createQuery = environmentSettingsQuery.create();\n const { mutate: createEcosystem, isPending: isCreatingEcosystem } = useMutation({\n mutationKey: createQuery.key,\n mutationFn: () =>\n createQuery.fn({\n ecosystem: {\n name: ecosystemName,\n description: ecosystemName,\n colors: {\n primary: palette.primary.main,\n text: palette.getContrastText(palette.primary.main),\n },\n },\n abort: abortEcosystemCreate.current,\n }),\n onSuccess: (settings) => {\n setGeneratedEcosystemName(settings.name);\n },\n });\n const handleCreateEcosystem = useCallback(() => {\n if (!generatedEcosystemName) {\n createEcosystem();\n }\n if (industry !== research?.industry) {\n researchCompany({ companyName, email: info!.email, industries: [industry] });\n }\n }, [\n generatedEcosystemName,\n createEcosystem,\n researchCompany,\n industry,\n research,\n companyName,\n info,\n ]);\n\n // 2nd step functionality\n const createWorkflowsQuery = dianaAIQuery.createSeveralWorkflows();\n const { mutate: createWorkflows } = useMutation({\n mutationKey: createWorkflowsQuery.key,\n mutationFn: () =>\n createWorkflowsQuery.fn({\n ecosystem: ecosystemName,\n query: {\n industry,\n website_url: websiteUrl,\n company_research: research?.research ?? '',\n company_name: companyName,\n areas_for_improvement: keyAreas,\n },\n abort: abortWorkflowGenerate.current,\n }),\n onSuccess: () => localStorageUtil.removeItem({ key: LocalStorageKey.isGeneratingFlows }),\n onSettled: () => setIsGeneratingWorkflows(false),\n });\n const handleCreateWorkflows = useCallback(() => {\n setIsGeneratingWorkflows(true);\n createWorkflows();\n }, [setIsGeneratingWorkflows, createWorkflows]);\n\n // 3rd step functionality\n const handleRedirect = useCallback(async () => {\n axios.setEnvironment(ecosystemName.toLowerCase());\n setGlobalLoading(true);\n\n if (palette.primary.main !== color) {\n await updateEcosystem({\n colors: { primary: color, text: palette.getContrastText(color) },\n });\n }\n\n if (info?.companyName !== companyName) {\n await companyQuery.update().fn({ company: { ...info!.company, displayName: companyName } });\n }\n\n if (logoFile && !isEmptyFile(logoFile)) {\n await environmentSettingsQuery\n .updateLogo()\n .fn({ environmentName: ecosystemName, file: logoFile });\n }\n\n const isGeneratingFlows = useAppStore.getState().isGeneratingWorkflows;\n if (isGeneratingFlows) {\n localStorageUtil.setItem({\n key: LocalStorageKey.isGeneratingFlows,\n value: 'true',\n });\n }\n\n const { key, fn: getSession } = sessionInfoQuery.get();\n const sessionInfo = await getSession({ trackEnvironment: true });\n queryClient.setQueryData(key, sessionInfo);\n onSessionInfoSuccess(sessionInfo);\n\n // notify user via email that ecosystem is created\n environmentSettingsQuery.createComplete().fn();\n\n const redirectUrl = routeUrls.workflows.url({ environment: ecosystemName }, {});\n const priceId = localStorageUtil.getItem({ key: LocalStorageKey.billingPriceId });\n\n if (priceId && info?.isUserCompanyOwner) {\n localStorageUtil.setItem({\n key: LocalStorageKey.billingRedirectSuccess,\n value: redirectUrl,\n });\n\n navigate(routeUrls.checkout.url(null, null));\n } else {\n navigate(redirectUrl, { replace: true });\n }\n\n clearStore();\n setGlobalLoading(false);\n }, [\n onSessionInfoSuccess,\n navigate,\n setGlobalLoading,\n ecosystemName,\n companyName,\n info,\n clearStore,\n color,\n logoFile,\n palette,\n updateEcosystem,\n ]);\n\n const steps: IOnboardingStep[] = [\n {\n component: ,\n banner: {\n title: t('steps.business.banner.title'),\n description: t('steps.business.banner.description'),\n illustration: (\n \n ),\n },\n onSubmit: () => handleCreateEcosystem(),\n disableSubmit: !companyName || !ecosystemName || !industry || isLoadingRequest || isError,\n },\n {\n component: ,\n banner: {\n title: t('steps.keyAreas.banner.title'),\n description: t('steps.keyAreas.banner.description'),\n illustration: ,\n },\n onSubmit: () => handleCreateWorkflows(),\n onCancel: () => {\n handleAbort(abortEcosystemCreate);\n setIsLoadingRequest(false);\n },\n isLoading: !!keyAreas.length && (isCreatingEcosystem || isResearchingCompany),\n disableSubmit: !keyAreas.length || isCreatingEcosystem,\n },\n {\n component: ,\n banner: {\n title: t('steps.ecosystem.banner.title'),\n description: t('steps.ecosystem.banner.description'),\n illustration: (\n \n ),\n },\n onSubmit: () => handleRedirect(),\n onCancel: () => handleAbort(abortWorkflowGenerate),\n disableSubmit: !isValidColor,\n },\n ];\n\n return steps;\n};\n","import { Box, Stack, useTheme } from '@mui/material';\n\nexport const OnboardingStepper = ({\n length,\n currentIndex,\n}: {\n length: number;\n currentIndex: number;\n}) => {\n const { palette } = useTheme();\n const array = new Array(length).fill(null);\n return (\n \n {array.map((_, index) => {\n const isCurrentStep = currentIndex === index;\n return (\n \n );\n })}\n \n );\n};\n","import { LoadingButton } from '@mui/lab';\nimport { Button, Stack, useTheme } from '@mui/material';\nimport { OnboardingTestIds } from './OnboardingPage';\nimport { useOnboardingStore } from '@diana/core';\nimport { ONBOARDING_PAGE_NS } from './i18n';\nimport { useTranslation } from 'react-i18next';\nimport { useCallback } from 'react';\n\nexport interface IOnboardingButtons {\n stepsLength: number;\n onCancel?: () => void;\n onSubmit?: () => void;\n isLoading?: boolean;\n disableSubmitButton?: boolean;\n}\n\nexport const OnboardingButtons = ({\n stepsLength,\n onCancel,\n onSubmit,\n isLoading = false,\n disableSubmitButton = false,\n}: IOnboardingButtons) => {\n const { palette } = useTheme();\n const { t } = useTranslation(ONBOARDING_PAGE_NS);\n\n const currentStepIndex = useOnboardingStore((store) => store.stepIndex);\n const setCurrentStepIndex = useOnboardingStore((store) => store.setStepIndex);\n\n const handleBackClick = useCallback(() => {\n onCancel?.();\n setCurrentStepIndex(currentStepIndex - 1);\n }, [setCurrentStepIndex, currentStepIndex, onCancel]);\n\n const handleNextClick = useCallback(() => {\n onSubmit?.();\n if (currentStepIndex !== stepsLength - 1) {\n setCurrentStepIndex(currentStepIndex + 1);\n }\n }, [setCurrentStepIndex, stepsLength, currentStepIndex, onSubmit]);\n\n return (\n \n \n {t('buttons.back')}\n \n \n {t('buttons.continue')}\n \n \n );\n};\n","import { Box, GlobalStyles, Stack, Typography, useMediaQuery, useTheme } from '@mui/material';\nimport {\n axios,\n PageNames,\n useSessionInfo,\n DEFAULT_ECOSYSTEM_NAME,\n useSessionInfoOnSuccess,\n generateTestIds,\n useOnboardingStore,\n useAppStore,\n FixedHeadersSpacer,\n useNavbarStore,\n PageLoader,\n localStorageUtil,\n LocalStorageKey,\n useLocationTrackingForCreateEnvironment,\n useCurrentUserInfo,\n} from '@diana/core';\nimport { useTranslation } from 'react-i18next';\nimport { ONBOARDING_PAGE_NS } from './i18n';\nimport { useOnboardingPageSteps } from './useOnboardingPageSteps';\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { OnboardingStepper } from './OnboardingStepper';\nimport { OnboardingButtons } from './OnboardingButtons';\nimport { useCompanyResearch } from './useCompanyResearch';\n\nexport const OnboardingTestIds = generateTestIds('Onboarding', [\n 'companyName',\n 'ecosystemName',\n 'industry',\n 'websiteUrl',\n 'goBack',\n 'onCancel',\n 'continue',\n]);\n\nexport const OnboardingPage = () => {\n const { palette, breakpoints } = useTheme();\n const { t } = useTranslation(ONBOARDING_PAGE_NS);\n const onSessionInfoSuccess = useSessionInfoOnSuccess();\n const infoFromStore = useCurrentUserInfo();\n const bannerRef = useRef(null);\n const mainContentRef = useRef(null);\n const isSmallHeight = useRef(false);\n const isLargeDevice = useMediaQuery(breakpoints.up(1100));\n\n axios.setEnvironment(DEFAULT_ECOSYSTEM_NAME);\n const anonId = localStorageUtil.getItem({ key: LocalStorageKey.anonId }) ?? '';\n useLocationTrackingForCreateEnvironment({ anonId }, { trackOnMount: true });\n\n const [isInfoUpdated, setIsInfoUpdated] = useState(false);\n\n const navbarHeight = useNavbarStore((store) => store.getHeight());\n const setCurrentPageName = useAppStore((store) => store.setCurrentPageName);\n const setCurrentPageTitle = useAppStore((store) => store.setCurrentPageTitle);\n const currentStepIndex = useOnboardingStore((store) => store.stepIndex);\n const research = useOnboardingStore((store) => store.research);\n\n const { mutate: researchCompany, isPending: isResearchingCompany } = useCompanyResearch({\n saveAiAreas: true,\n });\n const {\n data: info,\n isFetchedAfterMount,\n isLoading: isLoadingInfo,\n } = useSessionInfo({ ecosystem: DEFAULT_ECOSYSTEM_NAME });\n\n const steps = useOnboardingPageSteps();\n const canCreateEcosystem = info?.features?.environmentCreate ?? false;\n const stepsLength = steps.length;\n const {\n component,\n banner,\n onSubmit,\n onCancel,\n isLoading: submitLoadingState,\n disableSubmit,\n } = useMemo(() => {\n return steps[currentStepIndex];\n }, [steps, currentStepIndex]);\n const isContentLoading =\n !isInfoUpdated || isLoadingInfo || isResearchingCompany || !info || !research;\n\n const handleHeights = useCallback(() => {\n if (mainContentRef.current && bannerRef.current && isLargeDevice) {\n const mainContentHeight = mainContentRef.current.clientHeight + 144; // padding\n const bannerHeight = bannerRef.current.clientHeight;\n\n if (bannerHeight <= mainContentHeight && !isSmallHeight.current) {\n isSmallHeight.current = true;\n bannerRef.current.style.minHeight = `${mainContentHeight}px`;\n }\n if (bannerHeight > mainContentHeight && isSmallHeight.current) {\n isSmallHeight.current = false;\n bannerRef.current.style.minHeight = 'auto';\n }\n }\n }, [mainContentRef, bannerRef, isLargeDevice]);\n\n useEffect(() => {\n handleHeights();\n\n window.addEventListener('resize', () => handleHeights());\n return () => {\n window.removeEventListener('resize', () => handleHeights());\n };\n }, [handleHeights]);\n\n useEffect(() => {\n if (!!info && !research) {\n researchCompany({ email: info.email, companyName: info.companyName });\n }\n }, [info, research, researchCompany]);\n\n useEffect(() => {\n if (infoFromStore?.environmentSettings?.id === info?.environmentSettings?.id) {\n setIsInfoUpdated(true);\n }\n }, [info, infoFromStore, setIsInfoUpdated]);\n\n useEffect(() => {\n if (!isLoadingInfo && !canCreateEcosystem) {\n window.location.assign('https://www.rise-x.io/pricing');\n }\n }, [isLoadingInfo, canCreateEcosystem]);\n\n useEffect(() => {\n setCurrentPageTitle(t('title'));\n setCurrentPageName(PageNames.CREATE_ENVIRONMENT);\n\n if (!!info && !isFetchedAfterMount) {\n onSessionInfoSuccess(info);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n {t('stepper', { currentStep: currentStepIndex + 1, totalSteps: stepsLength })}\n \n \n {component}\n \n \n \n \n \n {isLargeDevice ? (\n \n \n \n {banner.title}\n {banner.description}\n \n \n {banner.illustration}\n \n \n \n ) : null}\n \n \n \n );\n};\n","export const SELECT_ECOSYSTEM_PAGE_NS = 'pages/SelectEcosystemPage';\n\nexport const i18n = {\n en: {\n title: 'Select Ecosystem',\n },\n};\n","import { useEffect } from 'react';\nimport { Box, useMediaQuery, useTheme } from '@mui/material';\nimport {\n axios,\n PageLayout,\n PageNames,\n SelectEcosystem,\n useSessionInfo,\n useSessionInfoOnSuccess,\n DEFAULT_ECOSYSTEM_NAME,\n useEcosystemSelectData,\n} from '@diana/core';\nimport { useTranslation } from 'react-i18next';\nimport { SELECT_ECOSYSTEM_PAGE_NS } from './i18n';\n\nexport const SelectEcosystemPage = () => {\n const { breakpoints } = useTheme();\n const { t } = useTranslation(SELECT_ECOSYSTEM_PAGE_NS);\n const onSessionInfoUpdate = useSessionInfoOnSuccess();\n\n axios.setEnvironment(DEFAULT_ECOSYSTEM_NAME);\n const { data: info, isFetchedAfterMount } = useSessionInfo({ ecosystem: DEFAULT_ECOSYSTEM_NAME });\n const { isInitiallyLoading, hadLastFetch, setSkippedItems, subscriptions, isLoading } =\n useEcosystemSelectData(info);\n const isLargeDevice = useMediaQuery(breakpoints.up('sm'));\n\n useEffect(() => {\n if (!!info && !isFetchedAfterMount) {\n onSessionInfoUpdate(info);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n \n {!isInitiallyLoading ? (\n \n \n \n ) : null}\n \n );\n};\n","export const WORKFLOWS_PAGE_NS = 'pages/WorkflowsPage';\n\nexport const i18n = {\n en: {\n titles: {\n buildWorkflow: 'Start building your first workflow',\n draftFlow: 'Draft flow',\n craftWorkflow: 'We’re crafting your workflows. Almost there!',\n },\n descriptions: {\n checkKnowledgeBase: 'Check our Knowledge Base to learn more',\n buildWorkflow:\n 'Build your multi-party workflow in minutes and create highly connected, trust-based ecosystems that operate at a global scale.',\n workflowAvailability:\n 'The workflow builder is currently only available on tablet or desktop. We are working on a mobile version to provide a better experience.',\n craftWorkflow: 'It could take up to 30 seconds',\n },\n buttons: {\n workflowBuilder: 'Build my first workflow',\n takeATour: 'Take a tour',\n },\n tutorialModal: {\n stepActions: {\n prev: 'Prev',\n next: 'Next',\n skip: 'Skip',\n done: 'Done',\n },\n },\n actions: {\n edit: 'Edit workflow',\n continueEditing: 'Continue Editing',\n showVersion: 'Show workflow version',\n },\n entityGroupCard: {\n totalItems: 'items',\n },\n },\n};\n","import {\n CardContainer,\n EntityGroupWorkflowCard,\n EntityGroupWorkflowCardFooter,\n flowsQuery,\n useEnvironment,\n useFlowActions,\n} from '@diana/core';\nimport { IFlow } from '@diana/core/build/models/Flow';\nimport { Fragment, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { routeUrls } from '../../app/Routing/RouteUrls';\nimport { WORKFLOWS_PAGE_NS } from './i18n';\nimport { SxProps } from '@mui/system';\n\nexport const WorkflowCard = (props: {\n flow: IFlow;\n refetch: () => void;\n setProcessing: (status: boolean) => void;\n containerSx?: SxProps;\n}) => {\n const { t } = useTranslation(WORKFLOWS_PAGE_NS);\n const { flow, containerSx = {} } = props;\n const environment = useEnvironment();\n const { id: flowId, imageUrl, displayName, totalWorkItems, icon } = flow;\n\n const { actions, renderActionsElements } = useFlowActions({\n flowsQuery,\n ...props,\n actions: {\n edit: { title: flow.draftFlowId ? t('actions.continueEditing') : t('actions.edit') },\n version: { title: t('actions.showVersion') },\n },\n });\n\n const iconValue = { imageUrl, icon: icon?.shape ?? '', color: icon?.color ?? '' };\n\n const Footer = useMemo(() => {\n return ;\n }, [totalWorkItems]);\n\n return (\n \n \n \n \n\n {renderActionsElements()}\n \n );\n};\n","import {\n CardContainer,\n EntityGroupWorkflowCard,\n IFlow,\n flowsQuery,\n useFlowActions,\n} from '@diana/core';\nimport { Stack, Typography, CircularProgress } from '@mui/material';\nimport { capitalize, noop } from 'lodash';\nimport { Fragment } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { WORKFLOWS_PAGE_NS } from './i18n';\n\nexport const WorkflowDraftCard = (props: {\n flow: IFlow;\n refetch: () => void;\n setProcessing: (status: boolean) => void;\n}) => {\n const { t } = useTranslation(WORKFLOWS_PAGE_NS);\n const { flow } = props;\n const { imageUrl, displayName, icon } = flow;\n\n const editActionTitle = t('actions.continueEditing');\n\n const { actions, renderActionsElements } = useFlowActions({\n flowsQuery,\n ...props,\n actions: {\n edit: { title: editActionTitle },\n version: { title: t('actions.showVersion') },\n },\n });\n\n const editAction = actions?.find((a) => a.title === editActionTitle);\n\n const iconValue = { imageUrl, icon: icon?.shape ?? '', color: icon?.color ?? '' };\n\n return (\n \n \n editAction?.onClick?.({ close: noop })}\n title={\n \n \n {displayName || capitalize(t('titles.draftFlow'))}\n \n {!!editAction?.loading && }\n \n }\n subTitle=\"\"\n actions={actions}\n icon={iconValue}\n />\n \n {renderActionsElements()}\n \n );\n};\n","import { useTranslation } from 'react-i18next';\nimport { Avatar, useTheme } from '@mui/material';\nimport { LightbulbOutlined as LightBulbIcon } from '@mui/icons-material';\nimport {\n DesktopDeviceIllustration,\n EmptyView,\n getDeviceType,\n IEmptyViewAction,\n useHasFeature,\n DianaFeaturesEnum,\n generateTestIds,\n DianaAssistantType,\n useDianaAssistantStore,\n WorkflowGenerateIllustration,\n} from '@diana/core';\nimport { WORKFLOWS_PAGE_NS } from './i18n';\n\nconst WorkflowsEmptyViewTestIds = generateTestIds('WorkflowsEmptyView', [\n 'takeATourButton',\n 'buildMyFirstWorkflowButton',\n 'checkKnowledgeBaseButton',\n]);\n\nfunction BulbIcon() {\n const { palette } = useTheme();\n\n return (\n \n \n \n );\n}\n\nexport const WorkflowsEmptyView = () => {\n const { t } = useTranslation(WORKFLOWS_PAGE_NS);\n const setAssistantType = useDianaAssistantStore((store) => store.setAssistantType);\n const { isMobile } = getDeviceType();\n\n const canCreateFlow = useHasFeature(DianaFeaturesEnum.WorkflowCreate);\n\n return (\n : }\n title={isMobile ? '' : t('titles.buildWorkflow')}\n description={\n isMobile ? t('descriptions.workflowAvailability') : t('descriptions.buildWorkflow')\n }\n actionsDirection={'row'}\n actions={\n [\n !isMobile && canCreateFlow\n ? {\n label: t('buttons.workflowBuilder'),\n onClick: () => setAssistantType(DianaAssistantType.BuildWorkflow),\n dataTestId: WorkflowsEmptyViewTestIds.buildMyFirstWorkflowButton,\n }\n : null,\n ].filter((action) => Boolean(action)) as IEmptyViewAction[]\n }\n tip={{\n icon: ,\n description: t('descriptions.checkKnowledgeBase'),\n dataTestId: WorkflowsEmptyViewTestIds.checkKnowledgeBaseButton,\n link: {\n label: t('descriptions.checkKnowledgeBase'),\n href: 'https://help.rise-x.io/',\n target: '_blank',\n isIcon: true,\n },\n }}\n />\n );\n};\n","export const THINGS_GROUP_PAGE_NS = 'pages/ThingsGroupPage';\n\nexport const i18n = {\n en: {\n titles: {\n drafts: 'Drafts',\n draftAssetType: 'Draft asset type',\n addFirstAssetType: \"Let's add your first asset\",\n },\n descriptions: {\n checkKnowledgeBase: 'Check our Knowledge Base to learn more',\n createAssetType:\n 'Create digital twins of your assets and start transforming how the world works.',\n },\n buttons: {\n buildNewAssetType: 'Build new asset type',\n importAssets: 'Import assets',\n },\n actions: {\n manage: 'Manage asset type',\n edit: 'Edit asset type',\n continueEditing: 'Continue editing',\n showVersion: 'Show asset type version',\n },\n totalWorkItems: {\n totalItems: 'items',\n },\n },\n};\n","import {\n CardContainer,\n EntityGroupWorkflowCard,\n EntityGroupWorkflowCardFooter,\n useAssetTypeActions,\n useEnvironment,\n} from '@diana/core';\nimport { routeUrls } from '../../app/Routing/RouteUrls';\nimport { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { THINGS_GROUP_PAGE_NS } from './i18n';\nimport { SxProps } from '@mui/system';\n\nexport interface IEntityGroupCard {\n entity: any;\n refetch: () => void;\n setProcessing: (status: boolean) => void;\n containerSx?: SxProps;\n peoplePage?: boolean;\n}\n\nexport const ThingsGroupCard = (props: IEntityGroupCard) => {\n const { t } = useTranslation(THINGS_GROUP_PAGE_NS);\n const { entity, containerSx, peoplePage } = props;\n const { imageUrl, totalList: totalItems, flow } = entity;\n const environment = useEnvironment();\n const urlBuilder = peoplePage ? routeUrls.assets : routeUrls.things;\n const { actions } = useAssetTypeActions({\n flow,\n ...props,\n actions: {\n edit: { title: flow?.draftFlowId ? t('actions.continueEditing') : t('actions.edit') },\n manage: { title: t('actions.manage') },\n version: { title: t('actions.showVersion') },\n },\n });\n\n const iconValue = { imageUrl, icon: flow?.icon?.shape ?? '', color: flow?.icon?.color ?? '' };\n\n const Footer = useMemo(() => {\n return ;\n }, [totalItems]);\n\n return (\n <>\n \n \n \n \n );\n};\n","import { routeUrls } from '../app/Routing/RouteUrls';\nimport { DianaFeaturesEnum, useEnvironment, useFeatures } from '@diana/core';\nimport { useMemo } from 'react';\nimport { useNavMenuItems } from './useNavMenuItems';\n\nexport function useBreadcrumbsRoot(forPage: 'work' | 'performance' | 'people' | 'assets' | 'home') {\n const environment = useEnvironment();\n const { getNavMenuLabel } = useNavMenuItems();\n const assets = useAssetsBreadcrumbsRoot();\n const roots = useMemo(\n () => ({\n home: {\n title: getNavMenuLabel('home'),\n link: routeUrls.home.url({ environment }, {}),\n },\n work: {\n title: getNavMenuLabel('work'),\n link: routeUrls.workflows.url({ environment }, {}),\n },\n performance: {\n title: getNavMenuLabel('performance'),\n link: routeUrls.performance.url({ environment }, null),\n },\n people: {\n title: getNavMenuLabel('people'),\n link: routeUrls.people.url({ environment }, null),\n },\n assets,\n }),\n [getNavMenuLabel, environment, assets],\n );\n return roots[forPage];\n}\n\nexport function useAssetsBreadcrumbsRoot() {\n const environment = useEnvironment();\n const { getNavMenuLabel, isNavMenuHidden } = useNavMenuItems();\n const hasAssetPage = !isNavMenuHidden('assets');\n const hasToShowEntitiesOnWorkPage = !!useFeatures()[DianaFeaturesEnum.ShowAssetsOnWorkPage];\n if (!hasAssetPage && hasToShowEntitiesOnWorkPage) {\n return {\n title: getNavMenuLabel('work'),\n link: routeUrls.workflows.url({ environment }, {}),\n };\n }\n\n return {\n title: getNavMenuLabel('assets'),\n link: routeUrls.thingsGroups.url({ environment }, null),\n };\n}\n","import { Box, Stack, Typography, useTheme } from '@mui/material';\nimport { Loader, WorkflowGenerateIllustration } from '@diana/core';\nimport { WORKFLOWS_PAGE_NS } from './i18n';\nimport { useTranslation } from 'react-i18next';\n\nexport const WorkflowsGenerateEmptyView = () => {\n const { t } = useTranslation(WORKFLOWS_PAGE_NS);\n const { palette } = useTheme();\n\n return (\n \n \n \n \n \n {t('titles.craftWorkflow')}\n {t('descriptions.craftWorkflow')}\n \n \n \n );\n};\n","import { CardContainer, DefaultSkeletonLoader, Skeleton } from '@diana/core';\nimport { alpha, Card, useTheme } from '@mui/material';\n\nexport const WorkflowSkeletonCard = () => {\n const { palette } = useTheme();\n const bgColor = alpha(palette.background.paper, 0.5);\n\n const skeletonLayout = [\n {\n animation: 'wave',\n variant: 'rounded',\n width: 36,\n height: 36,\n sx: { mb: 4 },\n },\n {\n animation: 'wave',\n variant: 'text',\n width: 62,\n height: 12,\n sx: { mb: 0.5, transform: 'none' },\n },\n {\n animation: 'wave',\n variant: 'text',\n width: 124,\n height: 12,\n sx: { transform: 'none' },\n },\n ];\n\n return (\n \n \n }\n boxPadding={0}\n />\n \n \n );\n};\n","import { useCallback, useMemo, useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { Box, Grid, Stack, Typography } from '@mui/material';\nimport { AddRounded as AddIcon } from '@mui/icons-material';\nimport {\n Breadcrumbs,\n configureFlowQuery,\n DianaFeaturesEnum,\n FlowResourceType,\n PageLayout,\n PageNames,\n useCurrentUserStore,\n useDynamicBackground,\n useEntities,\n useEnvironment,\n useFeatures,\n useLocationTrackingForWorkflows,\n useWorkflows,\n HeaderWithScrollables,\n ActionButton,\n useCreateWorkflowActions,\n useAppStore,\n localStorageUtil,\n LocalStorageKey,\n} from '@diana/core';\nimport { WorkflowCard } from './WorkflowCard';\nimport { WorkflowDraftCard } from './WorkflowDraftCard';\nimport { WorkflowsEmptyView } from './WorkflowsEmptyView';\nimport { ThingsGroupCard } from '../ThingsGroupsPage/ThingsGroupCard';\nimport { useBreadcrumbsRoot } from '../../hooks/useBreadcrumbsRoot';\nimport { isEqual } from 'lodash';\nimport { WorkflowsGenerateEmptyView } from './WorkflowsGenerateEmptyView';\nimport { WorkflowSkeletonCard } from './WorkflowSkeletonCard';\n\nexport const WorkflowsPage = () => {\n const [isProcessing, setProcessing] = useState(false);\n\n useLocationTrackingForWorkflows({ trackOnMount: true });\n\n const features = useFeatures();\n const environmentName = useEnvironment();\n const images = useCurrentUserStore(\n (state) => ({\n lightImage: state.info?.environmentSettings?.lightBackgroundImage,\n darkImage: state.info?.environmentSettings?.darkBackgroundImage,\n }),\n isEqual,\n );\n const isGeneratingWorkflows = useAppStore((store) => store.isGeneratingWorkflows);\n\n const createWorkflow = useCreateWorkflowActions();\n\n const { hasImage } = useDynamicBackground(images);\n\n const onFetchFinished = useCallback(() => setProcessing(false), []);\n const {\n data,\n isLoading: isLoadingFlows,\n isFetched: isFlowsFetched,\n refetch,\n isRefetching: isFlowsRefetching,\n } = useWorkflows({\n onSuccess: onFetchFinished,\n onError: onFetchFinished,\n });\n\n const hasToShowEntities =\n Boolean(environmentName) && features[DianaFeaturesEnum.ShowAssetsOnWorkPage];\n\n const {\n data: entities,\n isLoading: isLoadingEntities,\n refetch: refetchEntities,\n } = useEntities({\n onSuccess: onFetchFinished,\n onError: onFetchFinished,\n enabled: hasToShowEntities,\n params: features[DianaFeaturesEnum.ShowAssetsOnWorkPageQueryParams],\n });\n\n const isInitiallyLoadingFlows = isLoadingFlows && !isFlowsFetched;\n const isLoading = isLoadingFlows || (hasToShowEntities && isLoadingEntities);\n const searchDraftQuery = configureFlowQuery.searchDraft({\n environmentName,\n flowResourceType: FlowResourceType.Work,\n });\n const {\n data: draftData,\n isLoading: isLoadingDraftFlows,\n refetch: refetchDraftFlows,\n isRefetching: isDraftFlowsRefetching,\n } = useQuery({\n queryKey: searchDraftQuery.key,\n queryFn: searchDraftQuery.fn,\n enabled: Boolean(environmentName),\n staleTime: 0,\n });\n\n // ensure flows and drafts to be an array\n const flows = useMemo(() => (Array.isArray(data) ? data : []), [data]);\n const draftFlows = useMemo(() => (Array.isArray(draftData) ? draftData : []), [draftData]);\n\n const isGeneratingOnboardingWorkflows =\n !!localStorageUtil.getItem({ key: LocalStorageKey.isGeneratingFlows }) &&\n isGeneratingWorkflows &&\n flows.length <= 1;\n\n const breadcrumbRoot = useBreadcrumbsRoot('work');\n const isContentLoading =\n isLoading ||\n isProcessing ||\n isDraftFlowsRefetching ||\n isFlowsRefetching ||\n createWorkflow.isCreatingEmptyFlow;\n\n return (\n }\n right={\n !!createWorkflow.actions.length &&\n !isContentLoading &&\n !isGeneratingOnboardingWorkflows ? (\n }\n menuWidth={218}\n preventUseMonoActionIcon\n sx={({ spacing }) => ({ height: spacing(4) })}\n >\n {createWorkflow.displayName}\n \n ) : null\n }\n />\n }\n >\n {!isLoading && !isLoadingDraftFlows && !flows.length && !draftFlows.length ? (\n isGeneratingWorkflows ? (\n \n ) : (\n \n )\n ) : isGeneratingOnboardingWorkflows ? (\n \n ) : (\n \n {!!flows.length && (\n \n \n {hasToShowEntities && !isLoadingEntities\n ? entities\n ?.filter((e) => e.flow?.status?.toLocaleLowerCase() === 'active')\n .map((entity) => (\n \n ))\n : null}\n {!isLoadingFlows\n ? flows\n .filter((e) => e.status?.toLocaleLowerCase() === 'active')\n .map((flow) => (\n \n ))\n : null}\n {isGeneratingWorkflows\n ? new Array(5).fill(null).map((_, index) => {\n return ;\n })\n : null}\n \n \n )}\n\n {!!draftFlows.length ? (\n \n \n Drafts\n \n \n {!isLoadingDraftFlows &&\n draftFlows.map((flow) => (\n \n ))}\n \n \n ) : null}\n \n )}\n \n );\n};\n","import {\n DashboardComponentNames,\n DashboardLayout,\n DianaFeaturesEnum,\n homePageQuery,\n IDashboardComponentProperties,\n IDashboardDataGridProperties,\n ILayout,\n PageLayout,\n PageNames,\n useCurrentUserStore,\n useHasFeature,\n} from '@diana/core';\nimport { useBreadcrumbsRoot } from '../../hooks/useBreadcrumbsRoot';\nimport { useQuery } from '@tanstack/react-query';\n\nexport function HomePage() {\n const breadcrumbRoot = useBreadcrumbsRoot('home');\n const isHomePageAvailable = useHasFeature(DianaFeaturesEnum.HomePage);\n const ecosystemName = useCurrentUserStore((store) => store.info?.environmentSettings?.name) ?? '';\n\n const { key, fn } = homePageQuery.getLayout({ ecosystemName });\n const { data, isLoading } = useQuery({\n queryKey: key,\n queryFn: fn,\n enabled: isHomePageAvailable,\n });\n\n if (!isHomePageAvailable) return null;\n\n return (\n \n \n }\n />\n \n );\n}\n","import { capitalize, noop } from 'lodash';\nimport { useTranslation } from 'react-i18next';\nimport { CardContainer, EntityGroupWorkflowCard, IFlow, useAssetTypeActions } from '@diana/core';\nimport { Stack, Typography, CircularProgress } from '@mui/material';\nimport { THINGS_GROUP_PAGE_NS } from './i18n';\n\nexport interface IThingsGroupDraftCardProps {\n flow: IFlow;\n refetch: () => void;\n setProcessing: (value: boolean) => void;\n}\n\nexport const ThingsGroupDraftCard = (props: IThingsGroupDraftCardProps) => {\n const { t } = useTranslation(THINGS_GROUP_PAGE_NS);\n const { flow, refetch, setProcessing } = props;\n\n const editActionTitle = flow.draftFlowId ? t('actions.continueEditing') : t('actions.edit');\n\n const { actions } = useAssetTypeActions({\n flow,\n entity: null,\n refetch,\n setProcessing,\n actions: {\n edit: { title: flow.draftFlowId ? t('actions.continueEditing') : t('actions.edit') },\n manage: { title: t('actions.manage') },\n version: { title: t('actions.showVersion') },\n },\n });\n\n const editAction = actions?.find((a) => a.title === editActionTitle);\n\n const iconValue = {\n imageUrl: flow.imageUrl,\n icon: flow?.icon?.shape ?? '',\n color: flow?.icon?.color ?? '',\n };\n\n return (\n \n editAction?.onClick?.({ close: noop })}\n actions={actions}\n title={\n \n \n {flow.displayName || capitalize(t('titles.draftAssetType'))}\n \n {!!editAction?.loading && }\n \n }\n icon={iconValue}\n />\n \n );\n};\n","import { Fragment } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Avatar, useTheme } from '@mui/material';\nimport { LightbulbOutlined as LightBulbIcon } from '@mui/icons-material';\nimport {\n DianaFeaturesEnum,\n ImportAssetModal,\n EmptyAssetsIllustration,\n EmptyAssetsMobileIllustration,\n EmptyView,\n IEmptyViewAction,\n getDeviceType,\n GlobalAddModalEnum,\n useAppStore,\n useHasFeature,\n useImportAssetModal,\n} from '@diana/core';\nimport { THINGS_GROUP_PAGE_NS } from './i18n';\n\nfunction AssetsIllustration() {\n const { isMobile } = getDeviceType();\n\n if (isMobile)\n return ;\n\n return ;\n}\n\nexport function ThingsGroupPageEmptyView() {\n const { t } = useTranslation(THINGS_GROUP_PAGE_NS);\n const { palette } = useTheme();\n const { isMobile } = getDeviceType();\n\n const setModal = useAppStore((store) => store.setGlobalAddModal);\n const canCreateAssetType = useHasFeature(DianaFeaturesEnum.AssetCreate);\n\n const {\n isImportAssetModalOpen,\n setImportAssetModalOpen,\n isLoadingImportAsset,\n onImportAsset,\n importErrors,\n } = useImportAssetModal();\n\n const getActions = () => {\n const actions: IEmptyViewAction[] = [];\n\n if (canCreateAssetType) {\n if (!isMobile)\n actions.push({\n label: t('buttons.buildNewAssetType'),\n color: 'secondary',\n onClick: () => setModal(GlobalAddModalEnum.Things),\n });\n\n actions.push({\n label: t('buttons.importAssets'),\n color: 'primary',\n onClick: () => setImportAssetModalOpen(true),\n });\n }\n\n return actions;\n };\n\n return (\n \n }\n title={getActions().length ? t('titles.addFirstAssetType') : ''}\n description={getActions().length ? t('descriptions.createAssetType') : undefined}\n actionsDirection=\"row\"\n actions={getActions()}\n tip={{\n icon: (\n \n \n \n ),\n description: t('descriptions.checkKnowledgeBase'),\n link: {\n label: t('descriptions.checkKnowledgeBase'),\n href: 'https://help.rise-x.io/',\n target: '_blank',\n isIcon: true,\n },\n }}\n />\n setImportAssetModalOpen(false)}\n isLoading={isLoadingImportAsset}\n onClickImport={onImportAsset}\n importErrors={importErrors}\n />\n \n );\n}\n","import { Box, Grid, Stack, Typography } from '@mui/material';\nimport { useCallback, useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { useTranslation } from 'react-i18next';\nimport { AddRounded as AddIcon } from '@mui/icons-material';\nimport {\n ActionButton,\n Breadcrumbs,\n configureFlowQuery,\n FlowResourceType,\n HeaderWithScrollables,\n PageLayout,\n PageNames,\n useCreateAssetTypeActions,\n useEntities,\n useEnvironment,\n useLocationTrackingForThingsGroup,\n} from '@diana/core';\nimport { ThingsGroupCard } from './ThingsGroupCard';\nimport { ThingsGroupDraftCard } from './ThingsGroupDraftCard';\nimport { ThingsGroupPageEmptyView } from './ThingsGroupPageEmptyView';\nimport { useBreadcrumbsRoot } from '../../hooks/useBreadcrumbsRoot';\nimport { THINGS_GROUP_PAGE_NS } from './i18n';\n\nexport const ThingsGroupsPage = () => {\n const [isProcessing, setProcessing] = useState(false);\n const { t } = useTranslation(THINGS_GROUP_PAGE_NS);\n const environmentName = useEnvironment();\n const onFetchFinished = useCallback(() => setProcessing(false), []);\n\n const createAssetType = useCreateAssetTypeActions();\n\n const {\n data: entities,\n isLoading,\n refetch,\n isRefetching,\n } = useEntities({\n onSuccess: onFetchFinished,\n onError: onFetchFinished,\n });\n\n const draftsQuery = configureFlowQuery.searchDraft({\n environmentName,\n flowResourceType: FlowResourceType.Entity,\n });\n const {\n data: draftsData,\n isLoading: isLoadingDrafts,\n refetch: refetchDrafts,\n isRefetching: isDraftsRefetching,\n } = useQuery({\n queryKey: draftsQuery.key,\n queryFn: draftsQuery.fn,\n enabled: Boolean(environmentName),\n staleTime: 0,\n });\n\n const isContentEmpty = [!entities?.length, !draftsData?.length].every((v) => v);\n\n const isContentLoading = [\n isProcessing,\n isLoading,\n isRefetching,\n isLoadingDrafts,\n isDraftsRefetching,\n ].some((v) => v);\n\n useLocationTrackingForThingsGroup({ trackOnMount: true });\n const breadcrumbRoot = useBreadcrumbsRoot('assets');\n return (\n }\n right={\n !!createAssetType.actions.length &&\n !isContentLoading && (\n }\n preventUseMonoActionIcon\n sx={({ spacing }) => ({ height: spacing(4) })}\n >\n {createAssetType.displayName}\n \n )\n }\n />\n }\n >\n {(() => {\n if (isContentEmpty && !isContentLoading) {\n return ;\n }\n\n return (\n \n {!!entities?.length && (\n \n \n {entities?.map((entity) => (\n \n ))}\n \n \n )}\n {!!draftsData?.length && (\n \n \n {t('titles.drafts')}\n \n \n {draftsData.map((draftFlow) => (\n \n ))}\n \n \n )}\n \n );\n })()}\n \n );\n};\n","import {\n IPageFilterProps,\n IProperty,\n makeDynamicEntitiesPageStore,\n PageFiltersRenderer,\n PerformanceEntitiesKey,\n performanceEntityFilterOptionsQuery,\n SortModel,\n useParams,\n} from '@diana/core';\nimport { ReactElement, useMemo } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { PEOPLE_FLOW_ID } from './ThingsPage';\n\nexport const ThingsFilterRenderer = ({\n filterProps,\n peoplePage,\n}: {\n filterProps: IPageFilterProps;\n peoplePage: boolean;\n}) => {\n const { property } = filterProps.filter;\n const { flowOriginId } = useParams<{ flowOriginId: string }>();\n const useEntitiesPageStore = makeDynamicEntitiesPageStore(flowOriginId || PEOPLE_FLOW_ID);\n const { flow, entities } = useEntitiesPageStore((store) => ({\n flow: store.flow,\n entities: store.entities,\n }));\n\n const optionsQuery = useMemo(\n () =>\n performanceEntityFilterOptionsQuery.get({\n key: property.key,\n flowTypes: JSON.stringify([flow.flowType]),\n isDefaultProperty: property.isDefaultProperty,\n valuePaths: JSON.stringify(property.valuePaths),\n flowIds: JSON.stringify([flow.id]),\n flowOriginIds: JSON.stringify(peoplePage ? flow.flowOriginIds : [flow.flowOriginId]),\n }),\n // eslint-disable-next-line\n [property.key, flow?.id],\n );\n\n const { data, isLoading } = useQuery({\n queryKey: [...optionsQuery.key, flow.flowType, flow.id, entities?.length],\n queryFn: optionsQuery.fn,\n refetchOnMount: true,\n refetchOnWindowFocus: false,\n staleTime: Infinity,\n });\n\n return ;\n};\n\nexport const createPropertyToFilter = (peoplePage: boolean) => {\n return (property: IProperty) => {\n return {\n property,\n renderFilter: (props: IPageFilterProps): ReactElement => {\n return ;\n },\n };\n };\n};\n\nexport const getThingsGraphQLWorksQueryKey = (\n flowId: string,\n graphQLFilters: string,\n sortModel?: SortModel,\n): string[] => [PerformanceEntitiesKey, flowId, graphQLFilters, JSON.stringify(sortModel)];\n","import {\n emptyId,\n EntityDataType,\n IFlow,\n IProperty,\n TWorks,\n useHeaderHeightForScrollableContent,\n WorkGrid,\n} from '@diana/core';\nimport React, { forwardRef } from 'react';\nimport { Box } from '@mui/material';\nimport { GridApi, GridSortModel } from '@mui/x-data-grid-premium';\n\nexport type EntitiesTableProps = {\n flow: IFlow;\n entities: TWorks;\n storageKey: string;\n isLoading: boolean;\n disableLastVisited?: boolean;\n supportedProperties: IProperty[];\n peoplePage: boolean;\n appliedFilters: string[];\n isTableExpandedViewMode: boolean;\n fetchNextPage: () => void;\n onSortModelChange: (model: GridSortModel) => void;\n};\n\nexport const ThingsTable = forwardRef((props, ref) => {\n const {\n flow,\n entities,\n storageKey,\n isLoading,\n supportedProperties,\n disableLastVisited = false,\n peoplePage,\n isTableExpandedViewMode,\n appliedFilters,\n fetchNextPage,\n onSortModelChange,\n } = props;\n const rows = entities.filter((entity: any) => entity.activeStepId !== emptyId);\n const columns = supportedProperties;\n const headerHeight = useHeaderHeightForScrollableContent();\n const height = `calc(100vh - ${headerHeight}px)`;\n const excludeCtxMenuItems = peoplePage ? ['showVersion', 'delete'] : [];\n const handledDisableLastVisited = peoplePage ? true : disableLastVisited;\n\n return (\n \n ({ ...e, sortable: true }))}\n storageKey={`entityTable.${storageKey}`}\n excludeCtxMenuItems={excludeCtxMenuItems}\n disableLastVisited={handledDisableLastVisited}\n dataType={peoplePage ? EntityDataType.User : EntityDataType.Thing}\n gridProps={{\n height,\n autoHeight: false,\n sortingMode: 'server',\n onSortModelChange,\n loading: isLoading,\n ...(flow.featureFlags?.isExpandedFeatureEnabled &&\n isTableExpandedViewMode && { idKey: 'rowId' }),\n onRowsScrollEnd: () => {\n fetchNextPage();\n },\n }}\n />\n \n );\n});\n","import {\n CardContainer,\n EntityCard,\n IFlowIcon,\n IThingByTypeResponse,\n useEntityActions,\n useEnvironment,\n} from '@diana/core';\nimport React, { useCallback, useMemo } from 'react';\nimport { routeUrls } from '../../app/Routing/RouteUrls';\nimport { useNavigate } from 'react-router-dom';\nimport { SxProps } from '@mui/system';\n\nexport const ThingCard = (props: {\n entity: IThingByTypeResponse;\n containerSx?: SxProps;\n imageUrl?: string;\n icon?: IFlowIcon | null;\n peoplePage?: boolean;\n}) => {\n const { entity, containerSx = {}, icon, imageUrl, peoplePage } = props;\n const environment = useEnvironment();\n const navigate = useNavigate();\n const route = useMemo(\n () =>\n peoplePage\n ? routeUrls.user.url({ environment, userId: entity.id }, null)\n : routeUrls.thing.url({ environment, thingId: entity.id }, null),\n [entity.id, environment, peoplePage],\n );\n\n const onEditClick = useCallback(() => {\n navigate(route);\n }, [navigate, route]);\n\n const { actions } = useEntityActions({\n onEditClick,\n entity,\n });\n\n return (\n \n \n \n );\n};\n","export const THINGS_PAGE_NS = 'pages/ThingsPage';\n\nexport const i18n = {\n en: {\n buttons: {\n builder: 'Builder',\n },\n noItems: 'No items',\n empty: {\n title: 'You have no assets yet',\n message:\n 'Create your first asset and invite other participants in a completely transparent way.',\n },\n },\n};\n","import { useTranslation } from 'react-i18next';\nimport { Typography, Stack, useTheme, useMediaQuery } from '@mui/material';\nimport {\n EmptyAssetsIllustration,\n EmptyAssetsMobileIllustration,\n useFixedHeader,\n} from '@diana/core';\nimport { THINGS_PAGE_NS } from './i18n';\n\nexport const ThingsEmpty = () => {\n const { t } = useTranslation(THINGS_PAGE_NS);\n const { breakpoints } = useTheme();\n const isSmallScreen = useMediaQuery(breakpoints.down('md'));\n const { headerOffset } = useFixedHeader();\n\n return (\n \n \n {isSmallScreen ? (\n \n ) : (\n \n )}\n \n {t('empty.title')}\n {t('empty.message')}\n \n \n \n );\n};\n","import { WorkCardSkeleton } from '@diana/core';\nimport { Grid } from '@mui/material';\n\nexport function LoadingCards({ num = 25, height }: { num?: number; height?: number | string }) {\n return (\n \n \n \n );\n}\n","import {\n OneWorkCardSkeleton,\n useHeaderHeightForScrollableContent,\n useWatchWindowResize,\n} from '@diana/core';\nimport { useEffect, useRef, useState } from 'react';\nimport { useDebouncedCallback } from 'use-debounce';\n\nconst LoaderIdPrefix = '$loader-';\n\nexport const CardPaddingTopBottom = 16;\n\nexport function useBoardParams(props: IUseBoardParamsProps) {\n const { items, itemHeight, isLoading, isFetchingNextPage, fetchNextPage, hasNextPage } = props;\n const headerHeight = useHeaderHeightForScrollableContent() - 10;\n const [height, setHeight] = useState(0);\n const [width, setWidth] = useState(0);\n const size = useWatchWindowResize({});\n const ref = useRef(null);\n\n const loaderItems = Array.from({ length: 5 }).map(\n (_, index) => ({ id: `${LoaderIdPrefix}${index}` } as unknown as T),\n );\n\n const allItems = isFetchingNextPage ? items.concat(loaderItems) : items;\n\n useEffect(() => {\n if (ref.current) {\n setHeight(ref.current.offsetHeight);\n setWidth(ref.current.offsetWidth);\n }\n }, [size, isLoading]);\n\n const onScroll = useDebouncedCallback((e: any) => {\n const scrollTop = e.target.scrollTop;\n const scrollHeight = e.target.scrollHeight;\n const isCorrectScrollOffset = scrollTop + height >= scrollHeight - itemHeight * 2;\n if (hasNextPage && !isFetchingNextPage && isCorrectScrollOffset) {\n fetchNextPage();\n }\n }, 50);\n\n const isLoaderItem = (item: T & { id?: string }) => item?.id?.startsWith(LoaderIdPrefix);\n const renderLoaderItem = ({ index }: { index: number }) => (\n \n );\n\n return {\n items: allItems,\n headerHeight,\n height,\n width,\n ref,\n onScroll,\n isLoaderItem,\n renderLoaderItem,\n };\n}\n\nexport interface IUseBoardParamsProps {\n items: T[];\n itemHeight: number;\n isLoading: boolean;\n isFetchingNextPage: boolean;\n fetchNextPage: () => void;\n hasNextPage: boolean;\n}\n","import { Box, Grid } from '@mui/material';\nimport { forwardRef, PropsWithChildren } from 'react';\nimport { LoadingCards } from './LoadingCards';\nimport { CardPaddingTopBottom } from './useVirtualBoardParams';\nimport { IUseBoardParamsProps, useBoardParams } from './useBoardParams';\n\nexport function Board(\n props: IUseBoardParamsProps & {\n isFetching: boolean;\n renderItem: (props: { item: T; index: number }) => JSX.Element;\n EmptyComponent: React.ReactElement;\n },\n) {\n const { itemHeight, isLoading, isFetching, renderItem, EmptyComponent } = props;\n\n const { items, headerHeight, ref, onScroll, isLoaderItem, renderLoaderItem } =\n useBoardParams(props);\n\n if (isLoading) {\n // 16 is padding top and bottom\n return (\n \n \n \n );\n }\n\n if (!isFetching && !items.length) {\n return (\n \n {EmptyComponent}\n \n );\n }\n\n return (\n \n \n {items.map((item, index) => {\n return isLoaderItem(item) ? renderLoaderItem({ index }) : renderItem({ item, index });\n })}\n \n \n );\n}\n\nexport const GridContainer = forwardRef<\n HTMLDivElement,\n PropsWithChildren<{\n isLoading: boolean;\n headerHeight: number;\n onScroll?: (e: any) => void;\n }>\n>((props, ref: React.ForwardedRef) => {\n const { isLoading, headerHeight, children, onScroll } = props;\n return (\n \n {children}\n \n );\n});\n","import {\n OneWorkCardSkeleton,\n useHeaderHeightForScrollableContent,\n useWatchWindowResize,\n} from '@diana/core';\nimport { useEffect, useRef, useState } from 'react';\nimport { GridOnScrollProps } from 'react-window';\n\nconst LoaderIdPrefix = '$loader-';\n\nexport const CardPaddingTopBottom = 16;\n\nexport function useVirtualBoardParams(props: IUseVirtualGridParamsProps) {\n const {\n items,\n itemWidth,\n itemHeight,\n isLoading,\n isFetchingNextPage,\n fetchNextPage,\n hasNextPage,\n } = props;\n const headerHeight = useHeaderHeightForScrollableContent() - 10;\n const [height, setHeight] = useState(0);\n const [width, setWidth] = useState(0);\n const size = useWatchWindowResize({});\n const ref = useRef(null);\n\n const columnsCount = Math.floor(width / itemWidth);\n const loaderItemsCount = (items.length % columnsCount) + columnsCount;\n const loaderItems = Array.from({ length: loaderItemsCount }).map(\n (_, index) => ({ id: `${LoaderIdPrefix}${index}` } as unknown as T),\n );\n\n const allItems = isFetchingNextPage ? items.concat(loaderItems) : items;\n const rowsCount = Math.ceil(allItems.length / columnsCount);\n\n useEffect(() => {\n if (ref.current) {\n setHeight(ref.current.offsetHeight);\n setWidth(ref.current.offsetWidth);\n }\n }, [size, isLoading]);\n\n const onScroll = ({ scrollTop }: GridOnScrollProps) => {\n const lastItemOffset = (rowsCount - 1) * itemHeight;\n if (scrollTop + height >= lastItemOffset && !isFetchingNextPage) {\n hasNextPage && fetchNextPage();\n }\n };\n\n const getItemIndex = ({ columnIndex, rowIndex }: { columnIndex: number; rowIndex: number }) => {\n return rowIndex * columnsCount + columnIndex;\n };\n\n const isLoaderItem = (item: T & { id?: string }) => item?.id?.startsWith(LoaderIdPrefix);\n const renderLoaderItem = (props: { index: number }) => (\n \n );\n\n return {\n items: allItems,\n rowsCount,\n columnsCount,\n headerHeight,\n height,\n width,\n ref,\n onScroll,\n getItemIndex,\n isLoaderItem,\n renderLoaderItem,\n };\n}\n\nexport interface IUseVirtualGridParamsProps {\n items: T[];\n itemHeight: number;\n itemWidth: number;\n isLoading: boolean;\n isFetchingNextPage: boolean;\n fetchNextPage: () => void;\n hasNextPage: boolean;\n}\n","import { forwardRef, useEffect, useMemo } from 'react';\nimport { GridApiPremium } from '@mui/x-data-grid-premium/models/gridApiPremium';\nimport { useInfiniteQuery, useQueryClient } from '@tanstack/react-query';\nimport {\n getAppliedFilters,\n getNextPageParam,\n getWorksFromData as getThingsWorksFromData,\n IFlow,\n IProperty,\n IThingByTypeResponse,\n IWork,\n makeDynamicEntitiesPageStore,\n PageViewModeEnum,\n performanceEntityQuery,\n SortModel,\n useAbortRequestWhenFiltersValuesChanged,\n useAssetsPerformanceGraphQLParameters,\n useDisableLastVisitedWork,\n useEntityPermissionsDrawer,\n usePrevious,\n} from '@diana/core';\nimport { ThingsTable } from './ThingsTable';\nimport { getThingsGraphQLWorksQueryKey } from './Support';\nimport { ThingCard } from './ThingCard';\nimport { ThingsEmpty } from './ThingsEmpty';\nimport { GridSortModel } from '@mui/x-data-grid-premium';\nimport { Board } from '../../components/Board/Board';\n\nconst CardHeight = 220;\n\nexport const Content = forwardRef<\n GridApiPremium,\n {\n flow: IFlow;\n supportedProperties: IProperty[];\n peoplePage: boolean;\n onSortModelChange: (model: GridSortModel) => void;\n sortModel: SortModel;\n }\n>((props, forwardedRef) => {\n const { flow, supportedProperties, peoplePage, onSortModelChange, sortModel } = props;\n const useEntitiesPageStore = makeDynamicEntitiesPageStore(flow.flowOriginId);\n const flowId = flow.id;\n const availableFilters = useEntitiesPageStore((store) => store.availableFilters);\n const filtersValues = useEntitiesPageStore((store) => store.filtersValues);\n const appliedFilters = getAppliedFilters({ filtersValues });\n const viewMode = useEntitiesPageStore((store) => store.viewMode);\n const queryClient = useQueryClient();\n const isTableExpandedViewMode = viewMode === PageViewModeEnum.TableExpanded;\n const disableLastVisited = useDisableLastVisitedWork(flow);\n const isExpandedFeatureEnabled = isTableExpandedViewMode\n ? flow.featureFlags?.isExpandedFeatureEnabled\n : false;\n\n const { abort } = useAbortRequestWhenFiltersValuesChanged({\n filtersValues,\n sortModel,\n abortOnUnmount: false,\n });\n\n const { sortField, sortDirection, ...queryParameters } = useAssetsPerformanceGraphQLParameters({\n flow,\n filters: availableFilters,\n filtersValues,\n abort,\n isExpandedFeatureEnabled,\n sortModel,\n });\n\n const queryKeys = getThingsGraphQLWorksQueryKey(\n flowId,\n queryParameters.filterProperties,\n sortModel,\n );\n\n const { data, isLoading, isFetching, hasNextPage, fetchNextPage, isFetchingNextPage, refetch } =\n useInfiniteQuery({\n queryKey: queryKeys,\n queryFn: async ({ pageParam }) => {\n return await performanceEntityQuery\n .get({ ...queryParameters, peoplePage })\n .fn({ skip: pageParam as number, sortField, sortDirection });\n },\n enabled: Boolean(flow),\n refetchOnMount: true,\n refetchOnWindowFocus: false,\n initialPageParam: 0,\n getNextPageParam: getNextPageParam,\n });\n\n useEntityPermissionsDrawer();\n\n const prevViewMode = usePrevious(viewMode);\n\n useEffect(() => {\n if (\n (viewMode === PageViewModeEnum.TableExpanded ||\n prevViewMode === PageViewModeEnum.TableExpanded) &&\n refetch\n ) {\n queryClient.removeQueries({ queryKey: queryKeys, exact: true });\n refetch();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [refetch, viewMode]);\n\n const entities = useMemo(() => getThingsWorksFromData({ data, flow }), [flow, data]);\n return (\n <>\n {viewMode === PageViewModeEnum.Board && (\n \n items={entities}\n itemHeight={CardHeight}\n isLoading={isLoading}\n isFetching={isFetching}\n isFetchingNextPage={isFetchingNextPage}\n fetchNextPage={fetchNextPage}\n hasNextPage={hasNextPage}\n EmptyComponent={}\n renderItem={({ item }) => (\n \n )}\n />\n )}\n {(viewMode === PageViewModeEnum.Table || viewMode === PageViewModeEnum.TableExpanded) && (\n \n )}\n \n );\n});\n","import { Fragment } from 'react';\nimport { noop } from 'lodash';\nimport { useTranslation } from 'react-i18next';\nimport { IFlow, BuilderIcon, useAssetTypeActions } from '@diana/core';\nimport { Button, CircularProgress } from '@mui/material';\nimport { THINGS_PAGE_NS } from './i18n';\n\nexport const BuilderButton = (props: { flow: IFlow }) => {\n const { flow } = props;\n const { t } = useTranslation(THINGS_PAGE_NS);\n\n const title = t('buttons.builder');\n\n const { actions } = useAssetTypeActions({\n flow,\n entity: flow,\n setProcessing: noop,\n refetch: noop,\n actions: { edit: { title } },\n });\n\n const builderAction = actions.find((action) => action.title === title);\n\n if (!builderAction || (builderAction.disabled && !builderAction.loading)) return ;\n\n return (\n ({ py: 0, minHeight: spacing(4) })}\n startIcon={\n builderAction.loading ? : \n }\n onClick={() => {\n if (builderAction.onClick) {\n builderAction.onClick({ close: noop, openWorkDrawer: noop });\n }\n }}\n >\n {builderAction.title}\n \n );\n};\n","import {\n ActionButton,\n Breadcrumbs,\n IFlow,\n LOCAL_STORAGE_THINGS_VIEW_MODE_KEY,\n makeDynamicEntitiesPageStore,\n PageViewModeEnum,\n PageViewModeToolbar,\n useCreateAssetActions,\n usePerformanceGraphQLParameters,\n useSaveAndSetViewMode,\n} from '@diana/core';\nimport { AddRounded as AddIcon } from '@mui/icons-material';\nimport { useIsFetching } from '@tanstack/react-query';\nimport { Fragment, memo } from 'react';\nimport { useBreadcrumbsRoot } from '../../hooks/useBreadcrumbsRoot';\nimport { BuilderButton } from './BuilderButton';\nimport { getThingsGraphQLWorksQueryKey } from './Support';\n\nexport const HeaderLeft = memo<{ flow: IFlow; peoplePage: boolean }>(\n (props) => {\n const { flow, peoplePage } = props;\n const breadcrumbRoot = useBreadcrumbsRoot(peoplePage ? 'people' : 'assets');\n const breadCrumbs = peoplePage\n ? [breadcrumbRoot]\n : [breadcrumbRoot, { title: flow.displayName, hidden: false }];\n\n return ;\n },\n (prev, next) => prev.flow.id === next.flow.id,\n);\n\nexport const HeaderRight = memo<{\n flow: IFlow;\n handleCsvButtonClick: () => void;\n isLoading?: boolean;\n}>(\n (props) => {\n const { flow, handleCsvButtonClick, isLoading } = props;\n const useEntitiesPageStore = makeDynamicEntitiesPageStore(flow.flowOriginId);\n\n const availableFilters = useEntitiesPageStore((store) => store.availableFilters);\n const filtersValues = useEntitiesPageStore((store) => store.filtersValues);\n const viewMode = useEntitiesPageStore((store) => store.viewMode);\n const setViewMode = useEntitiesPageStore((store) => store.setViewMode);\n const supportedViewModes = useEntitiesPageStore((store) => store.supportedViewModes);\n\n const createAsset = useCreateAssetActions({ flowOriginId: flow.flowOriginId });\n\n const queryParameters = usePerformanceGraphQLParameters({\n flows: flow ? [flow] : [],\n filters: availableFilters,\n filtersValues,\n });\n\n const isFetchingEntitiesWorks = useIsFetching({\n queryKey: getThingsGraphQLWorksQueryKey(flow.id, queryParameters.filterProperties),\n });\n\n const { saveAndSetViewMode } = useSaveAndSetViewMode({\n flowId: flow.flowOriginId,\n storageKey: LOCAL_STORAGE_THINGS_VIEW_MODE_KEY,\n setViewMode,\n });\n\n const onViewChange = (viewMode: PageViewModeEnum) => {\n saveAndSetViewMode(viewMode);\n };\n\n return (\n \n {!!createAsset.actions.length && !isLoading && (\n }\n preventUseMonoActionIcon\n sx={({ spacing }) => ({ height: spacing(4) })}\n >\n {createAsset.displayName}\n \n )}\n {!!flow && }\n 0}\n onCsvClick={\n [PageViewModeEnum.Table, PageViewModeEnum.TableExpanded].includes(viewMode)\n ? handleCsvButtonClick\n : undefined\n }\n />\n \n );\n },\n (prev, next) => prev.flow.id === next.flow.id,\n);\n","import {\n FiltersToolbar,\n flowsQuery,\n getFlowFilters,\n getFlowProperties,\n HeaderWithScrollables,\n localStorageKeyEntitiesPageFiltersValue,\n localStorageKeyEntitiesPageProperties,\n makeDynamicEntitiesPageStore,\n PageLayout,\n PageNames,\n SyncFiltersPropertiesProvider,\n useAssetsPerformanceGraphQLExportParameters,\n useEnvironment,\n useExportGridButton,\n useFilters,\n useGetFiltersToolbarHeight,\n useLocationTrackingForThings,\n useTableSort,\n} from '@diana/core';\nimport { useQuery } from '@tanstack/react-query';\nimport React, { useEffect, useMemo } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { useGridApiRef } from '@mui/x-data-grid-premium';\nimport { createPropertyToFilter } from './Support';\nimport { Content } from './Content';\nimport { HeaderLeft, HeaderRight } from './Headers';\n\nexport const PEOPLE_FLOW_ID = '40000000-4000-4000-4000-400000000001';\n\nexport const ThingsPage = ({ peoplePage = false }: { peoplePage?: boolean }) => {\n const { flowOriginId: flowOriginIdFromParams } = useParams<{ flowOriginId: string }>();\n const flowOriginId = peoplePage ? PEOPLE_FLOW_ID : flowOriginIdFromParams;\n\n const useEntitiesPageStore = makeDynamicEntitiesPageStore(flowOriginId!);\n const setDefaults = useEntitiesPageStore((store) => store.setDefaults);\n const setFlow = useEntitiesPageStore((store) => store.setFlow);\n const setAvailableFilters = useEntitiesPageStore((store) => store.setAvailableFilters);\n const setFilters = useEntitiesPageStore((store) => store.setFilters);\n const setFiltersValues = useEntitiesPageStore((store) => store.setFiltersValues);\n const resetData = useEntitiesPageStore((store) => store.resetData);\n const filters = useEntitiesPageStore((store) => store.filters);\n const filtersValues = useEntitiesPageStore((store) => store.filtersValues);\n const availableFilters = useEntitiesPageStore((store) => store.availableFilters);\n const defaultFiltersValuesAndPropertiesSet = useEntitiesPageStore(\n (store) => store.defaultFiltersValuesAndPropertiesSet,\n );\n\n const gridApiRef = useGridApiRef();\n const environment = useEnvironment();\n // Flow request\n const flowQueries = flowsQuery.getById({\n id: flowOriginId!,\n });\n const { data: flow, isLoading: isFlowLoading } = useQuery({\n queryKey: flowQueries.key,\n queryFn: flowQueries.fn,\n staleTime: Infinity,\n enabled: Boolean(flowOriginId ? flowOriginId : ''),\n });\n\n const { track } = useLocationTrackingForThings({ flow: flow || undefined });\n useEffect(() => {\n if (flow) track();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [flow]);\n\n const propertyToFilter = useMemo(() => createPropertyToFilter(peoplePage), [peoplePage]);\n\n useEffect(() => {\n if (!flow) return;\n setFlow(flow);\n setAvailableFilters(\n getFlowFilters({ flow, propertyToFilter, onlyEnabled: false, onlyDefaultFilter: false }),\n );\n // eslint-disable-next-line\n }, [flow]);\n\n useEffect(() => {\n return () => resetData();\n // eslint-disable-next-line\n }, []);\n\n const supportedProperties = useMemo(() => {\n return flow\n ? getFlowProperties({\n flow,\n onlyEnabled: false,\n onlyDefaultFilter: false,\n })\n : [];\n }, [flow]);\n\n const { sortModel, onSortModelChange } = useTableSort({ supportedProperties });\n\n const queryParameters = useAssetsPerformanceGraphQLExportParameters({\n flow,\n filters: availableFilters,\n filtersValues,\n isExpandedFeatureEnabled: flow?.featureFlags?.isExpandedFeatureEnabled,\n sortModel,\n });\n\n const { setIsExportModalOpen, ExportModalComponent } = useExportGridButton({\n apiRef: gridApiRef,\n params: queryParameters,\n isEntity: true,\n exportConfigurations: [],\n });\n\n const { defaultData, onFilterChange, needToRenderAIFilter } = useFilters({\n flows: flow ? [flow] : [],\n createPropertyToFilter: () => createPropertyToFilter(peoplePage),\n filtersValues: filtersValues,\n setFiltersValues: setFiltersValues,\n availableFilters: availableFilters,\n });\n\n const height = useGetFiltersToolbarHeight(true);\n\n return (\n \n \n )\n }\n header={\n <>\n {flow ? (\n }\n right={\n {\n setIsExportModalOpen(true);\n }}\n isLoading={isFlowLoading}\n />\n }\n />\n ) : null}\n \n }\n >\n {flow ? (\n <>\n \n {ExportModalComponent}\n \n ) : null}\n \n \n );\n};\n","import { createContext } from 'react';\nimport { IFlowBuilderPageContext } from './FlowBuilderPageContext.types';\n\nexport const FlowBuilderPageContext = createContext(null);\n","import create from 'zustand';\nimport { IFlowBuilderPageStore, TFieldState } from './FlowBuilderPageStore.types';\nimport produce from 'immer';\nimport { get, set } from 'lodash';\nimport {\n findLayoutComponentByPositionInSteps,\n findLayoutComponentPositionByIdInSteps,\n} from '@diana/core';\n\nexport const defaultFieldState: TFieldState = {\n touched: false,\n dirty: false,\n validationResult: null,\n};\n\nconst emptyFieldStateMap: IFlowBuilderPageStore['fieldStateMap'] = {\n flow: {},\n step: {},\n task: {},\n taskConfigAction: {},\n layoutComponent: {},\n};\n\nexport const useFlowBuilderPageStore = create((setState, getState) => ({\n activeTask: null,\n setActiveTask: (activeTask) => {\n setState({ activeTask, activeComponent: null });\n },\n activeComponent: null,\n setActiveComponent: (activeComponent) => {\n setState({ activeComponent, activeTask: null });\n },\n getActiveComponentFromFlow: (flow) => {\n const { activeComponent, setActiveComponent } = getState();\n if (flow && activeComponent) {\n const componentFoundByPosition = findLayoutComponentByPositionInSteps(\n flow.steps,\n activeComponent.position,\n );\n if (componentFoundByPosition && componentFoundByPosition.id === activeComponent.id) {\n return componentFoundByPosition;\n }\n\n const positionFoundById = findLayoutComponentPositionByIdInSteps(\n flow.steps,\n activeComponent.id,\n );\n if (positionFoundById) {\n setActiveComponent({ ...activeComponent, position: positionFoundById });\n return findLayoutComponentByPositionInSteps(flow.steps, positionFoundById);\n }\n\n setActiveComponent(null);\n }\n return null;\n },\n resetActiveContext: () => setState({ activeTask: null, activeComponent: null }),\n\n fieldStateMap: emptyFieldStateMap,\n resetFieldStateMap: () => setState({ fieldStateMap: emptyFieldStateMap }),\n getEntityFieldState: (entity, entityId, fieldName) => {\n const { fieldStateMap } = getState();\n return get(fieldStateMap, [entity, entityId, fieldName], {\n touched: false,\n dirty: false,\n validationResult: null,\n });\n },\n setEntityFieldState: (entity, entityId, fieldName, fieldState) => {\n const { fieldStateMap } = getState();\n const updatedFieldStateMap = produce(fieldStateMap, (draft) => {\n const path = [entity, entityId, fieldName].join('.');\n const currentFieldState: TFieldState | undefined = get(draft, path);\n const updatedFieldState: TFieldState = {\n ...defaultFieldState,\n ...currentFieldState,\n ...fieldState,\n };\n set(draft, path, updatedFieldState);\n });\n setState({ fieldStateMap: updatedFieldStateMap });\n },\n\n collapsedTasksMap: {},\n setTaskCollapsed: (taskId, collapsed) => {\n const { collapsedTasksMap } = getState();\n const updatedCollapsedTasksMap = { ...collapsedTasksMap };\n if (collapsed) updatedCollapsedTasksMap[taskId] = true;\n else delete updatedCollapsedTasksMap[taskId];\n setState({ collapsedTasksMap: updatedCollapsedTasksMap });\n },\n\n layoutDndPlaceholderPosition: null,\n getLayoutDndPlaceholderPosition: () => getState().layoutDndPlaceholderPosition,\n setLayoutDndPlaceholderPosition: (position) =>\n setState({ layoutDndPlaceholderPosition: position }),\n\n layoutDndDragItem: null,\n getLayoutDndDragItem: () => getState().layoutDndDragItem,\n setLayoutDndDragItem: (dragItem) => setState({ layoutDndDragItem: dragItem }),\n\n isModalOpen: false,\n modalContext: {},\n modalContentType: null,\n setModalClose: () => {\n setState({ isModalOpen: false, modalContentType: null, modalContext: {} });\n },\n setModalOpen: (contentType, modalContext) => {\n setState({ isModalOpen: true, modalContentType: contentType, modalContext });\n },\n}));\n","import { Fragment, PropsWithChildren, useCallback, useLayoutEffect, useMemo } from 'react';\nimport { useNavigate, useLocation, useSearchParams } from 'react-router-dom';\nimport { has, isPlainObject, isString } from 'lodash';\nimport {\n FlowResourceType,\n setValueByPath,\n useEnvironment,\n useFlowBuilderContext,\n useFlowBuilderGetOrCreateDraftFlowMutation,\n useParams,\n} from '@diana/core';\nimport { FlowBuilderPageContext } from './FlowBuilderPageContext';\nimport { routeUrls } from '../../../app/Routing/RouteUrls';\nimport { useFlowBuilderPageStore } from '../FlowBuilderPageStore/useFlowBuilderPageStore';\n\nconst PREVIEW_SEARCH_PARAM_KEY = 'preview';\n\nexport const FlowBuilderPageContextProvider = (props: PropsWithChildren) => {\n const { children } = props;\n const { flowId } = useParams<{ flowId: string }>();\n\n const [searchParams, setSearchParams] = useSearchParams();\n\n const { useFlowBuilderStore } = useFlowBuilderContext();\n const environment = useEnvironment();\n const navigate = useNavigate();\n const location = useLocation();\n\n const setFlow = useFlowBuilderStore((s) => s.setFlow);\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const updateDefaultData = useFlowBuilderStore((s) => s.updateDefaultData);\n const resetFieldStateMap = useFlowBuilderPageStore((s) => s.resetFieldStateMap);\n\n const {\n mutate,\n error,\n isPending: isLoading,\n } = useFlowBuilderGetOrCreateDraftFlowMutation({\n onSuccess: (draftFlow) => {\n const defaultData = draftFlow.defaultData?.reduce((json, item) => {\n const { dataPath: path, data: value } = item;\n return setValueByPath({ json, path, value, clone: false });\n }, {});\n setFlow(draftFlow);\n updateDefaultData(defaultData ?? {});\n },\n });\n\n const canNavigateBackOnClose = useMemo(() => {\n if (isPlainObject(location.state)) {\n if (has(location.state, 'fromPathName')) {\n if (isString(location.state.fromPathName)) {\n const validPaths: string[] = [\n routeUrls.thingsGroups.path,\n routeUrls.workflows.path,\n routeUrls.workboard.path,\n routeUrls.things.path,\n ];\n return validPaths.some((validPath) => {\n const validPathAccessors = validPath.split('/');\n const prevPathAccessors = location.state.fromPathName.split('/');\n return validPathAccessors.every((accessor, index) => {\n if (accessor.startsWith(':') && isString(prevPathAccessors[index])) return true;\n return accessor === prevPathAccessors[index];\n });\n });\n }\n }\n }\n return false;\n }, [location]);\n\n const reload = useCallback(() => {\n mutate({ flowId: flowId! });\n }, [mutate, flowId]);\n\n const close = useCallback(() => {\n if (canNavigateBackOnClose) navigate(-1);\n else if (getFlow()?.flowResourceType === FlowResourceType.Entity)\n navigate(routeUrls.thingsGroups.url({ environment }, null));\n else navigate(routeUrls.workflows.url({ environment }, {}));\n }, [canNavigateBackOnClose, getFlow, navigate, environment]);\n\n const isPreviewViewActive = searchParams.get(PREVIEW_SEARCH_PARAM_KEY) === 'true';\n\n const openPreviewView = useCallback(() => {\n searchParams.set(PREVIEW_SEARCH_PARAM_KEY, 'true');\n setSearchParams(searchParams, { replace: true });\n }, [searchParams, setSearchParams]);\n\n const closePreviewView = useCallback(() => {\n searchParams.delete(PREVIEW_SEARCH_PARAM_KEY);\n setSearchParams(searchParams, { replace: true });\n }, [searchParams, setSearchParams]);\n\n useLayoutEffect(() => {\n reload();\n resetFieldStateMap();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [flowId]);\n\n return (\n \n {children}\n \n );\n};\n","import { FunctionComponent, ReactNode } from 'react';\nimport { FlowResourceType, ILayoutComponent, IProperties } from '@diana/core';\nimport { ILayoutComponentPropertyEditorOptions } from './LayoutComponentPropertyEditor';\nimport { LayoutComponentPropertyEditorNames } from '../components/LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport enum LayoutComponentCategoryEnum {\n Input = 'input',\n Media = 'media',\n Table = 'table',\n Layout = 'layout',\n}\n\nexport interface ILayoutComponentConfiguratorEditor {\n name: LayoutComponentPropertyEditorNames;\n options?: Partial;\n}\n\nexport interface ILayoutComponentConfigurator {\n displayName: string;\n editors: ILayoutComponentConfiguratorEditor[];\n}\n\nexport interface ILayoutComponentPropertySyncConfig {\n type: 'copy' | 'sync';\n transform?: (args: {\n value: NonNullable;\n layoutComponent: ILayoutComponent;\n }) => NonNullable;\n}\n\nexport interface ILayoutComponentSettings {\n // icon of layout component\n icon: FunctionComponent;\n\n // category of layout component\n category: LayoutComponentCategoryEnum | null;\n\n // display name of layout component\n displayName: string;\n\n // header title of layout component editor\n editorTitle?: string;\n\n // the default properties of layout component when added to layout\n defaultProperties: Partial;\n\n // the settings of a layout component is identified by LayoutComponentNames\n // but sometimes one LayoutComponentNames can have 2 settings, matchProperties distinguishes them\n matchProperties?: Partial;\n\n // flag if layoutComponent.component can be changed\n interchangeable?: boolean;\n\n // flag if layout component should be hidden from draggable list of no-code feature\n hidden?: boolean;\n\n // configurators of layout component. each item represents as a tab in configurator view\n configurators?: ILayoutComponentConfigurator[];\n\n // gets the primitive value path of the layout component\n getValuePath?: (layoutComponent: ILayoutComponent) => string;\n\n // overrides the layout component object before rendering it in preview (layout builder)\n // used to add placeholder to layout components by setting properties without affecting the actual properties\n transformPreview?: (layoutComponent: ILayoutComponent) => ILayoutComponent;\n\n // some component properties need to be synced from linked component\n // sync logics will be defined here\n syncSourceProperties?: Partial<{\n [K in keyof IProperties]: ILayoutComponentPropertySyncConfig;\n }>;\n\n // to which flow types the component can be used\n flowResourceTypes: FlowResourceType[];\n\n // render some content about layout component\n renderTooltip?: () => ReactNode;\n}\n","import { useContext } from 'react';\nimport { FlowBuilderPageContext } from './FlowBuilderPageContext';\n\nexport const useFlowBuilderPageContext = () => {\n const context = useContext(FlowBuilderPageContext);\n if (!context)\n throw new Error('useFlowBuilderPageContext must be used under FlowBuilderPageContextProvider');\n return context;\n};\n","export const LAYOUT_COMPONENTS_NS = 'layoutComponents';\n\nexport const i18n = {\n en: {\n names: {\n text: 'Text',\n number: 'Number',\n assetSearch: 'Asset Search',\n peopleSearch: 'People Search',\n date: 'Date',\n select: 'Select',\n advancedSelect: 'Advanced Select',\n advancedText: 'Advanced Text',\n toggle: 'Toggle',\n signature: 'Signature',\n slider: 'Slider',\n attachments: 'Attachments',\n financeTable: 'Finance Table',\n table: 'Table',\n section: 'Section',\n banner: 'Banner',\n advancedEditor: 'Advanced Editor',\n sectionConfiguration: 'Section configuration',\n },\n configurators: {\n general: 'General',\n basic: 'Basic',\n overview: 'Overview',\n properties: 'Properties',\n columns: 'Columns',\n settings: 'Settings',\n advanced: 'Advanced',\n },\n actions: {\n openInEditor: 'Open in editor',\n importAssetType: 'Import asset type',\n changeType: 'Change type',\n duplicate: 'Duplicate',\n resetConfiguration: 'Reset configuration',\n delete: 'Delete',\n proceed: 'Proceed',\n },\n tooltips: {\n deleteColumn: 'Delete column',\n columnDetails: 'Column details',\n },\n gridColumnTypes: {\n text: 'Text',\n number: 'Number',\n thing: 'Asset Search',\n date: 'Date',\n select: 'Select',\n booleanSwitch: 'Toggle',\n link: 'Link',\n },\n labels: {\n name: 'Name',\n title: 'Title',\n assetType: 'Asset type',\n addAColumn: 'Add a column',\n columnSettings: 'Column settings',\n reset: 'Reset',\n resetColumn: 'Reset column',\n changeDataSource: 'Change data source',\n learnMore: 'Learn More',\n rowsReordering: 'Rows reordering',\n columnsReordering: 'Columns reordering',\n pinningColumns: 'Pinning columns',\n readOnly: 'Read only',\n sorting: 'Sorting',\n editing: 'Editing',\n grouping: 'Grouping',\n editSubject: 'Edit {{ subject }}',\n property: 'Property',\n product: 'Product',\n currency: 'Currency',\n tableName: 'Table name',\n addingTableRows: 'Adding table rows',\n addRows: 'Add Rows',\n column: 'Column',\n columnType: 'Column Type',\n columnName: 'Column Name',\n untitledSection: 'Untitled section',\n untitledTable: 'Untitled table',\n value: 'Value',\n properties: 'Properties',\n addAnOption: 'Add an option',\n option: 'Option',\n optionText: 'Option Text',\n yes: 'Yes',\n no: 'No',\n enabled: 'Enabled',\n disabled: 'Disabled',\n description: 'Description',\n hideComponent: 'Hide component',\n textWrapping: 'Wrap all columns',\n sectionName: 'Section name',\n },\n propertyLabels: {\n label: 'Label',\n placeholder: 'Placeholder',\n helpText: 'Help Text',\n rangeMin: 'Range Min',\n rangeMax: 'Range Max',\n incrementBy: 'Increment By',\n enabledLabel: 'Enabled label',\n disabledLabel: 'Disabled label',\n defaultView: 'Default view',\n connectWith: 'Connect with',\n dataSource: 'Data source',\n field: 'Field',\n type: 'Type',\n property: 'Property',\n dateRange: 'Date range',\n time: 'Time',\n multiselect: 'Multiselect',\n readOnly: 'Read only',\n required: 'Required',\n createNewAssets: 'Create new Assets',\n inviteNewUsers: 'Invite new users',\n addNewItem: 'Add new item',\n contextualSearch: 'Contextual search',\n decimals: 'Decimals',\n defaultValue: 'Default value',\n defaultData: 'Default data',\n collapsible: 'Collapsible',\n },\n propertyHints: {\n incrementBy:\n 'Please enter the increment number that divides your max range value without remainder',\n },\n dataSourceLabels: {\n none: 'None',\n thisWork: 'This Work',\n asset: 'Asset',\n people: 'People',\n customData: 'Custom Data',\n },\n defaultValueLabels: {\n description: 'Link a Component or add custom data',\n fromThisFlow: {\n workflowTitle: 'From this Workflow',\n assetTypeTitle: 'From this Asset Type',\n description:\n 'Choose a Component that, when its value is entered, will populate this Component',\n datePickerDescription:\n 'Choose a Date Picker Component that, when its value is entered, will populate this Component',\n textInputDescription:\n 'Choose a Text Component that, when its value is entered, will populate this Component',\n textAreaDescription:\n 'Choose a Text Area Component that, when its value is entered, will populate this Component',\n numberInputDescription:\n 'Choose a Number Component that, when its value is entered, will populate this Component',\n tableDescription:\n 'Choose a Table Component that, when its values are entered, will populate this Component if the column names match\\n',\n peopleSearchDescription:\n 'Choose a People Search Component that, when its value is selected, will populate this Component',\n assetSearchDescription:\n 'Choose a Asset Search Component that, when its value is entered, will populate this Component',\n },\n assetProperty: {\n title: 'Asset property',\n description:\n 'Choose an Asset Search Component that, when an Asset is selected, the relevant Asset property will populate this Component',\n },\n initiator: {\n title: 'Task initiator',\n description: 'Automatically populates the field with the work initiator or task assignee.',\n },\n customValue: {\n title: 'Custom data',\n tableTitle: 'Custom Data',\n description: 'Enter your own data',\n tableDescription: 'Pre-fill the table with your own values',\n },\n calculation: {\n title: 'Calculation',\n description:\n 'Perform arithmetic operations on selected properties and display the results in a field.',\n },\n assetSearchComponent: 'Asset Search Component',\n linkComponent: 'Link component',\n learnMore: 'Learn more about default values',\n },\n userEntityProperties: {\n displayName: 'Display Name',\n email: 'Email',\n },\n descriptions: {\n text: 'Allows users to enter text or numerical data',\n number:\n 'Allows users to enter numerical data, with options to capture a specific number of decimals',\n assetSearch: 'Allows users to select an asset from a pre defined asset type',\n peopleSearch:\n 'Allows users to select another user, with selection options being filtered by the searching user’s company and work connections',\n date: 'Allows users to select a date, with options to capture time and/or a range of dates',\n select: 'Allows users to select one or more options from a pre defined list',\n advancedSelect:\n 'Allows users to select one or more options from a pre defined list while also capturing additional information',\n advancedText: 'Allows users to have greater formatting control in a longer text input',\n toggle: 'Allows users to toggle between an enabled and disabled state',\n signature: 'Allows users to capture their handwritten signature',\n slider: 'Allows users to select a number from a set range and interval',\n attachments: 'Allows users to upload files',\n financeTable:\n 'Allows users to input monetary information and automatically calculate discounts, taxes and totals',\n table:\n 'Allows users to view and edit data in a tabular format, with options to have a range of column types',\n section: 'Allows greater customisation of the layout of your workflow',\n banner: 'Presents informations to users but is not editable by them',\n linkComponent: 'Link the components from this work as an intake source.',\n prefillTable: 'Pre-fill your table with custom data as a default source.',\n customTableData: 'What users will see in the table? Pre-fill your table with custom data.',\n missingConfigurators: 'Missing configurators for {{name}}',\n changeComponentTypeWarning: 'By changing field type Data Source selection will be reset.',\n changeComponentTypeNote: 'Note: after proceeding select the applicable Data source option.',\n deleteTableColumnNote: 'Note: The column configuration and dependencies will be lost.',\n loseCustomDataNote: 'Note: You will lose all custom data that has been filled in.',\n },\n placeholders: {\n enterTitle: 'Enter title',\n enterAShortHint: 'Enter a short hint',\n selectAValue: 'Select a value',\n enterTableName: 'Enter a table name',\n enterColumnName: 'Enter Column name',\n linkOrAddCustomData: 'Link a component or add custom data',\n enterRangeMin: 'Enter range min',\n enterRangeMax: 'Enter range max',\n enterIncrementNumber: 'Enter increment number',\n enterShortHint: 'Enter a short hint',\n enterEnabledLabel: 'Enter enabled label',\n enterDisabledLabel: 'Enter disabled label',\n noOptions: 'No Options',\n selectDecimals: 'Select decimals',\n typeDescription: 'Type a description...',\n selectAssetTypeOption: 'Select an option or type to create one',\n sectionName: 'Enter section name',\n },\n prompts: {\n deleteColumn: 'Are you sure you want to delete this column?',\n sureToDeleteSubject: 'Are you sure to delete {{ subject }}?',\n },\n errors: {\n columnNameMustBeUnique: 'Column name has to be unique',\n componentError: 'Component Error',\n requiredField: 'Required field',\n cannotLessThan: 'Cannot be less than {{ value }}',\n cannotGreaterThan: 'Cannot be greater than {{ value }}',\n rangeNotDivisibleBy: 'The range is not divisible by {{ divisor }}',\n subjectIsRequired: '{{ subject }} is required',\n subjectShouldBeUnique: '{{ subject }} should be unique',\n subjectShouldStartWithValue: '{{ subject }} should start with {{ value }}',\n atLeast1ItemIsRequired: 'At least 1 {{ item }} is required',\n labelShouldBeUnique: 'Label should be unique',\n missingRequiredInformation: 'Missing required information',\n notAllRequiredFieldsAreFilled: 'Not all required fields are filled',\n somethingWentWrong: 'Something went wrong',\n failedToOpenAdvancedEditor: 'Failed to open advanced editor',\n sectionEmptyName: 'Section name cannot be empty',\n },\n },\n};\n","export enum LayoutComponentPropertyEditorNames {\n AddNewItemPropertyEditor = 'AddNewItemPropertyEditor',\n AddRowsPropertyEditor = 'AddRowsPropertyEditor',\n AttachmentSizePropertyEditor = 'AttachmentSizePropertyEditor',\n ColumnPinningPropertyEditor = 'ColumnPinningPropertyEditor',\n ColumnsPropertyEditor = 'ColumnsPropertyEditor',\n CurrencyCodePropertyEditor = 'CurrencyCodePropertyEditor',\n DataPathPropertyEditor = 'DataPathPropertyEditor',\n DecimalsPropertyEditor = 'DecimalsPropertyEditor',\n EditablePropertyEditor = 'EditablePropertyEditor',\n FolderPropertyEditor = 'FolderPropertyEditor',\n GroupablePropertyEditor = 'GroupablePropertyEditor',\n HelpTextPropertyEditor = 'HelpTextPropertyEditor',\n HiddenPropertyEditor = 'HiddenPropertyEditor',\n LabelPropertyEditor = 'LabelPropertyEditor',\n MarksPropertyEditor = 'MarksPropertyEditor',\n MaxValuePropertyEditor = 'MaxValuePropertyEditor',\n MinValuePropertyEditor = 'MinValuePropertyEditor',\n MultiselectPropertyEditor = 'MultiselectPropertyEditor',\n OptionsPropertyEditor = 'OptionsPropertyEditor',\n PlaceholderPropertyEditor = 'PlaceholderPropertyEditor',\n ReadOnlyPropertyEditor = 'ReadOnlyPropertyEditor',\n ReorderColumnsPropertyEditor = 'ReorderColumnsPropertyEditor',\n ReorderRowsPropertyEditor = 'ReorderRowsPropertyEditor',\n RequiredPropertyEditor = 'RequiredPropertyEditor',\n ShowRangePropertyEditor = 'ShowRangePropertyEditor',\n ShowTimePropertyEditor = 'ShowTimePropertyEditor',\n SortablePropertyEditor = 'SortablePropertyEditor',\n TableColumnsEditor = 'TableColumnsEditor',\n ThingTypePropertyEditor = 'ThingTypePropertyEditor',\n ToggleSwitchOptionsPropertyEditor = 'ToggleSwitchOptionsPropertyEditor',\n DefaultValuePropertyEditor = 'DefaultValuePropertyEditor',\n OptionsDefaultValuePropertyEditor = 'OptionsDefaultValuePropertyEditor',\n RichTextDescriptionPropertyEditor = 'RichTextDescriptionPropertyEditor',\n IconPropertyEditor = 'IconPropertyEditor',\n TextWrapping = 'TextWrapping',\n CollapsePropertyEditor = 'CollapsePropertyEditor',\n}\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n FlowResourceType,\n InputIcon,\n InputLayoutComponentTypesEnum,\n OverviewCard,\n TextInputComponentIllustration,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useTextInputSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: InputIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.text`),\n defaultProperties: {\n width: 'col-6',\n showInReport: true,\n },\n matchProperties: { inputType: InputLayoutComponentTypesEnum.Text },\n interchangeable: true,\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n {\n name: LayoutComponentPropertyEditorNames.PlaceholderPropertyEditor,\n options: { placeholder: t('placeholders.enterShortHint') },\n },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n {\n displayName: t(`configurators.advanced`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.DefaultValuePropertyEditor,\n options: {\n defaultValuePropertyEditorOptions: {\n helpUrl: 'https://help.rise-x.io/component-information/text-input',\n fromThisFlow: {\n description: t('defaultValueLabels.fromThisFlow.textInputDescription'),\n },\n assetProperty: {\n description: t('defaultValueLabels.assetProperty.description'),\n },\n customValue: {\n description: t('defaultValueLabels.customValue.description'),\n },\n calculation: {},\n },\n },\n },\n { name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.HiddenPropertyEditor },\n ],\n },\n ],\n getValuePath: ({ dataPath }) => dataPath,\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Filter1 as NumberIcon } from '@mui/icons-material';\nimport {\n FlowResourceType,\n InputLayoutComponentTypesEnum,\n NumberInputComponentIllustration,\n OverviewCard,\n} from '@diana/core';\nimport { ILayoutComponentSettings } from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { useTextInputSettings } from './useTextInputSettings';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useNumberInputSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n // text input and number input are almost similar in settings\n // the settings will be copied except for some values like icon and name\n const textInputSettings = useTextInputSettings();\n\n return useMemo(\n () => ({\n ...textInputSettings,\n icon: NumberIcon,\n displayName: t(`names.number`),\n defaultProperties: {\n ...textInputSettings.defaultProperties,\n inputType: InputLayoutComponentTypesEnum.Number,\n },\n matchProperties: { inputType: InputLayoutComponentTypesEnum.Number },\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n {\n name: LayoutComponentPropertyEditorNames.PlaceholderPropertyEditor,\n options: { placeholder: t('placeholders.enterAShortHint') },\n },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n {\n displayName: t(`configurators.advanced`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.DefaultValuePropertyEditor,\n options: {\n defaultValuePropertyEditorOptions: {\n helpUrl: 'https://help.rise-x.io/component-information/number-input',\n fromThisFlow: {\n description: t('defaultValueLabels.fromThisFlow.numberInputDescription'),\n },\n assetProperty: {\n description: t('defaultValueLabels.assetProperty.description'),\n },\n customValue: {\n description: t('defaultValueLabels.customValue.description'),\n },\n calculation: {},\n },\n },\n },\n { name: LayoutComponentPropertyEditorNames.DecimalsPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.HiddenPropertyEditor },\n ],\n },\n ],\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t, textInputSettings],\n );\n};\n","import { useCallback, useMemo } from 'react';\nimport { isEqual } from 'lodash';\nimport { ILayoutComponent, IProperties, LayoutComponentNames } from '@diana/core';\nimport { ILayoutComponentSettings } from '../models/LayoutComponentSettings';\nimport { useTextInputSettings } from '../components/LayoutComponentSettings/useTextInputSettings';\nimport { useNumberInputSettings } from '../components/LayoutComponentSettings/useNumberInputSettings';\nimport { useAssetSearchSettings } from '../components/LayoutComponentSettings/useAssetSearchSettings';\nimport { usePeopleSearchSettings } from '../components/LayoutComponentSettings/usePeopleSearchSettings';\nimport { useDatePickerSettings } from '../components/LayoutComponentSettings/useDatePickerSettings';\nimport { useSelectSettings } from '../components/LayoutComponentSettings/useSelectSettings';\nimport { useOptionSelectSettings } from '../components/LayoutComponentSettings/useOptionSelectSettings';\nimport { useTextareaSettings } from '../components/LayoutComponentSettings/useTextareaSettings';\nimport { useToggleSwitchSettings } from '../components/LayoutComponentSettings/useToggleSwitchSettings';\nimport { useSignatureSettings } from '../components/LayoutComponentSettings/useSignatureSettings';\nimport { useSliderSettings } from '../components/LayoutComponentSettings/useSliderSettings';\nimport { useAttachmentSettings } from '../components/LayoutComponentSettings/useAttachmentSettings';\nimport { useFinanceTableSettings } from '../components/LayoutComponentSettings/useFinanceTableSettings';\nimport { useTableSettings } from '../components/LayoutComponentSettings/useTableSettings';\nimport { useSectionSettings } from '../components/LayoutComponentSettings/useSectionSettings';\nimport { useBannerSettings } from '../components/LayoutComponentSettings/useBannerSettings';\n\ntype SettingsMap = Record<\n LayoutComponentNames,\n ILayoutComponentSettings | ILayoutComponentSettings[]\n>;\n\ntype ObjectEntry = T extends Record ? [K, V] : never;\n\nconst propertiesMatched = (match: Partial, subject: IProperties) => {\n const matchPropertiesEntries = Array.from(Object.entries(match));\n return matchPropertiesEntries.every(([property, propertyValue]) =>\n isEqual(subject[property as keyof IProperties], propertyValue),\n );\n};\n\nexport const useLayoutComponentSettings = () => {\n const textInputSettings = useTextInputSettings();\n const numberInputSettings = useNumberInputSettings();\n const assetSearchSettings = useAssetSearchSettings();\n const peopleSearchSettings = usePeopleSearchSettings();\n const datePickerSettings = useDatePickerSettings();\n const selectSettings = useSelectSettings();\n const optionSelectSettings = useOptionSelectSettings();\n const textareaSettings = useTextareaSettings();\n const toggleSwitchSettings = useToggleSwitchSettings();\n const signatureSettings = useSignatureSettings();\n const sliderSettings = useSliderSettings();\n const attachmentSettings = useAttachmentSettings();\n const financeTableSettings = useFinanceTableSettings();\n const tableSettings = useTableSettings();\n const sectionSettings = useSectionSettings();\n const bannerSettings = useBannerSettings();\n\n const settingsMap = useMemo>(\n () => ({\n [LayoutComponentNames.INPUT_TEXT]: [textInputSettings, numberInputSettings],\n [LayoutComponentNames.SEARCH_THINGS]: assetSearchSettings,\n [LayoutComponentNames.USER_INVITATION]: peopleSearchSettings,\n [LayoutComponentNames.DATE_PICKER]: datePickerSettings,\n [LayoutComponentNames.INPUT_SELECT]: selectSettings,\n [LayoutComponentNames.PRODUCT_ORDERING]: optionSelectSettings,\n [LayoutComponentNames.RICHTEXT_INPUT]: textareaSettings,\n [LayoutComponentNames.PRODUCT_TOGGLE_SWITCH]: toggleSwitchSettings,\n [LayoutComponentNames.SIGNATURE]: signatureSettings,\n [LayoutComponentNames.STEP_SLIDER]: sliderSettings,\n [LayoutComponentNames.ATTACHMENTS]: attachmentSettings,\n [LayoutComponentNames.FINANCE_SECTION]: financeTableSettings,\n [LayoutComponentNames.DATA_GRID]: tableSettings,\n [LayoutComponentNames.SECTION]: sectionSettings,\n [LayoutComponentNames.BANNER]: bannerSettings,\n }),\n [\n textInputSettings,\n numberInputSettings,\n assetSearchSettings,\n peopleSearchSettings,\n datePickerSettings,\n selectSettings,\n optionSelectSettings,\n textareaSettings,\n toggleSwitchSettings,\n signatureSettings,\n sliderSettings,\n attachmentSettings,\n financeTableSettings,\n tableSettings,\n sectionSettings,\n bannerSettings,\n ],\n );\n\n const getAllSettings = useCallback(() => {\n const result: [LayoutComponentNames, ILayoutComponentSettings][] = [];\n const entries = [...Object.entries(settingsMap)] as ObjectEntry[];\n for (const [component, config] of entries) {\n if (!Array.isArray(config)) result.push([component, config]);\n else for (const variant of config) result.push([component, variant]);\n }\n return result;\n }, [settingsMap]);\n\n const getSettings = useCallback(\n (layoutComponent: ILayoutComponent) => {\n const { component, properties } = layoutComponent;\n const config = settingsMap[component];\n\n if (Array.isArray(config)) {\n for (const variant of config) {\n const { matchProperties = {} } = variant;\n if (propertiesMatched(matchProperties, properties)) return variant;\n }\n return config[0] ?? null;\n }\n\n return config ?? null;\n },\n [settingsMap],\n );\n\n return { getAllSettings, getSettings };\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { DashboardCustomizeOutlined as AssetSearchIcon } from '@mui/icons-material';\nimport { AssetSearchComponentIllustration, FlowResourceType, OverviewCard } from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useAssetSearchSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: AssetSearchIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.assetSearch`),\n defaultProperties: {\n width: 'col-6',\n showInReport: true,\n addNewItem: false,\n },\n interchangeable: true,\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n {\n name: LayoutComponentPropertyEditorNames.PlaceholderPropertyEditor,\n options: { placeholder: t('placeholders.enterShortHint') },\n },\n {\n name: LayoutComponentPropertyEditorNames.ThingTypePropertyEditor,\n options: { placeholder: t('labels.assetType') },\n },\n { name: LayoutComponentPropertyEditorNames.MultiselectPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n {\n displayName: t(`configurators.advanced`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.DefaultValuePropertyEditor,\n options: {\n defaultValuePropertyEditorOptions: {\n helpUrl: 'https://help.rise-x.io/component-information/asset-search',\n fromThisFlow: {\n description: t('defaultValueLabels.fromThisFlow.assetSearchDescription'),\n },\n assetProperty: {\n description: t('defaultValueLabels.assetProperty.description'),\n },\n customValue: {\n description: t('defaultValueLabels.customValue.description'),\n },\n },\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.AddNewItemPropertyEditor,\n options: { label: t('propertyLabels.createNewAssets') },\n },\n {\n name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor,\n },\n ],\n },\n ],\n getValuePath: ({ dataPath }) => `${dataPath}.displayName`,\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n syncSourceProperties: {\n thingType: { type: 'sync' },\n },\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { PeopleOutlineOutlined as PeopleSearchIcon } from '@mui/icons-material';\nimport { FlowResourceType, OverviewCard, PeopleSearchComponentIllustration } from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const usePeopleSearchSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: PeopleSearchIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.peopleSearch`),\n defaultProperties: {\n width: 'col-6',\n showInReport: true,\n contextualSearch: true,\n },\n interchangeable: true,\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: {\n label: t('labels.title'),\n placeholder: t('placeholders.enterTitle'),\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.PlaceholderPropertyEditor,\n options: {\n label: t('propertyLabels.placeholder'),\n placeholder: t('placeholders.enterAShortHint'),\n },\n },\n { name: LayoutComponentPropertyEditorNames.MultiselectPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n {\n displayName: t('configurators.advanced'),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.DefaultValuePropertyEditor,\n options: {\n placeholder: t('defaultValueLabels.description'),\n defaultValuePropertyEditorOptions: {\n helpUrl: 'https://help.rise-x.io/component-information/people-search',\n fromThisFlow: {\n description: t('defaultValueLabels.fromThisFlow.peopleSearchDescription'),\n },\n assetProperty: {\n description: t('defaultValueLabels.assetProperty.description'),\n },\n customValue: {\n description: t('defaultValueLabels.customValue.description'),\n },\n initiator: {\n description: t('defaultValueLabels.initiator.description'),\n },\n },\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.AddNewItemPropertyEditor,\n options: { label: t('propertyLabels.inviteNewUsers') },\n },\n { name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.HiddenPropertyEditor },\n ],\n },\n ],\n getValuePath: ({ dataPath }) => `${dataPath}.displayName`,\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { CalendarMonth as CalendarIcon } from '@mui/icons-material';\nimport { DateComponentIllustration, FlowResourceType, OverviewCard } from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useDatePickerSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: CalendarIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.date`),\n defaultProperties: {\n width: 'col-6',\n showInReport: true,\n },\n interchangeable: true,\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: {\n label: t('labels.title'),\n placeholder: t('placeholders.enterTitle'),\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.PlaceholderPropertyEditor,\n options: {\n placeholder: t('placeholders.enterAShortHint'),\n },\n },\n { name: LayoutComponentPropertyEditorNames.ShowTimePropertyEditor },\n { name: LayoutComponentPropertyEditorNames.ShowRangePropertyEditor },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n {\n displayName: t(`configurators.advanced`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.DefaultValuePropertyEditor,\n options: {\n defaultValuePropertyEditorOptions: {\n helpUrl: 'https://help.rise-x.io/component-information/date-picker',\n fromThisFlow: {\n description: t('defaultValueLabels.fromThisFlow.datePickerDescription'),\n },\n assetProperty: {\n description: t('defaultValueLabels.assetProperty.description'),\n },\n customValue: {\n description: t('defaultValueLabels.customValue.description'),\n },\n },\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor,\n },\n ],\n },\n ],\n getValuePath: ({ dataPath }) => `${dataPath}.date`,\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n FlowResourceType,\n ListDropdownIcon,\n OverviewCard,\n SelectComponentIllustration,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useSelectSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: ListDropdownIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.select`),\n defaultProperties: {\n width: 'col-6',\n showInReport: true,\n },\n interchangeable: true,\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: {\n label: t('labels.title'),\n placeholder: t('placeholders.enterTitle'),\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.PlaceholderPropertyEditor,\n options: {\n placeholder: t('placeholders.enterAShortHint'),\n },\n },\n { name: LayoutComponentPropertyEditorNames.OptionsPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.MultiselectPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n {\n displayName: t(`configurators.advanced`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.OptionsDefaultValuePropertyEditor,\n options: {\n placeholder: t('placeholders.selectAValue'),\n },\n },\n { name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor },\n ],\n },\n ],\n getValuePath: ({ dataPath }) => dataPath,\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { Crop169Outlined as OptionSelectIcon } from '@mui/icons-material';\nimport { FlowResourceType, OptionSelectComponentIllustration, OverviewCard } from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useOptionSelectSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: OptionSelectIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.advancedSelect`),\n defaultProperties: {\n width: 'col-12',\n showInReport: true,\n columns: [\n {\n type: 'text',\n name: 'name',\n placeholder: '',\n displayName: '',\n disabled: true,\n hidden: false,\n },\n {\n type: 'number',\n name: 'quantity',\n placeholder: 'Enter Quantity',\n displayName: 'Quantity',\n disabled: false,\n hidden: false,\n },\n {\n type: 'select',\n name: 'units',\n placeholder: 'Enter Units',\n displayName: 'Units',\n options: ['Litres', 'Kilograms'],\n disabled: false,\n hidden: false,\n },\n ],\n },\n configurators: [\n {\n displayName: t(`configurators.overview`),\n editors: [\n { name: LayoutComponentPropertyEditorNames.LabelPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.OptionsPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.ColumnsPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.MultiselectPropertyEditor },\n ],\n },\n ],\n getValuePath: ({ dataPath }) => dataPath,\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n transformPreview: (value) =>\n produce(value, (draft) => {\n if (!draft.properties.options?.length)\n draft.properties.options = [`${t('labels.option')} 1`, `${t('labels.option')} 2`];\n }),\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n CommentComponentIllustration,\n FlowResourceType,\n OverviewCard,\n TextareaIcon,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useTextareaSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: TextareaIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.advancedText`),\n defaultProperties: { width: 'col-12' },\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n {\n name: LayoutComponentPropertyEditorNames.PlaceholderPropertyEditor,\n options: { placeholder: t('placeholders.enterShortHint') },\n },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n {\n displayName: t(`configurators.advanced`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.DefaultValuePropertyEditor,\n options: {\n defaultValuePropertyEditorOptions: {\n helpUrl: 'https://help.rise-x.io/component-information/textarea',\n fromThisFlow: {\n description: t('defaultValueLabels.fromThisFlow.textAreaDescription'),\n },\n assetProperty: {\n description: t('defaultValueLabels.assetProperty.description'),\n },\n customValue: {\n description: t('defaultValueLabels.customValue.description'),\n },\n },\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor,\n },\n ],\n },\n ],\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { ToggleOffOutlined as SwitchIcon } from '@mui/icons-material';\nimport { FlowResourceType, OverviewCard, ToggleComponentIllustration } from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useToggleSwitchSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: SwitchIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.toggle`),\n defaultProperties: {\n width: 'col-6',\n showInReport: true,\n },\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: {\n label: t('labels.title'),\n placeholder: t('placeholders.enterTitle'),\n },\n },\n { name: LayoutComponentPropertyEditorNames.ToggleSwitchOptionsPropertyEditor },\n ],\n },\n {\n displayName: t('configurators.advanced'),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor,\n },\n ],\n },\n ],\n getValuePath: ({ dataPath }) => dataPath,\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n FlowResourceType,\n OverviewCard,\n SignatureComponentIllustration,\n SignatureIcon,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useSignatureSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: SignatureIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.signature`),\n defaultProperties: { width: 'col-12' },\n configurators: [\n {\n displayName: t(`configurators.basic`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n ],\n },\n ],\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n FlowResourceType,\n OverviewCard,\n SliderComponentIllustration,\n SliderIcon,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useSliderSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: SliderIcon,\n category: LayoutComponentCategoryEnum.Input,\n displayName: t(`names.slider`),\n defaultProperties: { width: 'col-6' },\n configurators: [\n {\n displayName: t(`configurators.basic`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: {\n label: t('labels.title'),\n placeholder: t('placeholders.enterTitle'),\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.MinValuePropertyEditor,\n options: { placeholder: t('placeholders.enterRangeMin') },\n },\n {\n name: LayoutComponentPropertyEditorNames.MaxValuePropertyEditor,\n options: { placeholder: t('placeholders.enterRangeMax') },\n },\n {\n name: LayoutComponentPropertyEditorNames.MarksPropertyEditor,\n options: { placeholder: t('placeholders.enterIncrementNumber') },\n },\n ],\n },\n ],\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { AttachFileOutlined as AttachmentIcon } from '@mui/icons-material';\nimport {\n AttachmentComponentIllustration,\n FlowResourceType,\n OverviewCard,\n PropertiesSizeEnum,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useAttachmentSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: AttachmentIcon,\n category: LayoutComponentCategoryEnum.Media,\n displayName: t(`names.attachments`),\n defaultProperties: { width: 'col-12', size: PropertiesSizeEnum.MEDIUM },\n configurators: [\n {\n displayName: t(`configurators.basic`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n { name: LayoutComponentPropertyEditorNames.RequiredPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.FolderPropertyEditor },\n { name: LayoutComponentPropertyEditorNames.AttachmentSizePropertyEditor },\n ],\n },\n ],\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { CreditCardOutlined as FinanceIcon } from '@mui/icons-material';\nimport { FinanceTableComponentIllustration, FlowResourceType, OverviewCard } from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useFinanceTableSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: FinanceIcon,\n category: LayoutComponentCategoryEnum.Table,\n displayName: t(`names.financeTable`),\n defaultProperties: {\n width: 'col-12',\n },\n configurators: [\n {\n displayName: t(`configurators.overview`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n { name: LayoutComponentPropertyEditorNames.CurrencyCodePropertyEditor },\n ],\n },\n ],\n transformPreview: (layoutComponent) => {\n return produce(layoutComponent, (draft) => {\n draft.properties.sections = [\n {\n name: '',\n rows: [\n {\n taxCode: '',\n units: 0,\n totalDiscount: null,\n total: null,\n totalTax: null,\n totalInclusive: 0,\n },\n ],\n },\n ];\n });\n },\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import {\n FlowResourceType,\n IDataGridProperties,\n LayoutComponentNames,\n mutateLayoutComponentLabel,\n OverviewCard,\n RowActionEnum,\n TableComponentIllustration,\n} from '@diana/core';\nimport { BackupTableOutlined as BackupTableOutlinedIcon } from '@mui/icons-material';\nimport produce from 'immer';\nimport { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useTableSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: BackupTableOutlinedIcon,\n category: LayoutComponentCategoryEnum.Table,\n displayName: t(`names.table`),\n defaultProperties: {\n width: 'col-12',\n autoHeight: true,\n showTitle: true,\n rowActions: Object.values(RowActionEnum),\n editable: true,\n addRows: true,\n sortable: true,\n groupable: true,\n disableColumnMenu: false,\n disableColumnPinning: false,\n reorderColumns: true,\n reorderRows: true,\n columns: [\n {\n columnWidth: 400,\n headerAlign: 'left',\n type: 'text',\n name: 'name',\n displayName: t('labels.name'),\n disabled: false,\n addNewItem: false,\n required: false,\n editable: true,\n sortable: true,\n groupable: true,\n },\n ],\n } as IDataGridProperties,\n configurators: [\n {\n displayName: t(`configurators.general`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: { label: t('labels.title'), placeholder: t('placeholders.enterTitle') },\n },\n {\n name: LayoutComponentPropertyEditorNames.TextWrapping,\n options: {\n label: t('labels.textWrapping'),\n },\n },\n { name: LayoutComponentPropertyEditorNames.TableColumnsEditor },\n ],\n },\n {\n displayName: t(`configurators.advanced`),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.DefaultValuePropertyEditor,\n options: {\n linkableComponentNames: [LayoutComponentNames.PRODUCT_ORDERING],\n defaultValuePropertyEditorOptions: {\n helpUrl: 'https://help.rise-x.io/component-information/table',\n fromThisFlow: {\n description: t('defaultValueLabels.fromThisFlow.tableDescription'),\n },\n assetProperty: {\n description: t('defaultValueLabels.assetProperty.description'),\n },\n customValue: {\n description: t('defaultValueLabels.customValue.tableDescription'),\n },\n },\n },\n },\n { name: LayoutComponentPropertyEditorNames.ReadOnlyPropertyEditor },\n ],\n },\n ],\n transformPreview: (value) => {\n return produce(value, (draft) => {\n const properties: IDataGridProperties = draft.properties;\n if (!properties.label) mutateLayoutComponentLabel(draft, t(`labels.untitledTable`));\n if (properties.withCustomData) {\n properties.addRows = true;\n properties.editable = true;\n properties.columns?.forEach((column) => {\n if (column.type === 'link') column.type = 'text';\n column.editable = true;\n });\n }\n\n // disable sort and grouping in builder\n properties.disableColumnMenu = true;\n properties.sortable = false;\n properties.columns?.forEach((column) => {\n column.sortable = false;\n column.groupable = false;\n column.grouping = false;\n });\n });\n },\n syncSourceProperties: {\n columns: {\n type: 'copy',\n transform: ({ value: columns, layoutComponent }) => {\n const properties = layoutComponent.properties as IDataGridProperties;\n columns?.forEach((column) => {\n column.headerAlign = 'left';\n column.disabled = false;\n column.addNewItem = false;\n column.required = properties.required ?? false;\n column.editable = properties.editable ?? false;\n column.sortable = properties.sortable ?? false;\n column.groupable = properties.groupable ?? false;\n });\n\n // make sure first column have display name\n const firstColumn = columns[0];\n if (firstColumn && !firstColumn.displayName) {\n firstColumn.displayName = t('labels.product');\n firstColumn.editable = false;\n }\n\n return columns;\n },\n },\n },\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n FlowResourceType,\n OverviewCard,\n SectionComponentIllustration,\n SectionIcon,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useSectionSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: SectionIcon,\n category: LayoutComponentCategoryEnum.Layout,\n displayName: t('names.section'),\n editorTitle: t('names.sectionConfiguration'),\n defaultProperties: {\n width: 'col-12',\n },\n configurators: [\n {\n displayName: t('configurators.general'),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: {\n label: t('labels.sectionName'),\n placeholder: t('placeholders.sectionName'),\n },\n },\n { name: LayoutComponentPropertyEditorNames.CollapsePropertyEditor },\n ],\n },\n ],\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport DnsOutlinedIcon from '@mui/icons-material/DnsOutlined';\nimport {\n BannerComponentIllustration,\n FlowResourceType,\n mutateLayoutComponentLabel,\n OverviewCard,\n} from '@diana/core';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../models/LayoutComponentSettings';\nimport { LAYOUT_COMPONENTS_NS } from '../../i18n/layoutComponents';\nimport { LayoutComponentPropertyEditorNames } from '../LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const useBannerSettings = (): ILayoutComponentSettings => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useMemo(\n () => ({\n icon: DnsOutlinedIcon,\n category: LayoutComponentCategoryEnum.Layout,\n displayName: t(`names.banner`),\n defaultProperties: {\n width: 'col-12',\n },\n configurators: [\n {\n displayName: t('labels.title'),\n editors: [\n {\n name: LayoutComponentPropertyEditorNames.IconPropertyEditor,\n },\n {\n name: LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n options: {\n label: t('labels.title'),\n placeholder: t('placeholders.enterTitle'),\n },\n },\n {\n name: LayoutComponentPropertyEditorNames.RichTextDescriptionPropertyEditor,\n },\n ],\n },\n ],\n transformPreview: (value) =>\n produce(value, (draft) => {\n if (!value.properties.label) mutateLayoutComponentLabel(draft, t('labels.title'));\n }),\n flowResourceTypes: [FlowResourceType.Work, FlowResourceType.Entity],\n renderTooltip: () => (\n \n ),\n }),\n [t],\n );\n};\n","import { Fragment, memo, useEffect, useMemo } from 'react';\nimport { camelCase, cloneDeep, isEqual, isNil, isUndefined } from 'lodash';\nimport { useQuery } from '@tanstack/react-query';\nimport {\n flowSteps,\n getAllLayoutComponentsInSteps,\n ILayoutComponent,\n IProperties,\n LayoutComponentNames,\n useEntities,\n useFlowBuilderContext,\n usePrevious,\n} from '@diana/core';\n\nimport { useLayoutComponentSettings } from '../../../../hooks/useLayoutComponentSettings';\n\ninterface IComponentWatcherProps {\n layoutComponent: ILayoutComponent;\n stepIndex: number;\n taskIndex: number;\n indexPath: number[];\n}\n\nconst ComponentWatcher = (props: IComponentWatcherProps) => {\n const { layoutComponent, indexPath, taskIndex, stepIndex } = props;\n\n const { useFlowBuilderStore, updateAndSaveLayoutComponentByPosition } = useFlowBuilderContext();\n\n const sourceComponent = useFlowBuilderStore((s) => {\n if (layoutComponent.properties.sourceComponentId && s.flow) {\n const items = getAllLayoutComponentsInSteps(s.flow.steps);\n const sourceLayoutComponent = items.find((item) => {\n const isSelf = item.id === layoutComponent.id;\n const matched = item.id === layoutComponent.properties.sourceComponentId;\n return matched && !isSelf;\n });\n return sourceLayoutComponent ?? null;\n }\n return null;\n }, isEqual);\n\n const { linkedComponent, isFetchingLinkedComponent } = useLinkedComponent({\n component: layoutComponent,\n sourceComponent,\n });\n\n const { getSettings } = useLayoutComponentSettings();\n\n const prevLinkedComponent = usePrevious(linkedComponent);\n\n const onLinkedComponentChange = () => {\n if (isUndefined(prevLinkedComponent) || isFetchingLinkedComponent) return;\n\n const syncLinkedComponentProperties = (type?: 'copy' | 'sync') => {\n const syncConfigMap = getSettings(layoutComponent)?.syncSourceProperties;\n const syncProperties: Partial = {};\n\n if (!syncConfigMap) return;\n\n for (const key of Object.keys(syncConfigMap)) {\n const property = key as 'label';\n const propertyValue = linkedComponent?.properties[property];\n const transformPropertyValue = syncConfigMap[property]!.transform;\n if (type && type !== syncConfigMap[property]!.type) continue;\n if (isUndefined(propertyValue)) syncProperties[property] = undefined;\n if (!isUndefined(propertyValue)) {\n syncProperties[property] = cloneDeep(propertyValue);\n if (transformPropertyValue) {\n syncProperties[property] = transformPropertyValue({\n value: cloneDeep(propertyValue),\n layoutComponent: cloneDeep(layoutComponent),\n });\n }\n }\n }\n\n if (\n !isEqual(layoutComponent.properties, { ...layoutComponent.properties, ...syncProperties })\n ) {\n updateAndSaveLayoutComponentByPosition({ indexPath, stepIndex, taskIndex }, (value) => {\n const getSaveKey = (key: Key) =>\n `_${camelCase(`original ${key}`)}` as Key;\n\n const saveProperty = (key: Key) => {\n const saveKey = getSaveKey(key);\n value.properties[saveKey] = value.properties[saveKey] ?? value.properties[key];\n };\n\n const restoreProperty = (key: Key) => {\n const saveKey = getSaveKey(key);\n if (!isNil(value.properties[saveKey]))\n value.properties[key] = value.properties[saveKey];\n delete value.properties[saveKey];\n };\n\n Object.keys(syncProperties).forEach((key) => {\n const property = key as 'label';\n const propertyValue = syncProperties[property];\n if (isUndefined(propertyValue)) restoreProperty(property);\n else {\n saveProperty(property);\n value.properties[property] = propertyValue;\n }\n });\n\n return value;\n });\n }\n };\n\n // linked component changed\n if (linkedComponent?.id !== prevLinkedComponent?.id) {\n syncLinkedComponentProperties();\n }\n\n // linked component updated\n if (linkedComponent?.id === prevLinkedComponent?.id) {\n if (linkedComponent) syncLinkedComponentProperties('sync');\n }\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(onLinkedComponentChange, [linkedComponent, isFetchingLinkedComponent]);\n\n return ;\n};\n\nexport const ComponentPropertiesSync = memo(() => {\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const items = useFlowBuilderStore((s) => {\n const flow = s.flow;\n const _items: IComponentWatcherProps[] = [];\n\n if (flow) {\n flow.steps.forEach((step, stepIndex) => {\n if (Array.isArray(step.steps)) {\n step.steps.forEach((task, taskIndex) => {\n const { layout } = task;\n if (layout) {\n (function scan(items: ILayoutComponent[], parentIndexPath: number[]) {\n items.forEach((layoutComponent, index) => {\n const indexPath = [...parentIndexPath, index];\n _items.push({ layoutComponent, taskIndex, stepIndex, indexPath });\n if (Array.isArray(layoutComponent.components))\n scan(layoutComponent.components, indexPath);\n });\n })(layout.components, []);\n }\n });\n }\n });\n }\n\n return _items;\n }, isEqual);\n\n return (\n \n {items.map((item) => (\n \n ))}\n \n );\n}, isEqual);\n\nconst useLinkedComponent = (args: {\n component: ILayoutComponent;\n sourceComponent: ILayoutComponent | null;\n}) => {\n const { component, sourceComponent } = args;\n\n const { data: entities, isFetching: isFetchingEntities, error: entitiesError } = useEntities();\n\n const entityType = useMemo(() => {\n if (sourceComponent?.component !== LayoutComponentNames.SEARCH_THINGS) return null;\n return sourceComponent?.properties.thingType ?? null;\n }, [sourceComponent]);\n\n const entity = useMemo(\n () => entities?.find((e) => entityType && e.entityType === entityType),\n [entities, entityType],\n );\n\n const getEntityStepsQuery = flowSteps.getById({ id: entity?.flow?.id ?? '' });\n const {\n data: entitySteps,\n isFetching: isFetchingEntitySteps,\n error: entityStepsError,\n } = useQuery({\n queryKey: getEntityStepsQuery.key,\n queryFn: getEntityStepsQuery.fn,\n enabled: !!entity?.flow?.id,\n });\n\n const dataPath = (() => {\n if (component.properties.sourceComponentRelation === 'copy')\n return component.defaultValue ?? '';\n return component.dataPath;\n })();\n\n const linkedComponent = useMemo(() => {\n if (!entityType) return sourceComponent;\n if (isFetchingEntities || entitiesError) return null;\n if (isFetchingEntitySteps || entityStepsError) return null;\n if (!entitySteps) return null;\n for (const step of entitySteps) {\n for (const task of step.steps) {\n if (!task.layout) continue;\n const matched = (function find(items: ILayoutComponent[]): ILayoutComponent | null {\n for (const item of items) {\n if (item.dataPath && item.dataPath.startsWith('$.')) {\n const propertyPath = '.data' + item.dataPath.replace(/^\\$/, '');\n if (dataPath.endsWith(propertyPath)) return item;\n const matched = find(item.components ?? []);\n if (matched) return matched;\n }\n }\n return null;\n })(task.layout.components);\n if (matched) return matched;\n }\n }\n return null;\n }, [\n dataPath,\n entityType,\n sourceComponent,\n entitiesError,\n isFetchingEntities,\n entitySteps,\n entityStepsError,\n isFetchingEntitySteps,\n ]);\n\n return {\n linkedComponent,\n isFetchingLinkedComponent:\n (!!entityType && isFetchingEntities) || (!!entity?.flow?.id && isFetchingEntitySteps),\n };\n};\n","import { ILayoutComponent } from '@diana/core';\n\nexport enum DndLayoutComponentDropSpecType {\n SIBLING = 'sibling',\n CHILD = 'child',\n}\n\ntype LCPosition = DndLayoutComponentPosition;\nexport interface DndLayoutComponentPosition {\n indexPath: number[];\n taskIndex: number;\n stepIndex: number;\n}\n\ntype DragItem = DraggableLayoutComponentItem;\nexport interface DraggableLayoutComponentItem {\n layoutComponent: ILayoutComponent;\n position?: LCPosition;\n origin?: LCPosition;\n}\n\ntype DropItem = DroppableLayoutComponentItem;\nexport interface DroppableLayoutComponentItem {\n layoutComponent: ILayoutComponent;\n position: LCPosition;\n}\n\nexport interface DndLayoutComponentDropSpec {\n type: DndLayoutComponentDropSpecType;\n position: LCPosition;\n}\n\nexport interface DndLayoutComponentsContextState {\n emitMove: (args: { source: DragItem; destination?: DropItem }) => boolean;\n emitDragStart: (dragItem: DragItem) => void;\n emitDragEnd: (dragItem: DragItem, dropItem: DropItem | null) => void;\n getSiblings: (args: DropItem) => ILayoutComponent[] | null;\n searchPosition: (layoutComponent: ILayoutComponent) => LCPosition | null;\n}\n","import { useCallback, useContext, createContext, PropsWithChildren } from 'react';\nimport { DndProvider } from 'react-dnd';\nimport { HTML5Backend } from 'react-dnd-html5-backend';\nimport { DndLayoutComponentsContextState as ContextState } from './DndLayoutComponents.types';\nimport { DndLayoutComponentsProviderProps as ProviderProps } from './DndLayoutComponentsProvider.types';\n\nconst Context = createContext(null);\n\nexport const DndLayoutComponentsProvider = (props: PropsWithChildren) => {\n const { onMove, onDragStart, onDragEnd, onGetSiblings, onSearchPosition, children } = props;\n\n const emitMove = useCallback(\n ({ source, destination }) => {\n return onMove({ source, destination });\n },\n [onMove],\n );\n\n const emitDragStart = useCallback(\n (dragItem) => {\n return onDragStart?.(dragItem);\n },\n [onDragStart],\n );\n\n const emitDragEnd = useCallback(\n (dragItem, dropItem) => {\n return onDragEnd?.(dragItem, dropItem);\n },\n [onDragEnd],\n );\n\n return (\n \n \n {children}\n \n \n );\n};\n\nexport const useDndLayoutComponentsContext = (): ContextState => {\n const state = useContext(Context);\n if (!state) {\n const hook = 'useDndLayoutComponentsContext';\n const provider = 'DndLayoutComponentsProvider';\n throw new Error(`${hook} can only be used inside ${provider}`);\n }\n return state;\n};\n","import { ILayoutComponent } from '@diana/core';\n\nexport type GridPosition = { row: number; col: number };\n\nexport type GridDirection = 'top' | 'right' | 'bottom' | 'left';\n\nexport type ComponentsGrid = ILayoutComponent[][];\n\n/**\n * Parses the column width size of a layout component\n */\nexport const getColumnWidthSize = (layoutComponent: ILayoutComponent) => {\n return parseInt(layoutComponent.properties.width?.split('-')[1] || '12');\n};\n\n/**\n * Simulates the grid of how the layout components will be rendered by using a 2 dimensional array.\n * 1st Dimension represents rows, while 2nd dimension represents columns.\n */\nexport const buildComponentsGrid = (components: ILayoutComponent[]): ComponentsGrid => {\n const grid: ComponentsGrid = [];\n let column: ILayoutComponent[] = [];\n for (const component of components) {\n const occupiedSpace = column.reduce((sum, lc) => sum + getColumnWidthSize(lc), 0);\n const componentSize = getColumnWidthSize(component);\n if (occupiedSpace + componentSize > 12) {\n grid.push(column);\n column = [];\n }\n column.push(component);\n }\n if (column.length) grid.push(column);\n return grid;\n};\n\n/**\n * Identifies the row and column position of layout component in the given grid.\n */\nexport const getComponentGridPosition = (args: {\n component: ILayoutComponent;\n grid: ComponentsGrid;\n}): GridPosition | null => {\n const { component, grid } = args;\n for (let row = 0; row < grid.length; row++) {\n for (let col = 0; col < grid[row].length; col++) {\n if (grid[row][col].id === component.id) return { row, col };\n }\n }\n return null;\n};\n\n/**\n * Identifies the adjacent direction of target from source in the given grid.\n */\nexport const getComponentGridDirection = (args: {\n source: ILayoutComponent;\n target: ILayoutComponent;\n grid: ComponentsGrid;\n}): GridDirection | null => {\n const { source, target, grid } = args;\n const position1 = getComponentGridPosition({ component: source, grid });\n const position2 = getComponentGridPosition({ component: target, grid });\n if (position1 && position2) {\n if (position1.row === position2.row) return position1.col < position2.col ? 'right' : 'left';\n if (position1.col === position2.col) return position1.row < position2.row ? 'bottom' : 'top';\n }\n return null;\n};\n","import { ReactNode, RefObject } from 'react';\nimport { ILayoutComponent } from '@diana/core';\nimport {\n DndLayoutComponentPosition as Position,\n DraggableLayoutComponentItem as DragItem,\n DroppableLayoutComponentItem as DropItem,\n} from './DndLayoutComponents.types';\n\nexport interface DraggableLayoutComponentCollected {\n isDragging: boolean;\n columnWidthSize: number;\n}\n\nexport interface DraggableLayoutComponentProps {\n previewRef: RefObject;\n handleRef: RefObject;\n layoutComponent: ILayoutComponent;\n position?: Position;\n onDragStart?: (dragItem: DragItem) => void;\n onDragEnd?: (dragItem: DragItem, dropItem: DropItem | null) => void;\n children(provided: DraggableLayoutComponentCollected): ReactNode;\n}\n\nexport const DraggableLayoutComponentType = Symbol('layout_component');\n","import { useMemo } from 'react';\nimport { cloneDeep } from 'lodash';\nimport { useDrag } from 'react-dnd';\nimport { useDndLayoutComponentsContext } from './DndLayoutComponentsProvider';\nimport { getColumnWidthSize } from './DndLayoutComponentsUtils';\nimport {\n DraggableLayoutComponentItem as DragItem,\n DroppableLayoutComponentItem as DropItem,\n} from './DndLayoutComponents.types';\nimport {\n DraggableLayoutComponentType,\n DraggableLayoutComponentProps,\n DraggableLayoutComponentCollected as Collected,\n} from './DraggableLayoutComponent.types';\n\n/**\n * DraggableLayoutComponent - Transforms the previewRef and handleRef into a draggable element; Provides draggable context.\n * Note: Draggable and Droppable are used to be in one component, they were separated since not all components are both draggable and droppable.\n */\nexport const DraggableLayoutComponent = (props: DraggableLayoutComponentProps) => {\n const { previewRef, handleRef, layoutComponent, position, onDragStart, onDragEnd, children } =\n props;\n\n const { emitDragStart, emitDragEnd } = useDndLayoutComponentsContext();\n\n const dragItem = useMemo(\n () => ({\n layoutComponent,\n position: cloneDeep(position),\n origin: cloneDeep(position),\n }),\n [layoutComponent, position],\n );\n\n const [collected, drag, preview] = useDrag(\n {\n type: DraggableLayoutComponentType,\n item: () => {\n emitDragStart(dragItem);\n onDragStart?.(dragItem);\n return dragItem;\n },\n collect: (monitor) => ({\n isDragging: monitor.isDragging(),\n columnWidthSize: getColumnWidthSize(dragItem.layoutComponent),\n }),\n isDragging: (monitor) => monitor.getItem()?.layoutComponent.id === layoutComponent.id,\n end: (_dragItem, monitor) => {\n const _dropItem = monitor.getDropResult();\n emitDragEnd(_dragItem, _dropItem);\n onDragEnd?.(_dragItem, _dropItem);\n },\n },\n [dragItem],\n );\n\n preview(previewRef);\n drag(handleRef);\n\n return <>{children(collected)};\n};\n","import { useMemo, useRef } from 'react';\nimport { isEqual } from 'lodash';\nimport { useDrop } from 'react-dnd';\nimport { LayoutComponentNames } from '@diana/core';\nimport { useDndLayoutComponentsContext } from './DndLayoutComponentsProvider';\nimport {\n buildComponentsGrid,\n getColumnWidthSize,\n getComponentGridDirection,\n} from './DndLayoutComponentsUtils';\nimport {\n DndLayoutComponentDropSpec as DropSpec,\n DndLayoutComponentDropSpecType as DropType,\n DraggableLayoutComponentItem as DragItem,\n DroppableLayoutComponentItem as DropItem,\n} from './DndLayoutComponents.types';\nimport {\n DroppableLayoutComponentCollected as Collected,\n DroppableLayoutComponentProps,\n GetDndLayoutComponentDropSpecParams as GetDropSpecParams,\n} from './DroppableLayoutComponent.types';\nimport { DraggableLayoutComponentType } from './DraggableLayoutComponent.types';\n\nexport const getDndLayoutComponentDropSpec = (params: GetDropSpecParams): DropSpec | null => {\n const { dragItem, dropItem, pointerOffset, droppableRect, components } = params;\n\n const isDraggingSection = dragItem.layoutComponent.component === LayoutComponentNames.SECTION;\n const isDraggingFixedSection = isDraggingSection && isEqual(dragItem.position?.indexPath, [0]);\n\n const isTargetingSection = dropItem.layoutComponent.component === LayoutComponentNames.SECTION;\n const isTargetingFixedSection = isTargetingSection && isEqual(dropItem.position.indexPath, [0]);\n\n // don't replace items with themselves\n if (isEqual(dragItem.position, dropItem.position)) return null;\n\n if (isDraggingSection) {\n // Rule: fixed section cannot be dragged\n if (isDraggingFixedSection) return null;\n\n // Rule: fixed sections cannot be replaced\n if (isTargetingFixedSection) return null;\n\n // Rule: sections can only be in level 1\n if (dropItem.position.indexPath.length !== 1) return null;\n }\n\n if (!isDraggingSection) {\n if (isTargetingSection) {\n // Rule: insert form component as a child of section only if section doesn't have children yet\n if (!dropItem.layoutComponent.components.length)\n return {\n type: DropType.CHILD,\n position: {\n indexPath: [...dropItem.position.indexPath, 0],\n taskIndex: dropItem.position.taskIndex,\n stepIndex: dropItem.position.stepIndex,\n },\n };\n\n // Rule: don't drop form component if section is not empty\n if (dropItem.layoutComponent.components.length) return null;\n }\n }\n\n // check pointer and drop rect dom positions\n if (dragItem.position && pointerOffset && droppableRect) {\n // index of source and target in their level\n const sourceIndex = dragItem.position.indexPath.slice(-1)[0];\n const targetIndex = dropItem.position.indexPath.slice(-1)[0];\n\n // width size of source and target\n const sourceSize = getColumnWidthSize(dragItem.layoutComponent);\n const targetSize = getColumnWidthSize(dropItem.layoutComponent);\n\n if (components) {\n // get the direction of target from source\n const direction = getComponentGridDirection({\n source: dragItem.layoutComponent,\n target: dropItem.layoutComponent,\n grid: buildComponentsGrid(components),\n });\n\n // determine rectangle on screen\n const targetWidth = droppableRect.right - droppableRect.left;\n const targetHeight = droppableRect.bottom - droppableRect.top;\n\n const widthOffset = Math.min(20, targetWidth / 2);\n const heightOffset = Math.min(20, targetHeight / 2);\n\n // determine mouse position\n const clientOffset = pointerOffset ?? { x: 0, y: 0 };\n const hoverClientX = clientOffset.x - droppableRect.left;\n const hoverClientY = clientOffset.y - droppableRect.top;\n\n // when source and target are vertically adjacent\n // cursor must pass at least half of the height of the target\n if (direction === 'top' || direction === 'bottom') {\n if (sourceIndex < targetIndex && hoverClientY < targetHeight / 2) return null;\n if (sourceIndex > targetIndex && hoverClientY > targetHeight / 2) return null;\n }\n\n // source and target are horizontally adjacent\n if (direction === 'left' || direction === 'right') {\n // when source and target does NOT have the same size,\n // cursor must at least pass half the width of the target\n if (sourceSize !== targetSize) {\n if (sourceIndex < targetIndex && hoverClientX < targetWidth / 2) return null;\n if (sourceIndex > targetIndex && hoverClientX > targetWidth / 2) return null;\n }\n\n // when source and target have the same size,\n // cursor must at least pass 20px from the edge of target\n if (sourceSize === targetSize) {\n if (sourceIndex < targetIndex && hoverClientX < widthOffset) return null;\n if (sourceIndex > targetIndex && hoverClientX > targetWidth - widthOffset) return null;\n }\n }\n\n // if the direction of dragged item cannot be identified\n // cursor must pass 20px from the edge of the target\n if (!direction) {\n if (sourceIndex < targetIndex && hoverClientY < heightOffset) return null;\n if (sourceIndex > targetIndex && hoverClientY > targetHeight - heightOffset) return null;\n if (sourceIndex < targetIndex && hoverClientX < widthOffset) return null;\n if (sourceIndex > targetIndex && hoverClientX > targetWidth - widthOffset) return null;\n }\n }\n }\n\n return {\n type: DropType.SIBLING,\n position: dropItem.position,\n };\n};\n\n/**\n * DroppableLayoutComponent - Transforms the droppableRef into a droppable element; Provides droppable context.\n */\nexport const DroppableLayoutComponent = (props: DroppableLayoutComponentProps) => {\n const { droppableRef, layoutComponent, position, children } = props;\n\n const { emitMove, getSiblings, searchPosition } = useDndLayoutComponentsContext();\n\n const _dropItem = useMemo(\n () => ({ layoutComponent, position }),\n [layoutComponent, position],\n );\n const dropItemRef = useRef(_dropItem);\n dropItemRef.current = _dropItem;\n\n const [collected, drop] = useDrop({\n accept: DraggableLayoutComponentType,\n collect: (monitor) => ({\n didDrop: monitor.didDrop(),\n isOver: monitor.isOver(),\n }),\n hover: (dragItem, monitor) => {\n if (!droppableRef.current) return;\n\n const { current: dropItem } = dropItemRef;\n // if section is currently empty, then we won't add drop placeholder there\n if (\n dropItem.layoutComponent.component === LayoutComponentNames.SECTION &&\n dropItem.layoutComponent.components.length === 0\n ) {\n return;\n }\n // check if source and target are siblings\n const areSiblings = (() => {\n if (dragItem.position) {\n if (isEqual(dragItem.position.stepIndex, dropItem.position.stepIndex)) {\n if (isEqual(dragItem.position.taskIndex, dropItem.position.taskIndex)) {\n return isEqual(\n dragItem.position.indexPath.slice(0, -1),\n dropItem.position.indexPath.slice(0, -1),\n );\n }\n }\n }\n return false;\n })();\n\n // check if drop is allowed; layout component technicalities\n const dropSpec = getDndLayoutComponentDropSpec({\n dragItem,\n dropItem,\n pointerOffset: monitor.getClientOffset(),\n droppableRect: droppableRef.current.getBoundingClientRect(),\n components: areSiblings ? getSiblings(dropItem) : null,\n });\n if (!dropSpec) return;\n\n // move item\n const source = dragItem;\n const destination = { ...dropItem, position: dropSpec.position };\n const moved = emitMove({ source, destination });\n if (!moved) return;\n\n // do an index path search if source moved into a nested component\n if (source.position) {\n const sourceLevel = source.position.indexPath.length;\n const targetLevel = destination.position.indexPath.length;\n if (targetLevel > sourceLevel) {\n const newPosition = searchPosition(source.layoutComponent);\n if (newPosition) source.position = newPosition;\n return;\n }\n }\n\n // Note: we're mutating the monitor item here!\n // Generally it's better to avoid mutations,\n // but it's good here for the sake of performance\n // to avoid expensive index searches.\n source.position = destination.position;\n },\n drop: (dragItem, monitor) => monitor.getDropResult() ?? dropItemRef.current,\n });\n\n drop(droppableRef);\n\n return <>{children(collected)};\n};\n","import { Accordion, AccordionSummary, AccordionDetails, styled } from '@mui/material';\n\nexport const PlainAccordion = styled(Accordion)(() => ({\n background: 'transparent',\n borderRight: `2px solid transparent`,\n '&:last-of-type, &:first-of-type': {\n borderRadius: 0,\n },\n '&:before': {\n content: 'none',\n },\n '&.Mui-expanded': {\n margin: 0,\n },\n}));\n\nexport const PlainAccordionSummary = styled(AccordionSummary)(({ theme: { palette } }) => ({\n minHeight: 0,\n alignItems: 'center',\n transition: '.2s padding-bottom, .2s margin-bottom',\n '&.Mui-expanded': {\n minHeight: 'auto',\n marginBottom: '0',\n },\n '.MuiAccordionSummary-expandIconWrapper.Mui-expanded svg': {\n color: palette.primary.main,\n },\n}));\n\nexport const PlainAccordionDetails = styled(AccordionDetails)(() => ({\n padding: 0,\n}));\n","export const FLOW_BUILDER_PAGE_NS = 'pages/FlowBuilderPage';\n\nexport const i18n = {\n en: {\n buttons: {\n edit: 'Edit',\n apply: 'Apply',\n delete: 'Delete',\n actions: 'Actions',\n publish: 'Publish',\n publishUpdates: 'Publish Updates',\n dontShowMeAgain: \"Don't show me again\",\n resetChanges: 'Reset Changes',\n openBuilder: 'Open builder',\n nextStep: 'Next Step',\n prevStep: 'Prev Step',\n retryAll: 'Retry All',\n addStep: 'Add step',\n addTask: 'Add task',\n addSection: 'Add section',\n openAdvancedEditor: 'Open Advanced Editor',\n },\n labels: {\n then: 'Then',\n where: 'Where',\n value: 'Value',\n saving: 'Saving',\n savingError: 'Saving Error',\n workflow: 'Workflow',\n assetType: 'Asset type',\n assetToUpdate: 'Asset to update',\n updateAssetValue: 'Update asset value',\n takeValueFrom: 'Take value from',\n selectComponent: 'Select Component',\n selectAssetSearchField: 'Select asset search field',\n selectAssetProperty: 'Select Asset Property',\n updateValueAt: 'Update value at',\n untitledWorkflow: 'Untitled Workflow',\n untitledAssetType: 'Untitled Asset Type',\n untitledStep: 'Untitled step',\n untitledTask: 'Untitled task',\n untitledSection: 'Untitled section',\n cancelled: 'Cancelled',\n declined: 'Declined',\n enable: 'Enable',\n select: 'Select',\n buttonLabel: 'Button Label',\n completionStatus: 'Completion status',\n defaultRecipient: 'Default Recipient',\n restrictedAccess: 'Restricted Access',\n defaultEditor: 'Default Editor',\n addActivity: 'Add activity',\n dropHere: 'Drop Here',\n restrictedTask: 'Restricted task',\n conditionApplied: 'Condition applied',\n hidden: 'Hidden',\n copy: 'Copy',\n },\n titles: {\n input: 'Input',\n media: 'Media',\n table: 'Table',\n layout: 'Layout',\n duplicate: 'Duplicate',\n delete: 'Delete',\n rename: 'Rename',\n components: 'Components',\n validation: 'Validation',\n taskActions: 'Task Actions',\n editActionName: 'Edit {{ actionName }}',\n flowTypeNameReset: '{{ flowTypeName }} reset',\n somethingWentWrong: 'Something went wrong.',\n workflowPreview: 'Workflow Preview',\n whereToBegin: 'Unsure where to begin?',\n workflowConfiguration: 'Workflow configuration',\n assetConfiguration: 'Asset type configuration',\n browserSmall: 'Your browser is too small',\n screenSmall: 'Your screen is too small',\n unsupportedComponent: 'Unsupported Component',\n editYamlOnly: 'Advance Edit-Yaml Only',\n actionRequired: 'Action required',\n },\n descriptions: {\n flowTypeNameResetSuccess: '{{ flowTypeName }} was successfully reset.',\n tryRefreshOrContactSupport: 'Please try refreshing the page or contact support.',\n checkKnowledgeBase: 'Check our Knowledge Base to learn',\n checkValidationMessages: 'Please check validation messages.',\n unpublishedChangesWillNotBeSaved: 'Any unpublished changes will not be saved.',\n onlyPeopleCanSeeTaskDetails: 'Only people who assigned to this task can see its details',\n linkPeopleSearchField: 'Link a people search field',\n allowUserEditAndSubmitTask:\n 'Link a “People Search” field from the previous task to allow this user to edit and submit this task',\n notAllRequiredFieldsAreFilled: 'Not all required fields are filled',\n layoutIsMissing: 'Layout is missing',\n dragAndDropComponents: 'Drag and drop components here',\n beginDragAndDropTip:\n 'Begin by creating your workflow layout with tasks and steps. Then, use our drag-and-drop interface to quickly design workflows.',\n resizeBrowser: 'Resize your browser window to at least 1200px wide to return to builder mode',\n useDesktopDevice: 'To enable full functionality, use a desktop device.',\n resolveIssues: 'Please resolve all highlighted issues before publishing this workflow',\n },\n prompts: {\n enterStatusName: 'Enter status name',\n ifActionWasCompleted: 'If the action was completed?',\n areYouSureToPublish: 'Are you sure you want to publish {{ flowTypeName }}?',\n areYouSUreToResetFlowTypeName:\n 'Are you sure you want to reset {{ flowTypeName }} to its last published version?',\n areYouSureToDeleteActivityName:\n 'Are you sure you want to delete \"{{activityName}}\" activity?',\n areYouSureToDeleteComponent: 'Are you sure you want to delete this component?',\n areYouSureToDeleteSubject: 'Are you sure you want to delete {{ subject }}?',\n },\n tooltips: {\n editFlowWithDiana: 'Edit workflow with Diana, your personal AI Assistant. Instant access - ',\n resetToLastPublishedVersion: 'Reset to the last published version',\n advancedEditor: 'Advanced editor',\n preview: 'Preview',\n support: 'Support',\n settings: 'Settings',\n doubleClickToRename: 'Double click to rename',\n },\n errors: {\n publishFlowFailed: 'Failed to publish flow',\n },\n },\n};\n","import { useMemo, useState, useRef, useCallback } from 'react';\nimport { kebabCase } from 'lodash';\nimport { useTranslation } from 'react-i18next';\nimport {\n Box,\n Grid,\n Card,\n Stack,\n Typography,\n Tooltip,\n Zoom,\n Popper,\n PopperProps,\n} from '@mui/material';\nimport { ExpandMoreRounded as ExpandIcon } from '@mui/icons-material';\nimport {\n ILayoutComponent,\n createLayoutComponentObject,\n useFlowBuilderContext,\n LayoutComponentNames,\n} from '@diana/core';\nimport { DraggableLayoutComponent } from '../../../../../providers/DndLayoutComponents';\nimport {\n ILayoutComponentSettings,\n LayoutComponentCategoryEnum,\n} from '../../../../../models/LayoutComponentSettings';\nimport { useLayoutComponentSettings } from '../../../../../hooks/useLayoutComponentSettings';\nimport {\n PlainAccordion,\n PlainAccordionSummary,\n PlainAccordionDetails,\n} from './ComponentsList.styles';\nimport { FLOW_BUILDER_PAGE_NS } from '../../../i18n';\n\ninterface IComponentsListDrawerItemProps {\n name: LayoutComponentNames;\n settings: ILayoutComponentSettings;\n}\n\ninterface IComponentsListDrawerSection {\n displayName: string;\n items: IComponentsListDrawerItemProps[];\n}\n\nconst ComponentsListItem = (props: IComponentsListDrawerItemProps) => {\n const { name, settings } = props;\n const {\n displayName,\n icon: ComponentIcon,\n defaultProperties: properties,\n renderTooltip,\n } = settings;\n\n const [suppressTooltip, setSuppressTooltip] = useState(false);\n const bodyRef = useRef(null);\n\n const TooltipPopper = useMemo(() => {\n return (props: PopperProps) => {\n const { children } = props;\n return (\n \n {children}\n \n );\n };\n }, [displayName]);\n\n const buildLayoutComponent = useCallback(\n (): ILayoutComponent => createLayoutComponentObject({ component: name, properties }),\n [name, properties],\n );\n\n const [layoutComponent, setLayoutComponent] = useState(buildLayoutComponent());\n\n return (\n {\n setSuppressTooltip(true);\n }}\n onDragEnd={() => {\n setSuppressTooltip(false);\n setLayoutComponent(buildLayoutComponent());\n }}\n layoutComponent={layoutComponent}\n >\n {({ isDragging }) => (\n \n ({\n flex: 1,\n borderRadius: spacing(0.5),\n backgroundColor: isDragging ? palette.action.hover : undefined,\n })}\n >\n ({\n opacity: isDragging ? 0 : 1,\n '&:hover': {\n borderColor: palette.primary.main,\n svg: { color: palette.primary.main },\n },\n })}\n >\n \n \n \n {displayName}\n \n \n \n \n \n )}\n \n );\n};\n\nexport const ComponentsList = () => {\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore } = useFlowBuilderContext();\n const { getAllSettings } = useLayoutComponentSettings();\n\n const flowResourceType = useFlowBuilderStore((s) => s.flow?.flowResourceType);\n\n const categoryDisplayNameMap = useMemo(() => {\n return new Map([\n [LayoutComponentCategoryEnum.Input, t('titles.input')],\n [LayoutComponentCategoryEnum.Media, t('titles.media')],\n [LayoutComponentCategoryEnum.Table, t('titles.table')],\n [LayoutComponentCategoryEnum.Layout, t('titles.layout')],\n ]);\n }, [t]);\n\n const sections = useMemo(() => {\n const sectionsMap: Record = {};\n const entries = getAllSettings();\n for (const [name, settings] of entries) {\n const { flowResourceTypes, category } = settings;\n if (!category) continue;\n if (!flowResourceTypes.includes(flowResourceType!)) continue;\n sectionsMap[category] = sectionsMap[category] ?? {\n displayName: categoryDisplayNameMap.get(category) ?? category,\n items: [],\n };\n sectionsMap[category].items.push({ name, settings });\n }\n return Object.values(sectionsMap);\n }, [flowResourceType, getAllSettings, categoryDisplayNameMap]);\n\n return (\n \n \n {sections.map((section, index) => (\n \n \n }>\n {section.displayName}\n \n \n \n {section.items.map((item, index) => (\n \n \n \n ))}\n \n \n \n \n ))}\n \n \n );\n};\n","import { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { getLayoutComponentLabel, ILayoutComponent, LayoutComponentNames } from '@diana/core';\nimport { ILayoutComponentPropertyEditor } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\n\nexport const useLabelPropertyValidator = () => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useCallback(\n ({ layoutComponent, flow, value }) => {\n const label = value !== undefined ? value : getLayoutComponentLabel(layoutComponent);\n const isSectionComponent = layoutComponent.component === LayoutComponentNames.SECTION;\n if (!label)\n return {\n type: 'error',\n message: isSectionComponent ? t('errors.sectionEmptyName') : t('errors.requiredField'),\n };\n\n const siblings = (() => {\n for (const step of flow.steps) {\n for (const task of step.steps) {\n const result = (function find(components: ILayoutComponent[]): ILayoutComponent[] {\n for (const component of components) {\n if (component.id === layoutComponent.id) return components;\n const subComponents = find(component.components);\n if (subComponents.length) return subComponents;\n }\n return [];\n })(task.layout?.components ?? []);\n if (result.length) return result;\n }\n }\n return [];\n })();\n\n for (const component of siblings) {\n if (\n component.label?.toLocaleLowerCase() === label.toLocaleLowerCase() &&\n component.id !== layoutComponent.id\n )\n return { type: 'error', message: t('errors.labelShouldBeUnique') };\n }\n\n return null;\n },\n [t],\n );\n};\n","import { useEffect, useMemo, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { TextField } from '@mui/material';\nimport {\n getLayoutComponentLabel,\n mutateLayoutComponentLabel,\n FieldLabel,\n useObjectPropertyUpdateDebounce,\n} from '@diana/core';\nimport { useLabelPropertyValidator } from './useLabelPropertyValidator';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\n\nexport const LabelPropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { dirty, touched, options, flow, value, onChange, onTouched } = props;\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const ref = useRef(null);\n\n const [label, setLabel, layoutComponent] = useObjectPropertyUpdateDebounce(value, {\n getProperty: getLayoutComponentLabel,\n setProperty: (draft, value) => mutateLayoutComponentLabel(draft, value),\n updateObject: onChange,\n });\n\n const validate = useLabelPropertyValidator();\n\n const error = useMemo(() => {\n if (!touched && !dirty && !label) return null;\n return validate({ layoutComponent, flow, options });\n }, [touched, dirty, label, validate, layoutComponent, flow, options]);\n\n // autoFocus is not working when drawer is transitioning\n // the useEffect below will ensure focus after 500ms\n useEffect(() => {\n setTimeout(() => {\n const input = ref.current?.querySelector('input');\n if (input && input !== document.activeElement) input.focus();\n }, 500);\n }, []);\n\n return (\n }\n placeholder={options.placeholder}\n error={error?.type === 'error'}\n helperText={error?.message}\n variant=\"standard\"\n fullWidth={true}\n InputLabelProps={{ shrink: true }}\n value={label}\n onBlur={onTouched}\n onChange={(e) => setLabel(e.target.value)}\n />\n );\n};\n","import { useMemo } from 'react';\nimport { ILayoutComponentPropertyEditor } from '../../../models/LayoutComponentPropertyEditor';\nimport { LabelPropertyEditor } from './LabelPropertyEditor';\nimport { useLabelPropertyValidator } from './useLabelPropertyValidator';\n\nexport const useLabelPropertyEditor = (): ILayoutComponentPropertyEditor => {\n const validate = useLabelPropertyValidator();\n\n return useMemo(\n () => ({\n component: LabelPropertyEditor,\n validate,\n }),\n [validate],\n );\n};\n","import { styled, TextField, IconButton } from '@mui/material';\n\nexport const StyledTextField = styled(TextField)<{ width?: number }>(({ theme, width }) => ({\n '.MuiInputBase-root .MuiInputBase-input': {\n padding: theme.spacing(0.5),\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n caretColor: theme.palette.primary.main,\n width: width ? `${width}px` : '',\n '&::placeholder': { opacity: 1, color: theme.palette.text.placeholder },\n },\n '.MuiInputBase-root.Mui-focused .MuiOutlinedInput-notchedOutline': {\n borderWidth: 1,\n },\n '.MuiInputBase-root.Mui-error:not(.Mui-disabled)': {\n '&, &:hover': {\n '.MuiInputBase-input': {\n caretColor: theme.palette.error.main,\n },\n '&:not(.Mui-disabled):before, .MuiOutlinedInput-notchedOutline': {\n borderColor: theme.palette.error.main,\n },\n },\n },\n}));\n\nexport const StyledIconButton = styled(IconButton)(({ theme }) => ({\n padding: theme.spacing(0.75),\n}));\n","import { ComponentProps } from 'react';\nimport { Tooltip, tooltipClasses, TooltipProps } from '@mui/material';\nimport { IValidationResult, ValidationErrorMessage, ValidationLCTypes } from '@diana/core';\n\nconst tooltipSlotProps: ComponentProps['slotProps'] = {\n popper: {\n sx: {\n [`.${tooltipClasses.tooltip}`]: {\n margin: '0!important',\n padding: '0!important',\n border: 'none!important',\n },\n [`&.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] .${tooltipClasses.tooltip}`]: {\n marginTop: '2px',\n },\n [`&.${tooltipClasses.popper}[data-popper-placement*=\"top\"] .${tooltipClasses.tooltip}`]: {\n marginBottom: '2px',\n },\n [`&.${tooltipClasses.popper}[data-popper-placement*=\"right\"] .${tooltipClasses.tooltip}`]: {\n marginLeft: '2px',\n },\n [`&.${tooltipClasses.popper}[data-popper-placement*=\"left\"] .${tooltipClasses.tooltip}`]: {\n marginRight: '2px',\n },\n },\n },\n};\n\nconst typeMap: Record = {\n error: ValidationLCTypes.ERROR,\n warning: ValidationLCTypes.WARNING,\n};\n\nexport const ValidationTooltip = (\n props: Omit & { validationResult?: IValidationResult | null },\n) => {\n const { validationResult, children, ...tooltipProps } = props;\n\n return (\n \n }\n placement=\"bottom-start\"\n slotProps={tooltipSlotProps}\n {...tooltipProps}\n >\n {children}\n \n );\n};\n","import { useState, useEffect, useRef } from 'react';\nimport { isString } from 'lodash';\nimport { TextFieldProps, TextFieldVariants } from '@mui/material';\nimport { IValidationResult, useTextWidth } from '@diana/core';\nimport { StyledTextField } from '../../FlowBuilderPage.styles';\nimport { ValidationTooltip } from '../ValidationTooltip/ValidationTooltip';\n\nexport function TextFieldWithValidationTooltip(\n props: { variant?: Variant } & Omit & {\n autoWidth?: boolean;\n validationResult?: IValidationResult | null;\n },\n) {\n const {\n value,\n onFocus,\n onBlur,\n onMouseEnter,\n onMouseLeave,\n autoWidth,\n validationResult,\n autoFocus,\n ...textFieldProps\n } = props;\n\n const inputRef = useRef(null);\n\n const [text, setText] = useState('');\n const [isFocused, setIsFocused] = useState(false);\n const [isHovered, setIsHovered] = useState(false);\n\n const width = useTextWidth(text);\n\n useEffect(() => {\n setText(isString(value) ? value : '');\n }, [value]);\n\n useEffect(() => {\n if (autoFocus) inputRef.current?.focus();\n }, [autoFocus]);\n\n return (\n \n {\n setIsFocused(true);\n if (onFocus) onFocus(e);\n }}\n onBlur={(e) => {\n setIsFocused(false);\n if (onBlur) onBlur(e);\n }}\n onMouseEnter={(e) => {\n setIsHovered(true);\n if (onMouseEnter) onMouseEnter(e);\n }}\n onMouseLeave={(e) => {\n setIsHovered(false);\n if (onMouseLeave) onMouseLeave(e);\n }}\n />\n \n );\n}\n","import { useCallback, useMemo } from 'react';\nimport { isEqual } from 'lodash';\nimport { IValidationResult } from '@diana/core';\nimport { TEntityFieldNamesMap } from '../FlowBuilderPageStore/FlowBuilderPageStore.types';\nimport { useFlowBuilderPageStore } from '../FlowBuilderPageStore/useFlowBuilderPageStore';\n\nexport const useEntityFieldState = (\n entity: T,\n entityId: string,\n fieldName: TEntityFieldNamesMap[T],\n) => {\n const { touched, dirty, validationResult } = useFlowBuilderPageStore((s) => {\n return s.getEntityFieldState(entity, entityId, fieldName);\n }, isEqual);\n const setEntityFieldState = useFlowBuilderPageStore((s) => s.setEntityFieldState);\n\n const emitTouched = useCallback(() => {\n setEntityFieldState(entity, entityId, fieldName, { touched: true });\n }, [entity, entityId, fieldName, setEntityFieldState]);\n\n const emitDirty = useCallback(() => {\n setEntityFieldState(entity, entityId, fieldName, { dirty: true });\n }, [entity, entityId, fieldName, setEntityFieldState]);\n\n const setValidationResult = useCallback(\n (value: IValidationResult | null) => {\n setEntityFieldState(entity, entityId, fieldName, { validationResult: value });\n },\n [entity, entityId, fieldName, setEntityFieldState],\n );\n\n return useMemo(\n () => ({\n touched,\n dirty,\n emitTouched,\n emitDirty,\n validationResult,\n setValidationResult,\n }),\n [touched, dirty, emitDirty, emitTouched, validationResult, setValidationResult],\n );\n};\n","import { useCallback, useEffect, useLayoutEffect, useMemo, useState } from 'react';\nimport { useDebouncedCallback } from 'use-debounce';\nimport { TextFieldProps, TextFieldVariants } from '@mui/material';\nimport {\n useFlowBuilderContext,\n getLayoutComponentLabel,\n mutateLayoutComponentLabel,\n} from '@diana/core';\nimport { useLayoutComponentSettings } from '../../../../hooks/useLayoutComponentSettings';\nimport { useLabelPropertyEditor } from '../../../../components/LayoutComponentPropertyEditors/LabelPropertyEditor/useLabelPropertyEditor';\nimport { LayoutComponentPropertyEditorNames } from '../../../../components/LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\nimport { TextFieldWithValidationTooltip } from '../TextFieldWithValidationTooltip/TextFieldWithValidationTooltip';\nimport { useEntityFieldState } from '../../FlowBuilderPageHooks/useEntityFieldState';\nimport { isEqual } from 'lodash';\n\nexport function ComponentNameField(\n props: TextFieldProps & {\n indexPath: number[];\n taskIndex: number;\n stepIndex: number;\n autoWidth?: boolean;\n disableValidationResultTooltip?: boolean;\n },\n) {\n const {\n indexPath,\n taskIndex,\n stepIndex,\n onChange,\n onBlur,\n onMouseEnter,\n onMouseLeave,\n autoWidth,\n disableValidationResultTooltip,\n ...textFieldProps\n } = props;\n\n const { useFlowBuilderStore, updateAndSaveLayoutComponentByPosition } = useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const layoutComponent = useFlowBuilderStore(\n (s) => s.getLayoutComponentByPosition({ stepIndex, taskIndex, indexPath }),\n isEqual,\n );\n const componentDisplayName = layoutComponent ? getLayoutComponentLabel(layoutComponent) : '';\n\n const [value, setValue] = useState(componentDisplayName);\n\n const { getSettings } = useLayoutComponentSettings();\n const { validate } = useLabelPropertyEditor();\n\n const labelEditor = useMemo(() => {\n if (layoutComponent) {\n const settings = getSettings(layoutComponent);\n if (settings && settings.configurators) {\n for (const configurator of settings.configurators) {\n for (const editor of configurator.editors) {\n if (editor.name === LayoutComponentPropertyEditorNames.LabelPropertyEditor)\n return editor;\n }\n }\n }\n }\n return null;\n }, [getSettings, layoutComponent]);\n\n const fieldState = useEntityFieldState(\n 'layoutComponent',\n layoutComponent?.id ?? '',\n LayoutComponentPropertyEditorNames.LabelPropertyEditor,\n );\n\n const validateDisplayName = useCallback(\n (value: string) => {\n const flow = getFlow();\n if (!flow || !layoutComponent || (!fieldState.touched && !value) || !labelEditor) return;\n const result = validate({\n flow,\n layoutComponent,\n value,\n options: labelEditor?.options ?? {},\n });\n if (!isEqual(fieldState.validationResult, result)) fieldState.setValidationResult(result);\n },\n [getFlow, layoutComponent, validate, labelEditor, fieldState],\n );\n\n const saveDisplayName = useDebouncedCallback((displayName: string) => {\n updateAndSaveLayoutComponentByPosition({ indexPath, taskIndex, stepIndex }, (draft) => {\n mutateLayoutComponentLabel(draft, displayName);\n return draft;\n });\n }, 500);\n\n useLayoutEffect(() => {\n if (value !== componentDisplayName) setValue(componentDisplayName);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [componentDisplayName]);\n\n useEffect(() => {\n return () => saveDisplayName.flush();\n }, [saveDisplayName]);\n\n return (\n {\n const value = e.target.value;\n fieldState.emitDirty();\n setValue(value);\n saveDisplayName(value);\n validateDisplayName(value);\n if (onChange) onChange(e);\n }}\n onBlur={(e) => {\n fieldState.emitTouched();\n validateDisplayName(value);\n if (onBlur) onBlur(e);\n }}\n />\n );\n}\n","import { useCallback, useLayoutEffect, useState, useRef } from 'react';\nimport { isEqual } from 'lodash';\nimport { useTranslation } from 'react-i18next';\nimport { useDebouncedCallback } from 'use-debounce';\nimport { TextFieldProps, TextFieldVariants } from '@mui/material';\nimport {\n useFlowBuilderContext,\n useFlowBuilderStepValidators,\n FlowBuilderStepFieldNamesEnum,\n} from '@diana/core';\nimport { useEntityFieldState } from '../../FlowBuilderPageHooks/useEntityFieldState';\nimport { TextFieldWithValidationTooltip } from '../TextFieldWithValidationTooltip/TextFieldWithValidationTooltip';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\n\nexport function StepNameField(\n props: TextFieldProps & {\n index: number;\n autoWidth?: boolean;\n disableValidationResultTooltip?: boolean;\n },\n) {\n const {\n index,\n onChange,\n onBlur,\n onMouseEnter,\n onMouseLeave,\n autoWidth,\n disableValidationResultTooltip,\n ...textFieldProps\n } = props;\n\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore, updateAndSaveStepByIndex } = useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const getStepByIndex = useFlowBuilderStore((s) => s.getStepByIndex);\n const stepId = useFlowBuilderStore((s) => s.getStepByIndex(index)?.id ?? '', isEqual);\n const stepDisplayName = useFlowBuilderStore(\n (s) => s.getStepByIndex(index)?.displayName ?? '',\n isEqual,\n );\n\n const [value, setValue] = useState(stepDisplayName);\n const valueRef = useRef(value);\n\n const validators = useFlowBuilderStepValidators();\n const fieldState = useEntityFieldState('step', stepId, FlowBuilderStepFieldNamesEnum.DisplayName);\n\n const validate = validators[FlowBuilderStepFieldNamesEnum.DisplayName];\n\n const validateDisplayName = useCallback(\n (displayName: string) => {\n const flow = getFlow();\n const step = getStepByIndex(index);\n const result = flow && step ? validate({ flow, step: { ...step, displayName } }) : null;\n if (!isEqual(fieldState.validationResult, result)) fieldState.setValidationResult(result);\n },\n [getFlow, getStepByIndex, index, validate, fieldState],\n );\n\n const saveDisplayName = useDebouncedCallback((displayName: string) => {\n updateAndSaveStepByIndex(index, (draft) => ({ ...draft, displayName }));\n }, 500);\n\n useLayoutEffect(() => {\n if (value !== stepDisplayName) setValue(stepDisplayName);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [stepDisplayName]);\n\n useLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n\n useLayoutEffect(() => {\n return () => saveDisplayName.flush();\n }, [saveDisplayName]);\n\n return (\n {\n fieldState.emitDirty();\n setValue(e.target.value);\n saveDisplayName(e.target.value);\n validateDisplayName(e.target.value);\n if (onChange) onChange(e);\n }}\n onBlur={(e) => {\n fieldState.emitTouched();\n validateDisplayName(e.target.value);\n if (onBlur) onBlur(e);\n }}\n />\n );\n}\n","import { useCallback, useLayoutEffect, useRef, useState } from 'react';\nimport { isEqual } from 'lodash';\nimport { useTranslation } from 'react-i18next';\nimport { useDebouncedCallback } from 'use-debounce';\nimport { TextFieldProps, TextFieldVariants } from '@mui/material';\nimport {\n useFlowBuilderContext,\n useFlowBuilderTaskValidators,\n FlowBuilderTaskFieldNamesEnum,\n} from '@diana/core';\nimport { useEntityFieldState } from '../../FlowBuilderPageHooks/useEntityFieldState';\nimport { TextFieldWithValidationTooltip } from '../TextFieldWithValidationTooltip/TextFieldWithValidationTooltip';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\n\nexport function TaskNameField(\n props: TextFieldProps & {\n index: number;\n stepIndex: number;\n autoWidth?: boolean;\n disableValidationResultTooltip?: boolean;\n },\n) {\n const {\n index,\n stepIndex,\n onChange,\n onBlur,\n onMouseEnter,\n onMouseLeave,\n autoWidth,\n disableValidationResultTooltip,\n ...textFieldProps\n } = props;\n\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore, updateAndSaveTaskConfigByPosition } = useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const getTaskByPosition = useFlowBuilderStore((s) => s.getTaskByPosition);\n const updateTaskByPosition = useFlowBuilderStore((s) => s.updateTaskByPosition);\n const taskId = useFlowBuilderStore(\n (s) => s.getTaskByPosition({ index, stepIndex })?.id ?? '',\n isEqual,\n );\n const taskDisplayName = useFlowBuilderStore(\n (s) => s.getTaskByPosition({ index, stepIndex })?.displayName ?? '',\n isEqual,\n );\n\n const [value, setValue] = useState(taskDisplayName);\n const valueRef = useRef(value);\n\n const validators = useFlowBuilderTaskValidators();\n const fieldState = useEntityFieldState('task', taskId, FlowBuilderTaskFieldNamesEnum.DisplayName);\n\n const validate = validators[FlowBuilderTaskFieldNamesEnum.DisplayName];\n\n const validateDisplayName = useCallback(\n (displayName: string) => {\n const flow = getFlow();\n const task = getTaskByPosition({ index, stepIndex });\n const result = flow && task ? validate({ flow, task: { ...task, displayName } }) : null;\n if (!isEqual(fieldState.validationResult, result)) fieldState.setValidationResult(result);\n },\n [getFlow, getTaskByPosition, index, stepIndex, validate, fieldState],\n );\n\n const saveDisplayName = useDebouncedCallback((displayName: string) => {\n updateTaskByPosition({ stepIndex, index }, (draft) => ({ ...draft, displayName }));\n updateAndSaveTaskConfigByPosition({ stepIndex, index }, (draft) => ({ ...draft, displayName }));\n }, 500);\n\n useLayoutEffect(() => {\n if (value !== taskDisplayName) setValue(taskDisplayName);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [taskDisplayName]);\n\n useLayoutEffect(() => {\n valueRef.current = value;\n }, [value]);\n\n useLayoutEffect(() => {\n return () => saveDisplayName.flush();\n }, [saveDisplayName]);\n\n return (\n {\n fieldState.emitDirty();\n setValue(e.target.value);\n saveDisplayName(e.target.value);\n validateDisplayName(e.target.value);\n if (onChange) onChange(e);\n }}\n onBlur={(e) => {\n fieldState.emitTouched();\n validateDisplayName(e.target.value);\n if (onBlur) onBlur(e);\n }}\n />\n );\n}\n","import { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n findLayoutComponentPositionByIdInSteps,\n ILayoutComponent,\n useDialogs,\n useFlowBuilderContext,\n} from '@diana/core';\nimport { useFlowBuilderPageStore } from '../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { FLOW_BUILDER_PAGE_NS } from '../i18n';\nimport produce from 'immer';\n\nexport const useDeleteComponentById = () => {\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { confirm } = useDialogs();\n const { useFlowBuilderStore, updateAndSaveLayoutById } = useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const setActiveComponent = useFlowBuilderPageStore((s) => s.setActiveComponent);\n\n return useCallback(\n async (componentId: string) => {\n const { confirmed } = await confirm(null, {\n title: t('prompts.areYouSureToDeleteComponent'),\n variant: 'delete',\n });\n if (!confirmed) return false;\n\n const steps = getFlow()?.steps ?? [];\n const position = findLayoutComponentPositionByIdInSteps(steps, componentId);\n const layout = steps[position?.stepIndex ?? -1]?.steps[position?.taskIndex ?? -1]?.layout;\n const updatedLayout = produce(layout, (draft) => {\n if (draft) {\n draft.components = (function remove(items: ILayoutComponent[]): ILayoutComponent[] {\n const result = items.filter((item) => item.id !== componentId);\n return result.map((item) => {\n item.components = remove(item.components);\n return item;\n });\n })(draft.components);\n }\n });\n\n if (updatedLayout) updateAndSaveLayoutById(updatedLayout.id, updatedLayout);\n setActiveComponent(null);\n return true;\n },\n [confirm, t, getFlow, updateAndSaveLayoutById, setActiveComponent],\n );\n};\n","import { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n findStepByIdInSteps,\n useDialogs,\n useFlowBuilderContext,\n useFlowBuilderDeleteTaskMutation,\n} from '@diana/core';\nimport { useFlowBuilderPageStore } from '../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { FLOW_BUILDER_PAGE_NS } from '../i18n';\n\nexport const useDeleteStepById = () => {\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { confirm } = useDialogs();\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const updateFlow = useFlowBuilderStore((s) => s.updateFlow);\n const registerRequest = useFlowBuilderStore((s) => s.registerRequest);\n const setActiveTask = useFlowBuilderPageStore((s) => s.setActiveTask);\n\n // Note there is no endpoint or mutation to delete step directly yet;\n // Delete task mutation is utilized for now\n const { mutateAsync: deleteTask, isPending: isDeleting } = useFlowBuilderDeleteTaskMutation({\n registerRequest,\n onSuccess: (data, { stepId, taskId, flowId }) => {\n setActiveTask(null);\n updateFlow((draft) => {\n const draftStep = draft?.steps.find((step) => step.id === stepId);\n if (draftStep) {\n draftStep.steps = draftStep.steps.filter((task) => task.id !== taskId);\n if (!draftStep.steps.length) {\n draft.steps = draft.steps.filter((step) => step.id !== stepId);\n }\n }\n return draft;\n });\n },\n });\n\n const deleteStepById = useCallback(\n async (stepId: string) => {\n const flow = getFlow();\n if (!flow) return false;\n\n const step = findStepByIdInSteps(flow.steps, stepId);\n if (!step) return false;\n\n const { confirmed } = await confirm(null, {\n title: t('prompts.areYouSureToDeleteSubject', {\n subject: step.displayName || t('labels.untitledStep'),\n }),\n variant: 'delete',\n });\n if (!confirmed) return false;\n\n await Promise.all(\n step.steps.map((task) => deleteTask({ flowId: flow.id, stepId: step.id, taskId: task.id })),\n );\n\n return true;\n },\n [t, getFlow, confirm, deleteTask],\n );\n\n return { deleteStepById, isDeleting };\n};\n","import { useCallback } from 'react';\nimport { camelCase, cloneDeep, get, isNil, padStart, set } from 'lodash';\nimport { useTranslation } from 'react-i18next';\nimport {\n uuid,\n useFlowBuilderContext,\n getLayoutComponentByIndexPath,\n findLayoutComponentPositionByIdInSteps,\n ILayout,\n ILayoutComponent,\n getLayoutComponentLabel,\n mutateLayoutComponentLabel,\n} from '@diana/core';\nimport { useFlowBuilderPageStore } from '../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { FLOW_BUILDER_PAGE_NS } from '../i18n';\n\nconst componentLabelExistsInLayout = (label: string, layout: ILayout) => {\n return (function check(items: ILayoutComponent[]): boolean {\n for (const item of items) {\n const itemLabel = getLayoutComponentLabel(item);\n if (itemLabel.toLowerCase().trim() === label.toLowerCase().trim()) return true;\n if (Array.isArray(item.components) && check(item.components)) return true;\n }\n return false;\n })(layout.components ?? []);\n};\n\nexport const useDuplicateComponentById = () => {\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore, updateAndSaveDefaultData, updateAndSaveLayoutById } =\n useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const getDefaultData = useFlowBuilderStore((s) => s.getDefaultData);\n const getLayoutComponentById = useFlowBuilderStore((s) => s.getLayoutComponentById);\n const setActiveComponent = useFlowBuilderPageStore((s) => s.setActiveComponent);\n\n return useCallback(\n async (componentId: string) => {\n const steps = getFlow()?.steps ?? [];\n const position = findLayoutComponentPositionByIdInSteps(steps, componentId);\n\n if (position) {\n const layout = cloneDeep(steps[position.stepIndex].steps[position.taskIndex].layout!);\n const layoutComponent = getLayoutComponentByIndexPath(\n position.indexPath,\n layout.components,\n )!;\n const newLayoutComponent = cloneDeep(layoutComponent);\n const defaultDataMap: Record = {};\n\n // ensure label is unique to avoid default data conflict\n const initialLabel = (\n getLayoutComponentLabel(newLayoutComponent) || t('labels.untitledSection')\n ).replace(new RegExp(` ${t('labels.copy')} \\\\d+$`), '');\n const uniqueLabel = (function getNewLabel(label: string, count: number): string {\n const countLabel = padStart(String(count), 3, '0');\n const potentialLabel = `${label} ${t('labels.copy')} ${countLabel}`;\n if (componentLabelExistsInLayout(potentialLabel, layout))\n return getNewLabel(label, count + 1);\n return potentialLabel;\n })(initialLabel, 1);\n mutateLayoutComponentLabel(newLayoutComponent, uniqueLabel);\n\n (function resetComponent(component: ILayoutComponent) {\n const origDataPath = component.dataPath;\n component.id = uuid();\n component.name = camelCase(uniqueLabel);\n if (origDataPath.startsWith('$.')) {\n const parentAccessors = origDataPath.split('.').slice(0, -1);\n component.dataPath = [...parentAccessors, camelCase(uniqueLabel)].join('.');\n } else {\n component.dataPath = ['$', camelCase(uniqueLabel)].join('.');\n }\n if (component.properties && component.properties.withCustomData) {\n defaultDataMap[component.id] = get(getDefaultData(), origDataPath.replace(/^\\$\\./, ''));\n }\n if (Array.isArray(component.components) && component.components.length) {\n for (const item of component.components) resetComponent(item);\n }\n })(newLayoutComponent);\n\n if (position.indexPath.length === 1) {\n const index = position.indexPath[0];\n layout.components.splice(index + 1, 0, newLayoutComponent);\n } else if (position.indexPath.length > 1) {\n const parentIndexPath = cloneDeep(position.indexPath);\n const [index] = parentIndexPath.splice(-1);\n const parent = getLayoutComponentByIndexPath(parentIndexPath, layout.components)!;\n parent.components.splice(index + 1, 0, newLayoutComponent);\n }\n updateAndSaveLayoutById(layout.id, layout);\n setActiveComponent(null);\n\n // copy default data\n setTimeout(() => {\n const duplicatedComponent = getLayoutComponentById(newLayoutComponent.id);\n if (duplicatedComponent) {\n updateAndSaveDefaultData((data) => {\n (function update(item: ILayoutComponent) {\n const defaultData = defaultDataMap[item.id];\n if (item.dataPath && !isNil(defaultData)) {\n set(data, item.dataPath.replace(/^\\$\\./, ''), defaultData);\n }\n if (Array.isArray(item.components)) item.components.forEach(update);\n })(duplicatedComponent);\n return data;\n });\n }\n }, 500);\n\n return true;\n }\n return false;\n },\n [\n t,\n getFlow,\n updateAndSaveLayoutById,\n setActiveComponent,\n getDefaultData,\n getLayoutComponentById,\n updateAndSaveDefaultData,\n ],\n );\n};\n","import { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n findTaskPositionByIdInSteps,\n useDialogs,\n useFlowBuilderContext,\n useFlowBuilderDeleteTaskMutation,\n} from '@diana/core';\nimport { useFlowBuilderPageStore } from '../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { FLOW_BUILDER_PAGE_NS } from '../i18n';\n\nexport const useDeleteTaskById = () => {\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { confirm } = useDialogs();\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const updateFlow = useFlowBuilderStore((s) => s.updateFlow);\n const registerRequest = useFlowBuilderStore((s) => s.registerRequest);\n const setActiveTask = useFlowBuilderPageStore((s) => s.setActiveTask);\n\n const { mutateAsync: deleteTask, isPending: isDeleting } = useFlowBuilderDeleteTaskMutation({\n registerRequest,\n onSuccess: (data, { stepId, taskId, flowId }) => {\n setActiveTask(null);\n updateFlow((draft) => {\n const draftStep = draft?.steps.find((step) => step.id === stepId);\n if (draftStep) {\n draftStep.steps = draftStep.steps.filter((task) => task.id !== taskId);\n if (!draftStep.steps.length) {\n draft.steps = draft.steps.filter((step) => step.id !== stepId);\n }\n }\n return draft;\n });\n },\n });\n\n const deleteTaskById = useCallback(\n async (taskId: string) => {\n const flow = getFlow();\n if (!flow) return false;\n\n const position = findTaskPositionByIdInSteps(flow.steps, taskId);\n if (!position) return false;\n\n const step = flow.steps[position.stepIndex];\n const task = step.steps[position.index];\n\n const { confirmed } = await confirm(null, {\n title: t('prompts.areYouSureToDeleteSubject', {\n subject: task.displayName || t('labels.untitledTask'),\n }),\n variant: 'delete',\n });\n if (!confirmed) return false;\n\n await deleteTask({ flowId: flow.id, stepId: step.id, taskId: task.id });\n\n return true;\n },\n [t, getFlow, confirm, deleteTask],\n );\n\n return { deleteTaskById, isDeleting };\n};\n","import { useState, useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useTheme } from '@mui/material';\nimport {\n IStep,\n IMenuAction,\n LayoutComponentNames,\n useFlowBuilderContext,\n createLayoutComponentObject,\n} from '@diana/core';\nimport { useDeleteTaskById } from './useDeleteTaskById';\nimport { FLOW_BUILDER_PAGE_NS } from '../i18n';\n\ninterface IGetTaskMenuActionsArgs {\n task: IStep;\n step: IStep;\n taskIndex: number;\n stepIndex: number;\n}\n\nexport const useGetTaskMenuActions = () => {\n const [deletingId, setDeletingId] = useState('');\n\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { palette } = useTheme();\n const { deleteTaskById, isDeleting } = useDeleteTaskById();\n const { updateAndSaveLayoutById } = useFlowBuilderContext();\n\n return useCallback(\n (args: IGetTaskMenuActionsArgs) => {\n const actions: IMenuAction[] = [];\n\n actions.push({\n title: t('buttons.addSection'),\n disabled: !args.task.layout,\n onClick: ({ close }) => {\n close();\n if (args.task.layout)\n updateAndSaveLayoutById(args.task.layout.id, (draft) => {\n draft.components.push(\n createLayoutComponentObject({\n component: LayoutComponentNames.SECTION,\n properties: { width: 'col-12' },\n }),\n );\n return draft;\n });\n },\n });\n\n actions.push({\n title: t('buttons.delete'),\n color: palette.error.main,\n disabled: args.step.steps.length <= 1,\n loading: isDeleting && args.task.id === deletingId,\n onClick: ({ close }) => {\n close();\n setDeletingId(args.task.id);\n deleteTaskById(args.task.id)\n .catch()\n .finally(() => setDeletingId(''));\n },\n });\n\n return actions;\n },\n [t, deleteTaskById, deletingId, isDeleting, palette.error.main, updateAndSaveLayoutById],\n );\n};\n","export const renameExplorerNode = (nodeType: 'step' | 'task' | 'section', nodeId: string) => {\n setTimeout(() => {\n const nameContainer = document.querySelector(\n `[data-${nodeType}-node-id=\"${nodeId}\"] [data-testid=\"NodeHeader-NameContainer\"]`,\n );\n if (nameContainer)\n nameContainer.dispatchEvent(\n new MouseEvent('dblclick', { bubbles: true, cancelable: true, view: window }),\n );\n });\n};\n","import {\n createLayoutComponentObject,\n DetailsLoading,\n EditWorkflowType,\n FlowBuilderStepFieldNamesEnum,\n FlowBuilderTaskFieldNamesEnum,\n FlowStepsExplorer,\n IFlowStepsExplorerProps,\n LayoutComponentNames,\n useEditWorkflowAssistantRequest,\n useFlowBuilderAddStepMutation,\n useFlowBuilderAddTaskMutation,\n useFlowBuilderContext,\n} from '@diana/core';\nimport { AddRounded as AddIcon } from '@mui/icons-material';\nimport { Box, Button, CircularProgress, useTheme } from '@mui/material';\nimport { isEqual, noop } from 'lodash';\nimport { Fragment, useCallback, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { ComponentNameField } from '../../../FlowBuilderPageComponents/ComponentNameField/ComponentNameField';\nimport { StepNameField } from '../../../FlowBuilderPageComponents/StepNameField/StepNameField';\nimport { TaskNameField } from '../../../FlowBuilderPageComponents/TaskNameField/TaskNameField';\nimport { useDeleteComponentById } from '../../../FlowBuilderPageHooks/useDeleteComponentById';\nimport { useDeleteStepById } from '../../../FlowBuilderPageHooks/useDeleteStepById';\nimport { useDuplicateComponentById } from '../../../FlowBuilderPageHooks/useDuplicateComponentById';\nimport { useGetTaskMenuActions } from '../../../FlowBuilderPageHooks/useGetTaskMenuActions';\nimport { useScrollToElement } from '../../../FlowBuilderPageHooks/useScrollToElement';\nimport { useFlowBuilderPageStore } from '../../../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { FLOW_BUILDER_PAGE_NS } from '../../../i18n';\nimport { renameExplorerNode } from './Support';\nimport { LayoutComponentPropertyEditorNames } from '../../../../../components/LayoutComponentPropertyEditors/LayoutComponentPropertyEditorNames';\n\nexport const Explorer = () => {\n const [deletingStepId, setDeletingStepId] = useState('');\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore, reorderAndSaveStepsAndTasks, updateAndSaveLayoutById } =\n useFlowBuilderContext();\n\n const updateStepById = useFlowBuilderStore((s) => s.updateStepById);\n const registerRequest = useFlowBuilderStore((s) => s.registerRequest);\n\n const flowId = useFlowBuilderStore((s) => s.flow?.id ?? '');\n const steps = useFlowBuilderStore((s) => s.flow?.steps ?? [], isEqual);\n\n const storeParams = {\n type: EditWorkflowType.Flow,\n flowId: flowId ?? '',\n layoutId: undefined,\n stepId: undefined,\n taskId: undefined,\n };\n\n const { hasRequest } = useEditWorkflowAssistantRequest(storeParams);\n\n const stepFieldStateMap = useFlowBuilderPageStore((s) => s.fieldStateMap.step, isEqual);\n const taskFieldStateMap = useFlowBuilderPageStore((s) => s.fieldStateMap.task, isEqual);\n const lcFieldStateMap = useFlowBuilderPageStore((s) => s.fieldStateMap.layoutComponent, isEqual);\n const activeComponentPosition = useFlowBuilderPageStore((s) => s.activeComponent?.position);\n const activeTaskPosition = useFlowBuilderPageStore((s) => s.activeTask?.position);\n const setTaskCollapsed = useFlowBuilderPageStore((s) => s.setTaskCollapsed);\n\n const { palette, typography, spacing } = useTheme();\n const { deleteStepById, isDeleting: isDeletingStep } = useDeleteStepById();\n const duplicateComponentById = useDuplicateComponentById();\n const deleteComponentById = useDeleteComponentById();\n const getTaskMenuActions = useGetTaskMenuActions();\n const scrollToElement = useScrollToElement();\n\n const { mutateAsync: addTaskFn } = useFlowBuilderAddTaskMutation({\n registerRequest,\n onSuccess: (task, variables) => {\n updateStepById(variables.stepId, (draft) => {\n draft.steps.push(task);\n return draft;\n });\n renameExplorerNode('task', task.id);\n },\n });\n\n const onReorder = useCallback>(\n (steps, type) => {\n if (type === 'step') {\n reorderAndSaveStepsAndTasks(steps.map((step) => ({ stepId: step.id, taskIds: null })));\n }\n if (type === 'task') {\n reorderAndSaveStepsAndTasks(\n steps.map((step) => ({\n stepId: step.id,\n taskIds: step.steps.map((task) => task.id),\n })),\n );\n }\n if (type === 'section') {\n for (const step of steps) {\n for (const task of step.steps) {\n if (task.layout) updateAndSaveLayoutById(task.layout.id, task.layout);\n }\n }\n }\n },\n [reorderAndSaveStepsAndTasks, updateAndSaveLayoutById],\n );\n\n const onAddTaskInStep = useCallback>(\n async ({ step }) => {\n await addTaskFn({ flowId, stepId: step.id });\n },\n [addTaskFn, flowId],\n );\n\n const onAddSectionInTask = useCallback<\n NonNullable\n >(\n async ({ task }) => {\n if (task.layout) {\n const section = createLayoutComponentObject({\n component: LayoutComponentNames.SECTION,\n properties: { width: 'col-12' },\n });\n updateAndSaveLayoutById(task.layout.id, (draft) => {\n draft.components.push(section);\n return draft;\n });\n renameExplorerNode('section', section.id);\n }\n },\n [updateAndSaveLayoutById],\n );\n\n const getStepActions = useCallback>(\n ({ step }) => {\n return [\n {\n title: 'Delete',\n color: palette.error.main,\n disabled: steps.length <= 1,\n execute: async () => {\n setDeletingStepId(step.id);\n deleteStepById(step.id)\n .catch()\n .finally(() => setDeletingStepId(''));\n },\n },\n ];\n },\n [palette, steps.length, deleteStepById],\n );\n\n const getTaskActions = useCallback>(\n (ctx) => {\n const actions = getTaskMenuActions(ctx).filter((a) => a.title !== t('buttons.addSection'));\n return actions.map(({ onClick, ...action }) => ({\n ...action,\n execute: async () => onClick?.({ close: noop, openWorkDrawer: noop }),\n }));\n },\n [t, getTaskMenuActions],\n );\n\n const getSectionActions = useCallback>(\n ({ section, sectionIndex }) => {\n return [\n {\n title: 'Duplicate',\n execute: async () => {\n await duplicateComponentById(section.id);\n },\n },\n {\n title: 'Delete',\n color: palette.error.main,\n disabled: sectionIndex <= 0,\n execute: async () => {\n deleteComponentById(section.id).catch();\n },\n },\n ];\n },\n [palette.error.main, duplicateComponentById, deleteComponentById],\n );\n\n if (hasRequest)\n return (\n
\n \n
\n );\n\n return (\n \n \n 1}\n isStepActionsLoading={({ step }) => isDeletingStep && step.id === deletingStepId}\n onClickStep={(_, ctx) => {\n scrollToElement(`[data-step-id=\"${ctx.step.id}\"]`, ctx.stepIndex === 0 ? 16 : 8);\n const { activeTask, setActiveTask } = useFlowBuilderPageStore.getState();\n const firstTaskId = ctx.step.steps[0].id;\n if (activeTask?.id !== firstTaskId) {\n setActiveTask({ id: firstTaskId, position: { stepIndex: ctx.stepIndex, index: 0 } });\n }\n }}\n onAddTaskInStep={onAddTaskInStep}\n isStepSelected={({ stepIndex }) => {\n if (activeTaskPosition) {\n return activeTaskPosition.stepIndex === stepIndex;\n }\n return false;\n }}\n getStepActions={getStepActions}\n getStepValidationResult={({ step }) =>\n stepFieldStateMap[step.id]?.[FlowBuilderStepFieldNamesEnum.DisplayName]\n ?.validationResult ?? null\n }\n renderStepNameTextField={({ ctx, ...props }) => (\n \n )}\n canRenameTask={true}\n canReorderTask={({ step }) => step.steps.length > 1}\n onClickTask={(_, ctx) => {\n const taskId = ctx.task.id;\n scrollToElement(\n `[data-task-id=\"${taskId}\"]`,\n ctx.stepIndex === 0 && ctx.taskIndex === 0 ? 16 : 8,\n );\n\n const { activeTask, setActiveTask } = useFlowBuilderPageStore.getState();\n if (activeTask?.id !== taskId) {\n setActiveTask({\n id: taskId,\n position: { stepIndex: ctx.stepIndex, index: ctx.taskIndex },\n });\n }\n }}\n onAddSectionInTask={onAddSectionInTask}\n getTaskActions={getTaskActions}\n isTaskSelected={({ taskIndex, stepIndex }) => {\n const currentActivePosition = activeTaskPosition ?? activeComponentPosition;\n const isCurrentStep = currentActivePosition?.stepIndex === stepIndex;\n if (isCurrentStep) {\n if (activeComponentPosition) {\n return activeComponentPosition.taskIndex === taskIndex;\n }\n if (activeTaskPosition) {\n return activeTaskPosition.index === taskIndex;\n }\n }\n return false;\n }}\n getTaskValidationResult={({ task }) =>\n taskFieldStateMap[task.id]?.[FlowBuilderTaskFieldNamesEnum.DisplayName]\n ?.validationResult ?? null\n }\n renderTaskNameTextField={({ ctx, ...props }) => (\n \n )}\n canRenameSection={({ sectionIndex }) => sectionIndex > 0}\n canReorderSection={({ sectionIndex }) => sectionIndex > 0}\n isSectionHidden={({ sectionIndex }) => sectionIndex <= 0}\n getSectionActions={getSectionActions}\n isSectionSelected={({ stepIndex, taskIndex, sectionIndex }) => {\n const isCurrentTask =\n activeComponentPosition?.stepIndex === stepIndex &&\n activeComponentPosition?.taskIndex === taskIndex;\n if (activeComponentPosition && isCurrentTask) {\n return activeComponentPosition.indexPath[0] === sectionIndex;\n }\n return false;\n }}\n getSectionValidationResult={({ section }) =>\n lcFieldStateMap[section.id]?.[LayoutComponentPropertyEditorNames.LabelPropertyEditor]\n ?.validationResult ?? null\n }\n onClickSection={(_, ctx) => {\n const sectionId = ctx.section.id;\n setTaskCollapsed(ctx.task.id, false);\n setTimeout(() => scrollToElement(`[data-layout-component-id=\"${sectionId}\"]`, 60), 200);\n\n const { activeComponent, setActiveComponent } = useFlowBuilderPageStore.getState();\n if (activeComponent?.id !== sectionId) {\n setActiveComponent({\n id: sectionId,\n position: {\n stepIndex: ctx.stepIndex,\n taskIndex: ctx.taskIndex,\n indexPath: [ctx.sectionIndex],\n },\n });\n }\n }}\n renderSectionNameTextField={({ ctx, ...props }) => (\n \n )}\n />\n \n\n \n \n \n \n );\n};\n\nexport const ExplorerFooter = () => {\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const updateFlow = useFlowBuilderStore((s) => s.updateFlow);\n const registerRequest = useFlowBuilderStore((s) => s.registerRequest);\n\n const { mutate: addStep, isPending: isAddingStep } = useFlowBuilderAddStepMutation({\n registerRequest,\n onSuccess: (step, variables) => {\n updateFlow((draft) => {\n const index = variables.index;\n if (typeof index === 'undefined') draft.steps.push(step);\n else draft.steps.splice(index, 0, step);\n return draft;\n });\n renameExplorerNode('step', step.id);\n },\n });\n\n const onAddStep = useCallback(async () => {\n const flow = getFlow();\n if (flow) addStep({ flowId: flow.id });\n }, [addStep, getFlow]);\n\n return (\n \n \n \n : }\n onClick={onAddStep}\n fullWidth\n >\n {t('buttons.addStep')}\n \n \n \n );\n};\n","import { useLayoutEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Alert, Box, Tab, Tabs, Typography } from '@mui/material';\nimport { Info as InfoIcon } from '@mui/icons-material';\nimport { FlowResourceType, IPageLayoutProps, useFlowBuilderContext } from '@diana/core';\nimport { useFlowBuilderPageContext } from '../../FlowBuilderPageContext/useFlowBuilderPageContext';\nimport { ComponentsList } from './ComponentsList/ComponentsList';\nimport { Explorer } from './Explorer/Explorer';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\n\nexport enum BuilderToolsDrawerTabValue {\n Explorer = 'explorer',\n Components = 'components',\n}\n\ninterface ITab {\n label: string;\n value: BuilderToolsDrawerTabValue;\n}\n\nexport const useToolsDrawer = (): NonNullable => {\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n\n const { useFlowBuilderStore } = useFlowBuilderContext();\n const { isLoading } = useFlowBuilderPageContext();\n\n const flowResourceType = useFlowBuilderStore((s) => s.flow?.flowResourceType);\n\n const tabs = useMemo(() => {\n const result: ITab[] = [];\n if (!!flowResourceType && flowResourceType !== FlowResourceType.Entity)\n result.push({ label: t('labels.workflow'), value: BuilderToolsDrawerTabValue.Explorer });\n result.push({ label: t('titles.components'), value: BuilderToolsDrawerTabValue.Components });\n return result;\n }, [t, flowResourceType]);\n\n const [activeTab, setActiveTab] = useState(\n BuilderToolsDrawerTabValue.Components,\n );\n\n const header = useMemo(() => {\n return (\n setActiveTab(tab)}\n sx={({ typography }) => ({ '.MuiButtonBase-root': { fontSize: typography.fontSize } })}\n >\n {tabs.map((tab) => (\n \n ))}\n \n );\n }, [activeTab, tabs]);\n\n const tabContent = useMemo(() => {\n if (activeTab === BuilderToolsDrawerTabValue.Explorer) return ;\n if (activeTab === BuilderToolsDrawerTabValue.Components) return ;\n return null;\n }, [activeTab]);\n\n const content = useMemo(() => {\n return (\n <>\n \n {tabContent}\n \n );\n }, [tabContent]);\n\n useLayoutEffect(() => {\n setActiveTab(tabs[0].value);\n }, [tabs]);\n\n return useMemo(\n () => ({\n isOpen: true,\n isLoading,\n header,\n content,\n }),\n [isLoading, header, content],\n );\n};\n\nconst InfoAlert = () => {\n const [isActive, setIsActive] = useState(false);\n\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const flowOriginId = useFlowBuilderStore((s) => s.flow?.flowOriginId);\n const flowId = useFlowBuilderStore((s) => s.flow?.id);\n const flowResourceType = useFlowBuilderStore((s) => s.flow?.flowResourceType);\n\n const originFlowId = flowOriginId || flowId;\n\n const storageKey = `FLOW_BUILDER_INFO_ALERT_HIDE:${originFlowId}`;\n\n useLayoutEffect(() => {\n if (originFlowId && flowResourceType !== FlowResourceType.Entity) {\n const hidden = localStorage.getItem(storageKey);\n if (hidden !== 'true') setIsActive(true);\n }\n }, [originFlowId, flowResourceType, storageKey]);\n\n return isActive ? (\n \n }\n onClose={() => {\n setIsActive(false);\n localStorage.setItem(storageKey, 'true');\n }}\n >\n ({ fontSize: typography.fontSize })}\n >\n {t('titles.whereToBegin')}\n \n {t('descriptions.beginDragAndDropTip')}\n \n \n ) : null;\n};\n","import { useCallback } from 'react';\nimport { useFixedHeadersStore } from '@diana/core';\n\nexport const useScrollToElement = () => {\n const headerOffset = useFixedHeadersStore((s) => s.getTotalOffset());\n\n return useCallback(\n (selector: string, margin: number) => {\n const element = document.querySelector(selector);\n if (element) {\n const rect = element.getBoundingClientRect();\n const bodyRect = document.body.getBoundingClientRect();\n const offset = rect.top - bodyRect.top - headerOffset - margin;\n window.scrollTo({ top: offset, behavior: 'smooth' });\n }\n },\n [headerOffset],\n );\n};\n","import { ReactNode, useCallback, useMemo, useState } from 'react';\nimport { List, ListItemButton, ListItemAvatar, ListItemText } from '@mui/material';\nimport {\n DataObjectRounded as DataObjectRoundedIcon,\n SaveAsRounded as SaveAsRoundedIcon,\n} from '@mui/icons-material';\nimport { IStep, IWorkTaskConfig, useDynamicDrawer } from '@diana/core';\nimport { DebugJsonDrawerContent } from './DebugJsonDrawerContent';\n\nenum TabEnum {\n taskConfig = 'TASK_CONFIG',\n pocoObject = 'POCO_OBJECT',\n}\n\ninterface TabItem {\n icon: ReactNode;\n title: string;\n description: string;\n}\n\ninterface DebugTaskProps {\n task: IStep | null;\n taskConfig: IWorkTaskConfig | null;\n onOpenJson: (args: { title: string; src: object; onClose: () => void }) => void;\n onCloseJson: () => void;\n}\n\ninterface UseDebugTaskDrawerProps {\n task: IStep | null;\n taskConfig: IWorkTaskConfig | null;\n}\n\nexport const DebugTask = (props: DebugTaskProps) => {\n const { task, taskConfig, onOpenJson, onCloseJson } = props;\n const [activeTab, setActiveTab] = useState(null);\n\n const tabMap = useMemo>(\n () => ({\n [TabEnum.taskConfig]: {\n icon: ,\n title: 'Task Config',\n description: 'Task config is the object that is being sent to the backend',\n },\n [TabEnum.pocoObject]: {\n icon: ,\n title: 'Poco Object',\n description: 'Poco object is the actual value of task',\n },\n }),\n [],\n );\n\n return (\n \n {Object.entries(tabMap).map(([code, item]) => (\n {\n if (activeTab === code) {\n onCloseJson();\n setActiveTab(null);\n } else {\n onOpenJson({\n title: `${tabMap[code as TabEnum]?.title}`,\n src: (() => {\n if (code === TabEnum.taskConfig) return taskConfig ?? {};\n if (code === TabEnum.pocoObject) return task ?? {};\n return {};\n })(),\n onClose: () => setActiveTab(null),\n });\n setActiveTab(code as TabEnum);\n }\n }}\n >\n {item.icon}\n \n \n ))}\n \n );\n};\n\nexport const useDebugTaskDrawer = (props: UseDebugTaskDrawerProps) => {\n const { task, taskConfig } = props;\n const { openContent, close, openSubContent, closeSub } = useDynamicDrawer();\n\n const onOpenJson = useCallback(\n ({ title, src, onClose }) => {\n openSubContent({\n width: 900,\n content: ,\n onClose,\n });\n },\n [openSubContent, closeSub],\n );\n\n const openDrawer = useCallback(() => {\n openContent({\n header: 'Debug Task',\n content: (\n \n ),\n });\n }, [openContent, task, taskConfig, onOpenJson, closeSub]);\n\n return { openDrawer, closeDrawer: close };\n};\n","import { Fragment, useCallback } from 'react';\nimport ReactJson from 'react-json-view';\nimport { Box, Stack, Typography, Divider, IconButton, useTheme } from '@mui/material';\nimport {\n MenuOpenRounded as MenuOpenRoundedIcon,\n FileDownloadRounded as FileDownloadRoundedIcon,\n} from '@mui/icons-material';\nimport { DrawerTitle } from '@diana/core';\n\nexport interface IDebugJsonDrawerContentProps {\n src: object;\n title: string;\n subtitle?: string;\n onClose?: () => void;\n}\n\nexport const DebugJsonDrawerContent = (props: IDebugJsonDrawerContentProps) => {\n const { src, title, subtitle, onClose } = props;\n\n const theme = useTheme();\n\n const downloadJson = useCallback(() => {\n const blob = new Blob([JSON.stringify(src, null, 2)], { type: 'application/json' });\n const a = document.createElement('a');\n a.href = URL.createObjectURL(blob);\n a.setAttribute('download', 'debug.json');\n document.body.appendChild(a);\n a.click();\n a.remove();\n }, [src]);\n\n return (\n \n }\n >\n {title}\n downloadJson()}\n >\n \n \n \n\n {!!subtitle && (\n \n \n \n {subtitle}\n \n \n \n \n )}\n\n \n \n \n \n );\n};\n","import { Fragment } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport CodeRoundedIcon from '@mui/icons-material/CodeRounded';\nimport ArrowBackIcon from '@mui/icons-material/ArrowBack';\nimport { Box, Divider, IconButton, useTheme } from '@mui/material';\nimport { useEllipsis, useFlowBuilderContext, useServerEnvironment } from '@diana/core';\nimport { useDebugTaskDrawer } from '../../../../components/_NodeCodeConfigDebuggers/DebugTask';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\nimport { useFlowBuilderPageStore } from '../../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { isEqual } from 'lodash';\n\nexport interface IConfigureTaskDrawerHeaderProps {\n isLoading: boolean;\n actionIndex: number;\n onClose: () => void;\n}\n\nexport const ConfigureTaskDrawerHeader = (props: IConfigureTaskDrawerHeaderProps) => {\n const { actionIndex, onClose } = props;\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { palette } = useTheme();\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const taskId = useFlowBuilderPageStore((s) => s.activeTask?.id ?? '');\n const taskPosition = useFlowBuilderPageStore((s) => s.activeTask?.position ?? null);\n\n const taskConfig = useFlowBuilderStore((s) => s.getTaskConfigById(taskId), isEqual);\n const task = useFlowBuilderStore(\n (s) => (taskPosition ? s.getTaskByPosition(taskPosition) : null),\n isEqual,\n );\n\n const { isDevelopment } = useServerEnvironment();\n const { openDrawer: openDebugger } = useDebugTaskDrawer({ task, taskConfig });\n\n const activeAction = taskConfig?.actions[actionIndex];\n\n const headerTitle = useEllipsis({\n text: taskConfig?.displayName || t('titles.taskActions'),\n styles: { margin: 0, marginRight: 'auto', marginLeft: '4px', fontWeight: 500 },\n slotProps: {\n tooltip: {\n sx: { p: 1, fontSize: 14, borderRadius: 1, background: palette.background.paper },\n },\n },\n });\n\n return (\n \n \n {activeAction ? (\n <>\n \n \n \n \n {t('titles.editActionName', { actionName: activeAction.buttonLabel })}\n \n \n ) : (\n <>\n {headerTitle}\n {isDevelopment && (\n \n \n \n )}\n \n )}\n \n \n \n );\n};\n","import { Typography, Box, BoxProps, Stack, alpha, useTheme, useMediaQuery } from '@mui/material';\nimport { Error as ErrorIcon } from '@mui/icons-material';\nimport { IValidationResult } from '@diana/core';\nimport { ValidationTooltip } from '../ValidationTooltip/ValidationTooltip';\n\nexport const ValidationTip = (props: BoxProps & IValidationResult & { fullWidth?: boolean }) => {\n const { type, message, fullWidth, ...boxProps } = props;\n const icon = ;\n\n const { breakpoints } = useTheme();\n const isBigScreen = useMediaQuery(breakpoints.up('lg'));\n\n if (fullWidth && isBigScreen)\n return (\n \n ({\n py: 0.5,\n pl: 0.5,\n pr: 1,\n borderRadius: spacing(0.5),\n backgroundColor: alpha(palette.error.dark, 0.2),\n })}\n >\n \n {icon}\n {message}\n \n \n \n );\n\n return (\n \n \n {icon}\n \n \n );\n};\n","import { Fragment, useEffect, useMemo, useState } from 'react';\nimport { useDebouncedCallback } from 'use-debounce';\nimport { useTranslation } from 'react-i18next';\nimport { useQuery } from '@tanstack/react-query';\nimport {\n Box,\n CircularProgress,\n Divider,\n FormControl,\n InputLabel,\n MenuItem,\n Paper,\n Select,\n Stack,\n Switch,\n TextField,\n Typography,\n} from '@mui/material';\nimport PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';\nimport {\n configureTaskQuery,\n FlowActionValidationFieldNamesEnum,\n IWorkActionConfig,\n IWorkTaskConfig,\n LayoutComponentNames,\n StampIcon,\n useFlowActionValidations,\n useFlowBuilderContext,\n WorkActionConfigTypeEnum,\n} from '@diana/core';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\n\nexport interface IConfigureTaskActionProps {\n taskId: string;\n refetch: () => void;\n isLoading: boolean;\n taskConfig: IWorkTaskConfig;\n action: IWorkActionConfig;\n onActionChange: (value: IWorkActionConfig) => void;\n}\n\nexport const ConfigureTaskAction = (props: IConfigureTaskActionProps) => {\n const { taskId, refetch, isLoading, taskConfig, action, onActionChange } = props;\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const [isDisabled, setIsDisabled] = useState(false);\n const [buttonLabel, setButtonLabel] = useState(action.buttonLabel ?? '');\n const [completionStatus, setCompletionStatus] = useState(action.completionStatus ?? '');\n const [isRecipientsEnabled, setIsRecipientsEnabled] = useState(\n !!action.defaultRecipientPaths?.length,\n );\n\n const validations = useFlowActionValidations();\n\n const isRequesting = useFlowBuilderStore((s) => {\n return s.requests.some((r) => r.entity === 'task' && r.entityId === taskId && !r.error);\n });\n\n const recipientsComponent = LayoutComponentNames.USER_INVITATION;\n const getRecipientsQuery = configureTaskQuery.getRecipientFieldsList({\n flowId: taskConfig.flowId,\n componentName: recipientsComponent,\n });\n const { data: recipientFields, isLoading: isLoadingRecipientFields } = useQuery({\n queryKey: getRecipientsQuery.key,\n queryFn: getRecipientsQuery.fn,\n staleTime: 0,\n gcTime: 0,\n enabled: !!action.defaultRecipientPaths,\n });\n\n const disabled = isDisabled || isLoading || !action.isEnabled;\n\n const buttonLabelValidation = useMemo(() => {\n const validate = validations[FlowActionValidationFieldNamesEnum.ButtonLabel];\n return validate({ action });\n }, [validations, action]);\n\n const completionStatusValidation = useMemo(() => {\n const validate = validations[FlowActionValidationFieldNamesEnum.CompletionStatus];\n return validate({ action });\n }, [validations, action]);\n\n const recipients = useMemo(() => {\n const resultMap = new Map();\n for (const component of recipientFields ?? []) {\n if (!component.dataPath.startsWith('$')) continue;\n if (resultMap.has(component.dataPath)) continue;\n resultMap.set(\n component.dataPath,\n component.label || component.properties.label || component.properties.title,\n );\n }\n return Array.from(resultMap.entries());\n }, [recipientFields]);\n\n const stopStatusMap: Partial> = {\n Cancelled: t('labels.cancelled'),\n Declined: t('labels.declined'),\n };\n\n const defaultRecipient = action.defaultRecipientPaths?.[0] ?? '';\n\n const onActionChangeDebounce = useDebouncedCallback(onActionChange, 1500);\n\n useEffect(\n () => onActionChangeDebounce.flush,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n useEffect(() => {\n if (!isRequesting && isDisabled) {\n setIsDisabled(false);\n refetch();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isRequesting]);\n\n return (\n \n {(action.type === WorkActionConfigTypeEnum.Stop || !action.isEnabled) && (\n \n {t('labels.enable')}\n {\n setIsDisabled(true);\n onActionChange({ ...action, isEnabled: !action.isEnabled });\n }}\n />\n \n )}\n\n \n \n {\n setButtonLabel(e.target.value);\n onActionChangeDebounce({ ...action, buttonLabel: e.target.value });\n }}\n variant=\"standard\"\n error={buttonLabelValidation?.type === 'error'}\n helperText={buttonLabelValidation?.message}\n fullWidth\n required\n disabled={disabled}\n />\n \n\n \n {t('prompts.ifActionWasCompleted')}\n \n\n \n \n \n \n \n {t('labels.completionStatus')}\n \n \n \n {action.type === WorkActionConfigTypeEnum.Stop ? (\n \n {t('prompts.enterStatusName')}\n {\n setCompletionStatus(e.target.value);\n onActionChangeDebounce({ ...action, completionStatus: e.target.value });\n }}\n >\n {!!completionStatus && !stopStatusMap[completionStatus] && (\n \n {completionStatus}\n \n )}\n {Array.from(Object.entries(stopStatusMap)).map(([value, displayName]) => (\n {displayName}\n ))}\n \n \n ) : (\n {\n setCompletionStatus(e.target.value);\n onActionChangeDebounce({ ...action, completionStatus: e.target.value });\n }}\n variant=\"standard\"\n error={completionStatusValidation?.type === 'error'}\n helperText={completionStatusValidation?.message}\n fullWidth\n disabled={disabled}\n />\n )}\n \n \n \n \n\n {/* #9062 - default recipient is disabled for now */}\n \n \n \n \n \n {!!action.defaultRecipientPaths && isLoadingRecipientFields ? (\n \n ) : (\n \n )}\n \n\n {t('labels.defaultRecipient')}\n {\n const enabled = !isRecipientsEnabled;\n setIsRecipientsEnabled(enabled);\n if (!enabled) onActionChange({ ...action, defaultRecipientPaths: [] });\n }}\n />\n \n\n {isRecipientsEnabled && (\n \n \n \n \n {t('labels.select')}\n {\n const defaultRecipientPaths = [...(action.defaultRecipientPaths ?? [])];\n defaultRecipientPaths[0] = e.target.value;\n onActionChange({ ...action, defaultRecipientPaths });\n }}\n >\n {recipients.map(([dataPath, label]) => (\n \n {label}\n \n ))}\n \n \n \n \n )}\n \n \n \n \n \n );\n};\n","import {\n configureTaskQuery,\n IFlowBuilderTaskPosition,\n Menu,\n TUpdateAssetValueActivity,\n useDialogs,\n useFlowBuilderContext,\n} from '@diana/core';\nimport AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';\nimport MoreHorizIcon from '@mui/icons-material/MoreHoriz';\nimport OfflineBoltIcon from '@mui/icons-material/OfflineBolt';\nimport {\n Box,\n IconButton,\n MenuItem,\n Paper,\n Popover,\n Stack,\n Switch,\n Typography,\n useTheme,\n} from '@mui/material';\nimport { useState } from 'react';\nimport { useMutation } from '@tanstack/react-query';\nimport { useTranslation } from 'react-i18next';\nimport { useFlowBuilderPageStore } from '../../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\n\nexport function ConfigureTaskActivities(props: {\n refetch: () => void;\n taskId: string;\n taskPosition: IFlowBuilderTaskPosition | null;\n activities?: TUpdateAssetValueActivity[];\n actionId: string;\n}) {\n const { activities, taskId, taskPosition, actionId, refetch } = props;\n\n const { confirm } = useDialogs();\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore } = useFlowBuilderContext();\n const { palette } = useTheme();\n\n const setModalOpen = useFlowBuilderPageStore((s) => s.setModalOpen);\n const flowId = useFlowBuilderStore((s) => s.flow?.id ?? '');\n const stepId = useFlowBuilderStore((s) => s.flow?.steps[taskPosition?.stepIndex ?? -1]?.id ?? '');\n\n const [activityOptionElement, setActivityOptionElement] = useState(null);\n const [activityItemMenu, setActivityItemMenu] = useState<{\n htmlElement: HTMLElement;\n context: TUpdateAssetValueActivity;\n } | null>(null);\n\n const patchUpdateAssetValueActivityQuery = configureTaskQuery.patchUpdateAssetValueActivity({\n flowId,\n stepId,\n });\n const { mutate: setActivityEnable } = useMutation({\n mutationKey: patchUpdateAssetValueActivityQuery.key,\n mutationFn: patchUpdateAssetValueActivityQuery.fn,\n onSuccess: () => {\n refetch();\n },\n });\n\n const deleteActivityQuery = configureTaskQuery.deleteActivity({\n flowId,\n stepId,\n taskId,\n actionId,\n });\n const { mutate: onDeleteActivity } = useMutation({\n mutationKey: deleteActivityQuery.key,\n mutationFn: deleteActivityQuery.fn,\n onSuccess: () => {\n refetch();\n setActivityItemMenu(null);\n },\n });\n\n return (\n \n {activities?.map((activity) => {\n return (\n \n \n \n \n activity.enable ? palette.primary.main : palette.secondary.main,\n }}\n />\n {activity.displayName}\n \n setActivityEnable({\n ...activity,\n taskId,\n enable: value,\n })\n }\n />\n {\n e.preventDefault();\n e.stopPropagation();\n setActivityItemMenu({\n htmlElement: e.currentTarget,\n context: { ...activity, actionId },\n });\n }}\n >\n \n \n \n \n \n );\n })}\n\n \n setActivityOptionElement(activityOptionElement ? null : e.currentTarget)}\n >\n palette.primary.main }} />\n {t('labels.addActivity')}\n \n \n\n setActivityItemMenu(null)}\n actions={\n activityItemMenu\n ? [\n {\n title: t('buttons.edit'),\n onClick: () => {\n if (!activityItemMenu) return;\n setModalOpen('NoCodeActivity-UpdateAssetValue', {\n updateAssetValue: activityItemMenu.context,\n });\n },\n },\n // {\n // title: t('labels.rename'),\n // onClick: () => {\n // if (!activityItemMenu) return;\n // setModalOpen('NoCodeActivity-UpdateAssetValue', {\n // updateAssetValue: activityItemMenu.context,\n // });\n // },\n // },\n {\n title: t('buttons.delete'),\n color: palette.error.main,\n onClick: async () => {\n const { confirmed } = await confirm(null, {\n title: t('prompts.areYouSureToDeleteActivityName', {\n activityName: activityItemMenu.context.displayName,\n }),\n variant: 'delete',\n });\n if (confirmed) {\n onDeleteActivity({ ...activityItemMenu.context });\n }\n },\n },\n ]\n : []\n }\n />\n\n setActivityOptionElement(null)}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'right',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n >\n {activityOptionElement && (\n \n setModalOpen('NoCodeActivity-UpdateAssetValue', {\n updateAssetValue: {\n displayName: 'Update Asset Value',\n name: 'UpdateAssetValueActivity',\n taskId,\n activityId: 'new',\n activity: 0,\n dataPath: '$',\n enable: true,\n entityIdDataPath: '',\n entityType: '',\n entityTypeComponentId: '',\n fromDatePath: '',\n toSectionName: '',\n publishOperation: {\n dataMapping: [\n {\n fromPath: '',\n fromPathComponentId: '',\n toProperty: '',\n toPropertyComponentId: '',\n },\n ],\n dataType: 0,\n updateType: 0,\n excludeProperties: [],\n fromSection: '',\n identifier: '',\n rootDataPath: '',\n sectionName: '',\n targetPath: '',\n },\n actionId: props.actionId,\n },\n })\n }\n >\n {t('labels.updateAssetValue')}\n \n )}\n \n \n );\n}\n","import { EditWorkflowAssistant, EditWorkflowType, useFlowBuilderContext } from '@diana/core';\n\nexport const EditAssistantChat = (props: {\n type: EditWorkflowType;\n stepId?: string;\n taskId?: string;\n layoutId?: string;\n allowFileUpload?: boolean;\n}) => {\n const { type, stepId, taskId, layoutId, allowFileUpload = false } = props;\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const flowId = useFlowBuilderStore((s) => s.flow?.id ?? '');\n const isChatOpen = useFlowBuilderStore((s) => s.isChatOpen);\n const setIsChatOpen = useFlowBuilderStore((s) => s.setIsChatOpen);\n\n return (\n \n );\n};\n","import { useCallback, useLayoutEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n Avatar,\n Box,\n FormControl,\n InputLabel,\n MenuItem,\n Paper,\n Select,\n Skeleton,\n Stack,\n Switch,\n Typography,\n useTheme,\n} from '@mui/material';\nimport ArrowDownwardRoundedIcon from '@mui/icons-material/ArrowDownwardRounded';\nimport NavigateNextRoundedIcon from '@mui/icons-material/NavigateNextRounded';\nimport CloseRoundedIcon from '@mui/icons-material/CloseRounded';\nimport {\n EditWorkflowType,\n getLayoutComponentLabel,\n getLayoutComponentsFromTask,\n ILayoutComponent,\n IWorkActionConfig,\n LayoutComponentNames,\n useFlowBuilderContext,\n useFlowBuilderTaskConfigActionValidators,\n WorkActionConfigTypeEnum,\n} from '@diana/core';\nimport { ValidationTip } from '../../FlowBuilderPageComponents/ValidationTip/ValidationTip';\nimport { ConfigureTaskAction } from './ConfigureTaskAction';\nimport { ConfigureTaskActivities } from './ConfigureTaskActivities';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\nimport { EditAssistantChat } from '../EditAssistantChat';\nimport { useFlowBuilderPageStore } from '../../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { isEqual } from 'lodash';\n\nexport interface IConfigureTaskDrawerContentProps {\n refetch: () => void;\n isLoading: boolean;\n actionIndex: number;\n onOpenActionByIndex: (actionIndex: number) => void;\n onClose: () => void;\n}\n\nexport const ConfigureTaskDrawerContent = (props: IConfigureTaskDrawerContentProps) => {\n const { refetch, isLoading, actionIndex, onOpenActionByIndex } = props;\n const [defaultEditorEnabled, setDefaultEditorEnabled] = useState(false);\n\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { useFlowBuilderStore, updateAndSaveTaskConfigById } = useFlowBuilderContext();\n const { palette } = useTheme();\n\n const getFlow = useFlowBuilderStore((s) => s.getFlow);\n const taskId = useFlowBuilderPageStore((s) => s.activeTask?.id ?? '');\n const taskPosition = useFlowBuilderPageStore((s) => s.activeTask?.position ?? null);\n const taskConfig = useFlowBuilderStore((s) => s.getTaskConfigById(taskId), isEqual);\n const stepId = useFlowBuilderStore(\n (s) => s.getStepByIndex(taskPosition?.stepIndex ?? 0)?.id ?? '',\n isEqual,\n );\n\n const isFirstTask = useFlowBuilderStore((s) => {\n const firstTask = s.flow?.steps[0]?.steps[0];\n return firstTask?.id === taskId;\n }, isEqual);\n\n const peopleComponents = useFlowBuilderStore((s) => {\n const result: ILayoutComponent[] = [];\n if (s.flow) {\n for (const step of s.flow.steps) {\n for (const task of step.steps) {\n if (taskId === task.id) return result;\n for (const item of getLayoutComponentsFromTask(task)) {\n if (item.component === LayoutComponentNames.USER_INVITATION) result.push(item);\n }\n }\n }\n }\n\n return result;\n }, isEqual);\n\n const validators = useFlowBuilderTaskConfigActionValidators();\n\n const getActionError = useCallback(\n (taskConfigAction: IWorkActionConfig) => {\n const flow = getFlow();\n for (const validate of Array.from(Object.values(validators))) {\n if (!flow || !taskConfig) continue;\n const error = validate({ flow, taskConfig, taskConfigAction });\n if (error) return error;\n }\n return null;\n },\n [getFlow, validators, taskConfig],\n );\n\n const taskActivities = useMemo(() => {\n const action = taskConfig?.actions[actionIndex];\n if (!action) return [];\n\n const { activities = [] } = action;\n if (!Array.isArray(activities)) return [];\n return activities\n .filter((e) => e.name.toLowerCase() === 'updateassetvalueactivity')\n .map((e) => ({\n ...e.properties,\n activityId: e.id,\n displayName: e.displayName,\n }));\n }, [taskConfig, actionIndex]);\n\n const action = taskConfig?.actions[actionIndex];\n const hasTaskConfig = !!taskConfig;\n\n useLayoutEffect(() => {\n if (hasTaskConfig) {\n setDefaultEditorEnabled(!!taskConfig.editorPath);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [hasTaskConfig]);\n\n if (action) {\n return (\n \n {\n updateAndSaveTaskConfigById(taskId, (draft) => {\n draft.actions[actionIndex] = value;\n return draft;\n });\n }}\n />\n \n \n );\n }\n\n if (isLoading) {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n }\n\n if (taskConfig) {\n return (\n \n \n {taskConfig.actions.map((action, index) => {\n const getActionIconColor = () => {\n if (!action.isEnabled) return palette.divider;\n if (action.type === WorkActionConfigTypeEnum.Stop) return palette.error.main;\n return palette.primary.main;\n };\n\n const error = getActionError(action);\n\n return (\n onOpenActionByIndex(index)}\n >\n \n \n {action.type === WorkActionConfigTypeEnum.Stop ? (\n \n ) : (\n \n )}\n \n\n \n {action.buttonLabel}\n {action.description}\n \n\n {error ? : null}\n\n \n \n \n );\n })}\n \n \n {t('labels.restrictedAccess')}\n {t('descriptions.onlyPeopleCanSeeTaskDetails')}\n \n \n {\n updateAndSaveTaskConfigById(taskId, (draft) => {\n draft.restrictedAccess = !taskConfig.restrictedAccess;\n return draft;\n });\n }}\n />\n \n \n \n \n {t('labels.defaultEditor')}\n {t('descriptions.allowUserEditAndSubmitTask')}\n \n \n {\n setDefaultEditorEnabled(!defaultEditorEnabled);\n if (!defaultEditorEnabled) {\n updateAndSaveTaskConfigById(taskId, (draft) => {\n draft.editorPath = null;\n return draft;\n });\n }\n }}\n disabled={isFirstTask}\n />\n \n \n\n {defaultEditorEnabled ? (\n \n \n {t('descriptions.linkPeopleSearchField')}\n \n {\n if (taskConfig) {\n updateAndSaveTaskConfigById(taskId, (draft) => {\n draft.editorPath = String(e.target.value);\n return draft;\n });\n }\n }}\n value={taskConfig.editorPath}\n >\n {peopleComponents.map((component) => (\n {getLayoutComponentLabel(component)}\n ))}\n \n \n ) : null}\n \n );\n }\n\n return <>;\n};\n","import { useTranslation } from 'react-i18next';\nimport {\n Box,\n ListItem,\n ListItemButton,\n ListItemAvatar,\n ListItemText,\n SvgIcon,\n Skeleton,\n useTheme,\n} from '@mui/material';\nimport { DeleteOutlined } from '@mui/icons-material';\nimport { Loader, useFlowBuilderContext } from '@diana/core';\nimport { FLOW_BUILDER_PAGE_NS } from '../../i18n';\nimport { useDeleteTaskById } from '../../FlowBuilderPageHooks/useDeleteTaskById';\nimport { useFlowBuilderPageStore } from '../../FlowBuilderPageStore/useFlowBuilderPageStore';\n\nexport interface IConfigureTaskDrawerFooterProps {\n isLoading: boolean;\n}\n\nexport interface IConfigureTaskDrawerFooterAction {\n icon: typeof SvgIcon;\n color?: string;\n disabled?: boolean;\n displayName: string;\n onClick?: () => void;\n isLoading: boolean;\n}\n\nexport const ConfigureTaskDrawerFooter = (props: IConfigureTaskDrawerFooterProps) => {\n const { isLoading } = props;\n const { t } = useTranslation(FLOW_BUILDER_PAGE_NS);\n const { palette } = useTheme();\n\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const taskId = useFlowBuilderPageStore((s) => s.activeTask?.id ?? '');\n const taskPosition = useFlowBuilderPageStore((s) => s.activeTask?.position);\n const tasksLength = useFlowBuilderStore(\n (s) => s.getStepByIndex(taskPosition?.stepIndex ?? 0)?.steps?.length ?? 0,\n );\n\n // delete task\n const { deleteTaskById, isDeleting } = useDeleteTaskById();\n\n const actions: IConfigureTaskDrawerFooterAction[] = [\n {\n icon: DeleteOutlined,\n color: palette.error.main,\n displayName: t('buttons.delete'),\n onClick: () => deleteTaskById(taskId),\n isLoading: isDeleting,\n disabled: tasksLength <= 1,\n },\n ];\n\n return (\n \n {actions.map((action, index) => {\n return isLoading ? (\n \n \n \n \n } />\n \n ) : (\n \n ({\n display: 'flex',\n minWidth: 0,\n color: action.color ?? palette.primary.main,\n pr: 1,\n })}\n >\n {action.isLoading ? (\n \n ) : (\n \n )}\n \n \n \n );\n })}\n \n );\n};\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { configureTaskQuery, IPageLayoutProps, useFlowBuilderContext } from '@diana/core';\nimport { useFlowBuilderPageStore } from '../../FlowBuilderPageStore/useFlowBuilderPageStore';\nimport { ConfigureTaskDrawerHeader } from './ConfigureTaskDrawerHeader';\nimport { ConfigureTaskDrawerContent } from './ConfigureTaskDrawerContent';\nimport { ConfigureTaskDrawerFooter } from './ConfigureTaskDrawerFooter';\n\nexport const useConfigureTaskDrawer = (): NonNullable => {\n const [actionIndex, setActionIndex] = useState(-1);\n\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const setActiveTask = useFlowBuilderPageStore((s) => s.setActiveTask);\n const updateTaskConfigMap = useFlowBuilderStore((s) => s.updateTaskConfigMap);\n const flowId = useFlowBuilderStore((s) => s.flow?.id ?? '');\n const stepId = useFlowBuilderStore((s) => s.flow?.steps[taskPosition?.stepIndex ?? -1]?.id ?? '');\n const taskId = useFlowBuilderPageStore((s) => s.activeTask?.id ?? '');\n const taskPosition = useFlowBuilderPageStore((s) => s.activeTask?.position ?? null);\n\n // get task config\n const getTaskConfigQuery = configureTaskQuery.getTaskConfig({ flowId, stepId, taskId });\n const { data, isFetching, refetch } = useQuery({\n queryKey: getTaskConfigQuery.key,\n queryFn: getTaskConfigQuery.fn,\n enabled: !!flowId && !!stepId && !!taskId,\n staleTime: 0,\n gcTime: 0,\n });\n\n useEffect(() => {\n updateTaskConfigMap((draft) => {\n if (taskId) {\n draft[taskId] = data;\n }\n return draft;\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [data]);\n\n const closeDrawer = useCallback(() => {\n setActiveTask(null);\n setActionIndex(-1);\n }, [setActiveTask, setActionIndex]);\n\n const header = useMemo(\n () => (\n {\n if (actionIndex >= 0) setActionIndex(-1);\n else setActiveTask(null);\n }}\n />\n ),\n [isFetching, actionIndex, setActionIndex, setActiveTask],\n );\n\n const content = useMemo(\n () => (\n \n ),\n [refetch, isFetching, actionIndex, setActionIndex, closeDrawer],\n );\n\n const footer = useMemo(() => , [isFetching]);\n\n return {\n isOpen: true,\n persistent: true,\n header,\n content,\n footer,\n onRequestClose: closeDrawer,\n };\n};\n","import { useLayoutEffect, useRef } from 'react';\nimport { useDebouncedCallback } from 'use-debounce';\nimport { useFlowBuilderContext, uuid } from '@diana/core';\n\ninterface IRequest {\n resolve: () => void;\n reject: (reason?: any) => void;\n}\n\nexport const useWaitForRequestIdle = () => {\n const { useFlowBuilderStore } = useFlowBuilderContext();\n\n const hasActiveRequest = useFlowBuilderStore((s) => !!s.requests.length);\n const hasErrorRequest = useFlowBuilderStore((s) => s.requests.some((r) => !!r.error));\n\n const requestsMapRef = useRef>({});\n\n const waitForRequestIdle = () =>\n new Promise((resolve, reject) => {\n const id = uuid();\n requestsMapRef.current[id] = { resolve, reject };\n resolveDebounce();\n });\n\n const resolve = () => {\n const ids = Object.keys(requestsMapRef.current);\n for (const id of ids) {\n requestsMapRef.current[id].resolve();\n delete requestsMapRef.current[id];\n }\n };\n\n const reject = (reason?: any) => {\n const ids = Object.keys(requestsMapRef.current);\n for (const id of ids) {\n requestsMapRef.current[id].reject(reason);\n delete requestsMapRef.current[id];\n }\n };\n\n const resolveDebounce = useDebouncedCallback(resolve, 2000);\n\n useLayoutEffect(() => {\n if (hasErrorRequest) reject(new Error('Has Error Request'));\n else if (hasActiveRequest) resolveDebounce.cancel();\n else resolveDebounce();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [hasActiveRequest, hasErrorRequest]);\n\n return waitForRequestIdle;\n};\n","import create from 'zustand';\nimport produce from 'immer';\nimport { last } from 'lodash';\nimport { ILayoutComponentEditorStore } from './LayoutComponentEditor.types';\n\nexport const useLayoutComponentEditorStore = create(\n (setState, getState) => ({\n isDebugMode: false,\n setIsDebugMode: (isDebugMode) => setState({ isDebugMode }),\n\n tabIndex: 0,\n setTabIndex: (tabIndex) => setState({ tabIndex }),\n\n subEditors: [],\n resetSubEditors: () => setState({ subEditors: [] }),\n openSubEditor: (subEditor) => {\n const { subEditors } = getState();\n setState({ subEditors: [...subEditors, subEditor] });\n },\n getSubEditor: () => last(getState().subEditors) ?? null,\n closeSubEditor: () => {\n const { subEditors } = getState();\n setState({ subEditors: subEditors.slice(0, -1) });\n },\n setSubEditorSectionIndex: (sectionIndex) => {\n const { subEditors } = getState();\n setState({\n subEditors: produce(subEditors, (draftSubEditors) => {\n const activeSubEditor = last(draftSubEditors);\n if (activeSubEditor) activeSubEditor.sectionIndex = sectionIndex;\n }),\n });\n },\n }),\n);\n","import { styled, Tabs, Tab, Box } from '@mui/material';\n\nexport const StyledHeaderBox = styled(Box)(({ theme }) => ({\n borderBottom: `1px solid ${theme.palette.divider}`,\n}));\n\nexport const StyledTabs = styled(Tabs)(({ theme }) => ({\n paddingLeft: theme.spacing(1.5),\n paddingRight: theme.spacing(1.5),\n minHeight: 0,\n}));\n\nexport const StyledTab = styled(Tab)(({ theme }) => ({\n marginRight: 0,\n paddingTop: 0,\n paddingBottom: theme.spacing(1),\n minHeight: '28px',\n fontWeight: 'normal',\n textTransform: 'none',\n '&:not(:last-child)': {\n marginRight: theme.spacing(2),\n },\n}));\n","import { Fragment, ReactNode } from 'react';\nimport {\n IStep,\n ILayoutComponent,\n calculateStepDataPathKey,\n calculateLayoutComponentDataPathKey,\n} from '@diana/core';\nimport { ILayoutComponentPropertyEditorProps } from '../../models/LayoutComponentPropertyEditor';\nimport { useLayoutComponentEditorStore } from './useLayoutComponentEditorStore';\nimport { ILayoutComponentEditorProps } from './LayoutComponentEditor.types';\nimport { isEqual } from 'lodash';\n\ninterface IRenderHookProps {\n hook: (args: A) => T;\n args: A;\n children: (result: T) => ReactNode;\n}\n\ninterface IDynamicHookProps {\n hook?: (args: A) => T;\n args: A;\n children: (result: T | null) => ReactNode;\n}\n\nexport function RenderHook({ hook: useHook, args, children }: IRenderHookProps) {\n const result = useHook(args);\n return {children(result)};\n}\n\nexport function RenderDynamicHook({ hook, args, children }: IDynamicHookProps) {\n if (!hook) return {children(null)};\n return (\n \n {children}\n \n );\n}\n\nexport const useSubEditorProps = (props: ILayoutComponentEditorProps) => {\n const { getFieldState, setFieldState } = props;\n\n const subEditor = useLayoutComponentEditorStore((s) => s.getSubEditor(), isEqual);\n const openSubEditor = useLayoutComponentEditorStore((s) => s.openSubEditor);\n const closeSubEditor = useLayoutComponentEditorStore((s) => s.closeSubEditor);\n\n const fieldName = subEditor?.editor?.name;\n const fieldState = fieldName ? getFieldState(fieldName) : { dirty: false, touched: false };\n\n const subEditProps: ILayoutComponentPropertyEditorProps = {\n ...props,\n options: subEditor?.editor?.options ?? {},\n dirty: fieldState.dirty,\n touched: fieldState.touched,\n onTouched: () => {\n if (fieldName) setFieldState(fieldName, { touched: true });\n },\n onOpenSubEditor: (useSubEditor) => {\n openSubEditor({ useSubEditor, sectionIndex: 0, editor: subEditor?.editor });\n },\n onCloseSubEditor: closeSubEditor,\n };\n\n return subEditProps;\n};\n\n/**\n * Creates a map of layout components and their derived data path\n * @param args.steps - flow steps\n */\nexport const createDataPathMapFromSteps = (args: { steps: IStep[] }) => {\n const { steps } = args;\n const dataPathMap = new Map();\n for (const step of steps) {\n for (const task of step.steps) {\n const taskAccessor = calculateStepDataPathKey(task);\n (function scan(components: ILayoutComponent[], path: string[]) {\n for (const component of components) {\n const accessor = calculateLayoutComponentDataPathKey(component);\n dataPathMap.set(component.id, ['$', ...path, accessor].join('.'));\n scan(component.components ?? [], [...path, accessor]);\n }\n })(task.layout?.components ?? [], [taskAccessor]);\n }\n }\n return dataPathMap;\n};\n","import { FunctionComponent, ReactNode, useEffect, useMemo } from 'react';\nimport { Box, Typography, IconButton, SvgIconProps, Stack } from '@mui/material';\nimport { useServerEnvironment, hash } from '@diana/core';\nimport { ArrowBack as ArrowBackIcon } from '@mui/icons-material';\nimport CodeRoundedIcon from '@mui/icons-material/CodeRounded';\nimport { useLayoutComponentSettings } from '../../hooks/useLayoutComponentSettings';\nimport { useLayoutComponentEditorStore } from './useLayoutComponentEditorStore';\nimport { StyledHeaderBox, StyledTab, StyledTabs } from './LayoutComponentEditor.styles';\nimport { ILayoutComponentEditorProps } from './LayoutComponentEditor.types';\nimport { RenderDynamicHook, useSubEditorProps } from './Support';\nimport { isEqual } from 'lodash';\n\n// internal interface\ninterface ITabbedHeaderProps {\n title: ReactNode;\n onClose?: () => void;\n CloseIcon?: FunctionComponent;\n tabs: string[];\n tabIndex: number;\n onTabIndexChange: (index: number) => void;\n enableDebug: boolean;\n}\n\nconst TabbedHeader = (props: ITabbedHeaderProps) => {\n const { title, onClose, CloseIcon, tabs, tabIndex, onTabIndexChange, enableDebug } = props;\n\n const isDebugMode = useLayoutComponentEditorStore((s) => s.isDebugMode);\n const setIsDebugMode = useLayoutComponentEditorStore((s) => s.setIsDebugMode);\n const showTabs = useLayoutComponentEditorStore((s) => tabs.length > 1 && !s.isDebugMode);\n\n return (\n \n \n \n {onClose && CloseIcon ? (\n \n \n \n ) : null}\n\n \n {title}\n \n\n {enableDebug && (\n setIsDebugMode(!isDebugMode)}\n size=\"small\"\n className={`${isDebugMode ? 'active' : ''}`}\n sx={{ ml: '4px !important' }}\n >\n \n \n )}\n \n\n {showTabs && (\n onTabIndexChange(tab)}>\n {tabs.map((tab, index) => (\n \n ))}\n \n )}\n \n \n );\n};\n\nexport const LayoutComponentEditorHeader = (props: ILayoutComponentEditorProps) => {\n const { value } = props;\n\n const { getSettings } = useLayoutComponentSettings();\n const { isDevelopment } = useServerEnvironment();\n const subEditorProps = useSubEditorProps(props);\n\n const setIsDebugMode = useLayoutComponentEditorStore((s) => s.setIsDebugMode);\n const tabIndex = useLayoutComponentEditorStore((s) => s.tabIndex);\n const setTabIndex = useLayoutComponentEditorStore((s) => s.setTabIndex);\n const subEditor = useLayoutComponentEditorStore((s) => s.getSubEditor(), isEqual);\n const closeSubEditor = useLayoutComponentEditorStore((s) => s.closeSubEditor);\n const resetSubEditors = useLayoutComponentEditorStore((s) => s.resetSubEditors);\n const setSubEditorSectionIndex = useLayoutComponentEditorStore((s) => s.setSubEditorSectionIndex);\n\n const settings = useMemo(() => getSettings(value), [value, getSettings]);\n const configurators = settings?.configurators ?? [];\n const enableDebug = isDevelopment && !!value && !subEditor;\n const componentHash = useMemo(() => {\n return hash(JSON.stringify([value?.id, value?.component]));\n }, [value?.id, value?.component]);\n\n // reset when component changed\n useEffect(() => {\n setTabIndex(0);\n resetSubEditors();\n setIsDebugMode(false);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [componentHash]);\n\n return (\n \n {(editor) =>\n editor ? (\n s.displayName)}\n tabIndex={subEditor?.sectionIndex ?? 0}\n onTabIndexChange={setSubEditorSectionIndex}\n enableDebug={enableDebug}\n />\n ) : (\n c.displayName)}\n tabIndex={tabIndex}\n onTabIndexChange={setTabIndex}\n enableDebug={enableDebug}\n />\n )\n }\n \n );\n};\n","import { useMemo } from 'react';\nimport produce from 'immer';\nimport { Stack, Box, Typography, TextField, Select, MenuItem } from '@mui/material';\nimport { ILayoutComponent, LayoutComponentNames } from '@diana/core';\n\ninterface DebugLayoutComponentProps {\n value: ILayoutComponent;\n onChange: (value: ILayoutComponent) => void;\n}\n\nexport const DebugLayoutComponent = (props: DebugLayoutComponentProps) => {\n const { value: layoutComponent, onChange } = props;\n const properties = Object.entries(layoutComponent.properties ?? {});\n\n const components = useMemo(() => Array.from(Object.values(LayoutComponentNames)).sort(), []);\n\n return (\n \n \n ID\n \n {layoutComponent.id}\n \n \n\n \n Name\n \n \n \n \n\n \n Component\n \n \n onChange(\n produce(layoutComponent, (draft) => {\n draft.component = e.target.value as LayoutComponentNames;\n }),\n )\n }\n >\n {components.map((name) => (\n \n {name}\n \n ))}\n \n \n \n\n \n Data Path\n \n \n onChange(\n produce(layoutComponent, (draft) => {\n draft.dataPath = e.target.value;\n }),\n )\n }\n />\n \n \n\n \n Default Value\n \n \n \n \n\n \n Width\n \n \n onChange(\n produce(layoutComponent, (draft) => {\n draft.properties.width = e.target.value;\n }),\n )\n }\n >\n {[...new Array(12)].map((n, i) => (\n \n {`col-${i + 1}`}\n \n ))}\n \n \n \n\n \n Properties\n \n \n {properties.map(([key, value]) => (\n \n \n \n \n ))}\n
{key}\n
{JSON.stringify(value, null, 2)}
\n
\n
\n
\n
\n );\n};\n","import { Stack, Switch, Typography } from '@mui/material';\n\nexport interface IBasePropertySwitcher {\n label: string;\n checked: boolean;\n onBlur: () => void;\n onChange: () => void;\n disabled?: boolean;\n}\n\nexport const BasePropertySwitcher = (props: IBasePropertySwitcher) => {\n const { label, checked, disabled = false, onBlur, onChange } = props;\n\n return (\n \n {label}\n \n \n );\n};\n","import produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { BasePropertySwitcher } from '../BasePropertySwitcher';\n\nexport const AddNewItemPropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { value, onChange, onTouched, options } = props;\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const checked = value.properties.addNewItem ?? true;\n\n return (\n {\n onChange(\n produce(value, (draft) => {\n draft.properties.addNewItem = !checked;\n }),\n );\n }}\n />\n );\n};\n","import { isNil } from 'lodash';\nimport produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { IDataGridProperties } from '@diana/core';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { BasePropertySwitcher } from '../BasePropertySwitcher';\n\nexport const AddRowsPropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { value, onChange, onTouched, options } = props;\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n const properties: IDataGridProperties = value.properties;\n\n const getDisabled = () => {\n if (!isNil(options.disabled)) return options.disabled;\n if (properties.sourceComponentId) return !properties.addRows;\n return false;\n };\n\n return (\n {\n onChange(\n produce(value, (draft) => {\n const properties: IDataGridProperties = draft.properties;\n properties.addRows = !properties.addRows;\n }),\n );\n }}\n />\n );\n};\n","import produce from 'immer';\nimport { Fragment, useEffect } from 'react';\nimport { isNil } from 'lodash';\nimport { PropertiesSizeEnum } from '@diana/core';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\n\nexport const AttachmentSizePropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { value, onChange } = props;\n\n // add size property if there's no value yet\n // currently, there's no user interface for updating size property\n useEffect(() => {\n if (isNil(value.properties.size)) {\n onChange(\n produce(value, (draft) => {\n draft.properties.size = PropertiesSizeEnum.MEDIUM;\n }),\n );\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return ;\n};\n","import produce from 'immer';\nimport { IDataGridProperties } from '@diana/core';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { BasePropertySwitcher } from '../BasePropertySwitcher';\n\nexport const ColumnPinningPropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { value, onChange, onTouched, options } = props;\n\n const properties: IDataGridProperties = value.properties;\n\n const checked = !properties.disableColumnPinning;\n\n return (\n {\n onChange(\n produce(value, (draft) => {\n const properties: IDataGridProperties = draft.properties;\n properties.disableColumnPinning = !properties.disableColumnPinning;\n }),\n );\n }}\n />\n );\n};\n","import { Fragment, useMemo } from 'react';\nimport produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { TextField } from '@mui/material';\nimport { DraggableTextList, FieldLabel } from '@diana/core';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\n\nexport const ColumnEditor = (\n props: ILayoutComponentPropertyEditorProps & { columnIndex: number },\n) => {\n const { value, onChange, columnIndex } = props;\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const column = useMemo(() => {\n return value.properties.columns?.[columnIndex] ?? null;\n }, [columnIndex, value.properties.columns]);\n\n if (!column) return ;\n\n return (\n \n }\n variant=\"standard\"\n fullWidth={true}\n value={column.displayName ?? ''}\n InputLabelProps={{ shrink: true }}\n onChange={(e) => {\n onChange(\n produce(value, (draft) => {\n const col = draft.properties.columns?.[columnIndex];\n if (col) col.displayName = e.target.value;\n }),\n );\n }}\n />\n\n {column.type === 'select' && (\n {\n onChange(\n produce(value, (draft) => {\n const col = draft.properties.columns?.[columnIndex];\n if (col) col.options = items;\n }),\n );\n }}\n getItemText={({ item }) => item}\n setItemText={({ text }) => text}\n createNewItem={() => ''}\n />\n )}\n \n );\n};\n","import produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { Box, Switch } from '@mui/material';\nimport { DraggableTextList } from '@diana/core';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { ColumnEditor } from './ColumnEditor';\n\nexport const ColumnsPropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { value, onChange, onTouched, onOpenSubEditor } = props;\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const columns = value.properties.columns ?? [];\n\n return (\n {\n const newValue = produce(value, (draft) => {\n draft.properties.columns = items;\n });\n onChange(newValue);\n }}\n getItemText={({ item }) => item.displayName}\n getItemPostContent={({ item, index }) => (\n \n {\n onChange(\n produce(value, (draft) => {\n const column = draft.properties.columns?.[index];\n if (column) column.hidden = !column.hidden;\n }),\n );\n }}\n />\n \n )}\n onOpenItem={({ item, index }) => {\n onOpenSubEditor((subEditorProps) => ({\n header: item.displayName,\n sections: [\n {\n displayName: '',\n content: ,\n },\n ],\n }));\n }}\n isItemHidden={({ item, index }) => index === 0 && !item.displayName && item.name === 'name'}\n isItemEditable={() => false}\n isItemDeletable={() => false}\n />\n );\n};\n","import produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { SelectCurrencyCode } from '@diana/core';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\n\nexport const CurrencyCodePropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { value, onChange, onTouched } = props;\n\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return (\n {\n onChange(\n produce(value, (draft) => {\n draft.properties.currencyCode = currency ?? '';\n }),\n );\n }}\n />\n );\n};\n","import {\n IStep,\n ILayoutComponent,\n LayoutComponentNames,\n getLayoutComponentsFromStep,\n isLayoutComponentLinkable,\n} from '@diana/core';\n\nexport const getLinkableLayoutComponents = (args: {\n steps: IStep[];\n layoutComponentId: string;\n}) => {\n const { steps, layoutComponentId } = args;\n const linkableLayoutComponentNames = [\n LayoutComponentNames.SEARCH_THINGS,\n LayoutComponentNames.USER_INVITATION,\n ];\n\n const layoutComponents = steps.reduce((result, step) => {\n const stepLayoutComponents = getLayoutComponentsFromStep(step);\n return [...result, ...stepLayoutComponents];\n }, []);\n\n return layoutComponents.filter((layoutComponent) => {\n if (layoutComponent.id === layoutComponentId) return false;\n if (!linkableLayoutComponentNames.includes(layoutComponent.component)) return false;\n return isLayoutComponentLinkable(layoutComponent);\n });\n};\n","import { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { testSourceLayoutComponent } from '@diana/core';\nimport { ILayoutComponentPropertyEditor } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { getLinkableLayoutComponents } from './Support';\n\nexport const useDataPathPropertyValidator = () => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useCallback(\n ({ layoutComponent, flow }) => {\n const linkableComponents = getLinkableLayoutComponents({\n steps: flow.steps,\n layoutComponentId: layoutComponent.id,\n });\n\n const linkMatch = (() => {\n for (const linkableComponent of linkableComponents) {\n const match = testSourceLayoutComponent(linkableComponent, layoutComponent);\n if (match) return match;\n }\n return null;\n })();\n\n if (linkMatch && !linkMatch.property)\n return { type: 'error', message: t('errors.requiredField') };\n\n return null;\n },\n [t],\n );\n};\n","import { Fragment, useLayoutEffect, useMemo, useState } from 'react';\nimport produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { useQuery } from '@tanstack/react-query';\nimport {\n Box,\n CircularProgress,\n FormControl,\n FormHelperText,\n InputLabel,\n MenuItem,\n Select,\n} from '@mui/material';\nimport {\n entitiesQuery,\n FieldLabel,\n flattenLayoutComponents,\n getLayoutComponentLabel,\n LayoutComponentNames,\n testSourceLayoutComponent,\n useEnvironment,\n} from '@diana/core';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { getLinkableLayoutComponents } from './Support';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { useDataPathPropertyValidator } from './useDataPathPropertyValidator';\n\nexport const DataPathPropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { dirty, touched, flow, options, value, onChange, onTouched } = props;\n const [isLinked, setIsLinked] = useState(false);\n\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n const ecosystemName = useEnvironment();\n\n const validate = useDataPathPropertyValidator();\n\n const entityTypesQuery = entitiesQuery.getAllThingsTypes({ environment: ecosystemName });\n const entityTypes = useQuery({\n queryKey: entityTypesQuery.key,\n queryFn: entityTypesQuery.fn,\n staleTime: Infinity,\n });\n\n const linkableComponents = useMemo(\n () => getLinkableLayoutComponents({ steps: flow.steps, layoutComponentId: value.id }),\n [flow.steps, value.id],\n );\n\n const sourceMatch = useMemo(() => {\n for (const linkableComponent of linkableComponents) {\n const match = testSourceLayoutComponent(linkableComponent, value);\n if (match) return match;\n }\n return null;\n }, [linkableComponents, value]);\n\n const properties = useMemo(() => {\n if (!sourceMatch) return null;\n\n // asset properties\n if (sourceMatch.layoutComponent.component === LayoutComponentNames.SEARCH_THINGS) {\n const propertiesMap = new Map();\n const { thingType } = sourceMatch.layoutComponent.properties;\n const entityType = entityTypes.data?.find((v) => v.entityType === thingType);\n if (!entityType?.flow) return null;\n for (const step of entityType.flow.steps) {\n for (const task of step.steps) {\n const components = flattenLayoutComponents(task.layout?.components ?? []);\n for (const component of components) {\n if (component.component !== value.component) continue;\n if (!/^\\$\\.*/.test(component.dataPath)) continue;\n const path = component.dataPath.replace(/^\\$\\.*/, '');\n if (!path) continue;\n propertiesMap.set(`data.${path}`, getLayoutComponentLabel(component));\n }\n }\n }\n return Array.from(propertiesMap.entries());\n }\n\n // user properties\n if (sourceMatch.layoutComponent.component === LayoutComponentNames.USER_INVITATION) {\n return [\n ['[0].displayName', t('userEntityProperties.displayName')],\n ['[0].email', t('userEntityProperties.email')],\n ];\n }\n\n return null;\n }, [t, sourceMatch, entityTypes.data, value.component]);\n\n const error = useMemo(() => {\n if (!dirty && !touched) return null;\n return validate({ layoutComponent: value, flow, options });\n }, [dirty, touched, validate, value, flow, options]);\n\n const setSourceComponentId = (componentId: string) => {\n const linkableComponent = linkableComponents.find(({ id }) => id === componentId);\n onChange(\n produce(value, (draft) => {\n if (linkableComponent) {\n draft.dataPath = linkableComponent.dataPath;\n draft.properties.sourceComponentId = linkableComponent.id;\n } else {\n delete draft.properties.sourceComponentId;\n }\n }),\n );\n };\n\n useLayoutEffect(() => {\n if (sourceMatch) setIsLinked(true);\n }, [sourceMatch]);\n\n return (\n \n \n \n \n \n {\n setIsLinked(e.target.value === 'work');\n if (e.target.value !== 'work') setSourceComponentId('');\n }}\n >\n {t('dataSourceLabels.none')}\n {t('dataSourceLabels.thisWork')}\n \n \n\n {isLinked && (\n \n \n \n \n setSourceComponentId(e.target.value)}\n >\n {linkableComponents.map((linkableComponent) => (\n \n {getLayoutComponentLabel(linkableComponent)}\n \n ))}\n \n \n )}\n\n {!!sourceMatch && (\n \n \n \n \n {\n onChange(\n produce(value, (draft) => {\n draft.dataPath = [sourceMatch.layoutComponent.dataPath, e.target.value]\n .filter((v) => v)\n .join('.')\n .replace(/\\.\\[/g, '[');\n }),\n );\n }}\n startAdornment={\n entityTypes.isLoading && (\n \n \n \n )\n }\n >\n {properties?.map(([propertyPath, propertyName]) => (\n \n {propertyName}\n \n ))}\n \n {!!error?.message && {error.message}}\n \n )}\n \n );\n};\n","import produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { Autocomplete, TextField } from '@mui/material';\nimport { FieldLabel } from '@diana/core';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\n\nexport const DecimalsPropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const { value, onChange, onTouched, options } = props;\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const valueOptions = [0, 1, 2, 3, 4];\n\n return (\n v.toString())}\n renderInput={(params) => (\n }\n placeholder={options.placeholder ?? t('placeholders.selectDecimals')}\n inputProps={{ ...params.inputProps, readOnly: true }}\n InputLabelProps={{ ...params.InputLabelProps, shrink: true }}\n />\n )}\n value={value.properties.decimals?.toString() ?? null}\n onChange={(e, v) => {\n onChange(\n produce(value, (draft) => {\n if (v === null) {\n delete draft.properties.decimals;\n delete draft.properties.decimalsToInputAndSave;\n } else {\n draft.properties.decimals = Number(v);\n draft.properties.decimalsToInputAndSave = Number(v);\n }\n }),\n );\n }}\n />\n );\n};\n","import { get, set, unset } from 'lodash';\nimport {\n IFlow,\n ILayoutComponent,\n InputLayoutComponentTypesEnum,\n isLayoutComponentLinkable,\n LayoutComponentNames,\n testSourceLayoutComponent,\n getLayoutComponentsFromFlow,\n} from '@diana/core';\n\nexport enum Option {\n fromThisFlow = 'fromThisFlow',\n assetProperty = 'assetProperty',\n customValue = 'customValue',\n calculation = 'calculation',\n initiator = 'initiator',\n}\n\nexport const INITIATOR_NAME = 'initiator';\nconst SELECTED_OPTION_TEMP_KEY = '__temp__defaultDataSelectedOption';\n\n// checks if source can be linked to target\nexport const isLinkable = (args: {\n source: ILayoutComponent;\n target: ILayoutComponent;\n linkableNames: LayoutComponentNames[];\n}) => {\n const { source, target, linkableNames } = args;\n if (source.id === target.id) return false; // cannot link component to itself\n if (!isLayoutComponentLinkable(source)) return false;\n if (source.component !== target.component && !linkableNames.includes(source.component))\n return false;\n if (source.component === target.component) {\n // special logic for number inputs\n // note: find way to implement without hard code\n if (target.component === LayoutComponentNames.INPUT_TEXT) {\n const sourceInputType = source.properties.inputType || InputLayoutComponentTypesEnum.Text;\n const targetInputType = target.properties.inputType || InputLayoutComponentTypesEnum.Text;\n if (sourceInputType !== targetInputType) return false;\n }\n if (target.component === LayoutComponentNames.DATE_PICKER) {\n const sourceShowRange = !!source.properties.showRange;\n const targetShowRange = !!source.properties.showRange;\n if (sourceShowRange !== targetShowRange) return false;\n }\n }\n return true;\n};\n\n// checks if source is an asset search and can be linked to target\nexport const isAssetSearchAndLinkable = (args: {\n source: ILayoutComponent;\n target: ILayoutComponent;\n}) => {\n const { source, target } = args;\n if (source.id === target.id) return false; // cannot link component to itself\n if (!source.properties.thingType) return false;\n if (!isLayoutComponentLinkable(source)) return false;\n return source.component === LayoutComponentNames.SEARCH_THINGS;\n};\n\n// identifies the active option\nexport const identifyActiveOption = (args: {\n value: ILayoutComponent;\n source?: ILayoutComponent;\n linkableNames: LayoutComponentNames[];\n}) => {\n const { value, source } = args;\n\n const savedSelectedOption = get(value.properties, SELECTED_OPTION_TEMP_KEY);\n if (savedSelectedOption && Object.values(Option).includes(savedSelectedOption))\n return savedSelectedOption as Option;\n\n if (value.properties.withCustomData) return Option.customValue;\n\n if (source) {\n if (value.defaultValue === source.dataPath) return Option.fromThisFlow;\n if (value.defaultValue.startsWith(source.dataPath)) return Option.assetProperty;\n if (value.dataPath === source.dataPath) return Option.fromThisFlow;\n if (value.dataPath.startsWith(source.dataPath)) return Option.assetProperty;\n }\n\n if (value.defaultValue) {\n if (value.properties.recalculateDefaultValueWhenDataPathChange?.includes(value.defaultValue))\n return Option.calculation;\n }\n\n if (value.defaultValue === INITIATOR_NAME) {\n return Option.initiator;\n }\n\n return null;\n};\n\nexport const mutateTempOption = (layoutComponent: ILayoutComponent, option: Option | false) => {\n if (option) set(layoutComponent.properties, SELECTED_OPTION_TEMP_KEY, option);\n else unset(layoutComponent.properties, SELECTED_OPTION_TEMP_KEY);\n};\n\nexport const identifySourceFromFlow = (args: { value: ILayoutComponent; flow: IFlow }) => {\n const { value, flow } = args;\n const components = getLayoutComponentsFromFlow(flow);\n for (const component of components) {\n const match = testSourceLayoutComponent(component, value);\n if (match) return match;\n }\n return null;\n};\n","import { styled, Paper } from '@mui/material';\n\nexport const StyledPaper = styled(Paper)(({ theme }) => ({\n '.MuiAutocomplete-listbox': {\n paddingTop: 2,\n paddingBottom: 2,\n },\n '.MuiAutocomplete-option': {\n margin: 0,\n maxWidth: '100%',\n padding: `${theme.spacing(1)} ${theme.spacing(2)}`,\n '.MuiListItemText-root': { margin: 0 },\n },\n}));\n","import { useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport {\n IValidationResult,\n getLayoutComponentsFromFlow,\n testSourceLayoutComponent,\n} from '@diana/core';\nimport { ILayoutComponentPropertyEditorValidationArgs } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { identifyActiveOption, Option } from './Support';\n\ninterface IDefaultValueValidationResult extends IValidationResult {\n field: 'sourceComponent' | 'assetProperty' | 'calculation';\n}\n\nexport const useDefaultValuePropertyValidator = () => {\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n return useCallback(\n ({\n layoutComponent,\n flow,\n options,\n }: ILayoutComponentPropertyEditorValidationArgs): IDefaultValueValidationResult | null => {\n const flowComponents = getLayoutComponentsFromFlow(flow);\n\n const source = (() => {\n for (const flowComponent of flowComponents) {\n const match = testSourceLayoutComponent(flowComponent, layoutComponent);\n if (match) return match;\n }\n return null;\n })();\n\n const activeOption = identifyActiveOption({\n value: layoutComponent,\n source: source?.layoutComponent,\n linkableNames: options.linkableComponentNames ?? [],\n });\n\n if (activeOption === Option.fromThisFlow) {\n if (!source) {\n const fieldLabel = t('defaultValueLabels.linkComponent');\n return {\n type: 'error',\n field: 'sourceComponent',\n message: t('errors.subjectIsRequired', { subject: fieldLabel }),\n };\n }\n }\n\n if (activeOption === Option.assetProperty) {\n if (!source) {\n const fieldLabel = t('defaultValueLabels.assetSearchComponent');\n return {\n type: 'error',\n field: 'sourceComponent',\n message: t('errors.subjectIsRequired', { subject: fieldLabel }),\n };\n }\n\n if (!source?.property) {\n const fieldLabel = t('defaultValueLabels.assetProperty.title');\n return {\n type: 'error',\n field: 'assetProperty',\n message: t('errors.subjectIsRequired', { subject: fieldLabel }),\n };\n }\n }\n\n if (activeOption === Option.calculation) {\n if (!layoutComponent.defaultValue && layoutComponent.source !== 'yaml') {\n const fieldLabel = t('defaultValueLabels.calculation.title');\n return {\n type: 'error',\n field: 'calculation',\n message: t('errors.subjectIsRequired', { subject: fieldLabel }),\n };\n }\n }\n\n return null;\n },\n [t],\n );\n};\n","import { useMemo } from 'react';\nimport produce from 'immer';\nimport { useTranslation } from 'react-i18next';\nimport { FormControl, FormHelperText, InputLabel, MenuItem, Select } from '@mui/material';\nimport {\n FieldLabel,\n getLayoutComponentLabel,\n ILayoutComponent,\n mutateLayoutComponentDefaultValueWithRecalculate,\n} from '@diana/core';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { identifySourceFromFlow, isLinkable, mutateTempOption } from './Support';\nimport { useDefaultValuePropertyValidator } from './useDefaultValuePropertyValidator';\n\nexport const FromThisWorkflowEntries = (props: ILayoutComponentPropertyEditorProps) => {\n const { touched, dirty, flow, value, onChange, position, options } = props;\n\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const validate = useDefaultValuePropertyValidator();\n\n const error = useMemo(() => {\n if (!touched && !dirty) return null; // don't display any error if field is untouched\n return validate({ layoutComponent: value, flow, options });\n }, [touched, dirty, validate, value, flow, options]);\n\n const source = useMemo(() => identifySourceFromFlow({ value, flow }), [flow, value]);\n\n const linkableNames = useMemo(\n () => options.linkableComponentNames ?? [],\n [options.linkableComponentNames],\n );\n\n const linkableComponentsMap = useMemo(() => {\n const componentsMap: Record = {};\n for (let stepIndex = 0; stepIndex < flow.steps.length; stepIndex++) {\n const step = flow.steps[stepIndex];\n for (let taskIndex = 0; taskIndex < step.steps.length; taskIndex++) {\n const task = step.steps[taskIndex];\n (function scan(items: ILayoutComponent[]) {\n for (const item of items) {\n if (isLinkable({ source: item, target: value, linkableNames }))\n componentsMap[item.id] = item;\n if (Array.isArray(item.components)) scan(item.components);\n }\n })(task.layout?.components ?? []);\n if (stepIndex >= position.stepIndex && taskIndex >= position.taskIndex) break;\n }\n if (stepIndex >= position.stepIndex) break;\n }\n return componentsMap;\n }, [flow.steps, linkableNames, position.stepIndex, position.taskIndex, value]);\n\n const setSourceComponentId = (sourceComponentId: string) => {\n const sourceComponent = linkableComponentsMap[sourceComponentId];\n if (sourceComponent) {\n onChange(\n produce(value, (draft) => {\n mutateLayoutComponentDefaultValueWithRecalculate(draft, sourceComponent.dataPath);\n draft.properties.thingType = sourceComponent.properties.thingType;\n draft.properties.sourceComponentId = sourceComponent.id;\n draft.properties.sourceComponentRelation = 'copy';\n mutateTempOption(draft, false);\n }),\n );\n }\n };\n\n return (\n \n \n \n \n setSourceComponentId(event.target.value)}\n >\n {!Object.entries(linkableComponentsMap).length && (\n {t('placeholders.noOptions')}\n )}\n {Object.entries(linkableComponentsMap).map(([, layoutComponent]) => (\n \n {getLayoutComponentLabel(layoutComponent)}\n \n ))}\n \n {error?.field === 'sourceComponent' && {error.message}}\n \n );\n};\n","import { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { TextField } from '@mui/material';\nimport {\n FieldLabel,\n useObjectPropertyUpdateDebounce,\n mutateLayoutComponentDefaultValueWithRecalculate,\n} from '@diana/core';\nimport { useDefaultValuePropertyValidator } from './useDefaultValuePropertyValidator';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { mutateTempOption, Option } from './Support';\n\nexport const CalculationEntries = (props: ILayoutComponentPropertyEditorProps) => {\n const { touched, dirty, value, onChange, flow, options } = props;\n\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const validate = useDefaultValuePropertyValidator();\n\n const [calculation, setCalculation, layoutComponent] = useObjectPropertyUpdateDebounce(value, {\n getProperty: ({ defaultValue }) => defaultValue,\n setProperty: (draft, value) => {\n mutateLayoutComponentDefaultValueWithRecalculate(draft, value);\n mutateTempOption(draft, value ? Option.calculation : false);\n },\n updateObject: onChange,\n });\n\n const error = useMemo(() => {\n if (!touched && !dirty) return null; // don't display any error if field is untouched\n return validate({ layoutComponent, flow, options });\n }, [touched, dirty, validate, layoutComponent, flow, options]);\n\n return (\n }\n placeholder=\"e.g. ={$.datapath.one} + {$.datapath.two}\"\n error={error?.type === 'error'}\n helperText={error?.message}\n variant=\"standard\"\n fullWidth={true}\n InputLabelProps={{ shrink: true }}\n value={calculation}\n onChange={(e) => setCalculation(e.target.value)}\n />\n );\n};\n","import { Fragment, useMemo } from 'react';\nimport produce from 'immer';\nimport { uniqBy } from 'lodash';\nimport { useTranslation } from 'react-i18next';\nimport { useQuery } from '@tanstack/react-query';\nimport { FormControl, FormHelperText, InputLabel, MenuItem, Select, Skeleton } from '@mui/material';\nimport {\n entitiesQuery,\n FieldLabel,\n getLayoutComponentLabel,\n ILayoutComponent,\n useEntities,\n IFlow,\n flattenLayoutComponents,\n getLayoutComponentDataPathAsPropertyPath,\n mutateLayoutComponentDefaultValueWithRecalculate,\n} from '@diana/core';\nimport { useDefaultValuePropertyValidator } from './useDefaultValuePropertyValidator';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport {\n identifySourceFromFlow,\n isAssetSearchAndLinkable,\n isLinkable,\n mutateTempOption,\n Option,\n} from './Support';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\n\nexport const AssetPropertyEntries = (props: ILayoutComponentPropertyEditorProps) => {\n const { touched, dirty, value, onChange, flow, position, options } = props;\n\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n\n const validate = useDefaultValuePropertyValidator();\n\n const source = useMemo(() => identifySourceFromFlow({ value, flow }), [flow, value]);\n\n const linkableNames = useMemo(\n () => options.linkableComponentNames ?? [],\n [options.linkableComponentNames],\n );\n\n const error = useMemo(() => {\n if (!touched && !dirty) return null; // don't display any error if field is untouched\n return validate({ layoutComponent: value, flow, options: props.options });\n }, [touched, dirty, validate, value, flow, props.options]);\n\n const linkableAssetSearchesMap = useMemo(() => {\n const componentsMap: Record = {};\n for (let stepIndex = 0; stepIndex < flow.steps.length; stepIndex++) {\n const step = flow.steps[stepIndex];\n for (let taskIndex = 0; taskIndex < step.steps.length; taskIndex++) {\n const task = step.steps[taskIndex];\n (function scan(items: ILayoutComponent[]) {\n for (const item of items) {\n const isLinkable = isAssetSearchAndLinkable({ source: item, target: value });\n const hasThingType = !!item.properties.thingType;\n if (isLinkable && hasThingType) componentsMap[item.id] = item;\n if (Array.isArray(item.components)) scan(item.components);\n }\n })(task.layout?.components ?? []);\n if (stepIndex >= position.stepIndex && taskIndex >= position.taskIndex) break;\n }\n if (stepIndex >= position.stepIndex) break;\n }\n return componentsMap;\n }, [flow.steps, position.stepIndex, position.taskIndex, value]);\n\n const {\n data: sourceAssetTypeFlow,\n error: sourceAssetTypeFlowError,\n isLoading: isLoadingSourceAssetTypeFlow,\n } = useAssetTypeFlow(source?.layoutComponent.properties.thingType);\n\n const {\n data: sourceAssetTypeFlowLayout,\n error: sourceAssetTypeFlowLayoutError,\n isLoading: isLoadingSourceAssetTypeFlowLayout,\n } = useAssetTypeFlowLayout(sourceAssetTypeFlow);\n\n const hasError = !!sourceAssetTypeFlowError || !!sourceAssetTypeFlowLayoutError;\n const isLoading = isLoadingSourceAssetTypeFlow || isLoadingSourceAssetTypeFlowLayout;\n\n const sourceAssetTypeProperties = useMemo(() => {\n if (hasError || isLoading) return [];\n\n const items = flattenLayoutComponents(sourceAssetTypeFlowLayout?.components ?? []);\n const properties = items.reduce<{ path: string; label: string }[]>((list, item) => {\n if (isLinkable({ source: item, target: value, linkableNames })) {\n const label = getLayoutComponentLabel(item);\n const path = getLayoutComponentDataPathAsPropertyPath(item);\n if (path) list.push({ path: ['data', path].join('.'), label });\n }\n return list;\n }, []);\n\n return uniqBy(properties, (v) => v.path);\n }, [hasError, isLoading, value, linkableNames, sourceAssetTypeFlowLayout?.components]);\n\n const setSourceComponentId = (sourceComponentId: string) => {\n const sourceComponent = linkableAssetSearchesMap[sourceComponentId];\n if (sourceComponent) {\n onChange(\n produce(value, (draft) => {\n mutateLayoutComponentDefaultValueWithRecalculate(draft, sourceComponent.dataPath);\n draft.properties.thingType = sourceComponent.properties.thingType;\n draft.properties.sourceComponentId = sourceComponent.id;\n draft.properties.sourceComponentRelation = 'copy';\n mutateTempOption(draft, Option.assetProperty);\n }),\n );\n }\n };\n\n const setSourceComponentProperty = (property: string) => {\n if (source) {\n const dataPath = [source.layoutComponent.dataPath, property].join('.');\n onChange(\n produce(value, (draft) => {\n mutateLayoutComponentDefaultValueWithRecalculate(draft, dataPath);\n draft.properties.sourceComponentId = source.layoutComponent.id;\n draft.properties.sourceComponentRelation = 'copy';\n mutateTempOption(draft, false);\n }),\n );\n }\n };\n\n return (\n \n \n \n \n \n setSourceComponentId(event.target.value)}\n >\n {!Object.entries(linkableAssetSearchesMap).length && (\n {t('placeholders.noOptions')}\n )}\n {Object.entries(linkableAssetSearchesMap).map(([, layoutComponent]) => (\n \n {getLayoutComponentLabel(layoutComponent)}\n \n ))}\n \n {error?.field === 'sourceComponent' && (\n {error.message}\n )}\n \n\n \n \n \n \n {isLoading ? (\n \n ) : (\n \n setSourceComponentProperty(e.target.value)}\n >\n {!sourceAssetTypeProperties.length && (\n {t('placeholders.noOptions')}\n )}\n {sourceAssetTypeProperties.map(({ path, label }) => (\n \n {label}\n \n ))}\n \n {error?.field === 'assetProperty' && (\n {error.message}\n )}\n \n )}\n \n \n );\n};\n\nconst useAssetTypeFlow = (thingType?: string | null) => {\n const { data: assetTypes, ...query } = useEntities();\n const assetTypeFlow = useMemo(() => {\n return assetTypes?.find((a) => a.entityType === thingType)?.flow ?? null;\n }, [assetTypes, thingType]);\n\n return { data: assetTypeFlow, ...query };\n};\n\nconst useAssetTypeFlowLayout = (assetTypeFlow?: IFlow | null) => {\n const flowId = assetTypeFlow?.id ?? '';\n const { key: queryKey, fn: queryFn } = entitiesQuery.getComponentsByEntityFlowId({ flowId });\n\n return useQuery({\n queryKey,\n queryFn,\n enabled: Boolean(flowId),\n staleTime: 0,\n gcTime: 0,\n });\n};\n","import {\n FieldLabel,\n FlowResourceType,\n mutateLayoutComponentDefaultValueWithRecalculate,\n} from '@diana/core';\nimport {\n Autocomplete,\n ListItem,\n ListItemText,\n ListItemAvatar,\n TextField,\n Link,\n ListItemProps,\n} from '@mui/material';\nimport { Clear as ClearIcon } from '@mui/icons-material';\nimport OpenInNewRoundedIcon from '@mui/icons-material/OpenInNewRounded';\nimport KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';\nimport produce from 'immer';\nimport { Fragment, useLayoutEffect, useMemo, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport {\n DefaultValuePropertyEditorOptions,\n ILayoutComponentPropertyEditorProps,\n} from '../../../models/LayoutComponentPropertyEditor';\nimport {\n identifyActiveOption,\n identifySourceFromFlow,\n INITIATOR_NAME,\n mutateTempOption,\n Option,\n} from './Support';\nimport { StyledPaper } from './DefaultValuePropertyEditor.styles';\nimport { FromThisWorkflowEntries } from './FromThisWorkflowEntries';\nimport { CalculationEntries } from './CalculationEntries';\nimport { AssetPropertyEntries } from './AssetPropertyEntries';\n\ntype TOptionMap = Partial>;\n\nexport const DefaultValuePropertyEditor = (props: ILayoutComponentPropertyEditorProps) => {\n const {\n options: { defaultValuePropertyEditorOptions, linkableComponentNames, placeholder },\n onChange,\n onTouched,\n value,\n flow,\n onDataChange,\n } = props;\n\n const { t } = useTranslation(LAYOUT_COMPONENTS_NS);\n const [activeOption, setActiveOption] = useState