@orchestrator-ui/orchestrator-ui-components 0.11.0 → 0.12.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 = jsx177;
23131
- jsx177.displayName = "jsx";
23132
- jsx177.aliases = [];
23133
- function jsx177(Prism) {
23130
+ module.exports = jsx179;
23131
+ jsx179.displayName = "jsx";
23132
+ jsx179.aliases = [];
23133
+ function jsx179(Prism) {
23134
23134
  ;
23135
23135
  (function(Prism2) {
23136
23136
  var javascript = Prism2.util.clone(Prism2.languages.javascript);
@@ -34572,9 +34572,9 @@ var getAxiosInstance = (apiPath, accessToken) => {
34572
34572
  };
34573
34573
 
34574
34574
  // src/api/index.ts
34575
- var CIM_FORMS_ENDPOINT = "surf/cim/forms/";
34576
34575
  var PROCESS_ENDPOINT = "processes/";
34577
34576
  var PRODUCTS_ENDPOINT = "products/";
34577
+ var FORMS_ENDPOINT = "surf/forms/";
34578
34578
  var BaseApiClient = class {
34579
34579
  constructor(apiPath, accessToken) {
34580
34580
  this.axiosFetch = (path, options = {}, headers = {}, showErrorDialog = true, result = true) => {
@@ -34614,11 +34614,18 @@ var BaseApiClient = class {
34614
34614
  this._axiosInstance = getAxiosInstance(apiPath, accessToken);
34615
34615
  }
34616
34616
  };
34617
- var ApiClientInterface = class extends BaseApiClient {
34618
- };
34619
- var ApiClient = class extends ApiClientInterface {
34617
+ var ApiClient = class extends BaseApiClient {
34620
34618
  constructor() {
34621
34619
  super(...arguments);
34620
+ this.startForm = (formKey, userInputs) => {
34621
+ return this.postPutJson(
34622
+ `${FORMS_ENDPOINT}${formKey}`,
34623
+ userInputs,
34624
+ "post",
34625
+ false,
34626
+ true
34627
+ );
34628
+ };
34622
34629
  this.startProcess = (workflowName, processInput) => {
34623
34630
  return this.postPutJson(
34624
34631
  `${PROCESS_ENDPOINT}${workflowName}`,
@@ -34643,15 +34650,6 @@ var ApiClient = class extends ApiClientInterface {
34643
34650
  this.productById = (productId) => {
34644
34651
  return this.fetchJson(`${PRODUCTS_ENDPOINT}${productId}`);
34645
34652
  };
34646
- this.cimStartForm = (formKey, userInputs) => {
34647
- return this.postPutJson(
34648
- `${CIM_FORMS_ENDPOINT}${formKey}`,
34649
- userInputs,
34650
- "post",
34651
- false,
34652
- true
34653
- );
34654
- };
34655
34653
  this.prefix_filters = () => {
34656
34654
  return this.fetchJson("surf/ipam/prefix_filters");
34657
34655
  };
@@ -41313,7 +41311,7 @@ import { useContext as useContext6 } from "react";
41313
41311
  // src/hooks/useQueryWithFetch.ts
41314
41312
  import { useQuery as useQuery2 } from "react-query";
41315
41313
  import { signOut as signOut2 } from "next-auth/react";
41316
- var useQueryWithFetch = (url, queryVars, queryKey) => {
41314
+ var useQueryWithFetch = (url, queryVars, queryKey, options) => {
41317
41315
  const { session } = useWfoSession();
41318
41316
  const requestHeaders = {
41319
41317
  authorization: session ? `Bearer ${session.accessToken}` : ""
@@ -41331,7 +41329,11 @@ var useQueryWithFetch = (url, queryVars, queryKey) => {
41331
41329
  }
41332
41330
  return yield response.json();
41333
41331
  });
41334
- return useQuery2([queryKey, ...Object.values(queryVars)], fetchData);
41332
+ return useQuery2(
41333
+ [queryKey, ...Object.values(queryVars)],
41334
+ fetchData,
41335
+ options
41336
+ );
41335
41337
  };
41336
41338
 
41337
41339
  // src/hooks/useProcessStatusCountsQuery.ts
@@ -43290,6 +43292,13 @@ var camelToHuman = (value) => {
43290
43292
  const result = value.replace(/([A-Z])/g, " $1").trimStart();
43291
43293
  return result.charAt(0).toUpperCase() + result.slice(1);
43292
43294
  };
43295
+ var snakeToHuman = (value) => {
43296
+ const result = value.replace(/_/g, " ");
43297
+ return result.charAt(0) + result.slice(1);
43298
+ };
43299
+ var snakeToKebab = (value) => {
43300
+ return value.replace(/_/g, "-");
43301
+ };
43293
43302
 
43294
43303
  // src/utils/getProductNamesFromProcess.ts
43295
43304
  var getProductNamesFromProcess = (process2) => {
@@ -43740,6 +43749,28 @@ import { useTranslations as useTranslations9 } from "next-intl";
43740
43749
  import { useRouter as useRouter4 } from "next/router";
43741
43750
  import { EuiSideNav, EuiSpacer as EuiSpacer3 } from "@elastic/eui";
43742
43751
 
43752
+ // src/configuration/policy-resources.ts
43753
+ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
43754
+ PolicyResource2["NAVIGATION_METADATA"] = "/orchestrator/metadata";
43755
+ PolicyResource2["NAVIGATION_SETTINGS"] = "/orchestrator/settings";
43756
+ PolicyResource2["NAVIGATION_SUBSCRIPTIONS"] = "/orchestrator/subscriptions";
43757
+ PolicyResource2["NAVIGATION_TASKS"] = "/orchestrator/tasks";
43758
+ PolicyResource2["NAVIGATION_WORKFLOWS"] = "/orchestrator/workflows";
43759
+ PolicyResource2["PROCESS_ABORT"] = "/orchestrator/processes/abort/";
43760
+ PolicyResource2["PROCESS_DELETE"] = "/orchestrator/processes/delete/";
43761
+ PolicyResource2["PROCESS_DETAILS"] = "/orchestrator/processes/details/";
43762
+ PolicyResource2["PROCESS_RELATED_SUBSCRIPTIONS"] = "/orchestrator/subscriptions/view/from-process";
43763
+ PolicyResource2["PROCESS_RETRY"] = "/orchestrator/processes/retry/";
43764
+ PolicyResource2["PROCESS_USER_INPUT"] = "/orchestrator/processes/user-input/";
43765
+ PolicyResource2["SUBSCRIPTION_CREATE"] = "/orchestrator/processes/create/process/menu";
43766
+ PolicyResource2["SUBSCRIPTION_MODIFY"] = "/orchestrator/subscriptions/modify/";
43767
+ PolicyResource2["SUBSCRIPTION_TERMINATE"] = "/orchestrator/subscriptions/terminate/";
43768
+ PolicyResource2["SUBSCRIPTION_VALIDATE"] = "/orchestrator/subscriptions/validate/";
43769
+ PolicyResource2["TASKS_CREATE"] = "/orchestrator/processes/create/task";
43770
+ PolicyResource2["TASKS_RETRY_ALL"] = "/orchestrator/processes/all-tasks/retry";
43771
+ return PolicyResource2;
43772
+ })(PolicyResource || {});
43773
+
43743
43774
  // src/components/WfoPageTemplate/paths.ts
43744
43775
  var PATH_START = "/";
43745
43776
  var PATH_START_NEW_WORKFLOW = "/workflows/new";
@@ -46377,10 +46408,19 @@ var WfoStartCreateWorkflowButtonComboBox = () => {
46377
46408
 
46378
46409
  // src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx
46379
46410
  import { Fragment as Fragment5, jsx as jsx61, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
46411
+ var renderEmptyElementWhenNotAllowedByPolicy = (isAllowed) => isAllowed ? void 0 : () => /* @__PURE__ */ jsx61(Fragment5, {});
46412
+ var urlPolicyMap = /* @__PURE__ */ new Map([
46413
+ [PATH_WORKFLOWS, "/orchestrator/workflows" /* NAVIGATION_WORKFLOWS */],
46414
+ [PATH_SUBSCRIPTIONS, "/orchestrator/subscriptions" /* NAVIGATION_SUBSCRIPTIONS */],
46415
+ [PATH_METADATA, "/orchestrator/metadata" /* NAVIGATION_METADATA */],
46416
+ [PATH_TASKS, "/orchestrator/tasks" /* NAVIGATION_TASKS */],
46417
+ [PATH_SETTINGS, "/orchestrator/settings" /* NAVIGATION_SETTINGS */]
46418
+ ]);
46380
46419
  var WfoSidebar = ({ overrideMenuItems }) => {
46381
46420
  const t = useTranslations9("main");
46382
46421
  const router = useRouter4();
46383
46422
  const [isSideNavOpenOnMobile, setIsSideNavOpenOnMobile] = useState7(false);
46423
+ const { isAllowed } = usePolicy();
46384
46424
  const toggleMobile = () => {
46385
46425
  setIsSideNavOpenOnMobile((openState) => !openState);
46386
46426
  };
@@ -46417,6 +46457,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
46417
46457
  {
46418
46458
  name: t("metadata"),
46419
46459
  id: "5",
46460
+ href: PATH_METADATA,
46420
46461
  onClick: () => {
46421
46462
  router.push(PATH_METADATA);
46422
46463
  },
@@ -46480,16 +46521,31 @@ var WfoSidebar = ({ overrideMenuItems }) => {
46480
46521
  href: PATH_SETTINGS
46481
46522
  }
46482
46523
  ];
46524
+ const defaultMenuItemsFilteredByPolicy = defaultMenuItems.filter(
46525
+ ({ href }) => {
46526
+ if (!href) {
46527
+ return true;
46528
+ }
46529
+ const policyResource = urlPolicyMap.get(href);
46530
+ return policyResource ? isAllowed(policyResource) : true;
46531
+ }
46532
+ );
46483
46533
  const defaultMenu = [
46484
46534
  {
46485
46535
  renderItem: () => /* @__PURE__ */ jsxs42(Fragment5, { children: [
46486
- /* @__PURE__ */ jsx61(WfoStartCreateWorkflowButtonComboBox, {}),
46536
+ /* @__PURE__ */ jsx61(
46537
+ WfoIsAllowedToRender,
46538
+ {
46539
+ resource: "/orchestrator/processes/create/process/menu" /* SUBSCRIPTION_CREATE */,
46540
+ children: /* @__PURE__ */ jsx61(WfoStartCreateWorkflowButtonComboBox, {})
46541
+ }
46542
+ ),
46487
46543
  /* @__PURE__ */ jsx61(EuiSpacer3, { size: "m" }),
46488
46544
  /* @__PURE__ */ jsx61(WfoCopyright, {})
46489
46545
  ] }),
46490
46546
  name: "Menu",
46491
46547
  id: "1",
46492
- items: overrideMenuItems ? overrideMenuItems(defaultMenuItems) : defaultMenuItems
46548
+ items: overrideMenuItems ? overrideMenuItems(defaultMenuItemsFilteredByPolicy) : defaultMenuItemsFilteredByPolicy
46493
46549
  }
46494
46550
  ];
46495
46551
  return /* @__PURE__ */ jsx61(Fragment5, { children: /* @__PURE__ */ jsx61(
@@ -47168,6 +47224,7 @@ var WfoSubscriptionActions = ({
47168
47224
  const [isPopoverOpen, setPopover] = useState11(false);
47169
47225
  const { data: subscriptionActions } = useSubscriptionActions(subscriptionId);
47170
47226
  const { isEngineRunningNow } = useCheckEngineStatus();
47227
+ const { isAllowed } = usePolicy();
47171
47228
  const onButtonClick = () => {
47172
47229
  setPopover(!isPopoverOpen);
47173
47230
  };
@@ -47242,32 +47299,42 @@ var WfoSubscriptionActions = ({
47242
47299
  panelPaddingSize: "none",
47243
47300
  anchorPosition: "downLeft",
47244
47301
  children: /* @__PURE__ */ jsx72(EuiContextMenuPanel, { children: /* @__PURE__ */ jsxs50(EuiPanel2, { color: "transparent", paddingSize: "s", children: [
47245
- subscriptionActions && subscriptionActions.modify && /* @__PURE__ */ jsxs50(Fragment10, { children: [
47302
+ subscriptionActions && isAllowed(
47303
+ "/orchestrator/subscriptions/modify/" /* SUBSCRIPTION_MODIFY */ + subscriptionId
47304
+ ) && subscriptionActions.modify && /* @__PURE__ */ jsxs50(Fragment10, { children: [
47246
47305
  /* @__PURE__ */ jsx72(MenuBlock, { title: t("modify") }),
47247
- subscriptionActions.modify.map((action, index) => /* @__PURE__ */ jsx72(
47248
- MenuItem,
47249
- {
47250
- action,
47251
- index,
47252
- target: "modify" /* MODIFY */
47253
- },
47254
- `m_${index}`
47255
- ))
47306
+ subscriptionActions.modify.map(
47307
+ (action, index) => /* @__PURE__ */ jsx72(
47308
+ MenuItem,
47309
+ {
47310
+ action,
47311
+ index,
47312
+ target: "modify" /* MODIFY */
47313
+ },
47314
+ `m_${index}`
47315
+ )
47316
+ )
47256
47317
  ] }),
47257
- subscriptionActions && subscriptionActions.system && /* @__PURE__ */ jsxs50(Fragment10, { children: [
47318
+ subscriptionActions && isAllowed(
47319
+ "/orchestrator/subscriptions/validate/" /* SUBSCRIPTION_VALIDATE */ + subscriptionId
47320
+ ) && subscriptionActions.system && /* @__PURE__ */ jsxs50(Fragment10, { children: [
47258
47321
  /* @__PURE__ */ jsx72(MenuBlock, { title: t("tasks") }),
47259
- subscriptionActions.system.map((action, index) => /* @__PURE__ */ jsx72(
47260
- MenuItem,
47261
- {
47262
- action,
47263
- index,
47264
- target: "system" /* SYSTEM */,
47265
- isTask: true
47266
- },
47267
- `s_${index}`
47268
- ))
47322
+ subscriptionActions.system.map(
47323
+ (action, index) => /* @__PURE__ */ jsx72(
47324
+ MenuItem,
47325
+ {
47326
+ action,
47327
+ index,
47328
+ target: "system" /* SYSTEM */,
47329
+ isTask: true
47330
+ },
47331
+ `s_${index}`
47332
+ )
47333
+ )
47269
47334
  ] }),
47270
- subscriptionActions && subscriptionActions.terminate && /* @__PURE__ */ jsxs50(Fragment10, { children: [
47335
+ subscriptionActions && isAllowed(
47336
+ "/orchestrator/subscriptions/terminate/" /* SUBSCRIPTION_TERMINATE */ + subscriptionId
47337
+ ) && subscriptionActions.terminate && /* @__PURE__ */ jsxs50(Fragment10, { children: [
47271
47338
  /* @__PURE__ */ jsx72(MenuBlock, { title: t("terminate") }),
47272
47339
  subscriptionActions.terminate.map(
47273
47340
  (action, index) => /* @__PURE__ */ jsx72(
@@ -49800,13 +49867,35 @@ var WfoToastsList = () => {
49800
49867
  );
49801
49868
  };
49802
49869
 
49803
- // src/components/WfoForms/CreateForm.tsx
49804
- import { useCallback as useCallback4, useEffect as useEffect15, useState as useState26 } from "react";
49805
-
49806
- // src/components/WfoForms/UserInputFormWizard.tsx
49807
- import { useEffect as useEffect14, useState as useState25 } from "react";
49808
- import { useRouter as useRouter7 } from "next/router";
49809
- import hash from "object-hash";
49870
+ // src/components/WfoForms/AutoFields.tsx
49871
+ import { createElement } from "react";
49872
+ import { useForm } from "uniforms";
49873
+ import { AutoField } from "uniforms-unstyled";
49874
+ function AutoFields(_a) {
49875
+ var _b = _a, {
49876
+ autoField = AutoField,
49877
+ element = "section",
49878
+ fields,
49879
+ omitFields = []
49880
+ } = _b, props = __objRest(_b, [
49881
+ "autoField",
49882
+ "element",
49883
+ "fields",
49884
+ "omitFields"
49885
+ ]);
49886
+ const { schema } = useForm();
49887
+ return createElement(
49888
+ element,
49889
+ __spreadValues({}, props),
49890
+ (fields != null ? fields : schema.getSubfields()).filter((field) => !omitFields.includes(field)).map(
49891
+ (field) => createElement(autoField, {
49892
+ key: field,
49893
+ name: field,
49894
+ className: "form-input"
49895
+ })
49896
+ )
49897
+ );
49898
+ }
49810
49899
 
49811
49900
  // src/components/WfoForms/UserInputForm.tsx
49812
49901
  var import_cloneDeep2 = __toESM(require_cloneDeep(), 1);
@@ -49825,7 +49914,7 @@ import {
49825
49914
  } from "@elastic/eui";
49826
49915
 
49827
49916
  // src/components/WfoForms/AutoFieldLoader.tsx
49828
- import { AutoField as AutoField4 } from "uniforms-unstyled";
49917
+ import { AutoField as AutoField5 } from "uniforms-unstyled";
49829
49918
 
49830
49919
  // src/components/WfoForms/formFields/AcceptField.tsx
49831
49920
  import { useReducer } from "react";
@@ -50173,10 +50262,10 @@ var ErrorField = connectField4(Error2, {
50173
50262
  });
50174
50263
 
50175
50264
  // src/components/WfoForms/formFields/ErrorsField.tsx
50176
- import { filterDOMProps as filterDOMProps4, useForm } from "uniforms";
50265
+ import { filterDOMProps as filterDOMProps4, useForm as useForm2 } from "uniforms";
50177
50266
  import { jsx as jsx102, jsxs as jsxs65 } from "@emotion/react/jsx-runtime";
50178
50267
  var ErrorsField = (props) => {
50179
- const { error, schema } = useForm();
50268
+ const { error, schema } = useForm2();
50180
50269
  return !error && !props.children ? null : /* @__PURE__ */ jsxs65("div", __spreadProps(__spreadValues({}, filterDOMProps4(props)), { children: [
50181
50270
  props.children,
50182
50271
  /* @__PURE__ */ jsx102("ul", { children: schema.getErrorMessages(error).map((message, index) => /* @__PURE__ */ jsx102("li", { children: message }, index)) })
@@ -50335,10 +50424,10 @@ import { EuiFlexItem as EuiFlexItem14, EuiFormRow as EuiFormRow4, EuiText as Eui
50335
50424
 
50336
50425
  // src/components/WfoForms/formFields/ListItemField.tsx
50337
50426
  import { connectField as connectField8 } from "uniforms";
50338
- import { AutoField } from "uniforms-unstyled";
50427
+ import { AutoField as AutoField2 } from "uniforms-unstyled";
50339
50428
  import { jsx as jsx106, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
50340
50429
  function ListItem({
50341
- children = /* @__PURE__ */ jsx106(AutoField, { label: null, name: "" }),
50430
+ children = /* @__PURE__ */ jsx106(AutoField2, { label: null, name: "" }),
50342
50431
  outerList = false
50343
50432
  }) {
50344
50433
  return /* @__PURE__ */ jsxs68("li", { children: [
@@ -50525,13 +50614,13 @@ var ListField = connectField9(List);
50525
50614
 
50526
50615
  // src/components/WfoForms/formFields/ListSelectField.tsx
50527
50616
  var import_lodash3 = __toESM(require_lodash(), 1);
50528
- import { joinName as joinName5, useField as useField5, useForm as useForm3 } from "uniforms";
50617
+ import { joinName as joinName5, useField as useField5, useForm as useForm4 } from "uniforms";
50529
50618
 
50530
50619
  // src/components/WfoForms/formFields/SelectField.tsx
50531
50620
  var import_lodash2 = __toESM(require_lodash(), 1);
50532
50621
  import ReactSelect from "react-select";
50533
50622
  import { useTranslations as useTranslations26 } from "next-intl";
50534
- import { joinName as joinName4, useField as useField4, useForm as useForm2 } from "uniforms";
50623
+ import { joinName as joinName4, useField as useField4, useForm as useForm3 } from "uniforms";
50535
50624
  import { EuiFormRow as EuiFormRow5, EuiText as EuiText14 } from "@elastic/eui";
50536
50625
 
50537
50626
  // src/components/WfoForms/formFields/reactSelectStyles.ts
@@ -50612,7 +50701,7 @@ function UnconnectedSelectField(_a) {
50612
50701
  parentName = name;
50613
50702
  }
50614
50703
  const parent = useField4(parentName, {}, { absoluteName: true })[0];
50615
- const { model } = useForm2();
50704
+ const { model } = useForm3();
50616
50705
  if (parentName !== name) {
50617
50706
  if (parent.fieldType === Array && parent.uniqueItems) {
50618
50707
  const allValues = (0, import_lodash2.get)(model, parentName, []);
@@ -50714,7 +50803,7 @@ function ListSelectField(_a) {
50714
50803
  parentName = name;
50715
50804
  }
50716
50805
  const parent = useField5(parentName, {}, { absoluteName: true })[0];
50717
- const { model } = useForm3();
50806
+ const { model } = useForm4();
50718
50807
  if (parentName !== name) {
50719
50808
  if (parent.fieldType === Array && parent.uniqueItems) {
50720
50809
  const allValues = (0, import_lodash3.get)(model, parentName, []);
@@ -50989,7 +51078,7 @@ function Radio(_a) {
50989
51078
  var RadioField = connectField13(Radio, { kind: "leaf" });
50990
51079
 
50991
51080
  // src/components/WfoForms/formFields/SubmitField.tsx
50992
- import { filterDOMProps as filterDOMProps13, useForm as useForm4 } from "uniforms";
51081
+ import { filterDOMProps as filterDOMProps13, useForm as useForm5 } from "uniforms";
50993
51082
  import { jsx as jsx114 } from "@emotion/react/jsx-runtime";
50994
51083
  var SubmitField = (_a) => {
50995
51084
  var _b = _a, {
@@ -51003,7 +51092,7 @@ var SubmitField = (_a) => {
51003
51092
  "readOnly",
51004
51093
  "value"
51005
51094
  ]);
51006
- const { error, state } = useForm4();
51095
+ const { error, state } = useForm5();
51007
51096
  return /* @__PURE__ */ jsx114(
51008
51097
  "input",
51009
51098
  __spreadValues(__spreadValues({
@@ -51277,7 +51366,7 @@ import {
51277
51366
  filterDOMProps as filterDOMProps18,
51278
51367
  joinName as joinName6,
51279
51368
  useField as useField6,
51280
- useForm as useForm5
51369
+ useForm as useForm6
51281
51370
  } from "uniforms";
51282
51371
  import { EuiFieldText as EuiFieldText2, EuiFormRow as EuiFormRow12, EuiText as EuiText21 } from "@elastic/eui";
51283
51372
 
@@ -51467,7 +51556,7 @@ function ContactPersonName(_a) {
51467
51556
  ]);
51468
51557
  const axiosApiClient = useAxiosApiClient();
51469
51558
  const t = useTranslations28("pydanticForms");
51470
- const { model, onChange: formOnChange, schema } = useForm5();
51559
+ const { model, onChange: formOnChange, schema } = useForm6();
51471
51560
  const contactsPersonFieldNameArray = joinName6(null, name).slice(0, -1);
51472
51561
  const emailFieldName = joinName6(contactsPersonFieldNameArray, "email");
51473
51562
  const contactsFieldName = joinName6(
@@ -51892,7 +51981,7 @@ var LocationCodeField = connectField21(LocationCode, { kind: "leaf" });
51892
51981
  var import_get3 = __toESM(require_get(), 1);
51893
51982
  import { useEffect as useEffect13, useState as useState22 } from "react";
51894
51983
  import { useTranslations as useTranslations32 } from "next-intl";
51895
- import { connectField as connectField22, filterDOMProps as filterDOMProps22, joinName as joinName7, useForm as useForm6 } from "uniforms";
51984
+ import { connectField as connectField22, filterDOMProps as filterDOMProps22, joinName as joinName7, useForm as useForm7 } from "uniforms";
51896
51985
  import { EuiFieldText as EuiFieldText3, EuiFormRow as EuiFormRow14, EuiText as EuiText23 } from "@elastic/eui";
51897
51986
 
51898
51987
  // src/hooks/surf/useIsTaggedPort.ts
@@ -51995,7 +52084,7 @@ function Vlan(_a) {
51995
52084
  ]);
51996
52085
  const t = useTranslations32("pydanticForms");
51997
52086
  const axiosApiClient = useAxiosApiClient();
51998
- const { model, schema } = useForm6();
52087
+ const { model, schema } = useForm7();
51999
52088
  const initialValue = schema.getInitialValue(name, {});
52000
52089
  const nameArray = joinName7(null, name);
52001
52090
  const selfName = nameArray.slice(-1);
@@ -52107,7 +52196,7 @@ var VlanField = connectField22(Vlan, { kind: "leaf" });
52107
52196
 
52108
52197
  // src/components/WfoForms/formFields/NestField.tsx
52109
52198
  import { connectField as connectField23, filterDOMProps as filterDOMProps23, joinName as joinName8 } from "uniforms";
52110
- import { AutoField as AutoField2 } from "uniforms-unstyled";
52199
+ import { AutoField as AutoField3 } from "uniforms-unstyled";
52111
52200
  import {
52112
52201
  EuiDescribedFormGroup,
52113
52202
  EuiFlexGroup as EuiFlexGroup13,
@@ -52149,7 +52238,7 @@ function Nest(_a) {
52149
52238
  /* @__PURE__ */ jsx125(EuiText24, { size: "m", children: description })
52150
52239
  ] }),
52151
52240
  children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx125(EuiFlexItem17, { children: /* @__PURE__ */ jsx125(
52152
- AutoField2,
52241
+ AutoField3,
52153
52242
  __spreadProps(__spreadValues({
52154
52243
  name: field
52155
52244
  }, itemProps), {
@@ -52167,7 +52256,7 @@ function Nest(_a) {
52167
52256
  description,
52168
52257
  className: `${className} nest-field`,
52169
52258
  children: children || (fields == null ? void 0 : fields.map((field) => /* @__PURE__ */ jsx125(
52170
- AutoField2,
52259
+ AutoField3,
52171
52260
  __spreadProps(__spreadValues({
52172
52261
  name: field
52173
52262
  }, itemProps), {
@@ -52184,7 +52273,7 @@ var NestField = connectField23(Nest);
52184
52273
  // src/components/WfoForms/formFields/OptGroupField.tsx
52185
52274
  import { useTranslations as useTranslations33 } from "next-intl";
52186
52275
  import { connectField as connectField24, filterDOMProps as filterDOMProps24, useField as useField7 } from "uniforms";
52187
- import { AutoField as AutoField3 } from "uniforms-unstyled";
52276
+ import { AutoField as AutoField4 } from "uniforms-unstyled";
52188
52277
  import { EuiDescribedFormGroup as EuiDescribedFormGroup2, EuiFlexItem as EuiFlexItem18, EuiFormRow as EuiFormRow15 } from "@elastic/eui";
52189
52278
  import { Fragment as Fragment23, jsx as jsx126, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
52190
52279
  filterDOMProps24.register("properties");
@@ -52220,7 +52309,7 @@ function OptGroup(_a) {
52220
52309
  children: /* @__PURE__ */ jsx126(BoolField, { name: "enabled", readOnly })
52221
52310
  }
52222
52311
  ) }),
52223
- enabled && (fields == null ? void 0 : fields.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx126(EuiFlexItem18, { children: /* @__PURE__ */ jsx126(AutoField3, __spreadValues({ name: field }, itemProps)) }, field)))
52312
+ enabled && (fields == null ? void 0 : fields.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx126(EuiFlexItem18, { children: /* @__PURE__ */ jsx126(AutoField4, __spreadValues({ name: field }, itemProps)) }, field)))
52224
52313
  ] })
52225
52314
  })
52226
52315
  );
@@ -52236,7 +52325,7 @@ import {
52236
52325
  filterDOMProps as filterDOMProps25,
52237
52326
  joinName as joinName9,
52238
52327
  useField as useField8,
52239
- useForm as useForm7
52328
+ useForm as useForm8
52240
52329
  } from "uniforms";
52241
52330
  import {
52242
52331
  EuiButtonIcon as EuiButtonIcon2,
@@ -52384,7 +52473,7 @@ function SubscriptionFieldDefinition(_a) {
52384
52473
  parentName = name;
52385
52474
  }
52386
52475
  const parent = useField8(parentName, {}, { absoluteName: true })[0];
52387
- const { model, schema } = useForm7();
52476
+ const { model, schema } = useForm8();
52388
52477
  const bandWithFromField = bandwidthKey ? (0, import_get4.default)(model, bandwidthKey) || schema.getInitialValue(bandwidthKey, {}) : void 0;
52389
52478
  const usedBandwidth = bandwidth || bandWithFromField;
52390
52479
  const usedCustomerId = customerKey ? (0, import_get4.default)(model, customerKey, "nonExistingOrgToFilterEverything") : customerId;
@@ -53479,37 +53568,7 @@ function autoFieldFunction(props, uniforms) {
53479
53568
  return DateField;
53480
53569
  }
53481
53570
  }
53482
- return AutoField4.defaultComponentDetector(props, uniforms);
53483
- }
53484
-
53485
- // src/components/WfoForms/AutoFields.tsx
53486
- import { createElement } from "react";
53487
- import { useForm as useForm8 } from "uniforms";
53488
- import { AutoField as AutoField5 } from "uniforms-unstyled";
53489
- function AutoFields(_a) {
53490
- var _b = _a, {
53491
- autoField = AutoField5,
53492
- element = "section",
53493
- fields,
53494
- omitFields = []
53495
- } = _b, props = __objRest(_b, [
53496
- "autoField",
53497
- "element",
53498
- "fields",
53499
- "omitFields"
53500
- ]);
53501
- const { schema } = useForm8();
53502
- return createElement(
53503
- element,
53504
- __spreadValues({}, props),
53505
- (fields != null ? fields : schema.getSubfields()).filter((field) => !omitFields.includes(field)).map(
53506
- (field) => createElement(autoField, {
53507
- key: field,
53508
- name: field,
53509
- className: "form-input"
53510
- })
53511
- )
53512
- );
53571
+ return AutoField5.defaultComponentDetector(props, uniforms);
53513
53572
  }
53514
53573
 
53515
53574
  // src/components/WfoForms/UserInputFormStyling.ts
@@ -54015,6 +54074,9 @@ function UserInputForm({
54015
54074
  var UserInputForm_default = UserInputForm;
54016
54075
 
54017
54076
  // src/components/WfoForms/UserInputFormWizard.tsx
54077
+ import { useEffect as useEffect14, useState as useState25 } from "react";
54078
+ import { useRouter as useRouter7 } from "next/router";
54079
+ import hash from "object-hash";
54018
54080
  import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
54019
54081
  function stop2(e) {
54020
54082
  if (e !== void 0 && e !== null) {
@@ -54089,6 +54151,7 @@ function UserInputFormWizard({
54089
54151
  var UserInputFormWizard_default = UserInputFormWizard;
54090
54152
 
54091
54153
  // src/components/WfoForms/CreateForm.tsx
54154
+ import { useCallback as useCallback4, useEffect as useEffect15, useState as useState26 } from "react";
54092
54155
  import { jsx as jsx136 } from "@emotion/react/jsx-runtime";
54093
54156
  function CreateForm(props) {
54094
54157
  const { preselectedInput, formKey, handleSubmit, handleCancel } = props;
@@ -54097,7 +54160,7 @@ function CreateForm(props) {
54097
54160
  const apiClient = useAxiosApiClient();
54098
54161
  const submit = useCallback4(
54099
54162
  (userInputs) => {
54100
- return apiClient.cimStartForm(formKey, userInputs).then((form2) => {
54163
+ return apiClient.startForm(formKey, userInputs).then((form2) => {
54101
54164
  handleSubmit(form2);
54102
54165
  });
54103
54166
  },
@@ -54175,9 +54238,27 @@ var WfoDateTime = ({ dateOrIsoString }) => {
54175
54238
  return /* @__PURE__ */ jsx138("span", { title: parseDateToLocaleDateTimeString(date), children: parseDateOrTimeRelativeToToday(date) });
54176
54239
  };
54177
54240
 
54241
+ // src/components/WfoAuth/WfoPageUnauthorized.tsx
54242
+ import { useTranslations as useTranslations39 } from "next-intl";
54243
+ import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
54244
+ var WfoPageUnauthorized = () => {
54245
+ const t = useTranslations39("common");
54246
+ return /* @__PURE__ */ jsx139("p", { children: t("unauthorizedPage") });
54247
+ };
54248
+
54249
+ // src/components/WfoAuth/WfoPolicyRenderPageFallback.tsx
54250
+ import { Fragment as Fragment26, jsx as jsx140 } from "@emotion/react/jsx-runtime";
54251
+ var WfoPolicyRenderPageFallback = ({
54252
+ resource,
54253
+ children
54254
+ }) => {
54255
+ const { isAllowed } = usePolicy();
54256
+ return isAllowed(resource) ? /* @__PURE__ */ jsx140(Fragment26, { children }) : /* @__PURE__ */ jsx140(WfoPageUnauthorized, {});
54257
+ };
54258
+
54178
54259
  // src/components/WfoAuth/WfoAuth.tsx
54179
54260
  import { useContext as useContext12 } from "react";
54180
- import { jsx as jsx139 } from "@emotion/react/jsx-runtime";
54261
+ import { jsx as jsx141 } from "@emotion/react/jsx-runtime";
54181
54262
  var WfoAuth = ({
54182
54263
  children,
54183
54264
  isAllowedHandler = () => true
@@ -54187,25 +54268,25 @@ var WfoAuth = ({
54187
54268
  required: authActive
54188
54269
  });
54189
54270
  if (status === "loading") {
54190
- return /* @__PURE__ */ jsx139(WfoLoading, {});
54271
+ return /* @__PURE__ */ jsx141(WfoLoading, {});
54191
54272
  }
54192
- return /* @__PURE__ */ jsx139(PolicyContextProvider, { isAllowedHandler, children });
54273
+ return /* @__PURE__ */ jsx141(PolicyContextProvider, { isAllowedHandler, children });
54193
54274
  };
54194
54275
 
54195
54276
  // src/components/WfoAuth/WfoIsAllowedToRender.tsx
54196
- import { Fragment as Fragment26, jsx as jsx140 } from "@emotion/react/jsx-runtime";
54277
+ import { Fragment as Fragment27, jsx as jsx142 } from "@emotion/react/jsx-runtime";
54197
54278
  var WfoIsAllowedToRender = ({
54198
54279
  resource,
54199
54280
  children
54200
54281
  }) => {
54201
54282
  const { isAllowed } = usePolicy();
54202
- return isAllowed(resource) ? /* @__PURE__ */ jsx140(Fragment26, { children }) : null;
54283
+ return isAllowed(resource) ? /* @__PURE__ */ jsx142(Fragment27, { children }) : null;
54203
54284
  };
54204
54285
 
54205
54286
  // src/components/WfoDropdownButton/WfoDropdownButton.tsx
54206
54287
  import { useState as useState27 } from "react";
54207
54288
  import { EuiButtonGroup, EuiPopover as EuiPopover4 } from "@elastic/eui";
54208
- import { jsx as jsx141 } from "@emotion/react/jsx-runtime";
54289
+ import { jsx as jsx143 } from "@emotion/react/jsx-runtime";
54209
54290
  var WfoDropdownButton = ({
54210
54291
  label,
54211
54292
  children
@@ -54216,7 +54297,7 @@ var WfoDropdownButton = ({
54216
54297
  {
54217
54298
  id: "id_1",
54218
54299
  label,
54219
- iconType: () => /* @__PURE__ */ jsx141(WfoPencilAlt, { color: "currentColor" }),
54300
+ iconType: () => /* @__PURE__ */ jsx143(WfoPencilAlt, { color: "currentColor" }),
54220
54301
  style: {
54221
54302
  textDecoration: isHovered && "underline"
54222
54303
  }
@@ -54224,7 +54305,7 @@ var WfoDropdownButton = ({
54224
54305
  {
54225
54306
  id: "id_2",
54226
54307
  label: "",
54227
- iconType: () => /* @__PURE__ */ jsx141(WfoChevronDown, { color: "currentColor" }),
54308
+ iconType: () => /* @__PURE__ */ jsx143(WfoChevronDown, { color: "currentColor" }),
54228
54309
  onMouseEnter: () => setIsHovered(true),
54229
54310
  onMouseLeave: () => setIsHovered(false)
54230
54311
  }
@@ -54235,11 +54316,11 @@ var WfoDropdownButton = ({
54235
54316
  const closePopover = () => {
54236
54317
  setPopoverOpen(false);
54237
54318
  };
54238
- return /* @__PURE__ */ jsx141(
54319
+ return /* @__PURE__ */ jsx143(
54239
54320
  EuiPopover4,
54240
54321
  {
54241
54322
  ownFocus: true,
54242
- button: /* @__PURE__ */ jsx141(
54323
+ button: /* @__PURE__ */ jsx143(
54243
54324
  EuiButtonGroup,
54244
54325
  {
54245
54326
  type: "multi",
@@ -54263,12 +54344,12 @@ var WfoDropdownButton = ({
54263
54344
  };
54264
54345
 
54265
54346
  // src/components/WfoProcessList/WfoProcessesList.tsx
54266
- import { useTranslations as useTranslations55 } from "next-intl";
54347
+ import { useTranslations as useTranslations56 } from "next-intl";
54267
54348
  import Link7 from "next/link";
54268
54349
 
54269
54350
  // src/pages/metadata/WfoProductBlocksPage.tsx
54270
54351
  import { useEffect as useEffect16, useState as useState28 } from "react";
54271
- import { useTranslations as useTranslations40 } from "next-intl";
54352
+ import { useTranslations as useTranslations41 } from "next-intl";
54272
54353
  import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
54273
54354
 
54274
54355
  // src/utils/sortObjectKeys.ts
@@ -54348,10 +54429,10 @@ var csvDownloadHandler = (dataFetchFunction, dataMapper, pageInfoMapper, keyOrde
54348
54429
  };
54349
54430
 
54350
54431
  // src/pages/metadata/WfoMetadataPageLayout.tsx
54351
- import { useTranslations as useTranslations39 } from "next-intl";
54432
+ import { useTranslations as useTranslations40 } from "next-intl";
54352
54433
  import { useRouter as useRouter9 } from "next/router";
54353
54434
  import { EuiPageHeader as EuiPageHeader2, EuiSpacer as EuiSpacer14, EuiTab as EuiTab2, EuiTabs as EuiTabs2 } from "@elastic/eui";
54354
- import { Fragment as Fragment27, jsx as jsx142, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
54435
+ import { Fragment as Fragment28, jsx as jsx144, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
54355
54436
  var metaDataTabs = [
54356
54437
  {
54357
54438
  id: 1,
@@ -54379,13 +54460,13 @@ var WfoMetadataPageLayout = ({
54379
54460
  tabs = metaDataTabs
54380
54461
  }) => {
54381
54462
  const router = useRouter9();
54382
- const t = useTranslations39("metadata.tabs");
54463
+ const t = useTranslations40("metadata.tabs");
54383
54464
  const currentPath = router.pathname;
54384
- return /* @__PURE__ */ jsxs82(Fragment27, { children: [
54385
- /* @__PURE__ */ jsx142(EuiSpacer14, {}),
54386
- /* @__PURE__ */ jsx142(EuiPageHeader2, { pageTitle: "Metadata" }),
54387
- /* @__PURE__ */ jsx142(EuiSpacer14, { size: "m" }),
54388
- /* @__PURE__ */ jsx142(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx142(
54465
+ return /* @__PURE__ */ jsxs82(Fragment28, { children: [
54466
+ /* @__PURE__ */ jsx144(EuiSpacer14, {}),
54467
+ /* @__PURE__ */ jsx144(EuiPageHeader2, { pageTitle: "Metadata" }),
54468
+ /* @__PURE__ */ jsx144(EuiSpacer14, { size: "m" }),
54469
+ /* @__PURE__ */ jsx144(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx144(
54389
54470
  EuiTab2,
54390
54471
  {
54391
54472
  isSelected: path === currentPath,
@@ -54394,13 +54475,13 @@ var WfoMetadataPageLayout = ({
54394
54475
  },
54395
54476
  id
54396
54477
  )) }),
54397
- /* @__PURE__ */ jsx142(EuiSpacer14, { size: "xxl" }),
54478
+ /* @__PURE__ */ jsx144(EuiSpacer14, { size: "xxl" }),
54398
54479
  children
54399
54480
  ] });
54400
54481
  };
54401
54482
 
54402
54483
  // src/pages/metadata/WfoProductBlocksPage.tsx
54403
- import { Fragment as Fragment28, jsx as jsx143 } from "@emotion/react/jsx-runtime";
54484
+ import { Fragment as Fragment29, jsx as jsx145 } from "@emotion/react/jsx-runtime";
54404
54485
  var PRODUCT_BLOCK_FIELD_ID = "productBlockId";
54405
54486
  var PRODUCT_BLOCK_FIELD_NAME = "name";
54406
54487
  var PRODUCT_BLOCK_FIELD_TAG = "tag";
@@ -54412,8 +54493,8 @@ var PRODUCT_BLOCK_FIELD_RESOURCE_TYPES = "resourceTypes";
54412
54493
  var PRODUCT_BLOCK_FIELD_PRODUCT_BLOCKS = "dependsOn";
54413
54494
  var WfoProductBlocksPage = () => {
54414
54495
  var _a, _b, _c, _d;
54415
- const t = useTranslations40("metadata.productBlocks");
54416
- const tError = useTranslations40("errors");
54496
+ const t = useTranslations41("metadata.productBlocks");
54497
+ const tError = useTranslations41("errors");
54417
54498
  const { showToastMessage } = useShowToastMessage();
54418
54499
  const [tableDefaults, setTableDefaults] = useState28();
54419
54500
  const getStoredTableConfig = useStoredTableConfig(
@@ -54441,14 +54522,14 @@ var WfoProductBlocksPage = () => {
54441
54522
  field: PRODUCT_BLOCK_FIELD_ID,
54442
54523
  name: t("id"),
54443
54524
  width: "90",
54444
- render: (value) => /* @__PURE__ */ jsx143(WfoFirstPartUUID, { UUID: value }),
54525
+ render: (value) => /* @__PURE__ */ jsx145(WfoFirstPartUUID, { UUID: value }),
54445
54526
  renderDetails: (value) => value
54446
54527
  },
54447
54528
  name: {
54448
54529
  field: PRODUCT_BLOCK_FIELD_NAME,
54449
54530
  name: t("name"),
54450
54531
  width: "200",
54451
- render: (name) => /* @__PURE__ */ jsx143(WfoProductBlockBadge, { badgeType: "product_block" /* PRODUCT_BLOCK */, children: name })
54532
+ render: (name) => /* @__PURE__ */ jsx145(WfoProductBlockBadge, { badgeType: "product_block" /* PRODUCT_BLOCK */, children: name })
54452
54533
  },
54453
54534
  tag: {
54454
54535
  field: PRODUCT_BLOCK_FIELD_TAG,
@@ -54464,12 +54545,12 @@ var WfoProductBlocksPage = () => {
54464
54545
  field: PRODUCT_BLOCK_FIELD_STATUS,
54465
54546
  name: t("status"),
54466
54547
  width: "90",
54467
- render: (value) => /* @__PURE__ */ jsx143(WfoProductStatusBadge, { status: value })
54548
+ render: (value) => /* @__PURE__ */ jsx145(WfoProductStatusBadge, { status: value })
54468
54549
  },
54469
54550
  dependsOn: {
54470
54551
  field: PRODUCT_BLOCK_FIELD_PRODUCT_BLOCKS,
54471
54552
  name: t("dependingProductBlocks"),
54472
- render: (dependsOn) => /* @__PURE__ */ jsx143(Fragment28, { children: dependsOn.map((productBlock, index) => /* @__PURE__ */ jsx143(
54553
+ render: (dependsOn) => /* @__PURE__ */ jsx145(Fragment29, { children: dependsOn.map((productBlock, index) => /* @__PURE__ */ jsx145(
54473
54554
  WfoProductBlockBadge,
54474
54555
  {
54475
54556
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -54481,7 +54562,7 @@ var WfoProductBlocksPage = () => {
54481
54562
  resourceTypes: {
54482
54563
  field: PRODUCT_BLOCK_FIELD_RESOURCE_TYPES,
54483
54564
  name: t("resourceTypes"),
54484
- render: (resourceTypes) => /* @__PURE__ */ jsx143(Fragment28, { children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx143(
54565
+ render: (resourceTypes) => /* @__PURE__ */ jsx145(Fragment29, { children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx145(
54485
54566
  WfoProductBlockBadge,
54486
54567
  {
54487
54568
  badgeType: "resource_type" /* RESOURCE_TYPE */,
@@ -54489,7 +54570,7 @@ var WfoProductBlocksPage = () => {
54489
54570
  },
54490
54571
  index
54491
54572
  )) }),
54492
- renderDetails: (resourceTypes) => /* @__PURE__ */ jsx143(EuiBadgeGroup3, { gutterSize: "s", children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx143(
54573
+ renderDetails: (resourceTypes) => /* @__PURE__ */ jsx145(EuiBadgeGroup3, { gutterSize: "s", children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx145(
54493
54574
  WfoProductBlockBadge,
54494
54575
  {
54495
54576
  badgeType: "resource_type" /* RESOURCE_TYPE */,
@@ -54501,14 +54582,14 @@ var WfoProductBlocksPage = () => {
54501
54582
  createdAt: {
54502
54583
  field: PRODUCT_BLOCK_FIELD_CREATED_AT,
54503
54584
  name: t("createdAt"),
54504
- render: (date) => /* @__PURE__ */ jsx143(WfoDateTime, { dateOrIsoString: date }),
54585
+ render: (date) => /* @__PURE__ */ jsx145(WfoDateTime, { dateOrIsoString: date }),
54505
54586
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
54506
54587
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
54507
54588
  },
54508
54589
  endDate: {
54509
54590
  field: PRODUCT_BLOCK_FIELD_END_DATE,
54510
54591
  name: t("endDate"),
54511
- render: (date) => /* @__PURE__ */ jsx143(WfoDateTime, { dateOrIsoString: date }),
54592
+ render: (date) => /* @__PURE__ */ jsx145(WfoDateTime, { dateOrIsoString: date }),
54512
54593
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
54513
54594
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
54514
54595
  }
@@ -54541,7 +54622,7 @@ var WfoProductBlocksPage = () => {
54541
54622
  pageSizeOptions: DEFAULT_PAGE_SIZES,
54542
54623
  totalItemCount: totalItems ? totalItems : 0
54543
54624
  };
54544
- return /* @__PURE__ */ jsx143(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx143(
54625
+ return /* @__PURE__ */ jsx145(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx145(
54545
54626
  WfoTableWithFilter,
54546
54627
  {
54547
54628
  data: (data == null ? void 0 : data.productBlocks.page) || [],
@@ -54582,17 +54663,17 @@ var WfoProductBlocksPage = () => {
54582
54663
 
54583
54664
  // src/pages/metadata/WfoResourceTypesPage.tsx
54584
54665
  import { useEffect as useEffect17, useState as useState29 } from "react";
54585
- import { useTranslations as useTranslations41 } from "next-intl";
54666
+ import { useTranslations as useTranslations42 } from "next-intl";
54586
54667
  import { EuiBadgeGroup as EuiBadgeGroup4 } from "@elastic/eui";
54587
- import { Fragment as Fragment29, jsx as jsx144 } from "@emotion/react/jsx-runtime";
54668
+ import { Fragment as Fragment30, jsx as jsx146 } from "@emotion/react/jsx-runtime";
54588
54669
  var RESOURCE_TYPE_FIELD_ID = "resourceTypeId";
54589
54670
  var RESOURCE_TYPE_FIELD_TYPE = "resourceType";
54590
54671
  var RESOURCE_TYPE_FIELD_DESCRIPTION = "description";
54591
54672
  var RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS = "productBlocks";
54592
54673
  var WfoResourceTypesPage = () => {
54593
54674
  var _a, _b, _c;
54594
- const t = useTranslations41("metadata.resourceTypes");
54595
- const tError = useTranslations41("errors");
54675
+ const t = useTranslations42("metadata.resourceTypes");
54676
+ const tError = useTranslations42("errors");
54596
54677
  const { showToastMessage } = useShowToastMessage();
54597
54678
  const [tableDefaults, setTableDefaults] = useState29();
54598
54679
  const getStoredTableConfig = useStoredTableConfig(
@@ -54620,14 +54701,14 @@ var WfoResourceTypesPage = () => {
54620
54701
  field: RESOURCE_TYPE_FIELD_ID,
54621
54702
  name: t("resourceId"),
54622
54703
  width: "90",
54623
- render: (value) => /* @__PURE__ */ jsx144(WfoFirstPartUUID, { UUID: value }),
54704
+ render: (value) => /* @__PURE__ */ jsx146(WfoFirstPartUUID, { UUID: value }),
54624
54705
  renderDetails: (value) => value
54625
54706
  },
54626
54707
  resourceType: {
54627
54708
  field: RESOURCE_TYPE_FIELD_TYPE,
54628
54709
  name: t("type"),
54629
54710
  width: "200",
54630
- render: (value) => /* @__PURE__ */ jsx144(WfoProductBlockBadge, { badgeType: "resource_type" /* RESOURCE_TYPE */, children: value })
54711
+ render: (value) => /* @__PURE__ */ jsx146(WfoProductBlockBadge, { badgeType: "resource_type" /* RESOURCE_TYPE */, children: value })
54631
54712
  },
54632
54713
  description: {
54633
54714
  field: RESOURCE_TYPE_FIELD_DESCRIPTION,
@@ -54636,7 +54717,7 @@ var WfoResourceTypesPage = () => {
54636
54717
  productBlocks: {
54637
54718
  field: RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS,
54638
54719
  name: t("usedInProductBlocks"),
54639
- render: (productBlocks) => /* @__PURE__ */ jsx144(Fragment29, { children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx144(
54720
+ render: (productBlocks) => /* @__PURE__ */ jsx146(Fragment30, { children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx146(
54640
54721
  WfoProductBlockBadge,
54641
54722
  {
54642
54723
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -54644,7 +54725,7 @@ var WfoResourceTypesPage = () => {
54644
54725
  },
54645
54726
  index
54646
54727
  )) }),
54647
- renderDetails: (productBlocks) => /* @__PURE__ */ jsx144(EuiBadgeGroup4, { gutterSize: "s", children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx144(
54728
+ renderDetails: (productBlocks) => /* @__PURE__ */ jsx146(EuiBadgeGroup4, { gutterSize: "s", children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx146(
54648
54729
  WfoProductBlockBadge,
54649
54730
  {
54650
54731
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -54682,7 +54763,7 @@ var WfoResourceTypesPage = () => {
54682
54763
  pageSizeOptions: DEFAULT_PAGE_SIZES,
54683
54764
  totalItemCount: totalItems ? totalItems : 0
54684
54765
  };
54685
- return /* @__PURE__ */ jsx144(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx144(
54766
+ return /* @__PURE__ */ jsx146(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx146(
54686
54767
  WfoTableWithFilter,
54687
54768
  {
54688
54769
  data: data ? data.resourceTypes.page : [],
@@ -54723,8 +54804,8 @@ var WfoResourceTypesPage = () => {
54723
54804
 
54724
54805
  // src/pages/metadata/WfoProductsPage.tsx
54725
54806
  import { useEffect as useEffect18, useState as useState30 } from "react";
54726
- import { useTranslations as useTranslations42 } from "next-intl";
54727
- import { Fragment as Fragment30, jsx as jsx145 } from "@emotion/react/jsx-runtime";
54807
+ import { useTranslations as useTranslations43 } from "next-intl";
54808
+ import { Fragment as Fragment31, jsx as jsx147 } from "@emotion/react/jsx-runtime";
54728
54809
  var PRODUCT_FIELD_PRODUCT_ID = "productId";
54729
54810
  var PRODUCT_FIELD_NAME = "name";
54730
54811
  var PRODUCT_FIELD_DESCRIPTION = "description";
@@ -54736,8 +54817,8 @@ var PRODUCT_FIELD_FIXED_INPUTS = "fixedInputs";
54736
54817
  var PRODUCT_FIELD_CREATED_AT = "createdAt";
54737
54818
  var WfoProductsPage = () => {
54738
54819
  var _a, _b, _c, _d;
54739
- const t = useTranslations42("metadata.products");
54740
- const tError = useTranslations42("errors");
54820
+ const t = useTranslations43("metadata.products");
54821
+ const tError = useTranslations43("errors");
54741
54822
  const { showToastMessage } = useShowToastMessage();
54742
54823
  const [tableDefaults, setTableDefaults] = useState30();
54743
54824
  const getStoredTableConfig = useStoredTableConfig(
@@ -54765,7 +54846,7 @@ var WfoProductsPage = () => {
54765
54846
  field: PRODUCT_FIELD_PRODUCT_ID,
54766
54847
  name: t("id"),
54767
54848
  width: "90",
54768
- render: (value) => /* @__PURE__ */ jsx145(WfoFirstPartUUID, { UUID: value }),
54849
+ render: (value) => /* @__PURE__ */ jsx147(WfoFirstPartUUID, { UUID: value }),
54769
54850
  renderDetails: (value) => value
54770
54851
  },
54771
54852
  name: {
@@ -54777,7 +54858,7 @@ var WfoProductsPage = () => {
54777
54858
  field: PRODUCT_FIELD_TAG,
54778
54859
  name: t("tag"),
54779
54860
  width: "120",
54780
- render: (value) => /* @__PURE__ */ jsx145(WfoProductBlockBadge, { badgeType: "product_tag" /* PRODUCT_TAG */, children: value })
54861
+ render: (value) => /* @__PURE__ */ jsx147(WfoProductBlockBadge, { badgeType: "product_tag" /* PRODUCT_TAG */, children: value })
54781
54862
  },
54782
54863
  description: {
54783
54864
  field: PRODUCT_FIELD_DESCRIPTION,
@@ -54792,12 +54873,12 @@ var WfoProductsPage = () => {
54792
54873
  field: PRODUCT_FIELD_STATUS,
54793
54874
  name: t("status"),
54794
54875
  width: "90",
54795
- render: (value) => /* @__PURE__ */ jsx145(WfoProductStatusBadge, { status: value })
54876
+ render: (value) => /* @__PURE__ */ jsx147(WfoProductStatusBadge, { status: value })
54796
54877
  },
54797
54878
  fixedInputs: {
54798
54879
  field: PRODUCT_FIELD_FIXED_INPUTS,
54799
54880
  name: t("fixedInputs"),
54800
- render: (fixedInputs) => /* @__PURE__ */ jsx145(Fragment30, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx145(
54881
+ render: (fixedInputs) => /* @__PURE__ */ jsx147(Fragment31, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx147(
54801
54882
  WfoProductBlockBadge,
54802
54883
  {
54803
54884
  badgeType: "fixed_input" /* FIXED_INPUT */,
@@ -54809,7 +54890,7 @@ var WfoProductsPage = () => {
54809
54890
  productBlocks: {
54810
54891
  field: PRODUCT_FIELD_PRODUCT_BLOCKS,
54811
54892
  name: t("productBlocks"),
54812
- render: (productBlocks) => /* @__PURE__ */ jsx145(Fragment30, { children: productBlocks.map((block, index) => /* @__PURE__ */ jsx145(
54893
+ render: (productBlocks) => /* @__PURE__ */ jsx147(Fragment31, { children: productBlocks.map((block, index) => /* @__PURE__ */ jsx147(
54813
54894
  WfoProductBlockBadge,
54814
54895
  {
54815
54896
  badgeType: "product_block" /* PRODUCT_BLOCK */,
@@ -54821,7 +54902,7 @@ var WfoProductsPage = () => {
54821
54902
  createdAt: {
54822
54903
  field: PRODUCT_FIELD_CREATED_AT,
54823
54904
  name: t("createdAt"),
54824
- render: (date) => /* @__PURE__ */ jsx145(WfoDateTime, { dateOrIsoString: date }),
54905
+ render: (date) => /* @__PURE__ */ jsx147(WfoDateTime, { dateOrIsoString: date }),
54825
54906
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
54826
54907
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
54827
54908
  }
@@ -54854,7 +54935,7 @@ var WfoProductsPage = () => {
54854
54935
  field: (_c = sortBy == null ? void 0 : sortBy.field) != null ? _c : PRODUCT_FIELD_NAME,
54855
54936
  sortOrder: (_d = sortBy == null ? void 0 : sortBy.order) != null ? _d : "ASC" /* ASC */
54856
54937
  };
54857
- return /* @__PURE__ */ jsx145(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx145(
54938
+ return /* @__PURE__ */ jsx147(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx147(
54858
54939
  WfoTableWithFilter,
54859
54940
  {
54860
54941
  data: data ? data.products.page : [],
@@ -54895,7 +54976,7 @@ var WfoProductsPage = () => {
54895
54976
 
54896
54977
  // src/pages/metadata/WfoWorkflowsPage.tsx
54897
54978
  import { useEffect as useEffect19, useState as useState31 } from "react";
54898
- import { useTranslations as useTranslations43 } from "next-intl";
54979
+ import { useTranslations as useTranslations44 } from "next-intl";
54899
54980
  import { EuiBadgeGroup as EuiBadgeGroup5 } from "@elastic/eui";
54900
54981
 
54901
54982
  // src/graphqlQueries/workflows/workflowsQuery.ts
@@ -54964,11 +55045,11 @@ var graphQlWorkflowListMapper = ({
54964
55045
  });
54965
55046
 
54966
55047
  // src/pages/metadata/WfoWorkflowsPage.tsx
54967
- import { Fragment as Fragment31, jsx as jsx146 } from "@emotion/react/jsx-runtime";
55048
+ import { Fragment as Fragment32, jsx as jsx148 } from "@emotion/react/jsx-runtime";
54968
55049
  var WfoWorkflowsPage = () => {
54969
55050
  var _a, _b, _c;
54970
- const t = useTranslations43("metadata.workflows");
54971
- const tError = useTranslations43("errors");
55051
+ const t = useTranslations44("metadata.workflows");
55052
+ const tError = useTranslations44("errors");
54972
55053
  const { showToastMessage } = useShowToastMessage();
54973
55054
  const [tableDefaults, setTableDefaults] = useState31();
54974
55055
  const getStoredTableConfig = useStoredTableConfig(
@@ -54996,7 +55077,7 @@ var WfoWorkflowsPage = () => {
54996
55077
  field: "name",
54997
55078
  name: t("name"),
54998
55079
  width: "200",
54999
- render: (name) => /* @__PURE__ */ jsx146(WfoProductBlockBadge, { badgeType: "workflow" /* WORKFLOW */, children: name })
55080
+ render: (name) => /* @__PURE__ */ jsx148(WfoProductBlockBadge, { badgeType: "workflow" /* WORKFLOW */, children: name })
55000
55081
  },
55001
55082
  description: {
55002
55083
  field: "description",
@@ -55007,12 +55088,12 @@ var WfoWorkflowsPage = () => {
55007
55088
  field: "target",
55008
55089
  name: t("target"),
55009
55090
  width: "90",
55010
- render: (target) => /* @__PURE__ */ jsx146(WfoWorkflowTargetBadge, { target })
55091
+ render: (target) => /* @__PURE__ */ jsx148(WfoWorkflowTargetBadge, { target })
55011
55092
  },
55012
55093
  productTags: {
55013
55094
  field: "productTags",
55014
55095
  name: t("productTags"),
55015
- render: (productTags) => /* @__PURE__ */ jsx146(Fragment31, { children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx146(
55096
+ render: (productTags) => /* @__PURE__ */ jsx148(Fragment32, { children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx148(
55016
55097
  WfoProductBlockBadge,
55017
55098
  {
55018
55099
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -55020,7 +55101,7 @@ var WfoWorkflowsPage = () => {
55020
55101
  },
55021
55102
  index
55022
55103
  )) }),
55023
- renderDetails: (productTags) => /* @__PURE__ */ jsx146(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx146(
55104
+ renderDetails: (productTags) => /* @__PURE__ */ jsx148(EuiBadgeGroup5, { gutterSize: "s", children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx148(
55024
55105
  WfoProductBlockBadge,
55025
55106
  {
55026
55107
  badgeType: "product_tag" /* PRODUCT_TAG */,
@@ -55033,7 +55114,7 @@ var WfoWorkflowsPage = () => {
55033
55114
  field: "createdAt",
55034
55115
  name: t("createdAt"),
55035
55116
  width: "110",
55036
- render: (date) => /* @__PURE__ */ jsx146(WfoDateTime, { dateOrIsoString: date }),
55117
+ render: (date) => /* @__PURE__ */ jsx148(WfoDateTime, { dateOrIsoString: date }),
55037
55118
  renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
55038
55119
  clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
55039
55120
  }
@@ -55066,7 +55147,7 @@ var WfoWorkflowsPage = () => {
55066
55147
  pageSizeOptions: DEFAULT_PAGE_SIZES,
55067
55148
  totalItemCount: totalItems ? totalItems : 0
55068
55149
  };
55069
- return /* @__PURE__ */ jsx146(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx146(
55150
+ return /* @__PURE__ */ jsx148(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx148(
55070
55151
  WfoTableWithFilter,
55071
55152
  {
55072
55153
  data: data ? mapWorkflowDefinitionToWorkflowListItem(data) : [],
@@ -55108,7 +55189,7 @@ var WfoWorkflowsPage = () => {
55108
55189
  // src/pages/processes/WfoProcessListSubscriptionsCell.tsx
55109
55190
  import Link3 from "next/link";
55110
55191
  import { EuiFlexGroup as EuiFlexGroup17 } from "@elastic/eui";
55111
- import { Fragment as Fragment32, jsx as jsx147, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
55192
+ import { Fragment as Fragment33, jsx as jsx149, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
55112
55193
  var RENDER_ALL = "RENDER_ALL";
55113
55194
  var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
55114
55195
  RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
@@ -55126,13 +55207,13 @@ var WfoProcessListSubscriptionsCell = ({
55126
55207
  }
55127
55208
  const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
55128
55209
  const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
55129
- return /* @__PURE__ */ jsx147(Fragment32, { children: /* @__PURE__ */ jsxs83(
55210
+ return /* @__PURE__ */ jsx149(Fragment33, { children: /* @__PURE__ */ jsxs83(
55130
55211
  EuiFlexGroup17,
55131
55212
  {
55132
55213
  direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
55133
55214
  gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "m" : "xs",
55134
55215
  children: [
55135
- visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx147(
55216
+ visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx149(
55136
55217
  Link3,
55137
55218
  {
55138
55219
  href: `/subscriptions/${subscription.subscriptionId}`,
@@ -55144,7 +55225,7 @@ var WfoProcessListSubscriptionsCell = ({
55144
55225
  },
55145
55226
  subscription.subscriptionId
55146
55227
  )),
55147
- numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsx147("span", { children: `(+${numberOfNotVisibleSubscriptions})` })
55228
+ numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsx149("span", { children: `(+${numberOfNotVisibleSubscriptions})` })
55148
55229
  ]
55149
55230
  }
55150
55231
  ) });
@@ -55155,7 +55236,7 @@ import { useEffect as useEffect22, useRef as useRef7, useState as useState36 } f
55155
55236
 
55156
55237
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
55157
55238
  import React43 from "react";
55158
- import { useTranslations as useTranslations44 } from "next-intl";
55239
+ import { useTranslations as useTranslations45 } from "next-intl";
55159
55240
  import { EuiFlexGroup as EuiFlexGroup18, EuiFlexItem as EuiFlexItem25, EuiPanel as EuiPanel4, EuiText as EuiText29 } from "@elastic/eui";
55160
55241
 
55161
55242
  // src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
@@ -55261,26 +55342,26 @@ var getStyles12 = (theme) => {
55261
55342
  };
55262
55343
 
55263
55344
  // src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
55264
- import { jsx as jsx148, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
55345
+ import { jsx as jsx150, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
55265
55346
  var SubIcon = ({ stepStatus, color = "" }) => {
55266
55347
  switch (stepStatus) {
55267
55348
  case "suspend" /* SUSPEND */:
55268
- return /* @__PURE__ */ jsx148(WfoMinusCircleFill, { color });
55349
+ return /* @__PURE__ */ jsx150(WfoMinusCircleFill, { color });
55269
55350
  case "failed" /* FAILED */:
55270
- return /* @__PURE__ */ jsx148(WfoXCircleFill, { color });
55351
+ return /* @__PURE__ */ jsx150(WfoXCircleFill, { color });
55271
55352
  default:
55272
- return /* @__PURE__ */ jsx148(WfoCheckmarkCircleFill, { color });
55353
+ return /* @__PURE__ */ jsx150(WfoCheckmarkCircleFill, { color });
55273
55354
  }
55274
55355
  };
55275
55356
  var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
55276
55357
  if (isStartStep) {
55277
- return /* @__PURE__ */ jsx148(WfoPlayFill, { color });
55358
+ return /* @__PURE__ */ jsx150(WfoPlayFill, { color });
55278
55359
  }
55279
55360
  switch (stepStatus) {
55280
55361
  case "form" /* FORM */:
55281
- return /* @__PURE__ */ jsx148(WfoPencilAlt, { color });
55362
+ return /* @__PURE__ */ jsx150(WfoPencilAlt, { color });
55282
55363
  default:
55283
- return /* @__PURE__ */ jsx148(WfoCogFill, { color, width: 16, height: 16 });
55364
+ return /* @__PURE__ */ jsx150(WfoCogFill, { color, width: 16, height: 16 });
55284
55365
  }
55285
55366
  };
55286
55367
  var WfoStepStatusIcon = ({
@@ -55324,7 +55405,7 @@ var WfoStepStatusIcon = ({
55324
55405
  }
55325
55406
  })();
55326
55407
  return /* @__PURE__ */ jsxs84(EuiFlexItem23, { css: { flexDirection: "row" }, grow: 0, children: [
55327
- /* @__PURE__ */ jsx148("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx148(
55408
+ /* @__PURE__ */ jsx150("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx150(
55328
55409
  MainIcon,
55329
55410
  {
55330
55411
  color: mainIconColor,
@@ -55332,7 +55413,7 @@ var WfoStepStatusIcon = ({
55332
55413
  isStartStep
55333
55414
  }
55334
55415
  ) }),
55335
- /* @__PURE__ */ jsx148(
55416
+ /* @__PURE__ */ jsx150(
55336
55417
  "div",
55337
55418
  {
55338
55419
  css: {
@@ -55340,7 +55421,7 @@ var WfoStepStatusIcon = ({
55340
55421
  width: `${theme.base}`,
55341
55422
  visibility: hasSubIcon ? "visible" : "hidden"
55342
55423
  },
55343
- children: /* @__PURE__ */ jsx148(SubIcon, { color: subIconColor, stepStatus })
55424
+ children: /* @__PURE__ */ jsx150(SubIcon, { color: subIconColor, stepStatus })
55344
55425
  }
55345
55426
  )
55346
55427
  ] });
@@ -55370,7 +55451,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
55370
55451
  // src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
55371
55452
  import { useState as useState32 } from "react";
55372
55453
  import { EuiFlexItem as EuiFlexItem24 } from "@elastic/eui";
55373
- import { jsx as jsx149 } from "@emotion/react/jsx-runtime";
55454
+ import { jsx as jsx151 } from "@emotion/react/jsx-runtime";
55374
55455
  var WfoStepForm = ({
55375
55456
  userInputForm,
55376
55457
  isTask,
@@ -55387,7 +55468,7 @@ var WfoStepForm = ({
55387
55468
  setIsProcessing(true);
55388
55469
  });
55389
55470
  };
55390
- return /* @__PURE__ */ jsx149(EuiFlexItem24, { css: { margin: theme.size.m }, children: isProcessing && /* @__PURE__ */ jsx149(WfoLoading, {}) || /* @__PURE__ */ jsx149(
55471
+ return /* @__PURE__ */ jsx151(EuiFlexItem24, { css: { margin: theme.size.m }, children: isProcessing && /* @__PURE__ */ jsx151(WfoLoading, {}) || /* @__PURE__ */ jsx151(
55391
55472
  UserInputFormWizard,
55392
55473
  {
55393
55474
  stepUserInput: userInputForm,
@@ -55400,7 +55481,7 @@ var WfoStepForm = ({
55400
55481
  };
55401
55482
 
55402
55483
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
55403
- import { Fragment as Fragment33, jsx as jsx150, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
55484
+ import { Fragment as Fragment34, jsx as jsx152, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
55404
55485
  var WfoStep = React43.forwardRef(
55405
55486
  ({
55406
55487
  stepListItem,
@@ -55423,7 +55504,7 @@ var WfoStep = React43.forwardRef(
55423
55504
  stepRowStyle,
55424
55505
  getStepToggleExpandStyle
55425
55506
  } = getStyles12(theme);
55426
- const t = useTranslations44("processes.steps");
55507
+ const t = useTranslations45("processes.steps");
55427
55508
  const hasHtmlMail = (_a = step.stateDelta) == null ? void 0 : _a.hasOwnProperty("confirmation_mail");
55428
55509
  const stepContent = step.stateDelta ? getStepContent(step.stateDelta, showHiddenKeys) : {};
55429
55510
  const hasStepContent = hasHtmlMail || Object.keys(stepContent).length > 0;
@@ -55432,28 +55513,28 @@ var WfoStep = React43.forwardRef(
55432
55513
  return "";
55433
55514
  }
55434
55515
  return /* @__PURE__ */ jsxs85(EuiText29, { size: "s", children: [
55435
- /* @__PURE__ */ jsx150("h4", { children: "To" }),
55436
- /* @__PURE__ */ jsx150("p", { children: value.to.map(
55516
+ /* @__PURE__ */ jsx152("h4", { children: "To" }),
55517
+ /* @__PURE__ */ jsx152("p", { children: value.to.map(
55437
55518
  (v, i) => /* @__PURE__ */ jsxs85("div", { children: [
55438
55519
  v.name,
55439
55520
  " <",
55440
- /* @__PURE__ */ jsx150("a", { href: `mailto: ${v.email}`, children: v.email }),
55521
+ /* @__PURE__ */ jsx152("a", { href: `mailto: ${v.email}`, children: v.email }),
55441
55522
  ">"
55442
55523
  ] }, `to-${i}`)
55443
55524
  ) }),
55444
- /* @__PURE__ */ jsx150("h4", { children: "CC" }),
55445
- /* @__PURE__ */ jsx150("p", { children: value.cc.map(
55525
+ /* @__PURE__ */ jsx152("h4", { children: "CC" }),
55526
+ /* @__PURE__ */ jsx152("p", { children: value.cc.map(
55446
55527
  (v, i) => /* @__PURE__ */ jsxs85("div", { children: [
55447
55528
  v.name,
55448
55529
  " <",
55449
- /* @__PURE__ */ jsx150("a", { href: `mailto: ${v.email}`, children: v.email }),
55530
+ /* @__PURE__ */ jsx152("a", { href: `mailto: ${v.email}`, children: v.email }),
55450
55531
  ">"
55451
55532
  ] }, `cc-${i}`)
55452
55533
  ) }),
55453
- /* @__PURE__ */ jsx150("h4", { children: "Subject" }),
55454
- /* @__PURE__ */ jsx150("p", { children: value.subject }),
55455
- /* @__PURE__ */ jsx150("h4", { children: "Message" }),
55456
- /* @__PURE__ */ jsx150(
55534
+ /* @__PURE__ */ jsx152("h4", { children: "Subject" }),
55535
+ /* @__PURE__ */ jsx152("p", { children: value.subject }),
55536
+ /* @__PURE__ */ jsx152("h4", { children: "Message" }),
55537
+ /* @__PURE__ */ jsx152(
55457
55538
  "div",
55458
55539
  {
55459
55540
  className: "emailMessage",
@@ -55462,14 +55543,14 @@ var WfoStep = React43.forwardRef(
55462
55543
  )
55463
55544
  ] });
55464
55545
  };
55465
- return /* @__PURE__ */ jsx150("div", { ref, children: /* @__PURE__ */ jsxs85(EuiPanel4, { children: [
55546
+ return /* @__PURE__ */ jsx152("div", { ref, children: /* @__PURE__ */ jsxs85(EuiPanel4, { children: [
55466
55547
  /* @__PURE__ */ jsxs85(
55467
55548
  EuiFlexGroup18,
55468
55549
  {
55469
55550
  css: getStepHeaderStyle(hasStepContent),
55470
55551
  onClick: () => hasStepContent && onToggleStepDetail(),
55471
55552
  children: [
55472
- /* @__PURE__ */ jsx150(
55553
+ /* @__PURE__ */ jsx152(
55473
55554
  WfoStepStatusIcon,
55474
55555
  {
55475
55556
  stepStatus: step.status,
@@ -55477,47 +55558,47 @@ var WfoStep = React43.forwardRef(
55477
55558
  }
55478
55559
  ),
55479
55560
  /* @__PURE__ */ jsxs85(EuiFlexItem25, { grow: 0, children: [
55480
- /* @__PURE__ */ jsx150(EuiText29, { css: stepListContentBoldTextStyle, children: step.name }),
55561
+ /* @__PURE__ */ jsx152(EuiText29, { css: stepListContentBoldTextStyle, children: step.name }),
55481
55562
  /* @__PURE__ */ jsxs85(EuiText29, { children: [
55482
55563
  step.status,
55483
55564
  " ",
55484
55565
  step.executed && `- ${formatDate(step.executed)}`
55485
55566
  ] })
55486
55567
  ] }),
55487
- /* @__PURE__ */ jsx150(EuiFlexGroup18, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs85(Fragment33, { children: [
55568
+ /* @__PURE__ */ jsx152(EuiFlexGroup18, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs85(Fragment34, { children: [
55488
55569
  /* @__PURE__ */ jsxs85(
55489
55570
  EuiFlexItem25,
55490
55571
  {
55491
55572
  grow: 0,
55492
55573
  css: stepHeaderRightStyle,
55493
55574
  children: [
55494
- /* @__PURE__ */ jsx150(EuiText29, { css: stepDurationStyle, children: t("duration") }),
55495
- /* @__PURE__ */ jsx150(EuiText29, { size: "m", children: calculateTimeDifference(
55575
+ /* @__PURE__ */ jsx152(EuiText29, { css: stepDurationStyle, children: t("duration") }),
55576
+ /* @__PURE__ */ jsx152(EuiText29, { size: "m", children: calculateTimeDifference(
55496
55577
  startedAt,
55497
55578
  step.executed
55498
55579
  ) })
55499
55580
  ]
55500
55581
  }
55501
55582
  ),
55502
- /* @__PURE__ */ jsx150(
55583
+ /* @__PURE__ */ jsx152(
55503
55584
  EuiFlexItem25,
55504
55585
  {
55505
55586
  grow: 0,
55506
55587
  css: getStepToggleExpandStyle(
55507
55588
  hasStepContent
55508
55589
  ),
55509
- children: isExpanded && /* @__PURE__ */ jsx150(WfoChevronUp, {}) || /* @__PURE__ */ jsx150(WfoChevronDown, {})
55590
+ children: isExpanded && /* @__PURE__ */ jsx152(WfoChevronUp, {}) || /* @__PURE__ */ jsx152(WfoChevronDown, {})
55510
55591
  }
55511
55592
  )
55512
55593
  ] }) })
55513
55594
  ]
55514
55595
  }
55515
55596
  ),
55516
- hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */ jsx150(WfoJsonCodeBlock, { data: stepContent }),
55517
- isExpanded && hasHtmlMail && /* @__PURE__ */ jsx150("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
55597
+ hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */ jsx152(WfoJsonCodeBlock, { data: stepContent }),
55598
+ isExpanded && hasHtmlMail && /* @__PURE__ */ jsx152("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
55518
55599
  step.stateDelta.confirmation_mail
55519
55600
  ) }),
55520
- step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx150(
55601
+ step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx152(
55521
55602
  WfoStepForm,
55522
55603
  {
55523
55604
  userInputForm,
@@ -55532,7 +55613,7 @@ WfoStep.displayName = "WfoStep";
55532
55613
 
55533
55614
  // src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
55534
55615
  import React44, { useImperativeHandle, useRef as useRef6 } from "react";
55535
- import { Fragment as Fragment34, jsx as jsx151, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
55616
+ import { Fragment as Fragment35, jsx as jsx153, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
55536
55617
  var WfoStepList = React44.forwardRef(
55537
55618
  ({
55538
55619
  stepListItems,
@@ -55574,10 +55655,10 @@ var WfoStepList = React44.forwardRef(
55574
55655
  })
55575
55656
  }));
55576
55657
  const getReferenceCallbackForStepId = (stepId) => (node) => node ? stepReferences.current.set(stepId, node) : stepReferences.current.delete(stepId);
55577
- return /* @__PURE__ */ jsx151(Fragment34, { children: stepListItems.map((stepListItem, index) => {
55658
+ return /* @__PURE__ */ jsx153(Fragment35, { children: stepListItems.map((stepListItem, index) => {
55578
55659
  const stepComponent = /* @__PURE__ */ jsxs86("div", { children: [
55579
- index !== 0 && /* @__PURE__ */ jsx151("div", { css: stepSpacerStyle }),
55580
- /* @__PURE__ */ jsx151(
55660
+ index !== 0 && /* @__PURE__ */ jsx153("div", { css: stepSpacerStyle }),
55661
+ /* @__PURE__ */ jsx153(
55581
55662
  WfoStep,
55582
55663
  {
55583
55664
  ref: getReferenceCallbackForStepId(
@@ -55604,14 +55685,14 @@ WfoStepList.displayName = "WfoStepList";
55604
55685
 
55605
55686
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
55606
55687
  import React47, { useEffect as useEffect21, useState as useState35 } from "react";
55607
- import { useTranslations as useTranslations47 } from "next-intl";
55688
+ import { useTranslations as useTranslations48 } from "next-intl";
55608
55689
 
55609
55690
  // src/components/WfoDiff/WfoDiff.tsx
55610
55691
  var refractor = __toESM(require_refractor(), 1);
55611
55692
  import { useCallback as useCallback5, useEffect as useEffect20, useMemo as useMemo4, useState as useState33 } from "react";
55612
55693
  import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
55613
55694
  import "react-diff-view/style/index.css";
55614
- import { useTranslations as useTranslations45 } from "next-intl";
55695
+ import { useTranslations as useTranslations46 } from "next-intl";
55615
55696
  import "prism-themes/themes/prism-ghcolors.min.css";
55616
55697
  import { diffLines, formatLines } from "unidiff";
55617
55698
  import {
@@ -55621,12 +55702,12 @@ import {
55621
55702
  EuiSpacer as EuiSpacer15,
55622
55703
  EuiText as EuiText30
55623
55704
  } from "@elastic/eui";
55624
- import { jsx as jsx152, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
55705
+ import { jsx as jsx154, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
55625
55706
  var EMPTY_HUNKS = [];
55626
55707
  var SMALL_CONTEXT = 3;
55627
55708
  var FULL_CONTEXT = 1e6;
55628
55709
  var WfoDiff = ({ oldText, newText, syntax }) => {
55629
- const t = useTranslations45("processes.delta");
55710
+ const t = useTranslations46("processes.delta");
55630
55711
  const [showSplit, setShowSplit] = useState33(true);
55631
55712
  const [showFull, setShowFull] = useState33(false);
55632
55713
  const [{ type, hunks }, setDiff] = useState33({
@@ -55660,8 +55741,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
55660
55741
  }, [updateDiffText, showFull]);
55661
55742
  return /* @__PURE__ */ jsxs87("div", { children: [
55662
55743
  /* @__PURE__ */ jsxs87(EuiFlexGroup19, { gutterSize: "xs", children: [
55663
- /* @__PURE__ */ jsx152(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx152(EuiText30, { children: /* @__PURE__ */ jsx152("h3", { children: t("title") }) }) }),
55664
- /* @__PURE__ */ jsx152(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx152(
55744
+ /* @__PURE__ */ jsx154(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx154(EuiText30, { children: /* @__PURE__ */ jsx154("h3", { children: t("title") }) }) }),
55745
+ /* @__PURE__ */ jsx154(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx154(
55665
55746
  EuiButtonIcon4,
55666
55747
  {
55667
55748
  size: "s",
@@ -55669,7 +55750,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
55669
55750
  onClick: () => setShowSplit(!showSplit)
55670
55751
  }
55671
55752
  ) }),
55672
- /* @__PURE__ */ jsx152(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx152(
55753
+ /* @__PURE__ */ jsx154(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx154(
55673
55754
  EuiButtonIcon4,
55674
55755
  {
55675
55756
  size: "s",
@@ -55678,15 +55759,15 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
55678
55759
  }
55679
55760
  ) })
55680
55761
  ] }),
55681
- /* @__PURE__ */ jsx152(EuiSpacer15, {}),
55682
- /* @__PURE__ */ jsx152(
55762
+ /* @__PURE__ */ jsx154(EuiSpacer15, {}),
55763
+ /* @__PURE__ */ jsx154(
55683
55764
  Diff,
55684
55765
  {
55685
55766
  viewType: showSplit ? "split" : "unified",
55686
55767
  diffType: type,
55687
55768
  hunks: hunks || EMPTY_HUNKS,
55688
55769
  tokens,
55689
- children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx152(Hunk, { hunk }, hunk.content))
55770
+ children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx154(Hunk, { hunk }, hunk.content))
55690
55771
  }
55691
55772
  )
55692
55773
  ] });
@@ -55695,7 +55776,7 @@ var WfoDiff_default = WfoDiff;
55695
55776
 
55696
55777
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
55697
55778
  import { useState as useState34 } from "react";
55698
- import { useTranslations as useTranslations46 } from "next-intl";
55779
+ import { useTranslations as useTranslations47 } from "next-intl";
55699
55780
  import {
55700
55781
  EuiButton as EuiButton10,
55701
55782
  EuiFlexGroup as EuiFlexGroup20,
@@ -55726,14 +55807,14 @@ var getStyles13 = (theme) => {
55726
55807
  };
55727
55808
 
55728
55809
  // src/components/WfoTextAnchor/WfoTextAnchor.tsx
55729
- import { jsx as jsx153 } from "@emotion/react/jsx-runtime";
55810
+ import { jsx as jsx155 } from "@emotion/react/jsx-runtime";
55730
55811
  var WfoTextAnchor = ({ text, onClick }) => {
55731
55812
  const { textAnchorStyle } = useWithOrchestratorTheme(getStyles13);
55732
- return /* @__PURE__ */ jsx153(EuiText31, { onClick, css: textAnchorStyle, children: text });
55813
+ return /* @__PURE__ */ jsx155(EuiText31, { onClick, css: textAnchorStyle, children: text });
55733
55814
  };
55734
55815
 
55735
55816
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
55736
- import { jsx as jsx154, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
55817
+ import { jsx as jsx156, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
55737
55818
  var WfoStepListHeader = ({
55738
55819
  showHiddenKeys,
55739
55820
  showRaw,
@@ -55745,7 +55826,7 @@ var WfoStepListHeader = ({
55745
55826
  onToggleAllDetailsIsOpen,
55746
55827
  isTask
55747
55828
  }) => {
55748
- const t = useTranslations46("processes.steps");
55829
+ const t = useTranslations47("processes.steps");
55749
55830
  const { theme } = useOrchestratorTheme();
55750
55831
  const {
55751
55832
  stepListHeaderStyle,
@@ -55756,11 +55837,11 @@ var WfoStepListHeader = ({
55756
55837
  const [isViewOptionOpen, setIsViewOptionOpen] = useState34(false);
55757
55838
  const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
55758
55839
  const closeViewOption = () => setIsViewOptionOpen(false);
55759
- const viewOptionButton = /* @__PURE__ */ jsx154(
55840
+ const viewOptionButton = /* @__PURE__ */ jsx156(
55760
55841
  EuiButton10,
55761
55842
  {
55762
55843
  onClick: onViewOptionClick,
55763
- iconType: () => /* @__PURE__ */ jsx154(WfoEyeFill, { color: theme.colors.link }),
55844
+ iconType: () => /* @__PURE__ */ jsx156(WfoEyeFill, { color: theme.colors.link }),
55764
55845
  iconSide: "right",
55765
55846
  size: "s",
55766
55847
  children: t("viewOptions")
@@ -55768,8 +55849,8 @@ var WfoStepListHeader = ({
55768
55849
  );
55769
55850
  return /* @__PURE__ */ jsxs88(EuiFlexGroup20, { css: stepListHeaderStyle, children: [
55770
55851
  /* @__PURE__ */ jsxs88(EuiFlexGroup20, { css: stepListContentStyle, children: [
55771
- /* @__PURE__ */ jsx154(EuiText32, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
55772
- !showRaw && /* @__PURE__ */ jsx154(
55852
+ /* @__PURE__ */ jsx156(EuiText32, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
55853
+ !showRaw && /* @__PURE__ */ jsx156(
55773
55854
  WfoTextAnchor,
55774
55855
  {
55775
55856
  text: allDetailToggleText,
@@ -55785,25 +55866,25 @@ var WfoStepListHeader = ({
55785
55866
  css: stepListOptionsContainerStyle,
55786
55867
  gutterSize: "s",
55787
55868
  children: [
55788
- !showRaw && /* @__PURE__ */ jsx154(
55869
+ !showRaw && /* @__PURE__ */ jsx156(
55789
55870
  EuiButton10,
55790
55871
  {
55791
55872
  onClick: () => onChangeShowDelta(!showDelta),
55792
55873
  iconSide: "right",
55793
55874
  size: "s",
55794
- iconType: () => /* @__PURE__ */ jsx154(WfoCode, { color: theme.colors.link }),
55875
+ iconType: () => /* @__PURE__ */ jsx156(WfoCode, { color: theme.colors.link }),
55795
55876
  children: showDelta ? t("hideDelta") : t("showDelta")
55796
55877
  }
55797
55878
  ),
55798
- /* @__PURE__ */ jsx154(
55879
+ /* @__PURE__ */ jsx156(
55799
55880
  EuiPopover5,
55800
55881
  {
55801
55882
  button: viewOptionButton,
55802
55883
  isOpen: isViewOptionOpen,
55803
55884
  closePopover: closeViewOption,
55804
55885
  display: "block",
55805
- children: /* @__PURE__ */ jsx154("div", { children: /* @__PURE__ */ jsxs88(EuiForm2, { component: "form", children: [
55806
- /* @__PURE__ */ jsx154(EuiFormRow20, { children: /* @__PURE__ */ jsx154(
55886
+ children: /* @__PURE__ */ jsx156("div", { children: /* @__PURE__ */ jsxs88(EuiForm2, { component: "form", children: [
55887
+ /* @__PURE__ */ jsx156(EuiFormRow20, { children: /* @__PURE__ */ jsx156(
55807
55888
  EuiSwitch3,
55808
55889
  {
55809
55890
  label: "Hidden keys",
@@ -55816,7 +55897,7 @@ var WfoStepListHeader = ({
55816
55897
  }
55817
55898
  }
55818
55899
  ) }),
55819
- /* @__PURE__ */ jsx154(EuiFormRow20, { children: /* @__PURE__ */ jsx154(
55900
+ /* @__PURE__ */ jsx156(EuiFormRow20, { children: /* @__PURE__ */ jsx156(
55820
55901
  EuiSwitch3,
55821
55902
  {
55822
55903
  label: "Raw JSON data",
@@ -55837,10 +55918,10 @@ var WfoStepListHeader = ({
55837
55918
  };
55838
55919
 
55839
55920
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
55840
- import { Fragment as Fragment35, jsx as jsx155, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
55921
+ import { Fragment as Fragment36, jsx as jsx157, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
55841
55922
  var WfoProcessRawData = ({ processId }) => {
55842
55923
  const { data, isFetching } = useRawProcessDetails(processId);
55843
- return isFetching ? /* @__PURE__ */ jsx155(WfoLoading, {}) : /* @__PURE__ */ jsx155(WfoJsonCodeBlock, { data: data || {} });
55924
+ return isFetching ? /* @__PURE__ */ jsx157(WfoLoading, {}) : /* @__PURE__ */ jsx157(WfoJsonCodeBlock, { data: data || {} });
55844
55925
  };
55845
55926
  var WfoProcessSubscriptionDelta = ({
55846
55927
  processId
@@ -55850,7 +55931,7 @@ var WfoProcessSubscriptionDelta = ({
55850
55931
  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 : "";
55851
55932
  const newText = (_e = (_d = data == null ? void 0 : data.current_state) == null ? void 0 : _d.subscription) != null ? _e : null;
55852
55933
  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;
55853
- return isFetching ? /* @__PURE__ */ jsx155(WfoLoading, {}) : /* @__PURE__ */ jsx155(
55934
+ return isFetching ? /* @__PURE__ */ jsx157(WfoLoading, {}) : /* @__PURE__ */ jsx157(
55854
55935
  WfoDiff_default,
55855
55936
  {
55856
55937
  oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
@@ -55870,7 +55951,7 @@ var WfoWorkflowStepList = React47.forwardRef(
55870
55951
  const [showHiddenKeys, setShowHiddenKeys] = useState35(false);
55871
55952
  const [showRaw, setShowRaw] = useState35(false);
55872
55953
  const [showDelta, setShowDelta] = useState35(false);
55873
- const t = useTranslations47("processes.steps");
55954
+ const t = useTranslations48("processes.steps");
55874
55955
  const initialStepListItems = steps.map((step) => ({
55875
55956
  step,
55876
55957
  isExpanded: false
@@ -55923,8 +56004,8 @@ var WfoWorkflowStepList = React47.forwardRef(
55923
56004
  const handleExpandStepListItem = (stepListItem) => updateStepListItem(stepListItem, (item) => __spreadProps(__spreadValues({}, item), {
55924
56005
  isExpanded: true
55925
56006
  }));
55926
- return /* @__PURE__ */ jsxs89(Fragment35, { children: [
55927
- /* @__PURE__ */ jsx155(
56007
+ return /* @__PURE__ */ jsxs89(Fragment36, { children: [
56008
+ /* @__PURE__ */ jsx157(
55928
56009
  WfoStepListHeader,
55929
56010
  {
55930
56011
  showHiddenKeys,
@@ -55938,9 +56019,9 @@ var WfoWorkflowStepList = React47.forwardRef(
55938
56019
  isTask
55939
56020
  }
55940
56021
  ),
55941
- showRaw && /* @__PURE__ */ jsx155(WfoProcessRawData, { processId }),
55942
- showDelta && /* @__PURE__ */ jsx155(WfoProcessSubscriptionDelta, { processId }),
55943
- !showRaw && !showDelta && /* @__PURE__ */ jsx155(
56022
+ showRaw && /* @__PURE__ */ jsx157(WfoProcessRawData, { processId }),
56023
+ showDelta && /* @__PURE__ */ jsx157(WfoProcessSubscriptionDelta, { processId }),
56024
+ !showRaw && !showDelta && /* @__PURE__ */ jsx157(
55944
56025
  WfoStepList,
55945
56026
  {
55946
56027
  ref: reference,
@@ -55960,7 +56041,7 @@ WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
55960
56041
 
55961
56042
  // src/pages/processes/WfoProcessDetail.tsx
55962
56043
  import { useContext as useContext13 } from "react";
55963
- import { useTranslations as useTranslations48 } from "next-intl";
56044
+ import { useTranslations as useTranslations49 } from "next-intl";
55964
56045
  import { useRouter as useRouter10 } from "next/router";
55965
56046
  import {
55966
56047
  EuiButton as EuiButton11,
@@ -56047,12 +56128,12 @@ var getIndexOfCurrentStep = (timelineItems) => {
56047
56128
  };
56048
56129
 
56049
56130
  // src/pages/processes/WfoProcessDetail.tsx
56050
- import { Fragment as Fragment36, jsx as jsx156, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
56131
+ import { Fragment as Fragment37, jsx as jsx158, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
56051
56132
  var ProcessHeaderValue = ({
56052
56133
  translationKey,
56053
56134
  value = ""
56054
56135
  }) => {
56055
- const t = useTranslations48("processes.detail");
56136
+ const t = useTranslations49("processes.detail");
56056
56137
  const { theme } = useOrchestratorTheme();
56057
56138
  return /* @__PURE__ */ jsxs90(
56058
56139
  EuiFlexGroup21,
@@ -56065,8 +56146,8 @@ var ProcessHeaderValue = ({
56065
56146
  overflow: "hidden"
56066
56147
  },
56067
56148
  children: [
56068
- /* @__PURE__ */ jsx156(EuiText33, { size: "xs", children: t(translationKey) }),
56069
- /* @__PURE__ */ jsx156(
56149
+ /* @__PURE__ */ jsx158(EuiText33, { size: "xs", children: t(translationKey) }),
56150
+ /* @__PURE__ */ jsx158(
56070
56151
  EuiText33,
56071
56152
  {
56072
56153
  css: {
@@ -56094,12 +56175,13 @@ var WfoProcessDetail = ({
56094
56175
  hasError = false
56095
56176
  }) => {
56096
56177
  var _a, _b;
56097
- const t = useTranslations48("processes.detail");
56178
+ const t = useTranslations49("processes.detail");
56098
56179
  const { theme } = useOrchestratorTheme();
56099
56180
  const { showConfirmDialog } = useContext13(ConfirmationDialogContext);
56100
56181
  const { deleteProcess, abortProcess, retryProcess } = useMutateProcess();
56101
56182
  const router = useRouter10();
56102
56183
  const { isEngineRunningNow } = useCheckEngineStatus();
56184
+ const { isAllowed } = usePolicy();
56103
56185
  const listIncludesStatus = (processStatusesForDisabledState, status) => status ? processStatusesForDisabledState.map((stat) => stat.toUpperCase()).includes(status) : false;
56104
56186
  const retryButtonIsDisabled = buttonsAreDisabled || !listIncludesStatus(
56105
56187
  [
@@ -56152,12 +56234,12 @@ var WfoProcessDetail = ({
56152
56234
  router.push(PATH_TASKS);
56153
56235
  }
56154
56236
  });
56155
- return /* @__PURE__ */ jsxs90(Fragment36, { children: [
56237
+ return /* @__PURE__ */ jsxs90(Fragment37, { children: [
56156
56238
  /* @__PURE__ */ jsxs90(EuiFlexGroup21, { children: [
56157
56239
  /* @__PURE__ */ jsxs90(EuiFlexItem27, { children: [
56158
- /* @__PURE__ */ jsx156(EuiPageHeader3, { pageTitle }),
56159
- /* @__PURE__ */ jsx156(EuiSpacer16, {}),
56160
- /* @__PURE__ */ jsx156(EuiText33, { size: "s", children: productNames })
56240
+ /* @__PURE__ */ jsx158(EuiPageHeader3, { pageTitle }),
56241
+ /* @__PURE__ */ jsx158(EuiSpacer16, {}),
56242
+ /* @__PURE__ */ jsx158(EuiText33, { size: "s", children: productNames })
56161
56243
  ] }),
56162
56244
  /* @__PURE__ */ jsxs90(
56163
56245
  EuiFlexGroup21,
@@ -56167,40 +56249,52 @@ var WfoProcessDetail = ({
56167
56249
  css: { flexGrow: 0 },
56168
56250
  gutterSize: "s",
56169
56251
  children: [
56170
- /* @__PURE__ */ jsx156(
56171
- EuiButton11,
56252
+ /* @__PURE__ */ jsx158(
56253
+ WfoIsAllowedToRender,
56172
56254
  {
56173
- onClick: handleActionButtonClick(retryAction),
56174
- iconType: () => /* @__PURE__ */ jsx156(
56175
- WfoRefresh,
56255
+ resource: "/orchestrator/processes/retry/" /* PROCESS_RETRY */,
56256
+ children: /* @__PURE__ */ jsx158(
56257
+ EuiButton11,
56176
56258
  {
56177
- color: retryButtonIsDisabled ? theme.colors.subduedText : theme.colors.link
56259
+ onClick: handleActionButtonClick(retryAction),
56260
+ iconType: () => /* @__PURE__ */ jsx158(
56261
+ WfoRefresh,
56262
+ {
56263
+ color: retryButtonIsDisabled ? theme.colors.subduedText : theme.colors.link
56264
+ }
56265
+ ),
56266
+ isDisabled: retryButtonIsDisabled,
56267
+ children: t("retry")
56178
56268
  }
56179
- ),
56180
- isDisabled: retryButtonIsDisabled,
56181
- children: t("retry")
56269
+ )
56182
56270
  }
56183
56271
  ),
56184
- /* @__PURE__ */ jsx156(
56185
- EuiButton11,
56272
+ /* @__PURE__ */ jsx158(
56273
+ WfoIsAllowedToRender,
56186
56274
  {
56187
- onClick: handleActionButtonClick(abortAction),
56188
- iconType: () => /* @__PURE__ */ jsx156(
56189
- WfoXCircleFill,
56275
+ resource: "/orchestrator/processes/abort/" /* PROCESS_ABORT */,
56276
+ children: /* @__PURE__ */ jsx158(
56277
+ EuiButton11,
56190
56278
  {
56191
- color: abortButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
56279
+ onClick: handleActionButtonClick(abortAction),
56280
+ iconType: () => /* @__PURE__ */ jsx158(
56281
+ WfoXCircleFill,
56282
+ {
56283
+ color: abortButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
56284
+ }
56285
+ ),
56286
+ color: "danger",
56287
+ isDisabled: abortButtonIsDisabled,
56288
+ children: t("abort")
56192
56289
  }
56193
- ),
56194
- color: "danger",
56195
- isDisabled: abortButtonIsDisabled,
56196
- children: t("abort")
56290
+ )
56197
56291
  }
56198
56292
  ),
56199
- processDetail && processIsTask && /* @__PURE__ */ jsx156(
56293
+ processDetail && processIsTask && isAllowed("/orchestrator/processes/delete/" /* PROCESS_DELETE */) && /* @__PURE__ */ jsx158(
56200
56294
  EuiButton11,
56201
56295
  {
56202
56296
  onClick: handleActionButtonClick(deleteAction),
56203
- iconType: () => /* @__PURE__ */ jsx156(
56297
+ iconType: () => /* @__PURE__ */ jsx158(
56204
56298
  WfoXCircleFill,
56205
56299
  {
56206
56300
  color: deleteButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
@@ -56215,44 +56309,44 @@ var WfoProcessDetail = ({
56215
56309
  }
56216
56310
  )
56217
56311
  ] }),
56218
- /* @__PURE__ */ jsx156(EuiSpacer16, {}),
56219
- /* @__PURE__ */ jsx156(
56312
+ /* @__PURE__ */ jsx158(EuiSpacer16, {}),
56313
+ /* @__PURE__ */ jsx158(
56220
56314
  EuiPanel5,
56221
56315
  {
56222
56316
  hasShadow: false,
56223
56317
  hasBorder: false,
56224
56318
  color: "subdued",
56225
56319
  element: "div",
56226
- children: isLoading && !hasError && /* @__PURE__ */ jsx156(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs90(EuiFlexGroup21, { direction: "row", gutterSize: "m", children: [
56227
- /* @__PURE__ */ jsx156(
56320
+ children: isLoading && !hasError && /* @__PURE__ */ jsx158(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs90(EuiFlexGroup21, { direction: "row", gutterSize: "m", children: [
56321
+ /* @__PURE__ */ jsx158(
56228
56322
  ProcessHeaderValue,
56229
56323
  {
56230
56324
  translationKey: "status",
56231
56325
  value: processDetail.lastStatus
56232
56326
  }
56233
56327
  ),
56234
- /* @__PURE__ */ jsx156(
56328
+ /* @__PURE__ */ jsx158(
56235
56329
  ProcessHeaderValue,
56236
56330
  {
56237
56331
  translationKey: "lastStep",
56238
56332
  value: processDetail == null ? void 0 : processDetail.lastStep
56239
56333
  }
56240
56334
  ),
56241
- processDetail.customer && /* @__PURE__ */ jsx156(
56335
+ processDetail.customer && /* @__PURE__ */ jsx158(
56242
56336
  ProcessHeaderValue,
56243
56337
  {
56244
56338
  translationKey: "customer",
56245
56339
  value: (_a = processDetail.customer) == null ? void 0 : _a.fullname
56246
56340
  }
56247
56341
  ),
56248
- /* @__PURE__ */ jsx156(
56342
+ /* @__PURE__ */ jsx158(
56249
56343
  ProcessHeaderValue,
56250
56344
  {
56251
56345
  translationKey: "startedBy",
56252
56346
  value: processDetail == null ? void 0 : processDetail.createdBy
56253
56347
  }
56254
56348
  ),
56255
- /* @__PURE__ */ jsx156(
56349
+ /* @__PURE__ */ jsx158(
56256
56350
  ProcessHeaderValue,
56257
56351
  {
56258
56352
  translationKey: "startedOn",
@@ -56261,7 +56355,7 @@ var WfoProcessDetail = ({
56261
56355
  )(processDetail == null ? void 0 : processDetail.startedAt) : ""
56262
56356
  }
56263
56357
  ),
56264
- /* @__PURE__ */ jsx156(
56358
+ /* @__PURE__ */ jsx158(
56265
56359
  ProcessHeaderValue,
56266
56360
  {
56267
56361
  translationKey: "lastUpdate",
@@ -56270,7 +56364,9 @@ var WfoProcessDetail = ({
56270
56364
  )(processDetail == null ? void 0 : processDetail.lastModifiedAt) : ""
56271
56365
  }
56272
56366
  ),
56273
- process && processDetail.subscriptions && /* @__PURE__ */ jsxs90(
56367
+ process && isAllowed(
56368
+ "/orchestrator/subscriptions/view/from-process" /* PROCESS_RELATED_SUBSCRIPTIONS */
56369
+ ) && processDetail.subscriptions && /* @__PURE__ */ jsxs90(
56274
56370
  EuiFlexGroup21,
56275
56371
  {
56276
56372
  gutterSize: "xs",
@@ -56280,8 +56376,8 @@ var WfoProcessDetail = ({
56280
56376
  overflow: "hidden"
56281
56377
  },
56282
56378
  children: [
56283
- /* @__PURE__ */ jsx156(EuiText33, { size: "xs", children: t("relatedSubscriptions") }),
56284
- /* @__PURE__ */ jsx156(
56379
+ /* @__PURE__ */ jsx158(EuiText33, { size: "xs", children: t("relatedSubscriptions") }),
56380
+ /* @__PURE__ */ jsx158(
56285
56381
  EuiText33,
56286
56382
  {
56287
56383
  css: {
@@ -56291,7 +56387,7 @@ var WfoProcessDetail = ({
56291
56387
  textOverflow: "ellipsis",
56292
56388
  fontSize: theme.size.m
56293
56389
  },
56294
- children: /* @__PURE__ */ jsx156(
56390
+ children: /* @__PURE__ */ jsx158(
56295
56391
  WfoProcessListSubscriptionsCell,
56296
56392
  {
56297
56393
  subscriptions: process && ((_b = processDetail == null ? void 0 : processDetail.subscriptions) == null ? void 0 : _b.page.map(
@@ -56311,8 +56407,8 @@ var WfoProcessDetail = ({
56311
56407
  ] })
56312
56408
  }
56313
56409
  ),
56314
- /* @__PURE__ */ jsx156(EuiSpacer16, { size: "s" }),
56315
- /* @__PURE__ */ jsx156(
56410
+ /* @__PURE__ */ jsx158(EuiSpacer16, { size: "s" }),
56411
+ /* @__PURE__ */ jsx158(
56316
56412
  WfoTimeline,
56317
56413
  {
56318
56414
  timelineItems,
@@ -56325,7 +56421,7 @@ var WfoProcessDetail = ({
56325
56421
  };
56326
56422
 
56327
56423
  // src/pages/processes/WfoProcessDetailPage.tsx
56328
- import { jsx as jsx157 } from "@emotion/react/jsx-runtime";
56424
+ import { jsx as jsx159 } from "@emotion/react/jsx-runtime";
56329
56425
  var PROCESS_DETAIL_DEFAULT_REFETCH_INTERVAL = 3e3;
56330
56426
  var WfoProcessDetailPage = ({
56331
56427
  processId,
@@ -56373,7 +56469,7 @@ var WfoProcessDetailPage = ({
56373
56469
  const isTask = (_b = process2 == null ? void 0 : process2.isTask) != null ? _b : false;
56374
56470
  const groupedSteps = convertStepsToGroupedSteps(steps);
56375
56471
  const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
56376
- return /* @__PURE__ */ jsx157(
56472
+ return /* @__PURE__ */ jsx159(
56377
56473
  WfoProcessDetail,
56378
56474
  {
56379
56475
  pageTitle,
@@ -56387,7 +56483,7 @@ var WfoProcessDetailPage = ({
56387
56483
  },
56388
56484
  isLoading,
56389
56485
  hasError: isError3,
56390
- children: isError3 && /* @__PURE__ */ jsx157(WfoError, {}) || isLoading && /* @__PURE__ */ jsx157(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx157(
56486
+ children: isError3 && /* @__PURE__ */ jsx159(WfoError, {}) || isLoading && /* @__PURE__ */ jsx159(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx159(
56391
56487
  WfoWorkflowStepList,
56392
56488
  {
56393
56489
  ref: stepListRef,
@@ -56399,14 +56495,14 @@ var WfoProcessDetailPage = ({
56399
56495
  startedAt: process2.startedAt,
56400
56496
  isTask
56401
56497
  }
56402
- ) || /* @__PURE__ */ jsx157("h1", { children: "Invalid processId" })
56498
+ ) || /* @__PURE__ */ jsx159("h1", { children: "Invalid processId" })
56403
56499
  }
56404
56500
  );
56405
56501
  };
56406
56502
 
56407
56503
  // src/pages/processes/WfoStartProcessPage.tsx
56408
56504
  import { useCallback as useCallback6, useEffect as useEffect23, useMemo as useMemo5, useState as useState37 } from "react";
56409
- import { useTranslations as useTranslations49 } from "next-intl";
56505
+ import { useTranslations as useTranslations50 } from "next-intl";
56410
56506
  import { useRouter as useRouter11 } from "next/router";
56411
56507
  import {
56412
56508
  EuiFlexGroup as EuiFlexGroup22,
@@ -56415,7 +56511,7 @@ import {
56415
56511
  EuiPanel as EuiPanel6,
56416
56512
  EuiText as EuiText34
56417
56513
  } from "@elastic/eui";
56418
- import { jsx as jsx158, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
56514
+ import { jsx as jsx160, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
56419
56515
  var getInitialProcessPayload = ({
56420
56516
  productId,
56421
56517
  subscriptionId
@@ -56438,7 +56534,7 @@ var WfoStartProcessPage = ({
56438
56534
  }) => {
56439
56535
  var _a, _b;
56440
56536
  const apiClient = useAxiosApiClient();
56441
- const t = useTranslations49("processes.steps");
56537
+ const t = useTranslations50("processes.steps");
56442
56538
  const router = useRouter11();
56443
56539
  const [hasError, setHasError] = useState37(false);
56444
56540
  const { theme } = useOrchestratorTheme();
@@ -56535,7 +56631,7 @@ var WfoStartProcessPage = ({
56535
56631
  workflowName: processName,
56536
56632
  createdBy: "-"
56537
56633
  };
56538
- return /* @__PURE__ */ jsx158(
56634
+ return /* @__PURE__ */ jsx160(
56539
56635
  WfoProcessDetail,
56540
56636
  {
56541
56637
  pageTitle: processName,
@@ -56545,16 +56641,16 @@ var WfoStartProcessPage = ({
56545
56641
  timelineItems: timeLineItems,
56546
56642
  children: /* @__PURE__ */ jsxs91(EuiPanel6, { css: { marginTop: theme.base * 3 }, children: [
56547
56643
  /* @__PURE__ */ jsxs91(EuiFlexGroup22, { css: getStepHeaderStyle(false), children: [
56548
- /* @__PURE__ */ jsx158(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
56644
+ /* @__PURE__ */ jsx160(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
56549
56645
  /* @__PURE__ */ jsxs91(EuiFlexItem28, { grow: 0, children: [
56550
- /* @__PURE__ */ jsx158(EuiText34, { css: stepListContentBoldTextStyle, children: t("userInput") }),
56551
- /* @__PURE__ */ jsx158(EuiText34, { children: t(
56646
+ /* @__PURE__ */ jsx160(EuiText34, { css: stepListContentBoldTextStyle, children: t("userInput") }),
56647
+ /* @__PURE__ */ jsx160(EuiText34, { children: t(
56552
56648
  isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
56553
56649
  ) })
56554
56650
  ] })
56555
56651
  ] }),
56556
- /* @__PURE__ */ jsx158(EuiHorizontalRule6, {}),
56557
- hasError && /* @__PURE__ */ jsx158(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx158(
56652
+ /* @__PURE__ */ jsx160(EuiHorizontalRule6, {}),
56653
+ hasError && /* @__PURE__ */ jsx160(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx160(
56558
56654
  UserInputFormWizard_default,
56559
56655
  {
56560
56656
  stepUserInput,
@@ -56565,14 +56661,14 @@ var WfoStartProcessPage = ({
56565
56661
  hasNext,
56566
56662
  isTask
56567
56663
  }
56568
- ) || /* @__PURE__ */ jsx158(WfoLoading, {})
56664
+ ) || /* @__PURE__ */ jsx160(WfoLoading, {})
56569
56665
  ] })
56570
56666
  }
56571
56667
  );
56572
56668
  };
56573
56669
 
56574
56670
  // src/pages/startPage/WfoStartPage.tsx
56575
- import { useTranslations as useTranslations50 } from "next-intl";
56671
+ import { useTranslations as useTranslations51 } from "next-intl";
56576
56672
  import { EuiFlexItem as EuiFlexItem33 } from "@elastic/eui";
56577
56673
 
56578
56674
  // src/components/WfoSummary/WfoSummaryCards.tsx
@@ -56632,7 +56728,7 @@ var getWfoSummaryCardHeaderStyles = (theme) => {
56632
56728
  };
56633
56729
 
56634
56730
  // src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
56635
- import { jsx as jsx159, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
56731
+ import { jsx as jsx161, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
56636
56732
  var WfoSummaryCardHeader = ({
56637
56733
  text,
56638
56734
  value,
@@ -56641,8 +56737,8 @@ var WfoSummaryCardHeader = ({
56641
56737
  }) => {
56642
56738
  const { theme } = useOrchestratorTheme();
56643
56739
  const { avatarStyle, totalSectionStyle, valueStyle } = getWfoSummaryCardHeaderStyles(theme);
56644
- return /* @__PURE__ */ jsx159(EuiFlexItem29, { grow: 0, children: /* @__PURE__ */ jsx159(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs92(EuiFlexGroup23, { children: [
56645
- /* @__PURE__ */ jsx159(
56740
+ return /* @__PURE__ */ jsx161(EuiFlexItem29, { grow: 0, children: /* @__PURE__ */ jsx161(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs92(EuiFlexGroup23, { children: [
56741
+ /* @__PURE__ */ jsx161(
56646
56742
  EuiAvatar2,
56647
56743
  {
56648
56744
  iconSize: "l",
@@ -56656,8 +56752,8 @@ var WfoSummaryCardHeader = ({
56656
56752
  }
56657
56753
  ),
56658
56754
  /* @__PURE__ */ jsxs92("div", { css: totalSectionStyle, children: [
56659
- /* @__PURE__ */ jsx159(EuiText35, { color: "subdued", children: text }),
56660
- /* @__PURE__ */ jsx159(EuiText35, { css: valueStyle, children: value })
56755
+ /* @__PURE__ */ jsx161(EuiText35, { color: "subdued", children: text }),
56756
+ /* @__PURE__ */ jsx161(EuiText35, { css: valueStyle, children: value })
56661
56757
  ] })
56662
56758
  ] }) }) });
56663
56759
  };
@@ -56679,15 +56775,15 @@ import { EuiFlexGroup as EuiFlexGroup24, EuiFlexItem as EuiFlexItem30, EuiIcon a
56679
56775
 
56680
56776
  // src/components/WfoOptionalLink/WfoOptionalLink.tsx
56681
56777
  import Link4 from "next/link";
56682
- import { jsx as jsx160 } from "@emotion/react/jsx-runtime";
56778
+ import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
56683
56779
  var WfoOptionalLink = ({
56684
56780
  children,
56685
56781
  href
56686
56782
  }) => {
56687
56783
  if (!href) {
56688
- return /* @__PURE__ */ jsx160("span", { children });
56784
+ return /* @__PURE__ */ jsx162("span", { children });
56689
56785
  }
56690
- return /* @__PURE__ */ jsx160(Link4, { href, children });
56786
+ return /* @__PURE__ */ jsx162(Link4, { href, children });
56691
56787
  };
56692
56788
 
56693
56789
  // src/components/WfoSummary/WfoSummaryCardList/styles.ts
@@ -56736,7 +56832,7 @@ var getWfoSummaryCardListStyles = (theme) => {
56736
56832
  };
56737
56833
 
56738
56834
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
56739
- import { jsx as jsx161, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
56835
+ import { jsx as jsx163, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
56740
56836
  var WfoSummaryCardListItem = ({
56741
56837
  title,
56742
56838
  value,
@@ -56749,9 +56845,9 @@ var WfoSummaryCardListItem = ({
56749
56845
  listItemSubtitleStyle,
56750
56846
  listItemHighlightIconStyle
56751
56847
  } = getWfoSummaryCardListStyles(theme);
56752
- return /* @__PURE__ */ jsx161(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs93(EuiFlexGroup24, { css: listItemContainerStyle, gutterSize: "none", children: [
56848
+ return /* @__PURE__ */ jsx163(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs93(EuiFlexGroup24, { css: listItemContainerStyle, gutterSize: "none", children: [
56753
56849
  /* @__PURE__ */ jsxs93(EuiFlexItem30, { children: [
56754
- /* @__PURE__ */ jsx161(
56850
+ /* @__PURE__ */ jsx163(
56755
56851
  EuiTextColor,
56756
56852
  {
56757
56853
  color: url ? theme.colors.link : theme.colors.title,
@@ -56759,22 +56855,22 @@ var WfoSummaryCardListItem = ({
56759
56855
  children: title
56760
56856
  }
56761
56857
  ),
56762
- /* @__PURE__ */ jsx161(EuiTextColor, { css: listItemSubtitleStyle, children: value })
56858
+ /* @__PURE__ */ jsx163(EuiTextColor, { css: listItemSubtitleStyle, children: value })
56763
56859
  ] }),
56764
- /* @__PURE__ */ jsx161(
56860
+ /* @__PURE__ */ jsx163(
56765
56861
  EuiFlexItem30,
56766
56862
  {
56767
56863
  className: url ? "highlight-icon" : void 0,
56768
56864
  grow: false,
56769
56865
  css: listItemHighlightIconStyle,
56770
- children: /* @__PURE__ */ jsx161(EuiIcon5, { type: "sortRight", color: "primary" })
56866
+ children: /* @__PURE__ */ jsx163(EuiIcon5, { type: "sortRight", color: "primary" })
56771
56867
  }
56772
56868
  )
56773
56869
  ] }) });
56774
56870
  };
56775
56871
 
56776
56872
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
56777
- import { jsx as jsx162, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
56873
+ import { jsx as jsx164, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
56778
56874
  var WfoSummaryCardList = ({
56779
56875
  title,
56780
56876
  items,
@@ -56784,7 +56880,7 @@ var WfoSummaryCardList = ({
56784
56880
  const router = useRouter12();
56785
56881
  const euiScrollBarStyle = useEuiScrollBar2();
56786
56882
  const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
56787
- return /* @__PURE__ */ jsx162(EuiFlexItem31, { children: /* @__PURE__ */ jsxs94(
56883
+ return /* @__PURE__ */ jsx164(EuiFlexItem31, { children: /* @__PURE__ */ jsxs94(
56788
56884
  EuiPanel8,
56789
56885
  {
56790
56886
  css: listContainerStyle,
@@ -56793,10 +56889,10 @@ var WfoSummaryCardList = ({
56793
56889
  paddingSize: "l",
56794
56890
  children: [
56795
56891
  /* @__PURE__ */ jsxs94("div", { children: [
56796
- /* @__PURE__ */ jsx162("p", { css: listHeaderStyle, children: title }),
56797
- /* @__PURE__ */ jsx162(EuiSpacer17, { size: "m" }),
56798
- /* @__PURE__ */ jsx162(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx162("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs94("div", { children: [
56799
- /* @__PURE__ */ jsx162(
56892
+ /* @__PURE__ */ jsx164("p", { css: listHeaderStyle, children: title }),
56893
+ /* @__PURE__ */ jsx164(EuiSpacer17, { size: "m" }),
56894
+ /* @__PURE__ */ jsx164(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx164("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs94("div", { children: [
56895
+ /* @__PURE__ */ jsx164(
56800
56896
  WfoSummaryCardListItem,
56801
56897
  {
56802
56898
  title: item.title,
@@ -56804,11 +56900,11 @@ var WfoSummaryCardList = ({
56804
56900
  url: item.url
56805
56901
  }
56806
56902
  ),
56807
- index === items.length - 1 ? null : /* @__PURE__ */ jsx162(EuiHorizontalRule7, { margin: "none" })
56903
+ index === items.length - 1 ? null : /* @__PURE__ */ jsx164(EuiHorizontalRule7, { margin: "none" })
56808
56904
  ] }, index)) }) })
56809
56905
  ] }),
56810
- /* @__PURE__ */ jsx162(EuiSpacer17, { size: "m" }),
56811
- button && /* @__PURE__ */ jsx162(
56906
+ /* @__PURE__ */ jsx164(EuiSpacer17, { size: "m" }),
56907
+ button && /* @__PURE__ */ jsx164(
56812
56908
  EuiButton12,
56813
56909
  {
56814
56910
  fullWidth: true,
@@ -56834,7 +56930,7 @@ var getWfoSummaryCardsStyles = (theme) => {
56834
56930
  };
56835
56931
 
56836
56932
  // src/components/WfoSummary/WfoSummaryCards.tsx
56837
- import { jsx as jsx163, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
56933
+ import { jsx as jsx165, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
56838
56934
  var WfoSummaryCards = ({ summaryCards }) => {
56839
56935
  const { theme } = useOrchestratorTheme();
56840
56936
  const { cardContainerStyle } = getWfoSummaryCardsStyles(theme);
@@ -56859,7 +56955,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
56859
56955
  };
56860
56956
  }
56861
56957
  };
56862
- return /* @__PURE__ */ jsx163(
56958
+ return /* @__PURE__ */ jsx165(
56863
56959
  EuiFlexGrid2,
56864
56960
  {
56865
56961
  responsive: false,
@@ -56875,7 +56971,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
56875
56971
  button,
56876
56972
  isLoading
56877
56973
  }, index) => /* @__PURE__ */ jsxs95(EuiFlexItem32, { css: cardContainerStyle, children: [
56878
- /* @__PURE__ */ jsx163(
56974
+ /* @__PURE__ */ jsx165(
56879
56975
  WfoSummaryCardHeader,
56880
56976
  __spreadValues({
56881
56977
  text: headerTitle,
@@ -56884,8 +56980,8 @@ var WfoSummaryCards = ({ summaryCards }) => {
56884
56980
  headerStatus
56885
56981
  ))
56886
56982
  ),
56887
- /* @__PURE__ */ jsx163(EuiSpacer18, { size: "m" }),
56888
- /* @__PURE__ */ jsx163(
56983
+ /* @__PURE__ */ jsx165(EuiSpacer18, { size: "m" }),
56984
+ /* @__PURE__ */ jsx165(
56889
56985
  WfoSummaryCardList,
56890
56986
  {
56891
56987
  title: listTitle,
@@ -56901,10 +56997,10 @@ var WfoSummaryCards = ({ summaryCards }) => {
56901
56997
  };
56902
56998
 
56903
56999
  // src/pages/startPage/WfoStartPage.tsx
56904
- import { jsx as jsx164, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
57000
+ import { jsx as jsx166, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
56905
57001
  var WfoStartPage = () => {
56906
- var _a, _b, _c, _d, _e, _f, _g, _h;
56907
- const t = useTranslations50("startPage");
57002
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
57003
+ const t = useTranslations51("startPage");
56908
57004
  const {
56909
57005
  data: subscriptionsSummaryResult,
56910
57006
  isLoading: subscriptionsSummaryIsFetching
@@ -56913,6 +57009,14 @@ var WfoStartPage = () => {
56913
57009
  subscriptionsListSummaryQueryVariables,
56914
57010
  ["subscriptions", "startPage"]
56915
57011
  );
57012
+ const {
57013
+ data: outOfSyncSubscriptionsSummaryResult,
57014
+ isLoading: outOfSyncsubscriptionsSummaryIsFetching
57015
+ } = useQueryWithGraphql(
57016
+ getSubscriptionsListSummaryGraphQlQuery(),
57017
+ outOfSyncSubscriptionsListSummaryQueryVariables,
57018
+ ["subscriptions", "startPage"]
57019
+ );
56916
57020
  const {
56917
57021
  data: processesSummaryResult,
56918
57022
  isLoading: processesSummaryIsFetching
@@ -56955,16 +57059,34 @@ var WfoStartPage = () => {
56955
57059
  },
56956
57060
  isLoading: subscriptionsSummaryIsFetching
56957
57061
  };
57062
+ const latestOutOfSyncSubscriptionsSummaryCard = {
57063
+ headerTitle: t("outOfSyncSubscriptions.headerTitle"),
57064
+ headerValue: (_c = outOfSyncSubscriptionsSummaryResult == null ? void 0 : outOfSyncSubscriptionsSummaryResult.subscriptions.pageInfo.totalItems) != null ? _c : 0,
57065
+ headerStatus: "Error" /* Error */,
57066
+ listTitle: t("outOfSyncSubscriptions.listTitle"),
57067
+ listItems: (_d = outOfSyncSubscriptionsSummaryResult == null ? void 0 : outOfSyncSubscriptionsSummaryResult.subscriptions.page.map(
57068
+ (subscription) => ({
57069
+ title: subscription.description,
57070
+ value: formatDate(subscription.startDate),
57071
+ url: `${PATH_SUBSCRIPTIONS}/${subscription.subscriptionId}`
57072
+ })
57073
+ )) != null ? _d : [],
57074
+ button: {
57075
+ name: t("outOfSyncSubscriptions.buttonText"),
57076
+ url: `${PATH_SUBSCRIPTIONS}?activeTab=ALL&sortBy=field-startDate_order-ASC&queryString=status%3A%28provisioning%7Cactive%29+insync%3Afalse`
57077
+ },
57078
+ isLoading: outOfSyncsubscriptionsSummaryIsFetching
57079
+ };
56958
57080
  const latestWorkflowsSummaryCard = {
56959
57081
  headerTitle: t("activeWorkflows.headerTitle"),
56960
- headerValue: (_c = processesSummaryResult == null ? void 0 : processesSummaryResult.processes.pageInfo.totalItems) != null ? _c : 0,
57082
+ headerValue: (_e = processesSummaryResult == null ? void 0 : processesSummaryResult.processes.pageInfo.totalItems) != null ? _e : 0,
56961
57083
  headerStatus: "Success" /* Success */,
56962
57084
  listTitle: t("activeWorkflows.listTitle"),
56963
- listItems: (_d = processesSummaryResult == null ? void 0 : processesSummaryResult.processes.page.map((workflow) => ({
57085
+ listItems: (_f = processesSummaryResult == null ? void 0 : processesSummaryResult.processes.page.map((workflow) => ({
56964
57086
  title: workflow.workflowName,
56965
57087
  value: formatDate(workflow == null ? void 0 : workflow.startedAt),
56966
57088
  url: `${PATH_WORKFLOWS}/${workflow.processId}`
56967
- }))) != null ? _d : [],
57089
+ }))) != null ? _f : [],
56968
57090
  button: {
56969
57091
  name: t("activeWorkflows.buttonText"),
56970
57092
  url: PATH_WORKFLOWS
@@ -56973,14 +57095,14 @@ var WfoStartPage = () => {
56973
57095
  };
56974
57096
  const failedTasksSummaryCard = {
56975
57097
  headerTitle: t("failedTasks.headerTitle"),
56976
- headerValue: (_e = failedTasksSummaryResult == null ? void 0 : failedTasksSummaryResult.processes.pageInfo.totalItems) != null ? _e : 0,
57098
+ headerValue: (_g = failedTasksSummaryResult == null ? void 0 : failedTasksSummaryResult.processes.pageInfo.totalItems) != null ? _g : 0,
56977
57099
  headerStatus: "Error" /* Error */,
56978
57100
  listTitle: t("failedTasks.listTitle"),
56979
- listItems: (_f = failedTasksSummaryResult == null ? void 0 : failedTasksSummaryResult.processes.page.map((task) => ({
57101
+ listItems: (_h = failedTasksSummaryResult == null ? void 0 : failedTasksSummaryResult.processes.page.map((task) => ({
56980
57102
  title: task.workflowName,
56981
57103
  value: formatDate(task == null ? void 0 : task.startedAt),
56982
57104
  url: `${PATH_TASKS}/${task.processId}`
56983
- }))) != null ? _f : [],
57105
+ }))) != null ? _h : [],
56984
57106
  button: {
56985
57107
  name: t("failedTasks.buttonText"),
56986
57108
  url: PATH_TASKS
@@ -56989,10 +57111,10 @@ var WfoStartPage = () => {
56989
57111
  };
56990
57112
  const productsSummaryCard = {
56991
57113
  headerTitle: t("products.headerTitle"),
56992
- headerValue: (_g = productsSummaryResult == null ? void 0 : productsSummaryResult.products.pageInfo.totalItems) != null ? _g : 0,
57114
+ headerValue: (_i = productsSummaryResult == null ? void 0 : productsSummaryResult.products.pageInfo.totalItems) != null ? _i : 0,
56993
57115
  headerStatus: "Neutral" /* Neutral */,
56994
57116
  listTitle: t("products.listTitle"),
56995
- listItems: (_h = productsSummaryResult == null ? void 0 : productsSummaryResult.products.page.sort(
57117
+ listItems: (_j = productsSummaryResult == null ? void 0 : productsSummaryResult.products.page.sort(
56996
57118
  (left, right) => {
56997
57119
  var _a2, _b2;
56998
57120
  return ((_a2 = right.subscriptions.pageInfo.totalItems) != null ? _a2 : 0) - ((_b2 = left.subscriptions.pageInfo.totalItems) != null ? _b2 : 0);
@@ -57007,19 +57129,20 @@ var WfoStartPage = () => {
57007
57129
  justifyContent: "space-between"
57008
57130
  },
57009
57131
  children: [
57010
- /* @__PURE__ */ jsx164("div", { children: product.name }),
57011
- /* @__PURE__ */ jsx164("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
57132
+ /* @__PURE__ */ jsx166("div", { children: product.name }),
57133
+ /* @__PURE__ */ jsx166("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
57012
57134
  ]
57013
57135
  }
57014
57136
  )
57015
- }))) != null ? _h : [],
57137
+ }))) != null ? _j : [],
57016
57138
  isLoading: productsSummaryIsFetching
57017
57139
  };
57018
- return /* @__PURE__ */ jsx164(EuiFlexItem33, { children: /* @__PURE__ */ jsx164(
57140
+ return /* @__PURE__ */ jsx166(EuiFlexItem33, { children: /* @__PURE__ */ jsx166(
57019
57141
  WfoSummaryCards,
57020
57142
  {
57021
57143
  summaryCards: [
57022
57144
  failedTasksSummaryCard,
57145
+ latestOutOfSyncSubscriptionsSummaryCard,
57023
57146
  latestWorkflowsSummaryCard,
57024
57147
  latestActiveSubscriptionsSummaryCard,
57025
57148
  productsSummaryCard
@@ -57041,6 +57164,21 @@ var subscriptionsListSummaryQueryVariables = {
57041
57164
  }
57042
57165
  ]
57043
57166
  };
57167
+ var outOfSyncSubscriptionsListSummaryQueryVariables = {
57168
+ first: 5,
57169
+ after: 0,
57170
+ sortBy: {
57171
+ field: "startDate",
57172
+ order: "ASC" /* ASC */
57173
+ },
57174
+ query: "insync:false",
57175
+ filterBy: [
57176
+ {
57177
+ field: "status",
57178
+ value: "Active-Provisioning"
57179
+ }
57180
+ ]
57181
+ };
57044
57182
  var processListSummaryQueryVariables = {
57045
57183
  first: 5,
57046
57184
  after: 0,
@@ -57098,16 +57236,16 @@ var productsSummaryQueryVariables = {
57098
57236
 
57099
57237
  // src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
57100
57238
  import { useRouter as useRouter13 } from "next/router";
57101
- import { Fragment as Fragment37, jsx as jsx165 } from "@emotion/react/jsx-runtime";
57239
+ import { Fragment as Fragment38, jsx as jsx167 } from "@emotion/react/jsx-runtime";
57102
57240
  var WfoSubscriptionDetailPage = () => {
57103
57241
  const router = useRouter13();
57104
57242
  const { subscriptionId } = router.query;
57105
- return subscriptionId && /* @__PURE__ */ jsx165(TreeProvider, { children: /* @__PURE__ */ jsx165(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx165(Fragment37, {});
57243
+ return subscriptionId && /* @__PURE__ */ jsx167(TreeProvider, { children: /* @__PURE__ */ jsx167(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx167(Fragment38, {});
57106
57244
  };
57107
57245
 
57108
57246
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
57109
57247
  import { useEffect as useEffect24, useState as useState38 } from "react";
57110
- import { useTranslations as useTranslations52 } from "next-intl";
57248
+ import { useTranslations as useTranslations53 } from "next-intl";
57111
57249
  import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
57112
57250
  import { EuiPageHeader as EuiPageHeader4, EuiSpacer as EuiSpacer19 } from "@elastic/eui";
57113
57251
 
@@ -57185,10 +57323,10 @@ var subscriptionListTabs = [
57185
57323
  ];
57186
57324
 
57187
57325
  // src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
57188
- import { useTranslations as useTranslations51 } from "next-intl";
57326
+ import { useTranslations as useTranslations52 } from "next-intl";
57189
57327
  import Link5 from "next/link";
57190
57328
  import { useRouter as useRouter14 } from "next/router";
57191
- import { jsx as jsx166 } from "@emotion/react/jsx-runtime";
57329
+ import { jsx as jsx168 } from "@emotion/react/jsx-runtime";
57192
57330
  var WfoSubscriptionsList = ({
57193
57331
  alwaysOnFilters,
57194
57332
  dataDisplayParams,
@@ -57197,34 +57335,34 @@ var WfoSubscriptionsList = ({
57197
57335
  }) => {
57198
57336
  var _a, _b, _c, _d;
57199
57337
  const router = useRouter14();
57200
- const t = useTranslations51("subscriptions.index");
57201
- const tError = useTranslations51("errors");
57338
+ const t = useTranslations52("subscriptions.index");
57339
+ const tError = useTranslations52("errors");
57202
57340
  const { showToastMessage } = useShowToastMessage();
57203
57341
  const tableColumns = {
57204
57342
  subscriptionId: {
57205
57343
  field: "subscriptionId",
57206
57344
  name: t("id"),
57207
57345
  width: "100",
57208
- render: (value) => /* @__PURE__ */ jsx166(WfoFirstPartUUID, { UUID: value }),
57346
+ render: (value) => /* @__PURE__ */ jsx168(WfoFirstPartUUID, { UUID: value }),
57209
57347
  renderDetails: (value) => value
57210
57348
  },
57211
57349
  description: {
57212
57350
  field: "description",
57213
57351
  name: t("description"),
57214
57352
  width: "400",
57215
- render: (value, record) => /* @__PURE__ */ jsx166(Link5, { href: `/subscriptions/${record.subscriptionId}`, children: value })
57353
+ render: (value, record) => /* @__PURE__ */ jsx168(Link5, { href: `/subscriptions/${record.subscriptionId}`, children: value })
57216
57354
  },
57217
57355
  status: {
57218
57356
  field: "status",
57219
57357
  name: t("status"),
57220
57358
  width: "110",
57221
- render: (value) => /* @__PURE__ */ jsx166(WfoSubscriptionStatusBadge, { status: value })
57359
+ render: (value) => /* @__PURE__ */ jsx168(WfoSubscriptionStatusBadge, { status: value })
57222
57360
  },
57223
57361
  insync: {
57224
57362
  field: "insync",
57225
57363
  name: t("insync"),
57226
57364
  width: "110",
57227
- render: (value) => /* @__PURE__ */ jsx166(WfoInsyncIcon, { inSync: value })
57365
+ render: (value) => /* @__PURE__ */ jsx168(WfoInsyncIcon, { inSync: value })
57228
57366
  },
57229
57367
  productName: {
57230
57368
  field: "productName",
@@ -57249,7 +57387,7 @@ var WfoSubscriptionsList = ({
57249
57387
  field: "startDate",
57250
57388
  name: t("startDate"),
57251
57389
  width: "150",
57252
- render: (value) => /* @__PURE__ */ jsx166(WfoDateTime, { dateOrIsoString: value }),
57390
+ render: (value) => /* @__PURE__ */ jsx168(WfoDateTime, { dateOrIsoString: value }),
57253
57391
  renderDetails: parseDateToLocaleDateTimeString,
57254
57392
  clipboardText: parseDateToLocaleDateTimeString
57255
57393
  },
@@ -57257,7 +57395,7 @@ var WfoSubscriptionsList = ({
57257
57395
  field: "endDate",
57258
57396
  name: t("endDate"),
57259
57397
  width: "150",
57260
- render: (value) => /* @__PURE__ */ jsx166(WfoDateTime, { dateOrIsoString: value }),
57398
+ render: (value) => /* @__PURE__ */ jsx168(WfoDateTime, { dateOrIsoString: value }),
57261
57399
  renderDetails: parseDateToLocaleDateTimeString,
57262
57400
  clipboardText: parseDateToLocaleDateTimeString
57263
57401
  },
@@ -57300,7 +57438,7 @@ var WfoSubscriptionsList = ({
57300
57438
  pageSizeOptions: DEFAULT_PAGE_SIZES,
57301
57439
  totalItemCount: totalItems != null ? totalItems : 0
57302
57440
  };
57303
- return /* @__PURE__ */ jsx166(
57441
+ return /* @__PURE__ */ jsx168(
57304
57442
  WfoTableWithFilter,
57305
57443
  {
57306
57444
  queryString: dataDisplayParams.queryString,
@@ -57341,10 +57479,10 @@ var WfoSubscriptionsList = ({
57341
57479
  };
57342
57480
 
57343
57481
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
57344
- import { Fragment as Fragment38, jsx as jsx167, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
57482
+ import { Fragment as Fragment39, jsx as jsx169, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
57345
57483
  var WfoSubscriptionsListPage = () => {
57346
57484
  var _a;
57347
- const t = useTranslations52("subscriptions.detail");
57485
+ const t = useTranslations53("subscriptions.detail");
57348
57486
  const [tableDefaults, setTableDefaults] = useState38();
57349
57487
  const getStoredTableConfig = useStoredTableConfig(
57350
57488
  SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
@@ -57381,11 +57519,11 @@ var WfoSubscriptionsListPage = () => {
57381
57519
  const alwaysOnFilters = (_a = subscriptionListTabs.find(
57382
57520
  ({ id }) => id === activeTab
57383
57521
  )) == null ? void 0 : _a.alwaysOnFilters;
57384
- return /* @__PURE__ */ jsxs97(Fragment38, { children: [
57385
- /* @__PURE__ */ jsx167(EuiSpacer19, {}),
57386
- /* @__PURE__ */ jsx167(EuiPageHeader4, { pageTitle: t("title") }),
57387
- /* @__PURE__ */ jsx167(EuiSpacer19, { size: "m" }),
57388
- /* @__PURE__ */ jsx167(
57522
+ return /* @__PURE__ */ jsxs97(Fragment39, { children: [
57523
+ /* @__PURE__ */ jsx169(EuiSpacer19, {}),
57524
+ /* @__PURE__ */ jsx169(EuiPageHeader4, { pageTitle: t("title") }),
57525
+ /* @__PURE__ */ jsx169(EuiSpacer19, { size: "m" }),
57526
+ /* @__PURE__ */ jsx169(
57389
57527
  WfoFilterTabs,
57390
57528
  {
57391
57529
  tabs: subscriptionListTabs,
@@ -57394,8 +57532,8 @@ var WfoSubscriptionsListPage = () => {
57394
57532
  onChangeTab: handleChangeSubscriptionsTab
57395
57533
  }
57396
57534
  ),
57397
- /* @__PURE__ */ jsx167(EuiSpacer19, { size: "xxl" }),
57398
- /* @__PURE__ */ jsx167(
57535
+ /* @__PURE__ */ jsx169(EuiSpacer19, { size: "xxl" }),
57536
+ /* @__PURE__ */ jsx169(
57399
57537
  WfoSubscriptionsList,
57400
57538
  {
57401
57539
  hiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
@@ -57409,7 +57547,7 @@ var WfoSubscriptionsListPage = () => {
57409
57547
 
57410
57548
  // src/pages/tasks/WfoTasksListPage.tsx
57411
57549
  import { useContext as useContext14, useEffect as useEffect25, useState as useState39 } from "react";
57412
- import { useTranslations as useTranslations53 } from "next-intl";
57550
+ import { useTranslations as useTranslations54 } from "next-intl";
57413
57551
  import Link6 from "next/link";
57414
57552
  import { useRouter as useRouter15 } from "next/router";
57415
57553
  import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
@@ -57484,11 +57622,11 @@ var getTasksListTabTypeFromString = (tabId) => {
57484
57622
  };
57485
57623
 
57486
57624
  // src/pages/tasks/WfoTasksListPage.tsx
57487
- import { Fragment as Fragment39, jsx as jsx168, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
57625
+ import { Fragment as Fragment40, jsx as jsx170, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
57488
57626
  var WfoTasksListPage = () => {
57489
57627
  var _a;
57490
57628
  const router = useRouter15();
57491
- const t = useTranslations53("tasks.page");
57629
+ const t = useTranslations54("tasks.page");
57492
57630
  const [activeTab, setActiveTab] = useQueryParam3(
57493
57631
  "activeTab",
57494
57632
  withDefault4(StringParam4, "ACTIVE" /* ACTIVE */)
@@ -57541,7 +57679,7 @@ var WfoTasksListPage = () => {
57541
57679
  workflowName: {
57542
57680
  field: "workflowName",
57543
57681
  name: t("taskName"),
57544
- render: (value, { processId }) => /* @__PURE__ */ jsx168(Link6, { href: `${PATH_TASKS}/${processId}`, children: value })
57682
+ render: (value, { processId }) => /* @__PURE__ */ jsx170(Link6, { href: `${PATH_TASKS}/${processId}`, children: value })
57545
57683
  },
57546
57684
  lastStep: defaultTableColumns.lastStep,
57547
57685
  lastStatus: defaultTableColumns.lastStatus,
@@ -57557,24 +57695,41 @@ var WfoTasksListPage = () => {
57557
57695
  startedAt: defaultTableColumns.startedAt,
57558
57696
  lastModifiedAt: defaultTableColumns.lastModifiedAt
57559
57697
  });
57560
- return /* @__PURE__ */ jsxs98(Fragment39, { children: [
57561
- /* @__PURE__ */ jsx168(EuiSpacer20, {}),
57698
+ return /* @__PURE__ */ jsxs98(Fragment40, { children: [
57699
+ /* @__PURE__ */ jsx170(EuiSpacer20, {}),
57562
57700
  /* @__PURE__ */ jsxs98(EuiFlexGroup25, { children: [
57563
- /* @__PURE__ */ jsx168(EuiFlexItem34, { children: /* @__PURE__ */ jsx168(EuiPageHeader5, { pageTitle: "Tasks" }) }),
57564
- /* @__PURE__ */ jsx168(EuiFlexItem34, { children: /* @__PURE__ */ jsxs98(EuiFlexGroup25, { justifyContent: "flexEnd", children: [
57701
+ /* @__PURE__ */ jsx170(EuiFlexItem34, { children: /* @__PURE__ */ jsx170(EuiPageHeader5, { pageTitle: "Tasks" }) }),
57702
+ /* @__PURE__ */ jsx170(EuiFlexItem34, { children: /* @__PURE__ */ jsxs98(EuiFlexGroup25, { justifyContent: "flexEnd", children: [
57565
57703
  " ",
57566
- /* @__PURE__ */ jsx168(
57567
- EuiButton13,
57704
+ /* @__PURE__ */ jsx170(
57705
+ WfoIsAllowedToRender,
57568
57706
  {
57569
- onClick: handleRerunAllButtonClick,
57570
- iconType: () => /* @__PURE__ */ jsx168(WfoRefresh, { color: theme.colors.primaryText }),
57571
- children: t("rerunAll")
57707
+ resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */,
57708
+ children: /* @__PURE__ */ jsx170(
57709
+ EuiButton13,
57710
+ {
57711
+ onClick: handleRerunAllButtonClick,
57712
+ iconType: () => /* @__PURE__ */ jsx170(
57713
+ WfoRefresh,
57714
+ {
57715
+ color: theme.colors.primaryText
57716
+ }
57717
+ ),
57718
+ children: t("rerunAll")
57719
+ }
57720
+ )
57572
57721
  }
57573
57722
  ),
57574
- /* @__PURE__ */ jsx168(WfoStartTaskButtonComboBox, {})
57723
+ /* @__PURE__ */ jsx170(
57724
+ WfoIsAllowedToRender,
57725
+ {
57726
+ resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */,
57727
+ children: /* @__PURE__ */ jsx170(WfoStartTaskButtonComboBox, {})
57728
+ }
57729
+ )
57575
57730
  ] }) })
57576
57731
  ] }),
57577
- /* @__PURE__ */ jsx168(
57732
+ /* @__PURE__ */ jsx170(
57578
57733
  WfoFilterTabs,
57579
57734
  {
57580
57735
  tabs: defaultTasksListTabs,
@@ -57583,8 +57738,8 @@ var WfoTasksListPage = () => {
57583
57738
  onChangeTab: handleChangeTasksListTab
57584
57739
  }
57585
57740
  ),
57586
- /* @__PURE__ */ jsx168(EuiSpacer20, { size: "xxl" }),
57587
- /* @__PURE__ */ jsx168(
57741
+ /* @__PURE__ */ jsx170(EuiSpacer20, { size: "xxl" }),
57742
+ /* @__PURE__ */ jsx170(
57588
57743
  WfoProcessesList,
57589
57744
  {
57590
57745
  defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
@@ -57600,7 +57755,7 @@ var WfoTasksListPage = () => {
57600
57755
 
57601
57756
  // src/pages/workflows/WfoWorkflowsListPage.tsx
57602
57757
  import { useEffect as useEffect26, useState as useState40 } from "react";
57603
- import { useTranslations as useTranslations54 } from "next-intl";
57758
+ import { useTranslations as useTranslations55 } from "next-intl";
57604
57759
  import { useRouter as useRouter16 } from "next/router";
57605
57760
  import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
57606
57761
  import { EuiPageHeader as EuiPageHeader6, EuiSpacer as EuiSpacer21 } from "@elastic/eui";
@@ -57663,11 +57818,11 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
57663
57818
  };
57664
57819
 
57665
57820
  // src/pages/workflows/WfoWorkflowsListPage.tsx
57666
- import { Fragment as Fragment40, jsx as jsx169, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
57821
+ import { Fragment as Fragment41, jsx as jsx171, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
57667
57822
  var WfoWorkflowsListPage = () => {
57668
57823
  var _a;
57669
57824
  const router = useRouter16();
57670
- const t = useTranslations54("workflows.index");
57825
+ const t = useTranslations55("workflows.index");
57671
57826
  const [activeTab, setActiveTab] = useQueryParam4(
57672
57827
  "activeTab",
57673
57828
  withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
@@ -57702,11 +57857,11 @@ var WfoWorkflowsListPage = () => {
57702
57857
  router.replace(PATH_WORKFLOWS);
57703
57858
  return null;
57704
57859
  }
57705
- return /* @__PURE__ */ jsxs99(Fragment40, { children: [
57706
- /* @__PURE__ */ jsx169(EuiSpacer21, {}),
57707
- /* @__PURE__ */ jsx169(EuiPageHeader6, { pageTitle: t("title") }),
57708
- /* @__PURE__ */ jsx169(EuiSpacer21, { size: "m" }),
57709
- /* @__PURE__ */ jsx169(
57860
+ return /* @__PURE__ */ jsxs99(Fragment41, { children: [
57861
+ /* @__PURE__ */ jsx171(EuiSpacer21, {}),
57862
+ /* @__PURE__ */ jsx171(EuiPageHeader6, { pageTitle: t("title") }),
57863
+ /* @__PURE__ */ jsx171(EuiSpacer21, { size: "m" }),
57864
+ /* @__PURE__ */ jsx171(
57710
57865
  WfoFilterTabs,
57711
57866
  {
57712
57867
  tabs: defaultWorkflowsListTabs,
@@ -57715,8 +57870,8 @@ var WfoWorkflowsListPage = () => {
57715
57870
  onChangeTab: handleChangeWorkflowsListTab
57716
57871
  }
57717
57872
  ),
57718
- /* @__PURE__ */ jsx169(EuiSpacer21, { size: "xxl" }),
57719
- /* @__PURE__ */ jsx169(
57873
+ /* @__PURE__ */ jsx171(EuiSpacer21, { size: "xxl" }),
57874
+ /* @__PURE__ */ jsx171(
57720
57875
  WfoProcessesList,
57721
57876
  {
57722
57877
  alwaysOnFilters,
@@ -57826,7 +57981,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
57826
57981
  }));
57827
57982
 
57828
57983
  // src/components/WfoProcessList/WfoProcessesList.tsx
57829
- import { jsx as jsx170 } from "@emotion/react/jsx-runtime";
57984
+ import { jsx as jsx172 } from "@emotion/react/jsx-runtime";
57830
57985
  var WfoProcessesList = ({
57831
57986
  alwaysOnFilters,
57832
57987
  defaultHiddenColumns = [],
@@ -57836,15 +57991,15 @@ var WfoProcessesList = ({
57836
57991
  overrideDefaultTableColumns
57837
57992
  }) => {
57838
57993
  var _a, _b;
57839
- const t = useTranslations55("processes.index");
57840
- const tError = useTranslations55("errors");
57994
+ const t = useTranslations56("processes.index");
57995
+ const tError = useTranslations56("errors");
57841
57996
  const { showToastMessage } = useShowToastMessage();
57842
57997
  const defaultTableColumns = {
57843
57998
  workflowName: {
57844
57999
  field: "workflowName",
57845
58000
  name: t("workflowName"),
57846
58001
  width: "20%",
57847
- render: (value, { processId }) => /* @__PURE__ */ jsx170(Link7, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
58002
+ render: (value, { processId }) => /* @__PURE__ */ jsx172(Link7, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
57848
58003
  },
57849
58004
  lastStep: {
57850
58005
  field: "lastStep",
@@ -57855,13 +58010,13 @@ var WfoProcessesList = ({
57855
58010
  field: "lastStatus",
57856
58011
  name: t("status"),
57857
58012
  width: "100",
57858
- render: (cellValue) => /* @__PURE__ */ jsx170(WfoProcessStatusBadge, { processStatus: cellValue })
58013
+ render: (cellValue) => /* @__PURE__ */ jsx172(WfoProcessStatusBadge, { processStatus: cellValue })
57859
58014
  },
57860
58015
  workflowTarget: {
57861
58016
  field: "workflowTarget",
57862
58017
  name: t("workflowTarget"),
57863
58018
  width: "100",
57864
- render: (target) => /* @__PURE__ */ jsx170(WfoWorkflowTargetBadge, { target })
58019
+ render: (target) => /* @__PURE__ */ jsx172(WfoWorkflowTargetBadge, { target })
57865
58020
  },
57866
58021
  tag: {
57867
58022
  field: "tag",
@@ -57887,14 +58042,14 @@ var WfoProcessesList = ({
57887
58042
  field: "subscriptions",
57888
58043
  name: t("subscriptions"),
57889
58044
  width: "15%",
57890
- render: ({ page: subscriptions }) => /* @__PURE__ */ jsx170(
58045
+ render: ({ page: subscriptions }) => /* @__PURE__ */ jsx172(
57891
58046
  WfoProcessListSubscriptionsCell,
57892
58047
  {
57893
58048
  subscriptions,
57894
58049
  numberOfSubscriptionsToRender: 1
57895
58050
  }
57896
58051
  ),
57897
- renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx170(
58052
+ renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx172(
57898
58053
  WfoProcessListSubscriptionsCell,
57899
58054
  {
57900
58055
  subscriptions
@@ -57916,14 +58071,14 @@ var WfoProcessesList = ({
57916
58071
  field: "processId",
57917
58072
  name: t("processId"),
57918
58073
  width: "90",
57919
- render: (value) => /* @__PURE__ */ jsx170(WfoFirstPartUUID, { UUID: value }),
58074
+ render: (value) => /* @__PURE__ */ jsx172(WfoFirstPartUUID, { UUID: value }),
57920
58075
  renderDetails: (value) => value
57921
58076
  },
57922
58077
  startedAt: {
57923
58078
  field: "startedAt",
57924
58079
  name: t("started"),
57925
58080
  width: "100",
57926
- render: (value) => /* @__PURE__ */ jsx170(WfoDateTime, { dateOrIsoString: value }),
58081
+ render: (value) => /* @__PURE__ */ jsx172(WfoDateTime, { dateOrIsoString: value }),
57927
58082
  renderDetails: parseDateToLocaleDateTimeString,
57928
58083
  clipboardText: parseDateToLocaleDateTimeString
57929
58084
  },
@@ -57931,7 +58086,7 @@ var WfoProcessesList = ({
57931
58086
  field: "lastModifiedAt",
57932
58087
  name: t("lastModified"),
57933
58088
  width: "100",
57934
- render: (value) => /* @__PURE__ */ jsx170(WfoDateTime, { dateOrIsoString: value }),
58089
+ render: (value) => /* @__PURE__ */ jsx172(WfoDateTime, { dateOrIsoString: value }),
57935
58090
  renderDetails: parseDateToLocaleDateTimeString,
57936
58091
  clipboardText: parseDateToLocaleDateTimeString
57937
58092
  }
@@ -57962,7 +58117,7 @@ var WfoProcessesList = ({
57962
58117
  getQueryVariablesForExport(processListQueryVars),
57963
58118
  ["processes", "export"]
57964
58119
  );
57965
- return /* @__PURE__ */ jsx170(
58120
+ return /* @__PURE__ */ jsx172(
57966
58121
  WfoTableWithFilter,
57967
58122
  {
57968
58123
  queryString,
@@ -58014,11 +58169,11 @@ var getStyles14 = (theme) => {
58014
58169
  };
58015
58170
 
58016
58171
  // src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
58017
- import { jsx as jsx171 } from "@emotion/react/jsx-runtime";
58172
+ import { jsx as jsx173 } from "@emotion/react/jsx-runtime";
58018
58173
  var WfoJsonCodeBlock = ({ data }) => {
58019
58174
  const { euiCodeBlockStyle } = useWithOrchestratorTheme(getStyles14);
58020
58175
  const json = JSON.stringify(data, null, 4);
58021
- return /* @__PURE__ */ jsx171(
58176
+ return /* @__PURE__ */ jsx173(
58022
58177
  EuiCodeBlock2,
58023
58178
  {
58024
58179
  css: euiCodeBlockStyle,
@@ -58032,7 +58187,7 @@ var WfoJsonCodeBlock = ({ data }) => {
58032
58187
 
58033
58188
  // src/components/WfoSettings/WfoFlushSettings.tsx
58034
58189
  import { useState as useState41 } from "react";
58035
- import { useTranslations as useTranslations56 } from "next-intl";
58190
+ import { useTranslations as useTranslations57 } from "next-intl";
58036
58191
  import {
58037
58192
  EuiButton as EuiButton14,
58038
58193
  EuiComboBox,
@@ -58040,10 +58195,10 @@ import {
58040
58195
  EuiSpacer as EuiSpacer22,
58041
58196
  EuiText as EuiText36
58042
58197
  } from "@elastic/eui";
58043
- import { jsx as jsx172, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
58198
+ import { jsx as jsx174, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
58044
58199
  var WfoFlushSettings = () => {
58045
58200
  const [clearCache] = useClearCacheMutation();
58046
- const t = useTranslations56("settings.page");
58201
+ const t = useTranslations57("settings.page");
58047
58202
  const [selectedOptions, setSelected] = useState41(
58048
58203
  []
58049
58204
  );
@@ -58083,9 +58238,9 @@ var WfoFlushSettings = () => {
58083
58238
  paddingSize: "l",
58084
58239
  style: { width: "50%" },
58085
58240
  children: [
58086
- /* @__PURE__ */ jsx172(EuiText36, { size: "s", children: /* @__PURE__ */ jsx172("h4", { children: t("flushCacheSettingsTitle") }) }),
58087
- /* @__PURE__ */ jsx172(EuiSpacer22, { size: "m" }),
58088
- /* @__PURE__ */ jsx172(
58241
+ /* @__PURE__ */ jsx174(EuiText36, { size: "s", children: /* @__PURE__ */ jsx174("h4", { children: t("flushCacheSettingsTitle") }) }),
58242
+ /* @__PURE__ */ jsx174(EuiSpacer22, { size: "m" }),
58243
+ /* @__PURE__ */ jsx174(
58089
58244
  EuiComboBox,
58090
58245
  {
58091
58246
  "aria-label": "Flush settings",
@@ -58097,26 +58252,26 @@ var WfoFlushSettings = () => {
58097
58252
  fullWidth: true
58098
58253
  }
58099
58254
  ),
58100
- /* @__PURE__ */ jsx172(EuiSpacer22, { size: "m" }),
58101
- /* @__PURE__ */ jsx172(EuiButton14, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
58255
+ /* @__PURE__ */ jsx174(EuiSpacer22, { size: "m" }),
58256
+ /* @__PURE__ */ jsx174(EuiButton14, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
58102
58257
  ]
58103
58258
  }
58104
58259
  );
58105
58260
  };
58106
58261
 
58107
58262
  // src/components/WfoSettings/WfoEngineStatusButton.tsx
58108
- import { useTranslations as useTranslations57 } from "next-intl";
58263
+ import { useTranslations as useTranslations58 } from "next-intl";
58109
58264
  import { EuiButton as EuiButton15 } from "@elastic/eui";
58110
- import { jsx as jsx173 } from "@emotion/react/jsx-runtime";
58265
+ import { jsx as jsx175 } from "@emotion/react/jsx-runtime";
58111
58266
  var WfoEngineStatusButton = () => {
58112
58267
  const { data, isLoading } = useGetEngineStatusQuery();
58113
58268
  const { engineStatus } = data || {};
58114
58269
  const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
58115
- const t = useTranslations57("settings.page");
58270
+ const t = useTranslations58("settings.page");
58116
58271
  if (isLoading || isSettingEngineStatus) {
58117
- return /* @__PURE__ */ jsx173(EuiButton15, { isLoading: true, fill: true, children: "Loading..." });
58272
+ return /* @__PURE__ */ jsx175(EuiButton15, { isLoading: true, fill: true, children: "Loading..." });
58118
58273
  }
58119
- return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx173(
58274
+ return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx175(
58120
58275
  EuiButton15,
58121
58276
  {
58122
58277
  onClick: () => setEngineStatus(true),
@@ -58125,7 +58280,7 @@ var WfoEngineStatusButton = () => {
58125
58280
  iconType: "pause",
58126
58281
  children: t("pauseEngine")
58127
58282
  }
58128
- ) : /* @__PURE__ */ jsx173(
58283
+ ) : /* @__PURE__ */ jsx175(
58129
58284
  EuiButton15,
58130
58285
  {
58131
58286
  onClick: () => setEngineStatus(false),
@@ -58138,11 +58293,11 @@ var WfoEngineStatusButton = () => {
58138
58293
  };
58139
58294
 
58140
58295
  // src/components/WfoSettings/WfoModifySettings.tsx
58141
- import { useTranslations as useTranslations58 } from "next-intl";
58296
+ import { useTranslations as useTranslations59 } from "next-intl";
58142
58297
  import { EuiPanel as EuiPanel10, EuiSpacer as EuiSpacer23, EuiText as EuiText37 } from "@elastic/eui";
58143
- import { jsx as jsx174, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
58298
+ import { jsx as jsx176, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
58144
58299
  var WfoModifySettings = () => {
58145
- const t = useTranslations58("settings.page");
58300
+ const t = useTranslations59("settings.page");
58146
58301
  return /* @__PURE__ */ jsxs101(
58147
58302
  EuiPanel10,
58148
58303
  {
@@ -58151,16 +58306,16 @@ var WfoModifySettings = () => {
58151
58306
  paddingSize: "l",
58152
58307
  css: { width: "50%" },
58153
58308
  children: [
58154
- /* @__PURE__ */ jsx174(EuiText37, { size: "s", children: /* @__PURE__ */ jsx174("h4", { children: t("modifyEngine") }) }),
58155
- /* @__PURE__ */ jsx174(EuiSpacer23, { size: "m" }),
58156
- /* @__PURE__ */ jsx174(WfoEngineStatusButton, {})
58309
+ /* @__PURE__ */ jsx176(EuiText37, { size: "s", children: /* @__PURE__ */ jsx176("h4", { children: t("modifyEngine") }) }),
58310
+ /* @__PURE__ */ jsx176(EuiSpacer23, { size: "m" }),
58311
+ /* @__PURE__ */ jsx176(WfoEngineStatusButton, {})
58157
58312
  ]
58158
58313
  }
58159
58314
  );
58160
58315
  };
58161
58316
 
58162
58317
  // src/components/WfoSettings/WfoStatus.tsx
58163
- import { useTranslations as useTranslations59 } from "next-intl";
58318
+ import { useTranslations as useTranslations60 } from "next-intl";
58164
58319
  import {
58165
58320
  EuiFlexGroup as EuiFlexGroup26,
58166
58321
  EuiFlexItem as EuiFlexItem35,
@@ -58168,13 +58323,13 @@ import {
58168
58323
  EuiSpacer as EuiSpacer24,
58169
58324
  EuiText as EuiText38
58170
58325
  } from "@elastic/eui";
58171
- import { jsx as jsx175, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
58326
+ import { jsx as jsx177, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
58172
58327
  var WfoStatus = () => {
58173
58328
  const { theme } = useOrchestratorTheme();
58174
58329
  const { data } = useGetEngineStatusQuery();
58175
58330
  const { engineStatus, runningProcesses } = data || {};
58176
58331
  const isRunning = engineStatus === "RUNNING" /* RUNNING */;
58177
- const t = useTranslations59("settings.page");
58332
+ const t = useTranslations60("settings.page");
58178
58333
  return /* @__PURE__ */ jsxs102(
58179
58334
  EuiPanel11,
58180
58335
  {
@@ -58184,20 +58339,20 @@ var WfoStatus = () => {
58184
58339
  style: { width: "50%" },
58185
58340
  children: [
58186
58341
  /* @__PURE__ */ jsxs102(EuiFlexGroup26, { children: [
58187
- /* @__PURE__ */ jsx175(EuiFlexItem35, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx175(EuiText38, { size: "s", children: /* @__PURE__ */ jsx175("h4", { children: t("runningProcesses") }) }) }),
58188
- /* @__PURE__ */ jsx175(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx175(EuiText38, { size: "s", children: /* @__PURE__ */ jsx175("p", { children: runningProcesses || "-" }) }) })
58342
+ /* @__PURE__ */ jsx177(EuiFlexItem35, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx177(EuiText38, { size: "s", children: /* @__PURE__ */ jsx177("h4", { children: t("runningProcesses") }) }) }),
58343
+ /* @__PURE__ */ jsx177(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx177(EuiText38, { size: "s", children: /* @__PURE__ */ jsx177("p", { children: runningProcesses || "-" }) }) })
58189
58344
  ] }),
58190
- /* @__PURE__ */ jsx175(EuiSpacer24, { size: "m" }),
58345
+ /* @__PURE__ */ jsx177(EuiSpacer24, { size: "m" }),
58191
58346
  /* @__PURE__ */ jsxs102(EuiFlexGroup26, { children: [
58192
- /* @__PURE__ */ jsx175(EuiFlexItem35, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx175(EuiText38, { size: "s", children: /* @__PURE__ */ jsx175("h4", { children: t("engineStatus") }) }) }),
58193
- /* @__PURE__ */ jsx175(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsxs102(EuiFlexGroup26, { gutterSize: "xs", children: [
58194
- /* @__PURE__ */ jsx175(EuiFlexItem35, { children: /* @__PURE__ */ jsx175(
58347
+ /* @__PURE__ */ jsx177(EuiFlexItem35, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx177(EuiText38, { size: "s", children: /* @__PURE__ */ jsx177("h4", { children: t("engineStatus") }) }) }),
58348
+ /* @__PURE__ */ jsx177(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsxs102(EuiFlexGroup26, { gutterSize: "xs", children: [
58349
+ /* @__PURE__ */ jsx177(EuiFlexItem35, { children: /* @__PURE__ */ jsx177(
58195
58350
  WfoStatusDotIcon,
58196
58351
  {
58197
58352
  color: isRunning ? theme.colors.success : theme.colors.warning
58198
58353
  }
58199
58354
  ) }),
58200
- /* @__PURE__ */ jsx175(EuiFlexItem35, { children: /* @__PURE__ */ jsx175(EuiText38, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx175("p", { children: engineStatus }) }) })
58355
+ /* @__PURE__ */ jsx177(EuiFlexItem35, { children: /* @__PURE__ */ jsx177(EuiText38, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx177("p", { children: engineStatus }) }) })
58201
58356
  ] }) })
58202
58357
  ] })
58203
58358
  ]
@@ -58207,7 +58362,7 @@ var WfoStatus = () => {
58207
58362
 
58208
58363
  // src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
58209
58364
  import React55 from "react";
58210
- import { jsx as jsx176, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
58365
+ import { jsx as jsx178, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
58211
58366
  var WfoErrorBoundary = class extends React55.Component {
58212
58367
  constructor(props) {
58213
58368
  super(props);
@@ -58227,107 +58382,13 @@ var WfoErrorBoundary = class extends React55.Component {
58227
58382
  return /* @__PURE__ */ jsxs103("p", { children: [
58228
58383
  "An unexpected error occurred, try to go back to the",
58229
58384
  " ",
58230
- /* @__PURE__ */ jsx176("a", { href: "/", children: "home page" })
58385
+ /* @__PURE__ */ jsx178("a", { href: "/", children: "home page" })
58231
58386
  ] });
58232
58387
  }
58233
58388
  return this.props.children;
58234
58389
  }
58235
58390
  };
58236
58391
 
58237
- // src/theme/defaultOrchestratorTheme.ts
58238
- var defaultOrchestratorTheme = {
58239
- base: 16,
58240
- breakpoint: {
58241
- xs: 0,
58242
- s: 575,
58243
- m: 768,
58244
- l: 992,
58245
- xl: 1200,
58246
- xxl: 1600
58247
- },
58248
- size: {
58249
- base: "16px",
58250
- xxs: "2px",
58251
- xs: "4px",
58252
- s: "8px",
58253
- m: "12px",
58254
- l: "24px",
58255
- xl: "32px",
58256
- xxl: "40px",
58257
- xxxl: "48px",
58258
- xxxxl: "64px"
58259
- },
58260
- colors: {
58261
- DARK: {
58262
- primary: "#265391",
58263
- accent: "#F68FBE",
58264
- success: "#7DDED8",
58265
- warning: "#F3D371",
58266
- danger: "#F86B63",
58267
- primaryText: "#3EA6fA",
58268
- accentText: "#F68FBE",
58269
- successText: "#7DDEd8",
58270
- warningText: "#F3D371",
58271
- dangerText: "#F86B63",
58272
- emptyShade: "#1D1E24",
58273
- lightestShade: "#25262E",
58274
- lightShade: "#343741",
58275
- mediumShade: "#535966",
58276
- darkShade: "#98A2B3",
58277
- darkestShade: "#D4DAE5",
58278
- fullShade: "#FFFFFF",
58279
- text: "#DFE5EF",
58280
- title: "#DFE5EF",
58281
- subduedText: "#81858f",
58282
- link: "#3EA6fA",
58283
- body: "#141519",
58284
- highlight: "#262830",
58285
- disabled: "#515761",
58286
- disabledText: "#515761",
58287
- shadow: "#000000"
58288
- },
58289
- LIGHT: {
58290
- primary: "#0077C8",
58291
- accent: "#E67300",
58292
- success: "#008939",
58293
- warning: "#FFC514",
58294
- danger: "#BD271F",
58295
- primaryText: "#0067AC",
58296
- accentText: "#B05200",
58297
- successText: "#007832",
58298
- warningText: "#8E6A00",
58299
- dangerText: "#AC0A01",
58300
- emptyShade: "#FFFFFF",
58301
- lightestShade: "#F1F5F9",
58302
- lightShade: "#CCD5E2",
58303
- mediumShade: "#94A4B8",
58304
- darkShade: "#64758B",
58305
- darkestShade: "#334255",
58306
- fullShade: "#0F172B",
58307
- text: "#334255",
58308
- title: "#0F172B",
58309
- subduedText: "#64758B",
58310
- link: "#0067AC",
58311
- body: "#F1F5F9",
58312
- highlight: "#FFF6DE",
58313
- disabled: "#94A4B8",
58314
- disabledText: "#94A4B8",
58315
- shadow: "#000000"
58316
- }
58317
- },
58318
- font: {
58319
- weight: {
58320
- regular: 400,
58321
- medium: 500,
58322
- semiBold: 600,
58323
- bold: 700
58324
- }
58325
- },
58326
- border: {
58327
- thin: "solid 1px #ddd"
58328
- }
58329
- };
58330
-
58331
58392
  // src/messages/useGetTranslationMessages.ts
58332
58393
  import { useContext as useContext15 } from "react";
58333
58394
 
@@ -58365,6 +58426,7 @@ var en_GB_default = {
58365
58426
  search: "Search",
58366
58427
  errorMessage: "An error occurred",
58367
58428
  export: "Export",
58429
+ unauthorizedPage: "You are not authorized to see this page",
58368
58430
  insyncTrue: "in-sync",
58369
58431
  insyncFalse: "out-of-sync"
58370
58432
  },
@@ -58679,6 +58741,11 @@ var en_GB_default = {
58679
58741
  headerTitle: "Total active subscriptions",
58680
58742
  listTitle: "Most recent subscriptions"
58681
58743
  },
58744
+ outOfSyncSubscriptions: {
58745
+ buttonText: "Show all active out-of-sync subscriptions",
58746
+ headerTitle: "Total active out-of-sync subscriptions",
58747
+ listTitle: "Most recent active out-of-sync subscriptions"
58748
+ },
58682
58749
  activeWorkflows: {
58683
58750
  buttonText: "Show all active workflows",
58684
58751
  headerTitle: "Total active workflows",
@@ -58730,6 +58797,7 @@ var nl_NL_default = {
58730
58797
  search: "Zoeken",
58731
58798
  errorMessage: "Er is een fout opgetreden",
58732
58799
  export: "Exporteren",
58800
+ unauthorizedPage: "Niet geautoriseerd om deze pagina te bekijken",
58733
58801
  insyncTrue: "in-sync",
58734
58802
  insyncFalse: "out-of-sync"
58735
58803
  },
@@ -59043,6 +59111,11 @@ var nl_NL_default = {
59043
59111
  headerTitle: "Totaal aantal actieve subscriptions",
59044
59112
  listTitle: "Meest recente subscriptions"
59045
59113
  },
59114
+ outOfSyncSubscriptions: {
59115
+ buttonText: "Toon alle actieve out-of-sync subscriptions",
59116
+ headerTitle: "Totaal aantal actieve out-of-sync subscriptions",
59117
+ listTitle: "Meest recente actieve out-of-sync subscriptions"
59118
+ },
59046
59119
  activeWorkflows: {
59047
59120
  buttonText: "Toon alle actieve workflows",
59048
59121
  headerTitle: "Totaal aantal actieve workflows",
@@ -59084,6 +59157,100 @@ var useGetTranslationMessages = (locale) => {
59084
59157
  })
59085
59158
  });
59086
59159
  };
59160
+
59161
+ // src/theme/defaultOrchestratorTheme.ts
59162
+ var defaultOrchestratorTheme = {
59163
+ base: 16,
59164
+ breakpoint: {
59165
+ xs: 0,
59166
+ s: 575,
59167
+ m: 768,
59168
+ l: 992,
59169
+ xl: 1200,
59170
+ xxl: 1600
59171
+ },
59172
+ size: {
59173
+ base: "16px",
59174
+ xxs: "2px",
59175
+ xs: "4px",
59176
+ s: "8px",
59177
+ m: "12px",
59178
+ l: "24px",
59179
+ xl: "32px",
59180
+ xxl: "40px",
59181
+ xxxl: "48px",
59182
+ xxxxl: "64px"
59183
+ },
59184
+ colors: {
59185
+ DARK: {
59186
+ primary: "#265391",
59187
+ accent: "#F68FBE",
59188
+ success: "#7DDED8",
59189
+ warning: "#F3D371",
59190
+ danger: "#F86B63",
59191
+ primaryText: "#3EA6fA",
59192
+ accentText: "#F68FBE",
59193
+ successText: "#7DDEd8",
59194
+ warningText: "#F3D371",
59195
+ dangerText: "#F86B63",
59196
+ emptyShade: "#1D1E24",
59197
+ lightestShade: "#25262E",
59198
+ lightShade: "#343741",
59199
+ mediumShade: "#535966",
59200
+ darkShade: "#98A2B3",
59201
+ darkestShade: "#D4DAE5",
59202
+ fullShade: "#FFFFFF",
59203
+ text: "#DFE5EF",
59204
+ title: "#DFE5EF",
59205
+ subduedText: "#81858f",
59206
+ link: "#3EA6fA",
59207
+ body: "#141519",
59208
+ highlight: "#262830",
59209
+ disabled: "#515761",
59210
+ disabledText: "#515761",
59211
+ shadow: "#000000"
59212
+ },
59213
+ LIGHT: {
59214
+ primary: "#0077C8",
59215
+ accent: "#E67300",
59216
+ success: "#008939",
59217
+ warning: "#FFC514",
59218
+ danger: "#BD271F",
59219
+ primaryText: "#0067AC",
59220
+ accentText: "#B05200",
59221
+ successText: "#007832",
59222
+ warningText: "#8E6A00",
59223
+ dangerText: "#AC0A01",
59224
+ emptyShade: "#FFFFFF",
59225
+ lightestShade: "#F1F5F9",
59226
+ lightShade: "#CCD5E2",
59227
+ mediumShade: "#94A4B8",
59228
+ darkShade: "#64758B",
59229
+ darkestShade: "#334255",
59230
+ fullShade: "#0F172B",
59231
+ text: "#334255",
59232
+ title: "#0F172B",
59233
+ subduedText: "#64758B",
59234
+ link: "#0067AC",
59235
+ body: "#F1F5F9",
59236
+ highlight: "#FFF6DE",
59237
+ disabled: "#94A4B8",
59238
+ disabledText: "#94A4B8",
59239
+ shadow: "#000000"
59240
+ }
59241
+ },
59242
+ font: {
59243
+ weight: {
59244
+ regular: 400,
59245
+ medium: 500,
59246
+ semiBold: 600,
59247
+ bold: 700
59248
+ }
59249
+ },
59250
+ border: {
59251
+ thin: "solid 1px #ddd"
59252
+ }
59253
+ };
59087
59254
  export {
59088
59255
  ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY,
59089
59256
  ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY,
@@ -59138,6 +59305,7 @@ export {
59138
59305
  Locale,
59139
59306
  LocationCodeField,
59140
59307
  LongTextField,
59308
+ MAXIMUM_ITEMS_FOR_BULK_FETCHING,
59141
59309
  METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY,
59142
59310
  METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY,
59143
59311
  METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY,
@@ -59161,6 +59329,7 @@ export {
59161
59329
  PATH_WORKFLOWS,
59162
59330
  PolicyContext,
59163
59331
  PolicyContextProvider,
59332
+ PolicyResource,
59164
59333
  ProcessDoneStatuses,
59165
59334
  ProcessStatus,
59166
59335
  ProductField,
@@ -59237,11 +59406,13 @@ export {
59237
59406
  WfoModifySettings,
59238
59407
  WfoPageHeader,
59239
59408
  WfoPageTemplate,
59409
+ WfoPageUnauthorized,
59240
59410
  WfoPencil,
59241
59411
  WfoPencilAlt,
59242
59412
  WfoPlayCircle,
59243
59413
  WfoPlayFill,
59244
59414
  WfoPlusCircleFill,
59415
+ WfoPolicyRenderPageFallback,
59245
59416
  WfoProcessDetailPage,
59246
59417
  WfoProcessListSubscriptionsCell,
59247
59418
  WfoProcessRawData,
@@ -59362,11 +59533,15 @@ export {
59362
59533
  processListQuery,
59363
59534
  removeSuffix,
59364
59535
  removeToastMessage,
59536
+ renderEmptyElementWhenNotAllowedByPolicy,
59365
59537
  setTableConfigToLocalStorage,
59538
+ snakeToHuman,
59539
+ snakeToKebab,
59366
59540
  stop,
59367
59541
  toastMessagesReducer,
59368
59542
  toastMessagesSlice,
59369
59543
  upperCaseFirstChar,
59544
+ urlPolicyMap,
59370
59545
  useCacheNames,
59371
59546
  useCheckEngineStatus,
59372
59547
  useClearCacheMutation,