@confidencesystemsinc/sdk 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +14 -14
  2. package/dist/index.js +216 -218
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -303,8 +303,8 @@ function ml(e) {
303
303
  r || (r = !0, (g = e.onError) == null || g.call(e, m), o == null || o(), s.reject(m));
304
304
  }, d = () => new Promise((m) => {
305
305
  var g;
306
- o = (y) => {
307
- (r || c()) && m(y);
306
+ o = (w) => {
307
+ (r || c()) && m(w);
308
308
  }, (g = e.onPause) == null || g.call(e);
309
309
  }).then(() => {
310
310
  var m;
@@ -316,20 +316,20 @@ function ml(e) {
316
316
  const g = n === 0 ? e.initialPromise : void 0;
317
317
  try {
318
318
  m = g ?? e.fn();
319
- } catch (y) {
320
- m = Promise.reject(y);
319
+ } catch (w) {
320
+ m = Promise.reject(w);
321
321
  }
322
- Promise.resolve(m).then(f).catch((y) => {
322
+ Promise.resolve(m).then(f).catch((w) => {
323
323
  var N;
324
324
  if (r)
325
325
  return;
326
- const x = e.retry ?? (cn ? 0 : 3), w = e.retryDelay ?? ef, C = typeof w == "function" ? w(n, y) : w, v = x === !0 || typeof x == "number" && n < x || typeof x == "function" && x(n, y);
326
+ const x = e.retry ?? (cn ? 0 : 3), y = e.retryDelay ?? ef, C = typeof y == "function" ? y(n, w) : y, v = x === !0 || typeof x == "number" && n < x || typeof x == "function" && x(n, w);
327
327
  if (t || !v) {
328
- h(y);
328
+ h(w);
329
329
  return;
330
330
  }
331
- n++, (N = e.onFail) == null || N.call(e, n, y), Ku(C).then(() => c() ? void 0 : d()).then(() => {
332
- t ? h(y) : b();
331
+ n++, (N = e.onFail) == null || N.call(e, n, w), Ku(C).then(() => c() ? void 0 : d()).then(() => {
332
+ t ? h(w) : b();
333
333
  });
334
334
  });
335
335
  };
@@ -819,7 +819,7 @@ var Ze, ol, sf = (ol = class extends jn {
819
819
  this.execute(this.state.variables);
820
820
  }
821
821
  async execute(t) {
822
- var s, i, a, l, c, u, f, h, d, b, m, g, y, x, w, C, v, N, q, k;
822
+ var s, i, a, l, c, u, f, h, d, b, m, g, w, x, y, C, v, N, q, k;
823
823
  const n = () => {
824
824
  J(this, tt, Tt).call(this, { type: "continue" });
825
825
  };
@@ -872,14 +872,14 @@ var Ze, ol, sf = (ol = class extends jn {
872
872
  )), await ((g = (m = this.options).onSettled) == null ? void 0 : g.call(m, B, null, t, this.state.context)), J(this, tt, Tt).call(this, { type: "success", data: B }), B;
873
873
  } catch (B) {
874
874
  try {
875
- throw await ((x = (y = p(this, $e).config).onError) == null ? void 0 : x.call(
876
- y,
875
+ throw await ((x = (w = p(this, $e).config).onError) == null ? void 0 : x.call(
876
+ w,
877
877
  B,
878
878
  t,
879
879
  this.state.context,
880
880
  this
881
- )), await ((C = (w = this.options).onError) == null ? void 0 : C.call(
882
- w,
881
+ )), await ((C = (y = this.options).onError) == null ? void 0 : C.call(
882
+ y,
883
883
  B,
884
884
  t,
885
885
  this.state.context
@@ -1087,18 +1087,18 @@ function Ai(e) {
1087
1087
  let a = { pages: [], pageParams: [] }, l = 0;
1088
1088
  const c = async () => {
1089
1089
  let m = !1;
1090
- const g = (w) => {
1091
- Object.defineProperty(w, "signal", {
1090
+ const g = (y) => {
1091
+ Object.defineProperty(y, "signal", {
1092
1092
  enumerable: !0,
1093
1093
  get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
1094
1094
  m = !0;
1095
1095
  }), t.signal)
1096
1096
  });
1097
- }, y = fl(t.options, t.fetchOptions), x = async (w, C, v) => {
1097
+ }, w = fl(t.options, t.fetchOptions), x = async (y, C, v) => {
1098
1098
  if (m)
1099
1099
  return Promise.reject();
1100
- if (C == null && w.pages.length)
1101
- return Promise.resolve(w);
1100
+ if (C == null && y.pages.length)
1101
+ return Promise.resolve(y);
1102
1102
  const N = {
1103
1103
  client: t.client,
1104
1104
  queryKey: t.queryKey,
@@ -1107,28 +1107,28 @@ function Ai(e) {
1107
1107
  meta: t.options.meta
1108
1108
  };
1109
1109
  g(N);
1110
- const q = await y(
1110
+ const q = await w(
1111
1111
  N
1112
1112
  ), { maxPages: k } = t.options, B = v ? Xu : Qu;
1113
1113
  return {
1114
- pages: B(w.pages, q, k),
1115
- pageParams: B(w.pageParams, C, k)
1114
+ pages: B(y.pages, q, k),
1115
+ pageParams: B(y.pageParams, C, k)
1116
1116
  };
1117
1117
  };
1118
1118
  if (o && s.length) {
1119
- const w = o === "backward", C = w ? cf : Ri, v = {
1119
+ const y = o === "backward", C = y ? cf : Ri, v = {
1120
1120
  pages: s,
1121
1121
  pageParams: i
1122
1122
  }, N = C(r, v);
1123
- a = await x(v, N, w);
1123
+ a = await x(v, N, y);
1124
1124
  } else {
1125
- const w = e ?? s.length;
1125
+ const y = e ?? s.length;
1126
1126
  do {
1127
1127
  const C = l === 0 ? i[0] ?? r.initialPageParam : Ri(r, a);
1128
1128
  if (l > 0 && C == null)
1129
1129
  break;
1130
1130
  a = await x(a, C), l++;
1131
- } while (l < w);
1131
+ } while (l < y);
1132
1132
  }
1133
1133
  return a;
1134
1134
  };
@@ -1486,10 +1486,10 @@ var be, kt, At, Rn, $n, Rt, In, Fn, al, uf = (al = class {
1486
1486
  }
1487
1487
  let { error: b, errorUpdatedAt: m, status: g } = f;
1488
1488
  d = f.data;
1489
- let y = !1;
1489
+ let w = !1;
1490
1490
  if (n.placeholderData !== void 0 && d === void 0 && g === "pending") {
1491
1491
  let G;
1492
- s != null && s.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData) ? (G = s.data, y = !0) : G = typeof n.placeholderData == "function" ? n.placeholderData(
1492
+ s != null && s.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData) ? (G = s.data, w = !0) : G = typeof n.placeholderData == "function" ? n.placeholderData(
1493
1493
  (B = p(this, Mn)) == null ? void 0 : B.state.data,
1494
1494
  p(this, Mn)
1495
1495
  ) : n.placeholderData, G !== void 0 && (g = "success", d = es(
@@ -1498,7 +1498,7 @@ var be, kt, At, Rn, $n, Rt, In, Fn, al, uf = (al = class {
1498
1498
  n
1499
1499
  ), h = !0);
1500
1500
  }
1501
- if (n.select && d !== void 0 && !y)
1501
+ if (n.select && d !== void 0 && !w)
1502
1502
  if (s && d === (i == null ? void 0 : i.data) && n.select === p(this, gr))
1503
1503
  d = p(this, Ln);
1504
1504
  else
@@ -1508,10 +1508,10 @@ var be, kt, At, Rn, $n, Rt, In, Fn, al, uf = (al = class {
1508
1508
  F(this, It, G);
1509
1509
  }
1510
1510
  p(this, It) && (b = p(this, It), d = p(this, Ln), m = Date.now(), g = "error");
1511
- const x = f.fetchStatus === "fetching", w = g === "pending", C = g === "error", v = w && x, N = d !== void 0, k = {
1511
+ const x = f.fetchStatus === "fetching", y = g === "pending", C = g === "error", v = y && x, N = d !== void 0, k = {
1512
1512
  status: g,
1513
1513
  fetchStatus: f.fetchStatus,
1514
- isPending: w,
1514
+ isPending: y,
1515
1515
  isSuccess: g === "success",
1516
1516
  isError: C,
1517
1517
  isInitialLoading: v,
@@ -1526,7 +1526,7 @@ var be, kt, At, Rn, $n, Rt, In, Fn, al, uf = (al = class {
1526
1526
  isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
1527
1527
  isFetchedAfterMount: f.dataUpdateCount > c.dataUpdateCount || f.errorUpdateCount > c.errorUpdateCount,
1528
1528
  isFetching: x,
1529
- isRefetching: x && !w,
1529
+ isRefetching: x && !y,
1530
1530
  isLoadingError: C && !N,
1531
1531
  isPaused: f.fetchStatus === "paused",
1532
1532
  isPlaceholderData: h,
@@ -1786,8 +1786,8 @@ function Pf(e, t, n) {
1786
1786
  if ($.useSyncExternalStore(
1787
1787
  $.useCallback(
1788
1788
  (g) => {
1789
- const y = u ? l.subscribe(Te.batchCalls(g)) : Fe;
1790
- return l.updateResult(), y;
1789
+ const w = u ? l.subscribe(Te.batchCalls(g)) : Fe;
1790
+ return l.updateResult(), w;
1791
1791
  },
1792
1792
  [l, u]
1793
1793
  ),
@@ -2003,9 +2003,9 @@ const zn = () => Se(Zs), Tl = ({
2003
2003
  RESUME: "Resume",
2004
2004
  COMPLETE: "Complete"
2005
2005
  }, Nf = (e) => {
2006
- const { taskStatus: t } = e;
2006
+ const { taskStatus: t, canStart: n } = e;
2007
2007
  return {
2008
- buttons: he(() => t === ge.OPEN && e.canStart ? [Zn.START] : t === ge.IN_PROGRESS ? [Zn.PAUSE, Zn.COMPLETE] : t === ge.COMPLETED ? [] : [], [t])
2008
+ buttons: he(() => t === ge.OPEN && n ? [Zn.START] : t === ge.IN_PROGRESS ? [Zn.PAUSE, Zn.COMPLETE] : t === ge.COMPLETED ? [] : [], [e.taskStatus, e.canStart])
2009
2009
  };
2010
2010
  }, Pl = async (e) => {
2011
2011
  const t = new Headers();
@@ -2199,26 +2199,26 @@ const zn = () => Se(Zs), Tl = ({
2199
2199
  l = u + (l.length > 0 ? " " + l : l);
2200
2200
  continue;
2201
2201
  }
2202
- let g = !!m, y = r(g ? b.substring(0, m) : b);
2203
- if (!y) {
2202
+ let g = !!m, w = r(g ? b.substring(0, m) : b);
2203
+ if (!w) {
2204
2204
  if (!g) {
2205
2205
  l = u + (l.length > 0 ? " " + l : l);
2206
2206
  continue;
2207
2207
  }
2208
- if (y = r(b), !y) {
2208
+ if (w = r(b), !w) {
2209
2209
  l = u + (l.length > 0 ? " " + l : l);
2210
2210
  continue;
2211
2211
  }
2212
2212
  g = !1;
2213
2213
  }
2214
- const x = s(h).join(":"), w = d ? x + ds : x, C = w + y;
2214
+ const x = s(h).join(":"), y = d ? x + ds : x, C = y + w;
2215
2215
  if (i.includes(C))
2216
2216
  continue;
2217
2217
  i.push(C);
2218
- const v = o(y, g);
2218
+ const v = o(w, g);
2219
2219
  for (let N = 0; N < v.length; ++N) {
2220
2220
  const q = v[N];
2221
- i.push(w + q);
2221
+ i.push(y + q);
2222
2222
  }
2223
2223
  l = u + (l.length > 0 ? " " + l : l);
2224
2224
  }
@@ -2270,7 +2270,7 @@ const Ce = (e) => {
2270
2270
  const r = Rl.exec(e);
2271
2271
  return r ? r[1] ? t(r[1]) : n : !1;
2272
2272
  }, Il = (e) => e === "position" || e === "percentage", Fl = (e) => e === "image" || e === "url", Nl = (e) => e === "length" || e === "size" || e === "bg-size", Ll = (e) => e === "length", fd = (e) => e === "number", dd = (e) => e === "family-name", Ml = (e) => e === "shadow", hd = () => {
2273
- const e = Ce("color"), t = Ce("font"), n = Ce("text"), r = Ce("font-weight"), o = Ce("tracking"), s = Ce("leading"), i = Ce("breakpoint"), a = Ce("container"), l = Ce("spacing"), c = Ce("radius"), u = Ce("shadow"), f = Ce("inset-shadow"), h = Ce("text-shadow"), d = Ce("drop-shadow"), b = Ce("blur"), m = Ce("perspective"), g = Ce("aspect"), y = Ce("ease"), x = Ce("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
2273
+ const e = Ce("color"), t = Ce("font"), n = Ce("text"), r = Ce("font-weight"), o = Ce("tracking"), s = Ce("leading"), i = Ce("breakpoint"), a = Ce("container"), l = Ce("spacing"), c = Ce("radius"), u = Ce("shadow"), f = Ce("inset-shadow"), h = Ce("text-shadow"), d = Ce("drop-shadow"), b = Ce("blur"), m = Ce("perspective"), g = Ce("aspect"), w = Ce("ease"), x = Ce("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
2274
2274
  "center",
2275
2275
  "top",
2276
2276
  "bottom",
@@ -2364,14 +2364,14 @@ const Ce = (e) => {
2364
2364
  * @see https://tailwindcss.com/docs/break-after
2365
2365
  */
2366
2366
  "break-after": [{
2367
- "break-after": w()
2367
+ "break-after": y()
2368
2368
  }],
2369
2369
  /**
2370
2370
  * Break Before
2371
2371
  * @see https://tailwindcss.com/docs/break-before
2372
2372
  */
2373
2373
  "break-before": [{
2374
- "break-before": w()
2374
+ "break-before": y()
2375
2375
  }],
2376
2376
  /**
2377
2377
  * Break Inside
@@ -4213,7 +4213,7 @@ const Ce = (e) => {
4213
4213
  * @see https://tailwindcss.com/docs/transition-timing-function
4214
4214
  */
4215
4215
  ease: [{
4216
- ease: ["linear", "initial", y, M, L]
4216
+ ease: ["linear", "initial", w, M, L]
4217
4217
  }],
4218
4218
  /**
4219
4219
  * Transition Delay
@@ -5060,8 +5060,8 @@ function Fd(e) {
5060
5060
  relatedTarget: m.target
5061
5061
  });
5062
5062
  Td(g, b);
5063
- let y = Ul(g);
5064
- l(y);
5063
+ let w = Ul(g);
5064
+ l(w);
5065
5065
  }
5066
5066
  }, {
5067
5067
  capture: !0
@@ -5114,21 +5114,21 @@ function Ld(e) {
5114
5114
  let h = (m, g) => {
5115
5115
  if (a.pointerType = g, o || g === "touch" || a.isHovered || !m.currentTarget.contains(m.target)) return;
5116
5116
  a.isHovered = !0;
5117
- let y = m.currentTarget;
5118
- a.target = y, l(Vt(m.target), "pointerover", (x) => {
5117
+ let w = m.currentTarget;
5118
+ a.target = w, l(Vt(m.target), "pointerover", (x) => {
5119
5119
  a.isHovered && a.target && !jl(a.target, x.target) && d(x, x.pointerType);
5120
5120
  }, {
5121
5121
  capture: !0
5122
5122
  }), t && t({
5123
5123
  type: "hoverstart",
5124
- target: y,
5124
+ target: w,
5125
5125
  pointerType: g
5126
5126
  }), n && n(!0), i(!0);
5127
5127
  }, d = (m, g) => {
5128
- let y = a.target;
5129
- a.pointerType = "", a.target = null, !(g === "touch" || !a.isHovered || !y) && (a.isHovered = !1, c(), r && r({
5128
+ let w = a.target;
5129
+ a.pointerType = "", a.target = null, !(g === "touch" || !a.isHovered || !w) && (a.isHovered = !1, c(), r && r({
5130
5130
  type: "hoverend",
5131
- target: y,
5131
+ target: w,
5132
5132
  pointerType: g
5133
5133
  }), n && n(!1), i(!1));
5134
5134
  }, b = {};
@@ -5344,8 +5344,8 @@ function Ar(e, t = {}, n, r, o) {
5344
5344
  `)].join(`
5345
5345
  `));
5346
5346
  } else {
5347
- let h = u.props, d = h == null ? void 0 : h.className, b = typeof d == "function" ? (...y) => ys(d(...y), l.className) : ys(d, l.className), m = b ? { className: b } : {}, g = Ql(u.props, Yt(ko(l, ["ref"])));
5348
- for (let y in f) y in g && delete f[y];
5347
+ let h = u.props, d = h == null ? void 0 : h.className, b = typeof d == "function" ? (...w) => ys(d(...w), l.className) : ys(d, l.className), m = b ? { className: b } : {}, g = Ql(u.props, Yt(ko(l, ["ref"])));
5348
+ for (let w in f) w in g && delete f[w];
5349
5349
  return Hu(u, Object.assign({}, g, f, c, { ref: o(qd(u), c.ref) }, m));
5350
5350
  }
5351
5351
  return Uu(s, Object.assign({}, ko(l, ["ref"]), s !== Ke && c, s !== Ke && f), u);
@@ -5533,12 +5533,12 @@ function ah(e, t) {
5533
5533
  let r = qt(), o = ic(), s = Jl(), i = no(), { id: a = `headlessui-label-${r}`, htmlFor: l = s ?? ((n = o.props) == null ? void 0 : n.htmlFor), passive: c = !1, ...u } = e, f = Xe(t);
5534
5534
  Pe(() => o.register(a), [a, o.register]);
5535
5535
  let h = ue((g) => {
5536
- let y = g.currentTarget;
5537
- if (!(g.target !== g.currentTarget && Zd(g.target)) && (zi(y) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), zi(y))) {
5538
- let x = document.getElementById(y.htmlFor);
5536
+ let w = g.currentTarget;
5537
+ if (!(g.target !== g.currentTarget && Zd(g.target)) && (zi(w) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), zi(w))) {
5538
+ let x = document.getElementById(w.htmlFor);
5539
5539
  if (x) {
5540
- let w = x.getAttribute("disabled");
5541
- if (w === "true" || w === "") return;
5540
+ let y = x.getAttribute("disabled");
5541
+ if (y === "true" || y === "") return;
5542
5542
  let C = x.getAttribute("aria-disabled");
5543
5543
  if (C === "true" || C === "") return;
5544
5544
  (ec(x) && (x.type === "file" || x.type === "radio" || x.type === "checkbox") || x.role === "radio" || x.role === "checkbox" || x.role === "switch") && x.click(), x.focus({ preventScroll: !0 });
@@ -5672,19 +5672,19 @@ function Eh() {
5672
5672
  d = i(
5673
5673
  function() {
5674
5674
  function g(v) {
5675
- if (!y) {
5676
- if (y = !0, x = v, v = f(v), h !== void 0 && b.hasValue) {
5675
+ if (!w) {
5676
+ if (w = !0, x = v, v = f(v), h !== void 0 && b.hasValue) {
5677
5677
  var N = b.value;
5678
5678
  if (h(N, v))
5679
- return w = N;
5679
+ return y = N;
5680
5680
  }
5681
- return w = v;
5681
+ return y = v;
5682
5682
  }
5683
- if (N = w, n(x, v)) return N;
5683
+ if (N = y, n(x, v)) return N;
5684
5684
  var q = f(v);
5685
- return h !== void 0 && h(N, q) ? (x = v, N) : (x = v, w = q);
5685
+ return h !== void 0 && h(N, q) ? (x = v, N) : (x = v, y = q);
5686
5686
  }
5687
- var y = !1, x, w, C = u === void 0 ? null : u;
5687
+ var w = !1, x, y, C = u === void 0 ? null : u;
5688
5688
  return [
5689
5689
  function() {
5690
5690
  return g(c());
@@ -5732,20 +5732,20 @@ function Ch() {
5732
5732
  d = i(
5733
5733
  function() {
5734
5734
  function g(v) {
5735
- if (!y) {
5736
- if (y = !0, x = v, v = f(v), h !== void 0 && b.hasValue) {
5735
+ if (!w) {
5736
+ if (w = !0, x = v, v = f(v), h !== void 0 && b.hasValue) {
5737
5737
  var N = b.value;
5738
5738
  if (h(N, v))
5739
- return w = N;
5739
+ return y = N;
5740
5740
  }
5741
- return w = v;
5741
+ return y = v;
5742
5742
  }
5743
- if (N = w, n(x, v))
5743
+ if (N = y, n(x, v))
5744
5744
  return N;
5745
5745
  var q = f(v);
5746
- return h !== void 0 && h(N, q) ? (x = v, N) : (x = v, w = q);
5746
+ return h !== void 0 && h(N, q) ? (x = v, N) : (x = v, y = q);
5747
5747
  }
5748
- var y = !1, x, w, C = u === void 0 ? null : u;
5748
+ var w = !1, x, y, C = u === void 0 ? null : u;
5749
5749
  return [
5750
5750
  function() {
5751
5751
  return g(c());
@@ -6382,13 +6382,13 @@ const ap = async (e, t, n) => {
6382
6382
  for (let m = 0; m < a.length; m++) {
6383
6383
  const {
6384
6384
  name: g,
6385
- fn: y
6385
+ fn: w
6386
6386
  } = a[m], {
6387
6387
  x,
6388
- y: w,
6388
+ y,
6389
6389
  data: C,
6390
6390
  reset: v
6391
- } = await y({
6391
+ } = await w({
6392
6392
  x: u,
6393
6393
  y: f,
6394
6394
  initialPlacement: r,
@@ -6402,7 +6402,7 @@ const ap = async (e, t, n) => {
6402
6402
  floating: t
6403
6403
  }
6404
6404
  });
6405
- u = x ?? u, f = w ?? f, d = {
6405
+ u = x ?? u, f = y ?? f, d = {
6406
6406
  ...d,
6407
6407
  [g]: {
6408
6408
  ...d[g],
@@ -6475,8 +6475,8 @@ function cr(e, t, n, r) {
6475
6475
  const h = De(s), d = r && ye(r) ? De(r) : r;
6476
6476
  let b = h, m = Cs(b);
6477
6477
  for (; m && r && d !== b; ) {
6478
- const g = Cn(m), y = m.getBoundingClientRect(), x = We(m), w = y.left + (m.clientLeft + parseFloat(x.paddingLeft)) * g.x, C = y.top + (m.clientTop + parseFloat(x.paddingTop)) * g.y;
6479
- l *= g.x, c *= g.y, u *= g.x, f *= g.y, l += w, c += C, b = De(m), m = Cs(b);
6478
+ const g = Cn(m), w = m.getBoundingClientRect(), x = We(m), y = w.left + (m.clientLeft + parseFloat(x.paddingLeft)) * g.x, C = w.top + (m.clientTop + parseFloat(x.paddingTop)) * g.y;
6479
+ l *= g.x, c *= g.y, u *= g.x, f *= g.y, l += y, c += C, b = De(m), m = Cs(b);
6480
6480
  }
6481
6481
  }
6482
6482
  return Ec({
@@ -6790,10 +6790,10 @@ function Op(e) {
6790
6790
  isPositioned: !1
6791
6791
  }), [h, d] = $.useState(r);
6792
6792
  Kr(h, r) || d(r);
6793
- const [b, m] = $.useState(null), [g, y] = $.useState(null), x = $.useCallback((O) => {
6793
+ const [b, m] = $.useState(null), [g, w] = $.useState(null), x = $.useCallback((O) => {
6794
6794
  O !== N.current && (N.current = O, m(O));
6795
- }, []), w = $.useCallback((O) => {
6796
- O !== q.current && (q.current = O, y(O));
6795
+ }, []), y = $.useCallback((O) => {
6796
+ O !== q.current && (q.current = O, w(O));
6797
6797
  }, []), C = s || b, v = i || g, N = $.useRef(null), q = $.useRef(null), k = $.useRef(u), B = l != null, G = No(l), ce = No(o), fe = No(c), se = $.useCallback(() => {
6798
6798
  if (!N.current || !q.current)
6799
6799
  return;
@@ -6836,8 +6836,8 @@ function Op(e) {
6836
6836
  reference: N,
6837
6837
  floating: q,
6838
6838
  setReference: x,
6839
- setFloating: w
6840
- }), [x, w]), Y = $.useMemo(() => ({
6839
+ setFloating: y
6840
+ }), [x, y]), Y = $.useMemo(() => ({
6841
6841
  reference: C,
6842
6842
  floating: v
6843
6843
  }), [C, v]), ne = $.useMemo(() => {
@@ -7053,12 +7053,12 @@ function Wp(e, t) {
7053
7053
  Qp(a, { ownerDocument: c, container: n, containers: i, previousActiveElement: u });
7054
7054
  let f = Up(), h = ue((x) => {
7055
7055
  if (!zt(n.current)) return;
7056
- let w = n.current;
7056
+ let y = n.current;
7057
7057
  ((C) => C())(() => {
7058
7058
  pt(f.current, { [Xn.Forwards]: () => {
7059
- nr(w, ct.First, { skipElements: [x.relatedTarget, s] });
7059
+ nr(y, ct.First, { skipElements: [x.relatedTarget, s] });
7060
7060
  }, [Xn.Backwards]: () => {
7061
- nr(w, ct.Last, { skipElements: [x.relatedTarget, s] });
7061
+ nr(y, ct.Last, { skipElements: [x.relatedTarget, s] });
7062
7062
  } });
7063
7063
  });
7064
7064
  }), d = yr(!!(a & 2), "focus-trap#tab-lock"), b = si(), m = oe(!1), g = { ref: r, onKeyDown(x) {
@@ -7067,12 +7067,12 @@ function Wp(e, t) {
7067
7067
  }));
7068
7068
  }, onBlur(x) {
7069
7069
  if (!(a & 4)) return;
7070
- let w = _c(i);
7071
- zt(n.current) && w.add(n.current);
7070
+ let y = _c(i);
7071
+ zt(n.current) && y.add(n.current);
7072
7072
  let C = x.relatedTarget;
7073
- _t(C) && C.dataset.headlessuiFocusGuard !== "true" && (Dc(w, C) || (m.current ? nr(n.current, pt(f.current, { [Xn.Forwards]: () => ct.Next, [Xn.Backwards]: () => ct.Previous }) | ct.WrapAround, { relativeTo: x.target }) : _t(x.target) && ft(x.target)));
7074
- } }, y = Le();
7075
- return j.createElement(j.Fragment, null, d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }), y({ ourProps: g, theirProps: l, defaultTag: Bp, name: "FocusTrap" }), d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }));
7073
+ _t(C) && C.dataset.headlessuiFocusGuard !== "true" && (Dc(y, C) || (m.current ? nr(n.current, pt(f.current, { [Xn.Forwards]: () => ct.Next, [Xn.Backwards]: () => ct.Previous }) | ct.WrapAround, { relativeTo: x.target }) : _t(x.target) && ft(x.target)));
7074
+ } }, w = Le();
7075
+ return j.createElement(j.Fragment, null, d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }), w({ ourProps: g, theirProps: l, defaultTag: Bp, name: "FocusTrap" }), d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }));
7076
7076
  }
7077
7077
  let qp = ke(Wp), Vp = Object.assign(qp, { features: Kt });
7078
7078
  function Gp(e = !0) {
@@ -7183,10 +7183,10 @@ function zc(e, t) {
7183
7183
  l.current.splice(0), t && (t.chains.current[b] = t.chains.current[b].filter(([g]) => g !== d)), t == null || t.chains.current[b].push([d, new Promise((g) => {
7184
7184
  l.current.push(g);
7185
7185
  })]), t == null || t.chains.current[b].push([d, new Promise((g) => {
7186
- Promise.all(u.current[b].map(([y, x]) => x)).then(() => g());
7186
+ Promise.all(u.current[b].map(([w, x]) => x)).then(() => g());
7187
7187
  })]), b === "enter" ? c.current = c.current.then(() => t == null ? void 0 : t.wait.current).then(() => m(b)) : m(b);
7188
7188
  }), h = ue((d, b, m) => {
7189
- Promise.all(u.current[b].splice(0).map(([g, y]) => y)).then(() => {
7189
+ Promise.all(u.current[b].splice(0).map(([g, w]) => w)).then(() => {
7190
7190
  var g;
7191
7191
  (g = l.current.shift()) == null || g();
7192
7192
  }).then(() => m(b));
@@ -7196,38 +7196,38 @@ function zc(e, t) {
7196
7196
  let Hc = Ke, Uc = qr.RenderStrategy;
7197
7197
  function em(e, t) {
7198
7198
  var n, r;
7199
- let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: a, afterLeave: l, enter: c, enterFrom: u, enterTo: f, entered: h, leave: d, leaveFrom: b, leaveTo: m, ...g } = e, [y, x] = de(null), w = oe(null), C = jc(e), v = Xe(...C ? [w, t, x] : t === null ? [] : [t]), N = (n = g.unmount) == null || n ? Mt.Unmount : Mt.Hidden, { show: q, appear: k, initial: B } = Jp(), [G, ce] = de(q ? "visible" : "hidden"), fe = Zp(), { register: se, unregister: pe } = fe;
7200
- Pe(() => se(w), [se, w]), Pe(() => {
7201
- if (N === Mt.Hidden && w.current) {
7199
+ let { transition: o = !0, beforeEnter: s, afterEnter: i, beforeLeave: a, afterLeave: l, enter: c, enterFrom: u, enterTo: f, entered: h, leave: d, leaveFrom: b, leaveTo: m, ...g } = e, [w, x] = de(null), y = oe(null), C = jc(e), v = Xe(...C ? [y, t, x] : t === null ? [] : [t]), N = (n = g.unmount) == null || n ? Mt.Unmount : Mt.Hidden, { show: q, appear: k, initial: B } = Jp(), [G, ce] = de(q ? "visible" : "hidden"), fe = Zp(), { register: se, unregister: pe } = fe;
7200
+ Pe(() => se(y), [se, y]), Pe(() => {
7201
+ if (N === Mt.Hidden && y.current) {
7202
7202
  if (q && G !== "visible") {
7203
7203
  ce("visible");
7204
7204
  return;
7205
7205
  }
7206
- return pt(G, { hidden: () => pe(w), visible: () => se(w) });
7206
+ return pt(G, { hidden: () => pe(y), visible: () => se(y) });
7207
7207
  }
7208
- }, [G, w, se, pe, q, N]);
7208
+ }, [G, y, se, pe, q, N]);
7209
7209
  let W = xr();
7210
7210
  Pe(() => {
7211
- if (C && W && G === "visible" && w.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
7212
- }, [w, G, W, C]);
7211
+ if (C && W && G === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
7212
+ }, [y, G, W, C]);
7213
7213
  let Y = B && !k, ne = k && q && B, O = oe(!1), V = zc(() => {
7214
- O.current || (ce("hidden"), pe(w));
7214
+ O.current || (ce("hidden"), pe(y));
7215
7215
  }, fe), E = ue((I) => {
7216
7216
  O.current = !0;
7217
7217
  let Q = I ? "enter" : "leave";
7218
- V.onStart(w, Q, (X) => {
7218
+ V.onStart(y, Q, (X) => {
7219
7219
  X === "enter" ? s == null || s() : X === "leave" && (a == null || a());
7220
7220
  });
7221
7221
  }), P = ue((I) => {
7222
7222
  let Q = I ? "enter" : "leave";
7223
- O.current = !1, V.onStop(w, Q, (X) => {
7223
+ O.current = !1, V.onStop(y, Q, (X) => {
7224
7224
  X === "enter" ? i == null || i() : X === "leave" && (l == null || l());
7225
- }), Q === "leave" && !mo(V) && (ce("hidden"), pe(w));
7225
+ }), Q === "leave" && !mo(V) && (ce("hidden"), pe(y));
7226
7226
  });
7227
7227
  Ee(() => {
7228
7228
  C && o || (E(q), P(q));
7229
7229
  }, [q, C, o]);
7230
- let U = !(!o || !C || !W || Y), [, S] = Xh(U, y, q, { start: E, end: P }), _ = Yt({ ref: v, className: ((r = ys(g.className, ne && c, ne && u, S.enter && c, S.enter && S.closed && u, S.enter && !S.closed && f, S.leave && d, S.leave && !S.closed && b, S.leave && S.closed && m, !S.transition && q && h)) == null ? void 0 : r.trim()) || void 0, ...Qh(S) }), K = 0;
7230
+ let U = !(!o || !C || !W || Y), [, S] = Xh(U, w, q, { start: E, end: P }), _ = Yt({ ref: v, className: ((r = ys(g.className, ne && c, ne && u, S.enter && c, S.enter && S.closed && u, S.enter && !S.closed && f, S.leave && d, S.leave && !S.closed && b, S.leave && S.closed && m, !S.transition && q && h)) == null ? void 0 : r.trim()) || void 0, ...Qh(S) }), K = 0;
7231
7231
  G === "visible" && (K |= Ye.Open), G === "hidden" && (K |= Ye.Closed), q && G === "hidden" && (K |= Ye.Opening), !q && G === "visible" && (K |= Ye.Closing);
7232
7232
  let z = Le();
7233
7233
  return j.createElement(po.Provider, { value: V }, j.createElement(Pp, { value: K }, z({ ourProps: _, theirProps: g, defaultTag: Hc, features: Uc, visible: G === "visible", name: "Transition.Child" })));
@@ -7247,14 +7247,14 @@ function tm(e, t) {
7247
7247
  Pe(() => {
7248
7248
  n ? f("visible") : !mo(h) && i.current !== null && f("hidden");
7249
7249
  }, [n, h]);
7250
- let y = { unmount: o }, x = ue(() => {
7250
+ let w = { unmount: o }, x = ue(() => {
7251
7251
  var v;
7252
7252
  d && b(!1), (v = e.beforeEnter) == null || v.call(e);
7253
- }), w = ue(() => {
7253
+ }), y = ue(() => {
7254
7254
  var v;
7255
7255
  d && b(!1), (v = e.beforeLeave) == null || v.call(e);
7256
7256
  }), C = Le();
7257
- return j.createElement(po.Provider, { value: h }, j.createElement(ho.Provider, { value: g }, C({ ourProps: { ...y, as: Ke, children: j.createElement(Bc, { ref: l, ...y, ...s, beforeEnter: x, beforeLeave: w }) }, theirProps: {}, defaultTag: Ke, features: Uc, visible: u === "visible", name: "Transition" })));
7257
+ return j.createElement(po.Provider, { value: h }, j.createElement(ho.Provider, { value: g }, C({ ourProps: { ...w, as: Ke, children: j.createElement(Bc, { ref: l, ...w, ...s, beforeEnter: x, beforeLeave: y }) }, theirProps: {}, defaultTag: Ke, features: Uc, visible: u === "visible", name: "Transition" })));
7258
7258
  }
7259
7259
  function nm(e, t) {
7260
7260
  let n = Se(ho) !== null, r = fo() !== null;
@@ -7284,7 +7284,7 @@ let ia = ke(function(e, t) {
7284
7284
  }();
7285
7285
  let d = fo();
7286
7286
  o === void 0 && d !== null && (o = (d & Ye.Open) === Ye.Open);
7287
- let b = oe(null), m = Xe(b, t), g = so(b), y = o ? 0 : 1, [x, w] = Wu(am, { titleId: null, descriptionId: null, panelRef: qu() }), C = ue(() => s(!1)), v = ue((S) => w({ type: 0, id: S })), N = xr() ? y === 0 : !1, [q, k] = Mp(), B = { get current() {
7287
+ let b = oe(null), m = Xe(b, t), g = so(b), w = o ? 0 : 1, [x, y] = Wu(am, { titleId: null, descriptionId: null, panelRef: qu() }), C = ue(() => s(!1)), v = ue((S) => y({ type: 0, id: S })), N = xr() ? w === 0 : !1, [q, k] = Mp(), B = { get current() {
7288
7288
  var S;
7289
7289
  return (S = x.panelRef.current) != null ? S : b.current;
7290
7290
  } }, G = Mc(), { resolveContainers: ce } = Hp({ mainTreeNode: G, portals: q, defaultContainers: [B] }), fe = d !== null ? (d & Ye.Closing) === Ye.Closing : !1;
@@ -7305,10 +7305,10 @@ let ia = ke(function(e, t) {
7305
7305
  }), jp(pe, g == null ? void 0 : g.defaultView, (S) => {
7306
7306
  S.preventDefault(), S.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), C();
7307
7307
  }), Gh(c || fe ? !1 : N, g, ce), kh(N, b, C);
7308
- let [W, Y] = rc(), ne = he(() => [{ dialogState: y, close: C, setTitleId: v, unmount: u }, x], [y, x, C, v, u]), O = he(() => ({ open: y === 0 }), [y]), V = { ref: m, id: r, role: a, tabIndex: -1, "aria-modal": c ? void 0 : y === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": W, unmount: u }, E = !zp(), P = Kt.None;
7308
+ let [W, Y] = rc(), ne = he(() => [{ dialogState: w, close: C, setTitleId: v, unmount: u }, x], [w, x, C, v, u]), O = he(() => ({ open: w === 0 }), [w]), V = { ref: m, id: r, role: a, tabIndex: -1, "aria-modal": c ? void 0 : w === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": W, unmount: u }, E = !zp(), P = Kt.None;
7309
7309
  N && !c && (P |= Kt.RestoreFocus, P |= Kt.TabLock, l && (P |= Kt.AutoFocus), E && (P |= Kt.InitialFocus));
7310
7310
  let U = Le();
7311
- return j.createElement(Sp, null, j.createElement(oa, { force: !0 }, j.createElement(Dp, null, j.createElement(fi.Provider, { value: ne }, j.createElement(Nc, { target: b }, j.createElement(oa, { force: !1 }, j.createElement(Y, { slot: O }, j.createElement(k, null, j.createElement(Vp, { initialFocus: i, initialFocusFallback: b, containers: ce, features: P }, j.createElement(fh, { value: C }, U({ ourProps: V, theirProps: f, slot: O, defaultTag: lm, features: cm, visible: y === 0, name: "Dialog" })))))))))));
7311
+ return j.createElement(Sp, null, j.createElement(oa, { force: !0 }, j.createElement(Dp, null, j.createElement(fi.Provider, { value: ne }, j.createElement(Nc, { target: b }, j.createElement(oa, { force: !1 }, j.createElement(Y, { slot: O }, j.createElement(k, null, j.createElement(Vp, { initialFocus: i, initialFocusFallback: b, containers: ce, features: P }, j.createElement(fh, { value: C }, U({ ourProps: V, theirProps: f, slot: O, defaultTag: lm, features: cm, visible: w === 0, name: "Dialog" })))))))))));
7312
7312
  }), lm = "div", cm = qr.RenderStrategy | qr.Static;
7313
7313
  function um(e, t) {
7314
7314
  let { transition: n = !1, open: r, ...o } = e, s = fo(), i = e.hasOwnProperty("open") || s !== null, a = e.hasOwnProperty("onClose");
@@ -7345,8 +7345,8 @@ function xm(e, t) {
7345
7345
  }
7346
7346
  let Em = ke(xm), Cm = "input";
7347
7347
  function Tm(e, t) {
7348
- let n = qt(), r = Jl(), o = no(), { id: s = r || `headlessui-input-${n}`, disabled: i = o || !1, autoFocus: a = !1, invalid: l = !1, ...c } = e, u = ac(), f = th(), { isFocused: h, focusProps: d } = Md({ autoFocus: a }), { isHovered: b, hoverProps: m } = Ld({ isDisabled: i }), g = Wd({ ref: t, id: s, "aria-labelledby": u, "aria-describedby": f, "aria-invalid": l ? "true" : void 0, disabled: i || void 0, autoFocus: a }, d, m), y = he(() => ({ disabled: i, invalid: l, hover: b, focus: h, autofocus: a }), [i, l, b, h, a]);
7349
- return Le()({ ourProps: g, theirProps: c, slot: y, defaultTag: Cm, name: "Input" });
7348
+ let n = qt(), r = Jl(), o = no(), { id: s = r || `headlessui-input-${n}`, disabled: i = o || !1, autoFocus: a = !1, invalid: l = !1, ...c } = e, u = ac(), f = th(), { isFocused: h, focusProps: d } = Md({ autoFocus: a }), { isHovered: b, hoverProps: m } = Ld({ isDisabled: i }), g = Wd({ ref: t, id: s, "aria-labelledby": u, "aria-describedby": f, "aria-invalid": l ? "true" : void 0, disabled: i || void 0, autoFocus: a }, d, m), w = he(() => ({ disabled: i, invalid: l, hover: b, focus: h, autofocus: a }), [i, l, b, h, a]);
7349
+ return Le()({ ourProps: g, theirProps: c, slot: w, defaultTag: Cm, name: "Input" });
7350
7350
  }
7351
7351
  let Om = ke(Tm);
7352
7352
  const Pm = "whitespace-nowrap font-normal flex items-center justify-center", Sm = "focus:outline focus:outline-3 focus:outline-primary-500/[.3]", km = "disabled:opacity-15 disabled:pointer-events-none", Vc = (e) => e === "grayLight" || e === "warning", Gc = (e, t) => !t || t === "none" ? "" : e(), Am = (e, t) => Gc(() => {
@@ -7422,8 +7422,8 @@ const Pm = "whitespace-nowrap font-normal flex items-center justify-center", Sm
7422
7422
  primaryColor: c,
7423
7423
  ...u
7424
7424
  }, f) => {
7425
- var w;
7426
- const h = km, d = /link/.test(o) ? null : Am(n, e), b = Sm, m = Lm[r], g = (w = Nm(n, e)) == null ? void 0 : w[o], y = xn(d, g), x = Mm[a];
7425
+ var y;
7426
+ const h = km, d = /link/.test(o) ? null : Am(n, e), b = Sm, m = Lm[r], g = (y = Nm(n, e)) == null ? void 0 : y[o], w = xn(d, g), x = Mm[a];
7427
7427
  return /* @__PURE__ */ A(
7428
7428
  "button",
7429
7429
  {
@@ -7440,7 +7440,7 @@ const Pm = "whitespace-nowrap font-normal flex items-center justify-center", Sm
7440
7440
  b,
7441
7441
  h,
7442
7442
  m,
7443
- y,
7443
+ w,
7444
7444
  x,
7445
7445
  s,
7446
7446
  "cursor-pointer"
@@ -7575,15 +7575,15 @@ const Pm = "whitespace-nowrap font-normal flex items-center justify-center", Sm
7575
7575
  const b = async (m) => {
7576
7576
  try {
7577
7577
  f(!0);
7578
- const { playbookInstanceId: g, errorCode: y, details: x, message: w } = await Pl({
7578
+ const { playbookInstanceId: g, errorCode: w, details: x, message: y } = await Pl({
7579
7579
  bank: "public-sdk",
7580
7580
  email: m,
7581
7581
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || "America/Los_Angeles",
7582
7582
  playbookUid: r
7583
7583
  }) || {};
7584
- if (y)
7584
+ if (w)
7585
7585
  throw new Error(
7586
- `Error initiating playbook: ${w} (Code: ${y}) - Details: ${x}`
7586
+ `Error initiating playbook: ${y} (Code: ${w}) - Details: ${x}`
7587
7587
  );
7588
7588
  o(g);
7589
7589
  } finally {
@@ -9219,7 +9219,7 @@ function wi(e) {
9219
9219
  viewBox: "0 0 ".concat(h, " ").concat(d)
9220
9220
  })
9221
9221
  };
9222
- const y = b && !~u.classes.indexOf("fa-fw") ? {
9222
+ const w = b && !~u.classes.indexOf("fa-fw") ? {
9223
9223
  width: "".concat(h / d * 16 * 0.0625, "em")
9224
9224
  } : {};
9225
9225
  f && (g.attributes[dn] = ""), a && (g.children.push({
@@ -9237,9 +9237,9 @@ function wi(e) {
9237
9237
  maskId: l,
9238
9238
  transform: s,
9239
9239
  symbol: i,
9240
- styles: T(T({}, y), u.styles)
9240
+ styles: T(T({}, w), u.styles)
9241
9241
  }), {
9242
- children: w,
9242
+ children: y,
9243
9243
  attributes: C
9244
9244
  } = n.found && t.found ? Bt("generateAbstractMask", x) || {
9245
9245
  children: [],
@@ -9248,7 +9248,7 @@ function wi(e) {
9248
9248
  children: [],
9249
9249
  attributes: {}
9250
9250
  };
9251
- return x.children = w, x.attributes = C, i ? ib(x) : sb(x);
9251
+ return x.children = y, x.attributes = C, i ? ib(x) : sb(x);
9252
9252
  }
9253
9253
  function wa(e) {
9254
9254
  const {
@@ -9922,18 +9922,18 @@ function Aa(e, t) {
9922
9922
  value: b,
9923
9923
  isSecondary: m
9924
9924
  } = Fb(h), g = c[0].startsWith("FontAwesome");
9925
- let y = yi(d, b), x = y;
9925
+ let w = yi(d, b), x = w;
9926
9926
  if (g) {
9927
- const w = qg(b);
9928
- w.iconName && w.prefix && (y = w.iconName, d = w.prefix);
9927
+ const y = qg(b);
9928
+ y.iconName && y.prefix && (w = y.iconName, d = y.prefix);
9929
9929
  }
9930
- if (y && !m && (!i || i.getAttribute(hi) !== d || i.getAttribute(pi) !== x)) {
9930
+ if (w && !m && (!i || i.getAttribute(hi) !== d || i.getAttribute(pi) !== x)) {
9931
9931
  e.setAttribute(n, x), i && e.removeChild(i);
9932
- const w = xb(), {
9932
+ const y = xb(), {
9933
9933
  extra: C
9934
- } = w;
9935
- C.attributes[As] = t, Ds(y, d).then((v) => {
9936
- const N = wi(T(T({}, w), {}, {
9934
+ } = y;
9935
+ C.attributes[As] = t, Ds(w, d).then((v) => {
9936
+ const N = wi(T(T({}, y), {}, {
9937
9937
  icons: {
9938
9938
  main: v,
9939
9939
  mask: Eu()
@@ -10171,10 +10171,10 @@ var Hb = {
10171
10171
  tag: "g",
10172
10172
  attributes: T({}, h.outer),
10173
10173
  children: [m]
10174
- }, y = "mask-".concat(i || fr()), x = "clip-".concat(i || fr()), w = {
10174
+ }, w = "mask-".concat(i || fr()), x = "clip-".concat(i || fr()), y = {
10175
10175
  tag: "mask",
10176
10176
  attributes: T(T({}, jo), {}, {
10177
- id: y,
10177
+ id: w,
10178
10178
  maskUnits: "userSpaceOnUse",
10179
10179
  maskContentUnits: "userSpaceOnUse"
10180
10180
  }),
@@ -10187,14 +10187,14 @@ var Hb = {
10187
10187
  id: x
10188
10188
  },
10189
10189
  children: zb(f)
10190
- }, w]
10190
+ }, y]
10191
10191
  };
10192
10192
  return n.push(C, {
10193
10193
  tag: "rect",
10194
10194
  attributes: T({
10195
10195
  fill: "currentColor",
10196
10196
  "clip-path": "url(#".concat(x, ")"),
10197
- mask: "url(#".concat(y, ")")
10197
+ mask: "url(#".concat(w, ")")
10198
10198
  }, jo)
10199
10199
  }), {
10200
10200
  children: n,
@@ -10311,8 +10311,8 @@ var Na;
10311
10311
  function Vb() {
10312
10312
  if (Na) return ie;
10313
10313
  Na = 1;
10314
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
10315
- function w(v) {
10314
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
10315
+ function y(v) {
10316
10316
  if (typeof v == "object" && v !== null) {
10317
10317
  var N = v.$$typeof;
10318
10318
  switch (N) {
@@ -10343,35 +10343,35 @@ function Vb() {
10343
10343
  }
10344
10344
  }
10345
10345
  function C(v) {
10346
- return w(v) === c;
10346
+ return y(v) === c;
10347
10347
  }
10348
10348
  return ie.AsyncMode = l, ie.ConcurrentMode = c, ie.ContextConsumer = a, ie.ContextProvider = i, ie.Element = t, ie.ForwardRef = u, ie.Fragment = r, ie.Lazy = b, ie.Memo = d, ie.Portal = n, ie.Profiler = s, ie.StrictMode = o, ie.Suspense = f, ie.isAsyncMode = function(v) {
10349
- return C(v) || w(v) === l;
10349
+ return C(v) || y(v) === l;
10350
10350
  }, ie.isConcurrentMode = C, ie.isContextConsumer = function(v) {
10351
- return w(v) === a;
10351
+ return y(v) === a;
10352
10352
  }, ie.isContextProvider = function(v) {
10353
- return w(v) === i;
10353
+ return y(v) === i;
10354
10354
  }, ie.isElement = function(v) {
10355
10355
  return typeof v == "object" && v !== null && v.$$typeof === t;
10356
10356
  }, ie.isForwardRef = function(v) {
10357
- return w(v) === u;
10357
+ return y(v) === u;
10358
10358
  }, ie.isFragment = function(v) {
10359
- return w(v) === r;
10359
+ return y(v) === r;
10360
10360
  }, ie.isLazy = function(v) {
10361
- return w(v) === b;
10361
+ return y(v) === b;
10362
10362
  }, ie.isMemo = function(v) {
10363
- return w(v) === d;
10363
+ return y(v) === d;
10364
10364
  }, ie.isPortal = function(v) {
10365
- return w(v) === n;
10365
+ return y(v) === n;
10366
10366
  }, ie.isProfiler = function(v) {
10367
- return w(v) === s;
10367
+ return y(v) === s;
10368
10368
  }, ie.isStrictMode = function(v) {
10369
- return w(v) === o;
10369
+ return y(v) === o;
10370
10370
  }, ie.isSuspense = function(v) {
10371
- return w(v) === f;
10371
+ return y(v) === f;
10372
10372
  }, ie.isValidElementType = function(v) {
10373
- return typeof v == "string" || typeof v == "function" || v === r || v === c || v === s || v === o || v === f || v === h || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === d || v.$$typeof === i || v.$$typeof === a || v.$$typeof === u || v.$$typeof === g || v.$$typeof === y || v.$$typeof === x || v.$$typeof === m);
10374
- }, ie.typeOf = w, ie;
10373
+ return typeof v == "string" || typeof v == "function" || v === r || v === c || v === s || v === o || v === f || v === h || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === d || v.$$typeof === i || v.$$typeof === a || v.$$typeof === u || v.$$typeof === g || v.$$typeof === w || v.$$typeof === x || v.$$typeof === m);
10374
+ }, ie.typeOf = y, ie;
10375
10375
  }
10376
10376
  var ae = {};
10377
10377
  /** @license React v16.13.1
@@ -10385,10 +10385,10 @@ var ae = {};
10385
10385
  var La;
10386
10386
  function Gb() {
10387
10387
  return La || (La = 1, process.env.NODE_ENV !== "production" && function() {
10388
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
10389
- function w(R) {
10388
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
10389
+ function y(R) {
10390
10390
  return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
10391
- R === r || R === c || R === s || R === o || R === f || R === h || typeof R == "object" && R !== null && (R.$$typeof === b || R.$$typeof === d || R.$$typeof === i || R.$$typeof === a || R.$$typeof === u || R.$$typeof === g || R.$$typeof === y || R.$$typeof === x || R.$$typeof === m);
10391
+ R === r || R === c || R === s || R === o || R === f || R === h || typeof R == "object" && R !== null && (R.$$typeof === b || R.$$typeof === d || R.$$typeof === i || R.$$typeof === a || R.$$typeof === u || R.$$typeof === g || R.$$typeof === w || R.$$typeof === x || R.$$typeof === m);
10392
10392
  }
10393
10393
  function C(R) {
10394
10394
  if (typeof R == "object" && R !== null) {
@@ -10462,7 +10462,7 @@ function Gb() {
10462
10462
  function xe(R) {
10463
10463
  return C(R) === f;
10464
10464
  }
10465
- ae.AsyncMode = v, ae.ConcurrentMode = N, ae.ContextConsumer = q, ae.ContextProvider = k, ae.Element = B, ae.ForwardRef = G, ae.Fragment = ce, ae.Lazy = fe, ae.Memo = se, ae.Portal = pe, ae.Profiler = W, ae.StrictMode = Y, ae.Suspense = ne, ae.isAsyncMode = V, ae.isConcurrentMode = E, ae.isContextConsumer = P, ae.isContextProvider = U, ae.isElement = S, ae.isForwardRef = _, ae.isFragment = K, ae.isLazy = z, ae.isMemo = I, ae.isPortal = Q, ae.isProfiler = X, ae.isStrictMode = Z, ae.isSuspense = xe, ae.isValidElementType = w, ae.typeOf = C;
10465
+ ae.AsyncMode = v, ae.ConcurrentMode = N, ae.ContextConsumer = q, ae.ContextProvider = k, ae.Element = B, ae.ForwardRef = G, ae.Fragment = ce, ae.Lazy = fe, ae.Memo = se, ae.Portal = pe, ae.Profiler = W, ae.StrictMode = Y, ae.Suspense = ne, ae.isAsyncMode = V, ae.isConcurrentMode = E, ae.isContextConsumer = P, ae.isContextProvider = U, ae.isElement = S, ae.isForwardRef = _, ae.isFragment = K, ae.isLazy = z, ae.isMemo = I, ae.isPortal = Q, ae.isProfiler = X, ae.isStrictMode = Z, ae.isSuspense = xe, ae.isValidElementType = y, ae.typeOf = C;
10466
10466
  }()), ae;
10467
10467
  }
10468
10468
  var Ma;
@@ -10605,16 +10605,16 @@ function Qb() {
10605
10605
  return P;
10606
10606
  }
10607
10607
  var h = "<<anonymous>>", d = {
10608
- array: y("array"),
10609
- bigint: y("bigint"),
10610
- bool: y("boolean"),
10611
- func: y("function"),
10612
- number: y("number"),
10613
- object: y("object"),
10614
- string: y("string"),
10615
- symbol: y("symbol"),
10608
+ array: w("array"),
10609
+ bigint: w("bigint"),
10610
+ bool: w("boolean"),
10611
+ func: w("function"),
10612
+ number: w("number"),
10613
+ object: w("object"),
10614
+ string: w("string"),
10615
+ symbol: w("symbol"),
10616
10616
  any: x(),
10617
- arrayOf: w,
10617
+ arrayOf: y,
10618
10618
  element: C(),
10619
10619
  elementType: v(),
10620
10620
  instanceOf: N,
@@ -10655,7 +10655,7 @@ function Qb() {
10655
10655
  var _ = S.bind(null, !1);
10656
10656
  return _.isRequired = S.bind(null, !0), _;
10657
10657
  }
10658
- function y(E) {
10658
+ function w(E) {
10659
10659
  function P(U, S, _, K, z, I) {
10660
10660
  var Q = U[S], X = Y(Q);
10661
10661
  if (X !== E) {
@@ -10672,7 +10672,7 @@ function Qb() {
10672
10672
  function x() {
10673
10673
  return g(i);
10674
10674
  }
10675
- function w(E) {
10675
+ function y(E) {
10676
10676
  function P(U, S, _, K, z) {
10677
10677
  if (typeof E != "function")
10678
10678
  return new m("Property `" + z + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
@@ -11042,7 +11042,7 @@ function ov() {
11042
11042
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
11043
11043
  }
11044
11044
  function sv(e) {
11045
- var t, n = e.beat, r = e.fade, o = e.beatFade, s = e.bounce, i = e.shake, a = e.flash, l = e.spin, c = e.spinPulse, u = e.spinReverse, f = e.pulse, h = e.fixedWidth, d = e.inverse, b = e.border, m = e.listItem, g = e.flip, y = e.size, x = e.rotation, w = e.pull, C = (t = {
11045
+ var t, n = e.beat, r = e.fade, o = e.beatFade, s = e.bounce, i = e.shake, a = e.flash, l = e.spin, c = e.spinPulse, u = e.spinReverse, f = e.pulse, h = e.fixedWidth, d = e.inverse, b = e.border, m = e.listItem, g = e.flip, w = e.size, x = e.rotation, y = e.pull, C = (t = {
11046
11046
  "fa-beat": n,
11047
11047
  "fa-fade": r,
11048
11048
  "fa-beat-fade": o,
@@ -11060,7 +11060,7 @@ function sv(e) {
11060
11060
  "fa-flip": g === !0,
11061
11061
  "fa-flip-horizontal": g === "horizontal" || g === "both",
11062
11062
  "fa-flip-vertical": g === "vertical" || g === "both"
11063
- }, yn(t, "fa-".concat(y), typeof y < "u" && y !== null), yn(t, "fa-rotate-".concat(x), typeof x < "u" && x !== null && x !== 0), yn(t, "fa-pull-".concat(w), typeof w < "u" && w !== null), yn(t, "fa-swap-opacity", e.swapOpacity), t);
11063
+ }, yn(t, "fa-".concat(w), typeof w < "u" && w !== null), yn(t, "fa-rotate-".concat(x), typeof x < "u" && x !== null && x !== 0), yn(t, "fa-pull-".concat(y), typeof y < "u" && y !== null), yn(t, "fa-swap-opacity", e.swapOpacity), t);
11064
11064
  return Object.keys(C).map(function(v) {
11065
11065
  return C[v] ? v : null;
11066
11066
  }).filter(function(v) {
@@ -11160,8 +11160,8 @@ function Wt(e) {
11160
11160
  var m = b.abstract, g = {
11161
11161
  ref: t
11162
11162
  };
11163
- return Object.keys(n).forEach(function(y) {
11164
- Wt.defaultProps.hasOwnProperty(y) || (g[y] = n[y]);
11163
+ return Object.keys(n).forEach(function(w) {
11164
+ Wt.defaultProps.hasOwnProperty(w) || (g[w] = n[w]);
11165
11165
  }), dv(m[0], g);
11166
11166
  }
11167
11167
  Wt.displayName = "FontAwesomeIcon";
@@ -11428,8 +11428,8 @@ function Dv(e, t) {
11428
11428
  ancestorScroll: h = !1,
11429
11429
  bubbles: d,
11430
11430
  capture: b
11431
- } = t, m = Lu(), g = bn(typeof l == "function" ? l : () => !1), y = typeof l == "function" ? g : l, x = $.useRef(!1), {
11432
- escapeKey: w,
11431
+ } = t, m = Lu(), g = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? g : l, x = $.useRef(!1), {
11432
+ escapeKey: y,
11433
11433
  outsidePress: C
11434
11434
  } = Ja(d), {
11435
11435
  escapeKey: v,
@@ -11439,7 +11439,7 @@ function Dv(e, t) {
11439
11439
  if (!n || !i || !a || W.key !== "Escape" || q.current)
11440
11440
  return;
11441
11441
  const ne = (Y = s.current.floatingContext) == null ? void 0 : Y.nodeId, O = m ? Yo(m.nodesRef.current, ne) : [];
11442
- if (!w && (W.stopPropagation(), O.length > 0)) {
11442
+ if (!y && (W.stopPropagation(), O.length > 0)) {
11443
11443
  let V = !0;
11444
11444
  if (O.forEach((E) => {
11445
11445
  var P;
@@ -11463,7 +11463,7 @@ function Dv(e, t) {
11463
11463
  const ne = s.current.insideReactTree;
11464
11464
  s.current.insideReactTree = !1;
11465
11465
  const O = x.current;
11466
- if (x.current = !1, c === "click" && O || ne || typeof y == "function" && !y(W))
11466
+ if (x.current = !1, c === "click" && O || ne || typeof w == "function" && !w(W))
11467
11467
  return;
11468
11468
  const V = Gn(W), E = "[" + Nv("inert") + "]", P = Ga(o.floating).querySelectorAll(E);
11469
11469
  let U = ye(V) ? V : null;
@@ -11513,7 +11513,7 @@ function Dv(e, t) {
11513
11513
  $.useEffect(() => {
11514
11514
  if (!n || !i)
11515
11515
  return;
11516
- s.current.__escapeKeyBubbles = w, s.current.__outsidePressBubbles = C;
11516
+ s.current.__escapeKeyBubbles = y, s.current.__outsidePressBubbles = C;
11517
11517
  let W = -1;
11518
11518
  function Y(P) {
11519
11519
  r(!1, P, "ancestor-scroll");
@@ -11532,7 +11532,7 @@ function Dv(e, t) {
11532
11532
  );
11533
11533
  }
11534
11534
  const V = Ga(o.floating);
11535
- a && (V.addEventListener("keydown", v ? G : B, v), V.addEventListener("compositionstart", ne), V.addEventListener("compositionend", O)), y && V.addEventListener(c, N ? fe : ce, N);
11535
+ a && (V.addEventListener("keydown", v ? G : B, v), V.addEventListener("compositionstart", ne), V.addEventListener("compositionend", O)), w && V.addEventListener(c, N ? fe : ce, N);
11536
11536
  let E = [];
11537
11537
  return h && (ye(o.domReference) && (E = En(o.domReference)), ye(o.floating) && (E = E.concat(En(o.floating))), !ye(o.reference) && o.reference && o.reference.contextElement && (E = E.concat(En(o.reference.contextElement)))), E = E.filter((P) => {
11538
11538
  var U;
@@ -11542,13 +11542,13 @@ function Dv(e, t) {
11542
11542
  passive: !0
11543
11543
  });
11544
11544
  }), () => {
11545
- a && (V.removeEventListener("keydown", v ? G : B, v), V.removeEventListener("compositionstart", ne), V.removeEventListener("compositionend", O)), y && V.removeEventListener(c, N ? fe : ce, N), E.forEach((P) => {
11545
+ a && (V.removeEventListener("keydown", v ? G : B, v), V.removeEventListener("compositionstart", ne), V.removeEventListener("compositionend", O)), w && V.removeEventListener(c, N ? fe : ce, N), E.forEach((P) => {
11546
11546
  P.removeEventListener("scroll", Y);
11547
11547
  }), window.clearTimeout(W);
11548
11548
  };
11549
- }, [s, o, a, y, c, n, r, h, i, w, C, B, v, G, ce, N, fe]), $.useEffect(() => {
11549
+ }, [s, o, a, w, c, n, r, h, i, y, C, B, v, G, ce, N, fe]), $.useEffect(() => {
11550
11550
  s.current.insideReactTree = !1;
11551
- }, [s, y, c]);
11551
+ }, [s, w, c]);
11552
11552
  const se = $.useMemo(() => ({
11553
11553
  onKeyDown: B,
11554
11554
  ...u && {
@@ -11640,43 +11640,43 @@ function zv(e) {
11640
11640
  reference: a
11641
11641
  }
11642
11642
  }
11643
- }), b = $.useCallback((w) => {
11644
- const C = ye(w) ? {
11645
- getBoundingClientRect: () => w.getBoundingClientRect(),
11646
- getClientRects: () => w.getClientRects(),
11647
- contextElement: w
11648
- } : w;
11643
+ }), b = $.useCallback((y) => {
11644
+ const C = ye(y) ? {
11645
+ getBoundingClientRect: () => y.getBoundingClientRect(),
11646
+ getClientRects: () => y.getClientRects(),
11647
+ contextElement: y
11648
+ } : y;
11649
11649
  l(C), d.refs.setReference(C);
11650
- }, [d.refs]), m = $.useCallback((w) => {
11651
- (ye(w) || w === null) && (f.current = w, i(w)), (ye(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
11650
+ }, [d.refs]), m = $.useCallback((y) => {
11651
+ (ye(y) || y === null) && (f.current = y, i(y)), (ye(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
11652
11652
  // `null` to support `positionReference` + an unstable `reference`
11653
11653
  // callback ref.
11654
- w !== null && !ye(w)) && d.refs.setReference(w);
11654
+ y !== null && !ye(y)) && d.refs.setReference(y);
11655
11655
  }, [d.refs]), g = $.useMemo(() => ({
11656
11656
  ...d.refs,
11657
11657
  setReference: m,
11658
11658
  setPositionReference: b,
11659
11659
  domReference: f
11660
- }), [d.refs, m, b]), y = $.useMemo(() => ({
11660
+ }), [d.refs, m, b]), w = $.useMemo(() => ({
11661
11661
  ...d.elements,
11662
11662
  domReference: u
11663
11663
  }), [d.elements, u]), x = $.useMemo(() => ({
11664
11664
  ...d,
11665
11665
  ...r,
11666
11666
  refs: g,
11667
- elements: y,
11667
+ elements: w,
11668
11668
  nodeId: t
11669
- }), [d, g, y, t, r]);
11669
+ }), [d, g, w, t, r]);
11670
11670
  return qs(() => {
11671
11671
  r.dataRef.current.floatingContext = x;
11672
- const w = h == null ? void 0 : h.nodesRef.current.find((C) => C.id === t);
11673
- w && (w.context = x);
11672
+ const y = h == null ? void 0 : h.nodesRef.current.find((C) => C.id === t);
11673
+ y && (y.context = x);
11674
11674
  }), $.useMemo(() => ({
11675
11675
  ...d,
11676
11676
  context: x,
11677
11677
  refs: g,
11678
- elements: y
11679
- }), [d, g, y, x]);
11678
+ elements: w
11679
+ }), [d, g, w, x]);
11680
11680
  }
11681
11681
  function Ko(e, t, n) {
11682
11682
  const r = /* @__PURE__ */ new Map(), o = n === "item";
@@ -11985,7 +11985,7 @@ const Uv = {
11985
11985
  }), { buttons: m } = Nf({
11986
11986
  taskStatus: e.workflowStatus,
11987
11987
  canStart: s
11988
- }), g = he(() => e.imageRequired === 0 ? null : e.imageRequired === 1 ? Qo.SCREENSHOT : e.imageRequired === 2 ? Qo.PHOTO : null, [e.imageRequired]), y = async (x) => {
11988
+ }), g = he(() => e.imageRequired === 0 ? null : e.imageRequired === 1 ? Qo.SCREENSHOT : e.imageRequired === 2 ? Qo.PHOTO : null, [e.imageRequired]), w = async (x) => {
11989
11989
  try {
11990
11990
  h(!0), await r(x);
11991
11991
  } finally {
@@ -11993,7 +11993,7 @@ const Uv = {
11993
11993
  }
11994
11994
  };
11995
11995
  if (o === "list") {
11996
- const x = he(() => e.workflowStatus === ge.COMPLETED ? "success" : e.workflowStatus === ge.IN_PROGRESS ? "primary" : "default", [e.workflowStatus]), w = he(() => {
11996
+ const x = he(() => e.workflowStatus === ge.COMPLETED ? "success" : e.workflowStatus === ge.IN_PROGRESS ? "primary" : "default", [e.workflowStatus]), y = he(() => {
11997
11997
  const C = [];
11998
11998
  return m.forEach((v) => {
11999
11999
  v === "START" && C.push({
@@ -12046,7 +12046,7 @@ const Uv = {
12046
12046
  {
12047
12047
  title: e.workflowStatus,
12048
12048
  variant: x,
12049
- transitions: w,
12049
+ transitions: y,
12050
12050
  onClick: (C) => {
12051
12051
  r(C);
12052
12052
  }
@@ -12111,7 +12111,7 @@ const Uv = {
12111
12111
  mv,
12112
12112
  {
12113
12113
  buttons: m,
12114
- onButtonClick: y,
12114
+ onButtonClick: w,
12115
12115
  disabled: f
12116
12116
  }
12117
12117
  ) }),
@@ -12260,29 +12260,27 @@ const oy = (e, t) => {
12260
12260
  e.playbookInstanceId,
12261
12261
  {
12262
12262
  onTaskExpanded: () => {
12263
- var y, x;
12263
+ var w, x;
12264
12264
  console.log(
12265
12265
  "Header height before update:",
12266
- (y = i.current) == null ? void 0 : y.offsetHeight
12266
+ (w = i.current) == null ? void 0 : w.offsetHeight
12267
12267
  ), l(((x = i.current) == null ? void 0 : x.offsetHeight) || 0);
12268
12268
  }
12269
12269
  }
12270
12270
  );
12271
12271
  Ee(() => (i.current && new ResizeObserver((x) => {
12272
- var w;
12272
+ var y;
12273
12273
  for (const C of x)
12274
12274
  console.log("ResizeObserver entry:", C), C.contentRect && l(
12275
- ((w = i.current) == null ? void 0 : w.offsetHeight) || 0
12275
+ ((y = i.current) == null ? void 0 : y.offsetHeight) || 0
12276
12276
  );
12277
12277
  }).observe(i.current), () => {
12278
12278
  i.current && new ResizeObserver(() => {
12279
12279
  }).unobserve(i.current);
12280
12280
  }), [i]);
12281
12281
  const f = he(() => {
12282
- const y = s.find(
12283
- (x) => x.workflowStatus === ge.COMPLETED
12284
- );
12285
- return y ? y.sequenceOrder + 1 : 0;
12282
+ const w = s.filter((x) => x.workflowStatus === ge.COMPLETED).sort((x, y) => y.sequenceOrder - x.sequenceOrder)[0];
12283
+ return console.log({ lastCompletedTask: w }), w ? w.sequenceOrder + 1 : 0;
12286
12284
  }, [s]);
12287
12285
  return /* @__PURE__ */ ve(
12288
12286
  "div",
@@ -12343,23 +12341,23 @@ const oy = (e, t) => {
12343
12341
  {
12344
12342
  playbookMode: t,
12345
12343
  numberOfTasks: e.numberofTasks,
12346
- children: s.map((y, x) => {
12347
- var w;
12344
+ children: s.map((w, x) => {
12345
+ var y;
12348
12346
  return /* @__PURE__ */ A(
12349
12347
  ry,
12350
12348
  {
12351
- task: y,
12349
+ task: w,
12352
12350
  step: x + 1,
12353
12351
  viewMode: t,
12354
12352
  playbookId: e.playbookId,
12355
- canStart: y.sequenceOrder === f,
12356
- onButtonClick: (C) => n(C, y.taskInstanceId),
12353
+ canStart: w.sequenceOrder === f,
12354
+ onButtonClick: (C) => n(C, w.taskInstanceId),
12357
12355
  playbookType: "Non-Sequential",
12358
12356
  taskStyle: {
12359
- titleColor: (w = r == null ? void 0 : r.whiteLabel) == null ? void 0 : w.primaryColor
12357
+ titleColor: (y = r == null ? void 0 : r.whiteLabel) == null ? void 0 : y.primaryColor
12360
12358
  },
12361
- isExpanded: c(y.taskInstanceId),
12362
- toggleExpanded: () => u(y.taskInstanceId),
12359
+ isExpanded: c(w.taskInstanceId),
12360
+ toggleExpanded: () => u(w.taskInstanceId),
12363
12361
  listStickyTopBase: a || 104
12364
12362
  },
12365
12363
  x