@pepperdash/mobile-control-react-app-core 1.21.0-fix-double-join-call.1 → 1.21.0-fix-double-join-call.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.
@@ -194,20 +194,20 @@ const q6 = C1, Y6 = (e) => p(
194
194
  ), t8 = w(
195
195
  q,
196
196
  (e) => e.roomData.deviceInterfaceSupport
197
- ), S3 = () => p(G2), s8 = () => p(q2), n8 = () => p(Y2), o8 = () => p(z2), c8 = () => p(J2), r8 = () => p(X2), ue = () => p(Q2), de = () => p(N2), ve = () => p(e8), he = () => p(t8), e1 = (e) => e.ui, U1 = (e) => w(e1, (t) => t.modalVisibility[e]), l8 = (e) => w(e1, (t) => {
197
+ ), S3 = () => p(G2), s8 = () => p(q2), n8 = () => p(Y2), o8 = () => p(z2), c8 = () => p(J2), r8 = () => p(X2), ue = () => p(Q2), de = () => p(N2), ve = () => p(e8), he = () => p(t8), N = (e) => e.ui, U1 = (e) => w(N, (t) => t.modalVisibility[e]), l8 = (e) => w(N, (t) => {
198
198
  const n = t.popoverVisibility[e];
199
199
  if (n)
200
200
  return Object.keys(n).find((c) => n[c]);
201
201
  }), i8 = (e, t) => w(
202
- e1,
202
+ N,
203
203
  (n) => {
204
204
  var c;
205
205
  return ((c = n.popoverVisibility[e]) == null ? void 0 : c[t]) ?? !1;
206
206
  }
207
- ), a8 = w(e1, (e) => e.error), u8 = w(
208
- e1,
207
+ ), a8 = w(N, (e) => e.error), u8 = w(
208
+ N,
209
209
  (e) => e.showReconnect
210
- ), d8 = w(e1, (e) => e.theme), v8 = (e) => w(e1, (t) => t.syncState.includes(e)), ge = () => p(U1("showShutdownModal")), fe = () => p(U1("showIncomingCallModal")), pe = (e) => p(U1(e)), we = (e) => p(l8(e)), xe = (e, t) => p(i8(e, t)), h8 = () => p(a8), g8 = () => p(u8), Me = () => p(d8), f8 = (e) => p(v8(e)), p8 = {
210
+ ), d8 = w(N, (e) => e.theme), v8 = (e) => w(N, (t) => t.syncState.includes(e)), ge = () => p(U1("showShutdownModal")), fe = () => p(U1("showIncomingCallModal")), pe = (e) => p(U1(e)), we = (e) => p(l8(e)), xe = (e, t) => p(i8(e, t)), h8 = () => p(a8), g8 = () => p(u8), Me = () => p(d8), f8 = (e) => p(v8(e)), p8 = {
211
211
  showReconnect: !1,
212
212
  error: "",
213
213
  modalVisibility: {
@@ -418,11 +418,11 @@ function y8() {
418
418
  h3 = 1;
419
419
  var e = w3, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
420
420
  function d(a, g, x) {
421
- var v, I = {}, L = null, H = null;
422
- x !== void 0 && (L = "" + x), g.key !== void 0 && (L = "" + g.key), g.ref !== void 0 && (H = g.ref);
423
- for (v in g) c.call(g, v) && !i.hasOwnProperty(v) && (I[v] = g[v]);
424
- if (a && a.defaultProps) for (v in g = a.defaultProps, g) I[v] === void 0 && (I[v] = g[v]);
425
- return { $$typeof: t, type: a, key: L, ref: H, props: I, _owner: r.current };
421
+ var h, I = {}, A = null, H = null;
422
+ x !== void 0 && (A = "" + x), g.key !== void 0 && (A = "" + g.key), g.ref !== void 0 && (H = g.ref);
423
+ for (h in g) c.call(g, h) && !i.hasOwnProperty(h) && (I[h] = g[h]);
424
+ if (a && a.defaultProps) for (h in g = a.defaultProps, g) I[h] === void 0 && (I[h] = g[h]);
425
+ return { $$typeof: t, type: a, key: A, ref: H, props: I, _owner: r.current };
426
426
  }
427
427
  return i1.Fragment = n, i1.jsx = d, i1.jsxs = d, i1;
428
428
  }
@@ -439,15 +439,15 @@ var a1 = {};
439
439
  var g3;
440
440
  function R8() {
441
441
  return g3 || (g3 = 1, process.env.NODE_ENV !== "production" && function() {
442
- var e = w3, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), H = Symbol.for("react.offscreen"), U = Symbol.iterator, X = "@@iterator";
442
+ var e = w3, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), H = Symbol.for("react.offscreen"), U = Symbol.iterator, e1 = "@@iterator";
443
443
  function c1(o) {
444
444
  if (o === null || typeof o != "object")
445
445
  return null;
446
- var l = U && o[U] || o[X];
446
+ var l = U && o[U] || o[e1];
447
447
  return typeof l == "function" ? l : null;
448
448
  }
449
- var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
450
- function A(o) {
449
+ var L = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
450
+ function $(o) {
451
451
  {
452
452
  for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), f = 1; f < l; f++)
453
453
  u[f - 1] = arguments[f];
@@ -456,7 +456,7 @@ function R8() {
456
456
  }
457
457
  function b1(o, l, u) {
458
458
  {
459
- var f = $.ReactDebugCurrentFrame, S = f.getStackAddendum();
459
+ var f = L.ReactDebugCurrentFrame, S = f.getStackAddendum();
460
460
  S !== "" && (l += "%s", u = u.concat([S]));
461
461
  var y = u.map(function(m) {
462
462
  return String(m);
@@ -467,7 +467,7 @@ function R8() {
467
467
  var I1 = !1, t1 = !1, P = !1, j = !1, h1 = !1, g1;
468
468
  g1 = Symbol.for("react.module.reference");
469
469
  function J(o) {
470
- return !!(typeof o == "string" || typeof o == "function" || o === c || o === i || h1 || o === r || o === x || o === v || j || o === H || I1 || t1 || P || typeof o == "object" && o !== null && (o.$$typeof === L || o.$$typeof === I || o.$$typeof === d || o.$$typeof === a || o.$$typeof === g || // This needs to include all possible module reference object
470
+ return !!(typeof o == "string" || typeof o == "function" || o === c || o === i || h1 || o === r || o === x || o === h || j || o === H || I1 || t1 || P || typeof o == "object" && o !== null && (o.$$typeof === A || o.$$typeof === I || o.$$typeof === d || o.$$typeof === a || o.$$typeof === g || // This needs to include all possible module reference object
471
471
  // types supported by any Flight configuration anywhere since
472
472
  // we don't know which Flight build this will end up being used
473
473
  // with.
@@ -486,7 +486,7 @@ function R8() {
486
486
  function F(o) {
487
487
  if (o == null)
488
488
  return null;
489
- if (typeof o.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
489
+ if (typeof o.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
490
490
  return o.displayName || o.name || null;
491
491
  if (typeof o == "string")
492
492
  return o;
@@ -501,7 +501,7 @@ function R8() {
501
501
  return "StrictMode";
502
502
  case x:
503
503
  return "Suspense";
504
- case v:
504
+ case h:
505
505
  return "SuspenseList";
506
506
  }
507
507
  if (typeof o == "object")
@@ -517,7 +517,7 @@ function R8() {
517
517
  case I:
518
518
  var f = o.displayName || null;
519
519
  return f !== null ? f : F(o.type) || "Memo";
520
- case L: {
520
+ case A: {
521
521
  var S = o, y = S._payload, m = S._init;
522
522
  try {
523
523
  return F(m(y));
@@ -528,13 +528,13 @@ function R8() {
528
528
  }
529
529
  return null;
530
530
  }
531
- var Y = Object.assign, Q = 0, F1, W1, H1, K1, G1, q1, Y1;
531
+ var Y = Object.assign, X = 0, F1, W1, H1, K1, G1, q1, Y1;
532
532
  function z1() {
533
533
  }
534
534
  z1.__reactDisabledLog = !0;
535
535
  function P3() {
536
536
  {
537
- if (Q === 0) {
537
+ if (X === 0) {
538
538
  F1 = console.log, W1 = console.info, H1 = console.warn, K1 = console.error, G1 = console.group, q1 = console.groupCollapsed, Y1 = console.groupEnd;
539
539
  var o = {
540
540
  configurable: !0,
@@ -552,12 +552,12 @@ function R8() {
552
552
  groupEnd: o
553
553
  });
554
554
  }
555
- Q++;
555
+ X++;
556
556
  }
557
557
  }
558
558
  function T3() {
559
559
  {
560
- if (Q--, Q === 0) {
560
+ if (X--, X === 0) {
561
561
  var o = {
562
562
  configurable: !0,
563
563
  enumerable: !0,
@@ -587,10 +587,10 @@ function R8() {
587
587
  })
588
588
  });
589
589
  }
590
- Q < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
590
+ X < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
591
591
  }
592
592
  }
593
- var y1 = $.ReactCurrentDispatcher, R1;
593
+ var y1 = L.ReactCurrentDispatcher, R1;
594
594
  function f1(o, l, u) {
595
595
  {
596
596
  if (R1 === void 0)
@@ -677,8 +677,8 @@ function R8() {
677
677
  } finally {
678
678
  E1 = !1, y1.current = y, T3(), Error.prepareStackTrace = S;
679
679
  }
680
- var n1 = o ? o.displayName || o.name : "", N = n1 ? f1(n1) : "";
681
- return typeof o == "function" && p1.set(o, N), N;
680
+ var n1 = o ? o.displayName || o.name : "", Q = n1 ? f1(n1) : "";
681
+ return typeof o == "function" && p1.set(o, Q), Q;
682
682
  }
683
683
  function _3(o, l, u) {
684
684
  return J1(o, !1);
@@ -697,7 +697,7 @@ function R8() {
697
697
  switch (o) {
698
698
  case x:
699
699
  return f1("Suspense");
700
- case v:
700
+ case h:
701
701
  return f1("SuspenseList");
702
702
  }
703
703
  if (typeof o == "object")
@@ -706,7 +706,7 @@ function R8() {
706
706
  return _3(o.render);
707
707
  case I:
708
708
  return w1(o.type, l, u);
709
- case L: {
709
+ case A: {
710
710
  var f = o, S = f._payload, y = f._init;
711
711
  try {
712
712
  return w1(y(S), l, u);
@@ -716,7 +716,7 @@ function R8() {
716
716
  }
717
717
  return "";
718
718
  }
719
- var r1 = Object.prototype.hasOwnProperty, X1 = {}, Q1 = $.ReactDebugCurrentFrame;
719
+ var r1 = Object.prototype.hasOwnProperty, X1 = {}, Q1 = L.ReactDebugCurrentFrame;
720
720
  function x1(o) {
721
721
  if (o) {
722
722
  var l = o._owner, u = w1(o.type, o._source, l ? l.type : null);
@@ -739,7 +739,7 @@ function R8() {
739
739
  } catch (T) {
740
740
  M = T;
741
741
  }
742
- M && !(M instanceof Error) && (x1(S), A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", u, m, typeof M), x1(null)), M instanceof Error && !(M.message in X1) && (X1[M.message] = !0, x1(S), A("Failed %s type: %s", u, M.message), x1(null));
742
+ M && !(M instanceof Error) && (x1(S), $("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", u, m, typeof M), x1(null)), M instanceof Error && !(M.message in X1) && (X1[M.message] = !0, x1(S), $("Failed %s type: %s", u, M.message), x1(null));
743
743
  }
744
744
  }
745
745
  }
@@ -765,9 +765,9 @@ function R8() {
765
765
  }
766
766
  function e3(o) {
767
767
  if (O3(o))
768
- return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", B3(o)), N1(o);
768
+ return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", B3(o)), N1(o);
769
769
  }
770
- var t3 = $.ReactCurrentOwner, V3 = {
770
+ var t3 = L.ReactCurrentOwner, V3 = {
771
771
  key: !0,
772
772
  ref: !0,
773
773
  __self: !0,
@@ -795,7 +795,7 @@ function R8() {
795
795
  function W3(o, l) {
796
796
  {
797
797
  var u = function() {
798
- s3 || (s3 = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
798
+ s3 || (s3 = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
799
799
  };
800
800
  u.isReactWarning = !0, Object.defineProperty(o, "key", {
801
801
  get: u,
@@ -806,7 +806,7 @@ function R8() {
806
806
  function H3(o, l) {
807
807
  {
808
808
  var u = function() {
809
- n3 || (n3 = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
809
+ n3 || (n3 = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
810
810
  };
811
811
  u.isReactWarning = !0, Object.defineProperty(o, "ref", {
812
812
  get: u,
@@ -861,7 +861,7 @@ function R8() {
861
861
  return K3(o, M, O, S, f, t3.current, m);
862
862
  }
863
863
  }
864
- var T1 = $.ReactCurrentOwner, o3 = $.ReactDebugCurrentFrame;
864
+ var T1 = L.ReactCurrentOwner, o3 = L.ReactDebugCurrentFrame;
865
865
  function s1(o) {
866
866
  if (o) {
867
867
  var l = o._owner, u = w1(o.type, o._source, l ? l.type : null);
@@ -912,7 +912,7 @@ Check the top-level render call using <` + u + ">.");
912
912
  return;
913
913
  r3[u] = !0;
914
914
  var f = "";
915
- o && o._owner && o._owner !== T1.current && (f = " It was passed a child from " + F(o._owner.type) + "."), s1(o), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, f), s1(null);
915
+ o && o._owner && o._owner !== T1.current && (f = " It was passed a child from " + F(o._owner.type) + "."), s1(o), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, f), s1(null);
916
916
  }
917
917
  }
918
918
  function i3(o, l) {
@@ -954,9 +954,9 @@ Check the top-level render call using <` + u + ">.");
954
954
  } else if (l.PropTypes !== void 0 && !D1) {
955
955
  D1 = !0;
956
956
  var S = F(l);
957
- A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
957
+ $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
958
958
  }
959
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
959
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
960
960
  }
961
961
  }
962
962
  function J3(o) {
@@ -964,11 +964,11 @@ Check the top-level render call using <` + u + ">.");
964
964
  for (var l = Object.keys(o.props), u = 0; u < l.length; u++) {
965
965
  var f = l[u];
966
966
  if (f !== "children" && f !== "key") {
967
- s1(o), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), s1(null);
967
+ s1(o), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), s1(null);
968
968
  break;
969
969
  }
970
970
  }
971
- o.ref !== null && (s1(o), A("Invalid attribute `ref` supplied to `React.Fragment`."), s1(null));
971
+ o.ref !== null && (s1(o), $("Invalid attribute `ref` supplied to `React.Fragment`."), s1(null));
972
972
  }
973
973
  }
974
974
  var a3 = {};
@@ -981,7 +981,7 @@ Check the top-level render call using <` + u + ">.");
981
981
  var O = q3();
982
982
  O ? M += O : M += c3();
983
983
  var T;
984
- o === null ? T = "null" : P1(o) ? T = "array" : o !== void 0 && o.$$typeof === t ? (T = "<" + (F(o.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : T = typeof o, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, M);
984
+ o === null ? T = "null" : P1(o) ? T = "array" : o !== void 0 && o.$$typeof === t ? (T = "<" + (F(o.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : T = typeof o, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, M);
985
985
  }
986
986
  var D = G3(o, l, u, S, y);
987
987
  if (D == null)
@@ -995,22 +995,22 @@ Check the top-level render call using <` + u + ">.");
995
995
  i3(W[n1], o);
996
996
  Object.freeze && Object.freeze(W);
997
997
  } else
998
- A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
998
+ $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
999
999
  else
1000
1000
  i3(W, o);
1001
1001
  }
1002
1002
  if (r1.call(l, "key")) {
1003
- var N = F(o), V = Object.keys(l).filter(function(s2) {
1003
+ var Q = F(o), V = Object.keys(l).filter(function(s2) {
1004
1004
  return s2 !== "key";
1005
1005
  }), L1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
1006
- if (!a3[N + L1]) {
1006
+ if (!a3[Q + L1]) {
1007
1007
  var t2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
1008
- A(`A props object containing a "key" prop is being spread into JSX:
1008
+ $(`A props object containing a "key" prop is being spread into JSX:
1009
1009
  let props = %s;
1010
1010
  <%s {...props} />
1011
1011
  React keys must be passed directly to JSX without using spread:
1012
1012
  let props = %s;
1013
- <%s key={someKey} {...props} />`, L1, N, t2, N), a3[N + L1] = !0;
1013
+ <%s key={someKey} {...props} />`, L1, Q, t2, Q), a3[Q + L1] = !0;
1014
1014
  }
1015
1015
  }
1016
1016
  return o === c ? J3(D) : z3(D), D;
@@ -1076,7 +1076,7 @@ function $8(e, t) {
1076
1076
  sessionStorage.setItem(e, t);
1077
1077
  }
1078
1078
  const A8 = ({ children: e }) => {
1079
- const [t, n] = K(), c = S3(), r = s8(), i = n8(), d = I8(), a = Z2(), g = o8(), x = c8(), v = r8(), I = d1(null), [L, H] = K(), U = d1({}), X = l1(
1079
+ const [t, n] = K(), c = S3(), r = s8(), i = n8(), d = I8(), a = Z2(), g = o8(), x = c8(), h = r8(), I = d1(null), [A, H] = K(), U = d1({}), e1 = l1(
1080
1080
  async (P) => {
1081
1081
  try {
1082
1082
  const j = await V1.get(
@@ -1084,24 +1084,25 @@ const A8 = ({ children: e }) => {
1084
1084
  );
1085
1085
  return j.status === 200 && j.data ? (b.dispatch(z.setRoomData(j.data)), !0) : !1;
1086
1086
  } catch (j) {
1087
- return console.log(j), v ? !0 : j instanceof r2 && j.response && j.response.status === 498 ? (console.error("Invalid token. Unable to join room"), b.dispatch(
1087
+ return console.log(j), j instanceof r2 && j.response && j.response.status === 498 ? (console.error("Invalid token. Unable to join room"), b.dispatch(
1088
1088
  k.setErrorMessage(
1089
1089
  `Token ${t} is invalid. Unable to join room`
1090
1090
  )
1091
1091
  ), !1) : (console.error("Error getting room data", j), j instanceof Error ? b.dispatch(k.setErrorMessage(j.message)) : b.dispatch(k.setErrorMessage("Error getting room data")), !1);
1092
1092
  }
1093
1093
  },
1094
- [t, v]
1094
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1095
+ [t]
1095
1096
  ), c1 = l1(() => {
1096
1097
  const P = `${a.gatewayAppPath}?uuid=${g}&roomKey=${r}`;
1097
1098
  window.location.href = x ? `${P}&Code=${x}` : P;
1098
- }, [a.gatewayAppPath, r, g, x]), $ = l1(
1099
+ }, [a.gatewayAppPath, r, g, x]), L = l1(
1099
1100
  (P, j) => {
1100
1101
  I.current && c && I.current.send(JSON.stringify({ type: P, clientId: i, content: j }));
1101
1102
  },
1102
1103
  [c, i]
1103
- ), A = (P, j) => {
1104
- $(P, { value: j });
1104
+ ), $ = (P, j) => {
1105
+ L(P, { value: j });
1105
1106
  }, b1 = l1(
1106
1107
  (P, j, h1) => {
1107
1108
  U.current[P] || (U.current[P] = {}), U.current[P][j] = h1, console.log("event handler added", P, j);
@@ -1113,26 +1114,13 @@ const A8 = ({ children: e }) => {
1113
1114
  o1(() => {
1114
1115
  let j = new URLSearchParams(window.location.search).get("token");
1115
1116
  j ? (console.log("saving token: ", j), $8(p3.uuid, j)) : (j = L8(p3.uuid), console.log("loading token: ", j)), n(j), d();
1116
- }, []), console.log(
1117
- "connection dependencies",
1118
- a.apiPath,
1119
- X,
1120
- t,
1121
- L,
1122
- v
1123
- );
1117
+ }, []);
1124
1118
  function t1() {
1125
1119
  b.dispatch(k.setShowReconnect(!0)), b.dispatch(z.setWebsocketIsConnected(!1)), b.dispatch(M1.clearDevices()), b.dispatch(m1.clearRooms()), b.dispatch(k.clearAllModals()), b.dispatch(k.clearSyncState());
1126
1120
  }
1127
1121
  return o1(() => {
1128
- console.log("🔍 useEffect triggered by dependency change:", {
1129
- apiPath: a.apiPath,
1130
- token: (t == null ? void 0 : t.substring(0, 10)) + "...",
1131
- waitingToReconnect: L,
1132
- serverIsRunningOnProcessorHardware: v
1133
- });
1134
1122
  async function P() {
1135
- if (console.log("Attempting to join websocket..."), !a.apiPath || L || !t || !await X(a.apiPath)) return;
1123
+ if (console.log("Attempting to join websocket..."), !a.apiPath || A || !t || !await e1(a.apiPath)) return;
1136
1124
  if (I.current) {
1137
1125
  console.log("websocket exists");
1138
1126
  return;
@@ -1158,7 +1146,7 @@ const A8 = ({ children: e }) => {
1158
1146
  ), t1();
1159
1147
  return;
1160
1148
  }
1161
- if (B.code === 4001 && !v) {
1149
+ if (B.code === 4001 && !h) {
1162
1150
  console.log("processor disconnected"), b.dispatch(
1163
1151
  k.setErrorMessage(
1164
1152
  "Processor has disconnected. Click Reconnect"
@@ -1180,7 +1168,7 @@ const A8 = ({ children: e }) => {
1180
1168
  console.log("WebSocket closed by client.");
1181
1169
  return;
1182
1170
  }
1183
- console.log("websocket waitingToReconnect", L), !L && (console.log("websocket clearing state on disconnect"), b.dispatch(z.setWebsocketIsConnected(!1)), b.dispatch(M1.clearDevices()), b.dispatch(m1.clearRooms()), b.dispatch(k.clearAllModals()), b.dispatch(k.clearSyncState()), setTimeout(() => H(void 0), 5e3));
1171
+ console.log("websocket waitingToReconnect", A), !A && (console.log("websocket clearing state on disconnect"), b.dispatch(z.setWebsocketIsConnected(!1)), b.dispatch(M1.clearDevices()), b.dispatch(m1.clearRooms()), b.dispatch(k.clearAllModals()), b.dispatch(k.clearSyncState()), setTimeout(() => H(void 0), 5e3));
1184
1172
  }, J.onmessage = (B) => {
1185
1173
  try {
1186
1174
  const R = JSON.parse(B.data);
@@ -1223,8 +1211,8 @@ const A8 = ({ children: e }) => {
1223
1211
  F || console.log("no handlers found for event type", R.type), F && Object.values(F).forEach((Y) => {
1224
1212
  try {
1225
1213
  Y(R);
1226
- } catch (Q) {
1227
- console.error(Q);
1214
+ } catch (X) {
1215
+ console.error(X);
1228
1216
  }
1229
1217
  });
1230
1218
  } else R.type.startsWith("/room/") ? b.dispatch(m1.setRoomState(R)) : R.type.startsWith("/device/") && b.dispatch(M1.setDeviceState(R));
@@ -1236,14 +1224,20 @@ const A8 = ({ children: e }) => {
1236
1224
  return P(), console.log("App mode: production"), console.log("Is dev mode: false"), () => {
1237
1225
  I.current && (console.log("closing websocket dev mode"), I.current.close(4100, "app running in dev mode"), I.current = null);
1238
1226
  };
1239
- }, [a.apiPath, X, t, L]), o1(() => {
1240
- !r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), $(`/room/${r}/status`, null)));
1241
- }, [r, i, c, $]), /* @__PURE__ */ s.jsx(
1227
+ }, [
1228
+ a.apiPath,
1229
+ e1,
1230
+ t,
1231
+ A,
1232
+ h
1233
+ ]), o1(() => {
1234
+ !r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), L(`/room/${r}/status`, null)));
1235
+ }, [r, i, c, L]), /* @__PURE__ */ s.jsx(
1242
1236
  y3.Provider,
1243
1237
  {
1244
1238
  value: {
1245
- sendMessage: $,
1246
- sendSimpleMessage: A,
1239
+ sendMessage: L,
1240
+ sendSimpleMessage: $,
1247
1241
  addEventHandler: b1,
1248
1242
  removeEventHandler: I1,
1249
1243
  reconnect: c1
@@ -1279,7 +1273,7 @@ function B8({
1279
1273
  onPointerLeave: g
1280
1274
  };
1281
1275
  }
1282
- function h(e, t) {
1276
+ function v(e, t) {
1283
1277
  const { sendMessage: c } = C(), r = d1(null);
1284
1278
  function i() {
1285
1279
  c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
@@ -1292,24 +1286,24 @@ function h(e, t) {
1292
1286
  return B8({ onPress: i, onRelease: d });
1293
1287
  }
1294
1288
  function R3(e, t) {
1295
- const { sendMessage: n, sendSimpleMessage: c } = C(), r = h(`${e}`, "volumeUp"), i = h(`${e}`, "volumeDown");
1289
+ const { sendMessage: n, sendSimpleMessage: c } = C(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
1296
1290
  return t ? {
1297
1291
  volumeState: t,
1298
1292
  volumeUp: r,
1299
1293
  volumeDown: i,
1300
- setLevel: (v) => c(`${e}/level`, v),
1294
+ setLevel: (h) => c(`${e}/level`, h),
1301
1295
  muteToggle: () => n(`${e}/muteToggle`, null),
1302
1296
  muteOn: () => n(`${e}/muteOn`, null),
1303
1297
  muteOff: () => n(`${e}/muteOff`, null)
1304
1298
  } : void 0;
1305
1299
  }
1306
1300
  function Ze(e, t) {
1307
- const { sendMessage: n, sendSimpleMessage: c } = C(), r = h(`${e}`, "volumeUp"), i = h(`${e}`, "volumeDown");
1301
+ const { sendMessage: n, sendSimpleMessage: c } = C(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
1308
1302
  return t ? {
1309
1303
  volumeState: t,
1310
1304
  volumeUp: r,
1311
1305
  volumeDown: i,
1312
- setLevel: (v) => c(`${e}/level`, v),
1306
+ setLevel: (h) => c(`${e}/level`, h),
1313
1307
  muteToggle: () => n(`${e}/muteToggle`, null),
1314
1308
  muteOn: () => n(`${e}/muteOn`, null),
1315
1309
  muteOff: () => n(`${e}/muteOff`, null)
@@ -1359,7 +1353,7 @@ function je(e) {
1359
1353
  };
1360
1354
  }
1361
1355
  function Se(e) {
1362
- const { sendMessage: t } = C(), n = `/device/${e}`, c = E(e), r = h(n, "cameraUp"), i = h(n, "cameraDown"), d = h(n, "cameraLeft"), a = h(n, "cameraRight"), g = h(n, "cameraZoomIn"), x = h(n, "cameraZoomOut"), v = (I) => t("/camera/recallPreset", I);
1356
+ const { sendMessage: t } = C(), n = `/device/${e}`, c = E(e), r = v(n, "cameraUp"), i = v(n, "cameraDown"), d = v(n, "cameraLeft"), a = v(n, "cameraRight"), g = v(n, "cameraZoomIn"), x = v(n, "cameraZoomOut"), h = (I) => t("/camera/recallPreset", I);
1363
1357
  if (c)
1364
1358
  return {
1365
1359
  state: c,
@@ -1369,7 +1363,7 @@ function Se(e) {
1369
1363
  down: i,
1370
1364
  left: d,
1371
1365
  right: a,
1372
- recallPreset: v
1366
+ recallPreset: h
1373
1367
  };
1374
1368
  }
1375
1369
  const Ce = ({ className: e }) => {
@@ -1398,11 +1392,11 @@ function Ie(e) {
1398
1392
  return { endpointState: t };
1399
1393
  }
1400
1394
  function ye(e) {
1401
- const t = `/device/${e}`, n = h(t, "chanUp"), c = h(t, "chanDown"), r = h(t, "lastChan"), i = h(t, "guide"), d = h(t, "info"), a = h(t, "exit");
1395
+ const t = `/device/${e}`, n = v(t, "chanUp"), c = v(t, "chanDown"), r = v(t, "lastChan"), i = v(t, "guide"), d = v(t, "info"), a = v(t, "exit");
1402
1396
  return { channelUp: n, channelDown: c, lastChannel: r, guide: i, info: d, exit: a };
1403
1397
  }
1404
1398
  function Re(e) {
1405
- const t = `/device/${e}`, n = h(t, "red"), c = h(t, "green"), r = h(t, "yellow"), i = h(t, "blue");
1399
+ const t = `/device/${e}`, n = v(t, "red"), c = v(t, "green"), r = v(t, "yellow"), i = v(t, "blue");
1406
1400
  return { red: n, green: c, yellow: r, blue: i };
1407
1401
  }
1408
1402
  function Ee(e) {
@@ -1418,7 +1412,7 @@ function Pe(e) {
1418
1412
  return t.deviceInfo || void 0;
1419
1413
  }
1420
1414
  function Te(e) {
1421
- const t = `/device/${e}`, n = h(t, "up"), c = h(t, "down"), r = h(t, "left"), i = h(t, "right"), d = h(t, "select"), a = h(t, "menu"), g = h(t, "exit");
1415
+ const t = `/device/${e}`, n = v(t, "up"), c = v(t, "down"), r = v(t, "left"), i = v(t, "right"), d = v(t, "select"), a = v(t, "menu"), g = v(t, "exit");
1422
1416
  return { up: n, down: c, left: r, right: i, select: d, menu: a, exit: g };
1423
1417
  }
1424
1418
  function De(e) {
@@ -1431,7 +1425,7 @@ function De(e) {
1431
1425
  } };
1432
1426
  }
1433
1427
  function _e(e) {
1434
- const t = `/device/${e}`, n = h(t, "dvrList"), c = h(t, "record");
1428
+ const t = `/device/${e}`, n = v(t, "dvrList"), c = v(t, "record");
1435
1429
  return { dvrList: n, record: c };
1436
1430
  }
1437
1431
  function Le(e) {
@@ -1466,10 +1460,10 @@ function Be(e) {
1466
1460
  const { sendMessage: t, sendSimpleMessage: n } = C(), c = E(e), r = K2(e), i = c || r;
1467
1461
  return i ? {
1468
1462
  levelState: i,
1469
- setLevel: (v, I) => n(`${v}/level`, I),
1470
- muteToggle: (v) => t(`${v}/muteToggle`, null),
1471
- muteOn: (v) => t(`${v}/muteOn`, null),
1472
- muteOff: (v) => t(`${v}/muteOff`, null)
1463
+ setLevel: (h, I) => n(`${h}/level`, I),
1464
+ muteToggle: (h) => t(`${h}/muteToggle`, null),
1465
+ muteOn: (h) => t(`${h}/muteOn`, null),
1466
+ muteOff: (h) => t(`${h}/muteOff`, null)
1473
1467
  } : void 0;
1474
1468
  }
1475
1469
  function Oe(e) {
@@ -1491,7 +1485,7 @@ function ke(e) {
1491
1485
  } };
1492
1486
  }
1493
1487
  function Ue(e) {
1494
- const t = `/device/${e}`, n = h(t, "num0"), c = h(t, "num1"), r = h(t, "num2"), i = h(t, "num3"), d = h(t, "num4"), a = h(t, "num5"), g = h(t, "num6"), x = h(t, "num7"), v = h(t, "num8"), I = h(t, "num9"), L = h(t, "numDash"), H = h(t, "numEnter");
1488
+ const t = `/device/${e}`, n = v(t, "num0"), c = v(t, "num1"), r = v(t, "num2"), i = v(t, "num3"), d = v(t, "num4"), a = v(t, "num5"), g = v(t, "num6"), x = v(t, "num7"), h = v(t, "num8"), I = v(t, "num9"), A = v(t, "numDash"), H = v(t, "numEnter");
1495
1489
  return {
1496
1490
  digit0: n,
1497
1491
  digit1: c,
@@ -1501,9 +1495,9 @@ function Ue(e) {
1501
1495
  digit5: a,
1502
1496
  digit6: g,
1503
1497
  digit7: x,
1504
- digit8: v,
1498
+ digit8: h,
1505
1499
  digit9: I,
1506
- keypadAccessoryButton1: L,
1500
+ keypadAccessoryButton1: A,
1507
1501
  keypadAccessoryButton2: H
1508
1502
  };
1509
1503
  }
@@ -1540,7 +1534,7 @@ function Ge(e) {
1540
1534
  } };
1541
1535
  }
1542
1536
  function qe(e) {
1543
- const t = `/device/${e}`, n = h(t, "chanUp"), c = h(t, "chanDown");
1537
+ const t = `/device/${e}`, n = v(t, "chanUp"), c = v(t, "chanDown");
1544
1538
  return { dvrList: n, replay: c };
1545
1539
  }
1546
1540
  function Ye(e) {
@@ -1595,7 +1589,7 @@ function Ne(e) {
1595
1589
  };
1596
1590
  }
1597
1591
  function e5(e) {
1598
- const t = `/device/${e}`, n = h(t, "play"), c = h(t, "pause"), r = h(t, "stop"), i = h(t, "prevTrack"), d = h(t, "nextTrack"), a = h(t, "rewind"), g = h(t, "ffwd"), x = h(t, "record");
1592
+ const t = `/device/${e}`, n = v(t, "play"), c = v(t, "pause"), r = v(t, "stop"), i = v(t, "prevTrack"), d = v(t, "nextTrack"), a = v(t, "rewind"), g = v(t, "ffwd"), x = v(t, "record");
1599
1593
  return {
1600
1594
  play: n,
1601
1595
  pause: c,
@@ -1684,17 +1678,17 @@ function c5(e, t) {
1684
1678
  function r5(e) {
1685
1679
  var a, g;
1686
1680
  const [t, n] = K(((a = e == null ? void 0 : e.current) == null ? void 0 : a.scrollLeft) ?? 0), [c, r] = K(((g = e == null ? void 0 : e.current) == null ? void 0 : g.scrollTop) ?? 0), i = (x) => {
1687
- const { current: v } = e;
1688
- v && (console.log(v.scrollLeft), v.scrollLeft += x, console.log(v.scrollLeft));
1681
+ const { current: h } = e;
1682
+ h && (console.log(h.scrollLeft), h.scrollLeft += x, console.log(h.scrollLeft));
1689
1683
  }, d = (x) => {
1690
- const { current: v } = e;
1691
- v && (console.log(v.scrollTop), v.scrollTop += x, console.log(v.scrollTop));
1684
+ const { current: h } = e;
1685
+ h && (console.log(h.scrollTop), h.scrollTop += x, console.log(h.scrollTop));
1692
1686
  };
1693
1687
  return x3(() => {
1694
- const { current: x } = e, v = () => {
1688
+ const { current: x } = e, h = () => {
1695
1689
  n((x == null ? void 0 : x.scrollLeft) ?? 0), r((x == null ? void 0 : x.scrollTop) ?? 0);
1696
1690
  };
1697
- x && v();
1691
+ x && h();
1698
1692
  }, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: d };
1699
1693
  }
1700
1694
  function l5(e) {
@@ -1769,26 +1763,26 @@ const u5 = () => {
1769
1763
  feedback: a,
1770
1764
  feedbackClassName: g,
1771
1765
  onPointerDown: x,
1772
- onPointerUp: v,
1766
+ onPointerUp: h,
1773
1767
  onPointerLeave: I,
1774
- ...L
1768
+ ...A
1775
1769
  }) => {
1776
- const [H, U] = K(!1), X = !d && a ? g : "", c1 = !d && (H || a);
1770
+ const [H, U] = K(!1), e1 = !d && a ? g : "", c1 = !d && (H || a);
1777
1771
  return /* @__PURE__ */ s.jsxs(
1778
1772
  "button",
1779
1773
  {
1780
1774
  type: "button",
1781
- className: `${$1.iconbtn} ${n ? $1.iconbtnvert : ""} ${c} ${X}`,
1782
- ...L,
1775
+ className: `${$1.iconbtn} ${n ? $1.iconbtnvert : ""} ${c} ${e1}`,
1776
+ ...A,
1783
1777
  disabled: d,
1784
- onPointerDown: ($) => {
1785
- U(!0), x == null || x($);
1778
+ onPointerDown: (L) => {
1779
+ U(!0), x == null || x(L);
1786
1780
  },
1787
- onPointerUp: ($) => {
1788
- U(!1), v == null || v($);
1781
+ onPointerUp: (L) => {
1782
+ U(!1), h == null || h(L);
1789
1783
  },
1790
- onPointerLeave: ($) => {
1791
- U(!1), I == null || I($);
1784
+ onPointerLeave: (L) => {
1785
+ U(!1), I == null || I(L);
1792
1786
  },
1793
1787
  children: [
1794
1788
  e && /* @__PURE__ */ s.jsx(
@@ -3611,7 +3605,7 @@ export {
3611
3605
  m3 as useAppDispatch,
3612
3606
  p as useAppSelector,
3613
3607
  je as useAvrControl,
3614
- h as useButtonHeldHeartbeat,
3608
+ v as useButtonHeldHeartbeat,
3615
3609
  Se as useCameraBase,
3616
3610
  n8 as useClientId,
3617
3611
  O8 as useDeviceIBasicVolumeWithFeedback,