@w6w/ui 0.2.0 → 0.2.11
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/CHANGELOG.md +7 -0
- package/dist/AppPicker.d.ts +47 -2
- package/dist/CanvasLayer.d.ts +38 -0
- package/dist/{CodeBlock-Dot3Pd7P.js → CodeBlock-BqXDA35P.js} +2 -2
- package/dist/{CodeBlock-Dot3Pd7P.js.map → CodeBlock-BqXDA35P.js.map} +1 -1
- package/dist/{CodeBlock-CZu4TFSi.cjs → CodeBlock-CulfbnZD.cjs} +2 -2
- package/dist/{CodeBlock-CZu4TFSi.cjs.map → CodeBlock-CulfbnZD.cjs.map} +1 -1
- package/dist/ConfirmModal-Ln99S9NT.js +7919 -0
- package/dist/ConfirmModal-Ln99S9NT.js.map +1 -0
- package/dist/ConfirmModal-fjHW5rN-.cjs +14 -0
- package/dist/ConfirmModal-fjHW5rN-.cjs.map +1 -0
- package/dist/Copyable-DA6eiU7w.cjs +2 -0
- package/dist/Copyable-DA6eiU7w.cjs.map +1 -0
- package/dist/{Copyable-1niV9gUa.js → Copyable-F4NTaG77.js} +91 -15
- package/dist/Copyable-F4NTaG77.js.map +1 -0
- package/dist/EditConnectionModal.d.ts +6 -1
- package/dist/JsonEditor.d.ts +8 -0
- package/dist/Markdown.d.ts +25 -0
- package/dist/ParamsForm.d.ts +7 -1
- package/dist/StepBuilderModal.d.ts +23 -5
- package/dist/WorkflowFlowEditor.d.ts +14 -3
- package/dist/app-pages.d.ts +2 -0
- package/dist/canvas-types.d.ts +36 -0
- package/dist/canvas-utils.d.ts +44 -0
- package/dist/code.cjs +1 -1
- package/dist/code.mjs +2 -2
- package/dist/components/AuthFieldsForm.d.ts +11 -0
- package/dist/components/BudgetMeter.d.ts +15 -0
- package/dist/components/CallableList.d.ts +3 -2
- package/dist/components/Combobox.d.ts +8 -1
- package/dist/components/ConnectionList.d.ts +2 -3
- package/dist/components/CredentialPicker.d.ts +35 -0
- package/dist/components/DataTable.d.ts +27 -0
- package/dist/components/EmptyState.d.ts +9 -0
- package/dist/components/icons.d.ts +1 -1
- package/dist/dynamic-fields.d.ts +60 -0
- package/dist/editor-theme.d.ts +24 -0
- package/dist/flow-fanout.d.ts +2 -2
- package/dist/flow-types.d.ts +18 -1
- package/dist/flow-utils.d.ts +10 -3
- package/dist/flow.cjs +2 -2
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.d.ts +9 -0
- package/dist/flow.mjs +1519 -1138
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.mjs +1362 -1123
- package/dist/index.mjs.map +1 -1
- package/dist/note-markdown.d.ts +22 -0
- package/dist/provider.d.ts +56 -7
- package/dist/resolve-params.d.ts +5 -0
- package/dist/run-visuals.d.ts +4 -1
- package/dist/step-problems.d.ts +34 -0
- package/dist/types.d.ts +109 -3
- package/dist/use-dynamic-fields.d.ts +23 -0
- package/package.json +4 -2
- package/src/styles/_budget-meter.scss +46 -0
- package/src/styles/_callable-list.scss +15 -6
- package/src/styles/_canvas.scss +318 -0
- package/src/styles/_connections.scss +2 -14
- package/src/styles/_data-table.scss +55 -0
- package/src/styles/_empty-state.scss +21 -0
- package/src/styles/_flow.scss +11 -0
- package/src/styles/_fx.scss +23 -0
- package/src/styles/_layout.scss +10 -0
- package/src/styles/_markdown.scss +20 -0
- package/src/styles/_tester.scss +1 -14
- package/src/styles.css +572 -39
- package/src/styles.scss +5 -0
- package/dist/ConfirmModal-ChoiGy2K.cjs +0 -11
- package/dist/ConfirmModal-ChoiGy2K.cjs.map +0 -1
- package/dist/ConfirmModal-Wx3i8F1n.js +0 -6359
- package/dist/ConfirmModal-Wx3i8F1n.js.map +0 -1
- package/dist/Copyable-1niV9gUa.js.map +0 -1
- package/dist/Copyable-CYZU1o4X.cjs +0 -2
- package/dist/Copyable-CYZU1o4X.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { j as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useMemo as
|
|
9
|
-
import { C as
|
|
10
|
-
import { yaml as
|
|
11
|
-
import { EditorView as
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
import { i as
|
|
15
|
-
class
|
|
16
|
-
constructor(a, i,
|
|
17
|
-
super(
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
var qt = Object.defineProperty;
|
|
3
|
+
var Vt = (e, n, a) => n in e ? qt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a;
|
|
4
|
+
var he = (e, n, a) => Vt(e, typeof n != "symbol" ? n + "" : n, a);
|
|
5
|
+
import { j as bt, a2 as zt, J as me, ad as Gt, ap as ot, O as Fe, M as Yt, l as Qt, aq as Zt, I as ae, T as be, ar as Xt, as as Re, at as en, au as tn, av as nn } from "./ConfirmModal-Ln99S9NT.js";
|
|
6
|
+
import { ac as Fa, ab as Da, K as Ba, aw as Ja, ax as Ka, ay as ja, H as Ha, ai as Wa, a3 as qa, aa as Va, az as za, S as Ga, aA as Ya, aB as Qa, aC as Za, aD as Xa, aE as es, aF as ts, _ as ns, aG as as, aH as ss, aI as ls, u as is } from "./ConfirmModal-Ln99S9NT.js";
|
|
7
|
+
import { jsx as t, jsxs as l, Fragment as A } from "react/jsx-runtime";
|
|
8
|
+
import { useMemo as De, useState as g, useEffect as Q, useId as an, useRef as sn } from "react";
|
|
9
|
+
import { C as He } from "./CodeBlock-BqXDA35P.js";
|
|
10
|
+
import { yaml as ln } from "@codemirror/lang-yaml";
|
|
11
|
+
import { EditorView as rn } from "@codemirror/view";
|
|
12
|
+
import cn from "@uiw/react-codemirror";
|
|
13
|
+
import { u as on, a as dn, b as un, C as wn, I as dt } from "./Copyable-F4NTaG77.js";
|
|
14
|
+
import { i as cs } from "./Copyable-F4NTaG77.js";
|
|
15
|
+
class pe extends Error {
|
|
16
|
+
constructor(a, i, o, c) {
|
|
17
|
+
super(o);
|
|
18
|
+
he(this, "status");
|
|
19
|
+
he(this, "code");
|
|
20
20
|
/**
|
|
21
21
|
* The parsed error response body, when the server sent one. Carries the
|
|
22
22
|
* fields that ride alongside an error — e.g. an invoke's `logs` and
|
|
23
23
|
* `apiCalls` — which the message alone would drop.
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
this.name = "ApiError", this.status = a, this.code = i, this.body =
|
|
25
|
+
he(this, "body");
|
|
26
|
+
this.name = "ApiError", this.status = a, this.code = i, this.body = c;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ma(e) {
|
|
30
30
|
const n = e.baseUrl.replace(/\/$/, ""), a = e.fetch ?? globalThis.fetch, i = async () => typeof e.token == "function" ? await e.token() : e.token;
|
|
31
|
-
async function
|
|
32
|
-
const
|
|
33
|
-
|
|
31
|
+
async function o(s, r) {
|
|
32
|
+
const d = new Headers(r == null ? void 0 : r.headers), u = await i();
|
|
33
|
+
u && d.set("authorization", `Bearer ${u}`), r != null && r.body && !d.has("content-type") && d.set("content-type", "application/json");
|
|
34
34
|
let h;
|
|
35
35
|
try {
|
|
36
|
-
h = await a(`${n}${s}`, { ...
|
|
37
|
-
} catch (
|
|
38
|
-
throw new
|
|
36
|
+
h = await a(`${n}${s}`, { ...r, headers: d });
|
|
37
|
+
} catch (m) {
|
|
38
|
+
throw new pe(
|
|
39
39
|
0,
|
|
40
40
|
"network_error",
|
|
41
|
-
`Could not reach the w6w server (${(
|
|
41
|
+
`Could not reach the w6w server (${(r == null ? void 0 : r.method) ?? "GET"} ${n}${s}). It may be down or unreachable. (${m.message})`
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
45
|
-
let
|
|
46
|
-
if (
|
|
44
|
+
const f = await h.text();
|
|
45
|
+
let v = null;
|
|
46
|
+
if (f)
|
|
47
47
|
try {
|
|
48
|
-
|
|
48
|
+
v = JSON.parse(f);
|
|
49
49
|
} catch {
|
|
50
50
|
if (!h.ok)
|
|
51
|
-
throw new
|
|
51
|
+
throw new pe(
|
|
52
52
|
h.status,
|
|
53
53
|
"bad_response",
|
|
54
|
-
`Server returned a non-JSON ${h.status} response: ${
|
|
54
|
+
`Server returned a non-JSON ${h.status} response: ${f.slice(0, 200)}`
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
if (!h.ok) {
|
|
58
|
-
const
|
|
59
|
-
throw new
|
|
58
|
+
const m = (v == null ? void 0 : v.error) ?? {};
|
|
59
|
+
throw new pe(h.status, m.code ?? "error", m.message ?? h.statusText, v);
|
|
60
60
|
}
|
|
61
|
-
return { status: h.status, data:
|
|
61
|
+
return { status: h.status, data: v };
|
|
62
62
|
}
|
|
63
|
-
async function
|
|
64
|
-
const { data:
|
|
65
|
-
return
|
|
63
|
+
async function c(s, r) {
|
|
64
|
+
const { data: d } = await o(s, r);
|
|
65
|
+
return d;
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
68
|
// A bare GET only returns the server's default page (50) — every consumer
|
|
@@ -74,56 +74,86 @@ function ra(e) {
|
|
|
74
74
|
// to a token holder), drop what was gathered and restart once.
|
|
75
75
|
listApps: async () => {
|
|
76
76
|
const s = async () => {
|
|
77
|
-
const
|
|
78
|
-
let
|
|
77
|
+
const r = [];
|
|
78
|
+
let d;
|
|
79
79
|
for (; ; ) {
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
const h = await
|
|
83
|
-
if (
|
|
84
|
-
|
|
80
|
+
const u = new URLSearchParams({ limit: "200" });
|
|
81
|
+
d && u.set("cursor", d);
|
|
82
|
+
const h = await c(`/apps?${u}`);
|
|
83
|
+
if (r.push(...h.apps), !h.nextCursor || h.nextCursor === d) return r;
|
|
84
|
+
d = h.nextCursor;
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
try {
|
|
88
88
|
return await s();
|
|
89
|
-
} catch (
|
|
90
|
-
if (
|
|
89
|
+
} catch (r) {
|
|
90
|
+
if (r instanceof pe && (r.code === "snapshot_expired" || r.code === "unknown_snapshot"))
|
|
91
91
|
return await s();
|
|
92
|
-
throw
|
|
92
|
+
throw r;
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
// Bounded lookup: dedupe; `[]` sends nothing; chunks of <= 100 (the server's
|
|
96
96
|
// `MAX_IDS_PER_QUERY`), each `GET /apps?ids=a,b` with no limit/cursor.
|
|
97
97
|
listAppsByIds: async (s) => {
|
|
98
|
-
const
|
|
99
|
-
for (let
|
|
100
|
-
const
|
|
101
|
-
|
|
98
|
+
const r = Array.from(new Set(s)), d = [];
|
|
99
|
+
for (let u = 0; u < r.length; u += 100) {
|
|
100
|
+
const f = r.slice(u, u + 100).map(encodeURIComponent).join(","), v = await c(`/apps?ids=${f}`);
|
|
101
|
+
d.push(...v.apps);
|
|
102
102
|
}
|
|
103
|
-
return
|
|
103
|
+
return d;
|
|
104
104
|
},
|
|
105
|
-
getAppAuth: async (s) => (await
|
|
106
|
-
createConnection: (s,
|
|
105
|
+
getAppAuth: async (s) => (await c(`/apps/${encodeURIComponent(s)}/auths`)).auths ?? [],
|
|
106
|
+
createConnection: (s, r) => c(`/apps/${encodeURIComponent(s)}/connections`, {
|
|
107
107
|
method: "POST",
|
|
108
|
-
body: JSON.stringify(
|
|
109
|
-
}).then((
|
|
110
|
-
updateConnection: (s,
|
|
108
|
+
body: JSON.stringify(r)
|
|
109
|
+
}).then((d) => d.connection),
|
|
110
|
+
updateConnection: (s, r) => c(`/connections/${encodeURIComponent(s)}`, {
|
|
111
111
|
method: "PATCH",
|
|
112
|
-
body: JSON.stringify(
|
|
113
|
-
}).then((
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
body: JSON.stringify(r)
|
|
113
|
+
}).then((d) => d.connection),
|
|
114
|
+
listCredentials: (s) => {
|
|
115
|
+
const r = new URLSearchParams();
|
|
116
|
+
(s == null ? void 0 : s.contract) !== void 0 && r.set("contract", s.contract), (s == null ? void 0 : s.appId) !== void 0 && r.set("appId", s.appId), (s == null ? void 0 : s.authKey) !== void 0 && r.set("authKey", s.authKey);
|
|
117
|
+
const d = r.toString();
|
|
118
|
+
return c(`/credentials${d ? `?${d}` : ""}`).then(
|
|
119
|
+
(u) => u.credentials ?? []
|
|
120
|
+
);
|
|
121
|
+
},
|
|
122
|
+
createCredential: (s) => c("/credentials", {
|
|
123
|
+
method: "POST",
|
|
124
|
+
body: JSON.stringify(s)
|
|
125
|
+
}).then((r) => r.credential),
|
|
126
|
+
getCredential: (s) => c(`/credentials/${encodeURIComponent(s)}`).then(
|
|
127
|
+
(r) => r.credential
|
|
117
128
|
),
|
|
118
|
-
|
|
119
|
-
|
|
129
|
+
rotateCredential: (s, r) => c(`/credentials/${encodeURIComponent(s)}/rotate`, {
|
|
130
|
+
method: "POST",
|
|
131
|
+
body: JSON.stringify(r)
|
|
132
|
+
}).then((d) => d.credential),
|
|
133
|
+
setCredentialStatus: (s, r) => c(
|
|
134
|
+
`/credentials/${encodeURIComponent(s)}/${r === "disabled" ? "disable" : "enable"}`,
|
|
135
|
+
{ method: "POST" }
|
|
136
|
+
).then((d) => d.credential),
|
|
137
|
+
testCredential: (s) => c(`/credentials/${encodeURIComponent(s)}/test`, { method: "POST" }),
|
|
138
|
+
credentialDependents: (s) => c(
|
|
139
|
+
`/credentials/${encodeURIComponent(s)}/dependents`
|
|
140
|
+
).then((r) => r.dependents),
|
|
141
|
+
deleteCredential: async (s) => {
|
|
142
|
+
await c(`/credentials/${encodeURIComponent(s)}`, { method: "DELETE" });
|
|
143
|
+
},
|
|
144
|
+
startAppOAuthFlow: (s, r, d) => c(
|
|
145
|
+
`/apps/${encodeURIComponent(s)}/oauth-config/${encodeURIComponent(r)}/authorize-url`,
|
|
146
|
+
{ method: "POST", body: JSON.stringify(d) }
|
|
120
147
|
),
|
|
121
|
-
|
|
148
|
+
getAppActions: (s) => c(`/apps/${encodeURIComponent(s)}`).then(
|
|
149
|
+
(r) => r.actions ?? []
|
|
150
|
+
),
|
|
151
|
+
listConnectionsForApp: (s) => c(
|
|
122
152
|
`/apps/${encodeURIComponent(s)}/connections`
|
|
123
|
-
).then((
|
|
124
|
-
listConnections: () =>
|
|
125
|
-
invokeAction: (s,
|
|
126
|
-
`/apps/${encodeURIComponent(s)}/actions/${encodeURIComponent(
|
|
153
|
+
).then((r) => r.connections ?? []),
|
|
154
|
+
listConnections: () => c("/connections").then((s) => s.connections ?? []),
|
|
155
|
+
invokeAction: (s, r, d, u = {}) => c(
|
|
156
|
+
`/apps/${encodeURIComponent(s)}/actions/${encodeURIComponent(r)}/invoke`,
|
|
127
157
|
// This body is built KEY BY KEY, not by spreading `opts` — so every new
|
|
128
158
|
// option has to be named here or it is silently dropped before the wire
|
|
129
159
|
// (the caller compiles, the UI looks right, the field never leaves the
|
|
@@ -135,218 +165,154 @@ function ra(e) {
|
|
|
135
165
|
{
|
|
136
166
|
method: "POST",
|
|
137
167
|
body: JSON.stringify({
|
|
138
|
-
params:
|
|
139
|
-
connectionId:
|
|
140
|
-
project:
|
|
141
|
-
state:
|
|
168
|
+
params: d,
|
|
169
|
+
connectionId: u.connectionId,
|
|
170
|
+
project: u.project,
|
|
171
|
+
state: u.state
|
|
142
172
|
})
|
|
143
173
|
}
|
|
144
174
|
),
|
|
145
|
-
listSavedTests: (s) =>
|
|
175
|
+
listSavedTests: (s) => c(
|
|
146
176
|
`/connections/${encodeURIComponent(s)}/saved-tests`
|
|
147
|
-
).then((
|
|
148
|
-
createSavedTest: (s,
|
|
177
|
+
).then((r) => r.savedTests ?? []),
|
|
178
|
+
createSavedTest: (s, r) => c(
|
|
149
179
|
`/connections/${encodeURIComponent(s)}/saved-tests`,
|
|
150
|
-
{ method: "POST", body: JSON.stringify(
|
|
180
|
+
{ method: "POST", body: JSON.stringify(r) }
|
|
181
|
+
).then((d) => d.savedTest),
|
|
182
|
+
updateSavedTest: (s, r, d) => c(
|
|
183
|
+
`/connections/${encodeURIComponent(s)}/saved-tests/${encodeURIComponent(r)}`,
|
|
184
|
+
{ method: "PATCH", body: JSON.stringify(d) }
|
|
151
185
|
).then((u) => u.savedTest),
|
|
152
|
-
|
|
153
|
-
`/connections/${encodeURIComponent(s)}/saved-tests/${encodeURIComponent(
|
|
154
|
-
{ method: "PATCH", body: JSON.stringify(u) }
|
|
155
|
-
).then((w) => w.savedTest),
|
|
156
|
-
deleteSavedTest: (s, o) => r(
|
|
157
|
-
`/connections/${encodeURIComponent(s)}/saved-tests/${encodeURIComponent(o)}`,
|
|
186
|
+
deleteSavedTest: (s, r) => c(
|
|
187
|
+
`/connections/${encodeURIComponent(s)}/saved-tests/${encodeURIComponent(r)}`,
|
|
158
188
|
{ method: "DELETE" }
|
|
159
189
|
).then(() => {
|
|
160
190
|
}),
|
|
161
|
-
recordTestRun: (s,
|
|
191
|
+
recordTestRun: (s, r) => c(`/connections/${encodeURIComponent(s)}/test-runs`, {
|
|
162
192
|
method: "POST",
|
|
163
|
-
body: JSON.stringify(
|
|
193
|
+
body: JSON.stringify(r)
|
|
164
194
|
}).then(() => {
|
|
165
195
|
}),
|
|
166
|
-
listTestRuns: (s) =>
|
|
196
|
+
listTestRuns: (s) => c(
|
|
167
197
|
`/connections/${encodeURIComponent(s)}/test-runs`
|
|
168
|
-
).then((
|
|
169
|
-
saveStepTest: (s,
|
|
170
|
-
`/workflows/${encodeURIComponent(s)}/steps/${encodeURIComponent(
|
|
171
|
-
{ method: "POST", body: JSON.stringify(
|
|
172
|
-
).then((
|
|
173
|
-
listStepTests: (s,
|
|
174
|
-
`/workflows/${encodeURIComponent(s)}/steps/${encodeURIComponent(
|
|
175
|
-
).then((
|
|
176
|
-
recordStepTestRun: (s,
|
|
177
|
-
`/workflows/${encodeURIComponent(s)}/steps/${encodeURIComponent(
|
|
178
|
-
{ method: "POST", body: JSON.stringify(
|
|
198
|
+
).then((r) => r.runs ?? []),
|
|
199
|
+
saveStepTest: (s, r, d) => c(
|
|
200
|
+
`/workflows/${encodeURIComponent(s)}/steps/${encodeURIComponent(r)}/tests`,
|
|
201
|
+
{ method: "POST", body: JSON.stringify(d) }
|
|
202
|
+
).then((u) => u.stepTest),
|
|
203
|
+
listStepTests: (s, r) => c(
|
|
204
|
+
`/workflows/${encodeURIComponent(s)}/steps/${encodeURIComponent(r)}/tests`
|
|
205
|
+
).then((d) => d.stepTests ?? []),
|
|
206
|
+
recordStepTestRun: (s, r, d) => c(
|
|
207
|
+
`/workflows/${encodeURIComponent(s)}/steps/${encodeURIComponent(r)}/test-runs`,
|
|
208
|
+
{ method: "POST", body: JSON.stringify(d) }
|
|
179
209
|
).then(() => {
|
|
180
210
|
}),
|
|
181
|
-
listFunctions: () =>
|
|
182
|
-
getFunction: (s) =>
|
|
211
|
+
listFunctions: () => c("/functions").then((s) => s.functions ?? []),
|
|
212
|
+
getFunction: (s) => c(
|
|
183
213
|
`/functions/${encodeURIComponent(s)}`
|
|
184
|
-
).then((
|
|
214
|
+
).then((r) => ({ ...r.function, valid: r.valid })),
|
|
185
215
|
// The real synchronous route (`/functions/:id/invoke`) — deliberately NOT
|
|
186
216
|
// `POST /run`, which would give the test stage a different code path than
|
|
187
217
|
// the `@w6w/call` node it's standing in for. Returns the raw output,
|
|
188
218
|
// pinned against the committed `studio/src/repos/functions.ts` signature.
|
|
189
|
-
invokeFunction: (s,
|
|
219
|
+
invokeFunction: (s, r) => c(`/functions/${encodeURIComponent(s)}/invoke`, {
|
|
190
220
|
method: "POST",
|
|
191
|
-
body: JSON.stringify({ inputs:
|
|
192
|
-
}).then((
|
|
193
|
-
listWorkflows: () =>
|
|
194
|
-
getWorkflow: (s) =>
|
|
195
|
-
(
|
|
221
|
+
body: JSON.stringify({ inputs: r })
|
|
222
|
+
}).then((d) => d.output),
|
|
223
|
+
listWorkflows: () => c("/workflows").then((s) => s.workflows ?? []),
|
|
224
|
+
getWorkflow: (s) => c(`/workflows/${encodeURIComponent(s)}`).then(
|
|
225
|
+
(r) => r.workflow
|
|
196
226
|
),
|
|
197
227
|
// `rawReq`, not `req<T>` — the ONE caller that needs the response's own
|
|
198
228
|
// status code: `200` (the run reached a terminal state inside the wait
|
|
199
229
|
// window) vs `202` (the server's own wait-timeout, still running). Both
|
|
200
230
|
// are 2xx successes; `rawReq` already throws on a non-2xx.
|
|
201
|
-
runWorkflow: (s,
|
|
231
|
+
runWorkflow: (s, r = {}) => o(`/workflows/${encodeURIComponent(s)}/run?wait=true`, {
|
|
202
232
|
method: "POST",
|
|
203
|
-
body: JSON.stringify({ variables:
|
|
204
|
-
}).then(({ status:
|
|
233
|
+
body: JSON.stringify({ variables: r.variables, input: r.input })
|
|
234
|
+
}).then(({ status: d, data: u }) => ({ ...u ?? {}, terminal: d === 200 }))
|
|
205
235
|
};
|
|
206
236
|
}
|
|
207
|
-
function
|
|
208
|
-
if (!e) return "";
|
|
209
|
-
try {
|
|
210
|
-
return JSON.stringify(JSON.parse(e), null, 2);
|
|
211
|
-
} catch {
|
|
212
|
-
return e;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
function ln(e, n) {
|
|
216
|
-
return `${e.method}-${e.url ?? e.host}-${n}`;
|
|
217
|
-
}
|
|
218
|
-
function rn({ calls: e, defaultOpen: n, keyOf: a, title: i }) {
|
|
219
|
-
if (e.length === 0) return null;
|
|
220
|
-
const c = a ?? ln;
|
|
221
|
-
return /* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: 4 }, children: [
|
|
222
|
-
i !== !1 && /* @__PURE__ */ t("strong", { className: "w6w-small", children: i ?? /* @__PURE__ */ l(C, { children: [
|
|
223
|
-
"API ",
|
|
224
|
-
e.length === 1 ? "call" : "calls",
|
|
225
|
-
" (",
|
|
226
|
-
e.length,
|
|
227
|
-
")"
|
|
228
|
-
] }) }),
|
|
229
|
-
e.map((r, s) => /* @__PURE__ */ l(
|
|
230
|
-
"details",
|
|
231
|
-
{
|
|
232
|
-
open: n,
|
|
233
|
-
className: "w6w-result",
|
|
234
|
-
style: { padding: 8 },
|
|
235
|
-
children: [
|
|
236
|
-
/* @__PURE__ */ t("summary", { style: { cursor: "pointer" }, children: /* @__PURE__ */ l("span", { className: "w6w-small", children: [
|
|
237
|
-
r.method,
|
|
238
|
-
" ",
|
|
239
|
-
r.url ?? r.host,
|
|
240
|
-
" →",
|
|
241
|
-
" ",
|
|
242
|
-
/* @__PURE__ */ t("strong", { children: r.error ? "failed" : r.status }),
|
|
243
|
-
r.durationMs !== void 0 && /* @__PURE__ */ l("span", { className: "w6w-muted", children: [
|
|
244
|
-
" · ",
|
|
245
|
-
r.durationMs,
|
|
246
|
-
"ms"
|
|
247
|
-
] })
|
|
248
|
-
] }) }),
|
|
249
|
-
/* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: 6, marginTop: 8 }, children: [
|
|
250
|
-
r.error && /* @__PURE__ */ t("div", { className: "w6w-error w6w-small", children: r.error }),
|
|
251
|
-
/* @__PURE__ */ t("div", { className: "w6w-muted w6w-small", children: "Request headers" }),
|
|
252
|
-
/* @__PURE__ */ t("pre", { className: "w6w-result", children: JSON.stringify(r.requestHeaders ?? {}, null, 2) }),
|
|
253
|
-
r.requestBody && /* @__PURE__ */ l(C, { children: [
|
|
254
|
-
/* @__PURE__ */ t("div", { className: "w6w-muted w6w-small", children: "Request body" }),
|
|
255
|
-
/* @__PURE__ */ t("pre", { className: "w6w-result", children: tt(r.requestBody) })
|
|
256
|
-
] }),
|
|
257
|
-
/* @__PURE__ */ t("div", { className: "w6w-muted w6w-small", children: "Response headers" }),
|
|
258
|
-
/* @__PURE__ */ t("pre", { className: "w6w-result", children: JSON.stringify(r.responseHeaders ?? {}, null, 2) }),
|
|
259
|
-
r.responseBody && /* @__PURE__ */ l(C, { children: [
|
|
260
|
-
/* @__PURE__ */ t("div", { className: "w6w-muted w6w-small", children: "Response body" }),
|
|
261
|
-
/* @__PURE__ */ t("pre", { className: "w6w-result", children: tt(r.responseBody) })
|
|
262
|
-
] }),
|
|
263
|
-
r.truncated && /* @__PURE__ */ t("div", { className: "w6w-muted w6w-small", children: "A captured body exceeded the size cap and was truncated." })
|
|
264
|
-
] })
|
|
265
|
-
]
|
|
266
|
-
},
|
|
267
|
-
c(r, s)
|
|
268
|
-
))
|
|
269
|
-
] });
|
|
270
|
-
}
|
|
271
|
-
function H({
|
|
237
|
+
function Be({
|
|
272
238
|
title: e,
|
|
273
239
|
subtitle: n,
|
|
274
240
|
icon: a,
|
|
275
241
|
trailing: i,
|
|
276
|
-
active:
|
|
277
|
-
onClick:
|
|
242
|
+
active: o = !1,
|
|
243
|
+
onClick: c,
|
|
278
244
|
href: s,
|
|
279
|
-
ariaLabel:
|
|
245
|
+
ariaLabel: r
|
|
280
246
|
}) {
|
|
281
|
-
const
|
|
247
|
+
const d = /* @__PURE__ */ l(A, { children: [
|
|
282
248
|
a != null && /* @__PURE__ */ t("span", { className: "w6w-list-item-icon", children: a }),
|
|
283
249
|
/* @__PURE__ */ l("span", { className: "w6w-list-item-body", children: [
|
|
284
250
|
/* @__PURE__ */ t("span", { className: "w6w-list-item-title", children: e }),
|
|
285
251
|
n != null && /* @__PURE__ */ t("span", { className: "w6w-list-item-subtitle", children: n })
|
|
286
252
|
] }),
|
|
287
253
|
i != null && /* @__PURE__ */ t("span", { className: "w6w-list-item-trailing", children: i })
|
|
288
|
-
] }),
|
|
254
|
+
] }), u = `w6w-list-item${o ? " active" : ""}`;
|
|
289
255
|
return s !== void 0 ? /* @__PURE__ */ t(
|
|
290
256
|
"a",
|
|
291
257
|
{
|
|
292
|
-
className:
|
|
258
|
+
className: u,
|
|
293
259
|
href: s,
|
|
294
|
-
"aria-current":
|
|
295
|
-
"aria-label":
|
|
296
|
-
onClick:
|
|
297
|
-
children:
|
|
260
|
+
"aria-current": o ? "true" : void 0,
|
|
261
|
+
"aria-label": r,
|
|
262
|
+
onClick: c,
|
|
263
|
+
children: d
|
|
298
264
|
}
|
|
299
|
-
) :
|
|
265
|
+
) : c ? /* @__PURE__ */ t(
|
|
300
266
|
"button",
|
|
301
267
|
{
|
|
302
268
|
type: "button",
|
|
303
|
-
className:
|
|
304
|
-
"aria-pressed":
|
|
305
|
-
"aria-label":
|
|
306
|
-
onClick:
|
|
307
|
-
children:
|
|
269
|
+
className: u,
|
|
270
|
+
"aria-pressed": o,
|
|
271
|
+
"aria-label": r,
|
|
272
|
+
onClick: c,
|
|
273
|
+
children: d
|
|
308
274
|
}
|
|
309
|
-
) : /* @__PURE__ */ t("div", { className:
|
|
275
|
+
) : /* @__PURE__ */ t("div", { className: u, "aria-label": r, children: d });
|
|
310
276
|
}
|
|
311
|
-
function
|
|
277
|
+
function Ie(e) {
|
|
312
278
|
const n = Date.parse(e);
|
|
313
279
|
if (Number.isNaN(n)) return "";
|
|
314
280
|
const a = Math.max(0, Math.round((Date.now() - n) / 1e3));
|
|
315
281
|
if (a < 45) return "just now";
|
|
316
282
|
const i = Math.round(a / 60);
|
|
317
283
|
if (i < 60) return `${i}m ago`;
|
|
318
|
-
const
|
|
319
|
-
if (
|
|
320
|
-
const
|
|
321
|
-
return
|
|
284
|
+
const o = Math.round(i / 60);
|
|
285
|
+
if (o < 24) return `${o}h ago`;
|
|
286
|
+
const c = Math.round(o / 24);
|
|
287
|
+
return c < 7 ? `${c}d ago` : new Date(n).toLocaleDateString();
|
|
322
288
|
}
|
|
323
|
-
function
|
|
289
|
+
function ut(e) {
|
|
324
290
|
const n = {};
|
|
325
291
|
for (const a of (e == null ? void 0 : e.params) ?? [])
|
|
326
292
|
a.key && a.default !== void 0 && (n[a.key] = a.default);
|
|
327
293
|
return n;
|
|
328
294
|
}
|
|
329
|
-
function
|
|
330
|
-
var a, i,
|
|
295
|
+
function hn(e) {
|
|
296
|
+
var a, i, o;
|
|
331
297
|
const n = e.indexOf("{");
|
|
332
298
|
if (n >= 0)
|
|
333
299
|
try {
|
|
334
|
-
const
|
|
300
|
+
const c = JSON.parse(e.slice(n)), s = ((i = (a = c == null ? void 0 : c.errors) == null ? void 0 : a[0]) == null ? void 0 : i.message) ?? (typeof (c == null ? void 0 : c.error) == "object" ? (o = c.error) == null ? void 0 : o.message : c == null ? void 0 : c.error) ?? (c == null ? void 0 : c.message);
|
|
335
301
|
if (typeof s == "string" && s.trim()) {
|
|
336
|
-
const
|
|
337
|
-
return
|
|
302
|
+
const r = e.slice(0, n).replace(/[:\s]+$/, "");
|
|
303
|
+
return r ? `${r}: ${s.trim()}` : s.trim();
|
|
338
304
|
}
|
|
339
305
|
} catch {
|
|
340
306
|
}
|
|
341
307
|
return e;
|
|
342
308
|
}
|
|
343
|
-
function
|
|
309
|
+
function kt(e) {
|
|
344
310
|
return typeof e == "object" && e !== null && typeof e.status == "number" && typeof e.code == "string";
|
|
345
311
|
}
|
|
346
|
-
function
|
|
347
|
-
if (!
|
|
312
|
+
function mn(e) {
|
|
313
|
+
if (!kt(e))
|
|
348
314
|
return { headline: (e == null ? void 0 : e.message) ?? "The action failed to run." };
|
|
349
|
-
const n =
|
|
315
|
+
const n = hn(e.message ?? ""), a = `${e.status} ${e.code} ${e.message ?? ""}`.toLowerCase();
|
|
350
316
|
return e.status === 401 || e.status === 403 || /\b(401|403)\b|forbidden|unauthorized|not authorized|permission|scope|access denied|invalid api key|invalid credential/.test(
|
|
351
317
|
a
|
|
352
318
|
) ? {
|
|
@@ -355,161 +321,161 @@ function cn(e) {
|
|
|
355
321
|
detail: n
|
|
356
322
|
} : { headline: "The action returned an error.", detail: n };
|
|
357
323
|
}
|
|
358
|
-
function
|
|
359
|
-
const n =
|
|
324
|
+
function pn(e) {
|
|
325
|
+
const n = kt(e) ? e.body ?? e.raw : null;
|
|
360
326
|
return (n == null ? void 0 : n.apiCalls) ?? [];
|
|
361
327
|
}
|
|
362
|
-
function
|
|
363
|
-
const [e, n] =
|
|
364
|
-
return { text: e, value: a, invalid:
|
|
365
|
-
n(
|
|
366
|
-
const
|
|
367
|
-
if (
|
|
368
|
-
|
|
328
|
+
function Oe() {
|
|
329
|
+
const [e, n] = g(""), [a, i] = g(void 0), [o, c] = g(!1);
|
|
330
|
+
return { text: e, value: a, invalid: o, onChange: (r) => {
|
|
331
|
+
n(r);
|
|
332
|
+
const d = r.trim();
|
|
333
|
+
if (d === "") {
|
|
334
|
+
c(!1);
|
|
369
335
|
return;
|
|
370
336
|
}
|
|
371
337
|
try {
|
|
372
|
-
const
|
|
373
|
-
|
|
338
|
+
const u = JSON.parse(d);
|
|
339
|
+
u !== null && typeof u == "object" && !Array.isArray(u) ? (i(u), c(!1)) : c(!0);
|
|
374
340
|
} catch {
|
|
375
|
-
|
|
341
|
+
c(!0);
|
|
376
342
|
}
|
|
377
343
|
} };
|
|
378
344
|
}
|
|
379
|
-
function
|
|
345
|
+
function pa({
|
|
380
346
|
appId: e,
|
|
381
347
|
actions: n,
|
|
382
348
|
connectionId: a,
|
|
383
349
|
action: i,
|
|
384
|
-
seedValues:
|
|
385
|
-
onSavedTestsChanged:
|
|
350
|
+
seedValues: o,
|
|
351
|
+
onSavedTestsChanged: c,
|
|
386
352
|
seedTestId: s,
|
|
387
|
-
onDirtyChange:
|
|
388
|
-
onTestSaved:
|
|
389
|
-
onDeleted:
|
|
353
|
+
onDirtyChange: r,
|
|
354
|
+
onTestSaved: d,
|
|
355
|
+
onDeleted: u,
|
|
390
356
|
embedded: h = !1
|
|
391
357
|
}) {
|
|
392
|
-
var
|
|
393
|
-
const
|
|
394
|
-
const
|
|
395
|
-
return
|
|
396
|
-
}, [n]), [
|
|
397
|
-
const
|
|
398
|
-
return
|
|
399
|
-
}, [
|
|
400
|
-
key:
|
|
401
|
-
values:
|
|
402
|
-
})), [
|
|
403
|
-
if (
|
|
404
|
-
const
|
|
405
|
-
|
|
358
|
+
var rt;
|
|
359
|
+
const f = bt(), v = De(() => {
|
|
360
|
+
const w = [...n];
|
|
361
|
+
return w.sort((x, _) => (x.title || x.key).localeCompare(_.title || _.key)), w;
|
|
362
|
+
}, [n]), [m, N] = g((i == null ? void 0 : i.key) ?? ""), y = i ?? n.find((w) => w.key === m) ?? null, [p, P] = g(!1), [E, M] = g(null), [I, C] = g(void 0), [S, O] = g([]), F = Oe(), U = Oe(), k = Oe(), [R, Z] = g(""), [B, J] = g(""), D = F.invalid || U.invalid || k.invalid, X = () => {
|
|
363
|
+
const w = {};
|
|
364
|
+
return F.text.trim() !== "" && F.value !== void 0 && (w.body = F.value), U.text.trim() !== "" && U.value !== void 0 && (w.query = U.value), k.text.trim() !== "" && k.value !== void 0 && (w.headers = k.value), R && (w.target = R), B.trim() !== "" && (w.match = B.trim()), Object.keys(w).length > 0 ? w : void 0;
|
|
365
|
+
}, [V, z] = g("form"), [ke, ie] = g(""), [xe, G] = g(!1), [b, $] = g(!1), T = (y == null ? void 0 : y.key) ?? null, K = o ? { ...o } : ut(y), [Ge, re] = g(() => ({
|
|
366
|
+
key: T,
|
|
367
|
+
values: K
|
|
368
|
+
})), [j, ee] = g(s ?? null), [Ye, ce] = g(K);
|
|
369
|
+
if (Ge.key !== T) {
|
|
370
|
+
const w = ut(y);
|
|
371
|
+
re({ key: T, values: w }), ce(w), ee(s ?? null), M(null), C(void 0), O([]);
|
|
406
372
|
}
|
|
407
|
-
const [
|
|
408
|
-
s !==
|
|
409
|
-
const [
|
|
410
|
-
if (
|
|
411
|
-
const
|
|
412
|
-
if (
|
|
413
|
-
const
|
|
414
|
-
|
|
373
|
+
const [At, Rt] = g(s);
|
|
374
|
+
s !== At && (Rt(s), ee(s ?? null));
|
|
375
|
+
const [Qe, It] = g(o);
|
|
376
|
+
if (o !== Qe) {
|
|
377
|
+
const w = JSON.stringify(o ?? null) !== JSON.stringify(Qe ?? null);
|
|
378
|
+
if (It(o), o && w) {
|
|
379
|
+
const x = { ...o };
|
|
380
|
+
re({ key: T, values: x }), ce(x), M(null), C(void 0), O([]);
|
|
415
381
|
}
|
|
416
382
|
}
|
|
417
|
-
const
|
|
418
|
-
() => JSON.stringify(
|
|
419
|
-
[
|
|
383
|
+
const H = Ge.values, Ze = (w) => re({ key: T, values: w }), Xe = De(
|
|
384
|
+
() => JSON.stringify(H) !== JSON.stringify(Ye),
|
|
385
|
+
[H, Ye]
|
|
420
386
|
);
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
}, [
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
},
|
|
427
|
-
if (!
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
let
|
|
431
|
-
const
|
|
387
|
+
Q(() => {
|
|
388
|
+
r == null || r(Xe);
|
|
389
|
+
}, [Xe]);
|
|
390
|
+
const Ot = () => {
|
|
391
|
+
ie(JSON.stringify(H, null, 2)), G(!1), z("json");
|
|
392
|
+
}, Et = async (w) => {
|
|
393
|
+
if (!y || D) return;
|
|
394
|
+
const x = y.key;
|
|
395
|
+
P(!0), M(null), C(void 0), O([]);
|
|
396
|
+
let _;
|
|
397
|
+
const Y = X();
|
|
432
398
|
try {
|
|
433
|
-
const
|
|
399
|
+
const W = await f.invokeAction(e, x, w, {
|
|
434
400
|
connectionId: a,
|
|
435
|
-
...
|
|
401
|
+
...Y ? { overrides: Y } : {}
|
|
436
402
|
});
|
|
437
|
-
|
|
438
|
-
} catch (
|
|
439
|
-
const
|
|
440
|
-
|
|
403
|
+
C(W.value), O(W.apiCalls ?? []), _ = { ok: !0, summary: "OK", result: W.value };
|
|
404
|
+
} catch (W) {
|
|
405
|
+
const ct = mn(W);
|
|
406
|
+
M(ct), O(pn(W)), _ = { ok: !1, summary: ct.headline };
|
|
441
407
|
} finally {
|
|
442
|
-
|
|
408
|
+
P(!1);
|
|
443
409
|
}
|
|
444
410
|
if (a)
|
|
445
411
|
try {
|
|
446
|
-
await
|
|
447
|
-
savedTestId:
|
|
448
|
-
actionKey:
|
|
449
|
-
ok:
|
|
450
|
-
summary:
|
|
451
|
-
result:
|
|
452
|
-
}),
|
|
412
|
+
await f.recordTestRun(a, {
|
|
413
|
+
savedTestId: j ?? null,
|
|
414
|
+
actionKey: x,
|
|
415
|
+
ok: _.ok,
|
|
416
|
+
summary: _.summary.slice(0, 200),
|
|
417
|
+
result: _.result
|
|
418
|
+
}), Te(), Jt(), c == null || c();
|
|
453
419
|
} catch {
|
|
454
420
|
}
|
|
455
|
-
},
|
|
456
|
-
|
|
421
|
+
}, Mt = () => Et(H), [oe, et] = g(null), [de, te] = g(null), [Pt, _t] = g(0), [Lt, ue] = g(!1), [Ce, Se] = g(""), [Ut, $e] = g(!1), Te = () => _t((w) => w + 1);
|
|
422
|
+
Q(() => {
|
|
457
423
|
if (!a) {
|
|
458
|
-
|
|
424
|
+
et(null);
|
|
459
425
|
return;
|
|
460
426
|
}
|
|
461
|
-
let
|
|
462
|
-
return
|
|
463
|
-
|
|
427
|
+
let w = !1;
|
|
428
|
+
return te(null), f.listSavedTests(a).then((x) => !w && et(x)).catch((x) => !w && te(x.message)), () => {
|
|
429
|
+
w = !0;
|
|
464
430
|
};
|
|
465
|
-
}, [
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
if (!a || !
|
|
470
|
-
|
|
431
|
+
}, [f, a, Pt]);
|
|
432
|
+
const tt = T ? (oe ?? []).filter((w) => w.actionKey === T) : [], [Ft, Ae] = g(null), [Dt, Bt] = g(0), Jt = () => Bt((w) => w + 1);
|
|
433
|
+
Q(() => {
|
|
434
|
+
const w = f.listTestRuns;
|
|
435
|
+
if (!a || !w) {
|
|
436
|
+
Ae(null);
|
|
471
437
|
return;
|
|
472
438
|
}
|
|
473
|
-
let
|
|
474
|
-
return
|
|
475
|
-
|
|
439
|
+
let x = !1;
|
|
440
|
+
return w(a).then((_) => !x && Ae(_)).catch(() => !x && Ae(null)), () => {
|
|
441
|
+
x = !0;
|
|
476
442
|
};
|
|
477
|
-
}, [
|
|
478
|
-
const
|
|
479
|
-
!a || !
|
|
480
|
-
},
|
|
481
|
-
!a || !
|
|
482
|
-
},
|
|
483
|
-
if (!(!a || !
|
|
443
|
+
}, [f, a, Dt]);
|
|
444
|
+
const nt = T ? (Ft ?? []).filter((w) => w.actionKey === T).slice().sort((w, x) => Date.parse(x.occurredAt) - Date.parse(w.occurredAt)) : [], Kt = () => {
|
|
445
|
+
!a || !y || (Se(""), te(null), ue(!0));
|
|
446
|
+
}, jt = () => {
|
|
447
|
+
!a || !y || (j ? at() : Kt());
|
|
448
|
+
}, at = async () => {
|
|
449
|
+
if (!(!a || !y))
|
|
484
450
|
try {
|
|
485
|
-
let
|
|
486
|
-
if (
|
|
487
|
-
|
|
451
|
+
let w;
|
|
452
|
+
if (j)
|
|
453
|
+
w = await f.updateSavedTest(a, j, { values: H });
|
|
488
454
|
else {
|
|
489
|
-
const
|
|
490
|
-
if (!
|
|
491
|
-
|
|
492
|
-
actionKey:
|
|
493
|
-
name:
|
|
494
|
-
values:
|
|
495
|
-
}),
|
|
455
|
+
const x = Ce.trim();
|
|
456
|
+
if (!x) return;
|
|
457
|
+
w = await f.createSavedTest(a, {
|
|
458
|
+
actionKey: y.key,
|
|
459
|
+
name: x,
|
|
460
|
+
values: H
|
|
461
|
+
}), ee(w.id);
|
|
496
462
|
}
|
|
497
|
-
|
|
498
|
-
} catch (
|
|
499
|
-
|
|
463
|
+
ce({ ...H }), ue(!1), Se(""), Te(), c == null || c(), d == null || d(w);
|
|
464
|
+
} catch (w) {
|
|
465
|
+
te(w.message);
|
|
500
466
|
}
|
|
501
|
-
},
|
|
502
|
-
const
|
|
503
|
-
|
|
504
|
-
},
|
|
505
|
-
if (!a || !
|
|
506
|
-
const
|
|
467
|
+
}, Ht = (w) => {
|
|
468
|
+
const x = { ...w.values };
|
|
469
|
+
re({ key: T, values: x }), ce(x), ee(w.id), z("form"), M(null), C(void 0), O([]);
|
|
470
|
+
}, Wt = async () => {
|
|
471
|
+
if (!a || !j) return;
|
|
472
|
+
const w = j;
|
|
507
473
|
try {
|
|
508
|
-
await
|
|
509
|
-
} catch (
|
|
510
|
-
|
|
474
|
+
await f.deleteSavedTest(a, w), ee(null), Te(), c == null || c(), u == null || u(w);
|
|
475
|
+
} catch (x) {
|
|
476
|
+
te(x.message);
|
|
511
477
|
}
|
|
512
|
-
},
|
|
478
|
+
}, st = /* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1-5)" }, children: [
|
|
513
479
|
/* @__PURE__ */ l(
|
|
514
480
|
"div",
|
|
515
481
|
{
|
|
@@ -522,9 +488,9 @@ function oa({
|
|
|
522
488
|
"button",
|
|
523
489
|
{
|
|
524
490
|
type: "button",
|
|
525
|
-
className: `w6w-btn w6w-btn-sm w6w-btn-ghost${
|
|
526
|
-
"aria-pressed":
|
|
527
|
-
onClick: () =>
|
|
491
|
+
className: `w6w-btn w6w-btn-sm w6w-btn-ghost${V === "form" ? " active" : ""}`,
|
|
492
|
+
"aria-pressed": V === "form",
|
|
493
|
+
onClick: () => z("form"),
|
|
528
494
|
children: "Form"
|
|
529
495
|
}
|
|
530
496
|
),
|
|
@@ -532,9 +498,9 @@ function oa({
|
|
|
532
498
|
"button",
|
|
533
499
|
{
|
|
534
500
|
type: "button",
|
|
535
|
-
className: `w6w-btn w6w-btn-sm w6w-btn-ghost${
|
|
536
|
-
"aria-pressed":
|
|
537
|
-
onClick:
|
|
501
|
+
className: `w6w-btn w6w-btn-sm w6w-btn-ghost${V === "json" ? " active" : ""}`,
|
|
502
|
+
"aria-pressed": V === "json",
|
|
503
|
+
onClick: Ot,
|
|
538
504
|
children: "JSON"
|
|
539
505
|
}
|
|
540
506
|
),
|
|
@@ -543,34 +509,42 @@ function oa({
|
|
|
543
509
|
{
|
|
544
510
|
type: "button",
|
|
545
511
|
className: "w6w-btn w6w-btn-sm w6w-btn-ghost",
|
|
546
|
-
"aria-pressed":
|
|
547
|
-
title:
|
|
548
|
-
"aria-label":
|
|
549
|
-
onClick: () =>
|
|
550
|
-
children:
|
|
512
|
+
"aria-pressed": b,
|
|
513
|
+
title: b ? "Collapse the params editor" : "Open the params editor in a larger view",
|
|
514
|
+
"aria-label": b ? "Collapse the params editor" : "Open the params editor in a larger view",
|
|
515
|
+
onClick: () => $((w) => !w),
|
|
516
|
+
children: b ? "⤡" : "⤢"
|
|
551
517
|
}
|
|
552
518
|
)
|
|
553
519
|
] })
|
|
554
520
|
]
|
|
555
521
|
}
|
|
556
522
|
),
|
|
557
|
-
|
|
523
|
+
V === "form" ? /* @__PURE__ */ t(
|
|
524
|
+
zt,
|
|
525
|
+
{
|
|
526
|
+
params: (y == null ? void 0 : y.params) ?? [],
|
|
527
|
+
values: H,
|
|
528
|
+
onChange: Ze,
|
|
529
|
+
dynamic: y ? { appId: e, actionKey: y.key, connectionId: a } : void 0
|
|
530
|
+
}
|
|
531
|
+
) : /* @__PURE__ */ l(A, { children: [
|
|
558
532
|
/* @__PURE__ */ t(
|
|
559
|
-
|
|
533
|
+
me,
|
|
560
534
|
{
|
|
561
|
-
value:
|
|
562
|
-
onChange:
|
|
563
|
-
minHeight:
|
|
535
|
+
value: ke,
|
|
536
|
+
onChange: ie,
|
|
537
|
+
minHeight: b ? "50vh" : "200px",
|
|
564
538
|
"aria-label": "Params JSON",
|
|
565
|
-
onValidChange: (
|
|
566
|
-
|
|
539
|
+
onValidChange: (w) => {
|
|
540
|
+
w !== null && typeof w == "object" && !Array.isArray(w) && Ze(w);
|
|
567
541
|
},
|
|
568
|
-
onValidityChange: ({ valid:
|
|
542
|
+
onValidityChange: ({ valid: w }) => G(!w)
|
|
569
543
|
}
|
|
570
544
|
),
|
|
571
|
-
|
|
545
|
+
xe && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
|
|
572
546
|
] })
|
|
573
|
-
] }),
|
|
547
|
+
] }), lt = /* @__PURE__ */ l("details", { className: "w6w-section", "data-testid": "overrides-region", children: [
|
|
574
548
|
/* @__PURE__ */ l("summary", { className: "w6w-section-summary", children: [
|
|
575
549
|
/* @__PURE__ */ t("span", { className: "w6w-section-title", children: "Overrides" }),
|
|
576
550
|
/* @__PURE__ */ t("span", { className: "w6w-section-subtitle", children: "Reach a vendor field this action's own params don't declare" })
|
|
@@ -579,41 +553,41 @@ function oa({
|
|
|
579
553
|
/* @__PURE__ */ l("div", { className: "w6w-field", children: [
|
|
580
554
|
/* @__PURE__ */ t("span", { children: "Body" }),
|
|
581
555
|
/* @__PURE__ */ t(
|
|
582
|
-
|
|
556
|
+
me,
|
|
583
557
|
{
|
|
584
|
-
value:
|
|
585
|
-
onChange:
|
|
558
|
+
value: F.text,
|
|
559
|
+
onChange: F.onChange,
|
|
586
560
|
minHeight: "80px",
|
|
587
561
|
"aria-label": "Overrides body (JSON)"
|
|
588
562
|
}
|
|
589
563
|
),
|
|
590
|
-
|
|
564
|
+
F.invalid && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
|
|
591
565
|
] }),
|
|
592
566
|
/* @__PURE__ */ l("div", { className: "w6w-field", children: [
|
|
593
567
|
/* @__PURE__ */ t("span", { children: "Query" }),
|
|
594
568
|
/* @__PURE__ */ t(
|
|
595
|
-
|
|
569
|
+
me,
|
|
596
570
|
{
|
|
597
|
-
value:
|
|
598
|
-
onChange:
|
|
571
|
+
value: U.text,
|
|
572
|
+
onChange: U.onChange,
|
|
599
573
|
minHeight: "80px",
|
|
600
574
|
"aria-label": "Overrides query (JSON)"
|
|
601
575
|
}
|
|
602
576
|
),
|
|
603
|
-
|
|
577
|
+
U.invalid && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
|
|
604
578
|
] }),
|
|
605
579
|
/* @__PURE__ */ l("div", { className: "w6w-field", children: [
|
|
606
580
|
/* @__PURE__ */ t("span", { children: "Headers" }),
|
|
607
581
|
/* @__PURE__ */ t(
|
|
608
|
-
|
|
582
|
+
me,
|
|
609
583
|
{
|
|
610
|
-
value:
|
|
611
|
-
onChange:
|
|
584
|
+
value: k.text,
|
|
585
|
+
onChange: k.onChange,
|
|
612
586
|
minHeight: "80px",
|
|
613
587
|
"aria-label": "Overrides headers (JSON)"
|
|
614
588
|
}
|
|
615
589
|
),
|
|
616
|
-
|
|
590
|
+
k.invalid && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
|
|
617
591
|
] }),
|
|
618
592
|
/* @__PURE__ */ l("label", { className: "w6w-field", children: [
|
|
619
593
|
/* @__PURE__ */ t("span", { children: "Target" }),
|
|
@@ -621,8 +595,8 @@ function oa({
|
|
|
621
595
|
"select",
|
|
622
596
|
{
|
|
623
597
|
"aria-label": "Overrides target",
|
|
624
|
-
value:
|
|
625
|
-
onChange: (
|
|
598
|
+
value: R,
|
|
599
|
+
onChange: (w) => Z(w.target.value),
|
|
626
600
|
children: [
|
|
627
601
|
/* @__PURE__ */ t("option", { value: "", children: "— default (first) —" }),
|
|
628
602
|
/* @__PURE__ */ t("option", { value: "first", children: "first" }),
|
|
@@ -639,15 +613,15 @@ function oa({
|
|
|
639
613
|
{
|
|
640
614
|
type: "text",
|
|
641
615
|
"aria-label": "Overrides match",
|
|
642
|
-
value:
|
|
616
|
+
value: B,
|
|
643
617
|
placeholder: "Restrict to requests whose URL contains…",
|
|
644
|
-
onChange: (
|
|
618
|
+
onChange: (w) => J(w.target.value)
|
|
645
619
|
}
|
|
646
620
|
)
|
|
647
621
|
] }),
|
|
648
622
|
/* @__PURE__ */ t("span", { className: "w6w-hint", children: "Merged onto the outbound request at the wire, never into the params above — name a field the way the vendor's own API documents it." })
|
|
649
623
|
] })
|
|
650
|
-
] }),
|
|
624
|
+
] }), we = a ? /* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1-5)" }, children: [
|
|
651
625
|
/* @__PURE__ */ t(
|
|
652
626
|
"div",
|
|
653
627
|
{
|
|
@@ -656,35 +630,35 @@ function oa({
|
|
|
656
630
|
children: /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "Saved tests" })
|
|
657
631
|
}
|
|
658
632
|
),
|
|
659
|
-
|
|
660
|
-
|
|
633
|
+
de && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: de }),
|
|
634
|
+
tt.length === 0 ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "No saved tests for this action yet." }) : /* @__PURE__ */ t(
|
|
661
635
|
"ul",
|
|
662
636
|
{
|
|
663
637
|
className: "w6w-stack",
|
|
664
638
|
style: { listStyle: "none", margin: 0, padding: 0, gap: "var(--w6w-sp-1-5)" },
|
|
665
|
-
children:
|
|
666
|
-
|
|
639
|
+
children: tt.map((w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
640
|
+
Be,
|
|
667
641
|
{
|
|
668
|
-
title:
|
|
669
|
-
subtitle:
|
|
642
|
+
title: w.name,
|
|
643
|
+
subtitle: w.lastRunAt ? /* @__PURE__ */ l("span", { children: [
|
|
670
644
|
/* @__PURE__ */ t(
|
|
671
645
|
"span",
|
|
672
646
|
{
|
|
673
|
-
style: { color:
|
|
674
|
-
children:
|
|
647
|
+
style: { color: w.lastRunOk ? "var(--w6w-success)" : "var(--w6w-danger)" },
|
|
648
|
+
children: w.lastRunOk ? "✓" : "✗"
|
|
675
649
|
}
|
|
676
650
|
),
|
|
677
651
|
" ",
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
] }) : `saved ${
|
|
681
|
-
active:
|
|
682
|
-
onClick: () =>
|
|
652
|
+
w.lastRunSummary ? `${w.lastRunSummary} · ` : "",
|
|
653
|
+
Ie(w.lastRunAt)
|
|
654
|
+
] }) : `saved ${Ie(w.updatedAt)}`,
|
|
655
|
+
active: w.id === j,
|
|
656
|
+
onClick: () => Ht(w)
|
|
683
657
|
}
|
|
684
|
-
) },
|
|
658
|
+
) }, w.id))
|
|
685
659
|
}
|
|
686
660
|
),
|
|
687
|
-
|
|
661
|
+
f.listTestRuns && nt.length > 0 && /* @__PURE__ */ l(A, { children: [
|
|
688
662
|
/* @__PURE__ */ t(
|
|
689
663
|
"div",
|
|
690
664
|
{
|
|
@@ -698,84 +672,84 @@ function oa({
|
|
|
698
672
|
{
|
|
699
673
|
className: "w6w-stack",
|
|
700
674
|
style: { listStyle: "none", margin: 0, padding: 0, gap: "var(--w6w-sp-1-5)" },
|
|
701
|
-
children:
|
|
702
|
-
|
|
675
|
+
children: nt.map((w) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
676
|
+
Be,
|
|
703
677
|
{
|
|
704
678
|
title: /* @__PURE__ */ l("span", { children: [
|
|
705
|
-
/* @__PURE__ */ t("span", { style: { color:
|
|
679
|
+
/* @__PURE__ */ t("span", { style: { color: w.ok ? "var(--w6w-success)" : "var(--w6w-danger)" }, children: w.ok ? "✓" : "✗" }),
|
|
706
680
|
" ",
|
|
707
|
-
|
|
681
|
+
w.actionKey
|
|
708
682
|
] }),
|
|
709
683
|
subtitle: /* @__PURE__ */ l("span", { children: [
|
|
710
|
-
|
|
711
|
-
|
|
684
|
+
w.summary ? `${w.summary} · ` : "",
|
|
685
|
+
Ie(w.occurredAt)
|
|
712
686
|
] })
|
|
713
687
|
}
|
|
714
|
-
) },
|
|
688
|
+
) }, w.id))
|
|
715
689
|
}
|
|
716
690
|
)
|
|
717
691
|
] })
|
|
718
|
-
] }) : null,
|
|
692
|
+
] }) : null, it = (rt = oe == null ? void 0 : oe.find((w) => w.id === j)) == null ? void 0 : rt.name;
|
|
719
693
|
return /* @__PURE__ */ l("div", { className: `w6w-stack${h ? " w6w-tester-embedded-root" : ""}`, children: [
|
|
720
694
|
!i && (n.length === 0 ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "This app exposes no actions." }) : (
|
|
721
695
|
// biome-ignore lint/a11y/noLabelWithoutControl: Combobox renders its own <select>/<input> INSIDE this label, so the field text labels the control at runtime; the rule cannot see through the component boundary.
|
|
722
696
|
/* @__PURE__ */ l("label", { className: "w6w-field", children: [
|
|
723
697
|
/* @__PURE__ */ l("span", { children: [
|
|
724
698
|
"Action",
|
|
725
|
-
|
|
699
|
+
T ? "" : " *"
|
|
726
700
|
] }),
|
|
727
701
|
/* @__PURE__ */ t(
|
|
728
|
-
|
|
702
|
+
Gt,
|
|
729
703
|
{
|
|
730
|
-
value:
|
|
704
|
+
value: m,
|
|
731
705
|
placeholder: "— pick an action —",
|
|
732
|
-
onChange:
|
|
733
|
-
options:
|
|
734
|
-
value:
|
|
735
|
-
label: `${
|
|
706
|
+
onChange: N,
|
|
707
|
+
options: v.map((w) => ({
|
|
708
|
+
value: w.key,
|
|
709
|
+
label: `${w.title ?? w.key} (${w.key})`
|
|
736
710
|
}))
|
|
737
711
|
}
|
|
738
712
|
)
|
|
739
713
|
] })
|
|
740
714
|
)),
|
|
741
|
-
|
|
715
|
+
y ? /* @__PURE__ */ l(A, { children: [
|
|
742
716
|
/* @__PURE__ */ l("div", { children: [
|
|
743
717
|
/* @__PURE__ */ l("strong", { children: [
|
|
744
|
-
|
|
718
|
+
y.title ?? y.key,
|
|
745
719
|
" ",
|
|
746
|
-
/* @__PURE__ */ t("code", { className: "w6w-muted", children:
|
|
720
|
+
/* @__PURE__ */ t("code", { className: "w6w-muted", children: y.key })
|
|
747
721
|
] }),
|
|
748
|
-
|
|
722
|
+
y.description && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", style: { margin: "var(--w6w-sp-0-5) 0 0" }, children: y.description })
|
|
749
723
|
] }),
|
|
750
724
|
(() => {
|
|
751
|
-
const
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
/* @__PURE__ */ t(
|
|
775
|
-
] }),
|
|
725
|
+
const w = E ? /* @__PURE__ */ l("div", { className: "w6w-result w6w-error", children: [
|
|
726
|
+
/* @__PURE__ */ t("strong", { children: E.headline }),
|
|
727
|
+
E.hint && /* @__PURE__ */ t("div", { style: { marginTop: "var(--w6w-sp-1-5)" }, children: E.hint }),
|
|
728
|
+
E.detail && /* @__PURE__ */ t(
|
|
729
|
+
"div",
|
|
730
|
+
{
|
|
731
|
+
className: "w6w-muted w6w-small",
|
|
732
|
+
style: {
|
|
733
|
+
marginTop: "var(--w6w-sp-1-5)",
|
|
734
|
+
whiteSpace: "pre-wrap",
|
|
735
|
+
wordBreak: "break-word"
|
|
736
|
+
},
|
|
737
|
+
children: E.detail
|
|
738
|
+
}
|
|
739
|
+
)
|
|
740
|
+
] }) : null, x = I !== void 0 ? /* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1)" }, children: [
|
|
741
|
+
/* @__PURE__ */ t("strong", { className: "w6w-small", children: "Result" }),
|
|
742
|
+
/* @__PURE__ */ t("pre", { className: "w6w-result", children: JSON.stringify(I, null, 2) })
|
|
743
|
+
] }) : null, _ = /* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
|
|
744
|
+
st,
|
|
745
|
+
lt,
|
|
746
|
+
w,
|
|
747
|
+
x,
|
|
748
|
+
/* @__PURE__ */ t(ot, { calls: S })
|
|
749
|
+
] }), Y = /* @__PURE__ */ l(
|
|
776
750
|
"div",
|
|
777
751
|
{
|
|
778
|
-
className: `w6w-tester-actions${h ||
|
|
752
|
+
className: `w6w-tester-actions${h || b ? " w6w-tester-actions-footer" : ""}`,
|
|
779
753
|
style: { display: "flex", gap: "var(--w6w-sp-2)" },
|
|
780
754
|
children: [
|
|
781
755
|
/* @__PURE__ */ t(
|
|
@@ -783,42 +757,59 @@ function oa({
|
|
|
783
757
|
{
|
|
784
758
|
type: "button",
|
|
785
759
|
className: "w6w-btn",
|
|
786
|
-
disabled:
|
|
787
|
-
onClick:
|
|
788
|
-
children:
|
|
760
|
+
disabled: p || D,
|
|
761
|
+
onClick: Mt,
|
|
762
|
+
children: p ? "Running…" : "Run action"
|
|
789
763
|
}
|
|
790
764
|
),
|
|
791
|
-
a && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn w6w-btn-ghost", onClick:
|
|
792
|
-
a &&
|
|
765
|
+
a && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn w6w-btn-ghost", onClick: jt, children: "Save test" }),
|
|
766
|
+
a && j && /* @__PURE__ */ t(
|
|
793
767
|
"button",
|
|
794
768
|
{
|
|
795
769
|
type: "button",
|
|
796
770
|
className: "w6w-btn w6w-btn-ghost",
|
|
797
771
|
style: { marginLeft: "auto", color: "var(--w6w-danger)" },
|
|
798
|
-
onClick: () =>
|
|
772
|
+
onClick: () => $e(!0),
|
|
799
773
|
children: "Delete"
|
|
800
774
|
}
|
|
801
775
|
)
|
|
802
776
|
]
|
|
803
777
|
}
|
|
804
|
-
),
|
|
805
|
-
|
|
806
|
-
|
|
778
|
+
), W = /* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
|
|
779
|
+
_,
|
|
780
|
+
Y
|
|
807
781
|
] });
|
|
808
782
|
return h ? /* @__PURE__ */ l("div", { className: "w6w-tester-embedded", children: [
|
|
809
|
-
/* @__PURE__ */ t("div", { className: "w6w-tester-embedded-scroll", children:
|
|
810
|
-
/* @__PURE__ */
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
783
|
+
/* @__PURE__ */ t("div", { className: "w6w-tester-embedded-scroll", children: /* @__PURE__ */ l("div", { className: "w6w-card-stack", children: [
|
|
784
|
+
/* @__PURE__ */ l("div", { className: "card", children: [
|
|
785
|
+
/* @__PURE__ */ t("div", { className: "section-head", children: /* @__PURE__ */ t("h3", { children: "Parameters" }) }),
|
|
786
|
+
/* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
|
|
787
|
+
st,
|
|
788
|
+
lt,
|
|
789
|
+
w
|
|
790
|
+
] })
|
|
791
|
+
] }),
|
|
792
|
+
(x || S.length > 0) && /* @__PURE__ */ l("div", { className: "card", children: [
|
|
793
|
+
/* @__PURE__ */ t("div", { className: "section-head", children: /* @__PURE__ */ t("h3", { children: "Result" }) }),
|
|
794
|
+
/* @__PURE__ */ l("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
|
|
795
|
+
I !== void 0 && /* @__PURE__ */ t("pre", { className: "w6w-result", children: JSON.stringify(I, null, 2) }),
|
|
796
|
+
/* @__PURE__ */ t(ot, { calls: S })
|
|
797
|
+
] })
|
|
798
|
+
] }),
|
|
799
|
+
we && /* @__PURE__ */ l("div", { className: "card", children: [
|
|
800
|
+
/* @__PURE__ */ t("div", { className: "section-head", children: /* @__PURE__ */ t("h3", { children: "Saved tests and history" }) }),
|
|
801
|
+
we
|
|
802
|
+
] })
|
|
803
|
+
] }) }),
|
|
804
|
+
Y
|
|
805
|
+
] }) : b ? /* @__PURE__ */ t(
|
|
806
|
+
Fe,
|
|
816
807
|
{
|
|
817
|
-
title: `Edit params — ${
|
|
818
|
-
onClose: () =>
|
|
808
|
+
title: `Edit params — ${y.title ?? y.key}`,
|
|
809
|
+
onClose: () => $(!1),
|
|
819
810
|
size: "full",
|
|
820
811
|
children: /* @__PURE__ */ l("div", { className: "w6w-tester-popout", children: [
|
|
821
|
-
/* @__PURE__ */ t("div", { className: "w6w-tester-popout-scroll", children:
|
|
812
|
+
/* @__PURE__ */ t("div", { className: "w6w-tester-popout-scroll", children: we ? /* @__PURE__ */ l(
|
|
822
813
|
"div",
|
|
823
814
|
{
|
|
824
815
|
style: {
|
|
@@ -827,23 +818,23 @@ function oa({
|
|
|
827
818
|
alignItems: "flex-start"
|
|
828
819
|
},
|
|
829
820
|
children: [
|
|
830
|
-
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children:
|
|
831
|
-
/* @__PURE__ */ t("div", { style: { width: 260, flexShrink: 0 }, children:
|
|
821
|
+
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: _ }),
|
|
822
|
+
/* @__PURE__ */ t("div", { style: { width: 260, flexShrink: 0 }, children: we })
|
|
832
823
|
]
|
|
833
824
|
}
|
|
834
|
-
) :
|
|
835
|
-
|
|
825
|
+
) : _ }),
|
|
826
|
+
Y
|
|
836
827
|
] })
|
|
837
828
|
}
|
|
838
|
-
) :
|
|
829
|
+
) : W;
|
|
839
830
|
})(),
|
|
840
|
-
|
|
831
|
+
Lt && /* @__PURE__ */ t(Fe, { title: "Save test", onClose: () => ue(!1), children: /* @__PURE__ */ l(
|
|
841
832
|
"form",
|
|
842
833
|
{
|
|
843
834
|
className: "w6w-stack",
|
|
844
835
|
style: { gap: "var(--w6w-sp-3)" },
|
|
845
|
-
onSubmit: (
|
|
846
|
-
|
|
836
|
+
onSubmit: (w) => {
|
|
837
|
+
w.preventDefault(), at();
|
|
847
838
|
},
|
|
848
839
|
children: [
|
|
849
840
|
/* @__PURE__ */ l("label", { className: "w6w-field", children: [
|
|
@@ -852,13 +843,13 @@ function oa({
|
|
|
852
843
|
"input",
|
|
853
844
|
{
|
|
854
845
|
type: "text",
|
|
855
|
-
value:
|
|
846
|
+
value: Ce,
|
|
856
847
|
placeholder: "e.g. valid sender",
|
|
857
|
-
onChange: (
|
|
848
|
+
onChange: (w) => Se(w.target.value)
|
|
858
849
|
}
|
|
859
850
|
)
|
|
860
851
|
] }),
|
|
861
|
-
|
|
852
|
+
de && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: de }),
|
|
862
853
|
/* @__PURE__ */ l(
|
|
863
854
|
"div",
|
|
864
855
|
{
|
|
@@ -869,67 +860,44 @@ function oa({
|
|
|
869
860
|
{
|
|
870
861
|
type: "button",
|
|
871
862
|
className: "w6w-btn w6w-btn-ghost",
|
|
872
|
-
onClick: () =>
|
|
863
|
+
onClick: () => ue(!1),
|
|
873
864
|
children: "Cancel"
|
|
874
865
|
}
|
|
875
866
|
),
|
|
876
|
-
/* @__PURE__ */ t("button", { type: "submit", className: "w6w-btn", disabled: !
|
|
867
|
+
/* @__PURE__ */ t("button", { type: "submit", className: "w6w-btn", disabled: !Ce.trim(), children: "Save" })
|
|
877
868
|
]
|
|
878
869
|
}
|
|
879
870
|
)
|
|
880
871
|
]
|
|
881
872
|
}
|
|
882
873
|
) }),
|
|
883
|
-
|
|
884
|
-
|
|
874
|
+
Ut && /* @__PURE__ */ t(
|
|
875
|
+
Yt,
|
|
885
876
|
{
|
|
886
877
|
title: "Delete saved test",
|
|
887
|
-
message:
|
|
878
|
+
message: it ? `Delete "${it}"? This cannot be undone.` : "Delete this saved test? This cannot be undone.",
|
|
888
879
|
confirmLabel: "Delete",
|
|
889
880
|
onConfirm: () => {
|
|
890
|
-
|
|
881
|
+
$e(!1), Wt();
|
|
891
882
|
},
|
|
892
|
-
onClose: () =>
|
|
883
|
+
onClose: () => $e(!1)
|
|
893
884
|
}
|
|
894
885
|
)
|
|
895
886
|
] }) : !i && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Pick an action above to test it." })
|
|
896
887
|
] });
|
|
897
888
|
}
|
|
898
|
-
function
|
|
899
|
-
const n =
|
|
900
|
-
|
|
901
|
-
Zt(),
|
|
902
|
-
Xt.theme({
|
|
903
|
-
"&": {
|
|
904
|
-
fontSize: "13px",
|
|
905
|
-
fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
906
|
-
backgroundColor: "var(--w6w-panel-2)",
|
|
907
|
-
color: "var(--w6w-text)",
|
|
908
|
-
border: "1px solid var(--w6w-border)",
|
|
909
|
-
borderRadius: "8px"
|
|
910
|
-
},
|
|
911
|
-
"&.cm-focused": { outline: "2px solid var(--w6w-accent)" },
|
|
912
|
-
".cm-gutters": {
|
|
913
|
-
backgroundColor: "var(--w6w-panel)",
|
|
914
|
-
color: "var(--w6w-muted)",
|
|
915
|
-
border: "none",
|
|
916
|
-
borderRight: "1px solid var(--w6w-border)"
|
|
917
|
-
},
|
|
918
|
-
".cm-scroller": { overflow: "auto" }
|
|
919
|
-
})
|
|
920
|
-
],
|
|
921
|
-
[]
|
|
922
|
-
);
|
|
923
|
-
function r(s) {
|
|
889
|
+
function fa(e) {
|
|
890
|
+
const n = Qt(e.theme), { copied: a, copy: i } = on(e.value), o = De(() => [ln(), rn.theme(Zt)], []);
|
|
891
|
+
function c(s) {
|
|
924
892
|
e.onChange(s);
|
|
925
893
|
}
|
|
926
894
|
return /* @__PURE__ */ l("div", { className: "w6w-yaml-editor", "aria-label": e["aria-label"] ?? "YAML editor", children: [
|
|
927
895
|
/* @__PURE__ */ t(
|
|
928
|
-
|
|
896
|
+
cn,
|
|
929
897
|
{
|
|
930
898
|
value: e.value,
|
|
931
|
-
onChange:
|
|
932
|
-
extensions:
|
|
899
|
+
onChange: c,
|
|
900
|
+
extensions: o,
|
|
933
901
|
placeholder: e.placeholder,
|
|
934
902
|
readOnly: e.readOnly,
|
|
935
903
|
editable: !e.readOnly,
|
|
@@ -947,7 +915,7 @@ function ca(e) {
|
|
|
947
915
|
}
|
|
948
916
|
}
|
|
949
917
|
),
|
|
950
|
-
e.copyable && /* @__PURE__ */ l(
|
|
918
|
+
e.copyable && /* @__PURE__ */ l(A, { children: [
|
|
951
919
|
/* @__PURE__ */ t(
|
|
952
920
|
"button",
|
|
953
921
|
{
|
|
@@ -955,47 +923,47 @@ function ca(e) {
|
|
|
955
923
|
className: `w6w-icon-btn w6w-copyable-btn${a ? " is-copied" : ""}`,
|
|
956
924
|
"aria-label": "Copy",
|
|
957
925
|
onClick: () => void i(),
|
|
958
|
-
children: a ? /* @__PURE__ */ t(
|
|
926
|
+
children: a ? /* @__PURE__ */ t(dn, {}) : /* @__PURE__ */ t(un, {})
|
|
959
927
|
}
|
|
960
928
|
),
|
|
961
929
|
/* @__PURE__ */ t("span", { className: "w6w-copyable-status", "aria-live": "polite", children: a ? "Copied" : "" })
|
|
962
930
|
] })
|
|
963
931
|
] });
|
|
964
932
|
}
|
|
965
|
-
const
|
|
966
|
-
function
|
|
933
|
+
const Ee = "…";
|
|
934
|
+
function fn(e, n, a = "end") {
|
|
967
935
|
if (n === void 0 || n < 1 || n >= e.length) return e;
|
|
968
936
|
if (a === "start")
|
|
969
|
-
return `${
|
|
937
|
+
return `${Ee}${e.slice(e.length - n)}`;
|
|
970
938
|
if (a === "end")
|
|
971
|
-
return `${e.slice(0, n)}${
|
|
972
|
-
const i = Math.ceil(n / 2),
|
|
973
|
-
return `${e.slice(0, i)}${
|
|
939
|
+
return `${e.slice(0, n)}${Ee}`;
|
|
940
|
+
const i = Math.ceil(n / 2), o = n - i;
|
|
941
|
+
return `${e.slice(0, i)}${Ee}${e.slice(e.length - o)}`;
|
|
974
942
|
}
|
|
975
|
-
function
|
|
976
|
-
const { value: n, chars: a, crop: i = "end", label:
|
|
977
|
-
return /* @__PURE__ */ t(
|
|
943
|
+
function vn(e) {
|
|
944
|
+
const { value: n, chars: a, crop: i = "end", label: o, className: c, copiedMs: s } = e, r = fn(n, a, i), d = ["w6w-copyable--bare", c].filter(Boolean).join(" ");
|
|
945
|
+
return /* @__PURE__ */ t(wn, { value: n, readOnly: !0, label: o, className: d, copiedMs: s, children: /* @__PURE__ */ t("span", { children: r }) });
|
|
978
946
|
}
|
|
979
|
-
const
|
|
947
|
+
const yn = {
|
|
980
948
|
ok: "Operational",
|
|
981
949
|
degraded: "Degraded",
|
|
982
950
|
down: "Down",
|
|
983
951
|
unknown: "Unknown"
|
|
984
952
|
};
|
|
985
|
-
function
|
|
986
|
-
const i = n ??
|
|
953
|
+
function We({ state: e, label: n, ariaLabel: a }) {
|
|
954
|
+
const i = n ?? yn[e];
|
|
987
955
|
return /* @__PURE__ */ l("span", { className: `w6w-health-pill w6w-health-pill-${e}`, "aria-label": a, children: [
|
|
988
956
|
/* @__PURE__ */ t("span", { className: "w6w-health-pill-dot", "aria-hidden": "true" }),
|
|
989
957
|
/* @__PURE__ */ t("span", { className: "w6w-health-pill-label", children: i })
|
|
990
958
|
] });
|
|
991
959
|
}
|
|
992
|
-
const
|
|
960
|
+
const Nn = {
|
|
993
961
|
ok: "Operational",
|
|
994
962
|
degraded: "Degraded",
|
|
995
963
|
down: "Down",
|
|
996
964
|
unknown: "Unknown"
|
|
997
965
|
};
|
|
998
|
-
function
|
|
966
|
+
function gn({ days: e, ariaLabel: n }) {
|
|
999
967
|
return e.length === 0 ? null : /* @__PURE__ */ t(
|
|
1000
968
|
"div",
|
|
1001
969
|
{
|
|
@@ -1006,62 +974,62 @@ function pn({ days: e, ariaLabel: n }) {
|
|
|
1006
974
|
"span",
|
|
1007
975
|
{
|
|
1008
976
|
className: `w6w-uptime-cell w6w-uptime-cell-${a.state}`,
|
|
1009
|
-
title: a.label ?? `${a.day} — ${
|
|
977
|
+
title: a.label ?? `${a.day} — ${Nn[a.state]}`
|
|
1010
978
|
},
|
|
1011
979
|
`${a.day}-${i}`
|
|
1012
980
|
))
|
|
1013
981
|
}
|
|
1014
982
|
);
|
|
1015
983
|
}
|
|
1016
|
-
const
|
|
1017
|
-
function
|
|
1018
|
-
if (e === null || !Number.isFinite(e)) return
|
|
984
|
+
const xt = "—", wt = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
|
|
985
|
+
function bn(e) {
|
|
986
|
+
if (e === null || !Number.isFinite(e)) return xt;
|
|
1019
987
|
if (e < 1024) return `${Math.round(e)} B`;
|
|
1020
988
|
let n = e, a = 0;
|
|
1021
|
-
for (; n >= 1024 && a <
|
|
989
|
+
for (; n >= 1024 && a < wt.length - 1; )
|
|
1022
990
|
n /= 1024, a += 1;
|
|
1023
|
-
return `${n.toFixed(1)} ${
|
|
991
|
+
return `${n.toFixed(1)} ${wt[a]}`;
|
|
1024
992
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return e === null || !Number.isFinite(e) ?
|
|
993
|
+
function q(e) {
|
|
994
|
+
return e === null || !Number.isFinite(e) ? xt : `${Math.round(e * 100)}%`;
|
|
1027
995
|
}
|
|
1028
|
-
function
|
|
996
|
+
function se(e) {
|
|
1029
997
|
if (e === void 0 || e.load1 === null) return null;
|
|
1030
998
|
const n = e.cpuLimit ?? e.cpus;
|
|
1031
999
|
return n === null || n <= 0 ? null : e.load1 / n;
|
|
1032
1000
|
}
|
|
1033
|
-
function
|
|
1001
|
+
function le(e) {
|
|
1034
1002
|
if (e === void 0) return null;
|
|
1035
1003
|
const { memoryTotal: n, memoryAvailable: a } = e;
|
|
1036
1004
|
return n === null || a === null || n <= 0 ? null : (n - a) / n;
|
|
1037
1005
|
}
|
|
1038
|
-
function
|
|
1006
|
+
function kn(e, n, a) {
|
|
1039
1007
|
return e < n ? n : e > a ? a : e;
|
|
1040
1008
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const
|
|
1043
|
-
if (
|
|
1044
|
-
const
|
|
1045
|
-
for (let s = 0; s <
|
|
1046
|
-
const
|
|
1047
|
-
if (
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1009
|
+
function xn(e, n, a, i) {
|
|
1010
|
+
const o = e.length;
|
|
1011
|
+
if (o < 2) return "";
|
|
1012
|
+
const c = [];
|
|
1013
|
+
for (let s = 0; s < o; s++) {
|
|
1014
|
+
const r = e[s];
|
|
1015
|
+
if (r === null) continue;
|
|
1016
|
+
const d = s / (o - 1) * n, u = i <= 0 ? a : a - kn(r, 0, i) / i * a;
|
|
1017
|
+
c.push(`${Number(d.toFixed(2))},${Number(u.toFixed(2))}`);
|
|
1050
1018
|
}
|
|
1051
|
-
return
|
|
1019
|
+
return c.join(" ");
|
|
1052
1020
|
}
|
|
1053
|
-
const
|
|
1054
|
-
function
|
|
1021
|
+
const Cn = "—", ht = 100, mt = 24;
|
|
1022
|
+
function Je({
|
|
1055
1023
|
values: e,
|
|
1056
1024
|
max: n,
|
|
1057
1025
|
className: a
|
|
1058
1026
|
}) {
|
|
1059
|
-
const i =
|
|
1027
|
+
const i = xn(e, ht, mt, n);
|
|
1060
1028
|
return i === "" ? null : /* @__PURE__ */ t(
|
|
1061
1029
|
"svg",
|
|
1062
1030
|
{
|
|
1063
1031
|
className: a,
|
|
1064
|
-
viewBox: `0 0 ${
|
|
1032
|
+
viewBox: `0 0 ${ht} ${mt}`,
|
|
1065
1033
|
preserveAspectRatio: "none",
|
|
1066
1034
|
"aria-hidden": "true",
|
|
1067
1035
|
focusable: "false",
|
|
@@ -1078,15 +1046,15 @@ function Re({
|
|
|
1078
1046
|
}
|
|
1079
1047
|
);
|
|
1080
1048
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return e === null ?
|
|
1049
|
+
function Me(e) {
|
|
1050
|
+
return e === null ? Cn : e.toFixed(2);
|
|
1083
1051
|
}
|
|
1084
|
-
function
|
|
1052
|
+
function Ne(e) {
|
|
1085
1053
|
let n = 1;
|
|
1086
1054
|
for (const a of e) a !== null && a > n && (n = a);
|
|
1087
1055
|
return n;
|
|
1088
1056
|
}
|
|
1089
|
-
function
|
|
1057
|
+
function ve({
|
|
1090
1058
|
label: e,
|
|
1091
1059
|
value: n,
|
|
1092
1060
|
values: a,
|
|
@@ -1095,96 +1063,96 @@ function ie({
|
|
|
1095
1063
|
return /* @__PURE__ */ l("li", { className: "w6w-server-resources__row", children: [
|
|
1096
1064
|
/* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: e }),
|
|
1097
1065
|
/* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: n }),
|
|
1098
|
-
/* @__PURE__ */ t(
|
|
1066
|
+
/* @__PURE__ */ t(Je, { className: "w6w-server-resources__spark", values: a, max: i })
|
|
1099
1067
|
] });
|
|
1100
1068
|
}
|
|
1101
|
-
function
|
|
1102
|
-
const n = e[e.length - 1], a = e.map((
|
|
1103
|
-
return { last: n, cpuValues: a, memoryValues: i, rssValues:
|
|
1069
|
+
function qe(e) {
|
|
1070
|
+
const n = e[e.length - 1], a = e.map((c) => se(c)), i = e.map((c) => le(c)), o = e.map((c) => c.processRss);
|
|
1071
|
+
return { last: n, cpuValues: a, memoryValues: i, rssValues: o };
|
|
1104
1072
|
}
|
|
1105
|
-
function
|
|
1073
|
+
function va({
|
|
1106
1074
|
samples: e,
|
|
1107
1075
|
title: n = "Server resources",
|
|
1108
1076
|
intervalMs: a
|
|
1109
1077
|
}) {
|
|
1110
|
-
const { last: i, cpuValues:
|
|
1078
|
+
const { last: i, cpuValues: o, memoryValues: c, rssValues: s } = qe(e);
|
|
1111
1079
|
return /* @__PURE__ */ l("section", { className: "w6w-server-resources w6w-server-resources--card", "aria-label": n, children: [
|
|
1112
1080
|
/* @__PURE__ */ t("h3", { className: "w6w-server-resources__title", children: n }),
|
|
1113
1081
|
/* @__PURE__ */ l("ul", { className: "w6w-server-resources__rows", children: [
|
|
1114
1082
|
/* @__PURE__ */ t(
|
|
1115
|
-
|
|
1083
|
+
ve,
|
|
1116
1084
|
{
|
|
1117
1085
|
label: "CPU",
|
|
1118
|
-
value:
|
|
1119
|
-
values:
|
|
1120
|
-
max:
|
|
1086
|
+
value: q(se(i)),
|
|
1087
|
+
values: o,
|
|
1088
|
+
max: Ne(o)
|
|
1121
1089
|
}
|
|
1122
1090
|
),
|
|
1123
1091
|
/* @__PURE__ */ t(
|
|
1124
|
-
|
|
1092
|
+
ve,
|
|
1125
1093
|
{
|
|
1126
1094
|
label: "Memory",
|
|
1127
|
-
value:
|
|
1128
|
-
values:
|
|
1095
|
+
value: q(le(i)),
|
|
1096
|
+
values: c,
|
|
1129
1097
|
max: 1
|
|
1130
1098
|
}
|
|
1131
1099
|
),
|
|
1132
1100
|
/* @__PURE__ */ t(
|
|
1133
|
-
|
|
1101
|
+
ve,
|
|
1134
1102
|
{
|
|
1135
1103
|
label: "Process",
|
|
1136
|
-
value:
|
|
1104
|
+
value: bn((i == null ? void 0 : i.processRss) ?? null),
|
|
1137
1105
|
values: s,
|
|
1138
|
-
max:
|
|
1106
|
+
max: Ne(s)
|
|
1139
1107
|
}
|
|
1140
1108
|
)
|
|
1141
1109
|
] }),
|
|
1142
|
-
/* @__PURE__ */ t("p", { className: "w6w-server-resources__meta", children: `Load ${
|
|
1110
|
+
/* @__PURE__ */ t("p", { className: "w6w-server-resources__meta", children: `Load ${Me((i == null ? void 0 : i.load1) ?? null)} / ${Me((i == null ? void 0 : i.load5) ?? null)} / ${Me(
|
|
1143
1111
|
(i == null ? void 0 : i.load15) ?? null
|
|
1144
1112
|
)}` }),
|
|
1145
1113
|
a !== void 0 && /* @__PURE__ */ t("p", { className: "w6w-server-resources__meta", children: `Sampled every ${a / 1e3}s` })
|
|
1146
1114
|
] });
|
|
1147
1115
|
}
|
|
1148
|
-
function
|
|
1149
|
-
const { last: a, cpuValues: i } =
|
|
1116
|
+
function ya({ samples: e, title: n = "Server" }) {
|
|
1117
|
+
const { last: a, cpuValues: i } = qe(e);
|
|
1150
1118
|
return /* @__PURE__ */ l("section", { className: "w6w-server-resources w6w-server-resources--small", "aria-label": n, children: [
|
|
1151
1119
|
/* @__PURE__ */ t("h3", { className: "w6w-server-resources__title", children: n }),
|
|
1152
1120
|
/* @__PURE__ */ l("ul", { className: "w6w-server-resources__rows", children: [
|
|
1153
1121
|
/* @__PURE__ */ t(
|
|
1154
|
-
|
|
1122
|
+
ve,
|
|
1155
1123
|
{
|
|
1156
1124
|
label: "CPU",
|
|
1157
|
-
value:
|
|
1125
|
+
value: q(se(a)),
|
|
1158
1126
|
values: i,
|
|
1159
|
-
max:
|
|
1127
|
+
max: Ne(i)
|
|
1160
1128
|
}
|
|
1161
1129
|
),
|
|
1162
1130
|
/* @__PURE__ */ l("li", { className: "w6w-server-resources__row", children: [
|
|
1163
1131
|
/* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: "Memory" }),
|
|
1164
|
-
/* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children:
|
|
1132
|
+
/* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: q(le(a)) })
|
|
1165
1133
|
] })
|
|
1166
1134
|
] })
|
|
1167
1135
|
] });
|
|
1168
1136
|
}
|
|
1169
|
-
function
|
|
1170
|
-
const { last: a, cpuValues: i, memoryValues:
|
|
1137
|
+
function Na({ samples: e, onExpand: n }) {
|
|
1138
|
+
const { last: a, cpuValues: i, memoryValues: o } = qe(e);
|
|
1171
1139
|
return /* @__PURE__ */ l("aside", { className: "w6w-server-resources w6w-server-resources--rail", children: [
|
|
1172
1140
|
/* @__PURE__ */ l("div", { className: "w6w-server-resources__rail-row", children: [
|
|
1173
1141
|
/* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: "CPU" }),
|
|
1174
|
-
/* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children:
|
|
1142
|
+
/* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: q(se(a)) }),
|
|
1175
1143
|
/* @__PURE__ */ t(
|
|
1176
|
-
|
|
1144
|
+
Je,
|
|
1177
1145
|
{
|
|
1178
1146
|
className: "w6w-server-resources__spark",
|
|
1179
1147
|
values: i,
|
|
1180
|
-
max:
|
|
1148
|
+
max: Ne(i)
|
|
1181
1149
|
}
|
|
1182
1150
|
)
|
|
1183
1151
|
] }),
|
|
1184
1152
|
/* @__PURE__ */ l("div", { className: "w6w-server-resources__rail-row", children: [
|
|
1185
1153
|
/* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: "MEM" }),
|
|
1186
|
-
/* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children:
|
|
1187
|
-
/* @__PURE__ */ t(
|
|
1154
|
+
/* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: q(le(a)) }),
|
|
1155
|
+
/* @__PURE__ */ t(Je, { className: "w6w-server-resources__spark", values: o, max: 1 })
|
|
1188
1156
|
] }),
|
|
1189
1157
|
n !== void 0 && /* @__PURE__ */ t(
|
|
1190
1158
|
"button",
|
|
@@ -1198,65 +1166,65 @@ function wa({ samples: e, onExpand: n }) {
|
|
|
1198
1166
|
)
|
|
1199
1167
|
] });
|
|
1200
1168
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const n = e[e.length - 1], a =
|
|
1169
|
+
function ga({ samples: e }) {
|
|
1170
|
+
const n = e[e.length - 1], a = q(se(n)), i = q(le(n));
|
|
1203
1171
|
return /* @__PURE__ */ t("span", { className: "w6w-server-resources w6w-server-resources--badge", children: `CPU ${a} · MEM ${i}` });
|
|
1204
1172
|
}
|
|
1205
|
-
const
|
|
1206
|
-
function
|
|
1173
|
+
const Sn = 1, $n = 1440 * 60 * 1e3;
|
|
1174
|
+
function Tn(e, n, a) {
|
|
1207
1175
|
const i = n.startedAt ?? n.updatedAt;
|
|
1208
1176
|
if (i === void 0) return null;
|
|
1209
|
-
const
|
|
1210
|
-
if (
|
|
1211
|
-
const
|
|
1212
|
-
return { leftPct:
|
|
1177
|
+
const o = Date.parse(i), c = n.resolvedAt !== void 0 ? Date.parse(n.resolvedAt) : n.startedAt !== void 0 ? a : o, s = Date.parse(`${e.from}T00:00:00.000Z`), r = Date.parse(`${e.to}T00:00:00.000Z`) + $n, d = r - s;
|
|
1178
|
+
if (c < s || o >= r) return null;
|
|
1179
|
+
const u = o < s, h = c > r, f = Math.max(o, s), v = Math.min(c, r), m = (f - s) / d * 100, N = (v - f) / d * 100, y = Math.max(N, Sn);
|
|
1180
|
+
return { leftPct: m, widthPct: y, clippedStart: u, clippedEnd: h };
|
|
1213
1181
|
}
|
|
1214
|
-
const
|
|
1182
|
+
const An = {
|
|
1215
1183
|
ok: "Operational",
|
|
1216
1184
|
degraded: "Degraded",
|
|
1217
1185
|
down: "Down",
|
|
1218
1186
|
unknown: "Unknown"
|
|
1219
|
-
},
|
|
1220
|
-
function
|
|
1187
|
+
}, Rn = "This vendor publishes no incident history.", In = "No incidents in this window.";
|
|
1188
|
+
function On(e) {
|
|
1221
1189
|
const n = e.startedAt ?? e.updatedAt, a = [e.title];
|
|
1222
1190
|
return e.components !== void 0 && e.components.length > 0 && a.push(`(${e.components.join(", ")})`), n !== void 0 && a.push(
|
|
1223
1191
|
e.resolvedAt !== void 0 ? `${n} – ${e.resolvedAt}` : `${n} – ongoing`
|
|
1224
1192
|
), a.join(" ");
|
|
1225
1193
|
}
|
|
1226
|
-
function
|
|
1194
|
+
function ba({
|
|
1227
1195
|
window: e,
|
|
1228
1196
|
days: n,
|
|
1229
1197
|
incidents: a,
|
|
1230
1198
|
vendorEmptyLabel: i,
|
|
1231
|
-
nowMs:
|
|
1232
|
-
ariaLabel:
|
|
1199
|
+
nowMs: o = Date.now(),
|
|
1200
|
+
ariaLabel: c
|
|
1233
1201
|
}) {
|
|
1234
|
-
const s = n.length,
|
|
1235
|
-
return /* @__PURE__ */ t("div", { className: "w6w-history-timeline", role: "img", "aria-label":
|
|
1236
|
-
/* @__PURE__ */ t("div", { className: "w6w-history-lane w6w-history-lane-execution", children: n.map((
|
|
1202
|
+
const s = n.length, r = s > 0 ? 100 / s : 0, d = a === void 0 ? i ?? Rn : a.length === 0 ? i ?? In : null;
|
|
1203
|
+
return /* @__PURE__ */ t("div", { className: "w6w-history-timeline", role: "img", "aria-label": c ?? `${s}-day history`, children: /* @__PURE__ */ l("div", { className: "w6w-history-plot", children: [
|
|
1204
|
+
/* @__PURE__ */ t("div", { className: "w6w-history-lane w6w-history-lane-execution", children: n.map((u, h) => /* @__PURE__ */ t(
|
|
1237
1205
|
"span",
|
|
1238
1206
|
{
|
|
1239
|
-
className: `w6w-history-cell w6w-history-cell-${
|
|
1240
|
-
style: { left: `${h *
|
|
1241
|
-
title:
|
|
1207
|
+
className: `w6w-history-cell w6w-history-cell-${u.state}`,
|
|
1208
|
+
style: { left: `${h * r}%`, width: `${r}%` },
|
|
1209
|
+
title: u.label ?? `${u.day} — ${An[u.state]}`
|
|
1242
1210
|
},
|
|
1243
|
-
`${
|
|
1211
|
+
`${u.day}-${h}`
|
|
1244
1212
|
)) }),
|
|
1245
|
-
/* @__PURE__ */ t("div", { className: "w6w-history-lane w6w-history-lane-vendor", children:
|
|
1246
|
-
const
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
|
|
1250
|
-
|
|
1213
|
+
/* @__PURE__ */ t("div", { className: "w6w-history-lane w6w-history-lane-vendor", children: d !== null ? /* @__PURE__ */ t("span", { className: "w6w-history-empty", title: d, children: d }) : a == null ? void 0 : a.map((u, h) => {
|
|
1214
|
+
const f = Tn(e, u, o);
|
|
1215
|
+
if (f === null) return null;
|
|
1216
|
+
const v = [
|
|
1217
|
+
f.clippedStart ? "w6w-history-bar-clip-start" : "",
|
|
1218
|
+
f.clippedEnd ? "w6w-history-bar-clip-end" : ""
|
|
1251
1219
|
].filter(Boolean).join(" ");
|
|
1252
1220
|
return /* @__PURE__ */ t(
|
|
1253
1221
|
"span",
|
|
1254
1222
|
{
|
|
1255
|
-
className: `w6w-history-bar w6w-history-bar-${
|
|
1256
|
-
style: { left: `${
|
|
1257
|
-
title:
|
|
1223
|
+
className: `w6w-history-bar w6w-history-bar-${u.state}${v ? ` ${v}` : ""}`,
|
|
1224
|
+
style: { left: `${f.leftPct}%`, width: `${f.widthPct}%` },
|
|
1225
|
+
title: On(u)
|
|
1258
1226
|
},
|
|
1259
|
-
|
|
1227
|
+
u.id ?? `${u.title}-${h}`
|
|
1260
1228
|
);
|
|
1261
1229
|
}) }),
|
|
1262
1230
|
/* @__PURE__ */ l("div", { className: "w6w-history-axis", children: [
|
|
@@ -1265,67 +1233,67 @@ function ha({
|
|
|
1265
1233
|
] })
|
|
1266
1234
|
] }) });
|
|
1267
1235
|
}
|
|
1268
|
-
function
|
|
1269
|
-
const [i,
|
|
1236
|
+
function ka({ label: e, children: n, className: a }) {
|
|
1237
|
+
const [i, o] = g(!1), c = an();
|
|
1270
1238
|
return /* @__PURE__ */ l("span", { className: ["w6w-info-tip", a ?? ""].filter(Boolean).join(" "), children: [
|
|
1271
1239
|
/* @__PURE__ */ t(
|
|
1272
|
-
|
|
1240
|
+
ae,
|
|
1273
1241
|
{
|
|
1274
1242
|
label: e,
|
|
1275
1243
|
icon: "info",
|
|
1276
1244
|
"aria-expanded": i,
|
|
1277
|
-
"aria-controls":
|
|
1278
|
-
onClick: () =>
|
|
1245
|
+
"aria-controls": c,
|
|
1246
|
+
onClick: () => o((s) => !s)
|
|
1279
1247
|
}
|
|
1280
1248
|
),
|
|
1281
|
-
i && /* @__PURE__ */ t("span", { id:
|
|
1249
|
+
i && /* @__PURE__ */ t("span", { id: c, className: "w6w-info-tip-body w6w-muted w6w-small", children: n })
|
|
1282
1250
|
] });
|
|
1283
1251
|
}
|
|
1284
|
-
function
|
|
1285
|
-
const { label: n, onClick: a, disabled: i, className:
|
|
1252
|
+
function En(e) {
|
|
1253
|
+
const { label: n, onClick: a, disabled: i, className: o, ...c } = e;
|
|
1286
1254
|
return /* @__PURE__ */ t(
|
|
1287
|
-
|
|
1255
|
+
ae,
|
|
1288
1256
|
{
|
|
1289
1257
|
label: n,
|
|
1290
1258
|
onClick: a,
|
|
1291
1259
|
disabled: i,
|
|
1292
|
-
className:
|
|
1260
|
+
className: o,
|
|
1293
1261
|
icon: "edit",
|
|
1294
|
-
"data-testid":
|
|
1262
|
+
"data-testid": c["data-testid"]
|
|
1295
1263
|
}
|
|
1296
1264
|
);
|
|
1297
1265
|
}
|
|
1298
|
-
function
|
|
1299
|
-
const { label: n, onClick: a, disabled: i, className:
|
|
1266
|
+
function Mn(e) {
|
|
1267
|
+
const { label: n, onClick: a, disabled: i, className: o, ...c } = e;
|
|
1300
1268
|
return /* @__PURE__ */ t(
|
|
1301
|
-
|
|
1269
|
+
ae,
|
|
1302
1270
|
{
|
|
1303
1271
|
label: n,
|
|
1304
1272
|
onClick: a,
|
|
1305
1273
|
disabled: i,
|
|
1306
|
-
className:
|
|
1274
|
+
className: o,
|
|
1307
1275
|
danger: !0,
|
|
1308
1276
|
icon: "delete",
|
|
1309
|
-
"data-testid":
|
|
1277
|
+
"data-testid": c["data-testid"]
|
|
1310
1278
|
}
|
|
1311
1279
|
);
|
|
1312
1280
|
}
|
|
1313
|
-
function
|
|
1314
|
-
const { branch: n, shortSha: a, lastSyncLabel: i, onSyncNow:
|
|
1315
|
-
return
|
|
1316
|
-
if (!
|
|
1317
|
-
const
|
|
1318
|
-
h.current && !h.current.contains(
|
|
1319
|
-
},
|
|
1320
|
-
return document.addEventListener("mousedown",
|
|
1321
|
-
document.removeEventListener("mousedown",
|
|
1281
|
+
function xa(e) {
|
|
1282
|
+
const { branch: n, shortSha: a, lastSyncLabel: i, onSyncNow: o, syncing: c, className: s, ...r } = e, [d, u] = g(!1), h = sn(null);
|
|
1283
|
+
return Q(() => {
|
|
1284
|
+
if (!d) return;
|
|
1285
|
+
const f = (m) => {
|
|
1286
|
+
h.current && !h.current.contains(m.target) && u(!1);
|
|
1287
|
+
}, v = (m) => m.key === "Escape" && u(!1);
|
|
1288
|
+
return document.addEventListener("mousedown", f), document.addEventListener("keydown", v), () => {
|
|
1289
|
+
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", v);
|
|
1322
1290
|
};
|
|
1323
|
-
}, [
|
|
1291
|
+
}, [d]), /* @__PURE__ */ l(
|
|
1324
1292
|
"div",
|
|
1325
1293
|
{
|
|
1326
1294
|
className: `w6w-repo-sync${s ? ` ${s}` : ""}`,
|
|
1327
1295
|
ref: h,
|
|
1328
|
-
"data-testid":
|
|
1296
|
+
"data-testid": r["data-testid"],
|
|
1329
1297
|
children: [
|
|
1330
1298
|
/* @__PURE__ */ l(
|
|
1331
1299
|
"button",
|
|
@@ -1333,20 +1301,20 @@ function fa(e) {
|
|
|
1333
1301
|
type: "button",
|
|
1334
1302
|
className: "w6w-repo-sync-trigger",
|
|
1335
1303
|
"aria-haspopup": "menu",
|
|
1336
|
-
"aria-expanded":
|
|
1337
|
-
"aria-busy":
|
|
1338
|
-
onClick: () =>
|
|
1304
|
+
"aria-expanded": d,
|
|
1305
|
+
"aria-busy": c,
|
|
1306
|
+
onClick: () => u((f) => !f),
|
|
1339
1307
|
children: [
|
|
1340
1308
|
/* @__PURE__ */ l("span", { className: "w6w-repo-sync-icon", children: [
|
|
1341
|
-
/* @__PURE__ */ t(
|
|
1342
|
-
|
|
1309
|
+
/* @__PURE__ */ t(dt, { name: "github" }),
|
|
1310
|
+
c && /* @__PURE__ */ t(dt, { name: "sync", size: 10, className: "w6w-repo-sync-spin" })
|
|
1343
1311
|
] }),
|
|
1344
1312
|
/* @__PURE__ */ t("span", { className: "w6w-repo-sync-branch", children: n }),
|
|
1345
1313
|
a != null && /* @__PURE__ */ t("code", { className: "w6w-repo-sync-sha", children: a })
|
|
1346
1314
|
]
|
|
1347
1315
|
}
|
|
1348
1316
|
),
|
|
1349
|
-
|
|
1317
|
+
d && /* @__PURE__ */ l("div", { className: "w6w-repo-sync-menu", role: "menu", children: [
|
|
1350
1318
|
/* @__PURE__ */ l("div", { className: "w6w-repo-sync-detail", children: [
|
|
1351
1319
|
/* @__PURE__ */ t("span", { children: n }),
|
|
1352
1320
|
a != null && /* @__PURE__ */ t("code", { children: a }),
|
|
@@ -1359,9 +1327,9 @@ function fa(e) {
|
|
|
1359
1327
|
role: "menuitem",
|
|
1360
1328
|
className: "w6w-repo-sync-item",
|
|
1361
1329
|
"data-testid": "repo-sync-now",
|
|
1362
|
-
disabled:
|
|
1363
|
-
onClick:
|
|
1364
|
-
children:
|
|
1330
|
+
disabled: c,
|
|
1331
|
+
onClick: o,
|
|
1332
|
+
children: c ? "Syncing…" : "Sync now"
|
|
1365
1333
|
}
|
|
1366
1334
|
)
|
|
1367
1335
|
] })
|
|
@@ -1369,7 +1337,7 @@ function fa(e) {
|
|
|
1369
1337
|
}
|
|
1370
1338
|
);
|
|
1371
1339
|
}
|
|
1372
|
-
const
|
|
1340
|
+
const Pn = {
|
|
1373
1341
|
pending: "Pending",
|
|
1374
1342
|
running: "Running",
|
|
1375
1343
|
succeeded: "Succeeded",
|
|
@@ -1378,39 +1346,39 @@ const Rn = {
|
|
|
1378
1346
|
queued: "Queued",
|
|
1379
1347
|
canceled: "Canceled"
|
|
1380
1348
|
};
|
|
1381
|
-
function
|
|
1382
|
-
const i = n ??
|
|
1349
|
+
function Ve({ state: e, label: n, ariaLabel: a }) {
|
|
1350
|
+
const i = n ?? Pn[e];
|
|
1383
1351
|
return /* @__PURE__ */ l("span", { className: `w6w-step-pill w6w-step-pill-${e}`, "aria-label": a, children: [
|
|
1384
1352
|
/* @__PURE__ */ t("span", { className: "w6w-step-pill-dot", "aria-hidden": "true" }),
|
|
1385
1353
|
/* @__PURE__ */ t("span", { className: "w6w-step-pill-label", children: i })
|
|
1386
1354
|
] });
|
|
1387
1355
|
}
|
|
1388
|
-
const
|
|
1389
|
-
function
|
|
1390
|
-
return e == null || !Number.isFinite(e) || e < 0 ?
|
|
1356
|
+
const _n = "—", Pe = 1e3, _e = 6e4;
|
|
1357
|
+
function ze(e) {
|
|
1358
|
+
return e == null || !Number.isFinite(e) || e < 0 ? _n : e < Pe ? `${Math.round(e)} ms` : e < _e ? `${(e / Pe).toFixed(1)} s` : `${Math.floor(e / _e)}m ${Math.round(e % _e / Pe)}s`;
|
|
1391
1359
|
}
|
|
1392
|
-
function
|
|
1360
|
+
function ge(e) {
|
|
1393
1361
|
const n = new Date(e);
|
|
1394
1362
|
return Number.isNaN(n.getTime()) ? e : n.toLocaleString(void 0, { dateStyle: "medium", timeStyle: "short" });
|
|
1395
1363
|
}
|
|
1396
|
-
const
|
|
1364
|
+
const Ln = {
|
|
1397
1365
|
function: "Function",
|
|
1398
1366
|
endpoint: "Endpoint",
|
|
1399
1367
|
workflow: "Workflow"
|
|
1400
1368
|
};
|
|
1401
|
-
function
|
|
1369
|
+
function Ca({
|
|
1402
1370
|
items: e,
|
|
1403
1371
|
selectedId: n = null,
|
|
1404
1372
|
onSelect: a,
|
|
1405
1373
|
showCallable: i = !1,
|
|
1406
|
-
loading:
|
|
1407
|
-
emptyLabel:
|
|
1374
|
+
loading: o = !1,
|
|
1375
|
+
emptyLabel: c,
|
|
1408
1376
|
hasPrev: s,
|
|
1409
|
-
hasNext:
|
|
1410
|
-
onPrev:
|
|
1411
|
-
onNext:
|
|
1377
|
+
hasNext: r,
|
|
1378
|
+
onPrev: d,
|
|
1379
|
+
onNext: u
|
|
1412
1380
|
}) {
|
|
1413
|
-
const h =
|
|
1381
|
+
const h = d || u ? /* @__PURE__ */ l("div", { className: "w6w-execution-list-pager", children: [
|
|
1414
1382
|
/* @__PURE__ */ t(
|
|
1415
1383
|
"button",
|
|
1416
1384
|
{
|
|
@@ -1418,7 +1386,7 @@ function Na({
|
|
|
1418
1386
|
className: "w6w-btn w6w-btn-ghost",
|
|
1419
1387
|
"data-testid": "execution-list-prev",
|
|
1420
1388
|
disabled: !s,
|
|
1421
|
-
onClick:
|
|
1389
|
+
onClick: d,
|
|
1422
1390
|
children: "Previous"
|
|
1423
1391
|
}
|
|
1424
1392
|
),
|
|
@@ -1428,90 +1396,90 @@ function Na({
|
|
|
1428
1396
|
type: "button",
|
|
1429
1397
|
className: "w6w-btn w6w-btn-ghost",
|
|
1430
1398
|
"data-testid": "execution-list-next",
|
|
1431
|
-
disabled: !
|
|
1432
|
-
onClick:
|
|
1399
|
+
disabled: !r,
|
|
1400
|
+
onClick: u,
|
|
1433
1401
|
children: "Next"
|
|
1434
1402
|
}
|
|
1435
1403
|
)
|
|
1436
1404
|
] }) : null;
|
|
1437
|
-
let
|
|
1438
|
-
return
|
|
1439
|
-
|
|
1405
|
+
let f;
|
|
1406
|
+
return o && e.length === 0 ? f = /* @__PURE__ */ t("p", { "data-testid": "execution-list-loading", children: "Loading…" }) : e.length === 0 ? f = /* @__PURE__ */ t("p", { "data-testid": "execution-list-empty", children: c ?? "No executions yet." }) : f = /* @__PURE__ */ t("ul", { className: "w6w-execution-list-rows", children: e.map((v) => /* @__PURE__ */ t("li", { "data-testid": "execution-row", "data-execution-id": v.id, children: /* @__PURE__ */ t(
|
|
1407
|
+
Be,
|
|
1440
1408
|
{
|
|
1441
|
-
icon: /* @__PURE__ */ t(
|
|
1442
|
-
title: i ?
|
|
1443
|
-
subtitle: i ? `${
|
|
1444
|
-
trailing:
|
|
1445
|
-
active:
|
|
1446
|
-
onClick: a ? () => a(
|
|
1409
|
+
icon: /* @__PURE__ */ t(Ve, { state: v.status }),
|
|
1410
|
+
title: i ? v.callableName : ge(v.startedAt),
|
|
1411
|
+
subtitle: i ? `${Ln[v.kind]} · ${ge(v.startedAt)}` : v.id,
|
|
1412
|
+
trailing: ze(v.durationMs),
|
|
1413
|
+
active: v.id === n,
|
|
1414
|
+
onClick: a ? () => a(v.id) : void 0
|
|
1447
1415
|
}
|
|
1448
|
-
) },
|
|
1449
|
-
|
|
1416
|
+
) }, v.id)) }), /* @__PURE__ */ l("div", { className: "w6w-execution-list", "data-testid": "execution-list", children: [
|
|
1417
|
+
f,
|
|
1450
1418
|
h
|
|
1451
1419
|
] });
|
|
1452
1420
|
}
|
|
1453
|
-
function
|
|
1421
|
+
function Un({
|
|
1454
1422
|
steps: e,
|
|
1455
1423
|
emptyLabel: n,
|
|
1456
1424
|
onDismiss: a,
|
|
1457
1425
|
runError: i,
|
|
1458
|
-
stepErrors:
|
|
1426
|
+
stepErrors: o
|
|
1459
1427
|
}) {
|
|
1460
|
-
const
|
|
1461
|
-
i && /* @__PURE__ */ t(
|
|
1462
|
-
s.map((
|
|
1463
|
-
|
|
1428
|
+
const c = a ? /* @__PURE__ */ t("div", { className: "w6w-execution-log-head", children: /* @__PURE__ */ t(ae, { label: "Dismiss run log", "data-testid": "execution-log-dismiss", onClick: a, children: "×" }) }) : null, s = o ?? [], r = i || s.length > 0 ? /* @__PURE__ */ l("div", { className: "w6w-execution-log-errors w6w-stack", children: [
|
|
1429
|
+
i && /* @__PURE__ */ t(Ke, { error: i }),
|
|
1430
|
+
s.map((d, u) => /* @__PURE__ */ t(
|
|
1431
|
+
Ke,
|
|
1464
1432
|
{
|
|
1465
|
-
label:
|
|
1466
|
-
error:
|
|
1433
|
+
label: d.label ?? d.stepId,
|
|
1434
|
+
error: d.error
|
|
1467
1435
|
},
|
|
1468
|
-
`${
|
|
1436
|
+
`${d.stepId}:${u}`
|
|
1469
1437
|
))
|
|
1470
1438
|
] }) : null;
|
|
1471
|
-
return e.length === 0 ? /* @__PURE__ */ l(
|
|
1439
|
+
return e.length === 0 ? /* @__PURE__ */ l(A, { children: [
|
|
1440
|
+
c,
|
|
1472
1441
|
r,
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1442
|
+
/* @__PURE__ */ t("div", { className: "w6w-execution-log-empty", children: /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: n ?? "No nodes have run yet." }) })
|
|
1443
|
+
] }) : /* @__PURE__ */ l(A, { children: [
|
|
1444
|
+
c,
|
|
1476
1445
|
r,
|
|
1477
|
-
|
|
1478
|
-
/* @__PURE__ */ t("ol", { className: "w6w-execution-log", children: e.map((u) => /* @__PURE__ */ t(En, { step: u }, u.id)) })
|
|
1446
|
+
/* @__PURE__ */ t("ol", { className: "w6w-execution-log", children: e.map((d) => /* @__PURE__ */ t(Fn, { step: d }, d.id)) })
|
|
1479
1447
|
] });
|
|
1480
1448
|
}
|
|
1481
|
-
function
|
|
1482
|
-
const [n, a] =
|
|
1483
|
-
/* @__PURE__ */ t(
|
|
1449
|
+
function Fn({ step: e }) {
|
|
1450
|
+
const [n, a] = g(!1), i = /* @__PURE__ */ l("div", { className: "w6w-execution-log-row-header", children: [
|
|
1451
|
+
/* @__PURE__ */ t(Ve, { state: e.status }),
|
|
1484
1452
|
/* @__PURE__ */ t("span", { className: "w6w-execution-log-row-label", children: e.label ?? e.id }),
|
|
1485
|
-
/* @__PURE__ */ t(
|
|
1486
|
-
] }),
|
|
1453
|
+
/* @__PURE__ */ t(Dn, { startedAt: e.startedAt, finishedAt: e.finishedAt })
|
|
1454
|
+
] }), o = e.error ? /* @__PURE__ */ t(Ke, { error: e.error }) : null;
|
|
1487
1455
|
return e.input === void 0 && e.output === void 0 && !e.meta ? /* @__PURE__ */ l("li", { className: "w6w-execution-log-row", children: [
|
|
1488
1456
|
/* @__PURE__ */ t("div", { className: "w6w-section", children: i }),
|
|
1489
|
-
|
|
1457
|
+
o
|
|
1490
1458
|
] }) : /* @__PURE__ */ l("li", { className: "w6w-execution-log-row", children: [
|
|
1491
|
-
/* @__PURE__ */ l("details", { className: "w6w-section", open: n, onToggle: (
|
|
1459
|
+
/* @__PURE__ */ l("details", { className: "w6w-section", open: n, onToggle: (c) => a(c.currentTarget.open), children: [
|
|
1492
1460
|
/* @__PURE__ */ t("summary", { className: "w6w-section-summary", children: i }),
|
|
1493
1461
|
n && /* @__PURE__ */ l("div", { className: "w6w-execution-log-row-body w6w-section-body w6w-stack", children: [
|
|
1494
|
-
/* @__PURE__ */ t(
|
|
1495
|
-
/* @__PURE__ */ t(
|
|
1462
|
+
/* @__PURE__ */ t(pt, { title: "Input", value: e.input }),
|
|
1463
|
+
/* @__PURE__ */ t(pt, { title: "Output", value: e.output }),
|
|
1496
1464
|
e.meta && /* @__PURE__ */ l("div", { className: "w6w-execution-log-json w6w-stack", children: [
|
|
1497
1465
|
/* @__PURE__ */ t("strong", { className: "w6w-small", children: "Metadata" }),
|
|
1498
|
-
/* @__PURE__ */ t(
|
|
1466
|
+
/* @__PURE__ */ t(He, { code: JSON.stringify(e.meta, null, 2), language: "json" })
|
|
1499
1467
|
] })
|
|
1500
1468
|
] })
|
|
1501
1469
|
] }),
|
|
1502
|
-
|
|
1470
|
+
o
|
|
1503
1471
|
] });
|
|
1504
1472
|
}
|
|
1505
|
-
function
|
|
1473
|
+
function Ke({ error: e, label: n }) {
|
|
1506
1474
|
return /* @__PURE__ */ l("div", { className: "w6w-result w6w-error", children: [
|
|
1507
1475
|
n !== void 0 && /* @__PURE__ */ t("strong", { className: "w6w-execution-log-error-label", children: n }),
|
|
1508
1476
|
e.code && /* @__PURE__ */ t("div", { className: "w6w-small w6w-execution-log-error-code", children: /* @__PURE__ */ t("code", { children: e.code }) }),
|
|
1509
1477
|
e.message
|
|
1510
1478
|
] });
|
|
1511
1479
|
}
|
|
1512
|
-
function
|
|
1480
|
+
function Dn({ startedAt: e, finishedAt: n }) {
|
|
1513
1481
|
if (e && n) {
|
|
1514
|
-
const a =
|
|
1482
|
+
const a = Bn(e, n);
|
|
1515
1483
|
return /* @__PURE__ */ l("span", { className: "w6w-execution-log-timing", children: [
|
|
1516
1484
|
e,
|
|
1517
1485
|
" → ",
|
|
@@ -1528,43 +1496,43 @@ function Pn({ startedAt: e, finishedAt: n }) {
|
|
|
1528
1496
|
e
|
|
1529
1497
|
] }) : /* @__PURE__ */ t("span", { className: "w6w-execution-log-timing", children: "—" });
|
|
1530
1498
|
}
|
|
1531
|
-
function
|
|
1499
|
+
function Bn(e, n) {
|
|
1532
1500
|
const a = Date.parse(e), i = Date.parse(n);
|
|
1533
1501
|
if (!Number.isFinite(a) || !Number.isFinite(i) || i < a) return null;
|
|
1534
|
-
const
|
|
1535
|
-
if (
|
|
1536
|
-
const
|
|
1537
|
-
if (
|
|
1538
|
-
const s = Math.floor(
|
|
1539
|
-
return `${s}m ${
|
|
1540
|
-
}
|
|
1541
|
-
function
|
|
1502
|
+
const o = i - a;
|
|
1503
|
+
if (o < 1e3) return `${o}ms`;
|
|
1504
|
+
const c = o / 1e3;
|
|
1505
|
+
if (c < 60) return `${c.toFixed(1)}s`;
|
|
1506
|
+
const s = Math.floor(c / 60), r = Math.round(c % 60);
|
|
1507
|
+
return `${s}m ${r}s`;
|
|
1508
|
+
}
|
|
1509
|
+
function pt({ title: e, value: n }) {
|
|
1542
1510
|
return /* @__PURE__ */ l("div", { className: "w6w-execution-log-json w6w-stack", children: [
|
|
1543
1511
|
/* @__PURE__ */ t("strong", { className: "w6w-small", children: e }),
|
|
1544
|
-
n === void 0 ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Not available." }) : /* @__PURE__ */ t(
|
|
1512
|
+
n === void 0 ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Not available." }) : /* @__PURE__ */ t(He, { code: JSON.stringify(n, null, 2), language: "json" })
|
|
1545
1513
|
] });
|
|
1546
1514
|
}
|
|
1547
|
-
const
|
|
1515
|
+
const Jn = { status: "", kind: "", from: "", to: "", q: "" }, Kn = [
|
|
1548
1516
|
{ value: "", label: "Any status" },
|
|
1549
1517
|
{ value: "queued", label: "Queued" },
|
|
1550
1518
|
{ value: "running", label: "Running" },
|
|
1551
1519
|
{ value: "succeeded", label: "Succeeded" },
|
|
1552
1520
|
{ value: "failed", label: "Failed" },
|
|
1553
1521
|
{ value: "canceled", label: "Canceled" }
|
|
1554
|
-
],
|
|
1522
|
+
], jn = [
|
|
1555
1523
|
{ value: "", label: "Any type" },
|
|
1556
1524
|
{ value: "function", label: "Function" },
|
|
1557
1525
|
{ value: "endpoint", label: "Endpoint" },
|
|
1558
1526
|
{ value: "workflow", label: "Workflow" }
|
|
1559
1527
|
];
|
|
1560
|
-
function
|
|
1528
|
+
function Sa({
|
|
1561
1529
|
value: e,
|
|
1562
1530
|
onChange: n,
|
|
1563
1531
|
showKind: a = !1,
|
|
1564
1532
|
searchPlaceholder: i = "Search by id or name",
|
|
1565
|
-
disabled:
|
|
1533
|
+
disabled: o = !1
|
|
1566
1534
|
}) {
|
|
1567
|
-
const
|
|
1535
|
+
const c = e.status !== "" || e.kind !== "" || e.from !== "" || e.to !== "" || e.q !== "";
|
|
1568
1536
|
return /* @__PURE__ */ l("div", { className: "w6w-execution-filters", "data-testid": "execution-filters", children: [
|
|
1569
1537
|
/* @__PURE__ */ t(
|
|
1570
1538
|
"input",
|
|
@@ -1575,7 +1543,7 @@ function va({
|
|
|
1575
1543
|
"aria-label": "Search executions",
|
|
1576
1544
|
placeholder: i,
|
|
1577
1545
|
value: e.q,
|
|
1578
|
-
disabled:
|
|
1546
|
+
disabled: o,
|
|
1579
1547
|
onChange: (s) => n({ ...e, q: s.target.value })
|
|
1580
1548
|
}
|
|
1581
1549
|
),
|
|
@@ -1586,9 +1554,9 @@ function va({
|
|
|
1586
1554
|
"data-testid": "execution-filter-status",
|
|
1587
1555
|
"aria-label": "Status",
|
|
1588
1556
|
value: e.status,
|
|
1589
|
-
disabled:
|
|
1557
|
+
disabled: o,
|
|
1590
1558
|
onChange: (s) => n({ ...e, status: s.target.value }),
|
|
1591
|
-
children:
|
|
1559
|
+
children: Kn.map((s) => /* @__PURE__ */ t("option", { value: s.value, children: s.label }, s.value))
|
|
1592
1560
|
}
|
|
1593
1561
|
),
|
|
1594
1562
|
a && /* @__PURE__ */ t(
|
|
@@ -1598,9 +1566,9 @@ function va({
|
|
|
1598
1566
|
"data-testid": "execution-filter-kind",
|
|
1599
1567
|
"aria-label": "Type",
|
|
1600
1568
|
value: e.kind,
|
|
1601
|
-
disabled:
|
|
1569
|
+
disabled: o,
|
|
1602
1570
|
onChange: (s) => n({ ...e, kind: s.target.value }),
|
|
1603
|
-
children:
|
|
1571
|
+
children: jn.map((s) => /* @__PURE__ */ t("option", { value: s.value, children: s.label }, s.value))
|
|
1604
1572
|
}
|
|
1605
1573
|
),
|
|
1606
1574
|
/* @__PURE__ */ t(
|
|
@@ -1611,7 +1579,7 @@ function va({
|
|
|
1611
1579
|
"data-testid": "execution-filter-from",
|
|
1612
1580
|
"aria-label": "From date",
|
|
1613
1581
|
value: e.from,
|
|
1614
|
-
disabled:
|
|
1582
|
+
disabled: o,
|
|
1615
1583
|
onChange: (s) => n({ ...e, from: s.target.value })
|
|
1616
1584
|
}
|
|
1617
1585
|
),
|
|
@@ -1623,45 +1591,45 @@ function va({
|
|
|
1623
1591
|
"data-testid": "execution-filter-to",
|
|
1624
1592
|
"aria-label": "To date",
|
|
1625
1593
|
value: e.to,
|
|
1626
|
-
disabled:
|
|
1594
|
+
disabled: o,
|
|
1627
1595
|
onChange: (s) => n({ ...e, to: s.target.value })
|
|
1628
1596
|
}
|
|
1629
1597
|
),
|
|
1630
|
-
|
|
1598
|
+
c && /* @__PURE__ */ t(
|
|
1631
1599
|
"button",
|
|
1632
1600
|
{
|
|
1633
1601
|
type: "button",
|
|
1634
1602
|
className: "w6w-btn w6w-btn-ghost w6w-execution-filters-clear",
|
|
1635
1603
|
"data-testid": "execution-filter-clear",
|
|
1636
|
-
disabled:
|
|
1637
|
-
onClick: () => n({ ...
|
|
1604
|
+
disabled: o,
|
|
1605
|
+
onClick: () => n({ ...Jn }),
|
|
1638
1606
|
children: "Clear"
|
|
1639
1607
|
}
|
|
1640
1608
|
)
|
|
1641
1609
|
] });
|
|
1642
1610
|
}
|
|
1643
|
-
const
|
|
1644
|
-
function
|
|
1611
|
+
const ye = "—";
|
|
1612
|
+
function $a({ stats: e, label: n }) {
|
|
1645
1613
|
const a = [
|
|
1646
1614
|
{
|
|
1647
1615
|
testid: "execution-stat-total",
|
|
1648
1616
|
label: "Executions",
|
|
1649
|
-
value: e ? String(e.total) :
|
|
1617
|
+
value: e ? String(e.total) : ye
|
|
1650
1618
|
},
|
|
1651
1619
|
{
|
|
1652
1620
|
testid: "execution-stat-success-rate",
|
|
1653
1621
|
label: "Success rate",
|
|
1654
|
-
value:
|
|
1622
|
+
value: Hn(e == null ? void 0 : e.successRate)
|
|
1655
1623
|
},
|
|
1656
1624
|
{
|
|
1657
1625
|
testid: "execution-stat-failed",
|
|
1658
1626
|
label: "Failed",
|
|
1659
|
-
value: e ? String(e.failed) :
|
|
1627
|
+
value: e ? String(e.failed) : ye
|
|
1660
1628
|
},
|
|
1661
1629
|
{
|
|
1662
1630
|
testid: "execution-stat-avg-duration",
|
|
1663
1631
|
label: "Avg duration",
|
|
1664
|
-
value: e ?
|
|
1632
|
+
value: e ? ze(e.avgDurationMs) : ye
|
|
1665
1633
|
}
|
|
1666
1634
|
];
|
|
1667
1635
|
return e && e.inFlight > 0 && a.push({
|
|
@@ -1676,23 +1644,23 @@ function ya({ stats: e, label: n }) {
|
|
|
1676
1644
|
] }, i.testid)) })
|
|
1677
1645
|
] });
|
|
1678
1646
|
}
|
|
1679
|
-
function
|
|
1680
|
-
return e == null || !Number.isFinite(e) ?
|
|
1647
|
+
function Hn(e) {
|
|
1648
|
+
return e == null || !Number.isFinite(e) ? ye : `${Math.round(e * 100)}%`;
|
|
1681
1649
|
}
|
|
1682
|
-
const
|
|
1650
|
+
const Wn = {
|
|
1683
1651
|
function: "Function",
|
|
1684
1652
|
endpoint: "Endpoint",
|
|
1685
1653
|
workflow: "Workflow"
|
|
1686
1654
|
};
|
|
1687
|
-
function
|
|
1655
|
+
function qn(e) {
|
|
1688
1656
|
return JSON.stringify(e, null, 2) ?? "null";
|
|
1689
1657
|
}
|
|
1690
|
-
function
|
|
1658
|
+
function Ta({
|
|
1691
1659
|
execution: e,
|
|
1692
1660
|
loading: n = !1,
|
|
1693
1661
|
errorMessage: a,
|
|
1694
1662
|
onClose: i,
|
|
1695
|
-
onOpenInEditor:
|
|
1663
|
+
onOpenInEditor: o
|
|
1696
1664
|
}) {
|
|
1697
1665
|
return /* @__PURE__ */ l("section", { className: "w6w-execution-detail w6w-stack", "data-testid": "execution-detail", children: [
|
|
1698
1666
|
a != null && /* @__PURE__ */ t(
|
|
@@ -1704,21 +1672,21 @@ function ga({
|
|
|
1704
1672
|
children: a
|
|
1705
1673
|
}
|
|
1706
1674
|
),
|
|
1707
|
-
e ? /* @__PURE__ */ t(
|
|
1675
|
+
e ? /* @__PURE__ */ t(Vn, { execution: e, onClose: i, onOpenInEditor: o }) : n ? /* @__PURE__ */ t("p", { className: "w6w-muted", "data-testid": "execution-detail-loading", children: "Loading…" }) : /* @__PURE__ */ t("p", { className: "w6w-muted", "data-testid": "execution-detail-empty", children: "No execution selected." })
|
|
1708
1676
|
] });
|
|
1709
1677
|
}
|
|
1710
|
-
function
|
|
1678
|
+
function Vn({
|
|
1711
1679
|
execution: e,
|
|
1712
1680
|
onClose: n,
|
|
1713
1681
|
onOpenInEditor: a
|
|
1714
1682
|
}) {
|
|
1715
|
-
return /* @__PURE__ */ l(
|
|
1683
|
+
return /* @__PURE__ */ l(A, { children: [
|
|
1716
1684
|
/* @__PURE__ */ l("div", { className: "w6w-execution-detail-head", children: [
|
|
1717
1685
|
/* @__PURE__ */ l("div", { className: "w6w-execution-detail-title", children: [
|
|
1718
1686
|
/* @__PURE__ */ t("h3", { className: "w6w-execution-detail-name", children: e.callableName }),
|
|
1719
1687
|
/* @__PURE__ */ l("div", { className: "w6w-execution-detail-meta", children: [
|
|
1720
|
-
/* @__PURE__ */ t(
|
|
1721
|
-
/* @__PURE__ */ t("span", { className: "w6w-execution-detail-kind w6w-muted w6w-small", children:
|
|
1688
|
+
/* @__PURE__ */ t(Ve, { state: e.status }),
|
|
1689
|
+
/* @__PURE__ */ t("span", { className: "w6w-execution-detail-kind w6w-muted w6w-small", children: Wn[e.kind] })
|
|
1722
1690
|
] })
|
|
1723
1691
|
] }),
|
|
1724
1692
|
(a || n) && /* @__PURE__ */ l("div", { className: "w6w-execution-detail-actions", children: [
|
|
@@ -1732,20 +1700,20 @@ function jn({
|
|
|
1732
1700
|
children: "Open in visual editor"
|
|
1733
1701
|
}
|
|
1734
1702
|
),
|
|
1735
|
-
n && /* @__PURE__ */ t(
|
|
1703
|
+
n && /* @__PURE__ */ t(ae, { label: "Close", "data-testid": "execution-detail-close", onClick: n, children: "×" })
|
|
1736
1704
|
] })
|
|
1737
1705
|
] }),
|
|
1738
1706
|
/* @__PURE__ */ t("p", { className: "w6w-execution-detail-id-line", children: /* @__PURE__ */ t("code", { className: "w6w-execution-detail-id", "data-testid": "execution-detail-id", children: e.id }) }),
|
|
1739
1707
|
/* @__PURE__ */ l("dl", { className: "w6w-execution-detail-timing", children: [
|
|
1740
|
-
/* @__PURE__ */ t(
|
|
1708
|
+
/* @__PURE__ */ t(Le, { label: "Started", value: ge(e.startedAt) }),
|
|
1741
1709
|
/* @__PURE__ */ t(
|
|
1742
|
-
|
|
1710
|
+
Le,
|
|
1743
1711
|
{
|
|
1744
1712
|
label: "Finished",
|
|
1745
|
-
value: e.finishedAt ?
|
|
1713
|
+
value: e.finishedAt ? ge(e.finishedAt) : "—"
|
|
1746
1714
|
}
|
|
1747
1715
|
),
|
|
1748
|
-
/* @__PURE__ */ t(
|
|
1716
|
+
/* @__PURE__ */ t(Le, { label: "Duration", value: ze(e.durationMs) })
|
|
1749
1717
|
] }),
|
|
1750
1718
|
e.steps !== void 0 && /* @__PURE__ */ l(
|
|
1751
1719
|
"section",
|
|
@@ -1753,29 +1721,29 @@ function jn({
|
|
|
1753
1721
|
className: "w6w-execution-detail-section w6w-stack",
|
|
1754
1722
|
"data-testid": "execution-detail-steps",
|
|
1755
1723
|
children: [
|
|
1756
|
-
/* @__PURE__ */ t("strong", { className: "w6w-small", children: "
|
|
1757
|
-
/* @__PURE__ */ t(
|
|
1724
|
+
/* @__PURE__ */ t("strong", { className: "w6w-small", children: "Nodes" }),
|
|
1725
|
+
/* @__PURE__ */ t(Un, { steps: e.steps, emptyLabel: "No nodes ran." })
|
|
1758
1726
|
]
|
|
1759
1727
|
}
|
|
1760
1728
|
),
|
|
1761
|
-
e.input !== void 0 && /* @__PURE__ */ t(
|
|
1762
|
-
e.output !== void 0 && /* @__PURE__ */ t(
|
|
1763
|
-
e.error != null && /* @__PURE__ */ t(
|
|
1729
|
+
e.input !== void 0 && /* @__PURE__ */ t(Ue, { title: "Input", testid: "execution-detail-input", value: e.input }),
|
|
1730
|
+
e.output !== void 0 && /* @__PURE__ */ t(Ue, { title: "Output", testid: "execution-detail-output", value: e.output }),
|
|
1731
|
+
e.error != null && /* @__PURE__ */ t(Ue, { title: "Error", testid: "execution-detail-error", value: e.error })
|
|
1764
1732
|
] });
|
|
1765
1733
|
}
|
|
1766
|
-
function
|
|
1734
|
+
function Le({ label: e, value: n }) {
|
|
1767
1735
|
return /* @__PURE__ */ l("div", { className: "w6w-execution-detail-timing-item", children: [
|
|
1768
1736
|
/* @__PURE__ */ t("dt", { children: e }),
|
|
1769
1737
|
/* @__PURE__ */ t("dd", { children: n })
|
|
1770
1738
|
] });
|
|
1771
1739
|
}
|
|
1772
|
-
function
|
|
1740
|
+
function Ue({ title: e, testid: n, value: a }) {
|
|
1773
1741
|
return /* @__PURE__ */ l("section", { className: "w6w-execution-detail-section w6w-stack", "data-testid": n, children: [
|
|
1774
1742
|
/* @__PURE__ */ t("strong", { className: "w6w-small", children: e }),
|
|
1775
|
-
/* @__PURE__ */ t(
|
|
1743
|
+
/* @__PURE__ */ t(He, { code: qn(a), language: "json" })
|
|
1776
1744
|
] });
|
|
1777
1745
|
}
|
|
1778
|
-
function
|
|
1746
|
+
function zn(e) {
|
|
1779
1747
|
const n = [];
|
|
1780
1748
|
for (const a of e)
|
|
1781
1749
|
a.p95Ms !== null && n.push({
|
|
@@ -1788,131 +1756,131 @@ function Kn(e) {
|
|
|
1788
1756
|
});
|
|
1789
1757
|
return n;
|
|
1790
1758
|
}
|
|
1791
|
-
function
|
|
1759
|
+
function Aa(e) {
|
|
1792
1760
|
return e.attention === "now" || e.attention === "recent";
|
|
1793
1761
|
}
|
|
1794
|
-
function
|
|
1762
|
+
function Gn(e) {
|
|
1795
1763
|
const n = { now: [], recent: [], clear: [] };
|
|
1796
1764
|
for (const a of e)
|
|
1797
1765
|
a.attention === "now" ? n.now.push(a) : a.attention === "recent" ? n.recent.push(a) : n.clear.push(a);
|
|
1798
1766
|
return n;
|
|
1799
1767
|
}
|
|
1800
|
-
function
|
|
1768
|
+
function Yn(e) {
|
|
1801
1769
|
return e.uptime.map((n) => ({ day: n.day, state: n.state }));
|
|
1802
1770
|
}
|
|
1803
|
-
const
|
|
1804
|
-
function
|
|
1805
|
-
const a = n.compact ?? !1, { now: i, recent:
|
|
1771
|
+
const ft = 3, Qn = 5;
|
|
1772
|
+
function Zn(e, n = {}) {
|
|
1773
|
+
const a = n.compact ?? !1, { now: i, recent: o } = Gn(e), c = i.length + o.length, s = a ? i.slice(0, ft) : i, r = a ? o.slice(0, Math.max(0, ft - s.length)) : o, d = a ? e.slice(0, n.limit ?? Qn) : [...e];
|
|
1806
1774
|
return {
|
|
1807
|
-
attentionCount:
|
|
1775
|
+
attentionCount: c,
|
|
1808
1776
|
shownNow: s,
|
|
1809
|
-
shownRecent:
|
|
1810
|
-
hiddenAttentionCount:
|
|
1811
|
-
shownTable:
|
|
1812
|
-
hiddenTableCount: e.length -
|
|
1777
|
+
shownRecent: r,
|
|
1778
|
+
hiddenAttentionCount: c - s.length - r.length,
|
|
1779
|
+
shownTable: d,
|
|
1780
|
+
hiddenTableCount: e.length - d.length
|
|
1813
1781
|
};
|
|
1814
1782
|
}
|
|
1815
|
-
const
|
|
1816
|
-
function
|
|
1783
|
+
const fe = 640, ne = 340, L = { top: 16, right: 24, bottom: 40, left: 56 };
|
|
1784
|
+
function vt(e) {
|
|
1817
1785
|
if (e <= 0) return 1;
|
|
1818
1786
|
const n = 10 ** Math.floor(Math.log10(e)), a = [1, 2, 5, 10];
|
|
1819
1787
|
for (const i of a)
|
|
1820
1788
|
if (e <= i * n) return i * n;
|
|
1821
1789
|
return 10 * n;
|
|
1822
1790
|
}
|
|
1823
|
-
function
|
|
1791
|
+
function yt(e, n = 5) {
|
|
1824
1792
|
return Array.from({ length: n + 1 }, (a, i) => Math.round(e * i / n));
|
|
1825
1793
|
}
|
|
1826
|
-
function
|
|
1794
|
+
function Xn({
|
|
1827
1795
|
services: e,
|
|
1828
1796
|
getHref: n,
|
|
1829
1797
|
onOpen: a
|
|
1830
1798
|
}) {
|
|
1831
|
-
const i =
|
|
1799
|
+
const i = zn(e);
|
|
1832
1800
|
if (i.length === 0)
|
|
1833
1801
|
return /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "No timed calls in this window yet." });
|
|
1834
|
-
const
|
|
1802
|
+
const o = vt(Math.max(...i.map((p) => p.calls))), c = vt(Math.max(...i.map((p) => p.p95Ms))), s = Math.max(1, ...i.map((p) => p.errorCount)), r = fe - L.left - L.right, d = ne - L.top - L.bottom, u = (p) => L.left + p / o * r, h = (p) => L.top + p / c * d, f = (p) => 16 + p / s * 14, v = yt(o), m = yt(c), N = 18, y = L.top + d / 2;
|
|
1835
1803
|
return /* @__PURE__ */ l("div", { className: "w6w-rel-scatter", children: [
|
|
1836
1804
|
/* @__PURE__ */ l(
|
|
1837
1805
|
"svg",
|
|
1838
1806
|
{
|
|
1839
|
-
viewBox: `0 0 ${
|
|
1840
|
-
style: { aspectRatio: `${
|
|
1807
|
+
viewBox: `0 0 ${fe} ${ne}`,
|
|
1808
|
+
style: { aspectRatio: `${fe} / ${ne}` },
|
|
1841
1809
|
role: "img",
|
|
1842
1810
|
"aria-label": "API performance: calls versus p95 latency, one point per API",
|
|
1843
1811
|
children: [
|
|
1844
1812
|
/* @__PURE__ */ t(
|
|
1845
1813
|
"rect",
|
|
1846
1814
|
{
|
|
1847
|
-
x:
|
|
1848
|
-
y:
|
|
1849
|
-
width:
|
|
1850
|
-
height:
|
|
1815
|
+
x: L.left,
|
|
1816
|
+
y: L.top,
|
|
1817
|
+
width: r,
|
|
1818
|
+
height: d,
|
|
1851
1819
|
className: "w6w-rel-scatter-plot-bg"
|
|
1852
1820
|
}
|
|
1853
1821
|
),
|
|
1854
|
-
|
|
1822
|
+
m.map((p) => /* @__PURE__ */ l("g", { children: [
|
|
1855
1823
|
/* @__PURE__ */ t(
|
|
1856
1824
|
"line",
|
|
1857
1825
|
{
|
|
1858
|
-
x1:
|
|
1859
|
-
x2:
|
|
1860
|
-
y1: h(
|
|
1861
|
-
y2: h(
|
|
1826
|
+
x1: L.left,
|
|
1827
|
+
x2: fe - L.right,
|
|
1828
|
+
y1: h(p),
|
|
1829
|
+
y2: h(p),
|
|
1862
1830
|
className: "w6w-rel-scatter-grid"
|
|
1863
1831
|
}
|
|
1864
1832
|
),
|
|
1865
|
-
/* @__PURE__ */ t("text", { x:
|
|
1866
|
-
] }, `y-${
|
|
1867
|
-
|
|
1833
|
+
/* @__PURE__ */ t("text", { x: L.left - 8, y: h(p), className: "w6w-rel-scatter-axis-label", textAnchor: "end", children: p })
|
|
1834
|
+
] }, `y-${p}`)),
|
|
1835
|
+
v.map((p) => /* @__PURE__ */ t(
|
|
1868
1836
|
"text",
|
|
1869
1837
|
{
|
|
1870
|
-
x:
|
|
1871
|
-
y:
|
|
1838
|
+
x: u(p),
|
|
1839
|
+
y: ne - L.bottom + 18,
|
|
1872
1840
|
className: "w6w-rel-scatter-axis-label",
|
|
1873
1841
|
textAnchor: "middle",
|
|
1874
|
-
children:
|
|
1842
|
+
children: p
|
|
1875
1843
|
},
|
|
1876
|
-
`x-${
|
|
1844
|
+
`x-${p}`
|
|
1877
1845
|
)),
|
|
1878
1846
|
/* @__PURE__ */ t(
|
|
1879
1847
|
"text",
|
|
1880
1848
|
{
|
|
1881
|
-
x:
|
|
1882
|
-
y
|
|
1849
|
+
x: N,
|
|
1850
|
+
y,
|
|
1883
1851
|
className: "w6w-rel-scatter-axis-title",
|
|
1884
1852
|
textAnchor: "middle",
|
|
1885
|
-
transform: `rotate(-90, ${
|
|
1853
|
+
transform: `rotate(-90, ${N}, ${y})`,
|
|
1886
1854
|
children: "p95 (ms)"
|
|
1887
1855
|
}
|
|
1888
1856
|
),
|
|
1889
1857
|
/* @__PURE__ */ t(
|
|
1890
1858
|
"text",
|
|
1891
1859
|
{
|
|
1892
|
-
x:
|
|
1893
|
-
y:
|
|
1860
|
+
x: L.left + r / 2,
|
|
1861
|
+
y: ne - 4,
|
|
1894
1862
|
className: "w6w-rel-scatter-axis-title",
|
|
1895
1863
|
textAnchor: "middle",
|
|
1896
1864
|
children: "calls in this window"
|
|
1897
1865
|
}
|
|
1898
1866
|
),
|
|
1899
|
-
i.map((
|
|
1900
|
-
const
|
|
1867
|
+
i.map((p) => {
|
|
1868
|
+
const P = f(p.errorCount), E = u(p.calls), M = h(p.p95Ms), I = /* @__PURE__ */ l(A, { children: [
|
|
1901
1869
|
/* @__PURE__ */ t(
|
|
1902
1870
|
"circle",
|
|
1903
1871
|
{
|
|
1904
|
-
cx:
|
|
1905
|
-
cy:
|
|
1906
|
-
r:
|
|
1907
|
-
className: `w6w-rel-scatter-ring w6w-rel-scatter-ring-${
|
|
1872
|
+
cx: E,
|
|
1873
|
+
cy: M,
|
|
1874
|
+
r: P / 2 + 2.5,
|
|
1875
|
+
className: `w6w-rel-scatter-ring w6w-rel-scatter-ring-${p.state}`,
|
|
1908
1876
|
children: /* @__PURE__ */ l("title", { children: [
|
|
1909
|
-
|
|
1877
|
+
p.displayName,
|
|
1910
1878
|
" — ",
|
|
1911
|
-
|
|
1879
|
+
p.calls,
|
|
1912
1880
|
" calls, ",
|
|
1913
|
-
|
|
1881
|
+
p.p95Ms,
|
|
1914
1882
|
" ms p95, ",
|
|
1915
|
-
|
|
1883
|
+
p.errorCount,
|
|
1916
1884
|
" errors"
|
|
1917
1885
|
] })
|
|
1918
1886
|
}
|
|
@@ -1920,38 +1888,38 @@ function Vn({
|
|
|
1920
1888
|
/* @__PURE__ */ t(
|
|
1921
1889
|
"circle",
|
|
1922
1890
|
{
|
|
1923
|
-
cx:
|
|
1924
|
-
cy:
|
|
1925
|
-
r:
|
|
1926
|
-
className: `w6w-rel-scatter-point w6w-rel-scatter-point-${
|
|
1891
|
+
cx: E,
|
|
1892
|
+
cy: M,
|
|
1893
|
+
r: P / 2,
|
|
1894
|
+
className: `w6w-rel-scatter-point w6w-rel-scatter-point-${p.state}`
|
|
1927
1895
|
}
|
|
1928
1896
|
)
|
|
1929
1897
|
] });
|
|
1930
1898
|
return n ? /* @__PURE__ */ t(
|
|
1931
1899
|
"a",
|
|
1932
1900
|
{
|
|
1933
|
-
href: n(
|
|
1901
|
+
href: n(p.appId),
|
|
1934
1902
|
className: "w6w-rel-scatter-point-link",
|
|
1935
|
-
onClick: a ? (
|
|
1936
|
-
children:
|
|
1903
|
+
onClick: a ? (C) => a(p.appId, C) : void 0,
|
|
1904
|
+
children: I
|
|
1937
1905
|
},
|
|
1938
|
-
|
|
1906
|
+
p.appId
|
|
1939
1907
|
) : a ? /* @__PURE__ */ t(
|
|
1940
1908
|
"g",
|
|
1941
1909
|
{
|
|
1942
1910
|
role: "button",
|
|
1943
1911
|
tabIndex: 0,
|
|
1944
1912
|
className: "w6w-rel-scatter-point-link",
|
|
1945
|
-
onClick: (
|
|
1946
|
-
onKeyDown: (
|
|
1947
|
-
(
|
|
1913
|
+
onClick: (C) => a(p.appId, C),
|
|
1914
|
+
onKeyDown: (C) => {
|
|
1915
|
+
(C.key === "Enter" || C.key === " ") && (C.preventDefault(), C.currentTarget.dispatchEvent(
|
|
1948
1916
|
new MouseEvent("click", { bubbles: !0 })
|
|
1949
1917
|
));
|
|
1950
1918
|
},
|
|
1951
|
-
children:
|
|
1919
|
+
children: I
|
|
1952
1920
|
},
|
|
1953
|
-
|
|
1954
|
-
) : /* @__PURE__ */ t("g", { children:
|
|
1921
|
+
p.appId
|
|
1922
|
+
) : /* @__PURE__ */ t("g", { children: I }, p.appId);
|
|
1955
1923
|
})
|
|
1956
1924
|
]
|
|
1957
1925
|
}
|
|
@@ -1959,17 +1927,17 @@ function Vn({
|
|
|
1959
1927
|
/* @__PURE__ */ t("p", { className: "w6w-muted w6w-small w6w-rel-scatter-note", children: "Up is faster, right is more calls — top-right is the best outcome. Icon size is the error count in this window; ring colour is exec status." })
|
|
1960
1928
|
] });
|
|
1961
1929
|
}
|
|
1962
|
-
function
|
|
1930
|
+
function Nt(e) {
|
|
1963
1931
|
const n = new Date(e);
|
|
1964
1932
|
return Number.isNaN(n.getTime()) ? e : n.toLocaleDateString(void 0, { month: "short", day: "numeric" });
|
|
1965
1933
|
}
|
|
1966
|
-
function
|
|
1934
|
+
function Ct({
|
|
1967
1935
|
appId: e,
|
|
1968
1936
|
className: n,
|
|
1969
1937
|
title: a,
|
|
1970
1938
|
getHref: i,
|
|
1971
|
-
onOpen:
|
|
1972
|
-
children:
|
|
1939
|
+
onOpen: o,
|
|
1940
|
+
children: c
|
|
1973
1941
|
}) {
|
|
1974
1942
|
return i ? /* @__PURE__ */ t(
|
|
1975
1943
|
"a",
|
|
@@ -1977,29 +1945,29 @@ function ht({
|
|
|
1977
1945
|
className: n,
|
|
1978
1946
|
href: i(e),
|
|
1979
1947
|
title: a,
|
|
1980
|
-
onClick:
|
|
1981
|
-
children:
|
|
1948
|
+
onClick: o ? (s) => o(e, s) : void 0,
|
|
1949
|
+
children: c
|
|
1982
1950
|
}
|
|
1983
|
-
) :
|
|
1951
|
+
) : o ? /* @__PURE__ */ t("button", { type: "button", className: n, title: a, onClick: (s) => o(e, s), children: c }) : /* @__PURE__ */ t("div", { className: n, title: a, children: c });
|
|
1984
1952
|
}
|
|
1985
|
-
function
|
|
1953
|
+
function St({ service: e }) {
|
|
1986
1954
|
return /* @__PURE__ */ l("span", { className: "w6w-rel-signal", children: [
|
|
1987
|
-
/* @__PURE__ */ t(
|
|
1955
|
+
/* @__PURE__ */ t(We, { state: e.state }),
|
|
1988
1956
|
e.ongoingOutageId && /* @__PURE__ */ t("span", { className: "w6w-rel-tag", children: "outage open" }),
|
|
1989
1957
|
e.calls === 0 && /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "no calls" })
|
|
1990
1958
|
] });
|
|
1991
1959
|
}
|
|
1992
|
-
function
|
|
1960
|
+
function $t({ vendor: e }) {
|
|
1993
1961
|
if (!e) return /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "not published" });
|
|
1994
1962
|
const n = e.state === "unknown";
|
|
1995
1963
|
return /* @__PURE__ */ l("span", { className: "w6w-rel-signal", title: e.message ?? void 0, children: [
|
|
1996
|
-
/* @__PURE__ */ t(
|
|
1964
|
+
/* @__PURE__ */ t(We, { state: e.state, label: n ? "Unavailable" : void 0 }),
|
|
1997
1965
|
!n && e.message && /* @__PURE__ */ t("span", { className: "w6w-rel-vendor-msg w6w-small", children: e.message })
|
|
1998
1966
|
] });
|
|
1999
1967
|
}
|
|
2000
|
-
function
|
|
1968
|
+
function ea({ service: e, getHref: n, onOpen: a }) {
|
|
2001
1969
|
return /* @__PURE__ */ l(
|
|
2002
|
-
|
|
1970
|
+
Ct,
|
|
2003
1971
|
{
|
|
2004
1972
|
appId: e.appId,
|
|
2005
1973
|
className: "w6w-rel-issue-card",
|
|
@@ -2009,7 +1977,7 @@ function Yn({ service: e, getHref: n, onOpen: a }) {
|
|
|
2009
1977
|
children: [
|
|
2010
1978
|
/* @__PURE__ */ l("span", { className: "w6w-rel-issue-head", children: [
|
|
2011
1979
|
/* @__PURE__ */ t(
|
|
2012
|
-
|
|
1980
|
+
be,
|
|
2013
1981
|
{
|
|
2014
1982
|
src: e.iconSrc,
|
|
2015
1983
|
srcDark: e.iconSrcDark,
|
|
@@ -2026,18 +1994,18 @@ function Yn({ service: e, getHref: n, onOpen: a }) {
|
|
|
2026
1994
|
/* @__PURE__ */ l("span", { className: "w6w-rel-issue-signals", children: [
|
|
2027
1995
|
/* @__PURE__ */ l("span", { className: "w6w-rel-issue-signal", children: [
|
|
2028
1996
|
/* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "w6w exec" }),
|
|
2029
|
-
/* @__PURE__ */ t(
|
|
1997
|
+
/* @__PURE__ */ t(St, { service: e })
|
|
2030
1998
|
] }),
|
|
2031
1999
|
/* @__PURE__ */ l("span", { className: "w6w-rel-issue-signal", children: [
|
|
2032
2000
|
/* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "API status" }),
|
|
2033
|
-
/* @__PURE__ */ t(
|
|
2001
|
+
/* @__PURE__ */ t($t, { vendor: e.vendorStatus })
|
|
2034
2002
|
] })
|
|
2035
2003
|
] })
|
|
2036
2004
|
]
|
|
2037
2005
|
}
|
|
2038
2006
|
);
|
|
2039
2007
|
}
|
|
2040
|
-
function
|
|
2008
|
+
function ta({
|
|
2041
2009
|
service: e,
|
|
2042
2010
|
getHref: n,
|
|
2043
2011
|
onOpen: a
|
|
@@ -2049,9 +2017,9 @@ function Gn({
|
|
|
2049
2017
|
className: `w6w-rel-tr${e.attention !== "none" ? " w6w-rel-attention" : ""}`,
|
|
2050
2018
|
"data-attention": e.attention === "none" ? void 0 : e.attention,
|
|
2051
2019
|
children: [
|
|
2052
|
-
/* @__PURE__ */ t("td", { className: "w6w-rel-td-service", children: /* @__PURE__ */ l(
|
|
2020
|
+
/* @__PURE__ */ t("td", { className: "w6w-rel-td-service", children: /* @__PURE__ */ l(Ct, { appId: e.appId, className: "w6w-rel-open", getHref: n, onOpen: a, children: [
|
|
2053
2021
|
/* @__PURE__ */ t(
|
|
2054
|
-
|
|
2022
|
+
be,
|
|
2055
2023
|
{
|
|
2056
2024
|
src: e.iconSrc,
|
|
2057
2025
|
srcDark: e.iconSrcDark,
|
|
@@ -2068,21 +2036,21 @@ function Gn({
|
|
|
2068
2036
|
/* @__PURE__ */ l("td", { className: "w6w-rel-td-status", children: [
|
|
2069
2037
|
/* @__PURE__ */ l("span", { className: "w6w-rel-status-row", children: [
|
|
2070
2038
|
/* @__PURE__ */ t("span", { className: "w6w-rel-status-label w6w-muted w6w-small", children: "Ops" }),
|
|
2071
|
-
/* @__PURE__ */ t(
|
|
2039
|
+
/* @__PURE__ */ t(St, { service: e })
|
|
2072
2040
|
] }),
|
|
2073
2041
|
/* @__PURE__ */ l("span", { className: "w6w-rel-status-row", children: [
|
|
2074
2042
|
/* @__PURE__ */ t("span", { className: "w6w-rel-status-label w6w-muted w6w-small", children: "API" }),
|
|
2075
|
-
/* @__PURE__ */ t(
|
|
2043
|
+
/* @__PURE__ */ t($t, { vendor: e.vendorStatus })
|
|
2076
2044
|
] })
|
|
2077
2045
|
] }),
|
|
2078
2046
|
/* @__PURE__ */ t("td", { className: "w6w-rel-td-uptime", children: i ? (
|
|
2079
2047
|
// A zero-call window is one identical hatched strip — the note says it better.
|
|
2080
2048
|
/* @__PURE__ */ t("span", { className: "w6w-rel-idle-note", children: "No calls in this window" })
|
|
2081
|
-
) : /* @__PURE__ */ l(
|
|
2049
|
+
) : /* @__PURE__ */ l(A, { children: [
|
|
2082
2050
|
/* @__PURE__ */ t(
|
|
2083
|
-
|
|
2051
|
+
gn,
|
|
2084
2052
|
{
|
|
2085
|
-
days:
|
|
2053
|
+
days: Yn(e),
|
|
2086
2054
|
ariaLabel: `${e.displayName}, ${e.uptime.length}-day status, oldest day first`
|
|
2087
2055
|
}
|
|
2088
2056
|
),
|
|
@@ -2096,35 +2064,35 @@ function Gn({
|
|
|
2096
2064
|
}
|
|
2097
2065
|
);
|
|
2098
2066
|
}
|
|
2099
|
-
function
|
|
2067
|
+
function Ra({
|
|
2100
2068
|
services: e,
|
|
2101
2069
|
window: n,
|
|
2102
2070
|
days: a,
|
|
2103
2071
|
compact: i = !1,
|
|
2104
|
-
showChart:
|
|
2105
|
-
limit:
|
|
2072
|
+
showChart: o,
|
|
2073
|
+
limit: c,
|
|
2106
2074
|
getHref: s,
|
|
2107
|
-
onOpen:
|
|
2108
|
-
showAllHref:
|
|
2109
|
-
onShowAll:
|
|
2075
|
+
onOpen: r,
|
|
2076
|
+
showAllHref: d,
|
|
2077
|
+
onShowAll: u,
|
|
2110
2078
|
slots: h
|
|
2111
2079
|
}) {
|
|
2112
|
-
const
|
|
2113
|
-
attentionCount:
|
|
2114
|
-
shownNow:
|
|
2115
|
-
shownRecent:
|
|
2116
|
-
hiddenAttentionCount:
|
|
2117
|
-
shownTable:
|
|
2118
|
-
hiddenTableCount:
|
|
2119
|
-
} =
|
|
2120
|
-
const
|
|
2121
|
-
return
|
|
2080
|
+
const f = a ?? (n == null ? void 0 : n.days) ?? 30, v = e.length > 0 && e.every((S) => S.calls > 0 && S.state === "ok"), {
|
|
2081
|
+
attentionCount: m,
|
|
2082
|
+
shownNow: N,
|
|
2083
|
+
shownRecent: y,
|
|
2084
|
+
hiddenAttentionCount: p,
|
|
2085
|
+
shownTable: P,
|
|
2086
|
+
hiddenTableCount: E
|
|
2087
|
+
} = Zn(e, { compact: i, limit: c }), M = o ?? !i, I = d !== void 0 || u !== void 0, C = (S) => {
|
|
2088
|
+
const O = S.startsWith("Show") ? "w6w-muted w6w-small" : void 0;
|
|
2089
|
+
return d !== void 0 ? /* @__PURE__ */ t("a", { href: d, className: O, onClick: u, children: S }) : u ? /* @__PURE__ */ t(
|
|
2122
2090
|
"button",
|
|
2123
2091
|
{
|
|
2124
2092
|
type: "button",
|
|
2125
|
-
className: `w6w-rel-show-all${
|
|
2126
|
-
onClick:
|
|
2127
|
-
children:
|
|
2093
|
+
className: `w6w-rel-show-all${O ? ` ${O}` : ""}`,
|
|
2094
|
+
onClick: u,
|
|
2095
|
+
children: S
|
|
2128
2096
|
}
|
|
2129
2097
|
) : null;
|
|
2130
2098
|
};
|
|
@@ -2134,64 +2102,64 @@ function ka({
|
|
|
2134
2102
|
(h == null ? void 0 : h.header) ?? "Service reliability",
|
|
2135
2103
|
" ",
|
|
2136
2104
|
n && /* @__PURE__ */ l("span", { className: "w6w-muted w6w-small", children: [
|
|
2137
|
-
|
|
2105
|
+
Nt(n.from),
|
|
2138
2106
|
" – ",
|
|
2139
|
-
|
|
2107
|
+
Nt(n.to),
|
|
2140
2108
|
" · ",
|
|
2141
2109
|
n.days,
|
|
2142
2110
|
" days"
|
|
2143
2111
|
] })
|
|
2144
2112
|
] }),
|
|
2145
|
-
i &&
|
|
2113
|
+
i && C("Show all services →"),
|
|
2146
2114
|
h == null ? void 0 : h.actions
|
|
2147
2115
|
] }),
|
|
2148
2116
|
/* @__PURE__ */ l("div", { className: i ? "w6w-rel-card" : void 0, children: [
|
|
2149
2117
|
/* @__PURE__ */ t("p", { className: "w6w-muted w6w-small w6w-rel-intro", children: "Connected services across your account. Performance for the selected project." }),
|
|
2150
|
-
|
|
2118
|
+
v && /* @__PURE__ */ l("div", { className: i ? "w6w-rel-allclear" : "w6w-rel-card w6w-rel-allclear", children: [
|
|
2151
2119
|
/* @__PURE__ */ t("h4", { children: "All clear" }),
|
|
2152
2120
|
/* @__PURE__ */ l("p", { children: [
|
|
2153
2121
|
"Every service you called in the last ",
|
|
2154
|
-
|
|
2122
|
+
f,
|
|
2155
2123
|
" days came back",
|
|
2156
2124
|
" ",
|
|
2157
|
-
/* @__PURE__ */ t(
|
|
2125
|
+
/* @__PURE__ */ t(We, { state: "ok" }),
|
|
2158
2126
|
" — no degraded stretches, no outages."
|
|
2159
2127
|
] })
|
|
2160
2128
|
] }),
|
|
2161
2129
|
e.length === 0 && ((h == null ? void 0 : h.empty) ?? /* @__PURE__ */ t("div", { className: i ? void 0 : "w6w-rel-card", children: /* @__PURE__ */ t("p", { className: "w6w-muted", children: "No services yet — connect an integration or use a service in this project." }) })),
|
|
2162
|
-
e.length > 0 && /* @__PURE__ */ l(
|
|
2163
|
-
|
|
2130
|
+
e.length > 0 && /* @__PURE__ */ l(A, { children: [
|
|
2131
|
+
m > 0 && /* @__PURE__ */ l("div", { className: "w6w-rel-group", children: [
|
|
2164
2132
|
/* @__PURE__ */ l("h4", { className: "w6w-rel-group-head", children: [
|
|
2165
2133
|
"Needs attention",
|
|
2166
2134
|
" ",
|
|
2167
2135
|
/* @__PURE__ */ l("span", { className: "w6w-muted w6w-small", children: [
|
|
2168
|
-
|
|
2136
|
+
N.length + y.length,
|
|
2169
2137
|
" of ",
|
|
2170
|
-
|
|
2138
|
+
m
|
|
2171
2139
|
] })
|
|
2172
2140
|
] }),
|
|
2173
|
-
/* @__PURE__ */ t("div", { className: "w6w-rel-issues", children: [...
|
|
2174
|
-
|
|
2175
|
-
|
|
2141
|
+
/* @__PURE__ */ t("div", { className: "w6w-rel-issues", children: [...N, ...y].map((S) => /* @__PURE__ */ t(ea, { service: S, getHref: s, onOpen: r }, S.appId)) }),
|
|
2142
|
+
p > 0 && /* @__PURE__ */ l("p", { className: "w6w-muted w6w-small w6w-rel-more-note", children: [
|
|
2143
|
+
p,
|
|
2176
2144
|
" more ",
|
|
2177
|
-
|
|
2145
|
+
p === 1 ? "needs" : "need",
|
|
2178
2146
|
" ",
|
|
2179
2147
|
"attention",
|
|
2180
|
-
|
|
2148
|
+
I && /* @__PURE__ */ l(A, { children: [
|
|
2181
2149
|
" — ",
|
|
2182
|
-
|
|
2150
|
+
C("view all →")
|
|
2183
2151
|
] })
|
|
2184
2152
|
] })
|
|
2185
2153
|
] }),
|
|
2186
|
-
|
|
2154
|
+
M && /* @__PURE__ */ l("div", { className: "w6w-rel-group", children: [
|
|
2187
2155
|
/* @__PURE__ */ t("h4", { className: "w6w-rel-group-head", children: "Performance across your APIs" }),
|
|
2188
|
-
/* @__PURE__ */ t(
|
|
2156
|
+
/* @__PURE__ */ t(Xn, { services: e, getHref: s, onOpen: r })
|
|
2189
2157
|
] }),
|
|
2190
|
-
|
|
2158
|
+
P.length > 0 && /* @__PURE__ */ l("div", { className: "w6w-rel-group", children: [
|
|
2191
2159
|
/* @__PURE__ */ l("h4", { className: "w6w-rel-group-head", children: [
|
|
2192
2160
|
i ? "Services" : "All services",
|
|
2193
2161
|
" ",
|
|
2194
|
-
/* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: i ? `${
|
|
2162
|
+
/* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: i ? `${P.length} of ${e.length}` : e.length })
|
|
2195
2163
|
] }),
|
|
2196
2164
|
/* @__PURE__ */ t("div", { className: "w6w-rel-table-wrap", children: /* @__PURE__ */ l("table", { className: "w6w-rel-table", children: [
|
|
2197
2165
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
@@ -2199,27 +2167,27 @@ function ka({
|
|
|
2199
2167
|
/* @__PURE__ */ t("th", { children: "Status" }),
|
|
2200
2168
|
/* @__PURE__ */ l("th", { children: [
|
|
2201
2169
|
"Last ",
|
|
2202
|
-
|
|
2170
|
+
f,
|
|
2203
2171
|
" days"
|
|
2204
2172
|
] }),
|
|
2205
2173
|
/* @__PURE__ */ t("th", { children: "Latency" })
|
|
2206
2174
|
] }) }),
|
|
2207
|
-
/* @__PURE__ */ t("tbody", { children:
|
|
2208
|
-
|
|
2175
|
+
/* @__PURE__ */ t("tbody", { children: P.map((S) => /* @__PURE__ */ t(
|
|
2176
|
+
ta,
|
|
2209
2177
|
{
|
|
2210
|
-
service:
|
|
2178
|
+
service: S,
|
|
2211
2179
|
getHref: s,
|
|
2212
|
-
onOpen:
|
|
2180
|
+
onOpen: r
|
|
2213
2181
|
},
|
|
2214
|
-
|
|
2182
|
+
S.appId
|
|
2215
2183
|
)) })
|
|
2216
2184
|
] }) }),
|
|
2217
|
-
|
|
2218
|
-
|
|
2185
|
+
E > 0 && /* @__PURE__ */ l("p", { className: "w6w-muted w6w-small w6w-rel-more-note", children: [
|
|
2186
|
+
E,
|
|
2219
2187
|
" more",
|
|
2220
|
-
|
|
2188
|
+
I && /* @__PURE__ */ l(A, { children: [
|
|
2221
2189
|
" — ",
|
|
2222
|
-
|
|
2190
|
+
C("view all →")
|
|
2223
2191
|
] })
|
|
2224
2192
|
] })
|
|
2225
2193
|
] })
|
|
@@ -2227,30 +2195,105 @@ function ka({
|
|
|
2227
2195
|
] })
|
|
2228
2196
|
] });
|
|
2229
2197
|
}
|
|
2230
|
-
function
|
|
2198
|
+
function na(e, n) {
|
|
2199
|
+
return e.render ? e.render(n) : String(n[e.key] ?? "");
|
|
2200
|
+
}
|
|
2201
|
+
function Tt(e) {
|
|
2202
|
+
const { columns: n, rows: a, rowKey: i, onRowClick: o, getRowHref: c, empty: s, loading: r, className: d, testId: u } = e;
|
|
2203
|
+
return a.length === 0 && !r && s !== void 0 && s !== null ? /* @__PURE__ */ t(A, { children: s }) : /* @__PURE__ */ t("div", { className: "w6w-data-table-frame", children: /* @__PURE__ */ l(
|
|
2204
|
+
"table",
|
|
2205
|
+
{
|
|
2206
|
+
className: d ? `w6w-data-table ${d}` : "w6w-data-table",
|
|
2207
|
+
"data-testid": u,
|
|
2208
|
+
"aria-busy": r ? !0 : void 0,
|
|
2209
|
+
children: [
|
|
2210
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: n.map((h) => /* @__PURE__ */ t("th", { style: { width: h.width, textAlign: h.align }, scope: "col", children: h.header }, h.key)) }) }),
|
|
2211
|
+
/* @__PURE__ */ t("tbody", { children: a.map((h) => {
|
|
2212
|
+
var v;
|
|
2213
|
+
const f = c == null ? void 0 : c(h);
|
|
2214
|
+
return (
|
|
2215
|
+
// biome-ignore lint/a11y/useKeyWithClickEvents: row click is a mouse convenience; keyboard users reach the row through its cell anchors (getRowHref) or the column's own controls.
|
|
2216
|
+
/* @__PURE__ */ t(
|
|
2217
|
+
"tr",
|
|
2218
|
+
{
|
|
2219
|
+
"data-testid": (v = e.rowTestId) == null ? void 0 : v.call(e, h),
|
|
2220
|
+
className: o ? "w6w-data-table-row-clickable" : void 0,
|
|
2221
|
+
onClick: o ? (m) => o(h, m) : void 0,
|
|
2222
|
+
children: n.map((m) => {
|
|
2223
|
+
const N = na(m, h);
|
|
2224
|
+
return /* @__PURE__ */ t("td", { style: { textAlign: m.align }, children: f !== void 0 && m.link !== !1 ? /* @__PURE__ */ t("a", { className: "w6w-data-table-link", href: f, children: N }) : N }, m.key);
|
|
2225
|
+
})
|
|
2226
|
+
},
|
|
2227
|
+
i(h)
|
|
2228
|
+
)
|
|
2229
|
+
);
|
|
2230
|
+
}) })
|
|
2231
|
+
]
|
|
2232
|
+
}
|
|
2233
|
+
) });
|
|
2234
|
+
}
|
|
2235
|
+
function je({ title: e, children: n, action: a, className: i, testId: o }) {
|
|
2236
|
+
return /* @__PURE__ */ t(
|
|
2237
|
+
"div",
|
|
2238
|
+
{
|
|
2239
|
+
className: i ? `w6w-empty-state ${i}` : "w6w-empty-state",
|
|
2240
|
+
"data-testid": o,
|
|
2241
|
+
children: /* @__PURE__ */ l("div", { className: "w6w-empty-state-inner", children: [
|
|
2242
|
+
e != null && /* @__PURE__ */ t("div", { className: "w6w-empty-state-title", children: e }),
|
|
2243
|
+
n != null && /* @__PURE__ */ t("div", { className: "w6w-empty-state-body", children: n }),
|
|
2244
|
+
a != null && /* @__PURE__ */ t("div", { className: "w6w-empty-state-action", children: a })
|
|
2245
|
+
] })
|
|
2246
|
+
}
|
|
2247
|
+
);
|
|
2248
|
+
}
|
|
2249
|
+
function Ia({
|
|
2231
2250
|
rows: e,
|
|
2232
2251
|
title: n,
|
|
2233
2252
|
description: a,
|
|
2234
2253
|
emptyCopy: i,
|
|
2235
|
-
newLabel:
|
|
2236
|
-
openRowTitle:
|
|
2254
|
+
newLabel: o = "New",
|
|
2255
|
+
openRowTitle: c,
|
|
2237
2256
|
testIds: s,
|
|
2238
|
-
loading:
|
|
2239
|
-
error:
|
|
2240
|
-
onCreate:
|
|
2257
|
+
loading: r,
|
|
2258
|
+
error: d,
|
|
2259
|
+
onCreate: u,
|
|
2241
2260
|
creating: h,
|
|
2242
|
-
onImport:
|
|
2243
|
-
onOpen:
|
|
2244
|
-
getHref:
|
|
2245
|
-
showArchived:
|
|
2246
|
-
onShowArchivedChange:
|
|
2247
|
-
slots:
|
|
2261
|
+
onImport: f,
|
|
2262
|
+
onOpen: v,
|
|
2263
|
+
getHref: m,
|
|
2264
|
+
showArchived: N,
|
|
2265
|
+
onShowArchivedChange: y,
|
|
2266
|
+
slots: p
|
|
2248
2267
|
}) {
|
|
2249
|
-
const [
|
|
2268
|
+
const [P, E] = g(!1), M = N !== void 0, I = M ? N : P, C = I ? e : e.filter((k) => !k.archived), S = v !== void 0 || m !== void 0, O = (k) => {
|
|
2269
|
+
M || E(k), y == null || y(k);
|
|
2270
|
+
}, F = [
|
|
2271
|
+
{
|
|
2272
|
+
key: "main",
|
|
2273
|
+
header: "Name",
|
|
2274
|
+
render: (k) => {
|
|
2275
|
+
const R = /* @__PURE__ */ l("span", { className: "w6w-callable-list-main", title: S ? c : void 0, children: [
|
|
2276
|
+
/* @__PURE__ */ t("span", { children: k.title }),
|
|
2277
|
+
k.description != null && /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small w6w-callable-list-row-desc", children: k.description })
|
|
2278
|
+
] });
|
|
2279
|
+
return v && !m ? /* @__PURE__ */ t("button", { type: "button", className: "w6w-callable-list-open", children: R }) : R;
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
key: "trail",
|
|
2284
|
+
header: "",
|
|
2285
|
+
align: "right",
|
|
2286
|
+
render: (k) => k.archived || k.badges != null || k.trailing != null ? /* @__PURE__ */ l("span", { className: "w6w-callable-list-trail", children: [
|
|
2287
|
+
k.badges,
|
|
2288
|
+
k.archived && /* @__PURE__ */ t("span", { className: "w6w-callable-list-badge", "data-testid": s == null ? void 0 : s.archivedBadge, children: "archived" }),
|
|
2289
|
+
k.trailing
|
|
2290
|
+
] }) : null
|
|
2291
|
+
}
|
|
2292
|
+
], U = e.length > 0 && C.length === 0;
|
|
2250
2293
|
return /* @__PURE__ */ l("section", { className: "w6w-callable-list", children: [
|
|
2251
2294
|
/* @__PURE__ */ l("div", { className: "w6w-callable-list-head", children: [
|
|
2252
2295
|
/* @__PURE__ */ l("div", { className: "w6w-callable-list-heading", children: [
|
|
2253
|
-
(
|
|
2296
|
+
(p == null ? void 0 : p.header) ?? /* @__PURE__ */ l(A, { children: [
|
|
2254
2297
|
/* @__PURE__ */ t("h2", { className: "w6w-callable-list-title", children: n }),
|
|
2255
2298
|
a != null && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small w6w-callable-list-description", children: a })
|
|
2256
2299
|
] }),
|
|
@@ -2259,210 +2302,277 @@ function xa({
|
|
|
2259
2302
|
"input",
|
|
2260
2303
|
{
|
|
2261
2304
|
type: "checkbox",
|
|
2262
|
-
checked:
|
|
2305
|
+
checked: I,
|
|
2263
2306
|
"data-testid": s == null ? void 0 : s.showArchived,
|
|
2264
|
-
onChange: (
|
|
2265
|
-
R || T(N.target.checked), v == null || v(N.target.checked);
|
|
2266
|
-
}
|
|
2307
|
+
onChange: (k) => O(k.target.checked)
|
|
2267
2308
|
}
|
|
2268
2309
|
),
|
|
2269
2310
|
"Show archived"
|
|
2270
2311
|
] })
|
|
2271
2312
|
] }),
|
|
2272
2313
|
/* @__PURE__ */ l("div", { className: "w6w-callable-list-actions", children: [
|
|
2273
|
-
|
|
2274
|
-
|
|
2314
|
+
p == null ? void 0 : p.actions,
|
|
2315
|
+
f && /* @__PURE__ */ t(
|
|
2275
2316
|
"button",
|
|
2276
2317
|
{
|
|
2277
2318
|
type: "button",
|
|
2278
2319
|
className: "w6w-btn w6w-btn-ghost",
|
|
2279
2320
|
"data-testid": s == null ? void 0 : s.importOpen,
|
|
2280
|
-
onClick:
|
|
2321
|
+
onClick: f,
|
|
2281
2322
|
children: "Import"
|
|
2282
2323
|
}
|
|
2283
2324
|
),
|
|
2284
|
-
|
|
2325
|
+
u && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn", disabled: h, onClick: u, children: h ? "Creating…" : o })
|
|
2285
2326
|
] })
|
|
2286
2327
|
] }),
|
|
2287
|
-
|
|
2328
|
+
d && /* @__PURE__ */ t("div", { className: "w6w-error", children: d }),
|
|
2288
2329
|
/* @__PURE__ */ l("div", { className: "w6w-callable-list-body", children: [
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
H,
|
|
2330
|
+
r && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
|
|
2331
|
+
C.length === 0 && !r ? U ? /* @__PURE__ */ t(
|
|
2332
|
+
je,
|
|
2293
2333
|
{
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
"
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2334
|
+
testId: "w6w-callable-list-empty",
|
|
2335
|
+
action: /* @__PURE__ */ t(
|
|
2336
|
+
"button",
|
|
2337
|
+
{
|
|
2338
|
+
type: "button",
|
|
2339
|
+
className: "w6w-btn w6w-btn-ghost",
|
|
2340
|
+
onClick: () => O(!0),
|
|
2341
|
+
children: "Show archived"
|
|
2342
|
+
}
|
|
2343
|
+
),
|
|
2344
|
+
children: e.length === 1 ? "The only item is archived." : `All ${e.length} items are archived.`
|
|
2345
|
+
}
|
|
2346
|
+
) : /* @__PURE__ */ t(je, { testId: "w6w-callable-list-empty", children: (p == null ? void 0 : p.empty) ?? i }) : /* @__PURE__ */ t(
|
|
2347
|
+
Tt,
|
|
2348
|
+
{
|
|
2349
|
+
columns: F,
|
|
2350
|
+
rows: C,
|
|
2351
|
+
rowKey: (k) => k.id,
|
|
2352
|
+
loading: r,
|
|
2353
|
+
getRowHref: m ? (k) => m(k.id) : void 0,
|
|
2354
|
+
onRowClick: v ? (k, R) => v(k.id, R) : void 0
|
|
2310
2355
|
}
|
|
2311
|
-
)
|
|
2356
|
+
)
|
|
2312
2357
|
] })
|
|
2313
2358
|
] });
|
|
2314
2359
|
}
|
|
2315
|
-
function
|
|
2360
|
+
function aa(e, n) {
|
|
2316
2361
|
if (e.app) return e.app;
|
|
2317
2362
|
if (e.app !== null)
|
|
2318
2363
|
return n.get(e.appId);
|
|
2319
2364
|
}
|
|
2320
|
-
function
|
|
2365
|
+
function Oa(e) {
|
|
2321
2366
|
const n = /* @__PURE__ */ new Set();
|
|
2322
2367
|
for (const a of e)
|
|
2323
2368
|
a.app === void 0 && n.add(a.appId);
|
|
2324
2369
|
return [...n];
|
|
2325
2370
|
}
|
|
2326
|
-
function
|
|
2371
|
+
function Ea({
|
|
2327
2372
|
connections: e,
|
|
2328
2373
|
appsById: n,
|
|
2329
2374
|
loading: a,
|
|
2330
2375
|
error: i,
|
|
2331
|
-
onOpen:
|
|
2332
|
-
getHref:
|
|
2376
|
+
onOpen: o,
|
|
2377
|
+
getHref: c,
|
|
2333
2378
|
onEdit: s,
|
|
2334
|
-
onDelete:
|
|
2335
|
-
busy:
|
|
2336
|
-
slots:
|
|
2379
|
+
onDelete: r,
|
|
2380
|
+
busy: d,
|
|
2381
|
+
slots: u
|
|
2337
2382
|
}) {
|
|
2338
|
-
const h = n ?? /* @__PURE__ */ new Map()
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
/* @__PURE__ */ t("ul", { className: "w6w-connection-rows", children: e.map((m) => {
|
|
2348
|
-
const p = Qn(m, h), g = m.displayName || m.id, S = m.builtIn === !0;
|
|
2349
|
-
return /* @__PURE__ */ l("li", { className: "w6w-connection-row", children: [
|
|
2350
|
-
/* @__PURE__ */ t("div", { className: "w6w-connection-row-main", children: /* @__PURE__ */ t(
|
|
2351
|
-
H,
|
|
2352
|
-
{
|
|
2353
|
-
href: S || r == null ? void 0 : r(m.id),
|
|
2354
|
-
onClick: S || !c ? void 0 : (v) => c(m.id, v),
|
|
2355
|
-
icon: /* @__PURE__ */ t(
|
|
2356
|
-
de,
|
|
2357
|
-
{
|
|
2358
|
-
src: p == null ? void 0 : p.iconSvg,
|
|
2359
|
-
srcDark: p == null ? void 0 : p.iconSvgDark,
|
|
2360
|
-
brandColor: p == null ? void 0 : p.brandColor,
|
|
2361
|
-
name: (p == null ? void 0 : p.displayName) ?? m.appId
|
|
2362
|
-
}
|
|
2363
|
-
),
|
|
2364
|
-
title: /* @__PURE__ */ l(C, { children: [
|
|
2365
|
-
/* @__PURE__ */ t("strong", { className: "w6w-connection-name", title: g, children: g }),
|
|
2366
|
-
" ",
|
|
2367
|
-
/* @__PURE__ */ t("span", { className: "w6w-muted", children: (p == null ? void 0 : p.displayName) ?? m.appId })
|
|
2368
|
-
] }),
|
|
2369
|
-
subtitle: /* @__PURE__ */ l(C, { children: [
|
|
2370
|
-
"auth ",
|
|
2371
|
-
/* @__PURE__ */ t("code", { children: m.authKey }),
|
|
2372
|
-
" ·",
|
|
2373
|
-
" ",
|
|
2374
|
-
/* @__PURE__ */ t(
|
|
2375
|
-
"span",
|
|
2376
|
-
{
|
|
2377
|
-
className: `w6w-connection-tag${m.state === "connected" ? "" : " w6w-connection-tag-warn"}`,
|
|
2378
|
-
children: m.state
|
|
2379
|
-
}
|
|
2380
|
-
),
|
|
2381
|
-
m.lastTestOk === !1 && /* @__PURE__ */ t(
|
|
2382
|
-
"span",
|
|
2383
|
-
{
|
|
2384
|
-
className: "w6w-connection-tag w6w-connection-tag-danger",
|
|
2385
|
-
title: "Last test failed — update or re-test.",
|
|
2386
|
-
children: "invalid"
|
|
2387
|
-
}
|
|
2388
|
-
)
|
|
2389
|
-
] })
|
|
2390
|
-
}
|
|
2391
|
-
) }),
|
|
2392
|
-
!S && (s || o) && /* @__PURE__ */ l("div", { className: "w6w-connection-row-actions", children: [
|
|
2393
|
-
s && /* @__PURE__ */ t(
|
|
2394
|
-
An,
|
|
2383
|
+
const h = n ?? /* @__PURE__ */ new Map(), f = s !== void 0 || r !== void 0, v = [
|
|
2384
|
+
{
|
|
2385
|
+
key: "name",
|
|
2386
|
+
header: "Name",
|
|
2387
|
+
render: (m) => {
|
|
2388
|
+
const N = aa(m, h), y = m.displayName || m.id;
|
|
2389
|
+
return /* @__PURE__ */ l("span", { className: "w6w-connection-cell-name", children: [
|
|
2390
|
+
/* @__PURE__ */ t(
|
|
2391
|
+
be,
|
|
2395
2392
|
{
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2393
|
+
src: N == null ? void 0 : N.iconSvg,
|
|
2394
|
+
srcDark: N == null ? void 0 : N.iconSvgDark,
|
|
2395
|
+
brandColor: N == null ? void 0 : N.brandColor,
|
|
2396
|
+
name: (N == null ? void 0 : N.displayName) ?? m.appId
|
|
2399
2397
|
}
|
|
2400
2398
|
),
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2399
|
+
/* @__PURE__ */ t("strong", { className: "w6w-connection-name", title: y, children: y }),
|
|
2400
|
+
" ",
|
|
2401
|
+
/* @__PURE__ */ t("span", { className: "w6w-muted", children: (N == null ? void 0 : N.displayName) ?? m.appId })
|
|
2402
|
+
] });
|
|
2403
|
+
}
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
key: "status",
|
|
2407
|
+
header: "Status",
|
|
2408
|
+
render: (m) => /* @__PURE__ */ l(A, { children: [
|
|
2409
|
+
"auth ",
|
|
2410
|
+
/* @__PURE__ */ t("code", { children: m.authKey }),
|
|
2411
|
+
" ·",
|
|
2412
|
+
" ",
|
|
2413
|
+
/* @__PURE__ */ t(
|
|
2414
|
+
"span",
|
|
2415
|
+
{
|
|
2416
|
+
className: `w6w-connection-tag${m.state === "connected" ? "" : " w6w-connection-tag-warn"}`,
|
|
2417
|
+
children: m.state
|
|
2418
|
+
}
|
|
2419
|
+
),
|
|
2420
|
+
m.lastTestOk === !1 && /* @__PURE__ */ t(
|
|
2421
|
+
"span",
|
|
2422
|
+
{
|
|
2423
|
+
className: "w6w-connection-tag w6w-connection-tag-danger",
|
|
2424
|
+
title: "Last test failed — update or re-test.",
|
|
2425
|
+
children: "invalid"
|
|
2426
|
+
}
|
|
2427
|
+
)
|
|
2428
|
+
] })
|
|
2429
|
+
}
|
|
2430
|
+
];
|
|
2431
|
+
return f && v.push({
|
|
2432
|
+
key: "actions",
|
|
2433
|
+
header: "",
|
|
2434
|
+
align: "right",
|
|
2435
|
+
link: !1,
|
|
2436
|
+
render: (m) => m.builtIn === !0 ? null : (
|
|
2437
|
+
// Clicks here must not reach the row's onOpen.
|
|
2438
|
+
// biome-ignore lint/a11y/useKeyWithClickEvents: propagation guard only; the buttons inside are the controls.
|
|
2439
|
+
/* @__PURE__ */ l("div", { className: "w6w-connection-row-actions", onClick: (N) => N.stopPropagation(), children: [
|
|
2440
|
+
s && /* @__PURE__ */ t(
|
|
2441
|
+
En,
|
|
2442
|
+
{
|
|
2443
|
+
label: "Edit",
|
|
2444
|
+
onClick: () => s(m),
|
|
2445
|
+
"data-testid": `connection-edit-${m.id}`
|
|
2446
|
+
}
|
|
2447
|
+
),
|
|
2448
|
+
r && /* @__PURE__ */ t(
|
|
2449
|
+
Mn,
|
|
2450
|
+
{
|
|
2451
|
+
label: "Delete",
|
|
2452
|
+
onClick: () => r(m),
|
|
2453
|
+
disabled: d,
|
|
2454
|
+
"data-testid": `connection-delete-${m.id}`
|
|
2455
|
+
}
|
|
2456
|
+
)
|
|
2457
|
+
] })
|
|
2458
|
+
)
|
|
2459
|
+
}), /* @__PURE__ */ l("section", { className: "w6w-connection-list", children: [
|
|
2460
|
+
((u == null ? void 0 : u.header) != null || (u == null ? void 0 : u.actions) != null) && /* @__PURE__ */ l("div", { className: "w6w-connection-list-head", children: [
|
|
2461
|
+
/* @__PURE__ */ t("div", { className: "w6w-connection-list-heading", children: u == null ? void 0 : u.header }),
|
|
2462
|
+
/* @__PURE__ */ t("div", { className: "w6w-connection-list-actions", children: u == null ? void 0 : u.actions })
|
|
2463
|
+
] }),
|
|
2464
|
+
i && /* @__PURE__ */ t("div", { className: "w6w-error", children: i }),
|
|
2465
|
+
a && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
|
|
2466
|
+
e.length === 0 && !a ? /* @__PURE__ */ t(je, { testId: "w6w-connection-list-empty", children: (u == null ? void 0 : u.empty) ?? "No connections yet." }) : /* @__PURE__ */ t(
|
|
2467
|
+
Tt,
|
|
2468
|
+
{
|
|
2469
|
+
columns: v,
|
|
2470
|
+
rows: e,
|
|
2471
|
+
rowKey: (m) => m.id,
|
|
2472
|
+
loading: a,
|
|
2473
|
+
getRowHref: c ? (m) => m.builtIn === !0 ? void 0 : c(m.id) : void 0,
|
|
2474
|
+
onRowClick: o ? (m, N) => m.builtIn === !0 ? void 0 : o(m.id, N) : void 0
|
|
2475
|
+
}
|
|
2476
|
+
)
|
|
2413
2477
|
] });
|
|
2414
2478
|
}
|
|
2415
|
-
function
|
|
2416
|
-
const i =
|
|
2417
|
-
|
|
2479
|
+
function Ma({ connection: e, onClose: n, onSaved: a }) {
|
|
2480
|
+
const i = bt(), o = i.updateConnection, c = e.builtIn === !0, s = !c && typeof o == "function", [r, d] = g(e.displayName ?? ""), [u, h] = g({}), [f, v] = g(null), [m, N] = g(null), [y, p] = g(!1), [P, E] = g({}), [M, I] = g(!1), [C, S] = g(!1), [O, F] = g(null), [U, k] = g(null);
|
|
2481
|
+
Q(() => {
|
|
2418
2482
|
if (!s) return;
|
|
2419
|
-
let
|
|
2420
|
-
return
|
|
2421
|
-
|
|
2483
|
+
let b = !1;
|
|
2484
|
+
return v(null), i.getAppAuth(e.appId).then(($) => !b && v($)).catch(($) => !b && N($.message)), () => {
|
|
2485
|
+
b = !0;
|
|
2422
2486
|
};
|
|
2423
2487
|
}, [i, s, e.appId]);
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2488
|
+
const R = f == null ? void 0 : f.find((b) => b.key === e.authKey), Z = (R == null ? void 0 : R.type) === "oauth2", B = Z ? [] : (R == null ? void 0 : R.fields) ?? [], J = e.credentialId, D = !!J && typeof i.rotateCredential == "function" && !Z, X = D && (R != null && R.serviceAccount) ? Xt(R.serviceAccount) : [];
|
|
2489
|
+
Q(() => {
|
|
2490
|
+
if (!s || !D || !J || typeof i.getCredential != "function") return;
|
|
2491
|
+
let b = !1;
|
|
2492
|
+
return i.getCredential(J).then(($) => !b && F($.connectionCount)).catch(() => {
|
|
2493
|
+
}), () => {
|
|
2494
|
+
b = !0;
|
|
2495
|
+
};
|
|
2496
|
+
}, [i, s, D, J]);
|
|
2497
|
+
function V() {
|
|
2498
|
+
if (D) {
|
|
2499
|
+
const T = {};
|
|
2500
|
+
r !== (e.displayName ?? "") && (T.displayName = r);
|
|
2501
|
+
const K = nn(X, P);
|
|
2502
|
+
return K && (T.binding = K), T.displayName === void 0 && T.binding === void 0 ? null : T;
|
|
2430
2503
|
}
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2504
|
+
const b = {};
|
|
2505
|
+
for (const T of B) {
|
|
2506
|
+
const K = u[T.key];
|
|
2507
|
+
K !== void 0 && K !== "" && (b[T.key] = K);
|
|
2508
|
+
}
|
|
2509
|
+
const $ = {};
|
|
2510
|
+
return r !== (e.displayName ?? "") && ($.displayName = r), Object.keys(b).length > 0 && ($.credential = b), $.displayName === void 0 && $.credential === void 0 ? null : $;
|
|
2433
2511
|
}
|
|
2434
|
-
async function
|
|
2435
|
-
if (!s || !
|
|
2436
|
-
|
|
2437
|
-
const
|
|
2438
|
-
if (!
|
|
2439
|
-
|
|
2512
|
+
async function z() {
|
|
2513
|
+
if (!s || !o || y) return;
|
|
2514
|
+
N(null);
|
|
2515
|
+
const b = V();
|
|
2516
|
+
if (!b) {
|
|
2517
|
+
N(
|
|
2518
|
+
D ? "Nothing to update — change the name or a binding field." : "Nothing to update — change the name or a credential field."
|
|
2519
|
+
);
|
|
2440
2520
|
return;
|
|
2441
2521
|
}
|
|
2442
|
-
|
|
2522
|
+
p(!0);
|
|
2443
2523
|
try {
|
|
2444
|
-
const
|
|
2445
|
-
h({}), a(
|
|
2446
|
-
} catch (
|
|
2447
|
-
|
|
2524
|
+
const $ = await o.call(i, e.id, b);
|
|
2525
|
+
h({}), a($);
|
|
2526
|
+
} catch ($) {
|
|
2527
|
+
N($.message);
|
|
2448
2528
|
} finally {
|
|
2449
|
-
|
|
2529
|
+
p(!1);
|
|
2450
2530
|
}
|
|
2451
2531
|
}
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2532
|
+
const ke = B.some(
|
|
2533
|
+
(b) => b.required && (u[b.key] === void 0 || u[b.key] === "")
|
|
2534
|
+
);
|
|
2535
|
+
async function ie() {
|
|
2536
|
+
if (!J || !i.rotateCredential || y) return;
|
|
2537
|
+
N(null);
|
|
2538
|
+
const b = tn(B, u);
|
|
2539
|
+
if ("error" in b) {
|
|
2540
|
+
N(b.error);
|
|
2541
|
+
return;
|
|
2542
|
+
}
|
|
2543
|
+
p(!0);
|
|
2544
|
+
try {
|
|
2545
|
+
await i.rotateCredential(J, { source: b.values }), h({}), I(!1), S(!0), k(null);
|
|
2546
|
+
} catch ($) {
|
|
2547
|
+
N($.message);
|
|
2548
|
+
} finally {
|
|
2549
|
+
p(!1);
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
async function xe() {
|
|
2553
|
+
if (!(!J || !i.testCredential)) {
|
|
2554
|
+
N(null);
|
|
2555
|
+
try {
|
|
2556
|
+
k(await i.testCredential(J));
|
|
2557
|
+
} catch (b) {
|
|
2558
|
+
N(b.message);
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
const G = en(z, { enabled: s && !y });
|
|
2563
|
+
return /* @__PURE__ */ t(Fe, { title: "Edit connection", onClose: n, children: /* @__PURE__ */ l("div", { className: "w6w-stepconfig", children: [
|
|
2454
2564
|
/* @__PURE__ */ t("div", { className: "w6w-modal-body", children: /* @__PURE__ */ l("div", { className: "w6w-stack", children: [
|
|
2455
|
-
|
|
2456
|
-
!
|
|
2457
|
-
s && /* @__PURE__ */ l(
|
|
2565
|
+
c && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "This connection is built in — it has no stored credential to edit." }),
|
|
2566
|
+
!c && !s && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Editing connections is not available here." }),
|
|
2567
|
+
s && /* @__PURE__ */ l(A, { children: [
|
|
2458
2568
|
/* @__PURE__ */ l("label", { className: "w6w-field", children: [
|
|
2459
2569
|
/* @__PURE__ */ t("span", { children: "Display name" }),
|
|
2460
2570
|
/* @__PURE__ */ t(
|
|
2461
2571
|
"input",
|
|
2462
2572
|
{
|
|
2463
2573
|
type: "text",
|
|
2464
|
-
value:
|
|
2465
|
-
onChange: (
|
|
2574
|
+
value: r,
|
|
2575
|
+
onChange: (b) => d(b.target.value),
|
|
2466
2576
|
placeholder: "Connection name",
|
|
2467
2577
|
maxLength: 80,
|
|
2468
2578
|
name: "w6w-connection-label",
|
|
@@ -2471,38 +2581,120 @@ function $a({ connection: e, onClose: n, onSaved: a }) {
|
|
|
2471
2581
|
"data-lpignore": "true",
|
|
2472
2582
|
"data-bwignore": "true",
|
|
2473
2583
|
"data-form-type": "other",
|
|
2474
|
-
|
|
2584
|
+
...G
|
|
2585
|
+
}
|
|
2586
|
+
)
|
|
2587
|
+
] }),
|
|
2588
|
+
f === null && !m && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Loading auth fields…" }),
|
|
2589
|
+
Z && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "This is an OAuth connection. You can rename it here; its credential is renewed by re-authorizing it." }),
|
|
2590
|
+
D && X.length > 0 && /* @__PURE__ */ l(A, { children: [
|
|
2591
|
+
/* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Leave a binding field blank to keep it unchanged." }),
|
|
2592
|
+
/* @__PURE__ */ t(
|
|
2593
|
+
Re,
|
|
2594
|
+
{
|
|
2595
|
+
mode: "edit",
|
|
2596
|
+
fields: X,
|
|
2597
|
+
values: P,
|
|
2598
|
+
onChange: E,
|
|
2599
|
+
enterSubmitProps: G
|
|
2475
2600
|
}
|
|
2476
2601
|
)
|
|
2477
2602
|
] }),
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2603
|
+
D && /* @__PURE__ */ l("div", { className: "w6w-stack", "data-w6w": "credential-section", children: [
|
|
2604
|
+
typeof i.testCredential == "function" && /* @__PURE__ */ l("div", { children: [
|
|
2605
|
+
/* @__PURE__ */ t(
|
|
2606
|
+
"button",
|
|
2607
|
+
{
|
|
2608
|
+
type: "button",
|
|
2609
|
+
className: "w6w-btn w6w-btn-ghost",
|
|
2610
|
+
onClick: xe,
|
|
2611
|
+
children: "Test credential"
|
|
2612
|
+
}
|
|
2613
|
+
),
|
|
2614
|
+
U && /* @__PURE__ */ l("p", { className: "w6w-small", "data-w6w": "credential-health", children: [
|
|
2615
|
+
"Credential health: ",
|
|
2616
|
+
U.ok ? "ok" : U.code ?? "failed"
|
|
2617
|
+
] })
|
|
2618
|
+
] }),
|
|
2619
|
+
/* @__PURE__ */ l("p", { className: "w6w-small", "data-w6w": "app-access", children: [
|
|
2620
|
+
"App access:",
|
|
2621
|
+
" ",
|
|
2622
|
+
e.lastTestOk === !0 ? "passed" : e.lastTestOk === !1 ? "failed" : "never tested"
|
|
2623
|
+
] }),
|
|
2624
|
+
C && /* @__PURE__ */ t("p", { className: "w6w-small", children: "Credential rotated." }),
|
|
2625
|
+
M ? /* @__PURE__ */ l(A, { children: [
|
|
2626
|
+
/* @__PURE__ */ l("p", { className: "w6w-muted w6w-small", children: [
|
|
2627
|
+
"Enter the full new credential; it replaces the stored one.",
|
|
2628
|
+
O !== null && ` It is used by ${O} connection${O === 1 ? "" : "s"}, and all of them switch to it.`
|
|
2629
|
+
] }),
|
|
2630
|
+
/* @__PURE__ */ t(
|
|
2631
|
+
Re,
|
|
2632
|
+
{
|
|
2633
|
+
fields: B,
|
|
2634
|
+
values: u,
|
|
2635
|
+
onChange: h
|
|
2636
|
+
}
|
|
2637
|
+
),
|
|
2638
|
+
/* @__PURE__ */ l("div", { children: [
|
|
2639
|
+
/* @__PURE__ */ t(
|
|
2640
|
+
"button",
|
|
2641
|
+
{
|
|
2642
|
+
type: "button",
|
|
2643
|
+
className: "w6w-btn",
|
|
2644
|
+
disabled: y || ke,
|
|
2645
|
+
onClick: ie,
|
|
2646
|
+
children: "Rotate"
|
|
2647
|
+
}
|
|
2648
|
+
),
|
|
2649
|
+
" ",
|
|
2650
|
+
/* @__PURE__ */ t(
|
|
2651
|
+
"button",
|
|
2652
|
+
{
|
|
2653
|
+
type: "button",
|
|
2654
|
+
className: "w6w-btn w6w-btn-ghost",
|
|
2655
|
+
onClick: () => {
|
|
2656
|
+
I(!1), h({});
|
|
2657
|
+
},
|
|
2658
|
+
children: "Cancel rotation"
|
|
2659
|
+
}
|
|
2660
|
+
)
|
|
2661
|
+
] })
|
|
2662
|
+
] }) : /* @__PURE__ */ t(
|
|
2663
|
+
"button",
|
|
2664
|
+
{
|
|
2665
|
+
type: "button",
|
|
2666
|
+
className: "w6w-btn w6w-btn-ghost",
|
|
2667
|
+
onClick: () => I(!0),
|
|
2668
|
+
children: "Rotate credential"
|
|
2669
|
+
}
|
|
2670
|
+
)
|
|
2671
|
+
] }),
|
|
2672
|
+
!D && B.length > 0 && /* @__PURE__ */ l(A, { children: [
|
|
2481
2673
|
/* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Leave a field blank to keep it unchanged. Filled fields replace the stored credential." }),
|
|
2482
2674
|
/* @__PURE__ */ t(
|
|
2483
|
-
|
|
2675
|
+
Re,
|
|
2484
2676
|
{
|
|
2485
2677
|
mode: "edit",
|
|
2486
|
-
fields:
|
|
2487
|
-
values:
|
|
2678
|
+
fields: B,
|
|
2679
|
+
values: u,
|
|
2488
2680
|
onChange: h,
|
|
2489
|
-
enterSubmitProps:
|
|
2681
|
+
enterSubmitProps: G
|
|
2490
2682
|
}
|
|
2491
2683
|
)
|
|
2492
2684
|
] })
|
|
2493
2685
|
] }),
|
|
2494
|
-
|
|
2686
|
+
m && /* @__PURE__ */ t("div", { className: "w6w-result w6w-error", children: m })
|
|
2495
2687
|
] }) }),
|
|
2496
2688
|
/* @__PURE__ */ l("div", { className: "w6w-modal-actions", children: [
|
|
2497
2689
|
/* @__PURE__ */ t("button", { type: "button", className: "w6w-btn w6w-btn-ghost", onClick: n, children: "Cancel" }),
|
|
2498
|
-
s && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn", disabled:
|
|
2690
|
+
s && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn", disabled: y, onClick: z, children: y ? "Saving…" : "Save" })
|
|
2499
2691
|
] })
|
|
2500
2692
|
] }) });
|
|
2501
2693
|
}
|
|
2502
|
-
function
|
|
2694
|
+
function Pa({ conn: e, app: n, children: a }) {
|
|
2503
2695
|
return /* @__PURE__ */ l("div", { className: "w6w-connection-header", "data-testid": "connection-header", children: [
|
|
2504
2696
|
/* @__PURE__ */ t(
|
|
2505
|
-
|
|
2697
|
+
be,
|
|
2506
2698
|
{
|
|
2507
2699
|
src: n == null ? void 0 : n.iconSvg,
|
|
2508
2700
|
srcDark: n == null ? void 0 : n.iconSvgDark,
|
|
@@ -2514,7 +2706,7 @@ function Aa({ conn: e, app: n, children: a }) {
|
|
|
2514
2706
|
/* @__PURE__ */ l("div", { className: "w6w-connection-header-main", children: [
|
|
2515
2707
|
/* @__PURE__ */ t("h2", { className: "w6w-connection-header-title", children: e.displayName || e.id }),
|
|
2516
2708
|
/* @__PURE__ */ l("p", { className: "w6w-muted w6w-small w6w-connection-header-meta", children: [
|
|
2517
|
-
/* @__PURE__ */ t(
|
|
2709
|
+
/* @__PURE__ */ t(vn, { value: e.id, className: "w6w-connection-id-copy" }),
|
|
2518
2710
|
" · App",
|
|
2519
2711
|
" ",
|
|
2520
2712
|
/* @__PURE__ */ t("code", { children: e.appId }),
|
|
@@ -2542,80 +2734,127 @@ function Aa({ conn: e, app: n, children: a }) {
|
|
|
2542
2734
|
a && /* @__PURE__ */ t("div", { className: "w6w-connection-header-actions", children: a })
|
|
2543
2735
|
] });
|
|
2544
2736
|
}
|
|
2737
|
+
const sa = (e) => String(e);
|
|
2738
|
+
function gt(e) {
|
|
2739
|
+
const n = Math.min(100, Math.max(0, e));
|
|
2740
|
+
return Number(n.toFixed(4));
|
|
2741
|
+
}
|
|
2742
|
+
function _a({
|
|
2743
|
+
label: e,
|
|
2744
|
+
used: n,
|
|
2745
|
+
limit: a,
|
|
2746
|
+
reserved: i = 0,
|
|
2747
|
+
format: o,
|
|
2748
|
+
className: c,
|
|
2749
|
+
testId: s
|
|
2750
|
+
}) {
|
|
2751
|
+
const r = o ?? sa, d = Number.isFinite(i) && i > 0, u = a > 0 ? gt(n / a * 100) : 100, h = d && a > 0 ? gt(Math.min(100 - u, i / a * 100)) : 0, f = n >= a, v = `${r(n)} / ${r(a)}`, m = ["w6w-budget-meter"];
|
|
2752
|
+
return f && m.push("w6w-budget-meter-over"), c && m.push(c), /* @__PURE__ */ l(
|
|
2753
|
+
"div",
|
|
2754
|
+
{
|
|
2755
|
+
role: "meter",
|
|
2756
|
+
className: m.join(" "),
|
|
2757
|
+
"aria-label": e,
|
|
2758
|
+
"aria-valuemin": 0,
|
|
2759
|
+
"aria-valuenow": n,
|
|
2760
|
+
"aria-valuemax": a,
|
|
2761
|
+
"aria-valuetext": v,
|
|
2762
|
+
"data-testid": s,
|
|
2763
|
+
children: [
|
|
2764
|
+
/* @__PURE__ */ l("div", { className: "w6w-budget-meter-head", children: [
|
|
2765
|
+
/* @__PURE__ */ t("span", { className: "w6w-budget-meter-label", children: e }),
|
|
2766
|
+
/* @__PURE__ */ t("span", { className: "w6w-budget-meter-value", children: v })
|
|
2767
|
+
] }),
|
|
2768
|
+
/* @__PURE__ */ l("div", { className: "w6w-budget-meter-track", children: [
|
|
2769
|
+
/* @__PURE__ */ t("div", { className: "w6w-budget-meter-used", style: { width: `${u}%` } }),
|
|
2770
|
+
d && /* @__PURE__ */ t("div", { className: "w6w-budget-meter-reserved", style: { width: `${h}%` } })
|
|
2771
|
+
] })
|
|
2772
|
+
]
|
|
2773
|
+
}
|
|
2774
|
+
);
|
|
2775
|
+
}
|
|
2545
2776
|
export {
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2777
|
+
ft as ATTENTION_DISPLAY_CAP,
|
|
2778
|
+
pa as ActionTestForm,
|
|
2779
|
+
Fa as AddConnectionModal,
|
|
2780
|
+
ot as ApiCallsPanel,
|
|
2781
|
+
pe as ApiError,
|
|
2782
|
+
be as AppIcon,
|
|
2783
|
+
Da as AppPicker,
|
|
2784
|
+
Re as AuthFieldsForm,
|
|
2785
|
+
_a as BudgetMeter,
|
|
2786
|
+
Ia as CallableList,
|
|
2787
|
+
Ba as CanvasLayer,
|
|
2788
|
+
He as CodeBlock,
|
|
2789
|
+
Ja as CodeEditor,
|
|
2790
|
+
Gt as Combobox,
|
|
2791
|
+
Yt as ConfirmModal,
|
|
2792
|
+
Pa as ConnectionHeader,
|
|
2793
|
+
Ea as ConnectionList,
|
|
2794
|
+
wn as Copyable,
|
|
2795
|
+
vn as CopyableText,
|
|
2796
|
+
Ka as CredentialPicker,
|
|
2797
|
+
Tt as DataTable,
|
|
2798
|
+
Mn as DeleteButton,
|
|
2799
|
+
En as EditButton,
|
|
2800
|
+
Ma as EditConnectionModal,
|
|
2801
|
+
je as EmptyState,
|
|
2802
|
+
Ta as ExecutionDetail,
|
|
2803
|
+
Sa as ExecutionFilters,
|
|
2804
|
+
Ca as ExecutionList,
|
|
2805
|
+
Un as ExecutionLogPanel,
|
|
2806
|
+
$a as ExecutionStats,
|
|
2807
|
+
ja as ExpressionInput,
|
|
2808
|
+
Ha as ExpressionOptionsProvider,
|
|
2809
|
+
We as HealthStatusPill,
|
|
2810
|
+
ba as HistoryTimeline,
|
|
2811
|
+
dt as Icon,
|
|
2812
|
+
ae as IconButton,
|
|
2813
|
+
ka as InfoTip,
|
|
2814
|
+
me as JsonEditor,
|
|
2815
|
+
Be as ListItem,
|
|
2816
|
+
Wa as Markdown,
|
|
2817
|
+
Fe as Modal,
|
|
2818
|
+
qa as NodeConfigForm,
|
|
2819
|
+
zt as ParamsForm,
|
|
2820
|
+
Va as PropertyEntryForm,
|
|
2821
|
+
Qn as RECENT_DISPLAY_CAP,
|
|
2822
|
+
Xn as ReliabilityChart,
|
|
2823
|
+
Ra as ReliabilityList,
|
|
2824
|
+
xa as RepoSyncIndicator,
|
|
2825
|
+
za as RetryPolicyFields,
|
|
2826
|
+
ga as ServerResourcesBadge,
|
|
2827
|
+
va as ServerResourcesCard,
|
|
2828
|
+
ya as ServerResourcesCardSmall,
|
|
2829
|
+
Na as ServerResourcesRail,
|
|
2830
|
+
Ga as StepBuilderModal,
|
|
2831
|
+
Ve as StepStatusPill,
|
|
2832
|
+
gn as UptimeStrip,
|
|
2833
|
+
Ya as W6WUIProvider,
|
|
2834
|
+
fa as YamlEditor,
|
|
2835
|
+
Oa as connectionAppIdsToLookUp,
|
|
2836
|
+
ma as createW6WApi,
|
|
2837
|
+
fn as cropText,
|
|
2838
|
+
Zn as displayBoard,
|
|
2839
|
+
Qa as filterOptions,
|
|
2840
|
+
ze as formatDurationMs,
|
|
2841
|
+
ge as formatExecutionTime,
|
|
2842
|
+
cs as iconNames,
|
|
2843
|
+
Za as isExprValue,
|
|
2844
|
+
Xa as isFormResolvedOptions,
|
|
2845
|
+
es as isSecretValue,
|
|
2846
|
+
ts as isTestRequired,
|
|
2847
|
+
Aa as needsAttention,
|
|
2848
|
+
Gn as partitionBoard,
|
|
2849
|
+
zn as performancePoints,
|
|
2850
|
+
ns as requiredParamsFilled,
|
|
2851
|
+
aa as resolveConnectionAppMeta,
|
|
2852
|
+
as as shouldUseCombobox,
|
|
2853
|
+
ss as splitFrontmatter,
|
|
2854
|
+
ls as startOAuthPopup,
|
|
2855
|
+
Yn as uptimeDays,
|
|
2856
|
+
en as useEnterSubmit,
|
|
2857
|
+
is as useExpressionOptions,
|
|
2858
|
+
bt as useW6WApi
|
|
2620
2859
|
};
|
|
2621
2860
|
//# sourceMappingURL=index.mjs.map
|