@confidencesystemsinc/sdk 1.2.2 → 1.2.3

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.js CHANGED
@@ -289,33 +289,33 @@ function Co(e) {
289
289
  function ml(e) {
290
290
  let t = !1, n = 0, r = !1, o;
291
291
  const s = ts(), i = (m) => {
292
- var b;
293
- r || (h(new pl(m)), (b = e.abort) == null || b.call(e));
292
+ var g;
293
+ r || (h(new pl(m)), (g = e.abort) == null || g.call(e));
294
294
  }, a = () => {
295
295
  t = !0;
296
296
  }, l = () => {
297
297
  t = !1;
298
298
  }, c = () => Ks.isFocused() && (e.networkMode === "always" || Ur.isOnline()) && e.canRun(), u = () => hl(e.networkMode) && e.canRun(), f = (m) => {
299
- var b;
300
- r || (r = !0, (b = e.onSuccess) == null || b.call(e, m), o == null || o(), s.resolve(m));
299
+ var g;
300
+ r || (r = !0, (g = e.onSuccess) == null || g.call(e, m), o == null || o(), s.resolve(m));
301
301
  }, h = (m) => {
302
- var b;
303
- r || (r = !0, (b = e.onError) == null || b.call(e, m), o == null || o(), s.reject(m));
302
+ var g;
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
- var b;
305
+ var g;
306
306
  o = (w) => {
307
307
  (r || c()) && m(w);
308
- }, (b = e.onPause) == null || b.call(e);
308
+ }, (g = e.onPause) == null || g.call(e);
309
309
  }).then(() => {
310
310
  var m;
311
311
  o = void 0, r || (m = e.onContinue) == null || m.call(e);
312
- }), g = () => {
312
+ }), b = () => {
313
313
  if (r)
314
314
  return;
315
315
  let m;
316
- const b = n === 0 ? e.initialPromise : void 0;
316
+ const g = n === 0 ? e.initialPromise : void 0;
317
317
  try {
318
- m = b ?? e.fn();
318
+ m = g ?? e.fn();
319
319
  } catch (w) {
320
320
  m = Promise.reject(w);
321
321
  }
@@ -329,7 +329,7 @@ function ml(e) {
329
329
  return;
330
330
  }
331
331
  n++, (N = e.onFail) == null || N.call(e, n, w), Vu(C).then(() => c() ? void 0 : d()).then(() => {
332
- t ? h(w) : g();
332
+ t ? h(w) : b();
333
333
  });
334
334
  });
335
335
  };
@@ -340,7 +340,7 @@ function ml(e) {
340
340
  cancelRetry: a,
341
341
  continueRetry: l,
342
342
  canStart: u,
343
- start: () => (u() ? g() : d().then(g), s)
343
+ start: () => (u() ? b() : d().then(b), s)
344
344
  };
345
345
  }
346
346
  var Ju = (e) => setTimeout(e, 0);
