@orchestrator-ui/orchestrator-ui-components 5.1.0 → 5.2.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.
Files changed (28) hide show
  1. package/.turbo/turbo-build.log +6 -6
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +5 -5
  4. package/CHANGELOG.md +10 -0
  5. package/dist/index.d.ts +1122 -378
  6. package/dist/index.js +663 -701
  7. package/dist/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/components/WfoForms/formFields/commonStyles.ts +4 -0
  10. package/src/components/WfoForms/formFields/{SubscriptionField.tsx → deprecated/SubscriptionField.tsx} +53 -157
  11. package/src/components/WfoForms/formFields/deprecated/index.ts +1 -0
  12. package/src/components/WfoForms/formFields/index.ts +0 -1
  13. package/src/components/WfoPydanticForm/Header.tsx +18 -0
  14. package/src/components/WfoPydanticForm/Row.tsx +15 -3
  15. package/src/components/WfoPydanticForm/WfoPydanticForm.tsx +2 -1
  16. package/src/configuration/constants.ts +2 -0
  17. package/src/configuration/version.ts +1 -1
  18. package/src/hooks/deprecated/useGetSurfSubcriptionDropdownOptions.ts +37 -0
  19. package/src/rtk/api.ts +3 -1
  20. package/src/rtk/endpoints/deprecated/index.ts +1 -0
  21. package/src/rtk/endpoints/deprecated/surfSubscriptionDropdownOptions.ts +53 -0
  22. package/src/rtk/endpoints/index.ts +1 -1
  23. package/src/types/deprecated/SurfSubscriptionDropdownOptionsFilterParams.ts +10 -0
  24. package/src/types/deprecated/index.ts +1 -0
  25. package/src/types/index.ts +1 -0
  26. package/src/hooks/deprecated/useGetSubscriptionDropdownOptions.ts +0 -39
  27. package/src/rtk/endpoints/subscriptionsDropdownOptions.ts +0 -71
  28. /package/src/components/WfoForms/formFields/{SubscriptionFieldStyling.ts → deprecated/SubscriptionFieldStyling.ts} +0 -0
