@orchestrator-ui/orchestrator-ui-components 6.7.4 → 6.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +9 -9
- package/CHANGELOG.md +8 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +667 -638
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoAgent/WfoAgentChart/WfoAgentLineChart.tsx +2 -0
- package/src/components/WfoAgent/WfoAgentChart/WfoAgentPieChart.tsx +2 -0
- package/src/components/WfoPydanticForm/WfoPydanticForm.tsx +19 -1
- package/src/components/WfoPydanticForm/fields/WfoCallout.tsx +23 -0
- package/src/components/WfoPydanticForm/fields/index.ts +1 -0
- package/src/components/WfoWorkflowSteps/WfoStep/WfoCodeViewSelector.tsx +35 -25
- package/src/configuration/version.ts +1 -1
- package/src/messages/en-GB.json +1 -1
- package/src/messages/nl-NL.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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 =
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
function
|
|
15307
|
+
module.exports = jsx311;
|
|
15308
|
+
jsx311.displayName = "jsx";
|
|
15309
|
+
jsx311.aliases = [];
|
|
15310
|
+
function jsx311(Prism) {
|
|
15311
15311
|
;
|
|
15312
15312
|
(function(Prism2) {
|
|
15313
15313
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -26801,7 +26801,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26801
26801
|
})(PolicyResource || {});
|
|
26802
26802
|
|
|
26803
26803
|
// src/configuration/version.ts
|
|
26804
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "6.7.
|
|
26804
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "6.7.5";
|
|
26805
26805
|
|
|
26806
26806
|
// src/types/types.ts
|
|
26807
26807
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -51196,7 +51196,7 @@ var WfoProcessDetailPage = ({
|
|
|
51196
51196
|
};
|
|
51197
51197
|
|
|
51198
51198
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
51199
|
-
import { useCallback as useCallback12, useEffect as useEffect32, useMemo as useMemo6, useState as
|
|
51199
|
+
import { useCallback as useCallback12, useEffect as useEffect32, useMemo as useMemo6, useState as useState52 } from "react";
|
|
51200
51200
|
import { useTranslations as useTranslations72 } from "next-intl";
|
|
51201
51201
|
import { useRouter as useRouter10 } from "next/router";
|
|
51202
51202
|
import {
|
|
@@ -52656,8 +52656,18 @@ var getDataTestId = (base, title) => {
|
|
|
52656
52656
|
return `${dataTestId}-${generateRandomString}`;
|
|
52657
52657
|
};
|
|
52658
52658
|
|
|
52659
|
-
// src/components/WfoPydanticForm/
|
|
52659
|
+
// src/components/WfoPydanticForm/fields/WfoCallout.tsx
|
|
52660
|
+
import { EuiCallOut as EuiCallOut3 } from "@elastic/eui";
|
|
52660
52661
|
import { jsx as jsx227 } from "@emotion/react/jsx-runtime";
|
|
52662
|
+
var CALLOUT_COLORS = ["primary", "success", "warning", "danger", "accent"];
|
|
52663
|
+
var WfoCallout = ({ pydanticFormField }) => {
|
|
52664
|
+
const { header, message, icon_type, message_type } = pydanticFormField.default;
|
|
52665
|
+
const color = CALLOUT_COLORS.includes(message_type) ? message_type : "primary";
|
|
52666
|
+
return /* @__PURE__ */ jsx227("div", { "data-testid": pydanticFormField.id, css: { marginBottom: "2rem" }, children: /* @__PURE__ */ jsx227(EuiCallOut3, { title: header, iconType: icon_type, color, children: /* @__PURE__ */ jsx227("p", { children: message }) }) });
|
|
52667
|
+
};
|
|
52668
|
+
|
|
52669
|
+
// src/components/WfoPydanticForm/WfoPydanticForm.tsx
|
|
52670
|
+
import { jsx as jsx228 } from "@emotion/react/jsx-runtime";
|
|
52661
52671
|
var useWfoPydanticFormConfig = () => {
|
|
52662
52672
|
const componentMatcherExtender = useAppSelector(
|
|
52663
52673
|
(state) => state.pydanticForm?.componentMatcherExtender
|
|
@@ -52770,6 +52780,16 @@ var useWfoPydanticFormConfig = () => {
|
|
|
52770
52780
|
},
|
|
52771
52781
|
validator: zodValidationPresets.multiSelect
|
|
52772
52782
|
},
|
|
52783
|
+
{
|
|
52784
|
+
id: "callout",
|
|
52785
|
+
ElementMatch: {
|
|
52786
|
+
isControlledElement: false,
|
|
52787
|
+
Element: WfoCallout
|
|
52788
|
+
},
|
|
52789
|
+
matcher: ({ type, format }) => {
|
|
52790
|
+
return type === PydanticFormFieldType.STRING && format === "callout";
|
|
52791
|
+
}
|
|
52792
|
+
},
|
|
52773
52793
|
...currentMatchers.filter((matcher) => matcher.id !== "text").filter((matcher) => matcher.id !== "array").filter((matcher) => matcher.id !== "object"),
|
|
52774
52794
|
{
|
|
52775
52795
|
id: "object",
|
|
@@ -52895,7 +52915,7 @@ var WfoPydanticForm = ({
|
|
|
52895
52915
|
labelProvider: pydanticLabelProvider,
|
|
52896
52916
|
rowRenderer: Row,
|
|
52897
52917
|
customTranslations,
|
|
52898
|
-
loadingComponent: /* @__PURE__ */
|
|
52918
|
+
loadingComponent: /* @__PURE__ */ jsx228(WfoLoading, {}),
|
|
52899
52919
|
locale: getLocale()
|
|
52900
52920
|
};
|
|
52901
52921
|
}, [
|
|
@@ -52905,7 +52925,7 @@ var WfoPydanticForm = ({
|
|
|
52905
52925
|
router.locale,
|
|
52906
52926
|
wfoComponentMatcherExtender
|
|
52907
52927
|
]);
|
|
52908
|
-
return /* @__PURE__ */
|
|
52928
|
+
return /* @__PURE__ */ jsx228(
|
|
52909
52929
|
PydanticForm2,
|
|
52910
52930
|
{
|
|
52911
52931
|
formKey: processName,
|
|
@@ -52918,14 +52938,14 @@ var WfoPydanticForm = ({
|
|
|
52918
52938
|
};
|
|
52919
52939
|
|
|
52920
52940
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
52921
|
-
import React75, { useCallback as useCallback10, useState as
|
|
52941
|
+
import React75, { useCallback as useCallback10, useState as useState48 } from "react";
|
|
52922
52942
|
import { useTranslations as useTranslations67 } from "next-intl";
|
|
52923
52943
|
import { EuiFlexGroup as EuiFlexGroup23, EuiFlexItem as EuiFlexItem28, EuiPanel as EuiPanel4, EuiText as EuiText38 } from "@elastic/eui";
|
|
52924
52944
|
|
|
52925
52945
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepFormOld.tsx
|
|
52926
52946
|
import { useState as useState46 } from "react";
|
|
52927
52947
|
import { EuiFlexItem as EuiFlexItem25 } from "@elastic/eui";
|
|
52928
|
-
import { jsx as
|
|
52948
|
+
import { jsx as jsx229 } from "@emotion/react/jsx-runtime";
|
|
52929
52949
|
var WfoStepFormOld = ({
|
|
52930
52950
|
userInputForm,
|
|
52931
52951
|
isTask,
|
|
@@ -52954,7 +52974,7 @@ var WfoStepFormOld = ({
|
|
|
52954
52974
|
}
|
|
52955
52975
|
});
|
|
52956
52976
|
};
|
|
52957
|
-
return /* @__PURE__ */
|
|
52977
|
+
return /* @__PURE__ */ jsx229(EuiFlexItem25, { css: { margin: theme.size.m }, children: hasError && /* @__PURE__ */ jsx229(WfoError, {}) || isProcessing && /* @__PURE__ */ jsx229(WfoLoading, {}) || /* @__PURE__ */ jsx229(
|
|
52958
52978
|
UserInputFormWizard,
|
|
52959
52979
|
{
|
|
52960
52980
|
stepUserInput: userInputForm,
|
|
@@ -53079,26 +53099,26 @@ var getWorkflowStepsStyles = ({
|
|
|
53079
53099
|
};
|
|
53080
53100
|
|
|
53081
53101
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
53082
|
-
import { jsx as
|
|
53102
|
+
import { jsx as jsx230, jsxs as jsxs117 } from "@emotion/react/jsx-runtime";
|
|
53083
53103
|
var SubIcon = ({ stepStatus, color = "" }) => {
|
|
53084
53104
|
switch (stepStatus) {
|
|
53085
53105
|
case "suspend" /* SUSPEND */:
|
|
53086
|
-
return /* @__PURE__ */
|
|
53106
|
+
return /* @__PURE__ */ jsx230(WfoMinusCircleFill, { color });
|
|
53087
53107
|
case "failed" /* FAILED */:
|
|
53088
|
-
return /* @__PURE__ */
|
|
53108
|
+
return /* @__PURE__ */ jsx230(WfoXCircleFill, { color });
|
|
53089
53109
|
default:
|
|
53090
|
-
return /* @__PURE__ */
|
|
53110
|
+
return /* @__PURE__ */ jsx230(WfoCheckmarkCircleFill, { color });
|
|
53091
53111
|
}
|
|
53092
53112
|
};
|
|
53093
53113
|
var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
|
|
53094
53114
|
if (isStartStep) {
|
|
53095
|
-
return /* @__PURE__ */
|
|
53115
|
+
return /* @__PURE__ */ jsx230(WfoPlayFill, { color });
|
|
53096
53116
|
}
|
|
53097
53117
|
switch (stepStatus) {
|
|
53098
53118
|
case "form" /* FORM */:
|
|
53099
|
-
return /* @__PURE__ */
|
|
53119
|
+
return /* @__PURE__ */ jsx230(WfoPencilAlt, { color });
|
|
53100
53120
|
default:
|
|
53101
|
-
return /* @__PURE__ */
|
|
53121
|
+
return /* @__PURE__ */ jsx230(WfoCogFill, { color, width: 16, height: 16 });
|
|
53102
53122
|
}
|
|
53103
53123
|
};
|
|
53104
53124
|
var WfoStepStatusIcon = ({
|
|
@@ -53154,7 +53174,7 @@ var WfoStepStatusIcon = ({
|
|
|
53154
53174
|
}
|
|
53155
53175
|
})();
|
|
53156
53176
|
return /* @__PURE__ */ jsxs117(EuiFlexItem26, { css: { flexDirection: "row" }, grow: 0, children: [
|
|
53157
|
-
/* @__PURE__ */
|
|
53177
|
+
/* @__PURE__ */ jsx230("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx230(
|
|
53158
53178
|
MainIcon,
|
|
53159
53179
|
{
|
|
53160
53180
|
color: mainIconColor,
|
|
@@ -53162,7 +53182,7 @@ var WfoStepStatusIcon = ({
|
|
|
53162
53182
|
isStartStep
|
|
53163
53183
|
}
|
|
53164
53184
|
) }),
|
|
53165
|
-
/* @__PURE__ */
|
|
53185
|
+
/* @__PURE__ */ jsx230(
|
|
53166
53186
|
"div",
|
|
53167
53187
|
{
|
|
53168
53188
|
css: {
|
|
@@ -53170,7 +53190,7 @@ var WfoStepStatusIcon = ({
|
|
|
53170
53190
|
width: `${theme.base}`,
|
|
53171
53191
|
visibility: hasSubIcon ? "visible" : "hidden"
|
|
53172
53192
|
},
|
|
53173
|
-
children: /* @__PURE__ */
|
|
53193
|
+
children: /* @__PURE__ */ jsx230(SubIcon, { color: subIconColor, stepStatus })
|
|
53174
53194
|
}
|
|
53175
53195
|
)
|
|
53176
53196
|
] });
|
|
@@ -53199,10 +53219,10 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
53199
53219
|
};
|
|
53200
53220
|
|
|
53201
53221
|
// src/components/WfoWorkflowSteps/WfoStep/WfoCodeViewSelector.tsx
|
|
53202
|
-
import { useCallback as useCallback8 } from "react";
|
|
53222
|
+
import { useCallback as useCallback8, useState as useState47 } from "react";
|
|
53203
53223
|
import { useTranslations as useTranslations65 } from "next-intl";
|
|
53204
53224
|
import { EuiButtonGroup as EuiButtonGroup2 } from "@elastic/eui";
|
|
53205
|
-
import { jsx as
|
|
53225
|
+
import { jsx as jsx231 } from "@emotion/react/jsx-runtime";
|
|
53206
53226
|
var WfoCodeViewSelector = ({
|
|
53207
53227
|
codeView,
|
|
53208
53228
|
handleCodeViewChange
|
|
@@ -53210,18 +53230,20 @@ var WfoCodeViewSelector = ({
|
|
|
53210
53230
|
const t = useTranslations65("processes.steps");
|
|
53211
53231
|
const { theme, toSecondaryColor } = useOrchestratorTheme();
|
|
53212
53232
|
const isSelected = (buttonView) => buttonView === codeView;
|
|
53233
|
+
const [showTooltips, setShowTooltips] = useState47(true);
|
|
53213
53234
|
const codeViewOptions = [
|
|
53214
53235
|
{
|
|
53215
53236
|
id: "json" /* JSON */,
|
|
53216
53237
|
label: t("codeView.json"),
|
|
53217
|
-
|
|
53238
|
+
onMouseLeave: () => setShowTooltips(true),
|
|
53239
|
+
iconType: () => /* @__PURE__ */ jsx231("div", { onClick: () => setShowTooltips(false), children: /* @__PURE__ */ jsx231(
|
|
53218
53240
|
WfoBracketSquare,
|
|
53219
53241
|
{
|
|
53220
53242
|
color: isSelected("json" /* JSON */) ? theme.colors.ghost : theme.colors.textPrimary
|
|
53221
53243
|
}
|
|
53222
|
-
),
|
|
53244
|
+
) }),
|
|
53223
53245
|
"data-test-id": "jsonCodeViewButton",
|
|
53224
|
-
toolTipContent: t("codeView.json"),
|
|
53246
|
+
toolTipContent: showTooltips ? t("codeView.json") : void 0,
|
|
53225
53247
|
style: {
|
|
53226
53248
|
backgroundColor: isSelected("json" /* JSON */) ? theme.colors.textPrimary : toSecondaryColor(theme.colors.primary)
|
|
53227
53249
|
}
|
|
@@ -53229,14 +53251,15 @@ var WfoCodeViewSelector = ({
|
|
|
53229
53251
|
{
|
|
53230
53252
|
id: "table" /* TABLE */,
|
|
53231
53253
|
label: t("codeView.table"),
|
|
53232
|
-
|
|
53254
|
+
onMouseLeave: () => setShowTooltips(true),
|
|
53255
|
+
iconType: () => /* @__PURE__ */ jsx231("div", { onClick: () => setShowTooltips(false), children: /* @__PURE__ */ jsx231(
|
|
53233
53256
|
WfoTableCells,
|
|
53234
53257
|
{
|
|
53235
53258
|
color: isSelected("table" /* TABLE */) ? theme.colors.ghost : theme.colors.textPrimary
|
|
53236
53259
|
}
|
|
53237
|
-
),
|
|
53260
|
+
) }),
|
|
53238
53261
|
"data-test-id": "tableCodeViewButton",
|
|
53239
|
-
toolTipContent: t("codeView.table"),
|
|
53262
|
+
toolTipContent: showTooltips ? t("codeView.table") : void 0,
|
|
53240
53263
|
style: {
|
|
53241
53264
|
backgroundColor: isSelected("table" /* TABLE */) ? theme.colors.textPrimary : toSecondaryColor(theme.colors.primary)
|
|
53242
53265
|
}
|
|
@@ -53244,14 +53267,15 @@ var WfoCodeViewSelector = ({
|
|
|
53244
53267
|
{
|
|
53245
53268
|
id: "raw" /* RAW */,
|
|
53246
53269
|
label: t("codeView.raw"),
|
|
53247
|
-
|
|
53270
|
+
onMouseLeave: () => setShowTooltips(true),
|
|
53271
|
+
iconType: () => /* @__PURE__ */ jsx231("div", { onClick: () => setShowTooltips(false), children: /* @__PURE__ */ jsx231(
|
|
53248
53272
|
WfoCommandLine,
|
|
53249
53273
|
{
|
|
53250
53274
|
color: isSelected("raw" /* RAW */) ? theme.colors.ghost : theme.colors.textPrimary
|
|
53251
53275
|
}
|
|
53252
|
-
),
|
|
53276
|
+
) }),
|
|
53253
53277
|
"data-test-id": "rawCodeViewButton",
|
|
53254
|
-
toolTipContent: t("codeView.raw"),
|
|
53278
|
+
toolTipContent: showTooltips ? t("codeView.raw") : void 0,
|
|
53255
53279
|
style: {
|
|
53256
53280
|
backgroundColor: isSelected("raw" /* RAW */) ? theme.colors.textPrimary : toSecondaryColor(theme.colors.primary)
|
|
53257
53281
|
}
|
|
@@ -53261,7 +53285,7 @@ var WfoCodeViewSelector = ({
|
|
|
53261
53285
|
(id) => handleCodeViewChange(id),
|
|
53262
53286
|
[handleCodeViewChange]
|
|
53263
53287
|
);
|
|
53264
|
-
return /* @__PURE__ */
|
|
53288
|
+
return /* @__PURE__ */ jsx231(
|
|
53265
53289
|
EuiButtonGroup2,
|
|
53266
53290
|
{
|
|
53267
53291
|
style: {
|
|
@@ -53289,7 +53313,7 @@ import { EuiFlexItem as EuiFlexItem27 } from "@elastic/eui";
|
|
|
53289
53313
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepFormFooter.tsx
|
|
53290
53314
|
import { useTranslations as useTranslations66 } from "next-intl";
|
|
53291
53315
|
import { EuiButton as EuiButton13, EuiHorizontalRule as EuiHorizontalRule8 } from "@elastic/eui";
|
|
53292
|
-
import { jsx as
|
|
53316
|
+
import { jsx as jsx232, jsxs as jsxs118 } from "@emotion/react/jsx-runtime";
|
|
53293
53317
|
var StepFormFooter = ({
|
|
53294
53318
|
isTask,
|
|
53295
53319
|
isResumeAllowed
|
|
@@ -53297,7 +53321,7 @@ var StepFormFooter = ({
|
|
|
53297
53321
|
const t = useTranslations66("pydanticForms.userInputForm");
|
|
53298
53322
|
const SubmitButton = () => {
|
|
53299
53323
|
const submitButtonLabel = isTask ? t("resumeTask") : t("resumeWorkflow");
|
|
53300
|
-
return /* @__PURE__ */
|
|
53324
|
+
return /* @__PURE__ */ jsx232(
|
|
53301
53325
|
EuiButton13,
|
|
53302
53326
|
{
|
|
53303
53327
|
"data-testid": "button-submit-form-submit",
|
|
@@ -53305,7 +53329,7 @@ var StepFormFooter = ({
|
|
|
53305
53329
|
tabIndex: 0,
|
|
53306
53330
|
fill: true,
|
|
53307
53331
|
color: "primary",
|
|
53308
|
-
iconType: () => /* @__PURE__ */
|
|
53332
|
+
iconType: () => /* @__PURE__ */ jsx232(
|
|
53309
53333
|
WfoPlayCircle,
|
|
53310
53334
|
{
|
|
53311
53335
|
color: "currentColor",
|
|
@@ -53322,14 +53346,14 @@ var StepFormFooter = ({
|
|
|
53322
53346
|
);
|
|
53323
53347
|
};
|
|
53324
53348
|
return /* @__PURE__ */ jsxs118("div", { "data-testid": "pydantic-step-form-footer", children: [
|
|
53325
|
-
/* @__PURE__ */
|
|
53326
|
-
/* @__PURE__ */
|
|
53327
|
-
/* @__PURE__ */
|
|
53349
|
+
/* @__PURE__ */ jsx232(RenderFormErrors, {}),
|
|
53350
|
+
/* @__PURE__ */ jsx232(EuiHorizontalRule8, {}),
|
|
53351
|
+
/* @__PURE__ */ jsx232("div", { style: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx232(SubmitButton, {}) })
|
|
53328
53352
|
] });
|
|
53329
53353
|
};
|
|
53330
53354
|
|
|
53331
53355
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
|
|
53332
|
-
import { jsx as
|
|
53356
|
+
import { jsx as jsx233 } from "@emotion/react/jsx-runtime";
|
|
53333
53357
|
var WfoStepForm = ({
|
|
53334
53358
|
userInputForm,
|
|
53335
53359
|
isTask,
|
|
@@ -53368,14 +53392,14 @@ var WfoStepForm = ({
|
|
|
53368
53392
|
},
|
|
53369
53393
|
[getInitialStepInput, processId, resumeProcess]
|
|
53370
53394
|
);
|
|
53371
|
-
return /* @__PURE__ */
|
|
53395
|
+
return /* @__PURE__ */ jsx233(EuiFlexItem27, { css: { margin: theme.size.m }, children: /* @__PURE__ */ jsx233(
|
|
53372
53396
|
PydanticForm3,
|
|
53373
53397
|
{
|
|
53374
53398
|
formKey: processId,
|
|
53375
53399
|
formId: "wfo-step-form",
|
|
53376
53400
|
config: {
|
|
53377
53401
|
apiProvider: getStepFormProvider(),
|
|
53378
|
-
footerRenderer: () => /* @__PURE__ */
|
|
53402
|
+
footerRenderer: () => /* @__PURE__ */ jsx233(
|
|
53379
53403
|
StepFormFooter,
|
|
53380
53404
|
{
|
|
53381
53405
|
isTask,
|
|
@@ -53393,7 +53417,7 @@ var WfoStepForm = ({
|
|
|
53393
53417
|
};
|
|
53394
53418
|
|
|
53395
53419
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
53396
|
-
import { Fragment as Fragment53, jsx as
|
|
53420
|
+
import { Fragment as Fragment53, jsx as jsx234, jsxs as jsxs119 } from "@emotion/react/jsx-runtime";
|
|
53397
53421
|
var WfoStep = React75.forwardRef(
|
|
53398
53422
|
({
|
|
53399
53423
|
stepListItem,
|
|
@@ -53409,7 +53433,7 @@ var WfoStep = React75.forwardRef(
|
|
|
53409
53433
|
const config = useGetOrchestratorConfig();
|
|
53410
53434
|
const usePydanticForms = config.activatePydanticForms ?? false;
|
|
53411
53435
|
const { isExpanded, step, userInputForm } = stepListItem;
|
|
53412
|
-
const [codeView, setCodeView] =
|
|
53436
|
+
const [codeView, setCodeView] = useState48("json" /* JSON */);
|
|
53413
53437
|
const { theme } = useOrchestratorTheme();
|
|
53414
53438
|
const {
|
|
53415
53439
|
stepEmailContainerStyle,
|
|
@@ -53432,28 +53456,28 @@ var WfoStep = React75.forwardRef(
|
|
|
53432
53456
|
return "";
|
|
53433
53457
|
}
|
|
53434
53458
|
return /* @__PURE__ */ jsxs119(EuiText38, { size: "s", children: [
|
|
53435
|
-
/* @__PURE__ */
|
|
53436
|
-
/* @__PURE__ */
|
|
53459
|
+
/* @__PURE__ */ jsx234("h4", { children: "To" }),
|
|
53460
|
+
/* @__PURE__ */ jsx234("p", { children: value.to.map(
|
|
53437
53461
|
(v, i) => /* @__PURE__ */ jsxs119("div", { children: [
|
|
53438
53462
|
v.name,
|
|
53439
53463
|
" <",
|
|
53440
|
-
/* @__PURE__ */
|
|
53464
|
+
/* @__PURE__ */ jsx234("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
53441
53465
|
">"
|
|
53442
53466
|
] }, `to-${i}`)
|
|
53443
53467
|
) }),
|
|
53444
|
-
/* @__PURE__ */
|
|
53445
|
-
/* @__PURE__ */
|
|
53468
|
+
/* @__PURE__ */ jsx234("h4", { children: "CC" }),
|
|
53469
|
+
/* @__PURE__ */ jsx234("p", { children: value.cc.map(
|
|
53446
53470
|
(v, i) => /* @__PURE__ */ jsxs119("div", { children: [
|
|
53447
53471
|
v.name,
|
|
53448
53472
|
" <",
|
|
53449
|
-
/* @__PURE__ */
|
|
53473
|
+
/* @__PURE__ */ jsx234("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
53450
53474
|
">"
|
|
53451
53475
|
] }, `cc-${i}`)
|
|
53452
53476
|
) }),
|
|
53453
|
-
/* @__PURE__ */
|
|
53454
|
-
/* @__PURE__ */
|
|
53455
|
-
/* @__PURE__ */
|
|
53456
|
-
/* @__PURE__ */
|
|
53477
|
+
/* @__PURE__ */ jsx234("h4", { children: "Subject" }),
|
|
53478
|
+
/* @__PURE__ */ jsx234("p", { children: value.subject }),
|
|
53479
|
+
/* @__PURE__ */ jsx234("h4", { children: "Message" }),
|
|
53480
|
+
/* @__PURE__ */ jsx234(
|
|
53457
53481
|
"div",
|
|
53458
53482
|
{
|
|
53459
53483
|
className: "emailMessage",
|
|
@@ -53468,14 +53492,14 @@ var WfoStep = React75.forwardRef(
|
|
|
53468
53492
|
},
|
|
53469
53493
|
[setCodeView]
|
|
53470
53494
|
);
|
|
53471
|
-
return /* @__PURE__ */
|
|
53495
|
+
return /* @__PURE__ */ jsx234("div", { ref, children: /* @__PURE__ */ jsxs119(EuiPanel4, { children: [
|
|
53472
53496
|
/* @__PURE__ */ jsxs119(
|
|
53473
53497
|
EuiFlexGroup23,
|
|
53474
53498
|
{
|
|
53475
53499
|
css: getStepHeaderStyle(hasStepContent),
|
|
53476
53500
|
onClick: () => hasStepContent && onToggleStepDetail(),
|
|
53477
53501
|
children: [
|
|
53478
|
-
/* @__PURE__ */
|
|
53502
|
+
/* @__PURE__ */ jsx234(
|
|
53479
53503
|
WfoStepStatusIcon,
|
|
53480
53504
|
{
|
|
53481
53505
|
stepStatus: step.status,
|
|
@@ -53483,15 +53507,15 @@ var WfoStep = React75.forwardRef(
|
|
|
53483
53507
|
}
|
|
53484
53508
|
),
|
|
53485
53509
|
/* @__PURE__ */ jsxs119(EuiFlexItem28, { grow: 0, children: [
|
|
53486
|
-
/* @__PURE__ */
|
|
53510
|
+
/* @__PURE__ */ jsx234(EuiText38, { css: stepListContentBoldTextStyle, children: step.name }),
|
|
53487
53511
|
/* @__PURE__ */ jsxs119(EuiText38, { children: [
|
|
53488
53512
|
step.status,
|
|
53489
53513
|
" ",
|
|
53490
53514
|
step.completed && `- ${formatDate(step.completed)}`
|
|
53491
53515
|
] })
|
|
53492
53516
|
] }),
|
|
53493
|
-
/* @__PURE__ */
|
|
53494
|
-
isExpanded && /* @__PURE__ */
|
|
53517
|
+
/* @__PURE__ */ jsx234(EuiFlexGroup23, { css: stepRowStyle, children: step.completed && /* @__PURE__ */ jsxs119(Fragment53, { children: [
|
|
53518
|
+
isExpanded && /* @__PURE__ */ jsx234(
|
|
53495
53519
|
WfoCodeViewSelector,
|
|
53496
53520
|
{
|
|
53497
53521
|
codeView,
|
|
@@ -53504,27 +53528,27 @@ var WfoStep = React75.forwardRef(
|
|
|
53504
53528
|
grow: 0,
|
|
53505
53529
|
css: stepHeaderRightStyle,
|
|
53506
53530
|
children: [
|
|
53507
|
-
/* @__PURE__ */
|
|
53508
|
-
/* @__PURE__ */
|
|
53531
|
+
/* @__PURE__ */ jsx234(EuiText38, { css: stepDurationStyle, children: t("duration") }),
|
|
53532
|
+
/* @__PURE__ */ jsx234(EuiText38, { size: "m", children: calculateTimeDifference(
|
|
53509
53533
|
startedAt,
|
|
53510
53534
|
completedAt
|
|
53511
53535
|
) })
|
|
53512
53536
|
]
|
|
53513
53537
|
}
|
|
53514
53538
|
),
|
|
53515
|
-
/* @__PURE__ */
|
|
53539
|
+
/* @__PURE__ */ jsx234(
|
|
53516
53540
|
EuiFlexItem28,
|
|
53517
53541
|
{
|
|
53518
53542
|
grow: 0,
|
|
53519
53543
|
css: getStepToggleExpandStyle(
|
|
53520
53544
|
hasStepContent
|
|
53521
53545
|
),
|
|
53522
|
-
children: isExpanded && /* @__PURE__ */
|
|
53546
|
+
children: isExpanded && /* @__PURE__ */ jsx234(
|
|
53523
53547
|
WfoChevronUp,
|
|
53524
53548
|
{
|
|
53525
53549
|
color: theme.colors.text
|
|
53526
53550
|
}
|
|
53527
|
-
) || /* @__PURE__ */
|
|
53551
|
+
) || /* @__PURE__ */ jsx234(
|
|
53528
53552
|
WfoChevronDown,
|
|
53529
53553
|
{
|
|
53530
53554
|
color: theme.colors.text
|
|
@@ -53536,11 +53560,11 @@ var WfoStep = React75.forwardRef(
|
|
|
53536
53560
|
]
|
|
53537
53561
|
}
|
|
53538
53562
|
),
|
|
53539
|
-
hasStepContent && !hasHtmlMail && isExpanded && (codeView === "table" /* TABLE */ ? /* @__PURE__ */
|
|
53540
|
-
isExpanded && hasHtmlMail && /* @__PURE__ */
|
|
53563
|
+
hasStepContent && !hasHtmlMail && isExpanded && (codeView === "table" /* TABLE */ ? /* @__PURE__ */ jsx234(WfoTableCodeBlock, { stepState: stepContent }) : codeView === "raw" /* RAW */ ? /* @__PURE__ */ jsx234(WfoJsonCodeBlock, { data: stepContent }) : /* @__PURE__ */ jsx234(WfoMonacoCodeBlock, { data: stepContent })),
|
|
53564
|
+
isExpanded && hasHtmlMail && /* @__PURE__ */ jsx234("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
|
|
53541
53565
|
step.stateDelta.confirmation_mail
|
|
53542
53566
|
) }),
|
|
53543
|
-
step.status === "suspend" /* SUSPEND */ && userInputForm && (usePydanticForms ? /* @__PURE__ */
|
|
53567
|
+
step.status === "suspend" /* SUSPEND */ && userInputForm && (usePydanticForms ? /* @__PURE__ */ jsx234(
|
|
53544
53568
|
WfoStepForm,
|
|
53545
53569
|
{
|
|
53546
53570
|
userInputForm,
|
|
@@ -53548,7 +53572,7 @@ var WfoStep = React75.forwardRef(
|
|
|
53548
53572
|
processId: processId ?? "",
|
|
53549
53573
|
userPermissions
|
|
53550
53574
|
}
|
|
53551
|
-
) : /* @__PURE__ */
|
|
53575
|
+
) : /* @__PURE__ */ jsx234(
|
|
53552
53576
|
WfoStepFormOld,
|
|
53553
53577
|
{
|
|
53554
53578
|
userInputForm,
|
|
@@ -53564,7 +53588,7 @@ WfoStep.displayName = "WfoStep";
|
|
|
53564
53588
|
|
|
53565
53589
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
53566
53590
|
import React76, { useImperativeHandle as useImperativeHandle2, useRef as useRef11 } from "react";
|
|
53567
|
-
import { Fragment as Fragment54, jsx as
|
|
53591
|
+
import { Fragment as Fragment54, jsx as jsx235, jsxs as jsxs120 } from "@emotion/react/jsx-runtime";
|
|
53568
53592
|
var WfoStepList = React76.forwardRef(
|
|
53569
53593
|
({
|
|
53570
53594
|
stepListItems,
|
|
@@ -53620,9 +53644,9 @@ var WfoStepList = React76.forwardRef(
|
|
|
53620
53644
|
stepReferences.current.delete(stepId);
|
|
53621
53645
|
}
|
|
53622
53646
|
};
|
|
53623
|
-
return /* @__PURE__ */
|
|
53624
|
-
index !== 0 && /* @__PURE__ */
|
|
53625
|
-
/* @__PURE__ */
|
|
53647
|
+
return /* @__PURE__ */ jsx235(Fragment54, { children: stepListItems.map((stepListItem, index) => /* @__PURE__ */ jsxs120("div", { children: [
|
|
53648
|
+
index !== 0 && /* @__PURE__ */ jsx235("div", { css: stepSpacerStyle }),
|
|
53649
|
+
/* @__PURE__ */ jsx235(
|
|
53626
53650
|
WfoStep,
|
|
53627
53651
|
{
|
|
53628
53652
|
ref: getReferenceCallbackForStepId(
|
|
@@ -53645,12 +53669,12 @@ var WfoStepList = React76.forwardRef(
|
|
|
53645
53669
|
WfoStepList.displayName = "WfoStepList";
|
|
53646
53670
|
|
|
53647
53671
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
53648
|
-
import React78, { useEffect as useEffect31, useState as
|
|
53672
|
+
import React78, { useEffect as useEffect31, useState as useState50 } from "react";
|
|
53649
53673
|
import { useTranslations as useTranslations70 } from "next-intl";
|
|
53650
53674
|
|
|
53651
53675
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
53652
53676
|
var refractor = __toESM(require_refractor(), 1);
|
|
53653
|
-
import { useCallback as useCallback11, useEffect as useEffect30, useMemo as useMemo5, useState as
|
|
53677
|
+
import { useCallback as useCallback11, useEffect as useEffect30, useMemo as useMemo5, useState as useState49 } from "react";
|
|
53654
53678
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
53655
53679
|
import "react-diff-view/style/index.css";
|
|
53656
53680
|
import { useTranslations as useTranslations68 } from "next-intl";
|
|
@@ -53701,16 +53725,16 @@ var getWfoDiffStyles = ({
|
|
|
53701
53725
|
};
|
|
53702
53726
|
|
|
53703
53727
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
53704
|
-
import { jsx as
|
|
53728
|
+
import { jsx as jsx236, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
|
|
53705
53729
|
var EMPTY_HUNKS = [];
|
|
53706
53730
|
var SMALL_CONTEXT = 3;
|
|
53707
53731
|
var FULL_CONTEXT = 1e6;
|
|
53708
53732
|
var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
53709
53733
|
const t = useTranslations68("processes.delta");
|
|
53710
|
-
const [showSplit, setShowSplit] =
|
|
53711
|
-
const [showFull, setShowFull] =
|
|
53734
|
+
const [showSplit, setShowSplit] = useState49(true);
|
|
53735
|
+
const [showFull, setShowFull] = useState49(false);
|
|
53712
53736
|
const { diffStyle } = useWithOrchestratorTheme(getWfoDiffStyles);
|
|
53713
|
-
const [{ type, hunks }, setDiff] =
|
|
53737
|
+
const [{ type, hunks }, setDiff] = useState49({
|
|
53714
53738
|
type: "modify",
|
|
53715
53739
|
hunks: []
|
|
53716
53740
|
});
|
|
@@ -53741,8 +53765,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53741
53765
|
}, [updateDiffText, showFull]);
|
|
53742
53766
|
return /* @__PURE__ */ jsxs121("div", { children: [
|
|
53743
53767
|
/* @__PURE__ */ jsxs121(EuiFlexGroup24, { gutterSize: "xs", children: [
|
|
53744
|
-
/* @__PURE__ */
|
|
53745
|
-
/* @__PURE__ */
|
|
53768
|
+
/* @__PURE__ */ jsx236(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx236(EuiText39, { children: /* @__PURE__ */ jsx236("h3", { children: t("title") }) }) }),
|
|
53769
|
+
/* @__PURE__ */ jsx236(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx236(
|
|
53746
53770
|
EuiButtonIcon13,
|
|
53747
53771
|
{
|
|
53748
53772
|
size: "s",
|
|
@@ -53753,7 +53777,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53753
53777
|
)
|
|
53754
53778
|
}
|
|
53755
53779
|
) }),
|
|
53756
|
-
/* @__PURE__ */
|
|
53780
|
+
/* @__PURE__ */ jsx236(EuiFlexItem29, { grow: false, children: /* @__PURE__ */ jsx236(
|
|
53757
53781
|
EuiButtonIcon13,
|
|
53758
53782
|
{
|
|
53759
53783
|
size: "s",
|
|
@@ -53765,8 +53789,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53765
53789
|
}
|
|
53766
53790
|
) })
|
|
53767
53791
|
] }),
|
|
53768
|
-
/* @__PURE__ */
|
|
53769
|
-
/* @__PURE__ */
|
|
53792
|
+
/* @__PURE__ */ jsx236(EuiSpacer21, {}),
|
|
53793
|
+
/* @__PURE__ */ jsx236(
|
|
53770
53794
|
Diff,
|
|
53771
53795
|
{
|
|
53772
53796
|
css: diffStyle,
|
|
@@ -53774,7 +53798,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
53774
53798
|
diffType: type,
|
|
53775
53799
|
hunks: hunks || EMPTY_HUNKS,
|
|
53776
53800
|
tokens,
|
|
53777
|
-
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */
|
|
53801
|
+
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx236(Hunk, { hunk }, hunk.content))
|
|
53778
53802
|
}
|
|
53779
53803
|
)
|
|
53780
53804
|
] });
|
|
@@ -53799,21 +53823,21 @@ var getStyles10 = ({ theme }) => {
|
|
|
53799
53823
|
};
|
|
53800
53824
|
|
|
53801
53825
|
// src/components/WfoWorkflowSteps/WfoTraceback/WfoTraceback.tsx
|
|
53802
|
-
import { Fragment as Fragment55, jsx as
|
|
53826
|
+
import { Fragment as Fragment55, jsx as jsx237, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
|
|
53803
53827
|
var WfoTraceback = ({ children }) => {
|
|
53804
53828
|
const { codeBlockStyle } = useWithOrchestratorTheme(getStyles10);
|
|
53805
53829
|
const t = useTranslations69("processes.steps");
|
|
53806
53830
|
return /* @__PURE__ */ jsxs122(Fragment55, { children: [
|
|
53807
|
-
/* @__PURE__ */
|
|
53808
|
-
/* @__PURE__ */
|
|
53831
|
+
/* @__PURE__ */ jsx237(EuiText40, { children: /* @__PURE__ */ jsx237("h3", { children: t("traceback") }) }),
|
|
53832
|
+
/* @__PURE__ */ jsx237(EuiCodeBlock, { css: codeBlockStyle, children })
|
|
53809
53833
|
] });
|
|
53810
53834
|
};
|
|
53811
53835
|
|
|
53812
53836
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
53813
|
-
import { Fragment as Fragment56, jsx as
|
|
53837
|
+
import { Fragment as Fragment56, jsx as jsx238, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
|
|
53814
53838
|
var WfoProcessRawData = ({ processId }) => {
|
|
53815
53839
|
const { data, isFetching } = useGetRawProcessDetailQuery({ processId });
|
|
53816
|
-
return isFetching ? /* @__PURE__ */
|
|
53840
|
+
return isFetching ? /* @__PURE__ */ jsx238(WfoLoading, {}) : /* @__PURE__ */ jsx238(WfoJsonCodeBlock, { data: data || {} });
|
|
53817
53841
|
};
|
|
53818
53842
|
var WfoProcessSubscriptionDelta = ({
|
|
53819
53843
|
processId
|
|
@@ -53824,7 +53848,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
53824
53848
|
const oldSubscriptions = data?.current_state?.__old_subscriptions__ || {};
|
|
53825
53849
|
const oldSubscription = subscriptionId in oldSubscriptions ? oldSubscriptions[subscriptionId] : null;
|
|
53826
53850
|
const oldText = oldSubscription || null;
|
|
53827
|
-
return isFetching ? /* @__PURE__ */
|
|
53851
|
+
return isFetching ? /* @__PURE__ */ jsx238(WfoLoading, {}) : /* @__PURE__ */ jsx238(
|
|
53828
53852
|
WfoDiff_default,
|
|
53829
53853
|
{
|
|
53830
53854
|
oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
|
|
@@ -53843,16 +53867,16 @@ var WfoWorkflowStepList = React78.forwardRef(
|
|
|
53843
53867
|
userInputForm,
|
|
53844
53868
|
userPermissions
|
|
53845
53869
|
}, reference) => {
|
|
53846
|
-
const [showHiddenKeys, setShowHiddenKeys] =
|
|
53847
|
-
const [showRaw, setShowRaw] =
|
|
53848
|
-
const [showDelta, setShowDelta] =
|
|
53849
|
-
const [showTraceback, setShowTraceback] =
|
|
53870
|
+
const [showHiddenKeys, setShowHiddenKeys] = useState50(false);
|
|
53871
|
+
const [showRaw, setShowRaw] = useState50(false);
|
|
53872
|
+
const [showDelta, setShowDelta] = useState50(false);
|
|
53873
|
+
const [showTraceback, setShowTraceback] = useState50(false);
|
|
53850
53874
|
const t = useTranslations70("processes.steps");
|
|
53851
53875
|
const initialStepListItems = steps.map((step) => ({
|
|
53852
53876
|
step,
|
|
53853
53877
|
isExpanded: false
|
|
53854
53878
|
}));
|
|
53855
|
-
const [stepListItems, setStepListItems] =
|
|
53879
|
+
const [stepListItems, setStepListItems] = useState50(initialStepListItems);
|
|
53856
53880
|
const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
|
|
53857
53881
|
const reversedSteps = [...updatedSteps].reverse();
|
|
53858
53882
|
const lastStepWithSuspendStatusStepId = reversedSteps.find(
|
|
@@ -53908,7 +53932,7 @@ var WfoWorkflowStepList = React78.forwardRef(
|
|
|
53908
53932
|
"completed" /* COMPLETED */
|
|
53909
53933
|
].map((status) => status.toLowerCase()).includes(lastStatus.toLowerCase());
|
|
53910
53934
|
return /* @__PURE__ */ jsxs123(Fragment56, { children: [
|
|
53911
|
-
/* @__PURE__ */
|
|
53935
|
+
/* @__PURE__ */ jsx238(
|
|
53912
53936
|
WfoStepListHeader,
|
|
53913
53937
|
{
|
|
53914
53938
|
showHiddenKeys,
|
|
@@ -53926,10 +53950,10 @@ var WfoWorkflowStepList = React78.forwardRef(
|
|
|
53926
53950
|
isRunningWorkflow
|
|
53927
53951
|
}
|
|
53928
53952
|
),
|
|
53929
|
-
showTraceback && /* @__PURE__ */
|
|
53930
|
-
showRaw && /* @__PURE__ */
|
|
53931
|
-
showDelta && /* @__PURE__ */
|
|
53932
|
-
!showRaw && !showDelta && /* @__PURE__ */
|
|
53953
|
+
showTraceback && /* @__PURE__ */ jsx238(WfoTraceback, { children: traceBack }),
|
|
53954
|
+
showRaw && /* @__PURE__ */ jsx238(WfoProcessRawData, { processId }),
|
|
53955
|
+
showDelta && /* @__PURE__ */ jsx238(WfoProcessSubscriptionDelta, { processId }),
|
|
53956
|
+
!showRaw && !showDelta && /* @__PURE__ */ jsx238(
|
|
53933
53957
|
WfoStepList,
|
|
53934
53958
|
{
|
|
53935
53959
|
ref: reference,
|
|
@@ -53948,7 +53972,7 @@ var WfoWorkflowStepList = React78.forwardRef(
|
|
|
53948
53972
|
WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
|
|
53949
53973
|
|
|
53950
53974
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
53951
|
-
import { useState as
|
|
53975
|
+
import { useState as useState51 } from "react";
|
|
53952
53976
|
import { useTranslations as useTranslations71 } from "next-intl";
|
|
53953
53977
|
import {
|
|
53954
53978
|
EuiButton as EuiButton14,
|
|
@@ -53980,14 +54004,14 @@ var getStyles11 = ({ theme }) => {
|
|
|
53980
54004
|
};
|
|
53981
54005
|
|
|
53982
54006
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
53983
|
-
import { jsx as
|
|
54007
|
+
import { jsx as jsx239 } from "@emotion/react/jsx-runtime";
|
|
53984
54008
|
var WfoTextAnchor = ({ text, onClick }) => {
|
|
53985
54009
|
const { textAnchorStyle } = useWithOrchestratorTheme(getStyles11);
|
|
53986
|
-
return /* @__PURE__ */
|
|
54010
|
+
return /* @__PURE__ */ jsx239(EuiText41, { onClick, css: textAnchorStyle, children: text });
|
|
53987
54011
|
};
|
|
53988
54012
|
|
|
53989
54013
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
53990
|
-
import { jsx as
|
|
54014
|
+
import { jsx as jsx240, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
|
|
53991
54015
|
var WfoStepListHeader = ({
|
|
53992
54016
|
allDetailToggleText,
|
|
53993
54017
|
showDelta,
|
|
@@ -54011,14 +54035,14 @@ var WfoStepListHeader = ({
|
|
|
54011
54035
|
stepListContentBoldTextStyle,
|
|
54012
54036
|
stepListOptionsContainerStyle
|
|
54013
54037
|
} = useWithOrchestratorTheme(getWorkflowStepsStyles);
|
|
54014
|
-
const [isViewOptionOpen, setIsViewOptionOpen] =
|
|
54038
|
+
const [isViewOptionOpen, setIsViewOptionOpen] = useState51(false);
|
|
54015
54039
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
54016
54040
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
54017
|
-
const viewOptionButton = /* @__PURE__ */
|
|
54041
|
+
const viewOptionButton = /* @__PURE__ */ jsx240(
|
|
54018
54042
|
EuiButton14,
|
|
54019
54043
|
{
|
|
54020
54044
|
onClick: onViewOptionClick,
|
|
54021
|
-
iconType: () => /* @__PURE__ */
|
|
54045
|
+
iconType: () => /* @__PURE__ */ jsx240(WfoEyeFill, { color: theme.colors.link }),
|
|
54022
54046
|
iconSide: "right",
|
|
54023
54047
|
size: "s",
|
|
54024
54048
|
children: t("viewOptions")
|
|
@@ -54026,8 +54050,8 @@ var WfoStepListHeader = ({
|
|
|
54026
54050
|
);
|
|
54027
54051
|
return /* @__PURE__ */ jsxs124(EuiFlexGroup25, { css: stepListHeaderStyle, children: [
|
|
54028
54052
|
/* @__PURE__ */ jsxs124(EuiFlexGroup25, { css: stepListContentStyle, children: [
|
|
54029
|
-
/* @__PURE__ */
|
|
54030
|
-
!showRaw && /* @__PURE__ */
|
|
54053
|
+
/* @__PURE__ */ jsx240(EuiText42, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
54054
|
+
!showRaw && /* @__PURE__ */ jsx240(
|
|
54031
54055
|
WfoTextAnchor,
|
|
54032
54056
|
{
|
|
54033
54057
|
text: allDetailToggleText,
|
|
@@ -54043,7 +54067,7 @@ var WfoStepListHeader = ({
|
|
|
54043
54067
|
css: stepListOptionsContainerStyle,
|
|
54044
54068
|
gutterSize: "s",
|
|
54045
54069
|
children: [
|
|
54046
|
-
showTracebackButton && /* @__PURE__ */
|
|
54070
|
+
showTracebackButton && /* @__PURE__ */ jsx240(
|
|
54047
54071
|
EuiButton14,
|
|
54048
54072
|
{
|
|
54049
54073
|
onClick: () => onShowTraceback(!showTraceback),
|
|
@@ -54051,14 +54075,14 @@ var WfoStepListHeader = ({
|
|
|
54051
54075
|
children: showTraceback ? t("hideTraceback") : t("showTraceback")
|
|
54052
54076
|
}
|
|
54053
54077
|
),
|
|
54054
|
-
/* @__PURE__ */
|
|
54078
|
+
/* @__PURE__ */ jsx240(
|
|
54055
54079
|
EuiButton14,
|
|
54056
54080
|
{
|
|
54057
54081
|
onClick: () => onChangeShowDelta(!showDelta),
|
|
54058
54082
|
disabled: isRunningWorkflow,
|
|
54059
54083
|
iconSide: "right",
|
|
54060
54084
|
size: "s",
|
|
54061
|
-
iconType: () => /* @__PURE__ */
|
|
54085
|
+
iconType: () => /* @__PURE__ */ jsx240(
|
|
54062
54086
|
WfoCode,
|
|
54063
54087
|
{
|
|
54064
54088
|
color: isRunningWorkflow ? theme.colors.disabledText : theme.colors.link
|
|
@@ -54067,15 +54091,15 @@ var WfoStepListHeader = ({
|
|
|
54067
54091
|
children: showDelta ? t("hideDelta") : t("showDelta")
|
|
54068
54092
|
}
|
|
54069
54093
|
),
|
|
54070
|
-
/* @__PURE__ */
|
|
54094
|
+
/* @__PURE__ */ jsx240(
|
|
54071
54095
|
EuiPopover8,
|
|
54072
54096
|
{
|
|
54073
54097
|
button: viewOptionButton,
|
|
54074
54098
|
isOpen: isViewOptionOpen,
|
|
54075
54099
|
closePopover: closeViewOption,
|
|
54076
54100
|
display: "block",
|
|
54077
|
-
children: /* @__PURE__ */
|
|
54078
|
-
/* @__PURE__ */
|
|
54101
|
+
children: /* @__PURE__ */ jsx240("div", { children: /* @__PURE__ */ jsxs124(EuiForm3, { component: "form", children: [
|
|
54102
|
+
/* @__PURE__ */ jsx240(EuiFormRow23, { children: /* @__PURE__ */ jsx240(
|
|
54079
54103
|
EuiSwitch3,
|
|
54080
54104
|
{
|
|
54081
54105
|
label: "Hidden keys",
|
|
@@ -54088,7 +54112,7 @@ var WfoStepListHeader = ({
|
|
|
54088
54112
|
}
|
|
54089
54113
|
}
|
|
54090
54114
|
) }),
|
|
54091
|
-
/* @__PURE__ */
|
|
54115
|
+
/* @__PURE__ */ jsx240(EuiFormRow23, { children: /* @__PURE__ */ jsx240(
|
|
54092
54116
|
EuiSwitch3,
|
|
54093
54117
|
{
|
|
54094
54118
|
label: "Raw JSON data",
|
|
@@ -54109,7 +54133,7 @@ var WfoStepListHeader = ({
|
|
|
54109
54133
|
};
|
|
54110
54134
|
|
|
54111
54135
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
54112
|
-
import { jsx as
|
|
54136
|
+
import { jsx as jsx241, jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
|
|
54113
54137
|
var getInitialProcessPayload = ({
|
|
54114
54138
|
productId,
|
|
54115
54139
|
subscriptionId
|
|
@@ -54133,9 +54157,9 @@ var WfoStartProcessPage = ({
|
|
|
54133
54157
|
const usePydanticForms = config.activatePydanticForms ?? false;
|
|
54134
54158
|
const t = useTranslations72("processes.steps");
|
|
54135
54159
|
const router = useRouter10();
|
|
54136
|
-
const [hasError, setHasError] =
|
|
54160
|
+
const [hasError, setHasError] = useState52(false);
|
|
54137
54161
|
const { theme } = useOrchestratorTheme();
|
|
54138
|
-
const [form, setForm] =
|
|
54162
|
+
const [form, setForm] = useState52({});
|
|
54139
54163
|
const { productId, subscriptionId } = router.query;
|
|
54140
54164
|
const {
|
|
54141
54165
|
data: subscriptionDetail,
|
|
@@ -54246,7 +54270,7 @@ var WfoStartProcessPage = ({
|
|
|
54246
54270
|
}
|
|
54247
54271
|
};
|
|
54248
54272
|
const pageTitle = workflowMetadata?.description || isErrorWorkflowDescription && processDetail?.workflowName || "";
|
|
54249
|
-
return /* @__PURE__ */
|
|
54273
|
+
return /* @__PURE__ */ jsx241(
|
|
54250
54274
|
WfoProcessDetail,
|
|
54251
54275
|
{
|
|
54252
54276
|
pageTitle,
|
|
@@ -54257,23 +54281,23 @@ var WfoStartProcessPage = ({
|
|
|
54257
54281
|
isLoading,
|
|
54258
54282
|
children: /* @__PURE__ */ jsxs125(EuiPanel5, { css: { marginTop: theme.base * 3 }, children: [
|
|
54259
54283
|
/* @__PURE__ */ jsxs125(EuiFlexGroup26, { css: getStepHeaderStyle(false), children: [
|
|
54260
|
-
/* @__PURE__ */
|
|
54284
|
+
/* @__PURE__ */ jsx241(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
54261
54285
|
/* @__PURE__ */ jsxs125(EuiFlexItem30, { grow: 0, children: [
|
|
54262
|
-
/* @__PURE__ */
|
|
54263
|
-
/* @__PURE__ */
|
|
54286
|
+
/* @__PURE__ */ jsx241(EuiText43, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
54287
|
+
/* @__PURE__ */ jsx241(EuiText43, { children: t(
|
|
54264
54288
|
isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
|
|
54265
54289
|
) })
|
|
54266
54290
|
] })
|
|
54267
54291
|
] }),
|
|
54268
|
-
/* @__PURE__ */
|
|
54269
|
-
hasError && /* @__PURE__ */
|
|
54292
|
+
/* @__PURE__ */ jsx241(EuiHorizontalRule9, {}),
|
|
54293
|
+
hasError && /* @__PURE__ */ jsx241(WfoError, {}) || usePydanticForms && /* @__PURE__ */ jsx241(
|
|
54270
54294
|
WfoPydanticForm,
|
|
54271
54295
|
{
|
|
54272
54296
|
processName,
|
|
54273
54297
|
startProcessPayload,
|
|
54274
54298
|
isTask
|
|
54275
54299
|
}
|
|
54276
|
-
) || stepUserInput && /* @__PURE__ */
|
|
54300
|
+
) || stepUserInput && /* @__PURE__ */ jsx241(
|
|
54277
54301
|
UserInputFormWizard,
|
|
54278
54302
|
{
|
|
54279
54303
|
stepUserInput,
|
|
@@ -54284,7 +54308,7 @@ var WfoStartProcessPage = ({
|
|
|
54284
54308
|
hasNext,
|
|
54285
54309
|
isTask
|
|
54286
54310
|
}
|
|
54287
|
-
) || /* @__PURE__ */
|
|
54311
|
+
) || /* @__PURE__ */ jsx241(WfoLoading, {})
|
|
54288
54312
|
] })
|
|
54289
54313
|
}
|
|
54290
54314
|
);
|
|
@@ -54293,7 +54317,7 @@ var WfoStartProcessPage = ({
|
|
|
54293
54317
|
// src/pages/processes/WfoProductInformationWithLink.tsx
|
|
54294
54318
|
import { useTranslations as useTranslations73 } from "next-intl";
|
|
54295
54319
|
import { EuiButtonIcon as EuiButtonIcon14, EuiFlexGroup as EuiFlexGroup27, EuiText as EuiText44, EuiToolTip as EuiToolTip9 } from "@elastic/eui";
|
|
54296
|
-
import { jsx as
|
|
54320
|
+
import { jsx as jsx242, jsxs as jsxs126 } from "@emotion/react/jsx-runtime";
|
|
54297
54321
|
var WfoProductInformationWithLink = ({
|
|
54298
54322
|
workflowName,
|
|
54299
54323
|
productNames
|
|
@@ -54302,7 +54326,7 @@ var WfoProductInformationWithLink = ({
|
|
|
54302
54326
|
const t = useTranslations73("processes.detail");
|
|
54303
54327
|
const docsUrl = workflowInformationLinkUrl + workflowName;
|
|
54304
54328
|
return /* @__PURE__ */ jsxs126(EuiFlexGroup27, { gutterSize: "s", alignItems: "center", children: [
|
|
54305
|
-
showWorkflowInformationLink && /* @__PURE__ */
|
|
54329
|
+
showWorkflowInformationLink && /* @__PURE__ */ jsx242(EuiToolTip9, { content: t("openWorkflowTaskInfo"), children: /* @__PURE__ */ jsx242("a", { href: docsUrl, target: "_blank", children: /* @__PURE__ */ jsx242(
|
|
54306
54330
|
EuiButtonIcon14,
|
|
54307
54331
|
{
|
|
54308
54332
|
iconSize: "l",
|
|
@@ -54310,7 +54334,7 @@ var WfoProductInformationWithLink = ({
|
|
|
54310
54334
|
"aria-label": t("openWorkflowTaskInfo")
|
|
54311
54335
|
}
|
|
54312
54336
|
) }) }),
|
|
54313
|
-
/* @__PURE__ */
|
|
54337
|
+
/* @__PURE__ */ jsx242(EuiText44, { size: "s", children: productNames })
|
|
54314
54338
|
] });
|
|
54315
54339
|
};
|
|
54316
54340
|
|
|
@@ -54338,20 +54362,20 @@ import {
|
|
|
54338
54362
|
EuiSpacer as EuiSpacer22,
|
|
54339
54363
|
EuiText as EuiText45
|
|
54340
54364
|
} from "@elastic/eui";
|
|
54341
|
-
import { jsx as
|
|
54365
|
+
import { jsx as jsx243, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
|
|
54342
54366
|
var WfoAoStackStatus = () => {
|
|
54343
54367
|
const t = useTranslations74("settings.page");
|
|
54344
54368
|
const { aoStackStatusUrl } = useGetOrchestratorConfig();
|
|
54345
54369
|
const openStatusPage = () => {
|
|
54346
54370
|
window.open(aoStackStatusUrl, "_blank");
|
|
54347
54371
|
};
|
|
54348
|
-
return /* @__PURE__ */
|
|
54349
|
-
/* @__PURE__ */
|
|
54350
|
-
/* @__PURE__ */
|
|
54351
|
-
/* @__PURE__ */
|
|
54372
|
+
return /* @__PURE__ */ jsx243(EuiFlexItem31, { children: /* @__PURE__ */ jsxs127(EuiPanel6, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
54373
|
+
/* @__PURE__ */ jsx243(EuiText45, { size: "s", children: /* @__PURE__ */ jsx243("h4", { children: t("aoStackStatus") }) }),
|
|
54374
|
+
/* @__PURE__ */ jsx243(EuiSpacer22, { size: "m" }),
|
|
54375
|
+
/* @__PURE__ */ jsx243(
|
|
54352
54376
|
EuiButton15,
|
|
54353
54377
|
{
|
|
54354
|
-
iconType: () => /* @__PURE__ */
|
|
54378
|
+
iconType: () => /* @__PURE__ */ jsx243(WfoChartBar, {}),
|
|
54355
54379
|
onClick: openStatusPage,
|
|
54356
54380
|
children: t("viewStatusPage")
|
|
54357
54381
|
}
|
|
@@ -54360,7 +54384,7 @@ var WfoAoStackStatus = () => {
|
|
|
54360
54384
|
};
|
|
54361
54385
|
|
|
54362
54386
|
// src/pages/settings/WfoSettingsPage.tsx
|
|
54363
|
-
import { Fragment as Fragment57, jsx as
|
|
54387
|
+
import { Fragment as Fragment57, jsx as jsx244, jsxs as jsxs128 } from "@emotion/react/jsx-runtime";
|
|
54364
54388
|
var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
|
|
54365
54389
|
WfoSettingsTab2["ACTIONS"] = "ACTIONS";
|
|
54366
54390
|
WfoSettingsTab2["ENV_SETTINGS"] = "ENV_SETTINGS";
|
|
@@ -54369,18 +54393,18 @@ var WfoSettingsTab = /* @__PURE__ */ ((WfoSettingsTab2) => {
|
|
|
54369
54393
|
var WfoActionSettings = () => {
|
|
54370
54394
|
const { theme } = useOrchestratorTheme();
|
|
54371
54395
|
const { enableAoStackStatus } = useGetOrchestratorConfig();
|
|
54372
|
-
return /* @__PURE__ */
|
|
54373
|
-
/* @__PURE__ */
|
|
54374
|
-
/* @__PURE__ */
|
|
54375
|
-
/* @__PURE__ */
|
|
54376
|
-
/* @__PURE__ */
|
|
54377
|
-
/* @__PURE__ */
|
|
54396
|
+
return /* @__PURE__ */ jsx244(Fragment57, { children: /* @__PURE__ */ jsxs128("div", { css: { maxWidth: theme.base * 40 }, children: [
|
|
54397
|
+
/* @__PURE__ */ jsx244(WfoFlushSettings, {}),
|
|
54398
|
+
/* @__PURE__ */ jsx244(EuiSpacer23, {}),
|
|
54399
|
+
/* @__PURE__ */ jsx244(WfoModifySettings, {}),
|
|
54400
|
+
/* @__PURE__ */ jsx244(EuiSpacer23, {}),
|
|
54401
|
+
/* @__PURE__ */ jsx244(WfoEngineStatus, {}),
|
|
54378
54402
|
enableAoStackStatus && /* @__PURE__ */ jsxs128(Fragment57, { children: [
|
|
54379
|
-
/* @__PURE__ */
|
|
54380
|
-
/* @__PURE__ */
|
|
54403
|
+
/* @__PURE__ */ jsx244(EuiSpacer23, {}),
|
|
54404
|
+
/* @__PURE__ */ jsx244(WfoAoStackStatus, {})
|
|
54381
54405
|
] }),
|
|
54382
|
-
/* @__PURE__ */
|
|
54383
|
-
/* @__PURE__ */
|
|
54406
|
+
/* @__PURE__ */ jsx244(EuiSpacer23, {}),
|
|
54407
|
+
/* @__PURE__ */ jsx244(WfoWorkerStatus, {})
|
|
54384
54408
|
] }) });
|
|
54385
54409
|
};
|
|
54386
54410
|
var WfoEnvSettings = () => {
|
|
@@ -54394,16 +54418,16 @@ var WfoEnvSettings = () => {
|
|
|
54394
54418
|
return data && data.map(({ name, variables }) => {
|
|
54395
54419
|
const showVariables = mapToRepresentableVariables(variables);
|
|
54396
54420
|
return /* @__PURE__ */ jsxs128(Fragment57, { children: [
|
|
54397
|
-
/* @__PURE__ */
|
|
54421
|
+
/* @__PURE__ */ jsx244(EuiFlexItem32, { children: /* @__PURE__ */ jsxs128(
|
|
54398
54422
|
EuiPanel7,
|
|
54399
54423
|
{
|
|
54400
54424
|
hasShadow: false,
|
|
54401
54425
|
color: "subdued",
|
|
54402
54426
|
paddingSize: "l",
|
|
54403
54427
|
children: [
|
|
54404
|
-
/* @__PURE__ */
|
|
54405
|
-
/* @__PURE__ */
|
|
54406
|
-
/* @__PURE__ */
|
|
54428
|
+
/* @__PURE__ */ jsx244(EuiText46, { size: "s", children: /* @__PURE__ */ jsx244("h2", { children: name.replace("_", " ").toUpperCase() }) }),
|
|
54429
|
+
/* @__PURE__ */ jsx244(EuiSpacer23, {}),
|
|
54430
|
+
/* @__PURE__ */ jsx244(
|
|
54407
54431
|
EuiCodeBlock2,
|
|
54408
54432
|
{
|
|
54409
54433
|
fontSize: "m",
|
|
@@ -54417,15 +54441,15 @@ var WfoEnvSettings = () => {
|
|
|
54417
54441
|
]
|
|
54418
54442
|
}
|
|
54419
54443
|
) }),
|
|
54420
|
-
/* @__PURE__ */
|
|
54444
|
+
/* @__PURE__ */ jsx244(EuiSpacer23, {})
|
|
54421
54445
|
] });
|
|
54422
54446
|
});
|
|
54423
54447
|
};
|
|
54424
54448
|
const emptyEnvSettings = () => {
|
|
54425
|
-
return /* @__PURE__ */
|
|
54449
|
+
return /* @__PURE__ */ jsx244(EuiFlexItem32, { children: /* @__PURE__ */ jsx244(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsx244(EuiText46, { size: "s", children: /* @__PURE__ */ jsxs128("h2", { children: [
|
|
54426
54450
|
t("noSettingsExposed"),
|
|
54427
54451
|
" ",
|
|
54428
|
-
/* @__PURE__ */
|
|
54452
|
+
/* @__PURE__ */ jsx244(
|
|
54429
54453
|
"a",
|
|
54430
54454
|
{
|
|
54431
54455
|
href: "https://workfloworchestrator.org/orchestrator-core/reference-docs/app/settings-overview/",
|
|
@@ -54435,18 +54459,18 @@ var WfoEnvSettings = () => {
|
|
|
54435
54459
|
)
|
|
54436
54460
|
] }) }) }) });
|
|
54437
54461
|
};
|
|
54438
|
-
return /* @__PURE__ */
|
|
54462
|
+
return /* @__PURE__ */ jsx244("div", { css: { maxWidth: theme.base * 45 }, children: data?.length ? renderEnvSettings() : emptyEnvSettings() });
|
|
54439
54463
|
};
|
|
54440
54464
|
var settingsTabs = [
|
|
54441
54465
|
{
|
|
54442
54466
|
id: "ACTIONS" /* ACTIONS */,
|
|
54443
54467
|
translationKey: "actions",
|
|
54444
|
-
content: /* @__PURE__ */
|
|
54468
|
+
content: /* @__PURE__ */ jsx244(WfoActionSettings, {})
|
|
54445
54469
|
},
|
|
54446
54470
|
{
|
|
54447
54471
|
id: "ENV_SETTINGS" /* ENV_SETTINGS */,
|
|
54448
54472
|
translationKey: "envSettings",
|
|
54449
|
-
content: /* @__PURE__ */
|
|
54473
|
+
content: /* @__PURE__ */ jsx244(WfoEnvSettings, {})
|
|
54450
54474
|
}
|
|
54451
54475
|
];
|
|
54452
54476
|
var WfoSettingsPage = () => {
|
|
@@ -54464,7 +54488,7 @@ var WfoSettingsPage = () => {
|
|
|
54464
54488
|
setSelectedTabId(id);
|
|
54465
54489
|
};
|
|
54466
54490
|
const renderTabs = () => {
|
|
54467
|
-
return settingsTabs.map((tab, index) => /* @__PURE__ */
|
|
54491
|
+
return settingsTabs.map((tab, index) => /* @__PURE__ */ jsx244(
|
|
54468
54492
|
EuiTab3,
|
|
54469
54493
|
{
|
|
54470
54494
|
css: tabStyle,
|
|
@@ -54476,9 +54500,9 @@ var WfoSettingsPage = () => {
|
|
|
54476
54500
|
));
|
|
54477
54501
|
};
|
|
54478
54502
|
return /* @__PURE__ */ jsxs128(Fragment57, { children: [
|
|
54479
|
-
/* @__PURE__ */
|
|
54480
|
-
/* @__PURE__ */
|
|
54481
|
-
/* @__PURE__ */
|
|
54503
|
+
/* @__PURE__ */ jsx244(WfoContentHeader, { title: t("settings") }),
|
|
54504
|
+
/* @__PURE__ */ jsx244(EuiTabs3, { children: renderTabs() }),
|
|
54505
|
+
/* @__PURE__ */ jsx244(EuiSpacer23, { size: "xxl" }),
|
|
54482
54506
|
selectedTabContent
|
|
54483
54507
|
] });
|
|
54484
54508
|
};
|
|
@@ -54498,7 +54522,7 @@ var useStartPageSummaryCardConfigurationOverride = () => {
|
|
|
54498
54522
|
};
|
|
54499
54523
|
|
|
54500
54524
|
// src/pages/startPage/WfoStartPage.tsx
|
|
54501
|
-
import { Fragment as Fragment58, jsx as
|
|
54525
|
+
import { Fragment as Fragment58, jsx as jsx245, jsxs as jsxs129 } from "@emotion/react/jsx-runtime";
|
|
54502
54526
|
var WfoStartPage = () => {
|
|
54503
54527
|
const t = useTranslations76("main");
|
|
54504
54528
|
const { overrideSummaryCards } = useStartPageSummaryCardConfigurationOverride();
|
|
@@ -54507,27 +54531,27 @@ var WfoStartPage = () => {
|
|
|
54507
54531
|
const username = session?.user?.name ?? "";
|
|
54508
54532
|
const defaultSummaryCards = [
|
|
54509
54533
|
...toOptionalArrayEntry(
|
|
54510
|
-
/* @__PURE__ */
|
|
54534
|
+
/* @__PURE__ */ jsx245(WfoMyWorkflowsSummaryCard, { username }, "myWorkflows"),
|
|
54511
54535
|
!!username
|
|
54512
54536
|
),
|
|
54513
|
-
/* @__PURE__ */
|
|
54537
|
+
/* @__PURE__ */ jsx245(WfoActiveWorkflowsSummaryCard, {}, "activeWorkflows"),
|
|
54514
54538
|
...toOptionalArrayEntry(
|
|
54515
|
-
/* @__PURE__ */
|
|
54539
|
+
/* @__PURE__ */ jsx245(WfoFailedTasksSummaryCard, {}, "failedTasks"),
|
|
54516
54540
|
isAllowed("/orchestrator/tasks/" /* NAVIGATION_TASKS */)
|
|
54517
54541
|
),
|
|
54518
|
-
/* @__PURE__ */
|
|
54519
|
-
/* @__PURE__ */
|
|
54520
|
-
/* @__PURE__ */
|
|
54542
|
+
/* @__PURE__ */ jsx245(WfoLatestOutOfSyncSubscriptionSummaryCard, {}, "latestOutOfSyncSubscription"),
|
|
54543
|
+
/* @__PURE__ */ jsx245(WfoLatestActiveSubscriptionsSummaryCard, {}, "latestActiveSubscriptions"),
|
|
54544
|
+
/* @__PURE__ */ jsx245(WfoProductsSummaryCard, {}, "products")
|
|
54521
54545
|
];
|
|
54522
54546
|
const summaryCards = overrideSummaryCards?.(defaultSummaryCards) || defaultSummaryCards;
|
|
54523
54547
|
return /* @__PURE__ */ jsxs129(Fragment58, { children: [
|
|
54524
|
-
/* @__PURE__ */
|
|
54548
|
+
/* @__PURE__ */ jsx245(
|
|
54525
54549
|
WfoContentHeader,
|
|
54526
54550
|
{
|
|
54527
|
-
title: /* @__PURE__ */
|
|
54551
|
+
title: /* @__PURE__ */ jsx245(EuiPageHeader2, { pageTitle: `${t("welcome")} ${username}` })
|
|
54528
54552
|
}
|
|
54529
54553
|
),
|
|
54530
|
-
/* @__PURE__ */
|
|
54554
|
+
/* @__PURE__ */ jsx245(WfoSummaryCards, { children: summaryCards })
|
|
54531
54555
|
] });
|
|
54532
54556
|
};
|
|
54533
54557
|
|
|
@@ -54545,22 +54569,22 @@ var mapSubscriptionSummaryToSummaryCardListItem = (subscription) => ({
|
|
|
54545
54569
|
|
|
54546
54570
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
54547
54571
|
import { useRouter as useRouter11 } from "next/router";
|
|
54548
|
-
import { Fragment as Fragment59, jsx as
|
|
54572
|
+
import { Fragment as Fragment59, jsx as jsx246 } from "@emotion/react/jsx-runtime";
|
|
54549
54573
|
var WfoSubscriptionDetailPage = () => {
|
|
54550
54574
|
const router = useRouter11();
|
|
54551
54575
|
const { subscriptionId } = router.query;
|
|
54552
|
-
return subscriptionId && /* @__PURE__ */
|
|
54576
|
+
return subscriptionId && /* @__PURE__ */ jsx246(TreeProvider, { children: /* @__PURE__ */ jsx246(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx246(Fragment59, {});
|
|
54553
54577
|
};
|
|
54554
54578
|
|
|
54555
54579
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
54556
|
-
import { useEffect as useEffect33, useState as
|
|
54580
|
+
import { useEffect as useEffect33, useState as useState53 } from "react";
|
|
54557
54581
|
import { useTranslations as useTranslations77 } from "next-intl";
|
|
54558
54582
|
import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
|
|
54559
54583
|
import { EuiSpacer as EuiSpacer24 } from "@elastic/eui";
|
|
54560
|
-
import { Fragment as Fragment60, jsx as
|
|
54584
|
+
import { Fragment as Fragment60, jsx as jsx247, jsxs as jsxs130 } from "@emotion/react/jsx-runtime";
|
|
54561
54585
|
var WfoSubscriptionsListPage = () => {
|
|
54562
54586
|
const t = useTranslations77("subscriptions.detail");
|
|
54563
|
-
const [tableDefaults, setTableDefaults] =
|
|
54587
|
+
const [tableDefaults, setTableDefaults] = useState53();
|
|
54564
54588
|
const getStoredTableConfig = useStoredTableConfig(
|
|
54565
54589
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
54566
54590
|
);
|
|
@@ -54596,13 +54620,13 @@ var WfoSubscriptionsListPage = () => {
|
|
|
54596
54620
|
({ id }) => id === activeTab
|
|
54597
54621
|
)?.alwaysOnFilters;
|
|
54598
54622
|
return /* @__PURE__ */ jsxs130(Fragment60, { children: [
|
|
54599
|
-
/* @__PURE__ */
|
|
54623
|
+
/* @__PURE__ */ jsx247(
|
|
54600
54624
|
WfoContentHeader,
|
|
54601
54625
|
{
|
|
54602
|
-
title: /* @__PURE__ */
|
|
54626
|
+
title: /* @__PURE__ */ jsx247(WfoTitleWithWebsocketBadge, { title: t("title") })
|
|
54603
54627
|
}
|
|
54604
54628
|
),
|
|
54605
|
-
/* @__PURE__ */
|
|
54629
|
+
/* @__PURE__ */ jsx247(
|
|
54606
54630
|
WfoFilterTabs,
|
|
54607
54631
|
{
|
|
54608
54632
|
tabs: subscriptionListTabs,
|
|
@@ -54611,8 +54635,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
54611
54635
|
onChangeTab: handleChangeSubscriptionsTab
|
|
54612
54636
|
}
|
|
54613
54637
|
),
|
|
54614
|
-
/* @__PURE__ */
|
|
54615
|
-
/* @__PURE__ */
|
|
54638
|
+
/* @__PURE__ */ jsx247(EuiSpacer24, { size: "xxl" }),
|
|
54639
|
+
/* @__PURE__ */ jsx247(
|
|
54616
54640
|
WfoSubscriptionsList,
|
|
54617
54641
|
{
|
|
54618
54642
|
hiddenColumns: tableDefaults?.hiddenColumns,
|
|
@@ -54625,7 +54649,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
54625
54649
|
};
|
|
54626
54650
|
|
|
54627
54651
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
54628
|
-
import { useContext as useContext12, useEffect as useEffect34, useState as
|
|
54652
|
+
import { useContext as useContext12, useEffect as useEffect34, useState as useState54 } from "react";
|
|
54629
54653
|
import { useTranslations as useTranslations78 } from "next-intl";
|
|
54630
54654
|
import Link11 from "next/link";
|
|
54631
54655
|
import { useRouter as useRouter12 } from "next/router";
|
|
@@ -54695,7 +54719,7 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
54695
54719
|
};
|
|
54696
54720
|
|
|
54697
54721
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
54698
|
-
import { Fragment as Fragment61, jsx as
|
|
54722
|
+
import { Fragment as Fragment61, jsx as jsx248, jsxs as jsxs131 } from "@emotion/react/jsx-runtime";
|
|
54699
54723
|
var WfoTasksListPage = () => {
|
|
54700
54724
|
const router = useRouter12();
|
|
54701
54725
|
const t = useTranslations78("tasks.page");
|
|
@@ -54703,7 +54727,7 @@ var WfoTasksListPage = () => {
|
|
|
54703
54727
|
"activeTab",
|
|
54704
54728
|
withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
|
|
54705
54729
|
);
|
|
54706
|
-
const [tableDefaults, setTableDefaults] =
|
|
54730
|
+
const [tableDefaults, setTableDefaults] = useState54();
|
|
54707
54731
|
const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
|
|
54708
54732
|
const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
54709
54733
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -54751,7 +54775,7 @@ var WfoTasksListPage = () => {
|
|
|
54751
54775
|
workflowName: {
|
|
54752
54776
|
columnType: "data" /* DATA */,
|
|
54753
54777
|
label: t("taskName"),
|
|
54754
|
-
renderData: (value, { processId }) => /* @__PURE__ */
|
|
54778
|
+
renderData: (value, { processId }) => /* @__PURE__ */ jsx248(Link11, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
54755
54779
|
},
|
|
54756
54780
|
...toSortedTableColumnConfig(defaultTableColumns, [
|
|
54757
54781
|
"lastStep",
|
|
@@ -54773,21 +54797,21 @@ var WfoTasksListPage = () => {
|
|
|
54773
54797
|
/* @__PURE__ */ jsxs131(
|
|
54774
54798
|
WfoContentHeader,
|
|
54775
54799
|
{
|
|
54776
|
-
title: /* @__PURE__ */
|
|
54800
|
+
title: /* @__PURE__ */ jsx248(WfoTitleWithWebsocketBadge, { title: "Tasks" }),
|
|
54777
54801
|
children: [
|
|
54778
|
-
/* @__PURE__ */
|
|
54802
|
+
/* @__PURE__ */ jsx248(WfoIsAllowedToRender, { resource: "/orchestrator/processes/all-tasks/retry" /* TASKS_RETRY_ALL */, children: /* @__PURE__ */ jsx248(
|
|
54779
54803
|
EuiButton16,
|
|
54780
54804
|
{
|
|
54781
54805
|
onClick: handleRerunAllButtonClick,
|
|
54782
|
-
iconType: () => /* @__PURE__ */
|
|
54806
|
+
iconType: () => /* @__PURE__ */ jsx248(WfoRefresh, { color: theme.colors.primaryText }),
|
|
54783
54807
|
children: t("rerunAll")
|
|
54784
54808
|
}
|
|
54785
54809
|
) }),
|
|
54786
|
-
/* @__PURE__ */
|
|
54810
|
+
/* @__PURE__ */ jsx248(WfoIsAllowedToRender, { resource: "/orchestrator/processes/create/task" /* TASKS_CREATE */, children: /* @__PURE__ */ jsx248(WfoStartTaskButtonComboBox, {}) })
|
|
54787
54811
|
]
|
|
54788
54812
|
}
|
|
54789
54813
|
),
|
|
54790
|
-
/* @__PURE__ */
|
|
54814
|
+
/* @__PURE__ */ jsx248(
|
|
54791
54815
|
WfoFilterTabs,
|
|
54792
54816
|
{
|
|
54793
54817
|
tabs: defaultTasksListTabs,
|
|
@@ -54796,8 +54820,8 @@ var WfoTasksListPage = () => {
|
|
|
54796
54820
|
onChangeTab: handleChangeTasksListTab
|
|
54797
54821
|
}
|
|
54798
54822
|
),
|
|
54799
|
-
/* @__PURE__ */
|
|
54800
|
-
/* @__PURE__ */
|
|
54823
|
+
/* @__PURE__ */ jsx248(EuiSpacer25, { size: "xxl" }),
|
|
54824
|
+
/* @__PURE__ */ jsx248(
|
|
54801
54825
|
WfoProcessesList,
|
|
54802
54826
|
{
|
|
54803
54827
|
defaultHiddenColumns: tableDefaults?.hiddenColumns,
|
|
@@ -54812,7 +54836,7 @@ var WfoTasksListPage = () => {
|
|
|
54812
54836
|
};
|
|
54813
54837
|
|
|
54814
54838
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
54815
|
-
import { useEffect as useEffect35, useState as
|
|
54839
|
+
import { useEffect as useEffect35, useState as useState55 } from "react";
|
|
54816
54840
|
import { useTranslations as useTranslations79 } from "next-intl";
|
|
54817
54841
|
import { useRouter as useRouter13 } from "next/router";
|
|
54818
54842
|
import { StringParam as StringParam6, useQueryParam as useQueryParam5, withDefault as withDefault6 } from "use-query-params";
|
|
@@ -54881,7 +54905,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
54881
54905
|
};
|
|
54882
54906
|
|
|
54883
54907
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
54884
|
-
import { Fragment as Fragment62, jsx as
|
|
54908
|
+
import { Fragment as Fragment62, jsx as jsx249, jsxs as jsxs132 } from "@emotion/react/jsx-runtime";
|
|
54885
54909
|
var WfoWorkflowsListPage = () => {
|
|
54886
54910
|
const router = useRouter13();
|
|
54887
54911
|
const t = useTranslations79("workflows.index");
|
|
@@ -54889,7 +54913,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
54889
54913
|
"activeTab",
|
|
54890
54914
|
withDefault6(StringParam6, "ACTIVE" /* ACTIVE */)
|
|
54891
54915
|
);
|
|
54892
|
-
const [tableDefaults, setTableDefaults] =
|
|
54916
|
+
const [tableDefaults, setTableDefaults] = useState55();
|
|
54893
54917
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
54894
54918
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
54895
54919
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
@@ -54920,13 +54944,13 @@ var WfoWorkflowsListPage = () => {
|
|
|
54920
54944
|
return null;
|
|
54921
54945
|
}
|
|
54922
54946
|
return /* @__PURE__ */ jsxs132(Fragment62, { children: [
|
|
54923
|
-
/* @__PURE__ */
|
|
54947
|
+
/* @__PURE__ */ jsx249(
|
|
54924
54948
|
WfoContentHeader,
|
|
54925
54949
|
{
|
|
54926
|
-
title: /* @__PURE__ */
|
|
54950
|
+
title: /* @__PURE__ */ jsx249(WfoTitleWithWebsocketBadge, { title: t("title") })
|
|
54927
54951
|
}
|
|
54928
54952
|
),
|
|
54929
|
-
/* @__PURE__ */
|
|
54953
|
+
/* @__PURE__ */ jsx249(
|
|
54930
54954
|
WfoFilterTabs,
|
|
54931
54955
|
{
|
|
54932
54956
|
tabs: defaultWorkflowsListTabs,
|
|
@@ -54935,8 +54959,8 @@ var WfoWorkflowsListPage = () => {
|
|
|
54935
54959
|
onChangeTab: handleChangeWorkflowsListTab
|
|
54936
54960
|
}
|
|
54937
54961
|
),
|
|
54938
|
-
/* @__PURE__ */
|
|
54939
|
-
/* @__PURE__ */
|
|
54962
|
+
/* @__PURE__ */ jsx249(EuiSpacer26, { size: "xxl" }),
|
|
54963
|
+
/* @__PURE__ */ jsx249(
|
|
54940
54964
|
WfoProcessesList,
|
|
54941
54965
|
{
|
|
54942
54966
|
alwaysOnFilters,
|
|
@@ -55046,7 +55070,7 @@ var graphQlProcessFilterMapper = (data) => data?.map(({ field, value }) => ({
|
|
|
55046
55070
|
}));
|
|
55047
55071
|
|
|
55048
55072
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
55049
|
-
import { jsx as
|
|
55073
|
+
import { jsx as jsx250, jsxs as jsxs133 } from "@emotion/react/jsx-runtime";
|
|
55050
55074
|
var WfoProcessesList = ({
|
|
55051
55075
|
alwaysOnFilters,
|
|
55052
55076
|
defaultHiddenColumns = [],
|
|
@@ -55064,7 +55088,7 @@ var WfoProcessesList = ({
|
|
|
55064
55088
|
columnType: "data" /* DATA */,
|
|
55065
55089
|
label: t("workflowName"),
|
|
55066
55090
|
width: "225px",
|
|
55067
|
-
renderData: (value, { processId }) => /* @__PURE__ */
|
|
55091
|
+
renderData: (value, { processId }) => /* @__PURE__ */ jsx250(Link12, { href: `${PATH_WORKFLOWS}/${processId}`, children: value }),
|
|
55068
55092
|
renderTooltip: (value) => value
|
|
55069
55093
|
},
|
|
55070
55094
|
lastStep: {
|
|
@@ -55075,13 +55099,13 @@ var WfoProcessesList = ({
|
|
|
55075
55099
|
lastStatus: {
|
|
55076
55100
|
columnType: "data" /* DATA */,
|
|
55077
55101
|
label: t("status"),
|
|
55078
|
-
renderData: (cellValue) => /* @__PURE__ */
|
|
55102
|
+
renderData: (cellValue) => /* @__PURE__ */ jsx250(WfoProcessStatusBadge, { processStatus: cellValue }),
|
|
55079
55103
|
width: "150px"
|
|
55080
55104
|
},
|
|
55081
55105
|
workflowTarget: {
|
|
55082
55106
|
columnType: "data" /* DATA */,
|
|
55083
55107
|
label: t("workflowTarget"),
|
|
55084
|
-
renderData: (target) => /* @__PURE__ */
|
|
55108
|
+
renderData: (target) => /* @__PURE__ */ jsx250(WfoWorkflowTargetBadge, { target }),
|
|
55085
55109
|
width: "100px"
|
|
55086
55110
|
},
|
|
55087
55111
|
tag: {
|
|
@@ -55108,7 +55132,7 @@ var WfoProcessesList = ({
|
|
|
55108
55132
|
columnType: "data" /* DATA */,
|
|
55109
55133
|
label: t("subscriptions"),
|
|
55110
55134
|
width: "425px",
|
|
55111
|
-
renderData: ({ page: subscriptions }, { processId }) => /* @__PURE__ */
|
|
55135
|
+
renderData: ({ page: subscriptions }, { processId }) => /* @__PURE__ */ jsx250(
|
|
55112
55136
|
WfoProcessListSubscriptionsCell,
|
|
55113
55137
|
{
|
|
55114
55138
|
subscriptions,
|
|
@@ -55116,7 +55140,7 @@ var WfoProcessesList = ({
|
|
|
55116
55140
|
onMoreSubscriptionsClick: () => router.push(`${PATH_WORKFLOWS}/${processId}`)
|
|
55117
55141
|
}
|
|
55118
55142
|
),
|
|
55119
|
-
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */
|
|
55143
|
+
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx250(
|
|
55120
55144
|
WfoProcessListSubscriptionsCell,
|
|
55121
55145
|
{
|
|
55122
55146
|
subscriptions
|
|
@@ -55142,7 +55166,7 @@ var WfoProcessesList = ({
|
|
|
55142
55166
|
columnType: "data" /* DATA */,
|
|
55143
55167
|
label: t("processId"),
|
|
55144
55168
|
width: "90px",
|
|
55145
|
-
renderData: (value) => /* @__PURE__ */
|
|
55169
|
+
renderData: (value) => /* @__PURE__ */ jsx250(WfoFirstPartUUID, { UUID: value }),
|
|
55146
55170
|
renderDetails: (value) => value,
|
|
55147
55171
|
renderTooltip: (value) => value
|
|
55148
55172
|
},
|
|
@@ -55150,7 +55174,7 @@ var WfoProcessesList = ({
|
|
|
55150
55174
|
columnType: "data" /* DATA */,
|
|
55151
55175
|
label: t("started"),
|
|
55152
55176
|
width: "100px",
|
|
55153
|
-
renderData: (value) => /* @__PURE__ */
|
|
55177
|
+
renderData: (value) => /* @__PURE__ */ jsx250(WfoDateTime, { dateOrIsoString: value }),
|
|
55154
55178
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55155
55179
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
55156
55180
|
renderTooltip: (value) => value.toString()
|
|
@@ -55159,7 +55183,7 @@ var WfoProcessesList = ({
|
|
|
55159
55183
|
columnType: "data" /* DATA */,
|
|
55160
55184
|
label: t("lastModified"),
|
|
55161
55185
|
width: "125px",
|
|
55162
|
-
renderData: (value) => /* @__PURE__ */
|
|
55186
|
+
renderData: (value) => /* @__PURE__ */ jsx250(WfoDateTime, { dateOrIsoString: value }),
|
|
55163
55187
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55164
55188
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
55165
55189
|
renderTooltip: (value) => value.toString()
|
|
@@ -55192,7 +55216,7 @@ var WfoProcessesList = ({
|
|
|
55192
55216
|
const getProcessListForExport = () => getProcessListTrigger(
|
|
55193
55217
|
getQueryVariablesForExport(processListQueryVars)
|
|
55194
55218
|
).unwrap();
|
|
55195
|
-
return /* @__PURE__ */
|
|
55219
|
+
return /* @__PURE__ */ jsx250(
|
|
55196
55220
|
WfoAdvancedTable,
|
|
55197
55221
|
{
|
|
55198
55222
|
queryString,
|
|
@@ -55255,14 +55279,14 @@ var getStyles12 = ({ theme }) => {
|
|
|
55255
55279
|
};
|
|
55256
55280
|
|
|
55257
55281
|
// src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
|
|
55258
|
-
import { jsx as
|
|
55282
|
+
import { jsx as jsx251 } from "@emotion/react/jsx-runtime";
|
|
55259
55283
|
var WfoJsonCodeBlock = ({
|
|
55260
55284
|
data,
|
|
55261
55285
|
isBasicStyle = false
|
|
55262
55286
|
}) => {
|
|
55263
55287
|
const { euiCodeBlockStyle, euiBasicCodeBlockStyle } = useWithOrchestratorTheme(getStyles12);
|
|
55264
55288
|
const json = JSON.stringify(data, null, 4);
|
|
55265
|
-
return /* @__PURE__ */
|
|
55289
|
+
return /* @__PURE__ */ jsx251(
|
|
55266
55290
|
EuiCodeBlock3,
|
|
55267
55291
|
{
|
|
55268
55292
|
css: isBasicStyle ? euiBasicCodeBlockStyle : euiCodeBlockStyle,
|
|
@@ -55275,7 +55299,7 @@ var WfoJsonCodeBlock = ({
|
|
|
55275
55299
|
};
|
|
55276
55300
|
|
|
55277
55301
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
55278
|
-
import { useState as
|
|
55302
|
+
import { useState as useState56 } from "react";
|
|
55279
55303
|
import { useTranslations as useTranslations81 } from "next-intl";
|
|
55280
55304
|
import {
|
|
55281
55305
|
EuiButton as EuiButton17,
|
|
@@ -55310,14 +55334,14 @@ var getWfoFlushSettingsStyle = (wfoTheme) => {
|
|
|
55310
55334
|
};
|
|
55311
55335
|
|
|
55312
55336
|
// src/components/WfoSettings/WfoFlushSettings.tsx
|
|
55313
|
-
import { jsx as
|
|
55337
|
+
import { jsx as jsx252, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
|
|
55314
55338
|
var WfoFlushSettings = () => {
|
|
55315
55339
|
const { comboboxStyle } = useWithOrchestratorTheme(
|
|
55316
55340
|
getWfoFlushSettingsStyle
|
|
55317
55341
|
);
|
|
55318
55342
|
const [clearCache] = useClearCacheMutation();
|
|
55319
55343
|
const t = useTranslations81("settings.page");
|
|
55320
|
-
const [selectedOptions, setSelected] =
|
|
55344
|
+
const [selectedOptions, setSelected] = useState56(
|
|
55321
55345
|
[]
|
|
55322
55346
|
);
|
|
55323
55347
|
const { showToastMessage } = useShowToastMessage();
|
|
@@ -55348,10 +55372,10 @@ var WfoFlushSettings = () => {
|
|
|
55348
55372
|
);
|
|
55349
55373
|
});
|
|
55350
55374
|
};
|
|
55351
|
-
return /* @__PURE__ */
|
|
55352
|
-
/* @__PURE__ */
|
|
55353
|
-
/* @__PURE__ */
|
|
55354
|
-
/* @__PURE__ */
|
|
55375
|
+
return /* @__PURE__ */ jsx252(WfoIsAllowedToRender, { resource: "/orchestrator/settings/flush-cache" /* SETTINGS_FLUSH_CACHE */, children: /* @__PURE__ */ jsxs134(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
55376
|
+
/* @__PURE__ */ jsx252(EuiText47, { size: "s", children: /* @__PURE__ */ jsx252("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
55377
|
+
/* @__PURE__ */ jsx252(EuiSpacer27, { size: "m" }),
|
|
55378
|
+
/* @__PURE__ */ jsx252(
|
|
55355
55379
|
EuiComboBox,
|
|
55356
55380
|
{
|
|
55357
55381
|
css: comboboxStyle,
|
|
@@ -55364,24 +55388,24 @@ var WfoFlushSettings = () => {
|
|
|
55364
55388
|
fullWidth: true
|
|
55365
55389
|
}
|
|
55366
55390
|
),
|
|
55367
|
-
/* @__PURE__ */
|
|
55368
|
-
/* @__PURE__ */
|
|
55391
|
+
/* @__PURE__ */ jsx252(EuiSpacer27, { size: "m" }),
|
|
55392
|
+
/* @__PURE__ */ jsx252(EuiButton17, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
|
|
55369
55393
|
] }) });
|
|
55370
55394
|
};
|
|
55371
55395
|
|
|
55372
55396
|
// src/components/WfoSettings/WfoEngineStatusButton.tsx
|
|
55373
55397
|
import { useTranslations as useTranslations82 } from "next-intl";
|
|
55374
55398
|
import { EuiButton as EuiButton18 } from "@elastic/eui";
|
|
55375
|
-
import { jsx as
|
|
55399
|
+
import { jsx as jsx253 } from "@emotion/react/jsx-runtime";
|
|
55376
55400
|
var WfoEngineStatusButton = () => {
|
|
55377
55401
|
const { data, isLoading } = useGetEngineStatusQuery();
|
|
55378
55402
|
const { engineStatus } = data || {};
|
|
55379
55403
|
const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
|
|
55380
55404
|
const t = useTranslations82("settings.page");
|
|
55381
55405
|
if (isLoading || isSettingEngineStatus) {
|
|
55382
|
-
return /* @__PURE__ */
|
|
55406
|
+
return /* @__PURE__ */ jsx253(EuiButton18, { isLoading: true, fill: true, children: "Loading..." });
|
|
55383
55407
|
}
|
|
55384
|
-
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */
|
|
55408
|
+
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx253(
|
|
55385
55409
|
EuiButton18,
|
|
55386
55410
|
{
|
|
55387
55411
|
onClick: () => setEngineStatus(true),
|
|
@@ -55390,7 +55414,7 @@ var WfoEngineStatusButton = () => {
|
|
|
55390
55414
|
iconType: "pause",
|
|
55391
55415
|
children: t("pauseEngine")
|
|
55392
55416
|
}
|
|
55393
|
-
) : /* @__PURE__ */
|
|
55417
|
+
) : /* @__PURE__ */ jsx253(
|
|
55394
55418
|
EuiButton18,
|
|
55395
55419
|
{
|
|
55396
55420
|
onClick: () => setEngineStatus(false),
|
|
@@ -55405,25 +55429,25 @@ var WfoEngineStatusButton = () => {
|
|
|
55405
55429
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
55406
55430
|
import { useTranslations as useTranslations83 } from "next-intl";
|
|
55407
55431
|
import { EuiFlexItem as EuiFlexItem33, EuiPanel as EuiPanel9, EuiSpacer as EuiSpacer28, EuiText as EuiText48 } from "@elastic/eui";
|
|
55408
|
-
import { jsx as
|
|
55432
|
+
import { jsx as jsx254, jsxs as jsxs135 } from "@emotion/react/jsx-runtime";
|
|
55409
55433
|
var WfoModifySettings = () => {
|
|
55410
55434
|
const t = useTranslations83("settings.page");
|
|
55411
55435
|
return /* @__PURE__ */ jsxs135(EuiFlexItem33, { children: [
|
|
55412
55436
|
/* @__PURE__ */ jsxs135(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
55413
|
-
/* @__PURE__ */
|
|
55414
|
-
/* @__PURE__ */
|
|
55415
|
-
/* @__PURE__ */
|
|
55437
|
+
/* @__PURE__ */ jsx254(EuiText48, { size: "s", children: /* @__PURE__ */ jsx254("h4", { children: t("resetTextSearchIndex") }) }),
|
|
55438
|
+
/* @__PURE__ */ jsx254(EuiSpacer28, { size: "m" }),
|
|
55439
|
+
/* @__PURE__ */ jsx254(WfoResetTextSearchIndexButton, {})
|
|
55416
55440
|
] }),
|
|
55417
55441
|
/* @__PURE__ */ jsxs135(
|
|
55418
55442
|
WfoIsAllowedToRender,
|
|
55419
55443
|
{
|
|
55420
55444
|
resource: "/orchestrator/settings/start-stop-engine" /* SETTINGS_START_STOP_ENGINE */,
|
|
55421
55445
|
children: [
|
|
55422
|
-
/* @__PURE__ */
|
|
55446
|
+
/* @__PURE__ */ jsx254(EuiSpacer28, {}),
|
|
55423
55447
|
/* @__PURE__ */ jsxs135(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
55424
|
-
/* @__PURE__ */
|
|
55425
|
-
/* @__PURE__ */
|
|
55426
|
-
/* @__PURE__ */
|
|
55448
|
+
/* @__PURE__ */ jsx254(EuiText48, { size: "s", children: /* @__PURE__ */ jsx254("h4", { children: t("modifyEngine") }) }),
|
|
55449
|
+
/* @__PURE__ */ jsx254(EuiSpacer28, { size: "m" }),
|
|
55450
|
+
/* @__PURE__ */ jsx254(WfoEngineStatusButton, {})
|
|
55427
55451
|
] })
|
|
55428
55452
|
]
|
|
55429
55453
|
}
|
|
@@ -55434,28 +55458,28 @@ var WfoModifySettings = () => {
|
|
|
55434
55458
|
// src/components/WfoSettings/WfoEngineStatus.tsx
|
|
55435
55459
|
import { useTranslations as useTranslations84 } from "next-intl";
|
|
55436
55460
|
import { EuiFlexGroup as EuiFlexGroup28, EuiFlexItem as EuiFlexItem34, EuiPanel as EuiPanel10, EuiText as EuiText49 } from "@elastic/eui";
|
|
55437
|
-
import { jsx as
|
|
55461
|
+
import { jsx as jsx255, jsxs as jsxs136 } from "@emotion/react/jsx-runtime";
|
|
55438
55462
|
var WfoEngineStatus = () => {
|
|
55439
55463
|
const { theme } = useOrchestratorTheme();
|
|
55440
55464
|
const { data } = useGetEngineStatusQuery();
|
|
55441
55465
|
const { engineStatus, runningProcesses } = data || {};
|
|
55442
55466
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
55443
55467
|
const t = useTranslations84("settings.page");
|
|
55444
|
-
return /* @__PURE__ */
|
|
55445
|
-
/* @__PURE__ */
|
|
55468
|
+
return /* @__PURE__ */ jsx255(EuiPanel10, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs136(EuiFlexGroup28, { direction: "column", gutterSize: "s", children: [
|
|
55469
|
+
/* @__PURE__ */ jsx255(EuiFlexItem34, { children: /* @__PURE__ */ jsx255(EuiText49, { size: "s", children: /* @__PURE__ */ jsx255("h4", { children: t("engineStatusTitle") }) }) }),
|
|
55446
55470
|
/* @__PURE__ */ jsxs136(EuiFlexItem34, { css: { flexDirection: "row" }, children: [
|
|
55447
|
-
/* @__PURE__ */
|
|
55448
|
-
/* @__PURE__ */
|
|
55471
|
+
/* @__PURE__ */ jsx255(EuiText49, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
|
|
55472
|
+
/* @__PURE__ */ jsx255(EuiText49, { size: "s", children: runningProcesses || "-" })
|
|
55449
55473
|
] }),
|
|
55450
55474
|
/* @__PURE__ */ jsxs136(EuiFlexItem34, { css: { flexDirection: "row" }, children: [
|
|
55451
|
-
/* @__PURE__ */
|
|
55452
|
-
/* @__PURE__ */
|
|
55475
|
+
/* @__PURE__ */ jsx255(EuiText49, { size: "s", style: { minWidth: 190 }, children: t("status") }),
|
|
55476
|
+
/* @__PURE__ */ jsx255(
|
|
55453
55477
|
WfoStatusDotIcon,
|
|
55454
55478
|
{
|
|
55455
55479
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
55456
55480
|
}
|
|
55457
55481
|
),
|
|
55458
|
-
/* @__PURE__ */
|
|
55482
|
+
/* @__PURE__ */ jsx255(EuiText49, { size: "xs", css: { paddingTop: theme.size.xs }, children: /* @__PURE__ */ jsx255("p", { children: engineStatus }) })
|
|
55459
55483
|
] })
|
|
55460
55484
|
] }) });
|
|
55461
55485
|
};
|
|
@@ -55463,7 +55487,7 @@ var WfoEngineStatus = () => {
|
|
|
55463
55487
|
// src/components/WfoSettings/WfoWorkerStatus.tsx
|
|
55464
55488
|
import { useTranslations as useTranslations85 } from "next-intl";
|
|
55465
55489
|
import { EuiFlexGroup as EuiFlexGroup29, EuiFlexItem as EuiFlexItem35, EuiPanel as EuiPanel11, EuiText as EuiText50 } from "@elastic/eui";
|
|
55466
|
-
import { jsx as
|
|
55490
|
+
import { jsx as jsx256, jsxs as jsxs137 } from "@emotion/react/jsx-runtime";
|
|
55467
55491
|
var WfoWorkerStatus = () => {
|
|
55468
55492
|
const { data } = useGetWorkerStatusQuery();
|
|
55469
55493
|
const {
|
|
@@ -55473,19 +55497,19 @@ var WfoWorkerStatus = () => {
|
|
|
55473
55497
|
numberOfWorkersOnline
|
|
55474
55498
|
} = data || {};
|
|
55475
55499
|
const t = useTranslations85("settings.page");
|
|
55476
|
-
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */
|
|
55477
|
-
/* @__PURE__ */
|
|
55500
|
+
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx256(EuiPanel11, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs137(EuiFlexGroup29, { direction: "column", gutterSize: "s", children: [
|
|
55501
|
+
/* @__PURE__ */ jsx256(EuiFlexItem35, { children: /* @__PURE__ */ jsx256(EuiText50, { size: "s", children: /* @__PURE__ */ jsx256("h4", { children: t("workerStatusTitle") }) }) }),
|
|
55478
55502
|
/* @__PURE__ */ jsxs137(EuiFlexItem35, { css: { flexDirection: "row" }, children: [
|
|
55479
|
-
/* @__PURE__ */
|
|
55480
|
-
/* @__PURE__ */
|
|
55503
|
+
/* @__PURE__ */ jsx256(EuiText50, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
|
|
55504
|
+
/* @__PURE__ */ jsx256(EuiText50, { size: "s", children: numberOfQueuedJobs || "-" })
|
|
55481
55505
|
] }),
|
|
55482
55506
|
/* @__PURE__ */ jsxs137(EuiFlexItem35, { css: { flexDirection: "row" }, children: [
|
|
55483
|
-
/* @__PURE__ */
|
|
55484
|
-
/* @__PURE__ */
|
|
55507
|
+
/* @__PURE__ */ jsx256(EuiText50, { size: "s", style: { minWidth: 200 }, children: t("numberOfRunningJobs") }),
|
|
55508
|
+
/* @__PURE__ */ jsx256(EuiText50, { size: "s", children: numberOfRunningJobs || "-" })
|
|
55485
55509
|
] }),
|
|
55486
55510
|
/* @__PURE__ */ jsxs137(EuiFlexItem35, { css: { flexDirection: "row" }, children: [
|
|
55487
|
-
/* @__PURE__ */
|
|
55488
|
-
/* @__PURE__ */
|
|
55511
|
+
/* @__PURE__ */ jsx256(EuiText50, { size: "s", style: { minWidth: 200 }, children: t("numberOfWorkersOnline") }),
|
|
55512
|
+
/* @__PURE__ */ jsx256(EuiText50, { size: "s", children: numberOfWorkersOnline || "-" })
|
|
55489
55513
|
] })
|
|
55490
55514
|
] }) }) || null;
|
|
55491
55515
|
};
|
|
@@ -55493,11 +55517,11 @@ var WfoWorkerStatus = () => {
|
|
|
55493
55517
|
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
55494
55518
|
import { useTranslations as useTranslations86 } from "next-intl";
|
|
55495
55519
|
import { EuiButton as EuiButton19 } from "@elastic/eui";
|
|
55496
|
-
import { jsx as
|
|
55520
|
+
import { jsx as jsx257 } from "@emotion/react/jsx-runtime";
|
|
55497
55521
|
var WfoResetTextSearchIndexButton = () => {
|
|
55498
55522
|
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
55499
55523
|
const t = useTranslations86("settings.page");
|
|
55500
|
-
return /* @__PURE__ */
|
|
55524
|
+
return /* @__PURE__ */ jsx257(
|
|
55501
55525
|
EuiButton19,
|
|
55502
55526
|
{
|
|
55503
55527
|
onClick: () => resetTextSearchIndex(null),
|
|
@@ -55508,17 +55532,17 @@ var WfoResetTextSearchIndexButton = () => {
|
|
|
55508
55532
|
};
|
|
55509
55533
|
|
|
55510
55534
|
// src/components/WfoInsyncIcon/WfoInsyncIcon.tsx
|
|
55511
|
-
import { jsx as
|
|
55535
|
+
import { jsx as jsx258 } from "@emotion/react/jsx-runtime";
|
|
55512
55536
|
var WfoInsyncIcon = ({ inSync }) => {
|
|
55513
55537
|
const { theme } = useOrchestratorTheme();
|
|
55514
|
-
return inSync ? /* @__PURE__ */
|
|
55538
|
+
return inSync ? /* @__PURE__ */ jsx258(
|
|
55515
55539
|
WfoCheckmarkCircleFill,
|
|
55516
55540
|
{
|
|
55517
55541
|
height: 20,
|
|
55518
55542
|
width: 20,
|
|
55519
55543
|
color: theme.colors.primary
|
|
55520
55544
|
}
|
|
55521
|
-
) : /* @__PURE__ */
|
|
55545
|
+
) : /* @__PURE__ */ jsx258(
|
|
55522
55546
|
WfoMinusCircleFill,
|
|
55523
55547
|
{
|
|
55524
55548
|
height: 20,
|
|
@@ -55530,7 +55554,7 @@ var WfoInsyncIcon = ({ inSync }) => {
|
|
|
55530
55554
|
|
|
55531
55555
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
55532
55556
|
import React86 from "react";
|
|
55533
|
-
import { jsx as
|
|
55557
|
+
import { jsx as jsx259, jsxs as jsxs138 } from "@emotion/react/jsx-runtime";
|
|
55534
55558
|
var WfoErrorBoundary = class extends React86.Component {
|
|
55535
55559
|
constructor(props) {
|
|
55536
55560
|
super(props);
|
|
@@ -55550,7 +55574,7 @@ var WfoErrorBoundary = class extends React86.Component {
|
|
|
55550
55574
|
return /* @__PURE__ */ jsxs138("p", { children: [
|
|
55551
55575
|
"An unexpected error occurred, try to go back to the",
|
|
55552
55576
|
" ",
|
|
55553
|
-
/* @__PURE__ */
|
|
55577
|
+
/* @__PURE__ */ jsx259("a", { href: "/", children: "home page" })
|
|
55554
55578
|
] });
|
|
55555
55579
|
}
|
|
55556
55580
|
return this.props.children;
|
|
@@ -55593,7 +55617,7 @@ var WfoNoResults = ({ text, icon }) => {
|
|
|
55593
55617
|
};
|
|
55594
55618
|
|
|
55595
55619
|
// src/components/WfoRenderElementOrString/WfoRenderElementOrString.tsx
|
|
55596
|
-
import { Fragment as Fragment63, jsx as
|
|
55620
|
+
import { Fragment as Fragment63, jsx as jsx260 } from "@emotion/react/jsx-runtime";
|
|
55597
55621
|
var WfoRenderElementOrString = ({
|
|
55598
55622
|
children,
|
|
55599
55623
|
renderString
|
|
@@ -55601,13 +55625,13 @@ var WfoRenderElementOrString = ({
|
|
|
55601
55625
|
if (typeof children === "string" && renderString) {
|
|
55602
55626
|
return renderString(children);
|
|
55603
55627
|
}
|
|
55604
|
-
return /* @__PURE__ */
|
|
55628
|
+
return /* @__PURE__ */ jsx260(Fragment63, { children });
|
|
55605
55629
|
};
|
|
55606
55630
|
|
|
55607
55631
|
// src/components/WfoStartButton/WfoStartTaskComboBox.tsx
|
|
55608
55632
|
import { useTranslations as useTranslations87 } from "next-intl";
|
|
55609
55633
|
import { useRouter as useRouter15 } from "next/router";
|
|
55610
|
-
import { jsx as
|
|
55634
|
+
import { jsx as jsx261 } from "@emotion/react/jsx-runtime";
|
|
55611
55635
|
var WfoStartTaskButtonComboBox = () => {
|
|
55612
55636
|
const router = useRouter15();
|
|
55613
55637
|
const t = useTranslations87("common");
|
|
@@ -55629,7 +55653,7 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
55629
55653
|
});
|
|
55630
55654
|
}
|
|
55631
55655
|
};
|
|
55632
|
-
return /* @__PURE__ */
|
|
55656
|
+
return /* @__PURE__ */ jsx261(
|
|
55633
55657
|
WfoStartButtonComboBox,
|
|
55634
55658
|
{
|
|
55635
55659
|
buttonText: t("newTask"),
|
|
@@ -55726,7 +55750,7 @@ var subscriptionListTabs = [
|
|
|
55726
55750
|
import { useTranslations as useTranslations88 } from "next-intl";
|
|
55727
55751
|
import Link13 from "next/link";
|
|
55728
55752
|
import { useRouter as useRouter16 } from "next/router";
|
|
55729
|
-
import { jsx as
|
|
55753
|
+
import { jsx as jsx262 } from "@emotion/react/jsx-runtime";
|
|
55730
55754
|
var WfoSubscriptionsList = ({
|
|
55731
55755
|
alwaysOnFilters,
|
|
55732
55756
|
dataDisplayParams,
|
|
@@ -55752,7 +55776,7 @@ var WfoSubscriptionsList = ({
|
|
|
55752
55776
|
columnType: "data" /* DATA */,
|
|
55753
55777
|
label: t("id"),
|
|
55754
55778
|
width: "100px",
|
|
55755
|
-
renderData: (value) => /* @__PURE__ */
|
|
55779
|
+
renderData: (value) => /* @__PURE__ */ jsx262(WfoFirstPartUUID, { UUID: value }),
|
|
55756
55780
|
renderDetails: (value) => value,
|
|
55757
55781
|
renderTooltip: (value) => value
|
|
55758
55782
|
},
|
|
@@ -55760,20 +55784,20 @@ var WfoSubscriptionsList = ({
|
|
|
55760
55784
|
columnType: "data" /* DATA */,
|
|
55761
55785
|
label: t("description"),
|
|
55762
55786
|
width: "500px",
|
|
55763
|
-
renderData: (value, record) => /* @__PURE__ */
|
|
55787
|
+
renderData: (value, record) => /* @__PURE__ */ jsx262(Link13, { href: `/subscriptions/${record.subscriptionId}`, children: value }),
|
|
55764
55788
|
renderTooltip: (value) => value
|
|
55765
55789
|
},
|
|
55766
55790
|
status: {
|
|
55767
55791
|
columnType: "data" /* DATA */,
|
|
55768
55792
|
label: t("status"),
|
|
55769
55793
|
width: "120px",
|
|
55770
|
-
renderData: (value) => /* @__PURE__ */
|
|
55794
|
+
renderData: (value) => /* @__PURE__ */ jsx262(WfoSubscriptionStatusBadge, { status: value })
|
|
55771
55795
|
},
|
|
55772
55796
|
insync: {
|
|
55773
55797
|
columnType: "data" /* DATA */,
|
|
55774
55798
|
label: t("insync"),
|
|
55775
55799
|
width: "80px",
|
|
55776
|
-
renderData: (value) => /* @__PURE__ */
|
|
55800
|
+
renderData: (value) => /* @__PURE__ */ jsx262(WfoInsyncIcon, { inSync: value })
|
|
55777
55801
|
},
|
|
55778
55802
|
productName: {
|
|
55779
55803
|
columnType: "data" /* DATA */,
|
|
@@ -55797,7 +55821,7 @@ var WfoSubscriptionsList = ({
|
|
|
55797
55821
|
columnType: "data" /* DATA */,
|
|
55798
55822
|
label: t("startDate"),
|
|
55799
55823
|
width: "120px",
|
|
55800
|
-
renderData: (value) => /* @__PURE__ */
|
|
55824
|
+
renderData: (value) => /* @__PURE__ */ jsx262(WfoDateTime, { dateOrIsoString: value }),
|
|
55801
55825
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55802
55826
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
55803
55827
|
renderTooltip: (cellValue) => cellValue?.toString()
|
|
@@ -55806,7 +55830,7 @@ var WfoSubscriptionsList = ({
|
|
|
55806
55830
|
columnType: "data" /* DATA */,
|
|
55807
55831
|
label: t("endDate"),
|
|
55808
55832
|
width: "120px",
|
|
55809
|
-
renderData: (value) => /* @__PURE__ */
|
|
55833
|
+
renderData: (value) => /* @__PURE__ */ jsx262(WfoDateTime, { dateOrIsoString: value }),
|
|
55810
55834
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
55811
55835
|
clipboardText: parseDateToLocaleDateTimeString,
|
|
55812
55836
|
renderTooltip: (cellValue) => cellValue?.toString()
|
|
@@ -55816,7 +55840,7 @@ var WfoSubscriptionsList = ({
|
|
|
55816
55840
|
label: t("note"),
|
|
55817
55841
|
width: "300px",
|
|
55818
55842
|
renderData: (cellValue, row) => {
|
|
55819
|
-
return /* @__PURE__ */
|
|
55843
|
+
return /* @__PURE__ */ jsx262(
|
|
55820
55844
|
WfoSubscriptionNoteEdit,
|
|
55821
55845
|
{
|
|
55822
55846
|
onlyShowOnHover: true,
|
|
@@ -55832,7 +55856,7 @@ var WfoSubscriptionsList = ({
|
|
|
55832
55856
|
columnType: "control" /* CONTROL */,
|
|
55833
55857
|
label: t("actions"),
|
|
55834
55858
|
width: "80px",
|
|
55835
|
-
renderControl: (row) => /* @__PURE__ */
|
|
55859
|
+
renderControl: (row) => /* @__PURE__ */ jsx262(
|
|
55836
55860
|
WfoSubscriptionActions,
|
|
55837
55861
|
{
|
|
55838
55862
|
compactMode: true,
|
|
@@ -55844,9 +55868,9 @@ var WfoSubscriptionsList = ({
|
|
|
55844
55868
|
columnType: "data" /* DATA */,
|
|
55845
55869
|
label: t("metadata"),
|
|
55846
55870
|
width: "100px",
|
|
55847
|
-
renderData: (value) => /* @__PURE__ */
|
|
55848
|
-
renderDetails: (value) => value && /* @__PURE__ */
|
|
55849
|
-
renderTooltip: (value) => value && /* @__PURE__ */
|
|
55871
|
+
renderData: (value) => /* @__PURE__ */ jsx262(WfoInlineJson, { data: value }),
|
|
55872
|
+
renderDetails: (value) => value && /* @__PURE__ */ jsx262(WfoJsonCodeBlock, { data: value, isBasicStyle: true }),
|
|
55873
|
+
renderTooltip: (value) => value && /* @__PURE__ */ jsx262(WfoJsonCodeBlock, { data: value, isBasicStyle: false })
|
|
55850
55874
|
}
|
|
55851
55875
|
};
|
|
55852
55876
|
const [getSubscriptionListTrigger, { isFetching: isFetchingCsv }] = useLazyGetSubscriptionListQuery();
|
|
@@ -55892,7 +55916,7 @@ var WfoSubscriptionsList = ({
|
|
|
55892
55916
|
sortFields,
|
|
55893
55917
|
filterFields
|
|
55894
55918
|
);
|
|
55895
|
-
return /* @__PURE__ */
|
|
55919
|
+
return /* @__PURE__ */ jsx262(
|
|
55896
55920
|
WfoAdvancedTable,
|
|
55897
55921
|
{
|
|
55898
55922
|
queryString: dataDisplayParams.queryString,
|
|
@@ -55963,7 +55987,7 @@ var getWfoSummaryCardHeaderStyles = ({ theme }) => {
|
|
|
55963
55987
|
};
|
|
55964
55988
|
|
|
55965
55989
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
55966
|
-
import { jsx as
|
|
55990
|
+
import { jsx as jsx263, jsxs as jsxs140 } from "@emotion/react/jsx-runtime";
|
|
55967
55991
|
var WfoSummaryCardHeader = ({
|
|
55968
55992
|
text,
|
|
55969
55993
|
value,
|
|
@@ -55973,8 +55997,8 @@ var WfoSummaryCardHeader = ({
|
|
|
55973
55997
|
}) => {
|
|
55974
55998
|
const { theme } = useOrchestratorTheme();
|
|
55975
55999
|
const { avatarStyle, totalSectionStyle, valueStyle } = useWithOrchestratorTheme(getWfoSummaryCardHeaderStyles);
|
|
55976
|
-
return /* @__PURE__ */
|
|
55977
|
-
/* @__PURE__ */
|
|
56000
|
+
return /* @__PURE__ */ jsx263(EuiFlexItem36, { grow: 0, children: /* @__PURE__ */ jsx263(EuiPanel12, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs140(EuiFlexGroup31, { alignItems: "center", children: [
|
|
56001
|
+
/* @__PURE__ */ jsx263(
|
|
55978
56002
|
EuiAvatar,
|
|
55979
56003
|
{
|
|
55980
56004
|
iconSize: "l",
|
|
@@ -55988,10 +56012,10 @@ var WfoSummaryCardHeader = ({
|
|
|
55988
56012
|
}
|
|
55989
56013
|
),
|
|
55990
56014
|
/* @__PURE__ */ jsxs140("div", { css: totalSectionStyle, children: [
|
|
55991
|
-
/* @__PURE__ */
|
|
56015
|
+
/* @__PURE__ */ jsx263(EuiText51, { color: "subdued", children: text }),
|
|
55992
56016
|
/* @__PURE__ */ jsxs140(EuiFlexGroup31, { gutterSize: "s", alignItems: "center", children: [
|
|
55993
|
-
/* @__PURE__ */
|
|
55994
|
-
isFetching && /* @__PURE__ */
|
|
56017
|
+
/* @__PURE__ */ jsx263(EuiText51, { css: valueStyle, children: value }),
|
|
56018
|
+
isFetching && /* @__PURE__ */ jsx263(EuiLoadingSpinner3, {})
|
|
55995
56019
|
] })
|
|
55996
56020
|
] })
|
|
55997
56021
|
] }) }) });
|
|
@@ -56014,15 +56038,15 @@ import { EuiFlexGroup as EuiFlexGroup32, EuiFlexItem as EuiFlexItem37, EuiIcon a
|
|
|
56014
56038
|
|
|
56015
56039
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
56016
56040
|
import Link14 from "next/link";
|
|
56017
|
-
import { jsx as
|
|
56041
|
+
import { jsx as jsx264 } from "@emotion/react/jsx-runtime";
|
|
56018
56042
|
var WfoOptionalLink = ({
|
|
56019
56043
|
children,
|
|
56020
56044
|
href
|
|
56021
56045
|
}) => {
|
|
56022
56046
|
if (!href) {
|
|
56023
|
-
return /* @__PURE__ */
|
|
56047
|
+
return /* @__PURE__ */ jsx264("span", { children });
|
|
56024
56048
|
}
|
|
56025
|
-
return /* @__PURE__ */
|
|
56049
|
+
return /* @__PURE__ */ jsx264(Link14, { href, children });
|
|
56026
56050
|
};
|
|
56027
56051
|
|
|
56028
56052
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -56072,7 +56096,7 @@ var getWfoSummaryCardListStyles = ({ theme }) => {
|
|
|
56072
56096
|
};
|
|
56073
56097
|
|
|
56074
56098
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
56075
|
-
import { jsx as
|
|
56099
|
+
import { jsx as jsx265, jsxs as jsxs141 } from "@emotion/react/jsx-runtime";
|
|
56076
56100
|
var WfoSummaryCardListItem = ({
|
|
56077
56101
|
title,
|
|
56078
56102
|
value,
|
|
@@ -56085,9 +56109,9 @@ var WfoSummaryCardListItem = ({
|
|
|
56085
56109
|
listItemSubtitleStyle,
|
|
56086
56110
|
listItemHighlightIconStyle
|
|
56087
56111
|
} = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
56088
|
-
return /* @__PURE__ */
|
|
56112
|
+
return /* @__PURE__ */ jsx265(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs141(EuiFlexGroup32, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
56089
56113
|
/* @__PURE__ */ jsxs141(EuiFlexItem37, { children: [
|
|
56090
|
-
/* @__PURE__ */
|
|
56114
|
+
/* @__PURE__ */ jsx265(
|
|
56091
56115
|
EuiTextColor,
|
|
56092
56116
|
{
|
|
56093
56117
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -56095,22 +56119,22 @@ var WfoSummaryCardListItem = ({
|
|
|
56095
56119
|
children: title
|
|
56096
56120
|
}
|
|
56097
56121
|
),
|
|
56098
|
-
/* @__PURE__ */
|
|
56122
|
+
/* @__PURE__ */ jsx265(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
56099
56123
|
] }),
|
|
56100
|
-
/* @__PURE__ */
|
|
56124
|
+
/* @__PURE__ */ jsx265(
|
|
56101
56125
|
EuiFlexItem37,
|
|
56102
56126
|
{
|
|
56103
56127
|
className: url ? "highlight-icon" : void 0,
|
|
56104
56128
|
grow: false,
|
|
56105
56129
|
css: listItemHighlightIconStyle,
|
|
56106
|
-
children: /* @__PURE__ */
|
|
56130
|
+
children: /* @__PURE__ */ jsx265(EuiIcon6, { type: "sortRight", color: "primary" })
|
|
56107
56131
|
}
|
|
56108
56132
|
)
|
|
56109
56133
|
] }) });
|
|
56110
56134
|
};
|
|
56111
56135
|
|
|
56112
56136
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
56113
|
-
import { jsx as
|
|
56137
|
+
import { jsx as jsx266, jsxs as jsxs142 } from "@emotion/react/jsx-runtime";
|
|
56114
56138
|
var WfoSummaryCardList = ({
|
|
56115
56139
|
title,
|
|
56116
56140
|
items,
|
|
@@ -56120,7 +56144,7 @@ var WfoSummaryCardList = ({
|
|
|
56120
56144
|
const router = useRouter17();
|
|
56121
56145
|
const euiScrollBarStyle = useEuiScrollBar3();
|
|
56122
56146
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
56123
|
-
return /* @__PURE__ */
|
|
56147
|
+
return /* @__PURE__ */ jsx266(EuiFlexItem38, { children: /* @__PURE__ */ jsxs142(
|
|
56124
56148
|
EuiPanel13,
|
|
56125
56149
|
{
|
|
56126
56150
|
css: listContainerStyle,
|
|
@@ -56129,10 +56153,10 @@ var WfoSummaryCardList = ({
|
|
|
56129
56153
|
paddingSize: "l",
|
|
56130
56154
|
children: [
|
|
56131
56155
|
/* @__PURE__ */ jsxs142("div", { children: [
|
|
56132
|
-
/* @__PURE__ */
|
|
56133
|
-
/* @__PURE__ */
|
|
56134
|
-
/* @__PURE__ */
|
|
56135
|
-
/* @__PURE__ */
|
|
56156
|
+
/* @__PURE__ */ jsx266("p", { css: listHeaderStyle, children: title }),
|
|
56157
|
+
/* @__PURE__ */ jsx266(EuiSpacer29, { size: "m" }),
|
|
56158
|
+
/* @__PURE__ */ jsx266(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx266("div", { css: [listStyle, euiScrollBarStyle], children: items?.map((item, index) => /* @__PURE__ */ jsxs142("div", { children: [
|
|
56159
|
+
/* @__PURE__ */ jsx266(
|
|
56136
56160
|
WfoSummaryCardListItem,
|
|
56137
56161
|
{
|
|
56138
56162
|
title: item.title,
|
|
@@ -56140,11 +56164,11 @@ var WfoSummaryCardList = ({
|
|
|
56140
56164
|
url: item.url
|
|
56141
56165
|
}
|
|
56142
56166
|
),
|
|
56143
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
56167
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx266(EuiHorizontalRule10, { margin: "none" })
|
|
56144
56168
|
] }, index)) }) })
|
|
56145
56169
|
] }),
|
|
56146
|
-
/* @__PURE__ */
|
|
56147
|
-
button && /* @__PURE__ */
|
|
56170
|
+
/* @__PURE__ */ jsx266(EuiSpacer29, { size: "m" }),
|
|
56171
|
+
button && /* @__PURE__ */ jsx266(
|
|
56148
56172
|
EuiButton20,
|
|
56149
56173
|
{
|
|
56150
56174
|
fullWidth: true,
|
|
@@ -56159,10 +56183,10 @@ var WfoSummaryCardList = ({
|
|
|
56159
56183
|
|
|
56160
56184
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
56161
56185
|
import { EuiFlexGrid as EuiFlexGrid2, useCurrentEuiBreakpoint } from "@elastic/eui";
|
|
56162
|
-
import { jsx as
|
|
56186
|
+
import { jsx as jsx267 } from "@emotion/react/jsx-runtime";
|
|
56163
56187
|
var WfoSummaryCards = ({ children }) => {
|
|
56164
56188
|
const currentBreakpoint = useCurrentEuiBreakpoint();
|
|
56165
|
-
return /* @__PURE__ */
|
|
56189
|
+
return /* @__PURE__ */ jsx267(
|
|
56166
56190
|
EuiFlexGrid2,
|
|
56167
56191
|
{
|
|
56168
56192
|
responsive: false,
|
|
@@ -56189,7 +56213,7 @@ var getWfoSummaryCardsStyles = ({ theme }) => {
|
|
|
56189
56213
|
};
|
|
56190
56214
|
|
|
56191
56215
|
// src/components/WfoSummary/WfoSummaryCard.tsx
|
|
56192
|
-
import { jsx as
|
|
56216
|
+
import { jsx as jsx268, jsxs as jsxs143 } from "@emotion/react/jsx-runtime";
|
|
56193
56217
|
var SummaryCardStatus = /* @__PURE__ */ ((SummaryCardStatus2) => {
|
|
56194
56218
|
SummaryCardStatus2["Success"] = "Success";
|
|
56195
56219
|
SummaryCardStatus2["Error"] = "Error";
|
|
@@ -56215,7 +56239,7 @@ var WfoSummaryCard = ({
|
|
|
56215
56239
|
switch (status) {
|
|
56216
56240
|
case "Success" /* Success */:
|
|
56217
56241
|
return {
|
|
56218
|
-
iconType: () => /* @__PURE__ */
|
|
56242
|
+
iconType: () => /* @__PURE__ */ jsx268(
|
|
56219
56243
|
WfoCheckmarkCircleFill,
|
|
56220
56244
|
{
|
|
56221
56245
|
width: 32,
|
|
@@ -56227,7 +56251,7 @@ var WfoSummaryCard = ({
|
|
|
56227
56251
|
};
|
|
56228
56252
|
case "Error" /* Error */:
|
|
56229
56253
|
return {
|
|
56230
|
-
iconType: () => /* @__PURE__ */
|
|
56254
|
+
iconType: () => /* @__PURE__ */ jsx268(
|
|
56231
56255
|
WfoXCircleFill,
|
|
56232
56256
|
{
|
|
56233
56257
|
width: 32,
|
|
@@ -56239,7 +56263,7 @@ var WfoSummaryCard = ({
|
|
|
56239
56263
|
};
|
|
56240
56264
|
case "Neutral" /* Neutral */:
|
|
56241
56265
|
return {
|
|
56242
|
-
iconType: () => /* @__PURE__ */
|
|
56266
|
+
iconType: () => /* @__PURE__ */ jsx268(
|
|
56243
56267
|
WfoCubeFill,
|
|
56244
56268
|
{
|
|
56245
56269
|
width: 32,
|
|
@@ -56251,7 +56275,7 @@ var WfoSummaryCard = ({
|
|
|
56251
56275
|
};
|
|
56252
56276
|
default:
|
|
56253
56277
|
return headerBadge ?? {
|
|
56254
|
-
iconType: () => /* @__PURE__ */
|
|
56278
|
+
iconType: () => /* @__PURE__ */ jsx268(
|
|
56255
56279
|
WfoCubeFill,
|
|
56256
56280
|
{
|
|
56257
56281
|
width: 32,
|
|
@@ -56264,7 +56288,7 @@ var WfoSummaryCard = ({
|
|
|
56264
56288
|
}
|
|
56265
56289
|
};
|
|
56266
56290
|
return /* @__PURE__ */ jsxs143(EuiFlexItem39, { css: cardContainerStyle, children: [
|
|
56267
|
-
/* @__PURE__ */
|
|
56291
|
+
/* @__PURE__ */ jsx268(
|
|
56268
56292
|
WfoSummaryCardHeader,
|
|
56269
56293
|
{
|
|
56270
56294
|
text: headerTitle,
|
|
@@ -56273,8 +56297,8 @@ var WfoSummaryCard = ({
|
|
|
56273
56297
|
...getIconTypeAndColorForHeaderStatus(headerStatus)
|
|
56274
56298
|
}
|
|
56275
56299
|
),
|
|
56276
|
-
/* @__PURE__ */
|
|
56277
|
-
/* @__PURE__ */
|
|
56300
|
+
/* @__PURE__ */ jsx268(EuiSpacer30, { size: "m" }),
|
|
56301
|
+
/* @__PURE__ */ jsx268(
|
|
56278
56302
|
WfoSummaryCardList,
|
|
56279
56303
|
{
|
|
56280
56304
|
title: listTitle,
|
|
@@ -56384,7 +56408,7 @@ var productsSummaryQueryVariables = {
|
|
|
56384
56408
|
};
|
|
56385
56409
|
|
|
56386
56410
|
// src/components/WfoSummary/WfoActiveWorkflowsSummaryCard.tsx
|
|
56387
|
-
import { jsx as
|
|
56411
|
+
import { jsx as jsx269 } from "@emotion/react/jsx-runtime";
|
|
56388
56412
|
var WfoActiveWorkflowsSummaryCard = () => {
|
|
56389
56413
|
const t = useTranslations89("startPage.activeWorkflows");
|
|
56390
56414
|
const {
|
|
@@ -56392,7 +56416,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
|
|
|
56392
56416
|
isFetching,
|
|
56393
56417
|
isLoading
|
|
56394
56418
|
} = useGetProcessListSummaryQuery(activeWorkflowsListSummaryQueryVariables);
|
|
56395
|
-
return /* @__PURE__ */
|
|
56419
|
+
return /* @__PURE__ */ jsx269(
|
|
56396
56420
|
WfoSummaryCard,
|
|
56397
56421
|
{
|
|
56398
56422
|
headerTitle: t("headerTitle"),
|
|
@@ -56412,7 +56436,7 @@ var WfoActiveWorkflowsSummaryCard = () => {
|
|
|
56412
56436
|
|
|
56413
56437
|
// src/components/WfoSummary/WfoFailedTasksSummaryCard.tsx
|
|
56414
56438
|
import { useTranslations as useTranslations90 } from "next-intl";
|
|
56415
|
-
import { jsx as
|
|
56439
|
+
import { jsx as jsx270 } from "@emotion/react/jsx-runtime";
|
|
56416
56440
|
var WfoFailedTasksSummaryCard = () => {
|
|
56417
56441
|
const t = useTranslations90("startPage.failedTasks");
|
|
56418
56442
|
const {
|
|
@@ -56420,7 +56444,7 @@ var WfoFailedTasksSummaryCard = () => {
|
|
|
56420
56444
|
isFetching,
|
|
56421
56445
|
isLoading
|
|
56422
56446
|
} = useGetProcessListSummaryQuery(taskListSummaryQueryVariables);
|
|
56423
|
-
return /* @__PURE__ */
|
|
56447
|
+
return /* @__PURE__ */ jsx270(
|
|
56424
56448
|
WfoSummaryCard,
|
|
56425
56449
|
{
|
|
56426
56450
|
headerTitle: t("headerTitle"),
|
|
@@ -56440,7 +56464,7 @@ var WfoFailedTasksSummaryCard = () => {
|
|
|
56440
56464
|
|
|
56441
56465
|
// src/components/WfoSummary/WfoLatestActiveSubscriptionsSummaryCard.tsx
|
|
56442
56466
|
import { useTranslations as useTranslations91 } from "next-intl";
|
|
56443
|
-
import { jsx as
|
|
56467
|
+
import { jsx as jsx271 } from "@emotion/react/jsx-runtime";
|
|
56444
56468
|
var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
56445
56469
|
const t = useTranslations91("startPage.activeSubscriptions");
|
|
56446
56470
|
const {
|
|
@@ -56450,7 +56474,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
|
56450
56474
|
} = useGetSubscriptionSummaryListQuery(
|
|
56451
56475
|
subscriptionsListSummaryQueryVariables
|
|
56452
56476
|
);
|
|
56453
|
-
return /* @__PURE__ */
|
|
56477
|
+
return /* @__PURE__ */ jsx271(
|
|
56454
56478
|
WfoSummaryCard,
|
|
56455
56479
|
{
|
|
56456
56480
|
headerTitle: t("headerTitle"),
|
|
@@ -56470,7 +56494,7 @@ var WfoLatestActiveSubscriptionsSummaryCard = () => {
|
|
|
56470
56494
|
|
|
56471
56495
|
// src/components/WfoSummary/WfoLatestOutOfSyncSubscriptionSummaryCard.tsx
|
|
56472
56496
|
import { useTranslations as useTranslations92 } from "next-intl";
|
|
56473
|
-
import { jsx as
|
|
56497
|
+
import { jsx as jsx272 } from "@emotion/react/jsx-runtime";
|
|
56474
56498
|
var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
56475
56499
|
const t = useTranslations92("startPage.outOfSyncSubscriptions");
|
|
56476
56500
|
const {
|
|
@@ -56485,7 +56509,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
|
56485
56509
|
["sortBy" /* SORT_BY */]: "field-startDate_order-ASC",
|
|
56486
56510
|
["queryString" /* QUERY_STRING */]: "status:(provisioning|active) insync:false"
|
|
56487
56511
|
};
|
|
56488
|
-
return /* @__PURE__ */
|
|
56512
|
+
return /* @__PURE__ */ jsx272(
|
|
56489
56513
|
WfoSummaryCard,
|
|
56490
56514
|
{
|
|
56491
56515
|
headerTitle: t("headerTitle"),
|
|
@@ -56508,7 +56532,7 @@ var WfoLatestOutOfSyncSubscriptionSummaryCard = () => {
|
|
|
56508
56532
|
|
|
56509
56533
|
// src/components/WfoSummary/WfoMyWorkflowsSummaryCard.tsx
|
|
56510
56534
|
import { useTranslations as useTranslations93 } from "next-intl";
|
|
56511
|
-
import { jsx as
|
|
56535
|
+
import { jsx as jsx273 } from "@emotion/react/jsx-runtime";
|
|
56512
56536
|
var WfoMyWorkflowsSummaryCard = ({
|
|
56513
56537
|
username
|
|
56514
56538
|
}) => {
|
|
@@ -56525,7 +56549,7 @@ var WfoMyWorkflowsSummaryCard = ({
|
|
|
56525
56549
|
["sortBy" /* SORT_BY */]: "field-lastModifiedAt_order-DESC",
|
|
56526
56550
|
["queryString" /* QUERY_STRING */]: `createdBy:"${username}"`
|
|
56527
56551
|
};
|
|
56528
|
-
return /* @__PURE__ */
|
|
56552
|
+
return /* @__PURE__ */ jsx273(
|
|
56529
56553
|
WfoSummaryCard,
|
|
56530
56554
|
{
|
|
56531
56555
|
headerTitle: t("headerTitle"),
|
|
@@ -56548,7 +56572,7 @@ var WfoMyWorkflowsSummaryCard = ({
|
|
|
56548
56572
|
|
|
56549
56573
|
// src/components/WfoSummary/WfoProductsSummaryCard.tsx
|
|
56550
56574
|
import { useTranslations as useTranslations94 } from "next-intl";
|
|
56551
|
-
import { jsx as
|
|
56575
|
+
import { jsx as jsx274, jsxs as jsxs144 } from "@emotion/react/jsx-runtime";
|
|
56552
56576
|
var WfoProductsSummaryCard = () => {
|
|
56553
56577
|
const t = useTranslations94("startPage.products");
|
|
56554
56578
|
const {
|
|
@@ -56568,13 +56592,13 @@ var WfoProductsSummaryCard = () => {
|
|
|
56568
56592
|
justifyContent: "space-between"
|
|
56569
56593
|
},
|
|
56570
56594
|
children: [
|
|
56571
|
-
/* @__PURE__ */
|
|
56572
|
-
/* @__PURE__ */
|
|
56595
|
+
/* @__PURE__ */ jsx274("div", { children: product.name }),
|
|
56596
|
+
/* @__PURE__ */ jsx274("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
56573
56597
|
]
|
|
56574
56598
|
}
|
|
56575
56599
|
)
|
|
56576
56600
|
})) ?? [];
|
|
56577
|
-
return /* @__PURE__ */
|
|
56601
|
+
return /* @__PURE__ */ jsx274(
|
|
56578
56602
|
WfoSummaryCard,
|
|
56579
56603
|
{
|
|
56580
56604
|
headerTitle: t("headerTitle"),
|
|
@@ -56590,7 +56614,7 @@ var WfoProductsSummaryCard = () => {
|
|
|
56590
56614
|
|
|
56591
56615
|
// src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx
|
|
56592
56616
|
import { EuiPageHeader as EuiPageHeader3 } from "@elastic/eui";
|
|
56593
|
-
import { Fragment as Fragment64, jsx as
|
|
56617
|
+
import { Fragment as Fragment64, jsx as jsx275, jsxs as jsxs145 } from "@emotion/react/jsx-runtime";
|
|
56594
56618
|
var WfoTitleWithWebsocketBadge = ({
|
|
56595
56619
|
title
|
|
56596
56620
|
}) => {
|
|
@@ -56598,26 +56622,26 @@ var WfoTitleWithWebsocketBadge = ({
|
|
|
56598
56622
|
const pageTitle = useWebSockets ? /* @__PURE__ */ jsxs145(Fragment64, { children: [
|
|
56599
56623
|
title,
|
|
56600
56624
|
" ",
|
|
56601
|
-
/* @__PURE__ */
|
|
56625
|
+
/* @__PURE__ */ jsx275(WfoWebsocketStatusBadge, {})
|
|
56602
56626
|
] }) : title;
|
|
56603
|
-
return /* @__PURE__ */
|
|
56627
|
+
return /* @__PURE__ */ jsx275(EuiPageHeader3, { pageTitle });
|
|
56604
56628
|
};
|
|
56605
56629
|
|
|
56606
56630
|
// src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
|
|
56607
|
-
import { useState as
|
|
56631
|
+
import { useState as useState57 } from "react";
|
|
56608
56632
|
import {
|
|
56609
56633
|
EuiButtonEmpty as EuiButtonEmpty5,
|
|
56610
56634
|
EuiFlexGroup as EuiFlexGroup33,
|
|
56611
56635
|
EuiPopover as EuiPopover9,
|
|
56612
56636
|
EuiRadioGroup as EuiRadioGroup2
|
|
56613
56637
|
} from "@elastic/eui";
|
|
56614
|
-
import { jsx as
|
|
56638
|
+
import { jsx as jsx276 } from "@emotion/react/jsx-runtime";
|
|
56615
56639
|
var WfoRadioDropdown = ({
|
|
56616
56640
|
options,
|
|
56617
56641
|
onUpdateOption,
|
|
56618
56642
|
selectedOption
|
|
56619
56643
|
}) => {
|
|
56620
|
-
const [isOpen, setIsOpen] =
|
|
56644
|
+
const [isOpen, setIsOpen] = useState57(false);
|
|
56621
56645
|
const handleClose = () => {
|
|
56622
56646
|
if (isOpen) {
|
|
56623
56647
|
setIsOpen(false);
|
|
@@ -56637,16 +56661,16 @@ var WfoRadioDropdown = ({
|
|
|
56637
56661
|
id: option.id,
|
|
56638
56662
|
label: option.label
|
|
56639
56663
|
}));
|
|
56640
|
-
return /* @__PURE__ */
|
|
56664
|
+
return /* @__PURE__ */ jsx276(
|
|
56641
56665
|
EuiFlexGroup33,
|
|
56642
56666
|
{
|
|
56643
56667
|
gutterSize: "s",
|
|
56644
56668
|
alignItems: "center",
|
|
56645
56669
|
justifyContent: "flexEnd",
|
|
56646
|
-
children: /* @__PURE__ */
|
|
56670
|
+
children: /* @__PURE__ */ jsx276(
|
|
56647
56671
|
EuiPopover9,
|
|
56648
56672
|
{
|
|
56649
|
-
button: /* @__PURE__ */
|
|
56673
|
+
button: /* @__PURE__ */ jsx276(
|
|
56650
56674
|
EuiButtonEmpty5,
|
|
56651
56675
|
{
|
|
56652
56676
|
size: "s",
|
|
@@ -56667,7 +56691,7 @@ var WfoRadioDropdown = ({
|
|
|
56667
56691
|
isOpen,
|
|
56668
56692
|
closePopover: handleClose,
|
|
56669
56693
|
anchorPosition: "downLeft",
|
|
56670
|
-
children: /* @__PURE__ */
|
|
56694
|
+
children: /* @__PURE__ */ jsx276(
|
|
56671
56695
|
EuiRadioGroup2,
|
|
56672
56696
|
{
|
|
56673
56697
|
options: radioGroupOptions,
|
|
@@ -56741,7 +56765,7 @@ var {
|
|
|
56741
56765
|
} = subscriptionListMutationApi;
|
|
56742
56766
|
|
|
56743
56767
|
// src/components/WfoInlineNoteEdit/WfoSubscriptionNoteEdit.tsx
|
|
56744
|
-
import { jsx as
|
|
56768
|
+
import { jsx as jsx277 } from "@emotion/react/jsx-runtime";
|
|
56745
56769
|
var WfoSubscriptionNoteEdit = ({
|
|
56746
56770
|
onlyShowOnHover = false,
|
|
56747
56771
|
queryVariables,
|
|
@@ -56767,7 +56791,7 @@ var WfoSubscriptionNoteEdit = ({
|
|
|
56767
56791
|
note: note2
|
|
56768
56792
|
});
|
|
56769
56793
|
};
|
|
56770
|
-
return /* @__PURE__ */
|
|
56794
|
+
return /* @__PURE__ */ jsx277(
|
|
56771
56795
|
WfoInlineEdit,
|
|
56772
56796
|
{
|
|
56773
56797
|
value: note?.trim() ? note : INVISIBLE_CHARACTER,
|
|
@@ -56778,7 +56802,7 @@ var WfoSubscriptionNoteEdit = ({
|
|
|
56778
56802
|
};
|
|
56779
56803
|
|
|
56780
56804
|
// src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx
|
|
56781
|
-
import { jsx as
|
|
56805
|
+
import { jsx as jsx278 } from "@emotion/react/jsx-runtime";
|
|
56782
56806
|
var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }) => {
|
|
56783
56807
|
const { data, endpointName } = useGetSubscriptionDetailQuery({
|
|
56784
56808
|
subscriptionId
|
|
@@ -56801,7 +56825,7 @@ var WfoSubscriptionDetailNoteEdit = ({ subscriptionId, onlyShowOnHover = false }
|
|
|
56801
56825
|
note
|
|
56802
56826
|
});
|
|
56803
56827
|
};
|
|
56804
|
-
return /* @__PURE__ */
|
|
56828
|
+
return /* @__PURE__ */ jsx278(
|
|
56805
56829
|
WfoInlineEdit,
|
|
56806
56830
|
{
|
|
56807
56831
|
value: selectedItem?.note?.trim() ? selectedItem.note : INVISIBLE_CHARACTER,
|
|
@@ -56828,7 +56852,7 @@ var getStyles14 = ({ theme }) => {
|
|
|
56828
56852
|
};
|
|
56829
56853
|
|
|
56830
56854
|
// src/components/WfoTableCodeBlock/WfoTableCodeBlock.tsx
|
|
56831
|
-
import { jsx as
|
|
56855
|
+
import { jsx as jsx279 } from "@emotion/react/jsx-runtime";
|
|
56832
56856
|
var WfoTableCodeBlock = ({
|
|
56833
56857
|
stepState: data
|
|
56834
56858
|
}) => {
|
|
@@ -56844,7 +56868,7 @@ var WfoTableCodeBlock = ({
|
|
|
56844
56868
|
};
|
|
56845
56869
|
}
|
|
56846
56870
|
);
|
|
56847
|
-
return /* @__PURE__ */
|
|
56871
|
+
return /* @__PURE__ */ jsx279(EuiFlexItem40, { css: tableCodeBlockMarginStyle, children: /* @__PURE__ */ jsx279(
|
|
56848
56872
|
WfoKeyValueTable,
|
|
56849
56873
|
{
|
|
56850
56874
|
keyValues,
|
|
@@ -56854,11 +56878,11 @@ var WfoTableCodeBlock = ({
|
|
|
56854
56878
|
};
|
|
56855
56879
|
|
|
56856
56880
|
// src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
|
|
56857
|
-
import { useEffect as useEffect41, useState as
|
|
56881
|
+
import { useEffect as useEffect41, useState as useState64 } from "react";
|
|
56858
56882
|
import { useTranslations as useTranslations106 } from "next-intl";
|
|
56859
56883
|
import {
|
|
56860
56884
|
EuiButton as EuiButton23,
|
|
56861
|
-
EuiCallOut as
|
|
56885
|
+
EuiCallOut as EuiCallOut5,
|
|
56862
56886
|
EuiFieldSearch as EuiFieldSearch3,
|
|
56863
56887
|
EuiFlexGroup as EuiFlexGroup46,
|
|
56864
56888
|
EuiFlexItem as EuiFlexItem52,
|
|
@@ -56870,9 +56894,9 @@ import {
|
|
|
56870
56894
|
} from "@elastic/eui";
|
|
56871
56895
|
|
|
56872
56896
|
// src/hooks/useDebounce.ts
|
|
56873
|
-
import { useEffect as useEffect36, useState as
|
|
56897
|
+
import { useEffect as useEffect36, useState as useState58 } from "react";
|
|
56874
56898
|
function useDebounce(value, delay) {
|
|
56875
|
-
const [debouncedValue, setDebouncedValue] =
|
|
56899
|
+
const [debouncedValue, setDebouncedValue] = useState58(value);
|
|
56876
56900
|
useEffect36(() => {
|
|
56877
56901
|
if (delay <= 0) {
|
|
56878
56902
|
setDebouncedValue(value);
|
|
@@ -56889,9 +56913,9 @@ function useDebounce(value, delay) {
|
|
|
56889
56913
|
}
|
|
56890
56914
|
|
|
56891
56915
|
// src/hooks/useSearch.ts
|
|
56892
|
-
import { useEffect as useEffect37, useState as
|
|
56916
|
+
import { useEffect as useEffect37, useState as useState59 } from "react";
|
|
56893
56917
|
var useSearch = (query, entityType, filterGroup, limit) => {
|
|
56894
|
-
const [results, setResults] =
|
|
56918
|
+
const [results, setResults] = useState59({
|
|
56895
56919
|
data: [],
|
|
56896
56920
|
page_info: { has_next_page: false, next_page_cursor: null },
|
|
56897
56921
|
search_metadata: { search_type: null, description: null }
|
|
@@ -56947,12 +56971,12 @@ var useSearch = (query, entityType, filterGroup, limit) => {
|
|
|
56947
56971
|
};
|
|
56948
56972
|
|
|
56949
56973
|
// src/hooks/useSearchPagination.ts
|
|
56950
|
-
import { useCallback as useCallback13, useState as
|
|
56974
|
+
import { useCallback as useCallback13, useState as useState60 } from "react";
|
|
56951
56975
|
var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageSize, results, setResults) => {
|
|
56952
|
-
const [currentPage, setCurrentPage] =
|
|
56953
|
-
const [pageHistory, setPageHistory] =
|
|
56954
|
-
const [error, setError] =
|
|
56955
|
-
const [isLoadingMore, setIsLoadingMore] =
|
|
56976
|
+
const [currentPage, setCurrentPage] = useState60(1);
|
|
56977
|
+
const [pageHistory, setPageHistory] = useState60([]);
|
|
56978
|
+
const [error, setError] = useState60(null);
|
|
56979
|
+
const [isLoadingMore, setIsLoadingMore] = useState60(false);
|
|
56956
56980
|
const [triggerSearchPagination] = useSearchWithPaginationMutation();
|
|
56957
56981
|
const handleNextPage = useCallback13(
|
|
56958
56982
|
async (nextPageCursor) => {
|
|
@@ -57045,7 +57069,7 @@ var useSearchPagination = (debouncedQuery, selectedEntityTab, filterGroup, pageS
|
|
|
57045
57069
|
};
|
|
57046
57070
|
|
|
57047
57071
|
// src/hooks/useUrlParams.ts
|
|
57048
|
-
import { useCallback as useCallback14, useEffect as useEffect38, useState as
|
|
57072
|
+
import { useCallback as useCallback14, useEffect as useEffect38, useState as useState61 } from "react";
|
|
57049
57073
|
|
|
57050
57074
|
// src/components/WfoSearchPage/constants.ts
|
|
57051
57075
|
var DEFAULT_PAGE_SIZE2 = 5;
|
|
@@ -57065,32 +57089,32 @@ var DEFAULT_ENTITY_TAB = "SUBSCRIPTION";
|
|
|
57065
57089
|
|
|
57066
57090
|
// src/hooks/useUrlParams.ts
|
|
57067
57091
|
var useUrlParams = () => {
|
|
57068
|
-
const [urlParams, setUrlParams] =
|
|
57092
|
+
const [urlParams, setUrlParams] = useState61(() => {
|
|
57069
57093
|
if (typeof window !== "undefined") {
|
|
57070
57094
|
return new URLSearchParams(window.location.search);
|
|
57071
57095
|
}
|
|
57072
57096
|
return new URLSearchParams();
|
|
57073
57097
|
});
|
|
57074
|
-
const [query, setQuery] =
|
|
57098
|
+
const [query, setQuery] = useState61(() => {
|
|
57075
57099
|
const queryParam = urlParams.get("q");
|
|
57076
57100
|
return queryParam || "";
|
|
57077
57101
|
});
|
|
57078
|
-
const [selectedEntityTab, setSelectedEntityTab] =
|
|
57102
|
+
const [selectedEntityTab, setSelectedEntityTab] = useState61(
|
|
57079
57103
|
() => {
|
|
57080
57104
|
const tabParam = urlParams.get("tab");
|
|
57081
57105
|
return tabParam && VALID_ENTITY_TYPES.includes(tabParam) ? tabParam : DEFAULT_ENTITY_TAB;
|
|
57082
57106
|
}
|
|
57083
57107
|
);
|
|
57084
|
-
const [showFilters, setShowFilters] =
|
|
57108
|
+
const [showFilters, setShowFilters] = useState61(() => {
|
|
57085
57109
|
return urlParams.get("filters") === "true";
|
|
57086
57110
|
});
|
|
57087
|
-
const [selectedRecordIndex, setSelectedRecordIndex] =
|
|
57111
|
+
const [selectedRecordIndex, setSelectedRecordIndex] = useState61(
|
|
57088
57112
|
() => {
|
|
57089
57113
|
const indexParam = urlParams.get("selected");
|
|
57090
57114
|
return indexParam ? parseInt(indexParam, 10) || 0 : 0;
|
|
57091
57115
|
}
|
|
57092
57116
|
);
|
|
57093
|
-
const [selectedRecordId, setSelectedRecordId] =
|
|
57117
|
+
const [selectedRecordId, setSelectedRecordId] = useState61(
|
|
57094
57118
|
() => {
|
|
57095
57119
|
return urlParams.get("id") || null;
|
|
57096
57120
|
}
|
|
@@ -57146,7 +57170,7 @@ import { useTranslations as useTranslations101 } from "next-intl";
|
|
|
57146
57170
|
import {
|
|
57147
57171
|
EuiButton as EuiButton22,
|
|
57148
57172
|
EuiButtonIcon as EuiButtonIcon16,
|
|
57149
|
-
EuiCallOut as
|
|
57173
|
+
EuiCallOut as EuiCallOut4,
|
|
57150
57174
|
EuiCode as EuiCode2,
|
|
57151
57175
|
EuiFlexGroup as EuiFlexGroup39,
|
|
57152
57176
|
EuiFlexItem as EuiFlexItem46,
|
|
@@ -57156,7 +57180,7 @@ import {
|
|
|
57156
57180
|
} from "@elastic/eui";
|
|
57157
57181
|
|
|
57158
57182
|
// src/components/WfoSearchPage/WfoConditionRow/WfoConditionRow.tsx
|
|
57159
|
-
import { useState as
|
|
57183
|
+
import { useState as useState63 } from "react";
|
|
57160
57184
|
import { useTranslations as useTranslations100 } from "next-intl";
|
|
57161
57185
|
import {
|
|
57162
57186
|
EuiButtonIcon as EuiButtonIcon15,
|
|
@@ -57167,7 +57191,7 @@ import {
|
|
|
57167
57191
|
} from "@elastic/eui";
|
|
57168
57192
|
|
|
57169
57193
|
// src/hooks/usePathAutoComplete.ts
|
|
57170
|
-
import { useEffect as useEffect39, useState as
|
|
57194
|
+
import { useEffect as useEffect39, useState as useState62 } from "react";
|
|
57171
57195
|
var FALLBACK_DEFINITIONS = {
|
|
57172
57196
|
string: {
|
|
57173
57197
|
operators: ["eq", "neq"],
|
|
@@ -57207,7 +57231,7 @@ var FALLBACK_DEFINITIONS = {
|
|
|
57207
57231
|
}
|
|
57208
57232
|
};
|
|
57209
57233
|
var usePathAutocomplete = (prefix, entityType) => {
|
|
57210
|
-
const [paths, setPaths] =
|
|
57234
|
+
const [paths, setPaths] = useState62([]);
|
|
57211
57235
|
const debouncedPrefix = useDebounce(prefix, 300);
|
|
57212
57236
|
const { data: definitions = FALLBACK_DEFINITIONS, isError: defError } = useSearchDefinitionsQuery();
|
|
57213
57237
|
const {
|
|
@@ -57277,7 +57301,7 @@ import {
|
|
|
57277
57301
|
EuiIcon as EuiIcon7,
|
|
57278
57302
|
EuiText as EuiText52
|
|
57279
57303
|
} from "@elastic/eui";
|
|
57280
|
-
import { Fragment as Fragment65, jsx as
|
|
57304
|
+
import { Fragment as Fragment65, jsx as jsx280, jsxs as jsxs146 } from "@emotion/react/jsx-runtime";
|
|
57281
57305
|
var ValueControl = ({
|
|
57282
57306
|
pathInfo,
|
|
57283
57307
|
operator,
|
|
@@ -57304,7 +57328,7 @@ var ValueControl = ({
|
|
|
57304
57328
|
const currentValue = String(value || "");
|
|
57305
57329
|
const hasWildcards = currentValue.includes("%") || currentValue.includes("_");
|
|
57306
57330
|
return /* @__PURE__ */ jsxs146(Fragment65, { children: [
|
|
57307
|
-
/* @__PURE__ */
|
|
57331
|
+
/* @__PURE__ */ jsx280(
|
|
57308
57332
|
EuiFieldText5,
|
|
57309
57333
|
{
|
|
57310
57334
|
placeholder: "Enter pattern (% = any chars, _ = single char)",
|
|
@@ -57318,11 +57342,11 @@ var ValueControl = ({
|
|
|
57318
57342
|
handleLikeChange(finalValue);
|
|
57319
57343
|
}
|
|
57320
57344
|
},
|
|
57321
|
-
prepend: /* @__PURE__ */
|
|
57345
|
+
prepend: /* @__PURE__ */ jsx280(EuiIcon7, { type: "search" })
|
|
57322
57346
|
}
|
|
57323
57347
|
),
|
|
57324
|
-
/* @__PURE__ */
|
|
57325
|
-
/* @__PURE__ */
|
|
57348
|
+
/* @__PURE__ */ jsx280(EuiFormHelpText, { children: hasWildcards ? /* @__PURE__ */ jsxs146("span", { children: [
|
|
57349
|
+
/* @__PURE__ */ jsx280(
|
|
57326
57350
|
EuiIcon7,
|
|
57327
57351
|
{
|
|
57328
57352
|
type: "checkInCircleFilled",
|
|
@@ -57333,7 +57357,7 @@ var ValueControl = ({
|
|
|
57333
57357
|
" ",
|
|
57334
57358
|
"Pattern with wildcards:",
|
|
57335
57359
|
" ",
|
|
57336
|
-
/* @__PURE__ */
|
|
57360
|
+
/* @__PURE__ */ jsx280("strong", { children: currentValue })
|
|
57337
57361
|
] }) : /* @__PURE__ */ jsxs146("span", { children: [
|
|
57338
57362
|
"Will search for:",
|
|
57339
57363
|
" ",
|
|
@@ -57352,7 +57376,7 @@ var ValueControl = ({
|
|
|
57352
57376
|
label: val,
|
|
57353
57377
|
value: val
|
|
57354
57378
|
}));
|
|
57355
|
-
return /* @__PURE__ */
|
|
57379
|
+
return /* @__PURE__ */ jsx280(
|
|
57356
57380
|
EuiComboBox2,
|
|
57357
57381
|
{
|
|
57358
57382
|
placeholder: t("selectOrEnterValue"),
|
|
@@ -57364,7 +57388,7 @@ var ValueControl = ({
|
|
|
57364
57388
|
}
|
|
57365
57389
|
);
|
|
57366
57390
|
}
|
|
57367
|
-
return /* @__PURE__ */
|
|
57391
|
+
return /* @__PURE__ */ jsx280(
|
|
57368
57392
|
EuiFieldText5,
|
|
57369
57393
|
{
|
|
57370
57394
|
placeholder: t("enterValue"),
|
|
@@ -57377,7 +57401,7 @@ var ValueControl = ({
|
|
|
57377
57401
|
if (operator === "between") {
|
|
57378
57402
|
const betweenValue = value || { start: "", end: "" };
|
|
57379
57403
|
return /* @__PURE__ */ jsxs146(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
|
|
57380
|
-
/* @__PURE__ */
|
|
57404
|
+
/* @__PURE__ */ jsx280(EuiFlexItem41, { children: /* @__PURE__ */ jsx280(
|
|
57381
57405
|
EuiFieldNumber3,
|
|
57382
57406
|
{
|
|
57383
57407
|
placeholder: t("fromNumber"),
|
|
@@ -57388,8 +57412,8 @@ var ValueControl = ({
|
|
|
57388
57412
|
})
|
|
57389
57413
|
}
|
|
57390
57414
|
) }),
|
|
57391
|
-
/* @__PURE__ */
|
|
57392
|
-
/* @__PURE__ */
|
|
57415
|
+
/* @__PURE__ */ jsx280(EuiFlexItem41, { grow: false, children: /* @__PURE__ */ jsx280(EuiText52, { size: "s", color: theme.colors.textSubdued, children: "to" }) }),
|
|
57416
|
+
/* @__PURE__ */ jsx280(EuiFlexItem41, { children: /* @__PURE__ */ jsx280(
|
|
57393
57417
|
EuiFieldNumber3,
|
|
57394
57418
|
{
|
|
57395
57419
|
placeholder: t("toNumber"),
|
|
@@ -57402,7 +57426,7 @@ var ValueControl = ({
|
|
|
57402
57426
|
) })
|
|
57403
57427
|
] });
|
|
57404
57428
|
}
|
|
57405
|
-
return /* @__PURE__ */
|
|
57429
|
+
return /* @__PURE__ */ jsx280(
|
|
57406
57430
|
EuiFieldNumber3,
|
|
57407
57431
|
{
|
|
57408
57432
|
placeholder: t("enterNumber"),
|
|
@@ -57415,7 +57439,7 @@ var ValueControl = ({
|
|
|
57415
57439
|
if (operator === "between") {
|
|
57416
57440
|
const betweenValue = value || { start: null, end: null };
|
|
57417
57441
|
return /* @__PURE__ */ jsxs146(EuiFlexGroup34, { gutterSize: "s", alignItems: "center", children: [
|
|
57418
|
-
/* @__PURE__ */
|
|
57442
|
+
/* @__PURE__ */ jsx280(EuiFlexItem41, { children: /* @__PURE__ */ jsx280(
|
|
57419
57443
|
EuiDatePicker2,
|
|
57420
57444
|
{
|
|
57421
57445
|
selected: betweenValue.start ? moment2(betweenValue.start) : null,
|
|
@@ -57428,8 +57452,8 @@ var ValueControl = ({
|
|
|
57428
57452
|
placeholderText: t("fromDate")
|
|
57429
57453
|
}
|
|
57430
57454
|
) }),
|
|
57431
|
-
/* @__PURE__ */
|
|
57432
|
-
/* @__PURE__ */
|
|
57455
|
+
/* @__PURE__ */ jsx280(EuiFlexItem41, { grow: false, children: /* @__PURE__ */ jsx280(EuiText52, { size: "s", color: theme.colors.textSubdued, children: t("valueControlTo") }) }),
|
|
57456
|
+
/* @__PURE__ */ jsx280(EuiFlexItem41, { children: /* @__PURE__ */ jsx280(
|
|
57433
57457
|
EuiDatePicker2,
|
|
57434
57458
|
{
|
|
57435
57459
|
selected: betweenValue.end ? moment2(betweenValue.end) : null,
|
|
@@ -57444,7 +57468,7 @@ var ValueControl = ({
|
|
|
57444
57468
|
) })
|
|
57445
57469
|
] });
|
|
57446
57470
|
}
|
|
57447
|
-
return /* @__PURE__ */
|
|
57471
|
+
return /* @__PURE__ */ jsx280(
|
|
57448
57472
|
EuiDatePicker2,
|
|
57449
57473
|
{
|
|
57450
57474
|
selected: value ? moment2(String(value)) : null,
|
|
@@ -57461,7 +57485,7 @@ var ValueControl = ({
|
|
|
57461
57485
|
// src/components/WfoSearchPage/WfoConditionRow/WfoFieldSelector.tsx
|
|
57462
57486
|
import { useTranslations as useTranslations96 } from "next-intl";
|
|
57463
57487
|
import { EuiComboBox as EuiComboBox3 } from "@elastic/eui";
|
|
57464
|
-
import { jsx as
|
|
57488
|
+
import { jsx as jsx281 } from "@emotion/react/jsx-runtime";
|
|
57465
57489
|
var WfoFieldSelector = ({
|
|
57466
57490
|
pathOptions,
|
|
57467
57491
|
loading,
|
|
@@ -57479,7 +57503,7 @@ var WfoFieldSelector = ({
|
|
|
57479
57503
|
onClear();
|
|
57480
57504
|
}
|
|
57481
57505
|
};
|
|
57482
|
-
return /* @__PURE__ */
|
|
57506
|
+
return /* @__PURE__ */ jsx281(
|
|
57483
57507
|
EuiComboBox3,
|
|
57484
57508
|
{
|
|
57485
57509
|
placeholder: t("searchFieldsPlaceholder"),
|
|
@@ -57506,7 +57530,7 @@ import {
|
|
|
57506
57530
|
EuiFormRow as EuiFormRow24,
|
|
57507
57531
|
EuiText as EuiText53
|
|
57508
57532
|
} from "@elastic/eui";
|
|
57509
|
-
import { jsx as
|
|
57533
|
+
import { jsx as jsx282, jsxs as jsxs147 } from "@emotion/react/jsx-runtime";
|
|
57510
57534
|
var WfoOperatorSelector = ({
|
|
57511
57535
|
selectedPathInfo,
|
|
57512
57536
|
condition,
|
|
@@ -57514,42 +57538,42 @@ var WfoOperatorSelector = ({
|
|
|
57514
57538
|
}) => {
|
|
57515
57539
|
const t = useTranslations97("search.page");
|
|
57516
57540
|
const { theme } = useOrchestratorTheme();
|
|
57517
|
-
return /* @__PURE__ */
|
|
57541
|
+
return /* @__PURE__ */ jsx282(EuiFormRow24, { label: t("operatorLabel"), children: /* @__PURE__ */ jsxs147(EuiFlexGroup35, { gutterSize: "xs", wrap: true, children: [
|
|
57518
57542
|
selectedPathInfo?.operators?.map((operator) => {
|
|
57519
57543
|
const { symbol, description } = getOperatorDisplay(
|
|
57520
57544
|
operator,
|
|
57521
57545
|
selectedPathInfo
|
|
57522
57546
|
);
|
|
57523
57547
|
const tooltipContent = operator === "like" ? /* @__PURE__ */ jsxs147("div", { children: [
|
|
57524
|
-
/* @__PURE__ */
|
|
57525
|
-
/* @__PURE__ */
|
|
57526
|
-
/* @__PURE__ */
|
|
57527
|
-
/* @__PURE__ */
|
|
57528
|
-
/* @__PURE__ */
|
|
57548
|
+
/* @__PURE__ */ jsx282("strong", { children: description }),
|
|
57549
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57550
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57551
|
+
/* @__PURE__ */ jsx282("strong", { children: "Wildcards:" }),
|
|
57552
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57529
57553
|
"\u2022 ",
|
|
57530
|
-
/* @__PURE__ */
|
|
57554
|
+
/* @__PURE__ */ jsx282("code", { children: "%" }),
|
|
57531
57555
|
" matches any number of characters",
|
|
57532
|
-
/* @__PURE__ */
|
|
57556
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57533
57557
|
"\u2022 ",
|
|
57534
|
-
/* @__PURE__ */
|
|
57558
|
+
/* @__PURE__ */ jsx282("code", { children: "_" }),
|
|
57535
57559
|
" matches exactly one character",
|
|
57536
|
-
/* @__PURE__ */
|
|
57537
|
-
/* @__PURE__ */
|
|
57538
|
-
/* @__PURE__ */
|
|
57539
|
-
/* @__PURE__ */
|
|
57560
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57561
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57562
|
+
/* @__PURE__ */ jsx282("strong", { children: "Examples:" }),
|
|
57563
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57540
57564
|
"\u2022 ",
|
|
57541
|
-
/* @__PURE__ */
|
|
57565
|
+
/* @__PURE__ */ jsx282("code", { children: "%test%" }),
|
|
57542
57566
|
' finds anything containing "test"',
|
|
57543
|
-
/* @__PURE__ */
|
|
57567
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57544
57568
|
"\u2022 ",
|
|
57545
|
-
/* @__PURE__ */
|
|
57569
|
+
/* @__PURE__ */ jsx282("code", { children: "test%" }),
|
|
57546
57570
|
' finds anything starting with "test"',
|
|
57547
|
-
/* @__PURE__ */
|
|
57571
|
+
/* @__PURE__ */ jsx282("br", {}),
|
|
57548
57572
|
"\u2022 ",
|
|
57549
|
-
/* @__PURE__ */
|
|
57573
|
+
/* @__PURE__ */ jsx282("code", { children: "test_" }),
|
|
57550
57574
|
' finds "test" + one character'
|
|
57551
57575
|
] }) : description;
|
|
57552
|
-
return /* @__PURE__ */
|
|
57576
|
+
return /* @__PURE__ */ jsx282(EuiFlexItem42, { grow: false, children: /* @__PURE__ */ jsx282(WfoToolTip, { tooltipContent, children: /* @__PURE__ */ jsx282(
|
|
57553
57577
|
EuiButton21,
|
|
57554
57578
|
{
|
|
57555
57579
|
size: "s",
|
|
@@ -57573,13 +57597,13 @@ var WfoOperatorSelector = ({
|
|
|
57573
57597
|
}
|
|
57574
57598
|
) }) }, operator);
|
|
57575
57599
|
}),
|
|
57576
|
-
(!selectedPathInfo || selectedPathInfo.operators.length === 0) && /* @__PURE__ */
|
|
57600
|
+
(!selectedPathInfo || selectedPathInfo.operators.length === 0) && /* @__PURE__ */ jsx282(EuiFlexItem42, { grow: false, children: /* @__PURE__ */ jsx282(EuiText53, { size: "s", color: theme.colors.textSubdued, children: t("selectFieldFirst") }) })
|
|
57577
57601
|
] }) });
|
|
57578
57602
|
};
|
|
57579
57603
|
|
|
57580
57604
|
// src/components/WfoSearchPage/WfoConditionRow/WfoPathChips.tsx
|
|
57581
57605
|
import { EuiIcon as EuiIcon8 } from "@elastic/eui";
|
|
57582
|
-
import { jsx as
|
|
57606
|
+
import { jsx as jsx283, jsxs as jsxs148 } from "@emotion/react/jsx-runtime";
|
|
57583
57607
|
var WfoPathChips = ({
|
|
57584
57608
|
fullPath,
|
|
57585
57609
|
label,
|
|
@@ -57588,7 +57612,7 @@ var WfoPathChips = ({
|
|
|
57588
57612
|
}) => {
|
|
57589
57613
|
const { theme } = useOrchestratorTheme();
|
|
57590
57614
|
if (isAnyPath) {
|
|
57591
|
-
return /* @__PURE__ */
|
|
57615
|
+
return /* @__PURE__ */ jsx283(WfoToolTip, { tooltipContent: label, children: /* @__PURE__ */ jsxs148(
|
|
57592
57616
|
"div",
|
|
57593
57617
|
{
|
|
57594
57618
|
style: {
|
|
@@ -57602,7 +57626,7 @@ var WfoPathChips = ({
|
|
|
57602
57626
|
minHeight: theme.size.xl
|
|
57603
57627
|
},
|
|
57604
57628
|
children: [
|
|
57605
|
-
/* @__PURE__ */
|
|
57629
|
+
/* @__PURE__ */ jsx283(
|
|
57606
57630
|
"div",
|
|
57607
57631
|
{
|
|
57608
57632
|
style: {
|
|
@@ -57615,20 +57639,20 @@ var WfoPathChips = ({
|
|
|
57615
57639
|
flex: 1,
|
|
57616
57640
|
overflow: "visible"
|
|
57617
57641
|
},
|
|
57618
|
-
children: /* @__PURE__ */
|
|
57642
|
+
children: /* @__PURE__ */ jsx283(
|
|
57619
57643
|
"div",
|
|
57620
57644
|
{
|
|
57621
57645
|
style: {
|
|
57622
57646
|
textDecoration: "none",
|
|
57623
57647
|
borderBottom: "none"
|
|
57624
57648
|
},
|
|
57625
|
-
children: /* @__PURE__ */
|
|
57649
|
+
children: /* @__PURE__ */ jsx283(
|
|
57626
57650
|
WfoBadge,
|
|
57627
57651
|
{
|
|
57628
57652
|
color: "primary",
|
|
57629
57653
|
textColor: theme.colors.ghost,
|
|
57630
57654
|
size: "xs",
|
|
57631
|
-
children: /* @__PURE__ */
|
|
57655
|
+
children: /* @__PURE__ */ jsx283(
|
|
57632
57656
|
"span",
|
|
57633
57657
|
{
|
|
57634
57658
|
style: {
|
|
@@ -57647,13 +57671,13 @@ var WfoPathChips = ({
|
|
|
57647
57671
|
)
|
|
57648
57672
|
}
|
|
57649
57673
|
),
|
|
57650
|
-
fieldType && /* @__PURE__ */
|
|
57674
|
+
fieldType && /* @__PURE__ */ jsx283("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx283(
|
|
57651
57675
|
WfoBadge,
|
|
57652
57676
|
{
|
|
57653
57677
|
color: getTypeColor(fieldType, theme),
|
|
57654
57678
|
textColor: theme.colors.ink,
|
|
57655
57679
|
size: "xs",
|
|
57656
|
-
children: /* @__PURE__ */
|
|
57680
|
+
children: /* @__PURE__ */ jsx283("span", { style: { textDecoration: "none" }, children: fieldType })
|
|
57657
57681
|
}
|
|
57658
57682
|
) })
|
|
57659
57683
|
]
|
|
@@ -57665,7 +57689,7 @@ var WfoPathChips = ({
|
|
|
57665
57689
|
(segment) => segment && !segment.match(/^\d+$/) && !segment.includes("(")
|
|
57666
57690
|
);
|
|
57667
57691
|
const pathSegments = allSegments.slice(-2);
|
|
57668
|
-
return /* @__PURE__ */
|
|
57692
|
+
return /* @__PURE__ */ jsx283(WfoToolTip, { tooltipContent: completePath, children: /* @__PURE__ */ jsxs148(
|
|
57669
57693
|
"div",
|
|
57670
57694
|
{
|
|
57671
57695
|
style: {
|
|
@@ -57679,7 +57703,7 @@ var WfoPathChips = ({
|
|
|
57679
57703
|
minHeight: theme.size.xl
|
|
57680
57704
|
},
|
|
57681
57705
|
children: [
|
|
57682
|
-
/* @__PURE__ */
|
|
57706
|
+
/* @__PURE__ */ jsx283(
|
|
57683
57707
|
"div",
|
|
57684
57708
|
{
|
|
57685
57709
|
style: {
|
|
@@ -57694,20 +57718,20 @@ var WfoPathChips = ({
|
|
|
57694
57718
|
},
|
|
57695
57719
|
children: pathSegments.map(
|
|
57696
57720
|
(segment, index) => [
|
|
57697
|
-
/* @__PURE__ */
|
|
57721
|
+
/* @__PURE__ */ jsx283(
|
|
57698
57722
|
"div",
|
|
57699
57723
|
{
|
|
57700
57724
|
style: {
|
|
57701
57725
|
textDecoration: "none",
|
|
57702
57726
|
borderBottom: "none"
|
|
57703
57727
|
},
|
|
57704
|
-
children: /* @__PURE__ */
|
|
57728
|
+
children: /* @__PURE__ */ jsx283(
|
|
57705
57729
|
WfoBadge,
|
|
57706
57730
|
{
|
|
57707
57731
|
color: "primary",
|
|
57708
57732
|
textColor: theme.colors.ghost,
|
|
57709
57733
|
size: "xs",
|
|
57710
|
-
children: /* @__PURE__ */
|
|
57734
|
+
children: /* @__PURE__ */ jsx283(
|
|
57711
57735
|
"span",
|
|
57712
57736
|
{
|
|
57713
57737
|
style: {
|
|
@@ -57725,7 +57749,7 @@ var WfoPathChips = ({
|
|
|
57725
57749
|
},
|
|
57726
57750
|
`segment-${index}`
|
|
57727
57751
|
),
|
|
57728
|
-
index < pathSegments.length - 1 && /* @__PURE__ */
|
|
57752
|
+
index < pathSegments.length - 1 && /* @__PURE__ */ jsx283(
|
|
57729
57753
|
EuiIcon8,
|
|
57730
57754
|
{
|
|
57731
57755
|
type: "arrowRight",
|
|
@@ -57743,13 +57767,13 @@ var WfoPathChips = ({
|
|
|
57743
57767
|
)
|
|
57744
57768
|
}
|
|
57745
57769
|
),
|
|
57746
|
-
fieldType && /* @__PURE__ */
|
|
57770
|
+
fieldType && /* @__PURE__ */ jsx283("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx283(
|
|
57747
57771
|
WfoBadge,
|
|
57748
57772
|
{
|
|
57749
57773
|
color: getTypeColor(fieldType, theme),
|
|
57750
57774
|
textColor: theme.colors.ink,
|
|
57751
57775
|
size: "xs",
|
|
57752
|
-
children: /* @__PURE__ */
|
|
57776
|
+
children: /* @__PURE__ */ jsx283("span", { style: { textDecoration: "none" }, children: fieldType })
|
|
57753
57777
|
}
|
|
57754
57778
|
) })
|
|
57755
57779
|
]
|
|
@@ -57760,7 +57784,7 @@ var WfoPathChips = ({
|
|
|
57760
57784
|
// src/components/WfoSearchPage/WfoConditionRow/WfoPathSelector.tsx
|
|
57761
57785
|
import { useTranslations as useTranslations98 } from "next-intl";
|
|
57762
57786
|
import { EuiComboBox as EuiComboBox4 } from "@elastic/eui";
|
|
57763
|
-
import { jsx as
|
|
57787
|
+
import { jsx as jsx284 } from "@emotion/react/jsx-runtime";
|
|
57764
57788
|
var WfoPathSelector = ({
|
|
57765
57789
|
selectedFieldName,
|
|
57766
57790
|
pathOptions,
|
|
@@ -57769,7 +57793,7 @@ var WfoPathSelector = ({
|
|
|
57769
57793
|
renderOption
|
|
57770
57794
|
}) => {
|
|
57771
57795
|
const t = useTranslations98("search.page");
|
|
57772
|
-
return /* @__PURE__ */
|
|
57796
|
+
return /* @__PURE__ */ jsx284(
|
|
57773
57797
|
EuiComboBox4,
|
|
57774
57798
|
{
|
|
57775
57799
|
placeholder: t("selectSpecificPathPlaceholder"),
|
|
@@ -57811,7 +57835,7 @@ var WfoPathSelector = ({
|
|
|
57811
57835
|
// src/components/WfoSearchPage/WfoConditionRow/WfoRenderFunctions.tsx
|
|
57812
57836
|
import { useTranslations as useTranslations99 } from "next-intl";
|
|
57813
57837
|
import { EuiFlexGroup as EuiFlexGroup36, EuiFlexItem as EuiFlexItem43, EuiText as EuiText54 } from "@elastic/eui";
|
|
57814
|
-
import { Fragment as Fragment66, jsx as
|
|
57838
|
+
import { Fragment as Fragment66, jsx as jsx285, jsxs as jsxs149 } from "@emotion/react/jsx-runtime";
|
|
57815
57839
|
var WfoRenderPathOption = ({
|
|
57816
57840
|
option,
|
|
57817
57841
|
contentClassName,
|
|
@@ -57820,7 +57844,7 @@ var WfoRenderPathOption = ({
|
|
|
57820
57844
|
const t = useTranslations99("search.page");
|
|
57821
57845
|
const { theme } = useOrchestratorTheme();
|
|
57822
57846
|
const pathInfo = option.value ? paths.find(({ path }) => path === option.value) : null;
|
|
57823
|
-
if (!pathInfo) return /* @__PURE__ */
|
|
57847
|
+
if (!pathInfo) return /* @__PURE__ */ jsx285(Fragment66, { children: option.label });
|
|
57824
57848
|
return /* @__PURE__ */ jsxs149(
|
|
57825
57849
|
EuiFlexGroup36,
|
|
57826
57850
|
{
|
|
@@ -57830,15 +57854,15 @@ var WfoRenderPathOption = ({
|
|
|
57830
57854
|
className: contentClassName,
|
|
57831
57855
|
title: "",
|
|
57832
57856
|
children: [
|
|
57833
|
-
/* @__PURE__ */
|
|
57834
|
-
/* @__PURE__ */
|
|
57857
|
+
/* @__PURE__ */ jsx285(EuiFlexItem43, { grow: true, children: /* @__PURE__ */ jsx285(EuiText54, { size: "s", children: pathInfo.displayLabel || pathInfo.path }) }),
|
|
57858
|
+
/* @__PURE__ */ jsx285(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsxs149(
|
|
57835
57859
|
EuiFlexGroup36,
|
|
57836
57860
|
{
|
|
57837
57861
|
gutterSize: "xs",
|
|
57838
57862
|
alignItems: "center",
|
|
57839
57863
|
responsive: false,
|
|
57840
57864
|
children: [
|
|
57841
|
-
pathInfo.group === "leaf" && pathInfo.pathCount && pathInfo.pathCount > 1 && /* @__PURE__ */
|
|
57865
|
+
pathInfo.group === "leaf" && pathInfo.pathCount && pathInfo.pathCount > 1 && /* @__PURE__ */ jsx285(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx285(
|
|
57842
57866
|
WfoBadge,
|
|
57843
57867
|
{
|
|
57844
57868
|
color: "default",
|
|
@@ -57849,7 +57873,7 @@ var WfoRenderPathOption = ({
|
|
|
57849
57873
|
})
|
|
57850
57874
|
}
|
|
57851
57875
|
) }),
|
|
57852
|
-
(!pathInfo.pathCount || pathInfo.pathCount <= 1) && pathInfo.ui_types?.map((type, index) => /* @__PURE__ */
|
|
57876
|
+
(!pathInfo.pathCount || pathInfo.pathCount <= 1) && pathInfo.ui_types?.map((type, index) => /* @__PURE__ */ jsx285(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx285(
|
|
57853
57877
|
WfoBadge,
|
|
57854
57878
|
{
|
|
57855
57879
|
color: getTypeColor(type, theme),
|
|
@@ -57867,7 +57891,7 @@ var WfoRenderPathOption = ({
|
|
|
57867
57891
|
};
|
|
57868
57892
|
var WfoRenderPathSelectionOption = ({ option, contentClassName, fieldType }) => {
|
|
57869
57893
|
const { theme } = useOrchestratorTheme();
|
|
57870
|
-
return /* @__PURE__ */
|
|
57894
|
+
return /* @__PURE__ */ jsx285(WfoToolTip, { tooltipContent: option.fullPath || option.label, children: /* @__PURE__ */ jsxs149(
|
|
57871
57895
|
EuiFlexGroup36,
|
|
57872
57896
|
{
|
|
57873
57897
|
alignItems: "center",
|
|
@@ -57876,8 +57900,8 @@ var WfoRenderPathSelectionOption = ({ option, contentClassName, fieldType }) =>
|
|
|
57876
57900
|
className: contentClassName,
|
|
57877
57901
|
title: "",
|
|
57878
57902
|
children: [
|
|
57879
|
-
/* @__PURE__ */
|
|
57880
|
-
/* @__PURE__ */
|
|
57903
|
+
/* @__PURE__ */ jsx285(EuiFlexItem43, { grow: true, children: /* @__PURE__ */ jsx285(EuiText54, { size: "s", children: option.label }) }),
|
|
57904
|
+
/* @__PURE__ */ jsx285(EuiFlexItem43, { grow: false, children: /* @__PURE__ */ jsx285(
|
|
57881
57905
|
WfoBadge,
|
|
57882
57906
|
{
|
|
57883
57907
|
color: getTypeColor(fieldType, theme),
|
|
@@ -57929,14 +57953,14 @@ var getPathSelectionOptions = (selectedFieldName, paths) => {
|
|
|
57929
57953
|
};
|
|
57930
57954
|
|
|
57931
57955
|
// src/components/WfoSearchPage/WfoConditionRow/WfoSelectedPathDisplay.tsx
|
|
57932
|
-
import { jsx as
|
|
57956
|
+
import { jsx as jsx286, jsxs as jsxs150 } from "@emotion/react/jsx-runtime";
|
|
57933
57957
|
var WfoSelectedPathDisplay = ({
|
|
57934
57958
|
condition,
|
|
57935
57959
|
onEdit
|
|
57936
57960
|
}) => {
|
|
57937
57961
|
const { theme } = useOrchestratorTheme();
|
|
57938
57962
|
const isFullPath = condition.path.includes(".");
|
|
57939
|
-
return /* @__PURE__ */
|
|
57963
|
+
return /* @__PURE__ */ jsx286(
|
|
57940
57964
|
"div",
|
|
57941
57965
|
{
|
|
57942
57966
|
onClick: onEdit,
|
|
@@ -57950,25 +57974,25 @@ var WfoSelectedPathDisplay = ({
|
|
|
57950
57974
|
display: "flex",
|
|
57951
57975
|
alignItems: "center"
|
|
57952
57976
|
},
|
|
57953
|
-
children: /* @__PURE__ */
|
|
57977
|
+
children: /* @__PURE__ */ jsx286(
|
|
57954
57978
|
EuiFlexGroup37,
|
|
57955
57979
|
{
|
|
57956
57980
|
alignItems: "center",
|
|
57957
57981
|
gutterSize: "s",
|
|
57958
57982
|
responsive: false,
|
|
57959
57983
|
justifyContent: "spaceBetween",
|
|
57960
|
-
children: /* @__PURE__ */
|
|
57984
|
+
children: /* @__PURE__ */ jsx286(EuiFlexItem44, { grow: true, children: isFullPath ? /* @__PURE__ */ jsxs150(
|
|
57961
57985
|
EuiFlexGroup37,
|
|
57962
57986
|
{
|
|
57963
57987
|
gutterSize: "none",
|
|
57964
57988
|
alignItems: "center",
|
|
57965
57989
|
responsive: false,
|
|
57966
57990
|
children: [
|
|
57967
|
-
/* @__PURE__ */
|
|
57991
|
+
/* @__PURE__ */ jsx286(EuiFlexItem44, { grow: false, children: /* @__PURE__ */ jsxs150(EuiText55, { size: "s", color: theme.colors.text, children: [
|
|
57968
57992
|
getFieldNameFromFullPath(condition.path),
|
|
57969
57993
|
":"
|
|
57970
57994
|
] }) }),
|
|
57971
|
-
/* @__PURE__ */
|
|
57995
|
+
/* @__PURE__ */ jsx286(EuiFlexItem44, { grow: false, children: /* @__PURE__ */ jsx286(
|
|
57972
57996
|
EuiText55,
|
|
57973
57997
|
{
|
|
57974
57998
|
size: "s",
|
|
@@ -57984,7 +58008,7 @@ var WfoSelectedPathDisplay = ({
|
|
|
57984
58008
|
) })
|
|
57985
58009
|
]
|
|
57986
58010
|
}
|
|
57987
|
-
) : /* @__PURE__ */
|
|
58011
|
+
) : /* @__PURE__ */ jsx286(EuiText55, { size: "s", color: theme.colors.text, children: condition.path }) })
|
|
57988
58012
|
}
|
|
57989
58013
|
)
|
|
57990
58014
|
}
|
|
@@ -57992,7 +58016,7 @@ var WfoSelectedPathDisplay = ({
|
|
|
57992
58016
|
};
|
|
57993
58017
|
|
|
57994
58018
|
// src/components/WfoSearchPage/WfoConditionRow/WfoConditionRow.tsx
|
|
57995
|
-
import { jsx as
|
|
58019
|
+
import { jsx as jsx287, jsxs as jsxs151 } from "@emotion/react/jsx-runtime";
|
|
57996
58020
|
var ConditionRow = ({
|
|
57997
58021
|
condition,
|
|
57998
58022
|
entityType,
|
|
@@ -58001,9 +58025,9 @@ var ConditionRow = ({
|
|
|
58001
58025
|
}) => {
|
|
58002
58026
|
const t = useTranslations100("search.page");
|
|
58003
58027
|
const { theme } = useOrchestratorTheme();
|
|
58004
|
-
const [searchValue, setSearchValue] =
|
|
58005
|
-
const [showPathSelection, setShowPathSelection] =
|
|
58006
|
-
const [selectedFieldName, setSelectedFieldName] =
|
|
58028
|
+
const [searchValue, setSearchValue] = useState63(condition.path);
|
|
58029
|
+
const [showPathSelection, setShowPathSelection] = useState63(false);
|
|
58030
|
+
const [selectedFieldName, setSelectedFieldName] = useState63("");
|
|
58007
58031
|
const { paths, loading, error } = usePathAutocomplete(
|
|
58008
58032
|
searchValue,
|
|
58009
58033
|
entityType
|
|
@@ -58137,7 +58161,7 @@ var ConditionRow = ({
|
|
|
58137
58161
|
}
|
|
58138
58162
|
return baseOptions;
|
|
58139
58163
|
})();
|
|
58140
|
-
const renderPathOption = (option, searchValue2, contentClassName) => /* @__PURE__ */
|
|
58164
|
+
const renderPathOption = (option, searchValue2, contentClassName) => /* @__PURE__ */ jsx287(
|
|
58141
58165
|
WfoRenderPathOption,
|
|
58142
58166
|
{
|
|
58143
58167
|
option,
|
|
@@ -58149,7 +58173,7 @@ var ConditionRow = ({
|
|
|
58149
58173
|
const renderPathSelectionOption = (option) => {
|
|
58150
58174
|
const fieldInfo = paths.find(({ path }) => path === selectedFieldName);
|
|
58151
58175
|
const fieldType = fieldInfo?.type || "string";
|
|
58152
|
-
return /* @__PURE__ */
|
|
58176
|
+
return /* @__PURE__ */ jsx287(
|
|
58153
58177
|
WfoPathChips,
|
|
58154
58178
|
{
|
|
58155
58179
|
fullPath: option.fullPath || "",
|
|
@@ -58159,15 +58183,15 @@ var ConditionRow = ({
|
|
|
58159
58183
|
}
|
|
58160
58184
|
);
|
|
58161
58185
|
};
|
|
58162
|
-
return /* @__PURE__ */
|
|
58163
|
-
/* @__PURE__ */
|
|
58186
|
+
return /* @__PURE__ */ jsx287(EuiPanel14, { paddingSize: "m", color: "subdued", children: /* @__PURE__ */ jsxs151(EuiFlexGroup38, { direction: "column", gutterSize: "m", children: [
|
|
58187
|
+
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsx287(
|
|
58164
58188
|
EuiFormRow25,
|
|
58165
58189
|
{
|
|
58166
58190
|
label: t("fieldLabel"),
|
|
58167
58191
|
error,
|
|
58168
58192
|
isInvalid: !!error,
|
|
58169
58193
|
children: /* @__PURE__ */ jsxs151(EuiFlexGroup38, { gutterSize: "s", alignItems: "center", children: [
|
|
58170
|
-
/* @__PURE__ */
|
|
58194
|
+
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: showPathSelection ? /* @__PURE__ */ jsx287(
|
|
58171
58195
|
WfoPathSelector,
|
|
58172
58196
|
{
|
|
58173
58197
|
selectedFieldName,
|
|
@@ -58179,7 +58203,7 @@ var ConditionRow = ({
|
|
|
58179
58203
|
},
|
|
58180
58204
|
renderOption: renderPathSelectionOption
|
|
58181
58205
|
}
|
|
58182
|
-
) : condition.path && fullPathSelected ? /* @__PURE__ */
|
|
58206
|
+
) : condition.path && fullPathSelected ? /* @__PURE__ */ jsx287(
|
|
58183
58207
|
WfoSelectedPathDisplay,
|
|
58184
58208
|
{
|
|
58185
58209
|
condition,
|
|
@@ -58195,7 +58219,7 @@ var ConditionRow = ({
|
|
|
58195
58219
|
});
|
|
58196
58220
|
}
|
|
58197
58221
|
}
|
|
58198
|
-
) : /* @__PURE__ */
|
|
58222
|
+
) : /* @__PURE__ */ jsx287(
|
|
58199
58223
|
WfoFieldSelector,
|
|
58200
58224
|
{
|
|
58201
58225
|
pathOptions,
|
|
@@ -58217,18 +58241,18 @@ var ConditionRow = ({
|
|
|
58217
58241
|
renderPathOption
|
|
58218
58242
|
}
|
|
58219
58243
|
) }),
|
|
58220
|
-
condition.path && selectedPathInfo?.ui_types && selectedPathInfo.ui_types.length > 0 && /* @__PURE__ */
|
|
58244
|
+
condition.path && selectedPathInfo?.ui_types && selectedPathInfo.ui_types.length > 0 && /* @__PURE__ */ jsx287(EuiFlexItem45, { grow: false, children: /* @__PURE__ */ jsx287(
|
|
58221
58245
|
EuiFlexGroup38,
|
|
58222
58246
|
{
|
|
58223
58247
|
gutterSize: "xs",
|
|
58224
58248
|
alignItems: "center",
|
|
58225
58249
|
responsive: false,
|
|
58226
58250
|
children: selectedPathInfo.ui_types.map(
|
|
58227
|
-
(type, index) => /* @__PURE__ */
|
|
58251
|
+
(type, index) => /* @__PURE__ */ jsx287(
|
|
58228
58252
|
EuiFlexItem45,
|
|
58229
58253
|
{
|
|
58230
58254
|
grow: false,
|
|
58231
|
-
children: /* @__PURE__ */
|
|
58255
|
+
children: /* @__PURE__ */ jsx287(
|
|
58232
58256
|
WfoBadge,
|
|
58233
58257
|
{
|
|
58234
58258
|
color: getTypeColor(
|
|
@@ -58249,8 +58273,8 @@ var ConditionRow = ({
|
|
|
58249
58273
|
] })
|
|
58250
58274
|
}
|
|
58251
58275
|
) }),
|
|
58252
|
-
/* @__PURE__ */
|
|
58253
|
-
/* @__PURE__ */
|
|
58276
|
+
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsxs151(EuiFlexGroup38, { gutterSize: "s", alignItems: "flexEnd", children: [
|
|
58277
|
+
/* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsx287(
|
|
58254
58278
|
WfoOperatorSelector,
|
|
58255
58279
|
{
|
|
58256
58280
|
selectedPathInfo,
|
|
@@ -58258,7 +58282,7 @@ var ConditionRow = ({
|
|
|
58258
58282
|
onOperatorChange: handleOperatorChange
|
|
58259
58283
|
}
|
|
58260
58284
|
) }),
|
|
58261
|
-
!hideValueInput && /* @__PURE__ */
|
|
58285
|
+
!hideValueInput && /* @__PURE__ */ jsx287(EuiFlexItem45, { children: /* @__PURE__ */ jsx287(EuiFormRow25, { label: t("valueLabel"), children: /* @__PURE__ */ jsx287(
|
|
58262
58286
|
ValueControl,
|
|
58263
58287
|
{
|
|
58264
58288
|
pathInfo: selectedPathInfo,
|
|
@@ -58267,7 +58291,7 @@ var ConditionRow = ({
|
|
|
58267
58291
|
onChange: handleValueChange
|
|
58268
58292
|
}
|
|
58269
58293
|
) }) }),
|
|
58270
|
-
/* @__PURE__ */
|
|
58294
|
+
/* @__PURE__ */ jsx287(EuiFlexItem45, { grow: false, children: /* @__PURE__ */ jsx287(
|
|
58271
58295
|
EuiButtonIcon15,
|
|
58272
58296
|
{
|
|
58273
58297
|
iconType: "trash",
|
|
@@ -58282,7 +58306,7 @@ var ConditionRow = ({
|
|
|
58282
58306
|
};
|
|
58283
58307
|
|
|
58284
58308
|
// src/components/WfoSearchPage/WfoFilterGroup/WfoFilterGroup.tsx
|
|
58285
|
-
import { Fragment as Fragment67, jsx as
|
|
58309
|
+
import { Fragment as Fragment67, jsx as jsx288, jsxs as jsxs152 } from "@emotion/react/jsx-runtime";
|
|
58286
58310
|
var FilterGroup = ({
|
|
58287
58311
|
group,
|
|
58288
58312
|
entityType,
|
|
@@ -58350,9 +58374,9 @@ var FilterGroup = ({
|
|
|
58350
58374
|
alignItems: "center",
|
|
58351
58375
|
justifyContent: "spaceBetween",
|
|
58352
58376
|
children: [
|
|
58353
|
-
/* @__PURE__ */
|
|
58354
|
-
/* @__PURE__ */
|
|
58355
|
-
/* @__PURE__ */
|
|
58377
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsxs152(EuiFlexGroup39, { gutterSize: "s", alignItems: "center", children: [
|
|
58378
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(EuiText56, { size: "s", children: /* @__PURE__ */ jsx288("strong", { children: t("groupLabel") }) }) }),
|
|
58379
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(
|
|
58356
58380
|
EuiButton22,
|
|
58357
58381
|
{
|
|
58358
58382
|
size: "s",
|
|
@@ -58363,8 +58387,8 @@ var FilterGroup = ({
|
|
|
58363
58387
|
}
|
|
58364
58388
|
) })
|
|
58365
58389
|
] }) }),
|
|
58366
|
-
/* @__PURE__ */
|
|
58367
|
-
/* @__PURE__ */
|
|
58390
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsxs152(EuiFlexGroup39, { gutterSize: "s", alignItems: "center", children: [
|
|
58391
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(
|
|
58368
58392
|
EuiButton22,
|
|
58369
58393
|
{
|
|
58370
58394
|
size: "s",
|
|
@@ -58373,11 +58397,11 @@ var FilterGroup = ({
|
|
|
58373
58397
|
children: t("addCondition")
|
|
58374
58398
|
}
|
|
58375
58399
|
) }),
|
|
58376
|
-
/* @__PURE__ */
|
|
58400
|
+
/* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(
|
|
58377
58401
|
WfoToolTip,
|
|
58378
58402
|
{
|
|
58379
58403
|
tooltipContent: !canAddGroup ? t("maxNestingDepth") : t("addNestedGroup"),
|
|
58380
|
-
children: /* @__PURE__ */
|
|
58404
|
+
children: /* @__PURE__ */ jsx288(
|
|
58381
58405
|
EuiButton22,
|
|
58382
58406
|
{
|
|
58383
58407
|
size: "s",
|
|
@@ -58389,7 +58413,7 @@ var FilterGroup = ({
|
|
|
58389
58413
|
)
|
|
58390
58414
|
}
|
|
58391
58415
|
) }),
|
|
58392
|
-
!isRoot && onRemove && /* @__PURE__ */
|
|
58416
|
+
!isRoot && onRemove && /* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(
|
|
58393
58417
|
EuiButtonIcon16,
|
|
58394
58418
|
{
|
|
58395
58419
|
iconType: "trash",
|
|
@@ -58403,33 +58427,33 @@ var FilterGroup = ({
|
|
|
58403
58427
|
}
|
|
58404
58428
|
),
|
|
58405
58429
|
group.children.length > 0 && /* @__PURE__ */ jsxs152(Fragment67, { children: [
|
|
58406
|
-
/* @__PURE__ */
|
|
58407
|
-
/* @__PURE__ */
|
|
58430
|
+
/* @__PURE__ */ jsx288(EuiSpacer31, { size: "m" }),
|
|
58431
|
+
/* @__PURE__ */ jsx288(
|
|
58408
58432
|
EuiPanel15,
|
|
58409
58433
|
{
|
|
58410
58434
|
paddingSize: isRoot ? "none" : "s",
|
|
58411
58435
|
color: "transparent",
|
|
58412
58436
|
hasShadow: false,
|
|
58413
58437
|
children: group.children.map((child, index) => /* @__PURE__ */ jsxs152("div", { children: [
|
|
58414
|
-
index > 0 && /* @__PURE__ */
|
|
58438
|
+
index > 0 && /* @__PURE__ */ jsx288(
|
|
58415
58439
|
EuiFlexGroup39,
|
|
58416
58440
|
{
|
|
58417
58441
|
gutterSize: "none",
|
|
58418
58442
|
alignItems: "center",
|
|
58419
58443
|
justifyContent: "center",
|
|
58420
|
-
children: /* @__PURE__ */
|
|
58444
|
+
children: /* @__PURE__ */ jsx288(EuiFlexItem46, { grow: false, children: /* @__PURE__ */ jsx288(
|
|
58421
58445
|
EuiText56,
|
|
58422
58446
|
{
|
|
58423
58447
|
size: "s",
|
|
58424
58448
|
color: theme.colors.textSubdued,
|
|
58425
58449
|
textAlign: "center",
|
|
58426
|
-
children: /* @__PURE__ */
|
|
58450
|
+
children: /* @__PURE__ */ jsx288(EuiCode2, { children: group.op })
|
|
58427
58451
|
}
|
|
58428
58452
|
) })
|
|
58429
58453
|
}
|
|
58430
58454
|
),
|
|
58431
|
-
/* @__PURE__ */
|
|
58432
|
-
isCondition(child) ? /* @__PURE__ */
|
|
58455
|
+
/* @__PURE__ */ jsx288(EuiSpacer31, { size: "s" }),
|
|
58456
|
+
isCondition(child) ? /* @__PURE__ */ jsx288(
|
|
58433
58457
|
ConditionRow,
|
|
58434
58458
|
{
|
|
58435
58459
|
condition: child,
|
|
@@ -58437,7 +58461,7 @@ var FilterGroup = ({
|
|
|
58437
58461
|
onChange: (newCondition) => updateChild(index, newCondition),
|
|
58438
58462
|
onRemove: () => removeChild(index)
|
|
58439
58463
|
}
|
|
58440
|
-
) : /* @__PURE__ */
|
|
58464
|
+
) : /* @__PURE__ */ jsx288(
|
|
58441
58465
|
FilterGroup,
|
|
58442
58466
|
{
|
|
58443
58467
|
group: child,
|
|
@@ -58447,21 +58471,21 @@ var FilterGroup = ({
|
|
|
58447
58471
|
depth: depth + 1
|
|
58448
58472
|
}
|
|
58449
58473
|
),
|
|
58450
|
-
/* @__PURE__ */
|
|
58474
|
+
/* @__PURE__ */ jsx288(EuiSpacer31, { size: "s" })
|
|
58451
58475
|
] }, index))
|
|
58452
58476
|
}
|
|
58453
58477
|
)
|
|
58454
58478
|
] }),
|
|
58455
58479
|
group.children.length === 0 && /* @__PURE__ */ jsxs152(Fragment67, { children: [
|
|
58456
|
-
/* @__PURE__ */
|
|
58457
|
-
/* @__PURE__ */
|
|
58458
|
-
|
|
58480
|
+
/* @__PURE__ */ jsx288(EuiSpacer31, { size: "s" }),
|
|
58481
|
+
/* @__PURE__ */ jsx288(
|
|
58482
|
+
EuiCallOut4,
|
|
58459
58483
|
{
|
|
58460
58484
|
title: t("emptyGroupTitle"),
|
|
58461
58485
|
color: "primary",
|
|
58462
58486
|
iconType: "iInCircle",
|
|
58463
58487
|
size: "s",
|
|
58464
|
-
children: /* @__PURE__ */
|
|
58488
|
+
children: /* @__PURE__ */ jsx288("p", { children: t("emptyGroupDescription") })
|
|
58465
58489
|
}
|
|
58466
58490
|
)
|
|
58467
58491
|
] })
|
|
@@ -58476,21 +58500,21 @@ import { EuiFlexGroup as EuiFlexGroup44, EuiPanel as EuiPanel19 } from "@elastic
|
|
|
58476
58500
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchEmptyState.tsx
|
|
58477
58501
|
import { useTranslations as useTranslations102 } from "next-intl";
|
|
58478
58502
|
import { EuiFlexGroup as EuiFlexGroup40, EuiFlexItem as EuiFlexItem47, EuiPanel as EuiPanel16, EuiText as EuiText57 } from "@elastic/eui";
|
|
58479
|
-
import { jsx as
|
|
58503
|
+
import { jsx as jsx289 } from "@emotion/react/jsx-runtime";
|
|
58480
58504
|
var WfoSearchEmptyState = () => {
|
|
58481
58505
|
const t = useTranslations102("search.page");
|
|
58482
58506
|
const { theme } = useOrchestratorTheme();
|
|
58483
|
-
return /* @__PURE__ */
|
|
58507
|
+
return /* @__PURE__ */ jsx289(EuiPanel16, { paddingSize: "l", color: "transparent", hasShadow: false, children: /* @__PURE__ */ jsx289(EuiFlexGroup40, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsx289(EuiFlexItem47, { grow: false, children: /* @__PURE__ */ jsx289(EuiText57, { size: "m", color: theme.colors.textSubdued, children: t("noResultsFound") }) }) }) });
|
|
58484
58508
|
};
|
|
58485
58509
|
|
|
58486
58510
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchLoadingState.tsx
|
|
58487
58511
|
import { useTranslations as useTranslations103 } from "next-intl";
|
|
58488
58512
|
import { EuiFlexGroup as EuiFlexGroup41, EuiFlexItem as EuiFlexItem48, EuiPanel as EuiPanel17, EuiText as EuiText58 } from "@elastic/eui";
|
|
58489
|
-
import { jsx as
|
|
58513
|
+
import { jsx as jsx290 } from "@emotion/react/jsx-runtime";
|
|
58490
58514
|
var WfoSearchLoadingState = () => {
|
|
58491
58515
|
const t = useTranslations103("search.page");
|
|
58492
58516
|
const { theme } = useOrchestratorTheme();
|
|
58493
|
-
return /* @__PURE__ */
|
|
58517
|
+
return /* @__PURE__ */ jsx290(EuiPanel17, { paddingSize: "l", color: "transparent", hasShadow: false, children: /* @__PURE__ */ jsx290(EuiFlexGroup41, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsx290(EuiFlexItem48, { grow: false, children: /* @__PURE__ */ jsx290(EuiText58, { size: "m", color: theme.colors.textSubdued, children: t("loadingSearchResults") }) }) }) });
|
|
58494
58518
|
};
|
|
58495
58519
|
|
|
58496
58520
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx
|
|
@@ -58508,7 +58532,7 @@ import {
|
|
|
58508
58532
|
// src/components/WfoSearchPage/WfoSearchResults/WfoHighlightedText.tsx
|
|
58509
58533
|
import { useMemo as useMemo8 } from "react";
|
|
58510
58534
|
import { css as css53 } from "@emotion/react";
|
|
58511
|
-
import { Fragment as Fragment68, jsx as
|
|
58535
|
+
import { Fragment as Fragment68, jsx as jsx291 } from "@emotion/react/jsx-runtime";
|
|
58512
58536
|
var WfoHighlightedText = ({
|
|
58513
58537
|
text,
|
|
58514
58538
|
highlight_indices
|
|
@@ -58532,26 +58556,26 @@ var WfoHighlightedText = ({
|
|
|
58532
58556
|
sorted.forEach(([start, end], idx) => {
|
|
58533
58557
|
if (start > lastIndex) {
|
|
58534
58558
|
parts.push(
|
|
58535
|
-
/* @__PURE__ */
|
|
58559
|
+
/* @__PURE__ */ jsx291("span", { children: text.slice(lastIndex, start) }, `plain-${idx}`)
|
|
58536
58560
|
);
|
|
58537
58561
|
}
|
|
58538
58562
|
parts.push(
|
|
58539
|
-
/* @__PURE__ */
|
|
58563
|
+
/* @__PURE__ */ jsx291("span", { css: highlightStyles, children: text.slice(start, end) }, `hl-${idx}`)
|
|
58540
58564
|
);
|
|
58541
58565
|
lastIndex = end;
|
|
58542
58566
|
});
|
|
58543
58567
|
if (lastIndex < text.length) {
|
|
58544
|
-
parts.push(/* @__PURE__ */
|
|
58568
|
+
parts.push(/* @__PURE__ */ jsx291("span", { children: text.slice(lastIndex) }, "plain-last"));
|
|
58545
58569
|
}
|
|
58546
58570
|
return parts;
|
|
58547
58571
|
}, [text, highlight_indices, highlightStyles]);
|
|
58548
|
-
return /* @__PURE__ */
|
|
58572
|
+
return /* @__PURE__ */ jsx291(Fragment68, { children: highlightedParts });
|
|
58549
58573
|
};
|
|
58550
58574
|
|
|
58551
58575
|
// src/components/WfoSearchPage/WfoSearchResults/WfoPathBreadcrumb.tsx
|
|
58552
58576
|
import { Fragment as Fragment69 } from "react";
|
|
58553
58577
|
import { EuiFlexGroup as EuiFlexGroup42, EuiFlexItem as EuiFlexItem49, EuiIcon as EuiIcon9 } from "@elastic/eui";
|
|
58554
|
-
import { jsx as
|
|
58578
|
+
import { jsx as jsx292, jsxs as jsxs153 } from "@emotion/react/jsx-runtime";
|
|
58555
58579
|
var WfoPathBreadcrumb = ({
|
|
58556
58580
|
path,
|
|
58557
58581
|
size = "m",
|
|
@@ -58574,7 +58598,7 @@ var WfoPathBreadcrumb = ({
|
|
|
58574
58598
|
segments[segments.length - 1]
|
|
58575
58599
|
] : segments;
|
|
58576
58600
|
const badgeColor = color || theme.colors.primary;
|
|
58577
|
-
return /* @__PURE__ */
|
|
58601
|
+
return /* @__PURE__ */ jsx292(
|
|
58578
58602
|
EuiFlexGroup42,
|
|
58579
58603
|
{
|
|
58580
58604
|
gutterSize: size,
|
|
@@ -58582,7 +58606,7 @@ var WfoPathBreadcrumb = ({
|
|
|
58582
58606
|
wrap: false,
|
|
58583
58607
|
responsive: false,
|
|
58584
58608
|
children: displaySegments.map((segment, index) => /* @__PURE__ */ jsxs153(Fragment69, { children: [
|
|
58585
|
-
/* @__PURE__ */
|
|
58609
|
+
/* @__PURE__ */ jsx292(EuiFlexItem49, { grow: false, children: /* @__PURE__ */ jsx292(
|
|
58586
58610
|
WfoBadge,
|
|
58587
58611
|
{
|
|
58588
58612
|
color: badgeColor,
|
|
@@ -58591,7 +58615,7 @@ var WfoPathBreadcrumb = ({
|
|
|
58591
58615
|
children: segment
|
|
58592
58616
|
}
|
|
58593
58617
|
) }),
|
|
58594
|
-
showArrows && index < displaySegments.length - 1 && /* @__PURE__ */
|
|
58618
|
+
showArrows && index < displaySegments.length - 1 && /* @__PURE__ */ jsx292(EuiFlexItem49, { grow: false, children: /* @__PURE__ */ jsx292(
|
|
58595
58619
|
EuiIcon9,
|
|
58596
58620
|
{
|
|
58597
58621
|
type: "arrowRight",
|
|
@@ -58605,7 +58629,7 @@ var WfoPathBreadcrumb = ({
|
|
|
58605
58629
|
};
|
|
58606
58630
|
|
|
58607
58631
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx
|
|
58608
|
-
import { Fragment as Fragment70, jsx as
|
|
58632
|
+
import { Fragment as Fragment70, jsx as jsx293, jsxs as jsxs154 } from "@emotion/react/jsx-runtime";
|
|
58609
58633
|
var WfoSearchResultItem = ({
|
|
58610
58634
|
result,
|
|
58611
58635
|
isSelected = false,
|
|
@@ -58624,7 +58648,7 @@ var WfoSearchResultItem = ({
|
|
|
58624
58648
|
onPositionChange(index, itemRef.current);
|
|
58625
58649
|
}
|
|
58626
58650
|
}, [isSelected, index, onPositionChange]);
|
|
58627
|
-
return /* @__PURE__ */
|
|
58651
|
+
return /* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsx293(
|
|
58628
58652
|
EuiPanel18,
|
|
58629
58653
|
{
|
|
58630
58654
|
panelRef: itemRef,
|
|
@@ -58642,8 +58666,8 @@ var WfoSearchResultItem = ({
|
|
|
58642
58666
|
borderColor: theme.colors.primary
|
|
58643
58667
|
} : void 0,
|
|
58644
58668
|
children: /* @__PURE__ */ jsxs154(EuiFlexGroup43, { alignItems: "flexStart", gutterSize: "m", children: [
|
|
58645
|
-
/* @__PURE__ */
|
|
58646
|
-
/* @__PURE__ */
|
|
58669
|
+
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsxs154(EuiFlexGroup43, { direction: "column", gutterSize: "xs", children: [
|
|
58670
|
+
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsx293(
|
|
58647
58671
|
EuiText59,
|
|
58648
58672
|
{
|
|
58649
58673
|
size: "m",
|
|
@@ -58654,7 +58678,7 @@ var WfoSearchResultItem = ({
|
|
|
58654
58678
|
}
|
|
58655
58679
|
) }),
|
|
58656
58680
|
matchingField && /* @__PURE__ */ jsxs154(Fragment70, { children: [
|
|
58657
|
-
matchingField.path && /* @__PURE__ */
|
|
58681
|
+
matchingField.path && /* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsx293(
|
|
58658
58682
|
WfoPathBreadcrumb,
|
|
58659
58683
|
{
|
|
58660
58684
|
path: matchingField.path,
|
|
@@ -58663,7 +58687,7 @@ var WfoSearchResultItem = ({
|
|
|
58663
58687
|
color: theme.colors.primary
|
|
58664
58688
|
}
|
|
58665
58689
|
) }),
|
|
58666
|
-
/* @__PURE__ */
|
|
58690
|
+
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsx293(
|
|
58667
58691
|
EuiText59,
|
|
58668
58692
|
{
|
|
58669
58693
|
style: {
|
|
@@ -58671,7 +58695,7 @@ var WfoSearchResultItem = ({
|
|
|
58671
58695
|
borderRadius: theme.border.radius.medium,
|
|
58672
58696
|
fontSize: theme.size.base
|
|
58673
58697
|
},
|
|
58674
|
-
children: /* @__PURE__ */
|
|
58698
|
+
children: /* @__PURE__ */ jsx293(
|
|
58675
58699
|
WfoHighlightedText,
|
|
58676
58700
|
{
|
|
58677
58701
|
text: matchingField.text,
|
|
@@ -58680,17 +58704,17 @@ var WfoSearchResultItem = ({
|
|
|
58680
58704
|
)
|
|
58681
58705
|
}
|
|
58682
58706
|
) }),
|
|
58683
|
-
/* @__PURE__ */
|
|
58707
|
+
/* @__PURE__ */ jsx293(EuiSpacer32, { size: "xs" })
|
|
58684
58708
|
] })
|
|
58685
58709
|
] }) }),
|
|
58686
|
-
/* @__PURE__ */
|
|
58710
|
+
/* @__PURE__ */ jsx293(EuiFlexItem50, { grow: false, children: /* @__PURE__ */ jsxs154(
|
|
58687
58711
|
EuiFlexGroup43,
|
|
58688
58712
|
{
|
|
58689
58713
|
direction: "column",
|
|
58690
58714
|
alignItems: "flexEnd",
|
|
58691
58715
|
gutterSize: "xs",
|
|
58692
58716
|
children: [
|
|
58693
|
-
/* @__PURE__ */
|
|
58717
|
+
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsx293(
|
|
58694
58718
|
WfoBadge,
|
|
58695
58719
|
{
|
|
58696
58720
|
color: theme.colors.primary,
|
|
@@ -58698,7 +58722,7 @@ var WfoSearchResultItem = ({
|
|
|
58698
58722
|
children: "score" in result && result.score ? result.score.toFixed(4) : "N/A"
|
|
58699
58723
|
}
|
|
58700
58724
|
) }),
|
|
58701
|
-
/* @__PURE__ */
|
|
58725
|
+
/* @__PURE__ */ jsx293(EuiFlexItem50, { children: /* @__PURE__ */ jsx293(
|
|
58702
58726
|
EuiButtonIcon17,
|
|
58703
58727
|
{
|
|
58704
58728
|
iconType: "popout",
|
|
@@ -58720,7 +58744,7 @@ var WfoSearchResultItem = ({
|
|
|
58720
58744
|
};
|
|
58721
58745
|
|
|
58722
58746
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchResults.tsx
|
|
58723
|
-
import { jsx as
|
|
58747
|
+
import { jsx as jsx294 } from "@emotion/react/jsx-runtime";
|
|
58724
58748
|
var WfoSearchResults = ({
|
|
58725
58749
|
results,
|
|
58726
58750
|
loading,
|
|
@@ -58728,12 +58752,12 @@ var WfoSearchResults = ({
|
|
|
58728
58752
|
onRecordSelect
|
|
58729
58753
|
}) => {
|
|
58730
58754
|
if (loading) {
|
|
58731
|
-
return /* @__PURE__ */
|
|
58755
|
+
return /* @__PURE__ */ jsx294(WfoSearchLoadingState, {});
|
|
58732
58756
|
}
|
|
58733
58757
|
if (!results || results.length === 0) {
|
|
58734
|
-
return /* @__PURE__ */
|
|
58758
|
+
return /* @__PURE__ */ jsx294(WfoSearchEmptyState, {});
|
|
58735
58759
|
}
|
|
58736
|
-
return /* @__PURE__ */
|
|
58760
|
+
return /* @__PURE__ */ jsx294(EuiPanel19, { paddingSize: "m", hasShadow: false, children: /* @__PURE__ */ jsx294(EuiFlexGroup44, { direction: "column", gutterSize: "s", children: results.map((result, idx) => /* @__PURE__ */ jsx294(
|
|
58737
58761
|
WfoSearchResultItem,
|
|
58738
58762
|
{
|
|
58739
58763
|
result,
|
|
@@ -58748,12 +58772,12 @@ var WfoSearchResults = ({
|
|
|
58748
58772
|
};
|
|
58749
58773
|
|
|
58750
58774
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchMetadataHeader.tsx
|
|
58751
|
-
import { jsx as
|
|
58775
|
+
import { jsx as jsx295 } from "@emotion/react/jsx-runtime";
|
|
58752
58776
|
var WfoSearchMetadataHeader = ({
|
|
58753
58777
|
search_metadata
|
|
58754
58778
|
}) => {
|
|
58755
58779
|
if (!search_metadata.search_type) return null;
|
|
58756
|
-
return /* @__PURE__ */
|
|
58780
|
+
return /* @__PURE__ */ jsx295(WfoToolTip, { tooltipContent: search_metadata.description || "", children: /* @__PURE__ */ jsx295(WfoBadge, { color: "hollow", iconType: "search", textColor: "default", children: search_metadata.search_type }) });
|
|
58757
58781
|
};
|
|
58758
58782
|
|
|
58759
58783
|
// src/components/WfoSearchPage/WfoSearchResults/WfoSearchPaginationInfo.tsx
|
|
@@ -58764,7 +58788,7 @@ import {
|
|
|
58764
58788
|
EuiFlexItem as EuiFlexItem51,
|
|
58765
58789
|
EuiText as EuiText60
|
|
58766
58790
|
} from "@elastic/eui";
|
|
58767
|
-
import { jsx as
|
|
58791
|
+
import { jsx as jsx296, jsxs as jsxs155 } from "@emotion/react/jsx-runtime";
|
|
58768
58792
|
var WfoSearchPaginationInfo = ({
|
|
58769
58793
|
has_next_page,
|
|
58770
58794
|
next_page_cursor,
|
|
@@ -58801,7 +58825,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
58801
58825
|
role: "navigation",
|
|
58802
58826
|
"aria-label": t("searchResultsPagination"),
|
|
58803
58827
|
children: [
|
|
58804
|
-
/* @__PURE__ */
|
|
58828
|
+
/* @__PURE__ */ jsx296(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsx296(
|
|
58805
58829
|
EuiButtonIcon18,
|
|
58806
58830
|
{
|
|
58807
58831
|
iconType: "arrowLeft",
|
|
@@ -58812,12 +58836,12 @@ var WfoSearchPaginationInfo = ({
|
|
|
58812
58836
|
size: "s"
|
|
58813
58837
|
}
|
|
58814
58838
|
) }),
|
|
58815
|
-
/* @__PURE__ */
|
|
58839
|
+
/* @__PURE__ */ jsx296(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsxs155(EuiText60, { size: "xs", color: theme.colors.textSubdued, children: [
|
|
58816
58840
|
t("page"),
|
|
58817
58841
|
" ",
|
|
58818
58842
|
currentPage
|
|
58819
58843
|
] }) }),
|
|
58820
|
-
/* @__PURE__ */
|
|
58844
|
+
/* @__PURE__ */ jsx296(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsx296(
|
|
58821
58845
|
EuiButtonIcon18,
|
|
58822
58846
|
{
|
|
58823
58847
|
iconType: "arrowRight",
|
|
@@ -58829,7 +58853,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
58829
58853
|
isLoading
|
|
58830
58854
|
}
|
|
58831
58855
|
) }),
|
|
58832
|
-
resultCount && resultCount > 0 && /* @__PURE__ */
|
|
58856
|
+
resultCount && resultCount > 0 && /* @__PURE__ */ jsx296(EuiFlexItem51, { grow: false, children: /* @__PURE__ */ jsx296(
|
|
58833
58857
|
WfoBadge,
|
|
58834
58858
|
{
|
|
58835
58859
|
className: "wfoPagination__badge",
|
|
@@ -58844,7 +58868,7 @@ var WfoSearchPaginationInfo = ({
|
|
|
58844
58868
|
};
|
|
58845
58869
|
|
|
58846
58870
|
// src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
|
|
58847
|
-
import { Fragment as Fragment71, jsx as
|
|
58871
|
+
import { Fragment as Fragment71, jsx as jsx297, jsxs as jsxs156 } from "@emotion/react/jsx-runtime";
|
|
58848
58872
|
var WfoSearch = () => {
|
|
58849
58873
|
const t = useTranslations106("search.page");
|
|
58850
58874
|
const { theme } = useOrchestratorTheme();
|
|
@@ -58863,11 +58887,11 @@ var WfoSearch = () => {
|
|
|
58863
58887
|
setSelectedRecordId
|
|
58864
58888
|
} = useUrlParams();
|
|
58865
58889
|
const pageSize = DEFAULT_PAGE_SIZE2;
|
|
58866
|
-
const [filterGroup, setFilterGroup] =
|
|
58890
|
+
const [filterGroup, setFilterGroup] = useState64({
|
|
58867
58891
|
op: "AND",
|
|
58868
58892
|
children: []
|
|
58869
58893
|
});
|
|
58870
|
-
const [showDetailPanel, setShowDetailPanel] =
|
|
58894
|
+
const [showDetailPanel, setShowDetailPanel] = useState64(false);
|
|
58871
58895
|
const debouncedQuery = useDebounce(query, DEFAULT_DEBOUNCE_DELAY);
|
|
58872
58896
|
const { results, loading, setResults } = useSearch(
|
|
58873
58897
|
debouncedQuery,
|
|
@@ -58875,7 +58899,7 @@ var WfoSearch = () => {
|
|
|
58875
58899
|
filterGroup,
|
|
58876
58900
|
pageSize
|
|
58877
58901
|
);
|
|
58878
|
-
const [hasSearchBeenAttempted, setHasSearchBeenAttempted] =
|
|
58902
|
+
const [hasSearchBeenAttempted, setHasSearchBeenAttempted] = useState64(false);
|
|
58879
58903
|
useEffect41(() => {
|
|
58880
58904
|
const queryText = typeof debouncedQuery === "string" ? debouncedQuery : debouncedQuery?.text?.trim() || "";
|
|
58881
58905
|
const hasFilters = filterGroup && filterGroup.children.length > 0;
|
|
@@ -58901,7 +58925,7 @@ var WfoSearch = () => {
|
|
|
58901
58925
|
results,
|
|
58902
58926
|
setResults
|
|
58903
58927
|
);
|
|
58904
|
-
const [searchValue, setSearchValue] =
|
|
58928
|
+
const [searchValue, setSearchValue] = useState64(() => {
|
|
58905
58929
|
if (typeof query === "string") {
|
|
58906
58930
|
return query;
|
|
58907
58931
|
}
|
|
@@ -58987,7 +59011,7 @@ var WfoSearch = () => {
|
|
|
58987
59011
|
featureType: "search",
|
|
58988
59012
|
availability: searchAvailability,
|
|
58989
59013
|
children: [
|
|
58990
|
-
/* @__PURE__ */
|
|
59014
|
+
/* @__PURE__ */ jsx297(EuiTabs4, { children: ENTITY_TABS.map((tab) => /* @__PURE__ */ jsx297(
|
|
58991
59015
|
EuiTab4,
|
|
58992
59016
|
{
|
|
58993
59017
|
onClick: () => handleTabChange(tab.id),
|
|
@@ -58996,8 +59020,8 @@ var WfoSearch = () => {
|
|
|
58996
59020
|
},
|
|
58997
59021
|
tab.id
|
|
58998
59022
|
)) }),
|
|
58999
|
-
/* @__PURE__ */
|
|
59000
|
-
/* @__PURE__ */
|
|
59023
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" }),
|
|
59024
|
+
/* @__PURE__ */ jsx297(
|
|
59001
59025
|
EuiFieldSearch3,
|
|
59002
59026
|
{
|
|
59003
59027
|
placeholder: t("searchPlaceholder", {
|
|
@@ -59014,8 +59038,8 @@ var WfoSearch = () => {
|
|
|
59014
59038
|
fullWidth: true
|
|
59015
59039
|
}
|
|
59016
59040
|
),
|
|
59017
|
-
/* @__PURE__ */
|
|
59018
|
-
/* @__PURE__ */
|
|
59041
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "s" }),
|
|
59042
|
+
/* @__PURE__ */ jsx297(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: /* @__PURE__ */ jsx297(EuiFlexItem52, { grow: false, children: /* @__PURE__ */ jsx297(
|
|
59019
59043
|
EuiButton23,
|
|
59020
59044
|
{
|
|
59021
59045
|
iconType: showFilters ? "eyeClosed" : "eye",
|
|
@@ -59025,11 +59049,11 @@ var WfoSearch = () => {
|
|
|
59025
59049
|
}
|
|
59026
59050
|
) }) }),
|
|
59027
59051
|
showFilters && /* @__PURE__ */ jsxs156(Fragment71, { children: [
|
|
59028
|
-
/* @__PURE__ */
|
|
59052
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" }),
|
|
59029
59053
|
/* @__PURE__ */ jsxs156(EuiPanel20, { hasBorder: true, paddingSize: "m", children: [
|
|
59030
|
-
/* @__PURE__ */
|
|
59031
|
-
/* @__PURE__ */
|
|
59032
|
-
/* @__PURE__ */
|
|
59054
|
+
/* @__PURE__ */ jsx297(EuiText61, { children: /* @__PURE__ */ jsx297("h4", { children: t("structuredFilters") }) }),
|
|
59055
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "s" }),
|
|
59056
|
+
/* @__PURE__ */ jsx297(
|
|
59033
59057
|
FilterGroup,
|
|
59034
59058
|
{
|
|
59035
59059
|
group: filterGroup,
|
|
@@ -59040,18 +59064,18 @@ var WfoSearch = () => {
|
|
|
59040
59064
|
)
|
|
59041
59065
|
] })
|
|
59042
59066
|
] }),
|
|
59043
|
-
/* @__PURE__ */
|
|
59067
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" }),
|
|
59044
59068
|
error && /* @__PURE__ */ jsxs156(Fragment71, { children: [
|
|
59045
59069
|
/* @__PURE__ */ jsxs156(
|
|
59046
|
-
|
|
59070
|
+
EuiCallOut5,
|
|
59047
59071
|
{
|
|
59048
59072
|
title: t("searchError"),
|
|
59049
59073
|
color: "danger",
|
|
59050
59074
|
iconType: "alert",
|
|
59051
59075
|
size: "s",
|
|
59052
59076
|
children: [
|
|
59053
|
-
/* @__PURE__ */
|
|
59054
|
-
/* @__PURE__ */
|
|
59077
|
+
/* @__PURE__ */ jsx297("p", { children: error }),
|
|
59078
|
+
/* @__PURE__ */ jsx297(
|
|
59055
59079
|
EuiButton23,
|
|
59056
59080
|
{
|
|
59057
59081
|
size: "s",
|
|
@@ -59063,32 +59087,32 @@ var WfoSearch = () => {
|
|
|
59063
59087
|
]
|
|
59064
59088
|
}
|
|
59065
59089
|
),
|
|
59066
|
-
/* @__PURE__ */
|
|
59090
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" })
|
|
59067
59091
|
] }),
|
|
59068
59092
|
shouldShowNoResults && /* @__PURE__ */ jsxs156(Fragment71, { children: [
|
|
59069
|
-
/* @__PURE__ */
|
|
59093
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "l" }),
|
|
59070
59094
|
/* @__PURE__ */ jsxs156(
|
|
59071
|
-
|
|
59095
|
+
EuiCallOut5,
|
|
59072
59096
|
{
|
|
59073
59097
|
title: t("noResults"),
|
|
59074
59098
|
color: "primary",
|
|
59075
59099
|
iconType: "search",
|
|
59076
59100
|
size: "m",
|
|
59077
59101
|
children: [
|
|
59078
|
-
/* @__PURE__ */
|
|
59102
|
+
/* @__PURE__ */ jsx297("p", { children: t("noResultsMessage", {
|
|
59079
59103
|
entityType: currentTab?.label.toLowerCase()
|
|
59080
59104
|
}) }),
|
|
59081
|
-
/* @__PURE__ */
|
|
59082
|
-
/* @__PURE__ */
|
|
59105
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "s" }),
|
|
59106
|
+
/* @__PURE__ */ jsx297(EuiText61, { size: "s", color: "subdued", children: /* @__PURE__ */ jsx297("p", { children: t("noResultsSuggestions") }) })
|
|
59083
59107
|
]
|
|
59084
59108
|
}
|
|
59085
59109
|
),
|
|
59086
|
-
/* @__PURE__ */
|
|
59110
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "l" })
|
|
59087
59111
|
] }),
|
|
59088
59112
|
isSearchActive && /* @__PURE__ */ jsxs156(Fragment71, { children: [
|
|
59089
|
-
/* @__PURE__ */
|
|
59113
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" }),
|
|
59090
59114
|
/* @__PURE__ */ jsxs156(EuiFlexGroup46, { gutterSize: "s", alignItems: "center", children: [
|
|
59091
|
-
/* @__PURE__ */
|
|
59115
|
+
/* @__PURE__ */ jsx297(EuiFlexItem52, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsxs156(
|
|
59092
59116
|
EuiFlexGroup46,
|
|
59093
59117
|
{
|
|
59094
59118
|
gutterSize: "s",
|
|
@@ -59097,13 +59121,13 @@ var WfoSearch = () => {
|
|
|
59097
59121
|
responsive: false,
|
|
59098
59122
|
style: { width: "100%" },
|
|
59099
59123
|
children: [
|
|
59100
|
-
/* @__PURE__ */
|
|
59124
|
+
/* @__PURE__ */ jsx297(EuiFlexItem52, { grow: false, children: /* @__PURE__ */ jsx297(
|
|
59101
59125
|
WfoSearchMetadataHeader,
|
|
59102
59126
|
{
|
|
59103
59127
|
search_metadata: results.search_metadata
|
|
59104
59128
|
}
|
|
59105
59129
|
) }),
|
|
59106
|
-
/* @__PURE__ */
|
|
59130
|
+
/* @__PURE__ */ jsx297(EuiFlexItem52, { grow: false, children: /* @__PURE__ */ jsx297(
|
|
59107
59131
|
WfoSearchPaginationInfo,
|
|
59108
59132
|
{
|
|
59109
59133
|
has_next_page: results.page_info.has_next_page,
|
|
@@ -59119,11 +59143,11 @@ var WfoSearch = () => {
|
|
|
59119
59143
|
]
|
|
59120
59144
|
}
|
|
59121
59145
|
) }),
|
|
59122
|
-
showDetailPanel && /* @__PURE__ */
|
|
59146
|
+
showDetailPanel && /* @__PURE__ */ jsx297(EuiFlexItem52, { grow: DETAIL_GROW })
|
|
59123
59147
|
] }),
|
|
59124
|
-
/* @__PURE__ */
|
|
59148
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "s" }),
|
|
59125
59149
|
/* @__PURE__ */ jsxs156(EuiFlexGroup46, { gutterSize: "s", alignItems: "flexStart", children: [
|
|
59126
|
-
/* @__PURE__ */
|
|
59150
|
+
/* @__PURE__ */ jsx297(EuiFlexItem52, { grow: showDetailPanel ? RESULTS_GROW : 1, children: /* @__PURE__ */ jsx297(EuiPanel20, { paddingSize: "none", hasBorder: true, children: /* @__PURE__ */ jsx297(
|
|
59127
59151
|
WfoSearchResults,
|
|
59128
59152
|
{
|
|
59129
59153
|
results: results.data,
|
|
@@ -59140,7 +59164,7 @@ var WfoSearch = () => {
|
|
|
59140
59164
|
}
|
|
59141
59165
|
}
|
|
59142
59166
|
) }) }),
|
|
59143
|
-
showDetailPanel && /* @__PURE__ */
|
|
59167
|
+
showDetailPanel && /* @__PURE__ */ jsx297(EuiFlexItem52, { grow: DETAIL_GROW, children: /* @__PURE__ */ jsx297(
|
|
59144
59168
|
EuiPanel20,
|
|
59145
59169
|
{
|
|
59146
59170
|
paddingSize: "m",
|
|
@@ -59149,26 +59173,26 @@ var WfoSearch = () => {
|
|
|
59149
59173
|
color: "transparent",
|
|
59150
59174
|
children: selectedEntityTab === "SUBSCRIPTION" && results.data[selectedRecordIndex] && isSubscriptionSearchResult(
|
|
59151
59175
|
results.data[selectedRecordIndex]
|
|
59152
|
-
) ? /* @__PURE__ */
|
|
59176
|
+
) ? /* @__PURE__ */ jsx297(TreeProvider, { children: /* @__PURE__ */ jsx297(
|
|
59153
59177
|
WfoSubscription,
|
|
59154
59178
|
{
|
|
59155
59179
|
subscriptionId: results.data[selectedRecordIndex].entity_id
|
|
59156
59180
|
}
|
|
59157
59181
|
) }) : /* @__PURE__ */ jsxs156(Fragment71, { children: [
|
|
59158
|
-
/* @__PURE__ */
|
|
59159
|
-
/* @__PURE__ */
|
|
59182
|
+
/* @__PURE__ */ jsx297(EuiText61, { children: /* @__PURE__ */ jsx297("h4", { children: t("details") }) }),
|
|
59183
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" }),
|
|
59160
59184
|
/* @__PURE__ */ jsxs156(
|
|
59161
59185
|
EuiText61,
|
|
59162
59186
|
{
|
|
59163
59187
|
color: theme.colors.textSubdued,
|
|
59164
59188
|
children: [
|
|
59165
|
-
/* @__PURE__ */
|
|
59189
|
+
/* @__PURE__ */ jsx297("p", { children: t(
|
|
59166
59190
|
"showingDetailsForResult",
|
|
59167
59191
|
{
|
|
59168
59192
|
resultNumber: selectedRecordIndex + 1
|
|
59169
59193
|
}
|
|
59170
59194
|
) }),
|
|
59171
|
-
/* @__PURE__ */
|
|
59195
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "s" }),
|
|
59172
59196
|
/* @__PURE__ */ jsxs156(
|
|
59173
59197
|
WfoBadge,
|
|
59174
59198
|
{
|
|
@@ -59181,8 +59205,8 @@ var WfoSearch = () => {
|
|
|
59181
59205
|
]
|
|
59182
59206
|
}
|
|
59183
59207
|
),
|
|
59184
|
-
/* @__PURE__ */
|
|
59185
|
-
/* @__PURE__ */
|
|
59208
|
+
/* @__PURE__ */ jsx297(EuiSpacer33, { size: "m" }),
|
|
59209
|
+
/* @__PURE__ */ jsx297("p", { children: /* @__PURE__ */ jsx297("em", { children: t(
|
|
59186
59210
|
"selectResultInstruction"
|
|
59187
59211
|
) }) })
|
|
59188
59212
|
]
|
|
@@ -59288,7 +59312,7 @@ var getExportButtonStyles = ({ theme }) => {
|
|
|
59288
59312
|
};
|
|
59289
59313
|
|
|
59290
59314
|
// src/components/WfoAgent/ExportButton/ExportButton.tsx
|
|
59291
|
-
import { jsx as
|
|
59315
|
+
import { jsx as jsx298, jsxs as jsxs157 } from "@emotion/react/jsx-runtime";
|
|
59292
59316
|
function ExportButton({ exportData }) {
|
|
59293
59317
|
const { showToastMessage } = useShowToastMessage();
|
|
59294
59318
|
const tError = useTranslations107("errors");
|
|
@@ -59325,27 +59349,27 @@ function ExportButton({ exportData }) {
|
|
|
59325
59349
|
);
|
|
59326
59350
|
await handleExport();
|
|
59327
59351
|
};
|
|
59328
|
-
return /* @__PURE__ */
|
|
59329
|
-
exportData.message && /* @__PURE__ */
|
|
59352
|
+
return /* @__PURE__ */ jsx298("div", { css: containerStyle2, children: /* @__PURE__ */ jsxs157("div", { css: buttonWrapperStyle, children: [
|
|
59353
|
+
exportData.message && /* @__PURE__ */ jsx298("div", { css: titleStyle, children: exportData.message }),
|
|
59330
59354
|
/* @__PURE__ */ jsxs157("div", { css: fileRowStyle, onClick: onDownloadClick, children: [
|
|
59331
59355
|
/* @__PURE__ */ jsxs157("div", { css: fileInfoStyle, children: [
|
|
59332
|
-
/* @__PURE__ */
|
|
59333
|
-
/* @__PURE__ */
|
|
59356
|
+
/* @__PURE__ */ jsx298(EuiIcon10, { type: "document", size: "m" }),
|
|
59357
|
+
/* @__PURE__ */ jsx298("span", { css: filenameStyle, children: filename })
|
|
59334
59358
|
] }),
|
|
59335
|
-
/* @__PURE__ */
|
|
59359
|
+
/* @__PURE__ */ jsx298("div", { css: downloadButtonStyle, children: isFetching ? /* @__PURE__ */ jsx298(EuiLoadingSpinner4, { size: "m" }) : /* @__PURE__ */ jsx298(EuiIcon10, { type: "download", size: "m" }) })
|
|
59336
59360
|
] })
|
|
59337
59361
|
] }) });
|
|
59338
59362
|
}
|
|
59339
59363
|
|
|
59340
59364
|
// src/components/WfoAgent/ToolProgress/ToolProgress.tsx
|
|
59341
|
-
import { useState as
|
|
59365
|
+
import { useState as useState65 } from "react";
|
|
59342
59366
|
import { useTranslations as useTranslations109 } from "next-intl";
|
|
59343
59367
|
import { EuiFlexGroup as EuiFlexGroup49, EuiFlexItem as EuiFlexItem55, EuiLoadingSpinner as EuiLoadingSpinner5 } from "@elastic/eui";
|
|
59344
59368
|
|
|
59345
59369
|
// src/components/WfoAgent/ToolProgress/DiscoverFilterPathsDisplay.tsx
|
|
59346
59370
|
import React93 from "react";
|
|
59347
59371
|
import { EuiSpacer as EuiSpacer34, EuiText as EuiText62 } from "@elastic/eui";
|
|
59348
|
-
import { Fragment as Fragment72, jsx as
|
|
59372
|
+
import { Fragment as Fragment72, jsx as jsx299, jsxs as jsxs158 } from "@emotion/react/jsx-runtime";
|
|
59349
59373
|
var DiscoverFilterPathsDisplay = ({
|
|
59350
59374
|
parameters,
|
|
59351
59375
|
result
|
|
@@ -59367,31 +59391,31 @@ var DiscoverFilterPathsDisplay = ({
|
|
|
59367
59391
|
" ",
|
|
59368
59392
|
field_names.map((name, idx) => /* @__PURE__ */ jsxs158(React93.Fragment, { children: [
|
|
59369
59393
|
idx > 0 && ", ",
|
|
59370
|
-
/* @__PURE__ */
|
|
59394
|
+
/* @__PURE__ */ jsx299(WfoBadge, { color: "hollow", textColor: "default", children: name })
|
|
59371
59395
|
] }, name))
|
|
59372
59396
|
] }),
|
|
59373
|
-
/* @__PURE__ */
|
|
59397
|
+
/* @__PURE__ */ jsx299(EuiSpacer34, { size: "s" })
|
|
59374
59398
|
] }),
|
|
59375
59399
|
result && totalPaths > 0 && /* @__PURE__ */ jsxs158("div", { children: [
|
|
59376
|
-
/* @__PURE__ */
|
|
59400
|
+
/* @__PURE__ */ jsx299(EuiText62, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsxs158("strong", { children: [
|
|
59377
59401
|
"Found ",
|
|
59378
59402
|
totalPaths,
|
|
59379
59403
|
" path",
|
|
59380
59404
|
totalPaths > 1 ? "s" : "",
|
|
59381
59405
|
":"
|
|
59382
59406
|
] }) }),
|
|
59383
|
-
/* @__PURE__ */
|
|
59384
|
-
foundFields.map(([fieldName, fieldResult]) => /* @__PURE__ */
|
|
59407
|
+
/* @__PURE__ */ jsx299(EuiSpacer34, { size: "xs" }),
|
|
59408
|
+
foundFields.map(([fieldName, fieldResult]) => /* @__PURE__ */ jsx299("div", { style: { marginBottom: "8px" }, children: fieldResult.leaves && fieldResult.leaves.length > 0 && fieldResult.leaves.map(
|
|
59385
59409
|
(leaf, leafIdx) => {
|
|
59386
59410
|
const paths = leaf.paths || (leaf.name ? [leaf.name] : []);
|
|
59387
|
-
return /* @__PURE__ */
|
|
59388
|
-
(path, pathIdx) => /* @__PURE__ */
|
|
59411
|
+
return /* @__PURE__ */ jsx299(React93.Fragment, { children: paths.map(
|
|
59412
|
+
(path, pathIdx) => /* @__PURE__ */ jsx299(
|
|
59389
59413
|
"div",
|
|
59390
59414
|
{
|
|
59391
59415
|
style: {
|
|
59392
59416
|
marginBottom: "4px"
|
|
59393
59417
|
},
|
|
59394
|
-
children: /* @__PURE__ */
|
|
59418
|
+
children: /* @__PURE__ */ jsx299(
|
|
59395
59419
|
WfoPathBreadcrumb,
|
|
59396
59420
|
{
|
|
59397
59421
|
path,
|
|
@@ -59410,12 +59434,12 @@ var DiscoverFilterPathsDisplay = ({
|
|
|
59410
59434
|
|
|
59411
59435
|
// src/components/WfoAgent/ToolProgress/RunSearchDisplay.tsx
|
|
59412
59436
|
import { EuiFlexGroup as EuiFlexGroup47, EuiFlexItem as EuiFlexItem53, EuiText as EuiText63 } from "@elastic/eui";
|
|
59413
|
-
import { jsx as
|
|
59437
|
+
import { jsx as jsx300, jsxs as jsxs159 } from "@emotion/react/jsx-runtime";
|
|
59414
59438
|
var RunSearchDisplay = ({ parameters }) => {
|
|
59415
59439
|
const { limit = 10 } = parameters;
|
|
59416
|
-
return /* @__PURE__ */
|
|
59417
|
-
/* @__PURE__ */
|
|
59418
|
-
/* @__PURE__ */
|
|
59440
|
+
return /* @__PURE__ */ jsx300("div", { children: /* @__PURE__ */ jsxs159(EuiFlexGroup47, { gutterSize: "s", alignItems: "center", children: [
|
|
59441
|
+
/* @__PURE__ */ jsx300(EuiFlexItem53, { grow: false, children: /* @__PURE__ */ jsx300(EuiText63, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx300("strong", { children: "Results Limit" }) }) }),
|
|
59442
|
+
/* @__PURE__ */ jsx300(EuiFlexItem53, { grow: false, children: /* @__PURE__ */ jsx300(WfoBadge, { textColor: "default", color: "hollow", children: limit }) })
|
|
59419
59443
|
] }) });
|
|
59420
59444
|
};
|
|
59421
59445
|
|
|
@@ -59479,7 +59503,7 @@ var getFilterDisplayStyles = ({ theme }) => {
|
|
|
59479
59503
|
};
|
|
59480
59504
|
|
|
59481
59505
|
// src/components/WfoAgent/ToolProgress/SetFilterTreeDisplay.tsx
|
|
59482
|
-
import { jsx as
|
|
59506
|
+
import { jsx as jsx301, jsxs as jsxs160 } from "@emotion/react/jsx-runtime";
|
|
59483
59507
|
var DEPTH_INDENT = 16;
|
|
59484
59508
|
var SetFilterTreeDisplay = ({
|
|
59485
59509
|
parameters
|
|
@@ -59508,13 +59532,13 @@ var SetFilterTreeDisplay = ({
|
|
|
59508
59532
|
};
|
|
59509
59533
|
const renderFilterGroup = (group, depth = 0) => {
|
|
59510
59534
|
if (!group.children || group.children.length === 0) {
|
|
59511
|
-
return /* @__PURE__ */
|
|
59535
|
+
return /* @__PURE__ */ jsx301(EuiText64, { size: "s", color: "subdued", children: /* @__PURE__ */ jsx301("em", { children: t("emptyGroup") }) });
|
|
59512
59536
|
}
|
|
59513
59537
|
const areChildrenGroups = group.children.length > 0 && !isCondition(group.children[0]);
|
|
59514
59538
|
return /* @__PURE__ */ jsxs160("div", { css: groupStyle, style: { marginLeft: depth * DEPTH_INDENT }, children: [
|
|
59515
|
-
/* @__PURE__ */
|
|
59516
|
-
/* @__PURE__ */
|
|
59517
|
-
/* @__PURE__ */
|
|
59539
|
+
/* @__PURE__ */ jsx301("div", { css: operatorStyle, children: group.op }),
|
|
59540
|
+
/* @__PURE__ */ jsx301("div", { css: areChildrenGroups ? columnGroupWrapStyle : wrapStyle, children: group.children.map((child, i) => /* @__PURE__ */ jsx301("div", { children: isCondition(child) ? /* @__PURE__ */ jsxs160("div", { css: chipStyle, children: [
|
|
59541
|
+
/* @__PURE__ */ jsx301(
|
|
59518
59542
|
WfoPathBreadcrumb,
|
|
59519
59543
|
{
|
|
59520
59544
|
path: child.path,
|
|
@@ -59522,7 +59546,7 @@ var SetFilterTreeDisplay = ({
|
|
|
59522
59546
|
showArrows: true
|
|
59523
59547
|
}
|
|
59524
59548
|
),
|
|
59525
|
-
/* @__PURE__ */
|
|
59549
|
+
/* @__PURE__ */ jsx301(
|
|
59526
59550
|
WfoBadge,
|
|
59527
59551
|
{
|
|
59528
59552
|
textColor: "default",
|
|
@@ -59539,19 +59563,19 @@ var SetFilterTreeDisplay = ({
|
|
|
59539
59563
|
).symbol
|
|
59540
59564
|
}
|
|
59541
59565
|
),
|
|
59542
|
-
/* @__PURE__ */
|
|
59566
|
+
/* @__PURE__ */ jsx301("span", { css: valueStyle, children: formatFilterValue(child.condition) })
|
|
59543
59567
|
] }) : renderFilterGroup(child, depth + 1) }, i)) })
|
|
59544
59568
|
] });
|
|
59545
59569
|
};
|
|
59546
59570
|
if (!filters || !filters.children || filters.children.length === 0) {
|
|
59547
|
-
return /* @__PURE__ */
|
|
59571
|
+
return /* @__PURE__ */ jsx301(EuiText64, { size: "s", color: "subdued", children: /* @__PURE__ */ jsx301("em", { children: t("noFiltersApplied") }) });
|
|
59548
59572
|
}
|
|
59549
|
-
return /* @__PURE__ */
|
|
59573
|
+
return /* @__PURE__ */ jsx301("div", { children: renderFilterGroup(filters) });
|
|
59550
59574
|
};
|
|
59551
59575
|
|
|
59552
59576
|
// src/components/WfoAgent/ToolProgress/StartNewSearchDisplay.tsx
|
|
59553
59577
|
import { EuiFlexGroup as EuiFlexGroup48, EuiFlexItem as EuiFlexItem54, EuiSpacer as EuiSpacer35, EuiText as EuiText65 } from "@elastic/eui";
|
|
59554
|
-
import { Fragment as Fragment73, jsx as
|
|
59578
|
+
import { Fragment as Fragment73, jsx as jsx302, jsxs as jsxs161 } from "@emotion/react/jsx-runtime";
|
|
59555
59579
|
var StartNewSearchDisplay = ({
|
|
59556
59580
|
parameters
|
|
59557
59581
|
}) => {
|
|
@@ -59559,21 +59583,21 @@ var StartNewSearchDisplay = ({
|
|
|
59559
59583
|
return /* @__PURE__ */ jsxs161("div", { children: [
|
|
59560
59584
|
/* @__PURE__ */ jsxs161(EuiFlexGroup48, { gutterSize: "s", wrap: true, children: [
|
|
59561
59585
|
entity_type && /* @__PURE__ */ jsxs161(EuiFlexItem54, { grow: false, children: [
|
|
59562
|
-
/* @__PURE__ */
|
|
59563
|
-
/* @__PURE__ */
|
|
59564
|
-
/* @__PURE__ */
|
|
59586
|
+
/* @__PURE__ */ jsx302(EuiText65, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx302("strong", { children: "Entity Type" }) }),
|
|
59587
|
+
/* @__PURE__ */ jsx302(EuiSpacer35, { size: "xs" }),
|
|
59588
|
+
/* @__PURE__ */ jsx302(WfoBadge, { textColor: "default", color: "hollow", children: entity_type })
|
|
59565
59589
|
] }),
|
|
59566
59590
|
action && /* @__PURE__ */ jsxs161(EuiFlexItem54, { grow: false, children: [
|
|
59567
|
-
/* @__PURE__ */
|
|
59568
|
-
/* @__PURE__ */
|
|
59569
|
-
/* @__PURE__ */
|
|
59591
|
+
/* @__PURE__ */ jsx302(EuiText65, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx302("strong", { children: "Action" }) }),
|
|
59592
|
+
/* @__PURE__ */ jsx302(EuiSpacer35, { size: "xs" }),
|
|
59593
|
+
/* @__PURE__ */ jsx302(WfoBadge, { textColor: "default", color: "hollow", children: action })
|
|
59570
59594
|
] })
|
|
59571
59595
|
] }),
|
|
59572
59596
|
query && /* @__PURE__ */ jsxs161(Fragment73, { children: [
|
|
59573
|
-
/* @__PURE__ */
|
|
59574
|
-
/* @__PURE__ */
|
|
59575
|
-
/* @__PURE__ */
|
|
59576
|
-
/* @__PURE__ */
|
|
59597
|
+
/* @__PURE__ */ jsx302(EuiSpacer35, { size: "s" }),
|
|
59598
|
+
/* @__PURE__ */ jsx302(EuiText65, { size: "xs", color: "subdued", children: /* @__PURE__ */ jsx302("strong", { children: "Query" }) }),
|
|
59599
|
+
/* @__PURE__ */ jsx302(EuiSpacer35, { size: "xs" }),
|
|
59600
|
+
/* @__PURE__ */ jsx302(EuiText65, { size: "s", children: /* @__PURE__ */ jsxs161("em", { children: [
|
|
59577
59601
|
'"',
|
|
59578
59602
|
query,
|
|
59579
59603
|
'"'
|
|
@@ -59627,7 +59651,7 @@ var getToolProgressStyles = ({ theme }) => {
|
|
|
59627
59651
|
};
|
|
59628
59652
|
|
|
59629
59653
|
// src/components/WfoAgent/ToolProgress/ToolProgress.tsx
|
|
59630
|
-
import { jsx as
|
|
59654
|
+
import { jsx as jsx303, jsxs as jsxs162 } from "@emotion/react/jsx-runtime";
|
|
59631
59655
|
var TOOL_DISPLAY_COMPONENTS = {
|
|
59632
59656
|
set_filter_tree: SetFilterTreeDisplay,
|
|
59633
59657
|
start_new_search: StartNewSearchDisplay,
|
|
@@ -59640,7 +59664,7 @@ var ToolProgress = ({
|
|
|
59640
59664
|
args,
|
|
59641
59665
|
result
|
|
59642
59666
|
}) => {
|
|
59643
|
-
const [isExpanded, setIsExpanded] =
|
|
59667
|
+
const [isExpanded, setIsExpanded] = useState65(false);
|
|
59644
59668
|
const tPage = useTranslations109("agent.page");
|
|
59645
59669
|
const {
|
|
59646
59670
|
containerStyle: containerStyle2,
|
|
@@ -59660,7 +59684,7 @@ var ToolProgress = ({
|
|
|
59660
59684
|
};
|
|
59661
59685
|
const renderStatus = () => {
|
|
59662
59686
|
if (status === "complete") {
|
|
59663
|
-
return /* @__PURE__ */
|
|
59687
|
+
return /* @__PURE__ */ jsx303(
|
|
59664
59688
|
WfoCheckmarkCircleFill,
|
|
59665
59689
|
{
|
|
59666
59690
|
color: theme.colors.success,
|
|
@@ -59670,10 +59694,10 @@ var ToolProgress = ({
|
|
|
59670
59694
|
);
|
|
59671
59695
|
}
|
|
59672
59696
|
if (status === "inProgress" || status === "executing") {
|
|
59673
|
-
return /* @__PURE__ */
|
|
59697
|
+
return /* @__PURE__ */ jsx303(EuiLoadingSpinner5, { size: "s" });
|
|
59674
59698
|
}
|
|
59675
59699
|
if (status === "failed") {
|
|
59676
|
-
return /* @__PURE__ */
|
|
59700
|
+
return /* @__PURE__ */ jsx303(
|
|
59677
59701
|
WfoXCircleFill,
|
|
59678
59702
|
{
|
|
59679
59703
|
color: theme.colors.danger,
|
|
@@ -59687,7 +59711,7 @@ var ToolProgress = ({
|
|
|
59687
59711
|
const DisplayComponent = TOOL_DISPLAY_COMPONENTS[name];
|
|
59688
59712
|
const hasContent = DisplayComponent && (args || result);
|
|
59689
59713
|
return /* @__PURE__ */ jsxs162("div", { css: containerStyle2, children: [
|
|
59690
|
-
/* @__PURE__ */
|
|
59714
|
+
/* @__PURE__ */ jsx303(
|
|
59691
59715
|
"div",
|
|
59692
59716
|
{
|
|
59693
59717
|
css: hasContent && containerClickableStyle,
|
|
@@ -59699,9 +59723,9 @@ var ToolProgress = ({
|
|
|
59699
59723
|
alignItems: "center",
|
|
59700
59724
|
css: headerStyle,
|
|
59701
59725
|
children: [
|
|
59702
|
-
/* @__PURE__ */
|
|
59703
|
-
/* @__PURE__ */
|
|
59704
|
-
/* @__PURE__ */
|
|
59726
|
+
/* @__PURE__ */ jsx303(EuiFlexItem55, { grow: false, children: /* @__PURE__ */ jsx303("div", { css: iconStyle, children: /* @__PURE__ */ jsx303(WfoWrench, { width: iconSize, height: iconSize }) }) }),
|
|
59727
|
+
/* @__PURE__ */ jsx303(EuiFlexItem55, { grow: true, children: /* @__PURE__ */ jsx303("span", { css: nameStyle, children: getToolLabel(name) }) }),
|
|
59728
|
+
/* @__PURE__ */ jsx303(
|
|
59705
59729
|
EuiFlexItem55,
|
|
59706
59730
|
{
|
|
59707
59731
|
grow: false,
|
|
@@ -59709,18 +59733,18 @@ var ToolProgress = ({
|
|
|
59709
59733
|
children: renderStatus()
|
|
59710
59734
|
}
|
|
59711
59735
|
),
|
|
59712
|
-
/* @__PURE__ */
|
|
59736
|
+
/* @__PURE__ */ jsx303(
|
|
59713
59737
|
EuiFlexItem55,
|
|
59714
59738
|
{
|
|
59715
59739
|
grow: false,
|
|
59716
59740
|
style: { minWidth: `${iconSize}px` },
|
|
59717
|
-
children: hasContent && (isExpanded ? /* @__PURE__ */
|
|
59741
|
+
children: hasContent && (isExpanded ? /* @__PURE__ */ jsx303(
|
|
59718
59742
|
WfoChevronUp,
|
|
59719
59743
|
{
|
|
59720
59744
|
width: iconSize,
|
|
59721
59745
|
height: iconSize
|
|
59722
59746
|
}
|
|
59723
|
-
) : /* @__PURE__ */
|
|
59747
|
+
) : /* @__PURE__ */ jsx303(
|
|
59724
59748
|
WfoChevronDown,
|
|
59725
59749
|
{
|
|
59726
59750
|
width: iconSize,
|
|
@@ -59734,7 +59758,7 @@ var ToolProgress = ({
|
|
|
59734
59758
|
)
|
|
59735
59759
|
}
|
|
59736
59760
|
),
|
|
59737
|
-
hasContent && isExpanded && /* @__PURE__ */
|
|
59761
|
+
hasContent && isExpanded && /* @__PURE__ */ jsx303("div", { css: expandedContentStyle, children: /* @__PURE__ */ jsx303(DisplayComponent, { parameters: args, result }) })
|
|
59738
59762
|
] });
|
|
59739
59763
|
};
|
|
59740
59764
|
|
|
@@ -59752,7 +59776,9 @@ import {
|
|
|
59752
59776
|
Position,
|
|
59753
59777
|
Settings
|
|
59754
59778
|
} from "@elastic/charts";
|
|
59755
|
-
import
|
|
59779
|
+
import "@elastic/charts/dist/theme_only_dark.css";
|
|
59780
|
+
import "@elastic/charts/dist/theme_only_light.css";
|
|
59781
|
+
import { jsx as jsx304, jsxs as jsxs163 } from "@emotion/react/jsx-runtime";
|
|
59756
59782
|
function WfoAgentLineChart({ aggregationData }) {
|
|
59757
59783
|
const { results } = aggregationData;
|
|
59758
59784
|
const { isDarkThemeActive, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
@@ -59767,8 +59793,8 @@ function WfoAgentLineChart({ aggregationData }) {
|
|
|
59767
59793
|
...result.aggregations
|
|
59768
59794
|
}));
|
|
59769
59795
|
return /* @__PURE__ */ jsxs163(Chart, { size: { height: multiplyByBaseUnit(30) }, children: [
|
|
59770
|
-
/* @__PURE__ */
|
|
59771
|
-
/* @__PURE__ */
|
|
59796
|
+
/* @__PURE__ */ jsx304(Settings, { showLegend: true, baseTheme: chartBaseTheme }),
|
|
59797
|
+
/* @__PURE__ */ jsx304(
|
|
59772
59798
|
Axis,
|
|
59773
59799
|
{
|
|
59774
59800
|
id: "bottom",
|
|
@@ -59777,8 +59803,8 @@ function WfoAgentLineChart({ aggregationData }) {
|
|
|
59777
59803
|
tickFormat: (d) => chartData[d]?.xLabel?.split(" ")[0] || d
|
|
59778
59804
|
}
|
|
59779
59805
|
),
|
|
59780
|
-
/* @__PURE__ */
|
|
59781
|
-
aggKeys.map((aggKey) => /* @__PURE__ */
|
|
59806
|
+
/* @__PURE__ */ jsx304(Axis, { id: "left", position: Position.Left, title: "Count" }),
|
|
59807
|
+
aggKeys.map((aggKey) => /* @__PURE__ */ jsx304(
|
|
59782
59808
|
LineSeries,
|
|
59783
59809
|
{
|
|
59784
59810
|
id: aggKey,
|
|
@@ -59802,6 +59828,8 @@ import {
|
|
|
59802
59828
|
Position as Position2,
|
|
59803
59829
|
Settings as Settings2
|
|
59804
59830
|
} from "@elastic/charts";
|
|
59831
|
+
import "@elastic/charts/dist/theme_only_dark.css";
|
|
59832
|
+
import "@elastic/charts/dist/theme_only_light.css";
|
|
59805
59833
|
|
|
59806
59834
|
// src/components/WfoAgent/WfoAgentChart/styles.ts
|
|
59807
59835
|
import { css as css57 } from "@emotion/react";
|
|
@@ -59811,7 +59839,7 @@ var containerStyle = css57({
|
|
|
59811
59839
|
});
|
|
59812
59840
|
|
|
59813
59841
|
// src/components/WfoAgent/WfoAgentChart/WfoAgentPieChart.tsx
|
|
59814
|
-
import { jsx as
|
|
59842
|
+
import { jsx as jsx305, jsxs as jsxs164 } from "@emotion/react/jsx-runtime";
|
|
59815
59843
|
function WfoAgentPieChart({ aggregationData }) {
|
|
59816
59844
|
const { results } = aggregationData;
|
|
59817
59845
|
const { isDarkThemeActive, multiplyByBaseUnit } = useOrchestratorTheme();
|
|
@@ -59825,8 +59853,8 @@ function WfoAgentPieChart({ aggregationData }) {
|
|
|
59825
59853
|
label: result.group_values[groupKey],
|
|
59826
59854
|
value: result.aggregations[aggKey]
|
|
59827
59855
|
}));
|
|
59828
|
-
return /* @__PURE__ */
|
|
59829
|
-
/* @__PURE__ */
|
|
59856
|
+
return /* @__PURE__ */ jsx305("div", { css: containerStyle, children: /* @__PURE__ */ jsxs164(Chart2, { size: { height: multiplyByBaseUnit(25) }, children: [
|
|
59857
|
+
/* @__PURE__ */ jsx305(
|
|
59830
59858
|
Settings2,
|
|
59831
59859
|
{
|
|
59832
59860
|
showLegend: true,
|
|
@@ -59834,7 +59862,7 @@ function WfoAgentPieChart({ aggregationData }) {
|
|
|
59834
59862
|
baseTheme: chartBaseTheme
|
|
59835
59863
|
}
|
|
59836
59864
|
),
|
|
59837
|
-
/* @__PURE__ */
|
|
59865
|
+
/* @__PURE__ */ jsx305(
|
|
59838
59866
|
Partition,
|
|
59839
59867
|
{
|
|
59840
59868
|
id: "pieByPR",
|
|
@@ -59858,7 +59886,7 @@ function WfoAgentPieChart({ aggregationData }) {
|
|
|
59858
59886
|
// src/components/WfoAgent/WfoAgentTable/WfoAgentTable.tsx
|
|
59859
59887
|
import React95 from "react";
|
|
59860
59888
|
import { EuiBasicTable } from "@elastic/eui";
|
|
59861
|
-
import { jsx as
|
|
59889
|
+
import { jsx as jsx306 } from "@emotion/react/jsx-runtime";
|
|
59862
59890
|
var formatColumnName = (key) => key.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
|
|
59863
59891
|
function WfoAgentTable({ aggregationData }) {
|
|
59864
59892
|
const { results } = aggregationData;
|
|
@@ -59897,7 +59925,7 @@ function WfoAgentTable({ aggregationData }) {
|
|
|
59897
59925
|
setPageSize(page.size);
|
|
59898
59926
|
}
|
|
59899
59927
|
};
|
|
59900
|
-
return /* @__PURE__ */
|
|
59928
|
+
return /* @__PURE__ */ jsx306(
|
|
59901
59929
|
EuiBasicTable,
|
|
59902
59930
|
{
|
|
59903
59931
|
items: paginatedItems,
|
|
@@ -59910,14 +59938,14 @@ function WfoAgentTable({ aggregationData }) {
|
|
|
59910
59938
|
}
|
|
59911
59939
|
|
|
59912
59940
|
// src/components/WfoAgent/WfoAgentVisualization/WfoAgentVisualization.tsx
|
|
59913
|
-
import { jsx as
|
|
59941
|
+
import { jsx as jsx307 } from "@emotion/react/jsx-runtime";
|
|
59914
59942
|
function WfoAgentVisualization({
|
|
59915
59943
|
aggregationData
|
|
59916
59944
|
}) {
|
|
59917
59945
|
const { visualization_type, results } = aggregationData;
|
|
59918
59946
|
const t = useTranslations110("agent.page.visualization");
|
|
59919
59947
|
if (!results || results.length === 0) {
|
|
59920
|
-
return /* @__PURE__ */
|
|
59948
|
+
return /* @__PURE__ */ jsx307(EuiText66, { size: "s", children: /* @__PURE__ */ jsx307("p", { children: t("noDataAvailable") }) });
|
|
59921
59949
|
}
|
|
59922
59950
|
const visualizationType = visualization_type?.type;
|
|
59923
59951
|
if (visualizationType === "pie" /* PIE */ || visualizationType === "line" /* LINE */) {
|
|
@@ -59925,22 +59953,22 @@ function WfoAgentVisualization({
|
|
|
59925
59953
|
const groupKeys = Object.keys(firstResult.group_values);
|
|
59926
59954
|
const aggKeys = Object.keys(firstResult.aggregations);
|
|
59927
59955
|
if (groupKeys.length === 0 || aggKeys.length === 0) {
|
|
59928
|
-
return /* @__PURE__ */
|
|
59956
|
+
return /* @__PURE__ */ jsx307(EuiText66, { size: "s", children: /* @__PURE__ */ jsx307("p", { children: t("invalidDataStructure") }) });
|
|
59929
59957
|
}
|
|
59930
59958
|
}
|
|
59931
59959
|
switch (visualizationType) {
|
|
59932
59960
|
case "pie" /* PIE */:
|
|
59933
|
-
return /* @__PURE__ */
|
|
59961
|
+
return /* @__PURE__ */ jsx307(WfoAgentPieChart, { aggregationData });
|
|
59934
59962
|
case "line" /* LINE */:
|
|
59935
|
-
return /* @__PURE__ */
|
|
59963
|
+
return /* @__PURE__ */ jsx307(WfoAgentLineChart, { aggregationData });
|
|
59936
59964
|
case "table" /* TABLE */:
|
|
59937
59965
|
default:
|
|
59938
|
-
return /* @__PURE__ */
|
|
59966
|
+
return /* @__PURE__ */ jsx307(WfoAgentTable, { aggregationData });
|
|
59939
59967
|
}
|
|
59940
59968
|
}
|
|
59941
59969
|
|
|
59942
59970
|
// src/components/WfoAgent/WfoAgent/WfoAgent.tsx
|
|
59943
|
-
import { jsx as
|
|
59971
|
+
import { jsx as jsx308, jsxs as jsxs165 } from "@emotion/react/jsx-runtime";
|
|
59944
59972
|
function WfoAgent() {
|
|
59945
59973
|
const tPage = useTranslations111("agent.page");
|
|
59946
59974
|
const { NAVIGATION_HEIGHT } = useWithOrchestratorTheme(
|
|
@@ -59953,7 +59981,7 @@ function WfoAgent() {
|
|
|
59953
59981
|
if (!result) {
|
|
59954
59982
|
return "";
|
|
59955
59983
|
}
|
|
59956
|
-
return /* @__PURE__ */
|
|
59984
|
+
return /* @__PURE__ */ jsx308(
|
|
59957
59985
|
WfoAgentVisualization,
|
|
59958
59986
|
{
|
|
59959
59987
|
aggregationData: result
|
|
@@ -59967,7 +59995,7 @@ function WfoAgent() {
|
|
|
59967
59995
|
if (!result) {
|
|
59968
59996
|
return "";
|
|
59969
59997
|
}
|
|
59970
|
-
return /* @__PURE__ */
|
|
59998
|
+
return /* @__PURE__ */ jsx308(
|
|
59971
59999
|
WfoAgentVisualization,
|
|
59972
60000
|
{
|
|
59973
60001
|
aggregationData: result
|
|
@@ -59981,7 +60009,7 @@ function WfoAgent() {
|
|
|
59981
60009
|
if (!result) {
|
|
59982
60010
|
return "";
|
|
59983
60011
|
}
|
|
59984
|
-
return /* @__PURE__ */
|
|
60012
|
+
return /* @__PURE__ */ jsx308(ExportButton, { exportData: result });
|
|
59985
60013
|
}
|
|
59986
60014
|
});
|
|
59987
60015
|
useCopilotAction({
|
|
@@ -59992,7 +60020,7 @@ function WfoAgent() {
|
|
|
59992
60020
|
args,
|
|
59993
60021
|
result
|
|
59994
60022
|
}) => {
|
|
59995
|
-
return /* @__PURE__ */
|
|
60023
|
+
return /* @__PURE__ */ jsx308(
|
|
59996
60024
|
ToolProgress,
|
|
59997
60025
|
{
|
|
59998
60026
|
name,
|
|
@@ -60003,20 +60031,20 @@ function WfoAgent() {
|
|
|
60003
60031
|
);
|
|
60004
60032
|
}
|
|
60005
60033
|
});
|
|
60006
|
-
return /* @__PURE__ */
|
|
60034
|
+
return /* @__PURE__ */ jsx308(
|
|
60007
60035
|
WfoAvailabilityCheck,
|
|
60008
60036
|
{
|
|
60009
60037
|
featureType: "agent",
|
|
60010
60038
|
availability: agentAvailability,
|
|
60011
60039
|
children: /* @__PURE__ */ jsxs165("div", { style: { height: `calc(90vh - ${NAVIGATION_HEIGHT}px)` }, children: [
|
|
60012
|
-
/* @__PURE__ */
|
|
60040
|
+
/* @__PURE__ */ jsx308("style", { children: `
|
|
60013
60041
|
.copilotKitChat {
|
|
60014
60042
|
height: 100%;
|
|
60015
60043
|
display: flex;
|
|
60016
60044
|
flex-direction: column;
|
|
60017
60045
|
}
|
|
60018
60046
|
` }),
|
|
60019
|
-
/* @__PURE__ */
|
|
60047
|
+
/* @__PURE__ */ jsx308(
|
|
60020
60048
|
CopilotChat,
|
|
60021
60049
|
{
|
|
60022
60050
|
labels: {
|
|
@@ -60061,7 +60089,7 @@ function WfoAgent() {
|
|
|
60061
60089
|
}
|
|
60062
60090
|
|
|
60063
60091
|
// src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx
|
|
60064
|
-
import { useCallback as useCallback15, useEffect as useEffect42, useState as
|
|
60092
|
+
import { useCallback as useCallback15, useEffect as useEffect42, useState as useState66 } from "react";
|
|
60065
60093
|
import { EuiFlexItem as EuiFlexItem56 } from "@elastic/eui";
|
|
60066
60094
|
import Editor from "@monaco-editor/react";
|
|
60067
60095
|
|
|
@@ -60080,7 +60108,7 @@ var getStyles15 = ({ theme }) => {
|
|
|
60080
60108
|
};
|
|
60081
60109
|
|
|
60082
60110
|
// src/components/WfoMonacoCodeBlock/WfoMonacoCodeBlock.tsx
|
|
60083
|
-
import { jsx as
|
|
60111
|
+
import { jsx as jsx309 } from "@emotion/react/jsx-runtime";
|
|
60084
60112
|
var MONACO_THEME = {
|
|
60085
60113
|
light: "vs",
|
|
60086
60114
|
dark: "hc-black"
|
|
@@ -60088,11 +60116,11 @@ var MONACO_THEME = {
|
|
|
60088
60116
|
var WfoMonacoCodeBlock = ({ data }) => {
|
|
60089
60117
|
const { theme, isDarkThemeActive } = useOrchestratorTheme();
|
|
60090
60118
|
const { monacoEditorStyle } = useWithOrchestratorTheme(getStyles15);
|
|
60091
|
-
const [monacoInstance, setMonacoInstance] =
|
|
60119
|
+
const [monacoInstance, setMonacoInstance] = useState66(
|
|
60092
60120
|
void 0
|
|
60093
60121
|
);
|
|
60094
60122
|
const json = JSON.stringify(data, null, 4);
|
|
60095
|
-
const [editorHeight, setEditorHeight] =
|
|
60123
|
+
const [editorHeight, setEditorHeight] = useState66(0);
|
|
60096
60124
|
const addThemeToEditor = useCallback15(
|
|
60097
60125
|
(monaco) => {
|
|
60098
60126
|
monaco.editor.defineTheme("wfoTheme", {
|
|
@@ -60117,7 +60145,7 @@ var WfoMonacoCodeBlock = ({ data }) => {
|
|
|
60117
60145
|
setEditorHeight(Math.min(scrollHeight, 500));
|
|
60118
60146
|
setMonacoInstance(monaco);
|
|
60119
60147
|
}
|
|
60120
|
-
return /* @__PURE__ */
|
|
60148
|
+
return /* @__PURE__ */ jsx309(EuiFlexItem56, { css: monacoEditorStyle, children: /* @__PURE__ */ jsx309(
|
|
60121
60149
|
Editor,
|
|
60122
60150
|
{
|
|
60123
60151
|
height: editorHeight,
|
|
@@ -60177,10 +60205,10 @@ var getWfoLogoSpinnerStyles = () => {
|
|
|
60177
60205
|
};
|
|
60178
60206
|
|
|
60179
60207
|
// src/components/WfoLogoSpinner/WfoLogoSpinner.tsx
|
|
60180
|
-
import { jsx as
|
|
60208
|
+
import { jsx as jsx310, jsxs as jsxs166 } from "@emotion/react/jsx-runtime";
|
|
60181
60209
|
var WfoLogoSpinner = () => {
|
|
60182
60210
|
const { spinContainerCss, spinCenteringCss, spinPathCss } = getWfoLogoSpinnerStyles();
|
|
60183
|
-
return /* @__PURE__ */
|
|
60211
|
+
return /* @__PURE__ */ jsx310("div", { css: spinCenteringCss, children: /* @__PURE__ */ jsx310("div", { css: spinContainerCss, children: /* @__PURE__ */ jsxs166(
|
|
60184
60212
|
"svg",
|
|
60185
60213
|
{
|
|
60186
60214
|
width: "64",
|
|
@@ -60189,7 +60217,7 @@ var WfoLogoSpinner = () => {
|
|
|
60189
60217
|
fill: "none",
|
|
60190
60218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
60191
60219
|
children: [
|
|
60192
|
-
/* @__PURE__ */
|
|
60220
|
+
/* @__PURE__ */ jsx310(
|
|
60193
60221
|
"path",
|
|
60194
60222
|
{
|
|
60195
60223
|
css: spinPathCss,
|
|
@@ -60199,7 +60227,7 @@ var WfoLogoSpinner = () => {
|
|
|
60199
60227
|
fill: "#76B5E0"
|
|
60200
60228
|
}
|
|
60201
60229
|
),
|
|
60202
|
-
/* @__PURE__ */
|
|
60230
|
+
/* @__PURE__ */ jsx310(
|
|
60203
60231
|
"path",
|
|
60204
60232
|
{
|
|
60205
60233
|
fillRule: "evenodd",
|
|
@@ -60490,7 +60518,7 @@ var en_GB_default = {
|
|
|
60490
60518
|
traceback: "Traceback",
|
|
60491
60519
|
codeView: {
|
|
60492
60520
|
json: "JSON",
|
|
60493
|
-
table: "
|
|
60521
|
+
table: "Table",
|
|
60494
60522
|
raw: "Raw"
|
|
60495
60523
|
}
|
|
60496
60524
|
},
|
|
@@ -61097,7 +61125,7 @@ var nl_NL_default = {
|
|
|
61097
61125
|
traceback: "Traceback",
|
|
61098
61126
|
codeView: {
|
|
61099
61127
|
json: "JSON",
|
|
61100
|
-
table: "
|
|
61128
|
+
table: "Table",
|
|
61101
61129
|
raw: "Raw"
|
|
61102
61130
|
}
|
|
61103
61131
|
},
|
|
@@ -61514,6 +61542,7 @@ export {
|
|
|
61514
61542
|
WfoBracketSquare,
|
|
61515
61543
|
WfoBracketSquareSvg,
|
|
61516
61544
|
WfoBreadcrumbs,
|
|
61545
|
+
WfoCallout,
|
|
61517
61546
|
WfoChartBar,
|
|
61518
61547
|
WfoCheckbox,
|
|
61519
61548
|
WfoCheckmarkCircleFill,
|