@@ -555,7 +555,7 @@ var Te = Zu(), en, tl, gl = (tl = class {
555
555
  this
556
556
  ), F(this, An, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((c = i.fetchOptions) == null ? void 0 : c.meta)) && J(this, qe, it).call(this, { type: "fetch", meta: (u = i.fetchOptions) == null ? void 0 : u.meta });
557
557
  const a = (f) => {
558
- var h, d, g, m;
558
+ var h, d, b, m;
559
559
  Co(f) && f.silent || J(this, qe, it).call(this, {
560
560
  type: "error",
561
561
  error: f
@@ -563,8 +563,8 @@ var Te = Zu(), en, tl, gl = (tl = class {
563
563
  h,
564
564
  f,
565
565
  this
566
- ), (m = (g = p(this, Ue).config).onSettled) == null || m.call(
567
- g,
566
+ ), (m = (b = p(this, Ue).config).onSettled) == null || m.call(
567
+ b,
568
568
  this.state.data,
569
569
  f,
570
570
  this
@@ -575,7 +575,7 @@ var Te = Zu(), en, tl, gl = (tl = class {
575
575
  fn: i.fetchFn,
576
576
  abort: r.abort.bind(r),
577
577
  onSuccess: (f) => {
578
- var h, d, g, m;
578
+ var h, d, b, m;
579
579
  if (f === void 0) {
580
580
  process.env.NODE_ENV !== "production" && console.error(
581
581
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
@@ -584,12 +584,12 @@ var Te = Zu(), en, tl, gl = (tl = class {
584
584
  }
585
585
  try {
586
586
  this.setData(f);
587
- } catch (b) {
588
- a(b);
587
+ } catch (g) {
588
+ a(g);
589
589
  return;
590
590
  }
591
- (d = (h = p(this, Ue).config).onSuccess) == null || d.call(h, f, this), (m = (g = p(this, Ue).config).onSettled) == null || m.call(
592
- g,
591
+ (d = (h = p(this, Ue).config).onSuccess) == null || d.call(h, f, this), (m = (b = p(this, Ue).config).onSettled) == null || m.call(
592
+ b,
593
593
  f,
594
594
  this.state.error,
595
595
  this
@@ -819,7 +819,7 @@ var Ze, rl, nf = (rl = 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, g, m, b, w, x, y, 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, Ot).call(this, { type: "continue" });
825
825
  };
@@ -862,14 +862,14 @@ var Ze, rl, nf = (rl = class extends jn {
862
862
  t,
863
863
  this.state.context,
864
864
  this
865
- )), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, B, t, this.state.context)), await ((g = (d = p(this, $e).config).onSettled) == null ? void 0 : g.call(
865
+ )), await ((h = (f = this.options).onSuccess) == null ? void 0 : h.call(f, B, t, this.state.context)), await ((b = (d = p(this, $e).config).onSettled) == null ? void 0 : b.call(
866
866
  d,
867
867
  B,
868
868
  null,
869
869
  this.state.variables,
870
870
  this.state.context,
871
871
  this
872
- )), await ((b = (m = this.options).onSettled) == null ? void 0 : b.call(m, B, null, t, this.state.context)), J(this, tt, Ot).call(this, { type: "success", data: B }), B;
872
+ )), await ((g = (m = this.options).onSettled) == null ? void 0 : g.call(m, B, null, t, this.state.context)), J(this, tt, Ot).call(this, { type: "success", data: B }), B;
873
873
  } catch (B) {
874
874
  try {
875
875
  throw await ((x = (w = p(this, $e).config).onError) == null ? void 0 : x.call(
@@ -1082,12 +1082,12 @@ function Pr(e) {
1082
1082
  function ki(e) {
1083
1083
  return {
1084
1084
  onFetch: (t, n) => {
1085
- var u, f, h, d, g;
1086
- const r = t.options, o = (h = (f = (u = t.fetchOptions) == null ? void 0 : u.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, s = ((d = t.state.data) == null ? void 0 : d.pages) || [], i = ((g = t.state.data) == null ? void 0 : g.pageParams) || [];
1085
+ var u, f, h, d, b;
1086
+ const r = t.options, o = (h = (f = (u = t.fetchOptions) == null ? void 0 : u.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, s = ((d = t.state.data) == null ? void 0 : d.pages) || [], i = ((b = t.state.data) == null ? void 0 : b.pageParams) || [];
1087
1087
  let a = { pages: [], pageParams: [] }, l = 0;
1088
1088
  const c = async () => {
1089
1089
  let m = !1;
1090
- const b = (y) => {
1090
+ const g = (y) => {
1091
1091
  Object.defineProperty(y, "signal", {
1092
1092
  enumerable: !0,
1093
1093
  get: () => (t.signal.aborted ? m = !0 : t.signal.addEventListener("abort", () => {
@@ -1106,7 +1106,7 @@ function ki(e) {
1106
1106
  direction: v ? "backward" : "forward",
1107
1107
  meta: t.options.meta
1108
1108
  };
1109
- b(N);
1109
+ g(N);
1110
1110
  const q = await w(
1111
1111
  N
1112
1112
  ), { maxPages: k } = t.options, B = v ? Yu : Gu;
@@ -1133,8 +1133,8 @@ function ki(e) {
1133
1133
  return a;
1134
1134
  };
1135
1135
  t.options.persister ? t.fetchFn = () => {
1136
- var m, b;
1137
- return (b = (m = t.options).persister) == null ? void 0 : b.call(
1136
+ var m, g;
1137
+ return (g = (m = t.options).persister) == null ? void 0 : g.call(
1138
1138
  m,
1139
1139
  c,
1140
1140
  {
@@ -1484,15 +1484,15 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
1484
1484
  ...bl(u.data, t.options)
1485
1485
  }), n._optimisticResults === "isRestoring" && (f.fetchStatus = "idle");
1486
1486
  }
1487
- let { error: g, errorUpdatedAt: m, status: b } = f;
1487
+ let { error: b, errorUpdatedAt: m, status: g } = f;
1488
1488
  d = f.data;
1489
1489
  let w = !1;
1490
- if (n.placeholderData !== void 0 && d === void 0 && b === "pending") {
1490
+ if (n.placeholderData !== void 0 && d === void 0 && g === "pending") {
1491
1491
  let G;
1492
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
- ) : n.placeholderData, G !== void 0 && (b = "success", d = es(
1495
+ ) : n.placeholderData, G !== void 0 && (g = "success", d = es(
1496
1496
  s == null ? void 0 : s.data,
1497
1497
  G,
1498
1498
  n
@@ -1507,18 +1507,18 @@ var be, At, Rt, Rn, $n, $t, In, Fn, il, af = (il = class {
1507
1507
  } catch (G) {
1508
1508
  F(this, Ft, G);
1509
1509
  }
1510
- p(this, Ft) && (g = p(this, Ft), d = p(this, Ln), m = Date.now(), b = "error");
1511
- const x = f.fetchStatus === "fetching", y = b === "pending", C = b === "error", v = y && x, N = d !== void 0, k = {
1512
- status: b,
1510
+ p(this, Ft) && (b = p(this, Ft), d = p(this, Ln), m = Date.now(), g = "error");
1511
+ const x = f.fetchStatus === "fetching", y = g === "pending", C = g === "error", v = y && x, N = d !== void 0, k = {
1512
+ status: g,
1513
1513
  fetchStatus: f.fetchStatus,
1514
1514
  isPending: y,
1515
- isSuccess: b === "success",
1515
+ isSuccess: g === "success",
1516
1516
  isError: C,
1517
1517
  isInitialLoading: v,
1518
1518
  isLoading: v,
1519
1519
  data: d,
1520
1520
  dataUpdatedAt: f.dataUpdatedAt,
1521
- error: g,
1521
+ error: b,
1522
1522
  errorUpdatedAt: m,
1523
1523
  failureCount: f.fetchFailureCount,
1524
1524
  failureReason: f.fetchFailureReason,
@@ -1765,7 +1765,7 @@ var mf = $.createContext(pf()), gf = () => $.useContext(mf), bf = (e, t) => {
1765
1765
  n.clearReset();
1766
1766
  });
1767
1767
  function Cf(e, t, n) {
1768
- var f, h, d, g, m;
1768
+ var f, h, d, b, m;
1769
1769
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
1770
1770
  throw new Error(
1771
1771
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
@@ -1785,8 +1785,8 @@ function Cf(e, t, n) {
1785
1785
  ), c = l.getOptimisticResult(i), u = !o && e.subscribed !== !1;
1786
1786
  if ($.useSyncExternalStore(
1787
1787
  $.useCallback(
1788
- (b) => {
1789
- const w = u ? l.subscribe(Te.batchCalls(b)) : Fe;
1788
+ (g) => {
1789
+ const w = u ? l.subscribe(Te.batchCalls(g)) : Fe;
1790
1790
  return l.updateResult(), w;
1791
1791
  },
1792
1792
  [l, u]
@@ -1805,19 +1805,19 @@ function Cf(e, t, n) {
1805
1805
  suspense: i.suspense
1806
1806
  }))
1807
1807
  throw c.error;
1808
- if ((g = (d = r.getDefaultOptions().queries) == null ? void 0 : d._experimental_afterQuery) == null || g.call(
1808
+ if ((b = (d = r.getDefaultOptions().queries) == null ? void 0 : d._experimental_afterQuery) == null || b.call(
1809
1809
  d,
1810
1810
  i,
1811
1811
  c
1812
1812
  ), i.experimental_prefetchInRender && !cn && xf(c, o)) {
1813
- const b = a ? (
1813
+ const g = a ? (
1814
1814
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1815
1815
  Ii(i, l, s)
1816
1816
  ) : (
1817
1817
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1818
1818
  (m = r.getQueryCache().get(i.queryHash)) == null ? void 0 : m.promise
1819
1819
  );
1820
- b == null || b.catch(Fe).finally(() => {
1820
+ g == null || g.catch(Fe).finally(() => {
1821
1821
  l.updateResult();
1822
1822
  });
1823
1823
  }
@@ -2123,15 +2123,15 @@ const zn = () => Se(Js), Tl = ({
2123
2123
  let r = (o) => {
2124
2124
  const s = [];
2125
2125
  let i = 0, a = 0, l = 0, c;
2126
- for (let g = 0; g < o.length; g++) {
2127
- let m = o[g];
2126
+ for (let b = 0; b < o.length; b++) {
2127
+ let m = o[b];
2128
2128
  if (i === 0 && a === 0) {
2129
2129
  if (m === hs) {
2130
- s.push(o.slice(l, g)), l = g + _f;
2130
+ s.push(o.slice(l, b)), l = b + _f;
2131
2131
  continue;
2132
2132
  }
2133
2133
  if (m === "/") {
2134
- c = g;
2134
+ c = b;
2135
2135
  continue;
2136
2136
  }
2137
2137
  }
@@ -2192,30 +2192,30 @@ const zn = () => Se(Js), Tl = ({
2192
2192
  isExternal: f,
2193
2193
  modifiers: h,
2194
2194
  hasImportantModifier: d,
2195
- baseClassName: g,
2195
+ baseClassName: b,
2196
2196
  maybePostfixModifierPosition: m
2197
2197
  } = n(u);
2198
2198
  if (f) {
2199
2199
  l = u + (l.length > 0 ? " " + l : l);
2200
2200
  continue;
2201
2201
  }
2202
- let b = !!m, w = r(b ? g.substring(0, m) : g);
2202
+ let g = !!m, w = r(g ? b.substring(0, m) : b);
2203
2203
  if (!w) {
2204
- if (!b) {
2204
+ if (!g) {
2205
2205
  l = u + (l.length > 0 ? " " + l : l);
2206
2206
  continue;
2207
2207
  }
2208
- if (w = r(g), !w) {
2208
+ if (w = r(b), !w) {
2209
2209
  l = u + (l.length > 0 ? " " + l : l);
2210
2210
  continue;
2211
2211
  }
2212
- b = !1;
2212
+ g = !1;
2213
2213
  }
2214
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(w, b);
2218
+ const v = o(w, g);
2219
2219
  for (let N = 0; N < v.length; ++N) {
2220
2220
  const q = v[N];
2221
2221
  i.push(y + q);
@@ -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", ld = (e) => e === "number", cd = (e) => e === "family-name", Ml = (e) => e === "shadow", ud = () => {
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"), g = Ce("blur"), m = Ce("perspective"), b = Ce("aspect"), w = Ce("ease"), x = Ce("animate"), y = () => ["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",
@@ -2308,7 +2308,7 @@ const Ce = (e) => {
2308
2308
  // Deprecated since Tailwind CSS v4.0.0
2309
2309
  "",
2310
2310
  "none",
2311
- g,
2311
+ b,
2312
2312
  M,
2313
2313
  L
2314
2314
  ], X = () => ["none", ee, M, L], Z = () => ["none", ee, M, L], xe = () => [ee, M, L], A = () => [gn, "full", ...k()];
@@ -2344,7 +2344,7 @@ const Ce = (e) => {
2344
2344
  * @see https://tailwindcss.com/docs/aspect-ratio
2345
2345
  */
2346
2346
  aspect: [{
2347
- aspect: ["auto", "square", gn, L, M, b]
2347
+ aspect: ["auto", "square", gn, L, M, g]
2348
2348
  }],
2349
2349
  /**
2350
2350
  * Container
@@ -5053,14 +5053,14 @@ function Rd(e) {
5053
5053
  const h = Vt(f.target), d = ps(h);
5054
5054
  if (!s.current.isFocusWithin && d === zl(f.nativeEvent)) {
5055
5055
  r && r(f), o && o(!0), s.current.isFocusWithin = !0, c(f);
5056
- let g = f.currentTarget;
5056
+ let b = f.currentTarget;
5057
5057
  i(h, "focus", (m) => {
5058
- if (s.current.isFocusWithin && !jl(g, m.target)) {
5059
- let b = new h.defaultView.FocusEvent("blur", {
5058
+ if (s.current.isFocusWithin && !jl(b, m.target)) {
5059
+ let g = new h.defaultView.FocusEvent("blur", {
5060
5060
  relatedTarget: m.target
5061
5061
  });
5062
- xd(b, g);
5063
- let w = Ul(b);
5062
+ xd(g, b);
5063
+ let w = Ul(g);
5064
5064
  l(w);
5065
5065
  }
5066
5066
  }, {
@@ -5111,8 +5111,8 @@ function Id(e) {
5111
5111
  }).current;
5112
5112
  Ee($d, []);
5113
5113
  let { addGlobalListener: l, removeAllGlobalListeners: c } = Hl(), { hoverProps: u, triggerHoverEnd: f } = de(() => {
5114
- let h = (m, b) => {
5115
- if (a.pointerType = b, o || b === "touch" || a.isHovered || !m.currentTarget.contains(m.target)) return;
5114
+ let h = (m, g) => {
5115
+ if (a.pointerType = g, o || g === "touch" || a.isHovered || !m.currentTarget.contains(m.target)) return;
5116
5116
  a.isHovered = !0;
5117
5117
  let w = m.currentTarget;
5118
5118
  a.target = w, l(Vt(m.target), "pointerover", (x) => {
@@ -5122,28 +5122,28 @@ function Id(e) {
5122
5122
  }), t && t({
5123
5123
  type: "hoverstart",
5124
5124
  target: w,
5125
- pointerType: b
5125
+ pointerType: g
5126
5126
  }), n && n(!0), i(!0);
5127
- }, d = (m, b) => {
5127
+ }, d = (m, g) => {
5128
5128
  let w = a.target;
5129
- a.pointerType = "", a.target = null, !(b === "touch" || !a.isHovered || !w) && (a.isHovered = !1, c(), r && r({
5129
+ a.pointerType = "", a.target = null, !(g === "touch" || !a.isHovered || !w) && (a.isHovered = !1, c(), r && r({
5130
5130
  type: "hoverend",
5131
5131
  target: w,
5132
- pointerType: b
5132
+ pointerType: g
5133
5133
  }), n && n(!1), i(!1));
5134
- }, g = {};
5135
- return typeof PointerEvent < "u" ? (g.onPointerEnter = (m) => {
5134
+ }, b = {};
5135
+ return typeof PointerEvent < "u" ? (b.onPointerEnter = (m) => {
5136
5136
  Wr && m.pointerType === "mouse" || h(m, m.pointerType);
5137
- }, g.onPointerLeave = (m) => {
5137
+ }, b.onPointerLeave = (m) => {
5138
5138
  !o && m.currentTarget.contains(m.target) && d(m, m.pointerType);
5139
- }) : process.env.NODE_ENV === "test" && (g.onTouchStart = () => {
5139
+ }) : process.env.NODE_ENV === "test" && (b.onTouchStart = () => {
5140
5140
  a.ignoreEmulatedMouseEvents = !0;
5141
- }, g.onMouseEnter = (m) => {
5141
+ }, b.onMouseEnter = (m) => {
5142
5142
  !a.ignoreEmulatedMouseEvents && !Wr && h(m, "mouse"), a.ignoreEmulatedMouseEvents = !1;
5143
- }, g.onMouseLeave = (m) => {
5143
+ }, b.onMouseLeave = (m) => {
5144
5144
  !o && m.currentTarget.contains(m.target) && d(m, "mouse");
5145
5145
  }), {
5146
- hoverProps: g,
5146
+ hoverProps: b,
5147
5147
  triggerHoverEnd: d
5148
5148
  };
5149
5149
  }, [
@@ -5332,10 +5332,10 @@ function Ar(e, t = {}, n, r, o) {
5332
5332
  let f = {};
5333
5333
  if (t) {
5334
5334
  let h = !1, d = [];
5335
- for (let [g, m] of Object.entries(t)) typeof m == "boolean" && (h = !0), m === !0 && d.push(g.replace(/([A-Z])/g, (b) => `-${b.toLowerCase()}`));
5335
+ for (let [b, m] of Object.entries(t)) typeof m == "boolean" && (h = !0), m === !0 && d.push(b.replace(/([A-Z])/g, (g) => `-${g.toLowerCase()}`));
5336
5336
  if (h) {
5337
5337
  f["data-headlessui-state"] = d.join(" ");
5338
- for (let g of d) f[`data-${g}`] = "";
5338
+ for (let b of d) f[`data-${b}`] = "";
5339
5339
  }
5340
5340
  }
5341
5341
  if (s === Ke && (Object.keys(Yt(l)).length > 0 || Object.keys(Yt(f)).length > 0)) if (!_u(u) || Array.isArray(u) && u.length > 1) {
@@ -5344,9 +5344,9 @@ 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, g = typeof d == "function" ? (...w) => ys(d(...w), l.className) : ys(d, l.className), m = g ? { className: g } : {}, b = Ql(u.props, Yt(ko(l, ["ref"])));
5348
- for (let w in f) w in b && delete f[w];
5349
- return Du(u, Object.assign({}, b, f, c, { ref: o(Ud(u), c.ref) }, m));
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
+ return Du(u, Object.assign({}, g, f, c, { ref: o(Ud(u), c.ref) }, m));
5350
5350
  }
5351
5351
  return ju(s, Object.assign({}, ko(l, ["ref"]), s !== Ke && c, s !== Ke && f), u);
5352
5352
  }
@@ -5532,9 +5532,9 @@ function oh(e, t) {
5532
5532
  var n;
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
- let h = ue((b) => {
5536
- let w = b.currentTarget;
5537
- if (!(b.target !== b.currentTarget && Qd(b.target)) && (ji(w) && b.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(b), ji(w))) {
5535
+ let h = ue((g) => {
5536
+ let w = g.currentTarget;
5537
+ if (!(g.target !== g.currentTarget && Qd(g.target)) && (ji(w) && g.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(g), ji(w))) {
5538
5538
  let x = document.getElementById(w.htmlFor);
5539
5539
  if (x) {
5540
5540
  let y = x.getAttribute("disabled");
@@ -5544,8 +5544,8 @@ function oh(e, t) {
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 });
5545
5545
  }
5546
5546
  }
5547
- }), d = i || !1, g = de(() => ({ ...o.slot, disabled: d }), [o.slot, d]), m = { ref: f, ...o.props, id: a, htmlFor: l, onClick: h };
5548
- return c && ("onClick" in m && (delete m.htmlFor, delete m.onClick), "onClick" in u && delete u.onClick), Le()({ ourProps: m, theirProps: u, slot: g, defaultTag: l ? rh : "div", name: o.name || "Label" });
5547
+ }), d = i || !1, b = de(() => ({ ...o.slot, disabled: d }), [o.slot, d]), m = { ref: f, ...o.props, id: a, htmlFor: l, onClick: h };
5548
+ return c && ("onClick" in m && (delete m.htmlFor, delete m.onClick), "onClick" in u && delete u.onClick), Le()({ ourProps: m, theirProps: u, slot: b, defaultTag: l ? rh : "div", name: o.name || "Label" });
5549
5549
  }
5550
5550
  let sh = ke(oh), ih = Object.assign(sh, {}), ah = Ne(() => {
5551
5551
  });
@@ -5666,15 +5666,15 @@ function yh() {
5666
5666
  return $o.useSyncExternalStoreWithSelector = function(l, c, u, f, h) {
5667
5667
  var d = o(null);
5668
5668
  if (d.current === null) {
5669
- var g = { hasValue: !1, value: null };
5670
- d.current = g;
5671
- } else g = d.current;
5669
+ var b = { hasValue: !1, value: null };
5670
+ d.current = b;
5671
+ } else b = d.current;
5672
5672
  d = i(
5673
5673
  function() {
5674
- function b(v) {
5674
+ function g(v) {
5675
5675
  if (!w) {
5676
- if (w = !0, x = v, v = f(v), h !== void 0 && g.hasValue) {
5677
- var N = g.value;
5676
+ if (w = !0, x = v, v = f(v), h !== void 0 && b.hasValue) {
5677
+ var N = b.value;
5678
5678
  if (h(N, v))
5679
5679
  return y = N;
5680
5680
  }
@@ -5687,10 +5687,10 @@ function yh() {
5687
5687
  var w = !1, x, y, C = u === void 0 ? null : u;
5688
5688
  return [
5689
5689
  function() {
5690
- return b(c());
5690
+ return g(c());
5691
5691
  },
5692
5692
  C === null ? void 0 : function() {
5693
- return b(C());
5693
+ return g(C());
5694
5694
  }
5695
5695
  ];
5696
5696
  },
@@ -5699,7 +5699,7 @@ function yh() {
5699
5699
  var m = r(l, d[0], d[1]);
5700
5700
  return s(
5701
5701
  function() {
5702
- g.hasValue = !0, g.value = m;
5702
+ b.hasValue = !0, b.value = m;
5703
5703
  },
5704
5704
  [m]
5705
5705
  ), a(m), m;
@@ -5726,15 +5726,15 @@ function wh() {
5726
5726
  Io.useSyncExternalStoreWithSelector = function(l, c, u, f, h) {
5727
5727
  var d = o(null);
5728
5728
  if (d.current === null) {
5729
- var g = { hasValue: !1, value: null };
5730
- d.current = g;
5731
- } else g = d.current;
5729
+ var b = { hasValue: !1, value: null };
5730
+ d.current = b;
5731
+ } else b = d.current;
5732
5732
  d = i(
5733
5733
  function() {
5734
- function b(v) {
5734
+ function g(v) {
5735
5735
  if (!w) {
5736
- if (w = !0, x = v, v = f(v), h !== void 0 && g.hasValue) {
5737
- var N = g.value;
5736
+ if (w = !0, x = v, v = f(v), h !== void 0 && b.hasValue) {
5737
+ var N = b.value;
5738
5738
  if (h(N, v))
5739
5739
  return y = N;
5740
5740
  }
@@ -5748,10 +5748,10 @@ function wh() {
5748
5748
  var w = !1, x, y, C = u === void 0 ? null : u;
5749
5749
  return [
5750
5750
  function() {
5751
- return b(c());
5751
+ return g(c());
5752
5752
  },
5753
5753
  C === null ? void 0 : function() {
5754
- return b(C());
5754
+ return g(C());
5755
5755
  }
5756
5756
  ];
5757
5757
  },
@@ -5760,7 +5760,7 @@ function wh() {
5760
5760
  var m = r(l, d[0], d[1]);
5761
5761
  return s(
5762
5762
  function() {
5763
- g.hasValue = !0, g.value = m;
5763
+ b.hasValue = !0, b.value = m;
5764
5764
  },
5765
5765
  [m]
5766
5766
  ), a(m), m;
@@ -5885,7 +5885,7 @@ function Nh(e, t = (n) => n) {
5885
5885
  }
5886
5886
  function nr(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
5887
5887
  let s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, i = Array.isArray(e) ? n ? Nh(e) : e : t & 64 ? Ah(e) : kh(e);
5888
- o.length > 0 && i.length > 1 && (i = i.filter((d) => !o.some((g) => g != null && "current" in g ? (g == null ? void 0 : g.current) === d : g === d))), r = r ?? s.activeElement;
5888
+ o.length > 0 && i.length > 1 && (i = i.filter((d) => !o.some((b) => b != null && "current" in b ? (b == null ? void 0 : b.current) === d : b === d))), r = r ?? s.activeElement;
5889
5889
  let a = (() => {
5890
5890
  if (t & 5) return 1;
5891
5891
  if (t & 10) return -1;
@@ -6378,10 +6378,10 @@ const op = async (e, t, n) => {
6378
6378
  }), {
6379
6379
  x: u,
6380
6380
  y: f
6381
- } = Zi(c, r, l), h = r, d = {}, g = 0;
6381
+ } = Zi(c, r, l), h = r, d = {}, b = 0;
6382
6382
  for (let m = 0; m < a.length; m++) {
6383
6383
  const {
6384
- name: b,
6384
+ name: g,
6385
6385
  fn: w
6386
6386
  } = a[m], {
6387
6387
  x,
@@ -6404,11 +6404,11 @@ const op = async (e, t, n) => {
6404
6404
  });
6405
6405
  u = x ?? u, f = y ?? f, d = {
6406
6406
  ...d,
6407
- [b]: {
6408
- ...d[b],
6407
+ [g]: {
6408
+ ...d[g],
6409
6409
  ...C
6410
6410
  }
6411
- }, v && g <= 50 && (g++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (c = v.rects === !0 ? await i.getElementRects({
6411
+ }, v && b <= 50 && (b++, typeof v == "object" && (v.placement && (h = v.placement), v.rects && (c = v.rects === !0 ? await i.getElementRects({
6412
6412
  reference: e,
6413
6413
  floating: t,
6414
6414
  strategy: o
@@ -6473,10 +6473,10 @@ function cr(e, t, n, r) {
6473
6473
  let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, u = o.width / i.x, f = o.height / i.y;
6474
6474
  if (s) {
6475
6475
  const h = De(s), d = r && ve(r) ? De(r) : r;
6476
- let g = h, m = Cs(g);
6477
- for (; m && r && d !== g; ) {
6478
- const b = Cn(m), w = m.getBoundingClientRect(), x = We(m), y = w.left + (m.clientLeft + parseFloat(x.paddingLeft)) * b.x, C = w.top + (m.clientTop + parseFloat(x.paddingTop)) * b.y;
6479
- l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += y, c += C, g = De(m), m = Cs(g);
6476
+ let b = h, m = Cs(b);
6477
+ for (; m && r && d !== 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,11 +6790,11 @@ function Ep(e) {
6790
6790
  isPositioned: !1
6791
6791
  }), [h, d] = $.useState(r);
6792
6792
  Kr(h, r) || d(r);
6793
- const [g, m] = $.useState(null), [b, w] = $.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
6795
  }, []), y = $.useCallback((O) => {
6796
6796
  O !== q.current && (q.current = O, w(O));
6797
- }, []), C = s || g, v = i || b, N = $.useRef(null), q = $.useRef(null), k = $.useRef(u), B = l != null, G = No(l), ce = No(o), fe = No(c), se = $.useCallback(() => {
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;
6800
6800
  const O = {
@@ -7061,8 +7061,8 @@ function Hp(e, t) {
7061
7061
  nr(y, ct.Last, { skipElements: [x.relatedTarget, s] });
7062
7062
  } });
7063
7063
  });
7064
- }), d = yr(!!(a & 2), "focus-trap#tab-lock"), g = oi(), m = oe(!1), b = { ref: r, onKeyDown(x) {
7065
- x.key == "Tab" && (m.current = !0, g.requestAnimationFrame(() => {
7064
+ }), d = yr(!!(a & 2), "focus-trap#tab-lock"), b = oi(), m = oe(!1), g = { ref: r, onKeyDown(x) {
7065
+ x.key == "Tab" && (m.current = !0, b.requestAnimationFrame(() => {
7066
7066
  m.current = !1;
7067
7067
  }));
7068
7068
  }, onBlur(x) {
@@ -7072,7 +7072,7 @@ function Hp(e, t) {
7072
7072
  let C = x.relatedTarget;
7073
7073
  Dt(C) && C.dataset.headlessuiFocusGuard !== "true" && (Dc(y, C) || (m.current ? nr(n.current, mt(f.current, { [Xn.Forwards]: () => ct.Next, [Xn.Backwards]: () => ct.Previous }) | ct.WrapAround, { relativeTo: x.target }) : Dt(x.target) && dt(x.target)));
7074
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: b, theirProps: l, defaultTag: zp, name: "FocusTrap" }), d && j.createElement(Vr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: lr.Focusable }));
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: zp, 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 Up = ke(Hp), Bp = Object.assign(Up, { features: Kt });
7078
7078
  function Wp(e = !0) {
@@ -7166,37 +7166,37 @@ function mo(e) {
7166
7166
  return "children" in e ? mo(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
7167
7167
  }
7168
7168
  function zc(e, t) {
7169
- let n = pn(e), r = oe([]), o = li(), s = oi(), i = ue((d, g = _t.Hidden) => {
7170
- let m = r.current.findIndex(({ el: b }) => b === d);
7171
- m !== -1 && (mt(g, { [_t.Unmount]() {
7169
+ let n = pn(e), r = oe([]), o = li(), s = oi(), i = ue((d, b = _t.Hidden) => {
7170
+ let m = r.current.findIndex(({ el: g }) => g === d);
7171
+ m !== -1 && (mt(b, { [_t.Unmount]() {
7172
7172
  r.current.splice(m, 1);
7173
7173
  }, [_t.Hidden]() {
7174
7174
  r.current[m].state = "hidden";
7175
7175
  } }), s.microTask(() => {
7176
- var b;
7177
- !mo(r) && o.current && ((b = n.current) == null || b.call(n));
7176
+ var g;
7177
+ !mo(r) && o.current && ((g = n.current) == null || g.call(n));
7178
7178
  }));
7179
7179
  }), a = ue((d) => {
7180
- let g = r.current.find(({ el: m }) => m === d);
7181
- return g ? g.state !== "visible" && (g.state = "visible") : r.current.push({ el: d, state: "visible" }), () => i(d, _t.Unmount);
7182
- }), l = oe([]), c = oe(Promise.resolve()), u = oe({ enter: [], leave: [] }), f = ue((d, g, m) => {
7183
- l.current.splice(0), t && (t.chains.current[g] = t.chains.current[g].filter(([b]) => b !== d)), t == null || t.chains.current[g].push([d, new Promise((b) => {
7184
- l.current.push(b);
7185
- })]), t == null || t.chains.current[g].push([d, new Promise((b) => {
7186
- Promise.all(u.current[g].map(([w, x]) => x)).then(() => b());
7187
- })]), g === "enter" ? c.current = c.current.then(() => t == null ? void 0 : t.wait.current).then(() => m(g)) : m(g);
7188
- }), h = ue((d, g, m) => {
7189
- Promise.all(u.current[g].splice(0).map(([b, w]) => w)).then(() => {
7190
- var b;
7191
- (b = l.current.shift()) == null || b();
7192
- }).then(() => m(g));
7180
+ let b = r.current.find(({ el: m }) => m === d);
7181
+ return b ? b.state !== "visible" && (b.state = "visible") : r.current.push({ el: d, state: "visible" }), () => i(d, _t.Unmount);
7182
+ }), l = oe([]), c = oe(Promise.resolve()), u = oe({ enter: [], leave: [] }), f = ue((d, b, m) => {
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
+ l.current.push(g);
7185
+ })]), t == null || t.chains.current[b].push([d, new Promise((g) => {
7186
+ Promise.all(u.current[b].map(([w, x]) => x)).then(() => g());
7187
+ })]), b === "enter" ? c.current = c.current.then(() => t == null ? void 0 : t.wait.current).then(() => m(b)) : m(b);
7188
+ }), h = ue((d, b, m) => {
7189
+ Promise.all(u.current[b].splice(0).map(([g, w]) => w)).then(() => {
7190
+ var g;
7191
+ (g = l.current.shift()) == null || g();
7192
+ }).then(() => m(b));
7193
7193
  });
7194
7194
  return de(() => ({ children: r, register: a, unregister: i, onStart: f, onStop: h, wait: c, chains: u }), [a, i, r, f, h, u, c]);
7195
7195
  }
7196
7196
  let Hc = Ke, Uc = qr.RenderStrategy;
7197
7197
  function Xp(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: g, leaveTo: m, ...b } = e, [w, x] = he(null), y = oe(null), C = jc(e), v = Xe(...C ? [y, t, x] : t === null ? [] : [t]), N = (n = b.unmount) == null || n ? _t.Unmount : _t.Hidden, { show: q, appear: k, initial: B } = Kp(), [G, ce] = he(q ? "visible" : "hidden"), fe = Qp(), { register: se, unregister: pe } = fe;
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] = he(null), y = oe(null), C = jc(e), v = Xe(...C ? [y, t, x] : t === null ? [] : [t]), N = (n = g.unmount) == null || n ? _t.Unmount : _t.Hidden, { show: q, appear: k, initial: B } = Kp(), [G, ce] = he(q ? "visible" : "hidden"), fe = Qp(), { register: se, unregister: pe } = fe;
7200
7200
  Pe(() => se(y), [se, y]), Pe(() => {
7201
7201
  if (N === _t.Hidden && y.current) {
7202
7202
  if (q && G !== "visible") {
@@ -7227,10 +7227,10 @@ function Xp(e, t) {
7227
7227
  Ee(() => {
7228
7228
  C && o || (E(q), P(q));
7229
7229
  }, [q, C, o]);
7230
- let U = !(!o || !C || !W || Y), [, S] = Yh(U, w, q, { start: E, end: P }), _ = Yt({ ref: v, className: ((r = ys(b.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 && g, S.leave && S.closed && m, !S.transition && q && h)) == null ? void 0 : r.trim()) || void 0, ...Gh(S) }), K = 0;
7230
+ let U = !(!o || !C || !W || Y), [, S] = Yh(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, ...Gh(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
- return j.createElement(po.Provider, { value: V }, j.createElement(Cp, { value: K }, z({ ourProps: _, theirProps: b, defaultTag: Hc, features: Uc, visible: G === "visible", name: "Transition.Child" })));
7233
+ return j.createElement(po.Provider, { value: V }, j.createElement(Cp, { value: K }, z({ ourProps: _, theirProps: g, defaultTag: Hc, features: Uc, visible: G === "visible", name: "Transition.Child" })));
7234
7234
  }
7235
7235
  function Jp(e, t) {
7236
7236
  let { show: n, appear: r = !1, unmount: o = !0, ...s } = e, i = oe(null), a = jc(e), l = Xe(...a ? [i, t] : t === null ? [] : [t]);
@@ -7239,22 +7239,22 @@ function Jp(e, t) {
7239
7239
  if (n === void 0 && c !== null && (n = (c & Ye.Open) === Ye.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
7240
7240
  let [u, f] = he(n ? "visible" : "hidden"), h = zc(() => {
7241
7241
  n || f("hidden");
7242
- }), [d, g] = he(!0), m = oe([n]);
7242
+ }), [d, b] = he(!0), m = oe([n]);
7243
7243
  Pe(() => {
7244
- d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n), g(!1));
7244
+ d !== !1 && m.current[m.current.length - 1] !== n && (m.current.push(n), b(!1));
7245
7245
  }, [m, n]);
7246
- let b = de(() => ({ show: n, appear: r, initial: d }), [n, r, d]);
7246
+ let g = de(() => ({ show: n, appear: r, initial: d }), [n, r, d]);
7247
7247
  Pe(() => {
7248
7248
  n ? f("visible") : !mo(h) && i.current !== null && f("hidden");
7249
7249
  }, [n, h]);
7250
7250
  let w = { unmount: o }, x = ue(() => {
7251
7251
  var v;
7252
- d && g(!1), (v = e.beforeEnter) == null || v.call(e);
7252
+ d && b(!1), (v = e.beforeEnter) == null || v.call(e);
7253
7253
  }), y = ue(() => {
7254
7254
  var v;
7255
- d && g(!1), (v = e.beforeLeave) == null || v.call(e);
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: b }, 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" })));
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 Zp(e, t) {
7260
7260
  let n = Se(ho) !== null, r = fo() !== null;
@@ -7284,13 +7284,13 @@ let sa = 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 g = oe(null), m = Xe(g, t), b = so(g), w = o ? 0 : 1, [x, y] = Hu(om, { titleId: null, descriptionId: null, panelRef: Uu() }), C = ue(() => s(!1)), v = ue((S) => y({ type: 0, id: S })), N = xr() ? w === 0 : !1, [q, k] = Fp(), B = { get current() {
7287
+ let b = oe(null), m = Xe(b, t), g = so(b), w = o ? 0 : 1, [x, y] = Hu(om, { titleId: null, descriptionId: null, panelRef: Uu() }), C = ue(() => s(!1)), v = ue((S) => y({ type: 0, id: S })), N = xr() ? w === 0 : !1, [q, k] = Fp(), B = { get current() {
7288
7288
  var S;
7289
- return (S = x.panelRef.current) != null ? S : g.current;
7289
+ return (S = x.panelRef.current) != null ? S : b.current;
7290
7290
  } }, G = Mc(), { resolveContainers: ce } = Dp({ mainTreeNode: G, portals: q, defaultContainers: [B] }), fe = d !== null ? (d & Ye.Closing) === Ye.Closing : !1;
7291
7291
  Th(c || fe ? !1 : N, { allowed: ue(() => {
7292
7292
  var S, _;
7293
- return [(_ = (S = g.current) == null ? void 0 : S.closest("[data-headlessui-portal]")) != null ? _ : null];
7293
+ return [(_ = (S = b.current) == null ? void 0 : S.closest("[data-headlessui-portal]")) != null ? _ : null];
7294
7294
  }), disallowed: ue(() => {
7295
7295
  var S;
7296
7296
  return [(S = G == null ? void 0 : G.closest("body > *:not(#headlessui-portal-root)")) != null ? S : null];
@@ -7302,13 +7302,13 @@ let sa = ke(function(e, t) {
7302
7302
  let pe = hc(se, we((S) => se.selectors.isTop(S, r), [se, r]));
7303
7303
  Mh(pe, ce, (S) => {
7304
7304
  S.preventDefault(), C();
7305
- }), Mp(pe, b == null ? void 0 : b.defaultView, (S) => {
7305
+ }), Mp(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
- }), Wh(c || fe ? !1 : N, b, ce), Oh(N, g, C);
7307
+ }), Wh(c || fe ? !1 : N, g, ce), Oh(N, b, C);
7308
7308
  let [W, Y] = rc(), ne = de(() => [{ dialogState: w, close: C, setTitleId: v, unmount: u }, x], [w, x, C, v, u]), O = de(() => ({ 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 = !_p(), 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(Tp, null, j.createElement(ra, { force: !0 }, j.createElement(Lp, null, j.createElement(ui.Provider, { value: ne }, j.createElement(Nc, { target: g }, j.createElement(ra, { force: !1 }, j.createElement(Y, { slot: O }, j.createElement(k, null, j.createElement(Bp, { initialFocus: i, initialFocusFallback: g, containers: ce, features: P }, j.createElement(lh, { value: C }, U({ ourProps: V, theirProps: f, slot: O, defaultTag: sm, features: im, visible: w === 0, name: "Dialog" })))))))))));
7311
+ return j.createElement(Tp, null, j.createElement(ra, { force: !0 }, j.createElement(Lp, null, j.createElement(ui.Provider, { value: ne }, j.createElement(Nc, { target: b }, j.createElement(ra, { force: !1 }, j.createElement(Y, { slot: O }, j.createElement(k, null, j.createElement(Bp, { initialFocus: i, initialFocusFallback: b, containers: ce, features: P }, j.createElement(lh, { value: C }, U({ ourProps: V, theirProps: f, slot: O, defaultTag: sm, features: im, visible: w === 0, name: "Dialog" })))))))))));
7312
7312
  }), sm = "div", im = qr.RenderStrategy | qr.Static;
7313
7313
  function am(e, t) {
7314
7314
  let { transition: n = !1, open: r, ...o } = e, s = fo(), i = e.hasOwnProperty("open") || s !== null, a = e.hasOwnProperty("onClose");
@@ -7321,10 +7321,10 @@ function am(e, t) {
7321
7321
  }
7322
7322
  let lm = "div";
7323
7323
  function cm(e, t) {
7324
- let n = qt(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...s } = e, [{ dialogState: i, unmount: a }, l] = go("Dialog.Panel"), c = Xe(t, l.panelRef), u = de(() => ({ open: i === 0 }), [i]), f = ue((b) => {
7325
- b.stopPropagation();
7326
- }), h = { ref: c, id: r, onClick: f }, d = o ? ci : Ke, g = o ? { unmount: a } : {}, m = Le();
7327
- return j.createElement(d, { ...g }, m({ ourProps: h, theirProps: s, slot: u, defaultTag: lm, name: "Dialog.Panel" }));
7324
+ let n = qt(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...s } = e, [{ dialogState: i, unmount: a }, l] = go("Dialog.Panel"), c = Xe(t, l.panelRef), u = de(() => ({ open: i === 0 }), [i]), f = ue((g) => {
7325
+ g.stopPropagation();
7326
+ }), h = { ref: c, id: r, onClick: f }, d = o ? ci : Ke, b = o ? { unmount: a } : {}, m = Le();
7327
+ return j.createElement(d, { ...b }, m({ ourProps: h, theirProps: s, slot: u, defaultTag: lm, name: "Dialog.Panel" }));
7328
7328
  }
7329
7329
  let um = "div";
7330
7330
  function fm(e, t) {
@@ -7345,8 +7345,8 @@ function vm(e, t) {
7345
7345
  }
7346
7346
  let ym = ke(vm), wm = "input";
7347
7347
  function xm(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 = Jd(), { isFocused: h, focusProps: d } = Fd({ autoFocus: a }), { isHovered: g, hoverProps: m } = Id({ isDisabled: i }), b = Hd({ 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 = de(() => ({ disabled: i, invalid: l, hover: g, focus: h, autofocus: a }), [i, l, g, h, a]);
7349
- return Le()({ ourProps: b, theirProps: c, slot: w, defaultTag: wm, 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 = Jd(), { isFocused: h, focusProps: d } = Fd({ autoFocus: a }), { isHovered: b, hoverProps: m } = Id({ isDisabled: i }), g = Hd({ 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 = de(() => ({ 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: wm, name: "Input" });
7350
7350
  }
7351
7351
  let Em = ke(xm);
7352
7352
  const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm = "focus:outline focus:outline-3 focus:outline-primary-500/[.3]", Om = "disabled:opacity-15 disabled:pointer-events-none", Vc = (e) => e === "grayLight" || e === "warning", Gc = (e, t) => !t || t === "none" ? "" : e(), Pm = (e, t) => Gc(() => {
@@ -7423,7 +7423,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
7423
7423
  ...u
7424
7424
  }, f) => {
7425
7425
  var y;
7426
- const h = Om, d = /link/.test(o) ? null : Pm(n, e), g = Tm, m = Im[r], b = (y = $m(n, e)) == null ? void 0 : y[o], w = xn(d, b), x = Fm[a];
7426
+ const h = Om, d = /link/.test(o) ? null : Pm(n, e), b = Tm, m = Im[r], g = (y = $m(n, e)) == null ? void 0 : y[o], w = xn(d, g), x = Fm[a];
7427
7427
  return /* @__PURE__ */ R(
7428
7428
  "button",
7429
7429
  {
@@ -7437,7 +7437,7 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
7437
7437
  ref: f,
7438
7438
  className: xn(
7439
7439
  Cm,
7440
- g,
7440
+ b,
7441
7441
  h,
7442
7442
  m,
7443
7443
  w,
@@ -7572,15 +7572,15 @@ const Cm = "whitespace-nowrap font-normal flex items-center justify-center", Tm
7572
7572
  l(!1);
7573
7573
  }
7574
7574
  const f = async (h) => {
7575
- const { playbookInstanceId: d, errorCode: g, details: m, message: b } = await Pl({
7575
+ const { playbookInstanceId: d, errorCode: b, details: m, message: g } = await Pl({
7576
7576
  bank: "public-sdk",
7577
7577
  email: h,
7578
7578
  timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || "America/Los_Angeles",
7579
7579
  playbookUid: r
7580
7580
  }) || {};
7581
- if (g)
7581
+ if (b)
7582
7582
  throw new Error(
7583
- `Error initiating playbook: ${b} (Code: ${g}) - Details: ${m}`
7583
+ `Error initiating playbook: ${g} (Code: ${b}) - Details: ${m}`
7584
7584
  );
7585
7585
  o(d);
7586
7586
  };
@@ -9191,8 +9191,8 @@ function yi(e) {
9191
9191
  } = e, {
9192
9192
  width: h,
9193
9193
  height: d
9194
- } = n.found ? n : t, g = rg.includes(r), m = [D.replacementClass, o ? "".concat(D.cssPrefix, "-").concat(o) : ""].filter((v) => u.classes.indexOf(v) === -1).filter((v) => v !== "" || !!v).concat(u.classes).join(" ");
9195
- let b = {
9194
+ } = n.found ? n : t, b = rg.includes(r), m = [D.replacementClass, o ? "".concat(D.cssPrefix, "-").concat(o) : ""].filter((v) => u.classes.indexOf(v) === -1).filter((v) => v !== "" || !!v).concat(u.classes).join(" ");
9195
+ let g = {
9196
9196
  children: [],
9197
9197
  attributes: T(T({}, u.attributes), {}, {
9198
9198
  "data-prefix": r,
@@ -9203,17 +9203,17 @@ function yi(e) {
9203
9203
  viewBox: "0 0 ".concat(h, " ").concat(d)
9204
9204
  })
9205
9205
  };
9206
- const w = g && !~u.classes.indexOf("fa-fw") ? {
9206
+ const w = b && !~u.classes.indexOf("fa-fw") ? {
9207
9207
  width: "".concat(h / d * 16 * 0.0625, "em")
9208
9208
  } : {};
9209
- f && (b.attributes[dn] = ""), a && (b.children.push({
9209
+ f && (g.attributes[dn] = ""), a && (g.children.push({
9210
9210
  tag: "title",
9211
9211
  attributes: {
9212
- id: b.attributes["aria-labelledby"] || "title-".concat(c || fr())
9212
+ id: g.attributes["aria-labelledby"] || "title-".concat(c || fr())
9213
9213
  },
9214
9214
  children: [a]
9215
- }), delete b.attributes.title);
9216
- const x = T(T({}, b), {}, {
9215
+ }), delete g.attributes.title);
9216
+ const x = T(T({}, g), {}, {
9217
9217
  prefix: r,
9218
9218
  iconName: o,
9219
9219
  main: t,
@@ -9715,12 +9715,12 @@ var Tb = {
9715
9715
  width: 512,
9716
9716
  height: 512,
9717
9717
  icon: {}
9718
- })]).then((g) => {
9719
- let [m, b] = g;
9718
+ })]).then((b) => {
9719
+ let [m, g] = b;
9720
9720
  h([t, yi({
9721
9721
  icons: {
9722
9722
  main: m,
9723
- mask: b
9723
+ mask: g
9724
9724
  },
9725
9725
  prefix: i,
9726
9726
  iconName: r,
@@ -9903,12 +9903,12 @@ function ka(e, t) {
9903
9903
  const h = a.getPropertyValue("content");
9904
9904
  let d = $b(l, u);
9905
9905
  const {
9906
- value: g,
9906
+ value: b,
9907
9907
  isSecondary: m
9908
- } = Rb(h), b = c[0].startsWith("FontAwesome");
9909
- let w = vi(d, g), x = w;
9910
- if (b) {
9911
- const y = Ug(g);
9908
+ } = Rb(h), g = c[0].startsWith("FontAwesome");
9909
+ let w = vi(d, b), x = w;
9910
+ if (g) {
9911
+ const y = Ug(b);
9912
9912
  y.iconName && y.prefix && (w = y.iconName, d = y.prefix);
9913
9913
  }
9914
9914
  if (w && !m && (!i || i.getAttribute(di) !== d || i.getAttribute(hi) !== x)) {
@@ -10142,7 +10142,7 @@ var Db = {
10142
10142
  attributes: T(T({}, jo), {}, {
10143
10143
  fill: "white"
10144
10144
  })
10145
- }, g = c.children ? {
10145
+ }, b = c.children ? {
10146
10146
  children: c.children.map(Ia)
10147
10147
  } : {}, m = {
10148
10148
  tag: "g",
@@ -10150,8 +10150,8 @@ var Db = {
10150
10150
  children: [Ia(T({
10151
10151
  tag: c.tag,
10152
10152
  attributes: T(T({}, c.attributes), h.path)
10153
- }, g))]
10154
- }, b = {
10153
+ }, b))]
10154
+ }, g = {
10155
10155
  tag: "g",
10156
10156
  attributes: T({}, h.outer),
10157
10157
  children: [m]
@@ -10162,7 +10162,7 @@ var Db = {
10162
10162
  maskUnits: "userSpaceOnUse",
10163
10163
  maskContentUnits: "userSpaceOnUse"
10164
10164
  }),
10165
- children: [d, b]
10165
+ children: [d, g]
10166
10166
  }, C = {
10167
10167
  tag: "defs",
10168
10168
  children: [{
@@ -10295,7 +10295,7 @@ var Fa;
10295
10295
  function Bb() {
10296
10296
  if (Fa) return ie;
10297
10297
  Fa = 1;
10298
- 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, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
10298
+ 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;
10299
10299
  function y(v) {
10300
10300
  if (typeof v == "object" && v !== null) {
10301
10301
  var N = v.$$typeof;
@@ -10313,7 +10313,7 @@ function Bb() {
10313
10313
  switch (v = v && v.$$typeof, v) {
10314
10314
  case a:
10315
10315
  case u:
10316
- case g:
10316
+ case b:
10317
10317
  case d:
10318
10318
  case i:
10319
10319
  return v;
@@ -10329,7 +10329,7 @@ function Bb() {
10329
10329
  function C(v) {
10330
10330
  return y(v) === c;
10331
10331
  }
10332
- return ie.AsyncMode = l, ie.ConcurrentMode = c, ie.ContextConsumer = a, ie.ContextProvider = i, ie.Element = t, ie.ForwardRef = u, ie.Fragment = r, ie.Lazy = g, ie.Memo = d, ie.Portal = n, ie.Profiler = s, ie.StrictMode = o, ie.Suspense = f, ie.isAsyncMode = function(v) {
10332
+ 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) {
10333
10333
  return C(v) || y(v) === l;
10334
10334
  }, ie.isConcurrentMode = C, ie.isContextConsumer = function(v) {
10335
10335
  return y(v) === a;
@@ -10342,7 +10342,7 @@ function Bb() {
10342
10342
  }, ie.isFragment = function(v) {
10343
10343
  return y(v) === r;
10344
10344
  }, ie.isLazy = function(v) {
10345
- return y(v) === g;
10345
+ return y(v) === b;
10346
10346
  }, ie.isMemo = function(v) {
10347
10347
  return y(v) === d;
10348
10348
  }, ie.isPortal = function(v) {
@@ -10354,7 +10354,7 @@ function Bb() {
10354
10354
  }, ie.isSuspense = function(v) {
10355
10355
  return y(v) === f;
10356
10356
  }, ie.isValidElementType = function(v) {
10357
- 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 === g || v.$$typeof === d || v.$$typeof === i || v.$$typeof === a || v.$$typeof === u || v.$$typeof === b || v.$$typeof === w || v.$$typeof === x || v.$$typeof === m);
10357
+ 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);
10358
10358
  }, ie.typeOf = y, ie;
10359
10359
  }
10360
10360
  var ae = {};
@@ -10369,10 +10369,10 @@ var ae = {};
10369
10369
  var Na;
10370
10370
  function Wb() {
10371
10371
  return Na || (Na = 1, process.env.NODE_ENV !== "production" && function() {
10372
- 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, g = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
10372
+ 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;
10373
10373
  function y(A) {
10374
10374
  return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
10375
- A === r || A === c || A === s || A === o || A === f || A === h || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === d || A.$$typeof === i || A.$$typeof === a || A.$$typeof === u || A.$$typeof === b || A.$$typeof === w || A.$$typeof === x || A.$$typeof === m);
10375
+ A === r || A === c || A === s || A === o || A === f || A === h || typeof A == "object" && A !== null && (A.$$typeof === b || A.$$typeof === d || A.$$typeof === i || A.$$typeof === a || A.$$typeof === u || A.$$typeof === g || A.$$typeof === w || A.$$typeof === x || A.$$typeof === m);
10376
10376
  }
10377
10377
  function C(A) {
10378
10378
  if (typeof A == "object" && A !== null) {
@@ -10393,7 +10393,7 @@ function Wb() {
10393
10393
  switch (Tr) {
10394
10394
  case a:
10395
10395
  case u:
10396
- case g:
10396
+ case b:
10397
10397
  case d:
10398
10398
  case i:
10399
10399
  return Tr;
@@ -10406,7 +10406,7 @@ function Wb() {
10406
10406
  }
10407
10407
  }
10408
10408
  }
10409
- var v = l, N = c, q = a, k = i, B = t, G = u, ce = r, fe = g, se = d, pe = n, W = s, Y = o, ne = f, O = !1;
10409
+ var v = l, N = c, q = a, k = i, B = t, G = u, ce = r, fe = b, se = d, pe = n, W = s, Y = o, ne = f, O = !1;
10410
10410
  function V(A) {
10411
10411
  return O || (O = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), E(A) || C(A) === l;
10412
10412
  }
@@ -10429,7 +10429,7 @@ function Wb() {
10429
10429
  return C(A) === r;
10430
10430
  }
10431
10431
  function z(A) {
10432
- return C(A) === g;
10432
+ return C(A) === b;
10433
10433
  }
10434
10434
  function I(A) {
10435
10435
  return C(A) === d;
@@ -10545,8 +10545,8 @@ function Vb() {
10545
10545
  throw h.name = "Invariant Violation", h;
10546
10546
  }
10547
10547
  f = s[u](i, u, l, a, null, t);
10548
- } catch (g) {
10549
- f = g;
10548
+ } catch (b) {
10549
+ f = b;
10550
10550
  }
10551
10551
  if (f && !(f instanceof Error) && e(
10552
10552
  (l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -10609,14 +10609,14 @@ function Gb() {
10609
10609
  shape: fe,
10610
10610
  exact: se
10611
10611
  };
10612
- function g(E, P) {
10612
+ function b(E, P) {
10613
10613
  return E === P ? E !== 0 || 1 / E === 1 / P : E !== E && P !== P;
10614
10614
  }
10615
10615
  function m(E, P) {
10616
10616
  this.message = E, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
10617
10617
  }
10618
10618
  m.prototype = Error.prototype;
10619
- function b(E) {
10619
+ function g(E) {
10620
10620
  if (process.env.NODE_ENV !== "production")
10621
10621
  var P = {}, U = 0;
10622
10622
  function S(K, z, I, Q, X, Z, xe) {
@@ -10651,10 +10651,10 @@ function Gb() {
10651
10651
  }
10652
10652
  return null;
10653
10653
  }
10654
- return b(P);
10654
+ return g(P);
10655
10655
  }
10656
10656
  function x() {
10657
- return b(i);
10657
+ return g(i);
10658
10658
  }
10659
10659
  function y(E) {
10660
10660
  function P(U, S, _, K, z) {
@@ -10672,7 +10672,7 @@ function Gb() {
10672
10672
  }
10673
10673
  return null;
10674
10674
  }
10675
- return b(P);
10675
+ return g(P);
10676
10676
  }
10677
10677
  function C() {
10678
10678
  function E(P, U, S, _, K) {
@@ -10683,7 +10683,7 @@ function Gb() {
10683
10683
  }
10684
10684
  return null;
10685
10685
  }
10686
- return b(E);
10686
+ return g(E);
10687
10687
  }
10688
10688
  function v() {
10689
10689
  function E(P, U, S, _, K) {
@@ -10694,7 +10694,7 @@ function Gb() {
10694
10694
  }
10695
10695
  return null;
10696
10696
  }
10697
- return b(E);
10697
+ return g(E);
10698
10698
  }
10699
10699
  function N(E) {
10700
10700
  function P(U, S, _, K, z) {
@@ -10704,7 +10704,7 @@ function Gb() {
10704
10704
  }
10705
10705
  return null;
10706
10706
  }
10707
- return b(P);
10707
+ return g(P);
10708
10708
  }
10709
10709
  function q(E) {
10710
10710
  if (!Array.isArray(E))
@@ -10713,7 +10713,7 @@ function Gb() {
10713
10713
  ) : s("Invalid argument supplied to oneOf, expected an array.")), i;
10714
10714
  function P(U, S, _, K, z) {
10715
10715
  for (var I = U[S], Q = 0; Q < E.length; Q++)
10716
- if (g(I, E[Q]))
10716
+ if (b(I, E[Q]))
10717
10717
  return null;
10718
10718
  var X = JSON.stringify(E, function(xe, A) {
10719
10719
  var ze = ne(A);
@@ -10721,7 +10721,7 @@ function Gb() {
10721
10721
  });
10722
10722
  return new m("Invalid " + K + " `" + z + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + X + "."));
10723
10723
  }
10724
- return b(P);
10724
+ return g(P);
10725
10725
  }
10726
10726
  function k(E) {
10727
10727
  function P(U, S, _, K, z) {
@@ -10738,7 +10738,7 @@ function Gb() {
10738
10738
  }
10739
10739
  return null;
10740
10740
  }
10741
- return b(P);
10741
+ return g(P);
10742
10742
  }
10743
10743
  function B(E) {
10744
10744
  if (!Array.isArray(E))
@@ -10760,13 +10760,13 @@ function Gb() {
10760
10760
  var ze = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
10761
10761
  return new m("Invalid " + I + " `" + Q + "` supplied to " + ("`" + z + "`" + ze + "."));
10762
10762
  }
10763
- return b(S);
10763
+ return g(S);
10764
10764
  }
10765
10765
  function G() {
10766
10766
  function E(P, U, S, _, K) {
10767
10767
  return pe(P[U]) ? null : new m("Invalid " + _ + " `" + K + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
10768
10768
  }
10769
- return b(E);
10769
+ return g(E);
10770
10770
  }
10771
10771
  function ce(E, P, U, S, _) {
10772
10772
  return new m(
@@ -10788,7 +10788,7 @@ function Gb() {
10788
10788
  }
10789
10789
  return null;
10790
10790
  }
10791
- return b(P);
10791
+ return g(P);
10792
10792
  }
10793
10793
  function se(E) {
10794
10794
  function P(U, S, _, K, z) {
@@ -10811,7 +10811,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
10811
10811
  }
10812
10812
  return null;
10813
10813
  }
10814
- return b(P);
10814
+ return g(P);
10815
10815
  }
10816
10816
  function pe(E) {
10817
10817
  switch (typeof E) {
@@ -11026,7 +11026,7 @@ function tv() {
11026
11026
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
11027
11027
  }
11028
11028
  function nv(e) {
11029
- 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, g = e.border, m = e.listItem, b = e.flip, w = e.size, x = e.rotation, y = e.pull, C = (t = {
11029
+ 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 = {
11030
11030
  "fa-beat": n,
11031
11031
  "fa-fade": r,
11032
11032
  "fa-beat-fade": o,
@@ -11039,11 +11039,11 @@ function nv(e) {
11039
11039
  "fa-pulse": f,
11040
11040
  "fa-fw": h,
11041
11041
  "fa-inverse": d,
11042
- "fa-border": g,
11042
+ "fa-border": b,
11043
11043
  "fa-li": m,
11044
- "fa-flip": b === !0,
11045
- "fa-flip-horizontal": b === "horizontal" || b === "both",
11046
- "fa-flip-vertical": b === "vertical" || b === "both"
11044
+ "fa-flip": g === !0,
11045
+ "fa-flip-horizontal": g === "horizontal" || g === "both",
11046
+ "fa-flip-vertical": g === "vertical" || g === "both"
11047
11047
  }, 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);
11048
11048
  return Object.keys(C).map(function(v) {
11049
11049
  return C[v] ? v : null;
@@ -11133,20 +11133,20 @@ function Vo(e, t) {
11133
11133
  }
11134
11134
  var lv = ["forwardedRef"];
11135
11135
  function Wt(e) {
11136
- var t = e.forwardedRef, n = Ru(e, lv), r = n.icon, o = n.mask, s = n.symbol, i = n.className, a = n.title, l = n.titleId, c = n.maskId, u = Wa(r), f = Vo("classes", [].concat(Bs(nv(n)), Bs(i.split(" ")))), h = Vo("transform", typeof n.transform == "string" ? Us.transform(n.transform) : n.transform), d = Vo("mask", Wa(o)), g = Ub(u, jt(jt(jt(jt({}, f), h), d), {}, {
11136
+ var t = e.forwardedRef, n = Ru(e, lv), r = n.icon, o = n.mask, s = n.symbol, i = n.className, a = n.title, l = n.titleId, c = n.maskId, u = Wa(r), f = Vo("classes", [].concat(Bs(nv(n)), Bs(i.split(" ")))), h = Vo("transform", typeof n.transform == "string" ? Us.transform(n.transform) : n.transform), d = Vo("mask", Wa(o)), b = Ub(u, jt(jt(jt(jt({}, f), h), d), {}, {
11137
11137
  symbol: s,
11138
11138
  title: a,
11139
11139
  titleId: l,
11140
11140
  maskId: c
11141
11141
  }));
11142
- if (!g)
11142
+ if (!b)
11143
11143
  return av("Could not find icon", u), null;
11144
- var m = g.abstract, b = {
11144
+ var m = b.abstract, g = {
11145
11145
  ref: t
11146
11146
  };
11147
11147
  return Object.keys(n).forEach(function(w) {
11148
- Wt.defaultProps.hasOwnProperty(w) || (b[w] = n[w]);
11149
- }), cv(m[0], b);
11148
+ Wt.defaultProps.hasOwnProperty(w) || (g[w] = n[w]);
11149
+ }), cv(m[0], g);
11150
11150
  }
11151
11151
  Wt.displayName = "FontAwesomeIcon";
11152
11152
  Wt.propTypes = {
@@ -11411,14 +11411,14 @@ function Lv(e, t) {
11411
11411
  referencePressEvent: f = "pointerdown",
11412
11412
  ancestorScroll: h = !1,
11413
11413
  bubbles: d,
11414
- capture: g
11415
- } = t, m = Nu(), b = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? b : l, x = $.useRef(!1), {
11414
+ capture: b
11415
+ } = t, m = Nu(), g = bn(typeof l == "function" ? l : () => !1), w = typeof l == "function" ? g : l, x = $.useRef(!1), {
11416
11416
  escapeKey: y,
11417
11417
  outsidePress: C
11418
11418
  } = Xa(d), {
11419
11419
  escapeKey: v,
11420
11420
  outsidePress: N
11421
- } = Xa(g), q = $.useRef(!1), k = $.useRef(-1), B = bn((W) => {
11421
+ } = Xa(b), q = $.useRef(!1), k = $.useRef(-1), B = bn((W) => {
11422
11422
  var Y;
11423
11423
  if (!n || !i || !a || W.key !== "Escape" || q.current)
11424
11424
  return;
@@ -11577,13 +11577,13 @@ function Mv(e) {
11577
11577
  const d = r.reference;
11578
11578
  d && !ve(d) && Pv("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
11579
11579
  }
11580
- const [l, c] = $.useState(r.reference), u = bn((d, g, m) => {
11581
- s.current.openEvent = d ? g : void 0, i.emit("openchange", {
11580
+ const [l, c] = $.useState(r.reference), u = bn((d, b, m) => {
11581
+ s.current.openEvent = d ? b : void 0, i.emit("openchange", {
11582
11582
  open: d,
11583
- event: g,
11583
+ event: b,
11584
11584
  reason: m,
11585
11585
  nested: a
11586
- }), n == null || n(d, g, m);
11586
+ }), n == null || n(d, b, m);
11587
11587
  }), f = $.useMemo(() => ({
11588
11588
  setPositionReference: c
11589
11589
  }), []), h = $.useMemo(() => ({
@@ -11624,7 +11624,7 @@ function _v(e) {
11624
11624
  reference: a
11625
11625
  }
11626
11626
  }
11627
- }), g = $.useCallback((y) => {
11627
+ }), b = $.useCallback((y) => {
11628
11628
  const C = ve(y) ? {
11629
11629
  getBoundingClientRect: () => y.getBoundingClientRect(),
11630
11630
  getClientRects: () => y.getClientRects(),
@@ -11636,21 +11636,21 @@ function _v(e) {
11636
11636
  // `null` to support `positionReference` + an unstable `reference`
11637
11637
  // callback ref.
11638
11638
  y !== null && !ve(y)) && d.refs.setReference(y);
11639
- }, [d.refs]), b = $.useMemo(() => ({
11639
+ }, [d.refs]), g = $.useMemo(() => ({
11640
11640
  ...d.refs,
11641
11641
  setReference: m,
11642
- setPositionReference: g,
11642
+ setPositionReference: b,
11643
11643
  domReference: f
11644
- }), [d.refs, m, g]), w = $.useMemo(() => ({
11644
+ }), [d.refs, m, b]), w = $.useMemo(() => ({
11645
11645
  ...d.elements,
11646
11646
  domReference: u
11647
11647
  }), [d.elements, u]), x = $.useMemo(() => ({
11648
11648
  ...d,
11649
11649
  ...r,
11650
- refs: b,
11650
+ refs: g,
11651
11651
  elements: w,
11652
11652
  nodeId: t
11653
- }), [d, b, w, t, r]);
11653
+ }), [d, g, w, t, r]);
11654
11654
  return qs(() => {
11655
11655
  r.dataRef.current.floatingContext = x;
11656
11656
  const y = h == null ? void 0 : h.nodesRef.current.find((C) => C.id === t);
@@ -11658,9 +11658,9 @@ function _v(e) {
11658
11658
  }), $.useMemo(() => ({
11659
11659
  ...d,
11660
11660
  context: x,
11661
- refs: b,
11661
+ refs: g,
11662
11662
  elements: w
11663
- }), [d, b, w, x]);
11663
+ }), [d, g, w, x]);
11664
11664
  }
11665
11665
  function Ko(e, t, n) {
11666
11666
  const r = /* @__PURE__ */ new Map(), o = n === "item";
@@ -11689,9 +11689,9 @@ function Ko(e, t, n) {
11689
11689
  if (r.has(c) || r.set(c, []), typeof u == "function") {
11690
11690
  var f;
11691
11691
  (f = r.get(c)) == null || f.push(u), i[c] = function() {
11692
- for (var h, d = arguments.length, g = new Array(d), m = 0; m < d; m++)
11693
- g[m] = arguments[m];
11694
- return (h = r.get(c)) == null ? void 0 : h.map((b) => b(...g)).find((b) => b !== void 0);
11692
+ for (var h, d = arguments.length, b = new Array(d), m = 0; m < d; m++)
11693
+ b[m] = arguments[m];
11694
+ return (h = r.get(c)) == null ? void 0 : h.map((g) => g(...b)).find((g) => g !== void 0);
11695
11695
  };
11696
11696
  }
11697
11697
  } else
@@ -11962,14 +11962,14 @@ const jv = {
11962
11962
  taskStyle: c,
11963
11963
  listStickyTopBase: u
11964
11964
  }) => {
11965
- const [f, h] = he(!1), { taskDetails: d, prefetchQuery: g } = fv({
11965
+ const [f, h] = he(!1), { taskDetails: d, prefetchQuery: b } = fv({
11966
11966
  taskId: e.taskId,
11967
11967
  playbookId: l,
11968
11968
  enabled: i
11969
11969
  }), { buttons: m } = $f({
11970
11970
  taskStatus: e.workflowStatus,
11971
11971
  canStart: s
11972
- }), b = de(() => e.imageRequired === 0 ? null : e.imageRequired === 1 ? Qo.SCREENSHOT : e.imageRequired === 2 ? Qo.PHOTO : null, [e.imageRequired]), w = async (x) => {
11972
+ }), g = de(() => e.imageRequired === 0 ? null : e.imageRequired === 1 ? Qo.SCREENSHOT : e.imageRequired === 2 ? Qo.PHOTO : null, [e.imageRequired]), w = async (x) => {
11973
11973
  try {
11974
11974
  h(!0), await r(x);
11975
11975
  } finally {
@@ -12013,7 +12013,7 @@ const jv = {
12013
12013
  onClick: () => {
12014
12014
  a == null || a(!i);
12015
12015
  },
12016
- onMouseOver: g,
12016
+ onMouseOver: b,
12017
12017
  className: Oe(
12018
12018
  "flex-1 truncate cursor-pointer",
12019
12019
  i && "font-medium",
@@ -12080,10 +12080,10 @@ const jv = {
12080
12080
  children: e.taskInstanceName
12081
12081
  }
12082
12082
  ),
12083
- b ? /* @__PURE__ */ ye("div", { className: "flex items-center gap-2 text-sm pb-2", children: [
12083
+ g ? /* @__PURE__ */ ye("div", { className: "flex items-center gap-2 text-sm pb-2", children: [
12084
12084
  /* @__PURE__ */ R(Wt, { icon: zm, className: "size-4" }),
12085
12085
  /* @__PURE__ */ ye("div", { children: [
12086
- /* @__PURE__ */ R("span", { className: "font-medium", children: b === Qo.PHOTO ? "Photo" : "Screenshot" }),
12086
+ /* @__PURE__ */ R("span", { className: "font-medium", children: g === Qo.PHOTO ? "Photo" : "Screenshot" }),
12087
12087
  " ",
12088
12088
  "required"
12089
12089
  ] })
@@ -12103,7 +12103,7 @@ const jv = {
12103
12103
  ur,
12104
12104
  {
12105
12105
  size: "smallCollapse",
12106
- onMouseOver: g,
12106
+ onMouseOver: b,
12107
12107
  category: "link",
12108
12108
  onClick: () => {
12109
12109
  a();
@@ -12218,25 +12218,25 @@ const jv = {
12218
12218
  onTaskButtonClick: n,
12219
12219
  playbookStyle: r
12220
12220
  }) => {
12221
- var h;
12221
+ var h, d, b, m, g;
12222
12222
  const { playbookInstanceName: o, tasks: s } = e, i = oe(null), [a, l] = he(0), { isTaskExpanded: c, toggleTaskExpanded: u } = ry(
12223
12223
  e.playbookInstanceId
12224
12224
  );
12225
- Ee(() => (i.current && new ResizeObserver((g) => {
12226
- var m;
12227
- for (const b of g)
12228
- console.log("ResizeObserver entry:", b), b.contentRect && l(
12229
- ((m = i.current) == null ? void 0 : m.offsetHeight) || 0
12225
+ Ee(() => (i.current && new ResizeObserver((x) => {
12226
+ var y;
12227
+ for (const C of x)
12228
+ console.log("ResizeObserver entry:", C), C.contentRect && l(
12229
+ ((y = i.current) == null ? void 0 : y.offsetHeight) || 0
12230
12230
  );
12231
12231
  }).observe(i.current), () => {
12232
12232
  i.current && new ResizeObserver(() => {
12233
12233
  }).unobserve(i.current);
12234
12234
  }), [i]);
12235
12235
  const f = de(() => {
12236
- const d = s.find(
12237
- (g) => g.workflowStatus === ge.COMPLETED
12236
+ const w = s.find(
12237
+ (x) => x.workflowStatus === ge.COMPLETED
12238
12238
  );
12239
- return d ? d.sequenceOrder + 1 : 0;
12239
+ return w ? w.sequenceOrder + 1 : 0;
12240
12240
  }, [s]);
12241
12241
  return /* @__PURE__ */ ye(
12242
12242
  "div",
@@ -12247,11 +12247,11 @@ const jv = {
12247
12247
  ),
12248
12248
  ...(r == null ? void 0 : r.overlay) && {
12249
12249
  style: {
12250
- width: r.overlay.width || 450,
12251
- height: r.overlay.height || "calc(100vh - 4rem)",
12250
+ width: ((h = r.overlay.size) == null ? void 0 : h.width) || 450,
12251
+ height: ((d = r.overlay.size) == null ? void 0 : d.height) || "calc(100vh - 4rem)",
12252
12252
  maxHeight: "calc(100vh - 4rem)",
12253
- right: r.overlay.right !== void 0 ? r.overlay.right : r.overlay.position === "right" ? 32 : void 0,
12254
- left: r.overlay.left !== void 0 ? r.overlay.left : r.overlay.position === "left" ? 32 : void 0
12253
+ right: ((b = r.overlay.offset) == null ? void 0 : b.right) !== void 0 ? r.overlay.offset.right : r.overlay.position === "right" ? 32 : void 0,
12254
+ left: ((m = r.overlay.offset) == null ? void 0 : m.left) !== void 0 ? r.overlay.offset.left : r.overlay.position === "left" ? 32 : void 0
12255
12255
  }
12256
12256
  },
12257
12257
  children: [
@@ -12262,7 +12262,7 @@ const jv = {
12262
12262
  "size-9 relative p-1 top-3 z-[99999999999999] border-none rounded-l-sm "
12263
12263
  ),
12264
12264
  style: {
12265
- backgroundColor: ((h = r == null ? void 0 : r.whiteLabel) == null ? void 0 : h.primaryColor) || "#007BFF",
12265
+ backgroundColor: ((g = r == null ? void 0 : r.whiteLabel) == null ? void 0 : g.primaryColor) || "#007BFF",
12266
12266
  boxShadow: "0px 3px 3px 0px #00000040"
12267
12267
  },
12268
12268
  children: /* @__PURE__ */ R(
@@ -12297,26 +12297,26 @@ const jv = {
12297
12297
  {
12298
12298
  playbookMode: t,
12299
12299
  numberOfTasks: e.numberofTasks,
12300
- children: s.map((d, g) => {
12301
- var m;
12300
+ children: s.map((w, x) => {
12301
+ var y;
12302
12302
  return /* @__PURE__ */ R(
12303
12303
  ey,
12304
12304
  {
12305
- task: d,
12306
- step: g + 1,
12305
+ task: w,
12306
+ step: x + 1,
12307
12307
  viewMode: t,
12308
12308
  playbookId: e.playbookId,
12309
- canStart: d.sequenceOrder === f,
12310
- onButtonClick: (b) => n(b, d.taskInstanceId),
12309
+ canStart: w.sequenceOrder === f,
12310
+ onButtonClick: (C) => n(C, w.taskInstanceId),
12311
12311
  playbookType: "Non-Sequential",
12312
12312
  taskStyle: {
12313
- titleColor: (m = r == null ? void 0 : r.whiteLabel) == null ? void 0 : m.primaryColor
12313
+ titleColor: (y = r == null ? void 0 : r.whiteLabel) == null ? void 0 : y.primaryColor
12314
12314
  },
12315
- isExpanded: c(d.taskInstanceId),
12316
- toggleExpanded: () => u(d.taskInstanceId),
12315
+ isExpanded: c(w.taskInstanceId),
12316
+ toggleExpanded: () => u(w.taskInstanceId),
12317
12317
  listStickyTopBase: a || 104
12318
12318
  },
12319
- g
12319
+ x
12320
12320
  );
12321
12321
  })
12322
12322
  }