@orchestrator-ui/orchestrator-ui-components 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23126,10 +23126,10 @@ var require_jsstacktrace = __commonJS({
23126
23126
  var require_jsx = __commonJS({
23127
23127
  "../../node_modules/refractor/lang/jsx.js"(exports, module) {
23128
23128
  "use strict";
23129
- module.exports = jsx172;
23130
- jsx172.displayName = "jsx";
23131
- jsx172.aliases = [];
23132
- function jsx172(Prism) {
23129
+ module.exports = jsx171;
23130
+ jsx171.displayName = "jsx";
23131
+ jsx171.aliases = [];
23132
+ function jsx171(Prism) {
23133
23133
  ;
23134
23134
  (function(Prism2) {
23135
23135
  var javascript = Prism2.util.clone(Prism2.languages.javascript);
@@ -40293,9 +40293,9 @@ var customersQuery = `query Customers {
40293
40293
  customers(first: 1000000, after: 0) {
40294
40294
  page {
40295
40295
  fullname
40296
- identifier
40296
+ customerId
40297
40297
  shortcode
40298
- }:
40298
+ }
40299
40299
  }
40300
40300
  }`;
40301
40301
  var customersApi = orchestratorApi.injectEndpoints({
@@ -42726,17 +42726,16 @@ var getOrchestratorStore = (orchestratorConfig) => {
42726
42726
  };
42727
42727
 
42728
42728
  // src/rtk/storeProvider.tsx
42729
+ import { useState as useState5 } from "react";
42729
42730
  import { Provider as Provider2 } from "react-redux";
42730
42731
  import { jsx as jsx43 } from "@emotion/react/jsx-runtime";
42731
42732
  var StoreProvider = ({
42732
42733
  initialOrchestratorConfig,
42733
42734
  children
42734
42735
  }) => {
42735
- const { orchestratorConfig } = useOrchestratorConfig(
42736
- initialOrchestratorConfig
42737
- );
42738
- const store = getOrchestratorStore(orchestratorConfig);
42739
- return /* @__PURE__ */ jsx43(Provider2, { store, children });
42736
+ const store = getOrchestratorStore(initialOrchestratorConfig);
42737
+ const [orchestratorStore] = useState5(store);
42738
+ return /* @__PURE__ */ jsx43(Provider2, { store: orchestratorStore, children });
42740
42739
  };
42741
42740
 
42742
42741
  // src/components/WfoBadges/WfoEngineStatusBadge/WfoEngineStatusBadge.tsx
@@ -43384,12 +43383,12 @@ var WfoPageHeader = ({
43384
43383
  };
43385
43384
 
43386
43385
  // src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx
43387
- import { useState as useState7 } from "react";
43386
+ import { useState as useState8 } from "react";
43388
43387
  import { signOut as signOut3 } from "next-auth/react";
43389
43388
  import { EuiPageTemplate } from "@elastic/eui";
43390
43389
 
43391
43390
  // src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx
43392
- import { useState as useState6 } from "react";
43391
+ import { useState as useState7 } from "react";
43393
43392
  import { useTranslations as useTranslations7 } from "next-intl";
43394
43393
  import { useRouter as useRouter3 } from "next/router";
43395
43394
  import { EuiSideNav, EuiSpacer as EuiSpacer3 } from "@elastic/eui";
@@ -45925,7 +45924,7 @@ var GET_WORKFLOWS_FOR_DROPDOWN_LIST_GRAPHQL_QUERY = parse(gql`
45925
45924
  `);
45926
45925
 
45927
45926
  // src/components/WfoButtonComboBox/WfoButtonComboBox.tsx
45928
- import { useState as useState5 } from "react";
45927
+ import { useState as useState6 } from "react";
45929
45928
  import { EuiButton as EuiButton2, EuiPopover, EuiSelectable, EuiSpacer as EuiSpacer2 } from "@elastic/eui";
45930
45929
 
45931
45930
  // src/components/WfoButtonComboBox/styles.ts
@@ -45948,7 +45947,7 @@ var WfoButtonComboBox = ({
45948
45947
  onOptionChange,
45949
45948
  isProcess
45950
45949
  }) => {
45951
- const [isPopoverOpen, setPopoverOpen] = useState5(false);
45950
+ const [isPopoverOpen, setPopoverOpen] = useState6(false);
45952
45951
  const { selectableStyle } = getStyles2();
45953
45952
  const { theme } = useOrchestratorTheme();
45954
45953
  const Button = /* @__PURE__ */ jsx56(
@@ -46034,7 +46033,7 @@ import { Fragment as Fragment5, jsx as jsx58, jsxs as jsxs41 } from "@emotion/re
46034
46033
  var WfoSidebar = ({ overrideMenuItems }) => {
46035
46034
  const t = useTranslations7("main");
46036
46035
  const router = useRouter3();
46037
- const [isSideNavOpenOnMobile, setIsSideNavOpenOnMobile] = useState6(false);
46036
+ const [isSideNavOpenOnMobile, setIsSideNavOpenOnMobile] = useState7(false);
46038
46037
  const toggleMobile = () => {
46039
46038
  setIsSideNavOpenOnMobile((openState) => !openState);
46040
46039
  };
@@ -46165,7 +46164,7 @@ var WfoPageTemplate = ({
46165
46164
  overrideMenuItems
46166
46165
  }) => {
46167
46166
  const { theme, multiplyByBaseUnit } = useOrchestratorTheme();
46168
- const [isSideMenuVisible, setIsSideMenuVisible] = useState7(true);
46167
+ const [isSideMenuVisible, setIsSideMenuVisible] = useState8(true);
46169
46168
  const navigationHeight = multiplyByBaseUnit(3);
46170
46169
  return /* @__PURE__ */ jsxs42(Fragment6, { children: [
46171
46170
  /* @__PURE__ */ jsx59(
@@ -46214,7 +46213,7 @@ var WfoPageTemplate = ({
46214
46213
  };
46215
46214
 
46216
46215
  // src/components/WfoSearchBar/WfoSearchField.tsx
46217
- import { useEffect as useEffect5, useState as useState8 } from "react";
46216
+ import { useEffect as useEffect5, useState as useState9 } from "react";
46218
46217
  import { useTranslations as useTranslations8 } from "next-intl";
46219
46218
  import { EuiFieldSearch, EuiFormRow } from "@elastic/eui";
46220
46219
  import { jsx as jsx60 } from "@emotion/react/jsx-runtime";
@@ -46225,7 +46224,7 @@ var WfoSearchField = ({
46225
46224
  const t = useTranslations8("common");
46226
46225
  const tError = useTranslations8("errors");
46227
46226
  const queryIsValid = true;
46228
- const [currentQuery, setCurrentQuery] = useState8(queryString != null ? queryString : "");
46227
+ const [currentQuery, setCurrentQuery] = useState9(queryString != null ? queryString : "");
46229
46228
  useEffect5(() => {
46230
46229
  setCurrentQuery(queryString != null ? queryString : "");
46231
46230
  }, [queryString]);
@@ -46635,7 +46634,7 @@ var WfoProcessesTimeline = ({
46635
46634
  };
46636
46635
 
46637
46636
  // src/components/WfoSubscription/WfoSubscriptionProductBlock.tsx
46638
- import { useState as useState9 } from "react";
46637
+ import { useState as useState10 } from "react";
46639
46638
  import { useTranslations as useTranslations10 } from "next-intl";
46640
46639
  import { useRouter as useRouter4 } from "next/router";
46641
46640
  import {
@@ -46669,7 +46668,7 @@ var WfoSubscriptionProductBlock = ({
46669
46668
  productBlockRightColStyle,
46670
46669
  productBlockFirstRightColStyle
46671
46670
  } = useWithOrchestratorTheme(getStyles3);
46672
- const [hideDetails, setHideDetails] = useState9(true);
46671
+ const [hideDetails, setHideDetails] = useState10(true);
46673
46672
  const isFirstBlock = (index) => {
46674
46673
  if (!hideDetails)
46675
46674
  return false;
@@ -46796,7 +46795,7 @@ var WfoSubscriptionProductBlock = ({
46796
46795
  };
46797
46796
 
46798
46797
  // src/components/WfoSubscription/WfoSubscriptionActions.tsx
46799
- import { useState as useState10 } from "react";
46798
+ import { useState as useState11 } from "react";
46800
46799
  import { useTranslations as useTranslations11 } from "next-intl";
46801
46800
  import Link from "next/link";
46802
46801
  import { useRouter as useRouter5 } from "next/router";
@@ -46817,7 +46816,7 @@ var WfoSubscriptionActions = ({
46817
46816
  const { theme } = useOrchestratorTheme();
46818
46817
  const router = useRouter5();
46819
46818
  const t = useTranslations11("subscriptions.detail.actions");
46820
- const [isPopoverOpen, setPopover] = useState10(false);
46819
+ const [isPopoverOpen, setPopover] = useState11(false);
46821
46820
  const { data: subscriptionActions } = useSubscriptionActions(subscriptionId);
46822
46821
  const { isEngineRunningNow } = useCheckEngineStatus();
46823
46822
  const onButtonClick = () => {
@@ -46970,7 +46969,7 @@ var SubscriptionKeyValueBlock = ({
46970
46969
  };
46971
46970
 
46972
46971
  // src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx
46973
- import React15, { useState as useState11 } from "react";
46972
+ import React16, { useState as useState12 } from "react";
46974
46973
  import { useTranslations as useTranslations13 } from "next-intl";
46975
46974
  import { EuiCallOut, EuiFlexGroup as EuiFlexGroup6, EuiFlexItem as EuiFlexItem5, EuiText as EuiText6 } from "@elastic/eui";
46976
46975
 
@@ -46990,14 +46989,14 @@ function getTokenName(name) {
46990
46989
  }
46991
46990
 
46992
46991
  // src/components/WfoTree/WfoTree.tsx
46993
- import React14, { useEffect as useEffect6 } from "react";
46992
+ import React15, { useEffect as useEffect6 } from "react";
46994
46993
 
46995
46994
  // src/components/WfoTree/WfoTreeBranch.tsx
46996
- import React13 from "react";
46995
+ import React14 from "react";
46997
46996
  import { EuiListGroup } from "@elastic/eui";
46998
46997
 
46999
46998
  // src/components/WfoTree/WfoTreeNode.tsx
47000
- import React12 from "react";
46999
+ import React13 from "react";
47001
47000
  import { useTranslations as useTranslations12 } from "next-intl";
47002
47001
  import {
47003
47002
  EuiFlexGroup as EuiFlexGroup5,
@@ -47039,7 +47038,7 @@ var WfoTreeNode = ({
47039
47038
  expandNode,
47040
47039
  selectedIds,
47041
47040
  toggleSelectedId
47042
- } = React12.useContext(TreeContext);
47041
+ } = React13.useContext(TreeContext);
47043
47042
  const expanded = expandedIds.includes(item.id);
47044
47043
  const selected = selectedIds.includes(item.id);
47045
47044
  const expandIcon = expanded ? "arrowDown" : "arrowRight";
@@ -47085,7 +47084,7 @@ var WfoTreeNode = ({
47085
47084
  // src/components/WfoTree/WfoTreeBranch.tsx
47086
47085
  import { Fragment as Fragment12, jsx as jsx72, jsxs as jsxs52 } from "@emotion/react/jsx-runtime";
47087
47086
  var WfoTreeBranch = ({ item, level }) => {
47088
- const { expandedIds } = React13.useContext(TreeContext);
47087
+ const { expandedIds } = React14.useContext(TreeContext);
47089
47088
  const selected = expandedIds.includes(item.id);
47090
47089
  const hasChildren = item.children && item.children.length !== 0;
47091
47090
  const renderBranches = () => {
@@ -47111,7 +47110,7 @@ var WfoTreeBranch = ({ item, level }) => {
47111
47110
  // src/components/WfoTree/WfoTree.tsx
47112
47111
  import { jsx as jsx73 } from "@emotion/react/jsx-runtime";
47113
47112
  var WfoTree = ({ data, depthList }) => {
47114
- const { setDepths } = React14.useContext(TreeContext);
47113
+ const { setDepths } = React15.useContext(TreeContext);
47115
47114
  useEffect6(() => {
47116
47115
  setDepths(depthList);
47117
47116
  }, [setDepths, TreeContext]);
@@ -47138,8 +47137,8 @@ var WfoSubscriptionDetailTree = ({
47138
47137
  productBlockInstances
47139
47138
  }) => {
47140
47139
  const t = useTranslations13("subscriptions.detail");
47141
- const [, setSelectedTreeNode] = useState11(-1);
47142
- const { selectedIds, expandAll, collapseAll, resetSelection, selectAll } = React15.useContext(TreeContext);
47140
+ const [, setSelectedTreeNode] = useState12(-1);
47141
+ const { selectedIds, expandAll, collapseAll, resetSelection, selectAll } = React16.useContext(TreeContext);
47143
47142
  let tree = null;
47144
47143
  const depthList = [];
47145
47144
  const idToNodeMap = {};
@@ -47708,14 +47707,7 @@ var GET_PROCESS_DETAIL_GRAPHQL_QUERY = parse(gql7`
47708
47707
  lastStep
47709
47708
  workflowName
47710
47709
  isTask
47711
- form {
47712
- additionalProperties
47713
- definitions
47714
- properties
47715
- required
47716
- title
47717
- type
47718
- }
47710
+ form
47719
47711
  steps {
47720
47712
  name
47721
47713
  status
@@ -47888,7 +47880,7 @@ var WfoError = () => {
47888
47880
  };
47889
47881
 
47890
47882
  // src/components/WfoSubscription/WfoRelatedSubscriptions.tsx
47891
- import { useState as useState16 } from "react";
47883
+ import { useState as useState17 } from "react";
47892
47884
  import { useTranslations as useTranslations19 } from "next-intl";
47893
47885
  import Link2 from "next/link";
47894
47886
  import { EuiFlexGroup as EuiFlexGroup10, EuiFlexItem as EuiFlexItem9, EuiSpacer as EuiSpacer13, EuiSwitch as EuiSwitch2 } from "@elastic/eui";
@@ -47979,7 +47971,7 @@ var WfoNoResults = ({ text, icon }) => {
47979
47971
  };
47980
47972
 
47981
47973
  // src/components/WfoTable/WfoDataGridTable/WfoDataGridTable.tsx
47982
- import { useRef as useRef4, useState as useState12 } from "react";
47974
+ import { useRef as useRef4, useState as useState13 } from "react";
47983
47975
  import {
47984
47976
  EuiDataGrid
47985
47977
  } from "@elastic/eui";
@@ -48065,7 +48057,7 @@ var WfoDataGridTable = ({
48065
48057
  getInitialColumnOrder(columns, initialColumnOrder)
48066
48058
  );
48067
48059
  const defaultVisibleColumns = initialColumnOrder.filter((columnId) => !columns[columnId].isHiddenByDefault).map((columnId) => columnId.toString());
48068
- const [visibleColumns, setVisibleColumns] = useState12(defaultVisibleColumns);
48060
+ const [visibleColumns, setVisibleColumns] = useState13(defaultVisibleColumns);
48069
48061
  const pageSize = (_a = pagination.pageSize) != null ? _a : DEFAULT_PAGE_SIZE;
48070
48062
  const { pageIndex } = pagination;
48071
48063
  const renderCellValue = ({
@@ -48127,7 +48119,7 @@ var WfoDataGridTable = ({
48127
48119
  };
48128
48120
 
48129
48121
  // src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx
48130
- import { useState as useState13 } from "react";
48122
+ import { useState as useState14 } from "react";
48131
48123
  import {
48132
48124
  EuiForm,
48133
48125
  EuiFormRow as EuiFormRow2,
@@ -48144,8 +48136,8 @@ var TableSettingsModal = ({
48144
48136
  onResetToDefaults,
48145
48137
  onClose
48146
48138
  }) => {
48147
- const [columns, setColumns] = useState13(tableConfig.columns);
48148
- const [selectedPageSize, setSelectedPageSize] = useState13(
48139
+ const [columns, setColumns] = useState14(tableConfig.columns);
48140
+ const [selectedPageSize, setSelectedPageSize] = useState14(
48149
48141
  tableConfig.selectedPageSize
48150
48142
  );
48151
48143
  const options = pageSizeOptions.map((pageSizeOption) => ({
@@ -48504,7 +48496,7 @@ var WfoSortDirectionIcon = ({
48504
48496
  };
48505
48497
 
48506
48498
  // src/components/WfoTable/WfoBasicTable/WfoTableHeaderCell.tsx
48507
- import { useState as useState14 } from "react";
48499
+ import { useState as useState15 } from "react";
48508
48500
  import { useTranslations as useTranslations17 } from "next-intl";
48509
48501
  import {
48510
48502
  EuiFieldSearch as EuiFieldSearch2,
@@ -48606,7 +48598,7 @@ var WfoTableHeaderCell = ({
48606
48598
  const smallContextMenuPopoverId = useGeneratedHtmlId({
48607
48599
  prefix: "smallContextMenuPopover"
48608
48600
  });
48609
- const [isPopoverOpen, setPopover] = useState14(false);
48601
+ const [isPopoverOpen, setPopover] = useState15(false);
48610
48602
  const handleButtonClick = () => setPopover(!isPopoverOpen);
48611
48603
  const closePopover = () => setPopover(false);
48612
48604
  const handleChangeSortOrder = (updatedSortOrder) => {
@@ -48679,7 +48671,7 @@ var WfoStatusColorField = ({ color }) => {
48679
48671
  };
48680
48672
 
48681
48673
  // src/components/WfoTable/WfoTableWithFilter/WfoTableWithFilter.tsx
48682
- import { useEffect as useEffect7, useState as useState15 } from "react";
48674
+ import { useEffect as useEffect7, useState as useState16 } from "react";
48683
48675
  import { useTranslations as useTranslations18 } from "next-intl";
48684
48676
  import {
48685
48677
  EuiButton as EuiButton7,
@@ -48746,9 +48738,9 @@ var WfoTableWithFilter = ({
48746
48738
  var _a, _b;
48747
48739
  const { theme } = useOrchestratorTheme();
48748
48740
  const defaultPageSize = pagination.pageSize;
48749
- const [hiddenColumns, setHiddenColumns] = useState15(defaultHiddenColumns);
48750
- const [showSettingsModal, setShowSettingsModal] = useState15(false);
48751
- const [selectedDataForDetailModal, setSelectedDataForDetailModal] = useState15(void 0);
48741
+ const [hiddenColumns, setHiddenColumns] = useState16(defaultHiddenColumns);
48742
+ const [showSettingsModal, setShowSettingsModal] = useState16(false);
48743
+ const [selectedDataForDetailModal, setSelectedDataForDetailModal] = useState16(void 0);
48752
48744
  const t = useTranslations18("common");
48753
48745
  useEffect7(() => {
48754
48746
  if (defaultHiddenColumns) {
@@ -48919,7 +48911,7 @@ var WfoRelatedSubscriptions = ({
48919
48911
  subscriptionId
48920
48912
  }) => {
48921
48913
  var _a, _b, _c;
48922
- const [hideTerminatedSubscriptions, setHideTerminatedSubscriptions] = useState16(true);
48914
+ const [hideTerminatedSubscriptions, setHideTerminatedSubscriptions] = useState17(true);
48923
48915
  const t = useTranslations19("subscriptions.detail");
48924
48916
  const { theme } = useOrchestratorTheme();
48925
48917
  const terminatedSubscriptionsFilter = {
@@ -49054,16 +49046,16 @@ var WfoRelatedSubscriptions = ({
49054
49046
  import { EuiFlexGroup as EuiFlexGroup11, EuiFlexItem as EuiFlexItem10 } from "@elastic/eui";
49055
49047
  import { jsx as jsx89 } from "@emotion/react/jsx-runtime";
49056
49048
  var subscriptionDetailTabs = [
49057
- {
49058
- id: "general" /* GENERAL_TAB */,
49059
- translationKey: "general",
49060
- prepend: /* @__PURE__ */ jsx89(EuiFlexGroup11, { justifyContent: "center", children: /* @__PURE__ */ jsx89(EuiFlexItem10, { children: /* @__PURE__ */ jsx89(WfoCubeSolid, { width: "18", height: "18", color: "currentColor" }) }) })
49061
- },
49062
49049
  {
49063
49050
  id: "service-configuration" /* SERVICE_CONFIGURATION_TAB */,
49064
49051
  translationKey: "serviceConfiguration",
49065
49052
  prepend: /* @__PURE__ */ jsx89(EuiFlexGroup11, { justifyContent: "center", children: /* @__PURE__ */ jsx89(EuiFlexItem10, { children: /* @__PURE__ */ jsx89(WfoCogFill, { width: "16", height: "16", color: "currentColor" }) }) })
49066
49053
  },
49054
+ {
49055
+ id: "general" /* GENERAL_TAB */,
49056
+ translationKey: "general",
49057
+ prepend: /* @__PURE__ */ jsx89(EuiFlexGroup11, { justifyContent: "center", children: /* @__PURE__ */ jsx89(EuiFlexItem10, { children: /* @__PURE__ */ jsx89(WfoCubeSolid, { width: "18", height: "18", color: "currentColor" }) }) })
49058
+ },
49067
49059
  {
49068
49060
  id: "processes" /* PROCESSES_TAB */,
49069
49061
  translationKey: "workflows",
@@ -49398,17 +49390,17 @@ var WfoToastsList = () => {
49398
49390
  };
49399
49391
 
49400
49392
  // src/components/WfoForms/CreateForm.tsx
49401
- import { useCallback as useCallback4, useEffect as useEffect15, useState as useState25 } from "react";
49393
+ import { useCallback as useCallback4, useEffect as useEffect15, useState as useState26 } from "react";
49402
49394
 
49403
49395
  // src/components/WfoForms/UserInputFormWizard.tsx
49404
- import { useEffect as useEffect14, useState as useState24 } from "react";
49396
+ import { useEffect as useEffect14, useState as useState25 } from "react";
49405
49397
  import { useRouter as useRouter6 } from "next/router";
49406
49398
  import hash from "object-hash";
49407
49399
 
49408
49400
  // src/components/WfoForms/UserInputForm.tsx
49409
49401
  var import_cloneDeep2 = __toESM(require_cloneDeep(), 1);
49410
49402
  var import_get5 = __toESM(require_get(), 1);
49411
- import { useContext as useContext10, useState as useState23 } from "react";
49403
+ import { useContext as useContext10, useState as useState24 } from "react";
49412
49404
  import axios2 from "axios";
49413
49405
  import invariant2 from "invariant";
49414
49406
  import { useTranslations as useTranslations34 } from "next-intl";
@@ -50847,39 +50839,13 @@ function Timestamp(_a) {
50847
50839
  }
50848
50840
  var TimestampField = connectField19(Timestamp, { kind: "leaf" });
50849
50841
 
50850
- // src/components/WfoForms/formFields/OrganisationField.tsx
50851
- import { useTranslations as useTranslations25 } from "next-intl";
50852
- import { connectField as connectField20 } from "uniforms";
50853
- import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
50854
- function Organisation(_a) {
50855
- var props = __objRest(_a, []);
50856
- const t = useTranslations25("pydanticForms");
50857
- const { data: customers, isLoading } = useGetCustomersQuery();
50858
- const uuidCustomerNameMap = /* @__PURE__ */ new Map();
50859
- if (!isLoading && customers) {
50860
- customers == null ? void 0 : customers.map((customer) => {
50861
- uuidCustomerNameMap.set(customer.customerId, customer.fullname);
50862
- });
50863
- }
50864
- return /* @__PURE__ */ jsx115(
50865
- SelectField,
50866
- __spreadProps(__spreadValues({}, props), {
50867
- allowedValues: Array.from(uuidCustomerNameMap.keys()),
50868
- transform: (uuid) => uuidCustomerNameMap.get(uuid) || uuid,
50869
- disabled: isLoading,
50870
- placeholder: !isLoading ? t("widgets.organisation.placeholder") : t("widgets.organisation.loading")
50871
- })
50872
- );
50873
- }
50874
- var OrganisationField = connectField20(Organisation, { kind: "leaf" });
50875
-
50876
50842
  // src/components/WfoForms/formFields/ContactPersonNameField.tsx
50877
50843
  var import_lodash4 = __toESM(require_lodash(), 1);
50878
50844
  var import_get2 = __toESM(require_get(), 1);
50879
- import React23, { useEffect as useEffect9, useState as useState17 } from "react";
50880
- import { useTranslations as useTranslations26 } from "next-intl";
50845
+ import React24, { useEffect as useEffect9, useState as useState18 } from "react";
50846
+ import { useTranslations as useTranslations25 } from "next-intl";
50881
50847
  import {
50882
- connectField as connectField21,
50848
+ connectField as connectField20,
50883
50849
  filterDOMProps as filterDOMProps19,
50884
50850
  joinName as joinName6,
50885
50851
  useField as useField6,
@@ -50981,7 +50947,7 @@ var subscriptionHasTaggedProduct = (subscriptionDetail) => {
50981
50947
  };
50982
50948
 
50983
50949
  // src/components/WfoForms/formFields/ContactPersonAutocomplete.tsx
50984
- import { jsx as jsx116, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
50950
+ import { jsx as jsx115, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
50985
50951
  var ContactPersonAutocomplete = ({
50986
50952
  query,
50987
50953
  selectedItem,
@@ -51005,19 +50971,19 @@ var ContactPersonAutocomplete = ({
51005
50971
  const last = name.substring(indexOf + query2.length);
51006
50972
  return /* @__PURE__ */ jsxs70("span", { children: [
51007
50973
  first,
51008
- /* @__PURE__ */ jsx116("span", { className: "matched", children: middle }),
50974
+ /* @__PURE__ */ jsx115("span", { className: "matched", children: middle }),
51009
50975
  last
51010
50976
  ] });
51011
50977
  };
51012
- return isEmpty(suggestions) ? null : /* @__PURE__ */ jsx116(EuiFlexItem15, { css: contactPersonAutocompleteStyling, children: /* @__PURE__ */ jsx116("section", { className: `autocomplete`, children: /* @__PURE__ */ jsx116("table", { className: "result", children: /* @__PURE__ */ jsx116("tbody", { children: suggestions.map((item, index) => /* @__PURE__ */ jsxs70(
50978
+ return isEmpty(suggestions) ? null : /* @__PURE__ */ jsx115(EuiFlexItem15, { css: contactPersonAutocompleteStyling, children: /* @__PURE__ */ jsx115("section", { className: `autocomplete`, children: /* @__PURE__ */ jsx115("table", { className: "result", children: /* @__PURE__ */ jsx115("tbody", { children: suggestions.map((item, index) => /* @__PURE__ */ jsxs70(
51013
50979
  "tr",
51014
50980
  {
51015
50981
  className: selectedItem === index ? "active" : "",
51016
50982
  onClick: () => itemSelected(item, personIndex),
51017
50983
  ref: selectedItem === index ? selectedRowRef : null,
51018
50984
  children: [
51019
- /* @__PURE__ */ jsx116("td", { children: itemName(item, query) }),
51020
- /* @__PURE__ */ jsx116("td", { children: item.email || "" })
50985
+ /* @__PURE__ */ jsx115("td", { children: itemName(item, query) }),
50986
+ /* @__PURE__ */ jsx115("td", { children: item.email || "" })
51021
50987
  ]
51022
50988
  },
51023
50989
  index
@@ -51025,19 +50991,19 @@ var ContactPersonAutocomplete = ({
51025
50991
  };
51026
50992
 
51027
50993
  // src/components/WfoForms/formFields/ContactPersonNameField.tsx
51028
- import { Fragment as Fragment21, jsx as jsx117, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
50994
+ import { Fragment as Fragment21, jsx as jsx116, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
51029
50995
  function stop(e) {
51030
50996
  if (e !== void 0 && e !== null) {
51031
50997
  e.preventDefault();
51032
50998
  e.stopPropagation();
51033
50999
  }
51034
51000
  }
51035
- filterDOMProps19.register("organisationId", "organisationKey");
51001
+ filterDOMProps19.register("customerId", "customerKey");
51036
51002
  function ContactPersonName(_a) {
51037
51003
  var _b = _a, {
51038
51004
  disabled,
51039
51005
  id,
51040
- inputRef = React23.createRef(),
51006
+ inputRef = React24.createRef(),
51041
51007
  label,
51042
51008
  description,
51043
51009
  name,
@@ -51048,8 +51014,8 @@ function ContactPersonName(_a) {
51048
51014
  error,
51049
51015
  showInlineError,
51050
51016
  errorMessage,
51051
- organisationId,
51052
- organisationKey
51017
+ customerId,
51018
+ customerKey
51053
51019
  } = _b, props = __objRest(_b, [
51054
51020
  "disabled",
51055
51021
  "id",
@@ -51064,11 +51030,11 @@ function ContactPersonName(_a) {
51064
51030
  "error",
51065
51031
  "showInlineError",
51066
51032
  "errorMessage",
51067
- "organisationId",
51068
- "organisationKey"
51033
+ "customerId",
51034
+ "customerKey"
51069
51035
  ]);
51070
51036
  const axiosApiClient = useAxiosApiClient();
51071
- const t = useTranslations26("pydanticForms");
51037
+ const t = useTranslations25("pydanticForms");
51072
51038
  const { model, onChange: formOnChange, schema } = useForm5();
51073
51039
  const contactsPersonFieldNameArray = joinName6(null, name).slice(0, -1);
51074
51040
  const emailFieldName = joinName6(contactsPersonFieldNameArray, "email");
@@ -51078,20 +51044,17 @@ function ContactPersonName(_a) {
51078
51044
  const chosenPersons = (0, import_get2.default)(model, contactsFieldName, []);
51079
51045
  const useFieldName = contactsPersonFieldNameArray.length ? contactsFieldName : name;
51080
51046
  const contactsField = useField6(useFieldName, {}, { absoluteName: true })[0];
51081
- const organisationFieldName = organisationKey || contactsField.field.organisationKey || "organisation";
51082
- let organisationInitialValue;
51047
+ const customerIdFieldName = customerKey || contactsField.field.customerKey || "customer_id";
51048
+ let customerInitialValue;
51083
51049
  try {
51084
- organisationInitialValue = schema.getInitialValue(
51085
- organisationFieldName,
51086
- {}
51087
- );
51050
+ customerInitialValue = schema.getInitialValue(customerIdFieldName, {});
51088
51051
  } catch (e) {
51089
- organisationInitialValue = "";
51052
+ customerInitialValue = "";
51090
51053
  }
51091
- const organisationIdValue = organisationId || contactsField.field.organisationId || (0, import_get2.default)(model, organisationFieldName, organisationInitialValue);
51092
- const [displayAutocomplete, setDisplayAutocomplete] = useState17(false);
51093
- const [contactPersons, setContactPersons] = useState17([]);
51094
- const [selectedIndex, setSelectedIndex] = useState17(-1);
51054
+ const customerIdValue = customerId || contactsField.field.customerId || (0, import_get2.default)(model, customerIdFieldName, customerInitialValue);
51055
+ const [displayAutocomplete, setDisplayAutocomplete] = useState18(false);
51056
+ const [contactPersons, setContactPersons] = useState18([]);
51057
+ const [selectedIndex, setSelectedIndex] = useState18(-1);
51095
51058
  const suggestions = value ? contactPersons.filter(
51096
51059
  (item) => item.name.toLowerCase().indexOf(value.toLowerCase()) > -1
51097
51060
  ).filter(
@@ -51100,9 +51063,9 @@ function ContactPersonName(_a) {
51100
51063
  )
51101
51064
  ) : [];
51102
51065
  useEffect9(() => {
51103
- if (organisationIdValue) {
51066
+ if (customerIdValue) {
51104
51067
  axiosApiClient.axiosFetch(
51105
- `/surf/crm/contacts/${organisationIdValue}`,
51068
+ `/surf/crm/contacts/${customerIdValue}`,
51106
51069
  {},
51107
51070
  {},
51108
51071
  false
@@ -51114,7 +51077,7 @@ function ContactPersonName(_a) {
51114
51077
  setContactPersons([]);
51115
51078
  });
51116
51079
  }
51117
- }, [organisationIdValue, axiosApiClient]);
51080
+ }, [customerIdValue, axiosApiClient]);
51118
51081
  useEffect9(() => {
51119
51082
  var _a2;
51120
51083
  if (!(0, import_lodash4.isFunction)(inputRef)) {
@@ -51162,18 +51125,18 @@ function ContactPersonName(_a) {
51162
51125
  stop(e);
51163
51126
  setTimeout(() => setDisplayAutocomplete(false), 350);
51164
51127
  }
51165
- return /* @__PURE__ */ jsx117("section", __spreadProps(__spreadValues({}, filterDOMProps19(props)), { children: /* @__PURE__ */ jsx117(
51128
+ return /* @__PURE__ */ jsx116("section", __spreadProps(__spreadValues({}, filterDOMProps19(props)), { children: /* @__PURE__ */ jsx116(
51166
51129
  EuiFormRow12,
51167
51130
  {
51168
51131
  label,
51169
- labelAppend: /* @__PURE__ */ jsx117(EuiText21, { size: "m", children: description }),
51132
+ labelAppend: /* @__PURE__ */ jsx116(EuiText21, { size: "m", children: description }),
51170
51133
  error: showInlineError ? errorMessage : false,
51171
51134
  isInvalid: error,
51172
51135
  id,
51173
51136
  fullWidth: true,
51174
51137
  css: { marginBottom: 0 },
51175
51138
  children: /* @__PURE__ */ jsxs71(Fragment21, { children: [
51176
- /* @__PURE__ */ jsx117(
51139
+ /* @__PURE__ */ jsx116(
51177
51140
  EuiFieldText2,
51178
51141
  {
51179
51142
  disabled,
@@ -51191,7 +51154,7 @@ function ContactPersonName(_a) {
51191
51154
  }
51192
51155
  ),
51193
51156
  " ",
51194
- /* @__PURE__ */ jsx117("div", { className: "autocomplete-container", children: !!(displayAutocomplete && suggestions.length) && /* @__PURE__ */ jsx117(
51157
+ /* @__PURE__ */ jsx116("div", { className: "autocomplete-container", children: !!(displayAutocomplete && suggestions.length) && /* @__PURE__ */ jsx116(
51195
51158
  ContactPersonAutocomplete,
51196
51159
  {
51197
51160
  query: value != null ? value : "",
@@ -51205,16 +51168,16 @@ function ContactPersonName(_a) {
51205
51168
  }
51206
51169
  ) }));
51207
51170
  }
51208
- var ContactPersonNameField = connectField21(ContactPersonName, {
51171
+ var ContactPersonNameField = connectField20(ContactPersonName, {
51209
51172
  kind: "leaf"
51210
51173
  });
51211
51174
 
51212
51175
  // src/components/WfoForms/formFields/ImsNodeIdField.tsx
51213
51176
  var import_lodash5 = __toESM(require_lodash(), 1);
51214
- import { useEffect as useEffect10, useState as useState18 } from "react";
51215
- import { useTranslations as useTranslations27 } from "next-intl";
51216
- import { connectField as connectField22, filterDOMProps as filterDOMProps20 } from "uniforms";
51217
- import { jsx as jsx118 } from "@emotion/react/jsx-runtime";
51177
+ import { useEffect as useEffect10, useState as useState19 } from "react";
51178
+ import { useTranslations as useTranslations26 } from "next-intl";
51179
+ import { connectField as connectField21, filterDOMProps as filterDOMProps20 } from "uniforms";
51180
+ import { jsx as jsx117 } from "@emotion/react/jsx-runtime";
51218
51181
  filterDOMProps20.register("locationCode", "status", "unsubscribedOnly");
51219
51182
  function ImsNodeId(_a) {
51220
51183
  var _b = _a, {
@@ -51232,9 +51195,9 @@ function ImsNodeId(_a) {
51232
51195
  ]);
51233
51196
  var _a2;
51234
51197
  const axiosApiClient = useAxiosApiClient();
51235
- const t = useTranslations27("pydanticForms");
51236
- const [loading, setIsLoading] = useState18(true);
51237
- const [nodes, setNodes] = useState18([]);
51198
+ const t = useTranslations26("pydanticForms");
51199
+ const [loading, setIsLoading] = useState19(true);
51200
+ const [nodes, setNodes] = useState19([]);
51238
51201
  useEffect10(() => {
51239
51202
  if (locationCode && status) {
51240
51203
  const imsNodeEndPoint = `/surf/ims/nodes/${locationCode}/${status}?unsubscribed_only=${unsubscribedOnly}`;
@@ -51252,7 +51215,7 @@ function ImsNodeId(_a) {
51252
51215
  mapping[node.id.toString()] = node.name;
51253
51216
  return mapping;
51254
51217
  }, {})) != null ? _a2 : {};
51255
- return /* @__PURE__ */ jsx118(
51218
+ return /* @__PURE__ */ jsx117(
51256
51219
  SelectField,
51257
51220
  __spreadProps(__spreadValues({
51258
51221
  name: ""
@@ -51265,13 +51228,13 @@ function ImsNodeId(_a) {
51265
51228
  })
51266
51229
  );
51267
51230
  }
51268
- var ImsNodeIdField = connectField22(ImsNodeId, { kind: "leaf" });
51231
+ var ImsNodeIdField = connectField21(ImsNodeId, { kind: "leaf" });
51269
51232
 
51270
51233
  // src/components/WfoForms/formFields/ImsPortIdField.tsx
51271
- import { useCallback as useCallback3, useEffect as useEffect11, useState as useState19 } from "react";
51234
+ import { useCallback as useCallback3, useEffect as useEffect11, useState as useState20 } from "react";
51272
51235
  import ReactSelect2 from "react-select";
51273
- import { useTranslations as useTranslations28 } from "next-intl";
51274
- import { connectField as connectField23, filterDOMProps as filterDOMProps21 } from "uniforms";
51236
+ import { useTranslations as useTranslations27 } from "next-intl";
51237
+ import { connectField as connectField22, filterDOMProps as filterDOMProps21 } from "uniforms";
51275
51238
  import { EuiFlexItem as EuiFlexItem16, EuiFormRow as EuiFormRow13, EuiText as EuiText22 } from "@elastic/eui";
51276
51239
 
51277
51240
  // src/components/WfoForms/formFields/ImsPortIdFieldStyling.ts
@@ -51293,7 +51256,7 @@ var imsPortIdFieldStyling = css16`
51293
51256
  `;
51294
51257
 
51295
51258
  // src/components/WfoForms/formFields/ImsPortIdField.tsx
51296
- import { jsx as jsx119, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
51259
+ import { jsx as jsx118, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
51297
51260
  function nodeToOptionCorelink(node) {
51298
51261
  return {
51299
51262
  value: node.subscription_id,
@@ -51341,15 +51304,15 @@ function ImsPortId(_a) {
51341
51304
  "nodeStatuses"
51342
51305
  ]);
51343
51306
  const apiClient = useAxiosApiClient();
51344
- const t = useTranslations28("pydanticForms");
51307
+ const t = useTranslations27("pydanticForms");
51345
51308
  const { theme } = useOrchestratorTheme();
51346
51309
  const reactSelectInnerComponentStyles = getReactSelectInnerComponentStyles(theme);
51347
- const [nodes, setNodes] = useState19([]);
51348
- const [nodeId, setNodeId] = useState19(
51310
+ const [nodes, setNodes] = useState20([]);
51311
+ const [nodeId, setNodeId] = useState20(
51349
51312
  nodeSubscriptionId
51350
51313
  );
51351
- const [ports, setPorts] = useState19([]);
51352
- const [loading, setLoading] = useState19(true);
51314
+ const [ports, setPorts] = useState20([]);
51315
+ const [loading, setLoading] = useState20(true);
51353
51316
  const onChangeNodes = useCallback3(
51354
51317
  (option) => {
51355
51318
  const value2 = option == null ? void 0 : option.value;
@@ -51406,23 +51369,23 @@ function ImsPortId(_a) {
51406
51369
  label: `${aPort.port} (${aPort.status}) (${aPort.iface_type})`
51407
51370
  })).sort((x, y) => x.label.localeCompare(y.label));
51408
51371
  const port_value = port_options.find((option) => option.value === value);
51409
- return /* @__PURE__ */ jsx119(EuiFlexItem16, { css: imsPortIdFieldStyling, children: /* @__PURE__ */ jsx119("section", __spreadProps(__spreadValues({}, filterDOMProps21(props)), { children: /* @__PURE__ */ jsx119(
51372
+ return /* @__PURE__ */ jsx118(EuiFlexItem16, { css: imsPortIdFieldStyling, children: /* @__PURE__ */ jsx118("section", __spreadProps(__spreadValues({}, filterDOMProps21(props)), { children: /* @__PURE__ */ jsx118(
51410
51373
  EuiFormRow13,
51411
51374
  {
51412
51375
  label,
51413
- labelAppend: /* @__PURE__ */ jsx119(EuiText22, { size: "m", children: description }),
51376
+ labelAppend: /* @__PURE__ */ jsx118(EuiText22, { size: "m", children: description }),
51414
51377
  error: showInlineError ? errorMessage : false,
51415
51378
  isInvalid: error,
51416
51379
  id,
51417
51380
  fullWidth: true,
51418
51381
  children: /* @__PURE__ */ jsxs72("section", { className: "node-port", children: [
51419
- /* @__PURE__ */ jsx119("div", { className: "node-select", children: /* @__PURE__ */ jsx119(
51382
+ /* @__PURE__ */ jsx118("div", { className: "node-select", children: /* @__PURE__ */ jsx118(
51420
51383
  EuiFormRow13,
51421
51384
  {
51422
51385
  label: "Node",
51423
51386
  id: `${id}.node`,
51424
51387
  fullWidth: true,
51425
- children: /* @__PURE__ */ jsx119(
51388
+ children: /* @__PURE__ */ jsx118(
51426
51389
  ReactSelect2,
51427
51390
  {
51428
51391
  inputId: `${id}.node.search`,
@@ -51438,7 +51401,7 @@ function ImsPortId(_a) {
51438
51401
  )
51439
51402
  }
51440
51403
  ) }),
51441
- /* @__PURE__ */ jsx119("div", { className: "port-select", children: /* @__PURE__ */ jsx119(EuiFormRow13, { label: "Port", id, fullWidth: true, children: /* @__PURE__ */ jsx119(
51404
+ /* @__PURE__ */ jsx118("div", { className: "port-select", children: /* @__PURE__ */ jsx118(EuiFormRow13, { label: "Port", id, fullWidth: true, children: /* @__PURE__ */ jsx118(
51442
51405
  ReactSelect2,
51443
51406
  {
51444
51407
  inputId: `${id}.search`,
@@ -51458,18 +51421,18 @@ function ImsPortId(_a) {
51458
51421
  }
51459
51422
  ) })) });
51460
51423
  }
51461
- var ImsPortIdField = connectField23(ImsPortId, { kind: "leaf" });
51424
+ var ImsPortIdField = connectField22(ImsPortId, { kind: "leaf" });
51462
51425
 
51463
51426
  // src/components/WfoForms/formFields/LocationCodeField.tsx
51464
- import { useEffect as useEffect12, useState as useState20 } from "react";
51465
- import { useTranslations as useTranslations29 } from "next-intl";
51466
- import { connectField as connectField24, filterDOMProps as filterDOMProps22 } from "uniforms";
51467
- import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
51427
+ import { useEffect as useEffect12, useState as useState21 } from "react";
51428
+ import { useTranslations as useTranslations28 } from "next-intl";
51429
+ import { connectField as connectField23, filterDOMProps as filterDOMProps22 } from "uniforms";
51430
+ import { jsx as jsx119 } from "@emotion/react/jsx-runtime";
51468
51431
  filterDOMProps22.register("locationCodes");
51469
51432
  function LocationCode(_a) {
51470
51433
  var _b = _a, { locationCodes } = _b, props = __objRest(_b, ["locationCodes"]);
51471
- const t = useTranslations29("pydanticForms");
51472
- const [codes, setCodes] = useState20(locationCodes != null ? locationCodes : []);
51434
+ const t = useTranslations28("pydanticForms");
51435
+ const [codes, setCodes] = useState21(locationCodes != null ? locationCodes : []);
51473
51436
  const axiosApiClient = useAxiosApiClient();
51474
51437
  useEffect12(() => {
51475
51438
  axiosApiClient.axiosFetch("surf/crm/location_codes", {}, {}, false).then((result) => {
@@ -51483,7 +51446,7 @@ function LocationCode(_a) {
51483
51446
  setCodes([]);
51484
51447
  });
51485
51448
  }, [axiosApiClient]);
51486
- return /* @__PURE__ */ jsx120(
51449
+ return /* @__PURE__ */ jsx119(
51487
51450
  SelectField,
51488
51451
  __spreadProps(__spreadValues({}, props), {
51489
51452
  allowedValues: codes,
@@ -51491,13 +51454,13 @@ function LocationCode(_a) {
51491
51454
  })
51492
51455
  );
51493
51456
  }
51494
- var LocationCodeField = connectField24(LocationCode, { kind: "leaf" });
51457
+ var LocationCodeField = connectField23(LocationCode, { kind: "leaf" });
51495
51458
 
51496
51459
  // src/components/WfoForms/formFields/VlanField.tsx
51497
51460
  var import_get3 = __toESM(require_get(), 1);
51498
- import { useEffect as useEffect13, useState as useState21 } from "react";
51499
- import { useTranslations as useTranslations30 } from "next-intl";
51500
- import { connectField as connectField25, filterDOMProps as filterDOMProps23, joinName as joinName7, useForm as useForm6 } from "uniforms";
51461
+ import { useEffect as useEffect13, useState as useState22 } from "react";
51462
+ import { useTranslations as useTranslations29 } from "next-intl";
51463
+ import { connectField as connectField24, filterDOMProps as filterDOMProps23, joinName as joinName7, useForm as useForm6 } from "uniforms";
51501
51464
  import { EuiFieldText as EuiFieldText3, EuiFormRow as EuiFormRow14, EuiText as EuiText23 } from "@elastic/eui";
51502
51465
 
51503
51466
  // src/hooks/surf/useIsTaggedPort.ts
@@ -51514,7 +51477,7 @@ var useIsTaggedPort = (subscriptionId) => {
51514
51477
  };
51515
51478
 
51516
51479
  // src/components/WfoForms/formFields/VlanField.tsx
51517
- import { jsx as jsx121 } from "@emotion/react/jsx-runtime";
51480
+ import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
51518
51481
  function inValidVlan(vlan) {
51519
51482
  const value = vlan || "0";
51520
51483
  const stripped = value.toString().replace(/ /g, "");
@@ -51598,7 +51561,7 @@ function Vlan(_a) {
51598
51561
  "subscriptionFieldName",
51599
51562
  "nsiVlansOnly"
51600
51563
  ]);
51601
- const t = useTranslations30("pydanticForms");
51564
+ const t = useTranslations29("pydanticForms");
51602
51565
  const axiosApiClient = useAxiosApiClient();
51603
51566
  const { model, schema } = useForm6();
51604
51567
  const initialValue = schema.getInitialValue(name, {});
@@ -51622,9 +51585,9 @@ function Vlan(_a) {
51622
51585
  onChange("");
51623
51586
  }
51624
51587
  }, [onChange, subscriptionId, value, isFetched, portIsTagged]);
51625
- const [imsIsLoading, setImsIsLoading] = useState21(false);
51626
- const [usedVlansInIms, setUsedVlansInIms] = useState21([]);
51627
- const [missingInIms, setMissingInIms] = useState21(false);
51588
+ const [imsIsLoading, setImsIsLoading] = useState22(false);
51589
+ const [usedVlansInIms, setUsedVlansInIms] = useState22([]);
51590
+ const [missingInIms, setMissingInIms] = useState22(false);
51628
51591
  useEffect13(() => {
51629
51592
  if (subscriptionId) {
51630
51593
  setImsIsLoading(true);
@@ -51681,17 +51644,17 @@ function Vlan(_a) {
51681
51644
  message = t("widgets.vlan.taggedOnly");
51682
51645
  }
51683
51646
  }
51684
- return /* @__PURE__ */ jsx121("section", __spreadProps(__spreadValues({}, filterDOMProps23(props)), { children: /* @__PURE__ */ jsx121(
51647
+ return /* @__PURE__ */ jsx120("section", __spreadProps(__spreadValues({}, filterDOMProps23(props)), { children: /* @__PURE__ */ jsx120(
51685
51648
  EuiFormRow14,
51686
51649
  {
51687
51650
  label,
51688
- labelAppend: /* @__PURE__ */ jsx121(EuiText23, { size: "m", children: description }),
51651
+ labelAppend: /* @__PURE__ */ jsx120(EuiText23, { size: "m", children: description }),
51689
51652
  error: (error || errorMessageExtra) && showInlineError ? errorMessage || errorMessageExtra : false,
51690
51653
  isInvalid: error,
51691
51654
  helpText: message,
51692
51655
  id,
51693
51656
  fullWidth: true,
51694
- children: /* @__PURE__ */ jsx121(
51657
+ children: /* @__PURE__ */ jsx120(
51695
51658
  EuiFieldText3,
51696
51659
  {
51697
51660
  fullWidth: true,
@@ -51708,10 +51671,10 @@ function Vlan(_a) {
51708
51671
  }
51709
51672
  ) }));
51710
51673
  }
51711
- var VlanField = connectField25(Vlan, { kind: "leaf" });
51674
+ var VlanField = connectField24(Vlan, { kind: "leaf" });
51712
51675
 
51713
51676
  // src/components/WfoForms/formFields/NestField.tsx
51714
- import { connectField as connectField26, filterDOMProps as filterDOMProps24, joinName as joinName8 } from "uniforms";
51677
+ import { connectField as connectField25, filterDOMProps as filterDOMProps24, joinName as joinName8 } from "uniforms";
51715
51678
  import { AutoField as AutoField2 } from "uniforms-unstyled";
51716
51679
  import {
51717
51680
  EuiDescribedFormGroup,
@@ -51719,7 +51682,7 @@ import {
51719
51682
  EuiFlexItem as EuiFlexItem17,
51720
51683
  EuiText as EuiText24
51721
51684
  } from "@elastic/eui";
51722
- import { Fragment as Fragment22, jsx as jsx122, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
51685
+ import { Fragment as Fragment22, jsx as jsx121, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
51723
51686
  filterDOMProps24.register("properties", "wrap");
51724
51687
  function Nest(_a) {
51725
51688
  var _b = _a, {
@@ -51750,10 +51713,10 @@ function Nest(_a) {
51750
51713
  className: `${className} nest-field`,
51751
51714
  children: [
51752
51715
  label && /* @__PURE__ */ jsxs73(Fragment22, { children: [
51753
- /* @__PURE__ */ jsx122("label", { className: "euiFormLabel euiFormRow__label", children: label }),
51754
- /* @__PURE__ */ jsx122(EuiText24, { size: "m", children: description })
51716
+ /* @__PURE__ */ jsx121("label", { className: "euiFormLabel euiFormRow__label", children: label }),
51717
+ /* @__PURE__ */ jsx121(EuiText24, { size: "m", children: description })
51755
51718
  ] }),
51756
- children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx122(EuiFlexItem17, { children: /* @__PURE__ */ jsx122(
51719
+ children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx121(EuiFlexItem17, { children: /* @__PURE__ */ jsx121(
51757
51720
  AutoField2,
51758
51721
  __spreadProps(__spreadValues({
51759
51722
  name: field
@@ -51765,13 +51728,13 @@ function Nest(_a) {
51765
51728
  })
51766
51729
  );
51767
51730
  } else {
51768
- return /* @__PURE__ */ jsx122(
51731
+ return /* @__PURE__ */ jsx121(
51769
51732
  EuiDescribedFormGroup,
51770
51733
  __spreadProps(__spreadValues({}, filterDOMProps24(props)), {
51771
- title: /* @__PURE__ */ jsx122("span", { children: label }),
51734
+ title: /* @__PURE__ */ jsx121("span", { children: label }),
51772
51735
  description,
51773
51736
  className: `${className} nest-field`,
51774
- children: children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx122(
51737
+ children: children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx121(
51775
51738
  AutoField2,
51776
51739
  __spreadProps(__spreadValues({
51777
51740
  name: field
@@ -51784,14 +51747,14 @@ function Nest(_a) {
51784
51747
  );
51785
51748
  }
51786
51749
  }
51787
- var NestField = connectField26(Nest);
51750
+ var NestField = connectField25(Nest);
51788
51751
 
51789
51752
  // src/components/WfoForms/formFields/OptGroupField.tsx
51790
- import { useTranslations as useTranslations31 } from "next-intl";
51791
- import { connectField as connectField27, filterDOMProps as filterDOMProps25, useField as useField7 } from "uniforms";
51753
+ import { useTranslations as useTranslations30 } from "next-intl";
51754
+ import { connectField as connectField26, filterDOMProps as filterDOMProps25, useField as useField7 } from "uniforms";
51792
51755
  import { AutoField as AutoField3 } from "uniforms-unstyled";
51793
51756
  import { EuiDescribedFormGroup as EuiDescribedFormGroup2, EuiFlexItem as EuiFlexItem18, EuiFormRow as EuiFormRow15 } from "@elastic/eui";
51794
- import { Fragment as Fragment23, jsx as jsx123, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
51757
+ import { Fragment as Fragment23, jsx as jsx122, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
51795
51758
  filterDOMProps25.register("properties");
51796
51759
  function OptGroup(_a) {
51797
51760
  var _b = _a, {
@@ -51807,37 +51770,37 @@ function OptGroup(_a) {
51807
51770
  "readOnly",
51808
51771
  "className"
51809
51772
  ]);
51810
- const t = useTranslations31("pydanticForms.backendTranslations");
51773
+ const t = useTranslations30("pydanticForms.backendTranslations");
51811
51774
  const enabled = useField7("enabled", {})[0].value;
51812
- return /* @__PURE__ */ jsx123(
51775
+ return /* @__PURE__ */ jsx122(
51813
51776
  EuiDescribedFormGroup2,
51814
51777
  __spreadProps(__spreadValues({}, filterDOMProps25(props)), {
51815
- title: /* @__PURE__ */ jsx123("span", { children: t(`${name}.title`) }),
51778
+ title: /* @__PURE__ */ jsx122("span", { children: t(`${name}.title`) }),
51816
51779
  description: t(`${name}.description`),
51817
51780
  className: `${className} optgroup-field`,
51818
51781
  children: /* @__PURE__ */ jsxs74(Fragment23, { children: [
51819
- /* @__PURE__ */ jsx123(EuiFlexItem18, { children: /* @__PURE__ */ jsx123(
51782
+ /* @__PURE__ */ jsx122(EuiFlexItem18, { children: /* @__PURE__ */ jsx122(
51820
51783
  EuiFormRow15,
51821
51784
  {
51822
51785
  error: false,
51823
51786
  isInvalid: false,
51824
51787
  id: name,
51825
- children: /* @__PURE__ */ jsx123(BoolField, { name: "enabled", readOnly })
51788
+ children: /* @__PURE__ */ jsx122(BoolField, { name: "enabled", readOnly })
51826
51789
  }
51827
51790
  ) }),
51828
- enabled && (fields == null ? void 0 : fields.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx123(EuiFlexItem18, { children: /* @__PURE__ */ jsx123(AutoField3, __spreadValues({ name: field }, itemProps)) }, field)))
51791
+ enabled && (fields == null ? void 0 : fields.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx122(EuiFlexItem18, { children: /* @__PURE__ */ jsx122(AutoField3, __spreadValues({ name: field }, itemProps)) }, field)))
51829
51792
  ] })
51830
51793
  })
51831
51794
  );
51832
51795
  }
51833
- var OptGroupField = connectField27(OptGroup);
51796
+ var OptGroupField = connectField26(OptGroup);
51834
51797
 
51835
51798
  // src/components/WfoForms/formFields/SubscriptionField.tsx
51836
51799
  var import_get4 = __toESM(require_get(), 1);
51837
51800
  import ReactSelect3 from "react-select";
51838
- import { useTranslations as useTranslations32 } from "next-intl";
51801
+ import { useTranslations as useTranslations31 } from "next-intl";
51839
51802
  import {
51840
- connectField as connectField28,
51803
+ connectField as connectField27,
51841
51804
  filterDOMProps as filterDOMProps26,
51842
51805
  joinName as joinName9,
51843
51806
  useField as useField8,
@@ -51921,12 +51884,12 @@ var subscriptionFieldStyling = css17`
51921
51884
  `;
51922
51885
 
51923
51886
  // src/components/WfoForms/formFields/SubscriptionField.tsx
51924
- import { jsx as jsx124, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
51887
+ import { jsx as jsx123, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
51925
51888
  filterDOMProps26.register(
51926
51889
  "productIds",
51927
51890
  "excludedSubscriptionIds",
51928
- "organisationId",
51929
- "organisationKey",
51891
+ "customerId",
51892
+ "customerKey",
51930
51893
  "visiblePortMode",
51931
51894
  "bandwidth",
51932
51895
  "bandwidthKey",
@@ -51949,8 +51912,8 @@ function SubscriptionFieldDefinition(_a) {
51949
51912
  className = "",
51950
51913
  productIds = [],
51951
51914
  excludedSubscriptionIds = [],
51952
- organisationId,
51953
- organisationKey,
51915
+ customerId,
51916
+ customerKey,
51954
51917
  visiblePortMode = "all",
51955
51918
  bandwidth,
51956
51919
  bandwidthKey,
@@ -51971,15 +51934,15 @@ function SubscriptionFieldDefinition(_a) {
51971
51934
  "className",
51972
51935
  "productIds",
51973
51936
  "excludedSubscriptionIds",
51974
- "organisationId",
51975
- "organisationKey",
51937
+ "customerId",
51938
+ "customerKey",
51976
51939
  "visiblePortMode",
51977
51940
  "bandwidth",
51978
51941
  "bandwidthKey",
51979
51942
  "tags",
51980
51943
  "statuses"
51981
51944
  ]);
51982
- const t = useTranslations32("pydanticForms");
51945
+ const t = useTranslations31("pydanticForms");
51983
51946
  const { theme } = useOrchestratorTheme();
51984
51947
  const reactSelectInnerComponentStyles = getReactSelectInnerComponentStyles(theme);
51985
51948
  const { refetch, subscriptions, isFetching } = useGetSubscriptionDropdownOptions(tags, statuses);
@@ -51992,7 +51955,7 @@ function SubscriptionFieldDefinition(_a) {
51992
51955
  const { model, schema } = useForm7();
51993
51956
  const bandWithFromField = bandwidthKey ? (0, import_get4.default)(model, bandwidthKey) || schema.getInitialValue(bandwidthKey, {}) : void 0;
51994
51957
  const usedBandwidth = bandwidth || bandWithFromField;
51995
- const usedOrganisationId = organisationKey ? (0, import_get4.default)(model, organisationKey, "nonExistingOrgToFilterEverything") : organisationId;
51958
+ const usedCustomerId = customerKey ? (0, import_get4.default)(model, customerKey, "nonExistingOrgToFilterEverything") : customerId;
51996
51959
  const makeLabel = (subscription) => {
51997
51960
  var _a2;
51998
51961
  const description2 = subscription.description || t("widgets.subscription.missingDescription");
@@ -52053,7 +52016,7 @@ function SubscriptionFieldDefinition(_a) {
52053
52016
  return false;
52054
52017
  }
52055
52018
  }
52056
- if (usedOrganisationId && ((_a2 = subscription.customer) == null ? void 0 : _a2.customerId) !== usedOrganisationId) {
52019
+ if (usedCustomerId && ((_a2 = subscription.customer) == null ? void 0 : _a2.customerId) !== usedCustomerId) {
52057
52020
  return false;
52058
52021
  }
52059
52022
  if (parentName !== name) {
@@ -52081,27 +52044,27 @@ function SubscriptionFieldDefinition(_a) {
52081
52044
  (option) => option.value === value
52082
52045
  );
52083
52046
  const isDisabled = disabled || readOnly || isFetching;
52084
- return /* @__PURE__ */ jsx124(EuiFlexItem19, { css: subscriptionFieldStyling, grow: 1, children: /* @__PURE__ */ jsx124(
52047
+ return /* @__PURE__ */ jsx123(EuiFlexItem19, { css: subscriptionFieldStyling, grow: 1, children: /* @__PURE__ */ jsx123(
52085
52048
  "section",
52086
52049
  __spreadProps(__spreadValues({}, filterDOMProps26(props)), {
52087
52050
  className: `${className} subscription-field${disabled ? "-disabled" : ""}`,
52088
- children: /* @__PURE__ */ jsx124(
52051
+ children: /* @__PURE__ */ jsx123(
52089
52052
  EuiFormRow16,
52090
52053
  {
52091
52054
  label,
52092
- labelAppend: /* @__PURE__ */ jsx124(EuiText25, { size: "m", children: description }),
52055
+ labelAppend: /* @__PURE__ */ jsx123(EuiText25, { size: "m", children: description }),
52093
52056
  error: showInlineError ? errorMessage : false,
52094
52057
  isInvalid: error,
52095
52058
  id,
52096
52059
  fullWidth: true,
52097
52060
  children: /* @__PURE__ */ jsxs75("div", { children: [
52098
- !disabled && /* @__PURE__ */ jsx124(
52061
+ !disabled && /* @__PURE__ */ jsx123(
52099
52062
  EuiFlexGroup14,
52100
52063
  {
52101
52064
  alignItems: "center",
52102
52065
  gutterSize: "none",
52103
52066
  responsive: false,
52104
- children: /* @__PURE__ */ jsx124(
52067
+ children: /* @__PURE__ */ jsx123(
52105
52068
  EuiButtonIcon2,
52106
52069
  {
52107
52070
  className: "reload-subscriptions-icon-button",
@@ -52117,7 +52080,7 @@ function SubscriptionFieldDefinition(_a) {
52117
52080
  )
52118
52081
  }
52119
52082
  ),
52120
- /* @__PURE__ */ jsx124(
52083
+ /* @__PURE__ */ jsx123(
52121
52084
  ReactSelect3,
52122
52085
  {
52123
52086
  id,
@@ -52142,18 +52105,18 @@ function SubscriptionFieldDefinition(_a) {
52142
52105
  })
52143
52106
  ) });
52144
52107
  }
52145
- var SubscriptionField = connectField28(SubscriptionFieldDefinition, {
52108
+ var SubscriptionField = connectField27(SubscriptionFieldDefinition, {
52146
52109
  kind: "leaf"
52147
52110
  });
52148
52111
 
52149
52112
  // src/components/WfoForms/formFields/IpNetworkField.tsx
52150
- import { useState as useState22 } from "react";
52151
- import { useTranslations as useTranslations33 } from "next-intl";
52152
- import { connectField as connectField29, filterDOMProps as filterDOMProps27 } from "uniforms";
52113
+ import { useState as useState23 } from "react";
52114
+ import { useTranslations as useTranslations32 } from "next-intl";
52115
+ import { connectField as connectField28, filterDOMProps as filterDOMProps27 } from "uniforms";
52153
52116
  import { EuiCallOut as EuiCallOut2, EuiFormRow as EuiFormRow18, EuiText as EuiText27 } from "@elastic/eui";
52154
52117
 
52155
52118
  // src/components/WfoForms/formFields/IpPrefixTableField.tsx
52156
- import React28 from "react";
52119
+ import React29 from "react";
52157
52120
  import ReactSelect4 from "react-select";
52158
52121
  import {
52159
52122
  EuiBadge as EuiBadge3,
@@ -52287,8 +52250,8 @@ function prop(obj, key) {
52287
52250
  }
52288
52251
 
52289
52252
  // src/components/WfoForms/formFields/IpPrefixTableField.tsx
52290
- import { Fragment as Fragment24, jsx as jsx125, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
52291
- var IpPrefixTableField = class extends React28.PureComponent {
52253
+ import { Fragment as Fragment24, jsx as jsx124, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
52254
+ var IpPrefixTableField = class extends React29.PureComponent {
52292
52255
  constructor() {
52293
52256
  super(...arguments);
52294
52257
  this.state = {
@@ -52338,14 +52301,14 @@ var IpPrefixTableField = class extends React28.PureComponent {
52338
52301
  };
52339
52302
  this.sortColumnIcon = (name, sorted) => {
52340
52303
  if (sorted.name === name) {
52341
- return /* @__PURE__ */ jsx125(
52304
+ return /* @__PURE__ */ jsx124(
52342
52305
  "i",
52343
52306
  {
52344
52307
  className: sorted.descending ? "fas fa-sort-down" : "fas fa-sort-up"
52345
52308
  }
52346
52309
  );
52347
52310
  }
52348
- return /* @__PURE__ */ jsx125("i", {});
52311
+ return /* @__PURE__ */ jsx124("i", {});
52349
52312
  };
52350
52313
  this.filterState = (e) => {
52351
52314
  const target = e.target;
@@ -52455,12 +52418,12 @@ var IpPrefixTableField = class extends React28.PureComponent {
52455
52418
  field: "state",
52456
52419
  name: "Status",
52457
52420
  sortable: true,
52458
- render: (prefixState) => /* @__PURE__ */ jsx125(EuiBadge3, { color: prefixState === 3 ? "danger" : "success", children: ipamStates[prefixState] })
52421
+ render: (prefixState) => /* @__PURE__ */ jsx124(EuiBadge3, { color: prefixState === 3 ? "danger" : "success", children: ipamStates[prefixState] })
52459
52422
  },
52460
52423
  {
52461
52424
  field: "Action",
52462
52425
  name: "",
52463
- render: (id2, record) => record.state !== 3 ? /* @__PURE__ */ jsx125(
52426
+ render: (id2, record) => record.state !== 3 ? /* @__PURE__ */ jsx124(
52464
52427
  EuiButton8,
52465
52428
  {
52466
52429
  onClick: this.selectPrefix(record),
@@ -52484,7 +52447,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52484
52447
  pageSizeOptions: [25, 50, 100, 250]
52485
52448
  };
52486
52449
  if (selected_prefix_id && selectionDone) {
52487
- return /* @__PURE__ */ jsx125(
52450
+ return /* @__PURE__ */ jsx124(
52488
52451
  EuiButton8,
52489
52452
  {
52490
52453
  id: "undo-parent-prefix-choice-button",
@@ -52502,8 +52465,8 @@ var IpPrefixTableField = class extends React28.PureComponent {
52502
52465
  gutterSize: "s",
52503
52466
  style: { marginTop: "5px", marginBottom: "10px" },
52504
52467
  children: [
52505
- /* @__PURE__ */ jsx125(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx125(EuiText26, { children: /* @__PURE__ */ jsx125("h4", { children: "Manual override?" }) }) }),
52506
- /* @__PURE__ */ jsx125(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx125(
52468
+ /* @__PURE__ */ jsx124(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx124(EuiText26, { children: /* @__PURE__ */ jsx124("h4", { children: "Manual override?" }) }) }),
52469
+ /* @__PURE__ */ jsx124(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx124(
52507
52470
  EuiButtonIcon3,
52508
52471
  {
52509
52472
  iconType: manualOverrideVisible ? "arrowDown" : "arrowRight",
@@ -52513,19 +52476,19 @@ var IpPrefixTableField = class extends React28.PureComponent {
52513
52476
  })
52514
52477
  }
52515
52478
  ) }),
52516
- /* @__PURE__ */ jsx125(EuiFlexItem20, {})
52479
+ /* @__PURE__ */ jsx124(EuiFlexItem20, {})
52517
52480
  ]
52518
52481
  }
52519
52482
  ),
52520
52483
  manualOverrideVisible && /* @__PURE__ */ jsxs76(EuiPanel3, { style: { marginBottom: "20px" }, children: [
52521
- /* @__PURE__ */ jsx125(
52484
+ /* @__PURE__ */ jsx124(
52522
52485
  EuiFormRow17,
52523
52486
  {
52524
52487
  style: { marginTop: "15px" },
52525
52488
  label: "Manually enter a prefix",
52526
- labelAppend: /* @__PURE__ */ jsx125(EuiText26, { size: "m", children: "Generating free spaces for a big IPv6 root prefix could yield an enormous list. If you know the address of a free subnet you can provide it here. The prefix will be created in the biggest existing prefix above it in one of the root prefixes." }),
52489
+ labelAppend: /* @__PURE__ */ jsx124(EuiText26, { size: "m", children: "Generating free spaces for a big IPv6 root prefix could yield an enormous list. If you know the address of a free subnet you can provide it here. The prefix will be created in the biggest existing prefix above it in one of the root prefixes." }),
52527
52490
  helpText: "Example: 145.145.10/17",
52528
- children: /* @__PURE__ */ jsx125(
52491
+ children: /* @__PURE__ */ jsx124(
52529
52492
  EuiFieldText4,
52530
52493
  {
52531
52494
  value: manualOverrideValue,
@@ -52536,7 +52499,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52536
52499
  )
52537
52500
  }
52538
52501
  ),
52539
- /* @__PURE__ */ jsx125(
52502
+ /* @__PURE__ */ jsx124(
52540
52503
  EuiButton8,
52541
52504
  {
52542
52505
  onClick: () => this.props.onManualOverride(
@@ -52550,7 +52513,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52550
52513
  !manualOverrideVisible && /* @__PURE__ */ jsxs76(Fragment24, { children: [
52551
52514
  /* @__PURE__ */ jsxs76("div", { children: [
52552
52515
  /* @__PURE__ */ jsxs76(EuiFlexGroup15, { gutterSize: "s", children: [
52553
- /* @__PURE__ */ jsx125(
52516
+ /* @__PURE__ */ jsx124(
52554
52517
  EuiFlexItem20,
52555
52518
  {
52556
52519
  grow: false,
@@ -52558,7 +52521,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52558
52521
  children: "State:"
52559
52522
  }
52560
52523
  ),
52561
- /* @__PURE__ */ jsx125(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx125(
52524
+ /* @__PURE__ */ jsx124(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx124(
52562
52525
  EuiCheckbox3,
52563
52526
  {
52564
52527
  id: "checkbox-allocated",
@@ -52571,7 +52534,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52571
52534
  )
52572
52535
  }
52573
52536
  ) }),
52574
- /* @__PURE__ */ jsx125(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx125(
52537
+ /* @__PURE__ */ jsx124(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx124(
52575
52538
  EuiCheckbox3,
52576
52539
  {
52577
52540
  id: "checkbox-planned",
@@ -52584,7 +52547,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52584
52547
  )
52585
52548
  }
52586
52549
  ) }),
52587
- /* @__PURE__ */ jsx125(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx125(
52550
+ /* @__PURE__ */ jsx124(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx124(
52588
52551
  EuiCheckbox3,
52589
52552
  {
52590
52553
  id: "checkbox-free",
@@ -52598,7 +52561,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52598
52561
  }
52599
52562
  ) })
52600
52563
  ] }),
52601
- /* @__PURE__ */ jsx125(
52564
+ /* @__PURE__ */ jsx124(
52602
52565
  "div",
52603
52566
  {
52604
52567
  style: {
@@ -52608,7 +52571,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52608
52571
  children: "Root filter"
52609
52572
  }
52610
52573
  ),
52611
- /* @__PURE__ */ jsx125("span", { children: /* @__PURE__ */ jsx125(
52574
+ /* @__PURE__ */ jsx124("span", { children: /* @__PURE__ */ jsx124(
52612
52575
  ReactSelect4,
52613
52576
  {
52614
52577
  id: `${id}.root-filter`,
@@ -52620,7 +52583,7 @@ var IpPrefixTableField = class extends React28.PureComponent {
52620
52583
  }
52621
52584
  ) })
52622
52585
  ] }),
52623
- /* @__PURE__ */ jsx125(
52586
+ /* @__PURE__ */ jsx124(
52624
52587
  EuiInMemoryTable,
52625
52588
  {
52626
52589
  id: "test",
@@ -52642,7 +52605,7 @@ IpPrefixTableField.contextType = ApiClientContext;
52642
52605
 
52643
52606
  // src/components/WfoForms/formFields/SplitPrefix.tsx
52644
52607
  var import_lodash6 = __toESM(require_lodash(), 1);
52645
- import React29 from "react";
52608
+ import React30 from "react";
52646
52609
  import ReactSelect5 from "react-select";
52647
52610
  import { EuiFlexItem as EuiFlexItem21 } from "@elastic/eui";
52648
52611
 
@@ -52659,8 +52622,8 @@ var splitPrefixStyling = css19`
52659
52622
  `;
52660
52623
 
52661
52624
  // src/components/WfoForms/formFields/SplitPrefix.tsx
52662
- import { jsx as jsx126, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
52663
- var SplitPrefix = class extends React29.PureComponent {
52625
+ import { jsx as jsx125, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
52626
+ var SplitPrefix = class extends React30.PureComponent {
52664
52627
  constructor() {
52665
52628
  super(...arguments);
52666
52629
  this.state = {
@@ -52728,15 +52691,15 @@ var SplitPrefix = class extends React29.PureComponent {
52728
52691
  const prefix_value = prefix_options.find(
52729
52692
  (option) => option.value === selectedSubnet
52730
52693
  );
52731
- return /* @__PURE__ */ jsx126(EuiFlexItem21, { css: splitPrefixStyling, children: /* @__PURE__ */ jsxs77("section", { children: [
52694
+ return /* @__PURE__ */ jsx125(EuiFlexItem21, { css: splitPrefixStyling, children: /* @__PURE__ */ jsxs77("section", { children: [
52732
52695
  /* @__PURE__ */ jsxs77("h3", { children: [
52733
52696
  "Selected prefix: ",
52734
52697
  subnet,
52735
52698
  "/",
52736
52699
  prefixlen
52737
52700
  ] }),
52738
- /* @__PURE__ */ jsx126("div", { children: "Desired netmask of the new subnet:" }),
52739
- /* @__PURE__ */ jsx126(
52701
+ /* @__PURE__ */ jsx125("div", { children: "Desired netmask of the new subnet:" }),
52702
+ /* @__PURE__ */ jsx125(
52740
52703
  ReactSelect5,
52741
52704
  {
52742
52705
  id: `${id}.desired-netmask`,
@@ -52748,8 +52711,8 @@ var SplitPrefix = class extends React29.PureComponent {
52748
52711
  }
52749
52712
  ),
52750
52713
  this.state.subnets && /* @__PURE__ */ jsxs77("div", { children: [
52751
- /* @__PURE__ */ jsx126("div", { children: "Desired prefix:" }),
52752
- /* @__PURE__ */ jsx126(
52714
+ /* @__PURE__ */ jsx125("div", { children: "Desired prefix:" }),
52715
+ /* @__PURE__ */ jsx125(
52753
52716
  ReactSelect5,
52754
52717
  {
52755
52718
  id: `${id}.desired-prefix`,
@@ -52767,7 +52730,7 @@ var SplitPrefix = class extends React29.PureComponent {
52767
52730
  SplitPrefix.contextType = ApiClientContext;
52768
52731
 
52769
52732
  // src/components/WfoForms/formFields/IpNetworkField.tsx
52770
- import { jsx as jsx127, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
52733
+ import { jsx as jsx126, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
52771
52734
  function IpNetwork(_a) {
52772
52735
  var _b = _a, {
52773
52736
  id,
@@ -52795,25 +52758,25 @@ function IpNetwork(_a) {
52795
52758
  "prefixMin"
52796
52759
  ]);
52797
52760
  var _a2, _b2;
52798
- const t = useTranslations33("pydanticForms");
52799
- const [selectedPrefix, setSelectedPrefix] = useState22(
52761
+ const t = useTranslations32("pydanticForms");
52762
+ const [selectedPrefix, setSelectedPrefix] = useState23(
52800
52763
  void 0
52801
52764
  );
52802
- const [manualOverride, setManualOverride] = useState22(false);
52765
+ const [manualOverride, setManualOverride] = useState23(false);
52803
52766
  const usePrefix = (_a2 = selectedPrefix == null ? void 0 : selectedPrefix.prefix) != null ? _a2 : value;
52804
52767
  const [subnet, netmask] = (_b2 = usePrefix == null ? void 0 : usePrefix.split("/")) != null ? _b2 : ["", ""];
52805
52768
  const usedPrefixMin = prefixMin != null ? prefixMin : parseInt(netmask, 10) + ((selectedPrefix == null ? void 0 : selectedPrefix.state) === 0 ? 0 : 1);
52806
- return /* @__PURE__ */ jsx127("section", __spreadProps(__spreadValues({}, filterDOMProps27(props)), { children: /* @__PURE__ */ jsx127(
52769
+ return /* @__PURE__ */ jsx126("section", __spreadProps(__spreadValues({}, filterDOMProps27(props)), { children: /* @__PURE__ */ jsx126(
52807
52770
  EuiFormRow18,
52808
52771
  {
52809
52772
  label,
52810
- labelAppend: /* @__PURE__ */ jsx127(EuiText27, { size: "m", children: description }),
52773
+ labelAppend: /* @__PURE__ */ jsx126(EuiText27, { size: "m", children: description }),
52811
52774
  error: showInlineError ? errorMessage : false,
52812
52775
  isInvalid: error,
52813
52776
  id,
52814
52777
  fullWidth: true,
52815
- children: /* @__PURE__ */ jsx127("section", { className: "ipblock-selector", children: /* @__PURE__ */ jsxs78("div", { id, children: [
52816
- !prefixMin && /* @__PURE__ */ jsx127(
52778
+ children: /* @__PURE__ */ jsx126("section", { className: "ipblock-selector", children: /* @__PURE__ */ jsxs78("div", { id, children: [
52779
+ !prefixMin && /* @__PURE__ */ jsx126(
52817
52780
  IpPrefixTableField,
52818
52781
  {
52819
52782
  id,
@@ -52836,7 +52799,7 @@ function IpNetwork(_a) {
52836
52799
  selected_prefix_id: selectedPrefix == null ? void 0 : selectedPrefix.id
52837
52800
  }
52838
52801
  ),
52839
- usePrefix && !manualOverride && /* @__PURE__ */ jsx127(
52802
+ usePrefix && !manualOverride && /* @__PURE__ */ jsx126(
52840
52803
  SplitPrefix,
52841
52804
  {
52842
52805
  id,
@@ -52852,7 +52815,7 @@ function IpNetwork(_a) {
52852
52815
  selectedSubnet: usePrefix
52853
52816
  }
52854
52817
  ),
52855
- usePrefix && manualOverride && /* @__PURE__ */ jsx127(
52818
+ usePrefix && manualOverride && /* @__PURE__ */ jsx126(
52856
52819
  EuiCallOut2,
52857
52820
  {
52858
52821
  title: t(
@@ -52860,17 +52823,17 @@ function IpNetwork(_a) {
52860
52823
  ),
52861
52824
  color: "primary",
52862
52825
  iconType: "check",
52863
- children: /* @__PURE__ */ jsx127("p", { children: value })
52826
+ children: /* @__PURE__ */ jsx126("p", { children: value })
52864
52827
  }
52865
52828
  )
52866
52829
  ] }) })
52867
52830
  }
52868
52831
  ) }));
52869
52832
  }
52870
- var IpNetworkField = connectField29(IpNetwork, { kind: "leaf" });
52833
+ var IpNetworkField = connectField28(IpNetwork, { kind: "leaf" });
52871
52834
 
52872
52835
  // src/components/WfoForms/formFields/SummaryField.tsx
52873
- import { connectField as connectField30, filterDOMProps as filterDOMProps28 } from "uniforms";
52836
+ import { connectField as connectField29, filterDOMProps as filterDOMProps28 } from "uniforms";
52874
52837
  import { EuiFlexItem as EuiFlexItem22, EuiFormRow as EuiFormRow19, EuiText as EuiText28 } from "@elastic/eui";
52875
52838
 
52876
52839
  // src/components/WfoForms/formFields/SummaryFieldStyling.ts
@@ -52919,7 +52882,7 @@ var getStyles11 = (theme) => {
52919
52882
  };
52920
52883
 
52921
52884
  // src/components/WfoForms/formFields/SummaryField.tsx
52922
- import { jsx as jsx128, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
52885
+ import { jsx as jsx127, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
52923
52886
  function Summary(_a) {
52924
52887
  var _b = _a, {
52925
52888
  id,
@@ -52939,35 +52902,61 @@ function Summary(_a) {
52939
52902
  const { headers, labels, columns } = data;
52940
52903
  const extraColumnsData = columns.filter((_, index) => index !== 0);
52941
52904
  const rows = columns[0].map((row, index) => /* @__PURE__ */ jsxs79("tr", { children: [
52942
- labels && /* @__PURE__ */ jsx128("td", { className: `label`, children: labels[index] }),
52943
- /* @__PURE__ */ jsx128("td", { className: `value`, children: row.includes("<!doctype html>") ? /* @__PURE__ */ jsx128(
52905
+ labels && /* @__PURE__ */ jsx127("td", { className: `label`, children: labels[index] }),
52906
+ /* @__PURE__ */ jsx127("td", { className: `value`, children: typeof row === "string" && row.includes("<!doctype html>") ? /* @__PURE__ */ jsx127(
52944
52907
  "div",
52945
52908
  {
52946
52909
  className: "emailMessage",
52947
52910
  dangerouslySetInnerHTML: { __html: row }
52948
52911
  }
52949
52912
  ) : row }),
52950
- extraColumnsData && extraColumnsData.map((_, idx) => /* @__PURE__ */ jsx128("td", { className: `value`, children: extraColumnsData[idx][index] }, idx))
52913
+ extraColumnsData && extraColumnsData.map((_, idx) => /* @__PURE__ */ jsx127("td", { className: `value`, children: extraColumnsData[idx][index] }, idx))
52951
52914
  ] }, index));
52952
52915
  const tableHeader = !headers || headers.length === 0 ? null : /* @__PURE__ */ jsxs79("tr", { children: [
52953
- labels && /* @__PURE__ */ jsx128("th", {}),
52954
- headers.map((header, idx) => /* @__PURE__ */ jsx128("th", { children: header }, idx))
52916
+ labels && /* @__PURE__ */ jsx127("th", {}),
52917
+ headers.map((header, idx) => /* @__PURE__ */ jsx127("th", { children: header }, idx))
52955
52918
  ] });
52956
- return /* @__PURE__ */ jsx128(EuiFlexItem22, { css: summaryFieldStyle, children: /* @__PURE__ */ jsx128("section", __spreadProps(__spreadValues({}, filterDOMProps28(props)), { children: /* @__PURE__ */ jsx128(
52919
+ return /* @__PURE__ */ jsx127(EuiFlexItem22, { css: summaryFieldStyle, children: /* @__PURE__ */ jsx127("section", __spreadProps(__spreadValues({}, filterDOMProps28(props)), { children: /* @__PURE__ */ jsx127(
52957
52920
  EuiFormRow19,
52958
52921
  {
52959
52922
  label,
52960
- labelAppend: /* @__PURE__ */ jsx128(EuiText28, { size: "m", children: description }),
52923
+ labelAppend: /* @__PURE__ */ jsx127(EuiText28, { size: "m", children: description }),
52961
52924
  id,
52962
52925
  fullWidth: true,
52963
- children: /* @__PURE__ */ jsx128("section", { className: "table-summary", children: /* @__PURE__ */ jsxs79("table", { id: `${id}-table`, children: [
52964
- /* @__PURE__ */ jsx128("thead", { children: tableHeader }),
52965
- /* @__PURE__ */ jsx128("tbody", { children: rows })
52926
+ children: /* @__PURE__ */ jsx127("section", { className: "table-summary", children: /* @__PURE__ */ jsxs79("table", { id: `${id}-table`, children: [
52927
+ /* @__PURE__ */ jsx127("thead", { children: tableHeader }),
52928
+ /* @__PURE__ */ jsx127("tbody", { children: rows })
52966
52929
  ] }) })
52967
52930
  }
52968
52931
  ) })) });
52969
52932
  }
52970
- var SummaryField = connectField30(Summary, { kind: "leaf" });
52933
+ var SummaryField = connectField29(Summary, { kind: "leaf" });
52934
+
52935
+ // src/components/WfoForms/formFields/CustomerField.tsx
52936
+ import { useTranslations as useTranslations33 } from "next-intl";
52937
+ import { connectField as connectField30 } from "uniforms";
52938
+ import { jsx as jsx128 } from "@emotion/react/jsx-runtime";
52939
+ function Customer(_a) {
52940
+ var props = __objRest(_a, []);
52941
+ const t = useTranslations33("pydanticForms");
52942
+ const { data: customers, isLoading } = useGetCustomersQuery();
52943
+ const uuidCustomerNameMap = /* @__PURE__ */ new Map();
52944
+ if (!isLoading && customers) {
52945
+ customers == null ? void 0 : customers.map((customer) => {
52946
+ uuidCustomerNameMap.set(customer.customerId, customer.fullname);
52947
+ });
52948
+ }
52949
+ return /* @__PURE__ */ jsx128(
52950
+ SelectField,
52951
+ __spreadProps(__spreadValues({}, props), {
52952
+ allowedValues: Array.from(uuidCustomerNameMap.keys()),
52953
+ transform: (uuid) => uuidCustomerNameMap.get(uuid) || uuid,
52954
+ disabled: isLoading,
52955
+ placeholder: !isLoading ? t("widgets.customer.placeholder") : t("widgets.customer.loading")
52956
+ })
52957
+ );
52958
+ }
52959
+ var CustomerField = connectField30(Customer, { kind: "leaf" });
52971
52960
 
52972
52961
  // src/components/WfoForms/AutoFieldLoader.tsx
52973
52962
  function autoFieldFunction(props, uniforms) {
@@ -53006,8 +52995,8 @@ function autoFieldFunction(props, uniforms) {
53006
52995
  return SummaryField;
53007
52996
  case "subscription":
53008
52997
  return SubscriptionSummaryField;
53009
- case "organisationId":
53010
- return OrganisationField;
52998
+ case "customerId":
52999
+ return CustomerField;
53011
53000
  case "locationCode":
53012
53001
  return LocationCodeField;
53013
53002
  case "contactPersonName":
@@ -53350,12 +53339,12 @@ function fillPreselection(form, router) {
53350
53339
  if (form && form.properties) {
53351
53340
  Object.keys(queryParams).forEach((param) => {
53352
53341
  if (form && form.properties && form.properties[param]) {
53353
- const organisationInput = form.properties[param];
53354
- if (!organisationInput.uniforms) {
53355
- organisationInput.uniforms = {};
53342
+ const customerInput = form.properties[param];
53343
+ if (!customerInput.uniforms) {
53344
+ customerInput.uniforms = {};
53356
53345
  }
53357
- organisationInput.uniforms.disabled = true;
53358
- organisationInput.default = queryParams[param];
53346
+ customerInput.uniforms.disabled = true;
53347
+ customerInput.default = queryParams[param];
53359
53348
  }
53360
53349
  });
53361
53350
  if (queryParams.prefix && queryParams.prefixlen) {
@@ -53392,9 +53381,9 @@ function UserInputForm({
53392
53381
  const t = useTranslations34("pydanticForms.userInputForm");
53393
53382
  const { theme } = useOrchestratorTheme();
53394
53383
  const { showConfirmDialog } = useContext10(ConfirmationDialogContext);
53395
- const [processing, setProcessing] = useState23(false);
53396
- const [nrOfValidationErrors, setNrOfValidationErrors] = useState23(0);
53397
- const [rootErrors, setRootErrors] = useState23([]);
53384
+ const [processing, setProcessing] = useState24(false);
53385
+ const [nrOfValidationErrors, setNrOfValidationErrors] = useState24(0);
53386
+ const [rootErrors, setRootErrors] = useState24([]);
53398
53387
  const openLeavePageDialog = (leaveAction, leaveQuestion) => {
53399
53388
  return () => showConfirmDialog({
53400
53389
  question: leaveQuestion || "",
@@ -53592,10 +53581,10 @@ function UserInputFormWizard({
53592
53581
  }) {
53593
53582
  const router = useRouter6();
53594
53583
  const apiClient = useAxiosApiClient();
53595
- const [forms, setForms] = useState24([
53584
+ const [forms, setForms] = useState25([
53596
53585
  { form: stepUserInput, hasNext }
53597
53586
  ]);
53598
- const [userInputs, setUserInputs] = useState24([]);
53587
+ const [userInputs, setUserInputs] = useState25([]);
53599
53588
  useEffect14(() => {
53600
53589
  setForms([{ form: stepUserInput, hasNext }]);
53601
53590
  }, [hasNext, stepUserInput]);
@@ -53652,7 +53641,7 @@ var UserInputFormWizard_default = UserInputFormWizard;
53652
53641
  import { jsx as jsx131 } from "@emotion/react/jsx-runtime";
53653
53642
  function CreateForm(props) {
53654
53643
  const { preselectedInput, formKey, handleSubmit } = props;
53655
- const [form, setForm] = useState25({});
53644
+ const [form, setForm] = useState26({});
53656
53645
  const { stepUserInput, hasNext } = form;
53657
53646
  const apiClient = useAxiosApiClient();
53658
53647
  const submit = useCallback4(
@@ -53751,15 +53740,15 @@ var WfoAuth = ({ children }) => {
53751
53740
  };
53752
53741
 
53753
53742
  // src/components/WfoDropdownButton/WfoDropdownButton.tsx
53754
- import { useState as useState26 } from "react";
53743
+ import { useState as useState27 } from "react";
53755
53744
  import { EuiButtonGroup, EuiPopover as EuiPopover4 } from "@elastic/eui";
53756
53745
  import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
53757
53746
  var WfoDropdownButton = ({
53758
53747
  label,
53759
53748
  children
53760
53749
  }) => {
53761
- const [isHovered, setIsHovered] = useState26(false);
53762
- const [isPopoverOpen, setPopoverOpen] = useState26(false);
53750
+ const [isHovered, setIsHovered] = useState27(false);
53751
+ const [isPopoverOpen, setPopoverOpen] = useState27(false);
53763
53752
  const buttonOptions = [
53764
53753
  {
53765
53754
  id: "id_1",
@@ -53815,7 +53804,7 @@ import { useTranslations as useTranslations52 } from "next-intl";
53815
53804
  import Link7 from "next/link";
53816
53805
 
53817
53806
  // src/pages/metadata/WfoProductBlocksPage.tsx
53818
- import { useEffect as useEffect16, useState as useState27 } from "react";
53807
+ import { useEffect as useEffect16, useState as useState28 } from "react";
53819
53808
  import { useTranslations as useTranslations37 } from "next-intl";
53820
53809
  import { EuiBadgeGroup as EuiBadgeGroup2 } from "@elastic/eui";
53821
53810
 
@@ -53963,7 +53952,7 @@ var WfoProductBlocksPage = () => {
53963
53952
  const t = useTranslations37("metadata.productBlocks");
53964
53953
  const tError = useTranslations37("errors");
53965
53954
  const { showToastMessage } = useShowToastMessage();
53966
- const [tableDefaults, setTableDefaults] = useState27();
53955
+ const [tableDefaults, setTableDefaults] = useState28();
53967
53956
  const getStoredTableConfig = useStoredTableConfig(
53968
53957
  METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY
53969
53958
  );
@@ -54129,7 +54118,7 @@ var WfoProductBlocksPage = () => {
54129
54118
  };
54130
54119
 
54131
54120
  // src/pages/metadata/WfoResourceTypesPage.tsx
54132
- import { useEffect as useEffect17, useState as useState28 } from "react";
54121
+ import { useEffect as useEffect17, useState as useState29 } from "react";
54133
54122
  import { useTranslations as useTranslations38 } from "next-intl";
54134
54123
  import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
54135
54124
  import { Fragment as Fragment28, jsx as jsx138 } from "@emotion/react/jsx-runtime";
@@ -54142,7 +54131,7 @@ var WfoResourceTypesPage = () => {
54142
54131
  const t = useTranslations38("metadata.resourceTypes");
54143
54132
  const tError = useTranslations38("errors");
54144
54133
  const { showToastMessage } = useShowToastMessage();
54145
- const [tableDefaults, setTableDefaults] = useState28();
54134
+ const [tableDefaults, setTableDefaults] = useState29();
54146
54135
  const getStoredTableConfig = useStoredTableConfig(
54147
54136
  METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY
54148
54137
  );
@@ -54270,7 +54259,7 @@ var WfoResourceTypesPage = () => {
54270
54259
  };
54271
54260
 
54272
54261
  // src/pages/metadata/WfoProductsPage.tsx
54273
- import { useEffect as useEffect18, useState as useState29 } from "react";
54262
+ import { useEffect as useEffect18, useState as useState30 } from "react";
54274
54263
  import { useTranslations as useTranslations39 } from "next-intl";
54275
54264
  import { Fragment as Fragment29, jsx as jsx139 } from "@emotion/react/jsx-runtime";
54276
54265
  var PRODUCT_FIELD_PRODUCT_ID = "productId";
@@ -54287,7 +54276,7 @@ var WfoProductsPage = () => {
54287
54276
  const t = useTranslations39("metadata.products");
54288
54277
  const tError = useTranslations39("errors");
54289
54278
  const { showToastMessage } = useShowToastMessage();
54290
- const [tableDefaults, setTableDefaults] = useState29();
54279
+ const [tableDefaults, setTableDefaults] = useState30();
54291
54280
  const getStoredTableConfig = useStoredTableConfig(
54292
54281
  METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY
54293
54282
  );
@@ -54442,7 +54431,7 @@ var WfoProductsPage = () => {
54442
54431
  };
54443
54432
 
54444
54433
  // src/pages/metadata/WfoWorkflowsPage.tsx
54445
- import { useEffect as useEffect19, useState as useState30 } from "react";
54434
+ import { useEffect as useEffect19, useState as useState31 } from "react";
54446
54435
  import { useTranslations as useTranslations40 } from "next-intl";
54447
54436
  import { EuiBadgeGroup as EuiBadgeGroup4 } from "@elastic/eui";
54448
54437
 
@@ -54518,7 +54507,7 @@ var WfoWorkflowsPage = () => {
54518
54507
  const t = useTranslations40("metadata.workflows");
54519
54508
  const tError = useTranslations40("errors");
54520
54509
  const { showToastMessage } = useShowToastMessage();
54521
- const [tableDefaults, setTableDefaults] = useState30();
54510
+ const [tableDefaults, setTableDefaults] = useState31();
54522
54511
  const getStoredTableConfig = useStoredTableConfig(
54523
54512
  METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY
54524
54513
  );
@@ -54699,10 +54688,10 @@ var WfoProcessListSubscriptionsCell = ({
54699
54688
  };
54700
54689
 
54701
54690
  // src/pages/processes/WfoProcessDetailPage.tsx
54702
- import { useEffect as useEffect22, useRef as useRef7, useState as useState35 } from "react";
54691
+ import { useEffect as useEffect22, useRef as useRef7, useState as useState36 } from "react";
54703
54692
 
54704
54693
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
54705
- import React41 from "react";
54694
+ import React42 from "react";
54706
54695
  import { useTranslations as useTranslations41 } from "next-intl";
54707
54696
  import { EuiFlexGroup as EuiFlexGroup18, EuiFlexItem as EuiFlexItem25, EuiPanel as EuiPanel4, EuiText as EuiText29 } from "@elastic/eui";
54708
54697
 
@@ -54916,7 +54905,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
54916
54905
  };
54917
54906
 
54918
54907
  // src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
54919
- import { useState as useState31 } from "react";
54908
+ import { useState as useState32 } from "react";
54920
54909
  import { EuiFlexItem as EuiFlexItem24 } from "@elastic/eui";
54921
54910
  import { jsx as jsx143 } from "@emotion/react/jsx-runtime";
54922
54911
  var WfoStepForm = ({
@@ -54924,7 +54913,7 @@ var WfoStepForm = ({
54924
54913
  isTask,
54925
54914
  processId
54926
54915
  }) => {
54927
- const [isProcessing, setIsProcessing] = useState31(false);
54916
+ const [isProcessing, setIsProcessing] = useState32(false);
54928
54917
  const { theme } = useOrchestratorTheme();
54929
54918
  const apiClient = useAxiosApiClient();
54930
54919
  const submitForm = (processInput) => {
@@ -54949,7 +54938,7 @@ var WfoStepForm = ({
54949
54938
 
54950
54939
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
54951
54940
  import { Fragment as Fragment32, jsx as jsx144, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
54952
- var WfoStep = React41.forwardRef(
54941
+ var WfoStep = React42.forwardRef(
54953
54942
  ({
54954
54943
  stepListItem,
54955
54944
  onToggleStepDetail,
@@ -55079,9 +55068,9 @@ var WfoStep = React41.forwardRef(
55079
55068
  WfoStep.displayName = "WfoStep";
55080
55069
 
55081
55070
  // src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
55082
- import React42, { useImperativeHandle, useRef as useRef6 } from "react";
55071
+ import React43, { useImperativeHandle, useRef as useRef6 } from "react";
55083
55072
  import { Fragment as Fragment33, jsx as jsx145, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
55084
- var WfoStepList = React42.forwardRef(
55073
+ var WfoStepList = React43.forwardRef(
55085
55074
  ({
55086
55075
  stepListItems,
55087
55076
  showHiddenKeys,
@@ -55151,12 +55140,12 @@ var WfoStepList = React42.forwardRef(
55151
55140
  WfoStepList.displayName = "WfoStepList";
55152
55141
 
55153
55142
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
55154
- import React45, { useEffect as useEffect21, useState as useState34 } from "react";
55143
+ import React46, { useEffect as useEffect21, useState as useState35 } from "react";
55155
55144
  import { useTranslations as useTranslations44 } from "next-intl";
55156
55145
 
55157
55146
  // src/components/WfoDiff/WfoDiff.tsx
55158
55147
  var refractor = __toESM(require_refractor(), 1);
55159
- import { useCallback as useCallback5, useEffect as useEffect20, useMemo as useMemo4, useState as useState32 } from "react";
55148
+ import { useCallback as useCallback5, useEffect as useEffect20, useMemo as useMemo4, useState as useState33 } from "react";
55160
55149
  import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
55161
55150
  import "react-diff-view/style/index.css";
55162
55151
  import { useTranslations as useTranslations42 } from "next-intl";
@@ -55175,9 +55164,9 @@ var SMALL_CONTEXT = 3;
55175
55164
  var FULL_CONTEXT = 1e6;
55176
55165
  var WfoDiff = ({ oldText, newText, syntax }) => {
55177
55166
  const t = useTranslations42("processes.delta");
55178
- const [showSplit, setShowSplit] = useState32(true);
55179
- const [showFull, setShowFull] = useState32(false);
55180
- const [{ type, hunks }, setDiff] = useState32({
55167
+ const [showSplit, setShowSplit] = useState33(true);
55168
+ const [showFull, setShowFull] = useState33(false);
55169
+ const [{ type, hunks }, setDiff] = useState33({
55181
55170
  type: "modify",
55182
55171
  hunks: []
55183
55172
  });
@@ -55242,7 +55231,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
55242
55231
  var WfoDiff_default = WfoDiff;
55243
55232
 
55244
55233
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
55245
- import { useState as useState33 } from "react";
55234
+ import { useState as useState34 } from "react";
55246
55235
  import { useTranslations as useTranslations43 } from "next-intl";
55247
55236
  import {
55248
55237
  EuiButton as EuiButton10,
@@ -55301,7 +55290,7 @@ var WfoStepListHeader = ({
55301
55290
  stepListContentBoldTextStyle,
55302
55291
  stepListOptionsContainerStyle
55303
55292
  } = getStyles12(theme);
55304
- const [isViewOptionOpen, setIsViewOptionOpen] = useState33(false);
55293
+ const [isViewOptionOpen, setIsViewOptionOpen] = useState34(false);
55305
55294
  const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
55306
55295
  const closeViewOption = () => setIsViewOptionOpen(false);
55307
55296
  const viewOptionButton = /* @__PURE__ */ jsx148(
@@ -55407,7 +55396,7 @@ var WfoProcessSubscriptionDelta = ({
55407
55396
  }
55408
55397
  );
55409
55398
  };
55410
- var WfoWorkflowStepList = React45.forwardRef(
55399
+ var WfoWorkflowStepList = React46.forwardRef(
55411
55400
  ({
55412
55401
  steps = [],
55413
55402
  startedAt,
@@ -55415,15 +55404,15 @@ var WfoWorkflowStepList = React45.forwardRef(
55415
55404
  isTask,
55416
55405
  userInputForm
55417
55406
  }, reference) => {
55418
- const [showHiddenKeys, setShowHiddenKeys] = useState34(false);
55419
- const [showRaw, setShowRaw] = useState34(false);
55420
- const [showDelta, setShowDelta] = useState34(false);
55407
+ const [showHiddenKeys, setShowHiddenKeys] = useState35(false);
55408
+ const [showRaw, setShowRaw] = useState35(false);
55409
+ const [showDelta, setShowDelta] = useState35(false);
55421
55410
  const t = useTranslations44("processes.steps");
55422
55411
  const initialStepListItems = steps.map((step) => ({
55423
55412
  step,
55424
55413
  isExpanded: false
55425
55414
  }));
55426
- const [stepListItems, setStepListItems] = useState34(initialStepListItems);
55415
+ const [stepListItems, setStepListItems] = useState35(initialStepListItems);
55427
55416
  const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
55428
55417
  var _a;
55429
55418
  const reversedSteps = [...updatedSteps].reverse();
@@ -55874,7 +55863,7 @@ var WfoProcessDetailPage = ({
55874
55863
  }) => {
55875
55864
  var _a, _b;
55876
55865
  const stepListRef = useRef7(null);
55877
- const [fetchInterval, setFetchInterval] = useState35();
55866
+ const [fetchInterval, setFetchInterval] = useState36();
55878
55867
  const { data, isLoading, isError: isError3 } = useQueryWithGraphql(
55879
55868
  GET_PROCESS_DETAIL_GRAPHQL_QUERY,
55880
55869
  {
@@ -55935,7 +55924,7 @@ var WfoProcessDetailPage = ({
55935
55924
  };
55936
55925
 
55937
55926
  // src/pages/processes/WfoStartProcessPage.tsx
55938
- import { useCallback as useCallback6, useEffect as useEffect23, useMemo as useMemo5, useState as useState36 } from "react";
55927
+ import { useCallback as useCallback6, useEffect as useEffect23, useMemo as useMemo5, useState as useState37 } from "react";
55939
55928
  import { useTranslations as useTranslations46 } from "next-intl";
55940
55929
  import { useRouter as useRouter10 } from "next/router";
55941
55930
  import {
@@ -55970,9 +55959,9 @@ var WfoStartProcessPage = ({
55970
55959
  const apiClient = useAxiosApiClient();
55971
55960
  const t = useTranslations46("processes.steps");
55972
55961
  const router = useRouter10();
55973
- const [hasError, setHasError] = useState36(false);
55962
+ const [hasError, setHasError] = useState37(false);
55974
55963
  const { theme } = useOrchestratorTheme();
55975
- const [form, setForm] = useState36({});
55964
+ const [form, setForm] = useState37({});
55976
55965
  const { productId, subscriptionId } = router.query;
55977
55966
  const startProcessPayload = useMemo5(
55978
55967
  () => getInitialProcessPayload({ productId, subscriptionId }),
@@ -56636,7 +56625,7 @@ var WfoSubscriptionDetailPage = () => {
56636
56625
  };
56637
56626
 
56638
56627
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
56639
- import { useEffect as useEffect24, useState as useState37 } from "react";
56628
+ import { useEffect as useEffect24, useState as useState38 } from "react";
56640
56629
  import { useTranslations as useTranslations49 } from "next-intl";
56641
56630
  import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
56642
56631
  import { EuiPageHeader as EuiPageHeader4, EuiSpacer as EuiSpacer19 } from "@elastic/eui";
@@ -56875,7 +56864,7 @@ import { Fragment as Fragment37, jsx as jsx161, jsxs as jsxs96 } from "@emotion/
56875
56864
  var WfoSubscriptionsListPage = () => {
56876
56865
  var _a;
56877
56866
  const t = useTranslations49("subscriptions.detail");
56878
- const [tableDefaults, setTableDefaults] = useState37();
56867
+ const [tableDefaults, setTableDefaults] = useState38();
56879
56868
  const getStoredTableConfig = useStoredTableConfig(
56880
56869
  SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
56881
56870
  );
@@ -56938,23 +56927,18 @@ var WfoSubscriptionsListPage = () => {
56938
56927
  };
56939
56928
 
56940
56929
  // src/pages/tasks/WfoTasksListPage.tsx
56941
- import { useContext as useContext13, useEffect as useEffect25, useState as useState38 } from "react";
56930
+ import { useContext as useContext13, useEffect as useEffect25, useState as useState39 } from "react";
56942
56931
  import { useTranslations as useTranslations50 } from "next-intl";
56943
56932
  import Link6 from "next/link";
56944
56933
  import { useRouter as useRouter14 } from "next/router";
56945
56934
  import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
56946
- import { EuiButton as EuiButton13, EuiSpacer as EuiSpacer20 } from "@elastic/eui";
56947
-
56948
- // src/components/WfoPageHeader/WfoPageHeader.tsx
56949
- import { EuiFlexGroup as EuiFlexGroup25, EuiFlexItem as EuiFlexItem34, EuiPageHeader as EuiPageHeader5 } from "@elastic/eui";
56950
- import { jsx as jsx162, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
56951
- var WfoPageHeader2 = ({
56952
- pageTitle,
56953
- children
56954
- }) => /* @__PURE__ */ jsxs97(EuiFlexGroup25, { children: [
56955
- /* @__PURE__ */ jsx162(EuiFlexItem34, { children: /* @__PURE__ */ jsx162(EuiPageHeader5, { pageTitle }) }),
56956
- children && /* @__PURE__ */ jsx162(EuiFlexItem34, { children: /* @__PURE__ */ jsx162(EuiFlexGroup25, { justifyContent: "flexEnd", children }) })
56957
- ] });
56935
+ import {
56936
+ EuiButton as EuiButton13,
56937
+ EuiFlexGroup as EuiFlexGroup25,
56938
+ EuiFlexItem as EuiFlexItem34,
56939
+ EuiPageHeader as EuiPageHeader5,
56940
+ EuiSpacer as EuiSpacer20
56941
+ } from "@elastic/eui";
56958
56942
 
56959
56943
  // src/pages/tasks/tabConfig.ts
56960
56944
  var WfoTasksListTabType = /* @__PURE__ */ ((WfoTasksListTabType2) => {
@@ -57019,7 +57003,7 @@ var getTasksListTabTypeFromString = (tabId) => {
57019
57003
  };
57020
57004
 
57021
57005
  // src/pages/tasks/WfoTasksListPage.tsx
57022
- import { Fragment as Fragment38, jsx as jsx163, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
57006
+ import { Fragment as Fragment38, jsx as jsx162, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
57023
57007
  var WfoTasksListPage = () => {
57024
57008
  var _a;
57025
57009
  const router = useRouter14();
@@ -57028,7 +57012,7 @@ var WfoTasksListPage = () => {
57028
57012
  "activeTab",
57029
57013
  withDefault4(StringParam4, "ACTIVE" /* ACTIVE */)
57030
57014
  );
57031
- const [tableDefaults, setTableDefaults] = useState38();
57015
+ const [tableDefaults, setTableDefaults] = useState39();
57032
57016
  const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
57033
57017
  const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
57034
57018
  const getStoredTableConfig = useStoredTableConfig(localStorageKey);
@@ -57076,7 +57060,7 @@ var WfoTasksListPage = () => {
57076
57060
  workflowName: {
57077
57061
  field: "workflowName",
57078
57062
  name: t("taskName"),
57079
- render: (value, { processId }) => /* @__PURE__ */ jsx163(Link6, { href: `${PATH_TASKS}/${processId}`, children: value })
57063
+ render: (value, { processId }) => /* @__PURE__ */ jsx162(Link6, { href: `${PATH_TASKS}/${processId}`, children: value })
57080
57064
  },
57081
57065
  lastStep: defaultTableColumns.lastStep,
57082
57066
  lastStatus: defaultTableColumns.lastStatus,
@@ -57092,20 +57076,24 @@ var WfoTasksListPage = () => {
57092
57076
  startedAt: defaultTableColumns.startedAt,
57093
57077
  lastModifiedAt: defaultTableColumns.lastModifiedAt
57094
57078
  });
57095
- return /* @__PURE__ */ jsxs98(Fragment38, { children: [
57096
- /* @__PURE__ */ jsx163(EuiSpacer20, {}),
57097
- /* @__PURE__ */ jsxs98(WfoPageHeader2, { pageTitle: "Tasks", children: [
57098
- /* @__PURE__ */ jsx163(
57099
- EuiButton13,
57100
- {
57101
- onClick: handleRerunAllButtonClick,
57102
- iconType: () => /* @__PURE__ */ jsx163(WfoRefresh, { color: theme.colors.primaryText }),
57103
- children: t("rerunAll")
57104
- }
57105
- ),
57106
- /* @__PURE__ */ jsx163(WfoStartTaskButtonComboBox, {})
57079
+ return /* @__PURE__ */ jsxs97(Fragment38, { children: [
57080
+ /* @__PURE__ */ jsx162(EuiSpacer20, {}),
57081
+ /* @__PURE__ */ jsxs97(EuiFlexGroup25, { children: [
57082
+ /* @__PURE__ */ jsx162(EuiFlexItem34, { children: /* @__PURE__ */ jsx162(EuiPageHeader5, { pageTitle: "Tasks" }) }),
57083
+ /* @__PURE__ */ jsx162(EuiFlexItem34, { children: /* @__PURE__ */ jsxs97(EuiFlexGroup25, { justifyContent: "flexEnd", children: [
57084
+ " ",
57085
+ /* @__PURE__ */ jsx162(
57086
+ EuiButton13,
57087
+ {
57088
+ onClick: handleRerunAllButtonClick,
57089
+ iconType: () => /* @__PURE__ */ jsx162(WfoRefresh, { color: theme.colors.primaryText }),
57090
+ children: t("rerunAll")
57091
+ }
57092
+ ),
57093
+ /* @__PURE__ */ jsx162(WfoStartTaskButtonComboBox, {})
57094
+ ] }) })
57107
57095
  ] }),
57108
- /* @__PURE__ */ jsx163(
57096
+ /* @__PURE__ */ jsx162(
57109
57097
  WfoFilterTabs,
57110
57098
  {
57111
57099
  tabs: defaultTasksListTabs,
@@ -57114,8 +57102,8 @@ var WfoTasksListPage = () => {
57114
57102
  onChangeTab: handleChangeTasksListTab
57115
57103
  }
57116
57104
  ),
57117
- /* @__PURE__ */ jsx163(EuiSpacer20, { size: "xxl" }),
57118
- /* @__PURE__ */ jsx163(
57105
+ /* @__PURE__ */ jsx162(EuiSpacer20, { size: "xxl" }),
57106
+ /* @__PURE__ */ jsx162(
57119
57107
  WfoProcessesList,
57120
57108
  {
57121
57109
  defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
@@ -57130,7 +57118,7 @@ var WfoTasksListPage = () => {
57130
57118
  };
57131
57119
 
57132
57120
  // src/pages/workflows/WfoWorkflowsListPage.tsx
57133
- import { useEffect as useEffect26, useState as useState39 } from "react";
57121
+ import { useEffect as useEffect26, useState as useState40 } from "react";
57134
57122
  import { useTranslations as useTranslations51 } from "next-intl";
57135
57123
  import { useRouter as useRouter15 } from "next/router";
57136
57124
  import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
@@ -57194,7 +57182,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
57194
57182
  };
57195
57183
 
57196
57184
  // src/pages/workflows/WfoWorkflowsListPage.tsx
57197
- import { Fragment as Fragment39, jsx as jsx164, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
57185
+ import { Fragment as Fragment39, jsx as jsx163, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
57198
57186
  var WfoWorkflowsListPage = () => {
57199
57187
  var _a;
57200
57188
  const router = useRouter15();
@@ -57203,7 +57191,7 @@ var WfoWorkflowsListPage = () => {
57203
57191
  "activeTab",
57204
57192
  withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
57205
57193
  );
57206
- const [tableDefaults, setTableDefaults] = useState39();
57194
+ const [tableDefaults, setTableDefaults] = useState40();
57207
57195
  const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
57208
57196
  const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
57209
57197
  const getStoredTableConfig = useStoredTableConfig(localStorageKey);
@@ -57233,11 +57221,11 @@ var WfoWorkflowsListPage = () => {
57233
57221
  router.replace(PATH_WORKFLOWS);
57234
57222
  return null;
57235
57223
  }
57236
- return /* @__PURE__ */ jsxs99(Fragment39, { children: [
57237
- /* @__PURE__ */ jsx164(EuiSpacer21, {}),
57238
- /* @__PURE__ */ jsx164(EuiPageHeader6, { pageTitle: t("title") }),
57239
- /* @__PURE__ */ jsx164(EuiSpacer21, { size: "m" }),
57240
- /* @__PURE__ */ jsx164(
57224
+ return /* @__PURE__ */ jsxs98(Fragment39, { children: [
57225
+ /* @__PURE__ */ jsx163(EuiSpacer21, {}),
57226
+ /* @__PURE__ */ jsx163(EuiPageHeader6, { pageTitle: t("title") }),
57227
+ /* @__PURE__ */ jsx163(EuiSpacer21, { size: "m" }),
57228
+ /* @__PURE__ */ jsx163(
57241
57229
  WfoFilterTabs,
57242
57230
  {
57243
57231
  tabs: defaultWorkflowsListTabs,
@@ -57246,8 +57234,8 @@ var WfoWorkflowsListPage = () => {
57246
57234
  onChangeTab: handleChangeWorkflowsListTab
57247
57235
  }
57248
57236
  ),
57249
- /* @__PURE__ */ jsx164(EuiSpacer21, { size: "xxl" }),
57250
- /* @__PURE__ */ jsx164(
57237
+ /* @__PURE__ */ jsx163(EuiSpacer21, { size: "xxl" }),
57238
+ /* @__PURE__ */ jsx163(
57251
57239
  WfoProcessesList,
57252
57240
  {
57253
57241
  alwaysOnFilters,
@@ -57357,7 +57345,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
57357
57345
  }));
57358
57346
 
57359
57347
  // src/components/WfoProcessList/WfoProcessesList.tsx
57360
- import { jsx as jsx165 } from "@emotion/react/jsx-runtime";
57348
+ import { jsx as jsx164 } from "@emotion/react/jsx-runtime";
57361
57349
  var WfoProcessesList = ({
57362
57350
  alwaysOnFilters,
57363
57351
  defaultHiddenColumns = [],
@@ -57375,7 +57363,7 @@ var WfoProcessesList = ({
57375
57363
  field: "workflowName",
57376
57364
  name: t("workflowName"),
57377
57365
  width: "20%",
57378
- render: (value, { processId }) => /* @__PURE__ */ jsx165(Link7, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
57366
+ render: (value, { processId }) => /* @__PURE__ */ jsx164(Link7, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
57379
57367
  },
57380
57368
  lastStep: {
57381
57369
  field: "lastStep",
@@ -57386,13 +57374,13 @@ var WfoProcessesList = ({
57386
57374
  field: "lastStatus",
57387
57375
  name: t("status"),
57388
57376
  width: "100",
57389
- render: (cellValue) => /* @__PURE__ */ jsx165(WfoProcessStatusBadge, { processStatus: cellValue })
57377
+ render: (cellValue) => /* @__PURE__ */ jsx164(WfoProcessStatusBadge, { processStatus: cellValue })
57390
57378
  },
57391
57379
  workflowTarget: {
57392
57380
  field: "workflowTarget",
57393
57381
  name: t("workflowTarget"),
57394
57382
  width: "100",
57395
- render: (target) => /* @__PURE__ */ jsx165(WfoWorkflowTargetBadge, { target })
57383
+ render: (target) => /* @__PURE__ */ jsx164(WfoWorkflowTargetBadge, { target })
57396
57384
  },
57397
57385
  productTag: {
57398
57386
  field: "productTag",
@@ -57418,14 +57406,14 @@ var WfoProcessesList = ({
57418
57406
  field: "subscriptions",
57419
57407
  name: t("subscriptions"),
57420
57408
  width: "15%",
57421
- render: ({ page: subscriptions }) => /* @__PURE__ */ jsx165(
57409
+ render: ({ page: subscriptions }) => /* @__PURE__ */ jsx164(
57422
57410
  WfoProcessListSubscriptionsCell,
57423
57411
  {
57424
57412
  subscriptions,
57425
57413
  numberOfSubscriptionsToRender: 1
57426
57414
  }
57427
57415
  ),
57428
- renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx165(
57416
+ renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx164(
57429
57417
  WfoProcessListSubscriptionsCell,
57430
57418
  {
57431
57419
  subscriptions
@@ -57447,14 +57435,14 @@ var WfoProcessesList = ({
57447
57435
  field: "processId",
57448
57436
  name: t("processId"),
57449
57437
  width: "90",
57450
- render: (value) => /* @__PURE__ */ jsx165(WfoFirstPartUUID, { UUID: value }),
57438
+ render: (value) => /* @__PURE__ */ jsx164(WfoFirstPartUUID, { UUID: value }),
57451
57439
  renderDetails: (value) => value
57452
57440
  },
57453
57441
  startedAt: {
57454
57442
  field: "startedAt",
57455
57443
  name: t("started"),
57456
57444
  width: "100",
57457
- render: (value) => /* @__PURE__ */ jsx165(WfoDateTime, { dateOrIsoString: value }),
57445
+ render: (value) => /* @__PURE__ */ jsx164(WfoDateTime, { dateOrIsoString: value }),
57458
57446
  renderDetails: parseDateToLocaleDateTimeString,
57459
57447
  clipboardText: parseDateToLocaleDateTimeString
57460
57448
  },
@@ -57462,7 +57450,7 @@ var WfoProcessesList = ({
57462
57450
  field: "lastModifiedAt",
57463
57451
  name: t("lastModified"),
57464
57452
  width: "100",
57465
- render: (value) => /* @__PURE__ */ jsx165(WfoDateTime, { dateOrIsoString: value }),
57453
+ render: (value) => /* @__PURE__ */ jsx164(WfoDateTime, { dateOrIsoString: value }),
57466
57454
  renderDetails: parseDateToLocaleDateTimeString,
57467
57455
  clipboardText: parseDateToLocaleDateTimeString
57468
57456
  }
@@ -57493,13 +57481,13 @@ var WfoProcessesList = ({
57493
57481
  getQueryVariablesForExport(processListQueryVars),
57494
57482
  ["processes", "export"]
57495
57483
  );
57496
- return /* @__PURE__ */ jsx165(
57484
+ return /* @__PURE__ */ jsx164(
57497
57485
  WfoTableWithFilter,
57498
57486
  {
57499
57487
  queryString,
57500
- data: mapGraphQlProcessListResultToProcessListItems(
57488
+ data: !isFetching ? mapGraphQlProcessListResultToProcessListItems(
57501
57489
  processes || []
57502
- ),
57490
+ ) : [],
57503
57491
  tableColumns: mapSortableAndFilterableValuesToTableColumnConfig(
57504
57492
  tableColumns,
57505
57493
  pageInfo == null ? void 0 : pageInfo.sortFields,
@@ -57545,11 +57533,11 @@ var getStyles14 = (theme) => {
57545
57533
  };
57546
57534
 
57547
57535
  // src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
57548
- import { jsx as jsx166 } from "@emotion/react/jsx-runtime";
57536
+ import { jsx as jsx165 } from "@emotion/react/jsx-runtime";
57549
57537
  var WfoJsonCodeBlock = ({ data }) => {
57550
57538
  const { euiCodeBlockStyle } = useWithOrchestratorTheme(getStyles14);
57551
57539
  const json = JSON.stringify(data, null, 4);
57552
- return /* @__PURE__ */ jsx166(
57540
+ return /* @__PURE__ */ jsx165(
57553
57541
  EuiCodeBlock2,
57554
57542
  {
57555
57543
  css: euiCodeBlockStyle,
@@ -57562,7 +57550,7 @@ var WfoJsonCodeBlock = ({ data }) => {
57562
57550
  };
57563
57551
 
57564
57552
  // src/components/WfoSettings/WfoFlushSettings.tsx
57565
- import { useState as useState40 } from "react";
57553
+ import { useState as useState41 } from "react";
57566
57554
  import { useTranslations as useTranslations53 } from "next-intl";
57567
57555
  import {
57568
57556
  EuiButton as EuiButton14,
@@ -57571,11 +57559,11 @@ import {
57571
57559
  EuiSpacer as EuiSpacer22,
57572
57560
  EuiText as EuiText36
57573
57561
  } from "@elastic/eui";
57574
- import { jsx as jsx167, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
57562
+ import { jsx as jsx166, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
57575
57563
  var WfoFlushSettings = () => {
57576
57564
  const [clearCache] = useClearCacheMutation();
57577
57565
  const t = useTranslations53("settings.page");
57578
- const [selectedOptions, setSelected] = useState40(
57566
+ const [selectedOptions, setSelected] = useState41(
57579
57567
  []
57580
57568
  );
57581
57569
  const { showToastMessage } = useShowToastMessage();
@@ -57606,7 +57594,7 @@ var WfoFlushSettings = () => {
57606
57594
  );
57607
57595
  });
57608
57596
  };
57609
- return /* @__PURE__ */ jsxs100(
57597
+ return /* @__PURE__ */ jsxs99(
57610
57598
  EuiPanel9,
57611
57599
  {
57612
57600
  hasShadow: false,
@@ -57614,9 +57602,9 @@ var WfoFlushSettings = () => {
57614
57602
  paddingSize: "l",
57615
57603
  style: { width: "50%" },
57616
57604
  children: [
57617
- /* @__PURE__ */ jsx167(EuiText36, { size: "s", children: /* @__PURE__ */ jsx167("h4", { children: t("flushCacheSettingsTitle") }) }),
57618
- /* @__PURE__ */ jsx167(EuiSpacer22, { size: "m" }),
57619
- /* @__PURE__ */ jsx167(
57605
+ /* @__PURE__ */ jsx166(EuiText36, { size: "s", children: /* @__PURE__ */ jsx166("h4", { children: t("flushCacheSettingsTitle") }) }),
57606
+ /* @__PURE__ */ jsx166(EuiSpacer22, { size: "m" }),
57607
+ /* @__PURE__ */ jsx166(
57620
57608
  EuiComboBox,
57621
57609
  {
57622
57610
  "aria-label": "Flush settings",
@@ -57628,8 +57616,8 @@ var WfoFlushSettings = () => {
57628
57616
  fullWidth: true
57629
57617
  }
57630
57618
  ),
57631
- /* @__PURE__ */ jsx167(EuiSpacer22, { size: "m" }),
57632
- /* @__PURE__ */ jsx167(EuiButton14, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
57619
+ /* @__PURE__ */ jsx166(EuiSpacer22, { size: "m" }),
57620
+ /* @__PURE__ */ jsx166(EuiButton14, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
57633
57621
  ]
57634
57622
  }
57635
57623
  );
@@ -57638,16 +57626,16 @@ var WfoFlushSettings = () => {
57638
57626
  // src/components/WfoSettings/WfoEngineStatusButton.tsx
57639
57627
  import { useTranslations as useTranslations54 } from "next-intl";
57640
57628
  import { EuiButton as EuiButton15 } from "@elastic/eui";
57641
- import { jsx as jsx168 } from "@emotion/react/jsx-runtime";
57629
+ import { jsx as jsx167 } from "@emotion/react/jsx-runtime";
57642
57630
  var WfoEngineStatusButton = () => {
57643
57631
  const { data, isLoading } = useGetEngineStatusQuery();
57644
57632
  const { engineStatus } = data || {};
57645
57633
  const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
57646
57634
  const t = useTranslations54("settings.page");
57647
57635
  if (isLoading || isSettingEngineStatus) {
57648
- return /* @__PURE__ */ jsx168(EuiButton15, { isLoading: true, fill: true, children: "Loading..." });
57636
+ return /* @__PURE__ */ jsx167(EuiButton15, { isLoading: true, fill: true, children: "Loading..." });
57649
57637
  }
57650
- return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx168(
57638
+ return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx167(
57651
57639
  EuiButton15,
57652
57640
  {
57653
57641
  onClick: () => setEngineStatus(true),
@@ -57656,7 +57644,7 @@ var WfoEngineStatusButton = () => {
57656
57644
  iconType: "pause",
57657
57645
  children: t("pauseEngine")
57658
57646
  }
57659
- ) : /* @__PURE__ */ jsx168(
57647
+ ) : /* @__PURE__ */ jsx167(
57660
57648
  EuiButton15,
57661
57649
  {
57662
57650
  onClick: () => setEngineStatus(false),
@@ -57671,10 +57659,10 @@ var WfoEngineStatusButton = () => {
57671
57659
  // src/components/WfoSettings/WfoModifySettings.tsx
57672
57660
  import { useTranslations as useTranslations55 } from "next-intl";
57673
57661
  import { EuiPanel as EuiPanel10, EuiSpacer as EuiSpacer23, EuiText as EuiText37 } from "@elastic/eui";
57674
- import { jsx as jsx169, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
57662
+ import { jsx as jsx168, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
57675
57663
  var WfoModifySettings = () => {
57676
57664
  const t = useTranslations55("settings.page");
57677
- return /* @__PURE__ */ jsxs101(
57665
+ return /* @__PURE__ */ jsxs100(
57678
57666
  EuiPanel10,
57679
57667
  {
57680
57668
  hasShadow: false,
@@ -57682,9 +57670,9 @@ var WfoModifySettings = () => {
57682
57670
  paddingSize: "l",
57683
57671
  css: { width: "50%" },
57684
57672
  children: [
57685
- /* @__PURE__ */ jsx169(EuiText37, { size: "s", children: /* @__PURE__ */ jsx169("h4", { children: t("modifyEngine") }) }),
57686
- /* @__PURE__ */ jsx169(EuiSpacer23, { size: "m" }),
57687
- /* @__PURE__ */ jsx169(WfoEngineStatusButton, {})
57673
+ /* @__PURE__ */ jsx168(EuiText37, { size: "s", children: /* @__PURE__ */ jsx168("h4", { children: t("modifyEngine") }) }),
57674
+ /* @__PURE__ */ jsx168(EuiSpacer23, { size: "m" }),
57675
+ /* @__PURE__ */ jsx168(WfoEngineStatusButton, {})
57688
57676
  ]
57689
57677
  }
57690
57678
  );
@@ -57699,14 +57687,14 @@ import {
57699
57687
  EuiSpacer as EuiSpacer24,
57700
57688
  EuiText as EuiText38
57701
57689
  } from "@elastic/eui";
57702
- import { jsx as jsx170, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
57690
+ import { jsx as jsx169, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
57703
57691
  var WfoStatus = () => {
57704
57692
  const { theme } = useOrchestratorTheme();
57705
57693
  const { data } = useGetEngineStatusQuery();
57706
57694
  const { engineStatus, runningProcesses } = data || {};
57707
57695
  const isRunning = engineStatus === "RUNNING" /* RUNNING */;
57708
57696
  const t = useTranslations56("settings.page");
57709
- return /* @__PURE__ */ jsxs102(
57697
+ return /* @__PURE__ */ jsxs101(
57710
57698
  EuiPanel11,
57711
57699
  {
57712
57700
  hasShadow: false,
@@ -57714,21 +57702,21 @@ var WfoStatus = () => {
57714
57702
  paddingSize: "l",
57715
57703
  style: { width: "50%" },
57716
57704
  children: [
57717
- /* @__PURE__ */ jsxs102(EuiFlexGroup26, { children: [
57718
- /* @__PURE__ */ jsx170(EuiFlexItem35, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx170(EuiText38, { size: "s", children: /* @__PURE__ */ jsx170("h4", { children: t("runningProcesses") }) }) }),
57719
- /* @__PURE__ */ jsx170(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx170(EuiText38, { size: "s", children: /* @__PURE__ */ jsx170("p", { children: runningProcesses || "-" }) }) })
57705
+ /* @__PURE__ */ jsxs101(EuiFlexGroup26, { children: [
57706
+ /* @__PURE__ */ jsx169(EuiFlexItem35, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx169(EuiText38, { size: "s", children: /* @__PURE__ */ jsx169("h4", { children: t("runningProcesses") }) }) }),
57707
+ /* @__PURE__ */ jsx169(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx169(EuiText38, { size: "s", children: /* @__PURE__ */ jsx169("p", { children: runningProcesses || "-" }) }) })
57720
57708
  ] }),
57721
- /* @__PURE__ */ jsx170(EuiSpacer24, { size: "m" }),
57722
- /* @__PURE__ */ jsxs102(EuiFlexGroup26, { children: [
57723
- /* @__PURE__ */ jsx170(EuiFlexItem35, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx170(EuiText38, { size: "s", children: /* @__PURE__ */ jsx170("h4", { children: t("engineStatus") }) }) }),
57724
- /* @__PURE__ */ jsx170(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsxs102(EuiFlexGroup26, { gutterSize: "xs", children: [
57725
- /* @__PURE__ */ jsx170(EuiFlexItem35, { children: /* @__PURE__ */ jsx170(
57709
+ /* @__PURE__ */ jsx169(EuiSpacer24, { size: "m" }),
57710
+ /* @__PURE__ */ jsxs101(EuiFlexGroup26, { children: [
57711
+ /* @__PURE__ */ jsx169(EuiFlexItem35, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx169(EuiText38, { size: "s", children: /* @__PURE__ */ jsx169("h4", { children: t("engineStatus") }) }) }),
57712
+ /* @__PURE__ */ jsx169(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsxs101(EuiFlexGroup26, { gutterSize: "xs", children: [
57713
+ /* @__PURE__ */ jsx169(EuiFlexItem35, { children: /* @__PURE__ */ jsx169(
57726
57714
  WfoStatusDotIcon,
57727
57715
  {
57728
57716
  color: isRunning ? theme.colors.success : theme.colors.warning
57729
57717
  }
57730
57718
  ) }),
57731
- /* @__PURE__ */ jsx170(EuiFlexItem35, { children: /* @__PURE__ */ jsx170(EuiText38, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx170("p", { children: engineStatus }) }) })
57719
+ /* @__PURE__ */ jsx169(EuiFlexItem35, { children: /* @__PURE__ */ jsx169(EuiText38, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx169("p", { children: engineStatus }) }) })
57732
57720
  ] }) })
57733
57721
  ] })
57734
57722
  ]
@@ -57737,9 +57725,9 @@ var WfoStatus = () => {
57737
57725
  };
57738
57726
 
57739
57727
  // src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
57740
- import React53 from "react";
57741
- import { jsx as jsx171, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
57742
- var WfoErrorBoundary = class extends React53.Component {
57728
+ import React54 from "react";
57729
+ import { jsx as jsx170, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
57730
+ var WfoErrorBoundary = class extends React54.Component {
57743
57731
  constructor(props) {
57744
57732
  super(props);
57745
57733
  this.state = { hasError: false };
@@ -57755,10 +57743,10 @@ var WfoErrorBoundary = class extends React53.Component {
57755
57743
  if (this.props.fallback) {
57756
57744
  return this.props.fallback;
57757
57745
  }
57758
- return /* @__PURE__ */ jsxs103("p", { children: [
57746
+ return /* @__PURE__ */ jsxs102("p", { children: [
57759
57747
  "An unexpected error occurred, try to go back to the",
57760
57748
  " ",
57761
- /* @__PURE__ */ jsx171("a", { href: "/", children: "home page" })
57749
+ /* @__PURE__ */ jsx170("a", { href: "/", children: "home page" })
57762
57750
  ] });
57763
57751
  }
57764
57752
  return this.props.children;
@@ -57900,9 +57888,9 @@ var en_GB_default = {
57900
57888
  inputFieldsHaveValidationErrors: "{nrOfValidationErrors} input field(s) have validation errors"
57901
57889
  },
57902
57890
  widgets: {
57903
- organisation: {
57904
- placeholder: "Org placeholder",
57905
- loading: "Loading organisations..."
57891
+ customer: {
57892
+ placeholder: "Customer placeholder",
57893
+ loading: "Loading customers..."
57906
57894
  },
57907
57895
  contactPersonName: {
57908
57896
  placeholder: "Name placeholder"
@@ -58256,9 +58244,9 @@ var nl_NL_default = {
58256
58244
  inputFieldsHaveValidationErrors: "{nrOfValidationErrors} input veldn(en) hebben validatie errors"
58257
58245
  },
58258
58246
  widgets: {
58259
- organisation: {
58260
- placeholder: "Org placeholder",
58261
- loading: "Organisaties laden..."
58247
+ customer: {
58248
+ placeholder: "Klant placeholder",
58249
+ loading: "Klanten laden..."
58262
58250
  },
58263
58251
  contactPersonName: {
58264
58252
  placeholder: "Naam placeholder"
@@ -58588,6 +58576,7 @@ export {
58588
58576
  ConfirmationDialogProvider,
58589
58577
  ContactPersonNameField,
58590
58578
  CreateForm,
58579
+ CustomerField,
58591
58580
  DEFAULT_PAGE_SIZE,
58592
58581
  DEFAULT_PAGE_SIZES,
58593
58582
  DateField,
@@ -58629,7 +58618,6 @@ export {
58629
58618
  OptGroupField,
58630
58619
  OrchestratorConfigContext,
58631
58620
  OrchestratorConfigProvider,
58632
- OrganisationField,
58633
58621
  PATH_METADATA,
58634
58622
  PATH_METADATA_PRODUCTS,
58635
58623
  PATH_METADATA_PRODUCT_BLOCKS,