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X,UAAW,MACX,aAAc,MACd,QAAS,MACT,WAAY,MACZ,OAAQ,MACR,UAAW,MACX,QAAS,MACT,WAAY,MACZ,QAAS,MACT,aAAc,MACd,gBAAiB,MACjB,WAAY,MACZ,UAAW,KACX,aAAc,KACd,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,KACR,YAAa,MACb,eAAgB,MAChB,UAAW,KACX,OAAQ,MACR,UAAW,MACX,aAAc,MACd,gBAAiB,MACjB,OAAQ,MACR,UAAW,MACX,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,OAIf,SAASg3G,EAAeC,GACvB,IAAInkH,EAAKokH,EAAsBD,GAC/B,OAAOE,EAAoBrkH,EAC5B,CACA,SAASokH,EAAsBD,GAC9B,IAAIE,EAAoBC,EAAEp3G,EAAKi3G,GAAM,CACpC,IAAIj6G,EAAI,IAAI2pB,MAAM,uBAAyBswF,EAAM,KAEjD,MADAj6G,EAAEgvC,KAAO,mBACHhvC,CACP,CACA,OAAOgD,EAAIi3G,EACZ,CACAD,EAAe/kF,KAAO,WACrB,OAAOv/B,OAAOu/B,KAAKjyB,EACpB,EACAg3G,EAAe/gE,QAAUihE,EACzB1zH,EAAOD,QAAUyzH,EACjBA,EAAelkH,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 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 if (params.openInNewTab) {\n window.open(routeUrls.workboard.url(params, null), '_blank');\n } else {\n navigate(routeUrls.workboard.url(params, null));\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:\n \"Your account ({{ userEmail }}) doesn't have access to this item. Please contact the owner to request permission.\",\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 { 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 = '';\n component.dataPath = '';\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 draft.dataPath = '';\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 asset/autocomplete and can be linked to target\nexport const isAssetAndLinkable = (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 (!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.properties.sourceComponentRelation === 'copy') {\n if (value.defaultValue === source.dataPath) return Option.fromThisFlow;\n if (value.defaultValue.startsWith(source.dataPath)) return Option.assetProperty;\n } else {\n if (value.dataPath === source.dataPath) return Option.fromThisFlow;\n if (value.dataPath.startsWith(source.dataPath)) return Option.assetProperty;\n }\n }\n\n if (value.defaultValue) {\n if (value.properties.recalculateDefaultValueWhenDataPathChange?.includes(value.defaultValue))\n return Option.calculation;\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.startsWith('=') && layoutComponent.source !== 'yaml') {\n const fieldLabel = t('defaultValueLabels.calculation.title');\n return {\n type: 'error',\n field: 'calculation',\n message: t('errors.subjectShouldStartWithValue', { subject: fieldLabel, value: '=' }),\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 { FieldLabel, getLayoutComponentLabel, ILayoutComponent } 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 draft.defaultValue = sourceComponent.dataPath;\n draft.properties.recalculateDefaultValueWhenDataPathChange = [sourceComponent.dataPath];\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).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 { FieldLabel, useObjectPropertyUpdateDebounce } from '@diana/core';\nimport { useDefaultValuePropertyValidator } from './useDefaultValuePropertyValidator';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport { LAYOUT_COMPONENTS_NS } from '../../../i18n/layoutComponents';\nimport { mutateTempOption } 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 draft.defaultValue = value;\n draft.properties.recalculateDefaultValueWhenDataPathChange = [value];\n if (calculation) mutateTempOption(draft, 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 { useTranslation } from 'react-i18next';\nimport { useQuery } from '@tanstack/react-query';\nimport { FormControl, FormHelperText, InputLabel, MenuItem, Select } from '@mui/material';\nimport {\n entitiesQuery,\n FieldLabel,\n getLayoutComponentLabel,\n ILayoutComponent,\n useEntities,\n} from '@diana/core';\nimport { useDefaultValuePropertyValidator } from './useDefaultValuePropertyValidator';\nimport { ILayoutComponentPropertyEditorProps } from '../../../models/LayoutComponentPropertyEditor';\nimport {\n identifySourceFromFlow,\n isAssetAndLinkable,\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 if (isAssetAndLinkable({ source: item, target: value }) && item.properties.thingType)\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, position.stepIndex, position.taskIndex, value]);\n\n const { data: assets } = useEntities();\n const asset =\n assets?.find((a) => a.entityType === source?.layoutComponent.properties.thingType)?.flow ??\n null;\n\n const assetLayoutQuery = entitiesQuery.getComponentsByEntityFlowId({ flowId: asset?.id ?? '' });\n const {\n data: assetLayout,\n isLoading: isLoadingAssetLayout,\n error: assetLayoutError,\n } = useQuery({\n queryKey: assetLayoutQuery.key,\n queryFn: assetLayoutQuery.fn,\n enabled: !!asset?.id,\n staleTime: 0,\n gcTime: 0,\n });\n\n const assetPropertiesMap = useMemo(() => {\n const propertiesMap: Record = {};\n if (!assetLayoutError) {\n (function scan(items: ILayoutComponent[]) {\n for (const item of items) {\n if (isLinkable({ source: item, target: value, linkableNames }))\n propertiesMap[item.dataPath.replace(/^\\$/, 'data')] = getLayoutComponentLabel(item);\n if (Array.isArray(item.components)) scan(item.components);\n }\n })(assetLayout?.components ?? []);\n }\n return propertiesMap;\n }, [assetLayout?.components, assetLayoutError, linkableNames, value]);\n\n const setSourceComponentId = (sourceComponentId: string) => {\n const assetSearchComponent = linkableAssetSearchesMap[sourceComponentId];\n if (assetSearchComponent) {\n const dataPath = assetSearchComponent.dataPath;\n onChange(\n produce(value, (draft) => {\n draft.defaultValue = dataPath;\n draft.properties.recalculateDefaultValueWhenDataPathChange = [dataPath];\n draft.properties.sourceComponentId = assetSearchComponent.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 draft.defaultValue = dataPath;\n draft.properties.recalculateDefaultValueWhenDataPathChange = [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).map(([, layoutComponent]) => (\n \n {getLayoutComponentLabel(layoutComponent)}\n \n ))}\n \n {error?.field === 'sourceComponent' && (\n {error.message}\n )}\n \n\n \n \n \n \n setSourceComponentProperty(e.target.value)}\n >\n {!isLoadingAssetLayout && !Object.keys(assetPropertiesMap).length && (\n {t('placeholders.noOptions')}\n )}\n\n {Object.entries(assetPropertiesMap).map(([valuePath, label]) => (\n \n {label}\n \n ))}\n \n {error?.field === 'assetProperty' && {error.message}}\n \n \n );\n};\n","import { FieldLabel, FlowResourceType } 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