@w6w/ui 0.2.60 → 0.2.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,31 +1,31 @@
1
1
  "use client";
2
2
  var Cn = Object.defineProperty;
3
3
  var Sn = (e, n, a) => n in e ? Cn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a;
4
- var Ne = (e, n, a) => Sn(e, typeof n != "symbol" ? n + "" : n, a);
5
- import { u as jt, bp as $n, J as oe, bH as Tn, aP as Ye, bT as kt, aO as $e, aJ as An, V as En, bU as Rn, aE as de, M as _n, bV as On, bW as In, a_ as Oe, bX as Te, bM as Pn, bY as ue, bZ as Ln, b_ as Be, b$ as Mn, c0 as Dn, c1 as Un } from "./connection-app-meta-CEkQSIlc.js";
6
- import { bK as sl, bF as ll, aH as il, c2 as rl, c3 as ol, c4 as cl, c5 as dl, aD as ul, c6 as wl, c7 as ml, b5 as hl, bO as pl, br as fl, b6 as gl, c8 as yl, c9 as vl, aK as Nl, ca as bl, cb as kl, cc as xl, cd as Cl, ce as Sl, cf as $l, cg as Tl, ch as Al, ao as El, ci as Rl, cj as _l, ck as Ol, cl as Il, cm as Pl, cn as Ll, b4 as Ml, co as Dl, P as Ul, cp as Fl, cq as Bl, cr as Kl, cs as jl, ct as Jl, a as Wl, b3 as Vl } from "./connection-app-meta-CEkQSIlc.js";
7
- import { jsx as t, jsxs as i, Fragment as R } from "react/jsx-runtime";
8
- import { useMemo as Ge, useState as k, useEffect as G, useId as Fn, useRef as Jt } from "react";
9
- import { u as Bn, b as Kn, c as jn, a as tt, I as Xe, C as Ae } from "./CodeBlock-CPKXSNEs.js";
4
+ var Se = (e, n, a) => Sn(e, typeof n != "symbol" ? n + "" : n, a);
5
+ import { u as Wt, bp as $n, J as we, bH as Tn, aP as Ze, bT as Ct, aO as _e, aJ as An, V as En, bU as Rn, aE as he, M as _n, bV as On, bW as In, a_ as De, bX as Oe, bY as pe, bM as Pn, bZ as fe, b_ as Ln, b$ as Je, c0 as Mn, c1 as Dn, c2 as Un } from "./connection-app-meta-CIfXp2O-.js";
6
+ import { bK as al, bF as sl, aH as ll, c3 as il, c4 as rl, c5 as ol, c6 as cl, c7 as dl, aD as ul, c8 as wl, c9 as ml, b5 as hl, bO as pl, br as fl, b6 as gl, ca as yl, cb as vl, aK as Nl, cc as bl, cd as kl, ce as xl, cf as Cl, cg as Sl, ch as $l, ci as Tl, cj as Al, ao as El, ck as Rl, cl as _l, cm as Ol, cn as Il, co as Pl, cp as Ll, b4 as Ml, cq as Dl, P as Ul, cr as Fl, cs as Bl, ct as Kl, cu as jl, cv as Jl, a as Wl, b3 as Vl } from "./connection-app-meta-CIfXp2O-.js";
7
+ import { jsx as t, jsxs as i, Fragment as _ } from "react/jsx-runtime";
8
+ import { useMemo as Qe, useState as b, useEffect as Q, useId as Fn, useRef as Vt } from "react";
9
+ import { u as Bn, b as Kn, c as jn, a as st, I as et, C as Ie } from "./CodeBlock-CPKXSNEs.js";
10
10
  import { i as Hl } from "./CodeBlock-CPKXSNEs.js";
11
11
  import { yaml as Jn } from "@codemirror/lang-yaml";
12
12
  import { EditorView as Wn } from "@codemirror/view";
13
13
  import Vn from "@uiw/react-codemirror";
