@orchestrator-ui/orchestrator-ui-components 1.13.2 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23127,10 +23127,10 @@ var require_jsstacktrace = __commonJS({
23127
23127
  var require_jsx = __commonJS({
23128
23128
  "../../node_modules/refractor/lang/jsx.js"(exports, module) {
23129
23129
  "use strict";
23130
- module.exports = jsx190;
23131
- jsx190.displayName = "jsx";
23132
- jsx190.aliases = [];
23133
- function jsx190(Prism) {
23130
+ module.exports = jsx189;
23131
+ jsx189.displayName = "jsx";
23132
+ jsx189.aliases = [];
23133
+ function jsx189(Prism) {
23134
23134
  ;
23135
23135
  (function(Prism2) {
23136
23136
  var javascript = Prism2.util.clone(Prism2.languages.javascript);
@@ -40404,6 +40404,7 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus2) => {
40404
40404
  HttpStatus2[HttpStatus2["FormNotComplete"] = 510] = "FormNotComplete";
40405
40405
  HttpStatus2[HttpStatus2["BadGateway"] = 502] = "BadGateway";
40406
40406
  HttpStatus2[HttpStatus2["BadRequest"] = 400] = "BadRequest";
40407
+ HttpStatus2[HttpStatus2["ServiceUnavailable"] = 503] = "ServiceUnavailable";
40407
40408
  return HttpStatus2;
40408
40409
  })(HttpStatus || {});
40409
40410
  var prepareHeaders = (headers) => __async(void 0, null, function* () {
@@ -48205,7 +48206,6 @@ function AutoFields(_a) {
48205
48206
  var import_cloneDeep2 = __toESM(require_cloneDeep(), 1);
48206
48207
  var import_get5 = __toESM(require_get(), 1);
48207
48208
  import { useContext as useContext11, useState as useState24 } from "react";
48208
- import axios2 from "axios";
48209
48209
  import invariant from "invariant";
48210
48210
  import { useTranslations as useTranslations39 } from "next-intl";
48211
48211
  import { filterDOMProps as filterDOMProps28, joinName as joinName10 } from "uniforms";
@@ -52221,7 +52221,6 @@ function UserInputForm({
52221
52221
  });
52222
52222
  };
52223
52223
  const submit = (..._0) => __async(this, [..._0], function* (userInput2 = {}) {
52224
- var _a2;
52225
52224
  if (!processing) {
52226
52225
  setProcessing(true);
52227
52226
  try {
@@ -52230,23 +52229,26 @@ function UserInputForm({
52230
52229
  return null;
52231
52230
  } catch (error) {
52232
52231
  setProcessing(false);
52233
- if (axios2.isAxiosError(error) && ((_a2 = error.response) == null ? void 0 : _a2.status) === 400) {
52234
- const json = error.response.data;
52235
- setNrOfValidationErrors(json.validation_errors.length);
52236
- setRootErrors(
52237
- json.validation_errors.filter(
52238
- (e) => e.loc[0] === "__root__"
52239
- ).map((e) => e.msg)
52240
- );
52241
- throw Object.assign(new Error(), {
52242
- details: json.validation_errors.map(
52243
- (e) => ({
52244
- message: e.msg,
52245
- params: e.ctx || {},
52246
- dataPath: "." + e.loc.join(".")
52247
- })
52248
- )
52249
- });
52232
+ if (typeof error === "object" && error !== null) {
52233
+ const validationError = error;
52234
+ if ((validationError == null ? void 0 : validationError.status) === 400) {
52235
+ const json = validationError.data;
52236
+ setNrOfValidationErrors(json.validation_errors.length);
52237
+ setRootErrors(
52238
+ json.validation_errors.filter(
52239
+ (e) => e.loc[0] === "__root__"
52240
+ ).map((e) => e.msg)
52241
+ );
52242
+ throw Object.assign(new Error(), {
52243
+ details: json.validation_errors.map(
52244
+ (e) => ({
52245
+ message: e.msg,
52246
+ params: e.ctx || {},
52247
+ dataPath: "." + e.loc.join(".")
52248
+ })
52249
+ )
52250
+ });
52251
+ }
52250
52252
  }
52251
52253
  setTimeout(() => {
52252
52254
  throw error;
@@ -52401,14 +52403,14 @@ function stop2(e) {
52401
52403
  e.stopPropagation();
52402
52404
  }
52403
52405
  }
52404
- function UserInputFormWizard({
52406
+ var UserInputFormWizard = ({
52405
52407
  hasNext = false,
52406
52408
  stepUserInput,
52407
52409
  stepSubmit,
52408
52410
  cancel,
52409
52411
  isTask,
52410
52412
  isResuming = false
52411
- }) {
52413
+ }) => {
52412
52414
  const router = useRouter7();
52413
52415
  const [forms, setForms] = useState25([
52414
52416
  { form: stepUserInput, hasNext }
@@ -52461,104 +52463,82 @@ function UserInputFormWizard({
52461
52463
  },
52462
52464
  key
52463
52465
  );
52464
- }
52466
+ };
52465
52467
 
52466
- // src/components/WfoForms/UserInputFormWizardDeprecated.tsx
52467
- import { useEffect as useEffect15, useState as useState26 } from "react";
52468
- import { useRouter as useRouter8 } from "next/router";
52469
- import hash2 from "object-hash";
52470
- import { jsx as jsx143 } from "@emotion/react/jsx-runtime";
52471
- function stop3(e) {
52472
- if (e !== void 0 && e !== null) {
52473
- e.preventDefault();
52474
- e.stopPropagation();
52475
- }
52476
- }
52477
- function UserInputFormWizardDeprecated({
52478
- hasNext = false,
52479
- stepUserInput,
52480
- validSubmit,
52481
- cancel,
52482
- isTask,
52483
- isResuming = false
52484
- }) {
52485
- const router = useRouter8();
52486
- const apiClient = useAxiosApiClient();
52487
- const [forms, setForms] = useState26([
52488
- { form: stepUserInput, hasNext }
52489
- ]);
52490
- const [userInputs, setUserInputs] = useState26([]);
52491
- useEffect15(() => {
52492
- setForms([{ form: stepUserInput, hasNext }]);
52493
- }, [hasNext, stepUserInput]);
52494
- const previous = (e) => {
52495
- if (e) {
52496
- stop3(e);
52497
- }
52498
- const current2 = forms.pop();
52499
- setForms(forms.filter((item) => item !== current2));
52500
- };
52501
- const submit = (currentFormData) => {
52502
- const newUserInputs = userInputs.slice(0, forms.length - 1);
52503
- newUserInputs.push(currentFormData);
52504
- const result = validSubmit(newUserInputs);
52505
- return apiClient.catchErrorStatus(
52506
- result,
52507
- 510,
52508
- (json) => {
52509
- window.scrollTo(0, 0);
52510
- setForms([
52511
- ...forms,
52512
- { form: json.form, hasNext: json.hasNext }
52513
- ]);
52514
- setUserInputs(newUserInputs);
52468
+ // src/components/WfoForms/CreateForm.tsx
52469
+ import { useCallback as useCallback4, useEffect as useEffect15, useState as useState26 } from "react";
52470
+
52471
+ // src/rtk/endpoints/forms.ts
52472
+ var PROCESS_ENDPOINT2 = "processes";
52473
+ var RESUME_ENDPOINT = "resume";
52474
+ var FORMS_ENDPOINT2 = "surf/forms/";
52475
+ var formsApi = orchestratorApi.injectEndpoints({
52476
+ endpoints: (build) => ({
52477
+ startProcess: build.mutation({
52478
+ query: ({ workflowName, userInputs }) => ({
52479
+ url: `${PROCESS_ENDPOINT2}/${workflowName}`,
52480
+ method: "POST",
52481
+ body: JSON.stringify(userInputs),
52482
+ headers: {
52483
+ "Content-Type": "application/json"
52484
+ }
52485
+ }),
52486
+ extraOptions: {
52487
+ baseQueryType: "fetch" /* fetch */
52515
52488
  }
52516
- );
52517
- };
52518
- const currentForm = forms[forms.length - 1];
52519
- const currentUserInput = userInputs[forms.length - 1];
52520
- if (!currentForm || !currentForm.form.properties) {
52521
- return null;
52522
- }
52523
- const key = hash2.sha1({ form: currentForm.form, length: forms.length });
52524
- return /* @__PURE__ */ jsx143(
52525
- UserInputForm_default,
52526
- {
52527
- router,
52528
- stepUserInput: currentForm.form,
52529
- validSubmit: submit,
52530
- previous,
52531
- hasNext: currentForm.hasNext,
52532
- hasPrev: forms.length > 1,
52533
- cancel,
52534
- userInput: currentUserInput,
52535
- isTask,
52536
- isResuming
52537
- },
52538
- key
52539
- );
52540
- }
52541
- var UserInputFormWizardDeprecated_default = UserInputFormWizardDeprecated;
52489
+ }),
52490
+ resumeProcess: build.mutation({
52491
+ query: ({ processId, userInputs }) => ({
52492
+ url: `${PROCESS_ENDPOINT2}/${processId}/${RESUME_ENDPOINT}`,
52493
+ method: "PUT",
52494
+ body: JSON.stringify(userInputs),
52495
+ headers: {
52496
+ "Content-Type": "application/json"
52497
+ }
52498
+ }),
52499
+ extraOptions: {
52500
+ baseQueryType: "fetch" /* fetch */
52501
+ }
52502
+ }),
52503
+ startForm: build.mutation({
52504
+ query: ({ formKey, userInputs }) => ({
52505
+ url: `${FORMS_ENDPOINT2}${formKey}`,
52506
+ method: "POST",
52507
+ body: JSON.stringify(userInputs),
52508
+ headers: {
52509
+ "Content-Type": "application/json"
52510
+ }
52511
+ }),
52512
+ extraOptions: {
52513
+ baseQueryType: "fetch" /* fetch */
52514
+ }
52515
+ })
52516
+ })
52517
+ });
52518
+ var {
52519
+ useStartProcessMutation,
52520
+ useResumeProcessMutation,
52521
+ useStartFormMutation
52522
+ } = formsApi;
52542
52523
 
52543
52524
  // src/components/WfoForms/CreateForm.tsx
52544
- import { useCallback as useCallback4, useEffect as useEffect16, useState as useState27 } from "react";
52545
- import { jsx as jsx144 } from "@emotion/react/jsx-runtime";
52525
+ import { jsx as jsx143 } from "@emotion/react/jsx-runtime";
52546
52526
  function CreateForm(props) {
52547
52527
  const { preselectedInput, formKey, handleSubmit, handleCancel } = props;
52548
- const [form, setForm] = useState27({});
52528
+ const [form, setForm] = useState26({});
52549
52529
  const { stepUserInput, hasNext } = form;
52550
- const apiClient = useAxiosApiClient();
52530
+ const [startForm] = useStartFormMutation();
52551
52531
  const submit = useCallback4(
52552
52532
  (userInputs) => {
52553
- return apiClient.startForm(formKey, userInputs).then((form2) => {
52533
+ return startForm({ formKey, userInputs }).unwrap().then((form2) => {
52554
52534
  handleSubmit(form2);
52555
52535
  });
52556
52536
  },
52557
- [formKey, handleSubmit, apiClient]
52537
+ [formKey, handleSubmit, startForm]
52558
52538
  );
52559
- useEffect16(() => {
52560
- if (formKey && apiClient) {
52561
- apiClient.catchErrorStatus(
52539
+ useEffect15(() => {
52540
+ if (formKey) {
52541
+ handlePromiseErrorWithCallback(
52562
52542
  submit([]),
52563
52543
  510,
52564
52544
  (json) => {
@@ -52570,12 +52550,12 @@ function CreateForm(props) {
52570
52550
  }
52571
52551
  );
52572
52552
  }
52573
- }, [formKey, submit, preselectedInput, apiClient]);
52574
- return /* @__PURE__ */ jsx144("div", { children: stepUserInput && /* @__PURE__ */ jsx144(
52575
- UserInputFormWizardDeprecated_default,
52553
+ }, [formKey, submit, preselectedInput]);
52554
+ return /* @__PURE__ */ jsx143("div", { children: stepUserInput && /* @__PURE__ */ jsx143(
52555
+ UserInputFormWizard,
52576
52556
  {
52577
52557
  stepUserInput,
52578
- validSubmit: submit,
52558
+ stepSubmit: submit,
52579
52559
  cancel: handleCancel,
52580
52560
  hasNext: hasNext != null ? hasNext : false,
52581
52561
  isTask: false
@@ -52584,33 +52564,33 @@ function CreateForm(props) {
52584
52564
  }
52585
52565
 
52586
52566
  // src/components/WfoDateTime/WfoDateTime.tsx
52587
- import { jsx as jsx145 } from "@emotion/react/jsx-runtime";
52567
+ import { jsx as jsx144 } from "@emotion/react/jsx-runtime";
52588
52568
  var WfoDateTime = ({ dateOrIsoString }) => {
52589
52569
  const date = getDate(dateOrIsoString);
52590
- return /* @__PURE__ */ jsx145("span", { title: parseDateToLocaleDateTimeString(date), children: parseDateOrTimeRelativeToToday(date) });
52570
+ return /* @__PURE__ */ jsx144("span", { title: parseDateToLocaleDateTimeString(date), children: parseDateOrTimeRelativeToToday(date) });
52591
52571
  };
52592
52572
 
52593
52573
  // src/components/WfoAuth/WfoPageUnauthorized.tsx
52594
52574
  import { useTranslations as useTranslations40 } from "next-intl";
52595
- import { jsx as jsx146 } from "@emotion/react/jsx-runtime";
52575
+ import { jsx as jsx145 } from "@emotion/react/jsx-runtime";
52596
52576
  var WfoPageUnauthorized = () => {
52597
52577
  const t = useTranslations40("common");
52598
- return /* @__PURE__ */ jsx146("p", { children: t("unauthorizedPage") });
52578
+ return /* @__PURE__ */ jsx145("p", { children: t("unauthorizedPage") });
52599
52579
  };
52600
52580
 
52601
52581
  // src/components/WfoAuth/WfoPolicyRenderPageFallback.tsx
52602
- import { Fragment as Fragment28, jsx as jsx147 } from "@emotion/react/jsx-runtime";
52582
+ import { Fragment as Fragment28, jsx as jsx146 } from "@emotion/react/jsx-runtime";
52603
52583
  var WfoPolicyRenderPageFallback = ({
52604
52584
  resource,
52605
52585
  children
52606
52586
  }) => {
52607
52587
  const { isAllowed } = usePolicy();
52608
- return isAllowed(resource) ? /* @__PURE__ */ jsx147(Fragment28, { children }) : /* @__PURE__ */ jsx147(WfoPageUnauthorized, {});
52588
+ return isAllowed(resource) ? /* @__PURE__ */ jsx146(Fragment28, { children }) : /* @__PURE__ */ jsx146(WfoPageUnauthorized, {});
52609
52589
  };
52610
52590
 
52611
52591
  // src/components/WfoAuth/WfoAuth.tsx
52612
52592
  import { useContext as useContext12 } from "react";
52613
- import { jsx as jsx148 } from "@emotion/react/jsx-runtime";
52593
+ import { jsx as jsx147 } from "@emotion/react/jsx-runtime";
52614
52594
  var WfoAuth = ({
52615
52595
  children,
52616
52596
  isAllowedHandler = () => true
@@ -52620,37 +52600,37 @@ var WfoAuth = ({
52620
52600
  required: authActive
52621
52601
  });
52622
52602
  if (status === "loading") {
52623
- return /* @__PURE__ */ jsx148(WfoLoading, {});
52603
+ return /* @__PURE__ */ jsx147(WfoLoading, {});
52624
52604
  }
52625
- return /* @__PURE__ */ jsx148(PolicyContextProvider, { isAllowedHandler, children });
52605
+ return /* @__PURE__ */ jsx147(PolicyContextProvider, { isAllowedHandler, children });
52626
52606
  };
52627
52607
 
52628
52608
  // src/components/WfoAuth/WfoIsAllowedToRender.tsx
52629
- import { Fragment as Fragment29, jsx as jsx149 } from "@emotion/react/jsx-runtime";
52609
+ import { Fragment as Fragment29, jsx as jsx148 } from "@emotion/react/jsx-runtime";
52630
52610
  var WfoIsAllowedToRender = ({
52631
52611
  resource,
52632
52612
  children
52633
52613
  }) => {
52634
52614
  const { isAllowed } = usePolicy();
52635
- return isAllowed(resource) ? /* @__PURE__ */ jsx149(Fragment29, { children }) : null;
52615
+ return isAllowed(resource) ? /* @__PURE__ */ jsx148(Fragment29, { children }) : null;
52636
52616
  };
52637
52617
 
52638
52618
  // src/components/WfoDropdownButton/WfoDropdownButton.tsx
52639
- import { useState as useState28 } from "react";
52619
+ import { useState as useState27 } from "react";
52640
52620
  import { EuiButtonGroup, EuiPopover as EuiPopover4 } from "@elastic/eui";
52641
- import { jsx as jsx150 } from "@emotion/react/jsx-runtime";
52621
+ import { jsx as jsx149 } from "@emotion/react/jsx-runtime";
52642
52622
  var WfoDropdownButton = ({
52643
52623
  label,
52644
52624
  isDisabled = false,
52645
52625
  children
52646
52626
  }) => {
52647
- const [isHovered, setIsHovered] = useState28(false);
52648
- const [isPopoverOpen, setPopoverOpen] = useState28(false);
52627
+ const [isHovered, setIsHovered] = useState27(false);
52628
+ const [isPopoverOpen, setPopoverOpen] = useState27(false);
52649
52629
  const buttonOptions = [
52650
52630
  {
52651
52631
  id: "id_1",
52652
52632
  label,
52653
- iconType: () => /* @__PURE__ */ jsx150(WfoPencilAlt, { color: "currentColor" }),
52633
+ iconType: () => /* @__PURE__ */ jsx149(WfoPencilAlt, { color: "currentColor" }),
52654
52634
  style: {
52655
52635
  textDecoration: isHovered && "underline"
52656
52636
  }
@@ -52658,7 +52638,7 @@ var WfoDropdownButton = ({
52658
52638
  {
52659
52639
  id: "id_2",
52660
52640
  label: "",
52661
- iconType: () => /* @__PURE__ */ jsx150(WfoChevronDown, { color: "currentColor" }),
52641
+ iconType: () => /* @__PURE__ */ jsx149(WfoChevronDown, { color: "currentColor" }),
52662
52642
  onMouseEnter: () => setIsHovered(true),
52663
52643
  onMouseLeave: () => setIsHovered(false)
52664
52644
  }
@@ -52669,11 +52649,11 @@ var WfoDropdownButton = ({
52669
52649
  const closePopover = () => {
52670
52650
  setPopoverOpen(false);
52671
52651
  };
52672
- return /* @__PURE__ */ jsx150(
52652
+ return /* @__PURE__ */ jsx149(
52673
52653
  EuiPopover4,
52674
52654
  {
52675
52655
  ownFocus: true,
52676
- button: /* @__PURE__ */ jsx150(
52656
+ button: /* @__PURE__ */ jsx149(
52677
52657
  EuiButtonGroup,
52678
52658
  {
52679
52659
  type: "multi",
@@ -52702,15 +52682,15 @@ import { useTranslations as useTranslations59 } from "next-intl";
52702
52682
  import Link9 from "next/link";
52703
52683
 
52704
52684
  // src/pages/metadata/WfoProductBlocksPage.tsx
52705
- import { useEffect as useEffect17, useState as useState29 } from "react";
52685
+ import { useEffect as useEffect16, useState as useState28 } from "react";
52706
52686
  import { useTranslations as useTranslations42 } from "next-intl";
52707
52687
  import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
52708
52688
 
52709
52689
  // src/pages/metadata/WfoMetadataPageLayout.tsx
52710
52690
  import { useTranslations as useTranslations41 } from "next-intl";
52711
- import { useRouter as useRouter9 } from "next/router";
52691
+ import { useRouter as useRouter8 } from "next/router";
52712
52692
  import { EuiPageHeader as EuiPageHeader2, EuiSpacer as EuiSpacer15, EuiTab as EuiTab2, EuiTabs as EuiTabs2 } from "@elastic/eui";
52713
- import { Fragment as Fragment30, jsx as jsx151, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
52693
+ import { Fragment as Fragment30, jsx as jsx150, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
52714
52694
  var metaDataTabs = [
52715
52695
  {
52716
52696
  id: 1,
@@ -52742,14 +52722,14 @@ var WfoMetadataPageLayout = ({
52742
52722
  children,
52743
52723
  tabs = metaDataTabs
52744
52724
  }) => {
52745
- const router = useRouter9();
52725
+ const router = useRouter8();
52746
52726
  const t = useTranslations41("metadata");
52747
52727
  const currentPath = router.pathname;
52748
52728
  return /* @__PURE__ */ jsxs84(Fragment30, { children: [
52749
- /* @__PURE__ */ jsx151(EuiSpacer15, {}),
52750
- /* @__PURE__ */ jsx151(EuiPageHeader2, { pageTitle: t("title") }),
52751
- /* @__PURE__ */ jsx151(EuiSpacer15, { size: "m" }),
52752
- /* @__PURE__ */ jsx151(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx151(
52729
+ /* @__PURE__ */ jsx150(EuiSpacer15, {}),
52730
+ /* @__PURE__ */ jsx150(EuiPageHeader2, { pageTitle: t("title") }),
52731
+ /* @__PURE__ */ jsx150(EuiSpacer15, { size: "m" }),
52732
+ /* @__PURE__ */ jsx150(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx150(
52753
52733
  EuiTab2,
52754
52734
  {
52755
52735
  isSelected: path === currentPath,
@@ -52758,13 +52738,13 @@ var WfoMetadataPageLayout = ({
52758
52738
  },
52759
52739
  id
52760
52740
  )) }),
52761
- /* @__PURE__ */ jsx151(EuiSpacer15, { size: "xxl" }),
52741
+ /* @__PURE__ */ jsx150(EuiSpacer15, { size: "xxl" }),
52762
52742
  children
52763
52743
  ] });
52764
52744
  };
52765
52745
 
52766
52746
  // src/pages/metadata/WfoProductBlocksPage.tsx
52767
- import { Fragment as Fragment31, jsx as jsx152 } from "@emotion/react/jsx-runtime";
52747
+ import { Fragment as Fragment31, jsx as jsx151 } from "@emotion/react/jsx-runtime";
52768
52748
  var PRODUCT_BLOCK_FIELD_ID = "productBlockId";
52769
52749
  var PRODUCT_BLOCK_FIELD_NAME = "name";
52770
52750
  var PRODUCT_BLOCK_FIELD_TAG = "tag";
@@ -52779,11 +52759,11 @@ var WfoProductBlocksPage = () => {
52779
52759
  const t = useTranslations42("metadata.productBlocks");
52780
52760
  const tError = useTranslations42("errors");
52781
52761
  const { showToastMessage } = useShowToastMessage();
52782
- const [tableDefaults, setTableDefaults] = useState29();
52762
+ const [tableDefaults, setTableDefaults] = useState28();
52783
52763
  const getStoredTableConfig = useStoredTableConfig(
52784
52764
  METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY
52785
52765
  );
52786
- useEffect17(() => {
52766
+ useEffect16(() => {
52787
52767
  const storedConfig = getStoredTableConfig();
52788
52768
  if (storedConfig) {
52789
52769
  setTableDefaults(storedConfig);
@@ -52805,14 +52785,14 @@ var WfoProductBlocksPage = () => {
52805
52785
  field: PRODUCT_BLOCK_FIELD_ID,
52806
52786
  name: t("id"),
52807
52787
  width: "90",
52808
- render: (value) => /* @__PURE__ */ jsx152(WfoFirstPartUUID, { UUID: value }),
52788
+ render: (value) => /* @__PURE__ */ jsx151(WfoFirstPartUUID, { UUID: value }),
52809
52789
  renderDetails: (value) => value
52810
52790
  },
52811
52791
  name: {
52812
52792
  field: PRODUCT_BLOCK_FIELD_NAME,
52813
52793
  name: t("name"),
52814
52794
  width: "200",
52815
- render: (name) => /* @__PURE__ */ jsx152(WfoProductBlockBadge, { badgeType: "product_block" /* PRODUCT_BLOCK */, children: name })
52795
+ render: (name) => /* @__PURE__ */ jsx151(WfoProductBlockBadge, { badgeType: "product_block" /* PRODUCT_BLOCK */, children: name })
52816
52796
  },
52817
52797
  tag: {
52818
52798
  field: PRODUCT_BLOCK_FIELD_TAG,
@@ -52828,12 +52808,12 @@ var WfoProductBlocksPage = () => {
52828
52808
  field: PRODUCT_BLOCK_FIELD_STATUS,
52829
52809
  name: t("status"),
52830
52810
  width: "90",
52831
- render: (value) => /* @__PURE__ */ jsx152(WfoProductStatusBadge, { status: value })
52811
+ render: (value) => /* @__PURE__ */ jsx151(WfoProductStatusBadge, { status: value })
52832
52812
  },
52833
52813
  dependsOn: {
52834
52814
  field: PRODUCT_BLOCK_FIELD_PRODUCT_BLOCKS,
52835
52815
  name: t("dependingProductBlocks"),
52836
- render: (dependsOn) => /* @__PURE__ */ jsx152(Fragment31, { children: dependsOn.map((productBlock, index) => /* @__PURE__ */ jsx152(
52816
+ render: (dependsOn) => /* @__PURE__ */ jsx151(Fragment31, { children: dependsOn.map((productBlock, index) => /* @__PURE__ */ jsx151(
52837
52817
  WfoProductBlockBadge,
52838
52818
  {
52839
52819
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -52845,7 +52825,7 @@ var WfoProductBlocksPage = () => {
52845
52825
  resourceTypes: {
52846
52826
  field: PRODUCT_BLOCK_FIELD_RESOURCE_TYPES,
52847
52827
  name: t("resourceTypes"),
52848
- render: (resourceTypes) => /* @__PURE__ */ jsx152(Fragment31, { children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx152(
52828
+ render: (resourceTypes) => /* @__PURE__ */ jsx151(Fragment31, { children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx151(
52849
52829
  WfoProductBlockBadge,
52850
52830
  {
52851
52831
  badgeType: "resource_type" /* RESOURCE_TYPE */,
@@ -52853,7 +52833,7 @@ var WfoProductBlocksPage = () => {
52853
52833
  },
52854
52834
  index
52855
52835
  )) }),
52856
- renderDetails: (resourceTypes) => /* @__PURE__ */ jsx152(EuiBadgeGroup3, { gutterSize: "s", children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx152(
52836
+ renderDetails: (resourceTypes) => /* @__PURE__ */ jsx151(EuiBadgeGroup3, { gutterSize: "s", children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx151(
52857
52837
  WfoProductBlockBadge,
52858
52838
  {
52859
52839
  badgeType: "resource_type" /* RESOURCE_TYPE */,
@@ -52865,14 +52845,14 @@ var WfoProductBlocksPage = () => {
52865
52845
  createdAt: {
52866
52846
  field: PRODUCT_BLOCK_FIELD_CREATED_AT,
52867
52847
  name: t("createdAt"),
52868
- render: (date) => /* @__PURE__ */ jsx152(WfoDateTime, { dateOrIsoString: date }),
52848
+ render: (date) => /* @__PURE__ */ jsx151(WfoDateTime, { dateOrIsoString: date }),
52869
52849
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
52870
52850
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
52871
52851
  },
52872
52852
  endDate: {
52873
52853
  field: PRODUCT_BLOCK_FIELD_END_DATE,
52874
52854
  name: t("endDate"),
52875
- render: (date) => /* @__PURE__ */ jsx152(WfoDateTime, { dateOrIsoString: date }),
52855
+ render: (date) => /* @__PURE__ */ jsx151(WfoDateTime, { dateOrIsoString: date }),
52876
52856
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
52877
52857
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
52878
52858
  }
@@ -52912,7 +52892,7 @@ var WfoProductBlocksPage = () => {
52912
52892
  dependsOn: getConcatenatedResult(productBlock.dependsOn, ["name"])
52913
52893
  }));
52914
52894
  };
52915
- return /* @__PURE__ */ jsx152(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx152(
52895
+ return /* @__PURE__ */ jsx151(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx151(
52916
52896
  WfoTableWithFilter,
52917
52897
  {
52918
52898
  data: (data == null ? void 0 : data.productBlocks) || [],
@@ -52952,10 +52932,10 @@ var WfoProductBlocksPage = () => {
52952
52932
  };
52953
52933
 
52954
52934
  // src/pages/metadata/WfoResourceTypesPage.tsx
52955
- import { useEffect as useEffect18, useState as useState30 } from "react";
52935
+ import { useEffect as useEffect17, useState as useState29 } from "react";
52956
52936
  import { useTranslations as useTranslations43 } from "next-intl";
52957
52937
  import { EuiBadgeGroup as EuiBadgeGroup4 } from "@elastic/eui";
52958
- import { Fragment as Fragment32, jsx as jsx153 } from "@emotion/react/jsx-runtime";
52938
+ import { Fragment as Fragment32, jsx as jsx152 } from "@emotion/react/jsx-runtime";
52959
52939
  var RESOURCE_TYPE_FIELD_ID = "resourceTypeId";
52960
52940
  var RESOURCE_TYPE_FIELD_TYPE = "resourceType";
52961
52941
  var RESOURCE_TYPE_FIELD_DESCRIPTION = "description";
@@ -52965,11 +52945,11 @@ var WfoResourceTypesPage = () => {
52965
52945
  const t = useTranslations43("metadata.resourceTypes");
52966
52946
  const tError = useTranslations43("errors");
52967
52947
  const { showToastMessage } = useShowToastMessage();
52968
- const [tableDefaults, setTableDefaults] = useState30();
52948
+ const [tableDefaults, setTableDefaults] = useState29();
52969
52949
  const getStoredTableConfig = useStoredTableConfig(
52970
52950
  METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY
52971
52951
  );
52972
- useEffect18(() => {
52952
+ useEffect17(() => {
52973
52953
  const storedConfig = getStoredTableConfig();
52974
52954
  if (storedConfig) {
52975
52955
  setTableDefaults(storedConfig);
@@ -52991,14 +52971,14 @@ var WfoResourceTypesPage = () => {
52991
52971
  field: RESOURCE_TYPE_FIELD_ID,
52992
52972
  name: t("resourceId"),
52993
52973
  width: "90",
52994
- render: (value) => /* @__PURE__ */ jsx153(WfoFirstPartUUID, { UUID: value }),
52974
+ render: (value) => /* @__PURE__ */ jsx152(WfoFirstPartUUID, { UUID: value }),
52995
52975
  renderDetails: (value) => value
52996
52976
  },
52997
52977
  resourceType: {
52998
52978
  field: RESOURCE_TYPE_FIELD_TYPE,
52999
52979
  name: t("type"),
53000
52980
  width: "200",
53001
- render: (value) => /* @__PURE__ */ jsx153(WfoProductBlockBadge, { badgeType: "resource_type" /* RESOURCE_TYPE */, children: value })
52981
+ render: (value) => /* @__PURE__ */ jsx152(WfoProductBlockBadge, { badgeType: "resource_type" /* RESOURCE_TYPE */, children: value })
53002
52982
  },
53003
52983
  description: {
53004
52984
  field: RESOURCE_TYPE_FIELD_DESCRIPTION,
@@ -53007,7 +52987,7 @@ var WfoResourceTypesPage = () => {
53007
52987
  productBlocks: {
53008
52988
  field: RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS,
53009
52989
  name: t("usedInProductBlocks"),
53010
- render: (productBlocks) => /* @__PURE__ */ jsx153(Fragment32, { children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx153(
52990
+ render: (productBlocks) => /* @__PURE__ */ jsx152(Fragment32, { children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx152(
53011
52991
  WfoProductBlockBadge,
53012
52992
  {
53013
52993
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -53015,7 +52995,7 @@ var WfoResourceTypesPage = () => {
53015
52995
  },
53016
52996
  index
53017
52997
  )) }),
53018
- renderDetails: (productBlocks) => /* @__PURE__ */ jsx153(EuiBadgeGroup4, { gutterSize: "s", children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx153(
52998
+ renderDetails: (productBlocks) => /* @__PURE__ */ jsx152(EuiBadgeGroup4, { gutterSize: "s", children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx152(
53019
52999
  WfoProductBlockBadge,
53020
53000
  {
53021
53001
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -53059,7 +53039,7 @@ var WfoResourceTypesPage = () => {
53059
53039
  ])
53060
53040
  }));
53061
53041
  };
53062
- return /* @__PURE__ */ jsx153(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx153(
53042
+ return /* @__PURE__ */ jsx152(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx152(
53063
53043
  WfoTableWithFilter,
53064
53044
  {
53065
53045
  data: data ? data.resourceTypes : [],
@@ -53099,9 +53079,9 @@ var WfoResourceTypesPage = () => {
53099
53079
  };
53100
53080
 
53101
53081
  // src/pages/metadata/WfoProductsPage.tsx
53102
- import { useEffect as useEffect19, useState as useState31 } from "react";
53082
+ import { useEffect as useEffect18, useState as useState30 } from "react";
53103
53083
  import { useTranslations as useTranslations44 } from "next-intl";
53104
- import { Fragment as Fragment33, jsx as jsx154 } from "@emotion/react/jsx-runtime";
53084
+ import { Fragment as Fragment33, jsx as jsx153 } from "@emotion/react/jsx-runtime";
53105
53085
  var PRODUCT_FIELD_PRODUCT_ID = "productId";
53106
53086
  var PRODUCT_FIELD_NAME = "name";
53107
53087
  var PRODUCT_FIELD_DESCRIPTION = "description";
@@ -53116,11 +53096,11 @@ var WfoProductsPage = () => {
53116
53096
  const t = useTranslations44("metadata.products");
53117
53097
  const tError = useTranslations44("errors");
53118
53098
  const { showToastMessage } = useShowToastMessage();
53119
- const [tableDefaults, setTableDefaults] = useState31();
53099
+ const [tableDefaults, setTableDefaults] = useState30();
53120
53100
  const getStoredTableConfig = useStoredTableConfig(
53121
53101
  METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY
53122
53102
  );
53123
- useEffect19(() => {
53103
+ useEffect18(() => {
53124
53104
  const storedConfig = getStoredTableConfig();
53125
53105
  if (storedConfig) {
53126
53106
  setTableDefaults(storedConfig);
@@ -53142,20 +53122,20 @@ var WfoProductsPage = () => {
53142
53122
  field: PRODUCT_FIELD_PRODUCT_ID,
53143
53123
  name: t("id"),
53144
53124
  width: "90",
53145
- render: (value) => /* @__PURE__ */ jsx154(WfoFirstPartUUID, { UUID: value }),
53125
+ render: (value) => /* @__PURE__ */ jsx153(WfoFirstPartUUID, { UUID: value }),
53146
53126
  renderDetails: (value) => value
53147
53127
  },
53148
53128
  name: {
53149
53129
  field: PRODUCT_FIELD_NAME,
53150
53130
  name: t("name"),
53151
53131
  width: "200",
53152
- render: (name) => /* @__PURE__ */ jsx154(WfoProductBlockBadge, { badgeType: "product" /* PRODUCT */, children: name })
53132
+ render: (name) => /* @__PURE__ */ jsx153(WfoProductBlockBadge, { badgeType: "product" /* PRODUCT */, children: name })
53153
53133
  },
53154
53134
  tag: {
53155
53135
  field: PRODUCT_FIELD_TAG,
53156
53136
  name: t("tag"),
53157
53137
  width: "120",
53158
- render: (value) => /* @__PURE__ */ jsx154(WfoProductBlockBadge, { badgeType: "product_tag" /* PRODUCT_TAG */, children: value })
53138
+ render: (value) => /* @__PURE__ */ jsx153(WfoProductBlockBadge, { badgeType: "product_tag" /* PRODUCT_TAG */, children: value })
53159
53139
  },
53160
53140
  description: {
53161
53141
  field: PRODUCT_FIELD_DESCRIPTION,
@@ -53170,12 +53150,12 @@ var WfoProductsPage = () => {
53170
53150
  field: PRODUCT_FIELD_STATUS,
53171
53151
  name: t("status"),
53172
53152
  width: "90",
53173
- render: (value) => /* @__PURE__ */ jsx154(WfoProductStatusBadge, { status: value })
53153
+ render: (value) => /* @__PURE__ */ jsx153(WfoProductStatusBadge, { status: value })
53174
53154
  },
53175
53155
  fixedInputs: {
53176
53156
  field: PRODUCT_FIELD_FIXED_INPUTS,
53177
53157
  name: t("fixedInputs"),
53178
- render: (fixedInputs) => /* @__PURE__ */ jsx154(Fragment33, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx154(
53158
+ render: (fixedInputs) => /* @__PURE__ */ jsx153(Fragment33, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx153(
53179
53159
  WfoProductBlockBadge,
53180
53160
  {
53181
53161
  badgeType: "fixed_input" /* FIXED_INPUT */,
@@ -53187,7 +53167,7 @@ var WfoProductsPage = () => {
53187
53167
  productBlocks: {
53188
53168
  field: PRODUCT_FIELD_PRODUCT_BLOCKS,
53189
53169
  name: t("productBlocks"),
53190
- render: (productBlocks) => /* @__PURE__ */ jsx154(Fragment33, { children: productBlocks.map((block, index) => /* @__PURE__ */ jsx154(
53170
+ render: (productBlocks) => /* @__PURE__ */ jsx153(Fragment33, { children: productBlocks.map((block, index) => /* @__PURE__ */ jsx153(
53191
53171
  WfoProductBlockBadge,
53192
53172
  {
53193
53173
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -53199,7 +53179,7 @@ var WfoProductsPage = () => {
53199
53179
  createdAt: {
53200
53180
  field: PRODUCT_FIELD_CREATED_AT,
53201
53181
  name: t("createdAt"),
53202
- render: (date) => /* @__PURE__ */ jsx154(WfoDateTime, { dateOrIsoString: date }),
53182
+ render: (date) => /* @__PURE__ */ jsx153(WfoDateTime, { dateOrIsoString: date }),
53203
53183
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
53204
53184
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
53205
53185
  }
@@ -53257,7 +53237,7 @@ var WfoProductsPage = () => {
53257
53237
  createdAt
53258
53238
  })
53259
53239
  );
53260
- return /* @__PURE__ */ jsx154(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx154(
53240
+ return /* @__PURE__ */ jsx153(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx153(
53261
53241
  WfoTableWithFilter,
53262
53242
  {
53263
53243
  data: (_d = data == null ? void 0 : data.products) != null ? _d : [],
@@ -53297,7 +53277,7 @@ var WfoProductsPage = () => {
53297
53277
  };
53298
53278
 
53299
53279
  // src/pages/metadata/WfoWorkflowsPage.tsx
53300
- import { useEffect as useEffect20, useState as useState32 } from "react";
53280
+ import { useEffect as useEffect19, useState as useState31 } from "react";
53301
53281
  import { useTranslations as useTranslations45 } from "next-intl";
53302
53282
  import { EuiBadgeGroup as EuiBadgeGroup5 } from "@elastic/eui";
53303
53283
 
@@ -53330,17 +53310,17 @@ var graphQlWorkflowListMapper = ({
53330
53310
  });
53331
53311
 
53332
53312
  // src/pages/metadata/WfoWorkflowsPage.tsx
53333
- import { Fragment as Fragment34, jsx as jsx155 } from "@emotion/react/jsx-runtime";
53313
+ import { Fragment as Fragment34, jsx as jsx154 } from "@emotion/react/jsx-runtime";
53334
53314
  var WfoWorkflowsPage = () => {
53335
53315
  var _a, _b;
53336
53316
  const t = useTranslations45("metadata.workflows");
53337
53317
  const tError = useTranslations45("errors");
53338
53318
  const { showToastMessage } = useShowToastMessage();
53339
- const [tableDefaults, setTableDefaults] = useState32();
53319
+ const [tableDefaults, setTableDefaults] = useState31();
53340
53320
  const getStoredTableConfig = useStoredTableConfig(
53341
53321
  METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY
53342
53322
  );
53343
- useEffect20(() => {
53323
+ useEffect19(() => {
53344
53324
  const storedConfig = getStoredTableConfig();
53345
53325
  if (storedConfig) {
53346
53326
  setTableDefaults(storedConfig);
@@ -53362,7 +53342,7 @@ var WfoWorkflowsPage = () => {
53362
53342
  field: "name",
53363
53343
  name: t("name"),
53364
53344
  width: "20%",
53365
- render: (name) => /* @__PURE__ */ jsx155(WfoProductBlockBadge, { badgeType: "workflow" /* WORKFLOW */, children: name })
53345
+ render: (name) => /* @__PURE__ */ jsx154(WfoProductBlockBadge, { badgeType: "workflow" /* WORKFLOW */, children: name })
53366
53346
  },
53367
53347
  description: {
53368
53348
  field: "description",
@@ -53373,13 +53353,13 @@ var WfoWorkflowsPage = () => {
53373
53353
  field: "target",
53374
53354
  name: t("target"),
53375
53355
  width: "15%",
53376
- render: (target) => /* @__PURE__ */ jsx155(WfoWorkflowTargetBadge, { target })
53356
+ render: (target) => /* @__PURE__ */ jsx154(WfoWorkflowTargetBadge, { target })
53377
53357
  },
53378
53358
  productTags: {
53379
53359
  field: "productTags",
53380
53360
  name: t("productTags"),
53381
53361
  width: "20%",
53382
- render: (productTags) => /* @__PURE__ */ jsx155(Fragment34, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx155(
53362
+ render: (productTags) => /* @__PURE__ */ jsx154(Fragment34, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx154(
53383
53363
  WfoProductBlockBadge,
53384
53364
  {
53385
53365
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -53387,7 +53367,7 @@ var WfoWorkflowsPage = () => {
53387
53367
  },
53388
53368
  index
53389
53369
  )) }),
53390
- renderDetails: (productTags) => /* @__PURE__ */ jsx155(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx155(
53370
+ renderDetails: (productTags) => /* @__PURE__ */ jsx154(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx154(
53391
53371
  WfoProductBlockBadge,
53392
53372
  {
53393
53373
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -53400,7 +53380,7 @@ var WfoWorkflowsPage = () => {
53400
53380
  field: "createdAt",
53401
53381
  name: t("createdAt"),
53402
53382
  width: "15%",
53403
- render: (date) => /* @__PURE__ */ jsx155(WfoDateTime, { dateOrIsoString: date }),
53383
+ render: (date) => /* @__PURE__ */ jsx154(WfoDateTime, { dateOrIsoString: date }),
53404
53384
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
53405
53385
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
53406
53386
  }
@@ -53442,7 +53422,7 @@ var WfoWorkflowsPage = () => {
53442
53422
  })
53443
53423
  );
53444
53424
  };
53445
- return /* @__PURE__ */ jsx155(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx155(
53425
+ return /* @__PURE__ */ jsx154(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx154(
53446
53426
  WfoTableWithFilter,
53447
53427
  {
53448
53428
  data: data ? mapWorkflowDefinitionToWorkflowListItem(
@@ -53484,7 +53464,7 @@ var WfoWorkflowsPage = () => {
53484
53464
  };
53485
53465
 
53486
53466
  // src/pages/metadata/WfoTasksPage.tsx
53487
- import { useEffect as useEffect21, useState as useState33 } from "react";
53467
+ import { useEffect as useEffect20, useState as useState32 } from "react";
53488
53468
  import { useTranslations as useTranslations46 } from "next-intl";
53489
53469
  import { EuiBadgeGroup as EuiBadgeGroup6 } from "@elastic/eui";
53490
53470
 
@@ -53517,17 +53497,17 @@ var graphQlTaskListMapper = ({
53517
53497
  });
53518
53498
 
53519
53499
  // src/pages/metadata/WfoTasksPage.tsx
53520
- import { Fragment as Fragment35, jsx as jsx156 } from "@emotion/react/jsx-runtime";
53500
+ import { Fragment as Fragment35, jsx as jsx155 } from "@emotion/react/jsx-runtime";
53521
53501
  var WfoTasksPage = () => {
53522
53502
  var _a, _b;
53523
53503
  const t = useTranslations46("metadata.tasks");
53524
53504
  const tError = useTranslations46("errors");
53525
53505
  const { showToastMessage } = useShowToastMessage();
53526
- const [tableDefaults, setTableDefaults] = useState33();
53506
+ const [tableDefaults, setTableDefaults] = useState32();
53527
53507
  const getStoredTableConfig = useStoredTableConfig(
53528
53508
  METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY
53529
53509
  );
53530
- useEffect21(() => {
53510
+ useEffect20(() => {
53531
53511
  const storedConfig = getStoredTableConfig();
53532
53512
  if (storedConfig) {
53533
53513
  setTableDefaults(storedConfig);
@@ -53549,7 +53529,7 @@ var WfoTasksPage = () => {
53549
53529
  field: "name",
53550
53530
  name: t("name"),
53551
53531
  width: "20%",
53552
- render: (name) => /* @__PURE__ */ jsx156(WfoProductBlockBadge, { badgeType: "task" /* TASK */, children: name })
53532
+ render: (name) => /* @__PURE__ */ jsx155(WfoProductBlockBadge, { badgeType: "task" /* TASK */, children: name })
53553
53533
  },
53554
53534
  description: {
53555
53535
  field: "description",
@@ -53560,13 +53540,13 @@ var WfoTasksPage = () => {
53560
53540
  field: "target",
53561
53541
  name: t("target"),
53562
53542
  width: "15%",
53563
- render: (target) => /* @__PURE__ */ jsx156(WfoWorkflowTargetBadge, { target })
53543
+ render: (target) => /* @__PURE__ */ jsx155(WfoWorkflowTargetBadge, { target })
53564
53544
  },
53565
53545
  productTags: {
53566
53546
  field: "productTags",
53567
53547
  name: t("productTags"),
53568
53548
  width: "20%",
53569
- render: (productTags) => /* @__PURE__ */ jsx156(Fragment35, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx156(
53549
+ render: (productTags) => /* @__PURE__ */ jsx155(Fragment35, { children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx155(
53570
53550
  WfoProductBlockBadge,
53571
53551
  {
53572
53552
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -53574,7 +53554,7 @@ var WfoTasksPage = () => {
53574
53554
  },
53575
53555
  index
53576
53556
  )) }),
53577
- renderDetails: (productTags) => /* @__PURE__ */ jsx156(EuiBadgeGroup6, { gutterSize: "s", children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx156(
53557
+ renderDetails: (productTags) => /* @__PURE__ */ jsx155(EuiBadgeGroup6, { gutterSize: "s", children: productTags == null ? void 0 : productTags.filter(onlyUnique).map((productTag, index) => /* @__PURE__ */ jsx155(
53578
53558
  WfoProductBlockBadge,
53579
53559
  {
53580
53560
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -53587,7 +53567,7 @@ var WfoTasksPage = () => {
53587
53567
  field: "createdAt",
53588
53568
  name: t("createdAt"),
53589
53569
  width: "15%",
53590
- render: (date) => /* @__PURE__ */ jsx156(WfoDateTime, { dateOrIsoString: date }),
53570
+ render: (date) => /* @__PURE__ */ jsx155(WfoDateTime, { dateOrIsoString: date }),
53591
53571
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
53592
53572
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
53593
53573
  }
@@ -53632,7 +53612,7 @@ var WfoTasksPage = () => {
53632
53612
  }
53633
53613
  );
53634
53614
  };
53635
- return /* @__PURE__ */ jsx156(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx156(
53615
+ return /* @__PURE__ */ jsx155(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx155(
53636
53616
  WfoTableWithFilter,
53637
53617
  {
53638
53618
  data: data ? mapTaskDefinitionToTaskListItem(data.tasks) : [],
@@ -53674,7 +53654,7 @@ var WfoTasksPage = () => {
53674
53654
  // src/pages/processes/WfoProcessListSubscriptionsCell.tsx
53675
53655
  import Link5 from "next/link";
53676
53656
  import { EuiFlexGroup as EuiFlexGroup16 } from "@elastic/eui";
53677
- import { Fragment as Fragment36, jsx as jsx157, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
53657
+ import { Fragment as Fragment36, jsx as jsx156, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
53678
53658
  var RENDER_ALL = "RENDER_ALL";
53679
53659
  var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
53680
53660
  RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
@@ -53692,13 +53672,13 @@ var WfoProcessListSubscriptionsCell = ({
53692
53672
  }
53693
53673
  const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
53694
53674
  const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
53695
- return /* @__PURE__ */ jsx157(Fragment36, { children: /* @__PURE__ */ jsxs85(
53675
+ return /* @__PURE__ */ jsx156(Fragment36, { children: /* @__PURE__ */ jsxs85(
53696
53676
  EuiFlexGroup16,
53697
53677
  {
53698
53678
  direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
53699
53679
  gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "m" : "xs",
53700
53680
  children: [
53701
- visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx157(
53681
+ visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx156(
53702
53682
  Link5,
53703
53683
  {
53704
53684
  href: `/subscriptions/${subscription.subscriptionId}`,
@@ -53710,14 +53690,14 @@ var WfoProcessListSubscriptionsCell = ({
53710
53690
  },
53711
53691
  subscription.subscriptionId
53712
53692
  )),
53713
- numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsx157("span", { children: `(+${numberOfNotVisibleSubscriptions})` })
53693
+ numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsx156("span", { children: `(+${numberOfNotVisibleSubscriptions})` })
53714
53694
  ]
53715
53695
  }
53716
53696
  ) });
53717
53697
  };
53718
53698
 
53719
53699
  // src/pages/processes/WfoProcessDetailPage.tsx
53720
- import { useEffect as useEffect24, useRef as useRef7, useState as useState38 } from "react";
53700
+ import { useEffect as useEffect23, useRef as useRef7, useState as useState37 } from "react";
53721
53701
 
53722
53702
  // src/rtk/endpoints/processDetail.ts
53723
53703
  var processDetailQuery = `query ProcessDetail($processId: String!) {
@@ -53774,7 +53754,7 @@ var processDetailApi = orchestratorApi.injectEndpoints({
53774
53754
  var { useGetProcessDetailQuery } = processDetailApi;
53775
53755
 
53776
53756
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
53777
- import React47 from "react";
53757
+ import React46 from "react";
53778
53758
  import { useTranslations as useTranslations47 } from "next-intl";
53779
53759
  import { EuiFlexGroup as EuiFlexGroup17, EuiFlexItem as EuiFlexItem25, EuiPanel as EuiPanel4, EuiText as EuiText30 } from "@elastic/eui";
53780
53760
 
@@ -53881,26 +53861,26 @@ var getStyles13 = (theme) => {
53881
53861
  };
53882
53862
 
53883
53863
  // src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
53884
- import { jsx as jsx158, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
53864
+ import { jsx as jsx157, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
53885
53865
  var SubIcon = ({ stepStatus, color = "" }) => {
53886
53866
  switch (stepStatus) {
53887
53867
  case "suspend" /* SUSPEND */:
53888
- return /* @__PURE__ */ jsx158(WfoMinusCircleFill, { color });
53868
+ return /* @__PURE__ */ jsx157(WfoMinusCircleFill, { color });
53889
53869
  case "failed" /* FAILED */:
53890
- return /* @__PURE__ */ jsx158(WfoXCircleFill, { color });
53870
+ return /* @__PURE__ */ jsx157(WfoXCircleFill, { color });
53891
53871
  default:
53892
- return /* @__PURE__ */ jsx158(WfoCheckmarkCircleFill, { color });
53872
+ return /* @__PURE__ */ jsx157(WfoCheckmarkCircleFill, { color });
53893
53873
  }
53894
53874
  };
53895
53875
  var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
53896
53876
  if (isStartStep) {
53897
- return /* @__PURE__ */ jsx158(WfoPlayFill, { color });
53877
+ return /* @__PURE__ */ jsx157(WfoPlayFill, { color });
53898
53878
  }
53899
53879
  switch (stepStatus) {
53900
53880
  case "form" /* FORM */:
53901
- return /* @__PURE__ */ jsx158(WfoPencilAlt, { color });
53881
+ return /* @__PURE__ */ jsx157(WfoPencilAlt, { color });
53902
53882
  default:
53903
- return /* @__PURE__ */ jsx158(WfoCogFill, { color, width: 16, height: 16 });
53883
+ return /* @__PURE__ */ jsx157(WfoCogFill, { color, width: 16, height: 16 });
53904
53884
  }
53905
53885
  };
53906
53886
  var WfoStepStatusIcon = ({
@@ -53951,7 +53931,7 @@ var WfoStepStatusIcon = ({
53951
53931
  }
53952
53932
  })();
53953
53933
  return /* @__PURE__ */ jsxs86(EuiFlexItem23, { css: { flexDirection: "row" }, grow: 0, children: [
53954
- /* @__PURE__ */ jsx158("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx158(
53934
+ /* @__PURE__ */ jsx157("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx157(
53955
53935
  MainIcon,
53956
53936
  {
53957
53937
  color: mainIconColor,
@@ -53959,7 +53939,7 @@ var WfoStepStatusIcon = ({
53959
53939
  isStartStep
53960
53940
  }
53961
53941
  ) }),
53962
- /* @__PURE__ */ jsx158(
53942
+ /* @__PURE__ */ jsx157(
53963
53943
  "div",
53964
53944
  {
53965
53945
  css: {
@@ -53967,7 +53947,7 @@ var WfoStepStatusIcon = ({
53967
53947
  width: `${theme.base}`,
53968
53948
  visibility: hasSubIcon ? "visible" : "hidden"
53969
53949
  },
53970
- children: /* @__PURE__ */ jsx158(SubIcon, { color: subIconColor, stepStatus })
53950
+ children: /* @__PURE__ */ jsx157(SubIcon, { color: subIconColor, stepStatus })
53971
53951
  }
53972
53952
  )
53973
53953
  ] });
@@ -53995,30 +53975,32 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
53995
53975
  };
53996
53976
 
53997
53977
  // src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
53998
- import { useState as useState34 } from "react";
53978
+ import { useState as useState33 } from "react";
53999
53979
  import { EuiFlexItem as EuiFlexItem24 } from "@elastic/eui";
54000
- import { jsx as jsx159 } from "@emotion/react/jsx-runtime";
53980
+ import { jsx as jsx158 } from "@emotion/react/jsx-runtime";
54001
53981
  var WfoStepForm = ({
54002
53982
  userInputForm,
54003
53983
  isTask,
54004
53984
  processId
54005
53985
  }) => {
54006
- const [isProcessing, setIsProcessing] = useState34(false);
53986
+ const [isProcessing, setIsProcessing] = useState33(false);
54007
53987
  const { theme } = useOrchestratorTheme();
54008
- const apiClient = useAxiosApiClient();
53988
+ const [resumeProcess] = useResumeProcessMutation();
54009
53989
  const submitForm = (processInput) => {
54010
53990
  if (!processId) {
54011
53991
  return Promise.reject();
54012
53992
  }
54013
- return apiClient.resumeProcess(processId, processInput).then(() => {
54014
- setIsProcessing(true);
54015
- });
53993
+ return resumeProcess({ processId, userInputs: processInput }).then(
53994
+ () => {
53995
+ setIsProcessing(true);
53996
+ }
53997
+ );
54016
53998
  };
54017
- return /* @__PURE__ */ jsx159(EuiFlexItem24, { css: { margin: theme.size.m }, children: isProcessing && /* @__PURE__ */ jsx159(WfoLoading, {}) || /* @__PURE__ */ jsx159(
54018
- UserInputFormWizardDeprecated,
53999
+ return /* @__PURE__ */ jsx158(EuiFlexItem24, { css: { margin: theme.size.m }, children: isProcessing && /* @__PURE__ */ jsx158(WfoLoading, {}) || /* @__PURE__ */ jsx158(
54000
+ UserInputFormWizard,
54019
54001
  {
54020
54002
  stepUserInput: userInputForm,
54021
- validSubmit: submitForm,
54003
+ stepSubmit: submitForm,
54022
54004
  hasNext: false,
54023
54005
  isTask,
54024
54006
  isResuming: true
@@ -54027,8 +54009,8 @@ var WfoStepForm = ({
54027
54009
  };
54028
54010
 
54029
54011
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
54030
- import { Fragment as Fragment37, jsx as jsx160, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
54031
- var WfoStep = React47.forwardRef(
54012
+ import { Fragment as Fragment37, jsx as jsx159, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
54013
+ var WfoStep = React46.forwardRef(
54032
54014
  ({
54033
54015
  stepListItem,
54034
54016
  onToggleStepDetail,
@@ -54059,28 +54041,28 @@ var WfoStep = React47.forwardRef(
54059
54041
  return "";
54060
54042
  }
54061
54043
  return /* @__PURE__ */ jsxs87(EuiText30, { size: "s", children: [
54062
- /* @__PURE__ */ jsx160("h4", { children: "To" }),
54063
- /* @__PURE__ */ jsx160("p", { children: value.to.map(
54044
+ /* @__PURE__ */ jsx159("h4", { children: "To" }),
54045
+ /* @__PURE__ */ jsx159("p", { children: value.to.map(
54064
54046
  (v, i) => /* @__PURE__ */ jsxs87("div", { children: [
54065
54047
  v.name,
54066
54048
  " <",
54067
- /* @__PURE__ */ jsx160("a", { href: `mailto: ${v.email}`, children: v.email }),
54049
+ /* @__PURE__ */ jsx159("a", { href: `mailto: ${v.email}`, children: v.email }),
54068
54050
  ">"
54069
54051
  ] }, `to-${i}`)
54070
54052
  ) }),
54071
- /* @__PURE__ */ jsx160("h4", { children: "CC" }),
54072
- /* @__PURE__ */ jsx160("p", { children: value.cc.map(
54053
+ /* @__PURE__ */ jsx159("h4", { children: "CC" }),
54054
+ /* @__PURE__ */ jsx159("p", { children: value.cc.map(
54073
54055
  (v, i) => /* @__PURE__ */ jsxs87("div", { children: [
54074
54056
  v.name,
54075
54057
  " <",
54076
- /* @__PURE__ */ jsx160("a", { href: `mailto: ${v.email}`, children: v.email }),
54058
+ /* @__PURE__ */ jsx159("a", { href: `mailto: ${v.email}`, children: v.email }),
54077
54059
  ">"
54078
54060
  ] }, `cc-${i}`)
54079
54061
  ) }),
54080
- /* @__PURE__ */ jsx160("h4", { children: "Subject" }),
54081
- /* @__PURE__ */ jsx160("p", { children: value.subject }),
54082
- /* @__PURE__ */ jsx160("h4", { children: "Message" }),
54083
- /* @__PURE__ */ jsx160(
54062
+ /* @__PURE__ */ jsx159("h4", { children: "Subject" }),
54063
+ /* @__PURE__ */ jsx159("p", { children: value.subject }),
54064
+ /* @__PURE__ */ jsx159("h4", { children: "Message" }),
54065
+ /* @__PURE__ */ jsx159(
54084
54066
  "div",
54085
54067
  {
54086
54068
  className: "emailMessage",
@@ -54089,14 +54071,14 @@ var WfoStep = React47.forwardRef(
54089
54071
  )
54090
54072
  ] });
54091
54073
  };
54092
- return /* @__PURE__ */ jsx160("div", { ref, children: /* @__PURE__ */ jsxs87(EuiPanel4, { children: [
54074
+ return /* @__PURE__ */ jsx159("div", { ref, children: /* @__PURE__ */ jsxs87(EuiPanel4, { children: [
54093
54075
  /* @__PURE__ */ jsxs87(
54094
54076
  EuiFlexGroup17,
54095
54077
  {
54096
54078
  css: getStepHeaderStyle(hasStepContent),
54097
54079
  onClick: () => hasStepContent && onToggleStepDetail(),
54098
54080
  children: [
54099
- /* @__PURE__ */ jsx160(
54081
+ /* @__PURE__ */ jsx159(
54100
54082
  WfoStepStatusIcon,
54101
54083
  {
54102
54084
  stepStatus: step.status,
@@ -54104,47 +54086,47 @@ var WfoStep = React47.forwardRef(
54104
54086
  }
54105
54087
  ),
54106
54088
  /* @__PURE__ */ jsxs87(EuiFlexItem25, { grow: 0, children: [
54107
- /* @__PURE__ */ jsx160(EuiText30, { css: stepListContentBoldTextStyle, children: step.name }),
54089
+ /* @__PURE__ */ jsx159(EuiText30, { css: stepListContentBoldTextStyle, children: step.name }),
54108
54090
  /* @__PURE__ */ jsxs87(EuiText30, { children: [
54109
54091
  step.status,
54110
54092
  " ",
54111
54093
  step.executed && `- ${formatDate(step.executed)}`
54112
54094
  ] })
54113
54095
  ] }),
54114
- /* @__PURE__ */ jsx160(EuiFlexGroup17, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs87(Fragment37, { children: [
54096
+ /* @__PURE__ */ jsx159(EuiFlexGroup17, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs87(Fragment37, { children: [
54115
54097
  /* @__PURE__ */ jsxs87(
54116
54098
  EuiFlexItem25,
54117
54099
  {
54118
54100
  grow: 0,
54119
54101
  css: stepHeaderRightStyle,
54120
54102
  children: [
54121
- /* @__PURE__ */ jsx160(EuiText30, { css: stepDurationStyle, children: t("duration") }),
54122
- /* @__PURE__ */ jsx160(EuiText30, { size: "m", children: calculateTimeDifference(
54103
+ /* @__PURE__ */ jsx159(EuiText30, { css: stepDurationStyle, children: t("duration") }),
54104
+ /* @__PURE__ */ jsx159(EuiText30, { size: "m", children: calculateTimeDifference(
54123
54105
  startedAt,
54124
54106
  step.executed
54125
54107
  ) })
54126
54108
  ]
54127
54109
  }
54128
54110
  ),
54129
- /* @__PURE__ */ jsx160(
54111
+ /* @__PURE__ */ jsx159(
54130
54112
  EuiFlexItem25,
54131
54113
  {
54132
54114
  grow: 0,
54133
54115
  css: getStepToggleExpandStyle(
54134
54116
  hasStepContent
54135
54117
  ),
54136
- children: isExpanded && /* @__PURE__ */ jsx160(WfoChevronUp, {}) || /* @__PURE__ */ jsx160(WfoChevronDown, {})
54118
+ children: isExpanded && /* @__PURE__ */ jsx159(WfoChevronUp, {}) || /* @__PURE__ */ jsx159(WfoChevronDown, {})
54137
54119
  }
54138
54120
  )
54139
54121
  ] }) })
54140
54122
  ]
54141
54123
  }
54142
54124
  ),
54143
- hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */ jsx160(WfoJsonCodeBlock, { data: stepContent }),
54144
- isExpanded && hasHtmlMail && /* @__PURE__ */ jsx160("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
54125
+ hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */ jsx159(WfoJsonCodeBlock, { data: stepContent }),
54126
+ isExpanded && hasHtmlMail && /* @__PURE__ */ jsx159("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
54145
54127
  step.stateDelta.confirmation_mail
54146
54128
  ) }),
54147
- step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx160(
54129
+ step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx159(
54148
54130
  WfoStepForm,
54149
54131
  {
54150
54132
  userInputForm,
@@ -54158,9 +54140,9 @@ var WfoStep = React47.forwardRef(
54158
54140
  WfoStep.displayName = "WfoStep";
54159
54141
 
54160
54142
  // src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
54161
- import React48, { useImperativeHandle, useRef as useRef6 } from "react";
54162
- import { Fragment as Fragment38, jsx as jsx161, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
54163
- var WfoStepList = React48.forwardRef(
54143
+ import React47, { useImperativeHandle, useRef as useRef6 } from "react";
54144
+ import { Fragment as Fragment38, jsx as jsx160, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
54145
+ var WfoStepList = React47.forwardRef(
54164
54146
  ({
54165
54147
  stepListItems,
54166
54148
  showHiddenKeys,
@@ -54201,10 +54183,10 @@ var WfoStepList = React48.forwardRef(
54201
54183
  })
54202
54184
  }));
54203
54185
  const getReferenceCallbackForStepId = (stepId) => (node) => node ? stepReferences.current.set(stepId, node) : stepReferences.current.delete(stepId);
54204
- return /* @__PURE__ */ jsx161(Fragment38, { children: stepListItems.map((stepListItem, index) => {
54186
+ return /* @__PURE__ */ jsx160(Fragment38, { children: stepListItems.map((stepListItem, index) => {
54205
54187
  const stepComponent = /* @__PURE__ */ jsxs88("div", { children: [
54206
- index !== 0 && /* @__PURE__ */ jsx161("div", { css: stepSpacerStyle }),
54207
- /* @__PURE__ */ jsx161(
54188
+ index !== 0 && /* @__PURE__ */ jsx160("div", { css: stepSpacerStyle }),
54189
+ /* @__PURE__ */ jsx160(
54208
54190
  WfoStep,
54209
54191
  {
54210
54192
  ref: getReferenceCallbackForStepId(
@@ -54230,12 +54212,12 @@ var WfoStepList = React48.forwardRef(
54230
54212
  WfoStepList.displayName = "WfoStepList";
54231
54213
 
54232
54214
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
54233
- import React51, { useEffect as useEffect23, useState as useState37 } from "react";
54215
+ import React50, { useEffect as useEffect22, useState as useState36 } from "react";
54234
54216
  import { useTranslations as useTranslations51 } from "next-intl";
54235
54217
 
54236
54218
  // src/components/WfoDiff/WfoDiff.tsx
54237
54219
  var refractor = __toESM(require_refractor(), 1);
54238
- import { useCallback as useCallback5, useEffect as useEffect22, useMemo as useMemo4, useState as useState35 } from "react";
54220
+ import { useCallback as useCallback5, useEffect as useEffect21, useMemo as useMemo4, useState as useState34 } from "react";
54239
54221
  import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
54240
54222
  import "react-diff-view/style/index.css";
54241
54223
  import { useTranslations as useTranslations48 } from "next-intl";
@@ -54248,15 +54230,15 @@ import {
54248
54230
  EuiSpacer as EuiSpacer16,
54249
54231
  EuiText as EuiText31
54250
54232
  } from "@elastic/eui";
54251
- import { jsx as jsx162, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
54233
+ import { jsx as jsx161, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
54252
54234
  var EMPTY_HUNKS = [];
54253
54235
  var SMALL_CONTEXT = 3;
54254
54236
  var FULL_CONTEXT = 1e6;
54255
54237
  var WfoDiff = ({ oldText, newText, syntax }) => {
54256
54238
  const t = useTranslations48("processes.delta");
54257
- const [showSplit, setShowSplit] = useState35(true);
54258
- const [showFull, setShowFull] = useState35(false);
54259
- const [{ type, hunks }, setDiff] = useState35({
54239
+ const [showSplit, setShowSplit] = useState34(true);
54240
+ const [showFull, setShowFull] = useState34(false);
54241
+ const [{ type, hunks }, setDiff] = useState34({
54260
54242
  type: "modify",
54261
54243
  hunks: []
54262
54244
  });
@@ -54282,13 +54264,13 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
54282
54264
  return void 0;
54283
54265
  }
54284
54266
  }, [hunks, syntax]);
54285
- useEffect22(() => {
54267
+ useEffect21(() => {
54286
54268
  updateDiffText();
54287
54269
  }, [updateDiffText, showFull]);
54288
54270
  return /* @__PURE__ */ jsxs89("div", { children: [
54289
54271
  /* @__PURE__ */ jsxs89(EuiFlexGroup18, { gutterSize: "xs", children: [
54290
- /* @__PURE__ */ jsx162(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx162(EuiText31, { children: /* @__PURE__ */ jsx162("h3", { children: t("title") }) }) }),
54291
- /* @__PURE__ */ jsx162(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx162(
54272
+ /* @__PURE__ */ jsx161(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx161(EuiText31, { children: /* @__PURE__ */ jsx161("h3", { children: t("title") }) }) }),
54273
+ /* @__PURE__ */ jsx161(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx161(
54292
54274
  EuiButtonIcon6,
54293
54275
  {
54294
54276
  size: "s",
@@ -54296,7 +54278,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
54296
54278
  onClick: () => setShowSplit(!showSplit)
54297
54279
  }
54298
54280
  ) }),
54299
- /* @__PURE__ */ jsx162(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx162(
54281
+ /* @__PURE__ */ jsx161(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx161(
54300
54282
  EuiButtonIcon6,
54301
54283
  {
54302
54284
  size: "s",
@@ -54305,15 +54287,15 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
54305
54287
  }
54306
54288
  ) })
54307
54289
  ] }),
54308
- /* @__PURE__ */ jsx162(EuiSpacer16, {}),
54309
- /* @__PURE__ */ jsx162(
54290
+ /* @__PURE__ */ jsx161(EuiSpacer16, {}),
54291
+ /* @__PURE__ */ jsx161(
54310
54292
  Diff,
54311
54293
  {
54312
54294
  viewType: showSplit ? "split" : "unified",
54313
54295
  diffType: type,
54314
54296
  hunks: hunks || EMPTY_HUNKS,
54315
54297
  tokens,
54316
- children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx162(Hunk, { hunk }, hunk.content))
54298
+ children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx161(Hunk, { hunk }, hunk.content))
54317
54299
  }
54318
54300
  )
54319
54301
  ] });
@@ -54338,18 +54320,18 @@ var getStyles14 = (theme) => {
54338
54320
  };
54339
54321
 
54340
54322
  // src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
54341
- import { Fragment as Fragment39, jsx as jsx163, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
54323
+ import { Fragment as Fragment39, jsx as jsx162, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
54342
54324
  var WfoTraceback = ({ children }) => {
54343
54325
  const { codeBlockStyle } = useWithOrchestratorTheme(getStyles14);
54344
54326
  const t = useTranslations49("processes.steps");
54345
54327
  return /* @__PURE__ */ jsxs90(Fragment39, { children: [
54346
- /* @__PURE__ */ jsx163(EuiText32, { children: /* @__PURE__ */ jsx163("h3", { children: t("traceback") }) }),
54347
- /* @__PURE__ */ jsx163(EuiCodeBlock, { css: codeBlockStyle, children })
54328
+ /* @__PURE__ */ jsx162(EuiText32, { children: /* @__PURE__ */ jsx162("h3", { children: t("traceback") }) }),
54329
+ /* @__PURE__ */ jsx162(EuiCodeBlock, { css: codeBlockStyle, children })
54348
54330
  ] });
54349
54331
  };
54350
54332
 
54351
54333
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
54352
- import { useState as useState36 } from "react";
54334
+ import { useState as useState35 } from "react";
54353
54335
  import { useTranslations as useTranslations50 } from "next-intl";
54354
54336
  import {
54355
54337
  EuiButton as EuiButton11,
@@ -54381,14 +54363,14 @@ var getStyles15 = (theme) => {
54381
54363
  };
54382
54364
 
54383
54365
  // src/components/WfoTextAnchor/WfoTextAnchor.tsx
54384
- import { jsx as jsx164 } from "@emotion/react/jsx-runtime";
54366
+ import { jsx as jsx163 } from "@emotion/react/jsx-runtime";
54385
54367
  var WfoTextAnchor = ({ text, onClick }) => {
54386
54368
  const { textAnchorStyle } = useWithOrchestratorTheme(getStyles15);
54387
- return /* @__PURE__ */ jsx164(EuiText33, { onClick, css: textAnchorStyle, children: text });
54369
+ return /* @__PURE__ */ jsx163(EuiText33, { onClick, css: textAnchorStyle, children: text });
54388
54370
  };
54389
54371
 
54390
54372
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
54391
- import { jsx as jsx165, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
54373
+ import { jsx as jsx164, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
54392
54374
  var WfoStepListHeader = ({
54393
54375
  showHiddenKeys,
54394
54376
  showRaw,
@@ -54411,14 +54393,14 @@ var WfoStepListHeader = ({
54411
54393
  stepListContentBoldTextStyle,
54412
54394
  stepListOptionsContainerStyle
54413
54395
  } = getStyles13(theme);
54414
- const [isViewOptionOpen, setIsViewOptionOpen] = useState36(false);
54396
+ const [isViewOptionOpen, setIsViewOptionOpen] = useState35(false);
54415
54397
  const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
54416
54398
  const closeViewOption = () => setIsViewOptionOpen(false);
54417
- const viewOptionButton = /* @__PURE__ */ jsx165(
54399
+ const viewOptionButton = /* @__PURE__ */ jsx164(
54418
54400
  EuiButton11,
54419
54401
  {
54420
54402
  onClick: onViewOptionClick,
54421
- iconType: () => /* @__PURE__ */ jsx165(WfoEyeFill, { color: theme.colors.link }),
54403
+ iconType: () => /* @__PURE__ */ jsx164(WfoEyeFill, { color: theme.colors.link }),
54422
54404
  iconSide: "right",
54423
54405
  size: "s",
54424
54406
  children: t("viewOptions")
@@ -54426,8 +54408,8 @@ var WfoStepListHeader = ({
54426
54408
  );
54427
54409
  return /* @__PURE__ */ jsxs91(EuiFlexGroup19, { css: stepListHeaderStyle, children: [
54428
54410
  /* @__PURE__ */ jsxs91(EuiFlexGroup19, { css: stepListContentStyle, children: [
54429
- /* @__PURE__ */ jsx165(EuiText34, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
54430
- !showRaw && /* @__PURE__ */ jsx165(
54411
+ /* @__PURE__ */ jsx164(EuiText34, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
54412
+ !showRaw && /* @__PURE__ */ jsx164(
54431
54413
  WfoTextAnchor,
54432
54414
  {
54433
54415
  text: allDetailToggleText,
@@ -54443,7 +54425,7 @@ var WfoStepListHeader = ({
54443
54425
  css: stepListOptionsContainerStyle,
54444
54426
  gutterSize: "s",
54445
54427
  children: [
54446
- showTracebackButton && /* @__PURE__ */ jsx165(
54428
+ showTracebackButton && /* @__PURE__ */ jsx164(
54447
54429
  EuiButton11,
54448
54430
  {
54449
54431
  onClick: () => onShowTraceback(!showTraceback),
@@ -54451,25 +54433,25 @@ var WfoStepListHeader = ({
54451
54433
  children: showTraceback ? t("hideTraceback") : t("showTraceback")
54452
54434
  }
54453
54435
  ),
54454
- /* @__PURE__ */ jsx165(
54436
+ /* @__PURE__ */ jsx164(
54455
54437
  EuiButton11,
54456
54438
  {
54457
54439
  onClick: () => onChangeShowDelta(!showDelta),
54458
54440
  iconSide: "right",
54459
54441
  size: "s",
54460
- iconType: () => /* @__PURE__ */ jsx165(WfoCode, { color: theme.colors.link }),
54442
+ iconType: () => /* @__PURE__ */ jsx164(WfoCode, { color: theme.colors.link }),
54461
54443
  children: showDelta ? t("hideDelta") : t("showDelta")
54462
54444
  }
54463
54445
  ),
54464
- /* @__PURE__ */ jsx165(
54446
+ /* @__PURE__ */ jsx164(
54465
54447
  EuiPopover5,
54466
54448
  {
54467
54449
  button: viewOptionButton,
54468
54450
  isOpen: isViewOptionOpen,
54469
54451
  closePopover: closeViewOption,
54470
54452
  display: "block",
54471
- children: /* @__PURE__ */ jsx165("div", { children: /* @__PURE__ */ jsxs91(EuiForm2, { component: "form", children: [
54472
- /* @__PURE__ */ jsx165(EuiFormRow20, { children: /* @__PURE__ */ jsx165(
54453
+ children: /* @__PURE__ */ jsx164("div", { children: /* @__PURE__ */ jsxs91(EuiForm2, { component: "form", children: [
54454
+ /* @__PURE__ */ jsx164(EuiFormRow20, { children: /* @__PURE__ */ jsx164(
54473
54455
  EuiSwitch3,
54474
54456
  {
54475
54457
  label: "Hidden keys",
@@ -54482,7 +54464,7 @@ var WfoStepListHeader = ({
54482
54464
  }
54483
54465
  }
54484
54466
  ) }),
54485
- /* @__PURE__ */ jsx165(EuiFormRow20, { children: /* @__PURE__ */ jsx165(
54467
+ /* @__PURE__ */ jsx164(EuiFormRow20, { children: /* @__PURE__ */ jsx164(
54486
54468
  EuiSwitch3,
54487
54469
  {
54488
54470
  label: "Raw JSON data",
@@ -54503,10 +54485,10 @@ var WfoStepListHeader = ({
54503
54485
  };
54504
54486
 
54505
54487
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
54506
- import { Fragment as Fragment40, jsx as jsx166, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
54488
+ import { Fragment as Fragment40, jsx as jsx165, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
54507
54489
  var WfoProcessRawData = ({ processId }) => {
54508
54490
  const { data, isFetching } = useRawProcessDetails(processId);
54509
- return isFetching ? /* @__PURE__ */ jsx166(WfoLoading, {}) : /* @__PURE__ */ jsx166(WfoJsonCodeBlock, { data: data || {} });
54491
+ return isFetching ? /* @__PURE__ */ jsx165(WfoLoading, {}) : /* @__PURE__ */ jsx165(WfoJsonCodeBlock, { data: data || {} });
54510
54492
  };
54511
54493
  var WfoProcessSubscriptionDelta = ({
54512
54494
  processId
@@ -54516,7 +54498,7 @@ var WfoProcessSubscriptionDelta = ({
54516
54498
  const subscriptionKey = (_c = (_b = (_a = data == null ? void 0 : data.current_state) == null ? void 0 : _a.subscription) == null ? void 0 : _b.subscription_id) != null ? _c : "";
54517
54499
  const newText = (_e = (_d = data == null ? void 0 : data.current_state) == null ? void 0 : _d.subscription) != null ? _e : null;
54518
54500
  const oldText = ((_f = data == null ? void 0 : data.current_state) == null ? void 0 : _f.__old_subscriptions__) && subscriptionKey in ((_g = data == null ? void 0 : data.current_state) == null ? void 0 : _g.__old_subscriptions__) ? (_h = data == null ? void 0 : data.current_state) == null ? void 0 : _h.__old_subscriptions__[subscriptionKey] : null;
54519
- return isFetching ? /* @__PURE__ */ jsx166(WfoLoading, {}) : /* @__PURE__ */ jsx166(
54501
+ return isFetching ? /* @__PURE__ */ jsx165(WfoLoading, {}) : /* @__PURE__ */ jsx165(
54520
54502
  WfoDiff_default,
54521
54503
  {
54522
54504
  oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
@@ -54525,7 +54507,7 @@ var WfoProcessSubscriptionDelta = ({
54525
54507
  }
54526
54508
  );
54527
54509
  };
54528
- var WfoWorkflowStepList = React51.forwardRef(
54510
+ var WfoWorkflowStepList = React50.forwardRef(
54529
54511
  ({
54530
54512
  steps = [],
54531
54513
  traceBack,
@@ -54534,16 +54516,16 @@ var WfoWorkflowStepList = React51.forwardRef(
54534
54516
  isTask,
54535
54517
  userInputForm
54536
54518
  }, reference) => {
54537
- const [showHiddenKeys, setShowHiddenKeys] = useState37(false);
54538
- const [showRaw, setShowRaw] = useState37(false);
54539
- const [showDelta, setShowDelta] = useState37(false);
54540
- const [showTraceback, setShowTraceback] = useState37(false);
54519
+ const [showHiddenKeys, setShowHiddenKeys] = useState36(false);
54520
+ const [showRaw, setShowRaw] = useState36(false);
54521
+ const [showDelta, setShowDelta] = useState36(false);
54522
+ const [showTraceback, setShowTraceback] = useState36(false);
54541
54523
  const t = useTranslations51("processes.steps");
54542
54524
  const initialStepListItems = steps.map((step) => ({
54543
54525
  step,
54544
54526
  isExpanded: false
54545
54527
  }));
54546
- const [stepListItems, setStepListItems] = useState37(initialStepListItems);
54528
+ const [stepListItems, setStepListItems] = useState36(initialStepListItems);
54547
54529
  const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
54548
54530
  var _a;
54549
54531
  const reversedSteps = [...updatedSteps].reverse();
@@ -54561,7 +54543,7 @@ var WfoWorkflowStepList = React51.forwardRef(
54561
54543
  };
54562
54544
  });
54563
54545
  };
54564
- useEffect23(() => {
54546
+ useEffect22(() => {
54565
54547
  setStepListItems(
54566
54548
  (previousStepListItems) => persistStepListItemState(
54567
54549
  previousStepListItems,
@@ -54592,7 +54574,7 @@ var WfoWorkflowStepList = React51.forwardRef(
54592
54574
  isExpanded: true
54593
54575
  }));
54594
54576
  return /* @__PURE__ */ jsxs92(Fragment40, { children: [
54595
- /* @__PURE__ */ jsx166(
54577
+ /* @__PURE__ */ jsx165(
54596
54578
  WfoStepListHeader,
54597
54579
  {
54598
54580
  showHiddenKeys,
@@ -54609,10 +54591,10 @@ var WfoWorkflowStepList = React51.forwardRef(
54609
54591
  isTask
54610
54592
  }
54611
54593
  ),
54612
- showTraceback && /* @__PURE__ */ jsx166(WfoTraceback, { children: traceBack }),
54613
- showRaw && /* @__PURE__ */ jsx166(WfoProcessRawData, { processId }),
54614
- showDelta && /* @__PURE__ */ jsx166(WfoProcessSubscriptionDelta, { processId }),
54615
- !showRaw && !showDelta && /* @__PURE__ */ jsx166(
54594
+ showTraceback && /* @__PURE__ */ jsx165(WfoTraceback, { children: traceBack }),
54595
+ showRaw && /* @__PURE__ */ jsx165(WfoProcessRawData, { processId }),
54596
+ showDelta && /* @__PURE__ */ jsx165(WfoProcessSubscriptionDelta, { processId }),
54597
+ !showRaw && !showDelta && /* @__PURE__ */ jsx165(
54616
54598
  WfoStepList,
54617
54599
  {
54618
54600
  ref: reference,
@@ -54633,7 +54615,7 @@ WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
54633
54615
  // src/pages/processes/WfoProcessDetail.tsx
54634
54616
  import { useContext as useContext13 } from "react";
54635
54617
  import { useTranslations as useTranslations52 } from "next-intl";
54636
- import { useRouter as useRouter10 } from "next/router";
54618
+ import { useRouter as useRouter9 } from "next/router";
54637
54619
  import {
54638
54620
  EuiButton as EuiButton12,
54639
54621
  EuiFlexGroup as EuiFlexGroup20,
@@ -54719,7 +54701,7 @@ var getIndexOfCurrentStep = (timelineItems) => {
54719
54701
  };
54720
54702
 
54721
54703
  // src/pages/processes/WfoProcessDetail.tsx
54722
- import { Fragment as Fragment41, jsx as jsx167, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
54704
+ import { Fragment as Fragment41, jsx as jsx166, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
54723
54705
  var ProcessHeaderValue = ({
54724
54706
  translationKey,
54725
54707
  value = ""
@@ -54737,8 +54719,8 @@ var ProcessHeaderValue = ({
54737
54719
  overflow: "hidden"
54738
54720
  },
54739
54721
  children: [
54740
- /* @__PURE__ */ jsx167(EuiText35, { size: "xs", children: t(translationKey) }),
54741
- /* @__PURE__ */ jsx167(
54722
+ /* @__PURE__ */ jsx166(EuiText35, { size: "xs", children: t(translationKey) }),
54723
+ /* @__PURE__ */ jsx166(
54742
54724
  EuiText35,
54743
54725
  {
54744
54726
  css: {
@@ -54770,7 +54752,7 @@ var WfoProcessDetail = ({
54770
54752
  const { theme } = useOrchestratorTheme();
54771
54753
  const { showConfirmDialog } = useContext13(ConfirmationDialogContext);
54772
54754
  const { deleteProcess, abortProcess, retryProcess } = useMutateProcess();
54773
- const router = useRouter10();
54755
+ const router = useRouter9();
54774
54756
  const { isEngineRunningNow } = useCheckEngineStatus();
54775
54757
  const { isAllowed } = usePolicy();
54776
54758
  const listIncludesStatus = (processStatusesForDisabledState, status) => status ? processStatusesForDisabledState.map((stat) => stat.toUpperCase()).includes(status) : false;
@@ -54828,9 +54810,9 @@ var WfoProcessDetail = ({
54828
54810
  return /* @__PURE__ */ jsxs93(Fragment41, { children: [
54829
54811
  /* @__PURE__ */ jsxs93(EuiFlexGroup20, { children: [
54830
54812
  /* @__PURE__ */ jsxs93(EuiFlexItem27, { children: [
54831
- /* @__PURE__ */ jsx167(EuiPageHeader3, { pageTitle }),
54832
- /* @__PURE__ */ jsx167(EuiSpacer17, {}),
54833
- /* @__PURE__ */ jsx167(EuiText35, { size: "s", children: productNames })
54813
+ /* @__PURE__ */ jsx166(EuiPageHeader3, { pageTitle }),
54814
+ /* @__PURE__ */ jsx166(EuiSpacer17, {}),
54815
+ /* @__PURE__ */ jsx166(EuiText35, { size: "s", children: productNames })
54834
54816
  ] }),
54835
54817
  /* @__PURE__ */ jsxs93(
54836
54818
  EuiFlexGroup20,
@@ -54840,15 +54822,15 @@ var WfoProcessDetail = ({
54840
54822
  css: { flexGrow: 0 },
54841
54823
  gutterSize: "s",
54842
54824
  children: [
54843
- /* @__PURE__ */ jsx167(
54825
+ /* @__PURE__ */ jsx166(
54844
54826
  WfoIsAllowedToRender,
54845
54827
  {
54846
54828
  resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */,
54847
- children: /* @__PURE__ */ jsx167(
54829
+ children: /* @__PURE__ */ jsx166(
54848
54830
  EuiButton12,
54849
54831
  {
54850
54832
  onClick: handleActionButtonClick(retryAction),
54851
- iconType: () => /* @__PURE__ */ jsx167(
54833
+ iconType: () => /* @__PURE__ */ jsx166(
54852
54834
  WfoRefresh,
54853
54835
  {
54854
54836
  color: retryButtonIsDisabled ? theme.colors.subduedText : theme.colors.link
@@ -54860,15 +54842,15 @@ var WfoProcessDetail = ({
54860
54842
  )
54861
54843
  }
54862
54844
  ),
54863
- /* @__PURE__ */ jsx167(
54845
+ /* @__PURE__ */ jsx166(
54864
54846
  WfoIsAllowedToRender,
54865
54847
  {
54866
54848
  resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */,
54867
- children: /* @__PURE__ */ jsx167(
54849
+ children: /* @__PURE__ */ jsx166(
54868
54850
  EuiButton12,
54869
54851
  {
54870
54852
  onClick: handleActionButtonClick(abortAction),
54871
- iconType: () => /* @__PURE__ */ jsx167(
54853
+ iconType: () => /* @__PURE__ */ jsx166(
54872
54854
  WfoXCircleFill,
54873
54855
  {
54874
54856
  color: abortButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
@@ -54881,11 +54863,11 @@ var WfoProcessDetail = ({
54881
54863
  )
54882
54864
  }
54883
54865
  ),
54884
- processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */ jsx167(
54866
+ processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */ jsx166(
54885
54867
  EuiButton12,
54886
54868
  {
54887
54869
  onClick: handleActionButtonClick(deleteAction),
54888
- iconType: () => /* @__PURE__ */ jsx167(
54870
+ iconType: () => /* @__PURE__ */ jsx166(
54889
54871
  WfoXCircleFill,
54890
54872
  {
54891
54873
  color: deleteButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
@@ -54900,44 +54882,44 @@ var WfoProcessDetail = ({
54900
54882
  }
54901
54883
  )
54902
54884
  ] }),
54903
- /* @__PURE__ */ jsx167(EuiSpacer17, {}),
54904
- /* @__PURE__ */ jsx167(
54885
+ /* @__PURE__ */ jsx166(EuiSpacer17, {}),
54886
+ /* @__PURE__ */ jsx166(
54905
54887
  EuiPanel5,
54906
54888
  {
54907
54889
  hasShadow: false,
54908
54890
  hasBorder: false,
54909
54891
  color: "subdued",
54910
54892
  element: "div",
54911
- children: isLoading && !hasError && /* @__PURE__ */ jsx167(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs93(EuiFlexGroup20, { direction: "row", gutterSize: "m", children: [
54912
- /* @__PURE__ */ jsx167(
54893
+ children: isLoading && !hasError && /* @__PURE__ */ jsx166(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs93(EuiFlexGroup20, { direction: "row", gutterSize: "m", children: [
54894
+ /* @__PURE__ */ jsx166(
54913
54895
  ProcessHeaderValue,
54914
54896
  {
54915
54897
  translationKey: "status",
54916
54898
  value: processDetail.lastStatus
54917
54899
  }
54918
54900
  ),
54919
- /* @__PURE__ */ jsx167(
54901
+ /* @__PURE__ */ jsx166(
54920
54902
  ProcessHeaderValue,
54921
54903
  {
54922
54904
  translationKey: "lastStep",
54923
54905
  value: processDetail == null ? void 0 : processDetail.lastStep
54924
54906
  }
54925
54907
  ),
54926
- processDetail.customer && /* @__PURE__ */ jsx167(
54908
+ processDetail.customer && /* @__PURE__ */ jsx166(
54927
54909
  ProcessHeaderValue,
54928
54910
  {
54929
54911
  translationKey: "customer",
54930
54912
  value: (_a = processDetail.customer) == null ? void 0 : _a.fullname
54931
54913
  }
54932
54914
  ),
54933
- /* @__PURE__ */ jsx167(
54915
+ /* @__PURE__ */ jsx166(
54934
54916
  ProcessHeaderValue,
54935
54917
  {
54936
54918
  translationKey: "startedBy",
54937
54919
  value: processDetail == null ? void 0 : processDetail.createdBy
54938
54920
  }
54939
54921
  ),
54940
- /* @__PURE__ */ jsx167(
54922
+ /* @__PURE__ */ jsx166(
54941
54923
  ProcessHeaderValue,
54942
54924
  {
54943
54925
  translationKey: "startedOn",
@@ -54946,7 +54928,7 @@ var WfoProcessDetail = ({
54946
54928
  )(processDetail == null ? void 0 : processDetail.startedAt) : ""
54947
54929
  }
54948
54930
  ),
54949
- /* @__PURE__ */ jsx167(
54931
+ /* @__PURE__ */ jsx166(
54950
54932
  ProcessHeaderValue,
54951
54933
  {
54952
54934
  translationKey: "lastUpdate",
@@ -54967,8 +54949,8 @@ var WfoProcessDetail = ({
54967
54949
  overflow: "hidden"
54968
54950
  },
54969
54951
  children: [
54970
- /* @__PURE__ */ jsx167(EuiText35, { size: "xs", children: t("relatedSubscriptions") }),
54971
- /* @__PURE__ */ jsx167(
54952
+ /* @__PURE__ */ jsx166(EuiText35, { size: "xs", children: t("relatedSubscriptions") }),
54953
+ /* @__PURE__ */ jsx166(
54972
54954
  EuiText35,
54973
54955
  {
54974
54956
  css: {
@@ -54978,7 +54960,7 @@ var WfoProcessDetail = ({
54978
54960
  textOverflow: "ellipsis",
54979
54961
  fontSize: theme.size.m
54980
54962
  },
54981
- children: /* @__PURE__ */ jsx167(
54963
+ children: /* @__PURE__ */ jsx166(
54982
54964
  WfoProcessListSubscriptionsCell,
54983
54965
  {
54984
54966
  subscriptions: process && ((_b = processDetail == null ? void 0 : processDetail.subscriptions) == null ? void 0 : _b.page.map(
@@ -54998,8 +54980,8 @@ var WfoProcessDetail = ({
54998
54980
  ] })
54999
54981
  }
55000
54982
  ),
55001
- /* @__PURE__ */ jsx167(EuiSpacer17, { size: "s" }),
55002
- /* @__PURE__ */ jsx167(
54983
+ /* @__PURE__ */ jsx166(EuiSpacer17, { size: "s" }),
54984
+ /* @__PURE__ */ jsx166(
55003
54985
  WfoTimeline,
55004
54986
  {
55005
54987
  timelineItems,
@@ -55012,7 +54994,7 @@ var WfoProcessDetail = ({
55012
54994
  };
55013
54995
 
55014
54996
  // src/pages/processes/WfoProcessDetailPage.tsx
55015
- import { jsx as jsx168 } from "@emotion/react/jsx-runtime";
54997
+ import { jsx as jsx167 } from "@emotion/react/jsx-runtime";
55016
54998
  var PROCESS_DETAIL_DEFAULT_REFETCH_INTERVAL = 3e3;
55017
54999
  var WfoProcessDetailPage = ({
55018
55000
  processId,
@@ -55020,8 +55002,8 @@ var WfoProcessDetailPage = ({
55020
55002
  }) => {
55021
55003
  var _a, _b;
55022
55004
  const stepListRef = useRef7(null);
55023
- const [fetchInterval, setFetchInterval] = useState38();
55024
- const [process2, setProcess] = useState38();
55005
+ const [fetchInterval, setFetchInterval] = useState37();
55006
+ const [process2, setProcess] = useState37();
55025
55007
  const { data, isLoading, isError: isError3 } = useGetProcessDetailQuery(
55026
55008
  { processId },
55027
55009
  { pollingInterval: fetchInterval }
@@ -55031,7 +55013,7 @@ var WfoProcessDetailPage = ({
55031
55013
  setFetchInterval(void 0);
55032
55014
  }
55033
55015
  }
55034
- useEffect24(() => {
55016
+ useEffect23(() => {
55035
55017
  const process3 = data == null ? void 0 : data.processes[0];
55036
55018
  const lastStatus = process3 == null ? void 0 : process3.lastStatus.toLocaleLowerCase();
55037
55019
  const isInProgress = !(lastStatus && ProcessDoneStatuses.includes(lastStatus));
@@ -55039,7 +55021,7 @@ var WfoProcessDetailPage = ({
55039
55021
  isInProgress ? processDetailRefetchInterval : void 0
55040
55022
  );
55041
55023
  }, [data, processDetailRefetchInterval]);
55042
- useEffect24(() => {
55024
+ useEffect23(() => {
55043
55025
  const fetchedProcessDetails = data == null ? void 0 : data.processes[0];
55044
55026
  if (!process2) {
55045
55027
  setProcess(fetchedProcessDetails);
@@ -55056,7 +55038,7 @@ var WfoProcessDetailPage = ({
55056
55038
  const isTask = (_b = process2 == null ? void 0 : process2.isTask) != null ? _b : false;
55057
55039
  const groupedSteps = convertStepsToGroupedSteps(steps);
55058
55040
  const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
55059
- return /* @__PURE__ */ jsx168(
55041
+ return /* @__PURE__ */ jsx167(
55060
55042
  WfoProcessDetail,
55061
55043
  {
55062
55044
  pageTitle,
@@ -55070,7 +55052,7 @@ var WfoProcessDetailPage = ({
55070
55052
  },
55071
55053
  isLoading,
55072
55054
  hasError: isError3,
55073
- children: isError3 && /* @__PURE__ */ jsx168(WfoError, {}) || isLoading && /* @__PURE__ */ jsx168(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx168(
55055
+ children: isError3 && /* @__PURE__ */ jsx167(WfoError, {}) || isLoading && /* @__PURE__ */ jsx167(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx167(
55074
55056
  WfoWorkflowStepList,
55075
55057
  {
55076
55058
  ref: stepListRef,
@@ -55083,15 +55065,15 @@ var WfoProcessDetailPage = ({
55083
55065
  startedAt: process2.startedAt,
55084
55066
  isTask
55085
55067
  }
55086
- ) || /* @__PURE__ */ jsx168("h1", { children: "Invalid processId" })
55068
+ ) || /* @__PURE__ */ jsx167("h1", { children: "Invalid processId" })
55087
55069
  }
55088
55070
  );
55089
55071
  };
55090
55072
 
55091
55073
  // src/pages/processes/WfoStartProcessPage.tsx
55092
- import { useCallback as useCallback6, useEffect as useEffect25, useMemo as useMemo5, useState as useState39 } from "react";
55074
+ import { useCallback as useCallback6, useEffect as useEffect24, useMemo as useMemo5, useState as useState38 } from "react";
55093
55075
  import { useTranslations as useTranslations53 } from "next-intl";
55094
- import { useRouter as useRouter11 } from "next/router";
55076
+ import { useRouter as useRouter10 } from "next/router";
55095
55077
  import {
55096
55078
  EuiFlexGroup as EuiFlexGroup21,
55097
55079
  EuiFlexItem as EuiFlexItem28,
@@ -55099,7 +55081,7 @@ import {
55099
55081
  EuiPanel as EuiPanel6,
55100
55082
  EuiText as EuiText36
55101
55083
  } from "@elastic/eui";
55102
- import { jsx as jsx169, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
55084
+ import { jsx as jsx168, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
55103
55085
  var getInitialProcessPayload = ({
55104
55086
  productId,
55105
55087
  subscriptionId
@@ -55122,11 +55104,12 @@ var WfoStartProcessPage = ({
55122
55104
  }) => {
55123
55105
  const apiClient = useAxiosApiClient();
55124
55106
  const t = useTranslations53("processes.steps");
55125
- const router = useRouter11();
55126
- const [hasError, setHasError] = useState39(false);
55107
+ const router = useRouter10();
55108
+ const [hasError, setHasError] = useState38(false);
55127
55109
  const { theme } = useOrchestratorTheme();
55128
- const [form, setForm] = useState39({});
55110
+ const [form, setForm] = useState38({});
55129
55111
  const { productId, subscriptionId } = router.query;
55112
+ const [startProcess] = useStartProcessMutation();
55130
55113
  const startProcessPayload = useMemo5(
55131
55114
  () => getInitialProcessPayload({ productId, subscriptionId }),
55132
55115
  [productId, subscriptionId]
@@ -55145,13 +55128,11 @@ var WfoStartProcessPage = ({
55145
55128
  }
55146
55129
  const submit = useCallback6(
55147
55130
  (processInput) => {
55148
- const startProcessPromise = apiClient.startProcess(
55149
- processName,
55150
- startProcessPayload ? [startProcessPayload, ...processInput] : [...processInput]
55151
- ).then(
55152
- // Resolve handler
55153
- (result) => {
55154
- const process2 = result;
55131
+ const startProcessPromise = startProcess({
55132
+ workflowName: processName,
55133
+ userInputs: startProcessPayload ? [startProcessPayload, ...processInput] : [...processInput]
55134
+ }).unwrap().then(
55135
+ (process2) => {
55155
55136
  if (process2.id) {
55156
55137
  const basePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
55157
55138
  router.push(`${basePath}/${process2.id}`);
@@ -55162,9 +55143,8 @@ var WfoStartProcessPage = ({
55162
55143
  throw e;
55163
55144
  }
55164
55145
  ).catch((error) => {
55165
- var _a, _b;
55166
- if (((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.status) !== 510) {
55167
- if (((_b = error == null ? void 0 : error.response) == null ? void 0 : _b.status) === 400) {
55146
+ if ((error == null ? void 0 : error.status) !== 510 /* FormNotComplete */) {
55147
+ if ((error == null ? void 0 : error.status) === 400 /* BadRequest */) {
55168
55148
  throw error;
55169
55149
  }
55170
55150
  console.error(error);
@@ -55173,18 +55153,18 @@ var WfoStartProcessPage = ({
55173
55153
  throw error;
55174
55154
  }
55175
55155
  });
55176
- return apiClient.catchErrorStatus(
55156
+ return handlePromiseErrorWithCallback(
55177
55157
  startProcessPromise,
55178
- 503,
55158
+ 503 /* ServiceUnavailable */,
55179
55159
  (json) => {
55180
55160
  console.error("engine down!!!", json);
55181
55161
  router.push(PATH_WORKFLOWS);
55182
55162
  }
55183
55163
  );
55184
55164
  },
55185
- [apiClient, processName, startProcessPayload, isTask, router]
55165
+ [startProcess, processName, startProcessPayload, isTask, router]
55186
55166
  );
55187
- useEffect25(() => {
55167
+ useEffect24(() => {
55188
55168
  if (processName) {
55189
55169
  const clientResultCallback = (json) => {
55190
55170
  var _a;
@@ -55193,9 +55173,9 @@ var WfoStartProcessPage = ({
55193
55173
  hasNext: (_a = json.hasNext) != null ? _a : false
55194
55174
  });
55195
55175
  };
55196
- apiClient.catchErrorStatus(
55176
+ handlePromiseErrorWithCallback(
55197
55177
  submit([]),
55198
- 510,
55178
+ 510 /* FormNotComplete */,
55199
55179
  clientResultCallback
55200
55180
  );
55201
55181
  }
@@ -55206,7 +55186,7 @@ var WfoStartProcessPage = ({
55206
55186
  workflowName: processName,
55207
55187
  createdBy: "-"
55208
55188
  };
55209
- return /* @__PURE__ */ jsx169(
55189
+ return /* @__PURE__ */ jsx168(
55210
55190
  WfoProcessDetail,
55211
55191
  {
55212
55192
  pageTitle: processName,
@@ -55217,27 +55197,27 @@ var WfoStartProcessPage = ({
55217
55197
  isLoading,
55218
55198
  children: /* @__PURE__ */ jsxs94(EuiPanel6, { css: { marginTop: theme.base * 3 }, children: [
55219
55199
  /* @__PURE__ */ jsxs94(EuiFlexGroup21, { css: getStepHeaderStyle(false), children: [
55220
- /* @__PURE__ */ jsx169(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
55200
+ /* @__PURE__ */ jsx168(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
55221
55201
  /* @__PURE__ */ jsxs94(EuiFlexItem28, { grow: 0, children: [
55222
- /* @__PURE__ */ jsx169(EuiText36, { css: stepListContentBoldTextStyle, children: t("userInput") }),
55223
- /* @__PURE__ */ jsx169(EuiText36, { children: t(
55202
+ /* @__PURE__ */ jsx168(EuiText36, { css: stepListContentBoldTextStyle, children: t("userInput") }),
55203
+ /* @__PURE__ */ jsx168(EuiText36, { children: t(
55224
55204
  isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
55225
55205
  ) })
55226
55206
  ] })
55227
55207
  ] }),
55228
- /* @__PURE__ */ jsx169(EuiHorizontalRule6, {}),
55229
- hasError && /* @__PURE__ */ jsx169(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx169(
55230
- UserInputFormWizardDeprecated_default,
55208
+ /* @__PURE__ */ jsx168(EuiHorizontalRule6, {}),
55209
+ hasError && /* @__PURE__ */ jsx168(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx168(
55210
+ UserInputFormWizard,
55231
55211
  {
55232
55212
  stepUserInput,
55233
- validSubmit: submit,
55213
+ stepSubmit: submit,
55234
55214
  cancel: () => router.push(
55235
55215
  isTask ? PATH_TASKS : PATH_WORKFLOWS
55236
55216
  ),
55237
55217
  hasNext,
55238
55218
  isTask
55239
55219
  }
55240
- ) || /* @__PURE__ */ jsx169(WfoLoading, {})
55220
+ ) || /* @__PURE__ */ jsx168(WfoLoading, {})
55241
55221
  ] })
55242
55222
  }
55243
55223
  );
@@ -55304,7 +55284,7 @@ var getWfoSummaryCardHeaderStyles = (theme) => {
55304
55284
  };
55305
55285
 
55306
55286
  // src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
55307
- import { jsx as jsx170, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
55287
+ import { jsx as jsx169, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
55308
55288
  var WfoSummaryCardHeader = ({
55309
55289
  text,
55310
55290
  value,
@@ -55313,8 +55293,8 @@ var WfoSummaryCardHeader = ({
55313
55293
  }) => {
55314
55294
  const { theme } = useOrchestratorTheme();
55315
55295
  const { avatarStyle, totalSectionStyle, valueStyle } = getWfoSummaryCardHeaderStyles(theme);
55316
- return /* @__PURE__ */ jsx170(EuiFlexItem29, { grow: 0, children: /* @__PURE__ */ jsx170(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs95(EuiFlexGroup22, { children: [
55317
- /* @__PURE__ */ jsx170(
55296
+ return /* @__PURE__ */ jsx169(EuiFlexItem29, { grow: 0, children: /* @__PURE__ */ jsx169(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs95(EuiFlexGroup22, { children: [
55297
+ /* @__PURE__ */ jsx169(
55318
55298
  EuiAvatar2,
55319
55299
  {
55320
55300
  iconSize: "l",
@@ -55328,14 +55308,14 @@ var WfoSummaryCardHeader = ({
55328
55308
  }
55329
55309
  ),
55330
55310
  /* @__PURE__ */ jsxs95("div", { css: totalSectionStyle, children: [
55331
- /* @__PURE__ */ jsx170(EuiText37, { color: "subdued", children: text }),
55332
- /* @__PURE__ */ jsx170(EuiText37, { css: valueStyle, children: value })
55311
+ /* @__PURE__ */ jsx169(EuiText37, { color: "subdued", children: text }),
55312
+ /* @__PURE__ */ jsx169(EuiText37, { css: valueStyle, children: value })
55333
55313
  ] })
55334
55314
  ] }) }) });
55335
55315
  };
55336
55316
 
55337
55317
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
55338
- import { useRouter as useRouter12 } from "next/router";
55318
+ import { useRouter as useRouter11 } from "next/router";
55339
55319
  import {
55340
55320
  EuiButton as EuiButton13,
55341
55321
  EuiFlexItem as EuiFlexItem31,
@@ -55351,15 +55331,15 @@ import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem30, EuiIcon a
55351
55331
 
55352
55332
  // src/components/WfoOptionalLink/WfoOptionalLink.tsx
55353
55333
  import Link6 from "next/link";
55354
- import { jsx as jsx171 } from "@emotion/react/jsx-runtime";
55334
+ import { jsx as jsx170 } from "@emotion/react/jsx-runtime";
55355
55335
  var WfoOptionalLink = ({
55356
55336
  children,
55357
55337
  href
55358
55338
  }) => {
55359
55339
  if (!href) {
55360
- return /* @__PURE__ */ jsx171("span", { children });
55340
+ return /* @__PURE__ */ jsx170("span", { children });
55361
55341
  }
55362
- return /* @__PURE__ */ jsx171(Link6, { href, children });
55342
+ return /* @__PURE__ */ jsx170(Link6, { href, children });
55363
55343
  };
55364
55344
 
55365
55345
  // src/components/WfoSummary/WfoSummaryCardList/styles.ts
@@ -55408,7 +55388,7 @@ var getWfoSummaryCardListStyles = (theme) => {
55408
55388
  };
55409
55389
 
55410
55390
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
55411
- import { jsx as jsx172, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
55391
+ import { jsx as jsx171, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
55412
55392
  var WfoSummaryCardListItem = ({
55413
55393
  title,
55414
55394
  value,
@@ -55421,9 +55401,9 @@ var WfoSummaryCardListItem = ({
55421
55401
  listItemSubtitleStyle,
55422
55402
  listItemHighlightIconStyle
55423
55403
  } = getWfoSummaryCardListStyles(theme);
55424
- return /* @__PURE__ */ jsx172(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs96(EuiFlexGroup23, { css: listItemContainerStyle, gutterSize: "none", children: [
55404
+ return /* @__PURE__ */ jsx171(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs96(EuiFlexGroup23, { css: listItemContainerStyle, gutterSize: "none", children: [
55425
55405
  /* @__PURE__ */ jsxs96(EuiFlexItem30, { children: [
55426
- /* @__PURE__ */ jsx172(
55406
+ /* @__PURE__ */ jsx171(
55427
55407
  EuiTextColor,
55428
55408
  {
55429
55409
  color: url ? theme.colors.link : theme.colors.title,
@@ -55431,32 +55411,32 @@ var WfoSummaryCardListItem = ({
55431
55411
  children: title
55432
55412
  }
55433
55413
  ),
55434
- /* @__PURE__ */ jsx172(EuiTextColor, { css: listItemSubtitleStyle, children: value })
55414
+ /* @__PURE__ */ jsx171(EuiTextColor, { css: listItemSubtitleStyle, children: value })
55435
55415
  ] }),
55436
- /* @__PURE__ */ jsx172(
55416
+ /* @__PURE__ */ jsx171(
55437
55417
  EuiFlexItem30,
55438
55418
  {
55439
55419
  className: url ? "highlight-icon" : void 0,
55440
55420
  grow: false,
55441
55421
  css: listItemHighlightIconStyle,
55442
- children: /* @__PURE__ */ jsx172(EuiIcon5, { type: "sortRight", color: "primary" })
55422
+ children: /* @__PURE__ */ jsx171(EuiIcon5, { type: "sortRight", color: "primary" })
55443
55423
  }
55444
55424
  )
55445
55425
  ] }) });
55446
55426
  };
55447
55427
 
55448
55428
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
55449
- import { jsx as jsx173, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
55429
+ import { jsx as jsx172, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
55450
55430
  var WfoSummaryCardList = ({
55451
55431
  title,
55452
55432
  items,
55453
55433
  button,
55454
55434
  isLoading = false
55455
55435
  }) => {
55456
- const router = useRouter12();
55436
+ const router = useRouter11();
55457
55437
  const euiScrollBarStyle = useEuiScrollBar2();
55458
55438
  const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
55459
- return /* @__PURE__ */ jsx173(EuiFlexItem31, { children: /* @__PURE__ */ jsxs97(
55439
+ return /* @__PURE__ */ jsx172(EuiFlexItem31, { children: /* @__PURE__ */ jsxs97(
55460
55440
  EuiPanel8,
55461
55441
  {
55462
55442
  css: listContainerStyle,
@@ -55465,10 +55445,10 @@ var WfoSummaryCardList = ({
55465
55445
  paddingSize: "l",
55466
55446
  children: [
55467
55447
  /* @__PURE__ */ jsxs97("div", { children: [
55468
- /* @__PURE__ */ jsx173("p", { css: listHeaderStyle, children: title }),
55469
- /* @__PURE__ */ jsx173(EuiSpacer18, { size: "m" }),
55470
- /* @__PURE__ */ jsx173(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx173("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs97("div", { children: [
55471
- /* @__PURE__ */ jsx173(
55448
+ /* @__PURE__ */ jsx172("p", { css: listHeaderStyle, children: title }),
55449
+ /* @__PURE__ */ jsx172(EuiSpacer18, { size: "m" }),
55450
+ /* @__PURE__ */ jsx172(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx172("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs97("div", { children: [
55451
+ /* @__PURE__ */ jsx172(
55472
55452
  WfoSummaryCardListItem,
55473
55453
  {
55474
55454
  title: item.title,
@@ -55476,11 +55456,11 @@ var WfoSummaryCardList = ({
55476
55456
  url: item.url
55477
55457
  }
55478
55458
  ),
55479
- index === items.length - 1 ? null : /* @__PURE__ */ jsx173(EuiHorizontalRule7, { margin: "none" })
55459
+ index === items.length - 1 ? null : /* @__PURE__ */ jsx172(EuiHorizontalRule7, { margin: "none" })
55480
55460
  ] }, index)) }) })
55481
55461
  ] }),
55482
- /* @__PURE__ */ jsx173(EuiSpacer18, { size: "m" }),
55483
- button && /* @__PURE__ */ jsx173(
55462
+ /* @__PURE__ */ jsx172(EuiSpacer18, { size: "m" }),
55463
+ button && /* @__PURE__ */ jsx172(
55484
55464
  EuiButton13,
55485
55465
  {
55486
55466
  fullWidth: true,
@@ -55506,7 +55486,7 @@ var getWfoSummaryCardsStyles = (theme) => {
55506
55486
  };
55507
55487
 
55508
55488
  // src/components/WfoSummary/WfoSummaryCards.tsx
55509
- import { jsx as jsx174, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
55489
+ import { jsx as jsx173, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
55510
55490
  var WfoSummaryCards = ({ summaryCards }) => {
55511
55491
  const { theme } = useOrchestratorTheme();
55512
55492
  const { cardContainerStyle } = getWfoSummaryCardsStyles(theme);
@@ -55531,7 +55511,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
55531
55511
  };
55532
55512
  }
55533
55513
  };
55534
- return /* @__PURE__ */ jsx174(
55514
+ return /* @__PURE__ */ jsx173(
55535
55515
  EuiFlexGrid2,
55536
55516
  {
55537
55517
  responsive: false,
@@ -55547,7 +55527,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
55547
55527
  button,
55548
55528
  isLoading
55549
55529
  }, index) => /* @__PURE__ */ jsxs98(EuiFlexItem32, { css: cardContainerStyle, children: [
55550
- /* @__PURE__ */ jsx174(
55530
+ /* @__PURE__ */ jsx173(
55551
55531
  WfoSummaryCardHeader,
55552
55532
  __spreadValues({
55553
55533
  text: headerTitle,
@@ -55556,8 +55536,8 @@ var WfoSummaryCards = ({ summaryCards }) => {
55556
55536
  headerStatus
55557
55537
  ))
55558
55538
  ),
55559
- /* @__PURE__ */ jsx174(EuiSpacer19, { size: "m" }),
55560
- /* @__PURE__ */ jsx174(
55539
+ /* @__PURE__ */ jsx173(EuiSpacer19, { size: "m" }),
55540
+ /* @__PURE__ */ jsx173(
55561
55541
  WfoSummaryCardList,
55562
55542
  {
55563
55543
  title: listTitle,
@@ -55729,7 +55709,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
55729
55709
  };
55730
55710
 
55731
55711
  // src/pages/startPage/WfoStartPage.tsx
55732
- import { jsx as jsx175, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
55712
+ import { jsx as jsx174, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
55733
55713
  var WfoStartPage = () => {
55734
55714
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
55735
55715
  const t = useTranslations54("startPage");
@@ -55862,8 +55842,8 @@ var WfoStartPage = () => {
55862
55842
  justifyContent: "space-between"
55863
55843
  },
55864
55844
  children: [
55865
- /* @__PURE__ */ jsx175("div", { children: product.name }),
55866
- /* @__PURE__ */ jsx175("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
55845
+ /* @__PURE__ */ jsx174("div", { children: product.name }),
55846
+ /* @__PURE__ */ jsx174("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
55867
55847
  ]
55868
55848
  }
55869
55849
  )
@@ -55882,20 +55862,20 @@ var WfoStartPage = () => {
55882
55862
  productsSummaryCard
55883
55863
  ];
55884
55864
  const summaryCards = (overrideSummaryCards == null ? void 0 : overrideSummaryCards(allowedSummaryCards)) || allowedSummaryCards;
55885
- return /* @__PURE__ */ jsx175(EuiFlexItem33, { children: /* @__PURE__ */ jsx175(WfoSummaryCards, { summaryCards }) });
55865
+ return /* @__PURE__ */ jsx174(EuiFlexItem33, { children: /* @__PURE__ */ jsx174(WfoSummaryCards, { summaryCards }) });
55886
55866
  };
55887
55867
 
55888
55868
  // src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
55889
- import { useRouter as useRouter13 } from "next/router";
55890
- import { Fragment as Fragment42, jsx as jsx176 } from "@emotion/react/jsx-runtime";
55869
+ import { useRouter as useRouter12 } from "next/router";
55870
+ import { Fragment as Fragment42, jsx as jsx175 } from "@emotion/react/jsx-runtime";
55891
55871
  var WfoSubscriptionDetailPage = () => {
55892
- const router = useRouter13();
55872
+ const router = useRouter12();
55893
55873
  const { subscriptionId } = router.query;
55894
- return subscriptionId && /* @__PURE__ */ jsx176(TreeProvider, { children: /* @__PURE__ */ jsx176(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx176(Fragment42, {});
55874
+ return subscriptionId && /* @__PURE__ */ jsx175(TreeProvider, { children: /* @__PURE__ */ jsx175(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx175(Fragment42, {});
55895
55875
  };
55896
55876
 
55897
55877
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
55898
- import { useEffect as useEffect26, useState as useState40 } from "react";
55878
+ import { useEffect as useEffect25, useState as useState39 } from "react";
55899
55879
  import { useTranslations as useTranslations56 } from "next-intl";
55900
55880
  import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
55901
55881
  import { EuiPageHeader as EuiPageHeader4, EuiSpacer as EuiSpacer20 } from "@elastic/eui";
@@ -55981,7 +55961,7 @@ var subscriptionListTabs = [
55981
55961
  // src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
55982
55962
  import { useTranslations as useTranslations55 } from "next-intl";
55983
55963
  import Link7 from "next/link";
55984
- import { useRouter as useRouter14 } from "next/router";
55964
+ import { useRouter as useRouter13 } from "next/router";
55985
55965
 
55986
55966
  // src/rtk/endpoints/subscriptionList.ts
55987
55967
  var subscriptionListQuery = `query SubscriptionsList(
@@ -56051,7 +56031,7 @@ var subscriptionListApi = orchestratorApi.injectEndpoints({
56051
56031
  var { useGetSubscriptionListQuery, useLazyGetSubscriptionListQuery } = subscriptionListApi;
56052
56032
 
56053
56033
  // src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
56054
- import { jsx as jsx177 } from "@emotion/react/jsx-runtime";
56034
+ import { jsx as jsx176 } from "@emotion/react/jsx-runtime";
56055
56035
  var WfoSubscriptionsList = ({
56056
56036
  alwaysOnFilters,
56057
56037
  dataDisplayParams,
@@ -56059,7 +56039,7 @@ var WfoSubscriptionsList = ({
56059
56039
  hiddenColumns
56060
56040
  }) => {
56061
56041
  var _a, _b, _c;
56062
- const router = useRouter14();
56042
+ const router = useRouter13();
56063
56043
  const t = useTranslations55("subscriptions.index");
56064
56044
  const tError = useTranslations55("errors");
56065
56045
  const { showToastMessage } = useShowToastMessage();
@@ -56068,26 +56048,26 @@ var WfoSubscriptionsList = ({
56068
56048
  field: "subscriptionId",
56069
56049
  name: t("id"),
56070
56050
  width: "100",
56071
- render: (value) => /* @__PURE__ */ jsx177(WfoFirstPartUUID, { UUID: value }),
56051
+ render: (value) => /* @__PURE__ */ jsx176(WfoFirstPartUUID, { UUID: value }),
56072
56052
  renderDetails: (value) => value
56073
56053
  },
56074
56054
  description: {
56075
56055
  field: "description",
56076
56056
  name: t("description"),
56077
56057
  width: "400",
56078
- render: (value, record) => /* @__PURE__ */ jsx177(Link7, { href: `/subscriptions/${record.subscriptionId}`, children: value })
56058
+ render: (value, record) => /* @__PURE__ */ jsx176(Link7, { href: `/subscriptions/${record.subscriptionId}`, children: value })
56079
56059
  },
56080
56060
  status: {
56081
56061
  field: "status",
56082
56062
  name: t("status"),
56083
56063
  width: "110",
56084
- render: (value) => /* @__PURE__ */ jsx177(WfoSubscriptionStatusBadge, { status: value })
56064
+ render: (value) => /* @__PURE__ */ jsx176(WfoSubscriptionStatusBadge, { status: value })
56085
56065
  },
56086
56066
  insync: {
56087
56067
  field: "insync",
56088
56068
  name: t("insync"),
56089
56069
  width: "110",
56090
- render: (value) => /* @__PURE__ */ jsx177(WfoInsyncIcon, { inSync: value })
56070
+ render: (value) => /* @__PURE__ */ jsx176(WfoInsyncIcon, { inSync: value })
56091
56071
  },
56092
56072
  productName: {
56093
56073
  field: "productName",
@@ -56112,7 +56092,7 @@ var WfoSubscriptionsList = ({
56112
56092
  field: "startDate",
56113
56093
  name: t("startDate"),
56114
56094
  width: "150",
56115
- render: (value) => /* @__PURE__ */ jsx177(WfoDateTime, { dateOrIsoString: value }),
56095
+ render: (value) => /* @__PURE__ */ jsx176(WfoDateTime, { dateOrIsoString: value }),
56116
56096
  renderDetails: parseDateToLocaleDateTimeString,
56117
56097
  clipboardText: parseDateToLocaleDateTimeString
56118
56098
  },
@@ -56120,7 +56100,7 @@ var WfoSubscriptionsList = ({
56120
56100
  field: "endDate",
56121
56101
  name: t("endDate"),
56122
56102
  width: "150",
56123
- render: (value) => /* @__PURE__ */ jsx177(WfoDateTime, { dateOrIsoString: value }),
56103
+ render: (value) => /* @__PURE__ */ jsx176(WfoDateTime, { dateOrIsoString: value }),
56124
56104
  renderDetails: parseDateToLocaleDateTimeString,
56125
56105
  clipboardText: parseDateToLocaleDateTimeString
56126
56106
  },
@@ -56131,8 +56111,8 @@ var WfoSubscriptionsList = ({
56131
56111
  metadata: {
56132
56112
  field: "metadata",
56133
56113
  name: t("metadata"),
56134
- render: (value) => /* @__PURE__ */ jsx177(WfoInlineJson, { data: value }),
56135
- renderDetails: (value) => value && /* @__PURE__ */ jsx177(WfoJsonCodeBlock, { data: value, isBasicStyle: true })
56114
+ render: (value) => /* @__PURE__ */ jsx176(WfoInlineJson, { data: value }),
56115
+ renderDetails: (value) => value && /* @__PURE__ */ jsx176(WfoJsonCodeBlock, { data: value, isBasicStyle: true })
56136
56116
  }
56137
56117
  };
56138
56118
  const { sortBy, queryString, pageIndex, pageSize } = dataDisplayParams;
@@ -56166,7 +56146,7 @@ var WfoSubscriptionsList = ({
56166
56146
  pageSizeOptions: DEFAULT_PAGE_SIZES,
56167
56147
  totalItemCount: totalItems != null ? totalItems : 0
56168
56148
  };
56169
- return /* @__PURE__ */ jsx177(
56149
+ return /* @__PURE__ */ jsx176(
56170
56150
  WfoTableWithFilter,
56171
56151
  {
56172
56152
  queryString: dataDisplayParams.queryString,
@@ -56207,15 +56187,15 @@ var WfoSubscriptionsList = ({
56207
56187
  };
56208
56188
 
56209
56189
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
56210
- import { Fragment as Fragment43, jsx as jsx178, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
56190
+ import { Fragment as Fragment43, jsx as jsx177, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
56211
56191
  var WfoSubscriptionsListPage = () => {
56212
56192
  var _a;
56213
56193
  const t = useTranslations56("subscriptions.detail");
56214
- const [tableDefaults, setTableDefaults] = useState40();
56194
+ const [tableDefaults, setTableDefaults] = useState39();
56215
56195
  const getStoredTableConfig = useStoredTableConfig(
56216
56196
  SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
56217
56197
  );
56218
- useEffect26(() => {
56198
+ useEffect25(() => {
56219
56199
  const storedConfig = getStoredTableConfig();
56220
56200
  if (storedConfig) {
56221
56201
  setTableDefaults(storedConfig);
@@ -56248,10 +56228,10 @@ var WfoSubscriptionsListPage = () => {
56248
56228
  ({ id }) => id === activeTab
56249
56229
  )) == null ? void 0 : _a.alwaysOnFilters;
56250
56230
  return /* @__PURE__ */ jsxs100(Fragment43, { children: [
56251
- /* @__PURE__ */ jsx178(EuiSpacer20, {}),
56252
- /* @__PURE__ */ jsx178(EuiPageHeader4, { pageTitle: t("title") }),
56253
- /* @__PURE__ */ jsx178(EuiSpacer20, { size: "m" }),
56254
- /* @__PURE__ */ jsx178(
56231
+ /* @__PURE__ */ jsx177(EuiSpacer20, {}),
56232
+ /* @__PURE__ */ jsx177(EuiPageHeader4, { pageTitle: t("title") }),
56233
+ /* @__PURE__ */ jsx177(EuiSpacer20, { size: "m" }),
56234
+ /* @__PURE__ */ jsx177(
56255
56235
  WfoFilterTabs,
56256
56236
  {
56257
56237
  tabs: subscriptionListTabs,
@@ -56260,8 +56240,8 @@ var WfoSubscriptionsListPage = () => {
56260
56240
  onChangeTab: handleChangeSubscriptionsTab
56261
56241
  }
56262
56242
  ),
56263
- /* @__PURE__ */ jsx178(EuiSpacer20, { size: "xxl" }),
56264
- /* @__PURE__ */ jsx178(
56243
+ /* @__PURE__ */ jsx177(EuiSpacer20, { size: "xxl" }),
56244
+ /* @__PURE__ */ jsx177(
56265
56245
  WfoSubscriptionsList,
56266
56246
  {
56267
56247
  hiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
@@ -56274,10 +56254,10 @@ var WfoSubscriptionsListPage = () => {
56274
56254
  };
56275
56255
 
56276
56256
  // src/pages/tasks/WfoTasksListPage.tsx
56277
- import { useContext as useContext14, useEffect as useEffect27, useState as useState41 } from "react";
56257
+ import { useContext as useContext14, useEffect as useEffect26, useState as useState40 } from "react";
56278
56258
  import { useTranslations as useTranslations57 } from "next-intl";
56279
56259
  import Link8 from "next/link";
56280
- import { useRouter as useRouter15 } from "next/router";
56260
+ import { useRouter as useRouter14 } from "next/router";
56281
56261
  import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
56282
56262
  import {
56283
56263
  EuiButton as EuiButton14,
@@ -56350,16 +56330,16 @@ var getTasksListTabTypeFromString = (tabId) => {
56350
56330
  };
56351
56331
 
56352
56332
  // src/pages/tasks/WfoTasksListPage.tsx
56353
- import { Fragment as Fragment44, jsx as jsx179, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
56333
+ import { Fragment as Fragment44, jsx as jsx178, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
56354
56334
  var WfoTasksListPage = () => {
56355
56335
  var _a;
56356
- const router = useRouter15();
56336
+ const router = useRouter14();
56357
56337
  const t = useTranslations57("tasks.page");
56358
56338
  const [activeTab, setActiveTab] = useQueryParam3(
56359
56339
  "activeTab",
56360
56340
  withDefault4(StringParam4, "ACTIVE" /* ACTIVE */)
56361
56341
  );
56362
- const [tableDefaults, setTableDefaults] = useState41();
56342
+ const [tableDefaults, setTableDefaults] = useState40();
56363
56343
  const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
56364
56344
  const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
56365
56345
  const getStoredTableConfig = useStoredTableConfig(localStorageKey);
@@ -56367,7 +56347,7 @@ var WfoTasksListPage = () => {
56367
56347
  const { showConfirmDialog } = useContext14(ConfirmationDialogContext);
56368
56348
  const { retryAllProcesses } = useMutateProcess();
56369
56349
  const { isEngineRunningNow } = useCheckEngineStatus();
56370
- useEffect27(() => {
56350
+ useEffect26(() => {
56371
56351
  const storedConfig = getStoredTableConfig();
56372
56352
  if (storedConfig) {
56373
56353
  setTableDefaults(storedConfig);
@@ -56407,7 +56387,7 @@ var WfoTasksListPage = () => {
56407
56387
  workflowName: {
56408
56388
  field: "workflowName",
56409
56389
  name: t("taskName"),
56410
- render: (value, { processId }) => /* @__PURE__ */ jsx179(Link8, { href: `${PATH_TASKS}/${processId}`, children: value })
56390
+ render: (value, { processId }) => /* @__PURE__ */ jsx178(Link8, { href: `${PATH_TASKS}/${processId}`, children: value })
56411
56391
  },
56412
56392
  lastStep: defaultTableColumns.lastStep,
56413
56393
  lastStatus: defaultTableColumns.lastStatus,
@@ -56424,20 +56404,20 @@ var WfoTasksListPage = () => {
56424
56404
  lastModifiedAt: defaultTableColumns.lastModifiedAt
56425
56405
  });
56426
56406
  return /* @__PURE__ */ jsxs101(Fragment44, { children: [
56427
- /* @__PURE__ */ jsx179(EuiSpacer21, {}),
56407
+ /* @__PURE__ */ jsx178(EuiSpacer21, {}),
56428
56408
  /* @__PURE__ */ jsxs101(EuiFlexGroup24, { children: [
56429
- /* @__PURE__ */ jsx179(EuiFlexItem34, { children: /* @__PURE__ */ jsx179(EuiPageHeader5, { pageTitle: "Tasks" }) }),
56430
- /* @__PURE__ */ jsx179(EuiFlexItem34, { children: /* @__PURE__ */ jsxs101(EuiFlexGroup24, { justifyContent: "flexEnd", children: [
56409
+ /* @__PURE__ */ jsx178(EuiFlexItem34, { children: /* @__PURE__ */ jsx178(EuiPageHeader5, { pageTitle: "Tasks" }) }),
56410
+ /* @__PURE__ */ jsx178(EuiFlexItem34, { children: /* @__PURE__ */ jsxs101(EuiFlexGroup24, { justifyContent: "flexEnd", children: [
56431
56411
  " ",
56432
- /* @__PURE__ */ jsx179(
56412
+ /* @__PURE__ */ jsx178(
56433
56413
  WfoIsAllowedToRender,
56434
56414
  {
56435
56415
  resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */,
56436
- children: /* @__PURE__ */ jsx179(
56416
+ children: /* @__PURE__ */ jsx178(
56437
56417
  EuiButton14,
56438
56418
  {
56439
56419
  onClick: handleRerunAllButtonClick,
56440
- iconType: () => /* @__PURE__ */ jsx179(
56420
+ iconType: () => /* @__PURE__ */ jsx178(
56441
56421
  WfoRefresh,
56442
56422
  {
56443
56423
  color: theme.colors.primaryText
@@ -56448,16 +56428,16 @@ var WfoTasksListPage = () => {
56448
56428
  )
56449
56429
  }
56450
56430
  ),
56451
- /* @__PURE__ */ jsx179(
56431
+ /* @__PURE__ */ jsx178(
56452
56432
  WfoIsAllowedToRender,
56453
56433
  {
56454
56434
  resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */,
56455
- children: /* @__PURE__ */ jsx179(WfoStartTaskButtonComboBox, {})
56435
+ children: /* @__PURE__ */ jsx178(WfoStartTaskButtonComboBox, {})
56456
56436
  }
56457
56437
  )
56458
56438
  ] }) })
56459
56439
  ] }),
56460
- /* @__PURE__ */ jsx179(
56440
+ /* @__PURE__ */ jsx178(
56461
56441
  WfoFilterTabs,
56462
56442
  {
56463
56443
  tabs: defaultTasksListTabs,
@@ -56466,8 +56446,8 @@ var WfoTasksListPage = () => {
56466
56446
  onChangeTab: handleChangeTasksListTab
56467
56447
  }
56468
56448
  ),
56469
- /* @__PURE__ */ jsx179(EuiSpacer21, { size: "xxl" }),
56470
- /* @__PURE__ */ jsx179(
56449
+ /* @__PURE__ */ jsx178(EuiSpacer21, { size: "xxl" }),
56450
+ /* @__PURE__ */ jsx178(
56471
56451
  WfoProcessesList,
56472
56452
  {
56473
56453
  defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
@@ -56482,9 +56462,9 @@ var WfoTasksListPage = () => {
56482
56462
  };
56483
56463
 
56484
56464
  // src/pages/workflows/WfoWorkflowsListPage.tsx
56485
- import { useEffect as useEffect28, useState as useState42 } from "react";
56465
+ import { useEffect as useEffect27, useState as useState41 } from "react";
56486
56466
  import { useTranslations as useTranslations58 } from "next-intl";
56487
- import { useRouter as useRouter16 } from "next/router";
56467
+ import { useRouter as useRouter15 } from "next/router";
56488
56468
  import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
56489
56469
  import { EuiPageHeader as EuiPageHeader6, EuiSpacer as EuiSpacer22 } from "@elastic/eui";
56490
56470
 
@@ -56551,20 +56531,20 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
56551
56531
  };
56552
56532
 
56553
56533
  // src/pages/workflows/WfoWorkflowsListPage.tsx
56554
- import { Fragment as Fragment45, jsx as jsx180, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
56534
+ import { Fragment as Fragment45, jsx as jsx179, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
56555
56535
  var WfoWorkflowsListPage = () => {
56556
56536
  var _a;
56557
- const router = useRouter16();
56537
+ const router = useRouter15();
56558
56538
  const t = useTranslations58("workflows.index");
56559
56539
  const [activeTab, setActiveTab] = useQueryParam4(
56560
56540
  "activeTab",
56561
56541
  withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
56562
56542
  );
56563
- const [tableDefaults, setTableDefaults] = useState42();
56543
+ const [tableDefaults, setTableDefaults] = useState41();
56564
56544
  const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
56565
56545
  const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
56566
56546
  const getStoredTableConfig = useStoredTableConfig(localStorageKey);
56567
- useEffect28(() => {
56547
+ useEffect27(() => {
56568
56548
  const storedConfig = getStoredTableConfig();
56569
56549
  if (storedConfig) {
56570
56550
  setTableDefaults(storedConfig);
@@ -56591,10 +56571,10 @@ var WfoWorkflowsListPage = () => {
56591
56571
  return null;
56592
56572
  }
56593
56573
  return /* @__PURE__ */ jsxs102(Fragment45, { children: [
56594
- /* @__PURE__ */ jsx180(EuiSpacer22, {}),
56595
- /* @__PURE__ */ jsx180(EuiPageHeader6, { pageTitle: t("title") }),
56596
- /* @__PURE__ */ jsx180(EuiSpacer22, { size: "m" }),
56597
- /* @__PURE__ */ jsx180(
56574
+ /* @__PURE__ */ jsx179(EuiSpacer22, {}),
56575
+ /* @__PURE__ */ jsx179(EuiPageHeader6, { pageTitle: t("title") }),
56576
+ /* @__PURE__ */ jsx179(EuiSpacer22, { size: "m" }),
56577
+ /* @__PURE__ */ jsx179(
56598
56578
  WfoFilterTabs,
56599
56579
  {
56600
56580
  tabs: defaultWorkflowsListTabs,
@@ -56603,8 +56583,8 @@ var WfoWorkflowsListPage = () => {
56603
56583
  onChangeTab: handleChangeWorkflowsListTab
56604
56584
  }
56605
56585
  ),
56606
- /* @__PURE__ */ jsx180(EuiSpacer22, { size: "xxl" }),
56607
- /* @__PURE__ */ jsx180(
56586
+ /* @__PURE__ */ jsx179(EuiSpacer22, { size: "xxl" }),
56587
+ /* @__PURE__ */ jsx179(
56608
56588
  WfoProcessesList,
56609
56589
  {
56610
56590
  alwaysOnFilters,
@@ -56714,7 +56694,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
56714
56694
  }));
56715
56695
 
56716
56696
  // src/components/WfoProcessList/WfoProcessesList.tsx
56717
- import { jsx as jsx181 } from "@emotion/react/jsx-runtime";
56697
+ import { jsx as jsx180 } from "@emotion/react/jsx-runtime";
56718
56698
  var WfoProcessesList = ({
56719
56699
  alwaysOnFilters,
56720
56700
  defaultHiddenColumns = [],
@@ -56732,7 +56712,7 @@ var WfoProcessesList = ({
56732
56712
  field: "workflowName",
56733
56713
  name: t("workflowName"),
56734
56714
  width: "20%",
56735
- render: (value, { processId }) => /* @__PURE__ */ jsx181(Link9, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
56715
+ render: (value, { processId }) => /* @__PURE__ */ jsx180(Link9, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
56736
56716
  },
56737
56717
  lastStep: {
56738
56718
  field: "lastStep",
@@ -56743,13 +56723,13 @@ var WfoProcessesList = ({
56743
56723
  field: "lastStatus",
56744
56724
  name: t("status"),
56745
56725
  width: "100",
56746
- render: (cellValue) => /* @__PURE__ */ jsx181(WfoProcessStatusBadge, { processStatus: cellValue })
56726
+ render: (cellValue) => /* @__PURE__ */ jsx180(WfoProcessStatusBadge, { processStatus: cellValue })
56747
56727
  },
56748
56728
  workflowTarget: {
56749
56729
  field: "workflowTarget",
56750
56730
  name: t("workflowTarget"),
56751
56731
  width: "100",
56752
- render: (target) => /* @__PURE__ */ jsx181(WfoWorkflowTargetBadge, { target })
56732
+ render: (target) => /* @__PURE__ */ jsx180(WfoWorkflowTargetBadge, { target })
56753
56733
  },
56754
56734
  tag: {
56755
56735
  field: "tag",
@@ -56775,14 +56755,14 @@ var WfoProcessesList = ({
56775
56755
  field: "subscriptions",
56776
56756
  name: t("subscriptions"),
56777
56757
  width: "15%",
56778
- render: ({ page: subscriptions }) => /* @__PURE__ */ jsx181(
56758
+ render: ({ page: subscriptions }) => /* @__PURE__ */ jsx180(
56779
56759
  WfoProcessListSubscriptionsCell,
56780
56760
  {
56781
56761
  subscriptions,
56782
56762
  numberOfSubscriptionsToRender: 1
56783
56763
  }
56784
56764
  ),
56785
- renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx181(
56765
+ renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx180(
56786
56766
  WfoProcessListSubscriptionsCell,
56787
56767
  {
56788
56768
  subscriptions
@@ -56804,14 +56784,14 @@ var WfoProcessesList = ({
56804
56784
  field: "processId",
56805
56785
  name: t("processId"),
56806
56786
  width: "90",
56807
- render: (value) => /* @__PURE__ */ jsx181(WfoFirstPartUUID, { UUID: value }),
56787
+ render: (value) => /* @__PURE__ */ jsx180(WfoFirstPartUUID, { UUID: value }),
56808
56788
  renderDetails: (value) => value
56809
56789
  },
56810
56790
  startedAt: {
56811
56791
  field: "startedAt",
56812
56792
  name: t("started"),
56813
56793
  width: "100",
56814
- render: (value) => /* @__PURE__ */ jsx181(WfoDateTime, { dateOrIsoString: value }),
56794
+ render: (value) => /* @__PURE__ */ jsx180(WfoDateTime, { dateOrIsoString: value }),
56815
56795
  renderDetails: parseDateToLocaleDateTimeString,
56816
56796
  clipboardText: parseDateToLocaleDateTimeString
56817
56797
  },
@@ -56819,7 +56799,7 @@ var WfoProcessesList = ({
56819
56799
  field: "lastModifiedAt",
56820
56800
  name: t("lastModified"),
56821
56801
  width: "100",
56822
- render: (value) => /* @__PURE__ */ jsx181(WfoDateTime, { dateOrIsoString: value }),
56802
+ render: (value) => /* @__PURE__ */ jsx180(WfoDateTime, { dateOrIsoString: value }),
56823
56803
  renderDetails: parseDateToLocaleDateTimeString,
56824
56804
  clipboardText: parseDateToLocaleDateTimeString
56825
56805
  }
@@ -56849,7 +56829,7 @@ var WfoProcessesList = ({
56849
56829
  const getProcessListForExport = () => getProcessListTrigger(
56850
56830
  getQueryVariablesForExport(processListQueryVars)
56851
56831
  ).unwrap();
56852
- return /* @__PURE__ */ jsx181(
56832
+ return /* @__PURE__ */ jsx180(
56853
56833
  WfoTableWithFilter,
56854
56834
  {
56855
56835
  queryString,
@@ -56913,14 +56893,14 @@ var getStyles16 = (theme) => {
56913
56893
  };
56914
56894
 
56915
56895
  // src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
56916
- import { jsx as jsx182 } from "@emotion/react/jsx-runtime";
56896
+ import { jsx as jsx181 } from "@emotion/react/jsx-runtime";
56917
56897
  var WfoJsonCodeBlock = ({
56918
56898
  data,
56919
56899
  isBasicStyle = false
56920
56900
  }) => {
56921
56901
  const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles16);
56922
56902
  const json = JSON.stringify(data, null, 4);
56923
- return /* @__PURE__ */ jsx182(
56903
+ return /* @__PURE__ */ jsx181(
56924
56904
  EuiCodeBlock2,
56925
56905
  {
56926
56906
  css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
@@ -56933,7 +56913,7 @@ var WfoJsonCodeBlock = ({
56933
56913
  };
56934
56914
 
56935
56915
  // src/components/WfoSettings/WfoFlushSettings.tsx
56936
- import { useState as useState43 } from "react";
56916
+ import { useState as useState42 } from "react";
56937
56917
  import { useTranslations as useTranslations60 } from "next-intl";
56938
56918
  import {
56939
56919
  EuiButton as EuiButton15,
@@ -56942,11 +56922,11 @@ import {
56942
56922
  EuiSpacer as EuiSpacer23,
56943
56923
  EuiText as EuiText38
56944
56924
  } from "@elastic/eui";
56945
- import { jsx as jsx183, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
56925
+ import { jsx as jsx182, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
56946
56926
  var WfoFlushSettings = () => {
56947
56927
  const [clearCache] = useClearCacheMutation();
56948
56928
  const t = useTranslations60("settings.page");
56949
- const [selectedOptions, setSelected] = useState43(
56929
+ const [selectedOptions, setSelected] = useState42(
56950
56930
  []
56951
56931
  );
56952
56932
  const { showToastMessage } = useShowToastMessage();
@@ -56985,9 +56965,9 @@ var WfoFlushSettings = () => {
56985
56965
  paddingSize: "l",
56986
56966
  style: { width: "50%" },
56987
56967
  children: [
56988
- /* @__PURE__ */ jsx183(EuiText38, { size: "s", children: /* @__PURE__ */ jsx183("h4", { children: t("flushCacheSettingsTitle") }) }),
56989
- /* @__PURE__ */ jsx183(EuiSpacer23, { size: "m" }),
56990
- /* @__PURE__ */ jsx183(
56968
+ /* @__PURE__ */ jsx182(EuiText38, { size: "s", children: /* @__PURE__ */ jsx182("h4", { children: t("flushCacheSettingsTitle") }) }),
56969
+ /* @__PURE__ */ jsx182(EuiSpacer23, { size: "m" }),
56970
+ /* @__PURE__ */ jsx182(
56991
56971
  EuiComboBox,
56992
56972
  {
56993
56973
  "aria-label": "Flush settings",
@@ -56999,8 +56979,8 @@ var WfoFlushSettings = () => {
56999
56979
  fullWidth: true
57000
56980
  }
57001
56981
  ),
57002
- /* @__PURE__ */ jsx183(EuiSpacer23, { size: "m" }),
57003
- /* @__PURE__ */ jsx183(EuiButton15, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
56982
+ /* @__PURE__ */ jsx182(EuiSpacer23, { size: "m" }),
56983
+ /* @__PURE__ */ jsx182(EuiButton15, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
57004
56984
  ]
57005
56985
  }
57006
56986
  );
@@ -57009,16 +56989,16 @@ var WfoFlushSettings = () => {
57009
56989
  // src/components/WfoSettings/WfoEngineStatusButton.tsx
57010
56990
  import { useTranslations as useTranslations61 } from "next-intl";
57011
56991
  import { EuiButton as EuiButton16 } from "@elastic/eui";
57012
- import { jsx as jsx184 } from "@emotion/react/jsx-runtime";
56992
+ import { jsx as jsx183 } from "@emotion/react/jsx-runtime";
57013
56993
  var WfoEngineStatusButton = () => {
57014
56994
  const { data, isLoading } = useGetEngineStatusQuery();
57015
56995
  const { engineStatus } = data || {};
57016
56996
  const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
57017
56997
  const t = useTranslations61("settings.page");
57018
56998
  if (isLoading || isSettingEngineStatus) {
57019
- return /* @__PURE__ */ jsx184(EuiButton16, { isLoading: true, fill: true, children: "Loading..." });
56999
+ return /* @__PURE__ */ jsx183(EuiButton16, { isLoading: true, fill: true, children: "Loading..." });
57020
57000
  }
57021
- return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx184(
57001
+ return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx183(
57022
57002
  EuiButton16,
57023
57003
  {
57024
57004
  onClick: () => setEngineStatus(true),
@@ -57027,7 +57007,7 @@ var WfoEngineStatusButton = () => {
57027
57007
  iconType: "pause",
57028
57008
  children: t("pauseEngine")
57029
57009
  }
57030
- ) : /* @__PURE__ */ jsx184(
57010
+ ) : /* @__PURE__ */ jsx183(
57031
57011
  EuiButton16,
57032
57012
  {
57033
57013
  onClick: () => setEngineStatus(false),
@@ -57046,11 +57026,11 @@ import { EuiFlexItem as EuiFlexItem35, EuiPanel as EuiPanel10, EuiSpacer as EuiS
57046
57026
  // src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
57047
57027
  import { useTranslations as useTranslations62 } from "next-intl";
57048
57028
  import { EuiButton as EuiButton17 } from "@elastic/eui";
57049
- import { jsx as jsx185 } from "@emotion/react/jsx-runtime";
57029
+ import { jsx as jsx184 } from "@emotion/react/jsx-runtime";
57050
57030
  var WfoResetTextSearchIndexButton = () => {
57051
57031
  const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
57052
57032
  const t = useTranslations62("settings.page");
57053
- return /* @__PURE__ */ jsx185(
57033
+ return /* @__PURE__ */ jsx184(
57054
57034
  EuiButton17,
57055
57035
  {
57056
57036
  onClick: () => resetTextSearchIndex(null),
@@ -57061,7 +57041,7 @@ var WfoResetTextSearchIndexButton = () => {
57061
57041
  };
57062
57042
 
57063
57043
  // src/components/WfoSettings/WfoModifySettings.tsx
57064
- import { jsx as jsx186, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
57044
+ import { jsx as jsx185, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
57065
57045
  var WfoModifySettings = () => {
57066
57046
  const t = useTranslations63("settings.page");
57067
57047
  return /* @__PURE__ */ jsxs104(EuiFlexItem35, { children: [
@@ -57073,13 +57053,13 @@ var WfoModifySettings = () => {
57073
57053
  paddingSize: "l",
57074
57054
  css: { width: "50%" },
57075
57055
  children: [
57076
- /* @__PURE__ */ jsx186(EuiText39, { size: "s", children: /* @__PURE__ */ jsx186("h4", { children: t("resetTextSearchIndex") }) }),
57077
- /* @__PURE__ */ jsx186(EuiSpacer24, { size: "m" }),
57078
- /* @__PURE__ */ jsx186(WfoResetTextSearchIndexButton, {})
57056
+ /* @__PURE__ */ jsx185(EuiText39, { size: "s", children: /* @__PURE__ */ jsx185("h4", { children: t("resetTextSearchIndex") }) }),
57057
+ /* @__PURE__ */ jsx185(EuiSpacer24, { size: "m" }),
57058
+ /* @__PURE__ */ jsx185(WfoResetTextSearchIndexButton, {})
57079
57059
  ]
57080
57060
  }
57081
57061
  ),
57082
- /* @__PURE__ */ jsx186(EuiSpacer24, {}),
57062
+ /* @__PURE__ */ jsx185(EuiSpacer24, {}),
57083
57063
  /* @__PURE__ */ jsxs104(
57084
57064
  EuiPanel10,
57085
57065
  {
@@ -57088,9 +57068,9 @@ var WfoModifySettings = () => {
57088
57068
  paddingSize: "l",
57089
57069
  css: { width: "50%" },
57090
57070
  children: [
57091
- /* @__PURE__ */ jsx186(EuiText39, { size: "s", children: /* @__PURE__ */ jsx186("h4", { children: t("modifyEngine") }) }),
57092
- /* @__PURE__ */ jsx186(EuiSpacer24, { size: "m" }),
57093
- /* @__PURE__ */ jsx186(WfoEngineStatusButton, {})
57071
+ /* @__PURE__ */ jsx185(EuiText39, { size: "s", children: /* @__PURE__ */ jsx185("h4", { children: t("modifyEngine") }) }),
57072
+ /* @__PURE__ */ jsx185(EuiSpacer24, { size: "m" }),
57073
+ /* @__PURE__ */ jsx185(WfoEngineStatusButton, {})
57094
57074
  ]
57095
57075
  }
57096
57076
  )
@@ -57106,7 +57086,7 @@ import {
57106
57086
  EuiSpacer as EuiSpacer25,
57107
57087
  EuiText as EuiText40
57108
57088
  } from "@elastic/eui";
57109
- import { jsx as jsx187, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
57089
+ import { jsx as jsx186, jsxs as jsxs105 } from "@emotion/react/jsx-runtime";
57110
57090
  var WfoStatus = () => {
57111
57091
  const { theme } = useOrchestratorTheme();
57112
57092
  const { data } = useGetEngineStatusQuery();
@@ -57122,20 +57102,20 @@ var WfoStatus = () => {
57122
57102
  style: { width: "50%" },
57123
57103
  children: [
57124
57104
  /* @__PURE__ */ jsxs105(EuiFlexGroup25, { children: [
57125
- /* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx187(EuiText40, { size: "s", children: /* @__PURE__ */ jsx187("h4", { children: t("runningProcesses") }) }) }),
57126
- /* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsx187(EuiText40, { size: "s", children: /* @__PURE__ */ jsx187("p", { children: runningProcesses || "-" }) }) })
57105
+ /* @__PURE__ */ jsx186(EuiFlexItem36, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx186(EuiText40, { size: "s", children: /* @__PURE__ */ jsx186("h4", { children: t("runningProcesses") }) }) }),
57106
+ /* @__PURE__ */ jsx186(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsx186(EuiText40, { size: "s", children: /* @__PURE__ */ jsx186("p", { children: runningProcesses || "-" }) }) })
57127
57107
  ] }),
57128
- /* @__PURE__ */ jsx187(EuiSpacer25, { size: "m" }),
57108
+ /* @__PURE__ */ jsx186(EuiSpacer25, { size: "m" }),
57129
57109
  /* @__PURE__ */ jsxs105(EuiFlexGroup25, { children: [
57130
- /* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx187(EuiText40, { size: "s", children: /* @__PURE__ */ jsx187("h4", { children: t("engineStatus") }) }) }),
57131
- /* @__PURE__ */ jsx187(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsxs105(EuiFlexGroup25, { gutterSize: "xs", children: [
57132
- /* @__PURE__ */ jsx187(EuiFlexItem36, { children: /* @__PURE__ */ jsx187(
57110
+ /* @__PURE__ */ jsx186(EuiFlexItem36, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx186(EuiText40, { size: "s", children: /* @__PURE__ */ jsx186("h4", { children: t("engineStatus") }) }) }),
57111
+ /* @__PURE__ */ jsx186(EuiFlexItem36, { grow: false, children: /* @__PURE__ */ jsxs105(EuiFlexGroup25, { gutterSize: "xs", children: [
57112
+ /* @__PURE__ */ jsx186(EuiFlexItem36, { children: /* @__PURE__ */ jsx186(
57133
57113
  WfoStatusDotIcon,
57134
57114
  {
57135
57115
  color: isRunning ? theme.colors.success : theme.colors.warning
57136
57116
  }
57137
57117
  ) }),
57138
- /* @__PURE__ */ jsx187(EuiFlexItem36, { children: /* @__PURE__ */ jsx187(EuiText40, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx187("p", { children: engineStatus }) }) })
57118
+ /* @__PURE__ */ jsx186(EuiFlexItem36, { children: /* @__PURE__ */ jsx186(EuiText40, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx186("p", { children: engineStatus }) }) })
57139
57119
  ] }) })
57140
57120
  ] })
57141
57121
  ]
@@ -57144,9 +57124,9 @@ var WfoStatus = () => {
57144
57124
  };
57145
57125
 
57146
57126
  // src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
57147
- import React59 from "react";
57148
- import { jsx as jsx188, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
57149
- var WfoErrorBoundary = class extends React59.Component {
57127
+ import React58 from "react";
57128
+ import { jsx as jsx187, jsxs as jsxs106 } from "@emotion/react/jsx-runtime";
57129
+ var WfoErrorBoundary = class extends React58.Component {
57150
57130
  constructor(props) {
57151
57131
  super(props);
57152
57132
  this.state = { hasError: false };
@@ -57165,7 +57145,7 @@ var WfoErrorBoundary = class extends React59.Component {
57165
57145
  return /* @__PURE__ */ jsxs106("p", { children: [
57166
57146
  "An unexpected error occurred, try to go back to the",
57167
57147
  " ",
57168
- /* @__PURE__ */ jsx188("a", { href: "/", children: "home page" })
57148
+ /* @__PURE__ */ jsx187("a", { href: "/", children: "home page" })
57169
57149
  ] });
57170
57150
  }
57171
57151
  return this.props.children;
@@ -57210,10 +57190,10 @@ var WfoNoResults = ({ text, icon }) => {
57210
57190
 
57211
57191
  // src/components/WfoStartButton/WfoStartTaskComboBox.tsx
57212
57192
  import { useTranslations as useTranslations65 } from "next-intl";
57213
- import { useRouter as useRouter17 } from "next/router";
57214
- import { jsx as jsx189 } from "@emotion/react/jsx-runtime";
57193
+ import { useRouter as useRouter16 } from "next/router";
57194
+ import { jsx as jsx188 } from "@emotion/react/jsx-runtime";
57215
57195
  var WfoStartTaskButtonComboBox = () => {
57216
- const router = useRouter17();
57196
+ const router = useRouter16();
57217
57197
  const t = useTranslations65("common");
57218
57198
  const { isEngineRunningNow } = useCheckEngineStatus();
57219
57199
  const { data } = useGetTaskOptionsQuery();
@@ -57234,7 +57214,7 @@ var WfoStartTaskButtonComboBox = () => {
57234
57214
  });
57235
57215
  }
57236
57216
  });
57237
- return /* @__PURE__ */ jsx189(
57217
+ return /* @__PURE__ */ jsx188(
57238
57218
  WfoStartButtonComboBox,
57239
57219
  {
57240
57220
  buttonText: t("newTask"),
@@ -58285,7 +58265,6 @@ export {
58285
58265
  TreeProvider,
58286
58266
  UnconnectedSelectField,
58287
58267
  UserInputFormWizard,
58288
- UserInputFormWizardDeprecated,
58289
58268
  VlanField,
58290
58269
  WFO_STATUS_COLOR_FIELD,
58291
58270
  WfoArrowNarrowDown,