@orchestrator-ui/orchestrator-ui-components 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +19 -3
- package/dist/index.js +785 -620
- package/package.json +7 -7
- package/src/components/WfoForms/AutoFieldLoader.tsx +4 -2
- package/src/components/WfoForms/formFields/ConnectedSelectField.tsx +19 -0
- package/src/components/WfoForms/formFields/ContactPersonNameField.tsx +8 -1
- package/src/components/WfoForms/formFields/CustomerField.tsx +2 -2
- package/src/components/WfoForms/formFields/ImsNodeIdField.tsx +2 -2
- package/src/components/WfoForms/formFields/ListSelectField.tsx +10 -7
- package/src/components/WfoForms/formFields/LocationCodeField.tsx +2 -2
- package/src/components/WfoForms/formFields/ProductField.tsx +2 -2
- package/src/components/WfoForms/formFields/SelectField.tsx +25 -11
- package/src/components/WfoForms/formFields/index.ts +1 -0
- package/src/messages/en-GB.json +6 -3
- package/src/messages/nl-NL.json +19 -16
- package/tsconfig.json +4 -4
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ var __spreadValues = (a, b) => {
|
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
+
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
24
25
|
var __objRest = (source, exclude) => {
|
|
25
26
|
var target = {};
|
|
26
27
|
for (var prop2 in source)
|
|
@@ -23126,10 +23127,10 @@ var require_jsstacktrace = __commonJS({
|
|
|
23126
23127
|
var require_jsx = __commonJS({
|
|
23127
23128
|
"../../node_modules/refractor/lang/jsx.js"(exports, module) {
|
|
23128
23129
|
"use strict";
|
|
23129
|
-
module.exports =
|
|
23130
|
-
|
|
23131
|
-
|
|
23132
|
-
function
|
|
23130
|
+
module.exports = jsx173;
|
|
23131
|
+
jsx173.displayName = "jsx";
|
|
23132
|
+
jsx173.aliases = [];
|
|
23133
|
+
function jsx173(Prism) {
|
|
23133
23134
|
;
|
|
23134
23135
|
(function(Prism2) {
|
|
23135
23136
|
var javascript = Prism2.util.clone(Prism2.languages.javascript);
|
|
@@ -36298,12 +36299,15 @@ var withExtraArgument = createThunkMiddleware;
|
|
|
36298
36299
|
// ../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs
|
|
36299
36300
|
var createDraftSafeSelectorCreator = (...args) => {
|
|
36300
36301
|
const createSelector2 = createSelectorCreator(...args);
|
|
36301
|
-
|
|
36302
|
+
const createDraftSafeSelector2 = Object.assign((...args2) => {
|
|
36302
36303
|
const selector = createSelector2(...args2);
|
|
36303
36304
|
const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);
|
|
36304
36305
|
Object.assign(wrappedSelector, selector);
|
|
36305
36306
|
return wrappedSelector;
|
|
36306
|
-
}
|
|
36307
|
+
}, {
|
|
36308
|
+
withTypes: () => createDraftSafeSelector2
|
|
36309
|
+
});
|
|
36310
|
+
return createDraftSafeSelector2;
|
|
36307
36311
|
};
|
|
36308
36312
|
var createDraftSafeSelector = createDraftSafeSelectorCreator(weakMapMemoize);
|
|
36309
36313
|
var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
@@ -37136,6 +37140,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
37136
37140
|
return (dispatch, getState, extra) => {
|
|
37137
37141
|
const requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
|
|
37138
37142
|
const abortController = new AbortController();
|
|
37143
|
+
let abortHandler;
|
|
37139
37144
|
let abortReason;
|
|
37140
37145
|
function abort(reason) {
|
|
37141
37146
|
abortReason = reason;
|
|
@@ -37159,10 +37164,15 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
37159
37164
|
message: "Aborted due to condition callback returning false."
|
|
37160
37165
|
};
|
|
37161
37166
|
}
|
|
37162
|
-
const abortedPromise = new Promise((_, reject) =>
|
|
37163
|
-
|
|
37164
|
-
|
|
37165
|
-
|
|
37167
|
+
const abortedPromise = new Promise((_, reject) => {
|
|
37168
|
+
abortHandler = () => {
|
|
37169
|
+
reject({
|
|
37170
|
+
name: "AbortError",
|
|
37171
|
+
message: abortReason || "Aborted"
|
|
37172
|
+
});
|
|
37173
|
+
};
|
|
37174
|
+
abortController.signal.addEventListener("abort", abortHandler);
|
|
37175
|
+
});
|
|
37166
37176
|
dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, {
|
|
37167
37177
|
requestId,
|
|
37168
37178
|
arg
|
|
@@ -37194,6 +37204,10 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
37194
37204
|
})]);
|
|
37195
37205
|
} catch (err) {
|
|
37196
37206
|
finalAction = err instanceof RejectWithValue ? rejected(null, requestId, arg, err.payload, err.meta) : rejected(err, requestId, arg);
|
|
37207
|
+
} finally {
|
|
37208
|
+
if (abortHandler) {
|
|
37209
|
+
abortController.signal.removeEventListener("abort", abortHandler);
|
|
37210
|
+
}
|
|
37197
37211
|
}
|
|
37198
37212
|
const skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
|
|
37199
37213
|
if (!skipDispatch) {
|
|
@@ -37235,7 +37249,7 @@ function unwrapResult(action) {
|
|
|
37235
37249
|
function isThenable(value) {
|
|
37236
37250
|
return value !== null && typeof value === "object" && typeof value.then === "function";
|
|
37237
37251
|
}
|
|
37238
|
-
var asyncThunkSymbol = Symbol.for("rtk-slice-createasyncthunk");
|
|
37252
|
+
var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
37239
37253
|
var asyncThunkCreator = {
|
|
37240
37254
|
[asyncThunkSymbol]: createAsyncThunk
|
|
37241
37255
|
};
|
|
@@ -37269,7 +37283,7 @@ function buildCreateSlice({
|
|
|
37269
37283
|
sliceMatchers: []
|
|
37270
37284
|
};
|
|
37271
37285
|
const contextMethods = {
|
|
37272
|
-
addCase(typeOrActionCreator,
|
|
37286
|
+
addCase(typeOrActionCreator, reducer2) {
|
|
37273
37287
|
const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
|
|
37274
37288
|
if (!type) {
|
|
37275
37289
|
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(12) : "`context.addCase` cannot be called with an empty action type");
|
|
@@ -37277,13 +37291,13 @@ function buildCreateSlice({
|
|
|
37277
37291
|
if (type in context.sliceCaseReducersByType) {
|
|
37278
37292
|
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + type);
|
|
37279
37293
|
}
|
|
37280
|
-
context.sliceCaseReducersByType[type] =
|
|
37294
|
+
context.sliceCaseReducersByType[type] = reducer2;
|
|
37281
37295
|
return contextMethods;
|
|
37282
37296
|
},
|
|
37283
|
-
addMatcher(matcher,
|
|
37297
|
+
addMatcher(matcher, reducer2) {
|
|
37284
37298
|
context.sliceMatchers.push({
|
|
37285
37299
|
matcher,
|
|
37286
|
-
reducer
|
|
37300
|
+
reducer: reducer2
|
|
37287
37301
|
});
|
|
37288
37302
|
return contextMethods;
|
|
37289
37303
|
},
|
|
@@ -37291,8 +37305,8 @@ function buildCreateSlice({
|
|
|
37291
37305
|
context.actionCreators[name2] = actionCreator;
|
|
37292
37306
|
return contextMethods;
|
|
37293
37307
|
},
|
|
37294
|
-
exposeCaseReducer(name2,
|
|
37295
|
-
context.sliceCaseReducersByName[name2] =
|
|
37308
|
+
exposeCaseReducer(name2, reducer2) {
|
|
37309
|
+
context.sliceCaseReducersByName[name2] = reducer2;
|
|
37296
37310
|
return contextMethods;
|
|
37297
37311
|
}
|
|
37298
37312
|
};
|
|
@@ -37333,25 +37347,32 @@ function buildCreateSlice({
|
|
|
37333
37347
|
});
|
|
37334
37348
|
}
|
|
37335
37349
|
const selectSelf = (state) => state;
|
|
37336
|
-
const injectedSelectorCache = /* @__PURE__ */ new
|
|
37350
|
+
const injectedSelectorCache = /* @__PURE__ */ new Map();
|
|
37337
37351
|
let _reducer;
|
|
37338
|
-
|
|
37339
|
-
|
|
37340
|
-
|
|
37341
|
-
|
|
37342
|
-
|
|
37343
|
-
|
|
37344
|
-
|
|
37345
|
-
|
|
37346
|
-
|
|
37347
|
-
|
|
37348
|
-
|
|
37349
|
-
|
|
37350
|
-
|
|
37351
|
-
|
|
37352
|
-
|
|
37353
|
-
|
|
37354
|
-
|
|
37352
|
+
function reducer(state, action) {
|
|
37353
|
+
if (!_reducer)
|
|
37354
|
+
_reducer = buildReducer();
|
|
37355
|
+
return _reducer(state, action);
|
|
37356
|
+
}
|
|
37357
|
+
function getInitialState() {
|
|
37358
|
+
if (!_reducer)
|
|
37359
|
+
_reducer = buildReducer();
|
|
37360
|
+
return _reducer.getInitialState();
|
|
37361
|
+
}
|
|
37362
|
+
function makeSelectorProps(reducerPath2, injected = false) {
|
|
37363
|
+
function selectSlice(state) {
|
|
37364
|
+
let sliceState = state[reducerPath2];
|
|
37365
|
+
if (typeof sliceState === "undefined") {
|
|
37366
|
+
if (injected) {
|
|
37367
|
+
sliceState = getInitialState();
|
|
37368
|
+
} else if (process.env.NODE_ENV !== "production") {
|
|
37369
|
+
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
37370
|
+
}
|
|
37371
|
+
}
|
|
37372
|
+
return sliceState;
|
|
37373
|
+
}
|
|
37374
|
+
function getSelectors(selectState = selectSelf) {
|
|
37375
|
+
const selectorCache = emplace(injectedSelectorCache, injected, {
|
|
37355
37376
|
insert: () => /* @__PURE__ */ new WeakMap()
|
|
37356
37377
|
});
|
|
37357
37378
|
return emplace(selectorCache, selectState, {
|
|
@@ -37359,51 +37380,51 @@ function buildCreateSlice({
|
|
|
37359
37380
|
var _a2;
|
|
37360
37381
|
const map = {};
|
|
37361
37382
|
for (const [name2, selector] of Object.entries((_a2 = options.selectors) != null ? _a2 : {})) {
|
|
37362
|
-
map[name2] = wrapSelector(
|
|
37383
|
+
map[name2] = wrapSelector(selector, selectState, getInitialState, injected);
|
|
37363
37384
|
}
|
|
37364
37385
|
return map;
|
|
37365
37386
|
}
|
|
37366
37387
|
});
|
|
37367
|
-
}
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37372
|
-
|
|
37373
|
-
|
|
37374
|
-
|
|
37375
|
-
|
|
37376
|
-
|
|
37377
|
-
|
|
37378
|
-
|
|
37379
|
-
|
|
37380
|
-
|
|
37381
|
-
|
|
37388
|
+
}
|
|
37389
|
+
return {
|
|
37390
|
+
reducerPath: reducerPath2,
|
|
37391
|
+
getSelectors,
|
|
37392
|
+
get selectors() {
|
|
37393
|
+
return getSelectors(selectSlice);
|
|
37394
|
+
},
|
|
37395
|
+
selectSlice
|
|
37396
|
+
};
|
|
37397
|
+
}
|
|
37398
|
+
const slice = __spreadProps(__spreadValues({
|
|
37399
|
+
name,
|
|
37400
|
+
reducer,
|
|
37401
|
+
actions: context.actionCreators,
|
|
37402
|
+
caseReducers: context.sliceCaseReducersByName,
|
|
37403
|
+
getInitialState
|
|
37404
|
+
}, makeSelectorProps(reducerPath)), {
|
|
37382
37405
|
injectInto(injectable, _a2 = {}) {
|
|
37383
37406
|
var _b = _a2, {
|
|
37384
37407
|
reducerPath: pathOpt
|
|
37385
37408
|
} = _b, config = __objRest(_b, [
|
|
37386
37409
|
"reducerPath"
|
|
37387
37410
|
]);
|
|
37388
|
-
const
|
|
37411
|
+
const newReducerPath = pathOpt != null ? pathOpt : reducerPath;
|
|
37389
37412
|
injectable.inject({
|
|
37390
|
-
reducerPath:
|
|
37391
|
-
reducer
|
|
37413
|
+
reducerPath: newReducerPath,
|
|
37414
|
+
reducer
|
|
37392
37415
|
}, config);
|
|
37393
|
-
return
|
|
37394
|
-
reducerPath: reducerPath2
|
|
37395
|
-
});
|
|
37416
|
+
return __spreadValues(__spreadValues({}, slice), makeSelectorProps(newReducerPath, true));
|
|
37396
37417
|
}
|
|
37397
|
-
};
|
|
37418
|
+
});
|
|
37398
37419
|
return slice;
|
|
37399
37420
|
};
|
|
37400
37421
|
}
|
|
37401
|
-
function wrapSelector(
|
|
37422
|
+
function wrapSelector(selector, selectState, getInitialState, injected) {
|
|
37402
37423
|
function wrapper(rootState, ...args) {
|
|
37403
|
-
let sliceState = selectState
|
|
37424
|
+
let sliceState = selectState(rootState);
|
|
37404
37425
|
if (typeof sliceState === "undefined") {
|
|
37405
37426
|
if (injected) {
|
|
37406
|
-
sliceState =
|
|
37427
|
+
sliceState = getInitialState();
|
|
37407
37428
|
} else if (process.env.NODE_ENV !== "production") {
|
|
37408
37429
|
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(16) : "selectState returned undefined for an uninjected slice reducer");
|
|
37409
37430
|
}
|
|
@@ -37413,7 +37434,7 @@ function wrapSelector(slice, selector, selectState, injected) {
|
|
|
37413
37434
|
wrapper.unwrapped = selector;
|
|
37414
37435
|
return wrapper;
|
|
37415
37436
|
}
|
|
37416
|
-
var createSlice = buildCreateSlice();
|
|
37437
|
+
var createSlice = /* @__PURE__ */ buildCreateSlice();
|
|
37417
37438
|
function buildReducerCreators() {
|
|
37418
37439
|
function asyncThunk(payloadCreator, config) {
|
|
37419
37440
|
return __spreadValues({
|
|
@@ -37514,13 +37535,69 @@ var taskCancelled = `task-${cancelled}`;
|
|
|
37514
37535
|
var taskCompleted = `task-${completed}`;
|
|
37515
37536
|
var listenerCancelled = `${listener}-${cancelled}`;
|
|
37516
37537
|
var listenerCompleted = `${listener}-${completed}`;
|
|
37538
|
+
var assertFunction = (func, expected) => {
|
|
37539
|
+
if (typeof func !== "function") {
|
|
37540
|
+
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(32) : `${expected} is not a function`);
|
|
37541
|
+
}
|
|
37542
|
+
};
|
|
37517
37543
|
var {
|
|
37518
37544
|
assign
|
|
37519
37545
|
} = Object;
|
|
37520
37546
|
var alm = "listenerMiddleware";
|
|
37521
|
-
var
|
|
37547
|
+
var getListenerEntryPropsFrom = (options) => {
|
|
37548
|
+
let {
|
|
37549
|
+
type,
|
|
37550
|
+
actionCreator,
|
|
37551
|
+
matcher,
|
|
37552
|
+
predicate,
|
|
37553
|
+
effect
|
|
37554
|
+
} = options;
|
|
37555
|
+
if (type) {
|
|
37556
|
+
predicate = createAction(type).match;
|
|
37557
|
+
} else if (actionCreator) {
|
|
37558
|
+
type = actionCreator.type;
|
|
37559
|
+
predicate = actionCreator.match;
|
|
37560
|
+
} else if (matcher) {
|
|
37561
|
+
predicate = matcher;
|
|
37562
|
+
} else if (predicate) {
|
|
37563
|
+
} else {
|
|
37564
|
+
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(21) : "Creating or removing a listener requires one of the known fields for matching an action");
|
|
37565
|
+
}
|
|
37566
|
+
assertFunction(effect, "options.listener");
|
|
37567
|
+
return {
|
|
37568
|
+
predicate,
|
|
37569
|
+
type,
|
|
37570
|
+
effect
|
|
37571
|
+
};
|
|
37572
|
+
};
|
|
37573
|
+
var createListenerEntry = Object.assign((options) => {
|
|
37574
|
+
const {
|
|
37575
|
+
type,
|
|
37576
|
+
predicate,
|
|
37577
|
+
effect
|
|
37578
|
+
} = getListenerEntryPropsFrom(options);
|
|
37579
|
+
const id = nanoid();
|
|
37580
|
+
const entry = {
|
|
37581
|
+
id,
|
|
37582
|
+
effect,
|
|
37583
|
+
type,
|
|
37584
|
+
predicate,
|
|
37585
|
+
pending: /* @__PURE__ */ new Set(),
|
|
37586
|
+
unsubscribe: () => {
|
|
37587
|
+
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(22) : "Unsubscribe not initialized");
|
|
37588
|
+
}
|
|
37589
|
+
};
|
|
37590
|
+
return entry;
|
|
37591
|
+
}, {
|
|
37592
|
+
withTypes: () => createListenerEntry
|
|
37593
|
+
});
|
|
37594
|
+
var addListener = Object.assign(createAction(`${alm}/add`), {
|
|
37595
|
+
withTypes: () => addListener
|
|
37596
|
+
});
|
|
37522
37597
|
var clearAllListeners = createAction(`${alm}/removeAll`);
|
|
37523
|
-
var removeListener = createAction(`${alm}/remove`)
|
|
37598
|
+
var removeListener = Object.assign(createAction(`${alm}/remove`), {
|
|
37599
|
+
withTypes: () => removeListener
|
|
37600
|
+
});
|
|
37524
37601
|
var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
|
|
37525
37602
|
function formatProdErrorMessage2(code) {
|
|
37526
37603
|
return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
|
|
@@ -37804,6 +37881,9 @@ function countObjectKeys(obj) {
|
|
|
37804
37881
|
}
|
|
37805
37882
|
return count;
|
|
37806
37883
|
}
|
|
37884
|
+
function asSafePromise(promise, fallback) {
|
|
37885
|
+
return promise.catch(fallback);
|
|
37886
|
+
}
|
|
37807
37887
|
var forceQueryFnSymbol = Symbol("forceQueryFn");
|
|
37808
37888
|
var isUpsertQuery = (arg) => typeof arg[forceQueryFnSymbol] === "function";
|
|
37809
37889
|
function buildInitiate({
|
|
@@ -37865,99 +37945,107 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
37865
37945
|
}
|
|
37866
37946
|
}
|
|
37867
37947
|
function buildInitiateQuery(endpointName, endpointDefinition) {
|
|
37868
|
-
const queryAction = (arg, {
|
|
37869
|
-
|
|
37870
|
-
|
|
37871
|
-
subscriptionOptions,
|
|
37872
|
-
[forceQueryFnSymbol]: forceQueryFn
|
|
37873
|
-
} = {}) => (dispatch, getState) => {
|
|
37874
|
-
var _a;
|
|
37875
|
-
const queryCacheKey = serializeQueryArgs({
|
|
37876
|
-
queryArgs: arg,
|
|
37877
|
-
endpointDefinition,
|
|
37878
|
-
endpointName
|
|
37879
|
-
});
|
|
37880
|
-
const thunk2 = queryThunk({
|
|
37881
|
-
type: "query",
|
|
37882
|
-
subscribe,
|
|
37948
|
+
const queryAction = (arg, _a = {}) => {
|
|
37949
|
+
var _b = _a, {
|
|
37950
|
+
subscribe = true,
|
|
37883
37951
|
forceRefetch,
|
|
37884
37952
|
subscriptionOptions,
|
|
37885
|
-
endpointName,
|
|
37886
|
-
originalArgs: arg,
|
|
37887
|
-
queryCacheKey,
|
|
37888
37953
|
[forceQueryFnSymbol]: forceQueryFn
|
|
37889
|
-
}
|
|
37890
|
-
|
|
37891
|
-
|
|
37892
|
-
|
|
37893
|
-
|
|
37894
|
-
|
|
37895
|
-
|
|
37896
|
-
|
|
37897
|
-
|
|
37898
|
-
|
|
37899
|
-
|
|
37900
|
-
|
|
37901
|
-
|
|
37902
|
-
|
|
37903
|
-
|
|
37904
|
-
|
|
37905
|
-
|
|
37906
|
-
|
|
37907
|
-
|
|
37908
|
-
|
|
37909
|
-
|
|
37910
|
-
|
|
37911
|
-
|
|
37912
|
-
|
|
37913
|
-
|
|
37914
|
-
|
|
37915
|
-
|
|
37916
|
-
|
|
37917
|
-
|
|
37918
|
-
|
|
37919
|
-
|
|
37920
|
-
|
|
37921
|
-
|
|
37922
|
-
|
|
37923
|
-
|
|
37924
|
-
|
|
37925
|
-
|
|
37926
|
-
|
|
37927
|
-
|
|
37928
|
-
|
|
37929
|
-
|
|
37930
|
-
|
|
37931
|
-
|
|
37932
|
-
|
|
37933
|
-
|
|
37934
|
-
|
|
37954
|
+
} = _b, rest = __objRest(_b, [
|
|
37955
|
+
"subscribe",
|
|
37956
|
+
"forceRefetch",
|
|
37957
|
+
"subscriptionOptions",
|
|
37958
|
+
__restKey(forceQueryFnSymbol)
|
|
37959
|
+
]);
|
|
37960
|
+
return (dispatch, getState) => {
|
|
37961
|
+
var _a2;
|
|
37962
|
+
const queryCacheKey = serializeQueryArgs({
|
|
37963
|
+
queryArgs: arg,
|
|
37964
|
+
endpointDefinition,
|
|
37965
|
+
endpointName
|
|
37966
|
+
});
|
|
37967
|
+
const thunk2 = queryThunk(__spreadProps(__spreadValues({}, rest), {
|
|
37968
|
+
type: "query",
|
|
37969
|
+
subscribe,
|
|
37970
|
+
forceRefetch,
|
|
37971
|
+
subscriptionOptions,
|
|
37972
|
+
endpointName,
|
|
37973
|
+
originalArgs: arg,
|
|
37974
|
+
queryCacheKey,
|
|
37975
|
+
[forceQueryFnSymbol]: forceQueryFn
|
|
37976
|
+
}));
|
|
37977
|
+
const selector = api.endpoints[endpointName].select(arg);
|
|
37978
|
+
const thunkResult = dispatch(thunk2);
|
|
37979
|
+
const stateAfter = selector(getState());
|
|
37980
|
+
middlewareWarning(dispatch);
|
|
37981
|
+
const {
|
|
37982
|
+
requestId,
|
|
37983
|
+
abort
|
|
37984
|
+
} = thunkResult;
|
|
37985
|
+
const skippedSynchronously = stateAfter.requestId !== requestId;
|
|
37986
|
+
const runningQuery = (_a2 = runningQueries.get(dispatch)) == null ? void 0 : _a2[queryCacheKey];
|
|
37987
|
+
const selectFromState = () => selector(getState());
|
|
37988
|
+
const statePromise = Object.assign(forceQueryFn ? (
|
|
37989
|
+
// a query has been forced (upsertQueryData)
|
|
37990
|
+
// -> we want to resolve it once data has been written with the data that will be written
|
|
37991
|
+
thunkResult.then(selectFromState)
|
|
37992
|
+
) : skippedSynchronously && !runningQuery ? (
|
|
37993
|
+
// a query has been skipped due to a condition and we do not have any currently running query
|
|
37994
|
+
// -> we want to resolve it immediately with the current data
|
|
37995
|
+
Promise.resolve(stateAfter)
|
|
37996
|
+
) : (
|
|
37997
|
+
// query just started or one is already in flight
|
|
37998
|
+
// -> wait for the running query, then resolve with data from after that
|
|
37999
|
+
Promise.all([runningQuery, thunkResult]).then(selectFromState)
|
|
38000
|
+
), {
|
|
38001
|
+
arg,
|
|
38002
|
+
requestId,
|
|
38003
|
+
subscriptionOptions,
|
|
38004
|
+
queryCacheKey,
|
|
38005
|
+
abort,
|
|
38006
|
+
unwrap() {
|
|
38007
|
+
return __async(this, null, function* () {
|
|
38008
|
+
const result = yield statePromise;
|
|
38009
|
+
if (result.isError) {
|
|
38010
|
+
throw result.error;
|
|
38011
|
+
}
|
|
38012
|
+
return result.data;
|
|
38013
|
+
});
|
|
38014
|
+
},
|
|
38015
|
+
refetch: () => dispatch(queryAction(arg, {
|
|
38016
|
+
subscribe: false,
|
|
38017
|
+
forceRefetch: true
|
|
38018
|
+
})),
|
|
38019
|
+
unsubscribe() {
|
|
38020
|
+
if (subscribe)
|
|
38021
|
+
dispatch(unsubscribeQueryResult({
|
|
38022
|
+
queryCacheKey,
|
|
38023
|
+
requestId
|
|
38024
|
+
}));
|
|
38025
|
+
},
|
|
38026
|
+
updateSubscriptionOptions(options) {
|
|
38027
|
+
statePromise.subscriptionOptions = options;
|
|
38028
|
+
dispatch(updateSubscriptionOptions({
|
|
38029
|
+
endpointName,
|
|
38030
|
+
requestId,
|
|
37935
38031
|
queryCacheKey,
|
|
37936
|
-
|
|
38032
|
+
options
|
|
37937
38033
|
}));
|
|
37938
|
-
},
|
|
37939
|
-
updateSubscriptionOptions(options) {
|
|
37940
|
-
statePromise.subscriptionOptions = options;
|
|
37941
|
-
dispatch(updateSubscriptionOptions({
|
|
37942
|
-
endpointName,
|
|
37943
|
-
requestId,
|
|
37944
|
-
queryCacheKey,
|
|
37945
|
-
options
|
|
37946
|
-
}));
|
|
37947
|
-
}
|
|
37948
|
-
});
|
|
37949
|
-
if (!runningQuery && !skippedSynchronously && !forceQueryFn) {
|
|
37950
|
-
const running = runningQueries.get(dispatch) || {};
|
|
37951
|
-
running[queryCacheKey] = statePromise;
|
|
37952
|
-
runningQueries.set(dispatch, running);
|
|
37953
|
-
statePromise.then(() => {
|
|
37954
|
-
delete running[queryCacheKey];
|
|
37955
|
-
if (!countObjectKeys(running)) {
|
|
37956
|
-
runningQueries.delete(dispatch);
|
|
37957
38034
|
}
|
|
37958
38035
|
});
|
|
37959
|
-
|
|
37960
|
-
|
|
38036
|
+
if (!runningQuery && !skippedSynchronously && !forceQueryFn) {
|
|
38037
|
+
const running = runningQueries.get(dispatch) || {};
|
|
38038
|
+
running[queryCacheKey] = statePromise;
|
|
38039
|
+
runningQueries.set(dispatch, running);
|
|
38040
|
+
statePromise.then(() => {
|
|
38041
|
+
delete running[queryCacheKey];
|
|
38042
|
+
if (!countObjectKeys(running)) {
|
|
38043
|
+
runningQueries.delete(dispatch);
|
|
38044
|
+
}
|
|
38045
|
+
});
|
|
38046
|
+
}
|
|
38047
|
+
return statePromise;
|
|
38048
|
+
};
|
|
37961
38049
|
};
|
|
37962
38050
|
return queryAction;
|
|
37963
38051
|
}
|
|
@@ -37980,9 +38068,9 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
37980
38068
|
abort,
|
|
37981
38069
|
unwrap
|
|
37982
38070
|
} = thunkResult;
|
|
37983
|
-
const returnValuePromise = thunkResult.unwrap().then((data) => ({
|
|
38071
|
+
const returnValuePromise = asSafePromise(thunkResult.unwrap().then((data) => ({
|
|
37984
38072
|
data
|
|
37985
|
-
}))
|
|
38073
|
+
})), (error) => ({
|
|
37986
38074
|
error
|
|
37987
38075
|
}));
|
|
37988
38076
|
const reset = () => {
|
|
@@ -38263,9 +38351,13 @@ In the case of an unhandled error, no tags will be "provided" or "invalidated".`
|
|
|
38263
38351
|
const prefetch = (endpointName, arg, options) => (dispatch, getState) => {
|
|
38264
38352
|
const force = hasTheForce(options) && options.force;
|
|
38265
38353
|
const maxAge = hasMaxAge(options) && options.ifOlderThan;
|
|
38266
|
-
const queryAction = (force2 = true) =>
|
|
38267
|
-
|
|
38268
|
-
|
|
38354
|
+
const queryAction = (force2 = true) => {
|
|
38355
|
+
const options2 = {
|
|
38356
|
+
forceRefetch: force2,
|
|
38357
|
+
isPrefetch: true
|
|
38358
|
+
};
|
|
38359
|
+
return api.endpoints[endpointName].initiate(arg, options2);
|
|
38360
|
+
};
|
|
38269
38361
|
const latestStateValue = api.endpoints[endpointName].select(arg)(getState());
|
|
38270
38362
|
if (force) {
|
|
38271
38363
|
dispatch(queryAction());
|
|
@@ -38693,7 +38785,8 @@ var defaultMutationSubState = /* @__PURE__ */ produce(initialSubState, () => {
|
|
|
38693
38785
|
});
|
|
38694
38786
|
function buildSelectors({
|
|
38695
38787
|
serializeQueryArgs,
|
|
38696
|
-
reducerPath
|
|
38788
|
+
reducerPath,
|
|
38789
|
+
createSelector: createSelector2
|
|
38697
38790
|
}) {
|
|
38698
38791
|
const selectSkippedQuery = (state) => defaultQuerySubState;
|
|
38699
38792
|
const selectSkippedMutation = (state) => defaultMutationSubState;
|
|
@@ -38730,7 +38823,7 @@ function buildSelectors({
|
|
|
38730
38823
|
return (_c = (_b = (_a = selectInternalState(state)) == null ? void 0 : _a.queries) == null ? void 0 : _b[serializedArgs]) != null ? _c : defaultQuerySubState;
|
|
38731
38824
|
};
|
|
38732
38825
|
const finalSelectQuerySubState = queryArgs === skipToken ? selectSkippedQuery : selectQuerySubstate;
|
|
38733
|
-
return
|
|
38826
|
+
return createSelector2(finalSelectQuerySubState, withRequestFlags);
|
|
38734
38827
|
};
|
|
38735
38828
|
}
|
|
38736
38829
|
function buildMutationSelector() {
|
|
@@ -38747,7 +38840,7 @@ function buildSelectors({
|
|
|
38747
38840
|
return (_c = (_b = (_a2 = selectInternalState(state)) == null ? void 0 : _a2.mutations) == null ? void 0 : _b[mutationId]) != null ? _c : defaultMutationSubState;
|
|
38748
38841
|
};
|
|
38749
38842
|
const finalSelectMutationSubstate = mutationId === skipToken ? selectSkippedMutation : selectMutationSubstate;
|
|
38750
|
-
return
|
|
38843
|
+
return createSelector2(finalSelectMutationSubstate, withRequestFlags);
|
|
38751
38844
|
};
|
|
38752
38845
|
}
|
|
38753
38846
|
function selectInvalidatedBy(state, tags) {
|
|
@@ -38893,8 +38986,10 @@ function buildCreateApi(...modules) {
|
|
|
38893
38986
|
})
|
|
38894
38987
|
});
|
|
38895
38988
|
for (const [endpointName, definition] of Object.entries(evaluatedEndpoints)) {
|
|
38896
|
-
if (
|
|
38897
|
-
if (
|
|
38989
|
+
if (inject.overrideExisting !== true && endpointName in context.endpointDefinitions) {
|
|
38990
|
+
if (inject.overrideExisting === "throw") {
|
|
38991
|
+
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage2(39) : `called \`injectEndpoints\` to override already-existing endpointName ${endpointName} without specifying \`overrideExisting: true\``);
|
|
38992
|
+
} else if (typeof process !== "undefined" && process.env.NODE_ENV === "development") {
|
|
38898
38993
|
console.error(`called \`injectEndpoints\` to override already-existing endpointName ${endpointName} without specifying \`overrideExisting: true\``);
|
|
38899
38994
|
}
|
|
38900
38995
|
continue;
|
|
@@ -39088,7 +39183,10 @@ var buildPollingHandler = ({
|
|
|
39088
39183
|
const subscriptions = internalState.currentSubscriptions[queryCacheKey];
|
|
39089
39184
|
if (!querySubState || querySubState.status === "uninitialized")
|
|
39090
39185
|
return;
|
|
39091
|
-
const
|
|
39186
|
+
const {
|
|
39187
|
+
lowestPollingInterval,
|
|
39188
|
+
skipPollingIfUnfocused
|
|
39189
|
+
} = findLowestPollingInterval(subscriptions);
|
|
39092
39190
|
if (!Number.isFinite(lowestPollingInterval))
|
|
39093
39191
|
return;
|
|
39094
39192
|
const currentPoll = currentPolls[queryCacheKey];
|
|
@@ -39097,12 +39195,16 @@ var buildPollingHandler = ({
|
|
|
39097
39195
|
currentPoll.timeout = void 0;
|
|
39098
39196
|
}
|
|
39099
39197
|
const nextPollTimestamp = Date.now() + lowestPollingInterval;
|
|
39100
|
-
|
|
39198
|
+
currentPolls[queryCacheKey] = {
|
|
39101
39199
|
nextPollTimestamp,
|
|
39102
39200
|
pollingInterval: lowestPollingInterval,
|
|
39103
39201
|
timeout: setTimeout(() => {
|
|
39104
|
-
|
|
39105
|
-
|
|
39202
|
+
if (state.config.focused || !skipPollingIfUnfocused) {
|
|
39203
|
+
api2.dispatch(refetchQuery(querySubState, queryCacheKey));
|
|
39204
|
+
}
|
|
39205
|
+
startNextPoll({
|
|
39206
|
+
queryCacheKey
|
|
39207
|
+
}, api2);
|
|
39106
39208
|
}, lowestPollingInterval)
|
|
39107
39209
|
};
|
|
39108
39210
|
}
|
|
@@ -39115,7 +39217,9 @@ var buildPollingHandler = ({
|
|
|
39115
39217
|
if (!querySubState || querySubState.status === "uninitialized") {
|
|
39116
39218
|
return;
|
|
39117
39219
|
}
|
|
39118
|
-
const
|
|
39220
|
+
const {
|
|
39221
|
+
lowestPollingInterval
|
|
39222
|
+
} = findLowestPollingInterval(subscriptions);
|
|
39119
39223
|
if (!Number.isFinite(lowestPollingInterval)) {
|
|
39120
39224
|
cleanupPollForKey(queryCacheKey);
|
|
39121
39225
|
return;
|
|
@@ -39141,13 +39245,18 @@ var buildPollingHandler = ({
|
|
|
39141
39245
|
}
|
|
39142
39246
|
}
|
|
39143
39247
|
function findLowestPollingInterval(subscribers = {}) {
|
|
39248
|
+
let skipPollingIfUnfocused = false;
|
|
39144
39249
|
let lowestPollingInterval = Number.POSITIVE_INFINITY;
|
|
39145
39250
|
for (let key in subscribers) {
|
|
39146
39251
|
if (!!subscribers[key].pollingInterval) {
|
|
39147
39252
|
lowestPollingInterval = Math.min(subscribers[key].pollingInterval, lowestPollingInterval);
|
|
39253
|
+
skipPollingIfUnfocused = subscribers[key].skipPollingIfUnfocused || skipPollingIfUnfocused;
|
|
39148
39254
|
}
|
|
39149
39255
|
}
|
|
39150
|
-
return
|
|
39256
|
+
return {
|
|
39257
|
+
lowestPollingInterval,
|
|
39258
|
+
skipPollingIfUnfocused
|
|
39259
|
+
};
|
|
39151
39260
|
}
|
|
39152
39261
|
return handler;
|
|
39153
39262
|
};
|
|
@@ -39243,10 +39352,12 @@ var buildCacheLifecycleHandler = ({
|
|
|
39243
39352
|
}
|
|
39244
39353
|
};
|
|
39245
39354
|
function getCacheKey(action) {
|
|
39355
|
+
var _a;
|
|
39246
39356
|
if (isQueryThunk(action))
|
|
39247
39357
|
return action.meta.arg.queryCacheKey;
|
|
39248
|
-
if (isMutationThunk(action))
|
|
39249
|
-
return action.meta.requestId;
|
|
39358
|
+
if (isMutationThunk(action)) {
|
|
39359
|
+
return (_a = action.meta.arg.fixedCacheKey) != null ? _a : action.meta.requestId;
|
|
39360
|
+
}
|
|
39250
39361
|
if (api.internalActions.removeQueryResult.match(action))
|
|
39251
39362
|
return action.payload.queryCacheKey;
|
|
39252
39363
|
if (api.internalActions.removeMutationResult.match(action))
|
|
@@ -39583,7 +39694,9 @@ function safeAssign(target, ...args) {
|
|
|
39583
39694
|
return Object.assign(target, ...args);
|
|
39584
39695
|
}
|
|
39585
39696
|
var coreModuleName = /* @__PURE__ */ Symbol();
|
|
39586
|
-
var coreModule = (
|
|
39697
|
+
var coreModule = ({
|
|
39698
|
+
createSelector: createSelector2 = createSelector
|
|
39699
|
+
} = {}) => ({
|
|
39587
39700
|
name: coreModuleName,
|
|
39588
39701
|
init(api, {
|
|
39589
39702
|
baseQuery,
|
|
@@ -39682,7 +39795,8 @@ var coreModule = () => ({
|
|
|
39682
39795
|
selectCachedArgsForQuery
|
|
39683
39796
|
} = buildSelectors({
|
|
39684
39797
|
serializeQueryArgs,
|
|
39685
|
-
reducerPath
|
|
39798
|
+
reducerPath,
|
|
39799
|
+
createSelector: createSelector2
|
|
39686
39800
|
});
|
|
39687
39801
|
safeAssign(api.util, {
|
|
39688
39802
|
selectInvalidatedBy,
|
|
@@ -39739,11 +39853,45 @@ import { shallowEqual as shallowEqual2 } from "react-redux";
|
|
|
39739
39853
|
import { useEffect, useRef, useMemo } from "react";
|
|
39740
39854
|
import { useEffect as useEffect2, useRef as useRef2 } from "react";
|
|
39741
39855
|
import { shallowEqual } from "react-redux";
|
|
39742
|
-
import { useDispatch as rrUseDispatch, useSelector as rrUseSelector, useStore as rrUseStore
|
|
39856
|
+
import { batch as rrBatch, useDispatch as rrUseDispatch, useSelector as rrUseSelector, useStore as rrUseStore } from "react-redux";
|
|
39743
39857
|
import { useContext } from "react";
|
|
39744
39858
|
import { useEffect as useEffect4 } from "react";
|
|
39745
39859
|
import React from "react";
|
|
39746
39860
|
import { Provider, ReactReduxContext } from "react-redux";
|
|
39861
|
+
function isQueryDefinition2(e) {
|
|
39862
|
+
return e.type === "query";
|
|
39863
|
+
}
|
|
39864
|
+
function isMutationDefinition2(e) {
|
|
39865
|
+
return e.type === "mutation";
|
|
39866
|
+
}
|
|
39867
|
+
function safeAssign2(target, ...args) {
|
|
39868
|
+
return Object.assign(target, ...args);
|
|
39869
|
+
}
|
|
39870
|
+
function capitalize(str) {
|
|
39871
|
+
return str.replace(str[0], str[0].toUpperCase());
|
|
39872
|
+
}
|
|
39873
|
+
var cache2 = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0;
|
|
39874
|
+
var defaultSerializeQueryArgs2 = ({
|
|
39875
|
+
endpointName,
|
|
39876
|
+
queryArgs
|
|
39877
|
+
}) => {
|
|
39878
|
+
let serialized = "";
|
|
39879
|
+
const cached = cache2 == null ? void 0 : cache2.get(queryArgs);
|
|
39880
|
+
if (typeof cached === "string") {
|
|
39881
|
+
serialized = cached;
|
|
39882
|
+
} else {
|
|
39883
|
+
const stringified = JSON.stringify(queryArgs, (key, value) => isPlainObject(value) ? Object.keys(value).sort().reduce((acc, key2) => {
|
|
39884
|
+
acc[key2] = value[key2];
|
|
39885
|
+
return acc;
|
|
39886
|
+
}, {}) : value);
|
|
39887
|
+
if (isPlainObject(queryArgs)) {
|
|
39888
|
+
cache2 == null ? void 0 : cache2.set(queryArgs, stringified);
|
|
39889
|
+
}
|
|
39890
|
+
serialized = stringified;
|
|
39891
|
+
}
|
|
39892
|
+
return `${endpointName}(${serialized})`;
|
|
39893
|
+
};
|
|
39894
|
+
var UNINITIALIZED_VALUE = Symbol();
|
|
39747
39895
|
function useStableQueryArgs(queryArgs, serialize, endpointDefinition, endpointName) {
|
|
39748
39896
|
const incoming = useMemo(() => ({
|
|
39749
39897
|
queryArgs,
|
|
@@ -39761,7 +39909,6 @@ function useStableQueryArgs(queryArgs, serialize, endpointDefinition, endpointNa
|
|
|
39761
39909
|
}, [incoming]);
|
|
39762
39910
|
return cache22.current.serialized === incoming.serialized ? cache22.current.queryArgs : queryArgs;
|
|
39763
39911
|
}
|
|
39764
|
-
var UNINITIALIZED_VALUE = Symbol();
|
|
39765
39912
|
function useShallowStableValue(value) {
|
|
39766
39913
|
const cache22 = useRef2(value);
|
|
39767
39914
|
useEffect2(() => {
|
|
@@ -39771,27 +39918,6 @@ function useShallowStableValue(value) {
|
|
|
39771
39918
|
}, [value]);
|
|
39772
39919
|
return shallowEqual(cache22.current, value) ? cache22.current : value;
|
|
39773
39920
|
}
|
|
39774
|
-
var cache2 = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0;
|
|
39775
|
-
var defaultSerializeQueryArgs2 = ({
|
|
39776
|
-
endpointName,
|
|
39777
|
-
queryArgs
|
|
39778
|
-
}) => {
|
|
39779
|
-
let serialized = "";
|
|
39780
|
-
const cached = cache2 == null ? void 0 : cache2.get(queryArgs);
|
|
39781
|
-
if (typeof cached === "string") {
|
|
39782
|
-
serialized = cached;
|
|
39783
|
-
} else {
|
|
39784
|
-
const stringified = JSON.stringify(queryArgs, (key, value) => isPlainObject(value) ? Object.keys(value).sort().reduce((acc, key2) => {
|
|
39785
|
-
acc[key2] = value[key2];
|
|
39786
|
-
return acc;
|
|
39787
|
-
}, {}) : value);
|
|
39788
|
-
if (isPlainObject(queryArgs)) {
|
|
39789
|
-
cache2 == null ? void 0 : cache2.set(queryArgs, stringified);
|
|
39790
|
-
}
|
|
39791
|
-
serialized = stringified;
|
|
39792
|
-
}
|
|
39793
|
-
return `${endpointName}(${serialized})`;
|
|
39794
|
-
};
|
|
39795
39921
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" && !!window.document && !!window.document.createElement ? useLayoutEffect : useEffect3;
|
|
39796
39922
|
var noPendingQueryStateSelector = (selected) => {
|
|
39797
39923
|
if (selected.isUninitialized) {
|
|
@@ -39813,7 +39939,8 @@ function buildHooks({
|
|
|
39813
39939
|
useSelector: useSelector2,
|
|
39814
39940
|
useStore
|
|
39815
39941
|
},
|
|
39816
|
-
unstable__sideEffectsInRender
|
|
39942
|
+
unstable__sideEffectsInRender,
|
|
39943
|
+
createSelector: createSelector2
|
|
39817
39944
|
},
|
|
39818
39945
|
serializeQueryArgs,
|
|
39819
39946
|
context
|
|
@@ -39867,7 +39994,8 @@ function buildHooks({
|
|
|
39867
39994
|
refetchOnFocus,
|
|
39868
39995
|
refetchOnMountOrArgChange,
|
|
39869
39996
|
skip = false,
|
|
39870
|
-
pollingInterval = 0
|
|
39997
|
+
pollingInterval = 0,
|
|
39998
|
+
skipPollingIfUnfocused = false
|
|
39871
39999
|
} = {}) => {
|
|
39872
40000
|
const {
|
|
39873
40001
|
initiate
|
|
@@ -39898,7 +40026,8 @@ function buildHooks({
|
|
|
39898
40026
|
const stableSubscriptionOptions = useShallowStableValue({
|
|
39899
40027
|
refetchOnReconnect,
|
|
39900
40028
|
refetchOnFocus,
|
|
39901
|
-
pollingInterval
|
|
40029
|
+
pollingInterval,
|
|
40030
|
+
skipPollingIfUnfocused
|
|
39902
40031
|
});
|
|
39903
40032
|
const lastRenderHadSubscription = useRef3(false);
|
|
39904
40033
|
const promiseRef = useRef3();
|
|
@@ -39964,7 +40093,8 @@ function buildHooks({
|
|
|
39964
40093
|
const useLazyQuerySubscription = ({
|
|
39965
40094
|
refetchOnReconnect,
|
|
39966
40095
|
refetchOnFocus,
|
|
39967
|
-
pollingInterval = 0
|
|
40096
|
+
pollingInterval = 0,
|
|
40097
|
+
skipPollingIfUnfocused = false
|
|
39968
40098
|
} = {}) => {
|
|
39969
40099
|
const {
|
|
39970
40100
|
initiate
|
|
@@ -39975,7 +40105,8 @@ function buildHooks({
|
|
|
39975
40105
|
const stableSubscriptionOptions = useShallowStableValue({
|
|
39976
40106
|
refetchOnReconnect,
|
|
39977
40107
|
refetchOnFocus,
|
|
39978
|
-
pollingInterval
|
|
40108
|
+
pollingInterval,
|
|
40109
|
+
skipPollingIfUnfocused
|
|
39979
40110
|
});
|
|
39980
40111
|
usePossiblyImmediateEffect(() => {
|
|
39981
40112
|
var _a, _b;
|
|
@@ -40023,8 +40154,12 @@ function buildHooks({
|
|
|
40023
40154
|
} = api.endpoints[name];
|
|
40024
40155
|
const stableArg = useStableQueryArgs(skip ? skipToken : arg, serializeQueryArgs, context.endpointDefinitions[name], name);
|
|
40025
40156
|
const lastValue = useRef3();
|
|
40026
|
-
const selectDefaultResult = useMemo2(() =>
|
|
40027
|
-
|
|
40157
|
+
const selectDefaultResult = useMemo2(() => createSelector2([select(stableArg), (_, lastResult) => lastResult, (_) => stableArg], queryStatePreSelector, {
|
|
40158
|
+
memoizeOptions: {
|
|
40159
|
+
resultEqualityCheck: shallowEqual2
|
|
40160
|
+
}
|
|
40161
|
+
}), [select, stableArg]);
|
|
40162
|
+
const querySelector = useMemo2(() => selectFromResult ? createSelector2([selectDefaultResult], selectFromResult, {
|
|
40028
40163
|
devModeChecks: {
|
|
40029
40164
|
identityFunctionCheck: "never"
|
|
40030
40165
|
}
|
|
@@ -40106,7 +40241,7 @@ function buildHooks({
|
|
|
40106
40241
|
fixedCacheKey,
|
|
40107
40242
|
requestId: promise == null ? void 0 : promise.requestId
|
|
40108
40243
|
}), [fixedCacheKey, promise, select]);
|
|
40109
|
-
const mutationSelector = useMemo2(() => selectFromResult ?
|
|
40244
|
+
const mutationSelector = useMemo2(() => selectFromResult ? createSelector2([selectDefaultResult], selectFromResult) : selectDefaultResult, [selectFromResult, selectDefaultResult]);
|
|
40110
40245
|
const currentState = useSelector2(mutationSelector, shallowEqual2);
|
|
40111
40246
|
const originalArgs = fixedCacheKey == null ? promise == null ? void 0 : promise.arg.originalArgs : void 0;
|
|
40112
40247
|
const reset = useCallback(() => {
|
|
@@ -40148,18 +40283,6 @@ function buildHooks({
|
|
|
40148
40283
|
};
|
|
40149
40284
|
}
|
|
40150
40285
|
}
|
|
40151
|
-
function isQueryDefinition2(e) {
|
|
40152
|
-
return e.type === "query";
|
|
40153
|
-
}
|
|
40154
|
-
function isMutationDefinition2(e) {
|
|
40155
|
-
return e.type === "mutation";
|
|
40156
|
-
}
|
|
40157
|
-
function capitalize(str) {
|
|
40158
|
-
return str.replace(str[0], str[0].toUpperCase());
|
|
40159
|
-
}
|
|
40160
|
-
function safeAssign2(target, ...args) {
|
|
40161
|
-
return Object.assign(target, ...args);
|
|
40162
|
-
}
|
|
40163
40286
|
function countObjectKeys2(obj) {
|
|
40164
40287
|
let count = 0;
|
|
40165
40288
|
for (const _key in obj) {
|
|
@@ -40176,10 +40299,12 @@ var reactHooksModule = (_a = {}) => {
|
|
|
40176
40299
|
useSelector: rrUseSelector,
|
|
40177
40300
|
useStore: rrUseStore
|
|
40178
40301
|
},
|
|
40302
|
+
createSelector: createSelector2 = createSelector,
|
|
40179
40303
|
unstable__sideEffectsInRender = false
|
|
40180
40304
|
} = _b, rest = __objRest(_b, [
|
|
40181
40305
|
"batch",
|
|
40182
40306
|
"hooks",
|
|
40307
|
+
"createSelector",
|
|
40183
40308
|
"unstable__sideEffectsInRender"
|
|
40184
40309
|
]);
|
|
40185
40310
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -40216,7 +40341,8 @@ Hook ${hookName} was either not provided or not a function.`);
|
|
|
40216
40341
|
moduleOptions: {
|
|
40217
40342
|
batch,
|
|
40218
40343
|
hooks,
|
|
40219
|
-
unstable__sideEffectsInRender
|
|
40344
|
+
unstable__sideEffectsInRender,
|
|
40345
|
+
createSelector: createSelector2
|
|
40220
40346
|
},
|
|
40221
40347
|
serializeQueryArgs,
|
|
40222
40348
|
context
|
|
@@ -49452,7 +49578,7 @@ import { useContext as useContext10, useState as useState24 } from "react";
|
|
|
49452
49578
|
import axios2 from "axios";
|
|
49453
49579
|
import invariant2 from "invariant";
|
|
49454
49580
|
import { useTranslations as useTranslations34 } from "next-intl";
|
|
49455
|
-
import { filterDOMProps as
|
|
49581
|
+
import { filterDOMProps as filterDOMProps28, joinName as joinName10 } from "uniforms";
|
|
49456
49582
|
import { JSONSchemaBridge } from "uniforms-bridge-json-schema";
|
|
49457
49583
|
import { AutoField as AutoField6, AutoForm } from "uniforms-unstyled";
|
|
49458
49584
|
import {
|
|
@@ -50162,19 +50288,13 @@ var ListField = connectField9(List);
|
|
|
50162
50288
|
|
|
50163
50289
|
// src/components/WfoForms/formFields/ListSelectField.tsx
|
|
50164
50290
|
var import_lodash2 = __toESM(require_lodash(), 1);
|
|
50165
|
-
import {
|
|
50291
|
+
import { joinName as joinName5, useField as useField5, useForm as useForm3 } from "uniforms";
|
|
50166
50292
|
|
|
50167
50293
|
// src/components/WfoForms/formFields/SelectField.tsx
|
|
50168
50294
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
50169
50295
|
import ReactSelect from "react-select";
|
|
50170
50296
|
import { useTranslations as useTranslations23 } from "next-intl";
|
|
50171
|
-
import {
|
|
50172
|
-
connectField as connectField10,
|
|
50173
|
-
filterDOMProps as filterDOMProps9,
|
|
50174
|
-
joinName as joinName4,
|
|
50175
|
-
useField as useField4,
|
|
50176
|
-
useForm as useForm2
|
|
50177
|
-
} from "uniforms";
|
|
50297
|
+
import { joinName as joinName4, useField as useField4, useForm as useForm2 } from "uniforms";
|
|
50178
50298
|
import { EuiFormRow as EuiFormRow5, EuiText as EuiText14 } from "@elastic/eui";
|
|
50179
50299
|
|
|
50180
50300
|
// src/components/WfoForms/formFields/reactSelectStyles.ts
|
|
@@ -50213,7 +50333,7 @@ var getReactSelectInnerComponentStyles = (theme) => {
|
|
|
50213
50333
|
|
|
50214
50334
|
// src/components/WfoForms/formFields/SelectField.tsx
|
|
50215
50335
|
import { jsx as jsx105 } from "@emotion/react/jsx-runtime";
|
|
50216
|
-
function
|
|
50336
|
+
function UnconnectedSelectField(_a) {
|
|
50217
50337
|
var _b = _a, {
|
|
50218
50338
|
allowedValues = [],
|
|
50219
50339
|
disabled,
|
|
@@ -50279,14 +50399,31 @@ function Select(_a) {
|
|
|
50279
50399
|
if (fieldType === Array) {
|
|
50280
50400
|
return /* @__PURE__ */ jsx105(ListField, { name, children: /* @__PURE__ */ jsx105(ListItemField, { name: "$", children: /* @__PURE__ */ jsx105(
|
|
50281
50401
|
ListSelectField,
|
|
50282
|
-
{
|
|
50402
|
+
__spreadValues(__spreadProps(__spreadValues({}, {
|
|
50403
|
+
allowedValues,
|
|
50404
|
+
disabled,
|
|
50405
|
+
fieldType,
|
|
50406
|
+
id,
|
|
50407
|
+
label,
|
|
50408
|
+
description,
|
|
50409
|
+
name,
|
|
50410
|
+
onChange,
|
|
50411
|
+
placeholder,
|
|
50412
|
+
readOnly,
|
|
50413
|
+
transform,
|
|
50414
|
+
value,
|
|
50415
|
+
error,
|
|
50416
|
+
showInlineError,
|
|
50417
|
+
errorMessage
|
|
50418
|
+
}), {
|
|
50419
|
+
fieldType,
|
|
50283
50420
|
name: "",
|
|
50284
50421
|
transform,
|
|
50285
50422
|
allowedValues
|
|
50286
|
-
}
|
|
50423
|
+
}), props)
|
|
50287
50424
|
) }) });
|
|
50288
50425
|
} else {
|
|
50289
|
-
return /* @__PURE__ */ jsx105("section",
|
|
50426
|
+
return /* @__PURE__ */ jsx105("section", { children: /* @__PURE__ */ jsx105(
|
|
50290
50427
|
EuiFormRow5,
|
|
50291
50428
|
{
|
|
50292
50429
|
label,
|
|
@@ -50316,19 +50453,24 @@ function Select(_a) {
|
|
|
50316
50453
|
}
|
|
50317
50454
|
)
|
|
50318
50455
|
}
|
|
50319
|
-
) })
|
|
50456
|
+
) });
|
|
50320
50457
|
}
|
|
50321
50458
|
}
|
|
50322
|
-
var SelectField = connectField10(Select);
|
|
50323
50459
|
|
|
50324
50460
|
// src/components/WfoForms/formFields/ListSelectField.tsx
|
|
50325
50461
|
import { jsx as jsx106 } from "@emotion/react/jsx-runtime";
|
|
50326
|
-
function
|
|
50327
|
-
|
|
50328
|
-
|
|
50329
|
-
|
|
50330
|
-
|
|
50331
|
-
|
|
50462
|
+
function ListSelectField(_a) {
|
|
50463
|
+
var _b = _a, {
|
|
50464
|
+
allowedValues = [],
|
|
50465
|
+
fieldType,
|
|
50466
|
+
name,
|
|
50467
|
+
transform
|
|
50468
|
+
} = _b, props = __objRest(_b, [
|
|
50469
|
+
"allowedValues",
|
|
50470
|
+
"fieldType",
|
|
50471
|
+
"name",
|
|
50472
|
+
"transform"
|
|
50473
|
+
]);
|
|
50332
50474
|
const nameArray = joinName5(null, name);
|
|
50333
50475
|
let parentName = joinName5(nameArray.slice(0, -1));
|
|
50334
50476
|
if (parentName === "") {
|
|
@@ -50349,28 +50491,29 @@ function ListSelect({
|
|
|
50349
50491
|
}
|
|
50350
50492
|
if (fieldType === Array) {
|
|
50351
50493
|
return /* @__PURE__ */ jsx106(ListField, { name, children: /* @__PURE__ */ jsx106(ListItemField, { name: "$", children: /* @__PURE__ */ jsx106(
|
|
50352
|
-
|
|
50353
|
-
{
|
|
50494
|
+
UnconnectedSelectField,
|
|
50495
|
+
__spreadValues({
|
|
50354
50496
|
name: "",
|
|
50355
50497
|
transform,
|
|
50356
|
-
allowedValues
|
|
50357
|
-
|
|
50498
|
+
allowedValues,
|
|
50499
|
+
fieldType
|
|
50500
|
+
}, props)
|
|
50358
50501
|
) }) });
|
|
50359
50502
|
} else {
|
|
50360
50503
|
return /* @__PURE__ */ jsx106(
|
|
50361
|
-
|
|
50362
|
-
{
|
|
50504
|
+
UnconnectedSelectField,
|
|
50505
|
+
__spreadValues({
|
|
50363
50506
|
name: "",
|
|
50364
50507
|
transform,
|
|
50365
|
-
allowedValues
|
|
50366
|
-
|
|
50508
|
+
allowedValues,
|
|
50509
|
+
fieldType
|
|
50510
|
+
}, props)
|
|
50367
50511
|
);
|
|
50368
50512
|
}
|
|
50369
50513
|
}
|
|
50370
|
-
var ListSelectField = connectField11(ListSelect, { kind: "leaf" });
|
|
50371
50514
|
|
|
50372
50515
|
// src/components/WfoForms/formFields/LongTextField.tsx
|
|
50373
|
-
import { connectField as
|
|
50516
|
+
import { connectField as connectField10, filterDOMProps as filterDOMProps9 } from "uniforms";
|
|
50374
50517
|
import { EuiFormRow as EuiFormRow6, EuiText as EuiText15, EuiTextArea } from "@elastic/eui";
|
|
50375
50518
|
import { jsx as jsx107 } from "@emotion/react/jsx-runtime";
|
|
50376
50519
|
function LongText(_a) {
|
|
@@ -50399,7 +50542,7 @@ function LongText(_a) {
|
|
|
50399
50542
|
"error",
|
|
50400
50543
|
"errorMessage"
|
|
50401
50544
|
]);
|
|
50402
|
-
return /* @__PURE__ */ jsx107("section", __spreadProps(__spreadValues({},
|
|
50545
|
+
return /* @__PURE__ */ jsx107("section", __spreadProps(__spreadValues({}, filterDOMProps9(props)), { children: /* @__PURE__ */ jsx107(
|
|
50403
50546
|
EuiFormRow6,
|
|
50404
50547
|
{
|
|
50405
50548
|
label,
|
|
@@ -50424,10 +50567,10 @@ function LongText(_a) {
|
|
|
50424
50567
|
}
|
|
50425
50568
|
) }));
|
|
50426
50569
|
}
|
|
50427
|
-
var LongTextField =
|
|
50570
|
+
var LongTextField = connectField10(LongText, { kind: "leaf" });
|
|
50428
50571
|
|
|
50429
50572
|
// src/components/WfoForms/formFields/NumField.tsx
|
|
50430
|
-
import { connectField as
|
|
50573
|
+
import { connectField as connectField11, filterDOMProps as filterDOMProps10 } from "uniforms";
|
|
50431
50574
|
import { EuiFieldNumber, EuiFormRow as EuiFormRow7, EuiText as EuiText16 } from "@elastic/eui";
|
|
50432
50575
|
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
50433
50576
|
function Num(_a) {
|
|
@@ -50464,7 +50607,7 @@ function Num(_a) {
|
|
|
50464
50607
|
"showInlineError",
|
|
50465
50608
|
"errorMessage"
|
|
50466
50609
|
]);
|
|
50467
|
-
return /* @__PURE__ */ jsx108("div", __spreadProps(__spreadValues({},
|
|
50610
|
+
return /* @__PURE__ */ jsx108("div", __spreadProps(__spreadValues({}, filterDOMProps10(props)), { children: /* @__PURE__ */ jsx108(
|
|
50468
50611
|
EuiFormRow7,
|
|
50469
50612
|
{
|
|
50470
50613
|
label,
|
|
@@ -50491,13 +50634,13 @@ function Num(_a) {
|
|
|
50491
50634
|
}
|
|
50492
50635
|
) }));
|
|
50493
50636
|
}
|
|
50494
|
-
var NumField =
|
|
50637
|
+
var NumField = connectField11(Num, { kind: "leaf" });
|
|
50495
50638
|
|
|
50496
50639
|
// src/components/WfoForms/formFields/ProductField.tsx
|
|
50497
50640
|
var import_get = __toESM(require_get(), 1);
|
|
50498
50641
|
import { useQuery as useQuery5 } from "react-query";
|
|
50499
50642
|
import { useTranslations as useTranslations24 } from "next-intl";
|
|
50500
|
-
import { connectField as
|
|
50643
|
+
import { connectField as connectField12, filterDOMProps as filterDOMProps11 } from "uniforms";
|
|
50501
50644
|
|
|
50502
50645
|
// src/components/WfoForms/useAxiosApiClient.ts
|
|
50503
50646
|
import { useContext as useContext9 } from "react";
|
|
@@ -50508,7 +50651,7 @@ var useAxiosApiClient = () => {
|
|
|
50508
50651
|
|
|
50509
50652
|
// src/components/WfoForms/formFields/ProductField.tsx
|
|
50510
50653
|
import { jsx as jsx109 } from "@emotion/react/jsx-runtime";
|
|
50511
|
-
|
|
50654
|
+
filterDOMProps11.register("productIds");
|
|
50512
50655
|
function Product(_a) {
|
|
50513
50656
|
var _b = _a, { name, productIds } = _b, props = __objRest(_b, ["name", "productIds"]);
|
|
50514
50657
|
var _a2;
|
|
@@ -50529,7 +50672,7 @@ function Product(_a) {
|
|
|
50529
50672
|
return mapping;
|
|
50530
50673
|
}, {})) != null ? _a2 : {};
|
|
50531
50674
|
return /* @__PURE__ */ jsx109(
|
|
50532
|
-
|
|
50675
|
+
UnconnectedSelectField,
|
|
50533
50676
|
__spreadProps(__spreadValues({
|
|
50534
50677
|
name
|
|
50535
50678
|
}, props), {
|
|
@@ -50539,11 +50682,11 @@ function Product(_a) {
|
|
|
50539
50682
|
})
|
|
50540
50683
|
);
|
|
50541
50684
|
}
|
|
50542
|
-
var ProductField =
|
|
50685
|
+
var ProductField = connectField12(Product);
|
|
50543
50686
|
|
|
50544
50687
|
// src/components/WfoForms/formFields/RadioField.tsx
|
|
50545
50688
|
var import_lodash3 = __toESM(require_lodash(), 1);
|
|
50546
|
-
import { connectField as
|
|
50689
|
+
import { connectField as connectField13, filterDOMProps as filterDOMProps12 } from "uniforms";
|
|
50547
50690
|
import { EuiFormRow as EuiFormRow8, EuiRadio, EuiText as EuiText17 } from "@elastic/eui";
|
|
50548
50691
|
import { Fragment as Fragment20, jsx as jsx110 } from "@emotion/react/jsx-runtime";
|
|
50549
50692
|
var base64 = typeof btoa !== "undefined" ? btoa : (x) => Buffer.from(x).toString("base64");
|
|
@@ -50578,7 +50721,7 @@ function Radio(_a) {
|
|
|
50578
50721
|
"showInlineError",
|
|
50579
50722
|
"errorMessage"
|
|
50580
50723
|
]);
|
|
50581
|
-
return /* @__PURE__ */ jsx110("div", __spreadProps(__spreadValues({}, (0, import_lodash3.omit)(
|
|
50724
|
+
return /* @__PURE__ */ jsx110("div", __spreadProps(__spreadValues({}, (0, import_lodash3.omit)(filterDOMProps12(props), ["checkboxes"])), { children: /* @__PURE__ */ jsx110(
|
|
50582
50725
|
EuiFormRow8,
|
|
50583
50726
|
{
|
|
50584
50727
|
label,
|
|
@@ -50606,10 +50749,10 @@ function Radio(_a) {
|
|
|
50606
50749
|
}
|
|
50607
50750
|
) }));
|
|
50608
50751
|
}
|
|
50609
|
-
var RadioField =
|
|
50752
|
+
var RadioField = connectField13(Radio, { kind: "leaf" });
|
|
50610
50753
|
|
|
50611
50754
|
// src/components/WfoForms/formFields/SubmitField.tsx
|
|
50612
|
-
import { filterDOMProps as
|
|
50755
|
+
import { filterDOMProps as filterDOMProps13, useForm as useForm4 } from "uniforms";
|
|
50613
50756
|
import { jsx as jsx111 } from "@emotion/react/jsx-runtime";
|
|
50614
50757
|
var SubmitField = (_a) => {
|
|
50615
50758
|
var _b = _a, {
|
|
@@ -50631,12 +50774,12 @@ var SubmitField = (_a) => {
|
|
|
50631
50774
|
readOnly,
|
|
50632
50775
|
ref: inputRef,
|
|
50633
50776
|
type: "submit"
|
|
50634
|
-
}, value ? { value } : {}),
|
|
50777
|
+
}, value ? { value } : {}), filterDOMProps13(props))
|
|
50635
50778
|
);
|
|
50636
50779
|
};
|
|
50637
50780
|
|
|
50638
50781
|
// src/components/WfoForms/formFields/SubscriptionSummaryField.tsx
|
|
50639
|
-
import { connectField as
|
|
50782
|
+
import { connectField as connectField14, filterDOMProps as filterDOMProps14 } from "uniforms";
|
|
50640
50783
|
import { EuiFormRow as EuiFormRow9, EuiText as EuiText18 } from "@elastic/eui";
|
|
50641
50784
|
import { jsx as jsx112 } from "@emotion/react/jsx-runtime";
|
|
50642
50785
|
var SubscriptionSummaryDisplay = ({
|
|
@@ -50663,7 +50806,7 @@ var SubscriptionSummary = (_a) => {
|
|
|
50663
50806
|
if (!value) {
|
|
50664
50807
|
return null;
|
|
50665
50808
|
}
|
|
50666
|
-
return /* @__PURE__ */ jsx112("section", __spreadProps(__spreadValues({},
|
|
50809
|
+
return /* @__PURE__ */ jsx112("section", __spreadProps(__spreadValues({}, filterDOMProps14(props)), { children: /* @__PURE__ */ jsx112(
|
|
50667
50810
|
EuiFormRow9,
|
|
50668
50811
|
{
|
|
50669
50812
|
id,
|
|
@@ -50673,12 +50816,12 @@ var SubscriptionSummary = (_a) => {
|
|
|
50673
50816
|
}
|
|
50674
50817
|
) }));
|
|
50675
50818
|
};
|
|
50676
|
-
var SubscriptionSummaryField =
|
|
50819
|
+
var SubscriptionSummaryField = connectField14(SubscriptionSummary, {
|
|
50677
50820
|
kind: "leaf"
|
|
50678
50821
|
});
|
|
50679
50822
|
|
|
50680
50823
|
// src/components/WfoForms/formFields/TextField.tsx
|
|
50681
|
-
import { connectField as
|
|
50824
|
+
import { connectField as connectField15, filterDOMProps as filterDOMProps15 } from "uniforms";
|
|
50682
50825
|
import { EuiFieldText, EuiFormRow as EuiFormRow10, EuiText as EuiText19 } from "@elastic/eui";
|
|
50683
50826
|
import { jsx as jsx113 } from "@emotion/react/jsx-runtime";
|
|
50684
50827
|
function Text(_a) {
|
|
@@ -50713,7 +50856,7 @@ function Text(_a) {
|
|
|
50713
50856
|
"showInlineError",
|
|
50714
50857
|
"errorMessage"
|
|
50715
50858
|
]);
|
|
50716
|
-
return /* @__PURE__ */ jsx113("section", __spreadProps(__spreadValues({},
|
|
50859
|
+
return /* @__PURE__ */ jsx113("section", __spreadProps(__spreadValues({}, filterDOMProps15(props)), { children: /* @__PURE__ */ jsx113(
|
|
50717
50860
|
EuiFormRow10,
|
|
50718
50861
|
{
|
|
50719
50862
|
label,
|
|
@@ -50741,10 +50884,10 @@ function Text(_a) {
|
|
|
50741
50884
|
) }));
|
|
50742
50885
|
}
|
|
50743
50886
|
Text.defaultProps = { type: "text" };
|
|
50744
|
-
var TextField =
|
|
50887
|
+
var TextField = connectField15(Text, { kind: "leaf" });
|
|
50745
50888
|
|
|
50746
50889
|
// src/components/WfoForms/formFields/DateField.tsx
|
|
50747
|
-
import { connectField as
|
|
50890
|
+
import { connectField as connectField16, filterDOMProps as filterDOMProps16 } from "uniforms";
|
|
50748
50891
|
import { jsx as jsx114, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
50749
50892
|
var DateConstructor = (typeof global === "object" ? global : window).Date;
|
|
50750
50893
|
var dateFormat = (value) => {
|
|
@@ -50777,7 +50920,7 @@ function Date2(_a) {
|
|
|
50777
50920
|
"value"
|
|
50778
50921
|
]);
|
|
50779
50922
|
var _a2;
|
|
50780
|
-
return /* @__PURE__ */ jsxs70("div", __spreadProps(__spreadValues({},
|
|
50923
|
+
return /* @__PURE__ */ jsxs70("div", __spreadProps(__spreadValues({}, filterDOMProps16(props)), { children: [
|
|
50781
50924
|
label && /* @__PURE__ */ jsx114("label", { htmlFor: id, children: label }),
|
|
50782
50925
|
/* @__PURE__ */ jsx114(
|
|
50783
50926
|
"input",
|
|
@@ -50806,11 +50949,11 @@ function Date2(_a) {
|
|
|
50806
50949
|
)
|
|
50807
50950
|
] }));
|
|
50808
50951
|
}
|
|
50809
|
-
var DateField =
|
|
50952
|
+
var DateField = connectField16(Date2, { kind: "leaf" });
|
|
50810
50953
|
|
|
50811
50954
|
// src/components/WfoForms/formFields/TimestampField.tsx
|
|
50812
50955
|
import moment from "moment-timezone";
|
|
50813
|
-
import { connectField as
|
|
50956
|
+
import { connectField as connectField17, filterDOMProps as filterDOMProps17 } from "uniforms";
|
|
50814
50957
|
import { EuiDatePicker, EuiFormRow as EuiFormRow11, EuiText as EuiText20 } from "@elastic/eui";
|
|
50815
50958
|
import { jsx as jsx115 } from "@emotion/react/jsx-runtime";
|
|
50816
50959
|
function utcTimestampToLocalMoment(utc_timestamp) {
|
|
@@ -50854,7 +50997,7 @@ function Timestamp(_a) {
|
|
|
50854
50997
|
"showInlineError",
|
|
50855
50998
|
"errorMessage"
|
|
50856
50999
|
]);
|
|
50857
|
-
return /* @__PURE__ */ jsx115("div", __spreadProps(__spreadValues({},
|
|
51000
|
+
return /* @__PURE__ */ jsx115("div", __spreadProps(__spreadValues({}, filterDOMProps17(props)), { children: /* @__PURE__ */ jsx115(
|
|
50858
51001
|
EuiFormRow11,
|
|
50859
51002
|
{
|
|
50860
51003
|
label,
|
|
@@ -50885,7 +51028,7 @@ function Timestamp(_a) {
|
|
|
50885
51028
|
}
|
|
50886
51029
|
) }));
|
|
50887
51030
|
}
|
|
50888
|
-
var TimestampField =
|
|
51031
|
+
var TimestampField = connectField17(Timestamp, { kind: "leaf" });
|
|
50889
51032
|
|
|
50890
51033
|
// src/components/WfoForms/formFields/ContactPersonNameField.tsx
|
|
50891
51034
|
var import_lodash4 = __toESM(require_lodash(), 1);
|
|
@@ -50893,8 +51036,8 @@ var import_get2 = __toESM(require_get(), 1);
|
|
|
50893
51036
|
import React24, { useEffect as useEffect9, useState as useState18 } from "react";
|
|
50894
51037
|
import { useTranslations as useTranslations25 } from "next-intl";
|
|
50895
51038
|
import {
|
|
50896
|
-
connectField as
|
|
50897
|
-
filterDOMProps as
|
|
51039
|
+
connectField as connectField18,
|
|
51040
|
+
filterDOMProps as filterDOMProps18,
|
|
50898
51041
|
joinName as joinName6,
|
|
50899
51042
|
useField as useField6,
|
|
50900
51043
|
useForm as useForm5
|
|
@@ -51045,7 +51188,12 @@ function stop(e) {
|
|
|
51045
51188
|
e.stopPropagation();
|
|
51046
51189
|
}
|
|
51047
51190
|
}
|
|
51048
|
-
|
|
51191
|
+
filterDOMProps18.register(
|
|
51192
|
+
"customerId",
|
|
51193
|
+
"customerKey",
|
|
51194
|
+
"organisationKey",
|
|
51195
|
+
"organisationId"
|
|
51196
|
+
);
|
|
51049
51197
|
function ContactPersonName(_a) {
|
|
51050
51198
|
var _b = _a, {
|
|
51051
51199
|
disabled,
|
|
@@ -51172,7 +51320,7 @@ function ContactPersonName(_a) {
|
|
|
51172
51320
|
stop(e);
|
|
51173
51321
|
setTimeout(() => setDisplayAutocomplete(false), 350);
|
|
51174
51322
|
}
|
|
51175
|
-
return /* @__PURE__ */ jsx117("section", __spreadProps(__spreadValues({},
|
|
51323
|
+
return /* @__PURE__ */ jsx117("section", __spreadProps(__spreadValues({}, filterDOMProps18(props)), { children: /* @__PURE__ */ jsx117(
|
|
51176
51324
|
EuiFormRow12,
|
|
51177
51325
|
{
|
|
51178
51326
|
label,
|
|
@@ -51215,7 +51363,7 @@ function ContactPersonName(_a) {
|
|
|
51215
51363
|
}
|
|
51216
51364
|
) }));
|
|
51217
51365
|
}
|
|
51218
|
-
var ContactPersonNameField =
|
|
51366
|
+
var ContactPersonNameField = connectField18(ContactPersonName, {
|
|
51219
51367
|
kind: "leaf"
|
|
51220
51368
|
});
|
|
51221
51369
|
|
|
@@ -51223,9 +51371,9 @@ var ContactPersonNameField = connectField20(ContactPersonName, {
|
|
|
51223
51371
|
var import_lodash5 = __toESM(require_lodash(), 1);
|
|
51224
51372
|
import { useEffect as useEffect10, useState as useState19 } from "react";
|
|
51225
51373
|
import { useTranslations as useTranslations26 } from "next-intl";
|
|
51226
|
-
import { connectField as
|
|
51374
|
+
import { connectField as connectField19, filterDOMProps as filterDOMProps19 } from "uniforms";
|
|
51227
51375
|
import { jsx as jsx118 } from "@emotion/react/jsx-runtime";
|
|
51228
|
-
|
|
51376
|
+
filterDOMProps19.register("locationCode", "status", "unsubscribedOnly");
|
|
51229
51377
|
function ImsNodeId(_a) {
|
|
51230
51378
|
var _b = _a, {
|
|
51231
51379
|
value,
|
|
@@ -51263,7 +51411,7 @@ function ImsNodeId(_a) {
|
|
|
51263
51411
|
return mapping;
|
|
51264
51412
|
}, {})) != null ? _a2 : {};
|
|
51265
51413
|
return /* @__PURE__ */ jsx118(
|
|
51266
|
-
|
|
51414
|
+
UnconnectedSelectField,
|
|
51267
51415
|
__spreadProps(__spreadValues({
|
|
51268
51416
|
name: ""
|
|
51269
51417
|
}, props), {
|
|
@@ -51275,13 +51423,13 @@ function ImsNodeId(_a) {
|
|
|
51275
51423
|
})
|
|
51276
51424
|
);
|
|
51277
51425
|
}
|
|
51278
|
-
var ImsNodeIdField =
|
|
51426
|
+
var ImsNodeIdField = connectField19(ImsNodeId, { kind: "leaf" });
|
|
51279
51427
|
|
|
51280
51428
|
// src/components/WfoForms/formFields/ImsPortIdField.tsx
|
|
51281
51429
|
import { useCallback as useCallback3, useEffect as useEffect11, useState as useState20 } from "react";
|
|
51282
51430
|
import ReactSelect2 from "react-select";
|
|
51283
51431
|
import { useTranslations as useTranslations27 } from "next-intl";
|
|
51284
|
-
import { connectField as
|
|
51432
|
+
import { connectField as connectField20, filterDOMProps as filterDOMProps20 } from "uniforms";
|
|
51285
51433
|
import { EuiFlexItem as EuiFlexItem16, EuiFormRow as EuiFormRow13, EuiText as EuiText22 } from "@elastic/eui";
|
|
51286
51434
|
|
|
51287
51435
|
// src/components/WfoForms/formFields/ImsPortIdFieldStyling.ts
|
|
@@ -51310,7 +51458,7 @@ function nodeToOptionCorelink(node) {
|
|
|
51310
51458
|
label: `${node.subscription_id.substring(0, 8)} ${node.description.trim() || "<No description>"}`
|
|
51311
51459
|
};
|
|
51312
51460
|
}
|
|
51313
|
-
|
|
51461
|
+
filterDOMProps20.register(
|
|
51314
51462
|
"nodeSubscriptionId",
|
|
51315
51463
|
"interfaceSpeed",
|
|
51316
51464
|
"nodeStatuses",
|
|
@@ -51416,7 +51564,7 @@ function ImsPortId(_a) {
|
|
|
51416
51564
|
label: `${aPort.port} (${aPort.status}) (${aPort.iface_type})`
|
|
51417
51565
|
})).sort((x, y) => x.label.localeCompare(y.label));
|
|
51418
51566
|
const port_value = port_options.find((option) => option.value === value);
|
|
51419
|
-
return /* @__PURE__ */ jsx119(EuiFlexItem16, { css: imsPortIdFieldStyling, children: /* @__PURE__ */ jsx119("section", __spreadProps(__spreadValues({},
|
|
51567
|
+
return /* @__PURE__ */ jsx119(EuiFlexItem16, { css: imsPortIdFieldStyling, children: /* @__PURE__ */ jsx119("section", __spreadProps(__spreadValues({}, filterDOMProps20(props)), { children: /* @__PURE__ */ jsx119(
|
|
51420
51568
|
EuiFormRow13,
|
|
51421
51569
|
{
|
|
51422
51570
|
label,
|
|
@@ -51468,14 +51616,14 @@ function ImsPortId(_a) {
|
|
|
51468
51616
|
}
|
|
51469
51617
|
) })) });
|
|
51470
51618
|
}
|
|
51471
|
-
var ImsPortIdField =
|
|
51619
|
+
var ImsPortIdField = connectField20(ImsPortId, { kind: "leaf" });
|
|
51472
51620
|
|
|
51473
51621
|
// src/components/WfoForms/formFields/LocationCodeField.tsx
|
|
51474
51622
|
import { useEffect as useEffect12, useState as useState21 } from "react";
|
|
51475
51623
|
import { useTranslations as useTranslations28 } from "next-intl";
|
|
51476
|
-
import { connectField as
|
|
51624
|
+
import { connectField as connectField21, filterDOMProps as filterDOMProps21 } from "uniforms";
|
|
51477
51625
|
import { jsx as jsx120 } from "@emotion/react/jsx-runtime";
|
|
51478
|
-
|
|
51626
|
+
filterDOMProps21.register("locationCodes");
|
|
51479
51627
|
function LocationCode(_a) {
|
|
51480
51628
|
var _b = _a, { locationCodes } = _b, props = __objRest(_b, ["locationCodes"]);
|
|
51481
51629
|
const t = useTranslations28("pydanticForms");
|
|
@@ -51494,20 +51642,20 @@ function LocationCode(_a) {
|
|
|
51494
51642
|
});
|
|
51495
51643
|
}, [axiosApiClient]);
|
|
51496
51644
|
return /* @__PURE__ */ jsx120(
|
|
51497
|
-
|
|
51645
|
+
UnconnectedSelectField,
|
|
51498
51646
|
__spreadProps(__spreadValues({}, props), {
|
|
51499
51647
|
allowedValues: codes,
|
|
51500
51648
|
placeholder: t("widgets.locationCode.placeholder")
|
|
51501
51649
|
})
|
|
51502
51650
|
);
|
|
51503
51651
|
}
|
|
51504
|
-
var LocationCodeField =
|
|
51652
|
+
var LocationCodeField = connectField21(LocationCode, { kind: "leaf" });
|
|
51505
51653
|
|
|
51506
51654
|
// src/components/WfoForms/formFields/VlanField.tsx
|
|
51507
51655
|
var import_get3 = __toESM(require_get(), 1);
|
|
51508
51656
|
import { useEffect as useEffect13, useState as useState22 } from "react";
|
|
51509
51657
|
import { useTranslations as useTranslations29 } from "next-intl";
|
|
51510
|
-
import { connectField as
|
|
51658
|
+
import { connectField as connectField22, filterDOMProps as filterDOMProps22, joinName as joinName7, useForm as useForm6 } from "uniforms";
|
|
51511
51659
|
import { EuiFieldText as EuiFieldText3, EuiFormRow as EuiFormRow14, EuiText as EuiText23 } from "@elastic/eui";
|
|
51512
51660
|
|
|
51513
51661
|
// src/hooks/surf/useIsTaggedPort.ts
|
|
@@ -51691,7 +51839,7 @@ function Vlan(_a) {
|
|
|
51691
51839
|
message = t("widgets.vlan.taggedOnly");
|
|
51692
51840
|
}
|
|
51693
51841
|
}
|
|
51694
|
-
return /* @__PURE__ */ jsx121("section", __spreadProps(__spreadValues({},
|
|
51842
|
+
return /* @__PURE__ */ jsx121("section", __spreadProps(__spreadValues({}, filterDOMProps22(props)), { children: /* @__PURE__ */ jsx121(
|
|
51695
51843
|
EuiFormRow14,
|
|
51696
51844
|
{
|
|
51697
51845
|
label,
|
|
@@ -51718,10 +51866,10 @@ function Vlan(_a) {
|
|
|
51718
51866
|
}
|
|
51719
51867
|
) }));
|
|
51720
51868
|
}
|
|
51721
|
-
var VlanField =
|
|
51869
|
+
var VlanField = connectField22(Vlan, { kind: "leaf" });
|
|
51722
51870
|
|
|
51723
51871
|
// src/components/WfoForms/formFields/NestField.tsx
|
|
51724
|
-
import { connectField as
|
|
51872
|
+
import { connectField as connectField23, filterDOMProps as filterDOMProps23, joinName as joinName8 } from "uniforms";
|
|
51725
51873
|
import { AutoField as AutoField2 } from "uniforms-unstyled";
|
|
51726
51874
|
import {
|
|
51727
51875
|
EuiDescribedFormGroup,
|
|
@@ -51730,7 +51878,7 @@ import {
|
|
|
51730
51878
|
EuiText as EuiText24
|
|
51731
51879
|
} from "@elastic/eui";
|
|
51732
51880
|
import { Fragment as Fragment22, jsx as jsx122, jsxs as jsxs74 } from "@emotion/react/jsx-runtime";
|
|
51733
|
-
|
|
51881
|
+
filterDOMProps23.register("properties", "wrap");
|
|
51734
51882
|
function Nest(_a) {
|
|
51735
51883
|
var _b = _a, {
|
|
51736
51884
|
children,
|
|
@@ -51756,7 +51904,7 @@ function Nest(_a) {
|
|
|
51756
51904
|
if (isInList) {
|
|
51757
51905
|
return /* @__PURE__ */ jsxs74(
|
|
51758
51906
|
EuiFlexGroup13,
|
|
51759
|
-
__spreadProps(__spreadValues({},
|
|
51907
|
+
__spreadProps(__spreadValues({}, filterDOMProps23(props)), {
|
|
51760
51908
|
className: `${className} nest-field`,
|
|
51761
51909
|
children: [
|
|
51762
51910
|
label && /* @__PURE__ */ jsxs74(Fragment22, { children: [
|
|
@@ -51777,7 +51925,7 @@ function Nest(_a) {
|
|
|
51777
51925
|
} else {
|
|
51778
51926
|
return /* @__PURE__ */ jsx122(
|
|
51779
51927
|
EuiDescribedFormGroup,
|
|
51780
|
-
__spreadProps(__spreadValues({},
|
|
51928
|
+
__spreadProps(__spreadValues({}, filterDOMProps23(props)), {
|
|
51781
51929
|
title: /* @__PURE__ */ jsx122("span", { children: label }),
|
|
51782
51930
|
description,
|
|
51783
51931
|
className: `${className} nest-field`,
|
|
@@ -51794,15 +51942,15 @@ function Nest(_a) {
|
|
|
51794
51942
|
);
|
|
51795
51943
|
}
|
|
51796
51944
|
}
|
|
51797
|
-
var NestField =
|
|
51945
|
+
var NestField = connectField23(Nest);
|
|
51798
51946
|
|
|
51799
51947
|
// src/components/WfoForms/formFields/OptGroupField.tsx
|
|
51800
51948
|
import { useTranslations as useTranslations30 } from "next-intl";
|
|
51801
|
-
import { connectField as
|
|
51949
|
+
import { connectField as connectField24, filterDOMProps as filterDOMProps24, useField as useField7 } from "uniforms";
|
|
51802
51950
|
import { AutoField as AutoField3 } from "uniforms-unstyled";
|
|
51803
51951
|
import { EuiDescribedFormGroup as EuiDescribedFormGroup2, EuiFlexItem as EuiFlexItem18, EuiFormRow as EuiFormRow15 } from "@elastic/eui";
|
|
51804
51952
|
import { Fragment as Fragment23, jsx as jsx123, jsxs as jsxs75 } from "@emotion/react/jsx-runtime";
|
|
51805
|
-
|
|
51953
|
+
filterDOMProps24.register("properties");
|
|
51806
51954
|
function OptGroup(_a) {
|
|
51807
51955
|
var _b = _a, {
|
|
51808
51956
|
fields,
|
|
@@ -51821,7 +51969,7 @@ function OptGroup(_a) {
|
|
|
51821
51969
|
const enabled = useField7("enabled", {})[0].value;
|
|
51822
51970
|
return /* @__PURE__ */ jsx123(
|
|
51823
51971
|
EuiDescribedFormGroup2,
|
|
51824
|
-
__spreadProps(__spreadValues({},
|
|
51972
|
+
__spreadProps(__spreadValues({}, filterDOMProps24(props)), {
|
|
51825
51973
|
title: /* @__PURE__ */ jsx123("span", { children: t(`${name}.title`) }),
|
|
51826
51974
|
description: t(`${name}.description`),
|
|
51827
51975
|
className: `${className} optgroup-field`,
|
|
@@ -51840,15 +51988,15 @@ function OptGroup(_a) {
|
|
|
51840
51988
|
})
|
|
51841
51989
|
);
|
|
51842
51990
|
}
|
|
51843
|
-
var OptGroupField =
|
|
51991
|
+
var OptGroupField = connectField24(OptGroup);
|
|
51844
51992
|
|
|
51845
51993
|
// src/components/WfoForms/formFields/SubscriptionField.tsx
|
|
51846
51994
|
var import_get4 = __toESM(require_get(), 1);
|
|
51847
51995
|
import ReactSelect3 from "react-select";
|
|
51848
51996
|
import { useTranslations as useTranslations31 } from "next-intl";
|
|
51849
51997
|
import {
|
|
51850
|
-
connectField as
|
|
51851
|
-
filterDOMProps as
|
|
51998
|
+
connectField as connectField25,
|
|
51999
|
+
filterDOMProps as filterDOMProps25,
|
|
51852
52000
|
joinName as joinName9,
|
|
51853
52001
|
useField as useField8,
|
|
51854
52002
|
useForm as useForm7
|
|
@@ -51932,7 +52080,7 @@ var subscriptionFieldStyling = css17`
|
|
|
51932
52080
|
|
|
51933
52081
|
// src/components/WfoForms/formFields/SubscriptionField.tsx
|
|
51934
52082
|
import { jsx as jsx124, jsxs as jsxs76 } from "@emotion/react/jsx-runtime";
|
|
51935
|
-
|
|
52083
|
+
filterDOMProps25.register(
|
|
51936
52084
|
"productIds",
|
|
51937
52085
|
"excludedSubscriptionIds",
|
|
51938
52086
|
"customerId",
|
|
@@ -52099,7 +52247,7 @@ function SubscriptionFieldDefinition(_a) {
|
|
|
52099
52247
|
const isDisabled = disabled || readOnly || isFetching;
|
|
52100
52248
|
return /* @__PURE__ */ jsx124(EuiFlexItem19, { css: subscriptionFieldStyling, grow: 1, children: /* @__PURE__ */ jsx124(
|
|
52101
52249
|
"section",
|
|
52102
|
-
__spreadProps(__spreadValues({},
|
|
52250
|
+
__spreadProps(__spreadValues({}, filterDOMProps25(props)), {
|
|
52103
52251
|
className: `${className} subscription-field${disabled ? "-disabled" : ""}`,
|
|
52104
52252
|
children: /* @__PURE__ */ jsx124(
|
|
52105
52253
|
EuiFormRow16,
|
|
@@ -52158,14 +52306,14 @@ function SubscriptionFieldDefinition(_a) {
|
|
|
52158
52306
|
})
|
|
52159
52307
|
) });
|
|
52160
52308
|
}
|
|
52161
|
-
var SubscriptionField =
|
|
52309
|
+
var SubscriptionField = connectField25(SubscriptionFieldDefinition, {
|
|
52162
52310
|
kind: "leaf"
|
|
52163
52311
|
});
|
|
52164
52312
|
|
|
52165
52313
|
// src/components/WfoForms/formFields/IpNetworkField.tsx
|
|
52166
52314
|
import { useState as useState23 } from "react";
|
|
52167
52315
|
import { useTranslations as useTranslations32 } from "next-intl";
|
|
52168
|
-
import { connectField as
|
|
52316
|
+
import { connectField as connectField26, filterDOMProps as filterDOMProps26 } from "uniforms";
|
|
52169
52317
|
import { EuiCallOut as EuiCallOut2, EuiFormRow as EuiFormRow18, EuiText as EuiText27 } from "@elastic/eui";
|
|
52170
52318
|
|
|
52171
52319
|
// src/components/WfoForms/formFields/IpPrefixTableField.tsx
|
|
@@ -52819,7 +52967,7 @@ function IpNetwork(_a) {
|
|
|
52819
52967
|
const usePrefix = (_a2 = selectedPrefix == null ? void 0 : selectedPrefix.prefix) != null ? _a2 : value;
|
|
52820
52968
|
const [subnet, netmask] = (_b2 = usePrefix == null ? void 0 : usePrefix.split("/")) != null ? _b2 : ["", ""];
|
|
52821
52969
|
const usedPrefixMin = prefixMin != null ? prefixMin : parseInt(netmask, 10) + ((selectedPrefix == null ? void 0 : selectedPrefix.state) === 0 ? 0 : 1);
|
|
52822
|
-
return /* @__PURE__ */ jsx127("section", __spreadProps(__spreadValues({},
|
|
52970
|
+
return /* @__PURE__ */ jsx127("section", __spreadProps(__spreadValues({}, filterDOMProps26(props)), { children: /* @__PURE__ */ jsx127(
|
|
52823
52971
|
EuiFormRow18,
|
|
52824
52972
|
{
|
|
52825
52973
|
label,
|
|
@@ -52883,10 +53031,10 @@ function IpNetwork(_a) {
|
|
|
52883
53031
|
}
|
|
52884
53032
|
) }));
|
|
52885
53033
|
}
|
|
52886
|
-
var IpNetworkField =
|
|
53034
|
+
var IpNetworkField = connectField26(IpNetwork, { kind: "leaf" });
|
|
52887
53035
|
|
|
52888
53036
|
// src/components/WfoForms/formFields/SummaryField.tsx
|
|
52889
|
-
import { connectField as
|
|
53037
|
+
import { connectField as connectField27, filterDOMProps as filterDOMProps27 } from "uniforms";
|
|
52890
53038
|
import { EuiFlexItem as EuiFlexItem22, EuiFormRow as EuiFormRow19, EuiText as EuiText28 } from "@elastic/eui";
|
|
52891
53039
|
|
|
52892
53040
|
// src/components/WfoForms/formFields/SummaryFieldStyling.ts
|
|
@@ -52969,7 +53117,7 @@ function Summary(_a) {
|
|
|
52969
53117
|
labels && /* @__PURE__ */ jsx128("th", {}),
|
|
52970
53118
|
headers.map((header, idx) => /* @__PURE__ */ jsx128("th", { children: header }, idx))
|
|
52971
53119
|
] });
|
|
52972
|
-
return /* @__PURE__ */ jsx128(EuiFlexItem22, { css: summaryFieldStyle, children: /* @__PURE__ */ jsx128("section", __spreadProps(__spreadValues({},
|
|
53120
|
+
return /* @__PURE__ */ jsx128(EuiFlexItem22, { css: summaryFieldStyle, children: /* @__PURE__ */ jsx128("section", __spreadProps(__spreadValues({}, filterDOMProps27(props)), { children: /* @__PURE__ */ jsx128(
|
|
52973
53121
|
EuiFormRow19,
|
|
52974
53122
|
{
|
|
52975
53123
|
label,
|
|
@@ -52983,11 +53131,11 @@ function Summary(_a) {
|
|
|
52983
53131
|
}
|
|
52984
53132
|
) })) });
|
|
52985
53133
|
}
|
|
52986
|
-
var SummaryField =
|
|
53134
|
+
var SummaryField = connectField27(Summary, { kind: "leaf" });
|
|
52987
53135
|
|
|
52988
53136
|
// src/components/WfoForms/formFields/CustomerField.tsx
|
|
52989
53137
|
import { useTranslations as useTranslations33 } from "next-intl";
|
|
52990
|
-
import { connectField as
|
|
53138
|
+
import { connectField as connectField28 } from "uniforms";
|
|
52991
53139
|
import { jsx as jsx129 } from "@emotion/react/jsx-runtime";
|
|
52992
53140
|
function Customer(_a) {
|
|
52993
53141
|
var props = __objRest(_a, []);
|
|
@@ -53000,7 +53148,7 @@ function Customer(_a) {
|
|
|
53000
53148
|
});
|
|
53001
53149
|
}
|
|
53002
53150
|
return /* @__PURE__ */ jsx129(
|
|
53003
|
-
|
|
53151
|
+
UnconnectedSelectField,
|
|
53004
53152
|
__spreadProps(__spreadValues({}, props), {
|
|
53005
53153
|
allowedValues: Array.from(uuidCustomerNameMap.keys()),
|
|
53006
53154
|
transform: (uuid) => uuidCustomerNameMap.get(uuid) || uuid,
|
|
@@ -53009,7 +53157,17 @@ function Customer(_a) {
|
|
|
53009
53157
|
})
|
|
53010
53158
|
);
|
|
53011
53159
|
}
|
|
53012
|
-
var CustomerField =
|
|
53160
|
+
var CustomerField = connectField28(Customer, { kind: "leaf" });
|
|
53161
|
+
|
|
53162
|
+
// src/components/WfoForms/formFields/ConnectedSelectField.tsx
|
|
53163
|
+
import { connectField as connectField29 } from "uniforms";
|
|
53164
|
+
import { jsx as jsx130 } from "@emotion/react/jsx-runtime";
|
|
53165
|
+
var ConnectedSelect = (props) => {
|
|
53166
|
+
return /* @__PURE__ */ jsx130(UnconnectedSelectField, __spreadValues({}, props));
|
|
53167
|
+
};
|
|
53168
|
+
var ConnectedSelectField = connectField29(ConnectedSelect, {
|
|
53169
|
+
kind: "leaf"
|
|
53170
|
+
});
|
|
53013
53171
|
|
|
53014
53172
|
// src/components/WfoForms/AutoFieldLoader.tsx
|
|
53015
53173
|
function autoFieldFunction(props, uniforms) {
|
|
@@ -53064,7 +53222,7 @@ function autoFieldFunction(props, uniforms) {
|
|
|
53064
53222
|
break;
|
|
53065
53223
|
}
|
|
53066
53224
|
if (allowedValues && format !== "accept") {
|
|
53067
|
-
return checkboxes && fieldType !== Array ? RadioField :
|
|
53225
|
+
return checkboxes && fieldType !== Array ? RadioField : ConnectedSelectField;
|
|
53068
53226
|
} else {
|
|
53069
53227
|
switch (fieldType) {
|
|
53070
53228
|
case Array:
|
|
@@ -53194,16 +53352,16 @@ var userInputFormStyling = css21`
|
|
|
53194
53352
|
`;
|
|
53195
53353
|
|
|
53196
53354
|
// src/components/WfoForms/UserInputForm.tsx
|
|
53197
|
-
import { Fragment as Fragment25, jsx as
|
|
53198
|
-
|
|
53199
|
-
|
|
53200
|
-
|
|
53201
|
-
|
|
53202
|
-
|
|
53203
|
-
|
|
53204
|
-
|
|
53205
|
-
|
|
53206
|
-
|
|
53355
|
+
import { Fragment as Fragment25, jsx as jsx131, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
53356
|
+
filterDOMProps28.register("description");
|
|
53357
|
+
filterDOMProps28.register("const");
|
|
53358
|
+
filterDOMProps28.register("default");
|
|
53359
|
+
filterDOMProps28.register("required");
|
|
53360
|
+
filterDOMProps28.register("pattern");
|
|
53361
|
+
filterDOMProps28.register("examples");
|
|
53362
|
+
filterDOMProps28.register("allOf");
|
|
53363
|
+
filterDOMProps28.register("anyOf");
|
|
53364
|
+
filterDOMProps28.register("options");
|
|
53207
53365
|
function resolveRef(reference, schema) {
|
|
53208
53366
|
invariant2(
|
|
53209
53367
|
reference.startsWith("#"),
|
|
@@ -53497,7 +53655,7 @@ function UserInputForm({
|
|
|
53497
53655
|
};
|
|
53498
53656
|
const renderButtons = (buttons2) => {
|
|
53499
53657
|
var _a2, _b2, _c2, _d, _e, _f, _g;
|
|
53500
|
-
const prevButton = hasPrev ? /* @__PURE__ */
|
|
53658
|
+
const prevButton = hasPrev ? /* @__PURE__ */ jsx131(
|
|
53501
53659
|
EuiButton9,
|
|
53502
53660
|
{
|
|
53503
53661
|
id: "button-prev-form-submit",
|
|
@@ -53512,7 +53670,7 @@ function UserInputForm({
|
|
|
53512
53670
|
},
|
|
53513
53671
|
children: (_b2 = buttons2.previous.text) != null ? _b2 : t("previous")
|
|
53514
53672
|
}
|
|
53515
|
-
) : !isResuming ? /* @__PURE__ */
|
|
53673
|
+
) : !isResuming ? /* @__PURE__ */ jsx131(
|
|
53516
53674
|
"div",
|
|
53517
53675
|
{
|
|
53518
53676
|
onClick: (e) => {
|
|
@@ -53532,14 +53690,14 @@ function UserInputForm({
|
|
|
53532
53690
|
},
|
|
53533
53691
|
children: (_c2 = buttons2.previous.text) != null ? _c2 : t("cancel")
|
|
53534
53692
|
}
|
|
53535
|
-
) : /* @__PURE__ */
|
|
53693
|
+
) : /* @__PURE__ */ jsx131("div", {});
|
|
53536
53694
|
const nextButtonTranslationKey = (() => {
|
|
53537
53695
|
if (isResuming) {
|
|
53538
53696
|
return isTask ? "resumeTask" : "resumeWorkflow";
|
|
53539
53697
|
}
|
|
53540
53698
|
return isTask ? "startTask" : "startWorkflow";
|
|
53541
53699
|
})();
|
|
53542
|
-
const nextButton = hasNext ? /* @__PURE__ */
|
|
53700
|
+
const nextButton = hasNext ? /* @__PURE__ */ jsx131(
|
|
53543
53701
|
EuiButton9,
|
|
53544
53702
|
{
|
|
53545
53703
|
id: "button-next-form-submit",
|
|
@@ -53550,7 +53708,7 @@ function UserInputForm({
|
|
|
53550
53708
|
type: "submit",
|
|
53551
53709
|
children: (_e = buttons2.next.text) != null ? _e : t("next")
|
|
53552
53710
|
}
|
|
53553
|
-
) : /* @__PURE__ */
|
|
53711
|
+
) : /* @__PURE__ */ jsx131(
|
|
53554
53712
|
EuiButton9,
|
|
53555
53713
|
{
|
|
53556
53714
|
id: "button-submit-form-submit",
|
|
@@ -53559,13 +53717,13 @@ function UserInputForm({
|
|
|
53559
53717
|
color: (_f = buttons2.next.color) != null ? _f : "primary",
|
|
53560
53718
|
isLoading: processing,
|
|
53561
53719
|
type: "submit",
|
|
53562
|
-
iconType: buttons2.next.text ? void 0 : () => /* @__PURE__ */
|
|
53720
|
+
iconType: buttons2.next.text ? void 0 : () => /* @__PURE__ */ jsx131(WfoPlayFill, { color: "#FFF" }),
|
|
53563
53721
|
iconSide: "right",
|
|
53564
53722
|
children: (_g = buttons2.next.text) != null ? _g : t(nextButtonTranslationKey)
|
|
53565
53723
|
}
|
|
53566
53724
|
);
|
|
53567
53725
|
return /* @__PURE__ */ jsxs81(Fragment25, { children: [
|
|
53568
|
-
/* @__PURE__ */
|
|
53726
|
+
/* @__PURE__ */ jsx131(EuiHorizontalRule5, {}),
|
|
53569
53727
|
/* @__PURE__ */ jsxs81(EuiFlexGroup16, { justifyContent: "spaceBetween", children: [
|
|
53570
53728
|
prevButton,
|
|
53571
53729
|
nextButton
|
|
@@ -53585,9 +53743,9 @@ function UserInputForm({
|
|
|
53585
53743
|
next: {}
|
|
53586
53744
|
};
|
|
53587
53745
|
const buttons = buttonsFromSchema;
|
|
53588
|
-
return /* @__PURE__ */
|
|
53589
|
-
stepUserInput.title && stepUserInput.title !== "unknown" && /* @__PURE__ */
|
|
53590
|
-
/* @__PURE__ */
|
|
53746
|
+
return /* @__PURE__ */ jsx131("div", { css: userInputFormStyling, children: /* @__PURE__ */ jsx131("div", { className: "user-input-form", children: /* @__PURE__ */ jsxs81("section", { className: "form-fieldset", children: [
|
|
53747
|
+
stepUserInput.title && stepUserInput.title !== "unknown" && /* @__PURE__ */ jsx131("h3", { children: stepUserInput.title }),
|
|
53748
|
+
/* @__PURE__ */ jsx131(AutoFieldProvider, { value: autoFieldFunction, children: /* @__PURE__ */ jsxs81(
|
|
53591
53749
|
AutoForm,
|
|
53592
53750
|
{
|
|
53593
53751
|
schema: bridge,
|
|
@@ -53596,11 +53754,11 @@ function UserInputForm({
|
|
|
53596
53754
|
validate: "onSubmit",
|
|
53597
53755
|
model: userInput,
|
|
53598
53756
|
children: [
|
|
53599
|
-
/* @__PURE__ */
|
|
53600
|
-
nrOfValidationErrors > 0 && /* @__PURE__ */
|
|
53757
|
+
/* @__PURE__ */ jsx131(AutoFields, { omitFields: ["buttons"] }),
|
|
53758
|
+
nrOfValidationErrors > 0 && /* @__PURE__ */ jsx131("section", { className: "form-errors", children: /* @__PURE__ */ jsx131("em", { className: "error backend-validation-metadata", children: t("inputFieldsHaveValidationErrors", {
|
|
53601
53759
|
nrOfValidationErrors
|
|
53602
53760
|
}) }) }),
|
|
53603
|
-
rootErrors.length > 0 && /* @__PURE__ */
|
|
53761
|
+
rootErrors.length > 0 && /* @__PURE__ */ jsx131("section", { className: "form-errors", children: /* @__PURE__ */ jsx131("em", { className: "error backend-validation-metadata", children: rootErrors.map((error, index) => /* @__PURE__ */ jsx131(
|
|
53604
53762
|
"div",
|
|
53605
53763
|
{
|
|
53606
53764
|
className: "euiFormErrorText euiFormRow__text",
|
|
@@ -53617,7 +53775,7 @@ function UserInputForm({
|
|
|
53617
53775
|
var UserInputForm_default = UserInputForm;
|
|
53618
53776
|
|
|
53619
53777
|
// src/components/WfoForms/UserInputFormWizard.tsx
|
|
53620
|
-
import { jsx as
|
|
53778
|
+
import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
|
|
53621
53779
|
function stop2(e) {
|
|
53622
53780
|
if (e !== void 0 && e !== null) {
|
|
53623
53781
|
e.preventDefault();
|
|
@@ -53671,7 +53829,7 @@ function UserInputFormWizard({
|
|
|
53671
53829
|
return null;
|
|
53672
53830
|
}
|
|
53673
53831
|
const key = hash.sha1({ form: currentForm.form, length: forms.length });
|
|
53674
|
-
return /* @__PURE__ */
|
|
53832
|
+
return /* @__PURE__ */ jsx132(
|
|
53675
53833
|
UserInputForm_default,
|
|
53676
53834
|
{
|
|
53677
53835
|
router,
|
|
@@ -53691,7 +53849,7 @@ function UserInputFormWizard({
|
|
|
53691
53849
|
var UserInputFormWizard_default = UserInputFormWizard;
|
|
53692
53850
|
|
|
53693
53851
|
// src/components/WfoForms/CreateForm.tsx
|
|
53694
|
-
import { jsx as
|
|
53852
|
+
import { jsx as jsx133 } from "@emotion/react/jsx-runtime";
|
|
53695
53853
|
function CreateForm(props) {
|
|
53696
53854
|
const { preselectedInput, formKey, handleSubmit, handleCancel } = props;
|
|
53697
53855
|
const [form, setForm] = useState26({});
|
|
@@ -53720,7 +53878,7 @@ function CreateForm(props) {
|
|
|
53720
53878
|
);
|
|
53721
53879
|
}
|
|
53722
53880
|
}, [formKey, submit, preselectedInput, apiClient]);
|
|
53723
|
-
return /* @__PURE__ */
|
|
53881
|
+
return /* @__PURE__ */ jsx133("div", { children: stepUserInput && /* @__PURE__ */ jsx133(
|
|
53724
53882
|
UserInputFormWizard_default,
|
|
53725
53883
|
{
|
|
53726
53884
|
stepUserInput,
|
|
@@ -53735,7 +53893,7 @@ function CreateForm(props) {
|
|
|
53735
53893
|
// src/components/WfoStartTaskButtonComboBox/WfoStartTaskButtonComboBox.tsx
|
|
53736
53894
|
import { useTranslations as useTranslations35 } from "next-intl";
|
|
53737
53895
|
import { useRouter as useRouter7 } from "next/router";
|
|
53738
|
-
import { jsx as
|
|
53896
|
+
import { jsx as jsx134 } from "@emotion/react/jsx-runtime";
|
|
53739
53897
|
var WfoStartTaskButtonComboBox = () => {
|
|
53740
53898
|
const router = useRouter7();
|
|
53741
53899
|
const t = useTranslations35("common");
|
|
@@ -53759,7 +53917,7 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
53759
53917
|
});
|
|
53760
53918
|
}
|
|
53761
53919
|
});
|
|
53762
|
-
return /* @__PURE__ */
|
|
53920
|
+
return /* @__PURE__ */ jsx134(
|
|
53763
53921
|
WfoButtonComboBox,
|
|
53764
53922
|
{
|
|
53765
53923
|
buttonText: t("newTask"),
|
|
@@ -53771,23 +53929,23 @@ var WfoStartTaskButtonComboBox = () => {
|
|
|
53771
53929
|
};
|
|
53772
53930
|
|
|
53773
53931
|
// src/components/WfoDateTime/WfoDateTime.tsx
|
|
53774
|
-
import { jsx as
|
|
53932
|
+
import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
|
|
53775
53933
|
var WfoDateTime = ({ dateOrIsoString }) => {
|
|
53776
53934
|
const date = getDate(dateOrIsoString);
|
|
53777
|
-
return /* @__PURE__ */
|
|
53935
|
+
return /* @__PURE__ */ jsx135("span", { title: parseDateToLocaleDateTimeString(date), children: parseDateOrTimeRelativeToToday(date) });
|
|
53778
53936
|
};
|
|
53779
53937
|
|
|
53780
53938
|
// src/components/WfoAuth/WfoAuth.tsx
|
|
53781
53939
|
import { useContext as useContext11 } from "react";
|
|
53782
53940
|
import { useSession as useSession2 } from "next-auth/react";
|
|
53783
|
-
import { jsx as
|
|
53941
|
+
import { jsx as jsx136 } from "@emotion/react/jsx-runtime";
|
|
53784
53942
|
var WfoAuth = ({ children }) => {
|
|
53785
53943
|
const { authActive } = useContext11(OrchestratorConfigContext);
|
|
53786
53944
|
const { status } = useSession2({
|
|
53787
53945
|
required: authActive
|
|
53788
53946
|
});
|
|
53789
53947
|
if (status === "loading") {
|
|
53790
|
-
return /* @__PURE__ */
|
|
53948
|
+
return /* @__PURE__ */ jsx136(WfoLoading, {});
|
|
53791
53949
|
}
|
|
53792
53950
|
return children;
|
|
53793
53951
|
};
|
|
@@ -53795,7 +53953,7 @@ var WfoAuth = ({ children }) => {
|
|
|
53795
53953
|
// src/components/WfoDropdownButton/WfoDropdownButton.tsx
|
|
53796
53954
|
import { useState as useState27 } from "react";
|
|
53797
53955
|
import { EuiButtonGroup, EuiPopover as EuiPopover4 } from "@elastic/eui";
|
|
53798
|
-
import { jsx as
|
|
53956
|
+
import { jsx as jsx137 } from "@emotion/react/jsx-runtime";
|
|
53799
53957
|
var WfoDropdownButton = ({
|
|
53800
53958
|
label,
|
|
53801
53959
|
children
|
|
@@ -53806,7 +53964,7 @@ var WfoDropdownButton = ({
|
|
|
53806
53964
|
{
|
|
53807
53965
|
id: "id_1",
|
|
53808
53966
|
label,
|
|
53809
|
-
iconType: () => /* @__PURE__ */
|
|
53967
|
+
iconType: () => /* @__PURE__ */ jsx137(WfoPencilAlt, { color: "currentColor" }),
|
|
53810
53968
|
style: {
|
|
53811
53969
|
textDecoration: isHovered && "underline"
|
|
53812
53970
|
}
|
|
@@ -53814,7 +53972,7 @@ var WfoDropdownButton = ({
|
|
|
53814
53972
|
{
|
|
53815
53973
|
id: "id_2",
|
|
53816
53974
|
label: "",
|
|
53817
|
-
iconType: () => /* @__PURE__ */
|
|
53975
|
+
iconType: () => /* @__PURE__ */ jsx137(WfoChevronDown, { color: "currentColor" }),
|
|
53818
53976
|
onMouseEnter: () => setIsHovered(true),
|
|
53819
53977
|
onMouseLeave: () => setIsHovered(false)
|
|
53820
53978
|
}
|
|
@@ -53825,11 +53983,11 @@ var WfoDropdownButton = ({
|
|
|
53825
53983
|
const closePopover = () => {
|
|
53826
53984
|
setPopoverOpen(false);
|
|
53827
53985
|
};
|
|
53828
|
-
return /* @__PURE__ */
|
|
53986
|
+
return /* @__PURE__ */ jsx137(
|
|
53829
53987
|
EuiPopover4,
|
|
53830
53988
|
{
|
|
53831
53989
|
ownFocus: true,
|
|
53832
|
-
button: /* @__PURE__ */
|
|
53990
|
+
button: /* @__PURE__ */ jsx137(
|
|
53833
53991
|
EuiButtonGroup,
|
|
53834
53992
|
{
|
|
53835
53993
|
type: "multi",
|
|
@@ -53941,7 +54099,7 @@ var csvDownloadHandler = (dataFetchFunction, dataMapper, pageInfoMapper, keyOrde
|
|
|
53941
54099
|
import { useTranslations as useTranslations36 } from "next-intl";
|
|
53942
54100
|
import { useRouter as useRouter8 } from "next/router";
|
|
53943
54101
|
import { EuiPageHeader as EuiPageHeader2, EuiSpacer as EuiSpacer14, EuiTab as EuiTab2, EuiTabs as EuiTabs2 } from "@elastic/eui";
|
|
53944
|
-
import { Fragment as Fragment26, jsx as
|
|
54102
|
+
import { Fragment as Fragment26, jsx as jsx138, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
53945
54103
|
var metaDataTabs = [
|
|
53946
54104
|
{
|
|
53947
54105
|
id: 1,
|
|
@@ -53972,10 +54130,10 @@ var WfoMetadataPageLayout = ({
|
|
|
53972
54130
|
const t = useTranslations36("metadata.tabs");
|
|
53973
54131
|
const currentPath = router.pathname;
|
|
53974
54132
|
return /* @__PURE__ */ jsxs82(Fragment26, { children: [
|
|
53975
|
-
/* @__PURE__ */
|
|
53976
|
-
/* @__PURE__ */
|
|
53977
|
-
/* @__PURE__ */
|
|
53978
|
-
/* @__PURE__ */
|
|
54133
|
+
/* @__PURE__ */ jsx138(EuiSpacer14, {}),
|
|
54134
|
+
/* @__PURE__ */ jsx138(EuiPageHeader2, { pageTitle: "Metadata" }),
|
|
54135
|
+
/* @__PURE__ */ jsx138(EuiSpacer14, { size: "m" }),
|
|
54136
|
+
/* @__PURE__ */ jsx138(EuiTabs2, { children: tabs.map(({ id, translationKey: name, path }) => /* @__PURE__ */ jsx138(
|
|
53979
54137
|
EuiTab2,
|
|
53980
54138
|
{
|
|
53981
54139
|
isSelected: path === currentPath,
|
|
@@ -53984,13 +54142,13 @@ var WfoMetadataPageLayout = ({
|
|
|
53984
54142
|
},
|
|
53985
54143
|
id
|
|
53986
54144
|
)) }),
|
|
53987
|
-
/* @__PURE__ */
|
|
54145
|
+
/* @__PURE__ */ jsx138(EuiSpacer14, { size: "xxl" }),
|
|
53988
54146
|
children
|
|
53989
54147
|
] });
|
|
53990
54148
|
};
|
|
53991
54149
|
|
|
53992
54150
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
53993
|
-
import { Fragment as Fragment27, jsx as
|
|
54151
|
+
import { Fragment as Fragment27, jsx as jsx139 } from "@emotion/react/jsx-runtime";
|
|
53994
54152
|
var PRODUCT_BLOCK_FIELD_ID = "productBlockId";
|
|
53995
54153
|
var PRODUCT_BLOCK_FIELD_NAME = "name";
|
|
53996
54154
|
var PRODUCT_BLOCK_FIELD_TAG = "tag";
|
|
@@ -54031,14 +54189,14 @@ var WfoProductBlocksPage = () => {
|
|
|
54031
54189
|
field: PRODUCT_BLOCK_FIELD_ID,
|
|
54032
54190
|
name: t("id"),
|
|
54033
54191
|
width: "90",
|
|
54034
|
-
render: (value) => /* @__PURE__ */
|
|
54192
|
+
render: (value) => /* @__PURE__ */ jsx139(WfoFirstPartUUID, { UUID: value }),
|
|
54035
54193
|
renderDetails: (value) => value
|
|
54036
54194
|
},
|
|
54037
54195
|
name: {
|
|
54038
54196
|
field: PRODUCT_BLOCK_FIELD_NAME,
|
|
54039
54197
|
name: t("name"),
|
|
54040
54198
|
width: "200",
|
|
54041
|
-
render: (name) => /* @__PURE__ */
|
|
54199
|
+
render: (name) => /* @__PURE__ */ jsx139(WfoProductBlockBadge, { badgeType: "product_block" /* PRODUCT_BLOCK */, children: name })
|
|
54042
54200
|
},
|
|
54043
54201
|
tag: {
|
|
54044
54202
|
field: PRODUCT_BLOCK_FIELD_TAG,
|
|
@@ -54054,12 +54212,12 @@ var WfoProductBlocksPage = () => {
|
|
|
54054
54212
|
field: PRODUCT_BLOCK_FIELD_STATUS,
|
|
54055
54213
|
name: t("status"),
|
|
54056
54214
|
width: "90",
|
|
54057
|
-
render: (value) => /* @__PURE__ */
|
|
54215
|
+
render: (value) => /* @__PURE__ */ jsx139(WfoProductStatusBadge, { status: value })
|
|
54058
54216
|
},
|
|
54059
54217
|
dependsOn: {
|
|
54060
54218
|
field: PRODUCT_BLOCK_FIELD_PRODUCT_BLOCKS,
|
|
54061
54219
|
name: t("dependingProductBlocks"),
|
|
54062
|
-
render: (dependsOn) => /* @__PURE__ */
|
|
54220
|
+
render: (dependsOn) => /* @__PURE__ */ jsx139(Fragment27, { children: dependsOn.map((productBlock, index) => /* @__PURE__ */ jsx139(
|
|
54063
54221
|
WfoProductBlockBadge,
|
|
54064
54222
|
{
|
|
54065
54223
|
badgeType: "product_block" /* PRODUCT_BLOCK */,
|
|
@@ -54071,7 +54229,7 @@ var WfoProductBlocksPage = () => {
|
|
|
54071
54229
|
resourceTypes: {
|
|
54072
54230
|
field: PRODUCT_BLOCK_FIELD_RESOURCE_TYPES,
|
|
54073
54231
|
name: t("resourceTypes"),
|
|
54074
|
-
render: (resourceTypes) => /* @__PURE__ */
|
|
54232
|
+
render: (resourceTypes) => /* @__PURE__ */ jsx139(Fragment27, { children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx139(
|
|
54075
54233
|
WfoProductBlockBadge,
|
|
54076
54234
|
{
|
|
54077
54235
|
badgeType: "resource_type" /* RESOURCE_TYPE */,
|
|
@@ -54079,7 +54237,7 @@ var WfoProductBlocksPage = () => {
|
|
|
54079
54237
|
},
|
|
54080
54238
|
index
|
|
54081
54239
|
)) }),
|
|
54082
|
-
renderDetails: (resourceTypes) => /* @__PURE__ */
|
|
54240
|
+
renderDetails: (resourceTypes) => /* @__PURE__ */ jsx139(EuiBadgeGroup2, { gutterSize: "s", children: resourceTypes.map((resourceType, index) => /* @__PURE__ */ jsx139(
|
|
54083
54241
|
WfoProductBlockBadge,
|
|
54084
54242
|
{
|
|
54085
54243
|
badgeType: "resource_type" /* RESOURCE_TYPE */,
|
|
@@ -54091,14 +54249,14 @@ var WfoProductBlocksPage = () => {
|
|
|
54091
54249
|
createdAt: {
|
|
54092
54250
|
field: PRODUCT_BLOCK_FIELD_CREATED_AT,
|
|
54093
54251
|
name: t("createdAt"),
|
|
54094
|
-
render: (date) => /* @__PURE__ */
|
|
54252
|
+
render: (date) => /* @__PURE__ */ jsx139(WfoDateTime, { dateOrIsoString: date }),
|
|
54095
54253
|
renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
|
|
54096
54254
|
clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
|
|
54097
54255
|
},
|
|
54098
54256
|
endDate: {
|
|
54099
54257
|
field: PRODUCT_BLOCK_FIELD_END_DATE,
|
|
54100
54258
|
name: t("endDate"),
|
|
54101
|
-
render: (date) => /* @__PURE__ */
|
|
54259
|
+
render: (date) => /* @__PURE__ */ jsx139(WfoDateTime, { dateOrIsoString: date }),
|
|
54102
54260
|
renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
|
|
54103
54261
|
clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
|
|
54104
54262
|
}
|
|
@@ -54131,7 +54289,7 @@ var WfoProductBlocksPage = () => {
|
|
|
54131
54289
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
54132
54290
|
totalItemCount: totalItems ? totalItems : 0
|
|
54133
54291
|
};
|
|
54134
|
-
return /* @__PURE__ */
|
|
54292
|
+
return /* @__PURE__ */ jsx139(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx139(
|
|
54135
54293
|
WfoTableWithFilter,
|
|
54136
54294
|
{
|
|
54137
54295
|
data: (data == null ? void 0 : data.productBlocks.page) || [],
|
|
@@ -54174,7 +54332,7 @@ var WfoProductBlocksPage = () => {
|
|
|
54174
54332
|
import { useEffect as useEffect17, useState as useState29 } from "react";
|
|
54175
54333
|
import { useTranslations as useTranslations38 } from "next-intl";
|
|
54176
54334
|
import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
|
|
54177
|
-
import { Fragment as Fragment28, jsx as
|
|
54335
|
+
import { Fragment as Fragment28, jsx as jsx140 } from "@emotion/react/jsx-runtime";
|
|
54178
54336
|
var RESOURCE_TYPE_FIELD_ID = "resourceTypeId";
|
|
54179
54337
|
var RESOURCE_TYPE_FIELD_TYPE = "resourceType";
|
|
54180
54338
|
var RESOURCE_TYPE_FIELD_DESCRIPTION = "description";
|
|
@@ -54210,14 +54368,14 @@ var WfoResourceTypesPage = () => {
|
|
|
54210
54368
|
field: RESOURCE_TYPE_FIELD_ID,
|
|
54211
54369
|
name: t("resourceId"),
|
|
54212
54370
|
width: "90",
|
|
54213
|
-
render: (value) => /* @__PURE__ */
|
|
54371
|
+
render: (value) => /* @__PURE__ */ jsx140(WfoFirstPartUUID, { UUID: value }),
|
|
54214
54372
|
renderDetails: (value) => value
|
|
54215
54373
|
},
|
|
54216
54374
|
resourceType: {
|
|
54217
54375
|
field: RESOURCE_TYPE_FIELD_TYPE,
|
|
54218
54376
|
name: t("type"),
|
|
54219
54377
|
width: "200",
|
|
54220
|
-
render: (value) => /* @__PURE__ */
|
|
54378
|
+
render: (value) => /* @__PURE__ */ jsx140(WfoProductBlockBadge, { badgeType: "resource_type" /* RESOURCE_TYPE */, children: value })
|
|
54221
54379
|
},
|
|
54222
54380
|
description: {
|
|
54223
54381
|
field: RESOURCE_TYPE_FIELD_DESCRIPTION,
|
|
@@ -54226,7 +54384,7 @@ var WfoResourceTypesPage = () => {
|
|
|
54226
54384
|
productBlocks: {
|
|
54227
54385
|
field: RESOURCE_TYPE_FIELD_PRODUCT_BLOCKS,
|
|
54228
54386
|
name: t("usedInProductBlocks"),
|
|
54229
|
-
render: (productBlocks) => /* @__PURE__ */
|
|
54387
|
+
render: (productBlocks) => /* @__PURE__ */ jsx140(Fragment28, { children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx140(
|
|
54230
54388
|
WfoProductBlockBadge,
|
|
54231
54389
|
{
|
|
54232
54390
|
badgeType: "product_block" /* PRODUCT_BLOCK */,
|
|
@@ -54234,7 +54392,7 @@ var WfoResourceTypesPage = () => {
|
|
|
54234
54392
|
},
|
|
54235
54393
|
index
|
|
54236
54394
|
)) }),
|
|
54237
|
-
renderDetails: (productBlocks) => /* @__PURE__ */
|
|
54395
|
+
renderDetails: (productBlocks) => /* @__PURE__ */ jsx140(EuiBadgeGroup3, { gutterSize: "s", children: productBlocks.map((productBlock, index) => /* @__PURE__ */ jsx140(
|
|
54238
54396
|
WfoProductBlockBadge,
|
|
54239
54397
|
{
|
|
54240
54398
|
badgeType: "product_block" /* PRODUCT_BLOCK */,
|
|
@@ -54272,7 +54430,7 @@ var WfoResourceTypesPage = () => {
|
|
|
54272
54430
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
54273
54431
|
totalItemCount: totalItems ? totalItems : 0
|
|
54274
54432
|
};
|
|
54275
|
-
return /* @__PURE__ */
|
|
54433
|
+
return /* @__PURE__ */ jsx140(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx140(
|
|
54276
54434
|
WfoTableWithFilter,
|
|
54277
54435
|
{
|
|
54278
54436
|
data: data ? data.resourceTypes.page : [],
|
|
@@ -54314,7 +54472,7 @@ var WfoResourceTypesPage = () => {
|
|
|
54314
54472
|
// src/pages/metadata/WfoProductsPage.tsx
|
|
54315
54473
|
import { useEffect as useEffect18, useState as useState30 } from "react";
|
|
54316
54474
|
import { useTranslations as useTranslations39 } from "next-intl";
|
|
54317
|
-
import { Fragment as Fragment29, jsx as
|
|
54475
|
+
import { Fragment as Fragment29, jsx as jsx141 } from "@emotion/react/jsx-runtime";
|
|
54318
54476
|
var PRODUCT_FIELD_PRODUCT_ID = "productId";
|
|
54319
54477
|
var PRODUCT_FIELD_NAME = "name";
|
|
54320
54478
|
var PRODUCT_FIELD_DESCRIPTION = "description";
|
|
@@ -54355,7 +54513,7 @@ var WfoProductsPage = () => {
|
|
|
54355
54513
|
field: PRODUCT_FIELD_PRODUCT_ID,
|
|
54356
54514
|
name: t("id"),
|
|
54357
54515
|
width: "90",
|
|
54358
|
-
render: (value) => /* @__PURE__ */
|
|
54516
|
+
render: (value) => /* @__PURE__ */ jsx141(WfoFirstPartUUID, { UUID: value }),
|
|
54359
54517
|
renderDetails: (value) => value
|
|
54360
54518
|
},
|
|
54361
54519
|
name: {
|
|
@@ -54367,7 +54525,7 @@ var WfoProductsPage = () => {
|
|
|
54367
54525
|
field: PRODUCT_FIELD_TAG,
|
|
54368
54526
|
name: t("tag"),
|
|
54369
54527
|
width: "120",
|
|
54370
|
-
render: (value) => /* @__PURE__ */
|
|
54528
|
+
render: (value) => /* @__PURE__ */ jsx141(WfoProductBlockBadge, { badgeType: "product_tag" /* PRODUCT_TAG */, children: value })
|
|
54371
54529
|
},
|
|
54372
54530
|
description: {
|
|
54373
54531
|
field: PRODUCT_FIELD_DESCRIPTION,
|
|
@@ -54382,12 +54540,12 @@ var WfoProductsPage = () => {
|
|
|
54382
54540
|
field: PRODUCT_FIELD_STATUS,
|
|
54383
54541
|
name: t("status"),
|
|
54384
54542
|
width: "90",
|
|
54385
|
-
render: (value) => /* @__PURE__ */
|
|
54543
|
+
render: (value) => /* @__PURE__ */ jsx141(WfoProductStatusBadge, { status: value })
|
|
54386
54544
|
},
|
|
54387
54545
|
fixedInputs: {
|
|
54388
54546
|
field: PRODUCT_FIELD_FIXED_INPUTS,
|
|
54389
54547
|
name: t("fixedInputs"),
|
|
54390
|
-
render: (fixedInputs) => /* @__PURE__ */
|
|
54548
|
+
render: (fixedInputs) => /* @__PURE__ */ jsx141(Fragment29, { children: fixedInputs.map((fixedInput, index) => /* @__PURE__ */ jsx141(
|
|
54391
54549
|
WfoProductBlockBadge,
|
|
54392
54550
|
{
|
|
54393
54551
|
badgeType: "fixed_input" /* FIXED_INPUT */,
|
|
@@ -54399,7 +54557,7 @@ var WfoProductsPage = () => {
|
|
|
54399
54557
|
productBlocks: {
|
|
54400
54558
|
field: PRODUCT_FIELD_PRODUCT_BLOCKS,
|
|
54401
54559
|
name: t("productBlocks"),
|
|
54402
|
-
render: (productBlocks) => /* @__PURE__ */
|
|
54560
|
+
render: (productBlocks) => /* @__PURE__ */ jsx141(Fragment29, { children: productBlocks.map((block, index) => /* @__PURE__ */ jsx141(
|
|
54403
54561
|
WfoProductBlockBadge,
|
|
54404
54562
|
{
|
|
54405
54563
|
badgeType: "product_block" /* PRODUCT_BLOCK */,
|
|
@@ -54411,7 +54569,7 @@ var WfoProductsPage = () => {
|
|
|
54411
54569
|
createdAt: {
|
|
54412
54570
|
field: PRODUCT_FIELD_CREATED_AT,
|
|
54413
54571
|
name: t("createdAt"),
|
|
54414
|
-
render: (date) => /* @__PURE__ */
|
|
54572
|
+
render: (date) => /* @__PURE__ */ jsx141(WfoDateTime, { dateOrIsoString: date }),
|
|
54415
54573
|
renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
|
|
54416
54574
|
clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
|
|
54417
54575
|
}
|
|
@@ -54444,7 +54602,7 @@ var WfoProductsPage = () => {
|
|
|
54444
54602
|
field: (_c = sortBy == null ? void 0 : sortBy.field) != null ? _c : PRODUCT_FIELD_NAME,
|
|
54445
54603
|
sortOrder: (_d = sortBy == null ? void 0 : sortBy.order) != null ? _d : "ASC" /* ASC */
|
|
54446
54604
|
};
|
|
54447
|
-
return /* @__PURE__ */
|
|
54605
|
+
return /* @__PURE__ */ jsx141(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx141(
|
|
54448
54606
|
WfoTableWithFilter,
|
|
54449
54607
|
{
|
|
54450
54608
|
data: data ? data.products.page : [],
|
|
@@ -54554,7 +54712,7 @@ var graphQlWorkflowListMapper = ({
|
|
|
54554
54712
|
});
|
|
54555
54713
|
|
|
54556
54714
|
// src/pages/metadata/WfoWorkflowsPage.tsx
|
|
54557
|
-
import { Fragment as Fragment30, jsx as
|
|
54715
|
+
import { Fragment as Fragment30, jsx as jsx142 } from "@emotion/react/jsx-runtime";
|
|
54558
54716
|
var WfoWorkflowsPage = () => {
|
|
54559
54717
|
var _a, _b, _c;
|
|
54560
54718
|
const t = useTranslations40("metadata.workflows");
|
|
@@ -54586,7 +54744,7 @@ var WfoWorkflowsPage = () => {
|
|
|
54586
54744
|
field: "name",
|
|
54587
54745
|
name: t("name"),
|
|
54588
54746
|
width: "200",
|
|
54589
|
-
render: (name) => /* @__PURE__ */
|
|
54747
|
+
render: (name) => /* @__PURE__ */ jsx142(WfoProductBlockBadge, { badgeType: "workflow" /* WORKFLOW */, children: name })
|
|
54590
54748
|
},
|
|
54591
54749
|
description: {
|
|
54592
54750
|
field: "description",
|
|
@@ -54597,12 +54755,12 @@ var WfoWorkflowsPage = () => {
|
|
|
54597
54755
|
field: "target",
|
|
54598
54756
|
name: t("target"),
|
|
54599
54757
|
width: "90",
|
|
54600
|
-
render: (target) => /* @__PURE__ */
|
|
54758
|
+
render: (target) => /* @__PURE__ */ jsx142(WfoWorkflowTargetBadge, { target })
|
|
54601
54759
|
},
|
|
54602
54760
|
productTags: {
|
|
54603
54761
|
field: "productTags",
|
|
54604
54762
|
name: t("productTags"),
|
|
54605
|
-
render: (productTags) => /* @__PURE__ */
|
|
54763
|
+
render: (productTags) => /* @__PURE__ */ jsx142(Fragment30, { children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx142(
|
|
54606
54764
|
WfoProductBlockBadge,
|
|
54607
54765
|
{
|
|
54608
54766
|
badgeType: "product_tag" /* PRODUCT_TAG */,
|
|
@@ -54610,7 +54768,7 @@ var WfoWorkflowsPage = () => {
|
|
|
54610
54768
|
},
|
|
54611
54769
|
index
|
|
54612
54770
|
)) }),
|
|
54613
|
-
renderDetails: (productTags) => /* @__PURE__ */
|
|
54771
|
+
renderDetails: (productTags) => /* @__PURE__ */ jsx142(EuiBadgeGroup4, { gutterSize: "s", children: productTags == null ? void 0 : productTags.map((productTag, index) => /* @__PURE__ */ jsx142(
|
|
54614
54772
|
WfoProductBlockBadge,
|
|
54615
54773
|
{
|
|
54616
54774
|
badgeType: "product_tag" /* PRODUCT_TAG */,
|
|
@@ -54623,7 +54781,7 @@ var WfoWorkflowsPage = () => {
|
|
|
54623
54781
|
field: "createdAt",
|
|
54624
54782
|
name: t("createdAt"),
|
|
54625
54783
|
width: "110",
|
|
54626
|
-
render: (date) => /* @__PURE__ */
|
|
54784
|
+
render: (date) => /* @__PURE__ */ jsx142(WfoDateTime, { dateOrIsoString: date }),
|
|
54627
54785
|
renderDetails: parseIsoString(parseDateToLocaleDateTimeString),
|
|
54628
54786
|
clipboardText: parseIsoString(parseDateToLocaleDateTimeString)
|
|
54629
54787
|
}
|
|
@@ -54656,7 +54814,7 @@ var WfoWorkflowsPage = () => {
|
|
|
54656
54814
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
54657
54815
|
totalItemCount: totalItems ? totalItems : 0
|
|
54658
54816
|
};
|
|
54659
|
-
return /* @__PURE__ */
|
|
54817
|
+
return /* @__PURE__ */ jsx142(WfoMetadataPageLayout, { children: /* @__PURE__ */ jsx142(
|
|
54660
54818
|
WfoTableWithFilter,
|
|
54661
54819
|
{
|
|
54662
54820
|
data: data ? mapWorkflowDefinitionToWorkflowListItem(data) : [],
|
|
@@ -54698,7 +54856,7 @@ var WfoWorkflowsPage = () => {
|
|
|
54698
54856
|
// src/pages/processes/WfoProcessListSubscriptionsCell.tsx
|
|
54699
54857
|
import Link3 from "next/link";
|
|
54700
54858
|
import { EuiFlexGroup as EuiFlexGroup17 } from "@elastic/eui";
|
|
54701
|
-
import { Fragment as Fragment31, jsx as
|
|
54859
|
+
import { Fragment as Fragment31, jsx as jsx143, jsxs as jsxs83 } from "@emotion/react/jsx-runtime";
|
|
54702
54860
|
var RENDER_ALL = "RENDER_ALL";
|
|
54703
54861
|
var RenderDirection = /* @__PURE__ */ ((RenderDirection2) => {
|
|
54704
54862
|
RenderDirection2["HORIZONTAL"] = "HORIZONTAL";
|
|
@@ -54716,13 +54874,13 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
54716
54874
|
}
|
|
54717
54875
|
const visibleSubscriptions = numberOfSubscriptionsToRender === RENDER_ALL ? subscriptions : subscriptions.slice(0, numberOfSubscriptionsToRender);
|
|
54718
54876
|
const numberOfNotVisibleSubscriptions = length - visibleSubscriptions.length;
|
|
54719
|
-
return /* @__PURE__ */
|
|
54877
|
+
return /* @__PURE__ */ jsx143(Fragment31, { children: /* @__PURE__ */ jsxs83(
|
|
54720
54878
|
EuiFlexGroup17,
|
|
54721
54879
|
{
|
|
54722
54880
|
direction: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "row" : "column",
|
|
54723
54881
|
gutterSize: renderDirection === "HORIZONTAL" /* HORIZONTAL */ ? "m" : "xs",
|
|
54724
54882
|
children: [
|
|
54725
|
-
visibleSubscriptions.map((subscription) => /* @__PURE__ */
|
|
54883
|
+
visibleSubscriptions.map((subscription) => /* @__PURE__ */ jsx143(
|
|
54726
54884
|
Link3,
|
|
54727
54885
|
{
|
|
54728
54886
|
href: `/subscriptions/${subscription.subscriptionId}`,
|
|
@@ -54734,7 +54892,7 @@ var WfoProcessListSubscriptionsCell = ({
|
|
|
54734
54892
|
},
|
|
54735
54893
|
subscription.subscriptionId
|
|
54736
54894
|
)),
|
|
54737
|
-
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */
|
|
54895
|
+
numberOfNotVisibleSubscriptions > 0 && /* @__PURE__ */ jsx143("span", { children: `(+${numberOfNotVisibleSubscriptions})` })
|
|
54738
54896
|
]
|
|
54739
54897
|
}
|
|
54740
54898
|
) });
|
|
@@ -54851,26 +55009,26 @@ var getStyles12 = (theme) => {
|
|
|
54851
55009
|
};
|
|
54852
55010
|
|
|
54853
55011
|
// src/components/WfoWorkflowSteps/WfoStepStatusIcon/WfoStepStatusIcon.tsx
|
|
54854
|
-
import { jsx as
|
|
55012
|
+
import { jsx as jsx144, jsxs as jsxs84 } from "@emotion/react/jsx-runtime";
|
|
54855
55013
|
var SubIcon = ({ stepStatus, color = "" }) => {
|
|
54856
55014
|
switch (stepStatus) {
|
|
54857
55015
|
case "suspend" /* SUSPEND */:
|
|
54858
|
-
return /* @__PURE__ */
|
|
55016
|
+
return /* @__PURE__ */ jsx144(WfoMinusCircleFill, { color });
|
|
54859
55017
|
case "failed" /* FAILED */:
|
|
54860
|
-
return /* @__PURE__ */
|
|
55018
|
+
return /* @__PURE__ */ jsx144(WfoXCircleFill, { color });
|
|
54861
55019
|
default:
|
|
54862
|
-
return /* @__PURE__ */
|
|
55020
|
+
return /* @__PURE__ */ jsx144(WfoCheckmarkCircleFill, { color });
|
|
54863
55021
|
}
|
|
54864
55022
|
};
|
|
54865
55023
|
var MainIcon = ({ stepStatus, color = "", isStartStep }) => {
|
|
54866
55024
|
if (isStartStep) {
|
|
54867
|
-
return /* @__PURE__ */
|
|
55025
|
+
return /* @__PURE__ */ jsx144(WfoPlayFill, { color });
|
|
54868
55026
|
}
|
|
54869
55027
|
switch (stepStatus) {
|
|
54870
55028
|
case "form" /* FORM */:
|
|
54871
|
-
return /* @__PURE__ */
|
|
55029
|
+
return /* @__PURE__ */ jsx144(WfoPencilAlt, { color });
|
|
54872
55030
|
default:
|
|
54873
|
-
return /* @__PURE__ */
|
|
55031
|
+
return /* @__PURE__ */ jsx144(WfoCogFill, { color, width: 16, height: 16 });
|
|
54874
55032
|
}
|
|
54875
55033
|
};
|
|
54876
55034
|
var WfoStepStatusIcon = ({
|
|
@@ -54914,7 +55072,7 @@ var WfoStepStatusIcon = ({
|
|
|
54914
55072
|
}
|
|
54915
55073
|
})();
|
|
54916
55074
|
return /* @__PURE__ */ jsxs84(EuiFlexItem23, { css: { flexDirection: "row" }, grow: 0, children: [
|
|
54917
|
-
/* @__PURE__ */
|
|
55075
|
+
/* @__PURE__ */ jsx144("div", { css: stepStateStyle, children: /* @__PURE__ */ jsx144(
|
|
54918
55076
|
MainIcon,
|
|
54919
55077
|
{
|
|
54920
55078
|
color: mainIconColor,
|
|
@@ -54922,7 +55080,7 @@ var WfoStepStatusIcon = ({
|
|
|
54922
55080
|
isStartStep
|
|
54923
55081
|
}
|
|
54924
55082
|
) }),
|
|
54925
|
-
/* @__PURE__ */
|
|
55083
|
+
/* @__PURE__ */ jsx144(
|
|
54926
55084
|
"div",
|
|
54927
55085
|
{
|
|
54928
55086
|
css: {
|
|
@@ -54930,7 +55088,7 @@ var WfoStepStatusIcon = ({
|
|
|
54930
55088
|
width: `${theme.base}`,
|
|
54931
55089
|
visibility: hasSubIcon ? "visible" : "hidden"
|
|
54932
55090
|
},
|
|
54933
|
-
children: /* @__PURE__ */
|
|
55091
|
+
children: /* @__PURE__ */ jsx144(SubIcon, { color: subIconColor, stepStatus })
|
|
54934
55092
|
}
|
|
54935
55093
|
)
|
|
54936
55094
|
] });
|
|
@@ -54960,7 +55118,7 @@ var getStepContent = (stepDelta, showHiddenKeys) => {
|
|
|
54960
55118
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx
|
|
54961
55119
|
import { useState as useState32 } from "react";
|
|
54962
55120
|
import { EuiFlexItem as EuiFlexItem24 } from "@elastic/eui";
|
|
54963
|
-
import { jsx as
|
|
55121
|
+
import { jsx as jsx145 } from "@emotion/react/jsx-runtime";
|
|
54964
55122
|
var WfoStepForm = ({
|
|
54965
55123
|
userInputForm,
|
|
54966
55124
|
isTask,
|
|
@@ -54977,7 +55135,7 @@ var WfoStepForm = ({
|
|
|
54977
55135
|
setIsProcessing(true);
|
|
54978
55136
|
});
|
|
54979
55137
|
};
|
|
54980
|
-
return /* @__PURE__ */
|
|
55138
|
+
return /* @__PURE__ */ jsx145(EuiFlexItem24, { css: { margin: theme.size.m }, children: isProcessing && /* @__PURE__ */ jsx145(WfoLoading, {}) || /* @__PURE__ */ jsx145(
|
|
54981
55139
|
UserInputFormWizard,
|
|
54982
55140
|
{
|
|
54983
55141
|
stepUserInput: userInputForm,
|
|
@@ -54990,7 +55148,7 @@ var WfoStepForm = ({
|
|
|
54990
55148
|
};
|
|
54991
55149
|
|
|
54992
55150
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
54993
|
-
import { Fragment as Fragment32, jsx as
|
|
55151
|
+
import { Fragment as Fragment32, jsx as jsx146, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
54994
55152
|
var WfoStep = React42.forwardRef(
|
|
54995
55153
|
({
|
|
54996
55154
|
stepListItem,
|
|
@@ -55022,28 +55180,28 @@ var WfoStep = React42.forwardRef(
|
|
|
55022
55180
|
return "";
|
|
55023
55181
|
}
|
|
55024
55182
|
return /* @__PURE__ */ jsxs85(EuiText29, { size: "s", children: [
|
|
55025
|
-
/* @__PURE__ */
|
|
55026
|
-
/* @__PURE__ */
|
|
55183
|
+
/* @__PURE__ */ jsx146("h4", { children: "To" }),
|
|
55184
|
+
/* @__PURE__ */ jsx146("p", { children: value.to.map(
|
|
55027
55185
|
(v, i) => /* @__PURE__ */ jsxs85("div", { children: [
|
|
55028
55186
|
v.name,
|
|
55029
55187
|
" <",
|
|
55030
|
-
/* @__PURE__ */
|
|
55188
|
+
/* @__PURE__ */ jsx146("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
55031
55189
|
">"
|
|
55032
55190
|
] }, `to-${i}`)
|
|
55033
55191
|
) }),
|
|
55034
|
-
/* @__PURE__ */
|
|
55035
|
-
/* @__PURE__ */
|
|
55192
|
+
/* @__PURE__ */ jsx146("h4", { children: "CC" }),
|
|
55193
|
+
/* @__PURE__ */ jsx146("p", { children: value.cc.map(
|
|
55036
55194
|
(v, i) => /* @__PURE__ */ jsxs85("div", { children: [
|
|
55037
55195
|
v.name,
|
|
55038
55196
|
" <",
|
|
55039
|
-
/* @__PURE__ */
|
|
55197
|
+
/* @__PURE__ */ jsx146("a", { href: `mailto: ${v.email}`, children: v.email }),
|
|
55040
55198
|
">"
|
|
55041
55199
|
] }, `cc-${i}`)
|
|
55042
55200
|
) }),
|
|
55043
|
-
/* @__PURE__ */
|
|
55044
|
-
/* @__PURE__ */
|
|
55045
|
-
/* @__PURE__ */
|
|
55046
|
-
/* @__PURE__ */
|
|
55201
|
+
/* @__PURE__ */ jsx146("h4", { children: "Subject" }),
|
|
55202
|
+
/* @__PURE__ */ jsx146("p", { children: value.subject }),
|
|
55203
|
+
/* @__PURE__ */ jsx146("h4", { children: "Message" }),
|
|
55204
|
+
/* @__PURE__ */ jsx146(
|
|
55047
55205
|
"div",
|
|
55048
55206
|
{
|
|
55049
55207
|
className: "emailMessage",
|
|
@@ -55052,14 +55210,14 @@ var WfoStep = React42.forwardRef(
|
|
|
55052
55210
|
)
|
|
55053
55211
|
] });
|
|
55054
55212
|
};
|
|
55055
|
-
return /* @__PURE__ */
|
|
55213
|
+
return /* @__PURE__ */ jsx146("div", { ref, children: /* @__PURE__ */ jsxs85(EuiPanel4, { children: [
|
|
55056
55214
|
/* @__PURE__ */ jsxs85(
|
|
55057
55215
|
EuiFlexGroup18,
|
|
55058
55216
|
{
|
|
55059
55217
|
css: getStepHeaderStyle(hasStepContent),
|
|
55060
55218
|
onClick: () => hasStepContent && onToggleStepDetail(),
|
|
55061
55219
|
children: [
|
|
55062
|
-
/* @__PURE__ */
|
|
55220
|
+
/* @__PURE__ */ jsx146(
|
|
55063
55221
|
WfoStepStatusIcon,
|
|
55064
55222
|
{
|
|
55065
55223
|
stepStatus: step.status,
|
|
@@ -55067,47 +55225,47 @@ var WfoStep = React42.forwardRef(
|
|
|
55067
55225
|
}
|
|
55068
55226
|
),
|
|
55069
55227
|
/* @__PURE__ */ jsxs85(EuiFlexItem25, { grow: 0, children: [
|
|
55070
|
-
/* @__PURE__ */
|
|
55228
|
+
/* @__PURE__ */ jsx146(EuiText29, { css: stepListContentBoldTextStyle, children: step.name }),
|
|
55071
55229
|
/* @__PURE__ */ jsxs85(EuiText29, { children: [
|
|
55072
55230
|
step.status,
|
|
55073
55231
|
" ",
|
|
55074
55232
|
step.executed && `- ${formatDate(step.executed)}`
|
|
55075
55233
|
] })
|
|
55076
55234
|
] }),
|
|
55077
|
-
/* @__PURE__ */
|
|
55235
|
+
/* @__PURE__ */ jsx146(EuiFlexGroup18, { css: stepRowStyle, children: step.executed && /* @__PURE__ */ jsxs85(Fragment32, { children: [
|
|
55078
55236
|
/* @__PURE__ */ jsxs85(
|
|
55079
55237
|
EuiFlexItem25,
|
|
55080
55238
|
{
|
|
55081
55239
|
grow: 0,
|
|
55082
55240
|
css: stepHeaderRightStyle,
|
|
55083
55241
|
children: [
|
|
55084
|
-
/* @__PURE__ */
|
|
55085
|
-
/* @__PURE__ */
|
|
55242
|
+
/* @__PURE__ */ jsx146(EuiText29, { css: stepDurationStyle, children: t("duration") }),
|
|
55243
|
+
/* @__PURE__ */ jsx146(EuiText29, { size: "m", children: calculateTimeDifference(
|
|
55086
55244
|
startedAt,
|
|
55087
55245
|
step.executed
|
|
55088
55246
|
) })
|
|
55089
55247
|
]
|
|
55090
55248
|
}
|
|
55091
55249
|
),
|
|
55092
|
-
/* @__PURE__ */
|
|
55250
|
+
/* @__PURE__ */ jsx146(
|
|
55093
55251
|
EuiFlexItem25,
|
|
55094
55252
|
{
|
|
55095
55253
|
grow: 0,
|
|
55096
55254
|
css: getStepToggleExpandStyle(
|
|
55097
55255
|
hasStepContent
|
|
55098
55256
|
),
|
|
55099
|
-
children: isExpanded && /* @__PURE__ */
|
|
55257
|
+
children: isExpanded && /* @__PURE__ */ jsx146(WfoChevronUp, {}) || /* @__PURE__ */ jsx146(WfoChevronDown, {})
|
|
55100
55258
|
}
|
|
55101
55259
|
)
|
|
55102
55260
|
] }) })
|
|
55103
55261
|
]
|
|
55104
55262
|
}
|
|
55105
55263
|
),
|
|
55106
|
-
hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */
|
|
55107
|
-
isExpanded && hasHtmlMail && /* @__PURE__ */
|
|
55264
|
+
hasStepContent && !hasHtmlMail && isExpanded && /* @__PURE__ */ jsx146(WfoJsonCodeBlock, { data: stepContent }),
|
|
55265
|
+
isExpanded && hasHtmlMail && /* @__PURE__ */ jsx146("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(
|
|
55108
55266
|
step.stateDelta.confirmation_mail
|
|
55109
55267
|
) }),
|
|
55110
|
-
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */
|
|
55268
|
+
step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx146(
|
|
55111
55269
|
WfoStepForm,
|
|
55112
55270
|
{
|
|
55113
55271
|
userInputForm,
|
|
@@ -55122,7 +55280,7 @@ WfoStep.displayName = "WfoStep";
|
|
|
55122
55280
|
|
|
55123
55281
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
55124
55282
|
import React43, { useImperativeHandle, useRef as useRef6 } from "react";
|
|
55125
|
-
import { Fragment as Fragment33, jsx as
|
|
55283
|
+
import { Fragment as Fragment33, jsx as jsx147, jsxs as jsxs86 } from "@emotion/react/jsx-runtime";
|
|
55126
55284
|
var WfoStepList = React43.forwardRef(
|
|
55127
55285
|
({
|
|
55128
55286
|
stepListItems,
|
|
@@ -55164,10 +55322,10 @@ var WfoStepList = React43.forwardRef(
|
|
|
55164
55322
|
})
|
|
55165
55323
|
}));
|
|
55166
55324
|
const getReferenceCallbackForStepId = (stepId) => (node) => node ? stepReferences.current.set(stepId, node) : stepReferences.current.delete(stepId);
|
|
55167
|
-
return /* @__PURE__ */
|
|
55325
|
+
return /* @__PURE__ */ jsx147(Fragment33, { children: stepListItems.map((stepListItem, index) => {
|
|
55168
55326
|
const stepComponent = /* @__PURE__ */ jsxs86("div", { children: [
|
|
55169
|
-
index !== 0 && /* @__PURE__ */
|
|
55170
|
-
/* @__PURE__ */
|
|
55327
|
+
index !== 0 && /* @__PURE__ */ jsx147("div", { css: stepSpacerStyle }),
|
|
55328
|
+
/* @__PURE__ */ jsx147(
|
|
55171
55329
|
WfoStep,
|
|
55172
55330
|
{
|
|
55173
55331
|
ref: getReferenceCallbackForStepId(
|
|
@@ -55211,7 +55369,7 @@ import {
|
|
|
55211
55369
|
EuiSpacer as EuiSpacer15,
|
|
55212
55370
|
EuiText as EuiText30
|
|
55213
55371
|
} from "@elastic/eui";
|
|
55214
|
-
import { jsx as
|
|
55372
|
+
import { jsx as jsx148, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
|
|
55215
55373
|
var EMPTY_HUNKS = [];
|
|
55216
55374
|
var SMALL_CONTEXT = 3;
|
|
55217
55375
|
var FULL_CONTEXT = 1e6;
|
|
@@ -55250,8 +55408,8 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
55250
55408
|
}, [updateDiffText, showFull]);
|
|
55251
55409
|
return /* @__PURE__ */ jsxs87("div", { children: [
|
|
55252
55410
|
/* @__PURE__ */ jsxs87(EuiFlexGroup19, { gutterSize: "xs", children: [
|
|
55253
|
-
/* @__PURE__ */
|
|
55254
|
-
/* @__PURE__ */
|
|
55411
|
+
/* @__PURE__ */ jsx148(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx148(EuiText30, { children: /* @__PURE__ */ jsx148("h3", { children: t("title") }) }) }),
|
|
55412
|
+
/* @__PURE__ */ jsx148(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx148(
|
|
55255
55413
|
EuiButtonIcon4,
|
|
55256
55414
|
{
|
|
55257
55415
|
size: "s",
|
|
@@ -55259,7 +55417,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
55259
55417
|
onClick: () => setShowSplit(!showSplit)
|
|
55260
55418
|
}
|
|
55261
55419
|
) }),
|
|
55262
|
-
/* @__PURE__ */
|
|
55420
|
+
/* @__PURE__ */ jsx148(EuiFlexItem26, { grow: false, children: /* @__PURE__ */ jsx148(
|
|
55263
55421
|
EuiButtonIcon4,
|
|
55264
55422
|
{
|
|
55265
55423
|
size: "s",
|
|
@@ -55268,15 +55426,15 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
55268
55426
|
}
|
|
55269
55427
|
) })
|
|
55270
55428
|
] }),
|
|
55271
|
-
/* @__PURE__ */
|
|
55272
|
-
/* @__PURE__ */
|
|
55429
|
+
/* @__PURE__ */ jsx148(EuiSpacer15, {}),
|
|
55430
|
+
/* @__PURE__ */ jsx148(
|
|
55273
55431
|
Diff,
|
|
55274
55432
|
{
|
|
55275
55433
|
viewType: showSplit ? "split" : "unified",
|
|
55276
55434
|
diffType: type,
|
|
55277
55435
|
hunks: hunks || EMPTY_HUNKS,
|
|
55278
55436
|
tokens,
|
|
55279
|
-
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */
|
|
55437
|
+
children: (hunks2) => hunks2.map((hunk) => /* @__PURE__ */ jsx148(Hunk, { hunk }, hunk.content))
|
|
55280
55438
|
}
|
|
55281
55439
|
)
|
|
55282
55440
|
] });
|
|
@@ -55316,14 +55474,14 @@ var getStyles13 = (theme) => {
|
|
|
55316
55474
|
};
|
|
55317
55475
|
|
|
55318
55476
|
// src/components/WfoTextAnchor/WfoTextAnchor.tsx
|
|
55319
|
-
import { jsx as
|
|
55477
|
+
import { jsx as jsx149 } from "@emotion/react/jsx-runtime";
|
|
55320
55478
|
var WfoTextAnchor = ({ text, onClick }) => {
|
|
55321
55479
|
const { textAnchorStyle } = useWithOrchestratorTheme(getStyles13);
|
|
55322
|
-
return /* @__PURE__ */
|
|
55480
|
+
return /* @__PURE__ */ jsx149(EuiText31, { onClick, css: textAnchorStyle, children: text });
|
|
55323
55481
|
};
|
|
55324
55482
|
|
|
55325
55483
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
|
|
55326
|
-
import { jsx as
|
|
55484
|
+
import { jsx as jsx150, jsxs as jsxs88 } from "@emotion/react/jsx-runtime";
|
|
55327
55485
|
var WfoStepListHeader = ({
|
|
55328
55486
|
showHiddenKeys,
|
|
55329
55487
|
showRaw,
|
|
@@ -55346,11 +55504,11 @@ var WfoStepListHeader = ({
|
|
|
55346
55504
|
const [isViewOptionOpen, setIsViewOptionOpen] = useState34(false);
|
|
55347
55505
|
const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
|
|
55348
55506
|
const closeViewOption = () => setIsViewOptionOpen(false);
|
|
55349
|
-
const viewOptionButton = /* @__PURE__ */
|
|
55507
|
+
const viewOptionButton = /* @__PURE__ */ jsx150(
|
|
55350
55508
|
EuiButton10,
|
|
55351
55509
|
{
|
|
55352
55510
|
onClick: onViewOptionClick,
|
|
55353
|
-
iconType: () => /* @__PURE__ */
|
|
55511
|
+
iconType: () => /* @__PURE__ */ jsx150(WfoEyeFill, { color: theme.colors.link }),
|
|
55354
55512
|
iconSide: "right",
|
|
55355
55513
|
size: "s",
|
|
55356
55514
|
children: t("viewOptions")
|
|
@@ -55358,8 +55516,8 @@ var WfoStepListHeader = ({
|
|
|
55358
55516
|
);
|
|
55359
55517
|
return /* @__PURE__ */ jsxs88(EuiFlexGroup20, { css: stepListHeaderStyle, children: [
|
|
55360
55518
|
/* @__PURE__ */ jsxs88(EuiFlexGroup20, { css: stepListContentStyle, children: [
|
|
55361
|
-
/* @__PURE__ */
|
|
55362
|
-
!showRaw && /* @__PURE__ */
|
|
55519
|
+
/* @__PURE__ */ jsx150(EuiText32, { css: stepListContentBoldTextStyle, children: t(isTask ? "taskSteps" : "workflowSteps") }),
|
|
55520
|
+
!showRaw && /* @__PURE__ */ jsx150(
|
|
55363
55521
|
WfoTextAnchor,
|
|
55364
55522
|
{
|
|
55365
55523
|
text: allDetailToggleText,
|
|
@@ -55375,25 +55533,25 @@ var WfoStepListHeader = ({
|
|
|
55375
55533
|
css: stepListOptionsContainerStyle,
|
|
55376
55534
|
gutterSize: "s",
|
|
55377
55535
|
children: [
|
|
55378
|
-
!showRaw && /* @__PURE__ */
|
|
55536
|
+
!showRaw && /* @__PURE__ */ jsx150(
|
|
55379
55537
|
EuiButton10,
|
|
55380
55538
|
{
|
|
55381
55539
|
onClick: () => onChangeShowDelta(!showDelta),
|
|
55382
55540
|
iconSide: "right",
|
|
55383
55541
|
size: "s",
|
|
55384
|
-
iconType: () => /* @__PURE__ */
|
|
55542
|
+
iconType: () => /* @__PURE__ */ jsx150(WfoCode, { color: theme.colors.link }),
|
|
55385
55543
|
children: showDelta ? t("hideDelta") : t("showDelta")
|
|
55386
55544
|
}
|
|
55387
55545
|
),
|
|
55388
|
-
/* @__PURE__ */
|
|
55546
|
+
/* @__PURE__ */ jsx150(
|
|
55389
55547
|
EuiPopover5,
|
|
55390
55548
|
{
|
|
55391
55549
|
button: viewOptionButton,
|
|
55392
55550
|
isOpen: isViewOptionOpen,
|
|
55393
55551
|
closePopover: closeViewOption,
|
|
55394
55552
|
display: "block",
|
|
55395
|
-
children: /* @__PURE__ */
|
|
55396
|
-
/* @__PURE__ */
|
|
55553
|
+
children: /* @__PURE__ */ jsx150("div", { children: /* @__PURE__ */ jsxs88(EuiForm2, { component: "form", children: [
|
|
55554
|
+
/* @__PURE__ */ jsx150(EuiFormRow20, { children: /* @__PURE__ */ jsx150(
|
|
55397
55555
|
EuiSwitch3,
|
|
55398
55556
|
{
|
|
55399
55557
|
label: "Hidden keys",
|
|
@@ -55406,7 +55564,7 @@ var WfoStepListHeader = ({
|
|
|
55406
55564
|
}
|
|
55407
55565
|
}
|
|
55408
55566
|
) }),
|
|
55409
|
-
/* @__PURE__ */
|
|
55567
|
+
/* @__PURE__ */ jsx150(EuiFormRow20, { children: /* @__PURE__ */ jsx150(
|
|
55410
55568
|
EuiSwitch3,
|
|
55411
55569
|
{
|
|
55412
55570
|
label: "Raw JSON data",
|
|
@@ -55427,10 +55585,10 @@ var WfoStepListHeader = ({
|
|
|
55427
55585
|
};
|
|
55428
55586
|
|
|
55429
55587
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
55430
|
-
import { Fragment as Fragment34, jsx as
|
|
55588
|
+
import { Fragment as Fragment34, jsx as jsx151, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
55431
55589
|
var WfoProcessRawData = ({ processId }) => {
|
|
55432
55590
|
const { data, isFetching } = useRawProcessDetails(processId);
|
|
55433
|
-
return isFetching ? /* @__PURE__ */
|
|
55591
|
+
return isFetching ? /* @__PURE__ */ jsx151(WfoLoading, {}) : /* @__PURE__ */ jsx151(WfoJsonCodeBlock, { data: data || {} });
|
|
55434
55592
|
};
|
|
55435
55593
|
var WfoProcessSubscriptionDelta = ({
|
|
55436
55594
|
processId
|
|
@@ -55440,7 +55598,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
55440
55598
|
const subscriptionKey = (_c = (_b = (_a = data == null ? void 0 : data.current_state) == null ? void 0 : _a.subscription) == null ? void 0 : _b.subscription_id) != null ? _c : "";
|
|
55441
55599
|
const newText = (_e = (_d = data == null ? void 0 : data.current_state) == null ? void 0 : _d.subscription) != null ? _e : null;
|
|
55442
55600
|
const oldText = ((_f = data == null ? void 0 : data.current_state) == null ? void 0 : _f.__old_subscriptions__) && subscriptionKey in ((_g = data == null ? void 0 : data.current_state) == null ? void 0 : _g.__old_subscriptions__) ? (_h = data == null ? void 0 : data.current_state) == null ? void 0 : _h.__old_subscriptions__[subscriptionKey] : null;
|
|
55443
|
-
return isFetching ? /* @__PURE__ */
|
|
55601
|
+
return isFetching ? /* @__PURE__ */ jsx151(WfoLoading, {}) : /* @__PURE__ */ jsx151(
|
|
55444
55602
|
WfoDiff_default,
|
|
55445
55603
|
{
|
|
55446
55604
|
oldText: oldText ? JSON.stringify(oldText, null, 2) : "",
|
|
@@ -55514,7 +55672,7 @@ var WfoWorkflowStepList = React46.forwardRef(
|
|
|
55514
55672
|
isExpanded: true
|
|
55515
55673
|
}));
|
|
55516
55674
|
return /* @__PURE__ */ jsxs89(Fragment34, { children: [
|
|
55517
|
-
/* @__PURE__ */
|
|
55675
|
+
/* @__PURE__ */ jsx151(
|
|
55518
55676
|
WfoStepListHeader,
|
|
55519
55677
|
{
|
|
55520
55678
|
showHiddenKeys,
|
|
@@ -55528,9 +55686,9 @@ var WfoWorkflowStepList = React46.forwardRef(
|
|
|
55528
55686
|
isTask
|
|
55529
55687
|
}
|
|
55530
55688
|
),
|
|
55531
|
-
showRaw && /* @__PURE__ */
|
|
55532
|
-
showDelta && /* @__PURE__ */
|
|
55533
|
-
!showRaw && !showDelta && /* @__PURE__ */
|
|
55689
|
+
showRaw && /* @__PURE__ */ jsx151(WfoProcessRawData, { processId }),
|
|
55690
|
+
showDelta && /* @__PURE__ */ jsx151(WfoProcessSubscriptionDelta, { processId }),
|
|
55691
|
+
!showRaw && !showDelta && /* @__PURE__ */ jsx151(
|
|
55534
55692
|
WfoStepList,
|
|
55535
55693
|
{
|
|
55536
55694
|
ref: reference,
|
|
@@ -55637,7 +55795,7 @@ var getIndexOfCurrentStep = (timelineItems) => {
|
|
|
55637
55795
|
};
|
|
55638
55796
|
|
|
55639
55797
|
// src/pages/processes/WfoProcessDetail.tsx
|
|
55640
|
-
import { Fragment as Fragment35, jsx as
|
|
55798
|
+
import { Fragment as Fragment35, jsx as jsx152, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
55641
55799
|
var ProcessHeaderValue = ({
|
|
55642
55800
|
translationKey,
|
|
55643
55801
|
value = ""
|
|
@@ -55655,8 +55813,8 @@ var ProcessHeaderValue = ({
|
|
|
55655
55813
|
overflow: "hidden"
|
|
55656
55814
|
},
|
|
55657
55815
|
children: [
|
|
55658
|
-
/* @__PURE__ */
|
|
55659
|
-
/* @__PURE__ */
|
|
55816
|
+
/* @__PURE__ */ jsx152(EuiText33, { size: "xs", children: t(translationKey) }),
|
|
55817
|
+
/* @__PURE__ */ jsx152(
|
|
55660
55818
|
EuiText33,
|
|
55661
55819
|
{
|
|
55662
55820
|
css: {
|
|
@@ -55745,9 +55903,9 @@ var WfoProcessDetail = ({
|
|
|
55745
55903
|
return /* @__PURE__ */ jsxs90(Fragment35, { children: [
|
|
55746
55904
|
/* @__PURE__ */ jsxs90(EuiFlexGroup21, { children: [
|
|
55747
55905
|
/* @__PURE__ */ jsxs90(EuiFlexItem27, { children: [
|
|
55748
|
-
/* @__PURE__ */
|
|
55749
|
-
/* @__PURE__ */
|
|
55750
|
-
/* @__PURE__ */
|
|
55906
|
+
/* @__PURE__ */ jsx152(EuiPageHeader3, { pageTitle }),
|
|
55907
|
+
/* @__PURE__ */ jsx152(EuiSpacer16, {}),
|
|
55908
|
+
/* @__PURE__ */ jsx152(EuiText33, { size: "s", children: productNames })
|
|
55751
55909
|
] }),
|
|
55752
55910
|
/* @__PURE__ */ jsxs90(
|
|
55753
55911
|
EuiFlexGroup21,
|
|
@@ -55757,11 +55915,11 @@ var WfoProcessDetail = ({
|
|
|
55757
55915
|
css: { flexGrow: 0 },
|
|
55758
55916
|
gutterSize: "s",
|
|
55759
55917
|
children: [
|
|
55760
|
-
/* @__PURE__ */
|
|
55918
|
+
/* @__PURE__ */ jsx152(
|
|
55761
55919
|
EuiButton11,
|
|
55762
55920
|
{
|
|
55763
55921
|
onClick: handleActionButtonClick(retryAction),
|
|
55764
|
-
iconType: () => /* @__PURE__ */
|
|
55922
|
+
iconType: () => /* @__PURE__ */ jsx152(
|
|
55765
55923
|
WfoRefresh,
|
|
55766
55924
|
{
|
|
55767
55925
|
color: retryButtonIsDisabled ? theme.colors.subduedText : theme.colors.link
|
|
@@ -55771,11 +55929,11 @@ var WfoProcessDetail = ({
|
|
|
55771
55929
|
children: t("retry")
|
|
55772
55930
|
}
|
|
55773
55931
|
),
|
|
55774
|
-
/* @__PURE__ */
|
|
55932
|
+
/* @__PURE__ */ jsx152(
|
|
55775
55933
|
EuiButton11,
|
|
55776
55934
|
{
|
|
55777
55935
|
onClick: handleActionButtonClick(abortAction),
|
|
55778
|
-
iconType: () => /* @__PURE__ */
|
|
55936
|
+
iconType: () => /* @__PURE__ */ jsx152(
|
|
55779
55937
|
WfoXCircleFill,
|
|
55780
55938
|
{
|
|
55781
55939
|
color: abortButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -55786,11 +55944,11 @@ var WfoProcessDetail = ({
|
|
|
55786
55944
|
children: t("abort")
|
|
55787
55945
|
}
|
|
55788
55946
|
),
|
|
55789
|
-
processDetail && processIsTask && /* @__PURE__ */
|
|
55947
|
+
processDetail && processIsTask && /* @__PURE__ */ jsx152(
|
|
55790
55948
|
EuiButton11,
|
|
55791
55949
|
{
|
|
55792
55950
|
onClick: handleActionButtonClick(deleteAction),
|
|
55793
|
-
iconType: () => /* @__PURE__ */
|
|
55951
|
+
iconType: () => /* @__PURE__ */ jsx152(
|
|
55794
55952
|
WfoXCircleFill,
|
|
55795
55953
|
{
|
|
55796
55954
|
color: deleteButtonIsDisabled ? theme.colors.subduedText : theme.colors.danger
|
|
@@ -55805,44 +55963,44 @@ var WfoProcessDetail = ({
|
|
|
55805
55963
|
}
|
|
55806
55964
|
)
|
|
55807
55965
|
] }),
|
|
55808
|
-
/* @__PURE__ */
|
|
55809
|
-
/* @__PURE__ */
|
|
55966
|
+
/* @__PURE__ */ jsx152(EuiSpacer16, {}),
|
|
55967
|
+
/* @__PURE__ */ jsx152(
|
|
55810
55968
|
EuiPanel5,
|
|
55811
55969
|
{
|
|
55812
55970
|
hasShadow: false,
|
|
55813
55971
|
hasBorder: false,
|
|
55814
55972
|
color: "subdued",
|
|
55815
55973
|
element: "div",
|
|
55816
|
-
children: isLoading && !hasError && /* @__PURE__ */
|
|
55817
|
-
/* @__PURE__ */
|
|
55974
|
+
children: isLoading && !hasError && /* @__PURE__ */ jsx152(WfoLoading, {}) || processDetail !== void 0 && /* @__PURE__ */ jsxs90(EuiFlexGroup21, { direction: "row", gutterSize: "m", children: [
|
|
55975
|
+
/* @__PURE__ */ jsx152(
|
|
55818
55976
|
ProcessHeaderValue,
|
|
55819
55977
|
{
|
|
55820
55978
|
translationKey: "status",
|
|
55821
55979
|
value: processDetail.lastStatus
|
|
55822
55980
|
}
|
|
55823
55981
|
),
|
|
55824
|
-
/* @__PURE__ */
|
|
55982
|
+
/* @__PURE__ */ jsx152(
|
|
55825
55983
|
ProcessHeaderValue,
|
|
55826
55984
|
{
|
|
55827
55985
|
translationKey: "lastStep",
|
|
55828
55986
|
value: processDetail == null ? void 0 : processDetail.lastStep
|
|
55829
55987
|
}
|
|
55830
55988
|
),
|
|
55831
|
-
processDetail.customer && /* @__PURE__ */
|
|
55989
|
+
processDetail.customer && /* @__PURE__ */ jsx152(
|
|
55832
55990
|
ProcessHeaderValue,
|
|
55833
55991
|
{
|
|
55834
55992
|
translationKey: "customer",
|
|
55835
55993
|
value: (_a = processDetail.customer) == null ? void 0 : _a.fullname
|
|
55836
55994
|
}
|
|
55837
55995
|
),
|
|
55838
|
-
/* @__PURE__ */
|
|
55996
|
+
/* @__PURE__ */ jsx152(
|
|
55839
55997
|
ProcessHeaderValue,
|
|
55840
55998
|
{
|
|
55841
55999
|
translationKey: "startedBy",
|
|
55842
56000
|
value: processDetail == null ? void 0 : processDetail.createdBy
|
|
55843
56001
|
}
|
|
55844
56002
|
),
|
|
55845
|
-
/* @__PURE__ */
|
|
56003
|
+
/* @__PURE__ */ jsx152(
|
|
55846
56004
|
ProcessHeaderValue,
|
|
55847
56005
|
{
|
|
55848
56006
|
translationKey: "startedOn",
|
|
@@ -55851,7 +56009,7 @@ var WfoProcessDetail = ({
|
|
|
55851
56009
|
)(processDetail == null ? void 0 : processDetail.startedAt) : ""
|
|
55852
56010
|
}
|
|
55853
56011
|
),
|
|
55854
|
-
/* @__PURE__ */
|
|
56012
|
+
/* @__PURE__ */ jsx152(
|
|
55855
56013
|
ProcessHeaderValue,
|
|
55856
56014
|
{
|
|
55857
56015
|
translationKey: "lastUpdate",
|
|
@@ -55870,8 +56028,8 @@ var WfoProcessDetail = ({
|
|
|
55870
56028
|
overflow: "hidden"
|
|
55871
56029
|
},
|
|
55872
56030
|
children: [
|
|
55873
|
-
/* @__PURE__ */
|
|
55874
|
-
/* @__PURE__ */
|
|
56031
|
+
/* @__PURE__ */ jsx152(EuiText33, { size: "xs", children: t("relatedSubscriptions") }),
|
|
56032
|
+
/* @__PURE__ */ jsx152(
|
|
55875
56033
|
EuiText33,
|
|
55876
56034
|
{
|
|
55877
56035
|
css: {
|
|
@@ -55881,7 +56039,7 @@ var WfoProcessDetail = ({
|
|
|
55881
56039
|
textOverflow: "ellipsis",
|
|
55882
56040
|
fontSize: theme.size.m
|
|
55883
56041
|
},
|
|
55884
|
-
children: /* @__PURE__ */
|
|
56042
|
+
children: /* @__PURE__ */ jsx152(
|
|
55885
56043
|
WfoProcessListSubscriptionsCell,
|
|
55886
56044
|
{
|
|
55887
56045
|
subscriptions: process && ((_b = processDetail == null ? void 0 : processDetail.subscriptions) == null ? void 0 : _b.page.map(
|
|
@@ -55901,8 +56059,8 @@ var WfoProcessDetail = ({
|
|
|
55901
56059
|
] })
|
|
55902
56060
|
}
|
|
55903
56061
|
),
|
|
55904
|
-
/* @__PURE__ */
|
|
55905
|
-
/* @__PURE__ */
|
|
56062
|
+
/* @__PURE__ */ jsx152(EuiSpacer16, { size: "s" }),
|
|
56063
|
+
/* @__PURE__ */ jsx152(
|
|
55906
56064
|
WfoTimeline,
|
|
55907
56065
|
{
|
|
55908
56066
|
timelineItems,
|
|
@@ -55915,7 +56073,7 @@ var WfoProcessDetail = ({
|
|
|
55915
56073
|
};
|
|
55916
56074
|
|
|
55917
56075
|
// src/pages/processes/WfoProcessDetailPage.tsx
|
|
55918
|
-
import { jsx as
|
|
56076
|
+
import { jsx as jsx153 } from "@emotion/react/jsx-runtime";
|
|
55919
56077
|
var PROCESS_DETAIL_DEFAULT_REFETCH_INTERVAL = 3e3;
|
|
55920
56078
|
var WfoProcessDetailPage = ({
|
|
55921
56079
|
processId,
|
|
@@ -55963,7 +56121,7 @@ var WfoProcessDetailPage = ({
|
|
|
55963
56121
|
const isTask = (_b = process2 == null ? void 0 : process2.isTask) != null ? _b : false;
|
|
55964
56122
|
const groupedSteps = convertStepsToGroupedSteps(steps);
|
|
55965
56123
|
const timelineItems = mapGroupedStepsToTimelineItems(groupedSteps);
|
|
55966
|
-
return /* @__PURE__ */
|
|
56124
|
+
return /* @__PURE__ */ jsx153(
|
|
55967
56125
|
WfoProcessDetail,
|
|
55968
56126
|
{
|
|
55969
56127
|
pageTitle,
|
|
@@ -55977,7 +56135,7 @@ var WfoProcessDetailPage = ({
|
|
|
55977
56135
|
},
|
|
55978
56136
|
isLoading,
|
|
55979
56137
|
hasError: isError3,
|
|
55980
|
-
children: isError3 && /* @__PURE__ */
|
|
56138
|
+
children: isError3 && /* @__PURE__ */ jsx153(WfoError, {}) || isLoading && /* @__PURE__ */ jsx153(WfoLoading, {}) || process2 !== void 0 && /* @__PURE__ */ jsx153(
|
|
55981
56139
|
WfoWorkflowStepList,
|
|
55982
56140
|
{
|
|
55983
56141
|
ref: stepListRef,
|
|
@@ -55989,7 +56147,7 @@ var WfoProcessDetailPage = ({
|
|
|
55989
56147
|
startedAt: process2.startedAt,
|
|
55990
56148
|
isTask
|
|
55991
56149
|
}
|
|
55992
|
-
) || /* @__PURE__ */
|
|
56150
|
+
) || /* @__PURE__ */ jsx153("h1", { children: "Invalid processId" })
|
|
55993
56151
|
}
|
|
55994
56152
|
);
|
|
55995
56153
|
};
|
|
@@ -56005,7 +56163,7 @@ import {
|
|
|
56005
56163
|
EuiPanel as EuiPanel6,
|
|
56006
56164
|
EuiText as EuiText34
|
|
56007
56165
|
} from "@elastic/eui";
|
|
56008
|
-
import { jsx as
|
|
56166
|
+
import { jsx as jsx154, jsxs as jsxs91 } from "@emotion/react/jsx-runtime";
|
|
56009
56167
|
var getInitialProcessPayload = ({
|
|
56010
56168
|
productId,
|
|
56011
56169
|
subscriptionId
|
|
@@ -56125,7 +56283,7 @@ var WfoStartProcessPage = ({
|
|
|
56125
56283
|
workflowName: processName,
|
|
56126
56284
|
createdBy: "-"
|
|
56127
56285
|
};
|
|
56128
|
-
return /* @__PURE__ */
|
|
56286
|
+
return /* @__PURE__ */ jsx154(
|
|
56129
56287
|
WfoProcessDetail,
|
|
56130
56288
|
{
|
|
56131
56289
|
pageTitle: processName,
|
|
@@ -56135,16 +56293,16 @@ var WfoStartProcessPage = ({
|
|
|
56135
56293
|
timelineItems: timeLineItems,
|
|
56136
56294
|
children: /* @__PURE__ */ jsxs91(EuiPanel6, { css: { marginTop: theme.base * 3 }, children: [
|
|
56137
56295
|
/* @__PURE__ */ jsxs91(EuiFlexGroup22, { css: getStepHeaderStyle(false), children: [
|
|
56138
|
-
/* @__PURE__ */
|
|
56296
|
+
/* @__PURE__ */ jsx154(WfoStepStatusIcon, { stepStatus: "form" /* FORM */ }),
|
|
56139
56297
|
/* @__PURE__ */ jsxs91(EuiFlexItem28, { grow: 0, children: [
|
|
56140
|
-
/* @__PURE__ */
|
|
56141
|
-
/* @__PURE__ */
|
|
56298
|
+
/* @__PURE__ */ jsx154(EuiText34, { css: stepListContentBoldTextStyle, children: t("userInput") }),
|
|
56299
|
+
/* @__PURE__ */ jsx154(EuiText34, { children: t(
|
|
56142
56300
|
isTask ? "submitTaskFormLabel" : "submitWorkflowFormLabel"
|
|
56143
56301
|
) })
|
|
56144
56302
|
] })
|
|
56145
56303
|
] }),
|
|
56146
|
-
/* @__PURE__ */
|
|
56147
|
-
hasError && /* @__PURE__ */
|
|
56304
|
+
/* @__PURE__ */ jsx154(EuiHorizontalRule6, {}),
|
|
56305
|
+
hasError && /* @__PURE__ */ jsx154(WfoError, {}) || stepUserInput && /* @__PURE__ */ jsx154(
|
|
56148
56306
|
UserInputFormWizard_default,
|
|
56149
56307
|
{
|
|
56150
56308
|
stepUserInput,
|
|
@@ -56155,7 +56313,7 @@ var WfoStartProcessPage = ({
|
|
|
56155
56313
|
hasNext,
|
|
56156
56314
|
isTask
|
|
56157
56315
|
}
|
|
56158
|
-
) || /* @__PURE__ */
|
|
56316
|
+
) || /* @__PURE__ */ jsx154(WfoLoading, {})
|
|
56159
56317
|
] })
|
|
56160
56318
|
}
|
|
56161
56319
|
);
|
|
@@ -56222,7 +56380,7 @@ var getWfoSummaryCardHeaderStyles = (theme) => {
|
|
|
56222
56380
|
};
|
|
56223
56381
|
|
|
56224
56382
|
// src/components/WfoSummary/WfoSummaryCardHeader/WfoSummaryCardHeader.tsx
|
|
56225
|
-
import { jsx as
|
|
56383
|
+
import { jsx as jsx155, jsxs as jsxs92 } from "@emotion/react/jsx-runtime";
|
|
56226
56384
|
var WfoSummaryCardHeader = ({
|
|
56227
56385
|
text,
|
|
56228
56386
|
value,
|
|
@@ -56231,8 +56389,8 @@ var WfoSummaryCardHeader = ({
|
|
|
56231
56389
|
}) => {
|
|
56232
56390
|
const { theme } = useOrchestratorTheme();
|
|
56233
56391
|
const { avatarStyle, totalSectionStyle, valueStyle } = getWfoSummaryCardHeaderStyles(theme);
|
|
56234
|
-
return /* @__PURE__ */
|
|
56235
|
-
/* @__PURE__ */
|
|
56392
|
+
return /* @__PURE__ */ jsx155(EuiFlexItem29, { grow: 0, children: /* @__PURE__ */ jsx155(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs92(EuiFlexGroup23, { children: [
|
|
56393
|
+
/* @__PURE__ */ jsx155(
|
|
56236
56394
|
EuiAvatar2,
|
|
56237
56395
|
{
|
|
56238
56396
|
iconSize: "l",
|
|
@@ -56246,8 +56404,8 @@ var WfoSummaryCardHeader = ({
|
|
|
56246
56404
|
}
|
|
56247
56405
|
),
|
|
56248
56406
|
/* @__PURE__ */ jsxs92("div", { css: totalSectionStyle, children: [
|
|
56249
|
-
/* @__PURE__ */
|
|
56250
|
-
/* @__PURE__ */
|
|
56407
|
+
/* @__PURE__ */ jsx155(EuiText35, { color: "subdued", children: text }),
|
|
56408
|
+
/* @__PURE__ */ jsx155(EuiText35, { css: valueStyle, children: value })
|
|
56251
56409
|
] })
|
|
56252
56410
|
] }) }) });
|
|
56253
56411
|
};
|
|
@@ -56269,15 +56427,15 @@ import { EuiFlexGroup as EuiFlexGroup24, EuiFlexItem as EuiFlexItem30, EuiIcon a
|
|
|
56269
56427
|
|
|
56270
56428
|
// src/components/WfoOptionalLink/WfoOptionalLink.tsx
|
|
56271
56429
|
import Link4 from "next/link";
|
|
56272
|
-
import { jsx as
|
|
56430
|
+
import { jsx as jsx156 } from "@emotion/react/jsx-runtime";
|
|
56273
56431
|
var WfoOptionalLink = ({
|
|
56274
56432
|
children,
|
|
56275
56433
|
href
|
|
56276
56434
|
}) => {
|
|
56277
56435
|
if (!href) {
|
|
56278
|
-
return /* @__PURE__ */
|
|
56436
|
+
return /* @__PURE__ */ jsx156("span", { children });
|
|
56279
56437
|
}
|
|
56280
|
-
return /* @__PURE__ */
|
|
56438
|
+
return /* @__PURE__ */ jsx156(Link4, { href, children });
|
|
56281
56439
|
};
|
|
56282
56440
|
|
|
56283
56441
|
// src/components/WfoSummary/WfoSummaryCardList/styles.ts
|
|
@@ -56326,7 +56484,7 @@ var getWfoSummaryCardListStyles = (theme) => {
|
|
|
56326
56484
|
};
|
|
56327
56485
|
|
|
56328
56486
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardListItem.tsx
|
|
56329
|
-
import { jsx as
|
|
56487
|
+
import { jsx as jsx157, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
56330
56488
|
var WfoSummaryCardListItem = ({
|
|
56331
56489
|
title,
|
|
56332
56490
|
value,
|
|
@@ -56339,9 +56497,9 @@ var WfoSummaryCardListItem = ({
|
|
|
56339
56497
|
listItemSubtitleStyle,
|
|
56340
56498
|
listItemHighlightIconStyle
|
|
56341
56499
|
} = getWfoSummaryCardListStyles(theme);
|
|
56342
|
-
return /* @__PURE__ */
|
|
56500
|
+
return /* @__PURE__ */ jsx157(WfoOptionalLink, { href: url, children: /* @__PURE__ */ jsxs93(EuiFlexGroup24, { css: listItemContainerStyle, gutterSize: "none", children: [
|
|
56343
56501
|
/* @__PURE__ */ jsxs93(EuiFlexItem30, { children: [
|
|
56344
|
-
/* @__PURE__ */
|
|
56502
|
+
/* @__PURE__ */ jsx157(
|
|
56345
56503
|
EuiTextColor,
|
|
56346
56504
|
{
|
|
56347
56505
|
color: url ? theme.colors.link : theme.colors.title,
|
|
@@ -56349,22 +56507,22 @@ var WfoSummaryCardListItem = ({
|
|
|
56349
56507
|
children: title
|
|
56350
56508
|
}
|
|
56351
56509
|
),
|
|
56352
|
-
/* @__PURE__ */
|
|
56510
|
+
/* @__PURE__ */ jsx157(EuiTextColor, { css: listItemSubtitleStyle, children: value })
|
|
56353
56511
|
] }),
|
|
56354
|
-
/* @__PURE__ */
|
|
56512
|
+
/* @__PURE__ */ jsx157(
|
|
56355
56513
|
EuiFlexItem30,
|
|
56356
56514
|
{
|
|
56357
56515
|
className: url ? "highlight-icon" : void 0,
|
|
56358
56516
|
grow: false,
|
|
56359
56517
|
css: listItemHighlightIconStyle,
|
|
56360
|
-
children: /* @__PURE__ */
|
|
56518
|
+
children: /* @__PURE__ */ jsx157(EuiIcon5, { type: "sortRight", color: "primary" })
|
|
56361
56519
|
}
|
|
56362
56520
|
)
|
|
56363
56521
|
] }) });
|
|
56364
56522
|
};
|
|
56365
56523
|
|
|
56366
56524
|
// src/components/WfoSummary/WfoSummaryCardList/WfoSummaryCardList.tsx
|
|
56367
|
-
import { jsx as
|
|
56525
|
+
import { jsx as jsx158, jsxs as jsxs94 } from "@emotion/react/jsx-runtime";
|
|
56368
56526
|
var WfoSummaryCardList = ({
|
|
56369
56527
|
title,
|
|
56370
56528
|
items,
|
|
@@ -56374,7 +56532,7 @@ var WfoSummaryCardList = ({
|
|
|
56374
56532
|
const router = useRouter11();
|
|
56375
56533
|
const euiScrollBarStyle = useEuiScrollBar2();
|
|
56376
56534
|
const { listContainerStyle, listHeaderStyle, listStyle } = useWithOrchestratorTheme(getWfoSummaryCardListStyles);
|
|
56377
|
-
return /* @__PURE__ */
|
|
56535
|
+
return /* @__PURE__ */ jsx158(EuiFlexItem31, { children: /* @__PURE__ */ jsxs94(
|
|
56378
56536
|
EuiPanel8,
|
|
56379
56537
|
{
|
|
56380
56538
|
css: listContainerStyle,
|
|
@@ -56383,10 +56541,10 @@ var WfoSummaryCardList = ({
|
|
|
56383
56541
|
paddingSize: "l",
|
|
56384
56542
|
children: [
|
|
56385
56543
|
/* @__PURE__ */ jsxs94("div", { children: [
|
|
56386
|
-
/* @__PURE__ */
|
|
56387
|
-
/* @__PURE__ */
|
|
56388
|
-
/* @__PURE__ */
|
|
56389
|
-
/* @__PURE__ */
|
|
56544
|
+
/* @__PURE__ */ jsx158("p", { css: listHeaderStyle, children: title }),
|
|
56545
|
+
/* @__PURE__ */ jsx158(EuiSpacer17, { size: "m" }),
|
|
56546
|
+
/* @__PURE__ */ jsx158(EuiSkeletonText, { isLoading, lines: 10, children: /* @__PURE__ */ jsx158("div", { css: [listStyle, euiScrollBarStyle], children: items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsxs94("div", { children: [
|
|
56547
|
+
/* @__PURE__ */ jsx158(
|
|
56390
56548
|
WfoSummaryCardListItem,
|
|
56391
56549
|
{
|
|
56392
56550
|
title: item.title,
|
|
@@ -56394,11 +56552,11 @@ var WfoSummaryCardList = ({
|
|
|
56394
56552
|
url: item.url
|
|
56395
56553
|
}
|
|
56396
56554
|
),
|
|
56397
|
-
index === items.length - 1 ? null : /* @__PURE__ */
|
|
56555
|
+
index === items.length - 1 ? null : /* @__PURE__ */ jsx158(EuiHorizontalRule7, { margin: "none" })
|
|
56398
56556
|
] }, index)) }) })
|
|
56399
56557
|
] }),
|
|
56400
|
-
/* @__PURE__ */
|
|
56401
|
-
button && /* @__PURE__ */
|
|
56558
|
+
/* @__PURE__ */ jsx158(EuiSpacer17, { size: "m" }),
|
|
56559
|
+
button && /* @__PURE__ */ jsx158(
|
|
56402
56560
|
EuiButton12,
|
|
56403
56561
|
{
|
|
56404
56562
|
fullWidth: true,
|
|
@@ -56424,7 +56582,7 @@ var getWfoSummaryCardsStyles = (theme) => {
|
|
|
56424
56582
|
};
|
|
56425
56583
|
|
|
56426
56584
|
// src/components/WfoSummary/WfoSummaryCards.tsx
|
|
56427
|
-
import { jsx as
|
|
56585
|
+
import { jsx as jsx159, jsxs as jsxs95 } from "@emotion/react/jsx-runtime";
|
|
56428
56586
|
var WfoSummaryCards = ({ summaryCards }) => {
|
|
56429
56587
|
const { theme } = useOrchestratorTheme();
|
|
56430
56588
|
const { cardContainerStyle } = getWfoSummaryCardsStyles(theme);
|
|
@@ -56449,7 +56607,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
56449
56607
|
};
|
|
56450
56608
|
}
|
|
56451
56609
|
};
|
|
56452
|
-
return /* @__PURE__ */
|
|
56610
|
+
return /* @__PURE__ */ jsx159(
|
|
56453
56611
|
EuiFlexGrid2,
|
|
56454
56612
|
{
|
|
56455
56613
|
responsive: false,
|
|
@@ -56465,7 +56623,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
56465
56623
|
button,
|
|
56466
56624
|
isLoading
|
|
56467
56625
|
}, index) => /* @__PURE__ */ jsxs95(EuiFlexItem32, { css: cardContainerStyle, children: [
|
|
56468
|
-
/* @__PURE__ */
|
|
56626
|
+
/* @__PURE__ */ jsx159(
|
|
56469
56627
|
WfoSummaryCardHeader,
|
|
56470
56628
|
__spreadValues({
|
|
56471
56629
|
text: headerTitle,
|
|
@@ -56474,8 +56632,8 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
56474
56632
|
headerStatus
|
|
56475
56633
|
))
|
|
56476
56634
|
),
|
|
56477
|
-
/* @__PURE__ */
|
|
56478
|
-
/* @__PURE__ */
|
|
56635
|
+
/* @__PURE__ */ jsx159(EuiSpacer18, { size: "m" }),
|
|
56636
|
+
/* @__PURE__ */ jsx159(
|
|
56479
56637
|
WfoSummaryCardList,
|
|
56480
56638
|
{
|
|
56481
56639
|
title: listTitle,
|
|
@@ -56491,7 +56649,7 @@ var WfoSummaryCards = ({ summaryCards }) => {
|
|
|
56491
56649
|
};
|
|
56492
56650
|
|
|
56493
56651
|
// src/pages/startPage/WfoStartPage.tsx
|
|
56494
|
-
import { jsx as
|
|
56652
|
+
import { jsx as jsx160, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
56495
56653
|
var WfoStartPage = () => {
|
|
56496
56654
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
56497
56655
|
const t = useTranslations47("startPage");
|
|
@@ -56597,15 +56755,15 @@ var WfoStartPage = () => {
|
|
|
56597
56755
|
justifyContent: "space-between"
|
|
56598
56756
|
},
|
|
56599
56757
|
children: [
|
|
56600
|
-
/* @__PURE__ */
|
|
56601
|
-
/* @__PURE__ */
|
|
56758
|
+
/* @__PURE__ */ jsx160("div", { children: product.name }),
|
|
56759
|
+
/* @__PURE__ */ jsx160("div", { children: product.subscriptions.pageInfo.totalItems || 0 })
|
|
56602
56760
|
]
|
|
56603
56761
|
}
|
|
56604
56762
|
)
|
|
56605
56763
|
}))) != null ? _h : [],
|
|
56606
56764
|
isLoading: productsSummaryIsFetching
|
|
56607
56765
|
};
|
|
56608
|
-
return /* @__PURE__ */
|
|
56766
|
+
return /* @__PURE__ */ jsx160(EuiFlexItem33, { children: /* @__PURE__ */ jsx160(
|
|
56609
56767
|
WfoSummaryCards,
|
|
56610
56768
|
{
|
|
56611
56769
|
summaryCards: [
|
|
@@ -56688,11 +56846,11 @@ var productsSummaryQueryVariables = {
|
|
|
56688
56846
|
|
|
56689
56847
|
// src/pages/subscriptions/WfoSubscriptionDetailPage.tsx
|
|
56690
56848
|
import { useRouter as useRouter12 } from "next/router";
|
|
56691
|
-
import { Fragment as Fragment36, jsx as
|
|
56849
|
+
import { Fragment as Fragment36, jsx as jsx161 } from "@emotion/react/jsx-runtime";
|
|
56692
56850
|
var WfoSubscriptionDetailPage = () => {
|
|
56693
56851
|
const router = useRouter12();
|
|
56694
56852
|
const { subscriptionId } = router.query;
|
|
56695
|
-
return subscriptionId && /* @__PURE__ */
|
|
56853
|
+
return subscriptionId && /* @__PURE__ */ jsx161(TreeProvider, { children: /* @__PURE__ */ jsx161(WfoSubscription, { subscriptionId }) }) || /* @__PURE__ */ jsx161(Fragment36, {});
|
|
56696
56854
|
};
|
|
56697
56855
|
|
|
56698
56856
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
@@ -56778,7 +56936,7 @@ var subscriptionListTabs = [
|
|
|
56778
56936
|
import { useTranslations as useTranslations48 } from "next-intl";
|
|
56779
56937
|
import Link5 from "next/link";
|
|
56780
56938
|
import { useRouter as useRouter13 } from "next/router";
|
|
56781
|
-
import { jsx as
|
|
56939
|
+
import { jsx as jsx162 } from "@emotion/react/jsx-runtime";
|
|
56782
56940
|
var WfoSubscriptionsList = ({
|
|
56783
56941
|
alwaysOnFilters,
|
|
56784
56942
|
dataDisplayParams,
|
|
@@ -56795,26 +56953,26 @@ var WfoSubscriptionsList = ({
|
|
|
56795
56953
|
field: "subscriptionId",
|
|
56796
56954
|
name: t("id"),
|
|
56797
56955
|
width: "100",
|
|
56798
|
-
render: (value) => /* @__PURE__ */
|
|
56956
|
+
render: (value) => /* @__PURE__ */ jsx162(WfoFirstPartUUID, { UUID: value }),
|
|
56799
56957
|
renderDetails: (value) => value
|
|
56800
56958
|
},
|
|
56801
56959
|
description: {
|
|
56802
56960
|
field: "description",
|
|
56803
56961
|
name: t("description"),
|
|
56804
56962
|
width: "400",
|
|
56805
|
-
render: (value, record) => /* @__PURE__ */
|
|
56963
|
+
render: (value, record) => /* @__PURE__ */ jsx162(Link5, { href: `/subscriptions/${record.subscriptionId}`, children: value })
|
|
56806
56964
|
},
|
|
56807
56965
|
status: {
|
|
56808
56966
|
field: "status",
|
|
56809
56967
|
name: t("status"),
|
|
56810
56968
|
width: "110",
|
|
56811
|
-
render: (value) => /* @__PURE__ */
|
|
56969
|
+
render: (value) => /* @__PURE__ */ jsx162(WfoSubscriptionStatusBadge, { status: value })
|
|
56812
56970
|
},
|
|
56813
56971
|
insync: {
|
|
56814
56972
|
field: "insync",
|
|
56815
56973
|
name: t("insync"),
|
|
56816
56974
|
width: "110",
|
|
56817
|
-
render: (value) => /* @__PURE__ */
|
|
56975
|
+
render: (value) => /* @__PURE__ */ jsx162(WfoInsyncIcon, { inSync: value })
|
|
56818
56976
|
},
|
|
56819
56977
|
productName: {
|
|
56820
56978
|
field: "productName",
|
|
@@ -56839,7 +56997,7 @@ var WfoSubscriptionsList = ({
|
|
|
56839
56997
|
field: "startDate",
|
|
56840
56998
|
name: t("startDate"),
|
|
56841
56999
|
width: "150",
|
|
56842
|
-
render: (value) => /* @__PURE__ */
|
|
57000
|
+
render: (value) => /* @__PURE__ */ jsx162(WfoDateTime, { dateOrIsoString: value }),
|
|
56843
57001
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56844
57002
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56845
57003
|
},
|
|
@@ -56847,7 +57005,7 @@ var WfoSubscriptionsList = ({
|
|
|
56847
57005
|
field: "endDate",
|
|
56848
57006
|
name: t("endDate"),
|
|
56849
57007
|
width: "150",
|
|
56850
|
-
render: (value) => /* @__PURE__ */
|
|
57008
|
+
render: (value) => /* @__PURE__ */ jsx162(WfoDateTime, { dateOrIsoString: value }),
|
|
56851
57009
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
56852
57010
|
clipboardText: parseDateToLocaleDateTimeString
|
|
56853
57011
|
},
|
|
@@ -56890,7 +57048,7 @@ var WfoSubscriptionsList = ({
|
|
|
56890
57048
|
pageSizeOptions: DEFAULT_PAGE_SIZES,
|
|
56891
57049
|
totalItemCount: totalItems != null ? totalItems : 0
|
|
56892
57050
|
};
|
|
56893
|
-
return /* @__PURE__ */
|
|
57051
|
+
return /* @__PURE__ */ jsx162(
|
|
56894
57052
|
WfoTableWithFilter,
|
|
56895
57053
|
{
|
|
56896
57054
|
queryString: dataDisplayParams.queryString,
|
|
@@ -56931,7 +57089,7 @@ var WfoSubscriptionsList = ({
|
|
|
56931
57089
|
};
|
|
56932
57090
|
|
|
56933
57091
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
56934
|
-
import { Fragment as Fragment37, jsx as
|
|
57092
|
+
import { Fragment as Fragment37, jsx as jsx163, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
56935
57093
|
var WfoSubscriptionsListPage = () => {
|
|
56936
57094
|
var _a;
|
|
56937
57095
|
const t = useTranslations49("subscriptions.detail");
|
|
@@ -56972,10 +57130,10 @@ var WfoSubscriptionsListPage = () => {
|
|
|
56972
57130
|
({ id }) => id === activeTab
|
|
56973
57131
|
)) == null ? void 0 : _a.alwaysOnFilters;
|
|
56974
57132
|
return /* @__PURE__ */ jsxs97(Fragment37, { children: [
|
|
56975
|
-
/* @__PURE__ */
|
|
56976
|
-
/* @__PURE__ */
|
|
56977
|
-
/* @__PURE__ */
|
|
56978
|
-
/* @__PURE__ */
|
|
57133
|
+
/* @__PURE__ */ jsx163(EuiSpacer19, {}),
|
|
57134
|
+
/* @__PURE__ */ jsx163(EuiPageHeader4, { pageTitle: t("title") }),
|
|
57135
|
+
/* @__PURE__ */ jsx163(EuiSpacer19, { size: "m" }),
|
|
57136
|
+
/* @__PURE__ */ jsx163(
|
|
56979
57137
|
WfoFilterTabs,
|
|
56980
57138
|
{
|
|
56981
57139
|
tabs: subscriptionListTabs,
|
|
@@ -56984,8 +57142,8 @@ var WfoSubscriptionsListPage = () => {
|
|
|
56984
57142
|
onChangeTab: handleChangeSubscriptionsTab
|
|
56985
57143
|
}
|
|
56986
57144
|
),
|
|
56987
|
-
/* @__PURE__ */
|
|
56988
|
-
/* @__PURE__ */
|
|
57145
|
+
/* @__PURE__ */ jsx163(EuiSpacer19, { size: "xxl" }),
|
|
57146
|
+
/* @__PURE__ */ jsx163(
|
|
56989
57147
|
WfoSubscriptionsList,
|
|
56990
57148
|
{
|
|
56991
57149
|
hiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -57074,7 +57232,7 @@ var getTasksListTabTypeFromString = (tabId) => {
|
|
|
57074
57232
|
};
|
|
57075
57233
|
|
|
57076
57234
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
57077
|
-
import { Fragment as Fragment38, jsx as
|
|
57235
|
+
import { Fragment as Fragment38, jsx as jsx164, jsxs as jsxs98 } from "@emotion/react/jsx-runtime";
|
|
57078
57236
|
var WfoTasksListPage = () => {
|
|
57079
57237
|
var _a;
|
|
57080
57238
|
const router = useRouter14();
|
|
@@ -57131,7 +57289,7 @@ var WfoTasksListPage = () => {
|
|
|
57131
57289
|
workflowName: {
|
|
57132
57290
|
field: "workflowName",
|
|
57133
57291
|
name: t("taskName"),
|
|
57134
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
57292
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx164(Link6, { href: `${PATH_TASKS}/${processId}`, children: value })
|
|
57135
57293
|
},
|
|
57136
57294
|
lastStep: defaultTableColumns.lastStep,
|
|
57137
57295
|
lastStatus: defaultTableColumns.lastStatus,
|
|
@@ -57148,23 +57306,23 @@ var WfoTasksListPage = () => {
|
|
|
57148
57306
|
lastModifiedAt: defaultTableColumns.lastModifiedAt
|
|
57149
57307
|
});
|
|
57150
57308
|
return /* @__PURE__ */ jsxs98(Fragment38, { children: [
|
|
57151
|
-
/* @__PURE__ */
|
|
57309
|
+
/* @__PURE__ */ jsx164(EuiSpacer20, {}),
|
|
57152
57310
|
/* @__PURE__ */ jsxs98(EuiFlexGroup25, { children: [
|
|
57153
|
-
/* @__PURE__ */
|
|
57154
|
-
/* @__PURE__ */
|
|
57311
|
+
/* @__PURE__ */ jsx164(EuiFlexItem34, { children: /* @__PURE__ */ jsx164(EuiPageHeader5, { pageTitle: "Tasks" }) }),
|
|
57312
|
+
/* @__PURE__ */ jsx164(EuiFlexItem34, { children: /* @__PURE__ */ jsxs98(EuiFlexGroup25, { justifyContent: "flexEnd", children: [
|
|
57155
57313
|
" ",
|
|
57156
|
-
/* @__PURE__ */
|
|
57314
|
+
/* @__PURE__ */ jsx164(
|
|
57157
57315
|
EuiButton13,
|
|
57158
57316
|
{
|
|
57159
57317
|
onClick: handleRerunAllButtonClick,
|
|
57160
|
-
iconType: () => /* @__PURE__ */
|
|
57318
|
+
iconType: () => /* @__PURE__ */ jsx164(WfoRefresh, { color: theme.colors.primaryText }),
|
|
57161
57319
|
children: t("rerunAll")
|
|
57162
57320
|
}
|
|
57163
57321
|
),
|
|
57164
|
-
/* @__PURE__ */
|
|
57322
|
+
/* @__PURE__ */ jsx164(WfoStartTaskButtonComboBox, {})
|
|
57165
57323
|
] }) })
|
|
57166
57324
|
] }),
|
|
57167
|
-
/* @__PURE__ */
|
|
57325
|
+
/* @__PURE__ */ jsx164(
|
|
57168
57326
|
WfoFilterTabs,
|
|
57169
57327
|
{
|
|
57170
57328
|
tabs: defaultTasksListTabs,
|
|
@@ -57173,8 +57331,8 @@ var WfoTasksListPage = () => {
|
|
|
57173
57331
|
onChangeTab: handleChangeTasksListTab
|
|
57174
57332
|
}
|
|
57175
57333
|
),
|
|
57176
|
-
/* @__PURE__ */
|
|
57177
|
-
/* @__PURE__ */
|
|
57334
|
+
/* @__PURE__ */ jsx164(EuiSpacer20, { size: "xxl" }),
|
|
57335
|
+
/* @__PURE__ */ jsx164(
|
|
57178
57336
|
WfoProcessesList,
|
|
57179
57337
|
{
|
|
57180
57338
|
defaultHiddenColumns: tableDefaults == null ? void 0 : tableDefaults.hiddenColumns,
|
|
@@ -57253,7 +57411,7 @@ var getWorkflowsListTabTypeFromString = (tabId) => {
|
|
|
57253
57411
|
};
|
|
57254
57412
|
|
|
57255
57413
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
57256
|
-
import { Fragment as Fragment39, jsx as
|
|
57414
|
+
import { Fragment as Fragment39, jsx as jsx165, jsxs as jsxs99 } from "@emotion/react/jsx-runtime";
|
|
57257
57415
|
var WfoWorkflowsListPage = () => {
|
|
57258
57416
|
var _a;
|
|
57259
57417
|
const router = useRouter15();
|
|
@@ -57293,10 +57451,10 @@ var WfoWorkflowsListPage = () => {
|
|
|
57293
57451
|
return null;
|
|
57294
57452
|
}
|
|
57295
57453
|
return /* @__PURE__ */ jsxs99(Fragment39, { children: [
|
|
57296
|
-
/* @__PURE__ */
|
|
57297
|
-
/* @__PURE__ */
|
|
57298
|
-
/* @__PURE__ */
|
|
57299
|
-
/* @__PURE__ */
|
|
57454
|
+
/* @__PURE__ */ jsx165(EuiSpacer21, {}),
|
|
57455
|
+
/* @__PURE__ */ jsx165(EuiPageHeader6, { pageTitle: t("title") }),
|
|
57456
|
+
/* @__PURE__ */ jsx165(EuiSpacer21, { size: "m" }),
|
|
57457
|
+
/* @__PURE__ */ jsx165(
|
|
57300
57458
|
WfoFilterTabs,
|
|
57301
57459
|
{
|
|
57302
57460
|
tabs: defaultWorkflowsListTabs,
|
|
@@ -57305,8 +57463,8 @@ var WfoWorkflowsListPage = () => {
|
|
|
57305
57463
|
onChangeTab: handleChangeWorkflowsListTab
|
|
57306
57464
|
}
|
|
57307
57465
|
),
|
|
57308
|
-
/* @__PURE__ */
|
|
57309
|
-
/* @__PURE__ */
|
|
57466
|
+
/* @__PURE__ */ jsx165(EuiSpacer21, { size: "xxl" }),
|
|
57467
|
+
/* @__PURE__ */ jsx165(
|
|
57310
57468
|
WfoProcessesList,
|
|
57311
57469
|
{
|
|
57312
57470
|
alwaysOnFilters,
|
|
@@ -57416,7 +57574,7 @@ var graphQlProcessFilterMapper = (data) => data == null ? void 0 : data.map(({ f
|
|
|
57416
57574
|
}));
|
|
57417
57575
|
|
|
57418
57576
|
// src/components/WfoProcessList/WfoProcessesList.tsx
|
|
57419
|
-
import { jsx as
|
|
57577
|
+
import { jsx as jsx166 } from "@emotion/react/jsx-runtime";
|
|
57420
57578
|
var WfoProcessesList = ({
|
|
57421
57579
|
alwaysOnFilters,
|
|
57422
57580
|
defaultHiddenColumns = [],
|
|
@@ -57434,7 +57592,7 @@ var WfoProcessesList = ({
|
|
|
57434
57592
|
field: "workflowName",
|
|
57435
57593
|
name: t("workflowName"),
|
|
57436
57594
|
width: "20%",
|
|
57437
|
-
render: (value, { processId }) => /* @__PURE__ */
|
|
57595
|
+
render: (value, { processId }) => /* @__PURE__ */ jsx166(Link7, { href: `${PATH_WORKFLOWS}/${processId}`, children: value })
|
|
57438
57596
|
},
|
|
57439
57597
|
lastStep: {
|
|
57440
57598
|
field: "lastStep",
|
|
@@ -57445,13 +57603,13 @@ var WfoProcessesList = ({
|
|
|
57445
57603
|
field: "lastStatus",
|
|
57446
57604
|
name: t("status"),
|
|
57447
57605
|
width: "100",
|
|
57448
|
-
render: (cellValue) => /* @__PURE__ */
|
|
57606
|
+
render: (cellValue) => /* @__PURE__ */ jsx166(WfoProcessStatusBadge, { processStatus: cellValue })
|
|
57449
57607
|
},
|
|
57450
57608
|
workflowTarget: {
|
|
57451
57609
|
field: "workflowTarget",
|
|
57452
57610
|
name: t("workflowTarget"),
|
|
57453
57611
|
width: "100",
|
|
57454
|
-
render: (target) => /* @__PURE__ */
|
|
57612
|
+
render: (target) => /* @__PURE__ */ jsx166(WfoWorkflowTargetBadge, { target })
|
|
57455
57613
|
},
|
|
57456
57614
|
tag: {
|
|
57457
57615
|
field: "tag",
|
|
@@ -57477,14 +57635,14 @@ var WfoProcessesList = ({
|
|
|
57477
57635
|
field: "subscriptions",
|
|
57478
57636
|
name: t("subscriptions"),
|
|
57479
57637
|
width: "15%",
|
|
57480
|
-
render: ({ page: subscriptions }) => /* @__PURE__ */
|
|
57638
|
+
render: ({ page: subscriptions }) => /* @__PURE__ */ jsx166(
|
|
57481
57639
|
WfoProcessListSubscriptionsCell,
|
|
57482
57640
|
{
|
|
57483
57641
|
subscriptions,
|
|
57484
57642
|
numberOfSubscriptionsToRender: 1
|
|
57485
57643
|
}
|
|
57486
57644
|
),
|
|
57487
|
-
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */
|
|
57645
|
+
renderDetails: ({ page: subscriptions }) => /* @__PURE__ */ jsx166(
|
|
57488
57646
|
WfoProcessListSubscriptionsCell,
|
|
57489
57647
|
{
|
|
57490
57648
|
subscriptions
|
|
@@ -57506,14 +57664,14 @@ var WfoProcessesList = ({
|
|
|
57506
57664
|
field: "processId",
|
|
57507
57665
|
name: t("processId"),
|
|
57508
57666
|
width: "90",
|
|
57509
|
-
render: (value) => /* @__PURE__ */
|
|
57667
|
+
render: (value) => /* @__PURE__ */ jsx166(WfoFirstPartUUID, { UUID: value }),
|
|
57510
57668
|
renderDetails: (value) => value
|
|
57511
57669
|
},
|
|
57512
57670
|
startedAt: {
|
|
57513
57671
|
field: "startedAt",
|
|
57514
57672
|
name: t("started"),
|
|
57515
57673
|
width: "100",
|
|
57516
|
-
render: (value) => /* @__PURE__ */
|
|
57674
|
+
render: (value) => /* @__PURE__ */ jsx166(WfoDateTime, { dateOrIsoString: value }),
|
|
57517
57675
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
57518
57676
|
clipboardText: parseDateToLocaleDateTimeString
|
|
57519
57677
|
},
|
|
@@ -57521,7 +57679,7 @@ var WfoProcessesList = ({
|
|
|
57521
57679
|
field: "lastModifiedAt",
|
|
57522
57680
|
name: t("lastModified"),
|
|
57523
57681
|
width: "100",
|
|
57524
|
-
render: (value) => /* @__PURE__ */
|
|
57682
|
+
render: (value) => /* @__PURE__ */ jsx166(WfoDateTime, { dateOrIsoString: value }),
|
|
57525
57683
|
renderDetails: parseDateToLocaleDateTimeString,
|
|
57526
57684
|
clipboardText: parseDateToLocaleDateTimeString
|
|
57527
57685
|
}
|
|
@@ -57552,7 +57710,7 @@ var WfoProcessesList = ({
|
|
|
57552
57710
|
getQueryVariablesForExport(processListQueryVars),
|
|
57553
57711
|
["processes", "export"]
|
|
57554
57712
|
);
|
|
57555
|
-
return /* @__PURE__ */
|
|
57713
|
+
return /* @__PURE__ */ jsx166(
|
|
57556
57714
|
WfoTableWithFilter,
|
|
57557
57715
|
{
|
|
57558
57716
|
queryString,
|
|
@@ -57604,11 +57762,11 @@ var getStyles14 = (theme) => {
|
|
|
57604
57762
|
};
|
|
57605
57763
|
|
|
57606
57764
|
// src/components/WfoJsonCodeBlock/WfoJsonCodeBlock.tsx
|
|
57607
|
-
import { jsx as
|
|
57765
|
+
import { jsx as jsx167 } from "@emotion/react/jsx-runtime";
|
|
57608
57766
|
var WfoJsonCodeBlock = ({ data }) => {
|
|
57609
57767
|
const { euiCodeBlockStyle } = useWithOrchestratorTheme(getStyles14);
|
|
57610
57768
|
const json = JSON.stringify(data, null, 4);
|
|
57611
|
-
return /* @__PURE__ */
|
|
57769
|
+
return /* @__PURE__ */ jsx167(
|
|
57612
57770
|
EuiCodeBlock2,
|
|
57613
57771
|
{
|
|
57614
57772
|
css: euiCodeBlockStyle,
|
|
@@ -57630,7 +57788,7 @@ import {
|
|
|
57630
57788
|
EuiSpacer as EuiSpacer22,
|
|
57631
57789
|
EuiText as EuiText36
|
|
57632
57790
|
} from "@elastic/eui";
|
|
57633
|
-
import { jsx as
|
|
57791
|
+
import { jsx as jsx168, jsxs as jsxs100 } from "@emotion/react/jsx-runtime";
|
|
57634
57792
|
var WfoFlushSettings = () => {
|
|
57635
57793
|
const [clearCache] = useClearCacheMutation();
|
|
57636
57794
|
const t = useTranslations53("settings.page");
|
|
@@ -57673,9 +57831,9 @@ var WfoFlushSettings = () => {
|
|
|
57673
57831
|
paddingSize: "l",
|
|
57674
57832
|
style: { width: "50%" },
|
|
57675
57833
|
children: [
|
|
57676
|
-
/* @__PURE__ */
|
|
57677
|
-
/* @__PURE__ */
|
|
57678
|
-
/* @__PURE__ */
|
|
57834
|
+
/* @__PURE__ */ jsx168(EuiText36, { size: "s", children: /* @__PURE__ */ jsx168("h4", { children: t("flushCacheSettingsTitle") }) }),
|
|
57835
|
+
/* @__PURE__ */ jsx168(EuiSpacer22, { size: "m" }),
|
|
57836
|
+
/* @__PURE__ */ jsx168(
|
|
57679
57837
|
EuiComboBox,
|
|
57680
57838
|
{
|
|
57681
57839
|
"aria-label": "Flush settings",
|
|
@@ -57687,8 +57845,8 @@ var WfoFlushSettings = () => {
|
|
|
57687
57845
|
fullWidth: true
|
|
57688
57846
|
}
|
|
57689
57847
|
),
|
|
57690
|
-
/* @__PURE__ */
|
|
57691
|
-
/* @__PURE__ */
|
|
57848
|
+
/* @__PURE__ */ jsx168(EuiSpacer22, { size: "m" }),
|
|
57849
|
+
/* @__PURE__ */ jsx168(EuiButton14, { onClick: flushCache, iconType: "refresh", children: t("flushButton") })
|
|
57692
57850
|
]
|
|
57693
57851
|
}
|
|
57694
57852
|
);
|
|
@@ -57697,16 +57855,16 @@ var WfoFlushSettings = () => {
|
|
|
57697
57855
|
// src/components/WfoSettings/WfoEngineStatusButton.tsx
|
|
57698
57856
|
import { useTranslations as useTranslations54 } from "next-intl";
|
|
57699
57857
|
import { EuiButton as EuiButton15 } from "@elastic/eui";
|
|
57700
|
-
import { jsx as
|
|
57858
|
+
import { jsx as jsx169 } from "@emotion/react/jsx-runtime";
|
|
57701
57859
|
var WfoEngineStatusButton = () => {
|
|
57702
57860
|
const { data, isLoading } = useGetEngineStatusQuery();
|
|
57703
57861
|
const { engineStatus } = data || {};
|
|
57704
57862
|
const [setEngineStatus, { isLoading: isSettingEngineStatus }] = useSetEngineStatusMutation();
|
|
57705
57863
|
const t = useTranslations54("settings.page");
|
|
57706
57864
|
if (isLoading || isSettingEngineStatus) {
|
|
57707
|
-
return /* @__PURE__ */
|
|
57865
|
+
return /* @__PURE__ */ jsx169(EuiButton15, { isLoading: true, fill: true, children: "Loading..." });
|
|
57708
57866
|
}
|
|
57709
|
-
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */
|
|
57867
|
+
return engineStatus === "RUNNING" /* RUNNING */ ? /* @__PURE__ */ jsx169(
|
|
57710
57868
|
EuiButton15,
|
|
57711
57869
|
{
|
|
57712
57870
|
onClick: () => setEngineStatus(true),
|
|
@@ -57715,7 +57873,7 @@ var WfoEngineStatusButton = () => {
|
|
|
57715
57873
|
iconType: "pause",
|
|
57716
57874
|
children: t("pauseEngine")
|
|
57717
57875
|
}
|
|
57718
|
-
) : /* @__PURE__ */
|
|
57876
|
+
) : /* @__PURE__ */ jsx169(
|
|
57719
57877
|
EuiButton15,
|
|
57720
57878
|
{
|
|
57721
57879
|
onClick: () => setEngineStatus(false),
|
|
@@ -57730,7 +57888,7 @@ var WfoEngineStatusButton = () => {
|
|
|
57730
57888
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
57731
57889
|
import { useTranslations as useTranslations55 } from "next-intl";
|
|
57732
57890
|
import { EuiPanel as EuiPanel10, EuiSpacer as EuiSpacer23, EuiText as EuiText37 } from "@elastic/eui";
|
|
57733
|
-
import { jsx as
|
|
57891
|
+
import { jsx as jsx170, jsxs as jsxs101 } from "@emotion/react/jsx-runtime";
|
|
57734
57892
|
var WfoModifySettings = () => {
|
|
57735
57893
|
const t = useTranslations55("settings.page");
|
|
57736
57894
|
return /* @__PURE__ */ jsxs101(
|
|
@@ -57741,9 +57899,9 @@ var WfoModifySettings = () => {
|
|
|
57741
57899
|
paddingSize: "l",
|
|
57742
57900
|
css: { width: "50%" },
|
|
57743
57901
|
children: [
|
|
57744
|
-
/* @__PURE__ */
|
|
57745
|
-
/* @__PURE__ */
|
|
57746
|
-
/* @__PURE__ */
|
|
57902
|
+
/* @__PURE__ */ jsx170(EuiText37, { size: "s", children: /* @__PURE__ */ jsx170("h4", { children: t("modifyEngine") }) }),
|
|
57903
|
+
/* @__PURE__ */ jsx170(EuiSpacer23, { size: "m" }),
|
|
57904
|
+
/* @__PURE__ */ jsx170(WfoEngineStatusButton, {})
|
|
57747
57905
|
]
|
|
57748
57906
|
}
|
|
57749
57907
|
);
|
|
@@ -57758,7 +57916,7 @@ import {
|
|
|
57758
57916
|
EuiSpacer as EuiSpacer24,
|
|
57759
57917
|
EuiText as EuiText38
|
|
57760
57918
|
} from "@elastic/eui";
|
|
57761
|
-
import { jsx as
|
|
57919
|
+
import { jsx as jsx171, jsxs as jsxs102 } from "@emotion/react/jsx-runtime";
|
|
57762
57920
|
var WfoStatus = () => {
|
|
57763
57921
|
const { theme } = useOrchestratorTheme();
|
|
57764
57922
|
const { data } = useGetEngineStatusQuery();
|
|
@@ -57774,20 +57932,20 @@ var WfoStatus = () => {
|
|
|
57774
57932
|
style: { width: "50%" },
|
|
57775
57933
|
children: [
|
|
57776
57934
|
/* @__PURE__ */ jsxs102(EuiFlexGroup26, { children: [
|
|
57777
|
-
/* @__PURE__ */
|
|
57778
|
-
/* @__PURE__ */
|
|
57935
|
+
/* @__PURE__ */ jsx171(EuiFlexItem35, { grow: false, style: { minWidth: 208 }, children: /* @__PURE__ */ jsx171(EuiText38, { size: "s", children: /* @__PURE__ */ jsx171("h4", { children: t("runningProcesses") }) }) }),
|
|
57936
|
+
/* @__PURE__ */ jsx171(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsx171(EuiText38, { size: "s", children: /* @__PURE__ */ jsx171("p", { children: runningProcesses || "-" }) }) })
|
|
57779
57937
|
] }),
|
|
57780
|
-
/* @__PURE__ */
|
|
57938
|
+
/* @__PURE__ */ jsx171(EuiSpacer24, { size: "m" }),
|
|
57781
57939
|
/* @__PURE__ */ jsxs102(EuiFlexGroup26, { children: [
|
|
57782
|
-
/* @__PURE__ */
|
|
57783
|
-
/* @__PURE__ */
|
|
57784
|
-
/* @__PURE__ */
|
|
57940
|
+
/* @__PURE__ */ jsx171(EuiFlexItem35, { grow: false, style: { minWidth: 200 }, children: /* @__PURE__ */ jsx171(EuiText38, { size: "s", children: /* @__PURE__ */ jsx171("h4", { children: t("engineStatus") }) }) }),
|
|
57941
|
+
/* @__PURE__ */ jsx171(EuiFlexItem35, { grow: false, children: /* @__PURE__ */ jsxs102(EuiFlexGroup26, { gutterSize: "xs", children: [
|
|
57942
|
+
/* @__PURE__ */ jsx171(EuiFlexItem35, { children: /* @__PURE__ */ jsx171(
|
|
57785
57943
|
WfoStatusDotIcon,
|
|
57786
57944
|
{
|
|
57787
57945
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
57788
57946
|
}
|
|
57789
57947
|
) }),
|
|
57790
|
-
/* @__PURE__ */
|
|
57948
|
+
/* @__PURE__ */ jsx171(EuiFlexItem35, { children: /* @__PURE__ */ jsx171(EuiText38, { size: "xs", style: { marginTop: 4 }, children: /* @__PURE__ */ jsx171("p", { children: engineStatus }) }) })
|
|
57791
57949
|
] }) })
|
|
57792
57950
|
] })
|
|
57793
57951
|
]
|
|
@@ -57797,7 +57955,7 @@ var WfoStatus = () => {
|
|
|
57797
57955
|
|
|
57798
57956
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
57799
57957
|
import React54 from "react";
|
|
57800
|
-
import { jsx as
|
|
57958
|
+
import { jsx as jsx172, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
57801
57959
|
var WfoErrorBoundary = class extends React54.Component {
|
|
57802
57960
|
constructor(props) {
|
|
57803
57961
|
super(props);
|
|
@@ -57817,7 +57975,7 @@ var WfoErrorBoundary = class extends React54.Component {
|
|
|
57817
57975
|
return /* @__PURE__ */ jsxs103("p", { children: [
|
|
57818
57976
|
"An unexpected error occurred, try to go back to the",
|
|
57819
57977
|
" ",
|
|
57820
|
-
/* @__PURE__ */
|
|
57978
|
+
/* @__PURE__ */ jsx172("a", { href: "/", children: "home page" })
|
|
57821
57979
|
] });
|
|
57822
57980
|
}
|
|
57823
57981
|
return this.props.children;
|
|
@@ -57966,6 +58124,9 @@ var en_GB_default = {
|
|
|
57966
58124
|
contactPersonName: {
|
|
57967
58125
|
placeholder: "Name placeholder"
|
|
57968
58126
|
},
|
|
58127
|
+
ipvAnyNetworkField: {
|
|
58128
|
+
manuallySelectedPrefix: "Manually selected prefix"
|
|
58129
|
+
},
|
|
57969
58130
|
node_select: {
|
|
57970
58131
|
nodes_loading: "Nodes loading",
|
|
57971
58132
|
select_node: "Select node",
|
|
@@ -58155,14 +58316,14 @@ var en_GB_default = {
|
|
|
58155
58316
|
no_modify_workflow: "This subscription can not be modified as the product has no modify workflows.",
|
|
58156
58317
|
no_termination_workflow: "This subscription can not be terminated as the product has no termination workflows.",
|
|
58157
58318
|
no_validate_workflow: "This subscription can not be validated as the product has no validate workflows.",
|
|
58158
|
-
not_in_sync: "This subscription can not be modified because it is not in
|
|
58159
|
-
relations_not_in_sync: "This subscription can not be modified because some related subscriptions are not
|
|
58319
|
+
not_in_sync: "This subscription can not be modified because it is not in-sync. This means there is some error in the registration of the subscription or that it is being modified by another workflow.",
|
|
58320
|
+
relations_not_in_sync: "This subscription can not be modified because some related subscriptions are not in-sync. Locked subscriptions: {locked_relations}",
|
|
58160
58321
|
no_modify_subscription_in_use_by_others: "This subscription can not be modified because it is in use by one or more other subscriptions: {unterminated_parents}"
|
|
58161
58322
|
}
|
|
58162
58323
|
},
|
|
58163
58324
|
subscriptionInstanceId: "Instance ID",
|
|
58164
58325
|
ownerSubscriptionId: "Owner subscription ID",
|
|
58165
|
-
inUseByRelations: "In
|
|
58326
|
+
inUseByRelations: "In-use by subscription(s)",
|
|
58166
58327
|
showDetails: "Show details",
|
|
58167
58328
|
self: "Current subscription",
|
|
58168
58329
|
hideDetails: "Hide details",
|
|
@@ -58322,6 +58483,9 @@ var nl_NL_default = {
|
|
|
58322
58483
|
contactPersonName: {
|
|
58323
58484
|
placeholder: "Naam placeholder"
|
|
58324
58485
|
},
|
|
58486
|
+
ipvAnyNetworkField: {
|
|
58487
|
+
manuallySelectedPrefix: "Manually selected prefix"
|
|
58488
|
+
},
|
|
58325
58489
|
node_select: {
|
|
58326
58490
|
nodes_loading: "Nodes laden...",
|
|
58327
58491
|
select_node: "Selecteer node",
|
|
@@ -58416,10 +58580,10 @@ var nl_NL_default = {
|
|
|
58416
58580
|
customer: "Klant",
|
|
58417
58581
|
customerAbbreviation: "Klantafkorting",
|
|
58418
58582
|
subscriptions: "Subscriptions",
|
|
58419
|
-
createdBy: "
|
|
58583
|
+
createdBy: "Aangemaakt door",
|
|
58420
58584
|
assignee: "Assignee",
|
|
58421
58585
|
processId: "Proces ID",
|
|
58422
|
-
started: "
|
|
58586
|
+
started: "Starttijd",
|
|
58423
58587
|
lastModified: "Aangepast op",
|
|
58424
58588
|
workflowTarget: "Target",
|
|
58425
58589
|
productTag: "Product tag"
|
|
@@ -58504,20 +58668,20 @@ var nl_NL_default = {
|
|
|
58504
58668
|
terminate: "Terminate workflow",
|
|
58505
58669
|
actions: "Acties",
|
|
58506
58670
|
subscription: {
|
|
58507
|
-
no_modify_deleted_related_objects: "
|
|
58508
|
-
no_modify_in_use_by_subscription: "
|
|
58509
|
-
no_modify_invalid_status: "
|
|
58510
|
-
no_modify_workflow: "
|
|
58511
|
-
no_termination_workflow: "
|
|
58512
|
-
no_validate_workflow: "
|
|
58513
|
-
not_in_sync: "
|
|
58514
|
-
relations_not_in_sync: "
|
|
58515
|
-
no_modify_subscription_in_use_by_others: "
|
|
58671
|
+
no_modify_deleted_related_objects: "Deze subscription kan niet worden gewijzigd omdat het verwijzingen bevat naar andere systemen die zijn verwijderd.",
|
|
58672
|
+
no_modify_in_use_by_subscription: "Deze subscription kan niet worden {gewijzigd} omdat het wordt gebruikt in andere subscriptions: {unterminated_in_use_by_subscriptions}",
|
|
58673
|
+
no_modify_invalid_status: "Deze subscription kan niet worden gewijzigd vanwege de status: {status}. Alleen abonnementen met de status {usable_when} kunnen worden {action}.",
|
|
58674
|
+
no_modify_workflow: "Deze subscription kan niet worden gewijzigd omdat het product geen modify workflows heeft.",
|
|
58675
|
+
no_termination_workflow: "Deze subscription kan niet worden be\xEBindigd omdat het product geen termination workflows heeft.",
|
|
58676
|
+
no_validate_workflow: "Deze subscription kan niet worden gevalideerd omdat het product geen validate workflows heeft.",
|
|
58677
|
+
not_in_sync: "Deze subscription kan niet worden gewijzigd omdat het niet in-sync is. Dit betekent dat er een fout zit in de registratie van de subscription of dat het wordt gewijzigd door een andere workflow.",
|
|
58678
|
+
relations_not_in_sync: "Deze subscription kan niet worden gewijzigd omdat sommige gerelateerde subscriptions niet in-sync zijn. Geblokkeerde subscriptions: {locked_relations}",
|
|
58679
|
+
no_modify_subscription_in_use_by_others: "Deze subscription kan niet worden gewijzigd omdat het in gebruik is door een of meer andere subscriptions: {unterminated_parents}"
|
|
58516
58680
|
}
|
|
58517
58681
|
},
|
|
58518
58682
|
subscriptionInstanceId: "Instance ID",
|
|
58519
58683
|
ownerSubscriptionId: "Owner subscription ID",
|
|
58520
|
-
inUseByRelations: "In
|
|
58684
|
+
inUseByRelations: "In gebruik door subscription(s)",
|
|
58521
58685
|
showDetails: "Toon details",
|
|
58522
58686
|
hideDetails: "Verberg details",
|
|
58523
58687
|
self: "Huidige subscription",
|
|
@@ -58525,11 +58689,11 @@ var nl_NL_default = {
|
|
|
58525
58689
|
productName: "Produkt",
|
|
58526
58690
|
fixedInputs: "Fixed inputs",
|
|
58527
58691
|
productInfo: "Product info",
|
|
58528
|
-
noProductBlockSelected: "
|
|
58692
|
+
noProductBlockSelected: "Geen product block geselecteerd",
|
|
58529
58693
|
productBlocks: "Product blocks",
|
|
58530
|
-
ctaSelectProductBlock: "
|
|
58531
|
-
startedBy: "
|
|
58532
|
-
startedAt: "
|
|
58694
|
+
ctaSelectProductBlock: "Selecteer \xE9\xE9n of meer product blocks om de details te bekijken",
|
|
58695
|
+
startedBy: "Aangemaakt door",
|
|
58696
|
+
startedAt: "Starttijd",
|
|
58533
58697
|
status: "Status",
|
|
58534
58698
|
id: "ID",
|
|
58535
58699
|
blockTitleSubscriptionDetails: "Subscription details",
|
|
@@ -58645,6 +58809,7 @@ export {
|
|
|
58645
58809
|
ConfirmationDialogContext,
|
|
58646
58810
|
ConfirmationDialogContextWrapper,
|
|
58647
58811
|
ConfirmationDialogProvider,
|
|
58812
|
+
ConnectedSelectField,
|
|
58648
58813
|
ContactPersonNameField,
|
|
58649
58814
|
CreateForm,
|
|
58650
58815
|
CustomerField,
|
|
@@ -58714,7 +58879,6 @@ export {
|
|
|
58714
58879
|
RenderDirection,
|
|
58715
58880
|
STEP_STATE_HIDDEN_KEYS,
|
|
58716
58881
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY,
|
|
58717
|
-
SelectField,
|
|
58718
58882
|
SortOrder,
|
|
58719
58883
|
StepStatus,
|
|
58720
58884
|
StoreProvider,
|
|
@@ -58732,6 +58896,7 @@ export {
|
|
|
58732
58896
|
ToastTypes,
|
|
58733
58897
|
TreeContext,
|
|
58734
58898
|
TreeProvider,
|
|
58899
|
+
UnconnectedSelectField,
|
|
58735
58900
|
UserInputFormWizard,
|
|
58736
58901
|
VlanField,
|
|
58737
58902
|
WFO_STATUS_COLOR_FIELD,
|