@pepperdash/mobile-control-react-app-core 1.21.0-fix-double-join-call.1 → 1.21.0-fix-double-join-call.2
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),
|
|
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
|
-
|
|
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(
|
|
208
|
-
|
|
207
|
+
), a8 = w(N, (e) => e.error), u8 = w(
|
|
208
|
+
N,
|
|
209
209
|
(e) => e.showReconnect
|
|
210
|
-
), d8 = w(
|
|
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
|
|
422
|
-
x !== void 0 && (
|
|
423
|
-
for (
|
|
424
|
-
if (a && a.defaultProps) for (
|
|
425
|
-
return { $$typeof: t, type: a, key:
|
|
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"),
|
|
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[
|
|
446
|
+
var l = U && o[U] || o[e1];
|
|
447
447
|
return typeof l == "function" ? l : null;
|
|
448
448
|
}
|
|
449
|
-
var
|
|
450
|
-
function
|
|
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 =
|
|
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 ===
|
|
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" &&
|
|
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
|
|
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
|
|
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,
|
|
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 (
|
|
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
|
-
|
|
555
|
+
X++;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
function T3() {
|
|
559
559
|
{
|
|
560
|
-
if (
|
|
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
|
-
|
|
590
|
+
X < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
var y1 =
|
|
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 : "",
|
|
681
|
-
return typeof o == "function" && p1.set(o,
|
|
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
|
|
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
|
|
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 =
|
|
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),
|
|
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
|
|
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 =
|
|
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,
|
|
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,
|
|
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 =
|
|
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),
|
|
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
|
-
|
|
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 &&
|
|
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),
|
|
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),
|
|
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,
|
|
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
|
-
|
|
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
|
|
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[
|
|
1006
|
+
if (!a3[Q + L1]) {
|
|
1007
1007
|
var t2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
1008
|
-
|
|
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,
|
|
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(),
|
|
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),
|
|
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
|
-
|
|
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]),
|
|
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
|
-
),
|
|
1104
|
-
|
|
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
|
-
}, [])
|
|
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 ||
|
|
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 && !
|
|
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",
|
|
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 (
|
|
1227
|
-
console.error(
|
|
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,14 @@ 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,
|
|
1240
|
-
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r),
|
|
1241
|
-
}, [r, i, c,
|
|
1227
|
+
}, [a.apiPath, e1, t, A]), o1(() => {
|
|
1228
|
+
!r || !c || (console.log("clientId: ", i), i && (console.log("requesting status from room: ", r), L(`/room/${r}/status`, null)));
|
|
1229
|
+
}, [r, i, c, L]), /* @__PURE__ */ s.jsx(
|
|
1242
1230
|
y3.Provider,
|
|
1243
1231
|
{
|
|
1244
1232
|
value: {
|
|
1245
|
-
sendMessage:
|
|
1246
|
-
sendSimpleMessage:
|
|
1233
|
+
sendMessage: L,
|
|
1234
|
+
sendSimpleMessage: $,
|
|
1247
1235
|
addEventHandler: b1,
|
|
1248
1236
|
removeEventHandler: I1,
|
|
1249
1237
|
reconnect: c1
|
|
@@ -1279,7 +1267,7 @@ function B8({
|
|
|
1279
1267
|
onPointerLeave: g
|
|
1280
1268
|
};
|
|
1281
1269
|
}
|
|
1282
|
-
function
|
|
1270
|
+
function v(e, t) {
|
|
1283
1271
|
const { sendMessage: c } = C(), r = d1(null);
|
|
1284
1272
|
function i() {
|
|
1285
1273
|
c(`${e}/${t}`, { value: "pressed" }), r.current || (r.current = setInterval(() => {
|
|
@@ -1292,24 +1280,24 @@ function h(e, t) {
|
|
|
1292
1280
|
return B8({ onPress: i, onRelease: d });
|
|
1293
1281
|
}
|
|
1294
1282
|
function R3(e, t) {
|
|
1295
|
-
const { sendMessage: n, sendSimpleMessage: c } = C(), r =
|
|
1283
|
+
const { sendMessage: n, sendSimpleMessage: c } = C(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
|
|
1296
1284
|
return t ? {
|
|
1297
1285
|
volumeState: t,
|
|
1298
1286
|
volumeUp: r,
|
|
1299
1287
|
volumeDown: i,
|
|
1300
|
-
setLevel: (
|
|
1288
|
+
setLevel: (h) => c(`${e}/level`, h),
|
|
1301
1289
|
muteToggle: () => n(`${e}/muteToggle`, null),
|
|
1302
1290
|
muteOn: () => n(`${e}/muteOn`, null),
|
|
1303
1291
|
muteOff: () => n(`${e}/muteOff`, null)
|
|
1304
1292
|
} : void 0;
|
|
1305
1293
|
}
|
|
1306
1294
|
function Ze(e, t) {
|
|
1307
|
-
const { sendMessage: n, sendSimpleMessage: c } = C(), r =
|
|
1295
|
+
const { sendMessage: n, sendSimpleMessage: c } = C(), r = v(`${e}`, "volumeUp"), i = v(`${e}`, "volumeDown");
|
|
1308
1296
|
return t ? {
|
|
1309
1297
|
volumeState: t,
|
|
1310
1298
|
volumeUp: r,
|
|
1311
1299
|
volumeDown: i,
|
|
1312
|
-
setLevel: (
|
|
1300
|
+
setLevel: (h) => c(`${e}/level`, h),
|
|
1313
1301
|
muteToggle: () => n(`${e}/muteToggle`, null),
|
|
1314
1302
|
muteOn: () => n(`${e}/muteOn`, null),
|
|
1315
1303
|
muteOff: () => n(`${e}/muteOff`, null)
|
|
@@ -1359,7 +1347,7 @@ function je(e) {
|
|
|
1359
1347
|
};
|
|
1360
1348
|
}
|
|
1361
1349
|
function Se(e) {
|
|
1362
|
-
const { sendMessage: t } = C(), n = `/device/${e}`, c = E(e), r =
|
|
1350
|
+
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
1351
|
if (c)
|
|
1364
1352
|
return {
|
|
1365
1353
|
state: c,
|
|
@@ -1369,7 +1357,7 @@ function Se(e) {
|
|
|
1369
1357
|
down: i,
|
|
1370
1358
|
left: d,
|
|
1371
1359
|
right: a,
|
|
1372
|
-
recallPreset:
|
|
1360
|
+
recallPreset: h
|
|
1373
1361
|
};
|
|
1374
1362
|
}
|
|
1375
1363
|
const Ce = ({ className: e }) => {
|
|
@@ -1398,11 +1386,11 @@ function Ie(e) {
|
|
|
1398
1386
|
return { endpointState: t };
|
|
1399
1387
|
}
|
|
1400
1388
|
function ye(e) {
|
|
1401
|
-
const t = `/device/${e}`, n =
|
|
1389
|
+
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
1390
|
return { channelUp: n, channelDown: c, lastChannel: r, guide: i, info: d, exit: a };
|
|
1403
1391
|
}
|
|
1404
1392
|
function Re(e) {
|
|
1405
|
-
const t = `/device/${e}`, n =
|
|
1393
|
+
const t = `/device/${e}`, n = v(t, "red"), c = v(t, "green"), r = v(t, "yellow"), i = v(t, "blue");
|
|
1406
1394
|
return { red: n, green: c, yellow: r, blue: i };
|
|
1407
1395
|
}
|
|
1408
1396
|
function Ee(e) {
|
|
@@ -1418,7 +1406,7 @@ function Pe(e) {
|
|
|
1418
1406
|
return t.deviceInfo || void 0;
|
|
1419
1407
|
}
|
|
1420
1408
|
function Te(e) {
|
|
1421
|
-
const t = `/device/${e}`, n =
|
|
1409
|
+
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
1410
|
return { up: n, down: c, left: r, right: i, select: d, menu: a, exit: g };
|
|
1423
1411
|
}
|
|
1424
1412
|
function De(e) {
|
|
@@ -1431,7 +1419,7 @@ function De(e) {
|
|
|
1431
1419
|
} };
|
|
1432
1420
|
}
|
|
1433
1421
|
function _e(e) {
|
|
1434
|
-
const t = `/device/${e}`, n =
|
|
1422
|
+
const t = `/device/${e}`, n = v(t, "dvrList"), c = v(t, "record");
|
|
1435
1423
|
return { dvrList: n, record: c };
|
|
1436
1424
|
}
|
|
1437
1425
|
function Le(e) {
|
|
@@ -1466,10 +1454,10 @@ function Be(e) {
|
|
|
1466
1454
|
const { sendMessage: t, sendSimpleMessage: n } = C(), c = E(e), r = K2(e), i = c || r;
|
|
1467
1455
|
return i ? {
|
|
1468
1456
|
levelState: i,
|
|
1469
|
-
setLevel: (
|
|
1470
|
-
muteToggle: (
|
|
1471
|
-
muteOn: (
|
|
1472
|
-
muteOff: (
|
|
1457
|
+
setLevel: (h, I) => n(`${h}/level`, I),
|
|
1458
|
+
muteToggle: (h) => t(`${h}/muteToggle`, null),
|
|
1459
|
+
muteOn: (h) => t(`${h}/muteOn`, null),
|
|
1460
|
+
muteOff: (h) => t(`${h}/muteOff`, null)
|
|
1473
1461
|
} : void 0;
|
|
1474
1462
|
}
|
|
1475
1463
|
function Oe(e) {
|
|
@@ -1491,7 +1479,7 @@ function ke(e) {
|
|
|
1491
1479
|
} };
|
|
1492
1480
|
}
|
|
1493
1481
|
function Ue(e) {
|
|
1494
|
-
const t = `/device/${e}`, n =
|
|
1482
|
+
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
1483
|
return {
|
|
1496
1484
|
digit0: n,
|
|
1497
1485
|
digit1: c,
|
|
@@ -1501,9 +1489,9 @@ function Ue(e) {
|
|
|
1501
1489
|
digit5: a,
|
|
1502
1490
|
digit6: g,
|
|
1503
1491
|
digit7: x,
|
|
1504
|
-
digit8:
|
|
1492
|
+
digit8: h,
|
|
1505
1493
|
digit9: I,
|
|
1506
|
-
keypadAccessoryButton1:
|
|
1494
|
+
keypadAccessoryButton1: A,
|
|
1507
1495
|
keypadAccessoryButton2: H
|
|
1508
1496
|
};
|
|
1509
1497
|
}
|
|
@@ -1540,7 +1528,7 @@ function Ge(e) {
|
|
|
1540
1528
|
} };
|
|
1541
1529
|
}
|
|
1542
1530
|
function qe(e) {
|
|
1543
|
-
const t = `/device/${e}`, n =
|
|
1531
|
+
const t = `/device/${e}`, n = v(t, "chanUp"), c = v(t, "chanDown");
|
|
1544
1532
|
return { dvrList: n, replay: c };
|
|
1545
1533
|
}
|
|
1546
1534
|
function Ye(e) {
|
|
@@ -1595,7 +1583,7 @@ function Ne(e) {
|
|
|
1595
1583
|
};
|
|
1596
1584
|
}
|
|
1597
1585
|
function e5(e) {
|
|
1598
|
-
const t = `/device/${e}`, n =
|
|
1586
|
+
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
1587
|
return {
|
|
1600
1588
|
play: n,
|
|
1601
1589
|
pause: c,
|
|
@@ -1684,17 +1672,17 @@ function c5(e, t) {
|
|
|
1684
1672
|
function r5(e) {
|
|
1685
1673
|
var a, g;
|
|
1686
1674
|
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:
|
|
1688
|
-
|
|
1675
|
+
const { current: h } = e;
|
|
1676
|
+
h && (console.log(h.scrollLeft), h.scrollLeft += x, console.log(h.scrollLeft));
|
|
1689
1677
|
}, d = (x) => {
|
|
1690
|
-
const { current:
|
|
1691
|
-
|
|
1678
|
+
const { current: h } = e;
|
|
1679
|
+
h && (console.log(h.scrollTop), h.scrollTop += x, console.log(h.scrollTop));
|
|
1692
1680
|
};
|
|
1693
1681
|
return x3(() => {
|
|
1694
|
-
const { current: x } = e,
|
|
1682
|
+
const { current: x } = e, h = () => {
|
|
1695
1683
|
n((x == null ? void 0 : x.scrollLeft) ?? 0), r((x == null ? void 0 : x.scrollTop) ?? 0);
|
|
1696
1684
|
};
|
|
1697
|
-
x &&
|
|
1685
|
+
x && h();
|
|
1698
1686
|
}, [e]), { horizontalScrollPosition: t, verticalScrollPosition: c, scrollHorizontal: i, scrollVertical: d };
|
|
1699
1687
|
}
|
|
1700
1688
|
function l5(e) {
|
|
@@ -1769,26 +1757,26 @@ const u5 = () => {
|
|
|
1769
1757
|
feedback: a,
|
|
1770
1758
|
feedbackClassName: g,
|
|
1771
1759
|
onPointerDown: x,
|
|
1772
|
-
onPointerUp:
|
|
1760
|
+
onPointerUp: h,
|
|
1773
1761
|
onPointerLeave: I,
|
|
1774
|
-
...
|
|
1762
|
+
...A
|
|
1775
1763
|
}) => {
|
|
1776
|
-
const [H, U] = K(!1),
|
|
1764
|
+
const [H, U] = K(!1), e1 = !d && a ? g : "", c1 = !d && (H || a);
|
|
1777
1765
|
return /* @__PURE__ */ s.jsxs(
|
|
1778
1766
|
"button",
|
|
1779
1767
|
{
|
|
1780
1768
|
type: "button",
|
|
1781
|
-
className: `${$1.iconbtn} ${n ? $1.iconbtnvert : ""} ${c} ${
|
|
1782
|
-
...
|
|
1769
|
+
className: `${$1.iconbtn} ${n ? $1.iconbtnvert : ""} ${c} ${e1}`,
|
|
1770
|
+
...A,
|
|
1783
1771
|
disabled: d,
|
|
1784
|
-
onPointerDown: (
|
|
1785
|
-
U(!0), x == null || x(
|
|
1772
|
+
onPointerDown: (L) => {
|
|
1773
|
+
U(!0), x == null || x(L);
|
|
1786
1774
|
},
|
|
1787
|
-
onPointerUp: (
|
|
1788
|
-
U(!1),
|
|
1775
|
+
onPointerUp: (L) => {
|
|
1776
|
+
U(!1), h == null || h(L);
|
|
1789
1777
|
},
|
|
1790
|
-
onPointerLeave: (
|
|
1791
|
-
U(!1), I == null || I(
|
|
1778
|
+
onPointerLeave: (L) => {
|
|
1779
|
+
U(!1), I == null || I(L);
|
|
1792
1780
|
},
|
|
1793
1781
|
children: [
|
|
1794
1782
|
e && /* @__PURE__ */ s.jsx(
|
|
@@ -3611,7 +3599,7 @@ export {
|
|
|
3611
3599
|
m3 as useAppDispatch,
|
|
3612
3600
|
p as useAppSelector,
|
|
3613
3601
|
je as useAvrControl,
|
|
3614
|
-
|
|
3602
|
+
v as useButtonHeldHeartbeat,
|
|
3615
3603
|
Se as useCameraBase,
|
|
3616
3604
|
n8 as useClientId,
|
|
3617
3605
|
O8 as useDeviceIBasicVolumeWithFeedback,
|