@seamapi/react 2.1.3 → 2.1.4

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/elements.js CHANGED
@@ -271,8 +271,8 @@ ne.useTransition = function() {
271
271
  };
272
272
  ne.version = "18.2.0";
273
273
  B1.exports = ne;
274
- var z = B1.exports;
275
- const jn = /* @__PURE__ */ tl(z);
274
+ var M = B1.exports;
275
+ const jn = /* @__PURE__ */ tl(M);
276
276
  /**
277
277
  * @license React
278
278
  * react-jsx-runtime.production.min.js
@@ -282,7 +282,7 @@ const jn = /* @__PURE__ */ tl(z);
282
282
  * This source code is licensed under the MIT license found in the
283
283
  * LICENSE file in the root directory of this source tree.
284
284
  */
285
- var EE = z, xE = Symbol.for("react.element"), OE = Symbol.for("react.fragment"), CE = Object.prototype.hasOwnProperty, IE = EE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, jE = { key: !0, ref: !0, __self: !0, __source: !0 };
285
+ var EE = M, xE = Symbol.for("react.element"), OE = Symbol.for("react.fragment"), CE = Object.prototype.hasOwnProperty, IE = EE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, jE = { key: !0, ref: !0, __self: !0, __source: !0 };
286
286
  function J1(t, e, n) {
287
287
  var r, i = {}, s = null, o = null;
288
288
  n !== void 0 && (s = "" + n), e.key !== void 0 && (s = "" + e.key), e.ref !== void 0 && (o = e.ref);
@@ -404,14 +404,14 @@ var p = U1.exports, X1 = { exports: {} }, Nt = {}, ev = { exports: {} }, tv = {}
404
404
  f = null, d = Y, h = !1;
405
405
  }
406
406
  }
407
- var w = !1, A = null, O = -1, T = 5, M = -1;
407
+ var w = !1, A = null, O = -1, T = 5, z = -1;
408
408
  function L() {
409
- return !(t.unstable_now() - M < T);
409
+ return !(t.unstable_now() - z < T);
410
410
  }
