@pepperdash/mobile-control-react-app-core 1.22.1 → 1.22.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.
@@ -414,36 +414,36 @@ const h3 = {}, B1 = i1({
414
414
  eventHandlers: {}
415
415
  }, t = async (a) => {
416
416
  try {
417
- const x = location.pathname.split("/").filter((b) => b.length > 0);
418
- x.length >= 5 ? x.length = 5 : x.length = 2;
419
- const S = `/${x.join("/")}`, Z = await _1.get(
417
+ const Z = location.pathname.split("/").filter((b) => b.length > 0);
418
+ Z.length >= 5 ? Z.length = 5 : Z.length = 2;
419
+ const j = `/${Z.join("/")}`, C = await _1.get(
420
420
  "/_local-config/_config.local.json",
421
- { baseURL: S }
421
+ { baseURL: j }
422
422
  );
423
- if (Z.status === 200 && Z.data) {
424
- const b = Z.data.apiPath;
425
- a(I3.setAppConfig(Z.data));
426
- const j = await _1.get(
423
+ if (C.status === 200 && C.data) {
424
+ const b = C.data.apiPath;
425
+ a(I3.setAppConfig(C.data));
426
+ const x = await _1.get(
427
427
  `${b}/version`
428
428
  );
429
- j.status === 200 && j.data && a(U.setRuntimeConfig(j.data));
429
+ x.status === 200 && x.data && a(U.setRuntimeConfig(x.data));
430
430
  }
431
- } catch (x) {
432
- console.error("Error getting config", x);
431
+ } catch (Z) {
432
+ console.error("Error getting config", Z);
433
433
  }
434
434
  return !0;
435
- }, o = async (a, x, S) => {
435
+ }, o = async (a, Z, j) => {
436
436
  try {
437
- const Z = await _1.get(
438
- `${a}/ui/joinroom?token=${x}`
437
+ const C = await _1.get(
438
+ `${a}/ui/joinroom?token=${Z}`
439
439
  );
440
- return Z.status === 200 && Z.data ? (S(U.setRoomData(Z.data)), !0) : !1;
441
- } catch (Z) {
442
- return console.log(Z), Z instanceof f2 && Z.response && Z.response.status === 498 ? (console.error("Invalid token. Unable to join room"), S(
440
+ return C.status === 200 && C.data ? (j(U.setRoomData(C.data)), !0) : !1;
441
+ } catch (C) {
442
+ return console.log(C), C instanceof f2 && C.response && C.response.status === 498 ? (console.error("Invalid token. Unable to join room"), j(
443
443
  k.setErrorMessage(
444
- `Token ${x} is invalid. Unable to join room`
444
+ `Token ${Z} is invalid. Unable to join room`
445
445
  )
446
- ), !1) : (console.error("Error getting room data", Z), Z instanceof Error ? S(k.setErrorMessage(Z.message)) : S(k.setErrorMessage("Error getting room data")), !1);
446
+ ), !1) : (console.error("Error getting room data", C), C instanceof Error ? j(k.setErrorMessage(C.message)) : j(k.setErrorMessage("Error getting room data")), !1);
447
447
  }
448
448
  }, c = (a) => {
449
449
  e.reconnectTimer && (clearTimeout(e.reconnectTimer), e.reconnectTimer = null), console.log("WebSocket middleware: Starting reconnection loop..."), e.reconnectTimer = setTimeout(() => {
@@ -453,31 +453,31 @@ const h3 = {}, B1 = i1({
453
453
  e.reconnectTimer && (console.log("WebSocket middleware: Stopping reconnection loop"), clearTimeout(e.reconnectTimer), e.reconnectTimer = null);
454
454
  }, i = (a) => {
455
455
  a(k.setShowReconnect(!0)), a(U.setWebsocketIsConnected(!1)), a(g1.clearDevices()), a(f1.clearRooms()), a(k.clearAllModals()), a(k.clearSyncState());
456
- }, v = (a) => {
457
- const x = a(), { roomKey: S } = x.runtimeConfig.roomData, { clientId: Z } = x.runtimeConfig.roomData, b = x.runtimeConfig.websocket.isConnected;
458
- if (!S || !b || !Z) {
456
+ }, v = (a, Z) => {
457
+ const j = a(), C = Z ?? j.runtimeConfig.roomData.roomKey, { clientId: b } = j.runtimeConfig.roomData, x = j.runtimeConfig.websocket.isConnected;
458
+ if (!Z || !x || !b) {
459
459
  console.log("WebSocket middleware: Cannot request room status", {
460
- hasRoomKey: !!S,
461
- isConnected: b,
462
- hasClientId: !!Z
460
+ hasRoomKey: !!Z,
461
+ isConnected: x,
462
+ hasClientId: !!b
463
463
  });
464
464
  return;
465
465
  }
466
- console.log("WebSocket middleware: Requesting status from room:", S), e.client && b && e.client.send(
466
+ console.log("WebSocket middleware: Requesting status from room:", Z), e.client && x && e.client.send(
467
467
  JSON.stringify({
468
- type: `/room/${S}/status`,
469
- clientId: Z,
468
+ type: `/room/${C}/status`,
469
+ clientId: b,
470
470
  content: null
471
471
  })
472
472
  );
473
- }, u = async (a, x) => {
473
+ }, u = async (a, Z) => {
474
474
  console.log("WebSocket middleware: Attempting to connect...");
475
- const S = x(), { apiPath: Z } = S.appConfig.config, { serverIsRunningOnProcessorHardware: b } = S.runtimeConfig;
476
- if (!Z || !e.token) {
475
+ const j = Z(), { apiPath: C } = j.appConfig.config, { serverIsRunningOnProcessorHardware: b } = j.runtimeConfig;
476
+ if (!C || !e.token) {
477
477
  console.log(
478
478
  "WebSocket middleware: Cannot connect - missing requirements",
479
479
  {
480
- hasApiPath: !!Z,
480
+ hasApiPath: !!C,
481
481
  hasToken: !!e.token
482
482
  }
483
483
  );
@@ -495,14 +495,14 @@ const h3 = {}, B1 = i1({
495
495
  }
496
496
  e.waitingToReconnect = !0;
497
497
  try {
498
- if (!await o(Z, e.token, a)) {
498
+ if (!await o(C, e.token, a)) {
499
499
  console.log(
500
500
  "WebSocket middleware: Failed to get room data, will retry..."
501
501
  ), c(a);
502
502
  return;
503
503
  }
504
504
  console.log("WebSocket middleware: Connecting to websocket");
505
- const S1 = `${Z.replace("http", "ws")}/ui/join/${e.token}`, Y = new WebSocket(S1);
505
+ const S1 = `${C.replace("http", "ws")}/ui/join/${e.token}`, Y = new WebSocket(S1);
506
506
  e.client = Y, Y.onopen = (B) => {
507
507
  console.log("WebSocket middleware: Connected", B.type, B.target), e.waitingToReconnect = !1, r(), a(U.setWebsocketIsConnected(!0));
508
508
  }, Y.onerror = (B) => {
@@ -624,33 +624,33 @@ const h3 = {}, B1 = i1({
624
624
  console.error("WebSocket middleware: Message handling error", P);
625
625
  }
626
626
  }, e.waitingToReconnect = !1;
627
- } catch (j) {
628
- console.error("WebSocket middleware: Connection error", j), e.waitingToReconnect = !1, e.client = null;
627
+ } catch (x) {
628
+ console.error("WebSocket middleware: Connection error", x), e.waitingToReconnect = !1, e.client = null;
629
629
  }
630
630
  }, h = () => {
631
631
  e.client && (console.log("WebSocket middleware: Disconnecting"), r(), e.client.close(4100, "Client requested disconnect"), e.client = null);
632
- }, m = (a, x, S) => {
633
- const Z = S(), b = Z.runtimeConfig.websocket.isConnected, j = Z.runtimeConfig.roomData.clientId;
632
+ }, m = (a, Z, j) => {
633
+ const C = j(), b = C.runtimeConfig.websocket.isConnected, x = C.runtimeConfig.roomData.clientId;
634
634
  e.client && b ? e.client.send(
635
- JSON.stringify({ type: a, clientId: j, content: x })
635
+ JSON.stringify({ type: a, clientId: x, content: Z })
636
636
  ) : console.warn("WebSocket middleware: Cannot send message - not connected");
637
- }, p = (a, x, S) => {
638
- e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][x] = S, console.log("WebSocket middleware: Event handler added", a, x);
639
- }, _ = (a, x) => {
640
- e.eventHandlers[a] && (delete e.eventHandlers[a][x], console.log(
637
+ }, p = (a, Z, j) => {
638
+ e.eventHandlers[a] || (e.eventHandlers[a] = {}), e.eventHandlers[a][Z] = j, console.log("WebSocket middleware: Event handler added", a, Z);
639
+ }, _ = (a, Z) => {
640
+ e.eventHandlers[a] && (delete e.eventHandlers[a][Z], console.log(
641
641
  "WebSocket middleware: Event handler removed",
642
642
  a,
643
- x
643
+ Z
644
644
  ));
645
645
  }, H = (a) => {
646
- const x = a(), { gatewayAppPath: S } = x.appConfig.config, Z = x.runtimeConfig.roomData.roomKey, b = x.runtimeConfig.roomData.systemUuid, j = x.runtimeConfig.roomData.userCode, W = `${S}?uuid=${b}&roomKey=${Z}`;
647
- window.location.href = j ? `${W}&Code=${j}` : W;
646
+ const Z = a(), { gatewayAppPath: j } = Z.appConfig.config, C = Z.runtimeConfig.roomData.roomKey, b = Z.runtimeConfig.roomData.systemUuid, x = Z.runtimeConfig.roomData.userCode, W = `${j}?uuid=${b}&roomKey=${C}`;
647
+ window.location.href = x ? `${W}&Code=${x}` : W;
648
648
  };
649
- return (a) => (x) => (S) => {
650
- const Z = x(S);
651
- if (!S || typeof S != "object" || !("type" in S))
652
- return Z;
653
- const b = S;
649
+ return (a) => (Z) => (j) => {
650
+ const C = Z(j);
651
+ if (!j || typeof j != "object" || !("type" in j))
652
+ return C;
653
+ const b = j;
654
654
  return (async () => {
655
655
  switch (b.type) {
656
656
  case E3: {
@@ -685,28 +685,28 @@ const h3 = {}, B1 = i1({
685
685
  H(a.getState);
686
686
  break;
687
687
  default:
688
- if (S.type === U.setWebsocketIsConnected.type)
689
- S.payload === !0 && (console.log(
688
+ if (j.type === U.setWebsocketIsConnected.type)
689
+ j.payload === !0 && (console.log(
690
690
  "[WebSocket Middleware] Connection established, requesting room status..."
691
691
  ), setTimeout(() => v(a.getState), 100));
692
- else if (S.type === U.setRoomData.type) {
693
- const j = a.getState(), W = S.payload;
694
- j.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
692
+ else if (j.type === U.setRoomData.type) {
693
+ const x = a.getState(), W = j.payload;
694
+ x.runtimeConfig.websocket.isConnected && (W != null && W.clientId) && (console.log(
695
695
  "[WebSocket Middleware] Room data received, requesting room status..."
696
696
  ), setTimeout(() => v(a.getState), 100));
697
- } else if (S.type === U.setCurrentRoomKey.type) {
698
- const j = S.payload;
699
- j && (console.log(
697
+ } else if (j.type === U.setCurrentRoomKey.type) {
698
+ const x = j.payload;
699
+ x && (console.log(
700
700
  "[WebSocket Middleware] Room changed to:",
701
- j,
701
+ x,
702
702
  ", requesting room status..."
703
- ), setTimeout(() => v(a.getState), 100));
703
+ ), setTimeout(() => v(a.getState, x), 100));
704
704
  }
705
705
  break;
706
706
  }
707
- })().catch((j) => {
708
- console.error("WebSocket middleware: Error handling action", j);
709
- }), Z;
707
+ })().catch((x) => {
708
+ console.error("WebSocket middleware: Error handling action", x);
709
+ }), C;
710
710
  };
711
711
  }, $e = M2({
712
712
  appConfig: Se,
@@ -784,15 +784,15 @@ var r1 = {};
784
784
  var w3;
785
785
  function Oe() {
786
786
  return w3 || (w3 = 1, process.env.NODE_ENV !== "production" && function() {
787
- var e = M3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), u = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), x = Symbol.iterator, S = "@@iterator";
788
- function Z(s) {
787
+ var e = M3, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), u = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), Z = Symbol.iterator, j = "@@iterator";
788
+ function C(s) {
789
789
  if (s === null || typeof s != "object")
790
790
  return null;
791
- var l = x && s[x] || s[S];
791
+ var l = Z && s[Z] || s[j];
792
792
  return typeof l == "function" ? l : null;
793
793
  }
794
794
  var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
795
- function j(s) {
795
+ function x(s) {
796
796
  {
797
797
  for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), f = 1; f < l; f++)
798
798
  d[f - 1] = arguments[f];
@@ -831,7 +831,7 @@ function Oe() {
831
831
  function z(s) {
832
832
  if (s == null)
833
833
  return null;
834
- if (typeof s.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
834
+ if (typeof s.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
835
835
  return s.displayName || s.name || null;
836
836
  if (typeof s == "string")
837
837
  return s;
@@ -932,7 +932,7 @@ function Oe() {
932
932
  })
933
933
  });
934
934
  }
935
- n1 < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
935
+ n1 < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
936
936
  }
937
937
  }
938
938
  var C1 = b.ReactCurrentDispatcher, b1;
@@ -1002,17 +1002,17 @@ function Oe() {
1002
1002
  }
1003
1003
  } catch (V) {
1004
1004
  if (V && f && typeof V.stack == "string") {
1005
- for (var C = V.stack.split(`
1005
+ for (var S = V.stack.split(`
1006
1006
  `), O = f.stack.split(`
1007
- `), L = C.length - 1, $ = O.length - 1; L >= 1 && $ >= 0 && C[L] !== O[$]; )
1007
+ `), L = S.length - 1, $ = O.length - 1; L >= 1 && $ >= 0 && S[L] !== O[$]; )
1008
1008
  $--;
1009
1009
  for (; L >= 1 && $ >= 0; L--, $--)
1010
- if (C[L] !== O[$]) {
1010
+ if (S[L] !== O[$]) {
1011
1011
  if (L !== 1 || $ !== 1)
1012
1012
  do
1013
- if (L--, $--, $ < 0 || C[L] !== O[$]) {
1013
+ if (L--, $--, $ < 0 || S[L] !== O[$]) {
1014
1014
  var F = `
1015
- ` + C[L].replace(" at new ", " at ");
1015
+ ` + S[L].replace(" at new ", " at ");
1016
1016
  return s.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", s.displayName)), typeof s == "function" && d1.set(s, F), F;
1017
1017
  }
1018
1018
  while (L >= 1 && $ >= 0);
@@ -1074,17 +1074,17 @@ function Oe() {
1074
1074
  var T = Function.call.bind(o1);
1075
1075
  for (var y in s)
1076
1076
  if (T(s, y)) {
1077
- var C = void 0;
1077
+ var S = void 0;
1078
1078
  try {
1079
1079
  if (typeof s[y] != "function") {
1080
1080
  var O = Error((f || "React class") + ": " + d + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1081
1081
  throw O.name = "Invariant Violation", O;
1082
1082
  }
1083
- C = s[y](l, y, f, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1083
+ S = s[y](l, y, f, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1084
1084
  } catch (L) {
1085
- C = L;
1085
+ S = L;
1086
1086
  }
1087
- C && !(C instanceof Error) && (h1(E), j("%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", d, y, typeof C), h1(null)), C instanceof Error && !(C.message in X1) && (X1[C.message] = !0, h1(E), j("Failed %s type: %s", d, C.message), h1(null));
1087
+ S && !(S instanceof Error) && (h1(E), x("%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", d, y, typeof S), h1(null)), S instanceof Error && !(S.message in X1) && (X1[S.message] = !0, h1(E), x("Failed %s type: %s", d, S.message), h1(null));
1088
1088
  }
1089
1089
  }
1090
1090
  }
@@ -1110,7 +1110,7 @@ function Oe() {
1110
1110
  }
1111
1111
  function e3(s) {
1112
1112
  if (Y3(s))
1113
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", G3(s)), N1(s);
1113
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", G3(s)), N1(s);
1114
1114
  }
1115
1115
  var t3 = b.ReactCurrentOwner, z3 = {
1116
1116
  key: !0,
@@ -1140,7 +1140,7 @@ function Oe() {
1140
1140
  function N3(s, l) {
1141
1141
  {
1142
1142
  var d = function() {
1143
- n3 || (n3 = !0, j("%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));
1143
+ n3 || (n3 = !0, x("%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));
1144
1144
  };
1145
1145
  d.isReactWarning = !0, Object.defineProperty(s, "key", {
1146
1146
  get: d,
@@ -1151,7 +1151,7 @@ function Oe() {
1151
1151
  function e2(s, l) {
1152
1152
  {
1153
1153
  var d = function() {
1154
- o3 || (o3 = !0, j("%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));
1154
+ o3 || (o3 = !0, x("%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));
1155
1155
  };
1156
1156
  d.isReactWarning = !0, Object.defineProperty(s, "ref", {
1157
1157
  get: d,
@@ -1160,7 +1160,7 @@ function Oe() {
1160
1160
  }
1161
1161
  }
1162
1162
  var t2 = function(s, l, d, f, E, T, y) {
1163
- var C = {
1163
+ var S = {
1164
1164
  // This tag allows us to uniquely identify this as a React Element
1165
1165
  $$typeof: t,
1166
1166
  // Built-in properties that belong on the element
@@ -1171,27 +1171,27 @@ function Oe() {
1171
1171
  // Record the component responsible for creating this element.
1172
1172
  _owner: T
1173
1173
  };
1174
- return C._store = {}, Object.defineProperty(C._store, "validated", {
1174
+ return S._store = {}, Object.defineProperty(S._store, "validated", {
1175
1175
  configurable: !1,
1176
1176
  enumerable: !1,
1177
1177
  writable: !0,
1178
1178
  value: !1
1179
- }), Object.defineProperty(C, "_self", {
1179
+ }), Object.defineProperty(S, "_self", {
1180
1180
  configurable: !1,
1181
1181
  enumerable: !1,
1182
1182
  writable: !1,
1183
1183
  value: f
1184
- }), Object.defineProperty(C, "_source", {
1184
+ }), Object.defineProperty(S, "_source", {
1185
1185
  configurable: !1,
1186
1186
  enumerable: !1,
1187
1187
  writable: !1,
1188
1188
  value: E
1189
- }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
1189
+ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
1190
1190
  };
1191
1191
  function n2(s, l, d, f, E) {
1192
1192
  {
1193
- var T, y = {}, C = null, O = null;
1194
- d !== void 0 && (e3(d), C = "" + d), X3(l) && (e3(l.key), C = "" + l.key), J3(l) && (O = l.ref, Q3(l, E));
1193
+ var T, y = {}, S = null, O = null;
1194
+ d !== void 0 && (e3(d), S = "" + d), X3(l) && (e3(l.key), S = "" + l.key), J3(l) && (O = l.ref, Q3(l, E));
1195
1195
  for (T in l)
1196
1196
  o1.call(l, T) && !z3.hasOwnProperty(T) && (y[T] = l[T]);
1197
1197
  if (s && s.defaultProps) {
@@ -1199,11 +1199,11 @@ function Oe() {
1199
1199
  for (T in L)
1200
1200
  y[T] === void 0 && (y[T] = L[T]);
1201
1201
  }
1202
- if (C || O) {
1202
+ if (S || O) {
1203
1203
  var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
1204
- C && N3(y, $), O && e2(y, $);
1204
+ S && N3(y, $), O && e2(y, $);
1205
1205
  }
1206
- return t2(s, C, O, E, f, t3.current, y);
1206
+ return t2(s, S, O, E, f, t3.current, y);
1207
1207
  }
1208
1208
  }
1209
1209
  var R1 = b.ReactCurrentOwner, s3 = b.ReactDebugCurrentFrame;
@@ -1257,7 +1257,7 @@ Check the top-level render call using <` + d + ">.");
1257
1257
  return;
1258
1258
  r3[d] = !0;
1259
1259
  var f = "";
1260
- s && s._owner && s._owner !== R1.current && (f = " It was passed a child from " + z(s._owner.type) + "."), e1(s), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, f), e1(null);
1260
+ s && s._owner && s._owner !== R1.current && (f = " It was passed a child from " + z(s._owner.type) + "."), e1(s), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, f), e1(null);
1261
1261
  }
1262
1262
  }
1263
1263
  function i3(s, l) {
@@ -1272,7 +1272,7 @@ Check the top-level render call using <` + d + ">.");
1272
1272
  else if (T1(s))
1273
1273
  s._store && (s._store.validated = !0);
1274
1274
  else if (s) {
1275
- var E = Z(s);
1275
+ var E = C(s);
1276
1276
  if (typeof E == "function" && E !== s.entries)
1277
1277
  for (var T = E.call(s), y; !(y = T.next()).done; )
1278
1278
  T1(y.value) && l3(y.value, l);
@@ -1299,9 +1299,9 @@ Check the top-level render call using <` + d + ">.");
1299
1299
  } else if (l.PropTypes !== void 0 && !E1) {
1300
1300
  E1 = !0;
1301
1301
  var E = z(l);
1302
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
1302
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
1303
1303
  }
1304
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1304
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1305
1305
  }
1306
1306
  }
1307
1307
  function r2(s) {
@@ -1309,11 +1309,11 @@ Check the top-level render call using <` + d + ">.");
1309
1309
  for (var l = Object.keys(s.props), d = 0; d < l.length; d++) {
1310
1310
  var f = l[d];
1311
1311
  if (f !== "children" && f !== "key") {
1312
- e1(s), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), e1(null);
1312
+ e1(s), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), e1(null);
1313
1313
  break;
1314
1314
  }
1315
1315
  }
1316
- s.ref !== null && (e1(s), j("Invalid attribute `ref` supplied to `React.Fragment`."), e1(null));
1316
+ s.ref !== null && (e1(s), x("Invalid attribute `ref` supplied to `React.Fragment`."), e1(null));
1317
1317
  }
1318
1318
  }
1319
1319
  var a3 = {};
@@ -1321,12 +1321,12 @@ Check the top-level render call using <` + d + ">.");
1321
1321
  {
1322
1322
  var y = j1(s);
1323
1323
  if (!y) {
1324
- var C = "";
1325
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1324
+ var S = "";
1325
+ (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1326
1326
  var O = o2();
1327
- O ? C += O : C += c3();
1327
+ O ? S += O : S += c3();
1328
1328
  var L;
1329
- s === null ? L = "null" : I1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (z(s.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, C);
1329
+ s === null ? L = "null" : I1(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (z(s.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, S);
1330
1330
  }
1331
1331
  var $ = n2(s, l, d, E, T);
1332
1332
  if ($ == null)
@@ -1340,7 +1340,7 @@ Check the top-level render call using <` + d + ">.");
1340
1340
  i3(F[t1], s);
1341
1341
  Object.freeze && Object.freeze(F);
1342
1342
  } else
1343
- j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1343
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1344
1344
  else
1345
1345
  i3(F, s);
1346
1346
  }
@@ -1350,7 +1350,7 @@ Check the top-level render call using <` + d + ">.");
1350
1350
  }), D1 = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
1351
1351
  if (!a3[Q + D1]) {
1352
1352
  var d2 = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
1353
- j(`A props object containing a "key" prop is being spread into JSX:
1353
+ x(`A props object containing a "key" prop is being spread into JSX:
1354
1354
  let props = %s;
1355
1355
  <%s {...props} />
1356
1356
  React keys must be passed directly to JSX without using spread:
@@ -2003,29 +2003,29 @@ const Rt = () => {
2003
2003
  onPointerLeave: _,
2004
2004
  ...H
2005
2005
  }) => {
2006
- const [a, x] = G(!1), S = !v && u ? h : "", Z = !v && (a || u);
2006
+ const [a, Z] = G(!1), j = !v && u ? h : "", C = !v && (a || u);
2007
2007
  return /* @__PURE__ */ n.jsxs(
2008
2008
  "button",
2009
2009
  {
2010
2010
  type: "button",
2011
- className: `${P1.iconbtn} ${o ? P1.iconbtnvert : ""} ${c} ${S}`,
2011
+ className: `${P1.iconbtn} ${o ? P1.iconbtnvert : ""} ${c} ${j}`,
2012
2012
  ...H,
2013
2013
  disabled: v,
2014
2014
  onPointerDown: (b) => {
2015
- x(!0), m == null || m(b);
2015
+ Z(!0), m == null || m(b);
2016
2016
  },
2017
2017
  onPointerUp: (b) => {
2018
- x(!1), p == null || p(b);
2018
+ Z(!1), p == null || p(b);
2019
2019
  },
2020
2020
  onPointerLeave: (b) => {
2021
- x(!1), _ == null || _(b);
2021
+ Z(!1), _ == null || _(b);
2022
2022
  },
2023
2023
  children: [
2024
2024
  e && /* @__PURE__ */ n.jsx(
2025
2025
  e,
2026
2026
  {
2027
2027
  className: `${r || P1.iconsm}`,
2028
- active: Z,
2028
+ active: C,
2029
2029
  disabled: v
2030
2030
  }
2031
2031
  ),