14
- class be extends Error {
14
+ class $e extends Error {
15
15
  constructor(a, s, r, o) {
16
16
  super(r);
17
- Ne(this, "status");
18
- Ne(this, "code");
17
+ Se(this, "status");
18
+ Se(this, "code");
19
19
  /**
20
20
  * The parsed error response body, when the server sent one. Carries the
21
21
  * fields that ride alongside an error — e.g. an invoke's `logs` and
22
22
  * `apiCalls` — which the message alone would drop.
23
23
  */
24
- Ne(this, "body");
24
+ Se(this, "body");
25
25
  this.name = "ApiError", this.status = a, this.code = s, this.body = o;
26
26
  }
27
27
  }
28
- function ms(e) {
28
+ function ws(e) {
29
29
  const n = e.baseUrl.replace(/\/$/, ""), a = e.fetch ?? globalThis.fetch, s = async () => typeof e.token == "function" ? await e.token() : e.token;
30
30
  async function r(l, c) {
31
31
  const d = new Headers(c == null ? void 0 : c.headers), u = await s();
@@ -33,11 +33,11 @@ function ms(e) {
33
33
  let f;
34
34
  try {
35
35
  f = await a(`${n}${l}`, { ...c, headers: d });
36
- } catch (w) {
37
- throw new be(
36
+ } catch (m) {
37
+ throw new $e(
38
38
  0,
39
39
  "network_error",
40
- `Could not reach the w6w server (${(c == null ? void 0 : c.method) ?? "GET"} ${n}${l}). It may be down or unreachable. (${w.message})`
40
+ `Could not reach the w6w server (${(c == null ? void 0 : c.method) ?? "GET"} ${n}${l}). It may be down or unreachable. (${m.message})`
41
41
  );
42
42
  }
43
43
  const g = await f.text();
@@ -47,15 +47,15 @@ function ms(e) {
47
47
  v = JSON.parse(g);
48
48
  } catch {
49
49
  if (!f.ok)
50
- throw new be(
50
+ throw new $e(
51
51
  f.status,
52
52
  "bad_response",
53
53
  `Server returned a non-JSON ${f.status} response: ${g.slice(0, 200)}`
54
54
  );
55
55
  }
56
56
  if (!f.ok) {
57
- const w = (v == null ? void 0 : v.error) ?? {};
58
- throw new be(f.status, w.code ?? "error", w.message ?? f.statusText, v);
57
+ const m = (v == null ? void 0 : v.error) ?? {};
58
+ throw new $e(f.status, m.code ?? "error", m.message ?? f.statusText, v);
59
59
  }
60
60
  return { status: f.status, data: v };
61
61
  }
@@ -86,7 +86,7 @@ function ms(e) {
86
86
  try {
87
87
  return await l();
88
88
  } catch (c) {
89
- if (c instanceof be && (c.code === "snapshot_expired" || c.code === "unknown_snapshot"))
89
+ if (c instanceof $e && (c.code === "snapshot_expired" || c.code === "unknown_snapshot"))
90
90
  return await l();
91
91
  throw c;
92
92
  }
@@ -245,7 +245,7 @@ function ms(e) {
245
245
  }).then(({ status: d, data: u }) => ({ ...u ?? {}, terminal: d === 200 }))
246
246
  };
247
247
  }
248
- function Ze({
248
+ function tt({
249
249
  title: e,
250
250
  subtitle: n,
251
251
  icon: a,
@@ -255,7 +255,7 @@ function Ze({
255
255
  href: l,
256
256
  ariaLabel: c
257
257
  }) {
258
- const d = /* @__PURE__ */ i(R, { children: [
258
+ const d = /* @__PURE__ */ i(_, { children: [
259
259
  a != null && /* @__PURE__ */ t("span", { className: "w6w-list-item-icon", children: a }),
260
260
  /* @__PURE__ */ i("span", { className: "w6w-list-item-body", children: [
261
261
  /* @__PURE__ */ t("span", { className: "w6w-list-item-title", children: e }),
@@ -285,7 +285,7 @@ function Ze({
285
285
  }
286
286
  ) : /* @__PURE__ */ t("div", { className: u, "aria-label": c, children: d });
287
287
  }
288
- function Ke(e) {
288
+ function We(e) {
289
289
  const n = Date.parse(e);
290
290
  if (Number.isNaN(n)) return "";
291
291
  const a = Math.max(0, Math.round((Date.now() - n) / 1e3));
@@ -297,7 +297,7 @@ function Ke(e) {
297
297
  const o = Math.round(r / 24);
298
298
  return o < 7 ? `${o}d ago` : new Date(n).toLocaleDateString();
299
299
  }
300
- function xt(e) {
300
+ function St(e) {
301
301
  const n = {};
302
302
  for (const a of (e == null ? void 0 : e.params) ?? [])
303
303
  a.key && a.default !== void 0 && (n[a.key] = a.default);
@@ -317,11 +317,11 @@ function qn(e) {
317
317
  }
318
318
  return e;
319
319
  }
320
- function Wt(e) {
320
+ function qt(e) {
321
321
  return typeof e == "object" && e !== null && typeof e.status == "number" && typeof e.code == "string";
322
322
  }
323
323
  function Hn(e) {
324
- if (!Wt(e))
324
+ if (!qt(e))
325
325
  return { headline: (e == null ? void 0 : e.message) ?? "The action failed to run." };
326
326
  const n = qn(e.message ?? ""), a = `${e.status} ${e.code} ${e.message ?? ""}`.toLowerCase();
327
327
  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(
@@ -333,11 +333,11 @@ function Hn(e) {
333
333
  } : { headline: "The action returned an error.", detail: n };
334
334
  }
335
335
  function zn(e) {
336
- const n = Wt(e) ? e.body ?? e.raw : null;
336
+ const n = qt(e) ? e.body ?? e.raw : null;
337
337
  return (n == null ? void 0 : n.apiCalls) ?? [];
338
338
  }
339
- function je() {
340
- const [e, n] = k(""), [a, s] = k(void 0), [r, o] = k(!1);
339
+ function Ve() {
340
+ const [e, n] = b(""), [a, s] = b(void 0), [r, o] = b(!1);
341
341
  return { text: e, value: a, invalid: r, onChange: (c) => {
342
342
  n(c);
343
343
  const d = c.trim();
@@ -353,7 +353,7 @@ function je() {
353
353
  }
354
354
  } };
355
355
  }
356
- function hs({
356
+ function ms({
357
357
  appId: e,
358
358
  actions: n,
359
359
  connectionId: a,
@@ -366,127 +366,127 @@ function hs({
366
366
  onDeleted: u,
367
367
  embedded: f = !1
368
368
  }) {
369
- var Nt;
370
- const g = jt(), v = Ge(() => {
369
+ var kt;
370
+ const g = Wt(), v = Qe(() => {
371
371
  const p = [...n];
372
- return p.sort((A, F) => (A.title || A.key).localeCompare(F.title || F.key)), p;
373
- }, [n]), [w, h] = k((s == null ? void 0 : s.key) ?? ""), y = s ?? n.find((p) => p.key === w) ?? null, [m, S] = k(!1), [x, N] = k(null), [T, C] = k(void 0), [E, P] = k([]), K = je(), O = je(), $ = je(), [I, V] = k(""), [q, Z] = k(""), J = K.invalid || O.invalid || $.invalid, W = () => {
372
+ return p.sort((E, B) => (E.title || E.key).localeCompare(B.title || B.key)), p;
373
+ }, [n]), [m, h] = b((s == null ? void 0 : s.key) ?? ""), y = s ?? n.find((p) => p.key === m) ?? null, [w, S] = b(!1), [x, N] = b(null), [T, C] = b(void 0), [R, I] = b([]), j = Ve(), O = Ve(), $ = Ve(), [W, re] = b(""), [P, q] = b(""), te = j.invalid || O.invalid || $.invalid, Y = () => {
374
374
  const p = {};
375
- return K.text.trim() !== "" && K.value !== void 0 && (p.body = K.value), O.text.trim() !== "" && O.value !== void 0 && (p.query = O.value), $.text.trim() !== "" && $.value !== void 0 && (p.headers = $.value), I && (p.target = I), q.trim() !== "" && (p.match = q.trim()), Object.keys(p).length > 0 ? p : void 0;
376
- }, [j, Q] = k("form"), [Ie, ae] = k(""), [Pe, ee] = k(!1), [b, L] = k(!1), _ = (y == null ? void 0 : y.key) ?? null, D = r ? { ...r } : xt(y), [se, M] = k(() => ({
377
- key: _,
378
- values: D
379
- })), [U, le] = k(l ?? null), [ct, pe] = k(D);
380
- if (se.key !== _) {
381
- const p = xt(y);
382
- M({ key: _, values: p }), pe(p), le(l ?? null), N(null), C(void 0), P([]);
375
+ return j.text.trim() !== "" && j.value !== void 0 && (p.body = j.value), O.text.trim() !== "" && O.value !== void 0 && (p.query = O.value), $.text.trim() !== "" && $.value !== void 0 && (p.headers = $.value), W && (p.target = W), P.trim() !== "" && (p.match = P.trim()), Object.keys(p).length > 0 ? p : void 0;
376
+ }, [D, J] = b("form"), [oe, H] = b(""), [z, ce] = b(!1), [V, ve] = b(!1), U = (y == null ? void 0 : y.key) ?? null, Ne = r ? { ...r } : St(y), [ne, k] = b(() => ({
377
+ key: U,
378
+ values: Ne
379
+ })), [A, L] = b(l ?? null), [F, ae] = b(Ne);
380
+ if (ne.key !== U) {
381
+ const p = St(y);
382
+ k({ key: U, values: p }), ae(p), L(l ?? null), N(null), C(void 0), I([]);
383
383
  }
384
- const [ln, rn] = k(l);
385
- l !== ln && (rn(l), le(l ?? null));
386
- const [dt, on] = k(r);
387
- if (r !== dt) {
388
- const p = JSON.stringify(r ?? null) !== JSON.stringify(dt ?? null);
384
+ const [M, le] = b(l);
385
+ l !== M && (le(l), L(l ?? null));
386
+ const [wt, on] = b(r);
387
+ if (r !== wt) {
388
+ const p = JSON.stringify(r ?? null) !== JSON.stringify(wt ?? null);
389
389
  if (on(r), r && p) {
390
- const A = { ...r };
391
- M({ key: _, values: A }), pe(A), N(null), C(void 0), P([]);
390
+ const E = { ...r };
391
+ k({ key: U, values: E }), ae(E), N(null), C(void 0), I([]);
392
392
  }
393
393
  }
394
- const H = se.values, ut = (p) => M({ key: _, values: p }), wt = Ge(
395
- () => JSON.stringify(H) !== JSON.stringify(ct),
396
- [H, ct]
394
+ const G = ne.values, mt = (p) => k({ key: U, values: p }), ht = Qe(
395
+ () => JSON.stringify(G) !== JSON.stringify(F),
396
+ [G, F]
397
397
  );
398
- G(() => {
399
- c == null || c(wt);
400
- }, [wt]);
398
+ Q(() => {
399
+ c == null || c(ht);
400
+ }, [ht]);
401
401
  const cn = () => {
402
- ae(JSON.stringify(H, null, 2)), ee(!1), Q("json");
402
+ H(JSON.stringify(G, null, 2)), ce(!1), J("json");
403
403
  }, dn = async (p) => {
404
- if (!y || J) return;
405
- const A = y.key;
406
- S(!0), N(null), C(void 0), P([]);
407
- let F;
408
- const ne = W();
404
+ if (!y || te) return;
405
+ const E = y.key;
406
+ S(!0), N(null), C(void 0), I([]);
407
+ let B;
408
+ const ie = Y();
409
409
  try {
410
- const z = await g.invokeAction(e, A, p, {
410
+ const X = await g.invokeAction(e, E, p, {
411
411
  connectionId: a,
412
- ...ne ? { overrides: ne } : {}
412
+ ...ie ? { overrides: ie } : {}
413
413
  });
414
- C(z.value), P(z.apiCalls ?? []), F = { ok: !0, summary: "OK", result: z.value };
415
- } catch (z) {
416
- const bt = Hn(z);
417
- N(bt), P(zn(z)), F = { ok: !1, summary: bt.headline };
414
+ C(X.value), I(X.apiCalls ?? []), B = { ok: !0, summary: "OK", result: X.value };
415
+ } catch (X) {
416
+ const xt = Hn(X);
417
+ N(xt), I(zn(X)), B = { ok: !1, summary: xt.headline };
418
418
  } finally {
419
419
  S(!1);
420
420
  }
421
421
  if (a)
422
422
  try {
423
423
  await g.recordTestRun(a, {
424
- savedTestId: U ?? null,
425
- actionKey: A,
426
- ok: F.ok,
427
- summary: F.summary.slice(0, 200),
428
- result: F.result
429
- }), Ue(), vn(), o == null || o();
424
+ savedTestId: A ?? null,
425
+ actionKey: E,
426
+ ok: B.ok,
427
+ summary: B.summary.slice(0, 200),
428
+ result: B.result
429
+ }), Ke(), vn(), o == null || o();
430
430
  } catch {
431
431
  }
432
- }, un = () => dn(H), [fe, mt] = k(null), [ge, ie] = k(null), [wn, mn] = k(0), [hn, ye] = k(!1), [Le, Me] = k(""), [pn, De] = k(!1), Ue = () => mn((p) => p + 1);
433
- G(() => {
432
+ }, un = () => dn(G), [be, pt] = b(null), [ke, de] = b(null), [wn, mn] = b(0), [hn, xe] = b(!1), [Ue, Fe] = b(""), [pn, Be] = b(!1), Ke = () => mn((p) => p + 1);
433
+ Q(() => {
434
434
  if (!a) {
435
- mt(null);
435
+ pt(null);
436
436
  return;
437
437
  }
438
438
  let p = !1;
439
- return ie(null), g.listSavedTests(a).then((A) => !p && mt(A)).catch((A) => !p && ie(A.message)), () => {
439
+ return de(null), g.listSavedTests(a).then((E) => !p && pt(E)).catch((E) => !p && de(E.message)), () => {
440
440
  p = !0;
441
441
  };
442
442
  }, [g, a, wn]);
443
- const ht = _ ? (fe ?? []).filter((p) => p.actionKey === _) : [], [fn, Fe] = k(null), [gn, yn] = k(0), vn = () => yn((p) => p + 1);
444
- G(() => {
443
+ const ft = U ? (be ?? []).filter((p) => p.actionKey === U) : [], [fn, je] = b(null), [gn, yn] = b(0), vn = () => yn((p) => p + 1);
444
+ Q(() => {
445
445
  const p = g.listTestRuns;
446
446
  if (!a || !p) {
447
- Fe(null);
447
+ je(null);
448
448
  return;
449
449
  }
450
- let A = !1;
451
- return p(a).then((F) => !A && Fe(F)).catch(() => !A && Fe(null)), () => {
452
- A = !0;
450
+ let E = !1;
451
+ return p(a).then((B) => !E && je(B)).catch(() => !E && je(null)), () => {
452
+ E = !0;
453
453
  };
454
454
  }, [g, a, gn]);
455
- const pt = _ ? (fn ?? []).filter((p) => p.actionKey === _).slice().sort((p, A) => Date.parse(A.occurredAt) - Date.parse(p.occurredAt)) : [], Nn = () => {
456
- !a || !y || (Me(""), ie(null), ye(!0));
455
+ const gt = U ? (fn ?? []).filter((p) => p.actionKey === U).slice().sort((p, E) => Date.parse(E.occurredAt) - Date.parse(p.occurredAt)) : [], Nn = () => {
456
+ !a || !y || (Fe(""), de(null), xe(!0));
457
457
  }, bn = () => {
458
- !a || !y || (U ? ft() : Nn());
459
- }, ft = async () => {
458
+ !a || !y || (A ? yt() : Nn());
459
+ }, yt = async () => {
460
460
  if (!(!a || !y))
461
461
  try {
462
462
  let p;
463
- if (U)
464
- p = await g.updateSavedTest(a, U, { values: H });
463
+ if (A)
464
+ p = await g.updateSavedTest(a, A, { values: G });
465
465
  else {
466
- const A = Le.trim();
467
- if (!A) return;
466
+ const E = Ue.trim();
467
+ if (!E) return;
468
468
  p = await g.createSavedTest(a, {
469
469
  actionKey: y.key,
470
- name: A,
471
- values: H
472
- }), le(p.id);
470
+ name: E,
471
+ values: G
472
+ }), L(p.id);
473
473
  }
474
- pe({ ...H }), ye(!1), Me(""), Ue(), o == null || o(), d == null || d(p);
474
+ ae({ ...G }), xe(!1), Fe(""), Ke(), o == null || o(), d == null || d(p);
475
475
  } catch (p) {
476
- ie(p.message);
476
+ de(p.message);
477
477
  }
478
478
  }, kn = (p) => {
479
- const A = { ...p.values };
480
- M({ key: _, values: A }), pe(A), le(p.id), Q("form"), N(null), C(void 0), P([]);
479
+ const E = { ...p.values };
480
+ k({ key: U, values: E }), ae(E), L(p.id), J("form"), N(null), C(void 0), I([]);
481
481
  }, xn = async () => {
482
- if (!a || !U) return;
483
- const p = U;
482
+ if (!a || !A) return;
483
+ const p = A;
484
484
  try {
485
- await g.deleteSavedTest(a, p), le(null), Ue(), o == null || o(), u == null || u(p);
486
- } catch (A) {
487
- ie(A.message);
485
+ await g.deleteSavedTest(a, p), L(null), Ke(), o == null || o(), u == null || u(p);
486
+ } catch (E) {
487
+ de(E.message);
488
488
  }
489
- }, gt = /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1-5)" }, children: [
489
+ }, vt = /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1-5)" }, children: [
490
490
  /* @__PURE__ */ i(
491
491
  "div",
492
492
  {
@@ -499,9 +499,9 @@ function hs({
499
499
  "button",
500
500
  {
501
501
  type: "button",
502
- className: `w6w-btn w6w-btn-sm w6w-btn-ghost${j === "form" ? " active" : ""}`,
503
- "aria-pressed": j === "form",
504
- onClick: () => Q("form"),
502
+ className: `w6w-btn w6w-btn-sm w6w-btn-ghost${D === "form" ? " active" : ""}`,
503
+ "aria-pressed": D === "form",
504
+ onClick: () => J("form"),
505
505
  children: "Form"
506
506
  }
507
507
  ),
@@ -509,8 +509,8 @@ function hs({
509
509
  "button",
510
510
  {
511
511
  type: "button",
512
- className: `w6w-btn w6w-btn-sm w6w-btn-ghost${j === "json" ? " active" : ""}`,
513
- "aria-pressed": j === "json",
512
+ className: `w6w-btn w6w-btn-sm w6w-btn-ghost${D === "json" ? " active" : ""}`,
513
+ "aria-pressed": D === "json",
514
514
  onClick: cn,
515
515
  children: "JSON"
516
516
  }
@@ -520,42 +520,42 @@ function hs({
520
520
  {
521
521
  type: "button",
522
522
  className: "w6w-btn w6w-btn-sm w6w-btn-ghost",
523
- "aria-pressed": b,
524
- title: b ? "Collapse the params editor" : "Open the params editor in a larger view",
525
- "aria-label": b ? "Collapse the params editor" : "Open the params editor in a larger view",
526
- onClick: () => L((p) => !p),
527
- children: b ? "⤡" : "⤢"
523
+ "aria-pressed": V,
524
+ title: V ? "Collapse the params editor" : "Open the params editor in a larger view",
525
+ "aria-label": V ? "Collapse the params editor" : "Open the params editor in a larger view",
526
+ onClick: () => ve((p) => !p),
527
+ children: V ? "⤡" : "⤢"
528
528
  }
529
529
  )
530
530
  ] })
531
531
  ]
532
532
  }
533
533
  ),
534
- j === "form" ? /* @__PURE__ */ t(
534
+ D === "form" ? /* @__PURE__ */ t(
535
535
  $n,
536
536
  {
537
537
  params: (y == null ? void 0 : y.params) ?? [],
538
- values: H,
539
- onChange: ut,
538
+ values: G,
539
+ onChange: mt,
540
540
  dynamic: y ? { appId: e, actionKey: y.key, connectionId: a } : void 0
541
541
  }
542
- ) : /* @__PURE__ */ i(R, { children: [
542
+ ) : /* @__PURE__ */ i(_, { children: [
543
543
  /* @__PURE__ */ t(
544
- oe,
544
+ we,
545
545
  {
546
- value: Ie,
547
- onChange: ae,
548
- minHeight: b ? "50vh" : "200px",
546
+ value: oe,
547
+ onChange: H,
548
+ minHeight: V ? "50vh" : "200px",
549
549
  "aria-label": "Params JSON",
550
550
  onValidChange: (p) => {
551
- p !== null && typeof p == "object" && !Array.isArray(p) && ut(p);
551
+ p !== null && typeof p == "object" && !Array.isArray(p) && mt(p);
552
552
  },
553
- onValidityChange: ({ valid: p }) => ee(!p)
553
+ onValidityChange: ({ valid: p }) => ce(!p)
554
554
  }
555
555
  ),
556
- Pe && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
556
+ z && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
557
557
  ] })
558
- ] }), yt = /* @__PURE__ */ i("details", { className: "w6w-section", "data-testid": "overrides-region", children: [
558
+ ] }), Nt = /* @__PURE__ */ i("details", { className: "w6w-section", "data-testid": "overrides-region", children: [
559
559
  /* @__PURE__ */ i("summary", { className: "w6w-section-summary", children: [
560
560
  /* @__PURE__ */ t("span", { className: "w6w-section-title", children: "Overrides" }),
561
561
  /* @__PURE__ */ t("span", { className: "w6w-section-subtitle", children: "Reach a vendor field this action's own params don't declare" })
@@ -564,20 +564,20 @@ function hs({
564
564
  /* @__PURE__ */ i("div", { className: "w6w-field", children: [
565
565
  /* @__PURE__ */ t("span", { children: "Body" }),
566
566
  /* @__PURE__ */ t(
567
- oe,
567
+ we,
568
568
  {
569
- value: K.text,
570
- onChange: K.onChange,
569
+ value: j.text,
570
+ onChange: j.onChange,
571
571
  minHeight: "80px",
572
572
  "aria-label": "Overrides body (JSON)"
573
573
  }
574
574
  ),
575
- K.invalid && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
575
+ j.invalid && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: "Invalid JSON" })
576
576
  ] }),
577
577
  /* @__PURE__ */ i("div", { className: "w6w-field", children: [
578
578
  /* @__PURE__ */ t("span", { children: "Query" }),
579
579
  /* @__PURE__ */ t(
580
- oe,
580
+ we,
581
581
  {
582
582
  value: O.text,
583
583
  onChange: O.onChange,
@@ -590,7 +590,7 @@ function hs({
590
590
  /* @__PURE__ */ i("div", { className: "w6w-field", children: [
591
591
  /* @__PURE__ */ t("span", { children: "Headers" }),
592
592
  /* @__PURE__ */ t(
593
- oe,
593
+ we,
594
594
  {
595
595
  value: $.text,
596
596
  onChange: $.onChange,
@@ -606,8 +606,8 @@ function hs({
606
606
  "select",
607
607
  {
608
608
  "aria-label": "Overrides target",
609
- value: I,
610
- onChange: (p) => V(p.target.value),
609
+ value: W,
610
+ onChange: (p) => re(p.target.value),
611
611
  children: [
612
612
  /* @__PURE__ */ t("option", { value: "", children: "— default (first) —" }),
613
613
  /* @__PURE__ */ t("option", { value: "first", children: "first" }),
@@ -624,15 +624,15 @@ function hs({
624
624
  {
625
625
  type: "text",
626
626
  "aria-label": "Overrides match",
627
- value: q,
627
+ value: P,
628
628
  placeholder: "Restrict to requests whose URL contains…",
629
- onChange: (p) => Z(p.target.value)
629
+ onChange: (p) => q(p.target.value)
630
630
  }
631
631
  )
632
632
  ] }),
633
633
  /* @__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." })
634
634
  ] })
635
- ] }), ve = a ? /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1-5)" }, children: [
635
+ ] }), Ce = a ? /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1-5)" }, children: [
636
636
  /* @__PURE__ */ t(
637
637
  "div",
638
638
  {
@@ -641,14 +641,14 @@ function hs({
641
641
  children: /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "Saved tests" })
642
642
  }
643
643
  ),
644
- ge && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: ge }),
645
- ht.length === 0 ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "No saved tests for this action yet." }) : /* @__PURE__ */ t(
644
+ ke && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: ke }),
645
+ ft.length === 0 ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "No saved tests for this action yet." }) : /* @__PURE__ */ t(
646
646
  "ul",
647
647
  {
648
648
  className: "w6w-stack",
649
649
  style: { listStyle: "none", margin: 0, padding: 0, gap: "var(--w6w-sp-1-5)" },
650
- children: ht.map((p) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
651
- Ze,
650
+ children: ft.map((p) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
651
+ tt,
652
652
  {
653
653
  title: p.name,
654
654
  subtitle: p.lastRunAt ? /* @__PURE__ */ i("span", { children: [
@@ -661,15 +661,15 @@ function hs({
661
661
  ),
662
662
  " ",
663
663
  p.lastRunSummary ? `${p.lastRunSummary} · ` : "",
664
- Ke(p.lastRunAt)
665
- ] }) : `saved ${Ke(p.updatedAt)}`,
666
- active: p.id === U,
664
+ We(p.lastRunAt)
665
+ ] }) : `saved ${We(p.updatedAt)}`,
666
+ active: p.id === A,
667
667
  onClick: () => kn(p)
668
668
  }
669
669
  ) }, p.id))
670
670
  }
671
671
  ),
672
- g.listTestRuns && pt.length > 0 && /* @__PURE__ */ i(R, { children: [
672
+ g.listTestRuns && gt.length > 0 && /* @__PURE__ */ i(_, { children: [
673
673
  /* @__PURE__ */ t(
674
674
  "div",
675
675
  {
@@ -683,8 +683,8 @@ function hs({
683
683
  {
684
684
  className: "w6w-stack",
685
685
  style: { listStyle: "none", margin: 0, padding: 0, gap: "var(--w6w-sp-1-5)" },
686
- children: pt.map((p) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
687
- Ze,
686
+ children: gt.map((p) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
687
+ tt,
688
688
  {
689
689
  title: /* @__PURE__ */ i("span", { children: [
690
690
  /* @__PURE__ */ t("span", { style: { color: p.ok ? "var(--w6w-success)" : "var(--w6w-danger)" }, children: p.ok ? "✓" : "✗" }),
@@ -693,26 +693,26 @@ function hs({
693
693
  ] }),
694
694
  subtitle: /* @__PURE__ */ i("span", { children: [
695
695
  p.summary ? `${p.summary} · ` : "",
696
- Ke(p.occurredAt)
696
+ We(p.occurredAt)
697
697
  ] })
698
698
  }
699
699
  ) }, p.id))
700
700
  }
701
701
  )
702
702
  ] })
703
- ] }) : null, vt = (Nt = fe == null ? void 0 : fe.find((p) => p.id === U)) == null ? void 0 : Nt.name;
703
+ ] }) : null, bt = (kt = be == null ? void 0 : be.find((p) => p.id === A)) == null ? void 0 : kt.name;
704
704
  return /* @__PURE__ */ i("div", { className: `w6w-stack${f ? " w6w-tester-embedded-root" : ""}`, children: [
705
705
  !s && (n.length === 0 ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "This app exposes no actions." }) : (
706
706
  // 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.
707
707
  /* @__PURE__ */ i("label", { className: "w6w-field", children: [
708
708
  /* @__PURE__ */ i("span", { children: [
709
709
  "Action",
710
- _ ? "" : " *"
710
+ U ? "" : " *"
711
711
  ] }),
712
712
  /* @__PURE__ */ t(
713
713
  Tn,
714
714
  {
715
- value: w,
715
+ value: m,
716
716
  placeholder: "— pick an action —",
717
717
  onChange: h,
718
718
  options: v.map((p) => ({
@@ -723,7 +723,7 @@ function hs({
723
723
  )
724
724
  ] })
725
725
  )),
726
- y ? /* @__PURE__ */ i(R, { children: [
726
+ y ? /* @__PURE__ */ i(_, { children: [
727
727
  /* @__PURE__ */ i("div", { children: [
728
728
  /* @__PURE__ */ i("strong", { children: [
729
729
  y.title ?? y.key,
@@ -748,19 +748,19 @@ function hs({
748
748
  children: x.detail
749
749
  }
750
750
  )
751
- ] }) : null, A = T !== void 0 ? /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1)" }, children: [
751
+ ] }) : null, E = T !== void 0 ? /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-1)" }, children: [
752
752
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: "Result" }),
753
- /* @__PURE__ */ t(Ye, { value: T })
754
- ] }) : null, F = /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
755
- gt,
756
- yt,
753
+ /* @__PURE__ */ t(Ze, { value: T })
754
+ ] }) : null, B = /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
755
+ vt,
756
+ Nt,
757
757
  p,
758
- A,
759
- /* @__PURE__ */ t(kt, { calls: E })
760
- ] }), ne = /* @__PURE__ */ i(
758
+ E,
759
+ /* @__PURE__ */ t(Ct, { calls: R })
760
+ ] }), ie = /* @__PURE__ */ i(
761
761
  "div",
762
762
  {
763
- className: `w6w-tester-actions${f || b ? " w6w-tester-actions-footer" : ""}`,
763
+ className: `w6w-tester-actions${f || V ? " w6w-tester-actions-footer" : ""}`,
764
764
  style: { display: "flex", gap: "var(--w6w-sp-2)" },
765
765
  children: [
766
766
  /* @__PURE__ */ t(
@@ -768,59 +768,59 @@ function hs({
768
768
  {
769
769
  type: "button",
770
770
  className: "w6w-btn",
771
- disabled: m || J,
771
+ disabled: w || te,
772
772
  onClick: un,
773
- children: m ? "Running…" : "Run action"
773
+ children: w ? "Running…" : "Run action"
774
774
  }
775
775
  ),
776
776
  a && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn w6w-btn-ghost", onClick: bn, children: "Save test" }),
777
- a && U && /* @__PURE__ */ t(
777
+ a && A && /* @__PURE__ */ t(
778
778
  "button",
779
779
  {
780
780
  type: "button",
781
781
  className: "w6w-btn w6w-btn-ghost",
782
782
  style: { marginLeft: "auto", color: "var(--w6w-danger)" },
783
- onClick: () => De(!0),
783
+ onClick: () => Be(!0),
784
784
  children: "Delete"
785
785
  }
786
786
  )
787
787
  ]
788
788
  }
789
- ), z = /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
790
- F,
791
- ne
789
+ ), X = /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
790
+ B,
791
+ ie
792
792
  ] });
793
793
  return f ? /* @__PURE__ */ i("div", { className: "w6w-tester-embedded", children: [
794
794
  /* @__PURE__ */ t("div", { className: "w6w-tester-embedded-scroll", children: /* @__PURE__ */ i("div", { className: "w6w-card-stack", children: [
795
795
  /* @__PURE__ */ i("div", { className: "card", children: [
796
796
  /* @__PURE__ */ t("div", { className: "section-head", children: /* @__PURE__ */ t("h3", { children: "Parameters" }) }),
797
797
  /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
798
- gt,
799
- yt,
798
+ vt,
799
+ Nt,
800
800
  p
801
801
  ] })
802
802
  ] }),
803
- (A || E.length > 0) && /* @__PURE__ */ i("div", { className: "card", children: [
803
+ (E || R.length > 0) && /* @__PURE__ */ i("div", { className: "card", children: [
804
804
  /* @__PURE__ */ t("div", { className: "section-head", children: /* @__PURE__ */ t("h3", { children: "Result" }) }),
805
805
  /* @__PURE__ */ i("div", { className: "w6w-stack", style: { gap: "var(--w6w-sp-3)" }, children: [
806
- T !== void 0 && /* @__PURE__ */ t(Ye, { value: T }),
807
- /* @__PURE__ */ t(kt, { calls: E })
806
+ T !== void 0 && /* @__PURE__ */ t(Ze, { value: T }),
807
+ /* @__PURE__ */ t(Ct, { calls: R })
808
808
  ] })
809
809
  ] }),
810
- ve && /* @__PURE__ */ i("div", { className: "card", children: [
810
+ Ce && /* @__PURE__ */ i("div", { className: "card", children: [
811
811
  /* @__PURE__ */ t("div", { className: "section-head", children: /* @__PURE__ */ t("h3", { children: "Saved tests and history" }) }),
812
- ve
812
+ Ce
813
813
  ] })
814
814
  ] }) }),
815
- ne
816
- ] }) : b ? /* @__PURE__ */ t(
817
- $e,
815
+ ie
816
+ ] }) : V ? /* @__PURE__ */ t(
817
+ _e,
818
818
  {
819
819
  title: `Edit params — ${y.title ?? y.key}`,
820
- onClose: () => L(!1),
820
+ onClose: () => ve(!1),
821
821
  size: "full",
822
822
  children: /* @__PURE__ */ i("div", { className: "w6w-tester-popout", children: [
823
- /* @__PURE__ */ t("div", { className: "w6w-tester-popout-scroll", children: ve ? /* @__PURE__ */ i(
823
+ /* @__PURE__ */ t("div", { className: "w6w-tester-popout-scroll", children: Ce ? /* @__PURE__ */ i(
824
824
  "div",
825
825
  {
826
826
  style: {
@@ -829,23 +829,23 @@ function hs({
829
829
  alignItems: "flex-start"
830
830
  },
831
831
  children: [
832
- /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: F }),
833
- /* @__PURE__ */ t("div", { style: { width: 260, flexShrink: 0 }, children: ve })
832
+ /* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: B }),
833
+ /* @__PURE__ */ t("div", { style: { width: 260, flexShrink: 0 }, children: Ce })
834
834
  ]
835
835
  }
836
- ) : F }),
837
- ne
836
+ ) : B }),
837
+ ie
838
838
  ] })
839
839
  }
840
- ) : z;
840
+ ) : X;
841
841
  })(),
842
- hn && /* @__PURE__ */ t($e, { title: "Save test", onClose: () => ye(!1), children: /* @__PURE__ */ i(
842
+ hn && /* @__PURE__ */ t(_e, { title: "Save test", onClose: () => xe(!1), children: /* @__PURE__ */ i(
843
843
  "form",
844
844
  {
845
845
  className: "w6w-stack",
846
846
  style: { gap: "var(--w6w-sp-3)" },
847
847
  onSubmit: (p) => {
848
- p.preventDefault(), ft();
848
+ p.preventDefault(), yt();
849
849
  },
850
850
  children: [
851
851
  /* @__PURE__ */ i("label", { className: "w6w-field", children: [
@@ -854,13 +854,13 @@ function hs({
854
854
  "input",
855
855
  {
856
856
  type: "text",
857
- value: Le,
857
+ value: Ue,
858
858
  placeholder: "e.g. valid sender",
859
- onChange: (p) => Me(p.target.value)
859
+ onChange: (p) => Fe(p.target.value)
860
860
  }
861
861
  )
862
862
  ] }),
863
- ge && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: ge }),
863
+ ke && /* @__PURE__ */ t("span", { className: "w6w-hint", style: { color: "var(--w6w-danger)" }, children: ke }),
864
864
  /* @__PURE__ */ i(
865
865
  "div",
866
866
  {
@@ -871,11 +871,11 @@ function hs({
871
871
  {
872
872
  type: "button",
873
873
  className: "w6w-btn w6w-btn-ghost",
874
- onClick: () => ye(!1),
874
+ onClick: () => xe(!1),
875
875
  children: "Cancel"
876
876
  }
877
877
  ),
878
- /* @__PURE__ */ t("button", { type: "submit", className: "w6w-btn", disabled: !Le.trim(), children: "Save" })
878
+ /* @__PURE__ */ t("button", { type: "submit", className: "w6w-btn", disabled: !Ue.trim(), children: "Save" })
879
879
  ]
880
880
  }
881
881
  )
@@ -886,19 +886,19 @@ function hs({
886
886
  An,
887
887
  {
888
888
  title: "Delete saved test",
889
- message: vt ? `Delete "${vt}"? This cannot be undone.` : "Delete this saved test? This cannot be undone.",
889
+ message: bt ? `Delete "${bt}"? This cannot be undone.` : "Delete this saved test? This cannot be undone.",
890
890
  confirmLabel: "Delete",
891
891
  onConfirm: () => {
892
- De(!1), xn();
892
+ Be(!1), xn();
893
893
  },
894
- onClose: () => De(!1)
894
+ onClose: () => Be(!1)
895
895
  }
896
896
  )
897
897
  ] }) : !s && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Pick an action above to test it." })
898
898
  ] });
899
899
  }
900
- function ps(e) {
901
- const n = En(e.theme), { copied: a, copy: s } = Bn(e.value), r = Ge(() => [Jn(), Wn.theme(Rn)], []);
900
+ function hs(e) {
901
+ const n = En(e.theme), { copied: a, copy: s } = Bn(e.value), r = Qe(() => [Jn(), Wn.theme(Rn)], []);
902
902
  function o(l) {
903
903
  e.onChange(l);
904
904
  }
@@ -926,7 +926,7 @@ function ps(e) {
926
926
  }
927
927
  }
928
928
  ),
929
- e.copyable !== !1 && /* @__PURE__ */ i(R, { children: [
929
+ e.copyable !== !1 && /* @__PURE__ */ i(_, { children: [
930
930
  /* @__PURE__ */ t(
931
931
  "button",
932
932
  {
@@ -941,19 +941,19 @@ function ps(e) {
941
941
  ] })
942
942
  ] });
943
943
  }
944
- const Je = "…";
944
+ const qe = "…";
945
945
  function Yn(e, n, a = "end") {
946
946
  if (n === void 0 || n < 1 || n >= e.length) return e;
947
947
  if (a === "start")
948
- return `${Je}${e.slice(e.length - n)}`;
948
+ return `${qe}${e.slice(e.length - n)}`;
949
949
  if (a === "end")
950
- return `${e.slice(0, n)}${Je}`;
950
+ return `${e.slice(0, n)}${qe}`;
951
951
  const s = Math.ceil(n / 2), r = n - s;
952
- return `${e.slice(0, s)}${Je}${e.slice(e.length - r)}`;
952
+ return `${e.slice(0, s)}${qe}${e.slice(e.length - r)}`;
953
953
  }
954
954
  function Gn(e) {
955
955
  const { value: n, chars: a, crop: s = "end", label: r, className: o, copiedMs: l } = e, c = Yn(n, a, s), d = ["w6w-copyable--bare", o].filter(Boolean).join(" ");
956
- return /* @__PURE__ */ t(tt, { value: n, readOnly: !0, label: r, className: d, copiedMs: l, children: /* @__PURE__ */ t("span", { children: c }) });
956
+ return /* @__PURE__ */ t(st, { value: n, readOnly: !0, label: r, className: d, copiedMs: l, children: /* @__PURE__ */ t("span", { children: c }) });
957
957
  }
958
958
  const Xn = {
959
959
  ok: "Operational",
@@ -961,7 +961,7 @@ const Xn = {
961
961
  down: "Down",
962
962
  unknown: "Unknown"
963
963
  };
964
- function nt({ state: e, label: n, ariaLabel: a }) {
964
+ function lt({ state: e, label: n, ariaLabel: a }) {
965
965
  const s = n ?? Xn[e];
966
966
  return /* @__PURE__ */ i("span", { className: `w6w-health-pill w6w-health-pill-${e}`, "aria-label": a, children: [
967
967
  /* @__PURE__ */ t("span", { className: "w6w-health-pill-dot", "aria-hidden": "true" }),
@@ -992,24 +992,24 @@ function Qn({ days: e, ariaLabel: n }) {
992
992
  }
993
993
  );
994
994
  }
995
- const Vt = "—", Ct = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
996
- function qt(e) {
997
- if (e === null || !Number.isFinite(e)) return Vt;
995
+ const Ht = "—", $t = ["B", "KiB", "MiB", "GiB", "TiB", "PiB"];
996
+ function zt(e) {
997
+ if (e === null || !Number.isFinite(e)) return Ht;
998
998
  if (e < 1024) return `${Math.round(e)} B`;
999
999
  let n = e, a = 0;
1000
- for (; n >= 1024 && a < Ct.length - 1; )
1000
+ for (; n >= 1024 && a < $t.length - 1; )
1001
1001
  n /= 1024, a += 1;
1002
- return `${n.toFixed(1)} ${Ct[a]}`;
1002
+ return `${n.toFixed(1)} ${$t[a]}`;
1003
1003
  }
1004
- function X(e) {
1005
- return e === null || !Number.isFinite(e) ? Vt : `${Math.round(e * 100)}%`;
1004
+ function ee(e) {
1005
+ return e === null || !Number.isFinite(e) ? Ht : `${Math.round(e * 100)}%`;
1006
1006
  }
1007
- function we(e) {
1007
+ function ge(e) {
1008
1008
  if (e === void 0 || e.load1 === null) return null;
1009
1009
  const n = e.cpuLimit ?? e.cpus;
1010
1010
  return n === null || n <= 0 ? null : e.load1 / n;
1011
1011
  }
1012
- function me(e) {
1012
+ function ye(e) {
1013
1013
  if (e === void 0) return null;
1014
1014
  const { memoryTotal: n, memoryAvailable: a } = e;
1015
1015
  return n === null || a === null || n <= 0 ? null : (n - a) / n;
@@ -1029,18 +1029,18 @@ function ta(e, n, a, s) {
1029
1029
  }
1030
1030
  return o.join(" ");
1031
1031
  }
1032
- const na = "—", St = 100, $t = 24;
1033
- function Qe({
1032
+ const na = "—", Tt = 100, At = 24;
1033
+ function nt({
1034
1034
  values: e,
1035
1035
  max: n,
1036
1036
  className: a
1037
1037
  }) {
1038
- const s = ta(e, St, $t, n);
1038
+ const s = ta(e, Tt, At, n);
1039
1039
  return s === "" ? null : /* @__PURE__ */ t(
1040
1040
  "svg",
1041
1041
  {
1042
1042
  className: a,
1043
- viewBox: `0 0 ${St} ${$t}`,
1043
+ viewBox: `0 0 ${Tt} ${At}`,
1044
1044
  preserveAspectRatio: "none",
1045
1045
  "aria-hidden": "true",
1046
1046
  focusable: "false",
@@ -1057,15 +1057,15 @@ function Qe({
1057
1057
  }
1058
1058
  );
1059
1059
  }
1060
- function We(e) {
1060
+ function He(e) {
1061
1061
  return e === null ? na : e.toFixed(2);
1062
1062
  }
1063
- function Ee(e) {
1063
+ function Pe(e) {
1064
1064
  let n = 1;
1065
1065
  for (const a of e) a !== null && a > n && (n = a);
1066
1066
  return n;
1067
1067
  }
1068
- function Ce({
1068
+ function Ee({
1069
1069
  label: e,
1070
1070
  value: n,
1071
1071
  values: a,
@@ -1074,96 +1074,96 @@ function Ce({
1074
1074
  return /* @__PURE__ */ i("li", { className: "w6w-server-resources__row", children: [
1075
1075
  /* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: e }),
1076
1076
  /* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: n }),
1077
- /* @__PURE__ */ t(Qe, { className: "w6w-server-resources__spark", values: a, max: s })
1077
+ /* @__PURE__ */ t(nt, { className: "w6w-server-resources__spark", values: a, max: s })
1078
1078
  ] });
1079
1079
  }
1080
- function at(e) {
1081
- const n = e[e.length - 1], a = e.map((o) => we(o)), s = e.map((o) => me(o)), r = e.map((o) => o.processRss);
1080
+ function it(e) {
1081
+ const n = e[e.length - 1], a = e.map((o) => ge(o)), s = e.map((o) => ye(o)), r = e.map((o) => o.processRss);
1082
1082
  return { last: n, cpuValues: a, memoryValues: s, rssValues: r };
1083
1083
  }
1084
- function fs({
1084
+ function ps({
1085
1085
  samples: e,
1086
1086
  title: n = "Server resources",
1087
1087
  intervalMs: a
1088
1088
  }) {
1089
- const { last: s, cpuValues: r, memoryValues: o, rssValues: l } = at(e);
1089
+ const { last: s, cpuValues: r, memoryValues: o, rssValues: l } = it(e);
1090
1090
  return /* @__PURE__ */ i("section", { className: "w6w-server-resources w6w-server-resources--card", "aria-label": n, children: [
1091
1091
  /* @__PURE__ */ t("h3", { className: "w6w-server-resources__title", children: n }),
1092
1092
  /* @__PURE__ */ i("ul", { className: "w6w-server-resources__rows", children: [
1093
1093
  /* @__PURE__ */ t(
1094
- Ce,
1094
+ Ee,
1095
1095
  {
1096
1096
  label: "CPU",
1097
- value: X(we(s)),
1097
+ value: ee(ge(s)),
1098
1098
  values: r,
1099
- max: Ee(r)
1099
+ max: Pe(r)
1100
1100
  }
1101
1101
  ),
1102
1102
  /* @__PURE__ */ t(
1103
- Ce,
1103
+ Ee,
1104
1104
  {
1105
1105
  label: "Memory",
1106
- value: X(me(s)),
1106
+ value: ee(ye(s)),
1107
1107
  values: o,
1108
1108
  max: 1
1109
1109
  }
1110
1110
  ),
1111
1111
  /* @__PURE__ */ t(
1112
- Ce,
1112
+ Ee,
1113
1113
  {
1114
1114
  label: "Process",
1115
- value: qt((s == null ? void 0 : s.processRss) ?? null),
1115
+ value: zt((s == null ? void 0 : s.processRss) ?? null),
1116
1116
  values: l,
1117
- max: Ee(l)
1117
+ max: Pe(l)
1118
1118
  }
1119
1119
  )
1120
1120
  ] }),
1121
- /* @__PURE__ */ t("p", { className: "w6w-server-resources__meta", children: `Load ${We((s == null ? void 0 : s.load1) ?? null)} / ${We((s == null ? void 0 : s.load5) ?? null)} / ${We(
1121
+ /* @__PURE__ */ t("p", { className: "w6w-server-resources__meta", children: `Load ${He((s == null ? void 0 : s.load1) ?? null)} / ${He((s == null ? void 0 : s.load5) ?? null)} / ${He(
1122
1122
  (s == null ? void 0 : s.load15) ?? null
1123
1123
  )}` }),
1124
1124
  a !== void 0 && /* @__PURE__ */ t("p", { className: "w6w-server-resources__meta", children: `Sampled every ${a / 1e3}s` })
1125
1125
  ] });
1126
1126
  }
1127
- function gs({ samples: e, title: n = "Server" }) {
1128
- const { last: a, cpuValues: s } = at(e);
1127
+ function fs({ samples: e, title: n = "Server" }) {
1128
+ const { last: a, cpuValues: s } = it(e);
1129
1129
  return /* @__PURE__ */ i("section", { className: "w6w-server-resources w6w-server-resources--small", "aria-label": n, children: [
1130
1130
  /* @__PURE__ */ t("h3", { className: "w6w-server-resources__title", children: n }),
1131
1131
  /* @__PURE__ */ i("ul", { className: "w6w-server-resources__rows", children: [
1132
1132
  /* @__PURE__ */ t(
1133
- Ce,
1133
+ Ee,
1134
1134
  {
1135
1135
  label: "CPU",
1136
- value: X(we(a)),
1136
+ value: ee(ge(a)),
1137
1137
  values: s,
1138
- max: Ee(s)
1138
+ max: Pe(s)
1139
1139
  }
1140
1140
  ),
1141
1141
  /* @__PURE__ */ i("li", { className: "w6w-server-resources__row", children: [
1142
1142
  /* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: "Memory" }),
1143
- /* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: X(me(a)) })
1143
+ /* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: ee(ye(a)) })
1144
1144
  ] })
1145
1145
  ] })
1146
1146
  ] });
1147
1147
  }
1148
- function ys({ samples: e, onExpand: n }) {
1149
- const { last: a, cpuValues: s, memoryValues: r } = at(e);
1148
+ function gs({ samples: e, onExpand: n }) {
1149
+ const { last: a, cpuValues: s, memoryValues: r } = it(e);
1150
1150
  return /* @__PURE__ */ i("aside", { className: "w6w-server-resources w6w-server-resources--rail", children: [
1151
1151
  /* @__PURE__ */ i("div", { className: "w6w-server-resources__rail-row", children: [
1152
1152
  /* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: "CPU" }),
1153
- /* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: X(we(a)) }),
1153
+ /* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: ee(ge(a)) }),
1154
1154
  /* @__PURE__ */ t(
1155
- Qe,
1155
+ nt,
1156
1156
  {
1157
1157
  className: "w6w-server-resources__spark",
1158
1158
  values: s,
1159
- max: Ee(s)
1159
+ max: Pe(s)
1160
1160
  }
1161
1161
  )
1162
1162
  ] }),
1163
1163
  /* @__PURE__ */ i("div", { className: "w6w-server-resources__rail-row", children: [
1164
1164
  /* @__PURE__ */ t("span", { className: "w6w-server-resources__label", children: "MEM" }),
1165
- /* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: X(me(a)) }),
1166
- /* @__PURE__ */ t(Qe, { className: "w6w-server-resources__spark", values: r, max: 1 })
1165
+ /* @__PURE__ */ t("span", { className: "w6w-server-resources__value", children: ee(ye(a)) }),
1166
+ /* @__PURE__ */ t(nt, { className: "w6w-server-resources__spark", values: r, max: 1 })
1167
1167
  ] }),
1168
1168
  n !== void 0 && /* @__PURE__ */ t(
1169
1169
  "button",
@@ -1177,8 +1177,8 @@ function ys({ samples: e, onExpand: n }) {
1177
1177
  )
1178
1178
  ] });
1179
1179
  }
1180
- function vs({ samples: e }) {
1181
- const n = e[e.length - 1], a = X(we(n)), s = X(me(n));
1180
+ function ys({ samples: e }) {
1181
+ const n = e[e.length - 1], a = ee(ge(n)), s = ee(ye(n));
1182
1182
  return /* @__PURE__ */ t("span", { className: "w6w-server-resources w6w-server-resources--badge", children: `CPU ${a} · MEM ${s}` });
1183
1183
  }
1184
1184
  const aa = 1, sa = 1440 * 60 * 1e3;
@@ -1187,8 +1187,8 @@ function la(e, n, a) {
1187
1187
  if (s === void 0) return null;
1188
1188
  const r = Date.parse(s), o = n.resolvedAt !== void 0 ? Date.parse(n.resolvedAt) : n.startedAt !== void 0 ? a : r, l = Date.parse(`${e.from}T00:00:00.000Z`), c = Date.parse(`${e.to}T00:00:00.000Z`) + sa, d = c - l;
1189
1189
  if (o < l || r >= c) return null;
1190
- const u = r < l, f = o > c, g = Math.max(r, l), v = Math.min(o, c), w = (g - l) / d * 100, h = (v - g) / d * 100, y = Math.max(h, aa);
1191
- return { leftPct: w, widthPct: y, clippedStart: u, clippedEnd: f };
1190
+ const u = r < l, f = o > c, g = Math.max(r, l), v = Math.min(o, c), m = (g - l) / d * 100, h = (v - g) / d * 100, y = Math.max(h, aa);
1191
+ return { leftPct: m, widthPct: y, clippedStart: u, clippedEnd: f };
1192
1192
  }
1193
1193
  const ia = {
1194
1194
  ok: "Operational",
@@ -1202,7 +1202,7 @@ function ca(e) {
1202
1202
  e.resolvedAt !== void 0 ? `${n} – ${e.resolvedAt}` : `${n} – ongoing`
1203
1203
  ), a.join(" ");
1204
1204
  }
1205
- function Ns({
1205
+ function vs({
1206
1206
  window: e,
1207
1207
  days: n,
1208
1208
  incidents: a,
@@ -1244,11 +1244,11 @@ function Ns({
1244
1244
  ] })
1245
1245
  ] }) });
1246
1246
  }
1247
- function bs({ label: e, children: n, className: a }) {
1248
- const [s, r] = k(!1), o = Fn();
1247
+ function Ns({ label: e, children: n, className: a }) {
1248
+ const [s, r] = b(!1), o = Fn();
1249
1249
  return /* @__PURE__ */ i("span", { className: ["w6w-info-tip", a ?? ""].filter(Boolean).join(" "), children: [
1250
1250
  /* @__PURE__ */ t(
1251
- de,
1251
+ he,
1252
1252
  {
1253
1253
  label: e,
1254
1254
  icon: "info",
@@ -1260,10 +1260,10 @@ function bs({ label: e, children: n, className: a }) {
1260
1260
  s && /* @__PURE__ */ t("span", { id: o, className: "w6w-info-tip-body w6w-muted w6w-small", children: n })
1261
1261
  ] });
1262
1262
  }
1263
- function Ht(e) {
1263
+ function Yt(e) {
1264
1264
  const { label: n, onClick: a, disabled: s, className: r, ...o } = e;
1265
1265
  return /* @__PURE__ */ t(
1266
- de,
1266
+ he,
1267
1267
  {
1268
1268
  label: n,
1269
1269
  onClick: a,
@@ -1274,13 +1274,13 @@ function Ht(e) {
1274
1274
  }
1275
1275
  );
1276
1276
  }
1277
- function ks(e) {
1278
- const { branch: n, shortSha: a, lastSyncLabel: s, onSyncNow: r, syncing: o, className: l, ...c } = e, [d, u] = k(!1), f = Jt(null);
1279
- return G(() => {
1277
+ function bs(e) {
1278
+ const { branch: n, shortSha: a, lastSyncLabel: s, onSyncNow: r, syncing: o, className: l, ...c } = e, [d, u] = b(!1), f = Vt(null);
1279
+ return Q(() => {
1280
1280
  if (!d) return;
1281
- const g = (w) => {
1282
- f.current && !f.current.contains(w.target) && u(!1);
1283
- }, v = (w) => w.key === "Escape" && u(!1);
1281
+ const g = (m) => {
1282
+ f.current && !f.current.contains(m.target) && u(!1);
1283
+ }, v = (m) => m.key === "Escape" && u(!1);
1284
1284
  return document.addEventListener("mousedown", g), document.addEventListener("keydown", v), () => {
1285
1285
  document.removeEventListener("mousedown", g), document.removeEventListener("keydown", v);
1286
1286
  };
@@ -1302,8 +1302,8 @@ function ks(e) {
1302
1302
  onClick: () => u((g) => !g),
1303
1303
  children: [
1304
1304
  /* @__PURE__ */ i("span", { className: "w6w-repo-sync-icon", children: [
1305
- /* @__PURE__ */ t(Xe, { name: "github" }),
1306
- o && /* @__PURE__ */ t(Xe, { name: "sync", size: 10, className: "w6w-repo-sync-spin" })
1305
+ /* @__PURE__ */ t(et, { name: "github" }),
1306
+ o && /* @__PURE__ */ t(et, { name: "sync", size: 10, className: "w6w-repo-sync-spin" })
1307
1307
  ] }),
1308
1308
  /* @__PURE__ */ t("span", { className: "w6w-repo-sync-branch", children: n }),
1309
1309
  a != null && /* @__PURE__ */ t("code", { className: "w6w-repo-sync-sha", children: a })
@@ -1342,18 +1342,18 @@ const da = {
1342
1342
  queued: "Queued",
1343
1343
  canceled: "Canceled"
1344
1344
  };
1345
- function st({ state: e, label: n, ariaLabel: a }) {
1345
+ function rt({ state: e, label: n, ariaLabel: a }) {
1346
1346
  const s = n ?? da[e];
1347
1347
  return /* @__PURE__ */ i("span", { className: `w6w-step-pill w6w-step-pill-${e}`, "aria-label": a, children: [
1348
1348
  /* @__PURE__ */ t("span", { className: "w6w-step-pill-dot", "aria-hidden": "true" }),
1349
1349
  /* @__PURE__ */ t("span", { className: "w6w-step-pill-label", children: s })
1350
1350
  ] });
1351
1351
  }
1352
- const ua = "—", Ve = 1e3, qe = 6e4;
1353
- function lt(e) {
1354
- return e == null || !Number.isFinite(e) || e < 0 ? ua : e < Ve ? `${Math.round(e)} ms` : e < qe ? `${(e / Ve).toFixed(1)} s` : `${Math.floor(e / qe)}m ${Math.round(e % qe / Ve)}s`;
1352
+ const ua = "—", ze = 1e3, Ye = 6e4;
1353
+ function ot(e) {
1354
+ return e == null || !Number.isFinite(e) || e < 0 ? ua : e < ze ? `${Math.round(e)} ms` : e < Ye ? `${(e / ze).toFixed(1)} s` : `${Math.floor(e / Ye)}m ${Math.round(e % Ye / ze)}s`;
1355
1355
  }
1356
- function Re(e) {
1356
+ function Le(e) {
1357
1357
  const n = new Date(e);
1358
1358
  return Number.isNaN(n.getTime()) ? e : n.toLocaleString(void 0, { dateStyle: "medium", timeStyle: "short" });
1359
1359
  }
@@ -1368,12 +1368,12 @@ const wa = {
1368
1368
  event: "Event",
1369
1369
  replay: "Replay"
1370
1370
  };
1371
- function Tt(e) {
1371
+ function Et(e) {
1372
1372
  if (!e.trigger) return null;
1373
1373
  const n = ma[e.trigger] ?? e.trigger;
1374
1374
  return e.triggerNodeId ? `${n} · ${e.triggerNodeId}` : n;
1375
1375
  }
1376
- function xs({
1376
+ function ks({
1377
1377
  items: e,
1378
1378
  selectedId: n = null,
1379
1379
  onSelect: a,
@@ -1411,14 +1411,14 @@ function xs({
1411
1411
  }
1412
1412
  )
1413
1413
  ] }) : null;
1414
- let w;
1415
- return r && e.length === 0 ? w = /* @__PURE__ */ t("p", { "data-testid": "execution-list-loading", children: "Loading…" }) : e.length === 0 ? w = /* @__PURE__ */ t("p", { "data-testid": "execution-list-empty", children: o ?? "No executions yet." }) : w = /* @__PURE__ */ t("ul", { className: "w6w-execution-list-rows", children: e.map((h) => /* @__PURE__ */ i("li", { "data-testid": "execution-row", "data-execution-id": h.id, children: [
1414
+ let m;
1415
+ return r && e.length === 0 ? m = /* @__PURE__ */ t("p", { "data-testid": "execution-list-loading", children: "Loading…" }) : e.length === 0 ? m = /* @__PURE__ */ t("p", { "data-testid": "execution-list-empty", children: o ?? "No executions yet." }) : m = /* @__PURE__ */ t("ul", { className: "w6w-execution-list-rows", children: e.map((h) => /* @__PURE__ */ i("li", { "data-testid": "execution-row", "data-execution-id": h.id, children: [
1416
1416
  /* @__PURE__ */ t(
1417
- Ze,
1417
+ tt,
1418
1418
  {
1419
- icon: /* @__PURE__ */ t(st, { state: h.status }),
1420
- title: /* @__PURE__ */ i(R, { children: [
1421
- s ? h.callableName : Re(h.startedAt),
1419
+ icon: /* @__PURE__ */ t(rt, { state: h.status }),
1420
+ title: /* @__PURE__ */ i(_, { children: [
1421
+ s ? h.callableName : Le(h.startedAt),
1422
1422
  h.rerunOf && /* @__PURE__ */ t(
1423
1423
  "span",
1424
1424
  {
@@ -1429,10 +1429,10 @@ function xs({
1429
1429
  }
1430
1430
  )
1431
1431
  ] }),
1432
- subtitle: /* @__PURE__ */ i(R, { children: [
1433
- s ? `${wa[h.kind]} · ${Re(h.startedAt)}` : h.id,
1434
- Tt(h) && /* @__PURE__ */ t("span", { className: "w6w-execution-trigger", "data-testid": "execution-row-trigger", children: ` · ${Tt(h)}` }),
1435
- h.inputPreview && /* @__PURE__ */ i(R, { children: [
1432
+ subtitle: /* @__PURE__ */ i(_, { children: [
1433
+ s ? `${wa[h.kind]} · ${Le(h.startedAt)}` : h.id,
1434
+ Et(h) && /* @__PURE__ */ t("span", { className: "w6w-execution-trigger", "data-testid": "execution-row-trigger", children: ` · ${Et(h)}` }),
1435
+ h.inputPreview && /* @__PURE__ */ i(_, { children: [
1436
1436
  " · ",
1437
1437
  /* @__PURE__ */ t(
1438
1438
  "code",
@@ -1445,13 +1445,13 @@ function xs({
1445
1445
  )
1446
1446
  ] })
1447
1447
  ] }),
1448
- trailing: lt(h.durationMs),
1448
+ trailing: ot(h.durationMs),
1449
1449
  active: h.id === n,
1450
1450
  onClick: a ? () => a(h.id) : void 0
1451
1451
  }
1452
1452
  ),
1453
1453
  f && /* @__PURE__ */ t(
1454
- de,
1454
+ he,
1455
1455
  {
1456
1456
  icon: "sync",
1457
1457
  label: "Re-run",
@@ -1463,7 +1463,7 @@ function xs({
1463
1463
  }
1464
1464
  )
1465
1465
  ] }, h.id)) }), /* @__PURE__ */ i("div", { className: "w6w-execution-list", "data-testid": "execution-list", children: [
1466
- w,
1466
+ m,
1467
1467
  v
1468
1468
  ] });
1469
1469
  }
@@ -1475,7 +1475,7 @@ function ha(e) {
1475
1475
  actionName: e.actionName ?? (n == null ? void 0 : n.label) ?? e.action
1476
1476
  };
1477
1477
  }
1478
- function zt(e) {
1478
+ function Gt(e) {
1479
1479
  const n = (a) => {
1480
1480
  for (const s of [a.startedAt, a.finishedAt]) {
1481
1481
  const r = Date.parse(s ?? "");
@@ -1492,30 +1492,30 @@ function pa({
1492
1492
  runError: s,
1493
1493
  stepErrors: r
1494
1494
  }) {
1495
- const o = a ? /* @__PURE__ */ t("div", { className: "w6w-execution-log-head", children: /* @__PURE__ */ t(de, { label: "Dismiss run log", "data-testid": "execution-log-dismiss", onClick: a, children: "×" }) }) : null, l = r ?? [], c = s || l.length > 0 ? /* @__PURE__ */ i("div", { className: "w6w-execution-log-errors w6w-stack", children: [
1496
- s && /* @__PURE__ */ t(et, { error: s }),
1495
+ const o = a ? /* @__PURE__ */ t("div", { className: "w6w-execution-log-head", children: /* @__PURE__ */ t(he, { label: "Dismiss run log", "data-testid": "execution-log-dismiss", onClick: a, children: "×" }) }) : null, l = r ?? [], c = s || l.length > 0 ? /* @__PURE__ */ i("div", { className: "w6w-execution-log-errors w6w-stack", children: [
1496
+ s && /* @__PURE__ */ t(at, { error: s }),
1497
1497
  l.map((g, v) => /* @__PURE__ */ t(
1498
- et,
1498
+ at,
1499
1499
  {
1500
1500
  label: g.label ?? g.stepId,
1501
1501
  error: g.error
1502
1502
  },
1503
1503
  `${g.stepId}:${v}`
1504
1504
  ))
1505
- ] }) : null, d = zt(e.filter((g) => !At(g))), u = e.filter(At), f = u.length > 0 ? /* @__PURE__ */ t(ga, { steps: u }) : null;
1506
- return d.length === 0 ? /* @__PURE__ */ i(R, { children: [
1505
+ ] }) : null, d = Gt(e.filter((g) => !Rt(g))), u = e.filter(Rt), f = u.length > 0 ? /* @__PURE__ */ t(ga, { steps: u }) : null;
1506
+ return d.length === 0 ? /* @__PURE__ */ i(_, { children: [
1507
1507
  o,
1508
1508
  c,
1509
1509
  /* @__PURE__ */ t("div", { className: "w6w-execution-log-empty", children: /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: n ?? "No nodes have run yet." }) }),
1510
1510
  f
1511
- ] }) : /* @__PURE__ */ i(R, { children: [
1511
+ ] }) : /* @__PURE__ */ i(_, { children: [
1512
1512
  o,
1513
1513
  c,
1514
- /* @__PURE__ */ t("ol", { className: "w6w-execution-log", children: d.map((g) => /* @__PURE__ */ t(Yt, { step: g }, g.id)) }),
1514
+ /* @__PURE__ */ t("ol", { className: "w6w-execution-log", children: d.map((g) => /* @__PURE__ */ t(Xt, { step: g }, g.id)) }),
1515
1515
  f
1516
1516
  ] });
1517
1517
  }
1518
- const At = (e) => e.status === "skipped" && e.skipReason === "not_on_path", fa = {
1518
+ const Rt = (e) => e.status === "skipped" && e.skipReason === "not_on_path", fa = {
1519
1519
  condition: "condition false",
1520
1520
  stopped: "run stopped",
1521
1521
  disabled: "disabled"
@@ -1527,13 +1527,13 @@ function ga({ steps: e }) {
1527
1527
  /* @__PURE__ */ t("ul", { className: "w6w-muted w6w-small", children: e.map((a) => /* @__PURE__ */ t("li", { children: a.label ?? a.id }, a.id)) })
1528
1528
  ] });
1529
1529
  }
1530
- function Yt({
1530
+ function Xt({
1531
1531
  step: e,
1532
1532
  defaultOpen: n = !1
1533
1533
  }) {
1534
1534
  var u, f;
1535
- const [a, s] = k(n), r = e.node ? ha(e.node) : null, o = /* @__PURE__ */ i("div", { className: "w6w-execution-log-row-header", children: [
1536
- /* @__PURE__ */ t(st, { state: e.status }),
1535
+ const [a, s] = b(n), r = e.node ? ha(e.node) : null, o = /* @__PURE__ */ i("div", { className: "w6w-execution-log-row-header", children: [
1536
+ /* @__PURE__ */ t(rt, { state: e.status }),
1537
1537
  r && /* @__PURE__ */ t(
1538
1538
  "span",
1539
1539
  {
@@ -1548,7 +1548,7 @@ function Yt({
1548
1548
  ] }),
1549
1549
  e.status === "skipped" && e.skipReason && e.skipReason !== "not_on_path" && /* @__PURE__ */ t("span", { className: "w6w-execution-log-skip-reason", "data-testid": "execution-log-skip-reason", children: fa[e.skipReason] }),
1550
1550
  /* @__PURE__ */ t(Na, { startedAt: e.startedAt, finishedAt: e.finishedAt })
1551
- ] }), l = e.error ? /* @__PURE__ */ t(et, { error: e.error }) : null, c = Array.isArray(e.iterations) ? /* @__PURE__ */ t(ya, { step: e }) : null, d = Ca(e) ? /* @__PURE__ */ t(Sa, { step: e }) : null;
1551
+ ] }), l = e.error ? /* @__PURE__ */ t(at, { error: e.error }) : null, c = Array.isArray(e.iterations) ? /* @__PURE__ */ t(ya, { step: e }) : null, d = Ca(e) ? /* @__PURE__ */ t(Sa, { step: e }) : null;
1552
1552
  return e.input === void 0 && e.output === void 0 && !e.meta && !d && !((u = e.logs) != null && u.length) ? /* @__PURE__ */ i("li", { className: "w6w-execution-log-row", children: [
1553
1553
  /* @__PURE__ */ t("div", { className: "w6w-section", children: o }),
1554
1554
  l,
@@ -1558,16 +1558,16 @@ function Yt({
1558
1558
  /* @__PURE__ */ t("summary", { className: "w6w-section-summary", children: o }),
1559
1559
  a && /* @__PURE__ */ i("div", { className: "w6w-execution-log-row-body w6w-section-body w6w-stack", children: [
1560
1560
  /* @__PURE__ */ t(ka, { input: e.input }),
1561
- /* @__PURE__ */ t(Et, { title: "Input", value: e.input, defaultOpen: n }),
1562
- /* @__PURE__ */ t(Et, { title: "Output", value: e.output, defaultOpen: n }),
1561
+ /* @__PURE__ */ t(_t, { title: "Input", value: e.input, defaultOpen: n }),
1562
+ /* @__PURE__ */ t(_t, { title: "Output", value: e.output, defaultOpen: n }),
1563
1563
  !!((f = e.logs) != null && f.length) && /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", children: [
1564
1564
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: "Console" }),
1565
- /* @__PURE__ */ t(Ae, { code: e.logs.join(`
1565
+ /* @__PURE__ */ t(Ie, { code: e.logs.join(`
1566
1566
  `), language: "plaintext" })
1567
1567
  ] }),
1568
1568
  e.meta && /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", children: [
1569
1569
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: "Metadata" }),
1570
- /* @__PURE__ */ t(Ae, { code: JSON.stringify(e.meta, null, 2), language: "json" })
1570
+ /* @__PURE__ */ t(Ie, { code: JSON.stringify(e.meta, null, 2), language: "json" })
1571
1571
  ] }),
1572
1572
  d
1573
1573
  ] })
@@ -1578,55 +1578,55 @@ function Yt({
1578
1578
  }
1579
1579
  function ya({ step: e }) {
1580
1580
  var h, y;
1581
- const n = [...e.iterations ?? []].sort((m, S) => m.index - S.index), a = e.iterationsTotal ?? n.length, s = e.iterationsFailed ?? n.filter((m) => m.status === "failed").length, r = n.find((m) => m.status === "failed"), o = (r == null ? void 0 : r.index) ?? ((h = n[n.length - 1]) == null ? void 0 : h.index), [l, c] = k(o), [d, u] = k(!1), f = n.find((m) => m.index === l), g = [], v = /* @__PURE__ */ new Map();
1582
- for (const m of zt(n.flatMap((S) => S.steps)))
1583
- v.has(m.id) || (g.push(m.id), v.set(m.id, m.label ?? m.id));
1584
- const w = (r == null ? void 0 : r.failedNodeId) ?? ((y = r == null ? void 0 : r.steps.find((m) => m.status === "failed")) == null ? void 0 : y.id);
1581
+ const n = [...e.iterations ?? []].sort((w, S) => w.index - S.index), a = e.iterationsTotal ?? n.length, s = e.iterationsFailed ?? n.filter((w) => w.status === "failed").length, r = n.find((w) => w.status === "failed"), o = (r == null ? void 0 : r.index) ?? ((h = n[n.length - 1]) == null ? void 0 : h.index), [l, c] = b(o), [d, u] = b(!1), f = n.find((w) => w.index === l), g = [], v = /* @__PURE__ */ new Map();
1582
+ for (const w of Gt(n.flatMap((S) => S.steps)))
1583
+ v.has(w.id) || (g.push(w.id), v.set(w.id, w.label ?? w.id));
1584
+ const m = (r == null ? void 0 : r.failedNodeId) ?? ((y = r == null ? void 0 : r.steps.find((w) => w.status === "failed")) == null ? void 0 : y.id);
1585
1585
  return /* @__PURE__ */ i("div", { className: "w6w-execution-log-foreach w6w-stack", children: [
1586
1586
  /* @__PURE__ */ i("div", { className: "w6w-small", "data-testid": "execution-log-foreach-summary", children: [
1587
1587
  /* @__PURE__ */ i("span", { children: [
1588
1588
  a === 1 ? "1 item" : `${a} items`,
1589
1589
  s > 0 ? ` · ${s} failed` : ""
1590
1590
  ] }),
1591
- r && w !== void 0 && /* @__PURE__ */ i("div", { children: [
1592
- v.get(w) ?? w,
1591
+ r && m !== void 0 && /* @__PURE__ */ i("div", { children: [
1592
+ v.get(m) ?? m,
1593
1593
  " failed in iteration ",
1594
1594
  r.index
1595
1595
  ] }),
1596
1596
  e.iterationsTruncated === !0 && /* @__PURE__ */ t("div", { className: "w6w-muted", children: `showing ${n.length} of ${a}` })
1597
1597
  ] }),
1598
- /* @__PURE__ */ t("div", { className: "w6w-execution-log-iteration-chips", children: n.map((m) => /* @__PURE__ */ i(
1598
+ /* @__PURE__ */ t("div", { className: "w6w-execution-log-iteration-chips", children: n.map((w) => /* @__PURE__ */ i(
1599
1599
  "button",
1600
1600
  {
1601
1601
  type: "button",
1602
- className: `w6w-execution-log-iteration-chip w6w-execution-log-iteration-chip-${m.status}`,
1602
+ className: `w6w-execution-log-iteration-chip w6w-execution-log-iteration-chip-${w.status}`,
1603
1603
  "data-testid": "execution-log-iteration-chip",
1604
- "data-status": m.status,
1605
- "aria-pressed": l === m.index,
1606
- title: `Show iteration ${m.index}'s input and output`,
1604
+ "data-status": w.status,
1605
+ "aria-pressed": l === w.index,
1606
+ title: `Show iteration ${w.index}'s input and output`,
1607
1607
  onClick: () => {
1608
- c(m.index), u(!0);
1608
+ c(w.index), u(!0);
1609
1609
  },
1610
1610
  children: [
1611
- m.index,
1611
+ w.index,
1612
1612
  " · ",
1613
- m.status
1613
+ w.status
1614
1614
  ]
1615
1615
  },
1616
- m.index
1616
+ w.index
1617
1617
  )) }),
1618
1618
  f && /* @__PURE__ */ t("div", { className: "w6w-small w6w-muted", "data-testid": "execution-log-iteration-current", children: `Iteration ${f.index} · ${f.status}` }),
1619
- /* @__PURE__ */ t("ul", { className: "w6w-execution-log-subrows", children: g.map((m) => /* @__PURE__ */ t(
1619
+ /* @__PURE__ */ t("ul", { className: "w6w-execution-log-subrows", children: g.map((w) => /* @__PURE__ */ t(
1620
1620
  va,
1621
1621
  {
1622
- id: m,
1623
- label: v.get(m) ?? m,
1622
+ id: w,
1623
+ label: v.get(w) ?? w,
1624
1624
  iterations: n,
1625
1625
  selected: l,
1626
1626
  open: d,
1627
1627
  onSelect: c
1628
1628
  },
1629
- m
1629
+ w
1630
1630
  )) })
1631
1631
  ] });
1632
1632
  }
@@ -1655,10 +1655,10 @@ function va({
1655
1655
  }
1656
1656
  )
1657
1657
  ] }),
1658
- l ? /* @__PURE__ */ t("ol", { className: "w6w-execution-log", children: /* @__PURE__ */ t(Yt, { step: l, defaultOpen: r }, `${s}:${r}`) }) : /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Did not run in this iteration." })
1658
+ l ? /* @__PURE__ */ t("ol", { className: "w6w-execution-log", children: /* @__PURE__ */ t(Xt, { step: l, defaultOpen: r }, `${s}:${r}`) }) : /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Did not run in this iteration." })
1659
1659
  ] });
1660
1660
  }
1661
- function et({ error: e, label: n }) {
1661
+ function at({ error: e, label: n }) {
1662
1662
  return /* @__PURE__ */ i("div", { className: "w6w-result w6w-error", children: [
1663
1663
  n !== void 0 && /* @__PURE__ */ t("strong", { className: "w6w-execution-log-error-label", children: n }),
1664
1664
  e.code && /* @__PURE__ */ t("div", { className: "w6w-small w6w-execution-log-error-code", children: /* @__PURE__ */ t("code", { children: e.code }) }),
@@ -1694,12 +1694,12 @@ function ba(e, n) {
1694
1694
  const l = Math.floor(o / 60), c = Math.round(o % 60);
1695
1695
  return `${l}m ${c}s`;
1696
1696
  }
1697
- function Et({
1697
+ function _t({
1698
1698
  title: e,
1699
1699
  value: n,
1700
1700
  defaultOpen: a = !1
1701
1701
  }) {
1702
- const [s, r] = k(a);
1702
+ const [s, r] = b(a);
1703
1703
  return n === void 0 ? /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", children: [
1704
1704
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: e }),
1705
1705
  /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Not available." })
@@ -1713,16 +1713,16 @@ function Et({
1713
1713
  },
1714
1714
  children: [
1715
1715
  /* @__PURE__ */ t("summary", { children: /* @__PURE__ */ t("strong", { className: "w6w-small", children: e }) }),
1716
- s && /* @__PURE__ */ t(Ye, { value: n, format: "json" })
1716
+ s && /* @__PURE__ */ t(Ze, { value: n, format: "json" })
1717
1717
  ]
1718
1718
  }
1719
1719
  );
1720
1720
  }
1721
- const _e = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
1722
- function Rt(e) {
1723
- if (!_e(e) || !Array.isArray(e.conditions)) return;
1721
+ const Me = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
1722
+ function Ot(e) {
1723
+ if (!Me(e) || !Array.isArray(e.conditions)) return;
1724
1724
  const n = e.conditions.filter(
1725
- (a) => _e(a) && typeof a.op == "string" && "result" in a
1725
+ (a) => Me(a) && typeof a.op == "string" && "result" in a
1726
1726
  );
1727
1727
  if (n.length !== 0)
1728
1728
  return {
@@ -1732,11 +1732,11 @@ function Rt(e) {
1732
1732
  };
1733
1733
  }
1734
1734
  function ka({ input: e }) {
1735
- const n = [], a = Rt(e);
1736
- if (a && n.push({ trace: a }), _e(e) && Array.isArray(e.routes))
1735
+ const n = [], a = Ot(e);
1736
+ if (a && n.push({ trace: a }), Me(e) && Array.isArray(e.routes))
1737
1737
  for (const s of e.routes) {
1738
- const r = Rt(s);
1739
- !r || !_e(s) || n.push({ title: String(s.label ?? s.id ?? "Route"), trace: r });
1738
+ const r = Ot(s);
1739
+ !r || !Me(s) || n.push({ title: String(s.label ?? s.id ?? "Route"), trace: r });
1740
1740
  }
1741
1741
  return n.length === 0 ? null : /* @__PURE__ */ i("div", { className: "w6w-execution-log-json w6w-stack", "data-testid": "execution-log-conditions", children: [
1742
1742
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: "Condition" }),
@@ -1745,7 +1745,7 @@ function ka({ input: e }) {
1745
1745
  (r.combinator && r.rows.length > 1 || r.result !== void 0) && /* @__PURE__ */ i("span", { className: "w6w-small w6w-muted", "data-testid": "execution-log-condition-summary", children: [
1746
1746
  r.combinator && r.rows.length > 1 && On(r.combinator),
1747
1747
  r.combinator && r.rows.length > 1 && r.result !== void 0 && " · ",
1748
- r.result !== void 0 && /* @__PURE__ */ i(R, { children: [
1748
+ r.result !== void 0 && /* @__PURE__ */ i(_, { children: [
1749
1749
  "Result:",
1750
1750
  " ",
1751
1751
  /* @__PURE__ */ t(
@@ -1767,9 +1767,9 @@ function ka({ input: e }) {
1767
1767
  /* @__PURE__ */ t("tbody", { children: r.rows.map((l, c) => (
1768
1768
  // biome-ignore lint/suspicious/noArrayIndexKey: rows are positional and never reorder.
1769
1769
  /* @__PURE__ */ i("tr", { children: [
1770
- /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("code", { children: _t(l.left) }) }),
1770
+ /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("code", { children: It(l.left) }) }),
1771
1771
  /* @__PURE__ */ t("td", { children: In(l.op) }),
1772
- /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("code", { children: _t(l.right) }) }),
1772
+ /* @__PURE__ */ t("td", { children: /* @__PURE__ */ t("code", { children: It(l.right) }) }),
1773
1773
  /* @__PURE__ */ t(
1774
1774
  "td",
1775
1775
  {
@@ -1783,10 +1783,10 @@ function ka({ input: e }) {
1783
1783
  ] }, s ?? o))
1784
1784
  ] });
1785
1785
  }
1786
- function _t(e) {
1786
+ function It(e) {
1787
1787
  return JSON.stringify(e) ?? "undefined";
1788
1788
  }
1789
- const Ot = {
1789
+ const Pt = {
1790
1790
  not_object: "Not written — the output isn't an object, so it can't be merged at the root",
1791
1791
  missing_source: "Not written — the output has no value at that field",
1792
1792
  null_append: "Not appended — the value was null",
@@ -1799,17 +1799,17 @@ const Ot = {
1799
1799
  log_truncated: "Later state changes aren't shown — the run's state log reached its limit"
1800
1800
  };
1801
1801
  function xa(e) {
1802
- return Object.hasOwn(Ot, e) ? Ot[e] : e;
1802
+ return Object.hasOwn(Pt, e) ? Pt[e] : e;
1803
1803
  }
1804
1804
  function Ca(e) {
1805
1805
  const n = Array.isArray(e.stateWrites) && e.stateWrites.length > 0, a = e.stateAfter;
1806
1806
  return n || typeof a == "object" && a !== null && Object.keys(a).length > 0;
1807
1807
  }
1808
- const It = 120;
1809
- function Pt(e) {
1808
+ const Lt = 120;
1809
+ function Mt(e) {
1810
1810
  if (e === void 0) return "(not set)";
1811
1811
  const n = JSON.stringify(e) ?? String(e);
1812
- return n.length > It ? `${n.slice(0, It)}…` : n;
1812
+ return n.length > Lt ? `${n.slice(0, Lt)}…` : n;
1813
1813
  }
1814
1814
  function Sa({ step: e }) {
1815
1815
  const n = Array.isArray(e.stateWrites) ? e.stateWrites : [], a = e.stateAfter;
@@ -1831,14 +1831,14 @@ function Sa({ step: e }) {
1831
1831
  {
1832
1832
  className: "w6w-execution-log-state-write w6w-small",
1833
1833
  "data-testid": "execution-log-state-write",
1834
- children: `${l}: ${Pt(s.old)} → ${Pt(s.new)}`
1834
+ children: `${l}: ${Mt(s.old)} → ${Mt(s.new)}`
1835
1835
  },
1836
1836
  r
1837
1837
  );
1838
1838
  }) }),
1839
1839
  typeof a == "object" && a !== null && /* @__PURE__ */ i("div", { className: "w6w-stack", "data-testid": "execution-log-state-after", children: [
1840
1840
  /* @__PURE__ */ t("span", { className: "w6w-small w6w-muted", children: "State after this step" }),
1841
- /* @__PURE__ */ t(Ae, { code: JSON.stringify(a, null, 2), language: "json" })
1841
+ /* @__PURE__ */ t(Ie, { code: JSON.stringify(a, null, 2), language: "json" })
1842
1842
  ] })
1843
1843
  ] });
1844
1844
  }
@@ -1855,7 +1855,7 @@ const $a = { status: "", kind: "", from: "", to: "", q: "" }, Ta = [
1855
1855
  { value: "endpoint", label: "Endpoint" },
1856
1856
  { value: "workflow", label: "Workflow" }
1857
1857
  ];
1858
- function Cs({
1858
+ function xs({
1859
1859
  value: e,
1860
1860
  onChange: n,
1861
1861
  showKind: a = !1,
@@ -1938,13 +1938,13 @@ function Cs({
1938
1938
  )
1939
1939
  ] });
1940
1940
  }
1941
- const Se = "—";
1942
- function Ss({ stats: e, label: n }) {
1941
+ const Re = "—";
1942
+ function Cs({ stats: e, label: n }) {
1943
1943
  const a = [
1944
1944
  {
1945
1945
  testid: "execution-stat-total",
1946
1946
  label: "Executions",
1947
- value: e ? String(e.total) : Se
1947
+ value: e ? String(e.total) : Re
1948
1948
  },
1949
1949
  {
1950
1950
  testid: "execution-stat-success-rate",
@@ -1954,12 +1954,12 @@ function Ss({ stats: e, label: n }) {
1954
1954
  {
1955
1955
  testid: "execution-stat-failed",
1956
1956
  label: "Failed",
1957
- value: e ? String(e.failed) : Se
1957
+ value: e ? String(e.failed) : Re
1958
1958
  },
1959
1959
  {
1960
1960
  testid: "execution-stat-avg-duration",
1961
1961
  label: "Avg duration",
1962
- value: e ? lt(e.avgDurationMs) : Se
1962
+ value: e ? ot(e.avgDurationMs) : Re
1963
1963
  }
1964
1964
  ];
1965
1965
  return e && e.inFlight > 0 && a.push({
@@ -1975,7 +1975,7 @@ function Ss({ stats: e, label: n }) {
1975
1975
  ] });
1976
1976
  }
1977
1977
  function Ea(e) {
1978
- return e == null || !Number.isFinite(e) ? Se : `${Math.round(e * 100)}%`;
1978
+ return e == null || !Number.isFinite(e) ? Re : `${Math.round(e * 100)}%`;
1979
1979
  }
1980
1980
  const Ra = {
1981
1981
  function: "Function",
@@ -1985,7 +1985,7 @@ const Ra = {
1985
1985
  function _a(e) {
1986
1986
  return JSON.stringify(e, null, 2) ?? "null";
1987
1987
  }
1988
- function $s({
1988
+ function Ss({
1989
1989
  execution: e,
1990
1990
  loading: n = !1,
1991
1991
  errorMessage: a,
@@ -2041,12 +2041,12 @@ function Oa({
2041
2041
  onOpenExecution: o
2042
2042
  }) {
2043
2043
  const l = e.rerunOf;
2044
- return /* @__PURE__ */ i(R, { children: [
2044
+ return /* @__PURE__ */ i(_, { children: [
2045
2045
  /* @__PURE__ */ i("div", { className: "w6w-execution-detail-head", children: [
2046
2046
  /* @__PURE__ */ i("div", { className: "w6w-execution-detail-title", children: [
2047
2047
  /* @__PURE__ */ t("h3", { className: "w6w-execution-detail-name", children: e.callableName }),
2048
2048
  /* @__PURE__ */ i("div", { className: "w6w-execution-detail-meta", children: [
2049
- /* @__PURE__ */ t(st, { state: e.status }),
2049
+ /* @__PURE__ */ t(rt, { state: e.status }),
2050
2050
  /* @__PURE__ */ t("span", { className: "w6w-execution-detail-kind w6w-muted w6w-small", children: Ra[e.kind] })
2051
2051
  ] })
2052
2052
  ] }),
@@ -2061,7 +2061,7 @@ function Oa({
2061
2061
  disabled: r,
2062
2062
  onClick: s,
2063
2063
  children: [
2064
- /* @__PURE__ */ t(Xe, { name: "sync", size: 14 }),
2064
+ /* @__PURE__ */ t(et, { name: "sync", size: 14 }),
2065
2065
  " ",
2066
2066
  r ? "Re-running…" : "Re-run"
2067
2067
  ]
@@ -2077,7 +2077,7 @@ function Oa({
2077
2077
  children: "Open in visual editor"
2078
2078
  }
2079
2079
  ),
2080
- n && /* @__PURE__ */ t(de, { label: "Close", "data-testid": "execution-detail-close", onClick: n, children: "×" })
2080
+ n && /* @__PURE__ */ t(he, { label: "Close", "data-testid": "execution-detail-close", onClick: n, children: "×" })
2081
2081
  ] })
2082
2082
  ] }),
2083
2083
  /* @__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 }) }),
@@ -2096,15 +2096,15 @@ function Oa({
2096
2096
  ) : /* @__PURE__ */ t("code", { children: l })
2097
2097
  ] }),
2098
2098
  /* @__PURE__ */ i("dl", { className: "w6w-execution-detail-timing", children: [
2099
- /* @__PURE__ */ t(He, { label: "Started", value: Re(e.startedAt) }),
2099
+ /* @__PURE__ */ t(Ge, { label: "Started", value: Le(e.startedAt) }),
2100
2100
  /* @__PURE__ */ t(
2101
- He,
2101
+ Ge,
2102
2102
  {
2103
2103
  label: "Finished",
2104
- value: e.finishedAt ? Re(e.finishedAt) : "—"
2104
+ value: e.finishedAt ? Le(e.finishedAt) : "—"
2105
2105
  }
2106
2106
  ),
2107
- /* @__PURE__ */ t(He, { label: "Duration", value: lt(e.durationMs) })
2107
+ /* @__PURE__ */ t(Ge, { label: "Duration", value: ot(e.durationMs) })
2108
2108
  ] }),
2109
2109
  e.steps !== void 0 && /* @__PURE__ */ i(
2110
2110
  "section",
@@ -2117,21 +2117,21 @@ function Oa({
2117
2117
  ]
2118
2118
  }
2119
2119
  ),
2120
- e.input !== void 0 && /* @__PURE__ */ t(ze, { title: "Input", testid: "execution-detail-input", value: e.input }),
2121
- e.output !== void 0 && /* @__PURE__ */ t(ze, { title: "Output", testid: "execution-detail-output", value: e.output }),
2122
- e.error != null && /* @__PURE__ */ t(ze, { title: "Error", testid: "execution-detail-error", value: e.error })
2120
+ e.input !== void 0 && /* @__PURE__ */ t(Xe, { title: "Input", testid: "execution-detail-input", value: e.input }),
2121
+ e.output !== void 0 && /* @__PURE__ */ t(Xe, { title: "Output", testid: "execution-detail-output", value: e.output }),
2122
+ e.error != null && /* @__PURE__ */ t(Xe, { title: "Error", testid: "execution-detail-error", value: e.error })
2123
2123
  ] });
2124
2124
  }
2125
- function He({ label: e, value: n }) {
2125
+ function Ge({ label: e, value: n }) {
2126
2126
  return /* @__PURE__ */ i("div", { className: "w6w-execution-detail-timing-item", children: [
2127
2127
  /* @__PURE__ */ t("dt", { children: e }),
2128
2128
  /* @__PURE__ */ t("dd", { children: n })
2129
2129
  ] });
2130
2130
  }
2131
- function ze({ title: e, testid: n, value: a }) {
2131
+ function Xe({ title: e, testid: n, value: a }) {
2132
2132
  return /* @__PURE__ */ i("section", { className: "w6w-execution-detail-section w6w-stack", "data-testid": n, children: [
2133
2133
  /* @__PURE__ */ t("strong", { className: "w6w-small", children: e }),
2134
- /* @__PURE__ */ t(Ae, { code: _a(a), language: "json" })
2134
+ /* @__PURE__ */ t(Ie, { code: _a(a), language: "json" })
2135
2135
  ] });
2136
2136
  }
2137
2137
  function Ia(e) {
@@ -2147,7 +2147,7 @@ function Ia(e) {
2147
2147
  });
2148
2148
  return n;
2149
2149
  }
2150
- function Ts(e) {
2150
+ function $s(e) {
2151
2151
  return e.attention === "now" || e.attention === "recent";
2152
2152
  }
2153
2153
  function Pa(e) {
@@ -2159,9 +2159,9 @@ function Pa(e) {
2159
2159
  function La(e) {
2160
2160
  return e.uptime.map((n) => ({ day: n.day, state: n.state }));
2161
2161
  }
2162
- const Lt = 3, Ma = 5;
2162
+ const Dt = 3, Ma = 5;
2163
2163
  function Da(e, n = {}) {
2164
- const a = n.compact ?? !1, { now: s, recent: r } = Pa(e), o = s.length + r.length, l = a ? s.slice(0, Lt) : s, c = a ? r.slice(0, Math.max(0, Lt - l.length)) : r, d = a ? e.slice(0, n.limit ?? Ma) : [...e];
2164
+ const a = n.compact ?? !1, { now: s, recent: r } = Pa(e), o = s.length + r.length, l = a ? s.slice(0, Dt) : s, c = a ? r.slice(0, Math.max(0, Dt - l.length)) : r, d = a ? e.slice(0, n.limit ?? Ma) : [...e];
2165
2165
  return {
2166
2166
  attentionCount: o,
2167
2167
  shownNow: l,
@@ -2171,15 +2171,15 @@ function Da(e, n = {}) {
2171
2171
  hiddenTableCount: e.length - d.length
2172
2172
  };
2173
2173
  }
2174
- const ke = 640, re = 340, B = { top: 16, right: 24, bottom: 40, left: 56 };
2175
- function Mt(e) {
2174
+ const Te = 640, ue = 340, K = { top: 16, right: 24, bottom: 40, left: 56 };
2175
+ function Ut(e) {
2176
2176
  if (e <= 0) return 1;
2177
2177
  const n = 10 ** Math.floor(Math.log10(e)), a = [1, 2, 5, 10];
2178
2178
  for (const s of a)
2179
2179
  if (e <= s * n) return s * n;
2180
2180
  return 10 * n;
2181
2181
  }
2182
- function Dt(e, n = 5) {
2182
+ function Ft(e, n = 5) {
2183
2183
  return Array.from({ length: n + 1 }, (a, s) => Math.round(e * s / n));
2184
2184
  }
2185
2185
  function Ua({
@@ -2190,49 +2190,49 @@ function Ua({
2190
2190
  const s = Ia(e);
2191
2191
  if (s.length === 0)
2192
2192
  return /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "No timed calls in this window yet." });
2193
- const r = Mt(Math.max(...s.map((m) => m.calls))), o = Mt(Math.max(...s.map((m) => m.p95Ms))), l = Math.max(1, ...s.map((m) => m.errorCount)), c = ke - B.left - B.right, d = re - B.top - B.bottom, u = (m) => B.left + m / r * c, f = (m) => B.top + m / o * d, g = (m) => 16 + m / l * 14, v = Dt(r), w = Dt(o), h = 18, y = B.top + d / 2;
2193
+ const r = Ut(Math.max(...s.map((w) => w.calls))), o = Ut(Math.max(...s.map((w) => w.p95Ms))), l = Math.max(1, ...s.map((w) => w.errorCount)), c = Te - K.left - K.right, d = ue - K.top - K.bottom, u = (w) => K.left + w / r * c, f = (w) => K.top + w / o * d, g = (w) => 16 + w / l * 14, v = Ft(r), m = Ft(o), h = 18, y = K.top + d / 2;
2194
2194
  return /* @__PURE__ */ i("div", { className: "w6w-rel-scatter", children: [
2195
2195
  /* @__PURE__ */ i(
2196
2196
  "svg",
2197
2197
  {
2198
- viewBox: `0 0 ${ke} ${re}`,
2199
- style: { aspectRatio: `${ke} / ${re}` },
2198
+ viewBox: `0 0 ${Te} ${ue}`,
2199
+ style: { aspectRatio: `${Te} / ${ue}` },
2200
2200
  role: "img",
2201
2201
  "aria-label": "API performance: calls versus p95 latency, one point per API",
2202
2202
  children: [
2203
2203
  /* @__PURE__ */ t(
2204
2204
  "rect",
2205
2205
  {
2206
- x: B.left,
2207
- y: B.top,
2206
+ x: K.left,
2207
+ y: K.top,
2208
2208
  width: c,
2209
2209
  height: d,
2210
2210
  className: "w6w-rel-scatter-plot-bg"
2211
2211
  }
2212
2212
  ),
2213
- w.map((m) => /* @__PURE__ */ i("g", { children: [
2213
+ m.map((w) => /* @__PURE__ */ i("g", { children: [
2214
2214
  /* @__PURE__ */ t(
2215
2215
  "line",
2216
2216
  {
2217
- x1: B.left,
2218
- x2: ke - B.right,
2219
- y1: f(m),
2220
- y2: f(m),
2217
+ x1: K.left,
2218
+ x2: Te - K.right,
2219
+ y1: f(w),
2220
+ y2: f(w),
2221
2221
  className: "w6w-rel-scatter-grid"
2222
2222
  }
2223
2223
  ),
2224
- /* @__PURE__ */ t("text", { x: B.left - 8, y: f(m), className: "w6w-rel-scatter-axis-label", textAnchor: "end", children: m })
2225
- ] }, `y-${m}`)),
2226
- v.map((m) => /* @__PURE__ */ t(
2224
+ /* @__PURE__ */ t("text", { x: K.left - 8, y: f(w), className: "w6w-rel-scatter-axis-label", textAnchor: "end", children: w })
2225
+ ] }, `y-${w}`)),
2226
+ v.map((w) => /* @__PURE__ */ t(
2227
2227
  "text",
2228
2228
  {
2229
- x: u(m),
2230
- y: re - B.bottom + 18,
2229
+ x: u(w),
2230
+ y: ue - K.bottom + 18,
2231
2231
  className: "w6w-rel-scatter-axis-label",
2232
2232
  textAnchor: "middle",
2233
- children: m
2233
+ children: w
2234
2234
  },
2235
- `x-${m}`
2235
+ `x-${w}`
2236
2236
  )),
2237
2237
  /* @__PURE__ */ t(
2238
2238
  "text",
@@ -2248,30 +2248,30 @@ function Ua({
2248
2248
  /* @__PURE__ */ t(
2249
2249
  "text",
2250
2250
  {
2251
- x: B.left + c / 2,
2252
- y: re - 4,
2251
+ x: K.left + c / 2,
2252
+ y: ue - 4,
2253
2253
  className: "w6w-rel-scatter-axis-title",
2254
2254
  textAnchor: "middle",
2255
2255
  children: "calls in this window"
2256
2256
  }
2257
2257
  ),
2258
- s.map((m) => {
2259
- const S = g(m.errorCount), x = u(m.calls), N = f(m.p95Ms), T = /* @__PURE__ */ i(R, { children: [
2258
+ s.map((w) => {
2259
+ const S = g(w.errorCount), x = u(w.calls), N = f(w.p95Ms), T = /* @__PURE__ */ i(_, { children: [
2260
2260
  /* @__PURE__ */ t(
2261
2261
  "circle",
2262
2262
  {
2263
2263
  cx: x,
2264
2264
  cy: N,
2265
2265
  r: S / 2 + 2.5,
2266
- className: `w6w-rel-scatter-ring w6w-rel-scatter-ring-${m.state}`,
2266
+ className: `w6w-rel-scatter-ring w6w-rel-scatter-ring-${w.state}`,
2267
2267
  children: /* @__PURE__ */ i("title", { children: [
2268
- m.displayName,
2268
+ w.displayName,
2269
2269
  " — ",
2270
- m.calls,
2270
+ w.calls,
2271
2271
  " calls, ",
2272
- m.p95Ms,
2272
+ w.p95Ms,
2273
2273
  " ms p95, ",
2274
- m.errorCount,
2274
+ w.errorCount,
2275
2275
  " errors"
2276
2276
  ] })
2277
2277
  }
@@ -2282,26 +2282,26 @@ function Ua({
2282
2282
  cx: x,
2283
2283
  cy: N,
2284
2284
  r: S / 2,
2285
- className: `w6w-rel-scatter-point w6w-rel-scatter-point-${m.state}`
2285
+ className: `w6w-rel-scatter-point w6w-rel-scatter-point-${w.state}`
2286
2286
  }
2287
2287
  )
2288
2288
  ] });
2289
2289
  return n ? /* @__PURE__ */ t(
2290
2290
  "a",
2291
2291
  {
2292
- href: n(m.appId),
2292
+ href: n(w.appId),
2293
2293
  className: "w6w-rel-scatter-point-link",
2294
- onClick: a ? (C) => a(m.appId, C) : void 0,
2294
+ onClick: a ? (C) => a(w.appId, C) : void 0,
2295
2295
  children: T
2296
2296
  },
2297
- m.appId
2297
+ w.appId
2298
2298
  ) : a ? /* @__PURE__ */ t(
2299
2299
  "g",
2300
2300
  {
2301
2301
  role: "button",
2302
2302
  tabIndex: 0,
2303
2303
  className: "w6w-rel-scatter-point-link",
2304
- onClick: (C) => a(m.appId, C),
2304
+ onClick: (C) => a(w.appId, C),
2305
2305
  onKeyDown: (C) => {
2306
2306
  (C.key === "Enter" || C.key === " ") && (C.preventDefault(), C.currentTarget.dispatchEvent(
2307
2307
  new MouseEvent("click", { bubbles: !0 })
@@ -2309,8 +2309,8 @@ function Ua({
2309
2309
  },
2310
2310
  children: T
2311
2311
  },
2312
- m.appId
2313
- ) : /* @__PURE__ */ t("g", { children: T }, m.appId);
2312
+ w.appId
2313
+ ) : /* @__PURE__ */ t("g", { children: T }, w.appId);
2314
2314
  })
2315
2315
  ]
2316
2316
  }
@@ -2318,11 +2318,11 @@ function Ua({
2318
2318
  /* @__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." })
2319
2319
  ] });
2320
2320
  }
2321
- function Ut(e) {
2321
+ function Bt(e) {
2322
2322
  const n = new Date(e);
2323
2323
  return Number.isNaN(n.getTime()) ? e : n.toLocaleDateString(void 0, { month: "short", day: "numeric" });
2324
2324
  }
2325
- function Gt({
2325
+ function Zt({
2326
2326
  appId: e,
2327
2327
  className: n,
2328
2328
  title: a,
@@ -2341,24 +2341,24 @@ function Gt({
2341
2341
  }
2342
2342
  ) : r ? /* @__PURE__ */ t("button", { type: "button", className: n, title: a, onClick: (l) => r(e, l), children: o }) : /* @__PURE__ */ t("div", { className: n, title: a, children: o });
2343
2343
  }
2344
- function Xt({ service: e }) {
2344
+ function Qt({ service: e }) {
2345
2345
  return /* @__PURE__ */ i("span", { className: "w6w-rel-signal", children: [
2346
- /* @__PURE__ */ t(nt, { state: e.state }),
2346
+ /* @__PURE__ */ t(lt, { state: e.state }),
2347
2347
  e.ongoingOutageId && /* @__PURE__ */ t("span", { className: "w6w-rel-tag", children: "outage open" }),
2348
2348
  e.calls === 0 && /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "no calls" })
2349
2349
  ] });
2350
2350
  }
2351
- function Zt({ vendor: e }) {
2351
+ function en({ vendor: e }) {
2352
2352
  if (!e) return /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "not published" });
2353
2353
  const n = e.state === "unknown";
2354
2354
  return /* @__PURE__ */ i("span", { className: "w6w-rel-signal", title: e.message ?? void 0, children: [
2355
- /* @__PURE__ */ t(nt, { state: e.state, label: n ? "Unavailable" : void 0 }),
2355
+ /* @__PURE__ */ t(lt, { state: e.state, label: n ? "Unavailable" : void 0 }),
2356
2356
  !n && e.message && /* @__PURE__ */ t("span", { className: "w6w-rel-vendor-msg w6w-small", children: e.message })
2357
2357
  ] });
2358
2358
  }
2359
2359
  function Fa({ service: e, getHref: n, onOpen: a }) {
2360
2360
  return /* @__PURE__ */ i(
2361
- Gt,
2361
+ Zt,
2362
2362
  {
2363
2363
  appId: e.appId,
2364
2364
  className: "w6w-rel-issue-card",
@@ -2368,7 +2368,7 @@ function Fa({ service: e, getHref: n, onOpen: a }) {
2368
2368
  children: [
2369
2369
  /* @__PURE__ */ i("span", { className: "w6w-rel-issue-head", children: [
2370
2370
  /* @__PURE__ */ t(
2371
- Oe,
2371
+ De,
2372
2372
  {
2373
2373
  src: e.iconSrc,
2374
2374
  srcDark: e.iconSrcDark,
@@ -2385,11 +2385,11 @@ function Fa({ service: e, getHref: n, onOpen: a }) {
2385
2385
  /* @__PURE__ */ i("span", { className: "w6w-rel-issue-signals", children: [
2386
2386
  /* @__PURE__ */ i("span", { className: "w6w-rel-issue-signal", children: [
2387
2387
  /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "w6w exec" }),
2388
- /* @__PURE__ */ t(Xt, { service: e })
2388
+ /* @__PURE__ */ t(Qt, { service: e })
2389
2389
  ] }),
2390
2390
  /* @__PURE__ */ i("span", { className: "w6w-rel-issue-signal", children: [
2391
2391
  /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: "API status" }),
2392
- /* @__PURE__ */ t(Zt, { vendor: e.vendorStatus })
2392
+ /* @__PURE__ */ t(en, { vendor: e.vendorStatus })
2393
2393
  ] })
2394
2394
  ] })
2395
2395
  ]
@@ -2408,9 +2408,9 @@ function Ba({
2408
2408
  className: `w6w-rel-tr${e.attention !== "none" ? " w6w-rel-attention" : ""}`,
2409
2409
  "data-attention": e.attention === "none" ? void 0 : e.attention,
2410
2410
  children: [
2411
- /* @__PURE__ */ t("td", { className: "w6w-rel-td-service", children: /* @__PURE__ */ i(Gt, { appId: e.appId, className: "w6w-rel-open", getHref: n, onOpen: a, children: [
2411
+ /* @__PURE__ */ t("td", { className: "w6w-rel-td-service", children: /* @__PURE__ */ i(Zt, { appId: e.appId, className: "w6w-rel-open", getHref: n, onOpen: a, children: [
2412
2412
  /* @__PURE__ */ t(
2413
- Oe,
2413
+ De,
2414
2414
  {
2415
2415
  src: e.iconSrc,
2416
2416
  srcDark: e.iconSrcDark,
@@ -2427,17 +2427,17 @@ function Ba({
2427
2427
  /* @__PURE__ */ i("td", { className: "w6w-rel-td-status", children: [
2428
2428
  /* @__PURE__ */ i("span", { className: "w6w-rel-status-row", children: [
2429
2429
  /* @__PURE__ */ t("span", { className: "w6w-rel-status-label w6w-muted w6w-small", children: "Ops" }),
2430
- /* @__PURE__ */ t(Xt, { service: e })
2430
+ /* @__PURE__ */ t(Qt, { service: e })
2431
2431
  ] }),
2432
2432
  /* @__PURE__ */ i("span", { className: "w6w-rel-status-row", children: [
2433
2433
  /* @__PURE__ */ t("span", { className: "w6w-rel-status-label w6w-muted w6w-small", children: "API" }),
2434
- /* @__PURE__ */ t(Zt, { vendor: e.vendorStatus })
2434
+ /* @__PURE__ */ t(en, { vendor: e.vendorStatus })
2435
2435
  ] })
2436
2436
  ] }),
2437
2437
  /* @__PURE__ */ t("td", { className: "w6w-rel-td-uptime", children: s ? (
2438
2438
  // A zero-call window is one identical hatched strip — the note says it better.
2439
2439
  /* @__PURE__ */ t("span", { className: "w6w-rel-idle-note", children: "No calls in this window" })
2440
- ) : /* @__PURE__ */ i(R, { children: [
2440
+ ) : /* @__PURE__ */ i(_, { children: [
2441
2441
  /* @__PURE__ */ t(
2442
2442
  Qn,
2443
2443
  {
@@ -2455,7 +2455,7 @@ function Ba({
2455
2455
  }
2456
2456
  );
2457
2457
  }
2458
- function As({
2458
+ function Ts({
2459
2459
  services: e,
2460
2460
  window: n,
2461
2461
  days: a,
@@ -2468,22 +2468,22 @@ function As({
2468
2468
  onShowAll: u,
2469
2469
  slots: f
2470
2470
  }) {
2471
- const g = a ?? (n == null ? void 0 : n.days) ?? 30, v = e.length > 0 && e.every((E) => E.calls > 0 && E.state === "ok"), {
2472
- attentionCount: w,
2471
+ const g = a ?? (n == null ? void 0 : n.days) ?? 30, v = e.length > 0 && e.every((R) => R.calls > 0 && R.state === "ok"), {
2472
+ attentionCount: m,
2473
2473
  shownNow: h,
2474
2474
  shownRecent: y,
2475
- hiddenAttentionCount: m,
2475
+ hiddenAttentionCount: w,
2476
2476
  shownTable: S,
2477
2477
  hiddenTableCount: x
2478
- } = Da(e, { compact: s, limit: o }), N = r ?? !s, T = d !== void 0 || u !== void 0, C = (E) => {
2479
- const P = E.startsWith("Show") ? "w6w-muted w6w-small" : void 0;
2480
- return d !== void 0 ? /* @__PURE__ */ t("a", { href: d, className: P, onClick: u, children: E }) : u ? /* @__PURE__ */ t(
2478
+ } = Da(e, { compact: s, limit: o }), N = r ?? !s, T = d !== void 0 || u !== void 0, C = (R) => {
2479
+ const I = R.startsWith("Show") ? "w6w-muted w6w-small" : void 0;
2480
+ return d !== void 0 ? /* @__PURE__ */ t("a", { href: d, className: I, onClick: u, children: R }) : u ? /* @__PURE__ */ t(
2481
2481
  "button",
2482
2482
  {
2483
2483
  type: "button",
2484
- className: `w6w-rel-show-all${P ? ` ${P}` : ""}`,
2484
+ className: `w6w-rel-show-all${I ? ` ${I}` : ""}`,
2485
2485
  onClick: u,
2486
- children: E
2486
+ children: R
2487
2487
  }
2488
2488
  ) : null;
2489
2489
  };
@@ -2493,9 +2493,9 @@ function As({
2493
2493
  (f == null ? void 0 : f.header) ?? "Service reliability",
2494
2494
  " ",
2495
2495
  n && /* @__PURE__ */ i("span", { className: "w6w-muted w6w-small", children: [
2496
- Ut(n.from),
2496
+ Bt(n.from),
2497
2497
  " – ",
2498
- Ut(n.to),
2498
+ Bt(n.to),
2499
2499
  " · ",
2500
2500
  n.days,
2501
2501
  " days"
@@ -2513,30 +2513,30 @@ function As({
2513
2513
  g,
2514
2514
  " days came back",
2515
2515
  " ",
2516
- /* @__PURE__ */ t(nt, { state: "ok" }),
2516
+ /* @__PURE__ */ t(lt, { state: "ok" }),
2517
2517
  " — no degraded stretches, no outages."
2518
2518
  ] })
2519
2519
  ] }),
2520
2520
  e.length === 0 && ((f == null ? void 0 : f.empty) ?? /* @__PURE__ */ t("div", { className: s ? 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." }) })),
2521
- e.length > 0 && /* @__PURE__ */ i(R, { children: [
2522
- w > 0 && /* @__PURE__ */ i("div", { className: "w6w-rel-group", children: [
2521
+ e.length > 0 && /* @__PURE__ */ i(_, { children: [
2522
+ m > 0 && /* @__PURE__ */ i("div", { className: "w6w-rel-group", children: [
2523
2523
  /* @__PURE__ */ i("h4", { className: "w6w-rel-group-head", children: [
2524
2524
  "Needs attention",
2525
2525
  " ",
2526
2526
  /* @__PURE__ */ i("span", { className: "w6w-muted w6w-small", children: [
2527
2527
  h.length + y.length,
2528
2528
  " of ",
2529
- w
2529
+ m
2530
2530
  ] })
2531
2531
  ] }),
2532
- /* @__PURE__ */ t("div", { className: "w6w-rel-issues", children: [...h, ...y].map((E) => /* @__PURE__ */ t(Fa, { service: E, getHref: l, onOpen: c }, E.appId)) }),
2533
- m > 0 && /* @__PURE__ */ i("p", { className: "w6w-muted w6w-small w6w-rel-more-note", children: [
2534
- m,
2532
+ /* @__PURE__ */ t("div", { className: "w6w-rel-issues", children: [...h, ...y].map((R) => /* @__PURE__ */ t(Fa, { service: R, getHref: l, onOpen: c }, R.appId)) }),
2533
+ w > 0 && /* @__PURE__ */ i("p", { className: "w6w-muted w6w-small w6w-rel-more-note", children: [
2534
+ w,
2535
2535
  " more ",
2536
- m === 1 ? "needs" : "need",
2536
+ w === 1 ? "needs" : "need",
2537
2537
  " ",
2538
2538
  "attention",
2539
- T && /* @__PURE__ */ i(R, { children: [
2539
+ T && /* @__PURE__ */ i(_, { children: [
2540
2540
  " — ",
2541
2541
  C("view all →")
2542
2542
  ] })
@@ -2563,20 +2563,20 @@ function As({
2563
2563
  ] }),
2564
2564
  /* @__PURE__ */ t("th", { children: "Latency" })
2565
2565
  ] }) }),
2566
- /* @__PURE__ */ t("tbody", { children: S.map((E) => /* @__PURE__ */ t(
2566
+ /* @__PURE__ */ t("tbody", { children: S.map((R) => /* @__PURE__ */ t(
2567
2567
  Ba,
2568
2568
  {
2569
- service: E,
2569
+ service: R,
2570
2570
  getHref: l,
2571
2571
  onOpen: c
2572
2572
  },
2573
- E.appId
2573
+ R.appId
2574
2574
  )) })
2575
2575
  ] }) }),
2576
2576
  x > 0 && /* @__PURE__ */ i("p", { className: "w6w-muted w6w-small w6w-rel-more-note", children: [
2577
2577
  x,
2578
2578
  " more",
2579
- T && /* @__PURE__ */ i(R, { children: [
2579
+ T && /* @__PURE__ */ i(_, { children: [
2580
2580
  " — ",
2581
2581
  C("view all →")
2582
2582
  ] })
@@ -2586,44 +2586,7 @@ function As({
2586
2586
  ] })
2587
2587
  ] });
2588
2588
  }
2589
- function Ka(e, n) {
2590
- return e.render ? e.render(n) : String(n[e.key] ?? "");
2591
- }
2592
- function he(e) {
2593
- const { columns: n, rows: a, rowKey: s, onRowClick: r, getRowHref: o, empty: l, loading: c, className: d, testId: u } = e;
2594
- return a.length === 0 && !c && l !== void 0 && l !== null ? /* @__PURE__ */ t(R, { children: l }) : /* @__PURE__ */ t("div", { className: "w6w-data-table-frame", children: /* @__PURE__ */ i(
2595
- "table",
2596
- {
2597
- className: d ? `w6w-data-table ${d}` : "w6w-data-table",
2598
- "data-testid": u,
2599
- "aria-busy": c ? !0 : void 0,
2600
- children: [
2601
- /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: n.map((f) => /* @__PURE__ */ t("th", { style: { width: f.width, textAlign: f.align }, scope: "col", children: f.header }, f.key)) }) }),
2602
- /* @__PURE__ */ t("tbody", { children: a.map((f) => {
2603
- var v;
2604
- const g = o == null ? void 0 : o(f);
2605
- return (
2606
- // 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.
2607
- /* @__PURE__ */ t(
2608
- "tr",
2609
- {
2610
- "data-testid": (v = e.rowTestId) == null ? void 0 : v.call(e, f),
2611
- className: r ? "w6w-data-table-row-clickable" : void 0,
2612
- onClick: r ? (w) => r(f, w) : void 0,
2613
- children: n.map((w) => {
2614
- const h = Ka(w, f);
2615
- return /* @__PURE__ */ t("td", { style: { textAlign: w.align }, children: g !== void 0 && w.link !== !1 ? /* @__PURE__ */ t("a", { className: "w6w-data-table-link", href: g, children: h }) : h }, w.key);
2616
- })
2617
- },
2618
- s(f)
2619
- )
2620
- );
2621
- }) })
2622
- ]
2623
- }
2624
- ) });
2625
- }
2626
- function Es({
2589
+ function As({
2627
2590
  rows: e,
2628
2591
  title: n,
2629
2592
  description: a,
@@ -2637,23 +2600,23 @@ function Es({
2637
2600
  creating: f,
2638
2601
  onImport: g,
2639
2602
  onOpen: v,
2640
- getHref: w,
2603
+ getHref: m,
2641
2604
  showArchived: h,
2642
2605
  onShowArchivedChange: y,
2643
- slots: m
2606
+ slots: w
2644
2607
  }) {
2645
- const [S, x] = k(!1), N = h !== void 0, T = N ? h : S, C = T ? e : e.filter(($) => !$.archived), E = v !== void 0 || w !== void 0, P = ($) => {
2608
+ const [S, x] = b(!1), N = h !== void 0, T = N ? h : S, C = T ? e : e.filter(($) => !$.archived), R = v !== void 0 || m !== void 0, I = ($) => {
2646
2609
  N || x($), y == null || y($);
2647
- }, K = [
2610
+ }, j = [
2648
2611
  {
2649
2612
  key: "main",
2650
2613
  header: "Name",
2651
2614
  render: ($) => {
2652
- const I = /* @__PURE__ */ i("span", { className: "w6w-callable-list-main", title: E ? o : void 0, children: [
2615
+ const W = /* @__PURE__ */ i("span", { className: "w6w-callable-list-main", title: R ? o : void 0, children: [
2653
2616
  /* @__PURE__ */ t("span", { children: $.title }),
2654
2617
  $.description != null && /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small w6w-callable-list-row-desc", children: $.description })
2655
2618
  ] });
2656
- return v && !w ? /* @__PURE__ */ t("button", { type: "button", className: "w6w-callable-list-open", children: I }) : I;
2619
+ return v && !m ? /* @__PURE__ */ t("button", { type: "button", className: "w6w-callable-list-open", children: W }) : W;
2657
2620
  }
2658
2621
  },
2659
2622
  {
@@ -2673,7 +2636,7 @@ function Es({
2673
2636
  return /* @__PURE__ */ i("section", { className: "w6w-callable-list", children: [
2674
2637
  /* @__PURE__ */ i("div", { className: "w6w-callable-list-head", children: [
2675
2638
  /* @__PURE__ */ i("div", { className: "w6w-callable-list-heading", children: [
2676
- (m == null ? void 0 : m.header) ?? /* @__PURE__ */ i(R, { children: [
2639
+ (w == null ? void 0 : w.header) ?? /* @__PURE__ */ i(_, { children: [
2677
2640
  /* @__PURE__ */ t("h2", { className: "w6w-callable-list-title", children: n }),
2678
2641
  a != null && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small w6w-callable-list-description", children: a })
2679
2642
  ] }),
@@ -2684,14 +2647,14 @@ function Es({
2684
2647
  type: "checkbox",
2685
2648
  checked: T,
2686
2649
  "data-testid": l == null ? void 0 : l.showArchived,
2687
- onChange: ($) => P($.target.checked)
2650
+ onChange: ($) => I($.target.checked)
2688
2651
  }
2689
2652
  ),
2690
2653
  "Show archived"
2691
2654
  ] })
2692
2655
  ] }),
2693
2656
  /* @__PURE__ */ i("div", { className: "w6w-callable-list-actions", children: [
2694
- m == null ? void 0 : m.actions,
2657
+ w == null ? void 0 : w.actions,
2695
2658
  g && /* @__PURE__ */ t(
2696
2659
  "button",
2697
2660
  {
@@ -2709,7 +2672,7 @@ function Es({
2709
2672
  /* @__PURE__ */ i("div", { className: "w6w-callable-list-body", children: [
2710
2673
  c && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
2711
2674
  C.length === 0 && !c ? O ? /* @__PURE__ */ t(
2712
- Te,
2675
+ Oe,
2713
2676
  {
2714
2677
  testId: "w6w-callable-list-empty",
2715
2678
  action: /* @__PURE__ */ t(
@@ -2717,28 +2680,28 @@ function Es({
2717
2680
  {
2718
2681
  type: "button",
2719
2682
  className: "w6w-btn w6w-btn-ghost",
2720
- onClick: () => P(!0),
2683
+ onClick: () => I(!0),
2721
2684
  children: "Show archived"
2722
2685
  }
2723
2686
  ),
2724
2687
  children: e.length === 1 ? "The only item is archived." : `All ${e.length} items are archived.`
2725
2688
  }
2726
- ) : /* @__PURE__ */ t(Te, { testId: "w6w-callable-list-empty", children: (m == null ? void 0 : m.empty) ?? s }) : /* @__PURE__ */ t(
2727
- he,
2689
+ ) : /* @__PURE__ */ t(Oe, { testId: "w6w-callable-list-empty", children: (w == null ? void 0 : w.empty) ?? s }) : /* @__PURE__ */ t(
2690
+ pe,
2728
2691
  {
2729
- columns: K,
2692
+ columns: j,
2730
2693
  rows: C,
2731
2694
  rowKey: ($) => $.id,
2732
2695
  className: "w6w-data-table-rows",
2733
2696
  loading: c,
2734
- getRowHref: w ? ($) => w($.id) : void 0,
2735
- onRowClick: v ? ($, I) => v($.id, I) : void 0
2697
+ getRowHref: m ? ($) => m($.id) : void 0,
2698
+ onRowClick: v ? ($, W) => v($.id, W) : void 0
2736
2699
  }
2737
2700
  )
2738
2701
  ] })
2739
2702
  ] });
2740
2703
  }
2741
- function Rs({
2704
+ function Es({
2742
2705
  connections: e,
2743
2706
  appsById: n,
2744
2707
  loading: a,
@@ -2754,40 +2717,40 @@ function Rs({
2754
2717
  {
2755
2718
  key: "name",
2756
2719
  header: "Name",
2757
- render: (w) => {
2758
- const h = Pn(w, f), y = w.displayName || w.id;
2720
+ render: (m) => {
2721
+ const h = Pn(m, f), y = m.displayName || m.id;
2759
2722
  return /* @__PURE__ */ i("span", { className: "w6w-connection-cell-name", children: [
2760
2723
  /* @__PURE__ */ t(
2761
- Oe,
2724
+ De,
2762
2725
  {
2763
2726
  src: h == null ? void 0 : h.iconSvg,
2764
2727
  srcDark: h == null ? void 0 : h.iconSvgDark,
2765
2728
  brandColor: h == null ? void 0 : h.brandColor,
2766
- name: (h == null ? void 0 : h.displayName) ?? w.appId
2729
+ name: (h == null ? void 0 : h.displayName) ?? m.appId
2767
2730
  }
2768
2731
  ),
2769
2732
  /* @__PURE__ */ t("strong", { className: "w6w-connection-name", title: y, children: y }),
2770
2733
  " ",
2771
- /* @__PURE__ */ t("span", { className: "w6w-muted", children: (h == null ? void 0 : h.displayName) ?? w.appId })
2734
+ /* @__PURE__ */ t("span", { className: "w6w-muted", children: (h == null ? void 0 : h.displayName) ?? m.appId })
2772
2735
  ] });
2773
2736
  }
2774
2737
  },
2775
2738
  {
2776
2739
  key: "status",
2777
2740
  header: "Status",
2778
- render: (w) => /* @__PURE__ */ i(R, { children: [
2741
+ render: (m) => /* @__PURE__ */ i(_, { children: [
2779
2742
  "auth ",
2780
- /* @__PURE__ */ t("code", { children: w.authKey }),
2743
+ /* @__PURE__ */ t("code", { children: m.authKey }),
2781
2744
  " ·",
2782
2745
  " ",
2783
2746
  /* @__PURE__ */ t(
2784
2747
  "span",
2785
2748
  {
2786
- className: `w6w-connection-tag${w.state === "connected" ? "" : " w6w-connection-tag-warn"}`,
2787
- children: w.state
2749
+ className: `w6w-connection-tag${m.state === "connected" ? "" : " w6w-connection-tag-warn"}`,
2750
+ children: m.state
2788
2751
  }
2789
2752
  ),
2790
- w.lastTestOk === !1 && /* @__PURE__ */ t(
2753
+ m.lastTestOk === !1 && /* @__PURE__ */ t(
2791
2754
  "span",
2792
2755
  {
2793
2756
  className: "w6w-connection-tag w6w-connection-tag-danger",
@@ -2803,25 +2766,25 @@ function Rs({
2803
2766
  header: "",
2804
2767
  align: "right",
2805
2768
  link: !1,
2806
- render: (w) => w.builtIn === !0 ? null : (
2769
+ render: (m) => m.builtIn === !0 ? null : (
2807
2770
  // Clicks here must not reach the row's onOpen.
2808
2771
  // biome-ignore lint/a11y/useKeyWithClickEvents: propagation guard only; the buttons inside are the controls.
2809
2772
  /* @__PURE__ */ i("div", { className: "w6w-connection-row-actions", onClick: (h) => h.stopPropagation(), children: [
2810
2773
  l && /* @__PURE__ */ t(
2811
- Ht,
2774
+ Yt,
2812
2775
  {
2813
2776
  label: "Edit",
2814
- onClick: () => l(w),
2815
- "data-testid": `connection-edit-${w.id}`
2777
+ onClick: () => l(m),
2778
+ "data-testid": `connection-edit-${m.id}`
2816
2779
  }
2817
2780
  ),
2818
2781
  c && /* @__PURE__ */ t(
2819
- ue,
2782
+ fe,
2820
2783
  {
2821
2784
  label: "Delete",
2822
- onClick: () => c(w),
2785
+ onClick: () => c(m),
2823
2786
  disabled: d,
2824
- "data-testid": `connection-delete-${w.id}`
2787
+ "data-testid": `connection-delete-${m.id}`
2825
2788
  }
2826
2789
  )
2827
2790
  ] })
@@ -2833,109 +2796,111 @@ function Rs({
2833
2796
  ] }),
2834
2797
  s && /* @__PURE__ */ t("div", { className: "w6w-error", children: s }),
2835
2798
  a && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
2836
- e.length === 0 && !a ? /* @__PURE__ */ t(Te, { testId: "w6w-connection-list-empty", children: (u == null ? void 0 : u.empty) ?? "No connections yet." }) : /* @__PURE__ */ t(
2837
- he,
2799
+ e.length === 0 && !a ? /* @__PURE__ */ t(Oe, { testId: "w6w-connection-list-empty", children: (u == null ? void 0 : u.empty) ?? "No connections yet." }) : /* @__PURE__ */ t(
2800
+ pe,
2838
2801
  {
2839
2802
  columns: v,
2840
2803
  rows: e,
2841
- rowKey: (w) => w.id,
2804
+ rowKey: (m) => m.id,
2842
2805
  loading: a,
2843
- getRowHref: o ? (w) => w.builtIn === !0 ? void 0 : o(w.id) : void 0,
2844
- onRowClick: r ? (w, h) => w.builtIn === !0 ? void 0 : r(w.id, h) : void 0
2806
+ getRowHref: o ? (m) => m.builtIn === !0 ? void 0 : o(m.id) : void 0,
2807
+ onRowClick: r ? (m, h) => m.builtIn === !0 ? void 0 : r(m.id, h) : void 0
2845
2808
  }
2846
2809
  )
2847
2810
  ] });
2848
2811
  }
2849
- function _s({ connection: e, onClose: n, onSaved: a }) {
2850
- const s = jt(), r = s.updateConnection, o = e.builtIn === !0, l = !o && typeof r == "function", [c, d] = k(e.displayName ?? ""), [u, f] = k(e.authKey), [g, v] = k({}), [w, h] = k(null), [y, m] = k(null), [S, x] = k(!1), [N, T] = k({}), [C, E] = k(null), [P, K] = k(null), [O, $] = k(null);
2851
- G(() => {
2812
+ function Rs({ connection: e, onClose: n, onSaved: a }) {
2813
+ const s = Wt(), r = s.updateConnection, o = e.builtIn === !0, l = !o && typeof r == "function", [c, d] = b(e.displayName ?? ""), [u, f] = b(e.authKey), [g, v] = b({}), [m, h] = b(null), [y, w] = b(null), [S, x] = b(!1), [N, T] = b({}), [C, R] = b(null), [I, j] = b(null), [O, $] = b(null), [W, re] = b(null);
2814
+ Q(() => {
2852
2815
  if (!l) return;
2853
- let b = !1;
2854
- return h(null), s.getAppAuth(e.appId).then((L) => !b && h(L)).catch((L) => !b && m(L.message)), () => {
2855
- b = !0;
2816
+ let k = !1;
2817
+ return h(null), s.getAppAuth(e.appId).then((A) => !k && h(A)).catch((A) => !k && w(A.message)), () => {
2818
+ k = !0;
2856
2819
  };
2857
2820
  }, [s, l, e.appId]);
2858
- const I = w == null ? void 0 : w.find((b) => b.key === u), V = u !== e.authKey, q = (w == null ? void 0 : w.filter(
2859
- (b) => b.key === e.authKey || b.available !== !1 && !b.autoSatisfied && ["apiKey", "bearer", "basic", "custom"].includes(b.type)
2860
- )) ?? [], Z = (I == null ? void 0 : I.type) === "oauth2", J = Z ? [] : (I == null ? void 0 : I.fields) ?? [], W = e.credentialId, j = !V && !!W && typeof s.rotateCredential == "function" && (P !== null ? !P.startsWith("legacy:") : (I == null ? void 0 : I.type) === "serviceAccount") && !Z, Q = j && (I != null && I.serviceAccount) ? Ln(I.serviceAccount) : [];
2861
- G(() => {
2862
- if (!l || V || Z || !W || typeof s.getCredential != "function")
2821
+ const P = m == null ? void 0 : m.find((k) => k.key === u), q = u !== e.authKey, te = (m == null ? void 0 : m.filter(
2822
+ (k) => k.key === e.authKey || k.available !== !1 && !k.autoSatisfied && ["apiKey", "bearer", "basic", "custom"].includes(k.type)
2823
+ )) ?? [], Y = (P == null ? void 0 : P.type) === "oauth2", D = Y ? [] : (P == null ? void 0 : P.fields) ?? [], J = e.credentialId, oe = !q && !!J && typeof s.rotateCredential == "function" && (I !== null ? !I.startsWith("legacy:") : (P == null ? void 0 : P.type) === "serviceAccount") && O !== !0 && !Y, H = oe && O === !1 && P !== void 0 && !P.serviceAccount, z = oe && !H, ce = !q && !Y && !!J && typeof s.getCredential == "function" && O === null, V = z && (P != null && P.serviceAccount) ? Ln(P.serviceAccount) : [];
2824
+ Q(() => {
2825
+ if (!l || q || Y || !J || typeof s.getCredential != "function")
2863
2826
  return;
2864
- let b = !1;
2865
- return s.getCredential(W).then((L) => {
2866
- b || (E(L.connectionCount), K(L.contract));
2827
+ let k = !1;
2828
+ return s.getCredential(J).then((A) => {
2829
+ k || (R(A.connectionCount), j(A.contract), $(A.private === !0));
2867
2830
  }).catch(() => {
2868
2831
  }), () => {
2869
- b = !0;
2832
+ k = !0;
2870
2833
  };
2871
- }, [s, l, V, Z, W]);
2872
- function Ie() {
2873
- if (j) {
2874
- const _ = {};
2875
- c !== (e.displayName ?? "") && (_.displayName = c);
2876
- const D = Un(Q, N);
2877
- return D && (_.binding = D), _.displayName === void 0 && _.binding === void 0 ? null : _;
2834
+ }, [s, l, q, Y, J]);
2835
+ function ve() {
2836
+ if (H)
2837
+ return c !== (e.displayName ?? "") ? { displayName: c } : null;
2838
+ if (z) {
2839
+ const L = {};
2840
+ c !== (e.displayName ?? "") && (L.displayName = c);
2841
+ const F = Un(V, N);
2842
+ return F && (L.binding = F), L.displayName === void 0 && L.binding === void 0 ? null : L;
2878
2843
  }
2879
- const b = {};
2880
- for (const _ of J) {
2881
- const D = g[_.key];
2882
- D !== void 0 && D !== "" && (b[_.key] = D);
2844
+ const k = {};
2845
+ for (const L of H ? [] : D) {
2846
+ const F = g[L.key];
2847
+ F !== void 0 && F !== "" && (k[L.key] = F);
2883
2848
  }
2884
- const L = {};
2885
- return V && (L.authKey = u, L.credential = b), c !== (e.displayName ?? "") && (L.displayName = c), Object.keys(b).length > 0 && (L.credential = b), L.displayName === void 0 && L.credential === void 0 ? null : L;
2849
+ const A = {};
2850
+ return q && (A.authKey = u, A.credential = k), c !== (e.displayName ?? "") && (A.displayName = c), Object.keys(k).length > 0 && (A.credential = k), A.displayName === void 0 && A.credential === void 0 ? null : A;
2886
2851
  }
2887
- async function ae() {
2852
+ async function U() {
2888
2853
  if (!l || !r || S) return;
2889
- m(null);
2890
- const b = Ie(), L = Object.fromEntries(
2891
- J.filter((M) => g[M.key] !== void 0 && g[M.key] !== "").map((M) => [M.key, g[M.key]])
2892
- ), _ = Object.keys(L).length > 0;
2893
- if (!b && !_) {
2894
- m("Nothing to update — change the name or a credential or binding field.");
2854
+ w(null);
2855
+ const k = ve(), A = Object.fromEntries(
2856
+ (H ? [] : D).filter((M) => g[M.key] !== void 0 && g[M.key] !== "").map((M) => [M.key, g[M.key]])
2857
+ ), L = Object.keys(A).length > 0;
2858
+ if (!k && !L) {
2859
+ w("Nothing to update — change the name or a credential or binding field.");
2895
2860
  return;
2896
2861
  }
2897
- if (V || j && _) {
2898
- const M = J.filter((U) => U.required && !(U.key in L));
2862
+ if (q || z && L) {
2863
+ const M = D.filter((le) => le.required && !(le.key in A));
2899
2864
  if (M.length > 0) {
2900
- m(`Enter the full new credential: ${M.map((U) => U.label).join(", ")}.`);
2865
+ w(`Enter the full new credential: ${M.map((le) => le.label).join(", ")}.`);
2901
2866
  return;
2902
2867
  }
2903
2868
  }
2904
- const D = Dn(J, L);
2905
- if ("error" in D) {
2906
- m(D.error);
2869
+ const F = Dn(D, A);
2870
+ if ("error" in F) {
2871
+ w(F.error);
2907
2872
  return;
2908
2873
  }
2909
2874
  x(!0);
2910
- let se = !1;
2875
+ let ae = !1;
2911
2876
  try {
2912
- j && _ && W && s.rotateCredential ? (await s.rotateCredential(W, { source: D.values }), se = !0, v({}), $(null)) : b != null && b.credential && (b.credential = D.values);
2913
- const M = b ? await r.call(s, e.id, b) : e;
2877
+ z && L && J && s.rotateCredential ? (await s.rotateCredential(J, { source: F.values }), ae = !0, v({}), re(null)) : k != null && k.credential && (k.credential = F.values);
2878
+ const M = k ? await r.call(s, e.id, k) : e;
2914
2879
  v({}), a(M);
2915
2880
  } catch (M) {
2916
- m(
2917
- se ? `The credential was saved, but the other changes failed. Click Save to retry them. ${M.message}` : M.message
2881
+ w(
2882
+ ae ? `The credential was saved, but the other changes failed. Click Save to retry them. ${M.message}` : M.message
2918
2883
  );
2919
2884
  } finally {
2920
2885
  x(!1);
2921
2886
  }
2922
2887
  }
2923
- async function Pe() {
2924
- if (!(!W || !s.testCredential)) {
2925
- m(null);
2888
+ async function Ne() {
2889
+ if (!(!J || !s.testCredential)) {
2890
+ w(null);
2926
2891
  try {
2927
- $(await s.testCredential(W));
2928
- } catch (b) {
2929
- m(b.message);
2892
+ re(await s.testCredential(J));
2893
+ } catch (k) {
2894
+ w(k.message);
2930
2895
  }
2931
2896
  }
2932
2897
  }
2933
- const ee = Mn(ae, { enabled: l && !S });
2934
- return /* @__PURE__ */ t($e, { title: "Edit connection", onClose: n, children: /* @__PURE__ */ i("div", { className: "w6w-stepconfig", children: [
2898
+ const ne = Mn(U, { enabled: l && !S });
2899
+ return /* @__PURE__ */ t(_e, { title: "Edit connection", onClose: n, children: /* @__PURE__ */ i("div", { className: "w6w-stepconfig", children: [
2935
2900
  /* @__PURE__ */ t("div", { className: "w6w-modal-body", children: /* @__PURE__ */ i("div", { className: "w6w-stack", children: [
2936
2901
  o && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "This connection is built in — it has no stored credential to edit." }),
2937
2902
  !o && !l && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Editing connections is not available here." }),
2938
- l && /* @__PURE__ */ i(R, { children: [
2903
+ l && /* @__PURE__ */ i(_, { children: [
2939
2904
  /* @__PURE__ */ i("label", { className: "w6w-field", children: [
2940
2905
  /* @__PURE__ */ t("span", { children: "Display name" }),
2941
2906
  /* @__PURE__ */ t(
@@ -2943,7 +2908,7 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
2943
2908
  {
2944
2909
  type: "text",
2945
2910
  value: c,
2946
- onChange: (b) => d(b.target.value),
2911
+ onChange: (k) => d(k.target.value),
2947
2912
  placeholder: "Connection name",
2948
2913
  maxLength: 80,
2949
2914
  name: "w6w-connection-label",
@@ -2952,11 +2917,11 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
2952
2917
  "data-lpignore": "true",
2953
2918
  "data-bwignore": "true",
2954
2919
  "data-form-type": "other",
2955
- ...ee
2920
+ ...ne
2956
2921
  }
2957
2922
  )
2958
2923
  ] }),
2959
- q.some((b) => b.key !== e.authKey) && /* @__PURE__ */ i("label", { className: "w6w-field", children: [
2924
+ te.some((k) => k.key !== e.authKey) && /* @__PURE__ */ i("label", { className: "w6w-field", children: [
2960
2925
  /* @__PURE__ */ t("span", { children: "Authentication method" }),
2961
2926
  /* @__PURE__ */ i(
2962
2927
  "select",
@@ -2964,46 +2929,46 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
2964
2929
  name: "w6w-connection-auth",
2965
2930
  value: u,
2966
2931
  disabled: S,
2967
- onChange: (b) => {
2968
- f(b.target.value), v({}), T({}), $(null), m(null);
2932
+ onChange: (k) => {
2933
+ f(k.target.value), v({}), T({}), re(null), w(null);
2969
2934
  },
2970
2935
  children: [
2971
- !q.some((b) => b.key === e.authKey) && /* @__PURE__ */ t("option", { value: e.authKey, children: e.authKey }),
2972
- q.map((b) => /* @__PURE__ */ t("option", { value: b.key, children: b.displayName ?? b.key }, b.key))
2936
+ !te.some((k) => k.key === e.authKey) && /* @__PURE__ */ t("option", { value: e.authKey, children: e.authKey }),
2937
+ te.map((k) => /* @__PURE__ */ t("option", { value: k.key, children: k.displayName ?? k.key }, k.key))
2973
2938
  ]
2974
2939
  }
2975
2940
  )
2976
2941
  ] }),
2977
- V && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Enter the new credential and click Save. This connection stays linked to your existing workflows." }),
2978
- w === null && !y && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Loading auth fields…" }),
2979
- Z && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: q.some((b) => b.key !== e.authKey) ? "This connection uses OAuth. Choose another authentication method above to use a key or token." : "This is an OAuth connection. You can rename it here; its credential is renewed by re-authorizing it." }),
2980
- j && Q.length > 0 && /* @__PURE__ */ i(R, { children: [
2942
+ q && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Enter the new credential and click Save. This connection stays linked to your existing workflows." }),
2943
+ m === null && !y && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Loading auth fields…" }),
2944
+ Y && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: te.some((k) => k.key !== e.authKey) ? "This connection uses OAuth. Choose another authentication method above to use a key or token." : "This is an OAuth connection. You can rename it here; its credential is renewed by re-authorizing it." }),
2945
+ z && V.length > 0 && /* @__PURE__ */ i(_, { children: [
2981
2946
  /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Leave a binding field blank to keep it unchanged." }),
2982
2947
  /* @__PURE__ */ t(
2983
- Be,
2948
+ Je,
2984
2949
  {
2985
2950
  mode: "edit",
2986
- fields: Q,
2951
+ fields: V,
2987
2952
  values: N,
2988
2953
  onChange: T,
2989
- enterSubmitProps: ee
2954
+ enterSubmitProps: ne
2990
2955
  }
2991
2956
  )
2992
2957
  ] }),
2993
- j && /* @__PURE__ */ i("div", { className: "w6w-stack", "data-w6w": "credential-section", children: [
2958
+ oe && /* @__PURE__ */ i("div", { className: "w6w-stack", "data-w6w": "credential-section", children: [
2994
2959
  typeof s.testCredential == "function" && /* @__PURE__ */ i("div", { children: [
2995
2960
  /* @__PURE__ */ t(
2996
2961
  "button",
2997
2962
  {
2998
2963
  type: "button",
2999
2964
  className: "w6w-btn w6w-btn-ghost",
3000
- onClick: Pe,
2965
+ onClick: Ne,
3001
2966
  children: "Test credential"
3002
2967
  }
3003
2968
  ),
3004
- O && /* @__PURE__ */ i("p", { className: "w6w-small", "data-w6w": "credential-health", children: [
2969
+ W && /* @__PURE__ */ i("p", { className: "w6w-small", "data-w6w": "credential-health", children: [
3005
2970
  "Credential health: ",
3006
- O.ok ? "ok" : O.code ?? "failed"
2971
+ W.ok ? "ok" : W.code ?? "failed"
3007
2972
  ] })
3008
2973
  ] }),
3009
2974
  /* @__PURE__ */ i("p", { className: "w6w-small", "data-w6w": "app-access", children: [
@@ -3011,33 +2976,34 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
3011
2976
  " ",
3012
2977
  e.lastTestOk === !0 ? "passed" : e.lastTestOk === !1 ? "failed" : "never tested"
3013
2978
  ] }),
3014
- J.length > 0 && /* @__PURE__ */ i(R, { children: [
2979
+ z && !ce && D.length > 0 && /* @__PURE__ */ i(_, { children: [
3015
2980
  /* @__PURE__ */ i("p", { className: "w6w-muted w6w-small", children: [
3016
2981
  "Leave the credential blank to keep it unchanged. To replace it, enter the full new credential and click Save.",
3017
2982
  C !== null && C > 1 && ` This credential is used by ${C} connections; saving a new credential updates all of them.`
3018
2983
  ] }),
3019
2984
  /* @__PURE__ */ t(
3020
- Be,
2985
+ Je,
3021
2986
  {
3022
2987
  mode: "edit",
3023
- fields: J,
2988
+ fields: D,
3024
2989
  values: g,
3025
2990
  onChange: v,
3026
- enterSubmitProps: ee
2991
+ enterSubmitProps: ne
3027
2992
  }
3028
2993
  )
3029
- ] })
2994
+ ] }),
2995
+ H && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", "data-w6w": "shared-credential-note", children: "Uses a shared credential. Rotate it under Integrations → Shared credentials." })
3030
2996
  ] }),
3031
- !j && J.length > 0 && /* @__PURE__ */ i(R, { children: [
3032
- !V && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Leave a field blank to keep it unchanged. Filled fields replace the stored credential." }),
2997
+ !z && !H && !ce && D.length > 0 && /* @__PURE__ */ i(_, { children: [
2998
+ !q && /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Leave a field blank to keep it unchanged. Filled fields replace the stored credential." }),
3033
2999
  /* @__PURE__ */ t(
3034
- Be,
3000
+ Je,
3035
3001
  {
3036
3002
  mode: "edit",
3037
- fields: J,
3003
+ fields: D,
3038
3004
  values: g,
3039
3005
  onChange: v,
3040
- enterSubmitProps: ee
3006
+ enterSubmitProps: ne
3041
3007
  }
3042
3008
  )
3043
3009
  ] })
@@ -3046,14 +3012,14 @@ function _s({ connection: e, onClose: n, onSaved: a }) {
3046
3012
  ] }) }),
3047
3013
  /* @__PURE__ */ i("div", { className: "w6w-modal-actions", children: [
3048
3014
  /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn w6w-btn-ghost", onClick: n, children: "Cancel" }),
3049
- l && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn", disabled: S, onClick: ae, children: S ? "Saving…" : "Save" })
3015
+ l && /* @__PURE__ */ t("button", { type: "button", className: "w6w-btn", disabled: S, onClick: U, children: S ? "Saving…" : "Save" })
3050
3016
  ] })
3051
3017
  ] }) });
3052
3018
  }
3053
- function Os({ conn: e, app: n, children: a }) {
3019
+ function _s({ conn: e, app: n, children: a }) {
3054
3020
  return /* @__PURE__ */ i("div", { className: "w6w-connection-header", "data-testid": "connection-header", children: [
3055
3021
  /* @__PURE__ */ t(
3056
- Oe,
3022
+ De,
3057
3023
  {
3058
3024
  src: n == null ? void 0 : n.iconSvg,
3059
3025
  srcDark: n == null ? void 0 : n.iconSvgDark,
@@ -3093,12 +3059,12 @@ function Os({ conn: e, app: n, children: a }) {
3093
3059
  a && /* @__PURE__ */ t("div", { className: "w6w-connection-header-actions", children: a })
3094
3060
  ] });
3095
3061
  }
3096
- const ja = (e) => String(e);
3097
- function Ft(e) {
3062
+ const Ka = (e) => String(e);
3063
+ function Kt(e) {
3098
3064
  const n = Math.min(100, Math.max(0, e));
3099
3065
  return Number(n.toFixed(4));
3100
3066
  }
3101
- function Is({
3067
+ function Os({
3102
3068
  label: e,
3103
3069
  used: n,
3104
3070
  limit: a,
@@ -3107,12 +3073,12 @@ function Is({
3107
3073
  className: o,
3108
3074
  testId: l
3109
3075
  }) {
3110
- const c = r ?? ja, d = Number.isFinite(s) && s > 0, u = a > 0 ? Ft(n / a * 100) : 100, f = d && a > 0 ? Ft(Math.min(100 - u, s / a * 100)) : 0, g = n >= a, v = `${c(n)} / ${c(a)}`, w = ["w6w-budget-meter"];
3111
- return g && w.push("w6w-budget-meter-over"), o && w.push(o), /* @__PURE__ */ i(
3076
+ const c = r ?? Ka, d = Number.isFinite(s) && s > 0, u = a > 0 ? Kt(n / a * 100) : 100, f = d && a > 0 ? Kt(Math.min(100 - u, s / a * 100)) : 0, g = n >= a, v = `${c(n)} / ${c(a)}`, m = ["w6w-budget-meter"];
3077
+ return g && m.push("w6w-budget-meter-over"), o && m.push(o), /* @__PURE__ */ i(
3112
3078
  "div",
3113
3079
  {
3114
3080
  role: "meter",
3115
- className: w.join(" "),
3081
+ className: m.join(" "),
3116
3082
  "aria-label": e,
3117
3083
  "aria-valuemin": 0,
3118
3084
  "aria-valuenow": n,
@@ -3132,17 +3098,17 @@ function Is({
3132
3098
  }
3133
3099
  );
3134
3100
  }
3135
- const Ja = {
3101
+ const ja = {
3136
3102
  kv: "Key-value",
3137
3103
  doc: "Document",
3138
3104
  table: "Table"
3139
- }, Ps = ["kv", "doc", "table"], Qt = ["string", "number", "integer", "boolean", "date", "datetime"], Wa = 5242880;
3140
- function Ls(e) {
3105
+ }, Is = ["kv", "doc", "table"], tn = ["string", "number", "integer", "boolean", "date", "datetime"], Ja = 5242880;
3106
+ function Ps(e) {
3141
3107
  var a;
3142
3108
  const n = (a = e.schema) == null ? void 0 : a.valueType;
3143
- return typeof n == "string" && Qt.includes(n) ? n : "string";
3109
+ return typeof n == "string" && tn.includes(n) ? n : "string";
3144
3110
  }
3145
- function Ms(e) {
3111
+ function Ls(e) {
3146
3112
  var s, r;
3147
3113
  if (e.kind !== "table") return null;
3148
3114
  const n = (s = e.schema) == null ? void 0 : s.columns;
@@ -3150,62 +3116,62 @@ function Ms(e) {
3150
3116
  const a = (r = e.schema) == null ? void 0 : r.key;
3151
3117
  return typeof a == "string" ? { columns: n, key: a } : { columns: n };
3152
3118
  }
3153
- function Ds(e, n) {
3119
+ function Ms(e, n) {
3154
3120
  const a = e == null ? void 0 : e.match(/filename="([^"]*)"/), s = a == null ? void 0 : a[1];
3155
3121
  return s !== void 0 && s !== "" ? s : `${n}.csv`;
3156
3122
  }
3157
- const Va = {
3123
+ const Wa = {
3158
3124
  required: "Required.",
3159
3125
  not_a_number: "Enter a number.",
3160
3126
  not_an_integer: "Enter a whole number.",
3161
3127
  not_a_boolean: "Enter true or false.",
3162
3128
  not_a_date: "Enter a date as YYYY-MM-DD.",
3163
3129
  not_a_datetime: "Enter a date-time like 2026-01-31T09:30:00Z."
3164
- }, qa = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?$/, Ha = /^-?(0|[1-9]\d*)$/, za = /^\d{4}-\d{2}-\d{2}$/, Ya = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
3165
- function Ga(e, n) {
3130
+ }, Va = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?$/, qa = /^-?(0|[1-9]\d*)$/, Ha = /^\d{4}-\d{2}-\d{2}$/, za = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/;
3131
+ function Ya(e, n) {
3166
3132
  return n === 2 ? e % 4 === 0 && e % 100 !== 0 || e % 400 === 0 ? 29 : 28 : [31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
3167
3133
  }
3168
- function it(e) {
3169
- if (!za.test(e)) return null;
3134
+ function ct(e) {
3135
+ if (!Ha.test(e)) return null;
3170
3136
  const n = Number(e.slice(0, 4)), a = Number(e.slice(5, 7)), s = Number(e.slice(8, 10));
3171
- return a < 1 || a > 12 || s < 1 || s > Ga(n, a) ? null : { year: n, month: a, day: s };
3137
+ return a < 1 || a > 12 || s < 1 || s > Ya(n, a) ? null : { year: n, month: a, day: s };
3172
3138
  }
3173
- function Y(e) {
3174
- return { ok: !1, problem: e, message: Va[e] };
3139
+ function Z(e) {
3140
+ return { ok: !1, problem: e, message: Wa[e] };
3175
3141
  }
3176
- function rt(e, n, a) {
3142
+ function dt(e, n, a) {
3177
3143
  const s = n.trim();
3178
3144
  if (s === "")
3179
- return a ? Y("required") : { ok: !0, value: void 0 };
3145
+ return a ? Z("required") : { ok: !0, value: void 0 };
3180
3146
  switch (e) {
3181
3147
  case "string":
3182
3148
  return { ok: !0, value: n };
3183
3149
  case "number": {
3184
- if (!qa.test(s)) return Y("not_a_number");
3150
+ if (!Va.test(s)) return Z("not_a_number");
3185
3151
  const r = Number(s);
3186
- return Number.isFinite(r) ? { ok: !0, value: r } : Y("not_a_number");
3152
+ return Number.isFinite(r) ? { ok: !0, value: r } : Z("not_a_number");
3187
3153
  }
3188
3154
  case "integer": {
3189
- if (!Ha.test(s)) return Y("not_an_integer");
3155
+ if (!qa.test(s)) return Z("not_an_integer");
3190
3156
  const r = Number(s);
3191
- return Number.isSafeInteger(r) ? { ok: !0, value: r } : Y("not_an_integer");
3157
+ return Number.isSafeInteger(r) ? { ok: !0, value: r } : Z("not_an_integer");
3192
3158
  }
3193
3159
  case "boolean":
3194
- return s === "true" ? { ok: !0, value: !0 } : s === "false" ? { ok: !0, value: !1 } : Y("not_a_boolean");
3160
+ return s === "true" ? { ok: !0, value: !0 } : s === "false" ? { ok: !0, value: !1 } : Z("not_a_boolean");
3195
3161
  case "date":
3196
- return it(s) === null ? Y("not_a_date") : { ok: !0, value: s };
3162
+ return ct(s) === null ? Z("not_a_date") : { ok: !0, value: s };
3197
3163
  case "datetime":
3198
- return en(s) ? { ok: !0, value: s } : Y("not_a_datetime");
3164
+ return nn(s) ? { ok: !0, value: s } : Z("not_a_datetime");
3199
3165
  }
3200
3166
  }
3201
- function en(e) {
3202
- if (!Ya.test(e) || it(e.slice(0, 10)) === null) return !1;
3167
+ function nn(e) {
3168
+ if (!za.test(e) || ct(e.slice(0, 10)) === null) return !1;
3203
3169
  const n = Number(e.slice(11, 13)), a = Number(e.slice(14, 16)), s = Number(e.slice(17, 19));
3204
3170
  if (n > 23 || a > 59 || s > 59) return !1;
3205
3171
  const o = e.slice(19).match(/(Z|([+-])(\d{2}):(\d{2}))$/);
3206
3172
  return o === null || o[1] === "Z" ? !0 : Number(o[3]) <= 23 && Number(o[4]) <= 59;
3207
3173
  }
3208
- function ot(e, n) {
3174
+ function ut(e, n) {
3209
3175
  if (n == null) return "";
3210
3176
  if ((e === "string" || e === "date" || e === "datetime") && typeof n == "string")
3211
3177
  return n;
@@ -3215,7 +3181,7 @@ function ot(e, n) {
3215
3181
  const a = JSON.stringify(n);
3216
3182
  return a === void 0 ? "" : a;
3217
3183
  }
3218
- function Us(e, n) {
3184
+ function Ds(e, n) {
3219
3185
  switch (e) {
3220
3186
  case "string":
3221
3187
  return typeof n == "string";
@@ -3226,37 +3192,37 @@ function Us(e, n) {
3226
3192
  case "boolean":
3227
3193
  return typeof n == "boolean";
3228
3194
  case "date":
3229
- return typeof n == "string" && it(n) !== null;
3195
+ return typeof n == "string" && ct(n) !== null;
3230
3196
  case "datetime":
3231
- return typeof n == "string" && en(n);
3197
+ return typeof n == "string" && nn(n);
3232
3198
  }
3233
3199
  }
3234
- const ce = "The request failed.", Xa = "Could not reach the server.";
3235
- function te(e) {
3200
+ const me = "The request failed.", Ga = "Could not reach the server.";
3201
+ function se(e) {
3236
3202
  return typeof e == "string" && e.length > 0 ? e : void 0;
3237
3203
  }
3238
- function tn(e) {
3204
+ function an(e) {
3239
3205
  return Number.isInteger(e) && e >= 0 ? e : void 0;
3240
3206
  }
3241
- function nn(e, n, a) {
3242
- const s = { message: ce };
3207
+ function sn(e, n, a) {
3208
+ const s = { message: me };
3243
3209
  typeof a == "number" && (s.status = a);
3244
3210
  const r = e !== null && typeof e == "object" ? e.error : void 0;
3245
3211
  if (r !== null && typeof r == "object") {
3246
- const o = r, l = te(o.code);
3212
+ const o = r, l = se(o.code);
3247
3213
  l !== void 0 && (s.code = l);
3248
- const c = te(o.field);
3214
+ const c = se(o.field);
3249
3215
  c !== void 0 && (s.field = c);
3250
- const d = te(o.column);
3216
+ const d = se(o.column);
3251
3217
  d !== void 0 && (s.column = d);
3252
- const u = tn(o.row);
3218
+ const u = an(o.row);
3253
3219
  u !== void 0 && (s.row = u);
3254
- const f = te(o.message);
3220
+ const f = se(o.message);
3255
3221
  f !== void 0 && (s.message = f);
3256
3222
  }
3257
- if (s.message === ce)
3223
+ if (s.message === me)
3258
3224
  for (const o of n) {
3259
- const l = te(o);
3225
+ const l = se(o);
3260
3226
  if (l !== void 0) {
3261
3227
  s.message = l;
3262
3228
  break;
@@ -3264,84 +3230,84 @@ function nn(e, n, a) {
3264
3230
  }
3265
3231
  return s;
3266
3232
  }
3267
- function Fs(e) {
3233
+ function Us(e) {
3268
3234
  try {
3269
3235
  const n = e !== null && typeof e == "object" ? e : void 0, a = n == null ? void 0 : n.raw, s = n == null ? void 0 : n.message;
3270
- return nn(a, [s], n == null ? void 0 : n.status);
3236
+ return sn(a, [s], n == null ? void 0 : n.status);
3271
3237
  } catch {
3272
- return { message: ce };
3238
+ return { message: me };
3273
3239
  }
3274
3240
  }
3275
- function Za(e) {
3241
+ function Xa(e) {
3276
3242
  try {
3277
3243
  if (e.status === 0)
3278
3244
  return {
3279
3245
  status: 0,
3280
3246
  code: "network_error",
3281
- message: Xa
3247
+ message: Ga
3282
3248
  };
3283
3249
  let n;
3284
3250
  try {
3285
3251
  n = JSON.parse(e.text);
3286
3252
  } catch {
3287
- return { status: e.status, message: ce };
3253
+ return { status: e.status, message: me };
3288
3254
  }
3289
- return nn(n, [], e.status);
3255
+ return sn(n, [], e.status);
3290
3256
  } catch {
3291
- return { message: ce };
3257
+ return { message: me };
3292
3258
  }
3293
3259
  }
3294
- function Qa(e) {
3295
- const n = te(e.column);
3260
+ function Za(e) {
3261
+ const n = se(e.column);
3296
3262
  if (n !== void 0) {
3297
- const s = tn(e.row);
3263
+ const s = an(e.row);
3298
3264
  return s === void 0 ? { kind: "cell", column: n } : { kind: "cell", column: n, row: s };
3299
3265
  }
3300
- const a = te(e.field);
3266
+ const a = se(e.field);
3301
3267
  return a !== void 0 ? { kind: "field", field: a } : { kind: "form" };
3302
3268
  }
3303
- function Bt(e) {
3269
+ function jt(e) {
3304
3270
  return e + 2;
3305
3271
  }
3306
- const an = "\0new", sn = "Changed by someone else since you loaded it.", Kt = "Enter a JSON object or array.", es = "The file is larger than 5 MB.";
3307
- function ts(e) {
3272
+ const ln = "\0new", rn = "Changed by someone else since you loaded it.", Jt = "Enter a JSON object or array.", Qa = "The file is larger than 5 MB.";
3273
+ function es(e) {
3308
3274
  const n = e.value;
3309
3275
  return n !== null && typeof n == "object" && !Array.isArray(n) ? n : {};
3310
3276
  }
3311
- function Bs(e, n) {
3312
- const a = ts(e), s = {};
3313
- for (const r of n) s[r.name] = ot(r.type, a[r.name]);
3277
+ function Fs(e, n) {
3278
+ const a = es(e), s = {};
3279
+ for (const r of n) s[r.name] = ut(r.type, a[r.name]);
3314
3280
  return { id: e.key, version: e.version, cells: s };
3315
3281
  }
3316
- function Ks(e) {
3282
+ function Bs(e) {
3317
3283
  const n = {};
3318
3284
  for (const a of e)
3319
- n[a.name] = a.default === void 0 ? "" : ot(a.type, a.default);
3320
- return { id: an, version: null, cells: n };
3285
+ n[a.name] = a.default === void 0 ? "" : ut(a.type, a.default);
3286
+ return { id: ln, version: null, cells: n };
3321
3287
  }
3322
- function js(e, n, a) {
3288
+ function Ks(e, n, a) {
3323
3289
  const s = [];
3324
3290
  for (const r of a)
3325
3291
  (e.cells[r.name] ?? "") !== (n.cells[r.name] ?? "") && s.push(r.name);
3326
3292
  return s;
3327
3293
  }
3328
- function Js(e, n) {
3294
+ function js(e, n) {
3329
3295
  const a = {}, s = {};
3330
3296
  for (const r of n) {
3331
- const o = rt(r.type, e.cells[r.name] ?? "", r.required);
3297
+ const o = dt(r.type, e.cells[r.name] ?? "", r.required);
3332
3298
  o.ok ? o.value !== void 0 && (a[r.name] = o.value) : s[r.name] = o.message;
3333
3299
  }
3334
3300
  return Object.keys(s).length > 0 ? { ok: !1, errors: s } : { ok: !0, value: a };
3335
3301
  }
3336
- function Ws(e, n) {
3302
+ function Js(e, n) {
3337
3303
  if (e === null) return;
3338
3304
  const a = Date.parse(e);
3339
3305
  if (!Number.isFinite(a)) return;
3340
3306
  const s = Math.ceil((a - n) / 1e3);
3341
3307
  return s > 0 ? s : void 0;
3342
3308
  }
3343
- function Vs(e, n, a) {
3344
- if (e.id === an)
3309
+ function Ws(e, n, a) {
3310
+ if (e.id === ln)
3345
3311
  return a === void 0 ? { kind: "insert", value: n } : { kind: "insert", value: n, ttlSeconds: a };
3346
3312
  const s = {
3347
3313
  kind: "put",
@@ -3351,28 +3317,28 @@ function Vs(e, n, a) {
3351
3317
  };
3352
3318
  return a === void 0 ? s : { ...s, ttlSeconds: a };
3353
3319
  }
3354
- function qs(e, n) {
3355
- const a = Qa(e);
3320
+ function Vs(e, n) {
3321
+ const a = Za(e);
3356
3322
  return a.kind !== "cell" || !n.some((s) => s.name === a.column) ? null : { [a.column]: e.message };
3357
3323
  }
3358
- function Hs(e) {
3324
+ function qs(e) {
3359
3325
  return e.status === 409 && e.code === "version_conflict";
3360
3326
  }
3361
- function ns(e) {
3327
+ function ts(e) {
3362
3328
  let n;
3363
3329
  try {
3364
3330
  n = JSON.parse(e);
3365
3331
  } catch {
3366
- return { ok: !1, message: Kt };
3332
+ return { ok: !1, message: Jt };
3367
3333
  }
3368
- return n === null || typeof n != "object" ? { ok: !1, message: Kt } : { ok: !0, value: n };
3334
+ return n === null || typeof n != "object" ? { ok: !1, message: Jt } : { ok: !0, value: n };
3369
3335
  }
3370
- function zs(e, n) {
3336
+ function Hs(e, n) {
3371
3337
  if (e === "string") return { ok: !0, value: n };
3372
- const a = rt(e, n, !0);
3338
+ const a = dt(e, n, !0);
3373
3339
  return a.ok ? { ok: !0, value: a.value } : { ok: !1, message: a.message };
3374
3340
  }
3375
- function Ys(e) {
3341
+ function zs(e) {
3376
3342
  if (e.status === 200) {
3377
3343
  let s = 0;
3378
3344
  try {
@@ -3386,10 +3352,10 @@ function Ys(e) {
3386
3352
  message: `Imported ${s} row${s === 1 ? "" : "s"}.`
3387
3353
  };
3388
3354
  }
3389
- const n = Za(e);
3390
- return n.row === void 0 ? { ok: !1, message: n.message } : { ok: !1, message: `${n.column ? `Line ${Bt(n.row)}, column ${n.column}` : `Line ${Bt(n.row)}`}: ${n.message}` };
3355
+ const n = Xa(e);
3356
+ return n.row === void 0 ? { ok: !1, message: n.message } : { ok: !1, message: `${n.column ? `Line ${jt(n.row)}, column ${n.column}` : `Line ${jt(n.row)}`}: ${n.message}` };
3391
3357
  }
3392
- function Gs({
3358
+ function Ys({
3393
3359
  stores: e,
3394
3360
  loading: n,
3395
3361
  error: a,
@@ -3401,15 +3367,15 @@ function Gs({
3401
3367
  formatSize: d,
3402
3368
  slots: u
3403
3369
  }) {
3404
- const f = d ?? qt, g = o !== void 0 || l !== void 0, v = [
3405
- { key: "name", header: "Name", render: (w) => /* @__PURE__ */ t("strong", { children: w.name }) },
3406
- { key: "kind", header: "Kind", render: (w) => Ja[w.kind] },
3407
- { key: "entries", header: "Entries", align: "right", render: (w) => String(w.entryCount) },
3408
- { key: "size", header: "Size", align: "right", render: (w) => f(w.sizeBytes) },
3370
+ const f = d ?? zt, g = o !== void 0 || l !== void 0, v = [
3371
+ { key: "name", header: "Name", render: (m) => /* @__PURE__ */ t("strong", { children: m.name }) },
3372
+ { key: "kind", header: "Kind", render: (m) => ja[m.kind] },
3373
+ { key: "entries", header: "Entries", align: "right", render: (m) => String(m.entryCount) },
3374
+ { key: "size", header: "Size", align: "right", render: (m) => f(m.sizeBytes) },
3409
3375
  {
3410
3376
  key: "updated",
3411
3377
  header: "Updated",
3412
- render: (w) => new Date(w.updatedAt).toLocaleString()
3378
+ render: (m) => new Date(m.updatedAt).toLocaleString()
3413
3379
  }
3414
3380
  ];
3415
3381
  return g && v.push({
@@ -3417,25 +3383,25 @@ function Gs({
3417
3383
  header: "",
3418
3384
  align: "right",
3419
3385
  link: !1,
3420
- render: (w) => (
3386
+ render: (m) => (
3421
3387
  // Clicks here must not reach the row's onOpen.
3422
3388
  // biome-ignore lint/a11y/useKeyWithClickEvents: propagation guard only; the buttons inside are the controls.
3423
3389
  /* @__PURE__ */ i("div", { className: "w6w-data-row-actions", onClick: (h) => h.stopPropagation(), children: [
3424
3390
  o && /* @__PURE__ */ t(
3425
- Ht,
3391
+ Yt,
3426
3392
  {
3427
3393
  label: "Edit",
3428
- onClick: () => o(w),
3429
- "data-testid": `data-store-edit-${w.id}`
3394
+ onClick: () => o(m),
3395
+ "data-testid": `data-store-edit-${m.id}`
3430
3396
  }
3431
3397
  ),
3432
3398
  l && /* @__PURE__ */ t(
3433
- ue,
3399
+ fe,
3434
3400
  {
3435
3401
  label: "Archive",
3436
- onClick: () => l(w),
3402
+ onClick: () => l(m),
3437
3403
  disabled: c,
3438
- "data-testid": `data-store-archive-${w.id}`
3404
+ "data-testid": `data-store-archive-${m.id}`
3439
3405
  }
3440
3406
  )
3441
3407
  ] })
@@ -3447,50 +3413,50 @@ function Gs({
3447
3413
  ] }),
3448
3414
  a && /* @__PURE__ */ t("div", { className: "w6w-error", children: a }),
3449
3415
  n && /* @__PURE__ */ t("p", { className: "w6w-muted", children: "Loading…" }),
3450
- e.length === 0 && !n ? /* @__PURE__ */ t(Te, { testId: "w6w-data-store-list-empty", children: (u == null ? void 0 : u.empty) ?? "No data stores yet." }) : /* @__PURE__ */ t(
3451
- he,
3416
+ e.length === 0 && !n ? /* @__PURE__ */ t(Oe, { testId: "w6w-data-store-list-empty", children: (u == null ? void 0 : u.empty) ?? "No data stores yet." }) : /* @__PURE__ */ t(
3417
+ pe,
3452
3418
  {
3453
3419
  columns: v,
3454
3420
  rows: e,
3455
- rowKey: (w) => w.id,
3421
+ rowKey: (m) => m.id,
3456
3422
  loading: n,
3457
- getRowHref: r ? (w) => r(w.id) : void 0,
3458
- onRowClick: s ? (w, h) => s(w.id, h) : void 0
3423
+ getRowHref: r ? (m) => r(m.id) : void 0,
3424
+ onRowClick: s ? (m, h) => s(m.id, h) : void 0
3459
3425
  }
3460
3426
  )
3461
3427
  ] });
3462
3428
  }
3463
- function as(e) {
3429
+ function ns(e) {
3464
3430
  return e.name !== "" && e.required === !0 && (e.type === "string" || e.type === "integer");
3465
3431
  }
3466
- function ss(e, n) {
3467
- const { default: a, ...s } = e, r = rt(e.type, n, !1);
3432
+ function as(e, n) {
3433
+ const { default: a, ...s } = e, r = dt(e.type, n, !1);
3468
3434
  return r.ok ? r.value === void 0 ? { column: s } : { column: { ...s, default: r.value } } : { column: s, error: r.message };
3469
3435
  }
3470
- function Xs(e) {
3471
- const { columns: n, onChange: a, keyColumn: s, onKeyColumnChange: r, columnErrors: o } = e, [l, c] = k({}), d = n.filter(as), u = d.some((h) => h.name === s) ? s : "";
3472
- G(() => {
3436
+ function Gs(e) {
3437
+ const { columns: n, onChange: a, keyColumn: s, onKeyColumnChange: r, columnErrors: o } = e, [l, c] = b({}), d = n.filter(ns), u = d.some((h) => h.name === s) ? s : "";
3438
+ Q(() => {
3473
3439
  s !== "" && u === "" && r("");
3474
3440
  }, [s, u, r]);
3475
3441
  function f() {
3476
3442
  a([...n, { name: "", type: "string", required: !1 }]);
3477
3443
  }
3478
3444
  function g(h, y) {
3479
- a(n.map((m, S) => S === h ? { ...m, ...y } : m));
3445
+ a(n.map((w, S) => S === h ? { ...w, ...y } : w));
3480
3446
  }
3481
- function v(h, y, m, S) {
3482
- const x = { ...n[h], ...S, type: y }, { column: N, error: T } = ss(x, m);
3483
- c((C) => ({ ...C, [h]: T === void 0 ? { text: m } : { text: m, error: T } })), a(n.map((C, E) => E === h ? N : C));
3447
+ function v(h, y, w, S) {
3448
+ const x = { ...n[h], ...S, type: y }, { column: N, error: T } = as(x, w);
3449
+ c((C) => ({ ...C, [h]: T === void 0 ? { text: w } : { text: w, error: T } })), a(n.map((C, R) => R === h ? N : C));
3484
3450
  }
3485
- function w(h) {
3451
+ function m(h) {
3486
3452
  c((y) => {
3487
- const m = {};
3453
+ const w = {};
3488
3454
  for (const [S, x] of Object.entries(y)) {
3489
3455
  const N = Number(S);
3490
- N < h ? m[N] = x : N > h && (m[N - 1] = x);
3456
+ N < h ? w[N] = x : N > h && (w[N - 1] = x);
3491
3457
  }
3492
- return m;
3493
- }), a(n.filter((y, m) => m !== h));
3458
+ return w;
3459
+ }), a(n.filter((y, w) => w !== h));
3494
3460
  }
3495
3461
  return /* @__PURE__ */ i("div", { className: "w6w-data-columns", children: [
3496
3462
  /* @__PURE__ */ i("div", { className: "w6w-data-columns-head", children: [
@@ -3507,7 +3473,7 @@ function Xs(e) {
3507
3473
  /* @__PURE__ */ t("span", {})
3508
3474
  ] }),
3509
3475
  /* @__PURE__ */ t("ul", { className: "w6w-data-columns-list", "data-testid": "data-columns", children: n.map((h, y) => {
3510
- const m = l[y], S = (m == null ? void 0 : m.text) ?? ot(h.type, h.default);
3476
+ const w = l[y], S = (w == null ? void 0 : w.text) ?? ut(h.type, h.default);
3511
3477
  return (
3512
3478
  // biome-ignore lint/suspicious/noArrayIndexKey: rows are positional and reorderable
3513
3479
  /* @__PURE__ */ i("li", { className: "w6w-data-columns-row", children: [
@@ -3527,7 +3493,7 @@ function Xs(e) {
3527
3493
  value: h.type,
3528
3494
  "aria-label": "Column type",
3529
3495
  onChange: (x) => v(y, x.target.value, S),
3530
- children: Qt.map((x) => /* @__PURE__ */ t("option", { value: x, children: x }, x))
3496
+ children: tn.map((x) => /* @__PURE__ */ t("option", { value: x, children: x }, x))
3531
3497
  }
3532
3498
  ),
3533
3499
  /* @__PURE__ */ i("label", { className: "w6w-data-columns-required", children: [
@@ -3553,18 +3519,18 @@ function Xs(e) {
3553
3519
  }
3554
3520
  ),
3555
3521
  /* @__PURE__ */ t(
3556
- ue,
3522
+ fe,
3557
3523
  {
3558
3524
  label: `Remove column ${h.name || y + 1}`,
3559
- onClick: () => w(y)
3525
+ onClick: () => m(y)
3560
3526
  }
3561
3527
  ),
3562
- (m == null ? void 0 : m.error) !== void 0 && /* @__PURE__ */ t(
3528
+ (w == null ? void 0 : w.error) !== void 0 && /* @__PURE__ */ t(
3563
3529
  "div",
3564
3530
  {
3565
3531
  className: "w6w-result w6w-error w6w-data-columns-error",
3566
3532
  "data-testid": `data-store-column-default-error-${y}`,
3567
- children: m.error
3533
+ children: w.error
3568
3534
  }
3569
3535
  ),
3570
3536
  h.name !== "" && o[h.name] !== void 0 && /* @__PURE__ */ t(
@@ -3588,13 +3554,13 @@ function Xs(e) {
3588
3554
  ] })
3589
3555
  ] });
3590
3556
  }
3591
- function Zs({ result: e, busy: n, onImport: a, onRefuse: s, onExport: r }) {
3557
+ function Xs({ result: e, busy: n, onImport: a, onRefuse: s, onExport: r }) {
3592
3558
  function o(l) {
3593
3559
  var u;
3594
3560
  const c = l.target, d = (u = c.files) == null ? void 0 : u[0];
3595
3561
  if (d !== void 0) {
3596
- if (c.value = "", d.size > Wa) {
3597
- s(es);
3562
+ if (c.value = "", d.size > Ja) {
3563
+ s(Qa);
3598
3564
  return;
3599
3565
  }
3600
3566
  a(d);
@@ -3627,7 +3593,7 @@ function Zs({ result: e, busy: n, onImport: a, onRefuse: s, onExport: r }) {
3627
3593
  e !== null && /* @__PURE__ */ t("div", { className: e.ok ? "w6w-result" : "w6w-result w6w-error", "data-testid": "csv-result", children: e.message })
3628
3594
  ] });
3629
3595
  }
3630
- function Qs({
3596
+ function Zs({
3631
3597
  rows: e,
3632
3598
  empty: n,
3633
3599
  loading: a,
@@ -3638,10 +3604,10 @@ function Qs({
3638
3604
  onNew: c,
3639
3605
  onLoadMore: d
3640
3606
  }) {
3641
- const [u, f] = k(s ?? "");
3607
+ const [u, f] = b(s ?? "");
3642
3608
  return /* @__PURE__ */ i("div", { children: [
3643
- /* @__PURE__ */ i("form", { className: "w6w-data-entries-toolbar", "data-testid": "entry-search", onSubmit: (w) => {
3644
- w.preventDefault(), l(u);
3609
+ /* @__PURE__ */ i("form", { className: "w6w-data-entries-toolbar", "data-testid": "entry-search", onSubmit: (m) => {
3610
+ m.preventDefault(), l(u);
3645
3611
  }, children: [
3646
3612
  /* @__PURE__ */ t(
3647
3613
  "input",
@@ -3651,7 +3617,7 @@ function Qs({
3651
3617
  value: u,
3652
3618
  placeholder: "Key prefix",
3653
3619
  "aria-label": "Key prefix",
3654
- onChange: (w) => f(w.target.value)
3620
+ onChange: (m) => f(m.target.value)
3655
3621
  }
3656
3622
  ),
3657
3623
  /* @__PURE__ */ t("button", { className: "w6w-btn w6w-btn-ghost", type: "submit", children: "Search" }),
@@ -3667,37 +3633,37 @@ function Qs({
3667
3633
  )
3668
3634
  ] }),
3669
3635
  /* @__PURE__ */ t(
3670
- he,
3636
+ pe,
3671
3637
  {
3672
3638
  className: "w6w-data-entry-list",
3673
- onRowClick: (w) => o(w.key),
3639
+ onRowClick: (m) => o(m.key),
3674
3640
  columns: [
3675
3641
  {
3676
3642
  key: "key",
3677
3643
  header: "Key",
3678
3644
  width: "38%",
3679
- render: (w) => /* @__PURE__ */ t(
3645
+ render: (m) => /* @__PURE__ */ t(
3680
3646
  "button",
3681
3647
  {
3682
3648
  type: "button",
3683
3649
  className: "w6w-data-entry-key",
3684
- title: w.key,
3650
+ title: m.key,
3685
3651
  "data-testid": "entry-key",
3686
3652
  onClick: (h) => {
3687
- h.stopPropagation(), o(w.key);
3653
+ h.stopPropagation(), o(m.key);
3688
3654
  },
3689
- children: w.key
3655
+ children: m.key
3690
3656
  }
3691
3657
  )
3692
3658
  },
3693
3659
  {
3694
3660
  key: "value",
3695
3661
  header: "Value",
3696
- render: (w) => w.copyText !== void 0 ? /* @__PURE__ */ t(tt, { value: w.copyText, label: "Copy value", className: "w6w-copyable--bare", children: /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small w6w-data-entry-preview", children: w.preview }) }) : /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small w6w-data-entry-preview", children: w.preview })
3662
+ render: (m) => m.copyText !== void 0 ? /* @__PURE__ */ t(st, { value: m.copyText, label: "Copy value", className: "w6w-copyable--bare", children: /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small w6w-data-entry-preview", children: m.preview }) }) : /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small w6w-data-entry-preview", children: m.preview })
3697
3663
  }
3698
3664
  ],
3699
3665
  rows: e,
3700
- rowKey: (w) => w.key,
3666
+ rowKey: (m) => m.key,
3701
3667
  empty: (
3702
3668
  // A div, not a <p>: `empty` is any node and callers often pass a <p>.
3703
3669
  /* @__PURE__ */ t("div", { className: "w6w-muted w6w-small", children: a ? "Loading…" : n ?? "No entries match this key prefix." })
@@ -3716,7 +3682,7 @@ function Qs({
3716
3682
  )
3717
3683
  ] });
3718
3684
  }
3719
- function el({
3685
+ function Qs({
3720
3686
  kind: e,
3721
3687
  isNew: n,
3722
3688
  entryKey: a,
@@ -3730,15 +3696,15 @@ function el({
3730
3696
  onKeyChange: f,
3731
3697
  onDelete: g,
3732
3698
  onSave: v,
3733
- onCancel: w,
3699
+ onCancel: m,
3734
3700
  onReload: h
3735
3701
  }) {
3736
- const [y, m] = k(n), [S, x] = k(!1), N = Jt(null);
3737
- G(() => {
3702
+ const [y, w] = b(n), [S, x] = b(!1), N = Vt(null);
3703
+ Q(() => {
3738
3704
  var O;
3739
3705
  n || (O = N.current) == null || O.focus();
3740
3706
  }, [n]);
3741
- const T = e === "doc" ? "document" : "entry", C = e === "doc" ? ns(o) : void 0, E = C !== void 0 && !C.ok, P = l || (S && C && !C.ok ? C.message : null), K = /* @__PURE__ */ i(R, { children: [
3707
+ const T = e === "doc" ? "document" : "entry", C = e === "doc" ? ts(o) : void 0, R = C !== void 0 && !C.ok, I = l || (S && C && !C.ok ? C.message : null), j = /* @__PURE__ */ i(_, { children: [
3742
3708
  n ? /* @__PURE__ */ i("label", { className: "w6w-field", children: [
3743
3709
  /* @__PURE__ */ t("span", { children: "Key" }),
3744
3710
  /* @__PURE__ */ t(
@@ -3756,7 +3722,7 @@ function el({
3756
3722
  r
3757
3723
  ] }) : null,
3758
3724
  e === "doc" ? /* @__PURE__ */ t(
3759
- oe,
3725
+ we,
3760
3726
  {
3761
3727
  value: o,
3762
3728
  readOnly: !y,
@@ -3769,7 +3735,7 @@ function el({
3769
3735
  minHeight: "min(50vh, 400px)",
3770
3736
  maxHeight: "60vh"
3771
3737
  }
3772
- ) : /* @__PURE__ */ t(tt, { value: o, label: "Copy value", children: /* @__PURE__ */ t(
3738
+ ) : /* @__PURE__ */ t(st, { value: o, label: "Copy value", children: /* @__PURE__ */ t(
3773
3739
  "input",
3774
3740
  {
3775
3741
  type: "text",
@@ -3780,9 +3746,9 @@ function el({
3780
3746
  onChange: (O) => u(O.target.value)
3781
3747
  }
3782
3748
  ) }),
3783
- P && /* @__PURE__ */ t("div", { className: "w6w-field-error", role: "alert", "data-testid": "entry-value-error", children: P }),
3749
+ I && /* @__PURE__ */ t("div", { className: "w6w-field-error", role: "alert", "data-testid": "entry-value-error", children: I }),
3784
3750
  c && /* @__PURE__ */ i("div", { className: "w6w-error", "data-testid": "entry-conflict", children: [
3785
- sn,
3751
+ rn,
3786
3752
  " ",
3787
3753
  /* @__PURE__ */ t(
3788
3754
  "button",
@@ -3797,18 +3763,18 @@ function el({
3797
3763
  ] })
3798
3764
  ] });
3799
3765
  return /* @__PURE__ */ i(
3800
- $e,
3766
+ _e,
3801
3767
  {
3802
3768
  title: n ? `New ${T}` : y ? `Edit ${T}` : e === "doc" ? "Document" : "Entry",
3803
3769
  subtitle: n ? void 0 : a,
3804
3770
  size: e === "doc" ? "wide" : "default",
3805
3771
  onClose: d ? () => {
3806
- } : w,
3772
+ } : m,
3807
3773
  children: [
3808
- /* @__PURE__ */ t("div", { className: "w6w-modal-body", "data-testid": "entry-editor", children: K }),
3774
+ /* @__PURE__ */ t("div", { className: "w6w-modal-body", "data-testid": "entry-editor", children: j }),
3809
3775
  /* @__PURE__ */ i("div", { className: "w6w-modal-actions", children: [
3810
3776
  !n && g && /* @__PURE__ */ t(
3811
- ue,
3777
+ fe,
3812
3778
  {
3813
3779
  label: "Delete entry",
3814
3780
  className: "w6w-data-entry-delete",
@@ -3823,7 +3789,7 @@ function el({
3823
3789
  className: "w6w-btn w6w-btn-ghost",
3824
3790
  type: "button",
3825
3791
  disabled: d,
3826
- onClick: w,
3792
+ onClick: m,
3827
3793
  children: y ? "Cancel" : "Close"
3828
3794
  }
3829
3795
  ),
@@ -3833,7 +3799,7 @@ function el({
3833
3799
  className: "w6w-btn",
3834
3800
  type: "button",
3835
3801
  "data-testid": "entry-save",
3836
- disabled: !!c || !!d || E || n && !(s != null && s.trim()),
3802
+ disabled: !!c || !!d || R || n && !(s != null && s.trim()),
3837
3803
  onClick: v,
3838
3804
  children: "Save"
3839
3805
  }
@@ -3843,7 +3809,7 @@ function el({
3843
3809
  className: "w6w-btn",
3844
3810
  type: "button",
3845
3811
  disabled: d,
3846
- onClick: () => m(!0),
3812
+ onClick: () => w(!0),
3847
3813
  children: "Edit"
3848
3814
  }
3849
3815
  )
@@ -3852,8 +3818,8 @@ function el({
3852
3818
  }
3853
3819
  );
3854
3820
  }
3855
- const xe = (e) => e.isNew ? "new" : e.id;
3856
- function tl({
3821
+ const Ae = (e) => e.isNew ? "new" : e.id;
3822
+ function el({
3857
3823
  columns: e,
3858
3824
  keyColumn: n,
3859
3825
  rows: a,
@@ -3867,39 +3833,39 @@ function tl({
3867
3833
  onDelete: f,
3868
3834
  onReload: g,
3869
3835
  onAddRow: v,
3870
- onLoadMore: w,
3836
+ onLoadMore: m,
3871
3837
  onSearch: h
3872
3838
  }) {
3873
- const [y, m] = k(l ?? ""), S = (N) => {
3839
+ const [y, w] = b(l ?? ""), S = (N) => {
3874
3840
  N.preventDefault(), h(y);
3875
3841
  }, x = [
3876
3842
  ...e.map((N) => ({
3877
3843
  key: N.name,
3878
- header: /* @__PURE__ */ i(R, { children: [
3844
+ header: /* @__PURE__ */ i(_, { children: [
3879
3845
  N.name,
3880
3846
  " ",
3881
3847
  /* @__PURE__ */ t("span", { className: "w6w-muted w6w-small", children: N.type })
3882
3848
  ] }),
3883
3849
  render: (T) => {
3884
- var E;
3885
- const C = (E = T.cellErrors) == null ? void 0 : E[N.name];
3850
+ var R;
3851
+ const C = (R = T.cellErrors) == null ? void 0 : R[N.name];
3886
3852
  return /* @__PURE__ */ i("div", { className: "w6w-data-cell", children: [
3887
3853
  /* @__PURE__ */ t(
3888
3854
  "input",
3889
3855
  {
3890
- "data-row": xe(T),
3856
+ "data-row": Ae(T),
3891
3857
  "data-column": N.name,
3892
3858
  value: T.cells[N.name] ?? "",
3893
3859
  readOnly: N.name === n && !T.isNew,
3894
3860
  "aria-label": `${N.name} (${N.type})`,
3895
- onChange: (P) => d(T.id, N.name, P.target.value)
3861
+ onChange: (I) => d(T.id, N.name, I.target.value)
3896
3862
  }
3897
3863
  ),
3898
3864
  C !== void 0 && /* @__PURE__ */ t(
3899
3865
  "div",
3900
3866
  {
3901
3867
  className: "w6w-data-cell-error",
3902
- "data-row": xe(T),
3868
+ "data-row": Ae(T),
3903
3869
  "data-column": N.name,
3904
3870
  children: C
3905
3871
  }
@@ -3917,16 +3883,16 @@ function tl({
3917
3883
  {
3918
3884
  className: "w6w-btn",
3919
3885
  type: "button",
3920
- "data-row": xe(N),
3886
+ "data-row": Ae(N),
3921
3887
  "data-testid": "row-save",
3922
3888
  disabled: !N.isNew && !N.dirty || !!N.conflict,
3923
3889
  onClick: () => u(N.id),
3924
3890
  children: "Save"
3925
3891
  }
3926
3892
  ),
3927
- /* @__PURE__ */ t(ue, { label: "Delete entry", onClick: () => f(N.id) }),
3928
- N.conflict && /* @__PURE__ */ i("div", { className: "w6w-error", "data-row": xe(N), "data-testid": "row-conflict", children: [
3929
- sn,
3893
+ /* @__PURE__ */ t(fe, { label: "Delete entry", onClick: () => f(N.id) }),
3894
+ N.conflict && /* @__PURE__ */ i("div", { className: "w6w-error", "data-row": Ae(N), "data-testid": "row-conflict", children: [
3895
+ rn,
3930
3896
  " ",
3931
3897
  /* @__PURE__ */ t(
3932
3898
  "button",
@@ -3953,7 +3919,7 @@ function tl({
3953
3919
  value: y,
3954
3920
  placeholder: "Key prefix",
3955
3921
  "aria-label": "Key prefix",
3956
- onChange: (N) => m(N.target.value)
3922
+ onChange: (N) => w(N.target.value)
3957
3923
  }
3958
3924
  ),
3959
3925
  /* @__PURE__ */ t("button", { className: "w6w-btn w6w-btn-ghost", type: "submit", children: "Search" }),
@@ -3969,7 +3935,7 @@ function tl({
3969
3935
  )
3970
3936
  ] }),
3971
3937
  /* @__PURE__ */ t("div", { className: "w6w-data-grid-scroll", "data-testid": "data-grid-scroll", children: /* @__PURE__ */ t(
3972
- he,
3938
+ pe,
3973
3939
  {
3974
3940
  columns: x,
3975
3941
  rows: a,
@@ -3986,152 +3952,153 @@ function tl({
3986
3952
  className: "w6w-btn w6w-btn-ghost",
3987
3953
  type: "button",
3988
3954
  "data-testid": "entries-load-more",
3989
- onClick: w,
3955
+ onClick: m,
3990
3956
  children: "Load more"
3991
3957
  }
3992
3958
  )
3993
3959
  ] });
3994
3960
  }
3995
3961
  export {
3996
- Lt as ATTENTION_DISPLAY_CAP,
3997
- hs as ActionTestForm,
3998
- sl as AddConnectionModal,
3999
- kt as ApiCallsPanel,
4000
- be as ApiError,
4001
- Oe as AppIcon,
4002
- ll as AppPicker,
4003
- Be as AuthFieldsForm,
4004
- Is as BudgetMeter,
4005
- Va as CELL_PROBLEM_COPY,
4006
- Wa as CSV_MAX_BYTES,
4007
- es as CSV_TOO_LARGE_COPY,
4008
- Es as CallableList,
4009
- il as CanvasLayer,
4010
- Ae as CodeBlock,
4011
- rl as CodeEditor,
4012
- Xs as ColumnsEditor,
3962
+ Dt as ATTENTION_DISPLAY_CAP,
3963
+ ms as ActionTestForm,
3964
+ al as AddConnectionModal,
3965
+ Ct as ApiCallsPanel,
3966
+ $e as ApiError,
3967
+ De as AppIcon,
3968
+ sl as AppPicker,
3969
+ Je as AuthFieldsForm,
3970
+ Os as BudgetMeter,
3971
+ Wa as CELL_PROBLEM_COPY,
3972
+ Ja as CSV_MAX_BYTES,
3973
+ Qa as CSV_TOO_LARGE_COPY,
3974
+ As as CallableList,
3975
+ ll as CanvasLayer,
3976
+ Ie as CodeBlock,
3977
+ il as CodeEditor,
3978
+ Gs as ColumnsEditor,
4013
3979
  Tn as Combobox,
4014
3980
  An as ConfirmModal,
4015
- Os as ConnectionHeader,
4016
- Rs as ConnectionList,
4017
- tt as Copyable,
3981
+ _s as ConnectionHeader,
3982
+ Es as ConnectionList,
3983
+ st as Copyable,
4018
3984
  Gn as CopyableText,
3985
+ rl as CreateSharedCredentialContext,
4019
3986
  ol as CredentialPicker,
4020
- Zs as CsvPanel,
4021
- ce as DATA_STORE_ERROR_FALLBACK,
4022
- Ps as DATA_STORE_KINDS,
4023
- Ja as DATA_STORE_KIND_LABEL,
4024
- Xa as DATA_STORE_NETWORK_ERROR,
4025
- Kt as DOC_VALUE_COPY,
4026
- el as DataEntryEditor,
4027
- Qs as DataEntryList,
4028
- Gs as DataStoreList,
4029
- he as DataTable,
4030
- tl as DataTableGrid,
4031
- ue as DeleteButton,
4032
- Ht as EditButton,
4033
- _s as EditConnectionModal,
4034
- Te as EmptyState,
4035
- $s as ExecutionDetail,
4036
- Cs as ExecutionFilters,
4037
- xs as ExecutionList,
3987
+ Xs as CsvPanel,
3988
+ me as DATA_STORE_ERROR_FALLBACK,
3989
+ Is as DATA_STORE_KINDS,
3990
+ ja as DATA_STORE_KIND_LABEL,
3991
+ Ga as DATA_STORE_NETWORK_ERROR,
3992
+ Jt as DOC_VALUE_COPY,
3993
+ Qs as DataEntryEditor,
3994
+ Zs as DataEntryList,
3995
+ Ys as DataStoreList,
3996
+ pe as DataTable,
3997
+ el as DataTableGrid,
3998
+ fe as DeleteButton,
3999
+ Yt as EditButton,
4000
+ Rs as EditConnectionModal,
4001
+ Oe as EmptyState,
4002
+ Ss as ExecutionDetail,
4003
+ xs as ExecutionFilters,
4004
+ ks as ExecutionList,
4038
4005
  pa as ExecutionLogPanel,
4039
- Ss as ExecutionStats,
4006
+ Cs as ExecutionStats,
4040
4007
  cl as ExpressionEditorModal,
4041
4008
  dl as ExpressionInput,
4042
4009
  ul as ExpressionOptionsProvider,
4043
4010
  wl as HTML_PREVIEW_CSP,
4044
- nt as HealthStatusPill,
4045
- Ns as HistoryTimeline,
4011
+ lt as HealthStatusPill,
4012
+ vs as HistoryTimeline,
4046
4013
  ml as HtmlPreview,
4047
- Xe as Icon,
4048
- de as IconButton,
4049
- bs as InfoTip,
4050
- oe as JsonEditor,
4014
+ et as Icon,
4015
+ he as IconButton,
4016
+ Ns as InfoTip,
4017
+ we as JsonEditor,
4051
4018
  hl as LastUsedNote,
4052
- Ze as ListItem,
4019
+ tt as ListItem,
4053
4020
  pl as Markdown,
4054
- $e as Modal,
4055
- an as NEW_ROW_ID,
4021
+ _e as Modal,
4022
+ ln as NEW_ROW_ID,
4056
4023
  fl as NodeConfigForm,
4057
4024
  $n as ParamsForm,
4058
4025
  gl as PropertyEntryForm,
4059
4026
  Ma as RECENT_DISPLAY_CAP,
4060
4027
  yl as RESULT_RENDER_MAX_CHARS,
4061
4028
  Ua as ReliabilityChart,
4062
- As as ReliabilityList,
4063
- ks as RepoSyncIndicator,
4064
- Ye as ResultViewer,
4029
+ Ts as ReliabilityList,
4030
+ bs as RepoSyncIndicator,
4031
+ Ze as ResultViewer,
4065
4032
  vl as RetryPolicyFields,
4066
- Qt as SCALAR_TYPES,
4067
- vs as ServerResourcesBadge,
4068
- fs as ServerResourcesCard,
4069
- gs as ServerResourcesCardSmall,
4070
- ys as ServerResourcesRail,
4033
+ tn as SCALAR_TYPES,
4034
+ ys as ServerResourcesBadge,
4035
+ ps as ServerResourcesCard,
4036
+ fs as ServerResourcesCardSmall,
4037
+ gs as ServerResourcesRail,
4071
4038
  Nl as StepBuilderModal,
4072
- st as StepStatusPill,
4039
+ rt as StepStatusPill,
4073
4040
  Qn as UptimeStrip,
4074
- sn as VERSION_CONFLICT_COPY,
4041
+ rn as VERSION_CONFLICT_COPY,
4075
4042
  bl as W6WUIProvider,
4076
- ps as YamlEditor,
4077
- Js as buildRowValue,
4078
- qs as cellErrorsOf,
4043
+ hs as YamlEditor,
4044
+ js as buildRowValue,
4045
+ Vs as cellErrorsOf,
4079
4046
  kl as connectionAppIdsToLookUp,
4080
- ms as createW6WApi,
4047
+ ws as createW6WApi,
4081
4048
  Yn as cropText,
4082
- Ds as csvFilenameOf,
4083
- Ys as csvImportMessage,
4084
- Bt as csvLineOf,
4049
+ Ms as csvFilenameOf,
4050
+ zs as csvImportMessage,
4051
+ jt as csvLineOf,
4085
4052
  xl as detectResultFormat,
4086
- js as dirtyColumns,
4053
+ Ks as dirtyColumns,
4087
4054
  Da as displayBoard,
4088
- Bs as draftFromEntry,
4055
+ Fs as draftFromEntry,
4089
4056
  Cl as effectiveNodeOutput,
4090
4057
  Sl as effectiveNodeOutputs,
4091
- Qa as errorPlacement,
4058
+ Za as errorPlacement,
4092
4059
  $l as filterOptions,
4093
4060
  Tl as findTestInput,
4094
- lt as formatDurationMs,
4095
- Re as formatExecutionTime,
4061
+ ot as formatDurationMs,
4062
+ Le as formatExecutionTime,
4096
4063
  Al as htmlPreviewSrcDoc,
4097
4064
  Hl as iconNames,
4098
4065
  El as indexNodeSamples,
4099
- Us as isCellValue,
4066
+ Ds as isCellValue,
4100
4067
  Rl as isExprValue,
4101
4068
  _l as isFormResolvedOptions,
4102
4069
  Ol as isSecretValue,
4103
4070
  Il as isTestRequired,
4104
- Hs as isVersionConflict,
4105
- zs as kvValueOf,
4106
- Ls as kvValueTypeOf,
4107
- Fs as locateDataStoreError,
4108
- Za as locateRawResponseError,
4109
- Ts as needsAttention,
4110
- Ks as newRowDraft,
4111
- rt as parseCell,
4112
- ns as parseDocText,
4071
+ qs as isVersionConflict,
4072
+ Hs as kvValueOf,
4073
+ Ps as kvValueTypeOf,
4074
+ Us as locateDataStoreError,
4075
+ Xa as locateRawResponseError,
4076
+ $s as needsAttention,
4077
+ Bs as newRowDraft,
4078
+ dt as parseCell,
4079
+ ts as parseDocText,
4113
4080
  Pa as partitionBoard,
4114
4081
  Ia as performancePoints,
4115
4082
  Pl as previewNodeOutputs,
4116
- Ws as remainingTtlSeconds,
4083
+ Js as remainingTtlSeconds,
4117
4084
  Ll as rememberableInput,
4118
4085
  Ml as requiredParamsFilled,
4119
4086
  Pn as resolveConnectionAppMeta,
4120
4087
  Dl as resultCopyText,
4121
- ts as rowValueOf,
4122
- Vs as rowWriteOf,
4123
- ot as serializeCell,
4088
+ es as rowValueOf,
4089
+ Ws as rowWriteOf,
4090
+ ut as serializeCell,
4124
4091
  Ul as shapeToSkeleton,
4125
4092
  Fl as shouldUseCombobox,
4126
4093
  Bl as splitFrontmatter,
4127
4094
  Kl as startOAuthPopup,
4128
- Ms as tableSchemaOf,
4095
+ Ls as tableSchemaOf,
4129
4096
  jl as testInputSavesSettled,
4130
4097
  Jl as trackTestInputSave,
4131
4098
  La as uptimeDays,
4132
4099
  Mn as useEnterSubmit,
4133
4100
  Wl as useExpressionOptions,
4134
4101
  Vl as useRememberedTestInput,
4135
- jt as useW6WApi
4102
+ Wt as useW6WApi
4136
4103
  };
4137
4104
  //# sourceMappingURL=index.mjs.map