@orchestrator-ui/orchestrator-ui-components 7.6.0 → 7.7.1

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
@@ -64,7 +64,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
64
64
  })(PolicyResource || {});
65
65
 
66
66
  // src/configuration/version.ts
67
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.6.0";
67
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.7.1";
68
68
 
69
69
  // src/types/types.ts
70
70
  var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
@@ -185,11 +185,11 @@ var CacheTagType = /* @__PURE__ */ ((CacheTagType2) => {
185
185
  return CacheTagType2;
186
186
  })(CacheTagType || {});
187
187
  var CACHETAG_TYPE_LIST = "LIST";
188
- var TaskType = /* @__PURE__ */ ((TaskType3) => {
189
- TaskType3["DATE"] = "date";
190
- TaskType3["INTERVAL"] = "interval";
191
- TaskType3["CRON"] = "cron";
192
- return TaskType3;
188
+ var TaskType = /* @__PURE__ */ ((TaskType2) => {
189
+ TaskType2["DATE"] = "date";
190
+ TaskType2["INTERVAL"] = "interval";
191
+ TaskType2["CRON"] = "cron";
192
+ return TaskType2;
193
193
  })(TaskType || {});
194
194
  var Intervals = /* @__PURE__ */ ((Intervals2) => {
195
195
  Intervals2["ONE_HOUR"] = "1hour";
@@ -1306,21 +1306,13 @@ var scheduledTasksApi = orchestratorApi.injectEndpoints({
1306
1306
  }),
1307
1307
  createScheduledTask: builder.mutation({
1308
1308
  query: (payload) => {
1309
- const scheduleTaskPayload = {
1310
- scheduled_type: "create",
1311
- name: payload.workflowDescription,
1312
- workflow_name: payload.workflowName,
1313
- workflow_id: payload.workflowId,
1314
- trigger: payload.type,
1315
- trigger_kwargs: payload.kwargs
1316
- };
1317
1309
  return {
1318
1310
  url: METADATA_SCHEDULES_ENDPOINT,
1319
1311
  method: "POST",
1320
1312
  headers: {
1321
1313
  "Content-Type": "application/json"
1322
1314
  },
1323
- body: scheduleTaskPayload
1315
+ body: payload
1324
1316
  };
1325
1317
  },
1326
1318
  extraOptions: {
@@ -2006,24 +1998,17 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
2006
1998
  queryFn: () => {
2007
1999
  return { data: true };
2008
2000
  },
2009
- async onCacheEntryAdded(_6, { cacheDataLoaded, cacheEntryRemoved, dispatch, getState, updateCachedData }) {
2001
+ async onCacheEntryAdded(wsEndpoint, { cacheDataLoaded, cacheEntryRemoved, dispatch, updateCachedData }) {
2010
2002
  const cleanUp = () => {
2011
2003
  clearInterval(pingInterval);
2012
2004
  updateCachedData(() => false);
2013
2005
  };
2014
2006
  const invalidateTag = (cacheTag) => {
2015
- if (validCacheTags.includes(cacheTag.type)) {
2016
- const cacheInvalidationAction = orchestratorApi.util.invalidateTags([cacheTag]);
2017
- dispatch(cacheInvalidationAction);
2018
- } else {
2019
- console.error(`Trying to invalidate a cache entry with an unknown tag: ${cacheTag.type}`);
2020
- }
2007
+ const cacheInvalidationAction = orchestratorApi.util.invalidateTags([cacheTag]);
2008
+ dispatch(cacheInvalidationAction);
2021
2009
  };
2022
2010
  await cacheDataLoaded;
2023
2011
  let initialConnection = true;
2024
- const state = getState();
2025
- const { orchestratorWebsocketUrl } = state.orchestratorConfig;
2026
- const validCacheTags = Object.values(CacheTagType);
2027
2012
  const getDebounce = (delay) => {
2028
2013
  return debounce(() => {
2029
2014
  webSocket.close();
@@ -2032,15 +2017,13 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
2032
2017
  };
2033
2018
  const closeConnectionAfterFirstPing = getDebounce(INITIAL_CONNECTION_CHECK_INTERVAL_MS);
2034
2019
  const debounceClosingConnection = getDebounce(NO_PONG_RECEIVED_TIMEOUT_MS);
2035
- const webSocket = await getWebSocket(orchestratorWebsocketUrl);
2020
+ const webSocket = await getWebSocket(wsEndpoint);
2036
2021
  const sendPing = () => {
2037
2022
  if (webSocket.readyState === WebSocket.OPEN) {
2038
2023
  webSocket.send("__ping__");
2039
2024
  }
2040
2025
  };
2041
- const pingInterval = setInterval(() => {
2042
- sendPing();
2043
- }, PING_INTERVAL_MS);
2026
+ const pingInterval = setInterval(sendPing, PING_INTERVAL_MS);
2044
2027
  webSocket.onopen = () => {
2045
2028
  closeConnectionAfterFirstPing();
2046
2029
  sendPing();
@@ -2064,9 +2047,7 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
2064
2047
  console.error("Unknown message type", message);
2065
2048
  }
2066
2049
  });
2067
- webSocket.onerror = (event) => {
2068
- console.error("WebSocket error", event);
2069
- };
2050
+ webSocket.onerror = (event) => console.error("WebSocket error", event);
2070
2051
  webSocket.onclose = () => {
2071
2052
  console.error("WebSocket closed");
2072
2053
  cleanUp();
@@ -2360,7 +2341,7 @@ var { useGetSubscriptionSummaryListQuery } = subscriptionListSummaryApi;
2360
2341
  // src/rtk/endpoints/forms.ts
2361
2342
  var PROCESS_ENDPOINT = "processes";
2362
2343
  var RESUME_ENDPOINT = "resume";
2363
- var FORMS_ENDPOINT = "surf/forms/";
2344
+ var FORMS_ENDPOINT = "forms/";
2364
2345
  var formsApi = orchestratorApi.injectEndpoints({
2365
2346
  endpoints: (build) => ({
2366
2347
  startProcess: build.mutation({
@@ -6503,9 +6484,10 @@ var WfoEngineStatusBadge = () => {
6503
6484
  const { data } = useGetEngineStatusQuery();
6504
6485
  const { engineStatus } = data || {};
6505
6486
  const { useWebSockets } = useGetOrchestratorConfig();
6487
+ const { orchestratorWebsocketUrl } = useGetOrchestratorConfig();
6506
6488
  const [websocketTrigger, { isUninitialized }] = useLazyStreamMessagesQuery();
6507
6489
  if (useWebSockets && isUninitialized) {
6508
- websocketTrigger();
6490
+ websocketTrigger(orchestratorWebsocketUrl);
6509
6491
  }
6510
6492
  const engineStatusText = engineStatus ? `Engine is ${engineStatus}` : "Engine status is unavailable";
6511
6493
  const engineColor = engineStatus === "RUNNING" /* RUNNING */ ? theme.colors.success : theme.colors.warning;
@@ -6620,12 +6602,16 @@ var getStyles2 = ({ theme, isDarkModeActive }) => {
6620
6602
 
6621
6603
  // src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx
6622
6604
  import { Fragment as Fragment7, jsx as jsx101 } from "@emotion/react/jsx-runtime";
6623
- var WfoWebsocketStatusBadge = ({ hideWhenConnected = false }) => {
6605
+ var WfoWebsocketStatusBadge = ({
6606
+ hideWhenConnected = false,
6607
+ wsUrl = void 0
6608
+ }) => {
6624
6609
  const dispatch = useDispatch2();
6625
6610
  const { connectedStyle, disconnectedStyle } = useWithOrchestratorTheme(getStyles2);
6626
6611
  const t = useTranslations13("main");
6627
6612
  const { theme } = useOrchestratorTheme();
6628
- const { data: websocketConnected } = useStreamMessagesQuery();
6613
+ const { orchestratorWebsocketUrl } = useGetOrchestratorConfig();
6614
+ const { data: websocketConnected } = useStreamMessagesQuery(wsUrl || orchestratorWebsocketUrl);
6629
6615
  const showBadge = !(websocketConnected && hideWhenConnected);
6630
6616
  const reconnect = useCallback5(() => {
6631
6617
  dispatch(orchestratorApi.util.resetApiState());
@@ -7397,10 +7383,21 @@ var useSubscriptionDetailGeneralSectionConfigurationOverride = () => {
7397
7383
 
7398
7384
  // src/components/WfoSubscription/WfoSubscriptionGeneralSections/WfoSubscriptionDetailSection.tsx
7399
7385
  import { useTranslations as useTranslations20 } from "next-intl";
7400
- import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
7386
+ import Link4 from "next/link";
7387
+ import { jsx as jsx120, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
7401
7388
  var WfoSubscriptionDetailSection = ({ subscriptionDetail }) => {
7402
7389
  const t = useTranslations20("subscriptions.detail");
7403
- const { subscriptionId, product, description, startDate, endDate, status, customer, customerDescriptions } = subscriptionDetail;
7390
+ const {
7391
+ subscriptionId,
7392
+ product,
7393
+ description,
7394
+ startDate,
7395
+ endDate,
7396
+ status,
7397
+ customer,
7398
+ customerDescriptions,
7399
+ processes
7400
+ } = subscriptionDetail;
7404
7401
  const subscriptionDetailBlockData = [
7405
7402
  {
7406
7403
  key: t("subscriptionId"),
@@ -7431,6 +7428,22 @@ var WfoSubscriptionDetailSection = ({ subscriptionDetail }) => {
7431
7428
  key: t("insync"),
7432
7429
  value: /* @__PURE__ */ jsx120(WfoInSyncField, { subscriptionDetail })
7433
7430
  },
7431
+ {
7432
+ key: t("lastRunValidation"),
7433
+ value: (() => {
7434
+ const lastValidate = processes?.page?.filter((process3) => process3.workflowTarget.toLowerCase() === "validate" /* VALIDATE */.toLowerCase()).slice(-1)[0];
7435
+ if (!lastValidate) {
7436
+ return t("noValidateWorkflows");
7437
+ }
7438
+ const processUrl = `${PATH_TASKS}/${lastValidate.processId}`;
7439
+ return /* @__PURE__ */ jsxs60(Link4, { href: processUrl, children: [
7440
+ lastValidate.lastStatus,
7441
+ " (",
7442
+ formatDate(lastValidate.startedAt),
7443
+ ")"
7444
+ ] });
7445
+ })()
7446
+ },
7434
7447
  {
7435
7448
  key: t("customer"),
7436
7449
  value: subscriptionDetail && subscriptionDetail.customer ? `${customer?.fullname}` : "-"
@@ -7523,12 +7536,12 @@ var WfoSubscriptionProductInfoSection = ({ product }) => {
7523
7536
 
7524
7537
  // src/components/WfoSubscription/SubscriptionKeyValueBlock.tsx
7525
7538
  import { EuiFlexGroup as EuiFlexGroup9, EuiFlexItem as EuiFlexItem6, EuiSpacer as EuiSpacer10, EuiText as EuiText7 } from "@elastic/eui";
7526
- import { Fragment as Fragment15, jsx as jsx124, jsxs as jsxs60 } from "@emotion/react/jsx-runtime";
7539
+ import { Fragment as Fragment15, jsx as jsx124, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
7527
7540
  var SubscriptionKeyValueBlock = ({ title, keyValues }) => {
7528
7541
  const { theme } = useOrchestratorTheme();
7529
- return /* @__PURE__ */ jsxs60(Fragment15, { children: [
7542
+ return /* @__PURE__ */ jsxs61(Fragment15, { children: [
7530
7543
  /* @__PURE__ */ jsx124(EuiSpacer10, { size: "m" }),
7531
- /* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */ jsxs60("div", { style: { marginTop: 5 }, children: [
7544
+ /* @__PURE__ */ jsx124("div", { children: /* @__PURE__ */ jsxs61("div", { style: { marginTop: 5 }, children: [
7532
7545
  /* @__PURE__ */ jsx124(EuiFlexGroup9, { justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx124(EuiFlexItem6, { children: /* @__PURE__ */ jsx124(EuiText7, { grow: false, css: { fontWeight: theme.font.weight.semiBold }, children: title }) }) }),
7533
7546
  /* @__PURE__ */ jsx124(EuiSpacer10, { size: "m" }),
7534
7547
  /* @__PURE__ */ jsx124(WfoKeyValueTable, { keyValues, showCopyToClipboardIcon: true })
@@ -7539,19 +7552,19 @@ var SubscriptionKeyValueBlock = ({ title, keyValues }) => {
7539
7552
  // src/components/WfoSubscription/WfoInSyncField/WfoInSyncField.tsx
7540
7553
  import { useContext as useContext5, useEffect as useEffect8, useState as useState11 } from "react";
7541
7554
  import { useTranslations as useTranslations24 } from "next-intl";
7542
- import Link5 from "next/link";
7555
+ import Link6 from "next/link";
7543
7556
  import { EuiButton as EuiButton7, EuiContextMenuItem, EuiLoadingSpinner, EuiToolTip as EuiToolTip6 } from "@elastic/eui";
7544
7557
 
7545
7558
  // src/components/WfoSubscription/WfoInSyncField/WfoInSyncErrorToastMessage.tsx
7546
- import Link4 from "next/link";
7547
- import { jsx as jsx125, jsxs as jsxs61 } from "@emotion/react/jsx-runtime";
7559
+ import Link5 from "next/link";
7560
+ import { jsx as jsx125, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
7548
7561
  var WfoInSyncErrorToastMessage = ({ errorDetail }) => {
7549
7562
  const { failedIds, filteredInput } = parseErrorDetail(errorDetail);
7550
- return /* @__PURE__ */ jsxs61("div", { css: { whiteSpace: "normal", wordBreak: "break-word" }, children: [
7563
+ return /* @__PURE__ */ jsxs62("div", { css: { whiteSpace: "normal", wordBreak: "break-word" }, children: [
7551
7564
  /* @__PURE__ */ jsx125("div", { children: filteredInput }),
7552
7565
  failedIds.map((processId) => {
7553
7566
  const processUrl = `${PATH_WORKFLOWS}/${processId}`;
7554
- return /* @__PURE__ */ jsx125("div", { children: /* @__PURE__ */ jsx125(Link4, { href: processUrl, children: processId }) }, processId);
7567
+ return /* @__PURE__ */ jsx125("div", { children: /* @__PURE__ */ jsx125(Link5, { href: processUrl, children: processId }) }, processId);
7555
7568
  })
7556
7569
  ] });
7557
7570
  };
@@ -7674,7 +7687,7 @@ var WfoInSyncCompactIcon = ({ disabled }) => {
7674
7687
  };
7675
7688
 
7676
7689
  // src/components/WfoSubscription/WfoInSyncField/WfoInSyncField.tsx
7677
- import { Fragment as Fragment16, jsx as jsx127, jsxs as jsxs62 } from "@emotion/react/jsx-runtime";
7690
+ import { Fragment as Fragment16, jsx as jsx127, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
7678
7691
  var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) => {
7679
7692
  const t = useTranslations24("subscriptions.detail");
7680
7693
  const { theme } = useOrchestratorTheme();
@@ -7716,9 +7729,9 @@ var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) =
7716
7729
  };
7717
7730
  const getProcessLink = () => {
7718
7731
  const processUrl = `${lastUncompletedProcess?.isTask ? PATH_TASKS : PATH_WORKFLOWS}/${lastUncompletedProcess?.processId}`;
7719
- return /* @__PURE__ */ jsxs62(Fragment16, { children: [
7720
- /* @__PURE__ */ jsxs62(
7721
- Link5,
7732
+ return /* @__PURE__ */ jsxs63(Fragment16, { children: [
7733
+ /* @__PURE__ */ jsxs63(
7734
+ Link6,
7722
7735
  {
7723
7736
  href: processUrl,
7724
7737
  css: {
@@ -7737,24 +7750,24 @@ var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) =
7737
7750
  };
7738
7751
  const allowInSyncButton = !inSync && lastUncompletedProcess;
7739
7752
  const showDate = inSync && lastTaskRunDate;
7740
- const InSyncDetails = () => /* @__PURE__ */ jsx127(Fragment16, { children: /* @__PURE__ */ jsxs62("div", { css: { display: "flex" }, children: [
7753
+ const InSyncDetails = () => /* @__PURE__ */ jsx127(Fragment16, { children: /* @__PURE__ */ jsxs63("div", { css: { display: "flex" }, children: [
7741
7754
  /* @__PURE__ */ jsx127("div", { css: { paddingRight: theme.base / 4, display: "flex" }, children: /* @__PURE__ */ jsx127(WfoInsyncIcon, { inSync }) }),
7742
7755
  showDate && `(${formatDate(lastTaskRunDate)})`,
7743
7756
  !showDate && compactMode && t("subscriptionIsInSync")
7744
7757
  ] }) });
7745
- const InSyncDetailsWithButton = () => /* @__PURE__ */ jsxs62(Fragment16, { children: [
7758
+ const InSyncDetailsWithButton = () => /* @__PURE__ */ jsxs63(Fragment16, { children: [
7746
7759
  /* @__PURE__ */ jsx127(InSyncDetails, {}),
7747
7760
  allowInSyncButton && getProcessLink()
7748
7761
  ] });
7749
7762
  const InSyncCompactMenuIcon = () => {
7750
7763
  const LoadingSecondaryIcon = () => /* @__PURE__ */ jsx127("div", { css: spinnerSecondaryIconStyle, children: /* @__PURE__ */ jsx127(EuiLoadingSpinner, { size: "s" }) });
7751
7764
  if (!allowInSyncButton) {
7752
- return /* @__PURE__ */ jsxs62("div", { css: disabledIconStyle, children: [
7765
+ return /* @__PURE__ */ jsxs63("div", { css: disabledIconStyle, children: [
7753
7766
  /* @__PURE__ */ jsx127(WfoInSyncCompactIcon, { disabled: true }),
7754
7767
  isLoading ? /* @__PURE__ */ jsx127(LoadingSecondaryIcon, {}) : /* @__PURE__ */ jsx127("div", { css: secondaryIconStyle, children: /* @__PURE__ */ jsx127(WfoCheckmarkCircleFill, { width: 20, height: 20, color: theme.colors.primary }) })
7755
7768
  ] });
7756
7769
  }
7757
- return /* @__PURE__ */ jsxs62("div", { css: disabledIconStyle, children: [
7770
+ return /* @__PURE__ */ jsxs63("div", { css: disabledIconStyle, children: [
7758
7771
  /* @__PURE__ */ jsx127(WfoInSyncCompactIcon, { disabled: false }),
7759
7772
  isLoading && /* @__PURE__ */ jsx127(LoadingSecondaryIcon, {})
7760
7773
  ] });
@@ -7777,7 +7790,7 @@ var WfoInSyncField = ({ subscriptionDetail, compactMode = false, setPopover }) =
7777
7790
  // src/components/WfoSubscription/WfoProcessesTimeline.tsx
7778
7791
  import React22 from "react";
7779
7792
  import { useTranslations as useTranslations25 } from "next-intl";
7780
- import Link6 from "next/link";
7793
+ import Link7 from "next/link";
7781
7794
  import { EuiComment, EuiCommentList, EuiFlexGroup as EuiFlexGroup10, EuiFlexItem as EuiFlexItem7, EuiSpacer as EuiSpacer11, EuiText as EuiText8 } from "@elastic/eui";
7782
7795
 
7783
7796
  // src/components/WfoSubscription/styles.ts
@@ -7842,7 +7855,7 @@ var getSubscriptionDetailStyles = ({ theme, isDarkModeActive }) => {
7842
7855
  };
7843
7856
 
7844
7857
  // src/components/WfoSubscription/WfoProcessesTimeline.tsx
7845
- import { Fragment as Fragment17, jsx as jsx128, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
7858
+ import { Fragment as Fragment17, jsx as jsx128, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
7846
7859
  var WfoProcessCard = ({ subscriptionDetailProcess }) => {
7847
7860
  const t = useTranslations25("subscriptions.detail.processDetail");
7848
7861
  const { tableStyle, labelCellStyle, cellGroupStyle, borderStyle, rowStyle } = useWithOrchestratorTheme(getSubscriptionDetailStyles);
@@ -7850,7 +7863,7 @@ var WfoProcessCard = ({ subscriptionDetailProcess }) => {
7850
7863
  const rows = [
7851
7864
  {
7852
7865
  label: t("id"),
7853
- content: /* @__PURE__ */ jsx128(Link6, { href: `${processUrl}/${subscriptionDetailProcess.processId}`, children: subscriptionDetailProcess.processId })
7866
+ content: /* @__PURE__ */ jsx128(Link7, { href: `${processUrl}/${subscriptionDetailProcess.processId}`, children: subscriptionDetailProcess.processId })
7854
7867
  },
7855
7868
  {
7856
7869
  label: t("status"),
@@ -7865,21 +7878,21 @@ var WfoProcessCard = ({ subscriptionDetailProcess }) => {
7865
7878
  content: subscriptionDetailProcess.createdBy
7866
7879
  }
7867
7880
  ];
7868
- return /* @__PURE__ */ jsx128("div", { css: tableStyle, children: rows.map(({ label, content }, idx) => /* @__PURE__ */ jsx128("div", { css: rowStyle, children: /* @__PURE__ */ jsx128("div", { className: "border", css: borderStyle, children: /* @__PURE__ */ jsxs63(EuiFlexGroup10, { css: cellGroupStyle, children: [
7881
+ return /* @__PURE__ */ jsx128("div", { css: tableStyle, children: rows.map(({ label, content }, idx) => /* @__PURE__ */ jsx128("div", { css: rowStyle, children: /* @__PURE__ */ jsx128("div", { className: "border", css: borderStyle, children: /* @__PURE__ */ jsxs64(EuiFlexGroup10, { css: cellGroupStyle, children: [
7869
7882
  /* @__PURE__ */ jsx128(EuiFlexItem7, { css: labelCellStyle, grow: 2, children: label }),
7870
7883
  /* @__PURE__ */ jsx128(EuiFlexItem7, { grow: 9, children: content })
7871
7884
  ] }, label) }) }, idx)) });
7872
7885
  };
7873
7886
  var WfoRenderSubscriptionProcess = ({ subscriptionDetailProcess }) => {
7874
7887
  const { timeLineStyle, workflowTargetStyle } = useWithOrchestratorTheme(getSubscriptionDetailStyles);
7875
- return /* @__PURE__ */ jsxs63(
7888
+ return /* @__PURE__ */ jsxs64(
7876
7889
  EuiComment,
7877
7890
  {
7878
7891
  username: subscriptionDetailProcess.workflowTarget ?? "",
7879
7892
  timelineAvatarAriaLabel: subscriptionDetailProcess.workflowName,
7880
7893
  timelineAvatar: /* @__PURE__ */ jsx128(WfoTargetTypeIcon, { target: subscriptionDetailProcess.workflowTarget }),
7881
7894
  children: [
7882
- /* @__PURE__ */ jsxs63(EuiFlexGroup10, { alignItems: "center", gutterSize: "s", css: timeLineStyle, children: [
7895
+ /* @__PURE__ */ jsxs64(EuiFlexGroup10, { alignItems: "center", gutterSize: "s", css: timeLineStyle, children: [
7883
7896
  /* @__PURE__ */ jsx128(EuiText8, { css: workflowTargetStyle, children: upperCaseFirstChar(subscriptionDetailProcess.workflowTarget) }),
7884
7897
  /* @__PURE__ */ jsx128(EuiText8, { children: "-" }),
7885
7898
  /* @__PURE__ */ jsx128(EuiText8, { children: subscriptionDetailProcess.workflowName })
@@ -7908,7 +7921,7 @@ var WfoProcessesTimeline = ({ subscriptionDetailProcesses }) => {
7908
7921
  setSelectedOption(option);
7909
7922
  };
7910
7923
  const sortedProcesses = sortProcessesByDate(subscriptionDetailProcesses, selectedOption.value);
7911
- return /* @__PURE__ */ jsxs63(Fragment17, { children: [
7924
+ return /* @__PURE__ */ jsxs64(Fragment17, { children: [
7912
7925
  /* @__PURE__ */ jsx128(EuiSpacer11, { size: "m" }),
7913
7926
  !subscriptionDetailProcesses && /* @__PURE__ */ jsx128(WfoLoading, {}),
7914
7927
  /* @__PURE__ */ jsx128(WfoRadioDropdown, { options, onUpdateOption: handleOnSelectOption, selectedOption }),
@@ -7919,7 +7932,7 @@ var WfoProcessesTimeline = ({ subscriptionDetailProcesses }) => {
7919
7932
  // src/components/WfoSubscription/WfoRelatedSubscriptions.tsx
7920
7933
  import { useState as useState16 } from "react";
7921
7934
  import { useTranslations as useTranslations30 } from "next-intl";
7922
- import Link7 from "next/link";
7935
+ import Link8 from "next/link";
7923
7936
  import { EuiFlexGroup as EuiFlexGroup12, EuiFlexItem as EuiFlexItem8, EuiSpacer as EuiSpacer14, EuiSwitch } from "@elastic/eui";
7924
7937
 
7925
7938
  // src/components/WfoSubscription/utils/relatedSubscriptionsListItemsObjectMappers.ts
@@ -8349,7 +8362,7 @@ var usePageIndexBoundsGuard = ({
8349
8362
  };
8350
8363
 
8351
8364
  // src/components/WfoTable/WfoTable/WfoTableDataRows.tsx
8352
- import { Fragment as Fragment20, jsx as jsx130, jsxs as jsxs64 } from "@emotion/react/jsx-runtime";
8365
+ import { Fragment as Fragment20, jsx as jsx130, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
8353
8366
  var DATA_ROW_CLASS = "data-row";
8354
8367
  var CONTROL_CELL_CLASS = "control-cell";
8355
8368
  var DATA_CELL_CLASS = "data-cell";
@@ -8364,7 +8377,7 @@ var WfoTableDataRows = ({
8364
8377
  }) => {
8365
8378
  const { cellStyle, cellContentStyle, rowStyle, dataRowStyle, clickableStyle, setWidth } = useWithOrchestratorTheme(getWfoTableStyles);
8366
8379
  const sortedVisibleColumns = getSortedVisibleColumns(columnConfig, columnOrder, hiddenColumns);
8367
- return /* @__PURE__ */ jsx130(Fragment20, { children: data.map((row, index) => /* @__PURE__ */ jsxs64(Fragment19, { children: [
8380
+ return /* @__PURE__ */ jsx130(Fragment20, { children: data.map((row, index) => /* @__PURE__ */ jsxs65(Fragment19, { children: [
8368
8381
  /* @__PURE__ */ jsx130(
8369
8382
  "tr",
8370
8383
  {
@@ -8513,7 +8526,7 @@ var WfoPopoverContent = ({ onSearch, closePopover, fieldName }) => {
8513
8526
  };
8514
8527
 
8515
8528
  // src/components/WfoTable/WfoTable/WfoTableHeaderCell/WfoTableHeaderCell.tsx
8516
- import { jsx as jsx134, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
8529
+ import { jsx as jsx134, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
8517
8530
  var WfoTableHeaderCell = ({
8518
8531
  fieldName,
8519
8532
  sortOrder,
@@ -8539,8 +8552,8 @@ var WfoTableHeaderCell = ({
8539
8552
  const closePopover = () => setPopover(false);
8540
8553
  const WfoHeaderCellContentButton = () => /* @__PURE__ */ jsx134("button", { onClick: handleButtonClick, disabled: !isFilterable, children: /* @__PURE__ */ jsx134("div", { css: getHeaderCellContentStyle(isFilterable), children }) });
8541
8554
  const WfoPopoverHeader = () => /* @__PURE__ */ jsx134("div", { css: headerCellPopoverHeaderStyle, children: /* @__PURE__ */ jsx134(EuiText9, { size: "xs", css: headerCellPopoverHeaderTitleStyle, children }) });
8542
- return /* @__PURE__ */ jsxs65("div", { css: headerCellStyle, children: [
8543
- /* @__PURE__ */ jsxs65(
8555
+ return /* @__PURE__ */ jsxs66("div", { css: headerCellStyle, children: [
8556
+ /* @__PURE__ */ jsxs66(
8544
8557
  EuiPopover3,
8545
8558
  {
8546
8559
  className: HEADER_CELL_TITLE_BUTTON_CLASS,
@@ -8572,7 +8585,7 @@ var WfoTableHeaderCell = ({
8572
8585
  };
8573
8586
 
8574
8587
  // src/components/WfoTable/WfoTable/WfoTableHeaderRow.tsx
8575
- import { jsx as jsx135, jsxs as jsxs66 } from "@emotion/react/jsx-runtime";
8588
+ import { jsx as jsx135, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
8576
8589
  var WfoTableHeaderRow = ({
8577
8590
  columnConfig,
8578
8591
  columnOrder = [],
@@ -8599,7 +8612,7 @@ var WfoTableHeaderRow = ({
8599
8612
  ...toOptionalArrayEntry(sortableHeaderCellStyle, !!columnConfig2.isSortable),
8600
8613
  setWidth(columnConfig2.width)
8601
8614
  ],
8602
- children: /* @__PURE__ */ jsxs66("div", { css: headerCellContainer, children: [
8615
+ children: /* @__PURE__ */ jsxs67("div", { css: headerCellContainer, children: [
8603
8616
  /* @__PURE__ */ jsx135(
8604
8617
  WfoTableHeaderCell,
8605
8618
  {
@@ -8647,7 +8660,7 @@ var WfoTableHeaderRow = ({
8647
8660
  };
8648
8661
 
8649
8662
  // src/components/WfoTable/WfoTable/WfoTable.tsx
8650
- import { Fragment as Fragment21, jsx as jsx136, jsxs as jsxs67 } from "@emotion/react/jsx-runtime";
8663
+ import { Fragment as Fragment21, jsx as jsx136, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
8651
8664
  var ColumnType = /* @__PURE__ */ ((ColumnType2) => {
8652
8665
  ColumnType2["DATA"] = "data";
8653
8666
  ColumnType2["CONTROL"] = "control";
@@ -8733,14 +8746,14 @@ var WfoTable = ({
8733
8746
  const lastVirtualItemEnd = virtualItems.length > 0 ? virtualItems[virtualItems.length - 1].end : 0;
8734
8747
  const virtualTrHeight = virtualItems[0]?.start ?? 0;
8735
8748
  const bottomSpacerHeight = totalSize - lastVirtualItemEnd;
8736
- return /* @__PURE__ */ jsxs67(Fragment21, { children: [
8749
+ return /* @__PURE__ */ jsxs68(Fragment21, { children: [
8737
8750
  /* @__PURE__ */ jsx136(
8738
8751
  "div",
8739
8752
  {
8740
8753
  ref: parentRef,
8741
8754
  css: [tableContainerStyle, useEuiScrollBar()],
8742
8755
  style: isVirtualized && height ? { maxHeight: height, overflow: "auto" } : {},
8743
- children: /* @__PURE__ */ jsxs67("table", { className, css: tableStyle, children: [
8756
+ children: /* @__PURE__ */ jsxs68("table", { className, css: tableStyle, children: [
8744
8757
  overrideHeader ? overrideHeader(sortedVisibleColumns) : /* @__PURE__ */ jsx136("thead", { css: headerStyle, children: /* @__PURE__ */ jsx136(
8745
8758
  WfoTableHeaderRow,
8746
8759
  {
@@ -8753,7 +8766,7 @@ var WfoTable = ({
8753
8766
  onUpdateColumWidth
8754
8767
  }
8755
8768
  ) }),
8756
- dataLength === 0 ? /* @__PURE__ */ jsx136("tbody", { css: isLoading && bodyLoadingStyle, children: /* @__PURE__ */ jsx136("tr", { css: rowStyle, children: /* @__PURE__ */ jsx136("td", { colSpan: sortedVisibleColumns.length, css: [cellStyle, emptyTableMessageStyle], children: isLoading ? t("loading") : t("noItemsFound") }) }) }) : isVirtualized && height ? /* @__PURE__ */ jsxs67("tbody", { children: [
8769
+ dataLength === 0 ? /* @__PURE__ */ jsx136("tbody", { css: isLoading && bodyLoadingStyle, children: /* @__PURE__ */ jsx136("tr", { css: rowStyle, children: /* @__PURE__ */ jsx136("td", { colSpan: sortedVisibleColumns.length, css: [cellStyle, emptyTableMessageStyle], children: isLoading ? t("loading") : t("noItemsFound") }) }) }) : isVirtualized && height ? /* @__PURE__ */ jsxs68("tbody", { children: [
8757
8770
  /* @__PURE__ */ jsx136(
8758
8771
  "tr",
8759
8772
  {
@@ -8796,7 +8809,7 @@ var WfoTable = ({
8796
8809
  ] })
8797
8810
  }
8798
8811
  ),
8799
- pagination && /* @__PURE__ */ jsxs67("div", { css: paginationStyle, children: [
8812
+ pagination && /* @__PURE__ */ jsxs68("div", { css: paginationStyle, children: [
8800
8813
  /* @__PURE__ */ jsx136(EuiSpacer12, { size: "xs" }),
8801
8814
  /* @__PURE__ */ jsx136(
8802
8815
  EuiTablePagination,
@@ -8856,7 +8869,7 @@ var getWfoGroupedTableStyles = ({ theme }) => {
8856
8869
  };
8857
8870
 
8858
8871
  // src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandableRow.tsx
8859
- import { jsx as jsx137, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
8872
+ import { jsx as jsx137, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
8860
8873
  var WfoExpandableRow = ({
8861
8874
  groupName,
8862
8875
  numberOfRowsInGroup,
@@ -8866,7 +8879,7 @@ var WfoExpandableRow = ({
8866
8879
  const { expandableRowContainerStyle, expandableRowTextStyle } = useWithOrchestratorTheme(getWfoGroupedTableStyles);
8867
8880
  const t = useTranslations28("wfoComponents");
8868
8881
  const hasData = numberOfRowsInGroup > 0;
8869
- return /* @__PURE__ */ jsxs68("div", { css: expandableRowContainerStyle, children: [
8882
+ return /* @__PURE__ */ jsxs69("div", { css: expandableRowContainerStyle, children: [
8870
8883
  /* @__PURE__ */ jsx137(
8871
8884
  EuiButtonIcon6,
8872
8885
  {
@@ -8923,13 +8936,13 @@ var WfoGroupedTableGroups = React30.forwardRef(
8923
8936
  WfoGroupedTableGroups.displayName = "WfoGroupedTableGroups";
8924
8937
 
8925
8938
  // src/components/WfoTable/WfoTable/WfoGroupedTable/WfoExpandedGroupRow.tsx
8926
- import { Fragment as Fragment22, jsx as jsx139, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
8939
+ import { Fragment as Fragment22, jsx as jsx139, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
8927
8940
  var WfoExpandedGroupRow = React31.forwardRef(
8928
8941
  ({ data, columnConfig, nestingLevel = 1, groupNameLabel, onExpandRowChange }, reference) => {
8929
8942
  const { expandedRowStyle } = useWithOrchestratorTheme(getWfoTableStyles);
8930
8943
  const { innerTableHeaderStyle, getNestingStyle } = useWithOrchestratorTheme(getWfoGroupedTableStyles);
8931
8944
  if (Array.isArray(data)) {
8932
- return /* @__PURE__ */ jsxs69(Fragment22, { children: [
8945
+ return /* @__PURE__ */ jsxs70(Fragment22, { children: [
8933
8946
  /* @__PURE__ */ jsx139(WfoTableHeaderRow, { css: [innerTableHeaderStyle, getNestingStyle(nestingLevel)], columnConfig }),
8934
8947
  /* @__PURE__ */ jsx139(
8935
8948
  WfoTableDataRows,
@@ -9115,7 +9128,7 @@ var useGroupedTableConfig = ({
9115
9128
  };
9116
9129
 
9117
9130
  // src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTable.tsx
9118
- import { Fragment as Fragment23, jsx as jsx141, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
9131
+ import { Fragment as Fragment23, jsx as jsx141, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
9119
9132
  var WfoGroupedTable = ({
9120
9133
  data,
9121
9134
  columnConfig,
@@ -9141,7 +9154,7 @@ var WfoGroupedTable = ({
9141
9154
  columnConfig
9142
9155
  });
9143
9156
  const ExpandCollapseButton = () => /* @__PURE__ */ jsx141(EuiButtonEmpty4, { size: "xs", onClick: () => isAllGroupsAndSubgroupsExpanded ? collapseAllRows() : expandAllRows(), children: isAllGroupsAndSubgroupsExpanded ? t("collapse") : t("expand") });
9144
- return /* @__PURE__ */ jsxs70(Fragment23, { children: [
9157
+ return /* @__PURE__ */ jsxs71(Fragment23, { children: [
9145
9158
  /* @__PURE__ */ jsx141(EuiFlexGroup11, { justifyContent: "flexEnd", children: overrideHeaderSection ? overrideHeaderSection(/* @__PURE__ */ jsx141(ExpandCollapseButton, {})) : /* @__PURE__ */ jsx141(ExpandCollapseButton, {}) }),
9146
9159
  /* @__PURE__ */ jsx141(EuiSpacer13, { size: "xs" }),
9147
9160
  /* @__PURE__ */ jsx141(
@@ -9221,7 +9234,7 @@ var WfoToolTip = ({ tooltipContent, children, className }) => {
9221
9234
  };
9222
9235
 
9223
9236
  // src/components/WfoSubscription/WfoRelatedSubscriptions.tsx
9224
- import { Fragment as Fragment25, jsx as jsx146, jsxs as jsxs71 } from "@emotion/react/jsx-runtime";
9237
+ import { Fragment as Fragment25, jsx as jsx146, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
9225
9238
  var WfoRelatedSubscriptions = ({
9226
9239
  subscriptionId,
9227
9240
  subscriptionPath = PATH_SUBSCRIPTIONS
@@ -9259,7 +9272,7 @@ var WfoRelatedSubscriptions = ({
9259
9272
  description: {
9260
9273
  columnType: "data" /* DATA */,
9261
9274
  label: t("description"),
9262
- renderData: (value, record) => /* @__PURE__ */ jsx146(Link7, { target: "_blank", href: `${subscriptionPath}/${record.subscriptionId}`, children: value })
9275
+ renderData: (value, record) => /* @__PURE__ */ jsx146(Link8, { target: "_blank", href: `${subscriptionPath}/${record.subscriptionId}`, children: value })
9263
9276
  },
9264
9277
  status: {
9265
9278
  columnType: "data" /* DATA */,
@@ -9303,7 +9316,7 @@ var WfoRelatedSubscriptions = ({
9303
9316
  const toggleTerminatedSubscriptions = () => {
9304
9317
  setHideTerminatedSubscriptions((currentValue) => !currentValue);
9305
9318
  };
9306
- return /* @__PURE__ */ jsxs71(Fragment25, { children: [
9319
+ return /* @__PURE__ */ jsxs72(Fragment25, { children: [
9307
9320
  /* @__PURE__ */ jsx146(EuiSpacer14, { size: "xl" }),
9308
9321
  /* @__PURE__ */ jsx146(EuiFlexGroup12, { justifyContent: "flexEnd", children: /* @__PURE__ */ jsx146(EuiFlexItem8, { grow: 0, children: /* @__PURE__ */ jsx146(
9309
9322
  EuiSwitch,
@@ -9363,7 +9376,7 @@ var subscriptionDetailTabs = [
9363
9376
  ];
9364
9377
 
9365
9378
  // src/components/WfoSubscription/WfoSubscription.tsx
9366
- import { Fragment as Fragment26, jsx as jsx148, jsxs as jsxs72 } from "@emotion/react/jsx-runtime";
9379
+ import { Fragment as Fragment26, jsx as jsx148, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
9367
9380
  var WfoSubscription = ({ subscriptionId }) => {
9368
9381
  const [activeTab, setActiveTab] = useQueryParam(
9369
9382
  "activeTab",
@@ -9379,12 +9392,12 @@ var WfoSubscription = ({ subscriptionId }) => {
9379
9392
  setActiveTab(tab);
9380
9393
  };
9381
9394
  const subscriptionDetail = data?.subscription;
9382
- return /* @__PURE__ */ jsx148(Fragment26, { children: isError && /* @__PURE__ */ jsx148(WfoError, {}) || isLoading && /* @__PURE__ */ jsx148(WfoLoading, {}) || subscriptionDetail && subscriptionDetail.subscriptionId && /* @__PURE__ */ jsxs72(Fragment26, { children: [
9395
+ return /* @__PURE__ */ jsx148(Fragment26, { children: isError && /* @__PURE__ */ jsx148(WfoError, {}) || isLoading && /* @__PURE__ */ jsx148(WfoLoading, {}) || subscriptionDetail && subscriptionDetail.subscriptionId && /* @__PURE__ */ jsxs73(Fragment26, { children: [
9383
9396
  /* @__PURE__ */ jsx148(
9384
9397
  WfoContentHeader,
9385
9398
  {
9386
9399
  title: /* @__PURE__ */ jsx148(WfoTitleWithWebsocketBadge, { title: subscriptionDetail.description }),
9387
- subtitle: /* @__PURE__ */ jsxs72(Fragment26, { children: [
9400
+ subtitle: /* @__PURE__ */ jsxs73(Fragment26, { children: [
9388
9401
  /* @__PURE__ */ jsx148(WfoSubscriptionStatusBadge, { status: subscriptionDetail.status }),
9389
9402
  /* @__PURE__ */ jsx148(WfoSubscriptionSyncStatusBadge, { insync: subscriptionDetail.insync })
9390
9403
  ] }),
@@ -9410,7 +9423,7 @@ var WfoSubscription = ({ subscriptionId }) => {
9410
9423
  selectedTab === "general" /* GENERAL_TAB */ && /* @__PURE__ */ jsx148(WfoSubscriptionGeneral, { subscriptionDetail }),
9411
9424
  selectedTab === "processes" /* PROCESSES_TAB */ && data && subscriptionDetail.processes?.page && /* @__PURE__ */ jsx148(WfoProcessesTimeline, { subscriptionDetailProcesses: subscriptionDetail.processes?.page }),
9412
9425
  selectedTab === "related-subscriptions" /* RELATED_SUBSCRIPTIONS_TAB */ && data && /* @__PURE__ */ jsx148(WfoRelatedSubscriptions, { subscriptionId: subscriptionDetail.subscriptionId })
9413
- ] }) || /* @__PURE__ */ jsxs72("h1", { children: [
9426
+ ] }) || /* @__PURE__ */ jsxs73("h1", { children: [
9414
9427
  "Unknown subscriptionId: ",
9415
9428
  subscriptionId
9416
9429
  ] }) });
@@ -9429,9 +9442,9 @@ import { EuiContextMenuItem as EuiContextMenuItem2, EuiToolTip as EuiToolTip8 }
9429
9442
  // src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionExpandableMenuItem.tsx
9430
9443
  import { useState as useState17 } from "react";
9431
9444
  import { useTranslations as useTranslations31 } from "next-intl";
9432
- import Link8 from "next/link";
9445
+ import Link9 from "next/link";
9433
9446
  import { EuiButtonIcon as EuiButtonIcon7, EuiText as EuiText11 } from "@elastic/eui";
9434
- import { jsx as jsx149, jsxs as jsxs73 } from "@emotion/react/jsx-runtime";
9447
+ import { jsx as jsx149, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
9435
9448
  var WfoSubscriptionActionExpandableMenuItem = ({
9436
9449
  subscriptionAction,
9437
9450
  onClickLockedRelation,
@@ -9441,8 +9454,8 @@ var WfoSubscriptionActionExpandableMenuItem = ({
9441
9454
  const { clickableStyle, expandableMenuItemStyle, expandButtonStyle, expandedContentStyle, linkStyle } = useWithOrchestratorTheme(getSubscriptionActionStyles);
9442
9455
  const [isExpanded, setIsExpanded] = useState17(false);
9443
9456
  const { locked_relations: lockedRelations } = subscriptionAction;
9444
- return /* @__PURE__ */ jsxs73("div", { children: [
9445
- /* @__PURE__ */ jsxs73(
9457
+ return /* @__PURE__ */ jsxs74("div", { children: [
9458
+ /* @__PURE__ */ jsxs74(
9446
9459
  "div",
9447
9460
  {
9448
9461
  css: [expandableMenuItemStyle, lockedRelations && clickableStyle],
@@ -9461,10 +9474,10 @@ var WfoSubscriptionActionExpandableMenuItem = ({
9461
9474
  ]
9462
9475
  }
9463
9476
  ),
9464
- lockedRelations && isExpanded && /* @__PURE__ */ jsxs73("div", { css: expandedContentStyle, children: [
9477
+ lockedRelations && isExpanded && /* @__PURE__ */ jsxs74("div", { css: expandedContentStyle, children: [
9465
9478
  /* @__PURE__ */ jsx149(EuiText11, { size: "xs", children: t("lockedBySubscriptions") }),
9466
9479
  lockedRelations.map((relation) => /* @__PURE__ */ jsx149(EuiText11, { size: "xs", children: /* @__PURE__ */ jsx149(
9467
- Link8,
9480
+ Link9,
9468
9481
  {
9469
9482
  css: linkStyle,
9470
9483
  href: `${PATH_SUBSCRIPTIONS}/${relation}`,
@@ -9478,7 +9491,7 @@ var WfoSubscriptionActionExpandableMenuItem = ({
9478
9491
  };
9479
9492
 
9480
9493
  // src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionsMenuItem.tsx
9481
- import { jsx as jsx150, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
9494
+ import { jsx as jsx150, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
9482
9495
  var WfoSubscriptionActionsMenuItem = ({
9483
9496
  subscriptionAction,
9484
9497
  onClick,
@@ -9511,7 +9524,7 @@ var WfoSubscriptionActionsMenuItem = ({
9511
9524
  }
9512
9525
  ) }) });
9513
9526
  };
9514
- const getIcon = () => subscriptionAction.reason ? /* @__PURE__ */ jsxs74("div", { css: disabledIconStyle, children: [
9527
+ const getIcon = () => subscriptionAction.reason ? /* @__PURE__ */ jsxs75("div", { css: disabledIconStyle, children: [
9515
9528
  /* @__PURE__ */ jsx150(WfoTargetTypeIcon, { target, disabled: true }),
9516
9529
  /* @__PURE__ */ jsx150("div", { css: secondaryIconStyle, children: /* @__PURE__ */ jsx150(WfoXCircleFill, { width: 20, height: 20, color: theme.colors.danger }) })
9517
9530
  ] }) : /* @__PURE__ */ jsx150("div", { css: iconStyle, children: /* @__PURE__ */ jsx150(WfoTargetTypeIcon, { target }) });
@@ -9530,8 +9543,8 @@ var WfoSubscriptionActionsMenuItem = ({
9530
9543
  };
9531
9544
 
9532
9545
  // src/icons/WfoDotsHorizontal.tsx
9533
- import { jsx as jsx151, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
9534
- var WfoDotsHorizontal = ({ width = 20, height = 20, color = "currentColor" }) => /* @__PURE__ */ jsxs75("svg", { width, height, viewBox: "0 0 24 24", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: [
9546
+ import { jsx as jsx151, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
9547
+ var WfoDotsHorizontal = ({ width = 20, height = 20, color = "currentColor" }) => /* @__PURE__ */ jsxs76("svg", { width, height, viewBox: "0 0 24 24", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: [
9535
9548
  /* @__PURE__ */ jsx151("title", { children: "icon/dots-horizontal" }),
9536
9549
  /* @__PURE__ */ jsx151("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx151("g", { id: "icon/dots-horizontal", fill: color, fillRule: "nonzero", children: /* @__PURE__ */ jsx151(
9537
9550
  "path",
@@ -9543,7 +9556,7 @@ var WfoDotsHorizontal = ({ width = 20, height = 20, color = "currentColor" }) =>
9543
9556
  ] });
9544
9557
 
9545
9558
  // src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx
9546
- import { Fragment as Fragment27, jsx as jsx152, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
9559
+ import { Fragment as Fragment27, jsx as jsx152, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
9547
9560
  var MenuBlock = ({ title }) => /* @__PURE__ */ jsx152(EuiTitle, { size: "xxxs", children: /* @__PURE__ */ jsx152("h3", { children: title }) });
9548
9561
  var WfoSubscriptionActions = ({
9549
9562
  subscriptionId,
@@ -9610,8 +9623,8 @@ var WfoSubscriptionActions = ({
9610
9623
  redirectToUrl(actionName, isTask);
9611
9624
  }
9612
9625
  };
9613
- const compactItems = /* @__PURE__ */ jsxs76(Fragment27, { children: [
9614
- isAllowed(SUBSCRIPTION_VALIDATE + subscriptionId) && subscriptionActions?.validate && /* @__PURE__ */ jsxs76(Fragment27, { children: [
9626
+ const compactItems = /* @__PURE__ */ jsxs77(Fragment27, { children: [
9627
+ isAllowed(SUBSCRIPTION_VALIDATE + subscriptionId) && subscriptionActions?.validate && /* @__PURE__ */ jsxs77(Fragment27, { children: [
9615
9628
  !compactMode && /* @__PURE__ */ jsx152(MenuBlock, { title: t("tasks") }),
9616
9629
  subscriptionActions.validate.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
9617
9630
  WfoSubscriptionActionsMenuItem,
@@ -9624,7 +9637,7 @@ var WfoSubscriptionActions = ({
9624
9637
  `s_${index}`
9625
9638
  ))
9626
9639
  ] }),
9627
- isAllowed(SUBSCRIPTION_RECONCILE + subscriptionId) && (subscriptionActions?.reconcile?.length ?? 0) > 0 && /* @__PURE__ */ jsxs76(Fragment27, { children: [
9640
+ isAllowed(SUBSCRIPTION_RECONCILE + subscriptionId) && (subscriptionActions?.reconcile?.length ?? 0) > 0 && /* @__PURE__ */ jsxs77(Fragment27, { children: [
9628
9641
  !compactMode && /* @__PURE__ */ jsx152(MenuBlock, { title: t("reconcile") }),
9629
9642
  subscriptionActions?.reconcile.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
9630
9643
  WfoSubscriptionActionsMenuItem,
@@ -9646,8 +9659,8 @@ var WfoSubscriptionActions = ({
9646
9659
  }
9647
9660
  ) })
9648
9661
  ] });
9649
- const fullItems = /* @__PURE__ */ jsxs76(Fragment27, { children: [
9650
- isAllowed(SUBSCRIPTION_MODIFY + subscriptionId) && subscriptionActions?.modify && /* @__PURE__ */ jsxs76(Fragment27, { children: [
9662
+ const fullItems = /* @__PURE__ */ jsxs77(Fragment27, { children: [
9663
+ isAllowed(SUBSCRIPTION_MODIFY + subscriptionId) && subscriptionActions?.modify && /* @__PURE__ */ jsxs77(Fragment27, { children: [
9651
9664
  /* @__PURE__ */ jsx152(MenuBlock, { title: t("modify") }),
9652
9665
  subscriptionActions.modify.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
9653
9666
  WfoSubscriptionActionsMenuItem,
@@ -9663,7 +9676,7 @@ var WfoSubscriptionActions = ({
9663
9676
  ))
9664
9677
  ] }),
9665
9678
  compactItems,
9666
- isAllowed(SUBSCRIPTION_TERMINATE + subscriptionId) && subscriptionActions?.terminate && /* @__PURE__ */ jsxs76(Fragment27, { children: [
9679
+ isAllowed(SUBSCRIPTION_TERMINATE + subscriptionId) && subscriptionActions?.terminate && /* @__PURE__ */ jsxs77(Fragment27, { children: [
9667
9680
  /* @__PURE__ */ jsx152(MenuBlock, { title: t("terminate") }),
9668
9681
  subscriptionActions.terminate.map((subscriptionAction, index) => /* @__PURE__ */ jsx152(
9669
9682
  WfoSubscriptionActionsMenuItem,
@@ -9709,7 +9722,7 @@ import {
9709
9722
 
9710
9723
  // src/components/WfoSubscription/WfoInUseByRelations.tsx
9711
9724
  import { useTranslations as useTranslations34 } from "next-intl";
9712
- import Link9 from "next/link";
9725
+ import Link10 from "next/link";
9713
9726
  import { Fragment as Fragment28, jsx as jsx153 } from "@emotion/react/jsx-runtime";
9714
9727
  var WfoInUseByRelations = ({ inUseByRelations }) => {
9715
9728
  const t = useTranslations34("subscriptions.detail");
@@ -9733,7 +9746,7 @@ var WfoInUseByRelations = ({ inUseByRelations }) => {
9733
9746
  },
9734
9747
  {
9735
9748
  key: t("description"),
9736
- value: /* @__PURE__ */ jsx153(Link9, { href: `${PATH_SUBSCRIPTIONS}/${inUseByRelationDetails.subscriptionId}`, target: "_blank", children: inUseByRelationDetails.description }),
9749
+ value: /* @__PURE__ */ jsx153(Link10, { href: `${PATH_SUBSCRIPTIONS}/${inUseByRelationDetails.subscriptionId}`, target: "_blank", children: inUseByRelationDetails.description }),
9737
9750
  textToCopy: inUseByRelationDetails.description
9738
9751
  },
9739
9752
  {
@@ -9815,7 +9828,7 @@ var getStyles6 = ({ theme, toSecondaryColor }) => {
9815
9828
  };
9816
9829
 
9817
9830
  // src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx
9818
- import { Fragment as Fragment29, jsx as jsx154, jsxs as jsxs77 } from "@emotion/react/jsx-runtime";
9831
+ import { Fragment as Fragment29, jsx as jsx154, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
9819
9832
  var HIDDEN_KEYS = ["title", "name", "label", "inUseByIds"];
9820
9833
  var WfoSubscriptionProductBlock = ({
9821
9834
  productBlock,
@@ -9843,18 +9856,18 @@ var WfoSubscriptionProductBlock = ({
9843
9856
  const isEmpty = (value) => {
9844
9857
  return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
9845
9858
  };
9846
- return /* @__PURE__ */ jsxs77(Fragment29, { children: [
9859
+ return /* @__PURE__ */ jsxs78(Fragment29, { children: [
9847
9860
  /* @__PURE__ */ jsx154(EuiSpacer15, { size: "m" }),
9848
- /* @__PURE__ */ jsxs77(
9861
+ /* @__PURE__ */ jsxs78(
9849
9862
  EuiPanel,
9850
9863
  {
9851
9864
  color: "transparent",
9852
9865
  hasShadow: false,
9853
9866
  css: isOutsideCurrentSubscription ? panelStyleOutsideCurrentSubscription : panelStyle,
9854
9867
  children: [
9855
- /* @__PURE__ */ jsxs77(EuiFlexGroup14, { children: [
9868
+ /* @__PURE__ */ jsxs78(EuiFlexGroup14, { children: [
9856
9869
  /* @__PURE__ */ jsx154(EuiFlexItem10, { grow: false, children: /* @__PURE__ */ jsx154("div", { css: isOutsideCurrentSubscription ? iconOutsideCurrentSubscriptionStyle : iconStyle, children: /* @__PURE__ */ jsx154(EuiIcon2, { type: "filebeatApp", color: "currentColor" }) }) }),
9857
- /* @__PURE__ */ jsxs77(EuiFlexItem10, { children: [
9870
+ /* @__PURE__ */ jsxs78(EuiFlexItem10, { children: [
9858
9871
  /* @__PURE__ */ jsx154(EuiText12, { grow: true, children: /* @__PURE__ */ jsx154("h3", { children: getProductBlockTitle(productBlock.productBlockInstanceValues) }) }),
9859
9872
  /* @__PURE__ */ jsx154(EuiText12, { size: "s", children: getFieldFromProductBlockInstanceValues(productBlock.productBlockInstanceValues, "name") })
9860
9873
  ] }),
@@ -9869,13 +9882,13 @@ var WfoSubscriptionProductBlock = ({
9869
9882
  ) })
9870
9883
  ] }),
9871
9884
  /* @__PURE__ */ jsx154(EuiSpacer15, { size: "m" }),
9872
- /* @__PURE__ */ jsx154("table", { width: "100%", children: /* @__PURE__ */ jsxs77("tbody", { children: [
9873
- isOutsideCurrentSubscription && /* @__PURE__ */ jsxs77("tr", { css: rowStyle, children: [
9885
+ /* @__PURE__ */ jsx154("table", { width: "100%", children: /* @__PURE__ */ jsxs78("tbody", { children: [
9886
+ isOutsideCurrentSubscription && /* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
9874
9887
  /* @__PURE__ */ jsx154("td", { css: leftColumnStyleWithAlignSelf, children: /* @__PURE__ */ jsx154("b", { children: t("ownerSubscriptionId") }) }),
9875
9888
  /* @__PURE__ */ jsx154("td", { children: /* @__PURE__ */ jsx154(
9876
9889
  WfoValueCell,
9877
9890
  {
9878
- value: /* @__PURE__ */ jsxs77(Fragment29, { children: [
9891
+ value: /* @__PURE__ */ jsxs78(Fragment29, { children: [
9879
9892
  /* @__PURE__ */ jsx154("a", { href: `${subscriptionPath}/${ownerSubscriptionId}`, target: "_blank", children: productBlock.subscription.description }),
9880
9893
  /* @__PURE__ */ jsx154(EuiText12, { css: outsideSubscriptionIdTextStyle, children: "-" }),
9881
9894
  getFirstUuidPart(ownerSubscriptionId)
@@ -9886,16 +9899,16 @@ var WfoSubscriptionProductBlock = ({
9886
9899
  }
9887
9900
  ) })
9888
9901
  ] }, -1),
9889
- showDetails && /* @__PURE__ */ jsxs77(Fragment29, { children: [
9890
- /* @__PURE__ */ jsxs77("tr", { css: rowStyle, children: [
9902
+ showDetails && /* @__PURE__ */ jsxs78(Fragment29, { children: [
9903
+ /* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
9891
9904
  /* @__PURE__ */ jsx154("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx154("b", { children: t("subscriptionInstanceId") }) }),
9892
9905
  /* @__PURE__ */ jsx154("td", { children: productBlock.subscriptionInstanceId })
9893
9906
  ] }, -2),
9894
- !isOutsideCurrentSubscription && /* @__PURE__ */ jsxs77("tr", { css: rowStyle, children: [
9907
+ !isOutsideCurrentSubscription && /* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
9895
9908
  /* @__PURE__ */ jsx154("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx154("b", { children: t("ownerSubscriptionId") }) }),
9896
9909
  /* @__PURE__ */ jsx154("td", { children: /* @__PURE__ */ jsx154(Fragment29, { children: /* @__PURE__ */ jsx154(EuiBadge2, { children: t("self") }) }) })
9897
9910
  ] }, -3),
9898
- /* @__PURE__ */ jsxs77("tr", { css: rowStyle, children: [
9911
+ /* @__PURE__ */ jsxs78("tr", { css: rowStyle, children: [
9899
9912
  /* @__PURE__ */ jsx154("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx154("b", { children: t("inUseByRelations") }) }),
9900
9913
  /* @__PURE__ */ jsx154("td", { children: inUseByRelations.length === 0 && "None" || /* @__PURE__ */ jsx154(WfoInUseByRelations, { inUseByRelations }) })
9901
9914
  ] }, -4)
@@ -9929,7 +9942,7 @@ var WfoSubscriptionProductBlock = ({
9929
9942
 
9930
9943
  // src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx
9931
9944
  import { EuiBadge as EuiBadge3 } from "@elastic/eui";
9932
- import { Fragment as Fragment30, jsx as jsx155, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
9945
+ import { Fragment as Fragment30, jsx as jsx155, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
9933
9946
  var KEY_CELL_CLASS_NAME = "key-cell";
9934
9947
  var VALUE_CELL_CLASS_NAME = "value-cell";
9935
9948
  var WfoProductBlockKeyValueRow = ({
@@ -9950,7 +9963,7 @@ var WfoProductBlockKeyValueRow = ({
9950
9963
  return /* @__PURE__ */ jsx155(Fragment30, { children: value2 });
9951
9964
  }
9952
9965
  };
9953
- return /* @__PURE__ */ jsxs78("tr", { className, css: rowStyle, children: [
9966
+ return /* @__PURE__ */ jsxs79("tr", { className, css: rowStyle, children: [
9954
9967
  /* @__PURE__ */ jsx155("td", { className: KEY_CELL_CLASS_NAME, css: leftColumnStyle, children: /* @__PURE__ */ jsx155("b", { children: camelToHuman(field) }) }),
9955
9968
  /* @__PURE__ */ jsx155("td", { className: VALUE_CELL_CLASS_NAME, children: getOverriddenValue(fieldValue, allFieldValues) ?? /* @__PURE__ */ jsx155(WfoProductBlockValue, { value }) })
9956
9969
  ] });
@@ -9990,7 +10003,7 @@ var getWfoButtonComboBoxStyles = ({ theme }) => {
9990
10003
  };
9991
10004
 
9992
10005
  // src/components/WfoButtonComboBox/WfoButtonComboBox.tsx
9993
- import { Fragment as Fragment31, jsx as jsx156, jsxs as jsxs79 } from "@emotion/react/jsx-runtime";
10006
+ import { Fragment as Fragment31, jsx as jsx156, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
9994
10007
  var WfoButtonComboBox = ({
9995
10008
  options,
9996
10009
  onOptionChange,
@@ -10006,7 +10019,7 @@ var WfoButtonComboBox = ({
10006
10019
  setOptionsState(options);
10007
10020
  }
10008
10021
  }, [isPopoverOpen, options]);
10009
- return /* @__PURE__ */ jsxs79(
10022
+ return /* @__PURE__ */ jsxs80(
10010
10023
  EuiPopover4,
10011
10024
  {
10012
10025
  initialFocus: `.euiSelectable .euiFieldSearch`,
@@ -10014,7 +10027,7 @@ var WfoButtonComboBox = ({
10014
10027
  isOpen: isPopoverOpen,
10015
10028
  closePopover: () => setPopoverOpen(false),
10016
10029
  children: [
10017
- title && /* @__PURE__ */ jsxs79(Fragment31, { children: [
10030
+ title && /* @__PURE__ */ jsxs80(Fragment31, { children: [
10018
10031
  /* @__PURE__ */ jsx156(EuiText13, { size: "s", css: titleStyle, children: title }),
10019
10032
  /* @__PURE__ */ jsx156(EuiSpacer16, { size: "s" })
10020
10033
  ] }),
@@ -10030,7 +10043,7 @@ var WfoButtonComboBox = ({
10030
10043
  setOptionsState(options2);
10031
10044
  },
10032
10045
  height: 200,
10033
- children: (list, search) => /* @__PURE__ */ jsxs79(Fragment31, { children: [
10046
+ children: (list, search) => /* @__PURE__ */ jsxs80(Fragment31, { children: [
10034
10047
  search,
10035
10048
  /* @__PURE__ */ jsx156(EuiSpacer16, { size: "s" }),
10036
10049
  list
@@ -10114,14 +10127,14 @@ var getStyles7 = ({ theme, toSecondaryColor }) => {
10114
10127
  };
10115
10128
 
10116
10129
  // src/icons/WfoXMarkSmall.tsx
10117
- import { jsx as jsx157, jsxs as jsxs80 } from "@emotion/react/jsx-runtime";
10118
- var WfoXMarkSmall = ({ width = 20, height = 20 }) => /* @__PURE__ */ jsxs80("svg", { width, height, viewBox: "0 -2 16 16", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: [
10130
+ import { jsx as jsx157, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
10131
+ var WfoXMarkSmall = ({ width = 20, height = 20 }) => /* @__PURE__ */ jsxs81("svg", { width, height, viewBox: "0 -2 16 16", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: [
10119
10132
  /* @__PURE__ */ jsx157("title", { children: "icon/x-mark" }),
10120
10133
  /* @__PURE__ */ jsx157("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx157("g", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", children: /* @__PURE__ */ jsx157("path", { d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z" }) }) })
10121
10134
  ] });
10122
10135
 
10123
10136
  // src/components/WfoTree/WfoTreeNodeListItem.tsx
10124
- import { jsx as jsx158, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
10137
+ import { jsx as jsx158, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
10125
10138
  var WfoTreeNodeListItem = ({ item, selected }) => {
10126
10139
  const t = useTranslations36("common");
10127
10140
  const { toggleSelectedId } = useContext6(TreeContext);
@@ -10129,7 +10142,7 @@ var WfoTreeNodeListItem = ({ item, selected }) => {
10129
10142
  const { selectedTreeItemStyle, treeItemStyle } = useWithOrchestratorTheme(getStyles7);
10130
10143
  const { isOutsideCurrentSubscription, id, label } = item;
10131
10144
  const textLabel = label.toString();
10132
- return /* @__PURE__ */ jsxs81(
10145
+ return /* @__PURE__ */ jsxs82(
10133
10146
  EuiFlexGroup15,
10134
10147
  {
10135
10148
  alignItems: "center",
@@ -10155,7 +10168,7 @@ var WfoTreeNodeListItem = ({ item, selected }) => {
10155
10168
  };
10156
10169
 
10157
10170
  // src/components/WfoTree/WfoTreeNode.tsx
10158
- import { jsx as jsx159, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
10171
+ import { jsx as jsx159, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
10159
10172
  var WfoTreeNode = ({ item, hasChildren, level }) => {
10160
10173
  const { theme } = useOrchestratorTheme();
10161
10174
  const { expandIconContainerStyle, treeContainerStyle } = useWithOrchestratorTheme(getStyles7);
@@ -10163,7 +10176,7 @@ var WfoTreeNode = ({ item, hasChildren, level }) => {
10163
10176
  const expanded = expandedIds.includes(item.id);
10164
10177
  const selected = selectedIds.includes(item.id);
10165
10178
  const expandIcon = expanded ? "arrowDown" : "arrowRight";
10166
- return /* @__PURE__ */ jsx159("div", { style: { paddingLeft: `${level * parseInt(theme.size.m)}px` }, children: /* @__PURE__ */ jsxs82(EuiFlexGroup16, { children: [
10179
+ return /* @__PURE__ */ jsx159("div", { style: { paddingLeft: `${level * parseInt(theme.size.m)}px` }, children: /* @__PURE__ */ jsxs83(EuiFlexGroup16, { children: [
10167
10180
  /* @__PURE__ */ jsx159(EuiFlexItem12, { grow: false, css: treeContainerStyle, children: hasChildren ? /* @__PURE__ */ jsx159(
10168
10181
  EuiIcon3,
10169
10182
  {
@@ -10178,7 +10191,7 @@ var WfoTreeNode = ({ item, hasChildren, level }) => {
10178
10191
  };
10179
10192
 
10180
10193
  // src/components/WfoTree/WfoTreeBranch.tsx
10181
- import { Fragment as Fragment32, jsx as jsx160, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
10194
+ import { Fragment as Fragment32, jsx as jsx160, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
10182
10195
  var WfoTreeBranch = ({ item, level }) => {
10183
10196
  const { expandedIds } = React40.useContext(TreeContext);
10184
10197
  const selected = expandedIds.includes(item.id);
@@ -10191,7 +10204,7 @@ var WfoTreeBranch = ({ item, level }) => {
10191
10204
  }
10192
10205
  return null;
10193
10206
  };
10194
- return /* @__PURE__ */ jsxs83(Fragment32, { children: [
10207
+ return /* @__PURE__ */ jsxs84(Fragment32, { children: [
10195
10208
  /* @__PURE__ */ jsx160(EuiListGroup, { flush: true, color: "primary", maxWidth: productBlockTreeWidth, children: /* @__PURE__ */ jsx160(WfoTreeNode, { item, hasChildren, level }) }),
10196
10209
  selected && renderBranches()
10197
10210
  ] });
@@ -10268,7 +10281,7 @@ var getPositionInTree = (tree, id) => {
10268
10281
  };
10269
10282
 
10270
10283
  // src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx
10271
- import { jsx as jsx162, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
10284
+ import { jsx as jsx162, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
10272
10285
  var EUI_OPTION_CHECKED_STATE_ON = "on";
10273
10286
  var WfoSubscriptionDetailTree = ({
10274
10287
  productBlockInstances,
@@ -10346,7 +10359,7 @@ var WfoSubscriptionDetailTree = ({
10346
10359
  expandAll();
10347
10360
  return shouldAddIds ? selectIds(data.ids) : deselectIds(data.ids);
10348
10361
  };
10349
- return /* @__PURE__ */ jsxs84(
10362
+ return /* @__PURE__ */ jsxs85(
10350
10363
  EuiFlexGroup17,
10351
10364
  {
10352
10365
  css: {
@@ -10364,10 +10377,10 @@ var WfoSubscriptionDetailTree = ({
10364
10377
  overflowY: "auto"
10365
10378
  },
10366
10379
  grow: true,
10367
- children: /* @__PURE__ */ jsxs84(EuiFlexGroup17, { direction: "column", children: [
10368
- /* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */ jsxs84(EuiFlexGroup17, { justifyContent: "spaceBetween", alignItems: "center", children: [
10380
+ children: /* @__PURE__ */ jsxs85(EuiFlexGroup17, { direction: "column", children: [
10381
+ /* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */ jsxs85(EuiFlexGroup17, { justifyContent: "spaceBetween", alignItems: "center", children: [
10369
10382
  /* @__PURE__ */ jsx162(EuiFlexItem13, { children: /* @__PURE__ */ jsx162(EuiText15, { children: /* @__PURE__ */ jsx162("h3", { children: t("productBlocks") }) }) }),
10370
- /* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */ jsxs84(EuiFlexGroup17, { children: [
10383
+ /* @__PURE__ */ jsx162(EuiFlexItem13, { grow: false, children: /* @__PURE__ */ jsxs85(EuiFlexGroup17, { children: [
10371
10384
  /* @__PURE__ */ jsx162(
10372
10385
  WfoTextAnchor,
10373
10386
  {
@@ -10386,7 +10399,7 @@ var WfoSubscriptionDetailTree = ({
10386
10399
  )
10387
10400
  ] }) })
10388
10401
  ] }) }),
10389
- /* @__PURE__ */ jsxs84(EuiFlexItem13, { grow: true, children: [
10402
+ /* @__PURE__ */ jsxs85(EuiFlexItem13, { grow: true, children: [
10390
10403
  !tree && /* @__PURE__ */ jsx162(WfoLoading, {}),
10391
10404
  tree && /* @__PURE__ */ jsx162(WfoTree, { treeBlocks: [tree], depthList })
10392
10405
  ] })
@@ -10401,7 +10414,7 @@ var WfoSubscriptionDetailTree = ({
10401
10414
  minWidth: 350
10402
10415
  },
10403
10416
  grow: true,
10404
- children: /* @__PURE__ */ jsxs84("div", { children: [
10417
+ children: /* @__PURE__ */ jsxs85("div", { children: [
10405
10418
  /* @__PURE__ */ jsx162("div", { children: "\xA0" }),
10406
10419
  " ",
10407
10420
  selectedIds.length === 0 && /* @__PURE__ */ jsx162(
@@ -10414,7 +10427,7 @@ var WfoSubscriptionDetailTree = ({
10414
10427
  size: "m",
10415
10428
  title: t("noProductBlockSelected"),
10416
10429
  iconType: "inspect",
10417
- children: /* @__PURE__ */ jsxs84(EuiText15, { children: [
10430
+ children: /* @__PURE__ */ jsxs85(EuiText15, { children: [
10418
10431
  t("ctaSelectProductBlock"),
10419
10432
  " "
10420
10433
  ] })
@@ -10634,7 +10647,7 @@ var WfoInlineEdit = ({ value, onlyShowOnHover = false, onSave = () => {
10634
10647
  };
10635
10648
 
10636
10649
  // src/components/WfoSubscription/WfoCustomerDescriptionsField.tsx
10637
- import { jsx as jsx165, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
10650
+ import { jsx as jsx165, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
10638
10651
  var WfoCustomerDescriptionsField = ({
10639
10652
  customerDescriptions,
10640
10653
  subscriptionCustomerId,
@@ -10668,8 +10681,8 @@ var WfoCustomerDescriptionsField = ({
10668
10681
  description,
10669
10682
  id,
10670
10683
  subscriptionId: subscriptionId2
10671
- }) => /* @__PURE__ */ jsxs85("div", { css: { display: "flex" }, children: [
10672
- /* @__PURE__ */ jsxs85("div", { css: customerDescriptionsCustomerNameStyle, children: [
10684
+ }) => /* @__PURE__ */ jsxs86("div", { css: { display: "flex" }, children: [
10685
+ /* @__PURE__ */ jsxs86("div", { css: customerDescriptionsCustomerNameStyle, children: [
10673
10686
  fullname ?? customerId,
10674
10687
  " ",
10675
10688
  `${shortcode ?? customerId}`,
@@ -10706,7 +10719,7 @@ var WfoCustomerDescriptionsField = ({
10706
10719
  const currentCustomerSubscriptionDescription = customerDescriptionsWithName.find(
10707
10720
  ({ customerId }) => customerId === subscriptionCustomerId
10708
10721
  );
10709
- return /* @__PURE__ */ jsxs85("div", { css: customerDescriptionsFormStyle, children: [
10722
+ return /* @__PURE__ */ jsxs86("div", { css: customerDescriptionsFormStyle, children: [
10710
10723
  currentCustomerSubscriptionDescription && customerDescriptionEditForm(currentCustomerSubscriptionDescription) || customerDescriptionCreateForm(),
10711
10724
  customerDescriptionsWithName.filter(({ customerId }) => customerId !== subscriptionCustomerId).map((customerDescriptionWithName) => customerDescriptionEditForm(customerDescriptionWithName))
10712
10725
  ] });
@@ -10734,7 +10747,7 @@ var getWfoTableSettingsModalStyles = (wfoThemeHelpers) => {
10734
10747
  };
10735
10748
 
10736
10749
  // src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx
10737
- import { jsx as jsx166, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
10750
+ import { jsx as jsx166, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
10738
10751
  var TableSettingsModal = ({
10739
10752
  tableConfig,
10740
10753
  pageSizeOptions,
@@ -10769,8 +10782,8 @@ var TableSettingsModal = ({
10769
10782
  columns,
10770
10783
  selectedPageSize
10771
10784
  }),
10772
- children: /* @__PURE__ */ jsxs86(EuiForm2, { children: [
10773
- columns.map(({ field, name, isVisible }) => /* @__PURE__ */ jsxs86("div", { children: [
10785
+ children: /* @__PURE__ */ jsxs87(EuiForm2, { children: [
10786
+ columns.map(({ field, name, isVisible }) => /* @__PURE__ */ jsxs87("div", { children: [
10774
10787
  /* @__PURE__ */ jsx166(EuiFormRow5, { display: "columnCompressed", label: name, css: formRowStyle, children: /* @__PURE__ */ jsx166(
10775
10788
  EuiSwitch2,
10776
10789
  {
@@ -10913,10 +10926,10 @@ var WfoSortButton = ({ WfoIconComponent, isActive, onClick }) => {
10913
10926
  };
10914
10927
 
10915
10928
  // src/components/WfoTable/WfoSortButtons/WfoSortButtons.tsx
10916
- import { jsx as jsx169, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
10929
+ import { jsx as jsx169, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
10917
10930
  var WfoSortButtons = ({ sortOrder, onChangeSortOrder }) => {
10918
10931
  const { sortButtonsContainerStyle } = getStyles8();
10919
- return /* @__PURE__ */ jsxs87("div", { css: sortButtonsContainerStyle, children: [
10932
+ return /* @__PURE__ */ jsxs88("div", { css: sortButtonsContainerStyle, children: [
10920
10933
  /* @__PURE__ */ jsx169(
10921
10934
  WfoSortButton,
10922
10935
  {
@@ -10965,11 +10978,11 @@ var getStyles9 = ({ theme }) => {
10965
10978
  };
10966
10979
 
10967
10980
  // src/components/WfoTable/WfoFirstPartUUID/WfoFirstPartUUID.tsx
10968
- import { jsx as jsx170, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
10981
+ import { jsx as jsx170, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
10969
10982
  var WfoFirstPartUUID = ({ UUID, showCopyIcon = true }) => {
10970
10983
  const { uuidFieldStyle, clickable } = useWithOrchestratorTheme(getStyles9);
10971
10984
  const { theme } = useOrchestratorTheme();
10972
- return /* @__PURE__ */ jsxs88("span", { css: uuidFieldStyle, children: [
10985
+ return /* @__PURE__ */ jsxs89("span", { css: uuidFieldStyle, children: [
10973
10986
  getFirstUuidPart(UUID),
10974
10987
  showCopyIcon && /* @__PURE__ */ jsx170(EuiCopy2, { textToCopy: UUID, children: (copy) => /* @__PURE__ */ jsx170("div", { className: COPY_ICON_CLASS, onClick: copy, css: clickable, children: /* @__PURE__ */ jsx170(WfoClipboardCopy, { width: 16, height: 16, color: theme.colors.backgroundBaseAccent }) }) })
10975
10988
  ] });
@@ -11049,7 +11062,7 @@ var toSortedTableColumnConfig = (columnConfig, columnKeys) => columnKeys.reduce(
11049
11062
  import { useEffect as useEffect15, useState as useState25 } from "react";
11050
11063
  import { useTranslations as useTranslations39 } from "next-intl";
11051
11064
  import { EuiButton as EuiButton9, EuiButtonIcon as EuiButtonIcon11, EuiFlexGroup as EuiFlexGroup18, EuiFlexItem as EuiFlexItem15, EuiSpacer as EuiSpacer18, EuiText as EuiText16 } from "@elastic/eui";
11052
- import { Fragment as Fragment34, jsx as jsx174, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
11065
+ import { Fragment as Fragment34, jsx as jsx174, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
11053
11066
  var WfoAdvancedTable = ({
11054
11067
  tableColumnConfig,
11055
11068
  defaultHiddenColumns = [],
@@ -11126,8 +11139,8 @@ var WfoAdvancedTable = ({
11126
11139
  span: (chunks) => /* @__PURE__ */ jsx174("span", { children: chunks }),
11127
11140
  b: (chunks) => /* @__PURE__ */ jsx174("b", { children: chunks })
11128
11141
  });
11129
- return /* @__PURE__ */ jsxs89(Fragment34, { children: [
11130
- /* @__PURE__ */ jsxs89(EuiFlexGroup18, { alignItems: "center", children: [
11142
+ return /* @__PURE__ */ jsxs90(Fragment34, { children: [
11143
+ /* @__PURE__ */ jsxs90(EuiFlexGroup18, { alignItems: "center", children: [
11131
11144
  /* @__PURE__ */ jsx174(EuiFlexItem15, { children: !disableSearch && /* @__PURE__ */ jsx174(WfoSearchField, { queryString, onUpdateQueryString }) }),
11132
11145
  /* @__PURE__ */ jsx174(EuiFlexItem15, { grow: false, children: !disableSearch && /* @__PURE__ */ jsx174(
11133
11146
  EuiButtonIcon11,
@@ -11514,7 +11527,7 @@ var WfoDropdownButton = ({ label, isDisabled = false, children }) => {
11514
11527
 
11515
11528
  // src/components/WfoProcessList/WfoProcessesList.tsx
11516
11529
  import { useTranslations as useTranslations68 } from "next-intl";
11517
- import Link12 from "next/link";
11530
+ import Link13 from "next/link";
11518
11531
  import { useRouter as useRouter17 } from "next/router";
11519
11532
 
11520
11533
  // src/pages/metadata/WfoProductBlocksPage.tsx
@@ -11532,7 +11545,7 @@ var WfoMetadataDescriptionField = ({ onSave, description }) => {
11532
11545
  import { useTranslations as useTranslations41 } from "next-intl";
11533
11546
  import { useRouter as useRouter7 } from "next/router";
11534
11547
  import { EuiSpacer as EuiSpacer19, EuiTab as EuiTab2, EuiTabs as EuiTabs2 } from "@elastic/eui";
11535
- import { Fragment as Fragment37, jsx as jsx185, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
11548
+ import { Fragment as Fragment37, jsx as jsx185, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
11536
11549
  var metaDataTabs = [
11537
11550
  {
11538
11551
  id: 1,
@@ -11569,7 +11582,7 @@ var WfoMetadataPageLayout = ({ children, tabs = metaDataTabs }) => {
11569
11582
  const router = useRouter7();
11570
11583
  const t = useTranslations41("metadata");
11571
11584
  const currentPath = router.pathname;
11572
- return /* @__PURE__ */ jsxs90(Fragment37, { children: [
11585
+ return /* @__PURE__ */ jsxs91(Fragment37, { children: [
11573
11586
  /* @__PURE__ */ jsx185(WfoContentHeader, { title: t("title") }),
11574
11587
  /* @__PURE__ */ jsx185(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx185(EuiTab2, { isSelected: path === currentPath, onClick: () => router.push(path), children: t(`tabs.${name}`) }, id)) }),
11575
11588
  /* @__PURE__ */ jsx185(EuiSpacer19, { size: "l" }),
@@ -11578,7 +11591,7 @@ var WfoMetadataPageLayout = ({ children, tabs = metaDataTabs }) => {
11578
11591
  };
11579
11592
 
11580
11593
  // src/pages/metadata/WfoProductBlocksPage.tsx
11581
- import { Fragment as Fragment38, jsx as jsx186, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
11594
+ import { Fragment as Fragment38, jsx as jsx186, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
11582
11595
  var PRODUCT_BLOCK_FIELD_NAME = "name";
11583
11596
  var WfoProductBlocksPage = () => {
11584
11597
  const t = useTranslations42("metadata.productBlocks");
@@ -11660,7 +11673,7 @@ var WfoProductBlocksPage = () => {
11660
11673
  index
11661
11674
  )) }),
11662
11675
  renderTooltip: (productBlocks) => {
11663
- return productBlocks.map((productBlock) => /* @__PURE__ */ jsxs91("p", { children: [
11676
+ return productBlocks.map((productBlock) => /* @__PURE__ */ jsxs92("p", { children: [
11664
11677
  "- ",
11665
11678
  productBlock.name
11666
11679
  ] }, productBlock.name));
@@ -11689,7 +11702,7 @@ var WfoProductBlocksPage = () => {
11689
11702
  index
11690
11703
  )) }),
11691
11704
  renderTooltip: (resourceTypes) => {
11692
- return resourceTypes.map((resourceType) => /* @__PURE__ */ jsxs91("p", { children: [
11705
+ return resourceTypes.map((resourceType) => /* @__PURE__ */ jsxs92("p", { children: [
11693
11706
  "- ",
11694
11707
  resourceType.resourceType
11695
11708
  ] }, resourceType.resourceType));
@@ -11777,7 +11790,7 @@ var WfoProductBlocksPage = () => {
11777
11790
  import { useEffect as useEffect17, useState as useState28 } from "react";
11778
11791
  import { useTranslations as useTranslations43 } from "next-intl";
11779
11792
  import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
11780
- import { Fragment as Fragment39, jsx as jsx187, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
11793
+ import { Fragment as Fragment39, jsx as jsx187, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
11781
11794
  var RESOURCE_TYPE_FIELD_TYPE = "resourceType";
11782
11795
  var WfoResourceTypesPage = () => {
11783
11796
  const t = useTranslations43("metadata.resourceTypes");
@@ -11858,7 +11871,7 @@ var WfoResourceTypesPage = () => {
11858
11871
  index
11859
11872
  )) }),
11860
11873
  renderTooltip: (productBlocks) => {
11861
- return productBlocks.map((productBlock) => /* @__PURE__ */ jsxs92("p", { children: [
11874
+ return productBlocks.map((productBlock) => /* @__PURE__ */ jsxs93("p", { children: [
11862
11875
  "- ",
11863
11876
  productBlock.name
11864
11877
  ] }, productBlock.name));
@@ -11926,7 +11939,7 @@ var WfoResourceTypesPage = () => {
11926
11939
  // src/pages/metadata/WfoProductsPage.tsx
11927
11940
  import { useEffect as useEffect18, useState as useState29 } from "react";
11928
11941
  import { useTranslations as useTranslations44 } from "next-intl";
11929
- import { Fragment as Fragment40, jsx as jsx188, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
11942
+ import { Fragment as Fragment40, jsx as jsx188, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
11930
11943
  var PRODUCT_FIELD_NAME = "name";
11931
11944
  var WfoProductsPage = () => {
11932
11945
  const t = useTranslations44("metadata.products");
@@ -12005,7 +12018,7 @@ var WfoProductsPage = () => {
12005
12018
  width: "400px",
12006
12019
  renderData: (fixedInputs) => /* @__PURE__ */ jsx188(Fragment40, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx188(WfoProductBlockBadge, { badgeType: "fixed_input" /* FIXED_INPUT */, children: `${fixedInput.name}: ${fixedInput.value}` }, index)) }),
12007
12020
  renderTooltip: (fixedInputs) => {
12008
- return fixedInputs.map((fixedInput) => /* @__PURE__ */ jsxs93("p", { children: [
12021
+ return fixedInputs.map((fixedInput) => /* @__PURE__ */ jsxs94("p", { children: [
12009
12022
  "- ",
12010
12023
  `${fixedInput.name}: ${fixedInput.value}`
12011
12024
  ] }, fixedInput.name));
@@ -12024,7 +12037,7 @@ var WfoProductsPage = () => {
12024
12037
  },
12025
12038
  index
12026
12039
  )) }),
12027
- renderTooltip: (productBlocks) => productBlocks.map((productBlock) => /* @__PURE__ */ jsxs93("p", { children: [
12040
+ renderTooltip: (productBlocks) => productBlocks.map((productBlock) => /* @__PURE__ */ jsxs94("p", { children: [
12028
12041
  "- ",
12029
12042
  productBlock.name
12030
12043
  ] }, productBlock.name))
@@ -12135,7 +12148,7 @@ var graphQlWorkflowListMapper = ({ field, order }) => ({
12135
12148
  });
12136
12149
 
12137
12150
  // src/pages/metadata/WfoWorkflowsPage.tsx
12138
- import { Fragment as Fragment41, jsx as jsx189, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
12151
+ import { Fragment as Fragment41, jsx as jsx189, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
12139
12152
  var WfoWorkflowsPage = () => {
12140
12153
  const t = useTranslations45("metadata.workflows");
12141
12154
  const tError = useTranslations45("errors");
@@ -12219,7 +12232,7 @@ var WfoWorkflowsPage = () => {
12219
12232
  index
12220
12233
  )) }),
12221
12234
  renderTooltip: (productTags) => {
12222
- return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */ jsxs94("p", { children: [
12235
+ return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */ jsxs95("p", { children: [
12223
12236
  "- ",
12224
12237
  productTag
12225
12238
  ] }, productTag));
@@ -12333,7 +12346,7 @@ var graphQlTaskListMapper = ({ field, order }) => ({
12333
12346
  });
12334
12347
 
12335
12348
  // src/pages/metadata/WfoTasksPage.tsx
12336
- import { Fragment as Fragment42, jsx as jsx190, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
12349
+ import { Fragment as Fragment42, jsx as jsx190, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
12337
12350
  var ScheduleTaskPopoverMenu = ({ workflowId }) => {
12338
12351
  const [isPopoverOpen, setIsPopoverOpen] = useState31(false);
12339
12352
  const button = /* @__PURE__ */ jsx190(
@@ -12458,7 +12471,7 @@ var WfoTasksPage = () => {
12458
12471
  index
12459
12472
  )) }),
12460
12473
  renderTooltip: (productTags) => {
12461
- return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */ jsxs95("p", { children: [
12474
+ return productTags?.filter(onlyUnique).sort((tagA, tagB) => tagA.localeCompare(tagB)).map((productTag) => /* @__PURE__ */ jsxs96("p", { children: [
12462
12475
  "- ",
12463
12476
  productTag
12464
12477
  ] }, productTag));
@@ -12555,7 +12568,7 @@ import { useEffect as useEffect21, useState as useState32 } from "react";
12555
12568
  import { useTranslations as useTranslations47 } from "next-intl";
12556
12569
  import { useRouter as useRouter9 } from "next/router";
12557
12570
  import { EuiButton as EuiButton10, EuiFlexGroup as EuiFlexGroup19, EuiFlexItem as EuiFlexItem16 } from "@elastic/eui";
12558
- import { jsx as jsx191, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
12571
+ import { jsx as jsx191, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
12559
12572
  var TASK_NAME_FIELD = "name";
12560
12573
  var WfoWorkflowNameById = ({ workflowId }) => {
12561
12574
  const { workflowName } = useGetWorkflowNameById(workflowId);
@@ -12616,7 +12629,7 @@ var WfoScheduledTasksPage = () => {
12616
12629
  label: t("schedule"),
12617
12630
  width: "255px",
12618
12631
  isSortable: false,
12619
- renderData: (trigger) => /* @__PURE__ */ jsxs96(EuiFlexGroup19, { gutterSize: "s", justifyContent: "flexStart", alignItems: "center", children: [
12632
+ renderData: (trigger) => /* @__PURE__ */ jsxs97(EuiFlexGroup19, { gutterSize: "s", justifyContent: "flexStart", alignItems: "center", children: [
12620
12633
  /* @__PURE__ */ jsx191(EuiFlexItem16, { grow: 0, children: /* @__PURE__ */ jsx191(WfoScheduledTasksBadges, { workflowSchedules: [trigger] }) }),
12621
12634
  /* @__PURE__ */ jsx191(EuiFlexItem16, { children: trigger })
12622
12635
  ] })
@@ -12704,18 +12717,161 @@ var WfoScheduledTasksPage = () => {
12704
12717
  };
12705
12718
 
12706
12719
  // src/pages/metadata/WfoScheduleTaskFormPage.tsx
12720
+ import { useCallback as useCallback7, useMemo as useMemo2 } from "react";
12707
12721
  import _4 from "lodash";
12708
- import { useTranslations as useTranslations48 } from "next-intl";
12722
+ import { useTranslations as useTranslations50 } from "next-intl";
12709
12723
  import { useRouter as useRouter10 } from "next/router";
12710
- import {
12711
- PydanticForm as PydanticForm2,
12712
- PydanticFormApiResponseType,
12713
- PydanticFormFieldFormat as PydanticFormFieldFormat2,
12714
- PydanticFormFieldType as PydanticFormFieldType2
12715
- } from "pydantic-forms";
12716
- import { Fragment as Fragment43, jsx as jsx192, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
12717
- var WfoScheduleTaskFormPage = () => {
12718
- const t = useTranslations48("metadata.scheduleTaskForm");
12724
+ import { PydanticForm as PydanticForm2 } from "pydantic-forms";
12725
+ import { PydanticFormApiResponseType, PydanticFormFieldFormat as PydanticFormFieldFormat2, PydanticFormFieldType as PydanticFormFieldType2 } from "pydantic-forms";
12726
+
12727
+ // src/components/WfoPydanticForm/Footer.tsx
12728
+ import { useCallback as useCallback6, useContext as useContext8, useEffect as useEffect22 } from "react";
12729
+ import { useTranslations as useTranslations49 } from "next-intl";
12730
+ import { EuiButton as EuiButton11, EuiFlexGroup as EuiFlexGroup20, EuiHorizontalRule as EuiHorizontalRule5 } from "@elastic/eui";
12731
+
12732
+ // src/components/WfoPydanticForm/RenderFormErrors.tsx
12733
+ import { useTranslations as useTranslations48 } from "next-intl";
12734
+ import { useGetValidationErrors } from "pydantic-forms";
12735
+ import { Fragment as Fragment43, jsx as jsx192, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
12736
+ var RenderFormErrors = () => {
12737
+ const { errorStyle } = useWithOrchestratorTheme(getCommonFormFieldStyles);
12738
+ const errorDetails = useGetValidationErrors();
12739
+ const t = useTranslations48("pydanticForms.userInputForm");
12740
+ if (!errorDetails) {
12741
+ return /* @__PURE__ */ jsx192(Fragment43, {});
12742
+ }
12743
+ const errors = errorDetails.source;
12744
+ const rootError = errors.filter((err) => err.loc.includes("__root__")).shift();
12745
+ const otherErrors = errors.filter((err) => !err.loc.includes("__root__"));
12746
+ return /* @__PURE__ */ jsxs98("em", { css: errorStyle, children: [
12747
+ rootError && /* @__PURE__ */ jsx192("div", { children: rootError.msg }),
12748
+ otherErrors?.length >= 1 && t("inputFieldsHaveValidationErrors", {
12749
+ nrOfValidationErrors: otherErrors.length
12750
+ })
12751
+ ] });
12752
+ };
12753
+
12754
+ // src/components/WfoPydanticForm/Footer.tsx
12755
+ import { jsx as jsx193, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
12756
+ var submitButtonId = "button-submit-form-submit";
12757
+ var previousButtonId = "button-submit-form-previous";
12758
+ var cancelButtonId = "button-submit-form-cancel";
12759
+ var Footer = ({ onCancel, onPrevious, hasNext, hasPrevious, isTask = false, buttons }) => {
12760
+ const { theme } = useOrchestratorTheme();
12761
+ const t = useTranslations49("pydanticForms.userInputForm");
12762
+ const { showConfirmDialog } = useContext8(ConfirmationDialogContext);
12763
+ const handlePrevious = useCallback6(() => {
12764
+ if (onCancel) {
12765
+ showConfirmDialog({
12766
+ question: t("previousQuestion"),
12767
+ onConfirm: onCancel
12768
+ });
12769
+ }
12770
+ }, [onCancel, showConfirmDialog, t]);
12771
+ const { next, previous } = buttons || {};
12772
+ useEffect22(() => {
12773
+ const handleKeyDown = (event) => {
12774
+ const isPrimary = event.metaKey || event.ctrlKey;
12775
+ if (isPrimary && event.key === "ArrowLeft") {
12776
+ event.preventDefault();
12777
+ if (hasPrevious) {
12778
+ onPrevious?.();
12779
+ } else {
12780
+ handlePrevious();
12781
+ }
12782
+ }
12783
+ if (isPrimary && event.key === "ArrowRight") {
12784
+ event.preventDefault();
12785
+ document.getElementById(submitButtonId)?.click();
12786
+ }
12787
+ };
12788
+ window.addEventListener("keydown", handleKeyDown);
12789
+ return () => window.removeEventListener("keydown", handleKeyDown);
12790
+ }, [hasPrevious, hasNext, onPrevious, onCancel, handlePrevious]);
12791
+ const PreviousButton = () => {
12792
+ const previousButtonColor = theme.colors[previous?.color ?? "primary"];
12793
+ return /* @__PURE__ */ jsx193(
12794
+ EuiButton11,
12795
+ {
12796
+ "data-testid": previousButtonId,
12797
+ id: previousButtonId,
12798
+ tabIndex: 0,
12799
+ fill: true,
12800
+ onClick: () => {
12801
+ if (onPrevious) {
12802
+ onPrevious();
12803
+ }
12804
+ },
12805
+ css: {
12806
+ backgroundColor: previousButtonColor.toString(),
12807
+ padding: "12px"
12808
+ },
12809
+ iconSide: "right",
12810
+ "aria-label": t("previous"),
12811
+ children: previous?.text ?? t("previous")
12812
+ }
12813
+ );
12814
+ };
12815
+ const CancelButton = () => /* @__PURE__ */ jsx193(
12816
+ "div",
12817
+ {
12818
+ "data-testid": cancelButtonId,
12819
+ onClick: handlePrevious,
12820
+ css: {
12821
+ cursor: "pointer",
12822
+ color: theme.colors.link,
12823
+ fontWeight: theme.font.weight.bold,
12824
+ marginLeft: theme.base / 2,
12825
+ display: "flex",
12826
+ alignItems: "center"
12827
+ },
12828
+ children: t("cancel")
12829
+ }
12830
+ );
12831
+ const SubmitButton = () => {
12832
+ const submitButtonTranslated = hasNext ? t("next") : isTask ? t("startTask") : t("startWorkflow");
12833
+ const submitButtonLabel = next?.text ?? submitButtonTranslated;
12834
+ const submitIconType = !hasNext && !next?.text ? () => /* @__PURE__ */ jsx193(WfoPlayCircle, { color: "currentColor" }) : void 0;
12835
+ const submitButtonColor = next?.color ? next?.color : "primary";
12836
+ return /* @__PURE__ */ jsx193(
12837
+ EuiButton11,
12838
+ {
12839
+ "data-testid": submitButtonId,
12840
+ id: submitButtonId,
12841
+ tabIndex: 0,
12842
+ fill: true,
12843
+ css: {
12844
+ backgroundColor: submitButtonColor,
12845
+ padding: "12px"
12846
+ },
12847
+ type: "submit",
12848
+ iconSide: "right",
12849
+ iconType: submitIconType,
12850
+ "aria-label": submitButtonLabel,
12851
+ children: submitButtonLabel
12852
+ }
12853
+ );
12854
+ };
12855
+ const PreviousCancelButtonGroup = () => {
12856
+ return /* @__PURE__ */ jsxs99(EuiFlexGroup20, { gutterSize: "xl", children: [
12857
+ /* @__PURE__ */ jsx193(PreviousButton, {}),
12858
+ /* @__PURE__ */ jsx193(CancelButton, {})
12859
+ ] });
12860
+ };
12861
+ return /* @__PURE__ */ jsxs99("div", { "data-testid": "pydantic-form-footer", children: [
12862
+ /* @__PURE__ */ jsx193(RenderFormErrors, {}),
12863
+ /* @__PURE__ */ jsx193(EuiHorizontalRule5, {}),
12864
+ /* @__PURE__ */ jsxs99("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
12865
+ /* @__PURE__ */ jsx193("div", { children: hasPrevious && /* @__PURE__ */ jsx193(PreviousCancelButtonGroup, {}) || /* @__PURE__ */ jsx193(CancelButton, {}) }),
12866
+ /* @__PURE__ */ jsx193(SubmitButton, {})
12867
+ ] })
12868
+ ] });
12869
+ };
12870
+
12871
+ // src/pages/metadata/WfoScheduleTaskFormPage.tsx
12872
+ import { Fragment as Fragment44, jsx as jsx194, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
12873
+ var WfoScheduleTaskFormPageHardCoded = () => {
12874
+ const t = useTranslations50("metadata.scheduleTaskForm");
12719
12875
  const { showToastMessage } = useShowToastMessage();
12720
12876
  const [createScheduledTask, mutationState] = useCreateScheduledTaskMutation();
12721
12877
  const { data, isLoading } = useGetTasksQuery({
@@ -12900,13 +13056,15 @@ var WfoScheduleTaskFormPage = () => {
12900
13056
  }
12901
13057
  if (userInputStep1.taskType === "date" /* DATE */) {
12902
13058
  return {
12903
- type: userInputStep1.taskType,
12904
- workflowId: task.workflowId,
12905
- workflowDescription: task.description,
12906
- workflowName: task.name,
12907
- kwargs: {
13059
+ scheduled_type: "create",
13060
+ workflow_id: task.workflowId,
13061
+ workflow_name: task.name,
13062
+ name: task.description,
13063
+ trigger: userInputStep1.taskType,
13064
+ trigger_kwargs: {
12908
13065
  run_date: startDate
12909
- }
13066
+ },
13067
+ user_inputs: []
12910
13068
  };
12911
13069
  } else if (userInputStep1.taskType === "interval" /* INTERVAL */) {
12912
13070
  const step2Input = userInputStep2;
@@ -12915,23 +13073,27 @@ var WfoScheduleTaskFormPage = () => {
12915
13073
  throw new Error("Unknown or missing task interval");
12916
13074
  }
12917
13075
  return {
12918
- type: userInputStep1.taskType,
12919
- workflowId: task.workflowId,
12920
- workflowDescription: task.description,
12921
- workflowName: task.name,
12922
- kwargs: {
13076
+ scheduled_type: "create",
13077
+ workflow_id: task.workflowId,
13078
+ workflow_name: task.name,
13079
+ name: task.description,
13080
+ trigger: userInputStep1.taskType,
13081
+ trigger_kwargs: {
12923
13082
  start_date: startDate,
12924
13083
  ...intervalArg
12925
- }
13084
+ },
13085
+ user_inputs: []
12926
13086
  };
12927
13087
  } else if (userInputStep1.taskType === "cron" /* CRON */) {
12928
13088
  const step2Input = userInputStep2;
12929
13089
  return {
12930
- type: userInputStep1.taskType,
12931
- workflowId: task.workflowId,
12932
- workflowDescription: task.description,
12933
- workflowName: task.name,
12934
- kwargs: getCronKwargs(step2Input.cron, startDate)
13090
+ scheduled_type: "create",
13091
+ workflow_id: task.workflowId,
13092
+ workflow_name: task.name,
13093
+ name: task.description,
13094
+ trigger: userInputStep1.taskType,
13095
+ trigger_kwargs: getCronKwargs(step2Input.cron, startDate),
13096
+ user_inputs: []
12935
13097
  };
12936
13098
  }
12937
13099
  throw new Error("Unknown or missing task type");
@@ -13031,9 +13193,9 @@ var WfoScheduleTaskFormPage = () => {
13031
13193
  console.error("Error saving scheduled task", mutationState);
13032
13194
  return void 0;
13033
13195
  }
13034
- return /* @__PURE__ */ jsxs97(Fragment43, { children: [
13035
- /* @__PURE__ */ jsx192(WfoContentHeader, { title: t("newSchedule") }),
13036
- isLoading && /* @__PURE__ */ jsx192(WfoLoading, {}) || /* @__PURE__ */ jsx192(
13196
+ return /* @__PURE__ */ jsxs100(Fragment44, { children: [
13197
+ /* @__PURE__ */ jsx194(WfoContentHeader, { title: t("newSchedule") }),
13198
+ isLoading && /* @__PURE__ */ jsx194(WfoLoading, {}) || /* @__PURE__ */ jsx194(
13037
13199
  PydanticForm2,
13038
13200
  {
13039
13201
  formKey: "add-schedule-key",
@@ -13045,12 +13207,97 @@ var WfoScheduleTaskFormPage = () => {
13045
13207
  )
13046
13208
  ] });
13047
13209
  };
13210
+ var START_SCHEDULE_PAYLOAD = {};
13211
+ var WfoScheduleTaskFormPageBackend = () => {
13212
+ const { showToastMessage } = useShowToastMessage();
13213
+ const generateFormId = useMemo2(() => {
13214
+ return `${JSON.stringify(START_SCHEDULE_PAYLOAD)}`;
13215
+ }, []);
13216
+ const [startForm] = useStartFormMutation();
13217
+ const [createScheduledTask, mutationState] = useCreateScheduledTaskMutation();
13218
+ const router = useRouter10();
13219
+ const onSuccess = useCallback7(
13220
+ async (_fieldValues, req) => {
13221
+ const request = req;
13222
+ if (request?.data?.workflow_id) {
13223
+ const resp = await createScheduledTask(request.data);
13224
+ if (!resp?.error) {
13225
+ router.replace(PATH_METADATA_SCHEDULED_TASKS);
13226
+ }
13227
+ }
13228
+ },
13229
+ [router, createScheduledTask]
13230
+ );
13231
+ const getPydanticFormProvider = useCallback7(() => {
13232
+ const pydanticFormProvider = async ({ requestBody = [], formKey }) => {
13233
+ const userInputs = _4.isEmpty(START_SCHEDULE_PAYLOAD) ? [...requestBody] : [{ ...START_SCHEDULE_PAYLOAD }, ...requestBody];
13234
+ const response = startForm({
13235
+ formKey,
13236
+ userInputs
13237
+ });
13238
+ return response.then(({ error, data }) => {
13239
+ return new Promise((resolve) => {
13240
+ if (isFetchBaseQueryError(error) && isRecord(error.data)) {
13241
+ if (error.status === 510 /* FormNotComplete */) {
13242
+ resolve(error.data);
13243
+ } else if (error.status === 400 /* BadRequest */) {
13244
+ resolve({
13245
+ ...error.data,
13246
+ status: error.status
13247
+ });
13248
+ }
13249
+ } else if (data) {
13250
+ resolve({
13251
+ data,
13252
+ status: 201 /* Created */
13253
+ });
13254
+ }
13255
+ resolve({});
13256
+ });
13257
+ }).catch((error) => {
13258
+ return new Promise((resolve, reject) => {
13259
+ if (error.status === 510 /* FormNotComplete */) {
13260
+ resolve(error.data);
13261
+ }
13262
+ reject(error);
13263
+ });
13264
+ });
13265
+ };
13266
+ return pydanticFormProvider;
13267
+ }, [startForm]);
13268
+ const config = useGetPydanticFormsConfig(getPydanticFormProvider, (props) => /* @__PURE__ */ jsx194(Footer, { ...props }));
13269
+ const handleCancel = useCallback7(() => {
13270
+ const pfBasePath = PATH_METADATA_SCHEDULED_TASKS;
13271
+ router.replace(pfBasePath);
13272
+ }, [router]);
13273
+ if (mutationState.isError) {
13274
+ showToastMessage("ERROR" /* ERROR */, "", "Error while saving scheduled task");
13275
+ console.error("Error saving scheduled task", mutationState);
13276
+ return void 0;
13277
+ }
13278
+ return /* @__PURE__ */ jsx194(
13279
+ PydanticForm2,
13280
+ {
13281
+ formKey: "configure_schedule",
13282
+ formId: generateFormId,
13283
+ onSuccess,
13284
+ onCancel: handleCancel,
13285
+ config
13286
+ }
13287
+ );
13288
+ };
13289
+ var WfoScheduleTaskFormPage = () => {
13290
+ const { data } = useGetVersionsQuery();
13291
+ const coreVersion = data?.version.applicationVersions[0].split(" ")[1] ?? "";
13292
+ const isCompatible = compareVersions(coreVersion, "5.0.0a7") !== -1;
13293
+ return isCompatible ? /* @__PURE__ */ jsx194(WfoScheduleTaskFormPageBackend, {}) : /* @__PURE__ */ jsx194(WfoScheduleTaskFormPageHardCoded, {});
13294
+ };
13048
13295
 
13049
13296
  // src/pages/processes/WfoProcessListSubscriptionsCell.tsx
13050
- import { useTranslations as useTranslations49 } from "next-intl";
13051
- import Link10 from "next/link";
13052
- import { EuiFlexGroup as EuiFlexGroup20 } from "@elastic/eui";
13053
- import { Fragment as Fragment44, jsx as jsx193, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
13297
+ import { useTranslations as useTranslations51 } from "next-intl";
13298
+ import Link11 from "next/link";
13299
+ import { EuiFlexGroup as EuiFlexGroup21 } from "@elastic/eui";
13300
+ import { Fragment as Fragment45, jsx as jsx195, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
13054
13301
  var RENDER_ALL = "RENDER_ALL";
13055
13302
  var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
13056
13303
  RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
@@ -13065,21 +13312,21 @@ var WfoProcessListSubscriptionsCell = ({
13065
13312
  }
13066
13313
  }) => {
13067
13314
  const { theme, toSecondaryColor } = useOrchestratorTheme();
13068
- const t = useTranslations49("processes.index");
13315
+ const t = useTranslations51("processes.index");
13069
13316
  const { length } = subscriptions;
13070
13317
  if (length === 0) {
13071
13318
  return null;
13072
13319
  }
13073
13320
  const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
13074
13321
  const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
13075
- return /* @__PURE__ */ jsx193(Fragment44, { children: /* @__PURE__ */ jsxs98(
13076
- EuiFlexGroup20,
13322
+ return /* @__PURE__ */ jsx195(Fragment45, { children: /* @__PURE__ */ jsxs101(
13323
+ EuiFlexGroup21,
13077
13324
  {
13078
13325
  direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
13079
13326
  gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "s" : "xs",
13080
13327
  children: [
13081
- visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx193(
13082
- Link10,
13328
+ visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx195(
13329
+ Link11,
13083
13330
  {
13084
13331
  href: `/subscriptions/${subscription.subscriptionId}`,
13085
13332
  css: {
@@ -13090,7 +13337,7 @@ var WfoProcessListSubscriptionsCell = ({
13090
13337
  },
13091
13338
  subscription.subscriptionId
13092
13339
  )),
13093
- numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsxs98(
13340
+ numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsxs101(
13094
13341
  WfoBadge,
13095
13342
  {
13096
13343
  textColor: theme.colors.textPrimary,
@@ -13114,10 +13361,10 @@ var WfoProcessListSubscriptionsCell = ({
13114
13361
  import { useRef as useRef9 } from "react";
13115
13362
 
13116
13363
  // src/pages/processes/WfoProcessDetail.tsx
13117
- import { useContext as useContext8, useEffect as useEffect22, useRef as useRef8 } from "react";
13118
- import { useTranslations as useTranslations50 } from "next-intl";
13364
+ import { useContext as useContext9, useEffect as useEffect23, useRef as useRef8 } from "react";
13365
+ import { useTranslations as useTranslations52 } from "next-intl";
13119
13366
  import { useRouter as useRouter11 } from "next/router";
13120
- import { EuiButton as EuiButton11, EuiFlexGroup as EuiFlexGroup21, EuiPanel as EuiPanel2, EuiSpacer as EuiSpacer20, EuiText as EuiText17 } from "@elastic/eui";
13367
+ import { EuiButton as EuiButton12, EuiFlexGroup as EuiFlexGroup22, EuiPanel as EuiPanel2, EuiSpacer as EuiSpacer20, EuiText as EuiText17 } from "@elastic/eui";
13121
13368
 
13122
13369
  // src/pages/processes/timelineUtils.ts
13123
13370
  var getMostAccurateTimelineStatus = (statusPreviousStep, statusCurrentStep) => statusCurrentStep !== "pending" /* PENDING */ ? statusCurrentStep : statusPreviousStep;
@@ -13184,12 +13431,12 @@ var getIndexOfCurrentStep = (timelineItems) => {
13184
13431
  };
13185
13432
 
13186
13433
  // src/pages/processes/WfoProcessDetail.tsx
13187
- import { Fragment as Fragment45, jsx as jsx194, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
13434
+ import { Fragment as Fragment46, jsx as jsx196, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
13188
13435
  var ProcessHeaderValue = ({ translationKey, value = "" }) => {
13189
- const t = useTranslations50("processes.detail");
13436
+ const t = useTranslations52("processes.detail");
13190
13437
  const { theme } = useOrchestratorTheme();
13191
- return /* @__PURE__ */ jsxs99(
13192
- EuiFlexGroup21,
13438
+ return /* @__PURE__ */ jsxs102(
13439
+ EuiFlexGroup22,
13193
13440
  {
13194
13441
  direction: "column",
13195
13442
  gutterSize: "xs",
@@ -13199,8 +13446,8 @@ var ProcessHeaderValue = ({ translationKey, value = "" }) => {
13199
13446
  overflow: "hidden"
13200
13447
  },
13201
13448
  children: [
13202
- /* @__PURE__ */ jsx194(EuiText17, { size: "xs", children: t(translationKey) }),
13203
- /* @__PURE__ */ jsx194(
13449
+ /* @__PURE__ */ jsx196(EuiText17, { size: "xs", children: t(translationKey) }),
13450
+ /* @__PURE__ */ jsx196(
13204
13451
  EuiText17,
13205
13452
  {
13206
13453
  css: {
@@ -13218,7 +13465,7 @@ var ProcessHeaderValue = ({ translationKey, value = "" }) => {
13218
13465
  };
13219
13466
  function useHasPreviousRoute() {
13220
13467
  const hasPrev = useRef8(false);
13221
- useEffect22(() => {
13468
+ useEffect23(() => {
13222
13469
  if (document.referrer && document.referrer !== window.location.href) {
13223
13470
  hasPrev.current = true;
13224
13471
  }
@@ -13236,9 +13483,9 @@ var WfoProcessDetail = ({
13236
13483
  isLoading = false,
13237
13484
  hasError = false
13238
13485
  }) => {
13239
- const t = useTranslations50("processes.detail");
13486
+ const t = useTranslations52("processes.detail");
13240
13487
  const { theme } = useOrchestratorTheme();
13241
- const { showConfirmDialog } = useContext8(ConfirmationDialogContext);
13488
+ const { showConfirmDialog } = useContext9(ConfirmationDialogContext);
13242
13489
  const [retryProcess] = useRetryProcessMutation();
13243
13490
  const [deleteProcess] = useDeleteProcessMutation();
13244
13491
  const [abortProcess] = useAbortProcessMutation();
@@ -13295,37 +13542,37 @@ var WfoProcessDetail = ({
13295
13542
  router.push(PATH_TASKS);
13296
13543
  }
13297
13544
  });
13298
- return /* @__PURE__ */ jsxs99(Fragment45, { children: [
13299
- /* @__PURE__ */ jsxs99(
13545
+ return /* @__PURE__ */ jsxs102(Fragment46, { children: [
13546
+ /* @__PURE__ */ jsxs102(
13300
13547
  WfoContentHeader,
13301
13548
  {
13302
- title: /* @__PURE__ */ jsx194(WfoTitleWithWebsocketBadge, { title: pageTitle }),
13303
- subtitle: /* @__PURE__ */ jsx194(WfoProductInformationWithLink, { productNames, workflowName: processDetail?.workflowName ?? "" }),
13549
+ title: /* @__PURE__ */ jsx196(WfoTitleWithWebsocketBadge, { title: pageTitle }),
13550
+ subtitle: /* @__PURE__ */ jsx196(WfoProductInformationWithLink, { productNames, workflowName: processDetail?.workflowName ?? "" }),
13304
13551
  children: [
13305
- /* @__PURE__ */ jsx194(WfoIsAllowedToRender, { resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */, children: /* @__PURE__ */ jsx194(
13306
- EuiButton11,
13552
+ /* @__PURE__ */ jsx196(WfoIsAllowedToRender, { resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */, children: /* @__PURE__ */ jsx196(
13553
+ EuiButton12,
13307
13554
  {
13308
13555
  onClick: handleActionButtonClick(retryAction),
13309
- iconType: () => /* @__PURE__ */ jsx194(WfoRefresh, { color: retryButtonIsDisabled ? theme.colors.textSubdued : theme.colors.link }),
13556
+ iconType: () => /* @__PURE__ */ jsx196(WfoRefresh, { color: retryButtonIsDisabled ? theme.colors.textSubdued : theme.colors.link }),
13310
13557
  isDisabled: retryButtonIsDisabled,
13311
13558
  children: t("retry")
13312
13559
  }
13313
13560
  ) }),
13314
- /* @__PURE__ */ jsx194(WfoIsAllowedToRender, { resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */, children: /* @__PURE__ */ jsx194(
13315
- EuiButton11,
13561
+ /* @__PURE__ */ jsx196(WfoIsAllowedToRender, { resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */, children: /* @__PURE__ */ jsx196(
13562
+ EuiButton12,
13316
13563
  {
13317
13564
  onClick: handleActionButtonClick(abortAction),
13318
- iconType: () => /* @__PURE__ */ jsx194(WfoXCircleFill, { color: abortButtonIsDisabled ? theme.colors.textSubdued : theme.colors.danger }),
13565
+ iconType: () => /* @__PURE__ */ jsx196(WfoXCircleFill, { color: abortButtonIsDisabled ? theme.colors.textSubdued : theme.colors.danger }),
13319
13566
  color: "danger",
13320
13567
  isDisabled: abortButtonIsDisabled,
13321
13568
  children: t("abort")
13322
13569
  }
13323
13570
  ) }),
13324
- /* @__PURE__ */ jsx194(Fragment45, { children: processDetail && processIsTask && /* @__PURE__ */ jsx194(WfoIsAllowedToRender, { resource: "/orchestrator/processes/delete/" /* PROCESS_DELETE */, children: /* @__PURE__ */ jsx194(
13325
- EuiButton11,
13571
+ /* @__PURE__ */ jsx196(Fragment46, { children: processDetail && processIsTask && /* @__PURE__ */ jsx196(WfoIsAllowedToRender, { resource: "/orchestrator/processes/delete/" /* PROCESS_DELETE */, children: /* @__PURE__ */ jsx196(
13572
+ EuiButton12,
13326
13573
  {
13327
13574
  onClick: handleActionButtonClick(deleteAction),
13328
- iconType: () => /* @__PURE__ */ jsx194(WfoXCircleFill, { color: deleteButtonIsDisabled ? theme.colors.textSubdued : theme.colors.danger }),
13575
+ iconType: () => /* @__PURE__ */ jsx196(WfoXCircleFill, { color: deleteButtonIsDisabled ? theme.colors.textSubdued : theme.colors.danger }),
13329
13576
  color: "danger",
13330
13577
  isDisabled: deleteButtonIsDisabled,
13331
13578
  children: t("delete")
@@ -13334,27 +13581,27 @@ var WfoProcessDetail = ({
13334
13581
  ]
13335
13582
  }
13336
13583
  ),
13337
- /* @__PURE__ */ jsx194(EuiPanel2, { hasShadow: false, hasBorder: false, color: "subdued", element: "div", children: isLoading && !hasError && /* @__PURE__ */ jsx194(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs99(EuiFlexGroup21, { direction: "row", gutterSize: "m", children: [
13338
- /* @__PURE__ */ jsx194(ProcessHeaderValue, { translationKey: "status", value: processDetail.lastStatus }),
13339
- /* @__PURE__ */ jsx194(ProcessHeaderValue, { translationKey: "lastStep", value: processDetail?.lastStep }),
13340
- processDetail.customer && /* @__PURE__ */ jsx194(ProcessHeaderValue, { translationKey: "customer", value: processDetail.customer?.fullname }),
13341
- /* @__PURE__ */ jsx194(ProcessHeaderValue, { translationKey: "startedBy", value: processDetail?.createdBy }),
13342
- /* @__PURE__ */ jsx194(
13584
+ /* @__PURE__ */ jsx196(EuiPanel2, { hasShadow: false, hasBorder: false, color: "subdued", element: "div", children: isLoading && !hasError && /* @__PURE__ */ jsx196(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs102(EuiFlexGroup22, { direction: "row", gutterSize: "m", children: [
13585
+ /* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "status", value: processDetail.lastStatus }),
13586
+ /* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "lastStep", value: processDetail?.lastStep }),
13587
+ processDetail.customer && /* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "customer", value: processDetail.customer?.fullname }),
13588
+ /* @__PURE__ */ jsx196(ProcessHeaderValue, { translationKey: "startedBy", value: processDetail?.createdBy }),
13589
+ /* @__PURE__ */ jsx196(
13343
13590
  ProcessHeaderValue,
13344
13591
  {
13345
13592
  translationKey: "startedOn",
13346
13593
  value: processDetail?.startedAt ? parseIsoString(parseDateRelativeToToday)(processDetail?.startedAt) : ""
13347
13594
  }
13348
13595
  ),
13349
- /* @__PURE__ */ jsx194(
13596
+ /* @__PURE__ */ jsx196(
13350
13597
  ProcessHeaderValue,
13351
13598
  {
13352
13599
  translationKey: "lastUpdate",
13353
13600
  value: processDetail?.lastModifiedAt ? parseIsoString(parseDateRelativeToToday)(processDetail?.lastModifiedAt) : ""
13354
13601
  }
13355
13602
  ),
13356
- process && isAllowed("/orchestrator/subscriptions/view/from-process" /* PROCESS_RELATED_SUBSCRIPTIONS */) && processDetail.subscriptions && /* @__PURE__ */ jsxs99(
13357
- EuiFlexGroup21,
13603
+ process && isAllowed("/orchestrator/subscriptions/view/from-process" /* PROCESS_RELATED_SUBSCRIPTIONS */) && processDetail.subscriptions && /* @__PURE__ */ jsxs102(
13604
+ EuiFlexGroup22,
13358
13605
  {
13359
13606
  gutterSize: "xs",
13360
13607
  direction: "column",
@@ -13363,8 +13610,8 @@ var WfoProcessDetail = ({
13363
13610
  overflow: "hidden"
13364
13611
  },
13365
13612
  children: [
13366
- /* @__PURE__ */ jsx194(EuiText17, { size: "xs", children: t("relatedSubscriptions") }),
13367
- /* @__PURE__ */ jsx194(
13613
+ /* @__PURE__ */ jsx196(EuiText17, { size: "xs", children: t("relatedSubscriptions") }),
13614
+ /* @__PURE__ */ jsx196(
13368
13615
  EuiText17,
13369
13616
  {
13370
13617
  css: {
@@ -13374,7 +13621,7 @@ var WfoProcessDetail = ({
13374
13621
  textOverflow: "ellipsis",
13375
13622
  fontSize: theme.size.m
13376
13623
  },
13377
- children: /* @__PURE__ */ jsx194(
13624
+ children: /* @__PURE__ */ jsx196(
13378
13625
  WfoProcessListSubscriptionsCell,
13379
13626
  {
13380
13627
  subscriptions: process && processDetail?.subscriptions?.page.map((subscription) => ({
@@ -13390,8 +13637,8 @@ var WfoProcessDetail = ({
13390
13637
  }
13391
13638
  )
13392
13639
  ] }) }),
13393
- /* @__PURE__ */ jsx194(EuiSpacer20, { size: "s" }),
13394
- /* @__PURE__ */ jsx194(
13640
+ /* @__PURE__ */ jsx196(EuiSpacer20, { size: "s" }),
13641
+ /* @__PURE__ */ jsx196(
13395
13642
  WfoTimeline,
13396
13643
  {
13397
13644
  timelineItems,
@@ -13404,7 +13651,7 @@ var WfoProcessDetail = ({
13404
13651
  };
13405
13652
 
13406
13653
  // src/pages/processes/WfoProcessDetailPage.tsx
13407
- import { jsx as jsx195 } from "@emotion/react/jsx-runtime";
13654
+ import { jsx as jsx197 } from "@emotion/react/jsx-runtime";
13408
13655
  var WfoProcessDetailPage = ({ processId }) => {
13409
13656
  const stepListRef = useRef9(null);
13410
13657
  const { data, isLoading, isError } = useGetProcessDetailQuery({
@@ -13425,7 +13672,7 @@ var WfoProcessDetailPage = ({ processId }) => {
13425
13672
  const isTask = processDetail?.isTask ?? false;
13426
13673
  const groupedSteps = convertStepsToGroupedSteps(steps);
13427
13674
  const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
13428
- return /* @__PURE__ */ jsx195(
13675
+ return /* @__PURE__ */ jsx197(
13429
13676
  WfoProcessDetail,
13430
13677
  {
13431
13678
  pageTitle,
@@ -13436,7 +13683,7 @@ var WfoProcessDetailPage = ({ processId }) => {
13436
13683
  onTimelineItemClick: (id) => stepListRef.current?.scrollToStep(id),
13437
13684
  isLoading,
13438
13685
  hasError: isError,
13439
- children: isError && /* @__PURE__ */ jsx195(WfoError, {}) || isLoading && /* @__PURE__ */ jsx195(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsx195(
13686
+ children: isError && /* @__PURE__ */ jsx197(WfoError, {}) || isLoading && /* @__PURE__ */ jsx197(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsx197(
13440
13687
  WfoWorkflowStepList,
13441
13688
  {
13442
13689
  ref: stepListRef,
@@ -13449,176 +13696,30 @@ var WfoProcessDetailPage = ({ processId }) => {
13449
13696
  isTask,
13450
13697
  userPermissions: processDetail.userPermissions
13451
13698
  }
13452
- ) || /* @__PURE__ */ jsx195("h1", { children: "Invalid processId" })
13699
+ ) || /* @__PURE__ */ jsx197("h1", { children: "Invalid processId" })
13453
13700
  }
13454
13701
  );
13455
13702
  };
13456
13703
 
13457
13704
  // src/pages/processes/WfoStartProcessPage.tsx
13458
- import { useMemo as useMemo5, useState as useState38 } from "react";
13705
+ import { useMemo as useMemo6, useState as useState38 } from "react";
13459
13706
  import { useTranslations as useTranslations60 } from "next-intl";
13460
13707
  import { useRouter as useRouter13 } from "next/router";
13461
13708
  import { EuiFlexGroup as EuiFlexGroup26, EuiFlexItem as EuiFlexItem21, EuiHorizontalRule as EuiHorizontalRule7, EuiPanel as EuiPanel4, EuiText as EuiText23 } from "@elastic/eui";
13462
13709
 
13463
13710
  // src/components/WfoPydanticForm/WfoPydanticForm.tsx
13464
- import { useCallback as useCallback7, useMemo as useMemo2 } from "react";
13711
+ import { useCallback as useCallback8, useMemo as useMemo3 } from "react";
13465
13712
  import _5 from "lodash";
13466
13713
  import { useRouter as useRouter12 } from "next/router";
13467
13714
  import { PydanticForm as PydanticForm3 } from "pydantic-forms";
13468
-
13469
- // src/components/WfoPydanticForm/Footer.tsx
13470
- import { useCallback as useCallback6, useContext as useContext9, useEffect as useEffect23 } from "react";
13471
- import { useTranslations as useTranslations52 } from "next-intl";
13472
- import { EuiButton as EuiButton12, EuiFlexGroup as EuiFlexGroup22, EuiHorizontalRule as EuiHorizontalRule5 } from "@elastic/eui";
13473
-
13474
- // src/components/WfoPydanticForm/RenderFormErrors.tsx
13475
- import { useTranslations as useTranslations51 } from "next-intl";
13476
- import { useGetValidationErrors } from "pydantic-forms";
13477
- import { Fragment as Fragment46, jsx as jsx196, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
13478
- var RenderFormErrors = () => {
13479
- const { errorStyle } = useWithOrchestratorTheme(getCommonFormFieldStyles);
13480
- const errorDetails = useGetValidationErrors();
13481
- const t = useTranslations51("pydanticForms.userInputForm");
13482
- if (!errorDetails) {
13483
- return /* @__PURE__ */ jsx196(Fragment46, {});
13484
- }
13485
- const errors = errorDetails.source;
13486
- const rootError = errors.filter((err) => err.loc.includes("__root__")).shift();
13487
- const otherErrors = errors.filter((err) => !err.loc.includes("__root__"));
13488
- return /* @__PURE__ */ jsxs100("em", { css: errorStyle, children: [
13489
- rootError && /* @__PURE__ */ jsx196("div", { children: rootError.msg }),
13490
- otherErrors?.length >= 1 && t("inputFieldsHaveValidationErrors", {
13491
- nrOfValidationErrors: otherErrors.length
13492
- })
13493
- ] });
13494
- };
13495
-
13496
- // src/components/WfoPydanticForm/Footer.tsx
13497
- import { jsx as jsx197, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
13498
- var submitButtonId = "button-submit-form-submit";
13499
- var previousButtonId = "button-submit-form-previous";
13500
- var cancelButtonId = "button-submit-form-cancel";
13501
- var Footer = ({ onCancel, onPrevious, hasNext, hasPrevious, isTask = false, buttons }) => {
13502
- const { theme } = useOrchestratorTheme();
13503
- const t = useTranslations52("pydanticForms.userInputForm");
13504
- const { showConfirmDialog } = useContext9(ConfirmationDialogContext);
13505
- const handlePrevious = useCallback6(() => {
13506
- if (onCancel) {
13507
- showConfirmDialog({
13508
- question: t("previousQuestion"),
13509
- onConfirm: onCancel
13510
- });
13511
- }
13512
- }, [onCancel, showConfirmDialog, t]);
13513
- const { next, previous } = buttons || {};
13514
- useEffect23(() => {
13515
- const handleKeyDown = (event) => {
13516
- const isPrimary = event.metaKey || event.ctrlKey;
13517
- if (isPrimary && event.key === "ArrowLeft") {
13518
- event.preventDefault();
13519
- if (hasPrevious) {
13520
- onPrevious?.();
13521
- } else {
13522
- handlePrevious();
13523
- }
13524
- }
13525
- if (isPrimary && event.key === "ArrowRight") {
13526
- event.preventDefault();
13527
- document.getElementById(submitButtonId)?.click();
13528
- }
13529
- };
13530
- window.addEventListener("keydown", handleKeyDown);
13531
- return () => window.removeEventListener("keydown", handleKeyDown);
13532
- }, [hasPrevious, hasNext, onPrevious, onCancel, handlePrevious]);
13533
- const PreviousButton = () => {
13534
- const previousButtonColor = theme.colors[previous?.color ?? "primary"];
13535
- return /* @__PURE__ */ jsx197(
13536
- EuiButton12,
13537
- {
13538
- "data-testid": previousButtonId,
13539
- id: previousButtonId,
13540
- tabIndex: 0,
13541
- fill: true,
13542
- onClick: () => {
13543
- if (onPrevious) {
13544
- onPrevious();
13545
- }
13546
- },
13547
- css: {
13548
- backgroundColor: previousButtonColor.toString(),
13549
- padding: "12px"
13550
- },
13551
- iconSide: "right",
13552
- "aria-label": t("previous"),
13553
- children: previous?.text ?? t("previous")
13554
- }
13555
- );
13556
- };
13557
- const CancelButton = () => /* @__PURE__ */ jsx197(
13558
- "div",
13559
- {
13560
- "data-testid": cancelButtonId,
13561
- onClick: handlePrevious,
13562
- css: {
13563
- cursor: "pointer",
13564
- color: theme.colors.link,
13565
- fontWeight: theme.font.weight.bold,
13566
- marginLeft: theme.base / 2,
13567
- display: "flex",
13568
- alignItems: "center"
13569
- },
13570
- children: t("cancel")
13571
- }
13572
- );
13573
- const SubmitButton = () => {
13574
- const submitButtonTranslated = hasNext ? t("next") : isTask ? t("startTask") : t("startWorkflow");
13575
- const submitButtonLabel = next?.text ?? submitButtonTranslated;
13576
- const submitIconType = !hasNext && !next?.text ? () => /* @__PURE__ */ jsx197(WfoPlayCircle, { color: "currentColor" }) : void 0;
13577
- const submitButtonColor = next?.color ? next?.color : "primary";
13578
- return /* @__PURE__ */ jsx197(
13579
- EuiButton12,
13580
- {
13581
- "data-testid": submitButtonId,
13582
- id: submitButtonId,
13583
- tabIndex: 0,
13584
- fill: true,
13585
- css: {
13586
- backgroundColor: submitButtonColor,
13587
- padding: "12px"
13588
- },
13589
- type: "submit",
13590
- iconSide: "right",
13591
- iconType: submitIconType,
13592
- "aria-label": submitButtonLabel,
13593
- children: submitButtonLabel
13594
- }
13595
- );
13596
- };
13597
- const PreviousCancelButtonGroup = () => {
13598
- return /* @__PURE__ */ jsxs101(EuiFlexGroup22, { gutterSize: "xl", children: [
13599
- /* @__PURE__ */ jsx197(PreviousButton, {}),
13600
- /* @__PURE__ */ jsx197(CancelButton, {})
13601
- ] });
13602
- };
13603
- return /* @__PURE__ */ jsxs101("div", { "data-testid": "pydantic-form-footer", children: [
13604
- /* @__PURE__ */ jsx197(RenderFormErrors, {}),
13605
- /* @__PURE__ */ jsx197(EuiHorizontalRule5, {}),
13606
- /* @__PURE__ */ jsxs101("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
13607
- /* @__PURE__ */ jsx197("div", { children: hasPrevious && /* @__PURE__ */ jsx197(PreviousCancelButtonGroup, {}) || /* @__PURE__ */ jsx197(CancelButton, {}) }),
13608
- /* @__PURE__ */ jsx197(SubmitButton, {})
13609
- ] })
13610
- ] });
13611
- };
13612
-
13613
- // src/components/WfoPydanticForm/WfoPydanticForm.tsx
13614
13715
  import { jsx as jsx198 } from "@emotion/react/jsx-runtime";
13615
13716
  var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
13616
- const generateFormId = useMemo2(() => {
13717
+ const generateFormId = useMemo3(() => {
13617
13718
  return `${JSON.stringify(startProcessPayload)}`;
13618
13719
  }, [startProcessPayload]);
13619
13720
  const [startProcess] = useStartProcessMutation();
13620
13721
  const router = useRouter12();
13621
- const onSuccess = useCallback7(
13722
+ const onSuccess = useCallback8(
13622
13723
  (_fieldValues, req) => {
13623
13724
  const request = req;
13624
13725
  if (request?.data?.id) {
@@ -13628,7 +13729,7 @@ var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
13628
13729
  },
13629
13730
  [isTask, router]
13630
13731
  );
13631
- const getPydanticFormProvider = useCallback7(() => {
13732
+ const getPydanticFormProvider = useCallback8(() => {
13632
13733
  const pydanticFormProvider = async ({ requestBody = [], formKey }) => {
13633
13734
  const userInputs = _5.isEmpty(startProcessPayload) ? [...requestBody] : [{ ...startProcessPayload }, ...requestBody];
13634
13735
  const response = startProcess({
@@ -13666,7 +13767,7 @@ var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
13666
13767
  return pydanticFormProvider;
13667
13768
  }, [startProcess, startProcessPayload]);
13668
13769
  const config = useGetPydanticFormsConfig(getPydanticFormProvider, (props) => /* @__PURE__ */ jsx198(Footer, { ...props, isTask }));
13669
- const handleCancel = useCallback7(() => {
13770
+ const handleCancel = useCallback8(() => {
13670
13771
  const pfBasePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
13671
13772
  router.replace(pfBasePath);
13672
13773
  }, [isTask, router]);
@@ -13683,7 +13784,7 @@ var WfoPydanticForm = ({ processName, startProcessPayload, isTask }) => {
13683
13784
  };
13684
13785
 
13685
13786
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
13686
- import React61, { useCallback as useCallback10, useState as useState34 } from "react";
13787
+ import React62, { useCallback as useCallback11, useState as useState34 } from "react";
13687
13788
  import { useTranslations as useTranslations55 } from "next-intl";
13688
13789
  import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem19, EuiPanel as EuiPanel3, EuiText as EuiText18 } from "@elastic/eui";
13689
13790
 
@@ -13796,7 +13897,7 @@ var getWorkflowStepsStyles = ({ theme, toSecondaryColor, isDarkModeActive }) =>
13796
13897
  };
13797
13898
 
13798
13899
  // src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
13799
- import { jsx as jsx199, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
13900
+ import { jsx as jsx199, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
13800
13901
  var SubIcon = ({ stepStatus, color = "" }) => {
13801
13902
  switch (stepStatus) {
13802
13903
  case "suspend" /* SUSPEND */:
@@ -13837,7 +13938,7 @@ var WfoStepStatusIcon = ({ stepStatus, isStartStep = false }) => {
13837
13938
  return [stepStateSuccessIconStyle, theme.colors.textPrimary, true, theme.colors.textSuccess];
13838
13939
  }
13839
13940
  })();
13840
- return /* @__PURE__ */ jsxs102(EuiFlexItem17, { css: { flexDirection: "row" }, grow: 0, children: [
13941
+ return /* @__PURE__ */ jsxs103(EuiFlexItem17, { css: { flexDirection: "row" }, grow: 0, children: [
13841
13942
  /* @__PURE__ */ jsx199("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx199(MainIcon, { color: mainIconColor, stepStatus, isStartStep }) }),
13842
13943
  /* @__PURE__ */ jsx199(
13843
13944
  "div",
@@ -13869,7 +13970,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
13869
13970
  };
13870
13971
 
13871
13972
  // src/components/WfoWorkflowSteps/WfoStep/WfoCodeViewSelector.tsx
13872
- import { useCallback as useCallback8, useState as useState33 } from "react";
13973
+ import { useCallback as useCallback9, useState as useState33 } from "react";
13873
13974
  import { useTranslations as useTranslations53 } from "next-intl";
13874
13975
  import { EuiButtonGroup as EuiButtonGroup2 } from "@elastic/eui";
13875
13976
  import { jsx as jsx200 } from "@emotion/react/jsx-runtime";
@@ -13913,7 +14014,7 @@ var WfoCodeViewSelector = ({ codeView, handleCodeViewChange }) => {
13913
14014
  }
13914
14015
  }
13915
14016
  ];
13916
- const handle = useCallback8((id) => handleCodeViewChange(id), [handleCodeViewChange]);
14017
+ const handle = useCallback9((id) => handleCodeViewChange(id), [handleCodeViewChange]);
13917
14018
  return /* @__PURE__ */ jsx200(
13918
14019
  EuiButtonGroup2,
13919
14020
  {
@@ -13935,14 +14036,14 @@ var WfoCodeViewSelector = ({ codeView, handleCodeViewChange }) => {
13935
14036
  };
13936
14037
 
13937
14038
  // src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
13938
- import { useCallback as useCallback9, useMemo as useMemo3 } from "react";
14039
+ import { useCallback as useCallback10, useMemo as useMemo4 } from "react";
13939
14040
  import { PydanticForm as PydanticForm4 } from "pydantic-forms";
13940
14041
  import { EuiFlexItem as EuiFlexItem18 } from "@elastic/eui";
13941
14042
 
13942
14043
  // src/components/WfoWorkflowSteps/WfoStep/WfoStepFormFooter.tsx
13943
14044
  import { useTranslations as useTranslations54 } from "next-intl";
13944
14045
  import { EuiButton as EuiButton13, EuiHorizontalRule as EuiHorizontalRule6 } from "@elastic/eui";
13945
- import { jsx as jsx201, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
14046
+ import { jsx as jsx201, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
13946
14047
  var StepFormFooter = ({ isTask, isResumeAllowed }) => {
13947
14048
  const t = useTranslations54("pydanticForms.userInputForm");
13948
14049
  const SubmitButton = () => {
@@ -13964,7 +14065,7 @@ var StepFormFooter = ({ isTask, isResumeAllowed }) => {
13964
14065
  }
13965
14066
  );
13966
14067
  };
13967
- return /* @__PURE__ */ jsxs103("div", { "data-testid": "pydantic-step-form-footer", children: [
14068
+ return /* @__PURE__ */ jsxs104("div", { "data-testid": "pydantic-step-form-footer", children: [
13968
14069
  /* @__PURE__ */ jsx201(RenderFormErrors, {}),
13969
14070
  /* @__PURE__ */ jsx201(EuiHorizontalRule6, {}),
13970
14071
  /* @__PURE__ */ jsx201("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx201(SubmitButton, {}) })
@@ -13976,8 +14077,8 @@ import { jsx as jsx202 } from "@emotion/react/jsx-runtime";
13976
14077
  var WfoStepForm = ({ userInputForm, isTask, processId, userPermissions }) => {
13977
14078
  const { theme } = useOrchestratorTheme();
13978
14079
  const [resumeProcess] = useResumeProcessMutation();
13979
- const getInitialStepInput = useMemo3(() => userInputForm, [userInputForm]);
13980
- const getStepFormProvider = useCallback9(
14080
+ const getInitialStepInput = useMemo4(() => userInputForm, [userInputForm]);
14081
+ const getStepFormProvider = useCallback10(
13981
14082
  () => async ({ requestBody = [] }) => {
13982
14083
  if (requestBody.length === 0) {
13983
14084
  return {
@@ -14006,9 +14107,17 @@ var WfoStepForm = ({ userInputForm, isTask, processId, userPermissions }) => {
14006
14107
  return /* @__PURE__ */ jsx202(EuiFlexItem18, { css: { margin: theme.size.m }, children: /* @__PURE__ */ jsx202(PydanticForm4, { formKey: processId, formId: "wfo-step-form", config }) });
14007
14108
  };
14008
14109
 
14110
+ // src/components/WfoWorkflowSteps/WfoStep/useStepDetailOverride.ts
14111
+ var useStepDetailOverride = () => {
14112
+ const overrideStepDetail = useAppSelector((state) => state.orchestratorComponentOverride?.stepDetail);
14113
+ return {
14114
+ overrideStepDetail
14115
+ };
14116
+ };
14117
+
14009
14118
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
14010
- import { Fragment as Fragment47, jsx as jsx203, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
14011
- var WfoStep = React61.forwardRef(
14119
+ import { Fragment as Fragment47, jsx as jsx203, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
14120
+ var WfoStep = React62.forwardRef(
14012
14121
  ({
14013
14122
  stepListItem,
14014
14123
  onToggleStepDetail,
@@ -14032,6 +14141,7 @@ var WfoStep = React61.forwardRef(
14032
14141
  stepRowStyle,
14033
14142
  getStepToggleExpandStyle
14034
14143
  } = useWithOrchestratorTheme(getWorkflowStepsStyles);
14144
+ const { overrideStepDetail } = useStepDetailOverride();
14035
14145
  const t = useTranslations55("processes.steps");
14036
14146
  const hasHtmlMail = Object.prototype.hasOwnProperty.call(step?.stateDelta || {}, "confirmation_mail");
14037
14147
  const stepContent = step.stateDelta ? getStepContent(step.stateDelta, showHiddenKeys) : {};
@@ -14040,16 +14150,16 @@ var WfoStep = React61.forwardRef(
14040
14150
  if (!value) {
14041
14151
  return "";
14042
14152
  }
14043
- return /* @__PURE__ */ jsxs104(EuiText18, { size: "s", children: [
14153
+ return /* @__PURE__ */ jsxs105(EuiText18, { size: "s", children: [
14044
14154
  /* @__PURE__ */ jsx203("h4", { children: "To" }),
14045
- /* @__PURE__ */ jsx203("p", { children: value.to.map((v, i) => /* @__PURE__ */ jsxs104("div", { children: [
14155
+ /* @__PURE__ */ jsx203("p", { children: value.to.map((v, i) => /* @__PURE__ */ jsxs105("div", { children: [
14046
14156
  v.name,
14047
14157
  " <",
14048
14158
  /* @__PURE__ */ jsx203("a", { href: `mailto: ${v.email}`, children: v.email }),
14049
14159
  ">"
14050
14160
  ] }, `to-${i}`)) }),
14051
14161
  /* @__PURE__ */ jsx203("h4", { children: "CC" }),
14052
- /* @__PURE__ */ jsx203("p", { children: value.cc.map((v, i) => /* @__PURE__ */ jsxs104("div", { children: [
14162
+ /* @__PURE__ */ jsx203("p", { children: value.cc.map((v, i) => /* @__PURE__ */ jsxs105("div", { children: [
14053
14163
  v.name,
14054
14164
  " <",
14055
14165
  /* @__PURE__ */ jsx203("a", { href: `mailto: ${v.email}`, children: v.email }),
@@ -14061,52 +14171,64 @@ var WfoStep = React61.forwardRef(
14061
14171
  /* @__PURE__ */ jsx203("div", { className: "emailMessage", dangerouslySetInnerHTML: { __html: value.message } })
14062
14172
  ] });
14063
14173
  };
14064
- const handle = useCallback10(
14174
+ const handleCodeViewChange = useCallback11(
14065
14175
  (newCodeView) => {
14066
14176
  setCodeView(newCodeView);
14067
14177
  },
14068
14178
  [setCodeView]
14069
14179
  );
14070
- return /* @__PURE__ */ jsx203("div", { ref, children: /* @__PURE__ */ jsxs104(EuiPanel3, { children: [
14071
- /* @__PURE__ */ jsxs104(EuiFlexGroup23, { css: getStepHeaderStyle(hasStepContent), onClick: () => hasStepContent && onToggleStepDetail(), children: [
14180
+ const shouldExpand = isExpanded && hasStepContent;
14181
+ return /* @__PURE__ */ jsx203("div", { ref, children: /* @__PURE__ */ jsxs105(EuiPanel3, { children: [
14182
+ /* @__PURE__ */ jsxs105(EuiFlexGroup23, { css: getStepHeaderStyle(hasStepContent), onClick: () => hasStepContent && onToggleStepDetail(), children: [
14072
14183
  /* @__PURE__ */ jsx203(WfoStepStatusIcon, { stepStatus: step.status, isStartStep }),
14073
- /* @__PURE__ */ jsxs104(EuiFlexItem19, { grow: 0, children: [
14074
- /* @__PURE__ */ jsx203(EuiText18, { css: stepListContentBoldTextStyle, children: step.name }),
14075
- /* @__PURE__ */ jsxs104(EuiText18, { children: [
14076
- step.status,
14077
- " ",
14078
- step.completed && `- ${formatDate(step.completed)}`
14079
- ] })
14080
- ] }),
14081
- /* @__PURE__ */ jsx203(EuiFlexGroup23, { css: stepRowStyle, children: step.completed && /* @__PURE__ */ jsxs104(Fragment47, { children: [
14082
- isExpanded && /* @__PURE__ */ jsx203(WfoCodeViewSelector, { codeView, handleCodeViewChange: handle }),
14083
- /* @__PURE__ */ jsxs104(EuiFlexItem19, { grow: 0, css: stepHeaderRightStyle, children: [
14084
- /* @__PURE__ */ jsx203(EuiText18, { css: stepDurationStyle, children: t("duration") }),
14085
- /* @__PURE__ */ jsx203(EuiText18, { size: "m", children: calculateTimeDifference(startedAt, completedAt) })
14184
+ /* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
14185
+ /* @__PURE__ */ jsxs105(EuiFlexItem19, { css: { flexDirection: "row" }, children: [
14186
+ /* @__PURE__ */ jsxs105(EuiFlexItem19, { grow: 0, children: [
14187
+ /* @__PURE__ */ jsx203(EuiText18, { css: stepListContentBoldTextStyle, children: step.name }),
14188
+ /* @__PURE__ */ jsxs105(EuiText18, { children: [
14189
+ step.status,
14190
+ " ",
14191
+ step.completed && `- ${formatDate(step.completed)}`
14192
+ ] })
14193
+ ] }),
14194
+ /* @__PURE__ */ jsx203(EuiFlexGroup23, { css: stepRowStyle, children: step.completed && !userInputForm && !hasHtmlMail && /* @__PURE__ */ jsxs105(Fragment47, { children: [
14195
+ isExpanded && /* @__PURE__ */ jsx203(WfoCodeViewSelector, { codeView, handleCodeViewChange }),
14196
+ /* @__PURE__ */ jsxs105(EuiFlexItem19, { grow: 0, css: stepHeaderRightStyle, children: [
14197
+ /* @__PURE__ */ jsx203(EuiText18, { css: stepDurationStyle, children: t("duration") }),
14198
+ /* @__PURE__ */ jsx203(EuiText18, { size: "m", children: calculateTimeDifference(startedAt, completedAt) })
14199
+ ] }),
14200
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 0, css: getStepToggleExpandStyle(hasStepContent), children: isExpanded && /* @__PURE__ */ jsx203(WfoChevronUp, { color: theme.colors.textParagraph }) || /* @__PURE__ */ jsx203(WfoChevronDown, { color: theme.colors.textParagraph }) })
14201
+ ] }) })
14086
14202
  ] }),
14087
- /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 0, css: getStepToggleExpandStyle(hasStepContent), children: isExpanded && /* @__PURE__ */ jsx203(WfoChevronUp, { color: theme.colors.textParagraph }) || /* @__PURE__ */ jsx203(WfoChevronDown, { color: theme.colors.textParagraph }) })
14088
- ] }) })
14203
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { children: overrideStepDetail?.stepHeader && /* @__PURE__ */ jsx203(overrideStepDetail.stepHeader, { step }) })
14204
+ ] })
14089
14205
  ] }),
14090
- hasStepContent && !hasHtmlMail && isExpanded && (codeView === "table" /* TABLE */ ? /* @__PURE__ */ jsx203(WfoTableCodeBlock, { stepState: stepContent }) : codeView === "raw" /* RAW */ ? /* @__PURE__ */ jsx203(WfoJsonCodeBlock, { data: stepContent }) : /* @__PURE__ */ jsx203(WfoMonacoCodeBlock, { data: stepContent })),
14091
- isExpanded && hasHtmlMail && /* @__PURE__ */ jsx203("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(step.stateDelta.confirmation_mail) }),
14092
- step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx203(
14093
- WfoStepForm,
14094
- {
14095
- userInputForm,
14096
- isTask,
14097
- processId: processId ?? "",
14098
- userPermissions
14099
- }
14100
- )
14206
+ shouldExpand && !hasHtmlMail && /* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
14207
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { children: codeView === "table" /* TABLE */ ? /* @__PURE__ */ jsx203(WfoTableCodeBlock, { stepState: stepContent }) : codeView === "raw" /* RAW */ ? /* @__PURE__ */ jsx203(WfoJsonCodeBlock, { data: stepContent }) : /* @__PURE__ */ jsx203(WfoMonacoCodeBlock, { data: stepContent }) }),
14208
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: !(step.status === "suspend" /* SUSPEND */ && userInputForm) && overrideStepDetail?.stepBody && /* @__PURE__ */ jsx203(overrideStepDetail.stepBody, { step }) })
14209
+ ] }),
14210
+ step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
14211
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: /* @__PURE__ */ jsx203(
14212
+ WfoStepForm,
14213
+ {
14214
+ userInputForm,
14215
+ isTask,
14216
+ processId: processId ?? "",
14217
+ userPermissions
14218
+ }
14219
+ ) }),
14220
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: overrideStepDetail?.stepBody && /* @__PURE__ */ jsx203(overrideStepDetail.stepBody, { step }) })
14221
+ ] }),
14222
+ isExpanded && hasHtmlMail && /* @__PURE__ */ jsx203("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(step.stateDelta.confirmation_mail) })
14101
14223
  ] }) });
14102
14224
  }
14103
14225
  );
14104
14226
  WfoStep.displayName = "WfoStep";
14105
14227
 
14106
14228
  // src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
14107
- import React62, { useImperativeHandle as useImperativeHandle2, useRef as useRef10 } from "react";
14108
- import { Fragment as Fragment48, jsx as jsx204, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
14109
- var WfoStepList = React62.forwardRef(
14229
+ import React63, { useImperativeHandle as useImperativeHandle2, useRef as useRef10 } from "react";
14230
+ import { Fragment as Fragment48, jsx as jsx204, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
14231
+ var WfoStepList = React63.forwardRef(
14110
14232
  ({
14111
14233
  stepListItems,
14112
14234
  showHiddenKeys,
@@ -14152,7 +14274,7 @@ var WfoStepList = React62.forwardRef(
14152
14274
  stepReferences.current.delete(stepId);
14153
14275
  }
14154
14276
  };
14155
- return /* @__PURE__ */ jsx204(Fragment48, { children: stepListItems.map((stepListItem, index) => /* @__PURE__ */ jsxs105("div", { children: [
14277
+ return /* @__PURE__ */ jsx204(Fragment48, { children: stepListItems.map((stepListItem, index) => /* @__PURE__ */ jsxs106("div", { children: [
14156
14278
  index !== 0 && /* @__PURE__ */ jsx204("div", { css: stepSpacerStyle }),
14157
14279
  /* @__PURE__ */ jsx204(
14158
14280
  WfoStep,
@@ -14175,11 +14297,11 @@ var WfoStepList = React62.forwardRef(
14175
14297
  WfoStepList.displayName = "WfoStepList";
14176
14298
 
14177
14299
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
14178
- import React64, { useEffect as useEffect25, useState as useState36 } from "react";
14300
+ import React65, { useEffect as useEffect25, useState as useState36 } from "react";
14179
14301
  import { useTranslations as useTranslations58 } from "next-intl";
14180
14302
 
14181
14303
  // src/components/WfoDiff/WfoDiff.tsx
14182
- import { useCallback as useCallback11, useEffect as useEffect24, useMemo as useMemo4, useState as useState35 } from "react";
14304
+ import { useCallback as useCallback12, useEffect as useEffect24, useMemo as useMemo5, useState as useState35 } from "react";
14183
14305
  import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
14184
14306
  import "react-diff-view/style/index.css";
14185
14307
  import { useTranslations as useTranslations56 } from "next-intl";
@@ -14221,7 +14343,7 @@ var getWfoDiffStyles = ({ theme, toSecondaryColor, isDarkModeActive }) => {
14221
14343
  };
14222
14344
 
14223
14345
  // src/components/WfoDiff/WfoDiff.tsx
14224
- import { jsx as jsx205, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
14346
+ import { jsx as jsx205, jsxs as jsxs107 } from "@emotion/react/jsx-runtime";
14225
14347
  var EMPTY_HUNKS = [];
14226
14348
  var SMALL_CONTEXT = 3;
14227
14349
  var FULL_CONTEXT = 1e6;
@@ -14234,14 +14356,14 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
14234
14356
  type: "modify",
14235
14357
  hunks: []
14236
14358
  });
14237
- const updateDiffText = useCallback11(() => {
14359
+ const updateDiffText = useCallback12(() => {
14238
14360
  const diffText = formatLines(diffLines(oldText, newText), {
14239
14361
  context: showFull ? FULL_CONTEXT : SMALL_CONTEXT
14240
14362
  });
14241
14363
  const [diff] = parseDiff(diffText, { nearbySequences: "zip" });
14242
14364
  setDiff(diff);
14243
14365
  }, [oldText, newText, setDiff, showFull]);
14244
- const tokens = useMemo4(() => {
14366
+ const tokens = useMemo5(() => {
14245
14367
  if (!hunks) {
14246
14368
  return void 0;
14247
14369
  }
@@ -14259,8 +14381,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
14259
14381
  useEffect24(() => {
14260
14382
  updateDiffText();
14261
14383
  }, [updateDiffText, showFull]);
14262
- return /* @__PURE__ */ jsxs106("div", { children: [
14263
- /* @__PURE__ */ jsxs106(EuiFlexGroup24, { gutterSize: "xs", children: [
14384
+ return /* @__PURE__ */ jsxs107("div", { children: [
14385
+ /* @__PURE__ */ jsxs107(EuiFlexGroup24, { gutterSize: "xs", children: [
14264
14386
  /* @__PURE__ */ jsx205(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx205(EuiText19, { children: /* @__PURE__ */ jsx205("h3", { children: t("title") }) }) }),
14265
14387
  /* @__PURE__ */ jsx205(EuiFlexItem20, { grow: false, children: /* @__PURE__ */ jsx205(
14266
14388
  EuiButtonIcon13,
@@ -14315,18 +14437,18 @@ var getStyles10 = ({ theme }) => {
14315
14437
  };
14316
14438
 
14317
14439
  // src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
14318
- import { Fragment as Fragment49, jsx as jsx206, jsxs as jsxs107 } from "@emotion/react/jsx-runtime";
14440
+ import { Fragment as Fragment49, jsx as jsx206, jsxs as jsxs108 } from "@emotion/react/jsx-runtime";
14319
14441
  var WfoTraceback = ({ children }) => {
14320
14442
  const { codeBlockStyle } = useWithOrchestratorTheme(getStyles10);
14321
14443
  const t = useTranslations57("processes.steps");
14322
- return /* @__PURE__ */ jsxs107(Fragment49, { children: [
14444
+ return /* @__PURE__ */ jsxs108(Fragment49, { children: [
14323
14445
  /* @__PURE__ */ jsx206(EuiText20, { children: /* @__PURE__ */ jsx206("h3", { children: t("traceback") }) }),
14324
14446
  /* @__PURE__ */ jsx206(EuiCodeBlock, { css: codeBlockStyle, children })
14325
14447
  ] });
14326
14448
  };
14327
14449
 
14328
14450
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
14329
- import { Fragment as Fragment50, jsx as jsx207, jsxs as jsxs108 } from "@emotion/react/jsx-runtime";
14451
+ import { Fragment as Fragment50, jsx as jsx207, jsxs as jsxs109 } from "@emotion/react/jsx-runtime";
14330
14452
  var WfoProcessRawData = ({ processId }) => {
14331
14453
  const { data, isFetching } = useGetRawProcessDetailQuery({ processId });
14332
14454
  return isFetching ? /* @__PURE__ */ jsx207(WfoLoading, {}) : /* @__PURE__ */ jsx207(WfoJsonCodeBlock, { data: data || {} });
@@ -14347,7 +14469,7 @@ var WfoProcessSubscriptionDelta = ({ processId }) => {
14347
14469
  }
14348
14470
  );
14349
14471
  };
14350
- var WfoWorkflowStepList = React64.forwardRef(
14472
+ var WfoWorkflowStepList = React65.forwardRef(
14351
14473
  ({ steps = [], lastStatus, traceBack, processId, isTask, userInputForm, userPermissions }, reference) => {
14352
14474
  const [showHiddenKeys, setShowHiddenKeys] = useState36(false);
14353
14475
  const [showRaw, setShowRaw] = useState36(false);
@@ -14401,7 +14523,7 @@ var WfoWorkflowStepList = React64.forwardRef(
14401
14523
  isExpanded: true
14402
14524
  }));
14403
14525
  const isRunningWorkflow = !["failed" /* FAILED */, "aborted" /* ABORTED */, "completed" /* COMPLETED */].map((status) => status.toLowerCase()).includes(lastStatus.toLowerCase());
14404
- return /* @__PURE__ */ jsxs108(Fragment50, { children: [
14526
+ return /* @__PURE__ */ jsxs109(Fragment50, { children: [
14405
14527
  /* @__PURE__ */ jsx207(
14406
14528
  WfoStepListHeader,
14407
14529
  {
@@ -14473,7 +14595,7 @@ var WfoTextAnchor = ({ text, onClick }) => {
14473
14595
  };
14474
14596
 
14475
14597
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
14476
- import { jsx as jsx209, jsxs as jsxs109 } from "@emotion/react/jsx-runtime";
14598
+ import { jsx as jsx209, jsxs as jsxs110 } from "@emotion/react/jsx-runtime";
14477
14599
  var WfoStepListHeader = ({
14478
14600
  allDetailToggleText,
14479
14601
  showDelta,
@@ -14505,12 +14627,12 @@ var WfoStepListHeader = ({
14505
14627
  children: t("viewOptions")
14506
14628
  }
14507
14629
  );
14508
- return /* @__PURE__ */ jsxs109(EuiFlexGroup25, { css: stepListHeaderStyle, children: [
14509
- /* @__PURE__ */ jsxs109(EuiFlexGroup25, { css: stepListContentStyle, children: [
14630
+ return /* @__PURE__ */ jsxs110(EuiFlexGroup25, { css: stepListHeaderStyle, children: [
14631
+ /* @__PURE__ */ jsxs110(EuiFlexGroup25, { css: stepListContentStyle, children: [
14510
14632
  /* @__PURE__ */ jsx209(EuiText22, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
14511
14633
  !showRaw && /* @__PURE__ */ jsx209(WfoTextAnchor, { text: allDetailToggleText, onClick: onToggleAllDetailsIsOpen })
14512
14634
  ] }),
14513
- /* @__PURE__ */ jsxs109(EuiFlexGroup25, { justifyContent: "flexEnd", direction: "row", css: stepListOptionsContainerStyle, gutterSize: "s", children: [
14635
+ /* @__PURE__ */ jsxs110(EuiFlexGroup25, { justifyContent: "flexEnd", direction: "row", css: stepListOptionsContainerStyle, gutterSize: "s", children: [
14514
14636
  showTracebackButton && /* @__PURE__ */ jsx209(EuiButton14, { onClick: () => onShowTraceback(!showTraceback), size: "s", children: showTraceback ? t("hideTraceback") : t("showTraceback") }),
14515
14637
  /* @__PURE__ */ jsx209(
14516
14638
  EuiButton14,
@@ -14523,7 +14645,7 @@ var WfoStepListHeader = ({
14523
14645
  children: showDelta ? t("hideDelta") : t("showDelta")
14524
14646
  }
14525
14647
  ),
14526
- /* @__PURE__ */ jsx209(EuiPopover7, { button: viewOptionButton, isOpen: isViewOptionOpen, closePopover: closeViewOption, display: "block", children: /* @__PURE__ */ jsx209("div", { children: /* @__PURE__ */ jsxs109(EuiForm3, { component: "form", children: [
14648
+ /* @__PURE__ */ jsx209(EuiPopover7, { button: viewOptionButton, isOpen: isViewOptionOpen, closePopover: closeViewOption, display: "block", children: /* @__PURE__ */ jsx209("div", { children: /* @__PURE__ */ jsxs110(EuiForm3, { component: "form", children: [
14527
14649
  /* @__PURE__ */ jsx209(EuiFormRow6, { children: /* @__PURE__ */ jsx209(
14528
14650
  EuiSwitch3,
14529
14651
  {
@@ -14552,7 +14674,7 @@ var WfoStepListHeader = ({
14552
14674
  };
14553
14675
 
14554
14676
  // src/pages/processes/WfoStartProcessPage.tsx
14555
- import { jsx as jsx210, jsxs as jsxs110 } from "@emotion/react/jsx-runtime";
14677
+ import { jsx as jsx210, jsxs as jsxs111 } from "@emotion/react/jsx-runtime";
14556
14678
  var getInitialProcessPayload = ({
14557
14679
  productId,
14558
14680
  subscriptionId
@@ -14587,7 +14709,7 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
14587
14709
  const { data: workflowMetadata, isError: isErrorWorkflowDescription } = useGetDescriptionForWorkflowNameQuery({
14588
14710
  workflowName: processName
14589
14711
  });
14590
- const startProcessPayload = useMemo5(
14712
+ const startProcessPayload = useMemo6(
14591
14713
  () => getInitialProcessPayload({
14592
14714
  productId,
14593
14715
  subscriptionId
@@ -14634,7 +14756,7 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
14634
14756
  processDetail,
14635
14757
  timelineItems: timeLineItems,
14636
14758
  isLoading,
14637
- children: /* @__PURE__ */ jsxs110(
14759
+ children: /* @__PURE__ */ jsxs111(
14638
14760
  EuiPanel4,
14639
14761
  {
14640
14762
  css: {
@@ -14642,9 +14764,9 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
14642
14764
  marginTop: theme.base * 3
14643
14765
  },
14644
14766
  children: [
14645
- /* @__PURE__ */ jsxs110(EuiFlexGroup26, { css: getStepHeaderStyle(false), children: [
14767
+ /* @__PURE__ */ jsxs111(EuiFlexGroup26, { css: getStepHeaderStyle(false), children: [
14646
14768
  /* @__PURE__ */ jsx210(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
14647
- /* @__PURE__ */ jsxs110(EuiFlexItem21, { grow: 0, children: [
14769
+ /* @__PURE__ */ jsxs111(EuiFlexItem21, { grow: 0, children: [
14648
14770
  /* @__PURE__ */ jsx210(EuiText23, { css: stepListContentBoldTextStyle, children: t("userInput") }),
14649
14771
  /* @__PURE__ */ jsx210(EuiText23, { children: t(isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel") })
14650
14772
  ] })
@@ -14661,19 +14783,19 @@ var WfoStartProcessPage = ({ processName, isTask = false }) => {
14661
14783
  // src/pages/processes/WfoProductInformationWithLink.tsx
14662
14784
  import { useTranslations as useTranslations61 } from "next-intl";
14663
14785
  import { EuiButtonIcon as EuiButtonIcon14, EuiFlexGroup as EuiFlexGroup27, EuiText as EuiText24, EuiToolTip as EuiToolTip10 } from "@elastic/eui";
14664
- import { jsx as jsx211, jsxs as jsxs111 } from "@emotion/react/jsx-runtime";
14786
+ import { jsx as jsx211, jsxs as jsxs112 } from "@emotion/react/jsx-runtime";
14665
14787
  var WfoProductInformationWithLink = ({ workflowName, productNames }) => {
14666
14788
  const { workflowInformationLinkUrl, showWorkflowInformationLink } = useGetOrchestratorConfig();
14667
14789
  const t = useTranslations61("processes.detail");
14668
14790
  const docsUrl = workflowInformationLinkUrl + workflowName;
14669
- return /* @__PURE__ */ jsxs111(EuiFlexGroup27, { gutterSize: "s", alignItems: "center", children: [
14791
+ return /* @__PURE__ */ jsxs112(EuiFlexGroup27, { gutterSize: "s", alignItems: "center", children: [
14670
14792
  showWorkflowInformationLink && /* @__PURE__ */ jsx211(EuiToolTip10, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx211("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx211(EuiButtonIcon14, { iconSize: "l", iconType: "info", "aria-label": t("openWorkflowTaskInfo") }) }) }),
14671
14793
  /* @__PURE__ */ jsx211(EuiText24, { size: "s", children: productNames })
14672
14794
  ] });
14673
14795
  };
14674
14796
 
14675
14797
  // src/pages/settings/WfoSettingsPage.tsx
14676
- import { useMemo as useMemo6 } from "react";
14798
+ import { useMemo as useMemo7 } from "react";
14677
14799
  import { useTranslations as useTranslations63 } from "next-intl";
14678
14800
  import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
14679
14801
  import { EuiCodeBlock as EuiCodeBlock2, EuiFlexItem as EuiFlexItem23, EuiPanel as EuiPanel6, EuiSpacer as EuiSpacer23, EuiTab as EuiTab3, EuiTabs as EuiTabs3, EuiText as EuiText26 } from "@elastic/eui";
@@ -14682,14 +14804,14 @@ import { css as css35 } from "@emotion/react";
14682
14804
  // src/components/WfoSettings/WfoAoStackStatus.tsx
14683
14805
  import { useTranslations as useTranslations62 } from "next-intl";
14684
14806
  import { EuiButton as EuiButton15, EuiFlexItem as EuiFlexItem22, EuiPanel as EuiPanel5, EuiSpacer as EuiSpacer22, EuiText as EuiText25 } from "@elastic/eui";
14685
- import { jsx as jsx212, jsxs as jsxs112 } from "@emotion/react/jsx-runtime";
14807
+ import { jsx as jsx212, jsxs as jsxs113 } from "@emotion/react/jsx-runtime";
14686
14808
  var WfoAoStackStatus = () => {
14687
14809
  const t = useTranslations62("settings.page");
14688
14810
  const { aoStackStatusUrl } = useGetOrchestratorConfig();
14689
14811
  const openStatusPage = () => {
14690
14812
  window.open(aoStackStatusUrl, "_blank");
14691
14813
  };
14692
- return /* @__PURE__ */ jsx212(EuiFlexItem22, { children: /* @__PURE__ */ jsxs112(EuiPanel5, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
14814
+ return /* @__PURE__ */ jsx212(EuiFlexItem22, { children: /* @__PURE__ */ jsxs113(EuiPanel5, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
14693
14815
  /* @__PURE__ */ jsx212(EuiText25, { size: "s", children: /* @__PURE__ */ jsx212("h4", { children: t("aoStackStatus") }) }),
14694
14816
  /* @__PURE__ */ jsx212(EuiSpacer22, { size: "m" }),
14695
14817
  /* @__PURE__ */ jsx212(EuiButton15, { iconType: () => /* @__PURE__ */ jsx212(WfoChartBar, {}), onClick: openStatusPage, children: t("viewStatusPage") })
@@ -14697,7 +14819,7 @@ var WfoAoStackStatus = () => {
14697
14819
  };
14698
14820
 
14699
14821
  // src/pages/settings/WfoSettingsPage.tsx
14700
- import { Fragment as Fragment51, jsx as jsx213, jsxs as jsxs113 } from "@emotion/react/jsx-runtime";
14822
+ import { Fragment as Fragment51, jsx as jsx213, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
14701
14823
  var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
14702
14824
  WfoSettingsTab2["ACTIONS"] = "ACTIONS";
14703
14825
  WfoSettingsTab2["ENV_SETTINGS"] = "ENV_SETTINGS";
@@ -14706,13 +14828,13 @@ var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
14706
14828
  var WfoActionSettings = () => {
14707
14829
  const { theme } = useOrchestratorTheme();
14708
14830
  const { enableAoStackStatus } = useGetOrchestratorConfig();
14709
- return /* @__PURE__ */ jsx213(Fragment51, { children: /* @__PURE__ */ jsxs113("div", { css: { maxWidth: theme.base * 40 }, children: [
14831
+ return /* @__PURE__ */ jsx213(Fragment51, { children: /* @__PURE__ */ jsxs114("div", { css: { maxWidth: theme.base * 40 }, children: [
14710
14832
  /* @__PURE__ */ jsx213(WfoFlushSettings, {}),
14711
14833
  /* @__PURE__ */ jsx213(EuiSpacer23, {}),
14712
14834
  /* @__PURE__ */ jsx213(WfoModifySettings, {}),
14713
14835
  /* @__PURE__ */ jsx213(EuiSpacer23, {}),
14714
14836
  /* @__PURE__ */ jsx213(WfoEngineStatus, {}),
14715
- enableAoStackStatus && /* @__PURE__ */ jsxs113(Fragment51, { children: [
14837
+ enableAoStackStatus && /* @__PURE__ */ jsxs114(Fragment51, { children: [
14716
14838
  /* @__PURE__ */ jsx213(EuiSpacer23, {}),
14717
14839
  /* @__PURE__ */ jsx213(WfoAoStackStatus, {})
14718
14840
  ] }),
@@ -14730,8 +14852,8 @@ var WfoEnvSettings = () => {
14730
14852
  const renderEnvSettings = () => {
14731
14853
  return data && data.map(({ name, variables }) => {
14732
14854
  const showVariables = mapToRepresentableVariables(variables);
14733
- return /* @__PURE__ */ jsxs113(Fragment51, { children: [
14734
- /* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */ jsxs113(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
14855
+ return /* @__PURE__ */ jsxs114(Fragment51, { children: [
14856
+ /* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */ jsxs114(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
14735
14857
  /* @__PURE__ */ jsx213(EuiText26, { size: "s", children: /* @__PURE__ */ jsx213("h2", { children: name.replace("_", " ").toUpperCase() }) }),
14736
14858
  /* @__PURE__ */ jsx213(EuiSpacer23, {}),
14737
14859
  /* @__PURE__ */ jsx213(
@@ -14751,7 +14873,7 @@ var WfoEnvSettings = () => {
14751
14873
  });
14752
14874
  };
14753
14875
  const emptyEnvSettings = () => {
14754
- return /* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */ jsx213(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsx213(EuiText26, { size: "s", children: /* @__PURE__ */ jsxs113("h2", { children: [
14876
+ return /* @__PURE__ */ jsx213(EuiFlexItem23, { children: /* @__PURE__ */ jsx213(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsx213(EuiText26, { size: "s", children: /* @__PURE__ */ jsxs114("h2", { children: [
14755
14877
  t("noSettingsExposed"),
14756
14878
  " ",
14757
14879
  /* @__PURE__ */ jsx213(
@@ -14786,7 +14908,7 @@ var WfoSettingsPage = () => {
14786
14908
  "activeTab",
14787
14909
  withDefault3(StringParam3, "ACTIONS" /* ACTIONS */)
14788
14910
  );
14789
- const selectedTabContent = useMemo6(() => {
14911
+ const selectedTabContent = useMemo7(() => {
14790
14912
  return settingsTabs.find((obj) => obj.id === selectedTabId)?.content;
14791
14913
  }, [selectedTabId]);
14792
14914
  const onSelectedTabChanged = (id) => {
@@ -14804,7 +14926,7 @@ var WfoSettingsPage = () => {
14804
14926
  index
14805
14927
  ));
14806
14928
  };
14807
- return /* @__PURE__ */ jsxs113(Fragment51, { children: [
14929
+ return /* @__PURE__ */ jsxs114(Fragment51, { children: [
14808
14930
  /* @__PURE__ */ jsx213(WfoContentHeader, { title: t("settings") }),
14809
14931
  /* @__PURE__ */ jsx213(EuiTabs3, { children: renderTabs() }),
14810
14932
  /* @__PURE__ */ jsx213(EuiSpacer23, { size: "xxl" }),
@@ -14827,7 +14949,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
14827
14949
  };
14828
14950
 
14829
14951
  // src/pages/startPage/WfoStartPage.tsx
14830
- import { Fragment as Fragment52, jsx as jsx214, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
14952
+ import { Fragment as Fragment52, jsx as jsx214, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
14831
14953
  var WfoStartPage = () => {
14832
14954
  const t = useTranslations64("main");
14833
14955
  const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
@@ -14846,7 +14968,7 @@ var WfoStartPage = () => {
14846
14968
  /* @__PURE__ */ jsx214(WfoProductsSummaryCard, {}, "products")
14847
14969
  ];
14848
14970
  const summaryCards = overrideSummaryCards?.(defaultSummaryCards) || defaultSummaryCards;
14849
- return /* @__PURE__ */ jsxs114(Fragment52, { children: [
14971
+ return /* @__PURE__ */ jsxs115(Fragment52, { children: [
14850
14972
  /* @__PURE__ */ jsx214(WfoContentHeader, { title: /* @__PURE__ */ jsx214(EuiPageHeader2, { pageTitle: `${t("welcome")} ${username}` }) }),
14851
14973
  /* @__PURE__ */ jsx214(WfoSummaryCards, { children: summaryCards })
14852
14974
  ] });
@@ -14878,7 +15000,7 @@ import { useEffect as useEffect26, useState as useState39 } from "react";
14878
15000
  import { useTranslations as useTranslations65 } from "next-intl";
14879
15001
  import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
14880
15002
  import { EuiSpacer as EuiSpacer24 } from "@elastic/eui";
14881
- import { Fragment as Fragment54, jsx as jsx216, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
15003
+ import { Fragment as Fragment54, jsx as jsx216, jsxs as jsxs116 } from "@emotion/react/jsx-runtime";
14882
15004
  var WfoSubscriptionsListPage = () => {
14883
15005
  const t = useTranslations65("subscriptions.detail");
14884
15006
  const [tableDefaults, setTableDefaults] = useState39();
@@ -14909,7 +15031,7 @@ var WfoSubscriptionsListPage = () => {
14909
15031
  setDataDisplayParam("pageIndex", 0);
14910
15032
  };
14911
15033
  const alwaysOnFilters = subscriptionListTabs.find(({ id }) => id === activeTab)?.alwaysOnFilters;
14912
- return /* @__PURE__ */ jsxs115(Fragment54, { children: [
15034
+ return /* @__PURE__ */ jsxs116(Fragment54, { children: [
14913
15035
  /* @__PURE__ */ jsx216(WfoContentHeader, { title: /* @__PURE__ */ jsx216(WfoTitleWithWebsocketBadge, { title: t("title") }) }),
14914
15036
  /* @__PURE__ */ jsx216(
14915
15037
  WfoFilterTabs,
@@ -14936,7 +15058,7 @@ var WfoSubscriptionsListPage = () => {
14936
15058
  // src/pages/tasks/WfoTasksListPage.tsx
14937
15059
  import { useContext as useContext10, useEffect as useEffect27, useState as useState40 } from "react";
14938
15060
  import { useTranslations as useTranslations66 } from "next-intl";
14939
- import Link11 from "next/link";
15061
+ import Link12 from "next/link";
14940
15062
  import { useRouter as useRouter15 } from "next/router";
14941
15063
  import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
14942
15064
  import { EuiButton as EuiButton16, EuiSpacer as EuiSpacer25 } from "@elastic/eui";
@@ -15004,7 +15126,7 @@ var getTasksListTabTypeFromString = (tabId) => {
15004
15126
  };
15005
15127
 
15006
15128
  // src/pages/tasks/WfoTasksListPage.tsx
15007
- import { Fragment as Fragment55, jsx as jsx217, jsxs as jsxs116 } from "@emotion/react/jsx-runtime";
15129
+ import { Fragment as Fragment55, jsx as jsx217, jsxs as jsxs117 } from "@emotion/react/jsx-runtime";
15008
15130
  var WfoTasksListPage = () => {
15009
15131
  const router = useRouter15();
15010
15132
  const t = useTranslations66("tasks.page");
@@ -15055,7 +15177,7 @@ var WfoTasksListPage = () => {
15055
15177
  workflowName: {
15056
15178
  columnType: "data" /* DATA */,
15057
15179
  label: t("taskName"),
15058
- renderData: (value, { processId }) => /* @__PURE__ */ jsx217(Link11, { href: `${PATH_TASKS}/${processId}`, children: value })
15180
+ renderData: (value, { processId }) => /* @__PURE__ */ jsx217(Link12, { href: `${PATH_TASKS}/${processId}`, children: value })
15059
15181
  },
15060
15182
  ...toSortedTableColumnConfig(defaultTableColumns, [
15061
15183
  "lastStep",
@@ -15073,8 +15195,8 @@ var WfoTasksListPage = () => {
15073
15195
  "lastModifiedAt"
15074
15196
  ])
15075
15197
  });
15076
- return /* @__PURE__ */ jsxs116(Fragment55, { children: [
15077
- /* @__PURE__ */ jsxs116(WfoContentHeader, { title: /* @__PURE__ */ jsx217(WfoTitleWithWebsocketBadge, { title: "Tasks" }), children: [
15198
+ return /* @__PURE__ */ jsxs117(Fragment55, { children: [
15199
+ /* @__PURE__ */ jsxs117(WfoContentHeader, { title: /* @__PURE__ */ jsx217(WfoTitleWithWebsocketBadge, { title: "Tasks" }), children: [
15078
15200
  /* @__PURE__ */ jsx217(WfoIsAllowedToRender, { resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */, children: /* @__PURE__ */ jsx217(
15079
15201
  EuiButton16,
15080
15202
  {
@@ -15179,7 +15301,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
15179
15301
  };
15180
15302
 
15181
15303
  // src/pages/workflows/WfoWorkflowsListPage.tsx
15182
- import { Fragment as Fragment56, jsx as jsx218, jsxs as jsxs117 } from "@emotion/react/jsx-runtime";
15304
+ import { Fragment as Fragment56, jsx as jsx218, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
15183
15305
  var WfoWorkflowsListPage = () => {
15184
15306
  const router = useRouter16();
15185
15307
  const t = useTranslations67("workflows.index");
@@ -15215,7 +15337,7 @@ var WfoWorkflowsListPage = () => {
15215
15337
  router.replace(PATH_WORKFLOWS);
15216
15338
  return null;
15217
15339
  }
15218
- return /* @__PURE__ */ jsxs117(Fragment56, { children: [
15340
+ return /* @__PURE__ */ jsxs118(Fragment56, { children: [
15219
15341
  /* @__PURE__ */ jsx218(WfoContentHeader, { title: /* @__PURE__ */ jsx218(WfoTitleWithWebsocketBadge, { title: t("title") }) }),
15220
15342
  /* @__PURE__ */ jsx218(
15221
15343
  WfoFilterTabs,
@@ -15337,7 +15459,7 @@ var graphQlProcessFilterMapper = (data) => data?.map(({ field, value }) => ({
15337
15459
  }));
15338
15460
 
15339
15461
  // src/components/WfoProcessList/WfoProcessesList.tsx
15340
- import { jsx as jsx219, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
15462
+ import { jsx as jsx219, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
15341
15463
  var WfoProcessesList = ({
15342
15464
  alwaysOnFilters,
15343
15465
  defaultHiddenColumns = [],
@@ -15355,7 +15477,7 @@ var WfoProcessesList = ({
15355
15477
  columnType: "data" /* DATA */,
15356
15478
  label: t("workflowName"),
15357
15479
  width: "225px",
15358
- renderData: (value, { processId }) => /* @__PURE__ */ jsx219(Link12, { href: `${PATH_WORKFLOWS}/${processId}`, children: value }),
15480
+ renderData: (value, { processId }) => /* @__PURE__ */ jsx219(Link13, { href: `${PATH_WORKFLOWS}/${processId}`, children: value }),
15359
15481
  renderTooltip: (value) => value
15360
15482
  },
15361
15483
  lastStep: {
@@ -15408,7 +15530,7 @@ var WfoProcessesList = ({
15408
15530
  }
15409
15531
  ),
15410
15532
  renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx219(WfoProcessListSubscriptionsCell, { subscriptions }),
15411
- renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */ jsxs118("p", { children: [
15533
+ renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */ jsxs119("p", { children: [
15412
15534
  "- ",
15413
15535
  description
15414
15536
  ] }, subscriptionId)),
@@ -15582,7 +15704,7 @@ var getWfoFlushSettingsStyle = ({ theme }) => {
15582
15704
  };
15583
15705
 
15584
15706
  // src/components/WfoSettings/WfoFlushSettings.tsx
15585
- import { jsx as jsx221, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
15707
+ import { jsx as jsx221, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
15586
15708
  var WfoFlushSettings = () => {
15587
15709
  const { comboboxStyle } = useWithOrchestratorTheme(getWfoFlushSettingsStyle);
15588
15710
  const [clearCache] = useClearCacheMutation();
@@ -15608,7 +15730,7 @@ var WfoFlushSettings = () => {
15608
15730
  showToastMessage("ERROR" /* ERROR */, `Flush for cache key ${cacheKey} failed`, "Flush failed");
15609
15731
  });
15610
15732
  };
15611
- return /* @__PURE__ */ jsx221(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */ jsxs119(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
15733
+ return /* @__PURE__ */ jsx221(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */ jsxs120(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
15612
15734
  /* @__PURE__ */ jsx221(EuiText27, { size: "s", children: /* @__PURE__ */ jsx221("h4", { children: t("flushCacheSettingsTitle") }) }),
15613
15735
  /* @__PURE__ */ jsx221(EuiSpacer27, { size: "m" }),
15614
15736
  /* @__PURE__ */ jsx221(
@@ -15647,18 +15769,18 @@ var WfoEngineStatusButton = () => {
15647
15769
  // src/components/WfoSettings/WfoModifySettings.tsx
15648
15770
  import { useTranslations as useTranslations71 } from "next-intl";
15649
15771
  import { EuiFlexItem as EuiFlexItem24, EuiPanel as EuiPanel8, EuiSpacer as EuiSpacer28, EuiText as EuiText28 } from "@elastic/eui";
15650
- import { jsx as jsx223, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
15772
+ import { jsx as jsx223, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
15651
15773
  var WfoModifySettings = () => {
15652
15774
  const t = useTranslations71("settings.page");
15653
- return /* @__PURE__ */ jsxs120(EuiFlexItem24, { children: [
15654
- /* @__PURE__ */ jsxs120(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
15775
+ return /* @__PURE__ */ jsxs121(EuiFlexItem24, { children: [
15776
+ /* @__PURE__ */ jsxs121(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
15655
15777
  /* @__PURE__ */ jsx223(EuiText28, { size: "s", children: /* @__PURE__ */ jsx223("h4", { children: t("resetTextSearchIndex") }) }),
15656
15778
  /* @__PURE__ */ jsx223(EuiSpacer28, { size: "m" }),
15657
15779
  /* @__PURE__ */ jsx223(WfoResetTextSearchIndexButton, {})
15658
15780
  ] }),
15659
- /* @__PURE__ */ jsxs120(WfoIsAllowedToRender, { resource: "/orchestrator/settings/start-stop-engine" /* SETTINGS_START_STOP_ENGINE */, children: [
15781
+ /* @__PURE__ */ jsxs121(WfoIsAllowedToRender, { resource: "/orchestrator/settings/start-stop-engine" /* SETTINGS_START_STOP_ENGINE */, children: [
15660
15782
  /* @__PURE__ */ jsx223(EuiSpacer28, {}),
15661
- /* @__PURE__ */ jsxs120(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
15783
+ /* @__PURE__ */ jsxs121(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
15662
15784
  /* @__PURE__ */ jsx223(EuiText28, { size: "s", children: /* @__PURE__ */ jsx223("h4", { children: t("modifyEngine") }) }),
15663
15785
  /* @__PURE__ */ jsx223(EuiSpacer28, { size: "m" }),
15664
15786
  /* @__PURE__ */ jsx223(WfoEngineStatusButton, {})
@@ -15670,20 +15792,20 @@ var WfoModifySettings = () => {
15670
15792
  // src/components/WfoSettings/WfoEngineStatus.tsx
15671
15793
  import { useTranslations as useTranslations72 } from "next-intl";
15672
15794
  import { EuiFlexGroup as EuiFlexGroup28, EuiFlexItem as EuiFlexItem25, EuiPanel as EuiPanel9, EuiText as EuiText29 } from "@elastic/eui";
15673
- import { jsx as jsx224, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
15795
+ import { jsx as jsx224, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
15674
15796
  var WfoEngineStatus = () => {
15675
15797
  const { theme } = useOrchestratorTheme();
15676
15798
  const { data } = useGetEngineStatusQuery();
15677
15799
  const { engineStatus, runningProcesses } = data || {};
15678
15800
  const isRunning = engineStatus === "RUNNING" /* RUNNING */;
15679
15801
  const t = useTranslations72("settings.page");
15680
- return /* @__PURE__ */ jsx224(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs121(EuiFlexGroup28, { direction: "column", gutterSize: "s", children: [
15802
+ return /* @__PURE__ */ jsx224(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs122(EuiFlexGroup28, { direction: "column", gutterSize: "s", children: [
15681
15803
  /* @__PURE__ */ jsx224(EuiFlexItem25, { children: /* @__PURE__ */ jsx224(EuiText29, { size: "s", children: /* @__PURE__ */ jsx224("h4", { children: t("engineStatusTitle") }) }) }),
15682
- /* @__PURE__ */ jsxs121(EuiFlexItem25, { css: { flexDirection: "row" }, children: [
15804
+ /* @__PURE__ */ jsxs122(EuiFlexItem25, { css: { flexDirection: "row" }, children: [
15683
15805
  /* @__PURE__ */ jsx224(EuiText29, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
15684
15806
  /* @__PURE__ */ jsx224(EuiText29, { size: "s", children: runningProcesses || "-" })
15685
15807
  ] }),
15686
- /* @__PURE__ */ jsxs121(EuiFlexItem25, { css: { flexDirection: "row" }, children: [
15808
+ /* @__PURE__ */ jsxs122(EuiFlexItem25, { css: { flexDirection: "row" }, children: [
15687
15809
  /* @__PURE__ */ jsx224(EuiText29, { size: "s", style: { minWidth: 190 }, children: t("status") }),
15688
15810
  /* @__PURE__ */ jsx224(WfoStatusDotIcon, { color: isRunning ? theme.colors.success : theme.colors.warning }),
15689
15811
  /* @__PURE__ */ jsx224(EuiText29, { size: "xs", css: { paddingTop: theme.size.xs }, children: /* @__PURE__ */ jsx224("p", { children: engineStatus }) })
@@ -15694,22 +15816,22 @@ var WfoEngineStatus = () => {
15694
15816
  // src/components/WfoSettings/WfoWorkerStatus.tsx
15695
15817
  import { useTranslations as useTranslations73 } from "next-intl";
15696
15818
  import { EuiFlexGroup as EuiFlexGroup29, EuiFlexItem as EuiFlexItem26, EuiPanel as EuiPanel10, EuiText as EuiText30 } from "@elastic/eui";
15697
- import { jsx as jsx225, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
15819
+ import { jsx as jsx225, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
15698
15820
  var WfoWorkerStatus = () => {
15699
15821
  const { data } = useGetWorkerStatusQuery();
15700
15822
  const { executorType, numberOfQueuedJobs, numberOfRunningJobs, numberOfWorkersOnline } = data || {};
15701
15823
  const t = useTranslations73("settings.page");
15702
- return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx225(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs122(EuiFlexGroup29, { direction: "column", gutterSize: "s", children: [
15824
+ return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx225(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs123(EuiFlexGroup29, { direction: "column", gutterSize: "s", children: [
15703
15825
  /* @__PURE__ */ jsx225(EuiFlexItem26, { children: /* @__PURE__ */ jsx225(EuiText30, { size: "s", children: /* @__PURE__ */ jsx225("h4", { children: t("workerStatusTitle") }) }) }),
15704
- /* @__PURE__ */ jsxs122(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
15826
+ /* @__PURE__ */ jsxs123(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
15705
15827
  /* @__PURE__ */ jsx225(EuiText30, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
15706
15828
  /* @__PURE__ */ jsx225(EuiText30, { size: "s", children: numberOfQueuedJobs || "-" })
15707
15829
  ] }),
15708
- /* @__PURE__ */ jsxs122(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
15830
+ /* @__PURE__ */ jsxs123(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
15709
15831
  /* @__PURE__ */ jsx225(EuiText30, { size: "s", style: { minWidth: 200 }, children: t("numberOfRunningJobs") }),
15710
15832
  /* @__PURE__ */ jsx225(EuiText30, { size: "s", children: numberOfRunningJobs || "-" })
15711
15833
  ] }),
15712
- /* @__PURE__ */ jsxs122(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
15834
+ /* @__PURE__ */ jsxs123(EuiFlexItem26, { css: { flexDirection: "row" }, children: [
15713
15835
  /* @__PURE__ */ jsx225(EuiText30, { size: "s", style: { minWidth: 200 }, children: t("numberOfWorkersOnline") }),
15714
15836
  /* @__PURE__ */ jsx225(EuiText30, { size: "s", children: numberOfWorkersOnline || "-" })
15715
15837
  ] })
@@ -15734,9 +15856,9 @@ var WfoInsyncIcon = ({ inSync }) => {
15734
15856
  };
15735
15857
 
15736
15858
  // src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
15737
- import React72 from "react";
15738
- import { jsx as jsx228, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
15739
- var WfoErrorBoundary = class extends React72.Component {
15859
+ import React73 from "react";
15860
+ import { jsx as jsx228, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
15861
+ var WfoErrorBoundary = class extends React73.Component {
15740
15862
  constructor(props) {
15741
15863
  super(props);
15742
15864
  this.state = { hasError: false };
@@ -15752,7 +15874,7 @@ var WfoErrorBoundary = class extends React72.Component {
15752
15874
  if (this.props.fallback) {
15753
15875
  return this.props.fallback;
15754
15876
  }
15755
- return /* @__PURE__ */ jsxs123("p", { children: [
15877
+ return /* @__PURE__ */ jsxs124("p", { children: [
15756
15878
  "An unexpected error occurred, try to go back to the ",
15757
15879
  /* @__PURE__ */ jsx228("a", { href: "/", children: "home page" })
15758
15880
  ] });
@@ -15786,10 +15908,10 @@ var getStyles13 = ({ theme }) => {
15786
15908
  };
15787
15909
 
15788
15910
  // src/components/WfoNoResults/WfoNoResults.tsx
15789
- import { jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
15911
+ import { jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
15790
15912
  var WfoNoResults = ({ text, icon }) => {
15791
15913
  const { panelStyle } = useWithOrchestratorTheme(getStyles13);
15792
- return /* @__PURE__ */ jsxs124(EuiFlexGroup30, { css: panelStyle, children: [
15914
+ return /* @__PURE__ */ jsxs125(EuiFlexGroup30, { css: panelStyle, children: [
15793
15915
  icon,
15794
15916
  " ",
15795
15917
  text
@@ -15917,7 +16039,7 @@ var subscriptionListTabs = [
15917
16039
 
15918
16040
  // src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
15919
16041
  import { useTranslations as useTranslations76 } from "next-intl";
15920
- import Link13 from "next/link";
16042
+ import Link14 from "next/link";
15921
16043
  import { useRouter as useRouter19 } from "next/router";
15922
16044
  import { jsx as jsx231 } from "@emotion/react/jsx-runtime";
15923
16045
  var WfoSubscriptionsList = ({
@@ -15958,7 +16080,7 @@ var WfoSubscriptionsList = ({
15958
16080
  columnType: "data" /* DATA */,
15959
16081
  label: t("description"),
15960
16082
  width: "500px",
15961
- renderData: (value, record) => /* @__PURE__ */ jsx231(Link13, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
16083
+ renderData: (value, record) => /* @__PURE__ */ jsx231(Link14, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
15962
16084
  renderTooltip: (value) => value
15963
16085
  },
15964
16086
  status: {
@@ -16134,7 +16256,7 @@ var getWfoSummaryCardHeaderStyles = ({ theme }) => {
16134
16256
  };
16135
16257
 
16136
16258
  // src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
16137
- import { jsx as jsx232, jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
16259
+ import { jsx as jsx232, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
16138
16260
  var WfoSummaryCardHeader = ({
16139
16261
  text,
16140
16262
  value,
@@ -16144,7 +16266,7 @@ var WfoSummaryCardHeader = ({
16144
16266
  }) => {
16145
16267
  const { theme } = useOrchestratorTheme();
16146
16268
  const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
16147
- return /* @__PURE__ */ jsx232(EuiFlexItem27, { grow: 0, children: /* @__PURE__ */ jsx232(EuiPanel11, { hasShadow: false, css: { backgroundColor: theme.colors.backgroundBaseSubdued }, paddingSize: "l", children: /* @__PURE__ */ jsxs125(EuiFlexGroup31, { alignItems: "center", children: [
16269
+ return /* @__PURE__ */ jsx232(EuiFlexItem27, { grow: 0, children: /* @__PURE__ */ jsx232(EuiPanel11, { hasShadow: false, css: { backgroundColor: theme.colors.backgroundBaseSubdued }, paddingSize: "l", children: /* @__PURE__ */ jsxs126(EuiFlexGroup31, { alignItems: "center", children: [
16148
16270
  /* @__PURE__ */ jsx232(
16149
16271
  EuiAvatar,
16150
16272
  {
@@ -16158,9 +16280,9 @@ var WfoSummaryCardHeader = ({
16158
16280
  color: iconColor
16159
16281
  }
16160
16282
  ),
16161
- /* @__PURE__ */ jsxs125("div", { css: totalSectionStyle, children: [
16283
+ /* @__PURE__ */ jsxs126("div", { css: totalSectionStyle, children: [
16162
16284
  /* @__PURE__ */ jsx232(EuiText31, { color: "subdued", children: text }),
16163
- /* @__PURE__ */ jsxs125(EuiFlexGroup31, { gutterSize: "s", alignItems: "center", children: [
16285
+ /* @__PURE__ */ jsxs126(EuiFlexGroup31, { gutterSize: "s", alignItems: "center", children: [
16164
16286
  /* @__PURE__ */ jsx232(EuiText31, { css: valueStyle, children: value }),
16165
16287
  isFetching && /* @__PURE__ */ jsx232(EuiLoadingSpinner2, {})
16166
16288
  ] })
@@ -16184,13 +16306,13 @@ import {
16184
16306
  import { EuiFlexGroup as EuiFlexGroup32, EuiFlexItem as EuiFlexItem28, EuiIcon as EuiIcon4, EuiTextColor } from "@elastic/eui";
16185
16307
 
16186
16308
  // src/components/WfoOptionalLink/WfoOptionalLink.tsx
16187
- import Link14 from "next/link";
16309
+ import Link15 from "next/link";
16188
16310
  import { jsx as jsx233 } from "@emotion/react/jsx-runtime";
16189
16311
  var WfoOptionalLink = ({ children, href }) => {
16190
16312
  if (!href) {
16191
16313
  return /* @__PURE__ */ jsx233("span", { children });
16192
16314
  }
16193
- return /* @__PURE__ */ jsx233(Link14, { href, children });
16315
+ return /* @__PURE__ */ jsx233(Link15, { href, children });
16194
16316
  };
16195
16317
 
16196
16318
  // src/components/WfoSummary/WfoSummaryCardList/styles.ts
@@ -16241,12 +16363,12 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
16241
16363
  };
16242
16364
 
16243
16365
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
16244
- import { jsx as jsx234, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
16366
+ import { jsx as jsx234, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
16245
16367
  var WfoSummaryCardListItem = ({ title, value, url }) => {
16246
16368
  const { theme } = useOrchestratorTheme();
16247
16369
  const { listItemContainerStyle, listItemTitleStyle, listItemSubtitleStyle, listItemHighlightIconStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
16248
- return /* @__PURE__ */ jsx234(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs126(EuiFlexGroup32, { css: listItemContainerStyle, gutterSize: "none", children: [
16249
- /* @__PURE__ */ jsxs126(EuiFlexItem28, { children: [
16370
+ return /* @__PURE__ */ jsx234(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs127(EuiFlexGroup32, { css: listItemContainerStyle, gutterSize: "none", children: [
16371
+ /* @__PURE__ */ jsxs127(EuiFlexItem28, { children: [
16250
16372
  /* @__PURE__ */ jsx234(EuiTextColor, { color: url ? theme.colors.link : theme.colors.textHeading, css: listItemTitleStyle, children: title }),
16251
16373
  /* @__PURE__ */ jsx234(EuiTextColor, { css: listItemSubtitleStyle, children: value })
16252
16374
  ] }),
@@ -16255,16 +16377,16 @@ var WfoSummaryCardListItem = ({ title, value, url }) => {
16255
16377
  };
16256
16378
 
16257
16379
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
16258
- import { jsx as jsx235, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
16380
+ import { jsx as jsx235, jsxs as jsxs128 } from "@emotion/react/jsx-runtime";
16259
16381
  var WfoSummaryCardList = ({ title, items, button, isLoading = false }) => {
16260
16382
  const router = useRouter20();
16261
16383
  const euiScrollBarStyle = useEuiScrollBar3();
16262
16384
  const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
16263
- return /* @__PURE__ */ jsx235(EuiFlexItem29, { children: /* @__PURE__ */ jsxs127(EuiPanel12, { css: listContainerStyle, hasShadow: false, hasBorder: true, paddingSize: "l", children: [
16264
- /* @__PURE__ */ jsxs127("div", { children: [
16385
+ return /* @__PURE__ */ jsx235(EuiFlexItem29, { children: /* @__PURE__ */ jsxs128(EuiPanel12, { css: listContainerStyle, hasShadow: false, hasBorder: true, paddingSize: "l", children: [
16386
+ /* @__PURE__ */ jsxs128("div", { children: [
16265
16387
  /* @__PURE__ */ jsx235("p", { css: listHeaderStyle, children: title }),
16266
16388
  /* @__PURE__ */ jsx235(EuiSpacer29, { size: "m" }),
16267
- /* @__PURE__ */ jsx235(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx235("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs127("div", { children: [
16389
+ /* @__PURE__ */ jsx235(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx235("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs128("div", { children: [
16268
16390
  /* @__PURE__ */ jsx235(WfoSummaryCardListItem, { title: item.title, value: item.value, url: item.url }),
16269
16391
  index === items.length - 1 ? null : /* @__PURE__ */ jsx235(EuiHorizontalRule8, { margin: "none" })
16270
16392
  ] }, index)) }) })
@@ -16298,7 +16420,7 @@ var getWfoSummaryCardsStyles = ({ theme }) => {
16298
16420
  };
16299
16421
 
16300
16422
  // src/components/WfoSummary/WfoSummaryCard.tsx
16301
- import { jsx as jsx237, jsxs as jsxs128 } from "@emotion/react/jsx-runtime";
16423
+ import { jsx as jsx237, jsxs as jsxs129 } from "@emotion/react/jsx-runtime";
16302
16424
  var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
16303
16425
  SummaryCardStatus2["Success"] = "Success";
16304
16426
  SummaryCardStatus2["Error"] = "Error";
@@ -16342,7 +16464,7 @@ var WfoSummaryCard = ({
16342
16464
  };
16343
16465
  }
16344
16466
  };
16345
- return /* @__PURE__ */ jsxs128(EuiFlexItem30, { css: cardContainerStyle, children: [
16467
+ return /* @__PURE__ */ jsxs129(EuiFlexItem30, { css: cardContainerStyle, children: [
16346
16468
  /* @__PURE__ */ jsx237(
16347
16469
  WfoSummaryCardHeader,
16348
16470
  {
@@ -16602,7 +16724,7 @@ var WfoMyWorkflowsSummaryCard = ({ username }) => {
16602
16724
 
16603
16725
  // src/components/WfoSummary/WfoProductsSummaryCard.tsx
16604
16726
  import { useTranslations as useTranslations82 } from "next-intl";
16605
- import { jsx as jsx243, jsxs as jsxs129 } from "@emotion/react/jsx-runtime";
16727
+ import { jsx as jsx243, jsxs as jsxs130 } from "@emotion/react/jsx-runtime";
16606
16728
  var WfoProductsSummaryCard = () => {
16607
16729
  const t = useTranslations82("startPage.products");
16608
16730
  const {
@@ -16614,7 +16736,7 @@ var WfoProductsSummaryCard = () => {
16614
16736
  (left, right) => (right.subscriptions.pageInfo.totalItems ?? 0) - (left.subscriptions.pageInfo.totalItems ?? 0)
16615
16737
  ).map((product) => ({
16616
16738
  title: "",
16617
- value: /* @__PURE__ */ jsxs129(
16739
+ value: /* @__PURE__ */ jsxs130(
16618
16740
  "div",
16619
16741
  {
16620
16742
  css: {
@@ -16644,13 +16766,13 @@ var WfoProductsSummaryCard = () => {
16644
16766
 
16645
16767
  // src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx
16646
16768
  import { EuiPageHeader as EuiPageHeader3 } from "@elastic/eui";
16647
- import { Fragment as Fragment58, jsx as jsx244, jsxs as jsxs130 } from "@emotion/react/jsx-runtime";
16648
- var WfoTitleWithWebsocketBadge = ({ title }) => {
16769
+ import { Fragment as Fragment58, jsx as jsx244, jsxs as jsxs131 } from "@emotion/react/jsx-runtime";
16770
+ var WfoTitleWithWebsocketBadge = ({ title, wsUrl = void 0 }) => {
16649
16771
  const { useWebSockets } = useGetOrchestratorConfig();
16650
- const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs130(Fragment58, { children: [
16772
+ const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs131(Fragment58, { children: [
16651
16773
  title,
16652
16774
  " ",
16653
- /* @__PURE__ */ jsx244(WfoWebsocketStatusBadge, {})
16775
+ /* @__PURE__ */ jsx244(WfoWebsocketStatusBadge, { wsUrl })
16654
16776
  ] }) : title;
16655
16777
  return /* @__PURE__ */ jsx244(EuiPageHeader3, { pageTitle });
16656
16778
  };
@@ -16959,14 +17081,14 @@ var useSearch = (query, entityType, filterGroup, limit, retriever = "auto" /* Au
16959
17081
  };
16960
17082
 
16961
17083
  // src/hooks/useSearchPagination.ts
16962
- import { useCallback as useCallback12, useState as useState46 } from "react";
17084
+ import { useCallback as useCallback13, useState as useState46 } from "react";
16963
17085
  var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageSize, results, setResults, retriever) => {
16964
17086
  const [currentPage, setCurrentPage] = useState46(1);
16965
17087
  const [pageHistory, setPageHistory] = useState46([]);
16966
17088
  const [error, setError] = useState46(null);
16967
17089
  const [isLoadingMore, setIsLoadingMore] = useState46(false);
16968
17090
  const [triggerSearchPagination] = useSearchWithPaginationMutation();
16969
- const handleNextPage = useCallback12(
17091
+ const handleNextPage = useCallback13(
16970
17092
  async (nextPageCursor) => {
16971
17093
  if (!nextPageCursor || isLoadingMore) return;
16972
17094
  setIsLoadingMore(true);
@@ -17025,7 +17147,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
17025
17147
  triggerSearchPagination
17026
17148
  ]
17027
17149
  );
17028
- const handlePrevPage = useCallback12(() => {
17150
+ const handlePrevPage = useCallback13(() => {
17029
17151
  const previousPage = pageHistory.find((p) => p.page === currentPage - 1);
17030
17152
  if (previousPage) {
17031
17153
  setResults({
@@ -17040,7 +17162,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
17040
17162
  setPageHistory((prev) => prev.filter((p) => p.page < currentPage));
17041
17163
  }
17042
17164
  }, [currentPage, pageHistory, results.search_metadata, setResults]);
17043
- const resetPagination = useCallback12(() => {
17165
+ const resetPagination = useCallback13(() => {
17044
17166
  setCurrentPage(1);
17045
17167
  setPageHistory([]);
17046
17168
  }, []);
@@ -17057,7 +17179,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
17057
17179
  };
17058
17180
 
17059
17181
  // src/hooks/useUrlParams.ts
17060
- import { useCallback as useCallback13, useEffect as useEffect31, useState as useState47 } from "react";
17182
+ import { useCallback as useCallback14, useEffect as useEffect31, useState as useState47 } from "react";
17061
17183
 
17062
17184
  // src/components/WfoSearchPage/constants.ts
17063
17185
  var DEFAULT_PAGE_SIZE2 = 5;
@@ -17096,7 +17218,7 @@ var useUrlParams = () => {
17096
17218
  const [selectedRecordId, setSelectedRecordId] = useState47(() => {
17097
17219
  return urlParams.get("id") || null;
17098
17220
  });
17099
- const updateUrl = useCallback13(() => {
17221
+ const updateUrl = useCallback14(() => {
17100
17222
  const newParams = new URLSearchParams();
17101
17223
  const queryText = typeof query === "string" ? query : query.text || "";
17102
17224
  if (queryText && queryText !== "*") {
@@ -17137,7 +17259,7 @@ var useUrlParams = () => {
17137
17259
  };
17138
17260
 
17139
17261
  // src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
17140
- import { Fragment as Fragment59, jsx as jsx249, jsxs as jsxs131 } from "@emotion/react/jsx-runtime";
17262
+ import { Fragment as Fragment59, jsx as jsx249, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
17141
17263
  var WfoSearch = () => {
17142
17264
  const t = useTranslations83("search.page");
17143
17265
  const searchAvailability = useSearchAvailability();
@@ -17255,7 +17377,7 @@ var WfoSearch = () => {
17255
17377
  resetPagination();
17256
17378
  }, [debouncedQuery, selectedEntityTab, filterGroup, resetPagination]);
17257
17379
  const { RESULTS_GROW, DETAIL_GROW } = LAYOUT_RATIOS;
17258
- return /* @__PURE__ */ jsxs131(WfoAvailabilityCheck, { featureType: "search", availability: searchAvailability, children: [
17380
+ return /* @__PURE__ */ jsxs132(WfoAvailabilityCheck, { featureType: "search", availability: searchAvailability, children: [
17259
17381
  /* @__PURE__ */ jsx249(EuiTabs4, { children: ENTITY_TABS.map((tab) => /* @__PURE__ */ jsx249(EuiTab4, { onClick: () => handleTabChange(tab.id), isSelected: selectedEntityTab === tab.id, children: tab.label }, tab.id)) }),
17260
17382
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
17261
17383
  /* @__PURE__ */ jsx249(
@@ -17276,7 +17398,7 @@ var WfoSearch = () => {
17276
17398
  }
17277
17399
  ),
17278
17400
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "s" }),
17279
- /* @__PURE__ */ jsxs131(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
17401
+ /* @__PURE__ */ jsxs132(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
17280
17402
  /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: false, children: /* @__PURE__ */ jsx249(EuiButton21, { iconType: showFilters ? "eyeClosed" : "eye", size: "s", onClick: () => setShowFilters(!showFilters), children: showFilters ? t("hideFilters") : t("showFilters") }) }),
17281
17403
  /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: true }),
17282
17404
  /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: false, children: /* @__PURE__ */ jsx249(
@@ -17307,25 +17429,25 @@ var WfoSearch = () => {
17307
17429
  }
17308
17430
  ) })
17309
17431
  ] }),
17310
- showFilters && /* @__PURE__ */ jsxs131(Fragment59, { children: [
17432
+ showFilters && /* @__PURE__ */ jsxs132(Fragment59, { children: [
17311
17433
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
17312
- /* @__PURE__ */ jsxs131(EuiPanel13, { hasBorder: true, paddingSize: "m", children: [
17434
+ /* @__PURE__ */ jsxs132(EuiPanel13, { hasBorder: true, paddingSize: "m", children: [
17313
17435
  /* @__PURE__ */ jsx249(EuiText32, { children: /* @__PURE__ */ jsx249("h4", { children: t("structuredFilters") }) }),
17314
17436
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "s" }),
17315
17437
  /* @__PURE__ */ jsx249(FilterGroup, { group: filterGroup, entityType: selectedEntityTab, onChange: setFilterGroup, isRoot: true })
17316
17438
  ] })
17317
17439
  ] }),
17318
17440
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
17319
- error && /* @__PURE__ */ jsxs131(Fragment59, { children: [
17320
- /* @__PURE__ */ jsxs131(EuiCallOut4, { title: t("searchError"), color: "danger", iconType: "alert", size: "s", children: [
17441
+ error && /* @__PURE__ */ jsxs132(Fragment59, { children: [
17442
+ /* @__PURE__ */ jsxs132(EuiCallOut4, { title: t("searchError"), color: "danger", iconType: "alert", size: "s", children: [
17321
17443
  /* @__PURE__ */ jsx249("p", { children: error }),
17322
17444
  /* @__PURE__ */ jsx249(EuiButton21, { size: "s", color: "danger", onClick: () => setError(null), children: t("dismiss") })
17323
17445
  ] }),
17324
17446
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" })
17325
17447
  ] }),
17326
- shouldShowNoResults && /* @__PURE__ */ jsxs131(Fragment59, { children: [
17448
+ shouldShowNoResults && /* @__PURE__ */ jsxs132(Fragment59, { children: [
17327
17449
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "l" }),
17328
- /* @__PURE__ */ jsxs131(EuiCallOut4, { title: t("noResults"), color: "primary", iconType: "search", size: "m", children: [
17450
+ /* @__PURE__ */ jsxs132(EuiCallOut4, { title: t("noResults"), color: "primary", iconType: "search", size: "m", children: [
17329
17451
  /* @__PURE__ */ jsx249("p", { children: t("noResultsMessage", {
17330
17452
  entityType: currentTab?.label.toLowerCase()
17331
17453
  }) }),
@@ -17334,10 +17456,10 @@ var WfoSearch = () => {
17334
17456
  ] }),
17335
17457
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "l" })
17336
17458
  ] }),
17337
- isSearchActive && /* @__PURE__ */ jsxs131(Fragment59, { children: [
17459
+ isSearchActive && /* @__PURE__ */ jsxs132(Fragment59, { children: [
17338
17460
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "m" }),
17339
- /* @__PURE__ */ jsxs131(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
17340
- /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsxs131(
17461
+ /* @__PURE__ */ jsxs132(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
17462
+ /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsxs132(
17341
17463
  EuiFlexGroup34,
17342
17464
  {
17343
17465
  gutterSize: "s",
@@ -17366,7 +17488,7 @@ var WfoSearch = () => {
17366
17488
  showDetailPanel && /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: DETAIL_GROW })
17367
17489
  ] }),
17368
17490
  /* @__PURE__ */ jsx249(EuiSpacer31, { size: "s" }),
17369
- /* @__PURE__ */ jsxs131(EuiFlexGroup34, { gutterSize: "s", alignItems: "flexStart", children: [
17491
+ /* @__PURE__ */ jsxs132(EuiFlexGroup34, { gutterSize: "s", alignItems: "flexStart", children: [
17370
17492
  /* @__PURE__ */ jsx249(EuiFlexItem32, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsx249(EuiPanel13, { paddingSize: "none", hasBorder: true, children: /* @__PURE__ */ jsx249(
17371
17493
  WfoSearchResults,
17372
17494
  {
@@ -17417,7 +17539,7 @@ import { useTranslations as useTranslations86 } from "next-intl";
17417
17539
  import { EuiButtonIcon as EuiButtonIcon15, EuiFlexGroup as EuiFlexGroup38, EuiFlexItem as EuiFlexItem36, EuiPanel as EuiPanel16, EuiSpacer as EuiSpacer32, EuiText as EuiText35 } from "@elastic/eui";
17418
17540
 
17419
17541
  // src/components/WfoSearchPage/WfoSearchResults/WfoHighlightedText.tsx
17420
- import { useMemo as useMemo7 } from "react";
17542
+ import { useMemo as useMemo8 } from "react";
17421
17543
  import { css as css43 } from "@emotion/react";
17422
17544
  import { Fragment as Fragment60, jsx as jsx252 } from "@emotion/react/jsx-runtime";
17423
17545
  var WfoHighlightedText = ({ text, highlight_indices }) => {
@@ -17430,7 +17552,7 @@ var WfoHighlightedText = ({ text, highlight_indices }) => {
17430
17552
  font-weight: ${theme.font.weight.bold};
17431
17553
  border-radius: ${theme.size.xs};
17432
17554
  `;
17433
- const highlightedParts = useMemo7(() => {
17555
+ const highlightedParts = useMemo8(() => {
17434
17556
  if (!highlight_indices || highlight_indices.length === 0) {
17435
17557
  return text;
17436
17558
  }
@@ -17457,7 +17579,7 @@ var WfoHighlightedText = ({ text, highlight_indices }) => {
17457
17579
  // src/components/WfoSearchPage/WfoSearchResults/WfoPathBreadcrumb.tsx
17458
17580
  import { Fragment as Fragment61 } from "react";
17459
17581
  import { EuiFlexGroup as EuiFlexGroup37, EuiFlexItem as EuiFlexItem35, EuiIcon as EuiIcon5 } from "@elastic/eui";
17460
- import { jsx as jsx253, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
17582
+ import { jsx as jsx253, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
17461
17583
  var WfoPathBreadcrumb = ({
17462
17584
  path,
17463
17585
  size = "m",
@@ -17476,14 +17598,14 @@ var WfoPathBreadcrumb = ({
17476
17598
  }
17477
17599
  const displaySegments = maxSegments && segments.length > maxSegments ? [...segments.slice(0, maxSegments - 1), "...", segments[segments.length - 1]] : segments;
17478
17600
  const badgeColor = color || theme.colors.primary;
17479
- return /* @__PURE__ */ jsx253(EuiFlexGroup37, { gutterSize: size, alignItems: "center", wrap: false, responsive: false, children: displaySegments.map((segment, index) => /* @__PURE__ */ jsxs132(Fragment61, { children: [
17601
+ return /* @__PURE__ */ jsx253(EuiFlexGroup37, { gutterSize: size, alignItems: "center", wrap: false, responsive: false, children: displaySegments.map((segment, index) => /* @__PURE__ */ jsxs133(Fragment61, { children: [
17480
17602
  /* @__PURE__ */ jsx253(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx253(WfoBadge, { color: badgeColor, textColor: theme.colors.textGhost, size, children: segment }) }),
17481
17603
  showArrows && index < displaySegments.length - 1 && /* @__PURE__ */ jsx253(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx253(EuiIcon5, { type: "arrowRight", size, color: theme.colors.link }) })
17482
17604
  ] }, index)) });
17483
17605
  };
17484
17606
 
17485
17607
  // src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx
17486
- import { Fragment as Fragment62, jsx as jsx254, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
17608
+ import { Fragment as Fragment62, jsx as jsx254, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
17487
17609
  var WfoSearchResultItem = ({
17488
17610
  result,
17489
17611
  isSelected = false,
@@ -17519,8 +17641,8 @@ var WfoSearchResultItem = ({
17519
17641
  borderRight: "none",
17520
17642
  borderColor: theme.colors.primary
17521
17643
  } : void 0,
17522
- children: /* @__PURE__ */ jsxs133(EuiFlexGroup38, { alignItems: "flexStart", gutterSize: "m", children: [
17523
- /* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsxs133(EuiFlexGroup38, { direction: "column", gutterSize: "xs", children: [
17644
+ children: /* @__PURE__ */ jsxs134(EuiFlexGroup38, { alignItems: "flexStart", gutterSize: "m", children: [
17645
+ /* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsxs134(EuiFlexGroup38, { direction: "column", gutterSize: "xs", children: [
17524
17646
  /* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(
17525
17647
  EuiText35,
17526
17648
  {
@@ -17531,7 +17653,7 @@ var WfoSearchResultItem = ({
17531
17653
  children: result.entity_title
17532
17654
  }
17533
17655
  ) }),
17534
- matchingField && /* @__PURE__ */ jsxs133(Fragment62, { children: [
17656
+ matchingField && /* @__PURE__ */ jsxs134(Fragment62, { children: [
17535
17657
  matchingField.path && /* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(
17536
17658
  WfoPathBreadcrumb,
17537
17659
  {
@@ -17561,7 +17683,7 @@ var WfoSearchResultItem = ({
17561
17683
  /* @__PURE__ */ jsx254(EuiSpacer32, { size: "xs" })
17562
17684
  ] })
17563
17685
  ] }) }),
17564
- /* @__PURE__ */ jsx254(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsxs133(EuiFlexGroup38, { direction: "column", alignItems: "flexEnd", gutterSize: "xs", children: [
17686
+ /* @__PURE__ */ jsx254(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsxs134(EuiFlexGroup38, { direction: "column", alignItems: "flexEnd", gutterSize: "xs", children: [
17565
17687
  /* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(WfoBadge, { color: theme.colors.primary, textColor: theme.colors.textGhost, children: "score" in result && result.score ? result.score.toFixed(4) : "N/A" }) }),
17566
17688
  /* @__PURE__ */ jsx254(EuiFlexItem36, { children: /* @__PURE__ */ jsx254(
17567
17689
  EuiButtonIcon15,
@@ -17620,7 +17742,7 @@ var WfoSearchMetadataHeader = ({ search_metadata }) => {
17620
17742
  // src/components/WfoSearchPage/WfoSearchResults/WfoSearchPaginationInfo.tsx
17621
17743
  import { useTranslations as useTranslations87 } from "next-intl";
17622
17744
  import { EuiButtonIcon as EuiButtonIcon16, EuiFlexGroup as EuiFlexGroup40, EuiFlexItem as EuiFlexItem37, EuiText as EuiText36 } from "@elastic/eui";
17623
- import { jsx as jsx257, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
17745
+ import { jsx as jsx257, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
17624
17746
  var WfoSearchPaginationInfo = ({
17625
17747
  has_next_page,
17626
17748
  next_page_cursor,
@@ -17640,7 +17762,7 @@ var WfoSearchPaginationInfo = ({
17640
17762
  if (!isLoading && onPrevPage) onPrevPage();
17641
17763
  };
17642
17764
  if (!has_next_page && !hasPrevPage) return null;
17643
- return /* @__PURE__ */ jsxs134(
17765
+ return /* @__PURE__ */ jsxs135(
17644
17766
  EuiFlexGroup40,
17645
17767
  {
17646
17768
  justifyContent: "flexEnd",
@@ -17667,7 +17789,7 @@ var WfoSearchPaginationInfo = ({
17667
17789
  size: "s"
17668
17790
  }
17669
17791
  ) }),
17670
- /* @__PURE__ */ jsx257(EuiFlexItem37, { grow: false, children: /* @__PURE__ */ jsxs134(EuiText36, { size: "xs", color: theme.colors.textSubdued, children: [
17792
+ /* @__PURE__ */ jsx257(EuiFlexItem37, { grow: false, children: /* @__PURE__ */ jsxs135(EuiText36, { size: "xs", color: theme.colors.textSubdued, children: [
17671
17793
  t("page"),
17672
17794
  " ",
17673
17795
  currentPage
@@ -17817,7 +17939,7 @@ import {
17817
17939
  EuiIcon as EuiIcon6,
17818
17940
  EuiText as EuiText37
17819
17941
  } from "@elastic/eui";
17820
- import { Fragment as Fragment63, jsx as jsx258, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
17942
+ import { Fragment as Fragment63, jsx as jsx258, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
17821
17943
  var ValueControl = ({ pathInfo, operator, value, onChange }) => {
17822
17944
  const t = useTranslations88("search.page");
17823
17945
  const { theme } = useOrchestratorTheme();
@@ -17838,7 +17960,7 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
17838
17960
  };
17839
17961
  const currentValue = String(value || "");
17840
17962
  const hasWildcards = currentValue.includes("%") || currentValue.includes("_");
17841
- return /* @__PURE__ */ jsxs135(Fragment63, { children: [
17963
+ return /* @__PURE__ */ jsxs136(Fragment63, { children: [
17842
17964
  /* @__PURE__ */ jsx258(
17843
17965
  EuiFieldText2,
17844
17966
  {
@@ -17854,14 +17976,14 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
17854
17976
  prepend: /* @__PURE__ */ jsx258(EuiIcon6, { type: "search" })
17855
17977
  }
17856
17978
  ),
17857
- /* @__PURE__ */ jsx258(EuiFormHelpText, { children: hasWildcards ? /* @__PURE__ */ jsxs135("span", { children: [
17979
+ /* @__PURE__ */ jsx258(EuiFormHelpText, { children: hasWildcards ? /* @__PURE__ */ jsxs136("span", { children: [
17858
17980
  /* @__PURE__ */ jsx258(EuiIcon6, { type: "checkInCircleFilled", color: "success", size: "s" }),
17859
17981
  " Pattern with wildcards:",
17860
17982
  " ",
17861
17983
  /* @__PURE__ */ jsx258("strong", { children: currentValue })
17862
- ] }) : /* @__PURE__ */ jsxs135("span", { children: [
17984
+ ] }) : /* @__PURE__ */ jsxs136("span", { children: [
17863
17985
  "Will search for: ",
17864
- /* @__PURE__ */ jsxs135("strong", { children: [
17986
+ /* @__PURE__ */ jsxs136("strong", { children: [
17865
17987
  "%",
17866
17988
  currentValue || "your-text",
17867
17989
  "%"
@@ -17899,7 +18021,7 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
17899
18021
  if (pathInfo.type === "number") {
17900
18022
  if (operator === "between") {
17901
18023
  const betweenValue = value || { start: "", end: "" };
17902
- return /* @__PURE__ */ jsxs135(EuiFlexGroup41, { gutterSize: "s", alignItems: "center", children: [
18024
+ return /* @__PURE__ */ jsxs136(EuiFlexGroup41, { gutterSize: "s", alignItems: "center", children: [
17903
18025
  /* @__PURE__ */ jsx258(EuiFlexItem38, { children: /* @__PURE__ */ jsx258(
17904
18026
  EuiFieldNumber2,
17905
18027
  {
@@ -17937,7 +18059,7 @@ var ValueControl = ({ pathInfo, operator, value, onChange }) => {
17937
18059
  if (pathInfo.type === "datetime") {
17938
18060
  if (operator === "between") {
17939
18061
  const betweenValue = value || { start: null, end: null };
17940
- return /* @__PURE__ */ jsxs135(EuiFlexGroup41, { gutterSize: "s", alignItems: "center", children: [
18062
+ return /* @__PURE__ */ jsxs136(EuiFlexGroup41, { gutterSize: "s", alignItems: "center", children: [
17941
18063
  /* @__PURE__ */ jsx258(EuiFlexItem38, { children: /* @__PURE__ */ jsx258(
17942
18064
  EuiDatePicker2,
17943
18065
  {
@@ -18023,14 +18145,14 @@ var WfoFieldSelector = ({
18023
18145
  // src/components/WfoSearchPage/WfoConditionRow/WfoOperatorSelector.tsx
18024
18146
  import { useTranslations as useTranslations90 } from "next-intl";
18025
18147
  import { EuiButton as EuiButton22, EuiFlexGroup as EuiFlexGroup42, EuiFlexItem as EuiFlexItem39, EuiFormRow as EuiFormRow7, EuiText as EuiText38 } from "@elastic/eui";
18026
- import { jsx as jsx260, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
18148
+ import { jsx as jsx260, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
18027
18149
  var WfoOperatorSelector = ({ selectedPathInfo, condition, onOperatorChange }) => {
18028
18150
  const t = useTranslations90("search.page");
18029
18151
  const { theme } = useOrchestratorTheme();
18030
- return /* @__PURE__ */ jsx260(EuiFormRow7, { label: t("operatorLabel"), children: /* @__PURE__ */ jsxs136(EuiFlexGroup42, { gutterSize: "xs", wrap: true, children: [
18152
+ return /* @__PURE__ */ jsx260(EuiFormRow7, { label: t("operatorLabel"), children: /* @__PURE__ */ jsxs137(EuiFlexGroup42, { gutterSize: "xs", wrap: true, children: [
18031
18153
  selectedPathInfo?.operators?.map((operator) => {
18032
18154
  const { symbol, description } = getOperatorDisplay(operator, selectedPathInfo);
18033
- const tooltipContent = operator === "like" ? /* @__PURE__ */ jsxs136("div", { children: [
18155
+ const tooltipContent = operator === "like" ? /* @__PURE__ */ jsxs137("div", { children: [
18034
18156
  /* @__PURE__ */ jsx260("strong", { children: description }),
18035
18157
  /* @__PURE__ */ jsx260("br", {}),
18036
18158
  /* @__PURE__ */ jsx260("br", {}),
@@ -18081,11 +18203,11 @@ var WfoOperatorSelector = ({ selectedPathInfo, condition, onOperatorChange }) =>
18081
18203
 
18082
18204
  // src/components/WfoSearchPage/WfoConditionRow/WfoPathChips.tsx
18083
18205
  import { EuiIcon as EuiIcon7 } from "@elastic/eui";
18084
- import { jsx as jsx261, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
18206
+ import { jsx as jsx261, jsxs as jsxs138 } from "@emotion/react/jsx-runtime";
18085
18207
  var WfoPathChips = ({ fullPath, label, fieldType, isAnyPath = false }) => {
18086
18208
  const { theme } = useOrchestratorTheme();
18087
18209
  if (isAnyPath) {
18088
- return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: label, children: /* @__PURE__ */ jsxs137(
18210
+ return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: label, children: /* @__PURE__ */ jsxs138(
18089
18211
  "div",
18090
18212
  {
18091
18213
  style: {
@@ -18144,7 +18266,7 @@ var WfoPathChips = ({ fullPath, label, fieldType, isAnyPath = false }) => {
18144
18266
  const completePath = fullPath || label;
18145
18267
  const allSegments = completePath.split(".").filter((segment) => segment && !segment.match(/^\d+$/) && !segment.includes("("));
18146
18268
  const pathSegments = allSegments.slice(-2);
18147
- return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: completePath, children: /* @__PURE__ */ jsxs137(
18269
+ return /* @__PURE__ */ jsx261(WfoToolTip, { tooltipContent: completePath, children: /* @__PURE__ */ jsxs138(
18148
18270
  "div",
18149
18271
  {
18150
18272
  style: {
@@ -18272,15 +18394,15 @@ var WfoPathSelector = ({
18272
18394
  // src/components/WfoSearchPage/WfoConditionRow/WfoRenderFunctions.tsx
18273
18395
  import { useTranslations as useTranslations92 } from "next-intl";
18274
18396
  import { EuiFlexGroup as EuiFlexGroup43, EuiFlexItem as EuiFlexItem40, EuiText as EuiText39 } from "@elastic/eui";
18275
- import { Fragment as Fragment64, jsx as jsx263, jsxs as jsxs138 } from "@emotion/react/jsx-runtime";
18397
+ import { Fragment as Fragment64, jsx as jsx263, jsxs as jsxs139 } from "@emotion/react/jsx-runtime";
18276
18398
  var WfoRenderPathOption = ({ option, contentClassName, paths }) => {
18277
18399
  const t = useTranslations92("search.page");
18278
18400
  const { theme } = useOrchestratorTheme();
18279
18401
  const pathInfo = option.value ? paths.find(({ path }) => path === option.value) : null;
18280
18402
  if (!pathInfo) return /* @__PURE__ */ jsx263(Fragment64, { children: option.label });
18281
- return /* @__PURE__ */ jsxs138(EuiFlexGroup43, { alignItems: "center", gutterSize: "s", responsive: false, className: contentClassName, title: "", children: [
18403
+ return /* @__PURE__ */ jsxs139(EuiFlexGroup43, { alignItems: "center", gutterSize: "s", responsive: false, className: contentClassName, title: "", children: [
18282
18404
  /* @__PURE__ */ jsx263(EuiFlexItem40, { grow: true, children: /* @__PURE__ */ jsx263(EuiText39, { size: "s", children: pathInfo.displayLabel || pathInfo.path }) }),
18283
- /* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */ jsxs138(EuiFlexGroup43, { gutterSize: "xs", alignItems: "center", responsive: false, children: [
18405
+ /* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */ jsxs139(EuiFlexGroup43, { gutterSize: "xs", alignItems: "center", responsive: false, children: [
18284
18406
  pathInfo.group === "leaf" && pathInfo.pathCount && pathInfo.pathCount > 1 && /* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */ jsx263(WfoBadge, { color: "default", textColor: theme.colors.textInk, size: "xs", children: t("pathsCount", {
18285
18407
  count: pathInfo.pathCount
18286
18408
  }) }) }),
@@ -18294,7 +18416,7 @@ var WfoRenderPathSelectionOption = ({
18294
18416
  fieldType
18295
18417
  }) => {
18296
18418
  const { theme } = useOrchestratorTheme();
18297
- return /* @__PURE__ */ jsx263(WfoToolTip, { tooltipContent: option.fullPath || option.label, children: /* @__PURE__ */ jsxs138(EuiFlexGroup43, { alignItems: "center", gutterSize: "s", responsive: false, className: contentClassName, title: "", children: [
18419
+ return /* @__PURE__ */ jsx263(WfoToolTip, { tooltipContent: option.fullPath || option.label, children: /* @__PURE__ */ jsxs139(EuiFlexGroup43, { alignItems: "center", gutterSize: "s", responsive: false, className: contentClassName, title: "", children: [
18298
18420
  /* @__PURE__ */ jsx263(EuiFlexItem40, { grow: true, children: /* @__PURE__ */ jsx263(EuiText39, { size: "s", children: option.label }) }),
18299
18421
  /* @__PURE__ */ jsx263(EuiFlexItem40, { grow: false, children: /* @__PURE__ */ jsx263(WfoBadge, { color: getTypeColor(fieldType, theme), textColor: theme.colors.textInk, size: "xs", children: fieldType }) })
18300
18422
  ] }) });
@@ -18338,7 +18460,7 @@ var getPathSelectionOptions = (selectedFieldName, paths) => {
18338
18460
  };
18339
18461
 
18340
18462
  // src/components/WfoSearchPage/WfoConditionRow/WfoSelectedPathDisplay.tsx
18341
- import { jsx as jsx264, jsxs as jsxs139 } from "@emotion/react/jsx-runtime";
18463
+ import { jsx as jsx264, jsxs as jsxs140 } from "@emotion/react/jsx-runtime";
18342
18464
  var WfoSelectedPathDisplay = ({ condition, onEdit }) => {
18343
18465
  const { theme } = useOrchestratorTheme();
18344
18466
  const isFullPath = condition.path.includes(".");
@@ -18356,8 +18478,8 @@ var WfoSelectedPathDisplay = ({ condition, onEdit }) => {
18356
18478
  display: "flex",
18357
18479
  alignItems: "center"
18358
18480
  },
18359
- children: /* @__PURE__ */ jsx264(EuiFlexGroup44, { alignItems: "center", gutterSize: "s", responsive: false, justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx264(EuiFlexItem41, { grow: true, children: isFullPath ? /* @__PURE__ */ jsxs139(EuiFlexGroup44, { gutterSize: "none", alignItems: "center", responsive: false, children: [
18360
- /* @__PURE__ */ jsx264(EuiFlexItem41, { grow: false, children: /* @__PURE__ */ jsxs139(EuiText40, { size: "s", color: theme.colors.textParagraph, children: [
18481
+ children: /* @__PURE__ */ jsx264(EuiFlexGroup44, { alignItems: "center", gutterSize: "s", responsive: false, justifyContent: "spaceBetween", children: /* @__PURE__ */ jsx264(EuiFlexItem41, { grow: true, children: isFullPath ? /* @__PURE__ */ jsxs140(EuiFlexGroup44, { gutterSize: "none", alignItems: "center", responsive: false, children: [
18482
+ /* @__PURE__ */ jsx264(EuiFlexItem41, { grow: false, children: /* @__PURE__ */ jsxs140(EuiText40, { size: "s", color: theme.colors.textParagraph, children: [
18361
18483
  getFieldNameFromFullPath(condition.path),
18362
18484
  ":"
18363
18485
  ] }) }),
@@ -18381,7 +18503,7 @@ var WfoSelectedPathDisplay = ({ condition, onEdit }) => {
18381
18503
  };
18382
18504
 
18383
18505
  // src/components/WfoSearchPage/WfoConditionRow/WfoConditionRow.tsx
18384
- import { jsx as jsx265, jsxs as jsxs140 } from "@emotion/react/jsx-runtime";
18506
+ import { jsx as jsx265, jsxs as jsxs141 } from "@emotion/react/jsx-runtime";
18385
18507
  var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
18386
18508
  const t = useTranslations93("search.page");
18387
18509
  const { theme } = useOrchestratorTheme();
@@ -18524,8 +18646,8 @@ var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
18524
18646
  }
18525
18647
  );
18526
18648
  };
18527
- return /* @__PURE__ */ jsx265(EuiPanel18, { paddingSize: "m", color: "subdued", children: /* @__PURE__ */ jsxs140(EuiFlexGroup45, { direction: "column", gutterSize: "m", children: [
18528
- /* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsx265(EuiFormRow8, { label: t("fieldLabel"), error, isInvalid: !!error, children: /* @__PURE__ */ jsxs140(EuiFlexGroup45, { gutterSize: "s", alignItems: "center", children: [
18649
+ return /* @__PURE__ */ jsx265(EuiPanel18, { paddingSize: "m", color: "subdued", children: /* @__PURE__ */ jsxs141(EuiFlexGroup45, { direction: "column", gutterSize: "m", children: [
18650
+ /* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsx265(EuiFormRow8, { label: t("fieldLabel"), error, isInvalid: !!error, children: /* @__PURE__ */ jsxs141(EuiFlexGroup45, { gutterSize: "s", alignItems: "center", children: [
18529
18651
  /* @__PURE__ */ jsx265(EuiFlexItem42, { children: showPathSelection ? /* @__PURE__ */ jsx265(
18530
18652
  WfoPathSelector,
18531
18653
  {
@@ -18578,7 +18700,7 @@ var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
18578
18700
  ) }),
18579
18701
  condition.path && selectedPathInfo?.ui_types && selectedPathInfo.ui_types.length > 0 && /* @__PURE__ */ jsx265(EuiFlexItem42, { grow: false, children: /* @__PURE__ */ jsx265(EuiFlexGroup45, { gutterSize: "xs", alignItems: "center", responsive: false, children: selectedPathInfo.ui_types.map((type, index) => /* @__PURE__ */ jsx265(EuiFlexItem42, { grow: false, children: /* @__PURE__ */ jsx265(WfoBadge, { color: getTypeColor(type, theme), textColor: theme.colors.textInk, size: "s", children: type }) }, index)) }) })
18580
18702
  ] }) }) }),
18581
- /* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsxs140(EuiFlexGroup45, { gutterSize: "s", alignItems: "flexEnd", children: [
18703
+ /* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsxs141(EuiFlexGroup45, { gutterSize: "s", alignItems: "flexEnd", children: [
18582
18704
  /* @__PURE__ */ jsx265(EuiFlexItem42, { children: /* @__PURE__ */ jsx265(
18583
18705
  WfoOperatorSelector,
18584
18706
  {
@@ -18611,7 +18733,7 @@ var ConditionRow = ({ condition, entityType, onChange, onRemove }) => {
18611
18733
  };
18612
18734
 
18613
18735
  // src/components/WfoSearchPage/WfoFilterGroup/WfoFilterGroup.tsx
18614
- import { Fragment as Fragment65, jsx as jsx266, jsxs as jsxs141 } from "@emotion/react/jsx-runtime";
18736
+ import { Fragment as Fragment65, jsx as jsx266, jsxs as jsxs142 } from "@emotion/react/jsx-runtime";
18615
18737
  var FilterGroup = ({
18616
18738
  group,
18617
18739
  entityType,
@@ -18665,21 +18787,21 @@ var FilterGroup = ({
18665
18787
  op: group.op === "AND" ? "OR" : "AND"
18666
18788
  });
18667
18789
  };
18668
- return /* @__PURE__ */ jsxs141(EuiPanel19, { paddingSize: "m", color: depth % 2 === 0 ? "primary" : "plain", hasBorder: true, children: [
18669
- /* @__PURE__ */ jsxs141(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", justifyContent: "spaceBetween", children: [
18670
- /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs141(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
18790
+ return /* @__PURE__ */ jsxs142(EuiPanel19, { paddingSize: "m", color: depth % 2 === 0 ? "primary" : "plain", hasBorder: true, children: [
18791
+ /* @__PURE__ */ jsxs142(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", justifyContent: "spaceBetween", children: [
18792
+ /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs142(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
18671
18793
  /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiText41, { size: "s", children: /* @__PURE__ */ jsx266("strong", { children: t("groupLabel") }) }) }),
18672
18794
  /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiButton23, { size: "s", fill: true, color: "primary", onClick: toggleOperator, children: group.op }) })
18673
18795
  ] }) }),
18674
- /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs141(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
18796
+ /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs142(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
18675
18797
  /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiButton23, { size: "s", iconType: "plusInCircle", onClick: addCondition, children: t("addCondition") }) }),
18676
18798
  /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(WfoToolTip, { tooltipContent: !canAddGroup ? t("maxNestingDepth") : t("addNestedGroup"), children: /* @__PURE__ */ jsx266(EuiButton23, { size: "s", iconType: "nested", onClick: addGroup, disabled: !canAddGroup, children: t("addGroup") }) }) }),
18677
18799
  !isRoot && onRemove && /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiButtonIcon18, { iconType: "trash", color: "danger", onClick: onRemove, "aria-label": t("removeGroup") }) })
18678
18800
  ] }) })
18679
18801
  ] }),
18680
- group.children.length > 0 && /* @__PURE__ */ jsxs141(Fragment65, { children: [
18802
+ group.children.length > 0 && /* @__PURE__ */ jsxs142(Fragment65, { children: [
18681
18803
  /* @__PURE__ */ jsx266(EuiSpacer33, { size: "m" }),
18682
- /* @__PURE__ */ jsx266(EuiPanel19, { paddingSize: isRoot ? "none" : "s", color: "transparent", hasShadow: false, children: group.children.map((child, index) => /* @__PURE__ */ jsxs141("div", { children: [
18804
+ /* @__PURE__ */ jsx266(EuiPanel19, { paddingSize: isRoot ? "none" : "s", color: "transparent", hasShadow: false, children: group.children.map((child, index) => /* @__PURE__ */ jsxs142("div", { children: [
18683
18805
  index > 0 && /* @__PURE__ */ jsx266(EuiFlexGroup46, { gutterSize: "none", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx266(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx266(EuiText41, { size: "s", color: theme.colors.textSubdued, textAlign: "center", children: /* @__PURE__ */ jsx266(EuiCode2, { children: group.op }) }) }) }),
18684
18806
  /* @__PURE__ */ jsx266(EuiSpacer33, { size: "s" }),
18685
18807
  isCondition(child) ? /* @__PURE__ */ jsx266(
@@ -18703,7 +18825,7 @@ var FilterGroup = ({
18703
18825
  /* @__PURE__ */ jsx266(EuiSpacer33, { size: "s" })
18704
18826
  ] }, index)) })
18705
18827
  ] }),
18706
- group.children.length === 0 && /* @__PURE__ */ jsxs141(Fragment65, { children: [
18828
+ group.children.length === 0 && /* @__PURE__ */ jsxs142(Fragment65, { children: [
18707
18829
  /* @__PURE__ */ jsx266(EuiSpacer33, { size: "s" }),
18708
18830
  /* @__PURE__ */ jsx266(EuiCallOut5, { title: t("emptyGroupTitle"), color: "primary", iconType: "info", size: "s", children: /* @__PURE__ */ jsx266("p", { children: t("emptyGroupDescription") }) })
18709
18831
  ] })
@@ -18711,7 +18833,7 @@ var FilterGroup = ({
18711
18833
  };
18712
18834
 
18713
18835
  // src/components/WfoAgent/WfoAgent/WfoAgent.tsx
18714
- import { useCallback as useCallback14, useRef as useRef12 } from "react";
18836
+ import { useCallback as useCallback15, useRef as useRef12 } from "react";
18715
18837
  import { useTranslations as useTranslations99 } from "next-intl";
18716
18838
  import { useRenderToolCall } from "@copilotkit/react-core";
18717
18839
  import { CopilotChat } from "@copilotkit/react-ui";
@@ -18929,7 +19051,7 @@ var getExportButtonStyles = ({ theme }) => {
18929
19051
  };
18930
19052
 
18931
19053
  // src/components/WfoAgent/ExportButton/ExportButton.tsx
18932
- import { jsx as jsx267, jsxs as jsxs142 } from "@emotion/react/jsx-runtime";
19054
+ import { jsx as jsx267, jsxs as jsxs143 } from "@emotion/react/jsx-runtime";
18933
19055
  function ExportButton({ artifact }) {
18934
19056
  const { showToastMessage } = useShowToastMessage();
18935
19057
  const tError = useTranslations95("errors");
@@ -18966,10 +19088,10 @@ function ExportButton({ artifact }) {
18966
19088
  );
18967
19089
  await handleExport();
18968
19090
  };
18969
- return /* @__PURE__ */ jsx267("div", { css: containerStyle2, children: /* @__PURE__ */ jsxs142("div", { css: buttonWrapperStyle, children: [
19091
+ return /* @__PURE__ */ jsx267("div", { css: containerStyle2, children: /* @__PURE__ */ jsxs143("div", { css: buttonWrapperStyle, children: [
18970
19092
  artifact.description && /* @__PURE__ */ jsx267("div", { css: titleStyle, children: artifact.description }),
18971
- /* @__PURE__ */ jsxs142("div", { css: fileRowStyle, onClick: onDownloadClick, children: [
18972
- /* @__PURE__ */ jsxs142("div", { css: fileInfoStyle, children: [
19093
+ /* @__PURE__ */ jsxs143("div", { css: fileRowStyle, onClick: onDownloadClick, children: [
19094
+ /* @__PURE__ */ jsxs143("div", { css: fileInfoStyle, children: [
18973
19095
  /* @__PURE__ */ jsx267(EuiIcon8, { type: "document", size: "m" }),
18974
19096
  /* @__PURE__ */ jsx267("span", { css: filenameStyle, children: filename })
18975
19097
  ] }),
@@ -19038,7 +19160,7 @@ var getWfoPlanProgressStyles = ({ theme }) => {
19038
19160
  };
19039
19161
 
19040
19162
  // src/components/WfoAgent/WfoPlanProgress/WfoPlanProgress.tsx
19041
- import { jsx as jsx268, jsxs as jsxs143 } from "@emotion/react/jsx-runtime";
19163
+ import { jsx as jsx268, jsxs as jsxs144 } from "@emotion/react/jsx-runtime";
19042
19164
  var WfoPlanProgress = ({ executionState }) => {
19043
19165
  const [expandedSteps, setExpandedSteps] = useState52(/* @__PURE__ */ new Set());
19044
19166
  const t = useTranslations96("agent.page.planProgress");
@@ -19069,25 +19191,25 @@ var WfoPlanProgress = ({ executionState }) => {
19069
19191
  return /* @__PURE__ */ jsx268(WfoMinusCircleOutline, { color: theme.colors.textSubdued, width: iconSize, height: iconSize });
19070
19192
  return /* @__PURE__ */ jsx268(EuiLoadingSpinner4, { size: "s" });
19071
19193
  };
19072
- return /* @__PURE__ */ jsxs143(EuiPanel20, { hasBorder: true, paddingSize: "s", css: containerStyle2, children: [
19073
- /* @__PURE__ */ jsxs143("div", { css: headerStyle, children: [
19194
+ return /* @__PURE__ */ jsxs144(EuiPanel20, { hasBorder: true, paddingSize: "s", css: containerStyle2, children: [
19195
+ /* @__PURE__ */ jsxs144("div", { css: headerStyle, children: [
19074
19196
  allDone ? /* @__PURE__ */ jsx268(WfoCheckmarkCircleFill, { color: theme.colors.success, width: iconSize, height: iconSize }) : /* @__PURE__ */ jsx268(EuiLoadingSpinner4, { size: "s" }),
19075
19197
  /* @__PURE__ */ jsx268("span", { children: headerLabel })
19076
19198
  ] }),
19077
19199
  executionState.steps.map((step) => {
19078
19200
  const isExpanded = expandedSteps.has(step.step_name);
19079
19201
  const hasToolCalls = step.tool_calls.length > 0;
19080
- return /* @__PURE__ */ jsxs143("div", { children: [
19081
- /* @__PURE__ */ jsxs143("div", { css: rowStyle, children: [
19202
+ return /* @__PURE__ */ jsxs144("div", { children: [
19203
+ /* @__PURE__ */ jsxs144("div", { css: rowStyle, children: [
19082
19204
  /* @__PURE__ */ jsx268(StatusIcon, { status: step.status }),
19083
19205
  /* @__PURE__ */ jsx268(EuiText42, { size: "s", color: step.status === "pending" ? "subdued" : void 0, children: step.step_name }),
19084
- hasToolCalls && /* @__PURE__ */ jsxs143("span", { css: toolCallsToggleStyle, onClick: () => toggleStep(step.step_name), children: [
19206
+ hasToolCalls && /* @__PURE__ */ jsxs144("span", { css: toolCallsToggleStyle, onClick: () => toggleStep(step.step_name), children: [
19085
19207
  step.tool_calls.length,
19086
19208
  isExpanded ? /* @__PURE__ */ jsx268(WfoChevronUp, { width: iconSize, height: iconSize }) : /* @__PURE__ */ jsx268(WfoChevronDown, { width: iconSize, height: iconSize })
19087
19209
  ] })
19088
19210
  ] }),
19089
19211
  step.reasoning && /* @__PURE__ */ jsx268(EuiText42, { size: "xs", color: "subdued", css: reasoningStyle, children: step.reasoning }),
19090
- isExpanded && hasToolCalls && /* @__PURE__ */ jsx268("div", { css: toolCallsListStyle, children: step.tool_calls.map((tc) => /* @__PURE__ */ jsxs143(EuiText42, { size: "xs", css: rowStyle, children: [
19212
+ isExpanded && hasToolCalls && /* @__PURE__ */ jsx268("div", { css: toolCallsListStyle, children: step.tool_calls.map((tc) => /* @__PURE__ */ jsxs144(EuiText42, { size: "xs", css: rowStyle, children: [
19091
19213
  /* @__PURE__ */ jsx268(StatusIcon, { status: tc.status === "complete" ? "completed" : "active" }),
19092
19214
  /* @__PURE__ */ jsx268("span", { children: tc.name })
19093
19215
  ] }, tc.id)) })
@@ -19108,7 +19230,7 @@ import { EuiText as EuiText43 } from "@elastic/eui";
19108
19230
  import { Axis, Chart, DARK_THEME, LIGHT_THEME, LineSeries, Position, Settings } from "@elastic/charts";
19109
19231
  import "@elastic/charts/dist/theme_only_dark.css";
19110
19232
  import "@elastic/charts/dist/theme_only_light.css";
19111
- import { jsx as jsx269, jsxs as jsxs144 } from "@emotion/react/jsx-runtime";
19233
+ import { jsx as jsx269, jsxs as jsxs145 } from "@emotion/react/jsx-runtime";
19112
19234
  function WfoAgentLineChart({ aggregationData }) {
19113
19235
  const { results } = aggregationData;
19114
19236
  const { isDarkModeActive, multiplyByBaseUnit } = useOrchestratorTheme();
@@ -19122,7 +19244,7 @@ function WfoAgentLineChart({ aggregationData }) {
19122
19244
  xLabel: result.group_values[xKey],
19123
19245
  ...result.aggregations
19124
19246
  }));
19125
- return /* @__PURE__ */ jsxs144(Chart, { size: { height: multiplyByBaseUnit(30) }, children: [
19247
+ return /* @__PURE__ */ jsxs145(Chart, { size: { height: multiplyByBaseUnit(30) }, children: [
19126
19248
  /* @__PURE__ */ jsx269(Settings, { showLegend: true, baseTheme: chartBaseTheme }),
19127
19249
  /* @__PURE__ */ jsx269(
19128
19250
  Axis,
@@ -19161,7 +19283,7 @@ var containerStyle = css46({
19161
19283
  });
19162
19284
 
19163
19285
  // src/components/WfoAgent/WfoAgentChart/WfoAgentPieChart.tsx
19164
- import { jsx as jsx270, jsxs as jsxs145 } from "@emotion/react/jsx-runtime";
19286
+ import { jsx as jsx270, jsxs as jsxs146 } from "@emotion/react/jsx-runtime";
19165
19287
  function WfoAgentPieChart({ aggregationData }) {
19166
19288
  const { results } = aggregationData;
19167
19289
  const { isDarkModeActive, multiplyByBaseUnit } = useOrchestratorTheme();
@@ -19175,7 +19297,7 @@ function WfoAgentPieChart({ aggregationData }) {
19175
19297
  label: result.group_values[groupKey],
19176
19298
  value: result.aggregations[aggKey]
19177
19299
  }));
19178
- return /* @__PURE__ */ jsx270("div", { css: containerStyle, children: /* @__PURE__ */ jsxs145(Chart2, { size: { height: multiplyByBaseUnit(25) }, children: [
19300
+ return /* @__PURE__ */ jsx270("div", { css: containerStyle, children: /* @__PURE__ */ jsxs146(Chart2, { size: { height: multiplyByBaseUnit(25) }, children: [
19179
19301
  /* @__PURE__ */ jsx270(Settings2, { showLegend: true, legendPosition: Position2.Right, baseTheme: chartBaseTheme }),
19180
19302
  /* @__PURE__ */ jsx270(
19181
19303
  Partition,
@@ -19199,15 +19321,15 @@ function WfoAgentPieChart({ aggregationData }) {
19199
19321
  }
19200
19322
 
19201
19323
  // src/components/WfoAgent/WfoAgentTable/WfoAgentTable.tsx
19202
- import React80 from "react";
19324
+ import React81 from "react";
19203
19325
  import { EuiBasicTable } from "@elastic/eui";
19204
19326
  import { jsx as jsx271 } from "@emotion/react/jsx-runtime";
19205
19327
  var formatColumnName = (key) => key.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
19206
19328
  function WfoAgentTable({ aggregationData }) {
19207
19329
  const { results } = aggregationData;
19208
- const [pageIndex, setPageIndex] = React80.useState(0);
19209
- const [pageSize, setPageSize] = React80.useState(5);
19210
- const columns = React80.useMemo(() => {
19330
+ const [pageIndex, setPageIndex] = React81.useState(0);
19331
+ const [pageSize, setPageSize] = React81.useState(5);
19332
+ const columns = React81.useMemo(() => {
19211
19333
  if (results.length === 0) return [];
19212
19334
  const firstResult = results[0];
19213
19335
  const groupKeys = Object.keys(firstResult.group_values);
@@ -19297,7 +19419,7 @@ function WfoQueryArtifact({ artifact }) {
19297
19419
  }
19298
19420
 
19299
19421
  // src/components/WfoAgent/WfoAgent/WfoAgent.tsx
19300
- import { Fragment as Fragment66, jsx as jsx274, jsxs as jsxs146 } from "@emotion/react/jsx-runtime";
19422
+ import { Fragment as Fragment66, jsx as jsx274, jsxs as jsxs147 } from "@emotion/react/jsx-runtime";
19301
19423
  function WfoAgent() {
19302
19424
  const tPage = useTranslations99("agent.page");
19303
19425
  const { NAVIGATION_HEIGHT } = useWithOrchestratorTheme(getPageTemplateStyles);
@@ -19305,7 +19427,7 @@ function WfoAgent() {
19305
19427
  const planProgress = useAgentPlanEvents();
19306
19428
  const planProgressRef = useRef12(planProgress);
19307
19429
  planProgressRef.current = planProgress;
19308
- const RenderMessage = useCallback14(
19430
+ const RenderMessage = useCallback15(
19309
19431
  ({
19310
19432
  message,
19311
19433
  messages,
@@ -19326,7 +19448,7 @@ function WfoAgent() {
19326
19448
  const lastUserIndex = [...messages].reverse().findIndex((msg) => msg.role === "user");
19327
19449
  const firstAssistantAfterUser = lastUserIndex >= 0 ? messages.length - lastUserIndex : -1;
19328
19450
  const showPlanProgress = index === firstAssistantAfterUser && (progress.planning || progress.steps.length > 0);
19329
- return /* @__PURE__ */ jsxs146(Fragment66, { children: [
19451
+ return /* @__PURE__ */ jsxs147(Fragment66, { children: [
19330
19452
  showPlanProgress && /* @__PURE__ */ jsx274(WfoPlanProgress, { executionState: progress }),
19331
19453
  AssistantMessage && /* @__PURE__ */ jsx274(
19332
19454
  AssistantMessage,
@@ -19368,7 +19490,7 @@ function WfoAgent() {
19368
19490
  return /* @__PURE__ */ jsx274(ExportButton, { artifact: result });
19369
19491
  }
19370
19492
  });
19371
- return /* @__PURE__ */ jsx274(WfoAvailabilityCheck, { featureType: "agent", availability: agentAvailability, children: /* @__PURE__ */ jsxs146("div", { style: { height: `calc(90vh - ${NAVIGATION_HEIGHT}px)` }, children: [
19493
+ return /* @__PURE__ */ jsx274(WfoAvailabilityCheck, { featureType: "agent", availability: agentAvailability, children: /* @__PURE__ */ jsxs147("div", { style: { height: `calc(90vh - ${NAVIGATION_HEIGHT}px)` }, children: [
19372
19494
  /* @__PURE__ */ jsx274("style", { children: `
19373
19495
  .copilotKitChat {
19374
19496
  height: 100%;
@@ -19408,7 +19530,7 @@ function WfoAgent() {
19408
19530
  }
19409
19531
 
19410
19532
  // src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx
19411
- import { useCallback as useCallback15, useEffect as useEffect36, useState as useState53 } from "react";
19533
+ import { useCallback as useCallback16, useEffect as useEffect36, useState as useState53 } from "react";
19412
19534
  import { EuiFlexItem as EuiFlexItem44 } from "@elastic/eui";
19413
19535
  import Editor from "@monaco-editor/react";
19414
19536
 
@@ -19438,7 +19560,7 @@ var WfoMonacoCodeBlock = ({ data }) => {
19438
19560
  const [monacoInstance, setMonacoInstance] = useState53(void 0);
19439
19561
  const json = JSON.stringify(data, null, 4);
19440
19562
  const [editorHeight, setEditorHeight] = useState53(0);
19441
- const addThemeToEditor = useCallback15(
19563
+ const addThemeToEditor = useCallback16(
19442
19564
  (monaco) => {
19443
19565
  monaco.editor.defineTheme("wfoTheme", {
19444
19566
  base: isDarkModeActive ? MONACO_THEME.dark : MONACO_THEME.light,
@@ -19524,10 +19646,10 @@ var getWfoLogoSpinnerStyles = () => {
19524
19646
  };
19525
19647
 
19526
19648
  // src/components/WfoLogoSpinner/WfoLogoSpinner.tsx
19527
- import { jsx as jsx276, jsxs as jsxs147 } from "@emotion/react/jsx-runtime";
19649
+ import { jsx as jsx276, jsxs as jsxs148 } from "@emotion/react/jsx-runtime";
19528
19650
  var WfoLogoSpinner = () => {
19529
19651
  const { spinContainerCss, spinCenteringCss, spinPathCss } = getWfoLogoSpinnerStyles();
19530
- return /* @__PURE__ */ jsx276("div", { css: spinCenteringCss, children: /* @__PURE__ */ jsx276("div", { css: spinContainerCss, children: /* @__PURE__ */ jsxs147("svg", { width: "64", height: "64", viewBox: "0 0 640 640", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
19652
+ return /* @__PURE__ */ jsx276("div", { css: spinCenteringCss, children: /* @__PURE__ */ jsx276("div", { css: spinContainerCss, children: /* @__PURE__ */ jsxs148("svg", { width: "64", height: "64", viewBox: "0 0 640 640", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
19531
19653
  /* @__PURE__ */ jsx276(
19532
19654
  "path",
19533
19655
  {
@@ -20007,6 +20129,8 @@ var en_GB_default = {
20007
20129
  subscriptionId: "Subscription ID",
20008
20130
  description: "Description",
20009
20131
  startDate: "Start date",
20132
+ lastRunValidation: "Most recent validate",
20133
+ noValidateWorkflows: "No validate workflows have been run recently",
20010
20134
  insync: "In sync",
20011
20135
  customer: "Customer",
20012
20136
  customerUuid: "Customer UUID",
@@ -20657,6 +20781,8 @@ var nl_NL_default = {
20657
20781
  subscriptionId: "Subscription ID",
20658
20782
  description: "Beschrijving",
20659
20783
  startDate: "Startdatum",
20784
+ lastRunValidation: "Meest recente validate",
20785
+ noValidateWorkflows: "Er zijn recentelijk geen validate workflows uitgevoerd",
20660
20786
  insync: "In sync",
20661
20787
  customer: "Klant",
20662
20788
  customerUuid: "Klant UUID",
@@ -21066,6 +21192,8 @@ export {
21066
21192
  WfoResourceTypesPage,
21067
21193
  WfoRowContextMenu,
21068
21194
  WfoScheduleTaskFormPage,
21195
+ WfoScheduleTaskFormPageBackend,
21196
+ WfoScheduleTaskFormPageHardCoded,
21069
21197
  WfoScheduledTaskOnce,
21070
21198
  WfoScheduledTaskRecurring,
21071
21199
  WfoScheduledTaskRecurringSvg,