411
411
  function V() {
412
412
  if (A !== null) {
413
413
  var k = t.unstable_now();
414
- M = k;
414
+ z = k;
415
415
  var Q = !0;
416
416
  try {
417
417
  Q = A(!0, k);
@@ -533,7 +533,7 @@ var TE = ev.exports;
533
533
  * This source code is licensed under the MIT license found in the
534
534
  * LICENSE file in the root directory of this source tree.
535
535
  */
536
- var nv = z, kt = TE;
536
+ var nv = M, kt = TE;
537
537
  function R(t) {
538
538
  for (var e = "https://reactjs.org/docs/error-decoder.html?invariant=" + t, n = 1; n < arguments.length; n++)
539
539
  e += "&args[]=" + encodeURIComponent(arguments[n]);
@@ -3056,12 +3056,12 @@ function ab(t) {
3056
3056
  function m(g, y, S, E) {
3057
3057
  for (var I = null, w = null, A = y, O = y = 0, T = null; A !== null && O < S.length; O++) {
3058
3058
  A.index > O ? (T = A, A = null) : T = A.sibling;
3059
- var M = d(g, A, S[O], E);
3060
- if (M === null) {
3059
+ var z = d(g, A, S[O], E);
3060
+ if (z === null) {
3061
3061
  A === null && (A = T);
3062
3062
  break;
3063
3063
  }
3064
- t && A && M.alternate === null && e(g, A), y = s(M, y, O), w === null ? I = M : w.sibling = M, w = M, A = T;
3064
+ t && A && z.alternate === null && e(g, A), y = s(z, y, O), w === null ? I = z : w.sibling = z, w = z, A = T;
3065
3065
  }
3066
3066
  if (O === S.length)
3067
3067
  return n(g, A), Ee && Xr(g, O), I;
@@ -3082,27 +3082,27 @@ function ab(t) {
3082
3082
  throw Error(R(150));
3083
3083
  if (S = I.call(S), S == null)
3084
3084
  throw Error(R(151));
3085
- for (var w = I = null, A = y, O = y = 0, T = null, M = S.next(); A !== null && !M.done; O++, M = S.next()) {
3085
+ for (var w = I = null, A = y, O = y = 0, T = null, z = S.next(); A !== null && !z.done; O++, z = S.next()) {
3086
3086
  A.index > O ? (T = A, A = null) : T = A.sibling;
3087
- var L = d(g, A, M.value, E);
3087
+ var L = d(g, A, z.value, E);
3088
3088
  if (L === null) {
3089
3089
  A === null && (A = T);
3090
3090
  break;
3091
3091
  }
3092
3092
  t && A && L.alternate === null && e(g, A), y = s(L, y, O), w === null ? I = L : w.sibling = L, w = L, A = T;
3093
3093
  }
3094
- if (M.done)
3094
+ if (z.done)
3095
3095
  return n(
3096
3096
  g,
3097
3097
  A
3098
3098
  ), Ee && Xr(g, O), I;
3099
3099
  if (A === null) {
3100
- for (; !M.done; O++, M = S.next())
3101
- M = f(g, M.value, E), M !== null && (y = s(M, y, O), w === null ? I = M : w.sibling = M, w = M);
3100
+ for (; !z.done; O++, z = S.next())
3101
+ z = f(g, z.value, E), z !== null && (y = s(z, y, O), w === null ? I = z : w.sibling = z, w = z);
3102
3102
  return Ee && Xr(g, O), I;
3103
3103
  }
3104
- for (A = r(g, A); !M.done; O++, M = S.next())
3105
- M = h(A, g, O, M.value, E), M !== null && (t && M.alternate !== null && A.delete(M.key === null ? O : M.key), y = s(M, y, O), w === null ? I = M : w.sibling = M, w = M);
3104
+ for (A = r(g, A); !z.done; O++, z = S.next())
3105
+ z = h(A, g, O, z.value, E), z !== null && (t && z.alternate !== null && A.delete(z.key === null ? O : z.key), y = s(z, y, O), w === null ? I = z : w.sibling = z, w = z);
3106
3106
  return t && A.forEach(function(V) {
3107
3107
  return e(g, V);
3108
3108
  }), Ee && Xr(g, O), I;
@@ -7365,13 +7365,13 @@ function sO() {
7365
7365
  return Promise.reject("Cancelled");
7366
7366
  if (typeof O > "u" && !A && w.length)
7367
7367
  return Promise.resolve(w);
7368
- const M = {
7368
+ const z = {
7369
7369
  queryKey: t.queryKey,
7370
7370
  pageParam: O,
7371
7371
  meta: t.options.meta
7372
7372
  };
7373
- b(M);
7374
- const L = g(M);
7373
+ b(z);
7374
+ const L = g(z);
7375
7375
  return Promise.resolve(L).then((U) => y(w, O, U, T));
7376
7376
  };
7377
7377
  let E;
@@ -7730,8 +7730,8 @@ class lO extends Da {
7730
7730
  status: b
7731
7731
  } = f, g = !1, y = !1, S;
7732
7732
  if (n._optimisticResults) {
7733
- const O = this.hasListeners(), T = !O && Pg(e, n), M = O && Rg(e, r, n, i);
7734
- (T || M) && (v = qc(e.options.networkMode) ? "fetching" : "paused", d || (b = "loading")), n._optimisticResults === "isRestoring" && (v = "idle");
7733
+ const O = this.hasListeners(), T = !O && Pg(e, n), z = O && Rg(e, r, n, i);
7734
+ (T || z) && (v = qc(e.options.networkMode) ? "fetching" : "paused", d || (b = "loading")), n._optimisticResults === "isRestoring" && (v = "idle");
7735
7735
  }
7736
7736
  if (n.keepPreviousData && !f.dataUpdatedAt && u != null && u.isSuccess && b !== "error")
7737
7737
  S = u.data, d = u.dataUpdatedAt, b = u.status, g = !0;
@@ -7951,7 +7951,7 @@ var pS = { exports: {} }, fS = {};
7951
7951
  * This source code is licensed under the MIT license found in the
7952
7952
  * LICENSE file in the root directory of this source tree.
7953
7953
  */
7954
- var Ss = z;
7954
+ var Ss = M;
7955
7955
  function pO(t, e) {
7956
7956
  return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e;
7957
7957
  }
@@ -7983,14 +7983,14 @@ var SO = typeof window > "u" || typeof window.document > "u" || typeof window.do
7983
7983
  fS.useSyncExternalStore = Ss.useSyncExternalStore !== void 0 ? Ss.useSyncExternalStore : SO;
7984
7984
  pS.exports = fS;
7985
7985
  var wO = pS.exports;
7986
- const hS = wO.useSyncExternalStore, kg = /* @__PURE__ */ z.createContext(void 0), mS = /* @__PURE__ */ z.createContext(!1);
7986
+ const hS = wO.useSyncExternalStore, kg = /* @__PURE__ */ M.createContext(void 0), mS = /* @__PURE__ */ M.createContext(!1);
7987
7987
  function yS(t, e) {
7988
7988
  return t || (e && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = kg), window.ReactQueryClientContext) : kg);
7989
7989
  }
7990
7990
  const gn = ({
7991
7991
  context: t
7992
7992
  } = {}) => {
7993
- const e = z.useContext(yS(t, z.useContext(mS)));
7993
+ const e = M.useContext(yS(t, M.useContext(mS)));
7994
7994
  if (!e)
7995
7995
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
7996
7996
  return e;
@@ -8000,16 +8000,16 @@ const gn = ({
8000
8000
  context: n,
8001
8001
  contextSharing: r = !1
8002
8002
  }) => {
8003
- z.useEffect(() => (t.mount(), () => {
8003
+ M.useEffect(() => (t.mount(), () => {
8004
8004
  t.unmount();
8005
8005
  }), [t]);
8006
8006
  const i = yS(n, r);
8007
- return /* @__PURE__ */ z.createElement(mS.Provider, {
8007
+ return /* @__PURE__ */ M.createElement(mS.Provider, {
8008
8008
  value: !n && r
8009
- }, /* @__PURE__ */ z.createElement(i.Provider, {
8009
+ }, /* @__PURE__ */ M.createElement(i.Provider, {
8010
8010
  value: t
8011
8011
  }, e));
8012
- }, gS = /* @__PURE__ */ z.createContext(!1), EO = () => z.useContext(gS);
8012
+ }, gS = /* @__PURE__ */ M.createContext(!1), EO = () => M.useContext(gS);
8013
8013
  gS.Provider;
8014
8014
  function xO() {
8015
8015
  let t = !1;
@@ -8023,14 +8023,14 @@ function xO() {
8023
8023
  isReset: () => t
8024
8024
  };
8025
8025
  }
8026
- const OO = /* @__PURE__ */ z.createContext(xO()), CO = () => z.useContext(OO);
8026
+ const OO = /* @__PURE__ */ M.createContext(xO()), CO = () => M.useContext(OO);
8027
8027
  function vS(t, e) {
8028
8028
  return typeof t == "function" ? t(...e) : !!t;
8029
8029
  }
8030
8030
  const IO = (t, e) => {
8031
8031
  (t.suspense || t.useErrorBoundary) && (e.isReset() || (t.retryOnMount = !1));
8032
8032
  }, jO = (t) => {
8033
- z.useEffect(() => {
8033
+ M.useEffect(() => {
8034
8034
  t.clearReset();
8035
8035
  }, [t]);
8036
8036
  }, TO = ({
@@ -8052,12 +8052,12 @@ function RO(t, e) {
8052
8052
  context: t.context
8053
8053
  }), r = EO(), i = CO(), s = n.defaultQueryOptions(t);
8054
8054
  s._optimisticResults = r ? "isRestoring" : "optimistic", s.onError && (s.onError = _e.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = _e.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = _e.batchCalls(s.onSettled)), _O(s), IO(s, i), jO(i);
8055
- const [o] = z.useState(() => new e(n, s)), l = o.getOptimisticResult(s);
8056
- if (hS(z.useCallback((c) => {
8055
+ const [o] = M.useState(() => new e(n, s)), l = o.getOptimisticResult(s);
8056
+ if (hS(M.useCallback((c) => {
8057
8057
  const a = r ? () => {
8058
8058
  } : o.subscribe(_e.batchCalls(c));
8059
8059
  return o.updateResult(), a;
8060
- }, [o, r]), () => o.getCurrentResult(), () => o.getCurrentResult()), z.useEffect(() => {
8060
+ }, [o, r]), () => o.getCurrentResult(), () => o.getCurrentResult()), M.useEffect(() => {
8061
8061
  o.setOptions(s, {
8062
8062
  listeners: !1
8063
8063
  });
@@ -8079,11 +8079,11 @@ function Jt(t, e, n) {
8079
8079
  function Va(t, e, n) {
8080
8080
  const r = Zx(t, e, n), i = gn({
8081
8081
  context: r.context
8082
- }), [s] = z.useState(() => new cO(i, r));
8083
- z.useEffect(() => {
8082
+ }), [s] = M.useState(() => new cO(i, r));
8083
+ M.useEffect(() => {
8084
8084
  s.setOptions(r);
8085
8085
  }, [s, r]);
8086
- const o = hS(z.useCallback((c) => s.subscribe(_e.batchCalls(c)), [s]), () => s.getCurrentResult(), () => s.getCurrentResult()), l = z.useCallback((c, a) => {
8086
+ const o = hS(M.useCallback((c) => s.subscribe(_e.batchCalls(c)), [s]), () => s.getCurrentResult(), () => s.getCurrentResult()), l = M.useCallback((c, a) => {
8087
8087
  s.mutate(c, a).catch(kO);
8088
8088
  }, [s]);
8089
8089
  if (o.error && vS(s.options.useErrorBoundary, [o.error]))
@@ -8226,7 +8226,7 @@ function Id(t, e, n) {
8226
8226
  }
8227
8227
  return qO(r);
8228
8228
  }
8229
- const bS = "2.1.3";
8229
+ const bS = "2.1.4";
8230
8230
  var Gn, vr, ds, Qn, cs, ps, qt, Ec, wS, Zn, on;
8231
8231
  class SS {
8232
8232
  constructor({
@@ -8732,11 +8732,11 @@ function Zg() {
8732
8732
  E.open(f.method.toUpperCase(), r(A, f.params, f.paramsSerializer), !0), E.timeout = f.timeout;
8733
8733
  function O() {
8734
8734
  if (E) {
8735
- var M = "getAllResponseHeaders" in E ? s(E.getAllResponseHeaders()) : null, L = !g || g === "text" || g === "json" ? E.responseText : E.response, V = {
8735
+ var z = "getAllResponseHeaders" in E ? s(E.getAllResponseHeaders()) : null, L = !g || g === "text" || g === "json" ? E.responseText : E.response, V = {
8736
8736
  data: L,
8737
8737
  status: E.status,
8738
8738
  statusText: E.statusText,
8739
- headers: M,
8739
+ headers: z,
8740
8740
  config: f,
8741
8741
  request: E
8742
8742
  };
@@ -8767,8 +8767,8 @@ function Zg() {
8767
8767
  }
8768
8768
  "setRequestHeader" in E && t.forEach(b, function(L, V) {
8769
8769
  typeof v > "u" && V.toLowerCase() === "content-type" ? delete b[V] : E.setRequestHeader(V, L);
8770
- }), t.isUndefined(f.withCredentials) || (E.withCredentials = !!f.withCredentials), g && g !== "json" && (E.responseType = f.responseType), typeof f.onDownloadProgress == "function" && E.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && E.upload && E.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (y = function(M) {
8771
- E && (m(!M || M && M.type ? new a("canceled") : M), E.abort(), E = null);
8770
+ }), t.isUndefined(f.withCredentials) || (E.withCredentials = !!f.withCredentials), g && g !== "json" && (E.responseType = f.responseType), typeof f.onDownloadProgress == "function" && E.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && E.upload && E.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (y = function(z) {
8771
+ E && (m(!z || z && z.type ? new a("canceled") : z), E.abort(), E = null);
8772
8772
  }, f.cancelToken && f.cancelToken.subscribe(y), f.signal && (f.signal.aborted ? y() : f.signal.addEventListener("abort", y))), v || (v = null), E.send(v);
8773
8773
  });
8774
8774
  }, Lp;
@@ -12825,7 +12825,7 @@ var Xt = {};
12825
12825
  W !== "default" && !J.hasOwnProperty(W) && e(J, _i, W);
12826
12826
  };
12827
12827
  Object.defineProperty(t, "__esModule", { value: !0 }), t.ObjectSerializer = void 0, n(ws, t), n(As, t), n(Es, t), n(xs, t), n(Os, t), n(Nm, t), n(Cs, t), n(Is, t), n(js, t), n(Ts, t), n(_s, t), n(Ms, t), n(zs, t), n(Ps, t), n(Rs, t), n(ks, t), n(Ns, t), n(Ds, t), n(Vs, t), n(Hs, t), n(qs, t), n(Fs, t), n(Ls, t), n(Us, t), n(Bs, t), n($s, t), n(Gs, t), n(Qs, t), n(Zs, t), n(Ws, t), n(Ks, t), n(Ys, t), n(Js, t), n(Xs, t), n(ea, t), n(ta, t), n(na, t), n(ra, t), n(ia, t), n(sa, t), n(aa, t), n(oa, t), n(la, t), n(ua, t), n(da, t), n(ca, t), n(pa, t), n(fa, t), n(ha, t), n(ma, t), n(ya, t), n(ga, t), n(va, t), n(ba, t), n(Sa, t), n(wa, t), n(Aa, t), n(Dm, t), n(Ea, t), n(xa, t), n(Oa, t), n(Vm, t), n(Ca, t), n(Ia, t), n(ja, t), n(Hm, t), n(qm, t), n(Ta, t), n(_a, t);
12828
- const r = ws, i = As, s = Es, o = xs, l = Os, c = Cs, a = Is, u = js, f = Ts, d = _s, h = Ms, m = zs, v = Ps, b = Rs, g = ks, y = Ns, S = Ds, E = Vs, I = Hs, w = qs, A = Fs, O = Ls, T = Us, M = Bs, L = $s, V = Gs, U = Qs, X = Zs, de = Ws, se = Ks, te = Ys, k = Js, Q = Xs, Y = ea, fe = ta, be = na, wn = ra, bt = ia, An = sa, ct = aa, Hn = oa, $a = la, _u = ua, Mu = da, np = ca, zu = pa, Pu = fa, fy = ha, hy = ma, my = ya, C = ga, j = va, _ = ba, B = Sa, q = wa, D = Aa, Z = Ea, Se = xa, xe = Oa, sr = Ca, rp = Ia, Ga = ja, Qa = Ta, ip = _a;
12828
+ const r = ws, i = As, s = Es, o = xs, l = Os, c = Cs, a = Is, u = js, f = Ts, d = _s, h = Ms, m = zs, v = Ps, b = Rs, g = ks, y = Ns, S = Ds, E = Vs, I = Hs, w = qs, A = Fs, O = Ls, T = Us, z = Bs, L = $s, V = Gs, U = Qs, X = Zs, de = Ws, se = Ks, te = Ys, k = Js, Q = Xs, Y = ea, fe = ta, be = na, wn = ra, bt = ia, An = sa, ct = aa, Hn = oa, $a = la, _u = ua, Mu = da, np = ca, zu = pa, Pu = fa, fy = ha, hy = ma, my = ya, C = ga, j = va, _ = ba, B = Sa, q = wa, D = Aa, Z = Ea, Se = xa, xe = Oa, sr = Ca, rp = Ia, Ga = ja, Qa = Ta, ip = _a;
12829
12829
  let ji = [
12830
12830
  "string",
12831
12831
  "boolean",
@@ -12876,7 +12876,7 @@ var Xt = {};
12876
12876
  EndpointStats: A.EndpointStats,
12877
12877
  EndpointUpdate: O.EndpointUpdate,
12878
12878
  EndpointUpdatedEvent: T.EndpointUpdatedEvent,
12879
- EndpointUpdatedEventData: M.EndpointUpdatedEventData,
12879
+ EndpointUpdatedEventData: z.EndpointUpdatedEventData,
12880
12880
  EnvironmentIn: L.EnvironmentIn,
12881
12881
  EnvironmentOut: V.EnvironmentOut,
12882
12882
  EnvironmentSettingsOut: U.EnvironmentSettingsOut,
@@ -15480,8 +15480,8 @@ function K4() {
15480
15480
  O.setHeaderParam("Accept", "application/json, */*;q=0.8");
15481
15481
  const T = Math.floor(Math.random() * Math.pow(2, 32));
15482
15482
  O.setHeaderParam("svix-req-id", T.toString()), f !== void 0 && O.setQueryParam("endpoint_id", r.ObjectSerializer.serialize(f, "string", "")), d !== void 0 && O.setQueryParam("iterator", r.ObjectSerializer.serialize(d, "string", "")), h !== void 0 && O.setQueryParam("limit", r.ObjectSerializer.serialize(h, "number", "")), m !== void 0 && O.setQueryParam("status", r.ObjectSerializer.serialize(m, "MessageStatus", "")), v !== void 0 && O.setQueryParam("status_code_class", r.ObjectSerializer.serialize(v, "StatusCodeClass", "")), b !== void 0 && O.setQueryParam("event_types", r.ObjectSerializer.serialize(b, "Array<string>", "")), g !== void 0 && O.setQueryParam("channel", r.ObjectSerializer.serialize(g, "string", "")), y !== void 0 && O.setQueryParam("before", r.ObjectSerializer.serialize(y, "Date", "date-time")), S !== void 0 && O.setQueryParam("after", r.ObjectSerializer.serialize(S, "Date", "date-time")), E !== void 0 && O.setHeaderParam("idempotency-key", r.ObjectSerializer.serialize(E, "string", ""));
15483
- let M = null;
15484
- return M = w.authMethods.HTTPBearer, M && (yield M.applySecurityAuthentication(O)), O;
15483
+ let z = null;
15484
+ return z = w.authMethods.HTTPBearer, z && (yield z.applySecurityAuthentication(O)), O;
15485
15485
  });
15486
15486
  }
15487
15487
  listAttemptsForEndpointApiV1AppAppIdMsgMsgIdEndpointEndpointIdAttemptGet(a, u, f, d, h, m, v, b, g, y, S, E) {
@@ -17123,13 +17123,13 @@ var rw = { exports: {} };
17123
17123
  3329325298
17124
17124
  ]);
17125
17125
  function r(d, h, m, v, b) {
17126
- for (var g, y, S, E, I, w, A, O, T, M, L, V, U; b >= 64; ) {
17127
- for (g = h[0], y = h[1], S = h[2], E = h[3], I = h[4], w = h[5], A = h[6], O = h[7], M = 0; M < 16; M++)
17128
- L = v + M * 4, d[M] = (m[L] & 255) << 24 | (m[L + 1] & 255) << 16 | (m[L + 2] & 255) << 8 | m[L + 3] & 255;
17129
- for (M = 16; M < 64; M++)
17130
- T = d[M - 2], V = (T >>> 17 | T << 32 - 17) ^ (T >>> 19 | T << 32 - 19) ^ T >>> 10, T = d[M - 15], U = (T >>> 7 | T << 32 - 7) ^ (T >>> 18 | T << 32 - 18) ^ T >>> 3, d[M] = (V + d[M - 7] | 0) + (U + d[M - 16] | 0);
17131
- for (M = 0; M < 64; M++)
17132
- V = (((I >>> 6 | I << 32 - 6) ^ (I >>> 11 | I << 32 - 11) ^ (I >>> 25 | I << 32 - 25)) + (I & w ^ ~I & A) | 0) + (O + (n[M] + d[M] | 0) | 0) | 0, U = ((g >>> 2 | g << 32 - 2) ^ (g >>> 13 | g << 32 - 13) ^ (g >>> 22 | g << 32 - 22)) + (g & y ^ g & S ^ y & S) | 0, O = A, A = w, w = I, I = E + V | 0, E = S, S = y, y = g, g = V + U | 0;
17126
+ for (var g, y, S, E, I, w, A, O, T, z, L, V, U; b >= 64; ) {
17127
+ for (g = h[0], y = h[1], S = h[2], E = h[3], I = h[4], w = h[5], A = h[6], O = h[7], z = 0; z < 16; z++)
17128
+ L = v + z * 4, d[z] = (m[L] & 255) << 24 | (m[L + 1] & 255) << 16 | (m[L + 2] & 255) << 8 | m[L + 3] & 255;
17129
+ for (z = 16; z < 64; z++)
17130
+ T = d[z - 2], V = (T >>> 17 | T << 32 - 17) ^ (T >>> 19 | T << 32 - 19) ^ T >>> 10, T = d[z - 15], U = (T >>> 7 | T << 32 - 7) ^ (T >>> 18 | T << 32 - 18) ^ T >>> 3, d[z] = (V + d[z - 7] | 0) + (U + d[z - 16] | 0);
17131
+ for (z = 0; z < 64; z++)
17132
+ V = (((I >>> 6 | I << 32 - 6) ^ (I >>> 11 | I << 32 - 11) ^ (I >>> 25 | I << 32 - 25)) + (I & w ^ ~I & A) | 0) + (O + (n[z] + d[z] | 0) | 0) | 0, U = ((g >>> 2 | g << 32 - 2) ^ (g >>> 13 | g << 32 - 13) ^ (g >>> 22 | g << 32 - 22)) + (g & y ^ g & S ^ y & S) | 0, O = A, A = w, w = I, I = E + V | 0, E = S, S = y, y = g, g = V + U | 0;
17133
17133
  h[0] += g, h[1] += y, h[2] += S, h[3] += E, h[4] += I, h[5] += w, h[6] += A, h[7] += O, v += 64, b -= 64;
17134
17134
  }
17135
17135
  return v;
@@ -17296,12 +17296,12 @@ var VI = rw.exports;
17296
17296
  class u {
17297
17297
  constructor(w, A = {}) {
17298
17298
  var O;
17299
- const T = (O = A.serverUrl) !== null && O !== void 0 ? O : "https://api.svix.com", M = new r.ServerConfiguration(T, {}), L = {
17299
+ const T = (O = A.serverUrl) !== null && O !== void 0 ? O : "https://api.svix.com", z = new r.ServerConfiguration(T, {}), L = {
17300
17300
  tokenProvider: {
17301
17301
  getToken: () => w
17302
17302
  }
17303
17303
  }, V = r.createConfiguration({
17304
- baseServer: M,
17304
+ baseServer: z,
17305
17305
  promiseMiddleware: [new a()],
17306
17306
  authMethods: {
17307
17307
  HTTPBearer: L
@@ -17562,10 +17562,10 @@ var VI = rw.exports;
17562
17562
  const O = {};
17563
17563
  for (const se of Object.keys(A))
17564
17564
  O[se.toLowerCase()] = A[se];
17565
- let T = O["svix-id"], M = O["svix-signature"], L = O["svix-timestamp"];
17566
- if ((!M || !T || !L) && (T = O["webhook-id"], M = O["webhook-signature"], L = O["webhook-timestamp"], !M || !T || !L))
17565
+ let T = O["svix-id"], z = O["svix-signature"], L = O["svix-timestamp"];
17566
+ if ((!z || !T || !L) && (T = O["webhook-id"], z = O["webhook-signature"], L = O["webhook-timestamp"], !z || !T || !L))
17567
17567
  throw new S("Missing required headers");
17568
- const V = this.verifyTimestamp(L), X = this.sign(T, V, w).split(",")[1], de = M.split(" ");
17568
+ const V = this.verifyTimestamp(L), X = this.sign(T, V, w).split(",")[1], de = z.split(" ");
17569
17569
  for (const se of de) {
17570
17570
  const [te, k] = se.split(",");
17571
17571
  if (te === "v1" && k === X)
@@ -18307,7 +18307,7 @@ class qa extends Error {
18307
18307
  }
18308
18308
  function XI(t) {
18309
18309
  var n, r;
18310
- if (z.useEffect(() => {
18310
+ if (M.useEffect(() => {
18311
18311
  t == null && console.warn(`Using an automatically generated fingerprint for the SeamProvider userIdentifierKey!
18312
18312
  The user interface will show warnings when using a fingerprint.
18313
18313
  This is not recommended because the client session is now bound to this machine and is effectively ephemeral.`);
@@ -18329,19 +18329,19 @@ function ej({
18329
18329
  client: e,
18330
18330
  ...n
18331
18331
  }) {
18332
- const r = z.useMemo(() => ({ client: e ?? new SS(n) }), [e, n]);
18333
- if (z.useEffect(() => (r.client.load(n), () => {
18332
+ const r = M.useMemo(() => ({ client: e ?? new SS(n) }), [e, n]);
18333
+ if (M.useEffect(() => (r.client.load(n), () => {
18334
18334
  r.client.reset();
18335
18335
  }), [n, r]), r.client == null)
18336
18336
  throw new Error("Must provide a Telemetry client.");
18337
18337
  const { Provider: i } = lw;
18338
18338
  return /* @__PURE__ */ p.jsx(i, { value: r, children: t });
18339
18339
  }
18340
- const lw = z.createContext({
18340
+ const lw = M.createContext({
18341
18341
  client: new SS()
18342
18342
  });
18343
18343
  function tj() {
18344
- return z.useContext(lw);
18344
+ return M.useContext(lw);
18345
18345
  }
18346
18346
  function uw() {
18347
18347
  const { client: t } = tj();
@@ -18349,13 +18349,13 @@ function uw() {
18349
18349
  }
18350
18350
  function bn(t) {
18351
18351
  const { clientSession: e } = ow(), n = uw();
18352
- z.useEffect(() => {
18352
+ M.useEffect(() => {
18353
18353
  e != null && n.screen(t);
18354
18354
  }, [t, n, e]);
18355
18355
  }
18356
18356
  function nj() {
18357
18357
  const t = uw(), { publishableKey: e } = hw(), { clientSession: n } = ow();
18358
- z.useLayoutEffect(() => {
18358
+ M.useLayoutEffect(() => {
18359
18359
  if (n == null)
18360
18360
  return;
18361
18361
  const r = [
@@ -18374,7 +18374,7 @@ function nj() {
18374
18374
  const U0 = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap", rj = ({
18375
18375
  disabled: t = !1
18376
18376
  }) => {
18377
- z.useEffect(() => {
18377
+ M.useEffect(() => {
18378
18378
  if (t || globalThis.document == null || globalThis.document.querySelector(`link[href="${U0}"]`) != null)
18379
18379
  return;
18380
18380
  const n = globalThis.document.createElement("link");
@@ -18385,7 +18385,7 @@ const U0 = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
18385
18385
  unminified: e = !1
18386
18386
  }) => {
18387
18387
  const r = `${ij}/v/${bS}/dist/index.${`${e ? "" : "min."}css`}`;
18388
- z.useEffect(() => {
18388
+ M.useEffect(() => {
18389
18389
  if (t || globalThis.document == null || globalThis.document.querySelector(`link[href="${r}"]`) != null)
18390
18390
  return;
18391
18391
  const s = globalThis.document.createElement("link");
@@ -18405,7 +18405,7 @@ function oj({
18405
18405
  ...c
18406
18406
  }) {
18407
18407
  sj({ disabled: n, unminified: i }), rj({ disabled: r });
18408
- const a = z.useMemo(() => {
18408
+ const a = M.useMemo(() => {
18409
18409
  const d = cw(c);
18410
18410
  return d.client == null && d.publishableKey == null && d.clientSessionToken == null ? pw : d;
18411
18411
  }, [c]);
@@ -18436,7 +18436,7 @@ function lj({
18436
18436
  }) {
18437
18437
  nj();
18438
18438
  const { client: n } = Qe();
18439
- return z.useEffect(() => {
18439
+ return M.useEffect(() => {
18440
18440
  n != null && t(n);
18441
18441
  }, [t, n]), /* @__PURE__ */ p.jsx(p.Fragment, { children: e });
18442
18442
  }
@@ -18467,9 +18467,9 @@ const uj = () => {
18467
18467
  };
18468
18468
  }
18469
18469
  return { client: null };
18470
- }, pw = uj(), fw = z.createContext(pw);
18470
+ }, pw = uj(), fw = M.createContext(pw);
18471
18471
  function hw() {
18472
- return z.useContext(fw);
18472
+ return M.useContext(fw);
18473
18473
  }
18474
18474
  const dj = (t) => {
18475
18475
  if (!("client" in t))
@@ -24066,7 +24066,7 @@ async function gc(t) {
24066
24066
  var e, n;
24067
24067
  await ((n = (e = globalThis.navigator) == null ? void 0 : e.clipboard) == null ? void 0 : n.writeText(t));
24068
24068
  }
24069
- const wA = z.createContext({
24069
+ const wA = M.createContext({
24070
24070
  close: () => {
24071
24071
  }
24072
24072
  });
@@ -24078,23 +24078,23 @@ function Jm({
24078
24078
  renderButton: i,
24079
24079
  backgroundProps: s
24080
24080
  }) {
24081
- const { Provider: o } = wA, [l, c] = z.useState(null), [a, u] = z.useState(null), [f, d] = z.useState(null), [h, m] = z.useState(null), [v, b] = z.useState(0), [g, y] = z.useState(0);
24082
- z.useEffect(() => {
24081
+ const { Provider: o } = wA, [l, c] = M.useState(null), [a, u] = M.useState(null), [f, d] = M.useState(null), [h, m] = M.useState(null), [v, b] = M.useState(0), [g, y] = M.useState(0);
24082
+ M.useEffect(() => {
24083
24083
  const T = globalThis.document.documentElement;
24084
24084
  c(T);
24085
- const M = T == null ? void 0 : T.getElementsByTagName("body");
24086
- M[0] != null && u(M[0]);
24085
+ const z = T == null ? void 0 : T.getElementsByTagName("body");
24086
+ z[0] != null && u(z[0]);
24087
24087
  }, [c]);
24088
24088
  const S = () => {
24089
24089
  d(null);
24090
24090
  }, E = (T) => {
24091
24091
  d(T.currentTarget);
24092
- }, I = z.useCallback(() => {
24092
+ }, I = M.useCallback(() => {
24093
24093
  if (f == null || h == null || a == null || l == null)
24094
24094
  return;
24095
- const T = l.offsetLeft + l.clientWidth, M = l.offsetTop + l.clientHeight, L = f.getBoundingClientRect(), V = L.top + a.clientTop, U = L.left + a.clientLeft, X = f.offsetHeight, de = h.offsetWidth, se = h.offsetHeight, k = V + X + t, Q = U + e, Y = Q + de, fe = k + se, wn = Y > T ? T - de - e - n : Q;
24095
+ const T = l.offsetLeft + l.clientWidth, z = l.offsetTop + l.clientHeight, L = f.getBoundingClientRect(), V = L.top + a.clientTop, U = L.left + a.clientLeft, X = f.offsetHeight, de = h.offsetWidth, se = h.offsetHeight, k = V + X + t, Q = U + e, Y = Q + de, fe = k + se, wn = Y > T ? T - de - e - n : Q;
24096
24096
  y(wn);
24097
- const bt = fe > M, An = V - se - t, ct = bt && An > 0 ? An : k;
24097
+ const bt = fe > z, An = V - se - t, ct = bt && An > 0 ? An : k;
24098
24098
  b(ct);
24099
24099
  }, [
24100
24100
  f,
@@ -24105,7 +24105,7 @@ function Jm({
24105
24105
  a,
24106
24106
  l
24107
24107
  ]);
24108
- z.useLayoutEffect(() => (I(), globalThis.addEventListener("scroll", I), globalThis.addEventListener("resize", I), () => {
24108
+ M.useLayoutEffect(() => (I(), globalThis.addEventListener("scroll", I), globalThis.addEventListener("resize", I), () => {
24109
24109
  globalThis.removeEventListener("scroll", I), globalThis.removeEventListener("resize", I);
24110
24110
  }), [I]);
24111
24111
  const O = f != null && (v !== 0 && g !== 0);
@@ -24150,7 +24150,7 @@ function Jm({
24150
24150
  );
24151
24151
  }
24152
24152
  function OT() {
24153
- return z.useContext(wA);
24153
+ return M.useContext(wA);
24154
24154
  }
24155
24155
  function Yi({
24156
24156
  onClick: t,
@@ -24228,7 +24228,7 @@ function IT({
24228
24228
  );
24229
24229
  }
24230
24230
  const Iu = (t = !1) => {
24231
- const [e, n] = z.useState(t), r = z.useCallback(() => {
24231
+ const [e, n] = M.useState(t), r = M.useCallback(() => {
24232
24232
  n((i) => !i);
24233
24233
  }, [n]);
24234
24234
  return [e, r];
@@ -24331,10 +24331,10 @@ function wi() {
24331
24331
  }
24332
24332
  const _T = et.fromObject({ minutes: 1 }).as("milliseconds");
24333
24333
  function AA(t, e = _T) {
24334
- const n = z.useCallback(() => {
24334
+ const n = M.useCallback(() => {
24335
24335
  t();
24336
24336
  }, [t]);
24337
- z.useEffect(() => {
24337
+ M.useEffect(() => {
24338
24338
  const r = globalThis.setInterval(n, e);
24339
24339
  return () => {
24340
24340
  globalThis.clearInterval(r);
@@ -24342,10 +24342,10 @@ function AA(t, e = _T) {
24342
24342
  }, [n, e]);
24343
24343
  }
24344
24344
  function Xm(t) {
24345
- const [e, n] = z.useState(null), r = z.useCallback(() => {
24345
+ const [e, n] = M.useState(null), r = M.useCallback(() => {
24346
24346
  t != null && n(MT($.fromISO(t)));
24347
24347
  }, [t]);
24348
- return z.useEffect(r, [r]), AA(r), e;
24348
+ return M.useEffect(r, [r]), AA(r), e;
24349
24349
  }
24350
24350
  const MT = (t) => t.isValid ? t.diffNow().milliseconds < 0 : null;
24351
24351
  function zT(t) {
@@ -24626,13 +24626,13 @@ var Di = (t) => Ue(t) && !bc(t) ? t : {
24626
24626
  return {};
24627
24627
  const S = o ? o[0] : s, E = (V) => {
24628
24628
  r && S.reportValidity && (S.setCustomValidity(li(V) ? "" : V || ""), S.reportValidity());
24629
- }, I = {}, w = sy(s), A = ju(s), O = w || A, T = (v || iy(s)) && De(s.value) && De(y) || vc(s) && s.value === "" || y === "" || Array.isArray(y) && !y.length, M = BT.bind(null, m, n, I), L = (V, U, X, de = Fn.maxLength, se = Fn.minLength) => {
24629
+ }, I = {}, w = sy(s), A = ju(s), O = w || A, T = (v || iy(s)) && De(s.value) && De(y) || vc(s) && s.value === "" || y === "" || Array.isArray(y) && !y.length, z = BT.bind(null, m, n, I), L = (V, U, X, de = Fn.maxLength, se = Fn.minLength) => {
24630
24630
  const te = V ? U : X;
24631
24631
  I[m] = {
24632
24632
  type: V ? de : se,
24633
24633
  message: te,
24634
24634
  ref: s,
24635
- ...M(V ? de : se, te)
24635
+ ...z(V ? de : se, te)
24636
24636
  };
24637
24637
  };
24638
24638
  if (i ? !Array.isArray(y) || !y.length : l && (!O && (T || ht(y)) || li(y) && !y || A && !OA(o).isValid || w && !CA(o).isValid)) {
@@ -24641,7 +24641,7 @@ var Di = (t) => Ue(t) && !bc(t) ? t : {
24641
24641
  type: Fn.required,
24642
24642
  message: U,
24643
24643
  ref: S,
24644
- ...M(Fn.required, U)
24644
+ ...z(Fn.required, U)
24645
24645
  }, !n))
24646
24646
  return E(U), I;
24647
24647
  }
@@ -24669,7 +24669,7 @@ var Di = (t) => Ue(t) && !bc(t) ? t : {
24669
24669
  type: Fn.pattern,
24670
24670
  message: U,
24671
24671
  ref: s,
24672
- ...M(Fn.pattern, U)
24672
+ ...z(Fn.pattern, U)
24673
24673
  }, !n))
24674
24674
  return E(U), I;
24675
24675
  }
@@ -24678,7 +24678,7 @@ var Di = (t) => Ue(t) && !bc(t) ? t : {
24678
24678
  const V = await h(y, e), U = C1(V, S);
24679
24679
  if (U && (I[m] = {
24680
24680
  ...U,
24681
- ...M(Fn.validate, U.message)
24681
+ ...z(Fn.validate, U.message)
24682
24682
  }, !n))
24683
24683
  return E(U.message), I;
24684
24684
  } else if (Ue(h)) {
@@ -24689,7 +24689,7 @@ var Di = (t) => Ue(t) && !bc(t) ? t : {
24689
24689
  const X = C1(await h[U](y, e), S, U);
24690
24690
  X && (V = {
24691
24691
  ...X,
24692
- ...M(U, X.message)
24692
+ ...z(U, X.message)
24693
24693
  }, E(X.message), n && (I[m] = V));
24694
24694
  }
24695
24695
  if (!Lt(V) && (I[m] = {
@@ -24938,7 +24938,7 @@ function e_(t = {}, e) {
24938
24938
  }, d.state.next(Z);
24939
24939
  }
24940
24940
  S(!1);
24941
- }, T = async (C) => n.resolver(o, n.context, WT(C || c.mount, i, n.criteriaMode, n.shouldUseNativeValidation)), M = async (C) => {
24941
+ }, T = async (C) => n.resolver(o, n.context, WT(C || c.mount, i, n.criteriaMode, n.shouldUseNativeValidation)), z = async (C) => {
24942
24942
  const { errors: j } = await T(C);
24943
24943
  if (C)
24944
24944
  for (const _ of C) {
@@ -25028,7 +25028,7 @@ function e_(t = {}, e) {
25028
25028
  let _, B;
25029
25029
  const q = df(C);
25030
25030
  if (S(!0), n.resolver) {
25031
- const D = await M(De(C) ? C : q);
25031
+ const D = await z(De(C) ? C : q);
25032
25032
  _ = Lt(D), B = C ? !q.some((Z) => G(D, Z)) : _;
25033
25033
  } else
25034
25034
  C ? (B = (await Promise.all(q.map(async (D) => {
@@ -25365,7 +25365,7 @@ function r_(t) {
25365
25365
  }
25366
25366
  );
25367
25367
  }
25368
- const el = z.forwardRef(function({
25368
+ const el = M.forwardRef(function({
25369
25369
  value: e,
25370
25370
  onChange: n,
25371
25371
  className: r,
@@ -25382,14 +25382,14 @@ const el = z.forwardRef(function({
25382
25382
  helperText: m,
25383
25383
  type: v = "text"
25384
25384
  }, b) {
25385
- const [g, y] = z.useState(null), S = i_(e, g), E = () => {
25385
+ const [g, y] = M.useState(null), S = i_(e, g), E = () => {
25386
25386
  if (n != null) {
25387
25387
  n("");
25388
25388
  return;
25389
25389
  }
25390
25390
  g != null && (g.value = "");
25391
25391
  };
25392
- z.useImperativeHandle(b, () => g ?? void 0, [g]);
25392
+ M.useImperativeHandle(b, () => g ?? void 0, [g]);
25393
25393
  const I = s != null || a;
25394
25394
  return /* @__PURE__ */ p.jsxs(
25395
25395
  "div",
@@ -25438,10 +25438,10 @@ const el = z.forwardRef(function({
25438
25438
  t(e.currentTarget.value);
25439
25439
  };
25440
25440
  function i_(t, e) {
25441
- const [n, r] = z.useState(!0);
25442
- return z.useEffect(() => {
25441
+ const [n, r] = M.useState(!0);
25442
+ return M.useEffect(() => {
25443
25443
  r(t == null || t === "");
25444
- }, [t]), z.useEffect(() => {
25444
+ }, [t]), M.useEffect(() => {
25445
25445
  if (e == null)
25446
25446
  return;
25447
25447
  const i = (s) => {
@@ -25455,7 +25455,7 @@ function i_(t, e) {
25455
25455
  };
25456
25456
  }, [e, t]), n;
25457
25457
  }
25458
- const Ch = z.forwardRef(function({ className: e, value: n, onChange: r, ...i }, s) {
25458
+ const Ch = M.forwardRef(function({ className: e, value: n, onChange: r, ...i }, s) {
25459
25459
  return /* @__PURE__ */ p.jsx(
25460
25460
  el,
25461
25461
  {
@@ -25467,7 +25467,7 @@ const Ch = z.forwardRef(function({ className: e, value: n, onChange: r, ...i },
25467
25467
  ...i
25468
25468
  }
25469
25469
  );
25470
- }), ls = z.forwardRef(
25470
+ }), ls = M.forwardRef(
25471
25471
  function({ children: e, className: n, onClick: r }, i) {
25472
25472
  return /* @__PURE__ */ p.jsx(
25473
25473
  "div",
@@ -25484,20 +25484,20 @@ function Po({
25484
25484
  children: t,
25485
25485
  className: e
25486
25486
  }) {
25487
- const n = z.useRef(), r = () => {
25487
+ const n = M.useRef(), r = () => {
25488
25488
  n.current != null && n.current.focus();
25489
25489
  }, s = (Array.isArray(t) ? t : [t]).map((o, l) => {
25490
25490
  const c = {
25491
25491
  ...o.props,
25492
25492
  key: l
25493
25493
  };
25494
- return o.type === ls ? z.cloneElement(o, {
25494
+ return o.type === ls ? M.cloneElement(o, {
25495
25495
  ...c,
25496
25496
  onClick: r
25497
- }) : o.type === el || o.type === Ch ? z.cloneElement(o, {
25497
+ }) : o.type === el || o.type === Ch ? M.cloneElement(o, {
25498
25498
  ...c,
25499
25499
  ref: n
25500
- }) : z.cloneElement(o, c);
25500
+ }) : M.cloneElement(o, c);
25501
25501
  });
25502
25502
  return /* @__PURE__ */ p.jsx("div", { className: ee("seam-form-field", e), children: s });
25503
25503
  }
@@ -25704,7 +25704,7 @@ function p_({
25704
25704
  onChange: n,
25705
25705
  className: r
25706
25706
  }) {
25707
- const i = z.useRef(null), s = () => {
25707
+ const i = M.useRef(null), s = () => {
25708
25708
  i.current != null && i.current.click();
25709
25709
  };
25710
25710
  return /* @__PURE__ */ p.jsxs("div", { className: ee("seam-checkbox", r), onClick: s, children: [
@@ -25728,8 +25728,8 @@ function f_({
25728
25728
  value: e,
25729
25729
  onManualTimeZoneSelected: n
25730
25730
  }) {
25731
- const [r, i] = z.useState(!1), o = !(e === xh()) || r;
25732
- z.useEffect(() => {
25731
+ const [r, i] = M.useState(!1), o = !(e === xh()) || r;
25732
+ M.useEffect(() => {
25733
25733
  n != null && n(o);
25734
25734
  }, [o, n]);
25735
25735
  const l = (c) => {
@@ -25767,7 +25767,7 @@ function m_({
25767
25767
  value: e,
25768
25768
  onClose: n
25769
25769
  }) {
25770
- const [r, i] = z.useState(mf.titleAuto);
25770
+ const [r, i] = M.useState(mf.titleAuto);
25771
25771
  return /* @__PURE__ */ p.jsxs("div", { className: "seam-access-code-time-zone-picker", children: [
25772
25772
  /* @__PURE__ */ p.jsx(Vn, { title: r, onBack: n }),
25773
25773
  /* @__PURE__ */ p.jsx("div", { className: "seam-content", children: /* @__PURE__ */ p.jsx(
@@ -25830,7 +25830,7 @@ function v_({
25830
25830
  value: t,
25831
25831
  label: e
25832
25832
  }) {
25833
- const { value: n, onChange: r, name: i } = S_(), s = n === t, o = z.useRef(), l = () => {
25833
+ const { value: n, onChange: r, name: i } = S_(), s = n === t, o = M.useRef(), l = () => {
25834
25834
  o.current != null && o.current.click();
25835
25835
  };
25836
25836
  return /* @__PURE__ */ p.jsxs("label", { className: "seam-radio", onClick: l, children: [
@@ -25850,7 +25850,7 @@ function v_({
25850
25850
  /* @__PURE__ */ p.jsx("span", { className: "seam-radio-label", children: e })
25851
25851
  ] });
25852
25852
  }
25853
- const zA = z.createContext(null);
25853
+ const zA = M.createContext(null);
25854
25854
  function b_({
25855
25855
  value: t,
25856
25856
  onChange: e,
@@ -25871,7 +25871,7 @@ function b_({
25871
25871
  );
25872
25872
  }
25873
25873
  function S_() {
25874
- const t = z.useContext(zA);
25874
+ const t = M.useContext(zA);
25875
25875
  if (t === null)
25876
25876
  throw new Error("useRadioField must be used within a <RadioField/>");
25877
25877
  return t;
@@ -25891,11 +25891,11 @@ function w_({
25891
25891
  responseErrors: s
25892
25892
  }) {
25893
25893
  var de, se;
25894
- const [o, l] = z.useState(
25894
+ const [o, l] = M.useState(
25895
25895
  (e == null ? void 0 : e.type) ?? "ongoing"
25896
- ), [c, a] = z.useState(!1), [u, f] = z.useState(xh()), [d, h] = z.useState(
25896
+ ), [c, a] = M.useState(!1), [u, f] = M.useState(xh()), [d, h] = M.useState(
25897
25897
  M1("starts_at", e) ?? C_(u)
25898
- ), [m, v] = z.useState(
25898
+ ), [m, v] = M.useState(
25899
25899
  M1("ends_at", e) ?? I_(u)
25900
25900
  ), b = (te) => {
25901
25901
  if (i)
@@ -25953,7 +25953,7 @@ function w_({
25953
25953
  }
25954
25954
  }
25955
25955
  );
25956
- const M = e == null ? st.addNewAccessCode : st.editAccessCode, L = () => {
25956
+ const z = e == null ? st.addNewAccessCode : st.editAccessCode, L = () => {
25957
25957
  O(
25958
25958
  {
25959
25959
  device_id: n.device_id
@@ -25969,7 +25969,7 @@ function w_({
25969
25969
  /* @__PURE__ */ p.jsx(
25970
25970
  Vn,
25971
25971
  {
25972
- title: M,
25972
+ title: z,
25973
25973
  subheading: n.properties.name,
25974
25974
  onBack: t
25975
25975
  }
@@ -26208,7 +26208,7 @@ function __(t) {
26208
26208
  }, isSubmitting: r, responseErrors: i };
26209
26209
  }
26210
26210
  function kA() {
26211
- const [t, e] = z.useState(null);
26211
+ const [t, e] = M.useState(null);
26212
26212
  return {
26213
26213
  responseErrors: t,
26214
26214
  handleResponseError: (i) => {
@@ -26383,8 +26383,8 @@ function ay({
26383
26383
  top: n,
26384
26384
  left: r
26385
26385
  }) {
26386
- const [i, s] = z.useState(!1), [o, l] = z.useState(t);
26387
- return z.useEffect(() => {
26386
+ const [i, s] = M.useState(!1), [o, l] = M.useState(t);
26387
+ return M.useEffect(() => {
26388
26388
  if (t)
26389
26389
  return s(!1), l(!0), () => {
26390
26390
  };
@@ -26530,7 +26530,7 @@ function Ro({
26530
26530
  }
26531
26531
  }) {
26532
26532
  const { label: c, onClick: a } = r ?? {};
26533
- return z.useEffect(() => {
26533
+ return M.useEffect(() => {
26534
26534
  if (!i)
26535
26535
  return () => {
26536
26536
  };
@@ -26685,13 +26685,13 @@ function VA({
26685
26685
  bn("AccessCodeTable");
26686
26686
  const { accessCodes: b, isInitialLoading: g, isError: y, refetch: S } = vA({
26687
26687
  device_id: t
26688
- }), [E, I] = z.useState(null), [w, A] = z.useState(""), [O, T] = Iu(), [M, L] = z.useState(null), V = z.useMemo(
26688
+ }), [E, I] = M.useState(null), [w, A] = M.useState(""), [O, T] = Iu(), [z, L] = M.useState(null), V = M.useMemo(
26689
26689
  () => {
26690
26690
  var k;
26691
26691
  return ((k = b == null ? void 0 : b.filter((Q) => s(Q, w))) == null ? void 0 : k.sort(o)) ?? [];
26692
26692
  },
26693
26693
  [b, w, s, o]
26694
- ), U = z.useCallback(
26694
+ ), U = M.useCallback(
26695
26695
  (k) => {
26696
26696
  n(k), !r && I(k);
26697
26697
  },
@@ -26700,16 +26700,16 @@ function VA({
26700
26700
  r,
26701
26701
  I
26702
26702
  ]
26703
- ), X = z.useCallback(
26703
+ ), X = M.useCallback(
26704
26704
  (k) => {
26705
26705
  L(k);
26706
26706
  },
26707
26707
  [L]
26708
- ), [de, se] = z.useState(null), te = de === "created" ? ti.accesCodeCreated : ti.accesCodeUpdated;
26709
- return M != null ? /* @__PURE__ */ p.jsx(
26708
+ ), [de, se] = M.useState(null), te = de === "created" ? ti.accesCodeCreated : ti.accesCodeUpdated;
26709
+ return z != null ? /* @__PURE__ */ p.jsx(
26710
26710
  P_,
26711
26711
  {
26712
- accessCodeId: M,
26712
+ accessCodeId: z,
26713
26713
  errorFilter: l,
26714
26714
  warningFilter: c,
26715
26715
  disableLockUnlock: h,
@@ -26866,7 +26866,7 @@ function B_(t) {
26866
26866
  warningFilter: s,
26867
26867
  disableEditAccessCode: o,
26868
26868
  disableDeleteAccessCode: l
26869
- } = t, [c, a] = z.useState(null), u = z.useMemo(() => c === null ? e : c === "access_code_issues" ? e.filter((f) => f.errors.length > 0 || f.warnings.length > 0) : e, [e, c]);
26869
+ } = t, [c, a] = M.useState(null), u = M.useMemo(() => c === null ? e : c === "access_code_issues" ? e.filter((f) => f.errors.length > 0 || f.warnings.length > 0) : e, [e, c]);
26870
26870
  return e.length === 0 ? /* @__PURE__ */ p.jsx(oy, { children: ti.noAccessCodesMessage }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
26871
26871
  /* @__PURE__ */ p.jsx(
26872
26872
  AT,
@@ -27735,7 +27735,7 @@ function QA(t) {
27735
27735
  return { ...i, climateSettingSchedule: r };
27736
27736
  }
27737
27737
  function AM() {
27738
- const [t, e] = z.useState($.now()), n = z.useCallback(() => {
27738
+ const [t, e] = M.useState($.now()), n = M.useCallback(() => {
27739
27739
  e($.now());
27740
27740
  }, [e]);
27741
27741
  return AA(n), t;
@@ -27910,8 +27910,8 @@ function IM(t) {
27910
27910
  );
27911
27911
  }
27912
27912
  function jM({ children: t }) {
27913
- const [e, n] = z.useState(!1);
27914
- z.useEffect(() => {
27913
+ const [e, n] = M.useState(!1);
27914
+ M.useEffect(() => {
27915
27915
  var o, l;
27916
27916
  const i = () => {
27917
27917
  n(!1);
@@ -27980,7 +27980,7 @@ function WA({
27980
27980
  bn("ClimateSettingScheduleDetails");
27981
27981
  const { climateSettingSchedule: u } = QA(
27982
27982
  t
27983
- ), [f, d] = z.useState(null);
27983
+ ), [f, d] = M.useState(null);
27984
27984
  if (u == null)
27985
27985
  return null;
27986
27986
  const h = u.manual_override_allowed ?? !1;
@@ -28153,15 +28153,15 @@ function YA({
28153
28153
  bn("ClimateSettingScheduleTable");
28154
28154
  const { climateSettingSchedules: b, isInitialLoading: g, isError: y, refetch: S } = KA({
28155
28155
  device_id: t
28156
- }), [E, I] = z.useState(""), [
28156
+ }), [E, I] = M.useState(""), [
28157
28157
  w,
28158
28158
  A
28159
- ] = z.useState(null), O = z.useMemo(
28159
+ ] = M.useState(null), O = M.useMemo(
28160
28160
  () => {
28161
- var M;
28162
- return ((M = b == null ? void 0 : b.filter(
28161
+ var z;
28162
+ return ((z = b == null ? void 0 : b.filter(
28163
28163
  (L) => i(L, E)
28164
- )) == null ? void 0 : M.sort(s)) ?? [];
28164
+ )) == null ? void 0 : z.sort(s)) ?? [];
28165
28165
  },
28166
28166
  [
28167
28167
  b,
@@ -28169,9 +28169,9 @@ function YA({
28169
28169
  i,
28170
28170
  s
28171
28171
  ]
28172
- ), T = z.useCallback(
28173
- (M) => {
28174
- n(M), !r && A(M);
28172
+ ), T = M.useCallback(
28173
+ (z) => {
28174
+ n(z), !r && A(z);
28175
28175
  },
28176
28176
  [
28177
28177
  n,
@@ -28335,7 +28335,7 @@ function HM({ device: t }) {
28335
28335
  return /* @__PURE__ */ p.jsx("div", { className: "seam-thermostat-card", children: /* @__PURE__ */ p.jsx(qM, { device: t }) });
28336
28336
  }
28337
28337
  function qM(t) {
28338
- const { device: e } = t, [n, r] = z.useState("fahrenheit"), i = () => {
28338
+ const { device: e } = t, [n, r] = M.useState("fahrenheit"), i = () => {
28339
28339
  r(
28340
28340
  n === "fahrenheit" ? "celsius" : "fahrenheit"
28341
28341
  );
@@ -28456,7 +28456,7 @@ function LM({
28456
28456
  disableResourceIds: a = !1
28457
28457
  }) {
28458
28458
  var v;
28459
- const [u, f] = z.useState(!1), { connectedAccount: d } = NM(t.connected_account_id), { climateSettingSchedules: h } = KA({
28459
+ const [u, f] = M.useState(!1), { connectedAccount: d } = NM(t.connected_account_id), { climateSettingSchedules: h } = KA({
28460
28460
  device_id: t.device_id
28461
28461
  });
28462
28462
  if (u)
@@ -28611,7 +28611,7 @@ function XA({
28611
28611
  className: u
28612
28612
  }) {
28613
28613
  bn("AccessCodeDetails");
28614
- const { accessCode: f } = mA(t), [d, h] = z.useState(null), { mutate: m, isLoading: v } = yA();
28614
+ const { accessCode: f } = mA(t), [d, h] = M.useState(null), { mutate: m, isLoading: v } = yA();
28615
28615
  if (f == null)
28616
28616
  return null;
28617
28617
  const b = f.name ?? In.fallbackName;
@@ -28853,7 +28853,7 @@ function eE({
28853
28853
  bn("ConnectAccountButton");
28854
28854
  const { isLoading: e, mutate: n } = iz({
28855
28855
  willNavigateToWebview: !0
28856
- }), r = z.useCallback(() => {
28856
+ }), r = M.useCallback(() => {
28857
28857
  var i;
28858
28858
  n({
28859
28859
  custom_redirect_url: (i = globalThis.location) == null ? void 0 : i.href
@@ -29144,13 +29144,13 @@ function tE({
29144
29144
  const { devices: g, isInitialLoading: y, isError: S, refetch: E } = wz({
29145
29145
  device_ids: t,
29146
29146
  connected_account_ids: e
29147
- }), [I, w] = z.useState(null), [A, O] = z.useState(""), T = z.useMemo(
29147
+ }), [I, w] = M.useState(null), [A, O] = M.useState(""), T = M.useMemo(
29148
29148
  () => {
29149
29149
  var L, V;
29150
29150
  return ((V = (L = g == null ? void 0 : g.filter((U) => Oi(U) || Um(U))) == null ? void 0 : L.filter((U) => s(U, A))) == null ? void 0 : V.sort(o)) ?? [];
29151
29151
  },
29152
29152
  [g, A, s, o]
29153
- ), M = z.useCallback(
29153
+ ), z = M.useCallback(
29154
29154
  (L) => {
29155
29155
  r(L), !i && w(L);
29156
29156
  },
@@ -29205,7 +29205,7 @@ function tE({
29205
29205
  Ez,
29206
29206
  {
29207
29207
  devices: T,
29208
- onDeviceClick: M,
29208
+ onDeviceClick: z,
29209
29209
  errorFilter: c
29210
29210
  }
29211
29211
  ) }),
@@ -29227,7 +29227,7 @@ function tE({
29227
29227
  ] });
29228
29228
  }
29229
29229
  function Ez(t) {
29230
- const { devices: e, onDeviceClick: n, errorFilter: r } = t, [i, s] = z.useState(
29230
+ const { devices: e, onDeviceClick: n, errorFilter: r } = t, [i, s] = M.useState(
29231
29231
  null
29232
29232
  );
29233
29233
  if (e.length === 0)
@@ -29595,6 +29595,9 @@ function Bz({
29595
29595
  manufacturers: r,
29596
29596
  excludedManufacturers: i
29597
29597
  }
29598
+ ), a = M.useMemo(
29599
+ () => Gz(s ?? []),
29600
+ [s]
29598
29601
  );
29599
29602
  return o ? /* @__PURE__ */ p.jsx("div", { className: "seam-supported-device-table-content-state-block", children: /* @__PURE__ */ p.jsx("p", { children: us.loading }) }) : l ? /* @__PURE__ */ p.jsxs("div", { className: "seam-supported-device-table-content-state-block", children: [
29600
29603
  /* @__PURE__ */ p.jsx("p", { children: us.error }),
@@ -29615,22 +29618,27 @@ function Bz({
29615
29618
  filterValue: e,
29616
29619
  resetFilterValue: t
29617
29620
  }
29618
- ) }) : e.trim() !== "" || n.manufacturer !== null ? /* @__PURE__ */ p.jsx("div", { className: "seam-supported-device-table-content", children: s.map((f) => /* @__PURE__ */ p.jsx(
29621
+ ) }) : e.trim() !== "" || n.manufacturer !== null ? /* @__PURE__ */ p.jsx("div", { className: "seam-supported-device-table-content", children: s.map((d) => /* @__PURE__ */ p.jsx(
29619
29622
  Rz,
29620
29623
  {
29621
- deviceModel: f
29624
+ deviceModel: d
29622
29625
  },
29623
- f.device_model_id
29624
- )) }) : /* @__PURE__ */ p.jsx(p.Fragment, { children: Object.entries(Gz(s)).map(
29625
- ([f, d]) => /* @__PURE__ */ p.jsx(
29626
- Hz,
29627
- {
29628
- manufacturerId: f,
29629
- deviceModels: d
29630
- },
29631
- f
29632
- )
29633
- ) });
29626
+ d.device_model_id
29627
+ )) }) : /* @__PURE__ */ p.jsx(p.Fragment, { children: Object.entries(a).sort(
29628
+ (d, h) => {
29629
+ var m, v;
29630
+ return ((v = d[1][0]) == null ? void 0 : v.manufacturer.display_name.localeCompare(
29631
+ ((m = h[1][0]) == null ? void 0 : m.manufacturer.display_name) ?? ""
29632
+ )) ?? 0;
29633
+ }
29634
+ ).map(([d, h]) => /* @__PURE__ */ p.jsx(
29635
+ Hz,
29636
+ {
29637
+ manufacturerId: d,
29638
+ deviceModels: h
29639
+ },
29640
+ d
29641
+ )) });
29634
29642
  }
29635
29643
  function $z({
29636
29644
  filterValue: t,
@@ -29651,15 +29659,14 @@ function $z({
29651
29659
  ] });
29652
29660
  return /* @__PURE__ */ p.jsx("div", { className: "seam-supported-device-table-content-message-row", children: /* @__PURE__ */ p.jsx("div", { children: /* @__PURE__ */ p.jsx("div", { className: "seam-supported-device-table-content-message", children: t.length === 0 ? /* @__PURE__ */ p.jsx("p", { children: us.noneFound }) : n }) }) });
29653
29661
  }
29654
- function Gz(t) {
29662
+ const Gz = (t) => {
29655
29663
  const e = {};
29656
29664
  for (const n of t) {
29657
29665
  const { manufacturer: r } = n, i = e[r.manufacturer_id] ?? [];
29658
29666
  e[r.manufacturer_id] = [...i, n];
29659
29667
  }
29660
29668
  return e;
29661
- }
29662
- const us = {
29669
+ }, us = {
29663
29670
  loading: "Loading device models...",
29664
29671
  retry: "Retry",
29665
29672
  error: "There was an error fetching device models.",
@@ -29860,7 +29867,7 @@ function aE({
29860
29867
  className: r
29861
29868
  } = {}) {
29862
29869
  bn("SupportedDeviceTable");
29863
- const [i, s] = z.useState(""), [o, l] = z.useState({
29870
+ const [i, s] = M.useState(""), [o, l] = M.useState({
29864
29871
  supportedOnly: !0,
29865
29872
  manufacturer: null
29866
29873
  });