package/dist/index.js CHANGED
@@ -4922,10 +4922,10 @@ var require_markup = __commonJS({
4922
4922
  var require_css = __commonJS({
4923
4923
  "../../node_modules/refractor/lang/css.js"(exports, module) {
4924
4924
  "use strict";
4925
- module.exports = css47;
4926
- css47.displayName = "css";
4927
- css47.aliases = [];
4928
- function css47(Prism) {
4925
+ module.exports = css48;
4926
+ css48.displayName = "css";
4927
+ css48.aliases = [];
4928
+ function css48(Prism) {
4929
4929
  ;
4930
4930
  (function(Prism2) {
4931
4931
  var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
@@ -5192,7 +5192,7 @@ var require_core = __commonJS({
5192
5192
  var decode = require_parse_entities();
5193
5193
  var Prism = require_prism_core();
5194
5194
  var markup = require_markup();
5195
- var css47 = require_css();
5195
+ var css48 = require_css();
5196
5196
  var clike = require_clike();
5197
5197
  var js = require_javascript();
5198
5198
  restore();
@@ -5208,7 +5208,7 @@ var require_core = __commonJS({
5208
5208
  refract.registered = registered;
5209
5209
  refract.listLanguages = listLanguages;
5210
5210
  register(markup);
5211
- register(css47);
5211
+ register(css48);
5212
5212
  register(clike);
5213
5213
  register(js);
5214
5214
  refract.util.encode = encode;
@@ -15304,10 +15304,10 @@ var require_jsstacktrace = __commonJS({
15304
15304
  var require_jsx = __commonJS({
15305
15305
  "../../node_modules/refractor/lang/jsx.js"(exports, module) {
15306
15306
  "use strict";
15307
- module.exports = jsx258;
15308
- jsx258.displayName = "jsx";
15309
- jsx258.aliases = [];
15310
- function jsx258(Prism) {
15307
+ module.exports = jsx259;
15308
+ jsx259.displayName = "jsx";
15309
+ jsx259.aliases = [];
15310
+ function jsx259(Prism) {
15311
15311
  ;
15312
15312
  (function(Prism2) {
15313
15313
  var javascript = Prism2.util.clone(Prism2.languages.javascript);
@@ -26766,6 +26766,7 @@ var IPAM_PREFIX_FILTERS_ENDPOINT = `${IPAM_ENDPOINT}/prefix_filters`;
26766
26766
  var IPAM_IP_BLOCKS_ENDPOINT = `${IPAM_ENDPOINT}/ip_blocks`;
26767
26767
  var IPAM_FREE_SUBNETS_ENDPOINT = `${IPAM_ENDPOINT}/free_subnets`;
26768
26768
  var SUBSCRIPTION_ACTIONS_ENDPOINT = "subscriptions/workflows";
26769
+ var SUBSCRIPTION_DROPDOWN_OPTIONS_ENDPOINT = "surf/subscriptions/dropdown-options";
26769
26770
  var CUSTOMER_DESCRIPTION_ENDPOINT = "/subscription_customer_descriptions";
26770
26771
  var METADATA_PRODUCT_ENDPOINT = "products";
26771
26772
  var METADATA_PRODUCT_BLOCK_ENDPOINT = "product_blocks";
@@ -26798,7 +26799,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
26798
26799
  })(PolicyResource || {});
26799
26800
 
26800
26801
  // src/configuration/version.ts
26801
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.1.0";
26802
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.2.0";
26802
26803
 
26803
26804
  // src/types/types.ts
26804
26805
  var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
@@ -33261,7 +33262,7 @@ var catchErrorResponse = async (response, authActive) => {
33261
33262
  var orchestratorApi = createApi2({
33262
33263
  reducerPath: "orchestratorApi",
33263
33264
  baseQuery: (args, api, extraOptions) => {
33264
- const { baseQueryType, apiName } = extraOptions || {};
33265
+ const { baseQueryType, apiName, paramsSerializer } = extraOptions || {};
33265
33266
  const state = api.getState();
33266
33267
  const { orchestratorApiBaseUrl, graphqlEndpointCore, authActive } = state.orchestratorConfig;
33267
33268
  const customApi = state.customApis?.find(
@@ -33272,6 +33273,7 @@ var orchestratorApi = createApi2({
33272
33273
  const fetchFn = fetchBaseQuery({
33273
33274
  baseUrl: customApi ? customApi.apiBaseUrl : orchestratorApiBaseUrl,
33274
33275
  prepareHeaders,
33276
+ paramsSerializer,
33275
33277
  responseHandler: (response) => catchErrorResponse(response, authActive)
33276
33278
  });
33277
33279
  return fetchFn(args, api, {});
@@ -35207,57 +35209,6 @@ var subscriptionListSummaryApi = orchestratorApi.injectEndpoints({
35207
35209
  });
35208
35210
  var { useGetSubscriptionSummaryListQuery } = subscriptionListSummaryApi;
35209
35211
 
35210
- // src/rtk/endpoints/subscriptionsDropdownOptions.ts
35211
- var subscriptionsDropdownOptionsQuery = `
35212
- query SubscriptionDropdownOptions(
35213
- $filterBy: [GraphqlFilter!]
35214
- $first: Int!
35215
- ) {
35216
- subscriptions(filterBy: $filterBy, first: $first, after: 0) {
35217
- page {
35218
- description
35219
- subscriptionId
35220
- product {
35221
- tag
35222
- productId
35223
- }
35224
- customer {
35225
- fullname
35226
- customerId
35227
- }
35228
- productBlockInstances {
35229
- id
35230
- ownerSubscriptionId
35231
- parent
35232
- productBlockInstanceValues
35233
- subscriptionInstanceId
35234
- }
35235
- fixedInputs
35236
- }
35237
- }
35238
- }
35239
- `;
35240
- var subscriptionsDropdownOptionsApi = orchestratorApi.injectEndpoints({
35241
- endpoints: (builder) => ({
35242
- getSubscriptionsDropdownOptions: builder.query({
35243
- query: (variables) => ({
35244
- document: subscriptionsDropdownOptionsQuery,
35245
- variables: {
35246
- ...variables,
35247
- first: NUMBER_OF_ITEMS_REPRESENTING_ALL_ITEMS
35248
- }
35249
- }),
35250
- transformResponse: (response) => {
35251
- const subscriptionDropdownOptions = response.subscriptions.page || [];
35252
- return {
35253
- subscriptionDropdownOptions
35254
- };
35255
- }
35256
- })
35257
- })
35258
- });
35259
- var { useGetSubscriptionsDropdownOptionsQuery } = subscriptionsDropdownOptionsApi;
35260
-
35261
35212
  // src/rtk/endpoints/forms.ts
35262
35213
  var PROCESS_ENDPOINT = "processes";
35263
35214
  var RESUME_ENDPOINT = "resume";
@@ -35311,6 +35262,39 @@ var {
35311
35262
  useStartFormMutation
35312
35263
  } = formsApi;
35313
35264
 
35265
+ // src/rtk/endpoints/deprecated/surfSubscriptionDropdownOptions.ts
35266
+ function toUrlParams(params) {
35267
+ const urlParams = new URLSearchParams();
35268
+ Object.entries(params).forEach(([key, value]) => {
35269
+ if (Array.isArray(value)) {
35270
+ value.forEach((v) => {
35271
+ urlParams.append(key, String(v));
35272
+ });
35273
+ } else if (value !== void 0) {
35274
+ urlParams.append(key, String(value));
35275
+ }
35276
+ });
35277
+ return urlParams.toString();
35278
+ }
35279
+ var surfSubscriptionDropdownOptionsApi = orchestratorApi.injectEndpoints({
35280
+ endpoints: (build) => ({
35281
+ getSurfSubscriptionDropdownOptions: build.query({
35282
+ query: ({ params }) => ({
35283
+ url: SUBSCRIPTION_DROPDOWN_OPTIONS_ENDPOINT,
35284
+ params
35285
+ }),
35286
+ extraOptions: {
35287
+ baseQueryType: "fetch" /* fetch */,
35288
+ paramsSerializer: toUrlParams
35289
+ }
35290
+ })
35291
+ })
35292
+ });
35293
+ var {
35294
+ useGetSurfSubscriptionDropdownOptionsQuery,
35295
+ useLazyGetSurfSubscriptionDropdownOptionsQuery
35296
+ } = surfSubscriptionDropdownOptionsApi;
35297
+
35314
35298
  // src/rtk/endpoints/formFields.ts
35315
35299
  var LOCATION_CODES_ENDPOINT = "surf/crm/location_codes";
35316
35300
  var CONTACT_PERSONS_ENDPOINT = "surf/crm/contacts";
@@ -38964,7 +38948,7 @@ var WfoHeaderBadge = ({
38964
38948
  children,
38965
38949
  ...restProps
38966
38950
  }) => {
38967
- const css47 = restProps.iconType ? {
38951
+ const css48 = restProps.iconType ? {
38968
38952
  height: 24,
38969
38953
  display: "flex",
38970
38954
  paddingLeft: 0
@@ -38972,7 +38956,7 @@ var WfoHeaderBadge = ({
38972
38956
  height: 24,
38973
38957
  display: "flex"
38974
38958
  };
38975
- return /* @__PURE__ */ jsx72(WfoBadge, { ...restProps, css: css47, children });
38959
+ return /* @__PURE__ */ jsx72(WfoBadge, { ...restProps, css: css48, children });
38976
38960
  };
38977
38961
 
38978
38962
  // src/components/WfoBadges/WfoEnvironmentBadge/WfoEnvironmentBadge.tsx
@@ -44879,7 +44863,11 @@ var getCommonFormFieldStyles = ({ theme }) => {
44879
44863
  flexDirection: "column"
44880
44864
  }
44881
44865
  });
44866
+ const errorStyle = css25({
44867
+ color: theme.colors.dangerText
44868
+ });
44882
44869
  return {
44870
+ errorStyle,
44883
44871
  formRowStyle
44884
44872
  };
44885
44873
  };
@@ -47236,164 +47224,49 @@ var ProductTag = /* @__PURE__ */ ((ProductTag2) => {
47236
47224
  // src/components/WfoForms/formFields/deprecated/utils.ts
47237
47225
  var ipamStates = ["Free", "Allocated", null, "Planned", null, null];
47238
47226
 
47239
- // src/components/WfoForms/formFields/NestField.tsx
47240
- import { connectField as connectField24, filterDOMProps as filterDOMProps24, joinName as joinName8 } from "uniforms";
47241
- import { AutoField as AutoField3 } from "uniforms-unstyled";
47242
- import {
47243
- EuiDescribedFormGroup,
47244
- EuiFlexGroup as EuiFlexGroup16,
47245
- EuiFlexItem as EuiFlexItem20,
47246
- EuiText as EuiText31
47247
- } from "@elastic/eui";
47248
- import { Fragment as Fragment36, jsx as jsx177, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
47249
- filterDOMProps24.register("properties", "wrap");
47250
- function Nest({
47251
- children,
47252
- fields,
47253
- itemProps,
47254
- label,
47255
- description,
47256
- name,
47257
- className = "",
47258
- ...props
47259
- }) {
47260
- const nameArray = joinName8(null, name);
47261
- const lastNamePart = nameArray[nameArray.length - 1];
47262
- const isInList = !isNaN(parseInt(lastNamePart));
47263
- const itemIndex = isInList ? parseInt(lastNamePart) : 0;
47264
- if (isInList) {
47265
- return /* @__PURE__ */ jsxs95(
47266
- EuiFlexGroup16,
47267
- {
47268
- ...filterDOMProps24(props),
47269
- className: `${className} nest-field`,
47270
- children: [
47271
- label && /* @__PURE__ */ jsxs95(Fragment36, { children: [
47272
- /* @__PURE__ */ jsx177("label", { className: "euiFormLabel euiFormRow__label", children: label }),
47273
- /* @__PURE__ */ jsx177(EuiText31, { size: "m", children: description })
47274
- ] }),
47275
- children || fields?.map((field) => /* @__PURE__ */ jsx177(EuiFlexItem20, { children: /* @__PURE__ */ jsx177(
47276
- AutoField3,
47277
- {
47278
- name: field,
47279
- ...itemProps,
47280
- label: itemIndex === 0 ? void 0 : false
47281
- }
47282
- ) }, field))
47283
- ]
47284
- }
47285
- );
47286
- } else {
47287
- return /* @__PURE__ */ jsx177(
47288
- EuiDescribedFormGroup,
47289
- {
47290
- ...filterDOMProps24(props),
47291
- title: /* @__PURE__ */ jsx177("span", { children: label }),
47292
- description,
47293
- className: `${className} nest-field`,
47294
- children: children || fields?.map((field) => /* @__PURE__ */ jsx177(
47295
- AutoField3,
47296
- {
47297
- name: field,
47298
- ...itemProps,
47299
- label: itemIndex === 0 ? void 0 : false
47300
- },
47301
- field
47302
- ))
47303
- }
47304
- );
47305
- }
47306
- }
47307
- var NestField = connectField24(Nest);
47308
-
47309
- // src/components/WfoForms/formFields/OptGroupField.tsx
47310
- import { useTranslations as useTranslations47 } from "next-intl";
47311
- import { connectField as connectField25, filterDOMProps as filterDOMProps25, useField as useField7 } from "uniforms";
47312
- import { AutoField as AutoField4 } from "uniforms-unstyled";
47313
- import { EuiDescribedFormGroup as EuiDescribedFormGroup2, EuiFlexItem as EuiFlexItem21, EuiFormRow as EuiFormRow18 } from "@elastic/eui";
47314
- import { Fragment as Fragment37, jsx as jsx178, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
47315
- filterDOMProps25.register("properties");
47316
- function OptGroup({
47317
- fields,
47318
- itemProps,
47319
- name,
47320
- readOnly,
47321
- className = "",
47322
- ...props
47323
- }) {
47324
- const t = useTranslations47("pydanticForms.backendTranslations");
47325
- const enabled = useField7("enabled", {})[0].value;
47326
- return /* @__PURE__ */ jsx178(
47327
- EuiDescribedFormGroup2,
47328
- {
47329
- ...filterDOMProps25(props),
47330
- title: /* @__PURE__ */ jsx178("span", { children: t(`${name}.title`) }),
47331
- description: t(`${name}.description`),
47332
- className: `${className} optgroup-field`,
47333
- children: /* @__PURE__ */ jsxs96(Fragment37, { children: [
47334
- /* @__PURE__ */ jsx178(EuiFlexItem21, { children: /* @__PURE__ */ jsx178(
47335
- EuiFormRow18,
47336
- {
47337
- error: false,
47338
- isInvalid: false,
47339
- id: name,
47340
- children: /* @__PURE__ */ jsx178(BoolField, { name: "enabled", readOnly })
47341
- }
47342
- ) }),
47343
- enabled && fields?.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx178(EuiFlexItem21, { children: /* @__PURE__ */ jsx178(AutoField4, { name: field, ...itemProps }) }, field))
47344
- ] })
47345
- }
47346
- );
47347
- }
47348
- var OptGroupField = connectField25(OptGroup);
47349
-
47350
- // src/components/WfoForms/formFields/SubscriptionField.tsx
47227
+ // src/components/WfoForms/formFields/deprecated/SubscriptionField.tsx
47351
47228
  import ReactSelect4 from "react-select";
47352
47229
  import get7 from "lodash/get";
47353
- import { useTranslations as useTranslations48 } from "next-intl";
47230
+ import { useTranslations as useTranslations47 } from "next-intl";
47354
47231
  import {
47355
- connectField as connectField26,
47356
- filterDOMProps as filterDOMProps26,
47357
- joinName as joinName9,
47358
- useField as useField8,
47232
+ connectField as connectField24,
47233
+ filterDOMProps as filterDOMProps24,
47234
+ joinName as joinName8,
47235
+ useField as useField7,
47359
47236
  useForm as useForm8
47360
47237
  } from "uniforms";
47361
47238
  import {
47362
47239
  EuiButtonIcon as EuiButtonIcon10,
47363
- EuiFlexGroup as EuiFlexGroup17,
47364
- EuiFlexItem as EuiFlexItem22,
47365
- EuiFormRow as EuiFormRow19,
47366
- EuiText as EuiText32
47240
+ EuiFlexGroup as EuiFlexGroup16,
47241
+ EuiFlexItem as EuiFlexItem20,
47242
+ EuiFormRow as EuiFormRow18,
47243
+ EuiText as EuiText31
47367
47244
  } from "@elastic/eui";
47368
47245
 
47369
- // src/hooks/deprecated/useGetSubscriptionDropdownOptions.ts
47370
- var useGetSubscriptionDropdownOptions = (tags = [], statuses = ["active"]) => {
47371
- const tagValue = tags.join("|");
47372
- const statusValue = statuses.join("|");
47373
- const filters = [];
47374
- if (tagValue) {
47375
- filters.push({
47376
- field: "tag",
47377
- value: tagValue
47378
- });
47379
- }
47380
- if (statusValue) {
47381
- filters.push({
47382
- field: "status",
47383
- value: statusValue
47384
- });
47385
- }
47386
- const { data, isFetching, refetch, isError: isError2 } = useGetSubscriptionsDropdownOptionsQuery({ filterBy: filters });
47387
- const subscriptions = (() => {
47246
+ // src/hooks/deprecated/useGetSurfSubcriptionDropdownOptions.ts
47247
+ var useGetSurfSubscriptionDropdownOptions = (tags = [], statuses = ["active"], productIds = [], excludeSubscriptionIds = [], customerId, portModes = [], bandwidth) => {
47248
+ const filter_params = {
47249
+ product_tags: tags,
47250
+ statuses,
47251
+ product_ids: productIds,
47252
+ exclude_subscription_ids: excludeSubscriptionIds,
47253
+ port_modes: portModes,
47254
+ bandwidth
47255
+ };
47256
+ if (customerId) {
47257
+ filter_params.customer_ids = [customerId];
47258
+ }
47259
+ const { data, isFetching, refetch, isError: isError2 } = useGetSurfSubscriptionDropdownOptionsQuery({ params: filter_params });
47260
+ const options = (() => {
47388
47261
  if (!isFetching && !isError2 && data) {
47389
- return data.subscriptionDropdownOptions;
47262
+ return data;
47390
47263
  }
47391
47264
  return [];
47392
47265
  })();
47393
- return { isFetching, refetch, subscriptions };
47266
+ return { isFetching, refetch, options };
47394
47267
  };
47395
47268
 
47396
- // src/components/WfoForms/formFields/SubscriptionFieldStyling.ts
47269
+ // src/components/WfoForms/formFields/deprecated/SubscriptionFieldStyling.ts
47397
47270
  import { css as css32 } from "@emotion/react";
47398
47271
  var subscriptionFieldStyling = css32`
47399
47272
  .subscription-field {
@@ -47427,9 +47300,9 @@ var subscriptionFieldStyling = css32`
47427
47300
  }
47428
47301
  `;
47429
47302
 
47430
- // src/components/WfoForms/formFields/SubscriptionField.tsx
47431
- import { jsx as jsx179, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
47432
- filterDOMProps26.register(
47303
+ // src/components/WfoForms/formFields/deprecated/SubscriptionField.tsx
47304
+ import { jsx as jsx177, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
47305
+ filterDOMProps24.register(
47433
47306
  "excludedSubscriptionIds",
47434
47307
  "customerId",
47435
47308
  "customerKey",
@@ -47439,6 +47312,15 @@ filterDOMProps26.register(
47439
47312
  "tags",
47440
47313
  "statuses"
47441
47314
  );
47315
+ function toPortModes(visiblePortMode) {
47316
+ if (visiblePortMode === "all") {
47317
+ return [];
47318
+ }
47319
+ if (visiblePortMode === "normal") {
47320
+ return ["tagged", "untagged"];
47321
+ }
47322
+ return [visiblePortMode];
47323
+ }
47442
47324
  function SubscriptionFieldDefinition({
47443
47325
  disabled,
47444
47326
  id,
@@ -47463,133 +47345,75 @@ function SubscriptionFieldDefinition({
47463
47345
  statuses,
47464
47346
  ...props
47465
47347
  }) {
47466
- const t = useTranslations48("pydanticForms");
47348
+ const t = useTranslations47("pydanticForms");
47467
47349
  const { reactSelectInnerComponentStyles } = useWithOrchestratorTheme(getSelectFieldStyles);
47468
- const { refetch, subscriptions, isFetching } = useGetSubscriptionDropdownOptions(tags, statuses);
47469
- const nameArray = joinName9(null, name);
47470
- let parentName = joinName9(nameArray.slice(0, -1));
47350
+ const nameArray = joinName8(null, name);
47351
+ let parentName = joinName8(nameArray.slice(0, -1));
47471
47352
  if (parentName === "") {
47472
47353
  parentName = name;
47473
47354
  }
47474
- const parent = useField8(parentName, {}, { absoluteName: true })[0];
47355
+ const parent = useField7(parentName, {}, { absoluteName: true })[0];
47475
47356
  const { model, schema } = useForm8();
47476
47357
  const bandWithFromField = bandwidthKey ? get7(model, bandwidthKey) || schema.getInitialValue(bandwidthKey, {}) : void 0;
47477
47358
  const usedBandwidth = bandwidth || bandWithFromField;
47478
47359
  const usedCustomerId = customerKey ? get7(model, customerKey, "nonExistingOrgToFilterEverything") : customerId;
47479
- const makeLabel = (subscription) => {
47480
- const description2 = subscription.description || t("widgets.subscription.missingDescription");
47481
- const subscriptionSubstring = subscription.subscriptionId.substring(
47482
- 0,
47483
- 8
47484
- );
47485
- if (["Node"].includes(subscription.product.tag)) {
47486
- const description3 = subscription.description || t("widgets.subscription.missingDescription");
47487
- return `${subscription.subscriptionId.substring(
47488
- 0,
47489
- 8
47490
- )} ${description3.trim()}`;
47491
- } else if ([
47492
- "SP" /* SP */,
47493
- "SPNL" /* SPNL */,
47494
- "AGGSP" /* AGGSP */,
47495
- "AGGSPNL" /* AGGSPNL */,
47496
- "MSC" /* MSC */,
47497
- "MSCNL" /* MSCNL */,
47498
- "IRBSP" /* IRBSP */
47499
- ].includes(subscription.product.tag)) {
47500
- const portMode = getPortMode(subscription.productBlockInstances);
47501
- const subscriptionTitle = subscription.productBlockInstances[0].productBlockInstanceValues.find(
47502
- (item) => item.field === "title"
47360
+ const getFilteredOptions = (optionsInput) => {
47361
+ if (parentName !== name && parent.fieldType === Array && // @ts-expect-error Parent field can have the uniqueItems boolean property but this is not part of JSONSchema6 type
47362
+ // TODO: Figure out why this is so
47363
+ parent.uniqueItems) {
47364
+ const allValues = get7(model, parentName, []);
47365
+ const chosenValues = allValues.filter(
47366
+ (_item, index) => index.toString() !== nameArray[nameArray.length - 1]
47367
+ );
47368
+ return optionsInput.filter(
47369
+ (option) => chosenValues.includes(option.value)
47503
47370
  );
47504
- if (subscriptionTitle) {
47505
- return `${subscriptionSubstring} - ${description2.trim()} - ${subscriptionTitle.value}`;
47506
- }
47507
- return `${subscriptionSubstring} ${portMode?.toUpperCase()} ${description2.trim()} ${subscription.customer?.fullname}`;
47508
47371
  } else {
47509
- return description2.trim();
47372
+ return optionsInput;
47510
47373
  }
47511
47374
  };
47512
- const getSubscriptionOptions = () => {
47513
- const filteredSubscriptions = subscriptions?.filter((subscription) => {
47514
- if (usedBandwidth) {
47515
- const portSpeedInput = subscription.fixedInputs.find(
47516
- (fixedInput) => fixedInput.field === "port_speed"
47517
- );
47518
- if (portSpeedInput?.value && parseInt(portSpeedInput.value.toString(), 10) < parseInt(usedBandwidth.toString(), 10)) {
47519
- return false;
47520
- }
47521
- }
47522
- if (!usedBandwidth && productIds && productIds.length > 0 && !productIds.includes(subscription.product.productId)) {
47523
- return false;
47524
- }
47525
- if (!usedBandwidth && !productIds && tags && tags?.length > 0 && !tags.includes(subscription.product.tag)) {
47526
- return false;
47527
- }
47528
- if (excludedSubscriptionIds && excludedSubscriptionIds.length > 0 && excludedSubscriptionIds.includes(subscription.subscriptionId)) {
47529
- return false;
47530
- }
47531
- if (visiblePortMode !== "all") {
47532
- const portMode = getPortMode(
47533
- subscription.productBlockInstances
47534
- );
47535
- if (visiblePortMode === "normal" && !["tagged" /* TAGGED */, "untagged" /* UNTAGGED */, void 0].includes(
47536
- portMode
47537
- )) {
47538
- return false;
47539
- } else if (portMode !== visiblePortMode && visiblePortMode !== "normal") {
47540
- return false;
47541
- }
47542
- }
47543
- if (usedCustomerId && subscription.customer?.customerId !== usedCustomerId) {
47544
- return false;
47545
- }
47546
- if (parentName !== name) {
47547
- if (parent.fieldType === Array && // @ts-expect-error Parent field can have the uniqueItems boolean property but this is not part of JSONSchema6 type
47548
- // TODO: Figure out why this is so
47549
- parent.uniqueItems) {
47550
- const allValues = get7(model, parentName, []);
47551
- const chosenValues = allValues.filter(
47552
- (_item, index) => index.toString() !== nameArray[nameArray.length - 1]
47553
- );
47554
- if (!chosenValues.includes(subscription.subscriptionId)) {
47555
- return false;
47556
- }
47557
- }
47558
- }
47559
- return true;
47560
- });
47561
- return filteredSubscriptions ? filteredSubscriptions.map((subscription) => ({
47562
- label: makeLabel(subscription),
47563
- value: subscription.subscriptionId
47564
- })) : [];
47565
- };
47566
- const options = getSubscriptionOptions();
47375
+ const excludeSubscriptionIds = excludedSubscriptionIds;
47376
+ const portModes = toPortModes(visiblePortMode);
47377
+ const {
47378
+ refetch,
47379
+ options: unfilteredOptions,
47380
+ isFetching
47381
+ } = useGetSurfSubscriptionDropdownOptions(
47382
+ tags,
47383
+ statuses,
47384
+ productIds,
47385
+ excludeSubscriptionIds,
47386
+ usedCustomerId,
47387
+ portModes,
47388
+ usedBandwidth
47389
+ );
47390
+ const options = getFilteredOptions(unfilteredOptions);
47567
47391
  const selectedValue = options.find(
47568
47392
  (option) => option.value === value
47569
47393
  );
47570
47394
  const isDisabled = disabled || readOnly || isFetching;
47571
- return /* @__PURE__ */ jsx179(EuiFlexItem22, { css: subscriptionFieldStyling, grow: 1, children: /* @__PURE__ */ jsx179(
47395
+ return /* @__PURE__ */ jsx177(EuiFlexItem20, { css: subscriptionFieldStyling, grow: 1, children: /* @__PURE__ */ jsx177(
47572
47396
  "section",
47573
47397
  {
47574
- ...filterDOMProps26(props),
47398
+ ...filterDOMProps24(props),
47575
47399
  className: `${className} subscription-field${disabled ? "-disabled" : ""}`,
47576
- children: /* @__PURE__ */ jsx179(
47577
- EuiFormRow19,
47400
+ children: /* @__PURE__ */ jsx177(
47401
+ EuiFormRow18,
47578
47402
  {
47579
47403
  label,
47580
- labelAppend: /* @__PURE__ */ jsx179(EuiText32, { size: "m", children: description }),
47404
+ labelAppend: /* @__PURE__ */ jsx177(EuiText31, { size: "m", children: description }),
47581
47405
  error: showInlineError ? errorMessage : false,
47582
47406
  isInvalid: error,
47583
47407
  id,
47584
47408
  fullWidth: true,
47585
- children: /* @__PURE__ */ jsxs97("div", { children: [
47586
- !disabled && /* @__PURE__ */ jsx179(
47587
- EuiFlexGroup17,
47409
+ children: /* @__PURE__ */ jsxs95("div", { children: [
47410
+ !disabled && /* @__PURE__ */ jsx177(
47411
+ EuiFlexGroup16,
47588
47412
  {
47589
47413
  alignItems: "center",
47590
47414
  gutterSize: "none",
47591
47415
  responsive: false,
47592
- children: /* @__PURE__ */ jsx179(
47416
+ children: /* @__PURE__ */ jsx177(
47593
47417
  EuiButtonIcon10,
47594
47418
  {
47595
47419
  className: "reload-subscriptions-icon-button",
@@ -47607,7 +47431,7 @@ function SubscriptionFieldDefinition({
47607
47431
  )
47608
47432
  }
47609
47433
  ),
47610
- /* @__PURE__ */ jsx179(
47434
+ /* @__PURE__ */ jsx177(
47611
47435
  ReactSelect4,
47612
47436
  {
47613
47437
  id,
@@ -47632,10 +47456,121 @@ function SubscriptionFieldDefinition({
47632
47456
  }
47633
47457
  ) });
47634
47458
  }
47635
- var SubscriptionField = connectField26(SubscriptionFieldDefinition, {
47459
+ var SubscriptionField = connectField24(SubscriptionFieldDefinition, {
47636
47460
  kind: "leaf"
47637
47461
  });
47638
47462
 
47463
+ // src/components/WfoForms/formFields/NestField.tsx
47464
+ import { connectField as connectField25, filterDOMProps as filterDOMProps25, joinName as joinName9 } from "uniforms";
47465
+ import { AutoField as AutoField3 } from "uniforms-unstyled";
47466
+ import {
47467
+ EuiDescribedFormGroup,
47468
+ EuiFlexGroup as EuiFlexGroup17,
47469
+ EuiFlexItem as EuiFlexItem21,
47470
+ EuiText as EuiText32
47471
+ } from "@elastic/eui";
47472
+ import { Fragment as Fragment36, jsx as jsx178, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
47473
+ filterDOMProps25.register("properties", "wrap");
47474
+ function Nest({
47475
+ children,
47476
+ fields,
47477
+ itemProps,
47478
+ label,
47479
+ description,
47480
+ name,
47481
+ className = "",
47482
+ ...props
47483
+ }) {
47484
+ const nameArray = joinName9(null, name);
47485
+ const lastNamePart = nameArray[nameArray.length - 1];
47486
+ const isInList = !isNaN(parseInt(lastNamePart));
47487
+ const itemIndex = isInList ? parseInt(lastNamePart) : 0;
47488
+ if (isInList) {
47489
+ return /* @__PURE__ */ jsxs96(
47490
+ EuiFlexGroup17,
47491
+ {
47492
+ ...filterDOMProps25(props),
47493
+ className: `${className} nest-field`,
47494
+ children: [
47495
+ label && /* @__PURE__ */ jsxs96(Fragment36, { children: [
47496
+ /* @__PURE__ */ jsx178("label", { className: "euiFormLabel euiFormRow__label", children: label }),
47497
+ /* @__PURE__ */ jsx178(EuiText32, { size: "m", children: description })
47498
+ ] }),
47499
+ children || fields?.map((field) => /* @__PURE__ */ jsx178(EuiFlexItem21, { children: /* @__PURE__ */ jsx178(
47500
+ AutoField3,
47501
+ {
47502
+ name: field,
47503
+ ...itemProps,
47504
+ label: itemIndex === 0 ? void 0 : false
47505
+ }
47506
+ ) }, field))
47507
+ ]
47508
+ }
47509
+ );
47510
+ } else {
47511
+ return /* @__PURE__ */ jsx178(
47512
+ EuiDescribedFormGroup,
47513
+ {
47514
+ ...filterDOMProps25(props),
47515
+ title: /* @__PURE__ */ jsx178("span", { children: label }),
47516
+ description,
47517
+ className: `${className} nest-field`,
47518
+ children: children || fields?.map((field) => /* @__PURE__ */ jsx178(
47519
+ AutoField3,
47520
+ {
47521
+ name: field,
47522
+ ...itemProps,
47523
+ label: itemIndex === 0 ? void 0 : false
47524
+ },
47525
+ field
47526
+ ))
47527
+ }
47528
+ );
47529
+ }
47530
+ }
47531
+ var NestField = connectField25(Nest);
47532
+
47533
+ // src/components/WfoForms/formFields/OptGroupField.tsx
47534
+ import { useTranslations as useTranslations48 } from "next-intl";
47535
+ import { connectField as connectField26, filterDOMProps as filterDOMProps26, useField as useField8 } from "uniforms";
47536
+ import { AutoField as AutoField4 } from "uniforms-unstyled";
47537
+ import { EuiDescribedFormGroup as EuiDescribedFormGroup2, EuiFlexItem as EuiFlexItem22, EuiFormRow as EuiFormRow19 } from "@elastic/eui";
47538
+ import { Fragment as Fragment37, jsx as jsx179, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
47539
+ filterDOMProps26.register("properties");
47540
+ function OptGroup({
47541
+ fields,
47542
+ itemProps,
47543
+ name,
47544
+ readOnly,
47545
+ className = "",
47546
+ ...props
47547
+ }) {
47548
+ const t = useTranslations48("pydanticForms.backendTranslations");
47549
+ const enabled = useField8("enabled", {})[0].value;
47550
+ return /* @__PURE__ */ jsx179(
47551
+ EuiDescribedFormGroup2,
47552
+ {
47553
+ ...filterDOMProps26(props),
47554
+ title: /* @__PURE__ */ jsx179("span", { children: t(`${name}.title`) }),
47555
+ description: t(`${name}.description`),
47556
+ className: `${className} optgroup-field`,
47557
+ children: /* @__PURE__ */ jsxs97(Fragment37, { children: [
47558
+ /* @__PURE__ */ jsx179(EuiFlexItem22, { children: /* @__PURE__ */ jsx179(
47559
+ EuiFormRow19,
47560
+ {
47561
+ error: false,
47562
+ isInvalid: false,
47563
+ id: name,
47564
+ children: /* @__PURE__ */ jsx179(BoolField, { name: "enabled", readOnly })
47565
+ }
47566
+ ) }),
47567
+ enabled && fields?.filter((field) => field !== "enabled").map((field) => /* @__PURE__ */ jsx179(EuiFlexItem22, { children: /* @__PURE__ */ jsx179(AutoField4, { name: field, ...itemProps }) }, field))
47568
+ ] })
47569
+ }
47570
+ );
47571
+ }
47572
+ var OptGroupField = connectField26(OptGroup);
47573
+
47639
47574
  // src/components/WfoForms/formFields/SummaryField.tsx
47640
47575
  import { connectField as connectField27, filterDOMProps as filterDOMProps27 } from "uniforms";
47641
47576
  import { EuiFlexItem as EuiFlexItem23, EuiFormRow as EuiFormRow20, EuiText as EuiText33 } from "@elastic/eui";
@@ -50354,41 +50289,66 @@ var Footer = () => {
50354
50289
  ] });
50355
50290
  };
50356
50291
 
50292
+ // src/components/WfoPydanticForm/Header.tsx
50293
+ import { usePydanticFormContext as usePydanticFormContext2 } from "pydantic-forms";
50294
+ import { css as css35 } from "@emotion/react";
50295
+ import { jsx as jsx203 } from "@emotion/react/jsx-runtime";
50296
+ var headerStyling = css35`
50297
+ padding: 20px 0;
50298
+ font-size: larger;
50299
+ font-weight: bold;
50300
+ margin-bottom: 15px;
50301
+ `;
50302
+ var Header = () => {
50303
+ const { pydanticFormSchema } = usePydanticFormContext2();
50304
+ return /* @__PURE__ */ jsx203("h3", { css: headerStyling, children: pydanticFormSchema?.title });
50305
+ };
50306
+
50357
50307
  // src/components/WfoPydanticForm/Row.tsx
50358
50308
  import { EuiFormRow as EuiFormRow21, EuiText as EuiText35 } from "@elastic/eui";
50359
- import { jsx as jsx203 } from "@emotion/react/jsx-runtime";
50309
+ import { Fragment as Fragment49, jsx as jsx204, jsxs as jsxs109 } from "@emotion/react/jsx-runtime";
50360
50310
  var Row = ({
50361
50311
  title,
50362
50312
  description,
50363
50313
  error,
50364
50314
  isInvalid,
50315
+ required,
50365
50316
  children
50366
50317
  }) => {
50367
- const { formRowStyle } = useWithOrchestratorTheme(getCommonFormFieldStyles);
50368
- return /* @__PURE__ */ jsx203(
50318
+ const { formRowStyle, errorStyle } = useWithOrchestratorTheme(
50319
+ getCommonFormFieldStyles
50320
+ );
50321
+ const Label3 = () => {
50322
+ return title ? /* @__PURE__ */ jsxs109("div", { css: error && errorStyle, children: [
50323
+ title,
50324
+ " ",
50325
+ required && "*"
50326
+ ] }) : void 0;
50327
+ };
50328
+ return /* @__PURE__ */ jsx204(
50369
50329
  EuiFormRow21,
50370
50330
  {
50371
50331
  css: formRowStyle,
50372
- label: title,
50373
- labelAppend: /* @__PURE__ */ jsx203(EuiText35, { size: "m", children: description }),
50332
+ label: /* @__PURE__ */ jsx204(Label3, {}),
50333
+ labelAppend: /* @__PURE__ */ jsx204(EuiText35, { size: "m", children: description }),
50374
50334
  error,
50375
50335
  isInvalid,
50376
50336
  fullWidth: true,
50377
- children: /* @__PURE__ */ jsx203("div", { children })
50337
+ children: /* @__PURE__ */ jsx204(Fragment49, { children })
50378
50338
  }
50379
50339
  );
50380
50340
  };
50381
50341
 
50382
50342
  // src/components/WfoPydanticForm/fields/TextArea.tsx
50383
50343
  import { EuiTextArea as EuiTextArea2 } from "@elastic/eui";
50384
- import { jsx as jsx204 } from "@emotion/react/jsx-runtime";
50344
+ import { jsx as jsx205 } from "@emotion/react/jsx-runtime";
50385
50345
  var TextArea = ({
50386
50346
  pydanticFormField,
50387
50347
  onChange,
50388
50348
  value,
50389
50349
  disabled
50390
50350
  }) => {
50391
- return /* @__PURE__ */ jsx204(
50351
+ return /* @__PURE__ */ jsx205(
50392
50352
  EuiTextArea2,
50393
50353
  {
50394
50354
  disabled,
@@ -50403,7 +50363,7 @@ var TextArea = ({
50403
50363
 
50404
50364
  // src/components/WfoPydanticForm/fields/Text.tsx
50405
50365
  import { EuiFieldText as EuiFieldText4 } from "@elastic/eui";
50406
- import { jsx as jsx205 } from "@emotion/react/jsx-runtime";
50366
+ import { jsx as jsx206 } from "@emotion/react/jsx-runtime";
50407
50367
  var Text2 = ({
50408
50368
  onChange,
50409
50369
  value,
@@ -50412,7 +50372,7 @@ var Text2 = ({
50412
50372
  const { formFieldBaseStyle } = useWithOrchestratorTheme(
50413
50373
  getFormFieldsBaseStyle
50414
50374
  );
50415
- return /* @__PURE__ */ jsx205(
50375
+ return /* @__PURE__ */ jsx206(
50416
50376
  EuiFieldText4,
50417
50377
  {
50418
50378
  css: formFieldBaseStyle,
@@ -50425,10 +50385,10 @@ var Text2 = ({
50425
50385
  };
50426
50386
 
50427
50387
  // src/components/WfoPydanticForm/fields/Label.tsx
50428
- import { jsx as jsx206 } from "@emotion/react/jsx-runtime";
50388
+ import { jsx as jsx207 } from "@emotion/react/jsx-runtime";
50429
50389
  var Label2 = ({ pydanticFormField }) => {
50430
50390
  const { theme } = useOrchestratorTheme();
50431
- return /* @__PURE__ */ jsx206("div", { children: /* @__PURE__ */ jsx206(
50391
+ return /* @__PURE__ */ jsx207("div", { children: /* @__PURE__ */ jsx207(
50432
50392
  "label",
50433
50393
  {
50434
50394
  css: {
@@ -50443,10 +50403,10 @@ var Label2 = ({ pydanticFormField }) => {
50443
50403
 
50444
50404
  // src/components/WfoPydanticForm/fields/Divider.tsx
50445
50405
  import { EuiHorizontalRule as EuiHorizontalRule7 } from "@elastic/eui";
50446
- import { jsx as jsx207 } from "@emotion/react/jsx-runtime";
50406
+ import { jsx as jsx208 } from "@emotion/react/jsx-runtime";
50447
50407
  var Divider2 = ({ pydanticFormField }) => {
50448
50408
  const { theme } = useOrchestratorTheme();
50449
- return /* @__PURE__ */ jsx207(
50409
+ return /* @__PURE__ */ jsx208(
50450
50410
  EuiHorizontalRule7,
50451
50411
  {
50452
50412
  style: { marginTop: theme.base },
@@ -50457,20 +50417,20 @@ var Divider2 = ({ pydanticFormField }) => {
50457
50417
 
50458
50418
  // src/components/WfoPydanticForm/fields/Checkbox.tsx
50459
50419
  import { EuiCheckbox as EuiCheckbox3 } from "@elastic/eui";
50460
- import { jsx as jsx208 } from "@emotion/react/jsx-runtime";
50420
+ import { jsx as jsx209 } from "@emotion/react/jsx-runtime";
50461
50421
  var Checkbox = ({
50462
50422
  pydanticFormField,
50463
50423
  onChange,
50464
50424
  value,
50465
50425
  disabled
50466
50426
  }) => {
50467
- return /* @__PURE__ */ jsx208(
50427
+ return /* @__PURE__ */ jsx209(
50468
50428
  EuiCheckbox3,
50469
50429
  {
50470
50430
  checked: value || false,
50471
50431
  disabled,
50472
50432
  id: pydanticFormField.id,
50473
- label: pydanticFormField.title || /* @__PURE__ */ jsx208("div", { children: "\xA0" }),
50433
+ label: pydanticFormField.title || /* @__PURE__ */ jsx209("div", { children: "\xA0" }),
50474
50434
  onChange: () => !disabled && onChange(!value)
50475
50435
  }
50476
50436
  );
@@ -50479,11 +50439,11 @@ var Checkbox = ({
50479
50439
  // src/components/WfoPydanticForm/fields/Summary.tsx
50480
50440
  import { EuiFlexItem as EuiFlexItem24, EuiFormRow as EuiFormRow22, EuiText as EuiText36 } from "@elastic/eui";
50481
50441
  import { tint as tint4 } from "@elastic/eui";
50482
- import { css as css35 } from "@emotion/react";
50483
- import { jsx as jsx209, jsxs as jsxs109 } from "@emotion/react/jsx-runtime";
50442
+ import { css as css36 } from "@emotion/react";
50443
+ import { jsx as jsx210, jsxs as jsxs110 } from "@emotion/react/jsx-runtime";
50484
50444
  var getStyles13 = ({ theme }) => {
50485
50445
  const toShadeColor = (color) => tint4(color, 0.9);
50486
- const summaryFieldStyle = css35({
50446
+ const summaryFieldStyle = css36({
50487
50447
  "div.emailMessage": {
50488
50448
  td: {
50489
50449
  color: theme.colors.text
@@ -50532,38 +50492,38 @@ var Summary2 = ({ pydanticFormField }) => {
50532
50492
  const labels = summaryData?.labels;
50533
50493
  const columns = summaryData?.columns || [];
50534
50494
  const extraColumnsData = columns.filter((_2, index) => index !== 0);
50535
- const rows = columns[0].map((row, index) => /* @__PURE__ */ jsxs109("tr", { children: [
50536
- labels && /* @__PURE__ */ jsx209("td", { className: `label`, children: labels[index] }),
50537
- /* @__PURE__ */ jsx209("td", { className: `value`, children: typeof row === "string" && row.includes("<!doctype html>") ? /* @__PURE__ */ jsx209(
50495
+ const rows = columns[0].map((row, index) => /* @__PURE__ */ jsxs110("tr", { children: [
50496
+ labels && /* @__PURE__ */ jsx210("td", { className: `label`, children: labels[index] }),
50497
+ /* @__PURE__ */ jsx210("td", { className: `value`, children: typeof row === "string" && row.includes("<!doctype html>") ? /* @__PURE__ */ jsx210(
50538
50498
  "div",
50539
50499
  {
50540
50500
  className: "emailMessage",
50541
50501
  dangerouslySetInnerHTML: { __html: row }
50542
50502
  }
50543
50503
  ) : row }),
50544
- extraColumnsData && extraColumnsData.map((_2, idx) => /* @__PURE__ */ jsx209("td", { className: `value`, children: extraColumnsData[idx][index] }, idx))
50504
+ extraColumnsData && extraColumnsData.map((_2, idx) => /* @__PURE__ */ jsx210("td", { className: `value`, children: extraColumnsData[idx][index] }, idx))
50545
50505
  ] }, index));
50546
- const tableHeader = !headers || headers.length === 0 ? null : /* @__PURE__ */ jsxs109("tr", { children: [
50547
- labels && /* @__PURE__ */ jsx209("th", {}),
50548
- headers.map((header, idx) => /* @__PURE__ */ jsx209("th", { children: header }, idx))
50506
+ const tableHeader = !headers || headers.length === 0 ? null : /* @__PURE__ */ jsxs110("tr", { children: [
50507
+ labels && /* @__PURE__ */ jsx210("th", {}),
50508
+ headers.map((header, idx) => /* @__PURE__ */ jsx210("th", { children: header }, idx))
50549
50509
  ] });
50550
- return /* @__PURE__ */ jsx209(EuiFlexItem24, { css: [summaryFieldStyle, formRowStyle], children: /* @__PURE__ */ jsx209("section", { children: /* @__PURE__ */ jsx209(
50510
+ return /* @__PURE__ */ jsx210(EuiFlexItem24, { css: [summaryFieldStyle, formRowStyle], children: /* @__PURE__ */ jsx210("section", { children: /* @__PURE__ */ jsx210(
50551
50511
  EuiFormRow22,
50552
50512
  {
50553
50513
  label: description,
50554
- labelAppend: /* @__PURE__ */ jsx209(EuiText36, { size: "m", children: title }),
50514
+ labelAppend: /* @__PURE__ */ jsx210(EuiText36, { size: "m", children: title }),
50555
50515
  id,
50556
50516
  fullWidth: true,
50557
- children: /* @__PURE__ */ jsx209("section", { className: "table-summary", children: /* @__PURE__ */ jsxs109("table", { id: `${id}-table`, children: [
50558
- /* @__PURE__ */ jsx209("thead", { children: tableHeader }),
50559
- /* @__PURE__ */ jsx209("tbody", { children: rows })
50517
+ children: /* @__PURE__ */ jsx210("section", { className: "table-summary", children: /* @__PURE__ */ jsxs110("table", { id: `${id}-table`, children: [
50518
+ /* @__PURE__ */ jsx210("thead", { children: tableHeader }),
50519
+ /* @__PURE__ */ jsx210("tbody", { children: rows })
50560
50520
  ] }) })
50561
50521
  }
50562
50522
  ) }) });
50563
50523
  };
50564
50524
 
50565
50525
  // src/components/WfoPydanticForm/WfoPydanticForm.tsx
50566
- import { jsx as jsx210 } from "@emotion/react/jsx-runtime";
50526
+ import { jsx as jsx211 } from "@emotion/react/jsx-runtime";
50567
50527
  var WfoPydanticForm = ({
50568
50528
  processName,
50569
50529
  startProcessPayload,
@@ -50713,18 +50673,18 @@ var WfoPydanticForm = ({
50713
50673
  const pfBasePath = isTask ? PATH_TASKS : PATH_WORKFLOWS;
50714
50674
  router.replace(pfBasePath);
50715
50675
  };
50716
- return /* @__PURE__ */ jsx210(
50676
+ return /* @__PURE__ */ jsx211(
50717
50677
  PydanticForm2,
50718
50678
  {
50719
- title: "",
50720
50679
  id: processName,
50721
50680
  onSuccess,
50722
50681
  onCancel: handleCancel,
50723
- loadingComponent: /* @__PURE__ */ jsx210(WfoLoading, {}),
50682
+ loadingComponent: /* @__PURE__ */ jsx211(WfoLoading, {}),
50724
50683
  config: {
50725
50684
  apiProvider: getPydanticFormProvider(),
50726
50685
  allowUntouchedSubmit: true,
50727
50686
  footerRenderer: Footer,
50687
+ headerRenderer: Header,
50728
50688
  skipSuccessNotice: true,
50729
50689
  componentMatcher: wfoComponentMatcher,
50730
50690
  labelProvider: pydanticLabelProvider,
@@ -50757,36 +50717,36 @@ import {
50757
50717
  import { EuiFlexItem as EuiFlexItem25 } from "@elastic/eui";
50758
50718
 
50759
50719
  // src/components/WfoWorkflowSteps/styles.ts
50760
- import { css as css36 } from "@emotion/react";
50720
+ import { css as css37 } from "@emotion/react";
50761
50721
  var getWorkflowStepsStyles = ({
50762
50722
  theme,
50763
50723
  toSecondaryColor
50764
50724
  }) => {
50765
50725
  const SPACE_BETWEEN_STEPS = theme.base * 1.5;
50766
- const stepSpacerStyle = css36({
50726
+ const stepSpacerStyle = css37({
50767
50727
  borderLeft: `1px solid ${theme.colors.darkShade}`,
50768
50728
  height: `${SPACE_BETWEEN_STEPS}px`,
50769
50729
  marginLeft: "36px"
50770
50730
  });
50771
- const stepRowStyle = css36({
50731
+ const stepRowStyle = css37({
50772
50732
  flexGrow: 1,
50773
50733
  alignItems: "center",
50774
50734
  justifyContent: "flex-end"
50775
50735
  });
50776
- const stepListHeaderStyle = css36({
50736
+ const stepListHeaderStyle = css37({
50777
50737
  marginBottom: "24px",
50778
50738
  marginTop: "60px",
50779
50739
  alignItems: "flex-end"
50780
50740
  });
50781
- const stepListContentStyle = css36({
50741
+ const stepListContentStyle = css37({
50782
50742
  flexDirection: "row",
50783
50743
  alignItems: "center"
50784
50744
  });
50785
- const stepListContentBoldTextStyle = css36({
50745
+ const stepListContentBoldTextStyle = css37({
50786
50746
  fontSize: theme.size.base,
50787
50747
  fontWeight: theme.font.weight.bold
50788
50748
  });
50789
- const stepListContentAnchorStyle = css36({
50749
+ const stepListContentAnchorStyle = css37({
50790
50750
  marginTop: 2,
50791
50751
  marginLeft: 0,
50792
50752
  fontSize: theme.size.m,
@@ -50794,7 +50754,7 @@ var getWorkflowStepsStyles = ({
50794
50754
  color: theme.colors.link,
50795
50755
  cursor: "pointer"
50796
50756
  });
50797
- const stepListOptionsContainerStyle = css36({
50757
+ const stepListOptionsContainerStyle = css37({
50798
50758
  flexGrow: 0
50799
50759
  });
50800
50760
  const stepStateIcon = {
@@ -50810,36 +50770,36 @@ var getWorkflowStepsStyles = ({
50810
50770
  color: theme.colors.disabled,
50811
50771
  fontWeight: theme.font.weight.semiBold
50812
50772
  };
50813
- const stepStateSuccessIconStyle = css36({
50773
+ const stepStateSuccessIconStyle = css37({
50814
50774
  ...stepStateIcon,
50815
50775
  backgroundColor: toSecondaryColor(theme.colors.primary)
50816
50776
  });
50817
- const stepStateSuspendIconStyle = css36({
50777
+ const stepStateSuspendIconStyle = css37({
50818
50778
  ...stepStateIcon,
50819
50779
  backgroundColor: toSecondaryColor(theme.colors.warning)
50820
50780
  });
50821
- const stepStatePendingIconStyle = css36({
50781
+ const stepStatePendingIconStyle = css37({
50822
50782
  ...stepStateIcon,
50823
50783
  backgroundColor: toSecondaryColor(theme.colors.darkShade)
50824
50784
  });
50825
- const stepStateFailedIconStyle = css36({
50785
+ const stepStateFailedIconStyle = css37({
50826
50786
  ...stepStateIcon,
50827
50787
  backgroundColor: toSecondaryColor(theme.colors.danger)
50828
50788
  });
50829
- const stepHeaderRightStyle = css36({
50789
+ const stepHeaderRightStyle = css37({
50830
50790
  alignItems: "center"
50831
50791
  });
50832
- const stepEmailContainerStyle = css36({
50792
+ const stepEmailContainerStyle = css37({
50833
50793
  paddingLeft: 24,
50834
50794
  width: 600,
50835
50795
  marginTop: 0
50836
50796
  });
50837
- const getStepHeaderStyle = (isClickable) => css36({
50797
+ const getStepHeaderStyle = (isClickable) => css37({
50838
50798
  gap: 0,
50839
50799
  alignItems: "center",
50840
50800
  cursor: isClickable ? "pointer" : "default"
50841
50801
  });
50842
- const getStepToggleExpandStyle = (isVisible) => css36({
50802
+ const getStepToggleExpandStyle = (isVisible) => css37({
50843
50803
  marginRight: theme.base / 2,
50844
50804
  visibility: isVisible ? "visible" : "hidden"
50845
50805
  });
@@ -50865,26 +50825,26 @@ var getWorkflowStepsStyles = ({
50865
50825
  };
50866
50826
 
50867
50827
  // src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
50868
- import { jsx as jsx211, jsxs as jsxs110 } from "@emotion/react/jsx-runtime";
50828
+ import { jsx as jsx212, jsxs as jsxs111 } from "@emotion/react/jsx-runtime";
50869
50829
  var SubIcon = ({ stepStatus, color = "" }) => {
50870
50830
  switch (stepStatus) {
50871
50831
  case "suspend" /* SUSPEND */:
50872
- return /* @__PURE__ */ jsx211(WfoMinusCircleFill, { color });
50832
+ return /* @__PURE__ */ jsx212(WfoMinusCircleFill, { color });
50873
50833
  case "failed" /* FAILED */:
50874
- return /* @__PURE__ */ jsx211(WfoXCircleFill, { color });
50834
+ return /* @__PURE__ */ jsx212(WfoXCircleFill, { color });
50875
50835
  default:
50876
- return /* @__PURE__ */ jsx211(WfoCheckmarkCircleFill, { color });
50836
+ return /* @__PURE__ */ jsx212(WfoCheckmarkCircleFill, { color });
50877
50837
  }
50878
50838
  };
50879
50839
  var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
50880
50840
  if (isStartStep) {
50881
- return /* @__PURE__ */ jsx211(WfoPlayFill, { color });
50841
+ return /* @__PURE__ */ jsx212(WfoPlayFill, { color });
50882
50842
  }
50883
50843
  switch (stepStatus) {
50884
50844
  case "form" /* FORM */:
50885
- return /* @__PURE__ */ jsx211(WfoPencilAlt, { color });
50845
+ return /* @__PURE__ */ jsx212(WfoPencilAlt, { color });
50886
50846
  default:
50887
- return /* @__PURE__ */ jsx211(WfoCogFill, { color, width: 16, height: 16 });
50847
+ return /* @__PURE__ */ jsx212(WfoCogFill, { color, width: 16, height: 16 });
50888
50848
  }
50889
50849
  };
50890
50850
  var WfoStepStatusIcon = ({
@@ -50939,8 +50899,8 @@ var WfoStepStatusIcon = ({
50939
50899
  ];
50940
50900
  }
50941
50901
  })();
50942
- return /* @__PURE__ */ jsxs110(EuiFlexItem25, { css: { flexDirection: "row" }, grow: 0, children: [
50943
- /* @__PURE__ */ jsx211("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx211(
50902
+ return /* @__PURE__ */ jsxs111(EuiFlexItem25, { css: { flexDirection: "row" }, grow: 0, children: [
50903
+ /* @__PURE__ */ jsx212("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx212(
50944
50904
  MainIcon,
50945
50905
  {
50946
50906
  color: mainIconColor,
@@ -50948,7 +50908,7 @@ var WfoStepStatusIcon = ({
50948
50908
  isStartStep
50949
50909
  }
50950
50910
  ) }),
50951
- /* @__PURE__ */ jsx211(
50911
+ /* @__PURE__ */ jsx212(
50952
50912
  "div",
50953
50913
  {
50954
50914
  css: {
@@ -50956,7 +50916,7 @@ var WfoStepStatusIcon = ({
50956
50916
  width: `${theme.base}`,
50957
50917
  visibility: hasSubIcon ? "visible" : "hidden"
50958
50918
  },
50959
- children: /* @__PURE__ */ jsx211(SubIcon, { color: subIconColor, stepStatus })
50919
+ children: /* @__PURE__ */ jsx212(SubIcon, { color: subIconColor, stepStatus })
50960
50920
  }
50961
50921
  )
50962
50922
  ] });
@@ -50987,7 +50947,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
50987
50947
  // src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
50988
50948
  import { useState as useState44 } from "react";
50989
50949
  import { EuiFlexItem as EuiFlexItem26 } from "@elastic/eui";
50990
- import { jsx as jsx212 } from "@emotion/react/jsx-runtime";
50950
+ import { jsx as jsx213 } from "@emotion/react/jsx-runtime";
50991
50951
  var WfoStepForm = ({
50992
50952
  userInputForm,
50993
50953
  isTask,
@@ -51015,7 +50975,7 @@ var WfoStepForm = ({
51015
50975
  }
51016
50976
  });
51017
50977
  };
51018
- return /* @__PURE__ */ jsx212(EuiFlexItem26, { css: { margin: theme.size.m }, children: hasError && /* @__PURE__ */ jsx212(WfoError, {}) || isProcessing && /* @__PURE__ */ jsx212(WfoLoading, {}) || /* @__PURE__ */ jsx212(
50978
+ return /* @__PURE__ */ jsx213(EuiFlexItem26, { css: { margin: theme.size.m }, children: hasError && /* @__PURE__ */ jsx213(WfoError, {}) || isProcessing && /* @__PURE__ */ jsx213(WfoLoading, {}) || /* @__PURE__ */ jsx213(
51019
50979
  UserInputFormWizard,
51020
50980
  {
51021
50981
  stepUserInput: userInputForm,
@@ -51028,7 +50988,7 @@ var WfoStepForm = ({
51028
50988
  };
51029
50989
 
51030
50990
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
51031
- import { Fragment as Fragment49, jsx as jsx213, jsxs as jsxs111 } from "@emotion/react/jsx-runtime";
50991
+ import { Fragment as Fragment50, jsx as jsx214, jsxs as jsxs112 } from "@emotion/react/jsx-runtime";
51032
50992
  var WfoStep = React67.forwardRef(
51033
50993
  ({
51034
50994
  stepListItem,
@@ -51062,29 +51022,29 @@ var WfoStep = React67.forwardRef(
51062
51022
  if (!value) {
51063
51023
  return "";
51064
51024
  }
51065
- return /* @__PURE__ */ jsxs111(EuiText37, { size: "s", children: [
51066
- /* @__PURE__ */ jsx213("h4", { children: "To" }),
51067
- /* @__PURE__ */ jsx213("p", { children: value.to.map(
51068
- (v, i) => /* @__PURE__ */ jsxs111("div", { children: [
51025
+ return /* @__PURE__ */ jsxs112(EuiText37, { size: "s", children: [
51026
+ /* @__PURE__ */ jsx214("h4", { children: "To" }),
51027
+ /* @__PURE__ */ jsx214("p", { children: value.to.map(
51028
+ (v, i) => /* @__PURE__ */ jsxs112("div", { children: [
51069
51029
  v.name,
51070
51030
  " <",
51071
- /* @__PURE__ */ jsx213("a", { href: `mailto: ${v.email}`, children: v.email }),
51031
+ /* @__PURE__ */ jsx214("a", { href: `mailto: ${v.email}`, children: v.email }),
51072
51032
  ">"
51073
51033
  ] }, `to-${i}`)
51074
51034
  ) }),
51075
- /* @__PURE__ */ jsx213("h4", { children: "CC" }),
51076
- /* @__PURE__ */ jsx213("p", { children: value.cc.map(
51077
- (v, i) => /* @__PURE__ */ jsxs111("div", { children: [
51035
+ /* @__PURE__ */ jsx214("h4", { children: "CC" }),
51036
+ /* @__PURE__ */ jsx214("p", { children: value.cc.map(
51037
+ (v, i) => /* @__PURE__ */ jsxs112("div", { children: [
51078
51038
  v.name,
51079
51039
  " <",
51080
- /* @__PURE__ */ jsx213("a", { href: `mailto: ${v.email}`, children: v.email }),
51040
+ /* @__PURE__ */ jsx214("a", { href: `mailto: ${v.email}`, children: v.email }),
51081
51041
  ">"
51082
51042
  ] }, `cc-${i}`)
51083
51043
  ) }),
51084
- /* @__PURE__ */ jsx213("h4", { children: "Subject" }),
51085
- /* @__PURE__ */ jsx213("p", { children: value.subject }),
51086
- /* @__PURE__ */ jsx213("h4", { children: "Message" }),
51087
- /* @__PURE__ */ jsx213(
51044
+ /* @__PURE__ */ jsx214("h4", { children: "Subject" }),
51045
+ /* @__PURE__ */ jsx214("p", { children: value.subject }),
51046
+ /* @__PURE__ */ jsx214("h4", { children: "Message" }),
51047
+ /* @__PURE__ */ jsx214(
51088
51048
  "div",
51089
51049
  {
51090
51050
  className: "emailMessage",
@@ -51093,30 +51053,30 @@ var WfoStep = React67.forwardRef(
51093
51053
  )
51094
51054
  ] });
51095
51055
  };
51096
- return /* @__PURE__ */ jsx213("div", { ref, children: /* @__PURE__ */ jsxs111(EuiPanel4, { children: [
51097
- /* @__PURE__ */ jsxs111(
51056
+ return /* @__PURE__ */ jsx214("div", { ref, children: /* @__PURE__ */ jsxs112(EuiPanel4, { children: [
51057
+ /* @__PURE__ */ jsxs112(
51098
51058
  EuiFlexGroup21,
51099
51059
  {
51100
51060
  css: getStepHeaderStyle(hasStepContent),
51101
51061
  onClick: () => hasStepContent && onToggleStepDetail(),
51102
51062
  children: [
51103
- /* @__PURE__ */ jsx213(
51063
+ /* @__PURE__ */ jsx214(
51104
51064
  WfoStepStatusIcon,
51105
51065
  {
51106
51066
  stepStatus: step.status,
51107
51067
  isStartStep
51108
51068
  }
51109
51069
  ),
51110
- /* @__PURE__ */ jsxs111(EuiFlexItem27, { grow: 0, children: [
51111
- /* @__PURE__ */ jsx213(EuiText37, { css: stepListContentBoldTextStyle, children: step.name }),
51112
- /* @__PURE__ */ jsxs111(EuiText37, { children: [
51070
+ /* @__PURE__ */ jsxs112(EuiFlexItem27, { grow: 0, children: [
51071
+ /* @__PURE__ */ jsx214(EuiText37, { css: stepListContentBoldTextStyle, children: step.name }),
51072
+ /* @__PURE__ */ jsxs112(EuiText37, { children: [
51113
51073
  step.status,
51114
51074
  " ",
51115
51075
  step.executed && `- ${formatDate(step.executed)}`
51116
51076
  ] })
51117
51077
  ] }),
51118
- /* @__PURE__ */ jsx213(EuiFlexGroup21, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs111(Fragment49, { children: [
51119
- isExpanded && /* @__PURE__ */ jsx213(
51078
+ /* @__PURE__ */ jsx214(EuiFlexGroup21, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs112(Fragment50, { children: [
51079
+ isExpanded && /* @__PURE__ */ jsx214(
51120
51080
  EuiButton12,
51121
51081
  {
51122
51082
  onClick: (event) => {
@@ -51129,33 +51089,33 @@ var WfoStep = React67.forwardRef(
51129
51089
  )
51130
51090
  }
51131
51091
  ),
51132
- /* @__PURE__ */ jsxs111(
51092
+ /* @__PURE__ */ jsxs112(
51133
51093
  EuiFlexItem27,
51134
51094
  {
51135
51095
  grow: 0,
51136
51096
  css: stepHeaderRightStyle,
51137
51097
  children: [
51138
- /* @__PURE__ */ jsx213(EuiText37, { css: stepDurationStyle, children: t("duration") }),
51139
- /* @__PURE__ */ jsx213(EuiText37, { size: "m", children: calculateTimeDifference(
51098
+ /* @__PURE__ */ jsx214(EuiText37, { css: stepDurationStyle, children: t("duration") }),
51099
+ /* @__PURE__ */ jsx214(EuiText37, { size: "m", children: calculateTimeDifference(
51140
51100
  startedAt,
51141
51101
  step.executed
51142
51102
  ) })
51143
51103
  ]
51144
51104
  }
51145
51105
  ),
51146
- /* @__PURE__ */ jsx213(
51106
+ /* @__PURE__ */ jsx214(
51147
51107
  EuiFlexItem27,
51148
51108
  {
51149
51109
  grow: 0,
51150
51110
  css: getStepToggleExpandStyle(
51151
51111
  hasStepContent
51152
51112
  ),
51153
- children: isExpanded && /* @__PURE__ */ jsx213(
51113
+ children: isExpanded && /* @__PURE__ */ jsx214(
51154
51114
  WfoChevronUp,
51155
51115
  {
51156
51116
  color: theme.colors.text
51157
51117
  }
51158
- ) || /* @__PURE__ */ jsx213(
51118
+ ) || /* @__PURE__ */ jsx214(
51159
51119
  WfoChevronDown,
51160
51120
  {
51161
51121
  color: theme.colors.text
@@ -51167,11 +51127,11 @@ var WfoStep = React67.forwardRef(
51167
51127
  ]
51168
51128
  }
51169
51129
  ),
51170
- hasStepContent && !hasHtmlMail && isExpanded && (tableView ? /* @__PURE__ */ jsx213(WfoTableCodeBlock, { stepState: stepContent }) : /* @__PURE__ */ jsx213(WfoJsonCodeBlock, { data: stepContent })),
51171
- isExpanded && hasHtmlMail && /* @__PURE__ */ jsx213("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
51130
+ hasStepContent && !hasHtmlMail && isExpanded && (tableView ? /* @__PURE__ */ jsx214(WfoTableCodeBlock, { stepState: stepContent }) : /* @__PURE__ */ jsx214(WfoJsonCodeBlock, { data: stepContent })),
51131
+ isExpanded && hasHtmlMail && /* @__PURE__ */ jsx214("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
51172
51132
  step.stateDelta.confirmation_mail
51173
51133
  ) }),
51174
- step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx213(
51134
+ step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx214(
51175
51135
  WfoStepForm,
51176
51136
  {
51177
51137
  userInputForm,
@@ -51186,7 +51146,7 @@ WfoStep.displayName = "WfoStep";
51186
51146
 
51187
51147
  // src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
51188
51148
  import React68, { useImperativeHandle as useImperativeHandle2, useRef as useRef12 } from "react";
51189
- import { Fragment as Fragment50, jsx as jsx214, jsxs as jsxs112 } from "@emotion/react/jsx-runtime";
51149
+ import { Fragment as Fragment51, jsx as jsx215, jsxs as jsxs113 } from "@emotion/react/jsx-runtime";
51190
51150
  var WfoStepList = React68.forwardRef(
51191
51151
  ({
51192
51152
  stepListItems,
@@ -51243,10 +51203,10 @@ var WfoStepList = React68.forwardRef(
51243
51203
  stepReferences.current.delete(stepId);
51244
51204
  }
51245
51205
  };
51246
- return /* @__PURE__ */ jsx214(Fragment50, { children: stepListItems.map((stepListItem, index) => {
51247
- const stepComponent = /* @__PURE__ */ jsxs112("div", { children: [
51248
- index !== 0 && /* @__PURE__ */ jsx214("div", { css: stepSpacerStyle }),
51249
- /* @__PURE__ */ jsx214(
51206
+ return /* @__PURE__ */ jsx215(Fragment51, { children: stepListItems.map((stepListItem, index) => {
51207
+ const stepComponent = /* @__PURE__ */ jsxs113("div", { children: [
51208
+ index !== 0 && /* @__PURE__ */ jsx215("div", { css: stepSpacerStyle }),
51209
+ /* @__PURE__ */ jsx215(
51250
51210
  WfoStep,
51251
51211
  {
51252
51212
  ref: getReferenceCallbackForStepId(
@@ -51293,7 +51253,7 @@ import {
51293
51253
 
51294
51254
  // src/components/WfoDiff/styles.ts
51295
51255
  import { shade as shade2, tint as tint5 } from "@elastic/eui";
51296
- import { css as css37 } from "@emotion/react";
51256
+ import { css as css38 } from "@emotion/react";
51297
51257
  var getWfoDiffStyles = ({
51298
51258
  theme,
51299
51259
  toSecondaryColor,
@@ -51305,7 +51265,7 @@ var getWfoDiffStyles = ({
51305
51265
  const insertCodeColor = isDarkThemeActive ? shade2(insertGutterColor, SHADE_FACTOR) : tint5(insertGutterColor, TINT_FACTOR);
51306
51266
  const deleteColor = toSecondaryColor(theme.colors.danger);
51307
51267
  const deleteSecondaryColor = isDarkThemeActive ? shade2(deleteColor, SHADE_FACTOR) : tint5(deleteColor, TINT_FACTOR);
51308
- const diffStyle = css37({
51268
+ const diffStyle = css38({
51309
51269
  ".diff-code-insert": {
51310
51270
  backgroundColor: insertCodeColor
51311
51271
  },
@@ -51328,7 +51288,7 @@ var getWfoDiffStyles = ({
51328
51288
  };
51329
51289
 
51330
51290
  // src/components/WfoDiff/WfoDiff.tsx
51331
- import { jsx as jsx215, jsxs as jsxs113 } from "@emotion/react/jsx-runtime";
51291
+ import { jsx as jsx216, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
51332
51292
  var EMPTY_HUNKS = [];
51333
51293
  var SMALL_CONTEXT = 3;
51334
51294
  var FULL_CONTEXT = 1e6;
@@ -51366,10 +51326,10 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
51366
51326
  useEffect29(() => {
51367
51327
  updateDiffText();
51368
51328
  }, [updateDiffText, showFull]);
51369
- return /* @__PURE__ */ jsxs113("div", { children: [
51370
- /* @__PURE__ */ jsxs113(EuiFlexGroup22, { gutterSize: "xs", children: [
51371
- /* @__PURE__ */ jsx215(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx215(EuiText38, { children: /* @__PURE__ */ jsx215("h3", { children: t("title") }) }) }),
51372
- /* @__PURE__ */ jsx215(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx215(
51329
+ return /* @__PURE__ */ jsxs114("div", { children: [
51330
+ /* @__PURE__ */ jsxs114(EuiFlexGroup22, { gutterSize: "xs", children: [
51331
+ /* @__PURE__ */ jsx216(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx216(EuiText38, { children: /* @__PURE__ */ jsx216("h3", { children: t("title") }) }) }),
51332
+ /* @__PURE__ */ jsx216(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx216(
51373
51333
  EuiButtonIcon11,
51374
51334
  {
51375
51335
  size: "s",
@@ -51380,7 +51340,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
51380
51340
  )
51381
51341
  }
51382
51342
  ) }),
51383
- /* @__PURE__ */ jsx215(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx215(
51343
+ /* @__PURE__ */ jsx216(EuiFlexItem28, { grow: false, children: /* @__PURE__ */ jsx216(
51384
51344
  EuiButtonIcon11,
51385
51345
  {
51386
51346
  size: "s",
@@ -51392,8 +51352,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
51392
51352
  }
51393
51353
  ) })
51394
51354
  ] }),
51395
- /* @__PURE__ */ jsx215(EuiSpacer20, {}),
51396
- /* @__PURE__ */ jsx215(
51355
+ /* @__PURE__ */ jsx216(EuiSpacer20, {}),
51356
+ /* @__PURE__ */ jsx216(
51397
51357
  Diff,
51398
51358
  {
51399
51359
  css: diffStyle,
@@ -51401,7 +51361,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
51401
51361
  diffType: type,
51402
51362
  hunks: hunks || EMPTY_HUNKS,
51403
51363
  tokens,
51404
- children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx215(Hunk, { hunk }, hunk.content))
51364
+ children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx216(Hunk, { hunk }, hunk.content))
51405
51365
  }
51406
51366
  )
51407
51367
  ] });
@@ -51413,9 +51373,9 @@ import { useTranslations as useTranslations64 } from "next-intl";
51413
51373
  import { EuiCodeBlock, EuiText as EuiText39 } from "@elastic/eui";
51414
51374
 
51415
51375
  // src/components/WfoWorkflowSteps/WfoTraceback/styles.ts
51416
- import { css as css38 } from "@emotion/react";
51376
+ import { css as css39 } from "@emotion/react";
51417
51377
  var getStyles14 = ({ theme }) => {
51418
- const codeBlockStyle = css38({
51378
+ const codeBlockStyle = css39({
51419
51379
  marginTop: theme.size.m,
51420
51380
  marginBottom: theme.size.l,
51421
51381
  borderRadius: theme.border.radius.medium
@@ -51426,21 +51386,21 @@ var getStyles14 = ({ theme }) => {
51426
51386
  };
51427
51387
 
51428
51388
  // src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
51429
- import { Fragment as Fragment51, jsx as jsx216, jsxs as jsxs114 } from "@emotion/react/jsx-runtime";
51389
+ import { Fragment as Fragment52, jsx as jsx217, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
51430
51390
  var WfoTraceback = ({ children }) => {
51431
51391
  const { codeBlockStyle } = useWithOrchestratorTheme(getStyles14);
51432
51392
  const t = useTranslations64("processes.steps");
51433
- return /* @__PURE__ */ jsxs114(Fragment51, { children: [
51434
- /* @__PURE__ */ jsx216(EuiText39, { children: /* @__PURE__ */ jsx216("h3", { children: t("traceback") }) }),
51435
- /* @__PURE__ */ jsx216(EuiCodeBlock, { css: codeBlockStyle, children })
51393
+ return /* @__PURE__ */ jsxs115(Fragment52, { children: [
51394
+ /* @__PURE__ */ jsx217(EuiText39, { children: /* @__PURE__ */ jsx217("h3", { children: t("traceback") }) }),
51395
+ /* @__PURE__ */ jsx217(EuiCodeBlock, { css: codeBlockStyle, children })
51436
51396
  ] });
51437
51397
  };
51438
51398
 
51439
51399
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
51440
- import { Fragment as Fragment52, jsx as jsx217, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
51400
+ import { Fragment as Fragment53, jsx as jsx218, jsxs as jsxs116 } from "@emotion/react/jsx-runtime";
51441
51401
  var WfoProcessRawData = ({ processId }) => {
51442
51402
  const { data, isFetching } = useGetRawProcessDetailQuery({ processId });
51443
- return isFetching ? /* @__PURE__ */ jsx217(WfoLoading, {}) : /* @__PURE__ */ jsx217(WfoJsonCodeBlock, { data: data || {} });
51403
+ return isFetching ? /* @__PURE__ */ jsx218(WfoLoading, {}) : /* @__PURE__ */ jsx218(WfoJsonCodeBlock, { data: data || {} });
51444
51404
  };
51445
51405
  var WfoProcessSubscriptionDelta = ({
51446
51406
  processId
@@ -51451,7 +51411,7 @@ var WfoProcessSubscriptionDelta = ({
51451
51411
  const oldSubscriptions = data?.current_state?.__old_subscriptions__ || {};
51452
51412
  const oldSubscription = subscriptionId in oldSubscriptions;
51453
51413
  const oldText = oldSubscription || null;
51454
- return isFetching ? /* @__PURE__ */ jsx217(WfoLoading, {}) : /* @__PURE__ */ jsx217(
51414
+ return isFetching ? /* @__PURE__ */ jsx218(WfoLoading, {}) : /* @__PURE__ */ jsx218(
51455
51415
  WfoDiff_default,
51456
51416
  {
51457
51417
  oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
@@ -51534,8 +51494,8 @@ var WfoWorkflowStepList = React70.forwardRef(
51534
51494
  "aborted" /* ABORTED */,
51535
51495
  "completed" /* COMPLETED */
51536
51496
  ].map((status) => status.toLowerCase()).includes(lastStatus.toLowerCase());
51537
- return /* @__PURE__ */ jsxs115(Fragment52, { children: [
51538
- /* @__PURE__ */ jsx217(
51497
+ return /* @__PURE__ */ jsxs116(Fragment53, { children: [
51498
+ /* @__PURE__ */ jsx218(
51539
51499
  WfoStepListHeader,
51540
51500
  {
51541
51501
  showHiddenKeys,
@@ -51553,10 +51513,10 @@ var WfoWorkflowStepList = React70.forwardRef(
51553
51513
  isRunningWorkflow
51554
51514
  }
51555
51515
  ),
51556
- showTraceback && /* @__PURE__ */ jsx217(WfoTraceback, { children: traceBack }),
51557
- showRaw && /* @__PURE__ */ jsx217(WfoProcessRawData, { processId }),
51558
- showDelta && /* @__PURE__ */ jsx217(WfoProcessSubscriptionDelta, { processId }),
51559
- !showRaw && !showDelta && /* @__PURE__ */ jsx217(
51516
+ showTraceback && /* @__PURE__ */ jsx218(WfoTraceback, { children: traceBack }),
51517
+ showRaw && /* @__PURE__ */ jsx218(WfoProcessRawData, { processId }),
51518
+ showDelta && /* @__PURE__ */ jsx218(WfoProcessSubscriptionDelta, { processId }),
51519
+ !showRaw && !showDelta && /* @__PURE__ */ jsx218(
51560
51520
  WfoStepList,
51561
51521
  {
51562
51522
  ref: reference,
@@ -51591,9 +51551,9 @@ import {
51591
51551
  import { EuiText as EuiText40 } from "@elastic/eui";
51592
51552
 
51593
51553
  // src/components/WfoTextAnchor/styles.ts
51594
- import { css as css39 } from "@emotion/react";
51554
+ import { css as css40 } from "@emotion/react";
51595
51555
  var getStyles15 = ({ theme }) => {
51596
- const textAnchorStyle = css39({
51556
+ const textAnchorStyle = css40({
51597
51557
  marginTop: theme.size.xxs,
51598
51558
  marginLeft: 0,
51599
51559
  fontSize: theme.size.m,
@@ -51607,14 +51567,14 @@ var getStyles15 = ({ theme }) => {
51607
51567
  };
51608
51568
 
51609
51569
  // src/components/WfoTextAnchor/WfoTextAnchor.tsx
51610
- import { jsx as jsx218 } from "@emotion/react/jsx-runtime";
51570
+ import { jsx as jsx219 } from "@emotion/react/jsx-runtime";
51611
51571
  var WfoTextAnchor = ({ text, onClick }) => {
51612
51572
  const { textAnchorStyle } = useWithOrchestratorTheme(getStyles15);
51613
- return /* @__PURE__ */ jsx218(EuiText40, { onClick, css: textAnchorStyle, children: text });
51573
+ return /* @__PURE__ */ jsx219(EuiText40, { onClick, css: textAnchorStyle, children: text });
51614
51574
  };
51615
51575
 
51616
51576
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
51617
- import { jsx as jsx219, jsxs as jsxs116 } from "@emotion/react/jsx-runtime";
51577
+ import { jsx as jsx220, jsxs as jsxs117 } from "@emotion/react/jsx-runtime";
51618
51578
  var WfoStepListHeader = ({
51619
51579
  allDetailToggleText,
51620
51580
  showDelta,
@@ -51641,20 +51601,20 @@ var WfoStepListHeader = ({
51641
51601
  const [isViewOptionOpen, setIsViewOptionOpen] = useState48(false);
51642
51602
  const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
51643
51603
  const closeViewOption = () => setIsViewOptionOpen(false);
51644
- const viewOptionButton = /* @__PURE__ */ jsx219(
51604
+ const viewOptionButton = /* @__PURE__ */ jsx220(
51645
51605
  EuiButton13,
51646
51606
  {
51647
51607
  onClick: onViewOptionClick,
51648
- iconType: () => /* @__PURE__ */ jsx219(WfoEyeFill, { color: theme.colors.link }),
51608
+ iconType: () => /* @__PURE__ */ jsx220(WfoEyeFill, { color: theme.colors.link }),
51649
51609
  iconSide: "right",
51650
51610
  size: "s",
51651
51611
  children: t("viewOptions")
51652
51612
  }
51653
51613
  );
51654
- return /* @__PURE__ */ jsxs116(EuiFlexGroup23, { css: stepListHeaderStyle, children: [
51655
- /* @__PURE__ */ jsxs116(EuiFlexGroup23, { css: stepListContentStyle, children: [
51656
- /* @__PURE__ */ jsx219(EuiText41, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
51657
- !showRaw && /* @__PURE__ */ jsx219(
51614
+ return /* @__PURE__ */ jsxs117(EuiFlexGroup23, { css: stepListHeaderStyle, children: [
51615
+ /* @__PURE__ */ jsxs117(EuiFlexGroup23, { css: stepListContentStyle, children: [
51616
+ /* @__PURE__ */ jsx220(EuiText41, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
51617
+ !showRaw && /* @__PURE__ */ jsx220(
51658
51618
  WfoTextAnchor,
51659
51619
  {
51660
51620
  text: allDetailToggleText,
@@ -51662,7 +51622,7 @@ var WfoStepListHeader = ({
51662
51622
  }
51663
51623
  )
51664
51624
  ] }),
51665
- /* @__PURE__ */ jsxs116(
51625
+ /* @__PURE__ */ jsxs117(
51666
51626
  EuiFlexGroup23,
51667
51627
  {
51668
51628
  justifyContent: "flexEnd",
@@ -51670,7 +51630,7 @@ var WfoStepListHeader = ({
51670
51630
  css: stepListOptionsContainerStyle,
51671
51631
  gutterSize: "s",
51672
51632
  children: [
51673
- showTracebackButton && /* @__PURE__ */ jsx219(
51633
+ showTracebackButton && /* @__PURE__ */ jsx220(
51674
51634
  EuiButton13,
51675
51635
  {
51676
51636
  onClick: () => onShowTraceback(!showTraceback),
@@ -51678,14 +51638,14 @@ var WfoStepListHeader = ({
51678
51638
  children: showTraceback ? t("hideTraceback") : t("showTraceback")
51679
51639
  }
51680
51640
  ),
51681
- /* @__PURE__ */ jsx219(
51641
+ /* @__PURE__ */ jsx220(
51682
51642
  EuiButton13,
51683
51643
  {
51684
51644
  onClick: () => onChangeShowDelta(!showDelta),
51685
51645
  disabled: isRunningWorkflow,
51686
51646
  iconSide: "right",
51687
51647
  size: "s",
51688
- iconType: () => /* @__PURE__ */ jsx219(
51648
+ iconType: () => /* @__PURE__ */ jsx220(
51689
51649
  WfoCode,
51690
51650
  {
51691
51651
  color: isRunningWorkflow ? theme.colors.disabledText : theme.colors.link
@@ -51694,15 +51654,15 @@ var WfoStepListHeader = ({
51694
51654
  children: showDelta ? t("hideDelta") : t("showDelta")
51695
51655
  }
51696
51656
  ),
51697
- /* @__PURE__ */ jsx219(
51657
+ /* @__PURE__ */ jsx220(
51698
51658
  EuiPopover8,
51699
51659
  {
51700
51660
  button: viewOptionButton,
51701
51661
  isOpen: isViewOptionOpen,
51702
51662
  closePopover: closeViewOption,
51703
51663
  display: "block",
51704
- children: /* @__PURE__ */ jsx219("div", { children: /* @__PURE__ */ jsxs116(EuiForm3, { component: "form", children: [
51705
- /* @__PURE__ */ jsx219(EuiFormRow23, { children: /* @__PURE__ */ jsx219(
51664
+ children: /* @__PURE__ */ jsx220("div", { children: /* @__PURE__ */ jsxs117(EuiForm3, { component: "form", children: [
51665
+ /* @__PURE__ */ jsx220(EuiFormRow23, { children: /* @__PURE__ */ jsx220(
51706
51666
  EuiSwitch3,
51707
51667
  {
51708
51668
  label: "Hidden keys",
@@ -51715,7 +51675,7 @@ var WfoStepListHeader = ({
51715
51675
  }
51716
51676
  }
51717
51677
  ) }),
51718
- /* @__PURE__ */ jsx219(EuiFormRow23, { children: /* @__PURE__ */ jsx219(
51678
+ /* @__PURE__ */ jsx220(EuiFormRow23, { children: /* @__PURE__ */ jsx220(
51719
51679
  EuiSwitch3,
51720
51680
  {
51721
51681
  label: "Raw JSON data",
@@ -51736,7 +51696,7 @@ var WfoStepListHeader = ({
51736
51696
  };
51737
51697
 
51738
51698
  // src/pages/processes/WfoStartProcessPage.tsx
51739
- import { jsx as jsx220, jsxs as jsxs117 } from "@emotion/react/jsx-runtime";
51699
+ import { jsx as jsx221, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
51740
51700
  var getInitialProcessPayload = ({
51741
51701
  productId,
51742
51702
  subscriptionId
@@ -51871,7 +51831,7 @@ var WfoStartProcessPage = ({
51871
51831
  }
51872
51832
  };
51873
51833
  const pageTitle = workflowMetadata?.description || isErrorWorkflowDescription && processDetail?.workflowName || "";
51874
- return /* @__PURE__ */ jsx220(
51834
+ return /* @__PURE__ */ jsx221(
51875
51835
  WfoProcessDetail,
51876
51836
  {
51877
51837
  pageTitle,
@@ -51880,25 +51840,25 @@ var WfoStartProcessPage = ({
51880
51840
  processDetail,
51881
51841
  timelineItems: timeLineItems,
51882
51842
  isLoading,
51883
- children: /* @__PURE__ */ jsxs117(EuiPanel5, { css: { marginTop: theme.base * 3 }, children: [
51884
- /* @__PURE__ */ jsxs117(EuiFlexGroup24, { css: getStepHeaderStyle(false), children: [
51885
- /* @__PURE__ */ jsx220(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
51886
- /* @__PURE__ */ jsxs117(EuiFlexItem29, { grow: 0, children: [
51887
- /* @__PURE__ */ jsx220(EuiText42, { css: stepListContentBoldTextStyle, children: t("userInput") }),
51888
- /* @__PURE__ */ jsx220(EuiText42, { children: t(
51843
+ children: /* @__PURE__ */ jsxs118(EuiPanel5, { css: { marginTop: theme.base * 3 }, children: [
51844
+ /* @__PURE__ */ jsxs118(EuiFlexGroup24, { css: getStepHeaderStyle(false), children: [
51845
+ /* @__PURE__ */ jsx221(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
51846
+ /* @__PURE__ */ jsxs118(EuiFlexItem29, { grow: 0, children: [
51847
+ /* @__PURE__ */ jsx221(EuiText42, { css: stepListContentBoldTextStyle, children: t("userInput") }),
51848
+ /* @__PURE__ */ jsx221(EuiText42, { children: t(
51889
51849
  isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
51890
51850
  ) })
51891
51851
  ] })
51892
51852
  ] }),
51893
- /* @__PURE__ */ jsx220(EuiHorizontalRule8, {}),
51894
- hasError && /* @__PURE__ */ jsx220(WfoError, {}) || processName === "modify_note" && /* @__PURE__ */ jsx220(
51853
+ /* @__PURE__ */ jsx221(EuiHorizontalRule8, {}),
51854
+ hasError && /* @__PURE__ */ jsx221(WfoError, {}) || processName === "modify_note" && /* @__PURE__ */ jsx221(
51895
51855
  WfoPydanticForm,
51896
51856
  {
51897
51857
  processName,
51898
51858
  startProcessPayload,
51899
51859
  isTask
51900
51860
  }
51901
- ) || stepUserInput && /* @__PURE__ */ jsx220(
51861
+ ) || stepUserInput && /* @__PURE__ */ jsx221(
51902
51862
  UserInputFormWizard,
51903
51863
  {
51904
51864
  stepUserInput,
@@ -51909,7 +51869,7 @@ var WfoStartProcessPage = ({
51909
51869
  hasNext,
51910
51870
  isTask
51911
51871
  }
51912
- ) || /* @__PURE__ */ jsx220(WfoLoading, {})
51872
+ ) || /* @__PURE__ */ jsx221(WfoLoading, {})
51913
51873
  ] })
51914
51874
  }
51915
51875
  );
@@ -51918,7 +51878,7 @@ var WfoStartProcessPage = ({
51918
51878
  // src/pages/processes/WfoProductInformationWithLink.tsx
51919
51879
  import { useTranslations as useTranslations68 } from "next-intl";
51920
51880
  import { EuiButtonIcon as EuiButtonIcon12, EuiFlexGroup as EuiFlexGroup25, EuiText as EuiText43, EuiToolTip as EuiToolTip8 } from "@elastic/eui";
51921
- import { jsx as jsx221, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
51881
+ import { jsx as jsx222, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
51922
51882
  var WfoProductInformationWithLink = ({
51923
51883
  workflowName,
51924
51884
  productNames
@@ -51926,8 +51886,8 @@ var WfoProductInformationWithLink = ({
51926
51886
  const { workflowInformationLinkUrl, showWorkflowInformationLink } = useGetOrchestratorConfig();
51927
51887
  const t = useTranslations68("processes.detail");
51928
51888
  const docsUrl = workflowInformationLinkUrl + workflowName;
51929
- return /* @__PURE__ */ jsxs118(EuiFlexGroup25, { gutterSize: "s", alignItems: "center", children: [
51930
- showWorkflowInformationLink && /* @__PURE__ */ jsx221(EuiToolTip8, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx221("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx221(
51889
+ return /* @__PURE__ */ jsxs119(EuiFlexGroup25, { gutterSize: "s", alignItems: "center", children: [
51890
+ showWorkflowInformationLink && /* @__PURE__ */ jsx222(EuiToolTip8, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx222("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx222(
51931
51891
  EuiButtonIcon12,
51932
51892
  {
51933
51893
  iconSize: "l",
@@ -51935,33 +51895,33 @@ var WfoProductInformationWithLink = ({
51935
51895
  "aria-label": t("openWorkflowTaskInfo")
51936
51896
  }
51937
51897
  ) }) }),
51938
- /* @__PURE__ */ jsx221(EuiText43, { size: "s", children: productNames })
51898
+ /* @__PURE__ */ jsx222(EuiText43, { size: "s", children: productNames })
51939
51899
  ] });
51940
51900
  };
51941
51901
 
51942
51902
  // src/pages/settings/WfoSettingsPage.tsx
51943
51903
  import { useTranslations as useTranslations69 } from "next-intl";
51944
51904
  import { EuiHorizontalRule as EuiHorizontalRule9, EuiSpacer as EuiSpacer21 } from "@elastic/eui";
51945
- import { Fragment as Fragment53, jsx as jsx222, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
51905
+ import { Fragment as Fragment54, jsx as jsx223, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
51946
51906
  var WfoSettingsPage = () => {
51947
51907
  const { theme } = useOrchestratorTheme();
51948
51908
  const t = useTranslations69("main");
51949
- return /* @__PURE__ */ jsxs119(Fragment53, { children: [
51950
- /* @__PURE__ */ jsx222(
51909
+ return /* @__PURE__ */ jsxs120(Fragment54, { children: [
51910
+ /* @__PURE__ */ jsx223(
51951
51911
  WfoContentHeader,
51952
51912
  {
51953
51913
  title: t("settings"),
51954
- subtitle: /* @__PURE__ */ jsx222(EuiHorizontalRule9, { margin: "s" })
51914
+ subtitle: /* @__PURE__ */ jsx223(EuiHorizontalRule9, { margin: "s" })
51955
51915
  }
51956
51916
  ),
51957
- /* @__PURE__ */ jsxs119("div", { css: { maxWidth: theme.base * 40 }, children: [
51958
- /* @__PURE__ */ jsx222(WfoFlushSettings, {}),
51959
- /* @__PURE__ */ jsx222(EuiSpacer21, {}),
51960
- /* @__PURE__ */ jsx222(WfoModifySettings, {}),
51961
- /* @__PURE__ */ jsx222(EuiSpacer21, {}),
51962
- /* @__PURE__ */ jsx222(WfoEngineStatus, {}),
51963
- /* @__PURE__ */ jsx222(EuiSpacer21, {}),
51964
- /* @__PURE__ */ jsx222(WfoWorkerStatus, {})
51917
+ /* @__PURE__ */ jsxs120("div", { css: { maxWidth: theme.base * 40 }, children: [
51918
+ /* @__PURE__ */ jsx223(WfoFlushSettings, {}),
51919
+ /* @__PURE__ */ jsx223(EuiSpacer21, {}),
51920
+ /* @__PURE__ */ jsx223(WfoModifySettings, {}),
51921
+ /* @__PURE__ */ jsx223(EuiSpacer21, {}),
51922
+ /* @__PURE__ */ jsx223(WfoEngineStatus, {}),
51923
+ /* @__PURE__ */ jsx223(EuiSpacer21, {}),
51924
+ /* @__PURE__ */ jsx223(WfoWorkerStatus, {})
51965
51925
  ] })
51966
51926
  ] });
51967
51927
  };
@@ -51981,7 +51941,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
51981
51941
  };
51982
51942
 
51983
51943
  // src/pages/startPage/WfoStartPage.tsx
51984
- import { Fragment as Fragment54, jsx as jsx223, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
51944
+ import { Fragment as Fragment55, jsx as jsx224, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
51985
51945
  var WfoStartPage = () => {
51986
51946
  const t = useTranslations70("main");
51987
51947
  const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
@@ -51990,27 +51950,27 @@ var WfoStartPage = () => {
51990
51950
  const username = session?.user?.name ?? "";
51991
51951
  const defaultSummaryCards = [
51992
51952
  ...toOptionalArrayEntry(
51993
- /* @__PURE__ */ jsx223(WfoMyWorkflowsSummaryCard, { username }, "myWorkflows"),
51953
+ /* @__PURE__ */ jsx224(WfoMyWorkflowsSummaryCard, { username }, "myWorkflows"),
51994
51954
  !!username
51995
51955
  ),
51996
- /* @__PURE__ */ jsx223(WfoActiveWorkflowsSummaryCard, {}, "activeWorkflows"),
51956
+ /* @__PURE__ */ jsx224(WfoActiveWorkflowsSummaryCard, {}, "activeWorkflows"),
51997
51957
  ...toOptionalArrayEntry(
51998
- /* @__PURE__ */ jsx223(WfoFailedTasksSummaryCard, {}, "failedTasks"),
51958
+ /* @__PURE__ */ jsx224(WfoFailedTasksSummaryCard, {}, "failedTasks"),
51999
51959
  isAllowed("/orchestrator/tasks/" /* NAVIGATION_TASKS */)
52000
51960
  ),
52001
- /* @__PURE__ */ jsx223(WfoLatestOutOfSyncSubscriptionSummaryCard, {}, "latestOutOfSyncSubscription"),
52002
- /* @__PURE__ */ jsx223(WfoLatestActiveSubscriptionsSummaryCard, {}, "latestActiveSubscriptions"),
52003
- /* @__PURE__ */ jsx223(WfoProductsSummaryCard, {}, "products")
51961
+ /* @__PURE__ */ jsx224(WfoLatestOutOfSyncSubscriptionSummaryCard, {}, "latestOutOfSyncSubscription"),
51962
+ /* @__PURE__ */ jsx224(WfoLatestActiveSubscriptionsSummaryCard, {}, "latestActiveSubscriptions"),
51963
+ /* @__PURE__ */ jsx224(WfoProductsSummaryCard, {}, "products")
52004
51964
  ];
52005
51965
  const summaryCards = overrideSummaryCards?.(defaultSummaryCards) || defaultSummaryCards;
52006
- return /* @__PURE__ */ jsxs120(Fragment54, { children: [
52007
- /* @__PURE__ */ jsx223(
51966
+ return /* @__PURE__ */ jsxs121(Fragment55, { children: [
51967
+ /* @__PURE__ */ jsx224(
52008
51968
  WfoContentHeader,
52009
51969
  {
52010
- title: /* @__PURE__ */ jsx223(EuiPageHeader2, { pageTitle: `${t("welcome")} ${username}` })
51970
+ title: /* @__PURE__ */ jsx224(EuiPageHeader2, { pageTitle: `${t("welcome")} ${username}` })
52011
51971
  }
52012
51972
  ),
52013
- /* @__PURE__ */ jsx223(WfoSummaryCards, { children: summaryCards })
51973
+ /* @__PURE__ */ jsx224(WfoSummaryCards, { children: summaryCards })
52014
51974
  ] });
52015
51975
  };
52016
51976
 
@@ -52028,11 +51988,11 @@ var mapSubscriptionSummaryToSummaryCardListItem = (subscription) => ({
52028
51988
 
52029
51989
  // src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
52030
51990
  import { useRouter as useRouter11 } from "next/router";
52031
- import { Fragment as Fragment55, jsx as jsx224 } from "@emotion/react/jsx-runtime";
51991
+ import { Fragment as Fragment56, jsx as jsx225 } from "@emotion/react/jsx-runtime";
52032
51992
  var WfoSubscriptionDetailPage = () => {
52033
51993
  const router = useRouter11();
52034
51994
  const { subscriptionId } = router.query;
52035
- return subscriptionId && /* @__PURE__ */ jsx224(TreeProvider, { children: /* @__PURE__ */ jsx224(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx224(Fragment55, {});
51995
+ return subscriptionId && /* @__PURE__ */ jsx225(TreeProvider, { children: /* @__PURE__ */ jsx225(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx225(Fragment56, {});
52036
51996
  };
52037
51997
 
52038
51998
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
@@ -52040,7 +52000,7 @@ import { useEffect as useEffect32, useState as useState50 } from "react";
52040
52000
  import { useTranslations as useTranslations71 } from "next-intl";
52041
52001
  import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
52042
52002
  import { EuiSpacer as EuiSpacer22 } from "@elastic/eui";
52043
- import { Fragment as Fragment56, jsx as jsx225, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
52003
+ import { Fragment as Fragment57, jsx as jsx226, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
52044
52004
  var WfoSubscriptionsListPage = () => {
52045
52005
  const t = useTranslations71("subscriptions.detail");
52046
52006
  const [tableDefaults, setTableDefaults] = useState50();
@@ -52078,14 +52038,14 @@ var WfoSubscriptionsListPage = () => {
52078
52038
  const alwaysOnFilters = subscriptionListTabs.find(
52079
52039
  ({ id }) => id === activeTab
52080
52040
  )?.alwaysOnFilters;
52081
- return /* @__PURE__ */ jsxs121(Fragment56, { children: [
52082
- /* @__PURE__ */ jsx225(
52041
+ return /* @__PURE__ */ jsxs122(Fragment57, { children: [
52042
+ /* @__PURE__ */ jsx226(
52083
52043
  WfoContentHeader,
52084
52044
  {
52085
- title: /* @__PURE__ */ jsx225(WfoTitleWithWebsocketBadge, { title: t("title") })
52045
+ title: /* @__PURE__ */ jsx226(WfoTitleWithWebsocketBadge, { title: t("title") })
52086
52046
  }
52087
52047
  ),
52088
- /* @__PURE__ */ jsx225(
52048
+ /* @__PURE__ */ jsx226(
52089
52049
  WfoFilterTabs,
52090
52050
  {
52091
52051
  tabs: subscriptionListTabs,
@@ -52094,8 +52054,8 @@ var WfoSubscriptionsListPage = () => {
52094
52054
  onChangeTab: handleChangeSubscriptionsTab
52095
52055
  }
52096
52056
  ),
52097
- /* @__PURE__ */ jsx225(EuiSpacer22, { size: "xxl" }),
52098
- /* @__PURE__ */ jsx225(
52057
+ /* @__PURE__ */ jsx226(EuiSpacer22, { size: "xxl" }),
52058
+ /* @__PURE__ */ jsx226(
52099
52059
  WfoSubscriptionsList,
52100
52060
  {
52101
52061
  hiddenColumns: tableDefaults?.hiddenColumns,
@@ -52178,7 +52138,7 @@ var getTasksListTabTypeFromString = (tabId) => {
52178
52138
  };
52179
52139
 
52180
52140
  // src/pages/tasks/WfoTasksListPage.tsx
52181
- import { Fragment as Fragment57, jsx as jsx226, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
52141
+ import { Fragment as Fragment58, jsx as jsx227, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
52182
52142
  var WfoTasksListPage = () => {
52183
52143
  const router = useRouter12();
52184
52144
  const t = useTranslations72("tasks.page");
@@ -52234,7 +52194,7 @@ var WfoTasksListPage = () => {
52234
52194
  workflowName: {
52235
52195
  columnType: "data" /* DATA */,
52236
52196
  label: t("taskName"),
52237
- renderData: (value, { processId }) => /* @__PURE__ */ jsx226(Link11, { href: `${PATH_TASKS}/${processId}`, children: value })
52197
+ renderData: (value, { processId }) => /* @__PURE__ */ jsx227(Link11, { href: `${PATH_TASKS}/${processId}`, children: value })
52238
52198
  },
52239
52199
  ...toSortedTableColumnConfig(defaultTableColumns, [
52240
52200
  "lastStep",
@@ -52252,25 +52212,25 @@ var WfoTasksListPage = () => {
52252
52212
  "lastModifiedAt"
52253
52213
  ])
52254
52214
  });
52255
- return /* @__PURE__ */ jsxs122(Fragment57, { children: [
52256
- /* @__PURE__ */ jsxs122(
52215
+ return /* @__PURE__ */ jsxs123(Fragment58, { children: [
52216
+ /* @__PURE__ */ jsxs123(
52257
52217
  WfoContentHeader,
52258
52218
  {
52259
- title: /* @__PURE__ */ jsx226(WfoTitleWithWebsocketBadge, { title: "Tasks" }),
52219
+ title: /* @__PURE__ */ jsx227(WfoTitleWithWebsocketBadge, { title: "Tasks" }),
52260
52220
  children: [
52261
- /* @__PURE__ */ jsx226(WfoIsAllowedToRender, { resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */, children: /* @__PURE__ */ jsx226(
52221
+ /* @__PURE__ */ jsx227(WfoIsAllowedToRender, { resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */, children: /* @__PURE__ */ jsx227(
52262
52222
  EuiButton14,
52263
52223
  {
52264
52224
  onClick: handleRerunAllButtonClick,
52265
- iconType: () => /* @__PURE__ */ jsx226(WfoRefresh, { color: theme.colors.primaryText }),
52225
+ iconType: () => /* @__PURE__ */ jsx227(WfoRefresh, { color: theme.colors.primaryText }),
52266
52226
  children: t("rerunAll")
52267
52227
  }
52268
52228
  ) }),
52269
- /* @__PURE__ */ jsx226(WfoIsAllowedToRender, { resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */, children: /* @__PURE__ */ jsx226(WfoStartTaskButtonComboBox, {}) })
52229
+ /* @__PURE__ */ jsx227(WfoIsAllowedToRender, { resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */, children: /* @__PURE__ */ jsx227(WfoStartTaskButtonComboBox, {}) })
52270
52230
  ]
52271
52231
  }
52272
52232
  ),
52273
- /* @__PURE__ */ jsx226(
52233
+ /* @__PURE__ */ jsx227(
52274
52234
  WfoFilterTabs,
52275
52235
  {
52276
52236
  tabs: defaultTasksListTabs,
@@ -52279,8 +52239,8 @@ var WfoTasksListPage = () => {
52279
52239
  onChangeTab: handleChangeTasksListTab
52280
52240
  }
52281
52241
  ),
52282
- /* @__PURE__ */ jsx226(EuiSpacer23, { size: "xxl" }),
52283
- /* @__PURE__ */ jsx226(
52242
+ /* @__PURE__ */ jsx227(EuiSpacer23, { size: "xxl" }),
52243
+ /* @__PURE__ */ jsx227(
52284
52244
  WfoProcessesList,
52285
52245
  {
52286
52246
  defaultHiddenColumns: tableDefaults?.hiddenColumns,
@@ -52364,7 +52324,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
52364
52324
  };
52365
52325
 
52366
52326
  // src/pages/workflows/WfoWorkflowsListPage.tsx
52367
- import { Fragment as Fragment58, jsx as jsx227, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
52327
+ import { Fragment as Fragment59, jsx as jsx228, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
52368
52328
  var WfoWorkflowsListPage = () => {
52369
52329
  const router = useRouter13();
52370
52330
  const t = useTranslations73("workflows.index");
@@ -52402,14 +52362,14 @@ var WfoWorkflowsListPage = () => {
52402
52362
  router.replace(PATH_WORKFLOWS);
52403
52363
  return null;
52404
52364
  }
52405
- return /* @__PURE__ */ jsxs123(Fragment58, { children: [
52406
- /* @__PURE__ */ jsx227(
52365
+ return /* @__PURE__ */ jsxs124(Fragment59, { children: [
52366
+ /* @__PURE__ */ jsx228(
52407
52367
  WfoContentHeader,
52408
52368
  {
52409
- title: /* @__PURE__ */ jsx227(WfoTitleWithWebsocketBadge, { title: t("title") })
52369
+ title: /* @__PURE__ */ jsx228(WfoTitleWithWebsocketBadge, { title: t("title") })
52410
52370
  }
52411
52371
  ),
52412
- /* @__PURE__ */ jsx227(
52372
+ /* @__PURE__ */ jsx228(
52413
52373
  WfoFilterTabs,
52414
52374
  {
52415
52375
  tabs: defaultWorkflowsListTabs,
@@ -52418,8 +52378,8 @@ var WfoWorkflowsListPage = () => {
52418
52378
  onChangeTab: handleChangeWorkflowsListTab
52419
52379
  }
52420
52380
  ),
52421
- /* @__PURE__ */ jsx227(EuiSpacer24, { size: "xxl" }),
52422
- /* @__PURE__ */ jsx227(
52381
+ /* @__PURE__ */ jsx228(EuiSpacer24, { size: "xxl" }),
52382
+ /* @__PURE__ */ jsx228(
52423
52383
  WfoProcessesList,
52424
52384
  {
52425
52385
  alwaysOnFilters,
@@ -52529,7 +52489,7 @@ var graphQlProcessFilterMapper = (data) => data?.map(({ field, value }) => ({
52529
52489
  }));
52530
52490
 
52531
52491
  // src/components/WfoProcessList/WfoProcessesList.tsx
52532
- import { jsx as jsx228, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
52492
+ import { jsx as jsx229, jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
52533
52493
  var WfoProcessesList = ({
52534
52494
  alwaysOnFilters,
52535
52495
  defaultHiddenColumns = [],
@@ -52547,7 +52507,7 @@ var WfoProcessesList = ({
52547
52507
  columnType: "data" /* DATA */,
52548
52508
  label: t("workflowName"),
52549
52509
  width: "225px",
52550
- renderData: (value, { processId }) => /* @__PURE__ */ jsx228(Link12, { href: `${PATH_WORKFLOWS}/${processId}`, children: value }),
52510
+ renderData: (value, { processId }) => /* @__PURE__ */ jsx229(Link12, { href: `${PATH_WORKFLOWS}/${processId}`, children: value }),
52551
52511
  renderTooltip: (value) => value
52552
52512
  },
52553
52513
  lastStep: {
@@ -52558,13 +52518,13 @@ var WfoProcessesList = ({
52558
52518
  lastStatus: {
52559
52519
  columnType: "data" /* DATA */,
52560
52520
  label: t("status"),
52561
- renderData: (cellValue) => /* @__PURE__ */ jsx228(WfoProcessStatusBadge, { processStatus: cellValue }),
52521
+ renderData: (cellValue) => /* @__PURE__ */ jsx229(WfoProcessStatusBadge, { processStatus: cellValue }),
52562
52522
  width: "150px"
52563
52523
  },
52564
52524
  workflowTarget: {
52565
52525
  columnType: "data" /* DATA */,
52566
52526
  label: t("workflowTarget"),
52567
- renderData: (target) => /* @__PURE__ */ jsx228(WfoWorkflowTargetBadge, { target }),
52527
+ renderData: (target) => /* @__PURE__ */ jsx229(WfoWorkflowTargetBadge, { target }),
52568
52528
  width: "100px"
52569
52529
  },
52570
52530
  tag: {
@@ -52591,7 +52551,7 @@ var WfoProcessesList = ({
52591
52551
  columnType: "data" /* DATA */,
52592
52552
  label: t("subscriptions"),
52593
52553
  width: "425px",
52594
- renderData: ({ page: subscriptions }, { processId }) => /* @__PURE__ */ jsx228(
52554
+ renderData: ({ page: subscriptions }, { processId }) => /* @__PURE__ */ jsx229(
52595
52555
  WfoProcessListSubscriptionsCell,
52596
52556
  {
52597
52557
  subscriptions,
@@ -52599,13 +52559,13 @@ var WfoProcessesList = ({
52599
52559
  onMoreSubscriptionsClick: () => router.push(`${PATH_WORKFLOWS}/${processId}`)
52600
52560
  }
52601
52561
  ),
52602
- renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx228(
52562
+ renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx229(
52603
52563
  WfoProcessListSubscriptionsCell,
52604
52564
  {
52605
52565
  subscriptions
52606
52566
  }
52607
52567
  ),
52608
- renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */ jsxs124("p", { children: [
52568
+ renderTooltip: ({ page: subscriptions }) => subscriptions.map(({ description, subscriptionId }) => /* @__PURE__ */ jsxs125("p", { children: [
52609
52569
  "- ",
52610
52570
  description
52611
52571
  ] }, subscriptionId)),
@@ -52625,7 +52585,7 @@ var WfoProcessesList = ({
52625
52585
  columnType: "data" /* DATA */,
52626
52586
  label: t("processId"),
52627
52587
  width: "90px",
52628
- renderData: (value) => /* @__PURE__ */ jsx228(WfoFirstPartUUID, { UUID: value }),
52588
+ renderData: (value) => /* @__PURE__ */ jsx229(WfoFirstPartUUID, { UUID: value }),
52629
52589
  renderDetails: (value) => value,
52630
52590
  renderTooltip: (value) => value
52631
52591
  },
@@ -52633,7 +52593,7 @@ var WfoProcessesList = ({
52633
52593
  columnType: "data" /* DATA */,
52634
52594
  label: t("started"),
52635
52595
  width: "100px",
52636
- renderData: (value) => /* @__PURE__ */ jsx228(WfoDateTime, { dateOrIsoString: value }),
52596
+ renderData: (value) => /* @__PURE__ */ jsx229(WfoDateTime, { dateOrIsoString: value }),
52637
52597
  renderDetails: parseDateToLocaleDateTimeString,
52638
52598
  clipboardText: parseDateToLocaleDateTimeString,
52639
52599
  renderTooltip: (value) => value.toString()
@@ -52642,7 +52602,7 @@ var WfoProcessesList = ({
52642
52602
  columnType: "data" /* DATA */,
52643
52603
  label: t("lastModified"),
52644
52604
  width: "125px",
52645
- renderData: (value) => /* @__PURE__ */ jsx228(WfoDateTime, { dateOrIsoString: value }),
52605
+ renderData: (value) => /* @__PURE__ */ jsx229(WfoDateTime, { dateOrIsoString: value }),
52646
52606
  renderDetails: parseDateToLocaleDateTimeString,
52647
52607
  clipboardText: parseDateToLocaleDateTimeString,
52648
52608
  renderTooltip: (value) => value.toString()
@@ -52675,7 +52635,7 @@ var WfoProcessesList = ({
52675
52635
  const getProcessListForExport = () => getProcessListTrigger(
52676
52636
  getQueryVariablesForExport(processListQueryVars)
52677
52637
  ).unwrap();
52678
- return /* @__PURE__ */ jsx228(
52638
+ return /* @__PURE__ */ jsx229(
52679
52639
  WfoAdvancedTable,
52680
52640
  {
52681
52641
  queryString,
@@ -52714,13 +52674,13 @@ var WfoProcessesList = ({
52714
52674
  import { EuiCodeBlock as EuiCodeBlock2 } from "@elastic/eui";
52715
52675
 
52716
52676
  // src/components/WfoJsonCodeBlock/styles.ts
52717
- import { css as css40 } from "@emotion/react";
52677
+ import { css as css41 } from "@emotion/react";
52718
52678
  var getStyles16 = ({ theme }) => {
52719
- const euiCodeBlockStyle = css40({
52679
+ const euiCodeBlockStyle = css41({
52720
52680
  marginTop: 10,
52721
52681
  borderRadius: theme.border.radius.medium
52722
52682
  });
52723
- const euiBasicCodeBlockStyle = css40({
52683
+ const euiBasicCodeBlockStyle = css41({
52724
52684
  backgroundColor: "inherit",
52725
52685
  ".euiCodeBlock__pre": {
52726
52686
  paddingTop: 0,
@@ -52738,14 +52698,14 @@ var getStyles16 = ({ theme }) => {
52738
52698
  };
52739
52699
 
52740
52700
  // src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
52741
- import { jsx as jsx229 } from "@emotion/react/jsx-runtime";
52701
+ import { jsx as jsx230 } from "@emotion/react/jsx-runtime";
52742
52702
  var WfoJsonCodeBlock = ({
52743
52703
  data,
52744
52704
  isBasicStyle = false
52745
52705
  }) => {
52746
52706
  const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles16);
52747
52707
  const json = JSON.stringify(data, null, 4);
52748
- return /* @__PURE__ */ jsx229(
52708
+ return /* @__PURE__ */ jsx230(
52749
52709
  EuiCodeBlock2,
52750
52710
  {
52751
52711
  css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
@@ -52769,10 +52729,10 @@ import {
52769
52729
  } from "@elastic/eui";
52770
52730
 
52771
52731
  // src/components/WfoSettings/styles.ts
52772
- import { css as css41 } from "@emotion/react";
52732
+ import { css as css42 } from "@emotion/react";
52773
52733
  var getWfoFlushSettingsStyle = (wfoTheme) => {
52774
52734
  const { theme } = wfoTheme;
52775
- const comboboxStyle = css41({
52735
+ const comboboxStyle = css42({
52776
52736
  // .euiComboBox is needed to override eui styling (more specific)
52777
52737
  "&.euiComboBox": {
52778
52738
  ".euiComboBox__inputWrap": {
@@ -52793,7 +52753,7 @@ var getWfoFlushSettingsStyle = (wfoTheme) => {
52793
52753
  };
52794
52754
 
52795
52755
  // src/components/WfoSettings/WfoFlushSettings.tsx
52796
- import { jsx as jsx230, jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
52756
+ import { jsx as jsx231, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
52797
52757
  var WfoFlushSettings = () => {
52798
52758
  const { comboboxStyle } = useWithOrchestratorTheme(
52799
52759
  getWfoFlushSettingsStyle
@@ -52831,10 +52791,10 @@ var WfoFlushSettings = () => {
52831
52791
  );
52832
52792
  });
52833
52793
  };
52834
- return /* @__PURE__ */ jsx230(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */ jsxs125(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
52835
- /* @__PURE__ */ jsx230(EuiText44, { size: "s", children: /* @__PURE__ */ jsx230("h4", { children: t("flushCacheSettingsTitle") }) }),
52836
- /* @__PURE__ */ jsx230(EuiSpacer25, { size: "m" }),
52837
- /* @__PURE__ */ jsx230(
52794
+ return /* @__PURE__ */ jsx231(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */ jsxs126(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
52795
+ /* @__PURE__ */ jsx231(EuiText44, { size: "s", children: /* @__PURE__ */ jsx231("h4", { children: t("flushCacheSettingsTitle") }) }),
52796
+ /* @__PURE__ */ jsx231(EuiSpacer25, { size: "m" }),
52797
+ /* @__PURE__ */ jsx231(
52838
52798
  EuiComboBox,
52839
52799
  {
52840
52800
  css: comboboxStyle,
@@ -52847,24 +52807,24 @@ var WfoFlushSettings = () => {
52847
52807
  fullWidth: true
52848
52808
  }
52849
52809
  ),
52850
- /* @__PURE__ */ jsx230(EuiSpacer25, { size: "m" }),
52851
- /* @__PURE__ */ jsx230(EuiButton15, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
52810
+ /* @__PURE__ */ jsx231(EuiSpacer25, { size: "m" }),
52811
+ /* @__PURE__ */ jsx231(EuiButton15, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
52852
52812
  ] }) });
52853
52813
  };
52854
52814
 
52855
52815
  // src/components/WfoSettings/WfoEngineStatusButton.tsx
52856
52816
  import { useTranslations as useTranslations76 } from "next-intl";
52857
52817
  import { EuiButton as EuiButton16 } from "@elastic/eui";
52858
- import { jsx as jsx231 } from "@emotion/react/jsx-runtime";
52818
+ import { jsx as jsx232 } from "@emotion/react/jsx-runtime";
52859
52819
  var WfoEngineStatusButton = () => {
52860
52820
  const { data, isLoading } = useGetEngineStatusQuery();
52861
52821
  const { engineStatus } = data || {};
52862
52822
  const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
52863
52823
  const t = useTranslations76("settings.page");
52864
52824
  if (isLoading || isSettingEngineStatus) {
52865
- return /* @__PURE__ */ jsx231(EuiButton16, { isLoading: true, fill: true, children: "Loading..." });
52825
+ return /* @__PURE__ */ jsx232(EuiButton16, { isLoading: true, fill: true, children: "Loading..." });
52866
52826
  }
52867
- return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx231(
52827
+ return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx232(
52868
52828
  EuiButton16,
52869
52829
  {
52870
52830
  onClick: () => setEngineStatus(true),
@@ -52873,7 +52833,7 @@ var WfoEngineStatusButton = () => {
52873
52833
  iconType: "pause",
52874
52834
  children: t("pauseEngine")
52875
52835
  }
52876
- ) : /* @__PURE__ */ jsx231(
52836
+ ) : /* @__PURE__ */ jsx232(
52877
52837
  EuiButton16,
52878
52838
  {
52879
52839
  onClick: () => setEngineStatus(false),
@@ -52888,25 +52848,25 @@ var WfoEngineStatusButton = () => {
52888
52848
  // src/components/WfoSettings/WfoModifySettings.tsx
52889
52849
  import { useTranslations as useTranslations77 } from "next-intl";
52890
52850
  import { EuiFlexItem as EuiFlexItem30, EuiPanel as EuiPanel7, EuiSpacer as EuiSpacer26, EuiText as EuiText45 } from "@elastic/eui";
52891
- import { jsx as jsx232, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
52851
+ import { jsx as jsx233, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
52892
52852
  var WfoModifySettings = () => {
52893
52853
  const t = useTranslations77("settings.page");
52894
- return /* @__PURE__ */ jsxs126(EuiFlexItem30, { children: [
52895
- /* @__PURE__ */ jsxs126(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
52896
- /* @__PURE__ */ jsx232(EuiText45, { size: "s", children: /* @__PURE__ */ jsx232("h4", { children: t("resetTextSearchIndex") }) }),
52897
- /* @__PURE__ */ jsx232(EuiSpacer26, { size: "m" }),
52898
- /* @__PURE__ */ jsx232(WfoResetTextSearchIndexButton, {})
52854
+ return /* @__PURE__ */ jsxs127(EuiFlexItem30, { children: [
52855
+ /* @__PURE__ */ jsxs127(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
52856
+ /* @__PURE__ */ jsx233(EuiText45, { size: "s", children: /* @__PURE__ */ jsx233("h4", { children: t("resetTextSearchIndex") }) }),
52857
+ /* @__PURE__ */ jsx233(EuiSpacer26, { size: "m" }),
52858
+ /* @__PURE__ */ jsx233(WfoResetTextSearchIndexButton, {})
52899
52859
  ] }),
52900
- /* @__PURE__ */ jsxs126(
52860
+ /* @__PURE__ */ jsxs127(
52901
52861
  WfoIsAllowedToRender,
52902
52862
  {
52903
52863
  resource: "/orchestrator/settings/start-stop-engine" /* SETTINGS_START_STOP_ENGINE */,
52904
52864
  children: [
52905
- /* @__PURE__ */ jsx232(EuiSpacer26, {}),
52906
- /* @__PURE__ */ jsxs126(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
52907
- /* @__PURE__ */ jsx232(EuiText45, { size: "s", children: /* @__PURE__ */ jsx232("h4", { children: t("modifyEngine") }) }),
52908
- /* @__PURE__ */ jsx232(EuiSpacer26, { size: "m" }),
52909
- /* @__PURE__ */ jsx232(WfoEngineStatusButton, {})
52865
+ /* @__PURE__ */ jsx233(EuiSpacer26, {}),
52866
+ /* @__PURE__ */ jsxs127(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
52867
+ /* @__PURE__ */ jsx233(EuiText45, { size: "s", children: /* @__PURE__ */ jsx233("h4", { children: t("modifyEngine") }) }),
52868
+ /* @__PURE__ */ jsx233(EuiSpacer26, { size: "m" }),
52869
+ /* @__PURE__ */ jsx233(WfoEngineStatusButton, {})
52910
52870
  ] })
52911
52871
  ]
52912
52872
  }
@@ -52917,28 +52877,28 @@ var WfoModifySettings = () => {
52917
52877
  // src/components/WfoSettings/WfoEngineStatus.tsx
52918
52878
  import { useTranslations as useTranslations78 } from "next-intl";
52919
52879
  import { EuiFlexGroup as EuiFlexGroup26, EuiFlexItem as EuiFlexItem31, EuiPanel as EuiPanel8, EuiText as EuiText46 } from "@elastic/eui";
52920
- import { jsx as jsx233, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
52880
+ import { jsx as jsx234, jsxs as jsxs128 } from "@emotion/react/jsx-runtime";
52921
52881
  var WfoEngineStatus = () => {
52922
52882
  const { theme } = useOrchestratorTheme();
52923
52883
  const { data } = useGetEngineStatusQuery();
52924
52884
  const { engineStatus, runningProcesses } = data || {};
52925
52885
  const isRunning = engineStatus === "RUNNING" /* RUNNING */;
52926
52886
  const t = useTranslations78("settings.page");
52927
- return /* @__PURE__ */ jsx233(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs127(EuiFlexGroup26, { direction: "column", gutterSize: "s", children: [
52928
- /* @__PURE__ */ jsx233(EuiFlexItem31, { children: /* @__PURE__ */ jsx233(EuiText46, { size: "s", children: /* @__PURE__ */ jsx233("h4", { children: t("engineStatusTitle") }) }) }),
52929
- /* @__PURE__ */ jsxs127(EuiFlexItem31, { css: { flexDirection: "row" }, children: [
52930
- /* @__PURE__ */ jsx233(EuiText46, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
52931
- /* @__PURE__ */ jsx233(EuiText46, { size: "s", children: runningProcesses || "-" })
52887
+ return /* @__PURE__ */ jsx234(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs128(EuiFlexGroup26, { direction: "column", gutterSize: "s", children: [
52888
+ /* @__PURE__ */ jsx234(EuiFlexItem31, { children: /* @__PURE__ */ jsx234(EuiText46, { size: "s", children: /* @__PURE__ */ jsx234("h4", { children: t("engineStatusTitle") }) }) }),
52889
+ /* @__PURE__ */ jsxs128(EuiFlexItem31, { css: { flexDirection: "row" }, children: [
52890
+ /* @__PURE__ */ jsx234(EuiText46, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
52891
+ /* @__PURE__ */ jsx234(EuiText46, { size: "s", children: runningProcesses || "-" })
52932
52892
  ] }),
52933
- /* @__PURE__ */ jsxs127(EuiFlexItem31, { css: { flexDirection: "row" }, children: [
52934
- /* @__PURE__ */ jsx233(EuiText46, { size: "s", style: { minWidth: 190 }, children: t("status") }),
52935
- /* @__PURE__ */ jsx233(
52893
+ /* @__PURE__ */ jsxs128(EuiFlexItem31, { css: { flexDirection: "row" }, children: [
52894
+ /* @__PURE__ */ jsx234(EuiText46, { size: "s", style: { minWidth: 190 }, children: t("status") }),
52895
+ /* @__PURE__ */ jsx234(
52936
52896
  WfoStatusDotIcon,
52937
52897
  {
52938
52898
  color: isRunning ? theme.colors.success : theme.colors.warning
52939
52899
  }
52940
52900
  ),
52941
- /* @__PURE__ */ jsx233(EuiText46, { size: "xs", css: { paddingTop: theme.size.xs }, children: /* @__PURE__ */ jsx233("p", { children: engineStatus }) })
52901
+ /* @__PURE__ */ jsx234(EuiText46, { size: "xs", css: { paddingTop: theme.size.xs }, children: /* @__PURE__ */ jsx234("p", { children: engineStatus }) })
52942
52902
  ] })
52943
52903
  ] }) });
52944
52904
  };
@@ -52946,7 +52906,7 @@ var WfoEngineStatus = () => {
52946
52906
  // src/components/WfoSettings/WfoWorkerStatus.tsx
52947
52907
  import { useTranslations as useTranslations79 } from "next-intl";
52948
52908
  import { EuiFlexGroup as EuiFlexGroup27, EuiFlexItem as EuiFlexItem32, EuiPanel as EuiPanel9, EuiText as EuiText47 } from "@elastic/eui";
52949
- import { jsx as jsx234, jsxs as jsxs128 } from "@emotion/react/jsx-runtime";
52909
+ import { jsx as jsx235, jsxs as jsxs129 } from "@emotion/react/jsx-runtime";
52950
52910
  var WfoWorkerStatus = () => {
52951
52911
  const { data } = useGetWorkerStatusQuery();
52952
52912
  const {
@@ -52956,19 +52916,19 @@ var WfoWorkerStatus = () => {
52956
52916
  numberOfWorkersOnline
52957
52917
  } = data || {};
52958
52918
  const t = useTranslations79("settings.page");
52959
- return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx234(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs128(EuiFlexGroup27, { direction: "column", gutterSize: "s", children: [
52960
- /* @__PURE__ */ jsx234(EuiFlexItem32, { children: /* @__PURE__ */ jsx234(EuiText47, { size: "s", children: /* @__PURE__ */ jsx234("h4", { children: t("workerStatusTitle") }) }) }),
52961
- /* @__PURE__ */ jsxs128(EuiFlexItem32, { css: { flexDirection: "row" }, children: [
52962
- /* @__PURE__ */ jsx234(EuiText47, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
52963
- /* @__PURE__ */ jsx234(EuiText47, { size: "s", children: numberOfQueuedJobs || "-" })
52919
+ return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx235(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs129(EuiFlexGroup27, { direction: "column", gutterSize: "s", children: [
52920
+ /* @__PURE__ */ jsx235(EuiFlexItem32, { children: /* @__PURE__ */ jsx235(EuiText47, { size: "s", children: /* @__PURE__ */ jsx235("h4", { children: t("workerStatusTitle") }) }) }),
52921
+ /* @__PURE__ */ jsxs129(EuiFlexItem32, { css: { flexDirection: "row" }, children: [
52922
+ /* @__PURE__ */ jsx235(EuiText47, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
52923
+ /* @__PURE__ */ jsx235(EuiText47, { size: "s", children: numberOfQueuedJobs || "-" })
52964
52924
  ] }),
52965
- /* @__PURE__ */ jsxs128(EuiFlexItem32, { css: { flexDirection: "row" }, children: [
52966
- /* @__PURE__ */ jsx234(EuiText47, { size: "s", style: { minWidth: 200 }, children: t("numberOfRunningJobs") }),
52967
- /* @__PURE__ */ jsx234(EuiText47, { size: "s", children: numberOfRunningJobs || "-" })
52925
+ /* @__PURE__ */ jsxs129(EuiFlexItem32, { css: { flexDirection: "row" }, children: [
52926
+ /* @__PURE__ */ jsx235(EuiText47, { size: "s", style: { minWidth: 200 }, children: t("numberOfRunningJobs") }),
52927
+ /* @__PURE__ */ jsx235(EuiText47, { size: "s", children: numberOfRunningJobs || "-" })
52968
52928
  ] }),
52969
- /* @__PURE__ */ jsxs128(EuiFlexItem32, { css: { flexDirection: "row" }, children: [
52970
- /* @__PURE__ */ jsx234(EuiText47, { size: "s", style: { minWidth: 200 }, children: t("numberOfWorkersOnline") }),
52971
- /* @__PURE__ */ jsx234(EuiText47, { size: "s", children: numberOfWorkersOnline || "-" })
52929
+ /* @__PURE__ */ jsxs129(EuiFlexItem32, { css: { flexDirection: "row" }, children: [
52930
+ /* @__PURE__ */ jsx235(EuiText47, { size: "s", style: { minWidth: 200 }, children: t("numberOfWorkersOnline") }),
52931
+ /* @__PURE__ */ jsx235(EuiText47, { size: "s", children: numberOfWorkersOnline || "-" })
52972
52932
  ] })
52973
52933
  ] }) }) || null;
52974
52934
  };
@@ -52976,11 +52936,11 @@ var WfoWorkerStatus = () => {
52976
52936
  // src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
52977
52937
  import { useTranslations as useTranslations80 } from "next-intl";
52978
52938
  import { EuiButton as EuiButton17 } from "@elastic/eui";
52979
- import { jsx as jsx235 } from "@emotion/react/jsx-runtime";
52939
+ import { jsx as jsx236 } from "@emotion/react/jsx-runtime";
52980
52940
  var WfoResetTextSearchIndexButton = () => {
52981
52941
  const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
52982
52942
  const t = useTranslations80("settings.page");
52983
- return /* @__PURE__ */ jsx235(
52943
+ return /* @__PURE__ */ jsx236(
52984
52944
  EuiButton17,
52985
52945
  {
52986
52946
  onClick: () => resetTextSearchIndex(null),
@@ -52991,17 +52951,17 @@ var WfoResetTextSearchIndexButton = () => {
52991
52951
  };
52992
52952
 
52993
52953
  // src/components/WfoInsyncIcon/WfoInsyncIcon.tsx
52994
- import { jsx as jsx236 } from "@emotion/react/jsx-runtime";
52954
+ import { jsx as jsx237 } from "@emotion/react/jsx-runtime";
52995
52955
  var WfoInsyncIcon = ({ inSync }) => {
52996
52956
  const { theme } = useOrchestratorTheme();
52997
- return inSync ? /* @__PURE__ */ jsx236(
52957
+ return inSync ? /* @__PURE__ */ jsx237(
52998
52958
  WfoCheckmarkCircleFill,
52999
52959
  {
53000
52960
  height: 20,
53001
52961
  width: 20,
53002
52962
  color: theme.colors.primary
53003
52963
  }
53004
- ) : /* @__PURE__ */ jsx236(
52964
+ ) : /* @__PURE__ */ jsx237(
53005
52965
  WfoMinusCircleFill,
53006
52966
  {
53007
52967
  height: 20,
@@ -53013,7 +52973,7 @@ var WfoInsyncIcon = ({ inSync }) => {
53013
52973
 
53014
52974
  // src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
53015
52975
  import React77 from "react";
53016
- import { jsx as jsx237, jsxs as jsxs129 } from "@emotion/react/jsx-runtime";
52976
+ import { jsx as jsx238, jsxs as jsxs130 } from "@emotion/react/jsx-runtime";
53017
52977
  var WfoErrorBoundary = class extends React77.Component {
53018
52978
  constructor(props) {
53019
52979
  super(props);
@@ -53030,10 +52990,10 @@ var WfoErrorBoundary = class extends React77.Component {
53030
52990
  if (this.props.fallback) {
53031
52991
  return this.props.fallback;
53032
52992
  }
53033
- return /* @__PURE__ */ jsxs129("p", { children: [
52993
+ return /* @__PURE__ */ jsxs130("p", { children: [
53034
52994
  "An unexpected error occurred, try to go back to the",
53035
52995
  " ",
53036
- /* @__PURE__ */ jsx237("a", { href: "/", children: "home page" })
52996
+ /* @__PURE__ */ jsx238("a", { href: "/", children: "home page" })
53037
52997
  ] });
53038
52998
  }
53039
52999
  return this.props.children;
@@ -53044,9 +53004,9 @@ var WfoErrorBoundary = class extends React77.Component {
53044
53004
  import { EuiFlexGroup as EuiFlexGroup28 } from "@elastic/eui";
53045
53005
 
53046
53006
  // src/components/WfoNoResults/styles.ts
53047
- import { css as css42 } from "@emotion/react";
53007
+ import { css as css43 } from "@emotion/react";
53048
53008
  var getStyles17 = ({ theme }) => {
53049
- const panelStyle = css42({
53009
+ const panelStyle = css43({
53050
53010
  display: "flex",
53051
53011
  padding: theme.base * 2,
53052
53012
  flexDirection: "row",
@@ -53065,10 +53025,10 @@ var getStyles17 = ({ theme }) => {
53065
53025
  };
53066
53026
 
53067
53027
  // src/components/WfoNoResults/WfoNoResults.tsx
53068
- import { jsxs as jsxs130 } from "@emotion/react/jsx-runtime";
53028
+ import { jsxs as jsxs131 } from "@emotion/react/jsx-runtime";
53069
53029
  var WfoNoResults = ({ text, icon }) => {
53070
53030
  const { panelStyle } = useWithOrchestratorTheme(getStyles17);
53071
- return /* @__PURE__ */ jsxs130(EuiFlexGroup28, { css: panelStyle, children: [
53031
+ return /* @__PURE__ */ jsxs131(EuiFlexGroup28, { css: panelStyle, children: [
53072
53032
  icon,
53073
53033
  " ",
53074
53034
  text
@@ -53076,7 +53036,7 @@ var WfoNoResults = ({ text, icon }) => {
53076
53036
  };
53077
53037
 
53078
53038
  // src/components/WfoRenderElementOrString/WfoRenderElementOrString.tsx
53079
- import { Fragment as Fragment59, jsx as jsx238 } from "@emotion/react/jsx-runtime";
53039
+ import { Fragment as Fragment60, jsx as jsx239 } from "@emotion/react/jsx-runtime";
53080
53040
  var WfoRenderElementOrString = ({
53081
53041
  children,
53082
53042
  renderString
@@ -53084,13 +53044,13 @@ var WfoRenderElementOrString = ({
53084
53044
  if (typeof children === "string" && renderString) {
53085
53045
  return renderString(children);
53086
53046
  }
53087
- return /* @__PURE__ */ jsx238(Fragment59, { children });
53047
+ return /* @__PURE__ */ jsx239(Fragment60, { children });
53088
53048
  };
53089
53049
 
53090
53050
  // src/components/WfoStartButton/WfoStartTaskComboBox.tsx
53091
53051
  import { useTranslations as useTranslations81 } from "next-intl";
53092
53052
  import { useRouter as useRouter15 } from "next/router";
53093
- import { jsx as jsx239 } from "@emotion/react/jsx-runtime";
53053
+ import { jsx as jsx240 } from "@emotion/react/jsx-runtime";
53094
53054
  var WfoStartTaskButtonComboBox = () => {
53095
53055
  const router = useRouter15();
53096
53056
  const t = useTranslations81("common");
@@ -53111,7 +53071,7 @@ var WfoStartTaskButtonComboBox = () => {
53111
53071
  });
53112
53072
  }
53113
53073
  };
53114
- return /* @__PURE__ */ jsx239(
53074
+ return /* @__PURE__ */ jsx240(
53115
53075
  WfoStartButtonComboBox,
53116
53076
  {
53117
53077
  buttonText: t("newTask"),
@@ -53266,7 +53226,7 @@ var {
53266
53226
  } = subscriptionListMutationApi;
53267
53227
 
53268
53228
  // src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx
53269
- import { jsx as jsx240 } from "@emotion/react/jsx-runtime";
53229
+ import { jsx as jsx241 } from "@emotion/react/jsx-runtime";
53270
53230
  var WfoSubscriptionNoteEdit = ({
53271
53231
  subscriptionId,
53272
53232
  onlyShowOnHover = false,
@@ -53299,7 +53259,7 @@ var WfoSubscriptionNoteEdit = ({
53299
53259
  note
53300
53260
  });
53301
53261
  };
53302
- return /* @__PURE__ */ jsx240(
53262
+ return /* @__PURE__ */ jsx241(
53303
53263
  WfoInlineEdit,
53304
53264
  {
53305
53265
  value: selectedItem?.note?.trim() ? selectedItem.note : INVISIBLE_CHARACTER,
@@ -53310,7 +53270,7 @@ var WfoSubscriptionNoteEdit = ({
53310
53270
  };
53311
53271
 
53312
53272
  // src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx
53313
- import { jsx as jsx241 } from "@emotion/react/jsx-runtime";
53273
+ import { jsx as jsx242 } from "@emotion/react/jsx-runtime";
53314
53274
  var WfoSubscriptionsList = ({
53315
53275
  alwaysOnFilters,
53316
53276
  dataDisplayParams,
@@ -53326,7 +53286,7 @@ var WfoSubscriptionsList = ({
53326
53286
  columnType: "data" /* DATA */,
53327
53287
  label: t("id"),
53328
53288
  width: "100px",
53329
- renderData: (value) => /* @__PURE__ */ jsx241(WfoFirstPartUUID, { UUID: value }),
53289
+ renderData: (value) => /* @__PURE__ */ jsx242(WfoFirstPartUUID, { UUID: value }),
53330
53290
  renderDetails: (value) => value,
53331
53291
  renderTooltip: (value) => value
53332
53292
  },
@@ -53334,20 +53294,20 @@ var WfoSubscriptionsList = ({
53334
53294
  columnType: "data" /* DATA */,
53335
53295
  label: t("description"),
53336
53296
  width: "500px",
53337
- renderData: (value, record) => /* @__PURE__ */ jsx241(Link13, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
53297
+ renderData: (value, record) => /* @__PURE__ */ jsx242(Link13, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
53338
53298
  renderTooltip: (value) => value
53339
53299
  },
53340
53300
  status: {
53341
53301
  columnType: "data" /* DATA */,
53342
53302
  label: t("status"),
53343
53303
  width: "120px",
53344
- renderData: (value) => /* @__PURE__ */ jsx241(WfoSubscriptionStatusBadge, { status: value })
53304
+ renderData: (value) => /* @__PURE__ */ jsx242(WfoSubscriptionStatusBadge, { status: value })
53345
53305
  },
53346
53306
  insync: {
53347
53307
  columnType: "data" /* DATA */,
53348
53308
  label: t("insync"),
53349
53309
  width: "80px",
53350
- renderData: (value) => /* @__PURE__ */ jsx241(WfoInsyncIcon, { inSync: value })
53310
+ renderData: (value) => /* @__PURE__ */ jsx242(WfoInsyncIcon, { inSync: value })
53351
53311
  },
53352
53312
  productName: {
53353
53313
  columnType: "data" /* DATA */,
@@ -53371,7 +53331,7 @@ var WfoSubscriptionsList = ({
53371
53331
  columnType: "data" /* DATA */,
53372
53332
  label: t("startDate"),
53373
53333
  width: "120px",
53374
- renderData: (value) => /* @__PURE__ */ jsx241(WfoDateTime, { dateOrIsoString: value }),
53334
+ renderData: (value) => /* @__PURE__ */ jsx242(WfoDateTime, { dateOrIsoString: value }),
53375
53335
  renderDetails: parseDateToLocaleDateTimeString,
53376
53336
  clipboardText: parseDateToLocaleDateTimeString,
53377
53337
  renderTooltip: (cellValue) => cellValue?.toString()
@@ -53380,7 +53340,7 @@ var WfoSubscriptionsList = ({
53380
53340
  columnType: "data" /* DATA */,
53381
53341
  label: t("endDate"),
53382
53342
  width: "120px",
53383
- renderData: (value) => /* @__PURE__ */ jsx241(WfoDateTime, { dateOrIsoString: value }),
53343
+ renderData: (value) => /* @__PURE__ */ jsx242(WfoDateTime, { dateOrIsoString: value }),
53384
53344
  renderDetails: parseDateToLocaleDateTimeString,
53385
53345
  clipboardText: parseDateToLocaleDateTimeString,
53386
53346
  renderTooltip: (cellValue) => cellValue?.toString()
@@ -53389,7 +53349,7 @@ var WfoSubscriptionsList = ({
53389
53349
  columnType: "data" /* DATA */,
53390
53350
  label: t("note"),
53391
53351
  renderData: (cellValue, row) => {
53392
- return /* @__PURE__ */ jsx241(
53352
+ return /* @__PURE__ */ jsx242(
53393
53353
  WfoSubscriptionNoteEdit,
53394
53354
  {
53395
53355
  queryVariables: graphqlQueryVariables,
@@ -53404,9 +53364,9 @@ var WfoSubscriptionsList = ({
53404
53364
  columnType: "data" /* DATA */,
53405
53365
  label: t("metadata"),
53406
53366
  width: "100px",
53407
- renderData: (value) => /* @__PURE__ */ jsx241(WfoInlineJson, { data: value }),
53408
- renderDetails: (value) => value && /* @__PURE__ */ jsx241(WfoJsonCodeBlock, { data: value, isBasicStyle: true }),
53409
- renderTooltip: (value) => value && /* @__PURE__ */ jsx241(WfoJsonCodeBlock, { data: value, isBasicStyle: false })
53367
+ renderData: (value) => /* @__PURE__ */ jsx242(WfoInlineJson, { data: value }),
53368
+ renderDetails: (value) => value && /* @__PURE__ */ jsx242(WfoJsonCodeBlock, { data: value, isBasicStyle: true }),
53369
+ renderTooltip: (value) => value && /* @__PURE__ */ jsx242(WfoJsonCodeBlock, { data: value, isBasicStyle: false })
53410
53370
  }
53411
53371
  };
53412
53372
  const { sortBy: sortBy2, queryString, pageIndex, pageSize } = dataDisplayParams;
@@ -53447,7 +53407,7 @@ var WfoSubscriptionsList = ({
53447
53407
  ),
53448
53408
  onChangeItemsPerPage: getPageSizeChangeHandler(setDataDisplayParam)
53449
53409
  };
53450
- return /* @__PURE__ */ jsx241(
53410
+ return /* @__PURE__ */ jsx242(
53451
53411
  WfoAdvancedTable,
53452
53412
  {
53453
53413
  queryString: dataDisplayParams.queryString,
@@ -53511,18 +53471,18 @@ import {
53511
53471
  } from "@elastic/eui";
53512
53472
 
53513
53473
  // src/components/WfoSummary/WfoSummaryCardHeader/styles.ts
53514
- import { css as css43 } from "@emotion/react";
53474
+ import { css as css44 } from "@emotion/react";
53515
53475
  var getWfoSummaryCardHeaderStyles = ({ theme }) => {
53516
- const avatarStyle = css43({
53476
+ const avatarStyle = css44({
53517
53477
  maxHeight: theme.base * 3,
53518
53478
  maxWidth: theme.base * 3
53519
53479
  });
53520
- const totalSectionStyle = css43({
53480
+ const totalSectionStyle = css44({
53521
53481
  display: "flex",
53522
53482
  flexDirection: "column",
53523
53483
  justifyContent: "space-between"
53524
53484
  });
53525
- const valueStyle = css43({
53485
+ const valueStyle = css44({
53526
53486
  fontSize: theme.size.l,
53527
53487
  fontWeight: theme.font.weight.semiBold
53528
53488
  });
@@ -53534,7 +53494,7 @@ var getWfoSummaryCardHeaderStyles = ({ theme }) => {
53534
53494
  };
53535
53495
 
53536
53496
  // src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
53537
- import { jsx as jsx242, jsxs as jsxs131 } from "@emotion/react/jsx-runtime";
53497
+ import { jsx as jsx243, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
53538
53498
  var WfoSummaryCardHeader = ({
53539
53499
  text,
53540
53500
  value,
@@ -53544,8 +53504,8 @@ var WfoSummaryCardHeader = ({
53544
53504
  }) => {
53545
53505
  const { theme } = useOrchestratorTheme();
53546
53506
  const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
53547
- return /* @__PURE__ */ jsx242(EuiFlexItem33, { grow: 0, children: /* @__PURE__ */ jsx242(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs131(EuiFlexGroup29, { alignItems: "center", children: [
53548
- /* @__PURE__ */ jsx242(
53507
+ return /* @__PURE__ */ jsx243(EuiFlexItem33, { grow: 0, children: /* @__PURE__ */ jsx243(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs132(EuiFlexGroup29, { alignItems: "center", children: [
53508
+ /* @__PURE__ */ jsx243(
53549
53509
  EuiAvatar2,
53550
53510
  {
53551
53511
  iconSize: "l",
@@ -53558,11 +53518,11 @@ var WfoSummaryCardHeader = ({
53558
53518
  color: iconColor
53559
53519
  }
53560
53520
  ),
53561
- /* @__PURE__ */ jsxs131("div", { css: totalSectionStyle, children: [
53562
- /* @__PURE__ */ jsx242(EuiText48, { color: "subdued", children: text }),
53563
- /* @__PURE__ */ jsxs131(EuiFlexGroup29, { gutterSize: "s", alignItems: "center", children: [
53564
- /* @__PURE__ */ jsx242(EuiText48, { css: valueStyle, children: value }),
53565
- isFetching && /* @__PURE__ */ jsx242(EuiLoadingSpinner, {})
53521
+ /* @__PURE__ */ jsxs132("div", { css: totalSectionStyle, children: [
53522
+ /* @__PURE__ */ jsx243(EuiText48, { color: "subdued", children: text }),
53523
+ /* @__PURE__ */ jsxs132(EuiFlexGroup29, { gutterSize: "s", alignItems: "center", children: [
53524
+ /* @__PURE__ */ jsx243(EuiText48, { css: valueStyle, children: value }),
53525
+ isFetching && /* @__PURE__ */ jsx243(EuiLoadingSpinner, {})
53566
53526
  ] })
53567
53527
  ] })
53568
53528
  ] }) }) });
@@ -53585,35 +53545,35 @@ import { EuiFlexGroup as EuiFlexGroup30, EuiFlexItem as EuiFlexItem34, EuiIcon a
53585
53545
 
53586
53546
  // src/components/WfoOptionalLink/WfoOptionalLink.tsx
53587
53547
  import Link14 from "next/link";
53588
- import { jsx as jsx243 } from "@emotion/react/jsx-runtime";
53548
+ import { jsx as jsx244 } from "@emotion/react/jsx-runtime";
53589
53549
  var WfoOptionalLink = ({
53590
53550
  children,
53591
53551
  href
53592
53552
  }) => {
53593
53553
  if (!href) {
53594
- return /* @__PURE__ */ jsx243("span", { children });
53554
+ return /* @__PURE__ */ jsx244("span", { children });
53595
53555
  }
53596
- return /* @__PURE__ */ jsx243(Link14, { href, children });
53556
+ return /* @__PURE__ */ jsx244(Link14, { href, children });
53597
53557
  };
53598
53558
 
53599
53559
  // src/components/WfoSummary/WfoSummaryCardList/styles.ts
53600
- import { css as css44 } from "@emotion/react";
53560
+ import { css as css45 } from "@emotion/react";
53601
53561
  var getWfoSummaryCardListStyles = ({ theme }) => {
53602
- const listContainerStyle = css44({
53562
+ const listContainerStyle = css45({
53603
53563
  display: "flex",
53604
53564
  flexDirection: "column",
53605
53565
  justifyContent: "space-between",
53606
53566
  flexGrow: 1,
53607
53567
  borderColor: theme.colors.lightShade
53608
53568
  });
53609
- const listHeaderStyle = css44({
53569
+ const listHeaderStyle = css45({
53610
53570
  fontWeight: theme.font.weight.semiBold
53611
53571
  });
53612
- const listStyle = css44({
53572
+ const listStyle = css45({
53613
53573
  height: theme.base * 20,
53614
53574
  overflow: "auto"
53615
53575
  });
53616
- const listItemContainerStyle = css44({
53576
+ const listItemContainerStyle = css45({
53617
53577
  paddingBlock: theme.size.m,
53618
53578
  ".highlight-icon": {
53619
53579
  visibility: "hidden"
@@ -53622,13 +53582,13 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
53622
53582
  visibility: "visible"
53623
53583
  }
53624
53584
  });
53625
- const listItemTitleStyle = css44({
53585
+ const listItemTitleStyle = css45({
53626
53586
  fontWeight: theme.font.weight.medium
53627
53587
  });
53628
- const listItemSubtitleStyle = css44({
53588
+ const listItemSubtitleStyle = css45({
53629
53589
  fontWeight: theme.font.weight.regular
53630
53590
  });
53631
- const listItemHighlightIconStyle = css44({
53591
+ const listItemHighlightIconStyle = css45({
53632
53592
  visibility: "hidden"
53633
53593
  });
53634
53594
  return {
@@ -53643,7 +53603,7 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
53643
53603
  };
53644
53604
 
53645
53605
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
53646
- import { jsx as jsx244, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
53606
+ import { jsx as jsx245, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
53647
53607
  var WfoSummaryCardListItem = ({
53648
53608
  title,
53649
53609
  value,
@@ -53656,9 +53616,9 @@ var WfoSummaryCardListItem = ({
53656
53616
  listItemSubtitleStyle,
53657
53617
  listItemHighlightIconStyle
53658
53618
  } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
53659
- return /* @__PURE__ */ jsx244(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs132(EuiFlexGroup30, { css: listItemContainerStyle, gutterSize: "none", children: [
53660
- /* @__PURE__ */ jsxs132(EuiFlexItem34, { children: [
53661
- /* @__PURE__ */ jsx244(
53619
+ return /* @__PURE__ */ jsx245(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs133(EuiFlexGroup30, { css: listItemContainerStyle, gutterSize: "none", children: [
53620
+ /* @__PURE__ */ jsxs133(EuiFlexItem34, { children: [
53621
+ /* @__PURE__ */ jsx245(
53662
53622
  EuiTextColor,
53663
53623
  {
53664
53624
  color: url ? theme.colors.link : theme.colors.title,
@@ -53666,22 +53626,22 @@ var WfoSummaryCardListItem = ({
53666
53626
  children: title
53667
53627
  }
53668
53628
  ),
53669
- /* @__PURE__ */ jsx244(EuiTextColor, { css: listItemSubtitleStyle, children: value })
53629
+ /* @__PURE__ */ jsx245(EuiTextColor, { css: listItemSubtitleStyle, children: value })
53670
53630
  ] }),
53671
- /* @__PURE__ */ jsx244(
53631
+ /* @__PURE__ */ jsx245(
53672
53632
  EuiFlexItem34,
53673
53633
  {
53674
53634
  className: url ? "highlight-icon" : void 0,
53675
53635
  grow: false,
53676
53636
  css: listItemHighlightIconStyle,
53677
- children: /* @__PURE__ */ jsx244(EuiIcon5, { type: "sortRight", color: "primary" })
53637
+ children: /* @__PURE__ */ jsx245(EuiIcon5, { type: "sortRight", color: "primary" })
53678
53638
  }
53679
53639
  )
53680
53640
  ] }) });
53681
53641
  };
53682
53642
 
53683
53643
  // src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
53684
- import { jsx as jsx245, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
53644
+ import { jsx as jsx246, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
53685
53645
  var WfoSummaryCardList = ({
53686
53646
  title,
53687
53647
  items,
@@ -53691,7 +53651,7 @@ var WfoSummaryCardList = ({
53691
53651
  const router = useRouter17();
53692
53652
  const euiScrollBarStyle = useEuiScrollBar3();
53693
53653
  const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
53694
- return /* @__PURE__ */ jsx245(EuiFlexItem35, { children: /* @__PURE__ */ jsxs133(
53654
+ return /* @__PURE__ */ jsx246(EuiFlexItem35, { children: /* @__PURE__ */ jsxs134(
53695
53655
  EuiPanel11,
53696
53656
  {
53697
53657
  css: listContainerStyle,
@@ -53699,11 +53659,11 @@ var WfoSummaryCardList = ({
53699
53659
  hasBorder: true,
53700
53660
  paddingSize: "l",
53701
53661
  children: [
53702
- /* @__PURE__ */ jsxs133("div", { children: [
53703
- /* @__PURE__ */ jsx245("p", { css: listHeaderStyle, children: title }),
53704
- /* @__PURE__ */ jsx245(EuiSpacer27, { size: "m" }),
53705
- /* @__PURE__ */ jsx245(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx245("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs133("div", { children: [
53706
- /* @__PURE__ */ jsx245(
53662
+ /* @__PURE__ */ jsxs134("div", { children: [
53663
+ /* @__PURE__ */ jsx246("p", { css: listHeaderStyle, children: title }),
53664
+ /* @__PURE__ */ jsx246(EuiSpacer27, { size: "m" }),
53665
+ /* @__PURE__ */ jsx246(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx246("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs134("div", { children: [
53666
+ /* @__PURE__ */ jsx246(
53707
53667
  WfoSummaryCardListItem,
53708
53668
  {
53709
53669
  title: item.title,
@@ -53711,11 +53671,11 @@ var WfoSummaryCardList = ({
53711
53671
  url: item.url
53712
53672
  }
53713
53673
  ),
53714
- index === items.length - 1 ? null : /* @__PURE__ */ jsx245(EuiHorizontalRule10, { margin: "none" })
53674
+ index === items.length - 1 ? null : /* @__PURE__ */ jsx246(EuiHorizontalRule10, { margin: "none" })
53715
53675
  ] }, index)) }) })
53716
53676
  ] }),
53717
- /* @__PURE__ */ jsx245(EuiSpacer27, { size: "m" }),
53718
- button && /* @__PURE__ */ jsx245(
53677
+ /* @__PURE__ */ jsx246(EuiSpacer27, { size: "m" }),
53678
+ button && /* @__PURE__ */ jsx246(
53719
53679
  EuiButton18,
53720
53680
  {
53721
53681
  fullWidth: true,
@@ -53730,10 +53690,10 @@ var WfoSummaryCardList = ({
53730
53690
 
53731
53691
  // src/components/WfoSummary/WfoSummaryCards.tsx
53732
53692
  import { EuiFlexGrid as EuiFlexGrid2, useCurrentEuiBreakpoint } from "@elastic/eui";
53733
- import { jsx as jsx246 } from "@emotion/react/jsx-runtime";
53693
+ import { jsx as jsx247 } from "@emotion/react/jsx-runtime";
53734
53694
  var WfoSummaryCards = ({ children }) => {
53735
53695
  const currentBreakpoint = useCurrentEuiBreakpoint();
53736
- return /* @__PURE__ */ jsx246(
53696
+ return /* @__PURE__ */ jsx247(
53737
53697
  EuiFlexGrid2,
53738
53698
  {
53739
53699
  responsive: false,
@@ -53748,9 +53708,9 @@ var WfoSummaryCards = ({ children }) => {
53748
53708
  import { EuiFlexItem as EuiFlexItem36, EuiSpacer as EuiSpacer28 } from "@elastic/eui";
53749
53709
 
53750
53710
  // src/components/WfoSummary/styles.ts
53751
- import { css as css45 } from "@emotion/react";
53711
+ import { css as css46 } from "@emotion/react";
53752
53712
  var getWfoSummaryCardsStyles = ({ theme }) => {
53753
- const cardContainerStyle = css45({
53713
+ const cardContainerStyle = css46({
53754
53714
  height: theme.base * 36,
53755
53715
  minWidth: theme.base * 25
53756
53716
  });
@@ -53760,7 +53720,7 @@ var getWfoSummaryCardsStyles = ({ theme }) => {
53760
53720
  };
53761
53721
 
53762
53722
  // src/components/WfoSummary/WfoSummaryCard.tsx
53763
- import { jsx as jsx247, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
53723
+ import { jsx as jsx248, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
53764
53724
  var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
53765
53725
  SummaryCardStatus2["Success"] = "Success";
53766
53726
  SummaryCardStatus2["Error"] = "Error";
@@ -53786,7 +53746,7 @@ var WfoSummaryCard = ({
53786
53746
  switch (status) {
53787
53747
  case "Success" /* Success */:
53788
53748
  return {
53789
- iconType: () => /* @__PURE__ */ jsx247(
53749
+ iconType: () => /* @__PURE__ */ jsx248(
53790
53750
  WfoCheckmarkCircleFill,
53791
53751
  {
53792
53752
  width: 32,
@@ -53798,7 +53758,7 @@ var WfoSummaryCard = ({
53798
53758
  };
53799
53759
  case "Error" /* Error */:
53800
53760
  return {
53801
- iconType: () => /* @__PURE__ */ jsx247(
53761
+ iconType: () => /* @__PURE__ */ jsx248(
53802
53762
  WfoXCircleFill,
53803
53763
  {
53804
53764
  width: 32,
@@ -53810,7 +53770,7 @@ var WfoSummaryCard = ({
53810
53770
  };
53811
53771
  case "Neutral" /* Neutral */:
53812
53772
  return {
53813
- iconType: () => /* @__PURE__ */ jsx247(
53773
+ iconType: () => /* @__PURE__ */ jsx248(
53814
53774
  WfoCubeFill,
53815
53775
  {
53816
53776
  width: 32,
@@ -53822,7 +53782,7 @@ var WfoSummaryCard = ({
53822
53782
  };
53823
53783
  default:
53824
53784
  return headerBadge ?? {
53825
- iconType: () => /* @__PURE__ */ jsx247(
53785
+ iconType: () => /* @__PURE__ */ jsx248(
53826
53786
  WfoCubeFill,
53827
53787
  {
53828
53788
  width: 32,
@@ -53834,8 +53794,8 @@ var WfoSummaryCard = ({
53834
53794
  };
53835
53795
  }
53836
53796
  };
53837
- return /* @__PURE__ */ jsxs134(EuiFlexItem36, { css: cardContainerStyle, children: [
53838
- /* @__PURE__ */ jsx247(
53797
+ return /* @__PURE__ */ jsxs135(EuiFlexItem36, { css: cardContainerStyle, children: [
53798
+ /* @__PURE__ */ jsx248(
53839
53799
  WfoSummaryCardHeader,
53840
53800
  {
53841
53801
  text: headerTitle,
@@ -53844,8 +53804,8 @@ var WfoSummaryCard = ({
53844
53804
  ...getIconTypeAndColorForHeaderStatus(headerStatus)
53845
53805
  }
53846
53806
  ),
53847
- /* @__PURE__ */ jsx247(EuiSpacer28, { size: "m" }),
53848
- /* @__PURE__ */ jsx247(
53807
+ /* @__PURE__ */ jsx248(EuiSpacer28, { size: "m" }),
53808
+ /* @__PURE__ */ jsx248(
53849
53809
  WfoSummaryCardList,
53850
53810
  {
53851
53811
  title: listTitle,
@@ -53955,7 +53915,7 @@ var productsSummaryQueryVariables = {
53955
53915
  };
53956
53916
 
53957
53917
  // src/components/WfoSummary/WfoActiveWorkflowsSummaryCard.tsx
53958
- import { jsx as jsx248 } from "@emotion/react/jsx-runtime";
53918
+ import { jsx as jsx249 } from "@emotion/react/jsx-runtime";
53959
53919
  var WfoActiveWorkflowsSummaryCard = () => {
53960
53920
  const t = useTranslations83("startPage.activeWorkflows");
53961
53921
  const {
@@ -53963,7 +53923,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
53963
53923
  isFetching,
53964
53924
  isLoading
53965
53925
  } = useGetProcessListSummaryQuery(activeWorkflowsListSummaryQueryVariables);
53966
- return /* @__PURE__ */ jsx248(
53926
+ return /* @__PURE__ */ jsx249(
53967
53927
  WfoSummaryCard,
53968
53928
  {
53969
53929
  headerTitle: t("headerTitle"),
@@ -53983,7 +53943,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
53983
53943
 
53984
53944
  // src/components/WfoSummary/WfoFailedTasksSummaryCard.tsx
53985
53945
  import { useTranslations as useTranslations84 } from "next-intl";
53986
- import { jsx as jsx249 } from "@emotion/react/jsx-runtime";
53946
+ import { jsx as jsx250 } from "@emotion/react/jsx-runtime";
53987
53947
  var WfoFailedTasksSummaryCard = () => {
53988
53948
  const t = useTranslations84("startPage.failedTasks");
53989
53949
  const {
@@ -53991,7 +53951,7 @@ var WfoFailedTasksSummaryCard = () => {
53991
53951
  isFetching,
53992
53952
  isLoading
53993
53953
  } = useGetProcessListSummaryQuery(taskListSummaryQueryVariables);
53994
- return /* @__PURE__ */ jsx249(
53954
+ return /* @__PURE__ */ jsx250(
53995
53955
  WfoSummaryCard,
53996
53956
  {
53997
53957
  headerTitle: t("headerTitle"),
@@ -54011,7 +53971,7 @@ var WfoFailedTasksSummaryCard = () => {
54011
53971
 
54012
53972
  // src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx
54013
53973
  import { useTranslations as useTranslations85 } from "next-intl";
54014
- import { jsx as jsx250 } from "@emotion/react/jsx-runtime";
53974
+ import { jsx as jsx251 } from "@emotion/react/jsx-runtime";
54015
53975
  var WfoLatestActiveSubscriptionsSummaryCard = () => {
54016
53976
  const t = useTranslations85("startPage.activeSubscriptions");
54017
53977
  const {
@@ -54021,7 +53981,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
54021
53981
  } = useGetSubscriptionSummaryListQuery(
54022
53982
  subscriptionsListSummaryQueryVariables
54023
53983
  );
54024
- return /* @__PURE__ */ jsx250(
53984
+ return /* @__PURE__ */ jsx251(
54025
53985
  WfoSummaryCard,
54026
53986
  {
54027
53987
  headerTitle: t("headerTitle"),
@@ -54041,7 +54001,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
54041
54001
 
54042
54002
  // src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx
54043
54003
  import { useTranslations as useTranslations86 } from "next-intl";
54044
- import { jsx as jsx251 } from "@emotion/react/jsx-runtime";
54004
+ import { jsx as jsx252 } from "@emotion/react/jsx-runtime";
54045
54005
  var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
54046
54006
  const t = useTranslations86("startPage.outOfSyncSubscriptions");
54047
54007
  const {
@@ -54056,7 +54016,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
54056
54016
  ["sortBy" /* SORT_BY */]: "field-startDate_order-ASC",
54057
54017
  ["queryString" /* QUERY_STRING */]: "status:(provisioning|active) insync:false"
54058
54018
  };
54059
- return /* @__PURE__ */ jsx251(
54019
+ return /* @__PURE__ */ jsx252(
54060
54020
  WfoSummaryCard,
54061
54021
  {
54062
54022
  headerTitle: t("headerTitle"),
@@ -54079,7 +54039,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
54079
54039
 
54080
54040
  // src/components/WfoSummary/WfoMyWorkflowsSummaryCard.tsx
54081
54041
  import { useTranslations as useTranslations87 } from "next-intl";
54082
- import { jsx as jsx252 } from "@emotion/react/jsx-runtime";
54042
+ import { jsx as jsx253 } from "@emotion/react/jsx-runtime";
54083
54043
  var WfoMyWorkflowsSummaryCard = ({
54084
54044
  username
54085
54045
  }) => {
@@ -54096,7 +54056,7 @@ var WfoMyWorkflowsSummaryCard = ({
54096
54056
  ["sortBy" /* SORT_BY */]: "field-lastModifiedAt_order-DESC",
54097
54057
  ["queryString" /* QUERY_STRING */]: `createdBy:${username}`
54098
54058
  };
54099
- return /* @__PURE__ */ jsx252(
54059
+ return /* @__PURE__ */ jsx253(
54100
54060
  WfoSummaryCard,
54101
54061
  {
54102
54062
  headerTitle: t("headerTitle"),
@@ -54119,7 +54079,7 @@ var WfoMyWorkflowsSummaryCard = ({
54119
54079
 
54120
54080
  // src/components/WfoSummary/WfoProductsSummaryCard.tsx
54121
54081
  import { useTranslations as useTranslations88 } from "next-intl";
54122
- import { jsx as jsx253, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
54082
+ import { jsx as jsx254, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
54123
54083
  var WfoProductsSummaryCard = () => {
54124
54084
  const t = useTranslations88("startPage.products");
54125
54085
  const {
@@ -54131,7 +54091,7 @@ var WfoProductsSummaryCard = () => {
54131
54091
  (left, right) => (right.subscriptions.pageInfo.totalItems ?? 0) - (left.subscriptions.pageInfo.totalItems ?? 0)
54132
54092
  ).map((product) => ({
54133
54093
  title: "",
54134
- value: /* @__PURE__ */ jsxs135(
54094
+ value: /* @__PURE__ */ jsxs136(
54135
54095
  "div",
54136
54096
  {
54137
54097
  css: {
@@ -54139,13 +54099,13 @@ var WfoProductsSummaryCard = () => {
54139
54099
  justifyContent: "space-between"
54140
54100
  },
54141
54101
  children: [
54142
- /* @__PURE__ */ jsx253("div", { children: product.name }),
54143
- /* @__PURE__ */ jsx253("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
54102
+ /* @__PURE__ */ jsx254("div", { children: product.name }),
54103
+ /* @__PURE__ */ jsx254("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
54144
54104
  ]
54145
54105
  }
54146
54106
  )
54147
54107
  })) ?? [];
54148
- return /* @__PURE__ */ jsx253(
54108
+ return /* @__PURE__ */ jsx254(
54149
54109
  WfoSummaryCard,
54150
54110
  {
54151
54111
  headerTitle: t("headerTitle"),
@@ -54161,17 +54121,17 @@ var WfoProductsSummaryCard = () => {
54161
54121
 
54162
54122
  // src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx
54163
54123
  import { EuiPageHeader as EuiPageHeader3 } from "@elastic/eui";
54164
- import { Fragment as Fragment60, jsx as jsx254, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
54124
+ import { Fragment as Fragment61, jsx as jsx255, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
54165
54125
  var WfoTitleWithWebsocketBadge = ({
54166
54126
  title
54167
54127
  }) => {
54168
54128
  const { useWebSockets } = useGetOrchestratorConfig();
54169
- const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs136(Fragment60, { children: [
54129
+ const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs137(Fragment61, { children: [
54170
54130
  title,
54171
54131
  " ",
54172
- /* @__PURE__ */ jsx254(WfoWebsocketStatusBadge, {})
54132
+ /* @__PURE__ */ jsx255(WfoWebsocketStatusBadge, {})
54173
54133
  ] }) : title;
54174
- return /* @__PURE__ */ jsx254(EuiPageHeader3, { pageTitle });
54134
+ return /* @__PURE__ */ jsx255(EuiPageHeader3, { pageTitle });
54175
54135
  };
54176
54136
 
54177
54137
  // src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
@@ -54182,7 +54142,7 @@ import {
54182
54142
  EuiPopover as EuiPopover9,
54183
54143
  EuiRadioGroup
54184
54144
  } from "@elastic/eui";
54185
- import { jsx as jsx255 } from "@emotion/react/jsx-runtime";
54145
+ import { jsx as jsx256 } from "@emotion/react/jsx-runtime";
54186
54146
  var WfoRadioDropdown = ({
54187
54147
  options,
54188
54148
  onUpdateOption,
@@ -54208,16 +54168,16 @@ var WfoRadioDropdown = ({
54208
54168
  id: option.id,
54209
54169
  label: option.label
54210
54170
  }));
54211
- return /* @__PURE__ */ jsx255(
54171
+ return /* @__PURE__ */ jsx256(
54212
54172
  EuiFlexGroup31,
54213
54173
  {
54214
54174
  gutterSize: "s",
54215
54175
  alignItems: "center",
54216
54176
  justifyContent: "flexEnd",
54217
- children: /* @__PURE__ */ jsx255(
54177
+ children: /* @__PURE__ */ jsx256(
54218
54178
  EuiPopover9,
54219
54179
  {
54220
- button: /* @__PURE__ */ jsx255(
54180
+ button: /* @__PURE__ */ jsx256(
54221
54181
  EuiButtonEmpty5,
54222
54182
  {
54223
54183
  size: "s",
@@ -54238,7 +54198,7 @@ var WfoRadioDropdown = ({
54238
54198
  isOpen,
54239
54199
  closePopover: handleClose,
54240
54200
  anchorPosition: "downLeft",
54241
- children: /* @__PURE__ */ jsx255(
54201
+ children: /* @__PURE__ */ jsx256(
54242
54202
  EuiRadioGroup,
54243
54203
  {
54244
54204
  options: radioGroupOptions,
@@ -54253,7 +54213,7 @@ var WfoRadioDropdown = ({
54253
54213
  };
54254
54214
 
54255
54215
  // src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx
54256
- import { jsx as jsx256 } from "@emotion/react/jsx-runtime";
54216
+ import { jsx as jsx257 } from "@emotion/react/jsx-runtime";
54257
54217
  var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }) => {
54258
54218
  const { data, endpointName } = useGetSubscriptionDetailQuery({
54259
54219
  subscriptionId
@@ -54276,7 +54236,7 @@ var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }
54276
54236
  note
54277
54237
  });
54278
54238
  };
54279
- return /* @__PURE__ */ jsx256(
54239
+ return /* @__PURE__ */ jsx257(
54280
54240
  WfoInlineEdit,
54281
54241
  {
54282
54242
  value: selectedItem?.note?.trim() ? selectedItem.note : INVISIBLE_CHARACTER,
@@ -54290,9 +54250,9 @@ var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }
54290
54250
  import { EuiFlexItem as EuiFlexItem37 } from "@elastic/eui";
54291
54251
 
54292
54252
  // src/components/WfoTableCodeBlock/styles.ts
54293
- import { css as css46 } from "@emotion/react";
54253
+ import { css as css47 } from "@emotion/react";
54294
54254
  var getStyles18 = ({ theme }) => {
54295
- const tableCodeBlockMarginStyle = css46({
54255
+ const tableCodeBlockMarginStyle = css47({
54296
54256
  margin: theme.size.base,
54297
54257
  marginTop: theme.size.l,
54298
54258
  marginRight: theme.size.l
@@ -54303,7 +54263,7 @@ var getStyles18 = ({ theme }) => {
54303
54263
  };
54304
54264
 
54305
54265
  // src/components/WfoTableCodeBlock/WfoTableCodeBlock.tsx
54306
- import { jsx as jsx257 } from "@emotion/react/jsx-runtime";
54266
+ import { jsx as jsx258 } from "@emotion/react/jsx-runtime";
54307
54267
  var WfoTableCodeBlock = ({
54308
54268
  stepState: data
54309
54269
  }) => {
@@ -54319,7 +54279,7 @@ var WfoTableCodeBlock = ({
54319
54279
  };
54320
54280
  }
54321
54281
  );
54322
- return /* @__PURE__ */ jsx257(EuiFlexItem37, { css: tableCodeBlockMarginStyle, children: /* @__PURE__ */ jsx257(
54282
+ return /* @__PURE__ */ jsx258(EuiFlexItem37, { css: tableCodeBlockMarginStyle, children: /* @__PURE__ */ jsx258(
54323
54283
  WfoKeyValueTable,
54324
54284
  {
54325
54285
  keyValues,
@@ -55387,6 +55347,7 @@ export {
55387
55347
  STEP_STATE_HIDDEN_KEYS,
55388
55348
  SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY,
55389
55349
  SUBSCRIPTION_ACTIONS_ENDPOINT,
55350
+ SUBSCRIPTION_DROPDOWN_OPTIONS_ENDPOINT,
55390
55351
  SortOrder,
55391
55352
  StepStatus,
55392
55353
  StoreProvider,
@@ -55720,7 +55681,6 @@ export {
55720
55681
  subscriptionListQuery,
55721
55682
  subscriptionListSummaryQuery,
55722
55683
  subscriptionListTabs,
55723
- subscriptionsDropdownOptionsQuery,
55724
55684
  tasksQuery,
55725
55685
  toObjectWithSerializedValues,
55726
55686
  toObjectWithSortedKeys,
@@ -55728,6 +55688,7 @@ export {
55728
55688
  toOptionalArrayEntries,
55729
55689
  toOptionalArrayEntry,
55730
55690
  toSortedTableColumnConfig,
55691
+ toUrlParams,
55731
55692
  toastMessagesReducer,
55732
55693
  toastMessagesSlice,
55733
55694
  updateQueryString,
@@ -55763,7 +55724,7 @@ export {
55763
55724
  useGetSubscriptionDetailQuery,
55764
55725
  useGetSubscriptionListQuery,
55765
55726
  useGetSubscriptionSummaryListQuery,
55766
- useGetSubscriptionsDropdownOptionsQuery,
55727
+ useGetSurfSubscriptionDropdownOptionsQuery,
55767
55728
  useGetTaskOptionsQuery,
55768
55729
  useGetTasksQuery,
55769
55730
  useGetTimeLineItemsQuery,
@@ -55778,6 +55739,7 @@ export {
55778
55739
  useLazyGetResourceTypesQuery,
55779
55740
  useLazyGetSubscriptionActionsQuery,
55780
55741
  useLazyGetSubscriptionListQuery,
55742
+ useLazyGetSurfSubscriptionDropdownOptionsQuery,
55781
55743
  useLazyGetTasksQuery,
55782
55744
  useLazyGetWorkflowsQuery,
55783
55745
  useLazyStreamMessagesQuery,